js-dos 7.2.0 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/js-dos.js CHANGED
@@ -1,2 +1,2 @@
1
- !function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){"use strict";var r=e("./utils");function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),n<o?n=o:o<r&&(r=o),e[o]||(e[o]=[]),e[o].push(i),t++},process:function(){for(var t=r;t<=n;t++)for(var o=e[t],i=0;i<o.length;i++)(0,o[i])()},size:function(){return t}}}t.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),i=r.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=o(),c=!1;function l(){for(c=!0;a.size();){var e=a;a=o(),e.process()}c=!1}function u(){s=setTimeout(l,0)}return{add:function(e,t){!c&&i&&n&&0===a.size()&&u(),a.add(e,t)},force:function(e){c||(void 0===e&&(e=n),s&&(clearTimeout(s),s=null),(e?u:l)())}}}},{"./utils":2}],2:[function(e,t,n){"use strict";(t.exports={}).getOption=function(e,t,n){var r=e[t];return null!=r||void 0===n?r:n}},{}],3:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],4:[function(e,t,n){var r=e("./_wks")("unscopables"),o=Array.prototype;null==o[r]&&e("./_hide")(o,r,{}),t.exports=function(e){o[r][e]=!0}},{"./_hide":33,"./_wks":98}],5:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);t.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},{"./_string-at":80}],6:[function(e,t,n){t.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},{}],7:[function(e,t,n){var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":41}],8:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),i=e("./_to-length");t.exports=[].copyWithin||function(e,t,n){var s=r(this),a=i(s.length),c=o(e,a),l=o(t,a),u=2<arguments.length?n:void 0,f=Math.min((void 0===u?a:o(u,a))-l,a-c),d=1;for(l<c&&c<l+f&&(d=-1,l+=f-1,c+=f-1);0<f--;)l in s?s[c]=s[l]:delete s[c],c+=d,l+=d;return s}},{"./_to-absolute-index":84,"./_to-length":88,"./_to-object":89}],9:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),i=e("./_to-length");t.exports=function(e,t,n){for(var s=r(this),a=i(s.length),c=arguments.length,l=o(1<c?t:void 0,a),u=2<c?n:void 0,f=void 0===u?a:o(u,a);l<f;)s[l++]=e;return s}},{"./_to-absolute-index":84,"./_to-length":88,"./_to-object":89}],10:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_to-length"),i=e("./_to-absolute-index");t.exports=function(e){return function(t,n,s){var a,c=r(t),l=o(c.length),u=i(s,l);if(e&&n!=n){for(;u<l;)if((a=c[u++])!=a)return!0}else for(;u<l;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},{"./_to-absolute-index":84,"./_to-iobject":87,"./_to-length":88}],11:[function(e,t,n){var r=e("./_ctx"),o=e("./_iobject"),i=e("./_to-object"),s=e("./_to-length"),a=e("./_array-species-create");t.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,f=6==e,d=5==e||f,p=t||a;return function(t,a,h){for(var y,m,v=i(t),_=o(v),g=r(a,h,3),b=s(_.length),w=0,x=n?p(t,b):c?p(t,0):void 0;w<b;w++)if((d||w in _)&&(m=g(y=_[w],w,v),e))if(n)x[w]=m;else if(m)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:x.push(y)}else if(u)return!1;return f?-1:l||u?u:x}}},{"./_array-species-create":13,"./_ctx":19,"./_iobject":38,"./_to-length":88,"./_to-object":89}],12:[function(e,t,n){var r=e("./_is-object"),o=e("./_is-array"),i=e("./_wks")("species");t.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":40,"./_is-object":41,"./_wks":98}],13:[function(e,t,n){var r=e("./_array-species-constructor");t.exports=function(e,t){return new(r(e))(t)}},{"./_array-species-constructor":12}],14:[function(e,t,n){"use strict";var r=e("./_a-function"),o=e("./_is-object"),i=e("./_invoke"),s=[].slice,a={};t.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),c=function(){var r=n.concat(s.call(arguments));return this instanceof c?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):i(t,r,e)};return o(t.prototype)&&(c.prototype=t.prototype),c}},{"./_a-function":3,"./_invoke":37,"./_is-object":41}],15:[function(e,t,n){var r=e("./_cof"),o=e("./_wks")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":16,"./_wks":98}],16:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],17:[function(e,t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},{}],18:[function(e,t,n){"use strict";var r=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},{"./_object-dp":53,"./_property-desc":68}],19:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":3}],20:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],21:[function(e,t,n){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":26}],22:[function(e,t,n){var r=e("./_is-object"),o=e("./_global").document,i=r(o)&&r(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":31,"./_is-object":41}],23:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],24:[function(e,t,n){var r=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie");t.exports=function(e){var t=r(e),n=o.f;if(n)for(var s,a=n(e),c=i.f,l=0;a.length>l;)c.call(e,s=a[l++])&&t.push(s);return t}},{"./_object-gops":58,"./_object-keys":61,"./_object-pie":62}],25:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_hide"),s=e("./_redefine"),a=e("./_ctx"),c="prototype",l=function(e,t,n){var u,f,d,p,h=e&l.F,y=e&l.G,m=e&l.S,v=e&l.P,_=e&l.B,g=y?r:m?r[t]||(r[t]={}):(r[t]||{})[c],b=y?o:o[t]||(o[t]={}),w=b[c]||(b[c]={});for(u in y&&(n=t),n)d=((f=!h&&g&&void 0!==g[u])?g:n)[u],p=_&&f?a(d,r):v&&"function"==typeof d?a(Function.call,d):d,g&&s(g,u,d,e&l.U),b[u]!=d&&i(b,u,p),v&&w[u]!=d&&(w[u]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},{"./_core":17,"./_ctx":19,"./_global":31,"./_hide":33,"./_redefine":70}],26:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],27:[function(e,t,n){"use strict";e("./es6.regexp.exec");var r=e("./_redefine"),o=e("./_hide"),i=e("./_fails"),s=e("./_defined"),a=e("./_wks"),c=e("./_regexp-exec"),l=a("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(e,t,n){var d=a(e),p=!i((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!t})):void 0;if(!p||!h||"replace"===e&&!u||"split"===e&&!f){var y=/./[d],m=n(s,d,""[e],(function(e,t,n,r,o){return t.exec===c?p&&!o?{done:!0,value:y.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=m[0],_=m[1];r(String.prototype,e,v),o(RegExp.prototype,d,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}}},{"./_defined":20,"./_fails":26,"./_hide":33,"./_redefine":70,"./_regexp-exec":72,"./_wks":98,"./es6.regexp.exec":118}],28:[function(e,t,n){"use strict";var r=e("./_an-object");t.exports=function(){var e=r(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":7}],29:[function(e,t,n){var r=e("./_ctx"),o=e("./_iter-call"),i=e("./_is-array-iter"),s=e("./_an-object"),a=e("./_to-length"),c=e("./core.get-iterator-method"),l={},u={};(n=t.exports=function(e,t,n,f,d){var p,h,y,m,v=d?function(){return e}:c(e),_=r(n,f,t?2:1),g=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(p=a(e.length);g<p;g++)if((m=t?_(s(h=e[g])[0],h[1]):_(e[g]))===l||m===u)return m}else for(y=v.call(e);!(h=y.next()).done;)if((m=o(y,_,h.value,t))===l||m===u)return m}).BREAK=l,n.RETURN=u},{"./_an-object":7,"./_ctx":19,"./_is-array-iter":39,"./_iter-call":42,"./_to-length":88,"./core.get-iterator-method":99}],30:[function(e,t,n){t.exports=e("./_shared")("native-function-to-string",Function.toString)},{"./_shared":77}],31:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],32:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],33:[function(e,t,n){var r=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":21,"./_object-dp":53,"./_property-desc":68}],34:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":31}],35:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":21,"./_dom-create":22,"./_fails":26}],36:[function(e,t,n){var r=e("./_is-object"),o=e("./_set-proto").set;t.exports=function(e,t,n){var i,s=t.constructor;return s!==n&&"function"==typeof s&&(i=s.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},{"./_is-object":41,"./_set-proto":73}],37:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],38:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":16}],39:[function(e,t,n){var r=e("./_iterators"),o=e("./_wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},{"./_iterators":47,"./_wks":98}],40:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":16}],41:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],42:[function(e,t,n){var r=e("./_an-object");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},{"./_an-object":7}],43:[function(e,t,n){"use strict";var r=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),s={};e("./_hide")(s,e("./_wks")("iterator"),(function(){return this})),t.exports=function(e,t,n){e.prototype=r(s,{next:o(1,n)}),i(e,t+" Iterator")}},{"./_hide":33,"./_object-create":52,"./_property-desc":68,"./_set-to-string-tag":75,"./_wks":98}],44:[function(e,t,n){"use strict";function r(){return this}var o=e("./_library"),i=e("./_export"),s=e("./_redefine"),a=e("./_hide"),c=e("./_iterators"),l=e("./_iter-create"),u=e("./_set-to-string-tag"),f=e("./_object-gpo"),d=e("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),h="values";t.exports=function(e,t,n,y,m,v,_){function g(e){if(!p&&e in S)return S[e];switch(e){case"keys":case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}}l(n,t,y);var b,w,x,j=t+" Iterator",k=m==h,E=!1,S=e.prototype,D=S[d]||S["@@iterator"]||m&&S[m],C=D||g(m),O=m?k?g("entries"):C:void 0,P="Array"==t&&S.entries||D;if(P&&(x=f(P.call(new e)))!==Object.prototype&&x.next&&(u(x,j,!0),o||"function"==typeof x[d]||a(x,d,r)),k&&D&&D.name!==h&&(E=!0,C=function(){return D.call(this)}),o&&!_||!p&&!E&&S[d]||a(S,d,C),c[t]=C,c[j]=r,m)if(b={values:k?C:g(h),keys:v?C:g("keys"),entries:O},_)for(w in b)w in S||s(S,w,b[w]);else i(i.P+i.F*(p||E),t,b);return b}},{"./_export":25,"./_hide":33,"./_iter-create":43,"./_iterators":47,"./_library":48,"./_object-gpo":59,"./_redefine":70,"./_set-to-string-tag":75,"./_wks":98}],45:[function(e,t,n){var r=e("./_wks")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(e){}return n}},{"./_wks":98}],46:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],47:[function(e,t,n){t.exports={}},{}],48:[function(e,t,n){t.exports=!1},{}],49:[function(e,t,n){function r(e){a(e,o,{value:{i:"O"+ ++c,w:{}}})}var o=e("./_uid")("meta"),i=e("./_is-object"),s=e("./_has"),a=e("./_object-dp").f,c=0,l=Object.isExtensible||function(){return!0},u=!e("./_fails")((function(){return l(Object.preventExtensions({}))})),f=t.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,o)){if(!l(e))return"F";if(!t)return"E";r(e)}return e[o].i},getWeak:function(e,t){if(!s(e,o)){if(!l(e))return!0;if(!t)return!1;r(e)}return e[o].w},onFreeze:function(e){return u&&f.NEED&&l(e)&&!s(e,o)&&r(e),e}}},{"./_fails":26,"./_has":32,"./_is-object":41,"./_object-dp":53,"./_uid":94}],50:[function(e,t,n){var r=e("./_global"),o=e("./_task").set,i=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==e("./_cof")(s);t.exports=function(){function e(){var e,r;for(c&&(e=s.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(e){throw t?l():n=void 0,e}}n=void 0,e&&e.enter()}var t,n,l;if(c)l=function(){s.nextTick(e)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);l=function(){u.then(e)}}else l=function(){o.call(r,e)};else{var f=!0,d=document.createTextNode("");new i(e).observe(d,{characterData:!0}),l=function(){d.data=f=!f}}return function(e){var r={fn:e,next:void 0};n&&(n.next=r),t||(t=r,l()),n=r}}},{"./_cof":16,"./_global":31,"./_task":83}],51:[function(e,t,n){"use strict";var r=e("./_a-function");function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}t.exports.f=function(e){return new o(e)}},{"./_a-function":3}],52:[function(e,t,n){function r(){}var o=e("./_an-object"),i=e("./_object-dps"),s=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),c="prototype",l=function(){var t,n=e("./_dom-create")("iframe"),r=s.length;for(n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l[c][s[r]];return l()};t.exports=Object.create||function(e,t){var n;return null!==e?(r[c]=o(e),n=new r,r[c]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},{"./_an-object":7,"./_dom-create":22,"./_enum-bug-keys":23,"./_html":34,"./_object-dps":54,"./_shared-key":76}],53:[function(e,t,n){var r=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),s=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":7,"./_descriptors":21,"./_ie8-dom-define":35,"./_to-primitive":90}],54:[function(e,t,n){var r=e("./_object-dp"),o=e("./_an-object"),i=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){o(e);for(var n,s=i(t),a=s.length,c=0;c<a;)r.f(e,n=s[c++],t[n]);return e}},{"./_an-object":7,"./_descriptors":21,"./_object-dp":53,"./_object-keys":61}],55:[function(e,t,n){var r=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),s=e("./_to-primitive"),a=e("./_has"),c=e("./_ie8-dom-define"),l=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?l:function(e,t){if(e=i(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},{"./_descriptors":21,"./_has":32,"./_ie8-dom-define":35,"./_object-pie":62,"./_property-desc":68,"./_to-iobject":87,"./_to-primitive":90}],56:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(r(e))}},{"./_object-gopn":57,"./_to-iobject":87}],57:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"./_enum-bug-keys":23,"./_object-keys-internal":60}],58:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],59:[function(e,t,n){var r=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},{"./_has":32,"./_shared-key":76,"./_to-object":89}],60:[function(e,t,n){var r=e("./_has"),o=e("./_to-iobject"),i=e("./_array-includes")(!1),s=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(l,n)||l.push(n));return l}},{"./_array-includes":10,"./_has":32,"./_shared-key":76,"./_to-iobject":87}],61:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"./_enum-bug-keys":23,"./_object-keys-internal":60}],62:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],63:[function(e,t,n){var r=e("./_export"),o=e("./_core"),i=e("./_fails");t.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",s)}},{"./_core":17,"./_export":25,"./_fails":26}],64:[function(e,t,n){var r=e("./_object-gopn"),o=e("./_object-gops"),i=e("./_an-object"),s=e("./_global").Reflect;t.exports=s&&s.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},{"./_an-object":7,"./_global":31,"./_object-gopn":57,"./_object-gops":58}],65:[function(e,t,n){var r=e("./_global").parseInt,o=e("./_string-trim").trim,i=e("./_string-ws"),s=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},{"./_global":31,"./_string-trim":81,"./_string-ws":82}],66:[function(e,t,n){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],67:[function(e,t,n){var r=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},{"./_an-object":7,"./_is-object":41,"./_new-promise-capability":51}],68:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],69:[function(e,t,n){var r=e("./_redefine");t.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},{"./_redefine":70}],70:[function(e,t,n){var r=e("./_global"),o=e("./_hide"),i=e("./_has"),s=e("./_uid")("src"),a=e("./_function-to-string"),c="toString",l=(""+a).split(c);e("./_core").inspectSource=function(e){return a.call(e)},(t.exports=function(e,t,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,s)||o(n,s,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},{"./_core":17,"./_function-to-string":30,"./_global":31,"./_has":32,"./_hide":33,"./_uid":94}],71:[function(e,t,n){"use strict";var r=e("./_classof"),o=RegExp.prototype.exec;t.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},{"./_classof":15}],72:[function(e,t,n){"use strict";var r,o,i=e("./_flags"),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,l="lastIndex",u=(r=/a/,o=/b*/g,s.call(r,"a"),s.call(o,"a"),0!==r[l]||0!==o[l]),f=void 0!==/()??/.exec("")[1];(u||f)&&(c=function(e){var t,n,r,o,c=this;return f&&(n=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),u&&(t=c[l]),r=s.call(c,e),u&&r&&(c[l]=c.global?r.index+r[0].length:t),f&&r&&1<r.length&&a.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=c},{"./_flags":28}],73:[function(e,t,n){function r(e,t){if(i(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}var o=e("./_is-object"),i=e("./_an-object");t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,o){try{(o=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(e,t){return r(e,t),n?e.__proto__=t:o(e,t),e}}({},!1):void 0),check:r}},{"./_an-object":7,"./_ctx":19,"./_is-object":41,"./_object-gopd":55}],74:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_object-dp"),i=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t=r[e];i&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_descriptors":21,"./_global":31,"./_object-dp":53,"./_wks":98}],75:[function(e,t,n){var r=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"./_has":32,"./_object-dp":53,"./_wks":98}],76:[function(e,t,n){var r=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return r[e]||(r[e]=o(e))}},{"./_shared":77,"./_uid":94}],77:[function(e,t,n){var r=e("./_core"),o=e("./_global"),i="__core-js_shared__",s=o[i]||(o[i]={});(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":17,"./_global":31,"./_library":48}],78:[function(e,t,n){var r=e("./_an-object"),o=e("./_a-function"),i=e("./_wks")("species");t.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||null==(n=r(s)[i])?t:o(n)}},{"./_a-function":3,"./_an-object":7,"./_wks":98}],79:[function(e,t,n){"use strict";var r=e("./_fails");t.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},{"./_fails":26}],80:[function(e,t,n){var r=e("./_to-integer"),o=e("./_defined");t.exports=function(e){return function(t,n){var i,s,a=String(o(t)),c=r(n),l=a.length;return c<0||l<=c?e?"":void 0:(i=a.charCodeAt(c))<55296||56319<i||c+1===l||(s=a.charCodeAt(c+1))<56320||57343<s?e?a.charAt(c):i:e?a.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},{"./_defined":20,"./_to-integer":86}],81:[function(e,t,n){function r(e,t,n){var r={},i=s((function(){return!!a[e]()||"​…"!="​…"[e]()})),c=r[e]=i?t(f):a[e];n&&(r[n]=c),o(o.P+o.F*i,"String",r)}var o=e("./_export"),i=e("./_defined"),s=e("./_fails"),a=e("./_string-ws"),c="["+a+"]",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),f=r.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};t.exports=r},{"./_defined":20,"./_export":25,"./_fails":26,"./_string-ws":82}],82:[function(e,t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],83:[function(e,t,n){function r(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}}function o(e){r.call(e.data)}var i,s,a,c=e("./_ctx"),l=e("./_invoke"),u=e("./_html"),f=e("./_dom-create"),d=e("./_global"),p=d.process,h=d.setImmediate,y=d.clearImmediate,m=d.MessageChannel,v=d.Dispatch,_=0,g={},b="onreadystatechange";h&&y||(h=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return g[++_]=function(){l("function"==typeof e?e:Function(e),t)},i(_),_},y=function(e){delete g[e]},"process"==e("./_cof")(p)?i=function(e){p.nextTick(c(r,e,1))}:v&&v.now?i=function(e){v.now(c(r,e,1))}:m?(a=(s=new m).port2,s.port1.onmessage=o,i=c(a.postMessage,a,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(i=function(e){d.postMessage(e+"","*")},d.addEventListener("message",o,!1)):i=b in f("script")?function(e){u.appendChild(f("script"))[b]=function(){u.removeChild(this),r.call(e)}}:function(e){setTimeout(c(r,e,1),0)}),t.exports={set:h,clear:y}},{"./_cof":16,"./_ctx":19,"./_dom-create":22,"./_global":31,"./_html":34,"./_invoke":37}],84:[function(e,t,n){var r=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},{"./_to-integer":86}],85:[function(e,t,n){var r=e("./_to-integer"),o=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},{"./_to-integer":86,"./_to-length":88}],86:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0<e?o:r)(e)}},{}],87:[function(e,t,n){var r=e("./_iobject"),o=e("./_defined");t.exports=function(e){return r(o(e))}},{"./_defined":20,"./_iobject":38}],88:[function(e,t,n){var r=e("./_to-integer"),o=Math.min;t.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},{"./_to-integer":86}],89:[function(e,t,n){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":20}],90:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":41}],91:[function(e,t,n){"use strict";if(e("./_descriptors")){var r=e("./_library"),o=e("./_global"),i=e("./_fails"),s=e("./_export"),a=e("./_typed"),c=e("./_typed-buffer"),l=e("./_ctx"),u=e("./_an-instance"),f=e("./_property-desc"),d=e("./_hide"),p=e("./_redefine-all"),h=e("./_to-integer"),y=e("./_to-length"),m=e("./_to-index"),v=e("./_to-absolute-index"),_=e("./_to-primitive"),g=e("./_has"),b=e("./_classof"),w=e("./_is-object"),x=e("./_to-object"),j=e("./_is-array-iter"),k=e("./_object-create"),E=e("./_object-gpo"),S=e("./_object-gopn").f,D=e("./core.get-iterator-method"),C=e("./_uid"),O=e("./_wks"),P=e("./_array-methods"),M=e("./_array-includes"),B=e("./_species-constructor"),A=e("./es6.array.iterator"),T=e("./_iterators"),I=e("./_iter-detect"),L=e("./_set-species"),K=e("./_array-fill"),R=e("./_array-copy-within"),F=e("./_object-dp"),N=e("./_object-gopd"),U=F.f,z=N.f,H=o.RangeError,W=o.TypeError,V=o.Uint8Array,q="ArrayBuffer",G="Shared"+q,Y="BYTES_PER_ELEMENT",X="prototype",$=Array[X],J=c.ArrayBuffer,Q=c.DataView,Z=P(0),ee=P(2),te=P(3),ne=P(4),re=P(5),oe=P(6),ie=M(!0),se=M(!1),ae=A.values,ce=A.keys,le=A.entries,ue=$.lastIndexOf,fe=$.reduce,de=$.reduceRight,pe=$.join,he=$.sort,ye=$.slice,me=$.toString,ve=$.toLocaleString,_e=O("iterator"),ge=O("toStringTag"),be=C("typed_constructor"),we=C("def_constructor"),xe=a.CONSTR,je=a.TYPED,ke=a.VIEW,Ee="Wrong length!",Se=P(1,(function(e,t){return Me(B(e,e[we]),t)})),De=i((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),Ce=!!V&&!!V[X].set&&i((function(){new V(1).set({})})),Oe=function(e,t){var n=h(e);if(n<0||n%t)throw H("Wrong offset!");return n},Pe=function(e){if(w(e)&&je in e)return e;throw W(e+" is not a typed array!")},Me=function(e,t){if(!w(e)||!(be in e))throw W("It is not a typed array constructor!");return new e(t)},Be=function(e,t){return Ae(B(e,e[we]),t)},Ae=function(e,t){for(var n=0,r=t.length,o=Me(e,r);n<r;)o[n]=t[n++];return o},Te=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Ie=function(e,t,n){var r,o,i,s,a,c,u=x(e),f=arguments.length,d=1<f?t:void 0,p=void 0!==d,h=D(u);if(null!=h&&!j(h)){for(c=h.call(u),i=[],r=0;!(a=c.next()).done;r++)i.push(a.value);u=i}for(p&&2<f&&(d=l(d,n,2)),r=0,o=y(u.length),s=Me(this,o);r<o;r++)s[r]=p?d(u[r],r):u[r];return s},Le=function(){for(var e=0,t=arguments.length,n=Me(this,t);e<t;)n[e]=arguments[e++];return n},Ke=!!V&&i((function(){ve.call(new V(1))})),Re=function(){return ve.apply(Ke?ye.call(Pe(this)):Pe(this),arguments)},Fe={copyWithin:function(e,t,n){return R.call(Pe(this),e,t,2<arguments.length?n:void 0)},every:function(e,t){return ne(Pe(this),e,1<arguments.length?t:void 0)},fill:function(e){return K.apply(Pe(this),arguments)},filter:function(e,t){return Be(this,ee(Pe(this),e,1<arguments.length?t:void 0))},find:function(e,t){return re(Pe(this),e,1<arguments.length?t:void 0)},findIndex:function(e,t){return oe(Pe(this),e,1<arguments.length?t:void 0)},forEach:function(e,t){Z(Pe(this),e,1<arguments.length?t:void 0)},indexOf:function(e,t){return se(Pe(this),e,1<arguments.length?t:void 0)},includes:function(e,t){return ie(Pe(this),e,1<arguments.length?t:void 0)},join:function(e){return pe.apply(Pe(this),arguments)},lastIndexOf:function(e){return ue.apply(Pe(this),arguments)},map:function(e,t){return Se(Pe(this),e,1<arguments.length?t:void 0)},reduce:function(e){return fe.apply(Pe(this),arguments)},reduceRight:function(e){return de.apply(Pe(this),arguments)},reverse:function(){for(var e,t=this,n=Pe(t).length,r=Math.floor(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t},some:function(e,t){return te(Pe(this),e,1<arguments.length?t:void 0)},sort:function(e){return he.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),r=n.length,o=v(e,r);return new(B(n,n[we]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,y((void 0===t?r:v(t,r))-o))}},Ne=function(e,t){return Be(this,ye.call(Pe(this),e,t))},Ue=function(e,t){Pe(this);var n=Oe(t,1),r=this.length,o=x(e),i=y(o.length),s=0;if(r<i+n)throw H(Ee);for(;s<i;)this[n+s]=o[s++]},ze={entries:function(){return le.call(Pe(this))},keys:function(){return ce.call(Pe(this))},values:function(){return ae.call(Pe(this))}},He=function(e,t){return w(e)&&e[je]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},We=function(e,t){return He(e,t=_(t,!0))?f(2,e[t]):z(e,t)},Ve=function(e,t,n){return!(He(e,t=_(t,!0))&&w(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};xe||(N.f=We,F.f=Ve),s(s.S+s.F*!xe,"Object",{getOwnPropertyDescriptor:We,defineProperty:Ve}),i((function(){me.call({})}))&&(me=ve=function(){return pe.call(this)});var qe=p({},Fe);p(qe,ze),d(qe,_e,ze.values),p(qe,{slice:Ne,set:Ue,constructor:function(){},toString:me,toLocaleString:Re}),Te(qe,"buffer","b"),Te(qe,"byteOffset","o"),Te(qe,"byteLength","l"),Te(qe,"length","e"),U(qe,ge,{get:function(){return this[je]}}),t.exports=function(e,t,n,c){function l(e,n){U(e,n,{get:function(){return e=n,(r=this._d).v[p](e*t+r.o,De);var e,r},set:function(e){return r=n,o=e,i=this._d,c&&(o=(o=Math.round(o))<0?0:255<o?255:255&o),void i.v[h](r*t+i.o,o,De);var r,o,i},enumerable:!0})}var f=e+((c=!!c)?"Clamped":"")+"Array",p="get"+e,h="set"+e,v=o[f],_=v||{},g=v&&E(v),x=!v||!a.ABV,j={},D=v&&v[X];x?(v=n((function(e,n,r,o){u(e,v,f,"_d");var i,s,a,c,p=0,h=0;if(w(n)){if(!(n instanceof J||(c=b(n))==q||c==G))return je in n?Ae(v,n):Ie.call(v,n);i=n,h=Oe(r,t);var _=n.byteLength;if(void 0===o){if(_%t)throw H(Ee);if((s=_-h)<0)throw H(Ee)}else if(_<(s=y(o)*t)+h)throw H(Ee);a=s/t}else a=m(n),i=new J(s=a*t);for(d(e,"_d",{b:i,o:h,l:s,e:a,v:new Q(i)});p<a;)l(e,p++)})),D=v[X]=k(qe),d(D,"constructor",v)):i((function(){v(1)}))&&i((function(){new v(-1)}))&&I((function(e){new v,new v(null),new v(1.5),new v(e)}),!0)||(v=n((function(e,n,r,o){var i;return u(e,v,f),w(n)?n instanceof J||(i=b(n))==q||i==G?void 0!==o?new _(n,Oe(r,t),o):void 0!==r?new _(n,Oe(r,t)):new _(n):je in n?Ae(v,n):Ie.call(v,n):new _(m(n))})),Z(g!==Function.prototype?S(_).concat(S(g)):S(_),(function(e){e in v||d(v,e,_[e])})),v[X]=D,r||(D.constructor=v));var C=D[_e],O=!!C&&("values"==C.name||null==C.name),P=ze.values;d(v,be,!0),d(D,je,f),d(D,ke,!0),d(D,we,v),(c?new v(1)[ge]==f:ge in D)||U(D,ge,{get:function(){return f}}),j[f]=v,s(s.G+s.W+s.F*(v!=_),j),s(s.S,f,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*i((function(){_.of.call(v,1)})),f,{from:Ie,of:Le}),Y in D||d(D,Y,t),s(s.P,f,Fe),L(f),s(s.P+s.F*Ce,f,{set:Ue}),s(s.P+s.F*!O,f,ze),r||D.toString==me||(D.toString=me),s(s.P+s.F*i((function(){new v(1).slice()})),f,{slice:Ne}),s(s.P+s.F*(i((function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()}))||!i((function(){D.toLocaleString.call([1,2])}))),f,{toLocaleString:Re}),T[f]=O?C:P,r||O||d(D,_e,P)}}else t.exports=function(){}},{"./_an-instance":6,"./_array-copy-within":8,"./_array-fill":9,"./_array-includes":10,"./_array-methods":11,"./_classof":15,"./_ctx":19,"./_descriptors":21,"./_export":25,"./_fails":26,"./_global":31,"./_has":32,"./_hide":33,"./_is-array-iter":39,"./_is-object":41,"./_iter-detect":45,"./_iterators":47,"./_library":48,"./_object-create":52,"./_object-dp":53,"./_object-gopd":55,"./_object-gopn":57,"./_object-gpo":59,"./_property-desc":68,"./_redefine-all":69,"./_set-species":74,"./_species-constructor":78,"./_to-absolute-index":84,"./_to-index":85,"./_to-integer":86,"./_to-length":88,"./_to-object":89,"./_to-primitive":90,"./_typed":93,"./_typed-buffer":92,"./_uid":94,"./_wks":98,"./core.get-iterator-method":99,"./es6.array.iterator":106}],92:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_descriptors"),i=e("./_library"),s=e("./_typed"),a=e("./_hide"),c=e("./_redefine-all"),l=e("./_fails"),u=e("./_an-instance"),f=e("./_to-integer"),d=e("./_to-length"),p=e("./_to-index"),h=e("./_object-gopn").f,y=e("./_object-dp").f,m=e("./_array-fill"),v=e("./_set-to-string-tag"),_="ArrayBuffer",g="DataView",b="prototype",w="Wrong index!",x=r[_],j=r[g],k=r.Math,E=r.RangeError,S=r.Infinity,D=x,C=k.abs,O=k.pow,P=k.floor,M=k.log,B=k.LN2,A="byteLength",T="byteOffset",I=o?"_b":"buffer",L=o?"_l":A,K=o?"_o":T;function R(e,t,n){var r,o,i,s=new Array(n),a=8*n-t-1,c=(1<<a)-1,l=c>>1,u=23===t?O(2,-24)-O(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=C(e))!=e||e===S?(o=e!=e?1:0,r=c):(r=P(M(e)/B),e*(i=O(2,-r))<1&&(r--,i*=2),2<=(e+=1<=r+l?u/i:u*O(2,1-l))*i&&(r++,i/=2),c<=r+l?(o=0,r=c):1<=r+l?(o=(e*i-1)*O(2,t),r+=l):(o=e*O(2,l-1)*O(2,t),r=0));8<=t;s[f++]=255&o,o/=256,t-=8);for(r=r<<t|o,a+=t;0<a;s[f++]=255&r,r/=256,a-=8);return s[--f]|=128*d,s}function F(e,t,n){var r,o=8*n-t-1,i=(1<<o)-1,s=i>>1,a=o-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;0<a;u=256*u+e[c],c--,a-=8);for(r=u&(1<<-a)-1,u>>=-a,a+=t;0<a;r=256*r+e[c],c--,a-=8);if(0===u)u=1-s;else{if(u===i)return r?NaN:l?-S:S;r+=O(2,t),u-=s}return(l?-1:1)*r*O(2,u-t)}function N(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function U(e){return[255&e]}function z(e){return[255&e,e>>8&255]}function H(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function W(e){return R(e,52,8)}function V(e){return R(e,23,4)}function q(e,t,n){y(e[b],t,{get:function(){return this[n]}})}function G(e,t,n,r){var o=p(+n);if(o+t>e[L])throw E(w);var i=e[I]._b,s=o+e[K],a=i.slice(s,s+t);return r?a:a.reverse()}function Y(e,t,n,r,o,i){var s=p(+n);if(s+t>e[L])throw E(w);for(var a=e[I]._b,c=s+e[K],l=r(+o),u=0;u<t;u++)a[c+u]=l[i?u:t-u-1]}if(s.ABV){if(!l((function(){x(1)}))||!l((function(){new x(-1)}))||l((function(){return new x,new x(1.5),new x(NaN),x.name!=_}))){for(var X,$=(x=function(e){return u(this,x),new D(p(e))})[b]=D[b],J=h(D),Q=0;J.length>Q;)(X=J[Q++])in x||a(x,X,D[X]);i||($.constructor=x)}var Z=new j(new x(2)),ee=j[b].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||c(j[b],{setInt8:function(e,t){ee.call(this,e,t<<24>>24)},setUint8:function(e,t){ee.call(this,e,t<<24>>24)}},!0)}else x=function(e){u(this,x,_);var t=p(e);this._b=m.call(new Array(t),0),this[L]=t},j=function(e,t,n){u(this,j,g),u(e,x,g);var r=e[L],o=f(t);if(o<0||r<o)throw E("Wrong offset!");if(r<o+(n=void 0===n?r-o:d(n)))throw E("Wrong length!");this[I]=e,this[K]=o,this[L]=n},o&&(q(x,A,"_l"),q(j,"buffer","_b"),q(j,A,"_l"),q(j,T,"_o")),c(j[b],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e,t){var n=G(this,2,e,t);return(n[1]<<8|n[0])<<16>>16},getUint16:function(e,t){var n=G(this,2,e,t);return n[1]<<8|n[0]},getInt32:function(e,t){return N(G(this,4,e,t))},getUint32:function(e,t){return N(G(this,4,e,t))>>>0},getFloat32:function(e,t){return F(G(this,4,e,t),23,4)},getFloat64:function(e,t){return F(G(this,8,e,t),52,8)},setInt8:function(e,t){Y(this,1,e,U,t)},setUint8:function(e,t){Y(this,1,e,U,t)},setInt16:function(e,t,n){Y(this,2,e,z,t,n)},setUint16:function(e,t,n){Y(this,2,e,z,t,n)},setInt32:function(e,t,n){Y(this,4,e,H,t,n)},setUint32:function(e,t,n){Y(this,4,e,H,t,n)},setFloat32:function(e,t,n){Y(this,4,e,V,t,n)},setFloat64:function(e,t,n){Y(this,8,e,W,t,n)}});v(x,_),v(j,g),a(j[b],s.VIEW,!0),n[_]=x,n[g]=j},{"./_an-instance":6,"./_array-fill":9,"./_descriptors":21,"./_fails":26,"./_global":31,"./_hide":33,"./_library":48,"./_object-dp":53,"./_object-gopn":57,"./_redefine-all":69,"./_set-to-string-tag":75,"./_to-index":85,"./_to-integer":86,"./_to-length":88,"./_typed":93}],93:[function(e,t,n){for(var r,o=e("./_global"),i=e("./_hide"),s=e("./_uid"),a=s("typed_array"),c=s("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[d[f++]])?(i(r.prototype,a,!0),i(r.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:a,VIEW:c}},{"./_global":31,"./_hide":33,"./_uid":94}],94:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+o).toString(36))}},{}],95:[function(e,t,n){var r=e("./_global").navigator;t.exports=r&&r.userAgent||""},{"./_global":31}],96:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_library"),s=e("./_wks-ext"),a=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=!i&&r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},{"./_core":17,"./_global":31,"./_library":48,"./_object-dp":53,"./_wks-ext":97}],97:[function(e,t,n){n.f=e("./_wks")},{"./_wks":98}],98:[function(e,t,n){var r=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,s="function"==typeof i;(t.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},{"./_global":31,"./_shared":77,"./_uid":94}],99:[function(e,t,n){var r=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},{"./_classof":15,"./_core":17,"./_iterators":47,"./_wks":98}],100:[function(e,t,n){var r=e("./_export");r(r.P,"Array",{fill:e("./_array-fill")}),e("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":4,"./_array-fill":9,"./_export":25}],101:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_array-methods")(2);r(r.P+r.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(e,t){return o(this,e,t)}})},{"./_array-methods":11,"./_export":25,"./_strict-method":79}],102:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_array-methods")(0),i=e("./_strict-method")([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(e,t){return o(this,e,t)}})},{"./_array-methods":11,"./_export":25,"./_strict-method":79}],103:[function(e,t,n){"use strict";var r=e("./_ctx"),o=e("./_export"),i=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");o(o.S+o.F*!e("./_iter-detect")((function(e){Array.from(e)})),"Array",{from:function(e,t,n){var o,f,d,p,h=i(e),y="function"==typeof this?this:Array,m=arguments.length,v=1<m?t:void 0,_=void 0!==v,g=0,b=u(h);if(_&&(v=r(v,2<m?n:void 0,2)),null==b||y==Array&&a(b))for(f=new y(o=c(h.length));g<o;g++)l(f,g,_?v(h[g],g):h[g]);else for(p=b.call(h),f=new y;!(d=p.next()).done;g++)l(f,g,_?s(p,v,[d.value,g],!0):d.value);return f.length=g,f}})},{"./_create-property":18,"./_ctx":19,"./_export":25,"./_is-array-iter":39,"./_iter-call":42,"./_iter-detect":45,"./_to-length":88,"./_to-object":89,"./core.get-iterator-method":99}],104:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_array-includes")(!1),i=[].indexOf,s=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!e("./_strict-method")(i)),"Array",{indexOf:function(e,t){return s?i.apply(this,arguments)||0:o(this,e,t)}})},{"./_array-includes":10,"./_export":25,"./_strict-method":79}],105:[function(e,t,n){var r=e("./_export");r(r.S,"Array",{isArray:e("./_is-array")})},{"./_export":25,"./_is-array":40}],106:[function(e,t,n){"use strict";var r=e("./_add-to-unscopables"),o=e("./_iter-step"),i=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,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":4,"./_iter-define":44,"./_iter-step":46,"./_iterators":47,"./_to-iobject":87}],107:[function(e,t,n){var r=e("./_export");r(r.S,"Date",{now:function(){return(new Date).getTime()}})},{"./_export":25}],108:[function(e,t,n){var r=Date.prototype,o="Invalid Date",i="toString",s=r[i],a=r.getTime;new Date(NaN)+""!=o&&e("./_redefine")(r,i,(function(){var e=a.call(this);return e==e?s.call(this):o}))},{"./_redefine":70}],109:[function(e,t,n){var r=e("./_export");r(r.P,"Function",{bind:e("./_bind")})},{"./_bind":14,"./_export":25}],110:[function(e,t,n){var r=e("./_object-dp").f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e("./_descriptors")&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},{"./_descriptors":21,"./_object-dp":53}],111:[function(e,t,n){"use strict";function r(e){var t=c(e,!1);if("string"==typeof t&&2<t.length){var n,r,o,i=(t=g?t.trim():p(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var s,a=t.slice(2),l=0,u=a.length;l<u;l++)if((s=a.charCodeAt(l))<48||o<s)return NaN;return parseInt(a,r)}}return+t}var o=e("./_global"),i=e("./_has"),s=e("./_cof"),a=e("./_inherit-if-required"),c=e("./_to-primitive"),l=e("./_fails"),u=e("./_object-gopn").f,f=e("./_object-gopd").f,d=e("./_object-dp").f,p=e("./_string-trim").trim,h="Number",y=o[h],m=y,v=y.prototype,_=s(e("./_object-create")(v))==h,g="trim"in String.prototype;if(!y(" 0o1")||!y("0b1")||y("+0x1")){y=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof y&&(_?l((function(){v.valueOf.call(n)})):s(n)!=h)?a(new m(r(t)),n,y):r(t)};for(var b,w=e("./_descriptors")?u(m):"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;w.length>x;x++)i(m,b=w[x])&&!i(y,b)&&d(y,b,f(m,b));(y.prototype=v).constructor=y,e("./_redefine")(o,h,y)}},{"./_cof":16,"./_descriptors":21,"./_fails":26,"./_global":31,"./_has":32,"./_inherit-if-required":36,"./_object-create":52,"./_object-dp":53,"./_object-gopd":55,"./_object-gopn":57,"./_redefine":70,"./_string-trim":81,"./_to-primitive":90}],112:[function(e,t,n){var r=e("./_export"),o=e("./_parse-int");r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},{"./_export":25,"./_parse-int":65}],113:[function(e,t,n){var r=e("./_export");r(r.S+r.F*!e("./_descriptors"),"Object",{defineProperties:e("./_object-dps")})},{"./_descriptors":21,"./_export":25,"./_object-dps":54}],114:[function(e,t,n){var r=e("./_export");r(r.S+r.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":21,"./_export":25,"./_object-dp":53}],115:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-keys");e("./_object-sap")("keys",(function(){return function(e){return o(r(e))}}))},{"./_object-keys":61,"./_object-sap":63,"./_to-object":89}],116:[function(e,t,n){"use strict";var r=e("./_classof"),o={};o[e("./_wks")("toStringTag")]="z",o+""!="[object z]"&&e("./_redefine")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},{"./_classof":15,"./_redefine":70,"./_wks":98}],117:[function(e,t,n){"use strict";function r(){}function o(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t}function i(e,t){if(!e._n){e._n=!0;var n=e._c;x((function(){for(var r=e._v,i=1==e._s,s=0,a=function(t){var n,s,a,c=i?t.ok:t.fail,l=t.resolve,u=t.reject,f=t.domain;try{c?(i||(2==e._h&&R(e),e._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),a=!0)),n===t.promise?u(C("Promise-chain cycle")):(s=o(n))?s.call(n,l,u):l(n)):u(r)}catch(t){f&&!a&&f.exit(),u(t)}};n.length>s;)a(n[s++]);e._c=[],e._n=!1,t&&!e._h&&L(e)}))}}function s(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()),i(t,!0))}var a,c,l,u,f=e("./_library"),d=e("./_global"),p=e("./_ctx"),h=e("./_classof"),y=e("./_export"),m=e("./_is-object"),v=e("./_a-function"),_=e("./_an-instance"),g=e("./_for-of"),b=e("./_species-constructor"),w=e("./_task").set,x=e("./_microtask")(),j=e("./_new-promise-capability"),k=e("./_perform"),E=e("./_user-agent"),S=e("./_promise-resolve"),D="Promise",C=d.TypeError,O=d.process,P=O&&O.versions,M=P&&P.v8||"",B=d[D],A="process"==h(O),T=c=j.f,I=!!function(){try{var t=B.resolve(1),n=(t.constructor={})[e("./_wks")("species")]=function(e){e(r,r)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(r)instanceof n&&0!==M.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(t){}}(),L=function(e){w.call(d,(function(){var t,n,r,o=e._v,i=K(e);if(i&&(t=k((function(){A?O.emit("unhandledRejection",o,e):(n=d.onunhandledrejection)?n({promise:e,reason:o}):(r=d.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=A||K(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},K=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){w.call(d,(function(){var t;A?O.emit("rejectionHandled",e):(t=d.onrejectionhandled)&&t({promise:e,reason:e._v})}))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw C("Promise can't be resolved itself");(t=o(e))?x((function(){var r={_w:n,_d:!1};try{t.call(e,p(F,r,1),p(s,r,1))}catch(e){s.call(r,e)}})):(n._v=e,n._s=1,i(n,!1))}catch(e){s.call({_w:n,_d:!1},e)}}};I||(B=function(e){_(this,B,D,"_h"),v(e),a.call(this);try{e(p(F,this,1),p(s,this,1))}catch(e){s.call(this,e)}},(a=function(){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")(B.prototype,{then:function(e,t){var n=T(b(this,B));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&i(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),l=function(){var e=new a;this.promise=e,this.resolve=p(F,e,1),this.reject=p(s,e,1)},j.f=T=function(e){return e===B||e===u?new l:c(e)}),y(y.G+y.W+y.F*!I,{Promise:B}),e("./_set-to-string-tag")(B,D),e("./_set-species")(D),u=e("./_core")[D],y(y.S+y.F*!I,D,{reject:function(e){var t=T(this);return(0,t.reject)(e),t.promise}}),y(y.S+y.F*(f||!I),D,{resolve:function(e){return S(f&&this===u?B:this,e)}}),y(y.S+y.F*!(I&&e("./_iter-detect")((function(e){B.all(e).catch(r)}))),D,{all:function(e){var t=this,n=T(t),r=n.resolve,o=n.reject,i=k((function(){var n=[],i=0,s=1;g(e,!1,(function(e){var a=i++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),o)})),--s||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=T(t),r=n.reject,o=k((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},{"./_a-function":3,"./_an-instance":6,"./_classof":15,"./_core":17,"./_ctx":19,"./_export":25,"./_for-of":29,"./_global":31,"./_is-object":41,"./_iter-detect":45,"./_library":48,"./_microtask":50,"./_new-promise-capability":51,"./_perform":66,"./_promise-resolve":67,"./_redefine-all":69,"./_set-species":74,"./_set-to-string-tag":75,"./_species-constructor":78,"./_task":83,"./_user-agent":95,"./_wks":98}],118:[function(e,t,n){"use strict";var r=e("./_regexp-exec");e("./_export")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},{"./_export":25,"./_regexp-exec":72}],119:[function(e,t,n){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":21,"./_flags":28,"./_object-dp":53}],120:[function(e,t,n){"use strict";var r=e("./_an-object"),o=e("./_to-length"),i=e("./_advance-string-index"),s=e("./_regexp-exec-abstract");e("./_fix-re-wks")("match",1,(function(e,t,n,a){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var c=r(e),l=String(this);if(!c.global)return s(c,l);for(var u,f=c.unicode,d=[],p=c.lastIndex=0;null!==(u=s(c,l));){var h=String(u[0]);""===(d[p]=h)&&(c.lastIndex=i(l,o(c.lastIndex),f)),p++}return 0===p?null:d}]}))},{"./_advance-string-index":5,"./_an-object":7,"./_fix-re-wks":27,"./_regexp-exec-abstract":71,"./_to-length":88}],121:[function(e,t,n){"use strict";function r(t){e("./_redefine")(RegExp.prototype,a,t,!0)}e("./es6.regexp.flags");var o=e("./_an-object"),i=e("./_flags"),s=e("./_descriptors"),a="toString",c=/./[a];e("./_fails")((function(){return"/a/b"!=c.call({source:"a",flags:"b"})}))?r((function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!s&&e instanceof RegExp?i.call(e):void 0)})):c.name!=a&&r((function(){return c.call(this)}))},{"./_an-object":7,"./_descriptors":21,"./_fails":26,"./_flags":28,"./_redefine":70,"./es6.regexp.flags":119}],122:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},{"./_iter-define":44,"./_string-at":80}],123:[function(e,t,n){"use strict";function r(e){var t=G[e]=P(F[z]);return t._k=e,t}function o(e,t){k(e);for(var n,r=x(t=D(t)),o=0,i=r.length;o<i;)te(e,n=r[o++],t[n]);return e}function i(e){var t=V.call(this,e=C(e,!0));return!(this===X&&u(G,e)&&!u(Y,e))&&(!(t||!u(this,e)||!u(G,e)||u(this,H)&&this[H][e])||t)}function s(e,t){if(e=D(e),t=C(t,!0),e!==X||!u(G,t)||u(Y,t)){var n=L(e,t);return!n||!u(G,t)||u(e,H)&&e[H][t]||(n.enumerable=!0),n}}function a(e){for(var t,n=R(D(e)),r=[],o=0;n.length>o;)u(G,t=n[o++])||t==H||t==h||r.push(t);return r}function c(e){for(var t,n=e===X,r=R(n?Y:D(e)),o=[],i=0;r.length>i;)!u(G,t=r[i++])||n&&!u(X,t)||o.push(G[t]);return o}var l=e("./_global"),u=e("./_has"),f=e("./_descriptors"),d=e("./_export"),p=e("./_redefine"),h=e("./_meta").KEY,y=e("./_fails"),m=e("./_shared"),v=e("./_set-to-string-tag"),_=e("./_uid"),g=e("./_wks"),b=e("./_wks-ext"),w=e("./_wks-define"),x=e("./_enum-keys"),j=e("./_is-array"),k=e("./_an-object"),E=e("./_is-object"),S=e("./_to-object"),D=e("./_to-iobject"),C=e("./_to-primitive"),O=e("./_property-desc"),P=e("./_object-create"),M=e("./_object-gopn-ext"),B=e("./_object-gopd"),A=e("./_object-gops"),T=e("./_object-dp"),I=e("./_object-keys"),L=B.f,K=T.f,R=M.f,F=l.Symbol,N=l.JSON,U=N&&N.stringify,z="prototype",H=g("_hidden"),W=g("toPrimitive"),V={}.propertyIsEnumerable,q=m("symbol-registry"),G=m("symbols"),Y=m("op-symbols"),X=Object[z],$="function"==typeof F&&!!A.f,J=l.QObject,Q=!J||!J[z]||!J[z].findChild,Z=f&&y((function(){return 7!=P(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=L(X,t);r&&delete X[t],K(e,t,n),r&&e!==X&&K(X,t,r)}:K,ee=$&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof F},te=function(e,t,n){return e===X&&te(Y,t,n),k(e),t=C(t,!0),k(n),u(G,t)?(n.enumerable?(u(e,H)&&e[H][t]&&(e[H][t]=!1),n=P(n,{enumerable:O(0,!1)})):(u(e,H)||K(e,H,O(1,{})),e[H][t]=!0),Z(e,t,n)):K(e,t,n)};$||(p((F=function(e){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=_(0<arguments.length?e:void 0),n=function(e){this===X&&n.call(Y,e),u(this,H)&&u(this[H],t)&&(this[H][t]=!1),Z(this,t,O(1,e))};return f&&Q&&Z(X,t,{configurable:!0,set:n}),r(t)})[z],"toString",(function(){return this._k})),B.f=s,T.f=te,e("./_object-gopn").f=M.f=a,e("./_object-pie").f=i,A.f=c,f&&!e("./_library")&&p(X,"propertyIsEnumerable",i,!0),b.f=function(e){return r(g(e))}),d(d.G+d.W+d.F*!$,{Symbol:F});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)g(ne[re++]);for(var oe=I(g.store),ie=0;oe.length>ie;)w(oe[ie++]);d(d.S+d.F*!$,"Symbol",{for:function(e){return u(q,e+="")?q[e]:q[e]=F(e)},keyFor:function(e){if(!ee(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),d(d.S+d.F*!$,"Object",{create:function(e,t){return void 0===t?P(e):o(P(e),t)},defineProperty:te,defineProperties:o,getOwnPropertyDescriptor:s,getOwnPropertyNames:a,getOwnPropertySymbols:c});var se=y((function(){A.f(1)}));d(d.S+d.F*se,"Object",{getOwnPropertySymbols:function(e){return A.f(S(e))}}),N&&d(d.S+d.F*(!$||y((function(){var e=F();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;o<arguments.length;)r.push(arguments[o++]);if(n=t=r[1],(E(t)||void 0!==e)&&!ee(e))return j(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ee(t))return t}),r[1]=t,U.apply(N,r)}}),F[z][W]||e("./_hide")(F[z],W,F[z].valueOf),v(F,"Symbol"),v(Math,"Math",!0),v(l.JSON,"JSON",!0)},{"./_an-object":7,"./_descriptors":21,"./_enum-keys":24,"./_export":25,"./_fails":26,"./_global":31,"./_has":32,"./_hide":33,"./_is-array":40,"./_is-object":41,"./_library":48,"./_meta":49,"./_object-create":52,"./_object-dp":53,"./_object-gopd":55,"./_object-gopn":57,"./_object-gopn-ext":56,"./_object-gops":58,"./_object-keys":61,"./_object-pie":62,"./_property-desc":68,"./_redefine":70,"./_set-to-string-tag":75,"./_shared":77,"./_to-iobject":87,"./_to-object":89,"./_to-primitive":90,"./_uid":94,"./_wks":98,"./_wks-define":96,"./_wks-ext":97}],124:[function(e,t,n){e("./_typed-array")("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},{"./_typed-array":91}],125:[function(e,t,n){e("./_typed-array")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},{"./_typed-array":91}],126:[function(e,t,n){e("./_typed-array")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},{"./_typed-array":91}],127:[function(e,t,n){var r=e("./_export"),o=e("./_own-keys"),i=e("./_to-iobject"),s=e("./_object-gopd"),a=e("./_create-property");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),c=s.f,l=o(r),u={},f=0;l.length>f;)void 0!==(n=c(r,t=l[f++]))&&a(u,t,n);return u}})},{"./_create-property":18,"./_export":25,"./_object-gopd":55,"./_own-keys":64,"./_to-iobject":87}],128:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":96}],129:[function(e,t,n){for(var r=e("./es6.array.iterator"),o=e("./_object-keys"),i=e("./_redefine"),s=e("./_global"),a=e("./_hide"),c=e("./_iterators"),l=e("./_wks"),u=l("iterator"),f=l("toStringTag"),d=c.Array,p={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},h=o(p),y=0;y<h.length;y++){var m,v=h[y],_=p[v],g=s[v],b=g&&g.prototype;if(b&&(b[u]||a(b,u,d),b[f]||a(b,f,v),c[v]=d,_))for(m in r)b[m]||i(b,m,r[m],!0)}},{"./_global":31,"./_hide":33,"./_iterators":47,"./_object-keys":61,"./_redefine":70,"./_wks":98,"./es6.array.iterator":106}],130:[function(e,t,n){"use strict";var r=t.exports={};r.isIE=function(e){return!(-1===(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===t.indexOf("trident")&&-1===t.indexOf(" edge/")||e&&e!==function(){for(var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:void 0}());var t},r.isLegacyOpera=function(){return!!window.opera}},{}],131:[function(e,t,n){"use strict";(t.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},{}],132:[function(e,t,n){"use strict";var r=e("../browser-detector");t.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function i(e){return o(e).object}return{makeDetectable:function(i,s,a){var c,l,u,f,d,p,h,y,m;function v(){function e(){if("static"===h.position){c.style.setProperty("position","relative",i.important?"important":"");var e=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==o.replace(/[^-\d\.]/g,"")&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style.setProperty(r,"0",i.important?"important":""))};e(t,c,h,"top"),e(t,c,h,"right"),e(t,c,h,"bottom"),e(t,c,h,"left")}}""!==h.position&&(e(),p=!0);var n=document.createElement("object");n.style.cssText=d,n.tabIndex=-1,n.type="text/html",n.setAttribute("aria-hidden","true"),n.onload=function(){p||e(),function e(t,n){if(!t.contentDocument){var r=o(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(){l(c)}))},r.isIE()||(n.data="about:blank"),o(c)&&(c.appendChild(n),o(c).object=n,r.isIE()&&(n.data="about:blank"))}a||(a=s,s=i,i=null),i=i||{},r.isIE(8)?a(s):(c=s,l=a,u=["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"],f=e.important?" !important; ":"; ",d=(u.join(f)+f).trim(),p=!1,h=window.getComputedStyle(c),y=c.offsetWidth,m=c.offsetHeight,o(c).startSize={width:y,height:m},n?n.add(v):v())},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))o(e).object={proxy:n},e.attachEvent("onresize",n);else{var s=i(e);if(!s)throw new Error("Element is not detectable by this strategy.");s.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(o(e)){var t=i(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),o(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(e).checkForObjectDocumentTimeoutId),delete o(e).object)}}}}},{"../browser-detector":130}],133:[function(e,t,n){"use strict";var r=e("../collection-utils").forEach;t.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState,i=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var s=function(){var e=document.createElement("div");e.style.cssText=l(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=l(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,r=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:r}}(),a="erd_scroll_detection_container";function c(e){!function(e,t,n){if(!e.getElementById(t)){var r=n+"_animation",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+l(["display: none"])+" }\n\n",o+=".erd_scroll_detection_container_animation_active { "+l(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",o+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");o.innerHTML=n,o.id=t,r(o)}(o+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",a)}function l(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function f(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return c(window.document),{makeDetectable:function(e,c,f){function h(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(c),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function y(e){var t=o(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function m(){var e=window.getComputedStyle(c),t={};return t.position=e.position,t.width=c.offsetWidth,t.height=c.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(h("storeStyle invoked."),o(c)){var e=m();o(c).style=e}else h("Aborting because element has been uninstalled")}function _(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function g(){return 2*s.width+1}function b(){return 2*s.height+1}function w(e){return e+10+g()}function x(e){return e+10+b()}function j(e,t,n){var r=d(e),o=p(e),i=w(t),s=x(n),a=2*t+g(),c=2*n+b();r.scrollLeft=i,r.scrollTop=s,o.scrollLeft=a,o.scrollTop=c}function k(){var e=o(c).container;if(!e){(e=document.createElement("div")).className=a,e.style.cssText=l(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(c).container=e,e.className+=" "+a+"_animation_active",c.appendChild(e);var t=function(){o(c).onRendered&&o(c).onRendered()};u(e,"animationstart",t),o(c).onAnimationStart=t}return e}function E(){if(h("Injecting elements"),o(c)){!function(){var n=o(c).style;if("static"===n.position){c.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==o.replace(/[^-\d\.]/g,"")&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,c,n,"top"),r(t,c,n,"right"),r(t,c,n,"bottom"),r(t,c,n,"left")}}();var n=o(c).container;n=n||k();var r,i,f,d,p=s.width,y=s.height,m=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+p))?r+"px":"0"),"top: "+(i=(i=-(1+y))?i+"px":"0"),"right: "+(d=(d=-p)?d+"px":"0"),"bottom: "+(f=(f=-y)?f+"px":"0")])),_=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),g=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=l(["position: absolute","left: 0","top: 0"]),w=l(["position: absolute","width: 200%","height: 200%"]),x=document.createElement("div"),j=document.createElement("div"),E=document.createElement("div"),S=document.createElement("div"),D=document.createElement("div"),C=document.createElement("div");x.dir="ltr",x.style.cssText=m,x.className=a,j.className=a,j.style.cssText=v,E.style.cssText=_,S.style.cssText=b,D.style.cssText=g,C.style.cssText=w,E.appendChild(S),D.appendChild(C),j.appendChild(E),j.appendChild(D),x.appendChild(j),n.appendChild(x),u(E,"scroll",O),u(D,"scroll",P),o(c).onExpandScroll=O,o(c).onShrinkScroll=P}else h("Aborting because element has been uninstalled");function O(){o(c).onExpand&&o(c).onExpand()}function P(){o(c).onShrink&&o(c).onShrink()}}function S(){function s(t,n,r){var o=d(t).childNodes[0],i=w(n),s=x(r);o.style.setProperty("width",i+"px",e.important?"important":""),o.style.setProperty("height",s+"px",e.important?"important":"")}function a(r){var a=c.offsetWidth,u=c.offsetHeight,f=a!==o(c).lastWidth||u!==o(c).lastHeight;h("Storing current size",a,u),_(c,a,u),n.add(0,(function(){if(f)if(o(c))if(l()){if(e.debug){var n=c.offsetWidth,r=c.offsetHeight;n===a&&r===u||t.warn(i.get(c),"Scroll: Size changed before updating detector elements.")}s(c,a,u)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){o(c)?l()?j(c,a,u):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),f&&r&&n.add(2,(function(){o(c)?l()?r():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function l(){return o(c).container}function u(){h("notifyListenersIfNeeded invoked");var e=o(c);return void 0===o(c).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(o(c).listeners,(function(e){e(c)})))}function f(){h("Scroll detected."),y(c)?h("Scroll event fired while unrendered. Ignoring..."):a(u)}if(h("registerListenersAndPositionElements invoked."),o(c)){o(c).onRendered=function(){if(h("startanimation triggered."),y(c))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=d(c),t=p(c);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),a(u))}},o(c).onExpand=f,o(c).onShrink=f;var m=o(c).style;s(c,m.width,m.height)}else h("Aborting because element has been uninstalled")}function D(){if(h("finalizeDomMutation invoked."),o(c)){var e=o(c).style;_(c,e.width,e.height),j(c,e.width,e.height)}else h("Aborting because element has been uninstalled")}function C(){f(c)}function O(){var e;h("Installing..."),o(c).listeners=[],e=m(),o(c).startSize={width:e.width,height:e.height},h("Element start size",o(c).startSize),n.add(0,v),n.add(1,E),n.add(2,S),n.add(3,D),n.add(4,C)}var P,M;f||(f=c,c=e,e=null),e=e||{},h("Making detectable..."),(M=P=c)!==M.ownerDocument.body&&!M.ownerDocument.body.contains(M)||null===window.getComputedStyle(P)?(h("Element is detached"),k(),h("Waiting until element is attached..."),o(c).onRendered=function(){h("Element is now attached"),O()}):O()},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&f(d(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&f(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&f(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:c}}},{"../collection-utils":131}],134:[function(e,t,n){"use strict";var r=e("./collection-utils").forEach,o=e("./element-utils"),i=e("./listener-handler"),s=e("./id-generator"),a=e("./id-handler"),c=e("./reporter"),l=e("./browser-detector"),u=e("batch-processor"),f=e("./state-handler"),d=e("./detection-strategy/object.js"),p=e("./detection-strategy/scroll.js");function h(e){return Array.isArray(e)||void 0!==e.length}function y(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function m(e){return e&&1===e.nodeType}function v(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}t.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=s(),_=a({idGenerator:n,stateHandler:f});t=_}var g=e.reporter;g=g||c(!1===g);var b=v(e,"batchProcessor",u({reporter:g})),w={};w.callOnAdd=!!v(e,"callOnAdd",!0),w.debug=!!v(e,"debug",!1);var x,j=i(t),k=o({stateHandler:f}),E=v(e,"strategy","object"),S=v(e,"important",!1),D={reporter:g,batchProcessor:b,stateHandler:f,idHandler:t,important:S};if("scroll"===E&&(l.isLegacyOpera()?(g.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),E="object"):l.isIE(9)&&(g.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),E="object")),"scroll"===E)x=p(D);else{if("object"!==E)throw new Error("Invalid strategy name: "+E);x=d(D)}var C={};return{listenTo:function(e,n,o){function i(e){var t=j.get(e);r(t,(function(t){t(e)}))}function s(e,t,n){j.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(m(n))n=[n];else{if(!h(n))return g.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=y(n)}var a=0,c=v(e,"callOnAdd",w.callOnAdd),l=v(e,"onReady",(function(){})),u=v(e,"debug",w.debug);r(n,(function(e){f.getState(e)||(f.initState(e),t.set(e));var d=t.get(e);if(u&&g.log("Attaching listener to element",d,e),!k.isDetectable(e))return u&&g.log(d,"Not detectable."),k.isBusy(e)?(u&&g.log(d,"System busy making it detectable"),s(c,e,o),C[d]=C[d]||[],void C[d].push((function(){++a===n.length&&l()}))):(u&&g.log(d,"Making detectable..."),k.markBusy(e,!0),x.makeDetectable({debug:u,important:S},e,(function(e){if(u&&g.log(d,"onElementDetectable"),f.getState(e)){k.markAsDetectable(e),k.markBusy(e,!1),x.addListener(e,i),s(c,e,o);var t=f.getState(e);if(t&&t.startSize){var p=e.offsetWidth,h=e.offsetHeight;t.startSize.width===p&&t.startSize.height===h||i(e)}C[d]&&r(C[d],(function(e){e()}))}else u&&g.log(d,"Element uninstalled before being detectable.");delete C[d],++a===n.length&&l()})));u&&g.log(d,"Already detecable, adding listener."),s(c,e,o),a++})),a===n.length&&l()},removeListener:j.removeListener,removeAllListeners:j.removeAllListeners,uninstall:function(e){if(!e)return g.error("At least one element is required.");if(m(e))e=[e];else{if(!h(e))return g.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=y(e)}r(e,(function(e){j.removeAllListeners(e),x.uninstall(e),f.cleanState(e)}))},initDocument:function(e){x.initDocument&&x.initDocument(e)}}}},{"./browser-detector":130,"./collection-utils":131,"./detection-strategy/object.js":132,"./detection-strategy/scroll.js":133,"./element-utils":135,"./id-generator":136,"./id-handler":137,"./listener-handler":138,"./reporter":139,"./state-handler":140,"batch-processor":1}],135:[function(e,t,n){"use strict";t.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},{}],136:[function(e,t,n){"use strict";t.exports=function(){var e=1;return{generate:function(){return e++}}}},{}],137:[function(e,t,n){"use strict";t.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return r.id=o}}}},{}],138:[function(e,t,n){"use strict";t.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0!==r&&t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,i=r.length;o<i;++o)if(r[o]===t){r.splice(o,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},{}],139:[function(e,t,n){"use strict";t.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},{}],140:[function(e,t,n){"use strict";var r="_erd";function o(e){return e[r]}t.exports={initState:function(e){return e[r]={},o(e)},getState:o,cleanState:function(e){delete e[r]}}},{}],141:[function(e,t,n){var r,o;r=window,o=function(){return n={},e.m=t=[function(e,t,n){"use strict";function r(e,t){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}function o(e){return e*(Math.PI/180)}function i(e){y.has(e)&&clearTimeout(y.get(e)),y.set(e,setTimeout(e,100))}function s(e,t,n){for(var r,o=t.split(/[ ,]+/g),i=0;i<o.length;i+=1)r=o[i],e.addEventListener?e.addEventListener(r,n,!1):e.attachEvent&&e.attachEvent(r,n)}function a(e,t,n){for(var r,o=t.split(/[ ,]+/g),i=0;i<o.length;i+=1)r=o[i],e.removeEventListener?e.removeEventListener(r,n):e.detachEvent&&e.detachEvent(r,n)}function c(e){return e.preventDefault(),e.type.match(/^touch/)?e.changedTouches:e}function l(){return{x:void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}}function u(e,t){t.top||t.right||t.bottom||t.left?(e.style.top=t.top,e.style.right=t.right,e.style.bottom=t.bottom,e.style.left=t.left):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function f(e,t,n){var r=m(e);for(var o in r)if(r.hasOwnProperty(o))if("string"==typeof t)r[o]=t+" "+n;else{for(var i="",s=0,a=t.length;s<a;s+=1)i+=t[s]+" "+n+", ";r[o]=i.slice(0,-2)}return r}function d(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function p(e,t){if(e.length)for(var n=0,r=e.length;n<r;n+=1)t(e[n]);else t(e)}n.r(t);var h,y=new Map,m=function(e){var t={};return t[e]="",["webkit","Moz","o"].forEach((function(n){t[n+e.charAt(0).toUpperCase()+e.slice(1)]=""})),t},v=!!("ontouchstart"in window),_=!!window.PointerEvent,g=!!window.MSPointerEvent,b={start:"mousedown",move:"mousemove",end:"mouseup"},w={};function x(){}_?h={start:"pointerdown",move:"pointermove",end:"pointerup, pointercancel"}:g?h={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:v?(h={start:"touchstart",move:"touchmove",end:"touchend, touchcancel"},w=b):h=b,x.prototype.on=function(e,t){var n,r=e.split(/[ ,]+/g);this._handlers_=this._handlers_||{};for(var o=0;o<r.length;o+=1)n=r[o],this._handlers_[n]=this._handlers_[n]||[],this._handlers_[n].push(t);return this},x.prototype.off=function(e,t){return this._handlers_=this._handlers_||{},void 0===e?this._handlers_={}:void 0===t?this._handlers_[e]=null:this._handlers_[e]&&0<=this._handlers_[e].indexOf(t)&&this._handlers_[e].splice(this._handlers_[e].indexOf(t),1),this},x.prototype.trigger=function(e,t){var n,r=this,o=e.split(/[ ,]+/g);r._handlers_=r._handlers_||{};for(var i=0;i<o.length;i+=1)n=o[i],r._handlers_[n]&&r._handlers_[n].length&&r._handlers_[n].forEach((function(e){e.call(r,{type:n,target:r},t)}))},x.prototype.config=function(e){this.options=this.defaults||{},e&&(this.options=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&t.hasOwnProperty(r)?n[r]=t[r]:e.hasOwnProperty(r)&&(n[r]=e[r]);return n}(this.options,e))},x.prototype.bindEvt=function(e,t){var n=this;return n._domHandlers_=n._domHandlers_||{},n._domHandlers_[t]=function(){"function"==typeof n["on"+t]?n["on"+t].apply(n,arguments):console.warn('[WARNING] : Missing "on'+t+'" handler.')},s(e,h[t],n._domHandlers_[t]),w[t]&&s(e,w[t],n._domHandlers_[t]),n},x.prototype.unbindEvt=function(e,t){return this._domHandlers_=this._domHandlers_||{},a(e,h[t],this._domHandlers_[t]),w[t]&&a(e,w[t],this._domHandlers_[t]),delete this._domHandlers_[t],this};var j=x;function k(e,t){return this.identifier=t.identifier,this.position=t.position,this.frontPosition=t.frontPosition,this.collection=e,this.defaults={size:100,threshold:.1,color:"white",fadeTime:250,dataOnly:!1,restJoystick:!0,restOpacity:.5,mode:"dynamic",zone:document.body,lockX:!1,lockY:!1,shape:"circle"},this.config(t),"dynamic"===this.options.mode&&(this.options.restOpacity=0),this.id=k.id,k.id+=1,this.buildEl().stylize(),this.instance={el:this.ui.el,on:this.on.bind(this),off:this.off.bind(this),show:this.show.bind(this),hide:this.hide.bind(this),add:this.addToDom.bind(this),remove:this.removeFromDom.bind(this),destroy:this.destroy.bind(this),setPosition:this.setPosition.bind(this),resetDirection:this.resetDirection.bind(this),computeDirection:this.computeDirection.bind(this),trigger:this.trigger.bind(this),position:this.position,frontPosition:this.frontPosition,ui:this.ui,identifier:this.identifier,id:this.id,options:this.options},this.instance}k.prototype=new j,(k.constructor=k).id=0,k.prototype.buildEl=function(e){return this.ui={},this.options.dataOnly||(this.ui.el=document.createElement("div"),this.ui.back=document.createElement("div"),this.ui.front=document.createElement("div"),this.ui.el.className="nipple collection_"+this.collection.id,this.ui.back.className="back",this.ui.front.className="front",this.ui.el.setAttribute("id","nipple_"+this.collection.id+"_"+this.id),this.ui.el.appendChild(this.ui.back),this.ui.el.appendChild(this.ui.front)),this},k.prototype.stylize=function(){if(this.options.dataOnly)return this;var e=this.options.fadeTime+"ms",t=function(){var e=m("borderRadius");for(var t in e)e.hasOwnProperty(t)&&(e[t]="50%");return e}(),n=f("transition","opacity",e),r={};return r.el={position:"absolute",opacity:this.options.restOpacity,display:"block",zIndex:999},r.back={position:"absolute",display:"block",width:this.options.size+"px",height:this.options.size+"px",marginLeft:-this.options.size/2+"px",marginTop:-this.options.size/2+"px",background:this.options.color,opacity:".5"},r.front={width:this.options.size/2+"px",height:this.options.size/2+"px",position:"absolute",display:"block",marginLeft:-this.options.size/4+"px",marginTop:-this.options.size/4+"px",background:this.options.color,opacity:".5"},d(r.el,n),"circle"===this.options.shape&&d(r.back,t),d(r.front,t),this.applyStyles(r),this},k.prototype.applyStyles=function(e){for(var t in this.ui)if(this.ui.hasOwnProperty(t))for(var n in e[t])this.ui[t].style[n]=e[t][n];return this},k.prototype.addToDom=function(){return this.options.dataOnly||document.body.contains(this.ui.el)||this.options.zone.appendChild(this.ui.el),this},k.prototype.removeFromDom=function(){return this.options.dataOnly||!document.body.contains(this.ui.el)||this.options.zone.removeChild(this.ui.el),this},k.prototype.destroy=function(){clearTimeout(this.removeTimeout),clearTimeout(this.showTimeout),clearTimeout(this.restTimeout),this.trigger("destroyed",this.instance),this.removeFromDom(),this.off()},k.prototype.show=function(e){var t=this;return t.options.dataOnly||(clearTimeout(t.removeTimeout),clearTimeout(t.showTimeout),clearTimeout(t.restTimeout),t.addToDom(),t.restCallback(),setTimeout((function(){t.ui.el.style.opacity=1}),0),t.showTimeout=setTimeout((function(){t.trigger("shown",t.instance),"function"==typeof e&&e.call(this)}),t.options.fadeTime)),t},k.prototype.hide=function(e){var t=this;return t.options.dataOnly||(t.ui.el.style.opacity=t.options.restOpacity,clearTimeout(t.removeTimeout),clearTimeout(t.showTimeout),clearTimeout(t.restTimeout),t.removeTimeout=setTimeout((function(){var n="dynamic"===t.options.mode?"none":"block";t.ui.el.style.display=n,"function"==typeof e&&e.call(t),t.trigger("hidden",t.instance)}),t.options.fadeTime),t.options.restJoystick&&t.setPosition(e,{x:0,y:0})),t},k.prototype.setPosition=function(e,t){var n=this;n.frontPosition={x:t.x,y:t.y};var r=n.options.fadeTime+"ms",o={};o.front=f("transition",["top","left"],r);var i={front:{}};i.front={left:n.frontPosition.x+"px",top:n.frontPosition.y+"px"},n.applyStyles(o),n.applyStyles(i),n.restTimeout=setTimeout((function(){"function"==typeof e&&e.call(n),n.restCallback()}),n.options.fadeTime)},k.prototype.restCallback=function(){var e={};e.front=f("transition","none",""),this.applyStyles(e),this.trigger("rested",this.instance)},k.prototype.resetDirection=function(){this.direction={x:!1,y:!1,angle:!1}},k.prototype.computeDirection=function(e){var t,n,r,o=e.angle.radian,i=Math.PI/4,s=Math.PI/2;if(i<o&&o<3*i&&!e.lockX?t="up":-i<o&&o<=i&&!e.lockY?t="left":3*-i<o&&o<=-i&&!e.lockX?t="down":e.lockY||(t="right"),e.lockY||(n=-s<o&&o<s?"left":"right"),e.lockX||(r=0<o?"up":"down"),e.force>this.options.threshold){var a,c={};for(a in this.direction)this.direction.hasOwnProperty(a)&&(c[a]=this.direction[a]);var l={};for(a in this.direction={x:n,y:r,angle:t},e.direction=this.direction,c)c[a]===this.direction[a]&&(l[a]=!0);if(l.x&&l.y&&l.angle)return e;l.x&&l.y||this.trigger("plain",e),l.x||this.trigger("plain:"+n,e),l.y||this.trigger("plain:"+r,e),l.angle||this.trigger("dir dir:"+t,e)}else this.resetDirection();return e};var E=k;function S(e,t){return this.nipples=[],this.idles=[],this.actives=[],this.ids=[],this.pressureIntervals={},this.manager=e,this.id=S.id,S.id+=1,this.defaults={zone:document.body,multitouch:!1,maxNumberOfNipples:10,mode:"dynamic",position:{top:0,left:0},catchDistance:200,size:100,threshold:.1,color:"white",fadeTime:250,dataOnly:!1,restJoystick:!0,restOpacity:.5,lockX:!1,lockY:!1,shape:"circle",dynamicPage:!1,follow:!1},this.config(t),"static"!==this.options.mode&&"semi"!==this.options.mode||(this.options.multitouch=!1),this.options.multitouch||(this.options.maxNumberOfNipples=1),this.updateBox(),this.prepareNipples(),this.bindings(),this.begin(),this.nipples}S.prototype=new j,(S.constructor=S).id=0,S.prototype.prepareNipples=function(){var e=this.nipples;e.on=this.on.bind(this),e.off=this.off.bind(this),e.options=this.options,e.destroy=this.destroy.bind(this),e.ids=this.ids,e.id=this.id,e.processOnMove=this.processOnMove.bind(this),e.processOnEnd=this.processOnEnd.bind(this),e.get=function(t){if(void 0===t)return e[0];for(var n=0,r=e.length;n<r;n+=1)if(e[n].identifier===t)return e[n];return!1}},S.prototype.bindings=function(){this.bindEvt(this.options.zone,"start"),this.options.zone.style.touchAction="none",this.options.zone.style.msTouchAction="none"},S.prototype.begin=function(){var e=this.options;if("static"===e.mode){var t=this.createNipple(e.position,this.manager.getIdentifier());t.add(),this.idles.push(t)}},S.prototype.createNipple=function(e,t){var n=this.manager.scroll,r={},o=this.options;if(e.x&&e.y)r={x:e.x-(n.x+this.box.left),y:e.y-(n.y+this.box.top)};else if(e.top||e.right||e.bottom||e.left){var i=document.createElement("DIV");i.style.display="hidden",i.style.top=e.top,i.style.right=e.right,i.style.bottom=e.bottom,i.style.left=e.left,i.style.position="absolute",o.zone.appendChild(i);var s=i.getBoundingClientRect();o.zone.removeChild(i),r=e,e={x:s.left+n.x,y:s.top+n.y}}var a=new E(this,{color:o.color,size:o.size,threshold:o.threshold,fadeTime:o.fadeTime,dataOnly:o.dataOnly,restJoystick:o.restJoystick,restOpacity:o.restOpacity,mode:o.mode,identifier:t,position:e,zone:o.zone,frontPosition:{x:0,y:0},shape:o.shape});return o.dataOnly||(u(a.ui.el,r),u(a.ui.front,a.frontPosition)),this.nipples.push(a),this.trigger("added "+a.identifier+":added",a),this.manager.trigger("added "+a.identifier+":added",a),this.bindNipple(a),a},S.prototype.updateBox=function(){this.box=this.options.zone.getBoundingClientRect()},S.prototype.bindNipple=function(e){function t(e,t){n=e.type+" "+t.id+":"+e.type,r.trigger(n,t)}var n,r=this;e.on("destroyed",r.onDestroyed.bind(r)),e.on("shown hidden rested dir plain",t),e.on("dir:up dir:right dir:down dir:left",t),e.on("plain:up plain:right plain:down plain:left",t)},S.prototype.pressureFn=function(e,t,n){var r=this,o=0;clearInterval(r.pressureIntervals[n]),r.pressureIntervals[n]=setInterval(function(){var n=e.force||e.pressure||e.webkitForce||0;n!==o&&(t.trigger("pressure",n),r.trigger("pressure "+t.identifier+":pressure",n),o=n)}.bind(r),100)},S.prototype.onstart=function(e){var t=this,n=t.options,r=e;return e=c(e),t.updateBox(),p(e,(function(o){t.actives.length<n.maxNumberOfNipples?t.processOnStart(o):r.type.match(/^touch/)&&(Object.keys(t.manager.ids).forEach((function(n){if(Object.values(r.touches).findIndex((function(e){return e.identifier===n}))<0){var o=[e[0]];o.identifier=n,t.processOnEnd(o)}})),t.actives.length<n.maxNumberOfNipples&&t.processOnStart(o))})),t.manager.bindDocument(),!1},S.prototype.processOnStart=function(e){var t,n=this,o=n.options,i=n.manager.getIdentifier(e),s=e.force||e.pressure||e.webkitForce||0,a={x:e.pageX,y:e.pageY},c=n.getOrCreate(i,a);function l(t){t.trigger("start",t),n.trigger("start "+t.id+":start",t),t.show(),0<s&&n.pressureFn(e,t,t.identifier),n.processOnMove(e)}if(c.identifier!==i&&n.manager.removeIdentifier(c.identifier),c.identifier=i,0<=(t=n.idles.indexOf(c))&&n.idles.splice(t,1),n.actives.push(c),n.ids.push(c.identifier),"semi"!==o.mode)l(c);else{if(!(r(a,c.position)<=o.catchDistance))return c.destroy(),void n.processOnStart(e);l(c)}return c},S.prototype.getOrCreate=function(e,t){var n,r=this.options;return/(semi|static)/.test(r.mode)?(n=this.idles[0])?(this.idles.splice(0,1),n):"semi"===r.mode?this.createNipple(t,e):(console.warn("Coudln't find the needed nipple."),!1):n=this.createNipple(t,e)},S.prototype.processOnMove=function(e){var t,n,i,s,a=this.options,c=this.manager.getIdentifier(e),l=this.nipples.get(c),f=this.manager.scroll;if(s=e,isNaN(s.buttons)?0!==s.pressure:0!==s.buttons){if(!l)return console.error("Found zombie joystick with ID "+c),void this.manager.removeIdentifier(c);if(a.dynamicPage){var d=l.el.getBoundingClientRect();l.position={x:f.x+d.left,y:f.y+d.top}}l.identifier=c;var p=l.options.size/2,h={x:e.pageX,y:e.pageY};a.lockX&&(h.y=l.position.y),a.lockY&&(h.x=l.position.x);var y,m,v,_,g,b,w,x,j,k=r(h,l.position),E=(m=(y=l.position).x-h.x,v=y.y-h.y,Math.atan2(v,m)*(180/Math.PI)),S=o(E),D=k/p,C={distance:k,position:h};if("circle"===l.options.shape?(_=Math.min(k,p),b=l.position,w=_,j={x:0,y:0},x=o(x=E),j.x=b.x-w*Math.cos(x),j.y=b.y-w*Math.sin(x),g=j):(t=h,n=l.position,i=p,_=r(g={x:Math.min(Math.max(t.x,n.x-i),n.x+i),y:Math.min(Math.max(t.y,n.y-i),n.y+i)},l.position)),a.follow){if(p<k){var O=h.x-g.x,P=h.y-g.y;l.position.x+=O,l.position.y+=P,l.el.style.top=l.position.y-(this.box.top+f.y)+"px",l.el.style.left=l.position.x-(this.box.left+f.x)+"px",k=r(h,l.position)}}else h=g,k=_;var M=h.x-l.position.x,B=h.y-l.position.y;l.frontPosition={x:M,y:B},a.dataOnly||u(l.ui.front,l.frontPosition);var A={identifier:l.identifier,position:h,force:D,pressure:e.force||e.pressure||e.webkitForce||0,distance:k,angle:{radian:S,degree:E},vector:{x:M/p,y:-B/p},raw:C,instance:l,lockX:a.lockX,lockY:a.lockY};(A=l.computeDirection(A)).angle={radian:o(180-E),degree:180-E},l.trigger("move",A),this.trigger("move "+l.id+":move",A)}else this.processOnEnd(e)},S.prototype.processOnEnd=function(e){var t=this,n=t.options,r=t.manager.getIdentifier(e),o=t.nipples.get(r),i=t.manager.removeIdentifier(o.identifier);o&&(n.dataOnly||o.hide((function(){"dynamic"===n.mode&&(o.trigger("removed",o),t.trigger("removed "+o.id+":removed",o),t.manager.trigger("removed "+o.id+":removed",o),o.destroy())})),clearInterval(t.pressureIntervals[o.identifier]),o.resetDirection(),o.trigger("end",o),t.trigger("end "+o.id+":end",o),0<=t.ids.indexOf(o.identifier)&&t.ids.splice(t.ids.indexOf(o.identifier),1),0<=t.actives.indexOf(o)&&t.actives.splice(t.actives.indexOf(o),1),/(semi|static)/.test(n.mode)?t.idles.push(o):0<=t.nipples.indexOf(o)&&t.nipples.splice(t.nipples.indexOf(o),1),t.manager.unbindDocument(),/(semi|static)/.test(n.mode)&&(t.manager.ids[i.id]=i.identifier))},S.prototype.onDestroyed=function(e,t){0<=this.nipples.indexOf(t)&&this.nipples.splice(this.nipples.indexOf(t),1),0<=this.actives.indexOf(t)&&this.actives.splice(this.actives.indexOf(t),1),0<=this.idles.indexOf(t)&&this.idles.splice(this.idles.indexOf(t),1),0<=this.ids.indexOf(t.identifier)&&this.ids.splice(this.ids.indexOf(t.identifier),1),this.manager.removeIdentifier(t.identifier),this.manager.unbindDocument()},S.prototype.destroy=function(){for(var e in this.unbindEvt(this.options.zone,"start"),this.nipples.forEach((function(e){e.destroy()})),this.pressureIntervals)this.pressureIntervals.hasOwnProperty(e)&&clearInterval(this.pressureIntervals[e]);this.trigger("destroyed",this.nipples),this.manager.unbindDocument(),this.off()};var D=S;function C(e){var t=this;function n(){var e;t.collections.forEach((function(n){n.forEach((function(n){e=n.el.getBoundingClientRect(),n.position={x:t.scroll.x+e.left,y:t.scroll.y+e.top}}))}))}function r(){t.scroll=l()}return t.ids={},t.index=0,t.collections=[],t.scroll=l(),t.config(e),t.prepareCollections(),s(window,"resize",(function(){i(n)})),s(window,"scroll",(function(){i(r)})),t.collections}C.prototype=new j,(C.constructor=C).prototype.prepareCollections=function(){var e=this;e.collections.create=e.create.bind(e),e.collections.on=e.on.bind(e),e.collections.off=e.off.bind(e),e.collections.destroy=e.destroy.bind(e),e.collections.get=function(t){var n;return e.collections.every((function(e){return!(n=e.get(t))})),n}},C.prototype.create=function(e){return this.createCollection(e)},C.prototype.createCollection=function(e){var t=new D(this,e);return this.bindCollection(t),this.collections.push(t),t},C.prototype.bindCollection=function(e){function t(e,t){n=e.type+" "+t.id+":"+e.type,r.trigger(n,t)}var n,r=this;e.on("destroyed",r.onDestroyed.bind(r)),e.on("shown hidden rested dir plain",t),e.on("dir:up dir:right dir:down dir:left",t),e.on("plain:up plain:right plain:down plain:left",t)},C.prototype.bindDocument=function(){this.binded||(this.bindEvt(document,"move").bindEvt(document,"end"),this.binded=!0)},C.prototype.unbindDocument=function(e){Object.keys(this.ids).length&&!0!==e||(this.unbindEvt(document,"move").unbindEvt(document,"end"),this.binded=!1)},C.prototype.getIdentifier=function(e){var t;return e?void 0===(t=void 0===e.identifier?e.pointerId:e.identifier)&&(t=this.latest||0):t=this.index,void 0===this.ids[t]&&(this.ids[t]=this.index,this.index+=1),this.latest=t,this.ids[t]},C.prototype.removeIdentifier=function(e){var t={};for(var n in this.ids)if(this.ids[n]===e){t.id=n,t.identifier=this.ids[n],delete this.ids[n];break}return t},C.prototype.onmove=function(e){return this.onAny("move",e),!1},C.prototype.onend=function(e){return this.onAny("end",e),!1},C.prototype.oncancel=function(e){return this.onAny("end",e),!1},C.prototype.onAny=function(e,t){var n,r=this,o="processOn"+e.charAt(0).toUpperCase()+e.slice(1);return p(t=c(t),(function(e){n=r.getIdentifier(e),p(r.collections,function(e,t,n){0<=n.ids.indexOf(t)&&(n[o](e),e._found_=!0)}.bind(null,e,n)),e._found_||r.removeIdentifier(n)})),!1},C.prototype.destroy=function(){this.unbindDocument(!0),this.ids={},this.index=0,this.collections.forEach((function(e){e.destroy()})),this.off()},C.prototype.onDestroyed=function(e,t){if(this.collections.indexOf(t)<0)return!1;this.collections.splice(this.collections.indexOf(t),1)};var O=new C;t.default={create:function(e){return O.create(e)},factory:O}}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=0).default;function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n},"object"==typeof n&&"object"==typeof t?t.exports=o():"function"==typeof define&&define.amd?define("nipplejs",[],o):"object"==typeof n?n.nipplejs=o():r.nipplejs=o()},{}],142:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=(s.prototype.on=function(e,t){var n=this.listeners[e]||[];this.listeners[e]=n.concat([t])},s.prototype.triggerEvent=function(e,t){var n=this;(this.listeners[e]||[]).forEach((function(e){return e({target:n,event:t})}))},s);function s(e){this.options=e,this.listeners={}}(r=n.NotyfArrayEvent||(n.NotyfArrayEvent={}))[r.Add=0]="Add",r[r.Remove=1]="Remove";var a,c=(l.prototype.push=function(e){this.notifications.push(e),this.updateFn(e,n.NotyfArrayEvent.Add,this.notifications)},l.prototype.splice=function(e,t){var r=this.notifications.splice(e,t)[0];return this.updateFn(r,n.NotyfArrayEvent.Remove,this.notifications),r},l.prototype.indexOf=function(e){return this.notifications.indexOf(e)},l.prototype.onUpdate=function(e){this.updateFn=e},l);function l(){this.notifications=[]}(a=n.NotyfEvent||(n.NotyfEvent={})).Dismiss="dismiss";var u={types:[{type:"success",className:"notyf__toast--success",backgroundColor:"#3dc763",icon:{className:"notyf__icon--success",tagName:"i"}},{type:"error",className:"notyf__toast--error",backgroundColor:"#ed3d3d",icon:{className:"notyf__icon--error",tagName:"i"}}],duration:2e3,ripple:!0,position:{x:"right",y:"bottom"},dismissible:!(a.Click="click")},f=(d.prototype.on=function(e,t){var n;this.events=o(o({},this.events),((n={})[e]=t,n))},d.prototype.update=function(e,t){t===n.NotyfArrayEvent.Add?this.addNotification(e):t===n.NotyfArrayEvent.Remove&&this.removeNotification(e)},d.prototype.removeNotification=function(e){var t,n,r=this,o=this._popRenderedNotification(e);o&&((t=o.node).classList.add("notyf__toast--disappear"),t.addEventListener(this.animationEndEventName,n=function(e){e.target===t&&(t.removeEventListener(r.animationEndEventName,n),r.container.removeChild(t))}))},d.prototype.addNotification=function(e){var t=this._renderNotification(e);this.notifications.push({notification:e,node:t}),this._announce(e.options.message||"Notification")},d.prototype._renderNotification=function(e){var t,n=this._buildNotificationCard(e),r=e.options.className;return r&&(t=n.classList).add.apply(t,r.split(" ")),this.container.appendChild(n),n},d.prototype._popRenderedNotification=function(e){for(var t=-1,n=0;n<this.notifications.length&&t<0;n++)this.notifications[n].notification===e&&(t=n);if(-1!==t)return this.notifications.splice(t,1)[0]},d.prototype.getXPosition=function(e){var t;return(null===(t=null==e?void 0:e.position)||void 0===t?void 0:t.x)||"right"},d.prototype.getYPosition=function(e){var t;return(null===(t=null==e?void 0:e.position)||void 0===t?void 0:t.y)||"bottom"},d.prototype.adjustContainerAlignment=function(e){var t=this.X_POSITION_FLEX_MAP[this.getXPosition(e)],n=this.Y_POSITION_FLEX_MAP[this.getYPosition(e)],r=this.container.style;r.setProperty("justify-content",n),r.setProperty("align-items",t)},d.prototype._buildNotificationCard=function(e){var t,r=this,o=e.options,i=o.icon;this.adjustContainerAlignment(o);var s=this._createHTLMElement({tagName:"div",className:"notyf__toast"}),a=this._createHTLMElement({tagName:"div",className:"notyf__ripple"}),c=this._createHTLMElement({tagName:"div",className:"notyf__wrapper"}),l=this._createHTLMElement({tagName:"div",className:"notyf__message"});l.innerHTML=o.message||"";var u=o.background||o.backgroundColor;if(i&&"object"==typeof i){var f=this._createHTLMElement({tagName:"div",className:"notyf__icon"}),d=this._createHTLMElement({tagName:i.tagName||"i",className:i.className,text:i.text}),p=null!==(t=i.color)&&void 0!==t?t:u;p&&(d.style.color=p),f.appendChild(d),c.appendChild(f)}if(c.appendChild(l),s.appendChild(c),u&&(o.ripple?(a.style.background=u,s.appendChild(a)):s.style.background=u),o.dismissible){var h=this._createHTLMElement({tagName:"div",className:"notyf__dismiss"}),y=this._createHTLMElement({tagName:"button",className:"notyf__dismiss-btn"});h.appendChild(y),c.appendChild(h),s.classList.add("notyf__toast--dismissible"),y.addEventListener("click",(function(t){var o,i;null!==(i=(o=r.events)[n.NotyfEvent.Dismiss])&&void 0!==i&&i.call(o,{target:e,event:t}),t.stopPropagation()}))}s.addEventListener("click",(function(t){var o,i;return null===(i=(o=r.events)[n.NotyfEvent.Click])||void 0===i?void 0:i.call(o,{target:e,event:t})}));var m="top"===this.getYPosition(o)?"upper":"lower";return s.classList.add("notyf__toast--"+m),s},d.prototype._createHTLMElement=function(e){var t=e.tagName,n=e.className,r=e.text,o=document.createElement(t);return n&&(o.className=n),o.textContent=r||null,o},d.prototype._createA11yContainer=function(){var e=this._createHTLMElement({tagName:"div",className:"notyf-announcer"});e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),e.style.border="0",e.style.clip="rect(0 0 0 0)",e.style.height="1px",e.style.margin="-1px",e.style.overflow="hidden",e.style.padding="0",e.style.position="absolute",e.style.width="1px",e.style.outline="0",document.body.appendChild(e),this.a11yContainer=e},d.prototype._announce=function(e){var t=this;this.a11yContainer.textContent="",setTimeout((function(){t.a11yContainer.textContent=e}),100)},d.prototype._getAnimationEndEventName=function(){var e,t=document.createElement("_fake"),n={MozTransition:"animationend",OTransition:"oAnimationEnd",WebkitTransition:"webkitAnimationEnd",transition:"animationend"};for(e in n)if(void 0!==t.style[e])return n[e];return"animationend"},d);function d(){this.notifications=[],this.events={},this.X_POSITION_FLEX_MAP={left:"flex-start",center:"center",right:"flex-end"},this.Y_POSITION_FLEX_MAP={top:"flex-start",center:"center",bottom:"flex-end"};var e=document.createDocumentFragment(),t=this._createHTLMElement({tagName:"div",className:"notyf"});e.appendChild(t),document.body.appendChild(e),this.container=t,this.animationEndEventName=this._getAnimationEndEventName(),this._createA11yContainer()}var p=(h.prototype.error=function(e){var t=this.normalizeOptions("error",e);return this.open(t)},h.prototype.success=function(e){var t=this.normalizeOptions("success",e);return this.open(t)},h.prototype.open=function(e){var t=this.options.types.find((function(t){return t.type===e.type}))||{},n=o(o({},t),e);this.assignProps(["ripple","position","dismissible"],n);var r=new i(n);return this._pushNotification(r),r},h.prototype.dismissAll=function(){for(;this.notifications.splice(0,1););},h.prototype.assignProps=function(e,t){var n=this;e.forEach((function(e){t[e]=null==t[e]?n.options[e]:t[e]}))},h.prototype._pushNotification=function(e){var t=this;this.notifications.push(e);var n=void 0!==e.options.duration?e.options.duration:this.options.duration;n&&setTimeout((function(){return t._removeNotification(e)}),n)},h.prototype._removeNotification=function(e){var t=this.notifications.indexOf(e);-1!==t&&this.notifications.splice(t,1)},h.prototype.normalizeOptions=function(e,t){var n={type:e};return"string"==typeof t?n.message=t:"object"==typeof t&&(n=o(o({},n),t)),n},h.prototype.registerTypes=function(e){var t=(e&&e.types||[]).slice();return u.types.map((function(e){var n=-1;t.forEach((function(t,r){t.type===e.type&&(n=r)}));var r=-1!==n?t.splice(n,1)[0]:{};return o(o({},e),r)})).concat(t)},h);function h(e){var t=this;this.dismiss=this._removeNotification,this.notifications=new c,this.view=new f;var r=this.registerTypes(e);this.options=o(o({},u),e),this.options.types=r,this.notifications.onUpdate((function(e,n){return t.view.update(e,n)})),this.view.on(n.NotyfEvent.Dismiss,(function(e){var r=e.target,o=e.event;t._removeNotification(r),r.triggerEvent(n.NotyfEvent.Dismiss,o)})),this.view.on(n.NotyfEvent.Click,(function(e){var t=e.target,r=e.event;return t.triggerEvent(n.NotyfEvent.Click,r)}))}n.DEFAULT_OPTIONS=u,n.Notyf=p,n.NotyfArray=c,n.NotyfNotification=i,n.NotyfView=f},{}],143:[function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o,i,s,a,c=t&&t.prototype instanceof y?t:y,m=Object.create(c.prototype),v=new D(r||[]);return m._invoke=(o=e,i=n,s=v,a=u,function(e,t){if(a===d)throw new Error("Generator is already running");if(a===p){if("throw"===e)throw t;return O()}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n){var r=k(n,s);if(r){if(r===h)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(a===u)throw a=p,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a=d;var c=l(o,i,s);if("normal"===c.type){if(a=s.done?p:f,c.arg===h)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(a=p,s.method="throw",s.arg=c.arg)}}),m}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function y(){}function m(){}function v(){}var _={};_[i]=function(){return this};var g=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==n&&r.call(b,i)&&(_=b);var w=v.prototype=y.prototype=Object.create(_);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function j(e,t){var n;this._invoke=function(o,i){function s(){return new t((function(n,s){!function n(o,i,s,a){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function E(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:O}}function O(){return{value:t,done:!0}}return m.prototype=w.constructor=v,v.constructor=m,v[a]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(j.prototype),j.prototype[s]=function(){return this},e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new j(c(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(w),w[a]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;0<=i;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(s)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},{}],144:[function(e,t,n){var r;r=function(){return n={},e.m=t=[function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return(o="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})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(t);var s,a,c,l,u=(l=[{key:"bindMethods",value:function(e,t){var n,o=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,void 0):void 0}}(e))){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw s}}}}(Object.getOwnPropertyNames(e.prototype));try{for(o.s();!(n=o.n()).done;){var i=n.value;"constructor"===i||"bindMethods"===i||(t[i]=t[i].bind(t))}}catch(e){o.e(e)}finally{o.f()}}}],i((c=f).prototype,[{key:"getButtonClass",value:function(e){var t=e.includes("{")&&e.includes("}")&&"{//}"!==e?"functionBtn":"standardBtn",n=e.replace("{","").replace("}",""),r="";return"standardBtn"!=t&&(r=" hg-button-".concat(n)),"hg-".concat(t).concat(r)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(e,t,n){return(t=n?Object.assign({},this.getDefaultDiplay(),t):t||this.getDefaultDiplay())[e]||e}},{key:"getUpdatedInput",value:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:n,o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],i=this.getOptions(),s=[n,r,o],a=t;return("{bksp}"===e||"{backspace}"===e)&&0<a.length?a=this.removeAt.apply(this,[a].concat(s)):"{space}"===e?a=this.addStringAt.apply(this,[a," "].concat(s)):"{tab}"!==e||"boolean"==typeof i.tabCharOnTab&&!1===i.tabCharOnTab?"{enter}"!==e&&"{numpadenter}"!==e||!i.newLineOnEnter?e.includes("numpad")&&Number.isInteger(Number(e[e.length-2]))?a=this.addStringAt.apply(this,[a,e[e.length-2]].concat(s)):"{numpaddivide}"===e?a=this.addStringAt.apply(this,[a,"/"].concat(s)):"{numpadmultiply}"===e?a=this.addStringAt.apply(this,[a,"*"].concat(s)):"{numpadsubtract}"===e?a=this.addStringAt.apply(this,[a,"-"].concat(s)):"{numpadadd}"===e?a=this.addStringAt.apply(this,[a,"+"].concat(s)):"{numpaddecimal}"===e?a=this.addStringAt.apply(this,[a,"."].concat(s)):"{"!==e&&"}"!==e&&(e.includes("{")||e.includes("}"))||(a=this.addStringAt.apply(this,[a,e].concat(s))):a=this.addStringAt.apply(this,[a,"\n"].concat(s)):a=this.addStringAt.apply(this,[a,"\t"].concat(s)),a}},{key:"updateCaretPos",value:function(e,t){var n=this.updateCaretPosAction(e,t);this.dispatch((function(e){e.setCaretPosition(n)}))}},{key:"updateCaretPosAction",value:function(e,t){var n=this.getOptions(),r=this.getCaretPosition();return t?0<r&&(r-=e):r+=e,n.debug&&console.log("Caret at:",r,"(".concat(this.keyboardDOMClass,")")),r}},{key:"addStringAt",value:function(e,t){var n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e.length,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:e.length,i=4<arguments.length&&void 0!==arguments[4]&&arguments[4];return r||0===r?(n=[e.slice(0,r),t,e.slice(o)].join(""),this.isMaxLengthReached()||i&&this.updateCaretPos(t.length)):n=e+t,n}},{key:"removeAt",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e.length,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e.length,o=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===r)return e;if(n===r){var i=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&0<=n?e.substring(n-2,n).match(i)?(t=e.substr(0,n-2)+e.substr(n),o&&this.updateCaretPos(2,!0)):(t=e.substr(0,n-1)+e.substr(n),o&&this.updateCaretPos(1,!0)):e.slice(-2).match(i)?(t=e.slice(0,-2),o&&this.updateCaretPos(2,!0)):(t=e.slice(0,-1),o&&this.updateCaretPos(1,!0))}else t=e.slice(0,n)+e.slice(r),o&&this.dispatch((function(e){e.setCaretPosition(n)}));return t}},{key:"handleMaxLength",value:function(e,t){var n=this.getOptions(),r=n.maxLength,i=e[n.inputName],s=t.length-1>=r;if(t.length<=i.length)return!1;if(Number.isInteger(r))return n.debug&&console.log("maxLength (num) reached:",s),this.maxLengthReached=s;if("object"===o(r)){var a=t.length-1>=r[n.inputName];return n.debug&&console.log("maxLength (obj) reached:",a),this.maxLengthReached=a}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return window.PointerEvent}},{key:"camelCase",value:function(e){return!!e&&e.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(e,t){return t.length?e+t[0].toUpperCase()+t.slice(1):e}))}}]),i(c,l),f);function f(e){var t=e.getOptions,n=e.getCaretPosition,r=e.getCaretPositionEnd,o=e.dispatch;!function(e){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function")}(this),this.getOptions=t,this.getCaretPosition=n,this.getCaretPositionEnd=r,this.dispatch=o,f.bindMethods(f,this)}a=function(){},"noop"in(s=u)?Object.defineProperty(s,"noop",{value:a,enumerable:!0,configurable:!0,writable:!0}):s.noop=a;var d=u;var p=(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(h.prototype,[{key:"handleHighlightKeyDown",value:function(e){var t=this.getOptions(),n=this.getSimpleKeyboardLayoutKey(e);this.dispatch((function(e){var r=e.getButtonElement(n)||e.getButtonElement("{".concat(n,"}"));r&&(r.style.backgroundColor=t.physicalKeyboardHighlightBgColor||"#dadce4",r.style.color=t.physicalKeyboardHighlightTextColor||"black",t.physicalKeyboardHighlightPress&&(r.onpointerdown||r.onmousedown||r.ontouchstart||d.noop)())}))}},{key:"handleHighlightKeyUp",value:function(e){var t=this.getOptions(),n=this.getSimpleKeyboardLayoutKey(e);this.dispatch((function(e){var r=e.getButtonElement(n)||e.getButtonElement("{".concat(n,"}"));r&&r.removeAttribute&&(r.removeAttribute("style"),t.physicalKeyboardHighlightPress&&(r.onpointerup||r.onmouseup||r.ontouchend||d.noop)())}))}},{key:"getSimpleKeyboardLayoutKey",value:function(e){var t;return((t=e.code.includes("Numpad")||e.code.includes("Shift")||e.code.includes("Space")||e.code.includes("Backspace")||e.code.includes("Control")||e.code.includes("Alt")||e.code.includes("Meta")?e.code:e.key)!==t.toUpperCase()||"F"===e.code[0]&&Number.isInteger(Number(e.code[1]))&&e.code.length<=3)&&(t=t.toLowerCase()),t}}]),h);function h(e){var t=e.dispatch,n=e.getOptions;!function(e){if(!(e instanceof h))throw new TypeError("Cannot call a class as a function")}(this),this.dispatch=t,this.getOptions=n,d.bindMethods(h,this)}function y(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return m(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(g.prototype,[{key:"setCaretPosition",value:function(e,t){this.caretPosition=e,this.caretPositionEnd=t||e}},{key:"handleButtonClicked",value:function(e){var t=this.options.debug;if("{//}"===e)return!1;"function"==typeof this.options.onKeyPress&&this.options.onKeyPress(e),this.input[this.options.inputName]||(this.input[this.options.inputName]="");var n=this.utilities.getUpdatedInput(e,this.input[this.options.inputName],this.caretPosition,this.caretPositionEnd);if(this.input[this.options.inputName]!==n&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(n))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,n))return!1;this.input[this.options.inputName]=this.utilities.getUpdatedInput(e,this.input[this.options.inputName],this.caretPosition,this.caretPositionEnd,!0),t&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")")),this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,!0)),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs())}t&&console.log("Key pressed:",e)}},{key:"handleButtonMouseDown",value:function(e,t){var n=this;this.options.preventMouseDownDefault&&t.preventDefault(),this.options.stopMouseDownPropagation&&t.stopPropagation(),t&&t.target.classList.add(this.activeButtonClass),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.isMouseHold=!0,this.options.disableButtonHold||(this.holdTimeout=setTimeout((function(){(!n.isMouseHold||(e.includes("{")||e.includes("}"))&&"{delete}"!==e&&"{backspace}"!==e&&"{bksp}"!==e&&"{space}"!==e&&"{tab}"!==e)&&"{arrowright}"!==e&&"{arrowleft}"!==e&&"{arrowup}"!==e&&"{arrowdown}"!==e||(n.options.debug&&console.log("Button held:",e),n.handleButtonHold(e,t)),clearTimeout(n.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;n&&(this.options.preventMouseUpDefault&&n.preventDefault(),this.options.stopMouseUpPropagation&&n.stopPropagation()),this.recurseButtons((function(t){t.classList.remove(e.activeButtonClass)})),this.isMouseHold=!1,this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),t&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(t)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var t=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=setTimeout((function(){t.isMouseHold?(t.handleButtonClicked(e),t.handleButtonHold(e)):clearTimeout(t.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var e=this;this.dispatch((function(t){t.replaceInput(e.input),t.setCaretPosition(e.caretPosition,e.caretPositionEnd)}))}},{key:"clearInput",value:function(e){e=e||this.options.inputName,this.input[e]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return e=e||this.options.inputName,this.options.syncInstanceInputs&&!t&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[e].replace("‫","").replace("‬","")+"‬":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,t={};return Object.keys(this.input).forEach((function(n){t[n]=e.getInput(n,!0)})),t}},{key:"setInput",value:function(e,t){t=t||this.options.inputName,this.input[t]=e,this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(e){this.input=e}},{key:"setOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this.changedOptions(e);this.options=Object.assign(this.options,e),t.length&&(this.options.debug&&console.log("changedOptions",t),this.onSetOptions(e),this.render())}},{key:"changedOptions",value:function(e){var t=this;return Object.keys(e).filter((function(n){return JSON.stringify(e[n])!==JSON.stringify(t.options[n])}))}},{key:"onSetOptions",value:function(e){e.inputName&&(this.options.debug&&console.log("inputName changed. caretPosition reset."),this.setCaretPosition(null))}},{key:"clear",value:function(){this.keyboardDOM.innerHTML="",this.keyboardDOM.className=this.keyboardDOMClass,this.buttonElements={}}},{key:"dispatch",value:function(e){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach((function(t){e(window.SimpleKeyboardInstances[t],t)}))}},{key:"addButtonTheme",value:function(e,t){var n=this;if(!t||!e)return!1;e.split(" ").forEach((function(r){t.split(" ").forEach((function(t){n.options.buttonTheme||(n.options.buttonTheme=[]);var o=!1;n.options.buttonTheme.map((function(e){if(e.class.split(" ").includes(t)){o=!0;var n=e.buttons.split(" ");n.includes(r)||(o=!0,n.push(r),e.buttons=n.join(" "))}return e})),o||n.options.buttonTheme.push({class:t,buttons:e})}))})),this.render()}},{key:"removeButtonTheme",value:function(e,t){var n=this;if(!e&&!t)return this.options.buttonTheme=[],this.render(),!1;e&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(e.split(" ").forEach((function(e){n.options.buttonTheme.map((function(r,o){if(t&&t.includes(r.class)||!t){var i=r.buttons.split(" ").filter((function(t){return t!==e}));i.length?r.buttons=i.join(" "):(n.options.buttonTheme.splice(o,1),r=null)}return r}))})),this.render())}},{key:"getButtonElement",value:function(e){var t,n=this.buttonElements[e];return n&&(t=1<n.length?n:n[0]),t}},{key:"inputPatternIsValid",value:function(e){var t,n=this.options.inputPattern;if((t=n instanceof RegExp?n:n[this.options.inputName])&&e){var r=t.test(e);return this.options.debug&&console.log('inputPattern ("'.concat(t,'"): ').concat(r?"passed":"did not pass!")),r}return!0}},{key:"setEventListeners",value:function(){!this.isFirstKeyboardInstance&&this.allKeyboardInstances||(this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")")),document.addEventListener("keyup",this.handleKeyUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd))}},{key:"handleKeyUp",value:function(e){this.caretEventHandler(e),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(e)}},{key:"handleKeyDown",value:function(e){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(e)}},{key:"handleMouseUp",value:function(e){this.caretEventHandler(e)}},{key:"handleTouchEnd",value:function(e){this.caretEventHandler(e)}},{key:"caretEventHandler",value:function(e){var t;e.target.tagName&&(t=e.target.tagName.toLowerCase()),this.dispatch((function(n){var r=e.target===n.keyboardDOM||e.target&&n.keyboardDOM.contains(e.target);n.isMouseHold&&(n.isMouseHold=!1),"textarea"!==t&&"input"!==t||n.options.disableCaretPositioning?!n.options.disableCaretPositioning&&r||n.setCaretPosition(null):(n.setCaretPosition(e.target.selectionStart,e.target.selectionEnd),n.options.debug&&console.log("Caret at: ",n.getCaretPosition(),n.getCaretPositionEnd(),e&&e.target.tagName.toLowerCase(),"(".concat(n.keyboardDOMClass,")")))}))}},{key:"recurseButtons",value:function(e){var t=this;if(!e)return!1;Object.keys(this.buttonElements).forEach((function(n){return t.buttonElements[n].forEach(e)}))}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName)),document.removeEventListener("keyup",this.handleKeyUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null;var e=function(e){e.onpointerdown=null,e.onpointerup=null,e.onpointercancel=null,e.ontouchstart=null,e.ontouchend=null,e.ontouchcancel=null,e.onclick=null,e.onmousedown=null,e.onmouseup=null,e.remove(),e=null};this.recurseButtons(e),e=this.recurseButtons=null,this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.clear(),window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(e){var t=this.options.buttonTheme,n=[];return Array.isArray(t)&&t.forEach((function(t){if(t.class&&"string"==typeof t.class&&t.buttons&&"string"==typeof t.buttons){var r=t.class.split(" ");t.buttons.split(" ").includes(e)&&(n=[].concat(y(n),y(r)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',t)})),n}},{key:"setDOMButtonAttributes",value:function(e,t){var n=this.options.buttonAttributes;Array.isArray(n)&&n.forEach((function(n){n.attribute&&"string"==typeof n.attribute&&n.value&&"string"==typeof n.value&&n.buttons&&"string"==typeof n.buttons?n.buttons.split(" ").includes(e)&&t(n.attribute,n.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',n)}))}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(e){if(e.target.classList.contains("hg-button"))return e.preventDefault(),e.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit()}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender()}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender()}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var e=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(t){(new t).init(e)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,t){return!!this.modules[e]&&this.modules[e][t]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,t,n,r){var o=this,i=Array.from(e.children),s=0;return i.length&&n.forEach((function(n,a){var c=r[a];if(!(c&&n<c))return!1;var l=n-s,u=c-s,f=document.createElement("div");f.className+="hg-button-container";var d="".concat(o.options.layoutName,"-r").concat(t,"c").concat(a);f.setAttribute("data-skUID",d);var p=i.splice(l,u-l+1);s=u-l,p.forEach((function(e){return f.appendChild(e)})),i.splice(l,0,f),e.innerHTML="",i.forEach((function(t){return e.appendChild(t)})),o.options.debug&&console.log("rowDOMContainer",p,l,u,s+1)})),e}},{key:"render",value:function(){var e=this;this.clear(),this.initialized||this.beforeFirstRender(),this.beforeRender();var t="hg-layout-".concat(this.options.layoutName),n=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},r=this.options.useTouchEvents||!1,o=r?"hg-touch-events":"",i=this.options.useMouseEvents||!1,s=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,t,this.keyboardPluginClasses,o),n[this.options.layoutName].forEach((function(t,n){var o=t.split(" "),a=document.createElement("div");a.className+="hg-row";var c=[],l=[];o.forEach((function(t,o){var u,f=!s&&"string"==typeof t&&1<t.length&&0===t.indexOf("["),d=!s&&"string"==typeof t&&1<t.length&&t.indexOf("]")===t.length-1;f&&(c.push(o),t=t.replace(/\[/g,"")),d&&(l.push(o),t=t.replace(/\]/g,""));var p=e.utilities.getButtonClass(t),h=e.utilities.getButtonDisplayName(t,e.options.display,e.options.mergeDisplay),m=e.options.useButtonTag?"button":"div",v=document.createElement(m);v.className+="hg-button ".concat(p),(u=v.classList).add.apply(u,y(e.getButtonThemeClasses(t))),e.setDOMButtonAttributes(t,(function(e,t){v.setAttribute(e,t)})),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||r||i?r?(v.ontouchstart=function(n){e.handleButtonClicked(t),e.handleButtonMouseDown(t,n)},v.ontouchend=function(n){e.handleButtonMouseUp(t,n)},v.ontouchcancel=function(n){e.handleButtonMouseUp(t,n)}):(v.onclick=function(){e.isMouseHold=!1,e.handleButtonClicked(t)},v.onmousedown=function(n){e.handleButtonMouseDown(t,n)},v.onmouseup=function(n){e.handleButtonMouseUp(t,n)}):(v.onpointerdown=function(n){e.handleButtonClicked(t),e.handleButtonMouseDown(t,n)},v.onpointerup=function(n){e.handleButtonMouseUp(t,n)},v.onpointercancel=function(n){e.handleButtonMouseUp(t,n)}),v.setAttribute("data-skBtn",t);var _="".concat(e.options.layoutName,"-r").concat(n,"b").concat(o);v.setAttribute("data-skBtnUID",_);var g=document.createElement("span");g.innerHTML=h,v.appendChild(g),e.buttonElements[t]||(e.buttonElements[t]=[]),e.buttonElements[t].push(v),a.appendChild(v)})),a=e.parseRowDOMContainers(a,n,c,l),e.keyboardDOM.appendChild(a)})),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||r||i?r?(document.ontouchend=function(){return e.handleButtonMouseUp()},document.ontouchcancel=function(){return e.handleButtonMouseUp()},this.keyboardDOM.ontouchstart=function(t){return e.handleKeyboardContainerMouseDown(t)}):r||(document.onmouseup=function(){return e.handleButtonMouseUp()},this.keyboardDOM.onmousedown=function(t){return e.handleKeyboardContainerMouseDown(t)}):(document.onpointerup=function(){return e.handleButtonMouseUp()},this.keyboardDOM.onpointerdown=function(t){return e.handleKeyboardContainerMouseDown(t)}),this.onInit())}}]),g);function g(){var e=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,g),v(this,"handleParams",(function(e){var t,n,r;if("string"==typeof e[0])t=e[0].split(".").join(""),n=document.querySelector(".".concat(t)),r=e[1];else if(e[0]instanceof HTMLDivElement){if(!e[0].className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");t=e[0].className.split(" ")[0],n=e[0],r=e[1]}else t="simple-keyboard",n=document.querySelector(".".concat(t)),r=e[0];return{keyboardDOMClass:t,keyboardDOM:n,options:r}})),v(this,"getOptions",(function(){return e.options})),v(this,"getCaretPosition",(function(){return e.caretPosition})),v(this,"getCaretPositionEnd",(function(){return e.caretPositionEnd})),v(this,"registerModule",(function(t,n){e.modules[t]||(e.modules[t]={}),n(e.modules[t])})),v(this,"getKeyboardClassString",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return[e.keyboardDOMClass].concat(n).filter((function(e){return!!e})).join(" ")}));for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=this.handleParams(n),i=o.keyboardDOMClass,s=o.keyboardDOM,a=o.options,c=void 0===a?{}:a;if(this.utilities=new d({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=s,this.options=c,this.options.layoutName=this.options.layoutName||"default",this.options.theme=this.options.theme||"hg-theme-default",this.options.inputName=this.options.inputName||"default",this.options.preventMouseDownDefault=this.options.preventMouseDownDefault||!1,this.keyboardPluginClasses="",d.bindMethods(g,this),this.input={},this.input[this.options.inputName]="",this.keyboardDOMClass=i,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),(window.SimpleKeyboardInstances[this.currentInstanceName]=this).allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new p({dispatch:this.dispatch,getOptions:this.getOptions}),!this.keyboardDOM)throw console.warn('".'.concat(i,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}t.default=_}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/",e(e.s=0);function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n},"object"==typeof n&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define("SimpleKeyboard",[],r):"object"==typeof n?n.SimpleKeyboard=r():this.SimpleKeyboard=r()},{}],145:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.Build={short:"0.72.1",version:"0.72.1 (fa5d19a2a52fab05efc524c8c6820f16)",buildSeed:1635834249712}},{"core-js/modules/es6.object.define-property":114}],146:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("../dom/keys"),s=e("../dom/pointer"),a=function(){for(var e={},t=0,n=Object.keys(i.namedKeyCodes);t<n.length;t++){var r=n[t];e[i.namedKeyCodes[r]]=r.substr(4,2)}return e}();function c(e,t,n){var o=Math.round(.6*n),i=Math.round(.5*n),a=Math.max(1,Math.round(n/20)),c=m[e.toLowerCase()],u=void 0===c?e:"",f=l("emulator-button-touch-zone"),d=l("emulator-button"),p=l("emulator-button-text",void 0===c?void 0===u||0===u.length?"□":u.substr(0,1).toUpperCase():"");function h(e){void 0!==t.onDown&&t.onDown(),void 0!==t.onClick&&t.onClick(),e.stopPropagation(),e.preventDefault()}function y(e){void 0!==t.onUp&&t.onUp(),e.stopPropagation(),e.preventDefault()}function v(e){e.stopPropagation(),e.preventDefault()}void 0!==c&&(d.style.backgroundImage='url("'+c+'")'),d.style.width=o+"px",d.style.height=o+"px",p.style.fontSize=i+"px",f.widthPx=n-2*a,f.heightPx=n-2*a,f.style.width=f.widthPx+"px",f.style.height=f.heightPx+"px",f.style.borderWidth=a+"px",f.appendChild(d),f.appendChild(p);var _,g={capture:!0},b=r(s.pointer.starters);try{for(b.s();!(_=b.n()).done;){var w=_.value;f.addEventListener(w,h,g)}}catch(e){b.e(e)}finally{b.f()}var x,j=r(s.pointer.enders);try{for(j.s();!(x=j.n()).done;){var k=x.value;f.addEventListener(k,y,g)}}catch(e){j.e(e)}finally{j.f()}var E,S=r(s.pointer.changers);try{for(S.s();!(E=S.n()).done;){var D=E.value;f.addEventListener(D,v,g)}}catch(e){S.e(e)}finally{S.f()}var C,O=r(s.pointer.leavers);try{for(O.s();!(C=O.n()).done;){var P=C.value;f.addEventListener(P,v,g)}}catch(e){O.e(e)}finally{O.f()}var M,B=r(s.pointer.prevents);try{for(B.s();!(M=B.n()).done;){var A=M.value;f.addEventListener(A,v,g)}}catch(e){B.e(e)}finally{B.f()}return f}function l(e,t){var n=document.createElement("div");return n.className=e,void 0!==t&&(n.innerHTML=t),n}function u(e){return"number"==typeof e?a[e]:e}function f(e,t){return"click"===e.action?{onClick:function(){return t.fireKeyPress(e.mapTo)}}:{onDown:function(){return t.fireKeyDown(e.mapTo)},onUp:function(){return t.fireKeyUp(e.mapTo)}}}n.createButton=c,n.deprecatedButton=function(e,t,n,o){var s,a=Math.round(o/4),l=[],d=r(n);try{for(d.s();!(s=d.n()).done;){var p=s.value;if(p.mapTo!==i.KBD_NONE){var h=c((p.symbol||u(p.mapTo)).toUpperCase(),f(p,e),o);h.style.position="absolute";var y=p.style;if(y)for(var m=0,v=Object.keys(y);m<v.length;m++){var _=v[m];h.style[_]=y[_]}if(void 0!==p.position){var g=p.position.left,b=p.position.top,w=p.position.bottom,x=p.position.right;void 0!==g&&(h.style.left=a*g+o*(g-1)+"px"),void 0!==x&&(h.style.right=a*x+o*(x-1)+"px"),void 0!==b&&(h.style.top=a*b+o*(b-1)+"px"),void 0!==w&&(h.style.bottom=a*w+o*(w-1)+"px")}e.mouseOverlay.appendChild(h),l.push(h)}}}catch(t){d.e(t)}finally{d.f()}return function(){var t,n=r(l);try{for(n.s();!(t=n.n()).done;){var o=t.value;o.parentElement===e.mouseOverlay&&e.mouseOverlay.removeChild(o)}}catch(t){n.e(t)}finally{n.f()}}};var d="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' fill='%23FFF' enable-background='new 0 0 20 20' xml:space='preserve'%3E%3Ctitle%3EShape%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-1' sketch:type='MSPage'%3E%3Cg id='Artboard-1' transform='translate(-3.000000, -1.000000)' sketch:type='MSArtboardGroup'%3E%3Cpath id='Shape' sketch:type='MSShapeGroup' d='M19,12c-0.3,0-0.5,0.1-0.7,0.3L14,16.6V3c0-0.5-0.4-1-1-1s-1,0.5-1,1v13.6 l-4.3-4.3C7.5,12.1,7.3,12,7,12c-0.5,0-1,0.4-1,1c0,0.3,0.1,0.5,0.3,0.7l6,6c0.2,0.2,0.4,0.3,0.7,0.3s0.5-0.1,0.7-0.3l6-6 c0.2-0.2,0.3-0.4,0.3-0.7C20,12.4,19.5,12,19,12L19,12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",p="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' enable-background='new 0 0 20 20' fill='%23FFF' xml:space='preserve'%3E%3Cg id='left_arrow_1_'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18,9H4.41l4.29-4.29C8.89,4.53,9,4.28,9,4c0-0.55-0.45-1-1-1 C7.72,3,7.47,3.11,7.29,3.29l-6,6C1.11,9.47,1,9.72,1,10c0,0.28,0.11,0.53,0.29,0.71l6,6C7.47,16.89,7.72,17,8,17 c0.55,0,1-0.45,1-1c0-0.28-0.11-0.53-0.29-0.71L4.41,11H18c0.55,0,1-0.45,1-1C19,9.45,18.55,9,18,9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",h="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' fill='%23fff' viewBox='0 0 20 20' enable-background='new 0 0 20 20' xml:space='preserve'%3E%3Cg id='right_arrow_1_'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18.71,9.29l-6-6C12.53,3.11,12.28,3,12,3c-0.55,0-1,0.45-1,1 c0,0.28,0.11,0.53,0.29,0.71L15.59,9H2c-0.55,0-1,0.45-1,1c0,0.55,0.45,1,1,1h13.59l-4.29,4.29C11.11,15.47,11,15.72,11,16 c0,0.55,0.45,1,1,1c0.28,0,0.53-0.11,0.71-0.29l6-6C18.89,10.53,19,10.28,19,10C19,9.72,18.89,9.47,18.71,9.29z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",y="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' fill='%23fff' viewBox='0 0 20 20' enable-background='new 0 0 20 20' xml:space='preserve'%3E%3Cg id='key_enter_1_'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18,2c-0.55,0-1,0.45-1,1v5c0,2.21-1.79,4-4,4H4.41l2.29-2.29 C6.89,9.53,7,9.28,7,9c0-0.55-0.45-1-1-1C5.72,8,5.47,8.11,5.29,8.29l-4,4C1.11,12.47,1,12.72,1,13c0,0.28,0.11,0.53,0.29,0.71 l4,4C5.47,17.89,5.72,18,6,18c0.55,0,1-0.45,1-1c0-0.28-0.11-0.53-0.29-0.71L4.41,14H13c3.31,0,6-2.69,6-6V3C19,2.45,18.55,2,18,2 z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",m={fullscreen:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16' enable-background='new 0 0 16 16' xml:space='preserve'%3E%3Cg id='maximize_1_' fill='%23FFFFFF'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.99,8.99c-0.28,0-0.53,0.11-0.71,0.29l-3.29,3.29v-1.59c0-0.55-0.45-1-1-1 s-1,0.45-1,1v4c0,0.55,0.45,1,1,1h4c0.55,0,1-0.45,1-1s-0.45-1-1-1H3.41L6.7,10.7c0.18-0.18,0.29-0.43,0.29-0.71 C6.99,9.44,6.54,8.99,5.99,8.99z M14.99-0.01h-4c-0.55,0-1,0.45-1,1s0.45,1,1,1h1.59L9.28,5.29C9.1,5.47,8.99,5.72,8.99,5.99 c0,0.55,0.45,1,1,1c0.28,0,0.53-0.11,0.71-0.29l3.29-3.29v1.59c0,0.55,0.45,1,1,1s1-0.45,1-1v-4C15.99,0.44,15.54-0.01,14.99-0.01 z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",save:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 18.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16' enable-background='new 0 0 16 16' fill='%23FFFFFF' xml:space='preserve'%3E%3Cg id='floppy_disk'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.71,2.29l-2-2C13.53,0.11,13.28,0,13,0h-1v6H4V0H1C0.45,0,0,0.45,0,1v14 c0,0.55,0.45,1,1,1h14c0.55,0,1-0.45,1-1V3C16,2.72,15.89,2.47,15.71,2.29z M14,15H2V9c0-0.55,0.45-1,1-1h10c0.55,0,1,0.45,1,1V15 z M11,1H9v4h2V1z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A",options:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' enable-background='new 0 0 20 20' fill='%23FFF' xml:space='preserve'%3E%3Cg id='cog_2_'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M19,8h-2.31c-0.14-0.46-0.33-0.89-0.56-1.3l1.7-1.7c0.39-0.39,0.39-1.02,0-1.41 l-1.41-1.41c-0.39-0.39-1.02-0.39-1.41,0l-1.7,1.7c-0.41-0.22-0.84-0.41-1.3-0.55V1c0-0.55-0.45-1-1-1H9C8.45,0,8,0.45,8,1v2.33 C7.52,3.47,7.06,3.67,6.63,3.91L5,2.28c-0.37-0.37-0.98-0.37-1.36,0L2.28,3.64C1.91,4.02,1.91,4.63,2.28,5l1.62,1.62 C3.66,7.06,3.46,7.51,3.31,8H1C0.45,8,0,8.45,0,9v2c0,0.55,0.45,1,1,1h2.31c0.14,0.46,0.33,0.89,0.56,1.3L2.17,15 c-0.39,0.39-0.39,1.02,0,1.41l1.41,1.41c0.39,0.39,1.02,0.39,1.41,0l1.7-1.7c0.41,0.22,0.84,0.41,1.3,0.55V19c0,0.55,0.45,1,1,1h2 c0.55,0,1-0.45,1-1v-2.33c0.48-0.14,0.94-0.35,1.37-0.59L15,17.72c0.37,0.37,0.98,0.37,1.36,0l1.36-1.36 c0.37-0.37,0.37-0.98,0-1.36l-1.62-1.62c0.24-0.43,0.45-0.89,0.6-1.38H19c0.55,0,1-0.45,1-1V9C20,8.45,19.55,8,19,8z M10,14 c-2.21,0-4-1.79-4-4c0-2.21,1.79-4,4-4s4,1.79,4,4C14,12.21,12.21,14,10,14z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",keyboard:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16' enable-background='new 0 0 16 16' xml:space='preserve'%3E%3Cg id='manually_entered_data_2_'%3E%3Cg%3E%3Cpath fill='%23FFFFFF' fill-rule='evenodd' clip-rule='evenodd' d='M1,8h3.76l2-2H1C0.45,6,0,6.45,0,7C0,7.55,0.45,8,1,8z M15.49,3.99 C15.8,3.67,16,3.23,16,2.75C16,1.78,15.22,1,14.25,1c-0.48,0-0.92,0.2-1.24,0.51l-1.44,1.44l2.47,2.47L15.49,3.99z M1,4h7.76l2-2 H1C0.45,2,0,2.45,0,3C0,3.55,0.45,4,1,4z M1,10c-0.55,0-1,0.45-1,1c0,0.48,0.35,0.86,0.8,0.96L2.76,10H1z M10.95,3.57l-6.69,6.69 l2.47,2.47l6.69-6.69L10.95,3.57z M15.2,6.04L13.24,8H15c0.55,0,1-0.45,1-1C16,6.52,15.65,6.14,15.2,6.04z M2,15l3.86-1.39 l-2.46-2.44L2,15z M15,10h-3.76l-2,2H15c0.55,0,1-0.45,1-1C16,10.45,15.55,10,15,10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",up:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' fill='%23FFF' enable-background='new 0 0 20 20' xml:space='preserve'%3E%3Ctitle%3EShape%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-1' sketch:type='MSPage'%3E%3Cg id='Artboard-1' transform='translate(-3.000000, -1.000000)' sketch:type='MSArtboardGroup'%3E%3Cpath id='Shape' sketch:type='MSShapeGroup' d='M19.7,8.3l-6-6C13.5,2.1,13.3,2,13,2s-0.5,0.1-0.7,0.3l-6,6C6.1,8.5,6,8.7,6,9 c0,0.6,0.5,1,1,1c0.3,0,0.5-0.1,0.7-0.3L12,5.4V19c0,0.5,0.4,1,1,1s1-0.5,1-1V5.4l4.3,4.3C18.5,9.9,18.7,10,19,10c0.5,0,1-0.4,1-1 C20,8.7,19.9,8.5,19.7,8.3L19.7,8.3z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",down:d,do:d,dw:d,dwn:d,left:p,le:p,lft:p,right:h,ri:h,rght:h,rgh:h,enter:y,en:y,enr:y,ent:y,entr:y}},{"../dom/keys":157,"../dom/pointer":160,"core-js/modules/es6.array.from":103,"core-js/modules/es6.array.is-array":105,"core-js/modules/es6.array.iterator":106,"core-js/modules/es6.date.to-string":108,"core-js/modules/es6.function.name":110,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.keys":115,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.regexp.to-string":121,"core-js/modules/es6.string.iterator":122,"core-js/modules/es6.symbol":123,"core-js/modules/es7.symbol.async-iterator":128,"core-js/modules/web.dom.iterable":129}],147:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.getGrid=function(e){switch(e){case"square":return new(function(){function e(){r(this,e),this.aspect=.625}return i(e,[{key:"getConfiguration",value:function(e,t){for(var n=this.getCols(),r=this.getRows(),o=Math.floor(n/2),i=Math.floor(r/2),s=5*e/100/2,a=s,c=(e-2*s)/n,l=(t-2*a)/r,u=Math.min(c,l),f=[],d=0;d<r;++d){for(var p=[],h=0;h<n;++h)p.push({centerX:h<o?s+u*(h+.5):e-s-u*(n-h-1+.5),centerY:d<i?a+u*(d+.5):t-a-u*(r-d-1+.5)});f.push(p)}return{gridType:"square",cells:f,columnWidth:u,rowHeight:u,columnsPadding:s,rowsPadding:a,width:e,height:t}}},{key:"getCols",value:function(){return 10}},{key:"getRows",value:function(){return Math.floor(this.getCols()*this.aspect)+1}}]),e}());case"honeycomb":return new(function(){function e(){r(this,e),this.aspect=.625}return i(e,[{key:"getConfiguration",value:function(e,t){for(var n=this.getCols(),r=this.getRows(),o=Math.floor(n/2),i=Math.floor(r/2),s=5*e/100/2,a=s,c=(e-2*s)/n,l=(t-2*a)/r,u=Math.min(c,l),f=[],d=0;d<r;++d){for(var p=[],h=d%2==0?n:n-1,y=d%2==0?0:u/2,m=0;m<h;++m)p.push({centerX:m<o?y+s+u*(m+.5):y+e-s-u*(n-m-1+.5),centerY:d<i?a+u*(d+.5):t-a-u*(r-d-1+.5)});f.push(p)}return{gridType:"honeycomb",cells:f,columnWidth:u,rowHeight:u,columnsPadding:s,rowsPadding:a,width:e,height:t}}},{key:"getCols",value:function(){return 10}},{key:"getRows",value:function(){return Math.floor(this.getCols()*this.aspect)+1}}]),e}())}throw new Error("Unknown grid type "+e)}},{"core-js/modules/es6.object.define-property":114}],148:[function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.keyboard=function(e,t,n){var o=n||{};function i(e){return void 0!==o[e]?o[e]:e}return e.setOnKeyDown((function(e){t.sendKeyEvent(i(e),!0)})),e.setOnKeyUp((function(e){t.sendKeyEvent(i(e),!1)})),e.setOnKeyPress((function(e){t.simulateKeyPress(i(e))})),e.setOnKeysPress((function(e){t.simulateKeyPress.apply(t,r(e))})),function(){e.setOnKeyDown((function(e){})),e.setOnKeyUp((function(e){})),e.setOnKeyPress((function(e){})),e.setOnKeysPress((function(e){}))}}},{"core-js/modules/es6.array.from":103,"core-js/modules/es6.array.is-array":105,"core-js/modules/es6.date.to-string":108,"core-js/modules/es6.function.name":110,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.regexp.to-string":121,"core-js/modules/es6.string.iterator":122,"core-js/modules/es6.symbol":123,"core-js/modules/es7.symbol.async-iterator":128,"core-js/modules/web.dom.iterable":129}],149:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.extractLayersConfig=function(e){return void 0!==e.layersConfig?e.layersConfig:void 0!==e.layers?e.layers:null}},{"core-js/modules/es6.object.define-property":114}],150:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/es6.object.define-properties"),e("core-js/modules/es7.object.get-own-property-descriptors"),e("core-js/modules/es6.array.for-each"),e("core-js/modules/es6.array.filter"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.keys"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.array.index-of"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var l=e("./grid"),u=e("./button"),f=e("./keyboard"),d=e("./mouse"),p=e("./options"),h=e("../dom/pointer"),y=e("nipplejs");n.initLayersControl=function(e,t,n,r,i){var s,c,u,p,h,y,_,g,b=5<arguments.length&&void 0!==arguments[5]&&arguments[5],w=t.layers[0];if(void 0!==i){var x,j=a(t.layers);try{for(j.s();!(x=j.n()).done;){var k=x.value;if(k.title===i){w=k;break}}}catch(e){j.e(e)}finally{j.f()}}return s=w,c=e,u=n,p=r,h=b,y=f.keyboard(c,u),_=d.mouse(c,u),g=[],c.addOnResize(E),E(c.width,c.height),function(){c.removeOnResize(E),y(),_();var e,t=a(g);try{for(t.s();!(e=t.n()).done;)(0,e.value)()}catch(e){t.e(e)}finally{t.f()}};function E(e,t){var n,r,i=a(g);try{for(i.s();!(r=i.n()).done;)(0,r.value)()}catch(e){i.e(e)}finally{i.f()}g.splice(0,g.length);var f=l.getGrid(s.grid).getConfiguration(e,t),d=new m,y=-1;if(0===(null===(n=c.options.optionControls)||void 0===n?void 0:n.length)){var _,b=a(s.controls);try{for(b.s();!(_=b.n()).done;){var w=_.value,x=w.row;if("Options"===w.type){y=x;break}}}catch(e){b.e(e)}finally{b.f()}}var j={};if(h){var k,E=a(s.controls);try{for(E.s();!(k=E.n()).done;){var S=k.value,D=S.row,C=S.column,O=f.cells[D].length,P=O/2;D===y&&P<=C&&(C=Math.min(C+1,O-1)),void 0===j[D]&&(j[D]={leftStart:P,leftEnd:0,rightStart:O-1,rightEnd:P}),C<P?(j[D].leftStart=Math.min(j[D].leftStart,C),j[D].leftEnd=Math.max(j[D].leftEnd,C)):(j[D].rightStart=Math.min(j[D].rightStart,C),j[D].rightEnd=Math.max(j[D].rightEnd,C))}}catch(e){E.e(e)}finally{E.f()}}var M,B=a(s.controls);try{for(B.s();!(M=B.n()).done;){var A=M.value,T=v[A.type];if(void 0!==T){var I=o({},A),L=f.cells[A.row].length,K=L/2;if(y===A.row&&A.column>=K&&(I.column=Math.min(I.column+1,L-1)),h){var R=j[I.row],F=R.leftStart,N=R.leftEnd,U=R.rightStart,z=R.rightEnd,H=I.column<K;H?I.column+=K-N+K-F-1:I.column-=U-K+K-(L-z)+1,I.column>=L?(console.error("Column",I.column,"is out of bound",L,H?"[leftSide]":"[rightSide]",j),I.column=L-1):I.column<0&&(console.error("Column",I.column,"is out of bound",0,H?"[leftSide]":"[rightSide]",j),I.column=0)}var W=T(I,c,u,f,d,p);g.push(W)}else console.error("Factory for control '"+A.type+"' is not defined")}}catch(e){B.e(e)}finally{B.f()}}};var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sensors={}}var t,n;return t=e,(n=[{key:"activate",value:function(e,t){var n=this.sensors[t+"_"+e];void 0!==n&&n.activate()}},{key:"deactivate",value:function(e,t){var n=this.sensors[t+"_"+e];void 0!==n&&n.deactivate()}},{key:"register",value:function(e,t,n){this.sensors[t+"_"+e]=n}}])&&s(t.prototype,n),e}(),v={Key:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h={onDown:function(){return n.sendKeyEvent(e.mapTo,!0)},onUp:function(){return n.sendKeyEvent(e.mapTo,!1)}},y=u.createButton(e.symbol,h,a);return y.style.position="absolute",y.style.left=d-y.widthPx/2+"px",y.style.top=p-y.heightPx/2+"px",o.register(c,l,{activate:h.onDown,deactivate:h.onUp}),t.mouseOverlay.appendChild(y),function(){return t.mouseOverlay.removeChild(y)}},Options:function(e,t,n,r,o,i){var s;if(0===(null===(s=t.options.optionControls)||void 0===s?void 0:s.length))return function(){};if(void 0!==t.options.optionControls&&1===t.options.optionControls.length&&"keyboard"===t.options.optionControls[0])return _(e,t,0,r);var a=r.cells,c=r.columnWidth,l=r.rowHeight,u=e.row,f=e.column,d=a[u][f],h=d.centerX,y=d.centerY-l/2,m=h-c/2,v=r.width-m-c;return p.options(t,["default"],(function(){}),c,y,v)},Keyboard:_,Switch:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h=u.createButton(e.symbol,{onUp:function(){return i.setLayersConfig(i.getLayersConfig(),e.layerName)}},a);return h.style.position="absolute",h.style.left=d-h.widthPx/2+"px",h.style.top=p-h.heightPx/2+"px",t.mouseOverlay.appendChild(h),function(){t.mouseOverlay.removeChild(h)}},ScreenMove:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h=.5,y=.5;0<=e.direction.indexOf("up")&&(y=0),0<=e.direction.indexOf("down")&&(y=1),0<=e.direction.indexOf("left")&&(h=0),0<=e.direction.indexOf("right")&&(h=1);var m={onDown:function(){n.sendMouseMotion(h,y)},onUp:function(){n.sendMouseMotion(.5,.5)}},v=u.createButton(e.symbol,m,a);return v.style.position="absolute",v.style.left=d-v.widthPx/2+"px",v.style.top=p-v.heightPx/2+"px",o.register(c,l,{activate:m.onDown,deactivate:m.onUp}),t.mouseOverlay.appendChild(v),function(){t.mouseOverlay.removeChild(v)}},PointerButton:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=e.click,d=s[c][l],p=d.centerX,h=d.centerY,y={onDown:function(){f?n.sendMouseButton(e.button,!0):t.pointerButton=e.button},onUp:function(){f?n.sendMouseButton(e.button,!1):t.pointerButton=0}},m=u.createButton(e.symbol,y,a);return m.style.position="absolute",m.style.left=p-m.widthPx/2+"px",m.style.top=h-m.heightPx/2+"px",o.register(c,l,{activate:y.onDown,deactivate:y.onUp}),t.mouseOverlay.appendChild(m),function(){t.mouseOverlay.removeChild(m)}},PointerMove:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=e.x,d=e.y,p=s[c][l],h=p.centerX,y=p.centerY,m={onDown:function(){n.sendMouseMotion(f,d)},onUp:function(){n.sendMouseMotion(f,d)}},v=u.createButton(e.symbol,m,a);return v.style.position="absolute",v.style.left=h-v.widthPx/2+"px",v.style.top=y-v.heightPx/2+"px",o.register(c,l,{activate:m.onDown,deactivate:m.onUp}),t.mouseOverlay.appendChild(v),function(){t.mouseOverlay.removeChild(v)}},PointerReset:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h={onDown:function(){n.sendMouseSync()}},y=u.createButton(e.symbol,h,a);return y.style.position="absolute",y.style.left=d-y.widthPx/2+"px",y.style.top=p-y.heightPx/2+"px",o.register(c,l,{activate:h.onDown,deactivate:function(){}}),t.mouseOverlay.appendChild(y),function(){t.mouseOverlay.removeChild(y)}},PointerToggle:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h={onDown:function(){t.pointerDisabled=!t.pointerDisabled,t.pointerDisabled?y.classList.contains("emulator-button-highlight")||y.classList.add("emulator-button-highlight"):y.classList.remove("emulator-button-highlight")}},y=u.createButton(e.symbol,h,a);return y.style.position="absolute",y.style.left=d-y.widthPx/2+"px",y.style.top=p-y.heightPx/2+"px",o.register(c,l,{activate:h.onDown,deactivate:function(){}}),t.mouseOverlay.appendChild(y),function(){t.mouseOverlay.removeChild(y)}},NippleActivator:function(e,t,n,r,o,i){var s=r.cells,c=r.columnWidth,l=r.rowHeight,u=r.width,f=r.height,d=e.row,p=e.column,m=s[d][p],v=m.centerX,_=m.centerY,g=document.createElement("div"),b=Math.max(0,v-1.5*c),w=Math.max(0,_-1.5*l),x=Math.max(0,u-v-1.5*c),j=Math.max(0,f-_-1.5*l);g.style.position="absolute",g.style.zIndex="999",g.style.left=b+"px",g.style.top=w+"px",g.style.right=x+"px",g.style.bottom=j+"px",t.mouseOverlay.appendChild(g);var k=y.create({zone:g,multitouch:!1,maxNumberOfNipples:1,mode:"static",follow:!1,dynamicPage:!0,size:1.5*Math.max(c,l),position:{left:(u-x-b)/2+"px",top:(f-j-w)/2+"px"}}),E=-1,S=-1;k.on("move",(function(e,t){if(t.distance<10)return o.deactivate(S,E),void(S=E=-1);var n,r=-1,i=t.angle.degree;n=22.5<i&&i<=67.5?(r=p+1,d-1):67.5<i&&i<=112.5?(r=p,d-1):112.5<i&&i<=157.5?(r=p-1,d-1):157.5<i&&i<=202.5?(r=p-1,d):202.5<i&&i<=247.5?(r=p-1,d+1):247.5<i&&i<=292.5?(r=p,d+1):292.5<i&&i<=337.5?(r=p+1,d+1):(r=p+1,d),E===r&&S===n||(o.deactivate(S,E),o.activate(n,r),E=r,S=n)}));var D=!1;k.on("start",(function(){D=!0})),k.on("end",(function(){D=!1,o.deactivate(S,E),E=S=-1}));var C={capture:!0};function O(e){D&&(D=!1,k.processOnEnd(e),e.stopPropagation())}var P,M=a(h.pointer.enders);try{for(M.s();!(P=M.n()).done;){var B=P.value;t.mouseOverlay.addEventListener(B,O,C)}}catch(e){M.e(e)}finally{M.f()}return function(){k.destroy(),t.mouseOverlay.removeChild(g);var e,n=a(h.pointer.enders);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.mouseOverlay.removeEventListener(r,O,C)}}catch(e){n.e(e)}finally{n.f()}}}};function _(e,t,n,r,o,i){function s(e){e?y.children[0].classList.add("emulator-control-close-icon"):y.children[0].classList.remove("emulator-control-close-icon")}var a=r.cells,c=r.columnWidth,l=e.row,f=e.column,d=a[l][f],p=d.centerX,h=d.centerY,y=u.createButton("keyboard",{onUp:function(){return t.toggleKeyboard()}},c);return t.setOnKeyboardVisibility(s),y.style.position="absolute",y.style.left=p-y.widthPx/2+"px",y.style.top=h-y.heightPx/2+"px",t.mouseOverlay.appendChild(y),function(){t.mouseOverlay.removeChild(y),t.removeOnKeyboardVisibility(s)}}},{"../dom/pointer":160,"./button":146,"./grid":147,"./keyboard":148,"./mouse":152,"./options":155,"core-js/modules/es6.array.filter":101,"core-js/modules/es6.array.for-each":102,"core-js/modules/es6.array.from":103,"core-js/modules/es6.array.index-of":104,"core-js/modules/es6.array.is-array":105,"core-js/modules/es6.array.iterator":106,"core-js/modules/es6.date.to-string":108,"core-js/modules/es6.function.name":110,"core-js/modules/es6.object.define-properties":113,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.keys":115,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.regexp.to-string":121,"core-js/modules/es6.string.iterator":122,"core-js/modules/es6.symbol":123,"core-js/modules/es7.object.get-own-property-descriptors":127,"core-js/modules/es7.symbol.async-iterator":128,"core-js/modules/web.dom.iterable":129,nipplejs:141}],151:[function(e,t,n){"use strict";e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var r=e("./button"),o=e("./mouse"),i=e("./nipple"),s=e("./options"),a=e("./keyboard");n.initLegacyLayersControl=function(e,t,n){function c(s){f.keyboard(),f.mouse(),f.gestures(),f.buttons(),f.keyboard=function(){},f.mouse=function(){},f.gestures=function(){},f.buttons=function(){};var c=t[s];void 0!==c&&(f.keyboard=a.keyboard(e,n,c.mapper),void 0!==c.gestures&&0<c.gestures.length?f.gestures=i.nipple(e,n,c.gestures):f.mouse=o.mouse(e,n),void 0!==c.buttons&&c.buttons.length&&(f.buttons=r.deprecatedButton(e,n,c.buttons,54)))}var l,u=Object.keys(t),f={keyboard:function(){},mouse:function(){},gestures:function(){},buttons:function(){}},d=0===(null===(l=e.options.optionControls)||void 0===l?void 0:l.length)?function(){}:s.options(e,u,c,54,13.5,0);return c("default"),function(){f.gestures(),f.buttons(),f.mouse(),f.keyboard(),d()}}},{"./button":146,"./keyboard":148,"./mouse":152,"./nipple":153,"./options":155,"core-js/modules/es6.array.iterator":106,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.keys":115,"core-js/modules/es6.object.to-string":116,"core-js/modules/web.dom.iterable":129}],152:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("../dom/pointer");n.mouse=function(e,t){var n=!1;i.pointer.canLock&&t.config().then((function(e){var t,r,o;return n=!0===(null===(t=e.output)||void 0===t||null===(r=t.options)||void 0===r||null===(o=r.autolock)||void 0===o?void 0:o.value)})).catch(console.error);var o=.01;function s(n,r){var i=t.width(),s=t.height(),a=e.width,c=e.height,l=i/s,u=a,f=a/l;c<f&&(u=(f=c)*l);var d=(c-f)/2,p=(a-u)/2,h=Math.max(0,Math.min(1,(n-p)/u)),y=Math.max(0,Math.min(1,(r-d)/f));return h<=o&&(h=0),1-o<=h&&(h=1),y<=o&&(y=0),1-o<=y&&(y=1),{x:h,y:y}}function a(){return document.pointerLockElement!==c}var c=e.mouseOverlay;function l(r){if(r.target===c)if(e.pointerDisabled)r.stopPropagation();else{var o=i.getPointerState(r,c);y=o.button||e.pointerButton,function(e,r,o){if(n&&a()&&(c.requestPointerLock||c.mozRequestPointerLock||c.webkitRequestPointerLock).call(c),a()){var i=s(e,r);t.sendMouseMotion(i.x,i.y)}t.sendMouseButton(o,!0)}(o.x,o.y,y),r.stopPropagation()}}function u(n){if(n.target===c)if(e.pointerDisabled)n.stopPropagation();else{var r=i.getPointerState(n,c);!function(e,n,r,o){if(a()){var i=s(e,n);t.sendMouseMotion(i.x,i.y)}else t.sendMouseRelativeMotion(r,o)}(r.x,r.y,r.mX,r.mY),n.stopPropagation()}}function f(n){if(e.pointerDisabled)n.stopPropagation();else{var r=i.getPointerState(n,c);!function(e,n,r){if(a()){var o=s(e,n);t.sendMouseMotion(o.x,o.y)}t.sendMouseButton(r,!1)}(r.x,r.y,y),n.stopPropagation()}}function d(n){if(n.target===c)if(e.pointerDisabled)n.stopPropagation();else{var r,o=i.getPointerState(n,c);r=s(o.x,o.y),t.sendMouseMotion(r.x,r.y),n.stopPropagation()}}function p(e){e.stopPropagation()}var h,y=0,m={capture:!1},v=r(i.pointer.starters);try{for(v.s();!(h=v.n()).done;){var _=h.value;c.addEventListener(_,l,m)}}catch(h){v.e(h)}finally{v.f()}var g,b=r(i.pointer.changers);try{for(b.s();!(g=b.n()).done;){var w=g.value;c.addEventListener(w,u,m)}}catch(h){b.e(h)}finally{b.f()}var x,j=r(i.pointer.enders);try{for(j.s();!(x=j.n()).done;){var k=x.value;c.addEventListener(k,f,m)}}catch(h){j.e(h)}finally{j.f()}var E,S=r(i.pointer.prevents);try{for(S.s();!(E=S.n()).done;){var D=E.value;c.addEventListener(D,p,m)}}catch(h){S.e(h)}finally{S.f()}var C,O=r(i.pointer.leavers);try{for(O.s();!(C=O.n()).done;){var P=C.value;c.addEventListener(P,d,m)}}catch(h){O.e(h)}finally{O.f()}return function(){var e,t=r(i.pointer.starters);try{for(t.s();!(e=t.n()).done;){var n=e.value;c.removeEventListener(n,l,m)}}catch(e){t.e(e)}finally{t.f()}var o,s=r(i.pointer.changers);try{for(s.s();!(o=s.n()).done;){var a=o.value;c.removeEventListener(a,u,m)}}catch(e){s.e(e)}finally{s.f()}var h,y=r(i.pointer.enders);try{for(y.s();!(h=y.n()).done;){var v=h.value;c.removeEventListener(v,f,m)}}catch(e){y.e(e)}finally{y.f()}var _,g=r(i.pointer.prevents);try{for(g.s();!(_=g.n()).done;){var b=_.value;c.removeEventListener(b,p,m)}}catch(e){g.e(e)}finally{g.f()}var w,x=r(i.pointer.leavers);try{for(x.s();!(w=x.n()).done;){var j=w.value;c.removeEventListener(j,d,m)}}catch(e){x.e(e)}finally{x.f()}}}},{"../dom/pointer":160,"core-js/modules/es6.array.from":103,"core-js/modules/es6.array.is-array":105,"core-js/modules/es6.date.to-string":108,"core-js/modules/es6.function.name":110,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.regexp.to-string":121,"core-js/modules/es6.string.iterator":122,"core-js/modules/es6.symbol":123,"core-js/modules/es7.symbol.async-iterator":128,"core-js/modules/web.dom.iterable":129}],153:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.date.now"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("nipplejs"),s=e("../dom/keys");n.nipple=function(e,t,n){function o(){-1!==l&&(e.fireKeyUp(l),l=-1)}var a,c=i.create({zone:e.mouseOverlay,multitouch:!0,maxNumberOfNipples:2}),l=-1,u={},f={},d={},p=r(n);try{var h=function(){var t=a.value;"end:release"===t.event?u[t.joystickId]=!0:t.mapTo!==s.KBD_NONE&&("tap"===t.event?f[t.joystickId]=t.mapTo:c.on(t.event,(function(){var n;d[t.joystickId]=Date.now(),o(),n=t.mapTo,e.fireKeyDown(n),l=n})))};for(p.s();!(a=p.n()).done;)h()}catch(t){p.e(t)}finally{p.f()}var y={};return c.on("start",(function(){var e=c.ids.length-1;y[e]=Date.now()})),c.on("end",(function(){var t=c.ids.length-1,n=Date.now()-y[t];!0===u[t]&&o(),f[t]&&n<500&&d[t]<y[t]&&e.fireKeyPress(f[t])})),function(){return c.destroy()}}},{"../dom/keys":157,"core-js/modules/es6.array.from":103,"core-js/modules/es6.array.is-array":105,"core-js/modules/es6.date.now":107,"core-js/modules/es6.date.to-string":108,"core-js/modules/es6.function.name":110,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.regexp.to-string":121,"core-js/modules/es6.string.iterator":122,"core-js/modules/es6.symbol":123,"core-js/modules/es7.symbol.async-iterator":128,"core-js/modules/web.dom.iterable":129,nipplejs:141}],154:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var r=e("./keyboard"),o=e("./mouse"),i=e("./options");n.initNullLayersControl=function(e,t){var n,s=r.keyboard(e,t),a=o.mouse(e,t),c=0===(null===(n=e.options.optionControls)||void 0===n?void 0:n.length)?function(){}:i.options(e,["default"],(function(){}),54,13.5,0);return function(){s(),a(),c()}}},{"./keyboard":148,"./mouse":152,"./options":155,"core-js/modules/es6.object.define-property":114}],155:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("./button"),s=e("../dom/helpers");n.options=function(e,t,n,o,a,c){function l(){var e,t=p?"flex":"none",n=r(y);try{for(n.s();!(e=n.n()).done;){var o=e.value;o!=m&&(o.style.display=t)}}catch(e){n.e(e)}finally{n.f()}}function u(){!(p=!p)&&h&&e.toggleKeyboard(),l()}function f(e){(h=e)?_.classList.add("emulator-control-close-icon"):_.classList.remove("emulator-control-close-icon")}var d=Math.round(o/4),p=!1,h=!1,y=[function(e,t){if(e.length<=1)return document.createElement("div");var n=document.createElement("select");n.classList.add("emulator-control-select");var o,i=r(e);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=document.createElement("option");c.value=a,c.innerHTML=a,n.appendChild(c)}}catch(e){i.e(e)}finally{i.f()}return n.onchange=function(e){var n=e.target.value;t(n)},s.stopPropagation(n,!1),n}(t,n),i.createButton("keyboard",{onClick:function(){e.toggleKeyboard(),p&&!h&&(p=!1,l())}},o),i.createButton("save",{onClick:function(){e.save(),p&&u()}},o),i.createButton("fullscreen",{onClick:function(){e.toggleFullscreen(),p&&u()}},o),i.createButton("options",{onClick:u},o)],m=y[y.length-1],v=y[y.length-2].children[0],_=y[y.length-4].children[0];e.setOnKeyboardVisibility(f),f(e.keyboardVisible),e.setOnFullscreen((function(e){e?v.classList.contains("emulator-control-exit-fullscreen-icon")||v.classList.add("emulator-control-exit-fullscreen-icon"):v.classList.remove("emulator-control-exit-fullscreen-icon")})),e.fullscreen&&v.classList.add("emulator-control-exit-fullscreen-icon");for(var g=s.createDiv("emulator-options"),b=h?"flex":"none",w=0,x=y;w<x.length;w++){var j=x[w];j!==m&&j.classList.add("emulator-button-control"),j.style.marginRight=d+"px",j.style.marginBottom=d+"px",j!==m&&(j.style.display=b),g.appendChild(j)}return g.style.position="absolute",g.style.right=c+"px",g.style.top=a+"px",e.mouseOverlay.appendChild(g),function(){e.mouseOverlay.removeChild(g),e.setOnFullscreen((function(){})),e.removeOnKeyboardVisibility(f)}}},{"../dom/helpers":156,"./button":146,"core-js/modules/es6.array.from":103,"core-js/modules/es6.array.is-array":105,"core-js/modules/es6.date.to-string":108,"core-js/modules/es6.function.name":110,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.regexp.to-string":121,"core-js/modules/es6.string.iterator":122,"core-js/modules/es6.symbol":123,"core-js/modules/es7.symbol.async-iterator":128,"core-js/modules/web.dom.iterable":129}],156:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("./pointer");n.createDiv=function(e,t){var n=document.createElement("div");return n.className=e,void 0!==t&&(n.innerHTML=t),n},n.stopPropagation=function(e){function t(e){e.stopPropagation()}function n(e){e.stopPropagation(),s&&e.preventDefault()}var o,s=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],a={capture:!1},c=r(i.pointer.starters);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.addEventListener(l,t,a)}}catch(e){c.e(e)}finally{c.f()}var u,f=r(i.pointer.enders);try{for(f.s();!(u=f.n()).done;){var d=u.value;e.addEventListener(d,t,a)}}catch(e){f.e(e)}finally{f.f()}var p,h=r(i.pointer.prevents);try{for(h.s();!(p=h.n()).done;){var y=p.value;e.addEventListener(y,n,a)}}catch(e){h.e(e)}finally{h.f()}}},{"./pointer":160,"core-js/modules/es6.array.from":103,"core-js/modules/es6.array.is-array":105,"core-js/modules/es6.date.to-string":108,"core-js/modules/es6.function.name":110,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.regexp.to-string":121,"core-js/modules/es6.string.iterator":122,"core-js/modules/es6.symbol":123,"core-js/modules/es7.symbol.async-iterator":128,"core-js/modules/web.dom.iterable":129}],157:[function(e,t,n){"use strict";e("core-js/modules/es6.number.constructor"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.KBD_NONE=0,n.KBD_0=48,n.KBD_1=49,n.KBD_2=50,n.KBD_3=51,n.KBD_4=52,n.KBD_5=53,n.KBD_6=54,n.KBD_7=55,n.KBD_8=56,n.KBD_9=57,n.KBD_a=65,n.KBD_b=66,n.KBD_c=67,n.KBD_d=68,n.KBD_e=69,n.KBD_f=70,n.KBD_g=71,n.KBD_h=72,n.KBD_i=73,n.KBD_j=74,n.KBD_k=75,n.KBD_l=76,n.KBD_m=77,n.KBD_n=78,n.KBD_o=79,n.KBD_p=80,n.KBD_q=81,n.KBD_r=82,n.KBD_s=83,n.KBD_t=84,n.KBD_u=85,n.KBD_v=86,n.KBD_w=87,n.KBD_x=88,n.KBD_y=89,n.KBD_z=90,n.KBD_f1=290,n.KBD_f2=291,n.KBD_f3=292,n.KBD_f4=293,n.KBD_f5=294,n.KBD_f6=295,n.KBD_f7=296,n.KBD_f8=297,n.KBD_f9=298,n.KBD_f10=299,n.KBD_f11=300,n.KBD_f12=301,n.KBD_kp0=320,n.KBD_kp1=321,n.KBD_kp2=322,n.KBD_kp3=323,n.KBD_kp4=324,n.KBD_kp5=325,n.KBD_kp6=326,n.KBD_kp7=327,n.KBD_kp8=328,n.KBD_kp9=329,n.KBD_kpperiod=330,n.KBD_kpdivide=331,n.KBD_kpmultiply=332,n.KBD_kpminus=333,n.KBD_kpplus=334,n.KBD_kpenter=335,n.KBD_esc=256,n.KBD_tab=258,n.KBD_backspace=259,n.KBD_enter=257,n.KBD_space=32,n.KBD_leftalt=342,n.KBD_rightalt=346,n.KBD_leftctrl=341,n.KBD_rightctrl=345,n.KBD_leftshift=340,n.KBD_rightshift=344,n.KBD_capslock=280,n.KBD_scrolllock=281,n.KBD_numlock=282,n.KBD_grave=96,n.KBD_minus=45,n.KBD_equals=61,n.KBD_backslash=92,n.KBD_leftbracket=91,n.KBD_rightbracket=93,n.KBD_semicolon=59,n.KBD_quote=39,n.KBD_period=46,n.KBD_comma=44,n.KBD_slash=47,n.KBD_printscreen=283,n.KBD_pause=284,n.KBD_insert=260,n.KBD_home=268,n.KBD_pageup=266,n.KBD_delete=261,n.KBD_end=269,n.KBD_pagedown=267,n.KBD_left=263,n.KBD_up=265,n.KBD_down=264,n.KBD_right=262,n.KBD_extra_lt_gt=348,n.domToKeyCodes={8:n.KBD_backspace,9:n.KBD_tab,13:n.KBD_enter,16:n.KBD_leftshift,17:n.KBD_leftctrl,18:n.KBD_leftalt,19:n.KBD_pause,27:n.KBD_esc,32:n.KBD_space,33:n.KBD_pageup,34:n.KBD_pagedown,35:n.KBD_end,36:n.KBD_home,37:n.KBD_left,38:n.KBD_up,39:n.KBD_right,40:n.KBD_down,45:n.KBD_insert,46:n.KBD_delete,48:n.KBD_0,49:n.KBD_1,50:n.KBD_2,51:n.KBD_3,52:n.KBD_4,53:n.KBD_5,54:n.KBD_6,55:n.KBD_7,56:n.KBD_8,57:n.KBD_9,59:n.KBD_semicolon,64:n.KBD_equals,65:n.KBD_a,66:n.KBD_b,67:n.KBD_c,68:n.KBD_d,69:n.KBD_e,70:n.KBD_f,71:n.KBD_g,72:n.KBD_h,73:n.KBD_i,74:n.KBD_j,75:n.KBD_k,76:n.KBD_l,77:n.KBD_m,78:n.KBD_n,79:n.KBD_o,80:n.KBD_p,81:n.KBD_q,82:n.KBD_r,83:n.KBD_s,84:n.KBD_t,85:n.KBD_u,86:n.KBD_v,87:n.KBD_w,88:n.KBD_x,89:n.KBD_y,90:n.KBD_z,91:n.KBD_leftbracket,93:n.KBD_rightbracket,96:n.KBD_kp0,97:n.KBD_kp1,98:n.KBD_kp2,99:n.KBD_kp3,100:n.KBD_kp4,101:n.KBD_kp5,102:n.KBD_kp6,103:n.KBD_kp7,104:n.KBD_kp8,105:n.KBD_kp9,111:n.KBD_kpdivide,112:n.KBD_f1,113:n.KBD_f2,114:n.KBD_f3,115:n.KBD_f4,116:n.KBD_f5,117:n.KBD_f6,118:n.KBD_f7,119:n.KBD_f8,120:n.KBD_f9,121:n.KBD_f10,122:n.KBD_f11,123:n.KBD_f12,144:n.KBD_numlock,145:n.KBD_scrolllock,173:n.KBD_minus,186:n.KBD_semicolon,187:n.KBD_equals,188:n.KBD_comma,189:n.KBD_minus,190:n.KBD_period,191:n.KBD_slash,219:n.KBD_leftbracket,220:n.KBD_backslash,221:n.KBD_rightbracket},n.namedKeyCodes={KBD_NONE:n.KBD_NONE,KBD_0:n.KBD_0,KBD_1:n.KBD_1,KBD_2:n.KBD_2,KBD_3:n.KBD_3,KBD_4:n.KBD_4,KBD_5:n.KBD_5,KBD_6:n.KBD_6,KBD_7:n.KBD_7,KBD_8:n.KBD_8,KBD_9:n.KBD_9,KBD_a:n.KBD_a,KBD_b:n.KBD_b,KBD_c:n.KBD_c,KBD_d:n.KBD_d,KBD_e:n.KBD_e,KBD_f:n.KBD_f,KBD_g:n.KBD_g,KBD_h:n.KBD_h,KBD_i:n.KBD_i,KBD_j:n.KBD_j,KBD_k:n.KBD_k,KBD_l:n.KBD_l,KBD_m:n.KBD_m,KBD_n:n.KBD_n,KBD_o:n.KBD_o,KBD_p:n.KBD_p,KBD_q:n.KBD_q,KBD_r:n.KBD_r,KBD_s:n.KBD_s,KBD_t:n.KBD_t,KBD_u:n.KBD_u,KBD_v:n.KBD_v,KBD_w:n.KBD_w,KBD_x:n.KBD_x,KBD_y:n.KBD_y,KBD_z:n.KBD_z,KBD_f1:n.KBD_f1,KBD_f2:n.KBD_f2,KBD_f3:n.KBD_f3,KBD_f4:n.KBD_f4,KBD_f5:n.KBD_f5,KBD_f6:n.KBD_f6,KBD_f7:n.KBD_f7,KBD_f8:n.KBD_f8,KBD_f9:n.KBD_f9,KBD_f10:n.KBD_f10,KBD_f11:n.KBD_f11,KBD_f12:n.KBD_f12,KBD_kp0:n.KBD_kp0,KBD_kp1:n.KBD_kp1,KBD_kp2:n.KBD_kp2,KBD_kp3:n.KBD_kp3,KBD_kp4:n.KBD_kp4,KBD_kp5:n.KBD_kp5,KBD_kp6:n.KBD_kp6,KBD_kp7:n.KBD_kp7,KBD_kp8:n.KBD_kp8,KBD_kp9:n.KBD_kp9,KBD_kpperiod:n.KBD_kpperiod,KBD_kpdivide:n.KBD_kpdivide,KBD_kpmultiply:n.KBD_kpmultiply,KBD_kpminus:n.KBD_kpminus,KBD_kpplus:n.KBD_kpplus,KBD_kpenter:n.KBD_kpenter,KBD_esc:n.KBD_esc,KBD_tab:n.KBD_tab,KBD_backspace:n.KBD_backspace,KBD_enter:n.KBD_enter,KBD_space:n.KBD_space,KBD_leftalt:n.KBD_leftalt,KBD_rightalt:n.KBD_rightalt,KBD_leftctrl:n.KBD_leftctrl,KBD_rightctrl:n.KBD_rightctrl,KBD_leftshift:n.KBD_leftshift,KBD_rightshift:n.KBD_rightshift,KBD_capslock:n.KBD_capslock,KBD_scrolllock:n.KBD_scrolllock,KBD_numlock:n.KBD_numlock,KBD_grave:n.KBD_grave,KBD_minus:n.KBD_minus,KBD_equals:n.KBD_equals,KBD_backslash:n.KBD_backslash,KBD_leftbracket:n.KBD_leftbracket,KBD_rightbracket:n.KBD_rightbracket,KBD_semicolon:n.KBD_semicolon,KBD_quote:n.KBD_quote,KBD_period:n.KBD_period,KBD_comma:n.KBD_comma,KBD_slash:n.KBD_slash,KBD_printscreen:n.KBD_printscreen,KBD_pause:n.KBD_pause,KBD_insert:n.KBD_insert,KBD_home:n.KBD_home,KBD_pageup:n.KBD_pageup,KBD_delete:n.KBD_delete,KBD_end:n.KBD_end,KBD_pagedown:n.KBD_pagedown,KBD_left:n.KBD_left,KBD_up:n.KBD_up,KBD_down:n.KBD_down,KBD_right:n.KBD_right,KBD_extra_lt_gt:n.KBD_extra_lt_gt},n.keyCodesToDom={};for(var r=0,o=Object.keys(n.domToKeyCodes);r<o.length;r++){var i=o[r],s=Number.parseInt(i,10);n.keyCodesToDom[n.domToKeyCodes[s]]=s}n.domToKeyCode=function(e){return n.domToKeyCodes[e]||0}},{"core-js/modules/es6.array.iterator":106,"core-js/modules/es6.number.constructor":111,"core-js/modules/es6.number.parse-int":112,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.keys":115,"core-js/modules/es6.object.to-string":116,"core-js/modules/web.dom.iterable":129}],158:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.array.filter"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property");Object.defineProperty(n,"__esModule",{value:!0});var s=e("notyf"),a=function(e){return e&&e.__esModule?e:{default:e}}(e("simple-keyboard")),c=e("./helpers"),l=e("./keys"),u=e("element-resize-detector")({});n.layers=function(e,t){return new f(e,t||{})};var f=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fullscreen=!1,this.keyboardVisible=!1,this.pointerLock=!1,this.pointerDisabled=!1,this.pointerButton=0,this.notyf=new s.Notyf,this.toggleKeyboard=function(){return!1},this.onFullscreenChanged=[],this.onKeyboardChanged=[],this.options=n,this.root=t,this.root.classList.add("emulator-root"),this.fullscreenElement=n.fullscreenElement||this.root,this.canvas=document.createElement("canvas"),this.canvas.className="emulator-canvas",this.video=document.createElement("video"),this.video.setAttribute("autoplay",""),this.video.setAttribute("playsinline",""),this.video.className="emulator-video",this.loading=c.createDiv("emulator-loading","\n<div class='emulator-loading-inner'>\n<pre class='emulator-loading-pre-1'>\n _ __\n (_)____ ____/ /___ _____ _________ ____ ___\n / / ___/_____/ __ / __ \\/ ___// ___/ __ \\/ __ `__ \\\n / (__ )_____/ /_/ / /_/ (__ )/ /__/ /_/ / / / / / /\n __/ /____/ \\__,_/\\____/____(_)___/\\____/_/ /_/ /_/\n /___/\n</pre>\n<pre class='emulator-loading-pre-2'>\n</pre>\n<div class='emulator-loader'>\n</div>\n</div>\n"),this.loaderText=this.loading.querySelector(".emulator-loading-pre-2"),this.mouseOverlay=c.createDiv("emulator-mouse-overlay",""),this.clickToStart=c.createDiv("emulator-click-to-start-overlay",'\n<div class="emulator-click-to-start-text">Press to start</div>\n<div class="emulator-click-to-start-icon"></div>\n'),this.clickToStart.onclick=function(){o.clickToStart.style.display="none",o.video.play()},this.root.appendChild(this.canvas),this.root.appendChild(this.video),this.root.appendChild(this.mouseOverlay),this.root.appendChild(this.clickToStart),this.root.appendChild(this.loading),this.width=t.offsetWidth,this.height=t.offsetHeight,this.onResize=[],this.onKeyDown=function(){},this.onKeyUp=function(){},this.onKeyPress=function(){},this.onKeysPress=function(){},this.onSave=function(){return Promise.reject(new Error("Not implemented"))},this.onSaveStarted=function(){},this.onSaveEnded=function(){},u.listenTo(this.root,(function(e){if(e===t){o.width=e.offsetWidth,o.height=e.offsetHeight;var n,i=r(o.onResize);try{for(i.s();!(n=i.n()).done;)(0,n.value)(o.width,o.height)}catch(e){i.e(e)}finally{i.f()}}})),this.initKeyEvents(),this.initKeyboard(),this.preventContextMenu(),this.fullscreenElement.onfullscreenchange=function(){if(document.fullscreenElement!==o.fullscreenElement){o.fullscreen=!1;var e,t=r(o.onFullscreenChanged);try{for(t.s();!(e=t.n()).done;)(0,e.value)(o.fullscreen)}catch(e){t.e(e)}finally{t.f()}}}}var t,n;return t=e,(n=[{key:"initKeyEvents",value:function(){var e=this;window.addEventListener("keydown",(function(t){var n=l.domToKeyCode(t.keyCode);e.onKeyDown(n)})),window.addEventListener("keyup",(function(t){var n=l.domToKeyCode(t.keyCode);e.onKeyUp(n)}))}},{key:"preventContextMenu",value:function(){this.root.addEventListener("contextmenu",(function(e){return e.stopPropagation(),e.preventDefault(),!1}))}},{key:"addOnResize",value:function(e){this.onResize.push(e)}},{key:"removeOnResize",value:function(e){this.onResize=this.onResize.filter((function(t){return t!==e}))}},{key:"setOnKeyDown",value:function(e){this.onKeyDown=e}},{key:"fireKeyDown",value:function(e){this.onKeyDown(e)}},{key:"setOnKeyUp",value:function(e){this.onKeyUp=e}},{key:"fireKeyUp",value:function(e){this.onKeyUp(e)}},{key:"setOnKeyPress",value:function(e){this.onKeyPress=e}},{key:"fireKeyPress",value:function(e){this.onKeyPress(e)}},{key:"setOnKeysPress",value:function(e){this.onKeysPress=e}},{key:"fireKeysPress",value:function(e){this.onKeysPress(e)}},{key:"toggleFullscreen",value:function(){if(this.fullscreen){this.fullscreen=!1,this.fullscreenElement.classList.contains("emulator-fullscreen-workaround")?this.fullscreenElement.classList.remove("emulator-fullscreen-workaround"):document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen();var e,t=r(this.onFullscreenChanged);try{for(t.s();!(e=t.n()).done;)(0,e.value)(!1)}catch(e){t.e(e)}finally{t.f()}}else{this.fullscreen=!0;var n=this.fullscreenElement;n.requestFullscreen?n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen?n.msRequestFullscreen():n.webkitEnterFullscreen?n.webkitEnterFullscreen():this.fullscreenElement.classList.add("emulator-fullscreen-workaround");var o,i=r(this.onFullscreenChanged);try{for(i.s();!(o=i.n()).done;)(0,o.value)(!0)}catch(e){i.e(e)}finally{i.f()}}}},{key:"setOnFullscreen",value:function(e){this.onFullscreenChanged.push(e)}},{key:"removeOnFullscreen",value:function(e){this.onFullscreenChanged=this.onFullscreenChanged.filter((function(t){return t!==e}))}},{key:"setOnKeyboardVisibility",value:function(e){this.onKeyboardChanged.push(e)}},{key:"removeOnKeyboardVisibility",value:function(e){this.onKeyboardChanged=this.onKeyboardChanged.filter((function(t){return t!==e}))}},{key:"save",value:function(){var e=this;return this.onSaveStarted(),this.onSave().then((function(){e.notyf.success("Saved"),e.onSaveEnded()})).catch((function(t){e.notyf.error(t.message),e.onSaveEnded()}))}},{key:"setOnSave",value:function(e){this.onSave=e}},{key:"getOnSave",value:function(){return this.onSave}},{key:"setOnSaveStarted",value:function(e){this.onSaveStarted=e}},{key:"setOnSaveEnded",value:function(e){this.onSaveEnded=e}},{key:"hideLoadingLayer",value:function(){this.loading.style.visibility="hidden"}},{key:"showLoadingLayer",value:function(){this.loading.style.visibility="visible"}},{key:"setLoadingMessage",value:function(e){this.loaderText.innerHTML=e}},{key:"switchToVideo",value:function(){this.video.style.display="block",this.canvas.style.display="none"}},{key:"showClickToStart",value:function(){this.clickToStart.style.display="flex"}},{key:"initKeyboard",value:function(){var e=this,t=!1,n=[{"{esc}":"ESC","{bksp}":"Backspace","{enter}":"⏎","{space}":"Space"},{"{esc}":"ESC","{bksp}":"Backspace","{enter}":"⏎","{space}":"Space",q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","{":"х","}":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю"}],o=0,i=this.options.keyboardDiv||c.createDiv("");i.classList.add("emulator-keyboard"),i.style.display="none",c.stopPropagation(i);var s=new a.default(i,{layout:{en:["{esc} ` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","q w e r t y u i o p { } \\","a s d f g h j k l ; ' [ {enter}","⎘ z x c v b n m , . / ] {space}"]},layoutName:"en",display:n[o],onKeyPress:function(t){if("⎘"===t)return o=(o+1)%n.length,void s.setOptions({display:n[o]});var r=function(e){if(1<e.length)return"{enter}"===e?[l.KBD_enter]:"{shift}"===e?[l.KBD_leftshift]:"{bksp}"===e?[l.KBD_backspace]:"{lock}"===e?[l.KBD_capslock]:"{tab}"===e?[l.KBD_tab]:"{space}"===e?[l.KBD_space]:"{esc}"===e?[l.KBD_esc]:"ctrl"===e?[l.KBD_leftctrl]:"{alt}"===e?[l.KBD_leftalt]:(console.warn("Unknown button",e),[]);if(","===e)return[l.KBD_comma];if("."===e)return[l.KBD_period];if("'"===e)return[l.KBD_quote];if(":"===e)return[l.KBD_semicolon];if("{"===e)return[l.KBD_leftshift,l.KBD_leftbracket];if("}"===e)return[l.KBD_leftshift,l.KBD_rightbracket];var t=l.domToKeyCode(e.toUpperCase().charCodeAt(0));return 0!==t?[t]:[]}(t);1===r.length?e.fireKeyPress(r[0]):0<r.length&&e.fireKeysPress(r)},preventMouseDownDefault:!0,preventMouseUpDefault:!0,stopMouseDownPropagation:!0,stopMouseUpPropagation:!0,autoUseTouchEvents:!0,useMouseEvents:!0});this.toggleKeyboard=function(){var n=(t=!t)?"block":"none";i.style.display=n;var o,s=r(e.onKeyboardChanged);try{for(s.s();!(o=s.n()).done;)(0,o.value)(t)}catch(n){s.e(n)}finally{s.f()}return e.keyboardVisible=t},this.options.keyboardDiv||this.mouseOverlay.appendChild(i)}}])&&i(t.prototype,n),e}();n.Layers=f},{"./helpers":156,"./keys":157,"core-js/modules/es6.array.filter":101,"core-js/modules/es6.array.from":103,"core-js/modules/es6.array.is-array":105,"core-js/modules/es6.date.to-string":108,"core-js/modules/es6.function.name":110,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.promise":117,"core-js/modules/es6.regexp.to-string":121,"core-js/modules/es6.string.iterator":122,"core-js/modules/es6.symbol":123,"core-js/modules/es7.symbol.async-iterator":128,"core-js/modules/web.dom.iterable":129,"element-resize-detector":134,notyf:142,"simple-keyboard":144}],159:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.lifecycle=function(e){var t="",n="";function r(){document[t]?e.pause():e.resume()}void 0!==document.hidden?(t="hidden",n="visibilitychange"):void 0!==document.mozHidden?(t="mozHidden",n="mozvisibilitychange"):void 0!==document.msHidden?(t="msHidden",n="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",n="webkitvisibilitychange"),document.addEventListener(n,r),e.events().onExit((function(){document.removeEventListener(n,r)}))}},{"core-js/modules/es6.object.define-property":114}],160:[function(e,t,n){"use strict";function r(e,t){if(e.type.match(/^touch/)){var n=e,r=t.getBoundingClientRect();return{x:n.targetTouches[0].clientX-r.x,y:n.targetTouches[0].clientY-r.y,mX:0,mY:0}}return e.type.match(/^pointer/)?{x:e.offsetX,y:e.offsetY,mX:e.movementX,mY:e.movementY}:{x:e.offsetX,y:e.offsetY,mX:e.movementX,mY:e.movementY,button:0===e.button?0:1}}e("core-js/modules/es6.regexp.match"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.pointer=function(){var e=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),t=e&&!!("ontouchstart"in window),n=e&&!!window.PointerEvent,r=e&&!!window.MSPointerEvent,o=!0,i=[],s=[],a=[],c=[],l=[];return n?(i.push("pointerdown"),a.push("pointerup","pointercancel"),s.push("pointermove"),l.push("touchstart","touchmove","touchend")):r?(i.push("MSPointerDown"),s.push("MSPointerMove"),a.push("MSPointerUp")):t?(o=!1,i.push("touchstart","mousedown"),s.push("touchmove"),a.push("touchend","touchcancel","mouseup")):(i.push("mousedown"),s.push("mousemove"),a.push("mouseup"),c.push("mouseleave")),{mobile:e,canLock:o,starters:i,changers:s,enders:a,prevents:l,leavers:c}}(),n.getPointerState=r,n.pointers={bind:n.pointer,getPointerState:r}},{"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.regexp.match":120}],161:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var r=e("./dom/layers"),o=e("./dom/lifecycle"),i=e("./network/xhr"),s=e("./graphics/_2d"),a=e("./graphics/webgl"),c=e("./graphics/video"),l=e("./controls/keyboard"),u=e("./controls/mouse"),f=e("./controls/nipple"),d=e("./controls/options"),p=e("./dom/keys"),h=e("./sound/audio-node"),y=e("./notification/notyf"),m=e("./persist/save-load"),v=e("./controls/grid"),_=e("./dom/pointer"),g=e("./js-dos"),b=new(n.EmulatorsUi=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dom={layers:r.layers,lifecycle:o.lifecycle,pointers:_.pointers},this.network={resolveBundle:i.resolveBundle},this.graphics={webGl:a.webGl,_2d:s._2d,video:c.video},this.sound={audioNode:h.audioNode},this.persist={save:m.save,load:m.load},this.controls={getGrid:v.getGrid,namedKeyCodes:p.namedKeyCodes,domToKeyCodes:p.domToKeyCodes,domToKeyCode:p.domToKeyCode,keyCodesToDom:p.keyCodesToDom,keyboard:l.keyboard,mouse:u.mouse,nipple:f.nipple,options:d.options},this.notifications={notyf:y.notyf},this.dos=function(e,n){return new g.DosInstance(e,t,n||{})}});window.emulatorsUi=b,window.Dos=b.dos},{"./controls/grid":147,"./controls/keyboard":148,"./controls/mouse":152,"./controls/nipple":153,"./controls/options":155,"./dom/keys":157,"./dom/layers":158,"./dom/lifecycle":159,"./dom/pointer":160,"./graphics/_2d":162,"./graphics/video":163,"./graphics/webgl":164,"./js-dos":165,"./network/xhr":166,"./notification/notyf":167,"./persist/save-load":168,"./sound/audio-node":169,"core-js/modules/es6.object.define-property":114}],162:[function(e,t,n){"use strict";e("core-js/modules/es6.typed.uint8-clamped-array"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n._2d=function(e,t){var n=e.canvas,r=n.getContext("2d");if(null===r)throw new Error("Unable to create 2d context on given canvas");function o(){var e=c/l,t=s,r=s/e;a<r&&(t=(r=a)*e),n.style.position="relative",n.style.top=(a-r)/2+"px",n.style.left=(s-t)/2+"px",n.style.width=t+"px",n.style.height=r+"px"}function i(e,t){s=e,a=t,o()}var s=e.width,a=e.height,c=0,l=0;function u(e,t){c=e,l=t,n.width=c,n.height=l,f=new Uint8ClampedArray(e*t*4),o()}e.addOnResize(i);var f=new Uint8ClampedArray(0);t.events().onFrameSize(u),t.events().onFrame((function(e){for(var t=0,n=0;n<f.length;)f[n++]=e[t++],f[n++]=e[t++],f[n++]=e[t++],f[n++]=255;r.putImageData(new ImageData(f,c,l),0,0)})),u(t.width(),t.height()),t.events().onExit((function(){e.removeOnResize(i)}))}},{"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.typed.uint8-clamped-array":126}],163:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.video=function(e,t){e.switchToVideo(),t.events().onMessage((function(t,n){"onremotestream"===t&&window.Janus.attachMediaStream(e.video,n)}))}},{"core-js/modules/es6.object.define-property":114}],164:[function(e,t,n){"use strict";function r(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))return r;var o=e.getShaderInfoLog(r);throw e.deleteShader(r),new Error("An error occurred compiling the shaders: "+o)}e("core-js/modules/es6.typed.float32-array"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.webGl=function(e,t){var n=e.canvas,o=n.getContext("webgl");if(null===o)throw new Error("Unable to create webgl context on given canvas");var i=function(e,t,n){var o=r(e,e.VERTEX_SHADER,"\nattribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nvarying highp vec2 vTextureCoord;\n\nvoid main(void) {\n gl_Position = aVertexPosition;\n vTextureCoord = aTextureCoord;\n}\n"),i=r(e,e.FRAGMENT_SHADER,"\nvarying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\n\nvoid main(void) {\n highp vec4 color = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(color.r, color.g, color.b, 1.0);\n}\n"),s=e.createProgram();if(e.attachShader(s,o),e.attachShader(s,i),e.linkProgram(s),e.getProgramParameter(s,e.LINK_STATUS))return s;throw new Error("Unable to initialize the shader program: "+e.getProgramInfoLog(s))}(o),s=o.getAttribLocation(i,"aVertexPosition"),a=o.getAttribLocation(i,"aTextureCoord"),c=o.getUniformLocation(i,"uSampler");!function(e,t,n){var r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,1,0]),e.STATIC_DRAW),e.vertexAttribPointer(t,3,e.FLOAT,!1,0,0),e.enableVertexAttribArray(t);var o=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,o),e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,1,1,1,1,0,0,1,1,0,0,0]),e.STATIC_DRAW),e.vertexAttribPointer(n,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(n)}(o,s,a);var l=o.createTexture();o.bindTexture(o.TEXTURE_2D,l),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_S,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_T,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MIN_FILTER,o.LINEAR),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MAG_FILTER,o.LINEAR);var u=new Uint8Array([0,0,0]);function f(){var e=y/m,t=p,r=p/e;h<r&&(t=(r=h)*e),n.style.position="relative",n.style.top=(h-r)/2+"px",n.style.left=(p-t)/2+"px",n.style.width=t+"px",n.style.height=r+"px"}function d(e,t){p=e,h=t,f()}o.texImage2D(o.TEXTURE_2D,0,o.RGB,1,1,0,o.RGB,o.UNSIGNED_BYTE,u),o.useProgram(i),o.activeTexture(o.TEXTURE0),o.uniform1i(c,0);var p=e.width,h=e.height,y=0,m=0;function v(e,t){y=e,m=t,n.width=y,n.height=m,o.viewport(0,0,y,m),f()}e.addOnResize(d),t.events().onFrameSize(v),t.events().onFrame((function(e){o.texImage2D(o.TEXTURE_2D,0,o.RGB,y,m,0,o.RGB,o.UNSIGNED_BYTE,e),o.drawArrays(o.TRIANGLES,0,6)})),v(t.width(),t.height()),t.events().onExit((function(){e.removeOnResize(d)}))}},{"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.typed.float32-array":124,"core-js/modules/es6.typed.uint8-array":125}],165:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.function.bind"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var s=e("./build"),a=e("./controls/layers-config"),c=e("./controls/legacy-layers-control"),l=e("./controls/null-layers-control"),u=e("./controls/layers-control"),f=e("./dom/pointer"),d=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layersConfig=null,this.unbindControls=function(){},this.storedLayersConfig=null,e.initialRun&&(emulators.cacheSeed+=" ui ("+s.Build.short+")",e.initialRun=!1),this.options=r,this.emulatorsUi=n,this.emulatorFunction=r.emulatorFunction||"dosboxWorker",this.clickToStart=r.clickToStart||!1,this.layers=this.emulatorsUi.dom.layers(t,r.layersOptions),this.layers.showLoadingLayer(),this.createTransportLayer=r.createTransportLayer,this.mobileControls=f.pointers.bind.mobile,this.mirroredControls=!1,this.onMobileControlsChanged=function(){},"backend"===this.emulatorFunction&&void 0===this.createTransportLayer)throw new Error("Emulator function set to 'backend' but 'createTransportLayer' is not a function")}var t,n,r,d,p,h;return t=e,(n=[{key:"run",value:(h=o(regeneratorRuntime.mark((function e(t,n,r){var o,i,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stop();case 2:return this.layers.setLoadingMessage("Starting..."),o=null!=r&&0<r.length?r:t+".changes",e.prev=4,e.next=7,this.runBundle(t,n,o);case 7:i=e.sent,e.next=16;break;case 10:throw e.prev=10,e.t0=e.catch(4),this.layers.setLoadingMessage("Unexpected error occured..."),this.layers.notyf.error({message:"Can't start emulator look browser logs for more info"}),console.error(e.t0),e.t0;case 16:if(s=this.emulatorsUi,"janus"!==this.emulatorFunction){e.next=21;break}s.graphics.video(this.layers,i),e.next=33;break;case 21:if(s.persist.save(o,this.layers,i,emulators),e.prev=22,!0===this.options.noWebGL)throw new Error("WebGL is disabled by options");e.next=25;break;case 25:s.graphics.webGl(this.layers,i),e.next=32;break;case 28:e.prev=28,e.t1=e.catch(22),console.error("Unable to create webgl canvas, fallback to 2d rendering"),s.graphics._2d(this.layers,i);case 32:s.sound.audioNode(i);case 33:return s.dom.lifecycle(i),e.next=36,i.config();case 36:return c=e.sent,e.next=39,this.setLayersConfig(a.extractLayersConfig(c));case 39:return this.mobileControls||this.disableMobileControls(),this.layers.setLoadingMessage("Ready"),this.layers.hideLoadingLayer(),this.clickToStart&&this.layers.showClickToStart(),e.abrupt("return",i);case 44:case"end":return e.stop()}}),e,this,[[4,10],[22,28]])}))),function(e,t,n){return h.apply(this,arguments)})},{key:"stop",value:(p=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.layers.showLoadingLayer(),void 0===this.ciPromise)return e.abrupt("return");e.next=3;break;case 3:return e.next=5,this.ciPromise;case 5:return t=e.sent,delete this.ciPromise,e.next=9,t.exit();case 9:return e.abrupt("return");case 10:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"setLayersConfig",value:(d=o(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===this.ciPromise)return e.abrupt("return");e.next=2;break;case 2:return e.next=4,this.ciPromise;case 4:r=e.sent,this.layersConfig=t,this.unbindControls(),null===t?this.unbindControls=l.initNullLayersControl(this.layers,r):void 0===t.version?this.unbindControls=c.initLegacyLayersControl(this.layers,t,r):this.unbindControls=u.initLayersControl(this.layers,t,r,this,n,this.mirroredControls);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"getLayersConfig",value:function(){return this.layersConfig}},{key:"enableMobileControls",value:function(){this.mobileControls=!0,this.setLayersConfig(this.storedLayersConfig),this.storedLayersConfig=null,this.onMobileControlsChanged(!0)}},{key:"disableMobileControls",value:function(){this.mobileControls=!1,this.storedLayersConfig=this.layersConfig,this.setLayersConfig(null),this.onMobileControlsChanged(!1)}},{key:"setMirroredControls",value:function(e){this.mirroredControls=e,this.mobileControls&&this.setLayersConfig(this.layersConfig)}},{key:"setOnMobileControlsChanged",value:function(e){this.onMobileControlsChanged=e}},{key:"runBundle",value:(r=o(regeneratorRuntime.mark((function e(t,n,r){var o,i,s,a,c,l=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.emulatorsUi,"janus"!==this.emulatorFunction){e.next=6;break}this.layers.setLoadingMessage("Connecting..."),this.ciPromise=emulators.janus(t),e.next=30;break;case 6:if(this.layers.setLoadingMessage("Downloading bundle ..."),i=o.network.resolveBundle(t,{onprogress:function(e){return l.layers.setLoadingMessage("Downloading bundle "+e+"%")}}),e.prev=8,null!=n&&0<n.length)return e.next=12,o.network.resolveBundle(n,{httpCache:!1});e.next=15;break;case 12:s=e.sent,e.next=18;break;case 15:return e.next=17,o.persist.load(r,emulators);case 17:s=e.sent;case 18:return e.next=20,i;case 20:a=e.sent,"backend"===this.emulatorFunction?this.ciPromise=emulators.backend([a,s],this.createTransportLayer()):this.ciPromise=emulators[this.emulatorFunction]([a,s]),e.next=30;break;case 24:return e.prev=24,e.t0=e.catch(8),e.next=28,i;case 28:c=e.sent,"backend"===this.emulatorFunction?this.ciPromise=emulators.backend([c],this.createTransportLayer()):this.ciPromise=emulators[this.emulatorFunction]([c]);case 30:return e.abrupt("return",this.ciPromise);case 31:case"end":return e.stop()}}),e,this,[[8,24]])}))),function(e,t,n){return r.apply(this,arguments)})}])&&i(t.prototype,n),e}();(n.DosInstance=d).initialRun=!0},{"./build":145,"./controls/layers-config":149,"./controls/layers-control":150,"./controls/legacy-layers-control":151,"./controls/null-layers-control":154,"./dom/pointer":160,"core-js/modules/es6.function.bind":109,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.promise":117,"regenerator-runtime/runtime":143}],166:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(){var e;return e=regeneratorRuntime.mark((function e(t,n){var r,o,i,s,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(null==n?void 0:n.cache)||null,o=null==n?void 0:n.onprogress,i=!(!1===(null==n?void 0:n.httpCache)),e.prev=3,null===r)throw new Error("no-cache");e.next=6;break;case 6:if(e.t0=r,e.t0){e.next=11;break}return e.next=10,emulators.cache();case 10:e.t0=e.sent;case 11:return s=e.t0,e.next=14,s.get(t);case 14:return a=e.sent,void 0!==o&&o(100),e.abrupt("return",new Uint8Array(a));case 19:return e.prev=19,e.t1=e.catch(3),e.abrupt("return",new Promise((function(e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.overrideMimeType("text/plain; charset=x-user-defined"),r.addEventListener("error",(function(){n(new Error("Network error, can't download "+t))})),r.addEventListener("abort",(function(){n(new Error("Request canceled for url "+t))}),!1),r.responseType="arraybuffer",r.onreadystatechange=function(){4===r.readyState&&(200===r.status?(void 0!==o&&o(100),e(new Uint8Array(r.response))):n(new Error("Network error, can't download "+t)))},void 0!==o&&(r.onprogress=function(e){if(e.total&&0<e.total){var t=Math.round(1e4*e.loaded/e.total)/100;o(t)}}),!1===i&&(r.setRequestHeader("Cache-Control","no-cache, no-store, max-age=0"),r.setRequestHeader("Expires","Tue, 01 Jan 1980 1:00:00 GMT"),r.setRequestHeader("Pragma","no-cache")),r.send()})));case 22:case"end":return e.stop()}}),e,null,[[3,19]])})),(o=function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}).apply(this,arguments)}e("core-js/modules/es6.typed.uint8-array"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.resolveBundle=function(e,t){return o.apply(this,arguments)}},{"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.promise":117,"core-js/modules/es6.typed.uint8-array":125,"regenerator-runtime/runtime":143}],167:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.notyf=function(e,t){var n=e.notyf;t.events().onMessage((function(e){if("error"===e){for(var t=arguments.length,r=new Array(1<t?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n.error({message:JSON.stringify(r)})}}))}},{"core-js/modules/es6.object.define-property":114}],168:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i="emulators-ui-saves";function s(){return(s=o(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.cache(i);case 2:return r=e.sent,e.abrupt("return",r.get(t).then((function(e){return new Uint8Array(e)})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}n.save=function(e,t,n,r){t.setOnSave(o(regeneratorRuntime.mark((function t(){var o,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.cache(i);case 2:return o=t.sent,t.next=5,n.persist();case 5:return s=t.sent,t.abrupt("return",o.put(e,s.buffer));case 7:case"end":return t.stop()}}),t)}))))},n.load=function(e,t){return s.apply(this,arguments)}},{"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.promise":117,"core-js/modules/es6.typed.uint8-array":125,"regenerator-runtime/runtime":143}],169:[function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.array.fill"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.samplesQueue=[]}var t,n;return t=e,(n=[{key:"push",value:function(e){this.samplesQueue.push(e)}},{key:"length",value:function(){var e,t=0,n=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,s=!0,a=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==o.return||o.return()}finally{if(a)throw i}}}}(this.samplesQueue);try{for(n.s();!(e=n.n()).done;)t+=e.value.length}catch(e){n.e(e)}finally{n.f()}return t}},{key:"writeTo",value:function(e,t){for(var n=0;0<this.samplesQueue.length;){var r=this.samplesQueue[0],o=Math.min(t-n,r.length);if(o===r.length?(e.set(r,n),this.samplesQueue.shift()):(e.set(r.slice(0,o),n),this.samplesQueue[0]=r.slice(o)),(n+=o)===t)break}n<t&&e.fill(0,n)}}])&&o(t.prototype,n),e}();n.audioNode=function(e){var t=e.soundFrequency();if(0!==t){var n=null;if("undefined"!=typeof AudioContext?n=new AudioContext({sampleRate:t,latencyHint:"interactive"}):void 0!==window.webkitAudioContext&&(n=new window.webkitAudioContext({sampleRate:t,latencyHint:"interactive"})),null!=n){var r=new i;e.events().onSoundPush((function(e){r.length()<6144&&r.push(e)}));var o=n.createScriptProcessor(2048,0,1),s=!1;o.onaudioprocess=function(e){var t=e.outputBuffer.length,n=e.outputBuffer.numberOfChannels,o=r.length();if(s=s||2048<=o)for(var i=0;i<n;i++){var a=e.outputBuffer.getChannelData(i);r.writeTo(a,t)}},o.connect(n.destination);var a=function(){null!==n&&"suspended"===n.state&&n.resume()};document.addEventListener("click",a,{once:!0}),document.addEventListener("touchstart",a,{once:!0}),document.addEventListener("keydown",a,{once:!0}),e.events().onExit((function(){null!==n&&(o.disconnect(),n.close()),document.removeEventListener("click",a),document.removeEventListener("touchstart",a),document.removeEventListener("keydown",a)}))}}else console.warn("Can't create audio node with sampleRate === 0, ingnoring")}},{"core-js/modules/es6.array.fill":100,"core-js/modules/es6.array.from":103,"core-js/modules/es6.array.is-array":105,"core-js/modules/es6.date.to-string":108,"core-js/modules/es6.function.name":110,"core-js/modules/es6.object.define-property":114,"core-js/modules/es6.object.to-string":116,"core-js/modules/es6.regexp.to-string":121,"core-js/modules/es6.string.iterator":122,"core-js/modules/es6.symbol":123,"core-js/modules/es7.symbol.async-iterator":128,"core-js/modules/web.dom.iterable":129}]},{},[161]),function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],2:[function(e,t,n){var r=e("./_wks")("unscopables"),o=Array.prototype;null==o[r]&&e("./_hide")(o,r,{}),t.exports=function(e){o[r][e]=!0}},{"./_hide":31,"./_wks":99}],3:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);t.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},{"./_string-at":80}],4:[function(e,t,n){t.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},{}],5:[function(e,t,n){var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":39}],6:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),i=e("./_to-length");t.exports=[].copyWithin||function(e,t,n){var s=r(this),a=i(s.length),c=o(e,a),l=o(t,a),u=2<arguments.length?n:void 0,f=Math.min((void 0===u?a:o(u,a))-l,a-c),d=1;for(l<c&&c<l+f&&(d=-1,l+=f-1,c+=f-1);0<f--;)l in s?s[c]=s[l]:delete s[c],c+=d,l+=d;return s}},{"./_to-absolute-index":85,"./_to-length":89,"./_to-object":90}],7:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),i=e("./_to-length");t.exports=function(e,t,n){for(var s=r(this),a=i(s.length),c=arguments.length,l=o(1<c?t:void 0,a),u=2<c?n:void 0,f=void 0===u?a:o(u,a);l<f;)s[l++]=e;return s}},{"./_to-absolute-index":85,"./_to-length":89,"./_to-object":90}],8:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_to-length"),i=e("./_to-absolute-index");t.exports=function(e){return function(t,n,s){var a,c=r(t),l=o(c.length),u=i(s,l);if(e&&n!=n){for(;u<l;)if((a=c[u++])!=a)return!0}else for(;u<l;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},{"./_to-absolute-index":85,"./_to-iobject":88,"./_to-length":89}],9:[function(e,t,n){var r=e("./_ctx"),o=e("./_iobject"),i=e("./_to-object"),s=e("./_to-length"),a=e("./_array-species-create");t.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,f=6==e,d=5==e||f,p=t||a;return function(t,a,h){for(var y,m,v=i(t),_=o(v),g=r(a,h,3),b=s(_.length),w=0,x=n?p(t,b):c?p(t,0):void 0;w<b;w++)if((d||w in _)&&(m=g(y=_[w],w,v),e))if(n)x[w]=m;else if(m)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:x.push(y)}else if(u)return!1;return f?-1:l||u?u:x}}},{"./_array-species-create":11,"./_ctx":16,"./_iobject":36,"./_to-length":89,"./_to-object":90}],10:[function(e,t,n){var r=e("./_is-object"),o=e("./_is-array"),i=e("./_wks")("species");t.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":38,"./_is-object":39,"./_wks":99}],11:[function(e,t,n){var r=e("./_array-species-constructor");t.exports=function(e,t){return new(r(e))(t)}},{"./_array-species-constructor":10}],12:[function(e,t,n){var r=e("./_cof"),o=e("./_wks")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":13,"./_wks":99}],13:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],14:[function(e,t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},{}],15:[function(e,t,n){"use strict";var r=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},{"./_object-dp":54,"./_property-desc":69}],16:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":1}],17:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],18:[function(e,t,n){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":24}],19:[function(e,t,n){var r=e("./_is-object"),o=e("./_global").document,i=r(o)&&r(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":29,"./_is-object":39}],20:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],21:[function(e,t,n){var r=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie");t.exports=function(e){var t=r(e),n=o.f;if(n)for(var s,a=n(e),c=i.f,l=0;a.length>l;)c.call(e,s=a[l++])&&t.push(s);return t}},{"./_object-gops":59,"./_object-keys":62,"./_object-pie":63}],22:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_hide"),s=e("./_redefine"),a=e("./_ctx"),c="prototype",l=function(e,t,n){var u,f,d,p,h=e&l.F,y=e&l.G,m=e&l.S,v=e&l.P,_=e&l.B,g=y?r:m?r[t]||(r[t]={}):(r[t]||{})[c],b=y?o:o[t]||(o[t]={}),w=b[c]||(b[c]={});for(u in y&&(n=t),n)d=((f=!h&&g&&void 0!==g[u])?g:n)[u],p=_&&f?a(d,r):v&&"function"==typeof d?a(Function.call,d):d,g&&s(g,u,d,e&l.U),b[u]!=d&&i(b,u,p),v&&w[u]!=d&&(w[u]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},{"./_core":14,"./_ctx":16,"./_global":29,"./_hide":31,"./_redefine":71}],23:[function(e,t,n){var r=e("./_wks")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},{"./_wks":99}],24:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],25:[function(e,t,n){"use strict";e("./es6.regexp.exec");var r=e("./_redefine"),o=e("./_hide"),i=e("./_fails"),s=e("./_defined"),a=e("./_wks"),c=e("./_regexp-exec"),l=a("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(e,t,n){var d=a(e),p=!i((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!t})):void 0;if(!p||!h||"replace"===e&&!u||"split"===e&&!f){var y=/./[d],m=n(s,d,""[e],(function(e,t,n,r,o){return t.exec===c?p&&!o?{done:!0,value:y.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=m[0],_=m[1];r(String.prototype,e,v),o(RegExp.prototype,d,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}}},{"./_defined":17,"./_fails":24,"./_hide":31,"./_redefine":71,"./_regexp-exec":73,"./_wks":99,"./es6.regexp.exec":115}],26:[function(e,t,n){"use strict";var r=e("./_an-object");t.exports=function(){var e=r(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":5}],27:[function(e,t,n){var r=e("./_ctx"),o=e("./_iter-call"),i=e("./_is-array-iter"),s=e("./_an-object"),a=e("./_to-length"),c=e("./core.get-iterator-method"),l={},u={};(n=t.exports=function(e,t,n,f,d){var p,h,y,m,v=d?function(){return e}:c(e),_=r(n,f,t?2:1),g=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(p=a(e.length);g<p;g++)if((m=t?_(s(h=e[g])[0],h[1]):_(e[g]))===l||m===u)return m}else for(y=v.call(e);!(h=y.next()).done;)if((m=o(y,_,h.value,t))===l||m===u)return m}).BREAK=l,n.RETURN=u},{"./_an-object":5,"./_ctx":16,"./_is-array-iter":37,"./_iter-call":41,"./_to-length":89,"./core.get-iterator-method":100}],28:[function(e,t,n){t.exports=e("./_shared")("native-function-to-string",Function.toString)},{"./_shared":78}],29:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],30:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],31:[function(e,t,n){var r=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":18,"./_object-dp":54,"./_property-desc":69}],32:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":29}],33:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":18,"./_dom-create":19,"./_fails":24}],34:[function(e,t,n){var r=e("./_is-object"),o=e("./_set-proto").set;t.exports=function(e,t,n){var i,s=t.constructor;return s!==n&&"function"==typeof s&&(i=s.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},{"./_is-object":39,"./_set-proto":74}],35:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],36:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":13}],37:[function(e,t,n){var r=e("./_iterators"),o=e("./_wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},{"./_iterators":46,"./_wks":99}],38:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":13}],39:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],40:[function(e,t,n){var r=e("./_is-object"),o=e("./_cof"),i=e("./_wks")("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},{"./_cof":13,"./_is-object":39,"./_wks":99}],41:[function(e,t,n){var r=e("./_an-object");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},{"./_an-object":5}],42:[function(e,t,n){"use strict";var r=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),s={};e("./_hide")(s,e("./_wks")("iterator"),(function(){return this})),t.exports=function(e,t,n){e.prototype=r(s,{next:o(1,n)}),i(e,t+" Iterator")}},{"./_hide":31,"./_object-create":53,"./_property-desc":69,"./_set-to-string-tag":76,"./_wks":99}],43:[function(e,t,n){"use strict";function r(){return this}var o=e("./_library"),i=e("./_export"),s=e("./_redefine"),a=e("./_hide"),c=e("./_iterators"),l=e("./_iter-create"),u=e("./_set-to-string-tag"),f=e("./_object-gpo"),d=e("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),h="values";t.exports=function(e,t,n,y,m,v,_){function g(e){if(!p&&e in S)return S[e];switch(e){case"keys":case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}}l(n,t,y);var b,w,x,j=t+" Iterator",k=m==h,E=!1,S=e.prototype,D=S[d]||S["@@iterator"]||m&&S[m],C=D||g(m),O=m?k?g("entries"):C:void 0,P="Array"==t&&S.entries||D;if(P&&(x=f(P.call(new e)))!==Object.prototype&&x.next&&(u(x,j,!0),o||"function"==typeof x[d]||a(x,d,r)),k&&D&&D.name!==h&&(E=!0,C=function(){return D.call(this)}),o&&!_||!p&&!E&&S[d]||a(S,d,C),c[t]=C,c[j]=r,m)if(b={values:k?C:g(h),keys:v?C:g("keys"),entries:O},_)for(w in b)w in S||s(S,w,b[w]);else i(i.P+i.F*(p||E),t,b);return b}},{"./_export":22,"./_hide":31,"./_iter-create":42,"./_iterators":46,"./_library":47,"./_object-gpo":60,"./_redefine":71,"./_set-to-string-tag":76,"./_wks":99}],44:[function(e,t,n){var r=e("./_wks")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(e){}return n}},{"./_wks":99}],45:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],46:[function(e,t,n){t.exports={}},{}],47:[function(e,t,n){t.exports=!1},{}],48:[function(e,t,n){var r=e("./_math-sign"),o=Math.pow,i=o(2,-52),s=o(2,-23),a=o(2,127)*(2-s),c=o(2,-126);t.exports=Math.fround||function(e){var t,n,o=Math.abs(e),l=r(e);return o<c?l*(o/c/s+1/i-1/i)*c*s:a<(n=(t=(1+s/i)*o)-(t-o))||n!=n?l*(1/0):l*n}},{"./_math-sign":49}],49:[function(e,t,n){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],50:[function(e,t,n){function r(e){a(e,o,{value:{i:"O"+ ++c,w:{}}})}var o=e("./_uid")("meta"),i=e("./_is-object"),s=e("./_has"),a=e("./_object-dp").f,c=0,l=Object.isExtensible||function(){return!0},u=!e("./_fails")((function(){return l(Object.preventExtensions({}))})),f=t.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,o)){if(!l(e))return"F";if(!t)return"E";r(e)}return e[o].i},getWeak:function(e,t){if(!s(e,o)){if(!l(e))return!0;if(!t)return!1;r(e)}return e[o].w},onFreeze:function(e){return u&&f.NEED&&l(e)&&!s(e,o)&&r(e),e}}},{"./_fails":24,"./_has":30,"./_is-object":39,"./_object-dp":54,"./_uid":95}],51:[function(e,t,n){var r=e("./_global"),o=e("./_task").set,i=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==e("./_cof")(s);t.exports=function(){function e(){var e,r;for(c&&(e=s.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(e){throw t?l():n=void 0,e}}n=void 0,e&&e.enter()}var t,n,l;if(c)l=function(){s.nextTick(e)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);l=function(){u.then(e)}}else l=function(){o.call(r,e)};else{var f=!0,d=document.createTextNode("");new i(e).observe(d,{characterData:!0}),l=function(){d.data=f=!f}}return function(e){var r={fn:e,next:void 0};n&&(n.next=r),t||(t=r,l()),n=r}}},{"./_cof":13,"./_global":29,"./_task":84}],52:[function(e,t,n){"use strict";var r=e("./_a-function");function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}t.exports.f=function(e){return new o(e)}},{"./_a-function":1}],53:[function(e,t,n){function r(){}var o=e("./_an-object"),i=e("./_object-dps"),s=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),c="prototype",l=function(){var t,n=e("./_dom-create")("iframe"),r=s.length;for(n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l[c][s[r]];return l()};t.exports=Object.create||function(e,t){var n;return null!==e?(r[c]=o(e),n=new r,r[c]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},{"./_an-object":5,"./_dom-create":19,"./_enum-bug-keys":20,"./_html":32,"./_object-dps":55,"./_shared-key":77}],54:[function(e,t,n){var r=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),s=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":5,"./_descriptors":18,"./_ie8-dom-define":33,"./_to-primitive":91}],55:[function(e,t,n){var r=e("./_object-dp"),o=e("./_an-object"),i=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){o(e);for(var n,s=i(t),a=s.length,c=0;c<a;)r.f(e,n=s[c++],t[n]);return e}},{"./_an-object":5,"./_descriptors":18,"./_object-dp":54,"./_object-keys":62}],56:[function(e,t,n){var r=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),s=e("./_to-primitive"),a=e("./_has"),c=e("./_ie8-dom-define"),l=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?l:function(e,t){if(e=i(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},{"./_descriptors":18,"./_has":30,"./_ie8-dom-define":33,"./_object-pie":63,"./_property-desc":69,"./_to-iobject":88,"./_to-primitive":91}],57:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(r(e))}},{"./_object-gopn":58,"./_to-iobject":88}],58:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"./_enum-bug-keys":20,"./_object-keys-internal":61}],59:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],60:[function(e,t,n){var r=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},{"./_has":30,"./_shared-key":77,"./_to-object":90}],61:[function(e,t,n){var r=e("./_has"),o=e("./_to-iobject"),i=e("./_array-includes")(!1),s=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(l,n)||l.push(n));return l}},{"./_array-includes":8,"./_has":30,"./_shared-key":77,"./_to-iobject":88}],62:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"./_enum-bug-keys":20,"./_object-keys-internal":61}],63:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],64:[function(e,t,n){var r=e("./_export"),o=e("./_core"),i=e("./_fails");t.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",s)}},{"./_core":14,"./_export":22,"./_fails":24}],65:[function(e,t,n){var r=e("./_object-gopn"),o=e("./_object-gops"),i=e("./_an-object"),s=e("./_global").Reflect;t.exports=s&&s.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},{"./_an-object":5,"./_global":29,"./_object-gopn":58,"./_object-gops":59}],66:[function(e,t,n){var r=e("./_global").parseInt,o=e("./_string-trim").trim,i=e("./_string-ws"),s=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},{"./_global":29,"./_string-trim":82,"./_string-ws":83}],67:[function(e,t,n){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],68:[function(e,t,n){var r=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},{"./_an-object":5,"./_is-object":39,"./_new-promise-capability":52}],69:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],70:[function(e,t,n){var r=e("./_redefine");t.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},{"./_redefine":71}],71:[function(e,t,n){var r=e("./_global"),o=e("./_hide"),i=e("./_has"),s=e("./_uid")("src"),a=e("./_function-to-string"),c="toString",l=(""+a).split(c);e("./_core").inspectSource=function(e){return a.call(e)},(t.exports=function(e,t,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,s)||o(n,s,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},{"./_core":14,"./_function-to-string":28,"./_global":29,"./_has":30,"./_hide":31,"./_uid":95}],72:[function(e,t,n){"use strict";var r=e("./_classof"),o=RegExp.prototype.exec;t.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},{"./_classof":12}],73:[function(e,t,n){"use strict";var r,o,i=e("./_flags"),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,l="lastIndex",u=(r=/a/,o=/b*/g,s.call(r,"a"),s.call(o,"a"),0!==r[l]||0!==o[l]),f=void 0!==/()??/.exec("")[1];(u||f)&&(c=function(e){var t,n,r,o,c=this;return f&&(n=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),u&&(t=c[l]),r=s.call(c,e),u&&r&&(c[l]=c.global?r.index+r[0].length:t),f&&r&&1<r.length&&a.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=c},{"./_flags":26}],74:[function(e,t,n){function r(e,t){if(i(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}var o=e("./_is-object"),i=e("./_an-object");t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,o){try{(o=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(e,t){return r(e,t),n?e.__proto__=t:o(e,t),e}}({},!1):void 0),check:r}},{"./_an-object":5,"./_ctx":16,"./_is-object":39,"./_object-gopd":56}],75:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_object-dp"),i=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t=r[e];i&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_descriptors":18,"./_global":29,"./_object-dp":54,"./_wks":99}],76:[function(e,t,n){var r=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"./_has":30,"./_object-dp":54,"./_wks":99}],77:[function(e,t,n){var r=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return r[e]||(r[e]=o(e))}},{"./_shared":78,"./_uid":95}],78:[function(e,t,n){var r=e("./_core"),o=e("./_global"),i="__core-js_shared__",s=o[i]||(o[i]={});(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":14,"./_global":29,"./_library":47}],79:[function(e,t,n){var r=e("./_an-object"),o=e("./_a-function"),i=e("./_wks")("species");t.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||null==(n=r(s)[i])?t:o(n)}},{"./_a-function":1,"./_an-object":5,"./_wks":99}],80:[function(e,t,n){var r=e("./_to-integer"),o=e("./_defined");t.exports=function(e){return function(t,n){var i,s,a=String(o(t)),c=r(n),l=a.length;return c<0||l<=c?e?"":void 0:(i=a.charCodeAt(c))<55296||56319<i||c+1===l||(s=a.charCodeAt(c+1))<56320||57343<s?e?a.charAt(c):i:e?a.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},{"./_defined":17,"./_to-integer":87}],81:[function(e,t,n){var r=e("./_is-regexp"),o=e("./_defined");t.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},{"./_defined":17,"./_is-regexp":40}],82:[function(e,t,n){function r(e,t,n){var r={},i=s((function(){return!!a[e]()||"​…"!="​…"[e]()})),c=r[e]=i?t(f):a[e];n&&(r[n]=c),o(o.P+o.F*i,"String",r)}var o=e("./_export"),i=e("./_defined"),s=e("./_fails"),a=e("./_string-ws"),c="["+a+"]",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),f=r.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};t.exports=r},{"./_defined":17,"./_export":22,"./_fails":24,"./_string-ws":83}],83:[function(e,t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],84:[function(e,t,n){function r(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}}function o(e){r.call(e.data)}var i,s,a,c=e("./_ctx"),l=e("./_invoke"),u=e("./_html"),f=e("./_dom-create"),d=e("./_global"),p=d.process,h=d.setImmediate,y=d.clearImmediate,m=d.MessageChannel,v=d.Dispatch,_=0,g={},b="onreadystatechange";h&&y||(h=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return g[++_]=function(){l("function"==typeof e?e:Function(e),t)},i(_),_},y=function(e){delete g[e]},"process"==e("./_cof")(p)?i=function(e){p.nextTick(c(r,e,1))}:v&&v.now?i=function(e){v.now(c(r,e,1))}:m?(a=(s=new m).port2,s.port1.onmessage=o,i=c(a.postMessage,a,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(i=function(e){d.postMessage(e+"","*")},d.addEventListener("message",o,!1)):i=b in f("script")?function(e){u.appendChild(f("script"))[b]=function(){u.removeChild(this),r.call(e)}}:function(e){setTimeout(c(r,e,1),0)}),t.exports={set:h,clear:y}},{"./_cof":13,"./_ctx":16,"./_dom-create":19,"./_global":29,"./_html":32,"./_invoke":35}],85:[function(e,t,n){var r=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},{"./_to-integer":87}],86:[function(e,t,n){var r=e("./_to-integer"),o=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},{"./_to-integer":87,"./_to-length":89}],87:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0<e?o:r)(e)}},{}],88:[function(e,t,n){var r=e("./_iobject"),o=e("./_defined");t.exports=function(e){return r(o(e))}},{"./_defined":17,"./_iobject":36}],89:[function(e,t,n){var r=e("./_to-integer"),o=Math.min;t.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},{"./_to-integer":87}],90:[function(e,t,n){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":17}],91:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":39}],92:[function(e,t,n){"use strict";if(e("./_descriptors")){var r=e("./_library"),o=e("./_global"),i=e("./_fails"),s=e("./_export"),a=e("./_typed"),c=e("./_typed-buffer"),l=e("./_ctx"),u=e("./_an-instance"),f=e("./_property-desc"),d=e("./_hide"),p=e("./_redefine-all"),h=e("./_to-integer"),y=e("./_to-length"),m=e("./_to-index"),v=e("./_to-absolute-index"),_=e("./_to-primitive"),g=e("./_has"),b=e("./_classof"),w=e("./_is-object"),x=e("./_to-object"),j=e("./_is-array-iter"),k=e("./_object-create"),E=e("./_object-gpo"),S=e("./_object-gopn").f,D=e("./core.get-iterator-method"),C=e("./_uid"),O=e("./_wks"),P=e("./_array-methods"),M=e("./_array-includes"),B=e("./_species-constructor"),A=e("./es6.array.iterator"),T=e("./_iterators"),I=e("./_iter-detect"),L=e("./_set-species"),K=e("./_array-fill"),R=e("./_array-copy-within"),F=e("./_object-dp"),N=e("./_object-gopd"),U=F.f,z=N.f,H=o.RangeError,W=o.TypeError,V=o.Uint8Array,q="ArrayBuffer",G="Shared"+q,Y="BYTES_PER_ELEMENT",X="prototype",$=Array[X],J=c.ArrayBuffer,Q=c.DataView,Z=P(0),ee=P(2),te=P(3),ne=P(4),re=P(5),oe=P(6),ie=M(!0),se=M(!1),ae=A.values,ce=A.keys,le=A.entries,ue=$.lastIndexOf,fe=$.reduce,de=$.reduceRight,pe=$.join,he=$.sort,ye=$.slice,me=$.toString,ve=$.toLocaleString,_e=O("iterator"),ge=O("toStringTag"),be=C("typed_constructor"),we=C("def_constructor"),xe=a.CONSTR,je=a.TYPED,ke=a.VIEW,Ee="Wrong length!",Se=P(1,(function(e,t){return Me(B(e,e[we]),t)})),De=i((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),Ce=!!V&&!!V[X].set&&i((function(){new V(1).set({})})),Oe=function(e,t){var n=h(e);if(n<0||n%t)throw H("Wrong offset!");return n},Pe=function(e){if(w(e)&&je in e)return e;throw W(e+" is not a typed array!")},Me=function(e,t){if(!w(e)||!(be in e))throw W("It is not a typed array constructor!");return new e(t)},Be=function(e,t){return Ae(B(e,e[we]),t)},Ae=function(e,t){for(var n=0,r=t.length,o=Me(e,r);n<r;)o[n]=t[n++];return o},Te=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Ie=function(e,t,n){var r,o,i,s,a,c,u=x(e),f=arguments.length,d=1<f?t:void 0,p=void 0!==d,h=D(u);if(null!=h&&!j(h)){for(c=h.call(u),i=[],r=0;!(a=c.next()).done;r++)i.push(a.value);u=i}for(p&&2<f&&(d=l(d,n,2)),r=0,o=y(u.length),s=Me(this,o);r<o;r++)s[r]=p?d(u[r],r):u[r];return s},Le=function(){for(var e=0,t=arguments.length,n=Me(this,t);e<t;)n[e]=arguments[e++];return n},Ke=!!V&&i((function(){ve.call(new V(1))})),Re=function(){return ve.apply(Ke?ye.call(Pe(this)):Pe(this),arguments)},Fe={copyWithin:function(e,t,n){return R.call(Pe(this),e,t,2<arguments.length?n:void 0)},every:function(e,t){return ne(Pe(this),e,1<arguments.length?t:void 0)},fill:function(e){return K.apply(Pe(this),arguments)},filter:function(e,t){return Be(this,ee(Pe(this),e,1<arguments.length?t:void 0))},find:function(e,t){return re(Pe(this),e,1<arguments.length?t:void 0)},findIndex:function(e,t){return oe(Pe(this),e,1<arguments.length?t:void 0)},forEach:function(e,t){Z(Pe(this),e,1<arguments.length?t:void 0)},indexOf:function(e,t){return se(Pe(this),e,1<arguments.length?t:void 0)},includes:function(e,t){return ie(Pe(this),e,1<arguments.length?t:void 0)},join:function(e){return pe.apply(Pe(this),arguments)},lastIndexOf:function(e){return ue.apply(Pe(this),arguments)},map:function(e,t){return Se(Pe(this),e,1<arguments.length?t:void 0)},reduce:function(e){return fe.apply(Pe(this),arguments)},reduceRight:function(e){return de.apply(Pe(this),arguments)},reverse:function(){for(var e,t=this,n=Pe(t).length,r=Math.floor(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t},some:function(e,t){return te(Pe(this),e,1<arguments.length?t:void 0)},sort:function(e){return he.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),r=n.length,o=v(e,r);return new(B(n,n[we]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,y((void 0===t?r:v(t,r))-o))}},Ne=function(e,t){return Be(this,ye.call(Pe(this),e,t))},Ue=function(e,t){Pe(this);var n=Oe(t,1),r=this.length,o=x(e),i=y(o.length),s=0;if(r<i+n)throw H(Ee);for(;s<i;)this[n+s]=o[s++]},ze={entries:function(){return le.call(Pe(this))},keys:function(){return ce.call(Pe(this))},values:function(){return ae.call(Pe(this))}},He=function(e,t){return w(e)&&e[je]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},We=function(e,t){return He(e,t=_(t,!0))?f(2,e[t]):z(e,t)},Ve=function(e,t,n){return!(He(e,t=_(t,!0))&&w(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};xe||(N.f=We,F.f=Ve),s(s.S+s.F*!xe,"Object",{getOwnPropertyDescriptor:We,defineProperty:Ve}),i((function(){me.call({})}))&&(me=ve=function(){return pe.call(this)});var qe=p({},Fe);p(qe,ze),d(qe,_e,ze.values),p(qe,{slice:Ne,set:Ue,constructor:function(){},toString:me,toLocaleString:Re}),Te(qe,"buffer","b"),Te(qe,"byteOffset","o"),Te(qe,"byteLength","l"),Te(qe,"length","e"),U(qe,ge,{get:function(){return this[je]}}),t.exports=function(e,t,n,c){function l(e,n){U(e,n,{get:function(){return e=n,(r=this._d).v[p](e*t+r.o,De);var e,r},set:function(e){return r=n,o=e,i=this._d,c&&(o=(o=Math.round(o))<0?0:255<o?255:255&o),void i.v[h](r*t+i.o,o,De);var r,o,i},enumerable:!0})}var f=e+((c=!!c)?"Clamped":"")+"Array",p="get"+e,h="set"+e,v=o[f],_=v||{},g=v&&E(v),x=!v||!a.ABV,j={},D=v&&v[X];x?(v=n((function(e,n,r,o){u(e,v,f,"_d");var i,s,a,c,p=0,h=0;if(w(n)){if(!(n instanceof J||(c=b(n))==q||c==G))return je in n?Ae(v,n):Ie.call(v,n);i=n,h=Oe(r,t);var _=n.byteLength;if(void 0===o){if(_%t)throw H(Ee);if((s=_-h)<0)throw H(Ee)}else if(_<(s=y(o)*t)+h)throw H(Ee);a=s/t}else a=m(n),i=new J(s=a*t);for(d(e,"_d",{b:i,o:h,l:s,e:a,v:new Q(i)});p<a;)l(e,p++)})),D=v[X]=k(qe),d(D,"constructor",v)):i((function(){v(1)}))&&i((function(){new v(-1)}))&&I((function(e){new v,new v(null),new v(1.5),new v(e)}),!0)||(v=n((function(e,n,r,o){var i;return u(e,v,f),w(n)?n instanceof J||(i=b(n))==q||i==G?void 0!==o?new _(n,Oe(r,t),o):void 0!==r?new _(n,Oe(r,t)):new _(n):je in n?Ae(v,n):Ie.call(v,n):new _(m(n))})),Z(g!==Function.prototype?S(_).concat(S(g)):S(_),(function(e){e in v||d(v,e,_[e])})),v[X]=D,r||(D.constructor=v));var C=D[_e],O=!!C&&("values"==C.name||null==C.name),P=ze.values;d(v,be,!0),d(D,je,f),d(D,ke,!0),d(D,we,v),(c?new v(1)[ge]==f:ge in D)||U(D,ge,{get:function(){return f}}),j[f]=v,s(s.G+s.W+s.F*(v!=_),j),s(s.S,f,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*i((function(){_.of.call(v,1)})),f,{from:Ie,of:Le}),Y in D||d(D,Y,t),s(s.P,f,Fe),L(f),s(s.P+s.F*Ce,f,{set:Ue}),s(s.P+s.F*!O,f,ze),r||D.toString==me||(D.toString=me),s(s.P+s.F*i((function(){new v(1).slice()})),f,{slice:Ne}),s(s.P+s.F*(i((function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()}))||!i((function(){D.toLocaleString.call([1,2])}))),f,{toLocaleString:Re}),T[f]=O?C:P,r||O||d(D,_e,P)}}else t.exports=function(){}},{"./_an-instance":4,"./_array-copy-within":6,"./_array-fill":7,"./_array-includes":8,"./_array-methods":9,"./_classof":12,"./_ctx":16,"./_descriptors":18,"./_export":22,"./_fails":24,"./_global":29,"./_has":30,"./_hide":31,"./_is-array-iter":37,"./_is-object":39,"./_iter-detect":44,"./_iterators":46,"./_library":47,"./_object-create":53,"./_object-dp":54,"./_object-gopd":56,"./_object-gopn":58,"./_object-gpo":60,"./_property-desc":69,"./_redefine-all":70,"./_set-species":75,"./_species-constructor":79,"./_to-absolute-index":85,"./_to-index":86,"./_to-integer":87,"./_to-length":89,"./_to-object":90,"./_to-primitive":91,"./_typed":94,"./_typed-buffer":93,"./_uid":95,"./_wks":99,"./core.get-iterator-method":100,"./es6.array.iterator":103}],93:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_descriptors"),i=e("./_library"),s=e("./_typed"),a=e("./_hide"),c=e("./_redefine-all"),l=e("./_fails"),u=e("./_an-instance"),f=e("./_to-integer"),d=e("./_to-length"),p=e("./_to-index"),h=e("./_object-gopn").f,y=e("./_object-dp").f,m=e("./_array-fill"),v=e("./_set-to-string-tag"),_="ArrayBuffer",g="DataView",b="prototype",w="Wrong index!",x=r[_],j=r[g],k=r.Math,E=r.RangeError,S=r.Infinity,D=x,C=k.abs,O=k.pow,P=k.floor,M=k.log,B=k.LN2,A="byteLength",T="byteOffset",I=o?"_b":"buffer",L=o?"_l":A,K=o?"_o":T;function R(e,t,n){var r,o,i,s=new Array(n),a=8*n-t-1,c=(1<<a)-1,l=c>>1,u=23===t?O(2,-24)-O(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=C(e))!=e||e===S?(o=e!=e?1:0,r=c):(r=P(M(e)/B),e*(i=O(2,-r))<1&&(r--,i*=2),2<=(e+=1<=r+l?u/i:u*O(2,1-l))*i&&(r++,i/=2),c<=r+l?(o=0,r=c):1<=r+l?(o=(e*i-1)*O(2,t),r+=l):(o=e*O(2,l-1)*O(2,t),r=0));8<=t;s[f++]=255&o,o/=256,t-=8);for(r=r<<t|o,a+=t;0<a;s[f++]=255&r,r/=256,a-=8);return s[--f]|=128*d,s}function F(e,t,n){var r,o=8*n-t-1,i=(1<<o)-1,s=i>>1,a=o-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;0<a;u=256*u+e[c],c--,a-=8);for(r=u&(1<<-a)-1,u>>=-a,a+=t;0<a;r=256*r+e[c],c--,a-=8);if(0===u)u=1-s;else{if(u===i)return r?NaN:l?-S:S;r+=O(2,t),u-=s}return(l?-1:1)*r*O(2,u-t)}function N(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function U(e){return[255&e]}function z(e){return[255&e,e>>8&255]}function H(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function W(e){return R(e,52,8)}function V(e){return R(e,23,4)}function q(e,t,n){y(e[b],t,{get:function(){return this[n]}})}function G(e,t,n,r){var o=p(+n);if(o+t>e[L])throw E(w);var i=e[I]._b,s=o+e[K],a=i.slice(s,s+t);return r?a:a.reverse()}function Y(e,t,n,r,o,i){var s=p(+n);if(s+t>e[L])throw E(w);for(var a=e[I]._b,c=s+e[K],l=r(+o),u=0;u<t;u++)a[c+u]=l[i?u:t-u-1]}if(s.ABV){if(!l((function(){x(1)}))||!l((function(){new x(-1)}))||l((function(){return new x,new x(1.5),new x(NaN),x.name!=_}))){for(var X,$=(x=function(e){return u(this,x),new D(p(e))})[b]=D[b],J=h(D),Q=0;J.length>Q;)(X=J[Q++])in x||a(x,X,D[X]);i||($.constructor=x)}var Z=new j(new x(2)),ee=j[b].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||c(j[b],{setInt8:function(e,t){ee.call(this,e,t<<24>>24)},setUint8:function(e,t){ee.call(this,e,t<<24>>24)}},!0)}else x=function(e){u(this,x,_);var t=p(e);this._b=m.call(new Array(t),0),this[L]=t},j=function(e,t,n){u(this,j,g),u(e,x,g);var r=e[L],o=f(t);if(o<0||r<o)throw E("Wrong offset!");if(r<o+(n=void 0===n?r-o:d(n)))throw E("Wrong length!");this[I]=e,this[K]=o,this[L]=n},o&&(q(x,A,"_l"),q(j,"buffer","_b"),q(j,A,"_l"),q(j,T,"_o")),c(j[b],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e,t){var n=G(this,2,e,t);return(n[1]<<8|n[0])<<16>>16},getUint16:function(e,t){var n=G(this,2,e,t);return n[1]<<8|n[0]},getInt32:function(e,t){return N(G(this,4,e,t))},getUint32:function(e,t){return N(G(this,4,e,t))>>>0},getFloat32:function(e,t){return F(G(this,4,e,t),23,4)},getFloat64:function(e,t){return F(G(this,8,e,t),52,8)},setInt8:function(e,t){Y(this,1,e,U,t)},setUint8:function(e,t){Y(this,1,e,U,t)},setInt16:function(e,t,n){Y(this,2,e,z,t,n)},setUint16:function(e,t,n){Y(this,2,e,z,t,n)},setInt32:function(e,t,n){Y(this,4,e,H,t,n)},setUint32:function(e,t,n){Y(this,4,e,H,t,n)},setFloat32:function(e,t,n){Y(this,4,e,V,t,n)},setFloat64:function(e,t,n){Y(this,8,e,W,t,n)}});v(x,_),v(j,g),a(j[b],s.VIEW,!0),n[_]=x,n[g]=j},{"./_an-instance":4,"./_array-fill":7,"./_descriptors":18,"./_fails":24,"./_global":29,"./_hide":31,"./_library":47,"./_object-dp":54,"./_object-gopn":58,"./_redefine-all":70,"./_set-to-string-tag":76,"./_to-index":86,"./_to-integer":87,"./_to-length":89,"./_typed":94}],94:[function(e,t,n){for(var r,o=e("./_global"),i=e("./_hide"),s=e("./_uid"),a=s("typed_array"),c=s("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[d[f++]])?(i(r.prototype,a,!0),i(r.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:a,VIEW:c}},{"./_global":29,"./_hide":31,"./_uid":95}],95:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+o).toString(36))}},{}],96:[function(e,t,n){var r=e("./_global").navigator;t.exports=r&&r.userAgent||""},{"./_global":29}],97:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_library"),s=e("./_wks-ext"),a=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=!i&&r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},{"./_core":14,"./_global":29,"./_library":47,"./_object-dp":54,"./_wks-ext":98}],98:[function(e,t,n){n.f=e("./_wks")},{"./_wks":99}],99:[function(e,t,n){var r=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,s="function"==typeof i;(t.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},{"./_global":29,"./_shared":78,"./_uid":95}],100:[function(e,t,n){var r=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},{"./_classof":12,"./_core":14,"./_iterators":46,"./_wks":99}],101:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_array-methods")(5),i="find",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r(r.P+r.F*s,"Array",{find:function(e,t){return o(this,e,1<arguments.length?t:void 0)}}),e("./_add-to-unscopables")(i)},{"./_add-to-unscopables":2,"./_array-methods":9,"./_export":22}],102:[function(e,t,n){"use strict";var r=e("./_ctx"),o=e("./_export"),i=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");o(o.S+o.F*!e("./_iter-detect")((function(e){Array.from(e)})),"Array",{from:function(e,t,n){var o,f,d,p,h=i(e),y="function"==typeof this?this:Array,m=arguments.length,v=1<m?t:void 0,_=void 0!==v,g=0,b=u(h);if(_&&(v=r(v,2<m?n:void 0,2)),null==b||y==Array&&a(b))for(f=new y(o=c(h.length));g<o;g++)l(f,g,_?v(h[g],g):h[g]);else for(p=b.call(h),f=new y;!(d=p.next()).done;g++)l(f,g,_?s(p,v,[d.value,g],!0):d.value);return f.length=g,f}})},{"./_create-property":15,"./_ctx":16,"./_export":22,"./_is-array-iter":37,"./_iter-call":41,"./_iter-detect":44,"./_to-length":89,"./_to-object":90,"./core.get-iterator-method":100}],103:[function(e,t,n){"use strict";var r=e("./_add-to-unscopables"),o=e("./_iter-step"),i=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,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":2,"./_iter-define":43,"./_iter-step":45,"./_iterators":46,"./_to-iobject":88}],104:[function(e,t,n){var r=e("./_object-dp").f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e("./_descriptors")&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},{"./_descriptors":18,"./_object-dp":54}],105:[function(e,t,n){var r=e("./_export");r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},{"./_export":22}],106:[function(e,t,n){var r=e("./_export");r(r.S,"Math",{fround:e("./_math-fround")})},{"./_export":22,"./_math-fround":48}],107:[function(e,t,n){var r=e("./_export"),o=Math.imul;r(r.S+r.F*e("./_fails")((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,s=n&o;return 0|i*s+((n&r>>>16)*s+i*(n&o>>>16)<<16>>>0)}})},{"./_export":22,"./_fails":24}],108:[function(e,t,n){var r=e("./_export");r(r.S,"Math",{trunc:function(e){return(0<e?Math.floor:Math.ceil)(e)}})},{"./_export":22}],109:[function(e,t,n){"use strict";function r(e){var t=c(e,!1);if("string"==typeof t&&2<t.length){var n,r,o,i=(t=g?t.trim():p(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var s,a=t.slice(2),l=0,u=a.length;l<u;l++)if((s=a.charCodeAt(l))<48||o<s)return NaN;return parseInt(a,r)}}return+t}var o=e("./_global"),i=e("./_has"),s=e("./_cof"),a=e("./_inherit-if-required"),c=e("./_to-primitive"),l=e("./_fails"),u=e("./_object-gopn").f,f=e("./_object-gopd").f,d=e("./_object-dp").f,p=e("./_string-trim").trim,h="Number",y=o[h],m=y,v=y.prototype,_=s(e("./_object-create")(v))==h,g="trim"in String.prototype;if(!y(" 0o1")||!y("0b1")||y("+0x1")){y=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof y&&(_?l((function(){v.valueOf.call(n)})):s(n)!=h)?a(new m(r(t)),n,y):r(t)};for(var b,w=e("./_descriptors")?u(m):"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;w.length>x;x++)i(m,b=w[x])&&!i(y,b)&&d(y,b,f(m,b));(y.prototype=v).constructor=y,e("./_redefine")(o,h,y)}},{"./_cof":13,"./_descriptors":18,"./_fails":24,"./_global":29,"./_has":30,"./_inherit-if-required":34,"./_object-create":53,"./_object-dp":54,"./_object-gopd":56,"./_object-gopn":58,"./_redefine":71,"./_string-trim":82,"./_to-primitive":91}],110:[function(e,t,n){var r=e("./_export"),o=e("./_parse-int");r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},{"./_export":22,"./_parse-int":66}],111:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-keys");e("./_object-sap")("keys",(function(){return function(e){return o(r(e))}}))},{"./_object-keys":62,"./_object-sap":64,"./_to-object":90}],112:[function(e,t,n){"use strict";var r=e("./_classof"),o={};o[e("./_wks")("toStringTag")]="z",o+""!="[object z]"&&e("./_redefine")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},{"./_classof":12,"./_redefine":71,"./_wks":99}],113:[function(e,t,n){"use strict";function r(){}function o(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t}function i(e,t){if(!e._n){e._n=!0;var n=e._c;x((function(){for(var r=e._v,i=1==e._s,s=0,a=function(t){var n,s,a,c=i?t.ok:t.fail,l=t.resolve,u=t.reject,f=t.domain;try{c?(i||(2==e._h&&R(e),e._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),a=!0)),n===t.promise?u(C("Promise-chain cycle")):(s=o(n))?s.call(n,l,u):l(n)):u(r)}catch(t){f&&!a&&f.exit(),u(t)}};n.length>s;)a(n[s++]);e._c=[],e._n=!1,t&&!e._h&&L(e)}))}}function s(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()),i(t,!0))}var a,c,l,u,f=e("./_library"),d=e("./_global"),p=e("./_ctx"),h=e("./_classof"),y=e("./_export"),m=e("./_is-object"),v=e("./_a-function"),_=e("./_an-instance"),g=e("./_for-of"),b=e("./_species-constructor"),w=e("./_task").set,x=e("./_microtask")(),j=e("./_new-promise-capability"),k=e("./_perform"),E=e("./_user-agent"),S=e("./_promise-resolve"),D="Promise",C=d.TypeError,O=d.process,P=O&&O.versions,M=P&&P.v8||"",B=d[D],A="process"==h(O),T=c=j.f,I=!!function(){try{var t=B.resolve(1),n=(t.constructor={})[e("./_wks")("species")]=function(e){e(r,r)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(r)instanceof n&&0!==M.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(t){}}(),L=function(e){w.call(d,(function(){var t,n,r,o=e._v,i=K(e);if(i&&(t=k((function(){A?O.emit("unhandledRejection",o,e):(n=d.onunhandledrejection)?n({promise:e,reason:o}):(r=d.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=A||K(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},K=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){w.call(d,(function(){var t;A?O.emit("rejectionHandled",e):(t=d.onrejectionhandled)&&t({promise:e,reason:e._v})}))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw C("Promise can't be resolved itself");(t=o(e))?x((function(){var r={_w:n,_d:!1};try{t.call(e,p(F,r,1),p(s,r,1))}catch(e){s.call(r,e)}})):(n._v=e,n._s=1,i(n,!1))}catch(e){s.call({_w:n,_d:!1},e)}}};I||(B=function(e){_(this,B,D,"_h"),v(e),a.call(this);try{e(p(F,this,1),p(s,this,1))}catch(e){s.call(this,e)}},(a=function(){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")(B.prototype,{then:function(e,t){var n=T(b(this,B));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&i(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),l=function(){var e=new a;this.promise=e,this.resolve=p(F,e,1),this.reject=p(s,e,1)},j.f=T=function(e){return e===B||e===u?new l:c(e)}),y(y.G+y.W+y.F*!I,{Promise:B}),e("./_set-to-string-tag")(B,D),e("./_set-species")(D),u=e("./_core")[D],y(y.S+y.F*!I,D,{reject:function(e){var t=T(this);return(0,t.reject)(e),t.promise}}),y(y.S+y.F*(f||!I),D,{resolve:function(e){return S(f&&this===u?B:this,e)}}),y(y.S+y.F*!(I&&e("./_iter-detect")((function(e){B.all(e).catch(r)}))),D,{all:function(e){var t=this,n=T(t),r=n.resolve,o=n.reject,i=k((function(){var n=[],i=0,s=1;g(e,!1,(function(e){var a=i++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),o)})),--s||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=T(t),r=n.reject,o=k((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},{"./_a-function":1,"./_an-instance":4,"./_classof":12,"./_core":14,"./_ctx":16,"./_export":22,"./_for-of":27,"./_global":29,"./_is-object":39,"./_iter-detect":44,"./_library":47,"./_microtask":51,"./_new-promise-capability":52,"./_perform":67,"./_promise-resolve":68,"./_redefine-all":70,"./_set-species":75,"./_set-to-string-tag":76,"./_species-constructor":79,"./_task":84,"./_user-agent":96,"./_wks":99}],114:[function(e,t,n){var r=e("./_global"),o=e("./_inherit-if-required"),i=e("./_object-dp").f,s=e("./_object-gopn").f,a=e("./_is-regexp"),c=e("./_flags"),l=r.RegExp,u=l,f=l.prototype,d=/a/g,p=/a/g,h=new l(d)!==d;if(e("./_descriptors")&&(!h||e("./_fails")((function(){return p[e("./_wks")("match")]=!1,l(d)!=d||l(p)==p||"/a/i"!=l(d,"i")})))){function y(e){e in l||i(l,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})}l=function(e,t){var n=this instanceof l,r=a(e),i=void 0===t;return!n&&r&&e.constructor===l&&i?e:o(h?new u(r&&!i?e.source:e,t):u((r=e instanceof l)?e.source:e,r&&i?c.call(e):t),n?this:f,l)};for(var m=s(u),v=0;m.length>v;)y(m[v++]);(f.constructor=l).prototype=f,e("./_redefine")(r,"RegExp",l)}e("./_set-species")("RegExp")},{"./_descriptors":18,"./_fails":24,"./_flags":26,"./_global":29,"./_inherit-if-required":34,"./_is-regexp":40,"./_object-dp":54,"./_object-gopn":58,"./_redefine":71,"./_set-species":75,"./_wks":99}],115:[function(e,t,n){"use strict";var r=e("./_regexp-exec");e("./_export")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},{"./_export":22,"./_regexp-exec":73}],116:[function(e,t,n){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":18,"./_flags":26,"./_object-dp":54}],117:[function(e,t,n){"use strict";var r=e("./_an-object"),o=e("./_to-object"),i=e("./_to-length"),s=e("./_to-integer"),a=e("./_advance-string-index"),c=e("./_regexp-exec-abstract"),l=Math.max,u=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;e("./_fix-re-wks")("replace",2,(function(e,t,n,h){return[function(r,o){var i=e(this),s=null==r?void 0:r[t];return void 0!==s?s.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=h(n,e,this,t);if(o.done)return o.value;var f=r(e),d=String(this),p="function"==typeof t;p||(t=String(t));var m=f.global;if(m){var v=f.unicode;f.lastIndex=0}for(var _=[];;){var g=c(f,d);if(null===g)break;if(_.push(g),!m)break;""===String(g[0])&&(f.lastIndex=a(d,i(f.lastIndex),v))}for(var b,w="",x=0,j=0;j<_.length;j++){g=_[j];for(var k=String(g[0]),E=l(u(s(g.index),d.length),0),S=[],D=1;D<g.length;D++)S.push(void 0===(b=g[D])?b:String(b));var C=g.groups;if(p){var O=[k].concat(S,E,d);void 0!==C&&O.push(C);var P=String(t.apply(void 0,O))}else P=y(k,d,E,S,C,t);x<=E&&(w+=d.slice(x,E)+P,x=E+k.length)}return w+d.slice(x)}];function y(e,t,r,i,s,a){var c=r+e.length,l=i.length,u=p;return void 0!==s&&(s=o(s),u=d),n.call(a,u,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":a=s[o.slice(1,-1)];break;default:var u=+o;if(0==u)return n;if(l<u){var d=f(u/10);return 0===d?n:d<=l?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):n}a=i[u-1]}return void 0===a?"":a}))}}))},{"./_advance-string-index":3,"./_an-object":5,"./_fix-re-wks":25,"./_regexp-exec-abstract":72,"./_to-integer":87,"./_to-length":89,"./_to-object":90}],118:[function(e,t,n){"use strict";var r=e("./_is-regexp"),o=e("./_an-object"),i=e("./_species-constructor"),s=e("./_advance-string-index"),a=e("./_to-length"),c=e("./_regexp-exec-abstract"),l=e("./_regexp-exec"),u=e("./_fails"),f=Math.min,d=[].push,p="split",h="length",y="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));e("./_fix-re-wks")("split",2,(function(e,t,n,u){var _;return _="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[h]||2!="ab"[p](/(?:ab)*/)[h]||4!="."[p](/(.?)(.?)/)[h]||1<"."[p](/()()/)[h]||""[p](/.?/)[h]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,s,a,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?m:t>>>0,v=new RegExp(e.source,u+"g");(i=l.call(v,o))&&!(f<(s=v[y])&&(c.push(o.slice(f,i.index)),1<i[h]&&i.index<o[h]&&d.apply(c,i.slice(1)),a=i[0][h],f=s,c[h]>=p));)v[y]===i.index&&v[y]++;return f===o[h]?!a&&v.test("")||c.push(""):c.push(o.slice(f)),c[h]>p?c.slice(0,p):c}:"0"[p](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):_.call(String(o),n,r)},function(e,t){var r=u(_,e,this,t,_!==n);if(r.done)return r.value;var l=o(e),d=String(this),p=i(l,RegExp),h=l.unicode,y=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),g=new p(v?l:"^(?:"+l.source+")",y),b=void 0===t?m:t>>>0;if(0==b)return[];if(0===d.length)return null===c(g,d)?[d]:[];for(var w=0,x=0,j=[];x<d.length;){g.lastIndex=v?x:0;var k,E=c(g,v?d:d.slice(x));if(null===E||(k=f(a(g.lastIndex+(v?0:x)),d.length))===w)x=s(d,x,h);else{if(j.push(d.slice(w,x)),j.length===b)return j;for(var S=1;S<=E.length-1;S++)if(j.push(E[S]),j.length===b)return j;x=w=k}}return j.push(d.slice(w)),j}]}))},{"./_advance-string-index":3,"./_an-object":5,"./_fails":24,"./_fix-re-wks":25,"./_is-regexp":40,"./_regexp-exec":73,"./_regexp-exec-abstract":72,"./_species-constructor":79,"./_to-length":89}],119:[function(e,t,n){"use strict";function r(t){e("./_redefine")(RegExp.prototype,a,t,!0)}e("./es6.regexp.flags");var o=e("./_an-object"),i=e("./_flags"),s=e("./_descriptors"),a="toString",c=/./[a];e("./_fails")((function(){return"/a/b"!=c.call({source:"a",flags:"b"})}))?r((function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!s&&e instanceof RegExp?i.call(e):void 0)})):c.name!=a&&r((function(){return c.call(this)}))},{"./_an-object":5,"./_descriptors":18,"./_fails":24,"./_flags":26,"./_redefine":71,"./es6.regexp.flags":116}],120:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},{"./_iter-define":43,"./_string-at":80}],121:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_to-length"),i=e("./_string-context"),s="startsWith",a=""[s];r(r.P+r.F*e("./_fails-is-regexp")(s),"String",{startsWith:function(e,t){var n=i(this,e,s),r=o(Math.min(1<arguments.length?t:void 0,n.length)),c=String(e);return a?a.call(n,c,r):n.slice(r,r+c.length)===c}})},{"./_export":22,"./_fails-is-regexp":23,"./_string-context":81,"./_to-length":89}],122:[function(e,t,n){"use strict";function r(e){var t=G[e]=P(F[z]);return t._k=e,t}function o(e,t){k(e);for(var n,r=x(t=D(t)),o=0,i=r.length;o<i;)te(e,n=r[o++],t[n]);return e}function i(e){var t=V.call(this,e=C(e,!0));return!(this===X&&u(G,e)&&!u(Y,e))&&(!(t||!u(this,e)||!u(G,e)||u(this,H)&&this[H][e])||t)}function s(e,t){if(e=D(e),t=C(t,!0),e!==X||!u(G,t)||u(Y,t)){var n=L(e,t);return!n||!u(G,t)||u(e,H)&&e[H][t]||(n.enumerable=!0),n}}function a(e){for(var t,n=R(D(e)),r=[],o=0;n.length>o;)u(G,t=n[o++])||t==H||t==h||r.push(t);return r}function c(e){for(var t,n=e===X,r=R(n?Y:D(e)),o=[],i=0;r.length>i;)!u(G,t=r[i++])||n&&!u(X,t)||o.push(G[t]);return o}var l=e("./_global"),u=e("./_has"),f=e("./_descriptors"),d=e("./_export"),p=e("./_redefine"),h=e("./_meta").KEY,y=e("./_fails"),m=e("./_shared"),v=e("./_set-to-string-tag"),_=e("./_uid"),g=e("./_wks"),b=e("./_wks-ext"),w=e("./_wks-define"),x=e("./_enum-keys"),j=e("./_is-array"),k=e("./_an-object"),E=e("./_is-object"),S=e("./_to-object"),D=e("./_to-iobject"),C=e("./_to-primitive"),O=e("./_property-desc"),P=e("./_object-create"),M=e("./_object-gopn-ext"),B=e("./_object-gopd"),A=e("./_object-gops"),T=e("./_object-dp"),I=e("./_object-keys"),L=B.f,K=T.f,R=M.f,F=l.Symbol,N=l.JSON,U=N&&N.stringify,z="prototype",H=g("_hidden"),W=g("toPrimitive"),V={}.propertyIsEnumerable,q=m("symbol-registry"),G=m("symbols"),Y=m("op-symbols"),X=Object[z],$="function"==typeof F&&!!A.f,J=l.QObject,Q=!J||!J[z]||!J[z].findChild,Z=f&&y((function(){return 7!=P(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=L(X,t);r&&delete X[t],K(e,t,n),r&&e!==X&&K(X,t,r)}:K,ee=$&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof F},te=function(e,t,n){return e===X&&te(Y,t,n),k(e),t=C(t,!0),k(n),u(G,t)?(n.enumerable?(u(e,H)&&e[H][t]&&(e[H][t]=!1),n=P(n,{enumerable:O(0,!1)})):(u(e,H)||K(e,H,O(1,{})),e[H][t]=!0),Z(e,t,n)):K(e,t,n)};$||(p((F=function(e){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=_(0<arguments.length?e:void 0),n=function(e){this===X&&n.call(Y,e),u(this,H)&&u(this[H],t)&&(this[H][t]=!1),Z(this,t,O(1,e))};return f&&Q&&Z(X,t,{configurable:!0,set:n}),r(t)})[z],"toString",(function(){return this._k})),B.f=s,T.f=te,e("./_object-gopn").f=M.f=a,e("./_object-pie").f=i,A.f=c,f&&!e("./_library")&&p(X,"propertyIsEnumerable",i,!0),b.f=function(e){return r(g(e))}),d(d.G+d.W+d.F*!$,{Symbol:F});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)g(ne[re++]);for(var oe=I(g.store),ie=0;oe.length>ie;)w(oe[ie++]);d(d.S+d.F*!$,"Symbol",{for:function(e){return u(q,e+="")?q[e]:q[e]=F(e)},keyFor:function(e){if(!ee(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),d(d.S+d.F*!$,"Object",{create:function(e,t){return void 0===t?P(e):o(P(e),t)},defineProperty:te,defineProperties:o,getOwnPropertyDescriptor:s,getOwnPropertyNames:a,getOwnPropertySymbols:c});var se=y((function(){A.f(1)}));d(d.S+d.F*se,"Object",{getOwnPropertySymbols:function(e){return A.f(S(e))}}),N&&d(d.S+d.F*(!$||y((function(){var e=F();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;o<arguments.length;)r.push(arguments[o++]);if(n=t=r[1],(E(t)||void 0!==e)&&!ee(e))return j(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ee(t))return t}),r[1]=t,U.apply(N,r)}}),F[z][W]||e("./_hide")(F[z],W,F[z].valueOf),v(F,"Symbol"),v(Math,"Math",!0),v(l.JSON,"JSON",!0)},{"./_an-object":5,"./_descriptors":18,"./_enum-keys":21,"./_export":22,"./_fails":24,"./_global":29,"./_has":30,"./_hide":31,"./_is-array":38,"./_is-object":39,"./_library":47,"./_meta":50,"./_object-create":53,"./_object-dp":54,"./_object-gopd":56,"./_object-gopn":58,"./_object-gopn-ext":57,"./_object-gops":59,"./_object-keys":62,"./_object-pie":63,"./_property-desc":69,"./_redefine":71,"./_set-to-string-tag":76,"./_shared":78,"./_to-iobject":88,"./_to-object":90,"./_to-primitive":91,"./_uid":95,"./_wks":99,"./_wks-define":97,"./_wks-ext":98}],123:[function(e,t,n){e("./_typed-array")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},{"./_typed-array":92}],124:[function(e,t,n){e("./_typed-array")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},{"./_typed-array":92}],125:[function(e,t,n){var r=e("./_export"),o=e("./_own-keys"),i=e("./_to-iobject"),s=e("./_object-gopd"),a=e("./_create-property");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),c=s.f,l=o(r),u={},f=0;l.length>f;)void 0!==(n=c(r,t=l[f++]))&&a(u,t,n);return u}})},{"./_create-property":15,"./_export":22,"./_object-gopd":56,"./_own-keys":65,"./_to-iobject":88}],126:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":97}],127:[function(e,t,n){for(var r=e("./es6.array.iterator"),o=e("./_object-keys"),i=e("./_redefine"),s=e("./_global"),a=e("./_hide"),c=e("./_iterators"),l=e("./_wks"),u=l("iterator"),f=l("toStringTag"),d=c.Array,p={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},h=o(p),y=0;y<h.length;y++){var m,v=h[y],_=p[v],g=s[v],b=g&&g.prototype;if(b&&(b[u]||a(b,u,d),b[f]||a(b,f,v),c[v]=d,_))for(m in r)b[m]||i(b,m,r[m],!0)}},{"./_global":29,"./_hide":31,"./_iterators":46,"./_object-keys":62,"./_redefine":71,"./_wks":99,"./es6.array.iterator":103}],128:[function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o,i,s,a,c=t&&t.prototype instanceof y?t:y,m=Object.create(c.prototype),v=new D(r||[]);return m._invoke=(o=e,i=n,s=v,a=u,function(e,t){if(a===d)throw new Error("Generator is already running");if(a===p){if("throw"===e)throw t;return O()}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n){var r=k(n,s);if(r){if(r===h)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(a===u)throw a=p,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a=d;var c=l(o,i,s);if("normal"===c.type){if(a=s.done?p:f,c.arg===h)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(a=p,s.method="throw",s.arg=c.arg)}}),m}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function y(){}function m(){}function v(){}var _={};_[i]=function(){return this};var g=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==n&&r.call(b,i)&&(_=b);var w=v.prototype=y.prototype=Object.create(_);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function j(e,t){var n;this._invoke=function(o,i){function s(){return new t((function(n,s){!function n(o,i,s,a){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function E(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:O}}function O(){return{value:t,done:!0}}return m.prototype=w.constructor=v,v.constructor=m,v[a]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(j.prototype),j.prototype[s]=function(){return this},e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new j(c(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(w),w[a]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;0<=i;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(s)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},{}],129:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Build={version:"0.72.0 (9d95650ce8e9eb9633ef5cec3fb91cb1)",buildSeed:1631176127038,"wdosbox.wasm":{size:1463621,gzSize:491837},"wdosbox.js":{size:107939,gzSize:27716},"wlibzip.wasm":{size:112343,gzSize:54127},"wlibzip.js":{size:80579,gzSize:20779}}},{}],130:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function e(){r(this,e)}return i(e,[{key:"close",value:function(){}},{key:"put",value:function(){return Promise.resolve()}},{key:"get",value:function(e,t){return void 0!==t?Promise.resolve(t):Promise.reject("Cache is not supported on this host")}},{key:"forEach",value:function(e,t){t()}}]),e}();n.CacheNoop=s,n.CacheDb=function(e,t){return new Promise((function(n){new a(e,n,(function(e){t.onErr(e),n(new s)}))}))};var a=function(){function e(t,n,o){var i=this;if(r(this,e),this.storeName="files",this.db=null,this.version=t,this.indexedDB="undefined"==typeof window?void 0:window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,this.indexedDB){var s=this.indexedDB.open("js-dos-cache ("+t+")",1);s.onerror=function(e){var t;o("Can't open cache database: "+(null===(t=s.error)||void 0===t?void 0:t.message))},s.onsuccess=function(e){i.db=s.result,n(i)},s.onupgradeneeded=function(e){try{i.db=s.result,i.db.onerror=function(e){o("Can't upgrade cache database")},i.db.createObjectStore(i.storeName)}catch(e){o("Can't upgrade cache database")}}}else o("Indexed db is not supported on this host")}return i(e,[{key:"close",value:function(){null!==this.db&&(this.db.close(),this.db=null)}},{key:"put",value:function(e,t){var n=this;return new Promise((function(r){if(null!==n.db){var o=n.db.transaction(n.storeName,"readwrite");o.oncomplete=function(){return r()},o.objectStore(n.storeName).put(t,e)}else r()}))}},{key:"get",value:function(e,t){var n=this;return new Promise((function(r,o){function i(e){void 0===t?o(new Error(e)):r(t)}if(null!==n.db){var s=n.db.transaction(n.storeName,"readonly").objectStore(n.storeName).get(e);s.onerror=function(){return o(new Error("Can't read value for key '"+e+"'"))},s.onsuccess=function(){s.result?r(s.result):i("Result is empty for key '"+e+"', result: "+s.result)}}else i("db is not initalized")}))}},{key:"forEach",value:function(e,t){if(null!==this.db){var n=this.db.transaction(this.storeName,"readonly").objectStore(this.storeName).openCursor();n.onerror=function(){return t()},n.onsuccess=function(n){var r=n.target.result;r?(e(r.key.toString(),r.value),r.continue()):t()}}else t()}}]),e}()},{"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.to-string":119}],131:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=s(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function o(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.array.from"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.promise"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.string.iterator"),e("regenerator-runtime/runtime");Object.defineProperty(n,"__esModule",{value:!0});var l=e("./dos-conf"),u=function(e){return e&&e.__esModule?e:{default:e}}(e("../../libzip/libzip")),f=e("../../http"),d=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=l.createDosConfig(),this.sources=[],this.libzipWasm=t,this.cache=n}var t,n,s,a;return t=e,(n=[{key:"autoexec",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.config.autoexec.options.script.value=t.join("\n"),this}},{key:"cycles",value:function(e){return this.config.cpu.options.cycles.value=e,this}},{key:"extract",value:function(e,t,n){var r=1<arguments.length&&void 0!==t?t:"/",o=2<arguments.length&&void 0!==n?n:"zip";return this.extractAll([{url:e,path:r,type:o}])}},{key:"extractAll",value:function(e){var t;return(t=this.sources).push.apply(t,i(e)),this}},{key:"toUint8Array",value:(s=regeneratorRuntime.mark((function e(){var t,n,o,i,s,a,c,d,h,y,m,v,_,g=this,b=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<b.length&&void 0!==b[0]&&b[0],n={},e.next=4,this.libzipWasm.instantiate(n);case 4:return o=new u.default(n,"/home/web_user"),e.next=7,l.toDosboxConf(this.config);case 7:i=e.sent,s=[],a=r(this.sources);try{for(d=function(){var e=c.value;if("zip"!==e.type)throw new Error("Only Zip is supported");var t=f.HTTPRequest(e.url,{cache:g.cache,responseType:"arraybuffer"}).then((function(t){return{source:e,data:new Uint8Array(t)}}));s.push(t)},a.s();!(c=a.n()).done;)d()}catch(e){a.e(e)}finally{a.f()}if(t){e.next=18;break}return e.next=14,o.writeFile(".jsdos/dosbox.conf",i);case 14:return e.next=16,o.writeFile(".jsdos/readme.txt",p);case 16:return e.next=18,o.writeFile(".jsdos/jsdos.json",JSON.stringify(this.config,null,2));case 18:return e.next=20,Promise.all(s);case 20:h=e.sent,y=r(h);try{for(y.s();!(m=y.n()).done;)v=m.value,o.zipToFs(v.data,v.source.path)}catch(e){y.e(e)}finally{y.f()}if(t)return e.next=26,o.writeFile(".jsdos/dosbox.conf",i);e.next=30;break;case 26:return e.next=28,o.writeFile(".jsdos/readme.txt",p);case 28:return e.next=30,o.writeFile(".jsdos/jsdos.json",JSON.stringify(this.config,null,2));case 30:return e.next=32,o.zipFromFs();case 32:return _=e.sent,o.destroy(),e.abrupt("return",_);case 35:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=s.apply(e,t);function a(e){o(i,n,r,a,c,"next",e)}function c(e){o(i,n,r,a,c,"throw",e)}a(void 0)}))},function(){return a.apply(this,arguments)})}])&&c(t.prototype,n),e}();n.default=d;var p="\nPlease visit our website:\n\n _ __\n (_)____ ____/ /___ _____ _________ ____ ___\n / / ___/_____/ __ / __ \\/ ___// ___/ __ \\/ __ `__ \\\n / (__ )_____/ /_/ / /_/ (__ )/ /__/ /_/ / / / / / /\n __/ /____/ \\__,_/\\____/____(_)___/\\____/_/ /_/ /_/\n /___/\n"},{"../../http":136,"../../libzip/libzip":141,"./dos-conf":132,"core-js/modules/es6.array.from":102,"core-js/modules/es6.array.iterator":103,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es6.typed.uint8-array":123,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127,"regenerator-runtime/runtime":128}],132:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}function l(e){return(l="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})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e("core-js/modules/es7.object.get-own-property-descriptors"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.regexp.to-string"),e("regenerator-runtime/runtime"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.number.constructor"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/es6.string.starts-with"),e("core-js/modules/es6.array.find"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.function.name"),Object.defineProperty(n,"__esModule",{value:!0});var f=function e(){u(this,e),this.name="sdl",this.description="This section contains all of the low level system settings for how DOSBox interacts with your real hardware. You can define what resolutions are emulated, how DOSBox should treat errors or listen to your keyboard and mouse. You can often achieve a fair level of optimization by working with these setting, though for the most part leaving them at their default settings will create the best experience. These settings are passed on to the SDL Library which handles low level things like input and thread priority.",this.options={autolock:{name:"autolock",description:"Mouse will automatically lock, if you click on the screen.",value:!1,allowedValues:[!0,!1]}}};n.OutputCategory=f;var d=function e(){u(this,e),this.name="dosbox",this.description="The [dosbox] section contains various settings that do not pertain to any other section (e.g. setting the language used in DOSBox help texts, where to store screen captures, etc.)",this.options={machine:{name:"machine",description:"The type of machine tries to emulate.",value:"svga_s3",allowedValues:["hercules","cga","tandy","pcjr","ega","vgaonly","svga_s3","svga_et3000","svga_et4000","svga_paradise","vesa_nolfb","vesa_oldvbe"]}}};n.DosboxCategory=d;var p=function e(){u(this,e),this.name="cpu",this.description="The CPU section controls how DOSBox tries to emulate the CPU, how fast the emulation should be, and to adjust it. DOSBox offers 4 different methods of CPU emulation.",this.options={core:{name:"core",description:"CPU Core used in emulation. auto will switch to dynamic if available and appropriate.",value:"auto",allowedValues:["auto","normal","simple"]},cputype:{name:"cputype",description:"CPU Type used in emulation. auto is the fastest choice.",value:"auto",allowedValues:["auto","386","386_slow","486_slow","pentium_slow","386_prefetch"]},cycles:{name:"cycles",description:"Amount of instructions DOSBox tries to emulate each millisecond. Setting this value too high results in sound dropouts and lags.\nCycles can be set in 3 ways:\n'auto' tries to guess what a game needs.\n It usually works, but can fail for certain games.\n'fixed #number' will set a fixed amount of cycles. This is what you usually need if 'auto' fails.\n (Example: fixed 4000).\n'max' will allocate as much cycles as your computer is able to handle.\n",value:"auto",allowedValues:["auto","fixed","max"]}}};n.CpuCategory=p;var h=function e(){u(this,e),this.name="mixer",this.description="Here you can define the quality of emulated audio.",this.options={rate:{name:"rate",description:"Frequency rate of sound",value:44100,allowedValues:[]},nosound:{name:"nosound",description:"Enable silent mode, sound is still emulated though.",value:!1,allowedValues:[!0,!1]}}};n.MixerCategory=h;var y=function e(){u(this,e),this.name="autoexec",this.description="Lines in this section will be run at startup",this.options={script:{name:"lines",description:"Use \\n to separate lines",value:"",allowedValues:[]}}};function m(){return{output:new f,dosbox:new d,cpu:new p,mixer:new h,autoexec:new y}}function v(e,t){var n="sdl"===t.name?"output":t.name;return new Promise((function(r,o){if(e)if(e.name===t.name){for(var i=0,s=Object.keys(e.options);i<s.length;i++){var a=s[i],c=e.options[a],u=t.options[a];if(void 0===u)return void o(new Error("Unknown option '"+(c.name||a)+"' in '"+e.name+"'"));if(0<u.allowedValues.length){var f=function(){var t=c.value,r=u.allowedValues.find((function(e){return e===t}));if("cpu"===n&&"cycles"===c.name&&(t+"").startsWith("fixed ")){var i=Number.parseInt(t.substr("fixed ".length),10);if(isNaN(i))return o(new Error("Fixed value should conatain number")),{v:void 0}}else if(void 0===r)return o(new Error("Incorrect value '"+t+"' ("+l(t)+") for '"+e.name+"."+(c.name||a)+"' allowed is "+JSON.stringify(u.allowedValues))),{v:void 0}}();if("object"===l(f))return f.v}}for(var d=0,p=Object.keys(t.options);d<p.length;d++){var h=p[d];if(!(h in e.options))return void o(new Error("Option '"+h+"' is missed in '"+n+"'"))}r()}else o(new Error("Incorrect category name '"+e.name+"' should be '"+t.name+"'"));else o(new Error("Category '"+n+"' is missed"))}))}function _(){return g.apply(this,arguments)}function g(){return(g=c(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=m(),r=0,o=Object.keys(n);case 2:if(r<o.length)return i=o[r],e.next=6,v(t[i],n[i]);e.next=9;break;case 6:r++,e.next=2;break;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(){return w.apply(this,arguments)}function w(){return(w=c(regeneratorRuntime.mark((function e(t,n){var r,i,s,a,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t)return e.abrupt("return");e.next=2;break;case 2:r=0,i=Object.keys(t.options||{});case 3:if(!(r<i.length)){e.next=16;break}if(s=i[r],"string"!=typeof(a=t.options[s])&&"number"!=typeof a&&!Array.isArray(a)){e.next=13;break}if(c=n.options[s]){e.next=10;break}return e.abrupt("continue",13);case 10:l=a,t.options[s]=o({},c),t.options[s].value=l;case 13:r++,e.next=3;break;case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(){return j.apply(this,arguments)}function j(){return(j=c(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=m(),r=0,o=Object.keys(n);case 2:if(r<o.length)return i=o[r],e.next=6,b(t[i],n[i]);e.next=9;break;case 6:r++,e.next=2;break;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(){return(k=c(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x(t);case 2:return e.next=4,_(t);case 4:return n=E(t.output)+"\nfullscreen=false\nfulldouble=false\nfullresolution=original\nwindowresolution=original\noutput=surface\nsensitivity=100\nwaitonerror=true\npriority=higher,normal\nmapperfile=mapper-jsdos.map\nusescancodes=true\nvsync=false\n"+E(t.dosbox)+"\nlanguage=\ncaptures=capture\nmemsize=16\n"+E(t.cpu)+"\ncycleup=10\ncycledown=20\n"+E(t.mixer)+"\nblocksize=1024\nprebuffer=20\n\n[render]\n# frameskip: How many frames DOSBox skips before drawing one.\n# aspect: Do aspect correction, if your output method doesn't support scaling this can slow things down!.\n# scaler: Scaler used to enlarge/enhance low resolution modes.\n# If 'forced' is appended, then the scaler will be used even if the result might not be desired.\n# Possible values: none, normal2x, normal3x, advmame2x, advmame3x, advinterp2x, advinterp3x, hq2x, hq3x, 2xsai, super2xsai, supereagle, tv2x, tv3x, rgb2x, rgb3x, scan2x, scan3x.\n\nframeskip=0\naspect=false\nscaler=none\n\n[midi]\n# mpu401: Type of MPU-401 to emulate.\n# Possible values: intelligent, uart, none.\n# mididevice: Device that will receive the MIDI data from MPU-401.\n# Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.\n# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.\n# See the README/Manual for more details.\n\nmpu401=intelligent\nmididevice=default\nmidiconfig=\n\n[sblaster]\n# sbtype: Type of Soundblaster to emulate. gb is Gameblaster.\n# Possible values: sb1, sb2, sbpro1, sbpro2, sb16, gb, none.\n# sbbase: The IO address of the soundblaster.\n# Possible values: 220, 240, 260, 280, 2a0, 2c0, 2e0, 300.\n# irq: The IRQ number of the soundblaster.\n# Possible values: 7, 5, 3, 9, 10, 11, 12.\n# dma: The DMA number of the soundblaster.\n# Possible values: 1, 5, 0, 3, 6, 7.\n# hdma: The High DMA number of the soundblaster.\n# Possible values: 1, 5, 0, 3, 6, 7.\n# sbmixer: Allow the soundblaster mixer to modify the DOSBox mixer.\n# oplmode: Type of OPL emulation. On 'auto' the mode is determined by sblaster type. All OPL modes are Adlib-compatible, except for 'cms'.\n# Possible values: auto, cms, opl2, dualopl2, opl3, none.\n# oplemu: Provider for the OPL emulation. compat might provide better quality (see oplrate as well).\n# Possible values: default, compat, fast.\n# oplrate: Sample rate of OPL music emulation. Use 49716 for highest quality (set the mixer rate accordingly).\n# Possible values: 44100, 49716, 48000, 32000, 22050, 16000, 11025, 8000.\n\nsbtype=sb16\nsbbase=220\nirq=7\ndma=1\nhdma=5\nsbmixer=true\noplmode=auto\noplemu=default\noplrate=44100\n\n[gus]\n# gus: Enable the Gravis Ultrasound emulation.\n# gusrate: Sample rate of Ultrasound emulation.\n# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.\n# gusbase: The IO base address of the Gravis Ultrasound.\n# Possible values: 240, 220, 260, 280, 2a0, 2c0, 2e0, 300.\n# gusirq: The IRQ number of the Gravis Ultrasound.\n# Possible values: 5, 3, 7, 9, 10, 11, 12.\n# gusdma: The DMA channel of the Gravis Ultrasound.\n# Possible values: 3, 0, 1, 5, 6, 7.\n# ultradir: Path to Ultrasound directory. In this directory\n# there should be a MIDI directory that contains\n# the patch files for GUS playback. Patch sets used\n# with Timidity should work fine.\n\ngus=false\ngusrate=44100\ngusbase=240\ngusirq=5\ngusdma=3\nultradir=C:\\ULTRASND\n\n[speaker]\n# pcspeaker: Enable PC-Speaker emulation.\n# pcrate: Sample rate of the PC-Speaker sound generation.\n# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.\n# tandy: Enable Tandy Sound System emulation. For 'auto', emulation is present only if machine is set to 'tandy'.\n# Possible values: auto, on, off.\n# tandyrate: Sample rate of the Tandy 3-Voice generation.\n# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.\n# disney: Enable Disney Sound Source emulation. (Covox Voice Master and Speech Thing compatible).\n\npcspeaker=true\npcrate=44100\ntandy=auto\ntandyrate=44100\ndisney=true\n\n[joystick]\n# joysticktype: Type of joystick to emulate: auto (default), none,\n# 2axis (supports two joysticks),\n# 4axis (supports one joystick, first joystick used),\n# 4axis_2 (supports one joystick, second joystick used),\n# fcs (Thrustmaster), ch (CH Flightstick).\n# none disables joystick emulation.\n# auto chooses emulation depending on real joystick(s).\n# (Remember to reset dosbox's mapperfile if you saved it earlier)\n# Possible values: auto, 2axis, 4axis, 4axis_2, fcs, ch, none.\n# timed: enable timed intervals for axis. Experiment with this option, if your joystick drifts (away).\n# autofire: continuously fires as long as you keep the button pressed.\n# swap34: swap the 3rd and the 4th axis. can be useful for certain joysticks.\n# buttonwrap: enable button wrapping at the number of emulated buttons.\n\njoysticktype=auto\ntimed=true\nautofire=false\nswap34=false\nbuttonwrap=false\n\n[serial]\n# serial1: set type of device connected to com port.\n# Can be disabled, dummy, modem, nullmodem, directserial.\n# Additional parameters must be in the same line in the form of\n# parameter:value. Parameter for all types is irq (optional).\n# for directserial: realport (required), rxdelay (optional).\n# (realport:COM1 realport:ttyS0).\n# for modem: listenport (optional).\n# for nullmodem: server, rxdelay, txdelay, telnet, usedtr,\n# transparent, port, inhsocket (all optional).\n# Example: serial1=modem listenport:5000\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n# serial2: see serial1\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n# serial3: see serial1\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n# serial4: see serial1\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n\nserial1=dummy\nserial2=dummy\nserial3=disabled\nserial4=disabled\n\n[dos]\n# xms: Enable XMS support.\n# ems: Enable EMS support.\n# umb: Enable UMB support.\n# keyboardlayout: Language code of the keyboard layout (or none).\n\nxms=true\nems=true\numb=true\nkeyboardlayout=auto\n\n[ipx]\n# ipx: Enable ipx over UDP/IP emulation.\n\nipx=false\n"+(r=t.autoexec,"[autoexec]\necho off\nmount c .\nc:\n\ntype jsdos~1/readme.txt\necho on\n\n".concat(r.options.script.value,"\n\n# Generated using https://js-dos.com\n# █▀▀▀▀▀█ █ ▄▄▄▀▀█ █▀▀▀▀▀█\n# █ ███ █ ██▄ █ ▀ ▄ █ ███ █\n# █ ▀▀▀ █ ▄██ ▀ ▀▀█ █ ▀▀▀ █\n# ▀▀▀▀▀▀▀ ▀ █▄▀▄▀ █ ▀▀▀▀▀▀▀\n# █▀▄▄█▀▀▄▄ ▀ ▀█▄▄▄▄ ▀▄█▀█▀\n# █▀ ▀ ▀▀▄ █▀ ▄ ▄▀▀▀▄ █▀█▄\n# ▄ ▄▄ █▀▀▄ ▄▀▄▀▀█ ▀▀▄▀▀█▀\n# ▄▀▀█▀▀ █▀█▀█▀▀▄ ▀██▀█▄\n# ▀▀▀ ▀ ▀ █▄█ ▀█▄▄█▀▀▀█▀▀\n# █▀▀▀▀▀█ ▄▄▄ ▄ ▄ █ ▀ █▄▄▄▄\n# █ ███ █ ▀█▀▀▄▀▀▄████▀▀█▄█\n# █ ▀▀▀ █ ▄▀▀█▀█▀▄ ▀▀▄▄█▄█\n# ▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀ ▀▀▀\n")),e.abrupt("return",Promise.resolve(n));case 6:case"end":return e.stop()}var r}),e)})))).apply(this,arguments)}function E(e){var t="";t+="[".concat(e.name,"]\n");var n,r=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(Object.keys(e.options).sort());try{for(r.s();!(n=r.n()).done;){var o=n.value,i=e.options[o];t+="".concat(i.name,"=").concat(i.value,"\n")}}catch(e){r.e(e)}finally{r.f()}return t}n.AutoexecCategory=y,n.createDosConfig=m,n.toDosboxConf=function(e){return k.apply(this,arguments)}},{"core-js/modules/es6.array.find":101,"core-js/modules/es6.array.from":102,"core-js/modules/es6.array.iterator":103,"core-js/modules/es6.function.name":104,"core-js/modules/es6.number.constructor":109,"core-js/modules/es6.number.parse-int":110,"core-js/modules/es6.object.keys":111,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.string.starts-with":121,"core-js/modules/es6.symbol":122,"core-js/modules/es7.object.get-own-property-descriptors":125,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127,"regenerator-runtime/runtime":128}],133:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}e("core-js/modules/es6.function.name"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../../../protocol/messages-queue");function i(){var e;return e=regeneratorRuntime.mark((function e(t,n){var r,i,s,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new o.MessagesQueue,i=r.handler.bind(r),a=function(e){var t=e.data;"ws-sync-sleep"===(null==t?void 0:t.name)&&t.props.sessionId===n&&postMessage({name:"wc-sync-sleep",props:t.props},"*")},(c={sessionId:n,sendMessageToServer:function(e,t){s.messageHandler({data:{name:e,props:t}})},initMessageHandler:function(e){i=e,r.sendTo(i)},exit:function(){"undefined"!=typeof window&&window.removeEventListener("message",a)}}).module=s={postMessage:function(e,t){i(e,t)}},"undefined"!=typeof window&&window.addEventListener("message",a,{passive:!0}),e.next=10,t.instantiate(s);case 10:return s.callMain([n]),e.abrupt("return",c);case 12:case"end":return e.stop()}}),e)})),(i=function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}).apply(this,arguments)}n.dosDirect=function(e,t){return i.apply(this,arguments)}},{"../../../protocol/messages-queue":142,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"regenerator-runtime/runtime":128}],134:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}e("core-js/modules/es6.function.name"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../../../protocol/messages-queue");function i(){var e;return e=regeneratorRuntime.mark((function e(t,n,r){var i,s,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new o.MessagesQueue,s=i.handler.bind(i),(a=new Worker(t)).onerror=function(e){s("ws-err",{type:e.type,filename:e.filename,message:e.message})},a.onmessage=function(e){var t=e.data;void 0!==(null==t?void 0:t.name)&&s(t.name,t.props)},e.next=7,n.instantiate({});case 7:c={sessionId:r,sendMessageToServer:function(e,t){a.postMessage({name:e,props:t})},initMessageHandler:function(e){s=e,i.sendTo(s)},exit:function(){a.terminate()}};try{c.sendMessageToServer("wc-install",{module:n.wasmModule,sessionId:r})}catch(e){c.sendMessageToServer("wc-install",{sessionId:r})}return e.abrupt("return",c);case 10:case"end":return e.stop()}}),e)})),(i=function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}).apply(this,arguments)}n.dosWorker=function(e,t,n){return i.apply(this,arguments)}},{"../../../protocol/messages-queue":142,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"regenerator-runtime/runtime":128}],135:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(e("./impl/emulators-impl"));"undefined"!=typeof window&&(window.emulators=r.default),void 0!==t&&(t.emulators=r.default)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./impl/emulators-impl":138}],136:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("core-js/modules/es7.object.get-own-property-descriptors"),e("core-js/modules/es6.symbol"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var a=e("./cache");n.HTTPRequest=function(e,t){return new Promise((function(n,r){new c(e,i(i({},t),{},{success:n,fail:function(e){r(new Error(e))}}))}))};var c=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.xhr=null,this.total=0,this.loaded=0,this.resource=t,this.options=n,this.options.method=n.method||"GET",this.cache=n.cache||new a.CacheNoop,"GET"===this.options.method&&this.cache.get(this.resource).then((function(e){void 0!==r.options.success&&r.options.success(e)})).catch((function(){r.makeHttpRequest()}))}var t,n;return t=e,(n=[{key:"makeHttpRequest",value:function(){var e,t,n=this;this.xhr=new XMLHttpRequest,this.xhr.open(this.options.method||"GET",this.resource,!0),"POST"===this.options.method&&this.xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"),this.xhr.overrideMimeType("text/plain; charset=x-user-defined"),"function"==typeof(e=this.xhr).addEventListener&&e.addEventListener("progress",(function(e){if(n.total=e.total,n.loaded=e.loaded,n.options.progress)return n.options.progress(e.total,e.loaded)})),"function"==typeof(t=this.xhr).addEventListener&&t.addEventListener("error",(function(){if(n.options.fail)return n.options.fail("Unalbe to download '"+n.resource+"', code: "+n.xhr.status),delete n.options.fail})),this.xhr.onreadystatechange=function(){return n.onReadyStateChange()},this.options.responseType&&(this.xhr.responseType=this.options.responseType),this.xhr.send(this.options.data)}},{key:"onReadyStateChange",value:function(){var e=this.xhr;if(4===e.readyState)if(200===e.status){if(this.options.success){var t=Math.max(this.total,this.loaded);return void 0!==this.options.progress&&this.options.progress(t,t),"GET"===this.options.method&&this.resource.indexOf("?")<0&&this.cache.put(this.resource,e.response),this.options.success(e.response)}}else if(this.options.fail)return this.options.fail("Unable to download '"+this.resource+"', code: "+e.status),delete this.options.fail}}])&&r(t.prototype,n),e}()},{"./cache":130,"core-js/modules/es6.array.iterator":103,"core-js/modules/es6.object.keys":111,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.symbol":122,"core-js/modules/es7.object.get-own-property-descriptors":125,"core-js/modules/web.dom.iterable":127}],137:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0}),n.CommandInterfaceEventsImpl=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.delayedStdout=[],this.onStdoutConsumers=[],this.onFrameSizeConsumers=[],this.onFrameConsumers=[],this.onSoundPushConsumers=[],this.onExitConsumers=[],this.onMessageConsumers=[],this.onStdout=function(e){if(t.onStdoutConsumers.push(e),1===t.onStdoutConsumers.length){var n,o=r(t.delayedStdout);try{for(o.s();!(n=o.n()).done;){var i=n.value;t.fireStdout(i)}}catch(e){o.e(e)}finally{o.f()}t.delayedStdout=[]}},this.onFrameSize=function(e){t.onFrameSizeConsumers.push(e)},this.onFrame=function(e){t.onFrameConsumers.push(e)},this.onSoundPush=function(e){t.onSoundPushConsumers.push(e)},this.onExit=function(e){t.onExitConsumers.push(e)},this.onMessage=function(e){t.onMessageConsumers.push(e)},this.fireStdout=function(e){if(0!==t.onStdoutConsumers.length){var n,o=r(t.onStdoutConsumers);try{for(o.s();!(n=o.n()).done;)(0,n.value)(e)}catch(e){o.e(e)}finally{o.f()}}else t.delayedStdout.push(e)},this.fireFrameSize=function(e,n){var o,i=r(t.onFrameSizeConsumers);try{for(i.s();!(o=i.n()).done;)(0,o.value)(e,n)}catch(e){i.e(e)}finally{i.f()}},this.fireFrame=function(e){var n,o=r(t.onFrameConsumers);try{for(o.s();!(n=o.n()).done;)(0,n.value)(e)}catch(e){o.e(e)}finally{o.f()}},this.fireSoundPush=function(e){var n,o=r(t.onSoundPushConsumers);try{for(o.s();!(n=o.n()).done;)(0,n.value)(e)}catch(e){o.e(e)}finally{o.f()}},this.fireExit=function(){var e,n=r(t.onExitConsumers);try{for(n.s();!(e=n.n()).done;)(0,e.value)()}catch(e){n.e(e)}finally{n.f()}t.onStdoutConsumers=[],t.onFrameSizeConsumers=[],t.onFrameConsumers=[],t.onSoundPushConsumers=[],t.onExitConsumers=[],t.onMessageConsumers=[]},this.fireMessage=function(e){for(var n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var s,a=r(t.onMessageConsumers);try{for(a.s();!(s=a.n()).done;)s.value.apply(void 0,[e].concat(o))}catch(e){a.e(e)}finally{a.f()}}}},{"core-js/modules/es6.array.from":102,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127}],138:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("regenerator-runtime/runtime");var s=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var a=e("../build"),c=e("../cache"),l=e("./modules"),u=s(e("../dos/bundle/dos-bundle")),f=e("../dos/dosbox/ts/direct"),d=e("../dos/dosbox/ts/worker"),p=s(e("../janus/janus-impl")),h=e("../protocol/protocol"),y=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pathPrefix="",this.cacheSeed="",this.cachePromises={}}var t,n,r,s,y,m,v,_,g,b;return t=e,(n=[{key:"cache",value:function(e){if(null!=e&&0!==e.length||(e=a.Build.version+" "+this.cacheSeed),void 0===this.cachePromises[e]){var t=c.CacheDb(e,{onErr:console.error});this.cachePromises[e]=t}return this.cachePromises[e]}},{key:"dosBundle",value:(b=o(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.wasmModules();case 2:return t=e.sent,e.next=5,t.libzip();case 5:return n=e.sent,e.next=8,this.cache();case 8:return r=e.sent,e.abrupt("return",new u.default(n,r));case 10:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"dosboxNode",value:(g=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dosboxDirect(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"dosboxDirect",value:(_=o(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.wasmModules();case 2:return n=e.sent,e.next=5,n.dosbox();case 5:return r=e.sent,e.next=8,f.dosDirect(r,"session-"+Date.now());case 8:return o=e.sent,e.abrupt("return",this.backend(t,o));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"dosboxWorker",value:(v=o(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.wasmModules();case 2:return n=e.sent,e.next=5,n.dosbox();case 5:return r=e.sent,e.next=8,d.dosWorker(this.pathPrefix+"wdosbox.js",r,"session-"+Date.now());case 8:return o=e.sent,e.abrupt("return",this.backend(t,o));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"janus",value:(m=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",p.default(t));case 1:case"end":return e.stop()}}),e)}))),function(e){return m.apply(this,arguments)})},{key:"backend",value:(y=o(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var o=new h.CommandInterfaceOverTransportLayer(Array.isArray(t)?t:[t],n,(function(t){null!==t?r(t):setTimeout((function(){return e(o)}),4)}))})));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return y.apply(this,arguments)})},{key:"wasmModules",value:function(){var e=this;if(void 0!==this.wasmModulesPromise)return this.wasmModulesPromise;var t=function(){var t=o(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.cache();case 2:return n=t.sent,t.abrupt("return",new l.WasmModulesImpl(e.pathPrefix,n));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return this.wasmModulesPromise=t(),this.wasmModulesPromise}},{key:"dosDirect",value:(s=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dosboxDirect(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"dosWorker",value:(r=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dosboxWorker(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}])&&i(t.prototype,n),e}());n.default=y},{"../build":129,"../cache":130,"../dos/bundle/dos-bundle":131,"../dos/dosbox/ts/direct":133,"../dos/dosbox/ts/worker":134,"../janus/janus-impl":140,"../protocol/protocol":143,"./modules":139,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"regenerator-runtime/runtime":128}],139:[function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function c(e){return(c="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})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.regexp.replace"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.math.trunc"),e("core-js/modules/es6.math.clz32"),e("core-js/modules/es6.math.fround"),e("core-js/modules/es6.math.imul"),e("core-js/modules/es6.typed.uint8-array"),Object.defineProperty(n,"__esModule",{value:!0});var u=e("../http");n.host=new function e(){if(l(this,e),this.wasmSupported=!1,this.globals="undefined"==typeof window?{}:window,this.globals.exports||(this.globals.exports={}),this.globals.compiled||(this.globals.compiled={}),"object"===("undefined"==typeof WebAssembly?"undefined":c(WebAssembly))&&"function"==typeof WebAssembly.instantiate&&"function"==typeof WebAssembly.compile){var t=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));t instanceof WebAssembly.Module&&(this.wasmSupported=new WebAssembly.Instance(t)instanceof WebAssembly.Instance)}Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16)|0}),Math.imul=Math.imul,Math.fround||(Math.fround=function(e){return e}),Math.fround=Math.fround,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var t=0;t<32;t++)if(e&1<<31-t)return t;return 32}),Math.clz32=Math.clz32,Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Math.trunc=Math.trunc};var f=function(){function e(t,n){l(this,e),this.wasmSupported=!1,0<t.length&&"/"!==t[t.length-1]&&(t+="/"),this.pathPrefix=t,this.cache=n}return a(e,[{key:"libzip",value:function(){return void 0!==this.libzipPromise||(this.libzipPromise=this.loadModule(this.pathPrefix+"wlibzip.js","WLIBZIP")),this.libzipPromise}},{key:"dosbox",value:function(){return void 0!==this.dosboxPromise||(this.dosboxPromise=this.loadModule(this.pathPrefix+"wdosbox.js","WDOSBOX")),this.dosboxPromise}},{key:"loadModule",value:function(e,t){return d(e,t,this.cache,(function(){}))}}]),e}();function d(t,o,s,a){return"undefined"==typeof XMLHttpRequest?function(t,r){if(void 0!==n.host.globals.compiled[r])return n.host.globals.compiled[r];var o=e(t),i=Promise.resolve(new p(o));return r&&(n.host.globals.compiled[r]=i),i}(t,o):function(e,t,o,s){if(void 0!==n.host.globals.compiled[t])return n.host.globals.compiled[t];function a(){var c;return c=regeneratorRuntime.mark((function i(){var a,c,l,f,d,p,y,m,v,_,g,b;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=e.lastIndexOf("/"),c=e.indexOf("w",a),l=c===a+1&&0<=c,n.host.wasmSupported&&l){i.next=5;break}throw new Error("Starting from js-dos 6.22.60 js environment is not supported");case 5:return f=e.replace(".js",".wasm"),d=u.HTTPRequest(f,{cache:o,responseType:"arraybuffer",progress:function(t,n){s("Resolving DosBox ("+e+")",t,n)}}),p=u.HTTPRequest(e,{cache:o,progress:function(e,t){s("Resolving DosBox",e,t)}}),i.next=10,Promise.all([d,p]);case 10:return y=i.sent,m=r(y,2),v=m[0],_=m[1],i.next=16,WebAssembly.compile(v);case 16:return g=i.sent,b=function(e,t){e.env=e.env||{},WebAssembly.instantiate(g,e).then((function(e){return t(e,g)}))},eval.call(window,_),i.abrupt("return",new h(g,n.host.globals.exports[t],b));case 20:case"end":return i.stop()}}),i)})),(a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=c.apply(e,t);function s(e){i(o,n,r,s,a,"next",e)}function a(e){i(o,n,r,s,a,"throw",e)}s(void 0)}))}).apply(this,arguments)}var c=function(){return a.apply(this,arguments)}();return t&&(n.host.globals.compiled[t]=c),c}(t,o,s,a)}n.WasmModulesImpl=f,n.loadWasmModule=d;var p=function(){function e(t){l(this,e),this.emModule=t}return a(e,[{key:"instantiate",value:function(e){var t=this;return new Promise((function(n){e.onRuntimeInitialized=function(){n()},new t.emModule(e)}))}}]),e}(),h=function(){function e(t,n,r){l(this,e),this.wasmModule=t,this.module=n,this.instantiateWasm=r}return a(e,[{key:"instantiate",value:function(e){var t=this;return new Promise((function(n){e.instantiateWasm=t.instantiateWasm,e.onRuntimeInitialized=function(){n()},new t.module(e)}))}}]),e}()},{"../http":136,"core-js/modules/es6.array.from":102,"core-js/modules/es6.array.iterator":103,"core-js/modules/es6.function.name":104,"core-js/modules/es6.math.clz32":105,"core-js/modules/es6.math.fround":106,"core-js/modules/es6.math.imul":107,"core-js/modules/es6.math.trunc":108,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.replace":117,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es6.typed.uint8-array":123,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127,"regenerator-runtime/runtime":128}],140:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.number.constructor"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/es6.regexp.split"),e("core-js/modules/es6.string.starts-with"),Object.defineProperty(n,"__esModule",{value:!0});var c=e("../impl/ci-impl");function l(e,t){var n="";return function r(o){var i=o.indexOf("\n");if(-1===i)n+=o;else{var s=n+o.substr(0,i);n="";try{e(function(e){for(var t=atob(e),n=new Uint8Array(t.length),r=0;r<n.length;r++)n[r]=t.charCodeAt(r);return(new TextDecoder).decode(n)}(s))}catch(r){t(r)}r(o.substr(i+1))}}}var u=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.live=!0,this.startedAt=Date.now(),this.exitResolveFn=function(){},this.configResolveFn=function(){},this.handleResolveFn=function(){},this.keyMatrix={},this.frameWidth=0,this.frameHeight=0,this.eventQueue="",this.eventIntervalId=-1,this.rttIntervalId=-1,this.logIntervalId=-1,this.logColor="not set",this.logWhiteMs=0,this.logRedMs=0,this.logYellowMs=0,this.onDataMessage=function(e){if(e.startsWith("config="))r.configResolveFn(JSON.parse(e.substr("config=".length)));else if(e.startsWith("frame=")){var t=i(e.substr("frame=".length).split("x"),2),n=t[0],o=t[1];r.frameWidth=Number.parseInt(n,10)||0,r.frameHeight=Number.parseInt(o,10)||0}else if(e.startsWith("rtt=")){var s,a=i(e.substr("rtt=".length).split(" "),3),c=a[0],l=a[1],u=a[2],f=Number.parseInt(l,10),d=Number.parseInt(u,10),p=Date.now(),h=(null===(s=r.handle)||void 0===s?void 0:s.getBitrate())||"0 kbits/sec",y=Number.parseInt(h.split(" ")[0],10);r.sendPipeMessage("rtt-data",Date.now(),f,d,p,y),c===r.opaqueId&&r.eventsImpl.fireStdout("rtt-data="+(p-f)+" "+y)}else if(e.startsWith("log-visual-"))switch(e){case"log-visual-white":r.eventsImpl.fireStdout("yellow-frame:"+(Date.now()-r.logYellowMs));break;case"log-visual-red":r.eventsImpl.fireStdout("white-frame:"+(Date.now()-r.logWhiteMs));break;case"log-visual-yellow":r.eventsImpl.fireStdout("red-frame:"+(Date.now()-r.logRedMs))}else if(e.startsWith("log-command-"))switch(e){case"log-command-white":r.eventsImpl.fireStdout("yellow-pipe:"+(Date.now()-r.logYellowMs));break;case"log-command-red":r.eventsImpl.fireStdout("white-pipe:"+(Date.now()-r.logWhiteMs));break;case"log-command-yellow":r.eventsImpl.fireStdout("red-pipe:"+(Date.now()-r.logRedMs))}else r.eventsImpl.fireStdout(e)},this.onJanusMessage=function(e,t,n){null!=n&&e.createAnswer({jsep:n,media:{audioSend:!1,videoSend:!1,data:!0},success:function(t){r.fireMessage("started"),e.send({message:{request:"start"},jsep:t})},error:r.onError})},this.onError=function(e){r.fireMessage("error",e)},this.eventsImpl=new c.CommandInterfaceEventsImpl,this.janus=t,this.opaqueId=n,this.exitPromise=new Promise((function(e){r.exitResolveFn=e})),this.configPromise=new Promise((function(e){r.configResolveFn=e})),this.handlePromise=new Promise((function(e,t){r.handleResolveFn=function(n){r.handle=n,r.live?(setTimeout((function(){r.live&&n.data({text:"pipe "+r.opaqueId+" config"})}),1e3),r.config().then((function(){r.live&&(r.eventIntervalId=setInterval((function(){r.sendEventsData(n)}),8),r.rttIntervalId=setInterval((function(){r.sendPipeMessage("rtt",Date.now())}),1e3))})),e(n)):t(new Error("exit() was called"))}})),this.attach()}var t,n,r,s;return t=e,(n=[{key:"fireMessage",value:function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventsImpl).fireMessage.apply(t,[e].concat(r))}},{key:"attach",value:function(){var e,t=this;this.janus.attach({plugin:"janus.plugin.streaming",opaqueId:this.opaqueId,error:this.onError,success:function(n){e=n,t.fireMessage("attached"),n.send({message:{request:"watch",id:1}})},onmessage:function(n,r){t.onJanusMessage(e,n,r)},onremotestream:function(e){t.fireMessage("onremotestream",e)},ondataopen:function(){return t.handleResolveFn(e)},ondata:l(this.onDataMessage,this.onError)})}},{key:"onDestroyed",value:function(){this.fireMessage("destroyed"),this.exitResolveFn()}},{key:"config",value:(s=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.configPromise);case 1:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"width",value:function(){return this.frameWidth}},{key:"height",value:function(){return this.frameHeight}},{key:"soundFrequency",value:function(){return 44100}},{key:"screenshot",value:function(){return Promise.reject(new Error("Not supported"))}},{key:"simulateKeyPress",value:function(){for(var e=this,t=Date.now()-this.startedAt,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(n){return e.addKey(n,!0,t)})),r.forEach((function(n){return e.addKey(n,!1,16+t)}))}},{key:"sendKeyEvent",value:function(e,t){this.addKey(e,t,Date.now()-this.startedAt)}},{key:"addKey",value:function(e,t,n){if(!0===this.keyMatrix[e]!==t&&(this.keyMatrix[e]=t,this.sendPipeMessage("k"+(t?"down":"up"),e,n),-1!==this.logIntervalId&&t))switch(this.logColor){case"white":this.logWhiteMs=Date.now();break;case"red":this.logRedMs=Date.now();break;case"yellow":this.logYellowMs=Date.now()}}},{key:"sendMouseMotion",value:function(e,t){this.sendPipeMessage("mmove",e,t,Date.now()-this.startedAt)}},{key:"sendMouseRelativeMotion",value:function(){throw new Error("not implemented")}},{key:"sendMouseButton",value:function(e,t){this.sendPipeMessage("m"+(t?"down":"up"),e,Date.now()-this.startedAt)}},{key:"sendMouseSync",value:function(){this.sendPipeMessage("msync",Date.now()-this.startedAt)}},{key:"logVisual",value:function(e){var t=this;this.sendPipeMessage("log-visual-on");var n=document.createElement("canvas"),r=n.getContext("2d");n.width=1,n.height=1,this.logIntervalId=setInterval(o(regeneratorRuntime.mark((function n(){var o,i,s,a,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=Date.now(),null!=r&&r.drawImage(e,0,0,1,1,0,0,1,1),s=null==r||null===(o=r.getImageData(0,0,1,1))||void 0===o?void 0:o.data,a=Date.now()-i,c="not set",200<s[0]&&200<s[1]&&200<s[2]?c="white":200<s[0]&&s[1]<200&&s[2]<200?c="red":200<s[0]&&200<s[1]&&s[2]<200&&(c="yellow"),c===t.logColor){n.next=17;break}n.t0=c,n.next="white"===n.t0?10:"red"===n.t0?12:"yellow"===n.t0?14:16;break;case 10:return t.eventsImpl.fireStdout("yellow-stream:"+(Date.now()-t.logYellowMs-a)),n.abrupt("break",16);case 12:return t.eventsImpl.fireStdout("white-stream:"+(Date.now()-t.logWhiteMs-a)),n.abrupt("break",16);case 14:return t.eventsImpl.fireStdout("red-stream:"+(Date.now()-t.logRedMs-a)),n.abrupt("break",16);case 16:t.logColor=c;case 17:case"end":return n.stop()}}),n)}))),16)}},{key:"sendPipeMessage",value:function(){this.eventQueue+="pipe "+this.opaqueId;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];this.eventQueue+=" "+i}this.eventQueue+="\n"}},{key:"sendEventsData",value:(r=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===this.eventQueue.length)return e.abrupt("return");e.next=2;break;case 2:t.data({text:this.eventQueue}),this.eventQueue="";case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"persist",value:function(){return Promise.reject(new Error("Not supported"))}},{key:"pause",value:function(){console.warn("pause/resume is not implemented")}},{key:"resume",value:function(){}},{key:"mute",value:function(){console.warn("mute/unmute is not implemented")}},{key:"unmute",value:function(){}},{key:"exit",value:function(){return this.live=!1,clearInterval(this.logIntervalId),this.logIntervalId=-1,clearInterval(this.eventIntervalId),this.eventIntervalId=-1,clearInterval(this.rttIntervalId),this.rttIntervalId=-1,this.janus.destroy(),this.exitPromise}},{key:"events",value:function(){return this.eventsImpl}}])&&a(t.prototype,n),e}();n.default=function(e,t){var n=t||window.Janus;return void 0===n?Promise.reject(new Error("Janus is not defined, you should load janus.js before this")):n.isWebrtcSupported()?new Promise((function(t,r){var o=null,i={error:function(e){null===o?r(e):o.onError(e)},destroyed:function(){null!==o&&o.onDestroyed()}},s={server:e,success:function(){o=new u(a,"js-dos-"+n.randomString(12)),t(o)},error:i.error,destroyed:i.destroyed,destroyOnUnload:!0},a=new n(s)})):Promise.reject(new Error("WebRTC not supported"))}},{"../impl/ci-impl":137,"core-js/modules/es6.array.from":102,"core-js/modules/es6.function.name":104,"core-js/modules/es6.number.constructor":109,"core-js/modules/es6.number.parse-int":110,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.split":118,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.string.starts-with":121,"core-js/modules/es6.symbol":122,"core-js/modules/es6.typed.uint8-array":123,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127,"regenerator-runtime/runtime":128}],141:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.regexp.constructor"),e("core-js/modules/es6.regexp.replace"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.regexp.split"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.module=t,this.home=n,this.module.callMain([]),this.chdirToHome()}var t,n,i,s;return t=e,(n=[{key:"zipFromFs",value:function(e){var t=0<arguments.length&&void 0!==e?e:-1;this.chdirToHome();var n=this.module._zip_from_fs(t);if(0===n)return Promise.reject(new Error("Can't create zip, see more info in logs"));var r=this.module.HEAPU32[n/4],o=this.module.HEAPU8.slice(n+4,n+4+r);return this.module._free(n),Promise.resolve(o)}},{key:"zipToFs",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:"/";n=this.normalizeFilename(n);var r=this.normalizeFilename(n).split("/");this.createPath(r,0,r.length),this.chdir(n);var o=new Uint8Array(e),i=this.module._malloc(o.length);this.module.HEAPU8.set(o,i);var s=this.module._zip_to_fs(i,o.length);return this.module._free(i),this.chdirToHome(),0===s?Promise.resolve():Promise.reject(new Error("Can't extract zip, retcode "+s+", see more info in logs"))}},{key:"writeFile",value:function(e,t){e=this.normalizeFilename(e),t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n=e.split("/");if(0===n.length)throw new Error("Can't create file '"+e+"', because it's not valid file path");var r=n[n.length-1].trim();if(0===r.length)throw new Error("Can't create file '"+e+"', because file name is empty");var o=this.createPath(n,0,n.length-1);this.module.FS.writeFile(o+"/"+r,t)}},{key:"readFile",value:(i=regeneratorRuntime.mark((function e(t){var n,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=1<r.length&&void 0!==r[1]?r[1]:"utf8",t=this.normalizeFilename(t),e.abrupt("return",this.module.FS.readFile(t,{encoding:n}));case 3:case"end":return e.stop()}}),e,this)})),s=function(){var e=this,t=arguments;return new Promise((function(n,o){var s=i.apply(e,t);function a(e){r(s,n,o,a,c,"next",e)}function c(e){r(s,n,o,a,c,"throw",e)}a(void 0)}))},function(e){return s.apply(this,arguments)})},{key:"exists",value:function(e){e=this.normalizeFilename(e);try{return this.module.FS.lookupPath(e),!0}catch(e){return!1}}},{key:"destroy",value:function(){try{this.module._libzip_destroy()}catch(e){return e}}},{key:"normalizeFilename",value:function(e){for(e=e.replace(new RegExp("^[a-zA-z]+:"),"").replace(new RegExp("\\\\","g"),"/");"/"===e[0];)e=e.substr(1);return e}},{key:"createPath",value:function(e,t,n){for(var r=".",o=t;o<n;++o){var i=e[o].trim();0!==i.length&&(this.module.FS.createPath(r,i,!0,!0),r=r+"/"+i)}return r}},{key:"chdirToHome",value:function(){this.module.FS.chdir(this.home)}},{key:"chdir",value:function(e){this.module.FS.chdir(this.home+"/"+e)}}])&&o(t.prototype,n),e}();n.default=i},{"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.constructor":114,"core-js/modules/es6.regexp.replace":117,"core-js/modules/es6.regexp.split":118,"core-js/modules/es6.typed.uint8-array":123,"regenerator-runtime/runtime":128}],142:[function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.function.name"),Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.messages=[]}var t,n;return t=e,(n=[{key:"handler",value:function(e,t){this.messages.push({name:e,props:t})}},{key:"sendTo",value:function(e){var t,n=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,s=!0,a=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==o.return||o.return()}finally{if(a)throw i}}}}(this.messages);try{for(n.s();!(t=n.n()).done;){var o=t.value;e(o.name,o.props)}}catch(e){n.e(e)}finally{n.f()}this.messages=[]}}])&&o(t.prototype,n),e}();n.MessagesQueue=i},{"core-js/modules/es6.array.from":102,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127}],143:[function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.typed.uint8-clamped-array"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.typed.uint8-array"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("../impl/ci-impl"),s=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startedAt=Date.now(),this.frameWidth=0,this.frameHeight=0,this.rgb=new Uint8Array,this.freq=0,this.eventsImpl=new i.CommandInterfaceEventsImpl,this.keyMatrix={},this.configResolve=function(){},this.panicMessages=[],this.bundles=t,this.transport=n,this.ready=r,this.configPromise=new Promise((function(e){return o.configResolve=e})),this.transport.initMessageHandler(this.onServerMessage.bind(this))}var t,n;return t=e,(n=[{key:"sendClientMessage",value:function(e,t){(t=t||{}).sessionId=t.sessionId||this.transport.sessionId,this.transport.sendMessageToServer(e,t)}},{key:"onServerMessage",value:function(e,t){if(!(void 0===e||e.length<3||"w"!==e[0]||"s"!==e[1]||"-"!==e[2])&&void 0!==t&&t.sessionId===this.transport.sessionId)switch(e){case"ws-ready":this.sendClientMessage("wc-run",{bundles:this.bundles}),delete this.bundles;break;case"ws-server-ready":0<this.panicMessages.length?(void 0!==this.transport.exit&&this.transport.exit(),this.ready(new Error(JSON.stringify(this.panicMessages)))):this.ready(null),delete this.ready;break;case"ws-frame-set-size":this.onFrameSize(t.width,t.height);break;case"ws-update-lines":this.onFrameLines(t.lines);break;case"ws-exit":this.onExit();break;case"ws-log":this.onLog(t.tag,t.message);break;case"ws-warn":this.onWarn(t.tag,t.message);break;case"ws-err":this.onErr(t.tag,t.message);break;case"ws-stdout":this.onStdout(t.message);break;case"ws-persist":this.onPersist(t.bundle);break;case"ws-sound-init":this.onSoundInit(t.freq);break;case"ws-sound-push":this.onSoundPush(t.samples);break;case"ws-config":this.onConfig(JSON.parse(t.content));break;case"ws-sync-sleep":this.sendClientMessage("wc-sync-sleep",t);break;default:console.log("Unknown server message (ws):",e)}}},{key:"onConfig",value:function(e){this.configResolve(e)}},{key:"onFrameSize",value:function(e,t){this.frameWidth===e&&this.frameHeight===t||(this.frameWidth=e,this.frameHeight=t,this.rgb=new Uint8Array(e*t*3),this.eventsImpl.fireFrameSize(e,t))}},{key:"onFrameLines",value:function(e){var t,n=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,s=!0,a=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==o.return||o.return()}finally{if(a)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;this.rgb.set(o.heapu8,o.start*this.frameWidth*3)}}catch(e){n.e(e)}finally{n.f()}this.eventsImpl.fireFrame(this.rgb)}},{key:"onSoundInit",value:function(e){this.freq=e}},{key:"onSoundPush",value:function(e){this.eventsImpl.fireSoundPush(e)}},{key:"onLog",value:function(e,t){this.eventsImpl.fireMessage("log","["+e+"]"+t)}},{key:"onWarn",value:function(e,t){this.eventsImpl.fireMessage("warn","["+e+"]"+t)}},{key:"onErr",value:function(e,t){"panic"===e?(this.panicMessages.push(t),console.error("["+e+"]"+t)):console.log("["+e+"]"+t),this.eventsImpl.fireMessage("error","["+e+"]"+t)}},{key:"onStdout",value:function(e){this.eventsImpl.fireStdout(e)}},{key:"config",value:function(){return this.configPromise}},{key:"width",value:function(){return this.frameWidth}},{key:"height",value:function(){return this.frameHeight}},{key:"soundFrequency",value:function(){return this.freq}},{key:"screenshot",value:function(){for(var e=new Uint8ClampedArray(this.rgb.length/3*4),t=0,n=0;n<e.length;)e[n++]=this.rgb[t++],e[n++]=this.rgb[t++],e[n++]=this.rgb[t++],e[n++]=255;return Promise.resolve(new ImageData(e,this.frameWidth,this.frameHeight))}},{key:"simulateKeyPress",value:function(){for(var e=this,t=Date.now()-this.startedAt,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(n){return e.addKey(n,!0,t)})),r.forEach((function(n){return e.addKey(n,!1,16+t)}))}},{key:"sendKeyEvent",value:function(e,t){this.addKey(e,t,Date.now()-this.startedAt)}},{key:"addKey",value:function(e,t,n){!0===this.keyMatrix[e]!==t&&(this.keyMatrix[e]=t,this.sendClientMessage("wc-add-key",{key:e,pressed:t,timeMs:n}))}},{key:"sendMouseMotion",value:function(e,t){this.sendClientMessage("wc-mouse-move",{x:e,y:t,relative:!1,timeMs:Date.now()-this.startedAt})}},{key:"sendMouseRelativeMotion",value:function(e,t){this.sendClientMessage("wc-mouse-move",{x:e,y:t,relative:!0,timeMs:Date.now()-this.startedAt})}},{key:"sendMouseButton",value:function(e,t){this.sendClientMessage("wc-mouse-button",{button:e,pressed:t,timeMs:Date.now()-this.startedAt})}},{key:"sendMouseSync",value:function(){this.sendClientMessage("wc-mouse-sync",{timeMs:Date.now()-this.startedAt})}},{key:"persist",value:function(){var e=this;if(void 0!==this.persistPromise)return this.persistPromise;var t=new Promise((function(t){return e.persistResolve=t}));return this.persistPromise=t,this.sendClientMessage("wc-pack-fs-to-bundle"),t}},{key:"onPersist",value:function(e){this.persistResolve&&(this.persistResolve(e),delete this.persistPromise,delete this.persistResolve)}},{key:"pause",value:function(){this.sendClientMessage("wc-pause")}},{key:"resume",value:function(){this.sendClientMessage("wc-resume")}},{key:"mute",value:function(){this.sendClientMessage("wc-mute")}},{key:"unmute",value:function(){this.sendClientMessage("wc-unmute")}},{key:"exit",value:function(){var e=this;return void 0!==this.exitPromise||(this.exitPromise=new Promise((function(t){return e.exitResolve=t})),this.exitPromise.then((function(){e.events().fireExit()})),this.resume(),this.sendClientMessage("wc-exit")),this.exitPromise}},{key:"onExit",value:function(){void 0!==this.transport.exit&&this.transport.exit(),this.exitResolve&&(this.exitResolve(),delete this.exitPromise,delete this.exitResolve)}},{key:"events",value:function(){return this.eventsImpl}}])&&o(t.prototype,n),e}();n.CommandInterfaceOverTransportLayer=s},{"../impl/ci-impl":137,"core-js/modules/es6.array.from":102,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es6.typed.uint8-array":123,"core-js/modules/es6.typed.uint8-clamped-array":124,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127}]},{},[135]),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})}(this,(function(e){"use strict";const t=-2,n=-3,r=-5,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],i=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],s=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],c=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function f(){let e,t,o,i,s,f;function d(e,t,a,c,l,u,d,p,h,y,m){let v,_,g,b,w,x,j,k,E,S,D,C,O,P,M;S=0,w=a;do{o[e[t+S]]++,S++,w--}while(0!==w);if(o[0]==a)return d[0]=-1,p[0]=0,0;for(k=p[0],x=1;x<=15&&0===o[x];x++);for(j=x,k<x&&(k=x),w=15;0!==w&&0===o[w];w--);for(g=w,k>w&&(k=w),p[0]=k,P=1<<x;x<w;x++,P<<=1)if((P-=o[x])<0)return n;if((P-=o[w])<0)return n;for(o[w]+=P,f[1]=x=0,S=1,O=2;0!=--w;)f[O]=x+=o[S],O++,S++;w=0,S=0;do{0!==(x=e[t+S])&&(m[f[x]++]=w),S++}while(++w<a);for(a=f[g],f[0]=w=0,S=0,b=-1,C=-k,s[0]=0,D=0,M=0;j<=g;j++)for(v=o[j];0!=v--;){for(;j>C+k;){if(b++,C+=k,M=g-C,M=M>k?k:M,(_=1<<(x=j-C))>v+1&&(_-=v+1,O=j,x<M))for(;++x<M&&!((_<<=1)<=o[++O]);)_-=o[O];if(M=1<<x,y[0]+M>1440)return n;s[b]=D=y[0],y[0]+=M,0!==b?(f[b]=w,i[0]=x,i[1]=k,x=w>>>C-k,i[2]=D-s[b-1]-x,h.set(i,3*(s[b-1]+x))):d[0]=D}for(i[1]=j-C,S>=a?i[0]=192:m[S]<c?(i[0]=m[S]<256?0:96,i[2]=m[S++]):(i[0]=u[m[S]-c]+16+64,i[2]=l[m[S++]-c]),_=1<<j-C,x=w>>>C;x<M;x+=_)h.set(i,3*(D+x));for(x=1<<j-1;0!=(w&x);x>>>=1)w^=x;for(w^=x,E=(1<<C)-1;(w&E)!=f[b];)b--,C-=k,E=(1<<C)-1}return 0!==P&&1!=g?r:0}function p(n){let r;for(e||(e=[],t=[],o=new Int32Array(16),i=[],s=new Int32Array(15),f=new Int32Array(16)),t.length<n&&(t=[]),r=0;r<n;r++)t[r]=0;for(r=0;r<16;r++)o[r]=0;for(r=0;r<3;r++)i[r]=0;s.set(o.subarray(0,15),0),f.set(o.subarray(0,16),0)}this.inflate_trees_bits=function(o,i,s,a,c){let l;return p(19),e[0]=0,l=d(o,0,19,19,null,null,s,i,a,e,t),l==n?c.msg="oversubscribed dynamic bit lengths tree":l!=r&&0!==i[0]||(c.msg="incomplete dynamic bit lengths tree",l=n),l},this.inflate_trees_dynamic=function(o,i,s,f,h,y,m,v,_){let g;return p(288),e[0]=0,g=d(s,0,o,257,a,c,y,f,v,e,t),0!=g||0===f[0]?(g==n?_.msg="oversubscribed literal/length tree":-4!=g&&(_.msg="incomplete literal/length tree",g=n),g):(p(288),g=d(s,o,i,0,l,u,m,h,v,e,t),0!=g||0===h[0]&&o>257?(g==n?_.msg="oversubscribed distance tree":g==r?(_.msg="incomplete distance tree",g=n):-4!=g&&(_.msg="empty distance tree with lengths",g=n),g):0)}}function d(){const e=this;let r,i,s,a,c=0,l=0,u=0,f=0,d=0,p=0,h=0,y=0,m=0,v=0;function _(e,t,r,i,s,a,c,l){let u,f,d,p,h,y,m,v,_,g,b,w,x,j,k,E;m=l.next_in_index,v=l.avail_in,h=c.bitb,y=c.bitk,_=c.write,g=_<c.read?c.read-_-1:c.end-_,b=o[e],w=o[t];do{for(;y<20;)v--,h|=(255&l.read_byte(m++))<<y,y+=8;if(u=h&b,f=r,d=i,E=3*(d+u),0!==(p=f[E]))for(;;){if(h>>=f[E+1],y-=f[E+1],0!=(16&p)){for(p&=15,x=f[E+2]+(h&o[p]),h>>=p,y-=p;y<15;)v--,h|=(255&l.read_byte(m++))<<y,y+=8;for(u=h&w,f=s,d=a,E=3*(d+u),p=f[E];;){if(h>>=f[E+1],y-=f[E+1],0!=(16&p)){for(p&=15;y<p;)v--,h|=(255&l.read_byte(m++))<<y,y+=8;if(j=f[E+2]+(h&o[p]),h>>=p,y-=p,g-=x,_>=j)k=_-j,_-k>0&&2>_-k?(c.window[_++]=c.window[k++],c.window[_++]=c.window[k++],x-=2):(c.window.set(c.window.subarray(k,k+2),_),_+=2,k+=2,x-=2);else{k=_-j;do{k+=c.end}while(k<0);if(p=c.end-k,x>p){if(x-=p,_-k>0&&p>_-k)do{c.window[_++]=c.window[k++]}while(0!=--p);else c.window.set(c.window.subarray(k,k+p),_),_+=p,k+=p,p=0;k=0}}if(_-k>0&&x>_-k)do{c.window[_++]=c.window[k++]}while(0!=--x);else c.window.set(c.window.subarray(k,k+x),_),_+=x,k+=x,x=0;break}if(0!=(64&p))return l.msg="invalid distance code",x=l.avail_in-v,x=y>>3<x?y>>3:x,v+=x,m-=x,y-=x<<3,c.bitb=h,c.bitk=y,l.avail_in=v,l.total_in+=m-l.next_in_index,l.next_in_index=m,c.write=_,n;u+=f[E+2],u+=h&o[p],E=3*(d+u),p=f[E]}break}if(0!=(64&p))return 0!=(32&p)?(x=l.avail_in-v,x=y>>3<x?y>>3:x,v+=x,m-=x,y-=x<<3,c.bitb=h,c.bitk=y,l.avail_in=v,l.total_in+=m-l.next_in_index,l.next_in_index=m,c.write=_,1):(l.msg="invalid literal/length code",x=l.avail_in-v,x=y>>3<x?y>>3:x,v+=x,m-=x,y-=x<<3,c.bitb=h,c.bitk=y,l.avail_in=v,l.total_in+=m-l.next_in_index,l.next_in_index=m,c.write=_,n);if(u+=f[E+2],u+=h&o[p],E=3*(d+u),0===(p=f[E])){h>>=f[E+1],y-=f[E+1],c.window[_++]=f[E+2],g--;break}}else h>>=f[E+1],y-=f[E+1],c.window[_++]=f[E+2],g--}while(g>=258&&v>=10);return x=l.avail_in-v,x=y>>3<x?y>>3:x,v+=x,m-=x,y-=x<<3,c.bitb=h,c.bitk=y,l.avail_in=v,l.total_in+=m-l.next_in_index,l.next_in_index=m,c.write=_,0}e.init=function(e,t,n,o,c,l){r=0,h=e,y=t,s=n,m=o,a=c,v=l,i=null},e.proc=function(e,g,b){let w,x,j,k,E,S,D,C=0,O=0,P=0;for(P=g.next_in_index,k=g.avail_in,C=e.bitb,O=e.bitk,E=e.write,S=E<e.read?e.read-E-1:e.end-E;;)switch(r){case 0:if(S>=258&&k>=10&&(e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,b=_(h,y,s,m,a,v,e,g),P=g.next_in_index,k=g.avail_in,C=e.bitb,O=e.bitk,E=e.write,S=E<e.read?e.read-E-1:e.end-E,0!=b)){r=1==b?7:9;break}u=h,i=s,l=m,r=1;case 1:for(w=u;O<w;){if(0===k)return e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,k--,C|=(255&g.read_byte(P++))<<O,O+=8}if(x=3*(l+(C&o[w])),C>>>=i[x+1],O-=i[x+1],j=i[x],0===j){f=i[x+2],r=6;break}if(0!=(16&j)){d=15&j,c=i[x+2],r=2;break}if(0==(64&j)){u=j,l=x/3+i[x+2];break}if(0!=(32&j)){r=7;break}return r=9,g.msg="invalid literal/length code",b=n,e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);case 2:for(w=d;O<w;){if(0===k)return e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,k--,C|=(255&g.read_byte(P++))<<O,O+=8}c+=C&o[w],C>>=w,O-=w,u=y,i=a,l=v,r=3;case 3:for(w=u;O<w;){if(0===k)return e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,k--,C|=(255&g.read_byte(P++))<<O,O+=8}if(x=3*(l+(C&o[w])),C>>=i[x+1],O-=i[x+1],j=i[x],0!=(16&j)){d=15&j,p=i[x+2],r=4;break}if(0==(64&j)){u=j,l=x/3+i[x+2];break}return r=9,g.msg="invalid distance code",b=n,e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);case 4:for(w=d;O<w;){if(0===k)return e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,k--,C|=(255&g.read_byte(P++))<<O,O+=8}p+=C&o[w],C>>=w,O-=w,r=5;case 5:for(D=E-p;D<0;)D+=e.end;for(;0!==c;){if(0===S&&(E==e.end&&0!==e.read&&(E=0,S=E<e.read?e.read-E-1:e.end-E),0===S&&(e.write=E,b=e.inflate_flush(g,b),E=e.write,S=E<e.read?e.read-E-1:e.end-E,E==e.end&&0!==e.read&&(E=0,S=E<e.read?e.read-E-1:e.end-E),0===S)))return e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);e.window[E++]=e.window[D++],S--,D==e.end&&(D=0),c--}r=0;break;case 6:if(0===S&&(E==e.end&&0!==e.read&&(E=0,S=E<e.read?e.read-E-1:e.end-E),0===S&&(e.write=E,b=e.inflate_flush(g,b),E=e.write,S=E<e.read?e.read-E-1:e.end-E,E==e.end&&0!==e.read&&(E=0,S=E<e.read?e.read-E-1:e.end-E),0===S)))return e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,e.window[E++]=f,S--,r=0;break;case 7:if(O>7&&(O-=8,k++,P--),e.write=E,b=e.inflate_flush(g,b),E=e.write,S=E<e.read?e.read-E-1:e.end-E,e.read!=e.write)return e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);r=8;case 8:return b=1,e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);case 9:return b=n,e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);default:return b=t,e.bitb=C,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b)}},e.free=function(){}}f.inflate_trees_fixed=function(e,t,n,r){return e[0]=9,t[0]=5,n[0]=i,r[0]=s,0};const p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function h(e,i){const s=this;let a,c=0,l=0,u=0,h=0;const y=[0],m=[0],v=new d;let _=0,g=new Int32Array(4320);const b=new f;s.bitk=0,s.bitb=0,s.window=new Uint8Array(i),s.end=i,s.read=0,s.write=0,s.reset=function(e,t){t&&(t[0]=0),6==c&&v.free(e),c=0,s.bitk=0,s.bitb=0,s.read=s.write=0},s.reset(e,null),s.inflate_flush=function(e,t){let n,o,i;return o=e.next_out_index,i=s.read,n=(i<=s.write?s.write:s.end)-i,n>e.avail_out&&(n=e.avail_out),0!==n&&t==r&&(t=0),e.avail_out-=n,e.total_out+=n,e.next_out.set(s.window.subarray(i,i+n),o),o+=n,i+=n,i==s.end&&(i=0,s.write==s.end&&(s.write=0),n=s.write-i,n>e.avail_out&&(n=e.avail_out),0!==n&&t==r&&(t=0),e.avail_out-=n,e.total_out+=n,e.next_out.set(s.window.subarray(i,i+n),o),o+=n,i+=n),e.next_out_index=o,s.read=i,t},s.proc=function(e,r){let i,d,w,x,j,k,E,S;for(x=e.next_in_index,j=e.avail_in,d=s.bitb,w=s.bitk,k=s.write,E=k<s.read?s.read-k-1:s.end-k;;){let D,C,O,P,M,B,A,T;switch(c){case 0:for(;w<3;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}switch(i=7&d,_=1&i,i>>>1){case 0:d>>>=3,w-=3,i=7&w,d>>>=i,w-=i,c=1;break;case 1:D=[],C=[],O=[[]],P=[[]],f.inflate_trees_fixed(D,C,O,P),v.init(D[0],C[0],O[0],0,P[0],0),d>>>=3,w-=3,c=6;break;case 2:d>>>=3,w-=3,c=3;break;case 3:return d>>>=3,w-=3,c=9,e.msg="invalid block type",r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r)}break;case 1:for(;w<32;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}if((~d>>>16&65535)!=(65535&d))return c=9,e.msg="invalid stored block lengths",r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);l=65535&d,d=w=0,c=0!==l?2:0!==_?7:0;break;case 2:if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);if(0===E&&(k==s.end&&0!==s.read&&(k=0,E=k<s.read?s.read-k-1:s.end-k),0===E&&(s.write=k,r=s.inflate_flush(e,r),k=s.write,E=k<s.read?s.read-k-1:s.end-k,k==s.end&&0!==s.read&&(k=0,E=k<s.read?s.read-k-1:s.end-k),0===E)))return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);if(r=0,i=l,i>j&&(i=j),i>E&&(i=E),s.window.set(e.read_buf(x,i),k),x+=i,j-=i,k+=i,E-=i,0!=(l-=i))break;c=0!==_?7:0;break;case 3:for(;w<14;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}if(u=i=16383&d,(31&i)>29||(i>>5&31)>29)return c=9,e.msg="too many length or distance symbols",r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);if(i=258+(31&i)+(i>>5&31),!a||a.length<i)a=[];else for(S=0;S<i;S++)a[S]=0;d>>>=14,w-=14,h=0,c=4;case 4:for(;h<4+(u>>>10);){for(;w<3;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}a[p[h++]]=7&d,d>>>=3,w-=3}for(;h<19;)a[p[h++]]=0;if(y[0]=7,i=b.inflate_trees_bits(a,y,m,g,e),0!=i)return(r=i)==n&&(a=null,c=9),s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);h=0,c=5;case 5:for(;i=u,!(h>=258+(31&i)+(i>>5&31));){let t,l;for(i=y[0];w<i;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}if(i=g[3*(m[0]+(d&o[i]))+1],l=g[3*(m[0]+(d&o[i]))+2],l<16)d>>>=i,w-=i,a[h++]=l;else{for(S=18==l?7:l-14,t=18==l?11:3;w<i+S;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}if(d>>>=i,w-=i,t+=d&o[S],d>>>=S,w-=S,S=h,i=u,S+t>258+(31&i)+(i>>5&31)||16==l&&S<1)return a=null,c=9,e.msg="invalid bit length repeat",r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);l=16==l?a[S-1]:0;do{a[S++]=l}while(0!=--t);h=S}}if(m[0]=-1,M=[],B=[],A=[],T=[],M[0]=9,B[0]=6,i=u,i=b.inflate_trees_dynamic(257+(31&i),1+(i>>5&31),a,M,B,A,T,g,e),0!=i)return i==n&&(a=null,c=9),r=i,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);v.init(M[0],B[0],g,A[0],g,T[0]),c=6;case 6:if(s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,1!=(r=v.proc(s,e,r)))return s.inflate_flush(e,r);if(r=0,v.free(e),x=e.next_in_index,j=e.avail_in,d=s.bitb,w=s.bitk,k=s.write,E=k<s.read?s.read-k-1:s.end-k,0===_){c=0;break}c=7;case 7:if(s.write=k,r=s.inflate_flush(e,r),k=s.write,E=k<s.read?s.read-k-1:s.end-k,s.read!=s.write)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);c=8;case 8:return r=1,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);case 9:return r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);default:return r=t,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r)}}},s.free=function(e){s.reset(e,null),s.window=null,g=null},s.set_dictionary=function(e,t,n){s.window.set(e.subarray(t,t+n),0),s.read=s.write=n},s.sync_point=function(){return 1==c?1:0}}const y=13,m=[0,0,255,255];function v(){const e=this;function o(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),0):t}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=function(t){return e.blocks&&e.blocks.free(t),e.blocks=null,0},e.inflateInit=function(n,r){return n.msg=null,e.blocks=null,r<8||r>15?(e.inflateEnd(n),t):(e.wbits=r,n.istate.blocks=new h(n,1<<r),o(n),0)},e.inflate=function(e,o){let i,s;if(!e||!e.istate||!e.next_in)return t;const a=e.istate;for(o=4==o?r:0,i=r;;)switch(a.mode){case 0:if(0===e.avail_in)return i;if(i=o,e.avail_in--,e.total_in++,8!=(15&(a.method=e.read_byte(e.next_in_index++)))){a.mode=y,e.msg="unknown compression method",a.marker=5;break}if(8+(a.method>>4)>a.wbits){a.mode=y,e.msg="invalid window size",a.marker=5;break}a.mode=1;case 1:if(0===e.avail_in)return i;if(i=o,e.avail_in--,e.total_in++,s=255&e.read_byte(e.next_in_index++),((a.method<<8)+s)%31!=0){a.mode=y,e.msg="incorrect header check",a.marker=5;break}if(0==(32&s)){a.mode=7;break}a.mode=2;case 2:if(0===e.avail_in)return i;i=o,e.avail_in--,e.total_in++,a.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,a.mode=3;case 3:if(0===e.avail_in)return i;i=o,e.avail_in--,e.total_in++,a.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,a.mode=4;case 4:if(0===e.avail_in)return i;i=o,e.avail_in--,e.total_in++,a.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,a.mode=5;case 5:return 0===e.avail_in?i:(i=o,e.avail_in--,e.total_in++,a.need+=255&e.read_byte(e.next_in_index++),a.mode=6,2);case 6:return a.mode=y,e.msg="need dictionary",a.marker=0,t;case 7:if(i=a.blocks.proc(e,i),i==n){a.mode=y,a.marker=0;break}if(0==i&&(i=o),1!=i)return i;i=o,a.blocks.reset(e,a.was),a.mode=12;case 12:return 1;case y:return n;default:return t}},e.inflateSetDictionary=function(e,n,r){let o=0,i=r;if(!e||!e.istate||6!=e.istate.mode)return t;const s=e.istate;return i>=1<<s.wbits&&(i=(1<<s.wbits)-1,o=r-i),s.blocks.set_dictionary(n,o,i),s.mode=7,0},e.inflateSync=function(e){let i,s,a,c,l;if(!e||!e.istate)return t;const u=e.istate;if(u.mode!=y&&(u.mode=y,u.marker=0),0===(i=e.avail_in))return r;for(s=e.next_in_index,a=u.marker;0!==i&&a<4;)e.read_byte(s)==m[a]?a++:a=0!==e.read_byte(s)?0:4-a,s++,i--;return e.total_in+=s-e.next_in_index,e.next_in_index=s,e.avail_in=i,u.marker=a,4!=a?n:(c=e.total_in,l=e.total_out,o(e),e.total_in=c,e.total_out=l,u.mode=7,0)},e.inflateSyncPoint=function(e){return e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():t}}function _(){}_.prototype={inflateInit:function(e){const t=this;return t.istate=new v,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(e){const n=this;return n.istate?n.istate.inflate(n,e):t},inflateEnd:function(){const e=this;if(!e.istate)return t;const n=e.istate.inflateEnd(e);return e.istate=null,n},inflateSync:function(){const e=this;return e.istate?e.istate.inflateSync(e):t},inflateSetDictionary:function(e,n){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,n):t},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}};const g={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},b=Object.assign({},g);function w(e){if(void 0!==e.chunkSize&&(b.chunkSize=e.chunkSize),void 0!==e.maxWorkers&&(b.maxWorkers=e.maxWorkers),void 0!==e.terminateWorkerTimeout&&(b.terminateWorkerTimeout=e.terminateWorkerTimeout),void 0!==e.useWebWorkers&&(b.useWebWorkers=e.useWebWorkers),void 0!==e.Deflate&&(b.Deflate=e.Deflate),void 0!==e.Inflate&&(b.Inflate=e.Inflate),void 0!==e.workerScripts){if(e.workerScripts.deflate){if(!Array.isArray(e.workerScripts.deflate))throw new Error("workerScripts.deflate must be an array");b.workerScripts||(b.workerScripts={}),b.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!Array.isArray(e.workerScripts.inflate))throw new Error("workerScripts.inflate must be an array");b.workerScripts||(b.workerScripts={}),b.workerScripts.inflate=e.workerScripts.inflate}}}const x="Abort error";function j(e,t){if(e&&e.aborted)throw t.flush(),new Error(x)}async function k(e,t){return t.length&&await e.writeUint8Array(t),t.length}const E="HTTP error ",S="HTTP Range not supported",D="text/plain",C="Content-Length",O="Accept-Ranges",P="HEAD",M="GET",B="bytes";class A{constructor(){this.size=0}init(){this.initialized=!0}}class T extends A{}class I extends A{writeUint8Array(e){this.size+=e.length}}class L extends T{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){const n=new FileReader;return new Promise(((r,o)=>{n.onload=e=>r(new Uint8Array(e.target.result)),n.onerror=()=>o(n.error),n.readAsArrayBuffer(this.blob.slice(e,e+t))}))}}class K extends T{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=Object.assign({},t),delete this.options.preventHeadRequest,delete this.options.useRangeHeader,delete this.options.forceRangeRequests,delete this.options.useXHR}async init(){if(super.init(),W(this.url)&&!this.preventHeadRequest){const e=await F(P,this.url,this.options);if(this.size=Number(e.headers.get(C)),!this.forceRangeRequests&&this.useRangeHeader&&e.headers.get(O)!=B)throw new Error(S);void 0===this.size&&await R(this,this.options)}else await R(this,this.options)}async readUint8Array(e,t){if(this.useRangeHeader){const n=await F(M,this.url,this.options,Object.assign({},this.options.headers,{HEADER_RANGE:"bytes="+e+"-"+(e+t-1)}));if(206!=n.status)throw new Error(S);return new Uint8Array(await n.arrayBuffer())}return this.data||await R(this,this.options),new Uint8Array(this.data.subarray(e,e+t))}}async function R(e,t){const n=await F(M,e.url,t);e.data=new Uint8Array(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function F(e,t,n,r){r=Object.assign({},n.headers,r);const o=await fetch(t,Object.assign({},n,{method:e,headers:r}));if(o.status<400)return o;throw new Error(E+(o.statusText||o.status))}class N extends T{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests}async init(){if(super.init(),W(this.url)&&!this.preventHeadRequest)return new Promise(((e,t)=>z(P,this.url,(n=>{this.size=Number(n.getResponseHeader(C)),this.useRangeHeader?this.forceRangeRequests||n.getResponseHeader(O)==B?e():t(new Error(S)):void 0===this.size?U(this,this.url).then((()=>e())).catch(t):e()}),t)));await U(this,this.url)}async readUint8Array(e,t){if(!this.useRangeHeader)return this.data||await U(this,this.url),new Uint8Array(this.data.subarray(e,e+t));if(206!=(await new Promise(((n,r)=>z(M,this.url,(e=>n(new Uint8Array(e.response))),r,[["Range","bytes="+e+"-"+(e+t-1)]])))).status)throw new Error(S)}}function U(e,t){return new Promise(((n,r)=>z(M,t,(t=>{e.data=new Uint8Array(t.response),e.size||(e.size=e.data.length),n()}),r)))}function z(e,t,n,r,o=[]){const i=new XMLHttpRequest;return i.addEventListener("load",(()=>{i.status<400?n(i):r(E+(i.statusText||i.status))}),!1),i.addEventListener("error",r,!1),i.open(e,t),o.forEach((e=>i.setRequestHeader(e[0],e[1]))),i.responseType="arraybuffer",i.send(),i}class H extends T{constructor(e,t={}){super(),this.url=e,t.useXHR?this.reader=new N(e,t):this.reader=new K(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}async readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}function W(e){if("undefined"!=typeof document){const t=document.createElement("a");return t.href=e,"http:"==t.protocol||"https:"==t.protocol}return/^https?:\/\//i.test(e)}const V=4294967295,q=33639248,G=101075792,Y="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),X=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)1&t?t=t>>>1^3988292384:t>>>=1;X[e]=t}class ${constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;n<r;n++)t=t>>>8^X[255&(t^e[n])];this.crc=t}get(){return~this.crc}}const J={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=J.getPartial(n);return 32===r?e.concat(t):J._shiftRight(t,r,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+J.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,Math.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=J.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>Math.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let o=0;o<e.length;o++)r.push(n|e[o]>>>t),n=e[o]<<32-t;const o=e.length?e[e.length-1]:0,i=J.getPartial(o);return r.push(J.partial(t+i&31,t+i>32?n:r.pop(),1)),r}},Q={bytes:{fromBits(e){const t=J.bitLength(e)/8,n=new Uint8Array(t);let r;for(let o=0;o<t;o++)0==(3&o)&&(r=e[o/4]),n[o]=r>>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(J.partial(8*(3&n),r)),t}}},Z={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};Z.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=Q.utf8String.toBits(e));const n=t._buffer=J.concat(t._buffer,e),r=t._length,o=t._length=r+J.bitLength(e);if(o>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const i=new Uint32Array(n);let s=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);e<=o;e+=t.blockSize)t._block(i.subarray(16*s,16*(s+1))),s+=1;return n.splice(0,16*s),t},finalize:function(){const e=this;let t=e._buffer;const n=e._h;t=J.concat(t,[J.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:function(e,t,n,r){return e<=19?t&n|~t&r:e<=39?t^n^r:e<=59?t&n|t&r|n&r:e<=79?t^n^r:void 0},_S:function(e,t){return t<<e|t>>>32-e},_block:function(e){const t=this,n=t._h,r=Array(80);for(let t=0;t<16;t++)r[t]=e[t];let o=n[0],i=n[1],s=n[2],a=n[3],c=n[4];for(let e=0;e<=79;e++){e>=16&&(r[e]=t._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const n=t._S(5,o)+t._f(e,i,s,a)+c+r[e]+t._key[Math.floor(e/20)]|0;c=a,a=s,s=t._S(30,i),i=o,o=n}n[0]=n[0]+o|0,n[1]=n[1]+i|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0}};const ee=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],o=e.length;let i,s,a,c=1;if(4!==o&&6!==o&&8!==o)throw new Error("invalid aes key size");for(t._key=[s=e.slice(0),a=[]],i=o;i<4*o+28;i++){let e=s[i-1];(i%o==0||8===o&&i%o==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],i%o==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),s[i]=s[i-o]^e}for(let e=0;i;e++,i--){const t=s[3&e?i:i-4];a[e]=i<=4||e<4?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],o=[],i=[];let s,a,c,l;for(let e=0;e<256;e++)i[(o[e]=e<<1^283*(e>>7))^e]=e;for(let u=s=0;!n[u];u^=a||1,s=i[s]||1){let i=s^s<<1^s<<2^s<<3^s<<4;i=i>>8^255&i^99,n[u]=i,r[i]=u,l=o[c=o[a=o[u]]];let f=16843009*l^65537*c^257*a^16843008*u,d=257*o[i]^16843008*i;for(let n=0;n<4;n++)e[n][u]=d=d<<24^d>>>8,t[n][i]=f=f<<24^f>>>8}for(let n=0;n<5;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new Error("invalid aes block size");const n=this._key[t],r=n.length/4-2,o=[0,0,0,0],i=this._tables[t],s=i[0],a=i[1],c=i[2],l=i[3],u=i[4];let f,d,p,h=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],v=e[t?1:3]^n[3],_=4;for(let e=0;e<r;e++)f=s[h>>>24]^a[y>>16&255]^c[m>>8&255]^l[255&v]^n[_],d=s[y>>>24]^a[m>>16&255]^c[v>>8&255]^l[255&h]^n[_+1],p=s[m>>>24]^a[v>>16&255]^c[h>>8&255]^l[255&y]^n[_+2],v=s[v>>>24]^a[h>>16&255]^c[y>>8&255]^l[255&m]^n[_+3],_+=4,h=f,y=d,m=p;for(let e=0;e<4;e++)o[t?3&-e:e]=u[h>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&v]^n[_++],f=h,h=y,y=m,m=v,v=f;return o}},te=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const o=J.bitLength(t);for(let o=0;o<r;o+=4){this.incCounter(n);const r=e.encrypt(n);t[o]^=r[0],t[o+1]^=r[1],t[o+2]^=r[2],t[o+3]^=r[3]}return J.clamp(t,o)}},ne=class{constructor(e){const t=this,n=t._hash=Z.sha1,r=[[],[]],o=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>o&&(e=n.hash(e));for(let t=0;t<o;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}},re="Invalid pasword",oe=16,ie={name:"PBKDF2"},se=Object.assign({hash:{name:"HMAC"}},ie),ae=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},ie),ce=["deriveBits"],le=[8,12,16],ue=[16,24,32],fe=10,de=[0,0,0,0],pe=Q.bytes,he=ee,ye=te,me=ne;class ve{constructor(e,t,n){Object.assign(this,{password:e,signed:t,strength:n-1,pendingInput:new Uint8Array(0)})}async append(e){const t=this;if(t.password){const n=xe(e,0,le[t.strength]+2);await async function(e,t,n){await be(e,n,xe(t,0,le[e.strength]));const r=xe(t,le[e.strength]),o=e.keys.passwordVerification;if(o[0]!=r[0]||o[1]!=r[1])throw new Error(re)}(t,n,t.password),t.password=null,t.aesCtrGladman=new ye(new he(t.keys.key),Array.from(de)),t.hmac=new me(t.keys.authentication),e=xe(e,le[t.strength]+2)}return ge(t,e,new Uint8Array(e.length-fe-(e.length-fe)%oe),0,fe,!0)}flush(){const e=this,t=e.pendingInput,n=xe(t,0,t.length-fe),r=xe(t,t.length-fe);let o=new Uint8Array(0);if(n.length){const t=pe.toBits(n);e.hmac.update(t);const r=e.aesCtrGladman.update(t);o=pe.fromBits(r)}let i=!0;if(e.signed){const t=xe(pe.fromBits(e.hmac.digest()),0,fe);for(let e=0;e<fe;e++)t[e]!=r[e]&&(i=!1)}return{valid:i,data:o}}}class _e{constructor(e,t){Object.assign(this,{password:e,strength:t-1,pendingInput:new Uint8Array(0)})}async append(e){const t=this;let n=new Uint8Array(0);t.password&&(n=await async function(e,t){const n=crypto.getRandomValues(new Uint8Array(le[e.strength]));return await be(e,t,n),we(n,e.keys.passwordVerification)}(t,t.password),t.password=null,t.aesCtrGladman=new ye(new he(t.keys.key),Array.from(de)),t.hmac=new me(t.keys.authentication));const r=new Uint8Array(n.length+e.length-e.length%oe);return r.set(n,0),ge(t,e,r,n.length,0)}flush(){const e=this;let t=new Uint8Array(0);if(e.pendingInput.length){const n=e.aesCtrGladman.update(pe.toBits(e.pendingInput));e.hmac.update(n),t=pe.fromBits(n)}const n=xe(pe.fromBits(e.hmac.digest()),0,fe);return{data:we(t,n),signature:n}}}function ge(e,t,n,r,o,i){const s=t.length-o;let a;for(e.pendingInput.length&&(t=we(e.pendingInput,t),n=function(e,t){if(t&&t>e.length){const n=e;(e=new Uint8Array(t)).set(n,0)}return e}(n,s-s%oe)),a=0;a<=s-oe;a+=oe){const o=pe.toBits(xe(t,a,a+oe));i&&e.hmac.update(o);const s=e.aesCtrGladman.update(o);i||e.hmac.update(s),n.set(pe.fromBits(s),a+r)}return e.pendingInput=xe(t,a),n}async function be(e,t,n){const r=(new TextEncoder).encode(t),o=await crypto.subtle.importKey("raw",r,se,!1,ce),i=await crypto.subtle.deriveBits(Object.assign({salt:n},ae),o,8*(2*ue[e.strength]+2)),s=new Uint8Array(i);e.keys={key:pe.toBits(xe(s,0,ue[e.strength])),authentication:pe.toBits(xe(s,ue[e.strength],2*ue[e.strength])),passwordVerification:xe(s,2*ue[e.strength])}}function we(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function xe(e,t,n){return e.subarray(t,n)}class je{constructor(e,t){Object.assign(this,{password:e,passwordVerification:t}),De(this,e)}append(e){const t=this;if(t.password){const n=Ee(t,e.subarray(0,12));if(t.password=null,n[11]!=t.passwordVerification)throw new Error(re);e=e.subarray(12)}return Ee(t,e)}flush(){return{valid:!0,data:new Uint8Array(0)}}}class ke{constructor(e,t){Object.assign(this,{password:e,passwordVerification:t}),De(this,e)}append(e){const t=this;let n,r;if(t.password){t.password=null;const o=crypto.getRandomValues(new Uint8Array(12));o[11]=t.passwordVerification,n=new Uint8Array(e.length+o.length),n.set(Se(t,o),0),r=12}else n=new Uint8Array(e.length),r=0;return n.set(Se(t,e),r),n}flush(){return{data:new Uint8Array(0)}}}function Ee(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=Oe(e)^t[r],Ce(e,n[r]);return n}function Se(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=Oe(e)^t[r],Ce(e,t[r]);return n}function De(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new $(e.keys[0]),e.crcKey2=new $(e.keys[2]);for(let n=0;n<t.length;n++)Ce(e,t.charCodeAt(n))}function Ce(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=Me(e.keys[1]+Pe(e.keys[0])),e.keys[1]=Me(Math.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function Oe(e){const t=2|e.keys[2];return Pe(Math.imul(t,1^t)>>>8)}function Pe(e){return 255&e}function Me(e){return 4294967295&e}const Be="inflate",Ae="Invalid signature";class Te{constructor(e,{signature:t,password:n,signed:r,compressed:o,zipCrypto:i,passwordVerification:s,encryptionStrength:a},{chunkSize:c}){const l=Boolean(n);Object.assign(this,{signature:t,encrypted:l,signed:r,compressed:o,inflate:o&&new e({chunkSize:c}),crc32:r&&new $,zipCrypto:i,decrypt:l&&i?new je(n,s):new ve(n,r,a)})}async append(e){const t=this;return t.encrypted&&e.length&&(e=await t.decrypt.append(e)),t.compressed&&e.length&&(e=await t.inflate.append(e)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),e}async flush(){const e=this;let t,n=new Uint8Array(0);if(e.encrypted){const t=e.decrypt.flush();if(!t.valid)throw new Error(Ae);n=t.data}if((!e.encrypted||e.zipCrypto)&&e.signed){const n=new DataView(new Uint8Array(4).buffer);if(t=e.crc32.get(),n.setUint32(0,t),e.signature!=n.getUint32(0,!1))throw new Error(Ae)}return e.compressed&&(n=await e.inflate.append(n)||new Uint8Array(0),await e.inflate.flush()),{data:n,signature:t}}}class Ie{constructor(e,{encrypted:t,signed:n,compressed:r,level:o,zipCrypto:i,password:s,passwordVerification:a,encryptionStrength:c},{chunkSize:l}){Object.assign(this,{encrypted:t,signed:n,compressed:r,deflate:r&&new e({level:o||5,chunkSize:l}),crc32:n&&new $,zipCrypto:i,encrypt:t&&i?new ke(s,a):new _e(s,c)})}async append(e){const t=this;let n=e;return t.compressed&&e.length&&(n=await t.deflate.append(e)),t.encrypted&&n.length&&(n=await t.encrypt.append(n)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),n}async flush(){const e=this;let t,n=new Uint8Array(0);if(e.compressed&&(n=await e.deflate.flush()||new Uint8Array(0)),e.encrypted){n=await e.encrypt.append(n);const r=e.encrypt.flush();t=r.signature;const o=new Uint8Array(n.length+r.data.length);o.set(n,0),o.set(r.data,n.length),n=o}return e.encrypted&&!e.zipCrypto||!e.signed||(t=e.crc32.get()),{data:n,signature:t}}}const Le="init",Ke="append",Re="flush";let Fe=!0;var Ne=(e,t,n,r,o,i,s)=>(Object.assign(e,{busy:!0,codecConstructor:t,options:Object.assign({},n),scripts:s,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,o(e)}}),i?function(e,t){let n;const r={type:"module"};if(!e.interface){if(Fe)try{e.worker=o()}catch(t){Fe=!1,e.worker=o(r)}else e.worker=o(r);e.worker.addEventListener("message",(function(t){const r=t.data;if(n){const t=r.error,o=r.type;if(t){const r=new Error(t.message);r.stack=t.stack,n.reject(r),n=null,e.onTaskFinished()}else if(o==Le||o==Re||o==Ke){const t=r.data;o==Re?(n.resolve({data:new Uint8Array(t),signature:r.signature}),n=null,e.onTaskFinished()):n.resolve(t&&new Uint8Array(t))}}}),!1),e.interface={append:e=>i({type:Ke,data:e}),flush:()=>i({type:Re})}}return e.interface;function o(t={}){return new Worker(new URL(e.scripts[0],"undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("zip-no-worker-inflate.min.js",document.baseURI).href),t)}async function i(r){if(!n){const n=e.options,r=e.scripts.slice(1);await s({scripts:r,type:Le,options:n,config:{chunkSize:t.chunkSize}})}return s(r)}function s(t){const r=e.worker,o=new Promise(((e,t)=>n={resolve:e,reject:t}));try{if(t.data)try{t.data=t.data.buffer,r.postMessage(t,[t.data])}catch(e){r.postMessage(t)}else r.postMessage(t)}catch(t){n.reject(t),n=null,e.onTaskFinished()}return o}}(e,r):function(e,t){const n=function(e,t,n){return t.codecType.startsWith("deflate")?new Ie(e,t,n):t.codecType.startsWith(Be)?new Te(e,t,n):void 0}(e.codecConstructor,e.options,t);return{async append(t){try{return await n.append(t)}catch(t){throw e.onTaskFinished(),t}},async flush(){try{return await n.flush()}finally{e.onTaskFinished()}}}}(e,r));let Ue=[],ze=[];function He(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}const We=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class Ve{constructor(e){We.forEach((t=>this[t]=e[t]))}}const qe="File format is not recognized",Ge="End of central directory not found",Ye="End of Zip64 central directory not found",Xe="End of Zip64 central directory locator not found",$e="Central directory header not found",Je="Local file header not found",Qe="Zip64 extra field not found",Ze="File contains encrypted entry",et="Encryption method not supported",tt="Compression method not supported",nt="utf-8",rt=["uncompressedSize","compressedSize","offset"];class ot{constructor(e,t,n){Object.assign(this,{reader:e,config:t,options:n})}async getData(e,t,n={}){const r=this,{reader:o,offset:i,extraFieldAES:s,compressionMethod:a,config:c,bitFlag:l,signature:u,rawLastModDate:f,compressedSize:d}=r,p=r.localDirectory={};o.initialized||await o.init();let h=await vt(o,i,30);const y=mt(h);let m=ct(r,n,"password");if(m=m&&m.length&&m,s&&99!=s.originalCompressionMethod)throw new Error(tt);if(0!=a&&8!=a)throw new Error(tt);if(67324752!=ht(y,0))throw new Error(Je);it(p,y,4),h=await vt(o,i,30+p.filenameLength+p.extraFieldLength),p.rawExtraField=h.subarray(30+p.filenameLength),st(r,p,y,4),t.lastAccessDate=p.lastAccessDate,t.creationDate=p.creationDate;const v=r.encrypted&&p.encrypted,_=v&&!s;if(v){if(!_&&void 0===s.strength)throw new Error(et);if(!m)throw new Error(Ze)}const g=await function(e,t,n){const r=!(!t.compressed&&!t.signed&&!t.encrypted)&&(t.useWebWorkers||void 0===t.useWebWorkers&&n.useWebWorkers),o=r&&n.workerScripts?n.workerScripts[t.codecType]:[];if(Ue.length<n.maxWorkers){const s={};return Ue.push(s),Ne(s,e,t,n,i,r,o)}{const s=Ue.find((e=>!e.busy));return s?(He(s),Ne(s,e,t,n,i,r,o)):new Promise((n=>ze.push({resolve:n,codecConstructor:e,options:t,webWorker:r,scripts:o})))}function i(e){if(ze.length){const[{resolve:t,codecConstructor:r,options:o,webWorker:s,scripts:a}]=ze.splice(0,1);t(Ne(e,r,o,n,i,s,a))}else e.worker?(He(e),Number.isFinite(n.terminateWorkerTimeout)&&n.terminateWorkerTimeout>=0&&(e.terminateTimeout=setTimeout((()=>{Ue=Ue.filter((t=>t!=e)),e.terminate()}),n.terminateWorkerTimeout))):Ue=Ue.filter((t=>t!=e))}}(c.Inflate,{codecType:Be,password:m,zipCrypto:_,encryptionStrength:s&&s.strength,signed:ct(r,n,"checkSignature"),passwordVerification:_&&(l.dataDescriptor?f>>>8&255:u>>>24&255),signature:u,compressed:0!=a,encrypted:v,useWebWorkers:ct(r,n,"useWebWorkers")},c);e.initialized||await e.init();const b=ct(r,n,"signal"),w=i+30+p.filenameLength+p.extraFieldLength;return await async function(e,t,n,r,o,i,s){const a=Math.max(i.chunkSize,64);return async function i(c=0,l=0){const u=s.signal;if(c<o){j(u,e);const f=await t.readUint8Array(c+r,Math.min(a,o-c)),d=f.length;j(u,e);const p=await e.append(f);if(j(u,e),l+=await k(n,p),s.onprogress)try{s.onprogress(c+d,o)}catch(e){}return i(c+a,l)}{const t=await e.flush();return l+=await k(n,t.data),{signature:t.signature,length:l}}}()}(g,o,e,w,d,c,{onprogress:n.onprogress,signal:b}),e.getData()}}function it(e,t,n){const r=e.rawBitFlag=pt(t,n+2),o=1==(1&r),i=ht(t,n+6);Object.assign(e,{encrypted:o,version:pt(t,n),bitFlag:{level:(6&r)>>1,dataDescriptor:8==(8&r),languageEncodingFlag:2048==(2048&r)},rawLastModDate:i,lastModDate:ut(i),filenameLength:pt(t,n+22),extraFieldLength:pt(t,n+24)})}function st(e,t,n,r){const o=t.rawExtraField,i=t.extraField=new Map,s=mt(new Uint8Array(o));let a=0;try{for(;a<o.length;){const e=pt(s,a),t=pt(s,a+2);i.set(e,{type:e,data:o.slice(a+4,a+4+t)}),a+=4+t}}catch(e){}const c=pt(n,r+4);t.signature=ht(n,r+10),t.uncompressedSize=ht(n,r+18),t.compressedSize=ht(n,r+14);const l=i.get(1);l&&(function(e,t){t.zip64=!0;const n=mt(e.data);e.values=[];for(let t=0;t<Math.floor(e.data.length/8);t++)e.values.push(yt(n,0+8*t));const r=rt.filter((e=>t[e]==V));for(let t=0;t<r.length;t++)e[r[t]]=e.values[t];rt.forEach((n=>{if(t[n]==V){if(void 0===e[n])throw new Error(Qe);t[n]=e[n]}}))}(l,t),t.extraFieldZip64=l);const u=i.get(28789);u&&(at(u,"filename","rawFilename",t,e),t.extraFieldUnicodePath=u);const f=i.get(25461);f&&(at(f,"comment","rawComment",t,e),t.extraFieldUnicodeComment=f);const d=i.get(39169);d?(function(e,t,n){const r=mt(e.data);e.vendorVersion=dt(r,0),e.vendorId=dt(r,2);const o=dt(r,4);e.strength=o,e.originalCompressionMethod=n,t.compressionMethod=e.compressionMethod=pt(r,5)}(d,t,c),t.extraFieldAES=d):t.compressionMethod=c;const p=i.get(10);p&&(function(e,t){const n=mt(e.data);let r,o=4;try{for(;o<e.data.length&&!r;){const t=pt(n,o),i=pt(n,o+2);1==t&&(r=e.data.slice(o+4,o+4+i)),o+=4+i}}catch(e){}try{if(r&&24==r.length){const n=mt(r),o=n.getBigUint64(0,!0),i=n.getBigUint64(8,!0),s=n.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:o,rawLastAccessDate:i,rawCreationDate:s});const a=ft(o),c={lastModDate:a,lastAccessDate:ft(i),creationDate:ft(s)};Object.assign(e,c),Object.assign(t,c)}}catch(e){}}(p,t),t.extraFieldNTFS=p);const h=i.get(21589);h&&(function(e,t){const n=mt(e.data),r=dt(n,0),o=[],i=[];1==(1&r)&&(o.push("lastModDate"),i.push("rawLastModDate")),2==(2&r)&&(o.push("lastAccessDate"),i.push("rawLastAccessDate")),4==(4&r)&&(o.push("creationDate"),i.push("rawCreationDate"));let s=1;o.forEach(((r,o)=>{if(e.data.length>=s+4){const a=ht(n,s);t[r]=e[r]=new Date(1e3*a);const c=i[o];e[c]=a}s+=4}))}(h,t),t.extraFieldExtendedTimestamp=h)}function at(e,t,n,r,o){const i=mt(e.data);e.version=dt(i,0),e.signature=ht(i,1);const s=new $;s.append(o[n]);const a=mt(new Uint8Array(4));a.setUint32(0,s.get(),!0),e[t]=(new TextDecoder).decode(e.data.subarray(5)),e.valid=!o.bitFlag.languageEncodingFlag&&e.signature==ht(a,0),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function ct(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function lt(e,t){return t&&"cp437"!=t.trim().toLowerCase()?new TextDecoder(t).decode(e):(e=>{let t="";for(let n=0;n<e.length;n++)t+=Y[e[n]];return t})(e)}function ut(e){const t=(4294901760&e)>>16,n=65535&e;try{return new Date(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function ft(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function dt(e,t){return e.getUint8(t)}function pt(e,t){return e.getUint16(t,!0)}function ht(e,t){return e.getUint32(t,!0)}function yt(e,t){return Number(e.getBigUint64(t,!0))}function mt(e){return new DataView(e.buffer)}function vt(e,t,n){return e.readUint8Array(t,n)}w({Inflate:function(e){const t=new _,n=e&&e.chunkSize?Math.floor(2*e.chunkSize):131072,o=new Uint8Array(n);let i=!1;t.inflateInit(),t.next_out=o,this.append=function(e,s){const a=[];let c,l,u=0,f=0,d=0;if(0!==e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=n,0!==t.avail_in||i||(t.next_in_index=0,i=!0),c=t.inflate(0),i&&c===r){if(0!==t.avail_in)throw new Error("inflating: bad input")}else if(0!==c&&1!==c)throw new Error("inflating: "+t.msg);if((i||1===c)&&t.avail_in===e.length)throw new Error("inflating: bad input");t.next_out_index&&(t.next_out_index===n?a.push(new Uint8Array(o)):a.push(o.slice(0,t.next_out_index))),d+=t.next_out_index,s&&t.next_in_index>0&&t.next_in_index!=u&&(s(t.next_in_index),u=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return a.length>1?(l=new Uint8Array(d),a.forEach((function(e){l.set(e,f),f+=e.length}))):l=a[0]||new Uint8Array(0),l}},this.flush=function(){t.inflateEnd()}}}),e.BlobReader=L,e.BlobWriter=class extends I{constructor(e){super(),this.offset=0,this.contentType=e,this.blob=new Blob([],{type:e})}async writeUint8Array(e){super.writeUint8Array(e),this.blob=new Blob([this.blob,e.buffer],{type:this.contentType}),this.offset=this.blob.size}getData(){return this.blob}},e.Data64URIReader=class extends T{constructor(e){super(),this.dataURI=e;let t=e.length;for(;"="==e.charAt(t-1);)t--;this.dataStart=e.indexOf(",")+1,this.size=Math.floor(.75*(t-this.dataStart))}async readUint8Array(e,t){const n=new Uint8Array(t),r=4*Math.floor(e/3),o=atob(this.dataURI.substring(r+this.dataStart,4*Math.ceil((e+t)/3)+this.dataStart)),i=e-3*Math.floor(r/4);for(let e=i;e<i+t;e++)n[e-i]=o.charCodeAt(e);return n}},e.Data64URIWriter=class extends I{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}async writeUint8Array(e){super.writeUint8Array(e);let t=0,n=this.pending;const r=this.pending.length;for(this.pending="",t=0;t<3*Math.floor((r+e.length)/3)-r;t++)n+=String.fromCharCode(e[t]);for(;t<e.length;t++)this.pending+=String.fromCharCode(e[t]);n.length>2?this.data+=btoa(n):this.pending=n}getData(){return this.data+btoa(this.pending)}},e.ERR_ABORT=x,e.ERR_BAD_FORMAT=qe,e.ERR_CENTRAL_DIRECTORY_NOT_FOUND=$e,e.ERR_ENCRYPTED=Ze,e.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=Xe,e.ERR_EOCDR_NOT_FOUND=Ge,e.ERR_EOCDR_ZIP64_NOT_FOUND=Ye,e.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=Qe,e.ERR_HTTP_RANGE=S,e.ERR_INVALID_PASSWORD=re,e.ERR_INVALID_SIGNATURE=Ae,e.ERR_LOCAL_FILE_HEADER_NOT_FOUND=Je,e.ERR_UNSUPPORTED_COMPRESSION=tt,e.ERR_UNSUPPORTED_ENCRYPTION=et,e.HttpRangeReader=class extends H{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=H,e.Reader=T,e.TextReader=class extends T{constructor(e){super(),this.blobReader=new L(new Blob([e],{type:D}))}async init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}async readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}},e.TextWriter=class extends I{constructor(e){super(),this.encoding=e,this.blob=new Blob([],{type:D})}async writeUint8Array(e){super.writeUint8Array(e),this.blob=new Blob([this.blob,e.buffer],{type:D})}getData(){const e=new FileReader;return new Promise(((t,n)=>{e.onload=e=>t(e.target.result),e.onerror=()=>n(e.error),e.readAsText(this.blob,this.encoding)}))}},e.Uint8ArrayReader=class extends T{constructor(e){super(),this.array=e,this.size=e.length}async readUint8Array(e,t){return this.array.slice(e,e+t)}},e.Uint8ArrayWriter=class extends I{constructor(){super(),this.array=new Uint8Array(0)}async writeUint8Array(e){super.writeUint8Array(e);const t=this.array;this.array=new Uint8Array(t.length+e.length),this.array.set(t),this.array.set(e,t.length)}getData(){return this.array}},e.Writer=I,e.ZipReader=class{constructor(e,t={}){Object.assign(this,{reader:e,options:t,config:b})}async getEntries(e={}){const t=this,n=t.reader;if(n.initialized||await n.init(),n.size<22)throw new Error(qe);const r=await async function(e,t,n,r,o){const i=new Uint8Array(4);!function(e,t,n){e.setUint32(0,101010256,!0)}(mt(i));return await s(22)||await s(Math.min(1048582,n));async function s(t){const r=n-t,o=await vt(e,r,t);for(let e=o.length-22;e>=0;e--)if(o[e]==i[0]&&o[e+1]==i[1]&&o[e+2]==i[2]&&o[e+3]==i[3])return{offset:r+e,buffer:o.slice(e,e+22).buffer}}}(n,0,n.size);if(!r)throw new Error(Ge);const o=mt(r);let i=ht(o,12),s=ht(o,16),a=pt(o,8),c=0;if(s==V||65535==a){const e=mt(await vt(n,r.offset-20,20));if(117853008!=ht(e,0))throw new Error(Ye);s=yt(e,8);let t=await vt(n,s,56),o=mt(t);const l=r.offset-20-56;if(ht(o,0)!=G&&s!=l){const e=s;s=l,c=s-e,t=await vt(n,s,56),o=mt(t)}if(ht(o,0)!=G)throw new Error(Xe);a=yt(o,24),i=ht(e,4),s-=yt(o,40)}if(s<0||s>=n.size)throw new Error(qe);let l=0,u=await vt(n,s,n.size-s),f=mt(u);const d=r.offset-i;if(ht(f,l)!=q&&s!=d){const e=s;s=d,c=s-e,u=await vt(n,s,n.size-s),f=mt(u)}if(s<0||s>=n.size)throw new Error(qe);const p=[];for(let r=0;r<a;r++){const o=new ot(n,t.config,t.options);if(ht(f,l)!=q)throw new Error($e);it(o,f,l+6);const i=Boolean(o.bitFlag.languageEncodingFlag),s=l+46,d=s+o.filenameLength,h=d+o.extraFieldLength,y=pt(f,l+4),m=0==(0&y);Object.assign(o,{versionMadeBy:y,msDosCompatible:m,compressedSize:0,uncompressedSize:0,commentLength:pt(f,l+32),directory:m&&16==(16&dt(f,l+38)),offset:ht(f,l+42)+c,internalFileAttribute:ht(f,l+34),externalFileAttribute:ht(f,l+38),rawFilename:u.subarray(s,d),filenameUTF8:i,commentUTF8:i,rawExtraField:u.subarray(d,h)});const v=h+o.commentLength;o.rawComment=u.subarray(h,v),o.filename=lt(o.rawFilename,o.filenameUTF8?nt:ct(t,e,"filenameEncoding")),o.comment=lt(o.rawComment,o.commentUTF8?nt:ct(t,e,"commentEncoding")),!o.directory&&o.filename.endsWith("/")&&(o.directory=!0),st(o,o,f,l+6);const _=new Ve(o);if(_.getData=(e,t)=>o.getData(e,_,t),p.push(_),l=v,e.onprogress)try{e.onprogress(r+1,a,new Ve(o))}catch(e){}}return p}async close(){}},e.configure=w,e.getMimeType=function(){return"application/octet-stream"},Object.defineProperty(e,"__esModule",{value:!0})})),function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){"use strict";n.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=l(e),s=r[0],a=r[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),u=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},n.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=16383,a=0,c=n-o;a<c;a+=s)i.push(u(e,a,a+s>c?c:a+s));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){var r=e("../internals/is-callable"),o=e("../internals/try-to-string");t.exports=function(e){if(r(e))return e;throw TypeError(o(e)+" is not a function")}},{"../internals/is-callable":43,"../internals/try-to-string":89}],3:[function(e,t,n){var r=e("../internals/is-callable");t.exports=function(e){if("object"==typeof e||r(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},{"../internals/is-callable":43}],4:[function(e,t,n){var r=e("../internals/well-known-symbol"),o=e("../internals/object-create"),i=e("../internals/object-define-property"),s=r("unscopables"),a=Array.prototype;null==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),t.exports=function(e){a[s][e]=!0}},{"../internals/object-create":57,"../internals/object-define-property":59,"../internals/well-known-symbol":92}],5:[function(e,t,n){t.exports=function(e,t,n){if(e instanceof t)return e;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},{}],6:[function(e,t,n){var r=e("../internals/is-object");t.exports=function(e){if(r(e))return e;throw TypeError(String(e)+" is not an object")}},{"../internals/is-object":46}],7:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),o=e("../internals/to-object"),i=e("../internals/call-with-safe-iteration-closing"),s=e("../internals/is-array-iterator-method"),a=e("../internals/is-constructor"),c=e("../internals/length-of-array-like"),l=e("../internals/create-property"),u=e("../internals/get-iterator"),f=e("../internals/get-iterator-method");t.exports=function(e){var t=o(e),n=a(this),d=arguments.length,p=d>1?arguments[1]:void 0,h=void 0!==p;h&&(p=r(p,d>2?arguments[2]:void 0,2));var y,m,v,_,g,b,w=f(t),x=0;if(!w||this==Array&&s(w))for(y=c(t),m=n?new this(y):Array(y);y>x;x++)b=h?p(t[x],x):t[x],l(m,x,b);else for(g=(_=u(t,w)).next,m=n?new this:[];!(v=g.call(_)).done;x++)b=h?i(_,p,[v.value,x],!0):v.value,l(m,x,b);return m.length=x,m}},{"../internals/call-with-safe-iteration-closing":9,"../internals/create-property":17,"../internals/function-bind-context":28,"../internals/get-iterator":32,"../internals/get-iterator-method":31,"../internals/is-array-iterator-method":42,"../internals/is-constructor":44,"../internals/length-of-array-like":52,"../internals/to-object":84}],8:[function(e,t,n){var r=e("../internals/to-indexed-object"),o=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),s=function(e){return function(t,n,s){var a,c=r(t),l=i(c),u=o(s,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":52,"../internals/to-absolute-index":80,"../internals/to-indexed-object":81}],9:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/iterator-close");t.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},{"../internals/an-object":6,"../internals/iterator-close":49}],10:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],11:[function(e,t,n){var r=e("../internals/to-string-tag-support"),o=e("../internals/is-callable"),i=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?n:a?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},{"../internals/classof-raw":10,"../internals/is-callable":43,"../internals/to-string-tag-support":87,"../internals/well-known-symbol":92}],12:[function(e,t,n){var r=e("../internals/has-own-property"),o=e("../internals/own-keys"),i=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");t.exports=function(e,t){for(var n=o(t),a=s.f,c=i.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||a(e,u,c(t,u))}}},{"../internals/has-own-property":35,"../internals/object-define-property":59,"../internals/object-get-own-property-descriptor":60,"../internals/own-keys":69}],13:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":27}],14:[function(e,t,n){"use strict";var r=e("../internals/iterators-core").IteratorPrototype,o=e("../internals/object-create"),i=e("../internals/create-property-descriptor"),s=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),c=function(){return this};t.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),s(e,l,!1,!0),a[l]=c,e}},{"../internals/create-property-descriptor":16,"../internals/iterators":51,"../internals/iterators-core":50,"../internals/object-create":57,"../internals/set-to-string-tag":74}],15:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":16,"../internals/descriptors":19,"../internals/object-define-property":59}],16:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],17:[function(e,t,n){"use strict";var r=e("../internals/to-property-key"),o=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=function(e,t,n){var s=r(t);s in e?o.f(e,s,i(0,n)):e[s]=n}},{"../internals/create-property-descriptor":16,"../internals/object-define-property":59,"../internals/to-property-key":86}],18:[function(e,t,n){"use strict";var r=e("../internals/export"),o=e("../internals/is-pure"),i=e("../internals/function-name"),s=e("../internals/is-callable"),a=e("../internals/create-iterator-constructor"),c=e("../internals/object-get-prototype-of"),l=e("../internals/object-set-prototype-of"),u=e("../internals/set-to-string-tag"),f=e("../internals/create-non-enumerable-property"),d=e("../internals/redefine"),p=e("../internals/well-known-symbol"),h=e("../internals/iterators"),y=e("../internals/iterators-core"),m=i.PROPER,v=i.CONFIGURABLE,_=y.IteratorPrototype,g=y.BUGGY_SAFARI_ITERATORS,b=p("iterator"),w="keys",x="values",j="entries",k=function(){return this};t.exports=function(e,t,n,i,p,y,E){a(n,t,i);var S,D,C,O=function(e){if(e===p&&T)return T;if(!g&&e in B)return B[e];switch(e){case w:case x:case j:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",M=!1,B=e.prototype,A=B[b]||B["@@iterator"]||p&&B[p],T=!g&&A||O(p),I="Array"==t&&B.entries||A;if(I&&(S=c(I.call(new e)))!==Object.prototype&&S.next&&(o||c(S)===_||(l?l(S,_):s(S[b])||d(S,b,k)),u(S,P,!0,!0),o&&(h[P]=k)),m&&p==x&&A&&A.name!==x&&(!o&&v?f(B,"name",x):(M=!0,T=function(){return A.call(this)})),p)if(D={values:O(x),keys:y?T:O(w),entries:O(j)},E)for(C in D)(g||M||!(C in B))&&d(B,C,D[C]);else r({target:t,proto:!0,forced:g||M},D);return o&&!E||B[b]===T||d(B,b,T,{name:p}),h[t]=T,D}},{"../internals/create-iterator-constructor":14,"../internals/create-non-enumerable-property":15,"../internals/export":26,"../internals/function-name":29,"../internals/is-callable":43,"../internals/is-pure":47,"../internals/iterators":51,"../internals/iterators-core":50,"../internals/object-get-prototype-of":63,"../internals/object-set-prototype-of":67,"../internals/redefine":71,"../internals/set-to-string-tag":74,"../internals/well-known-symbol":92}],19:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":27}],20:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/is-object"),i=r.document,s=o(i)&&o(i.createElement);t.exports=function(e){return s?i.createElement(e):{}}},{"../internals/global":34,"../internals/is-object":46}],21:[function(e,t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],22:[function(e,t,n){var r=e("../internals/document-create-element")("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},{"../internals/document-create-element":20}],23:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("navigator","userAgent")||""},{"../internals/get-built-in":30}],24:[function(e,t,n){var r,o,i=e("../internals/global"),s=e("../internals/engine-user-agent"),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u?o=(r=u.split("."))[0]<4?1:r[0]+r[1]:s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},{"../internals/engine-user-agent":23,"../internals/global":34}],25:[function(e,t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],26:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/object-get-own-property-descriptor").f,i=e("../internals/create-non-enumerable-property"),s=e("../internals/redefine"),a=e("../internals/set-global"),c=e("../internals/copy-constructor-properties"),l=e("../internals/is-forced");t.exports=function(e,t){var n,u,f,d,p,h=e.target,y=e.global,m=e.stat;if(n=y?r:m?r[h]||a(h,{}):(r[h]||{}).prototype)for(u in t){if(d=t[u],f=e.noTargetGet?(p=o(n,u))&&p.value:n[u],!l(y?u:h+(m?".":"#")+u,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),s(n,u,d,e)}}},{"../internals/copy-constructor-properties":12,"../internals/create-non-enumerable-property":15,"../internals/global":34,"../internals/is-forced":45,"../internals/object-get-own-property-descriptor":60,"../internals/redefine":71,"../internals/set-global":73}],27:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],28:[function(e,t,n){var r=e("../internals/a-callable");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"../internals/a-callable":2}],29:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/has-own-property"),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},{"../internals/descriptors":19,"../internals/has-own-property":35}],30:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/is-callable"),i=function(e){return o(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},{"../internals/global":34,"../internals/is-callable":43}],31:[function(e,t,n){var r=e("../internals/classof"),o=e("../internals/get-method"),i=e("../internals/iterators"),s=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(null!=e)return o(e,s)||o(e,"@@iterator")||i[r(e)]}},{"../internals/classof":11,"../internals/get-method":33,"../internals/iterators":51,"../internals/well-known-symbol":92}],32:[function(e,t,n){var r=e("../internals/a-callable"),o=e("../internals/an-object"),i=e("../internals/get-iterator-method");t.exports=function(e,t){var n=arguments.length<2?i(e):t;if(r(n))return o(n.call(e));throw TypeError(String(e)+" is not iterable")}},{"../internals/a-callable":2,"../internals/an-object":6,"../internals/get-iterator-method":31}],33:[function(e,t,n){var r=e("../internals/a-callable");t.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},{"../internals/a-callable":2}],34:[function(e,t,n){(function(e){(function(){var n=function(e){return e&&e.Math==Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],35:[function(e,t,n){var r=e("../internals/to-object"),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(e,t){return o.call(r(e),t)}},{"../internals/to-object":84}],36:[function(e,t,n){t.exports={}},{}],37:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":30}],38:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/fails"),i=e("../internals/document-create-element");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":19,"../internals/document-create-element":20,"../internals/fails":27}],39:[function(e,t,n){var r=e("../internals/fails"),o=e("../internals/classof-raw"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},{"../internals/classof-raw":10,"../internals/fails":27}],40:[function(e,t,n){var r=e("../internals/is-callable"),o=e("../internals/shared-store"),i=Function.toString;r(o.inspectSource)||(o.inspectSource=function(e){return i.call(e)}),t.exports=o.inspectSource},{"../internals/is-callable":43,"../internals/shared-store":76}],41:[function(e,t,n){var r,o,i,s=e("../internals/native-weak-map"),a=e("../internals/global"),c=e("../internals/is-object"),l=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),f=e("../internals/shared-store"),d=e("../internals/shared-key"),p=e("../internals/hidden-keys"),h="Object already initialized",y=a.WeakMap;if(s||f.state){var m=f.state||(f.state=new y),v=m.get,_=m.has,g=m.set;r=function(e,t){if(_.call(m,e))throw new TypeError(h);return t.facade=e,g.call(m,e,t),t},o=function(e){return v.call(m,e)||{}},i=function(e){return _.call(m,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){if(u(e,b))throw new TypeError(h);return t.facade=e,l(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},i=function(e){return u(e,b)}}t.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":15,"../internals/global":34,"../internals/has-own-property":35,"../internals/hidden-keys":36,"../internals/is-object":46,"../internals/native-weak-map":55,"../internals/shared-key":75,"../internals/shared-store":76}],42:[function(e,t,n){var r=e("../internals/well-known-symbol"),o=e("../internals/iterators"),i=r("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},{"../internals/iterators":51,"../internals/well-known-symbol":92}],43:[function(e,t,n){t.exports=function(e){return"function"==typeof e}},{}],44:[function(e,t,n){var r=e("../internals/fails"),o=e("../internals/is-callable"),i=e("../internals/classof"),s=e("../internals/get-built-in"),a=e("../internals/inspect-source"),c=[],l=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=u.exec,d=!u.exec((function(){})),p=function(e){if(!o(e))return!1;try{return l(Object,c,e),!0}catch(e){return!1}};t.exports=!l||r((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?function(e){if(!o(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!f.call(u,a(e))}:p},{"../internals/classof":11,"../internals/fails":27,"../internals/get-built-in":30,"../internals/inspect-source":40,"../internals/is-callable":43}],45:[function(e,t,n){var r=e("../internals/fails"),o=e("../internals/is-callable"),i=/#|\.prototype\./,s=function(e,t){var n=c[a(e)];return n==u||n!=l&&(o(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},l=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},{"../internals/fails":27,"../internals/is-callable":43}],46:[function(e,t,n){var r=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/is-callable":43}],47:[function(e,t,n){t.exports=!1},{}],48:[function(e,t,n){var r=e("../internals/is-callable"),o=e("../internals/get-built-in"),i=e("../internals/use-symbol-as-uid");t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&Object(e)instanceof t}},{"../internals/get-built-in":30,"../internals/is-callable":43,"../internals/use-symbol-as-uid":91}],49:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/get-method");t.exports=function(e,t,n){var i,s;r(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw n;return n}i=i.call(e)}catch(e){s=!0,i=e}if("throw"===t)throw n;if(s)throw i;return r(i),n}},{"../internals/an-object":6,"../internals/get-method":33}],50:[function(e,t,n){"use strict";var r,o,i,s=e("../internals/fails"),a=e("../internals/is-callable"),c=e("../internals/object-create"),l=e("../internals/object-get-prototype-of"),u=e("../internals/redefine"),f=e("../internals/well-known-symbol"),d=e("../internals/is-pure"),p=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):h=!0),null==r||s((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=c(r)),a(r[p])||u(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},{"../internals/fails":27,"../internals/is-callable":43,"../internals/is-pure":47,"../internals/object-create":57,"../internals/object-get-prototype-of":63,"../internals/redefine":71,"../internals/well-known-symbol":92}],51:[function(e,t,n){arguments[4][36][0].apply(n,arguments)},{dup:36}],52:[function(e,t,n){var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":83}],53:[function(e,t,n){var r=e("../internals/engine-v8-version"),o=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/engine-v8-version":24,"../internals/fails":27}],54:[function(e,t,n){var r=e("../internals/fails"),o=e("../internals/well-known-symbol"),i=e("../internals/is-pure"),s=o("iterator");t.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},{"../internals/fails":27,"../internals/is-pure":47,"../internals/well-known-symbol":92}],55:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/is-callable"),i=e("../internals/inspect-source"),s=r.WeakMap;t.exports=o(s)&&/native code/.test(i(s))},{"../internals/global":34,"../internals/inspect-source":40,"../internals/is-callable":43}],56:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),o=e("../internals/fails"),i=e("../internals/object-keys"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/object-property-is-enumerable"),c=e("../internals/to-object"),l=e("../internals/indexed-object"),u=Object.assign,f=Object.defineProperty;t.exports=!u||o((function(){if(r&&1!==u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||i(u({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,u=1,f=s.f,d=a.f;o>u;)for(var p,h=l(arguments[u++]),y=f?i(h).concat(f(h)):i(h),m=y.length,v=0;m>v;)p=y[v++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:u},{"../internals/descriptors":19,"../internals/fails":27,"../internals/indexed-object":39,"../internals/object-get-own-property-symbols":62,"../internals/object-keys":65,"../internals/object-property-is-enumerable":66,"../internals/to-object":84}],57:[function(e,t,n){var r,o=e("../internals/an-object"),i=e("../internals/object-define-properties"),s=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),c=e("../internals/html"),l=e("../internals/document-create-element"),u=e("../internals/shared-key"),f=u("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"</"+"script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;y="undefined"!=typeof document?document.domain&&r?h(r):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(r);for(var n=s.length;n--;)delete y.prototype[s[n]];return y()};a[f]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[f]=e):n=y(),void 0===t?n:i(n,t)}},{"../internals/an-object":6,"../internals/document-create-element":20,"../internals/enum-bug-keys":25,"../internals/hidden-keys":36,"../internals/html":37,"../internals/object-define-properties":58,"../internals/shared-key":75}],58:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-define-property"),i=e("../internals/an-object"),s=e("../internals/object-keys");t.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=s(t),a=r.length,c=0;a>c;)o.f(e,n=r[c++],t[n]);return e}},{"../internals/an-object":6,"../internals/descriptors":19,"../internals/object-define-property":59,"../internals/object-keys":65}],59:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/ie8-dom-define"),i=e("../internals/an-object"),s=e("../internals/to-property-key"),a=Object.defineProperty;n.f=r?a:function(e,t,n){if(i(e),t=s(t),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":6,"../internals/descriptors":19,"../internals/ie8-dom-define":38,"../internals/to-property-key":86}],60:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-property-is-enumerable"),i=e("../internals/create-property-descriptor"),s=e("../internals/to-indexed-object"),a=e("../internals/to-property-key"),c=e("../internals/has-own-property"),l=e("../internals/ie8-dom-define"),u=Object.getOwnPropertyDescriptor;n.f=r?u:function(e,t){if(e=s(e),t=a(t),l)try{return u(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},{"../internals/create-property-descriptor":16,"../internals/descriptors":19,"../internals/has-own-property":35,"../internals/ie8-dom-define":38,"../internals/object-property-is-enumerable":66,"../internals/to-indexed-object":81,"../internals/to-property-key":86}],61:[function(e,t,n){var r=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"../internals/enum-bug-keys":25,"../internals/object-keys-internal":64}],62:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],63:[function(e,t,n){var r=e("../internals/has-own-property"),o=e("../internals/is-callable"),i=e("../internals/to-object"),s=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),c=s("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof Object?l:null}},{"../internals/correct-prototype-getter":13,"../internals/has-own-property":35,"../internals/is-callable":43,"../internals/shared-key":75,"../internals/to-object":84}],64:[function(e,t,n){var r=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),i=e("../internals/array-includes").indexOf,s=e("../internals/hidden-keys");t.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)!r(s,n)&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(l,n)||l.push(n));return l}},{"../internals/array-includes":8,"../internals/has-own-property":35,"../internals/hidden-keys":36,"../internals/to-indexed-object":81}],65:[function(e,t,n){var r=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"../internals/enum-bug-keys":25,"../internals/object-keys-internal":64}],66:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},{}],67:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},{"../internals/a-possible-prototype":3,"../internals/an-object":6}],68:[function(e,t,n){var r=e("../internals/is-callable"),o=e("../internals/is-object");t.exports=function(e,t){var n,i;if("string"===t&&r(n=e.toString)&&!o(i=n.call(e)))return i;if(r(n=e.valueOf)&&!o(i=n.call(e)))return i;if("string"!==t&&r(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-callable":43,"../internals/is-object":46}],69:[function(e,t,n){var r=e("../internals/get-built-in"),o=e("../internals/object-get-own-property-names"),i=e("../internals/object-get-own-property-symbols"),s=e("../internals/an-object");t.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=i.f;return n?t.concat(n(e)):t}},{"../internals/an-object":6,"../internals/get-built-in":30,"../internals/object-get-own-property-names":61,"../internals/object-get-own-property-symbols":62}],70:[function(e,t,n){var r=e("../internals/redefine");t.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},{"../internals/redefine":71}],71:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/is-callable"),i=e("../internals/has-own-property"),s=e("../internals/create-non-enumerable-property"),a=e("../internals/set-global"),c=e("../internals/inspect-source"),l=e("../internals/internal-state"),u=e("../internals/function-name").CONFIGURABLE,f=l.get,d=l.enforce,p=String(String).split("String");(t.exports=function(e,t,n,c){var l,f=!!c&&!!c.unsafe,h=!!c&&!!c.enumerable,y=!!c&&!!c.noTargetGet,m=c&&void 0!==c.name?c.name:t;o(n)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||u&&n.name!==m)&&s(n,"name",m),(l=d(n)).source||(l.source=p.join("string"==typeof m?m:""))),e!==r?(f?!y&&e[t]&&(h=!0):delete e[t],h?e[t]=n:s(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||c(this)}))},{"../internals/create-non-enumerable-property":15,"../internals/function-name":29,"../internals/global":34,"../internals/has-own-property":35,"../internals/inspect-source":40,"../internals/internal-state":41,"../internals/is-callable":43,"../internals/set-global":73}],72:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],73:[function(e,t,n){var r=e("../internals/global");t.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global":34}],74:[function(e,t,n){var r=e("../internals/object-define-property").f,o=e("../internals/has-own-property"),i=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"../internals/has-own-property":35,"../internals/object-define-property":59,"../internals/well-known-symbol":92}],75:[function(e,t,n){var r=e("../internals/shared"),o=e("../internals/uid"),i=r("keys");t.exports=function(e){return i[e]||(i[e]=o(e))}},{"../internals/shared":77,"../internals/uid":90}],76:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/set-global"),i="__core-js_shared__",s=r[i]||o(i,{});t.exports=s},{"../internals/global":34,"../internals/set-global":73}],77:[function(e,t,n){var r=e("../internals/is-pure"),o=e("../internals/shared-store");(t.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":47,"../internals/shared-store":76}],78:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),o=e("../internals/to-string"),i=e("../internals/require-object-coercible"),s=function(e){return function(t,n){var s,a,c=o(i(t)),l=r(n),u=c.length;return l<0||l>=u?e?"":void 0:(s=c.charCodeAt(l))<55296||s>56319||l+1===u||(a=c.charCodeAt(l+1))<56320||a>57343?e?c.charAt(l):s:e?c.slice(l,l+2):a-56320+(s-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},{"../internals/require-object-coercible":72,"../internals/to-integer-or-infinity":82,"../internals/to-string":88}],79:[function(e,t,n){"use strict";var r=2147483647,o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",a=Math.floor,c=String.fromCharCode,l=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},f=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);var n,o,i=e.length,f=128,d=0,p=72;for(n=0;n<e.length;n++)(o=e[n])<128&&t.push(c(o));var h=t.length,y=h;for(h&&t.push("-");y<i;){var m=r;for(n=0;n<e.length;n++)(o=e[n])>=f&&o<m&&(m=o);var v=y+1;if(m-f>a((r-d)/v))throw RangeError(s);for(d+=(m-f)*v,f=m,n=0;n<e.length;n++){if((o=e[n])<f&&++d>r)throw RangeError(s);if(o==f){for(var _=d,g=36;;g+=36){var b=g<=p?1:g>=p+26?26:g-p;if(_<b)break;var w=_-b,x=36-b;t.push(c(l(b+w%x))),_=a(w/x)}t.push(c(l(_))),p=u(d,v,y==h),d=0,++y}}++d,++f}return t.join("")};t.exports=function(e){var t,n,r=[],s=e.toLowerCase().replace(i,".").split(".");for(t=0;t<s.length;t++)n=s[t],r.push(o.test(n)?"xn--"+f(n):n);return r.join(".")}},{}],80:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),o=Math.max,i=Math.min;t.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},{"../internals/to-integer-or-infinity":82}],81:[function(e,t,n){var r=e("../internals/indexed-object"),o=e("../internals/require-object-coercible");t.exports=function(e){return r(o(e))}},{"../internals/indexed-object":39,"../internals/require-object-coercible":72}],82:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){var t=+e;return t!=t||0===t?0:(t>0?o:r)(t)}},{}],83:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),o=Math.min;t.exports=function(e){return e>0?o(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":82}],84:[function(e,t,n){var r=e("../internals/require-object-coercible");t.exports=function(e){return Object(r(e))}},{"../internals/require-object-coercible":72}],85:[function(e,t,n){var r=e("../internals/is-object"),o=e("../internals/is-symbol"),i=e("../internals/get-method"),s=e("../internals/ordinary-to-primitive"),a=e("../internals/well-known-symbol")("toPrimitive");t.exports=function(e,t){if(!r(e)||o(e))return e;var n,c=i(e,a);if(c){if(void 0===t&&(t="default"),n=c.call(e,t),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},{"../internals/get-method":33,"../internals/is-object":46,"../internals/is-symbol":48,"../internals/ordinary-to-primitive":68,"../internals/well-known-symbol":92}],86:[function(e,t,n){var r=e("../internals/to-primitive"),o=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return o(t)?t:String(t)}},{"../internals/is-symbol":48,"../internals/to-primitive":85}],87:[function(e,t,n){var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(r)},{"../internals/well-known-symbol":92}],88:[function(e,t,n){var r=e("../internals/classof");t.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},{"../internals/classof":11}],89:[function(e,t,n){t.exports=function(e){try{return String(e)}catch(e){return"Object"}}},{}],90:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+o).toString(36)}},{}],91:[function(e,t,n){var r=e("../internals/native-symbol");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/native-symbol":53}],92:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/shared"),i=e("../internals/has-own-property"),s=e("../internals/uid"),a=e("../internals/native-symbol"),c=e("../internals/use-symbol-as-uid"),l=o("wks"),u=r.Symbol,f=c?u:u&&u.withoutSetter||s;t.exports=function(e){return i(l,e)&&(a||"string"==typeof l[e])||(a&&i(u,e)?l[e]=u[e]:l[e]=f("Symbol."+e)),l[e]}},{"../internals/global":34,"../internals/has-own-property":35,"../internals/native-symbol":53,"../internals/shared":77,"../internals/uid":90,"../internals/use-symbol-as-uid":91}],93:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),o=e("../internals/add-to-unscopables"),i=e("../internals/iterators"),s=e("../internals/internal-state"),a=e("../internals/define-iterator"),c="Array Iterator",l=s.set,u=s.getterFor(c);t.exports=a(Array,"Array",(function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},{"../internals/add-to-unscopables":4,"../internals/define-iterator":18,"../internals/internal-state":41,"../internals/iterators":51,"../internals/to-indexed-object":81}],94:[function(e,t,n){"use strict";var r=e("../internals/string-multibyte").charAt,o=e("../internals/to-string"),i=e("../internals/internal-state"),s=e("../internals/define-iterator"),a="String Iterator",c=i.set,l=i.getterFor(a);s(String,"String",(function(e){c(this,{type:a,string:o(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},{"../internals/define-iterator":18,"../internals/internal-state":41,"../internals/string-multibyte":78,"../internals/to-string":88}],95:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/dom-iterables"),i=e("../internals/dom-token-list-prototype"),s=e("../modules/es.array.iterator"),a=e("../internals/create-non-enumerable-property"),c=e("../internals/well-known-symbol"),l=c("iterator"),u=c("toStringTag"),f=s.values,d=function(e,t){if(e){if(e[l]!==f)try{a(e,l,f)}catch(t){e[l]=f}if(e[u]||a(e,u,t),o[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var p in o)d(r[p]&&r[p].prototype,p);d(i,"DOMTokenList")},{"../internals/create-non-enumerable-property":15,"../internals/dom-iterables":21,"../internals/dom-token-list-prototype":22,"../internals/global":34,"../internals/well-known-symbol":92,"../modules/es.array.iterator":93}],96:[function(e,t,n){"use strict";e("../modules/es.array.iterator");var r=e("../internals/export"),o=e("../internals/get-built-in"),i=e("../internals/native-url"),s=e("../internals/redefine"),a=e("../internals/redefine-all"),c=e("../internals/set-to-string-tag"),l=e("../internals/create-iterator-constructor"),u=e("../internals/internal-state"),f=e("../internals/an-instance"),d=e("../internals/is-callable"),p=e("../internals/has-own-property"),h=e("../internals/function-bind-context"),y=e("../internals/classof"),m=e("../internals/an-object"),v=e("../internals/is-object"),_=e("../internals/to-string"),g=e("../internals/object-create"),b=e("../internals/create-property-descriptor"),w=e("../internals/get-iterator"),x=e("../internals/get-iterator-method"),j=e("../internals/well-known-symbol"),k=o("fetch"),E=o("Request"),S=E&&E.prototype,D=o("Headers"),C=j("iterator"),O="URLSearchParams",P="URLSearchParamsIterator",M=u.set,B=u.getterFor(O),A=u.getterFor(P),T=/\+/g,I=Array(4),L=function(e){return I[e-1]||(I[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},K=function(e){try{return decodeURIComponent(e)}catch(t){return e}},R=function(e){var t=e.replace(T," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(L(n--),K);return t}},F=/[!'()~]|%20/g,N={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},U=function(e){return N[e]},z=function(e){return encodeURIComponent(e).replace(F,U)},H=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:R(r.shift()),value:R(r.join("="))}))},W=function(e){this.entries.length=0,H(this.entries,e)},V=function(e,t){if(e<t)throw TypeError("Not enough arguments")},q=l((function(e,t){M(this,{type:P,iterator:w(B(e).entries),kind:t})}),"Iterator",(function(){var e=A(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),G=function(){f(this,G,O);var e,t,n,r,o,i,s,a,c,l=arguments.length>0?arguments[0]:void 0,u=this,d=[];if(M(u,{type:O,entries:d,updateURL:function(){},updateSearchParams:W}),void 0!==l)if(v(l))if(e=x(l))for(n=(t=w(l,e)).next;!(r=n.call(t)).done;){if((s=(i=(o=w(m(r.value))).next).call(o)).done||(a=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");d.push({key:_(s.value),value:_(a.value)})}else for(c in l)p(l,c)&&d.push({key:c,value:_(l[c])});else H(d,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:_(l))},Y=G.prototype;if(a(Y,{append:function(e,t){V(arguments.length,2);var n=B(this);n.entries.push({key:_(e),value:_(t)}),n.updateURL()},delete:function(e){V(arguments.length,1);for(var t=B(this),n=t.entries,r=_(e),o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){V(arguments.length,1);for(var t=B(this).entries,n=_(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){V(arguments.length,1);for(var t=B(this).entries,n=_(e),r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){V(arguments.length,1);for(var t=B(this).entries,n=_(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){V(arguments.length,1);for(var n,r=B(this),o=r.entries,i=!1,s=_(e),a=_(t),c=0;c<o.length;c++)(n=o[c]).key===s&&(i?o.splice(c--,1):(i=!0,n.value=a));i||o.push({key:s,value:a}),r.updateURL()},sort:function(){var e,t,n,r=B(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(e=i[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=B(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new q(this,"keys")},values:function(){return new q(this,"values")},entries:function(){return new q(this,"entries")}},{enumerable:!0}),s(Y,C,Y.entries,{name:"entries"}),s(Y,"toString",(function(){for(var e,t=B(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(z(e.key)+"="+z(e.value));return n.join("&")}),{enumerable:!0}),c(G,O),r({global:!0,forced:!i},{URLSearchParams:G}),!i&&d(D)){var X=function(e){if(v(e)){var t,n=e.body;if(y(n)===O)return(t=e.headers?new D(e.headers):new D).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),g(e,{body:b(0,String(n)),headers:b(0,t)})}return e};if(d(k)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(e,arguments.length>1?X(arguments[1]):{})}}),d(E)){var $=function(e){return f(this,$,"Request"),new E(e,arguments.length>1?X(arguments[1]):{})};S.constructor=$,$.prototype=S,r({global:!0,forced:!0},{Request:$})}}t.exports={URLSearchParams:G,getState:B}},{"../internals/an-instance":5,"../internals/an-object":6,"../internals/classof":11,"../internals/create-iterator-constructor":14,"../internals/create-property-descriptor":16,"../internals/export":26,"../internals/function-bind-context":28,"../internals/get-built-in":30,"../internals/get-iterator":32,"../internals/get-iterator-method":31,"../internals/has-own-property":35,"../internals/internal-state":41,"../internals/is-callable":43,"../internals/is-object":46,"../internals/native-url":54,"../internals/object-create":57,"../internals/redefine":71,"../internals/redefine-all":70,"../internals/set-to-string-tag":74,"../internals/to-string":88,"../internals/well-known-symbol":92,"../modules/es.array.iterator":93}],97:[function(e,t,n){"use strict";e("../modules/es.string.iterator");var r,o=e("../internals/export"),i=e("../internals/descriptors"),s=e("../internals/native-url"),a=e("../internals/global"),c=e("../internals/object-define-properties"),l=e("../internals/redefine"),u=e("../internals/an-instance"),f=e("../internals/has-own-property"),d=e("../internals/object-assign"),p=e("../internals/array-from"),h=e("../internals/string-multibyte").codeAt,y=e("../internals/string-punycode-to-ascii"),m=e("../internals/to-string"),v=e("../internals/set-to-string-tag"),_=e("../modules/web.url-search-params"),g=e("../internals/internal-state"),b=a.URL,w=_.URLSearchParams,x=_.getState,j=g.set,k=g.getterFor("URL"),E=Math.floor,S=Math.pow,D="Invalid scheme",C="Invalid host",O="Invalid port",P=/[a-z]/i,M=/[\d+-.a-z]/i,B=/\d/,A=/^0x/i,T=/^[0-7]+$/,I=/^\d+$/,L=/^[\da-f]+$/i,K=/[\0\t\n\r #%/:<>?@[\\\]^|]/,R=/[\0\t\n\r #/:<>?@[\\\]^|]/,F=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,N=/[\t\n\r]/g,U=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return C;if(!(n=H(t.slice(1,-1))))return C;e.host=n}else if(J(e)){if(t=y(t),K.test(t))return C;if(null===(n=z(t)))return C;e.host=n}else{if(R.test(t))return C;for(n="",r=p(t),o=0;o<r.length;o++)n+=X(r[o],V);e.host=n}},z=function(e){var t,n,r,o,i,s,a,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=c[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=A.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)s=0;else{if(!(10==i?I:8==i?T:L).test(o))return e;s=parseInt(o,i)}n.push(s)}for(r=0;r<t;r++)if(s=n[r],r==t-1){if(s>=S(256,5-t))return null}else if(s>255)return null;for(a=n.pop(),r=0;r<n.length;r++)a+=n[r]*S(256,3-r);return a},H=function(e){var t,n,r,o,i,s,a,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,u=++l}for(;d();){if(8==l)return;if(":"!=d()){for(t=n=0;n<4&&L.test(d());)t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,l>6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!B.test(d()))return;for(;B.test(d());){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[l]=256*c[l]+o,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(s=l-u,l=7;0!=l&&s>0;)a=c[l],c[l--]=c[u+s-1],c[u+--s]=a;else if(8!=l)return;return c},W=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=E(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},V={},q=d({},V,{" ":1,'"':1,"<":1,">":1,"`":1}),G=d({},q,{"#":1,"?":1,"{":1,"}":1}),Y=d({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return f($,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},Z=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},ee=function(e,t){var n;return 2==e.length&&P.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},te=function(e){var t;return e.length>1&&ee(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&ee(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},oe={},ie={},se={},ae={},ce={},le={},ue={},fe={},de={},pe={},he={},ye={},me={},ve={},_e={},ge={},be={},we={},xe={},je={},ke={},Ee=function(e,t,n,o){var i,s,a,c,l,u=n||oe,d=0,h="",y=!1,m=!1,v=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(F,"")),t=t.replace(N,""),i=p(t);d<=i.length;){switch(s=i[d],u){case oe:if(!s||!P.test(s)){if(n)return D;u=se;continue}h+=s.toLowerCase(),u=ie;break;case ie:if(s&&(M.test(s)||"+"==s||"-"==s||"."==s))h+=s.toLowerCase();else{if(":"!=s){if(n)return D;h="",u=se,d=0;continue}if(n&&(J(e)!=f($,h)||"file"==h&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(J(e)&&$[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?u=ve:J(e)&&o&&o.scheme==e.scheme?u=ae:J(e)?u=fe:"/"==i[d+1]?(u=ce,d++):(e.cannotBeABaseURL=!0,e.path.push(""),u=xe)}break;case se:if(!o||o.cannotBeABaseURL&&"#"!=s)return D;if(o.cannotBeABaseURL&&"#"==s){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,u=ke;break}u="file"==o.scheme?ve:le;continue;case ae:if("/"!=s||"/"!=i[d+1]){u=le;continue}u=de,d++;break;case ce:if("/"==s){u=pe;break}u=we;continue;case le:if(e.scheme=o.scheme,s==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==s||"\\"==s&&J(e))u=ue;else if("?"==s)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",u=je;else{if("#"!=s){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),u=we;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=ke}break;case ue:if(!J(e)||"/"!=s&&"\\"!=s){if("/"!=s){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,u=we;continue}u=pe}else u=de;break;case fe:if(u=de,"/"!=s||"/"!=h.charAt(d+1))continue;d++;break;case de:if("/"!=s&&"\\"!=s){u=pe;continue}break;case pe:if("@"==s){y&&(h="%40"+h),y=!0,a=p(h);for(var _=0;_<a.length;_++){var g=a[_];if(":"!=g||v){var b=X(g,Y);v?e.password+=b:e.username+=b}else v=!0}h=""}else if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&J(e)){if(y&&""==h)return"Invalid authority";d-=p(h).length+1,h="",u=he}else h+=s;break;case he:case ye:if(n&&"file"==e.scheme){u=ge;continue}if(":"!=s||m){if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&J(e)){if(J(e)&&""==h)return C;if(n&&""==h&&(Q(e)||null!==e.port))return;if(c=U(e,h))return c;if(h="",u=be,n)return;continue}"["==s?m=!0:"]"==s&&(m=!1),h+=s}else{if(""==h)return C;if(c=U(e,h))return c;if(h="",u=me,n==ye)return}break;case me:if(!B.test(s)){if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&J(e)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return O;e.port=J(e)&&w===$[e.scheme]?null:w,h=""}if(n)return;u=be;continue}return O}h+=s;break;case ve:if(e.scheme="file","/"==s||"\\"==s)u=_e;else{if(!o||"file"!=o.scheme){u=we;continue}if(s==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==s)e.host=o.host,e.path=o.path.slice(),e.query="",u=je;else{if("#"!=s){te(i.slice(d).join(""))||(e.host=o.host,e.path=o.path.slice(),ne(e)),u=we;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=ke}}break;case _e:if("/"==s||"\\"==s){u=ge;break}o&&"file"==o.scheme&&!te(i.slice(d).join(""))&&(ee(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),u=we;continue;case ge:if(s==r||"/"==s||"\\"==s||"?"==s||"#"==s){if(!n&&ee(h))u=we;else if(""==h){if(e.host="",n)return;u=be}else{if(c=U(e,h))return c;if("localhost"==e.host&&(e.host=""),n)return;h="",u=be}continue}h+=s;break;case be:if(J(e)){if(u=we,"/"!=s&&"\\"!=s)continue}else if(n||"?"!=s)if(n||"#"!=s){if(s!=r&&(u=we,"/"!=s))continue}else e.fragment="",u=ke;else e.query="",u=je;break;case we:if(s==r||"/"==s||"\\"==s&&J(e)||!n&&("?"==s||"#"==s)){if(".."===(l=(l=h).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(ne(e),"/"==s||"\\"==s&&J(e)||e.path.push("")):re(h)?"/"==s||"\\"==s&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&ee(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(s==r||"?"==s||"#"==s))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==s?(e.query="",u=je):"#"==s&&(e.fragment="",u=ke)}else h+=X(s,G);break;case xe:"?"==s?(e.query="",u=je):"#"==s?(e.fragment="",u=ke):s!=r&&(e.path[0]+=X(s,V));break;case je:n||"#"!=s?s!=r&&("'"==s&&J(e)?e.query+="%27":e.query+="#"==s?"%23":X(s,V)):(e.fragment="",u=ke);break;case ke:s!=r&&(e.fragment+=X(s,q))}d++}},Se=function(e){var t,n,r=u(this,Se,"URL"),o=arguments.length>1?arguments[1]:void 0,s=m(e),a=j(r,{type:"URL"});if(void 0!==o)if(o instanceof Se)t=k(o);else if(n=Ee(t={},m(o)))throw TypeError(n);if(n=Ee(a,s,null,t))throw TypeError(n);var c=a.searchParams=new w,l=x(c);l.updateSearchParams(a.query),l.updateURL=function(){a.query=String(c)||null},i||(r.href=Ce.call(r),r.origin=Oe.call(r),r.protocol=Pe.call(r),r.username=Me.call(r),r.password=Be.call(r),r.host=Ae.call(r),r.hostname=Te.call(r),r.port=Ie.call(r),r.pathname=Le.call(r),r.search=Ke.call(r),r.searchParams=Re.call(r),r.hash=Fe.call(r))},De=Se.prototype,Ce=function(){var e=k(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,s=e.path,a=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",Q(e)&&(l+=n+(r?":"+r:"")+"@"),l+=W(o),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(l+="?"+a),null!==c&&(l+="#"+c),l},Oe=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new Se(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&J(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Pe=function(){return k(this).scheme+":"},Me=function(){return k(this).username},Be=function(){return k(this).password},Ae=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},Te=function(){var e=k(this).host;return null===e?"":W(e)},Ie=function(){var e=k(this).port;return null===e?"":String(e)},Le=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ke=function(){var e=k(this).query;return e?"?"+e:""},Re=function(){return k(this).searchParams},Fe=function(){var e=k(this).fragment;return e?"#"+e:""},Ne=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(De,{href:Ne(Ce,(function(e){var t=k(this),n=m(e),r=Ee(t,n);if(r)throw TypeError(r);x(t.searchParams).updateSearchParams(t.query)})),origin:Ne(Oe),protocol:Ne(Pe,(function(e){var t=k(this);Ee(t,m(e)+":",oe)})),username:Ne(Me,(function(e){var t=k(this),n=p(m(e));if(!Z(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=X(n[r],Y)}})),password:Ne(Be,(function(e){var t=k(this),n=p(m(e));if(!Z(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=X(n[r],Y)}})),host:Ne(Ae,(function(e){var t=k(this);t.cannotBeABaseURL||Ee(t,m(e),he)})),hostname:Ne(Te,(function(e){var t=k(this);t.cannotBeABaseURL||Ee(t,m(e),ye)})),port:Ne(Ie,(function(e){var t=k(this);Z(t)||(""==(e=m(e))?t.port=null:Ee(t,e,me))})),pathname:Ne(Le,(function(e){var t=k(this);t.cannotBeABaseURL||(t.path=[],Ee(t,m(e),be))})),search:Ne(Ke,(function(e){var t=k(this);""==(e=m(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ee(t,e,je)),x(t.searchParams).updateSearchParams(t.query)})),searchParams:Ne(Re),hash:Ne(Fe,(function(e){var t=k(this);""!=(e=m(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ee(t,e,ke)):t.fragment=null}))}),l(De,"toJSON",(function(){return Ce.call(this)}),{enumerable:!0}),l(De,"toString",(function(){return Ce.call(this)}),{enumerable:!0}),b){var Ue=b.createObjectURL,ze=b.revokeObjectURL;Ue&&l(Se,"createObjectURL",(function(e){return Ue.apply(b,arguments)})),ze&&l(Se,"revokeObjectURL",(function(e){return ze.apply(b,arguments)}))}v(Se,"URL"),o({global:!0,forced:!s,sham:!i},{URL:Se})},{"../internals/an-instance":5,"../internals/array-from":7,"../internals/descriptors":19,"../internals/export":26,"../internals/global":34,"../internals/has-own-property":35,"../internals/internal-state":41,"../internals/native-url":54,"../internals/object-assign":56,"../internals/object-define-properties":58,"../internals/redefine":71,"../internals/set-to-string-tag":74,"../internals/string-multibyte":78,"../internals/string-punycode-to-ascii":79,"../internals/to-string":88,"../modules/es.string.iterator":94,"../modules/web.url-search-params":96}],98:[function(e,t,n){var r,o,i;r=function(e,t,n,o){var i;t[0]=0;for(var s=1;s<t.length;s++){var a=t[s++],c=t[s]?(t[0]|=a?1:2,n[t[s++]]):t[++s];3===a?o[0]=c:4===a?o[1]=Object.assign(o[1]||{},c):5===a?(o[1]=o[1]||{})[t[++s]]=c:6===a?o[1][t[++s]]+=c+"":a?(i=e.apply(c,r(e,c,n,["",null])),o.push(i),c[0]?t[0]|=2:(t[s-2]=0,t[s]=i)):o.push(c)}return o},o=new Map,i=function(e){var t=o.get(this);return t||(t=new Map,o.set(this,t)),(t=r(this,t.get(e)||(t.set(e,t=function(e){for(var t,n,r=1,o="",i="",s=[0],a=function(e){1===r&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?s.push(0,e,o):3===r&&(e||o)?(s.push(3,e,o),r=2):2===r&&"..."===o&&e?s.push(4,e,0):2===r&&o&&!e?s.push(5,0,!0,o):r>=5&&((o||!e&&5===r)&&(s.push(r,0,o,n),r=6),e&&(s.push(r,e,0,n),r=6)),o=""},c=0;c<e.length;c++){c&&(1===r&&a(),a(c));for(var l=0;l<e[c].length;l++)t=e[c][l],1===r?"<"===t?(a(),s=[s],r=3):o+=t:4===r?"--"===o&&">"===t?(r=1,o=""):o=t+o[0]:i?t===i?i="":o+=t:'"'===t||"'"===t?i=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=o,o=""):"/"===t&&(r<5||">"===e[c][l+1])?(a(),3===r&&(s=s[0]),r=s,(s=s[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):o+=t),3===r&&"!--"===o&&(r=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]},void 0!==t?t.exports=i:self.htm=i},{}],99:[function(e,t,n){var r=e("preact");e("preact/devtools");var o={};function i(e){return e.type===r.Fragment?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var s=[],a=[];function c(){return s.length>0?s[s.length-1]:null}var l=!1;function u(e){return"function"==typeof e.type&&e.type!=r.Fragment}function f(e){for(var t=[e],n=e;null!=n.__o;)t.push(n.__o),n=n.__o;return t.reduce((function(e,t){e+=" in "+i(t);var n=t.__source;return n?e+=" (at "+n.fileName+":"+n.lineNumber+")":l||(l=!0,console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons.")),e+"\n"}),"")}var d="function"==typeof WeakMap,p=r.Component.prototype.setState;r.Component.prototype.setState=function(e,t){return null==this.__v?null==this.state&&console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n'+f(c())):null==this.__P&&console.warn('Can\'t call "this.setState" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+f(this.__v)),p.call(this,e,t)};var h=r.Component.prototype.forceUpdate;function y(e){var t=e.props,n=i(e),r="";for(var o in t)if(t.hasOwnProperty(o)&&"children"!==o){var s=t[o];"function"==typeof s&&(s="function "+(s.displayName||s.name)+"() {}"),s=Object(s)!==s||s.toString?s+"":Object.prototype.toString.call(s),r+=" "+o+"="+JSON.stringify(s)}var a=t.children;return"<"+n+r+(a&&a.length?">..</"+n+">":" />")}r.Component.prototype.forceUpdate=function(e){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+f(c())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+f(this.__v)),h.call(this,e)},function(){!function(){var e=r.options.__b,t=r.options.diffed,n=r.options.__,o=r.options.vnode,i=r.options.__r;r.options.diffed=function(e){u(e)&&a.pop(),s.pop(),t&&t(e)},r.options.__b=function(t){u(t)&&s.push(t),e&&e(t)},r.options.__=function(e,t){a=[],n&&n(e,t)},r.options.vnode=function(e){e.__o=a.length>0?a[a.length-1]:null,o&&o(e)},r.options.__r=function(e){u(e)&&a.push(e),i&&i(e)}}();var e=!1,t=r.options.__b,n=r.options.diffed,c=r.options.vnode,l=r.options.__e,p=r.options.__,h=r.options.__h,m=d?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,v=[];r.options.__e=function(e,t,n){if(t&&t.__c&&"function"==typeof e.then){var r=e;e=new Error("Missing Suspense. The throwing component was: "+i(t));for(var o=t;o;o=o.__)if(o.__c&&o.__c.__c){e=r;break}if(e instanceof Error)throw e}try{l(e,t,n),"function"!=typeof e.then&&setTimeout((function(){throw e}))}catch(e){throw e}},r.options.__=function(e,t){if(!t)throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");var n;switch(t.nodeType){case 1:case 11:case 9:n=!0;break;default:n=!1}if(!n){var r=i(e);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+t+" instead: render(<"+r+" />, "+t+");")}p&&p(e,t)},r.options.__b=function(n){var r=n.type,s=function e(t){return t?"function"==typeof t.type?e(t.__):t:{}}(n.__);if(e=!0,void 0===r)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+y(n)+"\n\n"+f(n));if(null!=r&&"object"==typeof r){if(void 0!==r.__k&&void 0!==r.__e)throw new Error("Invalid type passed to createElement(): "+r+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+i(n)+" = "+y(r)+";\n let vnode = <My"+i(n)+" />;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+f(n));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if("thead"!==r&&"tfoot"!==r&&"tbody"!==r||"table"===s.type?"tr"===r&&"thead"!==s.type&&"tfoot"!==s.type&&"tbody"!==s.type&&"table"!==s.type?console.error("Improper nesting of table. Your <tr> should have a <thead/tbody/tfoot/table> parent."+y(n)+"\n\n"+f(n)):"td"===r&&"tr"!==s.type?console.error("Improper nesting of table. Your <td> should have a <tr> parent."+y(n)+"\n\n"+f(n)):"th"===r&&"tr"!==s.type&&console.error("Improper nesting of table. Your <th> should have a <tr>."+y(n)+"\n\n"+f(n)):console.error("Improper nesting of table. Your <thead/tbody/tfoot> should have a <table> parent."+y(n)+"\n\n"+f(n)),void 0!==n.ref&&"function"!=typeof n.ref&&"object"!=typeof n.ref&&!("$$typeof"in n))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof n.ref+"] instead\n"+y(n)+"\n\n"+f(n));if("string"==typeof n.type)for(var a in n.props)if("o"===a[0]&&"n"===a[1]&&"function"!=typeof n.props[a]&&null!=n.props[a])throw new Error("Component's \""+a+'" property should be a function, but got ['+typeof n.props[a]+"] instead\n"+y(n)+"\n\n"+f(n));if("function"==typeof n.type&&n.type.propTypes){if("Lazy"===n.type.displayName&&m&&!m.lazyPropTypes.has(n.type)){var c="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var l=n.type();m.lazyPropTypes.set(n.type,!0),console.warn(c+"Component wrapped in lazy() is "+i(l))}catch(n){console.warn(c+"We will log the wrapped component's name once it is loaded.")}}var u=n.props;n.type.__f&&delete(u=function(e,t){for(var n in t)e[n]=t[n];return e}({},u)).ref,function(e,t,n,r,i){Object.keys(e).forEach((function(n){var s;try{s=e[n](t,n,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s.message in o||(o[s.message]=!0,console.error("Failed prop type: "+s.message+(i&&"\n"+i()||"")))}))}(n.type.propTypes,u,0,i(n),(function(){return f(n)}))}t&&t(n)},r.options.__h=function(t,n,r){if(!t||!e)throw new Error("Hook can only be invoked from render methods.");h&&h(t,n,r)};var _=function(e,t){return{get:function(){var n="get"+e+t;v&&v.indexOf(n)<0&&(v.push(n),console.warn("getting vnode."+e+" is deprecated, "+t))},set:function(){var n="set"+e+t;v&&v.indexOf(n)<0&&(v.push(n),console.warn("setting vnode."+e+" is not allowed, "+t))}}},g={nodeName:_("nodeName","use vnode.type"),attributes:_("attributes","use vnode.props"),children:_("children","use vnode.props.children")},b=Object.create({},g);r.options.vnode=function(e){var t=e.props;if(null!==e.type&&null!=t&&("__source"in t||"__self"in t)){var n=e.props={};for(var r in t){var o=t[r];"__source"===r?e.__source=o:"__self"===r?e.__self=o:n[r]=o}}e.__proto__=b,c&&c(e)},r.options.diffed=function(t){if(t.__k&&t.__k.forEach((function(e){if(e&&void 0===e.type){delete e.__,delete e.__b;var n=Object.keys(e).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+n+"}.\n\n"+f(t))}})),e=!1,n&&n(t),null!=t.__k)for(var r=[],o=0;o<t.__k.length;o++){var i=t.__k[o];if(i&&null!=i.key){var s=i.key;if(-1!==r.indexOf(s)){console.error('Following component has two or more children with the same key attribute: "'+s+'". This may cause glitches and misbehavior in rendering process. Component: \n\n'+y(t)+"\n\n"+f(t));break}r.push(s)}}}}(),n.resetPropWarnings=function(){o={}}},{preact:101,"preact/devtools":100}],100:[function(e,t,n){var r=e("preact");"undefined"!=typeof window&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.5.15",r.options,{Fragment:r.Fragment,Component:r.Component}),n.addHookName=function(e,t){return r.options.__a&&r.options.__a(t),e}},{preact:101}],101:[function(e,t,n){var r,o,i,s,a,c,l,u,f={},d=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var o,i,s,a={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return v(e,a,o,i,null)}function v(e,t,n,r,s){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++i:s};return null==s&&null!=o.vnode&&o.vnode(a),a}function _(e){return e.children}function g(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!j.__r++||l!==o.debounceRendering)&&((l=o.debounceRendering)||c)(j)}function j(){for(var e;j.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=h({},o)).__v=o.__v+1,M(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),B(n,o),o.__e!=i&&w(o)))}))}function k(e,t,n,r,o,i,s,a,c,l){var u,p,h,y,m,g,w,x=r&&r.__k||d,j=x.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(y=n.__k[u]=null==(y=t[u])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?v(null,y,null,null,y):Array.isArray(y)?v(_,{children:y},null,null,null):y.__b>0?v(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(h=x[u])||h&&y.key==h.key&&y.type===h.type)x[u]=void 0;else for(p=0;p<j;p++){if((h=x[p])&&y.key==h.key&&y.type===h.type){x[p]=void 0;break}h=null}M(e,y,h=h||f,o,i,s,a,c,l),m=y.__e,(p=y.ref)&&h.ref!=p&&(w||(w=[]),h.ref&&w.push(h.ref,null,y),w.push(p,y.__c||m,y)),null!=m?(null==g&&(g=m),"function"==typeof y.type&&y.__k===h.__k?y.__d=c=E(y,c,e):c=S(e,y,h,x,m,c),"function"==typeof n.type&&(n.__d=c)):c&&h.__e==c&&c.parentNode!=e&&(c=b(h))}for(n.__e=g,u=j;u--;)null!=x[u]&&("function"==typeof n.type&&null!=x[u].__e&&x[u].__e==n.__d&&(n.__d=b(r,u+1)),I(x[u],x[u]));if(w)for(u=0;u<w.length;u++)T(w[u],w[++u],w[++u])}function E(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?E(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(e,t,n,r,o,i){var s,a,c;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,c=0;(a=a.nextSibling)&&c<r.length;c+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function D(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function C(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||D(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||D(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?P:O,i):e.removeEventListener(t,i?P:O,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](o.event?o.event(e):e)}function P(e){this.l[e.type+!0](o.event?o.event(e):e)}function M(e,t,n,r,i,s,a,c,l){var u,f,d,p,y,m,v,b,w,x,j,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,c=t.__e=n.__e,t.__h=null,s=[c]),(u=o.__b)&&u(t);try{e:if("function"==typeof E){if(b=t.props,w=(u=E.contextType)&&r[u.__c],x=u?w?w.props.value:u.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:("prototype"in E&&E.prototype.render?t.__c=f=new E(b,x):(t.__c=f=new g(b,x),f.constructor=E,f.render=L),w&&w.sub(f),f.props=b,f.state||(f.state={}),f.context=x,f.__n=r,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,E.getDerivedStateFromProps(b,f.__s))),p=f.props,y=f.state,d)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,x)||t.__v===n.__v){f.props=b,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,y,m)}))}f.context=x,f.props=b,f.state=f.__s,(u=o.__r)&&u(t),f.__d=!1,f.__v=t,f.__P=e,u=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(r=h(h({},r),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(m=f.getSnapshotBeforeUpdate(p,y)),j=null!=u&&u.type===_&&null==u.key?u.props.children:u,k(e,Array.isArray(j)?j:[j],t,n,r,i,s,a,c,l),f.base=t.__e,t.__h=null,f.__h.length&&a.push(f),v&&(f.__E=f.__=null),f.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=A(n.__e,t,n,r,i,s,a,l);(u=o.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=s)&&(t.__e=c,t.__h=!!l,s[s.indexOf(c)]=null),o.__e(e,t,n)}}function B(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function A(e,t,n,o,i,s,a,c){var l,u,d,p=n.props,h=t.props,m=t.type,v=0;if("svg"===m&&(i=!0),null!=s)for(;v<s.length;v++)if((l=s[v])&&(l===e||(m?l.localName==m:3==l.nodeType))){e=l,s[v]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),s=null,c=!1}if(null===m)p===h||c&&e.data===h||(e.data=h);else{if(s=s&&r.call(e.childNodes),u=(p=n.props||f).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!c){if(null!=s)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||C(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||C(e,i,t[i],n[i],r)}(e,h,p,i,c),d)t.__k=[];else if(v=t.props.children,k(e,Array.isArray(v)?v:[v],t,n,o,i&&"foreignObject"!==m,s,a,s?s[0]:n.__k&&b(n,0),c),null!=s)for(v=s.length;v--;)null!=s[v]&&y(s[v]);c||("value"in h&&void 0!==(v=h.value)&&(v!==e.value||"progress"===m&&!v)&&C(e,"value",v,p.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==e.checked&&C(e,"checked",v,p.checked,!1))}return e}function T(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function I(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||T(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&I(r[i],t,"function"!=typeof e.type);n||null==e.__e||y(e.__e),e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function K(e,t,n){var i,s,a;o.__&&o.__(e,t),s=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],M(t,e=(!i&&n||t).__k=m(_,null,[e]),s||f,f,void 0!==t.ownerSVGElement,!i&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,a,!i&&n?n:s?s.__e:t.firstChild,i),B(a,e)}r=d.slice,o={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},i=0,s=function(e){return null!=e&&void 0===e.constructor},g.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},g.prototype.render=_,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,j.__r=0,u=0,n.render=K,n.hydrate=function e(t,n){K(t,n,e)},n.createElement=m,n.h=m,n.Fragment=_,n.createRef=function(){return{current:null}},n.isValidElement=s,n.Component=g,n.cloneElement=function(e,t,n){var o,i,s,a=h({},e.props);for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),v(e.type,a,o||e.key,i||e.ref,null)},n.createContext=function(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},n.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n},n.options=o},{}],102:[function(e,t,n){var r,o,i,s=e("preact"),a=0,c=[],l=s.options.__b,u=s.options.__r,f=s.options.diffed,d=s.options.__c,p=s.options.unmount;function h(e,t){s.options.__h&&s.options.__h(o,e,a||t),a=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function y(e){return a=1,m(k,e)}function m(e,t,n){var i=h(r++,2);return i.t=e,i.__c||(i.__=[n?n(t):k(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=o),i.__}function v(e,t){var n=h(r++,4);!s.options.__s&&j(n.__H,t)&&(n.__=e,n.__H=t,o.__h.push(n))}function _(e,t){var n=h(r++,7);return j(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function g(){c.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(w),e.__H.__h.forEach(x),e.__H.__h=[]}catch(t){e.__H.__h=[],s.options.__e(t,e.__v)}})),c=[]}s.options.__b=function(e){o=null,l&&l(e)},s.options.__r=function(e){u&&u(e),r=0;var t=(o=e.__c).__H;t&&(t.__h.forEach(w),t.__h.forEach(x),t.__h=[])},s.options.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==c.push(t)&&i===s.options.requestAnimationFrame||((i=s.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);b&&(t=requestAnimationFrame(n))})(g)),o=null},s.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(w),e.__h=e.__h.filter((function(e){return!e.__||x(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.options.__e(n,e.__v)}})),d&&d(e,t)},s.options.unmount=function(e){p&&p(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(w)}catch(e){s.options.__e(e,t.__v)}};var b="function"==typeof requestAnimationFrame;function w(e){var t=o;"function"==typeof e.__c&&e.__c(),o=t}function x(e){var t=o;e.__c=e.__(),o=t}function j(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function k(e,t){return"function"==typeof t?t(e):t}n.useState=y,n.useReducer=m,n.useEffect=function(e,t){var n=h(r++,3);!s.options.__s&&j(n.__H,t)&&(n.__=e,n.__H=t,o.__H.__h.push(n))},n.useLayoutEffect=v,n.useRef=function(e){return a=5,_((function(){return{current:e}}),[])},n.useImperativeHandle=function(e,t,n){a=6,v((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},n.useMemo=_,n.useCallback=function(e,t){return a=8,_((function(){return e}),t)},n.useContext=function(e){var t=o.context[e.__c],n=h(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__},n.useDebugValue=function(e,t){s.options.useDebugValue&&s.options.useDebugValue(t?t(e):e)},n.useErrorBoundary=function(e){var t=h(r++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}},{preact:101}],103:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPersonalBundleUrl=n.getPersonalBundleKey=n.uploadsS3Bucket=void 0,n.uploadsS3Bucket="doszone-uploads";function r(e,t,n){const r=n.lastIndexOf("/"),o=n.substr(r+1);return"doszone"===e?"personal/"+t+"/"+o:"personal-v2/"+e+"/"+t+"/"+o}n.getPersonalBundleKey=r,n.getPersonalBundleUrl=function(e,t,n){return"https://doszone-uploads.s3.dualstack.eu-central-1.amazonaws.com/"+r(e,t,n)}},{}],104:[function(e,t,n){"use strict";var r,o;function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(n,"__esModule",{value:!0}),n.ActionBar=void 0;const s=e("../dom"),a=e("../icons"),c=e("./controls");function l(e){if(!0===e.options().noSideBar)return null;let t="text-gray-600";return void 0!==e.requestClientId&&null===e.clientId?t="text-red-800 animate-pulse":e.sideBar&&(t="text-green-400"),(0,s.html)(o||(o=i(['\n <div class="h-6 w-6 my-4 ',' cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n '])),t,(function(){e.sideBar?e.closeSideBar():e.openSideBar()}),a.Icons.DotsHorizontal)}n.ActionBar=function(e){return e.actionBar?(0,s.html)(r||(r=i(['\n <div class="bg-gray-200 shadow w-10 h-full overflow-hidden flex flex-col items-center">\n <'," ..."," />\n <",' column="true" class="flex-grow \n ','" ...'," />\n </div>\n "])),l,e,c.Controls,!0===e.options().noSideBar?"":" border-t-2 border-gray-400",e):null}},{"../dom":110,"../icons":112,"./controls":108}],105:[function(e,t,n){"use strict";var r;e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.ActionExit=void 0;const o=e("preact/hooks"),i=e("../dom"),s=e("../icons");n.ActionExit=function(e){const t=e.options().onExit,[n,a]=(0,o.useState)(!1),[c,l]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{if(!c&&"function"==typeof t)return window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)};function n(t){if(void 0===e.player().ciPromise)return;const n="Please use close button to save progress!";setTimeout((()=>{e.player().layers.notyf.error(n),a(!0)}),16),t.preventDefault(),t.returnValue=n}}),[a,e.player,c,t]),c||"function"!=typeof t?null:(0,i.html)(r||(u=['\n <div class="filter transition-opacity duration-1000 absolute z-50 \n bg-gray-200 opacity-80 '," w-6 h-6 top-0\n ",' rounded-br-md cursor-pointer" onClick=','>\n <div class="h-4 w-4 mt-1 ml-1">\n <',' class="h-4 w-4" />\n </div>\n </div>\n '],f||(f=u.slice(0)),r=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(f)}}))),n?" text-red-500 animate-pulse":"",e.actionBar?"left-10":"left-0",(async function(){a(!1),l(!0);const t=e.player();t.layers.notyf.success("Saving, please wait...");try{await t.layers.save()}catch(e){return void l(!1)}try{await t.stop()}catch(e){console.error(e)}const n=e.options().onExit;void 0!==n&&n(),l(!1)}),s.Icons.XCircle);var u,f}},{"../dom":110,"../icons":112,"core-js/modules/web.dom-collections.iterator.js":95,"preact/hooks":102}],106:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.ActionHide=void 0;const o=e("../dom"),i=e("../icons");n.ActionHide=function(e){return(0,o.html)(r||(t=['\n <div class="filter transition-opacity duration-1000 absolute z-50 \n bg-gray-200 ',"\n w-5 h-12 top-1/2 -mt-6 ",'\n rounded-r-md cursor-pointer" onClick=','>\n <div class="h-4 w-4 my-4">\n <',' class="h-4 w-4" />\n </div>\n </div>\n '],n||(n=t.slice(0)),r=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))),e.actionBar?"":"opacity-80",e.actionBar?"left-10":"left-0",(()=>e.setActionBar(!e.actionBar)),e.actionBar?i.Icons.ChevronLeft:i.Icons.ChevronRight);var t,n}},{"../dom":110,"../icons":112}],107:[function(e,t,n){"use strict";var r,o;function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.Client=void 0;const s=e("preact/hooks"),a=e("../dom"),c=e("../icons"),l=e("../dom");n.Client=function(e){const[t,n]=(0,s.useState)(!1);if(void 0===e.requestClientId&&null===e.clientId)return null;if(null===e.clientId){const o=()=>{void 0!==e.requestClientId&&(n(!0),e.requestClientId(!0).then((t=>{n(!1),e.setClientId(t)})).catch((e=>{n(!1),console.error(e)})))};return(0,a.html)(r||(r=i(['\n <div class="flex flex-row justify-center items-center ','">\n <div class="h-6 w-6 text-red-800 animate-pulse mr-2">\n <',' class="h-6 w-6" />\n </div>\n <div class="border-2 rounded px-4\n ',' \n cursor-pointer" onClick=',">\n Login\n </div>\n </div>\n "])),e.class,c.Icons.UserCircle,t?" text-gray-400 border-gray-400":"text-blue-400 border-blue-400",o)}const u=e.clientId.id;return(0,a.html)(o||(o=i(['\n <div class="flex flex-row justify-center ','">\n <div class="h-6 w-6 text-green-400 mr-2">\n <',' class="h-6 w-6" />\n </div>\n <div class="flex-shrink overflow-hidden overflow-ellipsis">','</div>\n <div class="h-6 w-6 ml-2 cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n </div>\n '])),e.class,c.Icons.UserCircle,u,(async function(){e.closeSideBar();const t=e.player();try{await async function(e){if(!e.ciPromise)return;const t=await e.ciPromise,n=await t.persist();(0,l.downloadFile)(n,"saves.zip","application/zip")}(t)}catch(e){t.layers.notyf.error("Unexpected error"),console.error(e)}}),c.Icons.Download)}},{"../dom":110,"../icons":112,"core-js/modules/web.dom-collections.iterator.js":95,"preact/hooks":102}],108:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.Controls=void 0;const o=e("../dom"),i=e("../icons");n.Controls=function(e){return(0,o.html)(r||(t=['\n <div class="flex '," justify-evenly ",'">\n <div class="h-6 w-6 cursor-pointer"\n onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 w-6 ',' cursor-pointer"\n onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 w-6 ',' cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 w-6 ',' cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 w-6 ',' cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n </div>\n '],n||(n=t.slice(0)),r=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))),e.column?" flex-col":"flex-row",e.class,(function(){e.mirroredControls?(e.setMirroredControls(!1),e.setMobileControls(!1)):e.mobileControls?e.setMirroredControls(!0):e.setMobileControls(!0),e.closeSideBar()}),e.mirroredControls?i.Icons.SwithcHorizontal:e.mobileControls?i.Icons.Mobile:i.Icons.DesktopComputer,e.pause?" text-red-400 animate-pulse":"font-bold",(function(){e.setPause(!e.pause),e.closeSideBar()}),e.pause?i.Icons.Play:i.Icons.Pause,e.mute?" text-green-400":"",(function(){e.setMute(!e.mute),e.closeSideBar()}),e.mute?i.Icons.VolumeOff:i.Icons.VolumeUp,e.keyboard?" text-green-400":"",(function(){e.toggleKeyboard(),e.closeSideBar()}),i.Icons.PencilAlt,e.fullscreen?" text-green-400":"",(function(){e.toggleFullscreen(),e.closeSideBar()}),e.fullscreen?i.Icons.Minimize:i.Icons.Fullscreen);var t,n}},{"../dom":110,"../icons":112}],109:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.SideBar=void 0;const o=e("../dom"),i=e("./client"),s=e("./controls"),a=e("../icons");n.SideBar=function(e){return e.sideBar?(0,o.html)(r||(t=['\n <div class="flex flex-col filter absolute z-50 top-0 bottom-0 right-0 px-8 pt-6 pb-4\n w-full sm:w-80 rounded-l-lg drop-shadow-lg bg-white">\n <div class="transform absolute text-gray-400 hover:text-gray-800\n h-8 w-8 top-1 left-1 cursor-pointer hover:scale-125" onClick=',">\n <",' class="h-8 w-8" />\n </div>\n <',' class="mt-2 mb-2 pb-2 border-b-2 border-green-200" ...'," />\n <",' class="mt-2" ...'," />\n </div>\n "],n||(n=t.slice(0)),r=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))),(()=>{e.closeSideBar()}),a.Icons.XCircle,i.Client,e,s.Controls,e):null;var t,n}},{"../dom":110,"../icons":112,"./client":107,"./controls":108}],110:[function(e,t,n){"use strict";e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.url.js"),e("core-js/modules/web.url-search-params.js");var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.downloadFile=n.click=n.createDiv=n.activeClass=n.primaryClass=n.disabledClass=n.goneClass=n.html=void 0;const o=e("preact"),i=r(e("htm"));n.html=i.default.bind(o.h),n.goneClass="jsdos-player-gone",n.disabledClass="jsdos-player-button-disabled",n.primaryClass="jsdos-player-button-primary",n.activeClass="jsdos-player-button-active",n.createDiv=function(e,t){const n=document.createElement("div");if("string"==typeof e)n.className=e;else for(const t of e)n.classList.add(t);return void 0!==t&&(n.innerHTML=t),n},n.click=function(e,t){for(const n of emulatorsUi.dom.pointers.bind.enders)e.addEventListener(n,(()=>{e.classList.contains("jsdos-player-button-disabled")||t(e)}))};let s=null;n.downloadFile=function(e,t,n){const r=new Blob([e],{type:n});null!==s&&window.URL.revokeObjectURL(s),s=window.URL.createObjectURL(r);const o=document.createElement("a");o.href=s,o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),o.remove()}},{"core-js/modules/web.dom-collections.iterator.js":95,"core-js/modules/web.url-search-params.js":96,"core-js/modules/web.url.js":97,htm:98,preact:101}],111:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(n,"__esModule",{value:!0}),n.hardwareTransportLayerFactory=n.HardwareTransportLayerFactory=void 0;const a=s(e("base64-js")),c=new TextDecoder;class l{constructor(e){r(this,"sessionId",Date.now()+""),r(this,"hardware",void 0),r(this,"alive",!0),r(this,"frameWidth",0),r(this,"frameHeight",0),r(this,"handler",(()=>{})),this.hardware=e}callMain(){this.hardware.sendMessage("wc-install\n"+this.sessionId+"\n"),requestAnimationFrame(this.update.bind(this))}async sendMessageToServer(e,t){if(void 0!==t&&(null==t?void 0:t.sessionId)===this.sessionId)switch(e){case"wc-run":{let e=this.hardware.writeFile("bundle_0.zip",d(t.bundles[0]));if(e.length>0)throw console.error(e),new Error(e);if(void 0!==t.bundles[1]&&(e=this.hardware.writeFile("bundle_1.zip",d(t.bundles[1])),e.length>0))throw console.error(e),new Error(e);const n="wc-run\n";this.hardware.sendMessage(n)}break;case"wc-add-key":this.hardware.addKey(t.key,t.pressed?1:0,t.timeMs);break;case"wc-pause":this.hardware.sendMessage("wc-pause\n"+this.sessionId+"\n");break;case"wc-resume":this.hardware.sendMessage("wc-resume\n"+this.sessionId+"\n");break;case"wc-mute":this.hardware.sendMessage("wc-mute\n"+this.sessionId+"\n");break;case"wc-unmute":this.hardware.sendMessage("wc-unmute\n"+this.sessionId+"\n");break;case"wc-exit":this.alive=!1,this.hardware.sendMessage("wc-exit\n"+this.sessionId+"\n");break;case"wc-mouse-move":this.hardware.mouseMove(t.x,t.y,t.timeMs);break;case"wc-mouse-button":this.hardware.mouseButton(t.button,t.pressed?1:0,t.timeMs);break;case"wc-pack-fs-to-bundle":this.hardware.sendMessage("wc-pack-fs-to-bundle\n"+this.sessionId+"\n");break;default:console.log("Unhandled client message (wc):",e,t)}}initMessageHandler(e){this.handler=e}exit(){this.alive=!1}async onServerMessage(e,t){const n=t||{};switch(e){case"ws-server-ready":{const e=this.hardware.readConfig();this.handler("ws-config",{sessionId:this.sessionId,content:e})}break;case"ws-sound-init":this.handler(e,n),this.handler("ws-server-ready",{sessionId:this.sessionId});break;case"ws-frame-set-size":this.frameWidth=n.width,this.frameHeight=n.height,this.handler(e,n);break;case"ws-sound-push":case"ws-update-lines":console.error(e,"should not be called");break;case"ws-persist":n.bundle=f(n.bundle),this.handler(e,n);break;case"ws-log":case"ws-warn":case"ws-err":case"ws-stdout":void 0!==n.message&&null!==n.message&&n.message.length>0&&(n.message=c.decode(f(n.message))),this.handler(e,n);break;default:this.handler(e,n)}}update(){this.alive&&requestAnimationFrame(this.update.bind(this)),this.updateFrame()}updateFrame(){if(0===this.frameWidth||0===this.frameHeight)return;const e=this.hardware.getFramePayload();if(0===e.length)return;const t=f(e);if(0===t.length)return;const n=[],r=3*this.frameWidth;let o=this.frameHeight,i=-1;for(let e=0;e<this.frameHeight;++e){const s=e===this.frameHeight-1;if(1===t[e]&&-1===i)i=e;else if((s||0===t[e])&&-1!==i){const s=((1===t[e]?e:e-1)-i+1)*r,a=t.slice(o,o+s);n.push({start:i,heapu8:a}),o+=s,i=-1}}this.handler("ws-update-lines",{sessionId:this.sessionId,lines:n})}}class u{constructor(){r(this,"serverMessageHandler",(()=>{})),window.serverMessage=e=>{const t=c.decode(f(e));try{const e=JSON.parse("{"+t.slice(0,-1)+"}");this.serverMessageHandler(e.name,e)}catch(e){throw console.error("Can't parse",t,e),e}},this.createTransportLayer=this.createTransportLayer.bind(this)}createTransportLayer(e){const t=new l(e);return this.serverMessageHandler=t.onServerMessage.bind(t),t.callMain(),t}}function f(e){return a.toByteArray(e)}function d(e){return a.fromByteArray(e)}n.HardwareTransportLayerFactory=u,n.hardwareTransportLayerFactory=new u},{"base64-js":1}],112:[function(e,t,n){"use strict";var r,o,i,s,a,c,l,u,f,d,p,h,y,m,v,_,g;function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(n,"__esModule",{value:!0}),n.Icons=void 0;const w=e("./dom");n.Icons={XCircle:e=>(0,w.html)(r||(r=b(['\n <svg fill="none" class=',' viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />\n </svg>\n'])),e.class),UserCircle:e=>(0,w.html)(o||(o=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z" />\n </svg>\n'])),e.class),Mobile:e=>(0,w.html)(i||(i=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z" />\n </svg>\n'])),e.class),SwithcHorizontal:e=>(0,w.html)(s||(s=b(['\n <svg class="h-6 w-6" fill=',' viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" />\n </svg>\n'])),e.class),DesktopComputer:e=>(0,w.html)(a||(a=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />\n </svg>\n'])),e.class),Pause:e=>(0,w.html)(c||(c=b(["\n <svg className=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2}\n d="M10 9v6m4-6v6m7-3a9 9 0 11-18 0 9 9 0 0118 0z" />\n </svg>\n'])),e.class),Play:e=>(0,w.html)(l||(l=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" />\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />\n </svg>\n'])),e.class),VolumeUp:e=>(0,w.html)(u||(u=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" />\n </svg>\n'])),e.class),VolumeOff:e=>(0,w.html)(f||(f=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z"\n clip-rule="evenodd" />\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2" />\n </svg>\n'])),e.class),PencilAlt:e=>(0,w.html)(d||(d=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />\n </svg>\n'])),e.class),Fullscreen:e=>(0,w.html)(_||(_=b(["\n <svg class=",' fill="none" viewBox="-4 -4 24 24" stroke="currentColor">\n <path\n d="M5.99 8.99c-.28 0-.53.11-.71.29l-3.29 3.29v-1.59c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1h4c.55 0 1-.45 1-1s-.45-1-1-1H3.41L6.7 10.7a1.003 1.003 0 00-.71-1.71zm9-9h-4c-.55 0-1 .45-1 1s.45 1 1 1h1.59l-3.3 3.3a.99.99 0 00-.29.7 1.003 1.003 0 001.71.71l3.29-3.29V5c0 .55.45 1 1 1s1-.45 1-1V1c0-.56-.45-1.01-1-1.01z"\n fill-rule="evenodd">\n </path>\n </svg>\n'])),e.class),Minimize:e=>(0,w.html)(g||(g=b(["\n <svg class=",' fill="none" viewBox="-2 -4 24 24" stroke="currentColor">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8,11H3c-0.55,0-1,0.45-1,1s0.45,1,1,1h2.59l-5.29,5.29C0.11,18.47,0,18.72,0,19\n c0,0.55,0.45,1,1,1c0.28,0,0.53-0.11,0.71-0.29L7,14.41V17c0,0.55,0.45,1,1,1s1-0.45,1-1v-5C9,11.45,8.55,11,8,11z M20,1\n c0-0.55-0.45-1-1-1c-0.28,0-0.53,0.11-0.71,0.29L13,5.59V3c0-0.55-0.45-1-1-1s-1,0.45-1,1v5c0,0.55,0.45,1,1,1h5\n c0.55,0,1-0.45,1-1s-0.45-1-1-1h-2.59l5.29-5.29C19.89,1.53,20,1.28,20,1z" />\n </svg>\n'])),e.class),ChevronLeft:e=>(0,w.html)(p||(p=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />\n </svg>\n'])),e.class),ChevronRight:e=>(0,w.html)(h||(h=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />\n </svg>\n'])),e.class),DotsHorizontal:e=>(0,w.html)(y||(y=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" />\n </svg>\n'])),e.class),Download:e=>(0,w.html)(m||(m=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />\n </svg>\n'])),e.class),Upload:e=>(0,w.html)(v||(v=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" />\n </svg>\n'])),e.class)}},{"./dom":110}],113:[function(e,t,n){"use strict";e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.putPersonalBundle=n.getPersonalBundleUrl=void 0;const r=e("../sls/src/personal"),o=e("./xhr");n.getPersonalBundleUrl=function(e,t,n){return(0,r.getPersonalBundleUrl)(e,t,n)},n.putPersonalBundle=async function(e,t,n,r){const i=await async function(e){const t=new zip.ZipReader(new zip.Uint8ArrayReader(e),{useWebWorkers:!1}),n=await t.getEntries();let r=!0;for(const e of n)if(r=!0===e.directory,!r)break;return t.close(),r}(r);if(i)return void console.warn("Ignore empty changes archive");const s=await(0,o.postObject)("https://kdhkdsv558.execute-api.eu-central-1.amazonaws.com/dev/personal/put?namespace="+e+"&id="+t+"&bundleUrl="+encodeURIComponent(n));if(!s.success)throw new Error("Unable to put personal bundle");const a=JSON.parse(s.payload),c=a.signature,l=a.url;if(c["x-amz-content-sha256"]="UNSIGNED-PAYLOAD",await(0,o.send)("put",l,"text",r.buffer,void 0,c),!(await(0,o.postObject)("https://kdhkdsv558.execute-api.eu-central-1.amazonaws.com/dev/personal/acl?namespace="+e+"&id="+t+"&bundleUrl="+n)).success)throw new Error("Can't set ACL to personal bundle")}},{"../sls/src/personal":103,"./xhr":116,"core-js/modules/web.dom-collections.iterator.js":95}],114:[function(e,t,n){"use strict";var r,o;function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.createPlayerApp=n.PlayerApp=void 0,e("preact/debug");const s=e("preact"),a=e("preact/hooks"),c=e("./dom"),l=e("./components/action-hide"),u=e("./components/action-bar"),f=e("./components/action-exit"),d=e("./components/sidebar");function p(e){const t=e.options().clientId,n="function"==typeof t?e=>t(e):void 0,[o,s]=(0,a.useState)(null),[p,h]=(0,a.useState)(!1),[y,m]=(0,a.useState)(e.player().mobileControls),[v,_]=(0,a.useState)(e.player().mirroredControls),[g,b]=(0,a.useState)(e.player().layers.keyboardVisible),[w,x]=(0,a.useState)(!1),[j,k]=(0,a.useState)(!1),[E,S]=(0,a.useState)(e.player().layers.fullscreen),[D,C]=(0,a.useState)(!0);(0,a.useEffect)((()=>{void 0!==n&&n(!1).then(s).catch(console.error)}),[t,s]),(0,a.useEffect)((()=>{const e=()=>{const e=null!==document.fullscreenElement;S(e),e||C(!0)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}}),[E,S]);const O={player:e.player,options:e.options,clientId:o,setClientId:s,requestClientId:n,mobileControls:y,setMobileControls:t=>{t?e.player().enableMobileControls():e.player().disableMobileControls(),m(t)},mirroredControls:v,setMirroredControls:e=>{O.player().setMirroredControls(e),_(e)},keyboard:g,toggleKeyboard:()=>{b(!e.player().layers.keyboardVisible),e.player().layers.toggleKeyboard()},fullscreen:E,toggleFullscreen:()=>{e.player().layers.toggleFullscreen()},pause:w,setPause:t=>{var n;null===(n=e.player().ciPromise)||void 0===n||n.then((e=>{t?e.pause():e.resume(),x(t)})).catch(console.error)},mute:j,setMute:t=>{var n;null===(n=e.player().ciPromise)||void 0===n||n.then((e=>{t?e.mute():e.unmute(),k(t)})).catch(console.error)},actionBar:D,setActionBar:C,sideBar:p,openSideBar:()=>h(!0),closeSideBar:()=>h(!1)};return(0,c.html)(r||(r=i(['\n <div class="h-full">\n <'," ..."," />\n <"," ..."," />\n <"," ..."," />\n <"," ..."," />\n </div>\n "])),l.ActionHide,O,d.SideBar,O,u.ActionBar,O,f.ActionExit,O)}n.PlayerApp=p,n.createPlayerApp=function(e,t,n){(0,s.render)((0,c.html)(o||(o=i(["<"," player="," options="," />"])),p,(()=>t),(()=>n)),e)}},{"./components/action-bar":104,"./components/action-exit":105,"./components/action-hide":106,"./components/sidebar":109,"./dom":110,"core-js/modules/web.dom-collections.iterator.js":95,preact:101,"preact/debug":99,"preact/hooks":102}],115:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DosPlayer=void 0;const r=e("./dom"),o=e("./hardware-transport-layer"),i=e("./personal"),s=e("./player-app"),a=Dos;function c(e,t){if("none"===(t=t||{}).style)return console.warn("If you don't need the jsdos services, please use emulatros + emulators-ui instead"),a(e,t||{});e.classList.add("flex"),e.classList.add("flex-row"),e.classList.add("relative"),e.classList.add("overflow-hidden");const n=(0,r.createDiv)(["flex","flex-col","flex-grow","overflow-hidden"]),c=(0,r.createDiv)("flex-grow"),l=(0,r.createDiv)("flex-grow-0"),u=(0,r.createDiv)("flex-grow-0");n.appendChild(c),n.appendChild(u),e.appendChild(l),e.appendChild(n),t.layersOptions=t.layersOptions||{},t.layersOptions.keyboardDiv=u,t.layersOptions.fullscreenElement=e,t.layersOptions.optionControls=[];const f=t.hardware;null!=f&&(t.createTransportLayer=()=>o.hardwareTransportLayerFactory.createTransportLayer(f),t.emulatorFunction="backend");const d=a(c,t);(0,s.createPlayerApp)(l,d,t),d.bundleUrl=null;const p=d.run;d.run=async(e,n,r)=>{const o=()=>{var e;return void 0!==(null===(e=t)||void 0===e?void 0:e.clientId)?t.clientId(!1):null},s=await o();void 0===n&&void 0===r&&null!==s&&(n=(0,i.getPersonalBundleUrl)(s.namespace,s.id,e)+"?dt="+Date.now());const a=await p.call(d,e,n,r);d.bundleUrl=e;const c=d.layers.getOnSave();return d.layers.setOnSave((async()=>{const t=await o();if(null!==t){const n=await a.persist();return(0,i.putPersonalBundle)(t.namespace,t.id,e,n)}return c.call(d.layers)})),a};const h=d.stop;return d.stop=()=>(d.bundleUrl=null,h.call(d)),d}n.DosPlayer=c,window.Dos=c},{"./dom":110,"./hardware-transport-layer":111,"./personal":113,"./player-app":114}],116:[function(e,t,n){"use strict";function r(e,t,n,r,o,i){return new Promise(((s,a)=>{const c=new XMLHttpRequest;if(c.responseType=n,c.open(e,t,!0),c.addEventListener("load",(()=>{200!==c.status?a(new Error("Wrong status code "+c.status)):"text"===n?s(c.responseText):"arraybuffer"===n?s(c.response):a(new Error("Unsupported responseType "+n))}),!1),c.addEventListener("error",(()=>{a(new Error("HTTP GET failed for url "+t))}),!1),c.addEventListener("abort",(()=>{a(new Error("HTTP GET canceled for url "+t))}),!1),void 0!==o&&(c.onprogress=e=>{if(e.loaded&&e.total&&e.total>0){const t=Math.round(1e4*e.loaded/e.total)/100;o(t)}}),void 0!==i)for(const e of Object.keys(i))c.setRequestHeader(e,i[e]);c.send(r)}))}function o(e,t,n){return r("post",e,t,n)}e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.post=n.postObject=n.send=void 0,n.send=r,n.postObject=async function(e,t){const n=JSON.parse(await o(e,"text",t));if(n.success)return n;throw new Error("POST Request failed:\n Payload:\n"+JSON.stringify(n.body,null,2))},n.post=o},{"core-js/modules/web.dom-collections.iterator.js":95}]},{},[115]);
1
+ !function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){"use strict";var r=e("./utils");function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),n<o?n=o:o<r&&(r=o),e[o]||(e[o]=[]),e[o].push(i),t++},process:function(){for(var t=r;t<=n;t++)for(var o=e[t],i=0;i<o.length;i++)(0,o[i])()},size:function(){return t}}}t.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),i=r.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=o(),c=!1;function l(){for(c=!0;a.size();){var e=a;a=o(),e.process()}c=!1}function u(){s=setTimeout(l,0)}return{add:function(e,t){!c&&i&&n&&0===a.size()&&u(),a.add(e,t)},force:function(e){c||(void 0===e&&(e=n),s&&(clearTimeout(s),s=null),(e?u:l)())}}}},{"./utils":2}],2:[function(e,t,n){"use strict";(t.exports={}).getOption=function(e,t,n){var r=e[t];return null!=r||void 0===n?r:n}},{}],3:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],4:[function(e,t,n){var r=e("./_wks")("unscopables"),o=Array.prototype;null==o[r]&&e("./_hide")(o,r,{}),t.exports=function(e){o[r][e]=!0}},{"./_hide":34,"./_wks":102}],5:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);t.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},{"./_string-at":83}],6:[function(e,t,n){t.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},{}],7:[function(e,t,n){var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":42}],8:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),i=e("./_to-length");t.exports=[].copyWithin||function(e,t,n){var s=r(this),a=i(s.length),c=o(e,a),l=o(t,a),u=2<arguments.length?n:void 0,f=Math.min((void 0===u?a:o(u,a))-l,a-c),d=1;for(l<c&&c<l+f&&(d=-1,l+=f-1,c+=f-1);0<f--;)l in s?s[c]=s[l]:delete s[c],c+=d,l+=d;return s}},{"./_to-absolute-index":88,"./_to-length":92,"./_to-object":93}],9:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),i=e("./_to-length");t.exports=function(e,t,n){for(var s=r(this),a=i(s.length),c=arguments.length,l=o(1<c?t:void 0,a),u=2<c?n:void 0,f=void 0===u?a:o(u,a);l<f;)s[l++]=e;return s}},{"./_to-absolute-index":88,"./_to-length":92,"./_to-object":93}],10:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_to-length"),i=e("./_to-absolute-index");t.exports=function(e){return function(t,n,s){var a,c=r(t),l=o(c.length),u=i(s,l);if(e&&n!=n){for(;u<l;)if((a=c[u++])!=a)return!0}else for(;u<l;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},{"./_to-absolute-index":88,"./_to-iobject":91,"./_to-length":92}],11:[function(e,t,n){var r=e("./_ctx"),o=e("./_iobject"),i=e("./_to-object"),s=e("./_to-length"),a=e("./_array-species-create");t.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,f=6==e,d=5==e||f,p=t||a;return function(t,a,h){for(var m,y,v=i(t),_=o(v),g=r(a,h,3),b=s(_.length),w=0,x=n?p(t,b):c?p(t,0):void 0;w<b;w++)if((d||w in _)&&(y=g(m=_[w],w,v),e))if(n)x[w]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(u)return!1;return f?-1:l||u?u:x}}},{"./_array-species-create":13,"./_ctx":19,"./_iobject":39,"./_to-length":92,"./_to-object":93}],12:[function(e,t,n){var r=e("./_is-object"),o=e("./_is-array"),i=e("./_wks")("species");t.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":41,"./_is-object":42,"./_wks":102}],13:[function(e,t,n){var r=e("./_array-species-constructor");t.exports=function(e,t){return new(r(e))(t)}},{"./_array-species-constructor":12}],14:[function(e,t,n){"use strict";var r=e("./_a-function"),o=e("./_is-object"),i=e("./_invoke"),s=[].slice,a={};t.exports=Function.bind||function(e){var t=r(this),n=s.call(arguments,1),c=function(){var r=n.concat(s.call(arguments));return this instanceof c?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):i(t,r,e)};return o(t.prototype)&&(c.prototype=t.prototype),c}},{"./_a-function":3,"./_invoke":38,"./_is-object":42}],15:[function(e,t,n){var r=e("./_cof"),o=e("./_wks")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":16,"./_wks":102}],16:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],17:[function(e,t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},{}],18:[function(e,t,n){"use strict";var r=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},{"./_object-dp":55,"./_property-desc":71}],19:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":3}],20:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],21:[function(e,t,n){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":27}],22:[function(e,t,n){var r=e("./_is-object"),o=e("./_global").document,i=r(o)&&r(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":32,"./_is-object":42}],23:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],24:[function(e,t,n){var r=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie");t.exports=function(e){var t=r(e),n=o.f;if(n)for(var s,a=n(e),c=i.f,l=0;a.length>l;)c.call(e,s=a[l++])&&t.push(s);return t}},{"./_object-gops":60,"./_object-keys":63,"./_object-pie":64}],25:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_hide"),s=e("./_redefine"),a=e("./_ctx"),c="prototype",l=function(e,t,n){var u,f,d,p,h=e&l.F,m=e&l.G,y=e&l.S,v=e&l.P,_=e&l.B,g=m?r:y?r[t]||(r[t]={}):(r[t]||{})[c],b=m?o:o[t]||(o[t]={}),w=b[c]||(b[c]={});for(u in m&&(n=t),n)d=((f=!h&&g&&void 0!==g[u])?g:n)[u],p=_&&f?a(d,r):v&&"function"==typeof d?a(Function.call,d):d,g&&s(g,u,d,e&l.U),b[u]!=d&&i(b,u,p),v&&w[u]!=d&&(w[u]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},{"./_core":17,"./_ctx":19,"./_global":32,"./_hide":34,"./_redefine":73}],26:[function(e,t,n){var r=e("./_wks")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},{"./_wks":102}],27:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],28:[function(e,t,n){"use strict";e("./es6.regexp.exec");var r=e("./_redefine"),o=e("./_hide"),i=e("./_fails"),s=e("./_defined"),a=e("./_wks"),c=e("./_regexp-exec"),l=a("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(e,t,n){var d=a(e),p=!i((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!t})):void 0;if(!p||!h||"replace"===e&&!u||"split"===e&&!f){var m=/./[d],y=n(s,d,""[e],(function(e,t,n,r,o){return t.exec===c?p&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=y[0],_=y[1];r(String.prototype,e,v),o(RegExp.prototype,d,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}}},{"./_defined":20,"./_fails":27,"./_hide":34,"./_redefine":73,"./_regexp-exec":75,"./_wks":102,"./es6.regexp.exec":124}],29:[function(e,t,n){"use strict";var r=e("./_an-object");t.exports=function(){var e=r(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":7}],30:[function(e,t,n){var r=e("./_ctx"),o=e("./_iter-call"),i=e("./_is-array-iter"),s=e("./_an-object"),a=e("./_to-length"),c=e("./core.get-iterator-method"),l={},u={};(n=t.exports=function(e,t,n,f,d){var p,h,m,y,v=d?function(){return e}:c(e),_=r(n,f,t?2:1),g=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(p=a(e.length);g<p;g++)if((y=t?_(s(h=e[g])[0],h[1]):_(e[g]))===l||y===u)return y}else for(m=v.call(e);!(h=m.next()).done;)if((y=o(m,_,h.value,t))===l||y===u)return y}).BREAK=l,n.RETURN=u},{"./_an-object":7,"./_ctx":19,"./_is-array-iter":40,"./_iter-call":44,"./_to-length":92,"./core.get-iterator-method":103}],31:[function(e,t,n){t.exports=e("./_shared")("native-function-to-string",Function.toString)},{"./_shared":80}],32:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],33:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],34:[function(e,t,n){var r=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":21,"./_object-dp":55,"./_property-desc":71}],35:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":32}],36:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":21,"./_dom-create":22,"./_fails":27}],37:[function(e,t,n){var r=e("./_is-object"),o=e("./_set-proto").set;t.exports=function(e,t,n){var i,s=t.constructor;return s!==n&&"function"==typeof s&&(i=s.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},{"./_is-object":42,"./_set-proto":76}],38:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],39:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":16}],40:[function(e,t,n){var r=e("./_iterators"),o=e("./_wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},{"./_iterators":49,"./_wks":102}],41:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":16}],42:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],43:[function(e,t,n){var r=e("./_is-object"),o=e("./_cof"),i=e("./_wks")("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},{"./_cof":16,"./_is-object":42,"./_wks":102}],44:[function(e,t,n){var r=e("./_an-object");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},{"./_an-object":7}],45:[function(e,t,n){"use strict";var r=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),s={};e("./_hide")(s,e("./_wks")("iterator"),(function(){return this})),t.exports=function(e,t,n){e.prototype=r(s,{next:o(1,n)}),i(e,t+" Iterator")}},{"./_hide":34,"./_object-create":54,"./_property-desc":71,"./_set-to-string-tag":78,"./_wks":102}],46:[function(e,t,n){"use strict";function r(){return this}var o=e("./_library"),i=e("./_export"),s=e("./_redefine"),a=e("./_hide"),c=e("./_iterators"),l=e("./_iter-create"),u=e("./_set-to-string-tag"),f=e("./_object-gpo"),d=e("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),h="values";t.exports=function(e,t,n,m,y,v,_){function g(e){if(!p&&e in S)return S[e];switch(e){case"keys":case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}}l(n,t,m);var b,w,x,j=t+" Iterator",k=y==h,E=!1,S=e.prototype,C=S[d]||S["@@iterator"]||y&&S[y],D=C||g(y),O=y?k?g("entries"):D:void 0,P="Array"==t&&S.entries||C;if(P&&(x=f(P.call(new e)))!==Object.prototype&&x.next&&(u(x,j,!0),o||"function"==typeof x[d]||a(x,d,r)),k&&C&&C.name!==h&&(E=!0,D=function(){return C.call(this)}),o&&!_||!p&&!E&&S[d]||a(S,d,D),c[t]=D,c[j]=r,y)if(b={values:k?D:g(h),keys:v?D:g("keys"),entries:O},_)for(w in b)w in S||s(S,w,b[w]);else i(i.P+i.F*(p||E),t,b);return b}},{"./_export":25,"./_hide":34,"./_iter-create":45,"./_iterators":49,"./_library":50,"./_object-gpo":61,"./_redefine":73,"./_set-to-string-tag":78,"./_wks":102}],47:[function(e,t,n){var r=e("./_wks")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(e){}return n}},{"./_wks":102}],48:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],49:[function(e,t,n){t.exports={}},{}],50:[function(e,t,n){t.exports=!1},{}],51:[function(e,t,n){function r(e){a(e,o,{value:{i:"O"+ ++c,w:{}}})}var o=e("./_uid")("meta"),i=e("./_is-object"),s=e("./_has"),a=e("./_object-dp").f,c=0,l=Object.isExtensible||function(){return!0},u=!e("./_fails")((function(){return l(Object.preventExtensions({}))})),f=t.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,o)){if(!l(e))return"F";if(!t)return"E";r(e)}return e[o].i},getWeak:function(e,t){if(!s(e,o)){if(!l(e))return!0;if(!t)return!1;r(e)}return e[o].w},onFreeze:function(e){return u&&f.NEED&&l(e)&&!s(e,o)&&r(e),e}}},{"./_fails":27,"./_has":33,"./_is-object":42,"./_object-dp":55,"./_uid":98}],52:[function(e,t,n){var r=e("./_global"),o=e("./_task").set,i=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==e("./_cof")(s);t.exports=function(){function e(){var e,r;for(c&&(e=s.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(e){throw t?l():n=void 0,e}}n=void 0,e&&e.enter()}var t,n,l;if(c)l=function(){s.nextTick(e)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);l=function(){u.then(e)}}else l=function(){o.call(r,e)};else{var f=!0,d=document.createTextNode("");new i(e).observe(d,{characterData:!0}),l=function(){d.data=f=!f}}return function(e){var r={fn:e,next:void 0};n&&(n.next=r),t||(t=r,l()),n=r}}},{"./_cof":16,"./_global":32,"./_task":87}],53:[function(e,t,n){"use strict";var r=e("./_a-function");function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}t.exports.f=function(e){return new o(e)}},{"./_a-function":3}],54:[function(e,t,n){function r(){}var o=e("./_an-object"),i=e("./_object-dps"),s=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),c="prototype",l=function(){var t,n=e("./_dom-create")("iframe"),r=s.length;for(n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l[c][s[r]];return l()};t.exports=Object.create||function(e,t){var n;return null!==e?(r[c]=o(e),n=new r,r[c]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},{"./_an-object":7,"./_dom-create":22,"./_enum-bug-keys":23,"./_html":35,"./_object-dps":56,"./_shared-key":79}],55:[function(e,t,n){var r=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),s=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":7,"./_descriptors":21,"./_ie8-dom-define":36,"./_to-primitive":94}],56:[function(e,t,n){var r=e("./_object-dp"),o=e("./_an-object"),i=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){o(e);for(var n,s=i(t),a=s.length,c=0;c<a;)r.f(e,n=s[c++],t[n]);return e}},{"./_an-object":7,"./_descriptors":21,"./_object-dp":55,"./_object-keys":63}],57:[function(e,t,n){var r=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),s=e("./_to-primitive"),a=e("./_has"),c=e("./_ie8-dom-define"),l=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?l:function(e,t){if(e=i(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},{"./_descriptors":21,"./_has":33,"./_ie8-dom-define":36,"./_object-pie":64,"./_property-desc":71,"./_to-iobject":91,"./_to-primitive":94}],58:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(r(e))}},{"./_object-gopn":59,"./_to-iobject":91}],59:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"./_enum-bug-keys":23,"./_object-keys-internal":62}],60:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],61:[function(e,t,n){var r=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},{"./_has":33,"./_shared-key":79,"./_to-object":93}],62:[function(e,t,n){var r=e("./_has"),o=e("./_to-iobject"),i=e("./_array-includes")(!1),s=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(l,n)||l.push(n));return l}},{"./_array-includes":10,"./_has":33,"./_shared-key":79,"./_to-iobject":91}],63:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"./_enum-bug-keys":23,"./_object-keys-internal":62}],64:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],65:[function(e,t,n){var r=e("./_export"),o=e("./_core"),i=e("./_fails");t.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",s)}},{"./_core":17,"./_export":25,"./_fails":27}],66:[function(e,t,n){var r=e("./_object-gopn"),o=e("./_object-gops"),i=e("./_an-object"),s=e("./_global").Reflect;t.exports=s&&s.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},{"./_an-object":7,"./_global":32,"./_object-gopn":59,"./_object-gops":60}],67:[function(e,t,n){var r=e("./_global").parseFloat,o=e("./_string-trim").trim;t.exports=1/r(e("./_string-ws")+"-0")!=-1/0?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},{"./_global":32,"./_string-trim":85,"./_string-ws":86}],68:[function(e,t,n){var r=e("./_global").parseInt,o=e("./_string-trim").trim,i=e("./_string-ws"),s=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},{"./_global":32,"./_string-trim":85,"./_string-ws":86}],69:[function(e,t,n){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],70:[function(e,t,n){var r=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},{"./_an-object":7,"./_is-object":42,"./_new-promise-capability":53}],71:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],72:[function(e,t,n){var r=e("./_redefine");t.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},{"./_redefine":73}],73:[function(e,t,n){var r=e("./_global"),o=e("./_hide"),i=e("./_has"),s=e("./_uid")("src"),a=e("./_function-to-string"),c="toString",l=(""+a).split(c);e("./_core").inspectSource=function(e){return a.call(e)},(t.exports=function(e,t,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,s)||o(n,s,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},{"./_core":17,"./_function-to-string":31,"./_global":32,"./_has":33,"./_hide":34,"./_uid":98}],74:[function(e,t,n){"use strict";var r=e("./_classof"),o=RegExp.prototype.exec;t.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},{"./_classof":15}],75:[function(e,t,n){"use strict";var r,o,i=e("./_flags"),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,l="lastIndex",u=(r=/a/,o=/b*/g,s.call(r,"a"),s.call(o,"a"),0!==r[l]||0!==o[l]),f=void 0!==/()??/.exec("")[1];(u||f)&&(c=function(e){var t,n,r,o,c=this;return f&&(n=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),u&&(t=c[l]),r=s.call(c,e),u&&r&&(c[l]=c.global?r.index+r[0].length:t),f&&r&&1<r.length&&a.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=c},{"./_flags":29}],76:[function(e,t,n){function r(e,t){if(i(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}var o=e("./_is-object"),i=e("./_an-object");t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,o){try{(o=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(e,t){return r(e,t),n?e.__proto__=t:o(e,t),e}}({},!1):void 0),check:r}},{"./_an-object":7,"./_ctx":19,"./_is-object":42,"./_object-gopd":57}],77:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_object-dp"),i=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t=r[e];i&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_descriptors":21,"./_global":32,"./_object-dp":55,"./_wks":102}],78:[function(e,t,n){var r=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"./_has":33,"./_object-dp":55,"./_wks":102}],79:[function(e,t,n){var r=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return r[e]||(r[e]=o(e))}},{"./_shared":80,"./_uid":98}],80:[function(e,t,n){var r=e("./_core"),o=e("./_global"),i="__core-js_shared__",s=o[i]||(o[i]={});(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":17,"./_global":32,"./_library":50}],81:[function(e,t,n){var r=e("./_an-object"),o=e("./_a-function"),i=e("./_wks")("species");t.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||null==(n=r(s)[i])?t:o(n)}},{"./_a-function":3,"./_an-object":7,"./_wks":102}],82:[function(e,t,n){"use strict";var r=e("./_fails");t.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},{"./_fails":27}],83:[function(e,t,n){var r=e("./_to-integer"),o=e("./_defined");t.exports=function(e){return function(t,n){var i,s,a=String(o(t)),c=r(n),l=a.length;return c<0||l<=c?e?"":void 0:(i=a.charCodeAt(c))<55296||56319<i||c+1===l||(s=a.charCodeAt(c+1))<56320||57343<s?e?a.charAt(c):i:e?a.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},{"./_defined":20,"./_to-integer":90}],84:[function(e,t,n){var r=e("./_is-regexp"),o=e("./_defined");t.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},{"./_defined":20,"./_is-regexp":43}],85:[function(e,t,n){function r(e,t,n){var r={},i=s((function(){return!!a[e]()||"​…"!="​…"[e]()})),c=r[e]=i?t(f):a[e];n&&(r[n]=c),o(o.P+o.F*i,"String",r)}var o=e("./_export"),i=e("./_defined"),s=e("./_fails"),a=e("./_string-ws"),c="["+a+"]",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),f=r.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};t.exports=r},{"./_defined":20,"./_export":25,"./_fails":27,"./_string-ws":86}],86:[function(e,t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],87:[function(e,t,n){function r(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}}function o(e){r.call(e.data)}var i,s,a,c=e("./_ctx"),l=e("./_invoke"),u=e("./_html"),f=e("./_dom-create"),d=e("./_global"),p=d.process,h=d.setImmediate,m=d.clearImmediate,y=d.MessageChannel,v=d.Dispatch,_=0,g={},b="onreadystatechange";h&&m||(h=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return g[++_]=function(){l("function"==typeof e?e:Function(e),t)},i(_),_},m=function(e){delete g[e]},"process"==e("./_cof")(p)?i=function(e){p.nextTick(c(r,e,1))}:v&&v.now?i=function(e){v.now(c(r,e,1))}:y?(a=(s=new y).port2,s.port1.onmessage=o,i=c(a.postMessage,a,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(i=function(e){d.postMessage(e+"","*")},d.addEventListener("message",o,!1)):i=b in f("script")?function(e){u.appendChild(f("script"))[b]=function(){u.removeChild(this),r.call(e)}}:function(e){setTimeout(c(r,e,1),0)}),t.exports={set:h,clear:m}},{"./_cof":16,"./_ctx":19,"./_dom-create":22,"./_global":32,"./_html":35,"./_invoke":38}],88:[function(e,t,n){var r=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},{"./_to-integer":90}],89:[function(e,t,n){var r=e("./_to-integer"),o=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},{"./_to-integer":90,"./_to-length":92}],90:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0<e?o:r)(e)}},{}],91:[function(e,t,n){var r=e("./_iobject"),o=e("./_defined");t.exports=function(e){return r(o(e))}},{"./_defined":20,"./_iobject":39}],92:[function(e,t,n){var r=e("./_to-integer"),o=Math.min;t.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},{"./_to-integer":90}],93:[function(e,t,n){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":20}],94:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":42}],95:[function(e,t,n){"use strict";if(e("./_descriptors")){var r=e("./_library"),o=e("./_global"),i=e("./_fails"),s=e("./_export"),a=e("./_typed"),c=e("./_typed-buffer"),l=e("./_ctx"),u=e("./_an-instance"),f=e("./_property-desc"),d=e("./_hide"),p=e("./_redefine-all"),h=e("./_to-integer"),m=e("./_to-length"),y=e("./_to-index"),v=e("./_to-absolute-index"),_=e("./_to-primitive"),g=e("./_has"),b=e("./_classof"),w=e("./_is-object"),x=e("./_to-object"),j=e("./_is-array-iter"),k=e("./_object-create"),E=e("./_object-gpo"),S=e("./_object-gopn").f,C=e("./core.get-iterator-method"),D=e("./_uid"),O=e("./_wks"),P=e("./_array-methods"),M=e("./_array-includes"),A=e("./_species-constructor"),B=e("./es6.array.iterator"),T=e("./_iterators"),I=e("./_iter-detect"),L=e("./_set-species"),K=e("./_array-fill"),R=e("./_array-copy-within"),F=e("./_object-dp"),N=e("./_object-gopd"),U=F.f,z=N.f,H=o.RangeError,W=o.TypeError,q=o.Uint8Array,V="ArrayBuffer",G="Shared"+V,Y="BYTES_PER_ELEMENT",X="prototype",$=Array[X],J=c.ArrayBuffer,Q=c.DataView,Z=P(0),ee=P(2),te=P(3),ne=P(4),re=P(5),oe=P(6),ie=M(!0),se=M(!1),ae=B.values,ce=B.keys,le=B.entries,ue=$.lastIndexOf,fe=$.reduce,de=$.reduceRight,pe=$.join,he=$.sort,me=$.slice,ye=$.toString,ve=$.toLocaleString,_e=O("iterator"),ge=O("toStringTag"),be=D("typed_constructor"),we=D("def_constructor"),xe=a.CONSTR,je=a.TYPED,ke=a.VIEW,Ee="Wrong length!",Se=P(1,(function(e,t){return Me(A(e,e[we]),t)})),Ce=i((function(){return 1===new q(new Uint16Array([1]).buffer)[0]})),De=!!q&&!!q[X].set&&i((function(){new q(1).set({})})),Oe=function(e,t){var n=h(e);if(n<0||n%t)throw H("Wrong offset!");return n},Pe=function(e){if(w(e)&&je in e)return e;throw W(e+" is not a typed array!")},Me=function(e,t){if(!w(e)||!(be in e))throw W("It is not a typed array constructor!");return new e(t)},Ae=function(e,t){return Be(A(e,e[we]),t)},Be=function(e,t){for(var n=0,r=t.length,o=Me(e,r);n<r;)o[n]=t[n++];return o},Te=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Ie=function(e,t,n){var r,o,i,s,a,c,u=x(e),f=arguments.length,d=1<f?t:void 0,p=void 0!==d,h=C(u);if(null!=h&&!j(h)){for(c=h.call(u),i=[],r=0;!(a=c.next()).done;r++)i.push(a.value);u=i}for(p&&2<f&&(d=l(d,n,2)),r=0,o=m(u.length),s=Me(this,o);r<o;r++)s[r]=p?d(u[r],r):u[r];return s},Le=function(){for(var e=0,t=arguments.length,n=Me(this,t);e<t;)n[e]=arguments[e++];return n},Ke=!!q&&i((function(){ve.call(new q(1))})),Re=function(){return ve.apply(Ke?me.call(Pe(this)):Pe(this),arguments)},Fe={copyWithin:function(e,t,n){return R.call(Pe(this),e,t,2<arguments.length?n:void 0)},every:function(e,t){return ne(Pe(this),e,1<arguments.length?t:void 0)},fill:function(e){return K.apply(Pe(this),arguments)},filter:function(e,t){return Ae(this,ee(Pe(this),e,1<arguments.length?t:void 0))},find:function(e,t){return re(Pe(this),e,1<arguments.length?t:void 0)},findIndex:function(e,t){return oe(Pe(this),e,1<arguments.length?t:void 0)},forEach:function(e,t){Z(Pe(this),e,1<arguments.length?t:void 0)},indexOf:function(e,t){return se(Pe(this),e,1<arguments.length?t:void 0)},includes:function(e,t){return ie(Pe(this),e,1<arguments.length?t:void 0)},join:function(e){return pe.apply(Pe(this),arguments)},lastIndexOf:function(e){return ue.apply(Pe(this),arguments)},map:function(e,t){return Se(Pe(this),e,1<arguments.length?t:void 0)},reduce:function(e){return fe.apply(Pe(this),arguments)},reduceRight:function(e){return de.apply(Pe(this),arguments)},reverse:function(){for(var e,t=this,n=Pe(t).length,r=Math.floor(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t},some:function(e,t){return te(Pe(this),e,1<arguments.length?t:void 0)},sort:function(e){return he.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),r=n.length,o=v(e,r);return new(A(n,n[we]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-o))}},Ne=function(e,t){return Ae(this,me.call(Pe(this),e,t))},Ue=function(e,t){Pe(this);var n=Oe(t,1),r=this.length,o=x(e),i=m(o.length),s=0;if(r<i+n)throw H(Ee);for(;s<i;)this[n+s]=o[s++]},ze={entries:function(){return le.call(Pe(this))},keys:function(){return ce.call(Pe(this))},values:function(){return ae.call(Pe(this))}},He=function(e,t){return w(e)&&e[je]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},We=function(e,t){return He(e,t=_(t,!0))?f(2,e[t]):z(e,t)},qe=function(e,t,n){return!(He(e,t=_(t,!0))&&w(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};xe||(N.f=We,F.f=qe),s(s.S+s.F*!xe,"Object",{getOwnPropertyDescriptor:We,defineProperty:qe}),i((function(){ye.call({})}))&&(ye=ve=function(){return pe.call(this)});var Ve=p({},Fe);p(Ve,ze),d(Ve,_e,ze.values),p(Ve,{slice:Ne,set:Ue,constructor:function(){},toString:ye,toLocaleString:Re}),Te(Ve,"buffer","b"),Te(Ve,"byteOffset","o"),Te(Ve,"byteLength","l"),Te(Ve,"length","e"),U(Ve,ge,{get:function(){return this[je]}}),t.exports=function(e,t,n,c){function l(e,n){U(e,n,{get:function(){return e=n,(r=this._d).v[p](e*t+r.o,Ce);var e,r},set:function(e){return r=n,o=e,i=this._d,c&&(o=(o=Math.round(o))<0?0:255<o?255:255&o),void i.v[h](r*t+i.o,o,Ce);var r,o,i},enumerable:!0})}var f=e+((c=!!c)?"Clamped":"")+"Array",p="get"+e,h="set"+e,v=o[f],_=v||{},g=v&&E(v),x=!v||!a.ABV,j={},C=v&&v[X];x?(v=n((function(e,n,r,o){u(e,v,f,"_d");var i,s,a,c,p=0,h=0;if(w(n)){if(!(n instanceof J||(c=b(n))==V||c==G))return je in n?Be(v,n):Ie.call(v,n);i=n,h=Oe(r,t);var _=n.byteLength;if(void 0===o){if(_%t)throw H(Ee);if((s=_-h)<0)throw H(Ee)}else if(_<(s=m(o)*t)+h)throw H(Ee);a=s/t}else a=y(n),i=new J(s=a*t);for(d(e,"_d",{b:i,o:h,l:s,e:a,v:new Q(i)});p<a;)l(e,p++)})),C=v[X]=k(Ve),d(C,"constructor",v)):i((function(){v(1)}))&&i((function(){new v(-1)}))&&I((function(e){new v,new v(null),new v(1.5),new v(e)}),!0)||(v=n((function(e,n,r,o){var i;return u(e,v,f),w(n)?n instanceof J||(i=b(n))==V||i==G?void 0!==o?new _(n,Oe(r,t),o):void 0!==r?new _(n,Oe(r,t)):new _(n):je in n?Be(v,n):Ie.call(v,n):new _(y(n))})),Z(g!==Function.prototype?S(_).concat(S(g)):S(_),(function(e){e in v||d(v,e,_[e])})),v[X]=C,r||(C.constructor=v));var D=C[_e],O=!!D&&("values"==D.name||null==D.name),P=ze.values;d(v,be,!0),d(C,je,f),d(C,ke,!0),d(C,we,v),(c?new v(1)[ge]==f:ge in C)||U(C,ge,{get:function(){return f}}),j[f]=v,s(s.G+s.W+s.F*(v!=_),j),s(s.S,f,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*i((function(){_.of.call(v,1)})),f,{from:Ie,of:Le}),Y in C||d(C,Y,t),s(s.P,f,Fe),L(f),s(s.P+s.F*De,f,{set:Ue}),s(s.P+s.F*!O,f,ze),r||C.toString==ye||(C.toString=ye),s(s.P+s.F*i((function(){new v(1).slice()})),f,{slice:Ne}),s(s.P+s.F*(i((function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()}))||!i((function(){C.toLocaleString.call([1,2])}))),f,{toLocaleString:Re}),T[f]=O?D:P,r||O||d(C,_e,P)}}else t.exports=function(){}},{"./_an-instance":6,"./_array-copy-within":8,"./_array-fill":9,"./_array-includes":10,"./_array-methods":11,"./_classof":15,"./_ctx":19,"./_descriptors":21,"./_export":25,"./_fails":27,"./_global":32,"./_has":33,"./_hide":34,"./_is-array-iter":40,"./_is-object":42,"./_iter-detect":47,"./_iterators":49,"./_library":50,"./_object-create":54,"./_object-dp":55,"./_object-gopd":57,"./_object-gopn":59,"./_object-gpo":61,"./_property-desc":71,"./_redefine-all":72,"./_set-species":77,"./_species-constructor":81,"./_to-absolute-index":88,"./_to-index":89,"./_to-integer":90,"./_to-length":92,"./_to-object":93,"./_to-primitive":94,"./_typed":97,"./_typed-buffer":96,"./_uid":98,"./_wks":102,"./core.get-iterator-method":103,"./es6.array.iterator":110}],96:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_descriptors"),i=e("./_library"),s=e("./_typed"),a=e("./_hide"),c=e("./_redefine-all"),l=e("./_fails"),u=e("./_an-instance"),f=e("./_to-integer"),d=e("./_to-length"),p=e("./_to-index"),h=e("./_object-gopn").f,m=e("./_object-dp").f,y=e("./_array-fill"),v=e("./_set-to-string-tag"),_="ArrayBuffer",g="DataView",b="prototype",w="Wrong index!",x=r[_],j=r[g],k=r.Math,E=r.RangeError,S=r.Infinity,C=x,D=k.abs,O=k.pow,P=k.floor,M=k.log,A=k.LN2,B="byteLength",T="byteOffset",I=o?"_b":"buffer",L=o?"_l":B,K=o?"_o":T;function R(e,t,n){var r,o,i,s=new Array(n),a=8*n-t-1,c=(1<<a)-1,l=c>>1,u=23===t?O(2,-24)-O(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=D(e))!=e||e===S?(o=e!=e?1:0,r=c):(r=P(M(e)/A),e*(i=O(2,-r))<1&&(r--,i*=2),2<=(e+=1<=r+l?u/i:u*O(2,1-l))*i&&(r++,i/=2),c<=r+l?(o=0,r=c):1<=r+l?(o=(e*i-1)*O(2,t),r+=l):(o=e*O(2,l-1)*O(2,t),r=0));8<=t;s[f++]=255&o,o/=256,t-=8);for(r=r<<t|o,a+=t;0<a;s[f++]=255&r,r/=256,a-=8);return s[--f]|=128*d,s}function F(e,t,n){var r,o=8*n-t-1,i=(1<<o)-1,s=i>>1,a=o-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;0<a;u=256*u+e[c],c--,a-=8);for(r=u&(1<<-a)-1,u>>=-a,a+=t;0<a;r=256*r+e[c],c--,a-=8);if(0===u)u=1-s;else{if(u===i)return r?NaN:l?-S:S;r+=O(2,t),u-=s}return(l?-1:1)*r*O(2,u-t)}function N(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function U(e){return[255&e]}function z(e){return[255&e,e>>8&255]}function H(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function W(e){return R(e,52,8)}function q(e){return R(e,23,4)}function V(e,t,n){m(e[b],t,{get:function(){return this[n]}})}function G(e,t,n,r){var o=p(+n);if(o+t>e[L])throw E(w);var i=e[I]._b,s=o+e[K],a=i.slice(s,s+t);return r?a:a.reverse()}function Y(e,t,n,r,o,i){var s=p(+n);if(s+t>e[L])throw E(w);for(var a=e[I]._b,c=s+e[K],l=r(+o),u=0;u<t;u++)a[c+u]=l[i?u:t-u-1]}if(s.ABV){if(!l((function(){x(1)}))||!l((function(){new x(-1)}))||l((function(){return new x,new x(1.5),new x(NaN),x.name!=_}))){for(var X,$=(x=function(e){return u(this,x),new C(p(e))})[b]=C[b],J=h(C),Q=0;J.length>Q;)(X=J[Q++])in x||a(x,X,C[X]);i||($.constructor=x)}var Z=new j(new x(2)),ee=j[b].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||c(j[b],{setInt8:function(e,t){ee.call(this,e,t<<24>>24)},setUint8:function(e,t){ee.call(this,e,t<<24>>24)}},!0)}else x=function(e){u(this,x,_);var t=p(e);this._b=y.call(new Array(t),0),this[L]=t},j=function(e,t,n){u(this,j,g),u(e,x,g);var r=e[L],o=f(t);if(o<0||r<o)throw E("Wrong offset!");if(r<o+(n=void 0===n?r-o:d(n)))throw E("Wrong length!");this[I]=e,this[K]=o,this[L]=n},o&&(V(x,B,"_l"),V(j,"buffer","_b"),V(j,B,"_l"),V(j,T,"_o")),c(j[b],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e,t){var n=G(this,2,e,t);return(n[1]<<8|n[0])<<16>>16},getUint16:function(e,t){var n=G(this,2,e,t);return n[1]<<8|n[0]},getInt32:function(e,t){return N(G(this,4,e,t))},getUint32:function(e,t){return N(G(this,4,e,t))>>>0},getFloat32:function(e,t){return F(G(this,4,e,t),23,4)},getFloat64:function(e,t){return F(G(this,8,e,t),52,8)},setInt8:function(e,t){Y(this,1,e,U,t)},setUint8:function(e,t){Y(this,1,e,U,t)},setInt16:function(e,t,n){Y(this,2,e,z,t,n)},setUint16:function(e,t,n){Y(this,2,e,z,t,n)},setInt32:function(e,t,n){Y(this,4,e,H,t,n)},setUint32:function(e,t,n){Y(this,4,e,H,t,n)},setFloat32:function(e,t,n){Y(this,4,e,q,t,n)},setFloat64:function(e,t,n){Y(this,8,e,W,t,n)}});v(x,_),v(j,g),a(j[b],s.VIEW,!0),n[_]=x,n[g]=j},{"./_an-instance":6,"./_array-fill":9,"./_descriptors":21,"./_fails":27,"./_global":32,"./_hide":34,"./_library":50,"./_object-dp":55,"./_object-gopn":59,"./_redefine-all":72,"./_set-to-string-tag":78,"./_to-index":89,"./_to-integer":90,"./_to-length":92,"./_typed":97}],97:[function(e,t,n){for(var r,o=e("./_global"),i=e("./_hide"),s=e("./_uid"),a=s("typed_array"),c=s("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[d[f++]])?(i(r.prototype,a,!0),i(r.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:a,VIEW:c}},{"./_global":32,"./_hide":34,"./_uid":98}],98:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+o).toString(36))}},{}],99:[function(e,t,n){var r=e("./_global").navigator;t.exports=r&&r.userAgent||""},{"./_global":32}],100:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_library"),s=e("./_wks-ext"),a=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=!i&&r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},{"./_core":17,"./_global":32,"./_library":50,"./_object-dp":55,"./_wks-ext":101}],101:[function(e,t,n){n.f=e("./_wks")},{"./_wks":102}],102:[function(e,t,n){var r=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,s="function"==typeof i;(t.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},{"./_global":32,"./_shared":80,"./_uid":98}],103:[function(e,t,n){var r=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},{"./_classof":15,"./_core":17,"./_iterators":49,"./_wks":102}],104:[function(e,t,n){var r=e("./_export");r(r.P,"Array",{fill:e("./_array-fill")}),e("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":4,"./_array-fill":9,"./_export":25}],105:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_array-methods")(2);r(r.P+r.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(e,t){return o(this,e,t)}})},{"./_array-methods":11,"./_export":25,"./_strict-method":82}],106:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_array-methods")(0),i=e("./_strict-method")([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(e,t){return o(this,e,t)}})},{"./_array-methods":11,"./_export":25,"./_strict-method":82}],107:[function(e,t,n){"use strict";var r=e("./_ctx"),o=e("./_export"),i=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");o(o.S+o.F*!e("./_iter-detect")((function(e){Array.from(e)})),"Array",{from:function(e,t,n){var o,f,d,p,h=i(e),m="function"==typeof this?this:Array,y=arguments.length,v=1<y?t:void 0,_=void 0!==v,g=0,b=u(h);if(_&&(v=r(v,2<y?n:void 0,2)),null==b||m==Array&&a(b))for(f=new m(o=c(h.length));g<o;g++)l(f,g,_?v(h[g],g):h[g]);else for(p=b.call(h),f=new m;!(d=p.next()).done;g++)l(f,g,_?s(p,v,[d.value,g],!0):d.value);return f.length=g,f}})},{"./_create-property":18,"./_ctx":19,"./_export":25,"./_is-array-iter":40,"./_iter-call":44,"./_iter-detect":47,"./_to-length":92,"./_to-object":93,"./core.get-iterator-method":103}],108:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_array-includes")(!1),i=[].indexOf,s=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!e("./_strict-method")(i)),"Array",{indexOf:function(e,t){return s?i.apply(this,arguments)||0:o(this,e,t)}})},{"./_array-includes":10,"./_export":25,"./_strict-method":82}],109:[function(e,t,n){var r=e("./_export");r(r.S,"Array",{isArray:e("./_is-array")})},{"./_export":25,"./_is-array":41}],110:[function(e,t,n){"use strict";var r=e("./_add-to-unscopables"),o=e("./_iter-step"),i=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,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":4,"./_iter-define":46,"./_iter-step":48,"./_iterators":49,"./_to-iobject":91}],111:[function(e,t,n){var r=e("./_export");r(r.S,"Date",{now:function(){return(new Date).getTime()}})},{"./_export":25}],112:[function(e,t,n){var r=Date.prototype,o="Invalid Date",i="toString",s=r[i],a=r.getTime;new Date(NaN)+""!=o&&e("./_redefine")(r,i,(function(){var e=a.call(this);return e==e?s.call(this):o}))},{"./_redefine":73}],113:[function(e,t,n){var r=e("./_export");r(r.P,"Function",{bind:e("./_bind")})},{"./_bind":14,"./_export":25}],114:[function(e,t,n){var r=e("./_object-dp").f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e("./_descriptors")&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},{"./_descriptors":21,"./_object-dp":55}],115:[function(e,t,n){"use strict";function r(e){var t=c(e,!1);if("string"==typeof t&&2<t.length){var n,r,o,i=(t=g?t.trim():p(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var s,a=t.slice(2),l=0,u=a.length;l<u;l++)if((s=a.charCodeAt(l))<48||o<s)return NaN;return parseInt(a,r)}}return+t}var o=e("./_global"),i=e("./_has"),s=e("./_cof"),a=e("./_inherit-if-required"),c=e("./_to-primitive"),l=e("./_fails"),u=e("./_object-gopn").f,f=e("./_object-gopd").f,d=e("./_object-dp").f,p=e("./_string-trim").trim,h="Number",m=o[h],y=m,v=m.prototype,_=s(e("./_object-create")(v))==h,g="trim"in String.prototype;if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof m&&(_?l((function(){v.valueOf.call(n)})):s(n)!=h)?a(new y(r(t)),n,m):r(t)};for(var b,w=e("./_descriptors")?u(y):"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;w.length>x;x++)i(y,b=w[x])&&!i(m,b)&&d(m,b,f(y,b));(m.prototype=v).constructor=m,e("./_redefine")(o,h,m)}},{"./_cof":16,"./_descriptors":21,"./_fails":27,"./_global":32,"./_has":33,"./_inherit-if-required":37,"./_object-create":54,"./_object-dp":55,"./_object-gopd":57,"./_object-gopn":59,"./_redefine":73,"./_string-trim":85,"./_to-primitive":94}],116:[function(e,t,n){var r=e("./_export");r(r.S,"Number",{isNaN:function(e){return e!=e}})},{"./_export":25}],117:[function(e,t,n){var r=e("./_export"),o=e("./_parse-float");r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},{"./_export":25,"./_parse-float":67}],118:[function(e,t,n){var r=e("./_export"),o=e("./_parse-int");r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},{"./_export":25,"./_parse-int":68}],119:[function(e,t,n){var r=e("./_export");r(r.S+r.F*!e("./_descriptors"),"Object",{defineProperties:e("./_object-dps")})},{"./_descriptors":21,"./_export":25,"./_object-dps":56}],120:[function(e,t,n){var r=e("./_export");r(r.S+r.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":21,"./_export":25,"./_object-dp":55}],121:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-keys");e("./_object-sap")("keys",(function(){return function(e){return o(r(e))}}))},{"./_object-keys":63,"./_object-sap":65,"./_to-object":93}],122:[function(e,t,n){"use strict";var r=e("./_classof"),o={};o[e("./_wks")("toStringTag")]="z",o+""!="[object z]"&&e("./_redefine")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},{"./_classof":15,"./_redefine":73,"./_wks":102}],123:[function(e,t,n){"use strict";function r(){}function o(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t}function i(e,t){if(!e._n){e._n=!0;var n=e._c;x((function(){for(var r=e._v,i=1==e._s,s=0,a=function(t){var n,s,a,c=i?t.ok:t.fail,l=t.resolve,u=t.reject,f=t.domain;try{c?(i||(2==e._h&&R(e),e._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),a=!0)),n===t.promise?u(D("Promise-chain cycle")):(s=o(n))?s.call(n,l,u):l(n)):u(r)}catch(t){f&&!a&&f.exit(),u(t)}};n.length>s;)a(n[s++]);e._c=[],e._n=!1,t&&!e._h&&L(e)}))}}function s(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()),i(t,!0))}var a,c,l,u,f=e("./_library"),d=e("./_global"),p=e("./_ctx"),h=e("./_classof"),m=e("./_export"),y=e("./_is-object"),v=e("./_a-function"),_=e("./_an-instance"),g=e("./_for-of"),b=e("./_species-constructor"),w=e("./_task").set,x=e("./_microtask")(),j=e("./_new-promise-capability"),k=e("./_perform"),E=e("./_user-agent"),S=e("./_promise-resolve"),C="Promise",D=d.TypeError,O=d.process,P=O&&O.versions,M=P&&P.v8||"",A=d[C],B="process"==h(O),T=c=j.f,I=!!function(){try{var t=A.resolve(1),n=(t.constructor={})[e("./_wks")("species")]=function(e){e(r,r)};return(B||"function"==typeof PromiseRejectionEvent)&&t.then(r)instanceof n&&0!==M.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(t){}}(),L=function(e){w.call(d,(function(){var t,n,r,o=e._v,i=K(e);if(i&&(t=k((function(){B?O.emit("unhandledRejection",o,e):(n=d.onunhandledrejection)?n({promise:e,reason:o}):(r=d.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=B||K(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},K=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){w.call(d,(function(){var t;B?O.emit("rejectionHandled",e):(t=d.onrejectionhandled)&&t({promise:e,reason:e._v})}))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw D("Promise can't be resolved itself");(t=o(e))?x((function(){var r={_w:n,_d:!1};try{t.call(e,p(F,r,1),p(s,r,1))}catch(e){s.call(r,e)}})):(n._v=e,n._s=1,i(n,!1))}catch(e){s.call({_w:n,_d:!1},e)}}};I||(A=function(e){_(this,A,C,"_h"),v(e),a.call(this);try{e(p(F,this,1),p(s,this,1))}catch(e){s.call(this,e)}},(a=function(){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")(A.prototype,{then:function(e,t){var n=T(b(this,A));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=B?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&i(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),l=function(){var e=new a;this.promise=e,this.resolve=p(F,e,1),this.reject=p(s,e,1)},j.f=T=function(e){return e===A||e===u?new l:c(e)}),m(m.G+m.W+m.F*!I,{Promise:A}),e("./_set-to-string-tag")(A,C),e("./_set-species")(C),u=e("./_core")[C],m(m.S+m.F*!I,C,{reject:function(e){var t=T(this);return(0,t.reject)(e),t.promise}}),m(m.S+m.F*(f||!I),C,{resolve:function(e){return S(f&&this===u?A:this,e)}}),m(m.S+m.F*!(I&&e("./_iter-detect")((function(e){A.all(e).catch(r)}))),C,{all:function(e){var t=this,n=T(t),r=n.resolve,o=n.reject,i=k((function(){var n=[],i=0,s=1;g(e,!1,(function(e){var a=i++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),o)})),--s||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=T(t),r=n.reject,o=k((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},{"./_a-function":3,"./_an-instance":6,"./_classof":15,"./_core":17,"./_ctx":19,"./_export":25,"./_for-of":30,"./_global":32,"./_is-object":42,"./_iter-detect":47,"./_library":50,"./_microtask":52,"./_new-promise-capability":53,"./_perform":69,"./_promise-resolve":70,"./_redefine-all":72,"./_set-species":77,"./_set-to-string-tag":78,"./_species-constructor":81,"./_task":87,"./_user-agent":99,"./_wks":102}],124:[function(e,t,n){"use strict";var r=e("./_regexp-exec");e("./_export")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},{"./_export":25,"./_regexp-exec":75}],125:[function(e,t,n){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":21,"./_flags":29,"./_object-dp":55}],126:[function(e,t,n){"use strict";var r=e("./_an-object"),o=e("./_to-length"),i=e("./_advance-string-index"),s=e("./_regexp-exec-abstract");e("./_fix-re-wks")("match",1,(function(e,t,n,a){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var c=r(e),l=String(this);if(!c.global)return s(c,l);for(var u,f=c.unicode,d=[],p=c.lastIndex=0;null!==(u=s(c,l));){var h=String(u[0]);""===(d[p]=h)&&(c.lastIndex=i(l,o(c.lastIndex),f)),p++}return 0===p?null:d}]}))},{"./_advance-string-index":5,"./_an-object":7,"./_fix-re-wks":28,"./_regexp-exec-abstract":74,"./_to-length":92}],127:[function(e,t,n){"use strict";function r(t){e("./_redefine")(RegExp.prototype,a,t,!0)}e("./es6.regexp.flags");var o=e("./_an-object"),i=e("./_flags"),s=e("./_descriptors"),a="toString",c=/./[a];e("./_fails")((function(){return"/a/b"!=c.call({source:"a",flags:"b"})}))?r((function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!s&&e instanceof RegExp?i.call(e):void 0)})):c.name!=a&&r((function(){return c.call(this)}))},{"./_an-object":7,"./_descriptors":21,"./_fails":27,"./_flags":29,"./_redefine":73,"./es6.regexp.flags":125}],128:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},{"./_iter-define":46,"./_string-at":83}],129:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_to-length"),i=e("./_string-context"),s="startsWith",a=""[s];r(r.P+r.F*e("./_fails-is-regexp")(s),"String",{startsWith:function(e,t){var n=i(this,e,s),r=o(Math.min(1<arguments.length?t:void 0,n.length)),c=String(e);return a?a.call(n,c,r):n.slice(r,r+c.length)===c}})},{"./_export":25,"./_fails-is-regexp":26,"./_string-context":84,"./_to-length":92}],130:[function(e,t,n){"use strict";function r(e){var t=G[e]=P(F[z]);return t._k=e,t}function o(e,t){k(e);for(var n,r=x(t=C(t)),o=0,i=r.length;o<i;)te(e,n=r[o++],t[n]);return e}function i(e){var t=q.call(this,e=D(e,!0));return!(this===X&&u(G,e)&&!u(Y,e))&&(!(t||!u(this,e)||!u(G,e)||u(this,H)&&this[H][e])||t)}function s(e,t){if(e=C(e),t=D(t,!0),e!==X||!u(G,t)||u(Y,t)){var n=L(e,t);return!n||!u(G,t)||u(e,H)&&e[H][t]||(n.enumerable=!0),n}}function a(e){for(var t,n=R(C(e)),r=[],o=0;n.length>o;)u(G,t=n[o++])||t==H||t==h||r.push(t);return r}function c(e){for(var t,n=e===X,r=R(n?Y:C(e)),o=[],i=0;r.length>i;)!u(G,t=r[i++])||n&&!u(X,t)||o.push(G[t]);return o}var l=e("./_global"),u=e("./_has"),f=e("./_descriptors"),d=e("./_export"),p=e("./_redefine"),h=e("./_meta").KEY,m=e("./_fails"),y=e("./_shared"),v=e("./_set-to-string-tag"),_=e("./_uid"),g=e("./_wks"),b=e("./_wks-ext"),w=e("./_wks-define"),x=e("./_enum-keys"),j=e("./_is-array"),k=e("./_an-object"),E=e("./_is-object"),S=e("./_to-object"),C=e("./_to-iobject"),D=e("./_to-primitive"),O=e("./_property-desc"),P=e("./_object-create"),M=e("./_object-gopn-ext"),A=e("./_object-gopd"),B=e("./_object-gops"),T=e("./_object-dp"),I=e("./_object-keys"),L=A.f,K=T.f,R=M.f,F=l.Symbol,N=l.JSON,U=N&&N.stringify,z="prototype",H=g("_hidden"),W=g("toPrimitive"),q={}.propertyIsEnumerable,V=y("symbol-registry"),G=y("symbols"),Y=y("op-symbols"),X=Object[z],$="function"==typeof F&&!!B.f,J=l.QObject,Q=!J||!J[z]||!J[z].findChild,Z=f&&m((function(){return 7!=P(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=L(X,t);r&&delete X[t],K(e,t,n),r&&e!==X&&K(X,t,r)}:K,ee=$&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof F},te=function(e,t,n){return e===X&&te(Y,t,n),k(e),t=D(t,!0),k(n),u(G,t)?(n.enumerable?(u(e,H)&&e[H][t]&&(e[H][t]=!1),n=P(n,{enumerable:O(0,!1)})):(u(e,H)||K(e,H,O(1,{})),e[H][t]=!0),Z(e,t,n)):K(e,t,n)};$||(p((F=function(e){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=_(0<arguments.length?e:void 0),n=function(e){this===X&&n.call(Y,e),u(this,H)&&u(this[H],t)&&(this[H][t]=!1),Z(this,t,O(1,e))};return f&&Q&&Z(X,t,{configurable:!0,set:n}),r(t)})[z],"toString",(function(){return this._k})),A.f=s,T.f=te,e("./_object-gopn").f=M.f=a,e("./_object-pie").f=i,B.f=c,f&&!e("./_library")&&p(X,"propertyIsEnumerable",i,!0),b.f=function(e){return r(g(e))}),d(d.G+d.W+d.F*!$,{Symbol:F});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)g(ne[re++]);for(var oe=I(g.store),ie=0;oe.length>ie;)w(oe[ie++]);d(d.S+d.F*!$,"Symbol",{for:function(e){return u(V,e+="")?V[e]:V[e]=F(e)},keyFor:function(e){if(!ee(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),d(d.S+d.F*!$,"Object",{create:function(e,t){return void 0===t?P(e):o(P(e),t)},defineProperty:te,defineProperties:o,getOwnPropertyDescriptor:s,getOwnPropertyNames:a,getOwnPropertySymbols:c});var se=m((function(){B.f(1)}));d(d.S+d.F*se,"Object",{getOwnPropertySymbols:function(e){return B.f(S(e))}}),N&&d(d.S+d.F*(!$||m((function(){var e=F();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;o<arguments.length;)r.push(arguments[o++]);if(n=t=r[1],(E(t)||void 0!==e)&&!ee(e))return j(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ee(t))return t}),r[1]=t,U.apply(N,r)}}),F[z][W]||e("./_hide")(F[z],W,F[z].valueOf),v(F,"Symbol"),v(Math,"Math",!0),v(l.JSON,"JSON",!0)},{"./_an-object":7,"./_descriptors":21,"./_enum-keys":24,"./_export":25,"./_fails":27,"./_global":32,"./_has":33,"./_hide":34,"./_is-array":41,"./_is-object":42,"./_library":50,"./_meta":51,"./_object-create":54,"./_object-dp":55,"./_object-gopd":57,"./_object-gopn":59,"./_object-gopn-ext":58,"./_object-gops":60,"./_object-keys":63,"./_object-pie":64,"./_property-desc":71,"./_redefine":73,"./_set-to-string-tag":78,"./_shared":80,"./_to-iobject":91,"./_to-object":93,"./_to-primitive":94,"./_uid":98,"./_wks":102,"./_wks-define":100,"./_wks-ext":101}],131:[function(e,t,n){e("./_typed-array")("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},{"./_typed-array":95}],132:[function(e,t,n){e("./_typed-array")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},{"./_typed-array":95}],133:[function(e,t,n){e("./_typed-array")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},{"./_typed-array":95}],134:[function(e,t,n){var r=e("./_export"),o=e("./_own-keys"),i=e("./_to-iobject"),s=e("./_object-gopd"),a=e("./_create-property");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),c=s.f,l=o(r),u={},f=0;l.length>f;)void 0!==(n=c(r,t=l[f++]))&&a(u,t,n);return u}})},{"./_create-property":18,"./_export":25,"./_object-gopd":57,"./_own-keys":66,"./_to-iobject":91}],135:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":100}],136:[function(e,t,n){for(var r=e("./es6.array.iterator"),o=e("./_object-keys"),i=e("./_redefine"),s=e("./_global"),a=e("./_hide"),c=e("./_iterators"),l=e("./_wks"),u=l("iterator"),f=l("toStringTag"),d=c.Array,p={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},h=o(p),m=0;m<h.length;m++){var y,v=h[m],_=p[v],g=s[v],b=g&&g.prototype;if(b&&(b[u]||a(b,u,d),b[f]||a(b,f,v),c[v]=d,_))for(y in r)b[y]||i(b,y,r[y],!0)}},{"./_global":32,"./_hide":34,"./_iterators":49,"./_object-keys":63,"./_redefine":73,"./_wks":102,"./es6.array.iterator":110}],137:[function(e,t,n){"use strict";var r=t.exports={};r.isIE=function(e){return!(-1===(t=navigator.userAgent.toLowerCase()).indexOf("msie")&&-1===t.indexOf("trident")&&-1===t.indexOf(" edge/")||e&&e!==function(){for(var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:void 0}());var t},r.isLegacyOpera=function(){return!!window.opera}},{}],138:[function(e,t,n){"use strict";(t.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},{}],139:[function(e,t,n){"use strict";var r=e("../browser-detector");t.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function i(e){return o(e).object}return{makeDetectable:function(i,s,a){var c,l,u,f,d,p,h,m,y;function v(){function e(){if("static"===h.position){c.style.setProperty("position","relative",i.important?"important":"");var e=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==o.replace(/[^-\d\.]/g,"")&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style.setProperty(r,"0",i.important?"important":""))};e(t,c,h,"top"),e(t,c,h,"right"),e(t,c,h,"bottom"),e(t,c,h,"left")}}""!==h.position&&(e(),p=!0);var n=document.createElement("object");n.style.cssText=d,n.tabIndex=-1,n.type="text/html",n.setAttribute("aria-hidden","true"),n.onload=function(){p||e(),function e(t,n){if(!t.contentDocument){var r=o(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(){l(c)}))},r.isIE()||(n.data="about:blank"),o(c)&&(c.appendChild(n),o(c).object=n,r.isIE()&&(n.data="about:blank"))}a||(a=s,s=i,i=null),i=i||{},r.isIE(8)?a(s):(c=s,l=a,u=["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"],f=e.important?" !important; ":"; ",d=(u.join(f)+f).trim(),p=!1,h=window.getComputedStyle(c),m=c.offsetWidth,y=c.offsetHeight,o(c).startSize={width:m,height:y},n?n.add(v):v())},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))o(e).object={proxy:n},e.attachEvent("onresize",n);else{var s=i(e);if(!s)throw new Error("Element is not detectable by this strategy.");s.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(o(e)){var t=i(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),o(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(e).checkForObjectDocumentTimeoutId),delete o(e).object)}}}}},{"../browser-detector":137}],140:[function(e,t,n){"use strict";var r=e("../collection-utils").forEach;t.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState,i=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var s=function(){var e=document.createElement("div");e.style.cssText=l(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=l(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,r=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:r}}(),a="erd_scroll_detection_container";function c(e){!function(e,t,n){if(!e.getElementById(t)){var r=n+"_animation",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+l(["display: none"])+" }\n\n",o+=".erd_scroll_detection_container_animation_active { "+l(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",o+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");o.innerHTML=n,o.id=t,r(o)}(o+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",a)}function l(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function f(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function d(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return c(window.document),{makeDetectable:function(e,c,f){function h(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(c),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function m(e){var t=o(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function y(){var e=window.getComputedStyle(c),t={};return t.position=e.position,t.width=c.offsetWidth,t.height=c.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(h("storeStyle invoked."),o(c)){var e=y();o(c).style=e}else h("Aborting because element has been uninstalled")}function _(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function g(){return 2*s.width+1}function b(){return 2*s.height+1}function w(e){return e+10+g()}function x(e){return e+10+b()}function j(e,t,n){var r=d(e),o=p(e),i=w(t),s=x(n),a=2*t+g(),c=2*n+b();r.scrollLeft=i,r.scrollTop=s,o.scrollLeft=a,o.scrollTop=c}function k(){var e=o(c).container;if(!e){(e=document.createElement("div")).className=a,e.style.cssText=l(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(c).container=e,e.className+=" "+a+"_animation_active",c.appendChild(e);var t=function(){o(c).onRendered&&o(c).onRendered()};u(e,"animationstart",t),o(c).onAnimationStart=t}return e}function E(){if(h("Injecting elements"),o(c)){!function(){var n=o(c).style;if("static"===n.position){c.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==o.replace(/[^-\d\.]/g,"")&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,c,n,"top"),r(t,c,n,"right"),r(t,c,n,"bottom"),r(t,c,n,"left")}}();var n=o(c).container;n=n||k();var r,i,f,d,p=s.width,m=s.height,y=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+p))?r+"px":"0"),"top: "+(i=(i=-(1+m))?i+"px":"0"),"right: "+(d=(d=-p)?d+"px":"0"),"bottom: "+(f=(f=-m)?f+"px":"0")])),_=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),g=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=l(["position: absolute","left: 0","top: 0"]),w=l(["position: absolute","width: 200%","height: 200%"]),x=document.createElement("div"),j=document.createElement("div"),E=document.createElement("div"),S=document.createElement("div"),C=document.createElement("div"),D=document.createElement("div");x.dir="ltr",x.style.cssText=y,x.className=a,j.className=a,j.style.cssText=v,E.style.cssText=_,S.style.cssText=b,C.style.cssText=g,D.style.cssText=w,E.appendChild(S),C.appendChild(D),j.appendChild(E),j.appendChild(C),x.appendChild(j),n.appendChild(x),u(E,"scroll",O),u(C,"scroll",P),o(c).onExpandScroll=O,o(c).onShrinkScroll=P}else h("Aborting because element has been uninstalled");function O(){o(c).onExpand&&o(c).onExpand()}function P(){o(c).onShrink&&o(c).onShrink()}}function S(){function s(t,n,r){var o=d(t).childNodes[0],i=w(n),s=x(r);o.style.setProperty("width",i+"px",e.important?"important":""),o.style.setProperty("height",s+"px",e.important?"important":"")}function a(r){var a=c.offsetWidth,u=c.offsetHeight,f=a!==o(c).lastWidth||u!==o(c).lastHeight;h("Storing current size",a,u),_(c,a,u),n.add(0,(function(){if(f)if(o(c))if(l()){if(e.debug){var n=c.offsetWidth,r=c.offsetHeight;n===a&&r===u||t.warn(i.get(c),"Scroll: Size changed before updating detector elements.")}s(c,a,u)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){o(c)?l()?j(c,a,u):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),f&&r&&n.add(2,(function(){o(c)?l()?r():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function l(){return o(c).container}function u(){h("notifyListenersIfNeeded invoked");var e=o(c);return void 0===o(c).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(o(c).listeners,(function(e){e(c)})))}function f(){h("Scroll detected."),m(c)?h("Scroll event fired while unrendered. Ignoring..."):a(u)}if(h("registerListenersAndPositionElements invoked."),o(c)){o(c).onRendered=function(){if(h("startanimation triggered."),m(c))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=d(c),t=p(c);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),a(u))}},o(c).onExpand=f,o(c).onShrink=f;var y=o(c).style;s(c,y.width,y.height)}else h("Aborting because element has been uninstalled")}function C(){if(h("finalizeDomMutation invoked."),o(c)){var e=o(c).style;_(c,e.width,e.height),j(c,e.width,e.height)}else h("Aborting because element has been uninstalled")}function D(){f(c)}function O(){var e;h("Installing..."),o(c).listeners=[],e=y(),o(c).startSize={width:e.width,height:e.height},h("Element start size",o(c).startSize),n.add(0,v),n.add(1,E),n.add(2,S),n.add(3,C),n.add(4,D)}var P,M;f||(f=c,c=e,e=null),e=e||{},h("Making detectable..."),(M=P=c)!==M.ownerDocument.body&&!M.ownerDocument.body.contains(M)||null===window.getComputedStyle(P)?(h("Element is detached"),k(),h("Waiting until element is attached..."),o(c).onRendered=function(){h("Element is now attached"),O()}):O()},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&f(d(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&f(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&f(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:c}}},{"../collection-utils":138}],141:[function(e,t,n){"use strict";var r=e("./collection-utils").forEach,o=e("./element-utils"),i=e("./listener-handler"),s=e("./id-generator"),a=e("./id-handler"),c=e("./reporter"),l=e("./browser-detector"),u=e("batch-processor"),f=e("./state-handler"),d=e("./detection-strategy/object.js"),p=e("./detection-strategy/scroll.js");function h(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function y(e){return e&&1===e.nodeType}function v(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}t.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=s(),_=a({idGenerator:n,stateHandler:f});t=_}var g=e.reporter;g=g||c(!1===g);var b=v(e,"batchProcessor",u({reporter:g})),w={};w.callOnAdd=!!v(e,"callOnAdd",!0),w.debug=!!v(e,"debug",!1);var x,j=i(t),k=o({stateHandler:f}),E=v(e,"strategy","object"),S=v(e,"important",!1),C={reporter:g,batchProcessor:b,stateHandler:f,idHandler:t,important:S};if("scroll"===E&&(l.isLegacyOpera()?(g.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),E="object"):l.isIE(9)&&(g.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),E="object")),"scroll"===E)x=p(C);else{if("object"!==E)throw new Error("Invalid strategy name: "+E);x=d(C)}var D={};return{listenTo:function(e,n,o){function i(e){var t=j.get(e);r(t,(function(t){t(e)}))}function s(e,t,n){j.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(y(n))n=[n];else{if(!h(n))return g.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=m(n)}var a=0,c=v(e,"callOnAdd",w.callOnAdd),l=v(e,"onReady",(function(){})),u=v(e,"debug",w.debug);r(n,(function(e){f.getState(e)||(f.initState(e),t.set(e));var d=t.get(e);if(u&&g.log("Attaching listener to element",d,e),!k.isDetectable(e))return u&&g.log(d,"Not detectable."),k.isBusy(e)?(u&&g.log(d,"System busy making it detectable"),s(c,e,o),D[d]=D[d]||[],void D[d].push((function(){++a===n.length&&l()}))):(u&&g.log(d,"Making detectable..."),k.markBusy(e,!0),x.makeDetectable({debug:u,important:S},e,(function(e){if(u&&g.log(d,"onElementDetectable"),f.getState(e)){k.markAsDetectable(e),k.markBusy(e,!1),x.addListener(e,i),s(c,e,o);var t=f.getState(e);if(t&&t.startSize){var p=e.offsetWidth,h=e.offsetHeight;t.startSize.width===p&&t.startSize.height===h||i(e)}D[d]&&r(D[d],(function(e){e()}))}else u&&g.log(d,"Element uninstalled before being detectable.");delete D[d],++a===n.length&&l()})));u&&g.log(d,"Already detecable, adding listener."),s(c,e,o),a++})),a===n.length&&l()},removeListener:j.removeListener,removeAllListeners:j.removeAllListeners,uninstall:function(e){if(!e)return g.error("At least one element is required.");if(y(e))e=[e];else{if(!h(e))return g.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=m(e)}r(e,(function(e){j.removeAllListeners(e),x.uninstall(e),f.cleanState(e)}))},initDocument:function(e){x.initDocument&&x.initDocument(e)}}}},{"./browser-detector":137,"./collection-utils":138,"./detection-strategy/object.js":139,"./detection-strategy/scroll.js":140,"./element-utils":142,"./id-generator":143,"./id-handler":144,"./listener-handler":145,"./reporter":146,"./state-handler":147,"batch-processor":1}],142:[function(e,t,n){"use strict";t.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},{}],143:[function(e,t,n){"use strict";t.exports=function(){var e=1;return{generate:function(){return e++}}}},{}],144:[function(e,t,n){"use strict";t.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return r.id=o}}}},{}],145:[function(e,t,n){"use strict";t.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0!==r&&t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,i=r.length;o<i;++o)if(r[o]===t){r.splice(o,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},{}],146:[function(e,t,n){"use strict";t.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},{}],147:[function(e,t,n){"use strict";var r="_erd";function o(e){return e[r]}t.exports={initState:function(e){return e[r]={},o(e)},getState:o,cleanState:function(e){delete e[r]}}},{}],148:[function(e,t,n){var r,o;r=window,o=function(){return n={},e.m=t=[function(e,t,n){"use strict";function r(e,t){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}function o(e){return e*(Math.PI/180)}function i(e){m.has(e)&&clearTimeout(m.get(e)),m.set(e,setTimeout(e,100))}function s(e,t,n){for(var r,o=t.split(/[ ,]+/g),i=0;i<o.length;i+=1)r=o[i],e.addEventListener?e.addEventListener(r,n,!1):e.attachEvent&&e.attachEvent(r,n)}function a(e,t,n){for(var r,o=t.split(/[ ,]+/g),i=0;i<o.length;i+=1)r=o[i],e.removeEventListener?e.removeEventListener(r,n):e.detachEvent&&e.detachEvent(r,n)}function c(e){return e.preventDefault(),e.type.match(/^touch/)?e.changedTouches:e}function l(){return{x:void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}}function u(e,t){t.top||t.right||t.bottom||t.left?(e.style.top=t.top,e.style.right=t.right,e.style.bottom=t.bottom,e.style.left=t.left):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function f(e,t,n){var r=y(e);for(var o in r)if(r.hasOwnProperty(o))if("string"==typeof t)r[o]=t+" "+n;else{for(var i="",s=0,a=t.length;s<a;s+=1)i+=t[s]+" "+n+", ";r[o]=i.slice(0,-2)}return r}function d(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function p(e,t){if(e.length)for(var n=0,r=e.length;n<r;n+=1)t(e[n]);else t(e)}n.r(t);var h,m=new Map,y=function(e){var t={};return t[e]="",["webkit","Moz","o"].forEach((function(n){t[n+e.charAt(0).toUpperCase()+e.slice(1)]=""})),t},v=!!("ontouchstart"in window),_=!!window.PointerEvent,g=!!window.MSPointerEvent,b={start:"mousedown",move:"mousemove",end:"mouseup"},w={};function x(){}_?h={start:"pointerdown",move:"pointermove",end:"pointerup, pointercancel"}:g?h={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:v?(h={start:"touchstart",move:"touchmove",end:"touchend, touchcancel"},w=b):h=b,x.prototype.on=function(e,t){var n,r=e.split(/[ ,]+/g);this._handlers_=this._handlers_||{};for(var o=0;o<r.length;o+=1)n=r[o],this._handlers_[n]=this._handlers_[n]||[],this._handlers_[n].push(t);return this},x.prototype.off=function(e,t){return this._handlers_=this._handlers_||{},void 0===e?this._handlers_={}:void 0===t?this._handlers_[e]=null:this._handlers_[e]&&0<=this._handlers_[e].indexOf(t)&&this._handlers_[e].splice(this._handlers_[e].indexOf(t),1),this},x.prototype.trigger=function(e,t){var n,r=this,o=e.split(/[ ,]+/g);r._handlers_=r._handlers_||{};for(var i=0;i<o.length;i+=1)n=o[i],r._handlers_[n]&&r._handlers_[n].length&&r._handlers_[n].forEach((function(e){e.call(r,{type:n,target:r},t)}))},x.prototype.config=function(e){this.options=this.defaults||{},e&&(this.options=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&t.hasOwnProperty(r)?n[r]=t[r]:e.hasOwnProperty(r)&&(n[r]=e[r]);return n}(this.options,e))},x.prototype.bindEvt=function(e,t){var n=this;return n._domHandlers_=n._domHandlers_||{},n._domHandlers_[t]=function(){"function"==typeof n["on"+t]?n["on"+t].apply(n,arguments):console.warn('[WARNING] : Missing "on'+t+'" handler.')},s(e,h[t],n._domHandlers_[t]),w[t]&&s(e,w[t],n._domHandlers_[t]),n},x.prototype.unbindEvt=function(e,t){return this._domHandlers_=this._domHandlers_||{},a(e,h[t],this._domHandlers_[t]),w[t]&&a(e,w[t],this._domHandlers_[t]),delete this._domHandlers_[t],this};var j=x;function k(e,t){return this.identifier=t.identifier,this.position=t.position,this.frontPosition=t.frontPosition,this.collection=e,this.defaults={size:100,threshold:.1,color:"white",fadeTime:250,dataOnly:!1,restJoystick:!0,restOpacity:.5,mode:"dynamic",zone:document.body,lockX:!1,lockY:!1,shape:"circle"},this.config(t),"dynamic"===this.options.mode&&(this.options.restOpacity=0),this.id=k.id,k.id+=1,this.buildEl().stylize(),this.instance={el:this.ui.el,on:this.on.bind(this),off:this.off.bind(this),show:this.show.bind(this),hide:this.hide.bind(this),add:this.addToDom.bind(this),remove:this.removeFromDom.bind(this),destroy:this.destroy.bind(this),setPosition:this.setPosition.bind(this),resetDirection:this.resetDirection.bind(this),computeDirection:this.computeDirection.bind(this),trigger:this.trigger.bind(this),position:this.position,frontPosition:this.frontPosition,ui:this.ui,identifier:this.identifier,id:this.id,options:this.options},this.instance}k.prototype=new j,(k.constructor=k).id=0,k.prototype.buildEl=function(e){return this.ui={},this.options.dataOnly||(this.ui.el=document.createElement("div"),this.ui.back=document.createElement("div"),this.ui.front=document.createElement("div"),this.ui.el.className="nipple collection_"+this.collection.id,this.ui.back.className="back",this.ui.front.className="front",this.ui.el.setAttribute("id","nipple_"+this.collection.id+"_"+this.id),this.ui.el.appendChild(this.ui.back),this.ui.el.appendChild(this.ui.front)),this},k.prototype.stylize=function(){if(this.options.dataOnly)return this;var e=this.options.fadeTime+"ms",t=function(){var e=y("borderRadius");for(var t in e)e.hasOwnProperty(t)&&(e[t]="50%");return e}(),n=f("transition","opacity",e),r={};return r.el={position:"absolute",opacity:this.options.restOpacity,display:"block",zIndex:999},r.back={position:"absolute",display:"block",width:this.options.size+"px",height:this.options.size+"px",marginLeft:-this.options.size/2+"px",marginTop:-this.options.size/2+"px",background:this.options.color,opacity:".5"},r.front={width:this.options.size/2+"px",height:this.options.size/2+"px",position:"absolute",display:"block",marginLeft:-this.options.size/4+"px",marginTop:-this.options.size/4+"px",background:this.options.color,opacity:".5"},d(r.el,n),"circle"===this.options.shape&&d(r.back,t),d(r.front,t),this.applyStyles(r),this},k.prototype.applyStyles=function(e){for(var t in this.ui)if(this.ui.hasOwnProperty(t))for(var n in e[t])this.ui[t].style[n]=e[t][n];return this},k.prototype.addToDom=function(){return this.options.dataOnly||document.body.contains(this.ui.el)||this.options.zone.appendChild(this.ui.el),this},k.prototype.removeFromDom=function(){return this.options.dataOnly||!document.body.contains(this.ui.el)||this.options.zone.removeChild(this.ui.el),this},k.prototype.destroy=function(){clearTimeout(this.removeTimeout),clearTimeout(this.showTimeout),clearTimeout(this.restTimeout),this.trigger("destroyed",this.instance),this.removeFromDom(),this.off()},k.prototype.show=function(e){var t=this;return t.options.dataOnly||(clearTimeout(t.removeTimeout),clearTimeout(t.showTimeout),clearTimeout(t.restTimeout),t.addToDom(),t.restCallback(),setTimeout((function(){t.ui.el.style.opacity=1}),0),t.showTimeout=setTimeout((function(){t.trigger("shown",t.instance),"function"==typeof e&&e.call(this)}),t.options.fadeTime)),t},k.prototype.hide=function(e){var t=this;return t.options.dataOnly||(t.ui.el.style.opacity=t.options.restOpacity,clearTimeout(t.removeTimeout),clearTimeout(t.showTimeout),clearTimeout(t.restTimeout),t.removeTimeout=setTimeout((function(){var n="dynamic"===t.options.mode?"none":"block";t.ui.el.style.display=n,"function"==typeof e&&e.call(t),t.trigger("hidden",t.instance)}),t.options.fadeTime),t.options.restJoystick&&t.setPosition(e,{x:0,y:0})),t},k.prototype.setPosition=function(e,t){var n=this;n.frontPosition={x:t.x,y:t.y};var r=n.options.fadeTime+"ms",o={};o.front=f("transition",["top","left"],r);var i={front:{}};i.front={left:n.frontPosition.x+"px",top:n.frontPosition.y+"px"},n.applyStyles(o),n.applyStyles(i),n.restTimeout=setTimeout((function(){"function"==typeof e&&e.call(n),n.restCallback()}),n.options.fadeTime)},k.prototype.restCallback=function(){var e={};e.front=f("transition","none",""),this.applyStyles(e),this.trigger("rested",this.instance)},k.prototype.resetDirection=function(){this.direction={x:!1,y:!1,angle:!1}},k.prototype.computeDirection=function(e){var t,n,r,o=e.angle.radian,i=Math.PI/4,s=Math.PI/2;if(i<o&&o<3*i&&!e.lockX?t="up":-i<o&&o<=i&&!e.lockY?t="left":3*-i<o&&o<=-i&&!e.lockX?t="down":e.lockY||(t="right"),e.lockY||(n=-s<o&&o<s?"left":"right"),e.lockX||(r=0<o?"up":"down"),e.force>this.options.threshold){var a,c={};for(a in this.direction)this.direction.hasOwnProperty(a)&&(c[a]=this.direction[a]);var l={};for(a in this.direction={x:n,y:r,angle:t},e.direction=this.direction,c)c[a]===this.direction[a]&&(l[a]=!0);if(l.x&&l.y&&l.angle)return e;l.x&&l.y||this.trigger("plain",e),l.x||this.trigger("plain:"+n,e),l.y||this.trigger("plain:"+r,e),l.angle||this.trigger("dir dir:"+t,e)}else this.resetDirection();return e};var E=k;function S(e,t){return this.nipples=[],this.idles=[],this.actives=[],this.ids=[],this.pressureIntervals={},this.manager=e,this.id=S.id,S.id+=1,this.defaults={zone:document.body,multitouch:!1,maxNumberOfNipples:10,mode:"dynamic",position:{top:0,left:0},catchDistance:200,size:100,threshold:.1,color:"white",fadeTime:250,dataOnly:!1,restJoystick:!0,restOpacity:.5,lockX:!1,lockY:!1,shape:"circle",dynamicPage:!1,follow:!1},this.config(t),"static"!==this.options.mode&&"semi"!==this.options.mode||(this.options.multitouch=!1),this.options.multitouch||(this.options.maxNumberOfNipples=1),this.updateBox(),this.prepareNipples(),this.bindings(),this.begin(),this.nipples}S.prototype=new j,(S.constructor=S).id=0,S.prototype.prepareNipples=function(){var e=this.nipples;e.on=this.on.bind(this),e.off=this.off.bind(this),e.options=this.options,e.destroy=this.destroy.bind(this),e.ids=this.ids,e.id=this.id,e.processOnMove=this.processOnMove.bind(this),e.processOnEnd=this.processOnEnd.bind(this),e.get=function(t){if(void 0===t)return e[0];for(var n=0,r=e.length;n<r;n+=1)if(e[n].identifier===t)return e[n];return!1}},S.prototype.bindings=function(){this.bindEvt(this.options.zone,"start"),this.options.zone.style.touchAction="none",this.options.zone.style.msTouchAction="none"},S.prototype.begin=function(){var e=this.options;if("static"===e.mode){var t=this.createNipple(e.position,this.manager.getIdentifier());t.add(),this.idles.push(t)}},S.prototype.createNipple=function(e,t){var n=this.manager.scroll,r={},o=this.options;if(e.x&&e.y)r={x:e.x-(n.x+this.box.left),y:e.y-(n.y+this.box.top)};else if(e.top||e.right||e.bottom||e.left){var i=document.createElement("DIV");i.style.display="hidden",i.style.top=e.top,i.style.right=e.right,i.style.bottom=e.bottom,i.style.left=e.left,i.style.position="absolute",o.zone.appendChild(i);var s=i.getBoundingClientRect();o.zone.removeChild(i),r=e,e={x:s.left+n.x,y:s.top+n.y}}var a=new E(this,{color:o.color,size:o.size,threshold:o.threshold,fadeTime:o.fadeTime,dataOnly:o.dataOnly,restJoystick:o.restJoystick,restOpacity:o.restOpacity,mode:o.mode,identifier:t,position:e,zone:o.zone,frontPosition:{x:0,y:0},shape:o.shape});return o.dataOnly||(u(a.ui.el,r),u(a.ui.front,a.frontPosition)),this.nipples.push(a),this.trigger("added "+a.identifier+":added",a),this.manager.trigger("added "+a.identifier+":added",a),this.bindNipple(a),a},S.prototype.updateBox=function(){this.box=this.options.zone.getBoundingClientRect()},S.prototype.bindNipple=function(e){function t(e,t){n=e.type+" "+t.id+":"+e.type,r.trigger(n,t)}var n,r=this;e.on("destroyed",r.onDestroyed.bind(r)),e.on("shown hidden rested dir plain",t),e.on("dir:up dir:right dir:down dir:left",t),e.on("plain:up plain:right plain:down plain:left",t)},S.prototype.pressureFn=function(e,t,n){var r=this,o=0;clearInterval(r.pressureIntervals[n]),r.pressureIntervals[n]=setInterval(function(){var n=e.force||e.pressure||e.webkitForce||0;n!==o&&(t.trigger("pressure",n),r.trigger("pressure "+t.identifier+":pressure",n),o=n)}.bind(r),100)},S.prototype.onstart=function(e){var t=this,n=t.options,r=e;return e=c(e),t.updateBox(),p(e,(function(o){t.actives.length<n.maxNumberOfNipples?t.processOnStart(o):r.type.match(/^touch/)&&(Object.keys(t.manager.ids).forEach((function(n){if(Object.values(r.touches).findIndex((function(e){return e.identifier===n}))<0){var o=[e[0]];o.identifier=n,t.processOnEnd(o)}})),t.actives.length<n.maxNumberOfNipples&&t.processOnStart(o))})),t.manager.bindDocument(),!1},S.prototype.processOnStart=function(e){var t,n=this,o=n.options,i=n.manager.getIdentifier(e),s=e.force||e.pressure||e.webkitForce||0,a={x:e.pageX,y:e.pageY},c=n.getOrCreate(i,a);function l(t){t.trigger("start",t),n.trigger("start "+t.id+":start",t),t.show(),0<s&&n.pressureFn(e,t,t.identifier),n.processOnMove(e)}if(c.identifier!==i&&n.manager.removeIdentifier(c.identifier),c.identifier=i,0<=(t=n.idles.indexOf(c))&&n.idles.splice(t,1),n.actives.push(c),n.ids.push(c.identifier),"semi"!==o.mode)l(c);else{if(!(r(a,c.position)<=o.catchDistance))return c.destroy(),void n.processOnStart(e);l(c)}return c},S.prototype.getOrCreate=function(e,t){var n,r=this.options;return/(semi|static)/.test(r.mode)?(n=this.idles[0])?(this.idles.splice(0,1),n):"semi"===r.mode?this.createNipple(t,e):(console.warn("Coudln't find the needed nipple."),!1):n=this.createNipple(t,e)},S.prototype.processOnMove=function(e){var t,n,i,s,a=this.options,c=this.manager.getIdentifier(e),l=this.nipples.get(c),f=this.manager.scroll;if(s=e,isNaN(s.buttons)?0!==s.pressure:0!==s.buttons){if(!l)return console.error("Found zombie joystick with ID "+c),void this.manager.removeIdentifier(c);if(a.dynamicPage){var d=l.el.getBoundingClientRect();l.position={x:f.x+d.left,y:f.y+d.top}}l.identifier=c;var p=l.options.size/2,h={x:e.pageX,y:e.pageY};a.lockX&&(h.y=l.position.y),a.lockY&&(h.x=l.position.x);var m,y,v,_,g,b,w,x,j,k=r(h,l.position),E=(y=(m=l.position).x-h.x,v=m.y-h.y,Math.atan2(v,y)*(180/Math.PI)),S=o(E),C=k/p,D={distance:k,position:h};if("circle"===l.options.shape?(_=Math.min(k,p),b=l.position,w=_,j={x:0,y:0},x=o(x=E),j.x=b.x-w*Math.cos(x),j.y=b.y-w*Math.sin(x),g=j):(t=h,n=l.position,i=p,_=r(g={x:Math.min(Math.max(t.x,n.x-i),n.x+i),y:Math.min(Math.max(t.y,n.y-i),n.y+i)},l.position)),a.follow){if(p<k){var O=h.x-g.x,P=h.y-g.y;l.position.x+=O,l.position.y+=P,l.el.style.top=l.position.y-(this.box.top+f.y)+"px",l.el.style.left=l.position.x-(this.box.left+f.x)+"px",k=r(h,l.position)}}else h=g,k=_;var M=h.x-l.position.x,A=h.y-l.position.y;l.frontPosition={x:M,y:A},a.dataOnly||u(l.ui.front,l.frontPosition);var B={identifier:l.identifier,position:h,force:C,pressure:e.force||e.pressure||e.webkitForce||0,distance:k,angle:{radian:S,degree:E},vector:{x:M/p,y:-A/p},raw:D,instance:l,lockX:a.lockX,lockY:a.lockY};(B=l.computeDirection(B)).angle={radian:o(180-E),degree:180-E},l.trigger("move",B),this.trigger("move "+l.id+":move",B)}else this.processOnEnd(e)},S.prototype.processOnEnd=function(e){var t=this,n=t.options,r=t.manager.getIdentifier(e),o=t.nipples.get(r),i=t.manager.removeIdentifier(o.identifier);o&&(n.dataOnly||o.hide((function(){"dynamic"===n.mode&&(o.trigger("removed",o),t.trigger("removed "+o.id+":removed",o),t.manager.trigger("removed "+o.id+":removed",o),o.destroy())})),clearInterval(t.pressureIntervals[o.identifier]),o.resetDirection(),o.trigger("end",o),t.trigger("end "+o.id+":end",o),0<=t.ids.indexOf(o.identifier)&&t.ids.splice(t.ids.indexOf(o.identifier),1),0<=t.actives.indexOf(o)&&t.actives.splice(t.actives.indexOf(o),1),/(semi|static)/.test(n.mode)?t.idles.push(o):0<=t.nipples.indexOf(o)&&t.nipples.splice(t.nipples.indexOf(o),1),t.manager.unbindDocument(),/(semi|static)/.test(n.mode)&&(t.manager.ids[i.id]=i.identifier))},S.prototype.onDestroyed=function(e,t){0<=this.nipples.indexOf(t)&&this.nipples.splice(this.nipples.indexOf(t),1),0<=this.actives.indexOf(t)&&this.actives.splice(this.actives.indexOf(t),1),0<=this.idles.indexOf(t)&&this.idles.splice(this.idles.indexOf(t),1),0<=this.ids.indexOf(t.identifier)&&this.ids.splice(this.ids.indexOf(t.identifier),1),this.manager.removeIdentifier(t.identifier),this.manager.unbindDocument()},S.prototype.destroy=function(){for(var e in this.unbindEvt(this.options.zone,"start"),this.nipples.forEach((function(e){e.destroy()})),this.pressureIntervals)this.pressureIntervals.hasOwnProperty(e)&&clearInterval(this.pressureIntervals[e]);this.trigger("destroyed",this.nipples),this.manager.unbindDocument(),this.off()};var C=S;function D(e){var t=this;function n(){var e;t.collections.forEach((function(n){n.forEach((function(n){e=n.el.getBoundingClientRect(),n.position={x:t.scroll.x+e.left,y:t.scroll.y+e.top}}))}))}function r(){t.scroll=l()}return t.ids={},t.index=0,t.collections=[],t.scroll=l(),t.config(e),t.prepareCollections(),s(window,"resize",(function(){i(n)})),s(window,"scroll",(function(){i(r)})),t.collections}D.prototype=new j,(D.constructor=D).prototype.prepareCollections=function(){var e=this;e.collections.create=e.create.bind(e),e.collections.on=e.on.bind(e),e.collections.off=e.off.bind(e),e.collections.destroy=e.destroy.bind(e),e.collections.get=function(t){var n;return e.collections.every((function(e){return!(n=e.get(t))})),n}},D.prototype.create=function(e){return this.createCollection(e)},D.prototype.createCollection=function(e){var t=new C(this,e);return this.bindCollection(t),this.collections.push(t),t},D.prototype.bindCollection=function(e){function t(e,t){n=e.type+" "+t.id+":"+e.type,r.trigger(n,t)}var n,r=this;e.on("destroyed",r.onDestroyed.bind(r)),e.on("shown hidden rested dir plain",t),e.on("dir:up dir:right dir:down dir:left",t),e.on("plain:up plain:right plain:down plain:left",t)},D.prototype.bindDocument=function(){this.binded||(this.bindEvt(document,"move").bindEvt(document,"end"),this.binded=!0)},D.prototype.unbindDocument=function(e){Object.keys(this.ids).length&&!0!==e||(this.unbindEvt(document,"move").unbindEvt(document,"end"),this.binded=!1)},D.prototype.getIdentifier=function(e){var t;return e?void 0===(t=void 0===e.identifier?e.pointerId:e.identifier)&&(t=this.latest||0):t=this.index,void 0===this.ids[t]&&(this.ids[t]=this.index,this.index+=1),this.latest=t,this.ids[t]},D.prototype.removeIdentifier=function(e){var t={};for(var n in this.ids)if(this.ids[n]===e){t.id=n,t.identifier=this.ids[n],delete this.ids[n];break}return t},D.prototype.onmove=function(e){return this.onAny("move",e),!1},D.prototype.onend=function(e){return this.onAny("end",e),!1},D.prototype.oncancel=function(e){return this.onAny("end",e),!1},D.prototype.onAny=function(e,t){var n,r=this,o="processOn"+e.charAt(0).toUpperCase()+e.slice(1);return p(t=c(t),(function(e){n=r.getIdentifier(e),p(r.collections,function(e,t,n){0<=n.ids.indexOf(t)&&(n[o](e),e._found_=!0)}.bind(null,e,n)),e._found_||r.removeIdentifier(n)})),!1},D.prototype.destroy=function(){this.unbindDocument(!0),this.ids={},this.index=0,this.collections.forEach((function(e){e.destroy()})),this.off()},D.prototype.onDestroyed=function(e,t){if(this.collections.indexOf(t)<0)return!1;this.collections.splice(this.collections.indexOf(t),1)};var O=new D;t.default={create:function(e){return O.create(e)},factory:O}}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=0).default;function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n},"object"==typeof n&&"object"==typeof t?t.exports=o():"function"==typeof define&&define.amd?define("nipplejs",[],o):"object"==typeof n?n.nipplejs=o():r.nipplejs=o()},{}],149:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=(s.prototype.on=function(e,t){var n=this.listeners[e]||[];this.listeners[e]=n.concat([t])},s.prototype.triggerEvent=function(e,t){var n=this;(this.listeners[e]||[]).forEach((function(e){return e({target:n,event:t})}))},s);function s(e){this.options=e,this.listeners={}}(r=n.NotyfArrayEvent||(n.NotyfArrayEvent={}))[r.Add=0]="Add",r[r.Remove=1]="Remove";var a,c=(l.prototype.push=function(e){this.notifications.push(e),this.updateFn(e,n.NotyfArrayEvent.Add,this.notifications)},l.prototype.splice=function(e,t){var r=this.notifications.splice(e,t)[0];return this.updateFn(r,n.NotyfArrayEvent.Remove,this.notifications),r},l.prototype.indexOf=function(e){return this.notifications.indexOf(e)},l.prototype.onUpdate=function(e){this.updateFn=e},l);function l(){this.notifications=[]}(a=n.NotyfEvent||(n.NotyfEvent={})).Dismiss="dismiss";var u={types:[{type:"success",className:"notyf__toast--success",backgroundColor:"#3dc763",icon:{className:"notyf__icon--success",tagName:"i"}},{type:"error",className:"notyf__toast--error",backgroundColor:"#ed3d3d",icon:{className:"notyf__icon--error",tagName:"i"}}],duration:2e3,ripple:!0,position:{x:"right",y:"bottom"},dismissible:!(a.Click="click")},f=(d.prototype.on=function(e,t){var n;this.events=o(o({},this.events),((n={})[e]=t,n))},d.prototype.update=function(e,t){t===n.NotyfArrayEvent.Add?this.addNotification(e):t===n.NotyfArrayEvent.Remove&&this.removeNotification(e)},d.prototype.removeNotification=function(e){var t,n,r=this,o=this._popRenderedNotification(e);o&&((t=o.node).classList.add("notyf__toast--disappear"),t.addEventListener(this.animationEndEventName,n=function(e){e.target===t&&(t.removeEventListener(r.animationEndEventName,n),r.container.removeChild(t))}))},d.prototype.addNotification=function(e){var t=this._renderNotification(e);this.notifications.push({notification:e,node:t}),this._announce(e.options.message||"Notification")},d.prototype._renderNotification=function(e){var t,n=this._buildNotificationCard(e),r=e.options.className;return r&&(t=n.classList).add.apply(t,r.split(" ")),this.container.appendChild(n),n},d.prototype._popRenderedNotification=function(e){for(var t=-1,n=0;n<this.notifications.length&&t<0;n++)this.notifications[n].notification===e&&(t=n);if(-1!==t)return this.notifications.splice(t,1)[0]},d.prototype.getXPosition=function(e){var t;return(null===(t=null==e?void 0:e.position)||void 0===t?void 0:t.x)||"right"},d.prototype.getYPosition=function(e){var t;return(null===(t=null==e?void 0:e.position)||void 0===t?void 0:t.y)||"bottom"},d.prototype.adjustContainerAlignment=function(e){var t=this.X_POSITION_FLEX_MAP[this.getXPosition(e)],n=this.Y_POSITION_FLEX_MAP[this.getYPosition(e)],r=this.container.style;r.setProperty("justify-content",n),r.setProperty("align-items",t)},d.prototype._buildNotificationCard=function(e){var t,r=this,o=e.options,i=o.icon;this.adjustContainerAlignment(o);var s=this._createHTLMElement({tagName:"div",className:"notyf__toast"}),a=this._createHTLMElement({tagName:"div",className:"notyf__ripple"}),c=this._createHTLMElement({tagName:"div",className:"notyf__wrapper"}),l=this._createHTLMElement({tagName:"div",className:"notyf__message"});l.innerHTML=o.message||"";var u=o.background||o.backgroundColor;if(i&&"object"==typeof i){var f=this._createHTLMElement({tagName:"div",className:"notyf__icon"}),d=this._createHTLMElement({tagName:i.tagName||"i",className:i.className,text:i.text}),p=null!==(t=i.color)&&void 0!==t?t:u;p&&(d.style.color=p),f.appendChild(d),c.appendChild(f)}if(c.appendChild(l),s.appendChild(c),u&&(o.ripple?(a.style.background=u,s.appendChild(a)):s.style.background=u),o.dismissible){var h=this._createHTLMElement({tagName:"div",className:"notyf__dismiss"}),m=this._createHTLMElement({tagName:"button",className:"notyf__dismiss-btn"});h.appendChild(m),c.appendChild(h),s.classList.add("notyf__toast--dismissible"),m.addEventListener("click",(function(t){var o,i;null!==(i=(o=r.events)[n.NotyfEvent.Dismiss])&&void 0!==i&&i.call(o,{target:e,event:t}),t.stopPropagation()}))}s.addEventListener("click",(function(t){var o,i;return null===(i=(o=r.events)[n.NotyfEvent.Click])||void 0===i?void 0:i.call(o,{target:e,event:t})}));var y="top"===this.getYPosition(o)?"upper":"lower";return s.classList.add("notyf__toast--"+y),s},d.prototype._createHTLMElement=function(e){var t=e.tagName,n=e.className,r=e.text,o=document.createElement(t);return n&&(o.className=n),o.textContent=r||null,o},d.prototype._createA11yContainer=function(){var e=this._createHTLMElement({tagName:"div",className:"notyf-announcer"});e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),e.style.border="0",e.style.clip="rect(0 0 0 0)",e.style.height="1px",e.style.margin="-1px",e.style.overflow="hidden",e.style.padding="0",e.style.position="absolute",e.style.width="1px",e.style.outline="0",document.body.appendChild(e),this.a11yContainer=e},d.prototype._announce=function(e){var t=this;this.a11yContainer.textContent="",setTimeout((function(){t.a11yContainer.textContent=e}),100)},d.prototype._getAnimationEndEventName=function(){var e,t=document.createElement("_fake"),n={MozTransition:"animationend",OTransition:"oAnimationEnd",WebkitTransition:"webkitAnimationEnd",transition:"animationend"};for(e in n)if(void 0!==t.style[e])return n[e];return"animationend"},d);function d(){this.notifications=[],this.events={},this.X_POSITION_FLEX_MAP={left:"flex-start",center:"center",right:"flex-end"},this.Y_POSITION_FLEX_MAP={top:"flex-start",center:"center",bottom:"flex-end"};var e=document.createDocumentFragment(),t=this._createHTLMElement({tagName:"div",className:"notyf"});e.appendChild(t),document.body.appendChild(e),this.container=t,this.animationEndEventName=this._getAnimationEndEventName(),this._createA11yContainer()}var p=(h.prototype.error=function(e){var t=this.normalizeOptions("error",e);return this.open(t)},h.prototype.success=function(e){var t=this.normalizeOptions("success",e);return this.open(t)},h.prototype.open=function(e){var t=this.options.types.find((function(t){return t.type===e.type}))||{},n=o(o({},t),e);this.assignProps(["ripple","position","dismissible"],n);var r=new i(n);return this._pushNotification(r),r},h.prototype.dismissAll=function(){for(;this.notifications.splice(0,1););},h.prototype.assignProps=function(e,t){var n=this;e.forEach((function(e){t[e]=null==t[e]?n.options[e]:t[e]}))},h.prototype._pushNotification=function(e){var t=this;this.notifications.push(e);var n=void 0!==e.options.duration?e.options.duration:this.options.duration;n&&setTimeout((function(){return t._removeNotification(e)}),n)},h.prototype._removeNotification=function(e){var t=this.notifications.indexOf(e);-1!==t&&this.notifications.splice(t,1)},h.prototype.normalizeOptions=function(e,t){var n={type:e};return"string"==typeof t?n.message=t:"object"==typeof t&&(n=o(o({},n),t)),n},h.prototype.registerTypes=function(e){var t=(e&&e.types||[]).slice();return u.types.map((function(e){var n=-1;t.forEach((function(t,r){t.type===e.type&&(n=r)}));var r=-1!==n?t.splice(n,1)[0]:{};return o(o({},e),r)})).concat(t)},h);function h(e){var t=this;this.dismiss=this._removeNotification,this.notifications=new c,this.view=new f;var r=this.registerTypes(e);this.options=o(o({},u),e),this.options.types=r,this.notifications.onUpdate((function(e,n){return t.view.update(e,n)})),this.view.on(n.NotyfEvent.Dismiss,(function(e){var r=e.target,o=e.event;t._removeNotification(r),r.triggerEvent(n.NotyfEvent.Dismiss,o)})),this.view.on(n.NotyfEvent.Click,(function(e){var t=e.target,r=e.event;return t.triggerEvent(n.NotyfEvent.Click,r)}))}n.DEFAULT_OPTIONS=u,n.Notyf=p,n.NotyfArray=c,n.NotyfNotification=i,n.NotyfView=f},{}],150:[function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o,i,s,a,c=t&&t.prototype instanceof m?t:m,y=Object.create(c.prototype),v=new C(r||[]);return y._invoke=(o=e,i=n,s=v,a=u,function(e,t){if(a===d)throw new Error("Generator is already running");if(a===p){if("throw"===e)throw t;return O()}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n){var r=k(n,s);if(r){if(r===h)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(a===u)throw a=p,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a=d;var c=l(o,i,s);if("normal"===c.type){if(a=s.done?p:f,c.arg===h)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(a=p,s.method="throw",s.arg=c.arg)}}),y}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function m(){}function y(){}function v(){}var _={};_[i]=function(){return this};var g=Object.getPrototypeOf,b=g&&g(g(D([])));b&&b!==n&&r.call(b,i)&&(_=b);var w=v.prototype=m.prototype=Object.create(_);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function j(e,t){var n;this._invoke=function(o,i){function s(){return new t((function(n,s){!function n(o,i,s,a){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function E(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function D(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:O}}function O(){return{value:t,done:!0}}return y.prototype=w.constructor=v,v.constructor=y,v[a]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(j.prototype),j.prototype[s]=function(){return this},e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new j(c(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(w),w[a]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=D,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;0<=i;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(s)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},{}],151:[function(e,t,n){var r;r=function(){return n={},e.m=t=[function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return(o="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})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(t);var s,a,c,l,u=(l=[{key:"bindMethods",value:function(e,t){var n,o=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,void 0):void 0}}(e))){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw s}}}}(Object.getOwnPropertyNames(e.prototype));try{for(o.s();!(n=o.n()).done;){var i=n.value;"constructor"===i||"bindMethods"===i||(t[i]=t[i].bind(t))}}catch(e){o.e(e)}finally{o.f()}}}],i((c=f).prototype,[{key:"getButtonClass",value:function(e){var t=e.includes("{")&&e.includes("}")&&"{//}"!==e?"functionBtn":"standardBtn",n=e.replace("{","").replace("}",""),r="";return"standardBtn"!=t&&(r=" hg-button-".concat(n)),"hg-".concat(t).concat(r)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(e,t,n){return(t=n?Object.assign({},this.getDefaultDiplay(),t):t||this.getDefaultDiplay())[e]||e}},{key:"getUpdatedInput",value:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:n,o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],i=this.getOptions(),s=[n,r,o],a=t;return("{bksp}"===e||"{backspace}"===e)&&0<a.length?a=this.removeAt.apply(this,[a].concat(s)):"{space}"===e?a=this.addStringAt.apply(this,[a," "].concat(s)):"{tab}"!==e||"boolean"==typeof i.tabCharOnTab&&!1===i.tabCharOnTab?"{enter}"!==e&&"{numpadenter}"!==e||!i.newLineOnEnter?e.includes("numpad")&&Number.isInteger(Number(e[e.length-2]))?a=this.addStringAt.apply(this,[a,e[e.length-2]].concat(s)):"{numpaddivide}"===e?a=this.addStringAt.apply(this,[a,"/"].concat(s)):"{numpadmultiply}"===e?a=this.addStringAt.apply(this,[a,"*"].concat(s)):"{numpadsubtract}"===e?a=this.addStringAt.apply(this,[a,"-"].concat(s)):"{numpadadd}"===e?a=this.addStringAt.apply(this,[a,"+"].concat(s)):"{numpaddecimal}"===e?a=this.addStringAt.apply(this,[a,"."].concat(s)):"{"!==e&&"}"!==e&&(e.includes("{")||e.includes("}"))||(a=this.addStringAt.apply(this,[a,e].concat(s))):a=this.addStringAt.apply(this,[a,"\n"].concat(s)):a=this.addStringAt.apply(this,[a,"\t"].concat(s)),a}},{key:"updateCaretPos",value:function(e,t){var n=this.updateCaretPosAction(e,t);this.dispatch((function(e){e.setCaretPosition(n)}))}},{key:"updateCaretPosAction",value:function(e,t){var n=this.getOptions(),r=this.getCaretPosition();return t?0<r&&(r-=e):r+=e,n.debug&&console.log("Caret at:",r,"(".concat(this.keyboardDOMClass,")")),r}},{key:"addStringAt",value:function(e,t){var n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e.length,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:e.length,i=4<arguments.length&&void 0!==arguments[4]&&arguments[4];return r||0===r?(n=[e.slice(0,r),t,e.slice(o)].join(""),this.isMaxLengthReached()||i&&this.updateCaretPos(t.length)):n=e+t,n}},{key:"removeAt",value:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e.length,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e.length,o=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===r)return e;if(n===r){var i=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&0<=n?e.substring(n-2,n).match(i)?(t=e.substr(0,n-2)+e.substr(n),o&&this.updateCaretPos(2,!0)):(t=e.substr(0,n-1)+e.substr(n),o&&this.updateCaretPos(1,!0)):e.slice(-2).match(i)?(t=e.slice(0,-2),o&&this.updateCaretPos(2,!0)):(t=e.slice(0,-1),o&&this.updateCaretPos(1,!0))}else t=e.slice(0,n)+e.slice(r),o&&this.dispatch((function(e){e.setCaretPosition(n)}));return t}},{key:"handleMaxLength",value:function(e,t){var n=this.getOptions(),r=n.maxLength,i=e[n.inputName],s=t.length-1>=r;if(t.length<=i.length)return!1;if(Number.isInteger(r))return n.debug&&console.log("maxLength (num) reached:",s),this.maxLengthReached=s;if("object"===o(r)){var a=t.length-1>=r[n.inputName];return n.debug&&console.log("maxLength (obj) reached:",a),this.maxLengthReached=a}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return window.PointerEvent}},{key:"camelCase",value:function(e){return!!e&&e.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(e,t){return t.length?e+t[0].toUpperCase()+t.slice(1):e}))}}]),i(c,l),f);function f(e){var t=e.getOptions,n=e.getCaretPosition,r=e.getCaretPositionEnd,o=e.dispatch;!function(e){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function")}(this),this.getOptions=t,this.getCaretPosition=n,this.getCaretPositionEnd=r,this.dispatch=o,f.bindMethods(f,this)}a=function(){},"noop"in(s=u)?Object.defineProperty(s,"noop",{value:a,enumerable:!0,configurable:!0,writable:!0}):s.noop=a;var d=u;var p=(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(h.prototype,[{key:"handleHighlightKeyDown",value:function(e){var t=this.getOptions(),n=this.getSimpleKeyboardLayoutKey(e);this.dispatch((function(e){var r=e.getButtonElement(n)||e.getButtonElement("{".concat(n,"}"));r&&(r.style.backgroundColor=t.physicalKeyboardHighlightBgColor||"#dadce4",r.style.color=t.physicalKeyboardHighlightTextColor||"black",t.physicalKeyboardHighlightPress&&(r.onpointerdown||r.onmousedown||r.ontouchstart||d.noop)())}))}},{key:"handleHighlightKeyUp",value:function(e){var t=this.getOptions(),n=this.getSimpleKeyboardLayoutKey(e);this.dispatch((function(e){var r=e.getButtonElement(n)||e.getButtonElement("{".concat(n,"}"));r&&r.removeAttribute&&(r.removeAttribute("style"),t.physicalKeyboardHighlightPress&&(r.onpointerup||r.onmouseup||r.ontouchend||d.noop)())}))}},{key:"getSimpleKeyboardLayoutKey",value:function(e){var t;return((t=e.code.includes("Numpad")||e.code.includes("Shift")||e.code.includes("Space")||e.code.includes("Backspace")||e.code.includes("Control")||e.code.includes("Alt")||e.code.includes("Meta")?e.code:e.key)!==t.toUpperCase()||"F"===e.code[0]&&Number.isInteger(Number(e.code[1]))&&e.code.length<=3)&&(t=t.toLowerCase()),t}}]),h);function h(e){var t=e.dispatch,n=e.getOptions;!function(e){if(!(e instanceof h))throw new TypeError("Cannot call a class as a function")}(this),this.dispatch=t,this.getOptions=n,d.bindMethods(h,this)}function m(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return y(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,void 0):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(g.prototype,[{key:"setCaretPosition",value:function(e,t){this.caretPosition=e,this.caretPositionEnd=t||e}},{key:"handleButtonClicked",value:function(e){var t=this.options.debug;if("{//}"===e)return!1;"function"==typeof this.options.onKeyPress&&this.options.onKeyPress(e),this.input[this.options.inputName]||(this.input[this.options.inputName]="");var n=this.utilities.getUpdatedInput(e,this.input[this.options.inputName],this.caretPosition,this.caretPositionEnd);if(this.input[this.options.inputName]!==n&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(n))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,n))return!1;this.input[this.options.inputName]=this.utilities.getUpdatedInput(e,this.input[this.options.inputName],this.caretPosition,this.caretPositionEnd,!0),t&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")")),this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,!0)),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs())}t&&console.log("Key pressed:",e)}},{key:"handleButtonMouseDown",value:function(e,t){var n=this;this.options.preventMouseDownDefault&&t.preventDefault(),this.options.stopMouseDownPropagation&&t.stopPropagation(),t&&t.target.classList.add(this.activeButtonClass),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.isMouseHold=!0,this.options.disableButtonHold||(this.holdTimeout=setTimeout((function(){(!n.isMouseHold||(e.includes("{")||e.includes("}"))&&"{delete}"!==e&&"{backspace}"!==e&&"{bksp}"!==e&&"{space}"!==e&&"{tab}"!==e)&&"{arrowright}"!==e&&"{arrowleft}"!==e&&"{arrowup}"!==e&&"{arrowdown}"!==e||(n.options.debug&&console.log("Button held:",e),n.handleButtonHold(e,t)),clearTimeout(n.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;n&&(this.options.preventMouseUpDefault&&n.preventDefault(),this.options.stopMouseUpPropagation&&n.stopPropagation()),this.recurseButtons((function(t){t.classList.remove(e.activeButtonClass)})),this.isMouseHold=!1,this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),t&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(t)}},{key:"handleKeyboardContainerMouseDown",value:function(e){this.options.preventMouseDownDefault&&e.preventDefault()}},{key:"handleButtonHold",value:function(e){var t=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=setTimeout((function(){t.isMouseHold?(t.handleButtonClicked(e),t.handleButtonHold(e)):clearTimeout(t.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var e=this;this.dispatch((function(t){t.replaceInput(e.input),t.setCaretPosition(e.caretPosition,e.caretPositionEnd)}))}},{key:"clearInput",value:function(e){e=e||this.options.inputName,this.input[e]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return e=e||this.options.inputName,this.options.syncInstanceInputs&&!t&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[e].replace("‫","").replace("‬","")+"‬":this.input[e]}},{key:"getAllInputs",value:function(){var e=this,t={};return Object.keys(this.input).forEach((function(n){t[n]=e.getInput(n,!0)})),t}},{key:"setInput",value:function(e,t){t=t||this.options.inputName,this.input[t]=e,this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(e){this.input=e}},{key:"setOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=this.changedOptions(e);this.options=Object.assign(this.options,e),t.length&&(this.options.debug&&console.log("changedOptions",t),this.onSetOptions(e),this.render())}},{key:"changedOptions",value:function(e){var t=this;return Object.keys(e).filter((function(n){return JSON.stringify(e[n])!==JSON.stringify(t.options[n])}))}},{key:"onSetOptions",value:function(e){e.inputName&&(this.options.debug&&console.log("inputName changed. caretPosition reset."),this.setCaretPosition(null))}},{key:"clear",value:function(){this.keyboardDOM.innerHTML="",this.keyboardDOM.className=this.keyboardDOMClass,this.buttonElements={}}},{key:"dispatch",value:function(e){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach((function(t){e(window.SimpleKeyboardInstances[t],t)}))}},{key:"addButtonTheme",value:function(e,t){var n=this;if(!t||!e)return!1;e.split(" ").forEach((function(r){t.split(" ").forEach((function(t){n.options.buttonTheme||(n.options.buttonTheme=[]);var o=!1;n.options.buttonTheme.map((function(e){if(e.class.split(" ").includes(t)){o=!0;var n=e.buttons.split(" ");n.includes(r)||(o=!0,n.push(r),e.buttons=n.join(" "))}return e})),o||n.options.buttonTheme.push({class:t,buttons:e})}))})),this.render()}},{key:"removeButtonTheme",value:function(e,t){var n=this;if(!e&&!t)return this.options.buttonTheme=[],this.render(),!1;e&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(e.split(" ").forEach((function(e){n.options.buttonTheme.map((function(r,o){if(t&&t.includes(r.class)||!t){var i=r.buttons.split(" ").filter((function(t){return t!==e}));i.length?r.buttons=i.join(" "):(n.options.buttonTheme.splice(o,1),r=null)}return r}))})),this.render())}},{key:"getButtonElement",value:function(e){var t,n=this.buttonElements[e];return n&&(t=1<n.length?n:n[0]),t}},{key:"inputPatternIsValid",value:function(e){var t,n=this.options.inputPattern;if((t=n instanceof RegExp?n:n[this.options.inputName])&&e){var r=t.test(e);return this.options.debug&&console.log('inputPattern ("'.concat(t,'"): ').concat(r?"passed":"did not pass!")),r}return!0}},{key:"setEventListeners",value:function(){!this.isFirstKeyboardInstance&&this.allKeyboardInstances||(this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")")),document.addEventListener("keyup",this.handleKeyUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd))}},{key:"handleKeyUp",value:function(e){this.caretEventHandler(e),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(e)}},{key:"handleKeyDown",value:function(e){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(e)}},{key:"handleMouseUp",value:function(e){this.caretEventHandler(e)}},{key:"handleTouchEnd",value:function(e){this.caretEventHandler(e)}},{key:"caretEventHandler",value:function(e){var t;e.target.tagName&&(t=e.target.tagName.toLowerCase()),this.dispatch((function(n){var r=e.target===n.keyboardDOM||e.target&&n.keyboardDOM.contains(e.target);n.isMouseHold&&(n.isMouseHold=!1),"textarea"!==t&&"input"!==t||n.options.disableCaretPositioning?!n.options.disableCaretPositioning&&r||n.setCaretPosition(null):(n.setCaretPosition(e.target.selectionStart,e.target.selectionEnd),n.options.debug&&console.log("Caret at: ",n.getCaretPosition(),n.getCaretPositionEnd(),e&&e.target.tagName.toLowerCase(),"(".concat(n.keyboardDOMClass,")")))}))}},{key:"recurseButtons",value:function(e){var t=this;if(!e)return!1;Object.keys(this.buttonElements).forEach((function(n){return t.buttonElements[n].forEach(e)}))}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName)),document.removeEventListener("keyup",this.handleKeyUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null;var e=function(e){e.onpointerdown=null,e.onpointerup=null,e.onpointercancel=null,e.ontouchstart=null,e.ontouchend=null,e.ontouchcancel=null,e.onclick=null,e.onmousedown=null,e.onmouseup=null,e.remove(),e=null};this.recurseButtons(e),e=this.recurseButtons=null,this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.clear(),window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(e){var t=this.options.buttonTheme,n=[];return Array.isArray(t)&&t.forEach((function(t){if(t.class&&"string"==typeof t.class&&t.buttons&&"string"==typeof t.buttons){var r=t.class.split(" ");t.buttons.split(" ").includes(e)&&(n=[].concat(m(n),m(r)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',t)})),n}},{key:"setDOMButtonAttributes",value:function(e,t){var n=this.options.buttonAttributes;Array.isArray(n)&&n.forEach((function(n){n.attribute&&"string"==typeof n.attribute&&n.value&&"string"==typeof n.value&&n.buttons&&"string"==typeof n.buttons?n.buttons.split(" ").includes(e)&&t(n.attribute,n.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',n)}))}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(e){if(e.target.classList.contains("hg-button"))return e.preventDefault(),e.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit()}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender()}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender()}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var e=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(t){(new t).init(e)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(e,t){return!!this.modules[e]&&this.modules[e][t]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(e,t,n,r){var o=this,i=Array.from(e.children),s=0;return i.length&&n.forEach((function(n,a){var c=r[a];if(!(c&&n<c))return!1;var l=n-s,u=c-s,f=document.createElement("div");f.className+="hg-button-container";var d="".concat(o.options.layoutName,"-r").concat(t,"c").concat(a);f.setAttribute("data-skUID",d);var p=i.splice(l,u-l+1);s=u-l,p.forEach((function(e){return f.appendChild(e)})),i.splice(l,0,f),e.innerHTML="",i.forEach((function(t){return e.appendChild(t)})),o.options.debug&&console.log("rowDOMContainer",p,l,u,s+1)})),e}},{key:"render",value:function(){var e=this;this.clear(),this.initialized||this.beforeFirstRender(),this.beforeRender();var t="hg-layout-".concat(this.options.layoutName),n=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},r=this.options.useTouchEvents||!1,o=r?"hg-touch-events":"",i=this.options.useMouseEvents||!1,s=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,t,this.keyboardPluginClasses,o),n[this.options.layoutName].forEach((function(t,n){var o=t.split(" "),a=document.createElement("div");a.className+="hg-row";var c=[],l=[];o.forEach((function(t,o){var u,f=!s&&"string"==typeof t&&1<t.length&&0===t.indexOf("["),d=!s&&"string"==typeof t&&1<t.length&&t.indexOf("]")===t.length-1;f&&(c.push(o),t=t.replace(/\[/g,"")),d&&(l.push(o),t=t.replace(/\]/g,""));var p=e.utilities.getButtonClass(t),h=e.utilities.getButtonDisplayName(t,e.options.display,e.options.mergeDisplay),y=e.options.useButtonTag?"button":"div",v=document.createElement(y);v.className+="hg-button ".concat(p),(u=v.classList).add.apply(u,m(e.getButtonThemeClasses(t))),e.setDOMButtonAttributes(t,(function(e,t){v.setAttribute(e,t)})),e.activeButtonClass="hg-activeButton",!e.utilities.pointerEventsSupported()||r||i?r?(v.ontouchstart=function(n){e.handleButtonClicked(t),e.handleButtonMouseDown(t,n)},v.ontouchend=function(n){e.handleButtonMouseUp(t,n)},v.ontouchcancel=function(n){e.handleButtonMouseUp(t,n)}):(v.onclick=function(){e.isMouseHold=!1,e.handleButtonClicked(t)},v.onmousedown=function(n){e.handleButtonMouseDown(t,n)},v.onmouseup=function(n){e.handleButtonMouseUp(t,n)}):(v.onpointerdown=function(n){e.handleButtonClicked(t),e.handleButtonMouseDown(t,n)},v.onpointerup=function(n){e.handleButtonMouseUp(t,n)},v.onpointercancel=function(n){e.handleButtonMouseUp(t,n)}),v.setAttribute("data-skBtn",t);var _="".concat(e.options.layoutName,"-r").concat(n,"b").concat(o);v.setAttribute("data-skBtnUID",_);var g=document.createElement("span");g.innerHTML=h,v.appendChild(g),e.buttonElements[t]||(e.buttonElements[t]=[]),e.buttonElements[t].push(v),a.appendChild(v)})),a=e.parseRowDOMContainers(a,n,c,l),e.keyboardDOM.appendChild(a)})),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||r||i?r?(document.ontouchend=function(){return e.handleButtonMouseUp()},document.ontouchcancel=function(){return e.handleButtonMouseUp()},this.keyboardDOM.ontouchstart=function(t){return e.handleKeyboardContainerMouseDown(t)}):r||(document.onmouseup=function(){return e.handleButtonMouseUp()},this.keyboardDOM.onmousedown=function(t){return e.handleKeyboardContainerMouseDown(t)}):(document.onpointerup=function(){return e.handleButtonMouseUp()},this.keyboardDOM.onpointerdown=function(t){return e.handleKeyboardContainerMouseDown(t)}),this.onInit())}}]),g);function g(){var e=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,g),v(this,"handleParams",(function(e){var t,n,r;if("string"==typeof e[0])t=e[0].split(".").join(""),n=document.querySelector(".".concat(t)),r=e[1];else if(e[0]instanceof HTMLDivElement){if(!e[0].className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");t=e[0].className.split(" ")[0],n=e[0],r=e[1]}else t="simple-keyboard",n=document.querySelector(".".concat(t)),r=e[0];return{keyboardDOMClass:t,keyboardDOM:n,options:r}})),v(this,"getOptions",(function(){return e.options})),v(this,"getCaretPosition",(function(){return e.caretPosition})),v(this,"getCaretPositionEnd",(function(){return e.caretPositionEnd})),v(this,"registerModule",(function(t,n){e.modules[t]||(e.modules[t]={}),n(e.modules[t])})),v(this,"getKeyboardClassString",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return[e.keyboardDOMClass].concat(n).filter((function(e){return!!e})).join(" ")}));for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=this.handleParams(n),i=o.keyboardDOMClass,s=o.keyboardDOM,a=o.options,c=void 0===a?{}:a;if(this.utilities=new d({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=s,this.options=c,this.options.layoutName=this.options.layoutName||"default",this.options.theme=this.options.theme||"hg-theme-default",this.options.inputName=this.options.inputName||"default",this.options.preventMouseDownDefault=this.options.preventMouseDownDefault||!1,this.keyboardPluginClasses="",d.bindMethods(g,this),this.input={},this.input[this.options.inputName]="",this.keyboardDOMClass=i,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),(window.SimpleKeyboardInstances[this.currentInstanceName]=this).allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new p({dispatch:this.dispatch,getOptions:this.getOptions}),!this.keyboardDOM)throw console.warn('".'.concat(i,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}t.default=_}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/",e(e.s=0);function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n},"object"==typeof n&&"object"==typeof t?t.exports=r():"function"==typeof define&&define.amd?define("SimpleKeyboard",[],r):"object"==typeof n?n.SimpleKeyboard=r():this.SimpleKeyboard=r()},{}],152:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.Build={short:"0.72.2",version:"0.72.2 (8585e7cf34f0508f7f07b7891717059c)",buildSeed:1636037044297}},{"core-js/modules/es6.object.define-property":120}],153:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("../dom/keys"),s=e("../dom/pointer"),a=function(){for(var e={},t=0,n=Object.keys(i.namedKeyCodes);t<n.length;t++){var r=n[t];e[i.namedKeyCodes[r]]=r.substr(4,2)}return e}();function c(e,t,n){var o=Math.round(.6*n),i=Math.round(.5*n),a=Math.max(1,Math.round(n/20)),c=y[e.toLowerCase()],u=void 0===c?e:"",f=l("emulator-button-touch-zone"),d=l("emulator-button"),p=l("emulator-button-text",void 0===c?void 0===u||0===u.length?"□":u.substr(0,1).toUpperCase():"");function h(e){void 0!==t.onDown&&t.onDown(),void 0!==t.onClick&&t.onClick(),e.stopPropagation(),e.preventDefault()}function m(e){void 0!==t.onUp&&t.onUp(),e.stopPropagation(),e.preventDefault()}function v(e){e.stopPropagation(),e.preventDefault()}void 0!==c&&(d.style.backgroundImage='url("'+c+'")'),d.style.width=o+"px",d.style.height=o+"px",p.style.fontSize=i+"px",f.widthPx=n-2*a,f.heightPx=n-2*a,f.style.width=f.widthPx+"px",f.style.height=f.heightPx+"px",f.style.borderWidth=a+"px",f.appendChild(d),f.appendChild(p);var _,g={capture:!0},b=r(s.pointer.starters);try{for(b.s();!(_=b.n()).done;){var w=_.value;f.addEventListener(w,h,g)}}catch(e){b.e(e)}finally{b.f()}var x,j=r(s.pointer.enders);try{for(j.s();!(x=j.n()).done;){var k=x.value;f.addEventListener(k,m,g)}}catch(e){j.e(e)}finally{j.f()}var E,S=r(s.pointer.changers);try{for(S.s();!(E=S.n()).done;){var C=E.value;f.addEventListener(C,v,g)}}catch(e){S.e(e)}finally{S.f()}var D,O=r(s.pointer.leavers);try{for(O.s();!(D=O.n()).done;){var P=D.value;f.addEventListener(P,v,g)}}catch(e){O.e(e)}finally{O.f()}var M,A=r(s.pointer.prevents);try{for(A.s();!(M=A.n()).done;){var B=M.value;f.addEventListener(B,v,g)}}catch(e){A.e(e)}finally{A.f()}return f}function l(e,t){var n=document.createElement("div");return n.className=e,void 0!==t&&(n.innerHTML=t),n}function u(e){return"number"==typeof e?a[e]:e}function f(e,t){return"click"===e.action?{onClick:function(){return t.fireKeyPress(e.mapTo)}}:{onDown:function(){return t.fireKeyDown(e.mapTo)},onUp:function(){return t.fireKeyUp(e.mapTo)}}}n.createButton=c,n.deprecatedButton=function(e,t,n,o){var s,a=Math.round(o/4),l=[],d=r(n);try{for(d.s();!(s=d.n()).done;){var p=s.value;if(p.mapTo!==i.KBD_NONE){var h=c((p.symbol||u(p.mapTo)).toUpperCase(),f(p,e),o);h.style.position="absolute";var m=p.style;if(m)for(var y=0,v=Object.keys(m);y<v.length;y++){var _=v[y];h.style[_]=m[_]}if(void 0!==p.position){var g=p.position.left,b=p.position.top,w=p.position.bottom,x=p.position.right;void 0!==g&&(h.style.left=a*g+o*(g-1)+"px"),void 0!==x&&(h.style.right=a*x+o*(x-1)+"px"),void 0!==b&&(h.style.top=a*b+o*(b-1)+"px"),void 0!==w&&(h.style.bottom=a*w+o*(w-1)+"px")}e.mouseOverlay.appendChild(h),l.push(h)}}}catch(t){d.e(t)}finally{d.f()}return function(){var t,n=r(l);try{for(n.s();!(t=n.n()).done;){var o=t.value;o.parentElement===e.mouseOverlay&&e.mouseOverlay.removeChild(o)}}catch(t){n.e(t)}finally{n.f()}}};var d="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' fill='%23FFF' enable-background='new 0 0 20 20' xml:space='preserve'%3E%3Ctitle%3EShape%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-1' sketch:type='MSPage'%3E%3Cg id='Artboard-1' transform='translate(-3.000000, -1.000000)' sketch:type='MSArtboardGroup'%3E%3Cpath id='Shape' sketch:type='MSShapeGroup' d='M19,12c-0.3,0-0.5,0.1-0.7,0.3L14,16.6V3c0-0.5-0.4-1-1-1s-1,0.5-1,1v13.6 l-4.3-4.3C7.5,12.1,7.3,12,7,12c-0.5,0-1,0.4-1,1c0,0.3,0.1,0.5,0.3,0.7l6,6c0.2,0.2,0.4,0.3,0.7,0.3s0.5-0.1,0.7-0.3l6-6 c0.2-0.2,0.3-0.4,0.3-0.7C20,12.4,19.5,12,19,12L19,12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",p="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' enable-background='new 0 0 20 20' fill='%23FFF' xml:space='preserve'%3E%3Cg id='left_arrow_1_'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18,9H4.41l4.29-4.29C8.89,4.53,9,4.28,9,4c0-0.55-0.45-1-1-1 C7.72,3,7.47,3.11,7.29,3.29l-6,6C1.11,9.47,1,9.72,1,10c0,0.28,0.11,0.53,0.29,0.71l6,6C7.47,16.89,7.72,17,8,17 c0.55,0,1-0.45,1-1c0-0.28-0.11-0.53-0.29-0.71L4.41,11H18c0.55,0,1-0.45,1-1C19,9.45,18.55,9,18,9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",h="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' fill='%23fff' viewBox='0 0 20 20' enable-background='new 0 0 20 20' xml:space='preserve'%3E%3Cg id='right_arrow_1_'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18.71,9.29l-6-6C12.53,3.11,12.28,3,12,3c-0.55,0-1,0.45-1,1 c0,0.28,0.11,0.53,0.29,0.71L15.59,9H2c-0.55,0-1,0.45-1,1c0,0.55,0.45,1,1,1h13.59l-4.29,4.29C11.11,15.47,11,15.72,11,16 c0,0.55,0.45,1,1,1c0.28,0,0.53-0.11,0.71-0.29l6-6C18.89,10.53,19,10.28,19,10C19,9.72,18.89,9.47,18.71,9.29z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",m="data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' fill='%23fff' viewBox='0 0 20 20' enable-background='new 0 0 20 20' xml:space='preserve'%3E%3Cg id='key_enter_1_'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18,2c-0.55,0-1,0.45-1,1v5c0,2.21-1.79,4-4,4H4.41l2.29-2.29 C6.89,9.53,7,9.28,7,9c0-0.55-0.45-1-1-1C5.72,8,5.47,8.11,5.29,8.29l-4,4C1.11,12.47,1,12.72,1,13c0,0.28,0.11,0.53,0.29,0.71 l4,4C5.47,17.89,5.72,18,6,18c0.55,0,1-0.45,1-1c0-0.28-0.11-0.53-0.29-0.71L4.41,14H13c3.31,0,6-2.69,6-6V3C19,2.45,18.55,2,18,2 z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",y={fullscreen:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16' enable-background='new 0 0 16 16' xml:space='preserve'%3E%3Cg id='maximize_1_' fill='%23FFFFFF'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.99,8.99c-0.28,0-0.53,0.11-0.71,0.29l-3.29,3.29v-1.59c0-0.55-0.45-1-1-1 s-1,0.45-1,1v4c0,0.55,0.45,1,1,1h4c0.55,0,1-0.45,1-1s-0.45-1-1-1H3.41L6.7,10.7c0.18-0.18,0.29-0.43,0.29-0.71 C6.99,9.44,6.54,8.99,5.99,8.99z M14.99-0.01h-4c-0.55,0-1,0.45-1,1s0.45,1,1,1h1.59L9.28,5.29C9.1,5.47,8.99,5.72,8.99,5.99 c0,0.55,0.45,1,1,1c0.28,0,0.53-0.11,0.71-0.29l3.29-3.29v1.59c0,0.55,0.45,1,1,1s1-0.45,1-1v-4C15.99,0.44,15.54-0.01,14.99-0.01 z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",save:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 18.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16' enable-background='new 0 0 16 16' fill='%23FFFFFF' xml:space='preserve'%3E%3Cg id='floppy_disk'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.71,2.29l-2-2C13.53,0.11,13.28,0,13,0h-1v6H4V0H1C0.45,0,0,0.45,0,1v14 c0,0.55,0.45,1,1,1h14c0.55,0,1-0.45,1-1V3C16,2.72,15.89,2.47,15.71,2.29z M14,15H2V9c0-0.55,0.45-1,1-1h10c0.55,0,1,0.45,1,1V15 z M11,1H9v4h2V1z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A",options:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' enable-background='new 0 0 20 20' fill='%23FFF' xml:space='preserve'%3E%3Cg id='cog_2_'%3E%3Cg%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M19,8h-2.31c-0.14-0.46-0.33-0.89-0.56-1.3l1.7-1.7c0.39-0.39,0.39-1.02,0-1.41 l-1.41-1.41c-0.39-0.39-1.02-0.39-1.41,0l-1.7,1.7c-0.41-0.22-0.84-0.41-1.3-0.55V1c0-0.55-0.45-1-1-1H9C8.45,0,8,0.45,8,1v2.33 C7.52,3.47,7.06,3.67,6.63,3.91L5,2.28c-0.37-0.37-0.98-0.37-1.36,0L2.28,3.64C1.91,4.02,1.91,4.63,2.28,5l1.62,1.62 C3.66,7.06,3.46,7.51,3.31,8H1C0.45,8,0,8.45,0,9v2c0,0.55,0.45,1,1,1h2.31c0.14,0.46,0.33,0.89,0.56,1.3L2.17,15 c-0.39,0.39-0.39,1.02,0,1.41l1.41,1.41c0.39,0.39,1.02,0.39,1.41,0l1.7-1.7c0.41,0.22,0.84,0.41,1.3,0.55V19c0,0.55,0.45,1,1,1h2 c0.55,0,1-0.45,1-1v-2.33c0.48-0.14,0.94-0.35,1.37-0.59L15,17.72c0.37,0.37,0.98,0.37,1.36,0l1.36-1.36 c0.37-0.37,0.37-0.98,0-1.36l-1.62-1.62c0.24-0.43,0.45-0.89,0.6-1.38H19c0.55,0,1-0.45,1-1V9C20,8.45,19.55,8,19,8z M10,14 c-2.21,0-4-1.79-4-4c0-2.21,1.79-4,4-4s4,1.79,4,4C14,12.21,12.21,14,10,14z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",keyboard:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 16 16' enable-background='new 0 0 16 16' xml:space='preserve'%3E%3Cg id='manually_entered_data_2_'%3E%3Cg%3E%3Cpath fill='%23FFFFFF' fill-rule='evenodd' clip-rule='evenodd' d='M1,8h3.76l2-2H1C0.45,6,0,6.45,0,7C0,7.55,0.45,8,1,8z M15.49,3.99 C15.8,3.67,16,3.23,16,2.75C16,1.78,15.22,1,14.25,1c-0.48,0-0.92,0.2-1.24,0.51l-1.44,1.44l2.47,2.47L15.49,3.99z M1,4h7.76l2-2 H1C0.45,2,0,2.45,0,3C0,3.55,0.45,4,1,4z M1,10c-0.55,0-1,0.45-1,1c0,0.48,0.35,0.86,0.8,0.96L2.76,10H1z M10.95,3.57l-6.69,6.69 l2.47,2.47l6.69-6.69L10.95,3.57z M15.2,6.04L13.24,8H15c0.55,0,1-0.45,1-1C16,6.52,15.65,6.14,15.2,6.04z M2,15l3.86-1.39 l-2.46-2.44L2,15z M15,10h-3.76l-2,2H15c0.55,0,1-0.45,1-1C16,10.45,15.55,10,15,10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",up:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Layer_1' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 20 20' fill='%23FFF' enable-background='new 0 0 20 20' xml:space='preserve'%3E%3Ctitle%3EShape%3C/title%3E%3Cdesc%3ECreated with Sketch.%3C/desc%3E%3Cg id='Page-1' sketch:type='MSPage'%3E%3Cg id='Artboard-1' transform='translate(-3.000000, -1.000000)' sketch:type='MSArtboardGroup'%3E%3Cpath id='Shape' sketch:type='MSShapeGroup' d='M19.7,8.3l-6-6C13.5,2.1,13.3,2,13,2s-0.5,0.1-0.7,0.3l-6,6C6.1,8.5,6,8.7,6,9 c0,0.6,0.5,1,1,1c0.3,0,0.5-0.1,0.7-0.3L12,5.4V19c0,0.5,0.4,1,1,1s1-0.5,1-1V5.4l4.3,4.3C18.5,9.9,18.7,10,19,10c0.5,0,1-0.4,1-1 C20,8.7,19.9,8.5,19.7,8.3L19.7,8.3z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",down:d,do:d,dw:d,dwn:d,left:p,le:p,lft:p,right:h,ri:h,rght:h,rgh:h,enter:m,en:m,enr:m,ent:m,entr:m}},{"../dom/keys":164,"../dom/pointer":168,"core-js/modules/es6.array.from":107,"core-js/modules/es6.array.is-array":109,"core-js/modules/es6.array.iterator":110,"core-js/modules/es6.date.to-string":112,"core-js/modules/es6.function.name":114,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.keys":121,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.regexp.to-string":127,"core-js/modules/es6.string.iterator":128,"core-js/modules/es6.symbol":130,"core-js/modules/es7.symbol.async-iterator":135,"core-js/modules/web.dom.iterable":136}],154:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.getGrid=function(e){switch(e){case"square":return new(function(){function e(){r(this,e),this.aspect=.625}return i(e,[{key:"getConfiguration",value:function(e,t,n){for(var r=2<arguments.length&&void 0!==n?n:1,o=this.getCols(),i=this.getRows(),s=Math.floor(o/2),a=Math.floor(i/2),c=5*e/100/2,l=c,u=(e-2*c)/o*r,f=(t-2*l)/i*r,d=Math.min(u,f),p=[],h=0;h<i;++h){for(var m=[],y=0;y<o;++y)m.push({centerX:y<s?c+d*(y+.5):e-c-d*(o-y-1+.5),centerY:h<a?l+d*(h+.5):t-l-d*(i-h-1+.5)});p.push(m)}return{gridType:"square",cells:p,columnWidth:d,rowHeight:d,columnsPadding:c,rowsPadding:l,width:e,height:t}}},{key:"getCols",value:function(){return 10}},{key:"getRows",value:function(){return Math.floor(this.getCols()*this.aspect)+1}}]),e}());case"honeycomb":return new(function(){function e(){r(this,e),this.aspect=.625}return i(e,[{key:"getConfiguration",value:function(e,t,n){for(var r=2<arguments.length&&void 0!==n?n:1,o=this.getCols(),i=this.getRows(),s=Math.floor(o/2),a=Math.floor(i/2),c=5*e/100/2,l=c,u=(e-2*c)/o*r,f=(t-2*l)/i*r,d=Math.min(u,f),p=[],h=0;h<i;++h){for(var m=[],y=h%2==0?o:o-1,v=h%2==0?0:d/2,_=0;_<y;++_)m.push({centerX:_<s?v+c+d*(_+.5):v+e-c-d*(o-_-1+.5),centerY:h<a?l+d*(h+.5):t-l-d*(i-h-1+.5)});p.push(m)}return{gridType:"honeycomb",cells:p,columnWidth:d,rowHeight:d,columnsPadding:c,rowsPadding:l,width:e,height:t}}},{key:"getCols",value:function(){return 10}},{key:"getRows",value:function(){return Math.floor(this.getCols()*this.aspect)+1}}]),e}())}throw new Error("Unknown grid type "+e)}},{"core-js/modules/es6.object.define-property":120}],155:[function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.keyboard=function(e,t,n){var o=n||{};function i(e){return void 0!==o[e]?o[e]:e}return e.setOnKeyDown((function(e){t.sendKeyEvent(i(e),!0)})),e.setOnKeyUp((function(e){t.sendKeyEvent(i(e),!1)})),e.setOnKeyPress((function(e){t.simulateKeyPress(i(e))})),e.setOnKeysPress((function(e){t.simulateKeyPress.apply(t,r(e))})),function(){e.setOnKeyDown((function(e){})),e.setOnKeyUp((function(e){})),e.setOnKeyPress((function(e){})),e.setOnKeysPress((function(e){}))}}},{"core-js/modules/es6.array.from":107,"core-js/modules/es6.array.is-array":109,"core-js/modules/es6.date.to-string":112,"core-js/modules/es6.function.name":114,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.regexp.to-string":127,"core-js/modules/es6.string.iterator":128,"core-js/modules/es6.symbol":130,"core-js/modules/es7.symbol.async-iterator":135,"core-js/modules/web.dom.iterable":136}],156:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.extractLayersConfig=function(e){return void 0!==e.layersConfig?e.layersConfig:void 0!==e.layers?e.layers:null}},{"core-js/modules/es6.object.define-property":120}],157:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/es6.object.define-properties"),e("core-js/modules/es7.object.get-own-property-descriptors"),e("core-js/modules/es6.array.for-each"),e("core-js/modules/es6.array.filter"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.keys"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.array.index-of"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var l=e("./grid"),u=e("./button"),f=e("./keyboard"),d=e("./mouse"),p=e("./options"),h=e("../dom/pointer"),m=e("nipplejs");n.initLayersControl=function(e,t,n,r,i,s,c){var u,p,h,m,_,g,b,w,x,j=t.layers[0];if(void 0!==c){var k,E=a(t.layers);try{for(E.s();!(k=E.n()).done;){var S=k.value;if(S.title===c){j=S;break}}}catch(e){E.e(e)}finally{E.f()}}return u=j,p=e,h=n,m=r,_=i,g=s,b=f.keyboard(p,h),w=d.mouse(p,h),x=[],p.addOnResize(C),C(p.width,p.height),function(){p.removeOnResize(C),b(),w();var e,t=a(x);try{for(t.s();!(e=t.n()).done;)(0,e.value)()}catch(e){t.e(e)}finally{t.f()}};function C(e,t){var n,r,i=a(x);try{for(i.s();!(r=i.n()).done;)(0,r.value)()}catch(e){i.e(e)}finally{i.f()}x.splice(0,x.length);var s=l.getGrid(u.grid).getConfiguration(e,t,g),c=new y,f=-1;if(0===(null===(n=p.options.optionControls)||void 0===n?void 0:n.length)){var d,b=a(u.controls);try{for(b.s();!(d=b.n()).done;){var w=d.value,j=w.row;if("Options"===w.type){f=j;break}}}catch(e){b.e(e)}finally{b.f()}}var k={};if(_){var E,S=a(u.controls);try{for(S.s();!(E=S.n()).done;){var C=E.value,D=C.row,O=C.column,P=s.cells[D].length,M=P/2;D===f&&M<=O&&(O=Math.min(O+1,P-1)),void 0===k[D]&&(k[D]={leftStart:M,leftEnd:0,rightStart:P-1,rightEnd:M}),O<M?(k[D].leftStart=Math.min(k[D].leftStart,O),k[D].leftEnd=Math.max(k[D].leftEnd,O)):(k[D].rightStart=Math.min(k[D].rightStart,O),k[D].rightEnd=Math.max(k[D].rightEnd,O))}}catch(e){S.e(e)}finally{S.f()}}var A,B=a(u.controls);try{for(B.s();!(A=B.n()).done;){var T=A.value,I=v[T.type];if(void 0!==I){var L=o({},T),K=s.cells[T.row].length,R=K/2;if(f===T.row&&T.column>=R&&(L.column=Math.min(L.column+1,K-1)),_){var F=k[L.row],N=F.leftStart,U=F.leftEnd,z=F.rightStart,H=F.rightEnd,W=L.column<R;W?L.column+=R-U+R-N-1:L.column-=z-R+R-(K-H)+1,L.column>=K?(console.error("Column",L.column,"is out of bound",K,W?"[leftSide]":"[rightSide]",k),L.column=K-1):L.column<0&&(console.error("Column",L.column,"is out of bound",0,W?"[leftSide]":"[rightSide]",k),L.column=0)}var q=I(L,p,h,s,c,m);x.push(q)}else console.error("Factory for control '"+T.type+"' is not defined")}}catch(e){B.e(e)}finally{B.f()}}};var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sensors={}}var t,n;return t=e,(n=[{key:"activate",value:function(e,t){var n=this.sensors[t+"_"+e];void 0!==n&&n.activate()}},{key:"deactivate",value:function(e,t){var n=this.sensors[t+"_"+e];void 0!==n&&n.deactivate()}},{key:"register",value:function(e,t,n){this.sensors[t+"_"+e]=n}}])&&s(t.prototype,n),e}(),v={Key:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h={onDown:function(){return n.sendKeyEvent(e.mapTo,!0)},onUp:function(){return n.sendKeyEvent(e.mapTo,!1)}},m=u.createButton(e.symbol,h,a);return m.style.position="absolute",m.style.left=d-m.widthPx/2+"px",m.style.top=p-m.heightPx/2+"px",o.register(c,l,{activate:h.onDown,deactivate:h.onUp}),t.mouseOverlay.appendChild(m),function(){return t.mouseOverlay.removeChild(m)}},Options:function(e,t,n,r,o,i){var s;if(0===(null===(s=t.options.optionControls)||void 0===s?void 0:s.length))return function(){};if(void 0!==t.options.optionControls&&1===t.options.optionControls.length&&"keyboard"===t.options.optionControls[0])return _(e,t,0,r);var a=r.cells,c=r.columnWidth,l=r.rowHeight,u=e.row,f=e.column,d=a[u][f],h=d.centerX,m=d.centerY-l/2,y=h-c/2,v=r.width-y-c;return p.options(t,["default"],(function(){}),c,m,v)},Keyboard:_,Switch:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h=u.createButton(e.symbol,{onUp:function(){return i.setLayersConfig(i.getLayersConfig(),e.layerName)}},a);return h.style.position="absolute",h.style.left=d-h.widthPx/2+"px",h.style.top=p-h.heightPx/2+"px",t.mouseOverlay.appendChild(h),function(){t.mouseOverlay.removeChild(h)}},ScreenMove:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h=.5,m=.5;0<=e.direction.indexOf("up")&&(m=0),0<=e.direction.indexOf("down")&&(m=1),0<=e.direction.indexOf("left")&&(h=0),0<=e.direction.indexOf("right")&&(h=1);var y={onDown:function(){n.sendMouseMotion(h,m)},onUp:function(){n.sendMouseMotion(.5,.5)}},v=u.createButton(e.symbol,y,a);return v.style.position="absolute",v.style.left=d-v.widthPx/2+"px",v.style.top=p-v.heightPx/2+"px",o.register(c,l,{activate:y.onDown,deactivate:y.onUp}),t.mouseOverlay.appendChild(v),function(){t.mouseOverlay.removeChild(v)}},PointerButton:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=e.click,d=s[c][l],p=d.centerX,h=d.centerY,m={onDown:function(){f?n.sendMouseButton(e.button,!0):t.pointerButton=e.button},onUp:function(){f?n.sendMouseButton(e.button,!1):t.pointerButton=0}},y=u.createButton(e.symbol,m,a);return y.style.position="absolute",y.style.left=p-y.widthPx/2+"px",y.style.top=h-y.heightPx/2+"px",o.register(c,l,{activate:m.onDown,deactivate:m.onUp}),t.mouseOverlay.appendChild(y),function(){t.mouseOverlay.removeChild(y)}},PointerMove:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=e.x,d=e.y,p=s[c][l],h=p.centerX,m=p.centerY,y={onDown:function(){n.sendMouseMotion(f,d)},onUp:function(){n.sendMouseMotion(f,d)}},v=u.createButton(e.symbol,y,a);return v.style.position="absolute",v.style.left=h-v.widthPx/2+"px",v.style.top=m-v.heightPx/2+"px",o.register(c,l,{activate:y.onDown,deactivate:y.onUp}),t.mouseOverlay.appendChild(v),function(){t.mouseOverlay.removeChild(v)}},PointerReset:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h={onDown:function(){n.sendMouseSync()}},m=u.createButton(e.symbol,h,a);return m.style.position="absolute",m.style.left=d-m.widthPx/2+"px",m.style.top=p-m.heightPx/2+"px",o.register(c,l,{activate:h.onDown,deactivate:function(){}}),t.mouseOverlay.appendChild(m),function(){t.mouseOverlay.removeChild(m)}},PointerToggle:function(e,t,n,r,o,i){var s=r.cells,a=r.columnWidth,c=e.row,l=e.column,f=s[c][l],d=f.centerX,p=f.centerY,h={onDown:function(){t.pointerDisabled=!t.pointerDisabled,t.pointerDisabled?m.classList.contains("emulator-button-highlight")||m.classList.add("emulator-button-highlight"):m.classList.remove("emulator-button-highlight")}},m=u.createButton(e.symbol,h,a);return m.style.position="absolute",m.style.left=d-m.widthPx/2+"px",m.style.top=p-m.heightPx/2+"px",o.register(c,l,{activate:h.onDown,deactivate:function(){}}),t.mouseOverlay.appendChild(m),function(){t.mouseOverlay.removeChild(m)}},NippleActivator:function(e,t,n,r,o,i){var s=r.cells,c=r.columnWidth,l=r.rowHeight,u=r.width,f=r.height,d=e.row,p=e.column,y=s[d][p],v=y.centerX,_=y.centerY,g=document.createElement("div"),b=Math.max(0,v-1.5*c),w=Math.max(0,_-1.5*l),x=Math.max(0,u-v-1.5*c),j=Math.max(0,f-_-1.5*l);g.style.position="absolute",g.style.zIndex="999",g.style.left=b+"px",g.style.top=w+"px",g.style.right=x+"px",g.style.bottom=j+"px",t.mouseOverlay.appendChild(g);var k=m.create({zone:g,multitouch:!1,maxNumberOfNipples:1,mode:"static",follow:!1,dynamicPage:!0,size:1.5*Math.max(c,l),position:{left:(u-x-b)/2+"px",top:(f-j-w)/2+"px"}}),E=-1,S=-1;k.on("move",(function(e,t){if(t.distance<10)return o.deactivate(S,E),void(S=E=-1);var n,r=-1,i=t.angle.degree;n=22.5<i&&i<=67.5?(r=p+1,d-1):67.5<i&&i<=112.5?(r=p,d-1):112.5<i&&i<=157.5?(r=p-1,d-1):157.5<i&&i<=202.5?(r=p-1,d):202.5<i&&i<=247.5?(r=p-1,d+1):247.5<i&&i<=292.5?(r=p,d+1):292.5<i&&i<=337.5?(r=p+1,d+1):(r=p+1,d),E===r&&S===n||(o.deactivate(S,E),o.activate(n,r),E=r,S=n)}));var C=!1;k.on("start",(function(){C=!0})),k.on("end",(function(){C=!1,o.deactivate(S,E),E=S=-1}));var D={capture:!0};function O(e){C&&(C=!1,k.processOnEnd(e),e.stopPropagation())}var P,M=a(h.pointer.enders);try{for(M.s();!(P=M.n()).done;){var A=P.value;t.mouseOverlay.addEventListener(A,O,D)}}catch(e){M.e(e)}finally{M.f()}return function(){k.destroy(),t.mouseOverlay.removeChild(g);var e,n=a(h.pointer.enders);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.mouseOverlay.removeEventListener(r,O,D)}}catch(e){n.e(e)}finally{n.f()}}}};function _(e,t,n,r,o,i){function s(e){e?m.children[0].classList.add("emulator-control-close-icon"):m.children[0].classList.remove("emulator-control-close-icon")}var a=r.cells,c=r.columnWidth,l=e.row,f=e.column,d=a[l][f],p=d.centerX,h=d.centerY,m=u.createButton("keyboard",{onUp:function(){return t.toggleKeyboard()}},c);return t.setOnKeyboardVisibility(s),m.style.position="absolute",m.style.left=p-m.widthPx/2+"px",m.style.top=h-m.heightPx/2+"px",t.mouseOverlay.appendChild(m),function(){t.mouseOverlay.removeChild(m),t.removeOnKeyboardVisibility(s)}}},{"../dom/pointer":168,"./button":153,"./grid":154,"./keyboard":155,"./mouse":159,"./options":162,"core-js/modules/es6.array.filter":105,"core-js/modules/es6.array.for-each":106,"core-js/modules/es6.array.from":107,"core-js/modules/es6.array.index-of":108,"core-js/modules/es6.array.is-array":109,"core-js/modules/es6.array.iterator":110,"core-js/modules/es6.date.to-string":112,"core-js/modules/es6.function.name":114,"core-js/modules/es6.object.define-properties":119,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.keys":121,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.regexp.to-string":127,"core-js/modules/es6.string.iterator":128,"core-js/modules/es6.symbol":130,"core-js/modules/es7.object.get-own-property-descriptors":134,"core-js/modules/es7.symbol.async-iterator":135,"core-js/modules/web.dom.iterable":136,nipplejs:148}],158:[function(e,t,n){"use strict";e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var r=e("./button"),o=e("./mouse"),i=e("./nipple"),s=e("./options"),a=e("./keyboard");n.initLegacyLayersControl=function(e,t,n){function c(s){f.keyboard(),f.mouse(),f.gestures(),f.buttons(),f.keyboard=function(){},f.mouse=function(){},f.gestures=function(){},f.buttons=function(){};var c=t[s];void 0!==c&&(f.keyboard=a.keyboard(e,n,c.mapper),void 0!==c.gestures&&0<c.gestures.length?f.gestures=i.nipple(e,n,c.gestures):f.mouse=o.mouse(e,n),void 0!==c.buttons&&c.buttons.length&&(f.buttons=r.deprecatedButton(e,n,c.buttons,54)))}var l,u=Object.keys(t),f={keyboard:function(){},mouse:function(){},gestures:function(){},buttons:function(){}},d=0===(null===(l=e.options.optionControls)||void 0===l?void 0:l.length)?function(){}:s.options(e,u,c,54,13.5,0);return c("default"),function(){f.gestures(),f.buttons(),f.mouse(),f.keyboard(),d()}}},{"./button":153,"./keyboard":155,"./mouse":159,"./nipple":160,"./options":162,"core-js/modules/es6.array.iterator":110,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.keys":121,"core-js/modules/es6.object.to-string":122,"core-js/modules/web.dom.iterable":136}],159:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("../dom/pointer");n.mouse=function(e,t){var n=!1;i.pointer.canLock&&t.config().then((function(e){var t,r,o;return n=!0===(null===(t=e.output)||void 0===t||null===(r=t.options)||void 0===r||null===(o=r.autolock)||void 0===o?void 0:o.value)})).catch(console.error);var o=.01;function s(n,r){var i=t.width(),s=t.height(),a=e.width,c=e.height,l=i/s,u=a,f=a/l;c<f&&(u=(f=c)*l);var d=(c-f)/2,p=(a-u)/2,h=Math.max(0,Math.min(1,(n-p)/u)),m=Math.max(0,Math.min(1,(r-d)/f));return h<=o&&(h=0),1-o<=h&&(h=1),m<=o&&(m=0),1-o<=m&&(m=1),{x:h,y:m}}function a(){return document.pointerLockElement!==c}var c=e.mouseOverlay;function l(r){if(r.target===c)if(e.pointerDisabled)r.stopPropagation();else{var o=i.getPointerState(r,c);m=o.button||e.pointerButton,function(e,r,o){if(n&&a()&&(c.requestPointerLock||c.mozRequestPointerLock||c.webkitRequestPointerLock).call(c),a()){var i=s(e,r);t.sendMouseMotion(i.x,i.y)}t.sendMouseButton(o,!0)}(o.x,o.y,m),r.stopPropagation()}}function u(n){if(n.target===c)if(e.pointerDisabled)n.stopPropagation();else{var r=i.getPointerState(n,c);!function(e,n,r,o){if(a()){var i=s(e,n);t.sendMouseMotion(i.x,i.y)}else t.sendMouseRelativeMotion(r,o)}(r.x,r.y,r.mX,r.mY),n.stopPropagation()}}function f(n){if(e.pointerDisabled)n.stopPropagation();else{var r=i.getPointerState(n,c);!function(e,n,r){if(a()){var o=s(e,n);t.sendMouseMotion(o.x,o.y)}t.sendMouseButton(r,!1)}(r.x,r.y,m),n.stopPropagation()}}function d(n){if(n.target===c)if(e.pointerDisabled)n.stopPropagation();else{var r,o=i.getPointerState(n,c);r=s(o.x,o.y),t.sendMouseMotion(r.x,r.y),n.stopPropagation()}}function p(e){e.stopPropagation()}var h,m=0,y={capture:!1},v=r(i.pointer.starters);try{for(v.s();!(h=v.n()).done;){var _=h.value;c.addEventListener(_,l,y)}}catch(h){v.e(h)}finally{v.f()}var g,b=r(i.pointer.changers);try{for(b.s();!(g=b.n()).done;){var w=g.value;c.addEventListener(w,u,y)}}catch(h){b.e(h)}finally{b.f()}var x,j=r(i.pointer.enders);try{for(j.s();!(x=j.n()).done;){var k=x.value;c.addEventListener(k,f,y)}}catch(h){j.e(h)}finally{j.f()}var E,S=r(i.pointer.prevents);try{for(S.s();!(E=S.n()).done;){var C=E.value;c.addEventListener(C,p,y)}}catch(h){S.e(h)}finally{S.f()}var D,O=r(i.pointer.leavers);try{for(O.s();!(D=O.n()).done;){var P=D.value;c.addEventListener(P,d,y)}}catch(h){O.e(h)}finally{O.f()}return function(){var e,t=r(i.pointer.starters);try{for(t.s();!(e=t.n()).done;){var n=e.value;c.removeEventListener(n,l,y)}}catch(e){t.e(e)}finally{t.f()}var o,s=r(i.pointer.changers);try{for(s.s();!(o=s.n()).done;){var a=o.value;c.removeEventListener(a,u,y)}}catch(e){s.e(e)}finally{s.f()}var h,m=r(i.pointer.enders);try{for(m.s();!(h=m.n()).done;){var v=h.value;c.removeEventListener(v,f,y)}}catch(e){m.e(e)}finally{m.f()}var _,g=r(i.pointer.prevents);try{for(g.s();!(_=g.n()).done;){var b=_.value;c.removeEventListener(b,p,y)}}catch(e){g.e(e)}finally{g.f()}var w,x=r(i.pointer.leavers);try{for(x.s();!(w=x.n()).done;){var j=w.value;c.removeEventListener(j,d,y)}}catch(e){x.e(e)}finally{x.f()}}}},{"../dom/pointer":168,"core-js/modules/es6.array.from":107,"core-js/modules/es6.array.is-array":109,"core-js/modules/es6.date.to-string":112,"core-js/modules/es6.function.name":114,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.regexp.to-string":127,"core-js/modules/es6.string.iterator":128,"core-js/modules/es6.symbol":130,"core-js/modules/es7.symbol.async-iterator":135,"core-js/modules/web.dom.iterable":136}],160:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.date.now"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("nipplejs"),s=e("../dom/keys");n.nipple=function(e,t,n){function o(){-1!==l&&(e.fireKeyUp(l),l=-1)}var a,c=i.create({zone:e.mouseOverlay,multitouch:!0,maxNumberOfNipples:2}),l=-1,u={},f={},d={},p=r(n);try{var h=function(){var t=a.value;"end:release"===t.event?u[t.joystickId]=!0:t.mapTo!==s.KBD_NONE&&("tap"===t.event?f[t.joystickId]=t.mapTo:c.on(t.event,(function(){var n;d[t.joystickId]=Date.now(),o(),n=t.mapTo,e.fireKeyDown(n),l=n})))};for(p.s();!(a=p.n()).done;)h()}catch(t){p.e(t)}finally{p.f()}var m={};return c.on("start",(function(){var e=c.ids.length-1;m[e]=Date.now()})),c.on("end",(function(){var t=c.ids.length-1,n=Date.now()-m[t];!0===u[t]&&o(),f[t]&&n<500&&d[t]<m[t]&&e.fireKeyPress(f[t])})),function(){return c.destroy()}}},{"../dom/keys":164,"core-js/modules/es6.array.from":107,"core-js/modules/es6.array.is-array":109,"core-js/modules/es6.date.now":111,"core-js/modules/es6.date.to-string":112,"core-js/modules/es6.function.name":114,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.regexp.to-string":127,"core-js/modules/es6.string.iterator":128,"core-js/modules/es6.symbol":130,"core-js/modules/es7.symbol.async-iterator":135,"core-js/modules/web.dom.iterable":136,nipplejs:148}],161:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var r=e("./keyboard"),o=e("./mouse"),i=e("./options");n.initNullLayersControl=function(e,t){var n,s=r.keyboard(e,t),a=o.mouse(e,t),c=0===(null===(n=e.options.optionControls)||void 0===n?void 0:n.length)?function(){}:i.options(e,["default"],(function(){}),54,13.5,0);return function(){s(),a(),c()}}},{"./keyboard":155,"./mouse":159,"./options":162,"core-js/modules/es6.object.define-property":120}],162:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("./button"),s=e("../dom/helpers");n.options=function(e,t,n,o,a,c){function l(){var e,t=p?"flex":"none",n=r(m);try{for(n.s();!(e=n.n()).done;){var o=e.value;o!=y&&(o.style.display=t)}}catch(e){n.e(e)}finally{n.f()}}function u(){!(p=!p)&&h&&e.toggleKeyboard(),l()}function f(e){(h=e)?_.classList.add("emulator-control-close-icon"):_.classList.remove("emulator-control-close-icon")}var d=Math.round(o/4),p=!1,h=!1,m=[function(e,t){if(e.length<=1)return document.createElement("div");var n=document.createElement("select");n.classList.add("emulator-control-select");var o,i=r(e);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=document.createElement("option");c.value=a,c.innerHTML=a,n.appendChild(c)}}catch(e){i.e(e)}finally{i.f()}return n.onchange=function(e){var n=e.target.value;t(n)},s.stopPropagation(n,!1),n}(t,n),i.createButton("keyboard",{onClick:function(){e.toggleKeyboard(),p&&!h&&(p=!1,l())}},o),i.createButton("save",{onClick:function(){e.save(),p&&u()}},o),i.createButton("fullscreen",{onClick:function(){e.toggleFullscreen(),p&&u()}},o),i.createButton("options",{onClick:u},o)],y=m[m.length-1],v=m[m.length-2].children[0],_=m[m.length-4].children[0];e.setOnKeyboardVisibility(f),f(e.keyboardVisible),e.setOnFullscreen((function(e){e?v.classList.contains("emulator-control-exit-fullscreen-icon")||v.classList.add("emulator-control-exit-fullscreen-icon"):v.classList.remove("emulator-control-exit-fullscreen-icon")})),e.fullscreen&&v.classList.add("emulator-control-exit-fullscreen-icon");for(var g=s.createDiv("emulator-options"),b=h?"flex":"none",w=0,x=m;w<x.length;w++){var j=x[w];j!==y&&j.classList.add("emulator-button-control"),j.style.marginRight=d+"px",j.style.marginBottom=d+"px",j!==y&&(j.style.display=b),g.appendChild(j)}return g.style.position="absolute",g.style.right=c+"px",g.style.top=a+"px",e.mouseOverlay.appendChild(g),function(){e.mouseOverlay.removeChild(g),e.setOnFullscreen((function(){})),e.removeOnKeyboardVisibility(f)}}},{"../dom/helpers":163,"./button":153,"core-js/modules/es6.array.from":107,"core-js/modules/es6.array.is-array":109,"core-js/modules/es6.date.to-string":112,"core-js/modules/es6.function.name":114,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.regexp.to-string":127,"core-js/modules/es6.string.iterator":128,"core-js/modules/es6.symbol":130,"core-js/modules/es7.symbol.async-iterator":135,"core-js/modules/web.dom.iterable":136}],163:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("./pointer");n.createDiv=function(e,t){var n=document.createElement("div");return n.className=e,void 0!==t&&(n.innerHTML=t),n},n.stopPropagation=function(e){function t(e){e.stopPropagation()}function n(e){e.stopPropagation(),s&&e.preventDefault()}var o,s=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],a={capture:!1},c=r(i.pointer.starters);try{for(c.s();!(o=c.n()).done;){var l=o.value;e.addEventListener(l,t,a)}}catch(e){c.e(e)}finally{c.f()}var u,f=r(i.pointer.enders);try{for(f.s();!(u=f.n()).done;){var d=u.value;e.addEventListener(d,t,a)}}catch(e){f.e(e)}finally{f.f()}var p,h=r(i.pointer.prevents);try{for(h.s();!(p=h.n()).done;){var m=p.value;e.addEventListener(m,n,a)}}catch(e){h.e(e)}finally{h.f()}}},{"./pointer":168,"core-js/modules/es6.array.from":107,"core-js/modules/es6.array.is-array":109,"core-js/modules/es6.date.to-string":112,"core-js/modules/es6.function.name":114,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.regexp.to-string":127,"core-js/modules/es6.string.iterator":128,"core-js/modules/es6.symbol":130,"core-js/modules/es7.symbol.async-iterator":135,"core-js/modules/web.dom.iterable":136}],164:[function(e,t,n){"use strict";e("core-js/modules/es6.number.constructor"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.KBD_NONE=0,n.KBD_0=48,n.KBD_1=49,n.KBD_2=50,n.KBD_3=51,n.KBD_4=52,n.KBD_5=53,n.KBD_6=54,n.KBD_7=55,n.KBD_8=56,n.KBD_9=57,n.KBD_a=65,n.KBD_b=66,n.KBD_c=67,n.KBD_d=68,n.KBD_e=69,n.KBD_f=70,n.KBD_g=71,n.KBD_h=72,n.KBD_i=73,n.KBD_j=74,n.KBD_k=75,n.KBD_l=76,n.KBD_m=77,n.KBD_n=78,n.KBD_o=79,n.KBD_p=80,n.KBD_q=81,n.KBD_r=82,n.KBD_s=83,n.KBD_t=84,n.KBD_u=85,n.KBD_v=86,n.KBD_w=87,n.KBD_x=88,n.KBD_y=89,n.KBD_z=90,n.KBD_f1=290,n.KBD_f2=291,n.KBD_f3=292,n.KBD_f4=293,n.KBD_f5=294,n.KBD_f6=295,n.KBD_f7=296,n.KBD_f8=297,n.KBD_f9=298,n.KBD_f10=299,n.KBD_f11=300,n.KBD_f12=301,n.KBD_kp0=320,n.KBD_kp1=321,n.KBD_kp2=322,n.KBD_kp3=323,n.KBD_kp4=324,n.KBD_kp5=325,n.KBD_kp6=326,n.KBD_kp7=327,n.KBD_kp8=328,n.KBD_kp9=329,n.KBD_kpperiod=330,n.KBD_kpdivide=331,n.KBD_kpmultiply=332,n.KBD_kpminus=333,n.KBD_kpplus=334,n.KBD_kpenter=335,n.KBD_esc=256,n.KBD_tab=258,n.KBD_backspace=259,n.KBD_enter=257,n.KBD_space=32,n.KBD_leftalt=342,n.KBD_rightalt=346,n.KBD_leftctrl=341,n.KBD_rightctrl=345,n.KBD_leftshift=340,n.KBD_rightshift=344,n.KBD_capslock=280,n.KBD_scrolllock=281,n.KBD_numlock=282,n.KBD_grave=96,n.KBD_minus=45,n.KBD_equals=61,n.KBD_backslash=92,n.KBD_leftbracket=91,n.KBD_rightbracket=93,n.KBD_semicolon=59,n.KBD_quote=39,n.KBD_period=46,n.KBD_comma=44,n.KBD_slash=47,n.KBD_printscreen=283,n.KBD_pause=284,n.KBD_insert=260,n.KBD_home=268,n.KBD_pageup=266,n.KBD_delete=261,n.KBD_end=269,n.KBD_pagedown=267,n.KBD_left=263,n.KBD_up=265,n.KBD_down=264,n.KBD_right=262,n.KBD_extra_lt_gt=348,n.domToKeyCodes={8:n.KBD_backspace,9:n.KBD_tab,13:n.KBD_enter,16:n.KBD_leftshift,17:n.KBD_leftctrl,18:n.KBD_leftalt,19:n.KBD_pause,27:n.KBD_esc,32:n.KBD_space,33:n.KBD_pageup,34:n.KBD_pagedown,35:n.KBD_end,36:n.KBD_home,37:n.KBD_left,38:n.KBD_up,39:n.KBD_right,40:n.KBD_down,45:n.KBD_insert,46:n.KBD_delete,48:n.KBD_0,49:n.KBD_1,50:n.KBD_2,51:n.KBD_3,52:n.KBD_4,53:n.KBD_5,54:n.KBD_6,55:n.KBD_7,56:n.KBD_8,57:n.KBD_9,59:n.KBD_semicolon,64:n.KBD_equals,65:n.KBD_a,66:n.KBD_b,67:n.KBD_c,68:n.KBD_d,69:n.KBD_e,70:n.KBD_f,71:n.KBD_g,72:n.KBD_h,73:n.KBD_i,74:n.KBD_j,75:n.KBD_k,76:n.KBD_l,77:n.KBD_m,78:n.KBD_n,79:n.KBD_o,80:n.KBD_p,81:n.KBD_q,82:n.KBD_r,83:n.KBD_s,84:n.KBD_t,85:n.KBD_u,86:n.KBD_v,87:n.KBD_w,88:n.KBD_x,89:n.KBD_y,90:n.KBD_z,91:n.KBD_leftbracket,93:n.KBD_rightbracket,96:n.KBD_kp0,97:n.KBD_kp1,98:n.KBD_kp2,99:n.KBD_kp3,100:n.KBD_kp4,101:n.KBD_kp5,102:n.KBD_kp6,103:n.KBD_kp7,104:n.KBD_kp8,105:n.KBD_kp9,111:n.KBD_kpdivide,112:n.KBD_f1,113:n.KBD_f2,114:n.KBD_f3,115:n.KBD_f4,116:n.KBD_f5,117:n.KBD_f6,118:n.KBD_f7,119:n.KBD_f8,120:n.KBD_f9,121:n.KBD_f10,122:n.KBD_f11,123:n.KBD_f12,144:n.KBD_numlock,145:n.KBD_scrolllock,173:n.KBD_minus,186:n.KBD_semicolon,187:n.KBD_equals,188:n.KBD_comma,189:n.KBD_minus,190:n.KBD_period,191:n.KBD_slash,219:n.KBD_leftbracket,220:n.KBD_backslash,221:n.KBD_rightbracket},n.namedKeyCodes={KBD_NONE:n.KBD_NONE,KBD_0:n.KBD_0,KBD_1:n.KBD_1,KBD_2:n.KBD_2,KBD_3:n.KBD_3,KBD_4:n.KBD_4,KBD_5:n.KBD_5,KBD_6:n.KBD_6,KBD_7:n.KBD_7,KBD_8:n.KBD_8,KBD_9:n.KBD_9,KBD_a:n.KBD_a,KBD_b:n.KBD_b,KBD_c:n.KBD_c,KBD_d:n.KBD_d,KBD_e:n.KBD_e,KBD_f:n.KBD_f,KBD_g:n.KBD_g,KBD_h:n.KBD_h,KBD_i:n.KBD_i,KBD_j:n.KBD_j,KBD_k:n.KBD_k,KBD_l:n.KBD_l,KBD_m:n.KBD_m,KBD_n:n.KBD_n,KBD_o:n.KBD_o,KBD_p:n.KBD_p,KBD_q:n.KBD_q,KBD_r:n.KBD_r,KBD_s:n.KBD_s,KBD_t:n.KBD_t,KBD_u:n.KBD_u,KBD_v:n.KBD_v,KBD_w:n.KBD_w,KBD_x:n.KBD_x,KBD_y:n.KBD_y,KBD_z:n.KBD_z,KBD_f1:n.KBD_f1,KBD_f2:n.KBD_f2,KBD_f3:n.KBD_f3,KBD_f4:n.KBD_f4,KBD_f5:n.KBD_f5,KBD_f6:n.KBD_f6,KBD_f7:n.KBD_f7,KBD_f8:n.KBD_f8,KBD_f9:n.KBD_f9,KBD_f10:n.KBD_f10,KBD_f11:n.KBD_f11,KBD_f12:n.KBD_f12,KBD_kp0:n.KBD_kp0,KBD_kp1:n.KBD_kp1,KBD_kp2:n.KBD_kp2,KBD_kp3:n.KBD_kp3,KBD_kp4:n.KBD_kp4,KBD_kp5:n.KBD_kp5,KBD_kp6:n.KBD_kp6,KBD_kp7:n.KBD_kp7,KBD_kp8:n.KBD_kp8,KBD_kp9:n.KBD_kp9,KBD_kpperiod:n.KBD_kpperiod,KBD_kpdivide:n.KBD_kpdivide,KBD_kpmultiply:n.KBD_kpmultiply,KBD_kpminus:n.KBD_kpminus,KBD_kpplus:n.KBD_kpplus,KBD_kpenter:n.KBD_kpenter,KBD_esc:n.KBD_esc,KBD_tab:n.KBD_tab,KBD_backspace:n.KBD_backspace,KBD_enter:n.KBD_enter,KBD_space:n.KBD_space,KBD_leftalt:n.KBD_leftalt,KBD_rightalt:n.KBD_rightalt,KBD_leftctrl:n.KBD_leftctrl,KBD_rightctrl:n.KBD_rightctrl,KBD_leftshift:n.KBD_leftshift,KBD_rightshift:n.KBD_rightshift,KBD_capslock:n.KBD_capslock,KBD_scrolllock:n.KBD_scrolllock,KBD_numlock:n.KBD_numlock,KBD_grave:n.KBD_grave,KBD_minus:n.KBD_minus,KBD_equals:n.KBD_equals,KBD_backslash:n.KBD_backslash,KBD_leftbracket:n.KBD_leftbracket,KBD_rightbracket:n.KBD_rightbracket,KBD_semicolon:n.KBD_semicolon,KBD_quote:n.KBD_quote,KBD_period:n.KBD_period,KBD_comma:n.KBD_comma,KBD_slash:n.KBD_slash,KBD_printscreen:n.KBD_printscreen,KBD_pause:n.KBD_pause,KBD_insert:n.KBD_insert,KBD_home:n.KBD_home,KBD_pageup:n.KBD_pageup,KBD_delete:n.KBD_delete,KBD_end:n.KBD_end,KBD_pagedown:n.KBD_pagedown,KBD_left:n.KBD_left,KBD_up:n.KBD_up,KBD_down:n.KBD_down,KBD_right:n.KBD_right,KBD_extra_lt_gt:n.KBD_extra_lt_gt},n.keyCodesToDom={};for(var r=0,o=Object.keys(n.domToKeyCodes);r<o.length;r++){var i=o[r],s=Number.parseInt(i,10);n.keyCodesToDom[n.domToKeyCodes[s]]=s}n.domToKeyCode=function(e){return n.domToKeyCodes[e]||0}},{"core-js/modules/es6.array.iterator":110,"core-js/modules/es6.number.constructor":115,"core-js/modules/es6.number.parse-int":118,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.keys":121,"core-js/modules/es6.object.to-string":122,"core-js/modules/web.dom.iterable":136}],165:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.array.filter"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property");Object.defineProperty(n,"__esModule",{value:!0});var s=e("notyf"),a=function(e){return e&&e.__esModule?e:{default:e}}(e("simple-keyboard")),c=e("./helpers"),l=e("./keys"),u=e("element-resize-detector")({});n.layers=function(e,t){return new f(e,t||{})};var f=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fullscreen=!1,this.keyboardVisible=!1,this.pointerLock=!1,this.pointerDisabled=!1,this.pointerButton=0,this.notyf=new s.Notyf,this.toggleKeyboard=function(){return!1},this.onFullscreenChanged=[],this.onKeyboardChanged=[],this.options=n,this.root=t,this.root.classList.add("emulator-root"),this.fullscreenElement=n.fullscreenElement||this.root,this.canvas=document.createElement("canvas"),this.canvas.className="emulator-canvas",this.video=document.createElement("video"),this.video.setAttribute("autoplay",""),this.video.setAttribute("playsinline",""),this.video.className="emulator-video",this.loading=c.createDiv("emulator-loading","\n<div class='emulator-loading-inner'>\n<pre class='emulator-loading-pre-1'>\n _ __\n (_)____ ____/ /___ _____ _________ ____ ___\n / / ___/_____/ __ / __ \\/ ___// ___/ __ \\/ __ `__ \\\n / (__ )_____/ /_/ / /_/ (__ )/ /__/ /_/ / / / / / /\n __/ /____/ \\__,_/\\____/____(_)___/\\____/_/ /_/ /_/\n /___/\n</pre>\n<pre class='emulator-loading-pre-2'>\n</pre>\n<div class='emulator-loader'>\n</div>\n</div>\n"),this.loaderText=this.loading.querySelector(".emulator-loading-pre-2"),this.mouseOverlay=c.createDiv("emulator-mouse-overlay",""),this.clickToStart=c.createDiv("emulator-click-to-start-overlay",'\n<div class="emulator-click-to-start-text">Press to start</div>\n<div class="emulator-click-to-start-icon"></div>\n'),this.clickToStart.onclick=function(){o.clickToStart.style.display="none",o.video.play()},this.root.appendChild(this.canvas),this.root.appendChild(this.video),this.root.appendChild(this.mouseOverlay),this.root.appendChild(this.clickToStart),this.root.appendChild(this.loading),this.width=t.offsetWidth,this.height=t.offsetHeight,this.onResize=[],this.onKeyDown=function(){},this.onKeyUp=function(){},this.onKeyPress=function(){},this.onKeysPress=function(){},this.onSave=function(){return Promise.reject(new Error("Not implemented"))},this.onSaveStarted=function(){},this.onSaveEnded=function(){},u.listenTo(this.root,(function(e){if(e===t){o.width=e.offsetWidth,o.height=e.offsetHeight;var n,i=r(o.onResize);try{for(i.s();!(n=i.n()).done;)(0,n.value)(o.width,o.height)}catch(e){i.e(e)}finally{i.f()}}})),this.initKeyEvents(),this.initKeyboard(),this.preventContextMenu(),this.fullscreenElement.onfullscreenchange=function(){if(document.fullscreenElement!==o.fullscreenElement){o.fullscreen=!1;var e,t=r(o.onFullscreenChanged);try{for(t.s();!(e=t.n()).done;)(0,e.value)(o.fullscreen)}catch(e){t.e(e)}finally{t.f()}}}}var t,n;return t=e,(n=[{key:"initKeyEvents",value:function(){var e=this;window.addEventListener("keydown",(function(t){var n=l.domToKeyCode(t.keyCode);e.onKeyDown(n)})),window.addEventListener("keyup",(function(t){var n=l.domToKeyCode(t.keyCode);e.onKeyUp(n)}))}},{key:"preventContextMenu",value:function(){this.root.addEventListener("contextmenu",(function(e){return e.stopPropagation(),e.preventDefault(),!1}))}},{key:"addOnResize",value:function(e){this.onResize.push(e)}},{key:"removeOnResize",value:function(e){this.onResize=this.onResize.filter((function(t){return t!==e}))}},{key:"setOnKeyDown",value:function(e){this.onKeyDown=e}},{key:"fireKeyDown",value:function(e){this.onKeyDown(e)}},{key:"setOnKeyUp",value:function(e){this.onKeyUp=e}},{key:"fireKeyUp",value:function(e){this.onKeyUp(e)}},{key:"setOnKeyPress",value:function(e){this.onKeyPress=e}},{key:"fireKeyPress",value:function(e){this.onKeyPress(e)}},{key:"setOnKeysPress",value:function(e){this.onKeysPress=e}},{key:"fireKeysPress",value:function(e){this.onKeysPress(e)}},{key:"toggleFullscreen",value:function(){if(this.fullscreen){this.fullscreen=!1,this.fullscreenElement.classList.contains("emulator-fullscreen-workaround")?this.fullscreenElement.classList.remove("emulator-fullscreen-workaround"):document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen();var e,t=r(this.onFullscreenChanged);try{for(t.s();!(e=t.n()).done;)(0,e.value)(!1)}catch(e){t.e(e)}finally{t.f()}}else{this.fullscreen=!0;var n=this.fullscreenElement;n.requestFullscreen?n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen?n.msRequestFullscreen():n.webkitEnterFullscreen?n.webkitEnterFullscreen():this.fullscreenElement.classList.add("emulator-fullscreen-workaround");var o,i=r(this.onFullscreenChanged);try{for(i.s();!(o=i.n()).done;)(0,o.value)(!0)}catch(e){i.e(e)}finally{i.f()}}}},{key:"setOnFullscreen",value:function(e){this.onFullscreenChanged.push(e)}},{key:"removeOnFullscreen",value:function(e){this.onFullscreenChanged=this.onFullscreenChanged.filter((function(t){return t!==e}))}},{key:"setOnKeyboardVisibility",value:function(e){this.onKeyboardChanged.push(e)}},{key:"removeOnKeyboardVisibility",value:function(e){this.onKeyboardChanged=this.onKeyboardChanged.filter((function(t){return t!==e}))}},{key:"save",value:function(){var e=this;return this.onSaveStarted(),this.onSave().then((function(){e.notyf.success("Saved"),e.onSaveEnded()})).catch((function(t){e.notyf.error(t.message),e.onSaveEnded()}))}},{key:"setOnSave",value:function(e){this.onSave=e}},{key:"getOnSave",value:function(){return this.onSave}},{key:"setOnSaveStarted",value:function(e){this.onSaveStarted=e}},{key:"setOnSaveEnded",value:function(e){this.onSaveEnded=e}},{key:"hideLoadingLayer",value:function(){this.loading.style.visibility="hidden"}},{key:"showLoadingLayer",value:function(){this.loading.style.visibility="visible"}},{key:"setLoadingMessage",value:function(e){this.loaderText.innerHTML=e}},{key:"switchToVideo",value:function(){this.video.style.display="block",this.canvas.style.display="none"}},{key:"showClickToStart",value:function(){this.clickToStart.style.display="flex"}},{key:"initKeyboard",value:function(){var e=this,t=!1,n=[{"{esc}":"ESC","{bksp}":"Backspace","{enter}":"⏎","{space}":"Space"},{"{esc}":"ESC","{bksp}":"Backspace","{enter}":"⏎","{space}":"Space",q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","{":"х","}":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю"}],o=0,i=this.options.keyboardDiv||c.createDiv("");i.classList.add("emulator-keyboard"),i.style.display="none",c.stopPropagation(i);var s=new a.default(i,{layout:{en:["{esc} ` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","q w e r t y u i o p { } \\","a s d f g h j k l ; ' [ {enter}","⎘ z x c v b n m , . / ] {space}"]},layoutName:"en",display:n[o],onKeyPress:function(t){if("⎘"===t)return o=(o+1)%n.length,void s.setOptions({display:n[o]});var r=function(e){if(1<e.length)return"{enter}"===e?[l.KBD_enter]:"{shift}"===e?[l.KBD_leftshift]:"{bksp}"===e?[l.KBD_backspace]:"{lock}"===e?[l.KBD_capslock]:"{tab}"===e?[l.KBD_tab]:"{space}"===e?[l.KBD_space]:"{esc}"===e?[l.KBD_esc]:"ctrl"===e?[l.KBD_leftctrl]:"{alt}"===e?[l.KBD_leftalt]:(console.warn("Unknown button",e),[]);if(","===e)return[l.KBD_comma];if("."===e)return[l.KBD_period];if("'"===e)return[l.KBD_quote];if(":"===e)return[l.KBD_semicolon];if("{"===e)return[l.KBD_leftshift,l.KBD_leftbracket];if("}"===e)return[l.KBD_leftshift,l.KBD_rightbracket];var t=l.domToKeyCode(e.toUpperCase().charCodeAt(0));return 0!==t?[t]:[]}(t);1===r.length?e.fireKeyPress(r[0]):0<r.length&&e.fireKeysPress(r)},preventMouseDownDefault:!0,preventMouseUpDefault:!0,stopMouseDownPropagation:!0,stopMouseUpPropagation:!0,autoUseTouchEvents:!0,useMouseEvents:!0});this.toggleKeyboard=function(){var n=(t=!t)?"block":"none";i.style.display=n;var o,s=r(e.onKeyboardChanged);try{for(s.s();!(o=s.n()).done;)(0,o.value)(t)}catch(n){s.e(n)}finally{s.f()}return e.keyboardVisible=t},this.options.keyboardDiv||this.mouseOverlay.appendChild(i)}}])&&i(t.prototype,n),e}();n.Layers=f},{"./helpers":163,"./keys":164,"core-js/modules/es6.array.filter":105,"core-js/modules/es6.array.from":107,"core-js/modules/es6.array.is-array":109,"core-js/modules/es6.date.to-string":112,"core-js/modules/es6.function.name":114,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.promise":123,"core-js/modules/es6.regexp.to-string":127,"core-js/modules/es6.string.iterator":128,"core-js/modules/es6.symbol":130,"core-js/modules/es7.symbol.async-iterator":135,"core-js/modules/web.dom.iterable":136,"element-resize-detector":141,notyf:149,"simple-keyboard":151}],166:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.lifecycle=function(e){var t="",n="";function r(){document[t]?e.pause():e.resume()}void 0!==document.hidden?(t="hidden",n="visibilitychange"):void 0!==document.mozHidden?(t="mozHidden",n="mozvisibilitychange"):void 0!==document.msHidden?(t="msHidden",n="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",n="webkitvisibilitychange"),document.addEventListener(n,r),e.events().onExit((function(){document.removeEventListener(n,r)}))}},{"core-js/modules/es6.object.define-property":120}],167:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.length=0,this.storage={}}var t,n;return t=e,(n=[{key:"setItem",value:function(e,t){this.storage[e]=t,this.length=Object.keys(this.storage).length}},{key:"getItem",value:function(e){var t=this.storage[e];return void 0===t?null:t}},{key:"removeItem",value:function(e){delete this.storage[e],this.length=Object.keys(this.storage).length}},{key:"key",value:function(e){var t=Object.keys(this.storage);return void 0===t[e]?null:t[e]}},{key:"clear",value:function(){this.length=0,this.storage={}}}])&&r(t.prototype,n),e}();n.MemStorage=o},{"core-js/modules/es6.array.iterator":110,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.keys":121,"core-js/modules/es6.object.to-string":122,"core-js/modules/web.dom.iterable":136}],168:[function(e,t,n){"use strict";function r(e,t){if(e.type.match(/^touch/)){var n=e,r=t.getBoundingClientRect();return{x:n.targetTouches[0].clientX-r.x,y:n.targetTouches[0].clientY-r.y,mX:0,mY:0}}return e.type.match(/^pointer/)?{x:e.offsetX,y:e.offsetY,mX:e.movementX,mY:e.movementY}:{x:e.offsetX,y:e.offsetY,mX:e.movementX,mY:e.movementY,button:0===e.button?0:1}}e("core-js/modules/es6.regexp.match"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.pointer=function(){var e=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),t=e&&!!("ontouchstart"in window),n=e&&!!window.PointerEvent,r=e&&!!window.MSPointerEvent,o=!0,i=[],s=[],a=[],c=[],l=[];return n?(i.push("pointerdown"),a.push("pointerup","pointercancel"),s.push("pointermove"),l.push("touchstart","touchmove","touchend")):r?(i.push("MSPointerDown"),s.push("MSPointerMove"),a.push("MSPointerUp")):t?(o=!1,i.push("touchstart","mousedown"),s.push("touchmove"),a.push("touchend","touchcancel","mouseup")):(i.push("mousedown"),s.push("mousemove"),a.push("mouseup"),c.push("mouseleave")),{mobile:e,canLock:o,starters:i,changers:s,enders:a,prevents:l,leavers:c}}(),n.getPointerState=r,n.pointers={bind:n.pointer,getPointerState:r}},{"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.regexp.match":126}],169:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.string.starts-with"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("./mem-storage"),i=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.prefix=n;try{this.backend=t||localStorage,this.testBackend()}catch(t){this.backend=new o.MemStorage}this.length=this.backend.length,"function"==typeof this.backend.sync&&(this.sync=function(e){r.backend.sync(e)})}var t,n;return t=e,(n=[{key:"testBackend",value:function(){var e=this.prefix+".test.record";this.backend.setItem(e,"123");var t=this.backend.getItem(e);if(this.backend.removeItem(e),"123"!==t||null!==this.backend.getItem(e))throw new Error("Storage backend is not working properly")}},{key:"setLocalStoragePrefix",value:function(e){this.prefix=e}},{key:"clear",value:function(){if(this.backend.length){for(var e=[],t=0;t<this.backend.length;++t){var n=this.backend.key(t);n&&n.startsWith(this.prefix)&&e.push(n)}for(var r=0,o=e;r<o.length;r++){var i=o[r];this.backend.removeItem(i)}this.length=this.backend.length}}},{key:"key",value:function(e){return this.backend.key(e)}},{key:"setItem",value:function(e,t){if(t&&void 0!==t.length&&0!==t.length)for(var n=0;n<t.length;){var r=t.substr(n,1024);(n+=r.length)<t.length&&(r+="@"),this.writeStringToKey(e,r),e+="."}else this.writeStringToKey(e,"")}},{key:"getItem",value:function(e){var t=this.readStringFromKey(e);if(null===t)return null;if(0===t.length)return t;for(;"@"===t[t.length-1];){t=t.substr(0,t.length-1),e+=".";var n=this.readStringFromKey(e);t+=null===n?"":n}return t}},{key:"removeItem",value:function(e){this.backend.removeItem(this.prefix+e),this.length=this.backend.length}},{key:"writeStringToKey",value:function(e,t){this.backend.setItem(this.prefix+e,t),this.length=this.backend.length}},{key:"readStringFromKey",value:function(e){return this.backend.getItem(this.prefix+e)}}])&&r(t.prototype,n),e}();n.LStorage=i},{"./mem-storage":167,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.string.starts-with":129}],170:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var r=e("./dom/layers"),o=e("./dom/lifecycle"),i=e("./network/xhr"),s=e("./graphics/_2d"),a=e("./graphics/webgl"),c=e("./graphics/video"),l=e("./controls/keyboard"),u=e("./controls/mouse"),f=e("./controls/nipple"),d=e("./controls/options"),p=e("./dom/keys"),h=e("./sound/audio-node"),m=e("./notification/notyf"),y=e("./persist/save-load"),v=e("./controls/grid"),_=e("./dom/pointer"),g=e("./dom/storage"),b=e("./js-dos"),w=new(n.EmulatorsUi=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dom={layers:r.layers,lifecycle:o.lifecycle,pointers:_.pointers,storage:new g.LStorage(void 0,"emulators.ui.")},this.network={resolveBundle:i.resolveBundle},this.graphics={webGl:a.webGl,_2d:s._2d,video:c.video},this.sound={audioNode:h.audioNode},this.persist={save:y.save,load:y.load},this.controls={getGrid:v.getGrid,namedKeyCodes:p.namedKeyCodes,domToKeyCodes:p.domToKeyCodes,domToKeyCode:p.domToKeyCode,keyCodesToDom:p.keyCodesToDom,keyboard:l.keyboard,mouse:u.mouse,nipple:f.nipple,options:d.options},this.notifications={notyf:m.notyf},this.dos=function(e,n){return new b.DosInstance(e,t,n||{})}});window.emulatorsUi=w,window.Dos=w.dos},{"./controls/grid":154,"./controls/keyboard":155,"./controls/mouse":159,"./controls/nipple":160,"./controls/options":162,"./dom/keys":164,"./dom/layers":165,"./dom/lifecycle":166,"./dom/pointer":168,"./dom/storage":169,"./graphics/_2d":171,"./graphics/video":172,"./graphics/webgl":173,"./js-dos":174,"./network/xhr":175,"./notification/notyf":176,"./persist/save-load":177,"./sound/audio-node":178,"core-js/modules/es6.object.define-property":120}],171:[function(e,t,n){"use strict";e("core-js/modules/es6.typed.uint8-clamped-array"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n._2d=function(e,t){var n=e.canvas,r=n.getContext("2d");if(null===r)throw new Error("Unable to create 2d context on given canvas");function o(){var e=c/l,t=s,r=s/e;a<r&&(t=(r=a)*e),n.style.position="relative",n.style.top=(a-r)/2+"px",n.style.left=(s-t)/2+"px",n.style.width=t+"px",n.style.height=r+"px"}function i(e,t){s=e,a=t,o()}var s=e.width,a=e.height,c=0,l=0;function u(e,t){c=e,l=t,n.width=c,n.height=l,f=new Uint8ClampedArray(e*t*4),o()}e.addOnResize(i);var f=new Uint8ClampedArray(0);t.events().onFrameSize(u),t.events().onFrame((function(e){for(var t=0,n=0;n<f.length;)f[n++]=e[t++],f[n++]=e[t++],f[n++]=e[t++],f[n++]=255;r.putImageData(new ImageData(f,c,l),0,0)})),u(t.width(),t.height()),t.events().onExit((function(){e.removeOnResize(i)}))}},{"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.typed.uint8-clamped-array":133}],172:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.video=function(e,t){e.switchToVideo(),t.events().onMessage((function(t,n){"onremotestream"===t&&window.Janus.attachMediaStream(e.video,n)}))}},{"core-js/modules/es6.object.define-property":120}],173:[function(e,t,n){"use strict";function r(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))return r;var o=e.getShaderInfoLog(r);throw e.deleteShader(r),new Error("An error occurred compiling the shaders: "+o)}e("core-js/modules/es6.typed.float32-array"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.webGl=function(e,t){var n=e.canvas,o=n.getContext("webgl");if(null===o)throw new Error("Unable to create webgl context on given canvas");var i=function(e,t,n){var o=r(e,e.VERTEX_SHADER,"\nattribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nvarying highp vec2 vTextureCoord;\n\nvoid main(void) {\n gl_Position = aVertexPosition;\n vTextureCoord = aTextureCoord;\n}\n"),i=r(e,e.FRAGMENT_SHADER,"\nvarying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\n\nvoid main(void) {\n highp vec4 color = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(color.r, color.g, color.b, 1.0);\n}\n"),s=e.createProgram();if(e.attachShader(s,o),e.attachShader(s,i),e.linkProgram(s),e.getProgramParameter(s,e.LINK_STATUS))return s;throw new Error("Unable to initialize the shader program: "+e.getProgramInfoLog(s))}(o),s=o.getAttribLocation(i,"aVertexPosition"),a=o.getAttribLocation(i,"aTextureCoord"),c=o.getUniformLocation(i,"uSampler");!function(e,t,n){var r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,1,0]),e.STATIC_DRAW),e.vertexAttribPointer(t,3,e.FLOAT,!1,0,0),e.enableVertexAttribArray(t);var o=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,o),e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,1,1,1,1,0,0,1,1,0,0,0]),e.STATIC_DRAW),e.vertexAttribPointer(n,2,e.FLOAT,!1,0,0),e.enableVertexAttribArray(n)}(o,s,a);var l=o.createTexture();o.bindTexture(o.TEXTURE_2D,l),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_S,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_T,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MIN_FILTER,o.LINEAR),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MAG_FILTER,o.LINEAR);var u=new Uint8Array([0,0,0]);function f(){var e=m/y,t=p,r=p/e;h<r&&(t=(r=h)*e),n.style.position="relative",n.style.top=(h-r)/2+"px",n.style.left=(p-t)/2+"px",n.style.width=t+"px",n.style.height=r+"px"}function d(e,t){p=e,h=t,f()}o.texImage2D(o.TEXTURE_2D,0,o.RGB,1,1,0,o.RGB,o.UNSIGNED_BYTE,u),o.useProgram(i),o.activeTexture(o.TEXTURE0),o.uniform1i(c,0);var p=e.width,h=e.height,m=0,y=0;function v(e,t){m=e,y=t,n.width=m,n.height=y,o.viewport(0,0,m,y),f()}e.addOnResize(d),t.events().onFrameSize(v),t.events().onFrame((function(e){o.texImage2D(o.TEXTURE_2D,0,o.RGB,m,y,0,o.RGB,o.UNSIGNED_BYTE,e),o.drawArrays(o.TRIANGLES,0,6)})),v(t.width(),t.height()),t.events().onExit((function(){e.removeOnResize(d)}))}},{"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.typed.float32-array":131,"core-js/modules/es6.typed.uint8-array":132}],174:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.number.is-nan"),e("core-js/modules/es6.number.constructor"),e("core-js/modules/es6.number.parse-float"),e("core-js/modules/es6.function.bind"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var s=e("./build"),a=e("./controls/layers-config"),c=e("./controls/legacy-layers-control"),l=e("./controls/null-layers-control"),u=e("./controls/layers-control"),f=e("./dom/pointer"),d=function(){function e(t,n,r){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layersConfig=null,this.unbindControls=function(){},this.storedLayersConfig=null,e.initialRun&&(emulators.cacheSeed+=" ui ("+s.Build.short+")",e.initialRun=!1),this.options=r,this.emulatorsUi=n,this.storage=n.dom.storage,this.emulatorFunction=r.emulatorFunction||"dosboxWorker",this.clickToStart=r.clickToStart||!1,this.layers=this.emulatorsUi.dom.layers(t,r.layersOptions),this.layers.showLoadingLayer(),this.createTransportLayer=r.createTransportLayer,this.mobileControls=f.pointers.bind.mobile,this.mirroredControls="true"===this.storage.getItem("mirroredControls");var i=Number.parseFloat(null!==(o=this.storage.getItem("scaleControls"))&&void 0!==o?o:"1.0");if(this.scaleControls=Number.isNaN(i)?1:i,this.onMobileControlsChanged=function(){},"backend"===this.emulatorFunction&&void 0===this.createTransportLayer)throw new Error("Emulator function set to 'backend' but 'createTransportLayer' is not a function")}var t,n,r,d,p,h,m,y,v,_;return t=e,(n=[{key:"run",value:(_=o(regeneratorRuntime.mark((function e(t,n,r){var o,i,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stop();case 2:return this.layers.setLoadingMessage("Starting..."),o=null!=r&&0<r.length?r:t+".changes",e.prev=4,e.next=7,this.runBundle(t,n,o);case 7:i=e.sent,e.next=16;break;case 10:throw e.prev=10,e.t0=e.catch(4),this.layers.setLoadingMessage("Unexpected error occured..."),this.layers.notyf.error({message:"Can't start emulator look browser logs for more info"}),console.error(e.t0),e.t0;case 16:if(s=this.emulatorsUi,"janus"!==this.emulatorFunction){e.next=21;break}s.graphics.video(this.layers,i),e.next=33;break;case 21:if(s.persist.save(o,this.layers,i,emulators),e.prev=22,!0===this.options.noWebGL)throw new Error("WebGL is disabled by options");e.next=25;break;case 25:s.graphics.webGl(this.layers,i),e.next=32;break;case 28:e.prev=28,e.t1=e.catch(22),console.error("Unable to create webgl canvas, fallback to 2d rendering"),s.graphics._2d(this.layers,i);case 32:s.sound.audioNode(i);case 33:return s.dom.lifecycle(i),e.next=36,i.config();case 36:return c=e.sent,e.next=39,this.setLayersConfig(a.extractLayersConfig(c));case 39:return this.mobileControls||(this.mobileControls=!0,this.disableMobileControls()),this.layers.setLoadingMessage("Ready"),this.layers.hideLoadingLayer(),this.clickToStart&&this.layers.showClickToStart(),e.abrupt("return",i);case 44:case"end":return e.stop()}}),e,this,[[4,10],[22,28]])}))),function(e,t,n){return _.apply(this,arguments)})},{key:"stop",value:(v=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.layers.showLoadingLayer(),void 0===this.ciPromise)return e.abrupt("return");e.next=3;break;case 3:return e.next=5,this.ciPromise;case 5:return t=e.sent,delete this.ciPromise,e.next=9,t.exit();case 9:return e.abrupt("return");case 10:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"setLayersConfig",value:(y=o(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===this.ciPromise)return e.abrupt("return");e.next=2;break;case 2:return e.next=4,this.ciPromise;case 4:r=e.sent,this.layersConfig=t,this.unbindControls(),null===t?this.unbindControls=l.initNullLayersControl(this.layers,r):void 0===t.version?this.unbindControls=c.initLegacyLayersControl(this.layers,t,r):this.unbindControls=u.initLayersControl(this.layers,t,r,this,this.mirroredControls,this.scaleControls,n);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return y.apply(this,arguments)})},{key:"getLayersConfig",value:function(){return this.layersConfig}},{key:"enableMobileControls",value:(m=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mobileControls)return e.abrupt("return");e.next=2;break;case 2:return this.mobileControls=!0,e.next=5,this.setLayersConfig(this.storedLayersConfig);case 5:this.storedLayersConfig=null,this.onMobileControlsChanged(!0);case 7:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"disableMobileControls",value:(h=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mobileControls){e.next=2;break}return e.abrupt("return");case 2:return this.mobileControls=!1,this.storedLayersConfig=this.layersConfig,e.next=6,this.setLayersConfig(null);case 6:this.onMobileControlsChanged(!1);case 7:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"setMirroredControls",value:(p=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mirroredControls===t)return e.abrupt("return");e.next=2;break;case 2:if(this.mirroredControls=t,this.storage.setItem("mirroredControls",t+""),!t){e.next=14;break}if(this.mobileControls)return e.next=8,this.setLayersConfig(this.layersConfig);e.next=10;break;case 8:e.next=12;break;case 10:return e.next=12,this.enableMobileControls();case 12:case 17:e.next=19;break;case 14:if(this.mobileControls)return e.next=17,this.setLayersConfig(this.layersConfig);e.next=19;break;case 19:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"setScaleControls",value:(d=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===this.scaleControls)return e.abrupt("return");e.next=2;break;case 2:if(this.scaleControls=t,this.storage.setItem("scaleControls",t+""),this.mobileControls)return e.next=7,this.setLayersConfig(this.layersConfig);e.next=7;break;case 7:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"setOnMobileControlsChanged",value:function(e){this.onMobileControlsChanged=e}},{key:"runBundle",value:(r=o(regeneratorRuntime.mark((function e(t,n,r){var o,i,s,a,c,l=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.emulatorsUi,"janus"!==this.emulatorFunction){e.next=6;break}this.layers.setLoadingMessage("Connecting..."),this.ciPromise=emulators.janus(t),e.next=30;break;case 6:if(this.layers.setLoadingMessage("Downloading bundle ..."),i=o.network.resolveBundle(t,{onprogress:function(e){return l.layers.setLoadingMessage("Downloading bundle "+e+"%")}}),e.prev=8,null!=n&&0<n.length)return e.next=12,o.network.resolveBundle(n,{httpCache:!1});e.next=15;break;case 12:s=e.sent,e.next=18;break;case 15:return e.next=17,o.persist.load(r,emulators);case 17:s=e.sent;case 18:return e.next=20,i;case 20:a=e.sent,"backend"===this.emulatorFunction?this.ciPromise=emulators.backend([a,s],this.createTransportLayer()):this.ciPromise=emulators[this.emulatorFunction]([a,s]),e.next=30;break;case 24:return e.prev=24,e.t0=e.catch(8),e.next=28,i;case 28:c=e.sent,"backend"===this.emulatorFunction?this.ciPromise=emulators.backend([c],this.createTransportLayer()):this.ciPromise=emulators[this.emulatorFunction]([c]);case 30:return e.abrupt("return",this.ciPromise);case 31:case"end":return e.stop()}}),e,this,[[8,24]])}))),function(e,t,n){return r.apply(this,arguments)})}])&&i(t.prototype,n),e}();(n.DosInstance=d).initialRun=!0},{"./build":152,"./controls/layers-config":156,"./controls/layers-control":157,"./controls/legacy-layers-control":158,"./controls/null-layers-control":161,"./dom/pointer":168,"core-js/modules/es6.function.bind":113,"core-js/modules/es6.number.constructor":115,"core-js/modules/es6.number.is-nan":116,"core-js/modules/es6.number.parse-float":117,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.promise":123,"regenerator-runtime/runtime":150}],175:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(){var e;return e=regeneratorRuntime.mark((function e(t,n){var r,o,i,s,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(null==n?void 0:n.cache)||null,o=null==n?void 0:n.onprogress,i=!(!1===(null==n?void 0:n.httpCache)),e.prev=3,null===r)throw new Error("no-cache");e.next=6;break;case 6:if(e.t0=r,e.t0){e.next=11;break}return e.next=10,emulators.cache();case 10:e.t0=e.sent;case 11:return s=e.t0,e.next=14,s.get(t);case 14:return a=e.sent,void 0!==o&&o(100),e.abrupt("return",new Uint8Array(a));case 19:return e.prev=19,e.t1=e.catch(3),e.abrupt("return",new Promise((function(e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.overrideMimeType("text/plain; charset=x-user-defined"),r.addEventListener("error",(function(){n(new Error("Network error, can't download "+t))})),r.addEventListener("abort",(function(){n(new Error("Request canceled for url "+t))}),!1),r.responseType="arraybuffer",r.onreadystatechange=function(){4===r.readyState&&(200===r.status?(void 0!==o&&o(100),e(new Uint8Array(r.response))):n(new Error("Network error, can't download "+t)))},void 0!==o&&(r.onprogress=function(e){if(e.total&&0<e.total){var t=Math.round(1e4*e.loaded/e.total)/100;o(t)}}),!1===i&&(r.setRequestHeader("Cache-Control","no-cache, no-store, max-age=0"),r.setRequestHeader("Expires","Tue, 01 Jan 1980 1:00:00 GMT"),r.setRequestHeader("Pragma","no-cache")),r.send()})));case 22:case"end":return e.stop()}}),e,null,[[3,19]])})),(o=function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}).apply(this,arguments)}e("core-js/modules/es6.typed.uint8-array"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.resolveBundle=function(e,t){return o.apply(this,arguments)}},{"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.promise":123,"core-js/modules/es6.typed.uint8-array":132,"regenerator-runtime/runtime":150}],176:[function(e,t,n){"use strict";e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0}),n.notyf=function(e,t){var n=e.notyf;t.events().onMessage((function(e){if("error"===e){for(var t=arguments.length,r=new Array(1<t?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n.error({message:JSON.stringify(r)})}}))}},{"core-js/modules/es6.object.define-property":120}],177:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i="emulators-ui-saves";function s(){return(s=o(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.cache(i);case 2:return r=e.sent,e.abrupt("return",r.get(t).then((function(e){return new Uint8Array(e)})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}n.save=function(e,t,n,r){t.setOnSave(o(regeneratorRuntime.mark((function t(){var o,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.cache(i);case 2:return o=t.sent,t.next=5,n.persist();case 5:return s=t.sent,t.abrupt("return",o.put(e,s.buffer));case 7:case"end":return t.stop()}}),t)}))))},n.load=function(e,t){return s.apply(this,arguments)}},{"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.promise":123,"core-js/modules/es6.typed.uint8-array":132,"regenerator-runtime/runtime":150}],178:[function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.is-array"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.date.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.array.fill"),e("core-js/modules/es6.object.define-property"),Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.samplesQueue=[]}var t,n;return t=e,(n=[{key:"push",value:function(e){this.samplesQueue.push(e)}},{key:"length",value:function(){var e,t=0,n=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,s=!0,a=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==o.return||o.return()}finally{if(a)throw i}}}}(this.samplesQueue);try{for(n.s();!(e=n.n()).done;)t+=e.value.length}catch(e){n.e(e)}finally{n.f()}return t}},{key:"writeTo",value:function(e,t){for(var n=0;0<this.samplesQueue.length;){var r=this.samplesQueue[0],o=Math.min(t-n,r.length);if(o===r.length?(e.set(r,n),this.samplesQueue.shift()):(e.set(r.slice(0,o),n),this.samplesQueue[0]=r.slice(o)),(n+=o)===t)break}n<t&&e.fill(0,n)}}])&&o(t.prototype,n),e}();n.audioNode=function(e){var t=e.soundFrequency();if(0!==t){var n=null;if("undefined"!=typeof AudioContext?n=new AudioContext({sampleRate:t,latencyHint:"interactive"}):void 0!==window.webkitAudioContext&&(n=new window.webkitAudioContext({sampleRate:t,latencyHint:"interactive"})),null!=n){var r=new i;e.events().onSoundPush((function(e){r.length()<6144&&r.push(e)}));var o=n.createScriptProcessor(2048,0,1),s=!1;o.onaudioprocess=function(e){var t=e.outputBuffer.length,n=e.outputBuffer.numberOfChannels,o=r.length();if(s=s||2048<=o)for(var i=0;i<n;i++){var a=e.outputBuffer.getChannelData(i);r.writeTo(a,t)}},o.connect(n.destination);var a=function(){null!==n&&"suspended"===n.state&&n.resume()};document.addEventListener("click",a,{once:!0}),document.addEventListener("touchstart",a,{once:!0}),document.addEventListener("keydown",a,{once:!0}),e.events().onExit((function(){null!==n&&(o.disconnect(),n.close()),document.removeEventListener("click",a),document.removeEventListener("touchstart",a),document.removeEventListener("keydown",a)}))}}else console.warn("Can't create audio node with sampleRate === 0, ingnoring")}},{"core-js/modules/es6.array.fill":104,"core-js/modules/es6.array.from":107,"core-js/modules/es6.array.is-array":109,"core-js/modules/es6.date.to-string":112,"core-js/modules/es6.function.name":114,"core-js/modules/es6.object.define-property":120,"core-js/modules/es6.object.to-string":122,"core-js/modules/es6.regexp.to-string":127,"core-js/modules/es6.string.iterator":128,"core-js/modules/es6.symbol":130,"core-js/modules/es7.symbol.async-iterator":135,"core-js/modules/web.dom.iterable":136}]},{},[170]),function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],2:[function(e,t,n){var r=e("./_wks")("unscopables"),o=Array.prototype;null==o[r]&&e("./_hide")(o,r,{}),t.exports=function(e){o[r][e]=!0}},{"./_hide":31,"./_wks":99}],3:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);t.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},{"./_string-at":80}],4:[function(e,t,n){t.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},{}],5:[function(e,t,n){var r=e("./_is-object");t.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":39}],6:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),i=e("./_to-length");t.exports=[].copyWithin||function(e,t,n){var s=r(this),a=i(s.length),c=o(e,a),l=o(t,a),u=2<arguments.length?n:void 0,f=Math.min((void 0===u?a:o(u,a))-l,a-c),d=1;for(l<c&&c<l+f&&(d=-1,l+=f-1,c+=f-1);0<f--;)l in s?s[c]=s[l]:delete s[c],c+=d,l+=d;return s}},{"./_to-absolute-index":85,"./_to-length":89,"./_to-object":90}],7:[function(e,t,n){"use strict";var r=e("./_to-object"),o=e("./_to-absolute-index"),i=e("./_to-length");t.exports=function(e,t,n){for(var s=r(this),a=i(s.length),c=arguments.length,l=o(1<c?t:void 0,a),u=2<c?n:void 0,f=void 0===u?a:o(u,a);l<f;)s[l++]=e;return s}},{"./_to-absolute-index":85,"./_to-length":89,"./_to-object":90}],8:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_to-length"),i=e("./_to-absolute-index");t.exports=function(e){return function(t,n,s){var a,c=r(t),l=o(c.length),u=i(s,l);if(e&&n!=n){for(;u<l;)if((a=c[u++])!=a)return!0}else for(;u<l;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},{"./_to-absolute-index":85,"./_to-iobject":88,"./_to-length":89}],9:[function(e,t,n){var r=e("./_ctx"),o=e("./_iobject"),i=e("./_to-object"),s=e("./_to-length"),a=e("./_array-species-create");t.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,f=6==e,d=5==e||f,p=t||a;return function(t,a,h){for(var m,y,v=i(t),_=o(v),g=r(a,h,3),b=s(_.length),w=0,x=n?p(t,b):c?p(t,0):void 0;w<b;w++)if((d||w in _)&&(y=g(m=_[w],w,v),e))if(n)x[w]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(u)return!1;return f?-1:l||u?u:x}}},{"./_array-species-create":11,"./_ctx":16,"./_iobject":36,"./_to-length":89,"./_to-object":90}],10:[function(e,t,n){var r=e("./_is-object"),o=e("./_is-array"),i=e("./_wks")("species");t.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":38,"./_is-object":39,"./_wks":99}],11:[function(e,t,n){var r=e("./_array-species-constructor");t.exports=function(e,t){return new(r(e))(t)}},{"./_array-species-constructor":10}],12:[function(e,t,n){var r=e("./_cof"),o=e("./_wks")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},{"./_cof":13,"./_wks":99}],13:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],14:[function(e,t,n){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},{}],15:[function(e,t,n){"use strict";var r=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},{"./_object-dp":54,"./_property-desc":69}],16:[function(e,t,n){var r=e("./_a-function");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":1}],17:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],18:[function(e,t,n){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":24}],19:[function(e,t,n){var r=e("./_is-object"),o=e("./_global").document,i=r(o)&&r(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":29,"./_is-object":39}],20:[function(e,t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],21:[function(e,t,n){var r=e("./_object-keys"),o=e("./_object-gops"),i=e("./_object-pie");t.exports=function(e){var t=r(e),n=o.f;if(n)for(var s,a=n(e),c=i.f,l=0;a.length>l;)c.call(e,s=a[l++])&&t.push(s);return t}},{"./_object-gops":59,"./_object-keys":62,"./_object-pie":63}],22:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_hide"),s=e("./_redefine"),a=e("./_ctx"),c="prototype",l=function(e,t,n){var u,f,d,p,h=e&l.F,m=e&l.G,y=e&l.S,v=e&l.P,_=e&l.B,g=m?r:y?r[t]||(r[t]={}):(r[t]||{})[c],b=m?o:o[t]||(o[t]={}),w=b[c]||(b[c]={});for(u in m&&(n=t),n)d=((f=!h&&g&&void 0!==g[u])?g:n)[u],p=_&&f?a(d,r):v&&"function"==typeof d?a(Function.call,d):d,g&&s(g,u,d,e&l.U),b[u]!=d&&i(b,u,p),v&&w[u]!=d&&(w[u]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},{"./_core":14,"./_ctx":16,"./_global":29,"./_hide":31,"./_redefine":71}],23:[function(e,t,n){var r=e("./_wks")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},{"./_wks":99}],24:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],25:[function(e,t,n){"use strict";e("./es6.regexp.exec");var r=e("./_redefine"),o=e("./_hide"),i=e("./_fails"),s=e("./_defined"),a=e("./_wks"),c=e("./_regexp-exec"),l=a("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(e,t,n){var d=a(e),p=!i((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),h=p?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!t})):void 0;if(!p||!h||"replace"===e&&!u||"split"===e&&!f){var m=/./[d],y=n(s,d,""[e],(function(e,t,n,r,o){return t.exec===c?p&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=y[0],_=y[1];r(String.prototype,e,v),o(RegExp.prototype,d,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}}},{"./_defined":17,"./_fails":24,"./_hide":31,"./_redefine":71,"./_regexp-exec":73,"./_wks":99,"./es6.regexp.exec":115}],26:[function(e,t,n){"use strict";var r=e("./_an-object");t.exports=function(){var e=r(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":5}],27:[function(e,t,n){var r=e("./_ctx"),o=e("./_iter-call"),i=e("./_is-array-iter"),s=e("./_an-object"),a=e("./_to-length"),c=e("./core.get-iterator-method"),l={},u={};(n=t.exports=function(e,t,n,f,d){var p,h,m,y,v=d?function(){return e}:c(e),_=r(n,f,t?2:1),g=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(p=a(e.length);g<p;g++)if((y=t?_(s(h=e[g])[0],h[1]):_(e[g]))===l||y===u)return y}else for(m=v.call(e);!(h=m.next()).done;)if((y=o(m,_,h.value,t))===l||y===u)return y}).BREAK=l,n.RETURN=u},{"./_an-object":5,"./_ctx":16,"./_is-array-iter":37,"./_iter-call":41,"./_to-length":89,"./core.get-iterator-method":100}],28:[function(e,t,n){t.exports=e("./_shared")("native-function-to-string",Function.toString)},{"./_shared":78}],29:[function(e,t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],30:[function(e,t,n){var r={}.hasOwnProperty;t.exports=function(e,t){return r.call(e,t)}},{}],31:[function(e,t,n){var r=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},{"./_descriptors":18,"./_object-dp":54,"./_property-desc":69}],32:[function(e,t,n){var r=e("./_global").document;t.exports=r&&r.documentElement},{"./_global":29}],33:[function(e,t,n){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":18,"./_dom-create":19,"./_fails":24}],34:[function(e,t,n){var r=e("./_is-object"),o=e("./_set-proto").set;t.exports=function(e,t,n){var i,s=t.constructor;return s!==n&&"function"==typeof s&&(i=s.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},{"./_is-object":39,"./_set-proto":74}],35:[function(e,t,n){t.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},{}],36:[function(e,t,n){var r=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},{"./_cof":13}],37:[function(e,t,n){var r=e("./_iterators"),o=e("./_wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},{"./_iterators":46,"./_wks":99}],38:[function(e,t,n){var r=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":13}],39:[function(e,t,n){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],40:[function(e,t,n){var r=e("./_is-object"),o=e("./_cof"),i=e("./_wks")("match");t.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},{"./_cof":13,"./_is-object":39,"./_wks":99}],41:[function(e,t,n){var r=e("./_an-object");t.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},{"./_an-object":5}],42:[function(e,t,n){"use strict";var r=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),s={};e("./_hide")(s,e("./_wks")("iterator"),(function(){return this})),t.exports=function(e,t,n){e.prototype=r(s,{next:o(1,n)}),i(e,t+" Iterator")}},{"./_hide":31,"./_object-create":53,"./_property-desc":69,"./_set-to-string-tag":76,"./_wks":99}],43:[function(e,t,n){"use strict";function r(){return this}var o=e("./_library"),i=e("./_export"),s=e("./_redefine"),a=e("./_hide"),c=e("./_iterators"),l=e("./_iter-create"),u=e("./_set-to-string-tag"),f=e("./_object-gpo"),d=e("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),h="values";t.exports=function(e,t,n,m,y,v,_){function g(e){if(!p&&e in S)return S[e];switch(e){case"keys":case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}}l(n,t,m);var b,w,x,j=t+" Iterator",k=y==h,E=!1,S=e.prototype,C=S[d]||S["@@iterator"]||y&&S[y],D=C||g(y),O=y?k?g("entries"):D:void 0,P="Array"==t&&S.entries||C;if(P&&(x=f(P.call(new e)))!==Object.prototype&&x.next&&(u(x,j,!0),o||"function"==typeof x[d]||a(x,d,r)),k&&C&&C.name!==h&&(E=!0,D=function(){return C.call(this)}),o&&!_||!p&&!E&&S[d]||a(S,d,D),c[t]=D,c[j]=r,y)if(b={values:k?D:g(h),keys:v?D:g("keys"),entries:O},_)for(w in b)w in S||s(S,w,b[w]);else i(i.P+i.F*(p||E),t,b);return b}},{"./_export":22,"./_hide":31,"./_iter-create":42,"./_iterators":46,"./_library":47,"./_object-gpo":60,"./_redefine":71,"./_set-to-string-tag":76,"./_wks":99}],44:[function(e,t,n){var r=e("./_wks")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}t.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},e(i)}catch(e){}return n}},{"./_wks":99}],45:[function(e,t,n){t.exports=function(e,t){return{value:t,done:!!e}}},{}],46:[function(e,t,n){t.exports={}},{}],47:[function(e,t,n){t.exports=!1},{}],48:[function(e,t,n){var r=e("./_math-sign"),o=Math.pow,i=o(2,-52),s=o(2,-23),a=o(2,127)*(2-s),c=o(2,-126);t.exports=Math.fround||function(e){var t,n,o=Math.abs(e),l=r(e);return o<c?l*(o/c/s+1/i-1/i)*c*s:a<(n=(t=(1+s/i)*o)-(t-o))||n!=n?l*(1/0):l*n}},{"./_math-sign":49}],49:[function(e,t,n){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],50:[function(e,t,n){function r(e){a(e,o,{value:{i:"O"+ ++c,w:{}}})}var o=e("./_uid")("meta"),i=e("./_is-object"),s=e("./_has"),a=e("./_object-dp").f,c=0,l=Object.isExtensible||function(){return!0},u=!e("./_fails")((function(){return l(Object.preventExtensions({}))})),f=t.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,o)){if(!l(e))return"F";if(!t)return"E";r(e)}return e[o].i},getWeak:function(e,t){if(!s(e,o)){if(!l(e))return!0;if(!t)return!1;r(e)}return e[o].w},onFreeze:function(e){return u&&f.NEED&&l(e)&&!s(e,o)&&r(e),e}}},{"./_fails":24,"./_has":30,"./_is-object":39,"./_object-dp":54,"./_uid":95}],51:[function(e,t,n){var r=e("./_global"),o=e("./_task").set,i=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,c="process"==e("./_cof")(s);t.exports=function(){function e(){var e,r;for(c&&(e=s.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(e){throw t?l():n=void 0,e}}n=void 0,e&&e.enter()}var t,n,l;if(c)l=function(){s.nextTick(e)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);l=function(){u.then(e)}}else l=function(){o.call(r,e)};else{var f=!0,d=document.createTextNode("");new i(e).observe(d,{characterData:!0}),l=function(){d.data=f=!f}}return function(e){var r={fn:e,next:void 0};n&&(n.next=r),t||(t=r,l()),n=r}}},{"./_cof":13,"./_global":29,"./_task":84}],52:[function(e,t,n){"use strict";var r=e("./_a-function");function o(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}t.exports.f=function(e){return new o(e)}},{"./_a-function":1}],53:[function(e,t,n){function r(){}var o=e("./_an-object"),i=e("./_object-dps"),s=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),c="prototype",l=function(){var t,n=e("./_dom-create")("iframe"),r=s.length;for(n.style.display="none",e("./_html").appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l[c][s[r]];return l()};t.exports=Object.create||function(e,t){var n;return null!==e?(r[c]=o(e),n=new r,r[c]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},{"./_an-object":5,"./_dom-create":19,"./_enum-bug-keys":20,"./_html":32,"./_object-dps":55,"./_shared-key":77}],54:[function(e,t,n){var r=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),s=Object.defineProperty;n.f=e("./_descriptors")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},{"./_an-object":5,"./_descriptors":18,"./_ie8-dom-define":33,"./_to-primitive":91}],55:[function(e,t,n){var r=e("./_object-dp"),o=e("./_an-object"),i=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){o(e);for(var n,s=i(t),a=s.length,c=0;c<a;)r.f(e,n=s[c++],t[n]);return e}},{"./_an-object":5,"./_descriptors":18,"./_object-dp":54,"./_object-keys":62}],56:[function(e,t,n){var r=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),s=e("./_to-primitive"),a=e("./_has"),c=e("./_ie8-dom-define"),l=Object.getOwnPropertyDescriptor;n.f=e("./_descriptors")?l:function(e,t){if(e=i(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},{"./_descriptors":18,"./_has":30,"./_ie8-dom-define":33,"./_object-pie":63,"./_property-desc":69,"./_to-iobject":88,"./_to-primitive":91}],57:[function(e,t,n){var r=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(r(e))}},{"./_object-gopn":58,"./_to-iobject":88}],58:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"./_enum-bug-keys":20,"./_object-keys-internal":61}],59:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],60:[function(e,t,n){var r=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},{"./_has":30,"./_shared-key":77,"./_to-object":90}],61:[function(e,t,n){var r=e("./_has"),o=e("./_to-iobject"),i=e("./_array-includes")(!1),s=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(l,n)||l.push(n));return l}},{"./_array-includes":8,"./_has":30,"./_shared-key":77,"./_to-iobject":88}],62:[function(e,t,n){var r=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"./_enum-bug-keys":20,"./_object-keys-internal":61}],63:[function(e,t,n){n.f={}.propertyIsEnumerable},{}],64:[function(e,t,n){var r=e("./_export"),o=e("./_core"),i=e("./_fails");t.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",s)}},{"./_core":14,"./_export":22,"./_fails":24}],65:[function(e,t,n){var r=e("./_object-gopn"),o=e("./_object-gops"),i=e("./_an-object"),s=e("./_global").Reflect;t.exports=s&&s.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},{"./_an-object":5,"./_global":29,"./_object-gopn":58,"./_object-gops":59}],66:[function(e,t,n){var r=e("./_global").parseInt,o=e("./_string-trim").trim,i=e("./_string-ws"),s=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},{"./_global":29,"./_string-trim":82,"./_string-ws":83}],67:[function(e,t,n){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],68:[function(e,t,n){var r=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},{"./_an-object":5,"./_is-object":39,"./_new-promise-capability":52}],69:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],70:[function(e,t,n){var r=e("./_redefine");t.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},{"./_redefine":71}],71:[function(e,t,n){var r=e("./_global"),o=e("./_hide"),i=e("./_has"),s=e("./_uid")("src"),a=e("./_function-to-string"),c="toString",l=(""+a).split(c);e("./_core").inspectSource=function(e){return a.call(e)},(t.exports=function(e,t,n,a){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,s)||o(n,s,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},{"./_core":14,"./_function-to-string":28,"./_global":29,"./_has":30,"./_hide":31,"./_uid":95}],72:[function(e,t,n){"use strict";var r=e("./_classof"),o=RegExp.prototype.exec;t.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},{"./_classof":12}],73:[function(e,t,n){"use strict";var r,o,i=e("./_flags"),s=RegExp.prototype.exec,a=String.prototype.replace,c=s,l="lastIndex",u=(r=/a/,o=/b*/g,s.call(r,"a"),s.call(o,"a"),0!==r[l]||0!==o[l]),f=void 0!==/()??/.exec("")[1];(u||f)&&(c=function(e){var t,n,r,o,c=this;return f&&(n=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),u&&(t=c[l]),r=s.call(c,e),u&&r&&(c[l]=c.global?r.index+r[0].length:t),f&&r&&1<r.length&&a.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=c},{"./_flags":26}],74:[function(e,t,n){function r(e,t){if(i(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}var o=e("./_is-object"),i=e("./_an-object");t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,o){try{(o=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(e,t){return r(e,t),n?e.__proto__=t:o(e,t),e}}({},!1):void 0),check:r}},{"./_an-object":5,"./_ctx":16,"./_is-object":39,"./_object-gopd":56}],75:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_object-dp"),i=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t=r[e];i&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_descriptors":18,"./_global":29,"./_object-dp":54,"./_wks":99}],76:[function(e,t,n){var r=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"./_has":30,"./_object-dp":54,"./_wks":99}],77:[function(e,t,n){var r=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return r[e]||(r[e]=o(e))}},{"./_shared":78,"./_uid":95}],78:[function(e,t,n){var r=e("./_core"),o=e("./_global"),i="__core-js_shared__",s=o[i]||(o[i]={});(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:e("./_library")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":14,"./_global":29,"./_library":47}],79:[function(e,t,n){var r=e("./_an-object"),o=e("./_a-function"),i=e("./_wks")("species");t.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||null==(n=r(s)[i])?t:o(n)}},{"./_a-function":1,"./_an-object":5,"./_wks":99}],80:[function(e,t,n){var r=e("./_to-integer"),o=e("./_defined");t.exports=function(e){return function(t,n){var i,s,a=String(o(t)),c=r(n),l=a.length;return c<0||l<=c?e?"":void 0:(i=a.charCodeAt(c))<55296||56319<i||c+1===l||(s=a.charCodeAt(c+1))<56320||57343<s?e?a.charAt(c):i:e?a.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},{"./_defined":17,"./_to-integer":87}],81:[function(e,t,n){var r=e("./_is-regexp"),o=e("./_defined");t.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},{"./_defined":17,"./_is-regexp":40}],82:[function(e,t,n){function r(e,t,n){var r={},i=s((function(){return!!a[e]()||"​…"!="​…"[e]()})),c=r[e]=i?t(f):a[e];n&&(r[n]=c),o(o.P+o.F*i,"String",r)}var o=e("./_export"),i=e("./_defined"),s=e("./_fails"),a=e("./_string-ws"),c="["+a+"]",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),f=r.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};t.exports=r},{"./_defined":17,"./_export":22,"./_fails":24,"./_string-ws":83}],83:[function(e,t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},{}],84:[function(e,t,n){function r(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}}function o(e){r.call(e.data)}var i,s,a,c=e("./_ctx"),l=e("./_invoke"),u=e("./_html"),f=e("./_dom-create"),d=e("./_global"),p=d.process,h=d.setImmediate,m=d.clearImmediate,y=d.MessageChannel,v=d.Dispatch,_=0,g={},b="onreadystatechange";h&&m||(h=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return g[++_]=function(){l("function"==typeof e?e:Function(e),t)},i(_),_},m=function(e){delete g[e]},"process"==e("./_cof")(p)?i=function(e){p.nextTick(c(r,e,1))}:v&&v.now?i=function(e){v.now(c(r,e,1))}:y?(a=(s=new y).port2,s.port1.onmessage=o,i=c(a.postMessage,a,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(i=function(e){d.postMessage(e+"","*")},d.addEventListener("message",o,!1)):i=b in f("script")?function(e){u.appendChild(f("script"))[b]=function(){u.removeChild(this),r.call(e)}}:function(e){setTimeout(c(r,e,1),0)}),t.exports={set:h,clear:m}},{"./_cof":13,"./_ctx":16,"./_dom-create":19,"./_global":29,"./_html":32,"./_invoke":35}],85:[function(e,t,n){var r=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},{"./_to-integer":87}],86:[function(e,t,n){var r=e("./_to-integer"),o=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},{"./_to-integer":87,"./_to-length":89}],87:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0<e?o:r)(e)}},{}],88:[function(e,t,n){var r=e("./_iobject"),o=e("./_defined");t.exports=function(e){return r(o(e))}},{"./_defined":17,"./_iobject":36}],89:[function(e,t,n){var r=e("./_to-integer"),o=Math.min;t.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},{"./_to-integer":87}],90:[function(e,t,n){var r=e("./_defined");t.exports=function(e){return Object(r(e))}},{"./_defined":17}],91:[function(e,t,n){var r=e("./_is-object");t.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":39}],92:[function(e,t,n){"use strict";if(e("./_descriptors")){var r=e("./_library"),o=e("./_global"),i=e("./_fails"),s=e("./_export"),a=e("./_typed"),c=e("./_typed-buffer"),l=e("./_ctx"),u=e("./_an-instance"),f=e("./_property-desc"),d=e("./_hide"),p=e("./_redefine-all"),h=e("./_to-integer"),m=e("./_to-length"),y=e("./_to-index"),v=e("./_to-absolute-index"),_=e("./_to-primitive"),g=e("./_has"),b=e("./_classof"),w=e("./_is-object"),x=e("./_to-object"),j=e("./_is-array-iter"),k=e("./_object-create"),E=e("./_object-gpo"),S=e("./_object-gopn").f,C=e("./core.get-iterator-method"),D=e("./_uid"),O=e("./_wks"),P=e("./_array-methods"),M=e("./_array-includes"),A=e("./_species-constructor"),B=e("./es6.array.iterator"),T=e("./_iterators"),I=e("./_iter-detect"),L=e("./_set-species"),K=e("./_array-fill"),R=e("./_array-copy-within"),F=e("./_object-dp"),N=e("./_object-gopd"),U=F.f,z=N.f,H=o.RangeError,W=o.TypeError,q=o.Uint8Array,V="ArrayBuffer",G="Shared"+V,Y="BYTES_PER_ELEMENT",X="prototype",$=Array[X],J=c.ArrayBuffer,Q=c.DataView,Z=P(0),ee=P(2),te=P(3),ne=P(4),re=P(5),oe=P(6),ie=M(!0),se=M(!1),ae=B.values,ce=B.keys,le=B.entries,ue=$.lastIndexOf,fe=$.reduce,de=$.reduceRight,pe=$.join,he=$.sort,me=$.slice,ye=$.toString,ve=$.toLocaleString,_e=O("iterator"),ge=O("toStringTag"),be=D("typed_constructor"),we=D("def_constructor"),xe=a.CONSTR,je=a.TYPED,ke=a.VIEW,Ee="Wrong length!",Se=P(1,(function(e,t){return Me(A(e,e[we]),t)})),Ce=i((function(){return 1===new q(new Uint16Array([1]).buffer)[0]})),De=!!q&&!!q[X].set&&i((function(){new q(1).set({})})),Oe=function(e,t){var n=h(e);if(n<0||n%t)throw H("Wrong offset!");return n},Pe=function(e){if(w(e)&&je in e)return e;throw W(e+" is not a typed array!")},Me=function(e,t){if(!w(e)||!(be in e))throw W("It is not a typed array constructor!");return new e(t)},Ae=function(e,t){return Be(A(e,e[we]),t)},Be=function(e,t){for(var n=0,r=t.length,o=Me(e,r);n<r;)o[n]=t[n++];return o},Te=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Ie=function(e,t,n){var r,o,i,s,a,c,u=x(e),f=arguments.length,d=1<f?t:void 0,p=void 0!==d,h=C(u);if(null!=h&&!j(h)){for(c=h.call(u),i=[],r=0;!(a=c.next()).done;r++)i.push(a.value);u=i}for(p&&2<f&&(d=l(d,n,2)),r=0,o=m(u.length),s=Me(this,o);r<o;r++)s[r]=p?d(u[r],r):u[r];return s},Le=function(){for(var e=0,t=arguments.length,n=Me(this,t);e<t;)n[e]=arguments[e++];return n},Ke=!!q&&i((function(){ve.call(new q(1))})),Re=function(){return ve.apply(Ke?me.call(Pe(this)):Pe(this),arguments)},Fe={copyWithin:function(e,t,n){return R.call(Pe(this),e,t,2<arguments.length?n:void 0)},every:function(e,t){return ne(Pe(this),e,1<arguments.length?t:void 0)},fill:function(e){return K.apply(Pe(this),arguments)},filter:function(e,t){return Ae(this,ee(Pe(this),e,1<arguments.length?t:void 0))},find:function(e,t){return re(Pe(this),e,1<arguments.length?t:void 0)},findIndex:function(e,t){return oe(Pe(this),e,1<arguments.length?t:void 0)},forEach:function(e,t){Z(Pe(this),e,1<arguments.length?t:void 0)},indexOf:function(e,t){return se(Pe(this),e,1<arguments.length?t:void 0)},includes:function(e,t){return ie(Pe(this),e,1<arguments.length?t:void 0)},join:function(e){return pe.apply(Pe(this),arguments)},lastIndexOf:function(e){return ue.apply(Pe(this),arguments)},map:function(e,t){return Se(Pe(this),e,1<arguments.length?t:void 0)},reduce:function(e){return fe.apply(Pe(this),arguments)},reduceRight:function(e){return de.apply(Pe(this),arguments)},reverse:function(){for(var e,t=this,n=Pe(t).length,r=Math.floor(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t},some:function(e,t){return te(Pe(this),e,1<arguments.length?t:void 0)},sort:function(e){return he.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),r=n.length,o=v(e,r);return new(A(n,n[we]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-o))}},Ne=function(e,t){return Ae(this,me.call(Pe(this),e,t))},Ue=function(e,t){Pe(this);var n=Oe(t,1),r=this.length,o=x(e),i=m(o.length),s=0;if(r<i+n)throw H(Ee);for(;s<i;)this[n+s]=o[s++]},ze={entries:function(){return le.call(Pe(this))},keys:function(){return ce.call(Pe(this))},values:function(){return ae.call(Pe(this))}},He=function(e,t){return w(e)&&e[je]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},We=function(e,t){return He(e,t=_(t,!0))?f(2,e[t]):z(e,t)},qe=function(e,t,n){return!(He(e,t=_(t,!0))&&w(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};xe||(N.f=We,F.f=qe),s(s.S+s.F*!xe,"Object",{getOwnPropertyDescriptor:We,defineProperty:qe}),i((function(){ye.call({})}))&&(ye=ve=function(){return pe.call(this)});var Ve=p({},Fe);p(Ve,ze),d(Ve,_e,ze.values),p(Ve,{slice:Ne,set:Ue,constructor:function(){},toString:ye,toLocaleString:Re}),Te(Ve,"buffer","b"),Te(Ve,"byteOffset","o"),Te(Ve,"byteLength","l"),Te(Ve,"length","e"),U(Ve,ge,{get:function(){return this[je]}}),t.exports=function(e,t,n,c){function l(e,n){U(e,n,{get:function(){return e=n,(r=this._d).v[p](e*t+r.o,Ce);var e,r},set:function(e){return r=n,o=e,i=this._d,c&&(o=(o=Math.round(o))<0?0:255<o?255:255&o),void i.v[h](r*t+i.o,o,Ce);var r,o,i},enumerable:!0})}var f=e+((c=!!c)?"Clamped":"")+"Array",p="get"+e,h="set"+e,v=o[f],_=v||{},g=v&&E(v),x=!v||!a.ABV,j={},C=v&&v[X];x?(v=n((function(e,n,r,o){u(e,v,f,"_d");var i,s,a,c,p=0,h=0;if(w(n)){if(!(n instanceof J||(c=b(n))==V||c==G))return je in n?Be(v,n):Ie.call(v,n);i=n,h=Oe(r,t);var _=n.byteLength;if(void 0===o){if(_%t)throw H(Ee);if((s=_-h)<0)throw H(Ee)}else if(_<(s=m(o)*t)+h)throw H(Ee);a=s/t}else a=y(n),i=new J(s=a*t);for(d(e,"_d",{b:i,o:h,l:s,e:a,v:new Q(i)});p<a;)l(e,p++)})),C=v[X]=k(Ve),d(C,"constructor",v)):i((function(){v(1)}))&&i((function(){new v(-1)}))&&I((function(e){new v,new v(null),new v(1.5),new v(e)}),!0)||(v=n((function(e,n,r,o){var i;return u(e,v,f),w(n)?n instanceof J||(i=b(n))==V||i==G?void 0!==o?new _(n,Oe(r,t),o):void 0!==r?new _(n,Oe(r,t)):new _(n):je in n?Be(v,n):Ie.call(v,n):new _(y(n))})),Z(g!==Function.prototype?S(_).concat(S(g)):S(_),(function(e){e in v||d(v,e,_[e])})),v[X]=C,r||(C.constructor=v));var D=C[_e],O=!!D&&("values"==D.name||null==D.name),P=ze.values;d(v,be,!0),d(C,je,f),d(C,ke,!0),d(C,we,v),(c?new v(1)[ge]==f:ge in C)||U(C,ge,{get:function(){return f}}),j[f]=v,s(s.G+s.W+s.F*(v!=_),j),s(s.S,f,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*i((function(){_.of.call(v,1)})),f,{from:Ie,of:Le}),Y in C||d(C,Y,t),s(s.P,f,Fe),L(f),s(s.P+s.F*De,f,{set:Ue}),s(s.P+s.F*!O,f,ze),r||C.toString==ye||(C.toString=ye),s(s.P+s.F*i((function(){new v(1).slice()})),f,{slice:Ne}),s(s.P+s.F*(i((function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()}))||!i((function(){C.toLocaleString.call([1,2])}))),f,{toLocaleString:Re}),T[f]=O?D:P,r||O||d(C,_e,P)}}else t.exports=function(){}},{"./_an-instance":4,"./_array-copy-within":6,"./_array-fill":7,"./_array-includes":8,"./_array-methods":9,"./_classof":12,"./_ctx":16,"./_descriptors":18,"./_export":22,"./_fails":24,"./_global":29,"./_has":30,"./_hide":31,"./_is-array-iter":37,"./_is-object":39,"./_iter-detect":44,"./_iterators":46,"./_library":47,"./_object-create":53,"./_object-dp":54,"./_object-gopd":56,"./_object-gopn":58,"./_object-gpo":60,"./_property-desc":69,"./_redefine-all":70,"./_set-species":75,"./_species-constructor":79,"./_to-absolute-index":85,"./_to-index":86,"./_to-integer":87,"./_to-length":89,"./_to-object":90,"./_to-primitive":91,"./_typed":94,"./_typed-buffer":93,"./_uid":95,"./_wks":99,"./core.get-iterator-method":100,"./es6.array.iterator":103}],93:[function(e,t,n){"use strict";var r=e("./_global"),o=e("./_descriptors"),i=e("./_library"),s=e("./_typed"),a=e("./_hide"),c=e("./_redefine-all"),l=e("./_fails"),u=e("./_an-instance"),f=e("./_to-integer"),d=e("./_to-length"),p=e("./_to-index"),h=e("./_object-gopn").f,m=e("./_object-dp").f,y=e("./_array-fill"),v=e("./_set-to-string-tag"),_="ArrayBuffer",g="DataView",b="prototype",w="Wrong index!",x=r[_],j=r[g],k=r.Math,E=r.RangeError,S=r.Infinity,C=x,D=k.abs,O=k.pow,P=k.floor,M=k.log,A=k.LN2,B="byteLength",T="byteOffset",I=o?"_b":"buffer",L=o?"_l":B,K=o?"_o":T;function R(e,t,n){var r,o,i,s=new Array(n),a=8*n-t-1,c=(1<<a)-1,l=c>>1,u=23===t?O(2,-24)-O(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=D(e))!=e||e===S?(o=e!=e?1:0,r=c):(r=P(M(e)/A),e*(i=O(2,-r))<1&&(r--,i*=2),2<=(e+=1<=r+l?u/i:u*O(2,1-l))*i&&(r++,i/=2),c<=r+l?(o=0,r=c):1<=r+l?(o=(e*i-1)*O(2,t),r+=l):(o=e*O(2,l-1)*O(2,t),r=0));8<=t;s[f++]=255&o,o/=256,t-=8);for(r=r<<t|o,a+=t;0<a;s[f++]=255&r,r/=256,a-=8);return s[--f]|=128*d,s}function F(e,t,n){var r,o=8*n-t-1,i=(1<<o)-1,s=i>>1,a=o-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;0<a;u=256*u+e[c],c--,a-=8);for(r=u&(1<<-a)-1,u>>=-a,a+=t;0<a;r=256*r+e[c],c--,a-=8);if(0===u)u=1-s;else{if(u===i)return r?NaN:l?-S:S;r+=O(2,t),u-=s}return(l?-1:1)*r*O(2,u-t)}function N(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function U(e){return[255&e]}function z(e){return[255&e,e>>8&255]}function H(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function W(e){return R(e,52,8)}function q(e){return R(e,23,4)}function V(e,t,n){m(e[b],t,{get:function(){return this[n]}})}function G(e,t,n,r){var o=p(+n);if(o+t>e[L])throw E(w);var i=e[I]._b,s=o+e[K],a=i.slice(s,s+t);return r?a:a.reverse()}function Y(e,t,n,r,o,i){var s=p(+n);if(s+t>e[L])throw E(w);for(var a=e[I]._b,c=s+e[K],l=r(+o),u=0;u<t;u++)a[c+u]=l[i?u:t-u-1]}if(s.ABV){if(!l((function(){x(1)}))||!l((function(){new x(-1)}))||l((function(){return new x,new x(1.5),new x(NaN),x.name!=_}))){for(var X,$=(x=function(e){return u(this,x),new C(p(e))})[b]=C[b],J=h(C),Q=0;J.length>Q;)(X=J[Q++])in x||a(x,X,C[X]);i||($.constructor=x)}var Z=new j(new x(2)),ee=j[b].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||c(j[b],{setInt8:function(e,t){ee.call(this,e,t<<24>>24)},setUint8:function(e,t){ee.call(this,e,t<<24>>24)}},!0)}else x=function(e){u(this,x,_);var t=p(e);this._b=y.call(new Array(t),0),this[L]=t},j=function(e,t,n){u(this,j,g),u(e,x,g);var r=e[L],o=f(t);if(o<0||r<o)throw E("Wrong offset!");if(r<o+(n=void 0===n?r-o:d(n)))throw E("Wrong length!");this[I]=e,this[K]=o,this[L]=n},o&&(V(x,B,"_l"),V(j,"buffer","_b"),V(j,B,"_l"),V(j,T,"_o")),c(j[b],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e,t){var n=G(this,2,e,t);return(n[1]<<8|n[0])<<16>>16},getUint16:function(e,t){var n=G(this,2,e,t);return n[1]<<8|n[0]},getInt32:function(e,t){return N(G(this,4,e,t))},getUint32:function(e,t){return N(G(this,4,e,t))>>>0},getFloat32:function(e,t){return F(G(this,4,e,t),23,4)},getFloat64:function(e,t){return F(G(this,8,e,t),52,8)},setInt8:function(e,t){Y(this,1,e,U,t)},setUint8:function(e,t){Y(this,1,e,U,t)},setInt16:function(e,t,n){Y(this,2,e,z,t,n)},setUint16:function(e,t,n){Y(this,2,e,z,t,n)},setInt32:function(e,t,n){Y(this,4,e,H,t,n)},setUint32:function(e,t,n){Y(this,4,e,H,t,n)},setFloat32:function(e,t,n){Y(this,4,e,q,t,n)},setFloat64:function(e,t,n){Y(this,8,e,W,t,n)}});v(x,_),v(j,g),a(j[b],s.VIEW,!0),n[_]=x,n[g]=j},{"./_an-instance":4,"./_array-fill":7,"./_descriptors":18,"./_fails":24,"./_global":29,"./_hide":31,"./_library":47,"./_object-dp":54,"./_object-gopn":58,"./_redefine-all":70,"./_set-to-string-tag":76,"./_to-index":86,"./_to-integer":87,"./_to-length":89,"./_typed":94}],94:[function(e,t,n){for(var r,o=e("./_global"),i=e("./_hide"),s=e("./_uid"),a=s("typed_array"),c=s("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[d[f++]])?(i(r.prototype,a,!0),i(r.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:a,VIEW:c}},{"./_global":29,"./_hide":31,"./_uid":95}],95:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+o).toString(36))}},{}],96:[function(e,t,n){var r=e("./_global").navigator;t.exports=r&&r.userAgent||""},{"./_global":29}],97:[function(e,t,n){var r=e("./_global"),o=e("./_core"),i=e("./_library"),s=e("./_wks-ext"),a=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=!i&&r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},{"./_core":14,"./_global":29,"./_library":47,"./_object-dp":54,"./_wks-ext":98}],98:[function(e,t,n){n.f=e("./_wks")},{"./_wks":99}],99:[function(e,t,n){var r=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,s="function"==typeof i;(t.exports=function(e){return r[e]||(r[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=r},{"./_global":29,"./_shared":78,"./_uid":95}],100:[function(e,t,n){var r=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},{"./_classof":12,"./_core":14,"./_iterators":46,"./_wks":99}],101:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_array-methods")(5),i="find",s=!0;i in[]&&Array(1)[i]((function(){s=!1})),r(r.P+r.F*s,"Array",{find:function(e,t){return o(this,e,1<arguments.length?t:void 0)}}),e("./_add-to-unscopables")(i)},{"./_add-to-unscopables":2,"./_array-methods":9,"./_export":22}],102:[function(e,t,n){"use strict";var r=e("./_ctx"),o=e("./_export"),i=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");o(o.S+o.F*!e("./_iter-detect")((function(e){Array.from(e)})),"Array",{from:function(e,t,n){var o,f,d,p,h=i(e),m="function"==typeof this?this:Array,y=arguments.length,v=1<y?t:void 0,_=void 0!==v,g=0,b=u(h);if(_&&(v=r(v,2<y?n:void 0,2)),null==b||m==Array&&a(b))for(f=new m(o=c(h.length));g<o;g++)l(f,g,_?v(h[g],g):h[g]);else for(p=b.call(h),f=new m;!(d=p.next()).done;g++)l(f,g,_?s(p,v,[d.value,g],!0):d.value);return f.length=g,f}})},{"./_create-property":15,"./_ctx":16,"./_export":22,"./_is-array-iter":37,"./_iter-call":41,"./_iter-detect":44,"./_to-length":89,"./_to-object":90,"./core.get-iterator-method":100}],103:[function(e,t,n){"use strict";var r=e("./_add-to-unscopables"),o=e("./_iter-step"),i=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,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":2,"./_iter-define":43,"./_iter-step":45,"./_iterators":46,"./_to-iobject":88}],104:[function(e,t,n){var r=e("./_object-dp").f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e("./_descriptors")&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},{"./_descriptors":18,"./_object-dp":54}],105:[function(e,t,n){var r=e("./_export");r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},{"./_export":22}],106:[function(e,t,n){var r=e("./_export");r(r.S,"Math",{fround:e("./_math-fround")})},{"./_export":22,"./_math-fround":48}],107:[function(e,t,n){var r=e("./_export"),o=Math.imul;r(r.S+r.F*e("./_fails")((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,s=n&o;return 0|i*s+((n&r>>>16)*s+i*(n&o>>>16)<<16>>>0)}})},{"./_export":22,"./_fails":24}],108:[function(e,t,n){var r=e("./_export");r(r.S,"Math",{trunc:function(e){return(0<e?Math.floor:Math.ceil)(e)}})},{"./_export":22}],109:[function(e,t,n){"use strict";function r(e){var t=c(e,!1);if("string"==typeof t&&2<t.length){var n,r,o,i=(t=g?t.trim():p(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var s,a=t.slice(2),l=0,u=a.length;l<u;l++)if((s=a.charCodeAt(l))<48||o<s)return NaN;return parseInt(a,r)}}return+t}var o=e("./_global"),i=e("./_has"),s=e("./_cof"),a=e("./_inherit-if-required"),c=e("./_to-primitive"),l=e("./_fails"),u=e("./_object-gopn").f,f=e("./_object-gopd").f,d=e("./_object-dp").f,p=e("./_string-trim").trim,h="Number",m=o[h],y=m,v=m.prototype,_=s(e("./_object-create")(v))==h,g="trim"in String.prototype;if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof m&&(_?l((function(){v.valueOf.call(n)})):s(n)!=h)?a(new y(r(t)),n,m):r(t)};for(var b,w=e("./_descriptors")?u(y):"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;w.length>x;x++)i(y,b=w[x])&&!i(m,b)&&d(m,b,f(y,b));(m.prototype=v).constructor=m,e("./_redefine")(o,h,m)}},{"./_cof":13,"./_descriptors":18,"./_fails":24,"./_global":29,"./_has":30,"./_inherit-if-required":34,"./_object-create":53,"./_object-dp":54,"./_object-gopd":56,"./_object-gopn":58,"./_redefine":71,"./_string-trim":82,"./_to-primitive":91}],110:[function(e,t,n){var r=e("./_export"),o=e("./_parse-int");r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},{"./_export":22,"./_parse-int":66}],111:[function(e,t,n){var r=e("./_to-object"),o=e("./_object-keys");e("./_object-sap")("keys",(function(){return function(e){return o(r(e))}}))},{"./_object-keys":62,"./_object-sap":64,"./_to-object":90}],112:[function(e,t,n){"use strict";var r=e("./_classof"),o={};o[e("./_wks")("toStringTag")]="z",o+""!="[object z]"&&e("./_redefine")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},{"./_classof":12,"./_redefine":71,"./_wks":99}],113:[function(e,t,n){"use strict";function r(){}function o(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t}function i(e,t){if(!e._n){e._n=!0;var n=e._c;x((function(){for(var r=e._v,i=1==e._s,s=0,a=function(t){var n,s,a,c=i?t.ok:t.fail,l=t.resolve,u=t.reject,f=t.domain;try{c?(i||(2==e._h&&R(e),e._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),a=!0)),n===t.promise?u(D("Promise-chain cycle")):(s=o(n))?s.call(n,l,u):l(n)):u(r)}catch(t){f&&!a&&f.exit(),u(t)}};n.length>s;)a(n[s++]);e._c=[],e._n=!1,t&&!e._h&&L(e)}))}}function s(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()),i(t,!0))}var a,c,l,u,f=e("./_library"),d=e("./_global"),p=e("./_ctx"),h=e("./_classof"),m=e("./_export"),y=e("./_is-object"),v=e("./_a-function"),_=e("./_an-instance"),g=e("./_for-of"),b=e("./_species-constructor"),w=e("./_task").set,x=e("./_microtask")(),j=e("./_new-promise-capability"),k=e("./_perform"),E=e("./_user-agent"),S=e("./_promise-resolve"),C="Promise",D=d.TypeError,O=d.process,P=O&&O.versions,M=P&&P.v8||"",A=d[C],B="process"==h(O),T=c=j.f,I=!!function(){try{var t=A.resolve(1),n=(t.constructor={})[e("./_wks")("species")]=function(e){e(r,r)};return(B||"function"==typeof PromiseRejectionEvent)&&t.then(r)instanceof n&&0!==M.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(t){}}(),L=function(e){w.call(d,(function(){var t,n,r,o=e._v,i=K(e);if(i&&(t=k((function(){B?O.emit("unhandledRejection",o,e):(n=d.onunhandledrejection)?n({promise:e,reason:o}):(r=d.console)&&r.error&&r.error("Unhandled promise rejection",o)})),e._h=B||K(e)?2:1),e._a=void 0,i&&t.e)throw t.v}))},K=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){w.call(d,(function(){var t;B?O.emit("rejectionHandled",e):(t=d.onrejectionhandled)&&t({promise:e,reason:e._v})}))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw D("Promise can't be resolved itself");(t=o(e))?x((function(){var r={_w:n,_d:!1};try{t.call(e,p(F,r,1),p(s,r,1))}catch(e){s.call(r,e)}})):(n._v=e,n._s=1,i(n,!1))}catch(e){s.call({_w:n,_d:!1},e)}}};I||(A=function(e){_(this,A,C,"_h"),v(e),a.call(this);try{e(p(F,this,1),p(s,this,1))}catch(e){s.call(this,e)}},(a=function(){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")(A.prototype,{then:function(e,t){var n=T(b(this,A));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=B?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&i(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),l=function(){var e=new a;this.promise=e,this.resolve=p(F,e,1),this.reject=p(s,e,1)},j.f=T=function(e){return e===A||e===u?new l:c(e)}),m(m.G+m.W+m.F*!I,{Promise:A}),e("./_set-to-string-tag")(A,C),e("./_set-species")(C),u=e("./_core")[C],m(m.S+m.F*!I,C,{reject:function(e){var t=T(this);return(0,t.reject)(e),t.promise}}),m(m.S+m.F*(f||!I),C,{resolve:function(e){return S(f&&this===u?A:this,e)}}),m(m.S+m.F*!(I&&e("./_iter-detect")((function(e){A.all(e).catch(r)}))),C,{all:function(e){var t=this,n=T(t),r=n.resolve,o=n.reject,i=k((function(){var n=[],i=0,s=1;g(e,!1,(function(e){var a=i++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[a]=e,--s||r(n))}),o)})),--s||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=T(t),r=n.reject,o=k((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},{"./_a-function":1,"./_an-instance":4,"./_classof":12,"./_core":14,"./_ctx":16,"./_export":22,"./_for-of":27,"./_global":29,"./_is-object":39,"./_iter-detect":44,"./_library":47,"./_microtask":51,"./_new-promise-capability":52,"./_perform":67,"./_promise-resolve":68,"./_redefine-all":70,"./_set-species":75,"./_set-to-string-tag":76,"./_species-constructor":79,"./_task":84,"./_user-agent":96,"./_wks":99}],114:[function(e,t,n){var r=e("./_global"),o=e("./_inherit-if-required"),i=e("./_object-dp").f,s=e("./_object-gopn").f,a=e("./_is-regexp"),c=e("./_flags"),l=r.RegExp,u=l,f=l.prototype,d=/a/g,p=/a/g,h=new l(d)!==d;if(e("./_descriptors")&&(!h||e("./_fails")((function(){return p[e("./_wks")("match")]=!1,l(d)!=d||l(p)==p||"/a/i"!=l(d,"i")})))){function m(e){e in l||i(l,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})}l=function(e,t){var n=this instanceof l,r=a(e),i=void 0===t;return!n&&r&&e.constructor===l&&i?e:o(h?new u(r&&!i?e.source:e,t):u((r=e instanceof l)?e.source:e,r&&i?c.call(e):t),n?this:f,l)};for(var y=s(u),v=0;y.length>v;)m(y[v++]);(f.constructor=l).prototype=f,e("./_redefine")(r,"RegExp",l)}e("./_set-species")("RegExp")},{"./_descriptors":18,"./_fails":24,"./_flags":26,"./_global":29,"./_inherit-if-required":34,"./_is-regexp":40,"./_object-dp":54,"./_object-gopn":58,"./_redefine":71,"./_set-species":75,"./_wks":99}],115:[function(e,t,n){"use strict";var r=e("./_regexp-exec");e("./_export")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},{"./_export":22,"./_regexp-exec":73}],116:[function(e,t,n){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":18,"./_flags":26,"./_object-dp":54}],117:[function(e,t,n){"use strict";var r=e("./_an-object"),o=e("./_to-object"),i=e("./_to-length"),s=e("./_to-integer"),a=e("./_advance-string-index"),c=e("./_regexp-exec-abstract"),l=Math.max,u=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;e("./_fix-re-wks")("replace",2,(function(e,t,n,h){return[function(r,o){var i=e(this),s=null==r?void 0:r[t];return void 0!==s?s.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=h(n,e,this,t);if(o.done)return o.value;var f=r(e),d=String(this),p="function"==typeof t;p||(t=String(t));var y=f.global;if(y){var v=f.unicode;f.lastIndex=0}for(var _=[];;){var g=c(f,d);if(null===g)break;if(_.push(g),!y)break;""===String(g[0])&&(f.lastIndex=a(d,i(f.lastIndex),v))}for(var b,w="",x=0,j=0;j<_.length;j++){g=_[j];for(var k=String(g[0]),E=l(u(s(g.index),d.length),0),S=[],C=1;C<g.length;C++)S.push(void 0===(b=g[C])?b:String(b));var D=g.groups;if(p){var O=[k].concat(S,E,d);void 0!==D&&O.push(D);var P=String(t.apply(void 0,O))}else P=m(k,d,E,S,D,t);x<=E&&(w+=d.slice(x,E)+P,x=E+k.length)}return w+d.slice(x)}];function m(e,t,r,i,s,a){var c=r+e.length,l=i.length,u=p;return void 0!==s&&(s=o(s),u=d),n.call(a,u,(function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":a=s[o.slice(1,-1)];break;default:var u=+o;if(0==u)return n;if(l<u){var d=f(u/10);return 0===d?n:d<=l?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):n}a=i[u-1]}return void 0===a?"":a}))}}))},{"./_advance-string-index":3,"./_an-object":5,"./_fix-re-wks":25,"./_regexp-exec-abstract":72,"./_to-integer":87,"./_to-length":89,"./_to-object":90}],118:[function(e,t,n){"use strict";var r=e("./_is-regexp"),o=e("./_an-object"),i=e("./_species-constructor"),s=e("./_advance-string-index"),a=e("./_to-length"),c=e("./_regexp-exec-abstract"),l=e("./_regexp-exec"),u=e("./_fails"),f=Math.min,d=[].push,p="split",h="length",m="lastIndex",y=4294967295,v=!u((function(){RegExp(y,"y")}));e("./_fix-re-wks")("split",2,(function(e,t,n,u){var _;return _="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[h]||2!="ab"[p](/(?:ab)*/)[h]||4!="."[p](/(.?)(.?)/)[h]||1<"."[p](/()()/)[h]||""[p](/.?/)[h]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,s,a,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?y:t>>>0,v=new RegExp(e.source,u+"g");(i=l.call(v,o))&&!(f<(s=v[m])&&(c.push(o.slice(f,i.index)),1<i[h]&&i.index<o[h]&&d.apply(c,i.slice(1)),a=i[0][h],f=s,c[h]>=p));)v[m]===i.index&&v[m]++;return f===o[h]?!a&&v.test("")||c.push(""):c.push(o.slice(f)),c[h]>p?c.slice(0,p):c}:"0"[p](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):_.call(String(o),n,r)},function(e,t){var r=u(_,e,this,t,_!==n);if(r.done)return r.value;var l=o(e),d=String(this),p=i(l,RegExp),h=l.unicode,m=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),g=new p(v?l:"^(?:"+l.source+")",m),b=void 0===t?y:t>>>0;if(0==b)return[];if(0===d.length)return null===c(g,d)?[d]:[];for(var w=0,x=0,j=[];x<d.length;){g.lastIndex=v?x:0;var k,E=c(g,v?d:d.slice(x));if(null===E||(k=f(a(g.lastIndex+(v?0:x)),d.length))===w)x=s(d,x,h);else{if(j.push(d.slice(w,x)),j.length===b)return j;for(var S=1;S<=E.length-1;S++)if(j.push(E[S]),j.length===b)return j;x=w=k}}return j.push(d.slice(w)),j}]}))},{"./_advance-string-index":3,"./_an-object":5,"./_fails":24,"./_fix-re-wks":25,"./_is-regexp":40,"./_regexp-exec":73,"./_regexp-exec-abstract":72,"./_species-constructor":79,"./_to-length":89}],119:[function(e,t,n){"use strict";function r(t){e("./_redefine")(RegExp.prototype,a,t,!0)}e("./es6.regexp.flags");var o=e("./_an-object"),i=e("./_flags"),s=e("./_descriptors"),a="toString",c=/./[a];e("./_fails")((function(){return"/a/b"!=c.call({source:"a",flags:"b"})}))?r((function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!s&&e instanceof RegExp?i.call(e):void 0)})):c.name!=a&&r((function(){return c.call(this)}))},{"./_an-object":5,"./_descriptors":18,"./_fails":24,"./_flags":26,"./_redefine":71,"./es6.regexp.flags":116}],120:[function(e,t,n){"use strict";var r=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},{"./_iter-define":43,"./_string-at":80}],121:[function(e,t,n){"use strict";var r=e("./_export"),o=e("./_to-length"),i=e("./_string-context"),s="startsWith",a=""[s];r(r.P+r.F*e("./_fails-is-regexp")(s),"String",{startsWith:function(e,t){var n=i(this,e,s),r=o(Math.min(1<arguments.length?t:void 0,n.length)),c=String(e);return a?a.call(n,c,r):n.slice(r,r+c.length)===c}})},{"./_export":22,"./_fails-is-regexp":23,"./_string-context":81,"./_to-length":89}],122:[function(e,t,n){"use strict";function r(e){var t=G[e]=P(F[z]);return t._k=e,t}function o(e,t){k(e);for(var n,r=x(t=C(t)),o=0,i=r.length;o<i;)te(e,n=r[o++],t[n]);return e}function i(e){var t=q.call(this,e=D(e,!0));return!(this===X&&u(G,e)&&!u(Y,e))&&(!(t||!u(this,e)||!u(G,e)||u(this,H)&&this[H][e])||t)}function s(e,t){if(e=C(e),t=D(t,!0),e!==X||!u(G,t)||u(Y,t)){var n=L(e,t);return!n||!u(G,t)||u(e,H)&&e[H][t]||(n.enumerable=!0),n}}function a(e){for(var t,n=R(C(e)),r=[],o=0;n.length>o;)u(G,t=n[o++])||t==H||t==h||r.push(t);return r}function c(e){for(var t,n=e===X,r=R(n?Y:C(e)),o=[],i=0;r.length>i;)!u(G,t=r[i++])||n&&!u(X,t)||o.push(G[t]);return o}var l=e("./_global"),u=e("./_has"),f=e("./_descriptors"),d=e("./_export"),p=e("./_redefine"),h=e("./_meta").KEY,m=e("./_fails"),y=e("./_shared"),v=e("./_set-to-string-tag"),_=e("./_uid"),g=e("./_wks"),b=e("./_wks-ext"),w=e("./_wks-define"),x=e("./_enum-keys"),j=e("./_is-array"),k=e("./_an-object"),E=e("./_is-object"),S=e("./_to-object"),C=e("./_to-iobject"),D=e("./_to-primitive"),O=e("./_property-desc"),P=e("./_object-create"),M=e("./_object-gopn-ext"),A=e("./_object-gopd"),B=e("./_object-gops"),T=e("./_object-dp"),I=e("./_object-keys"),L=A.f,K=T.f,R=M.f,F=l.Symbol,N=l.JSON,U=N&&N.stringify,z="prototype",H=g("_hidden"),W=g("toPrimitive"),q={}.propertyIsEnumerable,V=y("symbol-registry"),G=y("symbols"),Y=y("op-symbols"),X=Object[z],$="function"==typeof F&&!!B.f,J=l.QObject,Q=!J||!J[z]||!J[z].findChild,Z=f&&m((function(){return 7!=P(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=L(X,t);r&&delete X[t],K(e,t,n),r&&e!==X&&K(X,t,r)}:K,ee=$&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof F},te=function(e,t,n){return e===X&&te(Y,t,n),k(e),t=D(t,!0),k(n),u(G,t)?(n.enumerable?(u(e,H)&&e[H][t]&&(e[H][t]=!1),n=P(n,{enumerable:O(0,!1)})):(u(e,H)||K(e,H,O(1,{})),e[H][t]=!0),Z(e,t,n)):K(e,t,n)};$||(p((F=function(e){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=_(0<arguments.length?e:void 0),n=function(e){this===X&&n.call(Y,e),u(this,H)&&u(this[H],t)&&(this[H][t]=!1),Z(this,t,O(1,e))};return f&&Q&&Z(X,t,{configurable:!0,set:n}),r(t)})[z],"toString",(function(){return this._k})),A.f=s,T.f=te,e("./_object-gopn").f=M.f=a,e("./_object-pie").f=i,B.f=c,f&&!e("./_library")&&p(X,"propertyIsEnumerable",i,!0),b.f=function(e){return r(g(e))}),d(d.G+d.W+d.F*!$,{Symbol:F});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)g(ne[re++]);for(var oe=I(g.store),ie=0;oe.length>ie;)w(oe[ie++]);d(d.S+d.F*!$,"Symbol",{for:function(e){return u(V,e+="")?V[e]:V[e]=F(e)},keyFor:function(e){if(!ee(e))throw TypeError(e+" is not a symbol!");for(var t in V)if(V[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),d(d.S+d.F*!$,"Object",{create:function(e,t){return void 0===t?P(e):o(P(e),t)},defineProperty:te,defineProperties:o,getOwnPropertyDescriptor:s,getOwnPropertyNames:a,getOwnPropertySymbols:c});var se=m((function(){B.f(1)}));d(d.S+d.F*se,"Object",{getOwnPropertySymbols:function(e){return B.f(S(e))}}),N&&d(d.S+d.F*(!$||m((function(){var e=F();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;o<arguments.length;)r.push(arguments[o++]);if(n=t=r[1],(E(t)||void 0!==e)&&!ee(e))return j(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ee(t))return t}),r[1]=t,U.apply(N,r)}}),F[z][W]||e("./_hide")(F[z],W,F[z].valueOf),v(F,"Symbol"),v(Math,"Math",!0),v(l.JSON,"JSON",!0)},{"./_an-object":5,"./_descriptors":18,"./_enum-keys":21,"./_export":22,"./_fails":24,"./_global":29,"./_has":30,"./_hide":31,"./_is-array":38,"./_is-object":39,"./_library":47,"./_meta":50,"./_object-create":53,"./_object-dp":54,"./_object-gopd":56,"./_object-gopn":58,"./_object-gopn-ext":57,"./_object-gops":59,"./_object-keys":62,"./_object-pie":63,"./_property-desc":69,"./_redefine":71,"./_set-to-string-tag":76,"./_shared":78,"./_to-iobject":88,"./_to-object":90,"./_to-primitive":91,"./_uid":95,"./_wks":99,"./_wks-define":97,"./_wks-ext":98}],123:[function(e,t,n){e("./_typed-array")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},{"./_typed-array":92}],124:[function(e,t,n){e("./_typed-array")("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},{"./_typed-array":92}],125:[function(e,t,n){var r=e("./_export"),o=e("./_own-keys"),i=e("./_to-iobject"),s=e("./_object-gopd"),a=e("./_create-property");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),c=s.f,l=o(r),u={},f=0;l.length>f;)void 0!==(n=c(r,t=l[f++]))&&a(u,t,n);return u}})},{"./_create-property":15,"./_export":22,"./_object-gopd":56,"./_own-keys":65,"./_to-iobject":88}],126:[function(e,t,n){e("./_wks-define")("asyncIterator")},{"./_wks-define":97}],127:[function(e,t,n){for(var r=e("./es6.array.iterator"),o=e("./_object-keys"),i=e("./_redefine"),s=e("./_global"),a=e("./_hide"),c=e("./_iterators"),l=e("./_wks"),u=l("iterator"),f=l("toStringTag"),d=c.Array,p={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},h=o(p),m=0;m<h.length;m++){var y,v=h[m],_=p[v],g=s[v],b=g&&g.prototype;if(b&&(b[u]||a(b,u,d),b[f]||a(b,f,v),c[v]=d,_))for(y in r)b[y]||i(b,y,r[y],!0)}},{"./_global":29,"./_hide":31,"./_iterators":46,"./_object-keys":62,"./_redefine":71,"./_wks":99,"./es6.array.iterator":103}],128:[function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o,i,s,a,c=t&&t.prototype instanceof m?t:m,y=Object.create(c.prototype),v=new C(r||[]);return y._invoke=(o=e,i=n,s=v,a=u,function(e,t){if(a===d)throw new Error("Generator is already running");if(a===p){if("throw"===e)throw t;return O()}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n){var r=k(n,s);if(r){if(r===h)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(a===u)throw a=p,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a=d;var c=l(o,i,s);if("normal"===c.type){if(a=s.done?p:f,c.arg===h)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(a=p,s.method="throw",s.arg=c.arg)}}),y}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function m(){}function y(){}function v(){}var _={};_[i]=function(){return this};var g=Object.getPrototypeOf,b=g&&g(g(D([])));b&&b!==n&&r.call(b,i)&&(_=b);var w=v.prototype=m.prototype=Object.create(_);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function j(e,t){var n;this._invoke=function(o,i){function s(){return new t((function(n,s){!function n(o,i,s,a){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function E(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function D(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,s=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:O}}function O(){return{value:t,done:!0}}return y.prototype=w.constructor=v,v.constructor=y,v[a]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(j.prototype),j.prototype[s]=function(){return this},e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new j(c(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(w),w[a]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=D,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;0<=i;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(s)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},{}],129:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Build={version:"0.72.0 (9d95650ce8e9eb9633ef5cec3fb91cb1)",buildSeed:1631176127038,"wdosbox.wasm":{size:1463621,gzSize:491837},"wdosbox.js":{size:107939,gzSize:27716},"wlibzip.wasm":{size:112343,gzSize:54127},"wlibzip.js":{size:80579,gzSize:20779}}},{}],130:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function e(){r(this,e)}return i(e,[{key:"close",value:function(){}},{key:"put",value:function(){return Promise.resolve()}},{key:"get",value:function(e,t){return void 0!==t?Promise.resolve(t):Promise.reject("Cache is not supported on this host")}},{key:"forEach",value:function(e,t){t()}}]),e}();n.CacheNoop=s,n.CacheDb=function(e,t){return new Promise((function(n){new a(e,n,(function(e){t.onErr(e),n(new s)}))}))};var a=function(){function e(t,n,o){var i=this;if(r(this,e),this.storeName="files",this.db=null,this.version=t,this.indexedDB="undefined"==typeof window?void 0:window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,this.indexedDB){var s=this.indexedDB.open("js-dos-cache ("+t+")",1);s.onerror=function(e){var t;o("Can't open cache database: "+(null===(t=s.error)||void 0===t?void 0:t.message))},s.onsuccess=function(e){i.db=s.result,n(i)},s.onupgradeneeded=function(e){try{i.db=s.result,i.db.onerror=function(e){o("Can't upgrade cache database")},i.db.createObjectStore(i.storeName)}catch(e){o("Can't upgrade cache database")}}}else o("Indexed db is not supported on this host")}return i(e,[{key:"close",value:function(){null!==this.db&&(this.db.close(),this.db=null)}},{key:"put",value:function(e,t){var n=this;return new Promise((function(r){if(null!==n.db){var o=n.db.transaction(n.storeName,"readwrite");o.oncomplete=function(){return r()},o.objectStore(n.storeName).put(t,e)}else r()}))}},{key:"get",value:function(e,t){var n=this;return new Promise((function(r,o){function i(e){void 0===t?o(new Error(e)):r(t)}if(null!==n.db){var s=n.db.transaction(n.storeName,"readonly").objectStore(n.storeName).get(e);s.onerror=function(){return o(new Error("Can't read value for key '"+e+"'"))},s.onsuccess=function(){s.result?r(s.result):i("Result is empty for key '"+e+"', result: "+s.result)}}else i("db is not initalized")}))}},{key:"forEach",value:function(e,t){if(null!==this.db){var n=this.db.transaction(this.storeName,"readonly").objectStore(this.storeName).openCursor();n.onerror=function(){return t()},n.onsuccess=function(n){var r=n.target.result;r?(e(r.key.toString(),r.value),r.continue()):t()}}else t()}}]),e}()},{"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.to-string":119}],131:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=s(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function o(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.array.from"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.promise"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.string.iterator"),e("regenerator-runtime/runtime");Object.defineProperty(n,"__esModule",{value:!0});var l=e("./dos-conf"),u=function(e){return e&&e.__esModule?e:{default:e}}(e("../../libzip/libzip")),f=e("../../http"),d=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=l.createDosConfig(),this.sources=[],this.libzipWasm=t,this.cache=n}var t,n,s,a;return t=e,(n=[{key:"autoexec",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.config.autoexec.options.script.value=t.join("\n"),this}},{key:"cycles",value:function(e){return this.config.cpu.options.cycles.value=e,this}},{key:"extract",value:function(e,t,n){var r=1<arguments.length&&void 0!==t?t:"/",o=2<arguments.length&&void 0!==n?n:"zip";return this.extractAll([{url:e,path:r,type:o}])}},{key:"extractAll",value:function(e){var t;return(t=this.sources).push.apply(t,i(e)),this}},{key:"toUint8Array",value:(s=regeneratorRuntime.mark((function e(){var t,n,o,i,s,a,c,d,h,m,y,v,_,g=this,b=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<b.length&&void 0!==b[0]&&b[0],n={},e.next=4,this.libzipWasm.instantiate(n);case 4:return o=new u.default(n,"/home/web_user"),e.next=7,l.toDosboxConf(this.config);case 7:i=e.sent,s=[],a=r(this.sources);try{for(d=function(){var e=c.value;if("zip"!==e.type)throw new Error("Only Zip is supported");var t=f.HTTPRequest(e.url,{cache:g.cache,responseType:"arraybuffer"}).then((function(t){return{source:e,data:new Uint8Array(t)}}));s.push(t)},a.s();!(c=a.n()).done;)d()}catch(e){a.e(e)}finally{a.f()}if(t){e.next=18;break}return e.next=14,o.writeFile(".jsdos/dosbox.conf",i);case 14:return e.next=16,o.writeFile(".jsdos/readme.txt",p);case 16:return e.next=18,o.writeFile(".jsdos/jsdos.json",JSON.stringify(this.config,null,2));case 18:return e.next=20,Promise.all(s);case 20:h=e.sent,m=r(h);try{for(m.s();!(y=m.n()).done;)v=y.value,o.zipToFs(v.data,v.source.path)}catch(e){m.e(e)}finally{m.f()}if(t)return e.next=26,o.writeFile(".jsdos/dosbox.conf",i);e.next=30;break;case 26:return e.next=28,o.writeFile(".jsdos/readme.txt",p);case 28:return e.next=30,o.writeFile(".jsdos/jsdos.json",JSON.stringify(this.config,null,2));case 30:return e.next=32,o.zipFromFs();case 32:return _=e.sent,o.destroy(),e.abrupt("return",_);case 35:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=s.apply(e,t);function a(e){o(i,n,r,a,c,"next",e)}function c(e){o(i,n,r,a,c,"throw",e)}a(void 0)}))},function(){return a.apply(this,arguments)})}])&&c(t.prototype,n),e}();n.default=d;var p="\nPlease visit our website:\n\n _ __\n (_)____ ____/ /___ _____ _________ ____ ___\n / / ___/_____/ __ / __ \\/ ___// ___/ __ \\/ __ `__ \\\n / (__ )_____/ /_/ / /_/ (__ )/ /__/ /_/ / / / / / /\n __/ /____/ \\__,_/\\____/____(_)___/\\____/_/ /_/ /_/\n /___/\n"},{"../../http":136,"../../libzip/libzip":141,"./dos-conf":132,"core-js/modules/es6.array.from":102,"core-js/modules/es6.array.iterator":103,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es6.typed.uint8-array":123,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127,"regenerator-runtime/runtime":128}],132:[function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}function l(e){return(l="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})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e("core-js/modules/es7.object.get-own-property-descriptors"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.regexp.to-string"),e("regenerator-runtime/runtime"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.number.constructor"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/es6.string.starts-with"),e("core-js/modules/es6.array.find"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.function.name"),Object.defineProperty(n,"__esModule",{value:!0});var f=function e(){u(this,e),this.name="sdl",this.description="This section contains all of the low level system settings for how DOSBox interacts with your real hardware. You can define what resolutions are emulated, how DOSBox should treat errors or listen to your keyboard and mouse. You can often achieve a fair level of optimization by working with these setting, though for the most part leaving them at their default settings will create the best experience. These settings are passed on to the SDL Library which handles low level things like input and thread priority.",this.options={autolock:{name:"autolock",description:"Mouse will automatically lock, if you click on the screen.",value:!1,allowedValues:[!0,!1]}}};n.OutputCategory=f;var d=function e(){u(this,e),this.name="dosbox",this.description="The [dosbox] section contains various settings that do not pertain to any other section (e.g. setting the language used in DOSBox help texts, where to store screen captures, etc.)",this.options={machine:{name:"machine",description:"The type of machine tries to emulate.",value:"svga_s3",allowedValues:["hercules","cga","tandy","pcjr","ega","vgaonly","svga_s3","svga_et3000","svga_et4000","svga_paradise","vesa_nolfb","vesa_oldvbe"]}}};n.DosboxCategory=d;var p=function e(){u(this,e),this.name="cpu",this.description="The CPU section controls how DOSBox tries to emulate the CPU, how fast the emulation should be, and to adjust it. DOSBox offers 4 different methods of CPU emulation.",this.options={core:{name:"core",description:"CPU Core used in emulation. auto will switch to dynamic if available and appropriate.",value:"auto",allowedValues:["auto","normal","simple"]},cputype:{name:"cputype",description:"CPU Type used in emulation. auto is the fastest choice.",value:"auto",allowedValues:["auto","386","386_slow","486_slow","pentium_slow","386_prefetch"]},cycles:{name:"cycles",description:"Amount of instructions DOSBox tries to emulate each millisecond. Setting this value too high results in sound dropouts and lags.\nCycles can be set in 3 ways:\n'auto' tries to guess what a game needs.\n It usually works, but can fail for certain games.\n'fixed #number' will set a fixed amount of cycles. This is what you usually need if 'auto' fails.\n (Example: fixed 4000).\n'max' will allocate as much cycles as your computer is able to handle.\n",value:"auto",allowedValues:["auto","fixed","max"]}}};n.CpuCategory=p;var h=function e(){u(this,e),this.name="mixer",this.description="Here you can define the quality of emulated audio.",this.options={rate:{name:"rate",description:"Frequency rate of sound",value:44100,allowedValues:[]},nosound:{name:"nosound",description:"Enable silent mode, sound is still emulated though.",value:!1,allowedValues:[!0,!1]}}};n.MixerCategory=h;var m=function e(){u(this,e),this.name="autoexec",this.description="Lines in this section will be run at startup",this.options={script:{name:"lines",description:"Use \\n to separate lines",value:"",allowedValues:[]}}};function y(){return{output:new f,dosbox:new d,cpu:new p,mixer:new h,autoexec:new m}}function v(e,t){var n="sdl"===t.name?"output":t.name;return new Promise((function(r,o){if(e)if(e.name===t.name){for(var i=0,s=Object.keys(e.options);i<s.length;i++){var a=s[i],c=e.options[a],u=t.options[a];if(void 0===u)return void o(new Error("Unknown option '"+(c.name||a)+"' in '"+e.name+"'"));if(0<u.allowedValues.length){var f=function(){var t=c.value,r=u.allowedValues.find((function(e){return e===t}));if("cpu"===n&&"cycles"===c.name&&(t+"").startsWith("fixed ")){var i=Number.parseInt(t.substr("fixed ".length),10);if(isNaN(i))return o(new Error("Fixed value should conatain number")),{v:void 0}}else if(void 0===r)return o(new Error("Incorrect value '"+t+"' ("+l(t)+") for '"+e.name+"."+(c.name||a)+"' allowed is "+JSON.stringify(u.allowedValues))),{v:void 0}}();if("object"===l(f))return f.v}}for(var d=0,p=Object.keys(t.options);d<p.length;d++){var h=p[d];if(!(h in e.options))return void o(new Error("Option '"+h+"' is missed in '"+n+"'"))}r()}else o(new Error("Incorrect category name '"+e.name+"' should be '"+t.name+"'"));else o(new Error("Category '"+n+"' is missed"))}))}function _(){return g.apply(this,arguments)}function g(){return(g=c(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=y(),r=0,o=Object.keys(n);case 2:if(r<o.length)return i=o[r],e.next=6,v(t[i],n[i]);e.next=9;break;case 6:r++,e.next=2;break;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(){return w.apply(this,arguments)}function w(){return(w=c(regeneratorRuntime.mark((function e(t,n){var r,i,s,a,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t)return e.abrupt("return");e.next=2;break;case 2:r=0,i=Object.keys(t.options||{});case 3:if(!(r<i.length)){e.next=16;break}if(s=i[r],"string"!=typeof(a=t.options[s])&&"number"!=typeof a&&!Array.isArray(a)){e.next=13;break}if(c=n.options[s]){e.next=10;break}return e.abrupt("continue",13);case 10:l=a,t.options[s]=o({},c),t.options[s].value=l;case 13:r++,e.next=3;break;case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(){return j.apply(this,arguments)}function j(){return(j=c(regeneratorRuntime.mark((function e(t){var n,r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=y(),r=0,o=Object.keys(n);case 2:if(r<o.length)return i=o[r],e.next=6,b(t[i],n[i]);e.next=9;break;case 6:r++,e.next=2;break;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(){return(k=c(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x(t);case 2:return e.next=4,_(t);case 4:return n=E(t.output)+"\nfullscreen=false\nfulldouble=false\nfullresolution=original\nwindowresolution=original\noutput=surface\nsensitivity=100\nwaitonerror=true\npriority=higher,normal\nmapperfile=mapper-jsdos.map\nusescancodes=true\nvsync=false\n"+E(t.dosbox)+"\nlanguage=\ncaptures=capture\nmemsize=16\n"+E(t.cpu)+"\ncycleup=10\ncycledown=20\n"+E(t.mixer)+"\nblocksize=1024\nprebuffer=20\n\n[render]\n# frameskip: How many frames DOSBox skips before drawing one.\n# aspect: Do aspect correction, if your output method doesn't support scaling this can slow things down!.\n# scaler: Scaler used to enlarge/enhance low resolution modes.\n# If 'forced' is appended, then the scaler will be used even if the result might not be desired.\n# Possible values: none, normal2x, normal3x, advmame2x, advmame3x, advinterp2x, advinterp3x, hq2x, hq3x, 2xsai, super2xsai, supereagle, tv2x, tv3x, rgb2x, rgb3x, scan2x, scan3x.\n\nframeskip=0\naspect=false\nscaler=none\n\n[midi]\n# mpu401: Type of MPU-401 to emulate.\n# Possible values: intelligent, uart, none.\n# mididevice: Device that will receive the MIDI data from MPU-401.\n# Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.\n# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.\n# See the README/Manual for more details.\n\nmpu401=intelligent\nmididevice=default\nmidiconfig=\n\n[sblaster]\n# sbtype: Type of Soundblaster to emulate. gb is Gameblaster.\n# Possible values: sb1, sb2, sbpro1, sbpro2, sb16, gb, none.\n# sbbase: The IO address of the soundblaster.\n# Possible values: 220, 240, 260, 280, 2a0, 2c0, 2e0, 300.\n# irq: The IRQ number of the soundblaster.\n# Possible values: 7, 5, 3, 9, 10, 11, 12.\n# dma: The DMA number of the soundblaster.\n# Possible values: 1, 5, 0, 3, 6, 7.\n# hdma: The High DMA number of the soundblaster.\n# Possible values: 1, 5, 0, 3, 6, 7.\n# sbmixer: Allow the soundblaster mixer to modify the DOSBox mixer.\n# oplmode: Type of OPL emulation. On 'auto' the mode is determined by sblaster type. All OPL modes are Adlib-compatible, except for 'cms'.\n# Possible values: auto, cms, opl2, dualopl2, opl3, none.\n# oplemu: Provider for the OPL emulation. compat might provide better quality (see oplrate as well).\n# Possible values: default, compat, fast.\n# oplrate: Sample rate of OPL music emulation. Use 49716 for highest quality (set the mixer rate accordingly).\n# Possible values: 44100, 49716, 48000, 32000, 22050, 16000, 11025, 8000.\n\nsbtype=sb16\nsbbase=220\nirq=7\ndma=1\nhdma=5\nsbmixer=true\noplmode=auto\noplemu=default\noplrate=44100\n\n[gus]\n# gus: Enable the Gravis Ultrasound emulation.\n# gusrate: Sample rate of Ultrasound emulation.\n# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.\n# gusbase: The IO base address of the Gravis Ultrasound.\n# Possible values: 240, 220, 260, 280, 2a0, 2c0, 2e0, 300.\n# gusirq: The IRQ number of the Gravis Ultrasound.\n# Possible values: 5, 3, 7, 9, 10, 11, 12.\n# gusdma: The DMA channel of the Gravis Ultrasound.\n# Possible values: 3, 0, 1, 5, 6, 7.\n# ultradir: Path to Ultrasound directory. In this directory\n# there should be a MIDI directory that contains\n# the patch files for GUS playback. Patch sets used\n# with Timidity should work fine.\n\ngus=false\ngusrate=44100\ngusbase=240\ngusirq=5\ngusdma=3\nultradir=C:\\ULTRASND\n\n[speaker]\n# pcspeaker: Enable PC-Speaker emulation.\n# pcrate: Sample rate of the PC-Speaker sound generation.\n# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.\n# tandy: Enable Tandy Sound System emulation. For 'auto', emulation is present only if machine is set to 'tandy'.\n# Possible values: auto, on, off.\n# tandyrate: Sample rate of the Tandy 3-Voice generation.\n# Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.\n# disney: Enable Disney Sound Source emulation. (Covox Voice Master and Speech Thing compatible).\n\npcspeaker=true\npcrate=44100\ntandy=auto\ntandyrate=44100\ndisney=true\n\n[joystick]\n# joysticktype: Type of joystick to emulate: auto (default), none,\n# 2axis (supports two joysticks),\n# 4axis (supports one joystick, first joystick used),\n# 4axis_2 (supports one joystick, second joystick used),\n# fcs (Thrustmaster), ch (CH Flightstick).\n# none disables joystick emulation.\n# auto chooses emulation depending on real joystick(s).\n# (Remember to reset dosbox's mapperfile if you saved it earlier)\n# Possible values: auto, 2axis, 4axis, 4axis_2, fcs, ch, none.\n# timed: enable timed intervals for axis. Experiment with this option, if your joystick drifts (away).\n# autofire: continuously fires as long as you keep the button pressed.\n# swap34: swap the 3rd and the 4th axis. can be useful for certain joysticks.\n# buttonwrap: enable button wrapping at the number of emulated buttons.\n\njoysticktype=auto\ntimed=true\nautofire=false\nswap34=false\nbuttonwrap=false\n\n[serial]\n# serial1: set type of device connected to com port.\n# Can be disabled, dummy, modem, nullmodem, directserial.\n# Additional parameters must be in the same line in the form of\n# parameter:value. Parameter for all types is irq (optional).\n# for directserial: realport (required), rxdelay (optional).\n# (realport:COM1 realport:ttyS0).\n# for modem: listenport (optional).\n# for nullmodem: server, rxdelay, txdelay, telnet, usedtr,\n# transparent, port, inhsocket (all optional).\n# Example: serial1=modem listenport:5000\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n# serial2: see serial1\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n# serial3: see serial1\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n# serial4: see serial1\n# Possible values: dummy, disabled, modem, nullmodem, directserial.\n\nserial1=dummy\nserial2=dummy\nserial3=disabled\nserial4=disabled\n\n[dos]\n# xms: Enable XMS support.\n# ems: Enable EMS support.\n# umb: Enable UMB support.\n# keyboardlayout: Language code of the keyboard layout (or none).\n\nxms=true\nems=true\numb=true\nkeyboardlayout=auto\n\n[ipx]\n# ipx: Enable ipx over UDP/IP emulation.\n\nipx=false\n"+(r=t.autoexec,"[autoexec]\necho off\nmount c .\nc:\n\ntype jsdos~1/readme.txt\necho on\n\n".concat(r.options.script.value,"\n\n# Generated using https://js-dos.com\n# █▀▀▀▀▀█ █ ▄▄▄▀▀█ █▀▀▀▀▀█\n# █ ███ █ ██▄ █ ▀ ▄ █ ███ █\n# █ ▀▀▀ █ ▄██ ▀ ▀▀█ █ ▀▀▀ █\n# ▀▀▀▀▀▀▀ ▀ █▄▀▄▀ █ ▀▀▀▀▀▀▀\n# █▀▄▄█▀▀▄▄ ▀ ▀█▄▄▄▄ ▀▄█▀█▀\n# █▀ ▀ ▀▀▄ █▀ ▄ ▄▀▀▀▄ █▀█▄\n# ▄ ▄▄ █▀▀▄ ▄▀▄▀▀█ ▀▀▄▀▀█▀\n# ▄▀▀█▀▀ █▀█▀█▀▀▄ ▀██▀█▄\n# ▀▀▀ ▀ ▀ █▄█ ▀█▄▄█▀▀▀█▀▀\n# █▀▀▀▀▀█ ▄▄▄ ▄ ▄ █ ▀ █▄▄▄▄\n# █ ███ █ ▀█▀▀▄▀▀▄████▀▀█▄█\n# █ ▀▀▀ █ ▄▀▀█▀█▀▄ ▀▀▄▄█▄█\n# ▀▀▀▀▀▀▀ ▀ ▀▀ ▀ ▀ ▀▀▀\n")),e.abrupt("return",Promise.resolve(n));case 6:case"end":return e.stop()}var r}),e)})))).apply(this,arguments)}function E(e){var t="";t+="[".concat(e.name,"]\n");var n,r=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(Object.keys(e.options).sort());try{for(r.s();!(n=r.n()).done;){var o=n.value,i=e.options[o];t+="".concat(i.name,"=").concat(i.value,"\n")}}catch(e){r.e(e)}finally{r.f()}return t}n.AutoexecCategory=m,n.createDosConfig=y,n.toDosboxConf=function(e){return k.apply(this,arguments)}},{"core-js/modules/es6.array.find":101,"core-js/modules/es6.array.from":102,"core-js/modules/es6.array.iterator":103,"core-js/modules/es6.function.name":104,"core-js/modules/es6.number.constructor":109,"core-js/modules/es6.number.parse-int":110,"core-js/modules/es6.object.keys":111,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.string.starts-with":121,"core-js/modules/es6.symbol":122,"core-js/modules/es7.object.get-own-property-descriptors":125,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127,"regenerator-runtime/runtime":128}],133:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}e("core-js/modules/es6.function.name"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../../../protocol/messages-queue");function i(){var e;return e=regeneratorRuntime.mark((function e(t,n){var r,i,s,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new o.MessagesQueue,i=r.handler.bind(r),a=function(e){var t=e.data;"ws-sync-sleep"===(null==t?void 0:t.name)&&t.props.sessionId===n&&postMessage({name:"wc-sync-sleep",props:t.props},"*")},(c={sessionId:n,sendMessageToServer:function(e,t){s.messageHandler({data:{name:e,props:t}})},initMessageHandler:function(e){i=e,r.sendTo(i)},exit:function(){"undefined"!=typeof window&&window.removeEventListener("message",a)}}).module=s={postMessage:function(e,t){i(e,t)}},"undefined"!=typeof window&&window.addEventListener("message",a,{passive:!0}),e.next=10,t.instantiate(s);case 10:return s.callMain([n]),e.abrupt("return",c);case 12:case"end":return e.stop()}}),e)})),(i=function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}).apply(this,arguments)}n.dosDirect=function(e,t){return i.apply(this,arguments)}},{"../../../protocol/messages-queue":142,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"regenerator-runtime/runtime":128}],134:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}e("core-js/modules/es6.function.name"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var o=e("../../../protocol/messages-queue");function i(){var e;return e=regeneratorRuntime.mark((function e(t,n,r){var i,s,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new o.MessagesQueue,s=i.handler.bind(i),(a=new Worker(t)).onerror=function(e){s("ws-err",{type:e.type,filename:e.filename,message:e.message})},a.onmessage=function(e){var t=e.data;void 0!==(null==t?void 0:t.name)&&s(t.name,t.props)},e.next=7,n.instantiate({});case 7:c={sessionId:r,sendMessageToServer:function(e,t){a.postMessage({name:e,props:t})},initMessageHandler:function(e){s=e,i.sendTo(s)},exit:function(){a.terminate()}};try{c.sendMessageToServer("wc-install",{module:n.wasmModule,sessionId:r})}catch(e){c.sendMessageToServer("wc-install",{sessionId:r})}return e.abrupt("return",c);case 10:case"end":return e.stop()}}),e)})),(i=function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}).apply(this,arguments)}n.dosWorker=function(e,t,n){return i.apply(this,arguments)}},{"../../../protocol/messages-queue":142,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"regenerator-runtime/runtime":128}],135:[function(e,t,n){(function(t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(e("./impl/emulators-impl"));"undefined"!=typeof window&&(window.emulators=r.default),void 0!==t&&(t.emulators=r.default)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./impl/emulators-impl":138}],136:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e("core-js/modules/es7.object.get-own-property-descriptors"),e("core-js/modules/es6.symbol"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.object.keys"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var a=e("./cache");n.HTTPRequest=function(e,t){return new Promise((function(n,r){new c(e,i(i({},t),{},{success:n,fail:function(e){r(new Error(e))}}))}))};var c=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.xhr=null,this.total=0,this.loaded=0,this.resource=t,this.options=n,this.options.method=n.method||"GET",this.cache=n.cache||new a.CacheNoop,"GET"===this.options.method&&this.cache.get(this.resource).then((function(e){void 0!==r.options.success&&r.options.success(e)})).catch((function(){r.makeHttpRequest()}))}var t,n;return t=e,(n=[{key:"makeHttpRequest",value:function(){var e,t,n=this;this.xhr=new XMLHttpRequest,this.xhr.open(this.options.method||"GET",this.resource,!0),"POST"===this.options.method&&this.xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"),this.xhr.overrideMimeType("text/plain; charset=x-user-defined"),"function"==typeof(e=this.xhr).addEventListener&&e.addEventListener("progress",(function(e){if(n.total=e.total,n.loaded=e.loaded,n.options.progress)return n.options.progress(e.total,e.loaded)})),"function"==typeof(t=this.xhr).addEventListener&&t.addEventListener("error",(function(){if(n.options.fail)return n.options.fail("Unalbe to download '"+n.resource+"', code: "+n.xhr.status),delete n.options.fail})),this.xhr.onreadystatechange=function(){return n.onReadyStateChange()},this.options.responseType&&(this.xhr.responseType=this.options.responseType),this.xhr.send(this.options.data)}},{key:"onReadyStateChange",value:function(){var e=this.xhr;if(4===e.readyState)if(200===e.status){if(this.options.success){var t=Math.max(this.total,this.loaded);return void 0!==this.options.progress&&this.options.progress(t,t),"GET"===this.options.method&&this.resource.indexOf("?")<0&&this.cache.put(this.resource,e.response),this.options.success(e.response)}}else if(this.options.fail)return this.options.fail("Unable to download '"+this.resource+"', code: "+e.status),delete this.options.fail}}])&&r(t.prototype,n),e}()},{"./cache":130,"core-js/modules/es6.array.iterator":103,"core-js/modules/es6.object.keys":111,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.symbol":122,"core-js/modules/es7.object.get-own-property-descriptors":125,"core-js/modules/web.dom.iterable":127}],137:[function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,s=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0}),n.CommandInterfaceEventsImpl=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.delayedStdout=[],this.onStdoutConsumers=[],this.onFrameSizeConsumers=[],this.onFrameConsumers=[],this.onSoundPushConsumers=[],this.onExitConsumers=[],this.onMessageConsumers=[],this.onStdout=function(e){if(t.onStdoutConsumers.push(e),1===t.onStdoutConsumers.length){var n,o=r(t.delayedStdout);try{for(o.s();!(n=o.n()).done;){var i=n.value;t.fireStdout(i)}}catch(e){o.e(e)}finally{o.f()}t.delayedStdout=[]}},this.onFrameSize=function(e){t.onFrameSizeConsumers.push(e)},this.onFrame=function(e){t.onFrameConsumers.push(e)},this.onSoundPush=function(e){t.onSoundPushConsumers.push(e)},this.onExit=function(e){t.onExitConsumers.push(e)},this.onMessage=function(e){t.onMessageConsumers.push(e)},this.fireStdout=function(e){if(0!==t.onStdoutConsumers.length){var n,o=r(t.onStdoutConsumers);try{for(o.s();!(n=o.n()).done;)(0,n.value)(e)}catch(e){o.e(e)}finally{o.f()}}else t.delayedStdout.push(e)},this.fireFrameSize=function(e,n){var o,i=r(t.onFrameSizeConsumers);try{for(i.s();!(o=i.n()).done;)(0,o.value)(e,n)}catch(e){i.e(e)}finally{i.f()}},this.fireFrame=function(e){var n,o=r(t.onFrameConsumers);try{for(o.s();!(n=o.n()).done;)(0,n.value)(e)}catch(e){o.e(e)}finally{o.f()}},this.fireSoundPush=function(e){var n,o=r(t.onSoundPushConsumers);try{for(o.s();!(n=o.n()).done;)(0,n.value)(e)}catch(e){o.e(e)}finally{o.f()}},this.fireExit=function(){var e,n=r(t.onExitConsumers);try{for(n.s();!(e=n.n()).done;)(0,e.value)()}catch(e){n.e(e)}finally{n.f()}t.onStdoutConsumers=[],t.onFrameSizeConsumers=[],t.onFrameConsumers=[],t.onSoundPushConsumers=[],t.onExitConsumers=[],t.onMessageConsumers=[]},this.fireMessage=function(e){for(var n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var s,a=r(t.onMessageConsumers);try{for(a.s();!(s=a.n()).done;)s.value.apply(void 0,[e].concat(o))}catch(e){a.e(e)}finally{a.f()}}}},{"core-js/modules/es6.array.from":102,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127}],138:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("regenerator-runtime/runtime");var s=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var a=e("../build"),c=e("../cache"),l=e("./modules"),u=s(e("../dos/bundle/dos-bundle")),f=e("../dos/dosbox/ts/direct"),d=e("../dos/dosbox/ts/worker"),p=s(e("../janus/janus-impl")),h=e("../protocol/protocol"),m=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pathPrefix="",this.cacheSeed="",this.cachePromises={}}var t,n,r,s,m,y,v,_,g,b;return t=e,(n=[{key:"cache",value:function(e){if(null!=e&&0!==e.length||(e=a.Build.version+" "+this.cacheSeed),void 0===this.cachePromises[e]){var t=c.CacheDb(e,{onErr:console.error});this.cachePromises[e]=t}return this.cachePromises[e]}},{key:"dosBundle",value:(b=o(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.wasmModules();case 2:return t=e.sent,e.next=5,t.libzip();case 5:return n=e.sent,e.next=8,this.cache();case 8:return r=e.sent,e.abrupt("return",new u.default(n,r));case 10:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"dosboxNode",value:(g=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dosboxDirect(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"dosboxDirect",value:(_=o(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.wasmModules();case 2:return n=e.sent,e.next=5,n.dosbox();case 5:return r=e.sent,e.next=8,f.dosDirect(r,"session-"+Date.now());case 8:return o=e.sent,e.abrupt("return",this.backend(t,o));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"dosboxWorker",value:(v=o(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.wasmModules();case 2:return n=e.sent,e.next=5,n.dosbox();case 5:return r=e.sent,e.next=8,d.dosWorker(this.pathPrefix+"wdosbox.js",r,"session-"+Date.now());case 8:return o=e.sent,e.abrupt("return",this.backend(t,o));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"janus",value:(y=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",p.default(t));case 1:case"end":return e.stop()}}),e)}))),function(e){return y.apply(this,arguments)})},{key:"backend",value:(m=o(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var o=new h.CommandInterfaceOverTransportLayer(Array.isArray(t)?t:[t],n,(function(t){null!==t?r(t):setTimeout((function(){return e(o)}),4)}))})));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return m.apply(this,arguments)})},{key:"wasmModules",value:function(){var e=this;if(void 0!==this.wasmModulesPromise)return this.wasmModulesPromise;var t=function(){var t=o(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.cache();case 2:return n=t.sent,t.abrupt("return",new l.WasmModulesImpl(e.pathPrefix,n));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return this.wasmModulesPromise=t(),this.wasmModulesPromise}},{key:"dosDirect",value:(s=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dosboxDirect(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"dosWorker",value:(r=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.dosboxWorker(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}])&&i(t.prototype,n),e}());n.default=m},{"../build":129,"../cache":130,"../dos/bundle/dos-bundle":131,"../dos/dosbox/ts/direct":133,"../dos/dosbox/ts/worker":134,"../janus/janus-impl":140,"../protocol/protocol":143,"./modules":139,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"regenerator-runtime/runtime":128}],139:[function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function c(e){return(c="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})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es6.array.iterator"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.regexp.replace"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.math.trunc"),e("core-js/modules/es6.math.clz32"),e("core-js/modules/es6.math.fround"),e("core-js/modules/es6.math.imul"),e("core-js/modules/es6.typed.uint8-array"),Object.defineProperty(n,"__esModule",{value:!0});var u=e("../http");n.host=new function e(){if(l(this,e),this.wasmSupported=!1,this.globals="undefined"==typeof window?{}:window,this.globals.exports||(this.globals.exports={}),this.globals.compiled||(this.globals.compiled={}),"object"===("undefined"==typeof WebAssembly?"undefined":c(WebAssembly))&&"function"==typeof WebAssembly.instantiate&&"function"==typeof WebAssembly.compile){var t=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));t instanceof WebAssembly.Module&&(this.wasmSupported=new WebAssembly.Instance(t)instanceof WebAssembly.Instance)}Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16)|0}),Math.imul=Math.imul,Math.fround||(Math.fround=function(e){return e}),Math.fround=Math.fround,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var t=0;t<32;t++)if(e&1<<31-t)return t;return 32}),Math.clz32=Math.clz32,Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Math.trunc=Math.trunc};var f=function(){function e(t,n){l(this,e),this.wasmSupported=!1,0<t.length&&"/"!==t[t.length-1]&&(t+="/"),this.pathPrefix=t,this.cache=n}return a(e,[{key:"libzip",value:function(){return void 0!==this.libzipPromise||(this.libzipPromise=this.loadModule(this.pathPrefix+"wlibzip.js","WLIBZIP")),this.libzipPromise}},{key:"dosbox",value:function(){return void 0!==this.dosboxPromise||(this.dosboxPromise=this.loadModule(this.pathPrefix+"wdosbox.js","WDOSBOX")),this.dosboxPromise}},{key:"loadModule",value:function(e,t){return d(e,t,this.cache,(function(){}))}}]),e}();function d(t,o,s,a){return"undefined"==typeof XMLHttpRequest?function(t,r){if(void 0!==n.host.globals.compiled[r])return n.host.globals.compiled[r];var o=e(t),i=Promise.resolve(new p(o));return r&&(n.host.globals.compiled[r]=i),i}(t,o):function(e,t,o,s){if(void 0!==n.host.globals.compiled[t])return n.host.globals.compiled[t];function a(){var c;return c=regeneratorRuntime.mark((function i(){var a,c,l,f,d,p,m,y,v,_,g,b;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=e.lastIndexOf("/"),c=e.indexOf("w",a),l=c===a+1&&0<=c,n.host.wasmSupported&&l){i.next=5;break}throw new Error("Starting from js-dos 6.22.60 js environment is not supported");case 5:return f=e.replace(".js",".wasm"),d=u.HTTPRequest(f,{cache:o,responseType:"arraybuffer",progress:function(t,n){s("Resolving DosBox ("+e+")",t,n)}}),p=u.HTTPRequest(e,{cache:o,progress:function(e,t){s("Resolving DosBox",e,t)}}),i.next=10,Promise.all([d,p]);case 10:return m=i.sent,y=r(m,2),v=y[0],_=y[1],i.next=16,WebAssembly.compile(v);case 16:return g=i.sent,b=function(e,t){e.env=e.env||{},WebAssembly.instantiate(g,e).then((function(e){return t(e,g)}))},eval.call(window,_),i.abrupt("return",new h(g,n.host.globals.exports[t],b));case 20:case"end":return i.stop()}}),i)})),(a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=c.apply(e,t);function s(e){i(o,n,r,s,a,"next",e)}function a(e){i(o,n,r,s,a,"throw",e)}s(void 0)}))}).apply(this,arguments)}var c=function(){return a.apply(this,arguments)}();return t&&(n.host.globals.compiled[t]=c),c}(t,o,s,a)}n.WasmModulesImpl=f,n.loadWasmModule=d;var p=function(){function e(t){l(this,e),this.emModule=t}return a(e,[{key:"instantiate",value:function(e){var t=this;return new Promise((function(n){e.onRuntimeInitialized=function(){n()},new t.emModule(e)}))}}]),e}(),h=function(){function e(t,n,r){l(this,e),this.wasmModule=t,this.module=n,this.instantiateWasm=r}return a(e,[{key:"instantiate",value:function(e){var t=this;return new Promise((function(n){e.instantiateWasm=t.instantiateWasm,e.onRuntimeInitialized=function(){n()},new t.module(e)}))}}]),e}()},{"../http":136,"core-js/modules/es6.array.from":102,"core-js/modules/es6.array.iterator":103,"core-js/modules/es6.function.name":104,"core-js/modules/es6.math.clz32":105,"core-js/modules/es6.math.fround":106,"core-js/modules/es6.math.imul":107,"core-js/modules/es6.math.trunc":108,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.replace":117,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es6.typed.uint8-array":123,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127,"regenerator-runtime/runtime":128}],140:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.number.constructor"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/es6.regexp.split"),e("core-js/modules/es6.string.starts-with"),Object.defineProperty(n,"__esModule",{value:!0});var c=e("../impl/ci-impl");function l(e,t){var n="";return function r(o){var i=o.indexOf("\n");if(-1===i)n+=o;else{var s=n+o.substr(0,i);n="";try{e(function(e){for(var t=atob(e),n=new Uint8Array(t.length),r=0;r<n.length;r++)n[r]=t.charCodeAt(r);return(new TextDecoder).decode(n)}(s))}catch(r){t(r)}r(o.substr(i+1))}}}var u=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.live=!0,this.startedAt=Date.now(),this.exitResolveFn=function(){},this.configResolveFn=function(){},this.handleResolveFn=function(){},this.keyMatrix={},this.frameWidth=0,this.frameHeight=0,this.eventQueue="",this.eventIntervalId=-1,this.rttIntervalId=-1,this.logIntervalId=-1,this.logColor="not set",this.logWhiteMs=0,this.logRedMs=0,this.logYellowMs=0,this.onDataMessage=function(e){if(e.startsWith("config="))r.configResolveFn(JSON.parse(e.substr("config=".length)));else if(e.startsWith("frame=")){var t=i(e.substr("frame=".length).split("x"),2),n=t[0],o=t[1];r.frameWidth=Number.parseInt(n,10)||0,r.frameHeight=Number.parseInt(o,10)||0}else if(e.startsWith("rtt=")){var s,a=i(e.substr("rtt=".length).split(" "),3),c=a[0],l=a[1],u=a[2],f=Number.parseInt(l,10),d=Number.parseInt(u,10),p=Date.now(),h=(null===(s=r.handle)||void 0===s?void 0:s.getBitrate())||"0 kbits/sec",m=Number.parseInt(h.split(" ")[0],10);r.sendPipeMessage("rtt-data",Date.now(),f,d,p,m),c===r.opaqueId&&r.eventsImpl.fireStdout("rtt-data="+(p-f)+" "+m)}else if(e.startsWith("log-visual-"))switch(e){case"log-visual-white":r.eventsImpl.fireStdout("yellow-frame:"+(Date.now()-r.logYellowMs));break;case"log-visual-red":r.eventsImpl.fireStdout("white-frame:"+(Date.now()-r.logWhiteMs));break;case"log-visual-yellow":r.eventsImpl.fireStdout("red-frame:"+(Date.now()-r.logRedMs))}else if(e.startsWith("log-command-"))switch(e){case"log-command-white":r.eventsImpl.fireStdout("yellow-pipe:"+(Date.now()-r.logYellowMs));break;case"log-command-red":r.eventsImpl.fireStdout("white-pipe:"+(Date.now()-r.logWhiteMs));break;case"log-command-yellow":r.eventsImpl.fireStdout("red-pipe:"+(Date.now()-r.logRedMs))}else r.eventsImpl.fireStdout(e)},this.onJanusMessage=function(e,t,n){null!=n&&e.createAnswer({jsep:n,media:{audioSend:!1,videoSend:!1,data:!0},success:function(t){r.fireMessage("started"),e.send({message:{request:"start"},jsep:t})},error:r.onError})},this.onError=function(e){r.fireMessage("error",e)},this.eventsImpl=new c.CommandInterfaceEventsImpl,this.janus=t,this.opaqueId=n,this.exitPromise=new Promise((function(e){r.exitResolveFn=e})),this.configPromise=new Promise((function(e){r.configResolveFn=e})),this.handlePromise=new Promise((function(e,t){r.handleResolveFn=function(n){r.handle=n,r.live?(setTimeout((function(){r.live&&n.data({text:"pipe "+r.opaqueId+" config"})}),1e3),r.config().then((function(){r.live&&(r.eventIntervalId=setInterval((function(){r.sendEventsData(n)}),8),r.rttIntervalId=setInterval((function(){r.sendPipeMessage("rtt",Date.now())}),1e3))})),e(n)):t(new Error("exit() was called"))}})),this.attach()}var t,n,r,s;return t=e,(n=[{key:"fireMessage",value:function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.eventsImpl).fireMessage.apply(t,[e].concat(r))}},{key:"attach",value:function(){var e,t=this;this.janus.attach({plugin:"janus.plugin.streaming",opaqueId:this.opaqueId,error:this.onError,success:function(n){e=n,t.fireMessage("attached"),n.send({message:{request:"watch",id:1}})},onmessage:function(n,r){t.onJanusMessage(e,n,r)},onremotestream:function(e){t.fireMessage("onremotestream",e)},ondataopen:function(){return t.handleResolveFn(e)},ondata:l(this.onDataMessage,this.onError)})}},{key:"onDestroyed",value:function(){this.fireMessage("destroyed"),this.exitResolveFn()}},{key:"config",value:(s=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.configPromise);case 1:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"width",value:function(){return this.frameWidth}},{key:"height",value:function(){return this.frameHeight}},{key:"soundFrequency",value:function(){return 44100}},{key:"screenshot",value:function(){return Promise.reject(new Error("Not supported"))}},{key:"simulateKeyPress",value:function(){for(var e=this,t=Date.now()-this.startedAt,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(n){return e.addKey(n,!0,t)})),r.forEach((function(n){return e.addKey(n,!1,16+t)}))}},{key:"sendKeyEvent",value:function(e,t){this.addKey(e,t,Date.now()-this.startedAt)}},{key:"addKey",value:function(e,t,n){if(!0===this.keyMatrix[e]!==t&&(this.keyMatrix[e]=t,this.sendPipeMessage("k"+(t?"down":"up"),e,n),-1!==this.logIntervalId&&t))switch(this.logColor){case"white":this.logWhiteMs=Date.now();break;case"red":this.logRedMs=Date.now();break;case"yellow":this.logYellowMs=Date.now()}}},{key:"sendMouseMotion",value:function(e,t){this.sendPipeMessage("mmove",e,t,Date.now()-this.startedAt)}},{key:"sendMouseRelativeMotion",value:function(){throw new Error("not implemented")}},{key:"sendMouseButton",value:function(e,t){this.sendPipeMessage("m"+(t?"down":"up"),e,Date.now()-this.startedAt)}},{key:"sendMouseSync",value:function(){this.sendPipeMessage("msync",Date.now()-this.startedAt)}},{key:"logVisual",value:function(e){var t=this;this.sendPipeMessage("log-visual-on");var n=document.createElement("canvas"),r=n.getContext("2d");n.width=1,n.height=1,this.logIntervalId=setInterval(o(regeneratorRuntime.mark((function n(){var o,i,s,a,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=Date.now(),null!=r&&r.drawImage(e,0,0,1,1,0,0,1,1),s=null==r||null===(o=r.getImageData(0,0,1,1))||void 0===o?void 0:o.data,a=Date.now()-i,c="not set",200<s[0]&&200<s[1]&&200<s[2]?c="white":200<s[0]&&s[1]<200&&s[2]<200?c="red":200<s[0]&&200<s[1]&&s[2]<200&&(c="yellow"),c===t.logColor){n.next=17;break}n.t0=c,n.next="white"===n.t0?10:"red"===n.t0?12:"yellow"===n.t0?14:16;break;case 10:return t.eventsImpl.fireStdout("yellow-stream:"+(Date.now()-t.logYellowMs-a)),n.abrupt("break",16);case 12:return t.eventsImpl.fireStdout("white-stream:"+(Date.now()-t.logWhiteMs-a)),n.abrupt("break",16);case 14:return t.eventsImpl.fireStdout("red-stream:"+(Date.now()-t.logRedMs-a)),n.abrupt("break",16);case 16:t.logColor=c;case 17:case"end":return n.stop()}}),n)}))),16)}},{key:"sendPipeMessage",value:function(){this.eventQueue+="pipe "+this.opaqueId;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];this.eventQueue+=" "+i}this.eventQueue+="\n"}},{key:"sendEventsData",value:(r=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===this.eventQueue.length)return e.abrupt("return");e.next=2;break;case 2:t.data({text:this.eventQueue}),this.eventQueue="";case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"persist",value:function(){return Promise.reject(new Error("Not supported"))}},{key:"pause",value:function(){console.warn("pause/resume is not implemented")}},{key:"resume",value:function(){}},{key:"mute",value:function(){console.warn("mute/unmute is not implemented")}},{key:"unmute",value:function(){}},{key:"exit",value:function(){return this.live=!1,clearInterval(this.logIntervalId),this.logIntervalId=-1,clearInterval(this.eventIntervalId),this.eventIntervalId=-1,clearInterval(this.rttIntervalId),this.rttIntervalId=-1,this.janus.destroy(),this.exitPromise}},{key:"events",value:function(){return this.eventsImpl}}])&&a(t.prototype,n),e}();n.default=function(e,t){var n=t||window.Janus;return void 0===n?Promise.reject(new Error("Janus is not defined, you should load janus.js before this")):n.isWebrtcSupported()?new Promise((function(t,r){var o=null,i={error:function(e){null===o?r(e):o.onError(e)},destroyed:function(){null!==o&&o.onDestroyed()}},s={server:e,success:function(){o=new u(a,"js-dos-"+n.randomString(12)),t(o)},error:i.error,destroyed:i.destroyed,destroyOnUnload:!0},a=new n(s)})):Promise.reject(new Error("WebRTC not supported"))}},{"../impl/ci-impl":137,"core-js/modules/es6.array.from":102,"core-js/modules/es6.function.name":104,"core-js/modules/es6.number.constructor":109,"core-js/modules/es6.number.parse-int":110,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.split":118,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.string.starts-with":121,"core-js/modules/es6.symbol":122,"core-js/modules/es6.typed.uint8-array":123,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127,"regenerator-runtime/runtime":128}],141:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es6.regexp.constructor"),e("core-js/modules/es6.regexp.replace"),e("regenerator-runtime/runtime"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.regexp.split"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.module=t,this.home=n,this.module.callMain([]),this.chdirToHome()}var t,n,i,s;return t=e,(n=[{key:"zipFromFs",value:function(e){var t=0<arguments.length&&void 0!==e?e:-1;this.chdirToHome();var n=this.module._zip_from_fs(t);if(0===n)return Promise.reject(new Error("Can't create zip, see more info in logs"));var r=this.module.HEAPU32[n/4],o=this.module.HEAPU8.slice(n+4,n+4+r);return this.module._free(n),Promise.resolve(o)}},{key:"zipToFs",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:"/";n=this.normalizeFilename(n);var r=this.normalizeFilename(n).split("/");this.createPath(r,0,r.length),this.chdir(n);var o=new Uint8Array(e),i=this.module._malloc(o.length);this.module.HEAPU8.set(o,i);var s=this.module._zip_to_fs(i,o.length);return this.module._free(i),this.chdirToHome(),0===s?Promise.resolve():Promise.reject(new Error("Can't extract zip, retcode "+s+", see more info in logs"))}},{key:"writeFile",value:function(e,t){e=this.normalizeFilename(e),t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n=e.split("/");if(0===n.length)throw new Error("Can't create file '"+e+"', because it's not valid file path");var r=n[n.length-1].trim();if(0===r.length)throw new Error("Can't create file '"+e+"', because file name is empty");var o=this.createPath(n,0,n.length-1);this.module.FS.writeFile(o+"/"+r,t)}},{key:"readFile",value:(i=regeneratorRuntime.mark((function e(t){var n,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=1<r.length&&void 0!==r[1]?r[1]:"utf8",t=this.normalizeFilename(t),e.abrupt("return",this.module.FS.readFile(t,{encoding:n}));case 3:case"end":return e.stop()}}),e,this)})),s=function(){var e=this,t=arguments;return new Promise((function(n,o){var s=i.apply(e,t);function a(e){r(s,n,o,a,c,"next",e)}function c(e){r(s,n,o,a,c,"throw",e)}a(void 0)}))},function(e){return s.apply(this,arguments)})},{key:"exists",value:function(e){e=this.normalizeFilename(e);try{return this.module.FS.lookupPath(e),!0}catch(e){return!1}}},{key:"destroy",value:function(){try{this.module._libzip_destroy()}catch(e){return e}}},{key:"normalizeFilename",value:function(e){for(e=e.replace(new RegExp("^[a-zA-z]+:"),"").replace(new RegExp("\\\\","g"),"/");"/"===e[0];)e=e.substr(1);return e}},{key:"createPath",value:function(e,t,n){for(var r=".",o=t;o<n;++o){var i=e[o].trim();0!==i.length&&(this.module.FS.createPath(r,i,!0,!0),r=r+"/"+i)}return r}},{key:"chdirToHome",value:function(){this.module.FS.chdir(this.home)}},{key:"chdir",value:function(e){this.module.FS.chdir(this.home+"/"+e)}}])&&o(t.prototype,n),e}();n.default=i},{"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.constructor":114,"core-js/modules/es6.regexp.replace":117,"core-js/modules/es6.regexp.split":118,"core-js/modules/es6.typed.uint8-array":123,"regenerator-runtime/runtime":128}],142:[function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.function.name"),Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.messages=[]}var t,n;return t=e,(n=[{key:"handler",value:function(e,t){this.messages.push({name:e,props:t})}},{key:"sendTo",value:function(e){var t,n=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,s=!0,a=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==o.return||o.return()}finally{if(a)throw i}}}}(this.messages);try{for(n.s();!(t=n.n()).done;){var o=t.value;e(o.name,o.props)}}catch(e){n.e(e)}finally{n.f()}this.messages=[]}}])&&o(t.prototype,n),e}();n.MessagesQueue=i},{"core-js/modules/es6.array.from":102,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127}],143:[function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/web.dom.iterable"),e("core-js/modules/es7.symbol.async-iterator"),e("core-js/modules/es6.symbol"),e("core-js/modules/es6.string.iterator"),e("core-js/modules/es6.array.from"),e("core-js/modules/es6.function.name"),e("core-js/modules/es6.regexp.to-string"),e("core-js/modules/es6.typed.uint8-clamped-array"),e("core-js/modules/es6.promise"),e("core-js/modules/es6.object.to-string"),e("core-js/modules/es6.typed.uint8-array"),Object.defineProperty(n,"__esModule",{value:!0});var i=e("../impl/ci-impl"),s=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.startedAt=Date.now(),this.frameWidth=0,this.frameHeight=0,this.rgb=new Uint8Array,this.freq=0,this.eventsImpl=new i.CommandInterfaceEventsImpl,this.keyMatrix={},this.configResolve=function(){},this.panicMessages=[],this.bundles=t,this.transport=n,this.ready=r,this.configPromise=new Promise((function(e){return o.configResolve=e})),this.transport.initMessageHandler(this.onServerMessage.bind(this))}var t,n;return t=e,(n=[{key:"sendClientMessage",value:function(e,t){(t=t||{}).sessionId=t.sessionId||this.transport.sessionId,this.transport.sendMessageToServer(e,t)}},{key:"onServerMessage",value:function(e,t){if(!(void 0===e||e.length<3||"w"!==e[0]||"s"!==e[1]||"-"!==e[2])&&void 0!==t&&t.sessionId===this.transport.sessionId)switch(e){case"ws-ready":this.sendClientMessage("wc-run",{bundles:this.bundles}),delete this.bundles;break;case"ws-server-ready":0<this.panicMessages.length?(void 0!==this.transport.exit&&this.transport.exit(),this.ready(new Error(JSON.stringify(this.panicMessages)))):this.ready(null),delete this.ready;break;case"ws-frame-set-size":this.onFrameSize(t.width,t.height);break;case"ws-update-lines":this.onFrameLines(t.lines);break;case"ws-exit":this.onExit();break;case"ws-log":this.onLog(t.tag,t.message);break;case"ws-warn":this.onWarn(t.tag,t.message);break;case"ws-err":this.onErr(t.tag,t.message);break;case"ws-stdout":this.onStdout(t.message);break;case"ws-persist":this.onPersist(t.bundle);break;case"ws-sound-init":this.onSoundInit(t.freq);break;case"ws-sound-push":this.onSoundPush(t.samples);break;case"ws-config":this.onConfig(JSON.parse(t.content));break;case"ws-sync-sleep":this.sendClientMessage("wc-sync-sleep",t);break;default:console.log("Unknown server message (ws):",e)}}},{key:"onConfig",value:function(e){this.configResolve(e)}},{key:"onFrameSize",value:function(e,t){this.frameWidth===e&&this.frameHeight===t||(this.frameWidth=e,this.frameHeight=t,this.rgb=new Uint8Array(e*t*3),this.eventsImpl.fireFrameSize(e,t))}},{key:"onFrameLines",value:function(e){var t,n=function(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,s=!0,a=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==o.return||o.return()}finally{if(a)throw i}}}}(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;this.rgb.set(o.heapu8,o.start*this.frameWidth*3)}}catch(e){n.e(e)}finally{n.f()}this.eventsImpl.fireFrame(this.rgb)}},{key:"onSoundInit",value:function(e){this.freq=e}},{key:"onSoundPush",value:function(e){this.eventsImpl.fireSoundPush(e)}},{key:"onLog",value:function(e,t){this.eventsImpl.fireMessage("log","["+e+"]"+t)}},{key:"onWarn",value:function(e,t){this.eventsImpl.fireMessage("warn","["+e+"]"+t)}},{key:"onErr",value:function(e,t){"panic"===e?(this.panicMessages.push(t),console.error("["+e+"]"+t)):console.log("["+e+"]"+t),this.eventsImpl.fireMessage("error","["+e+"]"+t)}},{key:"onStdout",value:function(e){this.eventsImpl.fireStdout(e)}},{key:"config",value:function(){return this.configPromise}},{key:"width",value:function(){return this.frameWidth}},{key:"height",value:function(){return this.frameHeight}},{key:"soundFrequency",value:function(){return this.freq}},{key:"screenshot",value:function(){for(var e=new Uint8ClampedArray(this.rgb.length/3*4),t=0,n=0;n<e.length;)e[n++]=this.rgb[t++],e[n++]=this.rgb[t++],e[n++]=this.rgb[t++],e[n++]=255;return Promise.resolve(new ImageData(e,this.frameWidth,this.frameHeight))}},{key:"simulateKeyPress",value:function(){for(var e=this,t=Date.now()-this.startedAt,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];r.forEach((function(n){return e.addKey(n,!0,t)})),r.forEach((function(n){return e.addKey(n,!1,16+t)}))}},{key:"sendKeyEvent",value:function(e,t){this.addKey(e,t,Date.now()-this.startedAt)}},{key:"addKey",value:function(e,t,n){!0===this.keyMatrix[e]!==t&&(this.keyMatrix[e]=t,this.sendClientMessage("wc-add-key",{key:e,pressed:t,timeMs:n}))}},{key:"sendMouseMotion",value:function(e,t){this.sendClientMessage("wc-mouse-move",{x:e,y:t,relative:!1,timeMs:Date.now()-this.startedAt})}},{key:"sendMouseRelativeMotion",value:function(e,t){this.sendClientMessage("wc-mouse-move",{x:e,y:t,relative:!0,timeMs:Date.now()-this.startedAt})}},{key:"sendMouseButton",value:function(e,t){this.sendClientMessage("wc-mouse-button",{button:e,pressed:t,timeMs:Date.now()-this.startedAt})}},{key:"sendMouseSync",value:function(){this.sendClientMessage("wc-mouse-sync",{timeMs:Date.now()-this.startedAt})}},{key:"persist",value:function(){var e=this;if(void 0!==this.persistPromise)return this.persistPromise;var t=new Promise((function(t){return e.persistResolve=t}));return this.persistPromise=t,this.sendClientMessage("wc-pack-fs-to-bundle"),t}},{key:"onPersist",value:function(e){this.persistResolve&&(this.persistResolve(e),delete this.persistPromise,delete this.persistResolve)}},{key:"pause",value:function(){this.sendClientMessage("wc-pause")}},{key:"resume",value:function(){this.sendClientMessage("wc-resume")}},{key:"mute",value:function(){this.sendClientMessage("wc-mute")}},{key:"unmute",value:function(){this.sendClientMessage("wc-unmute")}},{key:"exit",value:function(){var e=this;return void 0!==this.exitPromise||(this.exitPromise=new Promise((function(t){return e.exitResolve=t})),this.exitPromise.then((function(){e.events().fireExit()})),this.resume(),this.sendClientMessage("wc-exit")),this.exitPromise}},{key:"onExit",value:function(){void 0!==this.transport.exit&&this.transport.exit(),this.exitResolve&&(this.exitResolve(),delete this.exitPromise,delete this.exitResolve)}},{key:"events",value:function(){return this.eventsImpl}}])&&o(t.prototype,n),e}();n.CommandInterfaceOverTransportLayer=s},{"../impl/ci-impl":137,"core-js/modules/es6.array.from":102,"core-js/modules/es6.function.name":104,"core-js/modules/es6.object.to-string":112,"core-js/modules/es6.promise":113,"core-js/modules/es6.regexp.to-string":119,"core-js/modules/es6.string.iterator":120,"core-js/modules/es6.symbol":122,"core-js/modules/es6.typed.uint8-array":123,"core-js/modules/es6.typed.uint8-clamped-array":124,"core-js/modules/es7.symbol.async-iterator":126,"core-js/modules/web.dom.iterable":127}]},{},[135]),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})}(this,(function(e){"use strict";const t=-2,n=-3,r=-5,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],i=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],s=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],c=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function f(){let e,t,o,i,s,f;function d(e,t,a,c,l,u,d,p,h,m,y){let v,_,g,b,w,x,j,k,E,S,C,D,O,P,M;S=0,w=a;do{o[e[t+S]]++,S++,w--}while(0!==w);if(o[0]==a)return d[0]=-1,p[0]=0,0;for(k=p[0],x=1;x<=15&&0===o[x];x++);for(j=x,k<x&&(k=x),w=15;0!==w&&0===o[w];w--);for(g=w,k>w&&(k=w),p[0]=k,P=1<<x;x<w;x++,P<<=1)if((P-=o[x])<0)return n;if((P-=o[w])<0)return n;for(o[w]+=P,f[1]=x=0,S=1,O=2;0!=--w;)f[O]=x+=o[S],O++,S++;w=0,S=0;do{0!==(x=e[t+S])&&(y[f[x]++]=w),S++}while(++w<a);for(a=f[g],f[0]=w=0,S=0,b=-1,D=-k,s[0]=0,C=0,M=0;j<=g;j++)for(v=o[j];0!=v--;){for(;j>D+k;){if(b++,D+=k,M=g-D,M=M>k?k:M,(_=1<<(x=j-D))>v+1&&(_-=v+1,O=j,x<M))for(;++x<M&&!((_<<=1)<=o[++O]);)_-=o[O];if(M=1<<x,m[0]+M>1440)return n;s[b]=C=m[0],m[0]+=M,0!==b?(f[b]=w,i[0]=x,i[1]=k,x=w>>>D-k,i[2]=C-s[b-1]-x,h.set(i,3*(s[b-1]+x))):d[0]=C}for(i[1]=j-D,S>=a?i[0]=192:y[S]<c?(i[0]=y[S]<256?0:96,i[2]=y[S++]):(i[0]=u[y[S]-c]+16+64,i[2]=l[y[S++]-c]),_=1<<j-D,x=w>>>D;x<M;x+=_)h.set(i,3*(C+x));for(x=1<<j-1;0!=(w&x);x>>>=1)w^=x;for(w^=x,E=(1<<D)-1;(w&E)!=f[b];)b--,D-=k,E=(1<<D)-1}return 0!==P&&1!=g?r:0}function p(n){let r;for(e||(e=[],t=[],o=new Int32Array(16),i=[],s=new Int32Array(15),f=new Int32Array(16)),t.length<n&&(t=[]),r=0;r<n;r++)t[r]=0;for(r=0;r<16;r++)o[r]=0;for(r=0;r<3;r++)i[r]=0;s.set(o.subarray(0,15),0),f.set(o.subarray(0,16),0)}this.inflate_trees_bits=function(o,i,s,a,c){let l;return p(19),e[0]=0,l=d(o,0,19,19,null,null,s,i,a,e,t),l==n?c.msg="oversubscribed dynamic bit lengths tree":l!=r&&0!==i[0]||(c.msg="incomplete dynamic bit lengths tree",l=n),l},this.inflate_trees_dynamic=function(o,i,s,f,h,m,y,v,_){let g;return p(288),e[0]=0,g=d(s,0,o,257,a,c,m,f,v,e,t),0!=g||0===f[0]?(g==n?_.msg="oversubscribed literal/length tree":-4!=g&&(_.msg="incomplete literal/length tree",g=n),g):(p(288),g=d(s,o,i,0,l,u,y,h,v,e,t),0!=g||0===h[0]&&o>257?(g==n?_.msg="oversubscribed distance tree":g==r?(_.msg="incomplete distance tree",g=n):-4!=g&&(_.msg="empty distance tree with lengths",g=n),g):0)}}function d(){const e=this;let r,i,s,a,c=0,l=0,u=0,f=0,d=0,p=0,h=0,m=0,y=0,v=0;function _(e,t,r,i,s,a,c,l){let u,f,d,p,h,m,y,v,_,g,b,w,x,j,k,E;y=l.next_in_index,v=l.avail_in,h=c.bitb,m=c.bitk,_=c.write,g=_<c.read?c.read-_-1:c.end-_,b=o[e],w=o[t];do{for(;m<20;)v--,h|=(255&l.read_byte(y++))<<m,m+=8;if(u=h&b,f=r,d=i,E=3*(d+u),0!==(p=f[E]))for(;;){if(h>>=f[E+1],m-=f[E+1],0!=(16&p)){for(p&=15,x=f[E+2]+(h&o[p]),h>>=p,m-=p;m<15;)v--,h|=(255&l.read_byte(y++))<<m,m+=8;for(u=h&w,f=s,d=a,E=3*(d+u),p=f[E];;){if(h>>=f[E+1],m-=f[E+1],0!=(16&p)){for(p&=15;m<p;)v--,h|=(255&l.read_byte(y++))<<m,m+=8;if(j=f[E+2]+(h&o[p]),h>>=p,m-=p,g-=x,_>=j)k=_-j,_-k>0&&2>_-k?(c.window[_++]=c.window[k++],c.window[_++]=c.window[k++],x-=2):(c.window.set(c.window.subarray(k,k+2),_),_+=2,k+=2,x-=2);else{k=_-j;do{k+=c.end}while(k<0);if(p=c.end-k,x>p){if(x-=p,_-k>0&&p>_-k)do{c.window[_++]=c.window[k++]}while(0!=--p);else c.window.set(c.window.subarray(k,k+p),_),_+=p,k+=p,p=0;k=0}}if(_-k>0&&x>_-k)do{c.window[_++]=c.window[k++]}while(0!=--x);else c.window.set(c.window.subarray(k,k+x),_),_+=x,k+=x,x=0;break}if(0!=(64&p))return l.msg="invalid distance code",x=l.avail_in-v,x=m>>3<x?m>>3:x,v+=x,y-=x,m-=x<<3,c.bitb=h,c.bitk=m,l.avail_in=v,l.total_in+=y-l.next_in_index,l.next_in_index=y,c.write=_,n;u+=f[E+2],u+=h&o[p],E=3*(d+u),p=f[E]}break}if(0!=(64&p))return 0!=(32&p)?(x=l.avail_in-v,x=m>>3<x?m>>3:x,v+=x,y-=x,m-=x<<3,c.bitb=h,c.bitk=m,l.avail_in=v,l.total_in+=y-l.next_in_index,l.next_in_index=y,c.write=_,1):(l.msg="invalid literal/length code",x=l.avail_in-v,x=m>>3<x?m>>3:x,v+=x,y-=x,m-=x<<3,c.bitb=h,c.bitk=m,l.avail_in=v,l.total_in+=y-l.next_in_index,l.next_in_index=y,c.write=_,n);if(u+=f[E+2],u+=h&o[p],E=3*(d+u),0===(p=f[E])){h>>=f[E+1],m-=f[E+1],c.window[_++]=f[E+2],g--;break}}else h>>=f[E+1],m-=f[E+1],c.window[_++]=f[E+2],g--}while(g>=258&&v>=10);return x=l.avail_in-v,x=m>>3<x?m>>3:x,v+=x,y-=x,m-=x<<3,c.bitb=h,c.bitk=m,l.avail_in=v,l.total_in+=y-l.next_in_index,l.next_in_index=y,c.write=_,0}e.init=function(e,t,n,o,c,l){r=0,h=e,m=t,s=n,y=o,a=c,v=l,i=null},e.proc=function(e,g,b){let w,x,j,k,E,S,C,D=0,O=0,P=0;for(P=g.next_in_index,k=g.avail_in,D=e.bitb,O=e.bitk,E=e.write,S=E<e.read?e.read-E-1:e.end-E;;)switch(r){case 0:if(S>=258&&k>=10&&(e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,b=_(h,m,s,y,a,v,e,g),P=g.next_in_index,k=g.avail_in,D=e.bitb,O=e.bitk,E=e.write,S=E<e.read?e.read-E-1:e.end-E,0!=b)){r=1==b?7:9;break}u=h,i=s,l=y,r=1;case 1:for(w=u;O<w;){if(0===k)return e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,k--,D|=(255&g.read_byte(P++))<<O,O+=8}if(x=3*(l+(D&o[w])),D>>>=i[x+1],O-=i[x+1],j=i[x],0===j){f=i[x+2],r=6;break}if(0!=(16&j)){d=15&j,c=i[x+2],r=2;break}if(0==(64&j)){u=j,l=x/3+i[x+2];break}if(0!=(32&j)){r=7;break}return r=9,g.msg="invalid literal/length code",b=n,e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);case 2:for(w=d;O<w;){if(0===k)return e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,k--,D|=(255&g.read_byte(P++))<<O,O+=8}c+=D&o[w],D>>=w,O-=w,u=m,i=a,l=v,r=3;case 3:for(w=u;O<w;){if(0===k)return e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,k--,D|=(255&g.read_byte(P++))<<O,O+=8}if(x=3*(l+(D&o[w])),D>>=i[x+1],O-=i[x+1],j=i[x],0!=(16&j)){d=15&j,p=i[x+2],r=4;break}if(0==(64&j)){u=j,l=x/3+i[x+2];break}return r=9,g.msg="invalid distance code",b=n,e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);case 4:for(w=d;O<w;){if(0===k)return e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,k--,D|=(255&g.read_byte(P++))<<O,O+=8}p+=D&o[w],D>>=w,O-=w,r=5;case 5:for(C=E-p;C<0;)C+=e.end;for(;0!==c;){if(0===S&&(E==e.end&&0!==e.read&&(E=0,S=E<e.read?e.read-E-1:e.end-E),0===S&&(e.write=E,b=e.inflate_flush(g,b),E=e.write,S=E<e.read?e.read-E-1:e.end-E,E==e.end&&0!==e.read&&(E=0,S=E<e.read?e.read-E-1:e.end-E),0===S)))return e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);e.window[E++]=e.window[C++],S--,C==e.end&&(C=0),c--}r=0;break;case 6:if(0===S&&(E==e.end&&0!==e.read&&(E=0,S=E<e.read?e.read-E-1:e.end-E),0===S&&(e.write=E,b=e.inflate_flush(g,b),E=e.write,S=E<e.read?e.read-E-1:e.end-E,E==e.end&&0!==e.read&&(E=0,S=E<e.read?e.read-E-1:e.end-E),0===S)))return e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);b=0,e.window[E++]=f,S--,r=0;break;case 7:if(O>7&&(O-=8,k++,P--),e.write=E,b=e.inflate_flush(g,b),E=e.write,S=E<e.read?e.read-E-1:e.end-E,e.read!=e.write)return e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);r=8;case 8:return b=1,e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);case 9:return b=n,e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b);default:return b=t,e.bitb=D,e.bitk=O,g.avail_in=k,g.total_in+=P-g.next_in_index,g.next_in_index=P,e.write=E,e.inflate_flush(g,b)}},e.free=function(){}}f.inflate_trees_fixed=function(e,t,n,r){return e[0]=9,t[0]=5,n[0]=i,r[0]=s,0};const p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function h(e,i){const s=this;let a,c=0,l=0,u=0,h=0;const m=[0],y=[0],v=new d;let _=0,g=new Int32Array(4320);const b=new f;s.bitk=0,s.bitb=0,s.window=new Uint8Array(i),s.end=i,s.read=0,s.write=0,s.reset=function(e,t){t&&(t[0]=0),6==c&&v.free(e),c=0,s.bitk=0,s.bitb=0,s.read=s.write=0},s.reset(e,null),s.inflate_flush=function(e,t){let n,o,i;return o=e.next_out_index,i=s.read,n=(i<=s.write?s.write:s.end)-i,n>e.avail_out&&(n=e.avail_out),0!==n&&t==r&&(t=0),e.avail_out-=n,e.total_out+=n,e.next_out.set(s.window.subarray(i,i+n),o),o+=n,i+=n,i==s.end&&(i=0,s.write==s.end&&(s.write=0),n=s.write-i,n>e.avail_out&&(n=e.avail_out),0!==n&&t==r&&(t=0),e.avail_out-=n,e.total_out+=n,e.next_out.set(s.window.subarray(i,i+n),o),o+=n,i+=n),e.next_out_index=o,s.read=i,t},s.proc=function(e,r){let i,d,w,x,j,k,E,S;for(x=e.next_in_index,j=e.avail_in,d=s.bitb,w=s.bitk,k=s.write,E=k<s.read?s.read-k-1:s.end-k;;){let C,D,O,P,M,A,B,T;switch(c){case 0:for(;w<3;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}switch(i=7&d,_=1&i,i>>>1){case 0:d>>>=3,w-=3,i=7&w,d>>>=i,w-=i,c=1;break;case 1:C=[],D=[],O=[[]],P=[[]],f.inflate_trees_fixed(C,D,O,P),v.init(C[0],D[0],O[0],0,P[0],0),d>>>=3,w-=3,c=6;break;case 2:d>>>=3,w-=3,c=3;break;case 3:return d>>>=3,w-=3,c=9,e.msg="invalid block type",r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r)}break;case 1:for(;w<32;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}if((~d>>>16&65535)!=(65535&d))return c=9,e.msg="invalid stored block lengths",r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);l=65535&d,d=w=0,c=0!==l?2:0!==_?7:0;break;case 2:if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);if(0===E&&(k==s.end&&0!==s.read&&(k=0,E=k<s.read?s.read-k-1:s.end-k),0===E&&(s.write=k,r=s.inflate_flush(e,r),k=s.write,E=k<s.read?s.read-k-1:s.end-k,k==s.end&&0!==s.read&&(k=0,E=k<s.read?s.read-k-1:s.end-k),0===E)))return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);if(r=0,i=l,i>j&&(i=j),i>E&&(i=E),s.window.set(e.read_buf(x,i),k),x+=i,j-=i,k+=i,E-=i,0!=(l-=i))break;c=0!==_?7:0;break;case 3:for(;w<14;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}if(u=i=16383&d,(31&i)>29||(i>>5&31)>29)return c=9,e.msg="too many length or distance symbols",r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);if(i=258+(31&i)+(i>>5&31),!a||a.length<i)a=[];else for(S=0;S<i;S++)a[S]=0;d>>>=14,w-=14,h=0,c=4;case 4:for(;h<4+(u>>>10);){for(;w<3;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}a[p[h++]]=7&d,d>>>=3,w-=3}for(;h<19;)a[p[h++]]=0;if(m[0]=7,i=b.inflate_trees_bits(a,m,y,g,e),0!=i)return(r=i)==n&&(a=null,c=9),s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);h=0,c=5;case 5:for(;i=u,!(h>=258+(31&i)+(i>>5&31));){let t,l;for(i=m[0];w<i;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}if(i=g[3*(y[0]+(d&o[i]))+1],l=g[3*(y[0]+(d&o[i]))+2],l<16)d>>>=i,w-=i,a[h++]=l;else{for(S=18==l?7:l-14,t=18==l?11:3;w<i+S;){if(0===j)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);r=0,j--,d|=(255&e.read_byte(x++))<<w,w+=8}if(d>>>=i,w-=i,t+=d&o[S],d>>>=S,w-=S,S=h,i=u,S+t>258+(31&i)+(i>>5&31)||16==l&&S<1)return a=null,c=9,e.msg="invalid bit length repeat",r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);l=16==l?a[S-1]:0;do{a[S++]=l}while(0!=--t);h=S}}if(y[0]=-1,M=[],A=[],B=[],T=[],M[0]=9,A[0]=6,i=u,i=b.inflate_trees_dynamic(257+(31&i),1+(i>>5&31),a,M,A,B,T,g,e),0!=i)return i==n&&(a=null,c=9),r=i,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);v.init(M[0],A[0],g,B[0],g,T[0]),c=6;case 6:if(s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,1!=(r=v.proc(s,e,r)))return s.inflate_flush(e,r);if(r=0,v.free(e),x=e.next_in_index,j=e.avail_in,d=s.bitb,w=s.bitk,k=s.write,E=k<s.read?s.read-k-1:s.end-k,0===_){c=0;break}c=7;case 7:if(s.write=k,r=s.inflate_flush(e,r),k=s.write,E=k<s.read?s.read-k-1:s.end-k,s.read!=s.write)return s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);c=8;case 8:return r=1,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);case 9:return r=n,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r);default:return r=t,s.bitb=d,s.bitk=w,e.avail_in=j,e.total_in+=x-e.next_in_index,e.next_in_index=x,s.write=k,s.inflate_flush(e,r)}}},s.free=function(e){s.reset(e,null),s.window=null,g=null},s.set_dictionary=function(e,t,n){s.window.set(e.subarray(t,t+n),0),s.read=s.write=n},s.sync_point=function(){return 1==c?1:0}}const m=13,y=[0,0,255,255];function v(){const e=this;function o(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),0):t}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=function(t){return e.blocks&&e.blocks.free(t),e.blocks=null,0},e.inflateInit=function(n,r){return n.msg=null,e.blocks=null,r<8||r>15?(e.inflateEnd(n),t):(e.wbits=r,n.istate.blocks=new h(n,1<<r),o(n),0)},e.inflate=function(e,o){let i,s;if(!e||!e.istate||!e.next_in)return t;const a=e.istate;for(o=4==o?r:0,i=r;;)switch(a.mode){case 0:if(0===e.avail_in)return i;if(i=o,e.avail_in--,e.total_in++,8!=(15&(a.method=e.read_byte(e.next_in_index++)))){a.mode=m,e.msg="unknown compression method",a.marker=5;break}if(8+(a.method>>4)>a.wbits){a.mode=m,e.msg="invalid window size",a.marker=5;break}a.mode=1;case 1:if(0===e.avail_in)return i;if(i=o,e.avail_in--,e.total_in++,s=255&e.read_byte(e.next_in_index++),((a.method<<8)+s)%31!=0){a.mode=m,e.msg="incorrect header check",a.marker=5;break}if(0==(32&s)){a.mode=7;break}a.mode=2;case 2:if(0===e.avail_in)return i;i=o,e.avail_in--,e.total_in++,a.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,a.mode=3;case 3:if(0===e.avail_in)return i;i=o,e.avail_in--,e.total_in++,a.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,a.mode=4;case 4:if(0===e.avail_in)return i;i=o,e.avail_in--,e.total_in++,a.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,a.mode=5;case 5:return 0===e.avail_in?i:(i=o,e.avail_in--,e.total_in++,a.need+=255&e.read_byte(e.next_in_index++),a.mode=6,2);case 6:return a.mode=m,e.msg="need dictionary",a.marker=0,t;case 7:if(i=a.blocks.proc(e,i),i==n){a.mode=m,a.marker=0;break}if(0==i&&(i=o),1!=i)return i;i=o,a.blocks.reset(e,a.was),a.mode=12;case 12:return 1;case m:return n;default:return t}},e.inflateSetDictionary=function(e,n,r){let o=0,i=r;if(!e||!e.istate||6!=e.istate.mode)return t;const s=e.istate;return i>=1<<s.wbits&&(i=(1<<s.wbits)-1,o=r-i),s.blocks.set_dictionary(n,o,i),s.mode=7,0},e.inflateSync=function(e){let i,s,a,c,l;if(!e||!e.istate)return t;const u=e.istate;if(u.mode!=m&&(u.mode=m,u.marker=0),0===(i=e.avail_in))return r;for(s=e.next_in_index,a=u.marker;0!==i&&a<4;)e.read_byte(s)==y[a]?a++:a=0!==e.read_byte(s)?0:4-a,s++,i--;return e.total_in+=s-e.next_in_index,e.next_in_index=s,e.avail_in=i,u.marker=a,4!=a?n:(c=e.total_in,l=e.total_out,o(e),e.total_in=c,e.total_out=l,u.mode=7,0)},e.inflateSyncPoint=function(e){return e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():t}}function _(){}_.prototype={inflateInit:function(e){const t=this;return t.istate=new v,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(e){const n=this;return n.istate?n.istate.inflate(n,e):t},inflateEnd:function(){const e=this;if(!e.istate)return t;const n=e.istate.inflateEnd(e);return e.istate=null,n},inflateSync:function(){const e=this;return e.istate?e.istate.inflateSync(e):t},inflateSetDictionary:function(e,n){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,n):t},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}};const g={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},b=Object.assign({},g);function w(e){if(void 0!==e.chunkSize&&(b.chunkSize=e.chunkSize),void 0!==e.maxWorkers&&(b.maxWorkers=e.maxWorkers),void 0!==e.terminateWorkerTimeout&&(b.terminateWorkerTimeout=e.terminateWorkerTimeout),void 0!==e.useWebWorkers&&(b.useWebWorkers=e.useWebWorkers),void 0!==e.Deflate&&(b.Deflate=e.Deflate),void 0!==e.Inflate&&(b.Inflate=e.Inflate),void 0!==e.workerScripts){if(e.workerScripts.deflate){if(!Array.isArray(e.workerScripts.deflate))throw new Error("workerScripts.deflate must be an array");b.workerScripts||(b.workerScripts={}),b.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!Array.isArray(e.workerScripts.inflate))throw new Error("workerScripts.inflate must be an array");b.workerScripts||(b.workerScripts={}),b.workerScripts.inflate=e.workerScripts.inflate}}}const x="Abort error";function j(e,t){if(e&&e.aborted)throw t.flush(),new Error(x)}async function k(e,t){return t.length&&await e.writeUint8Array(t),t.length}const E="HTTP error ",S="HTTP Range not supported",C="text/plain",D="Content-Length",O="Accept-Ranges",P="HEAD",M="GET",A="bytes";class B{constructor(){this.size=0}init(){this.initialized=!0}}class T extends B{}class I extends B{writeUint8Array(e){this.size+=e.length}}class L extends T{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){const n=new FileReader;return new Promise(((r,o)=>{n.onload=e=>r(new Uint8Array(e.target.result)),n.onerror=()=>o(n.error),n.readAsArrayBuffer(this.blob.slice(e,e+t))}))}}class K extends T{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=Object.assign({},t),delete this.options.preventHeadRequest,delete this.options.useRangeHeader,delete this.options.forceRangeRequests,delete this.options.useXHR}async init(){if(super.init(),W(this.url)&&!this.preventHeadRequest){const e=await F(P,this.url,this.options);if(this.size=Number(e.headers.get(D)),!this.forceRangeRequests&&this.useRangeHeader&&e.headers.get(O)!=A)throw new Error(S);void 0===this.size&&await R(this,this.options)}else await R(this,this.options)}async readUint8Array(e,t){if(this.useRangeHeader){const n=await F(M,this.url,this.options,Object.assign({},this.options.headers,{HEADER_RANGE:"bytes="+e+"-"+(e+t-1)}));if(206!=n.status)throw new Error(S);return new Uint8Array(await n.arrayBuffer())}return this.data||await R(this,this.options),new Uint8Array(this.data.subarray(e,e+t))}}async function R(e,t){const n=await F(M,e.url,t);e.data=new Uint8Array(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function F(e,t,n,r){r=Object.assign({},n.headers,r);const o=await fetch(t,Object.assign({},n,{method:e,headers:r}));if(o.status<400)return o;throw new Error(E+(o.statusText||o.status))}class N extends T{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests}async init(){if(super.init(),W(this.url)&&!this.preventHeadRequest)return new Promise(((e,t)=>z(P,this.url,(n=>{this.size=Number(n.getResponseHeader(D)),this.useRangeHeader?this.forceRangeRequests||n.getResponseHeader(O)==A?e():t(new Error(S)):void 0===this.size?U(this,this.url).then((()=>e())).catch(t):e()}),t)));await U(this,this.url)}async readUint8Array(e,t){if(!this.useRangeHeader)return this.data||await U(this,this.url),new Uint8Array(this.data.subarray(e,e+t));if(206!=(await new Promise(((n,r)=>z(M,this.url,(e=>n(new Uint8Array(e.response))),r,[["Range","bytes="+e+"-"+(e+t-1)]])))).status)throw new Error(S)}}function U(e,t){return new Promise(((n,r)=>z(M,t,(t=>{e.data=new Uint8Array(t.response),e.size||(e.size=e.data.length),n()}),r)))}function z(e,t,n,r,o=[]){const i=new XMLHttpRequest;return i.addEventListener("load",(()=>{i.status<400?n(i):r(E+(i.statusText||i.status))}),!1),i.addEventListener("error",r,!1),i.open(e,t),o.forEach((e=>i.setRequestHeader(e[0],e[1]))),i.responseType="arraybuffer",i.send(),i}class H extends T{constructor(e,t={}){super(),this.url=e,t.useXHR?this.reader=new N(e,t):this.reader=new K(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}async readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}function W(e){if("undefined"!=typeof document){const t=document.createElement("a");return t.href=e,"http:"==t.protocol||"https:"==t.protocol}return/^https?:\/\//i.test(e)}const q=4294967295,V=33639248,G=101075792,Y="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),X=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)1&t?t=t>>>1^3988292384:t>>>=1;X[e]=t}class ${constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;n<r;n++)t=t>>>8^X[255&(t^e[n])];this.crc=t}get(){return~this.crc}}const J={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=J.getPartial(n);return 32===r?e.concat(t):J._shiftRight(t,r,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+J.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,Math.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=J.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>Math.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let o=0;o<e.length;o++)r.push(n|e[o]>>>t),n=e[o]<<32-t;const o=e.length?e[e.length-1]:0,i=J.getPartial(o);return r.push(J.partial(t+i&31,t+i>32?n:r.pop(),1)),r}},Q={bytes:{fromBits(e){const t=J.bitLength(e)/8,n=new Uint8Array(t);let r;for(let o=0;o<t;o++)0==(3&o)&&(r=e[o/4]),n[o]=r>>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(J.partial(8*(3&n),r)),t}}},Z={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};Z.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=Q.utf8String.toBits(e));const n=t._buffer=J.concat(t._buffer,e),r=t._length,o=t._length=r+J.bitLength(e);if(o>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const i=new Uint32Array(n);let s=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);e<=o;e+=t.blockSize)t._block(i.subarray(16*s,16*(s+1))),s+=1;return n.splice(0,16*s),t},finalize:function(){const e=this;let t=e._buffer;const n=e._h;t=J.concat(t,[J.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:function(e,t,n,r){return e<=19?t&n|~t&r:e<=39?t^n^r:e<=59?t&n|t&r|n&r:e<=79?t^n^r:void 0},_S:function(e,t){return t<<e|t>>>32-e},_block:function(e){const t=this,n=t._h,r=Array(80);for(let t=0;t<16;t++)r[t]=e[t];let o=n[0],i=n[1],s=n[2],a=n[3],c=n[4];for(let e=0;e<=79;e++){e>=16&&(r[e]=t._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const n=t._S(5,o)+t._f(e,i,s,a)+c+r[e]+t._key[Math.floor(e/20)]|0;c=a,a=s,s=t._S(30,i),i=o,o=n}n[0]=n[0]+o|0,n[1]=n[1]+i|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0}};const ee=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],o=e.length;let i,s,a,c=1;if(4!==o&&6!==o&&8!==o)throw new Error("invalid aes key size");for(t._key=[s=e.slice(0),a=[]],i=o;i<4*o+28;i++){let e=s[i-1];(i%o==0||8===o&&i%o==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],i%o==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),s[i]=s[i-o]^e}for(let e=0;i;e++,i--){const t=s[3&e?i:i-4];a[e]=i<=4||e<4?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],o=[],i=[];let s,a,c,l;for(let e=0;e<256;e++)i[(o[e]=e<<1^283*(e>>7))^e]=e;for(let u=s=0;!n[u];u^=a||1,s=i[s]||1){let i=s^s<<1^s<<2^s<<3^s<<4;i=i>>8^255&i^99,n[u]=i,r[i]=u,l=o[c=o[a=o[u]]];let f=16843009*l^65537*c^257*a^16843008*u,d=257*o[i]^16843008*i;for(let n=0;n<4;n++)e[n][u]=d=d<<24^d>>>8,t[n][i]=f=f<<24^f>>>8}for(let n=0;n<5;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new Error("invalid aes block size");const n=this._key[t],r=n.length/4-2,o=[0,0,0,0],i=this._tables[t],s=i[0],a=i[1],c=i[2],l=i[3],u=i[4];let f,d,p,h=e[0]^n[0],m=e[t?3:1]^n[1],y=e[2]^n[2],v=e[t?1:3]^n[3],_=4;for(let e=0;e<r;e++)f=s[h>>>24]^a[m>>16&255]^c[y>>8&255]^l[255&v]^n[_],d=s[m>>>24]^a[y>>16&255]^c[v>>8&255]^l[255&h]^n[_+1],p=s[y>>>24]^a[v>>16&255]^c[h>>8&255]^l[255&m]^n[_+2],v=s[v>>>24]^a[h>>16&255]^c[m>>8&255]^l[255&y]^n[_+3],_+=4,h=f,m=d,y=p;for(let e=0;e<4;e++)o[t?3&-e:e]=u[h>>>24]<<24^u[m>>16&255]<<16^u[y>>8&255]<<8^u[255&v]^n[_++],f=h,h=m,m=y,y=v,v=f;return o}},te=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const o=J.bitLength(t);for(let o=0;o<r;o+=4){this.incCounter(n);const r=e.encrypt(n);t[o]^=r[0],t[o+1]^=r[1],t[o+2]^=r[2],t[o+3]^=r[3]}return J.clamp(t,o)}},ne=class{constructor(e){const t=this,n=t._hash=Z.sha1,r=[[],[]],o=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>o&&(e=n.hash(e));for(let t=0;t<o;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}},re="Invalid pasword",oe=16,ie={name:"PBKDF2"},se=Object.assign({hash:{name:"HMAC"}},ie),ae=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},ie),ce=["deriveBits"],le=[8,12,16],ue=[16,24,32],fe=10,de=[0,0,0,0],pe=Q.bytes,he=ee,me=te,ye=ne;class ve{constructor(e,t,n){Object.assign(this,{password:e,signed:t,strength:n-1,pendingInput:new Uint8Array(0)})}async append(e){const t=this;if(t.password){const n=xe(e,0,le[t.strength]+2);await async function(e,t,n){await be(e,n,xe(t,0,le[e.strength]));const r=xe(t,le[e.strength]),o=e.keys.passwordVerification;if(o[0]!=r[0]||o[1]!=r[1])throw new Error(re)}(t,n,t.password),t.password=null,t.aesCtrGladman=new me(new he(t.keys.key),Array.from(de)),t.hmac=new ye(t.keys.authentication),e=xe(e,le[t.strength]+2)}return ge(t,e,new Uint8Array(e.length-fe-(e.length-fe)%oe),0,fe,!0)}flush(){const e=this,t=e.pendingInput,n=xe(t,0,t.length-fe),r=xe(t,t.length-fe);let o=new Uint8Array(0);if(n.length){const t=pe.toBits(n);e.hmac.update(t);const r=e.aesCtrGladman.update(t);o=pe.fromBits(r)}let i=!0;if(e.signed){const t=xe(pe.fromBits(e.hmac.digest()),0,fe);for(let e=0;e<fe;e++)t[e]!=r[e]&&(i=!1)}return{valid:i,data:o}}}class _e{constructor(e,t){Object.assign(this,{password:e,strength:t-1,pendingInput:new Uint8Array(0)})}async append(e){const t=this;let n=new Uint8Array(0);t.password&&(n=await async function(e,t){const n=crypto.getRandomValues(new Uint8Array(le[e.strength]));return await be(e,t,n),we(n,e.keys.passwordVerification)}(t,t.password),t.password=null,t.aesCtrGladman=new me(new he(t.keys.key),Array.from(de)),t.hmac=new ye(t.keys.authentication));const r=new Uint8Array(n.length+e.length-e.length%oe);return r.set(n,0),ge(t,e,r,n.length,0)}flush(){const e=this;let t=new Uint8Array(0);if(e.pendingInput.length){const n=e.aesCtrGladman.update(pe.toBits(e.pendingInput));e.hmac.update(n),t=pe.fromBits(n)}const n=xe(pe.fromBits(e.hmac.digest()),0,fe);return{data:we(t,n),signature:n}}}function ge(e,t,n,r,o,i){const s=t.length-o;let a;for(e.pendingInput.length&&(t=we(e.pendingInput,t),n=function(e,t){if(t&&t>e.length){const n=e;(e=new Uint8Array(t)).set(n,0)}return e}(n,s-s%oe)),a=0;a<=s-oe;a+=oe){const o=pe.toBits(xe(t,a,a+oe));i&&e.hmac.update(o);const s=e.aesCtrGladman.update(o);i||e.hmac.update(s),n.set(pe.fromBits(s),a+r)}return e.pendingInput=xe(t,a),n}async function be(e,t,n){const r=(new TextEncoder).encode(t),o=await crypto.subtle.importKey("raw",r,se,!1,ce),i=await crypto.subtle.deriveBits(Object.assign({salt:n},ae),o,8*(2*ue[e.strength]+2)),s=new Uint8Array(i);e.keys={key:pe.toBits(xe(s,0,ue[e.strength])),authentication:pe.toBits(xe(s,ue[e.strength],2*ue[e.strength])),passwordVerification:xe(s,2*ue[e.strength])}}function we(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function xe(e,t,n){return e.subarray(t,n)}class je{constructor(e,t){Object.assign(this,{password:e,passwordVerification:t}),Ce(this,e)}append(e){const t=this;if(t.password){const n=Ee(t,e.subarray(0,12));if(t.password=null,n[11]!=t.passwordVerification)throw new Error(re);e=e.subarray(12)}return Ee(t,e)}flush(){return{valid:!0,data:new Uint8Array(0)}}}class ke{constructor(e,t){Object.assign(this,{password:e,passwordVerification:t}),Ce(this,e)}append(e){const t=this;let n,r;if(t.password){t.password=null;const o=crypto.getRandomValues(new Uint8Array(12));o[11]=t.passwordVerification,n=new Uint8Array(e.length+o.length),n.set(Se(t,o),0),r=12}else n=new Uint8Array(e.length),r=0;return n.set(Se(t,e),r),n}flush(){return{data:new Uint8Array(0)}}}function Ee(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=Oe(e)^t[r],De(e,n[r]);return n}function Se(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=Oe(e)^t[r],De(e,t[r]);return n}function Ce(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new $(e.keys[0]),e.crcKey2=new $(e.keys[2]);for(let n=0;n<t.length;n++)De(e,t.charCodeAt(n))}function De(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=Me(e.keys[1]+Pe(e.keys[0])),e.keys[1]=Me(Math.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function Oe(e){const t=2|e.keys[2];return Pe(Math.imul(t,1^t)>>>8)}function Pe(e){return 255&e}function Me(e){return 4294967295&e}const Ae="inflate",Be="Invalid signature";class Te{constructor(e,{signature:t,password:n,signed:r,compressed:o,zipCrypto:i,passwordVerification:s,encryptionStrength:a},{chunkSize:c}){const l=Boolean(n);Object.assign(this,{signature:t,encrypted:l,signed:r,compressed:o,inflate:o&&new e({chunkSize:c}),crc32:r&&new $,zipCrypto:i,decrypt:l&&i?new je(n,s):new ve(n,r,a)})}async append(e){const t=this;return t.encrypted&&e.length&&(e=await t.decrypt.append(e)),t.compressed&&e.length&&(e=await t.inflate.append(e)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),e}async flush(){const e=this;let t,n=new Uint8Array(0);if(e.encrypted){const t=e.decrypt.flush();if(!t.valid)throw new Error(Be);n=t.data}if((!e.encrypted||e.zipCrypto)&&e.signed){const n=new DataView(new Uint8Array(4).buffer);if(t=e.crc32.get(),n.setUint32(0,t),e.signature!=n.getUint32(0,!1))throw new Error(Be)}return e.compressed&&(n=await e.inflate.append(n)||new Uint8Array(0),await e.inflate.flush()),{data:n,signature:t}}}class Ie{constructor(e,{encrypted:t,signed:n,compressed:r,level:o,zipCrypto:i,password:s,passwordVerification:a,encryptionStrength:c},{chunkSize:l}){Object.assign(this,{encrypted:t,signed:n,compressed:r,deflate:r&&new e({level:o||5,chunkSize:l}),crc32:n&&new $,zipCrypto:i,encrypt:t&&i?new ke(s,a):new _e(s,c)})}async append(e){const t=this;let n=e;return t.compressed&&e.length&&(n=await t.deflate.append(e)),t.encrypted&&n.length&&(n=await t.encrypt.append(n)),(!t.encrypted||t.zipCrypto)&&t.signed&&e.length&&t.crc32.append(e),n}async flush(){const e=this;let t,n=new Uint8Array(0);if(e.compressed&&(n=await e.deflate.flush()||new Uint8Array(0)),e.encrypted){n=await e.encrypt.append(n);const r=e.encrypt.flush();t=r.signature;const o=new Uint8Array(n.length+r.data.length);o.set(n,0),o.set(r.data,n.length),n=o}return e.encrypted&&!e.zipCrypto||!e.signed||(t=e.crc32.get()),{data:n,signature:t}}}const Le="init",Ke="append",Re="flush";let Fe=!0;var Ne=(e,t,n,r,o,i,s)=>(Object.assign(e,{busy:!0,codecConstructor:t,options:Object.assign({},n),scripts:s,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,o(e)}}),i?function(e,t){let n;const r={type:"module"};if(!e.interface){if(Fe)try{e.worker=o()}catch(t){Fe=!1,e.worker=o(r)}else e.worker=o(r);e.worker.addEventListener("message",(function(t){const r=t.data;if(n){const t=r.error,o=r.type;if(t){const r=new Error(t.message);r.stack=t.stack,n.reject(r),n=null,e.onTaskFinished()}else if(o==Le||o==Re||o==Ke){const t=r.data;o==Re?(n.resolve({data:new Uint8Array(t),signature:r.signature}),n=null,e.onTaskFinished()):n.resolve(t&&new Uint8Array(t))}}}),!1),e.interface={append:e=>i({type:Ke,data:e}),flush:()=>i({type:Re})}}return e.interface;function o(t={}){return new Worker(new URL(e.scripts[0],"undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("zip-no-worker-inflate.min.js",document.baseURI).href),t)}async function i(r){if(!n){const n=e.options,r=e.scripts.slice(1);await s({scripts:r,type:Le,options:n,config:{chunkSize:t.chunkSize}})}return s(r)}function s(t){const r=e.worker,o=new Promise(((e,t)=>n={resolve:e,reject:t}));try{if(t.data)try{t.data=t.data.buffer,r.postMessage(t,[t.data])}catch(e){r.postMessage(t)}else r.postMessage(t)}catch(t){n.reject(t),n=null,e.onTaskFinished()}return o}}(e,r):function(e,t){const n=function(e,t,n){return t.codecType.startsWith("deflate")?new Ie(e,t,n):t.codecType.startsWith(Ae)?new Te(e,t,n):void 0}(e.codecConstructor,e.options,t);return{async append(t){try{return await n.append(t)}catch(t){throw e.onTaskFinished(),t}},async flush(){try{return await n.flush()}finally{e.onTaskFinished()}}}}(e,r));let Ue=[],ze=[];function He(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}const We=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class qe{constructor(e){We.forEach((t=>this[t]=e[t]))}}const Ve="File format is not recognized",Ge="End of central directory not found",Ye="End of Zip64 central directory not found",Xe="End of Zip64 central directory locator not found",$e="Central directory header not found",Je="Local file header not found",Qe="Zip64 extra field not found",Ze="File contains encrypted entry",et="Encryption method not supported",tt="Compression method not supported",nt="utf-8",rt=["uncompressedSize","compressedSize","offset"];class ot{constructor(e,t,n){Object.assign(this,{reader:e,config:t,options:n})}async getData(e,t,n={}){const r=this,{reader:o,offset:i,extraFieldAES:s,compressionMethod:a,config:c,bitFlag:l,signature:u,rawLastModDate:f,compressedSize:d}=r,p=r.localDirectory={};o.initialized||await o.init();let h=await vt(o,i,30);const m=yt(h);let y=ct(r,n,"password");if(y=y&&y.length&&y,s&&99!=s.originalCompressionMethod)throw new Error(tt);if(0!=a&&8!=a)throw new Error(tt);if(67324752!=ht(m,0))throw new Error(Je);it(p,m,4),h=await vt(o,i,30+p.filenameLength+p.extraFieldLength),p.rawExtraField=h.subarray(30+p.filenameLength),st(r,p,m,4),t.lastAccessDate=p.lastAccessDate,t.creationDate=p.creationDate;const v=r.encrypted&&p.encrypted,_=v&&!s;if(v){if(!_&&void 0===s.strength)throw new Error(et);if(!y)throw new Error(Ze)}const g=await function(e,t,n){const r=!(!t.compressed&&!t.signed&&!t.encrypted)&&(t.useWebWorkers||void 0===t.useWebWorkers&&n.useWebWorkers),o=r&&n.workerScripts?n.workerScripts[t.codecType]:[];if(Ue.length<n.maxWorkers){const s={};return Ue.push(s),Ne(s,e,t,n,i,r,o)}{const s=Ue.find((e=>!e.busy));return s?(He(s),Ne(s,e,t,n,i,r,o)):new Promise((n=>ze.push({resolve:n,codecConstructor:e,options:t,webWorker:r,scripts:o})))}function i(e){if(ze.length){const[{resolve:t,codecConstructor:r,options:o,webWorker:s,scripts:a}]=ze.splice(0,1);t(Ne(e,r,o,n,i,s,a))}else e.worker?(He(e),Number.isFinite(n.terminateWorkerTimeout)&&n.terminateWorkerTimeout>=0&&(e.terminateTimeout=setTimeout((()=>{Ue=Ue.filter((t=>t!=e)),e.terminate()}),n.terminateWorkerTimeout))):Ue=Ue.filter((t=>t!=e))}}(c.Inflate,{codecType:Ae,password:y,zipCrypto:_,encryptionStrength:s&&s.strength,signed:ct(r,n,"checkSignature"),passwordVerification:_&&(l.dataDescriptor?f>>>8&255:u>>>24&255),signature:u,compressed:0!=a,encrypted:v,useWebWorkers:ct(r,n,"useWebWorkers")},c);e.initialized||await e.init();const b=ct(r,n,"signal"),w=i+30+p.filenameLength+p.extraFieldLength;return await async function(e,t,n,r,o,i,s){const a=Math.max(i.chunkSize,64);return async function i(c=0,l=0){const u=s.signal;if(c<o){j(u,e);const f=await t.readUint8Array(c+r,Math.min(a,o-c)),d=f.length;j(u,e);const p=await e.append(f);if(j(u,e),l+=await k(n,p),s.onprogress)try{s.onprogress(c+d,o)}catch(e){}return i(c+a,l)}{const t=await e.flush();return l+=await k(n,t.data),{signature:t.signature,length:l}}}()}(g,o,e,w,d,c,{onprogress:n.onprogress,signal:b}),e.getData()}}function it(e,t,n){const r=e.rawBitFlag=pt(t,n+2),o=1==(1&r),i=ht(t,n+6);Object.assign(e,{encrypted:o,version:pt(t,n),bitFlag:{level:(6&r)>>1,dataDescriptor:8==(8&r),languageEncodingFlag:2048==(2048&r)},rawLastModDate:i,lastModDate:ut(i),filenameLength:pt(t,n+22),extraFieldLength:pt(t,n+24)})}function st(e,t,n,r){const o=t.rawExtraField,i=t.extraField=new Map,s=yt(new Uint8Array(o));let a=0;try{for(;a<o.length;){const e=pt(s,a),t=pt(s,a+2);i.set(e,{type:e,data:o.slice(a+4,a+4+t)}),a+=4+t}}catch(e){}const c=pt(n,r+4);t.signature=ht(n,r+10),t.uncompressedSize=ht(n,r+18),t.compressedSize=ht(n,r+14);const l=i.get(1);l&&(function(e,t){t.zip64=!0;const n=yt(e.data);e.values=[];for(let t=0;t<Math.floor(e.data.length/8);t++)e.values.push(mt(n,0+8*t));const r=rt.filter((e=>t[e]==q));for(let t=0;t<r.length;t++)e[r[t]]=e.values[t];rt.forEach((n=>{if(t[n]==q){if(void 0===e[n])throw new Error(Qe);t[n]=e[n]}}))}(l,t),t.extraFieldZip64=l);const u=i.get(28789);u&&(at(u,"filename","rawFilename",t,e),t.extraFieldUnicodePath=u);const f=i.get(25461);f&&(at(f,"comment","rawComment",t,e),t.extraFieldUnicodeComment=f);const d=i.get(39169);d?(function(e,t,n){const r=yt(e.data);e.vendorVersion=dt(r,0),e.vendorId=dt(r,2);const o=dt(r,4);e.strength=o,e.originalCompressionMethod=n,t.compressionMethod=e.compressionMethod=pt(r,5)}(d,t,c),t.extraFieldAES=d):t.compressionMethod=c;const p=i.get(10);p&&(function(e,t){const n=yt(e.data);let r,o=4;try{for(;o<e.data.length&&!r;){const t=pt(n,o),i=pt(n,o+2);1==t&&(r=e.data.slice(o+4,o+4+i)),o+=4+i}}catch(e){}try{if(r&&24==r.length){const n=yt(r),o=n.getBigUint64(0,!0),i=n.getBigUint64(8,!0),s=n.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:o,rawLastAccessDate:i,rawCreationDate:s});const a=ft(o),c={lastModDate:a,lastAccessDate:ft(i),creationDate:ft(s)};Object.assign(e,c),Object.assign(t,c)}}catch(e){}}(p,t),t.extraFieldNTFS=p);const h=i.get(21589);h&&(function(e,t){const n=yt(e.data),r=dt(n,0),o=[],i=[];1==(1&r)&&(o.push("lastModDate"),i.push("rawLastModDate")),2==(2&r)&&(o.push("lastAccessDate"),i.push("rawLastAccessDate")),4==(4&r)&&(o.push("creationDate"),i.push("rawCreationDate"));let s=1;o.forEach(((r,o)=>{if(e.data.length>=s+4){const a=ht(n,s);t[r]=e[r]=new Date(1e3*a);const c=i[o];e[c]=a}s+=4}))}(h,t),t.extraFieldExtendedTimestamp=h)}function at(e,t,n,r,o){const i=yt(e.data);e.version=dt(i,0),e.signature=ht(i,1);const s=new $;s.append(o[n]);const a=yt(new Uint8Array(4));a.setUint32(0,s.get(),!0),e[t]=(new TextDecoder).decode(e.data.subarray(5)),e.valid=!o.bitFlag.languageEncodingFlag&&e.signature==ht(a,0),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function ct(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function lt(e,t){return t&&"cp437"!=t.trim().toLowerCase()?new TextDecoder(t).decode(e):(e=>{let t="";for(let n=0;n<e.length;n++)t+=Y[e[n]];return t})(e)}function ut(e){const t=(4294901760&e)>>16,n=65535&e;try{return new Date(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function ft(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function dt(e,t){return e.getUint8(t)}function pt(e,t){return e.getUint16(t,!0)}function ht(e,t){return e.getUint32(t,!0)}function mt(e,t){return Number(e.getBigUint64(t,!0))}function yt(e){return new DataView(e.buffer)}function vt(e,t,n){return e.readUint8Array(t,n)}w({Inflate:function(e){const t=new _,n=e&&e.chunkSize?Math.floor(2*e.chunkSize):131072,o=new Uint8Array(n);let i=!1;t.inflateInit(),t.next_out=o,this.append=function(e,s){const a=[];let c,l,u=0,f=0,d=0;if(0!==e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=n,0!==t.avail_in||i||(t.next_in_index=0,i=!0),c=t.inflate(0),i&&c===r){if(0!==t.avail_in)throw new Error("inflating: bad input")}else if(0!==c&&1!==c)throw new Error("inflating: "+t.msg);if((i||1===c)&&t.avail_in===e.length)throw new Error("inflating: bad input");t.next_out_index&&(t.next_out_index===n?a.push(new Uint8Array(o)):a.push(o.slice(0,t.next_out_index))),d+=t.next_out_index,s&&t.next_in_index>0&&t.next_in_index!=u&&(s(t.next_in_index),u=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return a.length>1?(l=new Uint8Array(d),a.forEach((function(e){l.set(e,f),f+=e.length}))):l=a[0]||new Uint8Array(0),l}},this.flush=function(){t.inflateEnd()}}}),e.BlobReader=L,e.BlobWriter=class extends I{constructor(e){super(),this.offset=0,this.contentType=e,this.blob=new Blob([],{type:e})}async writeUint8Array(e){super.writeUint8Array(e),this.blob=new Blob([this.blob,e.buffer],{type:this.contentType}),this.offset=this.blob.size}getData(){return this.blob}},e.Data64URIReader=class extends T{constructor(e){super(),this.dataURI=e;let t=e.length;for(;"="==e.charAt(t-1);)t--;this.dataStart=e.indexOf(",")+1,this.size=Math.floor(.75*(t-this.dataStart))}async readUint8Array(e,t){const n=new Uint8Array(t),r=4*Math.floor(e/3),o=atob(this.dataURI.substring(r+this.dataStart,4*Math.ceil((e+t)/3)+this.dataStart)),i=e-3*Math.floor(r/4);for(let e=i;e<i+t;e++)n[e-i]=o.charCodeAt(e);return n}},e.Data64URIWriter=class extends I{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}async writeUint8Array(e){super.writeUint8Array(e);let t=0,n=this.pending;const r=this.pending.length;for(this.pending="",t=0;t<3*Math.floor((r+e.length)/3)-r;t++)n+=String.fromCharCode(e[t]);for(;t<e.length;t++)this.pending+=String.fromCharCode(e[t]);n.length>2?this.data+=btoa(n):this.pending=n}getData(){return this.data+btoa(this.pending)}},e.ERR_ABORT=x,e.ERR_BAD_FORMAT=Ve,e.ERR_CENTRAL_DIRECTORY_NOT_FOUND=$e,e.ERR_ENCRYPTED=Ze,e.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=Xe,e.ERR_EOCDR_NOT_FOUND=Ge,e.ERR_EOCDR_ZIP64_NOT_FOUND=Ye,e.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=Qe,e.ERR_HTTP_RANGE=S,e.ERR_INVALID_PASSWORD=re,e.ERR_INVALID_SIGNATURE=Be,e.ERR_LOCAL_FILE_HEADER_NOT_FOUND=Je,e.ERR_UNSUPPORTED_COMPRESSION=tt,e.ERR_UNSUPPORTED_ENCRYPTION=et,e.HttpRangeReader=class extends H{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=H,e.Reader=T,e.TextReader=class extends T{constructor(e){super(),this.blobReader=new L(new Blob([e],{type:C}))}async init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}async readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}},e.TextWriter=class extends I{constructor(e){super(),this.encoding=e,this.blob=new Blob([],{type:C})}async writeUint8Array(e){super.writeUint8Array(e),this.blob=new Blob([this.blob,e.buffer],{type:C})}getData(){const e=new FileReader;return new Promise(((t,n)=>{e.onload=e=>t(e.target.result),e.onerror=()=>n(e.error),e.readAsText(this.blob,this.encoding)}))}},e.Uint8ArrayReader=class extends T{constructor(e){super(),this.array=e,this.size=e.length}async readUint8Array(e,t){return this.array.slice(e,e+t)}},e.Uint8ArrayWriter=class extends I{constructor(){super(),this.array=new Uint8Array(0)}async writeUint8Array(e){super.writeUint8Array(e);const t=this.array;this.array=new Uint8Array(t.length+e.length),this.array.set(t),this.array.set(e,t.length)}getData(){return this.array}},e.Writer=I,e.ZipReader=class{constructor(e,t={}){Object.assign(this,{reader:e,options:t,config:b})}async getEntries(e={}){const t=this,n=t.reader;if(n.initialized||await n.init(),n.size<22)throw new Error(Ve);const r=await async function(e,t,n,r,o){const i=new Uint8Array(4);!function(e,t,n){e.setUint32(0,101010256,!0)}(yt(i));return await s(22)||await s(Math.min(1048582,n));async function s(t){const r=n-t,o=await vt(e,r,t);for(let e=o.length-22;e>=0;e--)if(o[e]==i[0]&&o[e+1]==i[1]&&o[e+2]==i[2]&&o[e+3]==i[3])return{offset:r+e,buffer:o.slice(e,e+22).buffer}}}(n,0,n.size);if(!r)throw new Error(Ge);const o=yt(r);let i=ht(o,12),s=ht(o,16),a=pt(o,8),c=0;if(s==q||65535==a){const e=yt(await vt(n,r.offset-20,20));if(117853008!=ht(e,0))throw new Error(Ye);s=mt(e,8);let t=await vt(n,s,56),o=yt(t);const l=r.offset-20-56;if(ht(o,0)!=G&&s!=l){const e=s;s=l,c=s-e,t=await vt(n,s,56),o=yt(t)}if(ht(o,0)!=G)throw new Error(Xe);a=mt(o,24),i=ht(e,4),s-=mt(o,40)}if(s<0||s>=n.size)throw new Error(Ve);let l=0,u=await vt(n,s,n.size-s),f=yt(u);const d=r.offset-i;if(ht(f,l)!=V&&s!=d){const e=s;s=d,c=s-e,u=await vt(n,s,n.size-s),f=yt(u)}if(s<0||s>=n.size)throw new Error(Ve);const p=[];for(let r=0;r<a;r++){const o=new ot(n,t.config,t.options);if(ht(f,l)!=V)throw new Error($e);it(o,f,l+6);const i=Boolean(o.bitFlag.languageEncodingFlag),s=l+46,d=s+o.filenameLength,h=d+o.extraFieldLength,m=pt(f,l+4),y=0==(0&m);Object.assign(o,{versionMadeBy:m,msDosCompatible:y,compressedSize:0,uncompressedSize:0,commentLength:pt(f,l+32),directory:y&&16==(16&dt(f,l+38)),offset:ht(f,l+42)+c,internalFileAttribute:ht(f,l+34),externalFileAttribute:ht(f,l+38),rawFilename:u.subarray(s,d),filenameUTF8:i,commentUTF8:i,rawExtraField:u.subarray(d,h)});const v=h+o.commentLength;o.rawComment=u.subarray(h,v),o.filename=lt(o.rawFilename,o.filenameUTF8?nt:ct(t,e,"filenameEncoding")),o.comment=lt(o.rawComment,o.commentUTF8?nt:ct(t,e,"commentEncoding")),!o.directory&&o.filename.endsWith("/")&&(o.directory=!0),st(o,o,f,l+6);const _=new qe(o);if(_.getData=(e,t)=>o.getData(e,_,t),p.push(_),l=v,e.onprogress)try{e.onprogress(r+1,a,new qe(o))}catch(e){}}return p}async close(){}},e.configure=w,e.getMimeType=function(){return"application/octet-stream"},Object.defineProperty(e,"__esModule",{value:!0})})),function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return o(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){"use strict";n.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=l(e),s=r[0],a=r[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),u=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},n.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=16383,a=0,c=n-o;a<c;a+=s)i.push(u(e,a,a+s>c?c:a+s));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){var r=e("../internals/is-callable"),o=e("../internals/try-to-string");t.exports=function(e){if(r(e))return e;throw TypeError(o(e)+" is not a function")}},{"../internals/is-callable":43,"../internals/try-to-string":89}],3:[function(e,t,n){var r=e("../internals/is-callable");t.exports=function(e){if("object"==typeof e||r(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},{"../internals/is-callable":43}],4:[function(e,t,n){var r=e("../internals/well-known-symbol"),o=e("../internals/object-create"),i=e("../internals/object-define-property"),s=r("unscopables"),a=Array.prototype;null==a[s]&&i.f(a,s,{configurable:!0,value:o(null)}),t.exports=function(e){a[s][e]=!0}},{"../internals/object-create":57,"../internals/object-define-property":59,"../internals/well-known-symbol":92}],5:[function(e,t,n){t.exports=function(e,t,n){if(e instanceof t)return e;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},{}],6:[function(e,t,n){var r=e("../internals/is-object");t.exports=function(e){if(r(e))return e;throw TypeError(String(e)+" is not an object")}},{"../internals/is-object":46}],7:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),o=e("../internals/to-object"),i=e("../internals/call-with-safe-iteration-closing"),s=e("../internals/is-array-iterator-method"),a=e("../internals/is-constructor"),c=e("../internals/length-of-array-like"),l=e("../internals/create-property"),u=e("../internals/get-iterator"),f=e("../internals/get-iterator-method");t.exports=function(e){var t=o(e),n=a(this),d=arguments.length,p=d>1?arguments[1]:void 0,h=void 0!==p;h&&(p=r(p,d>2?arguments[2]:void 0,2));var m,y,v,_,g,b,w=f(t),x=0;if(!w||this==Array&&s(w))for(m=c(t),y=n?new this(m):Array(m);m>x;x++)b=h?p(t[x],x):t[x],l(y,x,b);else for(g=(_=u(t,w)).next,y=n?new this:[];!(v=g.call(_)).done;x++)b=h?i(_,p,[v.value,x],!0):v.value,l(y,x,b);return y.length=x,y}},{"../internals/call-with-safe-iteration-closing":9,"../internals/create-property":17,"../internals/function-bind-context":28,"../internals/get-iterator":32,"../internals/get-iterator-method":31,"../internals/is-array-iterator-method":42,"../internals/is-constructor":44,"../internals/length-of-array-like":52,"../internals/to-object":84}],8:[function(e,t,n){var r=e("../internals/to-indexed-object"),o=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),s=function(e){return function(t,n,s){var a,c=r(t),l=i(c),u=o(s,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":52,"../internals/to-absolute-index":80,"../internals/to-indexed-object":81}],9:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/iterator-close");t.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},{"../internals/an-object":6,"../internals/iterator-close":49}],10:[function(e,t,n){var r={}.toString;t.exports=function(e){return r.call(e).slice(8,-1)}},{}],11:[function(e,t,n){var r=e("../internals/to-string-tag-support"),o=e("../internals/is-callable"),i=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?n:a?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},{"../internals/classof-raw":10,"../internals/is-callable":43,"../internals/to-string-tag-support":87,"../internals/well-known-symbol":92}],12:[function(e,t,n){var r=e("../internals/has-own-property"),o=e("../internals/own-keys"),i=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");t.exports=function(e,t){for(var n=o(t),a=s.f,c=i.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||a(e,u,c(t,u))}}},{"../internals/has-own-property":35,"../internals/object-define-property":59,"../internals/object-get-own-property-descriptor":60,"../internals/own-keys":69}],13:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":27}],14:[function(e,t,n){"use strict";var r=e("../internals/iterators-core").IteratorPrototype,o=e("../internals/object-create"),i=e("../internals/create-property-descriptor"),s=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),c=function(){return this};t.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),s(e,l,!1,!0),a[l]=c,e}},{"../internals/create-property-descriptor":16,"../internals/iterators":51,"../internals/iterators-core":50,"../internals/object-create":57,"../internals/set-to-string-tag":74}],15:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":16,"../internals/descriptors":19,"../internals/object-define-property":59}],16:[function(e,t,n){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],17:[function(e,t,n){"use strict";var r=e("../internals/to-property-key"),o=e("../internals/object-define-property"),i=e("../internals/create-property-descriptor");t.exports=function(e,t,n){var s=r(t);s in e?o.f(e,s,i(0,n)):e[s]=n}},{"../internals/create-property-descriptor":16,"../internals/object-define-property":59,"../internals/to-property-key":86}],18:[function(e,t,n){"use strict";var r=e("../internals/export"),o=e("../internals/is-pure"),i=e("../internals/function-name"),s=e("../internals/is-callable"),a=e("../internals/create-iterator-constructor"),c=e("../internals/object-get-prototype-of"),l=e("../internals/object-set-prototype-of"),u=e("../internals/set-to-string-tag"),f=e("../internals/create-non-enumerable-property"),d=e("../internals/redefine"),p=e("../internals/well-known-symbol"),h=e("../internals/iterators"),m=e("../internals/iterators-core"),y=i.PROPER,v=i.CONFIGURABLE,_=m.IteratorPrototype,g=m.BUGGY_SAFARI_ITERATORS,b=p("iterator"),w="keys",x="values",j="entries",k=function(){return this};t.exports=function(e,t,n,i,p,m,E){a(n,t,i);var S,C,D,O=function(e){if(e===p&&T)return T;if(!g&&e in A)return A[e];switch(e){case w:case x:case j:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",M=!1,A=e.prototype,B=A[b]||A["@@iterator"]||p&&A[p],T=!g&&B||O(p),I="Array"==t&&A.entries||B;if(I&&(S=c(I.call(new e)))!==Object.prototype&&S.next&&(o||c(S)===_||(l?l(S,_):s(S[b])||d(S,b,k)),u(S,P,!0,!0),o&&(h[P]=k)),y&&p==x&&B&&B.name!==x&&(!o&&v?f(A,"name",x):(M=!0,T=function(){return B.call(this)})),p)if(C={values:O(x),keys:m?T:O(w),entries:O(j)},E)for(D in C)(g||M||!(D in A))&&d(A,D,C[D]);else r({target:t,proto:!0,forced:g||M},C);return o&&!E||A[b]===T||d(A,b,T,{name:p}),h[t]=T,C}},{"../internals/create-iterator-constructor":14,"../internals/create-non-enumerable-property":15,"../internals/export":26,"../internals/function-name":29,"../internals/is-callable":43,"../internals/is-pure":47,"../internals/iterators":51,"../internals/iterators-core":50,"../internals/object-get-prototype-of":63,"../internals/object-set-prototype-of":67,"../internals/redefine":71,"../internals/set-to-string-tag":74,"../internals/well-known-symbol":92}],19:[function(e,t,n){var r=e("../internals/fails");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":27}],20:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/is-object"),i=r.document,s=o(i)&&o(i.createElement);t.exports=function(e){return s?i.createElement(e):{}}},{"../internals/global":34,"../internals/is-object":46}],21:[function(e,t,n){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],22:[function(e,t,n){var r=e("../internals/document-create-element")("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},{"../internals/document-create-element":20}],23:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("navigator","userAgent")||""},{"../internals/get-built-in":30}],24:[function(e,t,n){var r,o,i=e("../internals/global"),s=e("../internals/engine-user-agent"),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u?o=(r=u.split("."))[0]<4?1:r[0]+r[1]:s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},{"../internals/engine-user-agent":23,"../internals/global":34}],25:[function(e,t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],26:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/object-get-own-property-descriptor").f,i=e("../internals/create-non-enumerable-property"),s=e("../internals/redefine"),a=e("../internals/set-global"),c=e("../internals/copy-constructor-properties"),l=e("../internals/is-forced");t.exports=function(e,t){var n,u,f,d,p,h=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[h]||a(h,{}):(r[h]||{}).prototype)for(u in t){if(d=t[u],f=e.noTargetGet?(p=o(n,u))&&p.value:n[u],!l(m?u:h+(y?".":"#")+u,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),s(n,u,d,e)}}},{"../internals/copy-constructor-properties":12,"../internals/create-non-enumerable-property":15,"../internals/global":34,"../internals/is-forced":45,"../internals/object-get-own-property-descriptor":60,"../internals/redefine":71,"../internals/set-global":73}],27:[function(e,t,n){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],28:[function(e,t,n){var r=e("../internals/a-callable");t.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},{"../internals/a-callable":2}],29:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/has-own-property"),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},{"../internals/descriptors":19,"../internals/has-own-property":35}],30:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/is-callable"),i=function(e){return o(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},{"../internals/global":34,"../internals/is-callable":43}],31:[function(e,t,n){var r=e("../internals/classof"),o=e("../internals/get-method"),i=e("../internals/iterators"),s=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(null!=e)return o(e,s)||o(e,"@@iterator")||i[r(e)]}},{"../internals/classof":11,"../internals/get-method":33,"../internals/iterators":51,"../internals/well-known-symbol":92}],32:[function(e,t,n){var r=e("../internals/a-callable"),o=e("../internals/an-object"),i=e("../internals/get-iterator-method");t.exports=function(e,t){var n=arguments.length<2?i(e):t;if(r(n))return o(n.call(e));throw TypeError(String(e)+" is not iterable")}},{"../internals/a-callable":2,"../internals/an-object":6,"../internals/get-iterator-method":31}],33:[function(e,t,n){var r=e("../internals/a-callable");t.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},{"../internals/a-callable":2}],34:[function(e,t,n){(function(e){(function(){var n=function(e){return e&&e.Math==Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],35:[function(e,t,n){var r=e("../internals/to-object"),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(e,t){return o.call(r(e),t)}},{"../internals/to-object":84}],36:[function(e,t,n){t.exports={}},{}],37:[function(e,t,n){var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":30}],38:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/fails"),i=e("../internals/document-create-element");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":19,"../internals/document-create-element":20,"../internals/fails":27}],39:[function(e,t,n){var r=e("../internals/fails"),o=e("../internals/classof-raw"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},{"../internals/classof-raw":10,"../internals/fails":27}],40:[function(e,t,n){var r=e("../internals/is-callable"),o=e("../internals/shared-store"),i=Function.toString;r(o.inspectSource)||(o.inspectSource=function(e){return i.call(e)}),t.exports=o.inspectSource},{"../internals/is-callable":43,"../internals/shared-store":76}],41:[function(e,t,n){var r,o,i,s=e("../internals/native-weak-map"),a=e("../internals/global"),c=e("../internals/is-object"),l=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),f=e("../internals/shared-store"),d=e("../internals/shared-key"),p=e("../internals/hidden-keys"),h="Object already initialized",m=a.WeakMap;if(s||f.state){var y=f.state||(f.state=new m),v=y.get,_=y.has,g=y.set;r=function(e,t){if(_.call(y,e))throw new TypeError(h);return t.facade=e,g.call(y,e,t),t},o=function(e){return v.call(y,e)||{}},i=function(e){return _.call(y,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){if(u(e,b))throw new TypeError(h);return t.facade=e,l(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},i=function(e){return u(e,b)}}t.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":15,"../internals/global":34,"../internals/has-own-property":35,"../internals/hidden-keys":36,"../internals/is-object":46,"../internals/native-weak-map":55,"../internals/shared-key":75,"../internals/shared-store":76}],42:[function(e,t,n){var r=e("../internals/well-known-symbol"),o=e("../internals/iterators"),i=r("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},{"../internals/iterators":51,"../internals/well-known-symbol":92}],43:[function(e,t,n){t.exports=function(e){return"function"==typeof e}},{}],44:[function(e,t,n){var r=e("../internals/fails"),o=e("../internals/is-callable"),i=e("../internals/classof"),s=e("../internals/get-built-in"),a=e("../internals/inspect-source"),c=[],l=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=u.exec,d=!u.exec((function(){})),p=function(e){if(!o(e))return!1;try{return l(Object,c,e),!0}catch(e){return!1}};t.exports=!l||r((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?function(e){if(!o(e))return!1;switch(i(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d||!!f.call(u,a(e))}:p},{"../internals/classof":11,"../internals/fails":27,"../internals/get-built-in":30,"../internals/inspect-source":40,"../internals/is-callable":43}],45:[function(e,t,n){var r=e("../internals/fails"),o=e("../internals/is-callable"),i=/#|\.prototype\./,s=function(e,t){var n=c[a(e)];return n==u||n!=l&&(o(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=s.data={},l=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},{"../internals/fails":27,"../internals/is-callable":43}],46:[function(e,t,n){var r=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/is-callable":43}],47:[function(e,t,n){t.exports=!1},{}],48:[function(e,t,n){var r=e("../internals/is-callable"),o=e("../internals/get-built-in"),i=e("../internals/use-symbol-as-uid");t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&Object(e)instanceof t}},{"../internals/get-built-in":30,"../internals/is-callable":43,"../internals/use-symbol-as-uid":91}],49:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/get-method");t.exports=function(e,t,n){var i,s;r(e);try{if(!(i=o(e,"return"))){if("throw"===t)throw n;return n}i=i.call(e)}catch(e){s=!0,i=e}if("throw"===t)throw n;if(s)throw i;return r(i),n}},{"../internals/an-object":6,"../internals/get-method":33}],50:[function(e,t,n){"use strict";var r,o,i,s=e("../internals/fails"),a=e("../internals/is-callable"),c=e("../internals/object-create"),l=e("../internals/object-get-prototype-of"),u=e("../internals/redefine"),f=e("../internals/well-known-symbol"),d=e("../internals/is-pure"),p=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):h=!0),null==r||s((function(){var e={};return r[p].call(e)!==e}))?r={}:d&&(r=c(r)),a(r[p])||u(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},{"../internals/fails":27,"../internals/is-callable":43,"../internals/is-pure":47,"../internals/object-create":57,"../internals/object-get-prototype-of":63,"../internals/redefine":71,"../internals/well-known-symbol":92}],51:[function(e,t,n){arguments[4][36][0].apply(n,arguments)},{dup:36}],52:[function(e,t,n){var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":83}],53:[function(e,t,n){var r=e("../internals/engine-v8-version"),o=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/engine-v8-version":24,"../internals/fails":27}],54:[function(e,t,n){var r=e("../internals/fails"),o=e("../internals/well-known-symbol"),i=e("../internals/is-pure"),s=o("iterator");t.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},{"../internals/fails":27,"../internals/is-pure":47,"../internals/well-known-symbol":92}],55:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/is-callable"),i=e("../internals/inspect-source"),s=r.WeakMap;t.exports=o(s)&&/native code/.test(i(s))},{"../internals/global":34,"../internals/inspect-source":40,"../internals/is-callable":43}],56:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),o=e("../internals/fails"),i=e("../internals/object-keys"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/object-property-is-enumerable"),c=e("../internals/to-object"),l=e("../internals/indexed-object"),u=Object.assign,f=Object.defineProperty;t.exports=!u||o((function(){if(r&&1!==u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||i(u({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,u=1,f=s.f,d=a.f;o>u;)for(var p,h=l(arguments[u++]),m=f?i(h).concat(f(h)):i(h),y=m.length,v=0;y>v;)p=m[v++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:u},{"../internals/descriptors":19,"../internals/fails":27,"../internals/indexed-object":39,"../internals/object-get-own-property-symbols":62,"../internals/object-keys":65,"../internals/object-property-is-enumerable":66,"../internals/to-object":84}],57:[function(e,t,n){var r,o=e("../internals/an-object"),i=e("../internals/object-define-properties"),s=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),c=e("../internals/html"),l=e("../internals/document-create-element"),u=e("../internals/shared-key"),f=u("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"</"+"script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&r?h(r):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(r);for(var n=s.length;n--;)delete m.prototype[s[n]];return m()};a[f]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[f]=e):n=m(),void 0===t?n:i(n,t)}},{"../internals/an-object":6,"../internals/document-create-element":20,"../internals/enum-bug-keys":25,"../internals/hidden-keys":36,"../internals/html":37,"../internals/object-define-properties":58,"../internals/shared-key":75}],58:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-define-property"),i=e("../internals/an-object"),s=e("../internals/object-keys");t.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=s(t),a=r.length,c=0;a>c;)o.f(e,n=r[c++],t[n]);return e}},{"../internals/an-object":6,"../internals/descriptors":19,"../internals/object-define-property":59,"../internals/object-keys":65}],59:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/ie8-dom-define"),i=e("../internals/an-object"),s=e("../internals/to-property-key"),a=Object.defineProperty;n.f=r?a:function(e,t,n){if(i(e),t=s(t),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":6,"../internals/descriptors":19,"../internals/ie8-dom-define":38,"../internals/to-property-key":86}],60:[function(e,t,n){var r=e("../internals/descriptors"),o=e("../internals/object-property-is-enumerable"),i=e("../internals/create-property-descriptor"),s=e("../internals/to-indexed-object"),a=e("../internals/to-property-key"),c=e("../internals/has-own-property"),l=e("../internals/ie8-dom-define"),u=Object.getOwnPropertyDescriptor;n.f=r?u:function(e,t){if(e=s(e),t=a(t),l)try{return u(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},{"../internals/create-property-descriptor":16,"../internals/descriptors":19,"../internals/has-own-property":35,"../internals/ie8-dom-define":38,"../internals/object-property-is-enumerable":66,"../internals/to-indexed-object":81,"../internals/to-property-key":86}],61:[function(e,t,n){var r=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},{"../internals/enum-bug-keys":25,"../internals/object-keys-internal":64}],62:[function(e,t,n){n.f=Object.getOwnPropertySymbols},{}],63:[function(e,t,n){var r=e("../internals/has-own-property"),o=e("../internals/is-callable"),i=e("../internals/to-object"),s=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),c=s("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof Object?l:null}},{"../internals/correct-prototype-getter":13,"../internals/has-own-property":35,"../internals/is-callable":43,"../internals/shared-key":75,"../internals/to-object":84}],64:[function(e,t,n){var r=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),i=e("../internals/array-includes").indexOf,s=e("../internals/hidden-keys");t.exports=function(e,t){var n,a=o(e),c=0,l=[];for(n in a)!r(s,n)&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~i(l,n)||l.push(n));return l}},{"../internals/array-includes":8,"../internals/has-own-property":35,"../internals/hidden-keys":36,"../internals/to-indexed-object":81}],65:[function(e,t,n){var r=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,o)}},{"../internals/enum-bug-keys":25,"../internals/object-keys-internal":64}],66:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},{}],67:[function(e,t,n){var r=e("../internals/an-object"),o=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},{"../internals/a-possible-prototype":3,"../internals/an-object":6}],68:[function(e,t,n){var r=e("../internals/is-callable"),o=e("../internals/is-object");t.exports=function(e,t){var n,i;if("string"===t&&r(n=e.toString)&&!o(i=n.call(e)))return i;if(r(n=e.valueOf)&&!o(i=n.call(e)))return i;if("string"!==t&&r(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-callable":43,"../internals/is-object":46}],69:[function(e,t,n){var r=e("../internals/get-built-in"),o=e("../internals/object-get-own-property-names"),i=e("../internals/object-get-own-property-symbols"),s=e("../internals/an-object");t.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=i.f;return n?t.concat(n(e)):t}},{"../internals/an-object":6,"../internals/get-built-in":30,"../internals/object-get-own-property-names":61,"../internals/object-get-own-property-symbols":62}],70:[function(e,t,n){var r=e("../internals/redefine");t.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},{"../internals/redefine":71}],71:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/is-callable"),i=e("../internals/has-own-property"),s=e("../internals/create-non-enumerable-property"),a=e("../internals/set-global"),c=e("../internals/inspect-source"),l=e("../internals/internal-state"),u=e("../internals/function-name").CONFIGURABLE,f=l.get,d=l.enforce,p=String(String).split("String");(t.exports=function(e,t,n,c){var l,f=!!c&&!!c.unsafe,h=!!c&&!!c.enumerable,m=!!c&&!!c.noTargetGet,y=c&&void 0!==c.name?c.name:t;o(n)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||u&&n.name!==y)&&s(n,"name",y),(l=d(n)).source||(l.source=p.join("string"==typeof y?y:""))),e!==r?(f?!m&&e[t]&&(h=!0):delete e[t],h?e[t]=n:s(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||c(this)}))},{"../internals/create-non-enumerable-property":15,"../internals/function-name":29,"../internals/global":34,"../internals/has-own-property":35,"../internals/inspect-source":40,"../internals/internal-state":41,"../internals/is-callable":43,"../internals/set-global":73}],72:[function(e,t,n){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],73:[function(e,t,n){var r=e("../internals/global");t.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global":34}],74:[function(e,t,n){var r=e("../internals/object-define-property").f,o=e("../internals/has-own-property"),i=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},{"../internals/has-own-property":35,"../internals/object-define-property":59,"../internals/well-known-symbol":92}],75:[function(e,t,n){var r=e("../internals/shared"),o=e("../internals/uid"),i=r("keys");t.exports=function(e){return i[e]||(i[e]=o(e))}},{"../internals/shared":77,"../internals/uid":90}],76:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/set-global"),i="__core-js_shared__",s=r[i]||o(i,{});t.exports=s},{"../internals/global":34,"../internals/set-global":73}],77:[function(e,t,n){var r=e("../internals/is-pure"),o=e("../internals/shared-store");(t.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":47,"../internals/shared-store":76}],78:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),o=e("../internals/to-string"),i=e("../internals/require-object-coercible"),s=function(e){return function(t,n){var s,a,c=o(i(t)),l=r(n),u=c.length;return l<0||l>=u?e?"":void 0:(s=c.charCodeAt(l))<55296||s>56319||l+1===u||(a=c.charCodeAt(l+1))<56320||a>57343?e?c.charAt(l):s:e?c.slice(l,l+2):a-56320+(s-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},{"../internals/require-object-coercible":72,"../internals/to-integer-or-infinity":82,"../internals/to-string":88}],79:[function(e,t,n){"use strict";var r=2147483647,o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",a=Math.floor,c=String.fromCharCode,l=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},f=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);var n,o,i=e.length,f=128,d=0,p=72;for(n=0;n<e.length;n++)(o=e[n])<128&&t.push(c(o));var h=t.length,m=h;for(h&&t.push("-");m<i;){var y=r;for(n=0;n<e.length;n++)(o=e[n])>=f&&o<y&&(y=o);var v=m+1;if(y-f>a((r-d)/v))throw RangeError(s);for(d+=(y-f)*v,f=y,n=0;n<e.length;n++){if((o=e[n])<f&&++d>r)throw RangeError(s);if(o==f){for(var _=d,g=36;;g+=36){var b=g<=p?1:g>=p+26?26:g-p;if(_<b)break;var w=_-b,x=36-b;t.push(c(l(b+w%x))),_=a(w/x)}t.push(c(l(_))),p=u(d,v,m==h),d=0,++m}}++d,++f}return t.join("")};t.exports=function(e){var t,n,r=[],s=e.toLowerCase().replace(i,".").split(".");for(t=0;t<s.length;t++)n=s[t],r.push(o.test(n)?"xn--"+f(n):n);return r.join(".")}},{}],80:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),o=Math.max,i=Math.min;t.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},{"../internals/to-integer-or-infinity":82}],81:[function(e,t,n){var r=e("../internals/indexed-object"),o=e("../internals/require-object-coercible");t.exports=function(e){return r(o(e))}},{"../internals/indexed-object":39,"../internals/require-object-coercible":72}],82:[function(e,t,n){var r=Math.ceil,o=Math.floor;t.exports=function(e){var t=+e;return t!=t||0===t?0:(t>0?o:r)(t)}},{}],83:[function(e,t,n){var r=e("../internals/to-integer-or-infinity"),o=Math.min;t.exports=function(e){return e>0?o(r(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":82}],84:[function(e,t,n){var r=e("../internals/require-object-coercible");t.exports=function(e){return Object(r(e))}},{"../internals/require-object-coercible":72}],85:[function(e,t,n){var r=e("../internals/is-object"),o=e("../internals/is-symbol"),i=e("../internals/get-method"),s=e("../internals/ordinary-to-primitive"),a=e("../internals/well-known-symbol")("toPrimitive");t.exports=function(e,t){if(!r(e)||o(e))return e;var n,c=i(e,a);if(c){if(void 0===t&&(t="default"),n=c.call(e,t),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},{"../internals/get-method":33,"../internals/is-object":46,"../internals/is-symbol":48,"../internals/ordinary-to-primitive":68,"../internals/well-known-symbol":92}],86:[function(e,t,n){var r=e("../internals/to-primitive"),o=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return o(t)?t:String(t)}},{"../internals/is-symbol":48,"../internals/to-primitive":85}],87:[function(e,t,n){var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(r)},{"../internals/well-known-symbol":92}],88:[function(e,t,n){var r=e("../internals/classof");t.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},{"../internals/classof":11}],89:[function(e,t,n){t.exports=function(e){try{return String(e)}catch(e){return"Object"}}},{}],90:[function(e,t,n){var r=0,o=Math.random();t.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+o).toString(36)}},{}],91:[function(e,t,n){var r=e("../internals/native-symbol");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/native-symbol":53}],92:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/shared"),i=e("../internals/has-own-property"),s=e("../internals/uid"),a=e("../internals/native-symbol"),c=e("../internals/use-symbol-as-uid"),l=o("wks"),u=r.Symbol,f=c?u:u&&u.withoutSetter||s;t.exports=function(e){return i(l,e)&&(a||"string"==typeof l[e])||(a&&i(u,e)?l[e]=u[e]:l[e]=f("Symbol."+e)),l[e]}},{"../internals/global":34,"../internals/has-own-property":35,"../internals/native-symbol":53,"../internals/shared":77,"../internals/uid":90,"../internals/use-symbol-as-uid":91}],93:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),o=e("../internals/add-to-unscopables"),i=e("../internals/iterators"),s=e("../internals/internal-state"),a=e("../internals/define-iterator"),c="Array Iterator",l=s.set,u=s.getterFor(c);t.exports=a(Array,"Array",(function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},{"../internals/add-to-unscopables":4,"../internals/define-iterator":18,"../internals/internal-state":41,"../internals/iterators":51,"../internals/to-indexed-object":81}],94:[function(e,t,n){"use strict";var r=e("../internals/string-multibyte").charAt,o=e("../internals/to-string"),i=e("../internals/internal-state"),s=e("../internals/define-iterator"),a="String Iterator",c=i.set,l=i.getterFor(a);s(String,"String",(function(e){c(this,{type:a,string:o(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},{"../internals/define-iterator":18,"../internals/internal-state":41,"../internals/string-multibyte":78,"../internals/to-string":88}],95:[function(e,t,n){var r=e("../internals/global"),o=e("../internals/dom-iterables"),i=e("../internals/dom-token-list-prototype"),s=e("../modules/es.array.iterator"),a=e("../internals/create-non-enumerable-property"),c=e("../internals/well-known-symbol"),l=c("iterator"),u=c("toStringTag"),f=s.values,d=function(e,t){if(e){if(e[l]!==f)try{a(e,l,f)}catch(t){e[l]=f}if(e[u]||a(e,u,t),o[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var p in o)d(r[p]&&r[p].prototype,p);d(i,"DOMTokenList")},{"../internals/create-non-enumerable-property":15,"../internals/dom-iterables":21,"../internals/dom-token-list-prototype":22,"../internals/global":34,"../internals/well-known-symbol":92,"../modules/es.array.iterator":93}],96:[function(e,t,n){"use strict";e("../modules/es.array.iterator");var r=e("../internals/export"),o=e("../internals/get-built-in"),i=e("../internals/native-url"),s=e("../internals/redefine"),a=e("../internals/redefine-all"),c=e("../internals/set-to-string-tag"),l=e("../internals/create-iterator-constructor"),u=e("../internals/internal-state"),f=e("../internals/an-instance"),d=e("../internals/is-callable"),p=e("../internals/has-own-property"),h=e("../internals/function-bind-context"),m=e("../internals/classof"),y=e("../internals/an-object"),v=e("../internals/is-object"),_=e("../internals/to-string"),g=e("../internals/object-create"),b=e("../internals/create-property-descriptor"),w=e("../internals/get-iterator"),x=e("../internals/get-iterator-method"),j=e("../internals/well-known-symbol"),k=o("fetch"),E=o("Request"),S=E&&E.prototype,C=o("Headers"),D=j("iterator"),O="URLSearchParams",P="URLSearchParamsIterator",M=u.set,A=u.getterFor(O),B=u.getterFor(P),T=/\+/g,I=Array(4),L=function(e){return I[e-1]||(I[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},K=function(e){try{return decodeURIComponent(e)}catch(t){return e}},R=function(e){var t=e.replace(T," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(L(n--),K);return t}},F=/[!'()~]|%20/g,N={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},U=function(e){return N[e]},z=function(e){return encodeURIComponent(e).replace(F,U)},H=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i<o.length;)(n=o[i++]).length&&(r=n.split("="),e.push({key:R(r.shift()),value:R(r.join("="))}))},W=function(e){this.entries.length=0,H(this.entries,e)},q=function(e,t){if(e<t)throw TypeError("Not enough arguments")},V=l((function(e,t){M(this,{type:P,iterator:w(A(e).entries),kind:t})}),"Iterator",(function(){var e=B(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),G=function(){f(this,G,O);var e,t,n,r,o,i,s,a,c,l=arguments.length>0?arguments[0]:void 0,u=this,d=[];if(M(u,{type:O,entries:d,updateURL:function(){},updateSearchParams:W}),void 0!==l)if(v(l))if(e=x(l))for(n=(t=w(l,e)).next;!(r=n.call(t)).done;){if((s=(i=(o=w(y(r.value))).next).call(o)).done||(a=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");d.push({key:_(s.value),value:_(a.value)})}else for(c in l)p(l,c)&&d.push({key:c,value:_(l[c])});else H(d,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:_(l))},Y=G.prototype;if(a(Y,{append:function(e,t){q(arguments.length,2);var n=A(this);n.entries.push({key:_(e),value:_(t)}),n.updateURL()},delete:function(e){q(arguments.length,1);for(var t=A(this),n=t.entries,r=_(e),o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){q(arguments.length,1);for(var t=A(this).entries,n=_(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){q(arguments.length,1);for(var t=A(this).entries,n=_(e),r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){q(arguments.length,1);for(var t=A(this).entries,n=_(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){q(arguments.length,1);for(var n,r=A(this),o=r.entries,i=!1,s=_(e),a=_(t),c=0;c<o.length;c++)(n=o[c]).key===s&&(i?o.splice(c--,1):(i=!0,n.value=a));i||o.push({key:s,value:a}),r.updateURL()},sort:function(){var e,t,n,r=A(this),o=r.entries,i=o.slice();for(o.length=0,n=0;n<i.length;n++){for(e=i[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=A(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new V(this,"keys")},values:function(){return new V(this,"values")},entries:function(){return new V(this,"entries")}},{enumerable:!0}),s(Y,D,Y.entries,{name:"entries"}),s(Y,"toString",(function(){for(var e,t=A(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(z(e.key)+"="+z(e.value));return n.join("&")}),{enumerable:!0}),c(G,O),r({global:!0,forced:!i},{URLSearchParams:G}),!i&&d(C)){var X=function(e){if(v(e)){var t,n=e.body;if(m(n)===O)return(t=e.headers?new C(e.headers):new C).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),g(e,{body:b(0,String(n)),headers:b(0,t)})}return e};if(d(k)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(e,arguments.length>1?X(arguments[1]):{})}}),d(E)){var $=function(e){return f(this,$,"Request"),new E(e,arguments.length>1?X(arguments[1]):{})};S.constructor=$,$.prototype=S,r({global:!0,forced:!0},{Request:$})}}t.exports={URLSearchParams:G,getState:A}},{"../internals/an-instance":5,"../internals/an-object":6,"../internals/classof":11,"../internals/create-iterator-constructor":14,"../internals/create-property-descriptor":16,"../internals/export":26,"../internals/function-bind-context":28,"../internals/get-built-in":30,"../internals/get-iterator":32,"../internals/get-iterator-method":31,"../internals/has-own-property":35,"../internals/internal-state":41,"../internals/is-callable":43,"../internals/is-object":46,"../internals/native-url":54,"../internals/object-create":57,"../internals/redefine":71,"../internals/redefine-all":70,"../internals/set-to-string-tag":74,"../internals/to-string":88,"../internals/well-known-symbol":92,"../modules/es.array.iterator":93}],97:[function(e,t,n){"use strict";e("../modules/es.string.iterator");var r,o=e("../internals/export"),i=e("../internals/descriptors"),s=e("../internals/native-url"),a=e("../internals/global"),c=e("../internals/object-define-properties"),l=e("../internals/redefine"),u=e("../internals/an-instance"),f=e("../internals/has-own-property"),d=e("../internals/object-assign"),p=e("../internals/array-from"),h=e("../internals/string-multibyte").codeAt,m=e("../internals/string-punycode-to-ascii"),y=e("../internals/to-string"),v=e("../internals/set-to-string-tag"),_=e("../modules/web.url-search-params"),g=e("../internals/internal-state"),b=a.URL,w=_.URLSearchParams,x=_.getState,j=g.set,k=g.getterFor("URL"),E=Math.floor,S=Math.pow,C="Invalid scheme",D="Invalid host",O="Invalid port",P=/[a-z]/i,M=/[\d+-.a-z]/i,A=/\d/,B=/^0x/i,T=/^[0-7]+$/,I=/^\d+$/,L=/^[\da-f]+$/i,K=/[\0\t\n\r #%/:<>?@[\\\]^|]/,R=/[\0\t\n\r #/:<>?@[\\\]^|]/,F=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,N=/[\t\n\r]/g,U=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return D;if(!(n=H(t.slice(1,-1))))return D;e.host=n}else if(J(e)){if(t=m(t),K.test(t))return D;if(null===(n=z(t)))return D;e.host=n}else{if(R.test(t))return D;for(n="",r=p(t),o=0;o<r.length;o++)n+=X(r[o],q);e.host=n}},z=function(e){var t,n,r,o,i,s,a,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=c[r]))return e;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=B.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)s=0;else{if(!(10==i?I:8==i?T:L).test(o))return e;s=parseInt(o,i)}n.push(s)}for(r=0;r<t;r++)if(s=n[r],r==t-1){if(s>=S(256,5-t))return null}else if(s>255)return null;for(a=n.pop(),r=0;r<n.length;r++)a+=n[r]*S(256,3-r);return a},H=function(e){var t,n,r,o,i,s,a,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,u=++l}for(;d();){if(8==l)return;if(":"!=d()){for(t=n=0;n<4&&L.test(d());)t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,l>6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!A.test(d()))return;for(;A.test(d());){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[l]=256*c[l]+o,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(s=l-u,l=7;0!=l&&s>0;)a=c[l],c[l--]=c[u+s-1],c[u+--s]=a;else if(8!=l)return;return c},W=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=E(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},V=d({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),G=d({},V,{"#":1,"?":1,"{":1,"}":1}),Y=d({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},$={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return f($,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},Z=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},ee=function(e,t){var n;return 2==e.length&&P.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},te=function(e){var t;return e.length>1&&ee(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&ee(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},oe={},ie={},se={},ae={},ce={},le={},ue={},fe={},de={},pe={},he={},me={},ye={},ve={},_e={},ge={},be={},we={},xe={},je={},ke={},Ee=function(e,t,n,o){var i,s,a,c,l,u=n||oe,d=0,h="",m=!1,y=!1,v=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(F,"")),t=t.replace(N,""),i=p(t);d<=i.length;){switch(s=i[d],u){case oe:if(!s||!P.test(s)){if(n)return C;u=se;continue}h+=s.toLowerCase(),u=ie;break;case ie:if(s&&(M.test(s)||"+"==s||"-"==s||"."==s))h+=s.toLowerCase();else{if(":"!=s){if(n)return C;h="",u=se,d=0;continue}if(n&&(J(e)!=f($,h)||"file"==h&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(J(e)&&$[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?u=ve:J(e)&&o&&o.scheme==e.scheme?u=ae:J(e)?u=fe:"/"==i[d+1]?(u=ce,d++):(e.cannotBeABaseURL=!0,e.path.push(""),u=xe)}break;case se:if(!o||o.cannotBeABaseURL&&"#"!=s)return C;if(o.cannotBeABaseURL&&"#"==s){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,u=ke;break}u="file"==o.scheme?ve:le;continue;case ae:if("/"!=s||"/"!=i[d+1]){u=le;continue}u=de,d++;break;case ce:if("/"==s){u=pe;break}u=we;continue;case le:if(e.scheme=o.scheme,s==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==s||"\\"==s&&J(e))u=ue;else if("?"==s)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",u=je;else{if("#"!=s){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),u=we;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=ke}break;case ue:if(!J(e)||"/"!=s&&"\\"!=s){if("/"!=s){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,u=we;continue}u=pe}else u=de;break;case fe:if(u=de,"/"!=s||"/"!=h.charAt(d+1))continue;d++;break;case de:if("/"!=s&&"\\"!=s){u=pe;continue}break;case pe:if("@"==s){m&&(h="%40"+h),m=!0,a=p(h);for(var _=0;_<a.length;_++){var g=a[_];if(":"!=g||v){var b=X(g,Y);v?e.password+=b:e.username+=b}else v=!0}h=""}else if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&J(e)){if(m&&""==h)return"Invalid authority";d-=p(h).length+1,h="",u=he}else h+=s;break;case he:case me:if(n&&"file"==e.scheme){u=ge;continue}if(":"!=s||y){if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&J(e)){if(J(e)&&""==h)return D;if(n&&""==h&&(Q(e)||null!==e.port))return;if(c=U(e,h))return c;if(h="",u=be,n)return;continue}"["==s?y=!0:"]"==s&&(y=!1),h+=s}else{if(""==h)return D;if(c=U(e,h))return c;if(h="",u=ye,n==me)return}break;case ye:if(!A.test(s)){if(s==r||"/"==s||"?"==s||"#"==s||"\\"==s&&J(e)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return O;e.port=J(e)&&w===$[e.scheme]?null:w,h=""}if(n)return;u=be;continue}return O}h+=s;break;case ve:if(e.scheme="file","/"==s||"\\"==s)u=_e;else{if(!o||"file"!=o.scheme){u=we;continue}if(s==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==s)e.host=o.host,e.path=o.path.slice(),e.query="",u=je;else{if("#"!=s){te(i.slice(d).join(""))||(e.host=o.host,e.path=o.path.slice(),ne(e)),u=we;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",u=ke}}break;case _e:if("/"==s||"\\"==s){u=ge;break}o&&"file"==o.scheme&&!te(i.slice(d).join(""))&&(ee(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),u=we;continue;case ge:if(s==r||"/"==s||"\\"==s||"?"==s||"#"==s){if(!n&&ee(h))u=we;else if(""==h){if(e.host="",n)return;u=be}else{if(c=U(e,h))return c;if("localhost"==e.host&&(e.host=""),n)return;h="",u=be}continue}h+=s;break;case be:if(J(e)){if(u=we,"/"!=s&&"\\"!=s)continue}else if(n||"?"!=s)if(n||"#"!=s){if(s!=r&&(u=we,"/"!=s))continue}else e.fragment="",u=ke;else e.query="",u=je;break;case we:if(s==r||"/"==s||"\\"==s&&J(e)||!n&&("?"==s||"#"==s)){if(".."===(l=(l=h).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(ne(e),"/"==s||"\\"==s&&J(e)||e.path.push("")):re(h)?"/"==s||"\\"==s&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&ee(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(s==r||"?"==s||"#"==s))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==s?(e.query="",u=je):"#"==s&&(e.fragment="",u=ke)}else h+=X(s,G);break;case xe:"?"==s?(e.query="",u=je):"#"==s?(e.fragment="",u=ke):s!=r&&(e.path[0]+=X(s,q));break;case je:n||"#"!=s?s!=r&&("'"==s&&J(e)?e.query+="%27":e.query+="#"==s?"%23":X(s,q)):(e.fragment="",u=ke);break;case ke:s!=r&&(e.fragment+=X(s,V))}d++}},Se=function(e){var t,n,r=u(this,Se,"URL"),o=arguments.length>1?arguments[1]:void 0,s=y(e),a=j(r,{type:"URL"});if(void 0!==o)if(o instanceof Se)t=k(o);else if(n=Ee(t={},y(o)))throw TypeError(n);if(n=Ee(a,s,null,t))throw TypeError(n);var c=a.searchParams=new w,l=x(c);l.updateSearchParams(a.query),l.updateURL=function(){a.query=String(c)||null},i||(r.href=De.call(r),r.origin=Oe.call(r),r.protocol=Pe.call(r),r.username=Me.call(r),r.password=Ae.call(r),r.host=Be.call(r),r.hostname=Te.call(r),r.port=Ie.call(r),r.pathname=Le.call(r),r.search=Ke.call(r),r.searchParams=Re.call(r),r.hash=Fe.call(r))},Ce=Se.prototype,De=function(){var e=k(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,s=e.path,a=e.query,c=e.fragment,l=t+":";return null!==o?(l+="//",Q(e)&&(l+=n+(r?":"+r:"")+"@"),l+=W(o),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==a&&(l+="?"+a),null!==c&&(l+="#"+c),l},Oe=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new Se(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&J(e)?t+"://"+W(e.host)+(null!==n?":"+n:""):"null"},Pe=function(){return k(this).scheme+":"},Me=function(){return k(this).username},Ae=function(){return k(this).password},Be=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?W(t):W(t)+":"+n},Te=function(){var e=k(this).host;return null===e?"":W(e)},Ie=function(){var e=k(this).port;return null===e?"":String(e)},Le=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ke=function(){var e=k(this).query;return e?"?"+e:""},Re=function(){return k(this).searchParams},Fe=function(){var e=k(this).fragment;return e?"#"+e:""},Ne=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(Ce,{href:Ne(De,(function(e){var t=k(this),n=y(e),r=Ee(t,n);if(r)throw TypeError(r);x(t.searchParams).updateSearchParams(t.query)})),origin:Ne(Oe),protocol:Ne(Pe,(function(e){var t=k(this);Ee(t,y(e)+":",oe)})),username:Ne(Me,(function(e){var t=k(this),n=p(y(e));if(!Z(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=X(n[r],Y)}})),password:Ne(Ae,(function(e){var t=k(this),n=p(y(e));if(!Z(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=X(n[r],Y)}})),host:Ne(Be,(function(e){var t=k(this);t.cannotBeABaseURL||Ee(t,y(e),he)})),hostname:Ne(Te,(function(e){var t=k(this);t.cannotBeABaseURL||Ee(t,y(e),me)})),port:Ne(Ie,(function(e){var t=k(this);Z(t)||(""==(e=y(e))?t.port=null:Ee(t,e,ye))})),pathname:Ne(Le,(function(e){var t=k(this);t.cannotBeABaseURL||(t.path=[],Ee(t,y(e),be))})),search:Ne(Ke,(function(e){var t=k(this);""==(e=y(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ee(t,e,je)),x(t.searchParams).updateSearchParams(t.query)})),searchParams:Ne(Re),hash:Ne(Fe,(function(e){var t=k(this);""!=(e=y(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ee(t,e,ke)):t.fragment=null}))}),l(Ce,"toJSON",(function(){return De.call(this)}),{enumerable:!0}),l(Ce,"toString",(function(){return De.call(this)}),{enumerable:!0}),b){var Ue=b.createObjectURL,ze=b.revokeObjectURL;Ue&&l(Se,"createObjectURL",(function(e){return Ue.apply(b,arguments)})),ze&&l(Se,"revokeObjectURL",(function(e){return ze.apply(b,arguments)}))}v(Se,"URL"),o({global:!0,forced:!s,sham:!i},{URL:Se})},{"../internals/an-instance":5,"../internals/array-from":7,"../internals/descriptors":19,"../internals/export":26,"../internals/global":34,"../internals/has-own-property":35,"../internals/internal-state":41,"../internals/native-url":54,"../internals/object-assign":56,"../internals/object-define-properties":58,"../internals/redefine":71,"../internals/set-to-string-tag":74,"../internals/string-multibyte":78,"../internals/string-punycode-to-ascii":79,"../internals/to-string":88,"../modules/es.string.iterator":94,"../modules/web.url-search-params":96}],98:[function(e,t,n){var r,o,i;r=function(e,t,n,o){var i;t[0]=0;for(var s=1;s<t.length;s++){var a=t[s++],c=t[s]?(t[0]|=a?1:2,n[t[s++]]):t[++s];3===a?o[0]=c:4===a?o[1]=Object.assign(o[1]||{},c):5===a?(o[1]=o[1]||{})[t[++s]]=c:6===a?o[1][t[++s]]+=c+"":a?(i=e.apply(c,r(e,c,n,["",null])),o.push(i),c[0]?t[0]|=2:(t[s-2]=0,t[s]=i)):o.push(c)}return o},o=new Map,i=function(e){var t=o.get(this);return t||(t=new Map,o.set(this,t)),(t=r(this,t.get(e)||(t.set(e,t=function(e){for(var t,n,r=1,o="",i="",s=[0],a=function(e){1===r&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?s.push(0,e,o):3===r&&(e||o)?(s.push(3,e,o),r=2):2===r&&"..."===o&&e?s.push(4,e,0):2===r&&o&&!e?s.push(5,0,!0,o):r>=5&&((o||!e&&5===r)&&(s.push(r,0,o,n),r=6),e&&(s.push(r,e,0,n),r=6)),o=""},c=0;c<e.length;c++){c&&(1===r&&a(),a(c));for(var l=0;l<e[c].length;l++)t=e[c][l],1===r?"<"===t?(a(),s=[s],r=3):o+=t:4===r?"--"===o&&">"===t?(r=1,o=""):o=t+o[0]:i?t===i?i="":o+=t:'"'===t||"'"===t?i=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=o,o=""):"/"===t&&(r<5||">"===e[c][l+1])?(a(),3===r&&(s=s[0]),r=s,(s=s[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):o+=t),3===r&&"!--"===o&&(r=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]},void 0!==t?t.exports=i:self.htm=i},{}],99:[function(e,t,n){var r=e("preact");e("preact/devtools");var o={};function i(e){return e.type===r.Fragment?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var s=[],a=[];function c(){return s.length>0?s[s.length-1]:null}var l=!1;function u(e){return"function"==typeof e.type&&e.type!=r.Fragment}function f(e){for(var t=[e],n=e;null!=n.__o;)t.push(n.__o),n=n.__o;return t.reduce((function(e,t){e+=" in "+i(t);var n=t.__source;return n?e+=" (at "+n.fileName+":"+n.lineNumber+")":l||(l=!0,console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons.")),e+"\n"}),"")}var d="function"==typeof WeakMap,p=r.Component.prototype.setState;r.Component.prototype.setState=function(e,t){return null==this.__v?null==this.state&&console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n'+f(c())):null==this.__P&&console.warn('Can\'t call "this.setState" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+f(this.__v)),p.call(this,e,t)};var h=r.Component.prototype.forceUpdate;function m(e){var t=e.props,n=i(e),r="";for(var o in t)if(t.hasOwnProperty(o)&&"children"!==o){var s=t[o];"function"==typeof s&&(s="function "+(s.displayName||s.name)+"() {}"),s=Object(s)!==s||s.toString?s+"":Object.prototype.toString.call(s),r+=" "+o+"="+JSON.stringify(s)}var a=t.children;return"<"+n+r+(a&&a.length?">..</"+n+">":" />")}r.Component.prototype.forceUpdate=function(e){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+f(c())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+f(this.__v)),h.call(this,e)},function(){!function(){var e=r.options.__b,t=r.options.diffed,n=r.options.__,o=r.options.vnode,i=r.options.__r;r.options.diffed=function(e){u(e)&&a.pop(),s.pop(),t&&t(e)},r.options.__b=function(t){u(t)&&s.push(t),e&&e(t)},r.options.__=function(e,t){a=[],n&&n(e,t)},r.options.vnode=function(e){e.__o=a.length>0?a[a.length-1]:null,o&&o(e)},r.options.__r=function(e){u(e)&&a.push(e),i&&i(e)}}();var e=!1,t=r.options.__b,n=r.options.diffed,c=r.options.vnode,l=r.options.__e,p=r.options.__,h=r.options.__h,y=d?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,v=[];r.options.__e=function(e,t,n){if(t&&t.__c&&"function"==typeof e.then){var r=e;e=new Error("Missing Suspense. The throwing component was: "+i(t));for(var o=t;o;o=o.__)if(o.__c&&o.__c.__c){e=r;break}if(e instanceof Error)throw e}try{l(e,t,n),"function"!=typeof e.then&&setTimeout((function(){throw e}))}catch(e){throw e}},r.options.__=function(e,t){if(!t)throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");var n;switch(t.nodeType){case 1:case 11:case 9:n=!0;break;default:n=!1}if(!n){var r=i(e);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+t+" instead: render(<"+r+" />, "+t+");")}p&&p(e,t)},r.options.__b=function(n){var r=n.type,s=function e(t){return t?"function"==typeof t.type?e(t.__):t:{}}(n.__);if(e=!0,void 0===r)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+m(n)+"\n\n"+f(n));if(null!=r&&"object"==typeof r){if(void 0!==r.__k&&void 0!==r.__e)throw new Error("Invalid type passed to createElement(): "+r+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+i(n)+" = "+m(r)+";\n let vnode = <My"+i(n)+" />;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+f(n));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if("thead"!==r&&"tfoot"!==r&&"tbody"!==r||"table"===s.type?"tr"===r&&"thead"!==s.type&&"tfoot"!==s.type&&"tbody"!==s.type&&"table"!==s.type?console.error("Improper nesting of table. Your <tr> should have a <thead/tbody/tfoot/table> parent."+m(n)+"\n\n"+f(n)):"td"===r&&"tr"!==s.type?console.error("Improper nesting of table. Your <td> should have a <tr> parent."+m(n)+"\n\n"+f(n)):"th"===r&&"tr"!==s.type&&console.error("Improper nesting of table. Your <th> should have a <tr>."+m(n)+"\n\n"+f(n)):console.error("Improper nesting of table. Your <thead/tbody/tfoot> should have a <table> parent."+m(n)+"\n\n"+f(n)),void 0!==n.ref&&"function"!=typeof n.ref&&"object"!=typeof n.ref&&!("$$typeof"in n))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof n.ref+"] instead\n"+m(n)+"\n\n"+f(n));if("string"==typeof n.type)for(var a in n.props)if("o"===a[0]&&"n"===a[1]&&"function"!=typeof n.props[a]&&null!=n.props[a])throw new Error("Component's \""+a+'" property should be a function, but got ['+typeof n.props[a]+"] instead\n"+m(n)+"\n\n"+f(n));if("function"==typeof n.type&&n.type.propTypes){if("Lazy"===n.type.displayName&&y&&!y.lazyPropTypes.has(n.type)){var c="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var l=n.type();y.lazyPropTypes.set(n.type,!0),console.warn(c+"Component wrapped in lazy() is "+i(l))}catch(n){console.warn(c+"We will log the wrapped component's name once it is loaded.")}}var u=n.props;n.type.__f&&delete(u=function(e,t){for(var n in t)e[n]=t[n];return e}({},u)).ref,function(e,t,n,r,i){Object.keys(e).forEach((function(n){var s;try{s=e[n](t,n,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s.message in o||(o[s.message]=!0,console.error("Failed prop type: "+s.message+(i&&"\n"+i()||"")))}))}(n.type.propTypes,u,0,i(n),(function(){return f(n)}))}t&&t(n)},r.options.__h=function(t,n,r){if(!t||!e)throw new Error("Hook can only be invoked from render methods.");h&&h(t,n,r)};var _=function(e,t){return{get:function(){var n="get"+e+t;v&&v.indexOf(n)<0&&(v.push(n),console.warn("getting vnode."+e+" is deprecated, "+t))},set:function(){var n="set"+e+t;v&&v.indexOf(n)<0&&(v.push(n),console.warn("setting vnode."+e+" is not allowed, "+t))}}},g={nodeName:_("nodeName","use vnode.type"),attributes:_("attributes","use vnode.props"),children:_("children","use vnode.props.children")},b=Object.create({},g);r.options.vnode=function(e){var t=e.props;if(null!==e.type&&null!=t&&("__source"in t||"__self"in t)){var n=e.props={};for(var r in t){var o=t[r];"__source"===r?e.__source=o:"__self"===r?e.__self=o:n[r]=o}}e.__proto__=b,c&&c(e)},r.options.diffed=function(t){if(t.__k&&t.__k.forEach((function(e){if(e&&void 0===e.type){delete e.__,delete e.__b;var n=Object.keys(e).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+n+"}.\n\n"+f(t))}})),e=!1,n&&n(t),null!=t.__k)for(var r=[],o=0;o<t.__k.length;o++){var i=t.__k[o];if(i&&null!=i.key){var s=i.key;if(-1!==r.indexOf(s)){console.error('Following component has two or more children with the same key attribute: "'+s+'". This may cause glitches and misbehavior in rendering process. Component: \n\n'+m(t)+"\n\n"+f(t));break}r.push(s)}}}}(),n.resetPropWarnings=function(){o={}}},{preact:101,"preact/devtools":100}],100:[function(e,t,n){var r=e("preact");"undefined"!=typeof window&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.5.15",r.options,{Fragment:r.Fragment,Component:r.Component}),n.addHookName=function(e,t){return r.options.__a&&r.options.__a(t),e}},{preact:101}],101:[function(e,t,n){var r,o,i,s,a,c,l,u,f={},d=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var o,i,s,a={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return v(e,a,o,i,null)}function v(e,t,n,r,s){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++i:s};return null==s&&null!=o.vnode&&o.vnode(a),a}function _(e){return e.children}function g(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!j.__r++||l!==o.debounceRendering)&&((l=o.debounceRendering)||c)(j)}function j(){for(var e;j.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=h({},o)).__v=o.__v+1,M(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),A(n,o),o.__e!=i&&w(o)))}))}function k(e,t,n,r,o,i,s,a,c,l){var u,p,h,m,y,g,w,x=r&&r.__k||d,j=x.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(m=n.__k[u]=null==(m=t[u])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?v(null,m,null,null,m):Array.isArray(m)?v(_,{children:m},null,null,null):m.__b>0?v(m.type,m.props,m.key,null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(h=x[u])||h&&m.key==h.key&&m.type===h.type)x[u]=void 0;else for(p=0;p<j;p++){if((h=x[p])&&m.key==h.key&&m.type===h.type){x[p]=void 0;break}h=null}M(e,m,h=h||f,o,i,s,a,c,l),y=m.__e,(p=m.ref)&&h.ref!=p&&(w||(w=[]),h.ref&&w.push(h.ref,null,m),w.push(p,m.__c||y,m)),null!=y?(null==g&&(g=y),"function"==typeof m.type&&m.__k===h.__k?m.__d=c=E(m,c,e):c=S(e,m,h,x,y,c),"function"==typeof n.type&&(n.__d=c)):c&&h.__e==c&&c.parentNode!=e&&(c=b(h))}for(n.__e=g,u=j;u--;)null!=x[u]&&("function"==typeof n.type&&null!=x[u].__e&&x[u].__e==n.__d&&(n.__d=b(r,u+1)),I(x[u],x[u]));if(w)for(u=0;u<w.length;u++)T(w[u],w[++u],w[++u])}function E(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?E(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(e,t,n,r,o,i){var s,a,c;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,c=0;(a=a.nextSibling)&&c<r.length;c+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function C(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function D(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||C(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||C(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?P:O,i):e.removeEventListener(t,i?P:O,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](o.event?o.event(e):e)}function P(e){this.l[e.type+!0](o.event?o.event(e):e)}function M(e,t,n,r,i,s,a,c,l){var u,f,d,p,m,y,v,b,w,x,j,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,c=t.__e=n.__e,t.__h=null,s=[c]),(u=o.__b)&&u(t);try{e:if("function"==typeof E){if(b=t.props,w=(u=E.contextType)&&r[u.__c],x=u?w?w.props.value:u.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:("prototype"in E&&E.prototype.render?t.__c=f=new E(b,x):(t.__c=f=new g(b,x),f.constructor=E,f.render=L),w&&w.sub(f),f.props=b,f.state||(f.state={}),f.context=x,f.__n=r,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,E.getDerivedStateFromProps(b,f.__s))),p=f.props,m=f.state,d)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,x)||t.__v===n.__v){f.props=b,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,m,y)}))}f.context=x,f.props=b,f.state=f.__s,(u=o.__r)&&u(t),f.__d=!1,f.__v=t,f.__P=e,u=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(r=h(h({},r),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(p,m)),j=null!=u&&u.type===_&&null==u.key?u.props.children:u,k(e,Array.isArray(j)?j:[j],t,n,r,i,s,a,c,l),f.base=t.__e,t.__h=null,f.__h.length&&a.push(f),v&&(f.__E=f.__=null),f.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=B(n.__e,t,n,r,i,s,a,l);(u=o.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=s)&&(t.__e=c,t.__h=!!l,s[s.indexOf(c)]=null),o.__e(e,t,n)}}function A(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function B(e,t,n,o,i,s,a,c){var l,u,d,p=n.props,h=t.props,y=t.type,v=0;if("svg"===y&&(i=!0),null!=s)for(;v<s.length;v++)if((l=s[v])&&(l===e||(y?l.localName==y:3==l.nodeType))){e=l,s[v]=null;break}if(null==e){if(null===y)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,h.is&&h),s=null,c=!1}if(null===y)p===h||c&&e.data===h||(e.data=h);else{if(s=s&&r.call(e.childNodes),u=(p=n.props||f).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!c){if(null!=s)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||D(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||D(e,i,t[i],n[i],r)}(e,h,p,i,c),d)t.__k=[];else if(v=t.props.children,k(e,Array.isArray(v)?v:[v],t,n,o,i&&"foreignObject"!==y,s,a,s?s[0]:n.__k&&b(n,0),c),null!=s)for(v=s.length;v--;)null!=s[v]&&m(s[v]);c||("value"in h&&void 0!==(v=h.value)&&(v!==e.value||"progress"===y&&!v)&&D(e,"value",v,p.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==e.checked&&D(e,"checked",v,p.checked,!1))}return e}function T(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function I(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||T(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&I(r[i],t,"function"!=typeof e.type);n||null==e.__e||m(e.__e),e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function K(e,t,n){var i,s,a;o.__&&o.__(e,t),s=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],M(t,e=(!i&&n||t).__k=y(_,null,[e]),s||f,f,void 0!==t.ownerSVGElement,!i&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,a,!i&&n?n:s?s.__e:t.firstChild,i),A(a,e)}r=d.slice,o={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},i=0,s=function(e){return null!=e&&void 0===e.constructor},g.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},g.prototype.render=_,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,j.__r=0,u=0,n.render=K,n.hydrate=function e(t,n){K(t,n,e)},n.createElement=y,n.h=y,n.Fragment=_,n.createRef=function(){return{current:null}},n.isValidElement=s,n.Component=g,n.cloneElement=function(e,t,n){var o,i,s,a=h({},e.props);for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),v(e.type,a,o||e.key,i||e.ref,null)},n.createContext=function(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},n.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n},n.options=o},{}],102:[function(e,t,n){var r,o,i,s=e("preact"),a=0,c=[],l=s.options.__b,u=s.options.__r,f=s.options.diffed,d=s.options.__c,p=s.options.unmount;function h(e,t){s.options.__h&&s.options.__h(o,e,a||t),a=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function m(e){return a=1,y(k,e)}function y(e,t,n){var i=h(r++,2);return i.t=e,i.__c||(i.__=[n?n(t):k(void 0,t),function(e){var t=i.t(i.__[0],e);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}))}],i.__c=o),i.__}function v(e,t){var n=h(r++,4);!s.options.__s&&j(n.__H,t)&&(n.__=e,n.__H=t,o.__h.push(n))}function _(e,t){var n=h(r++,7);return j(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function g(){c.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(w),e.__H.__h.forEach(x),e.__H.__h=[]}catch(t){e.__H.__h=[],s.options.__e(t,e.__v)}})),c=[]}s.options.__b=function(e){o=null,l&&l(e)},s.options.__r=function(e){u&&u(e),r=0;var t=(o=e.__c).__H;t&&(t.__h.forEach(w),t.__h.forEach(x),t.__h=[])},s.options.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==c.push(t)&&i===s.options.requestAnimationFrame||((i=s.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);b&&(t=requestAnimationFrame(n))})(g)),o=null},s.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(w),e.__h=e.__h.filter((function(e){return!e.__||x(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.options.__e(n,e.__v)}})),d&&d(e,t)},s.options.unmount=function(e){p&&p(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(w)}catch(e){s.options.__e(e,t.__v)}};var b="function"==typeof requestAnimationFrame;function w(e){var t=o;"function"==typeof e.__c&&e.__c(),o=t}function x(e){var t=o;e.__c=e.__(),o=t}function j(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function k(e,t){return"function"==typeof t?t(e):t}n.useState=m,n.useReducer=y,n.useEffect=function(e,t){var n=h(r++,3);!s.options.__s&&j(n.__H,t)&&(n.__=e,n.__H=t,o.__H.__h.push(n))},n.useLayoutEffect=v,n.useRef=function(e){return a=5,_((function(){return{current:e}}),[])},n.useImperativeHandle=function(e,t,n){a=6,v((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},n.useMemo=_,n.useCallback=function(e,t){return a=8,_((function(){return e}),t)},n.useContext=function(e){var t=o.context[e.__c],n=h(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__},n.useDebugValue=function(e,t){s.options.useDebugValue&&s.options.useDebugValue(t?t(e):e)},n.useErrorBoundary=function(e){var t=h(r++,10),n=m();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}},{preact:101}],103:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPersonalBundleUrl=n.getPersonalBundleKey=n.uploadsS3Bucket=void 0,n.uploadsS3Bucket="doszone-uploads";function r(e,t,n){const r=n.lastIndexOf("/"),o=n.substr(r+1);return"doszone"===e?"personal/"+t+"/"+o:"personal-v2/"+e+"/"+t+"/"+o}n.getPersonalBundleKey=r,n.getPersonalBundleUrl=function(e,t,n){return"https://doszone-uploads.s3.dualstack.eu-central-1.amazonaws.com/"+r(e,t,n)}},{}],104:[function(e,t,n){"use strict";var r,o;function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(n,"__esModule",{value:!0}),n.ActionBar=void 0;const s=e("../dom"),a=e("../icons"),c=e("./controls");function l(e){if(!0===e.options().noSideBar)return null;let t="text-gray-600";return void 0!==e.requestClientId&&null===e.clientId?t="text-red-800 animate-pulse":e.sideBar&&(t="text-green-400"),(0,s.html)(o||(o=i(['\n <div class="h-6 w-6 my-4 ',' cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n '])),t,(function(){e.sideBar?e.closeSideBar():e.openSideBar()}),a.Icons.DotsHorizontal)}n.ActionBar=function(e){return e.actionBar?(0,s.html)(r||(r=i(['\n <div class="bg-gray-200 shadow w-10 h-full overflow-hidden flex flex-col items-center">\n <'," ..."," />\n <",' column="true" class="flex-grow \n ','" \n portal='," ..."," />\n </div>\n "])),l,e,c.Controls,!0===e.options().noSideBar?"":" border-t-2 border-gray-400",!0,e):null}},{"../dom":110,"../icons":112,"./controls":108}],105:[function(e,t,n){"use strict";var r;e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.ActionExit=void 0;const o=e("preact/hooks"),i=e("../dom"),s=e("../icons");n.ActionExit=function(e){const t=e.options().onExit,[n,a]=(0,o.useState)(!1),[c,l]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{if(!c&&"function"==typeof t)return window.addEventListener("beforeunload",n),()=>{window.removeEventListener("beforeunload",n)};function n(t){if(void 0===e.player().ciPromise)return;const n="Please use close button to save progress!";setTimeout((()=>{e.player().layers.notyf.error(n),a(!0)}),16),t.preventDefault(),t.returnValue=n}}),[a,e.player,c,t]),c||"function"!=typeof t?null:(0,i.html)(r||(u=['\n <div class="filter transition-opacity duration-1000 absolute z-50 \n bg-gray-200 opacity-80 '," w-6 h-6 top-0\n ",' rounded-br-md cursor-pointer" onClick=','>\n <div class="h-4 w-4 mt-1 ml-1">\n <',' class="h-4 w-4" />\n </div>\n </div>\n '],f||(f=u.slice(0)),r=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(f)}}))),n?" text-red-500 animate-pulse":"",e.actionBar?"left-10":"left-0",(async function(){a(!1),l(!0);const t=e.player();t.layers.notyf.success("Saving, please wait...");try{await t.layers.save()}catch(e){return void l(!1)}try{await t.stop()}catch(e){console.error(e)}const n=e.options().onExit;void 0!==n&&n(),l(!1)}),s.Icons.XCircle);var u,f}},{"../dom":110,"../icons":112,"core-js/modules/web.dom-collections.iterator.js":95,"preact/hooks":102}],106:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.ActionHide=void 0;const o=e("../dom"),i=e("../icons");n.ActionHide=function(e){return(0,o.html)(r||(t=['\n <div class="filter transition-opacity duration-1000 absolute z-50 \n bg-gray-200 ',"\n w-5 h-12 top-1/2 -mt-6 ",'\n rounded-r-md cursor-pointer" onClick=','>\n <div class="h-4 w-4 my-4">\n <',' class="h-4 w-4" />\n </div>\n </div>\n '],n||(n=t.slice(0)),r=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))),e.actionBar?"":"opacity-80",e.actionBar?"left-10":"left-0",(()=>e.setActionBar(!e.actionBar)),e.actionBar?i.Icons.ChevronLeft:i.Icons.ChevronRight);var t,n}},{"../dom":110,"../icons":112}],107:[function(e,t,n){"use strict";var r,o;function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.Client=void 0;const s=e("preact/hooks"),a=e("../dom"),c=e("../icons"),l=e("../dom");n.Client=function(e){const[t,n]=(0,s.useState)(!1);if(void 0===e.requestClientId&&null===e.clientId)return null;if(null===e.clientId){const o=()=>{void 0!==e.requestClientId&&(n(!0),e.requestClientId(!0).then((t=>{n(!1),e.setClientId(t)})).catch((e=>{n(!1),console.error(e)})))};return(0,a.html)(r||(r=i(['\n <div class="flex flex-row justify-center items-center ','">\n <div class="h-6 w-6 text-red-800 animate-pulse mr-2">\n <',' class="h-6 w-6" />\n </div>\n <div class="border-2 rounded px-4\n ',' \n cursor-pointer" onClick=',">\n Login\n </div>\n </div>\n "])),e.class,c.Icons.UserCircle,t?" text-gray-400 border-gray-400":"text-blue-400 border-blue-400",o)}const u=e.clientId.id;return(0,a.html)(o||(o=i(['\n <div class="flex flex-row justify-center ','">\n <div class="h-6 w-6 text-green-400 mr-2">\n <',' class="h-6 w-6" />\n </div>\n <div class="flex-shrink overflow-hidden overflow-ellipsis">','</div>\n <div class="h-6 w-6 ml-2 cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n </div>\n '])),e.class,c.Icons.UserCircle,u,(async function(){e.closeSideBar();const t=e.player();try{await async function(e){if(!e.ciPromise)return;const t=await e.ciPromise,n=await t.persist();(0,l.downloadFile)(n,"saves.zip","application/zip")}(t)}catch(e){t.layers.notyf.error("Unexpected error"),console.error(e)}}),c.Icons.Download)}},{"../dom":110,"../icons":112,"core-js/modules/web.dom-collections.iterator.js":95,"preact/hooks":102}],108:[function(e,t,n){"use strict";var r,o;function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.Controls=void 0;const s=e("preact/hooks"),a=e("../dom"),c=e("../icons"),l=1.5;function u(e){const[t,n]=(0,s.useState)(!1),[r,u]=(0,s.useState)(e.player().scaleControls);let f=Math.round(10*r)/10+"";return 1===f.length&&(f+=".0"),(0,a.html)(o||(o=i(['\n <div class="h-6 w-6 text-green-400 cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n <div class="',' absolute z-50 bg-gray-200 -mt-7 h-8 left-10 flex flex-row items-center\n rounded-r-md cursor-pointer" onClick=','>\n <div class="h-6 w-6 mx-2 \n ','"\n onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 w-6 mx-2 \n ','"\n onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 w-6 mx-2 ','"\n onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 px-2 border-l-2 border-gray-400 \n ','"\n onClick=',">\n ","\n </div>\n </div>\n </div>\n "])),(function(){e.portal?n(!t):e.setMobileControls(!e.mobileControls)}),e.mirroredControls?c.Icons.SwithcHorizontal:e.mobileControls?c.Icons.Mobile:c.Icons.EyeOff,t?"":"hidden",(()=>{}),e.mobileControls||e.mirroredControls?"text-black":"text-green-400",(async function(t){await e.setMirroredControls(!1),await e.setMobileControls(!1),n(!1),t.stopPropagation()}),c.Icons.EyeOff,!e.mirroredControls&&e.mobileControls?"text-green-400":"text-black",(async function(t){await e.setMobileControls(!0),await e.setMirroredControls(!1),n(!1),t.stopPropagation()}),c.Icons.Mobile,e.mirroredControls?"text-green-400":"text-black",(async function(t){await e.setMirroredControls(!0),n(!1),t.stopPropagation()}),c.Icons.SwithcHorizontal,"1.0"===f?"text-black":"text-green-400",(async function(t){let n=r+.1;r===l?n=1:n>l&&(n=l),await e.player().setScaleControls(n),u(n),t.stopPropagation()}),f)}n.Controls=function(e){return(0,a.html)(r||(r=i(['\n <div class="flex '," justify-evenly ",'">\n <'," ...",' />\n <div class="h-6 w-6 ',' cursor-pointer"\n onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 w-6 ',' cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 w-6 ',' cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n <div class="h-6 w-6 '," \n ",' cursor-pointer" onClick=',">\n <",' class="h-6 w-6" />\n </div>\n </div>\n '])),e.column?" flex-col":"flex-row",e.class,u,e,e.pause?" text-red-400 animate-pulse":"font-bold",(function(){e.setPause(!e.pause),e.closeSideBar()}),e.pause?c.Icons.Play:c.Icons.Pause,e.mute?" text-green-400":"",(function(){e.setMute(!e.mute),e.closeSideBar()}),e.mute?c.Icons.VolumeOff:c.Icons.VolumeUp,e.keyboard?" text-green-400":"",(function(){e.toggleKeyboard(),e.closeSideBar()}),c.Icons.PencilAlt,e.fullscreen?" text-green-400":"",!0===e.options().noFullscreen?"hidden":"",(function(){e.toggleFullscreen(),e.closeSideBar()}),c.Icons.ArrowsExpand)}},{"../dom":110,"../icons":112,"core-js/modules/web.dom-collections.iterator.js":95,"preact/hooks":102}],109:[function(e,t,n){"use strict";var r;Object.defineProperty(n,"__esModule",{value:!0}),n.SideBar=void 0;const o=e("../dom"),i=e("./client"),s=e("./controls"),a=e("../icons");n.SideBar=function(e){return e.sideBar?(0,o.html)(r||(t=['\n <div class="flex flex-col filter absolute z-50 top-0 bottom-0 right-0 px-8 pt-6 pb-4\n w-full sm:w-80 rounded-l-lg drop-shadow-lg bg-white">\n <div class="transform absolute text-gray-400 hover:text-gray-800\n h-8 w-8 top-1 left-1 cursor-pointer hover:scale-125" onClick=',">\n <",' class="h-8 w-8" />\n </div>\n <',' class="mt-2 mb-2 pb-2 border-b-2 border-green-200" ...'," />\n <",' class="mt-2" portal='," ..."," />\n </div>\n "],n||(n=t.slice(0)),r=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))),(()=>{e.closeSideBar()}),a.Icons.XCircle,i.Client,e,s.Controls,!1,e):null;var t,n}},{"../dom":110,"../icons":112,"./client":107,"./controls":108}],110:[function(e,t,n){"use strict";e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.url.js"),e("core-js/modules/web.url-search-params.js");var r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.downloadFile=n.click=n.createDiv=n.activeClass=n.primaryClass=n.disabledClass=n.goneClass=n.html=void 0;const o=e("preact"),i=r(e("htm"));n.html=i.default.bind(o.h),n.goneClass="jsdos-player-gone",n.disabledClass="jsdos-player-button-disabled",n.primaryClass="jsdos-player-button-primary",n.activeClass="jsdos-player-button-active",n.createDiv=function(e,t){const n=document.createElement("div");if("string"==typeof e)n.className=e;else for(const t of e)n.classList.add(t);return void 0!==t&&(n.innerHTML=t),n},n.click=function(e,t){for(const n of emulatorsUi.dom.pointers.bind.enders)e.addEventListener(n,(()=>{e.classList.contains("jsdos-player-button-disabled")||t(e)}))};let s=null;n.downloadFile=function(e,t,n){const r=new Blob([e],{type:n});null!==s&&window.URL.revokeObjectURL(s),s=window.URL.createObjectURL(r);const o=document.createElement("a");o.href=s,o.download=t,o.style.display="none",document.body.appendChild(o),o.click(),o.remove()}},{"core-js/modules/web.dom-collections.iterator.js":95,"core-js/modules/web.url-search-params.js":96,"core-js/modules/web.url.js":97,htm:98,preact:101}],111:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(n,"__esModule",{value:!0}),n.hardwareTransportLayerFactory=n.HardwareTransportLayerFactory=void 0;const a=s(e("base64-js")),c=new TextDecoder;class l{constructor(e){r(this,"sessionId",Date.now()+""),r(this,"hardware",void 0),r(this,"alive",!0),r(this,"frameWidth",0),r(this,"frameHeight",0),r(this,"handler",(()=>{})),this.hardware=e}callMain(){this.hardware.sendMessage("wc-install\n"+this.sessionId+"\n"),requestAnimationFrame(this.update.bind(this))}async sendMessageToServer(e,t){if(void 0!==t&&(null==t?void 0:t.sessionId)===this.sessionId)switch(e){case"wc-run":{let e=this.hardware.writeFile("bundle_0.zip",d(t.bundles[0]));if(e.length>0)throw console.error(e),new Error(e);if(void 0!==t.bundles[1]&&(e=this.hardware.writeFile("bundle_1.zip",d(t.bundles[1])),e.length>0))throw console.error(e),new Error(e);const n="wc-run\n";this.hardware.sendMessage(n)}break;case"wc-add-key":this.hardware.addKey(t.key,t.pressed?1:0,t.timeMs);break;case"wc-pause":this.hardware.sendMessage("wc-pause\n"+this.sessionId+"\n");break;case"wc-resume":this.hardware.sendMessage("wc-resume\n"+this.sessionId+"\n");break;case"wc-mute":this.hardware.sendMessage("wc-mute\n"+this.sessionId+"\n");break;case"wc-unmute":this.hardware.sendMessage("wc-unmute\n"+this.sessionId+"\n");break;case"wc-exit":this.alive=!1,this.hardware.sendMessage("wc-exit\n"+this.sessionId+"\n");break;case"wc-mouse-move":this.hardware.mouseMove(t.x,t.y,t.timeMs);break;case"wc-mouse-button":this.hardware.mouseButton(t.button,t.pressed?1:0,t.timeMs);break;case"wc-pack-fs-to-bundle":this.hardware.sendMessage("wc-pack-fs-to-bundle\n"+this.sessionId+"\n");break;default:console.log("Unhandled client message (wc):",e,t)}}initMessageHandler(e){this.handler=e}exit(){this.alive=!1}async onServerMessage(e,t){const n=t||{};switch(e){case"ws-server-ready":{const e=this.hardware.readConfig();this.handler("ws-config",{sessionId:this.sessionId,content:e})}break;case"ws-sound-init":this.handler(e,n),this.handler("ws-server-ready",{sessionId:this.sessionId});break;case"ws-frame-set-size":this.frameWidth=n.width,this.frameHeight=n.height,this.handler(e,n);break;case"ws-sound-push":case"ws-update-lines":console.error(e,"should not be called");break;case"ws-persist":n.bundle=f(n.bundle),this.handler(e,n);break;case"ws-log":case"ws-warn":case"ws-err":case"ws-stdout":void 0!==n.message&&null!==n.message&&n.message.length>0&&(n.message=c.decode(f(n.message))),this.handler(e,n);break;default:this.handler(e,n)}}update(){this.alive&&requestAnimationFrame(this.update.bind(this)),this.updateFrame()}updateFrame(){if(0===this.frameWidth||0===this.frameHeight)return;const e=this.hardware.getFramePayload();if(0===e.length)return;const t=f(e);if(0===t.length)return;const n=[],r=3*this.frameWidth;let o=this.frameHeight,i=-1;for(let e=0;e<this.frameHeight;++e){const s=e===this.frameHeight-1;if(1===t[e]&&-1===i)i=e;else if((s||0===t[e])&&-1!==i){const s=((1===t[e]?e:e-1)-i+1)*r,a=t.slice(o,o+s);n.push({start:i,heapu8:a}),o+=s,i=-1}}this.handler("ws-update-lines",{sessionId:this.sessionId,lines:n})}}class u{constructor(){r(this,"serverMessageHandler",(()=>{})),window.serverMessage=e=>{const t=c.decode(f(e));try{const e=JSON.parse("{"+t.slice(0,-1)+"}");this.serverMessageHandler(e.name,e)}catch(e){throw console.error("Can't parse",t,e),e}},this.createTransportLayer=this.createTransportLayer.bind(this)}createTransportLayer(e){const t=new l(e);return this.serverMessageHandler=t.onServerMessage.bind(t),t.callMain(),t}}function f(e){return a.toByteArray(e)}function d(e){return a.fromByteArray(e)}n.HardwareTransportLayerFactory=u,n.hardwareTransportLayerFactory=new u},{"base64-js":1}],112:[function(e,t,n){"use strict";var r,o,i,s,a,c,l,u,f,d,p,h,m,y,v,_,g;function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(n,"__esModule",{value:!0}),n.Icons=void 0;const w=e("./dom");n.Icons={XCircle:e=>(0,w.html)(r||(r=b(['\n <svg fill="none" class=',' viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />\n </svg>\n'])),e.class),UserCircle:e=>(0,w.html)(o||(o=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z" />\n </svg>\n'])),e.class),Mobile:e=>(0,w.html)(i||(i=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M12 18h.01M8 21h8a2 2 0 002-2V5a2 2 0 00-2-2H8a2 2 0 00-2 2v14a2 2 0 002 2z" />\n </svg>\n'])),e.class),SwithcHorizontal:e=>(0,w.html)(s||(s=b(['\n <svg class="h-6 w-6" fill=',' viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" />\n </svg>\n'])),e.class),EyeOff:e=>(0,w.html)(a||(a=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21" />\n </svg>\n'])),e.class),Pause:e=>(0,w.html)(c||(c=b(["\n <svg className=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2}\n d="M10 9v6m4-6v6m7-3a9 9 0 11-18 0 9 9 0 0118 0z" />\n </svg>\n'])),e.class),Play:e=>(0,w.html)(l||(l=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" />\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />\n </svg>\n'])),e.class),VolumeUp:e=>(0,w.html)(u||(u=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" />\n </svg>\n'])),e.class),VolumeOff:e=>(0,w.html)(f||(f=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z"\n clip-rule="evenodd" />\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2" />\n </svg>\n'])),e.class),PencilAlt:e=>(0,w.html)(d||(d=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" />\n </svg>\n'])),e.class),ArrowsExpand:e=>(0,w.html)(_||(_=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4" />\n </svg>\n'])),e.class),ChevronLeft:e=>(0,w.html)(p||(p=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />\n </svg>\n'])),e.class),ChevronRight:e=>(0,w.html)(h||(h=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />\n </svg>\n'])),e.class),DotsHorizontal:e=>(0,w.html)(m||(m=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"\n d="M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" />\n </svg>\n'])),e.class),Download:e=>(0,w.html)(y||(y=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />\n </svg>\n'])),e.class),Upload:e=>(0,w.html)(v||(v=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" />\n </svg>\n'])),e.class),Plus:e=>(0,w.html)(g||(g=b(["\n <svg class=",' fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4" />\n </svg>\n'])),e.class)}},{"./dom":110}],113:[function(e,t,n){"use strict";e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.putPersonalBundle=n.getPersonalBundleUrl=void 0;const r=e("../sls/src/personal"),o=e("./xhr");n.getPersonalBundleUrl=function(e,t,n){return(0,r.getPersonalBundleUrl)(e,t,n)},n.putPersonalBundle=async function(e,t,n,r){const i=await async function(e){const t=new zip.ZipReader(new zip.Uint8ArrayReader(e),{useWebWorkers:!1}),n=await t.getEntries();let r=!0;for(const e of n)if(r=!0===e.directory,!r)break;return t.close(),r}(r);if(i)return void console.warn("Ignore empty changes archive");const s=await(0,o.postObject)("https://kdhkdsv558.execute-api.eu-central-1.amazonaws.com/dev/personal/put?namespace="+e+"&id="+t+"&bundleUrl="+encodeURIComponent(n));if(!s.success)throw new Error("Unable to put personal bundle");const a=JSON.parse(s.payload),c=a.signature,l=a.url;if(c["x-amz-content-sha256"]="UNSIGNED-PAYLOAD",await(0,o.send)("put",l,"text",r.buffer,void 0,c),!(await(0,o.postObject)("https://kdhkdsv558.execute-api.eu-central-1.amazonaws.com/dev/personal/acl?namespace="+e+"&id="+t+"&bundleUrl="+n)).success)throw new Error("Can't set ACL to personal bundle")}},{"../sls/src/personal":103,"./xhr":116,"core-js/modules/web.dom-collections.iterator.js":95}],114:[function(e,t,n){"use strict";var r,o;function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.createPlayerApp=n.PlayerApp=void 0,e("preact/debug");const s=e("preact"),a=e("preact/hooks"),c=e("./dom"),l=e("./components/action-hide"),u=e("./components/action-bar"),f=e("./components/action-exit"),d=e("./components/sidebar");function p(e){const t=e.options().clientId,n="function"==typeof t?e=>t(e):void 0,[o,s]=(0,a.useState)(null),[p,h]=(0,a.useState)(!1),[m,y]=(0,a.useState)(e.player().mobileControls),[v,_]=(0,a.useState)(e.player().mirroredControls),[g,b]=(0,a.useState)(e.player().layers.keyboardVisible),[w,x]=(0,a.useState)(!1),[j,k]=(0,a.useState)(!1),[E,S]=(0,a.useState)(e.player().layers.fullscreen),[C,D]=(0,a.useState)(!0);(0,a.useEffect)((()=>{void 0!==n&&n(!1).then(s).catch(console.error)}),[t,s]),(0,a.useEffect)((()=>{const e=()=>{const e=null!==document.fullscreenElement;S(e),e||D(!0)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}}),[E,S]);const O={player:e.player,options:e.options,clientId:o,setClientId:s,requestClientId:n,mobileControls:m,setMobileControls:async t=>{t?e.player().enableMobileControls():e.player().disableMobileControls(),y(t)},mirroredControls:v,setMirroredControls:async e=>{O.player().setMirroredControls(e),_(e)},keyboard:g,toggleKeyboard:()=>{b(!e.player().layers.keyboardVisible),e.player().layers.toggleKeyboard()},fullscreen:E,toggleFullscreen:()=>{e.player().layers.toggleFullscreen()},pause:w,setPause:t=>{var n;null===(n=e.player().ciPromise)||void 0===n||n.then((e=>{t?e.pause():e.resume(),x(t)})).catch(console.error)},mute:j,setMute:t=>{var n;null===(n=e.player().ciPromise)||void 0===n||n.then((e=>{t?e.mute():e.unmute(),k(t)})).catch(console.error)},actionBar:C,setActionBar:D,sideBar:p,openSideBar:()=>h(!0),closeSideBar:()=>h(!1)};return(0,c.html)(r||(r=i(['\n <div class="h-full">\n <'," ..."," />\n <"," ..."," />\n <"," ..."," />\n <"," ..."," />\n </div>\n "])),l.ActionHide,O,d.SideBar,O,u.ActionBar,O,f.ActionExit,O)}n.PlayerApp=p,n.createPlayerApp=function(e,t,n){(0,s.render)((0,c.html)(o||(o=i(["<"," player="," options="," />"])),p,(()=>t),(()=>n)),e)}},{"./components/action-bar":104,"./components/action-exit":105,"./components/action-hide":106,"./components/sidebar":109,"./dom":110,"core-js/modules/web.dom-collections.iterator.js":95,preact:101,"preact/debug":99,"preact/hooks":102}],115:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DosPlayer=void 0;const r=e("./dom"),o=e("./hardware-transport-layer"),i=e("./personal"),s=e("./player-app"),a=Dos;function c(e,t){if("none"===(t=t||{}).style)return console.warn("If you don't need the jsdos services, please use emulatros + emulators-ui instead"),a(e,t||{});e.classList.add("flex"),e.classList.add("flex-row"),e.classList.add("relative"),e.classList.add("overflow-hidden");const n=(0,r.createDiv)(["flex","flex-col","flex-grow","overflow-hidden"]),c=(0,r.createDiv)("flex-grow"),l=(0,r.createDiv)("flex-grow-0"),u=(0,r.createDiv)("flex-grow-0");n.appendChild(c),n.appendChild(u),e.appendChild(l),e.appendChild(n),t.layersOptions=t.layersOptions||{},t.layersOptions.keyboardDiv=u,t.layersOptions.fullscreenElement=e,t.layersOptions.optionControls=[];const f=t.hardware;null!=f&&(t.createTransportLayer=()=>o.hardwareTransportLayerFactory.createTransportLayer(f),t.emulatorFunction="backend");const d=a(c,t);(0,s.createPlayerApp)(l,d,t),d.bundleUrl=null;const p=d.run;d.run=async(e,n,r)=>{const o=()=>{var e;return void 0!==(null===(e=t)||void 0===e?void 0:e.clientId)?t.clientId(!1):null},s=await o();void 0===n&&void 0===r&&null!==s&&(n=(0,i.getPersonalBundleUrl)(s.namespace,s.id,e)+"?dt="+Date.now());const a=await p.call(d,e,n,r);d.bundleUrl=e;const c=d.layers.getOnSave();return d.layers.setOnSave((async()=>{const t=await o();if(null!==t){const n=await a.persist();return(0,i.putPersonalBundle)(t.namespace,t.id,e,n)}return c.call(d.layers)})),a};const h=d.stop;return d.stop=()=>(d.bundleUrl=null,h.call(d)),d}n.DosPlayer=c,window.Dos=c},{"./dom":110,"./hardware-transport-layer":111,"./personal":113,"./player-app":114}],116:[function(e,t,n){"use strict";function r(e,t,n,r,o,i){return new Promise(((s,a)=>{const c=new XMLHttpRequest;if(c.responseType=n,c.open(e,t,!0),c.addEventListener("load",(()=>{200!==c.status?a(new Error("Wrong status code "+c.status)):"text"===n?s(c.responseText):"arraybuffer"===n?s(c.response):a(new Error("Unsupported responseType "+n))}),!1),c.addEventListener("error",(()=>{a(new Error("HTTP GET failed for url "+t))}),!1),c.addEventListener("abort",(()=>{a(new Error("HTTP GET canceled for url "+t))}),!1),void 0!==o&&(c.onprogress=e=>{if(e.loaded&&e.total&&e.total>0){const t=Math.round(1e4*e.loaded/e.total)/100;o(t)}}),void 0!==i)for(const e of Object.keys(i))c.setRequestHeader(e,i[e]);c.send(r)}))}function o(e,t,n){return r("post",e,t,n)}e("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.post=n.postObject=n.send=void 0,n.send=r,n.postObject=async function(e,t){const n=JSON.parse(await o(e,"text",t));if(n.success)return n;throw new Error("POST Request failed:\n Payload:\n"+JSON.stringify(n.body,null,2))},n.post=o},{"core-js/modules/web.dom-collections.iterator.js":95}]},{},[115]);
2
2
  //# sourceMappingURL=js-dos.js.map