]> prime8.dev >> repos - ttyd.git/commitdiff
server: use libwebsockets's built-in ping-pong
authorShuanglei Tao <tsl0922@gmail.com>
Thu, 11 Jan 2018 14:15:49 +0000 (22:15 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Thu, 11 Jan 2018 14:15:49 +0000 (22:15 +0800)
html/js/app.js
src/index.html
src/protocol.c
src/server.c
src/server.h

index 8c3bb7a964ef6d7487f895cc0b9bae4a86eccdd4..a53277b2c9b285995b6d67399a6d37573f08eba8 100644 (file)
@@ -147,7 +147,7 @@ var terminalContainer = document.getElementById('terminal-container'),
     textEncoder = new TextEncoder(),
     authToken = (typeof tty_auth_token !== 'undefined') ? tty_auth_token : null,
     autoReconnect = -1,
-    term, pingTimer, title, wsError;
+    term, title, wsError;
 
 var openWs = function() {
     var ws = new WebSocket(url, ['tty']);
@@ -198,9 +198,6 @@ var openWs = function() {
         console.log('Websocket connection opened');
         wsError = false;
         sendMessage(JSON.stringify({AuthToken: authToken}));
-        pingTimer = setInterval(function() {
-            sendMessage('1');
-        }, 30 * 1000);
 
         if (typeof term !== 'undefined') {
             term.destroy();
@@ -234,7 +231,7 @@ var openWs = function() {
 
         term.on('resize', function(size) {
             if (ws.readyState === WebSocket.OPEN) {
-                sendMessage('2' + JSON.stringify({columns: size.cols, rows: size.rows}));
+                sendMessage('1' + JSON.stringify({columns: size.cols, rows: size.rows}));
             }
             setTimeout(function() {
                 term.showOverlay(size.cols + 'x' + size.rows);
@@ -276,20 +273,18 @@ var openWs = function() {
             case '0':
                 zsentry.consume(data);
                 break;
-            case '1': // pong
-                break;
-            case '2':
+            case '1':
                 title = textDecoder.decode(data);
                 document.title = title;
                 break;
-            case '3':
+            case '2':
                 var preferences = JSON.parse(textDecoder.decode(data));
                 Object.keys(preferences).forEach(function(key) {
                     console.log('Setting ' + key + ': ' +  preferences[key]);
                     term.setOption(key, preferences[key]);
                 });
                 break;
-            case '4':
+            case '3':
                 autoReconnect = JSON.parse(textDecoder.decode(data));
                 console.log('Enabling reconnect: ' + autoReconnect + ' seconds');
                 break;
@@ -309,7 +304,6 @@ var openWs = function() {
             }
         }
         window.removeEventListener('beforeunload', unloadCallback);
-        clearInterval(pingTimer);
         // 1000: CLOSE_NORMAL
         if (event.code !== 1000 && autoReconnect > 0) {
             setTimeout(openWs, autoReconnect * 1000);
index 1bdfccaa56c91b03f58484056b7247b92023f4eb..8e7e2a265d95f82a3ff785bd57aa2cfa289855ee 100644 (file)
@@ -51,6 +51,6 @@ blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend
         </div>
     </div>
        <script src="auth_token.js"></script>
-       <script>!function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){var r=t[s][1][e];return i(r||e)},u,u.exports,e,t,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){"use strict";function n(){document.getElementById("modal").classList.remove("is-active")}function i(e){document.getElementById("header").textContent=e,document.getElementById("bytes-received").textContent="-",document.getElementById("percent-received").textContent="-%",document.getElementById("progress-info").style.display="none";var t=document.getElementById("progress-bar");t.textContent="0%",t.value=0}function o(e){var t=e.get_details().size,r=e.get_offset();document.getElementById("bytes-received").textContent=s(r,2),document.getElementById("bytes-file").textContent=s(t,2);var n=(100*r/t).toFixed(2);document.getElementById("percent-received").textContent=n+"%",document.getElementById("progress-info").style.display="";var i=document.getElementById("progress-bar");i.textContent=n+"%",i.setAttribute("value",n)}function s(e,t){if(isNaN(parseFloat(e))||!isFinite(e))return"-";if(0===e)return 0;void 0===t&&(t=1);var r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,Math.floor(r))).toFixed(t)+" "+["bytes","KB","MB","GB","TB","PB"][r]}function a(e){return new Promise(function(t){!function(e){i("Sending files"),document.getElementById("file").style.display="none",document.getElementById("skip").style.display="none",document.getElementById("choose").style.display="";var t=document.getElementById("files");t.disabled=!1,t.value="",t.onchange=function(){this.disabled=!0;for(var t=this.files,r="",n=0;n<t.length;n++)0===n?r=t[n].name:r+=" | "+t[n].name;document.getElementById("file-names").textContent=r,e(t)},document.getElementById("modal").classList.add("is-active")}(function(r){l.Browser.send_files(e,r,{on_progress:function(e,t){o(t)},on_file_complete:function(e){n()}}).then(e.close.bind(e),console.error.bind(console)).then(function(){t()})})})}function c(e){e.on("offer",function(e){!function(e){i("Receiving files");var t=e.get_details();document.getElementById("name").textContent=t.name,document.getElementById("size").textContent=s(t.size,2),document.getElementById("mtime").textContent=t.mtime,document.getElementById("files-remaining").textContent=t.files_remaining,document.getElementById("bytes-remaining").textContent=s(t.bytes_remaining,2),document.getElementById("mode").textContent="0"+t.mode.toString(8),document.getElementById("choose").style.display="none",document.getElementById("file").style.display="";var r=document.getElementById("skip");r.disabled=!1,r.onclick=function(){this.disabled=!0,e.skip()},r.style.display="",document.getElementById("modal").classList.add("is-active")}(e);var t=[];e.on("input",function(r){o(e),t.push(new Uint8Array(r))}),e.accept().then(function(){l.Browser.save_to_disk(t,e.get_details().name)},console.error.bind(console))});var t=new Promise(function(t){e.on("session_end",function(){t()})});return e.start(),t}e("babel-polyfill"),e("fast-text-encoding");var l=e("zmodem.js/src/zmodem_browser"),u=e("xterm").Terminal;u.applyAddon(e("xterm/lib/addons/fit")),u.applyAddon(e("xterm/lib/addons/winptyCompat")),u.applyAddon(e("./overlay"));var f,h,_,p,d=document.getElementById("terminal-container"),m=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname+"ws",y=new TextDecoder,b=new TextEncoder,v="undefined"!=typeof tty_auth_token?tty_auth_token:null,g=-1,x=function e(){var t=new WebSocket(m,["tty"]),r=function(e){t.readyState===WebSocket.OPEN&&t.send(b.encode(e))},i=function(e){r("0"+e)},o=function(e){var t="Close terminal? this will also terminate the command.";return(e||window.event).returnValue=t,t},s=new l.Sentry({to_terminal:function(e){var t=new Uint8Array(e).buffer;f.write(y.decode(t))},sender:function(e){var r=new Uint8Array(e.length+1);r[0]="0".charCodeAt(0),r.set(new Uint8Array(e),1),t.send(r.buffer)},on_retract:function(){},on_detect:function(e){f.setOption("disableStdin",!0);var t=e.confirm();("send"===t.type?a(t):c(t)).catch(console.error.bind(console)).then(function(){n(),f.setOption("disableStdin",!1)})}});t.binaryType="arraybuffer",t.onopen=function(e){for(console.log("Websocket connection opened"),p=!1,r(JSON.stringify({AuthToken:v})),h=setInterval(function(){r("1")},3e4),void 0!==f&&f.destroy(),(f=new u({fontSize:13,fontFamily:'"Menlo for Powerline", Menlo, Consolas, "Liberation Mono", Courier, monospace',theme:{foreground:"#d2d2d2",background:"#2b2b2b",cursor:"#adadad",black:"#000000",red:"#d81e00",green:"#5ea702",yellow:"#cfae00",blue:"#427ab3",magenta:"#89658e",cyan:"#00a7aa",white:"#dbded8",brightBlack:"#686a66",brightRed:"#f54235",brightGreen:"#99e343",brightYellow:"#fdeb61",brightBlue:"#84b0d8",brightMagenta:"#bc94b7",brightCyan:"#37e6e8",brightWhite:"#f1f1f0"}})).on("resize",function(e){t.readyState===WebSocket.OPEN&&r("2"+JSON.stringify({columns:e.cols,rows:e.rows})),setTimeout(function(){f.showOverlay(e.cols+"x"+e.rows)},500)}),f.on("title",function(e){e&&""!==e&&(document.title=e+" | "+_)}),f.on("data",i);d.firstChild;)d.removeChild(d.firstChild);window.addEventListener("resize",function(){clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(function(){f.fit()},250)}),window.addEventListener("beforeunload",o),f.open(d,!0),f.winptyCompatInit(),f.fit(),f.focus()},t.onmessage=function(e){var t=new Uint8Array(e.data),r=String.fromCharCode(t[0]),n=t.slice(1).buffer;switch(r){case"0":s.consume(n);break;case"1":break;case"2":_=y.decode(n),document.title=_;break;case"3":var i=JSON.parse(y.decode(n));Object.keys(i).forEach(function(e){console.log("Setting "+e+": "+i[e]),f.setOption(e,i[e])});break;case"4":g=JSON.parse(y.decode(n)),console.log("Enabling reconnect: "+g+" seconds");break;default:console.log("Unknown command: "+r)}},t.onclose=function(t){console.log("Websocket connection closed with code: "+t.code),f&&(f.off("data"),f.off("resize"),p||f.showOverlay("Connection Closed",null)),window.removeEventListener("beforeunload",o),clearInterval(h),1e3!==t.code&&g>0&&setTimeout(e,1e3*g)}};"complete"===document.readyState||"loading"!==document.readyState?x():document.addEventListener("DOMContentLoaded",x)},{"./overlay":2,"babel-polyfill":3,"fast-text-encoding":329,xterm:343,"xterm/lib/addons/fit":346,"xterm/lib/addons/winptyCompat":347,"zmodem.js/src/zmodem_browser":374}],2:[function(e,t,r){"use strict";function n(e,t,r){if(!e.overlayNode_){if(!e.element)return;e.overlayNode_=document.createElement("div"),e.overlayNode_.style.cssText="border-radius: 15px;font-size: xx-large;opacity: 0.75;padding: 0.2em 0.5em 0.2em 0.5em;position: absolute;-webkit-user-select: none;-webkit-transition: opacity 180ms ease-in;-moz-user-select: none;-moz-transition: opacity 180ms ease-in;",e.overlayNode_.addEventListener("mousedown",function(e){e.preventDefault(),e.stopPropagation()},!0)}e.overlayNode_.style.color="#101010",e.overlayNode_.style.backgroundColor="#f0f0f0",e.overlayNode_.textContent=t,e.overlayNode_.style.opacity="0.75",e.overlayNode_.parentNode||e.element.appendChild(e.overlayNode_);var n=e.element.getBoundingClientRect(),i=e.overlayNode_.getBoundingClientRect();e.overlayNode_.style.top=(n.height-i.height)/2+"px",e.overlayNode_.style.left=(n.width-i.width)/2+"px",e.overlayTimeout_&&clearTimeout(e.overlayTimeout_),null!==r&&(e.overlayTimeout_=setTimeout(function(){e.overlayNode_.style.opacity="0",e.overlayTimeout_=setTimeout(function(){e.overlayNode_.parentNode&&e.overlayNode_.parentNode.removeChild(e.overlayNode_),e.overlayTimeout_=null,e.overlayNode_.style.opacity="0.75"},200)},r||1500))}Object.defineProperty(r,"__esModule",{value:!0}),r.showOverlay=n,r.apply=function(e){e.prototype.showOverlay=function(e,t){return n(this,e,t)}}},{}],3:[function(e,t,r){(function(t){"use strict";function r(e,t,r){e[t]||Object[n](e,t,{writable:!0,configurable:!0,value:r})}if(e("core-js/shim"),e("regenerator-runtime/runtime"),e("core-js/fn/regexp/escape"),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var n="defineProperty";r(String.prototype,"padLeft","".padStart),r(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&r(Array,e,Function.call.bind([][e]))})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/fn/regexp/escape":4,"core-js/shim":327,"regenerator-runtime/runtime":330}],4:[function(e,t,r){e("../../modules/core.regexp.escape"),t.exports=e("../../modules/_core").RegExp.escape},{"../../modules/_core":25,"../../modules/core.regexp.escape":130}],5:[function(e,t,r){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],6:[function(e,t,r){var n=e("./_cof");t.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},{"./_cof":20}],7:[function(e,t,r){var n=e("./_wks")("unscopables"),i=Array.prototype;void 0==i[n]&&e("./_hide")(i,n,{}),t.exports=function(e){i[n][e]=!0}},{"./_hide":44,"./_wks":128}],8:[function(e,t,r){t.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},{}],9:[function(e,t,r){var n=e("./_is-object");t.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":53}],10:[function(e,t,r){"use strict";var n=e("./_to-object"),i=e("./_to-absolute-index"),o=e("./_to-length");t.exports=[].copyWithin||function(e,t){var r=n(this),s=o(r.length),a=i(e,s),c=i(t,s),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?s:i(l,s))-c,s-a),f=1;for(c<a&&a<c+u&&(f=-1,c+=u-1,a+=u-1);u-- >0;)c in r?r[a]=r[c]:delete r[a],a+=f,c+=f;return r}},{"./_to-absolute-index":113,"./_to-length":117,"./_to-object":118}],11:[function(e,t,r){"use strict";var n=e("./_to-object"),i=e("./_to-absolute-index"),o=e("./_to-length");t.exports=function(e){for(var t=n(this),r=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),c=s>2?arguments[2]:void 0,l=void 0===c?r:i(c,r);l>a;)t[a++]=e;return t}},{"./_to-absolute-index":113,"./_to-length":117,"./_to-object":118}],12:[function(e,t,r){var n=e("./_for-of");t.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},{"./_for-of":41}],13:[function(e,t,r){var n=e("./_to-iobject"),i=e("./_to-length"),o=e("./_to-absolute-index");t.exports=function(e){return function(t,r,s){var a,c=n(t),l=i(c.length),u=o(s,l);if(e&&r!=r){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},{"./_to-absolute-index":113,"./_to-iobject":116,"./_to-length":117}],14:[function(e,t,r){var n=e("./_ctx"),i=e("./_iobject"),o=e("./_to-object"),s=e("./_to-length"),a=e("./_array-species-create");t.exports=function(e,t){var r=1==e,c=2==e,l=3==e,u=4==e,f=6==e,h=5==e||f,_=t||a;return function(t,a,p){for(var d,m,y=o(t),b=i(y),v=n(a,p,3),g=s(b.length),x=0,w=r?_(t,g):c?_(t,0):void 0;g>x;x++)if((h||x in b)&&(d=b[x],m=v(d,x,y),e))if(r)w[x]=m;else if(m)switch(e){case 3:return!0;case 5:return d;case 6:return x;case 2:w.push(d)}else if(u)return!1;return f?-1:l||u?u:w}}},{"./_array-species-create":17,"./_ctx":27,"./_iobject":49,"./_to-length":117,"./_to-object":118}],15:[function(e,t,r){var n=e("./_a-function"),i=e("./_to-object"),o=e("./_iobject"),s=e("./_to-length");t.exports=function(e,t,r,a,c){n(t);var l=i(e),u=o(l),f=s(l.length),h=c?f-1:0,_=c?-1:1;if(r<2)for(;;){if(h in u){a=u[h],h+=_;break}if(h+=_,c?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:f>h;h+=_)h in u&&(a=t(a,u[h],h,l));return a}},{"./_a-function":5,"./_iobject":49,"./_to-length":117,"./_to-object":118}],16:[function(e,t,r){var n=e("./_is-object"),i=e("./_is-array"),o=e("./_wks")("species");t.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),n(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":51,"./_is-object":53,"./_wks":128}],17:[function(e,t,r){var n=e("./_array-species-constructor");t.exports=function(e,t){return new(n(e))(t)}},{"./_array-species-constructor":16}],18:[function(e,t,r){"use strict";var n=e("./_a-function"),i=e("./_is-object"),o=e("./_invoke"),s=[].slice,a={};t.exports=Function.bind||function(e){var t=n(this),r=s.call(arguments,1),c=function(){var n=r.concat(s.call(arguments));return this instanceof c?function(e,t,r){if(!(t in a)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";a[t]=Function("F,a","return new F("+n.join(",")+")")}return a[t](e,r)}(t,n.length,n):o(t,n,e)};return i(t.prototype)&&(c.prototype=t.prototype),c}},{"./_a-function":5,"./_invoke":48,"./_is-object":53}],19:[function(e,t,r){var n=e("./_cof"),i=e("./_wks")("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":20,"./_wks":128}],20:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],21:[function(e,t,r){"use strict";var n=e("./_object-dp").f,i=e("./_object-create"),o=e("./_redefine-all"),s=e("./_ctx"),a=e("./_an-instance"),c=e("./_for-of"),l=e("./_iter-define"),u=e("./_iter-step"),f=e("./_set-species"),h=e("./_descriptors"),_=e("./_meta").fastKey,p=e("./_validate-collection"),d=h?"_s":"size",m=function(e,t){var r,n=_(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};t.exports={getConstructor:function(e,t,r,l){var u=e(function(e,n){a(e,u,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[d]=0,void 0!=n&&c(n,r,e[l],e)});return o(u.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[d]=0},delete:function(e){var r=p(this,t),n=m(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[d]--}return!!n},forEach:function(e){p(this,t);for(var r,n=s(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!m(p(this,t),e)}}),h&&n(u.prototype,"size",{get:function(){return p(this,t)[d]}}),u},def:function(e,t,r){var n,i,o=m(e,t);return o?o.v=r:(e._l=o={i:i=_(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[d]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,r){l(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?"keys"==e?u(0,t.k):"values"==e?u(0,t.v):u(0,[t.k,t.v]):(this._t=void 0,u(1))},r?"entries":"values",!r,!0),f(t)}}},{"./_an-instance":8,"./_ctx":27,"./_descriptors":31,"./_for-of":41,"./_iter-define":57,"./_iter-step":59,"./_meta":67,"./_object-create":72,"./_object-dp":73,"./_redefine-all":92,"./_set-species":99,"./_validate-collection":125}],22:[function(e,t,r){var n=e("./_classof"),i=e("./_array-from-iterable");t.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},{"./_array-from-iterable":12,"./_classof":19}],23:[function(e,t,r){"use strict";var n=e("./_redefine-all"),i=e("./_meta").getWeak,o=e("./_an-object"),s=e("./_is-object"),a=e("./_an-instance"),c=e("./_for-of"),l=e("./_array-methods"),u=e("./_has"),f=e("./_validate-collection"),h=l(5),_=l(6),p=0,d=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},y=function(e,t){return h(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var r=y(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=_(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},t.exports={getConstructor:function(e,t,r,o){var l=e(function(e,n){a(e,l,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=n&&c(n,r,e[o],e)});return n(l.prototype,{delete:function(e){if(!s(e))return!1;var r=i(e);return!0===r?d(f(this,t)).delete(e):r&&u(r,this._i)&&delete r[this._i]},has:function(e){if(!s(e))return!1;var r=i(e);return!0===r?d(f(this,t)).has(e):r&&u(r,this._i)}}),l},def:function(e,t,r){var n=i(o(t),!0);return!0===n?d(e).set(t,r):n[e._i]=r,e},ufstore:d}},{"./_an-instance":8,"./_an-object":9,"./_array-methods":14,"./_for-of":41,"./_has":43,"./_is-object":53,"./_meta":67,"./_redefine-all":92,"./_validate-collection":125}],24:[function(e,t,r){"use strict";var n=e("./_global"),i=e("./_export"),o=e("./_redefine"),s=e("./_redefine-all"),a=e("./_meta"),c=e("./_for-of"),l=e("./_an-instance"),u=e("./_is-object"),f=e("./_fails"),h=e("./_iter-detect"),_=e("./_set-to-string-tag"),p=e("./_inherit-if-required");t.exports=function(e,t,r,d,m,y){var b=n[e],v=b,g=m?"set":"add",x=v&&v.prototype,w={},C=function(e){var t=x[e];o(x,e,"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof v&&(y||x.forEach&&!f(function(){(new v).entries().next()}))){var S=new v,k=S[g](y?{}:-0,1)!=S,E=f(function(){S.has(1)}),A=h(function(e){new v(e)}),j=!y&&f(function(){for(var e=new v,t=5;t--;)e[g](t,t);return!e.has(-0)});A||((v=t(function(t,r){l(t,v,e);var n=p(new b,t,v);return void 0!=r&&c(r,m,n[g],n),n})).prototype=x,x.constructor=v),(E||j)&&(C("delete"),C("has"),m&&C("get")),(j||k)&&C(g),y&&x.clear&&delete x.clear}else v=d.getConstructor(t,e,m,g),s(v.prototype,r),a.NEED=!0;return _(v,e),w[e]=v,i(i.G+i.W+i.F*(v!=b),w),y||d.setStrong(v,e,m),v}},{"./_an-instance":8,"./_export":35,"./_fails":37,"./_for-of":41,"./_global":42,"./_inherit-if-required":47,"./_is-object":53,"./_iter-detect":58,"./_meta":67,"./_redefine":93,"./_redefine-all":92,"./_set-to-string-tag":100}],25:[function(e,t,r){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},{}],26:[function(e,t,r){"use strict";var n=e("./_object-dp"),i=e("./_property-desc");t.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},{"./_object-dp":73,"./_property-desc":91}],27:[function(e,t,r){var n=e("./_a-function");t.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":5}],28:[function(e,t,r){"use strict";var n=e("./_fails"),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(e){return e>9?e:"0"+e};t.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(r>99?r:"0"+s(r))+"Z"}:o},{"./_fails":37}],29:[function(e,t,r){"use strict";var n=e("./_an-object"),i=e("./_to-primitive");t.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!=e)}},{"./_an-object":9,"./_to-primitive":119}],30:[function(e,t,r){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},{}],31:[function(e,t,r){t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":37}],32:[function(e,t,r){var n=e("./_is-object"),i=e("./_global").document,o=n(i)&&n(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{"./_global":42,"./_is-object":53}],33:[function(e,t,r){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],34:[function(e,t,r){var n=e("./_object-keys"),i=e("./_object-gops"),o=e("./_object-pie");t.exports=function(e){var t=n(e),r=i.f;if(r)for(var s,a=r(e),c=o.f,l=0;a.length>l;)c.call(e,s=a[l++])&&t.push(s);return t}},{"./_object-gops":79,"./_object-keys":82,"./_object-pie":83}],35:[function(e,t,r){var n=e("./_global"),i=e("./_core"),o=e("./_hide"),s=e("./_redefine"),a=e("./_ctx"),c=function(e,t,r){var l,u,f,h,_=e&c.F,p=e&c.G,d=e&c.S,m=e&c.P,y=e&c.B,b=p?n:d?n[t]||(n[t]={}):(n[t]||{}).prototype,v=p?i:i[t]||(i[t]={}),g=v.prototype||(v.prototype={});p&&(r=t);for(l in r)f=((u=!_&&b&&void 0!==b[l])?b:r)[l],h=y&&u?a(f,n):m&&"function"==typeof f?a(Function.call,f):f,b&&s(b,l,f,e&c.U),v[l]!=f&&o(v,l,h),m&&g[l]!=f&&(g[l]=f)};n.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},{"./_core":25,"./_ctx":27,"./_global":42,"./_hide":44,"./_redefine":93}],36:[function(e,t,r){var n=e("./_wks")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},{"./_wks":128}],37:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],38:[function(e,t,r){"use strict";var n=e("./_hide"),i=e("./_redefine"),o=e("./_fails"),s=e("./_defined"),a=e("./_wks");t.exports=function(e,t,r){var c=a(e),l=r(s,c,""[e]),u=l[0],f=l[1];o(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,u),n(RegExp.prototype,c,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},{"./_defined":30,"./_fails":37,"./_hide":44,"./_redefine":93,"./_wks":128}],39:[function(e,t,r){"use strict";var n=e("./_an-object");t.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"./_an-object":9}],40:[function(e,t,r){"use strict";function n(e,t,r,l,u,f,h,_){for(var p,d,m=u,y=0,b=!!h&&a(h,_,3);y<l;){if(y in r){if(p=b?b(r[y],y,t):r[y],d=!1,o(p)&&(d=void 0!==(d=p[c])?!!d:i(p)),d&&f>0)m=n(e,t,p,s(p.length),m,f-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=p}m++}y++}return m}var i=e("./_is-array"),o=e("./_is-object"),s=e("./_to-length"),a=e("./_ctx"),c=e("./_wks")("isConcatSpreadable");t.exports=n},{"./_ctx":27,"./_is-array":51,"./_is-object":53,"./_to-length":117,"./_wks":128}],41:[function(e,t,r){var n=e("./_ctx"),i=e("./_iter-call"),o=e("./_is-array-iter"),s=e("./_an-object"),a=e("./_to-length"),c=e("./core.get-iterator-method"),l={},u={};(r=t.exports=function(e,t,r,f,h){var _,p,d,m,y=h?function(){return e}:c(e),b=n(r,f,t?2:1),v=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(_=a(e.length);_>v;v++)if((m=t?b(s(p=e[v])[0],p[1]):b(e[v]))===l||m===u)return m}else for(d=y.call(e);!(p=d.next()).done;)if((m=i(d,b,p.value,t))===l||m===u)return m}).BREAK=l,r.RETURN=u},{"./_an-object":9,"./_ctx":27,"./_is-array-iter":50,"./_iter-call":55,"./_to-length":117,"./core.get-iterator-method":129}],42:[function(e,t,r){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],43:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],44:[function(e,t,r){var n=e("./_object-dp"),i=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},{"./_descriptors":31,"./_object-dp":73,"./_property-desc":91}],45:[function(e,t,r){var n=e("./_global").document;t.exports=n&&n.documentElement},{"./_global":42}],46:[function(e,t,r){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":31,"./_dom-create":32,"./_fails":37}],47:[function(e,t,r){var n=e("./_is-object"),i=e("./_set-proto").set;t.exports=function(e,t,r){var o,s=t.constructor;return s!==r&&"function"==typeof s&&(o=s.prototype)!==r.prototype&&n(o)&&i&&i(e,o),e}},{"./_is-object":53,"./_set-proto":98}],48:[function(e,t,r){t.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},{}],49:[function(e,t,r){var n=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},{"./_cof":20}],50:[function(e,t,r){var n=e("./_iterators"),i=e("./_wks")("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},{"./_iterators":60,"./_wks":128}],51:[function(e,t,r){var n=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"./_cof":20}],52:[function(e,t,r){var n=e("./_is-object"),i=Math.floor;t.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},{"./_is-object":53}],53:[function(e,t,r){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],54:[function(e,t,r){var n=e("./_is-object"),i=e("./_cof"),o=e("./_wks")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},{"./_cof":20,"./_is-object":53,"./_wks":128}],55:[function(e,t,r){var n=e("./_an-object");t.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},{"./_an-object":9}],56:[function(e,t,r){"use strict";var n=e("./_object-create"),i=e("./_property-desc"),o=e("./_set-to-string-tag"),s={};e("./_hide")(s,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,r){e.prototype=n(s,{next:i(1,r)}),o(e,t+" Iterator")}},{"./_hide":44,"./_object-create":72,"./_property-desc":91,"./_set-to-string-tag":100,"./_wks":128}],57:[function(e,t,r){"use strict";var n=e("./_library"),i=e("./_export"),o=e("./_redefine"),s=e("./_hide"),a=e("./_has"),c=e("./_iterators"),l=e("./_iter-create"),u=e("./_set-to-string-tag"),f=e("./_object-gpo"),h=e("./_wks")("iterator"),_=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(e,t,r,d,m,y,b){l(r,t,d);var v,g,x,w=function(e){if(!_&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},C=t+" Iterator",S="values"==m,k=!1,E=e.prototype,A=E[h]||E["@@iterator"]||m&&E[m],j=!_&&A||w(m),O=m?S?w("entries"):j:void 0,M="Array"==t?E.entries||A:A;if(M&&(x=f(M.call(new e)))!==Object.prototype&&x.next&&(u(x,C,!0),n||a(x,h)||s(x,h,p)),S&&A&&"values"!==A.name&&(k=!0,j=function(){return A.call(this)}),n&&!b||!_&&!k&&E[h]||s(E,h,j),c[t]=j,c[C]=p,m)if(v={values:S?j:w("values"),keys:y?j:w("keys"),entries:O},b)for(g in v)g in E||o(E,g,v[g]);else i(i.P+i.F*(_||k),t,v);return v}},{"./_export":35,"./_has":43,"./_hide":44,"./_iter-create":56,"./_iterators":60,"./_library":61,"./_object-gpo":80,"./_redefine":93,"./_set-to-string-tag":100,"./_wks":128}],58:[function(e,t,r){var n=e("./_wks")("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:r=!0}},o[n]=function(){return s},e(o)}catch(e){}return r}},{"./_wks":128}],59:[function(e,t,r){t.exports=function(e,t){return{value:t,done:!!e}}},{}],60:[function(e,t,r){t.exports={}},{}],61:[function(e,t,r){t.exports=!1},{}],62:[function(e,t,r){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},{}],63:[function(e,t,r){var n=e("./_math-sign"),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),c=i(2,-126);t.exports=Math.fround||function(e){var t,r,i=Math.abs(e),l=n(e);return i<c?l*function(e){return e+1/o-1/o}(i/c/s)*c*s:(t=(1+s/o)*i,(r=t-(t-i))>a||r!=r?l*(1/0):l*r)}},{"./_math-sign":66}],64:[function(e,t,r){t.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},{}],65:[function(e,t,r){t.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},{}],66:[function(e,t,r){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],67:[function(e,t,r){var n=e("./_uid")("meta"),i=e("./_is-object"),o=e("./_has"),s=e("./_object-dp").f,a=0,c=Object.isExtensible||function(){return!0},l=!e("./_fails")(function(){return c(Object.preventExtensions({}))}),u=function(e){s(e,n,{value:{i:"O"+ ++a,w:{}}})},f=t.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return l&&f.NEED&&c(e)&&!o(e,n)&&u(e),e}}},{"./_fails":37,"./_has":43,"./_is-object":53,"./_object-dp":73,"./_uid":123}],68:[function(e,t,r){var n=e("./es6.map"),i=e("./_export"),o=e("./_shared")("metadata"),s=o.store||(o.store=new(e("./es6.weak-map"))),a=function(e,t,r){var i=s.get(e);if(!i){if(!r)return;s.set(e,i=new n)}var o=i.get(t);if(!o){if(!r)return;i.set(t,o=new n)}return o};t.exports={store:s,map:a,has:function(e,t,r){var n=a(t,r,!1);return void 0!==n&&n.has(e)},get:function(e,t,r){var n=a(t,r,!1);return void 0===n?void 0:n.get(e)},set:function(e,t,r,n){a(r,n,!0).set(e,t)},keys:function(e,t){var r=a(e,t,!1),n=[];return r&&r.forEach(function(e,t){n.push(t)}),n},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){i(i.S,"Reflect",e)}}},{"./_export":35,"./_shared":102,"./es6.map":160,"./es6.weak-map":266}],69:[function(e,t,r){var n=e("./_global"),i=e("./_task").set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,c="process"==e("./_cof")(s);t.exports=function(){var e,t,r,l=function(){var n,i;for(c&&(n=s.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(c)r=function(){s.nextTick(l)};else if(!o||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var u=a.resolve();r=function(){u.then(l)}}else r=function(){i.call(n,l)};else{var f=!0,h=document.createTextNode("");new o(l).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},{"./_cof":20,"./_global":42,"./_task":112}],70:[function(e,t,r){"use strict";var n=e("./_a-function");t.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},{"./_a-function":5}],71:[function(e,t,r){"use strict";var n=e("./_object-keys"),i=e("./_object-gops"),o=e("./_object-pie"),s=e("./_to-object"),a=e("./_iobject"),c=Object.assign;t.exports=!c||e("./_fails")(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=c({},e)[r]||Object.keys(c({},t)).join("")!=n})?function(e,t){for(var r=s(e),c=arguments.length,l=1,u=i.f,f=o.f;c>l;)for(var h,_=a(arguments[l++]),p=u?n(_).concat(u(_)):n(_),d=p.length,m=0;d>m;)f.call(_,h=p[m++])&&(r[h]=_[h]);return r}:c},{"./_fails":37,"./_iobject":49,"./_object-gops":79,"./_object-keys":82,"./_object-pie":83,"./_to-object":118}],72:[function(e,t,r){var n=e("./_an-object"),i=e("./_object-dps"),o=e("./_enum-bug-keys"),s=e("./_shared-key")("IE_PROTO"),a=function(){},c=function(){var t,r=e("./_dom-create")("iframe"),n=o.length;for(r.style.display="none",e("./_html").appendChild(r),r.src="javascript:",(t=r.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[o[n]];return c()};t.exports=Object.create||function(e,t){var r;return null!==e?(a.prototype=n(e),r=new a,a.prototype=null,r[s]=e):r=c(),void 0===t?r:i(r,t)}},{"./_an-object":9,"./_dom-create":32,"./_enum-bug-keys":33,"./_html":45,"./_object-dps":74,"./_shared-key":101}],73:[function(e,t,r){var n=e("./_an-object"),i=e("./_ie8-dom-define"),o=e("./_to-primitive"),s=Object.defineProperty;r.f=e("./_descriptors")?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},{"./_an-object":9,"./_descriptors":31,"./_ie8-dom-define":46,"./_to-primitive":119}],74:[function(e,t,r){var n=e("./_object-dp"),i=e("./_an-object"),o=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){i(e);for(var r,s=o(t),a=s.length,c=0;a>c;)n.f(e,r=s[c++],t[r]);return e}},{"./_an-object":9,"./_descriptors":31,"./_object-dp":73,"./_object-keys":82}],75:[function(e,t,r){"use strict";t.exports=e("./_library")||!e("./_fails")(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete e("./_global")[t]})},{"./_fails":37,"./_global":42,"./_library":61}],76:[function(e,t,r){var n=e("./_object-pie"),i=e("./_property-desc"),o=e("./_to-iobject"),s=e("./_to-primitive"),a=e("./_has"),c=e("./_ie8-dom-define"),l=Object.getOwnPropertyDescriptor;r.f=e("./_descriptors")?l:function(e,t){if(e=o(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return i(!n.f.call(e,t),e[t])}},{"./_descriptors":31,"./_has":43,"./_ie8-dom-define":46,"./_object-pie":83,"./_property-desc":91,"./_to-iobject":116,"./_to-primitive":119}],77:[function(e,t,r){var n=e("./_to-iobject"),i=e("./_object-gopn").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return s.slice()}}(e):i(n(e))}},{"./_object-gopn":78,"./_to-iobject":116}],78:[function(e,t,r){var n=e("./_object-keys-internal"),i=e("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},{"./_enum-bug-keys":33,"./_object-keys-internal":81}],79:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],80:[function(e,t,r){var n=e("./_has"),i=e("./_to-object"),o=e("./_shared-key")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},{"./_has":43,"./_shared-key":101,"./_to-object":118}],81:[function(e,t,r){var n=e("./_has"),i=e("./_to-iobject"),o=e("./_array-includes")(!1),s=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var r,a=i(e),c=0,l=[];for(r in a)r!=s&&n(a,r)&&l.push(r);for(;t.length>c;)n(a,r=t[c++])&&(~o(l,r)||l.push(r));return l}},{"./_array-includes":13,"./_has":43,"./_shared-key":101,"./_to-iobject":116}],82:[function(e,t,r){var n=e("./_object-keys-internal"),i=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"./_enum-bug-keys":33,"./_object-keys-internal":81}],83:[function(e,t,r){r.f={}.propertyIsEnumerable},{}],84:[function(e,t,r){var n=e("./_export"),i=e("./_core"),o=e("./_fails");t.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],s={};s[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},{"./_core":25,"./_export":35,"./_fails":37}],85:[function(e,t,r){var n=e("./_object-keys"),i=e("./_to-iobject"),o=e("./_object-pie").f;t.exports=function(e){return function(t){for(var r,s=i(t),a=n(s),c=a.length,l=0,u=[];c>l;)o.call(s,r=a[l++])&&u.push(e?[r,s[r]]:s[r]);return u}}},{"./_object-keys":82,"./_object-pie":83,"./_to-iobject":116}],86:[function(e,t,r){var n=e("./_object-gopn"),i=e("./_object-gops"),o=e("./_an-object"),s=e("./_global").Reflect;t.exports=s&&s.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},{"./_an-object":9,"./_global":42,"./_object-gopn":78,"./_object-gops":79}],87:[function(e,t,r){var n=e("./_global").parseFloat,i=e("./_string-trim").trim;t.exports=1/n(e("./_string-ws")+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},{"./_global":42,"./_string-trim":110,"./_string-ws":111}],88:[function(e,t,r){var n=e("./_global").parseInt,i=e("./_string-trim").trim,o=e("./_string-ws"),s=/^[-+]?0[xX]/;t.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(e,t){var r=i(String(e),3);return n(r,t>>>0||(s.test(r)?16:10))}:n},{"./_global":42,"./_string-trim":110,"./_string-ws":111}],89:[function(e,t,r){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],90:[function(e,t,r){var n=e("./_an-object"),i=e("./_is-object"),o=e("./_new-promise-capability");t.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},{"./_an-object":9,"./_is-object":53,"./_new-promise-capability":70}],91:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],92:[function(e,t,r){var n=e("./_redefine");t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},{"./_redefine":93}],93:[function(e,t,r){var n=e("./_global"),i=e("./_hide"),o=e("./_has"),s=e("./_uid")("src"),a=Function.toString,c=(""+a).split("toString");e("./_core").inspectSource=function(e){return a.call(e)},(t.exports=function(e,t,r,a){var l="function"==typeof r;l&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(l&&(o(r,s)||i(r,s,e[t]?""+e[t]:c.join(String(t)))),e===n?e[t]=r:a?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},{"./_core":25,"./_global":42,"./_has":43,"./_hide":44,"./_uid":123}],94:[function(e,t,r){t.exports=function(e,t){var r=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,r)}}},{}],95:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],96:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_a-function"),o=e("./_ctx"),s=e("./_for-of");t.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,a,c=arguments[1];return i(this),(t=void 0!==c)&&i(c),void 0==e?new this:(r=[],t?(n=0,a=o(c,arguments[2],2),s(e,!1,function(e){r.push(a(e,n++))})):s(e,!1,r.push,r),new this(r))}})}},{"./_a-function":5,"./_ctx":27,"./_export":35,"./_for-of":41}],97:[function(e,t,r){"use strict";var n=e("./_export");t.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},{"./_export":35}],98:[function(e,t,r){var n=e("./_is-object"),i=e("./_an-object"),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,n){try{(n=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),r=!(t instanceof Array)}catch(e){r=!0}return function(e,t){return o(e,t),r?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:o}},{"./_an-object":9,"./_ctx":27,"./_is-object":53,"./_object-gopd":76}],99:[function(e,t,r){"use strict";var n=e("./_global"),i=e("./_object-dp"),o=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t=n[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_descriptors":31,"./_global":42,"./_object-dp":73,"./_wks":128}],100:[function(e,t,r){var n=e("./_object-dp").f,i=e("./_has"),o=e("./_wks")("toStringTag");t.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},{"./_has":43,"./_object-dp":73,"./_wks":128}],101:[function(e,t,r){var n=e("./_shared")("keys"),i=e("./_uid");t.exports=function(e){return n[e]||(n[e]=i(e))}},{"./_shared":102,"./_uid":123}],102:[function(e,t,r){var n=e("./_global"),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(e){return i[e]||(i[e]={})}},{"./_global":42}],103:[function(e,t,r){var n=e("./_an-object"),i=e("./_a-function"),o=e("./_wks")("species");t.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||void 0==(r=n(s)[o])?t:i(r)}},{"./_a-function":5,"./_an-object":9,"./_wks":128}],104:[function(e,t,r){"use strict";var n=e("./_fails");t.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},{"./_fails":37}],105:[function(e,t,r){var n=e("./_to-integer"),i=e("./_defined");t.exports=function(e){return function(t,r){var o,s,a=String(i(t)),c=n(r),l=a.length;return c<0||c>=l?e?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},{"./_defined":30,"./_to-integer":115}],106:[function(e,t,r){var n=e("./_is-regexp"),i=e("./_defined");t.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},{"./_defined":30,"./_is-regexp":54}],107:[function(e,t,r){var n=e("./_export"),i=e("./_fails"),o=e("./_defined"),s=/"/g,a=function(e,t,r,n){var i=String(o(e)),a="<"+t;return""!==r&&(a+=" "+r+'="'+String(n).replace(s,"&quot;")+'"'),a+">"+i+"</"+t+">"};t.exports=function(e,t){var r={};r[e]=t(a),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},{"./_defined":30,"./_export":35,"./_fails":37}],108:[function(e,t,r){var n=e("./_to-length"),i=e("./_string-repeat"),o=e("./_defined");t.exports=function(e,t,r,s){var a=String(o(e)),c=a.length,l=void 0===r?" ":String(r),u=n(t);if(u<=c||""==l)return a;var f=u-c,h=i.call(l,Math.ceil(f/l.length));return h.length>f&&(h=h.slice(0,f)),s?h+a:a+h}},{"./_defined":30,"./_string-repeat":109,"./_to-length":117}],109:[function(e,t,r){"use strict";var n=e("./_to-integer"),i=e("./_defined");t.exports=function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},{"./_defined":30,"./_to-integer":115}],110:[function(e,t,r){var n=e("./_export"),i=e("./_defined"),o=e("./_fails"),s=e("./_string-ws"),a="["+s+"]",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),u=function(e,t,r){var i={},a=o(function(){return!!s[e]()||"​\85"!="​\85"[e]()}),c=i[e]=a?t(f):s[e];r&&(i[r]=c),n(n.P+n.F*a,"String",i)},f=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};t.exports=u},{"./_defined":30,"./_export":35,"./_fails":37,"./_string-ws":111}],111:[function(e,t,r){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],112:[function(e,t,r){var n,i,o,s=e("./_ctx"),a=e("./_invoke"),c=e("./_html"),l=e("./_dom-create"),u=e("./_global"),f=u.process,h=u.setImmediate,_=u.clearImmediate,p=u.MessageChannel,d=u.Dispatch,m=0,y={},b=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},v=function(e){b.call(e.data)};h&&_||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return y[++m]=function(){a("function"==typeof e?e:Function(e),t)},n(m),m},_=function(e){delete y[e]},"process"==e("./_cof")(f)?n=function(e){f.nextTick(s(b,e,1))}:d&&d.now?n=function(e){d.now(s(b,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=v,n=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(e){u.postMessage(e+"","*")},u.addEventListener("message",v,!1)):n="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),b.call(e)}}:function(e){setTimeout(s(b,e,1),0)}),t.exports={set:h,clear:_}},{"./_cof":20,"./_ctx":27,"./_dom-create":32,"./_global":42,"./_html":45,"./_invoke":48}],113:[function(e,t,r){var n=e("./_to-integer"),i=Math.max,o=Math.min;t.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},{"./_to-integer":115}],114:[function(e,t,r){var n=e("./_to-integer"),i=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":115,"./_to-length":117}],115:[function(e,t,r){var n=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},{}],116:[function(e,t,r){var n=e("./_iobject"),i=e("./_defined");t.exports=function(e){return n(i(e))}},{"./_defined":30,"./_iobject":49}],117:[function(e,t,r){var n=e("./_to-integer"),i=Math.min;t.exports=function(e){return e>0?i(n(e),9007199254740991):0}},{"./_to-integer":115}],118:[function(e,t,r){var n=e("./_defined");t.exports=function(e){return Object(n(e))}},{"./_defined":30}],119:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":53}],120:[function(e,t,r){"use strict";if(e("./_descriptors")){var n=e("./_library"),i=e("./_global"),o=e("./_fails"),s=e("./_export"),a=e("./_typed"),c=e("./_typed-buffer"),l=e("./_ctx"),u=e("./_an-instance"),f=e("./_property-desc"),h=e("./_hide"),_=e("./_redefine-all"),p=e("./_to-integer"),d=e("./_to-length"),m=e("./_to-index"),y=e("./_to-absolute-index"),b=e("./_to-primitive"),v=e("./_has"),g=e("./_classof"),x=e("./_is-object"),w=e("./_to-object"),C=e("./_is-array-iter"),S=e("./_object-create"),k=e("./_object-gpo"),E=e("./_object-gopn").f,A=e("./core.get-iterator-method"),j=e("./_uid"),O=e("./_wks"),M=e("./_array-methods"),L=e("./_array-includes"),T=e("./_species-constructor"),R=e("./es6.array.iterator"),I=e("./_iterators"),P=e("./_iter-detect"),N=e("./_set-species"),D=e("./_array-fill"),F=e("./_array-copy-within"),B=e("./_object-dp"),H=e("./_object-gopd"),Z=B.f,z=H.f,W=i.RangeError,U=i.TypeError,V=i.Uint8Array,G=Array.prototype,K=c.ArrayBuffer,X=c.DataView,q=M(0),Y=M(2),Q=M(3),J=M(4),$=M(5),ee=M(6),te=L(!0),re=L(!1),ne=R.values,ie=R.keys,oe=R.entries,se=G.lastIndexOf,ae=G.reduce,ce=G.reduceRight,le=G.join,ue=G.sort,fe=G.slice,he=G.toString,_e=G.toLocaleString,pe=O("iterator"),de=O("toStringTag"),me=j("typed_constructor"),ye=j("def_constructor"),be=a.CONSTR,ve=a.TYPED,ge=a.VIEW,xe=M(1,function(e,t){return Ee(T(e,e[ye]),t)}),we=o(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),Ce=!!V&&!!V.prototype.set&&o(function(){new V(1).set({})}),Se=function(e,t){var r=p(e);if(r<0||r%t)throw W("Wrong offset!");return r},ke=function(e){if(x(e)&&ve in e)return e;throw U(e+" is not a typed array!")},Ee=function(e,t){if(!(x(e)&&me in e))throw U("It is not a typed array constructor!");return new e(t)},Ae=function(e,t){return je(T(e,e[ye]),t)},je=function(e,t){for(var r=0,n=t.length,i=Ee(e,n);n>r;)i[r]=t[r++];return i},Oe=function(e,t,r){Z(e,t,{get:function(){return this._d[r]}})},Me=function(e){var t,r,n,i,o,s,a=w(e),c=arguments.length,u=c>1?arguments[1]:void 0,f=void 0!==u,h=A(a);if(void 0!=h&&!C(h)){for(s=h.call(a),n=[],t=0;!(o=s.next()).done;t++)n.push(o.value);a=n}for(f&&c>2&&(u=l(u,arguments[2],2)),t=0,r=d(a.length),i=Ee(this,r);r>t;t++)i[t]=f?u(a[t],t):a[t];return i},Le=function(){for(var e=0,t=arguments.length,r=Ee(this,t);t>e;)r[e]=arguments[e++];return r},Te=!!V&&o(function(){_e.call(new V(1))}),Re=function(){return _e.apply(Te?fe.call(ke(this)):ke(this),arguments)},Ie={copyWithin:function(e,t){return F.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return D.apply(ke(this),arguments)},filter:function(e){return Ae(this,Y(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){q(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return le.apply(ke(this),arguments)},lastIndexOf:function(e){return se.apply(ke(this),arguments)},map:function(e){return xe(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ae.apply(ke(this),arguments)},reduceRight:function(e){return ce.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,r=Math.floor(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this},some:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ue.call(ke(this),e)},subarray:function(e,t){var r=ke(this),n=r.length,i=y(e,n);return new(T(r,r[ye]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===t?n:y(t,n))-i))}},Pe=function(e,t){return Ae(this,fe.call(ke(this),e,t))},Ne=function(e){ke(this);var t=Se(arguments[1],1),r=this.length,n=w(e),i=d(n.length),o=0;if(i+t>r)throw W("Wrong length!");for(;o<i;)this[t+o]=n[o++]},De={entries:function(){return oe.call(ke(this))},keys:function(){return ie.call(ke(this))},values:function(){return ne.call(ke(this))}},Fe=function(e,t){return x(e)&&e[ve]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Be=function(e,t){return Fe(e,t=b(t,!0))?f(2,e[t]):z(e,t)},He=function(e,t,r){return!(Fe(e,t=b(t,!0))&&x(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?Z(e,t,r):(e[t]=r.value,e)};be||(H.f=Be,B.f=He),s(s.S+s.F*!be,"Object",{getOwnPropertyDescriptor:Be,defineProperty:He}),o(function(){he.call({})})&&(he=_e=function(){return le.call(this)});var Ze=_({},Ie);_(Ze,De),h(Ze,pe,De.values),_(Ze,{slice:Pe,set:Ne,constructor:function(){},toString:he,toLocaleString:Re}),Oe(Ze,"buffer","b"),Oe(Ze,"byteOffset","o"),Oe(Ze,"byteLength","l"),Oe(Ze,"length","e"),Z(Ze,de,{get:function(){return this[ve]}}),t.exports=function(e,t,r,c){var l=e+((c=!!c)?"Clamped":"")+"Array",f="get"+e,_="set"+e,p=i[l],y=p||{},b=p&&k(p),v=!p||!a.ABV,w={},C=p&&p.prototype,A=function(e,r){Z(e,r,{get:function(){return function(e,r){var n=e._d;return n.v[f](r*t+n.o,we)}(this,r)},set:function(e){return function(e,r,n){var i=e._d;c&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),i.v[_](r*t+i.o,n,we)}(this,r,e)},enumerable:!0})};v?(p=r(function(e,r,n,i){u(e,p,l,"_d");var o,s,a,c,f=0,_=0;if(x(r)){if(!(r instanceof K||"ArrayBuffer"==(c=g(r))||"SharedArrayBuffer"==c))return ve in r?je(p,r):Me.call(p,r);o=r,_=Se(n,t);var y=r.byteLength;if(void 0===i){if(y%t)throw W("Wrong length!");if((s=y-_)<0)throw W("Wrong length!")}else if((s=d(i)*t)+_>y)throw W("Wrong length!");a=s/t}else a=m(r),o=new K(s=a*t);for(h(e,"_d",{b:o,o:_,l:s,e:a,v:new X(o)});f<a;)A(e,f++)}),C=p.prototype=S(Ze),h(C,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&P(function(e){new p,new p(null),new p(1.5),new p(e)},!0)||(p=r(function(e,r,n,i){u(e,p,l);var o;return x(r)?r instanceof K||"ArrayBuffer"==(o=g(r))||"SharedArrayBuffer"==o?void 0!==i?new y(r,Se(n,t),i):void 0!==n?new y(r,Se(n,t)):new y(r):ve in r?je(p,r):Me.call(p,r):new y(m(r))}),q(b!==Function.prototype?E(y).concat(E(b)):E(y),function(e){e in p||h(p,e,y[e])}),p.prototype=C,n||(C.constructor=p));var j=C[pe],O=!!j&&("values"==j.name||void 0==j.name),M=De.values;h(p,me,!0),h(C,ve,l),h(C,ge,!0),h(C,ye,p),(c?new p(1)[de]==l:de in C)||Z(C,de,{get:function(){return l}}),w[l]=p,s(s.G+s.W+s.F*(p!=y),w),s(s.S,l,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*o(function(){y.of.call(p,1)}),l,{from:Me,of:Le}),"BYTES_PER_ELEMENT"in C||h(C,"BYTES_PER_ELEMENT",t),s(s.P,l,Ie),N(l),s(s.P+s.F*Ce,l,{set:Ne}),s(s.P+s.F*!O,l,De),n||C.toString==he||(C.toString=he),s(s.P+s.F*o(function(){new p(1).slice()}),l,{slice:Pe}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){C.toLocaleString.call([1,2])})),l,{toLocaleString:Re}),I[l]=O?j:M,n||O||h(C,pe,M)}}else t.exports=function(){}},{"./_an-instance":8,"./_array-copy-within":10,"./_array-fill":11,"./_array-includes":13,"./_array-methods":14,"./_classof":19,"./_ctx":27,"./_descriptors":31,"./_export":35,"./_fails":37,"./_global":42,"./_has":43,"./_hide":44,"./_is-array-iter":50,"./_is-object":53,"./_iter-detect":58,"./_iterators":60,"./_library":61,"./_object-create":72,"./_object-dp":73,"./_object-gopd":76,"./_object-gopn":78,"./_object-gpo":80,"./_property-desc":91,"./_redefine-all":92,"./_set-species":99,"./_species-constructor":103,"./_to-absolute-index":113,"./_to-index":114,"./_to-integer":115,"./_to-length":117,"./_to-object":118,"./_to-primitive":119,"./_typed":122,"./_typed-buffer":121,"./_uid":123,"./_wks":128,"./core.get-iterator-method":129,"./es6.array.iterator":141}],121:[function(e,t,r){"use strict";function n(e,t,r){var n,i,o,s=new Array(r),a=8*r-t-1,c=(1<<a)-1,l=c>>1,u=23===t?F(2,-24)-F(2,-77):0,f=0,h=e<0||0===e&&1/e<0?1:0;for((e=D(e))!=e||e===P?(i=e!=e?1:0,n=c):(n=B(H(e)/Z),e*(o=F(2,-n))<1&&(n--,o*=2),(e+=n+l>=1?u/o:u*F(2,1-l))*o>=2&&(n++,o/=2),n+l>=c?(i=0,n=c):n+l>=1?(i=(e*o-1)*F(2,t),n+=l):(i=e*F(2,l-1)*F(2,t),n=0));t>=8;s[f++]=255&i,i/=256,t-=8);for(n=n<<t|i,a+=t;a>0;s[f++]=255&n,n/=256,a-=8);return s[--f]|=128*h,s}function i(e,t,r){var n,i=8*r-t-1,o=(1<<i)-1,s=o>>1,a=i-7,c=r-1,l=e[c--],u=127&l;for(l>>=7;a>0;u=256*u+e[c],c--,a-=8);for(n=u&(1<<-a)-1,u>>=-a,a+=t;a>0;n=256*n+e[c],c--,a-=8);if(0===u)u=1-s;else{if(u===o)return n?NaN:l?-P:P;n+=F(2,t),u-=s}return(l?-1:1)*n*F(2,u-t)}function o(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function s(e){return[255&e]}function a(e){return[255&e,e>>8&255]}function c(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function l(e){return n(e,52,8)}function u(e){return n(e,23,4)}function f(e,t,r){E(e[O],t,{get:function(){return this[r]}})}function h(e,t,r,n){var i=S(+r);if(i+t>e[W])throw I(M);var o=e[z]._b,s=i+e[U],a=o.slice(s,s+t);return n?a:a.reverse()}function _(e,t,r,n,i,o){var s=S(+r);if(s+t>e[W])throw I(M);for(var a=e[z]._b,c=s+e[U],l=n(+i),u=0;u<t;u++)a[c+u]=l[o?u:t-u-1]}var p=e("./_global"),d=e("./_descriptors"),m=e("./_library"),y=e("./_typed"),b=e("./_hide"),v=e("./_redefine-all"),g=e("./_fails"),x=e("./_an-instance"),w=e("./_to-integer"),C=e("./_to-length"),S=e("./_to-index"),k=e("./_object-gopn").f,E=e("./_object-dp").f,A=e("./_array-fill"),j=e("./_set-to-string-tag"),O="prototype",M="Wrong index!",L=p.ArrayBuffer,T=p.DataView,R=p.Math,I=p.RangeError,P=p.Infinity,N=L,D=R.abs,F=R.pow,B=R.floor,H=R.log,Z=R.LN2,z=d?"_b":"buffer",W=d?"_l":"byteLength",U=d?"_o":"byteOffset";if(y.ABV){if(!g(function(){L(1)})||!g(function(){new L(-1)})||g(function(){return new L,new L(1.5),new L(NaN),"ArrayBuffer"!=L.name})){for(var V,G=(L=function(e){return x(this,L),new N(S(e))})[O]=N[O],K=k(N),X=0;K.length>X;)(V=K[X++])in L||b(L,V,N[V]);m||(G.constructor=L)}var q=new T(new L(2)),Y=T[O].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||v(T[O],{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},!0)}else L=function(e){x(this,L,"ArrayBuffer");var t=S(e);this._b=A.call(new Array(t),0),this[W]=t},T=function(e,t,r){x(this,T,"DataView"),x(e,L,"DataView");var n=e[W],i=w(t);if(i<0||i>n)throw I("Wrong offset!");if(r=void 0===r?n-i:C(r),i+r>n)throw I("Wrong length!");this[z]=e,this[U]=i,this[W]=r},d&&(f(L,"byteLength","_l"),f(T,"buffer","_b"),f(T,"byteLength","_l"),f(T,"byteOffset","_o")),v(T[O],{getInt8:function(e){return h(this,1,e)[0]<<24>>24},getUint8:function(e){return h(this,1,e)[0]},getInt16:function(e){var t=h(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=h(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return o(h(this,4,e,arguments[1]))},getUint32:function(e){return o(h(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return i(h(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return i(h(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){_(this,1,e,s,t)},setUint8:function(e,t){_(this,1,e,s,t)},setInt16:function(e,t){_(this,2,e,a,t,arguments[2])},setUint16:function(e,t){_(this,2,e,a,t,arguments[2])},setInt32:function(e,t){_(this,4,e,c,t,arguments[2])},setUint32:function(e,t){_(this,4,e,c,t,arguments[2])},setFloat32:function(e,t){_(this,4,e,u,t,arguments[2])},setFloat64:function(e,t){_(this,8,e,l,t,arguments[2])}});j(L,"ArrayBuffer"),j(T,"DataView"),b(T[O],y.VIEW,!0),r.ArrayBuffer=L,r.DataView=T},{"./_an-instance":8,"./_array-fill":11,"./_descriptors":31,"./_fails":37,"./_global":42,"./_hide":44,"./_library":61,"./_object-dp":73,"./_object-gopn":78,"./_redefine-all":92,"./_set-to-string-tag":100,"./_to-index":114,"./_to-integer":115,"./_to-length":117,"./_typed":122}],122:[function(e,t,r){for(var n,i=e("./_global"),o=e("./_hide"),s=e("./_uid"),a=s("typed_array"),c=s("view"),l=!(!i.ArrayBuffer||!i.DataView),u=l,f=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(n=i[h[f++]])?(o(n.prototype,a,!0),o(n.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:a,VIEW:c}},{"./_global":42,"./_hide":44,"./_uid":123}],123:[function(e,t,r){var n=0,i=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},{}],124:[function(e,t,r){var n=e("./_global").navigator;t.exports=n&&n.userAgent||""},{"./_global":42}],125:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},{"./_is-object":53}],126:[function(e,t,r){var n=e("./_global"),i=e("./_core"),o=e("./_library"),s=e("./_wks-ext"),a=e("./_object-dp").f;t.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},{"./_core":25,"./_global":42,"./_library":61,"./_object-dp":73,"./_wks-ext":127}],127:[function(e,t,r){r.f=e("./_wks")},{"./_wks":128}],128:[function(e,t,r){var n=e("./_shared")("wks"),i=e("./_uid"),o=e("./_global").Symbol,s="function"==typeof o;(t.exports=function(e){return n[e]||(n[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=n},{"./_global":42,"./_shared":102,"./_uid":123}],129:[function(e,t,r){var n=e("./_classof"),i=e("./_wks")("iterator"),o=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},{"./_classof":19,"./_core":25,"./_iterators":60,"./_wks":128}],130:[function(e,t,r){var n=e("./_export"),i=e("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(e){return i(e)}})},{"./_export":35,"./_replacer":94}],131:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{copyWithin:e("./_array-copy-within")}),e("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":7,"./_array-copy-within":10,"./_export":35}],132:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(4);n(n.P+n.F*!e("./_strict-method")([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],133:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{fill:e("./_array-fill")}),e("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":7,"./_array-fill":11,"./_export":35}],134:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(2);n(n.P+n.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],135:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),n(n.P+n.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")(o)},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":35}],136:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")("find")},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":35}],137:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(0),o=e("./_strict-method")([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],138:[function(e,t,r){"use strict";var n=e("./_ctx"),i=e("./_export"),o=e("./_to-object"),s=e("./_iter-call"),a=e("./_is-array-iter"),c=e("./_to-length"),l=e("./_create-property"),u=e("./core.get-iterator-method");i(i.S+i.F*!e("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,f,h=o(e),_="function"==typeof this?this:Array,p=arguments.length,d=p>1?arguments[1]:void 0,m=void 0!==d,y=0,b=u(h);if(m&&(d=n(d,p>2?arguments[2]:void 0,2)),void 0==b||_==Array&&a(b))for(r=new _(t=c(h.length));t>y;y++)l(r,y,m?d(h[y],y):h[y]);else for(f=b.call(h),r=new _;!(i=f.next()).done;y++)l(r,y,m?s(f,d,[i.value,y],!0):i.value);return r.length=y,r}})},{"./_create-property":26,"./_ctx":27,"./_export":35,"./_is-array-iter":50,"./_iter-call":55,"./_iter-detect":58,"./_to-length":117,"./_to-object":118,"./core.get-iterator-method":129}],139:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-includes")(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(s||!e("./_strict-method")(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},{"./_array-includes":13,"./_export":35,"./_strict-method":104}],140:[function(e,t,r){var n=e("./_export");n(n.S,"Array",{isArray:e("./_is-array")})},{"./_export":35,"./_is-array":51}],141:[function(e,t,r){"use strict";var n=e("./_add-to-unscopables"),i=e("./_iter-step"),o=e("./_iterators"),s=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,r):"values"==t?i(0,e[r]):i(0,[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":7,"./_iter-define":57,"./_iter-step":59,"./_iterators":60,"./_to-iobject":116}],142:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-iobject"),o=[].join;n(n.P+n.F*(e("./_iobject")!=Object||!e("./_strict-method")(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},{"./_export":35,"./_iobject":49,"./_strict-method":104,"./_to-iobject":116}],143:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-iobject"),o=e("./_to-integer"),s=e("./_to-length"),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(c||!e("./_strict-method")(a)),"Array",{lastIndexOf:function(e){if(c)return a.apply(this,arguments)||0;var t=i(this),r=s(t.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},{"./_export":35,"./_strict-method":104,"./_to-integer":115,"./_to-iobject":116,"./_to-length":117}],144:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(1);n(n.P+n.F*!e("./_strict-method")([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],145:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_create-property");n(n.S+n.F*e("./_fails")(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},{"./_create-property":26,"./_export":35,"./_fails":37}],146:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-reduce");n(n.P+n.F*!e("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},{"./_array-reduce":15,"./_export":35,"./_strict-method":104}],147:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-reduce");n(n.P+n.F*!e("./_strict-method")([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},{"./_array-reduce":15,"./_export":35,"./_strict-method":104}],148:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_html"),o=e("./_cof"),s=e("./_to-absolute-index"),a=e("./_to-length"),c=[].slice;n(n.P+n.F*e("./_fails")(function(){i&&c.call(i)}),"Array",{slice:function(e,t){var r=a(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return c.call(this,e,t);for(var i=s(e,r),l=s(t,r),u=a(l-i),f=new Array(u),h=0;h<u;h++)f[h]="String"==n?this.charAt(i+h):this[i+h];return f}})},{"./_cof":20,"./_export":35,"./_fails":37,"./_html":45,"./_to-absolute-index":113,"./_to-length":117}],149:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(3);n(n.P+n.F*!e("./_strict-method")([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],150:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_a-function"),o=e("./_to-object"),s=e("./_fails"),a=[].sort,c=[1,2,3];n(n.P+n.F*(s(function(){c.sort(void 0)})||!s(function(){c.sort(null)})||!e("./_strict-method")(a)),"Array",{sort:function(e){return void 0===e?a.call(o(this)):a.call(o(this),i(e))}})},{"./_a-function":5,"./_export":35,"./_fails":37,"./_strict-method":104,"./_to-object":118}],151:[function(e,t,r){e("./_set-species")("Array")},{"./_set-species":99}],152:[function(e,t,r){var n=e("./_export");n(n.S,"Date",{now:function(){return(new Date).getTime()}})},{"./_export":35}],153:[function(e,t,r){var n=e("./_export"),i=e("./_date-to-iso-string");n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},{"./_date-to-iso-string":28,"./_export":35}],154:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_to-primitive");n(n.P+n.F*e("./_fails")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},{"./_export":35,"./_fails":37,"./_to-object":118,"./_to-primitive":119}],155:[function(e,t,r){var n=e("./_wks")("toPrimitive"),i=Date.prototype;n in i||e("./_hide")(i,n,e("./_date-to-primitive"))},{"./_date-to-primitive":29,"./_hide":44,"./_wks":128}],156:[function(e,t,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&e("./_redefine")(n,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},{"./_redefine":93}],157:[function(e,t,r){var n=e("./_export");n(n.P,"Function",{bind:e("./_bind")})},{"./_bind":18,"./_export":35}],158:[function(e,t,r){"use strict";var n=e("./_is-object"),i=e("./_object-gpo"),o=e("./_wks")("hasInstance"),s=Function.prototype;o in s||e("./_object-dp").f(s,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},{"./_is-object":53,"./_object-dp":73,"./_object-gpo":80,"./_wks":128}],159:[function(e,t,r){var n=e("./_object-dp").f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||e("./_descriptors")&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},{"./_descriptors":31,"./_object-dp":73}],160:[function(e,t,r){"use strict";var n=e("./_collection-strong"),i=e("./_validate-collection");t.exports=e("./_collection")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(i(this,"Map"),0===e?0:e,t)}},n,!0)},{"./_collection":24,"./_collection-strong":21,"./_validate-collection":125}],161:[function(e,t,r){var n=e("./_export"),i=e("./_math-log1p"),o=Math.sqrt,s=Math.acosh;n(n.S+n.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},{"./_export":35,"./_math-log1p":64}],162:[function(e,t,r){function n(e){return isFinite(e=+e)&&0!=e?e<0?-n(-e):Math.log(e+Math.sqrt(e*e+1)):e}var i=e("./_export"),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:n})},{"./_export":35}],163:[function(e,t,r){var n=e("./_export"),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},{"./_export":35}],164:[function(e,t,r){var n=e("./_export"),i=e("./_math-sign");n(n.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},{"./_export":35,"./_math-sign":66}],165:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},{"./_export":35}],166:[function(e,t,r){var n=e("./_export"),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},{"./_export":35}],167:[function(e,t,r){var n=e("./_export"),i=e("./_math-expm1");n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},{"./_export":35,"./_math-expm1":62}],168:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{fround:e("./_math-fround")})},{"./_export":35,"./_math-fround":63}],169:[function(e,t,r){var n=e("./_export"),i=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,s=0,a=arguments.length,c=0;s<a;)c<(r=i(arguments[s++]))?(o=o*(n=c/r)*n+1,c=r):o+=r>0?(n=r/c)*n:r;return c===1/0?1/0:c*Math.sqrt(o)}})},{"./_export":35}],170:[function(e,t,r){var n=e("./_export"),i=Math.imul;n(n.S+n.F*e("./_fails")(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},{"./_export":35,"./_fails":37}],171:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},{"./_export":35}],172:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log1p:e("./_math-log1p")})},{"./_export":35,"./_math-log1p":64}],173:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},{"./_export":35}],174:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{sign:e("./_math-sign")})},{"./_export":35,"./_math-sign":66}],175:[function(e,t,r){var n=e("./_export"),i=e("./_math-expm1"),o=Math.exp;n(n.S+n.F*e("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},{"./_export":35,"./_fails":37,"./_math-expm1":62}],176:[function(e,t,r){var n=e("./_export"),i=e("./_math-expm1"),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},{"./_export":35,"./_math-expm1":62}],177:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},{"./_export":35}],178:[function(e,t,r){"use strict";var n=e("./_global"),i=e("./_has"),o=e("./_cof"),s=e("./_inherit-if-required"),a=e("./_to-primitive"),c=e("./_fails"),l=e("./_object-gopn").f,u=e("./_object-gopd").f,f=e("./_object-dp").f,h=e("./_string-trim").trim,_=n.Number,p=_,d=_.prototype,m="Number"==o(e("./_object-create")(d)),y="trim"in String.prototype,b=function(e){var t=a(e,!1);if("string"==typeof t&&t.length>2){var r,n,i,o=(t=y?t.trim():h(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var s,c=t.slice(2),l=0,u=c.length;l<u;l++)if((s=c.charCodeAt(l))<48||s>i)return NaN;return parseInt(c,n)}}return+t};if(!_(" 0o1")||!_("0b1")||_("+0x1")){_=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof _&&(m?c(function(){d.valueOf.call(r)}):"Number"!=o(r))?s(new p(b(t)),r,_):b(t)};for(var v,g=e("./_descriptors")?l(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;g.length>x;x++)i(p,v=g[x])&&!i(_,v)&&f(_,v,u(p,v));_.prototype=d,d.constructor=_,e("./_redefine")(n,"Number",_)}},{"./_cof":20,"./_descriptors":31,"./_fails":37,"./_global":42,"./_has":43,"./_inherit-if-required":47,"./_object-create":72,"./_object-dp":73,"./_object-gopd":76,"./_object-gopn":78,"./_redefine":93,"./_string-trim":110,"./_to-primitive":119}],179:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":35}],180:[function(e,t,r){var n=e("./_export"),i=e("./_global").isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},{"./_export":35,"./_global":42}],181:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isInteger:e("./_is-integer")})},{"./_export":35,"./_is-integer":52}],182:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isNaN:function(e){return e!=e}})},{"./_export":35}],183:[function(e,t,r){var n=e("./_export"),i=e("./_is-integer"),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},{"./_export":35,"./_is-integer":52}],184:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":35}],185:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":35}],186:[function(e,t,r){var n=e("./_export"),i=e("./_parse-float");n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},{"./_export":35,"./_parse-float":87}],187:[function(e,t,r){var n=e("./_export"),i=e("./_parse-int");n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},{"./_export":35,"./_parse-int":88}],188:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-integer"),o=e("./_a-number-value"),s=e("./_string-repeat"),a=1..toFixed,c=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",f=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*l[r],l[r]=n%1e7,n=c(n/1e7)},h=function(e){for(var t=6,r=0;--t>=0;)r+=l[t],l[t]=c(r/e),r=r%e*1e7},_=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==l[e]){var r=String(l[e]);t=""===t?r:t+s.call("0",7-r.length)+r}return t},p=function(e,t,r){return 0===t?r:t%2==1?p(e,t-1,r*e):p(e*e,t/2,r)};n(n.P+n.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e("./_fails")(function(){a.call({})})),"Number",{toFixed:function(e){var t,r,n,a,c=o(this,u),l=i(e),d="",m="0";if(l<0||l>20)throw RangeError(u);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(d="-",c=-c),c>1e-21)if(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(c*p(2,69,1))-69,r=t<0?c*p(2,-t,1):c/p(2,t,1),r*=4503599627370496,(t=52-t)>0){for(f(0,r),n=l;n>=7;)f(1e7,0),n-=7;for(f(p(10,n,1),0),n=t-1;n>=23;)h(1<<23),n-=23;h(1<<n),f(1,1),h(2),m=_()}else f(0,r),f(1<<-t,0),m=_()+s.call("0",l);return m=l>0?d+((a=m.length)<=l?"0."+s.call("0",l-a)+m:m.slice(0,a-l)+"."+m.slice(a-l)):d+m}})},{"./_a-number-value":6,"./_export":35,"./_fails":37,"./_string-repeat":109,"./_to-integer":115}],189:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_fails"),o=e("./_a-number-value"),s=1..toPrecision;n(n.P+n.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?s.call(t):s.call(t,e)}})},{"./_a-number-value":6,"./_export":35,"./_fails":37}],190:[function(e,t,r){var n=e("./_export");n(n.S+n.F,"Object",{assign:e("./_object-assign")})},{"./_export":35,"./_object-assign":71}],191:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{create:e("./_object-create")})},{"./_export":35,"./_object-create":72}],192:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperties:e("./_object-dps")})},{"./_descriptors":31,"./_export":35,"./_object-dps":74}],193:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":31,"./_export":35,"./_object-dp":73}],194:[function(e,t,r){var n=e("./_is-object"),i=e("./_meta").onFreeze;e("./_object-sap")("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},{"./_is-object":53,"./_meta":67,"./_object-sap":84}],195:[function(e,t,r){var n=e("./_to-iobject"),i=e("./_object-gopd").f;e("./_object-sap")("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},{"./_object-gopd":76,"./_object-sap":84,"./_to-iobject":116}],196:[function(e,t,r){e("./_object-sap")("getOwnPropertyNames",function(){return e("./_object-gopn-ext").f})},{"./_object-gopn-ext":77,"./_object-sap":84}],197:[function(e,t,r){var n=e("./_to-object"),i=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",function(){return function(e){return i(n(e))}})},{"./_object-gpo":80,"./_object-sap":84,"./_to-object":118}],198:[function(e,t,r){var n=e("./_is-object");e("./_object-sap")("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},{"./_is-object":53,"./_object-sap":84}],199:[function(e,t,r){var n=e("./_is-object");e("./_object-sap")("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},{"./_is-object":53,"./_object-sap":84}],200:[function(e,t,r){var n=e("./_is-object");e("./_object-sap")("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},{"./_is-object":53,"./_object-sap":84}],201:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{is:e("./_same-value")})},{"./_export":35,"./_same-value":95}],202:[function(e,t,r){var n=e("./_to-object"),i=e("./_object-keys");e("./_object-sap")("keys",function(){return function(e){return i(n(e))}})},{"./_object-keys":82,"./_object-sap":84,"./_to-object":118}],203:[function(e,t,r){var n=e("./_is-object"),i=e("./_meta").onFreeze;e("./_object-sap")("preventExtensions",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},{"./_is-object":53,"./_meta":67,"./_object-sap":84}],204:[function(e,t,r){var n=e("./_is-object"),i=e("./_meta").onFreeze;e("./_object-sap")("seal",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},{"./_is-object":53,"./_meta":67,"./_object-sap":84}],205:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{setPrototypeOf:e("./_set-proto").set})},{"./_export":35,"./_set-proto":98}],206:[function(e,t,r){"use strict";var n=e("./_classof"),i={};i[e("./_wks")("toStringTag")]="z",i+""!="[object z]"&&e("./_redefine")(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},{"./_classof":19,"./_redefine":93,"./_wks":128}],207:[function(e,t,r){var n=e("./_export"),i=e("./_parse-float");n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},{"./_export":35,"./_parse-float":87}],208:[function(e,t,r){var n=e("./_export"),i=e("./_parse-int");n(n.G+n.F*(parseInt!=i),{parseInt:i})},{"./_export":35,"./_parse-int":88}],209:[function(e,t,r){"use strict";var n,i,o,s,a=e("./_library"),c=e("./_global"),l=e("./_ctx"),u=e("./_classof"),f=e("./_export"),h=e("./_is-object"),_=e("./_a-function"),p=e("./_an-instance"),d=e("./_for-of"),m=e("./_species-constructor"),y=e("./_task").set,b=e("./_microtask")(),v=e("./_new-promise-capability"),g=e("./_perform"),x=e("./_promise-resolve"),w=c.TypeError,C=c.process,S=c.Promise,k="process"==u(C),E=function(){},A=i=v.f,j=!!function(){try{var t=S.resolve(1),r=(t.constructor={})[e("./_wks")("species")]=function(e){e(E,E)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof r}catch(e){}}(),O=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var r=e._c;b(function(){for(var n=e._v,i=1==e._s,o=0,s=function(t){var r,o,s=i?t.ok:t.fail,a=t.resolve,c=t.reject,l=t.domain;try{s?(i||(2==e._h&&R(e),e._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&l.exit()),r===t.promise?c(w("Promise-chain cycle")):(o=O(r))?o.call(r,a,c):a(r)):c(n)}catch(e){c(e)}};r.length>o;)s(r[o++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){y.call(c,function(){var t,r,n,i=e._v,o=T(e);if(o&&(t=g(function(){k?C.emit("unhandledRejection",i,e):(r=c.onunhandledrejection)?r({promise:e,reason:i}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=k||T(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},T=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){y.call(c,function(){var t;k?C.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},I=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},P=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw w("Promise can't be resolved itself");(t=O(e))?b(function(){var n={_w:r,_d:!1};try{t.call(e,l(P,n,1),l(I,n,1))}catch(e){I.call(n,e)}}):(r._v=e,r._s=1,M(r,!1))}catch(e){I.call({_w:r,_d:!1},e)}}};j||(S=function(e){p(this,S,"Promise","_h"),_(e),n.call(this);try{e(l(P,this,1),l(I,this,1))}catch(e){I.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e("./_redefine-all")(S.prototype,{then:function(e,t){var r=A(m(this,S));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=k?C.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=l(P,e,1),this.reject=l(I,e,1)},v.f=A=function(e){return e===S||e===s?new o(e):i(e)}),f(f.G+f.W+f.F*!j,{Promise:S}),e("./_set-to-string-tag")(S,"Promise"),e("./_set-species")("Promise"),s=e("./_core").Promise,f(f.S+f.F*!j,"Promise",{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(a||!j),"Promise",{resolve:function(e){return x(a&&this===s?S:this,e)}}),f(f.S+f.F*!(j&&e("./_iter-detect")(function(e){S.all(e).catch(E)})),"Promise",{all:function(e){var t=this,r=A(t),n=r.resolve,i=r.reject,o=g(function(){var r=[],o=0,s=1;d(e,!1,function(e){var a=o++,c=!1;r.push(void 0),s++,t.resolve(e).then(function(e){c||(c=!0,r[a]=e,--s||n(r))},i)}),--s||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=A(t),n=r.reject,i=g(function(){d(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},{"./_a-function":5,"./_an-instance":8,"./_classof":19,"./_core":25,"./_ctx":27,"./_export":35,"./_for-of":41,"./_global":42,"./_is-object":53,"./_iter-detect":58,"./_library":61,"./_microtask":69,"./_new-promise-capability":70,"./_perform":89,"./_promise-resolve":90,"./_redefine-all":92,"./_set-species":99,"./_set-to-string-tag":100,"./_species-constructor":103,"./_task":112,"./_wks":128}],210:[function(e,t,r){var n=e("./_export"),i=e("./_a-function"),o=e("./_an-object"),s=(e("./_global").Reflect||{}).apply,a=Function.apply;n(n.S+n.F*!e("./_fails")(function(){s(function(){})}),"Reflect",{apply:function(e,t,r){var n=i(e),c=o(r);return s?s(n,t,c):a.call(n,t,c)}})},{"./_a-function":5,"./_an-object":9,"./_export":35,"./_fails":37,"./_global":42}],211:[function(e,t,r){var n=e("./_export"),i=e("./_object-create"),o=e("./_a-function"),s=e("./_an-object"),a=e("./_is-object"),c=e("./_fails"),l=e("./_bind"),u=(e("./_global").Reflect||{}).construct,f=c(function(){function e(){}return!(u(function(){},[],e)instanceof e)}),h=!c(function(){u(function(){})});n(n.S+n.F*(f||h),"Reflect",{construct:function(e,t){o(e),s(t);var r=arguments.length<3?e:o(arguments[2]);if(h&&!f)return u(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(l.apply(e,n))}var c=r.prototype,_=i(a(c)?c:Object.prototype),p=Function.apply.call(e,_,t);return a(p)?p:_}})},{"./_a-function":5,"./_an-object":9,"./_bind":18,"./_export":35,"./_fails":37,"./_global":42,"./_is-object":53,"./_object-create":72}],212:[function(e,t,r){var n=e("./_object-dp"),i=e("./_export"),o=e("./_an-object"),s=e("./_to-primitive");i(i.S+i.F*e("./_fails")(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,r){o(e),t=s(t,!0),o(r);try{return n.f(e,t,r),!0}catch(e){return!1}}})},{"./_an-object":9,"./_export":35,"./_fails":37,"./_object-dp":73,"./_to-primitive":119}],213:[function(e,t,r){var n=e("./_export"),i=e("./_object-gopd").f,o=e("./_an-object");n(n.S,"Reflect",{deleteProperty:function(e,t){var r=i(o(e),t);return!(r&&!r.configurable)&&delete e[t]}})},{"./_an-object":9,"./_export":35,"./_object-gopd":76}],214:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_an-object"),o=function(e){this._t=i(e),this._i=0;var t,r=this._k=[];for(t in e)r.push(t)};e("./_iter-create")(o,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},{"./_an-object":9,"./_export":35,"./_iter-create":56}],215:[function(e,t,r){var n=e("./_object-gopd"),i=e("./_export"),o=e("./_an-object");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},{"./_an-object":9,"./_export":35,"./_object-gopd":76}],216:[function(e,t,r){var n=e("./_export"),i=e("./_object-gpo"),o=e("./_an-object");n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},{"./_an-object":9,"./_export":35,"./_object-gpo":80}],217:[function(e,t,r){function n(e,t){var r,a,u=arguments.length<3?e:arguments[2];return l(e)===u?e[t]:(r=i.f(e,t))?s(r,"value")?r.value:void 0!==r.get?r.get.call(u):void 0:c(a=o(e))?n(a,t,u):void 0}var i=e("./_object-gopd"),o=e("./_object-gpo"),s=e("./_has"),a=e("./_export"),c=e("./_is-object"),l=e("./_an-object");a(a.S,"Reflect",{get:n})},{"./_an-object":9,"./_export":35,"./_has":43,"./_is-object":53,"./_object-gopd":76,"./_object-gpo":80}],218:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{has:function(e,t){return t in e}})},{"./_export":35}],219:[function(e,t,r){var n=e("./_export"),i=e("./_an-object"),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},{"./_an-object":9,"./_export":35}],220:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{ownKeys:e("./_own-keys")})},{"./_export":35,"./_own-keys":86}],221:[function(e,t,r){var n=e("./_export"),i=e("./_an-object"),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},{"./_an-object":9,"./_export":35}],222:[function(e,t,r){var n=e("./_export"),i=e("./_set-proto");i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},{"./_export":35,"./_set-proto":98}],223:[function(e,t,r){function n(e,t,r){var c,h,_=arguments.length<4?e:arguments[3],p=o.f(u(e),t);if(!p){if(f(h=s(e)))return n(h,t,r,_);p=l(0)}return a(p,"value")?!(!1===p.writable||!f(_))&&(c=o.f(_,t)||l(0),c.value=r,i.f(_,t,c),!0):void 0!==p.set&&(p.set.call(_,r),!0)}var i=e("./_object-dp"),o=e("./_object-gopd"),s=e("./_object-gpo"),a=e("./_has"),c=e("./_export"),l=e("./_property-desc"),u=e("./_an-object"),f=e("./_is-object");c(c.S,"Reflect",{set:n})},{"./_an-object":9,"./_export":35,"./_has":43,"./_is-object":53,"./_object-dp":73,"./_object-gopd":76,"./_object-gpo":80,"./_property-desc":91}],224:[function(e,t,r){var n=e("./_global"),i=e("./_inherit-if-required"),o=e("./_object-dp").f,s=e("./_object-gopn").f,a=e("./_is-regexp"),c=e("./_flags"),l=n.RegExp,u=l,f=l.prototype,h=/a/g,_=/a/g,p=new l(h)!==h;if(e("./_descriptors")&&(!p||e("./_fails")(function(){return _[e("./_wks")("match")]=!1,l(h)!=h||l(_)==_||"/a/i"!=l(h,"i")}))){l=function(e,t){var r=this instanceof l,n=a(e),o=void 0===t;return!r&&n&&e.constructor===l&&o?e:i(p?new u(n&&!o?e.source:e,t):u((n=e instanceof l)?e.source:e,n&&o?c.call(e):t),r?this:f,l)};for(var d=function(e){e in l||o(l,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},m=s(u),y=0;m.length>y;)d(m[y++]);f.constructor=l,l.prototype=f,e("./_redefine")(n,"RegExp",l)}e("./_set-species")("RegExp")},{"./_descriptors":31,"./_fails":37,"./_flags":39,"./_global":42,"./_inherit-if-required":47,"./_is-regexp":54,"./_object-dp":73,"./_object-gopn":78,"./_redefine":93,"./_set-species":99,"./_wks":128}],225:[function(e,t,r){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":31,"./_flags":39,"./_object-dp":73}],226:[function(e,t,r){e("./_fix-re-wks")("match",1,function(e,t,r){return[function(r){"use strict";var n=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},r]})},{"./_fix-re-wks":38}],227:[function(e,t,r){e("./_fix-re-wks")("replace",2,function(e,t,r){return[function(n,i){"use strict";var o=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},{"./_fix-re-wks":38}],228:[function(e,t,r){e("./_fix-re-wks")("search",1,function(e,t,r){return[function(r){"use strict";var n=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},r]})},{"./_fix-re-wks":38}],229:[function(e,t,r){e("./_fix-re-wks")("split",2,function(t,r,n){"use strict";var i=e("./_is-regexp"),o=n,s=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var a=void 0===/()??/.exec("")[1];n=function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(r,e,t);var n,c,l,u,f,h=[],_=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,_+"g");for(a||(n=new RegExp("^"+m.source+"$(?!\\s)",_));(c=m.exec(r))&&!((l=c.index+c[0].length)>p&&(h.push(r.slice(p,c.index)),!a&&c.length>1&&c[0].replace(n,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(c[f]=void 0)}),c.length>1&&c.index<r.length&&s.apply(h,c.slice(1)),u=c[0].length,p=l,h.length>=d));)m.lastIndex===c.index&&m.lastIndex++;return p===r.length?!u&&m.test("")||h.push(""):h.push(r.slice(p)),h.length>d?h.slice(0,d):h}}else"0".split(void 0,0).length&&(n=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(e,i){var o=t(this),s=void 0==e?void 0:e[r];return void 0!==s?s.call(e,o,i):n.call(String(o),e,i)},n]})},{"./_fix-re-wks":38,"./_is-regexp":54}],230:[function(e,t,r){"use strict";e("./es6.regexp.flags");var n=e("./_an-object"),i=e("./_flags"),o=e("./_descriptors"),s=/./.toString,a=function(t){e("./_redefine")(RegExp.prototype,"toString",t,!0)};e("./_fails")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},{"./_an-object":9,"./_descriptors":31,"./_fails":37,"./_flags":39,"./_redefine":93,"./es6.regexp.flags":225}],231:[function(e,t,r){"use strict";var n=e("./_collection-strong"),i=e("./_validate-collection");t.exports=e("./_collection")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},{"./_collection":24,"./_collection-strong":21,"./_validate-collection":125}],232:[function(e,t,r){"use strict";e("./_string-html")("anchor",function(e){return function(t){return e(this,"a","name",t)}})},{"./_string-html":107}],233:[function(e,t,r){"use strict";e("./_string-html")("big",function(e){return function(){return e(this,"big","","")}})},{"./_string-html":107}],234:[function(e,t,r){"use strict";e("./_string-html")("blink",function(e){return function(){return e(this,"blink","","")}})},{"./_string-html":107}],235:[function(e,t,r){"use strict";e("./_string-html")("bold",function(e){return function(){return e(this,"b","","")}})},{"./_string-html":107}],236:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-at")(!1);n(n.P,"String",{codePointAt:function(e){return i(this,e)}})},{"./_export":35,"./_string-at":105}],237:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-length"),o=e("./_string-context"),s="".endsWith;n(n.P+n.F*e("./_fails-is-regexp")("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),a=void 0===r?n:Math.min(i(r),n),c=String(e);return s?s.call(t,c,a):t.slice(a-c.length,a)===c}})},{"./_export":35,"./_fails-is-regexp":36,"./_string-context":106,"./_to-length":117}],238:[function(e,t,r){"use strict";e("./_string-html")("fixed",function(e){return function(){return e(this,"tt","","")}})},{"./_string-html":107}],239:[function(e,t,r){"use strict";e("./_string-html")("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},{"./_string-html":107}],240:[function(e,t,r){"use strict";e("./_string-html")("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},{"./_string-html":107}],241:[function(e,t,r){var n=e("./_export"),i=e("./_to-absolute-index"),o=String.fromCharCode,s=String.fromCodePoint;n(n.S+n.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,s=0;n>s;){if(t=+arguments[s++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},{"./_export":35,"./_to-absolute-index":113}],242:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-context");n(n.P+n.F*e("./_fails-is-regexp")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},{"./_export":35,"./_fails-is-regexp":36,"./_string-context":106}],243:[function(e,t,r){"use strict";e("./_string-html")("italics",function(e){return function(){return e(this,"i","","")}})},{"./_string-html":107}],244:[function(e,t,r){"use strict";var n=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":57,"./_string-at":105}],245:[function(e,t,r){"use strict";e("./_string-html")("link",function(e){return function(t){return e(this,"a","href",t)}})},{"./_string-html":107}],246:[function(e,t,r){var n=e("./_export"),i=e("./_to-iobject"),o=e("./_to-length");n(n.S,"String",{raw:function(e){for(var t=i(e.raw),r=o(t.length),n=arguments.length,s=[],a=0;r>a;)s.push(String(t[a++])),a<n&&s.push(String(arguments[a]));return s.join("")}})},{"./_export":35,"./_to-iobject":116,"./_to-length":117}],247:[function(e,t,r){var n=e("./_export");n(n.P,"String",{repeat:e("./_string-repeat")})},{"./_export":35,"./_string-repeat":109}],248:[function(e,t,r){"use strict";e("./_string-html")("small",function(e){return function(){return e(this,"small","","")}})},{"./_string-html":107}],249:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-length"),o=e("./_string-context"),s="".startsWith;n(n.P+n.F*e("./_fails-is-regexp")("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return s?s.call(t,n,r):t.slice(r,r+n.length)===n}})},{"./_export":35,"./_fails-is-regexp":36,"./_string-context":106,"./_to-length":117}],250:[function(e,t,r){"use strict";e("./_string-html")("strike",function(e){return function(){return e(this,"strike","","")}})},{"./_string-html":107}],251:[function(e,t,r){"use strict";e("./_string-html")("sub",function(e){return function(){return e(this,"sub","","")}})},{"./_string-html":107}],252:[function(e,t,r){"use strict";e("./_string-html")("sup",function(e){return function(){return e(this,"sup","","")}})},{"./_string-html":107}],253:[function(e,t,r){"use strict";e("./_string-trim")("trim",function(e){return function(){return e(this,3)}})},{"./_string-trim":110}],254:[function(e,t,r){"use strict";var n=e("./_global"),i=e("./_has"),o=e("./_descriptors"),s=e("./_export"),a=e("./_redefine"),c=e("./_meta").KEY,l=e("./_fails"),u=e("./_shared"),f=e("./_set-to-string-tag"),h=e("./_uid"),_=e("./_wks"),p=e("./_wks-ext"),d=e("./_wks-define"),m=e("./_enum-keys"),y=e("./_is-array"),b=e("./_an-object"),v=e("./_is-object"),g=e("./_to-iobject"),x=e("./_to-primitive"),w=e("./_property-desc"),C=e("./_object-create"),S=e("./_object-gopn-ext"),k=e("./_object-gopd"),E=e("./_object-dp"),A=e("./_object-keys"),j=k.f,O=E.f,M=S.f,L=n.Symbol,T=n.JSON,R=T&&T.stringify,I=_("_hidden"),P=_("toPrimitive"),N={}.propertyIsEnumerable,D=u("symbol-registry"),F=u("symbols"),B=u("op-symbols"),H=Object.prototype,Z="function"==typeof L,z=n.QObject,W=!z||!z.prototype||!z.prototype.findChild,U=o&&l(function(){return 7!=C(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=j(H,t);n&&delete H[t],O(e,t,r),n&&e!==H&&O(H,t,n)}:O,V=function(e){var t=F[e]=C(L.prototype);return t._k=e,t},G=Z&&"symbol"==typeof L.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof L},K=function(e,t,r){return e===H&&K(B,t,r),b(e),t=x(t,!0),b(r),i(F,t)?(r.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),r=C(r,{enumerable:w(0,!1)})):(i(e,I)||O(e,I,w(1,{})),e[I][t]=!0),U(e,t,r)):O(e,t,r)},X=function(e,t){b(e);for(var r,n=m(t=g(t)),i=0,o=n.length;o>i;)K(e,r=n[i++],t[r]);return e},q=function(e){var t=N.call(this,e=x(e,!0));return!(this===H&&i(F,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(F,e)||i(this,I)&&this[I][e])||t)},Y=function(e,t){if(e=g(e),t=x(t,!0),e!==H||!i(F,t)||i(B,t)){var r=j(e,t);return!r||!i(F,t)||i(e,I)&&e[I][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=M(g(e)),n=[],o=0;r.length>o;)i(F,t=r[o++])||t==I||t==c||n.push(t);return n},J=function(e){for(var t,r=e===H,n=M(r?B:g(e)),o=[],s=0;n.length>s;)!i(F,t=n[s++])||r&&!i(H,t)||o.push(F[t]);return o};Z||(a((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(B,r),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),U(this,e,w(1,r))};return o&&W&&U(H,e,{configurable:!0,set:t}),V(e)}).prototype,"toString",function(){return this._k}),k.f=Y,E.f=K,e("./_object-gopn").f=S.f=Q,e("./_object-pie").f=q,e("./_object-gops").f=J,o&&!e("./_library")&&a(H,"propertyIsEnumerable",q,!0),p.f=function(e){return V(_(e))}),s(s.G+s.W+s.F*!Z,{Symbol:L});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;$.length>ee;)_($[ee++]);for(var te=A(_.store),re=0;te.length>re;)d(te[re++]);s(s.S+s.F*!Z,"Symbol",{for:function(e){return i(D,e+="")?D[e]:D[e]=L(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!Z,"Object",{create:function(e,t){return void 0===t?C(e):X(C(e),t)},defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Q,getOwnPropertySymbols:J}),T&&s(s.S+s.F*(!Z||l(function(){var e=L();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(v(t)||void 0!==e)&&!G(e))return y(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!G(t))return t}),n[1]=t,R.apply(T,n)}}),L.prototype[P]||e("./_hide")(L.prototype,P,L.prototype.valueOf),f(L,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},{"./_an-object":9,"./_descriptors":31,"./_enum-keys":34,"./_export":35,"./_fails":37,"./_global":42,"./_has":43,"./_hide":44,"./_is-array":51,"./_is-object":53,"./_library":61,"./_meta":67,"./_object-create":72,"./_object-dp":73,"./_object-gopd":76,"./_object-gopn":78,"./_object-gopn-ext":77,"./_object-gops":79,"./_object-keys":82,"./_object-pie":83,"./_property-desc":91,"./_redefine":93,"./_set-to-string-tag":100,"./_shared":102,"./_to-iobject":116,"./_to-primitive":119,"./_uid":123,"./_wks":128,"./_wks-define":126,"./_wks-ext":127}],255:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_typed"),o=e("./_typed-buffer"),s=e("./_an-object"),a=e("./_to-absolute-index"),c=e("./_to-length"),l=e("./_is-object"),u=e("./_global").ArrayBuffer,f=e("./_species-constructor"),h=o.ArrayBuffer,_=o.DataView,p=i.ABV&&u.isView,d=h.prototype.slice,m=i.VIEW;n(n.G+n.W+n.F*(u!==h),{ArrayBuffer:h}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||l(e)&&m in e}}),n(n.P+n.U+n.F*e("./_fails")(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(s(this),e);for(var r=s(this).byteLength,n=a(e,r),i=a(void 0===t?r:t,r),o=new(f(this,h))(c(i-n)),l=new _(this),u=new _(o),p=0;n<i;)u.setUint8(p++,l.getUint8(n++));return o}}),e("./_set-species")("ArrayBuffer")},{"./_an-object":9,"./_export":35,"./_fails":37,"./_global":42,"./_is-object":53,"./_set-species":99,"./_species-constructor":103,"./_to-absolute-index":113,"./_to-length":117,"./_typed":122,"./_typed-buffer":121}],256:[function(e,t,r){var n=e("./_export");n(n.G+n.W+n.F*!e("./_typed").ABV,{DataView:e("./_typed-buffer").DataView})},{"./_export":35,"./_typed":122,"./_typed-buffer":121}],257:[function(e,t,r){e("./_typed-array")("Float32",4,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],258:[function(e,t,r){e("./_typed-array")("Float64",8,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],259:[function(e,t,r){e("./_typed-array")("Int16",2,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],260:[function(e,t,r){e("./_typed-array")("Int32",4,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],261:[function(e,t,r){e("./_typed-array")("Int8",1,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],262:[function(e,t,r){e("./_typed-array")("Uint16",2,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],263:[function(e,t,r){e("./_typed-array")("Uint32",4,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],264:[function(e,t,r){e("./_typed-array")("Uint8",1,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],265:[function(e,t,r){e("./_typed-array")("Uint8",1,function(e){return function(t,r,n){return e(this,t,r,n)}},!0)},{"./_typed-array":120}],266:[function(e,t,r){"use strict";var n,i=e("./_array-methods")(0),o=e("./_redefine"),s=e("./_meta"),a=e("./_object-assign"),c=e("./_collection-weak"),l=e("./_is-object"),u=e("./_fails"),f=e("./_validate-collection"),h=s.getWeak,_=Object.isExtensible,p=c.ufstore,d={},m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(l(e)){var t=h(e);return!0===t?p(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(f(this,"WeakMap"),e,t)}},b=t.exports=e("./_collection")("WeakMap",m,y,c,!0,!0);u(function(){return 7!=(new b).set((Object.freeze||Object)(d),7).get(d)})&&(a((n=c.getConstructor(m,"WeakMap")).prototype,y),s.NEED=!0,i(["delete","has","get","set"],function(e){var t=b.prototype,r=t[e];o(t,e,function(t,i){if(l(t)&&!_(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)})}))},{"./_array-methods":14,"./_collection":24,"./_collection-weak":23,"./_fails":37,"./_is-object":53,"./_meta":67,"./_object-assign":71,"./_redefine":93,"./_validate-collection":125}],267:[function(e,t,r){"use strict";var n=e("./_collection-weak"),i=e("./_validate-collection");e("./_collection")("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"WeakSet"),e,!0)}},n,!1,!0)},{"./_collection":24,"./_collection-weak":23,"./_validate-collection":125}],268:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_flatten-into-array"),o=e("./_to-object"),s=e("./_to-length"),a=e("./_a-function"),c=e("./_array-species-create");n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return a(e),t=s(n.length),r=c(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),e("./_add-to-unscopables")("flatMap")},{"./_a-function":5,"./_add-to-unscopables":7,"./_array-species-create":17,"./_export":35,"./_flatten-into-array":40,"./_to-length":117,"./_to-object":118}],269:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_flatten-into-array"),o=e("./_to-object"),s=e("./_to-length"),a=e("./_to-integer"),c=e("./_array-species-create");n(n.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),r=s(t.length),n=c(t,0);return i(n,t,t,r,0,void 0===e?1:a(e)),n}}),e("./_add-to-unscopables")("flatten")},{"./_add-to-unscopables":7,"./_array-species-create":17,"./_export":35,"./_flatten-into-array":40,"./_to-integer":115,"./_to-length":117,"./_to-object":118}],270:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-includes")(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":7,"./_array-includes":13,"./_export":35}],271:[function(e,t,r){var n=e("./_export"),i=e("./_microtask")(),o=e("./_global").process,s="process"==e("./_cof")(o);n(n.G,{asap:function(e){var t=s&&o.domain;i(t?t.bind(e):e)}})},{"./_cof":20,"./_export":35,"./_global":42,"./_microtask":69}],272:[function(e,t,r){var n=e("./_export"),i=e("./_cof");n(n.S,"Error",{isError:function(e){return"Error"===i(e)}})},{"./_cof":20,"./_export":35}],273:[function(e,t,r){var n=e("./_export");n(n.G,{global:e("./_global")})},{"./_export":35,"./_global":42}],274:[function(e,t,r){e("./_set-collection-from")("Map")},{"./_set-collection-from":96}],275:[function(e,t,r){e("./_set-collection-of")("Map")},{"./_set-collection-of":97}],276:[function(e,t,r){var n=e("./_export");n(n.P+n.R,"Map",{toJSON:e("./_collection-to-json")("Map")})},{"./_collection-to-json":22,"./_export":35}],277:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}})},{"./_export":35}],278:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},{"./_export":35}],279:[function(e,t,r){var n=e("./_export"),i=180/Math.PI;n(n.S,"Math",{degrees:function(e){return e*i}})},{"./_export":35}],280:[function(e,t,r){var n=e("./_export"),i=e("./_math-scale"),o=e("./_math-fround");n(n.S,"Math",{fscale:function(e,t,r,n,s){return o(i(e,t,r,n,s))}})},{"./_export":35,"./_math-fround":63,"./_math-scale":65}],281:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{iaddh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)+(n>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},{"./_export":35}],282:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,s=r>>16,a=n>>16,c=(s*o>>>0)+(i*o>>>16);return s*a+(c>>16)+((i*a>>>0)+(65535&c)>>16)}})},{"./_export":35}],283:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{isubh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)-(n>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},{"./_export":35}],284:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},{"./_export":35}],285:[function(e,t,r){var n=e("./_export"),i=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*i}})},{"./_export":35}],286:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{scale:e("./_math-scale")})},{"./_export":35,"./_math-scale":65}],287:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},{"./_export":35}],288:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{umulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,s=r>>>16,a=n>>>16,c=(s*o>>>0)+(i*o>>>16);return s*a+(c>>>16)+((i*a>>>0)+(65535&c)>>>16)}})},{"./_export":35}],289:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_a-function"),s=e("./_object-dp");e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__defineGetter__:function(e,t){s.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":31,"./_export":35,"./_object-dp":73,"./_object-forced-pam":75,"./_to-object":118}],290:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_a-function"),s=e("./_object-dp");e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__defineSetter__:function(e,t){s.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":31,"./_export":35,"./_object-dp":73,"./_object-forced-pam":75,"./_to-object":118}],291:[function(e,t,r){var n=e("./_export"),i=e("./_object-to-array")(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},{"./_export":35,"./_object-to-array":85}],292:[function(e,t,r){var n=e("./_export"),i=e("./_own-keys"),o=e("./_to-iobject"),s=e("./_object-gopd"),a=e("./_create-property");n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),c=s.f,l=i(n),u={},f=0;l.length>f;)void 0!==(r=c(n,t=l[f++]))&&a(u,t,r);return u}})},{"./_create-property":26,"./_export":35,"./_object-gopd":76,"./_own-keys":86,"./_to-iobject":116}],293:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_to-primitive"),s=e("./_object-gpo"),a=e("./_object-gopd").f;e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__lookupGetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=a(r,n))return t.get}while(r=s(r))}})},{"./_descriptors":31,"./_export":35,"./_object-forced-pam":75,"./_object-gopd":76,"./_object-gpo":80,"./_to-object":118,"./_to-primitive":119}],294:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_to-primitive"),s=e("./_object-gpo"),a=e("./_object-gopd").f;e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=a(r,n))return t.set}while(r=s(r))}})},{"./_descriptors":31,"./_export":35,"./_object-forced-pam":75,"./_object-gopd":76,"./_object-gpo":80,"./_to-object":118,"./_to-primitive":119}],295:[function(e,t,r){var n=e("./_export"),i=e("./_object-to-array")(!1);n(n.S,"Object",{values:function(e){return i(e)}})},{"./_export":35,"./_object-to-array":85}],296:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_global"),o=e("./_core"),s=e("./_microtask")(),a=e("./_wks")("observable"),c=e("./_a-function"),l=e("./_an-object"),u=e("./_an-instance"),f=e("./_redefine-all"),h=e("./_hide"),_=e("./_for-of"),p=_.RETURN,d=function(e){return null==e?void 0:c(e)},m=function(e){var t=e._c;t&&(e._c=void 0,t())},y=function(e){return void 0===e._o},b=function(e){y(e)||(e._o=void 0,m(e))},v=function(e,t){l(e),this._c=void 0,this._o=e,e=new g(this);try{var r=t(e),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:c(r),this._c=r)}catch(t){return void e.error(t)}y(this)&&m(this)};v.prototype=f({},{unsubscribe:function(){b(this)}});var g=function(e){this._s=e};g.prototype=f({},{next:function(e){var t=this._s;if(!y(t)){var r=t._o;try{var n=d(r.next);if(n)return n.call(r,e)}catch(e){try{b(t)}finally{throw e}}}},error:function(e){var t=this._s;if(y(t))throw e;var r=t._o;t._o=void 0;try{var n=d(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{m(t)}finally{throw e}}return m(t),e},complete:function(e){var t=this._s;if(!y(t)){var r=t._o;t._o=void 0;try{var n=d(r.complete);e=n?n.call(r,e):void 0}catch(e){try{m(t)}finally{throw e}}return m(t),e}}});var x=function(e){u(this,x,"Observable","_f")._f=c(e)};f(x.prototype,{subscribe:function(e){return new v(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(r,n){c(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r})})}}),f(x,{from:function(e){var t="function"==typeof this?this:x,r=d(l(e)[a]);if(r){var n=l(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return s(function(){if(!r){try{if(_(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e<t;)r[e]=arguments[e++];return new("function"==typeof this?this:x)(function(e){var t=!1;return s(function(){if(!t){for(var n=0;n<r.length;++n)if(e.next(r[n]),t)return;e.complete()}}),function(){t=!0}})}}),h(x.prototype,a,function(){return this}),n(n.G,{Observable:x}),e("./_set-species")("Observable")},{"./_a-function":5,"./_an-instance":8,"./_an-object":9,"./_core":25,"./_export":35,"./_for-of":41,"./_global":42,"./_hide":44,"./_microtask":69,"./_redefine-all":92,"./_set-species":99,"./_wks":128}],297:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_core"),o=e("./_global"),s=e("./_species-constructor"),a=e("./_promise-resolve");n(n.P+n.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return a(t,e()).then(function(){return r})}:e,r?function(r){return a(t,e()).then(function(){throw r})}:e)}})},{"./_core":25,"./_export":35,"./_global":42,"./_promise-resolve":90,"./_species-constructor":103}],298:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_new-promise-capability"),o=e("./_perform");n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},{"./_export":35,"./_new-promise-capability":70,"./_perform":89}],299:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.key,s=n.set;n.exp({defineMetadata:function(e,t,r,n){s(e,t,i(r),o(n))}})},{"./_an-object":9,"./_metadata":68}],300:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.key,s=n.map,a=n.store;n.exp({deleteMetadata:function(e,t){var r=arguments.length<3?void 0:o(arguments[2]),n=s(i(t),r,!1);if(void 0===n||!n.delete(e))return!1;if(n.size)return!0;var c=a.get(t);return c.delete(r),!!c.size||a.delete(t)}})},{"./_an-object":9,"./_metadata":68}],301:[function(e,t,r){var n=e("./es6.set"),i=e("./_array-from-iterable"),o=e("./_metadata"),s=e("./_an-object"),a=e("./_object-gpo"),c=o.keys,l=o.key,u=function(e,t){var r=c(e,t),o=a(e);if(null===o)return r;var s=u(o,t);return s.length?r.length?i(new n(r.concat(s))):s:r};o.exp({getMetadataKeys:function(e){return u(s(e),arguments.length<2?void 0:l(arguments[1]))}})},{"./_an-object":9,"./_array-from-iterable":12,"./_metadata":68,"./_object-gpo":80,"./es6.set":231}],302:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=e("./_object-gpo"),s=n.has,a=n.get,c=n.key,l=function(e,t,r){if(s(e,t,r))return a(e,t,r);var n=o(t);return null!==n?l(e,n,r):void 0};n.exp({getMetadata:function(e,t){return l(e,i(t),arguments.length<3?void 0:c(arguments[2]))}})},{"./_an-object":9,"./_metadata":68,"./_object-gpo":80}],303:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.keys,s=n.key;n.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:s(arguments[1]))}})},{"./_an-object":9,"./_metadata":68}],304:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.get,s=n.key;n.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},{"./_an-object":9,"./_metadata":68}],305:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=e("./_object-gpo"),s=n.has,a=n.key,c=function(e,t,r){if(s(e,t,r))return!0;var n=o(t);return null!==n&&c(e,n,r)};n.exp({hasMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},{"./_an-object":9,"./_metadata":68,"./_object-gpo":80}],306:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.has,s=n.key;n.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},{"./_an-object":9,"./_metadata":68}],307:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=e("./_a-function"),s=n.key,a=n.set;n.exp({metadata:function(e,t){return function(r,n){a(e,t,(void 0!==n?i:o)(r),s(n))}}})},{"./_a-function":5,"./_an-object":9,"./_metadata":68}],308:[function(e,t,r){e("./_set-collection-from")("Set")},{"./_set-collection-from":96}],309:[function(e,t,r){e("./_set-collection-of")("Set")},{"./_set-collection-of":97}],310:[function(e,t,r){var n=e("./_export");n(n.P+n.R,"Set",{toJSON:e("./_collection-to-json")("Set")})},{"./_collection-to-json":22,"./_export":35}],311:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-at")(!0);n(n.P,"String",{at:function(e){return i(this,e)}})},{"./_export":35,"./_string-at":105}],312:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_defined"),o=e("./_to-length"),s=e("./_is-regexp"),a=e("./_flags"),c=RegExp.prototype,l=function(e,t){this._r=e,this._s=t};e("./_iter-create")(l,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),n(n.P,"String",{matchAll:function(e){if(i(this),!s(e))throw TypeError(e+" is not a regexp!");var t=String(this),r="flags"in c?String(e.flags):a.call(e),n=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=o(e.lastIndex),new l(n,t)}})},{"./_defined":30,"./_export":35,"./_flags":39,"./_is-regexp":54,"./_iter-create":56,"./_to-length":117}],313:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-pad"),o=e("./_user-agent");n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},{"./_export":35,"./_string-pad":108,"./_user-agent":124}],314:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-pad"),o=e("./_user-agent");n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},{"./_export":35,"./_string-pad":108,"./_user-agent":124}],315:[function(e,t,r){"use strict";e("./_string-trim")("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},{"./_string-trim":110}],316:[function(e,t,r){"use strict";e("./_string-trim")("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},{"./_string-trim":110}],317:[function(e,t,r){e("./_wks-define")("asyncIterator")},{"./_wks-define":126}],318:[function(e,t,r){e("./_wks-define")("observable")},{"./_wks-define":126}],319:[function(e,t,r){var n=e("./_export");n(n.S,"System",{global:e("./_global")})},{"./_export":35,"./_global":42}],320:[function(e,t,r){e("./_set-collection-from")("WeakMap")},{"./_set-collection-from":96}],321:[function(e,t,r){e("./_set-collection-of")("WeakMap")},{"./_set-collection-of":97}],322:[function(e,t,r){e("./_set-collection-from")("WeakSet")},{"./_set-collection-from":96}],323:[function(e,t,r){e("./_set-collection-of")("WeakSet")},{"./_set-collection-of":97}],324:[function(e,t,r){for(var n=e("./es6.array.iterator"),i=e("./_object-keys"),o=e("./_redefine"),s=e("./_global"),a=e("./_hide"),c=e("./_iterators"),l=e("./_wks"),u=l("iterator"),f=l("toStringTag"),h=c.Array,_={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(_),d=0;d<p.length;d++){var m,y=p[d],b=_[y],v=s[y],g=v&&v.prototype;if(g&&(g[u]||a(g,u,h),g[f]||a(g,f,y),c[y]=h,b))for(m in n)g[m]||o(g,m,n[m],!0)}},{"./_global":42,"./_hide":44,"./_iterators":60,"./_object-keys":82,"./_redefine":93,"./_wks":128,"./es6.array.iterator":141}],325:[function(e,t,r){var n=e("./_export"),i=e("./_task");n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},{"./_export":35,"./_task":112}],326:[function(e,t,r){var n=e("./_global"),i=e("./_export"),o=e("./_user-agent"),s=[].slice,a=/MSIE .\./.test(o),c=function(e){return function(t,r){var n=arguments.length>2,i=!!n&&s.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*a,{setTimeout:c(n.setTimeout),setInterval:c(n.setInterval)})},{"./_export":35,"./_global":42,"./_user-agent":124}],327:[function(e,t,r){e("./modules/es6.symbol"),e("./modules/es6.object.create"),e("./modules/es6.object.define-property"),e("./modules/es6.object.define-properties"),e("./modules/es6.object.get-own-property-descriptor"),e("./modules/es6.object.get-prototype-of"),e("./modules/es6.object.keys"),e("./modules/es6.object.get-own-property-names"),e("./modules/es6.object.freeze"),e("./modules/es6.object.seal"),e("./modules/es6.object.prevent-extensions"),e("./modules/es6.object.is-frozen"),e("./modules/es6.object.is-sealed"),e("./modules/es6.object.is-extensible"),e("./modules/es6.object.assign"),e("./modules/es6.object.is"),e("./modules/es6.object.set-prototype-of"),e("./modules/es6.object.to-string"),e("./modules/es6.function.bind"),e("./modules/es6.function.name"),e("./modules/es6.function.has-instance"),e("./modules/es6.parse-int"),e("./modules/es6.parse-float"),e("./modules/es6.number.constructor"),e("./modules/es6.number.to-fixed"),e("./modules/es6.number.to-precision"),e("./modules/es6.number.epsilon"),e("./modules/es6.number.is-finite"),e("./modules/es6.number.is-integer"),e("./modules/es6.number.is-nan"),e("./modules/es6.number.is-safe-integer"),e("./modules/es6.number.max-safe-integer"),e("./modules/es6.number.min-safe-integer"),e("./modules/es6.number.parse-float"),e("./modules/es6.number.parse-int"),e("./modules/es6.math.acosh"),e("./modules/es6.math.asinh"),e("./modules/es6.math.atanh"),e("./modules/es6.math.cbrt"),e("./modules/es6.math.clz32"),e("./modules/es6.math.cosh"),e("./modules/es6.math.expm1"),e("./modules/es6.math.fround"),e("./modules/es6.math.hypot"),e("./modules/es6.math.imul"),e("./modules/es6.math.log10"),e("./modules/es6.math.log1p"),e("./modules/es6.math.log2"),e("./modules/es6.math.sign"),e("./modules/es6.math.sinh"),e("./modules/es6.math.tanh"),e("./modules/es6.math.trunc"),e("./modules/es6.string.from-code-point"),e("./modules/es6.string.raw"),e("./modules/es6.string.trim"),e("./modules/es6.string.iterator"),e("./modules/es6.string.code-point-at"),e("./modules/es6.string.ends-with"),e("./modules/es6.string.includes"),e("./modules/es6.string.repeat"),e("./modules/es6.string.starts-with"),e("./modules/es6.string.anchor"),e("./modules/es6.string.big"),e("./modules/es6.string.blink"),e("./modules/es6.string.bold"),e("./modules/es6.string.fixed"),e("./modules/es6.string.fontcolor"),e("./modules/es6.string.fontsize"),e("./modules/es6.string.italics"),e("./modules/es6.string.link"),e("./modules/es6.string.small"),e("./modules/es6.string.strike"),e("./modules/es6.string.sub"),e("./modules/es6.string.sup"),e("./modules/es6.date.now"),e("./modules/es6.date.to-json"),e("./modules/es6.date.to-iso-string"),e("./modules/es6.date.to-string"),e("./modules/es6.date.to-primitive"),e("./modules/es6.array.is-array"),e("./modules/es6.array.from"),e("./modules/es6.array.of"),e("./modules/es6.array.join"),e("./modules/es6.array.slice"),e("./modules/es6.array.sort"),e("./modules/es6.array.for-each"),e("./modules/es6.array.map"),e("./modules/es6.array.filter"),e("./modules/es6.array.some"),e("./modules/es6.array.every"),e("./modules/es6.array.reduce"),e("./modules/es6.array.reduce-right"),e("./modules/es6.array.index-of"),e("./modules/es6.array.last-index-of"),e("./modules/es6.array.copy-within"),e("./modules/es6.array.fill"),e("./modules/es6.array.find"),e("./modules/es6.array.find-index"),e("./modules/es6.array.species"),e("./modules/es6.array.iterator"),e("./modules/es6.regexp.constructor"),e("./modules/es6.regexp.to-string"),e("./modules/es6.regexp.flags"),e("./modules/es6.regexp.match"),e("./modules/es6.regexp.replace"),e("./modules/es6.regexp.search"),e("./modules/es6.regexp.split"),e("./modules/es6.promise"),e("./modules/es6.map"),e("./modules/es6.set"),e("./modules/es6.weak-map"),e("./modules/es6.weak-set"),e("./modules/es6.typed.array-buffer"),e("./modules/es6.typed.data-view"),e("./modules/es6.typed.int8-array"),e("./modules/es6.typed.uint8-array"),e("./modules/es6.typed.uint8-clamped-array"),e("./modules/es6.typed.int16-array"),e("./modules/es6.typed.uint16-array"),e("./modules/es6.typed.int32-array"),e("./modules/es6.typed.uint32-array"),e("./modules/es6.typed.float32-array"),e("./modules/es6.typed.float64-array"),e("./modules/es6.reflect.apply"),e("./modules/es6.reflect.construct"),e("./modules/es6.reflect.define-property"),e("./modules/es6.reflect.delete-property"),e("./modules/es6.reflect.enumerate"),e("./modules/es6.reflect.get"),e("./modules/es6.reflect.get-own-property-descriptor"),e("./modules/es6.reflect.get-prototype-of"),e("./modules/es6.reflect.has"),e("./modules/es6.reflect.is-extensible"),e("./modules/es6.reflect.own-keys"),e("./modules/es6.reflect.prevent-extensions"),e("./modules/es6.reflect.set"),e("./modules/es6.reflect.set-prototype-of"),e("./modules/es7.array.includes"),e("./modules/es7.array.flat-map"),e("./modules/es7.array.flatten"),e("./modules/es7.string.at"),e("./modules/es7.string.pad-start"),e("./modules/es7.string.pad-end"),e("./modules/es7.string.trim-left"),e("./modules/es7.string.trim-right"),e("./modules/es7.string.match-all"),e("./modules/es7.symbol.async-iterator"),e("./modules/es7.symbol.observable"),e("./modules/es7.object.get-own-property-descriptors"),e("./modules/es7.object.values"),e("./modules/es7.object.entries"),e("./modules/es7.object.define-getter"),e("./modules/es7.object.define-setter"),e("./modules/es7.object.lookup-getter"),e("./modules/es7.object.lookup-setter"),e("./modules/es7.map.to-json"),e("./modules/es7.set.to-json"),e("./modules/es7.map.of"),e("./modules/es7.set.of"),e("./modules/es7.weak-map.of"),e("./modules/es7.weak-set.of"),e("./modules/es7.map.from"),e("./modules/es7.set.from"),e("./modules/es7.weak-map.from"),e("./modules/es7.weak-set.from"),e("./modules/es7.global"),e("./modules/es7.system.global"),e("./modules/es7.error.is-error"),e("./modules/es7.math.clamp"),e("./modules/es7.math.deg-per-rad"),e("./modules/es7.math.degrees"),e("./modules/es7.math.fscale"),e("./modules/es7.math.iaddh"),e("./modules/es7.math.isubh"),e("./modules/es7.math.imulh"),e("./modules/es7.math.rad-per-deg"),e("./modules/es7.math.radians"),e("./modules/es7.math.scale"),e("./modules/es7.math.umulh"),e("./modules/es7.math.signbit"),e("./modules/es7.promise.finally"),e("./modules/es7.promise.try"),e("./modules/es7.reflect.define-metadata"),e("./modules/es7.reflect.delete-metadata"),e("./modules/es7.reflect.get-metadata"),e("./modules/es7.reflect.get-metadata-keys"),e("./modules/es7.reflect.get-own-metadata"),e("./modules/es7.reflect.get-own-metadata-keys"),e("./modules/es7.reflect.has-metadata"),e("./modules/es7.reflect.has-own-metadata"),e("./modules/es7.reflect.metadata"),e("./modules/es7.asap"),e("./modules/es7.observable"),e("./modules/web.timers"),e("./modules/web.immediate"),e("./modules/web.dom.iterable"),t.exports=e("./modules/_core")},{"./modules/_core":25,"./modules/es6.array.copy-within":131,"./modules/es6.array.every":132,"./modules/es6.array.fill":133,"./modules/es6.array.filter":134,"./modules/es6.array.find":136,"./modules/es6.array.find-index":135,"./modules/es6.array.for-each":137,"./modules/es6.array.from":138,"./modules/es6.array.index-of":139,"./modules/es6.array.is-array":140,"./modules/es6.array.iterator":141,"./modules/es6.array.join":142,"./modules/es6.array.last-index-of":143,"./modules/es6.array.map":144,"./modules/es6.array.of":145,"./modules/es6.array.reduce":147,"./modules/es6.array.reduce-right":146,"./modules/es6.array.slice":148,"./modules/es6.array.some":149,"./modules/es6.array.sort":150,"./modules/es6.array.species":151,"./modules/es6.date.now":152,"./modules/es6.date.to-iso-string":153,"./modules/es6.date.to-json":154,"./modules/es6.date.to-primitive":155,"./modules/es6.date.to-string":156,"./modules/es6.function.bind":157,"./modules/es6.function.has-instance":158,"./modules/es6.function.name":159,"./modules/es6.map":160,"./modules/es6.math.acosh":161,"./modules/es6.math.asinh":162,"./modules/es6.math.atanh":163,"./modules/es6.math.cbrt":164,"./modules/es6.math.clz32":165,"./modules/es6.math.cosh":166,"./modules/es6.math.expm1":167,"./modules/es6.math.fround":168,"./modules/es6.math.hypot":169,"./modules/es6.math.imul":170,"./modules/es6.math.log10":171,"./modules/es6.math.log1p":172,"./modules/es6.math.log2":173,"./modules/es6.math.sign":174,"./modules/es6.math.sinh":175,"./modules/es6.math.tanh":176,"./modules/es6.math.trunc":177,"./modules/es6.number.constructor":178,"./modules/es6.number.epsilon":179,"./modules/es6.number.is-finite":180,"./modules/es6.number.is-integer":181,"./modules/es6.number.is-nan":182,"./modules/es6.number.is-safe-integer":183,"./modules/es6.number.max-safe-integer":184,"./modules/es6.number.min-safe-integer":185,"./modules/es6.number.parse-float":186,"./modules/es6.number.parse-int":187,"./modules/es6.number.to-fixed":188,"./modules/es6.number.to-precision":189,"./modules/es6.object.assign":190,"./modules/es6.object.create":191,"./modules/es6.object.define-properties":192,"./modules/es6.object.define-property":193,"./modules/es6.object.freeze":194,"./modules/es6.object.get-own-property-descriptor":195,"./modules/es6.object.get-own-property-names":196,"./modules/es6.object.get-prototype-of":197,"./modules/es6.object.is":201,"./modules/es6.object.is-extensible":198,"./modules/es6.object.is-frozen":199,"./modules/es6.object.is-sealed":200,"./modules/es6.object.keys":202,"./modules/es6.object.prevent-extensions":203,"./modules/es6.object.seal":204,"./modules/es6.object.set-prototype-of":205,"./modules/es6.object.to-string":206,"./modules/es6.parse-float":207,"./modules/es6.parse-int":208,"./modules/es6.promise":209,"./modules/es6.reflect.apply":210,"./modules/es6.reflect.construct":211,"./modules/es6.reflect.define-property":212,"./modules/es6.reflect.delete-property":213,"./modules/es6.reflect.enumerate":214,"./modules/es6.reflect.get":217,"./modules/es6.reflect.get-own-property-descriptor":215,"./modules/es6.reflect.get-prototype-of":216,"./modules/es6.reflect.has":218,"./modules/es6.reflect.is-extensible":219,"./modules/es6.reflect.own-keys":220,"./modules/es6.reflect.prevent-extensions":221,"./modules/es6.reflect.set":223,"./modules/es6.reflect.set-prototype-of":222,"./modules/es6.regexp.constructor":224,"./modules/es6.regexp.flags":225,"./modules/es6.regexp.match":226,"./modules/es6.regexp.replace":227,"./modules/es6.regexp.search":228,"./modules/es6.regexp.split":229,"./modules/es6.regexp.to-string":230,"./modules/es6.set":231,"./modules/es6.string.anchor":232,"./modules/es6.string.big":233,"./modules/es6.string.blink":234,"./modules/es6.string.bold":235,"./modules/es6.string.code-point-at":236,"./modules/es6.string.ends-with":237,"./modules/es6.string.fixed":238,"./modules/es6.string.fontcolor":239,"./modules/es6.string.fontsize":240,"./modules/es6.string.from-code-point":241,"./modules/es6.string.includes":242,"./modules/es6.string.italics":243,"./modules/es6.string.iterator":244,"./modules/es6.string.link":245,"./modules/es6.string.raw":246,"./modules/es6.string.repeat":247,"./modules/es6.string.small":248,"./modules/es6.string.starts-with":249,"./modules/es6.string.strike":250,"./modules/es6.string.sub":251,"./modules/es6.string.sup":252,"./modules/es6.string.trim":253,"./modules/es6.symbol":254,"./modules/es6.typed.array-buffer":255,"./modules/es6.typed.data-view":256,"./modules/es6.typed.float32-array":257,"./modules/es6.typed.float64-array":258,"./modules/es6.typed.int16-array":259,"./modules/es6.typed.int32-array":260,"./modules/es6.typed.int8-array":261,"./modules/es6.typed.uint16-array":262,"./modules/es6.typed.uint32-array":263,"./modules/es6.typed.uint8-array":264,"./modules/es6.typed.uint8-clamped-array":265,"./modules/es6.weak-map":266,"./modules/es6.weak-set":267,"./modules/es7.array.flat-map":268,"./modules/es7.array.flatten":269,"./modules/es7.array.includes":270,"./modules/es7.asap":271,"./modules/es7.error.is-error":272,"./modules/es7.global":273,"./modules/es7.map.from":274,"./modules/es7.map.of":275,"./modules/es7.map.to-json":276,"./modules/es7.math.clamp":277,"./modules/es7.math.deg-per-rad":278,"./modules/es7.math.degrees":279,"./modules/es7.math.fscale":280,"./modules/es7.math.iaddh":281,"./modules/es7.math.imulh":282,"./modules/es7.math.isubh":283,"./modules/es7.math.rad-per-deg":284,"./modules/es7.math.radians":285,"./modules/es7.math.scale":286,"./modules/es7.math.signbit":287,"./modules/es7.math.umulh":288,"./modules/es7.object.define-getter":289,"./modules/es7.object.define-setter":290,"./modules/es7.object.entries":291,"./modules/es7.object.get-own-property-descriptors":292,"./modules/es7.object.lookup-getter":293,"./modules/es7.object.lookup-setter":294,"./modules/es7.object.values":295,"./modules/es7.observable":296,"./modules/es7.promise.finally":297,"./modules/es7.promise.try":298,"./modules/es7.reflect.define-metadata":299,"./modules/es7.reflect.delete-metadata":300,"./modules/es7.reflect.get-metadata":302,"./modules/es7.reflect.get-metadata-keys":301,"./modules/es7.reflect.get-own-metadata":304,"./modules/es7.reflect.get-own-metadata-keys":303,"./modules/es7.reflect.has-metadata":305,"./modules/es7.reflect.has-own-metadata":306,"./modules/es7.reflect.metadata":307,"./modules/es7.set.from":308,"./modules/es7.set.of":309,"./modules/es7.set.to-json":310,"./modules/es7.string.at":311,"./modules/es7.string.match-all":312,"./modules/es7.string.pad-end":313,"./modules/es7.string.pad-start":314,"./modules/es7.string.trim-left":315,"./modules/es7.string.trim-right":316,"./modules/es7.symbol.async-iterator":317,"./modules/es7.symbol.observable":318,"./modules/es7.system.global":319,"./modules/es7.weak-map.from":320,"./modules/es7.weak-map.of":321,"./modules/es7.weak-set.from":322,"./modules/es7.weak-set.of":323,"./modules/web.dom.iterable":324,"./modules/web.immediate":325,"./modules/web.timers":326}],328:[function(e,t,r){var n;!function(e){"undefined"==typeof DO_NOT_EXPORT_CRC?"object"==typeof r?e(r):"function"==typeof define&&define.amd?define(function(){var t={};return e(t),t}):e(n={}):e(n={})}(function(e){e.version="1.1.1";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}();e.table=t,e.bstr=function(e,r){for(var n=-1^r,i=e.length-1,o=0;o<i;)n=(n=n>>>8^t[255&(n^e.charCodeAt(o++))])>>>8^t[255&(n^e.charCodeAt(o++))];return o===i&&(n=n>>>8^t[255&(n^e.charCodeAt(o))]),-1^n},e.buf=function(e,r){if(e.length>1e4)return function(e,r){for(var n=-1^r,i=e.length-7,o=0;o<i;)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o<i+7;)n=n>>>8^t[255&(n^e[o++])];return-1^n}(e,r);for(var n=-1^r,i=e.length-3,o=0;o<i;)n=(n=(n=(n=n>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o<i+3;)n=n>>>8^t[255&(n^e[o++])];return-1^n},e.str=function(e,r){for(var n,i,o=-1^r,s=0,a=e.length;s<a;)(n=e.charCodeAt(s++))<128?o=o>>>8^t[255&(o^n)]:n<2048?o=(o=o>>>8^t[255&(o^(192|n>>6&31))])>>>8^t[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),i=1023&e.charCodeAt(s++),o=(o=(o=(o=o>>>8^t[255&(o^(240|n>>8&7))])>>>8^t[255&(o^(128|n>>2&63))])>>>8^t[255&(o^(128|i>>6&15|(3&n)<<4))])>>>8^t[255&(o^(128|63&i))]):o=(o=(o=o>>>8^t[255&(o^(224|n>>12&15))])>>>8^t[255&(o^(128|n>>6&63))])>>>8^t[255&(o^(128|63&n))];return-1^o}})},{}],329:[function(e,t,r){(function(e){!function(e){function t(e){if("utf-8"!==(e=void 0===e?"utf-8":e))throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+e+"') is invalid.")}function r(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,"utf-8"!==e)throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}if(e.TextEncoder&&e.TextDecoder)return!1;Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var r=e.length,n=0,i=Math.max(32,r+(r>>1)+7),o=new Uint8Array(i>>3<<3);t<r;){var s=e.charCodeAt(t++);if(55296<=s&&56319>=s){if(t<r){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,s=((1023&s)<<10)+(1023&a)+65536)}if(55296<=s&&56319>=s)continue}if(n+4>o.length&&(i+=8,i*=1+t/e.length*2,i=i>>3<<3,(a=new Uint8Array(i)).set(o),o=a),0==(4294967168&s))o[n++]=s;else{if(0==(4294965248&s))o[n++]=s>>6&31|192;else if(0==(4294901760&s))o[n++]=s>>12&15|224,o[n++]=s>>6&63|128;else{if(0!=(4292870144&s))continue;o[n++]=s>>18&7|240,o[n++]=s>>12&63|128,o[n++]=s>>6&63|128}o[n++]=63&s|128}}return o.slice(0,n)},Object.defineProperty(r.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(r.prototype,"fatal",{value:!1}),Object.defineProperty(r.prototype,"ignoreBOM",{value:!1}),r.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");t=0;for(var r=(e=new Uint8Array(e)).length,n=[];t<r;){var i=e[t++];if(0===i)break;if(0==(128&i))n.push(i);else if(192==(224&i)){var o=63&e[t++];n.push((31&i)<<6|o)}else if(224==(240&i)){o=63&e[t++];var s=63&e[t++];n.push((31&i)<<12|o<<6|s)}else if(240==(248&i)){65535<(i=(7&i)<<18|(o=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i)}}return String.fromCharCode.apply(null,n)},e.TextEncoder=t,e.TextDecoder=r}("undefined"!=typeof window?window:void 0!==e?e:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],330:[function(e,t,r){(function(e){!function(e){"use strict";function r(e,t,r,o){var s=t&&t.prototype instanceof i?t:i,a=Object.create(s.prototype),c=new h(o||[]);return a._invoke=function(e,t,r){var i=S;return function(o,s){if(i===E)throw new Error("Generator is already running");if(i===A){if("throw"===o)throw s;return p()}for(r.method=o,r.arg=s;;){var a=r.delegate;if(a){var c=l(a,r);if(c){if(c===j)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===S)throw i=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=E;var u=n(e,t,r);if("normal"===u.type){if(i=r.done?A:k,u.arg===j)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=A,r.method="throw",r.arg=u.arg)}}}(e,r,c),a}function n(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function s(){}function a(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function c(t){function r(e,i,o,s){var a=n(t[e],t,i);if("throw"!==a.type){var c=a.arg,l=c.value;return l&&"object"==typeof l&&y.call(l,"__await")?Promise.resolve(l.__await).then(function(e){r("next",e,o,s)},function(e){r("throw",e,o,s)}):Promise.resolve(l).then(function(e){c.value=e,o(c)},s)}s(a.arg)}"object"==typeof e.process&&e.process.domain&&(r=e.process.domain.bind(r));var i;this._invoke=function(e,t){function n(){return new Promise(function(n,i){r(e,t,n,i)})}return i=i?i.then(n,n):n()}}function l(e,t){var r=e.iterator[t.method];if(r===d){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=d,l(e,t),"throw"===t.method))return j;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var i=n(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,j;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=d),t.delegate=null,j):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,j)}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function _(e){if(e){var t=e[v];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(y.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=d,t.done=!0,t};return n.next=n}}return{next:p}}function p(){return{value:d,done:!0}}var d,m=Object.prototype,y=m.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},v=b.iterator||"@@iterator",g=b.asyncIterator||"@@asyncIterator",x=b.toStringTag||"@@toStringTag",w="object"==typeof t,C=e.regeneratorRuntime;if(C)w&&(t.exports=C);else{(C=e.regeneratorRuntime=w?t.exports:{}).wrap=r;var S="suspendedStart",k="suspendedYield",E="executing",A="completed",j={},O={};O[v]=function(){return this};var M=Object.getPrototypeOf,L=M&&M(M(_([])));L&&L!==m&&y.call(L,v)&&(O=L);var T=s.prototype=i.prototype=Object.create(O);o.prototype=T.constructor=s,s.constructor=o,s[x]=o.displayName="GeneratorFunction",C.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},C.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,x in e||(e[x]="GeneratorFunction")),e.prototype=Object.create(T),e},C.awrap=function(e){return{__await:e}},a(c.prototype),c.prototype[g]=function(){return this},C.AsyncIterator=c,C.async=function(e,t,n,i){var o=new c(r(e,t,n,i));return C.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},a(T),T[x]="Generator",T[v]=function(){return this},T.toString=function(){return"[object Generator]"},C.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},C.values=_,h.prototype={constructor:h,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=d,this.done=!1,this.delegate=null,this.method="next",this.arg=d,this.tryEntries.forEach(f),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=d)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){function t(t,n){return o.type="throw",o.arg=e,r.next=t,n&&(r.method="next",r.arg=d),!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var s=y.call(i,"catchLoc"),a=y.call(i,"finallyLoc");if(s&&a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,j):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),f(r),j}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;f(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=d),j}}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],331:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./utils/CircularList");r.CHAR_DATA_ATTR_INDEX=0,r.CHAR_DATA_CHAR_INDEX=1,r.CHAR_DATA_WIDTH_INDEX=2,r.CHAR_DATA_CODE_INDEX=3,r.MAX_BUFFER_SIZE=4294967295;var i=function(){function e(e,t){this._terminal=e,this._hasScrollback=t,this.clear()}return Object.defineProperty(e.prototype,"lines",{get:function(){return this._lines},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._terminal.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._terminal.rows},enumerable:!0,configurable:!0}),e.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var t=e+this._terminal.options.scrollback;return t>r.MAX_BUFFER_SIZE?r.MAX_BUFFER_SIZE:t},e.prototype.fillViewportRows=function(){if(0===this._lines.length)for(var e=this._terminal.rows;e--;)this.lines.push(this._terminal.blankLine())},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this._lines=new n.CircularList(this._getCorrectBufferLength(this._terminal.rows)),this.scrollTop=0,this.scrollBottom=this._terminal.rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var r=this._getCorrectBufferLength(t);if(r>this._lines.maxLength&&(this._lines.maxLength=r),this._lines.length>0){if(this._terminal.cols<e)for(var n=[this._terminal.defAttr," ",1,32],i=0;i<this._lines.length;i++)for(void 0===this._lines.get(i)&&this._lines.set(i,this._terminal.blankLine(void 0,void 0,e));this._lines.get(i).length<e;)this._lines.get(i).push(n);var o=0;if(this._terminal.rows<t)for(s=this._terminal.rows;s<t;s++)this._lines.length<t+this.ybase&&(this.ybase>0&&this._lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this._lines.push(this._terminal.blankLine(void 0,void 0,e)));else for(var s=this._terminal.rows;s>t;s--)this._lines.length>t+this.ybase&&(this._lines.length>this.ybase+this.y+1?this._lines.pop():(this.ybase++,this.ydisp++));if(r<this._lines.maxLength){var a=this._lines.length-r;a>0&&(this._lines.trimStart(a),this.ybase=Math.max(this.ybase-a,0),this.ydisp=Math.max(this.ydisp-a,0)),this._lines.maxLength=r}this.y>=t&&(this.y=t-1),o&&(this.y+=o),this.x>=e&&(this.x=e-1),this.scrollTop=0}this.scrollBottom=t-1},e.prototype.translateBufferLineToString=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=null);var o="",s=this.lines.get(e);if(!s)return"";for(var a=n,c=i=i||s.length,l=0;l<s.length;l++){var u=s[l];o+=u[r.CHAR_DATA_CHAR_INDEX],0===u[r.CHAR_DATA_WIDTH_INDEX]?(n>=l&&a--,i>=l&&c--):u[r.CHAR_DATA_CHAR_INDEX].length>1&&(n>l&&(a+=u[r.CHAR_DATA_CHAR_INDEX].length-1),i>l&&(c+=u[r.CHAR_DATA_CHAR_INDEX].length-1))}if(t){var f=o.search(/\s+$/);if(-1!==f&&(c=Math.min(c,f)),c<=a)return""}return o.substring(a,c)},e.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._terminal.cols;e+=this._terminal.options.tabStopWidth)this.tabs[e]=!0},e.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._terminal.cols;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e}();r.Buffer=i},{"./utils/CircularList":362}],332:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("./Buffer"),o=function(e){function t(t){var r=e.call(this)||this;return r._terminal=t,r._normal=new i.Buffer(r._terminal,!0),r._normal.fillViewportRows(),r._alt=new i.Buffer(r._terminal,!1),r._activeBuffer=r._normal,r.setupTabStops(),r}return n(t,e),Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!0,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._alt.clear(),this._activeBuffer=this._normal,this.emit("activate",this._normal)},t.prototype.activateAltBuffer=function(){this._alt.fillViewportRows(),this._activeBuffer=this._alt,this.emit("activate",this._alt)},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(e("./EventEmitter").EventEmitter);r.BufferSet=o},{"./Buffer":331,"./EventEmitter":337}],333:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.wcwidth=function(e){function t(e,t){var r,n=0,i=t.length-1;if(e<t[0][0]||e>t[i][1])return!1;for(;i>=n;)if(r=n+i>>1,e>t[r][1])n=r+1;else{if(!(e<t[r][0]))return!0;i=r-1}return!1}function r(r){return 0===r?e.nul:r<32||r>=127&&r<160?e.control:t(r,n)?0:function(e){return e>=4352&&(e<=4447||9001===e||9002===e||e>=11904&&e<=42191&&12351!==e||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510)}(r)?2:1}var n=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],i=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],o=0|e.control,s=null;return function(e){if((e|=0)<32)return 0|o;if(e<127)return 1;var n=s||function(){s="undefined"==typeof Uint32Array?new Array(4096):new Uint32Array(4096);for(var e=0;e<4096;++e){for(var t=0,n=16;n--;)t=t<<2|r(16*e+n);s[e]=t}return s}();return e<65536?n[e>>4]>>((15&e)<<1)&3:function(e){return t(e,i)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}(e)}}({nul:0,control:0})},{}],334:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CHARSETS={},r.DEFAULT_CHARSET=r.CHARSETS.B,r.CHARSETS[0]={"`":"◆",a:"▒",b:"\t",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"␤",i:"\v",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},r.CHARSETS.A={"#":"£"},r.CHARSETS.B=null,r.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},r.CHARSETS.C=r.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},r.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},r.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},r.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},r.CHARSETS.E=r.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},r.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},r.CHARSETS.H=r.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},{}],335:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e,t,r){this.textarea=e,this.compositionView=t,this.terminal=r,this.isComposing=!1,this.isSendingComposition=!1,this.compositionPosition={start:null,end:null}}return e.prototype.compositionstart=function(){this.isComposing=!0,this.compositionPosition.start=this.textarea.value.length,this.compositionView.textContent="",this.compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this.compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t.compositionPosition.end=t.textarea.value.length},0)},e.prototype.compositionend=function(){this.finalizeComposition(!0)},e.prototype.keydown=function(e){if(this.isComposing||this.isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this.finalizeComposition(!1)}return 229!==e.keyCode||(this.handleAnyTextareaChanges(),!1)},e.prototype.finalizeComposition=function(e){var t=this;if(this.compositionView.classList.remove("active"),this.isComposing=!1,this.clearTextareaPosition(),e){var r={start:this.compositionPosition.start,end:this.compositionPosition.end};this.isSendingComposition=!0,setTimeout(function(){if(t.isSendingComposition){t.isSendingComposition=!1;var e=void 0;e=t.isComposing?t.textarea.value.substring(r.start,r.end):t.textarea.value.substring(r.start),t.terminal.handler(e)}},0)}else{this.isSendingComposition=!1;var n=this.textarea.value.substring(this.compositionPosition.start,this.compositionPosition.end);this.terminal.handler(n)}},e.prototype.handleAnyTextareaChanges=function(){var e=this,t=this.textarea.value;setTimeout(function(){if(!e.isComposing){var r=e.textarea.value.replace(t,"");r.length>0&&e.terminal.handler(r)}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this.isComposing){if(this.terminal.buffer.isCursorInViewport){var r=Math.ceil(this.terminal.charMeasure.height*this.terminal.options.lineHeight),n=this.terminal.buffer.y*r,i=this.terminal.buffer.x*this.terminal.charMeasure.width;this.compositionView.style.left=i+"px",this.compositionView.style.top=n+"px",this.compositionView.style.height=r+"px",this.compositionView.style.lineHeight=r+"px";var o=this.compositionView.getBoundingClientRect();this.textarea.style.left=i+"px",this.textarea.style.top=n+"px",this.textarea.style.width=o.width+"px",this.textarea.style.height=o.height+"px",this.textarea.style.lineHeight=o.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},e.prototype.clearTextareaPosition=function(){this.textarea.style.left="",this.textarea.style.top=""},e}();r.CompositionHelper=n},{}],336:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});!function(e){e.NUL="\0",e.SOH="\ 1",e.STX="\ 2",e.ETX="\ 3",e.EOT="\ 4",e.ENQ="\ 5",e.ACK="\ 6",e.BEL="\a",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="\ e",e.SI="\ f",e.DLE="\10",e.DC1="\11",e.DC2="\12",e.DC3="\13",e.DC4="\14",e.NAK="\15",e.SYN="\16",e.ETB="\17",e.CAN="\18",e.EM="\19",e.SUB="\1a",e.ESC="\e",e.FS="\1c",e.GS="\1d",e.RS="\1e",e.US="\1f",e.SP=" ",e.DEL="\7f"}(r.C0||(r.C0={}))},{}],337:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(){this._events=this._events||{}}return e.prototype.on=function(e,t){this._events[e]=this._events[e]||[],this._events[e].push(t)},e.prototype.off=function(e,t){if(this._events[e])for(var r=this._events[e],n=r.length;n--;)if(r[n]===t||r[n].listener===t)return void r.splice(n,1)},e.prototype.removeAllListeners=function(e){this._events[e]&&delete this._events[e]},e.prototype.once=function(e,t){function r(){var n=Array.prototype.slice.call(arguments);this.off(e,r),t.apply(this,n)}r.listener=t,this.on(e,r)},e.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(this._events[e])for(var n=this._events[e],i=0;i<n.length;i++)n[i].apply(this,t)},e.prototype.listeners=function(e){return this._events[e]||[]},e.prototype.destroy=function(){this._events={}},e}();r.EventEmitter=n},{}],338:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./EscapeSequences"),i=e("./Charsets"),o=e("./Buffer"),s=e("./renderer/Types"),a=e("./CharWidth"),c=function(){function e(e){this._terminal=e}return e.prototype.addChar=function(e,t){if(e>=" "){var r=a.wcwidth(t);this._terminal.charset&&this._terminal.charset[e]&&(e=this._terminal.charset[e]);var n=this._terminal.buffer.y+this._terminal.buffer.ybase;if(!r&&this._terminal.buffer.x)return void(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1]&&(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1][o.CHAR_DATA_WIDTH_INDEX]?(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1][o.CHAR_DATA_CHAR_INDEX]+=e,this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1][3]=e.charCodeAt(0)):this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-2]&&(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-2][o.CHAR_DATA_CHAR_INDEX]+=e,this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-2][3]=e.charCodeAt(0)),this._terminal.updateRange(this._terminal.buffer.y)));if(this._terminal.buffer.x+r-1>=this._terminal.cols)if(this._terminal.wraparoundMode)this._terminal.buffer.x=0,this._terminal.buffer.y++,this._terminal.buffer.y>this._terminal.buffer.scrollBottom?(this._terminal.buffer.y--,this._terminal.scroll(!0)):this._terminal.buffer.lines.get(this._terminal.buffer.y).isWrapped=!0;else if(2===r)return;if(n=this._terminal.buffer.y+this._terminal.buffer.ybase,this._terminal.insertMode)for(var i=0;i<r;++i){0===this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).pop()[o.CHAR_DATA_WIDTH_INDEX]&&this._terminal.buffer.lines.get(n)[this._terminal.cols-2]&&2===this._terminal.buffer.lines.get(n)[this._terminal.cols-2][o.CHAR_DATA_WIDTH_INDEX]&&(this._terminal.buffer.lines.get(n)[this._terminal.cols-2]=[this._terminal.curAttr," ",1," ".charCodeAt(0)]),this._terminal.buffer.lines.get(n).splice(this._terminal.buffer.x,0,[this._terminal.curAttr," ",1," ".charCodeAt(0)])}this._terminal.buffer.lines.get(n)[this._terminal.buffer.x]=[this._terminal.curAttr,e,r,e.charCodeAt(0)],this._terminal.buffer.x++,this._terminal.updateRange(this._terminal.buffer.y),2===r&&(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x]=[this._terminal.curAttr,"",0,void 0],this._terminal.buffer.x++)}},e.prototype.bell=function(){this._terminal.bell()},e.prototype.lineFeed=function(){this._terminal.convertEol&&(this._terminal.buffer.x=0),this._terminal.buffer.y++,this._terminal.buffer.y>this._terminal.buffer.scrollBottom&&(this._terminal.buffer.y--,this._terminal.scroll()),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.emit("linefeed")},e.prototype.carriageReturn=function(){this._terminal.buffer.x=0},e.prototype.backspace=function(){this._terminal.buffer.x>0&&this._terminal.buffer.x--},e.prototype.tab=function(){this._terminal.buffer.x=this._terminal.buffer.nextStop()},e.prototype.shiftOut=function(){this._terminal.setgLevel(1)},e.prototype.shiftIn=function(){this._terminal.setgLevel(0)},e.prototype.insertChars=function(e){var t=e[0];t<1&&(t=1);for(var r=this._terminal.buffer.y+this._terminal.buffer.ybase,n=this._terminal.buffer.x,i=[this._terminal.eraseAttr()," ",1,32];t--&&n<this._terminal.cols;)this._terminal.buffer.lines.get(r).splice(n++,0,i),this._terminal.buffer.lines.get(r).pop()},e.prototype.cursorUp=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0)},e.prototype.cursorDown=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},e.prototype.cursorForward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.cursorBackward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.buffer.x-=t,this._terminal.buffer.x<0&&(this._terminal.buffer.x=0)},e.prototype.cursorNextLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=0},e.prototype.cursorPrecedingLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0),this._terminal.buffer.x=0},e.prototype.cursorCharAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1},e.prototype.cursorPosition=function(e){var t,r=e[0]-1;t=e.length>=2?e[1]-1:0,r<0?r=0:r>=this._terminal.rows&&(r=this._terminal.rows-1),t<0?t=0:t>=this._terminal.cols&&(t=this._terminal.cols-1),this._terminal.buffer.x=t,this._terminal.buffer.y=r},e.prototype.cursorForwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.nextStop()},e.prototype.eraseInDisplay=function(e){var t;switch(e[0]){case 0:for(this._terminal.eraseRight(this._terminal.buffer.x,this._terminal.buffer.y),t=this._terminal.buffer.y+1;t<this._terminal.rows;t++)this._terminal.eraseLine(t);break;case 1:for(this._terminal.eraseLeft(this._terminal.buffer.x,this._terminal.buffer.y),t=this._terminal.buffer.y;t--;)this._terminal.eraseLine(t);break;case 2:for(t=this._terminal.rows;t--;)this._terminal.eraseLine(t);break;case 3:var r=this._terminal.buffer.lines.length-this._terminal.rows;r>0&&(this._terminal.buffer.lines.trimStart(r),this._terminal.buffer.ybase=Math.max(this._terminal.buffer.ybase-r,0),this._terminal.buffer.ydisp=Math.max(this._terminal.buffer.ydisp-r,0),this._terminal.emit("scroll",0))}},e.prototype.eraseInLine=function(e){switch(e[0]){case 0:this._terminal.eraseRight(this._terminal.buffer.x,this._terminal.buffer.y);break;case 1:this._terminal.eraseLeft(this._terminal.buffer.x,this._terminal.buffer.y);break;case 2:this._terminal.eraseLine(this._terminal.buffer.y)}},e.prototype.insertLines=function(e){var t=e[0];t<1&&(t=1);for(var r=this._terminal.buffer.y+this._terminal.buffer.ybase,n=this._terminal.rows-1-this._terminal.buffer.scrollBottom,i=this._terminal.rows-1+this._terminal.buffer.ybase-n+1;t--;)this._terminal.buffer.lines.splice(i-1,1),this._terminal.buffer.lines.splice(r,0,this._terminal.blankLine(!0));this._terminal.updateRange(this._terminal.buffer.y),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.deleteLines=function(e){var t=e[0];t<1&&(t=1);var r,n=this._terminal.buffer.y+this._terminal.buffer.ybase;for(r=this._terminal.rows-1-this._terminal.buffer.scrollBottom,r=this._terminal.rows-1+this._terminal.buffer.ybase-r;t--;)this._terminal.buffer.lines.splice(n,1),this._terminal.buffer.lines.splice(r,0,this._terminal.blankLine(!0));this._terminal.updateRange(this._terminal.buffer.y),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.deleteChars=function(e){var t=e[0];t<1&&(t=1);for(var r=this._terminal.buffer.y+this._terminal.buffer.ybase,n=[this._terminal.eraseAttr()," ",1,32];t--;)this._terminal.buffer.lines.get(r).splice(this._terminal.buffer.x,1),this._terminal.buffer.lines.get(r).push(n);this._terminal.updateRange(this._terminal.buffer.y)},e.prototype.scrollUp=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollTop,1),this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollBottom,0,this._terminal.blankLine());this._terminal.updateRange(this._terminal.buffer.scrollTop),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.scrollDown=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollBottom,1),this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollTop,0,this._terminal.blankLine());this._terminal.updateRange(this._terminal.buffer.scrollTop),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.eraseChars=function(e){var t=e[0];t<1&&(t=1);for(var r=this._terminal.buffer.y+this._terminal.buffer.ybase,n=this._terminal.buffer.x,i=[this._terminal.eraseAttr()," ",1,32];t--&&n<this._terminal.cols;)this._terminal.buffer.lines.get(r)[n++]=i},e.prototype.cursorBackwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.prevStop()},e.prototype.charPosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.HPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.repeatPrecedingCharacter=function(e){for(var t=e[0]||1,r=this._terminal.buffer.lines.get(this._terminal.buffer.ybase+this._terminal.buffer.y),n=r[this._terminal.buffer.x-1]||[this._terminal.defAttr," ",1,32];t--;)r[this._terminal.buffer.x++]=n},e.prototype.sendDeviceAttributes=function(e){e[0]>0||(this._terminal.prefix?">"===this._terminal.prefix&&(this._terminal.is("xterm")?this._terminal.send(n.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._terminal.send(n.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._terminal.send(e[0]+"c"):this._terminal.is("screen")&&this._terminal.send(n.C0.ESC+"[>83;40003;0c")):this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._terminal.send(n.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._terminal.send(n.C0.ESC+"[?6c"))},e.prototype.linePosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y=t-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1)},e.prototype.VPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},e.prototype.HVPosition=function(e){e[0]<1&&(e[0]=1),e[1]<1&&(e[1]=1),this._terminal.buffer.y=e[0]-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=e[1]-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.tabClear=function(e){var t=e[0];t<=0?delete this._terminal.buffer.tabs[this._terminal.buffer.x]:3===t&&(this._terminal.buffer.tabs={})},e.prototype.setMode=function(e){if(e.length>1)for(var t=0;t<e.length;t++)this.setMode([e[t]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(e[0]){case 1:this._terminal.applicationCursor=!0;break;case 2:this._terminal.setgCharset(0,i.DEFAULT_CHARSET),this._terminal.setgCharset(1,i.DEFAULT_CHARSET),this._terminal.setgCharset(2,i.DEFAULT_CHARSET),this._terminal.setgCharset(3,i.DEFAULT_CHARSET);break;case 3:this._terminal.savedCols=this._terminal.cols,this._terminal.resize(132,this._terminal.rows);break;case 6:this._terminal.originMode=!0;break;case 7:this._terminal.wraparoundMode=!0;break;case 12:break;case 66:this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=9===e[0],this._terminal.vt200Mouse=1e3===e[0],this._terminal.normalMouse=e[0]>1e3,this._terminal.mouseEvents=!0,this._terminal.element.classList.add("enable-mouse-events"),this._terminal.selectionManager.disable(),this._terminal.log("Binding to mouse events.");break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._terminal.utfMouse=!0;break;case 1006:this._terminal.sgrMouse=!0;break;case 1015:this._terminal.urxvtMouse=!0;break;case 25:this._terminal.cursorHidden=!1;break;case 1049:case 47:case 1047:this._terminal.buffers.activateAltBuffer(),this._terminal.selectionManager.setBuffer(this._terminal.buffer),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!0}}else switch(e[0]){case 4:this._terminal.insertMode=!0}},e.prototype.resetMode=function(e){if(e.length>1)for(var t=0;t<e.length;t++)this.resetMode([e[t]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(e[0]){case 1:this._terminal.applicationCursor=!1;break;case 3:132===this._terminal.cols&&this._terminal.savedCols&&this._terminal.resize(this._terminal.savedCols,this._terminal.rows),delete this._terminal.savedCols;break;case 6:this._terminal.originMode=!1;break;case 7:this._terminal.wraparoundMode=!1;break;case 12:break;case 66:this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=!1,this._terminal.vt200Mouse=!1,this._terminal.normalMouse=!1,this._terminal.mouseEvents=!1,this._terminal.element.classList.remove("enable-mouse-events"),this._terminal.selectionManager.enable();break;case 1004:this._terminal.sendFocus=!1;break;case 1005:this._terminal.utfMouse=!1;break;case 1006:this._terminal.sgrMouse=!1;break;case 1015:this._terminal.urxvtMouse=!1;break;case 25:this._terminal.cursorHidden=!0;break;case 1049:case 47:case 1047:this._terminal.buffers.activateNormalBuffer(),this._terminal.selectionManager.setBuffer(this._terminal.buffer),this._terminal.refresh(0,this._terminal.rows-1),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!1}}else switch(e[0]){case 4:this._terminal.insertMode=!1}},e.prototype.charAttributes=function(e){if(1!==e.length||0!==e[0]){for(var t,r=e.length,n=this._terminal.curAttr>>18,i=this._terminal.curAttr>>9&511,o=511&this._terminal.curAttr,a=0;a<r;a++)(t=e[a])>=30&&t<=37?i=t-30:t>=40&&t<=47?o=t-40:t>=90&&t<=97?i=(t+=8)-90:t>=100&&t<=107?o=(t+=8)-100:0===t?(n=this._terminal.defAttr>>18,i=this._terminal.defAttr>>9&511,o=511&this._terminal.defAttr):1===t?n|=s.FLAGS.BOLD:4===t?n|=s.FLAGS.UNDERLINE:5===t?n|=s.FLAGS.BLINK:7===t?n|=s.FLAGS.INVERSE:8===t?n|=s.FLAGS.INVISIBLE:2===t?n|=s.FLAGS.DIM:22===t?(n&=~s.FLAGS.BOLD,n&=~s.FLAGS.DIM):24===t?n&=~s.FLAGS.UNDERLINE:25===t?n&=~s.FLAGS.BLINK:27===t?n&=~s.FLAGS.INVERSE:28===t?n&=~s.FLAGS.INVISIBLE:39===t?i=this._terminal.defAttr>>9&511:49===t?o=511&this._terminal.defAttr:38===t?2===e[a+1]?(a+=2,-1===(i=this._terminal.matchColor(255&e[a],255&e[a+1],255&e[a+2]))&&(i=511),a+=2):5===e[a+1]&&(i=t=255&e[a+=2]):48===t?2===e[a+1]?(a+=2,-1===(o=this._terminal.matchColor(255&e[a],255&e[a+1],255&e[a+2]))&&(o=511),a+=2):5===e[a+1]&&(o=t=255&e[a+=2]):100===t?(i=this._terminal.defAttr>>9&511,o=511&this._terminal.defAttr):this._terminal.error("Unknown SGR attribute: %d.",t);this._terminal.curAttr=n<<18|i<<9|o}else this._terminal.curAttr=this._terminal.defAttr},e.prototype.deviceStatus=function(e){if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(e[0]){case 6:this._terminal.send(n.C0.ESC+"[?"+(this._terminal.buffer.y+1)+";"+(this._terminal.buffer.x+1)+"R")}}else switch(e[0]){case 5:this._terminal.send(n.C0.ESC+"[0n");break;case 6:this._terminal.send(n.C0.ESC+"["+(this._terminal.buffer.y+1)+";"+(this._terminal.buffer.x+1)+"R")}},e.prototype.softReset=function(e){this._terminal.cursorHidden=!1,this._terminal.insertMode=!1,this._terminal.originMode=!1,this._terminal.wraparoundMode=!0,this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea(),this._terminal.applicationCursor=!1,this._terminal.buffer.scrollTop=0,this._terminal.buffer.scrollBottom=this._terminal.rows-1,this._terminal.curAttr=this._terminal.defAttr,this._terminal.buffer.x=this._terminal.buffer.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null]},e.prototype.setCursorStyle=function(e){var t=e[0]<1?1:e[0];switch(t){case 1:case 2:this._terminal.setOption("cursorStyle","block");break;case 3:case 4:this._terminal.setOption("cursorStyle","underline");break;case 5:case 6:this._terminal.setOption("cursorStyle","bar")}var r=t%2==1;this._terminal.setOption("cursorBlink",r)},e.prototype.setScrollRegion=function(e){this._terminal.prefix||(this._terminal.buffer.scrollTop=(e[0]||1)-1,this._terminal.buffer.scrollBottom=(e[1]&&e[1]<=this._terminal.rows?e[1]:this._terminal.rows)-1,this._terminal.buffer.x=0,this._terminal.buffer.y=0)},e.prototype.saveCursor=function(e){this._terminal.buffer.savedX=this._terminal.buffer.x,this._terminal.buffer.savedY=this._terminal.buffer.y},e.prototype.restoreCursor=function(e){this._terminal.buffer.x=this._terminal.buffer.savedX||0,this._terminal.buffer.y=this._terminal.buffer.savedY||0},e}();r.InputHandler=c},{"./Buffer":331,"./CharWidth":333,"./Charsets":334,"./EscapeSequences":336,"./renderer/Types":359}],339:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("./Types"),o=e("./input/MouseZoneManager"),s=e("./EventEmitter"),a=new RegExp("(?:^|[^\\da-z\\.-]+)((https?:\\/\\/)((([\\da-z\\.-]+)\\.([a-z\\.]{2,6}))|((\\d{1,3}\\.){3}\\d{1,3})|(localhost))(:\\d{1,5})?(\\/[\\/\\w\\.\\-%~]*)*(\\?[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?(#[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?)($|[^\\/\\w\\.\\-%]+)"),c=0,l=function(e){function t(t){var r=e.call(this)||this;return r._terminal=t,r._linkMatchers=[],r._nextLinkMatcherId=c,r._rowsToLinkify={start:null,end:null},r.registerLinkMatcher(a,null,{matchIndex:1}),r}return n(t,e),t.prototype.attachToDom=function(e){this._mouseZoneManager=e},t.prototype.linkifyRows=function(e,r){var n=this;this._mouseZoneManager&&(this._rowsToLinkify.start?(this._rowsToLinkify.start=this._rowsToLinkify.start<e?this._rowsToLinkify.start:e,this._rowsToLinkify.end=this._rowsToLinkify.end>r?this._rowsToLinkify.end:r):(this._rowsToLinkify.start=e,this._rowsToLinkify.end=r),this._mouseZoneManager.clearAll(e,r),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._linkifyRows()},t.TIME_BEFORE_LINKIFY))},t.prototype._linkifyRows=function(){this._rowsTimeoutId=null;for(var e=this._rowsToLinkify.start;e<=this._rowsToLinkify.end;e++)this._linkifyRow(e);this._rowsToLinkify.start=null,this._rowsToLinkify.end=null},t.prototype.setHypertextLinkHandler=function(e){this._linkMatchers[c].handler=e},t.prototype.setHypertextValidationCallback=function(e){this._linkMatchers[c].validationCallback=e},t.prototype.registerLinkMatcher=function(e,t,r){if(void 0===r&&(r={}),this._nextLinkMatcherId!==c&&!t)throw new Error("handler must be defined");var n={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:r.matchIndex,validationCallback:r.validationCallback,hoverTooltipCallback:r.tooltipCallback,hoverLeaveCallback:r.leaveCallback,priority:r.priority||0};return this._addLinkMatcherToList(n),n.id},t.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;t>=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},t.prototype.deregisterLinkMatcher=function(e){for(var t=1;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},t.prototype._linkifyRow=function(e){var t=this._terminal.buffer.ydisp+e;if(!(t>=this._terminal.buffer.lines.length))for(var r=this._terminal.buffer.translateBufferLineToString(t,!1),n=0;n<this._linkMatchers.length;n++)this._doLinkifyRow(e,r,this._linkMatchers[n])},t.prototype._doLinkifyRow=function(e,t,r,n){var i=this;void 0===n&&(n=0);r.id;var o=t.match(r.regex);if(o&&0!==o.length){var s=o["number"!=typeof r.matchIndex?0:r.matchIndex],a=t.indexOf(s);r.validationCallback?r.validationCallback(s,function(t){i._rowsTimeoutId||t&&i._addLink(n+a,e,s,r)}):this._addLink(n+a,e,s,r);var c=a+s.length,l=t.substr(c);l.length>0&&this._doLinkifyRow(e,l,r,n+c)}},t.prototype._addLink=function(e,t,r,n){var s=this;this._mouseZoneManager.add(new o.MouseZone(e+1,e+1+r.length,t+1,function(e){if(n.handler)return n.handler(e,r);window.open(r,"_blank")},function(n){s.emit(i.LinkHoverEventTypes.HOVER,{x:e,y:t,length:r.length}),s._terminal.element.style.cursor="pointer"},function(o){s.emit(i.LinkHoverEventTypes.TOOLTIP,{x:e,y:t,length:r.length}),n.hoverTooltipCallback&&n.hoverTooltipCallback(o,r)},function(){s.emit(i.LinkHoverEventTypes.LEAVE,{x:e,y:t,length:r.length}),s._terminal.element.style.cursor="",n.hoverLeaveCallback&&n.hoverLeaveCallback()}))},t.TIME_BEFORE_LINKIFY=200,t}(s.EventEmitter);r.Linkifier=l},{"./EventEmitter":337,"./Types":344,"./input/MouseZoneManager":349}],340:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./EscapeSequences"),i=e("./Charsets"),o={};o[n.C0.BEL]=function(e,t){return t.bell()},o[n.C0.LF]=function(e,t){return t.lineFeed()},o[n.C0.VT]=o[n.C0.LF],o[n.C0.FF]=o[n.C0.LF],o[n.C0.CR]=function(e,t){return t.carriageReturn()},o[n.C0.BS]=function(e,t){return t.backspace()},o[n.C0.HT]=function(e,t){return t.tab()},o[n.C0.SO]=function(e,t){return t.shiftOut()},o[n.C0.SI]=function(e,t){return t.shiftIn()},o[n.C0.ESC]=function(e,t){return e.setState(l.ESCAPED)};var s={};s["["]=function(e,t){t.params=[],t.currentParam=0,e.setState(l.CSI_PARAM)},s["]"]=function(e,t){t.params=[],t.currentParam=0,e.setState(l.OSC)},s.P=function(e,t){t.params=[],t.currentParam=0,e.setState(l.DCS)},s._=function(e,t){e.setState(l.IGNORE)},s["^"]=function(e,t){e.setState(l.IGNORE)},s.c=function(e,t){t.reset()},s.E=function(e,t){t.buffer.x=0,t.index(),e.setState(l.NORMAL)},s.D=function(e,t){t.index(),e.setState(l.NORMAL)},s.M=function(e,t){t.reverseIndex(),e.setState(l.NORMAL)},s["%"]=function(e,t){t.setgLevel(0),t.setgCharset(0,i.DEFAULT_CHARSET),e.setState(l.NORMAL),e.skipNextChar()},s[n.C0.CAN]=function(e){return e.setState(l.NORMAL)};var a={};a["?"]=function(e){return e.setPrefix("?")},a[">"]=function(e){return e.setPrefix(">")},a["!"]=function(e){return e.setPrefix("!")},a[0]=function(e){return e.setParam(10*e.getParam())},a[1]=function(e){return e.setParam(10*e.getParam()+1)},a[2]=function(e){return e.setParam(10*e.getParam()+2)},a[3]=function(e){return e.setParam(10*e.getParam()+3)},a[4]=function(e){return e.setParam(10*e.getParam()+4)},a[5]=function(e){return e.setParam(10*e.getParam()+5)},a[6]=function(e){return e.setParam(10*e.getParam()+6)},a[7]=function(e){return e.setParam(10*e.getParam()+7)},a[8]=function(e){return e.setParam(10*e.getParam()+8)},a[9]=function(e){return e.setParam(10*e.getParam()+9)},a.$=function(e){return e.setPostfix("$")},a['"']=function(e){return e.setPostfix('"')},a[" "]=function(e){return e.setPostfix(" ")},a["'"]=function(e){return e.setPostfix("'")},a[";"]=function(e){return e.finalizeParam()},a[n.C0.CAN]=function(e){return e.setState(l.NORMAL)};var c={};c["@"]=function(e,t,r){return e.insertChars(t)},c.A=function(e,t,r){return e.cursorUp(t)},c.B=function(e,t,r){return e.cursorDown(t)},c.C=function(e,t,r){return e.cursorForward(t)},c.D=function(e,t,r){return e.cursorBackward(t)},c.E=function(e,t,r){return e.cursorNextLine(t)},c.F=function(e,t,r){return e.cursorPrecedingLine(t)},c.G=function(e,t,r){return e.cursorCharAbsolute(t)},c.H=function(e,t,r){return e.cursorPosition(t)},c.I=function(e,t,r){return e.cursorForwardTab(t)},c.J=function(e,t,r){return e.eraseInDisplay(t)},c.K=function(e,t,r){return e.eraseInLine(t)},c.L=function(e,t,r){return e.insertLines(t)},c.M=function(e,t,r){return e.deleteLines(t)},c.P=function(e,t,r){return e.deleteChars(t)},c.S=function(e,t,r){return e.scrollUp(t)},c.T=function(e,t,r){t.length<2&&!r&&e.scrollDown(t)},c.X=function(e,t,r){return e.eraseChars(t)},c.Z=function(e,t,r){return e.cursorBackwardTab(t)},c["`"]=function(e,t,r){return e.charPosAbsolute(t)},c.a=function(e,t,r){return e.HPositionRelative(t)},c.b=function(e,t,r){return e.repeatPrecedingCharacter(t)},c.c=function(e,t,r){return e.sendDeviceAttributes(t)},c.d=function(e,t,r){return e.linePosAbsolute(t)},c.e=function(e,t,r){return e.VPositionRelative(t)},c.f=function(e,t,r){return e.HVPosition(t)},c.g=function(e,t,r){return e.tabClear(t)},c.h=function(e,t,r){return e.setMode(t)},c.l=function(e,t,r){return e.resetMode(t)},c.m=function(e,t,r){return e.charAttributes(t)},c.n=function(e,t,r){return e.deviceStatus(t)},c.p=function(e,t,r){switch(r){case"!":e.softReset(t)}},c.q=function(e,t,r,n){" "===n&&e.setCursorStyle(t)},c.r=function(e,t){return e.setScrollRegion(t)},c.s=function(e,t){return e.saveCursor(t)},c.u=function(e,t){return e.restoreCursor(t)},c[n.C0.CAN]=function(e,t,r,n,i){return i.setState(l.NORMAL)};var l;!function(e){e[e.NORMAL=0]="NORMAL",e[e.ESCAPED=1]="ESCAPED",e[e.CSI_PARAM=2]="CSI_PARAM",e[e.CSI=3]="CSI",e[e.OSC=4]="OSC",e[e.CHARSET=5]="CHARSET",e[e.DCS=6]="DCS",e[e.IGNORE=7]="IGNORE"}(l=r.ParserState||(r.ParserState={}));var u=function(){function e(e,t){this._inputHandler=e,this._terminal=t,this._state=l.NORMAL}return e.prototype.parse=function(e){var t,r,u,f,h=e.length,_=this._terminal.buffer.x,p=this._terminal.buffer.y;for(this._terminal.debug&&this._terminal.log("data: "+e),this._position=0,this._terminal.surrogate_high&&(e=this._terminal.surrogate_high+e,this._terminal.surrogate_high="");this._position<h;this._position++){if(r=e[this._position],55296<=(u=e.charCodeAt(this._position))&&u<=56319){if(f=e.charCodeAt(this._position+1),isNaN(f)){this._terminal.surrogate_high=r;continue}u=1024*(u-55296)+(f-56320)+65536,r+=e.charAt(this._position+1)}if(!(56320<=u&&u<=57343))switch(this._state){case l.NORMAL:r in o?o[r](this,this._inputHandler):this._inputHandler.addChar(r,u);break;case l.ESCAPED:if(r in s){s[r](this,this._terminal);break}switch(r){case"(":case")":case"*":case"+":case"-":case".":switch(r){case"(":this._terminal.gcharset=0;break;case")":this._terminal.gcharset=1;break;case"*":this._terminal.gcharset=2;break;case"+":this._terminal.gcharset=3;break;case"-":this._terminal.gcharset=1;break;case".":this._terminal.gcharset=2}this._state=l.CHARSET;break;case"/":this._terminal.gcharset=3,this._state=l.CHARSET,this._position--;break;case"N":case"O":break;case"n":this._terminal.setgLevel(2);break;case"o":case"|":this._terminal.setgLevel(3);break;case"}":this._terminal.setgLevel(2);break;case"~":this._terminal.setgLevel(1);break;case"7":this._inputHandler.saveCursor(),this._state=l.NORMAL;break;case"8":this._inputHandler.restoreCursor(),this._state=l.NORMAL;break;case"#":this._state=l.NORMAL,this._position++;break;case"H":this._terminal.tabSet(),this._state=l.NORMAL;break;case"=":this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._state=l.NORMAL;break;case">":this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._state=l.NORMAL;break;default:this._state=l.NORMAL,this._terminal.error("Unknown ESC control: %s.",r)}break;case l.CHARSET:r in i.CHARSETS?(t=i.CHARSETS[r],"/"===r&&this.skipNextChar()):t=i.DEFAULT_CHARSET,this._terminal.setgCharset(this._terminal.gcharset,t),this._terminal.gcharset=null,this._state=l.NORMAL;break;case l.OSC:if(r===n.C0.ESC||r===n.C0.BEL){switch(r===n.C0.ESC&&this._position++,this._terminal.params.push(this._terminal.currentParam),this._terminal.params[0]){case 0:case 1:case 2:this._terminal.params[1]&&(this._terminal.title=this._terminal.params[1],this._terminal.handleTitle(this._terminal.title))}this._terminal.params=[],this._terminal.currentParam=0,this._state=l.NORMAL}else this._terminal.params.length?this._terminal.currentParam+=r:r>="0"&&r<="9"?this._terminal.currentParam=10*this._terminal.currentParam+r.charCodeAt(0)-48:";"===r&&(this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam="");break;case l.CSI_PARAM:if(r in a){a[r](this);break}this.finalizeParam(),this._state=l.CSI;case l.CSI:r in c?(this._terminal.debug&&this._terminal.log("CSI "+(this._terminal.prefix?this._terminal.prefix:"")+" "+(this._terminal.params?this._terminal.params.join(";"):"")+" "+(this._terminal.postfix?this._terminal.postfix:"")+" "+r),c[r](this._inputHandler,this._terminal.params,this._terminal.prefix,this._terminal.postfix,this)):this._terminal.error("Unknown CSI code: %s.",r),this._state=l.NORMAL,this._terminal.prefix="",this._terminal.postfix="";break;case l.DCS:if(r===n.C0.ESC||r===n.C0.BEL){r===n.C0.ESC&&this._position++;var d=void 0,m=void 0;switch(this._terminal.prefix){case"":break;case"$q":switch(d=this._terminal.currentParam,m=!1,d){case'"q':d='0"q';break;case'"p':d='61"p';break;case"r":d=this._terminal.buffer.scrollTop+1+";"+(this._terminal.buffer.scrollBottom+1)+"r";break;case"m":d="0m";break;default:this._terminal.error("Unknown DCS Pt: %s.",d),d=""}this._terminal.send(n.C0.ESC+"P"+ +m+"$r"+d+n.C0.ESC+"\\");break;case"+p":break;case"+q":d=this._terminal.currentParam,m=!1,this._terminal.send(n.C0.ESC+"P"+ +m+"+r"+d+n.C0.ESC+"\\");break;default:this._terminal.error("Unknown DCS prefix: %s.",this._terminal.prefix)}this._terminal.currentParam=0,this._terminal.prefix="",this._state=l.NORMAL}else this._terminal.currentParam?this._terminal.currentParam+=r:this._terminal.prefix||"$"===r||"+"===r?2===this._terminal.prefix.length?this._terminal.currentParam=r:this._terminal.prefix+=r:this._terminal.currentParam=r;break;case l.IGNORE:r!==n.C0.ESC&&r!==n.C0.BEL||(r===n.C0.ESC&&this._position++,this._state=l.NORMAL)}}return this._terminal.buffer.x===_&&this._terminal.buffer.y===p||this._terminal.emit("cursormove"),this._state},e.prototype.setState=function(e){this._state=e},e.prototype.setPrefix=function(e){this._terminal.prefix=e},e.prototype.setPostfix=function(e){this._terminal.postfix=e},e.prototype.setParam=function(e){this._terminal.currentParam=e},e.prototype.getParam=function(){return this._terminal.currentParam},e.prototype.finalizeParam=function(){this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam=0},e.prototype.skipNextChar=function(){this._position++},e}();r.Parser=u},{"./Charsets":334,"./EscapeSequences":336}],341:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i,o=e("./utils/MouseHelper"),s=e("./utils/Browser"),a=e("./EventEmitter"),c=e("./SelectionModel"),l=e("./Buffer"),u=String.fromCharCode(160),f=new RegExp(u,"g");!function(e){e[e.NORMAL=0]="NORMAL",e[e.WORD=1]="WORD",e[e.LINE=2]="LINE"}(i||(i={}));var h=function(e){function t(t,r,n){var o=e.call(this)||this;return o._terminal=t,o._buffer=r,o._charMeasure=n,o._enabled=!0,o._initListeners(),o.enable(),o._model=new c.SelectionModel(t),o._activeSelectionMode=i.NORMAL,o}return n(t,e),t.prototype._initListeners=function(){var e=this;this._mouseMoveListener=function(t){return e._onMouseMove(t)},this._mouseUpListener=function(t){return e._onMouseUp(t)},this._buffer.lines.on("trim",function(t){return e._onTrim(t)})},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.setBuffer=function(e){this._buffer=e,this.clearSelection()},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t)&&(e[0]!==t[0]||e[1]!==t[1])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var r=e[1]===t[1]?t[0]:null,n=[];n.push(this._buffer.translateBufferLineToString(e[1],!0,e[0],r));for(var i=e[1]+1;i<=t[1]-1;i++){var o=this._buffer.lines.get(i),a=this._buffer.translateBufferLineToString(i,!0);o.isWrapped?n[n.length-1]+=a:n.push(a)}if(e[1]!==t[1]){var o=this._buffer.lines.get(t[1]),a=this._buffer.translateBufferLineToString(t[1],!0,0,t[0]);o.isWrapped?n[n.length-1]+=a:n.push(a)}return n.map(function(e){return e.replace(f," ")}).join(s.isMSWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh()},t.prototype.refresh=function(e){var t=this;if(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),s.isLinux&&e){this.selectionText.length&&this.emit("newselection",this.selectionText)}},t.prototype._refresh=function(){this._refreshAnimationFrame=null,this.emit("refresh",{start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd})},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._terminal.emit("selection")},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.element,this._charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!0);return t?(t[0]--,t[1]--,t[1]+=this._terminal.buffer.ydisp,t):null},t.prototype._getMouseEventScrollAmount=function(e){var t=o.MouseHelper.getCoordsRelativeToElement(e,this._terminal.element)[1],r=this._terminal.rows*Math.ceil(this._charMeasure.height*this._terminal.options.lineHeight);return t>=0&&t<=r?0:(t>r&&(t-=r),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return s.isMac?e.altKey:e.shiftKey},t.prototype.onMouseDown=function(e){if((2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._terminal.element.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.addEventListener("mouseup",this._mouseUpListener),this._dragScrollIntervalTimer=setInterval(function(){return e._dragScroll()},50)},t.prototype._removeMouseDownListeners=function(){this._terminal.element.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.removeEventListener("mouseup",this._mouseUpListener),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=null},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=i.NORMAL,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=null;var t=this._buffer.lines.get(this._model.selectionStart[1]);if(t&&!(t.length>=this._model.selectionStart[0])){0===t[this._model.selectionStart[0]][l.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionStart[0]++}}},t.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=i.WORD,this._selectWordAt(t))},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=i.LINE,this._selectLineAt(t[1]))},t.prototype._onMouseMove=function(e){e.stopImmediatePropagation();var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){if(this._activeSelectionMode===i.LINE?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._terminal.cols:this._activeSelectionMode===i.WORD&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._dragScrollAmount>0?this._model.selectionEnd[0]=this._terminal.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]<this._buffer.lines.length){var r=this._buffer.lines.get(this._model.selectionEnd[1])[this._model.selectionEnd[0]];r&&0===r[l.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)},t.prototype._dragScroll=function(){this._dragScrollAmount&&(this._terminal.scrollLines(this._dragScrollAmount,!1),this._dragScrollAmount>0?this._model.selectionEnd=[this._terminal.cols-1,this._terminal.buffer.ydisp+this._terminal.rows]:this._model.selectionEnd=[0,this._terminal.buffer.ydisp],this.refresh())},t.prototype._onMouseUp=function(e){this._removeMouseDownListeners(),this.hasSelection&&this._terminal.emit("selection")},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var r=t[0],n=0;t[0]>=n;n++){var i=e[n];0===i[l.CHAR_DATA_WIDTH_INDEX]?r--:i[l.CHAR_DATA_CHAR_INDEX].length>1&&t[0]!==n&&(r+=i[l.CHAR_DATA_CHAR_INDEX].length-1)}return r},t.prototype.setSelection=function(e,t,r){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=r,this.refresh()},t.prototype._getWordAt=function(e){var t=this._buffer.lines.get(e[1]);if(!t)return null;var r=this._buffer.translateBufferLineToString(e[1],!1),n=this._convertViewportColToCharacterIndex(t,e),i=n,o=e[0]-n,s=0,a=0,c=0,u=0;if(" "===r.charAt(n)){for(;n>0&&" "===r.charAt(n-1);)n--;for(;i<r.length&&" "===r.charAt(i+1);)i++}else{var f=e[0],h=e[0];for(0===t[f][l.CHAR_DATA_WIDTH_INDEX]&&(s++,f--),2===t[h][l.CHAR_DATA_WIDTH_INDEX]&&(a++,h++),t[h][l.CHAR_DATA_CHAR_INDEX].length>1&&(u+=t[h][l.CHAR_DATA_CHAR_INDEX].length-1,i+=t[h][l.CHAR_DATA_CHAR_INDEX].length-1);f>0&&n>0&&!this._isCharWordSeparator(t[f-1]);){0===(_=t[f-1])[l.CHAR_DATA_WIDTH_INDEX]?(s++,f--):_[l.CHAR_DATA_CHAR_INDEX].length>1&&(c+=_[l.CHAR_DATA_CHAR_INDEX].length-1,n-=_[l.CHAR_DATA_CHAR_INDEX].length-1),n--,f--}for(;h<t.length&&i+1<r.length&&!this._isCharWordSeparator(t[h+1]);){var _=t[h+1];2===_[l.CHAR_DATA_WIDTH_INDEX]?(a++,h++):_[l.CHAR_DATA_CHAR_INDEX].length>1&&(u+=_[l.CHAR_DATA_CHAR_INDEX].length-1,i+=_[l.CHAR_DATA_CHAR_INDEX].length-1),i++,h++}}i++;return{start:n+o-s+c,length:Math.min(this._terminal.cols,i-n+s+a-c-u)}},t.prototype._selectWordAt=function(e){var t=this._getWordAt(e);t&&(this._model.selectionStart=[t.start,e[1]],this._model.selectionStartLength=t.length)},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e);t&&(this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,e[1]])},t.prototype._isCharWordSeparator=function(e){return 0!==e[l.CHAR_DATA_WIDTH_INDEX]&&" ()[]{}'\"".indexOf(e[l.CHAR_DATA_CHAR_INDEX])>=0},t.prototype._selectLineAt=function(e){this._model.selectionStart=[0,e],this._model.selectionStartLength=this._terminal.cols},t}(a.EventEmitter);r.SelectionManager=h},{"./Buffer":331,"./EventEmitter":337,"./SelectionModel":342,"./utils/Browser":360,"./utils/MouseHelper":364}],342:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e){this._terminal=e,this.clearSelection()}return e.prototype.clearSelection=function(){this.selectionStart=null,this.selectionEnd=null,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._terminal.cols,this._terminal.buffer.ybase+this._terminal.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?[this.selectionStart[0]+this.selectionStartLength,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:null},enumerable:!0,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();r.SelectionModel=n},{}],343:[function(e,t,r){"use strict";function n(e,t,r,n){void 0===n&&(n=!1),e.removeEventListener(t,r,n)}function i(e,t){var r=e.isMac&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isMSWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?r:r&&(!t.keyCode||t.keyCode>47)}function o(e,t,r,n,i,o){return Math.pow(30*(e-n),2)+Math.pow(59*(t-i),2)+Math.pow(11*(r-o),2)}var s=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var a=e("./BufferSet"),c=e("./Buffer"),l=e("./CompositionHelper"),u=e("./EventEmitter"),f=e("./Viewport"),h=e("./handlers/Clipboard"),_=e("./EscapeSequences"),p=e("./InputHandler"),d=e("./Parser"),m=e("./renderer/Renderer"),y=e("./Linkifier"),b=e("./SelectionManager"),v=e("./utils/CharMeasure"),g=e("./utils/Browser"),x=e("./utils/MouseHelper"),w=e("./utils/Sounds"),C=e("./renderer/ColorManager"),S=e("./input/MouseZoneManager"),k=e("./renderer/CharAtlas"),E="undefined"!=typeof window?window.document:null,A={cols:80,rows:24,convertEol:!1,termName:"xterm",cursorBlink:!1,cursorStyle:"block",bellSound:w.BellSound,bellStyle:"none",enableBold:!0,fontFamily:"courier-new, courier, monospace",fontSize:15,lineHeight:1,letterSpacing:0,scrollback:1e3,screenKeys:!1,debug:!1,cancelEvents:!1,disableStdin:!1,useFlowControl:!1,tabStopWidth:8,theme:null},j=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.browser=g,r.options=t,r.setup(),r}return s(t,e),t.prototype.setup=function(){var e=this;Object.keys(A).forEach(function(t){null==e.options[t]&&(e.options[t]=A[t]),e[t]=e.options[t]}),this.parent=E?E.body:null,this.cols=this.options.cols,this.rows=this.options.rows,this.options.handler&&this.on("data",this.options.handler),this.cursorState=0,this.cursorHidden=!1,this.sendDataQueue="",this.customKeyEventHandler=null,this.applicationKeypad=!1,this.applicationCursor=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!0,this.bracketedPasteMode=!1,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.readable=!0,this.writable=!0,this.defAttr=131840,this.curAttr=131840,this.params=[],this.currentParam=0,this.prefix="",this.postfix="",this.writeBuffer=[],this.writeInProgress=!1,this.xoffSentToCatchUp=!1,this.writeStopped=!1,this.surrogate_high="",this.userScrolling=!1,this.inputHandler=new p.InputHandler(this),this.parser=new d.Parser(this.inputHandler,this),this.renderer=this.renderer||null,this.selectionManager=this.selectionManager||null,this.linkifier=this.linkifier||new y.Linkifier(this),this._mouseZoneManager=this._mouseZoneManager||null,this.buffers=new a.BufferSet(this),this.buffer=this.buffers.active,this.buffers.on("activate",function(t){e.buffer=t}),this.selectionManager&&this.selectionManager.setBuffer(this.buffer)},t.prototype.eraseAttr=function(){return-512&this.defAttr|511&this.curAttr},t.prototype.focus=function(){this.textarea&&this.textarea.focus()},Object.defineProperty(t.prototype,"isFocused",{get:function(){return E.activeElement===this.textarea},enumerable:!0,configurable:!0}),t.prototype.getOption=function(e){if(!(e in A))throw new Error('No option with key "'+e+'"');return void 0!==this.options[e]?this.options[e]:this[e]},t.prototype.setOption=function(e,t){if(!(e in A))throw new Error('No option with key "'+e+'"');switch(e){case"bellStyle":t||(t="none");break;case"cursorStyle":t||(t="block");break;case"lineHeight":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);case"tabStopWidth":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);break;case"theme":if(this.renderer)return void this._setTheme(t);break;case"scrollback":if((t=Math.min(t,c.MAX_BUFFER_SIZE))<0)return void console.warn(e+" cannot be less than 0, value: "+t);if(this.options[e]!==t){var r=this.rows+t;if(this.buffer.lines.length>r){var n=this.buffer.lines.length-r,i=this.buffer.ydisp-n<0;this.buffer.lines.trimStart(n),this.buffer.ybase=Math.max(this.buffer.ybase-n,0),this.buffer.ydisp=Math.max(this.buffer.ydisp-n,0),i&&this.refresh(0,this.rows-1)}}}switch(this[e]=t,this.options[e]=t,e){case"fontFamily":case"fontSize":this.renderer.clear(),this.charMeasure.measure(this.options);break;case"enableBold":case"letterSpacing":case"lineHeight":this.renderer.clear(),this.renderer.onResize(this.cols,this.rows,!1),this.refresh(0,this.rows-1);case"scrollback":this.buffers.resize(this.cols,this.rows),this.viewport.syncScrollArea();break;case"tabStopWidth":this.buffers.setupTabStops();break;case"bellSound":case"bellStyle":this.syncBellSound()}this.renderer&&this.renderer.onOptionsChanged()},t.prototype._onTextAreaFocus=function(){this.sendFocus&&this.send(_.C0.ESC+"[I"),this.element.classList.add("focus"),this.showCursor(),this.emit("focus")},t.prototype.blur=function(){return this.textarea.blur()},t.prototype._onTextAreaBlur=function(){this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this.send(_.C0.ESC+"[O"),this.element.classList.remove("focus"),this.emit("blur")},t.prototype.initGlobal=function(){var e=this;this.bindKeys(),O(this.element,"copy",function(t){e.hasSelection()&&h.copyHandler(t,e,e.selectionManager)});var t=function(t){return h.pasteHandler(t,e)};O(this.textarea,"paste",t),O(this.element,"paste",t),g.isFirefox?O(this.element,"mousedown",function(t){2===t.button&&h.rightClickHandler(t,e.textarea,e.selectionManager)}):O(this.element,"contextmenu",function(t){h.rightClickHandler(t,e.textarea,e.selectionManager)}),g.isLinux&&O(this.element,"auxclick",function(t){1===t.button&&h.moveTextAreaUnderMouseCursor(t,e.textarea)})},t.prototype.bindKeys=function(){var e=this,t=this;O(this.element,"keydown",function(e){E.activeElement===this&&t._keyDown(e)},!0),O(this.element,"keypress",function(e){E.activeElement===this&&t._keyPress(e)},!0),O(this.element,"keyup",function(t){(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode})(t)||e.focus()},!0),O(this.textarea,"keydown",function(t){e._keyDown(t)},!0),O(this.textarea,"keypress",function(t){e._keyPress(t),e.textarea.value=""},!0),O(this.textarea,"compositionstart",function(){return e.compositionHelper.compositionstart()}),O(this.textarea,"compositionupdate",function(t){return e.compositionHelper.compositionupdate(t)}),O(this.textarea,"compositionend",function(){return e.compositionHelper.compositionend()}),this.on("refresh",function(){return e.compositionHelper.updateCompositionElements()}),this.on("refresh",function(t){return e.queueLinkification(t.start,t.end)})},t.prototype.open=function(e){var t=this;if(this.parent=e||this.parent,!this.parent)throw new Error("Terminal requires a parent element.");this.context=this.parent.ownerDocument.defaultView,this.document=this.parent.ownerDocument,this.body=this.document.body,k.initialize(this.document),this.element=this.document.createElement("div"),this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),this.parent.appendChild(this.element);var r=E.createDocumentFragment();this.viewportElement=E.createElement("div"),this.viewportElement.classList.add("xterm-viewport"),r.appendChild(this.viewportElement),this.viewportScrollArea=E.createElement("div"),this.viewportScrollArea.classList.add("xterm-scroll-area"),this.viewportElement.appendChild(this.viewportScrollArea),this._mouseZoneManager=new S.MouseZoneManager(this),this.on("scroll",function(){return t._mouseZoneManager.clearAll()}),this.linkifier.attachToDom(this._mouseZoneManager),this.helperContainer=E.createElement("div"),this.helperContainer.classList.add("xterm-helpers"),r.appendChild(this.helperContainer),this.textarea=E.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.textarea.addEventListener("focus",function(){return t._onTextAreaFocus()}),this.textarea.addEventListener("blur",function(){return t._onTextAreaBlur()}),this.helperContainer.appendChild(this.textarea),this.compositionView=E.createElement("div"),this.compositionView.classList.add("composition-view"),this.compositionHelper=new l.CompositionHelper(this.textarea,this.compositionView,this),this.helperContainer.appendChild(this.compositionView),this.charSizeStyleElement=E.createElement("style"),this.helperContainer.appendChild(this.charSizeStyleElement),this.charMeasure=new v.CharMeasure(E,this.helperContainer),this.syncBellSound(),this.element.appendChild(r),this.renderer=new m.Renderer(this,this.options.theme),this.options.theme=null,this.viewport=new f.Viewport(this,this.viewportElement,this.viewportScrollArea,this.charMeasure),this.viewport.onThemeChanged(this.renderer.colorManager.colors),this.on("cursormove",function(){return t.renderer.onCursorMove()}),this.on("resize",function(){return t.renderer.onResize(t.cols,t.rows,!1)}),this.on("blur",function(){return t.renderer.onBlur()}),this.on("focus",function(){return t.renderer.onFocus()}),window.addEventListener("resize",function(){return t.renderer.onWindowResize(window.devicePixelRatio)}),this.charMeasure.on("charsizechanged",function(){return t.renderer.onResize(t.cols,t.rows,!0)}),this.renderer.on("resize",function(e){return t.viewport.syncScrollArea()}),this.selectionManager=new b.SelectionManager(this,this.buffer,this.charMeasure),this.element.addEventListener("mousedown",function(e){return t.selectionManager.onMouseDown(e)}),this.selectionManager.on("refresh",function(e){return t.renderer.onSelectionChanged(e.start,e.end)}),this.selectionManager.on("newselection",function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()}),this.on("scroll",function(){t.viewport.syncScrollArea(),t.selectionManager.refresh()}),this.viewportElement.addEventListener("scroll",function(){return t.selectionManager.refresh()}),this.mouseHelper=new x.MouseHelper(this.renderer),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this.initGlobal(),this.bindMouse()},t.prototype._setTheme=function(e){var t=this.renderer.setTheme(e);this.viewport&&this.viewport.onThemeChanged(t)},t.applyAddon=function(e){e.apply(t)},t.prototype.bindMouse=function(){function e(e){var t,r;if(t=function(e){var t,r,n,i,o;switch(e.overrideType||e.type){case"mousedown":t=null!=e.button?+e.button:null!=e.which?e.which-1:null,g.isMSIE&&(t=1===t?0:4===t?1:t);break;case"mouseup":t=3;break;case"DOMMouseScroll":t=e.detail<0?64:65;break;case"wheel":t=e.wheelDeltaY>0?64:65}r=e.shiftKey?4:0,n=e.metaKey?8:0,i=e.ctrlKey?16:0,o=r|n|i,a.vt200Mouse?o&=i:a.normalMouse||(o=0);return t=32+(o<<2)+t}(e),r=a.mouseHelper.getRawByteCoords(e,a.element,a.charMeasure,a.options.lineHeight,a.cols,a.rows))switch(i(t,r),e.overrideType||e.type){case"mousedown":c=t;break;case"mouseup":c=32}}function t(e){var t=c,r=a.mouseHelper.getRawByteCoords(e,a.element,a.charMeasure,a.options.lineHeight,a.cols,a.rows);r&&i(t+=32,r)}function r(e,t){if(a.utfMouse){if(2047===t)return void e.push(0);t<127?e.push(t):(t>2047&&(t=2047),e.push(192|t>>6),e.push(128|63&t))}else{if(255===t)return void e.push(0);t>127&&(t=127),e.push(t)}}function i(e,t){if(a.vt300Mouse){e&=3,t.x-=32,t.y-=32;var n=_.C0.ESC+"[24";if(0===e)n+="1";else if(1===e)n+="3";else if(2===e)n+="5";else{if(3===e)return;n+="0"}return n+="~["+t.x+","+t.y+"]\r",void a.send(n)}if(a.decLocator)return e&=3,t.x-=32,t.y-=32,0===e?e=2:1===e?e=4:2===e?e=6:3===e&&(e=3),void a.send(_.C0.ESC+"["+e+";"+(3===e?4:0)+";"+t.y+";"+t.x+";"+t.page||"0&w");if(a.urxvtMouse)return t.x-=32,t.y-=32,t.x++,t.y++,void a.send(_.C0.ESC+"["+e+";"+t.x+";"+t.y+"M");if(a.sgrMouse)return t.x-=32,t.y-=32,void a.send(_.C0.ESC+"[<"+((3==(3&e)?-4&e:e)-32)+";"+t.x+";"+t.y+(3==(3&e)?"m":"M"));var i=[];r(i,e),r(i,t.x),r(i,t.y),a.send(_.C0.ESC+"[M"+String.fromCharCode.apply(String,i))}var o=this,s=this.element,a=this,c=32;O(s,"mousedown",function(r){if(r.preventDefault(),o.focus(),o.mouseEvents&&!o.selectionManager.shouldForceSelection(r)){if(e(r),o.vt200Mouse)return r.overrideType="mouseup",e(r),o.cancel(r);if(o.normalMouse&&O(o.document,"mousemove",t),!o.x10Mouse){var i=function(r){return e(r),o.normalMouse&&n(o.document,"mousemove",t),n(o.document,"mouseup",i),o.cancel(r)};O(o.document,"mouseup",i)}return o.cancel(r)}}),O(s,"wheel",function(t){o.mouseEvents&&(o.x10Mouse||o.vt300Mouse||o.decLocator||(e(t),t.preventDefault()))}),O(s,"wheel",function(e){if(!o.mouseEvents)return o.viewport.onWheel(e),o.cancel(e)}),O(s,"touchstart",function(e){if(!o.mouseEvents)return o.viewport.onTouchStart(e),o.cancel(e)}),O(s,"touchmove",function(e){if(!o.mouseEvents)return o.viewport.onTouchMove(e),o.cancel(e)})},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.readable=!1,this.writable=!1,this.handler=function(){},this.write=function(){},this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},t.prototype.refresh=function(e,t){this.renderer&&this.renderer.queueRefresh(e,t)},t.prototype.queueLinkification=function(e,t){this.linkifier&&this.linkifier.linkifyRows(e,t)},t.prototype.showCursor=function(){this.cursorState||(this.cursorState=1,this.refresh(this.buffer.y,this.buffer.y))},t.prototype.scroll=function(e){var t=this.blankLine(void 0,e),r=this.buffer.ybase+this.buffer.scrollTop,n=this.buffer.ybase+this.buffer.scrollBottom;if(0===this.buffer.scrollTop){var i=this.buffer.lines.length===this.buffer.lines.maxLength;n===this.buffer.lines.length-1?this.buffer.lines.push(t):this.buffer.lines.splice(n+1,0,t),i?this.userScrolling&&(this.buffer.ydisp=Math.max(this.buffer.ydisp-1,0)):(this.buffer.ybase++,this.userScrolling||this.buffer.ydisp++)}else{var o=n-r+1;this.buffer.lines.shiftElements(r+1,o-1,-1),this.buffer.lines.set(n,t)}this.userScrolling||(this.buffer.ydisp=this.buffer.ybase),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom),this.emit("scroll",this.buffer.ydisp)},t.prototype.scrollLines=function(e,t){if(e<0){if(0===this.buffer.ydisp)return;this.userScrolling=!0}else e+this.buffer.ydisp>=this.buffer.ybase&&(this.userScrolling=!1);var r=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),r!==this.buffer.ydisp&&(t||this.emit("scroll",this.buffer.ydisp),this.refresh(0,this.rows-1))},t.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},t.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},t.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},t.prototype.write=function(e){var t=this;this.writeBuffer.push(e),this.options.useFlowControl&&!this.xoffSentToCatchUp&&this.writeBuffer.length>=5&&(this.send(_.C0.DC3),this.xoffSentToCatchUp=!0),!this.writeInProgress&&this.writeBuffer.length>0&&(this.writeInProgress=!0,setTimeout(function(){t.innerWrite()}))},t.prototype.innerWrite=function(){for(var e=this,t=this.writeBuffer.splice(0,300);t.length>0;){var r=t.shift();this.xoffSentToCatchUp&&0===t.length&&0===this.writeBuffer.length&&(this.send(_.C0.DC1),this.xoffSentToCatchUp=!1),this.refreshStart=this.buffer.y,this.refreshEnd=this.buffer.y;var n=this.parser.parse(r);this.parser.setState(n),this.updateRange(this.buffer.y),this.refresh(this.refreshStart,this.refreshEnd)}this.writeBuffer.length>0?setTimeout(function(){return e.innerWrite()},0):this.writeInProgress=!1},t.prototype.writeln=function(e){this.write(e+"\r\n")},t.prototype.attachCustomKeyEventHandler=function(e){this.customKeyEventHandler=e},t.prototype.setHypertextLinkHandler=function(e){if(!this.linkifier)throw new Error("Cannot attach a hypertext link handler before Terminal.open is called");this.linkifier.setHypertextLinkHandler(e),this.refresh(0,this.rows-1)},t.prototype.setHypertextValidationCallback=function(e){if(!this.linkifier)throw new Error("Cannot attach a hypertext validation callback before Terminal.open is called");this.linkifier.setHypertextValidationCallback(e),this.refresh(0,this.rows-1)},t.prototype.registerLinkMatcher=function(e,t,r){if(this.linkifier){var n=this.linkifier.registerLinkMatcher(e,t,r);return this.refresh(0,this.rows-1),n}return 0},t.prototype.deregisterLinkMatcher=function(e){this.linkifier&&this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.hasSelection=function(){return!!this.selectionManager&&this.selectionManager.hasSelection},t.prototype.getSelection=function(){return this.selectionManager?this.selectionManager.selectionText:""},t.prototype.clearSelection=function(){this.selectionManager&&this.selectionManager.clearSelection()},t.prototype.selectAll=function(){this.selectionManager&&this.selectionManager.selectAll()},t.prototype._keyDown=function(e){if(this.customKeyEventHandler&&!1===this.customKeyEventHandler(e))return!1;if(!this.compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=this._evaluateKeyEscapeSequence(e);return t.key===_.C0.DC3?this.writeStopped=!0:t.key===_.C0.DC1&&(this.writeStopped=!1),t.scrollLines?(this.scrollLines(t.scrollLines),this.cancel(e,!0)):!!i(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(this.emit("keydown",e),this.emit("key",t.key,e),this.showCursor(),this.handler(t.key),this.cancel(e,!0)))},t.prototype._evaluateKeyEscapeSequence=function(e){var t={cancel:!1,key:void 0,scrollLines:void 0},r=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?this.applicationCursor?t.key=_.C0.ESC+"OA":t.key=_.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?this.applicationCursor?t.key=_.C0.ESC+"OD":t.key=_.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?this.applicationCursor?t.key=_.C0.ESC+"OC":t.key=_.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(this.applicationCursor?t.key=_.C0.ESC+"OB":t.key=_.C0.ESC+"[B");break;case 8:if(e.shiftKey){t.key=_.C0.BS;break}t.key=_.C0.DEL;break;case 9:if(e.shiftKey){t.key=_.C0.ESC+"[Z";break}t.key=_.C0.HT,t.cancel=!0;break;case 13:t.key=_.C0.CR,t.cancel=!0;break;case 27:t.key=_.C0.ESC,t.cancel=!0;break;case 37:r?(t.key=_.C0.ESC+"[1;"+(r+1)+"D",t.key===_.C0.ESC+"[1;3D"&&(t.key=this.browser.isMac?_.C0.ESC+"b":_.C0.ESC+"[1;5D")):this.applicationCursor?t.key=_.C0.ESC+"OD":t.key=_.C0.ESC+"[D";break;case 39:r?(t.key=_.C0.ESC+"[1;"+(r+1)+"C",t.key===_.C0.ESC+"[1;3C"&&(t.key=this.browser.isMac?_.C0.ESC+"f":_.C0.ESC+"[1;5C")):this.applicationCursor?t.key=_.C0.ESC+"OC":t.key=_.C0.ESC+"[C";break;case 38:r?(t.key=_.C0.ESC+"[1;"+(r+1)+"A",t.key===_.C0.ESC+"[1;3A"&&(t.key=_.C0.ESC+"[1;5A")):this.applicationCursor?t.key=_.C0.ESC+"OA":t.key=_.C0.ESC+"[A";break;case 40:r?(t.key=_.C0.ESC+"[1;"+(r+1)+"B",t.key===_.C0.ESC+"[1;3B"&&(t.key=_.C0.ESC+"[1;5B")):this.applicationCursor?t.key=_.C0.ESC+"OB":t.key=_.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(t.key=_.C0.ESC+"[2~");break;case 46:t.key=r?_.C0.ESC+"[3;"+(r+1)+"~":_.C0.ESC+"[3~";break;case 36:r?t.key=_.C0.ESC+"[1;"+(r+1)+"H":this.applicationCursor?t.key=_.C0.ESC+"OH":t.key=_.C0.ESC+"[H";break;case 35:r?t.key=_.C0.ESC+"[1;"+(r+1)+"F":this.applicationCursor?t.key=_.C0.ESC+"OF":t.key=_.C0.ESC+"[F";break;case 33:e.shiftKey?t.scrollLines=-(this.rows-1):t.key=_.C0.ESC+"[5~";break;case 34:e.shiftKey?t.scrollLines=this.rows-1:t.key=_.C0.ESC+"[6~";break;case 112:t.key=r?_.C0.ESC+"[1;"+(r+1)+"P":_.C0.ESC+"OP";break;case 113:t.key=r?_.C0.ESC+"[1;"+(r+1)+"Q":_.C0.ESC+"OQ";break;case 114:t.key=r?_.C0.ESC+"[1;"+(r+1)+"R":_.C0.ESC+"OR";break;case 115:t.key=r?_.C0.ESC+"[1;"+(r+1)+"S":_.C0.ESC+"OS";break;case 116:t.key=r?_.C0.ESC+"[15;"+(r+1)+"~":_.C0.ESC+"[15~";break;case 117:t.key=r?_.C0.ESC+"[17;"+(r+1)+"~":_.C0.ESC+"[17~";break;case 118:t.key=r?_.C0.ESC+"[18;"+(r+1)+"~":_.C0.ESC+"[18~";break;case 119:t.key=r?_.C0.ESC+"[19;"+(r+1)+"~":_.C0.ESC+"[19~";break;case 120:t.key=r?_.C0.ESC+"[20;"+(r+1)+"~":_.C0.ESC+"[20~";break;case 121:t.key=r?_.C0.ESC+"[21;"+(r+1)+"~":_.C0.ESC+"[21~";break;case 122:t.key=r?_.C0.ESC+"[23;"+(r+1)+"~":_.C0.ESC+"[23~";break;case 123:t.key=r?_.C0.ESC+"[24;"+(r+1)+"~":_.C0.ESC+"[24~";break;default:!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?this.browser.isMac||!e.altKey||e.ctrlKey||e.metaKey?this.browser.isMac&&!e.altKey&&!e.ctrlKey&&e.metaKey&&65===e.keyCode&&this.selectAll():e.keyCode>=65&&e.keyCode<=90?t.key=_.C0.ESC+String.fromCharCode(e.keyCode+32):192===e.keyCode?t.key=_.C0.ESC+"`":e.keyCode>=48&&e.keyCode<=57&&(t.key=_.C0.ESC+(e.keyCode-48)):e.keyCode>=65&&e.keyCode<=90?t.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?t.key=String.fromCharCode(0):e.keyCode>=51&&e.keyCode<=55?t.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?t.key=String.fromCharCode(127):219===e.keyCode?t.key=String.fromCharCode(27):220===e.keyCode?t.key=String.fromCharCode(28):221===e.keyCode&&(t.key=String.fromCharCode(29))}return t},t.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},t.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},t.prototype._keyPress=function(e){var t;if(this.customKeyEventHandler&&!1===this.customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null==e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!i(this.browser,e))&&(t=String.fromCharCode(t),this.emit("keypress",t,e),this.emit("key",t,e),this.showCursor(),this.handler(t),!0)},t.prototype.send=function(e){var t=this;this.sendDataQueue||setTimeout(function(){t.handler(t.sendDataQueue),t.sendDataQueue=""},1),this.sendDataQueue+=e},t.prototype.bell=function(){var e=this;this.emit("bell"),this.soundBell()&&this.bellAudioElement.play(),this.visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this.visualBellTimer),this.visualBellTimer=window.setTimeout(function(){e.element.classList.remove("visual-bell-active")},200))},t.prototype.log=function(e,t){this.options.debug&&this.context.console&&this.context.console.log&&this.context.console.log(e,t)},t.prototype.error=function(e,t){this.options.debug&&this.context.console&&this.context.console.error&&this.context.console.error(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e!==this.cols||t!==this.rows?(e<1&&(e=1),t<1&&(t=1),this.buffers.resize(e,t),this.cols=e,this.rows=t,this.buffers.setupTabStops(this.cols),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this.emit("resize",{cols:e,rows:t})):this.charMeasure.width&&this.charMeasure.height||this.charMeasure.measure(this.options))},t.prototype.updateRange=function(e){e<this.refreshStart&&(this.refreshStart=e),e>this.refreshEnd&&(this.refreshEnd=e)},t.prototype.maxRange=function(){this.refreshStart=0,this.refreshEnd=this.rows-1},t.prototype.eraseRight=function(e,t){var r=this.buffer.lines.get(this.buffer.ybase+t);if(r){for(var n=[this.eraseAttr()," ",1,32];e<this.cols;e++)r[e]=n;this.updateRange(t)}},t.prototype.eraseLeft=function(e,t){var r=this.buffer.lines.get(this.buffer.ybase+t);if(r){var n=[this.eraseAttr()," ",1,32];for(e++;e--;)r[e]=n;this.updateRange(t)}},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.blankLine());this.refresh(0,this.rows-1),this.emit("scroll",this.buffer.ydisp)}},t.prototype.eraseLine=function(e){this.eraseRight(0,e)},t.prototype.blankLine=function(e,t,r){var n=[e?this.eraseAttr():this.defAttr," ",1,32],i=[];t&&(i.isWrapped=t),r=r||this.cols;for(var o=0;o<r;o++)i[o]=n;return i},t.prototype.ch=function(e){return e?[this.eraseAttr()," ",1,32]:[this.defAttr," ",1,32]},t.prototype.is=function(e){return 0===(this.options.termName+"").indexOf(e)},t.prototype.handler=function(e){this.options.disableStdin||(this.selectionManager&&this.selectionManager.hasSelection&&this.selectionManager.clearSelection(),this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),this.emit("data",e))},t.prototype.handleTitle=function(e){this.emit("title",e)},t.prototype.index=function(){this.buffer.y++,this.buffer.y>this.buffer.scrollBottom&&(this.buffer.y--,this.scroll()),this.buffer.x>=this.cols&&this.buffer.x--},t.prototype.reverseIndex=function(){if(this.buffer.y===this.buffer.scrollTop){var e=this.buffer.scrollBottom-this.buffer.scrollTop;this.buffer.lines.shiftElements(this.buffer.y+this.buffer.ybase,e,1),this.buffer.lines.set(this.buffer.y+this.buffer.ybase,this.blankLine(!0)),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom)}else this.buffer.y--},t.prototype.reset=function(){this.options.rows=this.rows,this.options.cols=this.cols;var e=this.customKeyEventHandler,t=this.inputHandler,r=this.buffers;this.setup(),this.customKeyEventHandler=e,this.inputHandler=t,this.buffers=r,this.refresh(0,this.rows-1),this.viewport.syncScrollArea()},t.prototype.tabSet=function(){this.buffer.tabs[this.buffer.x]=!0},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype.matchColor=function(e,t,r){return function(e,t,r){var n=e<<16|t<<8|r;if(null!=L[n])return L[n];for(var i,s,a,c,l,u=1/0,f=-1,h=0;h<M.length;h++){if(i=M[h],s=i[0],a=i[1],c=i[2],0===(l=o(e,t,r,s,a,c))){f=h;break}l<u&&(u=l,f=h)}return L[n]=f}(e,t,r)},t.prototype.visualBell=function(){return"visual"===this.options.bellStyle||"both"===this.options.bellStyle},t.prototype.soundBell=function(){return"sound"===this.options.bellStyle||"both"===this.options.bellStyle},t.prototype.syncBellSound=function(){this.element&&(this.soundBell()&&this.bellAudioElement?this.bellAudioElement.setAttribute("src",this.options.bellSound):this.soundBell()?(this.bellAudioElement=E.createElement("audio"),this.bellAudioElement.setAttribute("preload","auto"),this.bellAudioElement.setAttribute("src",this.options.bellSound),this.helperContainer.appendChild(this.bellAudioElement)):this.bellAudioElement&&this.helperContainer.removeChild(this.bellAudioElement))},t}(u.EventEmitter);r.Terminal=j;var O=function(e,t,r,n){Array.isArray(e)||(e=[e]),e.forEach(function(e){e.addEventListener(t,r,n||!1)})},M=function(){for(var e=C.DEFAULT_ANSI_COLORS.map(function(e){return e=e.substring(1),[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16)]}),t=[0,95,135,175,215,255],r=0;r<216;r++)e.push([t[r/36%6|0],t[r/6%6|0],t[r%6]]);for(var n,r=0;r<24;r++)n=8+10*r,e.push([n,n,n]);return e}(),L={}},{"./Buffer":331,"./BufferSet":332,"./CompositionHelper":335,"./EscapeSequences":336,"./EventEmitter":337,"./InputHandler":338,"./Linkifier":339,"./Parser":340,"./SelectionManager":341,"./Viewport":345,"./handlers/Clipboard":348,"./input/MouseZoneManager":349,"./renderer/CharAtlas":351,"./renderer/ColorManager":352,"./renderer/Renderer":356,"./utils/Browser":360,"./utils/CharMeasure":361,"./utils/MouseHelper":364,"./utils/Sounds":365}],344:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});!function(e){e.HOVER="linkhover",e.TOOLTIP="linktooltip",e.LEAVE="linkleave"}(r.LinkHoverEventTypes||(r.LinkHoverEventTypes={}))},{}],345:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e,t,r,n){var i=this;this.terminal=e,this.viewportElement=t,this.scrollArea=r,this.charMeasure=n,this.currentRowHeight=0,this.lastRecordedBufferLength=0,this.lastRecordedViewportHeight=0,this.lastRecordedBufferHeight=0,this.viewportElement.addEventListener("scroll",this.onScroll.bind(this)),setTimeout(function(){return i.syncScrollArea()},0)}return e.prototype.onThemeChanged=function(e){this.viewportElement.style.backgroundColor=e.background},e.prototype.refresh=function(){if(this.charMeasure.height>0){this.currentRowHeight=this.terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio,this.lastRecordedViewportHeight!==this.terminal.renderer.dimensions.canvasHeight&&(this.lastRecordedViewportHeight=this.terminal.renderer.dimensions.canvasHeight,this.viewportElement.style.height=this.lastRecordedViewportHeight+"px");var e=Math.round(this.currentRowHeight*this.lastRecordedBufferLength);this.lastRecordedBufferHeight!==e&&(this.lastRecordedBufferHeight=e,this.scrollArea.style.height=this.lastRecordedBufferHeight+"px")}},e.prototype.syncScrollArea=function(){this.lastRecordedBufferLength!==this.terminal.buffer.lines.length?(this.lastRecordedBufferLength=this.terminal.buffer.lines.length,this.refresh()):this.lastRecordedViewportHeight!==this.terminal.renderer.dimensions.canvasHeight?this.refresh():this.terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio!==this.currentRowHeight&&this.refresh();var e=this.terminal.buffer.ydisp*this.currentRowHeight;this.viewportElement.scrollTop!==e&&(this.viewportElement.scrollTop=e)},e.prototype.onScroll=function(e){var t=Math.round(this.viewportElement.scrollTop/this.currentRowHeight)-this.terminal.buffer.ydisp;this.terminal.scrollLines(t,!0)},e.prototype.onWheel=function(e){if(0!==e.deltaY){var t=1;e.deltaMode===WheelEvent.DOM_DELTA_LINE?t=this.currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t=this.currentRowHeight*this.terminal.rows),this.viewportElement.scrollTop+=e.deltaY*t,e.preventDefault()}},e.prototype.onTouchStart=function(e){this.lastTouchY=e.touches[0].pageY},e.prototype.onTouchMove=function(e){var t=this.lastTouchY-e.touches[0].pageY;this.lastTouchY=e.touches[0].pageY,0!==t&&(this.viewportElement.scrollTop+=t,e.preventDefault())},e}();r.Viewport=n},{}],346:[function(e,t,r){"use strict";function n(e){if(!e.element.parentElement)return null;var t=window.getComputedStyle(e.element.parentElement),r=parseInt(t.getPropertyValue("height")),n=Math.max(0,parseInt(t.getPropertyValue("width"))-17),i=window.getComputedStyle(e.element),o=r-(parseInt(i.getPropertyValue("padding-top"))+parseInt(i.getPropertyValue("padding-bottom"))),s=n-(parseInt(i.getPropertyValue("padding-right"))+parseInt(i.getPropertyValue("padding-left")));return{cols:Math.floor(s/e.renderer.dimensions.actualCellWidth),rows:Math.floor(o/e.renderer.dimensions.actualCellHeight)}}function i(e){var t=n(e);t&&(e.rows===t.rows&&e.cols===t.cols||(e.renderer.clear(),e.resize(t.cols,t.rows)))}Object.defineProperty(r,"__esModule",{value:!0}),r.proposeGeometry=n,r.fit=i,r.apply=function(e){e.prototype.proposeGeometry=function(){return n(this)},e.prototype.fit=function(){return i(this)}}},{}],347:[function(e,t,r){"use strict";function n(e){["Windows","Win16","Win32","WinCE"].indexOf(navigator.platform)>=0&&e.on("linefeed",function(){if(32!==e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)[e.cols-1][3]){e.buffer.lines.get(e.buffer.ybase+e.buffer.y).isWrapped=!0}})}Object.defineProperty(r,"__esModule",{value:!0}),r.winptyCompatInit=n,r.apply=function(e){e.prototype.winptyCompatInit=function(){n(this)}}},{}],348:[function(e,t,r){"use strict";function n(e,t){return t?e.replace(/\r?\n/g,"\r"):e}function i(e,t){return t?"\e[200~"+e+"\e[201~":e}function o(e,t){t.style.position="fixed",t.style.width="20px",t.style.height="20px",t.style.left=e.clientX-10+"px",t.style.top=e.clientY-10+"px",t.style.zIndex="1000",t.focus(),setTimeout(function(){t.style.position=null,t.style.width=null,t.style.height=null,t.style.left=null,t.style.top=null,t.style.zIndex=null},4)}Object.defineProperty(r,"__esModule",{value:!0}),r.prepareTextForTerminal=n,r.bracketTextForPaste=i,r.copyHandler=function(e,t,r){t.browser.isMSIE?window.clipboardData.setData("Text",r.selectionText):e.clipboardData.setData("text/plain",r.selectionText),e.preventDefault()},r.pasteHandler=function(e,t){e.stopPropagation();var r=function(r){r=i(r=n(r,t.browser.isMSWindows),t.bracketedPasteMode),t.handler(r),t.textarea.value="",t.emit("paste",r),t.cancel(e)};t.browser.isMSIE?window.clipboardData&&r(window.clipboardData.getData("Text")):e.clipboardData&&r(e.clipboardData.getData("text/plain"))},r.moveTextAreaUnderMouseCursor=o,r.rightClickHandler=function(e,t,r){o(e,t),t.value=r.selectionText,t.select()}},{}],349:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e){var t=this;this._terminal=e,this._zones=[],this._areZonesActive=!1,this._tooltipTimeout=null,this._currentZone=null,this._lastHoverCoords=[null,null],this._terminal.element.addEventListener("mousedown",function(e){return t._onMouseDown(e)}),this._mouseMoveListener=function(e){return t._onMouseMove(e)},this._clickListener=function(e){return t._onClick(e)}}return e.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},e.prototype.clearAll=function(e,t){if(0!==this._zones.length){t||(e=0,t=this._terminal.rows-1);for(var r=0;r<this._zones.length;r++){var n=this._zones[r];n.y>e&&n.y<=t+1&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=null),this._zones.splice(r--,1))}0===this._zones.length&&this._deactivate()}},e.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._terminal.element.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.addEventListener("click",this._clickListener))},e.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._terminal.element.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.removeEventListener("click",this._clickListener))},e.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},e.prototype._onHover=function(e){var t=this,r=this._findZoneEventAt(e);r!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=null,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),r&&(this._currentZone=r,r.hoverCallback&&r.hoverCallback(e),this._tooltipTimeout=setTimeout(function(){return t._onTooltip(e)},500)))},e.prototype._onTooltip=function(e){this._tooltipTimeout=null;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},e.prototype._onMouseDown=function(e){if(this._areZonesActive){this._findZoneEventAt(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},e.prototype._onClick=function(e){var t=this._findZoneEventAt(e);t&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},e.prototype._findZoneEventAt=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.element,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows);if(!t)return null;for(var r=0;r<this._zones.length;r++){var n=this._zones[r];if(n.y===t[1]&&n.x1<=t[0]&&n.x2>t[0])return n}return null},e}();r.MouseZoneManager=n;var i=function(){return function(e,t,r,n,i,o,s){this.x1=e,this.x2=t,this.y=r,this.clickCallback=n,this.hoverCallback=i,this.tooltipCallback=o,this.leaveCallback=s}}();r.MouseZone=i},{}],350:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./CharAtlas"),i=e("../Buffer");r.INVERTED_DEFAULT_COLOR=-1;var o=function(){function e(e,t,r,n,i){this._alpha=n,this._colors=i,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._canvas=document.createElement("canvas"),this._canvas.id="xterm-"+t+"-layer",this._canvas.style.zIndex=r.toString(),this._ctx=this._canvas.getContext("2d",{alpha:n}),this._ctx.scale(window.devicePixelRatio,window.devicePixelRatio),n||this.clearAll(),e.appendChild(this._canvas)}return e.prototype.onOptionsChanged=function(e){},e.prototype.onBlur=function(e){},e.prototype.onFocus=function(e){},e.prototype.onCursorMove=function(e){},e.prototype.onGridChanged=function(e,t,r){},e.prototype.onSelectionChanged=function(e,t,r){},e.prototype.onThemeChanged=function(e,t){this._refreshCharAtlas(e,t)},e.prototype._refreshCharAtlas=function(e,t){var r=this;if(!(this._scaledCharWidth<=0&&this._scaledCharHeight<=0)){this._charAtlas=null;var i=n.acquireCharAtlas(e,this._colors,this._scaledCharWidth,this._scaledCharHeight);i instanceof HTMLCanvasElement?this._charAtlas=i:i.then(function(e){return r._charAtlas=e})}},e.prototype.resize=function(e,t,r){this._scaledCellWidth=t.scaledCellWidth,this._scaledCellHeight=t.scaledCellHeight,this._scaledCharWidth=t.scaledCharWidth,this._scaledCharHeight=t.scaledCharHeight,this._scaledCharLeft=t.scaledCharLeft,this._scaledCharTop=t.scaledCharTop,this._canvas.width=t.scaledCanvasWidth,this._canvas.height=t.scaledCanvasHeight,this._canvas.style.width=t.canvasWidth+"px",this._canvas.style.height=t.canvasHeight+"px",this._alpha||this.clearAll(),r&&this._refreshCharAtlas(e,this._colors)},e.prototype.fillCells=function(e,t,r,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight)},e.prototype.fillBottomLineAtCells=function(e,t,r){void 0===r&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},e.prototype.fillLeftLineAtCell=function(e,t){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio,this._scaledCellHeight)},e.prototype.strokeRectAtCell=function(e,t,r,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},e.prototype.clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype.clearCells=function(e,t,r,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight))},e.prototype.fillCharTrueColor=function(e,t,r,n){this._ctx.font=e.options.fontSize*window.devicePixelRatio+"px "+e.options.fontFamily,this._ctx.textBaseline="top",this._clipRow(e,n),this._ctx.fillText(t[i.CHAR_DATA_CHAR_INDEX],r*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop)},e.prototype.drawChar=function(e,t,r,i,o,s,a,c,l,u){var f=0;a<256?f=a+2:l&&e.options.enableBold&&(f=1);var h=r<256,_=f>1&&a<16&&(a<8||l),p=a>=256,d=c>=256;if(this._charAtlas&&h&&(_||p)&&d){var m=this._scaledCharWidth+n.CHAR_ATLAS_CELL_SPACING,y=this._scaledCharHeight+n.CHAR_ATLAS_CELL_SPACING;u&&(this._ctx.globalAlpha=.5),l&&!e.options.enableBold&&f>1&&(f-=8),this._ctx.drawImage(this._charAtlas,r*m,f*y,m,this._scaledCharHeight,o*this._scaledCellWidth+this._scaledCharLeft,s*this._scaledCellHeight+this._scaledCharTop,m,this._scaledCharHeight)}else this._drawUncachedChar(e,t,i,a,o,s,l,u)},e.prototype._drawUncachedChar=function(e,t,n,i,o,s,a,c){this._ctx.save(),this._ctx.font=e.options.fontSize*window.devicePixelRatio+"px "+e.options.fontFamily,a&&e.options.enableBold&&(this._ctx.font="bold "+this._ctx.font),this._ctx.textBaseline="top",i===r.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background:this._ctx.fillStyle=i<256?this._colors.ansi[i]:this._colors.foreground,this._clipRow(e,s),c&&(this._ctx.globalAlpha=.5),this._ctx.fillText(t,o*this._scaledCellWidth+this._scaledCharLeft,s*this._scaledCellHeight+this._scaledCharTop),this._ctx.restore()},e.prototype._clipRow=function(e,t){this._ctx.beginPath(),this._ctx.rect(0,t*this._scaledCellHeight,e.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e}();r.BaseRenderLayer=o},{"../Buffer":331,"./CharAtlas":351}],351:[function(e,t,r){"use strict";function n(e,t){for(var r=0;r<e.colors.ansi.length;r++)if(e.colors.ansi[r]!==t.colors.ansi[r])return!1;return e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background}Object.defineProperty(r,"__esModule",{value:!0});var i=e("../utils/Browser");r.CHAR_ATLAS_CELL_SPACING=1;var o=[];r.acquireCharAtlas=function(e,t,r,i){for(var a=function(e,t,r,n){var i={foreground:n.foreground,background:n.background,cursor:null,cursorAccent:null,selection:null,ansi:n.ansi.slice(0,16)};return{scaledCharWidth:e,scaledCharHeight:t,fontFamily:r.options.fontFamily,fontSize:r.options.fontSize,colors:i}}(r,i,e,t),c=0;c<o.length;c++){var l=(u=o[c]).ownedBy.indexOf(e);if(l>=0){if(n(u.config,a))return u.bitmap;1===u.ownedBy.length?o.splice(c,1):u.ownedBy.splice(l,1);break}}for(c=0;c<o.length;c++){var u=o[c];if(n(u.config,a))return u.ownedBy.push(e),u.bitmap}var f={bitmap:s.generate(r,i,e.options.fontSize,e.options.fontFamily,t.background,t.foreground,t.ansi),config:a,ownedBy:[e]};return o.push(f),f.bitmap};var s;r.initialize=function(e){s||(s=new a(e))};var a=function(){function e(e){this._document=e,this._canvas=this._document.createElement("canvas"),this._ctx=this._canvas.getContext("2d",{alpha:!1}),this._ctx.scale(window.devicePixelRatio,window.devicePixelRatio)}return e.prototype.generate=function(e,t,n,o,s,a,c){var l=e+r.CHAR_ATLAS_CELL_SPACING,u=t+r.CHAR_ATLAS_CELL_SPACING;this._canvas.width=255*l,this._canvas.height=18*u,this._ctx.fillStyle=s,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height),this._ctx.save(),this._ctx.fillStyle=a,this._ctx.font=n*window.devicePixelRatio+"px "+o,this._ctx.textBaseline="top";for(_=0;_<256;_++)this._ctx.save(),this._ctx.beginPath(),this._ctx.rect(_*l,0,l,u),this._ctx.clip(),this._ctx.fillText(String.fromCharCode(_),_*l,0),this._ctx.restore();this._ctx.save(),this._ctx.font="bold "+this._ctx.font;for(_=0;_<256;_++)this._ctx.save(),this._ctx.beginPath(),this._ctx.rect(_*l,u,l,u),this._ctx.clip(),this._ctx.fillText(String.fromCharCode(_),_*l,u),this._ctx.restore();this._ctx.restore(),this._ctx.font=n*window.devicePixelRatio+"px "+o;for(var f=0;f<16;f++){8===f&&(this._ctx.font="bold "+this._ctx.font);for(var h=(f+2)*u,_=0;_<256;_++)this._ctx.save(),this._ctx.beginPath(),this._ctx.rect(_*l,h,l,u),this._ctx.clip(),this._ctx.fillStyle=c[f],this._ctx.fillText(String.fromCharCode(_),_*l,h),this._ctx.restore()}if(this._ctx.restore(),!("createImageBitmap"in window)||i.isFirefox){var p=this._canvas;return this._canvas=this._document.createElement("canvas"),this._ctx=this._canvas.getContext("2d"),this._ctx.scale(window.devicePixelRatio,window.devicePixelRatio),p}var d=this._ctx.getImageData(0,0,this._canvas.width,this._canvas.height),m=parseInt(s.substr(1,2),16),y=parseInt(s.substr(3,2),16),b=parseInt(s.substr(5,2),16);this._clearColor(d,m,y,b);var v=window.createImageBitmap(d);return this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),v},e.prototype._clearColor=function(e,t,r,n){for(var i=0;i<e.data.length;i+=4)e.data[i]===t&&e.data[i+1]===r&&e.data[i+2]===n&&(e.data[i+3]=0)},e}()},{"../utils/Browser":360}],352:[function(e,t,r){"use strict";function n(e){var t=e.toString(16);return t.length<2?"0"+t:t}Object.defineProperty(r,"__esModule",{value:!0});var i="#ffffff",o="#000000",s="#ffffff",a="#000000",c="rgba(255, 255, 255, 0.3)";r.DEFAULT_ANSI_COLORS=["#2e3436","#cc0000","#4e9a06","#c4a000","#3465a4","#75507b","#06989a","#d3d7cf","#555753","#ef2929","#8ae234","#fce94f","#729fcf","#ad7fa8","#34e2e2","#eeeeec"];var l=function(){function e(){this.colors={foreground:i,background:o,cursor:s,cursorAccent:a,selection:c,ansi:function(e){for(var t=e.slice(),r=[0,95,135,175,215,255],i=0;i<216;i++){var o=n(r[i/36%6|0]),s=n(r[i/6%6|0]),a=n(r[i%6]);t.push("#"+o+s+a)}for(i=0;i<24;i++){var c=n(8+10*i);t.push("#"+c+c+c)}return t}(r.DEFAULT_ANSI_COLORS)}}return e.prototype.setTheme=function(e){this.colors.foreground=e.foreground||i,this.colors.background=this._validateColor(e.background,o),this.colors.cursor=e.cursor||s,this.colors.cursorAccent=e.cursorAccent||a,this.colors.selection=e.selection||c,this.colors.ansi[0]=e.black||r.DEFAULT_ANSI_COLORS[0],this.colors.ansi[1]=e.red||r.DEFAULT_ANSI_COLORS[1],this.colors.ansi[2]=e.green||r.DEFAULT_ANSI_COLORS[2],this.colors.ansi[3]=e.yellow||r.DEFAULT_ANSI_COLORS[3],this.colors.ansi[4]=e.blue||r.DEFAULT_ANSI_COLORS[4],this.colors.ansi[5]=e.magenta||r.DEFAULT_ANSI_COLORS[5],this.colors.ansi[6]=e.cyan||r.DEFAULT_ANSI_COLORS[6],this.colors.ansi[7]=e.white||r.DEFAULT_ANSI_COLORS[7],this.colors.ansi[8]=e.brightBlack||r.DEFAULT_ANSI_COLORS[8],this.colors.ansi[9]=e.brightRed||r.DEFAULT_ANSI_COLORS[9],this.colors.ansi[10]=e.brightGreen||r.DEFAULT_ANSI_COLORS[10],this.colors.ansi[11]=e.brightYellow||r.DEFAULT_ANSI_COLORS[11],this.colors.ansi[12]=e.brightBlue||r.DEFAULT_ANSI_COLORS[12],this.colors.ansi[13]=e.brightMagenta||r.DEFAULT_ANSI_COLORS[13],this.colors.ansi[14]=e.brightCyan||r.DEFAULT_ANSI_COLORS[14],this.colors.ansi[15]=e.brightWhite||r.DEFAULT_ANSI_COLORS[15]},e.prototype._validateColor=function(e,t){if(!e)return t;if(7===e.length&&"#"===e.charAt(0))return e;if(4===e.length&&"#"===e.charAt(0)){var r=e.charAt(1),n=e.charAt(2),i=e.charAt(3);return"#"+r+r+n+n+i+i}return t},e}();r.ColorManager=l},{}],353:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Buffer"),o=function(e){function t(t,r,n){var i=e.call(this,t,"cursor",r,!0,n)||this;return i._state={x:null,y:null,isFocused:null,style:null,width:null},i._cursorRenderers={bar:i._renderBarCursor.bind(i),block:i._renderBlockCursor.bind(i),underline:i._renderUnderlineCursor.bind(i)},i}return n(t,e),t.prototype.resize=function(t,r,n){e.prototype.resize.call(this,t,r,n),this._state={x:null,y:null,isFocused:null,style:null,width:null}},t.prototype.reset=function(e){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null,this.onOptionsChanged(e))},t.prototype.onBlur=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onFocus=function(e){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume(e):e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onOptionsChanged=function(e){var t=this;e.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new s(e,function(){t._render(e,!0)})):(this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null),e.refresh(e.buffer.y,e.buffer.y))},t.prototype.onCursorMove=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation(e)},t.prototype.onGridChanged=function(e,t,r){this._cursorBlinkStateManager&&!this._cursorBlinkStateManager.isPaused||this._render(e,!1)},t.prototype._render=function(e,t){if(e.cursorState&&!e.cursorHidden){var r=e.buffer.ybase+e.buffer.y,n=r-e.buffer.ydisp;if(n<0||n>=e.rows)this._clearCursor();else{var o=e.buffer.lines.get(r)[e.buffer.x];if(o){if(!e.isFocused)return this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor,this._renderBlurCursor(e,e.buffer.x,n,o),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=n,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,void(this._state.width=o[i.CHAR_DATA_WIDTH_INDEX]);if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e.buffer.x&&this._state.y===n&&this._state.isFocused===e.isFocused&&this._state.style===e.options.cursorStyle&&this._state.width===o[i.CHAR_DATA_WIDTH_INDEX])return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[e.options.cursorStyle||"block"](e,e.buffer.x,n,o),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=n,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,this._state.width=o[i.CHAR_DATA_WIDTH_INDEX]}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this.clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:null,y:null,isFocused:null,style:null,width:null})},t.prototype._renderBarCursor=function(e,t,r,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor,this.fillLeftLineAtCell(t,r),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,r,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor,this.fillCells(t,r,n[i.CHAR_DATA_WIDTH_INDEX],1),this._ctx.fillStyle=this._colors.cursorAccent,this.fillCharTrueColor(e,n,t,r),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,r,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor,this.fillBottomLineAtCells(t,r),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,r,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor,this.strokeRectAtCell(t,r,n[i.CHAR_DATA_WIDTH_INDEX],1),this._ctx.restore()},t}(e("./BaseRenderLayer").BaseRenderLayer);r.CursorRenderLayer=o;var s=function(){function e(e,t){this.renderCallback=t,this.isCursorVisible=!0,e.isFocused&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.restartBlinkAnimation=function(e){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t.renderCallback(),t._animationFrame=null})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=null,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t.renderCallback(),t._animationFrame=null}),t._blinkInterval=setInterval(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=null,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t.renderCallback(),t._animationFrame=null})},600)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.resume=function(e){this._animationTimeRestarted=null,this._restartInterval(),this.restartBlinkAnimation(e)},e}()},{"../Buffer":331,"./BaseRenderLayer":350}],354:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var r=0;r<e;r++){this.cache.length<=r&&this.cache.push([]);for(var n=this.cache[r].length;n<t;n++)this.cache[r].push(null);this.cache[r].length=t}this.cache.length=e},e.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=null},e}();r.GridCache=n},{}],355:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("./BaseRenderLayer"),o=e("../Types"),s=function(e){function t(t,r,n,i){var s=e.call(this,t,"link",r,!0,n)||this;return s._state=null,i.linkifier.on(o.LinkHoverEventTypes.HOVER,function(e){return s._onLinkHover(e)}),i.linkifier.on(o.LinkHoverEventTypes.LEAVE,function(e){return s._onLinkLeave(e)}),s}return n(t,e),t.prototype.resize=function(t,r,n){e.prototype.resize.call(this,t,r,n),this._state=null},t.prototype.reset=function(e){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){this._state&&(this.clearCells(this._state.x,this._state.y,this._state.length,1),this._state=null)},t.prototype._onLinkHover=function(e){this._ctx.fillStyle=this._colors.foreground,this.fillBottomLineAtCells(e.x,e.y,e.length),this._state=e},t.prototype._onLinkLeave=function(e){this._clearCurrentLink()},t}(i.BaseRenderLayer);r.LinkRenderLayer=s},{"../Types":344,"./BaseRenderLayer":350}],356:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("./TextRenderLayer"),o=e("./SelectionRenderLayer"),s=e("./CursorRenderLayer"),a=e("./ColorManager"),c=e("./LinkRenderLayer"),l=function(e){function t(t,r){var n=e.call(this)||this;return n._terminal=t,n._refreshRowsQueue=[],n._refreshAnimationFrame=null,n.colorManager=new a.ColorManager,r&&n.colorManager.setTheme(r),n._renderLayers=[new i.TextRenderLayer(n._terminal.element,0,n.colorManager.colors),new o.SelectionRenderLayer(n._terminal.element,1,n.colorManager.colors),new c.LinkRenderLayer(n._terminal.element,2,n.colorManager.colors,n._terminal),new s.CursorRenderLayer(n._terminal.element,3,n.colorManager.colors)],n.dimensions={scaledCharWidth:null,scaledCharHeight:null,scaledCellWidth:null,scaledCellHeight:null,scaledCharLeft:null,scaledCharTop:null,scaledCanvasWidth:null,scaledCanvasHeight:null,canvasWidth:null,canvasHeight:null,actualCellWidth:null,actualCellHeight:null},n._devicePixelRatio=window.devicePixelRatio,n._updateDimensions(),n}return n(t,e),t.prototype.onWindowResize=function(e){this._devicePixelRatio!==e&&(this._devicePixelRatio=e,this.onResize(this._terminal.cols,this._terminal.rows,!0))},t.prototype.setTheme=function(e){var t=this;return this.colorManager.setTheme(e),this._renderLayers.forEach(function(e){e.onThemeChanged(t._terminal,t.colorManager.colors),e.reset(t._terminal)}),this._terminal.refresh(0,this._terminal.rows-1),this.colorManager.colors},t.prototype.onResize=function(e,t,r){var n=this;this._updateDimensions(),this._renderLayers.forEach(function(e){return e.resize(n._terminal,n.dimensions,r)}),this._terminal.refresh(0,this._terminal.rows-1),this.emit("resize",{width:this.dimensions.canvasWidth,height:this.dimensions.canvasHeight})},t.prototype.onCharSizeChanged=function(){this.onResize(this._terminal.cols,this._terminal.rows,!0)},t.prototype.onBlur=function(){var e=this;this._renderLayers.forEach(function(t){return t.onBlur(e._terminal)})},t.prototype.onFocus=function(){var e=this;this._renderLayers.forEach(function(t){return t.onFocus(e._terminal)})},t.prototype.onSelectionChanged=function(e,t){var r=this;this._renderLayers.forEach(function(n){return n.onSelectionChanged(r._terminal,e,t)})},t.prototype.onCursorMove=function(){var e=this;this._renderLayers.forEach(function(t){return t.onCursorMove(e._terminal)})},t.prototype.onOptionsChanged=function(){var e=this;this._renderLayers.forEach(function(t){return t.onOptionsChanged(e._terminal)})},t.prototype.clear=function(){var e=this;this._renderLayers.forEach(function(t){return t.reset(e._terminal)})},t.prototype.queueRefresh=function(e,t){this._refreshRowsQueue.push({start:e,end:t}),this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(this._refreshLoop.bind(this)))},t.prototype._refreshLoop=function(){var e,t,r=this;if(this._refreshRowsQueue.length>4)e=0,t=this._terminal.rows-1;else{e=this._refreshRowsQueue[0].start,t=this._refreshRowsQueue[0].end;for(var n=1;n<this._refreshRowsQueue.length;n++)this._refreshRowsQueue[n].start<e&&(e=this._refreshRowsQueue[n].start),this._refreshRowsQueue[n].end>t&&(t=this._refreshRowsQueue[n].end)}this._refreshRowsQueue=[],this._refreshAnimationFrame=null,e=Math.max(e,0),t=Math.min(t,this._terminal.rows-1),this._renderLayers.forEach(function(n){return n.onGridChanged(r._terminal,e,t)}),this._terminal.emit("refresh",{start:e,end:t})},t.prototype._updateDimensions=function(){this._terminal.charMeasure.width&&this._terminal.charMeasure.height&&(this.dimensions.scaledCharWidth=Math.floor(this._terminal.charMeasure.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._terminal.charMeasure.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._terminal.options.lineHeight),this.dimensions.scaledCharTop=1===this._terminal.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._terminal.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._terminal.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._terminal.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._terminal.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._terminal.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._terminal.cols)},t}(e("../EventEmitter").EventEmitter);r.Renderer=l},{"../EventEmitter":337,"./ColorManager":352,"./CursorRenderLayer":353,"./LinkRenderLayer":355,"./SelectionRenderLayer":357,"./TextRenderLayer":358}],357:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=function(e){function t(t,r,n){var i=e.call(this,t,"selection",r,!0,n)||this;return i._state={start:null,end:null},i}return n(t,e),t.prototype.resize=function(t,r,n){e.prototype.resize.call(this,t,r,n),this._state={start:null,end:null}},t.prototype.reset=function(e){this._state.start&&this._state.end&&(this._state={start:null,end:null},this.clearAll())},t.prototype.onSelectionChanged=function(e,t,r){if(this._state.start!==t&&this._state.end!==r&&(this.clearAll(),t&&r)){var n=t[1]-e.buffer.ydisp,i=r[1]-e.buffer.ydisp,o=Math.max(n,0),s=Math.min(i,e.rows-1);if(!(o>=e.rows||s<0)){var a=n===o?t[0]:0,c=o===s?r[0]:e.cols;this._ctx.fillStyle=this._colors.selection,this.fillCells(a,o,c-a,1);var l=Math.max(s-o-1,0);if(this.fillCells(0,o+1,e.cols,l),o!==s){var u=i===s?r[0]:e.cols;this.fillCells(0,s,u,1)}this._state.start=[t[0],t[1]],this._state.end=[r[0],r[1]]}}},t}(e("./BaseRenderLayer").BaseRenderLayer);r.SelectionRenderLayer=i},{"./BaseRenderLayer":350}],358:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Buffer"),o=e("./Types"),s=e("./GridCache"),a=e("./BaseRenderLayer"),c=function(e){function t(t,r,n){var i=e.call(this,t,"text",r,!1,n)||this;return i._characterOverlapCache={},i._state=new s.GridCache,i}return n(t,e),t.prototype.resize=function(t,r,n){e.prototype.resize.call(this,t,r,n);var i=t.options.fontSize*window.devicePixelRatio+"px "+t.options.fontFamily;this._characterWidth===r.scaledCharWidth&&this._characterFont===i||(this._characterWidth=r.scaledCharWidth,this._characterFont=i,this._characterOverlapCache={}),this._state.clear(),this._state.resize(t.cols,t.rows)},t.prototype.reset=function(e){this._state.clear(),this.clearAll()},t.prototype.onGridChanged=function(e,t,r){if(0!==this._state.cache.length)for(var n=t;n<=r;n++){var s=n+e.buffer.ydisp,c=e.buffer.lines.get(s);this.clearCells(0,n,e.cols,1);for(var l=0;l<e.cols;l++){var u=c[l],f=u[i.CHAR_DATA_CODE_INDEX],h=u[i.CHAR_DATA_CHAR_INDEX],_=u[i.CHAR_DATA_ATTR_INDEX],p=u[i.CHAR_DATA_WIDTH_INDEX];if(0!==p){if(32===f&&l>0){var d=c[l-1];if(this._isOverlapping(d))continue}var m=_>>18,y=511&_,b=y>=256,v=m&o.FLAGS.INVISIBLE,g=m&o.FLAGS.INVERSE;if(f&&(32!==f||!b||g)&&!v){0!==p&&this._isOverlapping(u)&&l<c.length-1&&32===c[l+1][i.CHAR_DATA_CODE_INDEX]&&(p=2);var x=_>>9&511;if(g){var w=y;y=x,256===(x=w)&&(x=a.INVERTED_DEFAULT_COLOR),257===y&&(y=a.INVERTED_DEFAULT_COLOR)}y<256&&(this._ctx.save(),this._ctx.fillStyle=y===a.INVERTED_DEFAULT_COLOR?this._colors.foreground:this._colors.ansi[y],this.fillCells(l,n,p,1),this._ctx.restore()),this._ctx.save(),m&o.FLAGS.BOLD&&(this._ctx.font="bold "+this._ctx.font,x<8&&(x+=8)),m&o.FLAGS.UNDERLINE&&(x===a.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background:this._ctx.fillStyle=x<256?this._colors.ansi[x]:this._colors.foreground,this.fillBottomLineAtCells(l,n)),this.drawChar(e,h,f,p,l,n,x,y,!!(m&o.FLAGS.BOLD),!!(m&o.FLAGS.DIM)),this._ctx.restore()}}}}},t.prototype._isOverlapping=function(e){if(1!==e[i.CHAR_DATA_WIDTH_INDEX])return!1;if(e[i.CHAR_DATA_CODE_INDEX]<256)return!1;var t=e[i.CHAR_DATA_CHAR_INDEX];if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var r=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=r,r},t.prototype._clearChar=function(e,t){var r=1,n=this._state.cache[e][t];n&&2===n[i.CHAR_DATA_WIDTH_INDEX]&&(r=2),this.clearCells(e,t,r,1)},t}(a.BaseRenderLayer);r.TextRenderLayer=c},{"../Buffer":331,"./BaseRenderLayer":350,"./GridCache":354,"./Types":359}],359:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});!function(e){e[e.BOLD=1]="BOLD",e[e.UNDERLINE=2]="UNDERLINE",e[e.BLINK=4]="BLINK",e[e.INVERSE=8]="INVERSE",e[e.INVISIBLE=16]="INVISIBLE",e[e.DIM=32]="DIM"}(r.FLAGS||(r.FLAGS={}))},{}],360:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./Generic"),i="undefined"==typeof navigator,o=i?"node":navigator.userAgent,s=i?"node":navigator.platform;r.isFirefox=!!~o.indexOf("Firefox"),r.isMSIE=!!~o.indexOf("MSIE")||!!~o.indexOf("Trident"),r.isMac=n.contains(["Macintosh","MacIntel","MacPPC","Mac68K"],s),r.isIpad="iPad"===s,r.isIphone="iPhone"===s,r.isMSWindows=n.contains(["Windows","Win16","Win32","WinCE"],s),r.isLinux=s.indexOf("Linux")>=0},{"./Generic":363}],361:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=function(e){function t(t,r){var n=e.call(this)||this;return n._document=t,n._parentElement=r,n._measureElement=n._document.createElement("span"),n._measureElement.style.position="absolute",n._measureElement.style.top="0",n._measureElement.style.left="-9999em",n._measureElement.style.lineHeight="normal",n._measureElement.textContent="W",n._measureElement.setAttribute("aria-hidden","true"),n._parentElement.appendChild(n._measureElement),n}return n(t,e),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),t.prototype.measure=function(e){this._measureElement.style.fontFamily=e.fontFamily,this._measureElement.style.fontSize=e.fontSize+"px";var t=this._measureElement.getBoundingClientRect();0!==t.width&&0!==t.height&&(this._width===t.width&&this._height===t.height||(this._width=t.width,this._height=Math.ceil(t.height),this.emit("charsizechanged")))},t}(e("../EventEmitter").EventEmitter);r.CharMeasure=i},{"../EventEmitter":337}],362:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=function(e){function t(t){var r=e.call(this)||this;return r._maxLength=t,r._array=new Array(r._maxLength),r._startIndex=0,r._length=0,r}return n(t,e),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),r=0;r<Math.min(e,this.length);r++)t[r]=this._array[this._getCyclicIndex(r)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"forEach",{get:function(){var e=this;return function(t){for(var r=e.length,n=0;n<r;n++)t(e.get(n),n)}},enumerable:!0,configurable:!0}),t.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},t.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},t.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex++,this._startIndex===this._maxLength&&(this._startIndex=0),this.emit("trim",1)):this._length++},t.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},t.prototype.splice=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t){for(i=e;i<this._length-t;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+t)];this._length-=t}if(r&&r.length){for(i=this._length-1;i>=e;i--)this._array[this._getCyclicIndex(i+r.length)]=this._array[this._getCyclicIndex(i)];for(var i=0;i<r.length;i++)this._array[this._getCyclicIndex(e+i)]=r[i];if(this._length+r.length>this.maxLength){var o=this._length+r.length-this.maxLength;this._startIndex+=o,this._length=this.maxLength,this.emit("trim",o)}else this._length+=r.length}},t.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.emit("trim",e)},t.prototype.shiftElements=function(e,t,r){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+r<0)throw new Error("Cannot shift elements in list beyond index 0");if(r>0){for(i=t-1;i>=0;i--)this.set(e+i+r,this.get(e+i));var n=e+t+r-this._length;if(n>0)for(this._length+=n;this._length>this.maxLength;)this._length--,this._startIndex++,this.emit("trim",1)}else for(var i=0;i<t;i++)this.set(e+i+r,this.get(e+i))}},t.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this.maxLength},t}(e("../EventEmitter").EventEmitter);r.CircularList=i},{"../EventEmitter":337}],363:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.contains=function(e,t){return e.indexOf(t)>=0}},{}],364:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e){this._renderer=e}return e.getCoordsRelativeToElement=function(e,t){if(null==e.pageX)return null;for(var r=t,n=e.pageX,i=e.pageY;t;)n-=t.offsetLeft,i-=t.offsetTop,t="offsetParent"in t?t.offsetParent:t.parentElement;for(t=r;t&&t!==t.ownerDocument.body;)n+=t.scrollLeft,i+=t.scrollTop,t=t.parentElement;return[n,i]},e.prototype.getCoords=function(t,r,n,i,o,s,a){if(!n.width||!n.height)return null;var c=e.getCoordsRelativeToElement(t,r);return c?(c[0]=Math.ceil((c[0]+(a?this._renderer.dimensions.actualCellWidth/2:0))/this._renderer.dimensions.actualCellWidth),c[1]=Math.ceil(c[1]/this._renderer.dimensions.actualCellHeight),c[0]=Math.min(Math.max(c[0],1),o+(a?1:0)),c[1]=Math.min(Math.max(c[1],1),s),c):null},e.prototype.getRawByteCoords=function(e,t,r,n,i,o){var s=this.getCoords(e,t,r,n,i,o),a=s[0],c=s[1];return a+=32,c+=32,{x:a,y:c}},e}();r.MouseHelper=n},{}],365:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BellSound="data:audio/wav;base64,UklGRigBAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQBAADpAFgCwAMlBZoG/wdmCcoKRAypDQ8PbRDBEQQTOxRtFYcWlBePGIUZXhoiG88bcBz7HHIdzh0WHlMeZx51HmkeUx4WHs8dah0AHXwc3hs9G4saxRnyGBIYGBcQFv8U4RPAEoYRQBACD70NWwwHC6gJOwjWBloF7gOBAhABkf8b/qv8R/ve+Xf4Ife79W/0JfPZ8Z/wde9N7ijtE+wU6xvqM+lb6H7nw+YX5mrlxuQz5Mzje+Ma49fioeKD4nXiYeJy4pHitOL04j/jn+MN5IPkFOWs5U3mDefM55/ogOl36m7rdOyE7abuyu8D8Unyj/Pg9D/2qfcb+Yn6/vuK/Qj/lAAlAg=="},{}],366:[function(e,t,r){"use strict";for(var n=t.exports,i=[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102],o={},s=0;s<i.length;s++)o[i[s]]=s;n.ENCODELIB={pack_u16_be:function(e){if(e>65535)throw"Number cannot exceed 16 bits: "+e;return[e>>8,255&e]},pack_u32_le:function(e){var t=e/65536;return[255&e,(65535&e)>>8,255&t,t>>8]},unpack_u16_be:function(e){return(e[0]<<8)+e[1]},unpack_u32_le:function(e){return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]},octets_to_hex:function(e){for(var t=[],r=0;r<e.length;r++)t.push(i[e[r]>>4],i[15&e[r]]);return t},parse_hex_octets:function(e){for(var t=new Array(e.length/2),r=0;r<t.length;r++)t[r]=(o[e[2*r]]<<4)+o[e[1+2*r]];return t}}},{}],367:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){function e(){n(this,e)}return i(e,[{key:"encode",value:function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return new Uint8Array(t)}}]),e}(),s=function(){function e(){n(this,e)}return i(e,[{key:"decode",value:function(e){return decodeURIComponent(escape(String.fromCharCode.apply(String,e)))}}]),e}();t.exports.Text={Encoder:"undefined"!=typeof TextEncoder?TextEncoder:o,Decoder:"undefined"!=typeof TextDecoder?TextDecoder:s}},{}],368:[function(e,t,r){"use strict";function n(e,t){return a||function(){a=new Array(256);for(var e=c-8,t=0;t<256;t++){for(var r=t<<e&u,n=0;n<8;n++)0!=(r&f)?(r<<=1,r^=l):r<<=1;a[t]=r&u}}(),a[t>>8&255]^(255&t)<<8^e}function i(e,t){if(e.join()!==t.join())throw new s.Error("crc",t,e)}var o=e("crc-32"),s=t.exports;Object.assign(s,e("./zerror"),e("./encode"));var a,c=16,l=4129,u=65535,f=1<<c-1;s.CRC={crc16:function(e){for(var t=e[0],r=1;r<e.length;r++)t=n(e[r],t);return t=n(0,n(0,t)),s.ENCODELIB.pack_u16_be(t)},crc32:function(e){return s.ENCODELIB.pack_u32_le(o.buf(e)>>>0)},verify16:function(e,t){return i(this.crc16(e),t)},verify32:function(e,t){try{i(this.crc32(e),t)}catch(t){throw t.input=e.slice(0),t}}}},{"./encode":366,"./zerror":370,"crc-32":328}],369:[function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=t.exports;Object.assign(i,e("./zmlib"));var o,s,a=i.ZMLIB.ZDLE;i.ZDLE=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._config={},t&&this.set_escape_ctrl_chars(!!t.escape_ctrl_chars)}return n(e,[{key:"set_escape_ctrl_chars",value:function(e){if("boolean"!=typeof e)throw"need boolean!";e!==this._config.escape_ctrl_chars&&(this._config.escape_ctrl_chars=e,this._setup_zdle_table())}},{key:"escapes_ctrl_chars",value:function(){return!!this._config.escape_ctrl_chars}},{key:"encode",value:function(e){if(!this._zdle_table)throw"No ZDLE encode table configured!";var t=this._zdle_table,r=this._lastcode,n=new ArrayBuffer(2*e.length),i=new Uint8Array(n),c=this._config.escape_ctrl_chars,l=0;for(o=0;o<e.length;o++){if(!(s=t[e[o]]))throw console.trace(),console.error("bad encode() call:",JSON.stringify(e)),this._lastcode=r,"Invalid octet: "+e[o];r=e[o],1===s||(c||2===s||64==(127&r))&&(i[l]=a,l++,r^=64),i[l]=r,l++}return this._lastcode=r,e.splice(0),e.push.apply(e,new Uint8Array(n,0,l)),e}},{key:"_setup_zdle_table",value:function(){for(var e=new Array(256),t=0;t<e.length;t++)if(96&t)e[t]=1;else switch(t){case a:case i.ZMLIB.XOFF:case i.ZMLIB.XON:case 128|i.ZMLIB.XOFF:case 128|i.ZMLIB.XON:e[t]=2;break;case 16:case 144:e[t]=this._config.turbo_escape?1:2;break;case 13:case 141:e[t]=this._config.escape_ctrl_chars?2:this._config.turbo_escape?1:3;break;default:e[t]=this._config.escape_ctrl_chars?2:1}this._zdle_table=e}}],[{key:"decode",value:function(e){for(var t=e.length-1;t>=0;t--)e[t]===a&&e.splice(t,2,e[t+1]-64);return e}},{key:"splice",value:function(t,r,n){var i=0;r||(r=0);for(var o=r;o<t.length&&i<n;o++)i++,t[o]===a&&o++;if(i===n){if(t.length===o-1)return;return t.splice(0,r),e.decode(t.splice(0,o-r))}}}]),e}()},{"./zmlib":372}],370:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i={aborted:"Session aborted",peer_aborted:"Peer aborted session",already_aborted:"Session already aborted",crc:function(e,t){return this.got=e.slice(0),this.expected=t.slice(0),"CRC check failed! (got: "+e.join()+"; expected: "+t.join()+")"},validation:function(e){return e}};t.exports.Error=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=function(e){var t=i[e];switch(void 0===t?"undefined":n(t)){case"string":return t;case"function":var r=[].slice.call(arguments).slice(1);return t.apply(this,r)}return null}.apply(r,arguments);return o?(r.type=e,r.message=o):r.message=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}()},{}],371:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){var t=z[e];if("string"==typeof t)throw"Received unsupported header: "+t;return function(e){if(e.prototype instanceof P)return new e(0);return new e([])}(t)}function a(e){var t=h.ZDLE.splice(e,g.length,7);return t&&c(t)}function c(e){h.CRC.verify16(e.slice(0,5),e.slice(5));var t=s(e[0]);return t._bytes4=e.slice(1,5),t}function l(e){var t=h.ZDLE.splice(e,x.length,9);if(t){h.CRC.verify32(t.slice(0,5),t.slice(5));var r=s(t[0]);return r._bytes4=t.slice(1,5),r}}function u(e){var t=e.indexOf(138);-1===t&&(t=e.indexOf(10));var r,n;{if(-1!==t){if(n=e.splice(0,t),e.shift(),19===n.length){var i=n.pop();13!==i&&141!==i&&(r="Invalid hex header: (CR/)LF doesn’t have CR!")}else 18!==n.length&&(r="Invalid hex header: invalid number of bytes before LF!");if(r)throw r+=" ("+n.length+" bytes: "+n.join()+")";n.splice(0,4);return c(h.ENCODELIB.parse_hex_octets(n))}e.length>11&&(r="Invalid hex header - no LF detected within 12 bytes!")}}var f=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),h=t.exports;Object.assign(h,e("./encode"),e("./zdle"),e("./zmlib"),e("./zcrc"),e("./zerror"));var _="*".charCodeAt(0),p="A".charCodeAt(0),d="B".charCodeAt(0),m="C".charCodeAt(0),y=[13,10],b=y.slice(0).concat([h.ZMLIB.XON]),v=[_,_,h.ZMLIB.ZDLE,d],g=[_,h.ZMLIB.ZDLE,p],x=[_,h.ZMLIB.ZDLE,m];h.Header=function(){function e(){o(this,e),this._bytes4||(this._bytes4=[0,0,0,0])}return f(e,[{key:"to_hex",value:function(){var e=this._crc_bytes();return v.concat(h.ENCODELIB.octets_to_hex(e.concat(h.CRC.crc16(e))),this._hex_header_ending)}},{key:"to_binary16",value:function(e){return this._to_binary(e,g,h.CRC.crc16)}},{key:"to_binary32",value:function(e){return this._to_binary(e,x,h.CRC.crc32)}}],[{key:"trim_leading_garbage",value:function(e){var t,r,n=[];e:for(;e.length&&!r;){var i=e.indexOf(_);if(-1===i){t=!0;break e}if(n.push.apply(n,e.splice(0,i)),e.length<2)break e;if(e[1]===_)if(e.length<v.length){if(e.join()===v.slice(0,e.length).join())break e}else e[2]===v[2]&&e[3]===v[3]&&(r=u);else if(e[1]===h.ZMLIB.ZDLE){if(e.length<g.length)break e;e[2]===g[2]?r=a:e[2]===x[2]&&(r=l)}r||n.push(e.shift())}return t&&n.push.apply(n,e.splice(0)),n}},{key:"parse",value:function(e){var t;if(e[1]===_)return(t=u(e))&&[t,16];if(e[2]===p)return(t=a(e))&&[t,16];if(e[2]===m)return(t=l(e))&&[t,32];if(!(e.length<3))throw"Unrecognized/unsupported octets: "+e.join()}},{key:"build",value:function(e){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments),r=H[e];if(!r)throw"No frame class “"+e+"” is defined!";t.shift();return new(r.bind.apply(r,[null].concat(t)))}}]),f(e,[{key:"_to_binary",value:function(e,t,r){var n=this._crc_bytes();return t.concat(e.encode(n.concat(r(n))))}},{key:"_crc_bytes",value:function(){return[this.TYPENUM].concat(this._bytes4)}}]),e}(),h.Header.prototype._hex_header_ending=b;var w=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}(),C={CANFDX:1,CANOVIO:2,CANBRK:4,CANCRY:8,CANLZW:16,CANFC32:32,ESCCTL:64,ESC8:128},S=function(e){function t(e,r){o(this,t);var i=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),s=0;return r||(r=0),e.forEach(function(e){s|=function(e){if(!C[e])throw new h.Error("Invalid ZRINIT flag: "+e);return C[e]}(e)}),i._bytes4=[255&r,r>>8,0,s],i}return i(t,h.Header),f(t,[{key:"get_buffer_size",value:function(){return h.ENCODELIB.unpack_u16_be(this._bytes4.slice(0,2))||void 0}},{key:"can_full_duplex",value:function(){return!!(this._bytes4[3]&C.CANFDX)}},{key:"can_overlap_io",value:function(){return!!(this._bytes4[3]&C.CANOVIO)}},{key:"can_break",value:function(){return!!(this._bytes4[3]&C.CANBRK)}},{key:"can_fcs_32",value:function(){return!!(this._bytes4[3]&C.CANFC32)}},{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&C.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&C.ESC8)}}]),t}(),k={ESCCTL:64,ESC8:128},E=function(e){function t(e,r){o(this,t);var i=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),s=0;if(e.forEach(function(e){s|=function(e){if(!k[e])throw"Invalid ZSINIT flag: "+e;return k[e]}(e)}),i._bytes4=[0,0,0,s],r){if(r.length>31)throw"Attn sequence must be <= 31 bytes";if(r.some(function(e){return e>255}))throw"Attn sequence ("+r+") must be <256";i._data=r.concat([0])}return i}return i(t,h.Header),f(t,[{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&k.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&k.ESC8)}}]),t}(),A=function(e){function t(e){o(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e&&(r._bytes4=e.slice()),r}return i(t,h.Header),t}();A.prototype._hex_header_ending=y;var j={extended:{sparse:64},transport:[void 0,"compress","encrypt","rle"],management:[void 0,"newer_or_longer","crc","append","clobber","newer","mtime_or_length","protect","rename"],conversion:[void 0,"binary","text","resume"]},O=["extended","transport","management","conversion"],M=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),f(t,[{key:"get_options",value:function(){var e={sparse:!!(64&this._bytes4[0])},t=this._bytes4.slice(0);return O.forEach(function(r,n){if(j[r]instanceof Array)"management"===r&&(e.skip_if_absent=!!(128&t[n]),t[n]&=31),e[r]=j[r][t[n]];else for(var i in j[r])e[i]=!!(t[n]&j[r][i]),e[i]&&(t[n]^=j[r][i]);!e[r]&&t[n]&&(e[r]="unknown:"+t[n])}),e}}]),t}(),L=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}(),T=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}(),R=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}(),I=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}();R.prototype._hex_header_ending=y;for(var P=function(e){function t(e){o(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._bytes4=h.ENCODELIB.pack_u32_le(e),r}return i(t,h.Header),f(t,[{key:"get_offset",value:function(){return h.ENCODELIB.unpack_u32_le(this._bytes4)}}]),t}(),N=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,P),t}(),D=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,P),t}(),F=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,P),t}(),B=[[w,"ZRQINIT"],[S,"ZRINIT"],[E,"ZSINIT"],[A,"ZACK"],[M,"ZFILE"],[L,"ZSKIP"],void 0,[T,"ZABORT"],[R,"ZFIN"],[N,"ZRPOS"],[D,"ZDATA"],[F,"ZEOF"],[I,"ZFERR"],void 0,void 0,void 0,void 0,void 0,void 0,void 0],H={},Z=0;Z<B.length;Z++)B[Z]&&(H[B[Z][1]]=B[Z][0],Object.assign(B[Z][0].prototype,{TYPENUM:Z,NAME:B[Z][1]}));var z=[w,S,E,A,M,L,"ZNAK",T,R,N,D,F,I,"ZCRC","ZCHALLENGE","ZCOMPL","ZCAN","ZFREECNT","ZCOMMAND","ZSTDERR"];h.Header.parse_hex=u},{"./encode":366,"./zcrc":368,"./zdle":369,"./zerror":370,"./zmlib":372}],372:[function(e,t,r){"use strict";t.exports.ZMLIB={ZDLE:24,XON:17,XOFF:19,ABORT_SEQUENCE:[24,24,24,24,24],strip_ignored_bytes:function(e){for(var t=e.length-1;t>=0;t--)switch(e[t]){case 17:case 145:case 19:case 147:e.splice(t,1);continue}return e},find_subarray:function(e,t){var r,n=0;Date.now();e:for(;-1!==n&&-1!==(n=e.indexOf(t[0],n));){for(r=1;r<t.length;r++)if(e[n+r]!==t[r]){n++;continue e}return n}return-1}}},{}],373:[function(e,t,r){"use strict";Object.assign(t.exports,e("./zsentry"))},{"./zsentry":375}],374:[function(e,t,r){"use strict";function n(e){if(e.aborted())throw new i.Error("aborted")}var i=t.exports;window.Zmodem=i,Object.assign(i,e("./zmodem")),i.Browser={send_files:function(e,t,r){function i(){var t=o[l];return t?(l++,e.send_offer(t).then(function(o){return r.on_offer_response&&r.on_offer_response(t.obj,o),void 0===o?i():new Promise(function(s){var a=new FileReader;a.onerror=function(e){throw console.error("file read error",e),"File read error: "+e};var c;a.onprogress=function(i){i.target.result&&(c=new Uint8Array(i.target.result,o.get_offset()),n(e),o.send(c),r.on_progress&&r.on_progress(t.obj,o,c))},a.onload=function(a){c=new Uint8Array(a.target.result,o,c),n(e),o.end(c).then(function(){r.on_progress&&c.length&&r.on_progress(t.obj,o,c),r.on_file_complete&&r.on_file_complete(t.obj,o),s(i())})},a.readAsArrayBuffer(t.obj)})})):Promise.resolve()}r||(r={});for(var o=[],s=0,a=t.length-1;a>=0;a--){var c=t[a];s+=c.size,o[a]={obj:c,name:c.name,size:c.size,mtime:new Date(c.lastModified),files_remaining:t.length-a,bytes_remaining:s}}var l=0;return i()},save_to_disk:function(e,t){var r=new Blob(e),n=URL.createObjectURL(r),i=document.createElement("a");i.style.display="none",i.href=n,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}},{"./zmodem":373}],375:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=t.exports;Object.assign(o,e("./zmlib"),e("./zsession"));var s=[42,42,24,66,48],a=["to_terminal","on_detect","on_retract","sender"],c=function(){function e(t,r,i,o){n(this,e),this._confirmer=r,this._denier=i,this._is_valid=o,this._session_type=t}return i(e,[{key:"confirm",value:function(){return this._confirmer.apply(this,arguments)}},{key:"deny",value:function(){return this._denier.apply(this,arguments)}},{key:"is_valid",value:function(){return this._is_valid.apply(this,arguments)}},{key:"get_session_role",value:function(){return this._session_type}}]),e}();o.Sentry=function(){function e(t){if(n(this,e),!t)throw"Need options!";var r=this;a.forEach(function(e){if(!t[e])throw"Need “"+e+"”!";r["_"+e]=t[e]}),this._cache=[]}return i(e,[{key:"_after_session_end",value:function(){this._zsession=null}},{key:"consume",value:function(e){if(e instanceof Array||(e=Array.prototype.slice.call(new Uint8Array(e))),this._zsession){var t=this._zsession;if(t.consume(e),!t.has_ended())return;e="receive"===t.type?t.get_trailing_bytes():[]}var r=this._parse(e),n=e;if(r){!!this._parsed_session&&(this._parsed_session.type===r.type&&(n=[]),this._on_retract()),this._parsed_session=r;var i=this;this._on_detect(new c(r.type,function(){if(!this.is_valid())throw"Stale ZMODEM session!";return r.on("garbage",i._to_terminal),r.on("session_end",i._after_session_end.bind(i)),r.set_sender(i._sender),delete i._parsed_session,i._zsession=r},this._send_abort.bind(this),function(){return i._parsed_session===r}))}else{var o=this._parsed_session;this._parsed_session=null,o&&(1===n.length&&67===n[0]&&this._send_abort(),this._on_retract())}this._to_terminal(n)}},{key:"get_confirmed_session",value:function(){return this._zsession||null}},{key:"_send_abort",value:function(){this._sender(o.ZMLIB.ABORT_SEQUENCE)}},{key:"_parse",value:function(e){var t=this._cache;for(t.push.apply(t,e);;){var r=o.ZMLIB.find_subarray(t,s);if(-1===r)break;t.splice(0,r);var n=void 0;try{n=o.Session.parse(t)}catch(e){}if(!n)break;return 1===t.length&&t[0]===o.ZMLIB.XON&&t.shift(),t.length?null:n}return t.splice(21),null}}]),e}()},{"./zmlib":372,"./zsession":376}],376:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(n)},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=t.exports;Object.assign(c,e("./encode"),e("./text"),e("./zdle"),e("./zmlib"),e("./zheader"),e("./zsubpacket"),e("./zvalidation"),e("./zerror"));var l=["CANFDX","CANOVIO","CANFC32"],u=[79,79],f=c.ZMLIB.ABORT_SEQUENCE,h=function(){function e(){o(this,e),this._on_evt={},this._evt_once_index={}}return a(e,[{key:"_Add_event",value:function(e){this._on_evt[e]=[],this._evt_once_index[e]=[]}},{key:"_get_evt_queue",value:function(e){if(!this._on_evt[e])throw"Bad event: "+e;return this._on_evt[e]}},{key:"on",value:function(e,t){return this._get_evt_queue(e).push(t),this}},{key:"off",value:function(e,t){var r=this._get_evt_queue(e);if(t){var n=r.indexOf(t);if(-1===n)throw"“"+t+"” is not in the “"+e+"” queue.";r.splice(n,1)}else r.pop();return this}},{key:"_Happen",value:function(e){var t=this._get_evt_queue(e),r=Array.apply(null,arguments);r.shift();var n=this;return t.forEach(function(e){e.apply(n,r)}),t.length}}]),e}();c.Session=function(e){function t(){o(this,t);var e=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._config={},e._input_buffer=[],e._Add_event("receive"),e._Add_event("garbage"),e._Add_event("session_end"),e}return i(t,h),a(t,[{key:"set_sender",value:function(e){return this._sender=e,this}},{key:"has_ended",value:function(){return this._has_ended()}},{key:"consume",value:function(e){if(this._before_consume(e),this._aborted)throw new c.Error("already_aborted");e.length&&(this._strip_and_enqueue_input(e),this._check_for_abort_sequence(e)||this._consume_first())}},{key:"aborted",value:function(){return!!this._aborted}}],[{key:"parse",value:function(e){var t;try{t=c.Header.parse_hex(e)}catch(e){return}if(t)switch(t.NAME){case"ZRQINIT":return new c.Session.Receive;case"ZRINIT":return new c.Session.Send(t)}}}]),a(t,[{key:"get_role",value:function(){return this.type}},{key:"_trim_leading_garbage_until_header",value:function(){var e=c.Header.trim_leading_garbage(this._input_buffer);e.length&&0===this._Happen("garbage",e)&&console.debug("Garbage: ",String.fromCharCode.apply(String,e),e)}},{key:"_parse_and_consume_header",value:function(){this._trim_leading_garbage_until_header();var e=c.Header.parse(this._input_buffer);if(e)return this._consume_header(e[0]),this._last_header_name=e[0].NAME,this._last_header_crc=e[1],e[0]}},{key:"_consume_header",value:function(e){this._on_receive(e);var t=this._next_header_handler[e.NAME];if(!t)throw console.error("Unhandled header!",e,this._next_header_handler),new c.Error("Unhandled header: "+e.NAME);this._next_header_handler=null,t.call(this,e)}},{key:"_check_for_abort_sequence",value:function(){var e=c.ZMLIB.find_subarray(this._input_buffer,f);if(-1!==e)throw this._input_buffer.splice(0,e+f.length),this._aborted=!0,this._on_session_end(),new c.Error("peer_aborted")}},{key:"_send_header",value:function(e){if(!this._sender)throw"Need sender!";var t=Array.apply(null,arguments),r=this._create_header_bytes(t);this._sender(r[0]),this._last_sent_header=r[1]}},{key:"_create_header_bytes",value:function(e){var t=c.Header.build.apply(c.Header,e);return[t[this._get_header_formatter(e[0])](this._zencoder),t]}},{key:"_strip_and_enqueue_input",value:function(e){c.ZMLIB.strip_ignored_bytes(e),this._input_buffer.push.apply(this._input_buffer,e)}},{key:"abort",value:function(){this._sender(f.concat([8,8,8,8,8])),this._aborted=!0,this._sender=function(){throw new c.Error("already_aborted")},this._on_session_end()}},{key:"_on_session_end",value:function(){this._Happen("session_end")}},{key:"_on_receive",value:function(e){this._Happen("receive",e)}},{key:"_before_consume",value:function(){}}]),t}(),c.Session.Receive=function(e){function t(){o(this,t);var e=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._Add_event("offer"),e._Add_event("data_in"),e._Add_event("file_end"),e}return i(t,c.Session),a(t,[{key:"_before_consume",value:function(e){if(this._bytes_after_OO)throw"PROTOCOL: Session is completed!";this._bytes_being_consumed=e}},{key:"get_trailing_bytes",value:function(){if(this._aborted)return[];if(!this._bytes_after_OO)throw"PROTOCOL: Session is not completed!";return this._bytes_after_OO.slice(0)}},{key:"_has_ended",value:function(){return this.aborted()||!!this._bytes_after_OO}},{key:"_get_header_formatter",value:function(){return"to_hex"}},{key:"_parse_and_consume_subpacket",value:function(){var e;e=16===this._last_header_crc?"parse16":"parse32";var t=c.Subpacket[e](this._input_buffer);return t&&(this._consume_data(t),t.frame_end()&&(this._next_subpacket_handler=null)),t}},{key:"_consume_first",value:function(){if(this._got_ZFIN){if(this._input_buffer.length<2)return;if(0===c.ZMLIB.find_subarray(this._input_buffer,u))return this._bytes_after_OO=function(e){return 0===c.ZMLIB.find_subarray(e,u)?e.splice(0,u.length):e[0]===u[u.length-1]&&e.splice(0,1),e}(this._bytes_being_consumed.slice(0)),void this._on_session_end();throw"PROTOCOL: Only thing after ZFIN should be “OO” (79,79), not: "+array_buf.join()}var e;do{e=this._next_subpacket_handler?this._parse_and_consume_subpacket():this._parse_and_consume_header()}while(e&&this._input_buffer.length)}},{key:"_consume_data",value:function(e){if(this._on_receive(e),!this._next_subpacket_handler)throw"PROTOCOL: Received unexpected data packet after "+this._last_header_name+" header: "+e.get_payload().join();this._next_subpacket_handler.call(this,e)}},{key:"_octets_to_string",value:function(e){return this._textdecoder||(this._textdecoder=new c.Text.Decoder),this._textdecoder.decode(new Uint8Array(e))}},{key:"_consume_ZFILE_data",value:function(e,t){if(this._file_info)throw"PROTOCOL: second ZFILE data subpacket received";var r=t.get_payload(),n=r.indexOf(0),i=this._octets_to_string(r.slice(0,n)),o=this._octets_to_string(r.slice(1+n)).split(" "),s=o[1]&&parseInt(o[1],8)||void 0;s&&(s=new Date(1e3*s)),this._file_info={name:i,size:o[0]?parseInt(o[0],10):null,mtime:s||null,mode:o[2]&&parseInt(o[2],8)||null,serial:o[3]&&parseInt(o[3],10)||null,files_remaining:o[4]?parseInt(o[4],10):null,bytes_remaining:o[5]?parseInt(o[5],10):null};var a=new d(e.get_options(),this._file_info,this._accept.bind(this),this._skip.bind(this));this._current_transfer=a}},{key:"_consume_ZDATA_data",value:function(e){if(!this._accepted_offer)throw"PROTOCOL: Received data without accepting!";if(!this._offset_ok)return console.warn("offset not ok!"),void _send_ZRPOS();this._file_offset+=e.get_payload().length,this._on_data_in(e),e.ack_expected()&&!e.frame_end()&&this._send_header("ZACK",c.ENCODELIB.pack_u32_le(this._file_offset))}},{key:"_make_promise_for_between_files",value:function(){var e=this;return new Promise(function(t){var r={ZFILE:function(e){this._next_subpacket_handler=function(r){this._next_subpacket_handler=null,this._consume_ZFILE_data(e,r),this._Happen("offer",this._current_transfer),t(this._current_transfer)}},ZSINIT:function(t){e._next_subpacket_handler=function(t){e._next_subpacket_handler=null,e._consume_ZSINIT_data(t),e._send_header("ZACK"),e._next_header_handler=r}},ZFIN:function(){this._consume_ZFIN(),t()}};e._next_header_handler=r})}},{key:"_consume_ZSINIT_data",value:function(e){this._attn=e.get_payload()}},{key:"start",value:function(){if(this._started)throw"Already started!";this._started=!0;var e=this._make_promise_for_between_files();return this._send_ZRINIT(),e}},{key:"_accept",value:function(e){this._accepted_offer=!0,this._file_offset=e||0;var t=this,r=new Promise(function(e){t._next_header_handler={ZDATA:function(t){this._consume_ZDATA(t),this._next_subpacket_handler=this._consume_ZDATA_data,this._next_header_handler={ZEOF:function(t){this._next_subpacket_handler=null,this._consume_ZEOF(t);var r=this._make_promise_for_between_files();e(r)}}}}});return this._send_ZRPOS(),r}},{key:"_skip",value:function(){var e=this._make_promise_for_between_files();if(this._accepted_offer){var t=function(){this._accepted_offer=!1,this._next_subpacket_handler=null,this._make_promise_for_between_files()}.bind(this);Object.assign(this._next_header_handler,{ZEOF:t,ZDATA:function(){t(),this._next_header_handler.ZEOF=t}.bind(this)})}return this._file_info=null,this._send_header("ZSKIP"),e}},{key:"_send_ZRINIT",value:function(){this._send_header("ZRINIT",l)}},{key:"_consume_ZFIN",value:function(){this._got_ZFIN=!0,this._send_header("ZFIN")}},{key:"_consume_ZEOF",value:function(e){if(this._file_offset!==e.get_offset())throw"ZEOF offset mismatch; unimplemented (local: "+this._file_offset+"; ZEOF: "+e.get_offset()+")";this._send_ZRINIT(),this._on_file_end(),this._file_info=null,this._current_transfer=null}},{key:"_consume_ZDATA",value:function(e){if(this._file_offset!==e.get_offset())throw"Error correction is unimplemented.";this._offset_ok=!0}},{key:"_send_ZRPOS",value:function(){this._send_header("ZRPOS",this._file_offset)}},{key:"_on_file_end",value:function(){this._Happen("file_end"),this._current_transfer&&(this._current_transfer._Happen("complete"),this._current_transfer=null)}},{key:"_on_data_in",value:function(e){this._Happen("data_in",e),this._current_transfer&&this._current_transfer._Happen("input",e.get_payload())}}]),t}(),Object.assign(c.Session.Receive.prototype,{type:"receive"});var _={get_details:function(){return Object.assign({},this._file_info)},get_options:function(){return Object.assign({},this._zfile_opts)},get_offset:function(){return this._file_offset}},p=function(){function e(t,r,n,i){o(this,e),this._file_info=t,this._file_offset=r||0,this._send=n,this._end=i}return a(e,[{key:"send",value:function(e){this._send(e),this._file_offset+=e.length}},{key:"end",value:function(e){var t=this._end(e||[]);return e&&(this._file_offset+=e.length),t}}]),e}();Object.assign(p.prototype,_);var d=function(e){function t(e,r,i,s){o(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a._zfile_opts=e,a._file_info=r,a._accept_func=i,a._skip_func=s,a._Add_event("input"),a._Add_event("complete"),a.on("input",a._input_handler),a}return i(t,h),a(t,[{key:"_verify_not_skipped",value:function(){if(this._skipped)throw new c.Error("Already skipped!")}},{key:"skip",value:function(){return this._verify_not_skipped(),this._skipped=!0,this._skip_func.apply(this,arguments)}},{key:"accept",value:function(e){if(this._verify_not_skipped(),this._accepted)throw new c.Error("Already accepted!");switch(this._accepted=!0,e||(e={}),this._file_offset=e.offset||0,e.on_input){case null:case void 0:case"spool_array":case"spool_uint8array":this._spool=[];break;default:if("function"!=typeof e.on_input)throw"Invalid “on_input”: "+e.on_input}return this._input_handler_mode=e.on_input||"spool_uint8array",this._accept_func(this._file_offset).then(this._get_spool.bind(this))}},{key:"_input_handler",value:function(e){if(this._file_offset+=e.length,"function"==typeof this._input_handler_mode)this._input_handler_mode(e);else{if("spool_uint8array"===this._input_handler_mode)e=new Uint8Array(e);else if("spool_array"!==this._input_handler_mode)throw new c.Error("WTF?? _input_handler_mode = "+this._input_handler_mode);this._spool.push(e)}}},{key:"_get_spool",value:function(){return this._spool}}]),t}();Object.assign(d.prototype,_);var m={ZFILE:!0,ZDATA:!0};c.Session.Send=function(e){function t(e){o(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!e)throw"Need first header!";if("ZRINIT"!==e.NAME)throw"First header should be ZRINIT, not "+e.NAME;r._last_header_name="ZRINIT",r._subpacket_encode_func="encode16",r._zencoder=new c.ZDLE,r._consume_ZRINIT(e),r._file_offset=0;return r._start_keepalive_on_set_sender=!0,r}return i(t,c.Session),a(t,[{key:"set_sender",value:function(e){return s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set_sender",this).call(this,e),this._start_keepalive_on_set_sender&&(this._start_keepalive_on_set_sender=!1,this._start_keepalive()),this}},{key:"_get_header_formatter",value:function(e){return m[e]?"to_binary16":"to_hex"}},{key:"_start_keepalive",value:function(){if(!this._keepalive_promise){var e=this;this._keepalive_promise=new Promise(function(t){e._keepalive_timeout=setTimeout(t,5e3)}).then(function(){e._next_header_handler={ZACK:function(){e._got_ZSINIT_ZACK=!0}},e._send_ZSINIT(),e._keepalive_promise=null,e._start_keepalive()})}}},{key:"_stop_keepalive",value:function(){this._keepalive_promise&&(clearTimeout(this._keepalive_timeout),this._keep_alive_promise=null)}},{key:"_send_ZSINIT",value:function(){var e=[];this._zencoder.escapes_ctrl_chars()&&e.push("ESCCTL"),this._send_header_and_data(["ZSINIT",e],[0],"end_ack")}},{key:"_consume_ZRINIT",value:function(e){if(this._last_ZRINIT=e,e.get_buffer_size())throw"Buffer size ("+e.get_buffer_size()+") is unsupported!";if(!e.can_full_duplex())throw"Half-duplex I/O is unsupported!";if(!e.can_overlap_io())throw"Non-overlap I/O is unsupported!";if(e.escape_8th_bit())throw"8-bit escaping is unsupported!";this._zencoder.set_escape_ctrl_chars(!0),e.escape_ctrl_chars()||console.debug("Peer didn’t request escape of all control characters. Will send ZSINIT to force recognition of escaped control characters.")}},{key:"_ensure_receiver_escapes_ctrl_chars",value:function(){var e;if(!this._last_ZRINIT.escape_ctrl_chars()&&!this._got_ZSINIT_ZACK){var t=this;e=new Promise(function(e){t._next_header_handler={ZACK:function(t){e()}},t._send_ZSINIT()})}else e=Promise.resolve();return e}},{key:"_convert_params_to_offer_payload_array",value:function(e){var t=(e=c.Validation.offer_parameters(e)).name+"\0",r=[(e.size||0).toString(10),e.mtime?e.mtime.toString(8):"0",e.mode?(32768|e.mode).toString(8):"0","0"];return e.files_remaining&&(r.push(e.files_remaining),e.bytes_remaining&&r.push(e.bytes_remaining)),t+=r.join(" "),this._string_to_octets(t)}},{key:"send_offer",value:function(e){if(!e)throw"need file params!";if(this._sending_file)throw"Already sending file!";var t=this._convert_params_to_offer_payload_array(e);this._stop_keepalive();var r=this,n=function(){var n=new Promise(function(t){r._next_header_handler={ZSKIP:function(){r._start_keepalive(),t()},ZRPOS:function(n){r._sending_file=!0,t(new p(e,n.get_offset(),r._send_interim_file_piece.bind(r),r._end_file.bind(r)))}}});return r._send_header_and_data(["ZFILE"],t,"end_ack"),delete r._sent_ZDATA,n};return this._ensure_receiver_escapes_ctrl_chars().then(n)}},{key:"_send_header_and_data",value:function(e,t,r){var n=this._create_header_bytes(e),i=this._build_subpacket_bytes(t,r);n[0].push.apply(n[0],i),this._sender(n[0]),this._last_sent_header=n[1]}},{key:"_build_subpacket_bytes",value:function(e,t){return c.Subpacket.build(e,t)[this._subpacket_encode_func](this._zencoder)}},{key:"_build_and_send_subpacket",value:function(e,t){this._sender(this._build_subpacket_bytes(e,t))}},{key:"_string_to_octets",value:function(e){this._textencoder||(this._textencoder=new c.Text.Encoder);var t=this._textencoder.encode(e);return Array.prototype.slice.call(t)}},{key:"_send_interim_file_piece",value:function(e){return this._send_file_part(e,"no_end_no_ack"),Promise.resolve()}},{key:"_ensure_we_are_sending",value:function(){if(!this._sending_file)throw"Not sending a file currently!"}},{key:"_end_file",value:function(e){this._ensure_we_are_sending(),this._send_file_part(e,"end_no_ack");var t=this,r=new Promise(function(e){t._sending_file=!1,t._prepare_to_receive_ZRINIT(e)});return this._send_header("ZEOF",this._file_offset),this._file_offset=0,r}},{key:"_prepare_to_receive_ZRINIT",value:function(e){this._next_header_handler={ZRINIT:function(t){this._consume_ZRINIT(t),e&&e()}}}},{key:"close",value:function(){var e="ZRINIT"===this._last_header_name;if(e||(e="ZSKIP"===this._last_header_name),e||(e="ZSINIT"===this._last_sent_header.name&&"ZACK"===this._last_header_name),!e)throw"Can’t close; last received header was “"+this._last_header_name+"”";var t=this,r=new Promise(function(e,r){t._next_header_handler={ZFIN:function(){t._sender(u),t._sent_OO=!0,t._on_session_end(),e()}}});return this._send_header("ZFIN"),r}},{key:"_has_ended",value:function(){return this.aborted()||!!this._sent_OO}},{key:"_send_file_part",value:function(e,t){this._sent_ZDATA||(this._send_header("ZDATA",this._file_offset),this._sent_ZDATA=!0);for(var r=0,n=e.length;;){var i=Math.min(r+8192,n)-r,o=i+r>=n,s=e.slice(r,r+i);if(s instanceof Array||(s=Array.prototype.slice.call(s)),this._build_and_send_subpacket(s,o?t:"no_end_no_ack"),this._file_offset+=i,(r+=i)>=n)break}}},{key:"_consume_first",value:function(){if(!this._parse_and_consume_header()&&"67"===this._input_buffer.join())throw"Receiver has fallen back to YMODEM."}},{key:"_on_session_end",value:function(){this._stop_keepalive(),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_on_session_end",this).call(this)}}]),t}(),Object.assign(c.Session.Send.prototype,{type:"send"})},{"./encode":366,"./text":367,"./zdle":369,"./zerror":370,"./zheader":371,"./zmlib":372,"./zsubpacket":377,"./zvalidation":378}],377:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=t.exports;Object.assign(a,e("./zcrc"),e("./zdle"),e("./zmlib"),e("./zerror"));var c;a.Subpacket=function(){function e(t){o(this,e),this._payload=t}return s(e,[{key:"encode16",value:function(e){return this._encode(e,a.CRC.crc16)}},{key:"encode32",value:function(e){return this._encode(e,a.CRC.crc32)}},{key:"get_payload",value:function(){return this._payload}}],[{key:"build",value:function(e,t){var r=c[t];if(!r)throw"No subpacket type “"+t+"” is defined! Try one of: "+Object.keys(c).join(", ");return new r(e)}},{key:"parse16",value:function(t){return e._parse(t,2)}},{key:"parse32",value:function(t){return e._parse(t,4)}}]),s(e,[{key:"_encode",value:function(e,t){return e.encode(this._payload.slice(0)).concat([a.ZMLIB.ZDLE,this._frameend_num],e.encode(t(this._payload.concat(this._frameend_num))))}}],[{key:"_parse",value:function(e,t){for(var r,n,i={104:f,105:_,106:p,107:h},o=0;o<e.length;){if(-1===(o=e.indexOf(a.ZMLIB.ZDLE,o)))return;if(n=i[e[o+1]]){r=o+1;break}o++}if(n){var s=e[r];if(e[r-1]!==a.ZMLIB.ZDLE)throw"Byte before frame end should be ZDLE, not "+e[r-1];var c=e.splice(0,r-1),l=a.ZDLE.splice(e,2,t);if(l){var u=a.ZDLE.decode(c);return a.CRC[2===t?"verify16":"verify32"](u.concat([s]),l),new n(u,l)}e.unshift.apply(e,c)}}}]),e}();var l=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,a.Subpacket),s(t,[{key:"frame_end",value:function(){return!0}}]),t}(),u=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,a.Subpacket),s(t,[{key:"frame_end",value:function(){return!1}}]),t}(),f=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,l),s(t,[{key:"ack_expected",value:function(){return!1}}]),t}();f.prototype._frameend_num=104;var h=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,l),s(t,[{key:"ack_expected",value:function(){return!0}}]),t}();h.prototype._frameend_num=107;var _=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,u),s(t,[{key:"ack_expected",value:function(){return!1}}]),t}();_.prototype._frameend_num=105;var p=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,u),s(t,[{key:"ack_expected",value:function(){return!0}}]),t}();p.prototype._frameend_num=106,c={end_no_ack:f,end_ack:h,no_end_no_ack:_,no_end_ack:p}},{"./zcrc":368,"./zdle":369,"./zerror":370,"./zmlib":372}],378:[function(e,t,r){"use strict";function n(e,t){if(t<0)throw new o.Error("validation","“"+e+"” ("+t+") must be nonnegative.");if(t!==Math.floor(t))throw new o.Error("validation","“"+e+"” ("+t+") must be an integer.")}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=t.exports;Object.assign(o,e("./zerror"));var s=/\*\x18[AC]|\*\*\x18B/;o.Validation={offer_parameters:function(e){if(!e.name)throw new o.Error("validation","Need “name”!");if("string"!=typeof e.name)throw new o.Error("validation","“name” ("+e.name+") must be a string!");if(e=Object.assign({},e),s.test(e.name)&&console.warn("The filename "+JSON.stringify(name)+" contains characters that look like a ZMODEM header. This could corrupt the ZMODEM session; consider renaming it so that the filename doesn’t contain control characters."),null!==e.serial&&void 0!==e.serial)throw new o.Error("validation","“serial” is meaningless.");if(e.serial=null,["size","mode","files_remaining","bytes_remaining"].forEach(function(t){var r;switch(i(e[t])){case"object":r=null===e[t];break;case"undefined":e[t]=null,r=!0;break;case"number":n(t,e[t]),r=!0}if(!r)throw new o.Error("validation","“"+t+"” ("+e[t]+") must be null, undefined, or a number.")}),"number"==typeof e.mode&&(e.mode|=32768),0===e.files_remaining)throw new o.Error("validation","“files_remaining”, if given, must be positive.");var t;switch(i(e.mtime)){case"object":if(t=!0,e.mtime instanceof Date){var r=e.mtime;if(e.mtime=Math.floor(r.getTime()/1e3),e.mtime<0)throw new o.Error("validation","“mtime” ("+r+") must not be earlier than 1970.")}else null!==e.mtime&&(t=!1);break;case"undefined":e.mtime=null,t=!0;break;case"number":n("mtime",e.mtime),t=!0}if(!t)throw new o.Error("validation","“mtime” ("+e.mtime+") must be null, undefined, a Date, or a number.");return e}}},{"./zerror":370}]},{},[1]);</script>
+       <script>!function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=r[s]={exports:{}};t[s][0].call(u.exports,function(e){var r=t[s][1][e];return i(r||e)},u,u.exports,e,t,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){"use strict";function n(){document.getElementById("modal").classList.remove("is-active")}function i(e){document.getElementById("header").textContent=e,document.getElementById("bytes-received").textContent="-",document.getElementById("percent-received").textContent="-%",document.getElementById("progress-info").style.display="none";var t=document.getElementById("progress-bar");t.textContent="0%",t.value=0}function o(e){var t=e.get_details().size,r=e.get_offset();document.getElementById("bytes-received").textContent=s(r,2),document.getElementById("bytes-file").textContent=s(t,2);var n=(100*r/t).toFixed(2);document.getElementById("percent-received").textContent=n+"%",document.getElementById("progress-info").style.display="";var i=document.getElementById("progress-bar");i.textContent=n+"%",i.setAttribute("value",n)}function s(e,t){if(isNaN(parseFloat(e))||!isFinite(e))return"-";if(0===e)return 0;void 0===t&&(t=1);var r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,Math.floor(r))).toFixed(t)+" "+["bytes","KB","MB","GB","TB","PB"][r]}function a(e){return new Promise(function(t){!function(e){i("Sending files"),document.getElementById("file").style.display="none",document.getElementById("skip").style.display="none",document.getElementById("choose").style.display="";var t=document.getElementById("files");t.disabled=!1,t.value="",t.onchange=function(){this.disabled=!0;for(var t=this.files,r="",n=0;n<t.length;n++)0===n?r=t[n].name:r+=" | "+t[n].name;document.getElementById("file-names").textContent=r,e(t)},document.getElementById("modal").classList.add("is-active")}(function(r){l.Browser.send_files(e,r,{on_progress:function(e,t){o(t)},on_file_complete:function(e){n()}}).then(e.close.bind(e),console.error.bind(console)).then(function(){t()})})})}function c(e){e.on("offer",function(e){!function(e){i("Receiving files");var t=e.get_details();document.getElementById("name").textContent=t.name,document.getElementById("size").textContent=s(t.size,2),document.getElementById("mtime").textContent=t.mtime,document.getElementById("files-remaining").textContent=t.files_remaining,document.getElementById("bytes-remaining").textContent=s(t.bytes_remaining,2),document.getElementById("mode").textContent="0"+t.mode.toString(8),document.getElementById("choose").style.display="none",document.getElementById("file").style.display="";var r=document.getElementById("skip");r.disabled=!1,r.onclick=function(){this.disabled=!0,e.skip()},r.style.display="",document.getElementById("modal").classList.add("is-active")}(e);var t=[];e.on("input",function(r){o(e),t.push(new Uint8Array(r))}),e.accept().then(function(){l.Browser.save_to_disk(t,e.get_details().name)},console.error.bind(console))});var t=new Promise(function(t){e.on("session_end",function(){t()})});return e.start(),t}e("babel-polyfill"),e("fast-text-encoding");var l=e("zmodem.js/src/zmodem_browser"),u=e("xterm").Terminal;u.applyAddon(e("xterm/lib/addons/fit")),u.applyAddon(e("xterm/lib/addons/winptyCompat")),u.applyAddon(e("./overlay"));var f,h,_,p=document.getElementById("terminal-container"),d=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname+"ws",m=new TextDecoder,y=new TextEncoder,b="undefined"!=typeof tty_auth_token?tty_auth_token:null,v=-1,g=function e(){var t=new WebSocket(d,["tty"]),r=function(e){t.readyState===WebSocket.OPEN&&t.send(y.encode(e))},i=function(e){r("0"+e)},o=function(e){var t="Close terminal? this will also terminate the command.";return(e||window.event).returnValue=t,t},s=new l.Sentry({to_terminal:function(e){var t=new Uint8Array(e).buffer;f.write(m.decode(t))},sender:function(e){var r=new Uint8Array(e.length+1);r[0]="0".charCodeAt(0),r.set(new Uint8Array(e),1),t.send(r.buffer)},on_retract:function(){},on_detect:function(e){f.setOption("disableStdin",!0);var t=e.confirm();("send"===t.type?a(t):c(t)).catch(console.error.bind(console)).then(function(){n(),f.setOption("disableStdin",!1)})}});t.binaryType="arraybuffer",t.onopen=function(e){for(console.log("Websocket connection opened"),_=!1,r(JSON.stringify({AuthToken:b})),void 0!==f&&f.destroy(),(f=new u({fontSize:13,fontFamily:'"Menlo for Powerline", Menlo, Consolas, "Liberation Mono", Courier, monospace',theme:{foreground:"#d2d2d2",background:"#2b2b2b",cursor:"#adadad",black:"#000000",red:"#d81e00",green:"#5ea702",yellow:"#cfae00",blue:"#427ab3",magenta:"#89658e",cyan:"#00a7aa",white:"#dbded8",brightBlack:"#686a66",brightRed:"#f54235",brightGreen:"#99e343",brightYellow:"#fdeb61",brightBlue:"#84b0d8",brightMagenta:"#bc94b7",brightCyan:"#37e6e8",brightWhite:"#f1f1f0"}})).on("resize",function(e){t.readyState===WebSocket.OPEN&&r("1"+JSON.stringify({columns:e.cols,rows:e.rows})),setTimeout(function(){f.showOverlay(e.cols+"x"+e.rows)},500)}),f.on("title",function(e){e&&""!==e&&(document.title=e+" | "+h)}),f.on("data",i);p.firstChild;)p.removeChild(p.firstChild);window.addEventListener("resize",function(){clearTimeout(window.resizedFinished),window.resizedFinished=setTimeout(function(){f.fit()},250)}),window.addEventListener("beforeunload",o),f.open(p,!0),f.winptyCompatInit(),f.fit(),f.focus()},t.onmessage=function(e){var t=new Uint8Array(e.data),r=String.fromCharCode(t[0]),n=t.slice(1).buffer;switch(r){case"0":s.consume(n);break;case"1":h=m.decode(n),document.title=h;break;case"2":var i=JSON.parse(m.decode(n));Object.keys(i).forEach(function(e){console.log("Setting "+e+": "+i[e]),f.setOption(e,i[e])});break;case"3":v=JSON.parse(m.decode(n)),console.log("Enabling reconnect: "+v+" seconds");break;default:console.log("Unknown command: "+r)}},t.onclose=function(t){console.log("Websocket connection closed with code: "+t.code),f&&(f.off("data"),f.off("resize"),_||f.showOverlay("Connection Closed",null)),window.removeEventListener("beforeunload",o),1e3!==t.code&&v>0&&setTimeout(e,1e3*v)}};"complete"===document.readyState||"loading"!==document.readyState?g():document.addEventListener("DOMContentLoaded",g)},{"./overlay":2,"babel-polyfill":3,"fast-text-encoding":329,xterm:343,"xterm/lib/addons/fit":346,"xterm/lib/addons/winptyCompat":347,"zmodem.js/src/zmodem_browser":374}],2:[function(e,t,r){"use strict";function n(e,t,r){if(!e.overlayNode_){if(!e.element)return;e.overlayNode_=document.createElement("div"),e.overlayNode_.style.cssText="border-radius: 15px;font-size: xx-large;opacity: 0.75;padding: 0.2em 0.5em 0.2em 0.5em;position: absolute;-webkit-user-select: none;-webkit-transition: opacity 180ms ease-in;-moz-user-select: none;-moz-transition: opacity 180ms ease-in;",e.overlayNode_.addEventListener("mousedown",function(e){e.preventDefault(),e.stopPropagation()},!0)}e.overlayNode_.style.color="#101010",e.overlayNode_.style.backgroundColor="#f0f0f0",e.overlayNode_.textContent=t,e.overlayNode_.style.opacity="0.75",e.overlayNode_.parentNode||e.element.appendChild(e.overlayNode_);var n=e.element.getBoundingClientRect(),i=e.overlayNode_.getBoundingClientRect();e.overlayNode_.style.top=(n.height-i.height)/2+"px",e.overlayNode_.style.left=(n.width-i.width)/2+"px",e.overlayTimeout_&&clearTimeout(e.overlayTimeout_),null!==r&&(e.overlayTimeout_=setTimeout(function(){e.overlayNode_.style.opacity="0",e.overlayTimeout_=setTimeout(function(){e.overlayNode_.parentNode&&e.overlayNode_.parentNode.removeChild(e.overlayNode_),e.overlayTimeout_=null,e.overlayNode_.style.opacity="0.75"},200)},r||1500))}Object.defineProperty(r,"__esModule",{value:!0}),r.showOverlay=n,r.apply=function(e){e.prototype.showOverlay=function(e,t){return n(this,e,t)}}},{}],3:[function(e,t,r){(function(t){"use strict";function r(e,t,r){e[t]||Object[n](e,t,{writable:!0,configurable:!0,value:r})}if(e("core-js/shim"),e("regenerator-runtime/runtime"),e("core-js/fn/regexp/escape"),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var n="defineProperty";r(String.prototype,"padLeft","".padStart),r(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&r(Array,e,Function.call.bind([][e]))})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/fn/regexp/escape":4,"core-js/shim":327,"regenerator-runtime/runtime":330}],4:[function(e,t,r){e("../../modules/core.regexp.escape"),t.exports=e("../../modules/_core").RegExp.escape},{"../../modules/_core":25,"../../modules/core.regexp.escape":130}],5:[function(e,t,r){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],6:[function(e,t,r){var n=e("./_cof");t.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},{"./_cof":20}],7:[function(e,t,r){var n=e("./_wks")("unscopables"),i=Array.prototype;void 0==i[n]&&e("./_hide")(i,n,{}),t.exports=function(e){i[n][e]=!0}},{"./_hide":44,"./_wks":128}],8:[function(e,t,r){t.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},{}],9:[function(e,t,r){var n=e("./_is-object");t.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":53}],10:[function(e,t,r){"use strict";var n=e("./_to-object"),i=e("./_to-absolute-index"),o=e("./_to-length");t.exports=[].copyWithin||function(e,t){var r=n(this),s=o(r.length),a=i(e,s),c=i(t,s),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?s:i(l,s))-c,s-a),f=1;for(c<a&&a<c+u&&(f=-1,c+=u-1,a+=u-1);u-- >0;)c in r?r[a]=r[c]:delete r[a],a+=f,c+=f;return r}},{"./_to-absolute-index":113,"./_to-length":117,"./_to-object":118}],11:[function(e,t,r){"use strict";var n=e("./_to-object"),i=e("./_to-absolute-index"),o=e("./_to-length");t.exports=function(e){for(var t=n(this),r=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),c=s>2?arguments[2]:void 0,l=void 0===c?r:i(c,r);l>a;)t[a++]=e;return t}},{"./_to-absolute-index":113,"./_to-length":117,"./_to-object":118}],12:[function(e,t,r){var n=e("./_for-of");t.exports=function(e,t){var r=[];return n(e,!1,r.push,r,t),r}},{"./_for-of":41}],13:[function(e,t,r){var n=e("./_to-iobject"),i=e("./_to-length"),o=e("./_to-absolute-index");t.exports=function(e){return function(t,r,s){var a,c=n(t),l=i(c.length),u=o(s,l);if(e&&r!=r){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},{"./_to-absolute-index":113,"./_to-iobject":116,"./_to-length":117}],14:[function(e,t,r){var n=e("./_ctx"),i=e("./_iobject"),o=e("./_to-object"),s=e("./_to-length"),a=e("./_array-species-create");t.exports=function(e,t){var r=1==e,c=2==e,l=3==e,u=4==e,f=6==e,h=5==e||f,_=t||a;return function(t,a,p){for(var d,m,y=o(t),b=i(y),v=n(a,p,3),g=s(b.length),x=0,w=r?_(t,g):c?_(t,0):void 0;g>x;x++)if((h||x in b)&&(d=b[x],m=v(d,x,y),e))if(r)w[x]=m;else if(m)switch(e){case 3:return!0;case 5:return d;case 6:return x;case 2:w.push(d)}else if(u)return!1;return f?-1:l||u?u:w}}},{"./_array-species-create":17,"./_ctx":27,"./_iobject":49,"./_to-length":117,"./_to-object":118}],15:[function(e,t,r){var n=e("./_a-function"),i=e("./_to-object"),o=e("./_iobject"),s=e("./_to-length");t.exports=function(e,t,r,a,c){n(t);var l=i(e),u=o(l),f=s(l.length),h=c?f-1:0,_=c?-1:1;if(r<2)for(;;){if(h in u){a=u[h],h+=_;break}if(h+=_,c?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:f>h;h+=_)h in u&&(a=t(a,u[h],h,l));return a}},{"./_a-function":5,"./_iobject":49,"./_to-length":117,"./_to-object":118}],16:[function(e,t,r){var n=e("./_is-object"),i=e("./_is-array"),o=e("./_wks")("species");t.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),n(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":51,"./_is-object":53,"./_wks":128}],17:[function(e,t,r){var n=e("./_array-species-constructor");t.exports=function(e,t){return new(n(e))(t)}},{"./_array-species-constructor":16}],18:[function(e,t,r){"use strict";var n=e("./_a-function"),i=e("./_is-object"),o=e("./_invoke"),s=[].slice,a={};t.exports=Function.bind||function(e){var t=n(this),r=s.call(arguments,1),c=function(){var n=r.concat(s.call(arguments));return this instanceof c?function(e,t,r){if(!(t in a)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";a[t]=Function("F,a","return new F("+n.join(",")+")")}return a[t](e,r)}(t,n.length,n):o(t,n,e)};return i(t.prototype)&&(c.prototype=t.prototype),c}},{"./_a-function":5,"./_invoke":48,"./_is-object":53}],19:[function(e,t,r){var n=e("./_cof"),i=e("./_wks")("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(s=n(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":20,"./_wks":128}],20:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],21:[function(e,t,r){"use strict";var n=e("./_object-dp").f,i=e("./_object-create"),o=e("./_redefine-all"),s=e("./_ctx"),a=e("./_an-instance"),c=e("./_for-of"),l=e("./_iter-define"),u=e("./_iter-step"),f=e("./_set-species"),h=e("./_descriptors"),_=e("./_meta").fastKey,p=e("./_validate-collection"),d=h?"_s":"size",m=function(e,t){var r,n=_(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};t.exports={getConstructor:function(e,t,r,l){var u=e(function(e,n){a(e,u,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[d]=0,void 0!=n&&c(n,r,e[l],e)});return o(u.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[d]=0},delete:function(e){var r=p(this,t),n=m(r,e);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[d]--}return!!n},forEach:function(e){p(this,t);for(var r,n=s(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!m(p(this,t),e)}}),h&&n(u.prototype,"size",{get:function(){return p(this,t)[d]}}),u},def:function(e,t,r){var n,i,o=m(e,t);return o?o.v=r:(e._l=o={i:i=_(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[d]++,"F"!==i&&(e._i[i]=o)),e},getEntry:m,setStrong:function(e,t,r){l(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?"keys"==e?u(0,t.k):"values"==e?u(0,t.v):u(0,[t.k,t.v]):(this._t=void 0,u(1))},r?"entries":"values",!r,!0),f(t)}}},{"./_an-instance":8,"./_ctx":27,"./_descriptors":31,"./_for-of":41,"./_iter-define":57,"./_iter-step":59,"./_meta":67,"./_object-create":72,"./_object-dp":73,"./_redefine-all":92,"./_set-species":99,"./_validate-collection":125}],22:[function(e,t,r){var n=e("./_classof"),i=e("./_array-from-iterable");t.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},{"./_array-from-iterable":12,"./_classof":19}],23:[function(e,t,r){"use strict";var n=e("./_redefine-all"),i=e("./_meta").getWeak,o=e("./_an-object"),s=e("./_is-object"),a=e("./_an-instance"),c=e("./_for-of"),l=e("./_array-methods"),u=e("./_has"),f=e("./_validate-collection"),h=l(5),_=l(6),p=0,d=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},y=function(e,t){return h(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var r=y(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=_(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},t.exports={getConstructor:function(e,t,r,o){var l=e(function(e,n){a(e,l,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=n&&c(n,r,e[o],e)});return n(l.prototype,{delete:function(e){if(!s(e))return!1;var r=i(e);return!0===r?d(f(this,t)).delete(e):r&&u(r,this._i)&&delete r[this._i]},has:function(e){if(!s(e))return!1;var r=i(e);return!0===r?d(f(this,t)).has(e):r&&u(r,this._i)}}),l},def:function(e,t,r){var n=i(o(t),!0);return!0===n?d(e).set(t,r):n[e._i]=r,e},ufstore:d}},{"./_an-instance":8,"./_an-object":9,"./_array-methods":14,"./_for-of":41,"./_has":43,"./_is-object":53,"./_meta":67,"./_redefine-all":92,"./_validate-collection":125}],24:[function(e,t,r){"use strict";var n=e("./_global"),i=e("./_export"),o=e("./_redefine"),s=e("./_redefine-all"),a=e("./_meta"),c=e("./_for-of"),l=e("./_an-instance"),u=e("./_is-object"),f=e("./_fails"),h=e("./_iter-detect"),_=e("./_set-to-string-tag"),p=e("./_inherit-if-required");t.exports=function(e,t,r,d,m,y){var b=n[e],v=b,g=m?"set":"add",x=v&&v.prototype,w={},C=function(e){var t=x[e];o(x,e,"delete"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof v&&(y||x.forEach&&!f(function(){(new v).entries().next()}))){var S=new v,k=S[g](y?{}:-0,1)!=S,E=f(function(){S.has(1)}),A=h(function(e){new v(e)}),j=!y&&f(function(){for(var e=new v,t=5;t--;)e[g](t,t);return!e.has(-0)});A||((v=t(function(t,r){l(t,v,e);var n=p(new b,t,v);return void 0!=r&&c(r,m,n[g],n),n})).prototype=x,x.constructor=v),(E||j)&&(C("delete"),C("has"),m&&C("get")),(j||k)&&C(g),y&&x.clear&&delete x.clear}else v=d.getConstructor(t,e,m,g),s(v.prototype,r),a.NEED=!0;return _(v,e),w[e]=v,i(i.G+i.W+i.F*(v!=b),w),y||d.setStrong(v,e,m),v}},{"./_an-instance":8,"./_export":35,"./_fails":37,"./_for-of":41,"./_global":42,"./_inherit-if-required":47,"./_is-object":53,"./_iter-detect":58,"./_meta":67,"./_redefine":93,"./_redefine-all":92,"./_set-to-string-tag":100}],25:[function(e,t,r){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},{}],26:[function(e,t,r){"use strict";var n=e("./_object-dp"),i=e("./_property-desc");t.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},{"./_object-dp":73,"./_property-desc":91}],27:[function(e,t,r){var n=e("./_a-function");t.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":5}],28:[function(e,t,r){"use strict";var n=e("./_fails"),i=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(e){return e>9?e:"0"+e};t.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+s(e.getUTCMonth()+1)+"-"+s(e.getUTCDate())+"T"+s(e.getUTCHours())+":"+s(e.getUTCMinutes())+":"+s(e.getUTCSeconds())+"."+(r>99?r:"0"+s(r))+"Z"}:o},{"./_fails":37}],29:[function(e,t,r){"use strict";var n=e("./_an-object"),i=e("./_to-primitive");t.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(n(this),"number"!=e)}},{"./_an-object":9,"./_to-primitive":119}],30:[function(e,t,r){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},{}],31:[function(e,t,r){t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":37}],32:[function(e,t,r){var n=e("./_is-object"),i=e("./_global").document,o=n(i)&&n(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{"./_global":42,"./_is-object":53}],33:[function(e,t,r){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],34:[function(e,t,r){var n=e("./_object-keys"),i=e("./_object-gops"),o=e("./_object-pie");t.exports=function(e){var t=n(e),r=i.f;if(r)for(var s,a=r(e),c=o.f,l=0;a.length>l;)c.call(e,s=a[l++])&&t.push(s);return t}},{"./_object-gops":79,"./_object-keys":82,"./_object-pie":83}],35:[function(e,t,r){var n=e("./_global"),i=e("./_core"),o=e("./_hide"),s=e("./_redefine"),a=e("./_ctx"),c=function(e,t,r){var l,u,f,h,_=e&c.F,p=e&c.G,d=e&c.S,m=e&c.P,y=e&c.B,b=p?n:d?n[t]||(n[t]={}):(n[t]||{}).prototype,v=p?i:i[t]||(i[t]={}),g=v.prototype||(v.prototype={});p&&(r=t);for(l in r)f=((u=!_&&b&&void 0!==b[l])?b:r)[l],h=y&&u?a(f,n):m&&"function"==typeof f?a(Function.call,f):f,b&&s(b,l,f,e&c.U),v[l]!=f&&o(v,l,h),m&&g[l]!=f&&(g[l]=f)};n.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},{"./_core":25,"./_ctx":27,"./_global":42,"./_hide":44,"./_redefine":93}],36:[function(e,t,r){var n=e("./_wks")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},{"./_wks":128}],37:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],38:[function(e,t,r){"use strict";var n=e("./_hide"),i=e("./_redefine"),o=e("./_fails"),s=e("./_defined"),a=e("./_wks");t.exports=function(e,t,r){var c=a(e),l=r(s,c,""[e]),u=l[0],f=l[1];o(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,u),n(RegExp.prototype,c,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},{"./_defined":30,"./_fails":37,"./_hide":44,"./_redefine":93,"./_wks":128}],39:[function(e,t,r){"use strict";var n=e("./_an-object");t.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"./_an-object":9}],40:[function(e,t,r){"use strict";function n(e,t,r,l,u,f,h,_){for(var p,d,m=u,y=0,b=!!h&&a(h,_,3);y<l;){if(y in r){if(p=b?b(r[y],y,t):r[y],d=!1,o(p)&&(d=void 0!==(d=p[c])?!!d:i(p)),d&&f>0)m=n(e,t,p,s(p.length),m,f-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=p}m++}y++}return m}var i=e("./_is-array"),o=e("./_is-object"),s=e("./_to-length"),a=e("./_ctx"),c=e("./_wks")("isConcatSpreadable");t.exports=n},{"./_ctx":27,"./_is-array":51,"./_is-object":53,"./_to-length":117,"./_wks":128}],41:[function(e,t,r){var n=e("./_ctx"),i=e("./_iter-call"),o=e("./_is-array-iter"),s=e("./_an-object"),a=e("./_to-length"),c=e("./core.get-iterator-method"),l={},u={};(r=t.exports=function(e,t,r,f,h){var _,p,d,m,y=h?function(){return e}:c(e),b=n(r,f,t?2:1),v=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(_=a(e.length);_>v;v++)if((m=t?b(s(p=e[v])[0],p[1]):b(e[v]))===l||m===u)return m}else for(d=y.call(e);!(p=d.next()).done;)if((m=i(d,b,p.value,t))===l||m===u)return m}).BREAK=l,r.RETURN=u},{"./_an-object":9,"./_ctx":27,"./_is-array-iter":50,"./_iter-call":55,"./_to-length":117,"./core.get-iterator-method":129}],42:[function(e,t,r){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],43:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],44:[function(e,t,r){var n=e("./_object-dp"),i=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},{"./_descriptors":31,"./_object-dp":73,"./_property-desc":91}],45:[function(e,t,r){var n=e("./_global").document;t.exports=n&&n.documentElement},{"./_global":42}],46:[function(e,t,r){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":31,"./_dom-create":32,"./_fails":37}],47:[function(e,t,r){var n=e("./_is-object"),i=e("./_set-proto").set;t.exports=function(e,t,r){var o,s=t.constructor;return s!==r&&"function"==typeof s&&(o=s.prototype)!==r.prototype&&n(o)&&i&&i(e,o),e}},{"./_is-object":53,"./_set-proto":98}],48:[function(e,t,r){t.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},{}],49:[function(e,t,r){var n=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},{"./_cof":20}],50:[function(e,t,r){var n=e("./_iterators"),i=e("./_wks")("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},{"./_iterators":60,"./_wks":128}],51:[function(e,t,r){var n=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"./_cof":20}],52:[function(e,t,r){var n=e("./_is-object"),i=Math.floor;t.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},{"./_is-object":53}],53:[function(e,t,r){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],54:[function(e,t,r){var n=e("./_is-object"),i=e("./_cof"),o=e("./_wks")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},{"./_cof":20,"./_is-object":53,"./_wks":128}],55:[function(e,t,r){var n=e("./_an-object");t.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},{"./_an-object":9}],56:[function(e,t,r){"use strict";var n=e("./_object-create"),i=e("./_property-desc"),o=e("./_set-to-string-tag"),s={};e("./_hide")(s,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,r){e.prototype=n(s,{next:i(1,r)}),o(e,t+" Iterator")}},{"./_hide":44,"./_object-create":72,"./_property-desc":91,"./_set-to-string-tag":100,"./_wks":128}],57:[function(e,t,r){"use strict";var n=e("./_library"),i=e("./_export"),o=e("./_redefine"),s=e("./_hide"),a=e("./_has"),c=e("./_iterators"),l=e("./_iter-create"),u=e("./_set-to-string-tag"),f=e("./_object-gpo"),h=e("./_wks")("iterator"),_=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(e,t,r,d,m,y,b){l(r,t,d);var v,g,x,w=function(e){if(!_&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},C=t+" Iterator",S="values"==m,k=!1,E=e.prototype,A=E[h]||E["@@iterator"]||m&&E[m],j=!_&&A||w(m),O=m?S?w("entries"):j:void 0,M="Array"==t?E.entries||A:A;if(M&&(x=f(M.call(new e)))!==Object.prototype&&x.next&&(u(x,C,!0),n||a(x,h)||s(x,h,p)),S&&A&&"values"!==A.name&&(k=!0,j=function(){return A.call(this)}),n&&!b||!_&&!k&&E[h]||s(E,h,j),c[t]=j,c[C]=p,m)if(v={values:S?j:w("values"),keys:y?j:w("keys"),entries:O},b)for(g in v)g in E||o(E,g,v[g]);else i(i.P+i.F*(_||k),t,v);return v}},{"./_export":35,"./_has":43,"./_hide":44,"./_iter-create":56,"./_iterators":60,"./_library":61,"./_object-gpo":80,"./_redefine":93,"./_set-to-string-tag":100,"./_wks":128}],58:[function(e,t,r){var n=e("./_wks")("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:r=!0}},o[n]=function(){return s},e(o)}catch(e){}return r}},{"./_wks":128}],59:[function(e,t,r){t.exports=function(e,t){return{value:t,done:!!e}}},{}],60:[function(e,t,r){t.exports={}},{}],61:[function(e,t,r){t.exports=!1},{}],62:[function(e,t,r){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},{}],63:[function(e,t,r){var n=e("./_math-sign"),i=Math.pow,o=i(2,-52),s=i(2,-23),a=i(2,127)*(2-s),c=i(2,-126);t.exports=Math.fround||function(e){var t,r,i=Math.abs(e),l=n(e);return i<c?l*function(e){return e+1/o-1/o}(i/c/s)*c*s:(t=(1+s/o)*i,(r=t-(t-i))>a||r!=r?l*(1/0):l*r)}},{"./_math-sign":66}],64:[function(e,t,r){t.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},{}],65:[function(e,t,r){t.exports=Math.scale||function(e,t,r,n,i){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-n)/(r-t)+n}},{}],66:[function(e,t,r){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],67:[function(e,t,r){var n=e("./_uid")("meta"),i=e("./_is-object"),o=e("./_has"),s=e("./_object-dp").f,a=0,c=Object.isExtensible||function(){return!0},l=!e("./_fails")(function(){return c(Object.preventExtensions({}))}),u=function(e){s(e,n,{value:{i:"O"+ ++a,w:{}}})},f=t.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return l&&f.NEED&&c(e)&&!o(e,n)&&u(e),e}}},{"./_fails":37,"./_has":43,"./_is-object":53,"./_object-dp":73,"./_uid":123}],68:[function(e,t,r){var n=e("./es6.map"),i=e("./_export"),o=e("./_shared")("metadata"),s=o.store||(o.store=new(e("./es6.weak-map"))),a=function(e,t,r){var i=s.get(e);if(!i){if(!r)return;s.set(e,i=new n)}var o=i.get(t);if(!o){if(!r)return;i.set(t,o=new n)}return o};t.exports={store:s,map:a,has:function(e,t,r){var n=a(t,r,!1);return void 0!==n&&n.has(e)},get:function(e,t,r){var n=a(t,r,!1);return void 0===n?void 0:n.get(e)},set:function(e,t,r,n){a(r,n,!0).set(e,t)},keys:function(e,t){var r=a(e,t,!1),n=[];return r&&r.forEach(function(e,t){n.push(t)}),n},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){i(i.S,"Reflect",e)}}},{"./_export":35,"./_shared":102,"./es6.map":160,"./es6.weak-map":266}],69:[function(e,t,r){var n=e("./_global"),i=e("./_task").set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,c="process"==e("./_cof")(s);t.exports=function(){var e,t,r,l=function(){var n,i;for(c&&(n=s.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(c)r=function(){s.nextTick(l)};else if(!o||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var u=a.resolve();r=function(){u.then(l)}}else r=function(){i.call(n,l)};else{var f=!0,h=document.createTextNode("");new o(l).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},{"./_cof":20,"./_global":42,"./_task":112}],70:[function(e,t,r){"use strict";var n=e("./_a-function");t.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},{"./_a-function":5}],71:[function(e,t,r){"use strict";var n=e("./_object-keys"),i=e("./_object-gops"),o=e("./_object-pie"),s=e("./_to-object"),a=e("./_iobject"),c=Object.assign;t.exports=!c||e("./_fails")(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=c({},e)[r]||Object.keys(c({},t)).join("")!=n})?function(e,t){for(var r=s(e),c=arguments.length,l=1,u=i.f,f=o.f;c>l;)for(var h,_=a(arguments[l++]),p=u?n(_).concat(u(_)):n(_),d=p.length,m=0;d>m;)f.call(_,h=p[m++])&&(r[h]=_[h]);return r}:c},{"./_fails":37,"./_iobject":49,"./_object-gops":79,"./_object-keys":82,"./_object-pie":83,"./_to-object":118}],72:[function(e,t,r){var n=e("./_an-object"),i=e("./_object-dps"),o=e("./_enum-bug-keys"),s=e("./_shared-key")("IE_PROTO"),a=function(){},c=function(){var t,r=e("./_dom-create")("iframe"),n=o.length;for(r.style.display="none",e("./_html").appendChild(r),r.src="javascript:",(t=r.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[o[n]];return c()};t.exports=Object.create||function(e,t){var r;return null!==e?(a.prototype=n(e),r=new a,a.prototype=null,r[s]=e):r=c(),void 0===t?r:i(r,t)}},{"./_an-object":9,"./_dom-create":32,"./_enum-bug-keys":33,"./_html":45,"./_object-dps":74,"./_shared-key":101}],73:[function(e,t,r){var n=e("./_an-object"),i=e("./_ie8-dom-define"),o=e("./_to-primitive"),s=Object.defineProperty;r.f=e("./_descriptors")?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},{"./_an-object":9,"./_descriptors":31,"./_ie8-dom-define":46,"./_to-primitive":119}],74:[function(e,t,r){var n=e("./_object-dp"),i=e("./_an-object"),o=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){i(e);for(var r,s=o(t),a=s.length,c=0;a>c;)n.f(e,r=s[c++],t[r]);return e}},{"./_an-object":9,"./_descriptors":31,"./_object-dp":73,"./_object-keys":82}],75:[function(e,t,r){"use strict";t.exports=e("./_library")||!e("./_fails")(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete e("./_global")[t]})},{"./_fails":37,"./_global":42,"./_library":61}],76:[function(e,t,r){var n=e("./_object-pie"),i=e("./_property-desc"),o=e("./_to-iobject"),s=e("./_to-primitive"),a=e("./_has"),c=e("./_ie8-dom-define"),l=Object.getOwnPropertyDescriptor;r.f=e("./_descriptors")?l:function(e,t){if(e=o(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return i(!n.f.call(e,t),e[t])}},{"./_descriptors":31,"./_has":43,"./_ie8-dom-define":46,"./_object-pie":83,"./_property-desc":91,"./_to-iobject":116,"./_to-primitive":119}],77:[function(e,t,r){var n=e("./_to-iobject"),i=e("./_object-gopn").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return s.slice()}}(e):i(n(e))}},{"./_object-gopn":78,"./_to-iobject":116}],78:[function(e,t,r){var n=e("./_object-keys-internal"),i=e("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},{"./_enum-bug-keys":33,"./_object-keys-internal":81}],79:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],80:[function(e,t,r){var n=e("./_has"),i=e("./_to-object"),o=e("./_shared-key")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},{"./_has":43,"./_shared-key":101,"./_to-object":118}],81:[function(e,t,r){var n=e("./_has"),i=e("./_to-iobject"),o=e("./_array-includes")(!1),s=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var r,a=i(e),c=0,l=[];for(r in a)r!=s&&n(a,r)&&l.push(r);for(;t.length>c;)n(a,r=t[c++])&&(~o(l,r)||l.push(r));return l}},{"./_array-includes":13,"./_has":43,"./_shared-key":101,"./_to-iobject":116}],82:[function(e,t,r){var n=e("./_object-keys-internal"),i=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"./_enum-bug-keys":33,"./_object-keys-internal":81}],83:[function(e,t,r){r.f={}.propertyIsEnumerable},{}],84:[function(e,t,r){var n=e("./_export"),i=e("./_core"),o=e("./_fails");t.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],s={};s[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},{"./_core":25,"./_export":35,"./_fails":37}],85:[function(e,t,r){var n=e("./_object-keys"),i=e("./_to-iobject"),o=e("./_object-pie").f;t.exports=function(e){return function(t){for(var r,s=i(t),a=n(s),c=a.length,l=0,u=[];c>l;)o.call(s,r=a[l++])&&u.push(e?[r,s[r]]:s[r]);return u}}},{"./_object-keys":82,"./_object-pie":83,"./_to-iobject":116}],86:[function(e,t,r){var n=e("./_object-gopn"),i=e("./_object-gops"),o=e("./_an-object"),s=e("./_global").Reflect;t.exports=s&&s.ownKeys||function(e){var t=n.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},{"./_an-object":9,"./_global":42,"./_object-gopn":78,"./_object-gops":79}],87:[function(e,t,r){var n=e("./_global").parseFloat,i=e("./_string-trim").trim;t.exports=1/n(e("./_string-ws")+"-0")!=-1/0?function(e){var t=i(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},{"./_global":42,"./_string-trim":110,"./_string-ws":111}],88:[function(e,t,r){var n=e("./_global").parseInt,i=e("./_string-trim").trim,o=e("./_string-ws"),s=/^[-+]?0[xX]/;t.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(e,t){var r=i(String(e),3);return n(r,t>>>0||(s.test(r)?16:10))}:n},{"./_global":42,"./_string-trim":110,"./_string-ws":111}],89:[function(e,t,r){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],90:[function(e,t,r){var n=e("./_an-object"),i=e("./_is-object"),o=e("./_new-promise-capability");t.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},{"./_an-object":9,"./_is-object":53,"./_new-promise-capability":70}],91:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],92:[function(e,t,r){var n=e("./_redefine");t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},{"./_redefine":93}],93:[function(e,t,r){var n=e("./_global"),i=e("./_hide"),o=e("./_has"),s=e("./_uid")("src"),a=Function.toString,c=(""+a).split("toString");e("./_core").inspectSource=function(e){return a.call(e)},(t.exports=function(e,t,r,a){var l="function"==typeof r;l&&(o(r,"name")||i(r,"name",t)),e[t]!==r&&(l&&(o(r,s)||i(r,s,e[t]?""+e[t]:c.join(String(t)))),e===n?e[t]=r:a?e[t]?e[t]=r:i(e,t,r):(delete e[t],i(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},{"./_core":25,"./_global":42,"./_has":43,"./_hide":44,"./_uid":123}],94:[function(e,t,r){t.exports=function(e,t){var r=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,r)}}},{}],95:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],96:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_a-function"),o=e("./_ctx"),s=e("./_for-of");t.exports=function(e){n(n.S,e,{from:function(e){var t,r,n,a,c=arguments[1];return i(this),(t=void 0!==c)&&i(c),void 0==e?new this:(r=[],t?(n=0,a=o(c,arguments[2],2),s(e,!1,function(e){r.push(a(e,n++))})):s(e,!1,r.push,r),new this(r))}})}},{"./_a-function":5,"./_ctx":27,"./_export":35,"./_for-of":41}],97:[function(e,t,r){"use strict";var n=e("./_export");t.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},{"./_export":35}],98:[function(e,t,r){var n=e("./_is-object"),i=e("./_an-object"),o=function(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,n){try{(n=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),r=!(t instanceof Array)}catch(e){r=!0}return function(e,t){return o(e,t),r?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:o}},{"./_an-object":9,"./_ctx":27,"./_is-object":53,"./_object-gopd":76}],99:[function(e,t,r){"use strict";var n=e("./_global"),i=e("./_object-dp"),o=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t=n[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_descriptors":31,"./_global":42,"./_object-dp":73,"./_wks":128}],100:[function(e,t,r){var n=e("./_object-dp").f,i=e("./_has"),o=e("./_wks")("toStringTag");t.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},{"./_has":43,"./_object-dp":73,"./_wks":128}],101:[function(e,t,r){var n=e("./_shared")("keys"),i=e("./_uid");t.exports=function(e){return n[e]||(n[e]=i(e))}},{"./_shared":102,"./_uid":123}],102:[function(e,t,r){var n=e("./_global"),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(e){return i[e]||(i[e]={})}},{"./_global":42}],103:[function(e,t,r){var n=e("./_an-object"),i=e("./_a-function"),o=e("./_wks")("species");t.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||void 0==(r=n(s)[o])?t:i(r)}},{"./_a-function":5,"./_an-object":9,"./_wks":128}],104:[function(e,t,r){"use strict";var n=e("./_fails");t.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},{"./_fails":37}],105:[function(e,t,r){var n=e("./_to-integer"),i=e("./_defined");t.exports=function(e){return function(t,r){var o,s,a=String(i(t)),c=n(r),l=a.length;return c<0||c>=l?e?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},{"./_defined":30,"./_to-integer":115}],106:[function(e,t,r){var n=e("./_is-regexp"),i=e("./_defined");t.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},{"./_defined":30,"./_is-regexp":54}],107:[function(e,t,r){var n=e("./_export"),i=e("./_fails"),o=e("./_defined"),s=/"/g,a=function(e,t,r,n){var i=String(o(e)),a="<"+t;return""!==r&&(a+=" "+r+'="'+String(n).replace(s,"&quot;")+'"'),a+">"+i+"</"+t+">"};t.exports=function(e,t){var r={};r[e]=t(a),n(n.P+n.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)}},{"./_defined":30,"./_export":35,"./_fails":37}],108:[function(e,t,r){var n=e("./_to-length"),i=e("./_string-repeat"),o=e("./_defined");t.exports=function(e,t,r,s){var a=String(o(e)),c=a.length,l=void 0===r?" ":String(r),u=n(t);if(u<=c||""==l)return a;var f=u-c,h=i.call(l,Math.ceil(f/l.length));return h.length>f&&(h=h.slice(0,f)),s?h+a:a+h}},{"./_defined":30,"./_string-repeat":109,"./_to-length":117}],109:[function(e,t,r){"use strict";var n=e("./_to-integer"),i=e("./_defined");t.exports=function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},{"./_defined":30,"./_to-integer":115}],110:[function(e,t,r){var n=e("./_export"),i=e("./_defined"),o=e("./_fails"),s=e("./_string-ws"),a="["+s+"]",c=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),u=function(e,t,r){var i={},a=o(function(){return!!s[e]()||"​\85"!="​\85"[e]()}),c=i[e]=a?t(f):s[e];r&&(i[r]=c),n(n.P+n.F*a,"String",i)},f=u.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};t.exports=u},{"./_defined":30,"./_export":35,"./_fails":37,"./_string-ws":111}],111:[function(e,t,r){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],112:[function(e,t,r){var n,i,o,s=e("./_ctx"),a=e("./_invoke"),c=e("./_html"),l=e("./_dom-create"),u=e("./_global"),f=u.process,h=u.setImmediate,_=u.clearImmediate,p=u.MessageChannel,d=u.Dispatch,m=0,y={},b=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},v=function(e){b.call(e.data)};h&&_||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return y[++m]=function(){a("function"==typeof e?e:Function(e),t)},n(m),m},_=function(e){delete y[e]},"process"==e("./_cof")(f)?n=function(e){f.nextTick(s(b,e,1))}:d&&d.now?n=function(e){d.now(s(b,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=v,n=s(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(e){u.postMessage(e+"","*")},u.addEventListener("message",v,!1)):n="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),b.call(e)}}:function(e){setTimeout(s(b,e,1),0)}),t.exports={set:h,clear:_}},{"./_cof":20,"./_ctx":27,"./_dom-create":32,"./_global":42,"./_html":45,"./_invoke":48}],113:[function(e,t,r){var n=e("./_to-integer"),i=Math.max,o=Math.min;t.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},{"./_to-integer":115}],114:[function(e,t,r){var n=e("./_to-integer"),i=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":115,"./_to-length":117}],115:[function(e,t,r){var n=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},{}],116:[function(e,t,r){var n=e("./_iobject"),i=e("./_defined");t.exports=function(e){return n(i(e))}},{"./_defined":30,"./_iobject":49}],117:[function(e,t,r){var n=e("./_to-integer"),i=Math.min;t.exports=function(e){return e>0?i(n(e),9007199254740991):0}},{"./_to-integer":115}],118:[function(e,t,r){var n=e("./_defined");t.exports=function(e){return Object(n(e))}},{"./_defined":30}],119:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":53}],120:[function(e,t,r){"use strict";if(e("./_descriptors")){var n=e("./_library"),i=e("./_global"),o=e("./_fails"),s=e("./_export"),a=e("./_typed"),c=e("./_typed-buffer"),l=e("./_ctx"),u=e("./_an-instance"),f=e("./_property-desc"),h=e("./_hide"),_=e("./_redefine-all"),p=e("./_to-integer"),d=e("./_to-length"),m=e("./_to-index"),y=e("./_to-absolute-index"),b=e("./_to-primitive"),v=e("./_has"),g=e("./_classof"),x=e("./_is-object"),w=e("./_to-object"),C=e("./_is-array-iter"),S=e("./_object-create"),k=e("./_object-gpo"),E=e("./_object-gopn").f,A=e("./core.get-iterator-method"),j=e("./_uid"),O=e("./_wks"),M=e("./_array-methods"),L=e("./_array-includes"),T=e("./_species-constructor"),R=e("./es6.array.iterator"),I=e("./_iterators"),P=e("./_iter-detect"),N=e("./_set-species"),D=e("./_array-fill"),F=e("./_array-copy-within"),B=e("./_object-dp"),H=e("./_object-gopd"),Z=B.f,z=H.f,W=i.RangeError,U=i.TypeError,V=i.Uint8Array,G=Array.prototype,K=c.ArrayBuffer,X=c.DataView,q=M(0),Y=M(2),Q=M(3),J=M(4),$=M(5),ee=M(6),te=L(!0),re=L(!1),ne=R.values,ie=R.keys,oe=R.entries,se=G.lastIndexOf,ae=G.reduce,ce=G.reduceRight,le=G.join,ue=G.sort,fe=G.slice,he=G.toString,_e=G.toLocaleString,pe=O("iterator"),de=O("toStringTag"),me=j("typed_constructor"),ye=j("def_constructor"),be=a.CONSTR,ve=a.TYPED,ge=a.VIEW,xe=M(1,function(e,t){return Ee(T(e,e[ye]),t)}),we=o(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),Ce=!!V&&!!V.prototype.set&&o(function(){new V(1).set({})}),Se=function(e,t){var r=p(e);if(r<0||r%t)throw W("Wrong offset!");return r},ke=function(e){if(x(e)&&ve in e)return e;throw U(e+" is not a typed array!")},Ee=function(e,t){if(!(x(e)&&me in e))throw U("It is not a typed array constructor!");return new e(t)},Ae=function(e,t){return je(T(e,e[ye]),t)},je=function(e,t){for(var r=0,n=t.length,i=Ee(e,n);n>r;)i[r]=t[r++];return i},Oe=function(e,t,r){Z(e,t,{get:function(){return this._d[r]}})},Me=function(e){var t,r,n,i,o,s,a=w(e),c=arguments.length,u=c>1?arguments[1]:void 0,f=void 0!==u,h=A(a);if(void 0!=h&&!C(h)){for(s=h.call(a),n=[],t=0;!(o=s.next()).done;t++)n.push(o.value);a=n}for(f&&c>2&&(u=l(u,arguments[2],2)),t=0,r=d(a.length),i=Ee(this,r);r>t;t++)i[t]=f?u(a[t],t):a[t];return i},Le=function(){for(var e=0,t=arguments.length,r=Ee(this,t);t>e;)r[e]=arguments[e++];return r},Te=!!V&&o(function(){_e.call(new V(1))}),Re=function(){return _e.apply(Te?fe.call(ke(this)):ke(this),arguments)},Ie={copyWithin:function(e,t){return F.call(ke(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(ke(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return D.apply(ke(this),arguments)},filter:function(e){return Ae(this,Y(ke(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(ke(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(ke(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){q(ke(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(ke(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(ke(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return le.apply(ke(this),arguments)},lastIndexOf:function(e){return se.apply(ke(this),arguments)},map:function(e){return xe(ke(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ae.apply(ke(this),arguments)},reduceRight:function(e){return ce.apply(ke(this),arguments)},reverse:function(){for(var e,t=ke(this).length,r=Math.floor(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this},some:function(e){return Q(ke(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ue.call(ke(this),e)},subarray:function(e,t){var r=ke(this),n=r.length,i=y(e,n);return new(T(r,r[ye]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===t?n:y(t,n))-i))}},Pe=function(e,t){return Ae(this,fe.call(ke(this),e,t))},Ne=function(e){ke(this);var t=Se(arguments[1],1),r=this.length,n=w(e),i=d(n.length),o=0;if(i+t>r)throw W("Wrong length!");for(;o<i;)this[t+o]=n[o++]},De={entries:function(){return oe.call(ke(this))},keys:function(){return ie.call(ke(this))},values:function(){return ne.call(ke(this))}},Fe=function(e,t){return x(e)&&e[ve]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Be=function(e,t){return Fe(e,t=b(t,!0))?f(2,e[t]):z(e,t)},He=function(e,t,r){return!(Fe(e,t=b(t,!0))&&x(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?Z(e,t,r):(e[t]=r.value,e)};be||(H.f=Be,B.f=He),s(s.S+s.F*!be,"Object",{getOwnPropertyDescriptor:Be,defineProperty:He}),o(function(){he.call({})})&&(he=_e=function(){return le.call(this)});var Ze=_({},Ie);_(Ze,De),h(Ze,pe,De.values),_(Ze,{slice:Pe,set:Ne,constructor:function(){},toString:he,toLocaleString:Re}),Oe(Ze,"buffer","b"),Oe(Ze,"byteOffset","o"),Oe(Ze,"byteLength","l"),Oe(Ze,"length","e"),Z(Ze,de,{get:function(){return this[ve]}}),t.exports=function(e,t,r,c){var l=e+((c=!!c)?"Clamped":"")+"Array",f="get"+e,_="set"+e,p=i[l],y=p||{},b=p&&k(p),v=!p||!a.ABV,w={},C=p&&p.prototype,A=function(e,r){Z(e,r,{get:function(){return function(e,r){var n=e._d;return n.v[f](r*t+n.o,we)}(this,r)},set:function(e){return function(e,r,n){var i=e._d;c&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),i.v[_](r*t+i.o,n,we)}(this,r,e)},enumerable:!0})};v?(p=r(function(e,r,n,i){u(e,p,l,"_d");var o,s,a,c,f=0,_=0;if(x(r)){if(!(r instanceof K||"ArrayBuffer"==(c=g(r))||"SharedArrayBuffer"==c))return ve in r?je(p,r):Me.call(p,r);o=r,_=Se(n,t);var y=r.byteLength;if(void 0===i){if(y%t)throw W("Wrong length!");if((s=y-_)<0)throw W("Wrong length!")}else if((s=d(i)*t)+_>y)throw W("Wrong length!");a=s/t}else a=m(r),o=new K(s=a*t);for(h(e,"_d",{b:o,o:_,l:s,e:a,v:new X(o)});f<a;)A(e,f++)}),C=p.prototype=S(Ze),h(C,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&P(function(e){new p,new p(null),new p(1.5),new p(e)},!0)||(p=r(function(e,r,n,i){u(e,p,l);var o;return x(r)?r instanceof K||"ArrayBuffer"==(o=g(r))||"SharedArrayBuffer"==o?void 0!==i?new y(r,Se(n,t),i):void 0!==n?new y(r,Se(n,t)):new y(r):ve in r?je(p,r):Me.call(p,r):new y(m(r))}),q(b!==Function.prototype?E(y).concat(E(b)):E(y),function(e){e in p||h(p,e,y[e])}),p.prototype=C,n||(C.constructor=p));var j=C[pe],O=!!j&&("values"==j.name||void 0==j.name),M=De.values;h(p,me,!0),h(C,ve,l),h(C,ge,!0),h(C,ye,p),(c?new p(1)[de]==l:de in C)||Z(C,de,{get:function(){return l}}),w[l]=p,s(s.G+s.W+s.F*(p!=y),w),s(s.S,l,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*o(function(){y.of.call(p,1)}),l,{from:Me,of:Le}),"BYTES_PER_ELEMENT"in C||h(C,"BYTES_PER_ELEMENT",t),s(s.P,l,Ie),N(l),s(s.P+s.F*Ce,l,{set:Ne}),s(s.P+s.F*!O,l,De),n||C.toString==he||(C.toString=he),s(s.P+s.F*o(function(){new p(1).slice()}),l,{slice:Pe}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){C.toLocaleString.call([1,2])})),l,{toLocaleString:Re}),I[l]=O?j:M,n||O||h(C,pe,M)}}else t.exports=function(){}},{"./_an-instance":8,"./_array-copy-within":10,"./_array-fill":11,"./_array-includes":13,"./_array-methods":14,"./_classof":19,"./_ctx":27,"./_descriptors":31,"./_export":35,"./_fails":37,"./_global":42,"./_has":43,"./_hide":44,"./_is-array-iter":50,"./_is-object":53,"./_iter-detect":58,"./_iterators":60,"./_library":61,"./_object-create":72,"./_object-dp":73,"./_object-gopd":76,"./_object-gopn":78,"./_object-gpo":80,"./_property-desc":91,"./_redefine-all":92,"./_set-species":99,"./_species-constructor":103,"./_to-absolute-index":113,"./_to-index":114,"./_to-integer":115,"./_to-length":117,"./_to-object":118,"./_to-primitive":119,"./_typed":122,"./_typed-buffer":121,"./_uid":123,"./_wks":128,"./core.get-iterator-method":129,"./es6.array.iterator":141}],121:[function(e,t,r){"use strict";function n(e,t,r){var n,i,o,s=new Array(r),a=8*r-t-1,c=(1<<a)-1,l=c>>1,u=23===t?F(2,-24)-F(2,-77):0,f=0,h=e<0||0===e&&1/e<0?1:0;for((e=D(e))!=e||e===P?(i=e!=e?1:0,n=c):(n=B(H(e)/Z),e*(o=F(2,-n))<1&&(n--,o*=2),(e+=n+l>=1?u/o:u*F(2,1-l))*o>=2&&(n++,o/=2),n+l>=c?(i=0,n=c):n+l>=1?(i=(e*o-1)*F(2,t),n+=l):(i=e*F(2,l-1)*F(2,t),n=0));t>=8;s[f++]=255&i,i/=256,t-=8);for(n=n<<t|i,a+=t;a>0;s[f++]=255&n,n/=256,a-=8);return s[--f]|=128*h,s}function i(e,t,r){var n,i=8*r-t-1,o=(1<<i)-1,s=o>>1,a=i-7,c=r-1,l=e[c--],u=127&l;for(l>>=7;a>0;u=256*u+e[c],c--,a-=8);for(n=u&(1<<-a)-1,u>>=-a,a+=t;a>0;n=256*n+e[c],c--,a-=8);if(0===u)u=1-s;else{if(u===o)return n?NaN:l?-P:P;n+=F(2,t),u-=s}return(l?-1:1)*n*F(2,u-t)}function o(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function s(e){return[255&e]}function a(e){return[255&e,e>>8&255]}function c(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function l(e){return n(e,52,8)}function u(e){return n(e,23,4)}function f(e,t,r){E(e[O],t,{get:function(){return this[r]}})}function h(e,t,r,n){var i=S(+r);if(i+t>e[W])throw I(M);var o=e[z]._b,s=i+e[U],a=o.slice(s,s+t);return n?a:a.reverse()}function _(e,t,r,n,i,o){var s=S(+r);if(s+t>e[W])throw I(M);for(var a=e[z]._b,c=s+e[U],l=n(+i),u=0;u<t;u++)a[c+u]=l[o?u:t-u-1]}var p=e("./_global"),d=e("./_descriptors"),m=e("./_library"),y=e("./_typed"),b=e("./_hide"),v=e("./_redefine-all"),g=e("./_fails"),x=e("./_an-instance"),w=e("./_to-integer"),C=e("./_to-length"),S=e("./_to-index"),k=e("./_object-gopn").f,E=e("./_object-dp").f,A=e("./_array-fill"),j=e("./_set-to-string-tag"),O="prototype",M="Wrong index!",L=p.ArrayBuffer,T=p.DataView,R=p.Math,I=p.RangeError,P=p.Infinity,N=L,D=R.abs,F=R.pow,B=R.floor,H=R.log,Z=R.LN2,z=d?"_b":"buffer",W=d?"_l":"byteLength",U=d?"_o":"byteOffset";if(y.ABV){if(!g(function(){L(1)})||!g(function(){new L(-1)})||g(function(){return new L,new L(1.5),new L(NaN),"ArrayBuffer"!=L.name})){for(var V,G=(L=function(e){return x(this,L),new N(S(e))})[O]=N[O],K=k(N),X=0;K.length>X;)(V=K[X++])in L||b(L,V,N[V]);m||(G.constructor=L)}var q=new T(new L(2)),Y=T[O].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||v(T[O],{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},!0)}else L=function(e){x(this,L,"ArrayBuffer");var t=S(e);this._b=A.call(new Array(t),0),this[W]=t},T=function(e,t,r){x(this,T,"DataView"),x(e,L,"DataView");var n=e[W],i=w(t);if(i<0||i>n)throw I("Wrong offset!");if(r=void 0===r?n-i:C(r),i+r>n)throw I("Wrong length!");this[z]=e,this[U]=i,this[W]=r},d&&(f(L,"byteLength","_l"),f(T,"buffer","_b"),f(T,"byteLength","_l"),f(T,"byteOffset","_o")),v(T[O],{getInt8:function(e){return h(this,1,e)[0]<<24>>24},getUint8:function(e){return h(this,1,e)[0]},getInt16:function(e){var t=h(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=h(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return o(h(this,4,e,arguments[1]))},getUint32:function(e){return o(h(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return i(h(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return i(h(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){_(this,1,e,s,t)},setUint8:function(e,t){_(this,1,e,s,t)},setInt16:function(e,t){_(this,2,e,a,t,arguments[2])},setUint16:function(e,t){_(this,2,e,a,t,arguments[2])},setInt32:function(e,t){_(this,4,e,c,t,arguments[2])},setUint32:function(e,t){_(this,4,e,c,t,arguments[2])},setFloat32:function(e,t){_(this,4,e,u,t,arguments[2])},setFloat64:function(e,t){_(this,8,e,l,t,arguments[2])}});j(L,"ArrayBuffer"),j(T,"DataView"),b(T[O],y.VIEW,!0),r.ArrayBuffer=L,r.DataView=T},{"./_an-instance":8,"./_array-fill":11,"./_descriptors":31,"./_fails":37,"./_global":42,"./_hide":44,"./_library":61,"./_object-dp":73,"./_object-gopn":78,"./_redefine-all":92,"./_set-to-string-tag":100,"./_to-index":114,"./_to-integer":115,"./_to-length":117,"./_typed":122}],122:[function(e,t,r){for(var n,i=e("./_global"),o=e("./_hide"),s=e("./_uid"),a=s("typed_array"),c=s("view"),l=!(!i.ArrayBuffer||!i.DataView),u=l,f=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(n=i[h[f++]])?(o(n.prototype,a,!0),o(n.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:a,VIEW:c}},{"./_global":42,"./_hide":44,"./_uid":123}],123:[function(e,t,r){var n=0,i=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},{}],124:[function(e,t,r){var n=e("./_global").navigator;t.exports=n&&n.userAgent||""},{"./_global":42}],125:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},{"./_is-object":53}],126:[function(e,t,r){var n=e("./_global"),i=e("./_core"),o=e("./_library"),s=e("./_wks-ext"),a=e("./_object-dp").f;t.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},{"./_core":25,"./_global":42,"./_library":61,"./_object-dp":73,"./_wks-ext":127}],127:[function(e,t,r){r.f=e("./_wks")},{"./_wks":128}],128:[function(e,t,r){var n=e("./_shared")("wks"),i=e("./_uid"),o=e("./_global").Symbol,s="function"==typeof o;(t.exports=function(e){return n[e]||(n[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=n},{"./_global":42,"./_shared":102,"./_uid":123}],129:[function(e,t,r){var n=e("./_classof"),i=e("./_wks")("iterator"),o=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[n(e)]}},{"./_classof":19,"./_core":25,"./_iterators":60,"./_wks":128}],130:[function(e,t,r){var n=e("./_export"),i=e("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(e){return i(e)}})},{"./_export":35,"./_replacer":94}],131:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{copyWithin:e("./_array-copy-within")}),e("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":7,"./_array-copy-within":10,"./_export":35}],132:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(4);n(n.P+n.F*!e("./_strict-method")([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],133:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{fill:e("./_array-fill")}),e("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":7,"./_array-fill":11,"./_export":35}],134:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(2);n(n.P+n.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],135:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),n(n.P+n.F*s,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")(o)},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":35}],136:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")("find")},{"./_add-to-unscopables":7,"./_array-methods":14,"./_export":35}],137:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(0),o=e("./_strict-method")([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],138:[function(e,t,r){"use strict";var n=e("./_ctx"),i=e("./_export"),o=e("./_to-object"),s=e("./_iter-call"),a=e("./_is-array-iter"),c=e("./_to-length"),l=e("./_create-property"),u=e("./core.get-iterator-method");i(i.S+i.F*!e("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,f,h=o(e),_="function"==typeof this?this:Array,p=arguments.length,d=p>1?arguments[1]:void 0,m=void 0!==d,y=0,b=u(h);if(m&&(d=n(d,p>2?arguments[2]:void 0,2)),void 0==b||_==Array&&a(b))for(r=new _(t=c(h.length));t>y;y++)l(r,y,m?d(h[y],y):h[y]);else for(f=b.call(h),r=new _;!(i=f.next()).done;y++)l(r,y,m?s(f,d,[i.value,y],!0):i.value);return r.length=y,r}})},{"./_create-property":26,"./_ctx":27,"./_export":35,"./_is-array-iter":50,"./_iter-call":55,"./_iter-detect":58,"./_to-length":117,"./_to-object":118,"./core.get-iterator-method":129}],139:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-includes")(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(s||!e("./_strict-method")(o)),"Array",{indexOf:function(e){return s?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},{"./_array-includes":13,"./_export":35,"./_strict-method":104}],140:[function(e,t,r){var n=e("./_export");n(n.S,"Array",{isArray:e("./_is-array")})},{"./_export":35,"./_is-array":51}],141:[function(e,t,r){"use strict";var n=e("./_add-to-unscopables"),i=e("./_iter-step"),o=e("./_iterators"),s=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,r):"values"==t?i(0,e[r]):i(0,[r,e[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":7,"./_iter-define":57,"./_iter-step":59,"./_iterators":60,"./_to-iobject":116}],142:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-iobject"),o=[].join;n(n.P+n.F*(e("./_iobject")!=Object||!e("./_strict-method")(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},{"./_export":35,"./_iobject":49,"./_strict-method":104,"./_to-iobject":116}],143:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-iobject"),o=e("./_to-integer"),s=e("./_to-length"),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(c||!e("./_strict-method")(a)),"Array",{lastIndexOf:function(e){if(c)return a.apply(this,arguments)||0;var t=i(this),r=s(t.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}})},{"./_export":35,"./_strict-method":104,"./_to-integer":115,"./_to-iobject":116,"./_to-length":117}],144:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(1);n(n.P+n.F*!e("./_strict-method")([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],145:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_create-property");n(n.S+n.F*e("./_fails")(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)i(r,e,arguments[e++]);return r.length=t,r}})},{"./_create-property":26,"./_export":35,"./_fails":37}],146:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-reduce");n(n.P+n.F*!e("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},{"./_array-reduce":15,"./_export":35,"./_strict-method":104}],147:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-reduce");n(n.P+n.F*!e("./_strict-method")([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},{"./_array-reduce":15,"./_export":35,"./_strict-method":104}],148:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_html"),o=e("./_cof"),s=e("./_to-absolute-index"),a=e("./_to-length"),c=[].slice;n(n.P+n.F*e("./_fails")(function(){i&&c.call(i)}),"Array",{slice:function(e,t){var r=a(this.length),n=o(this);if(t=void 0===t?r:t,"Array"==n)return c.call(this,e,t);for(var i=s(e,r),l=s(t,r),u=a(l-i),f=new Array(u),h=0;h<u;h++)f[h]="String"==n?this.charAt(i+h):this[i+h];return f}})},{"./_cof":20,"./_export":35,"./_fails":37,"./_html":45,"./_to-absolute-index":113,"./_to-length":117}],149:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-methods")(3);n(n.P+n.F*!e("./_strict-method")([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},{"./_array-methods":14,"./_export":35,"./_strict-method":104}],150:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_a-function"),o=e("./_to-object"),s=e("./_fails"),a=[].sort,c=[1,2,3];n(n.P+n.F*(s(function(){c.sort(void 0)})||!s(function(){c.sort(null)})||!e("./_strict-method")(a)),"Array",{sort:function(e){return void 0===e?a.call(o(this)):a.call(o(this),i(e))}})},{"./_a-function":5,"./_export":35,"./_fails":37,"./_strict-method":104,"./_to-object":118}],151:[function(e,t,r){e("./_set-species")("Array")},{"./_set-species":99}],152:[function(e,t,r){var n=e("./_export");n(n.S,"Date",{now:function(){return(new Date).getTime()}})},{"./_export":35}],153:[function(e,t,r){var n=e("./_export"),i=e("./_date-to-iso-string");n(n.P+n.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},{"./_date-to-iso-string":28,"./_export":35}],154:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_to-primitive");n(n.P+n.F*e("./_fails")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),r=o(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}})},{"./_export":35,"./_fails":37,"./_to-object":118,"./_to-primitive":119}],155:[function(e,t,r){var n=e("./_wks")("toPrimitive"),i=Date.prototype;n in i||e("./_hide")(i,n,e("./_date-to-primitive"))},{"./_date-to-primitive":29,"./_hide":44,"./_wks":128}],156:[function(e,t,r){var n=Date.prototype,i=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&e("./_redefine")(n,"toString",function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"})},{"./_redefine":93}],157:[function(e,t,r){var n=e("./_export");n(n.P,"Function",{bind:e("./_bind")})},{"./_bind":18,"./_export":35}],158:[function(e,t,r){"use strict";var n=e("./_is-object"),i=e("./_object-gpo"),o=e("./_wks")("hasInstance"),s=Function.prototype;o in s||e("./_object-dp").f(s,o,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},{"./_is-object":53,"./_object-dp":73,"./_object-gpo":80,"./_wks":128}],159:[function(e,t,r){var n=e("./_object-dp").f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||e("./_descriptors")&&n(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},{"./_descriptors":31,"./_object-dp":73}],160:[function(e,t,r){"use strict";var n=e("./_collection-strong"),i=e("./_validate-collection");t.exports=e("./_collection")("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(i(this,"Map"),0===e?0:e,t)}},n,!0)},{"./_collection":24,"./_collection-strong":21,"./_validate-collection":125}],161:[function(e,t,r){var n=e("./_export"),i=e("./_math-log1p"),o=Math.sqrt,s=Math.acosh;n(n.S+n.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},{"./_export":35,"./_math-log1p":64}],162:[function(e,t,r){function n(e){return isFinite(e=+e)&&0!=e?e<0?-n(-e):Math.log(e+Math.sqrt(e*e+1)):e}var i=e("./_export"),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:n})},{"./_export":35}],163:[function(e,t,r){var n=e("./_export"),i=Math.atanh;n(n.S+n.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},{"./_export":35}],164:[function(e,t,r){var n=e("./_export"),i=e("./_math-sign");n(n.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},{"./_export":35,"./_math-sign":66}],165:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},{"./_export":35}],166:[function(e,t,r){var n=e("./_export"),i=Math.exp;n(n.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},{"./_export":35}],167:[function(e,t,r){var n=e("./_export"),i=e("./_math-expm1");n(n.S+n.F*(i!=Math.expm1),"Math",{expm1:i})},{"./_export":35,"./_math-expm1":62}],168:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{fround:e("./_math-fround")})},{"./_export":35,"./_math-fround":63}],169:[function(e,t,r){var n=e("./_export"),i=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,s=0,a=arguments.length,c=0;s<a;)c<(r=i(arguments[s++]))?(o=o*(n=c/r)*n+1,c=r):o+=r>0?(n=r/c)*n:r;return c===1/0?1/0:c*Math.sqrt(o)}})},{"./_export":35}],170:[function(e,t,r){var n=e("./_export"),i=Math.imul;n(n.S+n.F*e("./_fails")(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},{"./_export":35,"./_fails":37}],171:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},{"./_export":35}],172:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log1p:e("./_math-log1p")})},{"./_export":35,"./_math-log1p":64}],173:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},{"./_export":35}],174:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{sign:e("./_math-sign")})},{"./_export":35,"./_math-sign":66}],175:[function(e,t,r){var n=e("./_export"),i=e("./_math-expm1"),o=Math.exp;n(n.S+n.F*e("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},{"./_export":35,"./_fails":37,"./_math-expm1":62}],176:[function(e,t,r){var n=e("./_export"),i=e("./_math-expm1"),o=Math.exp;n(n.S,"Math",{tanh:function(e){var t=i(e=+e),r=i(-e);return t==1/0?1:r==1/0?-1:(t-r)/(o(e)+o(-e))}})},{"./_export":35,"./_math-expm1":62}],177:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},{"./_export":35}],178:[function(e,t,r){"use strict";var n=e("./_global"),i=e("./_has"),o=e("./_cof"),s=e("./_inherit-if-required"),a=e("./_to-primitive"),c=e("./_fails"),l=e("./_object-gopn").f,u=e("./_object-gopd").f,f=e("./_object-dp").f,h=e("./_string-trim").trim,_=n.Number,p=_,d=_.prototype,m="Number"==o(e("./_object-create")(d)),y="trim"in String.prototype,b=function(e){var t=a(e,!1);if("string"==typeof t&&t.length>2){var r,n,i,o=(t=y?t.trim():h(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+t}for(var s,c=t.slice(2),l=0,u=c.length;l<u;l++)if((s=c.charCodeAt(l))<48||s>i)return NaN;return parseInt(c,n)}}return+t};if(!_(" 0o1")||!_("0b1")||_("+0x1")){_=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof _&&(m?c(function(){d.valueOf.call(r)}):"Number"!=o(r))?s(new p(b(t)),r,_):b(t)};for(var v,g=e("./_descriptors")?l(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;g.length>x;x++)i(p,v=g[x])&&!i(_,v)&&f(_,v,u(p,v));_.prototype=d,d.constructor=_,e("./_redefine")(n,"Number",_)}},{"./_cof":20,"./_descriptors":31,"./_fails":37,"./_global":42,"./_has":43,"./_inherit-if-required":47,"./_object-create":72,"./_object-dp":73,"./_object-gopd":76,"./_object-gopn":78,"./_redefine":93,"./_string-trim":110,"./_to-primitive":119}],179:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":35}],180:[function(e,t,r){var n=e("./_export"),i=e("./_global").isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},{"./_export":35,"./_global":42}],181:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isInteger:e("./_is-integer")})},{"./_export":35,"./_is-integer":52}],182:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isNaN:function(e){return e!=e}})},{"./_export":35}],183:[function(e,t,r){var n=e("./_export"),i=e("./_is-integer"),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},{"./_export":35,"./_is-integer":52}],184:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":35}],185:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":35}],186:[function(e,t,r){var n=e("./_export"),i=e("./_parse-float");n(n.S+n.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},{"./_export":35,"./_parse-float":87}],187:[function(e,t,r){var n=e("./_export"),i=e("./_parse-int");n(n.S+n.F*(Number.parseInt!=i),"Number",{parseInt:i})},{"./_export":35,"./_parse-int":88}],188:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-integer"),o=e("./_a-number-value"),s=e("./_string-repeat"),a=1..toFixed,c=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",f=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*l[r],l[r]=n%1e7,n=c(n/1e7)},h=function(e){for(var t=6,r=0;--t>=0;)r+=l[t],l[t]=c(r/e),r=r%e*1e7},_=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==l[e]){var r=String(l[e]);t=""===t?r:t+s.call("0",7-r.length)+r}return t},p=function(e,t,r){return 0===t?r:t%2==1?p(e,t-1,r*e):p(e*e,t/2,r)};n(n.P+n.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e("./_fails")(function(){a.call({})})),"Number",{toFixed:function(e){var t,r,n,a,c=o(this,u),l=i(e),d="",m="0";if(l<0||l>20)throw RangeError(u);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(d="-",c=-c),c>1e-21)if(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(c*p(2,69,1))-69,r=t<0?c*p(2,-t,1):c/p(2,t,1),r*=4503599627370496,(t=52-t)>0){for(f(0,r),n=l;n>=7;)f(1e7,0),n-=7;for(f(p(10,n,1),0),n=t-1;n>=23;)h(1<<23),n-=23;h(1<<n),f(1,1),h(2),m=_()}else f(0,r),f(1<<-t,0),m=_()+s.call("0",l);return m=l>0?d+((a=m.length)<=l?"0."+s.call("0",l-a)+m:m.slice(0,a-l)+"."+m.slice(a-l)):d+m}})},{"./_a-number-value":6,"./_export":35,"./_fails":37,"./_string-repeat":109,"./_to-integer":115}],189:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_fails"),o=e("./_a-number-value"),s=1..toPrecision;n(n.P+n.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?s.call(t):s.call(t,e)}})},{"./_a-number-value":6,"./_export":35,"./_fails":37}],190:[function(e,t,r){var n=e("./_export");n(n.S+n.F,"Object",{assign:e("./_object-assign")})},{"./_export":35,"./_object-assign":71}],191:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{create:e("./_object-create")})},{"./_export":35,"./_object-create":72}],192:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperties:e("./_object-dps")})},{"./_descriptors":31,"./_export":35,"./_object-dps":74}],193:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":31,"./_export":35,"./_object-dp":73}],194:[function(e,t,r){var n=e("./_is-object"),i=e("./_meta").onFreeze;e("./_object-sap")("freeze",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},{"./_is-object":53,"./_meta":67,"./_object-sap":84}],195:[function(e,t,r){var n=e("./_to-iobject"),i=e("./_object-gopd").f;e("./_object-sap")("getOwnPropertyDescriptor",function(){return function(e,t){return i(n(e),t)}})},{"./_object-gopd":76,"./_object-sap":84,"./_to-iobject":116}],196:[function(e,t,r){e("./_object-sap")("getOwnPropertyNames",function(){return e("./_object-gopn-ext").f})},{"./_object-gopn-ext":77,"./_object-sap":84}],197:[function(e,t,r){var n=e("./_to-object"),i=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",function(){return function(e){return i(n(e))}})},{"./_object-gpo":80,"./_object-sap":84,"./_to-object":118}],198:[function(e,t,r){var n=e("./_is-object");e("./_object-sap")("isExtensible",function(e){return function(t){return!!n(t)&&(!e||e(t))}})},{"./_is-object":53,"./_object-sap":84}],199:[function(e,t,r){var n=e("./_is-object");e("./_object-sap")("isFrozen",function(e){return function(t){return!n(t)||!!e&&e(t)}})},{"./_is-object":53,"./_object-sap":84}],200:[function(e,t,r){var n=e("./_is-object");e("./_object-sap")("isSealed",function(e){return function(t){return!n(t)||!!e&&e(t)}})},{"./_is-object":53,"./_object-sap":84}],201:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{is:e("./_same-value")})},{"./_export":35,"./_same-value":95}],202:[function(e,t,r){var n=e("./_to-object"),i=e("./_object-keys");e("./_object-sap")("keys",function(){return function(e){return i(n(e))}})},{"./_object-keys":82,"./_object-sap":84,"./_to-object":118}],203:[function(e,t,r){var n=e("./_is-object"),i=e("./_meta").onFreeze;e("./_object-sap")("preventExtensions",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},{"./_is-object":53,"./_meta":67,"./_object-sap":84}],204:[function(e,t,r){var n=e("./_is-object"),i=e("./_meta").onFreeze;e("./_object-sap")("seal",function(e){return function(t){return e&&n(t)?e(i(t)):t}})},{"./_is-object":53,"./_meta":67,"./_object-sap":84}],205:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{setPrototypeOf:e("./_set-proto").set})},{"./_export":35,"./_set-proto":98}],206:[function(e,t,r){"use strict";var n=e("./_classof"),i={};i[e("./_wks")("toStringTag")]="z",i+""!="[object z]"&&e("./_redefine")(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},{"./_classof":19,"./_redefine":93,"./_wks":128}],207:[function(e,t,r){var n=e("./_export"),i=e("./_parse-float");n(n.G+n.F*(parseFloat!=i),{parseFloat:i})},{"./_export":35,"./_parse-float":87}],208:[function(e,t,r){var n=e("./_export"),i=e("./_parse-int");n(n.G+n.F*(parseInt!=i),{parseInt:i})},{"./_export":35,"./_parse-int":88}],209:[function(e,t,r){"use strict";var n,i,o,s,a=e("./_library"),c=e("./_global"),l=e("./_ctx"),u=e("./_classof"),f=e("./_export"),h=e("./_is-object"),_=e("./_a-function"),p=e("./_an-instance"),d=e("./_for-of"),m=e("./_species-constructor"),y=e("./_task").set,b=e("./_microtask")(),v=e("./_new-promise-capability"),g=e("./_perform"),x=e("./_promise-resolve"),w=c.TypeError,C=c.process,S=c.Promise,k="process"==u(C),E=function(){},A=i=v.f,j=!!function(){try{var t=S.resolve(1),r=(t.constructor={})[e("./_wks")("species")]=function(e){e(E,E)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof r}catch(e){}}(),O=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var r=e._c;b(function(){for(var n=e._v,i=1==e._s,o=0,s=function(t){var r,o,s=i?t.ok:t.fail,a=t.resolve,c=t.reject,l=t.domain;try{s?(i||(2==e._h&&R(e),e._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&l.exit()),r===t.promise?c(w("Promise-chain cycle")):(o=O(r))?o.call(r,a,c):a(r)):c(n)}catch(e){c(e)}};r.length>o;)s(r[o++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){y.call(c,function(){var t,r,n,i=e._v,o=T(e);if(o&&(t=g(function(){k?C.emit("unhandledRejection",i,e):(r=c.onunhandledrejection)?r({promise:e,reason:i}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",i)}),e._h=k||T(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},T=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){y.call(c,function(){var t;k?C.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},I=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},P=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw w("Promise can't be resolved itself");(t=O(e))?b(function(){var n={_w:r,_d:!1};try{t.call(e,l(P,n,1),l(I,n,1))}catch(e){I.call(n,e)}}):(r._v=e,r._s=1,M(r,!1))}catch(e){I.call({_w:r,_d:!1},e)}}};j||(S=function(e){p(this,S,"Promise","_h"),_(e),n.call(this);try{e(l(P,this,1),l(I,this,1))}catch(e){I.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e("./_redefine-all")(S.prototype,{then:function(e,t){var r=A(m(this,S));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=k?C.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=l(P,e,1),this.reject=l(I,e,1)},v.f=A=function(e){return e===S||e===s?new o(e):i(e)}),f(f.G+f.W+f.F*!j,{Promise:S}),e("./_set-to-string-tag")(S,"Promise"),e("./_set-species")("Promise"),s=e("./_core").Promise,f(f.S+f.F*!j,"Promise",{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(a||!j),"Promise",{resolve:function(e){return x(a&&this===s?S:this,e)}}),f(f.S+f.F*!(j&&e("./_iter-detect")(function(e){S.all(e).catch(E)})),"Promise",{all:function(e){var t=this,r=A(t),n=r.resolve,i=r.reject,o=g(function(){var r=[],o=0,s=1;d(e,!1,function(e){var a=o++,c=!1;r.push(void 0),s++,t.resolve(e).then(function(e){c||(c=!0,r[a]=e,--s||n(r))},i)}),--s||n(r)});return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=A(t),n=r.reject,i=g(function(){d(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},{"./_a-function":5,"./_an-instance":8,"./_classof":19,"./_core":25,"./_ctx":27,"./_export":35,"./_for-of":41,"./_global":42,"./_is-object":53,"./_iter-detect":58,"./_library":61,"./_microtask":69,"./_new-promise-capability":70,"./_perform":89,"./_promise-resolve":90,"./_redefine-all":92,"./_set-species":99,"./_set-to-string-tag":100,"./_species-constructor":103,"./_task":112,"./_wks":128}],210:[function(e,t,r){var n=e("./_export"),i=e("./_a-function"),o=e("./_an-object"),s=(e("./_global").Reflect||{}).apply,a=Function.apply;n(n.S+n.F*!e("./_fails")(function(){s(function(){})}),"Reflect",{apply:function(e,t,r){var n=i(e),c=o(r);return s?s(n,t,c):a.call(n,t,c)}})},{"./_a-function":5,"./_an-object":9,"./_export":35,"./_fails":37,"./_global":42}],211:[function(e,t,r){var n=e("./_export"),i=e("./_object-create"),o=e("./_a-function"),s=e("./_an-object"),a=e("./_is-object"),c=e("./_fails"),l=e("./_bind"),u=(e("./_global").Reflect||{}).construct,f=c(function(){function e(){}return!(u(function(){},[],e)instanceof e)}),h=!c(function(){u(function(){})});n(n.S+n.F*(f||h),"Reflect",{construct:function(e,t){o(e),s(t);var r=arguments.length<3?e:o(arguments[2]);if(h&&!f)return u(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(l.apply(e,n))}var c=r.prototype,_=i(a(c)?c:Object.prototype),p=Function.apply.call(e,_,t);return a(p)?p:_}})},{"./_a-function":5,"./_an-object":9,"./_bind":18,"./_export":35,"./_fails":37,"./_global":42,"./_is-object":53,"./_object-create":72}],212:[function(e,t,r){var n=e("./_object-dp"),i=e("./_export"),o=e("./_an-object"),s=e("./_to-primitive");i(i.S+i.F*e("./_fails")(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,r){o(e),t=s(t,!0),o(r);try{return n.f(e,t,r),!0}catch(e){return!1}}})},{"./_an-object":9,"./_export":35,"./_fails":37,"./_object-dp":73,"./_to-primitive":119}],213:[function(e,t,r){var n=e("./_export"),i=e("./_object-gopd").f,o=e("./_an-object");n(n.S,"Reflect",{deleteProperty:function(e,t){var r=i(o(e),t);return!(r&&!r.configurable)&&delete e[t]}})},{"./_an-object":9,"./_export":35,"./_object-gopd":76}],214:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_an-object"),o=function(e){this._t=i(e),this._i=0;var t,r=this._k=[];for(t in e)r.push(t)};e("./_iter-create")(o,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),n(n.S,"Reflect",{enumerate:function(e){return new o(e)}})},{"./_an-object":9,"./_export":35,"./_iter-create":56}],215:[function(e,t,r){var n=e("./_object-gopd"),i=e("./_export"),o=e("./_an-object");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(o(e),t)}})},{"./_an-object":9,"./_export":35,"./_object-gopd":76}],216:[function(e,t,r){var n=e("./_export"),i=e("./_object-gpo"),o=e("./_an-object");n(n.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},{"./_an-object":9,"./_export":35,"./_object-gpo":80}],217:[function(e,t,r){function n(e,t){var r,a,u=arguments.length<3?e:arguments[2];return l(e)===u?e[t]:(r=i.f(e,t))?s(r,"value")?r.value:void 0!==r.get?r.get.call(u):void 0:c(a=o(e))?n(a,t,u):void 0}var i=e("./_object-gopd"),o=e("./_object-gpo"),s=e("./_has"),a=e("./_export"),c=e("./_is-object"),l=e("./_an-object");a(a.S,"Reflect",{get:n})},{"./_an-object":9,"./_export":35,"./_has":43,"./_is-object":53,"./_object-gopd":76,"./_object-gpo":80}],218:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{has:function(e,t){return t in e}})},{"./_export":35}],219:[function(e,t,r){var n=e("./_export"),i=e("./_an-object"),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},{"./_an-object":9,"./_export":35}],220:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{ownKeys:e("./_own-keys")})},{"./_export":35,"./_own-keys":86}],221:[function(e,t,r){var n=e("./_export"),i=e("./_an-object"),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},{"./_an-object":9,"./_export":35}],222:[function(e,t,r){var n=e("./_export"),i=e("./_set-proto");i&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},{"./_export":35,"./_set-proto":98}],223:[function(e,t,r){function n(e,t,r){var c,h,_=arguments.length<4?e:arguments[3],p=o.f(u(e),t);if(!p){if(f(h=s(e)))return n(h,t,r,_);p=l(0)}return a(p,"value")?!(!1===p.writable||!f(_))&&(c=o.f(_,t)||l(0),c.value=r,i.f(_,t,c),!0):void 0!==p.set&&(p.set.call(_,r),!0)}var i=e("./_object-dp"),o=e("./_object-gopd"),s=e("./_object-gpo"),a=e("./_has"),c=e("./_export"),l=e("./_property-desc"),u=e("./_an-object"),f=e("./_is-object");c(c.S,"Reflect",{set:n})},{"./_an-object":9,"./_export":35,"./_has":43,"./_is-object":53,"./_object-dp":73,"./_object-gopd":76,"./_object-gpo":80,"./_property-desc":91}],224:[function(e,t,r){var n=e("./_global"),i=e("./_inherit-if-required"),o=e("./_object-dp").f,s=e("./_object-gopn").f,a=e("./_is-regexp"),c=e("./_flags"),l=n.RegExp,u=l,f=l.prototype,h=/a/g,_=/a/g,p=new l(h)!==h;if(e("./_descriptors")&&(!p||e("./_fails")(function(){return _[e("./_wks")("match")]=!1,l(h)!=h||l(_)==_||"/a/i"!=l(h,"i")}))){l=function(e,t){var r=this instanceof l,n=a(e),o=void 0===t;return!r&&n&&e.constructor===l&&o?e:i(p?new u(n&&!o?e.source:e,t):u((n=e instanceof l)?e.source:e,n&&o?c.call(e):t),r?this:f,l)};for(var d=function(e){e in l||o(l,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},m=s(u),y=0;m.length>y;)d(m[y++]);f.constructor=l,l.prototype=f,e("./_redefine")(n,"RegExp",l)}e("./_set-species")("RegExp")},{"./_descriptors":31,"./_fails":37,"./_flags":39,"./_global":42,"./_inherit-if-required":47,"./_is-regexp":54,"./_object-dp":73,"./_object-gopn":78,"./_redefine":93,"./_set-species":99,"./_wks":128}],225:[function(e,t,r){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":31,"./_flags":39,"./_object-dp":73}],226:[function(e,t,r){e("./_fix-re-wks")("match",1,function(e,t,r){return[function(r){"use strict";var n=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},r]})},{"./_fix-re-wks":38}],227:[function(e,t,r){e("./_fix-re-wks")("replace",2,function(e,t,r){return[function(n,i){"use strict";var o=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},{"./_fix-re-wks":38}],228:[function(e,t,r){e("./_fix-re-wks")("search",1,function(e,t,r){return[function(r){"use strict";var n=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,n):new RegExp(r)[t](String(n))},r]})},{"./_fix-re-wks":38}],229:[function(e,t,r){e("./_fix-re-wks")("split",2,function(t,r,n){"use strict";var i=e("./_is-regexp"),o=n,s=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var a=void 0===/()??/.exec("")[1];n=function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(r,e,t);var n,c,l,u,f,h=[],_=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,_+"g");for(a||(n=new RegExp("^"+m.source+"$(?!\\s)",_));(c=m.exec(r))&&!((l=c.index+c[0].length)>p&&(h.push(r.slice(p,c.index)),!a&&c.length>1&&c[0].replace(n,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(c[f]=void 0)}),c.length>1&&c.index<r.length&&s.apply(h,c.slice(1)),u=c[0].length,p=l,h.length>=d));)m.lastIndex===c.index&&m.lastIndex++;return p===r.length?!u&&m.test("")||h.push(""):h.push(r.slice(p)),h.length>d?h.slice(0,d):h}}else"0".split(void 0,0).length&&(n=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(e,i){var o=t(this),s=void 0==e?void 0:e[r];return void 0!==s?s.call(e,o,i):n.call(String(o),e,i)},n]})},{"./_fix-re-wks":38,"./_is-regexp":54}],230:[function(e,t,r){"use strict";e("./es6.regexp.flags");var n=e("./_an-object"),i=e("./_flags"),o=e("./_descriptors"),s=/./.toString,a=function(t){e("./_redefine")(RegExp.prototype,"toString",t,!0)};e("./_fails")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},{"./_an-object":9,"./_descriptors":31,"./_fails":37,"./_flags":39,"./_redefine":93,"./es6.regexp.flags":225}],231:[function(e,t,r){"use strict";var n=e("./_collection-strong"),i=e("./_validate-collection");t.exports=e("./_collection")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"Set"),e=0===e?0:e,e)}},n)},{"./_collection":24,"./_collection-strong":21,"./_validate-collection":125}],232:[function(e,t,r){"use strict";e("./_string-html")("anchor",function(e){return function(t){return e(this,"a","name",t)}})},{"./_string-html":107}],233:[function(e,t,r){"use strict";e("./_string-html")("big",function(e){return function(){return e(this,"big","","")}})},{"./_string-html":107}],234:[function(e,t,r){"use strict";e("./_string-html")("blink",function(e){return function(){return e(this,"blink","","")}})},{"./_string-html":107}],235:[function(e,t,r){"use strict";e("./_string-html")("bold",function(e){return function(){return e(this,"b","","")}})},{"./_string-html":107}],236:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-at")(!1);n(n.P,"String",{codePointAt:function(e){return i(this,e)}})},{"./_export":35,"./_string-at":105}],237:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-length"),o=e("./_string-context"),s="".endsWith;n(n.P+n.F*e("./_fails-is-regexp")("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=i(t.length),a=void 0===r?n:Math.min(i(r),n),c=String(e);return s?s.call(t,c,a):t.slice(a-c.length,a)===c}})},{"./_export":35,"./_fails-is-regexp":36,"./_string-context":106,"./_to-length":117}],238:[function(e,t,r){"use strict";e("./_string-html")("fixed",function(e){return function(){return e(this,"tt","","")}})},{"./_string-html":107}],239:[function(e,t,r){"use strict";e("./_string-html")("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},{"./_string-html":107}],240:[function(e,t,r){"use strict";e("./_string-html")("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},{"./_string-html":107}],241:[function(e,t,r){var n=e("./_export"),i=e("./_to-absolute-index"),o=String.fromCharCode,s=String.fromCodePoint;n(n.S+n.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,s=0;n>s;){if(t=+arguments[s++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},{"./_export":35,"./_to-absolute-index":113}],242:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-context");n(n.P+n.F*e("./_fails-is-regexp")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},{"./_export":35,"./_fails-is-regexp":36,"./_string-context":106}],243:[function(e,t,r){"use strict";e("./_string-html")("italics",function(e){return function(){return e(this,"i","","")}})},{"./_string-html":107}],244:[function(e,t,r){"use strict";var n=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":57,"./_string-at":105}],245:[function(e,t,r){"use strict";e("./_string-html")("link",function(e){return function(t){return e(this,"a","href",t)}})},{"./_string-html":107}],246:[function(e,t,r){var n=e("./_export"),i=e("./_to-iobject"),o=e("./_to-length");n(n.S,"String",{raw:function(e){for(var t=i(e.raw),r=o(t.length),n=arguments.length,s=[],a=0;r>a;)s.push(String(t[a++])),a<n&&s.push(String(arguments[a]));return s.join("")}})},{"./_export":35,"./_to-iobject":116,"./_to-length":117}],247:[function(e,t,r){var n=e("./_export");n(n.P,"String",{repeat:e("./_string-repeat")})},{"./_export":35,"./_string-repeat":109}],248:[function(e,t,r){"use strict";e("./_string-html")("small",function(e){return function(){return e(this,"small","","")}})},{"./_string-html":107}],249:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-length"),o=e("./_string-context"),s="".startsWith;n(n.P+n.F*e("./_fails-is-regexp")("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return s?s.call(t,n,r):t.slice(r,r+n.length)===n}})},{"./_export":35,"./_fails-is-regexp":36,"./_string-context":106,"./_to-length":117}],250:[function(e,t,r){"use strict";e("./_string-html")("strike",function(e){return function(){return e(this,"strike","","")}})},{"./_string-html":107}],251:[function(e,t,r){"use strict";e("./_string-html")("sub",function(e){return function(){return e(this,"sub","","")}})},{"./_string-html":107}],252:[function(e,t,r){"use strict";e("./_string-html")("sup",function(e){return function(){return e(this,"sup","","")}})},{"./_string-html":107}],253:[function(e,t,r){"use strict";e("./_string-trim")("trim",function(e){return function(){return e(this,3)}})},{"./_string-trim":110}],254:[function(e,t,r){"use strict";var n=e("./_global"),i=e("./_has"),o=e("./_descriptors"),s=e("./_export"),a=e("./_redefine"),c=e("./_meta").KEY,l=e("./_fails"),u=e("./_shared"),f=e("./_set-to-string-tag"),h=e("./_uid"),_=e("./_wks"),p=e("./_wks-ext"),d=e("./_wks-define"),m=e("./_enum-keys"),y=e("./_is-array"),b=e("./_an-object"),v=e("./_is-object"),g=e("./_to-iobject"),x=e("./_to-primitive"),w=e("./_property-desc"),C=e("./_object-create"),S=e("./_object-gopn-ext"),k=e("./_object-gopd"),E=e("./_object-dp"),A=e("./_object-keys"),j=k.f,O=E.f,M=S.f,L=n.Symbol,T=n.JSON,R=T&&T.stringify,I=_("_hidden"),P=_("toPrimitive"),N={}.propertyIsEnumerable,D=u("symbol-registry"),F=u("symbols"),B=u("op-symbols"),H=Object.prototype,Z="function"==typeof L,z=n.QObject,W=!z||!z.prototype||!z.prototype.findChild,U=o&&l(function(){return 7!=C(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=j(H,t);n&&delete H[t],O(e,t,r),n&&e!==H&&O(H,t,n)}:O,V=function(e){var t=F[e]=C(L.prototype);return t._k=e,t},G=Z&&"symbol"==typeof L.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof L},K=function(e,t,r){return e===H&&K(B,t,r),b(e),t=x(t,!0),b(r),i(F,t)?(r.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),r=C(r,{enumerable:w(0,!1)})):(i(e,I)||O(e,I,w(1,{})),e[I][t]=!0),U(e,t,r)):O(e,t,r)},X=function(e,t){b(e);for(var r,n=m(t=g(t)),i=0,o=n.length;o>i;)K(e,r=n[i++],t[r]);return e},q=function(e){var t=N.call(this,e=x(e,!0));return!(this===H&&i(F,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(F,e)||i(this,I)&&this[I][e])||t)},Y=function(e,t){if(e=g(e),t=x(t,!0),e!==H||!i(F,t)||i(B,t)){var r=j(e,t);return!r||!i(F,t)||i(e,I)&&e[I][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=M(g(e)),n=[],o=0;r.length>o;)i(F,t=r[o++])||t==I||t==c||n.push(t);return n},J=function(e){for(var t,r=e===H,n=M(r?B:g(e)),o=[],s=0;n.length>s;)!i(F,t=n[s++])||r&&!i(H,t)||o.push(F[t]);return o};Z||(a((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(r){this===H&&t.call(B,r),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),U(this,e,w(1,r))};return o&&W&&U(H,e,{configurable:!0,set:t}),V(e)}).prototype,"toString",function(){return this._k}),k.f=Y,E.f=K,e("./_object-gopn").f=S.f=Q,e("./_object-pie").f=q,e("./_object-gops").f=J,o&&!e("./_library")&&a(H,"propertyIsEnumerable",q,!0),p.f=function(e){return V(_(e))}),s(s.G+s.W+s.F*!Z,{Symbol:L});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;$.length>ee;)_($[ee++]);for(var te=A(_.store),re=0;te.length>re;)d(te[re++]);s(s.S+s.F*!Z,"Symbol",{for:function(e){return i(D,e+="")?D[e]:D[e]=L(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!Z,"Object",{create:function(e,t){return void 0===t?C(e):X(C(e),t)},defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Q,getOwnPropertySymbols:J}),T&&s(s.S+s.F*(!Z||l(function(){var e=L();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(v(t)||void 0!==e)&&!G(e))return y(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!G(t))return t}),n[1]=t,R.apply(T,n)}}),L.prototype[P]||e("./_hide")(L.prototype,P,L.prototype.valueOf),f(L,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},{"./_an-object":9,"./_descriptors":31,"./_enum-keys":34,"./_export":35,"./_fails":37,"./_global":42,"./_has":43,"./_hide":44,"./_is-array":51,"./_is-object":53,"./_library":61,"./_meta":67,"./_object-create":72,"./_object-dp":73,"./_object-gopd":76,"./_object-gopn":78,"./_object-gopn-ext":77,"./_object-gops":79,"./_object-keys":82,"./_object-pie":83,"./_property-desc":91,"./_redefine":93,"./_set-to-string-tag":100,"./_shared":102,"./_to-iobject":116,"./_to-primitive":119,"./_uid":123,"./_wks":128,"./_wks-define":126,"./_wks-ext":127}],255:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_typed"),o=e("./_typed-buffer"),s=e("./_an-object"),a=e("./_to-absolute-index"),c=e("./_to-length"),l=e("./_is-object"),u=e("./_global").ArrayBuffer,f=e("./_species-constructor"),h=o.ArrayBuffer,_=o.DataView,p=i.ABV&&u.isView,d=h.prototype.slice,m=i.VIEW;n(n.G+n.W+n.F*(u!==h),{ArrayBuffer:h}),n(n.S+n.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||l(e)&&m in e}}),n(n.P+n.U+n.F*e("./_fails")(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(s(this),e);for(var r=s(this).byteLength,n=a(e,r),i=a(void 0===t?r:t,r),o=new(f(this,h))(c(i-n)),l=new _(this),u=new _(o),p=0;n<i;)u.setUint8(p++,l.getUint8(n++));return o}}),e("./_set-species")("ArrayBuffer")},{"./_an-object":9,"./_export":35,"./_fails":37,"./_global":42,"./_is-object":53,"./_set-species":99,"./_species-constructor":103,"./_to-absolute-index":113,"./_to-length":117,"./_typed":122,"./_typed-buffer":121}],256:[function(e,t,r){var n=e("./_export");n(n.G+n.W+n.F*!e("./_typed").ABV,{DataView:e("./_typed-buffer").DataView})},{"./_export":35,"./_typed":122,"./_typed-buffer":121}],257:[function(e,t,r){e("./_typed-array")("Float32",4,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],258:[function(e,t,r){e("./_typed-array")("Float64",8,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],259:[function(e,t,r){e("./_typed-array")("Int16",2,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],260:[function(e,t,r){e("./_typed-array")("Int32",4,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],261:[function(e,t,r){e("./_typed-array")("Int8",1,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],262:[function(e,t,r){e("./_typed-array")("Uint16",2,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],263:[function(e,t,r){e("./_typed-array")("Uint32",4,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],264:[function(e,t,r){e("./_typed-array")("Uint8",1,function(e){return function(t,r,n){return e(this,t,r,n)}})},{"./_typed-array":120}],265:[function(e,t,r){e("./_typed-array")("Uint8",1,function(e){return function(t,r,n){return e(this,t,r,n)}},!0)},{"./_typed-array":120}],266:[function(e,t,r){"use strict";var n,i=e("./_array-methods")(0),o=e("./_redefine"),s=e("./_meta"),a=e("./_object-assign"),c=e("./_collection-weak"),l=e("./_is-object"),u=e("./_fails"),f=e("./_validate-collection"),h=s.getWeak,_=Object.isExtensible,p=c.ufstore,d={},m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(l(e)){var t=h(e);return!0===t?p(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(f(this,"WeakMap"),e,t)}},b=t.exports=e("./_collection")("WeakMap",m,y,c,!0,!0);u(function(){return 7!=(new b).set((Object.freeze||Object)(d),7).get(d)})&&(a((n=c.getConstructor(m,"WeakMap")).prototype,y),s.NEED=!0,i(["delete","has","get","set"],function(e){var t=b.prototype,r=t[e];o(t,e,function(t,i){if(l(t)&&!_(t)){this._f||(this._f=new n);var o=this._f[e](t,i);return"set"==e?this:o}return r.call(this,t,i)})}))},{"./_array-methods":14,"./_collection":24,"./_collection-weak":23,"./_fails":37,"./_is-object":53,"./_meta":67,"./_object-assign":71,"./_redefine":93,"./_validate-collection":125}],267:[function(e,t,r){"use strict";var n=e("./_collection-weak"),i=e("./_validate-collection");e("./_collection")("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(i(this,"WeakSet"),e,!0)}},n,!1,!0)},{"./_collection":24,"./_collection-weak":23,"./_validate-collection":125}],268:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_flatten-into-array"),o=e("./_to-object"),s=e("./_to-length"),a=e("./_a-function"),c=e("./_array-species-create");n(n.P,"Array",{flatMap:function(e){var t,r,n=o(this);return a(e),t=s(n.length),r=c(n,0),i(r,n,n,t,0,1,e,arguments[1]),r}}),e("./_add-to-unscopables")("flatMap")},{"./_a-function":5,"./_add-to-unscopables":7,"./_array-species-create":17,"./_export":35,"./_flatten-into-array":40,"./_to-length":117,"./_to-object":118}],269:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_flatten-into-array"),o=e("./_to-object"),s=e("./_to-length"),a=e("./_to-integer"),c=e("./_array-species-create");n(n.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),r=s(t.length),n=c(t,0);return i(n,t,t,r,0,void 0===e?1:a(e)),n}}),e("./_add-to-unscopables")("flatten")},{"./_add-to-unscopables":7,"./_array-species-create":17,"./_export":35,"./_flatten-into-array":40,"./_to-integer":115,"./_to-length":117,"./_to-object":118}],270:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_array-includes")(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),e("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":7,"./_array-includes":13,"./_export":35}],271:[function(e,t,r){var n=e("./_export"),i=e("./_microtask")(),o=e("./_global").process,s="process"==e("./_cof")(o);n(n.G,{asap:function(e){var t=s&&o.domain;i(t?t.bind(e):e)}})},{"./_cof":20,"./_export":35,"./_global":42,"./_microtask":69}],272:[function(e,t,r){var n=e("./_export"),i=e("./_cof");n(n.S,"Error",{isError:function(e){return"Error"===i(e)}})},{"./_cof":20,"./_export":35}],273:[function(e,t,r){var n=e("./_export");n(n.G,{global:e("./_global")})},{"./_export":35,"./_global":42}],274:[function(e,t,r){e("./_set-collection-from")("Map")},{"./_set-collection-from":96}],275:[function(e,t,r){e("./_set-collection-of")("Map")},{"./_set-collection-of":97}],276:[function(e,t,r){var n=e("./_export");n(n.P+n.R,"Map",{toJSON:e("./_collection-to-json")("Map")})},{"./_collection-to-json":22,"./_export":35}],277:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}})},{"./_export":35}],278:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},{"./_export":35}],279:[function(e,t,r){var n=e("./_export"),i=180/Math.PI;n(n.S,"Math",{degrees:function(e){return e*i}})},{"./_export":35}],280:[function(e,t,r){var n=e("./_export"),i=e("./_math-scale"),o=e("./_math-fround");n(n.S,"Math",{fscale:function(e,t,r,n,s){return o(i(e,t,r,n,s))}})},{"./_export":35,"./_math-fround":63,"./_math-scale":65}],281:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{iaddh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)+(n>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},{"./_export":35}],282:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{imulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,s=r>>16,a=n>>16,c=(s*o>>>0)+(i*o>>>16);return s*a+(c>>16)+((i*a>>>0)+(65535&c)>>16)}})},{"./_export":35}],283:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{isubh:function(e,t,r,n){var i=e>>>0,o=r>>>0;return(t>>>0)-(n>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},{"./_export":35}],284:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},{"./_export":35}],285:[function(e,t,r){var n=e("./_export"),i=Math.PI/180;n(n.S,"Math",{radians:function(e){return e*i}})},{"./_export":35}],286:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{scale:e("./_math-scale")})},{"./_export":35,"./_math-scale":65}],287:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},{"./_export":35}],288:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{umulh:function(e,t){var r=+e,n=+t,i=65535&r,o=65535&n,s=r>>>16,a=n>>>16,c=(s*o>>>0)+(i*o>>>16);return s*a+(c>>>16)+((i*a>>>0)+(65535&c)>>>16)}})},{"./_export":35}],289:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_a-function"),s=e("./_object-dp");e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__defineGetter__:function(e,t){s.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":31,"./_export":35,"./_object-dp":73,"./_object-forced-pam":75,"./_to-object":118}],290:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_a-function"),s=e("./_object-dp");e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__defineSetter__:function(e,t){s.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},{"./_a-function":5,"./_descriptors":31,"./_export":35,"./_object-dp":73,"./_object-forced-pam":75,"./_to-object":118}],291:[function(e,t,r){var n=e("./_export"),i=e("./_object-to-array")(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},{"./_export":35,"./_object-to-array":85}],292:[function(e,t,r){var n=e("./_export"),i=e("./_own-keys"),o=e("./_to-iobject"),s=e("./_object-gopd"),a=e("./_create-property");n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=o(e),c=s.f,l=i(n),u={},f=0;l.length>f;)void 0!==(r=c(n,t=l[f++]))&&a(u,t,r);return u}})},{"./_create-property":26,"./_export":35,"./_object-gopd":76,"./_own-keys":86,"./_to-iobject":116}],293:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_to-primitive"),s=e("./_object-gpo"),a=e("./_object-gopd").f;e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__lookupGetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=a(r,n))return t.get}while(r=s(r))}})},{"./_descriptors":31,"./_export":35,"./_object-forced-pam":75,"./_object-gopd":76,"./_object-gpo":80,"./_to-object":118,"./_to-primitive":119}],294:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-object"),o=e("./_to-primitive"),s=e("./_object-gpo"),a=e("./_object-gopd").f;e("./_descriptors")&&n(n.P+e("./_object-forced-pam"),"Object",{__lookupSetter__:function(e){var t,r=i(this),n=o(e,!0);do{if(t=a(r,n))return t.set}while(r=s(r))}})},{"./_descriptors":31,"./_export":35,"./_object-forced-pam":75,"./_object-gopd":76,"./_object-gpo":80,"./_to-object":118,"./_to-primitive":119}],295:[function(e,t,r){var n=e("./_export"),i=e("./_object-to-array")(!1);n(n.S,"Object",{values:function(e){return i(e)}})},{"./_export":35,"./_object-to-array":85}],296:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_global"),o=e("./_core"),s=e("./_microtask")(),a=e("./_wks")("observable"),c=e("./_a-function"),l=e("./_an-object"),u=e("./_an-instance"),f=e("./_redefine-all"),h=e("./_hide"),_=e("./_for-of"),p=_.RETURN,d=function(e){return null==e?void 0:c(e)},m=function(e){var t=e._c;t&&(e._c=void 0,t())},y=function(e){return void 0===e._o},b=function(e){y(e)||(e._o=void 0,m(e))},v=function(e,t){l(e),this._c=void 0,this._o=e,e=new g(this);try{var r=t(e),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:c(r),this._c=r)}catch(t){return void e.error(t)}y(this)&&m(this)};v.prototype=f({},{unsubscribe:function(){b(this)}});var g=function(e){this._s=e};g.prototype=f({},{next:function(e){var t=this._s;if(!y(t)){var r=t._o;try{var n=d(r.next);if(n)return n.call(r,e)}catch(e){try{b(t)}finally{throw e}}}},error:function(e){var t=this._s;if(y(t))throw e;var r=t._o;t._o=void 0;try{var n=d(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{m(t)}finally{throw e}}return m(t),e},complete:function(e){var t=this._s;if(!y(t)){var r=t._o;t._o=void 0;try{var n=d(r.complete);e=n?n.call(r,e):void 0}catch(e){try{m(t)}finally{throw e}}return m(t),e}}});var x=function(e){u(this,x,"Observable","_f")._f=c(e)};f(x.prototype,{subscribe:function(e){return new v(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)(function(r,n){c(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r})})}}),f(x,{from:function(e){var t="function"==typeof this?this:x,r=d(l(e)[a]);if(r){var n=l(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return s(function(){if(!r){try{if(_(e,!1,function(e){if(t.next(e),r)return p})===p)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e<t;)r[e]=arguments[e++];return new("function"==typeof this?this:x)(function(e){var t=!1;return s(function(){if(!t){for(var n=0;n<r.length;++n)if(e.next(r[n]),t)return;e.complete()}}),function(){t=!0}})}}),h(x.prototype,a,function(){return this}),n(n.G,{Observable:x}),e("./_set-species")("Observable")},{"./_a-function":5,"./_an-instance":8,"./_an-object":9,"./_core":25,"./_export":35,"./_for-of":41,"./_global":42,"./_hide":44,"./_microtask":69,"./_redefine-all":92,"./_set-species":99,"./_wks":128}],297:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_core"),o=e("./_global"),s=e("./_species-constructor"),a=e("./_promise-resolve");n(n.P+n.R,"Promise",{finally:function(e){var t=s(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return a(t,e()).then(function(){return r})}:e,r?function(r){return a(t,e()).then(function(){throw r})}:e)}})},{"./_core":25,"./_export":35,"./_global":42,"./_promise-resolve":90,"./_species-constructor":103}],298:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_new-promise-capability"),o=e("./_perform");n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},{"./_export":35,"./_new-promise-capability":70,"./_perform":89}],299:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.key,s=n.set;n.exp({defineMetadata:function(e,t,r,n){s(e,t,i(r),o(n))}})},{"./_an-object":9,"./_metadata":68}],300:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.key,s=n.map,a=n.store;n.exp({deleteMetadata:function(e,t){var r=arguments.length<3?void 0:o(arguments[2]),n=s(i(t),r,!1);if(void 0===n||!n.delete(e))return!1;if(n.size)return!0;var c=a.get(t);return c.delete(r),!!c.size||a.delete(t)}})},{"./_an-object":9,"./_metadata":68}],301:[function(e,t,r){var n=e("./es6.set"),i=e("./_array-from-iterable"),o=e("./_metadata"),s=e("./_an-object"),a=e("./_object-gpo"),c=o.keys,l=o.key,u=function(e,t){var r=c(e,t),o=a(e);if(null===o)return r;var s=u(o,t);return s.length?r.length?i(new n(r.concat(s))):s:r};o.exp({getMetadataKeys:function(e){return u(s(e),arguments.length<2?void 0:l(arguments[1]))}})},{"./_an-object":9,"./_array-from-iterable":12,"./_metadata":68,"./_object-gpo":80,"./es6.set":231}],302:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=e("./_object-gpo"),s=n.has,a=n.get,c=n.key,l=function(e,t,r){if(s(e,t,r))return a(e,t,r);var n=o(t);return null!==n?l(e,n,r):void 0};n.exp({getMetadata:function(e,t){return l(e,i(t),arguments.length<3?void 0:c(arguments[2]))}})},{"./_an-object":9,"./_metadata":68,"./_object-gpo":80}],303:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.keys,s=n.key;n.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:s(arguments[1]))}})},{"./_an-object":9,"./_metadata":68}],304:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.get,s=n.key;n.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},{"./_an-object":9,"./_metadata":68}],305:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=e("./_object-gpo"),s=n.has,a=n.key,c=function(e,t,r){if(s(e,t,r))return!0;var n=o(t);return null!==n&&c(e,n,r)};n.exp({hasMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},{"./_an-object":9,"./_metadata":68,"./_object-gpo":80}],306:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=n.has,s=n.key;n.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},{"./_an-object":9,"./_metadata":68}],307:[function(e,t,r){var n=e("./_metadata"),i=e("./_an-object"),o=e("./_a-function"),s=n.key,a=n.set;n.exp({metadata:function(e,t){return function(r,n){a(e,t,(void 0!==n?i:o)(r),s(n))}}})},{"./_a-function":5,"./_an-object":9,"./_metadata":68}],308:[function(e,t,r){e("./_set-collection-from")("Set")},{"./_set-collection-from":96}],309:[function(e,t,r){e("./_set-collection-of")("Set")},{"./_set-collection-of":97}],310:[function(e,t,r){var n=e("./_export");n(n.P+n.R,"Set",{toJSON:e("./_collection-to-json")("Set")})},{"./_collection-to-json":22,"./_export":35}],311:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-at")(!0);n(n.P,"String",{at:function(e){return i(this,e)}})},{"./_export":35,"./_string-at":105}],312:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_defined"),o=e("./_to-length"),s=e("./_is-regexp"),a=e("./_flags"),c=RegExp.prototype,l=function(e,t){this._r=e,this._s=t};e("./_iter-create")(l,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),n(n.P,"String",{matchAll:function(e){if(i(this),!s(e))throw TypeError(e+" is not a regexp!");var t=String(this),r="flags"in c?String(e.flags):a.call(e),n=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=o(e.lastIndex),new l(n,t)}})},{"./_defined":30,"./_export":35,"./_flags":39,"./_is-regexp":54,"./_iter-create":56,"./_to-length":117}],313:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-pad"),o=e("./_user-agent");n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},{"./_export":35,"./_string-pad":108,"./_user-agent":124}],314:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_string-pad"),o=e("./_user-agent");n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},{"./_export":35,"./_string-pad":108,"./_user-agent":124}],315:[function(e,t,r){"use strict";e("./_string-trim")("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},{"./_string-trim":110}],316:[function(e,t,r){"use strict";e("./_string-trim")("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},{"./_string-trim":110}],317:[function(e,t,r){e("./_wks-define")("asyncIterator")},{"./_wks-define":126}],318:[function(e,t,r){e("./_wks-define")("observable")},{"./_wks-define":126}],319:[function(e,t,r){var n=e("./_export");n(n.S,"System",{global:e("./_global")})},{"./_export":35,"./_global":42}],320:[function(e,t,r){e("./_set-collection-from")("WeakMap")},{"./_set-collection-from":96}],321:[function(e,t,r){e("./_set-collection-of")("WeakMap")},{"./_set-collection-of":97}],322:[function(e,t,r){e("./_set-collection-from")("WeakSet")},{"./_set-collection-from":96}],323:[function(e,t,r){e("./_set-collection-of")("WeakSet")},{"./_set-collection-of":97}],324:[function(e,t,r){for(var n=e("./es6.array.iterator"),i=e("./_object-keys"),o=e("./_redefine"),s=e("./_global"),a=e("./_hide"),c=e("./_iterators"),l=e("./_wks"),u=l("iterator"),f=l("toStringTag"),h=c.Array,_={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(_),d=0;d<p.length;d++){var m,y=p[d],b=_[y],v=s[y],g=v&&v.prototype;if(g&&(g[u]||a(g,u,h),g[f]||a(g,f,y),c[y]=h,b))for(m in n)g[m]||o(g,m,n[m],!0)}},{"./_global":42,"./_hide":44,"./_iterators":60,"./_object-keys":82,"./_redefine":93,"./_wks":128,"./es6.array.iterator":141}],325:[function(e,t,r){var n=e("./_export"),i=e("./_task");n(n.G+n.B,{setImmediate:i.set,clearImmediate:i.clear})},{"./_export":35,"./_task":112}],326:[function(e,t,r){var n=e("./_global"),i=e("./_export"),o=e("./_user-agent"),s=[].slice,a=/MSIE .\./.test(o),c=function(e){return function(t,r){var n=arguments.length>2,i=!!n&&s.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,r)}};i(i.G+i.B+i.F*a,{setTimeout:c(n.setTimeout),setInterval:c(n.setInterval)})},{"./_export":35,"./_global":42,"./_user-agent":124}],327:[function(e,t,r){e("./modules/es6.symbol"),e("./modules/es6.object.create"),e("./modules/es6.object.define-property"),e("./modules/es6.object.define-properties"),e("./modules/es6.object.get-own-property-descriptor"),e("./modules/es6.object.get-prototype-of"),e("./modules/es6.object.keys"),e("./modules/es6.object.get-own-property-names"),e("./modules/es6.object.freeze"),e("./modules/es6.object.seal"),e("./modules/es6.object.prevent-extensions"),e("./modules/es6.object.is-frozen"),e("./modules/es6.object.is-sealed"),e("./modules/es6.object.is-extensible"),e("./modules/es6.object.assign"),e("./modules/es6.object.is"),e("./modules/es6.object.set-prototype-of"),e("./modules/es6.object.to-string"),e("./modules/es6.function.bind"),e("./modules/es6.function.name"),e("./modules/es6.function.has-instance"),e("./modules/es6.parse-int"),e("./modules/es6.parse-float"),e("./modules/es6.number.constructor"),e("./modules/es6.number.to-fixed"),e("./modules/es6.number.to-precision"),e("./modules/es6.number.epsilon"),e("./modules/es6.number.is-finite"),e("./modules/es6.number.is-integer"),e("./modules/es6.number.is-nan"),e("./modules/es6.number.is-safe-integer"),e("./modules/es6.number.max-safe-integer"),e("./modules/es6.number.min-safe-integer"),e("./modules/es6.number.parse-float"),e("./modules/es6.number.parse-int"),e("./modules/es6.math.acosh"),e("./modules/es6.math.asinh"),e("./modules/es6.math.atanh"),e("./modules/es6.math.cbrt"),e("./modules/es6.math.clz32"),e("./modules/es6.math.cosh"),e("./modules/es6.math.expm1"),e("./modules/es6.math.fround"),e("./modules/es6.math.hypot"),e("./modules/es6.math.imul"),e("./modules/es6.math.log10"),e("./modules/es6.math.log1p"),e("./modules/es6.math.log2"),e("./modules/es6.math.sign"),e("./modules/es6.math.sinh"),e("./modules/es6.math.tanh"),e("./modules/es6.math.trunc"),e("./modules/es6.string.from-code-point"),e("./modules/es6.string.raw"),e("./modules/es6.string.trim"),e("./modules/es6.string.iterator"),e("./modules/es6.string.code-point-at"),e("./modules/es6.string.ends-with"),e("./modules/es6.string.includes"),e("./modules/es6.string.repeat"),e("./modules/es6.string.starts-with"),e("./modules/es6.string.anchor"),e("./modules/es6.string.big"),e("./modules/es6.string.blink"),e("./modules/es6.string.bold"),e("./modules/es6.string.fixed"),e("./modules/es6.string.fontcolor"),e("./modules/es6.string.fontsize"),e("./modules/es6.string.italics"),e("./modules/es6.string.link"),e("./modules/es6.string.small"),e("./modules/es6.string.strike"),e("./modules/es6.string.sub"),e("./modules/es6.string.sup"),e("./modules/es6.date.now"),e("./modules/es6.date.to-json"),e("./modules/es6.date.to-iso-string"),e("./modules/es6.date.to-string"),e("./modules/es6.date.to-primitive"),e("./modules/es6.array.is-array"),e("./modules/es6.array.from"),e("./modules/es6.array.of"),e("./modules/es6.array.join"),e("./modules/es6.array.slice"),e("./modules/es6.array.sort"),e("./modules/es6.array.for-each"),e("./modules/es6.array.map"),e("./modules/es6.array.filter"),e("./modules/es6.array.some"),e("./modules/es6.array.every"),e("./modules/es6.array.reduce"),e("./modules/es6.array.reduce-right"),e("./modules/es6.array.index-of"),e("./modules/es6.array.last-index-of"),e("./modules/es6.array.copy-within"),e("./modules/es6.array.fill"),e("./modules/es6.array.find"),e("./modules/es6.array.find-index"),e("./modules/es6.array.species"),e("./modules/es6.array.iterator"),e("./modules/es6.regexp.constructor"),e("./modules/es6.regexp.to-string"),e("./modules/es6.regexp.flags"),e("./modules/es6.regexp.match"),e("./modules/es6.regexp.replace"),e("./modules/es6.regexp.search"),e("./modules/es6.regexp.split"),e("./modules/es6.promise"),e("./modules/es6.map"),e("./modules/es6.set"),e("./modules/es6.weak-map"),e("./modules/es6.weak-set"),e("./modules/es6.typed.array-buffer"),e("./modules/es6.typed.data-view"),e("./modules/es6.typed.int8-array"),e("./modules/es6.typed.uint8-array"),e("./modules/es6.typed.uint8-clamped-array"),e("./modules/es6.typed.int16-array"),e("./modules/es6.typed.uint16-array"),e("./modules/es6.typed.int32-array"),e("./modules/es6.typed.uint32-array"),e("./modules/es6.typed.float32-array"),e("./modules/es6.typed.float64-array"),e("./modules/es6.reflect.apply"),e("./modules/es6.reflect.construct"),e("./modules/es6.reflect.define-property"),e("./modules/es6.reflect.delete-property"),e("./modules/es6.reflect.enumerate"),e("./modules/es6.reflect.get"),e("./modules/es6.reflect.get-own-property-descriptor"),e("./modules/es6.reflect.get-prototype-of"),e("./modules/es6.reflect.has"),e("./modules/es6.reflect.is-extensible"),e("./modules/es6.reflect.own-keys"),e("./modules/es6.reflect.prevent-extensions"),e("./modules/es6.reflect.set"),e("./modules/es6.reflect.set-prototype-of"),e("./modules/es7.array.includes"),e("./modules/es7.array.flat-map"),e("./modules/es7.array.flatten"),e("./modules/es7.string.at"),e("./modules/es7.string.pad-start"),e("./modules/es7.string.pad-end"),e("./modules/es7.string.trim-left"),e("./modules/es7.string.trim-right"),e("./modules/es7.string.match-all"),e("./modules/es7.symbol.async-iterator"),e("./modules/es7.symbol.observable"),e("./modules/es7.object.get-own-property-descriptors"),e("./modules/es7.object.values"),e("./modules/es7.object.entries"),e("./modules/es7.object.define-getter"),e("./modules/es7.object.define-setter"),e("./modules/es7.object.lookup-getter"),e("./modules/es7.object.lookup-setter"),e("./modules/es7.map.to-json"),e("./modules/es7.set.to-json"),e("./modules/es7.map.of"),e("./modules/es7.set.of"),e("./modules/es7.weak-map.of"),e("./modules/es7.weak-set.of"),e("./modules/es7.map.from"),e("./modules/es7.set.from"),e("./modules/es7.weak-map.from"),e("./modules/es7.weak-set.from"),e("./modules/es7.global"),e("./modules/es7.system.global"),e("./modules/es7.error.is-error"),e("./modules/es7.math.clamp"),e("./modules/es7.math.deg-per-rad"),e("./modules/es7.math.degrees"),e("./modules/es7.math.fscale"),e("./modules/es7.math.iaddh"),e("./modules/es7.math.isubh"),e("./modules/es7.math.imulh"),e("./modules/es7.math.rad-per-deg"),e("./modules/es7.math.radians"),e("./modules/es7.math.scale"),e("./modules/es7.math.umulh"),e("./modules/es7.math.signbit"),e("./modules/es7.promise.finally"),e("./modules/es7.promise.try"),e("./modules/es7.reflect.define-metadata"),e("./modules/es7.reflect.delete-metadata"),e("./modules/es7.reflect.get-metadata"),e("./modules/es7.reflect.get-metadata-keys"),e("./modules/es7.reflect.get-own-metadata"),e("./modules/es7.reflect.get-own-metadata-keys"),e("./modules/es7.reflect.has-metadata"),e("./modules/es7.reflect.has-own-metadata"),e("./modules/es7.reflect.metadata"),e("./modules/es7.asap"),e("./modules/es7.observable"),e("./modules/web.timers"),e("./modules/web.immediate"),e("./modules/web.dom.iterable"),t.exports=e("./modules/_core")},{"./modules/_core":25,"./modules/es6.array.copy-within":131,"./modules/es6.array.every":132,"./modules/es6.array.fill":133,"./modules/es6.array.filter":134,"./modules/es6.array.find":136,"./modules/es6.array.find-index":135,"./modules/es6.array.for-each":137,"./modules/es6.array.from":138,"./modules/es6.array.index-of":139,"./modules/es6.array.is-array":140,"./modules/es6.array.iterator":141,"./modules/es6.array.join":142,"./modules/es6.array.last-index-of":143,"./modules/es6.array.map":144,"./modules/es6.array.of":145,"./modules/es6.array.reduce":147,"./modules/es6.array.reduce-right":146,"./modules/es6.array.slice":148,"./modules/es6.array.some":149,"./modules/es6.array.sort":150,"./modules/es6.array.species":151,"./modules/es6.date.now":152,"./modules/es6.date.to-iso-string":153,"./modules/es6.date.to-json":154,"./modules/es6.date.to-primitive":155,"./modules/es6.date.to-string":156,"./modules/es6.function.bind":157,"./modules/es6.function.has-instance":158,"./modules/es6.function.name":159,"./modules/es6.map":160,"./modules/es6.math.acosh":161,"./modules/es6.math.asinh":162,"./modules/es6.math.atanh":163,"./modules/es6.math.cbrt":164,"./modules/es6.math.clz32":165,"./modules/es6.math.cosh":166,"./modules/es6.math.expm1":167,"./modules/es6.math.fround":168,"./modules/es6.math.hypot":169,"./modules/es6.math.imul":170,"./modules/es6.math.log10":171,"./modules/es6.math.log1p":172,"./modules/es6.math.log2":173,"./modules/es6.math.sign":174,"./modules/es6.math.sinh":175,"./modules/es6.math.tanh":176,"./modules/es6.math.trunc":177,"./modules/es6.number.constructor":178,"./modules/es6.number.epsilon":179,"./modules/es6.number.is-finite":180,"./modules/es6.number.is-integer":181,"./modules/es6.number.is-nan":182,"./modules/es6.number.is-safe-integer":183,"./modules/es6.number.max-safe-integer":184,"./modules/es6.number.min-safe-integer":185,"./modules/es6.number.parse-float":186,"./modules/es6.number.parse-int":187,"./modules/es6.number.to-fixed":188,"./modules/es6.number.to-precision":189,"./modules/es6.object.assign":190,"./modules/es6.object.create":191,"./modules/es6.object.define-properties":192,"./modules/es6.object.define-property":193,"./modules/es6.object.freeze":194,"./modules/es6.object.get-own-property-descriptor":195,"./modules/es6.object.get-own-property-names":196,"./modules/es6.object.get-prototype-of":197,"./modules/es6.object.is":201,"./modules/es6.object.is-extensible":198,"./modules/es6.object.is-frozen":199,"./modules/es6.object.is-sealed":200,"./modules/es6.object.keys":202,"./modules/es6.object.prevent-extensions":203,"./modules/es6.object.seal":204,"./modules/es6.object.set-prototype-of":205,"./modules/es6.object.to-string":206,"./modules/es6.parse-float":207,"./modules/es6.parse-int":208,"./modules/es6.promise":209,"./modules/es6.reflect.apply":210,"./modules/es6.reflect.construct":211,"./modules/es6.reflect.define-property":212,"./modules/es6.reflect.delete-property":213,"./modules/es6.reflect.enumerate":214,"./modules/es6.reflect.get":217,"./modules/es6.reflect.get-own-property-descriptor":215,"./modules/es6.reflect.get-prototype-of":216,"./modules/es6.reflect.has":218,"./modules/es6.reflect.is-extensible":219,"./modules/es6.reflect.own-keys":220,"./modules/es6.reflect.prevent-extensions":221,"./modules/es6.reflect.set":223,"./modules/es6.reflect.set-prototype-of":222,"./modules/es6.regexp.constructor":224,"./modules/es6.regexp.flags":225,"./modules/es6.regexp.match":226,"./modules/es6.regexp.replace":227,"./modules/es6.regexp.search":228,"./modules/es6.regexp.split":229,"./modules/es6.regexp.to-string":230,"./modules/es6.set":231,"./modules/es6.string.anchor":232,"./modules/es6.string.big":233,"./modules/es6.string.blink":234,"./modules/es6.string.bold":235,"./modules/es6.string.code-point-at":236,"./modules/es6.string.ends-with":237,"./modules/es6.string.fixed":238,"./modules/es6.string.fontcolor":239,"./modules/es6.string.fontsize":240,"./modules/es6.string.from-code-point":241,"./modules/es6.string.includes":242,"./modules/es6.string.italics":243,"./modules/es6.string.iterator":244,"./modules/es6.string.link":245,"./modules/es6.string.raw":246,"./modules/es6.string.repeat":247,"./modules/es6.string.small":248,"./modules/es6.string.starts-with":249,"./modules/es6.string.strike":250,"./modules/es6.string.sub":251,"./modules/es6.string.sup":252,"./modules/es6.string.trim":253,"./modules/es6.symbol":254,"./modules/es6.typed.array-buffer":255,"./modules/es6.typed.data-view":256,"./modules/es6.typed.float32-array":257,"./modules/es6.typed.float64-array":258,"./modules/es6.typed.int16-array":259,"./modules/es6.typed.int32-array":260,"./modules/es6.typed.int8-array":261,"./modules/es6.typed.uint16-array":262,"./modules/es6.typed.uint32-array":263,"./modules/es6.typed.uint8-array":264,"./modules/es6.typed.uint8-clamped-array":265,"./modules/es6.weak-map":266,"./modules/es6.weak-set":267,"./modules/es7.array.flat-map":268,"./modules/es7.array.flatten":269,"./modules/es7.array.includes":270,"./modules/es7.asap":271,"./modules/es7.error.is-error":272,"./modules/es7.global":273,"./modules/es7.map.from":274,"./modules/es7.map.of":275,"./modules/es7.map.to-json":276,"./modules/es7.math.clamp":277,"./modules/es7.math.deg-per-rad":278,"./modules/es7.math.degrees":279,"./modules/es7.math.fscale":280,"./modules/es7.math.iaddh":281,"./modules/es7.math.imulh":282,"./modules/es7.math.isubh":283,"./modules/es7.math.rad-per-deg":284,"./modules/es7.math.radians":285,"./modules/es7.math.scale":286,"./modules/es7.math.signbit":287,"./modules/es7.math.umulh":288,"./modules/es7.object.define-getter":289,"./modules/es7.object.define-setter":290,"./modules/es7.object.entries":291,"./modules/es7.object.get-own-property-descriptors":292,"./modules/es7.object.lookup-getter":293,"./modules/es7.object.lookup-setter":294,"./modules/es7.object.values":295,"./modules/es7.observable":296,"./modules/es7.promise.finally":297,"./modules/es7.promise.try":298,"./modules/es7.reflect.define-metadata":299,"./modules/es7.reflect.delete-metadata":300,"./modules/es7.reflect.get-metadata":302,"./modules/es7.reflect.get-metadata-keys":301,"./modules/es7.reflect.get-own-metadata":304,"./modules/es7.reflect.get-own-metadata-keys":303,"./modules/es7.reflect.has-metadata":305,"./modules/es7.reflect.has-own-metadata":306,"./modules/es7.reflect.metadata":307,"./modules/es7.set.from":308,"./modules/es7.set.of":309,"./modules/es7.set.to-json":310,"./modules/es7.string.at":311,"./modules/es7.string.match-all":312,"./modules/es7.string.pad-end":313,"./modules/es7.string.pad-start":314,"./modules/es7.string.trim-left":315,"./modules/es7.string.trim-right":316,"./modules/es7.symbol.async-iterator":317,"./modules/es7.symbol.observable":318,"./modules/es7.system.global":319,"./modules/es7.weak-map.from":320,"./modules/es7.weak-map.of":321,"./modules/es7.weak-set.from":322,"./modules/es7.weak-set.of":323,"./modules/web.dom.iterable":324,"./modules/web.immediate":325,"./modules/web.timers":326}],328:[function(e,t,r){var n;!function(e){"undefined"==typeof DO_NOT_EXPORT_CRC?"object"==typeof r?e(r):"function"==typeof define&&define.amd?define(function(){var t={};return e(t),t}):e(n={}):e(n={})}(function(e){e.version="1.1.1";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}();e.table=t,e.bstr=function(e,r){for(var n=-1^r,i=e.length-1,o=0;o<i;)n=(n=n>>>8^t[255&(n^e.charCodeAt(o++))])>>>8^t[255&(n^e.charCodeAt(o++))];return o===i&&(n=n>>>8^t[255&(n^e.charCodeAt(o))]),-1^n},e.buf=function(e,r){if(e.length>1e4)return function(e,r){for(var n=-1^r,i=e.length-7,o=0;o<i;)n=(n=(n=(n=(n=(n=(n=(n=n>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o<i+7;)n=n>>>8^t[255&(n^e[o++])];return-1^n}(e,r);for(var n=-1^r,i=e.length-3,o=0;o<i;)n=(n=(n=(n=n>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])])>>>8^t[255&(n^e[o++])];for(;o<i+3;)n=n>>>8^t[255&(n^e[o++])];return-1^n},e.str=function(e,r){for(var n,i,o=-1^r,s=0,a=e.length;s<a;)(n=e.charCodeAt(s++))<128?o=o>>>8^t[255&(o^n)]:n<2048?o=(o=o>>>8^t[255&(o^(192|n>>6&31))])>>>8^t[255&(o^(128|63&n))]:n>=55296&&n<57344?(n=64+(1023&n),i=1023&e.charCodeAt(s++),o=(o=(o=(o=o>>>8^t[255&(o^(240|n>>8&7))])>>>8^t[255&(o^(128|n>>2&63))])>>>8^t[255&(o^(128|i>>6&15|(3&n)<<4))])>>>8^t[255&(o^(128|63&i))]):o=(o=(o=o>>>8^t[255&(o^(224|n>>12&15))])>>>8^t[255&(o^(128|n>>6&63))])>>>8^t[255&(o^(128|63&n))];return-1^o}})},{}],329:[function(e,t,r){(function(e){!function(e){function t(e){if("utf-8"!==(e=void 0===e?"utf-8":e))throw new RangeError("Failed to construct 'TextEncoder': The encoding label provided ('"+e+"') is invalid.")}function r(e,t){if(e=void 0===e?"utf-8":e,t=void 0===t?{fatal:!1}:t,"utf-8"!==e)throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+e+"') is invalid.");if(t.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.")}if(e.TextEncoder&&e.TextDecoder)return!1;Object.defineProperty(t.prototype,"encoding",{value:"utf-8"}),t.prototype.encode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to encode: the 'stream' option is unsupported.");t=0;for(var r=e.length,n=0,i=Math.max(32,r+(r>>1)+7),o=new Uint8Array(i>>3<<3);t<r;){var s=e.charCodeAt(t++);if(55296<=s&&56319>=s){if(t<r){var a=e.charCodeAt(t);56320==(64512&a)&&(++t,s=((1023&s)<<10)+(1023&a)+65536)}if(55296<=s&&56319>=s)continue}if(n+4>o.length&&(i+=8,i*=1+t/e.length*2,i=i>>3<<3,(a=new Uint8Array(i)).set(o),o=a),0==(4294967168&s))o[n++]=s;else{if(0==(4294965248&s))o[n++]=s>>6&31|192;else if(0==(4294901760&s))o[n++]=s>>12&15|224,o[n++]=s>>6&63|128;else{if(0!=(4292870144&s))continue;o[n++]=s>>18&7|240,o[n++]=s>>12&63|128,o[n++]=s>>6&63|128}o[n++]=63&s|128}}return o.slice(0,n)},Object.defineProperty(r.prototype,"encoding",{value:"utf-8"}),Object.defineProperty(r.prototype,"fatal",{value:!1}),Object.defineProperty(r.prototype,"ignoreBOM",{value:!1}),r.prototype.decode=function(e,t){if((t=void 0===t?{stream:!1}:t).stream)throw Error("Failed to decode: the 'stream' option is unsupported.");t=0;for(var r=(e=new Uint8Array(e)).length,n=[];t<r;){var i=e[t++];if(0===i)break;if(0==(128&i))n.push(i);else if(192==(224&i)){var o=63&e[t++];n.push((31&i)<<6|o)}else if(224==(240&i)){o=63&e[t++];var s=63&e[t++];n.push((31&i)<<12|o<<6|s)}else if(240==(248&i)){65535<(i=(7&i)<<18|(o=63&e[t++])<<12|(s=63&e[t++])<<6|63&e[t++])&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i)}}return String.fromCharCode.apply(null,n)},e.TextEncoder=t,e.TextDecoder=r}("undefined"!=typeof window?window:void 0!==e?e:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],330:[function(e,t,r){(function(e){!function(e){"use strict";function r(e,t,r,o){var s=t&&t.prototype instanceof i?t:i,a=Object.create(s.prototype),c=new h(o||[]);return a._invoke=function(e,t,r){var i=S;return function(o,s){if(i===E)throw new Error("Generator is already running");if(i===A){if("throw"===o)throw s;return p()}for(r.method=o,r.arg=s;;){var a=r.delegate;if(a){var c=l(a,r);if(c){if(c===j)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===S)throw i=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=E;var u=n(e,t,r);if("normal"===u.type){if(i=r.done?A:k,u.arg===j)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=A,r.method="throw",r.arg=u.arg)}}}(e,r,c),a}function n(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function s(){}function a(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function c(t){function r(e,i,o,s){var a=n(t[e],t,i);if("throw"!==a.type){var c=a.arg,l=c.value;return l&&"object"==typeof l&&y.call(l,"__await")?Promise.resolve(l.__await).then(function(e){r("next",e,o,s)},function(e){r("throw",e,o,s)}):Promise.resolve(l).then(function(e){c.value=e,o(c)},s)}s(a.arg)}"object"==typeof e.process&&e.process.domain&&(r=e.process.domain.bind(r));var i;this._invoke=function(e,t){function n(){return new Promise(function(n,i){r(e,t,n,i)})}return i=i?i.then(n,n):n()}}function l(e,t){var r=e.iterator[t.method];if(r===d){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=d,l(e,t),"throw"===t.method))return j;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var i=n(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,j;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=d),t.delegate=null,j):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,j)}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function f(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function _(e){if(e){var t=e[v];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(y.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=d,t.done=!0,t};return n.next=n}}return{next:p}}function p(){return{value:d,done:!0}}var d,m=Object.prototype,y=m.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},v=b.iterator||"@@iterator",g=b.asyncIterator||"@@asyncIterator",x=b.toStringTag||"@@toStringTag",w="object"==typeof t,C=e.regeneratorRuntime;if(C)w&&(t.exports=C);else{(C=e.regeneratorRuntime=w?t.exports:{}).wrap=r;var S="suspendedStart",k="suspendedYield",E="executing",A="completed",j={},O={};O[v]=function(){return this};var M=Object.getPrototypeOf,L=M&&M(M(_([])));L&&L!==m&&y.call(L,v)&&(O=L);var T=s.prototype=i.prototype=Object.create(O);o.prototype=T.constructor=s,s.constructor=o,s[x]=o.displayName="GeneratorFunction",C.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},C.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,x in e||(e[x]="GeneratorFunction")),e.prototype=Object.create(T),e},C.awrap=function(e){return{__await:e}},a(c.prototype),c.prototype[g]=function(){return this},C.AsyncIterator=c,C.async=function(e,t,n,i){var o=new c(r(e,t,n,i));return C.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},a(T),T[x]="Generator",T[v]=function(){return this},T.toString=function(){return"[object Generator]"},C.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},C.values=_,h.prototype={constructor:h,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=d,this.done=!1,this.delegate=null,this.method="next",this.arg=d,this.tryEntries.forEach(f),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=d)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){function t(t,n){return o.type="throw",o.arg=e,r.next=t,n&&(r.method="next",r.arg=d),!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var s=y.call(i,"catchLoc"),a=y.call(i,"finallyLoc");if(s&&a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,j):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),f(r),j}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;f(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=d),j}}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],331:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./utils/CircularList");r.CHAR_DATA_ATTR_INDEX=0,r.CHAR_DATA_CHAR_INDEX=1,r.CHAR_DATA_WIDTH_INDEX=2,r.CHAR_DATA_CODE_INDEX=3,r.MAX_BUFFER_SIZE=4294967295;var i=function(){function e(e,t){this._terminal=e,this._hasScrollback=t,this.clear()}return Object.defineProperty(e.prototype,"lines",{get:function(){return this._lines},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._terminal.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._terminal.rows},enumerable:!0,configurable:!0}),e.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var t=e+this._terminal.options.scrollback;return t>r.MAX_BUFFER_SIZE?r.MAX_BUFFER_SIZE:t},e.prototype.fillViewportRows=function(){if(0===this._lines.length)for(var e=this._terminal.rows;e--;)this.lines.push(this._terminal.blankLine())},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this._lines=new n.CircularList(this._getCorrectBufferLength(this._terminal.rows)),this.scrollTop=0,this.scrollBottom=this._terminal.rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var r=this._getCorrectBufferLength(t);if(r>this._lines.maxLength&&(this._lines.maxLength=r),this._lines.length>0){if(this._terminal.cols<e)for(var n=[this._terminal.defAttr," ",1,32],i=0;i<this._lines.length;i++)for(void 0===this._lines.get(i)&&this._lines.set(i,this._terminal.blankLine(void 0,void 0,e));this._lines.get(i).length<e;)this._lines.get(i).push(n);var o=0;if(this._terminal.rows<t)for(s=this._terminal.rows;s<t;s++)this._lines.length<t+this.ybase&&(this.ybase>0&&this._lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this._lines.push(this._terminal.blankLine(void 0,void 0,e)));else for(var s=this._terminal.rows;s>t;s--)this._lines.length>t+this.ybase&&(this._lines.length>this.ybase+this.y+1?this._lines.pop():(this.ybase++,this.ydisp++));if(r<this._lines.maxLength){var a=this._lines.length-r;a>0&&(this._lines.trimStart(a),this.ybase=Math.max(this.ybase-a,0),this.ydisp=Math.max(this.ydisp-a,0)),this._lines.maxLength=r}this.y>=t&&(this.y=t-1),o&&(this.y+=o),this.x>=e&&(this.x=e-1),this.scrollTop=0}this.scrollBottom=t-1},e.prototype.translateBufferLineToString=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=null);var o="",s=this.lines.get(e);if(!s)return"";for(var a=n,c=i=i||s.length,l=0;l<s.length;l++){var u=s[l];o+=u[r.CHAR_DATA_CHAR_INDEX],0===u[r.CHAR_DATA_WIDTH_INDEX]?(n>=l&&a--,i>=l&&c--):u[r.CHAR_DATA_CHAR_INDEX].length>1&&(n>l&&(a+=u[r.CHAR_DATA_CHAR_INDEX].length-1),i>l&&(c+=u[r.CHAR_DATA_CHAR_INDEX].length-1))}if(t){var f=o.search(/\s+$/);if(-1!==f&&(c=Math.min(c,f)),c<=a)return""}return o.substring(a,c)},e.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._terminal.cols;e+=this._terminal.options.tabStopWidth)this.tabs[e]=!0},e.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._terminal.cols;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e}();r.Buffer=i},{"./utils/CircularList":362}],332:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("./Buffer"),o=function(e){function t(t){var r=e.call(this)||this;return r._terminal=t,r._normal=new i.Buffer(r._terminal,!0),r._normal.fillViewportRows(),r._alt=new i.Buffer(r._terminal,!1),r._activeBuffer=r._normal,r.setupTabStops(),r}return n(t,e),Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!0,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._alt.clear(),this._activeBuffer=this._normal,this.emit("activate",this._normal)},t.prototype.activateAltBuffer=function(){this._alt.fillViewportRows(),this._activeBuffer=this._alt,this.emit("activate",this._alt)},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(e("./EventEmitter").EventEmitter);r.BufferSet=o},{"./Buffer":331,"./EventEmitter":337}],333:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.wcwidth=function(e){function t(e,t){var r,n=0,i=t.length-1;if(e<t[0][0]||e>t[i][1])return!1;for(;i>=n;)if(r=n+i>>1,e>t[r][1])n=r+1;else{if(!(e<t[r][0]))return!0;i=r-1}return!1}function r(r){return 0===r?e.nul:r<32||r>=127&&r<160?e.control:t(r,n)?0:function(e){return e>=4352&&(e<=4447||9001===e||9002===e||e>=11904&&e<=42191&&12351!==e||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510)}(r)?2:1}var n=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],i=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],o=0|e.control,s=null;return function(e){if((e|=0)<32)return 0|o;if(e<127)return 1;var n=s||function(){s="undefined"==typeof Uint32Array?new Array(4096):new Uint32Array(4096);for(var e=0;e<4096;++e){for(var t=0,n=16;n--;)t=t<<2|r(16*e+n);s[e]=t}return s}();return e<65536?n[e>>4]>>((15&e)<<1)&3:function(e){return t(e,i)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}(e)}}({nul:0,control:0})},{}],334:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CHARSETS={},r.DEFAULT_CHARSET=r.CHARSETS.B,r.CHARSETS[0]={"`":"◆",a:"▒",b:"\t",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"␤",i:"\v",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},r.CHARSETS.A={"#":"£"},r.CHARSETS.B=null,r.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},r.CHARSETS.C=r.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},r.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},r.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},r.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},r.CHARSETS.E=r.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},r.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},r.CHARSETS.H=r.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},r.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},{}],335:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e,t,r){this.textarea=e,this.compositionView=t,this.terminal=r,this.isComposing=!1,this.isSendingComposition=!1,this.compositionPosition={start:null,end:null}}return e.prototype.compositionstart=function(){this.isComposing=!0,this.compositionPosition.start=this.textarea.value.length,this.compositionView.textContent="",this.compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this.compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t.compositionPosition.end=t.textarea.value.length},0)},e.prototype.compositionend=function(){this.finalizeComposition(!0)},e.prototype.keydown=function(e){if(this.isComposing||this.isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this.finalizeComposition(!1)}return 229!==e.keyCode||(this.handleAnyTextareaChanges(),!1)},e.prototype.finalizeComposition=function(e){var t=this;if(this.compositionView.classList.remove("active"),this.isComposing=!1,this.clearTextareaPosition(),e){var r={start:this.compositionPosition.start,end:this.compositionPosition.end};this.isSendingComposition=!0,setTimeout(function(){if(t.isSendingComposition){t.isSendingComposition=!1;var e=void 0;e=t.isComposing?t.textarea.value.substring(r.start,r.end):t.textarea.value.substring(r.start),t.terminal.handler(e)}},0)}else{this.isSendingComposition=!1;var n=this.textarea.value.substring(this.compositionPosition.start,this.compositionPosition.end);this.terminal.handler(n)}},e.prototype.handleAnyTextareaChanges=function(){var e=this,t=this.textarea.value;setTimeout(function(){if(!e.isComposing){var r=e.textarea.value.replace(t,"");r.length>0&&e.terminal.handler(r)}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this.isComposing){if(this.terminal.buffer.isCursorInViewport){var r=Math.ceil(this.terminal.charMeasure.height*this.terminal.options.lineHeight),n=this.terminal.buffer.y*r,i=this.terminal.buffer.x*this.terminal.charMeasure.width;this.compositionView.style.left=i+"px",this.compositionView.style.top=n+"px",this.compositionView.style.height=r+"px",this.compositionView.style.lineHeight=r+"px";var o=this.compositionView.getBoundingClientRect();this.textarea.style.left=i+"px",this.textarea.style.top=n+"px",this.textarea.style.width=o.width+"px",this.textarea.style.height=o.height+"px",this.textarea.style.lineHeight=o.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},e.prototype.clearTextareaPosition=function(){this.textarea.style.left="",this.textarea.style.top=""},e}();r.CompositionHelper=n},{}],336:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});!function(e){e.NUL="\0",e.SOH="\ 1",e.STX="\ 2",e.ETX="\ 3",e.EOT="\ 4",e.ENQ="\ 5",e.ACK="\ 6",e.BEL="\a",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="\ e",e.SI="\ f",e.DLE="\10",e.DC1="\11",e.DC2="\12",e.DC3="\13",e.DC4="\14",e.NAK="\15",e.SYN="\16",e.ETB="\17",e.CAN="\18",e.EM="\19",e.SUB="\1a",e.ESC="\e",e.FS="\1c",e.GS="\1d",e.RS="\1e",e.US="\1f",e.SP=" ",e.DEL="\7f"}(r.C0||(r.C0={}))},{}],337:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(){this._events=this._events||{}}return e.prototype.on=function(e,t){this._events[e]=this._events[e]||[],this._events[e].push(t)},e.prototype.off=function(e,t){if(this._events[e])for(var r=this._events[e],n=r.length;n--;)if(r[n]===t||r[n].listener===t)return void r.splice(n,1)},e.prototype.removeAllListeners=function(e){this._events[e]&&delete this._events[e]},e.prototype.once=function(e,t){function r(){var n=Array.prototype.slice.call(arguments);this.off(e,r),t.apply(this,n)}r.listener=t,this.on(e,r)},e.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(this._events[e])for(var n=this._events[e],i=0;i<n.length;i++)n[i].apply(this,t)},e.prototype.listeners=function(e){return this._events[e]||[]},e.prototype.destroy=function(){this._events={}},e}();r.EventEmitter=n},{}],338:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./EscapeSequences"),i=e("./Charsets"),o=e("./Buffer"),s=e("./renderer/Types"),a=e("./CharWidth"),c=function(){function e(e){this._terminal=e}return e.prototype.addChar=function(e,t){if(e>=" "){var r=a.wcwidth(t);this._terminal.charset&&this._terminal.charset[e]&&(e=this._terminal.charset[e]);var n=this._terminal.buffer.y+this._terminal.buffer.ybase;if(!r&&this._terminal.buffer.x)return void(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1]&&(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1][o.CHAR_DATA_WIDTH_INDEX]?(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1][o.CHAR_DATA_CHAR_INDEX]+=e,this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-1][3]=e.charCodeAt(0)):this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-2]&&(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-2][o.CHAR_DATA_CHAR_INDEX]+=e,this._terminal.buffer.lines.get(n)[this._terminal.buffer.x-2][3]=e.charCodeAt(0)),this._terminal.updateRange(this._terminal.buffer.y)));if(this._terminal.buffer.x+r-1>=this._terminal.cols)if(this._terminal.wraparoundMode)this._terminal.buffer.x=0,this._terminal.buffer.y++,this._terminal.buffer.y>this._terminal.buffer.scrollBottom?(this._terminal.buffer.y--,this._terminal.scroll(!0)):this._terminal.buffer.lines.get(this._terminal.buffer.y).isWrapped=!0;else if(2===r)return;if(n=this._terminal.buffer.y+this._terminal.buffer.ybase,this._terminal.insertMode)for(var i=0;i<r;++i){0===this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).pop()[o.CHAR_DATA_WIDTH_INDEX]&&this._terminal.buffer.lines.get(n)[this._terminal.cols-2]&&2===this._terminal.buffer.lines.get(n)[this._terminal.cols-2][o.CHAR_DATA_WIDTH_INDEX]&&(this._terminal.buffer.lines.get(n)[this._terminal.cols-2]=[this._terminal.curAttr," ",1," ".charCodeAt(0)]),this._terminal.buffer.lines.get(n).splice(this._terminal.buffer.x,0,[this._terminal.curAttr," ",1," ".charCodeAt(0)])}this._terminal.buffer.lines.get(n)[this._terminal.buffer.x]=[this._terminal.curAttr,e,r,e.charCodeAt(0)],this._terminal.buffer.x++,this._terminal.updateRange(this._terminal.buffer.y),2===r&&(this._terminal.buffer.lines.get(n)[this._terminal.buffer.x]=[this._terminal.curAttr,"",0,void 0],this._terminal.buffer.x++)}},e.prototype.bell=function(){this._terminal.bell()},e.prototype.lineFeed=function(){this._terminal.convertEol&&(this._terminal.buffer.x=0),this._terminal.buffer.y++,this._terminal.buffer.y>this._terminal.buffer.scrollBottom&&(this._terminal.buffer.y--,this._terminal.scroll()),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.emit("linefeed")},e.prototype.carriageReturn=function(){this._terminal.buffer.x=0},e.prototype.backspace=function(){this._terminal.buffer.x>0&&this._terminal.buffer.x--},e.prototype.tab=function(){this._terminal.buffer.x=this._terminal.buffer.nextStop()},e.prototype.shiftOut=function(){this._terminal.setgLevel(1)},e.prototype.shiftIn=function(){this._terminal.setgLevel(0)},e.prototype.insertChars=function(e){var t=e[0];t<1&&(t=1);for(var r=this._terminal.buffer.y+this._terminal.buffer.ybase,n=this._terminal.buffer.x,i=[this._terminal.eraseAttr()," ",1,32];t--&&n<this._terminal.cols;)this._terminal.buffer.lines.get(r).splice(n++,0,i),this._terminal.buffer.lines.get(r).pop()},e.prototype.cursorUp=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0)},e.prototype.cursorDown=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},e.prototype.cursorForward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.cursorBackward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.buffer.x-=t,this._terminal.buffer.x<0&&(this._terminal.buffer.x=0)},e.prototype.cursorNextLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=0},e.prototype.cursorPrecedingLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0),this._terminal.buffer.x=0},e.prototype.cursorCharAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1},e.prototype.cursorPosition=function(e){var t,r=e[0]-1;t=e.length>=2?e[1]-1:0,r<0?r=0:r>=this._terminal.rows&&(r=this._terminal.rows-1),t<0?t=0:t>=this._terminal.cols&&(t=this._terminal.cols-1),this._terminal.buffer.x=t,this._terminal.buffer.y=r},e.prototype.cursorForwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.nextStop()},e.prototype.eraseInDisplay=function(e){var t;switch(e[0]){case 0:for(this._terminal.eraseRight(this._terminal.buffer.x,this._terminal.buffer.y),t=this._terminal.buffer.y+1;t<this._terminal.rows;t++)this._terminal.eraseLine(t);break;case 1:for(this._terminal.eraseLeft(this._terminal.buffer.x,this._terminal.buffer.y),t=this._terminal.buffer.y;t--;)this._terminal.eraseLine(t);break;case 2:for(t=this._terminal.rows;t--;)this._terminal.eraseLine(t);break;case 3:var r=this._terminal.buffer.lines.length-this._terminal.rows;r>0&&(this._terminal.buffer.lines.trimStart(r),this._terminal.buffer.ybase=Math.max(this._terminal.buffer.ybase-r,0),this._terminal.buffer.ydisp=Math.max(this._terminal.buffer.ydisp-r,0),this._terminal.emit("scroll",0))}},e.prototype.eraseInLine=function(e){switch(e[0]){case 0:this._terminal.eraseRight(this._terminal.buffer.x,this._terminal.buffer.y);break;case 1:this._terminal.eraseLeft(this._terminal.buffer.x,this._terminal.buffer.y);break;case 2:this._terminal.eraseLine(this._terminal.buffer.y)}},e.prototype.insertLines=function(e){var t=e[0];t<1&&(t=1);for(var r=this._terminal.buffer.y+this._terminal.buffer.ybase,n=this._terminal.rows-1-this._terminal.buffer.scrollBottom,i=this._terminal.rows-1+this._terminal.buffer.ybase-n+1;t--;)this._terminal.buffer.lines.splice(i-1,1),this._terminal.buffer.lines.splice(r,0,this._terminal.blankLine(!0));this._terminal.updateRange(this._terminal.buffer.y),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.deleteLines=function(e){var t=e[0];t<1&&(t=1);var r,n=this._terminal.buffer.y+this._terminal.buffer.ybase;for(r=this._terminal.rows-1-this._terminal.buffer.scrollBottom,r=this._terminal.rows-1+this._terminal.buffer.ybase-r;t--;)this._terminal.buffer.lines.splice(n,1),this._terminal.buffer.lines.splice(r,0,this._terminal.blankLine(!0));this._terminal.updateRange(this._terminal.buffer.y),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.deleteChars=function(e){var t=e[0];t<1&&(t=1);for(var r=this._terminal.buffer.y+this._terminal.buffer.ybase,n=[this._terminal.eraseAttr()," ",1,32];t--;)this._terminal.buffer.lines.get(r).splice(this._terminal.buffer.x,1),this._terminal.buffer.lines.get(r).push(n);this._terminal.updateRange(this._terminal.buffer.y)},e.prototype.scrollUp=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollTop,1),this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollBottom,0,this._terminal.blankLine());this._terminal.updateRange(this._terminal.buffer.scrollTop),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.scrollDown=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollBottom,1),this._terminal.buffer.lines.splice(this._terminal.buffer.ybase+this._terminal.buffer.scrollTop,0,this._terminal.blankLine());this._terminal.updateRange(this._terminal.buffer.scrollTop),this._terminal.updateRange(this._terminal.buffer.scrollBottom)},e.prototype.eraseChars=function(e){var t=e[0];t<1&&(t=1);for(var r=this._terminal.buffer.y+this._terminal.buffer.ybase,n=this._terminal.buffer.x,i=[this._terminal.eraseAttr()," ",1,32];t--&&n<this._terminal.cols;)this._terminal.buffer.lines.get(r)[n++]=i},e.prototype.cursorBackwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.prevStop()},e.prototype.charPosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.HPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.repeatPrecedingCharacter=function(e){for(var t=e[0]||1,r=this._terminal.buffer.lines.get(this._terminal.buffer.ybase+this._terminal.buffer.y),n=r[this._terminal.buffer.x-1]||[this._terminal.defAttr," ",1,32];t--;)r[this._terminal.buffer.x++]=n},e.prototype.sendDeviceAttributes=function(e){e[0]>0||(this._terminal.prefix?">"===this._terminal.prefix&&(this._terminal.is("xterm")?this._terminal.send(n.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._terminal.send(n.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._terminal.send(e[0]+"c"):this._terminal.is("screen")&&this._terminal.send(n.C0.ESC+"[>83;40003;0c")):this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._terminal.send(n.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._terminal.send(n.C0.ESC+"[?6c"))},e.prototype.linePosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y=t-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1)},e.prototype.VPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},e.prototype.HVPosition=function(e){e[0]<1&&(e[0]=1),e[1]<1&&(e[1]=1),this._terminal.buffer.y=e[0]-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=e[1]-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.tabClear=function(e){var t=e[0];t<=0?delete this._terminal.buffer.tabs[this._terminal.buffer.x]:3===t&&(this._terminal.buffer.tabs={})},e.prototype.setMode=function(e){if(e.length>1)for(var t=0;t<e.length;t++)this.setMode([e[t]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(e[0]){case 1:this._terminal.applicationCursor=!0;break;case 2:this._terminal.setgCharset(0,i.DEFAULT_CHARSET),this._terminal.setgCharset(1,i.DEFAULT_CHARSET),this._terminal.setgCharset(2,i.DEFAULT_CHARSET),this._terminal.setgCharset(3,i.DEFAULT_CHARSET);break;case 3:this._terminal.savedCols=this._terminal.cols,this._terminal.resize(132,this._terminal.rows);break;case 6:this._terminal.originMode=!0;break;case 7:this._terminal.wraparoundMode=!0;break;case 12:break;case 66:this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=9===e[0],this._terminal.vt200Mouse=1e3===e[0],this._terminal.normalMouse=e[0]>1e3,this._terminal.mouseEvents=!0,this._terminal.element.classList.add("enable-mouse-events"),this._terminal.selectionManager.disable(),this._terminal.log("Binding to mouse events.");break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._terminal.utfMouse=!0;break;case 1006:this._terminal.sgrMouse=!0;break;case 1015:this._terminal.urxvtMouse=!0;break;case 25:this._terminal.cursorHidden=!1;break;case 1049:case 47:case 1047:this._terminal.buffers.activateAltBuffer(),this._terminal.selectionManager.setBuffer(this._terminal.buffer),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!0}}else switch(e[0]){case 4:this._terminal.insertMode=!0}},e.prototype.resetMode=function(e){if(e.length>1)for(var t=0;t<e.length;t++)this.resetMode([e[t]]);else if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(e[0]){case 1:this._terminal.applicationCursor=!1;break;case 3:132===this._terminal.cols&&this._terminal.savedCols&&this._terminal.resize(this._terminal.savedCols,this._terminal.rows),delete this._terminal.savedCols;break;case 6:this._terminal.originMode=!1;break;case 7:this._terminal.wraparoundMode=!1;break;case 12:break;case 66:this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=!1,this._terminal.vt200Mouse=!1,this._terminal.normalMouse=!1,this._terminal.mouseEvents=!1,this._terminal.element.classList.remove("enable-mouse-events"),this._terminal.selectionManager.enable();break;case 1004:this._terminal.sendFocus=!1;break;case 1005:this._terminal.utfMouse=!1;break;case 1006:this._terminal.sgrMouse=!1;break;case 1015:this._terminal.urxvtMouse=!1;break;case 25:this._terminal.cursorHidden=!0;break;case 1049:case 47:case 1047:this._terminal.buffers.activateNormalBuffer(),this._terminal.selectionManager.setBuffer(this._terminal.buffer),this._terminal.refresh(0,this._terminal.rows-1),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!1}}else switch(e[0]){case 4:this._terminal.insertMode=!1}},e.prototype.charAttributes=function(e){if(1!==e.length||0!==e[0]){for(var t,r=e.length,n=this._terminal.curAttr>>18,i=this._terminal.curAttr>>9&511,o=511&this._terminal.curAttr,a=0;a<r;a++)(t=e[a])>=30&&t<=37?i=t-30:t>=40&&t<=47?o=t-40:t>=90&&t<=97?i=(t+=8)-90:t>=100&&t<=107?o=(t+=8)-100:0===t?(n=this._terminal.defAttr>>18,i=this._terminal.defAttr>>9&511,o=511&this._terminal.defAttr):1===t?n|=s.FLAGS.BOLD:4===t?n|=s.FLAGS.UNDERLINE:5===t?n|=s.FLAGS.BLINK:7===t?n|=s.FLAGS.INVERSE:8===t?n|=s.FLAGS.INVISIBLE:2===t?n|=s.FLAGS.DIM:22===t?(n&=~s.FLAGS.BOLD,n&=~s.FLAGS.DIM):24===t?n&=~s.FLAGS.UNDERLINE:25===t?n&=~s.FLAGS.BLINK:27===t?n&=~s.FLAGS.INVERSE:28===t?n&=~s.FLAGS.INVISIBLE:39===t?i=this._terminal.defAttr>>9&511:49===t?o=511&this._terminal.defAttr:38===t?2===e[a+1]?(a+=2,-1===(i=this._terminal.matchColor(255&e[a],255&e[a+1],255&e[a+2]))&&(i=511),a+=2):5===e[a+1]&&(i=t=255&e[a+=2]):48===t?2===e[a+1]?(a+=2,-1===(o=this._terminal.matchColor(255&e[a],255&e[a+1],255&e[a+2]))&&(o=511),a+=2):5===e[a+1]&&(o=t=255&e[a+=2]):100===t?(i=this._terminal.defAttr>>9&511,o=511&this._terminal.defAttr):this._terminal.error("Unknown SGR attribute: %d.",t);this._terminal.curAttr=n<<18|i<<9|o}else this._terminal.curAttr=this._terminal.defAttr},e.prototype.deviceStatus=function(e){if(this._terminal.prefix){if("?"===this._terminal.prefix)switch(e[0]){case 6:this._terminal.send(n.C0.ESC+"[?"+(this._terminal.buffer.y+1)+";"+(this._terminal.buffer.x+1)+"R")}}else switch(e[0]){case 5:this._terminal.send(n.C0.ESC+"[0n");break;case 6:this._terminal.send(n.C0.ESC+"["+(this._terminal.buffer.y+1)+";"+(this._terminal.buffer.x+1)+"R")}},e.prototype.softReset=function(e){this._terminal.cursorHidden=!1,this._terminal.insertMode=!1,this._terminal.originMode=!1,this._terminal.wraparoundMode=!0,this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea(),this._terminal.applicationCursor=!1,this._terminal.buffer.scrollTop=0,this._terminal.buffer.scrollBottom=this._terminal.rows-1,this._terminal.curAttr=this._terminal.defAttr,this._terminal.buffer.x=this._terminal.buffer.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null]},e.prototype.setCursorStyle=function(e){var t=e[0]<1?1:e[0];switch(t){case 1:case 2:this._terminal.setOption("cursorStyle","block");break;case 3:case 4:this._terminal.setOption("cursorStyle","underline");break;case 5:case 6:this._terminal.setOption("cursorStyle","bar")}var r=t%2==1;this._terminal.setOption("cursorBlink",r)},e.prototype.setScrollRegion=function(e){this._terminal.prefix||(this._terminal.buffer.scrollTop=(e[0]||1)-1,this._terminal.buffer.scrollBottom=(e[1]&&e[1]<=this._terminal.rows?e[1]:this._terminal.rows)-1,this._terminal.buffer.x=0,this._terminal.buffer.y=0)},e.prototype.saveCursor=function(e){this._terminal.buffer.savedX=this._terminal.buffer.x,this._terminal.buffer.savedY=this._terminal.buffer.y},e.prototype.restoreCursor=function(e){this._terminal.buffer.x=this._terminal.buffer.savedX||0,this._terminal.buffer.y=this._terminal.buffer.savedY||0},e}();r.InputHandler=c},{"./Buffer":331,"./CharWidth":333,"./Charsets":334,"./EscapeSequences":336,"./renderer/Types":359}],339:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("./Types"),o=e("./input/MouseZoneManager"),s=e("./EventEmitter"),a=new RegExp("(?:^|[^\\da-z\\.-]+)((https?:\\/\\/)((([\\da-z\\.-]+)\\.([a-z\\.]{2,6}))|((\\d{1,3}\\.){3}\\d{1,3})|(localhost))(:\\d{1,5})?(\\/[\\/\\w\\.\\-%~]*)*(\\?[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?(#[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?)($|[^\\/\\w\\.\\-%]+)"),c=0,l=function(e){function t(t){var r=e.call(this)||this;return r._terminal=t,r._linkMatchers=[],r._nextLinkMatcherId=c,r._rowsToLinkify={start:null,end:null},r.registerLinkMatcher(a,null,{matchIndex:1}),r}return n(t,e),t.prototype.attachToDom=function(e){this._mouseZoneManager=e},t.prototype.linkifyRows=function(e,r){var n=this;this._mouseZoneManager&&(this._rowsToLinkify.start?(this._rowsToLinkify.start=this._rowsToLinkify.start<e?this._rowsToLinkify.start:e,this._rowsToLinkify.end=this._rowsToLinkify.end>r?this._rowsToLinkify.end:r):(this._rowsToLinkify.start=e,this._rowsToLinkify.end=r),this._mouseZoneManager.clearAll(e,r),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._linkifyRows()},t.TIME_BEFORE_LINKIFY))},t.prototype._linkifyRows=function(){this._rowsTimeoutId=null;for(var e=this._rowsToLinkify.start;e<=this._rowsToLinkify.end;e++)this._linkifyRow(e);this._rowsToLinkify.start=null,this._rowsToLinkify.end=null},t.prototype.setHypertextLinkHandler=function(e){this._linkMatchers[c].handler=e},t.prototype.setHypertextValidationCallback=function(e){this._linkMatchers[c].validationCallback=e},t.prototype.registerLinkMatcher=function(e,t,r){if(void 0===r&&(r={}),this._nextLinkMatcherId!==c&&!t)throw new Error("handler must be defined");var n={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:r.matchIndex,validationCallback:r.validationCallback,hoverTooltipCallback:r.tooltipCallback,hoverLeaveCallback:r.leaveCallback,priority:r.priority||0};return this._addLinkMatcherToList(n),n.id},t.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;t>=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},t.prototype.deregisterLinkMatcher=function(e){for(var t=1;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},t.prototype._linkifyRow=function(e){var t=this._terminal.buffer.ydisp+e;if(!(t>=this._terminal.buffer.lines.length))for(var r=this._terminal.buffer.translateBufferLineToString(t,!1),n=0;n<this._linkMatchers.length;n++)this._doLinkifyRow(e,r,this._linkMatchers[n])},t.prototype._doLinkifyRow=function(e,t,r,n){var i=this;void 0===n&&(n=0);r.id;var o=t.match(r.regex);if(o&&0!==o.length){var s=o["number"!=typeof r.matchIndex?0:r.matchIndex],a=t.indexOf(s);r.validationCallback?r.validationCallback(s,function(t){i._rowsTimeoutId||t&&i._addLink(n+a,e,s,r)}):this._addLink(n+a,e,s,r);var c=a+s.length,l=t.substr(c);l.length>0&&this._doLinkifyRow(e,l,r,n+c)}},t.prototype._addLink=function(e,t,r,n){var s=this;this._mouseZoneManager.add(new o.MouseZone(e+1,e+1+r.length,t+1,function(e){if(n.handler)return n.handler(e,r);window.open(r,"_blank")},function(n){s.emit(i.LinkHoverEventTypes.HOVER,{x:e,y:t,length:r.length}),s._terminal.element.style.cursor="pointer"},function(o){s.emit(i.LinkHoverEventTypes.TOOLTIP,{x:e,y:t,length:r.length}),n.hoverTooltipCallback&&n.hoverTooltipCallback(o,r)},function(){s.emit(i.LinkHoverEventTypes.LEAVE,{x:e,y:t,length:r.length}),s._terminal.element.style.cursor="",n.hoverLeaveCallback&&n.hoverLeaveCallback()}))},t.TIME_BEFORE_LINKIFY=200,t}(s.EventEmitter);r.Linkifier=l},{"./EventEmitter":337,"./Types":344,"./input/MouseZoneManager":349}],340:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./EscapeSequences"),i=e("./Charsets"),o={};o[n.C0.BEL]=function(e,t){return t.bell()},o[n.C0.LF]=function(e,t){return t.lineFeed()},o[n.C0.VT]=o[n.C0.LF],o[n.C0.FF]=o[n.C0.LF],o[n.C0.CR]=function(e,t){return t.carriageReturn()},o[n.C0.BS]=function(e,t){return t.backspace()},o[n.C0.HT]=function(e,t){return t.tab()},o[n.C0.SO]=function(e,t){return t.shiftOut()},o[n.C0.SI]=function(e,t){return t.shiftIn()},o[n.C0.ESC]=function(e,t){return e.setState(l.ESCAPED)};var s={};s["["]=function(e,t){t.params=[],t.currentParam=0,e.setState(l.CSI_PARAM)},s["]"]=function(e,t){t.params=[],t.currentParam=0,e.setState(l.OSC)},s.P=function(e,t){t.params=[],t.currentParam=0,e.setState(l.DCS)},s._=function(e,t){e.setState(l.IGNORE)},s["^"]=function(e,t){e.setState(l.IGNORE)},s.c=function(e,t){t.reset()},s.E=function(e,t){t.buffer.x=0,t.index(),e.setState(l.NORMAL)},s.D=function(e,t){t.index(),e.setState(l.NORMAL)},s.M=function(e,t){t.reverseIndex(),e.setState(l.NORMAL)},s["%"]=function(e,t){t.setgLevel(0),t.setgCharset(0,i.DEFAULT_CHARSET),e.setState(l.NORMAL),e.skipNextChar()},s[n.C0.CAN]=function(e){return e.setState(l.NORMAL)};var a={};a["?"]=function(e){return e.setPrefix("?")},a[">"]=function(e){return e.setPrefix(">")},a["!"]=function(e){return e.setPrefix("!")},a[0]=function(e){return e.setParam(10*e.getParam())},a[1]=function(e){return e.setParam(10*e.getParam()+1)},a[2]=function(e){return e.setParam(10*e.getParam()+2)},a[3]=function(e){return e.setParam(10*e.getParam()+3)},a[4]=function(e){return e.setParam(10*e.getParam()+4)},a[5]=function(e){return e.setParam(10*e.getParam()+5)},a[6]=function(e){return e.setParam(10*e.getParam()+6)},a[7]=function(e){return e.setParam(10*e.getParam()+7)},a[8]=function(e){return e.setParam(10*e.getParam()+8)},a[9]=function(e){return e.setParam(10*e.getParam()+9)},a.$=function(e){return e.setPostfix("$")},a['"']=function(e){return e.setPostfix('"')},a[" "]=function(e){return e.setPostfix(" ")},a["'"]=function(e){return e.setPostfix("'")},a[";"]=function(e){return e.finalizeParam()},a[n.C0.CAN]=function(e){return e.setState(l.NORMAL)};var c={};c["@"]=function(e,t,r){return e.insertChars(t)},c.A=function(e,t,r){return e.cursorUp(t)},c.B=function(e,t,r){return e.cursorDown(t)},c.C=function(e,t,r){return e.cursorForward(t)},c.D=function(e,t,r){return e.cursorBackward(t)},c.E=function(e,t,r){return e.cursorNextLine(t)},c.F=function(e,t,r){return e.cursorPrecedingLine(t)},c.G=function(e,t,r){return e.cursorCharAbsolute(t)},c.H=function(e,t,r){return e.cursorPosition(t)},c.I=function(e,t,r){return e.cursorForwardTab(t)},c.J=function(e,t,r){return e.eraseInDisplay(t)},c.K=function(e,t,r){return e.eraseInLine(t)},c.L=function(e,t,r){return e.insertLines(t)},c.M=function(e,t,r){return e.deleteLines(t)},c.P=function(e,t,r){return e.deleteChars(t)},c.S=function(e,t,r){return e.scrollUp(t)},c.T=function(e,t,r){t.length<2&&!r&&e.scrollDown(t)},c.X=function(e,t,r){return e.eraseChars(t)},c.Z=function(e,t,r){return e.cursorBackwardTab(t)},c["`"]=function(e,t,r){return e.charPosAbsolute(t)},c.a=function(e,t,r){return e.HPositionRelative(t)},c.b=function(e,t,r){return e.repeatPrecedingCharacter(t)},c.c=function(e,t,r){return e.sendDeviceAttributes(t)},c.d=function(e,t,r){return e.linePosAbsolute(t)},c.e=function(e,t,r){return e.VPositionRelative(t)},c.f=function(e,t,r){return e.HVPosition(t)},c.g=function(e,t,r){return e.tabClear(t)},c.h=function(e,t,r){return e.setMode(t)},c.l=function(e,t,r){return e.resetMode(t)},c.m=function(e,t,r){return e.charAttributes(t)},c.n=function(e,t,r){return e.deviceStatus(t)},c.p=function(e,t,r){switch(r){case"!":e.softReset(t)}},c.q=function(e,t,r,n){" "===n&&e.setCursorStyle(t)},c.r=function(e,t){return e.setScrollRegion(t)},c.s=function(e,t){return e.saveCursor(t)},c.u=function(e,t){return e.restoreCursor(t)},c[n.C0.CAN]=function(e,t,r,n,i){return i.setState(l.NORMAL)};var l;!function(e){e[e.NORMAL=0]="NORMAL",e[e.ESCAPED=1]="ESCAPED",e[e.CSI_PARAM=2]="CSI_PARAM",e[e.CSI=3]="CSI",e[e.OSC=4]="OSC",e[e.CHARSET=5]="CHARSET",e[e.DCS=6]="DCS",e[e.IGNORE=7]="IGNORE"}(l=r.ParserState||(r.ParserState={}));var u=function(){function e(e,t){this._inputHandler=e,this._terminal=t,this._state=l.NORMAL}return e.prototype.parse=function(e){var t,r,u,f,h=e.length,_=this._terminal.buffer.x,p=this._terminal.buffer.y;for(this._terminal.debug&&this._terminal.log("data: "+e),this._position=0,this._terminal.surrogate_high&&(e=this._terminal.surrogate_high+e,this._terminal.surrogate_high="");this._position<h;this._position++){if(r=e[this._position],55296<=(u=e.charCodeAt(this._position))&&u<=56319){if(f=e.charCodeAt(this._position+1),isNaN(f)){this._terminal.surrogate_high=r;continue}u=1024*(u-55296)+(f-56320)+65536,r+=e.charAt(this._position+1)}if(!(56320<=u&&u<=57343))switch(this._state){case l.NORMAL:r in o?o[r](this,this._inputHandler):this._inputHandler.addChar(r,u);break;case l.ESCAPED:if(r in s){s[r](this,this._terminal);break}switch(r){case"(":case")":case"*":case"+":case"-":case".":switch(r){case"(":this._terminal.gcharset=0;break;case")":this._terminal.gcharset=1;break;case"*":this._terminal.gcharset=2;break;case"+":this._terminal.gcharset=3;break;case"-":this._terminal.gcharset=1;break;case".":this._terminal.gcharset=2}this._state=l.CHARSET;break;case"/":this._terminal.gcharset=3,this._state=l.CHARSET,this._position--;break;case"N":case"O":break;case"n":this._terminal.setgLevel(2);break;case"o":case"|":this._terminal.setgLevel(3);break;case"}":this._terminal.setgLevel(2);break;case"~":this._terminal.setgLevel(1);break;case"7":this._inputHandler.saveCursor(),this._state=l.NORMAL;break;case"8":this._inputHandler.restoreCursor(),this._state=l.NORMAL;break;case"#":this._state=l.NORMAL,this._position++;break;case"H":this._terminal.tabSet(),this._state=l.NORMAL;break;case"=":this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._state=l.NORMAL;break;case">":this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea(),this._state=l.NORMAL;break;default:this._state=l.NORMAL,this._terminal.error("Unknown ESC control: %s.",r)}break;case l.CHARSET:r in i.CHARSETS?(t=i.CHARSETS[r],"/"===r&&this.skipNextChar()):t=i.DEFAULT_CHARSET,this._terminal.setgCharset(this._terminal.gcharset,t),this._terminal.gcharset=null,this._state=l.NORMAL;break;case l.OSC:if(r===n.C0.ESC||r===n.C0.BEL){switch(r===n.C0.ESC&&this._position++,this._terminal.params.push(this._terminal.currentParam),this._terminal.params[0]){case 0:case 1:case 2:this._terminal.params[1]&&(this._terminal.title=this._terminal.params[1],this._terminal.handleTitle(this._terminal.title))}this._terminal.params=[],this._terminal.currentParam=0,this._state=l.NORMAL}else this._terminal.params.length?this._terminal.currentParam+=r:r>="0"&&r<="9"?this._terminal.currentParam=10*this._terminal.currentParam+r.charCodeAt(0)-48:";"===r&&(this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam="");break;case l.CSI_PARAM:if(r in a){a[r](this);break}this.finalizeParam(),this._state=l.CSI;case l.CSI:r in c?(this._terminal.debug&&this._terminal.log("CSI "+(this._terminal.prefix?this._terminal.prefix:"")+" "+(this._terminal.params?this._terminal.params.join(";"):"")+" "+(this._terminal.postfix?this._terminal.postfix:"")+" "+r),c[r](this._inputHandler,this._terminal.params,this._terminal.prefix,this._terminal.postfix,this)):this._terminal.error("Unknown CSI code: %s.",r),this._state=l.NORMAL,this._terminal.prefix="",this._terminal.postfix="";break;case l.DCS:if(r===n.C0.ESC||r===n.C0.BEL){r===n.C0.ESC&&this._position++;var d=void 0,m=void 0;switch(this._terminal.prefix){case"":break;case"$q":switch(d=this._terminal.currentParam,m=!1,d){case'"q':d='0"q';break;case'"p':d='61"p';break;case"r":d=this._terminal.buffer.scrollTop+1+";"+(this._terminal.buffer.scrollBottom+1)+"r";break;case"m":d="0m";break;default:this._terminal.error("Unknown DCS Pt: %s.",d),d=""}this._terminal.send(n.C0.ESC+"P"+ +m+"$r"+d+n.C0.ESC+"\\");break;case"+p":break;case"+q":d=this._terminal.currentParam,m=!1,this._terminal.send(n.C0.ESC+"P"+ +m+"+r"+d+n.C0.ESC+"\\");break;default:this._terminal.error("Unknown DCS prefix: %s.",this._terminal.prefix)}this._terminal.currentParam=0,this._terminal.prefix="",this._state=l.NORMAL}else this._terminal.currentParam?this._terminal.currentParam+=r:this._terminal.prefix||"$"===r||"+"===r?2===this._terminal.prefix.length?this._terminal.currentParam=r:this._terminal.prefix+=r:this._terminal.currentParam=r;break;case l.IGNORE:r!==n.C0.ESC&&r!==n.C0.BEL||(r===n.C0.ESC&&this._position++,this._state=l.NORMAL)}}return this._terminal.buffer.x===_&&this._terminal.buffer.y===p||this._terminal.emit("cursormove"),this._state},e.prototype.setState=function(e){this._state=e},e.prototype.setPrefix=function(e){this._terminal.prefix=e},e.prototype.setPostfix=function(e){this._terminal.postfix=e},e.prototype.setParam=function(e){this._terminal.currentParam=e},e.prototype.getParam=function(){return this._terminal.currentParam},e.prototype.finalizeParam=function(){this._terminal.params.push(this._terminal.currentParam),this._terminal.currentParam=0},e.prototype.skipNextChar=function(){this._position++},e}();r.Parser=u},{"./Charsets":334,"./EscapeSequences":336}],341:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i,o=e("./utils/MouseHelper"),s=e("./utils/Browser"),a=e("./EventEmitter"),c=e("./SelectionModel"),l=e("./Buffer"),u=String.fromCharCode(160),f=new RegExp(u,"g");!function(e){e[e.NORMAL=0]="NORMAL",e[e.WORD=1]="WORD",e[e.LINE=2]="LINE"}(i||(i={}));var h=function(e){function t(t,r,n){var o=e.call(this)||this;return o._terminal=t,o._buffer=r,o._charMeasure=n,o._enabled=!0,o._initListeners(),o.enable(),o._model=new c.SelectionModel(t),o._activeSelectionMode=i.NORMAL,o}return n(t,e),t.prototype._initListeners=function(){var e=this;this._mouseMoveListener=function(t){return e._onMouseMove(t)},this._mouseUpListener=function(t){return e._onMouseUp(t)},this._buffer.lines.on("trim",function(t){return e._onTrim(t)})},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.setBuffer=function(e){this._buffer=e,this.clearSelection()},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t)&&(e[0]!==t[0]||e[1]!==t[1])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var r=e[1]===t[1]?t[0]:null,n=[];n.push(this._buffer.translateBufferLineToString(e[1],!0,e[0],r));for(var i=e[1]+1;i<=t[1]-1;i++){var o=this._buffer.lines.get(i),a=this._buffer.translateBufferLineToString(i,!0);o.isWrapped?n[n.length-1]+=a:n.push(a)}if(e[1]!==t[1]){var o=this._buffer.lines.get(t[1]),a=this._buffer.translateBufferLineToString(t[1],!0,0,t[0]);o.isWrapped?n[n.length-1]+=a:n.push(a)}return n.map(function(e){return e.replace(f," ")}).join(s.isMSWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh()},t.prototype.refresh=function(e){var t=this;if(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),s.isLinux&&e){this.selectionText.length&&this.emit("newselection",this.selectionText)}},t.prototype._refresh=function(){this._refreshAnimationFrame=null,this.emit("refresh",{start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd})},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._terminal.emit("selection")},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.element,this._charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!0);return t?(t[0]--,t[1]--,t[1]+=this._terminal.buffer.ydisp,t):null},t.prototype._getMouseEventScrollAmount=function(e){var t=o.MouseHelper.getCoordsRelativeToElement(e,this._terminal.element)[1],r=this._terminal.rows*Math.ceil(this._charMeasure.height*this._terminal.options.lineHeight);return t>=0&&t<=r?0:(t>r&&(t-=r),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return s.isMac?e.altKey:e.shiftKey},t.prototype.onMouseDown=function(e){if((2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._terminal.element.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.addEventListener("mouseup",this._mouseUpListener),this._dragScrollIntervalTimer=setInterval(function(){return e._dragScroll()},50)},t.prototype._removeMouseDownListeners=function(){this._terminal.element.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.removeEventListener("mouseup",this._mouseUpListener),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=null},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=i.NORMAL,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=null;var t=this._buffer.lines.get(this._model.selectionStart[1]);if(t&&!(t.length>=this._model.selectionStart[0])){0===t[this._model.selectionStart[0]][l.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionStart[0]++}}},t.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=i.WORD,this._selectWordAt(t))},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=i.LINE,this._selectLineAt(t[1]))},t.prototype._onMouseMove=function(e){e.stopImmediatePropagation();var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){if(this._activeSelectionMode===i.LINE?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._terminal.cols:this._activeSelectionMode===i.WORD&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._dragScrollAmount>0?this._model.selectionEnd[0]=this._terminal.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]<this._buffer.lines.length){var r=this._buffer.lines.get(this._model.selectionEnd[1])[this._model.selectionEnd[0]];r&&0===r[l.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)},t.prototype._dragScroll=function(){this._dragScrollAmount&&(this._terminal.scrollLines(this._dragScrollAmount,!1),this._dragScrollAmount>0?this._model.selectionEnd=[this._terminal.cols-1,this._terminal.buffer.ydisp+this._terminal.rows]:this._model.selectionEnd=[0,this._terminal.buffer.ydisp],this.refresh())},t.prototype._onMouseUp=function(e){this._removeMouseDownListeners(),this.hasSelection&&this._terminal.emit("selection")},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var r=t[0],n=0;t[0]>=n;n++){var i=e[n];0===i[l.CHAR_DATA_WIDTH_INDEX]?r--:i[l.CHAR_DATA_CHAR_INDEX].length>1&&t[0]!==n&&(r+=i[l.CHAR_DATA_CHAR_INDEX].length-1)}return r},t.prototype.setSelection=function(e,t,r){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=r,this.refresh()},t.prototype._getWordAt=function(e){var t=this._buffer.lines.get(e[1]);if(!t)return null;var r=this._buffer.translateBufferLineToString(e[1],!1),n=this._convertViewportColToCharacterIndex(t,e),i=n,o=e[0]-n,s=0,a=0,c=0,u=0;if(" "===r.charAt(n)){for(;n>0&&" "===r.charAt(n-1);)n--;for(;i<r.length&&" "===r.charAt(i+1);)i++}else{var f=e[0],h=e[0];for(0===t[f][l.CHAR_DATA_WIDTH_INDEX]&&(s++,f--),2===t[h][l.CHAR_DATA_WIDTH_INDEX]&&(a++,h++),t[h][l.CHAR_DATA_CHAR_INDEX].length>1&&(u+=t[h][l.CHAR_DATA_CHAR_INDEX].length-1,i+=t[h][l.CHAR_DATA_CHAR_INDEX].length-1);f>0&&n>0&&!this._isCharWordSeparator(t[f-1]);){0===(_=t[f-1])[l.CHAR_DATA_WIDTH_INDEX]?(s++,f--):_[l.CHAR_DATA_CHAR_INDEX].length>1&&(c+=_[l.CHAR_DATA_CHAR_INDEX].length-1,n-=_[l.CHAR_DATA_CHAR_INDEX].length-1),n--,f--}for(;h<t.length&&i+1<r.length&&!this._isCharWordSeparator(t[h+1]);){var _=t[h+1];2===_[l.CHAR_DATA_WIDTH_INDEX]?(a++,h++):_[l.CHAR_DATA_CHAR_INDEX].length>1&&(u+=_[l.CHAR_DATA_CHAR_INDEX].length-1,i+=_[l.CHAR_DATA_CHAR_INDEX].length-1),i++,h++}}i++;return{start:n+o-s+c,length:Math.min(this._terminal.cols,i-n+s+a-c-u)}},t.prototype._selectWordAt=function(e){var t=this._getWordAt(e);t&&(this._model.selectionStart=[t.start,e[1]],this._model.selectionStartLength=t.length)},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e);t&&(this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,e[1]])},t.prototype._isCharWordSeparator=function(e){return 0!==e[l.CHAR_DATA_WIDTH_INDEX]&&" ()[]{}'\"".indexOf(e[l.CHAR_DATA_CHAR_INDEX])>=0},t.prototype._selectLineAt=function(e){this._model.selectionStart=[0,e],this._model.selectionStartLength=this._terminal.cols},t}(a.EventEmitter);r.SelectionManager=h},{"./Buffer":331,"./EventEmitter":337,"./SelectionModel":342,"./utils/Browser":360,"./utils/MouseHelper":364}],342:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e){this._terminal=e,this.clearSelection()}return e.prototype.clearSelection=function(){this.selectionStart=null,this.selectionEnd=null,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._terminal.cols,this._terminal.buffer.ybase+this._terminal.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?[this.selectionStart[0]+this.selectionStartLength,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:null},enumerable:!0,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();r.SelectionModel=n},{}],343:[function(e,t,r){"use strict";function n(e,t,r,n){void 0===n&&(n=!1),e.removeEventListener(t,r,n)}function i(e,t){var r=e.isMac&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isMSWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?r:r&&(!t.keyCode||t.keyCode>47)}function o(e,t,r,n,i,o){return Math.pow(30*(e-n),2)+Math.pow(59*(t-i),2)+Math.pow(11*(r-o),2)}var s=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var a=e("./BufferSet"),c=e("./Buffer"),l=e("./CompositionHelper"),u=e("./EventEmitter"),f=e("./Viewport"),h=e("./handlers/Clipboard"),_=e("./EscapeSequences"),p=e("./InputHandler"),d=e("./Parser"),m=e("./renderer/Renderer"),y=e("./Linkifier"),b=e("./SelectionManager"),v=e("./utils/CharMeasure"),g=e("./utils/Browser"),x=e("./utils/MouseHelper"),w=e("./utils/Sounds"),C=e("./renderer/ColorManager"),S=e("./input/MouseZoneManager"),k=e("./renderer/CharAtlas"),E="undefined"!=typeof window?window.document:null,A={cols:80,rows:24,convertEol:!1,termName:"xterm",cursorBlink:!1,cursorStyle:"block",bellSound:w.BellSound,bellStyle:"none",enableBold:!0,fontFamily:"courier-new, courier, monospace",fontSize:15,lineHeight:1,letterSpacing:0,scrollback:1e3,screenKeys:!1,debug:!1,cancelEvents:!1,disableStdin:!1,useFlowControl:!1,tabStopWidth:8,theme:null},j=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.browser=g,r.options=t,r.setup(),r}return s(t,e),t.prototype.setup=function(){var e=this;Object.keys(A).forEach(function(t){null==e.options[t]&&(e.options[t]=A[t]),e[t]=e.options[t]}),this.parent=E?E.body:null,this.cols=this.options.cols,this.rows=this.options.rows,this.options.handler&&this.on("data",this.options.handler),this.cursorState=0,this.cursorHidden=!1,this.sendDataQueue="",this.customKeyEventHandler=null,this.applicationKeypad=!1,this.applicationCursor=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!0,this.bracketedPasteMode=!1,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.readable=!0,this.writable=!0,this.defAttr=131840,this.curAttr=131840,this.params=[],this.currentParam=0,this.prefix="",this.postfix="",this.writeBuffer=[],this.writeInProgress=!1,this.xoffSentToCatchUp=!1,this.writeStopped=!1,this.surrogate_high="",this.userScrolling=!1,this.inputHandler=new p.InputHandler(this),this.parser=new d.Parser(this.inputHandler,this),this.renderer=this.renderer||null,this.selectionManager=this.selectionManager||null,this.linkifier=this.linkifier||new y.Linkifier(this),this._mouseZoneManager=this._mouseZoneManager||null,this.buffers=new a.BufferSet(this),this.buffer=this.buffers.active,this.buffers.on("activate",function(t){e.buffer=t}),this.selectionManager&&this.selectionManager.setBuffer(this.buffer)},t.prototype.eraseAttr=function(){return-512&this.defAttr|511&this.curAttr},t.prototype.focus=function(){this.textarea&&this.textarea.focus()},Object.defineProperty(t.prototype,"isFocused",{get:function(){return E.activeElement===this.textarea},enumerable:!0,configurable:!0}),t.prototype.getOption=function(e){if(!(e in A))throw new Error('No option with key "'+e+'"');return void 0!==this.options[e]?this.options[e]:this[e]},t.prototype.setOption=function(e,t){if(!(e in A))throw new Error('No option with key "'+e+'"');switch(e){case"bellStyle":t||(t="none");break;case"cursorStyle":t||(t="block");break;case"lineHeight":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);case"tabStopWidth":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);break;case"theme":if(this.renderer)return void this._setTheme(t);break;case"scrollback":if((t=Math.min(t,c.MAX_BUFFER_SIZE))<0)return void console.warn(e+" cannot be less than 0, value: "+t);if(this.options[e]!==t){var r=this.rows+t;if(this.buffer.lines.length>r){var n=this.buffer.lines.length-r,i=this.buffer.ydisp-n<0;this.buffer.lines.trimStart(n),this.buffer.ybase=Math.max(this.buffer.ybase-n,0),this.buffer.ydisp=Math.max(this.buffer.ydisp-n,0),i&&this.refresh(0,this.rows-1)}}}switch(this[e]=t,this.options[e]=t,e){case"fontFamily":case"fontSize":this.renderer.clear(),this.charMeasure.measure(this.options);break;case"enableBold":case"letterSpacing":case"lineHeight":this.renderer.clear(),this.renderer.onResize(this.cols,this.rows,!1),this.refresh(0,this.rows-1);case"scrollback":this.buffers.resize(this.cols,this.rows),this.viewport.syncScrollArea();break;case"tabStopWidth":this.buffers.setupTabStops();break;case"bellSound":case"bellStyle":this.syncBellSound()}this.renderer&&this.renderer.onOptionsChanged()},t.prototype._onTextAreaFocus=function(){this.sendFocus&&this.send(_.C0.ESC+"[I"),this.element.classList.add("focus"),this.showCursor(),this.emit("focus")},t.prototype.blur=function(){return this.textarea.blur()},t.prototype._onTextAreaBlur=function(){this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this.send(_.C0.ESC+"[O"),this.element.classList.remove("focus"),this.emit("blur")},t.prototype.initGlobal=function(){var e=this;this.bindKeys(),O(this.element,"copy",function(t){e.hasSelection()&&h.copyHandler(t,e,e.selectionManager)});var t=function(t){return h.pasteHandler(t,e)};O(this.textarea,"paste",t),O(this.element,"paste",t),g.isFirefox?O(this.element,"mousedown",function(t){2===t.button&&h.rightClickHandler(t,e.textarea,e.selectionManager)}):O(this.element,"contextmenu",function(t){h.rightClickHandler(t,e.textarea,e.selectionManager)}),g.isLinux&&O(this.element,"auxclick",function(t){1===t.button&&h.moveTextAreaUnderMouseCursor(t,e.textarea)})},t.prototype.bindKeys=function(){var e=this,t=this;O(this.element,"keydown",function(e){E.activeElement===this&&t._keyDown(e)},!0),O(this.element,"keypress",function(e){E.activeElement===this&&t._keyPress(e)},!0),O(this.element,"keyup",function(t){(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode})(t)||e.focus()},!0),O(this.textarea,"keydown",function(t){e._keyDown(t)},!0),O(this.textarea,"keypress",function(t){e._keyPress(t),e.textarea.value=""},!0),O(this.textarea,"compositionstart",function(){return e.compositionHelper.compositionstart()}),O(this.textarea,"compositionupdate",function(t){return e.compositionHelper.compositionupdate(t)}),O(this.textarea,"compositionend",function(){return e.compositionHelper.compositionend()}),this.on("refresh",function(){return e.compositionHelper.updateCompositionElements()}),this.on("refresh",function(t){return e.queueLinkification(t.start,t.end)})},t.prototype.open=function(e){var t=this;if(this.parent=e||this.parent,!this.parent)throw new Error("Terminal requires a parent element.");this.context=this.parent.ownerDocument.defaultView,this.document=this.parent.ownerDocument,this.body=this.document.body,k.initialize(this.document),this.element=this.document.createElement("div"),this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),this.parent.appendChild(this.element);var r=E.createDocumentFragment();this.viewportElement=E.createElement("div"),this.viewportElement.classList.add("xterm-viewport"),r.appendChild(this.viewportElement),this.viewportScrollArea=E.createElement("div"),this.viewportScrollArea.classList.add("xterm-scroll-area"),this.viewportElement.appendChild(this.viewportScrollArea),this._mouseZoneManager=new S.MouseZoneManager(this),this.on("scroll",function(){return t._mouseZoneManager.clearAll()}),this.linkifier.attachToDom(this._mouseZoneManager),this.helperContainer=E.createElement("div"),this.helperContainer.classList.add("xterm-helpers"),r.appendChild(this.helperContainer),this.textarea=E.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.textarea.addEventListener("focus",function(){return t._onTextAreaFocus()}),this.textarea.addEventListener("blur",function(){return t._onTextAreaBlur()}),this.helperContainer.appendChild(this.textarea),this.compositionView=E.createElement("div"),this.compositionView.classList.add("composition-view"),this.compositionHelper=new l.CompositionHelper(this.textarea,this.compositionView,this),this.helperContainer.appendChild(this.compositionView),this.charSizeStyleElement=E.createElement("style"),this.helperContainer.appendChild(this.charSizeStyleElement),this.charMeasure=new v.CharMeasure(E,this.helperContainer),this.syncBellSound(),this.element.appendChild(r),this.renderer=new m.Renderer(this,this.options.theme),this.options.theme=null,this.viewport=new f.Viewport(this,this.viewportElement,this.viewportScrollArea,this.charMeasure),this.viewport.onThemeChanged(this.renderer.colorManager.colors),this.on("cursormove",function(){return t.renderer.onCursorMove()}),this.on("resize",function(){return t.renderer.onResize(t.cols,t.rows,!1)}),this.on("blur",function(){return t.renderer.onBlur()}),this.on("focus",function(){return t.renderer.onFocus()}),window.addEventListener("resize",function(){return t.renderer.onWindowResize(window.devicePixelRatio)}),this.charMeasure.on("charsizechanged",function(){return t.renderer.onResize(t.cols,t.rows,!0)}),this.renderer.on("resize",function(e){return t.viewport.syncScrollArea()}),this.selectionManager=new b.SelectionManager(this,this.buffer,this.charMeasure),this.element.addEventListener("mousedown",function(e){return t.selectionManager.onMouseDown(e)}),this.selectionManager.on("refresh",function(e){return t.renderer.onSelectionChanged(e.start,e.end)}),this.selectionManager.on("newselection",function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()}),this.on("scroll",function(){t.viewport.syncScrollArea(),t.selectionManager.refresh()}),this.viewportElement.addEventListener("scroll",function(){return t.selectionManager.refresh()}),this.mouseHelper=new x.MouseHelper(this.renderer),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this.initGlobal(),this.bindMouse()},t.prototype._setTheme=function(e){var t=this.renderer.setTheme(e);this.viewport&&this.viewport.onThemeChanged(t)},t.applyAddon=function(e){e.apply(t)},t.prototype.bindMouse=function(){function e(e){var t,r;if(t=function(e){var t,r,n,i,o;switch(e.overrideType||e.type){case"mousedown":t=null!=e.button?+e.button:null!=e.which?e.which-1:null,g.isMSIE&&(t=1===t?0:4===t?1:t);break;case"mouseup":t=3;break;case"DOMMouseScroll":t=e.detail<0?64:65;break;case"wheel":t=e.wheelDeltaY>0?64:65}r=e.shiftKey?4:0,n=e.metaKey?8:0,i=e.ctrlKey?16:0,o=r|n|i,a.vt200Mouse?o&=i:a.normalMouse||(o=0);return t=32+(o<<2)+t}(e),r=a.mouseHelper.getRawByteCoords(e,a.element,a.charMeasure,a.options.lineHeight,a.cols,a.rows))switch(i(t,r),e.overrideType||e.type){case"mousedown":c=t;break;case"mouseup":c=32}}function t(e){var t=c,r=a.mouseHelper.getRawByteCoords(e,a.element,a.charMeasure,a.options.lineHeight,a.cols,a.rows);r&&i(t+=32,r)}function r(e,t){if(a.utfMouse){if(2047===t)return void e.push(0);t<127?e.push(t):(t>2047&&(t=2047),e.push(192|t>>6),e.push(128|63&t))}else{if(255===t)return void e.push(0);t>127&&(t=127),e.push(t)}}function i(e,t){if(a.vt300Mouse){e&=3,t.x-=32,t.y-=32;var n=_.C0.ESC+"[24";if(0===e)n+="1";else if(1===e)n+="3";else if(2===e)n+="5";else{if(3===e)return;n+="0"}return n+="~["+t.x+","+t.y+"]\r",void a.send(n)}if(a.decLocator)return e&=3,t.x-=32,t.y-=32,0===e?e=2:1===e?e=4:2===e?e=6:3===e&&(e=3),void a.send(_.C0.ESC+"["+e+";"+(3===e?4:0)+";"+t.y+";"+t.x+";"+t.page||"0&w");if(a.urxvtMouse)return t.x-=32,t.y-=32,t.x++,t.y++,void a.send(_.C0.ESC+"["+e+";"+t.x+";"+t.y+"M");if(a.sgrMouse)return t.x-=32,t.y-=32,void a.send(_.C0.ESC+"[<"+((3==(3&e)?-4&e:e)-32)+";"+t.x+";"+t.y+(3==(3&e)?"m":"M"));var i=[];r(i,e),r(i,t.x),r(i,t.y),a.send(_.C0.ESC+"[M"+String.fromCharCode.apply(String,i))}var o=this,s=this.element,a=this,c=32;O(s,"mousedown",function(r){if(r.preventDefault(),o.focus(),o.mouseEvents&&!o.selectionManager.shouldForceSelection(r)){if(e(r),o.vt200Mouse)return r.overrideType="mouseup",e(r),o.cancel(r);if(o.normalMouse&&O(o.document,"mousemove",t),!o.x10Mouse){var i=function(r){return e(r),o.normalMouse&&n(o.document,"mousemove",t),n(o.document,"mouseup",i),o.cancel(r)};O(o.document,"mouseup",i)}return o.cancel(r)}}),O(s,"wheel",function(t){o.mouseEvents&&(o.x10Mouse||o.vt300Mouse||o.decLocator||(e(t),t.preventDefault()))}),O(s,"wheel",function(e){if(!o.mouseEvents)return o.viewport.onWheel(e),o.cancel(e)}),O(s,"touchstart",function(e){if(!o.mouseEvents)return o.viewport.onTouchStart(e),o.cancel(e)}),O(s,"touchmove",function(e){if(!o.mouseEvents)return o.viewport.onTouchMove(e),o.cancel(e)})},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.readable=!1,this.writable=!1,this.handler=function(){},this.write=function(){},this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},t.prototype.refresh=function(e,t){this.renderer&&this.renderer.queueRefresh(e,t)},t.prototype.queueLinkification=function(e,t){this.linkifier&&this.linkifier.linkifyRows(e,t)},t.prototype.showCursor=function(){this.cursorState||(this.cursorState=1,this.refresh(this.buffer.y,this.buffer.y))},t.prototype.scroll=function(e){var t=this.blankLine(void 0,e),r=this.buffer.ybase+this.buffer.scrollTop,n=this.buffer.ybase+this.buffer.scrollBottom;if(0===this.buffer.scrollTop){var i=this.buffer.lines.length===this.buffer.lines.maxLength;n===this.buffer.lines.length-1?this.buffer.lines.push(t):this.buffer.lines.splice(n+1,0,t),i?this.userScrolling&&(this.buffer.ydisp=Math.max(this.buffer.ydisp-1,0)):(this.buffer.ybase++,this.userScrolling||this.buffer.ydisp++)}else{var o=n-r+1;this.buffer.lines.shiftElements(r+1,o-1,-1),this.buffer.lines.set(n,t)}this.userScrolling||(this.buffer.ydisp=this.buffer.ybase),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom),this.emit("scroll",this.buffer.ydisp)},t.prototype.scrollLines=function(e,t){if(e<0){if(0===this.buffer.ydisp)return;this.userScrolling=!0}else e+this.buffer.ydisp>=this.buffer.ybase&&(this.userScrolling=!1);var r=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),r!==this.buffer.ydisp&&(t||this.emit("scroll",this.buffer.ydisp),this.refresh(0,this.rows-1))},t.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},t.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},t.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},t.prototype.write=function(e){var t=this;this.writeBuffer.push(e),this.options.useFlowControl&&!this.xoffSentToCatchUp&&this.writeBuffer.length>=5&&(this.send(_.C0.DC3),this.xoffSentToCatchUp=!0),!this.writeInProgress&&this.writeBuffer.length>0&&(this.writeInProgress=!0,setTimeout(function(){t.innerWrite()}))},t.prototype.innerWrite=function(){for(var e=this,t=this.writeBuffer.splice(0,300);t.length>0;){var r=t.shift();this.xoffSentToCatchUp&&0===t.length&&0===this.writeBuffer.length&&(this.send(_.C0.DC1),this.xoffSentToCatchUp=!1),this.refreshStart=this.buffer.y,this.refreshEnd=this.buffer.y;var n=this.parser.parse(r);this.parser.setState(n),this.updateRange(this.buffer.y),this.refresh(this.refreshStart,this.refreshEnd)}this.writeBuffer.length>0?setTimeout(function(){return e.innerWrite()},0):this.writeInProgress=!1},t.prototype.writeln=function(e){this.write(e+"\r\n")},t.prototype.attachCustomKeyEventHandler=function(e){this.customKeyEventHandler=e},t.prototype.setHypertextLinkHandler=function(e){if(!this.linkifier)throw new Error("Cannot attach a hypertext link handler before Terminal.open is called");this.linkifier.setHypertextLinkHandler(e),this.refresh(0,this.rows-1)},t.prototype.setHypertextValidationCallback=function(e){if(!this.linkifier)throw new Error("Cannot attach a hypertext validation callback before Terminal.open is called");this.linkifier.setHypertextValidationCallback(e),this.refresh(0,this.rows-1)},t.prototype.registerLinkMatcher=function(e,t,r){if(this.linkifier){var n=this.linkifier.registerLinkMatcher(e,t,r);return this.refresh(0,this.rows-1),n}return 0},t.prototype.deregisterLinkMatcher=function(e){this.linkifier&&this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},t.prototype.hasSelection=function(){return!!this.selectionManager&&this.selectionManager.hasSelection},t.prototype.getSelection=function(){return this.selectionManager?this.selectionManager.selectionText:""},t.prototype.clearSelection=function(){this.selectionManager&&this.selectionManager.clearSelection()},t.prototype.selectAll=function(){this.selectionManager&&this.selectionManager.selectAll()},t.prototype._keyDown=function(e){if(this.customKeyEventHandler&&!1===this.customKeyEventHandler(e))return!1;if(!this.compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=this._evaluateKeyEscapeSequence(e);return t.key===_.C0.DC3?this.writeStopped=!0:t.key===_.C0.DC1&&(this.writeStopped=!1),t.scrollLines?(this.scrollLines(t.scrollLines),this.cancel(e,!0)):!!i(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(this.emit("keydown",e),this.emit("key",t.key,e),this.showCursor(),this.handler(t.key),this.cancel(e,!0)))},t.prototype._evaluateKeyEscapeSequence=function(e){var t={cancel:!1,key:void 0,scrollLines:void 0},r=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?this.applicationCursor?t.key=_.C0.ESC+"OA":t.key=_.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?this.applicationCursor?t.key=_.C0.ESC+"OD":t.key=_.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?this.applicationCursor?t.key=_.C0.ESC+"OC":t.key=_.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(this.applicationCursor?t.key=_.C0.ESC+"OB":t.key=_.C0.ESC+"[B");break;case 8:if(e.shiftKey){t.key=_.C0.BS;break}t.key=_.C0.DEL;break;case 9:if(e.shiftKey){t.key=_.C0.ESC+"[Z";break}t.key=_.C0.HT,t.cancel=!0;break;case 13:t.key=_.C0.CR,t.cancel=!0;break;case 27:t.key=_.C0.ESC,t.cancel=!0;break;case 37:r?(t.key=_.C0.ESC+"[1;"+(r+1)+"D",t.key===_.C0.ESC+"[1;3D"&&(t.key=this.browser.isMac?_.C0.ESC+"b":_.C0.ESC+"[1;5D")):this.applicationCursor?t.key=_.C0.ESC+"OD":t.key=_.C0.ESC+"[D";break;case 39:r?(t.key=_.C0.ESC+"[1;"+(r+1)+"C",t.key===_.C0.ESC+"[1;3C"&&(t.key=this.browser.isMac?_.C0.ESC+"f":_.C0.ESC+"[1;5C")):this.applicationCursor?t.key=_.C0.ESC+"OC":t.key=_.C0.ESC+"[C";break;case 38:r?(t.key=_.C0.ESC+"[1;"+(r+1)+"A",t.key===_.C0.ESC+"[1;3A"&&(t.key=_.C0.ESC+"[1;5A")):this.applicationCursor?t.key=_.C0.ESC+"OA":t.key=_.C0.ESC+"[A";break;case 40:r?(t.key=_.C0.ESC+"[1;"+(r+1)+"B",t.key===_.C0.ESC+"[1;3B"&&(t.key=_.C0.ESC+"[1;5B")):this.applicationCursor?t.key=_.C0.ESC+"OB":t.key=_.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(t.key=_.C0.ESC+"[2~");break;case 46:t.key=r?_.C0.ESC+"[3;"+(r+1)+"~":_.C0.ESC+"[3~";break;case 36:r?t.key=_.C0.ESC+"[1;"+(r+1)+"H":this.applicationCursor?t.key=_.C0.ESC+"OH":t.key=_.C0.ESC+"[H";break;case 35:r?t.key=_.C0.ESC+"[1;"+(r+1)+"F":this.applicationCursor?t.key=_.C0.ESC+"OF":t.key=_.C0.ESC+"[F";break;case 33:e.shiftKey?t.scrollLines=-(this.rows-1):t.key=_.C0.ESC+"[5~";break;case 34:e.shiftKey?t.scrollLines=this.rows-1:t.key=_.C0.ESC+"[6~";break;case 112:t.key=r?_.C0.ESC+"[1;"+(r+1)+"P":_.C0.ESC+"OP";break;case 113:t.key=r?_.C0.ESC+"[1;"+(r+1)+"Q":_.C0.ESC+"OQ";break;case 114:t.key=r?_.C0.ESC+"[1;"+(r+1)+"R":_.C0.ESC+"OR";break;case 115:t.key=r?_.C0.ESC+"[1;"+(r+1)+"S":_.C0.ESC+"OS";break;case 116:t.key=r?_.C0.ESC+"[15;"+(r+1)+"~":_.C0.ESC+"[15~";break;case 117:t.key=r?_.C0.ESC+"[17;"+(r+1)+"~":_.C0.ESC+"[17~";break;case 118:t.key=r?_.C0.ESC+"[18;"+(r+1)+"~":_.C0.ESC+"[18~";break;case 119:t.key=r?_.C0.ESC+"[19;"+(r+1)+"~":_.C0.ESC+"[19~";break;case 120:t.key=r?_.C0.ESC+"[20;"+(r+1)+"~":_.C0.ESC+"[20~";break;case 121:t.key=r?_.C0.ESC+"[21;"+(r+1)+"~":_.C0.ESC+"[21~";break;case 122:t.key=r?_.C0.ESC+"[23;"+(r+1)+"~":_.C0.ESC+"[23~";break;case 123:t.key=r?_.C0.ESC+"[24;"+(r+1)+"~":_.C0.ESC+"[24~";break;default:!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?this.browser.isMac||!e.altKey||e.ctrlKey||e.metaKey?this.browser.isMac&&!e.altKey&&!e.ctrlKey&&e.metaKey&&65===e.keyCode&&this.selectAll():e.keyCode>=65&&e.keyCode<=90?t.key=_.C0.ESC+String.fromCharCode(e.keyCode+32):192===e.keyCode?t.key=_.C0.ESC+"`":e.keyCode>=48&&e.keyCode<=57&&(t.key=_.C0.ESC+(e.keyCode-48)):e.keyCode>=65&&e.keyCode<=90?t.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?t.key=String.fromCharCode(0):e.keyCode>=51&&e.keyCode<=55?t.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?t.key=String.fromCharCode(127):219===e.keyCode?t.key=String.fromCharCode(27):220===e.keyCode?t.key=String.fromCharCode(28):221===e.keyCode&&(t.key=String.fromCharCode(29))}return t},t.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},t.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},t.prototype._keyPress=function(e){var t;if(this.customKeyEventHandler&&!1===this.customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null==e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!i(this.browser,e))&&(t=String.fromCharCode(t),this.emit("keypress",t,e),this.emit("key",t,e),this.showCursor(),this.handler(t),!0)},t.prototype.send=function(e){var t=this;this.sendDataQueue||setTimeout(function(){t.handler(t.sendDataQueue),t.sendDataQueue=""},1),this.sendDataQueue+=e},t.prototype.bell=function(){var e=this;this.emit("bell"),this.soundBell()&&this.bellAudioElement.play(),this.visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this.visualBellTimer),this.visualBellTimer=window.setTimeout(function(){e.element.classList.remove("visual-bell-active")},200))},t.prototype.log=function(e,t){this.options.debug&&this.context.console&&this.context.console.log&&this.context.console.log(e,t)},t.prototype.error=function(e,t){this.options.debug&&this.context.console&&this.context.console.error&&this.context.console.error(e,t)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e!==this.cols||t!==this.rows?(e<1&&(e=1),t<1&&(t=1),this.buffers.resize(e,t),this.cols=e,this.rows=t,this.buffers.setupTabStops(this.cols),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this.emit("resize",{cols:e,rows:t})):this.charMeasure.width&&this.charMeasure.height||this.charMeasure.measure(this.options))},t.prototype.updateRange=function(e){e<this.refreshStart&&(this.refreshStart=e),e>this.refreshEnd&&(this.refreshEnd=e)},t.prototype.maxRange=function(){this.refreshStart=0,this.refreshEnd=this.rows-1},t.prototype.eraseRight=function(e,t){var r=this.buffer.lines.get(this.buffer.ybase+t);if(r){for(var n=[this.eraseAttr()," ",1,32];e<this.cols;e++)r[e]=n;this.updateRange(t)}},t.prototype.eraseLeft=function(e,t){var r=this.buffer.lines.get(this.buffer.ybase+t);if(r){var n=[this.eraseAttr()," ",1,32];for(e++;e--;)r[e]=n;this.updateRange(t)}},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(this.blankLine());this.refresh(0,this.rows-1),this.emit("scroll",this.buffer.ydisp)}},t.prototype.eraseLine=function(e){this.eraseRight(0,e)},t.prototype.blankLine=function(e,t,r){var n=[e?this.eraseAttr():this.defAttr," ",1,32],i=[];t&&(i.isWrapped=t),r=r||this.cols;for(var o=0;o<r;o++)i[o]=n;return i},t.prototype.ch=function(e){return e?[this.eraseAttr()," ",1,32]:[this.defAttr," ",1,32]},t.prototype.is=function(e){return 0===(this.options.termName+"").indexOf(e)},t.prototype.handler=function(e){this.options.disableStdin||(this.selectionManager&&this.selectionManager.hasSelection&&this.selectionManager.clearSelection(),this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),this.emit("data",e))},t.prototype.handleTitle=function(e){this.emit("title",e)},t.prototype.index=function(){this.buffer.y++,this.buffer.y>this.buffer.scrollBottom&&(this.buffer.y--,this.scroll()),this.buffer.x>=this.cols&&this.buffer.x--},t.prototype.reverseIndex=function(){if(this.buffer.y===this.buffer.scrollTop){var e=this.buffer.scrollBottom-this.buffer.scrollTop;this.buffer.lines.shiftElements(this.buffer.y+this.buffer.ybase,e,1),this.buffer.lines.set(this.buffer.y+this.buffer.ybase,this.blankLine(!0)),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom)}else this.buffer.y--},t.prototype.reset=function(){this.options.rows=this.rows,this.options.cols=this.cols;var e=this.customKeyEventHandler,t=this.inputHandler,r=this.buffers;this.setup(),this.customKeyEventHandler=e,this.inputHandler=t,this.buffers=r,this.refresh(0,this.rows-1),this.viewport.syncScrollArea()},t.prototype.tabSet=function(){this.buffer.tabs[this.buffer.x]=!0},t.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},t.prototype.matchColor=function(e,t,r){return function(e,t,r){var n=e<<16|t<<8|r;if(null!=L[n])return L[n];for(var i,s,a,c,l,u=1/0,f=-1,h=0;h<M.length;h++){if(i=M[h],s=i[0],a=i[1],c=i[2],0===(l=o(e,t,r,s,a,c))){f=h;break}l<u&&(u=l,f=h)}return L[n]=f}(e,t,r)},t.prototype.visualBell=function(){return"visual"===this.options.bellStyle||"both"===this.options.bellStyle},t.prototype.soundBell=function(){return"sound"===this.options.bellStyle||"both"===this.options.bellStyle},t.prototype.syncBellSound=function(){this.element&&(this.soundBell()&&this.bellAudioElement?this.bellAudioElement.setAttribute("src",this.options.bellSound):this.soundBell()?(this.bellAudioElement=E.createElement("audio"),this.bellAudioElement.setAttribute("preload","auto"),this.bellAudioElement.setAttribute("src",this.options.bellSound),this.helperContainer.appendChild(this.bellAudioElement)):this.bellAudioElement&&this.helperContainer.removeChild(this.bellAudioElement))},t}(u.EventEmitter);r.Terminal=j;var O=function(e,t,r,n){Array.isArray(e)||(e=[e]),e.forEach(function(e){e.addEventListener(t,r,n||!1)})},M=function(){for(var e=C.DEFAULT_ANSI_COLORS.map(function(e){return e=e.substring(1),[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16)]}),t=[0,95,135,175,215,255],r=0;r<216;r++)e.push([t[r/36%6|0],t[r/6%6|0],t[r%6]]);for(var n,r=0;r<24;r++)n=8+10*r,e.push([n,n,n]);return e}(),L={}},{"./Buffer":331,"./BufferSet":332,"./CompositionHelper":335,"./EscapeSequences":336,"./EventEmitter":337,"./InputHandler":338,"./Linkifier":339,"./Parser":340,"./SelectionManager":341,"./Viewport":345,"./handlers/Clipboard":348,"./input/MouseZoneManager":349,"./renderer/CharAtlas":351,"./renderer/ColorManager":352,"./renderer/Renderer":356,"./utils/Browser":360,"./utils/CharMeasure":361,"./utils/MouseHelper":364,"./utils/Sounds":365}],344:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});!function(e){e.HOVER="linkhover",e.TOOLTIP="linktooltip",e.LEAVE="linkleave"}(r.LinkHoverEventTypes||(r.LinkHoverEventTypes={}))},{}],345:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e,t,r,n){var i=this;this.terminal=e,this.viewportElement=t,this.scrollArea=r,this.charMeasure=n,this.currentRowHeight=0,this.lastRecordedBufferLength=0,this.lastRecordedViewportHeight=0,this.lastRecordedBufferHeight=0,this.viewportElement.addEventListener("scroll",this.onScroll.bind(this)),setTimeout(function(){return i.syncScrollArea()},0)}return e.prototype.onThemeChanged=function(e){this.viewportElement.style.backgroundColor=e.background},e.prototype.refresh=function(){if(this.charMeasure.height>0){this.currentRowHeight=this.terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio,this.lastRecordedViewportHeight!==this.terminal.renderer.dimensions.canvasHeight&&(this.lastRecordedViewportHeight=this.terminal.renderer.dimensions.canvasHeight,this.viewportElement.style.height=this.lastRecordedViewportHeight+"px");var e=Math.round(this.currentRowHeight*this.lastRecordedBufferLength);this.lastRecordedBufferHeight!==e&&(this.lastRecordedBufferHeight=e,this.scrollArea.style.height=this.lastRecordedBufferHeight+"px")}},e.prototype.syncScrollArea=function(){this.lastRecordedBufferLength!==this.terminal.buffer.lines.length?(this.lastRecordedBufferLength=this.terminal.buffer.lines.length,this.refresh()):this.lastRecordedViewportHeight!==this.terminal.renderer.dimensions.canvasHeight?this.refresh():this.terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio!==this.currentRowHeight&&this.refresh();var e=this.terminal.buffer.ydisp*this.currentRowHeight;this.viewportElement.scrollTop!==e&&(this.viewportElement.scrollTop=e)},e.prototype.onScroll=function(e){var t=Math.round(this.viewportElement.scrollTop/this.currentRowHeight)-this.terminal.buffer.ydisp;this.terminal.scrollLines(t,!0)},e.prototype.onWheel=function(e){if(0!==e.deltaY){var t=1;e.deltaMode===WheelEvent.DOM_DELTA_LINE?t=this.currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t=this.currentRowHeight*this.terminal.rows),this.viewportElement.scrollTop+=e.deltaY*t,e.preventDefault()}},e.prototype.onTouchStart=function(e){this.lastTouchY=e.touches[0].pageY},e.prototype.onTouchMove=function(e){var t=this.lastTouchY-e.touches[0].pageY;this.lastTouchY=e.touches[0].pageY,0!==t&&(this.viewportElement.scrollTop+=t,e.preventDefault())},e}();r.Viewport=n},{}],346:[function(e,t,r){"use strict";function n(e){if(!e.element.parentElement)return null;var t=window.getComputedStyle(e.element.parentElement),r=parseInt(t.getPropertyValue("height")),n=Math.max(0,parseInt(t.getPropertyValue("width"))-17),i=window.getComputedStyle(e.element),o=r-(parseInt(i.getPropertyValue("padding-top"))+parseInt(i.getPropertyValue("padding-bottom"))),s=n-(parseInt(i.getPropertyValue("padding-right"))+parseInt(i.getPropertyValue("padding-left")));return{cols:Math.floor(s/e.renderer.dimensions.actualCellWidth),rows:Math.floor(o/e.renderer.dimensions.actualCellHeight)}}function i(e){var t=n(e);t&&(e.rows===t.rows&&e.cols===t.cols||(e.renderer.clear(),e.resize(t.cols,t.rows)))}Object.defineProperty(r,"__esModule",{value:!0}),r.proposeGeometry=n,r.fit=i,r.apply=function(e){e.prototype.proposeGeometry=function(){return n(this)},e.prototype.fit=function(){return i(this)}}},{}],347:[function(e,t,r){"use strict";function n(e){["Windows","Win16","Win32","WinCE"].indexOf(navigator.platform)>=0&&e.on("linefeed",function(){if(32!==e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)[e.cols-1][3]){e.buffer.lines.get(e.buffer.ybase+e.buffer.y).isWrapped=!0}})}Object.defineProperty(r,"__esModule",{value:!0}),r.winptyCompatInit=n,r.apply=function(e){e.prototype.winptyCompatInit=function(){n(this)}}},{}],348:[function(e,t,r){"use strict";function n(e,t){return t?e.replace(/\r?\n/g,"\r"):e}function i(e,t){return t?"\e[200~"+e+"\e[201~":e}function o(e,t){t.style.position="fixed",t.style.width="20px",t.style.height="20px",t.style.left=e.clientX-10+"px",t.style.top=e.clientY-10+"px",t.style.zIndex="1000",t.focus(),setTimeout(function(){t.style.position=null,t.style.width=null,t.style.height=null,t.style.left=null,t.style.top=null,t.style.zIndex=null},4)}Object.defineProperty(r,"__esModule",{value:!0}),r.prepareTextForTerminal=n,r.bracketTextForPaste=i,r.copyHandler=function(e,t,r){t.browser.isMSIE?window.clipboardData.setData("Text",r.selectionText):e.clipboardData.setData("text/plain",r.selectionText),e.preventDefault()},r.pasteHandler=function(e,t){e.stopPropagation();var r=function(r){r=i(r=n(r,t.browser.isMSWindows),t.bracketedPasteMode),t.handler(r),t.textarea.value="",t.emit("paste",r),t.cancel(e)};t.browser.isMSIE?window.clipboardData&&r(window.clipboardData.getData("Text")):e.clipboardData&&r(e.clipboardData.getData("text/plain"))},r.moveTextAreaUnderMouseCursor=o,r.rightClickHandler=function(e,t,r){o(e,t),t.value=r.selectionText,t.select()}},{}],349:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e){var t=this;this._terminal=e,this._zones=[],this._areZonesActive=!1,this._tooltipTimeout=null,this._currentZone=null,this._lastHoverCoords=[null,null],this._terminal.element.addEventListener("mousedown",function(e){return t._onMouseDown(e)}),this._mouseMoveListener=function(e){return t._onMouseMove(e)},this._clickListener=function(e){return t._onClick(e)}}return e.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},e.prototype.clearAll=function(e,t){if(0!==this._zones.length){t||(e=0,t=this._terminal.rows-1);for(var r=0;r<this._zones.length;r++){var n=this._zones[r];n.y>e&&n.y<=t+1&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=null),this._zones.splice(r--,1))}0===this._zones.length&&this._deactivate()}},e.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._terminal.element.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.addEventListener("click",this._clickListener))},e.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._terminal.element.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.removeEventListener("click",this._clickListener))},e.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},e.prototype._onHover=function(e){var t=this,r=this._findZoneEventAt(e);r!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=null,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),r&&(this._currentZone=r,r.hoverCallback&&r.hoverCallback(e),this._tooltipTimeout=setTimeout(function(){return t._onTooltip(e)},500)))},e.prototype._onTooltip=function(e){this._tooltipTimeout=null;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},e.prototype._onMouseDown=function(e){if(this._areZonesActive){this._findZoneEventAt(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},e.prototype._onClick=function(e){var t=this._findZoneEventAt(e);t&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},e.prototype._findZoneEventAt=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.element,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows);if(!t)return null;for(var r=0;r<this._zones.length;r++){var n=this._zones[r];if(n.y===t[1]&&n.x1<=t[0]&&n.x2>t[0])return n}return null},e}();r.MouseZoneManager=n;var i=function(){return function(e,t,r,n,i,o,s){this.x1=e,this.x2=t,this.y=r,this.clickCallback=n,this.hoverCallback=i,this.tooltipCallback=o,this.leaveCallback=s}}();r.MouseZone=i},{}],350:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./CharAtlas"),i=e("../Buffer");r.INVERTED_DEFAULT_COLOR=-1;var o=function(){function e(e,t,r,n,i){this._alpha=n,this._colors=i,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._canvas=document.createElement("canvas"),this._canvas.id="xterm-"+t+"-layer",this._canvas.style.zIndex=r.toString(),this._ctx=this._canvas.getContext("2d",{alpha:n}),this._ctx.scale(window.devicePixelRatio,window.devicePixelRatio),n||this.clearAll(),e.appendChild(this._canvas)}return e.prototype.onOptionsChanged=function(e){},e.prototype.onBlur=function(e){},e.prototype.onFocus=function(e){},e.prototype.onCursorMove=function(e){},e.prototype.onGridChanged=function(e,t,r){},e.prototype.onSelectionChanged=function(e,t,r){},e.prototype.onThemeChanged=function(e,t){this._refreshCharAtlas(e,t)},e.prototype._refreshCharAtlas=function(e,t){var r=this;if(!(this._scaledCharWidth<=0&&this._scaledCharHeight<=0)){this._charAtlas=null;var i=n.acquireCharAtlas(e,this._colors,this._scaledCharWidth,this._scaledCharHeight);i instanceof HTMLCanvasElement?this._charAtlas=i:i.then(function(e){return r._charAtlas=e})}},e.prototype.resize=function(e,t,r){this._scaledCellWidth=t.scaledCellWidth,this._scaledCellHeight=t.scaledCellHeight,this._scaledCharWidth=t.scaledCharWidth,this._scaledCharHeight=t.scaledCharHeight,this._scaledCharLeft=t.scaledCharLeft,this._scaledCharTop=t.scaledCharTop,this._canvas.width=t.scaledCanvasWidth,this._canvas.height=t.scaledCanvasHeight,this._canvas.style.width=t.canvasWidth+"px",this._canvas.style.height=t.canvasHeight+"px",this._alpha||this.clearAll(),r&&this._refreshCharAtlas(e,this._colors)},e.prototype.fillCells=function(e,t,r,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight)},e.prototype.fillBottomLineAtCells=function(e,t,r){void 0===r&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},e.prototype.fillLeftLineAtCell=function(e,t){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio,this._scaledCellHeight)},e.prototype.strokeRectAtCell=function(e,t,r,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},e.prototype.clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype.clearCells=function(e,t,r,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight))},e.prototype.fillCharTrueColor=function(e,t,r,n){this._ctx.font=e.options.fontSize*window.devicePixelRatio+"px "+e.options.fontFamily,this._ctx.textBaseline="top",this._clipRow(e,n),this._ctx.fillText(t[i.CHAR_DATA_CHAR_INDEX],r*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop)},e.prototype.drawChar=function(e,t,r,i,o,s,a,c,l,u){var f=0;a<256?f=a+2:l&&e.options.enableBold&&(f=1);var h=r<256,_=f>1&&a<16&&(a<8||l),p=a>=256,d=c>=256;if(this._charAtlas&&h&&(_||p)&&d){var m=this._scaledCharWidth+n.CHAR_ATLAS_CELL_SPACING,y=this._scaledCharHeight+n.CHAR_ATLAS_CELL_SPACING;u&&(this._ctx.globalAlpha=.5),l&&!e.options.enableBold&&f>1&&(f-=8),this._ctx.drawImage(this._charAtlas,r*m,f*y,m,this._scaledCharHeight,o*this._scaledCellWidth+this._scaledCharLeft,s*this._scaledCellHeight+this._scaledCharTop,m,this._scaledCharHeight)}else this._drawUncachedChar(e,t,i,a,o,s,l,u)},e.prototype._drawUncachedChar=function(e,t,n,i,o,s,a,c){this._ctx.save(),this._ctx.font=e.options.fontSize*window.devicePixelRatio+"px "+e.options.fontFamily,a&&e.options.enableBold&&(this._ctx.font="bold "+this._ctx.font),this._ctx.textBaseline="top",i===r.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background:this._ctx.fillStyle=i<256?this._colors.ansi[i]:this._colors.foreground,this._clipRow(e,s),c&&(this._ctx.globalAlpha=.5),this._ctx.fillText(t,o*this._scaledCellWidth+this._scaledCharLeft,s*this._scaledCellHeight+this._scaledCharTop),this._ctx.restore()},e.prototype._clipRow=function(e,t){this._ctx.beginPath(),this._ctx.rect(0,t*this._scaledCellHeight,e.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e}();r.BaseRenderLayer=o},{"../Buffer":331,"./CharAtlas":351}],351:[function(e,t,r){"use strict";function n(e,t){for(var r=0;r<e.colors.ansi.length;r++)if(e.colors.ansi[r]!==t.colors.ansi[r])return!1;return e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background}Object.defineProperty(r,"__esModule",{value:!0});var i=e("../utils/Browser");r.CHAR_ATLAS_CELL_SPACING=1;var o=[];r.acquireCharAtlas=function(e,t,r,i){for(var a=function(e,t,r,n){var i={foreground:n.foreground,background:n.background,cursor:null,cursorAccent:null,selection:null,ansi:n.ansi.slice(0,16)};return{scaledCharWidth:e,scaledCharHeight:t,fontFamily:r.options.fontFamily,fontSize:r.options.fontSize,colors:i}}(r,i,e,t),c=0;c<o.length;c++){var l=(u=o[c]).ownedBy.indexOf(e);if(l>=0){if(n(u.config,a))return u.bitmap;1===u.ownedBy.length?o.splice(c,1):u.ownedBy.splice(l,1);break}}for(c=0;c<o.length;c++){var u=o[c];if(n(u.config,a))return u.ownedBy.push(e),u.bitmap}var f={bitmap:s.generate(r,i,e.options.fontSize,e.options.fontFamily,t.background,t.foreground,t.ansi),config:a,ownedBy:[e]};return o.push(f),f.bitmap};var s;r.initialize=function(e){s||(s=new a(e))};var a=function(){function e(e){this._document=e,this._canvas=this._document.createElement("canvas"),this._ctx=this._canvas.getContext("2d",{alpha:!1}),this._ctx.scale(window.devicePixelRatio,window.devicePixelRatio)}return e.prototype.generate=function(e,t,n,o,s,a,c){var l=e+r.CHAR_ATLAS_CELL_SPACING,u=t+r.CHAR_ATLAS_CELL_SPACING;this._canvas.width=255*l,this._canvas.height=18*u,this._ctx.fillStyle=s,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height),this._ctx.save(),this._ctx.fillStyle=a,this._ctx.font=n*window.devicePixelRatio+"px "+o,this._ctx.textBaseline="top";for(_=0;_<256;_++)this._ctx.save(),this._ctx.beginPath(),this._ctx.rect(_*l,0,l,u),this._ctx.clip(),this._ctx.fillText(String.fromCharCode(_),_*l,0),this._ctx.restore();this._ctx.save(),this._ctx.font="bold "+this._ctx.font;for(_=0;_<256;_++)this._ctx.save(),this._ctx.beginPath(),this._ctx.rect(_*l,u,l,u),this._ctx.clip(),this._ctx.fillText(String.fromCharCode(_),_*l,u),this._ctx.restore();this._ctx.restore(),this._ctx.font=n*window.devicePixelRatio+"px "+o;for(var f=0;f<16;f++){8===f&&(this._ctx.font="bold "+this._ctx.font);for(var h=(f+2)*u,_=0;_<256;_++)this._ctx.save(),this._ctx.beginPath(),this._ctx.rect(_*l,h,l,u),this._ctx.clip(),this._ctx.fillStyle=c[f],this._ctx.fillText(String.fromCharCode(_),_*l,h),this._ctx.restore()}if(this._ctx.restore(),!("createImageBitmap"in window)||i.isFirefox){var p=this._canvas;return this._canvas=this._document.createElement("canvas"),this._ctx=this._canvas.getContext("2d"),this._ctx.scale(window.devicePixelRatio,window.devicePixelRatio),p}var d=this._ctx.getImageData(0,0,this._canvas.width,this._canvas.height),m=parseInt(s.substr(1,2),16),y=parseInt(s.substr(3,2),16),b=parseInt(s.substr(5,2),16);this._clearColor(d,m,y,b);var v=window.createImageBitmap(d);return this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),v},e.prototype._clearColor=function(e,t,r,n){for(var i=0;i<e.data.length;i+=4)e.data[i]===t&&e.data[i+1]===r&&e.data[i+2]===n&&(e.data[i+3]=0)},e}()},{"../utils/Browser":360}],352:[function(e,t,r){"use strict";function n(e){var t=e.toString(16);return t.length<2?"0"+t:t}Object.defineProperty(r,"__esModule",{value:!0});var i="#ffffff",o="#000000",s="#ffffff",a="#000000",c="rgba(255, 255, 255, 0.3)";r.DEFAULT_ANSI_COLORS=["#2e3436","#cc0000","#4e9a06","#c4a000","#3465a4","#75507b","#06989a","#d3d7cf","#555753","#ef2929","#8ae234","#fce94f","#729fcf","#ad7fa8","#34e2e2","#eeeeec"];var l=function(){function e(){this.colors={foreground:i,background:o,cursor:s,cursorAccent:a,selection:c,ansi:function(e){for(var t=e.slice(),r=[0,95,135,175,215,255],i=0;i<216;i++){var o=n(r[i/36%6|0]),s=n(r[i/6%6|0]),a=n(r[i%6]);t.push("#"+o+s+a)}for(i=0;i<24;i++){var c=n(8+10*i);t.push("#"+c+c+c)}return t}(r.DEFAULT_ANSI_COLORS)}}return e.prototype.setTheme=function(e){this.colors.foreground=e.foreground||i,this.colors.background=this._validateColor(e.background,o),this.colors.cursor=e.cursor||s,this.colors.cursorAccent=e.cursorAccent||a,this.colors.selection=e.selection||c,this.colors.ansi[0]=e.black||r.DEFAULT_ANSI_COLORS[0],this.colors.ansi[1]=e.red||r.DEFAULT_ANSI_COLORS[1],this.colors.ansi[2]=e.green||r.DEFAULT_ANSI_COLORS[2],this.colors.ansi[3]=e.yellow||r.DEFAULT_ANSI_COLORS[3],this.colors.ansi[4]=e.blue||r.DEFAULT_ANSI_COLORS[4],this.colors.ansi[5]=e.magenta||r.DEFAULT_ANSI_COLORS[5],this.colors.ansi[6]=e.cyan||r.DEFAULT_ANSI_COLORS[6],this.colors.ansi[7]=e.white||r.DEFAULT_ANSI_COLORS[7],this.colors.ansi[8]=e.brightBlack||r.DEFAULT_ANSI_COLORS[8],this.colors.ansi[9]=e.brightRed||r.DEFAULT_ANSI_COLORS[9],this.colors.ansi[10]=e.brightGreen||r.DEFAULT_ANSI_COLORS[10],this.colors.ansi[11]=e.brightYellow||r.DEFAULT_ANSI_COLORS[11],this.colors.ansi[12]=e.brightBlue||r.DEFAULT_ANSI_COLORS[12],this.colors.ansi[13]=e.brightMagenta||r.DEFAULT_ANSI_COLORS[13],this.colors.ansi[14]=e.brightCyan||r.DEFAULT_ANSI_COLORS[14],this.colors.ansi[15]=e.brightWhite||r.DEFAULT_ANSI_COLORS[15]},e.prototype._validateColor=function(e,t){if(!e)return t;if(7===e.length&&"#"===e.charAt(0))return e;if(4===e.length&&"#"===e.charAt(0)){var r=e.charAt(1),n=e.charAt(2),i=e.charAt(3);return"#"+r+r+n+n+i+i}return t},e}();r.ColorManager=l},{}],353:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Buffer"),o=function(e){function t(t,r,n){var i=e.call(this,t,"cursor",r,!0,n)||this;return i._state={x:null,y:null,isFocused:null,style:null,width:null},i._cursorRenderers={bar:i._renderBarCursor.bind(i),block:i._renderBlockCursor.bind(i),underline:i._renderUnderlineCursor.bind(i)},i}return n(t,e),t.prototype.resize=function(t,r,n){e.prototype.resize.call(this,t,r,n),this._state={x:null,y:null,isFocused:null,style:null,width:null}},t.prototype.reset=function(e){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null,this.onOptionsChanged(e))},t.prototype.onBlur=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onFocus=function(e){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume(e):e.refresh(e.buffer.y,e.buffer.y)},t.prototype.onOptionsChanged=function(e){var t=this;e.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new s(e,function(){t._render(e,!0)})):(this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null),e.refresh(e.buffer.y,e.buffer.y))},t.prototype.onCursorMove=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation(e)},t.prototype.onGridChanged=function(e,t,r){this._cursorBlinkStateManager&&!this._cursorBlinkStateManager.isPaused||this._render(e,!1)},t.prototype._render=function(e,t){if(e.cursorState&&!e.cursorHidden){var r=e.buffer.ybase+e.buffer.y,n=r-e.buffer.ydisp;if(n<0||n>=e.rows)this._clearCursor();else{var o=e.buffer.lines.get(r)[e.buffer.x];if(o){if(!e.isFocused)return this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor,this._renderBlurCursor(e,e.buffer.x,n,o),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=n,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,void(this._state.width=o[i.CHAR_DATA_WIDTH_INDEX]);if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e.buffer.x&&this._state.y===n&&this._state.isFocused===e.isFocused&&this._state.style===e.options.cursorStyle&&this._state.width===o[i.CHAR_DATA_WIDTH_INDEX])return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[e.options.cursorStyle||"block"](e,e.buffer.x,n,o),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=n,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,this._state.width=o[i.CHAR_DATA_WIDTH_INDEX]}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this.clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:null,y:null,isFocused:null,style:null,width:null})},t.prototype._renderBarCursor=function(e,t,r,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor,this.fillLeftLineAtCell(t,r),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,r,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor,this.fillCells(t,r,n[i.CHAR_DATA_WIDTH_INDEX],1),this._ctx.fillStyle=this._colors.cursorAccent,this.fillCharTrueColor(e,n,t,r),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,r,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor,this.fillBottomLineAtCells(t,r),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,r,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor,this.strokeRectAtCell(t,r,n[i.CHAR_DATA_WIDTH_INDEX],1),this._ctx.restore()},t}(e("./BaseRenderLayer").BaseRenderLayer);r.CursorRenderLayer=o;var s=function(){function e(e,t){this.renderCallback=t,this.isCursorVisible=!0,e.isFocused&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.restartBlinkAnimation=function(e){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t.renderCallback(),t._animationFrame=null})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=null,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t.renderCallback(),t._animationFrame=null}),t._blinkInterval=setInterval(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=null,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t.renderCallback(),t._animationFrame=null})},600)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.resume=function(e){this._animationTimeRestarted=null,this._restartInterval(),this.restartBlinkAnimation(e)},e}()},{"../Buffer":331,"./BaseRenderLayer":350}],354:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var r=0;r<e;r++){this.cache.length<=r&&this.cache.push([]);for(var n=this.cache[r].length;n<t;n++)this.cache[r].push(null);this.cache[r].length=t}this.cache.length=e},e.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=null},e}();r.GridCache=n},{}],355:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("./BaseRenderLayer"),o=e("../Types"),s=function(e){function t(t,r,n,i){var s=e.call(this,t,"link",r,!0,n)||this;return s._state=null,i.linkifier.on(o.LinkHoverEventTypes.HOVER,function(e){return s._onLinkHover(e)}),i.linkifier.on(o.LinkHoverEventTypes.LEAVE,function(e){return s._onLinkLeave(e)}),s}return n(t,e),t.prototype.resize=function(t,r,n){e.prototype.resize.call(this,t,r,n),this._state=null},t.prototype.reset=function(e){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){this._state&&(this.clearCells(this._state.x,this._state.y,this._state.length,1),this._state=null)},t.prototype._onLinkHover=function(e){this._ctx.fillStyle=this._colors.foreground,this.fillBottomLineAtCells(e.x,e.y,e.length),this._state=e},t.prototype._onLinkLeave=function(e){this._clearCurrentLink()},t}(i.BaseRenderLayer);r.LinkRenderLayer=s},{"../Types":344,"./BaseRenderLayer":350}],356:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("./TextRenderLayer"),o=e("./SelectionRenderLayer"),s=e("./CursorRenderLayer"),a=e("./ColorManager"),c=e("./LinkRenderLayer"),l=function(e){function t(t,r){var n=e.call(this)||this;return n._terminal=t,n._refreshRowsQueue=[],n._refreshAnimationFrame=null,n.colorManager=new a.ColorManager,r&&n.colorManager.setTheme(r),n._renderLayers=[new i.TextRenderLayer(n._terminal.element,0,n.colorManager.colors),new o.SelectionRenderLayer(n._terminal.element,1,n.colorManager.colors),new c.LinkRenderLayer(n._terminal.element,2,n.colorManager.colors,n._terminal),new s.CursorRenderLayer(n._terminal.element,3,n.colorManager.colors)],n.dimensions={scaledCharWidth:null,scaledCharHeight:null,scaledCellWidth:null,scaledCellHeight:null,scaledCharLeft:null,scaledCharTop:null,scaledCanvasWidth:null,scaledCanvasHeight:null,canvasWidth:null,canvasHeight:null,actualCellWidth:null,actualCellHeight:null},n._devicePixelRatio=window.devicePixelRatio,n._updateDimensions(),n}return n(t,e),t.prototype.onWindowResize=function(e){this._devicePixelRatio!==e&&(this._devicePixelRatio=e,this.onResize(this._terminal.cols,this._terminal.rows,!0))},t.prototype.setTheme=function(e){var t=this;return this.colorManager.setTheme(e),this._renderLayers.forEach(function(e){e.onThemeChanged(t._terminal,t.colorManager.colors),e.reset(t._terminal)}),this._terminal.refresh(0,this._terminal.rows-1),this.colorManager.colors},t.prototype.onResize=function(e,t,r){var n=this;this._updateDimensions(),this._renderLayers.forEach(function(e){return e.resize(n._terminal,n.dimensions,r)}),this._terminal.refresh(0,this._terminal.rows-1),this.emit("resize",{width:this.dimensions.canvasWidth,height:this.dimensions.canvasHeight})},t.prototype.onCharSizeChanged=function(){this.onResize(this._terminal.cols,this._terminal.rows,!0)},t.prototype.onBlur=function(){var e=this;this._renderLayers.forEach(function(t){return t.onBlur(e._terminal)})},t.prototype.onFocus=function(){var e=this;this._renderLayers.forEach(function(t){return t.onFocus(e._terminal)})},t.prototype.onSelectionChanged=function(e,t){var r=this;this._renderLayers.forEach(function(n){return n.onSelectionChanged(r._terminal,e,t)})},t.prototype.onCursorMove=function(){var e=this;this._renderLayers.forEach(function(t){return t.onCursorMove(e._terminal)})},t.prototype.onOptionsChanged=function(){var e=this;this._renderLayers.forEach(function(t){return t.onOptionsChanged(e._terminal)})},t.prototype.clear=function(){var e=this;this._renderLayers.forEach(function(t){return t.reset(e._terminal)})},t.prototype.queueRefresh=function(e,t){this._refreshRowsQueue.push({start:e,end:t}),this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(this._refreshLoop.bind(this)))},t.prototype._refreshLoop=function(){var e,t,r=this;if(this._refreshRowsQueue.length>4)e=0,t=this._terminal.rows-1;else{e=this._refreshRowsQueue[0].start,t=this._refreshRowsQueue[0].end;for(var n=1;n<this._refreshRowsQueue.length;n++)this._refreshRowsQueue[n].start<e&&(e=this._refreshRowsQueue[n].start),this._refreshRowsQueue[n].end>t&&(t=this._refreshRowsQueue[n].end)}this._refreshRowsQueue=[],this._refreshAnimationFrame=null,e=Math.max(e,0),t=Math.min(t,this._terminal.rows-1),this._renderLayers.forEach(function(n){return n.onGridChanged(r._terminal,e,t)}),this._terminal.emit("refresh",{start:e,end:t})},t.prototype._updateDimensions=function(){this._terminal.charMeasure.width&&this._terminal.charMeasure.height&&(this.dimensions.scaledCharWidth=Math.floor(this._terminal.charMeasure.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._terminal.charMeasure.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._terminal.options.lineHeight),this.dimensions.scaledCharTop=1===this._terminal.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._terminal.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._terminal.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._terminal.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._terminal.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._terminal.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._terminal.cols)},t}(e("../EventEmitter").EventEmitter);r.Renderer=l},{"../EventEmitter":337,"./ColorManager":352,"./CursorRenderLayer":353,"./LinkRenderLayer":355,"./SelectionRenderLayer":357,"./TextRenderLayer":358}],357:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=function(e){function t(t,r,n){var i=e.call(this,t,"selection",r,!0,n)||this;return i._state={start:null,end:null},i}return n(t,e),t.prototype.resize=function(t,r,n){e.prototype.resize.call(this,t,r,n),this._state={start:null,end:null}},t.prototype.reset=function(e){this._state.start&&this._state.end&&(this._state={start:null,end:null},this.clearAll())},t.prototype.onSelectionChanged=function(e,t,r){if(this._state.start!==t&&this._state.end!==r&&(this.clearAll(),t&&r)){var n=t[1]-e.buffer.ydisp,i=r[1]-e.buffer.ydisp,o=Math.max(n,0),s=Math.min(i,e.rows-1);if(!(o>=e.rows||s<0)){var a=n===o?t[0]:0,c=o===s?r[0]:e.cols;this._ctx.fillStyle=this._colors.selection,this.fillCells(a,o,c-a,1);var l=Math.max(s-o-1,0);if(this.fillCells(0,o+1,e.cols,l),o!==s){var u=i===s?r[0]:e.cols;this.fillCells(0,s,u,1)}this._state.start=[t[0],t[1]],this._state.end=[r[0],r[1]]}}},t}(e("./BaseRenderLayer").BaseRenderLayer);r.SelectionRenderLayer=i},{"./BaseRenderLayer":350}],358:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Buffer"),o=e("./Types"),s=e("./GridCache"),a=e("./BaseRenderLayer"),c=function(e){function t(t,r,n){var i=e.call(this,t,"text",r,!1,n)||this;return i._characterOverlapCache={},i._state=new s.GridCache,i}return n(t,e),t.prototype.resize=function(t,r,n){e.prototype.resize.call(this,t,r,n);var i=t.options.fontSize*window.devicePixelRatio+"px "+t.options.fontFamily;this._characterWidth===r.scaledCharWidth&&this._characterFont===i||(this._characterWidth=r.scaledCharWidth,this._characterFont=i,this._characterOverlapCache={}),this._state.clear(),this._state.resize(t.cols,t.rows)},t.prototype.reset=function(e){this._state.clear(),this.clearAll()},t.prototype.onGridChanged=function(e,t,r){if(0!==this._state.cache.length)for(var n=t;n<=r;n++){var s=n+e.buffer.ydisp,c=e.buffer.lines.get(s);this.clearCells(0,n,e.cols,1);for(var l=0;l<e.cols;l++){var u=c[l],f=u[i.CHAR_DATA_CODE_INDEX],h=u[i.CHAR_DATA_CHAR_INDEX],_=u[i.CHAR_DATA_ATTR_INDEX],p=u[i.CHAR_DATA_WIDTH_INDEX];if(0!==p){if(32===f&&l>0){var d=c[l-1];if(this._isOverlapping(d))continue}var m=_>>18,y=511&_,b=y>=256,v=m&o.FLAGS.INVISIBLE,g=m&o.FLAGS.INVERSE;if(f&&(32!==f||!b||g)&&!v){0!==p&&this._isOverlapping(u)&&l<c.length-1&&32===c[l+1][i.CHAR_DATA_CODE_INDEX]&&(p=2);var x=_>>9&511;if(g){var w=y;y=x,256===(x=w)&&(x=a.INVERTED_DEFAULT_COLOR),257===y&&(y=a.INVERTED_DEFAULT_COLOR)}y<256&&(this._ctx.save(),this._ctx.fillStyle=y===a.INVERTED_DEFAULT_COLOR?this._colors.foreground:this._colors.ansi[y],this.fillCells(l,n,p,1),this._ctx.restore()),this._ctx.save(),m&o.FLAGS.BOLD&&(this._ctx.font="bold "+this._ctx.font,x<8&&(x+=8)),m&o.FLAGS.UNDERLINE&&(x===a.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background:this._ctx.fillStyle=x<256?this._colors.ansi[x]:this._colors.foreground,this.fillBottomLineAtCells(l,n)),this.drawChar(e,h,f,p,l,n,x,y,!!(m&o.FLAGS.BOLD),!!(m&o.FLAGS.DIM)),this._ctx.restore()}}}}},t.prototype._isOverlapping=function(e){if(1!==e[i.CHAR_DATA_WIDTH_INDEX])return!1;if(e[i.CHAR_DATA_CODE_INDEX]<256)return!1;var t=e[i.CHAR_DATA_CHAR_INDEX];if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var r=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=r,r},t.prototype._clearChar=function(e,t){var r=1,n=this._state.cache[e][t];n&&2===n[i.CHAR_DATA_WIDTH_INDEX]&&(r=2),this.clearCells(e,t,r,1)},t}(a.BaseRenderLayer);r.TextRenderLayer=c},{"../Buffer":331,"./BaseRenderLayer":350,"./GridCache":354,"./Types":359}],359:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});!function(e){e[e.BOLD=1]="BOLD",e[e.UNDERLINE=2]="UNDERLINE",e[e.BLINK=4]="BLINK",e[e.INVERSE=8]="INVERSE",e[e.INVISIBLE=16]="INVISIBLE",e[e.DIM=32]="DIM"}(r.FLAGS||(r.FLAGS={}))},{}],360:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./Generic"),i="undefined"==typeof navigator,o=i?"node":navigator.userAgent,s=i?"node":navigator.platform;r.isFirefox=!!~o.indexOf("Firefox"),r.isMSIE=!!~o.indexOf("MSIE")||!!~o.indexOf("Trident"),r.isMac=n.contains(["Macintosh","MacIntel","MacPPC","Mac68K"],s),r.isIpad="iPad"===s,r.isIphone="iPhone"===s,r.isMSWindows=n.contains(["Windows","Win16","Win32","WinCE"],s),r.isLinux=s.indexOf("Linux")>=0},{"./Generic":363}],361:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=function(e){function t(t,r){var n=e.call(this)||this;return n._document=t,n._parentElement=r,n._measureElement=n._document.createElement("span"),n._measureElement.style.position="absolute",n._measureElement.style.top="0",n._measureElement.style.left="-9999em",n._measureElement.style.lineHeight="normal",n._measureElement.textContent="W",n._measureElement.setAttribute("aria-hidden","true"),n._parentElement.appendChild(n._measureElement),n}return n(t,e),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),t.prototype.measure=function(e){this._measureElement.style.fontFamily=e.fontFamily,this._measureElement.style.fontSize=e.fontSize+"px";var t=this._measureElement.getBoundingClientRect();0!==t.width&&0!==t.height&&(this._width===t.width&&this._height===t.height||(this._width=t.width,this._height=Math.ceil(t.height),this.emit("charsizechanged")))},t}(e("../EventEmitter").EventEmitter);r.CharMeasure=i},{"../EventEmitter":337}],362:[function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var i=function(e){function t(t){var r=e.call(this)||this;return r._maxLength=t,r._array=new Array(r._maxLength),r._startIndex=0,r._length=0,r}return n(t,e),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),r=0;r<Math.min(e,this.length);r++)t[r]=this._array[this._getCyclicIndex(r)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"forEach",{get:function(){var e=this;return function(t){for(var r=e.length,n=0;n<r;n++)t(e.get(n),n)}},enumerable:!0,configurable:!0}),t.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},t.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},t.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex++,this._startIndex===this._maxLength&&(this._startIndex=0),this.emit("trim",1)):this._length++},t.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},t.prototype.splice=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t){for(i=e;i<this._length-t;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+t)];this._length-=t}if(r&&r.length){for(i=this._length-1;i>=e;i--)this._array[this._getCyclicIndex(i+r.length)]=this._array[this._getCyclicIndex(i)];for(var i=0;i<r.length;i++)this._array[this._getCyclicIndex(e+i)]=r[i];if(this._length+r.length>this.maxLength){var o=this._length+r.length-this.maxLength;this._startIndex+=o,this._length=this.maxLength,this.emit("trim",o)}else this._length+=r.length}},t.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.emit("trim",e)},t.prototype.shiftElements=function(e,t,r){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+r<0)throw new Error("Cannot shift elements in list beyond index 0");if(r>0){for(i=t-1;i>=0;i--)this.set(e+i+r,this.get(e+i));var n=e+t+r-this._length;if(n>0)for(this._length+=n;this._length>this.maxLength;)this._length--,this._startIndex++,this.emit("trim",1)}else for(var i=0;i<t;i++)this.set(e+i+r,this.get(e+i))}},t.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this.maxLength},t}(e("../EventEmitter").EventEmitter);r.CircularList=i},{"../EventEmitter":337}],363:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.contains=function(e,t){return e.indexOf(t)>=0}},{}],364:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e){this._renderer=e}return e.getCoordsRelativeToElement=function(e,t){if(null==e.pageX)return null;for(var r=t,n=e.pageX,i=e.pageY;t;)n-=t.offsetLeft,i-=t.offsetTop,t="offsetParent"in t?t.offsetParent:t.parentElement;for(t=r;t&&t!==t.ownerDocument.body;)n+=t.scrollLeft,i+=t.scrollTop,t=t.parentElement;return[n,i]},e.prototype.getCoords=function(t,r,n,i,o,s,a){if(!n.width||!n.height)return null;var c=e.getCoordsRelativeToElement(t,r);return c?(c[0]=Math.ceil((c[0]+(a?this._renderer.dimensions.actualCellWidth/2:0))/this._renderer.dimensions.actualCellWidth),c[1]=Math.ceil(c[1]/this._renderer.dimensions.actualCellHeight),c[0]=Math.min(Math.max(c[0],1),o+(a?1:0)),c[1]=Math.min(Math.max(c[1],1),s),c):null},e.prototype.getRawByteCoords=function(e,t,r,n,i,o){var s=this.getCoords(e,t,r,n,i,o),a=s[0],c=s[1];return a+=32,c+=32,{x:a,y:c}},e}();r.MouseHelper=n},{}],365:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BellSound="data:audio/wav;base64,UklGRigBAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQBAADpAFgCwAMlBZoG/wdmCcoKRAypDQ8PbRDBEQQTOxRtFYcWlBePGIUZXhoiG88bcBz7HHIdzh0WHlMeZx51HmkeUx4WHs8dah0AHXwc3hs9G4saxRnyGBIYGBcQFv8U4RPAEoYRQBACD70NWwwHC6gJOwjWBloF7gOBAhABkf8b/qv8R/ve+Xf4Ife79W/0JfPZ8Z/wde9N7ijtE+wU6xvqM+lb6H7nw+YX5mrlxuQz5Mzje+Ma49fioeKD4nXiYeJy4pHitOL04j/jn+MN5IPkFOWs5U3mDefM55/ogOl36m7rdOyE7abuyu8D8Unyj/Pg9D/2qfcb+Yn6/vuK/Qj/lAAlAg=="},{}],366:[function(e,t,r){"use strict";for(var n=t.exports,i=[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102],o={},s=0;s<i.length;s++)o[i[s]]=s;n.ENCODELIB={pack_u16_be:function(e){if(e>65535)throw"Number cannot exceed 16 bits: "+e;return[e>>8,255&e]},pack_u32_le:function(e){var t=e/65536;return[255&e,(65535&e)>>8,255&t,t>>8]},unpack_u16_be:function(e){return(e[0]<<8)+e[1]},unpack_u32_le:function(e){return e[0]+(e[1]<<8)+(e[2]<<16)+16777216*e[3]},octets_to_hex:function(e){for(var t=[],r=0;r<e.length;r++)t.push(i[e[r]>>4],i[15&e[r]]);return t},parse_hex_octets:function(e){for(var t=new Array(e.length/2),r=0;r<t.length;r++)t[r]=(o[e[2*r]]<<4)+o[e[1+2*r]];return t}}},{}],367:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){function e(){n(this,e)}return i(e,[{key:"encode",value:function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return new Uint8Array(t)}}]),e}(),s=function(){function e(){n(this,e)}return i(e,[{key:"decode",value:function(e){return decodeURIComponent(escape(String.fromCharCode.apply(String,e)))}}]),e}();t.exports.Text={Encoder:"undefined"!=typeof TextEncoder?TextEncoder:o,Decoder:"undefined"!=typeof TextDecoder?TextDecoder:s}},{}],368:[function(e,t,r){"use strict";function n(e,t){return a||function(){a=new Array(256);for(var e=c-8,t=0;t<256;t++){for(var r=t<<e&u,n=0;n<8;n++)0!=(r&f)?(r<<=1,r^=l):r<<=1;a[t]=r&u}}(),a[t>>8&255]^(255&t)<<8^e}function i(e,t){if(e.join()!==t.join())throw new s.Error("crc",t,e)}var o=e("crc-32"),s=t.exports;Object.assign(s,e("./zerror"),e("./encode"));var a,c=16,l=4129,u=65535,f=1<<c-1;s.CRC={crc16:function(e){for(var t=e[0],r=1;r<e.length;r++)t=n(e[r],t);return t=n(0,n(0,t)),s.ENCODELIB.pack_u16_be(t)},crc32:function(e){return s.ENCODELIB.pack_u32_le(o.buf(e)>>>0)},verify16:function(e,t){return i(this.crc16(e),t)},verify32:function(e,t){try{i(this.crc32(e),t)}catch(t){throw t.input=e.slice(0),t}}}},{"./encode":366,"./zerror":370,"crc-32":328}],369:[function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=t.exports;Object.assign(i,e("./zmlib"));var o,s,a=i.ZMLIB.ZDLE;i.ZDLE=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._config={},t&&this.set_escape_ctrl_chars(!!t.escape_ctrl_chars)}return n(e,[{key:"set_escape_ctrl_chars",value:function(e){if("boolean"!=typeof e)throw"need boolean!";e!==this._config.escape_ctrl_chars&&(this._config.escape_ctrl_chars=e,this._setup_zdle_table())}},{key:"escapes_ctrl_chars",value:function(){return!!this._config.escape_ctrl_chars}},{key:"encode",value:function(e){if(!this._zdle_table)throw"No ZDLE encode table configured!";var t=this._zdle_table,r=this._lastcode,n=new ArrayBuffer(2*e.length),i=new Uint8Array(n),c=this._config.escape_ctrl_chars,l=0;for(o=0;o<e.length;o++){if(!(s=t[e[o]]))throw console.trace(),console.error("bad encode() call:",JSON.stringify(e)),this._lastcode=r,"Invalid octet: "+e[o];r=e[o],1===s||(c||2===s||64==(127&r))&&(i[l]=a,l++,r^=64),i[l]=r,l++}return this._lastcode=r,e.splice(0),e.push.apply(e,new Uint8Array(n,0,l)),e}},{key:"_setup_zdle_table",value:function(){for(var e=new Array(256),t=0;t<e.length;t++)if(96&t)e[t]=1;else switch(t){case a:case i.ZMLIB.XOFF:case i.ZMLIB.XON:case 128|i.ZMLIB.XOFF:case 128|i.ZMLIB.XON:e[t]=2;break;case 16:case 144:e[t]=this._config.turbo_escape?1:2;break;case 13:case 141:e[t]=this._config.escape_ctrl_chars?2:this._config.turbo_escape?1:3;break;default:e[t]=this._config.escape_ctrl_chars?2:1}this._zdle_table=e}}],[{key:"decode",value:function(e){for(var t=e.length-1;t>=0;t--)e[t]===a&&e.splice(t,2,e[t+1]-64);return e}},{key:"splice",value:function(t,r,n){var i=0;r||(r=0);for(var o=r;o<t.length&&i<n;o++)i++,t[o]===a&&o++;if(i===n){if(t.length===o-1)return;return t.splice(0,r),e.decode(t.splice(0,o-r))}}}]),e}()},{"./zmlib":372}],370:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i={aborted:"Session aborted",peer_aborted:"Peer aborted session",already_aborted:"Session already aborted",crc:function(e,t){return this.got=e.slice(0),this.expected=t.slice(0),"CRC check failed! (got: "+e.join()+"; expected: "+t.join()+")"},validation:function(e){return e}};t.exports.Error=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=function(e){var t=i[e];switch(void 0===t?"undefined":n(t)){case"string":return t;case"function":var r=[].slice.call(arguments).slice(1);return t.apply(this,r)}return null}.apply(r,arguments);return o?(r.type=e,r.message=o):r.message=e,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}()},{}],371:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){var t=z[e];if("string"==typeof t)throw"Received unsupported header: "+t;return function(e){if(e.prototype instanceof P)return new e(0);return new e([])}(t)}function a(e){var t=h.ZDLE.splice(e,g.length,7);return t&&c(t)}function c(e){h.CRC.verify16(e.slice(0,5),e.slice(5));var t=s(e[0]);return t._bytes4=e.slice(1,5),t}function l(e){var t=h.ZDLE.splice(e,x.length,9);if(t){h.CRC.verify32(t.slice(0,5),t.slice(5));var r=s(t[0]);return r._bytes4=t.slice(1,5),r}}function u(e){var t=e.indexOf(138);-1===t&&(t=e.indexOf(10));var r,n;{if(-1!==t){if(n=e.splice(0,t),e.shift(),19===n.length){var i=n.pop();13!==i&&141!==i&&(r="Invalid hex header: (CR/)LF doesn’t have CR!")}else 18!==n.length&&(r="Invalid hex header: invalid number of bytes before LF!");if(r)throw r+=" ("+n.length+" bytes: "+n.join()+")";n.splice(0,4);return c(h.ENCODELIB.parse_hex_octets(n))}e.length>11&&(r="Invalid hex header - no LF detected within 12 bytes!")}}var f=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),h=t.exports;Object.assign(h,e("./encode"),e("./zdle"),e("./zmlib"),e("./zcrc"),e("./zerror"));var _="*".charCodeAt(0),p="A".charCodeAt(0),d="B".charCodeAt(0),m="C".charCodeAt(0),y=[13,10],b=y.slice(0).concat([h.ZMLIB.XON]),v=[_,_,h.ZMLIB.ZDLE,d],g=[_,h.ZMLIB.ZDLE,p],x=[_,h.ZMLIB.ZDLE,m];h.Header=function(){function e(){o(this,e),this._bytes4||(this._bytes4=[0,0,0,0])}return f(e,[{key:"to_hex",value:function(){var e=this._crc_bytes();return v.concat(h.ENCODELIB.octets_to_hex(e.concat(h.CRC.crc16(e))),this._hex_header_ending)}},{key:"to_binary16",value:function(e){return this._to_binary(e,g,h.CRC.crc16)}},{key:"to_binary32",value:function(e){return this._to_binary(e,x,h.CRC.crc32)}}],[{key:"trim_leading_garbage",value:function(e){var t,r,n=[];e:for(;e.length&&!r;){var i=e.indexOf(_);if(-1===i){t=!0;break e}if(n.push.apply(n,e.splice(0,i)),e.length<2)break e;if(e[1]===_)if(e.length<v.length){if(e.join()===v.slice(0,e.length).join())break e}else e[2]===v[2]&&e[3]===v[3]&&(r=u);else if(e[1]===h.ZMLIB.ZDLE){if(e.length<g.length)break e;e[2]===g[2]?r=a:e[2]===x[2]&&(r=l)}r||n.push(e.shift())}return t&&n.push.apply(n,e.splice(0)),n}},{key:"parse",value:function(e){var t;if(e[1]===_)return(t=u(e))&&[t,16];if(e[2]===p)return(t=a(e))&&[t,16];if(e[2]===m)return(t=l(e))&&[t,32];if(!(e.length<3))throw"Unrecognized/unsupported octets: "+e.join()}},{key:"build",value:function(e){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments),r=H[e];if(!r)throw"No frame class “"+e+"” is defined!";t.shift();return new(r.bind.apply(r,[null].concat(t)))}}]),f(e,[{key:"_to_binary",value:function(e,t,r){var n=this._crc_bytes();return t.concat(e.encode(n.concat(r(n))))}},{key:"_crc_bytes",value:function(){return[this.TYPENUM].concat(this._bytes4)}}]),e}(),h.Header.prototype._hex_header_ending=b;var w=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}(),C={CANFDX:1,CANOVIO:2,CANBRK:4,CANCRY:8,CANLZW:16,CANFC32:32,ESCCTL:64,ESC8:128},S=function(e){function t(e,r){o(this,t);var i=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),s=0;return r||(r=0),e.forEach(function(e){s|=function(e){if(!C[e])throw new h.Error("Invalid ZRINIT flag: "+e);return C[e]}(e)}),i._bytes4=[255&r,r>>8,0,s],i}return i(t,h.Header),f(t,[{key:"get_buffer_size",value:function(){return h.ENCODELIB.unpack_u16_be(this._bytes4.slice(0,2))||void 0}},{key:"can_full_duplex",value:function(){return!!(this._bytes4[3]&C.CANFDX)}},{key:"can_overlap_io",value:function(){return!!(this._bytes4[3]&C.CANOVIO)}},{key:"can_break",value:function(){return!!(this._bytes4[3]&C.CANBRK)}},{key:"can_fcs_32",value:function(){return!!(this._bytes4[3]&C.CANFC32)}},{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&C.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&C.ESC8)}}]),t}(),k={ESCCTL:64,ESC8:128},E=function(e){function t(e,r){o(this,t);var i=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),s=0;if(e.forEach(function(e){s|=function(e){if(!k[e])throw"Invalid ZSINIT flag: "+e;return k[e]}(e)}),i._bytes4=[0,0,0,s],r){if(r.length>31)throw"Attn sequence must be <= 31 bytes";if(r.some(function(e){return e>255}))throw"Attn sequence ("+r+") must be <256";i._data=r.concat([0])}return i}return i(t,h.Header),f(t,[{key:"escape_ctrl_chars",value:function(){return!!(this._bytes4[3]&k.ESCCTL)}},{key:"escape_8th_bit",value:function(){return!!(this._bytes4[3]&k.ESC8)}}]),t}(),A=function(e){function t(e){o(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e&&(r._bytes4=e.slice()),r}return i(t,h.Header),t}();A.prototype._hex_header_ending=y;var j={extended:{sparse:64},transport:[void 0,"compress","encrypt","rle"],management:[void 0,"newer_or_longer","crc","append","clobber","newer","mtime_or_length","protect","rename"],conversion:[void 0,"binary","text","resume"]},O=["extended","transport","management","conversion"],M=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),f(t,[{key:"get_options",value:function(){var e={sparse:!!(64&this._bytes4[0])},t=this._bytes4.slice(0);return O.forEach(function(r,n){if(j[r]instanceof Array)"management"===r&&(e.skip_if_absent=!!(128&t[n]),t[n]&=31),e[r]=j[r][t[n]];else for(var i in j[r])e[i]=!!(t[n]&j[r][i]),e[i]&&(t[n]^=j[r][i]);!e[r]&&t[n]&&(e[r]="unknown:"+t[n])}),e}}]),t}(),L=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}(),T=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}(),R=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}(),I=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,h.Header),t}();R.prototype._hex_header_ending=y;for(var P=function(e){function t(e){o(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._bytes4=h.ENCODELIB.pack_u32_le(e),r}return i(t,h.Header),f(t,[{key:"get_offset",value:function(){return h.ENCODELIB.unpack_u32_le(this._bytes4)}}]),t}(),N=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,P),t}(),D=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,P),t}(),F=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,P),t}(),B=[[w,"ZRQINIT"],[S,"ZRINIT"],[E,"ZSINIT"],[A,"ZACK"],[M,"ZFILE"],[L,"ZSKIP"],void 0,[T,"ZABORT"],[R,"ZFIN"],[N,"ZRPOS"],[D,"ZDATA"],[F,"ZEOF"],[I,"ZFERR"],void 0,void 0,void 0,void 0,void 0,void 0,void 0],H={},Z=0;Z<B.length;Z++)B[Z]&&(H[B[Z][1]]=B[Z][0],Object.assign(B[Z][0].prototype,{TYPENUM:Z,NAME:B[Z][1]}));var z=[w,S,E,A,M,L,"ZNAK",T,R,N,D,F,I,"ZCRC","ZCHALLENGE","ZCOMPL","ZCAN","ZFREECNT","ZCOMMAND","ZSTDERR"];h.Header.parse_hex=u},{"./encode":366,"./zcrc":368,"./zdle":369,"./zerror":370,"./zmlib":372}],372:[function(e,t,r){"use strict";t.exports.ZMLIB={ZDLE:24,XON:17,XOFF:19,ABORT_SEQUENCE:[24,24,24,24,24],strip_ignored_bytes:function(e){for(var t=e.length-1;t>=0;t--)switch(e[t]){case 17:case 145:case 19:case 147:e.splice(t,1);continue}return e},find_subarray:function(e,t){var r,n=0;Date.now();e:for(;-1!==n&&-1!==(n=e.indexOf(t[0],n));){for(r=1;r<t.length;r++)if(e[n+r]!==t[r]){n++;continue e}return n}return-1}}},{}],373:[function(e,t,r){"use strict";Object.assign(t.exports,e("./zsentry"))},{"./zsentry":375}],374:[function(e,t,r){"use strict";function n(e){if(e.aborted())throw new i.Error("aborted")}var i=t.exports;window.Zmodem=i,Object.assign(i,e("./zmodem")),i.Browser={send_files:function(e,t,r){function i(){var t=o[l];return t?(l++,e.send_offer(t).then(function(o){return r.on_offer_response&&r.on_offer_response(t.obj,o),void 0===o?i():new Promise(function(s){var a=new FileReader;a.onerror=function(e){throw console.error("file read error",e),"File read error: "+e};var c;a.onprogress=function(i){i.target.result&&(c=new Uint8Array(i.target.result,o.get_offset()),n(e),o.send(c),r.on_progress&&r.on_progress(t.obj,o,c))},a.onload=function(a){c=new Uint8Array(a.target.result,o,c),n(e),o.end(c).then(function(){r.on_progress&&c.length&&r.on_progress(t.obj,o,c),r.on_file_complete&&r.on_file_complete(t.obj,o),s(i())})},a.readAsArrayBuffer(t.obj)})})):Promise.resolve()}r||(r={});for(var o=[],s=0,a=t.length-1;a>=0;a--){var c=t[a];s+=c.size,o[a]={obj:c,name:c.name,size:c.size,mtime:new Date(c.lastModified),files_remaining:t.length-a,bytes_remaining:s}}var l=0;return i()},save_to_disk:function(e,t){var r=new Blob(e),n=URL.createObjectURL(r),i=document.createElement("a");i.style.display="none",i.href=n,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}},{"./zmodem":373}],375:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=t.exports;Object.assign(o,e("./zmlib"),e("./zsession"));var s=[42,42,24,66,48],a=["to_terminal","on_detect","on_retract","sender"],c=function(){function e(t,r,i,o){n(this,e),this._confirmer=r,this._denier=i,this._is_valid=o,this._session_type=t}return i(e,[{key:"confirm",value:function(){return this._confirmer.apply(this,arguments)}},{key:"deny",value:function(){return this._denier.apply(this,arguments)}},{key:"is_valid",value:function(){return this._is_valid.apply(this,arguments)}},{key:"get_session_role",value:function(){return this._session_type}}]),e}();o.Sentry=function(){function e(t){if(n(this,e),!t)throw"Need options!";var r=this;a.forEach(function(e){if(!t[e])throw"Need “"+e+"”!";r["_"+e]=t[e]}),this._cache=[]}return i(e,[{key:"_after_session_end",value:function(){this._zsession=null}},{key:"consume",value:function(e){if(e instanceof Array||(e=Array.prototype.slice.call(new Uint8Array(e))),this._zsession){var t=this._zsession;if(t.consume(e),!t.has_ended())return;e="receive"===t.type?t.get_trailing_bytes():[]}var r=this._parse(e),n=e;if(r){!!this._parsed_session&&(this._parsed_session.type===r.type&&(n=[]),this._on_retract()),this._parsed_session=r;var i=this;this._on_detect(new c(r.type,function(){if(!this.is_valid())throw"Stale ZMODEM session!";return r.on("garbage",i._to_terminal),r.on("session_end",i._after_session_end.bind(i)),r.set_sender(i._sender),delete i._parsed_session,i._zsession=r},this._send_abort.bind(this),function(){return i._parsed_session===r}))}else{var o=this._parsed_session;this._parsed_session=null,o&&(1===n.length&&67===n[0]&&this._send_abort(),this._on_retract())}this._to_terminal(n)}},{key:"get_confirmed_session",value:function(){return this._zsession||null}},{key:"_send_abort",value:function(){this._sender(o.ZMLIB.ABORT_SEQUENCE)}},{key:"_parse",value:function(e){var t=this._cache;for(t.push.apply(t,e);;){var r=o.ZMLIB.find_subarray(t,s);if(-1===r)break;t.splice(0,r);var n=void 0;try{n=o.Session.parse(t)}catch(e){}if(!n)break;return 1===t.length&&t[0]===o.ZMLIB.XON&&t.shift(),t.length?null:n}return t.splice(21),null}}]),e}()},{"./zmlib":372,"./zsession":376}],376:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,r,n)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(n)},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=t.exports;Object.assign(c,e("./encode"),e("./text"),e("./zdle"),e("./zmlib"),e("./zheader"),e("./zsubpacket"),e("./zvalidation"),e("./zerror"));var l=["CANFDX","CANOVIO","CANFC32"],u=[79,79],f=c.ZMLIB.ABORT_SEQUENCE,h=function(){function e(){o(this,e),this._on_evt={},this._evt_once_index={}}return a(e,[{key:"_Add_event",value:function(e){this._on_evt[e]=[],this._evt_once_index[e]=[]}},{key:"_get_evt_queue",value:function(e){if(!this._on_evt[e])throw"Bad event: "+e;return this._on_evt[e]}},{key:"on",value:function(e,t){return this._get_evt_queue(e).push(t),this}},{key:"off",value:function(e,t){var r=this._get_evt_queue(e);if(t){var n=r.indexOf(t);if(-1===n)throw"“"+t+"” is not in the “"+e+"” queue.";r.splice(n,1)}else r.pop();return this}},{key:"_Happen",value:function(e){var t=this._get_evt_queue(e),r=Array.apply(null,arguments);r.shift();var n=this;return t.forEach(function(e){e.apply(n,r)}),t.length}}]),e}();c.Session=function(e){function t(){o(this,t);var e=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._config={},e._input_buffer=[],e._Add_event("receive"),e._Add_event("garbage"),e._Add_event("session_end"),e}return i(t,h),a(t,[{key:"set_sender",value:function(e){return this._sender=e,this}},{key:"has_ended",value:function(){return this._has_ended()}},{key:"consume",value:function(e){if(this._before_consume(e),this._aborted)throw new c.Error("already_aborted");e.length&&(this._strip_and_enqueue_input(e),this._check_for_abort_sequence(e)||this._consume_first())}},{key:"aborted",value:function(){return!!this._aborted}}],[{key:"parse",value:function(e){var t;try{t=c.Header.parse_hex(e)}catch(e){return}if(t)switch(t.NAME){case"ZRQINIT":return new c.Session.Receive;case"ZRINIT":return new c.Session.Send(t)}}}]),a(t,[{key:"get_role",value:function(){return this.type}},{key:"_trim_leading_garbage_until_header",value:function(){var e=c.Header.trim_leading_garbage(this._input_buffer);e.length&&0===this._Happen("garbage",e)&&console.debug("Garbage: ",String.fromCharCode.apply(String,e),e)}},{key:"_parse_and_consume_header",value:function(){this._trim_leading_garbage_until_header();var e=c.Header.parse(this._input_buffer);if(e)return this._consume_header(e[0]),this._last_header_name=e[0].NAME,this._last_header_crc=e[1],e[0]}},{key:"_consume_header",value:function(e){this._on_receive(e);var t=this._next_header_handler[e.NAME];if(!t)throw console.error("Unhandled header!",e,this._next_header_handler),new c.Error("Unhandled header: "+e.NAME);this._next_header_handler=null,t.call(this,e)}},{key:"_check_for_abort_sequence",value:function(){var e=c.ZMLIB.find_subarray(this._input_buffer,f);if(-1!==e)throw this._input_buffer.splice(0,e+f.length),this._aborted=!0,this._on_session_end(),new c.Error("peer_aborted")}},{key:"_send_header",value:function(e){if(!this._sender)throw"Need sender!";var t=Array.apply(null,arguments),r=this._create_header_bytes(t);this._sender(r[0]),this._last_sent_header=r[1]}},{key:"_create_header_bytes",value:function(e){var t=c.Header.build.apply(c.Header,e);return[t[this._get_header_formatter(e[0])](this._zencoder),t]}},{key:"_strip_and_enqueue_input",value:function(e){c.ZMLIB.strip_ignored_bytes(e),this._input_buffer.push.apply(this._input_buffer,e)}},{key:"abort",value:function(){this._sender(f.concat([8,8,8,8,8])),this._aborted=!0,this._sender=function(){throw new c.Error("already_aborted")},this._on_session_end()}},{key:"_on_session_end",value:function(){this._Happen("session_end")}},{key:"_on_receive",value:function(e){this._Happen("receive",e)}},{key:"_before_consume",value:function(){}}]),t}(),c.Session.Receive=function(e){function t(){o(this,t);var e=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._Add_event("offer"),e._Add_event("data_in"),e._Add_event("file_end"),e}return i(t,c.Session),a(t,[{key:"_before_consume",value:function(e){if(this._bytes_after_OO)throw"PROTOCOL: Session is completed!";this._bytes_being_consumed=e}},{key:"get_trailing_bytes",value:function(){if(this._aborted)return[];if(!this._bytes_after_OO)throw"PROTOCOL: Session is not completed!";return this._bytes_after_OO.slice(0)}},{key:"_has_ended",value:function(){return this.aborted()||!!this._bytes_after_OO}},{key:"_get_header_formatter",value:function(){return"to_hex"}},{key:"_parse_and_consume_subpacket",value:function(){var e;e=16===this._last_header_crc?"parse16":"parse32";var t=c.Subpacket[e](this._input_buffer);return t&&(this._consume_data(t),t.frame_end()&&(this._next_subpacket_handler=null)),t}},{key:"_consume_first",value:function(){if(this._got_ZFIN){if(this._input_buffer.length<2)return;if(0===c.ZMLIB.find_subarray(this._input_buffer,u))return this._bytes_after_OO=function(e){return 0===c.ZMLIB.find_subarray(e,u)?e.splice(0,u.length):e[0]===u[u.length-1]&&e.splice(0,1),e}(this._bytes_being_consumed.slice(0)),void this._on_session_end();throw"PROTOCOL: Only thing after ZFIN should be “OO” (79,79), not: "+array_buf.join()}var e;do{e=this._next_subpacket_handler?this._parse_and_consume_subpacket():this._parse_and_consume_header()}while(e&&this._input_buffer.length)}},{key:"_consume_data",value:function(e){if(this._on_receive(e),!this._next_subpacket_handler)throw"PROTOCOL: Received unexpected data packet after "+this._last_header_name+" header: "+e.get_payload().join();this._next_subpacket_handler.call(this,e)}},{key:"_octets_to_string",value:function(e){return this._textdecoder||(this._textdecoder=new c.Text.Decoder),this._textdecoder.decode(new Uint8Array(e))}},{key:"_consume_ZFILE_data",value:function(e,t){if(this._file_info)throw"PROTOCOL: second ZFILE data subpacket received";var r=t.get_payload(),n=r.indexOf(0),i=this._octets_to_string(r.slice(0,n)),o=this._octets_to_string(r.slice(1+n)).split(" "),s=o[1]&&parseInt(o[1],8)||void 0;s&&(s=new Date(1e3*s)),this._file_info={name:i,size:o[0]?parseInt(o[0],10):null,mtime:s||null,mode:o[2]&&parseInt(o[2],8)||null,serial:o[3]&&parseInt(o[3],10)||null,files_remaining:o[4]?parseInt(o[4],10):null,bytes_remaining:o[5]?parseInt(o[5],10):null};var a=new d(e.get_options(),this._file_info,this._accept.bind(this),this._skip.bind(this));this._current_transfer=a}},{key:"_consume_ZDATA_data",value:function(e){if(!this._accepted_offer)throw"PROTOCOL: Received data without accepting!";if(!this._offset_ok)return console.warn("offset not ok!"),void _send_ZRPOS();this._file_offset+=e.get_payload().length,this._on_data_in(e),e.ack_expected()&&!e.frame_end()&&this._send_header("ZACK",c.ENCODELIB.pack_u32_le(this._file_offset))}},{key:"_make_promise_for_between_files",value:function(){var e=this;return new Promise(function(t){var r={ZFILE:function(e){this._next_subpacket_handler=function(r){this._next_subpacket_handler=null,this._consume_ZFILE_data(e,r),this._Happen("offer",this._current_transfer),t(this._current_transfer)}},ZSINIT:function(t){e._next_subpacket_handler=function(t){e._next_subpacket_handler=null,e._consume_ZSINIT_data(t),e._send_header("ZACK"),e._next_header_handler=r}},ZFIN:function(){this._consume_ZFIN(),t()}};e._next_header_handler=r})}},{key:"_consume_ZSINIT_data",value:function(e){this._attn=e.get_payload()}},{key:"start",value:function(){if(this._started)throw"Already started!";this._started=!0;var e=this._make_promise_for_between_files();return this._send_ZRINIT(),e}},{key:"_accept",value:function(e){this._accepted_offer=!0,this._file_offset=e||0;var t=this,r=new Promise(function(e){t._next_header_handler={ZDATA:function(t){this._consume_ZDATA(t),this._next_subpacket_handler=this._consume_ZDATA_data,this._next_header_handler={ZEOF:function(t){this._next_subpacket_handler=null,this._consume_ZEOF(t);var r=this._make_promise_for_between_files();e(r)}}}}});return this._send_ZRPOS(),r}},{key:"_skip",value:function(){var e=this._make_promise_for_between_files();if(this._accepted_offer){var t=function(){this._accepted_offer=!1,this._next_subpacket_handler=null,this._make_promise_for_between_files()}.bind(this);Object.assign(this._next_header_handler,{ZEOF:t,ZDATA:function(){t(),this._next_header_handler.ZEOF=t}.bind(this)})}return this._file_info=null,this._send_header("ZSKIP"),e}},{key:"_send_ZRINIT",value:function(){this._send_header("ZRINIT",l)}},{key:"_consume_ZFIN",value:function(){this._got_ZFIN=!0,this._send_header("ZFIN")}},{key:"_consume_ZEOF",value:function(e){if(this._file_offset!==e.get_offset())throw"ZEOF offset mismatch; unimplemented (local: "+this._file_offset+"; ZEOF: "+e.get_offset()+")";this._send_ZRINIT(),this._on_file_end(),this._file_info=null,this._current_transfer=null}},{key:"_consume_ZDATA",value:function(e){if(this._file_offset!==e.get_offset())throw"Error correction is unimplemented.";this._offset_ok=!0}},{key:"_send_ZRPOS",value:function(){this._send_header("ZRPOS",this._file_offset)}},{key:"_on_file_end",value:function(){this._Happen("file_end"),this._current_transfer&&(this._current_transfer._Happen("complete"),this._current_transfer=null)}},{key:"_on_data_in",value:function(e){this._Happen("data_in",e),this._current_transfer&&this._current_transfer._Happen("input",e.get_payload())}}]),t}(),Object.assign(c.Session.Receive.prototype,{type:"receive"});var _={get_details:function(){return Object.assign({},this._file_info)},get_options:function(){return Object.assign({},this._zfile_opts)},get_offset:function(){return this._file_offset}},p=function(){function e(t,r,n,i){o(this,e),this._file_info=t,this._file_offset=r||0,this._send=n,this._end=i}return a(e,[{key:"send",value:function(e){this._send(e),this._file_offset+=e.length}},{key:"end",value:function(e){var t=this._end(e||[]);return e&&(this._file_offset+=e.length),t}}]),e}();Object.assign(p.prototype,_);var d=function(e){function t(e,r,i,s){o(this,t);var a=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a._zfile_opts=e,a._file_info=r,a._accept_func=i,a._skip_func=s,a._Add_event("input"),a._Add_event("complete"),a.on("input",a._input_handler),a}return i(t,h),a(t,[{key:"_verify_not_skipped",value:function(){if(this._skipped)throw new c.Error("Already skipped!")}},{key:"skip",value:function(){return this._verify_not_skipped(),this._skipped=!0,this._skip_func.apply(this,arguments)}},{key:"accept",value:function(e){if(this._verify_not_skipped(),this._accepted)throw new c.Error("Already accepted!");switch(this._accepted=!0,e||(e={}),this._file_offset=e.offset||0,e.on_input){case null:case void 0:case"spool_array":case"spool_uint8array":this._spool=[];break;default:if("function"!=typeof e.on_input)throw"Invalid “on_input”: "+e.on_input}return this._input_handler_mode=e.on_input||"spool_uint8array",this._accept_func(this._file_offset).then(this._get_spool.bind(this))}},{key:"_input_handler",value:function(e){if(this._file_offset+=e.length,"function"==typeof this._input_handler_mode)this._input_handler_mode(e);else{if("spool_uint8array"===this._input_handler_mode)e=new Uint8Array(e);else if("spool_array"!==this._input_handler_mode)throw new c.Error("WTF?? _input_handler_mode = "+this._input_handler_mode);this._spool.push(e)}}},{key:"_get_spool",value:function(){return this._spool}}]),t}();Object.assign(d.prototype,_);var m={ZFILE:!0,ZDATA:!0};c.Session.Send=function(e){function t(e){o(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!e)throw"Need first header!";if("ZRINIT"!==e.NAME)throw"First header should be ZRINIT, not "+e.NAME;r._last_header_name="ZRINIT",r._subpacket_encode_func="encode16",r._zencoder=new c.ZDLE,r._consume_ZRINIT(e),r._file_offset=0;return r._start_keepalive_on_set_sender=!0,r}return i(t,c.Session),a(t,[{key:"set_sender",value:function(e){return s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"set_sender",this).call(this,e),this._start_keepalive_on_set_sender&&(this._start_keepalive_on_set_sender=!1,this._start_keepalive()),this}},{key:"_get_header_formatter",value:function(e){return m[e]?"to_binary16":"to_hex"}},{key:"_start_keepalive",value:function(){if(!this._keepalive_promise){var e=this;this._keepalive_promise=new Promise(function(t){e._keepalive_timeout=setTimeout(t,5e3)}).then(function(){e._next_header_handler={ZACK:function(){e._got_ZSINIT_ZACK=!0}},e._send_ZSINIT(),e._keepalive_promise=null,e._start_keepalive()})}}},{key:"_stop_keepalive",value:function(){this._keepalive_promise&&(clearTimeout(this._keepalive_timeout),this._keep_alive_promise=null)}},{key:"_send_ZSINIT",value:function(){var e=[];this._zencoder.escapes_ctrl_chars()&&e.push("ESCCTL"),this._send_header_and_data(["ZSINIT",e],[0],"end_ack")}},{key:"_consume_ZRINIT",value:function(e){if(this._last_ZRINIT=e,e.get_buffer_size())throw"Buffer size ("+e.get_buffer_size()+") is unsupported!";if(!e.can_full_duplex())throw"Half-duplex I/O is unsupported!";if(!e.can_overlap_io())throw"Non-overlap I/O is unsupported!";if(e.escape_8th_bit())throw"8-bit escaping is unsupported!";this._zencoder.set_escape_ctrl_chars(!0),e.escape_ctrl_chars()||console.debug("Peer didn’t request escape of all control characters. Will send ZSINIT to force recognition of escaped control characters.")}},{key:"_ensure_receiver_escapes_ctrl_chars",value:function(){var e;if(!this._last_ZRINIT.escape_ctrl_chars()&&!this._got_ZSINIT_ZACK){var t=this;e=new Promise(function(e){t._next_header_handler={ZACK:function(t){e()}},t._send_ZSINIT()})}else e=Promise.resolve();return e}},{key:"_convert_params_to_offer_payload_array",value:function(e){var t=(e=c.Validation.offer_parameters(e)).name+"\0",r=[(e.size||0).toString(10),e.mtime?e.mtime.toString(8):"0",e.mode?(32768|e.mode).toString(8):"0","0"];return e.files_remaining&&(r.push(e.files_remaining),e.bytes_remaining&&r.push(e.bytes_remaining)),t+=r.join(" "),this._string_to_octets(t)}},{key:"send_offer",value:function(e){if(!e)throw"need file params!";if(this._sending_file)throw"Already sending file!";var t=this._convert_params_to_offer_payload_array(e);this._stop_keepalive();var r=this,n=function(){var n=new Promise(function(t){r._next_header_handler={ZSKIP:function(){r._start_keepalive(),t()},ZRPOS:function(n){r._sending_file=!0,t(new p(e,n.get_offset(),r._send_interim_file_piece.bind(r),r._end_file.bind(r)))}}});return r._send_header_and_data(["ZFILE"],t,"end_ack"),delete r._sent_ZDATA,n};return this._ensure_receiver_escapes_ctrl_chars().then(n)}},{key:"_send_header_and_data",value:function(e,t,r){var n=this._create_header_bytes(e),i=this._build_subpacket_bytes(t,r);n[0].push.apply(n[0],i),this._sender(n[0]),this._last_sent_header=n[1]}},{key:"_build_subpacket_bytes",value:function(e,t){return c.Subpacket.build(e,t)[this._subpacket_encode_func](this._zencoder)}},{key:"_build_and_send_subpacket",value:function(e,t){this._sender(this._build_subpacket_bytes(e,t))}},{key:"_string_to_octets",value:function(e){this._textencoder||(this._textencoder=new c.Text.Encoder);var t=this._textencoder.encode(e);return Array.prototype.slice.call(t)}},{key:"_send_interim_file_piece",value:function(e){return this._send_file_part(e,"no_end_no_ack"),Promise.resolve()}},{key:"_ensure_we_are_sending",value:function(){if(!this._sending_file)throw"Not sending a file currently!"}},{key:"_end_file",value:function(e){this._ensure_we_are_sending(),this._send_file_part(e,"end_no_ack");var t=this,r=new Promise(function(e){t._sending_file=!1,t._prepare_to_receive_ZRINIT(e)});return this._send_header("ZEOF",this._file_offset),this._file_offset=0,r}},{key:"_prepare_to_receive_ZRINIT",value:function(e){this._next_header_handler={ZRINIT:function(t){this._consume_ZRINIT(t),e&&e()}}}},{key:"close",value:function(){var e="ZRINIT"===this._last_header_name;if(e||(e="ZSKIP"===this._last_header_name),e||(e="ZSINIT"===this._last_sent_header.name&&"ZACK"===this._last_header_name),!e)throw"Can’t close; last received header was “"+this._last_header_name+"”";var t=this,r=new Promise(function(e,r){t._next_header_handler={ZFIN:function(){t._sender(u),t._sent_OO=!0,t._on_session_end(),e()}}});return this._send_header("ZFIN"),r}},{key:"_has_ended",value:function(){return this.aborted()||!!this._sent_OO}},{key:"_send_file_part",value:function(e,t){this._sent_ZDATA||(this._send_header("ZDATA",this._file_offset),this._sent_ZDATA=!0);for(var r=0,n=e.length;;){var i=Math.min(r+8192,n)-r,o=i+r>=n,s=e.slice(r,r+i);if(s instanceof Array||(s=Array.prototype.slice.call(s)),this._build_and_send_subpacket(s,o?t:"no_end_no_ack"),this._file_offset+=i,(r+=i)>=n)break}}},{key:"_consume_first",value:function(){if(!this._parse_and_consume_header()&&"67"===this._input_buffer.join())throw"Receiver has fallen back to YMODEM."}},{key:"_on_session_end",value:function(){this._stop_keepalive(),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_on_session_end",this).call(this)}}]),t}(),Object.assign(c.Session.Send.prototype,{type:"send"})},{"./encode":366,"./text":367,"./zdle":369,"./zerror":370,"./zheader":371,"./zmlib":372,"./zsubpacket":377,"./zvalidation":378}],377:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=t.exports;Object.assign(a,e("./zcrc"),e("./zdle"),e("./zmlib"),e("./zerror"));var c;a.Subpacket=function(){function e(t){o(this,e),this._payload=t}return s(e,[{key:"encode16",value:function(e){return this._encode(e,a.CRC.crc16)}},{key:"encode32",value:function(e){return this._encode(e,a.CRC.crc32)}},{key:"get_payload",value:function(){return this._payload}}],[{key:"build",value:function(e,t){var r=c[t];if(!r)throw"No subpacket type “"+t+"” is defined! Try one of: "+Object.keys(c).join(", ");return new r(e)}},{key:"parse16",value:function(t){return e._parse(t,2)}},{key:"parse32",value:function(t){return e._parse(t,4)}}]),s(e,[{key:"_encode",value:function(e,t){return e.encode(this._payload.slice(0)).concat([a.ZMLIB.ZDLE,this._frameend_num],e.encode(t(this._payload.concat(this._frameend_num))))}}],[{key:"_parse",value:function(e,t){for(var r,n,i={104:f,105:_,106:p,107:h},o=0;o<e.length;){if(-1===(o=e.indexOf(a.ZMLIB.ZDLE,o)))return;if(n=i[e[o+1]]){r=o+1;break}o++}if(n){var s=e[r];if(e[r-1]!==a.ZMLIB.ZDLE)throw"Byte before frame end should be ZDLE, not "+e[r-1];var c=e.splice(0,r-1),l=a.ZDLE.splice(e,2,t);if(l){var u=a.ZDLE.decode(c);return a.CRC[2===t?"verify16":"verify32"](u.concat([s]),l),new n(u,l)}e.unshift.apply(e,c)}}}]),e}();var l=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,a.Subpacket),s(t,[{key:"frame_end",value:function(){return!0}}]),t}(),u=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,a.Subpacket),s(t,[{key:"frame_end",value:function(){return!1}}]),t}(),f=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,l),s(t,[{key:"ack_expected",value:function(){return!1}}]),t}();f.prototype._frameend_num=104;var h=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,l),s(t,[{key:"ack_expected",value:function(){return!0}}]),t}();h.prototype._frameend_num=107;var _=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,u),s(t,[{key:"ack_expected",value:function(){return!1}}]),t}();_.prototype._frameend_num=105;var p=function(e){function t(){return o(this,t),n(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,u),s(t,[{key:"ack_expected",value:function(){return!0}}]),t}();p.prototype._frameend_num=106,c={end_no_ack:f,end_ack:h,no_end_no_ack:_,no_end_ack:p}},{"./zcrc":368,"./zdle":369,"./zerror":370,"./zmlib":372}],378:[function(e,t,r){"use strict";function n(e,t){if(t<0)throw new o.Error("validation","“"+e+"” ("+t+") must be nonnegative.");if(t!==Math.floor(t))throw new o.Error("validation","“"+e+"” ("+t+") must be an integer.")}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=t.exports;Object.assign(o,e("./zerror"));var s=/\*\x18[AC]|\*\*\x18B/;o.Validation={offer_parameters:function(e){if(!e.name)throw new o.Error("validation","Need “name”!");if("string"!=typeof e.name)throw new o.Error("validation","“name” ("+e.name+") must be a string!");if(e=Object.assign({},e),s.test(e.name)&&console.warn("The filename "+JSON.stringify(name)+" contains characters that look like a ZMODEM header. This could corrupt the ZMODEM session; consider renaming it so that the filename doesn’t contain control characters."),null!==e.serial&&void 0!==e.serial)throw new o.Error("validation","“serial” is meaningless.");if(e.serial=null,["size","mode","files_remaining","bytes_remaining"].forEach(function(t){var r;switch(i(e[t])){case"object":r=null===e[t];break;case"undefined":e[t]=null,r=!0;break;case"number":n(t,e[t]),r=!0}if(!r)throw new o.Error("validation","“"+t+"” ("+e[t]+") must be null, undefined, or a number.")}),"number"==typeof e.mode&&(e.mode|=32768),0===e.files_remaining)throw new o.Error("validation","“files_remaining”, if given, must be positive.");var t;switch(i(e.mtime)){case"object":if(t=!0,e.mtime instanceof Date){var r=e.mtime;if(e.mtime=Math.floor(r.getTime()/1e3),e.mtime<0)throw new o.Error("validation","“mtime” ("+r+") must not be earlier than 1970.")}else null!==e.mtime&&(t=!1);break;case"undefined":e.mtime=null,t=!0;break;case"number":n("mtime",e.mtime),t=!0}if(!t)throw new o.Error("validation","“mtime” ("+e.mtime+") must be null, undefined, a Date, or a number.");return e}}},{"./zerror":370}]},{},[1]);</script>
 </body>
 </html>
index 845718c4725635cec94312817e34cbfdb44c2759..65764ab21ea0fbc247850f019bedbc6be4d8477f 100644 (file)
@@ -273,15 +273,14 @@ callback_tty(struct lws *wsi, enum lws_callback_reasons reason,
 
         case LWS_CALLBACK_RECEIVE:
             if (client->buffer == NULL) {
-                client->buffer = xmalloc(len + 1);
+                client->buffer = xmalloc(len);
                 client->len = len;
                 memcpy(client->buffer, in, len);
             } else {
-                client->buffer = xrealloc(client->buffer, client->len + len + 1);
+                client->buffer = xrealloc(client->buffer, client->len + len);
                 memcpy(client->buffer + client->len, in, len);
                 client->len += len;
             }
-            client->buffer[client->len] = '\0';
 
             const char command = client->buffer[0];
 
@@ -302,24 +301,13 @@ callback_tty(struct lws *wsi, enum lws_callback_reasons reason,
                         break;
                     if (server->readonly)
                         return 0;
-                    if (write(client->pty, client->buffer + 1, client->len - 1) < client->len - 1) {
-                        lwsl_err("write INPUT to pty\n");
+                    if (write(client->pty, client->buffer + 1, client->len - 1) == -1) {
+                        lwsl_err("write INPUT to pty: %d (%s)\n", errno, strerror(errno));
                         tty_client_remove(client);
                         lws_close_reason(wsi, LWS_CLOSE_STATUS_UNEXPECTED_CONDITION, NULL, 0);
                         return -1;
                     }
                     break;
-                case PING:
-                    {
-                        unsigned char c = PONG;
-                        if (lws_write(wsi, &c, 1, LWS_WRITE_BINARY) != 1) {
-                            lwsl_err("send PONG\n");
-                            tty_client_remove(client);
-                            lws_close_reason(wsi, LWS_CLOSE_STATUS_UNEXPECTED_CONDITION, NULL, 0);
-                            return -1;
-                        }
-                    }
-                    break;
                 case RESIZE_TERMINAL:
                     if (parse_window_size(client->buffer + 1, &client->size) && client->pty > 0) {
                         if (ioctl(client->pty, TIOCSWINSZ, &client->size) == -1) {
index c1a17a547e479bf17bf96cbc2e285b3d588c1a06..a16bab0d92338bf3c3d81a8c0a6fe8a6fc0b61be 100644 (file)
@@ -218,7 +218,6 @@ main(int argc, char **argv) {
     info.max_http_header_pool = 16;
     info.options = LWS_SERVER_OPTION_VALIDATE_UTF8;
     info.extensions = extensions;
-    info.timeout_secs = 5;
 
     int debug_level = LLL_ERR | LLL_WARN | LLL_NOTICE;
     char iface[128] = "";
@@ -369,6 +368,9 @@ main(int argc, char **argv) {
     char server_hdr[128] = "";
     sprintf(server_hdr, "ttyd/%s (libwebsockets/%s)", TTYD_VERSION, LWS_LIBRARY_VERSION);
     info.server_string = server_hdr;
+#if LWS_LIBRARY_VERSION_MINOR >= 1
+    info.ws_ping_pong_interval = 5;
+#endif
 #endif
 
     if (strlen(iface) > 0) {
index c357315b971c7f3b23d4649a1c4e7206c5ece775..881b4e8e27b40c992bd15f5187e522ecdacbbbbe 100644 (file)
 
 // client message
 #define INPUT '0'
-#define PING '1'
-#define RESIZE_TERMINAL '2'
+#define RESIZE_TERMINAL '1'
 #define JSON_DATA '{'
 
 // server message
 #define OUTPUT '0'
-#define PONG '1'
-#define SET_WINDOW_TITLE '2'
-#define SET_PREFERENCES '3'
-#define SET_RECONNECT '4'
+#define SET_WINDOW_TITLE '1'
+#define SET_PREFERENCES '2'
+#define SET_RECONNECT '3'
 
 // websocket url path
 #define WS_PATH "/ws"