!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("source-map")):"function"==typeof define&&define.amd?define(["exports","source-map"],t):t((e=e||self).Terser={},e.sourceMap)}(this,function(e,t){"use strict";function n(e){return e.split("")}function i(e,t){return t.includes(e)}function r(e,t){for(var n=0,i=t.length;n=0&&!l(););u.reverse(),c.reverse()}else for(s=0;s=0;)e[n]===t&&e.splice(n,1)}function D(e,t){if(e.length<2)return e.slice();return function e(n){if(n.length<=1)return n;var i=Math.floor(n.length/2),r=n.slice(0,i),o=n.slice(i);return function(e,n){for(var i=[],r=0,o=0,a=0;r3){n.sort(function(e,t){return t.length-e.length}),t+="switch(str.length){";for(i=0;i=0;)if(!t(e[n]))return!1;return!0}function A(){this._values=Object.create(null),this._size=0}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function T(e){for(var t,n=e.parent(-1),i=0;t=e.parent(i);i++){if(t instanceof fe&&t.body===n)return!0;if(!(t instanceof _t&&t.expressions[0]===n||"Call"==t.TYPE&&t.expression===n||t instanceof mt&&t.expression===n||t instanceof Et&&t.expression===n||t instanceof At&&t.condition===n||t instanceof St&&t.left===n||t instanceof gt&&t.expression===n))return!1;n=t}}function b(e,t){return!0===e||e instanceof RegExp&&e.test(t)}A.prototype={set:function(e,t){return this.has(e)||++this._size,this._values["$"+e]=t,this},add:function(e,t){return this.has(e)?this.get(e).push(t):this.set(e,[t]),this},get:function(e){return this._values["$"+e]},del:function(e){return this.has(e)&&(--this._size,delete this._values["$"+e]),this},has:function(e){return"$"+e in this._values},each:function(e){for(var t in this._values)e(this._values[t],t.substr(1))},size:function(){return this._size},map:function(e){var t=[];for(var n in this._values)t.push(e(this._values[n],n.substr(1)));return t},clone:function(){var e=new A;for(var t in this._values)e._values[t]=this._values[t];return e._size=this._size,e},toObject:function(){return this._values}},A.fromObject=function(e){var t=new A;return t._size=u(t._values,e),t};var y="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",C="false null true",O="enum implements import interface package private protected public static super this "+C+" "+y,F="return new delete throw else case yield await";y=g(y),O=g(O),F=g(F),C=g(C);var R=g(n("+-*&%=<>!?|~^")),M=/[0-9a-f]/i,N=/^0x[0-9a-f]+$/i,w=/^0[0-7]+$/,x=/^0o[0-7]+$/i,k=/^0b[01]+$/i,I=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,L=g(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),V=g(n("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),P=g(n("\n\r\u2028\u2029")),B=g(n(";]),:")),K=g(n("[{(,;:")),U=g(n("[]{}(),;:")),G={ID_Start:/[A-Za-z\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-\u08B4\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\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\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-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\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-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\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\uDCE0-\uDCF2\uDCF4\uDCF5\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\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\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\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[0-9A-Z_a-z\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-\u08B4\u08E3-\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\u0AF9\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-\u0C5A\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\u0D5F-\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-\u13F5\u13F8-\u13FD\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\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-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\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-\uAB65\uAB70-\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-\uFE2F\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\uDCE0-\uDCF2\uDCF4\uDCF5\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\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\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]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\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\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function H(e,t){var n=e.charAt(t);if(X(n)){var i=e.charAt(t+1);if(z(i))return n+i}if(z(n)){var r=e.charAt(t-1);if(X(r))return r+n}return n}function X(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=55296&&e<=56319}function z(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=56320&&e<=57343}function W(e){return e>=48&&e<=57}function Y(e){return"string"==typeof e&&!O(e)}function q(e){var t=e.charCodeAt(0);return G.ID_Start.test(e)||36==t||95==t}function $(e){var t=e.charCodeAt(0);return G.ID_Continue.test(e)||36==t||95==t||8204==t||8205==t}function j(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function Z(e,t,n,i,r){this.message=e,this.filename=t,this.line=n,this.col=i,this.pos=r}function Q(e,t,n,i,r){throw new Z(e,t,n,i,r)}function J(e,t,n){return e.type==t&&(null==n||e.value==n)}Z.prototype=Object.create(Error.prototype),Z.prototype.constructor=Z,Z.prototype.name="SyntaxError",o(Z);var ee={};function te(e,t,n,i){var r={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function o(){return H(r.text,r.pos)}function a(e,t){var n=H(r.text,r.pos++);if(e&&!n)throw ee;return P(n)?(r.newline_before=r.newline_before||!t,++r.line,r.col=0,t||"\r"!=n||"\n"!=o()||(++r.pos,n="\n")):(n.length>1&&(++r.pos,++r.col),++r.col),n}function s(e){for(;e-- >0;)a()}function u(e){return r.text.substr(r.pos,e.length)==e}function c(e,t){var n=r.text.indexOf(e,r.pos);if(t&&-1==n)throw ee;return n}function l(){r.tokline=r.line,r.tokcol=r.col,r.tokpos=r.pos}var f=!1,p=null;function _(n,i,o){r.regex_allowed="operator"==n&&!ie(i)||"keyword"==n&&F(i)||"punc"==n&&K(i)||"arrow"==n,"punc"==n&&"."==i?f=!0:o||(f=!1);var a={type:n,value:i,line:r.tokline,col:r.tokcol,pos:r.tokpos,endline:r.line,endcol:r.col,endpos:r.pos,nlb:r.newline_before,file:t};return/^(?:num|string|regexp)$/i.test(n)&&(a.raw=e.substring(a.pos,a.endpos)),o||(a.comments_before=r.comments_before,a.comments_after=r.comments_before=[]),r.newline_before=!1,a=new ce(a),o||(p=a),a}function d(){for(;V(o());)a()}function m(e){Q(e,t,r.tokline,r.tokcol,r.tokpos)}function E(e){var t=!1,n=!1,i=!1,r="."==e,s=function(e){for(var t,n="",i=0;(t=o())&&e(t,i++);)n+=a();return n}(function(o,a){switch(o.charCodeAt(0)){case 98:case 66:return i=!0;case 111:case 79:case 120:case 88:return!i&&(i=!0);case 101:case 69:return!!i||!t&&(t=n=!0);case 45:return n||0==a&&!e;case 43:return n;case n=!1,46:return!(r||i||t)&&(r=!0)}return M.test(o)});e&&(s=e+s),w.test(s)&&j.has_directive("use strict")&&m("Legacy octal literals are not allowed in strict mode");var u=function(e){if(N.test(e))return parseInt(e.substr(2),16);if(w.test(e))return parseInt(e.substr(1),8);if(x.test(e))return parseInt(e.substr(2),8);if(k.test(e))return parseInt(e.substr(2),2);if(I.test(e))return parseFloat(e);var t=parseFloat(e);return t==e?t:void 0}(s);if(!isNaN(u))return _("num",u);m("Invalid syntax: "+s)}function h(e,t,n){var i,s=a(!0,e);switch(s.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(D(2,t));case 117:if("{"==o()){for(a(!0),"}"===o()&&m("Expecting hex-character between {}");"0"==o();)a(!0);var u,l=c("}",!0)-r.pos;return(l>6||(u=D(l,t))>1114111)&&m("Unicode reference out of bounds"),a(!0),(i=u)>65535?(i-=65536,String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):String.fromCharCode(i)}return String.fromCharCode(D(4,t));case 10:return"";case 13:if("\n"==o())return a(!0,e),""}return s>="0"&&s<="7"?(n&&t&&m("Octal escape sequences are not allowed in template strings"),function(e,t){var n=o();n>="0"&&n<="7"&&(e+=a(!0))[0]<="3"&&(n=o())>="0"&&n<="7"&&(e+=a(!0));if("0"===e)return"\0";e.length>0&&j.has_directive("use strict")&&t&&m("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(s,t)):s}function D(e,t){for(var n=0;e>0;--e){if(!t&&isNaN(parseInt(o(),16)))return parseInt(n,16)||"";var i=a(!0);isNaN(parseInt(i,16))&&m("Invalid hex-character pattern in string"),n+=i}return parseInt(n,16)}var g=Y("Unterminated string constant",function(e){for(var t=a(),n="";;){var i=a(!0,!0);if("\\"==i)i=h(!0,!0);else if(P(i))m("Unterminated string constant");else if(i==t)break;n+=i}var r=_("string",n);return r.quote=e,r}),S=Y("Unterminated template",function(e){e&&r.template_braces.push(r.brace_counter);var t,n,i="",s="";for(a(!0,!0);"`"!=(t=a(!0,!0));){if("\r"==t)"\n"==o()&&++r.pos,t="\n";else if("$"==t&&"{"==o())return a(!0,!0),r.brace_counter++,(n=_(e?"template_head":"template_substitution",i)).begin=e,n.raw=s,n.end=!1,n;if(s+=t,"\\"==t){var u=r.pos;t=h(!0,!(p&&("name"===p.type||"punc"===p.type&&(")"===p.value||"]"===p.value))),!0),s+=r.text.substr(u,r.pos-u)}i+=t}return r.template_braces.pop(),(n=_(e?"template_head":"template_substitution",i)).begin=e,n.raw=s,n.end=!0,n});function A(e){var t,n=r.regex_allowed,i=function(){for(var e=r.text,t=r.pos,n=r.text.length;t"===o()?(a(),_("arrow","=>")):B("=");case 96:return S(!0);case 123:r.brace_counter++;break;case 125:if(r.brace_counter--,r.template_braces.length>0&&r.template_braces[r.template_braces.length-1]===r.brace_counter)return S(!1)}if(W(c))return E();if(U(t))return _("punc",a());if(R(t))return B();if(92==c||q(t))return h=void 0,h=T(),f?_("name",h):C(h)?_("atom",h):y(h)?L(h)?_("operator",h):_("keyword",h):_("name",h);break}var h;m("Unexpected character '"+t+"'")}return j.next=a,j.peek=o,j.context=function(e){return e&&(r=e),r},j.add_directive=function(e){r.directive_stack[r.directive_stack.length-1].push(e),void 0===r.directives[e]?r.directives[e]=1:r.directives[e]++},j.push_directives_stack=function(){r.directive_stack.push([])},j.pop_directives_stack=function(){for(var e=r.directive_stack[r.directive_stack.length-1],t=0;t0},j}var ne=g(["typeof","void","delete","--","++","!","~","-","+"]),ie=g(["--","++"]),re=g(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),oe=function(e,t){for(var n=0;n","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),ae=g(["atom","num","string","regexp","name"]);function se(e,t){t=s(t,{bare_returns:!1,ecma:8,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var n={input:"string"==typeof e?te(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function i(e,t){return J(n.token,e,t)}function o(){return n.peeked||(n.peeked=n.input())}function a(){return n.prev=n.token,n.peeked||o(),n.token=n.peeked,n.peeked=null,n.in_directives=n.in_directives&&("string"==n.token.type||i("punc",";")),n.token}function u(){return n.prev}function c(e,t,i,r){var o=n.input.context();Q(e,o.filename,null!=t?t:o.tokline,null!=i?i:o.tokcol,null!=r?r:o.tokpos)}function l(e,t){c(t,e.line,e.col)}function f(e){null==e&&(e=n.token),l(e,"Unexpected token: "+e.type+" ("+e.value+")")}function p(e,t){if(i(e,t))return a();l(n.token,"Unexpected token "+n.token.type+" «"+n.token.value+"», expected "+e+" «"+t+"»")}function _(e){return p("punc",e)}function d(e){return e.nlb||!S(e.comments_before,function(e){return!e.nlb})}function m(){return!t.strict&&(i("eof")||i("punc","}")||d(n.token))}function E(){return n.in_generator===n.in_function}function h(){return n.in_async===n.in_function}function D(e){i("punc",";")?a():e||m()||f()}function g(){_("(");var e=Nt(!0);return _(")"),e}function A(e){return function(){var t=n.token,i=e.apply(null,arguments),r=u();return i.start=t,i.end=r,i}}function T(){(i("operator","/")||i("operator","/="))&&(n.peeked=null,n.token=n.input(n.token.value.substr(1)))}n.token=a();var b=A(function(e,s,E){switch(T(),n.token.type){case"string":if(n.in_directives){var S=o();!n.token.raw.includes("\\")&&(J(S,"punc",";")||J(S,"punc","}")||d(S)||J(S,"eof"))?n.input.add_directive(n.token.value):n.in_directives=!1}var A=n.in_directives,v=y();return A&&v.body instanceof on?new _e(v.body):v;case"template_head":case"num":case"regexp":case"operator":case"atom":return y();case"name":if("async"==n.token.value&&J(o(),"keyword","function"))return a(),a(),s&&c("functions are not allowed as the body of a loop"),R(Ve,!1,!0,e);if("import"==n.token.value&&!J(o(),"punc","(")){a();var O=function(){var e,t,r=u();i("name")&&(e=me(qt));i("punc",",")&&a();((t=se(!0))||e)&&p("name","from");var o=n.token;"string"!==o.type&&f();return a(),new ut({start:r,imported_name:e,imported_names:t,module_name:new on({start:o,value:o.value,quote:o.quote,end:o}),end:n.token})}();return D(),O}return J(o(),"punc",":")?function(){var e=me(jt);"await"===e.name&&h()&&l(n.prev,"await cannot be used as label inside async function");r(function(t){return t.name==e.name},n.labels)&&c("Label "+e.name+" defined twice");_(":"),n.labels.push(e);var t=b();n.labels.pop(),t instanceof ve||e.references.forEach(function(t){t instanceof qe&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))});return new Ae({body:t,label:e})}():y();case"punc":switch(n.token.value){case"{":return new De({start:n.token,body:k(),end:u()});case"[":case"(":return y();case";":return n.in_directives=!1,a(),new ge;default:f()}case"keyword":switch(n.token.value){case"break":return a(),C(Ye);case"continue":return a(),C(qe);case"debugger":return a(),D(),new pe;case"do":a();var F=kt(b);p("keyword","while");var M=g();return D(!0),new be({body:F,condition:M});case"while":return a(),new ye({condition:g(),body:kt(function(){return b(!1,!0)})});case"for":return a(),function(){var e="`for await` invalid in this context",t=n.token;"name"==t.type&&"await"==t.value?(h()||l(t,e),a()):t=!1;_("(");var r=null;if(i("punc",";"))t&&l(t,e);else{r=i("keyword","var")?(a(),V(!0)):i("keyword","let")?(a(),P(!0)):i("keyword","const")?(a(),K(!0)):Nt(!0,!0);var o=i("operator","in"),s=i("name","of");if(t&&!s&&l(t,e),o||s)return r instanceof it?r.definitions.length>1&&l(r.start,"Only one variable declaration allowed in for..in loop"):We(r)||(r=Ze(r))instanceof Pe||l(r.start,"Invalid left-hand side in for..in loop"),a(),o?function(e){var t=Nt(!0);return _(")"),new Oe({init:e,object:t,body:kt(function(){return b(!1,!0)})})}(r):function(e,t){var n=e instanceof it?e.definitions[0].name:null,i=Nt(!0);return _(")"),new Fe({await:t,init:e,name:n,object:i,body:kt(function(){return b(!1,!0)})})}(r,!!t)}return function(e){_(";");var t=i("punc",";")?null:Nt(!0);_(";");var n=i("punc",")")?null:Nt(!0);return _(")"),new Ce({init:e,condition:t,step:n,body:kt(function(){return b(!1,!0)})})}(r)}();case"class":return a(),s&&c("classes are not allowed as the body of a loop"),E&&c("classes are not allowed as the body of an if"),$(wt);case"function":return a(),s&&c("functions are not allowed as the body of a loop"),R(Ve,!1,!1,e);case"if":return a(),function(){var e=g(),t=b(!1,!1,!0),n=null;i("keyword","else")&&(a(),n=b(!1,!1,!0));return new $e({condition:e,body:t,alternative:n})}();case"return":0!=n.in_function||t.bare_returns||c("'return' outside of function"),a();var w=null;return i("punc",";")?a():m()||(w=Nt(!0),D()),new Xe({value:w});case"switch":return a(),new je({expression:g(),body:kt(I)});case"throw":a(),d(n.token)&&c("Illegal newline after 'throw'");w=Nt(!0);return D(),new ze({value:w});case"try":return a(),function(){var e=k(),t=null,r=null;if(i("keyword","catch")){var o=n.token;if(a(),i("punc","{"))var s=null;else{_("(");var s=N(void 0,Yt);_(")")}t=new tt({start:o,argname:s,body:k(),end:u()})}if(i("keyword","finally")){var o=n.token;a(),r=new nt({start:o,body:k(),end:u()})}t||r||c("Missing catch/finally blocks");return new et({body:e,bcatch:t,bfinally:r})}();case"var":a();O=V();return D(),O;case"let":a();O=P();return D(),O;case"const":a();O=K();return D(),O;case"with":return n.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),a(),new Re({expression:g(),body:b()});case"export":if(!J(o(),"punc","(")){a();O=function(){var e,t,r,s,c,l=n.token;if(i("keyword","default"))e=!0,a();else if(t=se(!1)){if(i("name","from")){a();var p=n.token;return"string"!==p.type&&f(),a(),new ct({start:l,is_default:e,exported_names:t,module_name:new on({start:p,value:p.value,quote:p.quote,end:p}),end:u()})}return new ct({start:l,is_default:e,exported_names:t,end:u()})}i("punc","{")||e&&(i("keyword","class")||i("keyword","function"))&&J(o(),"punc")?(s=Nt(!1),D()):(r=b(e))instanceof it&&e?f(r.start):r instanceof it||r instanceof xe||r instanceof wt?c=r:r instanceof de?s=r.body:f(r.start);return new ct({start:l,is_default:e,exported_value:s,exported_definition:c,end:u()})}();return i("punc",";")&&D(),O}}}f()});function y(e){return new de({body:(e=Nt(!0),D(),e)})}function C(e){var t,i=null;m()||(i=me(en,!0)),null!=i?((t=r(function(e){return e.name==i.name},n.labels))||c("Undefined label "+i.name),i.thedef=t):0==n.in_loop&&c(e.TYPE+" not inside a loop or switch"),D();var o=new e({label:i});return t&&t.references.push(o),o}var F=function(e,t,r){d(n.token)&&c("Unexpected newline before arrow (=>)"),p("arrow","=>");var o=x(i("punc","{"),!1,r),a=o instanceof Array&&o.length?o[o.length-1].end:o instanceof Array?e:o.end;return new Le({start:e,end:a,async:r,argnames:t,body:o})},R=function(e,t,n,r){var o=e===Ve,s=i("operator","*");s&&a();var c=i("name")?me(o?Gt:Xt):null;o&&!c&&(r?e=Ie:f()),!c||e===ke||c instanceof Lt||f(u());var l=[],p=x(!0,s||t,n,c,l);return new e({start:l.start,end:p.end,is_generator:s,async:n,name:c,argnames:l,body:p})};function M(e,t){var n={},i=!1,r=!1,o=!1,a=!!t,s={add_parameter:function(t){if(void 0!==n["$"+t.value])!1===i&&(i=t),s.check_strict();else if(n["$"+t.value]=!0,e)switch(t.value){case"arguments":case"eval":case"yield":a&&l(t,"Unexpected "+t.value+" identifier as parameter inside strict mode");break;default:O(t.value)&&f()}},mark_default_assignment:function(e){!1===r&&(r=e)},mark_spread:function(e){!1===o&&(o=e)},mark_strict_mode:function(){a=!0},is_strict:function(){return!1!==r||!1!==o||a},check_strict:function(){s.is_strict()&&!1!==i&&l(i,"Parameter "+i.value+" was used already")}};return s}function N(e,t){var r,o=!1;return void 0===e&&(e=M(!0,n.input.has_directive("use strict"))),i("expand","...")&&(o=n.token,e.mark_spread(n.token),a()),r=w(e,t),i("operator","=")&&!1===o&&(e.mark_default_assignment(n.token),a(),r=new Tt({start:r.start,left:r,operator:"=",right:Nt(!1),end:n.token})),!1!==o&&(i("punc",")")||f(),r=new we({start:o,expression:r,end:o})),e.check_strict(),r}function w(e,t){var r,s=[],l=!0,p=!1,d=n.token;if(void 0===e&&(e=M(!1,n.input.has_directive("use strict"))),t=void 0===t?Ut:t,i("punc","[")){for(a();!i("punc","]");){if(l?l=!1:_(","),i("expand","...")&&(p=!0,r=n.token,e.mark_spread(n.token),a()),i("punc"))switch(n.token.value){case",":s.push(new pn({start:n.token,end:n.token}));continue;case"]":break;case"[":case"{":s.push(w(e,t));break;default:f()}else i("name")?(e.add_parameter(n.token),s.push(me(t))):c("Invalid function parameter");i("operator","=")&&!1===p&&(e.mark_default_assignment(n.token),a(),s[s.length-1]=new Tt({start:s[s.length-1].start,left:s[s.length-1],operator:"=",right:Nt(!1),end:n.token})),p&&(i("punc","]")||c("Rest element must be last element"),s[s.length-1]=new we({start:r,expression:s[s.length-1],end:r}))}return _("]"),e.check_strict(),new Pe({start:d,names:s,is_array:!0,end:u()})}if(i("punc","{")){for(a();!i("punc","}");){if(l?l=!1:_(","),i("expand","...")&&(p=!0,r=n.token,e.mark_spread(n.token),a()),i("name")&&(J(o(),"punc")||J(o(),"operator"))&&[",","}","="].includes(o().value)){e.add_parameter(n.token);var m=u(),E=me(t);p?s.push(new we({start:r,expression:E,end:E.end})):s.push(new Ot({start:m,key:E.name,value:E,end:E.end}))}else{if(i("punc","}"))continue;var h=n.token,D=ue();null===D?f(u()):"name"!==u().type||i("punc",":")?(_(":"),s.push(new Ot({start:h,quote:h.quote,key:D,value:w(e,t),end:u()}))):s.push(new Ot({start:u(),key:D,value:new t({start:u(),name:D,end:u()}),end:u()}))}p?i("punc","}")||c("Rest element must be last element"):i("operator","=")&&(e.mark_default_assignment(n.token),a(),s[s.length-1].value=new Tt({start:s[s.length-1].value.start,left:s[s.length-1].value,operator:"=",right:Nt(!1),end:n.token}))}return _("}"),e.check_strict(),new Pe({start:d,names:s,is_array:!1,end:u()})}if(i("name"))return e.add_parameter(n.token),me(t);c("Invalid function parameter")}function x(e,r,o,s,u){var c=n.in_loop,l=n.labels,p=n.in_generator,d=n.in_async;if(++n.in_function,r&&(n.in_generator=n.in_function),o&&(n.in_async=n.in_function),u&&function(e){var r=M(!0,n.input.has_directive("use strict"));for(_("(");!i("punc",")");){var o=N(r);if(e.push(o),i("punc",")")||(_(","),i("punc",")")&&t.ecma<8&&f()),o instanceof we)break}a()}(u),e&&(n.in_directives=!0),n.in_loop=0,n.labels=[],e){n.input.push_directives_stack();var m=k();s&&fe(s),u&&u.forEach(fe),n.input.pop_directives_stack()}else m=Nt(!1);return--n.in_function,n.in_loop=c,n.labels=l,n.in_generator=p,n.in_async=d,m}function k(){_("{");for(var e=[];!i("punc","}");)i("eof")&&f(),e.push(b());return a(),e}function I(){_("{");for(var e,t=[],r=null,o=null;!i("punc","}");)i("eof")&&f(),i("keyword","case")?(o&&(o.end=u()),r=[],o=new Je({start:(e=n.token,a(),e),expression:Nt(!0),body:r}),t.push(o),_(":")):i("keyword","default")?(o&&(o.end=u()),r=[],o=new Qe({start:(e=n.token,a(),_(":"),e),body:r}),t.push(o)):(r||f(),r.push(b()));return o&&(o.end=u()),a(),t}function L(e,t){for(var r,o=[];;){var s="var"===t?Vt:"const"===t?Bt:"let"===t?Kt:null;if(i("punc","{")||i("punc","[")?r=new lt({start:n.token,name:w(void 0,s),value:i("operator","=")?(p("operator","="),Nt(!1,e)):null,end:u()}):"import"==(r=new lt({start:n.token,name:me(s),value:i("operator","=")?(a(),Nt(!1,e)):e||"const"!==t?null:c("Missing initializer in const declaration"),end:u()})).name.name&&c("Unexpected token: import"),o.push(r),!i("punc",","))break;a()}return o}var V=function(e){return new rt({start:u(),definitions:L(e,"var"),end:u()})},P=function(e){return new ot({start:u(),definitions:L(e,"let"),end:u()})},K=function(e){return new at({start:u(),definitions:L(e,"const"),end:u()})};function U(){var e,t=n.token;switch(t.type){case"name":e=ce(Zt);break;case"num":e=new an({start:t,end:t,value:t.value});break;case"string":e=new on({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new sn({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new mn({start:t,end:t});break;case"true":e=new En({start:t,end:t});break;case"null":e=new cn({start:t,end:t})}}return a(),e}function G(e,t,n,i){var r=function(e,t){return t?new Tt({start:e.start,left:e,operator:"=",right:t,end:t.end}):e};return e instanceof yt?r(new Pe({start:e.start,end:e.end,is_array:!1,names:e.properties.map(G)}),i):e instanceof Ot?(e.value=G(e.value,0,[e.key]),r(e,i)):e instanceof pn?e:e instanceof Pe?(e.names=e.names.map(G),r(e,i)):e instanceof Zt?r(new Ut({name:e.name,start:e.start,end:e.end}),i):e instanceof we?(e.expression=G(e.expression),r(e,i)):e instanceof bt?r(new Pe({start:e.start,end:e.end,is_array:!0,names:e.elements.map(G)}),i):e instanceof vt?r(G(e.left,void 0,void 0,e.right),i):e instanceof Tt?(e.left=G(e.left,0,[e.left]),e):void c("Invalid function parameter",e.start.line,e.start.col)}var H=function(e,r){if(i("operator","new"))return function(e){var r=n.token;if(p("operator","new"),i("punc","."))return a(),p("name","target"),he(new It({start:r,end:u()}),e);var o,s=H(!1);i("punc","(")?(a(),o=z(")",t.ecma>=8)):o=[];var c=new pt({start:r,expression:s,args:o,end:u()});return Ee(c),he(c,e)}(e);var s,c=n.token,l=i("name","async")&&"["!=(s=o()).value&&"arrow"!=s.type&&U();if(i("punc")){switch(n.token.value){case"(":if(l&&!e)break;var d=function(e,r){var o,s,c,l=[];for(_("(");!i("punc",")");)o&&f(o),i("expand","...")?(o=n.token,r&&(s=n.token),a(),l.push(new we({start:u(),expression:Nt(),end:n.token}))):l.push(Nt()),i("punc",")")||(_(","),i("punc",")")&&(t.ecma<8&&f(),c=u(),r&&(s=c)));return _(")"),e&&i("arrow","=>")?o&&c&&f(c):s&&f(s),l}(r,!l);if(r&&i("arrow","=>"))return F(c,d.map(G),!!l);var m=l?new ft({expression:l,args:d}):1==d.length?d[0]:new _t({expressions:d});if(m.start){var E=c.comments_before.length;if([].unshift.apply(m.start.comments_before,c.comments_before),c.comments_before=m.start.comments_before,c.comments_before_length=E,0==E&&c.comments_before.length>0){var h=c.comments_before[0];h.nlb||(h.nlb=c.nlb,c.nlb=!1)}c.comments_after=m.start.comments_after}m.start=c;var D=u();return m.end&&(D.comments_before=m.end.comments_before,[].push.apply(m.end.comments_after,D.comments_after),D.comments_after=m.end.comments_after),m.end=D,m instanceof ft&&Ee(m),he(m,e);case"[":return he(W(),e);case"{":return he(q(),e)}l||f()}if(r&&i("name")&&J(o(),"arrow")){var g=new Ut({name:n.token.value,start:c,end:c});return a(),F(c,[g],!!l)}if(i("keyword","function")){a();var S=R(Ie,!1,!!l);return S.start=c,S.end=u(),he(S,e)}if(l)return he(l,e);if(i("keyword","class")){a();var A=$(xt);return A.start=c,A.end=u(),he(A,e)}return i("template_head")?he(X(!1),e):ae(n.token.type)?he(U(),e):void f()};function X(e){var t=[],i=n.token;for(t.push(new Ue({start:n.token,raw:n.token.raw,value:n.token.value,end:n.token}));!1===n.token.end;)a(),T(),t.push(Nt(!0)),J("template_substitution")||f(),t.push(new Ue({start:n.token,raw:n.token.raw,value:n.token.value,end:n.token}));return a(),new Ke({start:i,segments:t,end:n.token})}function z(e,t,r){for(var o=!0,s=[];!i("punc",e)&&(o?o=!1:_(","),!t||!i("punc",e));)i("punc",",")&&r?s.push(new pn({start:n.token,end:n.token})):i("expand","...")?(a(),s.push(new we({start:u(),expression:Nt(),end:n.token}))):s.push(Nt(!1));return a(),s}var W=A(function(){return _("["),new bt({elements:z("]",!t.strict,!0)})}),Y=A(function(e,t){return R(ke,e,t)}),q=A(function(){var e=n.token,r=!0,o=[];for(_("{");!i("punc","}")&&(r?r=!1:_(","),t.strict||!i("punc","}"));)if("expand"!=(e=n.token).type){var s,c=ue();if(i("punc",":"))null===c?f(u()):(a(),s=Nt(!1));else{var l=j(c,e);if(l){o.push(l);continue}s=new Zt({start:u(),name:c,end:u()})}i("operator","=")&&(a(),s=new vt({start:e,left:s,operator:"=",right:Nt(!1),end:u()})),o.push(new Ot({start:e,quote:e.quote,key:c instanceof le?c:""+c,value:s,end:u()}))}else a(),o.push(new we({start:e,expression:Nt(!1),end:u()}));return a(),new yt({properties:o})});function $(e){var t,r,o,s,c=[];for(n.input.push_directives_stack(),n.input.add_directive("use strict"),"name"==n.token.type&&"extends"!=n.token.value&&(o=me(e===wt?zt:Wt)),e!==wt||o||f(),"extends"==n.token.value&&(a(),s=Nt(!0)),_("{"),i("punc",";")&&a();!i("punc","}");)t=n.token,(r=j(ue(),t,!0))||f(),c.push(r),i("punc",";")&&a();return n.input.pop_directives_stack(),a(),new e({start:t,name:o,extends:s,properties:c,end:u()})}function j(e,t,r){var o=function(e,t){return"string"==typeof e||"number"==typeof e?new Ht({start:t,name:""+e,end:u()}):(null===e&&f(),e)},a=!1,s=!1,c=!1,l=t;if(r&&"static"===e&&!i("punc","(")&&(s=!0,l=n.token,e=ue()),"async"!==e||i("punc","(")||i("punc",",")||i("punc","}")||(a=!0,l=n.token,e=ue()),null===e&&(c=!0,l=n.token,null===(e=ue())&&f()),i("punc","("))return e=o(e,t),new Mt({start:t,static:s,is_generator:c,async:a,key:e,quote:e instanceof Ht?l.quote:void 0,value:Y(c,a),end:u()});if(l=n.token,"get"==e){if(!i("punc")||i("punc","["))return e=o(ue(),t),new Rt({start:t,static:s,key:e,quote:e instanceof Ht?l.quote:void 0,value:Y(),end:u()})}else if("set"==e&&(!i("punc")||i("punc","[")))return e=o(ue(),t),new Ft({start:t,static:s,key:e,quote:e instanceof Ht?l.quote:void 0,value:Y(),end:u()})}function Z(e){function t(e){return new e({name:ue(),start:u(),end:u()})}var r,o,s=e?$t:Jt,c=e?qt:Qt,l=n.token;return e?r=t(s):o=t(c),i("name","as")?(a(),e?o=t(c):r=t(s)):e?o=new c(r):r=new s(o),new st({start:l,foreign_name:r,name:o,end:u()})}function ee(e,t){var i,r=e?$t:Jt,o=e?qt:Qt,a=n.token,s=u();return t=t||new o({name:"*",start:a,end:s}),i=new r({name:"*",start:a,end:s}),new st({start:a,foreign_name:i,name:t,end:s})}function se(e){var t;if(i("punc","{")){for(a(),t=[];!i("punc","}");)t.push(Z(e)),i("punc",",")&&a();a()}else if(i("operator","*")){var n;a(),e&&i("name","as")&&(a(),n=me(e?qt:Jt)),t=[ee(e,n)]}return t}function ue(){var e=n.token;switch(e.type){case"punc":if("["===e.value){a();var t=Nt(!1);return _("]"),t}f(e);case"operator":if("*"===e.value)return a(),null;["delete","in","instanceof","new","typeof","void"].includes(e.value)||f(e);case"name":"yield"==e.value&&(E()?l(e,"Yield cannot be used as identifier inside generators"):J(o(),"punc",":")||J(o(),"punc","(")||!n.input.has_directive("use strict")||l(e,"Unexpected yield identifier inside strict mode"));case"string":case"num":case"keyword":case"atom":return a(),e.value;default:f(e)}}function ce(e){var t=n.token.value;return new("this"==t?tn:"super"==t?nn:e)({name:String(t),start:n.token,end:n.token})}function fe(e){var t=e.name;E()&&"yield"==t&&l(e.start,"Yield cannot be used as identifier inside generators"),n.input.has_directive("use strict")&&("yield"==t&&l(e.start,"Unexpected yield identifier inside strict mode"),e instanceof Lt&&("arguments"==t||"eval"==t)&&l(e.start,"Unexpected "+t+" in strict mode"))}function me(e,t){if(!i("name"))return t||c("Name expected"),null;var n=ce(e);return fe(n),a(),n}function Ee(e){for(var t=e.start,n=t.comments_before,i=v(t,"comments_before_length")?t.comments_before_length:n.length;--i>=0;){var r=n[i];if(/[@#]__PURE__/.test(r.value)){e.pure=r;break}}}var he=function(e,t){var r,o=e.start;if(i("punc","."))return a(),he(new mt({start:o,expression:e,property:(r=n.token,"name"!=r.type&&f(),a(),r.value),end:u()}),t);if(i("punc","[")){a();var s=Nt(!0);return _("]"),he(new Et({start:o,expression:e,property:s,end:u()}),t)}if(t&&i("punc","(")){a();var c=new ft({start:o,expression:e,args:Se(),end:u()});return Ee(c),he(c,!0)}return i("template_head")?he(new Be({start:o,prefix:e,template_string:X(),end:u()}),t):e},Se=A(function(){for(var e=[];!i("punc",")");)i("expand","...")?(a(),e.push(new we({start:u(),expression:Nt(!1),end:u()}))):e.push(Nt(!1)),i("punc",")")||(_(","),i("punc",")")&&t.ecma<8&&f());return a(),e}),Te=function(e,t){var r=n.token;if("name"==r.type&&"await"==r.value){if(h())return a(),h()||c("Unexpected await expression outside async function",n.prev.line,n.prev.col,n.prev.pos),new hn({start:u(),end:n.token,expression:Te(!0)});n.input.has_directive("use strict")&&l(n.token,"Unexpected await identifier inside strict mode")}if(i("operator")&&ne(r.value)){a(),T();var o=Me(Dt,r,Te(e));return o.start=r,o.end=u(),o}for(var s=H(e,t);i("operator")&&ie(n.token.value)&&!d(n.token);)s instanceof Le&&f(),(s=Me(gt,n.token,s)).start=r,s.end=n.token,a();return s};function Me(e,t,i){var r=t.value;switch(r){case"++":case"--":We(i)||c("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":i instanceof Zt&&n.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",i.start.line,i.start.col,i.start.pos)}return new e({operator:r,expression:i})}var Ge=function(e,t,r){var o=i("operator")?n.token.value:null;"in"==o&&r&&(o=null),"**"==o&&e instanceof Dt&&!J(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&f(e.start);var s=null!=o?oe[o]:null;if(null!=s&&(s>t||"**"===o&&t===s)){a();var u=Ge(Te(!0),s,r);return Ge(new St({start:e.start,left:e,operator:o,right:u,end:u.end}),t,r)}return e};var He=function(e){var t=n.token,r=function(e){return Ge(Te(!0,!0),0,e)}(e);if(i("operator","?")){a();var o=Nt(!1);return _(":"),new At({start:t,condition:r,consequent:o,alternative:Nt(!1,e),end:u()})}return r};function We(e){return e instanceof dt||e instanceof Zt}function Ze(e){if(e instanceof yt)e=new Pe({start:e.start,names:e.properties.map(Ze),is_array:!1,end:e.end});else if(e instanceof bt){for(var t=[],n=0;n=0;)o+="this."+t[a]+" = props."+t[a]+";";var s=i&&new i;(s&&s.initialize||n&&n.initialize)&&(o+="this.initialize();"),o+="}}";var u=new Function(o)();if(s&&(u.prototype=s,u.BASE=i),i&&i.SUBCLASSES.push(u),u.prototype.CTOR=u,u.PROPS=t||null,u.SELF_PROPS=r,u.SUBCLASSES=[],e&&(u.prototype.TYPE=u.TYPE=e),n)for(a in n)v(n,a)&&(/^\$/.test(a)?u[a.substr(1)]=n[a]:u.prototype[a]=n[a]);return u.DEFMETHOD=function(e,t){this.prototype[e]=t},u}var ce=ue("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null),le=ue("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new Sn(function(e){if(e!==t)return e.clone(!0)}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)}},null);le.warn_function=null,le.warn=function(e,t){le.warn_function&&le.warn_function(E(e,t))};var fe=ue("Statement",null,{$documentation:"Base class of all statements"}),pe=ue("Debugger",null,{$documentation:"Represents a debugger statement"},fe),_e=ue("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},fe),de=ue("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})}},fe);function me(e,t){var n=e.body;if(n instanceof le)n._walk(t);else for(var i=0,r=n.length;i SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone:function(e){var t=this._clone(e);return this.variables&&(t.variables=this.variables.clone()),this.functions&&(t.functions=this.functions.clone()),this.enclosed&&(t.enclosed=this.enclosed.slice()),t},pinned:function(){return this.uses_eval||this.uses_with}},he),Ne=ue("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body,n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return n=(n=se(n)).transform(new Sn(function(e){if(e instanceof _e&&"$ORIG"==e.value)return d.splice(t)}))},wrap_enclose:function(e){"string"!=typeof e&&(e="");var t=e.indexOf(":");t<0&&(t=e.length);var n=this.body;return se(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new Sn(function(e){if(e instanceof _e&&"$ORIG"==e.value)return d.splice(n)}))}},Me),we=ue("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){var t=this;return e._visit(this,function(){t.expression.walk(e)})}}),xe=ue("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){for(var e=[],t=0;t b)"},xe),Ve=ue("Defun","inlined",{$documentation:"A function definition"},xe),Pe=ue("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,function(){this.names.forEach(function(t){t._walk(e)})})},all_symbols:function(){var e=[];return this.walk(new gn(function(t){t instanceof kt&&e.push(t),t instanceof we&&e.push(t.expression)})),e}}),Be=ue("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_SymbolRef|AST_PropAccess] The prefix, which can be a symbol such as `foo` or a dotted expression such as `String.raw`."},_walk:function(e){this.prefix._walk(e),this.template_string._walk(e)}}),Ke=ue("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,function(){this.segments.forEach(function(t){t._walk(e)})})}}),Ue=ue("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}}),Ge=ue("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},fe),He=ue("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})}},Ge),Xe=ue("Return",null,{$documentation:"A `return` statement"},He),ze=ue("Throw",null,{$documentation:"A `throw` statement"},He),We=ue("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})}},Ge),Ye=ue("Break",null,{$documentation:"A `break` statement"},We),qe=ue("Continue",null,{$documentation:"A `continue` statement"},We),$e=ue("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)})}},Se),je=ue("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),me(this,e)})}},he),Ze=ue("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},he),Qe=ue("Default",null,{$documentation:"A `default` switch branch"},Ze),Je=ue("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),me(this,e)})}},Ze),et=ue("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,function(){me(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},he),tt=ue("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,function(){this.argname&&this.argname._walk(e),me(this,e)})}},he),nt=ue("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},he),it=ue("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){for(var t=this.definitions,n=0,i=t.length;n a`"},St),bt=ue("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){for(var t=this.elements,n=0,i=t.length;n=0;){var i=t[n];if(i instanceof e)return i}},has_directive:function(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof Me&&n.body)for(var i=0;i=0;){if((i=t[n])instanceof Ae&&i.label.name==e.label.name)return i.body}else for(n=t.length;--n>=0;){var i;if((i=t[n])instanceof ve||e instanceof Ye&&i instanceof je)return i}}},Sn.prototype=new gn;var An=Object.freeze({AST_Accessor:ke,AST_Array:bt,AST_Arrow:Le,AST_Assign:vt,AST_Atom:un,AST_Await:hn,AST_Binary:St,AST_Block:he,AST_BlockStatement:De,AST_Boolean:dn,AST_Break:Ye,AST_Call:ft,AST_Case:Je,AST_Catch:tt,AST_Class:Nt,AST_ClassExpression:xt,AST_ConciseMethod:Mt,AST_Conditional:At,AST_Const:at,AST_Constant:rn,AST_Continue:qe,AST_Debugger:pe,AST_Default:Qe,AST_DefaultAssign:Tt,AST_DefClass:wt,AST_Definitions:it,AST_Defun:Ve,AST_Destructuring:Pe,AST_Directive:_e,AST_Do:be,AST_Dot:mt,AST_DWLoop:Te,AST_EmptyStatement:ge,AST_Exit:He,AST_Expansion:we,AST_Export:ct,AST_False:mn,AST_Finally:nt,AST_For:Ce,AST_ForIn:Oe,AST_ForOf:Fe,AST_Function:Ie,AST_Hole:pn,AST_If:$e,AST_Import:ut,AST_Infinity:_n,AST_IterationStatement:ve,AST_Jump:Ge,AST_Label:jt,AST_LabeledStatement:Ae,AST_LabelRef:en,AST_Lambda:xe,AST_Let:ot,AST_LoopControl:We,AST_NameMapping:st,AST_NaN:ln,AST_New:pt,AST_NewTarget:It,AST_Node:le,AST_Null:cn,AST_Number:an,AST_Object:yt,AST_ObjectGetter:Rt,AST_ObjectKeyVal:Ot,AST_ObjectProperty:Ct,AST_ObjectSetter:Ft,AST_PrefixedTemplateString:Be,AST_PropAccess:dt,AST_RegExp:sn,AST_Return:Xe,AST_Scope:Me,AST_Sequence:_t,AST_SimpleStatement:de,AST_Statement:fe,AST_StatementWithBody:Se,AST_String:on,AST_Sub:Et,AST_Super:nn,AST_Switch:je,AST_SwitchBranch:Ze,AST_Symbol:kt,AST_SymbolBlockDeclaration:Pt,AST_SymbolCatch:Yt,AST_SymbolClass:Wt,AST_SymbolConst:Bt,AST_SymbolDeclaration:Lt,AST_SymbolDefClass:zt,AST_SymbolDefun:Gt,AST_SymbolExport:Qt,AST_SymbolExportForeign:Jt,AST_SymbolFunarg:Ut,AST_SymbolImport:qt,AST_SymbolImportForeign:$t,AST_SymbolLambda:Xt,AST_SymbolLet:Kt,AST_SymbolMethod:Ht,AST_SymbolRef:Zt,AST_SymbolVar:Vt,AST_TemplateSegment:Ue,AST_TemplateString:Ke,AST_This:tn,AST_Throw:ze,AST_Token:ce,AST_Toplevel:Ne,AST_True:En,AST_Try:et,AST_Unary:ht,AST_UnaryPostfix:gt,AST_UnaryPrefix:Dt,AST_Undefined:fn,AST_Var:rt,AST_VarDef:lt,AST_While:ye,AST_With:Re,AST_Yield:Dn,TreeTransformer:Sn,TreeWalker:gn,walk_body:me});!function(e){function t(t,n){t.DEFMETHOD("transform",function(t,i){var r,o;return t.push(this),t.before&&(r=t.before(this,n,i)),r===e&&(n(r=this,t),t.after&&(o=t.after(r,i))!==e&&(r=o)),t.pop(),r})}function n(e,t){return d(e,function(e){return e.transform(t,!0)})}t(le,c),t(Ae,function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)}),t(de,function(e,t){e.body=e.body.transform(t)}),t(he,function(e,t){e.body=n(e.body,t)}),t(be,function(e,t){e.body=e.body.transform(t),e.condition=e.condition.transform(t)}),t(ye,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)}),t(Ce,function(e,t){e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)}),t(Oe,function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)}),t(Re,function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)}),t(He,function(e,t){e.value&&(e.value=e.value.transform(t))}),t(We,function(e,t){e.label&&(e.label=e.label.transform(t))}),t($e,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))}),t(je,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),t(Je,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),t(et,function(e,t){e.body=n(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))}),t(tt,function(e,t){e.argname&&(e.argname=e.argname.transform(t)),e.body=n(e.body,t)}),t(it,function(e,t){e.definitions=n(e.definitions,t)}),t(lt,function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))}),t(Pe,function(e,t){e.names=n(e.names,t)}),t(xe,function(e,t){e.name&&(e.name=e.name.transform(t)),e.argnames=n(e.argnames,t),e.body instanceof le?e.body=e.body.transform(t):e.body=n(e.body,t)}),t(ft,function(e,t){e.expression=e.expression.transform(t),e.args=n(e.args,t)}),t(_t,function(e,t){e.expressions=n(e.expressions,t)}),t(mt,function(e,t){e.expression=e.expression.transform(t)}),t(Et,function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)}),t(Dn,function(e,t){e.expression&&(e.expression=e.expression.transform(t))}),t(hn,function(e,t){e.expression=e.expression.transform(t)}),t(ht,function(e,t){e.expression=e.expression.transform(t)}),t(St,function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)}),t(At,function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)}),t(bt,function(e,t){e.elements=n(e.elements,t)}),t(yt,function(e,t){e.properties=n(e.properties,t)}),t(Ct,function(e,t){e.key instanceof le&&(e.key=e.key.transform(t)),e.value=e.value.transform(t)}),t(Nt,function(e,t){e.name&&(e.name=e.name.transform(t)),e.extends&&(e.extends=e.extends.transform(t)),e.properties=n(e.properties,t)}),t(we,function(e,t){e.expression=e.expression.transform(t)}),t(st,function(e,t){e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)}),t(ut,function(e,t){e.imported_name&&(e.imported_name=e.imported_name.transform(t)),e.imported_names&&n(e.imported_names,t),e.module_name=e.module_name.transform(t)}),t(ct,function(e,t){e.exported_definition&&(e.exported_definition=e.exported_definition.transform(t)),e.exported_value&&(e.exported_value=e.exported_value.transform(t)),e.exported_names&&n(e.exported_names,t),e.module_name&&(e.module_name=e.module_name.transform(t))}),t(Ke,function(e,t){e.segments=n(e.segments,t)}),t(Be,function(e,t){e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)})}();var vn=/^$|[;{][\s\n]*$/;function Tn(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function bn(e){var t=!e;void 0===(e=s(e,{ascii_only:!1,beautify:!1,braces:!1,comments:!1,ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_quoted_props:!1,max_line_len:!1,preamble:null,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1},!0)).shorthand&&(e.shorthand=e.ecma>5);var n=l;if(e.comments){var i=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var r=e.comments.lastIndexOf("/");i=new RegExp(e.comments.substr(1,r-1),e.comments.substr(r+1))}n=i instanceof RegExp?function(e){return"comment5"!=e.type&&i.test(e.value)}:"function"==typeof i?function(e){return"comment5"!=e.type&&i(this,e)}:"some"===i?Tn:f}var o=0,a=0,u=1,p=0,_="",d=e.ascii_only?function(t,n){return e.ecma>=6&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){var t,n;return"\\u{"+(t=e,n=0,X(t.charAt(n))?65536+(t.charCodeAt(n)-55296<<10)+t.charCodeAt(n+1)-56320:t.charCodeAt(n)).toString(16)+"}"})),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t})}:function(e){for(var t="",n=0,i=e.length;nr?o():a()}}(t,n);return e.inline_script&&(i=(i=(i=i.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),i}function E(t){return function e(t,n){if(n<=0)return"";if(1==n)return t;var i=e(t,n>>1);return i+=i,1&n&&(i+=t),i}(" ",e.indent_start+o-t*e.indent_level)}var h,D,A=!1,v=!1,T=!1,b=0,y=!1,C=!1,O=-1,F="",R=e.source_map&&[],M=R?function(){R.forEach(function(t){try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){null!=t.token.file&&le.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:t.token.file,line:t.token.line,col:t.token.col,cline:t.line,ccol:t.col,name:t.name||""})}}),R=[]}:c,N=e.max_line_len?function(){if(a>e.max_line_len){if(b){var t=_.slice(0,b),n=_.slice(b);if(R){var i=n.length-a;R.forEach(function(e){e.line++,e.col+=i})}_=t+"\n"+n,u++,p++,a=n.length}a>e.max_line_len&&le.warn("Output exceeds {max_line_len} characters",e)}b&&(b=0,M())}:c,w=g("( [ + * / - , . `");function x(t){var n=H(t=String(t),0);y&&n&&(y=!1,"\n"!==n&&(x("\n"),I())),C&&n&&(C=!1,/[\s;})]/.test(n)||k()),O=-1;var i=F.charAt(F.length-1);T&&(T=!1,(":"!==i||"}"!==n)&&(n&&";}".includes(n)||";"===i)||(e.semicolons||w(n)?(_+=";",a++,p++):(N(),_+="\n",p++,u++,a=0,/^\s+$/.test(t)&&(T=!0)),e.beautify||(v=!1))),v&&(($(i)&&($(n)||"\\"==n)||"/"==n&&n==i||("+"==n||"-"==n)&&n==F)&&(_+=" ",a++,p++),v=!1),h&&(R.push({token:h,name:D,line:u,col:a}),h=!1,b||M()),_+=t,A="("==t[t.length-1],p+=t.length;var r=t.split(/\r?\n/),o=r.length-1;u+=o,a+=r[0].length,o>0&&(N(),a=r[o].length),F=t}var k=e.beautify?function(){x(" ")}:function(){v=!0},I=e.beautify?function(t){e.beautify&&x(E(t?.5:0))}:c,L=e.beautify?function(e,t){!0===e&&(e=K());var n=o;o=e;var i=t();return o=n,i}:function(e,t){return t()},V=e.beautify?function(){if(O<0)return x("\n");"\n"!=_[O]&&(_=_.slice(0,O)+"\n"+_.slice(O),p++,u++),O++}:e.max_line_len?function(){N(),b=_.length}:c,P=e.beautify?function(){x(";")}:function(){T=!0};function B(){T=!1,x(";")}function K(){return o+e.indent_level}function U(){return b&&N(),_}function G(){var e=_.lastIndexOf("\n");return/^ *$/.test(_.slice(e+1))}var W=[];return{get:U,toString:U,indent:I,indentation:function(){return o},current_width:function(){return a-o},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return A},newline:V,print:x,star:function(){x("*")},space:k,comma:function(){x(","),k()},colon:function(){x(":"),k()},last:function(){return F},semicolon:P,force_semicolon:B,to_utf8:d,print_name:function(e){x(function(e){return e=e.toString(),e=d(e,!0)}(e))},print_string:function(e,t,n){var i=m(e,t);!0!==n||i.includes("\\")||(vn.test(_)||B(),B()),x(i)},print_template_string_chars:function(e){var t=m(e,"`").replace(/\${/g,"\\${");return x(t.substr(1,t.length-2))},encode_string:m,next_indent:K,with_indent:L,with_block:function(e){var t;return x("{"),V(),L(K(),function(){t=e()}),I(),x("}"),t},with_parens:function(e){x("(");var t=e();return x(")"),t},with_square:function(e){x("[");var t=e();return x("]"),t},add_mapping:R?function(e,t){h=e,D=t}:c,option:function(t){return e[t]},prepend_comments:t?c:function(t){var i=this,r=t.start;if(r&&(!r.comments_before||r.comments_before._dumped!==i)){var o=r.comments_before;if(o||(o=r.comments_before=[]),o._dumped=i,t instanceof He&&t.value){var a=new gn(function(e){var t=a.parent();if(!(t instanceof He||t instanceof St&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof At&&t.condition===e||t instanceof mt&&t.expression===e||t instanceof _t&&t.expressions[0]===e||t instanceof Et&&t.expression===e||t instanceof gt))return!0;if(e.start){var n=e.start.comments_before;n&&n._dumped!==i&&(n._dumped=i,o=o.concat(n))}});a.push(t),t.value.walk(a)}if(0==p){o.length>0&&e.shebang&&"comment5"==o[0].type&&(x("#!"+o.shift().value+"\n"),I());var s=e.preamble;s&&x(s.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(o=o.filter(n,t)).length){var u=G();o.forEach(function(e,t){u||(e.nlb?(x("\n"),I(),u=!0):t>0&&k()),/comment[134]/.test(e.type)?(x("//"+e.value.replace(/[@#]__PURE__/g," ")+"\n"),I(),u=!0):"comment2"==e.type&&(x("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),u=!1)}),u||(r.nlb?(x("\n"),I()):k())}}},append_comments:t||n===l?c:function(e,t){var i=e.end;if(i){var r=i[t?"comments_before":"comments_after"];if(r&&r._dumped!==this&&(e instanceof fe||S(r,function(e){return!/comment[134]/.test(e.type)}))){r._dumped=this;var o=_.length;r.filter(n,e).forEach(function(e,n){C=!1,y?(x("\n"),I(),y=!1):e.nlb&&(n>0||!G())?(x("\n"),I()):(n>0||!t)&&k(),/comment[134]/.test(e.type)?(x("//"+e.value.replace(/[@#]__PURE__/g," ")),y=!0):"comment2"==e.type&&(x("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),C=!0)}),_.length>o&&(O=o)}}},line:function(){return u},col:function(){return a},pos:function(){return p},push_node:function(e){W.push(e)},pop_node:function(){return W.pop()},parent:function(e){return W[W.length-2-(e||0)]}}}function yn(e,t,n){this.name=t.name,this.orig=[t],this.init=n,this.eliminated=0,this.scope=e,this.references=[],this.replaced=0,this.global=!1,this.export=!1,this.mangled_name=null,this.undeclared=!1,this.id=yn.next_id++}!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}var t=!1,n=null,i=null;function r(e,t){Array.isArray(e)?e.forEach(function(e){r(e,t)}):e.DEFMETHOD("needs_parens",t)}function o(e,n,i,r){var o=e.length-1;t=r,e.forEach(function(e,r){!0!==t||e instanceof _e||e instanceof ge||e instanceof de&&e.body instanceof on||(t=!1),e instanceof ge||(i.indent(),e.print(i),r==o&&n||(i.newline(),n&&i.newline())),!0===t&&e instanceof de&&e.body instanceof on&&(t=!1)}),t=!1}function a(e,t){t.print("{"),t.with_indent(t.next_indent(),function(){t.append_comments(e,!0)}),t.print("}")}function s(e,t,n){e.body.length>0?t.with_block(function(){o(e.body,!1,t,n)}):a(e,t)}function u(e,t,n){var i=!1;n&&e.walk(new gn(function(e){return!!(i||e instanceof Me)||(e instanceof St&&"in"==e.operator?(i=!0,!0):void 0)})),e.print(t,i)}function f(e,t,n){n.option("quote_keys")?n.print_string(e):""+ +e==e&&e>=0?n.print(d(e)):(O(e)?!n.option("ie8"):j(e))?t&&n.option("keep_quoted_props")?n.print_string(e,t):n.print_name(e):n.print_string(e,t)}function p(e,t){t.option("braces")?m(e,t):!e||e instanceof ge?t.force_semicolon():e.print(t)}function _(e,t){return e.args.length>0||t.option("beautify")}function d(e){var t,n=[e.toString(10).replace(/^0\./,".").replace("e+","e")];return Math.floor(e)===e?(n.push((e>=0?"0x":"-0x")+e.toString(16).toLowerCase()),(t=/^(.*?)(0{3,})$/.exec(e))&&n.push(t[1]+"e"+t[2].length)):(t=/^0?\.(0+)(.*)$/.exec(e))&&n.push(t[2]+"e-"+(t[1].length+t[2].length)),function(e){for(var t=e[0],n=t.length,i=1;io||i==o&&(this===t.right||"**"==n))return!0}}),r(Dn,function(e){var t=e.parent();return t instanceof St&&"="!==t.operator||(t instanceof ft&&t.expression===this||(t instanceof At&&t.condition===this||(t instanceof ht||(t instanceof dt&&t.expression===this||void 0))))}),r(dt,function(e){var t=e.parent();if(t instanceof pt&&t.expression===this){var n=!1;return this.walk(new gn(function(e){return!!(n||e instanceof Me)||(e instanceof ft?(n=!0,!0):void 0)})),n}}),r(ft,function(e){var t,n=e.parent();return!!(n instanceof pt&&n.expression===this||n instanceof ct&&n.is_default&&this.expression instanceof Ie)||this.expression instanceof Ie&&n instanceof dt&&n.expression===this&&(t=e.parent(1))instanceof vt&&t.left===n}),r(pt,function(e){var t=e.parent();if(!_(this,e)&&(t instanceof dt||t instanceof ft&&t.expression===this))return!0}),r(an,function(e){var t=e.parent();if(t instanceof dt&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(d(n)))return!0}}),r([vt,At],function(e){var t=e.parent();return t instanceof ht||(t instanceof St&&!(t instanceof vt)||(t instanceof ft&&t.expression===this||(t instanceof At&&t.condition===this||(t instanceof dt&&t.expression===this||(this instanceof vt&&this.left instanceof Pe&&!1===this.left.is_array||void 0)))))}),e(_e,function(e,t){t.print_string(e.value,e.quote),t.semicolon()}),e(we,function(e,t){t.print("..."),e.expression.print(t)}),e(Pe,function(e,t){t.print(e.is_array?"[":"{");var n=e.names.length;e.names.forEach(function(e,i){i>0&&t.comma(),e.print(t),i==n-1&&e instanceof pn&&t.comma()}),t.print(e.is_array?"]":"}")}),e(pe,function(e,t){t.print("debugger"),t.semicolon()}),Se.DEFMETHOD("_do_print_body",function(e){p(this.body,e)}),e(fe,function(e,t){e.body.print(t),t.semicolon()}),e(Ne,function(e,t){o(e.body,!0,t,!0),t.print("")}),e(Ae,function(e,t){e.label.print(t),t.colon(),e.body.print(t)}),e(de,function(e,t){e.body.print(t),t.semicolon()}),e(De,function(e,t){s(e,t)}),e(ge,function(e,t){t.semicolon()}),e(be,function(e,t){t.print("do"),t.space(),m(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.semicolon()}),e(ye,function(e,t){t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e._do_print_body(t)}),e(Ce,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init?(e.init instanceof it?e.init.print(t):u(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)}),t.space(),e._do_print_body(t)}),e(Oe,function(e,t){t.print("for"),e.await&&(t.space(),t.print("await")),t.space(),t.with_parens(function(){e.init.print(t),t.space(),t.print(e instanceof Fe?"of":"in"),t.space(),e.object.print(t)}),t.space(),e._do_print_body(t)}),e(Re,function(e,t){t.print("with"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e._do_print_body(t)}),xe.DEFMETHOD("_do_print",function(e,t){var n=this;t||(n.async&&(e.print("async"),e.space()),e.print("function"),n.is_generator&&e.star(),n.name&&e.space()),n.name instanceof kt?n.name.print(e):t&&n.name instanceof le&&e.with_square(function(){n.name.print(e)}),e.with_parens(function(){n.argnames.forEach(function(t,n){n&&e.comma(),t.print(e)})}),e.space(),s(n,e,!0)}),e(xe,function(e,t){e._do_print(t)}),e(Be,function(e,t){var n=e.prefix,i=n instanceof Le||n instanceof St||n instanceof At||n instanceof _t||n instanceof ht;i&&t.print("("),e.prefix.print(t),i&&t.print(")"),e.template_string.print(t)}),e(Ke,function(e,t){var n=t.parent()instanceof Be;t.print("`");for(var i=0;i"),e.space(),t.body instanceof le?t.body.print(e):s(t,e),i&&e.print(")")}),He.DEFMETHOD("_do_print",function(e,t){e.print(t),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(Xe,function(e,t){e._do_print(t,"return")}),e(ze,function(e,t){e._do_print(t,"throw")}),e(Dn,function(e,t){var n=e.is_star?"*":"";t.print("yield"+n),e.expression&&(t.space(),e.expression.print(t))}),e(hn,function(e,t){t.print("await"),t.space();var n=e.expression,i=!(n instanceof ft||n instanceof Zt||n instanceof dt||n instanceof ht||n instanceof rn);i&&t.print("("),e.expression.print(t),i&&t.print(")")}),We.DEFMETHOD("_do_print",function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(Ye,function(e,t){e._do_print(t,"break")}),e(qe,function(e,t){e._do_print(t,"continue")}),e($e,function(e,t){t.print("if"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e.alternative?(!function(e,t){var n=e.body;if(t.option("braces")||t.option("ie8")&&n instanceof be)return m(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof $e){if(!n.alternative)return void m(e.body,t);n=n.alternative}else{if(!(n instanceof Se))break;n=n.body}p(e.body,t)}(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof $e?e.alternative.print(t):p(e.alternative,t)):e._do_print_body(t)}),e(je,function(e,t){t.print("switch"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space();var n=e.body.length-1;n<0?a(e,t):t.with_block(function(){e.body.forEach(function(e,i){t.indent(!0),e.print(t),i0&&t.newline()})})}),Ze.DEFMETHOD("_do_print_body",function(e){e.newline(),this.body.forEach(function(t){e.indent(),t.print(e),e.newline()})}),e(Qe,function(e,t){t.print("default:"),e._do_print_body(t)}),e(Je,function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)}),e(et,function(e,t){t.print("try"),t.space(),s(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))}),e(tt,function(e,t){t.print("catch"),e.argname&&(t.space(),t.with_parens(function(){e.argname.print(t)})),t.space(),s(e,t)}),e(nt,function(e,t){t.print("finally"),t.space(),s(e,t)}),it.DEFMETHOD("_do_print",function(e,t){e.print(t),e.space(),this.definitions.forEach(function(t,n){n&&e.comma(),t.print(e)});var n=e.parent();(!(n instanceof Ce||n instanceof Oe)||n&&n.init!==this)&&e.semicolon()}),e(ot,function(e,t){e._do_print(t,"let")}),e(rt,function(e,t){e._do_print(t,"var")}),e(at,function(e,t){e._do_print(t,"const")}),e(ut,function(e,t){t.print("import"),t.space(),e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(","),t.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(t):(t.print("{"),e.imported_names.forEach(function(n,i){t.space(),n.print(t),i0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),t.print(e)})}),e(_t,function(e,t){e._do_print(t)}),e(mt,function(e,t){var n=e.expression;n.print(t);var i=e.property;t.option("ie8")&&O(i)?(t.print("["),t.add_mapping(e.end),t.print_string(i),t.print("]")):(n instanceof an&&n.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(i))}),e(Et,function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")}),e(Dt,function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof Dt&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)}),e(gt,function(e,t){e.expression.print(t),t.print(e.operator)}),e(St,function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof gt&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof Dt&&"!"==e.right.operator&&e.right.expression instanceof Dt&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)}),e(At,function(e,t){e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)}),e(bt,function(e,t){t.with_square(function(){var n=e.elements,i=n.length;i>0&&t.space(),n.forEach(function(e,n){n&&t.comma(),e.print(t),n===i-1&&e instanceof pn&&t.comma()}),i>0&&t.space()})}),e(yt,function(e,t){e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&(t.print(","),t.newline()),t.indent(),e.print(t)}),t.newline()}):a(e,t)}),e(Nt,function(e,t){if(t.print("class"),t.space(),e.name&&(e.name.print(t),t.space()),e.extends){var n=!(e.extends instanceof Zt||e.extends instanceof dt||e.extends instanceof xt||e.extends instanceof Ie);t.print("extends"),n?t.print("("):t.space(),e.extends.print(t),n?t.print(")"):t.space()}e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&t.newline(),t.indent(),e.print(t)}),t.newline()}):t.print("{}")}),e(It,function(e,t){t.print("new.target")}),e(Ot,function(e,t){function n(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var i=t.option("shorthand");i&&e.value instanceof kt&&j(e.key)&&n(e.value)===e.key&&Y(e.key)?f(e.key,e.quote,t):i&&e.value instanceof Tt&&e.value.left instanceof kt&&j(e.key)&&n(e.value.left)===e.key?(f(e.key,e.quote,t),t.space(),t.print("="),t.space(),e.value.right.print(t)):(e.key instanceof le?t.with_square(function(){e.key.print(t)}):f(e.key,e.quote,t),t.colon(),e.value.print(t))}),Ct.DEFMETHOD("_print_getter_setter",function(e,t){var n=this;n.static&&(t.print("static"),t.space()),e&&(t.print(e),t.space()),n.key instanceof Ht?f(n.key.name,n.quote,t):t.with_square(function(){n.key.print(t)}),n.value._do_print(t,!0)}),e(Ft,function(e,t){e._print_getter_setter("set",t)}),e(Rt,function(e,t){e._print_getter_setter("get",t)}),e(Mt,function(e,t){var n;e.is_generator&&e.async?n="async*":e.is_generator?n="*":e.async&&(n="async"),e._print_getter_setter(n,t)}),kt.DEFMETHOD("_do_print",function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)}),e(kt,function(e,t){e._do_print(t)}),e(pn,c),e(tn,function(e,t){t.print("this")}),e(nn,function(e,t){t.print("super")}),e(rn,function(e,t){t.print(e.getValue())}),e(on,function(e,n){n.print_string(e.getValue(),e.quote,t)}),e(an,function(e,t){i&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(d(e.getValue()))}),e(sn,function(e,t){var n=e.getValue().toString();n=t.to_utf8(n),t.print(n);var i=t.parent();i instanceof St&&/^in/.test(i.operator)&&i.left===e&&t.print(" ")}),E([le,Ae,Ne],c),E([bt,De,tt,Nt,rn,pe,it,_e,nt,Ge,xe,pt,yt,Se,kt,je,Ze,et],function(e){e.add_mapping(this.start)}),E([Rt,Ft],function(e){e.add_mapping(this.start,this.key.name)}),E([Ct],function(e){e.add_mapping(this.start,this.key)})}(),yn.next_id=1;var Cn=1,On=2;function Fn(e,t){var n=e.enclosed;e:for(;;){var r=Rn(++e.cname);if(Y(r)&&!i(r,t.reserved)){for(var o=n.length;--o>=0;){var a=n[o];if(r==(a.mangled_name||a.unmangleable(t)&&a.name))continue e}return r}}}yn.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.export&Cn||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof Xt||this.orig[0]instanceof Gt)&&b(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof Ht||(this.orig[0]instanceof Wt||this.orig[0]instanceof zt)&&b(e.keep_classnames,this.orig[0].name)},mangle:function(e){var t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var n,i=this.scope,r=this.orig[0];e.ie8&&r instanceof Xt&&(i=i.parent_scope),(n=this.redefined())?this.mangled_name=n.mangled_name||n.name:this.mangled_name=i.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}},Ne.DEFMETHOD("figure_out_scope",function(e){e=s(e,{cache:null,ie8:!1,safari10:!1});var t=this,n=t.parent_scope=null,i=new A,r=null,o=null,a=[],u=new gn(function(t,s){if(t.is_block_scope()){var c=n;return t.block_scope=n=new Me(t),n.init_scope_vars(c),t instanceof Me||(n.uses_with=c.uses_with,n.uses_eval=c.uses_eval,n.directives=c.directives),e.safari10&&(t instanceof Ce||t instanceof Oe)&&a.push(n),s(),n=c,!0}if(t instanceof Pe)return o=t,s(),o=null,!0;if(t instanceof Me){t.init_scope_vars(n);c=n;var l=r,f=i;return r=n=t,i=new A,s(),n=c,r=l,i=f,!0}if(t instanceof Ae){var p=t.label;if(i.has(p.name))throw new Error(E("Label {name} defined twice",p));return i.set(p.name,p),s(),i.del(p.name),!0}if(t instanceof Re)for(var _=n;_;_=_.parent_scope)_.uses_with=!0;else{if(t instanceof kt&&(t.scope=n),t instanceof jt&&(t.thedef=t,t.references=[]),t instanceof Xt)r.def_function(t,"arguments"==t.name?void 0:r);else if(t instanceof Gt)h((t.scope=r.parent_scope.get_defun_scope()).def_function(t,r),1);else if(t instanceof Wt)h(r.def_variable(t,r),1);else if(t instanceof qt)n.def_variable(t);else if(t instanceof zt)h((t.scope=r.parent_scope).def_function(t,r),1);else if(t instanceof Vt||t instanceof Kt||t instanceof Bt){if(S((d=t instanceof Pt?n.def_variable(t,null):r.def_variable(t,"SymbolVar"==t.TYPE?null:void 0)).orig,function(e){return e===t||(t instanceof Pt?e instanceof Xt:!(e instanceof Kt||e instanceof Bt))})||Q(t.name+" redeclared",t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof Ut||h(d,2),d.destructuring=o,r!==n){t.mark_enclosed(e);var d=n.find_variable(t);t.thedef!==d&&(t.thedef=d,t.reference(e))}}else if(t instanceof Yt)n.def_variable(t).defun=r;else if(t instanceof en){var m=i.get(t.name);if(!m)throw new Error(E("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=m}n instanceof Ne||!(t instanceof ct||t instanceof ut)||Q(t.TYPE+" statement may only appear at top level",t.start.file,t.start.line,t.start.col,t.start.pos)}function h(e,t){if(o){var n=0;do{t++}while(u.parent(n++)!==o)}var i=u.parent(t);if(e.export=i instanceof ct&&Cn){var r=i.exported_definition;(r instanceof Ve||r instanceof wt)&&i.is_default&&(e.export=On)}}});t.walk(u),t.globals=new A;u=new gn(function(n,i){if(n instanceof We&&n.label)return n.label.thedef.references.push(n),!0;if(n instanceof Zt){var r,o=n.name;if("eval"==o&&u.parent()instanceof ft)for(var a=n.scope;a&&!a.uses_eval;a=a.parent_scope)a.uses_eval=!0;return u.parent()instanceof st&&u.parent(1).module_name||!(r=n.scope.find_variable(o))?(r=t.def_global(n),n instanceof Qt&&(r.export=Cn)):r.scope instanceof xe&&"arguments"==o&&(r.scope.uses_arguments=!0),n.thedef=r,n.reference(e),!n.scope.is_block_scope()||r.orig[0]instanceof Pt||(n.scope=n.scope.get_defun_scope()),!0}var s;if(n instanceof Yt&&(s=n.definition().redefined()))for(a=n.scope;a&&(m(a.enclosed,s),a!==s.scope);)a=a.parent_scope});if(t.walk(u),(e.ie8||e.safari10)&&t.walk(new gn(function(n,i){if(n instanceof Yt){var r=n.name,o=n.thedef.references,a=n.thedef.defun,s=a.find_variable(r)||t.globals.get(r)||a.def_variable(n);return o.forEach(function(t){t.thedef=s,t.reference(e)}),n.thedef=s,n.reference(e),!0}})),e.safari10)for(var c=0;c0);return n}return a.consider=function(e,n){for(var i=e.length;--i>=0;)t[e[i]]+=n},a.sort=function(){e=D(n,o).concat(D(i,o))},a.reset=r,r(),a}();function Mn(e,t){if(!(this instanceof Mn))return new Mn(e,t);Sn.call(this,this.before,this.after),void 0===e.defaults||e.defaults||(t=!0),this.options=s(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,module:!1,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:!t,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var i in n)/^@/.test(i)&&v(n,i)&&(n[i.slice(1)]=se(n[i],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var r=this.options.pure_funcs;this.pure_funcs="function"==typeof r?r:r?function(e){return!r.includes(e.expression.print_to_string())}:f;var o=this.options.top_retain;o instanceof RegExp?this.top_retain=function(e){return o.test(e.name)}:"function"==typeof o?this.top_retain=o:o&&("string"==typeof o&&(o=o.split(/,/)),this.top_retain=function(e){return o.includes(e.name)}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var a=this.options.toplevel;this.toplevel="string"==typeof a?{funcs:/funcs/.test(a),vars:/vars/.test(a)}:{funcs:a,vars:a};var u=this.options.sequences;this.sequences_limit=1==u?800:0|u,this.warnings_produced={}}Mn.prototype=new Sn,u(Mn.prototype,{option:function(e){return this.options[e]},exposed:function(e){if(e.export)return!0;if(e.global)for(var t=0,n=e.orig.length;t0||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),t>1){var a=0;if(e.walk(new gn(function(){a++})),this.info("pass "+o+": last_count: "+n+", count: "+a),a=0;){if(!(r[o]instanceof Ot))return;n||r[o].key!==t||(n=r[o].value)}}return n instanceof Zt&&n.fixed_value()||n}}function n(e,i,r,o,a,s){var u=i.parent(a),c=Y(r,u);if(c)return c;if(!s&&u instanceof ft&&u.expression===r&&!(o instanceof Le)&&!(o instanceof Nt)&&!u.is_expr_pure(e)&&(!(o instanceof Ie)||!(u instanceof pt)&&o.contains_this()))return!0;if(u instanceof bt)return n(e,i,u,u,a+1);if(u instanceof Ot&&r===u.value){var l=i.parent(a+1);return n(e,i,l,l,a+2)}if(u instanceof dt&&u.expression===r){var f=t(o,u.property);return!s&&n(e,i,u,f,a+1)}}function o(e){return e instanceof Le||e instanceof Ie}function a(e){if(e instanceof tn)return!0;if(e instanceof Zt)return e.definition().orig[0]instanceof Xt;if(e instanceof dt){if((e=e.expression)instanceof Zt){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof sn)&&(e instanceof rn||a(e))}return!1}function s(e,t){if(!(e instanceof Zt))return!1;for(var n=e.definition().orig,i=n.length;--i>=0;)if(n[i]instanceof t)return!0}function u(e,t){for(var n,i=0;(n=e.parent(i++))&&!(n instanceof Me);)if(n instanceof tt&&n.argname){n=n.argname.definition().scope;break}return n.find_variable(t)}function m(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function D(e,t){return 1==t.length?t[0]:m(_t,e,{expressions:t.reduce(O,[])})}function y(e,t){switch(typeof e){case"string":return m(on,t,{value:e});case"number":return isNaN(e)?m(ln,t):isFinite(e)?1/e<0?m(Dt,t,{operator:"-",expression:m(an,t,{value:-e})}):m(an,t,{value:e}):e<0?m(Dt,t,{operator:"-",expression:m(_n,t)}):m(_n,t);case"boolean":return m(e?En:mn,t);case"undefined":return m(fn,t);default:if(null===e)return m(cn,t,{value:null});if(e instanceof RegExp)return m(sn,t,{value:e});throw new Error(E("Can't handle constant of type: {type}",{type:typeof e}))}}function C(e,t,n){return e instanceof Dt&&"delete"==e.operator||e instanceof ft&&e.expression===t&&(n instanceof dt||n instanceof Zt&&"eval"==n.name)?D(t,[m(an,t,{value:0}),n]):n}function O(e,t){return t instanceof _t?e.push.apply(e,t.expressions):e.push(t),e}function F(e){if(null===e)return[];if(e instanceof De)return e.body;if(e instanceof ge)return[];if(e instanceof fe)return[e];throw new Error("Can't convert thing to statement array")}function R(e){return null===e||(e instanceof ge||e instanceof De&&0==e.body.length)}function M(e){return!(e instanceof wt||e instanceof Ve||e instanceof ot||e instanceof at||e instanceof ct||e instanceof ut)}function N(e){return e instanceof ve&&e.body instanceof De?e.body:e}function w(e){return"Call"==e.TYPE&&(e.expression instanceof Ie||w(e.expression))}function x(e){return e instanceof Zt&&e.definition().undeclared}e(le,function(e,t){return e}),Ne.DEFMETHOD("drop_console",function(){return this.transform(new Sn(function(e){if("Call"==e.TYPE){var t=e.expression;if(t instanceof dt){for(var n=t.expression;n.expression;)n=n.expression;if(x(n)&&"console"==n.name)return m(fn,e)}}}))}),le.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),Me.DEFMETHOD("process_expression",function(e,t){var n=this,i=new Sn(function(r){if(e&&r instanceof de)return m(Xe,r,{value:r.body});if(!e&&r instanceof Xe){if(t){var o=r.value&&r.value.drop_side_effect_free(t,!0);return o?m(de,r,{body:o}):m(ge,r)}return m(de,r,{body:r.value||m(Dt,r,{operator:"void",expression:m(an,r,{value:0})})})}if(r instanceof Nt||r instanceof xe&&r!==n)return r;if(r instanceof he){var a=r.body.length-1;a>=0&&(r.body[a]=r.body[a].transform(i))}else r instanceof $e?(r.body=r.body.transform(i),r.alternative&&(r.alternative=r.alternative.transform(i))):r instanceof Re&&(r.body=r.body.transform(i));return r});n.transform(i)}),function(e){function i(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=!1,t.scope.pinned()?t.fixed=!1:t.orig[0]instanceof Bt||!e.exposed(t)?t.fixed=t.init:t.fixed=!1,t.recursive_refs=0,t.references=[],t.should_replace=void 0,t.single_use=void 0}function r(e,t,n){n.variables.each(function(n){i(t,n),null===n.fixed?(n.safe_ids=e.safe_ids,u(e,n,!0)):n.fixed&&(e.loop_ids[n.id]=e.in_loop,u(e,n,!0))})}function o(e,t){t.block_scope&&t.block_scope.variables.each(function(t){i(e,t)})}function a(e){e.safe_ids=Object.create(e.safe_ids)}function s(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function u(e,t,n){e.safe_ids[t.id]=n}function l(e,t){if("m"==t.single_use)return!1;if(e.safe_ids[t.id]){if(null==t.fixed){var n=t.orig[0];if(n instanceof Ut||"arguments"==n.name)return!1;t.fixed=m(fn,n)}return!0}return t.fixed instanceof Ve}function f(e,t,n){return void 0===t.fixed||(null===t.fixed&&t.safe_ids?(t.safe_ids[t.id]=!1,delete t.safe_ids,!0):!!v(e.safe_ids,t.id)&&(!!l(e,t)&&(!1!==t.fixed&&(!(null!=t.fixed&&(!n||t.references.length>t.assignments))&&S(t.orig,function(e){return!(e instanceof Bt||e instanceof Gt||e instanceof Xt)})))))}function p(e,n,i,r,o,a,s){var u=e.parent(a);if(o){if(o.is_constant())return;if(o instanceof xt)return}if(u instanceof vt&&"="==u.operator&&r===u.right||u instanceof ft&&(r!==u.expression||u instanceof pt)||u instanceof He&&r===u.value&&r.scope!==n.scope||u instanceof lt&&r===u.value||u instanceof Dn&&r===u.value&&r.scope!==n.scope)return!(s>1)||o&&o.is_constant_expression(i)||(s=1),void((!n.escaped||n.escaped>s)&&(n.escaped=s));if(u instanceof bt||u instanceof hn||u instanceof St&&z(u.operator)||u instanceof At&&r!==u.condition||u instanceof we||u instanceof _t&&r===u.tail_node())p(e,n,i,u,u,a+1,s);else if(u instanceof Ot&&r===u.value){var c=e.parent(a+1);p(e,n,i,c,c,a+2,s)}else if(u instanceof dt&&r===u.expression&&(p(e,n,i,u,o=t(o,u.property),a+1,s+1),o))return;a>0||u instanceof _t&&r!==u.tail_node()||u instanceof de||(n.direct_access=!0)}e(le,c);var _=new gn(function(e){if(e instanceof kt){var t=e.definition();t&&(e instanceof Zt&&t.references.push(e),t.fixed=!1)}});function d(e,t,n){this.inlined=!1;var i=e.safe_ids;return e.safe_ids=Object.create(null),r(e,n,this),t(),e.safe_ids=i,!0}function E(e,t,n){var i,o=this;return o.inlined=!1,a(e),r(e,n,o),!o.name&&(i=e.parent())instanceof ft&&i.expression===o&&o.argnames.forEach(function(t,n){if(t.definition){var r=t.definition();void 0!==r.fixed||o.uses_arguments&&!e.has_directive("use strict")?r.fixed=!1:(r.fixed=function(){return i.args[n]||m(fn,i)},e.loop_ids[r.id]=e.in_loop,u(e,r,!0))}}),t(),s(e),!0}e(ke,function(e,t,n){return a(e),r(e,n,this),t(),s(e),!0}),e(Le,E),e(vt,function(e,t,i){var r=this;if(r.left instanceof Pe)r.left.walk(_);else{var o=r.left;if(o instanceof Zt){var a=o.definition(),s=f(e,a,o.scope,r.right);if(a.assignments++,s){var c=a.fixed;if(c||"="==r.operator){var l="="==r.operator,d=l?r.right:r;if(!n(i,e,r,d,0))return a.references.push(o),l||(a.chained=!0),a.fixed=l?function(){return r.right}:function(){return m(St,r,{operator:r.operator.slice(0,-1),left:c instanceof le?c:c(),right:r.right})},u(e,a,!1),r.right.walk(e),u(e,a,!0),p(e,a,o.scope,r,d,0,1),!0}}}}}),e(St,function(e){if(z(this.operator))return this.left.walk(e),a(e),this.right.walk(e),s(e),!0}),e(he,function(e,t,n){o(n,this)}),e(Je,function(e){return a(e),this.expression.walk(e),s(e),a(e),me(this,e),s(e),!0}),e(xt,function(e,t){return this.inlined=!1,a(e),t(),s(e),!0}),e(At,function(e){return this.condition.walk(e),a(e),this.consequent.walk(e),s(e),a(e),this.alternative.walk(e),s(e),!0}),e(Qe,function(e,t){return a(e),t(),s(e),!0}),e(wt,d),e(Ve,d),e(be,function(e,t,n){o(n,this);var i=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),ce(this)&&(s(e),a(e)),this.condition.walk(e),s(e),e.in_loop=i,!0}),e(Ce,function(e,t,n){o(n,this),this.init&&this.init.walk(e);var i=e.in_loop;return e.in_loop=this,a(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(ce(this)&&(s(e),a(e)),this.step.walk(e)),s(e),e.in_loop=i,!0}),e(Oe,function(e,t,n){o(n,this),this.init.walk(_),this.object.walk(e);var i=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),s(e),e.in_loop=i,!0}),e(Ie,E),e($e,function(e){return this.condition.walk(e),a(e),this.body.walk(e),s(e),this.alternative&&(a(e),this.alternative.walk(e),s(e)),!0}),e(Ae,function(e){return a(e),this.body.walk(e),s(e),!0}),e(Yt,function(){this.definition().fixed=!1}),e(Zt,function(e,t,i){var r,o=this.definition();o.references.push(this),1==o.references.length&&!o.fixed&&o.orig[0]instanceof Gt&&(e.loop_ids[o.id]=e.in_loop),void 0!==o.fixed&&l(e,o)?o.fixed&&((r=this.fixed_value())instanceof xe&&Fe(e,o)?o.recursive_refs++:r&&!i.exposed(o)&&function(e,t,n){return t.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&e.loop_ids[n.id]===e.in_loop}(e,i,o)?o.single_use=r instanceof xe&&!r.pinned()||r instanceof Nt||o.scope===this.scope&&r.is_constant_expression():o.single_use=!1,n(i,e,this,r,0,function(e){return!!e&&(e.is_constant()||e instanceof xe||e instanceof tn)}(r))&&(o.single_use?o.single_use="m":o.fixed=!1)):o.fixed=!1,p(e,o,this.scope,this,r,0,1)}),e(Ne,function(e,t,n){this.globals.each(function(e){i(n,e)}),r(e,n,this)}),e(et,function(e,t,n){return o(n,this),a(e),me(this,e),s(e),this.bcatch&&(a(e),this.bcatch.walk(e),s(e)),this.bfinally&&this.bfinally.walk(e),!0}),e(ht,function(e,t){var n=this;if("++"==n.operator||"--"==n.operator){var i=n.expression;if(i instanceof Zt){var r=i.definition(),o=f(e,r,!0);if(r.assignments++,o){var a=r.fixed;if(a)return r.references.push(i),r.chained=!0,r.fixed=function(){return m(St,n,{operator:n.operator.slice(0,-1),left:m(Dt,n,{operator:"+",expression:a instanceof le?a:a()}),right:m(an,n,{value:1})})},u(e,r,!0),!0}}}}),e(lt,function(e,t){var n=this;if(n.name instanceof Pe)n.name.walk(_);else{var i=n.name.definition();if(n.value){if(f(e,i,n.value))return i.fixed=function(){return n.value},e.loop_ids[i.id]=e.in_loop,u(e,i,!1),t(),u(e,i,!0),!0;i.fixed=!1}}}),e(ye,function(e,t,n){o(n,this);var i=e.in_loop;return e.in_loop=this,a(e),t(),s(e),e.in_loop=i,!0})}(function(e,t){e.DEFMETHOD("reduce_vars",t)}),Ne.DEFMETHOD("reset_opt_flags",function(e){var t=this,n=e.option("reduce_vars"),i=new gn(function(r,o){if(r._squeezed=!1,r._optimized=!1,n)return e.top_retain&&(i.parent()===t?r._top=!0:delete r._top),r.reduce_vars(i,o,e)});i.safe_ids=Object.create(null),i.in_loop=null,i.loop_ids=Object.create(null),t.walk(i)}),kt.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof le?e:e()}),Zt.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof Xt});var k=g("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");Zt.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&k(this.name)});var I,L,V,P,B=g("Infinity NaN undefined");function K(e){return e instanceof _n||e instanceof ln||e instanceof fn}function U(e,t){var r,u,c=t.find_parent(Me).get_defun_scope();!function(){var e=t.self(),n=0;do{if(e instanceof tt||e instanceof nt)n++;else if(e instanceof ve)r=!0;else{if(e instanceof Me){c=e;break}e instanceof et&&(u=!0)}}while(e=t.parent(n++))}();var l,f=10;do{l=!1,_(e),t.option("dead_code")&&g(e,t),t.option("if_return")&&E(e,t),t.sequences_limit>0&&(v(e,t),b(e,t)),t.option("join_vars")&&R(e),t.option("collapse_vars")&&p(e,t)}while(l&&f-- >0);function p(e,t){if(c.pinned())return e;for(var f,p=[],_=e.length,E=new Sn(function(e,n){if(k)return e;if(!x)return e!==D[g]?e:++g=0;){0==_&&t.option("unused")&&H();var D=[];for(X(e[_]);p.length>0;){D=p.pop();var g=0,A=D[D.length-1],v=null,T=null,b=null,y=W(A);if(y&&!a(y)&&!y.has_side_effects(t)){var O=$(A),F=Z(y);y instanceof Zt&&(O[y.name]=!1);var R=Q(A),M=J(),N=A.may_throw(t),w=A.name instanceof Ut,x=w,k=!1,I=0,L=!f||!x;if(!L){for(var V=t.self().argnames.lastIndexOf(A.name)+1;!k&&VI)I=!1;else{k=!1,g=0,x=w;for(P=_;!k&&P=0;){var c=n.argnames[u],l=e.args[u];if(f.unshift(m(lt,c,{name:c,value:l})),!(c.name in s))if(s[c.name]=!0,c instanceof we){var _=e.args.slice(u);S(_,function(e){return!G(n,e,r)})&&p.unshift([m(lt,c,{name:c.expression,value:m(bt,e,{elements:_})})])}else l?(l instanceof xe&&l.pinned()||G(n,l,r))&&(l=null):l=m(fn,c).transform(t),l&&p.unshift([m(lt,c,{name:c,value:l})])}}}function X(e){if(D.push(e),e instanceof vt)e.left.has_side_effects(t)||p.push(D.slice()),X(e.right);else if(e instanceof St)X(e.left),X(e.right);else if(e instanceof ft)X(e.expression),e.args.forEach(X);else if(e instanceof Je)X(e.expression);else if(e instanceof At)X(e.condition),X(e.consequent),X(e.alternative);else if(!(e instanceof it)||!t.option("unused")&&e instanceof at)e instanceof Te?(X(e.condition),e.body instanceof he||X(e.body)):e instanceof He?e.value&&X(e.value):e instanceof Ce?(e.init&&X(e.init),e.condition&&X(e.condition),e.step&&X(e.step),e.body instanceof he||X(e.body)):e instanceof Oe?(X(e.object),e.body instanceof he||X(e.body)):e instanceof $e?(X(e.condition),e.body instanceof he||X(e.body),!e.alternative||e.alternative instanceof he||X(e.alternative)):e instanceof _t?e.expressions.forEach(X):e instanceof de?X(e.body):e instanceof je?(X(e.expression),e.body.forEach(X)):e instanceof ht?"++"!=e.operator&&"--"!=e.operator||p.push(D.slice()):e instanceof lt&&e.value&&(p.push(D.slice()),X(e.value));else{var n=e.definitions.length,i=n-200;for(i<0&&(i=0);i1&&!(e.name instanceof Ut)||(o>1?function(e){var t=e.value;if(t instanceof Zt&&"arguments"!=t.name){var n=t.definition();if(!n.undeclared)return v=n}}(e):!t.exposed(r))?m(Zt,e.name,e.name):void 0}}function q(e){return e[e instanceof vt?"right":"value"]}function $(e){var i=Object.create(null);if(e instanceof ht)return i;var r=new gn(function(e,o){for(var a=e;a instanceof dt;)a=a.expression;(a instanceof Zt||a instanceof tn)&&(i[a.name]=i[a.name]||n(t,r,e,e,0))});return q(e).walk(r),i}function j(n){if(n.name instanceof Ut){var i=t.parent(),r=t.self().argnames,o=r.indexOf(n.name);if(o<0)i.args.length=Math.min(i.args.length,r.length-1);else{var a=i.args;a[o]&&(a[o]=m(an,a[o],{value:0}))}return!0}var s=!1;return e[_].transform(new Sn(function(e,t,i){return s?e:e===n||e.body===n?(s=!0,e instanceof lt?(e.value=null,e):i?d.skip:null):void 0},function(e){if(e instanceof _t)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function Z(e){for(;e instanceof dt;)e=e.expression;return e instanceof Zt&&e.definition().scope===c&&!(r&&(e.name in O||A instanceof ht||A instanceof vt&&"="!=A.operator))}function Q(e){return!(e instanceof ht)&&q(e).has_side_effects(t)}function J(){if(R)return!1;if(v)return!0;if(y instanceof Zt){var e=y.definition();if(e.references.length-e.replaced==(A instanceof lt?1:2))return!0}return!1}function ee(e){if(!e.definition)return!0;var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof Gt)&&(t.scope.get_defun_scope()!==c||!S(t.references,function(e){var t=e.scope.get_defun_scope();return"Scope"==t.TYPE&&(t=t.parent_scope),t===c}))}}function _(e){for(var t=[],n=0;n=0;){var i=e[n];if(i instanceof $e&&i.body instanceof Xe&&++t>1)return!0}return!1}(e),r=n instanceof xe,o=e.length;--o>=0;){var a=e[o],s=g(o),u=e[s];if(r&&!u&&a instanceof Xe){if(!a.value){l=!0,e.splice(o,1);continue}if(a.value instanceof Dt&&"void"==a.value.operator){l=!0,e[o]=m(de,a,{body:a.value.expression});continue}}if(a instanceof $e){var c;if(d(c=ie(a.body))){c.label&&h(c.label.thedef.references,c),l=!0,(a=a.clone()).condition=a.condition.negate(t);var f=D(a.body,c);a.body=m(De,a,{body:F(a.alternative).concat(E())}),a.alternative=m(De,a,{body:f}),e[o]=a.transform(t);continue}if(d(c=ie(a.alternative))){c.label&&h(c.label.thedef.references,c),l=!0,(a=a.clone()).body=m(De,a.body,{body:F(a.body).concat(E())});f=D(a.alternative,c);a.alternative=m(De,a.alternative,{body:f}),e[o]=a.transform(t);continue}}if(a instanceof $e&&a.body instanceof Xe){var p=a.body.value;if(!p&&!a.alternative&&(r&&!u||u instanceof Xe&&!u.value)){l=!0,e[o]=m(de,a.condition,{body:a.condition});continue}if(p&&!a.alternative&&u instanceof Xe&&u.value){l=!0,(a=a.clone()).alternative=u,e.splice(o,1,a.transform(t)),e.splice(s,1);continue}if(p&&!a.alternative&&(!u&&r&&i||u instanceof Xe)){l=!0,(a=a.clone()).alternative=u||m(Xe,a,{value:null}),e.splice(o,1,a.transform(t)),u&&e.splice(s,1);continue}var _=e[S(o)];if(t.option("sequences")&&r&&!a.alternative&&_ instanceof $e&&_.body instanceof Xe&&g(s)==e.length&&u instanceof de){l=!0,(a=a.clone()).alternative=m(De,u,{body:[u,m(Xe,u,{value:null})]}),e.splice(o,1,a.transform(t)),e.splice(s,1);continue}}}function d(i){if(!i)return!1;for(var a=o+1,s=e.length;a=0;){var i=e[n];if(!(i instanceof rt&&A(i)))break}return n}}function g(e,t){for(var n,i=t.self(),r=0,o=0,a=e.length;r=t.sequences_limit&&u();var s=a.body;n.length>0&&(s=s.drop_side_effect_free(t)),s&&O(n,s)}else a instanceof it&&A(a)||a instanceof Ve?e[i++]=a:(u(),e[i++]=a)}u(),e.length=i,i!=o&&(l=!0)}function u(){if(n.length){var t=D(n[0],n);e[i++]=m(de,t,{body:t}),n=[]}}}function T(e,t){if(!(e instanceof De))return e;for(var n=null,i=0,r=e.body.length;i0){var p=u.length;u.push(m($e,a,{condition:a.condition,body:c||m(ge,a.body),alternative:f})),u.unshift(r,1),[].splice.apply(e,u),o+=p,r+=p+1,i=null,l=!0;continue}}e[r++]=a,i=a instanceof de?a:null}e.length=r}function y(e,n){if(e instanceof it){var i,r=e.definitions[e.definitions.length-1];if(r.value instanceof yt)if(n instanceof vt?i=[n]:n instanceof _t&&(i=n.expressions.slice()),i){var o=!1;do{var a=i[0];if(!(a instanceof vt))break;if("="!=a.operator)break;if(!(a.left instanceof dt))break;var s=a.left.expression;if(!(s instanceof Zt))break;if(r.name.name!=s.name)break;if(!a.right.is_constant_expression(c))break;var u=a.left.property;if(u instanceof le&&(u=u.evaluate(t)),u instanceof le)break;u=""+u;var l=t.option("ecma")<6&&t.has_directive("use strict")?function(e){return e.key!=u&&e.key&&e.key.name!=u}:function(e){return e.key&&e.key.name!=u};if(!S(r.value.properties,l))break;var f=r.value.properties.filter(function(e){return e.key===u})[0];f?f.value=new _t({start:f.start,expressions:[f.value.clone(),a.right.clone()],end:f.end}):r.value.properties.push(m(Ot,a,{key:u,value:a.right})),i.shift(),o=!0}while(i.length);return o&&i}}}function R(e){for(var t,n=0,i=-1,r=e.length;n=0;)if(this.properties[n]._dot_throw(e))return!0;return!1}),e(Ct,l),e(Rt,f),e(we,function(e){return this.expression._dot_throw(e)}),e(Ie,l),e(Le,l),e(gt,l),e(Dt,function(){return"void"==this.operator}),e(St,function(e){return("&&"==this.operator||"||"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))}),e(vt,function(e){return"="==this.operator&&this.right._dot_throw(e)}),e(At,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)}),e(mt,function(e){return!!t(e)&&!(this.expression instanceof Ie&&"prototype"==this.property)}),e(_t,function(e){return this.tail_node()._dot_throw(e)}),e(Zt,function(e){if(this.is_undefined)return!0;if(!t(e))return!1;if(x(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var n=this.fixed_value();return!n||n._dot_throw(e)})}(function(e,t){e.DEFMETHOD("_dot_throw",t)}),L=["!","delete"],V=["in","instanceof","==","!=","===","!==","<","<=",">=",">"],(I=function(e,t){e.DEFMETHOD("is_boolean",t)})(le,l),I(Dt,function(){return i(this.operator,L)}),I(St,function(){return i(this.operator,V)||z(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),I(At,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),I(vt,function(){return"="==this.operator&&this.right.is_boolean()}),I(_t,function(){return this.tail_node().is_boolean()}),I(En,f),I(mn,f),function(e){e(le,l),e(an,f);var t=g("+ - ~ ++ --");e(ht,function(){return t(this.operator)});var n=g("- * / % & | ^ << >> >>>");e(St,function(e){return n(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(vt,function(e){return n(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(_t,function(e){return this.tail_node().is_number(e)}),e(At,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,t){e.DEFMETHOD("is_number",t)}),(P=function(e,t){e.DEFMETHOD("is_string",t)})(le,l),P(on,f),P(Ke,function(){return 1===this.segments.length}),P(Dt,function(){return"typeof"==this.operator}),P(St,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),P(vt,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),P(_t,function(e){return this.tail_node().is_string(e)}),P(At,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)});var z=g("&& ||"),W=g("delete ++ --");function Y(e,t){return t instanceof ht&&W(t.operator)?t.expression:t instanceof vt&&t.left===e?e:void 0}function q(e,t){return e.print_to_string().length>t.print_to_string().length?t:e}function $(e,t,n){return(T(e)?function(e,t){return q(m(de,e,{body:e}),m(de,t,{body:t})).body}:q)(t,n)}function Q(e){for(var t in e)e[t]=g(e[t])}!function(e){function t(e,t){e.warn("global_defs "+t.print_to_string()+" redefined [{file}:{line},{col}]",t.start)}Ne.DEFMETHOD("resolve_defines",function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Sn(function(n){var i=n._find_defs(e,"");if(i){for(var r,o=0,a=n;(r=this.parent(o++))&&r instanceof dt&&r.expression===a;)a=r;if(!Y(a,r))return i;t(e,n)}}))):this}),e(le,c),e(mt,function(e,t){return this.expression._find_defs(e,"."+this.property+t)}),e(Lt,function(e){this.global()&&v(e.option("global_defs"),this.name)&&t(e,this)}),e(Zt,function(e,t){if(this.global()){var n=e.option("global_defs"),i=this.name+t;return v(n,i)?function e(t,n){if(t instanceof le)return m(t.CTOR,n,t);if(Array.isArray(t))return m(bt,n,{elements:t.map(function(t){return e(t,n)})});if(t&&"object"==typeof t){var i=[];for(var r in t)v(t,r)&&i.push(m(Ot,n,{key:r,value:e(t[r],n)}));return m(yt,n,{properties:i})}return y(t,n)}(n[i],this):void 0}})}(function(e,t){e.DEFMETHOD("_find_defs",t)});var J=["constructor","toString","valueOf"],ee={Array:["indexOf","join","lastIndexOf","slice"].concat(J),Boolean:J,Function:J,Number:["toExponential","toFixed","toPrecision"].concat(J),Object:J,RegExp:["test"].concat(J),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(J)};Q(ee);var te={Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]};Q(te),function(e){le.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);return!t||t instanceof RegExp?t:"function"==typeof t||"object"==typeof t?this:t});var t=g("! ~ - + void");le.DEFMETHOD("is_constant",function(){return this instanceof rn?!(this instanceof sn):this instanceof Dt&&this.expression instanceof rn&&t(this.operator)}),e(fe,function(){throw new Error(E("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(xe,p),e(Nt,p),e(le,p),e(rn,function(){return this.getValue()}),e(Ke,function(){return 1!==this.segments.length?this:this.segments[0].value}),e(Ie,function(e){if(e.option("unsafe")){var t=function(){};return t.node=this,t.toString=function(){return this.node.print_to_string()},t}return this}),e(bt,function(e,t){if(e.option("unsafe")){for(var n=[],i=0,r=this.elements.length;i>":r=n>>o;break;case">>>":r=n>>>o;break;case"==":r=n==o;break;case"===":r=n===o;break;case"!=":r=n!=o;break;case"!==":r=n!==o;break;case"<":r=n":r=n>o;break;case">=":r=n>=o;break;default:return this}return isNaN(r)&&e.find_parent(Re)?this:r}),e(At,function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var i=n?this.consequent:this.alternative,r=i._eval(e,t);return r===i?this:r}),e(Zt,function(e,t){var n,i=this.fixed_value();if(!i)return this;if(v(i,"_eval"))n=i._eval();else{if(this._eval=p,n=i._eval(e,t),delete this._eval,n===i)return this;i._eval=function(){return n}}if(n&&"object"==typeof n){var r=this.definition().escaped;if(r&&t>r)return this}return n});var r={Array:Array,Math:Math,Number:Number,Object:Object,String:String},o={Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]};Q(o),e(dt,function(e,t){if(e.option("unsafe")){var n=this.property;if(n instanceof le&&(n=n._eval(e,t))===this.property)return this;var i,a=this.expression;if(x(a)){var s,u="hasOwnProperty"===a.name&&"call"===n&&(s=e.parent()&&e.parent().args)&&s&&s[0]&&s[0].evaluate(e);if(null==(u=u instanceof mt?u.expression:u)||u.thedef&&u.thedef.undeclared)return this.clone();if(!(o[a.name]||l)(n))return this;i=r[a.name]}else{if(!(i=a._eval(e,t+1))||i===a||!v(i,n))return this;if("function"==typeof i)switch(n){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[n]}return this}),e(ft,function(e,t){var n=this.expression;if(e.option("unsafe")&&n instanceof dt){var i,o=n.property;if(o instanceof le&&(o=o._eval(e,t))===n.property)return this;var a=n.expression;if(x(a)){var s="hasOwnProperty"===a.name&&"call"===o&&this.args[0]&&this.args[0].evaluate(e);if(null==(s=s instanceof mt?s.expression:s)||s.thedef&&s.thedef.undeclared)return this.clone();if(!(te[a.name]||l)(o))return this;i=r[a.name]}else if((i=a._eval(e,t+1))===a||!(i&&ee[i.constructor.name]||l)(o))return this;for(var u=[],c=0,f=this.args.length;c=":return r.operator="<",r;case">":return r.operator="<=",r}switch(o){case"==":return r.operator="!=",r;case"!=":return r.operator="==",r;case"===":return r.operator="!==",r;case"!==":return r.operator="===",r;case"&&":return r.operator="||",r.left=r.left.negate(e,i),r.right=r.right.negate(e),n(this,r,i);case"||":return r.operator="&&",r.left=r.left.negate(e,i),r.right=r.right.negate(e),n(this,r,i)}return t(this)})}(function(e,t){e.DEFMETHOD("negate",function(e,n){return t.call(this,e,n)})});var ne=g("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");function ie(e){return e&&e.aborts()}ft.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var t=this.expression,n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&"hasOwnProperty"===t.expression.name&&(null==n||n.thedef&&n.thedef.undeclared))return!1;if(x(t)&&ne(t.name))return!0;if(t instanceof mt&&x(t.expression)&&(te.hasOwnProperty(t.expression.name)&&te[t.expression.name]||l)(t.property))return!0}return this.pure||!e.pure_funcs(this)}),le.DEFMETHOD("is_call_pure",l),mt.DEFMETHOD("is_call_pure",function(e){if(e.option("unsafe")){var t=this.expression,n=l;return t instanceof bt?n=ee.Array:t.is_boolean()?n=ee.Boolean:t.is_number(e)?n=ee.Number:t instanceof sn?n=ee.RegExp:t.is_string(e)?n=ee.String:this.may_throw_on_access(e)||(n=ee.Object),n(this.property)}}),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}e(le,f),e(ge,l),e(rn,l),e(tn,l),e(he,function(e){return t(this.body,e)}),e(ft,function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||t(this.args,e)}),e(je,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(Je,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(et,function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e($e,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)}),e(Ae,function(e){return this.body.has_side_effects(e)}),e(de,function(e){return this.body.has_side_effects(e)}),e(xe,l),e(Nt,l),e(wt,f),e(St,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(vt,f),e(At,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e(ht,function(e){return W(this.operator)||this.expression.has_side_effects(e)}),e(Zt,function(e){return!this.is_declared(e)}),e(Lt,l),e(yt,function(e){return t(this.properties,e)}),e(Ct,function(e){return!!(this.key instanceof Ot&&this.key.has_side_effects(e))||this.value.has_side_effects(e)}),e(bt,function(e){return t(this.elements,e)}),e(mt,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),e(Et,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),e(_t,function(e){return t(this.expressions,e)}),e(it,function(e){return t(this.definitions,e)}),e(lt,function(e){return this.value}),e(Ue,l),e(Ke,function(e){return t(this.segments,e)})}(function(e,t){e.DEFMETHOD("has_side_effects",t)}),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return!0;return!1}e(le,f),e(Nt,l),e(rn,l),e(ge,l),e(xe,l),e(Lt,l),e(tn,l),e(bt,function(e){return t(this.elements,e)}),e(vt,function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof Zt)&&this.left.may_throw(e)}),e(St,function(e){return this.left.may_throw(e)||this.right.may_throw(e)}),e(he,function(e){return t(this.body,e)}),e(ft,function(e){return!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||(!(this.expression instanceof xe)||t(this.expression.body,e)))}),e(Je,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e(At,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)}),e(it,function(e){return t(this.definitions,e)}),e(mt,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)}),e($e,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)}),e(Ae,function(e){return this.body.may_throw(e)}),e(yt,function(e){return t(this.properties,e)}),e(Ct,function(e){return this.value.may_throw(e)}),e(Xe,function(e){return this.value&&this.value.may_throw(e)}),e(_t,function(e){return t(this.expressions,e)}),e(de,function(e){return this.body.may_throw(e)}),e(Et,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)}),e(je,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e(Zt,function(e){return!this.is_declared(e)}),e(et,function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)}),e(ht,function(e){return!("typeof"==this.operator&&this.expression instanceof Zt)&&this.expression.may_throw(e)}),e(lt,function(e){return!!this.value&&this.value.may_throw(e)})}(function(e,t){e.DEFMETHOD("may_throw",t)}),function(e){function t(e){for(var t=e.length;--t>=0;)if(!e[t].is_constant_expression())return!1;return!0}function n(e){var t=this,n=!0;return t.walk(new gn(function(r){if(!n)return!0;if(r instanceof Zt){if(t.inlined)return n=!1,!0;var o=r.definition();if(i(o,t.enclosed)&&!t.variables.has(o.name)){if(e){var a=e.find_variable(r);if(o.undeclared?!a:a===o)return n="f",!0}n=!1}return!0}return r instanceof tn&&t instanceof Le?(n=!1,!0):void 0})),n}e(le,l),e(rn,f),e(Nt,function(e){return!(this.extends&&!this.extends.is_constant_expression(e))&&n.call(this,e)}),e(xe,n),e(ht,function(){return this.expression.is_constant_expression()}),e(St,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(bt,function(){return t(this.elements)}),e(yt,function(){return t(this.properties)}),e(Ct,function(){return!(this.key instanceof le)&&this.value.is_constant_expression()})}(function(e,t){e.DEFMETHOD("is_constant_expression",t)}),function(e){function t(){for(var e=0;e1)||(o.name=null)),o instanceof xe&&!(o instanceof ke))for(var g=!e.option("keep_fargs"),A=o.argnames,v=A.length;--v>=0;){var y;(y=A[v])instanceof we&&(y=y.expression),y instanceof Tt&&(y=y.left),y instanceof Pe||y.definition().id in a?g=!1:(y.__unused=!0,g&&(A.pop(),e[y.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",L(y))))}if((o instanceof Ve||o instanceof wt)&&o!==t)if(!((E=o.name.definition()).id in a||!n&&E.global))return e[o.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",L(o.name)),E.eliminated++,m(ge,o);if(o instanceof it&&!(f instanceof Oe&&f.init===o)){var O=!(f instanceof Ne||o instanceof rt),F=[],N=[],w=[],x=[];switch(o.definitions.forEach(function(t){t.value&&(t.value=t.value.transform(T));var n=t.name instanceof Pe,r=n?new yn(null,{name:""}):t.name.definition();if(O&&r.global)return w.push(t);if(!i&&!O||n&&(t.name.names.length||t.name.is_array||1!=e.option("pure_getters"))||r.id in a){if(t.value&&r.id in u&&u[r.id]!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof Vt){var s=c.get(r.id);if(s.length>1&&(!t.value||r.orig.indexOf(t.name)>r.eliminated)){if(e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",L(t.name)),t.value){var l=m(Zt,t.name,t.name);r.references.push(l);var f=m(vt,t,{operator:"=",left:l,right:t.value});u[r.id]===t&&(u[r.id]=f),x.push(f.transform(T))}return h(s,t),void r.eliminated++}}t.value?(x.length>0&&(w.length>0?(x.push(t.value),t.value=D(t.value,x)):F.push(m(de,o,{body:D(o,x)})),x=[]),w.push(t)):N.push(t)}else if(r.orig[0]instanceof Yt){(p=t.value&&t.value.drop_side_effect_free(e))&&x.push(p),t.value=null,N.push(t)}else{var p;(p=t.value&&t.value.drop_side_effect_free(e))?(n||e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",L(t.name)),x.push(p)):n||e[t.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",L(t.name)),r.eliminated++}}),(N.length>0||w.length>0)&&(o.definitions=N.concat(w),F.push(o)),x.length>0&&F.push(m(de,o,{body:D(o,x)})),F.length){case 0:return l?d.skip:m(ge,o);case 1:return F[0];default:return l?d.splice(F):m(De,o,{body:F})}}if(o instanceof Ce)return s(o,this),o.init instanceof De&&(k=o.init,o.init=k.body.pop(),k.body.push(o)),o.init instanceof de?o.init=o.init.body:R(o.init)&&(o.init=null),k?l?d.splice(k.body):k:o;if(o instanceof Ae&&o.body instanceof Ce){if(s(o,this),o.body instanceof De){var k=o.body;return o.body=k.body.pop(),k.body.push(o),l?d.splice(k.body):k}return o}if(o instanceof De)return s(o,this),l&&S(o.body,M)?d.splice(o.body):o;if(o instanceof Me){var I=_;return _=o,s(o,this),_=I,o}}function L(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}});t.transform(T)}}function y(e,n){var i,c=r(e);if(c instanceof Zt&&!s(e.left,Pt)&&t.variables.get(c.name)===(i=c.definition()))return e instanceof vt&&(e.right.walk(E),i.chained||e.left.fixed_value()!==e.right||(u[i.id]=e)),!0;if(e instanceof Zt)return(i=e.definition()).id in a||(a[i.id]=!0,o.push(i),(i=i.redefined())&&(a[i.id]=!0,o.push(i))),!0;if(e instanceof Me){var l=_;return _=e,n(),_=l,!0}}}),Me.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var n=e.option("hoist_funs"),i=e.option("hoist_vars");if(n||i){var o=[],a=[],s=new A,u=0,c=0;t.walk(new gn(function(e){return e instanceof Me&&e!==t||(e instanceof rt?(++c,!0):void 0)})),i=i&&c>1;var l=new Sn(function(r){if(r!==t){if(r instanceof _e)return o.push(r),m(ge,r);if(n&&r instanceof Ve&&!(l.parent()instanceof ct)&&l.parent()===t)return a.push(r),m(ge,r);if(i&&r instanceof rt){r.definitions.forEach(function(e){e.name instanceof Pe||(s.set(e.name.name,e),++u)});var c=r.to_assignments(e),f=l.parent();if(f instanceof Oe&&f.init===r){if(null==c){var p=r.definitions[0].name;return m(Zt,p,p)}return c}return f instanceof Ce&&f.init===r?c:c?m(de,r,{body:c}):m(ge,r)}if(r instanceof Me)return r}});if(t=t.transform(l),u>0){var f=[];if(s.each(function(e,n){t instanceof xe&&r(function(t){return t.name==e.name.name},t.args_as_names())?s.del(n):((e=e.clone()).value=null,f.push(e),s.set(n,e))}),f.length>0){for(var p=0;p0&&(u[0].body=s.concat(u[0].body)),e.body=u;n=u[u.length-1];){var _=n.body[n.body.length-1];if(_ instanceof Ye&&t.loopcontrol_target(_)===e&&n.body.pop(),n.body.length||n instanceof Je&&(o||n.expression.has_side_effects(t)))break;u.pop()===o&&(o=null)}if(0==u.length)return m(De,e,{body:s.concat(m(de,e.expression,{body:e.expression}))}).optimize(t);if(1==u.length&&(u[0]===a||u[0]===o)){var d=!1,E=new gn(function(t){if(d||t instanceof xe||t instanceof de)return!0;t instanceof Ye&&E.loopcontrol_target(t)===e&&(d=!0)});if(e.walk(E),!d){var h,D=u[0].body.slice();return(h=u[0].expression)&&D.unshift(m(de,h,{body:h})),D.unshift(m(de,e.expression,{body:e.expression})),m(De,e,{body:D}).optimize(t)}}return e;function g(e,n){n&&!ie(n)?n.body=n.body.concat(e.body):G(t,e,s)}}),e(et,function(e,t){if(U(e.body,t),e.bcatch&&e.bfinally&&S(e.bfinally.body,R)&&(e.bfinally=null),t.option("dead_code")&&S(e.body,R)){var n=[];return e.bcatch&&(G(t,e.bcatch,n),n.forEach(function(e){e instanceof it&&e.definitions.forEach(function(e){var t=e.name.definition().redefined();t&&(e.name=e.name.clone(),e.name.thedef=t)})})),e.bfinally&&(n=n.concat(e.bfinally.body)),m(De,e,{body:n}).optimize(t)}return e}),it.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(t){t.name instanceof Lt?(t.value=null,e.push(t)):t.name.walk(new gn(function(n){n instanceof Lt&&e.push(m(lt,t,{name:n,value:null}))}))}),this.definitions=e}),it.DEFMETHOD("to_assignments",function(e){var t=e.option("reduce_vars"),n=this.definitions.reduce(function(e,n){if(!n.value||n.name instanceof Pe){if(n.value){var i=m(lt,n,{name:n.name,value:n.value}),r=m(rt,n,{definitions:[i]});e.push(r)}}else{var o=m(Zt,n.name,n.name);e.push(m(vt,n,{operator:"=",left:o,right:n.value})),t&&(o.definition().fixed=!1)}return(n=n.name.definition()).eliminated++,n.replaced--,e},[]);return 0==n.length?null:D(this,n)}),e(it,function(e,t){return 0==e.definitions.length?m(ge,e):e}),e(ut,function(e,t){return e}),e(ft,function(e,t){var n=e.expression,i=n;Wt(e,t,e.args);var r=S(e.args,function(e){return!(e instanceof we)});t.option("reduce_vars")&&i instanceof Zt&&Ee(i=i.fixed_value(),t)&&(i=n);var a=i instanceof xe;if(t.option("unused")&&r&&a&&!i.uses_arguments&&!i.pinned()){for(var s=0,u=0,c=0,l=e.args.length;c=i.argnames.length;if(f||i.argnames[c].__unused){if(A=e.args[c].drop_side_effect_free(t))e.args[s++]=A;else if(!f){e.args[s++]=m(an,e.args[c],{value:0});continue}}else e.args[s++]=e.args[c];u=s}e.args.length=u}if(t.option("unsafe"))if(x(n))switch(n.name){case"Array":if(1!=e.args.length)return m(bt,e,{elements:e.args}).optimize(t);break;case"Object":if(0==e.args.length)return m(yt,e,{properties:[]});break;case"String":if(0==e.args.length)return m(on,e,{value:""});if(e.args.length<=1)return m(St,e,{left:e.args[0],operator:"+",right:m(on,e,{value:""})}).optimize(t);break;case"Number":if(0==e.args.length)return m(an,e,{value:0});if(1==e.args.length)return m(Dt,e,{expression:e.args[0],operator:"+"}).optimize(t);case"Boolean":if(0==e.args.length)return m(mn,e);if(1==e.args.length)return m(Dt,e,{expression:m(Dt,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"RegExp":var p=[];if(S(e.args,function(e){var n=e.evaluate(t);return p.unshift(n),e!==n}))try{return $(t,e,m(sn,e,{value:RegExp.apply(RegExp,p)}))}catch(n){t.warn("Error converting {expr} [{file}:{line},{col}]",{expr:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col})}}else if(n instanceof mt)switch(n.property){case"toString":if(0==e.args.length&&!n.expression.may_throw_on_access(t))return m(St,e,{left:m(on,e,{value:""}),operator:"+",right:n.expression}).optimize(t);break;case"join":if(n.expression instanceof bt)e:{var _;if(!(e.args.length>0&&(_=e.args[0].evaluate(t))===e.args[0])){var d,E=[],h=[];for(c=0,l=n.expression.elements.length;c0&&(E.push(m(on,e,{value:h.join(_)})),h.length=0),E.push(g))}return h.length>0&&E.push(m(on,e,{value:h.join(_)})),0==E.length?m(on,e,{value:""}):1==E.length?E[0].is_string(t)?E[0]:m(St,E[0],{operator:"+",left:m(on,e,{value:""}),right:E[0]}):""==_?(d=E[0].is_string(t)||E[1].is_string(t)?E.shift():m(on,e,{value:""}),E.reduce(function(e,t){return m(St,t,{operator:"+",left:e,right:t})},d).optimize(t)):((A=e.clone()).expression=A.expression.clone(),A.expression.expression=A.expression.expression.clone(),A.expression.expression.elements=E,$(t,e,A));var A}}break;case"charAt":if(n.expression.is_string(t)){var v=e.args[0],T=v?v.evaluate(t):0;if(T!==v)return m(Et,n,{expression:n.expression,property:y(0|T,v||n)}).optimize(t)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof bt)return(V=e.args[1].elements.slice()).unshift(e.args[0]),m(ft,e,{expression:m(mt,n,{expression:n.expression,property:"call"}),args:V}).optimize(t);break;case"call":var b=n.expression;if(b instanceof Zt&&(b=b.fixed_value()),b instanceof xe&&!b.contains_this())return(e.args.length?D(this,[e.args[0],m(ft,e,{expression:n.expression,args:e.args.slice(1)})]):m(ft,e,{expression:n.expression,args:[]})).optimize(t)}if(t.option("unsafe_Function")&&x(n)&&"Function"==n.name){if(0==e.args.length)return m(Ie,e,{argnames:[],body:[]}).optimize(t);if(S(e.args,function(e){return e instanceof on}))try{var C=se(N="n(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})"),O={ie8:t.option("ie8")};C.figure_out_scope(O);var F,M=new Mn(t.options);(C=C.transform(M)).figure_out_scope(O),Rn.reset(),C.compute_char_frequency(O),C.mangle_names(O),C.walk(new gn(function(e){return!!F||(o(e)?(F=e,!0):void 0)})),F.body instanceof le&&(F.body=[m(Xe,F.body,{value:F.body})]);var N=bn();return De.prototype._codegen.call(F,F,N),e.args=[m(on,e,{value:F.argnames.map(function(e){return e.print_to_string()}).join(",")}),m(on,e.args[e.args.length-1],{value:N.get().replace(/^{|}$/g,"")})],e}catch(n){if(!(n instanceof Z))throw n;t.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),t.warn(n.toString())}}var k=a&&i.body;k instanceof le?k=m(Xe,k,{value:k}):k&&(k=k[0]);var I=a&&!i.is_generator&&!i.async,L=t.option("inline")&&!e.is_expr_pure(t);if(L&&k instanceof Xe&&I&&(!(K=k.value)||K.is_constant_expression())){K=K?K.clone(!0):m(fn,e);var V=e.args.concat(K);return D(e,V).optimize(t)}if(I){var P,K,U,G,H=-1;if(L&&r&&!i.uses_arguments&&!i.pinned()&&!(t.parent()instanceof Nt)&&!(i.name&&i instanceof Ie)&&(!(t.find_parent(xe)instanceof Le)||0==i.argnames.length&&(i.body instanceof le||1==i.body.length))&&(K=function(e){var n=i.body instanceof le?[i.body]:i.body,r=n.length;if(t.option("inline")<3)return 1==r&&z(e);e=null;for(var o=0;o=0;){var s=o.definitions[a].name;if(s instanceof Pe||e[s.name]||B(s.name)||U.var_names()[s.name])return!1;G&&G.push(s.definition())}}}return!0}(e,r>=3&&n)||!function(e,t){for(var n=0,r=i.argnames.length;n=2&&n)||G&&0!=G.length&&st(i,G))}()&&!(U instanceof Nt))return i._squeezed=!0,D(e,function(){var n=[],r=[];(function(t,n){for(var r=i.argnames.length,o=e.args.length;--o>=r;)n.push(e.args[o]);for(o=r;--o>=0;){var a=i.argnames[o],s=e.args[o];if(a.__unused||!a.name||U.var_names()[a.name])s&&n.push(s);else{var u=m(Vt,a,a);a.definition().orig.push(u),!s&&G&&(s=m(fn,e)),W(t,n,u,s)}}t.reverse(),n.reverse()})(n,r),function(e,t){for(var n=t.length,r=0,o=i.body.length;r11)return m(ft,e,e).transform(t);const i=[];for(let t=0;t0&&X(r[o],t);)o--;o0)return(n=this.clone()).right=D(this.right,t.slice(o)),(t=t.slice(0,o)).push(n),D(this,t).optimize(e)}}return this});var Se=g("== === != !== * & | ^");function Fe(e,t){for(var n,i=0;n=e.parent(i);i++)if(n instanceof xe){var r=n.name;if(r&&r.definition()===t)break}return n}function ze(e,t){return e instanceof Zt||e.TYPE===t.TYPE}function st(e,t){var n=!1,r=new gn(function(e){return!!n||(e instanceof Zt&&i(e.definition(),t)?n=!0:void 0)}),o=new gn(function(t){if(n)return!0;if(t instanceof Me&&t!==e){var i=o.parent();if(i instanceof ft&&i.expression===t)return;return t.walk(r),!0}});return e.walk(o),n}e(St,function(e,t){function n(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function i(t){if(n()){t&&(e.operator=t);var i=e.left;e.left=e.right,e.right=i}}if(Se(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof St&&oe[e.left.operator]>=oe[e.operator]||i()),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":var r=!0;(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!r&&X(e.left,t))e.left=m(cn,e.left);else if(t.option("typeofs")&&e.left instanceof on&&"undefined"==e.left.value&&e.right instanceof Dt&&"typeof"==e.right.operator){var o=e.right.expression;(o instanceof Zt?!o.is_declared(t):o instanceof dt&&t.option("ie8"))||(e.right=o,e.left=m(fn,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof Zt&&e.right instanceof Zt&&e.left.definition()===e.right.definition()&&((u=e.left.fixed_value())instanceof bt||u instanceof xe||u instanceof yt||u instanceof Nt))return m("="==e.operator[0]?En:mn,e);break;case"&&":case"||":var a=e.left;if(a.operator==e.operator&&(a=a.right),a instanceof St&&a.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof St&&a.operator==e.right.operator&&(X(a.left,t)&&e.right.left instanceof cn||a.left instanceof cn&&X(e.right.left,t))&&!a.right.has_side_effects(t)&&a.right.equivalent_to(e.right.right)){var s=m(St,e,{operator:a.operator.slice(0,-1),left:m(cn,e),right:a.right});return a!==e.left&&(s=m(St,e,{operator:e.operator,left:e.left.left,right:s})),s}}var u;if("+"==e.operator&&t.in_boolean_context()){var c=e.left.evaluate(t),l=e.right.evaluate(t);if(c&&"string"==typeof c)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),D(e,[e.right,m(En,e)]).optimize(t);if(l&&"string"==typeof l)return t.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),D(e,[e.left,m(En,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof St)||t.parent()instanceof vt){var f=m(Dt,e,{operator:"!",expression:e.negate(t,T(t))});e=$(t,e,f)}if(t.option("unsafe_comps"))switch(e.operator){case"<":i(">");break;case"<=":i(">=")}}if("+"==e.operator){if(e.right instanceof on&&""==e.right.getValue()&&e.left.is_string(t))return e.left;if(e.left instanceof on&&""==e.left.getValue()&&e.right.is_string(t))return e.right;if(e.left instanceof St&&"+"==e.left.operator&&e.left.left instanceof on&&""==e.left.left.getValue()&&e.right.is_string(t))return e.left=e.left.right,e.transform(t)}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(t)))return t.warn("Condition left of && always false [{file}:{line},{col}]",e.start),C(t.parent(),t.self(),e.left).optimize(t);if(!(c instanceof le))return t.warn("Condition left of && always true [{file}:{line},{col}]",e.start),D(e,[e.left,e.right]).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof le)){if("&&"==(p=t.parent()).operator&&p.left===t.self()||t.in_boolean_context())return t.warn("Dropping side-effect-free && [{file}:{line},{col}]",e.start),e.left.optimize(t)}}else{if(t.in_boolean_context())return t.warn("Boolean && always false [{file}:{line},{col}]",e.start),D(e,[e.left,m(mn,e)]).optimize(t);e.falsy=!0}if("||"==e.left.operator)if(!(_=e.left.right.evaluate(t)))return m(At,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t);break;case"||":var p,_;if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(t)))return t.warn("Condition left of || always false [{file}:{line},{col}]",e.start),D(e,[e.left,e.right]).optimize(t);if(!(c instanceof le))return t.warn("Condition left of || always true [{file}:{line},{col}]",e.start),C(t.parent(),t.self(),e.left).optimize(t);if(l=e.right.evaluate(t)){if(!(l instanceof le)){if(t.in_boolean_context())return t.warn("Boolean || always true [{file}:{line},{col}]",e.start),D(e,[e.left,m(En,e)]).optimize(t);e.truthy=!0}}else if("||"==(p=t.parent()).operator&&p.left===t.self()||t.in_boolean_context())return t.warn("Dropping side-effect-free || [{file}:{line},{col}]",e.start),e.left.optimize(t);if("&&"==e.left.operator)if((_=e.left.right.evaluate(t))&&!(_ instanceof le))return m(At,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t)}var d=!0;switch(e.operator){case"+":if(e.left instanceof rn&&e.right instanceof St&&"+"==e.right.operator&&e.right.left instanceof rn&&e.right.is_string(t)&&(e=m(St,e,{operator:"+",left:m(on,e.left,{value:""+e.left.getValue()+e.right.left.getValue(),start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof rn&&e.left instanceof St&&"+"==e.left.operator&&e.left.right instanceof rn&&e.left.is_string(t)&&(e=m(St,e,{operator:"+",left:e.left.left,right:m(on,e.right,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof St&&"+"==e.left.operator&&e.left.is_string(t)&&e.left.right instanceof rn&&e.right instanceof St&&"+"==e.right.operator&&e.right.left instanceof rn&&e.right.is_string(t)&&(e=m(St,e,{operator:"+",left:m(St,e.left,{operator:"+",left:e.left.left,right:m(on,e.left.right,{value:""+e.left.right.getValue()+e.right.left.getValue(),start:e.left.right.start,end:e.right.left.end})}),right:e.right.right})),e.right instanceof Dt&&"-"==e.right.operator&&e.left.is_number(t)){e=m(St,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Dt&&"-"==e.left.operator&&n()&&e.right.is_number(t)){e=m(St,e,{operator:"-",left:e.right,right:e.left.expression});break}case"*":d=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&n()&&!(e.left instanceof St&&e.left.operator!=e.operator&&oe[e.left.operator]>=oe[e.operator])){var E=m(St,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof rn&&!(e.left instanceof rn)?$(t,E,e):$(t,e,E)}d&&e.is_number(t)&&(e.right instanceof St&&e.right.operator==e.operator&&(e=m(St,e,{operator:e.operator,left:m(St,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof rn&&e.left instanceof St&&e.left.operator==e.operator&&(e.left.left instanceof rn?e=m(St,e,{operator:e.operator,left:m(St,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof rn&&(e=m(St,e,{operator:e.operator,left:m(St,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof St&&e.left.operator==e.operator&&e.left.right instanceof rn&&e.right instanceof St&&e.right.operator==e.operator&&e.right.left instanceof rn&&(e=m(St,e,{operator:e.operator,left:m(St,e.left,{operator:e.operator,left:m(St,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof St&&e.right.operator==e.operator&&(z(e.operator)||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=m(St,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(t);var h=e.evaluate(t);return h!==e?(h=y(h,e).optimize(t),$(t,h,e)):e}),e(Qt,function(e,t){return e}),e(Zt,function(e,t){if(!t.option("ie8")&&x(e)&&(!e.scope.uses_with||!t.find_parent(Re)))switch(e.name){case"undefined":return m(fn,e).optimize(t);case"NaN":return m(ln,e).optimize(t);case"Infinity":return m(_n,e).optimize(t)}var n=t.parent();if(t.option("reduce_vars")&&Y(e,n)!==e){var i=e.definition();if(t.top_retain&&i.global&&t.top_retain(i))return i.fixed=!1,i.should_replace=!1,i.single_use=!1,e;var r=e.fixed_value(),a=i.single_use&&!(n instanceof ft&&n.is_expr_pure(t));if(a&&(r instanceof xe||r instanceof Nt))if(Ee(r,t))a=!1;else if(i.scope!==e.scope&&(!t.option("reduce_funcs")&&r instanceof xe||1==i.escaped||r.inlined||function(e){for(var t,n=0;t=e.parent(n++);){if(t instanceof fe)return!1;if(t instanceof bt||t instanceof Ot||t instanceof yt)return!0}return!1}(t)))a=!1;else if(Fe(t,i))a=!1;else if((i.scope!==e.scope||i.orig[0]instanceof Ut)&&"f"==(a=r.is_constant_expression(e.scope))){var s=e.scope;do{(s instanceof Ve||o(s))&&(s.inlined=!0)}while(s=s.parent_scope)}if(a&&r){var u;if(r instanceof wt&&(r=m(xt,r,r)),r instanceof Ve&&(r._squeezed=!0,r=m(Ie,r,r)),i.recursive_refs>0&&r.name instanceof Gt){var c=(u=r.clone(!0)).name.definition(),l=u.variables.get(u.name.name),f=l&&l.orig[0];f instanceof Xt||((f=m(Xt,u.name,u.name)).scope=u,u.name=f,l=u.def_function(f)),u.walk(new gn(function(e){e instanceof Zt&&e.definition()===c&&(e.thedef=l,l.references.push(e))}))}else(u=r.optimize(t))===r&&(u=r.clone(!0));return u}if(r&&void 0===i.should_replace){var p;if(r instanceof tn)i.orig[0]instanceof Ut||!S(i.references,function(e){return i.scope===e.scope})||(p=r);else{var _=r.evaluate(t);_===r||!t.option("unsafe_regexp")&&_ instanceof RegExp||(p=y(_,r))}if(p){var d,E=p.optimize(t).print_to_string().length;!function(e){var t;return e.walk(new gn(function(e){if(e instanceof Zt&&(t=!0),t)return!0})),t}(r)?(E=Math.min(E,r.print_to_string().length),d=function(){var e=q(p.optimize(t),r);return e===p||e===r?e.clone(!0):e}):d=function(){var e=p.optimize(t);return e===p?e.clone(!0):e};var h=i.name.length,D=0;t.option("unused")&&!t.exposed(i)&&(D=(h+2+E)/(i.references.length-i.assignments)),i.should_replace=E<=h+D&&d}else i.should_replace=!1}if(i.should_replace)return i.should_replace()}return e}),e(fn,function(e,t){if(t.option("unsafe_undefined")){var n=u(t,"undefined");if(n){var i=m(Zt,e,{name:"undefined",scope:n.scope,thedef:n});return i.is_undefined=!0,i}}var r=Y(t.self(),t.parent());return r&&ze(r,e)?e:m(Dt,e,{operator:"void",expression:m(an,e,{value:0})})}),e(_n,function(e,t){var n=Y(t.self(),t.parent());return n&&ze(n,e)?e:!t.option("keep_infinity")||n&&!ze(n,e)||u(t,"Infinity")?m(St,e,{operator:"/",left:m(an,e,{value:1}),right:m(an,e,{value:0})}):e}),e(ln,function(e,t){var n=Y(t.self(),t.parent());return n&&!ze(n,e)||u(t,"NaN")?m(St,e,{operator:"/",left:m(an,e,{value:0}),right:m(an,e,{value:0})}):e});var Ft=["+","-","/","*","%",">>","<<",">>>","|","^","&"],It=["*","|","^","&"];function Kt(e,t){return e instanceof Zt&&(e=e.fixed_value()),!!e&&(!(e instanceof xe||e instanceof Nt)||t.parent()instanceof pt||!e.contains_this())}function zt(e,t){return t.in_boolean_context()?$(t,e,D(e,[e,m(En,e)]).optimize(t)):e}function Wt(e,t,n){for(var i=0;i0&&s.args.length==u.args.length&&s.expression.equivalent_to(u.expression)&&!e.condition.has_side_effects(t)&&!s.expression.has_side_effects(t)&&"number"==typeof(o=function(){for(var e=s.args,t=u.args,n=0,i=e.length;n1)&&(p=null)}else if(!p&&!t.option("keep_fargs")&&s=n.argnames.length;)p=m(Ut,n,{name:n.make_var_name("argument_"+n.argnames.length),scope:n}),n.argnames.push(p),n.enclosed.push(n.def_variable(p));if(p){var d=m(Zt,e,p);return d.reference({}),delete p.__unused,d}}if(Y(e,t.parent()))return e;if(o!==r){var E=e.flatten_object(a,t);E&&(i=e.expression=E.expression,r=e.property=E.property)}if(t.option("properties")&&t.option("side_effects")&&r instanceof an&&i instanceof bt){s=r.getValue();var h=i.elements,g=h[s];e:if(Kt(g,t)){for(var S=!0,A=[],v=h.length;--v>s;){(T=h[v].drop_side_effect_free(t))&&(A.unshift(T),S&&T.has_side_effects(t)&&(S=!1))}if(g instanceof we)break e;for(g=g instanceof pn?m(fn,g):g,S||A.unshift(g);--v>=0;){var T;if((T=h[v])instanceof we)break e;(T=T.drop_side_effect_free(t))?A.unshift(T):s--}return S?(A.push(g),D(e,A).optimize(t)):m(Et,e,{expression:m(bt,i,{elements:A}),property:m(an,r,{value:s})})}}var b=e.evaluate(t);return b!==e?$(t,b=y(b,e).optimize(t),e):e}),xe.DEFMETHOD("contains_this",function(){var e,t=this;return t.walk(new gn(function(n){return!!e||(n instanceof tn?e=!0:n!==t&&n instanceof Me&&!(n instanceof Le)||void 0)})),e}),dt.DEFMETHOD("flatten_object",function(e,t){if(t.option("properties")){var n=t.option("unsafe_arrows")&&t.option("ecma")>=6,i=this.expression;if(i instanceof yt)for(var r=i.properties,o=r.length;--o>=0;){var a=r[o];if(""+(a instanceof Mt?a.key.name:a.key)==e){if(!S(r,function(e){return e instanceof Ot||n&&e instanceof Mt&&!e.is_generator}))break;if(!Kt(a.value,t))break;return m(Et,this,{expression:m(bt,i,{elements:r.map(function(e){var t=e.value;t instanceof ke&&(t=m(Ie,t,t));var n=e.key;return n instanceof le&&!(n instanceof Ht)?D(e,[n,t]):t})}),property:m(an,this,{value:o})})}}}}),e(mt,function(e,t){if("arguments"!=e.property&&"caller"!=e.property||t.warn("Function.prototype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col}),Y(e,t.parent()))return e;if(t.option("unsafe_proto")&&e.expression instanceof mt&&"prototype"==e.expression.property){var n=e.expression.expression;if(x(n))switch(n.name){case"Array":e.expression=m(bt,e.expression,{elements:[]});break;case"Function":e.expression=m(Ie,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=m(an,e.expression,{value:0});break;case"Object":e.expression=m(yt,e.expression,{properties:[]});break;case"RegExp":e.expression=m(sn,e.expression,{value:/t/});break;case"String":e.expression=m(on,e.expression,{value:""})}}var i=e.flatten_object(e.property,t);if(i)return i.optimize(t);var r=e.evaluate(t);return r!==e?$(t,r=y(r,e).optimize(t),e):e}),e(bt,function(e,t){var n=zt(e,t);return n!==e?n:Wt(e,0,e.elements)}),e(yt,function(e,t){var n=zt(e,t);if(n!==e)return n;for(var i=e.properties,r=0;r=6&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){var n=!1;if(e.walk(new gn(function(e){return!!n||(e instanceof tn?(n=!0,!0):void 0)})),!n)return m(Le,e,e).optimize(t)}return e}),e(Nt,function(e,t){return e}),e(Dn,function(e,t){return e.expression&&!e.is_star&&X(e.expression,t)&&(e.expression=null),e}),e(Ke,function(e,t){if(!t.option("evaluate")||t.parent()instanceof Be)return e;for(var n=[],i=0;i=6&&(!(n instanceof RegExp)||n.test(e.key+""))){var i=e.key,r=e.value;if((r instanceof Le&&Array.isArray(r.body)&&!r.contains_this()||r instanceof Ie)&&!r.name)return m(Mt,e,{async:r.async,is_generator:r.is_generator,key:i instanceof le?i:m(Ht,e,{name:i}),value:m(ke,r,r),quote:e.quote})}return e}),e(Pe,function(e,t){if(1==t.option("pure_getters")&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!function(e){for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],n=0,i=0,r=t.length;n%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],i=t[2],r=t[3];switch(a+=",\n"+r+": ",c+=",\n"+n+": ",i){case"@":a+="M."+n+".map(from_moz)",c+="M."+r+".map(to_moz)";break;case">":a+="from_moz(M."+n+")",c+="to_moz(M."+r+")";break;case"=":a+="M."+n,c+="M."+r;break;case"%":a+="from_moz(M."+n+").body",c+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),a+="\n})\n}",c+="\n}\n}",a=new Function("U2","my_start_token","my_end_token","from_moz","return("+a+")")(An,i,r,s),c=new Function("to_moz","to_moz_block","to_moz_scope","return("+c+")")(l,p,_),t[e]=a,u(n,c)}t.UpdateExpression=t.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Dt:gt)({start:i(e),end:r(e),operator:e.operator,expression:s(e.argument)})},t.ClassDeclaration=t.ClassExpression=function(e){return new("ClassDeclaration"===e.type?wt:xt)({start:i(e),end:r(e),name:s(e.id),extends:s(e.superClass),properties:e.body.body.map(s)})},o("EmptyStatement",ge),o("BlockStatement",De,"body@body"),o("IfStatement",$e,"test>condition, consequent>body, alternate>alternative"),o("LabeledStatement",Ae,"label>label, body>body"),o("BreakStatement",Ye,"label>label"),o("ContinueStatement",qe,"label>label"),o("WithStatement",Re,"object>expression, body>body"),o("SwitchStatement",je,"discriminant>expression, cases@body"),o("ReturnStatement",Xe,"argument>value"),o("ThrowStatement",ze,"argument>value"),o("WhileStatement",ye,"test>condition, body>body"),o("DoWhileStatement",be,"test>condition, body>body"),o("ForStatement",Ce,"init>init, test>condition, update>step, body>body"),o("ForInStatement",Oe,"left>init, right>object, body>body"),o("ForOfStatement",Fe,"left>init, right>object, body>body, await=await"),o("AwaitExpression",hn,"argument>expression"),o("YieldExpression",Dn,"argument>expression, delegate=is_star"),o("DebuggerStatement",pe),o("VariableDeclarator",lt,"id>name, init>value"),o("CatchClause",tt,"param>argname, body%body"),o("ThisExpression",tn),o("Super",nn),o("BinaryExpression",St,"operator=operator, left>left, right>right"),o("LogicalExpression",St,"operator=operator, left>left, right>right"),o("AssignmentExpression",vt,"operator=operator, left>left, right>right"),o("ConditionalExpression",At,"test>condition, consequent>consequent, alternate>alternative"),o("NewExpression",pt,"callee>expression, arguments@args"),o("CallExpression",ft,"callee>expression, arguments@args"),u(Ne,function(e){return _("Program",e)}),u(we,function(e,t){return{type:f()?"RestElement":"SpreadElement",argument:l(e.expression)}}),u(Be,function(e){return{type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}}),u(Ke,function(e){for(var t=[],n=[],i=0;i1)throw new Error("inline source map only works with singular input");n.sourceMap.content=(i=e[f],r=void 0,(r=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+\/0-9A-Za-z]*=*)\s*$/.exec(i))?In(r[2]):(le.warn("inline source map not found"),null))}c=n.parse.toplevel}a&&wn(c,a),n.wrap&&(c=c.wrap_commonjs(n.wrap)),n.enclose&&(c=c.wrap_enclose(n.enclose)),u&&(u.rename=Date.now()),u&&(u.compress=Date.now()),n.compress&&(c=new Mn(n.compress).compress(c)),u&&(u.scope=Date.now()),n.mangle&&c.figure_out_scope(n.mangle),u&&(u.mangle=Date.now()),n.mangle&&(Rn.reset(),c.compute_char_frequency(n.mangle),c.mangle_names(n.mangle)),u&&(u.properties=Date.now()),n.mangle&&n.mangle.properties&&(c=kn(c,n.mangle.properties)),u&&(u.output=Date.now());var p={};if(n.output.ast&&(p.ast=c),!v(n.output,"code")||n.output.code){if(n.sourceMap&&("string"==typeof n.sourceMap.content&&(n.sourceMap.content=JSON.parse(n.sourceMap.content)),n.output.source_map=function(e){e=s(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new t.SourceMapGenerator({file:e.file,sourceRoot:e.root}),i=e.orig&&new t.SourceMapConsumer(e.orig);return i&&i.sources.forEach(function(e){var t=i.sourceContentFor(e,!0);t&&n.setSourceContent(e,t)}),{add:function(t,r,o,a,s,u){if(i){var c=i.originalPositionFor({line:a,column:s});if(null===c.source)return;t=c.source,a=c.line,s=c.column,u=c.name||u}n.addMapping({generated:{line:r+e.dest_line_diff,column:o},original:{line:a+e.orig_line_diff,column:s},source:t,name:u})},get:function(){return n},toString:function(){return JSON.stringify(n.toJSON())}}}({file:n.sourceMap.filename,orig:n.sourceMap.content,root:n.sourceMap.root}),n.sourceMap.includeSources)){if(e instanceof Ne)throw new Error("original source content unavailable");for(var f in e)v(e,f)&&n.output.source_map.get().setSourceContent(f,e[f])}delete n.output.ast,delete n.output.code;var _=bn(n.output);c.print(_),p.code=_.get(),n.sourceMap&&(p.map=n.output.source_map.toString(),"inline"==n.sourceMap.url?p.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+Ln(p.map):n.sourceMap.url&&(p.code+="\n//# sourceMappingURL="+n.sourceMap.url))}return n.nameCache&&n.mangle&&(n.mangle.cache&&(n.nameCache.vars=Bn(n.mangle.cache)),n.mangle.properties&&n.mangle.properties.cache&&(n.nameCache.props=Bn(n.mangle.properties.cache))),u&&(u.end=Date.now(),p.timings={parse:.001*(u.rename-u.parse),rename:.001*(u.compress-u.rename),compress:.001*(u.scope-u.compress),scope:.001*(u.mangle-u.scope),mangle:.001*(u.properties-u.mangle),properties:.001*(u.output-u.properties),output:.001*(u.end-u.output),total:.001*(u.end-u.start)}),l.length&&(p.warnings=l),p}catch(e){return{error:e}}finally{le.warn_function=o}},e.AST_Array=bt,e.AST_Assign=vt,e.AST_Constant=rn,e.AST_Node=le,e.AST_PropAccess=dt,e.AST_Sequence=_t,e.AST_Symbol=kt,e.AST_Token=ce,e.TreeTransformer=Sn,e.TreeWalker=gn,e.defaults=s,e.Dictionary=A,e.push_uniq=m,e.string_template=E,e.base54=Rn,e.Compressor=Mn,e.OutputStream=bn,e.parse=se,e.mangle_properties=kn,e.reserve_quoted_keys=wn,e.JS_Parse_Error=Z,e.tokenizer=te,e.to_ascii=In,e.AST_Accessor=ke,e.AST_Arrow=Le,e.AST_Atom=un,e.AST_Await=hn,e.AST_Binary=St,e.AST_Block=he,e.AST_BlockStatement=De,e.AST_Boolean=dn,e.AST_Break=Ye,e.AST_Call=ft,e.AST_Case=Je,e.AST_Catch=tt,e.AST_Class=Nt,e.AST_ClassExpression=xt,e.AST_ConciseMethod=Mt,e.AST_Conditional=At,e.AST_Const=at,e.AST_Continue=qe,e.AST_Debugger=pe,e.AST_Default=Qe,e.AST_DefaultAssign=Tt,e.AST_DefClass=wt,e.AST_Definitions=it,e.AST_Defun=Ve,e.AST_Destructuring=Pe,e.AST_Directive=_e,e.AST_Do=be,e.AST_Dot=mt,e.AST_DWLoop=Te,e.AST_EmptyStatement=ge,e.AST_Exit=He,e.AST_Expansion=we,e.AST_Export=ct,e.AST_False=mn,e.AST_Finally=nt,e.AST_For=Ce,e.AST_ForIn=Oe,e.AST_ForOf=Fe,e.AST_Function=Ie,e.AST_Hole=pn,e.AST_If=$e,e.AST_Import=ut,e.AST_Infinity=_n,e.AST_IterationStatement=ve,e.AST_Jump=Ge,e.AST_Label=jt,e.AST_LabeledStatement=Ae,e.AST_LabelRef=en,e.AST_Lambda=xe,e.AST_Let=ot,e.AST_LoopControl=We,e.AST_NameMapping=st,e.AST_NaN=ln,e.AST_New=pt,e.AST_NewTarget=It,e.AST_Null=cn,e.AST_Number=an,e.AST_Object=yt,e.AST_ObjectGetter=Rt,e.AST_ObjectKeyVal=Ot,e.AST_ObjectProperty=Ct,e.AST_ObjectSetter=Ft,e.AST_PrefixedTemplateString=Be,e.AST_RegExp=sn,e.AST_Return=Xe,e.AST_Scope=Me,e.AST_SimpleStatement=de,e.AST_Statement=fe,e.AST_StatementWithBody=Se,e.AST_String=on,e.AST_Sub=Et,e.AST_Super=nn,e.AST_Switch=je,e.AST_SwitchBranch=Ze,e.AST_SymbolBlockDeclaration=Pt,e.AST_SymbolCatch=Yt,e.AST_SymbolClass=Wt,e.AST_SymbolConst=Bt,e.AST_SymbolDeclaration=Lt,e.AST_SymbolDefClass=zt,e.AST_SymbolDefun=Gt,e.AST_SymbolExport=Qt,e.AST_SymbolExportForeign=Jt,e.AST_SymbolFunarg=Ut,e.AST_SymbolImport=qt,e.AST_SymbolImportForeign=$t,e.AST_SymbolLambda=Xt,e.AST_SymbolLet=Kt,e.AST_SymbolMethod=Ht,e.AST_SymbolRef=Zt,e.AST_SymbolVar=Vt,e.AST_TemplateSegment=Ue,e.AST_TemplateString=Ke,e.AST_This=tn,e.AST_Throw=ze,e.AST_Toplevel=Ne,e.AST_True=En,e.AST_Try=et,e.AST_Unary=ht,e.AST_UnaryPostfix=gt,e.AST_UnaryPrefix=Dt,e.AST_Undefined=fn,e.AST_Var=rt,e.AST_VarDef=lt,e.AST_While=ye,e.AST_With=Re,e.AST_Yield=Dn,e.walk_body=me}); //# sourceMappingURL=bundle.min.js.map