securityos/public/Program Files/js-dos/emulators-ui.js

16 lines
268 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!function t(e,n,o){function r(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};e[s][0].call(u.exports,(function(t){return r(e[s][1][t]||t)}),u,u.exports,t,e,n,o)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<o.length;s++)r(o[s]);return r}({1:[function(t,e,n){"use strict";var o=t("./utils");function r(){var t={},e=0,n=0,o=0;return{add:function(r,i){i||(i=r,r=0),r>n?n=r:r<o&&(o=r),t[r]||(t[r]=[]),t[r].push(i),e++},process:function(){for(var e=o;e<=n;e++)for(var r=t[e],i=0;i<r.length;i++){(0,r[i])()}},size:function(){return e}}}e.exports=function(t){var e=(t=t||{}).reporter,n=o.getOption(t,"async",!0),i=o.getOption(t,"auto",!0);i&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=r(),l=!1;function c(){for(l=!0;a.size();){var t=a;a=r(),t.process()}l=!1}function u(){var t;t=c,s=setTimeout(t,0)}return{add:function(t,e){!l&&i&&n&&0===a.size()&&u(),a.add(t,e)},force:function(t){l||(void 0===t&&(t=n),s&&(clearTimeout(s),s=null),t?u():c())}}}},{"./utils":2}],2:[function(t,e,n){"use strict";(e.exports={}).getOption=function(t,e,n){var o=t[e];if(null==o&&void 0!==n)return n;return o}},{}],3:[function(t,e,n){var o=t("../internals/is-callable"),r=t("../internals/try-to-string"),i=TypeError;e.exports=function(t){if(o(t))return t;throw i(r(t)+" is not a function")}},{"../internals/is-callable":65,"../internals/try-to-string":110}],4:[function(t,e,n){var o=t("../internals/is-constructor"),r=t("../internals/try-to-string"),i=TypeError;e.exports=function(t){if(o(t))return t;throw i(r(t)+" is not a constructor")}},{"../internals/is-constructor":66,"../internals/try-to-string":110}],5:[function(t,e,n){var o=t("../internals/is-callable"),r=String,i=TypeError;e.exports=function(t){if("object"==typeof t||o(t))return t;throw i("Can't set "+r(t)+" as a prototype")}},{"../internals/is-callable":65}],6:[function(t,e,n){var o=t("../internals/well-known-symbol"),r=t("../internals/object-create"),i=t("../internals/object-define-property").f,s=o("unscopables"),a=Array.prototype;null==a[s]&&i(a,s,{configurable:!0,value:r(null)}),e.exports=function(t){a[s][t]=!0}},{"../internals/object-create":79,"../internals/object-define-property":81,"../internals/well-known-symbol":117}],7:[function(t,e,n){var o=t("../internals/object-is-prototype-of"),r=TypeError;e.exports=function(t,e){if(o(e,t))return t;throw r("Incorrect invocation")}},{"../internals/object-is-prototype-of":86}],8:[function(t,e,n){var o=t("../internals/is-object"),r=String,i=TypeError;e.exports=function(t){if(o(t))return t;throw i(r(t)+" is not an object")}},{"../internals/is-object":69}],9:[function(t,e,n){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},{}],10:[function(t,e,n){"use strict";var o,r,i,s=t("../internals/array-buffer-native"),a=t("../internals/descriptors"),l=t("../internals/global"),c=t("../internals/is-callable"),u=t("../internals/is-object"),d=t("../internals/has-own-property"),f=t("../internals/classof"),p=t("../internals/try-to-string"),h=t("../internals/create-non-enumerable-property"),y=t("../internals/define-built-in"),v=t("../internals/object-define-property").f,g=t("../internals/object-is-prototype-of"),m=t("../internals/object-get-prototype-of"),b=t("../internals/object-set-prototype-of"),w=t("../internals/well-known-symbol"),_=t("../internals/uid"),x=t("../internals/internal-state"),D=x.enforce,k=x.get,E=l.Int8Array,B=E&&E.prototype,C=l.Uint8ClampedArray,K=C&&C.prototype,O=E&&m(E),S=B&&m(B),j=Object.prototype,P=l.TypeError,T=w("toStringTag"),M=_("TYPED_ARRAY_TAG"),A="TypedArrayConstructor",I=s&&!!b&&"Opera"!==f(l.opera),L=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R={BigInt64Array:8,BigUint64Array:8},F=function(t){var e=m(t);if(u(e)){var n=k(e);return n&&d(n,A)?n.TypedArrayConstructor:F(e)}},U=function(t){if(!u(t))return!1;var e=f(t);return d(N,e)||d(R,e)};for(o in N)(i=(r=l[o])&&r.prototype)?D(i).TypedArrayConstructor=r:I=!1;for(o in R)(i=(r=l[o])&&r.prototype)&&(D(i).TypedArrayConstructor=r);if((!I||!c(O)||O===Function.prototype)&&(O=function(){throw P("Incorrect invocation")},I))for(o in N)l[o]&&b(l[o],O);if((!I||!S||S===j)&&(S=O.prototype,I))for(o in N)l[o]&&b(l[o].prototype,S);if(I&&m(K)!==S&&b(K,S),a&&!d(S,T))for(o in L=!0,v(S,T,{get:function(){return u(this)?this[M]:void 0}}),N)l[o]&&h(l[o],M,o);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:I,TYPED_ARRAY_TAG:L&&M,aTypedArray:function(t){if(U(t))return t;throw P("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!b||g(O,t)))return t;throw P(p(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,o){if(a){if(n)for(var r in N){var i=l[r];if(i&&d(i.prototype,t))try{delete i.prototype[t]}catch(n){try{i.prototype[t]=e}catch(t){}}}S[t]&&!n||y(S,t,n?e:I&&B[t]||e,o)}},exportTypedArrayStaticMethod:function(t,e,n){var o,r;if(a){if(b){if(n)for(o in N)if((r=l[o])&&d(r,t))try{delete r[t]}catch(t){}if(O[t]&&!n)return;try{return y(O,t,n?e:I&&O[t]||e)}catch(t){}}for(o in N)!(r=l[o])||r[t]&&!n||y(r,t,e)}},getTypedArrayConstructor:F,isView:function(t){if(!u(t))return!1;var e=f(t);return"DataView"===e||d(N,e)||d(R,e)},isTypedArray:U,TypedArray:O,TypedArrayPrototype:S}},{"../internals/array-buffer-native":9,"../internals/classof":21,"../internals/create-non-enumerable-property":25,"../internals/define-built-in":28,"../internals/descriptors":32,"../internals/global":53,"../internals/has-own-property":54,"../internals/internal-state":62,"../internals/is-callable":65,"../internals/is-object":69,"../internals/object-define-property":81,"../internals/object-get-prototype-of":85,"../internals/object-is-prototype-of":86,"../internals/object-set-prototype-of":90,"../internals/try-to-string":110,"../internals/uid":114,"../internals/well-known-symbol":117}],11:[function(t,e,n){"use strict";var o=t("../internals/global"),r=t("../internals/function-uncurry-this"),i=t("../internals/descriptors"),s=t("../internals/array-buffer-native"),a=t("../internals/function-name"),l=t("../internals/create-non-enumerable-property"),c=t("../internals/define-built-ins"),u=t("../internals/fails"),d=t("../internals/an-instance"),f=t("../internals/to-integer-or-infinity"),p=t("../internals/to-length"),h=t("../internals/to-index"),y=t("../internals/ieee754"),v=t("../internals/object-get-prototype-of"),g=t("../internals/object-set-prototype-of"),m=t("../internals/object-get-own-property-names").f,b=t("../internals/object-define-property").f,w=t("../internals/array-fill"),_=t("../internals/array-slice-simple"),x=t("../internals/set-to-string-tag"),D=t("../internals/internal-state"),k=a.PROPER,E=a.CONFIGURABLE,B=D.get,C=D.set,K="ArrayBuffer",O="DataView",S="Wrong index",j=o.ArrayBuffer,P=j,T=P&&P.prototype,M=o.DataView,A=M&&M.prototype,I=Object.prototype,L=o.Array,N=o.RangeError,R=r(w),F=r([].reverse),U=y.pack,z=y.unpack,H=function(t){return[255&t]},V=function(t){return[255&t,t>>8&255]},G=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Y=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},W=function(t){return U(t,23,4)},X=function(t){return U(t,52,8)},q=function(t,e){b(t.prototype,e,{get:function(){return B(this)[e]}})},$=function(t,e,n,o){var r=h(n),i=B(t);if(r+e>i.byteLength)throw N(S);var s=B(i.buffer).bytes,a=r+i.byteOffset,l=_(s,a,a+e);return o?l:F(l)},J=function(t,e,n,o,r,i){var s=h(n),a=B(t);if(s+e>a.byteLength)throw N(S);for(var l=B(a.buffer).bytes,c=s+a.byteOffset,u=o(+r),d=0;d<e;d++)l[c+d]=u[i?d:e-d-1]};if(s){var Q=k&&j.name!==K;if(u((function(){j(1)}))&&u((function(){new j(-1)}))&&!u((function(){return new j,new j(1.5),new j(NaN),Q&&!E})))Q&&E&&l(j,"name",K);else{(P=function(t){return d(this,T),new j(h(t))}).prototype=T;for(var Z,tt=m(j),et=0;tt.length>et;)(Z=tt[et++])in P||l(P,Z,j[Z]);T.constructor=P}g&&v(A)!==I&&g(A,I);var nt=new M(new P(2)),ot=r(A.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||c(A,{setInt8:function(t,e){ot(this,t,e<<24>>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else T=(P=function(t){d(this,T);var e=h(t);C(this,{bytes:R(L(e),0),byteLength:e}),i||(this.byteLength=e)}).prototype,A=(M=function(t,e,n){d(this,A),d(t,T);var o=B(t).byteLength,r=f(e);if(r<0||r>o)throw N("Wrong offset");if(r+(n=void 0===n?o-r:p(n))>o)throw N("Wrong length");C(this,{buffer:t,byteLength:n,byteOffset:r}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=r)}).prototype,i&&(q(P,"byteLength"),q(M,"buffer"),q(M,"byteLength"),q(M,"byteOffset")),c(A,{getInt8:function(t){return $(this,1,t)[0]<<24>>24},getUint8:function(t){return $(this,1,t)[0]},getInt16:function(t){var e=$(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=$(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Y($(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Y($(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return z($(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return z($(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){J(this,1,t,H,e)},setUint8:function(t,e){J(this,1,t,H,e)},setInt16:function(t,e){J(this,2,t,V,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){J(this,2,t,V,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){J(this,4,t,G,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){J(this,4,t,G,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){J(this,4,t,W,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){J(this,8,t,X,e,arguments.length>2?arguments[2]:void 0)}});x(P,K),x(M,O),e.exports={ArrayBuffer:P,DataView:M}},{"../internals/an-instance":7,"../internals/array-buffer-native":9,"../internals/array-fill":12,"../internals/array-slice-simple":15,"../internals/create-non-enumerable-property":25,"../internals/define-built-ins":29,"../internals/descriptors":32,"../internals/fails":43,"../internals/function-name":47,"../internals/function-uncurry-this":48,"../internals/global":53,"../internals/ieee754":58,"../internals/internal-state":62,"../internals/object-define-property":81,"../internals/object-get-own-property-names":83,"../internals/object-get-prototype-of":85,"../internals/object-set-prototype-of":90,"../internals/set-to-string-tag":95,"../internals/to-index":100,"../internals/to-integer-or-infinity":102,"../internals/to-length":103}],12:[function(t,e,n){"use strict";var o=t("../internals/to-object"),r=t("../internals/to-absolute-index"),i=t("../internals/length-of-array-like");e.exports=function(t){for(var e=o(this),n=i(e),s=arguments.length,a=r(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>a;)e[a++]=t;return e}},{"../internals/length-of-array-like":74,"../internals/to-absolute-index":99,"../internals/to-object":104}],13:[function(t,e,n){var o=t("../internals/to-indexed-object"),r=t("../internals/to-absolute-index"),i=t("../internals/length-of-array-like"),s=function(t){return function(e,n,s){var a,l=o(e),c=i(l),u=r(s,c);if(t&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":74,"../internals/to-absolute-index":99,"../internals/to-indexed-object":101}],14:[function(t,e,n){var o=t("../internals/function-bind-context"),r=t("../internals/function-uncurry-this"),i=t("../internals/indexed-object"),s=t("../internals/to-object"),a=t("../internals/length-of-array-like"),l=t("../internals/array-species-create"),c=r([].push),u=function(t){var e=1==t,n=2==t,r=3==t,u=4==t,d=6==t,f=7==t,p=5==t||d;return function(h,y,v,g){for(var m,b,w=s(h),_=i(w),x=o(y,v),D=a(_),k=0,E=g||l,B=e?E(h,D):n||f?E(h,0):void 0;D>k;k++)if((p||k in _)&&(b=x(m=_[k],k,w),t))if(e)B[k]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return k;case 2:c(B,m)}else switch(t){case 4:return!1;case 7:c(B,m)}return d?-1:r||u?u:B}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":18,"../internals/function-bind-context":44,"../internals/function-uncurry-this":48,"../internals/indexed-object":59,"../internals/length-of-array-like":74,"../internals/to-object":104}],15:[function(t,e,n){var o=t("../internals/to-absolute-index"),r=t("../internals/length-of-array-like"),i=t("../internals/create-property"),s=Array,a=Math.max;e.exports=function(t,e,n){for(var l=r(t),c=o(e,l),u=o(void 0===n?l:n,l),d=s(a(u-c,0)),f=0;c<u;c++,f++)i(d,f,t[c]);return d.length=f,d}},{"../internals/create-property":27,"../internals/length-of-array-like":74,"../internals/to-absolute-index":99}],16:[function(t,e,n){var o=t("../internals/array-slice-simple"),r=Math.floor,i=function(t,e){var n=t.length,l=r(n/2);return n<8?s(t,e):a(t,i(o(t,0,l),e),i(o(t,l),e),e)},s=function(t,e){for(var n,o,r=t.length,i=1;i<r;){for(o=i,n=t[i];o&&e(t[o-1],n)>0;)t[o]=t[--o];o!==i++&&(t[o]=n)}return t},a=function(t,e,n,o){for(var r=e.length,i=n.length,s=0,a=0;s<r||a<i;)t[s+a]=s<r&&a<i?o(e[s],n[a])<=0?e[s++]:n[a++]:s<r?e[s++]:n[a++];return t};e.exports=i},{"../internals/array-slice-simple":15}],17:[function(t,e,n){var o=t("../internals/is-array"),r=t("../internals/is-constructor"),i=t("../internals/is-object"),s=t("../internals/well-known-symbol")("species"),a=Array;e.exports=function(t){var e;return o(t)&&(e=t.constructor,(r(e)&&(e===a||o(e.prototype))||i(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},{"../internals/is-array":64,"../internals/is-constructor":66,"../internals/is-object":69,"../internals/well-known-symbol":117}],18:[function(t,e,n){var o=t("../internals/array-species-constructor");e.exports=function(t,e){return new(o(t))(0===e?0:e)}},{"../internals/array-species-constructor":17}],19:[function(t,e,n){var o=t("../internals/well-known-symbol")("iterator"),r=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){r=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}e.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},{"../internals/well-known-symbol":117}],20:[function(t,e,n){var o=t("../internals/function-uncurry-this"),r=o({}.toString),i=o("".slice);e.exports=function(t){return i(r(t),8,-1)}},{"../internals/function-uncurry-this":48}],21:[function(t,e,n){var o=t("../internals/to-string-tag-support"),r=t("../internals/is-callable"),i=t("../internals/classof-raw"),s=t("../internals/well-known-symbol")("toStringTag"),a=Object,l="Arguments"==i(function(){return arguments}());e.exports=o?i:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:l?i(e):"Object"==(o=i(e))&&r(e.callee)?"Arguments":o}},{"../internals/classof-raw":20,"../internals/is-callable":65,"../internals/to-string-tag-support":109,"../internals/well-known-symbol":117}],22:[function(t,e,n){var o=t("../internals/has-own-property"),r=t("../internals/own-keys"),i=t("../internals/object-get-own-property-descriptor"),s=t("../internals/object-define-property");e.exports=function(t,e,n){for(var a=r(e),l=s.f,c=i.f,u=0;u<a.length;u++){var d=a[u];o(t,d)||n&&o(n,d)||l(t,d,c(e,d))}}},{"../internals/has-own-property":54,"../internals/object-define-property":81,"../internals/object-get-own-property-descriptor":82,"../internals/own-keys":92}],23:[function(t,e,n){var o=t("../internals/fails");e.exports=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},{"../internals/fails":43}],24:[function(t,e,n){"use strict";var o=t("../internals/iterators-core").IteratorPrototype,r=t("../internals/object-create"),i=t("../internals/create-property-descriptor"),s=t("../internals/set-to-string-tag"),a=t("../internals/iterators"),l=function(){return this};e.exports=function(t,e,n,c){var u=e+" Iterator";return t.prototype=r(o,{next:i(+!c,n)}),s(t,u,!1,!0),a[u]=l,t}},{"../internals/create-property-descriptor":26,"../internals/iterators":73,"../internals/iterators-core":72,"../internals/object-create":79,"../internals/set-to-string-tag":95}],25:[function(t,e,n){var o=t("../internals/descriptors"),r=t("../internals/object-define-property"),i=t("../internals/create-property-descriptor");e.exports=o?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},{"../internals/create-property-descriptor":26,"../internals/descriptors":32,"../internals/object-define-property":81}],26:[function(t,e,n){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],27:[function(t,e,n){"use strict";var o=t("../internals/to-property-key"),r=t("../internals/object-define-property"),i=t("../internals/create-property-descriptor");e.exports=function(t,e,n){var s=o(e);s in t?r.f(t,s,i(0,n)):t[s]=n}},{"../internals/create-property-descriptor":26,"../internals/object-define-property":81,"../internals/to-property-key":108}],28:[function(t,e,n){var o=t("../internals/is-callable"),r=t("../internals/object-define-property"),i=t("../internals/make-built-in"),s=t("../internals/define-global-property");e.exports=function(t,e,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(o(n)&&i(n,c,a),a.global)l?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},{"../internals/define-global-property":30,"../internals/is-callable":65,"../internals/make-built-in":75,"../internals/object-define-property":81}],29:[function(t,e,n){var o=t("../internals/define-built-in");e.exports=function(t,e,n){for(var r in e)o(t,r,e[r],n);return t}},{"../internals/define-built-in":28}],30:[function(t,e,n){var o=t("../internals/global"),r=Object.defineProperty;e.exports=function(t,e){try{r(o,t,{value:e,configurable:!0,writable:!0})}catch(n){o[t]=e}return e}},{"../internals/global":53}],31:[function(t,e,n){"use strict";var o=t("../internals/export"),r=t("../internals/function-call"),i=t("../internals/is-pure"),s=t("../internals/function-name"),a=t("../internals/is-callable"),l=t("../internals/create-iterator-constructor"),c=t("../internals/object-get-prototype-of"),u=t("../internals/object-set-prototype-of"),d=t("../internals/set-to-string-tag"),f=t("../internals/create-non-enumerable-property"),p=t("../internals/define-built-in"),h=t("../internals/well-known-symbol"),y=t("../internals/iterators"),v=t("../internals/iterators-core"),g=s.PROPER,m=s.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,_=h("iterator"),x="keys",D="values",k="entries",E=function(){return this};e.exports=function(t,e,n,s,h,v,B){l(n,e,s);var C,K,O,S=function(t){if(t===h&&A)return A;if(!w&&t in T)return T[t];switch(t){case x:case D:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",P=!1,T=t.prototype,M=T[_]||T["@@iterator"]||h&&T[h],A=!w&&M||S(h),I="Array"==e&&T.entries||M;if(I&&(C=c(I.call(new t)))!==Object.prototype&&C.next&&(i||c(C)===b||(u?u(C,b):a(C[_])||p(C,_,E)),d(C,j,!0,!0),i&&(y[j]=E)),g&&h==D&&M&&M.name!==D&&(!i&&m?f(T,"name",D):(P=!0,A=function(){return r(M,this)})),h)if(K={values:S(D),keys:v?A:S(x),entries:S(k)},B)for(O in K)(w||P||!(O in T))&&p(T,O,K[O]);else o({target:e,proto:!0,forced:w||P},K);return i&&!B||T[_]===A||p(T,_,A,{name:h}),y[e]=A,K}},{"../internals/create-iterator-constructor":24,"../internals/create-non-enumerable-property":25,"../internals/define-built-in":28,"../internals/export":42,"../internals/function-call":46,"../internals/function-name":47,"../internals/is-callable":65,"../internals/is-pure":70,"../internals/iterators":73,"../internals/iterators-core":72,"../internals/object-get-prototype-of":85,"../internals/object-set-prototype-of":90,"../internals/set-to-string-tag":95,"../internals/well-known-symbol":117}],32:[function(t,e,n){var o=t("../internals/fails");e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":43}],33:[function(t,e,n){var o=t("../internals/global"),r=t("../internals/is-object"),i=o.document,s=r(i)&&r(i.createElement);e.exports=function(t){return s?i.createElement(t):{}}},{"../internals/global":53,"../internals/is-object":69}],34:[function(t,e,n){e.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}},{}],35:[function(t,e,n){var o=t("../internals/document-create-element")("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},{"../internals/document-create-element":33}],36:[function(t,e,n){var o=t("../internals/engine-user-agent").match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},{"../internals/engine-user-agent":38}],37:[function(t,e,n){var o=t("../internals/engine-user-agent");e.exports=/MSIE|Trident/.test(o)},{"../internals/engine-user-agent":38}],38:[function(t,e,n){var o=t("../internals/get-built-in");e.exports=o("navigator","userAgent")||""},{"../internals/get-built-in":49}],39:[function(t,e,n){var o,r,i=t("../internals/global"),s=t("../internals/engine-user-agent"),a=i.process,l=i.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(r=(o=u.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&s&&(!(o=s.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},{"../internals/engine-user-agent":38,"../internals/global":53}],40:[function(t,e,n){var o=t("../internals/engine-user-agent").match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},{"../internals/engine-user-agent":38}],41:[function(t,e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],42:[function(t,e,n){var o=t("../internals/global"),r=t("../internals/object-get-own-property-descriptor").f,i=t("../internals/create-non-enumerable-property"),s=t("../internals/define-built-in"),a=t("../internals/define-global-property"),l=t("../internals/copy-constructor-properties"),c=t("../internals/is-forced");e.exports=function(t,e){var n,u,d,f,p,h=t.target,y=t.global,v=t.stat;if(n=y?o:v?o[h]||a(h,{}):(o[h]||{}).prototype)for(u in e){if(f=e[u],d=t.dontCallGetSet?(p=r(n,u))&&p.value:n[u],!c(y?u:h+(v?".":"#")+u,t.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(t.sham||d&&d.sham)&&i(f,"sham",!0),s(n,u,f,t)}}},{"../internals/copy-constructor-properties":22,"../internals/create-non-enumerable-property":25,"../internals/define-built-in":28,"../internals/define-global-property":30,"../internals/global":53,"../internals/is-forced":67,"../internals/object-get-own-property-descriptor":82}],43:[function(t,e,n){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],44:[function(t,e,n){var o=t("../internals/function-uncurry-this"),r=t("../internals/a-callable"),i=t("../internals/function-bind-native"),s=o(o.bind);e.exports=function(t,e){return r(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},{"../internals/a-callable":3,"../internals/function-bind-native":45,"../internals/function-uncurry-this":48}],45:[function(t,e,n){var o=t("../internals/fails");e.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},{"../internals/fails":43}],46:[function(t,e,n){var o=t("../internals/function-bind-native"),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},{"../internals/function-bind-native":45}],47:[function(t,e,n){var o=t("../internals/descriptors"),r=t("../internals/has-own-property"),i=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,a=r(i,"name"),l=a&&"something"===function(){}.name,c=a&&(!o||o&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":32,"../internals/has-own-property":54}],48:[function(t,e,n){var o=t("../internals/function-bind-native"),r=Function.prototype,i=r.bind,s=r.call,a=o&&i.bind(s,s);e.exports=o?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},{"../internals/function-bind-native":45}],49:[function(t,e,n){var o=t("../internals/global"),r=t("../internals/is-callable"),i=function(t){return r(t)?t:void 0};e.exports=function(t,e){return arguments.length<2?i(o[t]):o[t]&&o[t][e]}},{"../internals/global":53,"../internals/is-callable":65}],50:[function(t,e,n){var o=t("../internals/classof"),r=t("../internals/get-method"),i=t("../internals/iterators"),s=t("../internals/well-known-symbol")("iterator");e.exports=function(t){if(null!=t)return r(t,s)||r(t,"@@iterator")||i[o(t)]}},{"../internals/classof":21,"../internals/get-method":52,"../internals/iterators":73,"../internals/well-known-symbol":117}],51:[function(t,e,n){var o=t("../internals/function-call"),r=t("../internals/a-callable"),i=t("../internals/an-object"),s=t("../internals/try-to-string"),a=t("../internals/get-iterator-method"),l=TypeError;e.exports=function(t,e){var n=arguments.length<2?a(t):e;if(r(n))return i(o(n,t));throw l(s(t)+" is not iterable")}},{"../internals/a-callable":3,"../internals/an-object":8,"../internals/function-call":46,"../internals/get-iterator-method":50,"../internals/try-to-string":110}],52:[function(t,e,n){var o=t("../internals/a-callable");e.exports=function(t,e){var n=t[e];return null==n?void 0:o(n)}},{"../internals/a-callable":3}],53:[function(t,e,n){(function(t){(function(){var n=function(t){return t&&t.Math==Math&&t};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],54:[function(t,e,n){var o=t("../internals/function-uncurry-this"),r=t("../internals/to-object"),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(t,e){return i(r(t),e)}},{"../internals/function-uncurry-this":48,"../internals/to-object":104}],55:[function(t,e,n){e.exports={}},{}],56:[function(t,e,n){var o=t("../internals/get-built-in");e.exports=o("document","documentElement")},{"../internals/get-built-in":49}],57:[function(t,e,n){var o=t("../internals/descriptors"),r=t("../internals/fails"),i=t("../internals/document-create-element");e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":32,"../internals/document-create-element":33,"../internals/fails":43}],58:[function(t,e,n){var o=Array,r=Math.abs,i=Math.pow,s=Math.floor,a=Math.log,l=Math.LN2;e.exports={pack:function(t,e,n){var c,u,d,f=o(n),p=8*n-e-1,h=(1<<p)-1,y=h>>1,v=23===e?i(2,-24)-i(2,-77):0,g=t<0||0===t&&1/t<0?1:0,m=0;for((t=r(t))!=t||t===1/0?(u=t!=t?1:0,c=h):(c=s(a(t)/l),t*(d=i(2,-c))<1&&(c--,d*=2),(t+=c+y>=1?v/d:v*i(2,1-y))*d>=2&&(c++,d/=2),c+y>=h?(u=0,c=h):c+y>=1?(u=(t*d-1)*i(2,e),c+=y):(u=t*i(2,y-1)*i(2,e),c=0));e>=8;)f[m++]=255&u,u/=256,e-=8;for(c=c<<e|u,p+=e;p>0;)f[m++]=255&c,c/=256,p-=8;return f[--m]|=128*g,f},unpack:function(t,e){var n,o=t.length,r=8*o-e-1,s=(1<<r)-1,a=s>>1,l=r-7,c=o-1,u=t[c--],d=127&u;for(u>>=7;l>0;)d=256*d+t[c--],l-=8;for(n=d&(1<<-l)-1,d>>=-l,l+=e;l>0;)n=256*n+t[c--],l-=8;if(0===d)d=1-a;else{if(d===s)return n?NaN:u?-1/0:1/0;n+=i(2,e),d-=a}return(u?-1:1)*n*i(2,d-e)}}},{}],59:[function(t,e,n){var o=t("../internals/function-uncurry-this"),r=t("../internals/fails"),i=t("../internals/classof-raw"),s=Object,a=o("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a(t,""):s(t)}:s},{"../internals/classof-raw":20,"../internals/fails":43,"../internals/function-uncurry-this":48}],60:[function(t,e,n){var o=t("../internals/is-callable"),r=t("../internals/is-object"),i=t("../internals/object-set-prototype-of");e.exports=function(t,e,n){var s,a;return i&&o(s=e.constructor)&&s!==n&&r(a=s.prototype)&&a!==n.prototype&&i(t,a),t}},{"../internals/is-callable":65,"../internals/is-object":69,"../internals/object-set-prototype-of":90}],61:[function(t,e,n){var o=t("../internals/function-uncurry-this"),r=t("../internals/is-callable"),i=t("../internals/shared-store"),s=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),e.exports=i.inspectSource},{"../internals/function-uncurry-this":48,"../internals/is-callable":65,"../internals/shared-store":97}],62:[function(t,e,n){var o,r,i,s=t("../internals/native-weak-map"),a=t("../internals/global"),l=t("../internals/function-uncurry-this"),c=t("../internals/is-object"),u=t("../internals/create-non-enumerable-property"),d=t("../internals/has-own-property"),f=t("../internals/shared-store"),p=t("../internals/shared-key"),h=t("../internals/hidden-keys"),y="Object already initialized",v=a.TypeError,g=a.WeakMap;if(s||f.state){var m=f.state||(f.state=new g),b=l(m.get),w=l(m.has),_=l(m.set);o=function(t,e){if(w(m,t))throw new v(y);return e.facade=t,_(m,t,e),e},r=function(t){return b(m,t)||{}},i=function(t){return w(m,t)}}else{var x=p("state");h[x]=!0,o=function(t,e){if(d(t,x))throw new v(y);return e.facade=t,u(t,x,e),e},r=function(t){return d(t,x)?t[x]:{}},i=function(t){return d(t,x)}}e.exports={set:o,get:r,has:i,enforce:function(t){return i(t)?r(t):o(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=r(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},{"../internals/create-non-enumerable-property":25,"../internals/function-uncurry-this":48,"../internals/global":53,"../internals/has-own-property":54,"../internals/hidden-keys":55,"../internals/is-object":69,"../internals/native-weak-map":78,"../internals/shared-key":96,"../internals/shared-store":97}],63:[function(t,e,n){var o=t("../internals/well-known-symbol"),r=t("../internals/iterators"),i=o("iterator"),s=Array.prototype;e.exports=function(t){return void 0!==t&&(r.Array===t||s[i]===t)}},{"../internals/iterators":73,"../internals/well-known-symbol":117}],64:[function(t,e,n){var o=t("../internals/classof-raw");e.exports=Array.isArray||function(t){return"Array"==o(t)}},{"../internals/classof-raw":20}],65:[function(t,e,n){e.exports=function(t){return"function"==typeof t}},{}],66:[function(t,e,n){var o=t("../internals/function-uncurry-this"),r=t("../internals/fails"),i=t("../internals/is-callable"),s=t("../internals/classof"),a=t("../internals/get-built-in"),l=t("../internals/inspect-source"),c=function(){},u=[],d=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=o(f.exec),h=!f.exec(c),y=function(t){if(!i(t))return!1;try{return d(c,u,t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(f,l(t))}catch(t){return!0}};v.sham=!0,e.exports=!d||r((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?v:y},{"../internals/classof":21,"../internals/fails":43,"../internals/function-uncurry-this":48,"../internals/get-built-in":49,"../internals/inspect-source":61,"../internals/is-callable":65}],67:[function(t,e,n){var o=t("../internals/fails"),r=t("../internals/is-callable"),i=/#|\.prototype\./,s=function(t,e){var n=l[a(t)];return n==u||n!=c&&(r(e)?o(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},{"../internals/fails":43,"../internals/is-callable":65}],68:[function(t,e,n){var o=t("../internals/is-object"),r=Math.floor;e.exports=Number.isInteger||function(t){return!o(t)&&isFinite(t)&&r(t)===t}},{"../internals/is-object":69}],69:[function(t,e,n){var o=t("../internals/is-callable");e.exports=function(t){return"object"==typeof t?null!==t:o(t)}},{"../internals/is-callable":65}],70:[function(t,e,n){e.exports=!1},{}],71:[function(t,e,n){var o=t("../internals/get-built-in"),r=t("../internals/is-callable"),i=t("../internals/object-is-prototype-of"),s=t("../internals/use-symbol-as-uid"),a=Object;e.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return r(e)&&i(e.prototype,a(t))}},{"../internals/get-built-in":49,"../internals/is-callable":65,"../internals/object-is-prototype-of":86,"../internals/use-symbol-as-uid":115}],72:[function(t,e,n){"use strict";var o,r,i,s=t("../internals/fails"),a=t("../internals/is-callable"),l=t("../internals/object-create"),c=t("../internals/object-get-prototype-of"),u=t("../internals/define-built-in"),d=t("../internals/well-known-symbol"),f=t("../internals/is-pure"),p=d("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(r=c(c(i)))!==Object.prototype&&(o=r):h=!0),null==o||s((function(){var t={};return o[p].call(t)!==t}))?o={}:f&&(o=l(o)),a(o[p])||u(o,p,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:h}},{"../internals/define-built-in":28,"../internals/fails":43,"../internals/is-callable":65,"../internals/is-pure":70,"../internals/object-create":79,"../internals/object-get-prototype-of":85,"../internals/well-known-symbol":117}],73:[function(t,e,n){arguments[4][55][0].apply(n,arguments)},{dup:55}],74:[function(t,e,n){var o=t("../internals/to-length");e.exports=function(t){return o(t.length)}},{"../internals/to-length":103}],75:[function(t,e,n){var o=t("../internals/fails"),r=t("../internals/is-callable"),i=t("../internals/has-own-property"),s=t("../internals/descriptors"),a=t("../internals/function-name").CONFIGURABLE,l=t("../internals/inspect-source"),c=t("../internals/internal-state"),u=c.enforce,d=c.get,f=Object.defineProperty,p=s&&!o((function(){return 8!==f((function(){}),"length",{value:8}).length})),h=String(String).split("String"),y=e.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),p&&n&&i(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var o=u(t);return i(o,"source")||(o.source=h.join("string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return r(this)&&d(this).source||l(this)}),"toString")},{"../internals/descriptors":32,"../internals/fails":43,"../internals/function-name":47,"../internals/has-own-property":54,"../internals/inspect-source":61,"../internals/internal-state":62,"../internals/is-callable":65}],76:[function(t,e,n){var o=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(t){var e=+t;return(e>0?r:o)(e)}},{}],77:[function(t,e,n){var o=t("../internals/engine-v8-version"),r=t("../internals/fails");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},{"../internals/engine-v8-version":39,"../internals/fails":43}],78:[function(t,e,n){var o=t("../internals/global"),r=t("../internals/is-callable"),i=t("../internals/inspect-source"),s=o.WeakMap;e.exports=r(s)&&/native code/.test(i(s))},{"../internals/global":53,"../internals/inspect-source":61,"../internals/is-callable":65}],79:[function(t,e,n){var o,r=t("../internals/an-object"),i=t("../internals/object-define-properties"),s=t("../internals/enum-bug-keys"),a=t("../internals/hidden-keys"),l=t("../internals/html"),c=t("../internals/document-create-element"),u=t("../internals/shared-key"),d=u("IE_PROTO"),f=function(){},p=function(t){return"<script>"+t+"</"+"script>"},h=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t,e;y="undefined"!=typeof document?document.domain&&o?h(o):((e=c("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):h(o);for(var n=s.length;n--;)delete y.prototype[s[n]];return y()};a[d]=!0,e.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=r(t),n=new f,f.prototype=null,n[d]=t):n=y(),void 0===e?n:i.f(n,e)}},{"../internals/an-object":8,"../internals/document-create-element":33,"../internals/enum-bug-keys":41,"../internals/hidden-keys":55,"../internals/html":56,"../internals/object-define-properties":80,"../internals/shared-key":96}],80:[function(t,e,n){var o=t("../internals/descriptors"),r=t("../internals/v8-prototype-define-bug"),i=t("../internals/object-define-property"),s=t("../internals/an-object"),a=t("../internals/to-indexed-object"),l=t("../internals/object-keys");n.f=o&&!r?Object.defineProperties:function(t,e){s(t);for(var n,o=a(e),r=l(e),c=r.length,u=0;c>u;)i.f(t,n=r[u++],o[n]);return t}},{"../internals/an-object":8,"../internals/descriptors":32,"../internals/object-define-property":81,"../internals/object-keys":88,"../internals/to-indexed-object":101,"../internals/v8-prototype-define-bug":116}],81:[function(t,e,n){var o=t("../internals/descriptors"),r=t("../internals/ie8-dom-define"),i=t("../internals/v8-prototype-define-bug"),s=t("../internals/an-object"),a=t("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";n.f=o?i?function(t,e,n){if(s(t),e=a(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n.writable){var o=u(t,e);o&&o.writable&&(t[e]=n.value,n={configurable:f in n?n.configurable:o.configurable,enumerable:d in n?n.enumerable:o.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},{"../internals/an-object":8,"../internals/descriptors":32,"../internals/ie8-dom-define":57,"../internals/to-property-key":108,"../internals/v8-prototype-define-bug":116}],82:[function(t,e,n){var o=t("../internals/descriptors"),r=t("../internals/function-call"),i=t("../internals/object-property-is-enumerable"),s=t("../internals/create-property-descriptor"),a=t("../internals/to-indexed-object"),l=t("../internals/to-property-key"),c=t("../internals/has-own-property"),u=t("../internals/ie8-dom-define"),d=Object.getOwnPropertyDescriptor;n.f=o?d:function(t,e){if(t=a(t),e=l(e),u)try{return d(t,e)}catch(t){}if(c(t,e))return s(!r(i.f,t,e),t[e])}},{"../internals/create-property-descriptor":26,"../internals/descriptors":32,"../internals/function-call":46,"../internals/has-own-property":54,"../internals/ie8-dom-define":57,"../internals/object-property-is-enumerable":89,"../internals/to-indexed-object":101,"../internals/to-property-key":108}],83:[function(t,e,n){var o=t("../internals/object-keys-internal"),r=t("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},{"../internals/enum-bug-keys":41,"../internals/object-keys-internal":87}],84:[function(t,e,n){n.f=Object.getOwnPropertySymbols},{}],85:[function(t,e,n){var o=t("../internals/has-own-property"),r=t("../internals/is-callable"),i=t("../internals/to-object"),s=t("../internals/shared-key"),a=t("../internals/correct-prototype-getter"),l=s("IE_PROTO"),c=Object,u=c.prototype;e.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(o(e,l))return e[l];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?u:null}},{"../internals/correct-prototype-getter":23,"../internals/has-own-property":54,"../internals/is-callable":65,"../internals/shared-key":96,"../internals/to-object":104}],86:[function(t,e,n){var o=t("../internals/function-uncurry-this");e.exports=o({}.isPrototypeOf)},{"../internals/function-uncurry-this":48}],87:[function(t,e,n){var o=t("../internals/function-uncurry-this"),r=t("../internals/has-own-property"),i=t("../internals/to-indexed-object"),s=t("../internals/array-includes").indexOf,a=t("../internals/hidden-keys"),l=o([].push);e.exports=function(t,e){var n,o=i(t),c=0,u=[];for(n in o)!r(a,n)&&r(o,n)&&l(u,n);for(;e.length>c;)r(o,n=e[c++])&&(~s(u,n)||l(u,n));return u}},{"../internals/array-includes":13,"../internals/function-uncurry-this":48,"../internals/has-own-property":54,"../internals/hidden-keys":55,"../internals/to-indexed-object":101}],88:[function(t,e,n){var o=t("../internals/object-keys-internal"),r=t("../internals/enum-bug-keys");e.exports=Object.keys||function(t){return o(t,r)}},{"../internals/enum-bug-keys":41,"../internals/object-keys-internal":87}],89:[function(t,e,n){"use strict";var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!o.call({1:2},1);n.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:o},{}],90:[function(t,e,n){var o=t("../internals/function-uncurry-this"),r=t("../internals/an-object"),i=t("../internals/a-possible-prototype");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=o(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t(n,o):n.__proto__=o,n}}():void 0)},{"../internals/a-possible-prototype":5,"../internals/an-object":8,"../internals/function-uncurry-this":48}],91:[function(t,e,n){var o=t("../internals/function-call"),r=t("../internals/is-callable"),i=t("../internals/is-object"),s=TypeError;e.exports=function(t,e){var n,a;if("string"===e&&r(n=t.toString)&&!i(a=o(n,t)))return a;if(r(n=t.valueOf)&&!i(a=o(n,t)))return a;if("string"!==e&&r(n=t.toString)&&!i(a=o(n,t)))return a;throw s("Can't convert object to primitive value")}},{"../internals/function-call":46,"../internals/is-callable":65,"../internals/is-object":69}],92:[function(t,e,n){var o=t("../internals/get-built-in"),r=t("../internals/function-uncurry-this"),i=t("../internals/object-get-own-property-names"),s=t("../internals/object-get-own-property-symbols"),a=t("../internals/an-object"),l=r([].concat);e.exports=o("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=s.f;return n?l(e,n(t)):e}},{"../internals/an-object":8,"../internals/function-uncurry-this":48,"../internals/get-built-in":49,"../internals/object-get-own-property-names":83,"../internals/object-get-own-property-symbols":84}],93:[function(t,e,n){var o=TypeError;e.exports=function(t){if(null==t)throw o("Can't call method on "+t);return t}},{}],94:[function(t,e,n){"use strict";var o=t("../internals/get-built-in"),r=t("../internals/object-define-property"),i=t("../internals/well-known-symbol"),s=t("../internals/descriptors"),a=i("species");e.exports=function(t){var e=o(t),n=r.f;s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":32,"../internals/get-built-in":49,"../internals/object-define-property":81,"../internals/well-known-symbol":117}],95:[function(t,e,n){var o=t("../internals/object-define-property").f,r=t("../internals/has-own-property"),i=t("../internals/well-known-symbol")("toStringTag");e.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,i)&&o(t,i,{configurable:!0,value:e})}},{"../internals/has-own-property":54,"../internals/object-define-property":81,"../internals/well-known-symbol":117}],96:[function(t,e,n){var o=t("../internals/shared"),r=t("../internals/uid"),i=o("keys");e.exports=function(t){return i[t]||(i[t]=r(t))}},{"../internals/shared":98,"../internals/uid":114}],97:[function(t,e,n){var o=t("../internals/global"),r=t("../internals/define-global-property"),i="__core-js_shared__",s=o[i]||r(i,{});e.exports=s},{"../internals/define-global-property":30,"../internals/global":53}],98:[function(t,e,n){var o=t("../internals/is-pure"),r=t("../internals/shared-store");(e.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.5",mode:o?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":70,"../internals/shared-store":97}],99:[function(t,e,n){var o=t("../internals/to-integer-or-infinity"),r=Math.max,i=Math.min;e.exports=function(t,e){var n=o(t);return n<0?r(n+e,0):i(n,e)}},{"../internals/to-integer-or-infinity":102}],100:[function(t,e,n){var o=t("../internals/to-integer-or-infinity"),r=t("../internals/to-length"),i=RangeError;e.exports=function(t){if(void 0===t)return 0;var e=o(t),n=r(e);if(e!==n)throw i("Wrong length or index");return n}},{"../internals/to-integer-or-infinity":102,"../internals/to-length":103}],101:[function(t,e,n){var o=t("../internals/indexed-object"),r=t("../internals/require-object-coercible");e.exports=function(t){return o(r(t))}},{"../internals/indexed-object":59,"../internals/require-object-coercible":93}],102:[function(t,e,n){var o=t("../internals/math-trunc");e.exports=function(t){var e=+t;return e!=e||0===e?0:o(e)}},{"../internals/math-trunc":76}],103:[function(t,e,n){var o=t("../internals/to-integer-or-infinity"),r=Math.min;e.exports=function(t){return t>0?r(o(t),9007199254740991):0}},{"../internals/to-integer-or-infinity":102}],104:[function(t,e,n){var o=t("../internals/require-object-coercible"),r=Object;e.exports=function(t){return r(o(t))}},{"../internals/require-object-coercible":93}],105:[function(t,e,n){var o=t("../internals/to-positive-integer"),r=RangeError;e.exports=function(t,e){var n=o(t);if(n%e)throw r("Wrong offset");return n}},{"../internals/to-positive-integer":106}],106:[function(t,e,n){var o=t("../internals/to-integer-or-infinity"),r=RangeError;e.exports=function(t){var e=o(t);if(e<0)throw r("The argument can't be less than 0");return e}},{"../internals/to-integer-or-infinity":102}],107:[function(t,e,n){var o=t("../internals/function-call"),r=t("../internals/is-object"),i=t("../internals/is-symbol"),s=t("../internals/get-method"),a=t("../internals/ordinary-to-primitive"),l=t("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");e.exports=function(t,e){if(!r(t)||i(t))return t;var n,l=s(t,u);if(l){if(void 0===e&&(e="default"),n=o(l,t,e),!r(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},{"../internals/function-call":46,"../internals/get-method":52,"../internals/is-object":69,"../internals/is-symbol":71,"../internals/ordinary-to-primitive":91,"../internals/well-known-symbol":117}],108:[function(t,e,n){var o=t("../internals/to-primitive"),r=t("../internals/is-symbol");e.exports=function(t){var e=o(t,"string");return r(e)?e:e+""}},{"../internals/is-symbol":71,"../internals/to-primitive":107}],109:[function(t,e,n){var o={};o[t("../internals/well-known-symbol")("toStringTag")]="z",e.exports="[object z]"===String(o)},{"../internals/well-known-symbol":117}],110:[function(t,e,n){var o=String;e.exports=function(t){try{return o(t)}catch(t){return"Object"}}},{}],111:[function(t,e,n){"use strict";var o=t("../internals/export"),r=t("../internals/global"),i=t("../internals/function-call"),s=t("../internals/descriptors"),a=t("../internals/typed-array-constructors-require-wrappers"),l=t("../internals/array-buffer-view-core"),c=t("../internals/array-buffer"),u=t("../internals/an-instance"),d=t("../internals/create-property-descriptor"),f=t("../internals/create-non-enumerable-property"),p=t("../internals/is-integral-number"),h=t("../internals/to-length"),y=t("../internals/to-index"),v=t("../internals/to-offset"),g=t("../internals/to-property-key"),m=t("../internals/has-own-property"),b=t("../internals/classof"),w=t("../internals/is-object"),_=t("../internals/is-symbol"),x=t("../internals/object-create"),D=t("../internals/object-is-prototype-of"),k=t("../internals/object-set-prototype-of"),E=t("../internals/object-get-own-property-names").f,B=t("../internals/typed-array-from"),C=t("../internals/array-iteration").forEach,K=t("../internals/set-species"),O=t("../internals/object-define-property"),S=t("../internals/object-get-own-property-descriptor"),j=t("../internals/internal-state"),P=t("../internals/inherit-if-required"),T=j.get,M=j.set,A=j.enforce,I=O.f,L=S.f,N=Math.round,R=r.RangeError,F=c.ArrayBuffer,U=F.prototype,z=c.DataView,H=l.NATIVE_ARRAY_BUFFER_VIEWS,V=l.TYPED_ARRAY_TAG,G=l.TypedArray,Y=l.TypedArrayPrototype,W=l.aTypedArrayConstructor,X=l.isTypedArray,q="BYTES_PER_ELEMENT",$="Wrong length",J=function(t,e){W(t);for(var n=0,o=e.length,r=new t(o);o>n;)r[n]=e[n++];return r},Q=function(t,e){I(t,e,{get:function(){return T(this)[e]}})},Z=function(t){var e;return D(U,t)||"ArrayBuffer"==(e=b(t))||"SharedArrayBuffer"==e},tt=function(t,e){return X(t)&&!_(e)&&e in t&&p(+e)&&e>=0},et=function(t,e){return e=g(e),tt(t,e)?d(2,t[e]):L(t,e)},nt=function(t,e,n){return e=g(e),!(tt(t,e)&&w(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?I(t,e,n):(t[e]=n.value,t)};s?(H||(S.f=et,O.f=nt,Q(Y,"buffer"),Q(Y,"byteOffset"),Q(Y,"byteLength"),Q(Y,"length")),o({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:et,defineProperty:nt}),e.exports=function(t,e,n){var s=t.match(/\d+$/)[0]/8,l=t+(n?"Clamped":"")+"Array",c="get"+t,d="set"+t,p=r[l],g=p,m=g&&g.prototype,b={},_=function(t,e){I(t,e,{get:function(){return function(t,e){var n=T(t);return n.view[c](e*s+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,o){var r=T(t);n&&(o=(o=N(o))<0?0:o>255?255:255&o),r.view[d](e*s+r.byteOffset,o,!0)}(this,e,t)},enumerable:!0})};H?a&&(g=e((function(t,e,n,o){return u(t,m),P(w(e)?Z(e)?void 0!==o?new p(e,v(n,s),o):void 0!==n?new p(e,v(n,s)):new p(e):X(e)?J(g,e):i(B,g,e):new p(y(e)),t,g)})),k&&k(g,G),C(E(p),(function(t){t in g||f(g,t,p[t])})),g.prototype=m):(g=e((function(t,e,n,o){u(t,m);var r,a,l,c=0,d=0;if(w(e)){if(!Z(e))return X(e)?J(g,e):i(B,g,e);r=e,d=v(n,s);var f=e.byteLength;if(void 0===o){if(f%s)throw R($);if((a=f-d)<0)throw R($)}else if((a=h(o)*s)+d>f)throw R($);l=a/s}else l=y(e),r=new F(a=l*s);for(M(t,{buffer:r,byteOffset:d,byteLength:a,length:l,view:new z(r)});c<l;)_(t,c++)})),k&&k(g,G),m=g.prototype=x(Y)),m.constructor!==g&&f(m,"constructor",g),A(m).TypedArrayConstructor=g,V&&f(m,V,l);var D=g!=p;b[l]=g,o({global:!0,constructor:!0,forced:D,sham:!H},b),q in g||f(g,q,s),q in m||f(m,q,s),K(l)}):e.exports=function(){}},{"../internals/an-instance":7,"../internals/array-buffer":11,"../internals/array-buffer-view-core":10,"../internals/array-iteration":14,"../internals/classof":21,"../internals/create-non-enumerable-property":25,"../internals/create-property-descriptor":26,"../internals/descriptors":32,"../internals/export":42,"../internals/function-call":46,"../internals/global":53,"../internals/has-own-property":54,"../internals/inherit-if-required":60,"../internals/internal-state":62,"../internals/is-integral-number":68,"../internals/is-object":69,"../internals/is-symbol":71,"../internals/object-create":79,"../internals/object-define-property":81,"../internals/object-get-own-property-descriptor":82,"../internals/object-get-own-property-names":83,"../internals/object-is-prototype-of":86,"../internals/object-set-prototype-of":90,"../internals/set-species":94,"../internals/to-index":100,"../internals/to-length":103,"../internals/to-offset":105,"../internals/to-property-key":108,"../internals/typed-array-constructors-require-wrappers":112,"../internals/typed-array-from":113}],112:[function(t,e,n){var o=t("../internals/global"),r=t("../internals/fails"),i=t("../internals/check-correctness-of-iteration"),s=t("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,a=o.ArrayBuffer,l=o.Int8Array;e.exports=!s||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!i((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||r((function(){return 1!==new l(new a(2),1,void 0).length}))},{"../internals/array-buffer-view-core":10,"../internals/check-correctness-of-iteration":19,"../internals/fails":43,"../internals/global":53}],113:[function(t,e,n){var o=t("../internals/function-bind-context"),r=t("../internals/function-call"),i=t("../internals/a-constructor"),s=t("../internals/to-object"),a=t("../internals/length-of-array-like"),l=t("../internals/get-iterator"),c=t("../internals/get-iterator-method"),u=t("../internals/is-array-iterator-method"),d=t("../internals/array-buffer-view-core").aTypedArrayConstructor;e.exports=function(t){var e,n,f,p,h,y,v=i(this),g=s(t),m=arguments.length,b=m>1?arguments[1]:void 0,w=void 0!==b,_=c(g);if(_&&!u(_))for(y=(h=l(g,_)).next,g=[];!(p=r(y,h)).done;)g.push(p.value);for(w&&m>2&&(b=o(b,arguments[2])),n=a(g),f=new(d(v))(n),e=0;n>e;e++)f[e]=w?b(g[e],e):g[e];return f}},{"../internals/a-constructor":4,"../internals/array-buffer-view-core":10,"../internals/function-bind-context":44,"../internals/function-call":46,"../internals/get-iterator":51,"../internals/get-iterator-method":50,"../internals/is-array-iterator-method":63,"../internals/length-of-array-like":74,"../internals/to-object":104}],114:[function(t,e,n){var o=t("../internals/function-uncurry-this"),r=0,i=Math.random(),s=o(1..toString);e.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+i,36)}},{"../internals/function-uncurry-this":48}],115:[function(t,e,n){var o=t("../internals/native-symbol");e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/native-symbol":77}],116:[function(t,e,n){var o=t("../internals/descriptors"),r=t("../internals/fails");e.exports=o&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":32,"../internals/fails":43}],117:[function(t,e,n){var o=t("../internals/global"),r=t("../internals/shared"),i=t("../internals/has-own-property"),s=t("../internals/uid"),a=t("../internals/native-symbol"),l=t("../internals/use-symbol-as-uid"),c=r("wks"),u=o.Symbol,d=u&&u.for,f=l?u:u&&u.withoutSetter||s;e.exports=function(t){if(!i(c,t)||!a&&"string"!=typeof c[t]){var e="Symbol."+t;a&&i(u,t)?c[t]=u[t]:c[t]=l&&d?d(e):f(e)}return c[t]}},{"../internals/global":53,"../internals/has-own-property":54,"../internals/native-symbol":77,"../internals/shared":98,"../internals/uid":114,"../internals/use-symbol-as-uid":115}],118:[function(t,e,n){"use strict";var o=t("../internals/to-indexed-object"),r=t("../internals/add-to-unscopables"),i=t("../internals/iterators"),s=t("../internals/internal-state"),a=t("../internals/object-define-property").f,l=t("../internals/define-iterator"),c=t("../internals/is-pure"),u=t("../internals/descriptors"),d="Array Iterator",f=s.set,p=s.getterFor(d);e.exports=l(Array,"Array",(function(t,e){f(this,{type:d,target:o(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.kind,o=t.index++;return!e||o>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:e[o],done:!1}:{value:[o,e[o]],done:!1}}),"values");var h=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!c&&u&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(t){}},{"../internals/add-to-unscopables":6,"../internals/define-iterator":31,"../internals/descriptors":32,"../internals/internal-state":62,"../internals/is-pure":70,"../internals/iterators":73,"../internals/object-define-property":81,"../internals/to-indexed-object":101}],119:[function(t,e,n){t("../internals/typed-array-constructor")("Float32",(function(t){return function(e,n,o){return t(this,e,n,o)}}))},{"../internals/typed-array-constructor":111}],120:[function(t,e,n){"use strict";var o=t("../internals/global"),r=t("../internals/function-call"),i=t("../internals/array-buffer-view-core"),s=t("../internals/length-of-array-like"),a=t("../internals/to-offset"),l=t("../internals/to-object"),c=t("../internals/fails"),u=o.RangeError,d=o.Int8Array,f=d&&d.prototype,p=f&&f.set,h=i.aTypedArray,y=i.exportTypedArrayMethod,v=!c((function(){var t=new Uint8ClampedArray(2);return r(p,t,{length:1,0:3},1),3!==t[1]})),g=v&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new d(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));y("set",(function(t){h(this);var e=a(arguments.length>1?arguments[1]:void 0,1),n=l(t);if(v)return r(p,this,n,e);var o=this.length,i=s(n),c=0;if(i+e>o)throw u("Wrong length");for(;c<i;)this[e+c]=n[c++]}),!v||g)},{"../internals/array-buffer-view-core":10,"../internals/fails":43,"../internals/function-call":46,"../internals/global":53,"../internals/length-of-array-like":74,"../internals/to-object":104,"../internals/to-offset":105}],121:[function(t,e,n){"use strict";var o=t("../internals/global"),r=t("../internals/function-uncurry-this"),i=t("../internals/fails"),s=t("../internals/a-callable"),a=t("../internals/array-sort"),l=t("../internals/array-buffer-view-core"),c=t("../internals/engine-ff-version"),u=t("../internals/engine-is-ie-or-edge"),d=t("../internals/engine-v8-version"),f=t("../internals/engine-webkit-version"),p=l.aTypedArray,h=l.exportTypedArrayMethod,y=o.Uint16Array,v=y&&r(y.prototype.sort),g=!(!v||i((function(){v(new y(2),null)}))&&i((function(){v(new y(2),{})}))),m=!!v&&!i((function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(f)return f<602;var t,e,n=new y(516),o=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,o[t]=t-2*e+3;for(v(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==o[t])return!0}));h("sort",(function(t){return void 0!==t&&s(t),m?v(this,t):a(p(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!m||g)},{"../internals/a-callable":3,"../internals/array-buffer-view-core":10,"../internals/array-sort":16,"../internals/engine-ff-version":36,"../internals/engine-is-ie-or-edge":37,"../internals/engine-v8-version":39,"../internals/engine-webkit-version":40,"../internals/fails":43,"../internals/function-uncurry-this":48,"../internals/global":53}],122:[function(t,e,n){t("../internals/typed-array-constructor")("Uint8",(function(t){return function(e,n,o){return t(this,e,n,o)}}))},{"../internals/typed-array-constructor":111}],123:[function(t,e,n){t("../internals/typed-array-constructor")("Uint8",(function(t){return function(e,n,o){return t(this,e,n,o)}}),!0)},{"../internals/typed-array-constructor":111}],124:[function(t,e,n){var o=t("../internals/global"),r=t("../internals/dom-iterables"),i=t("../internals/dom-token-list-prototype"),s=t("../modules/es.array.iterator"),a=t("../internals/create-non-enumerable-property"),l=t("../internals/well-known-symbol"),c=l("iterator"),u=l("toStringTag"),d=s.values,f=function(t,e){if(t){if(t[c]!==d)try{a(t,c,d)}catch(e){t[c]=d}if(t[u]||a(t,u,e),r[e])for(var n in s)if(t[n]!==s[n])try{a(t,n,s[n])}catch(e){t[n]=s[n]}}};for(var p in r)f(o[p]&&o[p].prototype,p);f(i,"DOMTokenList")},{"../internals/create-non-enumerable-property":25,"../internals/dom-iterables":34,"../internals/dom-token-list-prototype":35,"../internals/global":53,"../internals/well-known-symbol":117,"../modules/es.array.iterator":118}],125:[function(t,e,n){"use strict";var o=e.exports={};o.isIE=function(t){return(-1!==(e=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/"))&&(!t||t===function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:undefined}());var e},o.isLegacyOpera=function(){return!!window.opera}},{}],126:[function(t,e,n){"use strict";(e.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var o=e(t[n]);if(o)return o}}},{}],127:[function(t,e,n){"use strict";var o=t("../browser-detector");e.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function i(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function s(t){return r(t).object}return{makeDetectable:function(t,s,a){a||(a=s,s=t,t=null),(t=t||{}).debug,o.isIE(8)?a(s):function(s,a){var l=i(["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"]),c=!1,u=window.getComputedStyle(s),d=s.offsetWidth,f=s.offsetHeight;function p(){function n(){if("static"===u.position){s.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,o,r){var i=o[r];"auto"!==i&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(i)&&(e.warn("An element that is positioned static has style."+r+"="+i+" 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: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,s,u,"top"),n(e,s,u,"right"),n(e,s,u,"bottom"),n(e,s,u,"left")}}""!==u.position&&(n(),c=!0);var i=document.createElement("object");i.style.cssText=l,i.tabIndex=-1,i.type="text/html",i.setAttribute("aria-hidden","true"),i.onload=function(){c||n(),function t(e,n){if(!e.contentDocument){var o=r(e);return o.checkForObjectDocumentTimeoutId&&window.clearTimeout(o.checkForObjectDocumentTimeoutId),void(o.checkForObjectDocumentTimeoutId=setTimeout((function(){o.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}(this,(function(t){a(s)}))},o.isIE()||(i.data="about:blank"),r(s)&&(s.appendChild(i),r(s).object=i,o.isIE()&&(i.data="about:blank"))}r(s).startSize={width:d,height:f},n?n.add(p):p()}(s,a)},addListener:function(t,e){function n(){e(t)}if(o.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var i=s(t);if(!i)throw new Error("Element is not detectable by this strategy.");i.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(r(t)){var e=s(t);e&&(o.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}}}},{"../browser-detector":125}],128:[function(t,e,n){"use strict";var o=t("../collection-utils").forEach;e.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,r=t.stateHandler.getState,i=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var s=function(){var t=500,e=500,n=document.createElement("div");n.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var o=document.createElement("div");o.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),o.appendChild(n),document.body.insertBefore(o,document.body.firstChild);var r=t-o.clientWidth,i=e-o.clientHeight;return document.body.removeChild(o),{width:r,height:i}}(),a="erd_scroll_detection_container";function l(t){!function(t,e,n){function o(n,o){o=o||function(e){t.head.appendChild(e)};var r=t.createElement("style");return r.innerHTML=n,r.id=e,o(r),r}if(!t.getElementById(e)){var r=n+"_animation",i=n+"_animation_active",s="/* Created by the element-resize-detector library. */\n";s+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",s+="."+i+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",s+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",o(s+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style",a)}function c(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function u(t,n,o){if(t.addEventListener)t.addEventListener(n,o);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,o)}}function d(t,n,o){if(t.removeEventListener)t.removeEventListener(n,o);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,o)}}function f(t){return r(t).container.childNodes[0].childNodes[0].childNodes[0]}function p(t){return r(t).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(t,l,d){function h(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(l),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var o=0;o<n.length;o++)e.log(n[o])}}function y(t){var e=r(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function v(){var t=window.getComputedStyle(l),e={};return e.position=t.position,e.width=l.offsetWidth,e.height=l.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function g(){if(h("storeStyle invoked."),r(l)){var t=v();r(l).style=t}else h("Aborting because element has been uninstalled")}function m(t,e,n){r(t).lastWidth=e,r(t).lastHeight=n}function b(){return 2*s.width+1}function w(){return 2*s.height+1}function _(t){return t+10+b()}function x(t){return t+10+w()}function D(t,e,n){var o=f(t),r=p(t),i=_(e),s=x(n),a=function(t){return 2*t+b()}(e),l=function(t){return 2*t+w()}(n);o.scrollLeft=i,o.scrollTop=s,r.scrollLeft=a,r.scrollTop=l}function k(){var t=r(l).container;if(!t){(t=document.createElement("div")).className=a,t.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(l).container=t,function(t){t.className+=" "+a+"_animation_active"}(t),l.appendChild(t);var e=function(){r(l).onRendered&&r(l).onRendered()};u(t,"animationstart",e),r(l).onAnimationStart=e}return t}function E(){if(h("Injecting elements"),r(l)){!function(){var n=r(l).style;if("static"===n.position){l.style.setProperty("position","relative",t.important?"important":"");var o=function(t,e,n,o){var r=n[o];"auto"!==r&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(r)&&(t.warn("An element that is positioned static has style."+o+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",e),e.style[o]=0)};o(e,l,n,"top"),o(e,l,n,"right"),o(e,l,n,"bottom"),o(e,l,n,"left")}}();var n=r(l).container;n||(n=k());var o,i,d,f,p=s.width,y=s.height,v=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),g=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(o=(o=-(1+p))?o+"px":"0"),"top: "+(i=(i=-(1+y))?i+"px":"0"),"right: "+(f=(f=-p)?f+"px":"0"),"bottom: "+(d=(d=-y)?d+"px":"0")])),m=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=c(["position: absolute","left: 0","top: 0"]),_=c(["position: absolute","width: 200%","height: 200%"]),x=document.createElement("div"),D=document.createElement("div"),E=document.createElement("div"),B=document.createElement("div"),C=document.createElement("div"),K=document.createElement("div");x.dir="ltr",x.style.cssText=v,x.className=a,D.className=a,D.style.cssText=g,E.style.cssText=m,B.style.cssText=w,C.style.cssText=b,K.style.cssText=_,E.appendChild(B),C.appendChild(K),D.appendChild(E),D.appendChild(C),x.appendChild(D),n.appendChild(x),u(E,"scroll",O),u(C,"scroll",S),r(l).onExpandScroll=O,r(l).onShrinkScroll=S}else h("Aborting because element has been uninstalled");function O(){var t=r(l);t&&t.onExpand?t.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function S(){var t=r(l);t&&t.onShrink?t.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}}function B(){function s(e,n,o){var r=function(t){return f(t).childNodes[0]}(e),i=_(n),s=x(o);r.style.setProperty("width",i+"px",t.important?"important":""),r.style.setProperty("height",s+"px",t.important?"important":"")}function a(o){var a=l.offsetWidth,u=l.offsetHeight,d=a!==r(l).lastWidth||u!==r(l).lastHeight;h("Storing current size",a,u),m(l,a,u),n.add(0,(function(){if(d)if(r(l))if(c()){if(t.debug){var n=l.offsetWidth,o=l.offsetHeight;n===a&&o===u||e.warn(i.get(l),"Scroll: Size changed before updating detector elements.")}s(l,a,u)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){r(l)?c()?D(l,a,u):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),d&&o&&n.add(2,(function(){r(l)?c()?o():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function c(){return!!r(l).container}function u(){h("notifyListenersIfNeeded invoked");var t=r(l);return void 0===r(l).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void o(r(l).listeners,(function(t){t(l)})))}function d(){h("Scroll detected."),y(l)?h("Scroll event fired while unrendered. Ignoring..."):a(u)}if(h("registerListenersAndPositionElements invoked."),r(l)){r(l).onRendered=function(){if(h("startanimation triggered."),y(l))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var t=f(l),e=p(l);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),a(u))}},r(l).onExpand=d,r(l).onShrink=d;var v=r(l).style;s(l,v.width,v.height)}else h("Aborting because element has been uninstalled")}function C(){if(h("finalizeDomMutation invoked."),r(l)){var t=r(l).style;m(l,t.width,t.height),D(l,t.width,t.height)}else h("Aborting because element has been uninstalled")}function K(){d(l)}function O(){var t;h("Installing..."),r(l).listeners=[],t=v(),r(l).startSize={width:t.width,height:t.height},h("Element start size",r(l).startSize),n.add(0,g),n.add(1,E),n.add(2,B),n.add(3,C),n.add(4,K)}d||(d=l,l=t,t=null),t=t||{},h("Making detectable..."),!function(t){return!function(t){var e=t.getRootNode&&t.getRootNode().contains(t);return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)||e}(t)||null===window.getComputedStyle(t)}(l)?O():(h("Element is detached"),k(),h("Waiting until element is attached..."),r(l).onRendered=function(){h("Element is now attached"),O()})},addListener:function(t,e){if(!r(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");r(t).listeners.push(e)},uninstall:function(t){var e=r(t);e&&(e.onExpandScroll&&d(f(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&d(p(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&d(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:l}}},{"../collection-utils":126}],129:[function(t,e,n){"use strict";var o=t("./collection-utils").forEach,r=t("./element-utils"),i=t("./listener-handler"),s=t("./id-generator"),a=t("./id-handler"),l=t("./reporter"),c=t("./browser-detector"),u=t("batch-processor"),d=t("./state-handler"),f=t("./detection-strategy/object.js"),p=t("./detection-strategy/scroll.js");function h(t){return Array.isArray(t)||void 0!==t.length}function y(t){if(Array.isArray(t))return t;var e=[];return o(t,(function(t){e.push(t)})),e}function v(t){return t&&1===t.nodeType}function g(t,e,n){var o=t[e];return null==o&&void 0!==n?n:o}e.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=s(),m=a({idGenerator:n,stateHandler:d});e=m}var b=t.reporter;b||(b=l(!1===b));var w=g(t,"batchProcessor",u({reporter:b})),_={};_.callOnAdd=!!g(t,"callOnAdd",!0),_.debug=!!g(t,"debug",!1);var x,D=i(e),k=r({stateHandler:d}),E=g(t,"strategy","object"),B=g(t,"important",!1),C={reporter:b,batchProcessor:w,stateHandler:d,idHandler:e,important:B};if("scroll"===E&&(c.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),E="object"):c.isIE(9)&&(b.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=f(C)}var K={};return{listenTo:function(t,n,r){function i(t){var e=D.get(t);o(e,(function(e){e(t)}))}function s(t,e,n){D.add(e,n),t&&n(e)}if(r||(r=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(v(n))n=[n];else{if(!h(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=y(n)}var a=0,l=g(t,"callOnAdd",_.callOnAdd),c=g(t,"onReady",(function(){})),u=g(t,"debug",_.debug);o(n,(function(t){d.getState(t)||(d.initState(t),e.set(t));var f=e.get(t);if(u&&b.log("Attaching listener to element",f,t),!k.isDetectable(t))return u&&b.log(f,"Not detectable."),k.isBusy(t)?(u&&b.log(f,"System busy making it detectable"),s(l,t,r),K[f]=K[f]||[],void K[f].push((function(){++a===n.length&&c()}))):(u&&b.log(f,"Making detectable..."),k.markBusy(t,!0),x.makeDetectable({debug:u,important:B},t,(function(t){if(u&&b.log(f,"onElementDetectable"),d.getState(t)){k.markAsDetectable(t),k.markBusy(t,!1),x.addListener(t,i),s(l,t,r);var e=d.getState(t);if(e&&e.startSize){var p=t.offsetWidth,h=t.offsetHeight;e.startSize.width===p&&e.startSize.height===h||i(t)}K[f]&&o(K[f],(function(t){t()}))}else u&&b.log(f,"Element uninstalled before being detectable.");delete K[f],++a===n.length&&c()})));u&&b.log(f,"Already detecable, adding listener."),s(l,t,r),a++})),a===n.length&&c()},removeListener:D.removeListener,removeAllListeners:D.removeAllListeners,uninstall:function(t){if(!t)return b.error("At least one element is required.");if(v(t))t=[t];else{if(!h(t))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=y(t)}o(t,(function(t){D.removeAllListeners(t),x.uninstall(t),d.cleanState(t)}))},initDocument:function(t){x.initDocument&&x.initDocument(t)}}}},{"./browser-detector":125,"./collection-utils":126,"./detection-strategy/object.js":127,"./detection-strategy/scroll.js":128,"./element-utils":130,"./id-generator":131,"./id-handler":132,"./listener-handler":133,"./reporter":134,"./state-handler":135,"batch-processor":1}],130:[function(t,e,n){"use strict";e.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},{}],131:[function(t,e,n){"use strict";e.exports=function(){var t=1;return{generate:function(){return t++}}}},{}],132:[function(t,e,n){"use strict";e.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var o=n(t);if(!o)throw new Error("setId required the element to have a resize detection state.");var r=e.generate();return o.id=r,r}}}},{}],133:[function(t,e,n){"use strict";e.exports=function(t){var e={};function n(n){var o=t.get(n);return void 0===o?[]:e[o]||[]}return{get:n,add:function(n,o){var r=t.get(n);e[r]||(e[r]=[]),e[r].push(o)},removeListener:function(t,e){for(var o=n(t),r=0,i=o.length;r<i;++r)if(o[r]===e){o.splice(r,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},{}],134:[function(t,e,n){"use strict";e.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var o=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};o(n,"log"),o(n,"warn"),o(n,"error")}return n}},{}],135:[function(t,e,n){"use strict";function o(t){return t._erd}e.exports={initState:function(t){return t._erd={},o(t)},getState:o,cleanState:function(t){delete t._erd}}},{}],136:[function(t,e,n){var o,r;o=window,r=function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e);var o,r=function(t,e){var n=e.x-t.x,o=e.y-t.y;return Math.sqrt(n*n+o*o)},i=function(t){return t*(Math.PI/180)},s=new Map,a=function(t){s.has(t)&&clearTimeout(s.get(t)),s.set(t,setTimeout(t,100))},l=function(t,e,n){for(var o,r=e.split(/[ ,]+/g),i=0;i<r.length;i+=1)o=r[i],t.addEventListener?t.addEventListener(o,n,!1):t.attachEvent&&t.attachEvent(o,n)},c=function(t,e,n){for(var o,r=e.split(/[ ,]+/g),i=0;i<r.length;i+=1)o=r[i],t.removeEventListener?t.removeEventListener(o,n):t.detachEvent&&t.detachEvent(o,n)},u=function(t){return t.preventDefault(),t.type.match(/^touch/)?t.changedTouches:t},d=function(){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}},f=function(t,e){e.top||e.right||e.bottom||e.left?(t.style.top=e.top,t.style.right=e.right,t.style.bottom=e.bottom,t.style.left=e.left):(t.style.left=e.x+"px",t.style.top=e.y+"px")},p=function(t,e,n){var o=h(t);for(var r in o)if(o.hasOwnProperty(r))if("string"==typeof e)o[r]=e+" "+n;else{for(var i="",s=0,a=e.length;s<a;s+=1)i+=e[s]+" "+n+", ";o[r]=i.slice(0,-2)}return o},h=function(t){var e={};return e[t]="",["webkit","Moz","o"].forEach((function(n){e[n+t.charAt(0).toUpperCase()+t.slice(1)]=""})),e},y=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},v=function(t,e){if(t.length)for(var n=0,o=t.length;n<o;n+=1)e(t[n]);else e(t)},g=!!("ontouchstart"in window),m=!!window.PointerEvent,b=!!window.MSPointerEvent,w={start:"mousedown",move:"mousemove",end:"mouseup"},_={};function x(){}m?o={start:"pointerdown",move:"pointermove",end:"pointerup, pointercancel"}:b?o={start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:g?(o={start:"touchstart",move:"touchmove",end:"touchend, touchcancel"},_=w):o=w,x.prototype.on=function(t,e){var n,o=t.split(/[ ,]+/g);this._handlers_=this._handlers_||{};for(var r=0;r<o.length;r+=1)n=o[r],this._handlers_[n]=this._handlers_[n]||[],this._handlers_[n].push(e);return this},x.prototype.off=function(t,e){return this._handlers_=this._handlers_||{},void 0===t?this._handlers_={}:void 0===e?this._handlers_[t]=null:this._handlers_[t]&&this._handlers_[t].indexOf(e)>=0&&this._handlers_[t].splice(this._handlers_[t].indexOf(e),1),this},x.prototype.trigger=function(t,e){var n,o=this,r=t.split(/[ ,]+/g);o._handlers_=o._handlers_||{};for(var i=0;i<r.length;i+=1)n=r[i],o._handlers_[n]&&o._handlers_[n].length&&o._handlers_[n].forEach((function(t){t.call(o,{type:n,target:o},e)}))},x.prototype.config=function(t){this.options=this.defaults||{},t&&(this.options=function(t,e){var n={};for(var o in t)t.hasOwnProperty(o)&&e.hasOwnProperty(o)?n[o]=e[o]:t.hasOwnProperty(o)&&(n[o]=t[o]);return n}(this.options,t))},x.prototype.bindEvt=function(t,e){var n=this;return n._domHandlers_=n._domHandlers_||{},n._domHandlers_[e]=function(){"function"==typeof n["on"+e]?n["on"+e].apply(n,arguments):console.warn('[WARNING] : Missing "on'+e+'" handler.')},l(t,o[e],n._domHandlers_[e]),_[e]&&l(t,_[e],n._domHandlers_[e]),n},x.prototype.unbindEvt=function(t,e){return this._domHandlers_=this._domHandlers_||{},c(t,o[e],this._domHandlers_[e]),_[e]&&c(t,_[e],this._domHandlers_[e]),delete this._domHandlers_[e],this};var D=x;function k(t,e){return this.identifier=e.identifier,this.position=e.position,this.frontPosition=e.frontPosition,this.collection=t,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(e),"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 D,k.constructor=k,k.id=0,k.prototype.buildEl=function(t){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 t=this.options.fadeTime+"ms",e=function(t,e){var n=h("borderRadius");for(var o in n)n.hasOwnProperty(o)&&(n[o]="50%");return n}(),n=p("transition","opacity",t),o={};return o.el={position:"absolute",opacity:this.options.restOpacity,display:"block",zIndex:999},o.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"},o.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"},y(o.el,n),"circle"===this.options.shape&&y(o.back,e),y(o.front,e),this.applyStyles(o),this},k.prototype.applyStyles=function(t){for(var e in this.ui)if(this.ui.hasOwnProperty(e))for(var n in t[e])this.ui[e].style[n]=t[e][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(t){var e=this;return e.options.dataOnly||(clearTimeout(e.removeTimeout),clearTimeout(e.showTimeout),clearTimeout(e.restTimeout),e.addToDom(),e.restCallback(),setTimeout((function(){e.ui.el.style.opacity=1}),0),e.showTimeout=setTimeout((function(){e.trigger("shown",e.instance),"function"==typeof t&&t.call(this)}),e.options.fadeTime)),e},k.prototype.hide=function(t){var e=this;if(e.options.dataOnly)return e;if(e.ui.el.style.opacity=e.options.restOpacity,clearTimeout(e.removeTimeout),clearTimeout(e.showTimeout),clearTimeout(e.restTimeout),e.removeTimeout=setTimeout((function(){var n="dynamic"===e.options.mode?"none":"block";e.ui.el.style.display=n,"function"==typeof t&&t.call(e),e.trigger("hidden",e.instance)}),e.options.fadeTime),e.options.restJoystick){var n=e.options.restJoystick,o={};o.x=!0===n||!1!==n.x?0:e.instance.frontPosition.x,o.y=!0===n||!1!==n.y?0:e.instance.frontPosition.y,e.setPosition(t,o)}return e},k.prototype.setPosition=function(t,e){var n=this;n.frontPosition={x:e.x,y:e.y};var o=n.options.fadeTime+"ms",r={};r.front=p("transition",["top","left"],o);var i={front:{}};i.front={left:n.frontPosition.x+"px",top:n.frontPosition.y+"px"},n.applyStyles(r),n.applyStyles(i),n.restTimeout=setTimeout((function(){"function"==typeof t&&t.call(n),n.restCallback()}),n.options.fadeTime)},k.prototype.restCallback=function(){var t={};t.front=p("transition","none",""),this.applyStyles(t),this.trigger("rested",this.instance)},k.prototype.resetDirection=function(){this.direction={x:!1,y:!1,angle:!1}},k.prototype.computeDirection=function(t){var e,n,o,r=t.angle.radian,i=Math.PI/4,s=Math.PI/2;if(r>i&&r<3*i&&!t.lockX?e="up":r>-i&&r<=i&&!t.lockY?e="left":r>3*-i&&r<=-i&&!t.lockX?e="down":t.lockY||(e="right"),t.lockY||(n=r>-s&&r<s?"left":"right"),t.lockX||(o=r>0?"up":"down"),t.force>this.options.threshold){var a,l={};for(a in this.direction)this.direction.hasOwnProperty(a)&&(l[a]=this.direction[a]);var c={};for(a in this.direction={x:n,y:o,angle:e},t.direction=this.direction,l)l[a]===this.direction[a]&&(c[a]=!0);if(c.x&&c.y&&c.angle)return t;c.x&&c.y||this.trigger("plain",t),c.x||this.trigger("plain:"+n,t),c.y||this.trigger("plain:"+o,t),c.angle||this.trigger("dir dir:"+e,t)}else this.resetDirection();return t};var E=k;function B(t,e){this.nipples=[],this.idles=[],this.actives=[],this.ids=[],this.pressureIntervals={},this.manager=t,this.id=B.id,B.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(e),"static"!==this.options.mode&&"semi"!==this.options.mode||(this.options.multitouch=!1),this.options.multitouch||(this.options.maxNumberOfNipples=1);var n=getComputedStyle(this.options.zone.parentElement);return n&&"flex"===n.display&&(this.parentIsFlex=!0),this.updateBox(),this.prepareNipples(),this.bindings(),this.begin(),this.nipples}B.prototype=new D,B.constructor=B,B.id=0,B.prototype.prepareNipples=function(){var t=this.nipples;t.on=this.on.bind(this),t.off=this.off.bind(this),t.options=this.options,t.destroy=this.destroy.bind(this),t.ids=this.ids,t.id=this.id,t.processOnMove=this.processOnMove.bind(this),t.processOnEnd=this.processOnEnd.bind(this),t.get=function(e){if(void 0===e)return t[0];for(var n=0,o=t.length;n<o;n+=1)if(t[n].identifier===e)return t[n];return!1}},B.prototype.bindings=function(){this.bindEvt(this.options.zone,"start"),this.options.zone.style.touchAction="none",this.options.zone.style.msTouchAction="none"},B.prototype.begin=function(){var t=this.options;if("static"===t.mode){var e=this.createNipple(t.position,this.manager.getIdentifier());e.add(),this.idles.push(e)}},B.prototype.createNipple=function(t,e){var n=this.manager.scroll,o={},r=this.options,i=this.parentIsFlex?n.x:n.x+this.box.left,s=this.parentIsFlex?n.y:n.y+this.box.top;if(t.x&&t.y)o={x:t.x-i,y:t.y-s};else if(t.top||t.right||t.bottom||t.left){var a=document.createElement("DIV");a.style.display="hidden",a.style.top=t.top,a.style.right=t.right,a.style.bottom=t.bottom,a.style.left=t.left,a.style.position="absolute",r.zone.appendChild(a);var l=a.getBoundingClientRect();r.zone.removeChild(a),o=t,t={x:l.left+n.x,y:l.top+n.y}}var c=new E(this,{color:r.color,size:r.size,threshold:r.threshold,fadeTime:r.fadeTime,dataOnly:r.dataOnly,restJoystick:r.restJoystick,restOpacity:r.restOpacity,mode:r.mode,identifier:e,position:t,zone:r.zone,frontPosition:{x:0,y:0},shape:r.shape});return r.dataOnly||(f(c.ui.el,o),f(c.ui.front,c.frontPosition)),this.nipples.push(c),this.trigger("added "+c.identifier+":added",c),this.manager.trigger("added "+c.identifier+":added",c),this.bindNipple(c),c},B.prototype.updateBox=function(){this.box=this.options.zone.getBoundingClientRect()},B.prototype.bindNipple=function(t){var e,n=this,o=function(t,o){e=t.type+" "+o.id+":"+t.type,n.trigger(e,o)};t.on("destroyed",n.onDestroyed.bind(n)),t.on("shown hidden rested dir plain",o),t.on("dir:up dir:right dir:down dir:left",o),t.on("plain:up plain:right plain:down plain:left",o)},B.prototype.pressureFn=function(t,e,n){var o=this,r=0;clearInterval(o.pressureIntervals[n]),o.pressureIntervals[n]=setInterval(function(){var n=t.force||t.pressure||t.webkitForce||0;n!==r&&(e.trigger("pressure",n),o.trigger("pressure "+e.identifier+":pressure",n),r=n)}.bind(o),100)},B.prototype.onstart=function(t){var e=this,n=e.options,o=t;return t=u(t),e.updateBox(),v(t,(function(r){e.actives.length<n.maxNumberOfNipples?e.processOnStart(r):o.type.match(/^touch/)&&(Object.keys(e.manager.ids).forEach((function(n){if(Object.values(o.touches).findIndex((function(t){return t.identifier===n}))<0){var r=[t[0]];r.identifier=n,e.processOnEnd(r)}})),e.actives.length<n.maxNumberOfNipples&&e.processOnStart(r))})),e.manager.bindDocument(),!1},B.prototype.processOnStart=function(t){var e,n=this,o=n.options,i=n.manager.getIdentifier(t),s=t.force||t.pressure||t.webkitForce||0,a={x:t.pageX,y:t.pageY},l=n.getOrCreate(i,a);l.identifier!==i&&n.manager.removeIdentifier(l.identifier),l.identifier=i;var c=function(e){e.trigger("start",e),n.trigger("start "+e.id+":start",e),e.show(),s>0&&n.pressureFn(t,e,e.identifier),n.processOnMove(t)};if((e=n.idles.indexOf(l))>=0&&n.idles.splice(e,1),n.actives.push(l),n.ids.push(l.identifier),"semi"!==o.mode)c(l);else{if(!(r(a,l.position)<=o.catchDistance))return l.destroy(),void n.processOnStart(t);c(l)}return l},B.prototype.getOrCreate=function(t,e){var n,o=this.options;return/(semi|static)/.test(o.mode)?(n=this.idles[0])?(this.idles.splice(0,1),n):"semi"===o.mode?this.createNipple(e,t):(console.warn("Coudln't find the needed nipple."),!1):n=this.createNipple(e,t)},B.prototype.processOnMove=function(t){var e=this.options,n=this.manager.getIdentifier(t),o=this.nipples.get(n),s=this.manager.scroll;if(function(t){return isNaN(t.buttons)?0!==t.pressure:0!==t.buttons}(t)){if(!o)return console.error("Found zombie joystick with ID "+n),void this.manager.removeIdentifier(n);if(e.dynamicPage){var a=o.el.getBoundingClientRect();o.position={x:s.x+a.left,y:s.y+a.top}}o.identifier=n;var l=o.options.size/2,c={x:t.pageX,y:t.pageY};e.lockX&&(c.y=o.position.y),e.lockY&&(c.x=o.position.x);var u,d,p,h,y,v,g,m,b,w,_=r(c,o.position),x=(u=c,p=(d=o.position).x-u.x,h=d.y-u.y,function(t){return t*(180/Math.PI)}(Math.atan2(h,p))),D=i(x),k=_/l,E={distance:_,position:c};if("circle"===o.options.shape?(y=Math.min(_,l),g=o.position,m=y,w={x:0,y:0},b=i(b=x),w.x=g.x-m*Math.cos(b),w.y=g.y-m*Math.sin(b),v=w):(v=function(t,e,n){return{x:Math.min(Math.max(t.x,e.x-n),e.x+n),y:Math.min(Math.max(t.y,e.y-n),e.y+n)}}(c,o.position,l),y=r(v,o.position)),e.follow){if(_>l){var B=c.x-v.x,C=c.y-v.y;o.position.x+=B,o.position.y+=C,o.el.style.top=o.position.y-(this.box.top+s.y)+"px",o.el.style.left=o.position.x-(this.box.left+s.x)+"px",_=r(c,o.position)}}else c=v,_=y;var K=c.x-o.position.x,O=c.y-o.position.y;o.frontPosition={x:K,y:O},e.dataOnly||f(o.ui.front,o.frontPosition);var S={identifier:o.identifier,position:c,force:k,pressure:t.force||t.pressure||t.webkitForce||0,distance:_,angle:{radian:D,degree:x},vector:{x:K/l,y:-O/l},raw:E,instance:o,lockX:e.lockX,lockY:e.lockY};(S=o.computeDirection(S)).angle={radian:i(180-x),degree:180-x},o.trigger("move",S),this.trigger("move "+o.id+":move",S)}else this.processOnEnd(t)},B.prototype.processOnEnd=function(t){var e=this,n=e.options,o=e.manager.getIdentifier(t),r=e.nipples.get(o),i=e.manager.removeIdentifier(r.identifier);r&&(n.dataOnly||r.hide((function(){"dynamic"===n.mode&&(r.trigger("removed",r),e.trigger("removed "+r.id+":removed",r),e.manager.trigger("removed "+r.id+":removed",r),r.destroy())})),clearInterval(e.pressureIntervals[r.identifier]),r.resetDirection(),r.trigger("end",r),e.trigger("end "+r.id+":end",r),e.ids.indexOf(r.identifier)>=0&&e.ids.splice(e.ids.indexOf(r.identifier),1),e.actives.indexOf(r)>=0&&e.actives.splice(e.actives.indexOf(r),1),/(semi|static)/.test(n.mode)?e.idles.push(r):e.nipples.indexOf(r)>=0&&e.nipples.splice(e.nipples.indexOf(r),1),e.manager.unbindDocument(),/(semi|static)/.test(n.mode)&&(e.manager.ids[i.id]=i.identifier))},B.prototype.onDestroyed=function(t,e){this.nipples.indexOf(e)>=0&&this.nipples.splice(this.nipples.indexOf(e),1),this.actives.indexOf(e)>=0&&this.actives.splice(this.actives.indexOf(e),1),this.idles.indexOf(e)>=0&&this.idles.splice(this.idles.indexOf(e),1),this.ids.indexOf(e.identifier)>=0&&this.ids.splice(this.ids.indexOf(e.identifier),1),this.manager.removeIdentifier(e.identifier),this.manager.unbindDocument()},B.prototype.destroy=function(){for(var t in this.unbindEvt(this.options.zone,"start"),this.nipples.forEach((function(t){t.destroy()})),this.pressureIntervals)this.pressureIntervals.hasOwnProperty(t)&&clearInterval(this.pressureIntervals[t]);this.trigger("destroyed",this.nipples),this.manager.unbindDocument(),this.off()};var C=B;function K(t){var e=this;e.ids={},e.index=0,e.collections=[],e.scroll=d(),e.config(t),e.prepareCollections();var n=function(){var t;e.collections.forEach((function(n){n.forEach((function(n){t=n.el.getBoundingClientRect(),n.position={x:e.scroll.x+t.left,y:e.scroll.y+t.top}}))}))};l(window,"resize",(function(){a(n)}));var o=function(){e.scroll=d()};return l(window,"scroll",(function(){a(o)})),e.collections}K.prototype=new D,K.constructor=K,K.prototype.prepareCollections=function(){var t=this;t.collections.create=t.create.bind(t),t.collections.on=t.on.bind(t),t.collections.off=t.off.bind(t),t.collections.destroy=t.destroy.bind(t),t.collections.get=function(e){var n;return t.collections.every((function(t){return!(n=t.get(e))})),n}},K.prototype.create=function(t){return this.createCollection(t)},K.prototype.createCollection=function(t){var e=new C(this,t);return this.bindCollection(e),this.collections.push(e),e},K.prototype.bindCollection=function(t){var e,n=this,o=function(t,o){e=t.type+" "+o.id+":"+t.type,n.trigger(e,o)};t.on("destroyed",n.onDestroyed.bind(n)),t.on("shown hidden rested dir plain",o),t.on("dir:up dir:right dir:down dir:left",o),t.on("plain:up plain:right plain:down plain:left",o)},K.prototype.bindDocument=function(){this.binded||(this.bindEvt(document,"move").bindEvt(document,"end"),this.binded=!0)},K.prototype.unbindDocument=function(t){Object.keys(this.ids).length&&!0!==t||(this.unbindEvt(document,"move").unbindEvt(document,"end"),this.binded=!1)},K.prototype.getIdentifier=function(t){var e;return t?void 0===(e=void 0===t.identifier?t.pointerId:t.identifier)&&(e=this.latest||0):e=this.index,void 0===this.ids[e]&&(this.ids[e]=this.index,this.index+=1),this.latest=e,this.ids[e]},K.prototype.removeIdentifier=function(t){var e={};for(var n in this.ids)if(this.ids[n]===t){e.id=n,e.identifier=this.ids[n],delete this.ids[n];break}return e},K.prototype.onmove=function(t){return this.onAny("move",t),!1},K.prototype.onend=function(t){return this.onAny("end",t),!1},K.prototype.oncancel=function(t){return this.onAny("end",t),!1},K.prototype.onAny=function(t,e){var n,o=this,r="processOn"+t.charAt(0).toUpperCase()+t.slice(1);return e=u(e),v(e,(function(t){n=o.getIdentifier(t),v(o.collections,function(t,e,n){n.ids.indexOf(e)>=0&&(n[r](t),t._found_=!0)}.bind(null,t,n)),t._found_||o.removeIdentifier(n)})),!1},K.prototype.destroy=function(){this.unbindDocument(!0),this.ids={},this.index=0,this.collections.forEach((function(t){t.destroy()})),this.off()},K.prototype.onDestroyed=function(t,e){if(this.collections.indexOf(e)<0)return!1;this.collections.splice(this.collections.indexOf(e),1)};var O=new K;e.default={create:function(t){return O.create(t)},factory:O}}]).default},"object"==typeof n&&"object"==typeof e?e.exports=r():"function"==typeof define&&define.amd?define("nipplejs",[],r):"object"==typeof n?n.nipplejs=r():o.nipplejs=r()},{}],137:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var o,r=function(){return r=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)},i=function(){function t(t){this.options=t,this.listeners={}}return t.prototype.on=function(t,e){var n=this.listeners[t]||[];this.listeners[t]=n.concat([e])},t.prototype.triggerEvent=function(t,e){var n=this;(this.listeners[t]||[]).forEach((function(t){return t({target:n,event:e})}))},t}();(o=n.NotyfArrayEvent||(n.NotyfArrayEvent={}))[o.Add=0]="Add",o[o.Remove=1]="Remove";var s,a=function(){function t(){this.notifications=[]}return t.prototype.push=function(t){this.notifications.push(t),this.updateFn(t,n.NotyfArrayEvent.Add,this.notifications)},t.prototype.splice=function(t,e){var o=this.notifications.splice(t,e)[0];return this.updateFn(o,n.NotyfArrayEvent.Remove,this.notifications),o},t.prototype.indexOf=function(t){return this.notifications.indexOf(t)},t.prototype.onUpdate=function(t){this.updateFn=t},t}();(s=n.NotyfEvent||(n.NotyfEvent={})).Dismiss="dismiss",s.Click="click";var l={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:!1},c=function(){function t(){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 t=document.createDocumentFragment(),e=this._createHTMLElement({tagName:"div",className:"notyf"});t.appendChild(e),document.body.appendChild(t),this.container=e,this.animationEndEventName=this._getAnimationEndEventName(),this._createA11yContainer()}return t.prototype.on=function(t,e){var n;this.events=r(r({},this.events),((n={})[t]=e,n))},t.prototype.update=function(t,e){e===n.NotyfArrayEvent.Add?this.addNotification(t):e===n.NotyfArrayEvent.Remove&&this.removeNotification(t)},t.prototype.removeNotification=function(t){var e,n,o=this,r=this._popRenderedNotification(t);r&&((e=r.node).classList.add("notyf__toast--disappear"),e.addEventListener(this.animationEndEventName,n=function(t){t.target===e&&(e.removeEventListener(o.animationEndEventName,n),o.container.removeChild(e))}))},t.prototype.addNotification=function(t){var e=this._renderNotification(t);this.notifications.push({notification:t,node:e}),this._announce(t.options.message||"Notification")},t.prototype._renderNotification=function(t){var e,n=this._buildNotificationCard(t),o=t.options.className;return o&&(e=n.classList).add.apply(e,o.split(" ")),this.container.appendChild(n),n},t.prototype._popRenderedNotification=function(t){for(var e=-1,n=0;n<this.notifications.length&&e<0;n++)this.notifications[n].notification===t&&(e=n);if(-1!==e)return this.notifications.splice(e,1)[0]},t.prototype.getXPosition=function(t){var e;return(null===(e=null==t?void 0:t.position)||void 0===e?void 0:e.x)||"right"},t.prototype.getYPosition=function(t){var e;return(null===(e=null==t?void 0:t.position)||void 0===e?void 0:e.y)||"bottom"},t.prototype.adjustContainerAlignment=function(t){var e=this.X_POSITION_FLEX_MAP[this.getXPosition(t)],n=this.Y_POSITION_FLEX_MAP[this.getYPosition(t)],o=this.container.style;o.setProperty("justify-content",n),o.setProperty("align-items",e)},t.prototype._buildNotificationCard=function(t){var e=this,o=t.options,r=o.icon;this.adjustContainerAlignment(o);var i=this._createHTMLElement({tagName:"div",className:"notyf__toast"}),s=this._createHTMLElement({tagName:"div",className:"notyf__ripple"}),a=this._createHTMLElement({tagName:"div",className:"notyf__wrapper"}),l=this._createHTMLElement({tagName:"div",className:"notyf__message"});l.innerHTML=o.message||"";var c=o.background||o.backgroundColor;if(r){var u=this._createHTMLElement({tagName:"div",className:"notyf__icon"});if(("string"==typeof r||r instanceof String)&&(u.innerHTML=new String(r).valueOf()),"object"==typeof r){var d=r.tagName,f=void 0===d?"i":d,p=r.className,h=r.text,y=r.color,v=void 0===y?c:y,g=this._createHTMLElement({tagName:f,className:p,text:h});v&&(g.style.color=v),u.appendChild(g)}a.appendChild(u)}if(a.appendChild(l),i.appendChild(a),c&&(o.ripple?(s.style.background=c,i.appendChild(s)):i.style.background=c),o.dismissible){var m=this._createHTMLElement({tagName:"div",className:"notyf__dismiss"}),b=this._createHTMLElement({tagName:"button",className:"notyf__dismiss-btn"});m.appendChild(b),a.appendChild(m),i.classList.add("notyf__toast--dismissible"),b.addEventListener("click",(function(o){var r,i;null===(i=(r=e.events)[n.NotyfEvent.Dismiss])||void 0===i||i.call(r,{target:t,event:o}),o.stopPropagation()}))}i.addEventListener("click",(function(o){var r,i;return null===(i=(r=e.events)[n.NotyfEvent.Click])||void 0===i?void 0:i.call(r,{target:t,event:o})}));var w="top"===this.getYPosition(o)?"upper":"lower";return i.classList.add("notyf__toast--"+w),i},t.prototype._createHTMLElement=function(t){var e=t.tagName,n=t.className,o=t.text,r=document.createElement(e);return n&&(r.className=n),r.textContent=o||null,r},t.prototype._createA11yContainer=function(){var t=this._createHTMLElement({tagName:"div",className:"notyf-announcer"});t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),t.style.border="0",t.style.clip="rect(0 0 0 0)",t.style.height="1px",t.style.margin="-1px",t.style.overflow="hidden",t.style.padding="0",t.style.position="absolute",t.style.width="1px",t.style.outline="0",document.body.appendChild(t),this.a11yContainer=t},t.prototype._announce=function(t){var e=this;this.a11yContainer.textContent="",setTimeout((function(){e.a11yContainer.textContent=t}),100)},t.prototype._getAnimationEndEventName=function(){var t,e=document.createElement("_fake"),n={MozTransition:"animationend",OTransition:"oAnimationEnd",WebkitTransition:"webkitAnimationEnd",transition:"animationend"};for(t in n)if(void 0!==e.style[t])return n[t];return"animationend"},t}(),u=function(){function t(t){var e=this;this.dismiss=this._removeNotification,this.notifications=new a,this.view=new c;var o=this.registerTypes(t);this.options=r(r({},l),t),this.options.types=o,this.notifications.onUpdate((function(t,n){return e.view.update(t,n)})),this.view.on(n.NotyfEvent.Dismiss,(function(t){var o=t.target,r=t.event;e._removeNotification(o),o.triggerEvent(n.NotyfEvent.Dismiss,r)})),this.view.on(n.NotyfEvent.Click,(function(t){var e=t.target,o=t.event;return e.triggerEvent(n.NotyfEvent.Click,o)}))}return t.prototype.error=function(t){var e=this.normalizeOptions("error",t);return this.open(e)},t.prototype.success=function(t){var e=this.normalizeOptions("success",t);return this.open(e)},t.prototype.open=function(t){var e=this.options.types.find((function(e){return e.type===t.type}))||{},n=r(r({},e),t);this.assignProps(["ripple","position","dismissible"],n);var o=new i(n);return this._pushNotification(o),o},t.prototype.dismissAll=function(){for(;this.notifications.splice(0,1););},t.prototype.assignProps=function(t,e){var n=this;t.forEach((function(t){e[t]=null==e[t]?n.options[t]:e[t]}))},t.prototype._pushNotification=function(t){var e=this;this.notifications.push(t);var n=void 0!==t.options.duration?t.options.duration:this.options.duration;n&&setTimeout((function(){return e._removeNotification(t)}),n)},t.prototype._removeNotification=function(t){var e=this.notifications.indexOf(t);-1!==e&&this.notifications.splice(e,1)},t.prototype.normalizeOptions=function(t,e){var n={type:t};return"string"==typeof e?n.message=e:"object"==typeof e&&(n=r(r({},n),e)),n},t.prototype.registerTypes=function(t){var e=(t&&t.types||[]).slice();return l.types.map((function(t){var n=-1;e.forEach((function(e,o){e.type===t.type&&(n=o)}));var o=-1!==n?e.splice(n,1)[0]:{};return r(r({},t),o)})).concat(e)},t}();n.DEFAULT_OPTIONS=l,n.Notyf=u,n.NotyfArray=a,n.NotyfNotification=i,n.NotyfView=c},{}],138:[function(t,e,n){var o,r;o=this,r=function(){return function(){var t={9662:function(t,e,n){var o=n(614),r=n(6330),i=TypeError;t.exports=function(t){if(o(t))return t;throw i(r(t)+" is not a function")}},9483:function(t,e,n){var o=n(4411),r=n(6330),i=TypeError;t.exports=function(t){if(o(t))return t;throw i(r(t)+" is not a constructor")}},6077:function(t,e,n){var o=n(614),r=String,i=TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw i("Can't set "+r(t)+" as a prototype")}},1223:function(t,e,n){var o=n(5112),r=n(30),i=n(3070).f,s=o("unscopables"),a=Array.prototype;null==a[s]&&i(a,s,{configurable:!0,value:r(null)}),t.exports=function(t){a[s][t]=!0}},1530:function(t,e,n){"use strict";var o=n(8710).charAt;t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},9670:function(t,e,n){var o=n(111),r=String,i=TypeError;t.exports=function(t){if(o(t))return t;throw i(r(t)+" is not an object")}},8533:function(t,e,n){"use strict";var o=n(2092).forEach,r=n(9341)("forEach");t.exports=r?[].forEach:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var o=n(9974),r=n(6916),i=n(7908),s=n(3411),a=n(7659),l=n(4411),c=n(6244),u=n(6135),d=n(8554),f=n(1246),p=Array;t.exports=function(t){var e=i(t),n=l(this),h=arguments.length,y=h>1?arguments[1]:void 0,v=void 0!==y;v&&(y=o(y,h>2?arguments[2]:void 0));var g,m,b,w,_,x,D=f(e),k=0;if(!D||this===p&&a(D))for(g=c(e),m=n?new this(g):p(g);g>k;k++)x=v?y(e[k],k):e[k],u(m,k,x);else for(_=(w=d(e,D)).next,m=n?new this:[];!(b=r(_,w)).done;k++)x=v?s(w,y,[b.value,k],!0):b.value,u(m,k,x);return m.length=k,m}},1318:function(t,e,n){var o=n(5656),r=n(1400),i=n(6244),s=function(t){return function(e,n,s){var a,l=o(e),c=i(l),u=r(s,c);if(t&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2092:function(t,e,n){var o=n(9974),r=n(1702),i=n(8361),s=n(7908),a=n(6244),l=n(5417),c=r([].push),u=function(t){var e=1==t,n=2==t,r=3==t,u=4==t,d=6==t,f=7==t,p=5==t||d;return function(h,y,v,g){for(var m,b,w=s(h),_=i(w),x=o(y,v),D=a(_),k=0,E=g||l,B=e?E(h,D):n||f?E(h,0):void 0;D>k;k++)if((p||k in _)&&(b=x(m=_[k],k,w),t))if(e)B[k]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return k;case 2:c(B,m)}else switch(t){case 4:return!1;case 7:c(B,m)}return d?-1:r||u?u:B}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},1194:function(t,e,n){var o=n(7293),r=n(5112),i=n(7392),s=r("species");t.exports=function(t){return i>=51||!o((function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var o=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){return 1},1)}))}},3671:function(t,e,n){var o=n(9662),r=n(7908),i=n(8361),s=n(6244),a=TypeError,l=function(t){return function(e,n,l,c){o(n);var u=r(e),d=i(u),f=s(u),p=t?f-1:0,h=t?-1:1;if(l<2)for(;;){if(p in d){c=d[p],p+=h;break}if(p+=h,t?p<0:f<=p)throw a("Reduce of empty array with no initial value")}for(;t?p>=0:f>p;p+=h)p in d&&(c=n(c,d[p],p,u));return c}};t.exports={left:l(!1),right:l(!0)}},1589:function(t,e,n){var o=n(1400),r=n(6244),i=n(6135),s=Array,a=Math.max;t.exports=function(t,e,n){for(var l=r(t),c=o(e,l),u=o(void 0===n?l:n,l),d=s(a(u-c,0)),f=0;c<u;c++,f++)i(d,f,t[c]);return d.length=f,d}},206:function(t,e,n){var o=n(1702);t.exports=o([].slice)},4362:function(t,e,n){var o=n(1589),r=Math.floor,i=function(t,e){var n=t.length,l=r(n/2);return n<8?s(t,e):a(t,i(o(t,0,l),e),i(o(t,l),e),e)},s=function(t,e){for(var n,o,r=t.length,i=1;i<r;){for(o=i,n=t[i];o&&e(t[o-1],n)>0;)t[o]=t[--o];o!==i++&&(t[o]=n)}return t},a=function(t,e,n,o){for(var r=e.length,i=n.length,s=0,a=0;s<r||a<i;)t[s+a]=s<r&&a<i?o(e[s],n[a])<=0?e[s++]:n[a++]:s<r?e[s++]:n[a++];return t};t.exports=i},7475:function(t,e,n){var o=n(3157),r=n(4411),i=n(111),s=n(5112)("species"),a=Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(r(e)&&(e===a||o(e.prototype))||i(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},5417:function(t,e,n){var o=n(7475);t.exports=function(t,e){return new(o(t))(0===e?0:e)}},3411:function(t,e,n){var o=n(9670),r=n(9212);t.exports=function(t,e,n,i){try{return i?e(o(n)[0],n[1]):e(n)}catch(e){r(t,"throw",e)}}},7072:function(t,e,n){var o=n(5112)("iterator"),r=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){r=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},4326:function(t,e,n){var o=n(1702),r=o({}.toString),i=o("".slice);t.exports=function(t){return i(r(t),8,-1)}},648:function(t,e,n){var o=n(1694),r=n(614),i=n(4326),s=n(5112)("toStringTag"),a=Object,l="Arguments"==i(function(){return arguments}());t.exports=o?i:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:l?i(e):"Object"==(o=i(e))&&r(e.callee)?"Arguments":o}},9920:function(t,e,n){var o=n(2597),r=n(3887),i=n(1236),s=n(3070);t.exports=function(t,e,n){for(var a=r(e),l=s.f,c=i.f,u=0;u<a.length;u++){var d=a[u];o(t,d)||n&&o(n,d)||l(t,d,c(e,d))}}},4964:function(t,e,n){var o=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:function(t,e,n){var o=n(7293);t.exports=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,n){"use strict";var o=n(3383).IteratorPrototype,r=n(30),i=n(9114),s=n(8003),a=n(7497),l=function(){return this};t.exports=function(t,e,n,c){var u=e+" Iterator";return t.prototype=r(o,{next:i(+!c,n)}),s(t,u,!1,!0),a[u]=l,t}},8880:function(t,e,n){var o=n(9781),r=n(3070),i=n(9114);t.exports=o?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var o=n(4948),r=n(3070),i=n(9114);t.exports=function(t,e,n){var s=o(e);s in t?r.f(t,s,i(0,n)):t[s]=n}},8052:function(t,e,n){var o=n(614),r=n(3070),i=n(6339),s=n(3072);t.exports=function(t,e,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(o(n)&&i(n,c,a),a.global)l?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},3072:function(t,e,n){var o=n(7854),r=Object.defineProperty;t.exports=function(t,e){try{r(o,t,{value:e,configurable:!0,writable:!0})}catch(n){o[t]=e}return e}},654:function(t,e,n){"use strict";var o=n(2109),r=n(6916),i=n(1913),s=n(6530),a=n(614),l=n(4994),c=n(9518),u=n(7674),d=n(8003),f=n(8880),p=n(8052),h=n(5112),y=n(7497),v=n(3383),g=s.PROPER,m=s.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,_=h("iterator"),x="keys",D="values",k="entries",E=function(){return this};t.exports=function(t,e,n,s,h,v,B){l(n,e,s);var C,K,O,S=function(t){if(t===h&&A)return A;if(!w&&t in T)return T[t];switch(t){case x:case D:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",P=!1,T=t.prototype,M=T[_]||T["@@iterator"]||h&&T[h],A=!w&&M||S(h),I="Array"==e&&T.entries||M;if(I&&(C=c(I.call(new t)))!==Object.prototype&&C.next&&(i||c(C)===b||(u?u(C,b):a(C[_])||p(C,_,E)),d(C,j,!0,!0),i&&(y[j]=E)),g&&h==D&&M&&M.name!==D&&(!i&&m?f(T,"name",D):(P=!0,A=function(){return r(M,this)})),h)if(K={values:S(D),keys:v?A:S(x),entries:S(k)},B)for(O in K)(w||P||!(O in T))&&p(T,O,K[O]);else o({target:e,proto:!0,forced:w||P},K);return i&&!B||T[_]===A||p(T,_,A,{name:h}),y[e]=A,K}},7235:function(t,e,n){var o=n(857),r=n(2597),i=n(6061),s=n(3070).f;t.exports=function(t){var e=o.Symbol||(o.Symbol={});r(e,t)||s(e,t,{value:i.f(t)})}},5117:function(t,e,n){"use strict";var o=n(6330),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw r("Cannot delete property "+o(e)+" of "+o(t))}},9781:function(t,e,n){var o=n(7293);t.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var o=n(7854),r=n(111),i=o.document,s=r(i)&&r(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},7207:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},8324:function(t){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}},8509:function(t,e,n){var o=n(317)("span").classList,r=o&&o.constructor&&o.constructor.prototype;t.exports=r===Object.prototype?void 0:r},8886:function(t,e,n){var o=n(8113).match(/firefox\/(\d+)/i);t.exports=!!o&&+o[1]},256:function(t,e,n){var o=n(8113);t.exports=/MSIE|Trident/.test(o)},5268:function(t,e,n){var o=n(4326),r=n(7854);t.exports="process"==o(r.process)},8113:function(t,e,n){var o=n(5005);t.exports=o("navigator","userAgent")||""},7392:function(t,e,n){var o,r,i=n(7854),s=n(8113),a=i.process,l=i.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(r=(o=u.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&s&&(!(o=s.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/))&&(r=+o[1]),t.exports=r},8008:function(t,e,n){var o=n(8113).match(/AppleWebKit\/(\d+)\./);t.exports=!!o&&+o[1]},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var o=n(7854),r=n(1236).f,i=n(8880),s=n(8052),a=n(3072),l=n(9920),c=n(4705);t.exports=function(t,e){var n,u,d,f,p,h=t.target,y=t.global,v=t.stat;if(n=y?o:v?o[h]||a(h,{}):(o[h]||{}).prototype)for(u in e){if(f=e[u],d=t.dontCallGetSet?(p=r(n,u))&&p.value:n[u],!c(y?u:h+(v?".":"#")+u,t.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(t.sham||d&&d.sham)&&i(f,"sham",!0),s(n,u,f,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var o=n(1702),r=n(8052),i=n(2261),s=n(7293),a=n(5112),l=n(8880),c=a("species"),u=RegExp.prototype;t.exports=function(t,e,n,d){var f=a(t),p=!s((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),h=p&&!s((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!p||!h||n){var y=o(/./[f]),v=e(f,""[t],(function(t,e,n,r,s){var a=o(t),l=e.exec;return l===i||l===u.exec?p&&!s?{done:!0,value:y(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));r(String.prototype,t,v[0]),r(u,f,v[1])}d&&l(u[f],"sham",!0)}},2104:function(t,e,n){var o=n(4374),r=Function.prototype,i=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?s.bind(i):function(){return s.apply(i,arguments)})},9974:function(t,e,n){var o=n(1702),r=n(9662),i=n(4374),s=o(o.bind);t.exports=function(t,e){return r(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var o=n(7293);t.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var o=n(4374),r=Function.prototype.call;t.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(t,e,n){var o=n(9781),r=n(2597),i=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,a=r(i,"name"),l=a&&"something"===function(){}.name,c=a&&(!o||o&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},1702:function(t,e,n){var o=n(4374),r=Function.prototype,i=r.bind,s=r.call,a=o&&i.bind(s,s);t.exports=o?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,n){var o=n(7854),r=n(614),i=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(o[t]):o[t]&&o[t][e]}},1246:function(t,e,n){var o=n(648),r=n(8173),i=n(7497),s=n(5112)("iterator");t.exports=function(t){if(null!=t)return r(t,s)||r(t,"@@iterator")||i[o(t)]}},8554:function(t,e,n){var o=n(6916),r=n(9662),i=n(9670),s=n(6330),a=n(1246),l=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(r(n))return i(o(n,t));throw l(s(t)+" is not iterable")}},8173:function(t,e,n){var o=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:o(n)}},647:function(t,e,n){var o=n(1702),r=n(7908),i=Math.floor,s=o("".charAt),a=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,o,d,f){var p=n+t.length,h=o.length,y=u;return void 0!==d&&(d=r(d),y=c),a(f,y,(function(r,a){var c;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,p);case"<":c=d[l(a,1,-1)];break;default:var u=+a;if(0===u)return r;if(u>h){var f=i(u/10);return 0===f?r:f<=h?void 0===o[f-1]?s(a,1):o[f-1]+s(a,1):r}c=o[u-1]}return void 0===c?"":c}))}},7854:function(t,e,n){var o=function(t){return t&&t.Math==Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var o=n(1702),r=n(7908),i=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(r(t),e)}},3501:function(t){t.exports={}},490:function(t,e,n){var o=n(5005);t.exports=o("document","documentElement")},4664:function(t,e,n){var o=n(9781),r=n(7293),i=n(317);t.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var o=n(1702),r=n(7293),i=n(4326),s=Object,a=o("".split);t.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a(t,""):s(t)}:s},9587:function(t,e,n){var o=n(614),r=n(111),i=n(7674);t.exports=function(t,e,n){var s,a;return i&&o(s=e.constructor)&&s!==n&&r(a=s.prototype)&&a!==n.prototype&&i(t,a),t}},2788:function(t,e,n){var o=n(1702),r=n(614),i=n(5465),s=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},9909:function(t,e,n){var o,r,i,s=n(8536),a=n(7854),l=n(1702),c=n(111),u=n(8880),d=n(2597),f=n(5465),p=n(6200),h=n(3501),y="Object already initialized",v=a.TypeError,g=a.WeakMap;if(s||f.state){var m=f.state||(f.state=new g),b=l(m.get),w=l(m.has),_=l(m.set);o=function(t,e){if(w(m,t))throw new v(y);return e.facade=t,_(m,t,e),e},r=function(t){return b(m,t)||{}},i=function(t){return w(m,t)}}else{var x=p("state");h[x]=!0,o=function(t,e){if(d(t,x))throw new v(y);return e.facade=t,u(t,x,e),e},r=function(t){return d(t,x)?t[x]:{}},i=function(t){return d(t,x)}}t.exports={set:o,get:r,has:i,enforce:function(t){return i(t)?r(t):o(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=r(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var o=n(5112),r=n(7497),i=o("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[i]===t)}},3157:function(t,e,n){var o=n(4326);t.exports=Array.isArray||function(t){return"Array"==o(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,n){var o=n(1702),r=n(7293),i=n(614),s=n(648),a=n(5005),l=n(2788),c=function(){},u=[],d=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=o(f.exec),h=!f.exec(c),y=function(t){if(!i(t))return!1;try{return d(c,u,t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(f,l(t))}catch(t){return!0}};v.sham=!0,t.exports=!d||r((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?v:y},4705:function(t,e,n){var o=n(7293),r=n(614),i=/#|\.prototype\./,s=function(t,e){var n=l[a(t)];return n==u||n!=c&&(r(e)?o(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},5988:function(t,e,n){var o=n(111),r=Math.floor;t.exports=Number.isInteger||function(t){return!o(t)&&isFinite(t)&&r(t)===t}},111:function(t,e,n){var o=n(614);t.exports=function(t){return"object"==typeof t?null!==t:o(t)}},1913:function(t){t.exports=!1},7850:function(t,e,n){var o=n(111),r=n(4326),i=n(5112)("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},2190:function(t,e,n){var o=n(5005),r=n(614),i=n(7976),s=n(3307),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return r(e)&&i(e.prototype,a(t))}},9212:function(t,e,n){var o=n(6916),r=n(9670),i=n(8173);t.exports=function(t,e,n){var s,a;r(t);try{if(!(s=i(t,"return"))){if("throw"===e)throw n;return n}s=o(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw n;if(a)throw s;return r(s),n}},3383:function(t,e,n){"use strict";var o,r,i,s=n(7293),a=n(614),l=n(30),c=n(9518),u=n(8052),d=n(5112),f=n(1913),p=d("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(r=c(c(i)))!==Object.prototype&&(o=r):h=!0),null==o||s((function(){var t={};return o[p].call(t)!==t}))?o={}:f&&(o=l(o)),a(o[p])||u(o,p,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:h}},7497:function(t){t.exports={}},6244:function(t,e,n){var o=n(7466);t.exports=function(t){return o(t.length)}},6339:function(t,e,n){var o=n(7293),r=n(614),i=n(2597),s=n(9781),a=n(6530).CONFIGURABLE,l=n(2788),c=n(9909),u=c.enforce,d=c.get,f=Object.defineProperty,p=s&&!o((function(){return 8!==f((function(){}),"length",{value:8}).length})),h=String(String).split("String"),y=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||a&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),p&&n&&i(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var o=u(t);return i(o,"source")||(o.source=h.join("string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return r(this)&&d(this).source||l(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var o=+t;return(o>0?n:e)(o)}},735:function(t,e,n){var o=n(133);t.exports=o&&!!Symbol.for&&!!Symbol.keyFor},133:function(t,e,n){var o=n(7392),r=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},8536:function(t,e,n){var o=n(7854),r=n(614),i=n(2788),s=o.WeakMap;t.exports=r(s)&&/native code/.test(i(s))},3929:function(t,e,n){var o=n(7850),r=TypeError;t.exports=function(t){if(o(t))throw r("The method doesn't accept regular expressions");return t}},1574:function(t,e,n){"use strict";var o=n(9781),r=n(1702),i=n(6916),s=n(7293),a=n(1956),l=n(5181),c=n(5296),u=n(7908),d=n(8361),f=Object.assign,p=Object.defineProperty,h=r([].concat);t.exports=!f||s((function(){if(o&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||a(f({},e)).join("")!=r}))?function(t,e){for(var n=u(t),r=arguments.length,s=1,f=l.f,p=c.f;r>s;)for(var y,v=d(arguments[s++]),g=f?h(a(v),f(v)):a(v),m=g.length,b=0;m>b;)y=g[b++],o&&!i(p,v,y)||(n[y]=v[y]);return n}:f},30:function(t,e,n){var o,r=n(9670),i=n(6048),s=n(748),a=n(3501),l=n(490),c=n(317),u=n(6200)("IE_PROTO"),d=function(){},f=function(t){return"<script>"+t+"<\/script>"},p=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&o?p(o):((e=c("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):p(o);for(var n=s.length;n--;)delete h.prototype[s[n]];return h()};a[u]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=r(t),n=new d,d.prototype=null,n[u]=t):n=h(),void 0===e?n:i.f(n,e)}},6048:function(t,e,n){var o=n(9781),r=n(3353),i=n(3070),s=n(9670),a=n(5656),l=n(1956);e.f=o&&!r?Object.defineProperties:function(t,e){s(t);for(var n,o=a(e),r=l(e),c=r.length,u=0;c>u;)i.f(t,n=r[u++],o[n]);return t}},3070:function(t,e,n){var o=n(9781),r=n(4664),i=n(3353),s=n(9670),a=n(4948),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;e.f=o?i?function(t,e,n){if(s(t),e=a(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var o=u(t,e);o&&o.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var o=n(9781),r=n(6916),i=n(5296),s=n(9114),a=n(5656),l=n(4948),c=n(2597),u=n(4664),d=Object.getOwnPropertyDescriptor;e.f=o?d:function(t,e){if(t=a(t),e=l(e),u)try{return d(t,e)}catch(t){}if(c(t,e))return s(!r(i.f,t,e),t[e])}},1156:function(t,e,n){var o=n(4326),r=n(5656),i=n(8006).f,s=n(1589),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==o(t)?function(t){try{return i(t)}catch(t){return s(a)}}(t):i(r(t))}},8006:function(t,e,n){var o=n(6324),r=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,n){var o=n(2597),r=n(614),i=n(7908),s=n(6200),a=n(8544),l=s("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(o(e,l))return e[l];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?u:null}},7976:function(t,e,n){var o=n(1702);t.exports=o({}.isPrototypeOf)},6324:function(t,e,n){var o=n(1702),r=n(2597),i=n(5656),s=n(1318).indexOf,a=n(3501),l=o([].push);t.exports=function(t,e){var n,o=i(t),c=0,u=[];for(n in o)!r(a,n)&&r(o,n)&&l(u,n);for(;e.length>c;)r(o,n=e[c++])&&(~s(u,n)||l(u,n));return u}},1956:function(t,e,n){var o=n(6324),r=n(748);t.exports=Object.keys||function(t){return o(t,r)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);e.f=r?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},9026:function(t,e,n){"use strict";var o=n(1913),r=n(7854),i=n(7293),s=n(8008);t.exports=o||!i((function(){if(!(s&&s<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete r[t]}}))},7674:function(t,e,n){var o=n(1702),r=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=o(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t(n,o):n.__proto__=o,n}}():void 0)},288:function(t,e,n){"use strict";var o=n(1694),r=n(648);t.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},2140:function(t,e,n){var o=n(6916),r=n(614),i=n(111),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&r(n=t.toString)&&!i(a=o(n,t)))return a;if(r(n=t.valueOf)&&!i(a=o(n,t)))return a;if("string"!==e&&r(n=t.toString)&&!i(a=o(n,t)))return a;throw s("Can't convert object to primitive value")}},3887:function(t,e,n){var o=n(5005),r=n(1702),i=n(8006),s=n(5181),a=n(9670),l=r([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=s.f;return n?l(e,n(t)):e}},857:function(t,e,n){var o=n(7854);t.exports=o},2626:function(t,e,n){var o=n(3070).f;t.exports=function(t,e,n){n in t||o(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},7651:function(t,e,n){var o=n(6916),r=n(9670),i=n(614),s=n(4326),a=n(2261),l=TypeError;t.exports=function(t,e){var n=t.exec;if(i(n)){var c=o(n,t,e);return null!==c&&r(c),c}if("RegExp"===s(t))return o(a,t,e);throw l("RegExp#exec called on incompatible receiver")}},2261:function(t,e,n){"use strict";var o,r,i=n(6916),s=n(1702),a=n(1340),l=n(7066),c=n(2999),u=n(2309),d=n(30),f=n(9909).get,p=n(9441),h=n(7168),y=u("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,g=v,m=s("".charAt),b=s("".indexOf),w=s("".replace),_=s("".slice),x=(r=/b*/g,i(v,o=/a/,"a"),i(v,r,"a"),0!==o.lastIndex||0!==r.lastIndex),D=c.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(x||k||D||p||h)&&(g=function(t){var e,n,o,r,s,c,u,p=this,h=f(p),E=a(t),B=h.raw;if(B)return B.lastIndex=p.lastIndex,e=i(g,B,E),p.lastIndex=B.lastIndex,e;var C=h.groups,K=D&&p.sticky,O=i(l,p),S=p.source,j=0,P=E;if(K&&(O=w(O,"y",""),-1===b(O,"g")&&(O+="g"),P=_(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==m(E,p.lastIndex-1))&&(S="(?: "+S+")",P=" "+P,j++),n=new RegExp("^(?:"+S+")",O)),k&&(n=new RegExp("^"+S+"$(?!\\s)",O)),x&&(o=p.lastIndex),r=i(v,K?n:p,P),K?r?(r.input=_(r.input,j),r[0]=_(r[0],j),r.index=p.lastIndex,p.lastIndex+=r[0].length):p.lastIndex=0:x&&r&&(p.lastIndex=p.global?r.index+r[0].length:o),k&&r&&r.length>1&&i(y,r[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)})),r&&C)for(r.groups=c=d(null),s=0;s<C.length;s++)c[(u=C[s])[0]]=r[u[1]];return r}),t.exports=g},7066:function(t,e,n){"use strict";var o=n(9670);t.exports=function(){var t=o(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},4706:function(t,e,n){var o=n(6916),r=n(2597),i=n(7976),s=n(7066),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||r(t,"flags")||!i(a,t)?e:o(s,t)}},2999:function(t,e,n){var o=n(7293),r=n(7854).RegExp,i=o((function(){var t=r("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),s=i||o((function(){return!r("a","y").sticky})),a=i||o((function(){var t=r("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:i}},9441:function(t,e,n){var o=n(7293),r=n(7854).RegExp;t.exports=o((function(){var t=r(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var o=n(7293),r=n(7854).RegExp;t.exports=o((function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t){var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},6340:function(t,e,n){"use strict";var o=n(5005),r=n(3070),i=n(5112),s=n(9781),a=i("species");t.exports=function(t){var e=o(t),n=r.f;s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var o=n(3070).f,r=n(2597),i=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,i)&&o(t,i,{configurable:!0,value:e})}},6200:function(t,e,n){var o=n(2309),r=n(9711),i=o("keys");t.exports=function(t){return i[t]||(i[t]=r(t))}},5465:function(t,e,n){var o=n(7854),r=n(3072),i="__core-js_shared__",s=o[i]||r(i,{});t.exports=s},2309:function(t,e,n){var o=n(1913),r=n(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.5",mode:o?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,n){var o=n(9670),r=n(9483),i=n(5112)("species");t.exports=function(t,e){var n,s=o(t).constructor;return void 0===s||null==(n=o(s)[i])?e:r(n)}},8710:function(t,e,n){var o=n(1702),r=n(9303),i=n(1340),s=n(4488),a=o("".charAt),l=o("".charCodeAt),c=o("".slice),u=function(t){return function(e,n){var o,u,d=i(s(e)),f=r(n),p=d.length;return f<0||f>=p?t?"":void 0:(o=l(d,f))<55296||o>56319||f+1===p||(u=l(d,f+1))<56320||u>57343?t?a(d,f):o:t?c(d,f,f+2):u-56320+(o-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},6091:function(t,e,n){var o=n(6530).PROPER,r=n(7293),i=n(1361);t.exports=function(t){return r((function(){return!!i[t]()||"…"!=="…"[t]()||o&&i[t].name!==t}))}},3111:function(t,e,n){var o=n(1702),r=n(4488),i=n(1340),s=n(1361),a=o("".replace),l="["+s+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),d=function(t){return function(e){var n=i(r(e));return 1&t&&(n=a(n,c,"")),2&t&&(n=a(n,u,"")),n}};t.exports={start:d(1),end:d(2),trim:d(3)}},6532:function(t,e,n){var o=n(6916),r=n(5005),i=n(5112),s=n(8052);t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,a=i("toPrimitive");e&&!e[a]&&s(e,a,(function(t){return o(n,this)}),{arity:1})}},863:function(t,e,n){var o=n(1702);t.exports=o(1..valueOf)},1400:function(t,e,n){var o=n(9303),r=Math.max,i=Math.min;t.exports=function(t,e){var n=o(t);return n<0?r(n+e,0):i(n,e)}},5656:function(t,e,n){var o=n(8361),r=n(4488);t.exports=function(t){return o(r(t))}},9303:function(t,e,n){var o=n(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:o(e)}},7466:function(t,e,n){var o=n(9303),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},7908:function(t,e,n){var o=n(4488),r=Object;t.exports=function(t){return r(o(t))}},7593:function(t,e,n){var o=n(6916),r=n(111),i=n(2190),s=n(8173),a=n(2140),l=n(5112),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||i(t))return t;var n,l=s(t,u);if(l){if(void 0===e&&(e="default"),n=o(l,t,e),!r(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:function(t,e,n){var o=n(7593),r=n(2190);t.exports=function(t){var e=o(t,"string");return r(e)?e:e+""}},1694:function(t,e,n){var o={};o[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(o)},1340:function(t,e,n){var o=n(648),r=String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,e,n){var o=n(1702),r=0,i=Math.random(),s=o(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+i,36)}},3307:function(t,e,n){var o=n(133);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var o=n(9781),r=n(7293);t.exports=o&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6061:function(t,e,n){var o=n(5112);e.f=o},5112:function(t,e,n){var o=n(7854),r=n(2309),i=n(2597),s=n(9711),a=n(133),l=n(3307),c=r("wks"),u=o.Symbol,d=u&&u.for,f=l?u:u&&u.withoutSetter||s;t.exports=function(t){if(!i(c,t)||!a&&"string"!=typeof c[t]){var e="Symbol."+t;a&&i(u,t)?c[t]=u[t]:c[t]=l&&d?d(e):f(e)}return c[t]}},1361:function(t){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},2222:function(t,e,n){"use strict";var o=n(2109),r=n(7293),i=n(3157),s=n(111),a=n(7908),l=n(6244),c=n(7207),u=n(6135),d=n(5417),f=n(1194),p=n(5112),h=n(7392),y=p("isConcatSpreadable"),v=h>=51||!r((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),g=f("concat"),m=function(t){if(!s(t))return!1;var e=t[y];return void 0!==e?!!e:i(t)};o({target:"Array",proto:!0,arity:1,forced:!v||!g},{concat:function(t){var e,n,o,r,i,s=a(this),f=d(s,0),p=0;for(e=-1,o=arguments.length;e<o;e++)if(m(i=-1===e?s:arguments[e]))for(r=l(i),c(p+r),n=0;n<r;n++,p++)n in i&&u(f,p,i[n]);else c(p+1),u(f,p++,i);return f.length=p,f}})},7327:function(t,e,n){"use strict";var o=n(2109),r=n(2092).filter;o({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},1038:function(t,e,n){var o=n(2109),r=n(8457);o({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:r})},6699:function(t,e,n){"use strict";var o=n(2109),r=n(1318).includes,i=n(7293),s=n(1223);o({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},2772:function(t,e,n){"use strict";var o=n(2109),r=n(1702),i=n(1318).indexOf,s=n(9341),a=r([].indexOf),l=!!a&&1/a([1],1,-0)<0,c=s("indexOf");o({target:"Array",proto:!0,forced:l||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return l?a(this,t,e)||0:i(this,t,e)}})},6992:function(t,e,n){"use strict";var o=n(5656),r=n(1223),i=n(7497),s=n(9909),a=n(3070).f,l=n(654),c=n(1913),u=n(9781),d="Array Iterator",f=s.set,p=s.getterFor(d);t.exports=l(Array,"Array",(function(t,e){f(this,{type:d,target:o(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.kind,o=t.index++;return!e||o>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:o,done:!1}:"values"==n?{value:e[o],done:!1}:{value:[o,e[o]],done:!1}}),"values");var h=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!c&&u&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(t){}},9600:function(t,e,n){"use strict";var o=n(2109),r=n(1702),i=n(8361),s=n(5656),a=n(9341),l=r([].join),c=i!=Object,u=a("join",",");o({target:"Array",proto:!0,forced:c||!u},{join:function(t){return l(s(this),void 0===t?",":t)}})},1249:function(t,e,n){"use strict";var o=n(2109),r=n(2092).map;o({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},5827:function(t,e,n){"use strict";var o=n(2109),r=n(3671).left,i=n(9341),s=n(7392),a=n(5268);o({target:"Array",proto:!0,forced:!i("reduce")||!a&&s>79&&s<83},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},7042:function(t,e,n){"use strict";var o=n(2109),r=n(3157),i=n(4411),s=n(111),a=n(1400),l=n(6244),c=n(5656),u=n(6135),d=n(5112),f=n(1194),p=n(206),h=f("slice"),y=d("species"),v=Array,g=Math.max;o({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,o,d,f=c(this),h=l(f),m=a(t,h),b=a(void 0===e?h:e,h);if(r(f)&&(n=f.constructor,(i(n)&&(n===v||r(n.prototype))||s(n)&&null===(n=n[y]))&&(n=void 0),n===v||void 0===n))return p(f,m,b);for(o=new(void 0===n?v:n)(g(b-m,0)),d=0;m<b;m++,d++)m in f&&u(o,d,f[m]);return o.length=d,o}})},2707:function(t,e,n){"use strict";var o=n(2109),r=n(1702),i=n(9662),s=n(7908),a=n(6244),l=n(5117),c=n(1340),u=n(7293),d=n(4362),f=n(9341),p=n(8886),h=n(256),y=n(7392),v=n(8008),g=[],m=r(g.sort),b=r(g.push),w=u((function(){g.sort(void 0)})),_=u((function(){g.sort(null)})),x=f("sort"),D=!u((function(){if(y)return y<70;if(!(p&&p>3)){if(h)return!0;if(v)return v<603;var t,e,n,o,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)g.push({k:e+o,v:n})}for(g.sort((function(t,e){return e.v-t.v})),o=0;o<g.length;o++)e=g[o].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}));o({target:"Array",proto:!0,forced:w||!_||!x||!D},{sort:function(t){void 0!==t&&i(t);var e=s(this);if(D)return void 0===t?m(e):m(e,t);var n,o,r=[],u=a(e);for(o=0;o<u;o++)o in e&&b(r,e[o]);for(d(r,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=r.length,o=0;o<n;)e[o]=r[o++];for(;o<u;)l(e,o++);return e}})},561:function(t,e,n){"use strict";var o=n(2109),r=n(7908),i=n(1400),s=n(9303),a=n(6244),l=n(7207),c=n(5417),u=n(6135),d=n(5117),f=n(1194)("splice"),p=Math.max,h=Math.min;o({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,o,f,y,v,g,m=r(this),b=a(m),w=i(t,b),_=arguments.length;for(0===_?n=o=0:1===_?(n=0,o=b-w):(n=_-2,o=h(p(s(e),0),b-w)),l(b+n-o),f=c(m,o),y=0;y<o;y++)(v=w+y)in m&&u(f,y,m[v]);if(f.length=o,n<o){for(y=w;y<b-o;y++)g=y+n,(v=y+o)in m?m[g]=m[v]:d(m,g);for(y=b;y>b-o+n;y--)d(m,y-1)}else if(n>o)for(y=b-o;y>w;y--)g=y+n-1,(v=y+o-1)in m?m[g]=m[v]:d(m,g);for(y=0;y<n;y++)m[y+w]=arguments[y+2];return m.length=b-o+n,f}})},8309:function(t,e,n){var o=n(9781),r=n(6530).EXISTS,i=n(1702),s=n(3070).f,a=Function.prototype,l=i(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=i(c.exec);o&&!r&&s(a,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(t){return""}}})},8862:function(t,e,n){var o=n(2109),r=n(5005),i=n(2104),s=n(6916),a=n(1702),l=n(7293),c=n(3157),u=n(614),d=n(111),f=n(2190),p=n(206),h=n(133),y=r("JSON","stringify"),v=a(/./.exec),g=a("".charAt),m=a("".charCodeAt),b=a("".replace),w=a(1..toString),_=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,D=/^[\uDC00-\uDFFF]$/,k=!h||l((function(){var t=r("Symbol")();return"[null]"!=y([t])||"{}"!=y({a:t})||"{}"!=y(Object(t))})),E=l((function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")})),B=function(t,e){var n=p(arguments),o=e;if((d(e)||void 0!==t)&&!f(t))return c(e)||(e=function(t,e){if(u(o)&&(e=s(o,this,t,e)),!f(e))return e}),n[1]=e,i(y,null,n)},C=function(t,e,n){var o=g(n,e-1),r=g(n,e+1);return v(x,t)&&!v(D,r)||v(D,t)&&!v(x,o)?"\\u"+w(m(t,0),16):t};y&&o({target:"JSON",stat:!0,arity:3,forced:k||E},{stringify:function(t,e,n){var o=p(arguments),r=i(k?B:y,null,o);return E&&"string"==typeof r?b(r,_,C):r}})},9653:function(t,e,n){"use strict";var o=n(9781),r=n(7854),i=n(1702),s=n(4705),a=n(8052),l=n(2597),c=n(9587),u=n(7976),d=n(2190),f=n(7593),p=n(7293),h=n(8006).f,y=n(1236).f,v=n(3070).f,g=n(863),m=n(3111).trim,b="Number",w=r.Number,_=w.prototype,x=r.TypeError,D=i("".slice),k=i("".charCodeAt),E=function(t){var e=f(t,"number");return"bigint"==typeof e?e:B(e)},B=function(t){var e,n,o,r,i,s,a,l,c=f(t,"number");if(d(c))throw x("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=m(c),43===(e=k(c,0))||45===e){if(88===(n=k(c,2))||120===n)return NaN}else if(48===e){switch(k(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+c}for(s=(i=D(c,2)).length,a=0;a<s;a++)if((l=k(i,a))<48||l>r)return NaN;return parseInt(i,o)}return+c};if(s(b,!w(" 0o1")||!w("0b1")||w("+0x1"))){for(var C,K=function(t){var e=arguments.length<1?0:w(E(t)),n=this;return u(_,n)&&p((function(){g(n)}))?c(Object(e),n,K):e},O=o?h(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),S=0;O.length>S;S++)l(w,C=O[S])&&!l(K,C)&&v(K,C,y(w,C));K.prototype=_,_.constructor=K,a(r,b,K,{constructor:!0})}},3161:function(t,e,n){n(2109)({target:"Number",stat:!0},{isInteger:n(5988)})},9601:function(t,e,n){var o=n(2109),r=n(1574);o({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},9595:function(t,e,n){"use strict";var o=n(2109),r=n(9781),i=n(9026),s=n(9662),a=n(7908),l=n(3070);r&&o({target:"Object",proto:!0,forced:i},{__defineGetter__:function(t,e){l.f(a(this),t,{get:s(e),enumerable:!0,configurable:!0})}})},5003:function(t,e,n){var o=n(2109),r=n(7293),i=n(5656),s=n(1236).f,a=n(9781),l=r((function(){s(1)}));o({target:"Object",stat:!0,forced:!a||l,sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(i(t),e)}})},9337:function(t,e,n){var o=n(2109),r=n(9781),i=n(3887),s=n(5656),a=n(1236),l=n(6135);o({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,n,o=s(t),r=a.f,c=i(o),u={},d=0;c.length>d;)void 0!==(n=r(o,e=c[d++]))&&l(u,e,n);return u}})},6210:function(t,e,n){var o=n(2109),r=n(7293),i=n(1156).f;o({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},9660:function(t,e,n){var o=n(2109),r=n(133),i=n(7293),s=n(5181),a=n(7908);o({target:"Object",stat:!0,forced:!r||i((function(){s.f(1)}))},{getOwnPropertySymbols:function(t){var e=s.f;return e?e(a(t)):[]}})},7941:function(t,e,n){var o=n(2109),r=n(7908),i=n(1956);o({target:"Object",stat:!0,forced:n(7293)((function(){i(1)}))},{keys:function(t){return i(r(t))}})},1539:function(t,e,n){var o=n(1694),r=n(8052),i=n(288);o||r(Object.prototype,"toString",i,{unsafe:!0})},4603:function(t,e,n){var o=n(9781),r=n(7854),i=n(1702),s=n(4705),a=n(9587),l=n(8880),c=n(8006).f,u=n(7976),d=n(7850),f=n(1340),p=n(4706),h=n(2999),y=n(2626),v=n(8052),g=n(7293),m=n(2597),b=n(9909).enforce,w=n(6340),_=n(5112),x=n(9441),D=n(7168),k=_("match"),E=r.RegExp,B=E.prototype,C=r.SyntaxError,K=i(B.exec),O=i("".charAt),S=i("".replace),j=i("".indexOf),P=i("".slice),T=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,A=/a/g,I=new E(M)!==M,L=h.MISSED_STICKY,N=h.UNSUPPORTED_Y;if(s("RegExp",o&&(!I||L||x||D||g((function(){return A[k]=!1,E(M)!=M||E(A)==A||"/a/i"!=E(M,"i")}))))){for(var R=function(t,e){var n,o,r,i,s,c,h=u(B,this),y=d(t),v=void 0===e,g=[],w=t;if(!h&&y&&v&&t.constructor===R)return t;if((y||u(B,t))&&(t=t.source,v&&(e=p(w))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),w=t,x&&"dotAll"in M&&(o=!!e&&j(e,"s")>-1)&&(e=S(e,/s/g,"")),n=e,L&&"sticky"in M&&(r=!!e&&j(e,"y")>-1)&&N&&(e=S(e,/y/g,"")),D&&(t=(i=function(t){for(var e,n=t.length,o=0,r="",i=[],s={},a=!1,l=!1,c=0,u="";o<=n;o++){if("\\"===(e=O(t,o)))e+=O(t,++o);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:K(T,P(t,o+1))&&(o+=2,l=!0),r+=e,c++;continue;case">"===e&&l:if(""===u||m(s,u))throw new C("Invalid capture group name");s[u]=!0,i[i.length]=[u,c],l=!1,u="";continue}l?u+=e:r+=e}return[r,i]}(t))[0],g=i[1]),s=a(E(t,e),h?this:B,R),(o||r||g.length)&&(c=b(s),o&&(c.dotAll=!0,c.raw=R(function(t){for(var e,n=t.length,o=0,r="",i=!1;o<=n;o++)"\\"!==(e=O(t,o))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),r+=e):r+="[\\s\\S]":r+=e+O(t,++o);return r}(t),n)),r&&(c.sticky=!0),g.length&&(c.groups=g)),t!==w)try{l(s,"source",""===w?"(?:)":w)}catch(t){}return s},F=c(E),U=0;F.length>U;)y(R,E,F[U++]);B.constructor=R,R.prototype=B,v(r,"RegExp",R,{constructor:!0})}w("RegExp")},4916:function(t,e,n){"use strict";var o=n(2109),r=n(2261);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},9714:function(t,e,n){"use strict";var o=n(6530).PROPER,r=n(8052),i=n(9670),s=n(1340),a=n(7293),l=n(4706),c="toString",u=RegExp.prototype.toString,d=a((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=o&&u.name!=c;(d||f)&&r(RegExp.prototype,c,(function(){var t=i(this);return"/"+s(t.source)+"/"+s(l(t))}),{unsafe:!0})},2023:function(t,e,n){"use strict";var o=n(2109),r=n(1702),i=n(3929),s=n(4488),a=n(1340),l=n(4964),c=r("".indexOf);o({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~c(a(s(this)),a(i(t)),arguments.length>1?arguments[1]:void 0)}})},8783:function(t,e,n){"use strict";var o=n(8710).charAt,r=n(1340),i=n(9909),s=n(654),a="String Iterator",l=i.set,c=i.getterFor(a);s(String,"String",(function(t){l(this,{type:a,string:r(t),index:0})}),(function(){var t,e=c(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=o(n,r),e.index+=t.length,{value:t,done:!1})}))},6373:function(t,e,n){"use strict";var o=n(2109),r=n(6916),i=n(1702),s=n(4994),a=n(4488),l=n(7466),c=n(1340),u=n(9670),d=n(4326),f=n(7850),p=n(4706),h=n(8173),y=n(8052),v=n(7293),g=n(5112),m=n(6707),b=n(1530),w=n(7651),_=n(9909),x=n(1913),D=g("matchAll"),k="RegExp String Iterator",E=_.set,B=_.getterFor(k),C=RegExp.prototype,K=TypeError,O=i("".indexOf),S=i("".matchAll),j=!!S&&!v((function(){S("a",/./)})),P=s((function(t,e,n,o){E(this,{type:k,regexp:t,string:e,global:n,unicode:o,done:!1})}),"RegExp String",(function(){var t=B(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,n=t.string,o=w(e,n);return null===o?{value:void 0,done:t.done=!0}:t.global?(""===c(o[0])&&(e.lastIndex=b(n,l(e.lastIndex),t.unicode)),{value:o,done:!1}):(t.done=!0,{value:o,done:!1})})),T=function(t){var e,n,o,r=u(this),i=c(t),s=m(r,RegExp),a=c(p(r));return e=new s(s===RegExp?r.source:r,a),n=!!~O(a,"g"),o=!!~O(a,"u"),e.lastIndex=l(r.lastIndex),new P(e,i,n,o)};o({target:"String",proto:!0,forced:j},{matchAll:function(t){var e,n,o,i,s=a(this);if(null!=t){if(f(t)&&(e=c(a(p(t))),!~O(e,"g")))throw K("`.matchAll` does not allow non-global regexes");if(j)return S(s,t);if(void 0===(o=h(t,D))&&x&&"RegExp"==d(t)&&(o=T),o)return r(o,t,s)}else if(j)return S(s,t);return n=c(s),i=new RegExp(t,"g"),x?r(T,i,n):i[D](n)}}),x||D in C||y(C,D,T)},4723:function(t,e,n){"use strict";var o=n(6916),r=n(7007),i=n(9670),s=n(7466),a=n(1340),l=n(4488),c=n(8173),u=n(1530),d=n(7651);r("match",(function(t,e,n){return[function(e){var n=l(this),r=null==e?void 0:c(e,t);return r?o(r,e,n):new RegExp(e)[t](a(n))},function(t){var o=i(this),r=a(t),l=n(e,o,r);if(l.done)return l.value;if(!o.global)return d(o,r);var c=o.unicode;o.lastIndex=0;for(var f,p=[],h=0;null!==(f=d(o,r));){var y=a(f[0]);p[h]=y,""===y&&(o.lastIndex=u(r,s(o.lastIndex),c)),h++}return 0===h?null:p}]}))},5306:function(t,e,n){"use strict";var o=n(2104),r=n(6916),i=n(1702),s=n(7007),a=n(7293),l=n(9670),c=n(614),u=n(9303),d=n(7466),f=n(1340),p=n(4488),h=n(1530),y=n(8173),v=n(647),g=n(7651),m=n(5112)("replace"),b=Math.max,w=Math.min,_=i([].concat),x=i([].push),D=i("".indexOf),k=i("".slice),E="$0"==="a".replace(/./,"$0"),B=!!/./[m]&&""===/./[m]("a","$0");s("replace",(function(t,e,n){var i=B?"$":"$0";return[function(t,n){var o=p(this),i=null==t?void 0:y(t,m);return i?r(i,t,o,n):r(e,f(o),t,n)},function(t,r){var s=l(this),a=f(t);if("string"==typeof r&&-1===D(r,i)&&-1===D(r,"$<")){var p=n(e,s,a,r);if(p.done)return p.value}var y=c(r);y||(r=f(r));var m=s.global;if(m){var E=s.unicode;s.lastIndex=0}for(var B=[];;){var C=g(s,a);if(null===C)break;if(x(B,C),!m)break;""===f(C[0])&&(s.lastIndex=h(a,d(s.lastIndex),E))}for(var K,O="",S=0,j=0;j<B.length;j++){for(var P=f((C=B[j])[0]),T=b(w(u(C.index),a.length),0),M=[],A=1;A<C.length;A++)x(M,void 0===(K=C[A])?K:String(K));var I=C.groups;if(y){var L=_([P],M,T,a);void 0!==I&&x(L,I);var N=f(o(r,void 0,L))}else N=v(P,a,T,M,I,r);T>=S&&(O+=k(a,S,T)+N,S=T+P.length)}return O+k(a,S)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||B)},3123:function(t,e,n){"use strict";var o=n(2104),r=n(6916),i=n(1702),s=n(7007),a=n(7850),l=n(9670),c=n(4488),u=n(6707),d=n(1530),f=n(7466),p=n(1340),h=n(8173),y=n(1589),v=n(7651),g=n(2261),m=n(2999),b=n(7293),w=m.UNSUPPORTED_Y,_=4294967295,x=Math.min,D=[].push,k=i(/./.exec),E=i(D),B=i("".slice);s("split",(function(t,e,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=p(c(this)),s=void 0===n?_:n>>>0;if(0===s)return[];if(void 0===t)return[i];if(!a(t))return r(e,i,t,s);for(var l,u,d,f=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,m=new RegExp(t.source,h+"g");(l=r(g,m,i))&&!((u=m.lastIndex)>v&&(E(f,B(i,v,l.index)),l.length>1&&l.index<i.length&&o(D,f,y(l,1)),d=l[0].length,v=u,f.length>=s));)m.lastIndex===l.index&&m.lastIndex++;return v===i.length?!d&&k(m,"")||E(f,""):E(f,B(i,v)),f.length>s?y(f,0,s):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:r(e,this,t,n)}:e,[function(e,n){var o=c(this),s=null==e?void 0:h(e,t);return s?r(s,e,o,n):r(i,p(o),e,n)},function(t,o){var r=l(this),s=p(t),a=n(i,r,s,o,i!==e);if(a.done)return a.value;var c=u(r,RegExp),h=r.unicode,y=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(w?"g":"y"),g=new c(w?"^(?:"+r.source+")":r,y),m=void 0===o?_:o>>>0;if(0===m)return[];if(0===s.length)return null===v(g,s)?[s]:[];for(var b=0,D=0,k=[];D<s.length;){g.lastIndex=w?0:D;var C,K=v(g,w?B(s,D):s);if(null===K||(C=x(f(g.lastIndex+(w?D:0)),s.length))===b)D=d(s,D,h);else{if(E(k,B(s,b,D)),k.length===m)return k;for(var O=1;O<=K.length-1;O++)if(E(k,K[O]),k.length===m)return k;D=b=C}}return E(k,B(s,b)),k}]}),!!b((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),w)},3210:function(t,e,n){"use strict";var o=n(2109),r=n(3111).trim;o({target:"String",proto:!0,forced:n(6091)("trim")},{trim:function(){return r(this)}})},4032:function(t,e,n){"use strict";var o=n(2109),r=n(7854),i=n(6916),s=n(1702),a=n(1913),l=n(9781),c=n(133),u=n(7293),d=n(2597),f=n(7976),p=n(9670),h=n(5656),y=n(4948),v=n(1340),g=n(9114),m=n(30),b=n(1956),w=n(8006),_=n(1156),x=n(5181),D=n(1236),k=n(3070),E=n(6048),B=n(5296),C=n(8052),K=n(2309),O=n(6200),S=n(3501),j=n(9711),P=n(5112),T=n(6061),M=n(7235),A=n(6532),I=n(8003),L=n(9909),N=n(2092).forEach,R=O("hidden"),F="Symbol",U=L.set,z=L.getterFor(F),H=Object.prototype,V=r.Symbol,G=V&&V.prototype,Y=r.TypeError,W=r.QObject,X=D.f,q=k.f,$=_.f,J=B.f,Q=s([].push),Z=K("symbols"),tt=K("op-symbols"),et=K("wks"),nt=!W||!W.prototype||!W.prototype.findChild,ot=l&&u((function(){return 7!=m(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var o=X(H,e);o&&delete H[e],q(t,e,n),o&&t!==H&&q(H,e,o)}:q,rt=function(t,e){var n=Z[t]=m(G);return U(n,{type:F,tag:t,description:e}),l||(n.description=e),n},it=function(t,e,n){t===H&&it(tt,e,n),p(t);var o=y(e);return p(n),d(Z,o)?(n.enumerable?(d(t,R)&&t[R][o]&&(t[R][o]=!1),n=m(n,{enumerable:g(0,!1)})):(d(t,R)||q(t,R,g(1,{})),t[R][o]=!0),ot(t,o,n)):q(t,o,n)},st=function(t,e){p(t);var n=h(e),o=b(n).concat(ut(n));return N(o,(function(e){l&&!i(at,n,e)||it(t,e,n[e])})),t},at=function(t){var e=y(t),n=i(J,this,e);return!(this===H&&d(Z,e)&&!d(tt,e))&&(!(n||!d(this,e)||!d(Z,e)||d(this,R)&&this[R][e])||n)},lt=function(t,e){var n=h(t),o=y(e);if(n!==H||!d(Z,o)||d(tt,o)){var r=X(n,o);return!r||!d(Z,o)||d(n,R)&&n[R][o]||(r.enumerable=!0),r}},ct=function(t){var e=$(h(t)),n=[];return N(e,(function(t){d(Z,t)||d(S,t)||Q(n,t)})),n},ut=function(t){var e=t===H,n=$(e?tt:h(t)),o=[];return N(n,(function(t){!d(Z,t)||e&&!d(H,t)||Q(o,Z[t])})),o};c||(C(G=(V=function(){if(f(G,this))throw Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=j(t),n=function(t){this===H&&i(n,tt,t),d(this,R)&&d(this[R],e)&&(this[R][e]=!1),ot(this,e,g(1,t))};return l&&nt&&ot(H,e,{configurable:!0,set:n}),rt(e,t)}).prototype,"toString",(function(){return z(this).tag})),C(V,"withoutSetter",(function(t){return rt(j(t),t)})),B.f=at,k.f=it,E.f=st,D.f=lt,w.f=_.f=ct,x.f=ut,T.f=function(t){return rt(P(t),t)},l&&(q(G,"description",{configurable:!0,get:function(){return z(this).description}}),a||C(H,"propertyIsEnumerable",at,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),N(b(et),(function(t){M(t)})),o({target:F,stat:!0,forced:!c},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),o({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(t,e){return void 0===e?m(t):st(m(t),e)},defineProperty:it,defineProperties:st,getOwnPropertyDescriptor:lt}),o({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ct}),A(),I(V,F),S[R]=!0},1817:function(t,e,n){"use strict";var o=n(2109),r=n(9781),i=n(7854),s=n(1702),a=n(2597),l=n(614),c=n(7976),u=n(1340),d=n(3070).f,f=n(9920),p=i.Symbol,h=p&&p.prototype;if(r&&l(p)&&(!("description"in h)||void 0!==p().description)){var y={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),e=c(h,this)?new p(t):void 0===t?p():p(t);return""===t&&(y[e]=!0),e};f(v,p),v.prototype=h,h.constructor=v;var g="Symbol(test)"==String(p("test")),m=s(h.toString),b=s(h.valueOf),w=/^Symbol\((.*)\)[^)]+$/,_=s("".replace),x=s("".slice);d(h,"description",{configurable:!0,get:function(){var t=b(this),e=m(t);if(a(y,t))return"";var n=g?x(e,7,-1):_(e,w,"$1");return""===n?void 0:n}}),o({global:!0,constructor:!0,forced:!0},{Symbol:v})}},763:function(t,e,n){var o=n(2109),r=n(5005),i=n(2597),s=n(1340),a=n(2309),l=n(735),c=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=s(t);if(i(c,e))return c[e];var n=r("Symbol")(e);return c[e]=n,u[n]=e,n}})},2165:function(t,e,n){n(7235)("iterator")},2526:function(t,e,n){n(4032),n(763),n(6620),n(8862),n(9660)},6620:function(t,e,n){var o=n(2109),r=n(2597),i=n(2190),s=n(6330),a=n(2309),l=n(735),c=a("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{keyFor:function(t){if(!i(t))throw TypeError(s(t)+" is not a symbol");if(r(c,t))return c[t]}})},3728:function(t,e,n){n(6373)},4747:function(t,e,n){var o=n(7854),r=n(8324),i=n(8509),s=n(8533),a=n(8880),l=function(t){if(t&&t.forEach!==s)try{a(t,"forEach",s)}catch(e){t.forEach=s}};for(var c in r)r[c]&&l(o[c]&&o[c].prototype);l(i)},3948:function(t,e,n){var o=n(7854),r=n(8324),i=n(8509),s=n(6992),a=n(8880),l=n(5112),c=l("iterator"),u=l("toStringTag"),d=s.values,f=function(t,e){if(t){if(t[c]!==d)try{a(t,c,d)}catch(e){t[c]=d}if(t[u]||a(t,u,e),r[e])for(var n in s)if(t[n]!==s[n])try{a(t,n,s[n])}catch(e){t[n]=s[n]}}};for(var p in r)f(o[p]&&o[p].prototype,p);f(i,"DOMTokenList")}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return function(){"use strict";function t(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||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 e(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(o),n.d(o,{default:function(){return w}}),n(3210),n(4916),n(5306),n(2772),n(8309),n(3123),n(1539),n(9714),n(561),n(9600),n(9595),n(7042),"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",n=t.Element.prototype,o=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new s("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.");return i.call(t,e)},l=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],o=0,i=n.length;o<i;o++)this.push(n[o]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=l.prototype=[],u=function(){return new l(this)};if(s.prototype=Error.prototype,c.item=function(t){return this[t]||null},c.contains=function(t){return~a(this,t+"")},c.add=function(){var t,e=arguments,n=0,o=e.length,r=!1;do{t=e[n]+"",~a(this,t)||(this.push(t),r=!0)}while(++n<o);r&&this._updateClassName()},c.remove=function(){var t,e,n=arguments,o=0,r=n.length,i=!1;do{for(t=n[o]+"",e=a(this,t);~e;)this.splice(e,1),i=!0,e=a(this,t)}while(++o<r);i&&this._updateClassName()},c.toggle=function(t,e){var n=this.contains(t),o=n?!0!==e&&"remove":!1!==e&&"add";return o&&this[o](t),!0===e||!1===e?e:!n},c.replace=function(t,e){var n=a(t+"");~n&&(this.splice(n,1,e),this._updateClassName())},c.toString=function(){return this.join(" ")},o.defineProperty){var d={get:u,enumerable:!0,configurable:!0};try{o.defineProperty(n,e,d)}catch(t){void 0!==t.number&&-2146823252!==t.number||(d.enumerable=!1,o.defineProperty(n,e,d))}}else o.prototype.__defineGetter__&&n.__defineGetter__(e,u)}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,o=arguments.length;for(n=0;n<o;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),o=n.indexOf(t+"");~o&&(n=n.slice(o),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),t=null}()),n(7327),n(2222),n(7941),n(4603),n(3728),n(2707),n(6699),n(2023),n(4747),n(9601),n(1249),n(1038),n(8783),n(2526),n(5003),n(9337),n(1817),n(2165),n(6992),n(3948),n(3161),n(9653),n(4723),n(5827),n(6210);var l=function(){function n(t){var e=t.getOptions,o=t.getCaretPosition,r=t.getCaretPositionEnd,i=t.dispatch;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),a(this,"isStandardButton",(function(t){return t&&!("{"===t[0]&&"}"===t[t.length-1])})),this.getOptions=e,this.getCaretPosition=o,this.getCaretPositionEnd=r,this.dispatch=i,n.bindMethods(n,this)}var o,r,l;return o=n,l=[{key:"bindMethods",value:function(t,n){var o,r=function(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=e(t))){o&&(t=o);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,l=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==o.return||o.return()}finally{if(l)throw s}}}}(Object.getOwnPropertyNames(t.prototype));try{for(r.s();!(o=r.n()).done;){var i=o.value;"constructor"===i||"bindMethods"===i||(n[i]=n[i].bind(n))}}catch(t){r.e(t)}finally{r.f()}}}],(r=[{key:"getButtonType",value:function(t){return t.includes("{")&&t.includes("}")&&"{//}"!==t?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(t){var e=this.getButtonType(t),n=t.replace("{","").replace("}",""),o="";return"standardBtn"!==e&&(o=" hg-button-".concat(n)),"hg-".concat(e).concat(o)}},{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","{forwarddelete}":"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(t,e,n){return(e=n?Object.assign({},this.getDefaultDiplay(),e):e||this.getDefaultDiplay())[t]||t}},{key:"getUpdatedInput",value:function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this.getOptions(),s=[n,o,r],a=e;return("{bksp}"===t||"{backspace}"===t)&&a.length>0?a=this.removeAt.apply(this,[a].concat(s)):("{delete}"===t||"{forwarddelete}"===t)&&a.length>0?a=this.removeForwardsAt.apply(this,[a].concat(s)):"{space}"===t?a=this.addStringAt.apply(this,[a," "].concat(s)):"{tab}"!==t||"boolean"==typeof i.tabCharOnTab&&!1===i.tabCharOnTab?"{enter}"!==t&&"{numpadenter}"!==t||!i.newLineOnEnter?t.includes("numpad")&&Number.isInteger(Number(t[t.length-2]))?a=this.addStringAt.apply(this,[a,t[t.length-2]].concat(s)):"{numpaddivide}"===t?a=this.addStringAt.apply(this,[a,"/"].concat(s)):"{numpadmultiply}"===t?a=this.addStringAt.apply(this,[a,"*"].concat(s)):"{numpadsubtract}"===t?a=this.addStringAt.apply(this,[a,"-"].concat(s)):"{numpadadd}"===t?a=this.addStringAt.apply(this,[a,"+"].concat(s)):"{numpaddecimal}"===t?a=this.addStringAt.apply(this,[a,"."].concat(s)):"{"===t||"}"===t?a=this.addStringAt.apply(this,[a,t].concat(s)):t.includes("{")||t.includes("}")||(a=this.addStringAt.apply(this,[a,t].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(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.updateCaretPosAction(t,e);this.dispatch((function(t){t.setCaretPosition(n)}))}},{key:"updateCaretPosAction",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getOptions(),o=this.getCaretPosition();return null!=o&&(e?o>0&&(o-=t):o+=t),n.debug&&console.log("Caret at:",o),o}},{key:"addStringAt",value:function(t,e){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return o||0===o?(n=[t.slice(0,o),e,t.slice(r)].join(""),this.isMaxLengthReached()||i&&this.updateCaretPos(e.length)):n=t+e,n}},{key:"removeAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===o)return t;if(n===o){var i=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&n>=0?t.substring(n-2,n).match(i)?(e=t.substr(0,n-2)+t.substr(n),r&&this.updateCaretPos(2,!0)):(e=t.substr(0,n-1)+t.substr(n),r&&this.updateCaretPos(1,!0)):t.slice(-2).match(i)?(e=t.slice(0,-2),r&&this.updateCaretPos(2,!0)):(e=t.slice(0,-1),r&&this.updateCaretPos(1,!0))}else e=t.slice(0,n)+t.slice(o),r&&this.dispatch((function(t){t.setCaretPosition(n)}));return e}},{key:"removeForwardsAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==t||!t.length||null===n)return t;if(n===o){var i=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g,s=t.substring(n,n+2),a=s.match(i);e=a?t.substr(0,n)+t.substr(n+2):t.substr(0,n)+t.substr(n+1)}else e=t.slice(0,n)+t.slice(o),r&&this.dispatch((function(t){t.setCaretPosition(n)}));return e}},{key:"handleMaxLength",value:function(t,e){var n=this.getOptions(),o=n.maxLength,r=t[n.inputName||"default"],s=e.length-1>=o;if(e.length<=r.length)return!1;if(Number.isInteger(o))return n.debug&&console.log("maxLength (num) reached:",s),s?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if("object"===i(o)){var a=e.length-1>=o[n.inputName||"default"];return n.debug&&console.log("maxLength (obj) reached:",a),a?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{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(t){return t?t.toLowerCase().trim().split(/[.\-_\s]/g).reduce((function(t,e){return e.length?t+e[0].toUpperCase()+e.slice(1):t})):""}},{key:"chunkArray",value:function(e,n){return t(Array(Math.ceil(e.length/n))).map((function(t,o){return e.slice(n*o,n+n*o)}))}}])&&s(o.prototype,r),l&&s(o,l),Object.defineProperty(o,"prototype",{writable:!1}),n}();a(l,"noop",(function(){}));var c=l;function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var d=function(){function t(e){var n=e.dispatch,o=e.getOptions;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dispatch=n,this.getOptions=o,c.bindMethods(t,this)}var e,n;return e=t,(n=[{key:"handleHighlightKeyDown",value:function(t){var e=this.getOptions(),n=this.getSimpleKeyboardLayoutKey(t);this.dispatch((function(o){var r,i,s=o.getButtonElement(n),a=o.getButtonElement("{".concat(n,"}"));if(s)r=s,i=n;else{if(!a)return;r=a,i="{".concat(n,"}")}r&&(r.style.backgroundColor=e.physicalKeyboardHighlightBgColor||"#dadce4",r.style.color=e.physicalKeyboardHighlightTextColor||"black",e.physicalKeyboardHighlightPress&&(e.physicalKeyboardHighlightPressUsePointerEvents?r.onpointerdown():e.physicalKeyboardHighlightPressUseClick?r.click():o.handleButtonClicked(i,t)))}))}},{key:"handleHighlightKeyUp",value:function(t){var e=this.getOptions(),n=this.getSimpleKeyboardLayoutKey(t);this.dispatch((function(t){var o=t.getButtonElement(n)||t.getButtonElement("{".concat(n,"}"));o&&o.removeAttribute&&(o.removeAttribute("style"),e.physicalKeyboardHighlightPressUsePointerEvents&&o.onpointerup())}))}},{key:"getSimpleKeyboardLayoutKey",value:function(t){var e,n,o=t.code||t.key||this.keyCodeToKey(null==t?void 0:t.keyCode);return(n=null!=o&&o.includes("Numpad")||null!=o&&o.includes("Shift")||null!=o&&o.includes("Space")||null!=o&&o.includes("Backspace")||null!=o&&o.includes("Control")||null!=o&&o.includes("Alt")||null!=o&&o.includes("Meta")?t.code||"":t.key||this.keyCodeToKey(null==t?void 0:t.keyCode)||"").length>1?null===(e=n)||void 0===e?void 0:e.toLowerCase():n}},{key:"keyCodeToKey",value:function(t){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[t]}}])&&u(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var p=function(){function t(e){var n,o=e.utilities;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),(n="pageIndex")in this?Object.defineProperty(this,n,{value:0,enumerable:!0,configurable:!0,writable:!0}):this[n]=0,this.utilities=o,c.bindMethods(t,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5}var e,n;return e=t,(n=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(t){var e=this,n=t.candidateValue,o=t.targetElement,r=t.onSelect;if(n&&n.length){var i=this.utilities.chunkArray(n.split(" "),this.pageSize);this.renderPage({candidateListPages:i,targetElement:o,pageIndex:this.pageIndex,nbPages:i.length,onItemSelected:function(t,n){r(t,n),e.destroy()}})}}},{key:"renderPage",value:function(t){var e,n=this,o=t.candidateListPages,r=t.targetElement,i=t.pageIndex,s=t.nbPages,a=t.onItemSelected;null===(e=this.candidateBoxElement)||void 0===e||e.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var l=document.createElement("ul");l.className="hg-candidate-box-list",o[i].forEach((function(t){var e=document.createElement("li"),n=function(){var t=new MouseEvent("click");return Object.defineProperty(t,"target",{value:e}),t};e.className="hg-candidate-box-list-item",e.textContent=t,e.onclick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n();return a(t,e)},l.appendChild(e)}));var c=i>0,u=document.createElement("div");u.classList.add("hg-candidate-box-prev"),c&&u.classList.add("hg-candidate-box-btn-active"),u.onclick=function(){c&&n.renderPage({candidateListPages:o,targetElement:r,pageIndex:i-1,nbPages:s,onItemSelected:a})},this.candidateBoxElement.appendChild(u),this.candidateBoxElement.appendChild(l);var d=i<s-1,f=document.createElement("div");f.classList.add("hg-candidate-box-next"),d&&f.classList.add("hg-candidate-box-btn-active"),f.onclick=function(){d&&n.renderPage({candidateListPages:o,targetElement:r,pageIndex:i+1,nbPages:s,onItemSelected:a})},this.candidateBoxElement.appendChild(f),r.prepend(this.candidateBoxElement)}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function h(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(t)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function m(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function(){function t(e,n){var o=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),b(this,"defaultName","default"),b(this,"activeInputElement",null),b(this,"handleParams",(function(t,e){var n,o,r;if("string"==typeof t)n=t.split(".").join(""),o=document.querySelector(".".concat(n)),r=e;else if(t instanceof HTMLDivElement){if(!t.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");n=t.className.split(" ")[0],o=t,r=e}else n="simple-keyboard",o=document.querySelector(".".concat(n)),r=t;return{keyboardDOMClass:n,keyboardDOM:o,options:r}})),b(this,"getOptions",(function(){return o.options})),b(this,"getCaretPosition",(function(){return o.caretPosition})),b(this,"getCaretPositionEnd",(function(){return o.caretPositionEnd})),b(this,"registerModule",(function(t,e){o.modules[t]||(o.modules[t]={}),e(o.modules[t])})),b(this,"getKeyboardClassString",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=[o.keyboardDOMClass].concat(e).filter((function(t){return!!t}));return r.join(" ")})),"undefined"!=typeof window){var r=this.handleParams(e,n),i=r.keyboardDOMClass,s=r.keyboardDOM,a=r.options,l=void 0===a?{}:a;this.utilities=new c({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=s,this.options=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},l),this.keyboardPluginClasses="",c.bindMethods(t,this);var u=this.options.inputName,f=void 0===u?this.defaultName:u;if(this.input={},this.input[f]="",this.keyboardDOMClass=i,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new d({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new p({utilities:this.utilities}):null,!this.keyboardDOM)throw console.warn('".'.concat(i,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}}var e,n;return e=t,(n=[{key:"setCaretPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;this.caretPosition=t,this.caretPositionEnd=e}},{key:"getInputCandidates",value:function(t){var e=this,n=this.options,o=n.layoutCandidates,r=n.layoutCandidatesCaseSensitiveMatch;if(!o||"object"!==v(o))return{};var i=Object.keys(o).filter((function(n){var o=t.substring(0,e.getCaretPositionEnd()||0)||t,i=new RegExp("".concat(n,"$"),r?"g":"gi");return!!h(o.matchAll(i)).length}));if(i.length>1){var s=i.sort((function(t,e){return e.length-t.length}))[0];return{candidateKey:s,candidateValue:o[s]}}if(i.length){var a=i[0];return{candidateKey:a,candidateValue:o[a]}}return{}}},{key:"showCandidatesBox",value:function(t,e,n){var o=this;this.candidateBox&&this.candidateBox.show({candidateValue:e,targetElement:n,onSelect:function(e,n){var r=o.options.layoutCandidatesCaseSensitiveMatch,i=e.normalize("NFD"),s=o.getInput(o.options.inputName,!0),a=o.getCaretPositionEnd()||0,l=s.substring(0,a||0)||s,c=new RegExp("".concat(t,"$"),r?"g":"gi"),u=l.replace(c,i),d=s.replace(l,u),f=u.length-l.length,p=(a||s.length)+f;p<0&&(p=0),o.setInput(d,o.options.inputName,!0),o.setCaretPosition(p),"function"==typeof o.options.onChange&&o.options.onChange(o.getInput(o.options.inputName,!0),n),"function"==typeof o.options.onChangeAll&&o.options.onChangeAll(o.getAllInputs(),n)}})}},{key:"handleButtonClicked",value:function(t,e){var n=this.options,o=n.inputName,r=void 0===o?this.defaultName:o,i=n.debug;if("{//}"!==t){this.input[r]||(this.input[r]="");var s=this.utilities.getUpdatedInput(t,this.input[r],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(t)&&this.activeInputElement&&this.input[r]&&this.input[r]===s&&0===this.caretPosition&&this.caretPositionEnd===s.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(t,e);if("function"==typeof this.options.onKeyPress&&this.options.onKeyPress(t,e),this.input[r]!==s&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(s))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,s))return;var a=this.utilities.getUpdatedInput(t,this.input[r],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(a,this.options.inputName,!0),i&&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),e),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs(),e),null!=e&&e.target&&this.options.enableLayoutCandidates){var l,c=this.getInputCandidates(s),u=c.candidateKey,d=c.candidateValue;u&&d?this.showCandidatesBox(u,d,this.keyboardDOM):null===(l=this.candidateBox)||void 0===l||l.destroy()}}i&&console.log("Key pressed:",t)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(t){this.options.syncInstanceInputs?this.dispatch((function(e){e.isMouseHold=t})):this.isMouseHold=t}},{key:"handleButtonMouseDown",value:function(t,e){var n=this;e&&(this.options.preventMouseDownDefault&&e.preventDefault(),this.options.stopMouseDownPropagation&&e.stopPropagation(),e.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout((function(){(n.getMouseHold()&&(!t.includes("{")&&!t.includes("}")||"{delete}"===t||"{backspace}"===t||"{bksp}"===t||"{space}"===t||"{tab}"===t)||"{arrowright}"===t||"{arrowleft}"===t||"{arrowup}"===t||"{arrowdown}"===t)&&(n.options.debug&&console.log("Button held:",t),n.handleButtonHold(t)),clearTimeout(n.holdTimeout)}),500))}},{key:"handleButtonMouseUp",value:function(t,e){var n=this;e&&(this.options.preventMouseUpDefault&&e.preventDefault&&e.preventDefault(),this.options.stopMouseUpPropagation&&e.stopPropagation&&e.stopPropagation(),!(e.target===this.keyboardDOM||e.target&&this.keyboardDOM.contains(e.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(e.target===this.candidateBox.candidateBoxElement||e.target&&this.candidateBox.candidateBoxElement.contains(e.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons((function(t){t.classList.remove(n.activeButtonClass)})),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),t&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(t)}},{key:"handleKeyboardContainerMouseDown",value:function(t){this.options.preventMouseDownDefault&&t.preventDefault()}},{key:"handleButtonHold",value:function(t){var e=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout((function(){e.getMouseHold()?(e.handleButtonClicked(t),e.handleButtonHold(t)):clearTimeout(e.holdInteractionTimeout)}),100)}},{key:"syncInstanceInputs",value:function(){var t=this;this.dispatch((function(e){e.replaceInput(t.input),e.setCaretPosition(t.caretPosition,t.caretPositionEnd)}))}},{key:"clearInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName;this.input[t]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.options.syncInstanceInputs&&!e&&this.syncInstanceInputs(),this.options.rtl){var n=this.input[t].replace("","").replace("","");return""+n+""}return this.input[t]}},{key:"getAllInputs",value:function(){var t=this,e={};return Object.keys(this.input).forEach((function(n){e[n]=t.getInput(n,!0)})),e}},{key:"setInput",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0;this.input[e]=t,!n&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(t){this.input=t}},{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.changedOptions(t);this.options=Object.assign(this.options,t),e.length&&(this.options.debug&&console.log("changedOptions",e),this.onSetOptions(e),this.render())}},{key:"changedOptions",value:function(t){var e=this;return Object.keys(t).filter((function(n){return JSON.stringify(t[n])!==JSON.stringify(e.options[n])}))}},{key:"onSetOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(t.includes("layoutCandidatesPageSize")||t.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new p({utilities:this.utilities}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(t){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(e){t(window.SimpleKeyboardInstances[e],e)}))}},{key:"addButtonTheme",value:function(t,e){var n=this;e&&t&&(t.split(" ").forEach((function(o){e.split(" ").forEach((function(e){n.options.buttonTheme||(n.options.buttonTheme=[]);var r=!1;n.options.buttonTheme.map((function(t){if(null!=t&&t.class.split(" ").includes(e)){r=!0;var n=t.buttons.split(" ");n.includes(o)||(r=!0,n.push(o),t.buttons=n.join(" "))}return t})),r||n.options.buttonTheme.push({class:e,buttons:t})}))})),this.render())}},{key:"removeButtonTheme",value:function(t,e){var n=this;if(!t&&!e)return this.options.buttonTheme=[],void this.render();t&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(t.split(" ").forEach((function(t){var o,r;null===(o=n.options)||void 0===o||null===(r=o.buttonTheme)||void 0===r||r.map((function(o,r){if(o&&e&&e.includes(o.class)||!e){var i,s,a=null===(i=o)||void 0===i?void 0:i.buttons.split(" ").filter((function(e){return e!==t}));o&&null!=a&&a.length?o.buttons=a.join(" "):(null===(s=n.options.buttonTheme)||void 0===s||s.splice(r,1),o=null)}return o}))})),this.render())}},{key:"getButtonElement",value:function(t){var e,n=this.buttonElements[t];return n&&(e=n.length>1?n:n[0]),e}},{key:"inputPatternIsValid",value:function(t){var e,n=this.options.inputPattern;if((e=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&t){var o=e.test(t);return this.options.debug&&console.log('inputPattern ("'.concat(e,'"): ').concat(o?"passed":"did not pass!")),o}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),document.addEventListener("select",this.handleSelect),document.addEventListener("selectionchange",this.handleSelectionChange))}},{key:"handleKeyUp",value:function(t){this.caretEventHandler(t),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(t)}},{key:"handleKeyDown",value:function(t){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(t)}},{key:"handleMouseUp",value:function(t){this.caretEventHandler(t)}},{key:"handleTouchEnd",value:function(t){this.caretEventHandler(t)}},{key:"handleSelect",value:function(t){this.caretEventHandler(t)}},{key:"handleSelectionChange",value:function(t){this.caretEventHandler(t)}},{key:"caretEventHandler",value:function(t){var e,n=this;t.target.tagName&&(e=t.target.tagName.toLowerCase()),this.dispatch((function(o){var r=t.target===o.keyboardDOM||t.target&&o.keyboardDOM.contains(t.target);n.options.syncInstanceInputs&&Array.isArray(t.path)&&(r=t.path.some((function(t){var e;return null==t||null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-skInstance")}))),("textarea"===e||"input"===e&&["text","search","url","tel","password"].includes(t.target.type))&&!o.options.disableCaretPositioning?(o.setCaretPosition(t.target.selectionStart,t.target.selectionEnd),n.activeInputElement=t.target,o.options.debug&&console.log("Caret at: ",o.getCaretPosition(),o.getCaretPositionEnd(),t&&t.target.tagName.toLowerCase(),"(".concat(o.keyboardDOMClass,")"))):!o.options.disableCaretPositioning&&r||"selectionchange"===(null==t?void 0:t.type)||(o.setCaretPosition(null),n.activeInputElement=null,o.options.debug&&console.log('Caret position reset due to "'.concat(null==t?void 0:t.type,'" event'),t))}))}},{key:"recurseButtons",value:function(t){var e=this;t&&Object.keys(this.buttonElements).forEach((function(n){return e.buttonElements[n].forEach(t)}))}},{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.removeEventListener("select",this.handleSelect),document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons((function(t){t&&(t.onpointerdown=null,t.onpointerup=null,t.onpointercancel=null,t.ontouchstart=null,t.ontouchend=null,t.ontouchcancel=null,t.onclick=null,t.onmousedown=null,t.onmouseup=null,t.remove(),t=null)})),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(t){var e=this.options.buttonTheme,n=[];return Array.isArray(e)&&e.forEach((function(e){if(e&&e.class&&"string"==typeof e.class&&e.buttons&&"string"==typeof e.buttons){var o=e.class.split(" ");e.buttons.split(" ").includes(t)&&(n=[].concat(h(n),h(o)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',e)})),n}},{key:"setDOMButtonAttributes",value:function(t,e){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(t)&&e(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(t){if(t.target.classList.contains("hg-button"))return t.preventDefault(),t.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(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(this),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(this)}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var t=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach((function(e){var n=new e(t);n.init&&n.init(t)})),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(t,e){return!!this.modules[t]&&this.modules[t][e]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(t,e,n,o){var r=this,i=Array.from(t.children),s=0;return i.length&&n.forEach((function(n,a){var l=o[a];if(!(l&&l>n))return!1;var c=n-s,u=l-s,d=document.createElement("div");d.className+="hg-button-container";var f="".concat(r.options.layoutName,"-r").concat(e,"c").concat(a);d.setAttribute("data-skUID",f);var p=i.splice(c,u-c+1);s=u-c,p.forEach((function(t){return d.appendChild(t)})),i.splice(c,0,d),t.innerHTML="",i.forEach((function(e){return t.appendChild(e)})),r.options.debug&&console.log("rowDOMContainer",p,c,u,s+1)})),t}},{key:"render",value:function(){var t=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var e="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}"]},o=this.options.useTouchEvents||!1,r=o?"hg-touch-events":"",i=this.options.useMouseEvents||!1,s=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,e,this.keyboardPluginClasses,r),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach((function(e,n){var r=e.split(" ");t.options.excludeFromLayout&&t.options.excludeFromLayout[t.options.layoutName||t.defaultName]&&(r=r.filter((function(e){return t.options.excludeFromLayout&&!t.options.excludeFromLayout[t.options.layoutName||t.defaultName].includes(e)})));var a=document.createElement("div");a.className+="hg-row";var l=[],c=[];r.forEach((function(e,r){var u,d=!s&&"string"==typeof e&&e.length>1&&0===e.indexOf("["),f=!s&&"string"==typeof e&&e.length>1&&e.indexOf("]")===e.length-1;d&&(l.push(r),e=e.replace(/\[/g,"")),f&&(c.push(r),e=e.replace(/\]/g,""));var p=t.utilities.getButtonClass(e),y=t.utilities.getButtonDisplayName(e,t.options.display,t.options.mergeDisplay),v=t.options.useButtonTag?"button":"div",g=document.createElement(v);g.className+="hg-button ".concat(p),(u=g.classList).add.apply(u,h(t.getButtonThemeClasses(e))),t.setDOMButtonAttributes(e,(function(t,e){g.setAttribute(t,e)})),t.activeButtonClass="hg-activeButton",!t.utilities.pointerEventsSupported()||o||i?o?(g.ontouchstart=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},g.ontouchend=function(n){t.handleButtonMouseUp(e,n)},g.ontouchcancel=function(n){t.handleButtonMouseUp(e,n)}):(g.onclick=function(n){t.setMouseHold(!1),"function"!=typeof t.options.onKeyReleased&&t.handleButtonClicked(e,n)},g.onmousedown=function(n){"function"!=typeof t.options.onKeyReleased||t.isMouseHold||t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},g.onmouseup=function(n){t.handleButtonMouseUp(e,n)}):(g.onpointerdown=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},g.onpointerup=function(n){t.handleButtonMouseUp(e,n)},g.onpointercancel=function(n){t.handleButtonMouseUp(e,n)}),g.setAttribute("data-skBtn",e);var m="".concat(t.options.layoutName,"-r").concat(n,"b").concat(r);g.setAttribute("data-skBtnUID",m);var b=document.createElement("span");b.innerHTML=y,g.appendChild(b),t.buttonElements[e]||(t.buttonElements[e]=[]),t.buttonElements[e].push(g),a.appendChild(g)})),a=t.parseRowDOMContainers(a,n,l,c),t.keyboardRowsDOM.appendChild(a)})),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||o||i?o?(document.ontouchend=function(e){return t.handleButtonMouseUp(void 0,e)},document.ontouchcancel=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.ontouchstart=function(e){return t.handleKeyboardContainerMouseDown(e)}):o||(document.onmouseup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onmousedown=function(e){return t.handleKeyboardContainerMouseDown(e)}):(document.onpointerup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onpointerdown=function(e){return t.handleKeyboardContainerMouseDown(e)}),this.onInit())}}])&&m(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()}(),o}()},"object"==typeof n&&"object"==typeof e?e.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof n?n.SimpleKeyboard=r():o.SimpleKeyboard=r()},{}],139:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Build=void 0,n.Build={short:"0.73.7",version:"0.73.7 (e04ee0910829f6c959f628ca14fd172c)",buildSeed:1658134819140}},{}],140:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.deprecatedButton=n.createButton=void 0;const o=t("../dom/keys"),r=t("../dom/pointer"),i=function(){const t={};for(const e of Object.keys(o.namedKeyCodes))t[o.namedKeyCodes[e]]=e.substr(4,2);return t}();function s(t,e,n){const o=Math.round(.6*n),i=Math.round(.5*n),s=Math.max(1,Math.round(n/20)),l=h[t.toLowerCase()],c=void 0===l?t:"",u=a("emulator-button-touch-zone"),d=a("emulator-button"),f=a("emulator-button-text",void 0===l?void 0===c||0===c.length?"□":c.substr(0,1).toUpperCase():"");void 0!==l&&(d.style.backgroundImage='url("'+l+'")'),d.style.width=o+"px",d.style.height=o+"px",f.style.fontSize=i+"px",u.widthPx=n-2*s,u.heightPx=n-2*s,u.style.width=u.widthPx+"px",u.style.height=u.heightPx+"px",u.style.borderWidth=s+"px",u.appendChild(d),u.appendChild(f);const p=t=>{void 0!==e.onDown&&e.onDown(),void 0!==e.onClick&&e.onClick(),t.stopPropagation(),t.preventDefault()},y=t=>{void 0!==e.onUp&&e.onUp(),t.stopPropagation(),t.preventDefault()},v=t=>{t.stopPropagation(),t.preventDefault()},g={capture:!0};for(const t of r.pointer.starters)u.addEventListener(t,p,g);for(const t of r.pointer.enders)u.addEventListener(t,y,g);for(const t of r.pointer.changers)u.addEventListener(t,v,g);for(const t of r.pointer.leavers)u.addEventListener(t,v,g);for(const t of r.pointer.prevents)u.addEventListener(t,v,g);return u}function a(t,e){const n=document.createElement("div");return n.className=t,void 0!==e&&(n.innerHTML=e),n}function l(t){return"number"==typeof t?i[t]:t}function c(t,e){return"click"===t.action?{onClick:()=>e.fireKeyPress(t.mapTo)}:{onDown:()=>e.fireKeyDown(t.mapTo),onUp:()=>e.fireKeyUp(t.mapTo)}}n.createButton=s,n.deprecatedButton=function(t,e,n,r){const i=Math.round(r/4),a=[];for(const e of n){if(e.mapTo===o.KBD_NONE)continue;const n=s((e.symbol||l(e.mapTo)).toUpperCase(),c(e,t),r);n.style.position="absolute";const u=e.style;if(u)for(const t of Object.keys(u))n.style[t]=u[t];if(void 0!==e.position){const t=e.position.left,o=e.position.top,s=e.position.bottom,a=e.position.right;void 0!==t&&(n.style.left=i*t+r*(t-1)+"px"),void 0!==a&&(n.style.right=i*a+r*(a-1)+"px"),void 0!==o&&(n.style.top=i*o+r*(o-1)+"px"),void 0!==s&&(n.style.bottom=i*s+r*(s-1)+"px")}t.mouseOverlay.appendChild(n),a.push(n)}return()=>{for(const e of a)e.parentElement===t.mouseOverlay&&t.mouseOverlay.removeChild(e)}};const u="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",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='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",f="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",p="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",h={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:u,do:u,dw:u,dwn:u,left:d,le:d,lft:d,right:f,ri:f,rght:f,rgh:f,enter:p,en:p,enr:p,ent:p,entr:p}},{"../dom/keys":154,"../dom/pointer":158,"core-js/modules/web.dom-collections.iterator.js":124}],141:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(n,"__esModule",{value:!0}),n.getGrid=void 0,n.getGrid=function(t){switch(t){case"square":return function(){class t{constructor(){o(this,"aspect",.625)}getConfiguration(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const o=this.getCols(),r=this.getRows(),i=Math.floor(o/2),s=Math.floor(r/2),a=5*t/100/2,l=a,c=(t-2*a)/o*n,u=(e-2*l)/r*n,d=Math.min(c,u),f=[];for(let n=0;n<r;++n){const c=[];for(let u=0;u<o;++u)c.push({centerX:u<i?a+d*(u+.5):t-a-d*(o-u-1+.5),centerY:n<s?l+d*(n+.5):e-l-d*(r-n-1+.5)});f.push(c)}return{gridType:"square",cells:f,columnWidth:d,rowHeight:d,columnsPadding:a,rowsPadding:l,width:t,height:e}}getCols(){return 10}getRows(){return Math.floor(this.getCols()*this.aspect)+1}}return new t}();case"honeycomb":return function(){class t{constructor(){o(this,"aspect",.625)}getConfiguration(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const o=this.getCols(),r=this.getRows(),i=Math.floor(o/2),s=Math.floor(r/2),a=5*t/100/2,l=a,c=(t-2*a)/o*n,u=(e-2*l)/r*n,d=Math.min(c,u),f=[];for(let n=0;n<r;++n){const c=[],u=n%2==0?o:o-1,p=n%2==0?0:d/2;for(let f=0;f<u;++f)c.push({centerX:f<i?p+a+d*(f+.5):p+t-a-d*(o-f-1+.5),centerY:n<s?l+d*(n+.5):e-l-d*(r-n-1+.5)});f.push(c)}return{gridType:"honeycomb",cells:f,columnWidth:d,rowHeight:d,columnsPadding:a,rowsPadding:l,width:t,height:e}}getCols(){return 10}getRows(){return Math.floor(this.getCols()*this.aspect)+1}}return new t}()}throw new Error("Unknown grid type "+t)}},{}],142:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.keyboard=void 0,n.keyboard=function(t,e,n){const o=n||{};function r(t){return void 0!==o[t]?o[t]:t}return t.setOnKeyDown((t=>{e.sendKeyEvent(r(t),!0)})),t.setOnKeyUp((t=>{e.sendKeyEvent(r(t),!1)})),t.setOnKeyPress((t=>{e.simulateKeyPress(r(t))})),t.setOnKeysPress((t=>{e.simulateKeyPress(...t)})),()=>{t.setOnKeyDown((t=>{})),t.setOnKeyUp((t=>{})),t.setOnKeyPress((t=>{})),t.setOnKeysPress((t=>{}))}}},{"core-js/modules/web.dom-collections.iterator.js":124}],143:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.extractLayersConfig=void 0,n.extractLayersConfig=function(t){return void 0!==t.layersConfig?(1===t.layersConfig.version&&function(t){for(const e of t.layers)for(const t of e.controls)if("Key"===t.type){const e=t;"number"==typeof e.mapTo&&(e.mapTo=[e.mapTo])}}(t.layersConfig),t.layersConfig):void 0!==t.layers?t.layers:null}},{"core-js/modules/web.dom-collections.iterator.js":124}],144:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.initLayersControl=void 0;const o=t("./grid"),r=t("./button"),i=t("./keyboard"),s=t("./mouse/mouse-common"),a=t("./options"),l=t("../dom/pointer"),c=t("nipplejs");n.initLayersControl=function(t,e,n,r,a,l,c){let f=e.layers[0];if(void 0!==c)for(const t of e.layers)if(t.title===c){f=t;break}return function(t,e,n,r,a,l){const c=(0,i.keyboard)(e,n),f=(0,s.mouse)(r.autolock,r.sensitivity,e,n),p=[];function y(i,s){var c;for(const t of p)t();p.splice(0,p.length);const f=(0,o.getGrid)(t.grid).getConfiguration(i,s,l),y=new u;for(const e of t.controls){const{row:t,column:n,type:o}=e;"NippleActivator"===o&&h(f,t,n)}let v=-1;if(0===(null===(c=e.options.optionControls)||void 0===c?void 0:c.length))for(const e of t.controls){const{row:t,type:n}=e;if("Options"===n){v=t;break}}const g={};if(a)for(const e of t.controls){const{row:t}=e;let n=e.column;const o=f.cells[t].length,r=o/2;t===v&&n>=r&&(n=Math.min(n+1,o-1)),void 0===g[t]&&(g[t]={leftStart:r,leftEnd:0,rightStart:o-1,rightEnd:r}),n<r?(g[t].leftStart=Math.min(g[t].leftStart,n),g[t].leftEnd=Math.max(g[t].leftEnd,n)):(g[t].rightStart=Math.min(g[t].rightStart,n),g[t].rightEnd=Math.max(g[t].rightEnd,n))}for(const o of t.controls){const t=d[o.type];if(void 0===t){console.error("Factory for control '"+o.type+"' is not defined");continue}const i={...o},s=f.cells[o.row].length,l=s/2;if(v===o.row&&o.column>=l&&(i.column=Math.min(i.column+1,s-1)),a){const{leftStart:t,leftEnd:e,rightStart:n,rightEnd:o}=g[i.row],r=i.column<l;r?i.column+=l+(l-e)-t-1:i.column-=l+(n-l)-(s-o)+1,i.column>=s?(console.error("Column",i.column,"is out of bound",s,r?"[leftSide]":"[rightSide]",g),i.column=s-1):i.column<0&&(console.error("Column",i.column,"is out of bound",0,r?"[leftSide]":"[rightSide]",g),i.column=0)}const c=t(i,e,n,f,y,r);p.push(c)}}return e.addOnResize(y),y(e.width,e.height),()=>{e.removeOnResize(y),c(),f();for(const t of p)t()}}(f,t,n,r,a,l)};class u{constructor(){var t,e,n;n={},(e="sensors")in(t=this)?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}activate(t,e){const n=this.sensors[e+"_"+t];void 0!==n&&n.activate()}deactivate(t,e){const n=this.sensors[e+"_"+t];void 0!==n&&n.deactivate()}register(t,e,n){this.sensors[e+"_"+t]=n}}const d={Key:function(t,e,n,o,i,s){const{cells:a,columnWidth:l}=o,{row:c,column:u}=t,{centerX:d,centerY:f}=a[c][u],h={onDown:()=>{for(const e of t.mapTo)n.sendKeyEvent(e,!0)},onUp:()=>{for(const e of t.mapTo)n.sendKeyEvent(e,!1)}};if(i.register(c,u,{activate:h.onDown,deactivate:h.onUp}),p(o,c,u))return()=>{};const y=(0,r.createButton)(t.symbol,h,l);return y.style.position="absolute",y.style.left=d-y.widthPx/2+"px",y.style.top=f-y.heightPx/2+"px",e.mouseOverlay.appendChild(y),()=>e.mouseOverlay.removeChild(y)},Options:function(t,e,n,o,r,i){var s;if(0===(null===(s=e.options.optionControls)||void 0===s?void 0:s.length))return()=>{};if(void 0!==e.options.optionControls&&1===e.options.optionControls.length&&"keyboard"===e.options.optionControls[0])return f(t,e,n,o,r,i);const{cells:l,columnWidth:c,rowHeight:u}=o,{row:d,column:p}=t,{centerX:h,centerY:y}=l[d][p],v=y-u/2,g=h-c/2,m=o.width-g-c;return(0,a.options)(e,["default"],(()=>{}),c,v,m)},Keyboard:f,Switch:function(t,e,n,o,i,s){const{cells:a,columnWidth:l}=o,{row:c,column:u}=t,{centerX:d,centerY:f}=a[c][u],p=(0,r.createButton)(t.symbol,{onUp:()=>s.setLayersConfig(s.getLayersConfig(),t.layerName)},l);return p.style.position="absolute",p.style.left=d-p.widthPx/2+"px",p.style.top=f-p.heightPx/2+"px",e.mouseOverlay.appendChild(p),()=>{e.mouseOverlay.removeChild(p)}},ScreenMove:function(t,e,n,o,i,s){const{cells:a,columnWidth:l}=o,{row:c,column:u}=t,{centerX:d,centerY:f}=a[c][u];let h=.5,y=.5;t.direction.indexOf("up")>=0&&(y=0);t.direction.indexOf("down")>=0&&(y=1);t.direction.indexOf("left")>=0&&(h=0);t.direction.indexOf("right")>=0&&(h=1);const v={onDown:()=>{n.sendMouseMotion(h,y)},onUp:()=>{n.sendMouseMotion(.5,.5)}};if(i.register(c,u,{activate:v.onDown,deactivate:v.onUp}),p(o,c,u))return()=>{};const g=(0,r.createButton)(t.symbol,v,l);return g.style.position="absolute",g.style.left=d-g.widthPx/2+"px",g.style.top=f-g.heightPx/2+"px",e.mouseOverlay.appendChild(g),()=>e.mouseOverlay.removeChild(g)},PointerButton:function(t,e,n,o,i,s){const{cells:a,columnWidth:l}=o,{row:c,column:u,click:d}=t,{centerX:f,centerY:h}=a[c][u],y={onDown:()=>{d?n.sendMouseButton(t.button,!0):e.pointerButton=t.button},onUp:()=>{d?n.sendMouseButton(t.button,!1):e.pointerButton=0}};if(i.register(c,u,{activate:y.onDown,deactivate:y.onUp}),p(o,c,u))return()=>{};const v=(0,r.createButton)(t.symbol,y,l);return v.style.position="absolute",v.style.left=f-v.widthPx/2+"px",v.style.top=h-v.heightPx/2+"px",e.mouseOverlay.appendChild(v),()=>e.mouseOverlay.removeChild(v)},PointerMove:function(t,e,n,o,i,s){const{cells:a,columnWidth:l}=o,{row:c,column:u,x:d,y:f}=t,{centerX:h,centerY:y}=a[c][u],v={onDown:()=>{n.sendMouseMotion(d,f)},onUp:()=>{n.sendMouseMotion(d,f)}};if(i.register(c,u,{activate:v.onDown,deactivate:v.onUp}),p(o,c,u))return()=>{};const g=(0,r.createButton)(t.symbol,v,l);return g.style.position="absolute",g.style.left=h-g.widthPx/2+"px",g.style.top=y-g.heightPx/2+"px",e.mouseOverlay.appendChild(g),()=>e.mouseOverlay.removeChild(g)},PointerReset:function(t,e,n,o,i,s){const{cells:a,columnWidth:l}=o,{row:c,column:u}=t,{centerX:d,centerY:f}=a[c][u],h={onDown:()=>{n.sendMouseSync()}};if(i.register(c,u,{activate:h.onDown,deactivate:()=>{}}),p(o,c,u))return()=>{};const y=(0,r.createButton)(t.symbol,h,l);return y.style.position="absolute",y.style.left=d-y.widthPx/2+"px",y.style.top=f-y.heightPx/2+"px",e.mouseOverlay.appendChild(y),()=>e.mouseOverlay.removeChild(y)},PointerToggle:function(t,e,n,o,i,s){const{cells:a,columnWidth:l}=o,{row:c,column:u}=t,{centerX:d,centerY:f}=a[c][u],h={onDown:()=>{e.pointerDisabled=!e.pointerDisabled,e.pointerDisabled?y.classList.contains("emulator-button-highlight")||y.classList.add("emulator-button-highlight"):y.classList.remove("emulator-button-highlight")}};if(i.register(c,u,{activate:h.onDown,deactivate:()=>{}}),p(o,c,u))return()=>{};const y=(0,r.createButton)(t.symbol,h,l);return y.style.position="absolute",y.style.left=d-y.widthPx/2+"px",y.style.top=f-y.heightPx/2+"px",e.mouseOverlay.appendChild(y),()=>e.mouseOverlay.removeChild(y)},NippleActivator:function(t,e,n,o,r,i){const{cells:s,columnWidth:a,rowHeight:u,width:d,height:f}=o,{row:p,column:h}=t,{centerX:y,centerY:v}=s[p][h],g=document.createElement("div"),m=1.5,b=Math.max(0,y-a*m),w=Math.max(0,v-u*m),_=Math.max(0,d-y-a*m),x=Math.max(0,f-v-u*m);g.style.position="absolute",g.style.zIndex="999",g.style.left=b+"px",g.style.top=w+"px",g.style.right=_+"px",g.style.bottom=x+"px",e.mouseOverlay.appendChild(g);const D=c.create({zone:g,multitouch:!1,maxNumberOfNipples:1,mode:"static",follow:!1,dynamicPage:!0,size:1.5*Math.max(a,u),position:{left:(d-_-b)/2+"px",top:(f-x-w)/2+"px"}});let k=-1,E=-1;D.on("move",((t,e)=>{if(e.distance<10)return r.deactivate(E,k),k=-1,void(E=-1);let n=-1,o=-1;const i=22.5,s=e.angle.degree;s>i&&s<=67.5?(n=h+1,o=p-1):s>67.5&&s<=112.5?(n=h,o=p-1):s>112.5&&s<=157.5?(n=h-1,o=p-1):s>157.5&&s<=202.5?(n=h-1,o=p):s>202.5&&s<=247.5?(n=h-1,o=p+1):s>247.5&&s<=292.5?(n=h,o=p+1):s>292.5&&s<=337.5?(n=h+1,o=p+1):(n=h+1,o=p),k===n&&E===o||(r.deactivate(E,k),r.activate(o,n),k=n,E=o)}));let B=!1;D.on("start",(()=>{B=!0})),D.on("end",(()=>{B=!1,r.deactivate(E,k),E=-1,k=-1}));const C={capture:!0};function K(t){B&&D.processOnEnd(t)}for(const t of l.pointer.enders)e.mouseOverlay.addEventListener(t,K,C);return()=>{D.destroy(),e.mouseOverlay.removeChild(g);for(const t of l.pointer.enders)e.mouseOverlay.removeEventListener(t,K,C)}}};function f(t,e,n,o,i,s){const{cells:a,columnWidth:l}=o,{row:c,column:u}=t,{centerX:d,centerY:f}=a[c][u],p=(0,r.createButton)("keyboard",{onUp:()=>e.toggleKeyboard()},l),h=t=>{t?p.children[0].classList.add("emulator-control-close-icon"):p.children[0].classList.remove("emulator-control-close-icon")};return e.setOnKeyboardVisibility(h),p.style.position="absolute",p.style.left=d-p.widthPx/2+"px",p.style.top=f-p.heightPx/2+"px",e.mouseOverlay.appendChild(p),()=>{e.mouseOverlay.removeChild(p),e.removeOnKeyboardVisibility(h)}}function p(t,e,n){return!0===t.cells[e][n].hidden}function h(t,e,n){function o(o,r){if((o!==e||r!==n)&&o>=0&&o<t.cells.length){const e=t.cells[o];r>=0&&r<e.length&&(e[r].hidden=!0)}}for(let t=e-1;t<=e+1;++t)for(let e=n-1;e<=n+1;++e)o(t,e)}},{"../dom/pointer":158,"./button":140,"./grid":141,"./keyboard":142,"./mouse/mouse-common":146,"./options":152,"core-js/modules/web.dom-collections.iterator.js":124,nipplejs:136}],145:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initLegacyLayersControl=void 0;const o=t("./button"),r=t("./mouse/mouse-common"),i=t("./nipple"),s=t("./options"),a=t("./keyboard");n.initLegacyLayersControl=function(t,e,n,l){var c;const u=Object.keys(n),d={keyboard:()=>{},mouse:()=>{},gestures:()=>{},buttons:()=>{}},f=s=>{d.keyboard(),d.mouse(),d.gestures(),d.buttons(),d.keyboard=()=>{},d.mouse=()=>{},d.gestures=()=>{},d.buttons=()=>{};const c=n[s];void 0!==c&&(d.keyboard=(0,a.keyboard)(e,l,c.mapper),void 0!==c.gestures&&c.gestures.length>0?d.gestures=(0,i.nipple)(e,l,c.gestures):d.mouse=(0,r.mouse)(t.autolock,t.sensitivity,e,l),void 0!==c.buttons&&c.buttons.length&&(d.buttons=(0,o.deprecatedButton)(e,l,c.buttons,54)))},p=0===(null===(c=e.options.optionControls)||void 0===c?void 0:c.length)?()=>{}:(0,s.options)(e,u,f,54,13.5,0);return f("default"),()=>{d.gestures(),d.buttons(),d.mouse(),d.keyboard(),p()}}},{"./button":140,"./keyboard":142,"./mouse/mouse-common":146,"./nipple":150,"./options":152}],146:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.mouse=n.mount=n.mapXY=void 0;const o=t("../../dom/pointer"),r=t("./mouse-swipe"),i=t("./mouse-not-locked"),s=t("./mouse-locked"),a=.01;n.mapXY=function(t,e,n,o){const r=n.width(),i=n.height(),s=o.width,l=o.height,c=r/i;let u=s,d=s/c;d>l&&(d=l,u=l*c);const f=(l-d)/2,p=(s-u)/2;let h=Math.max(0,Math.min(1,(t-p)/u)),y=Math.max(0,Math.min(1,(e-f)/d));return h<=a&&(h=0),h>=.99&&(h=1),y<=a&&(y=0),y>=.99&&(y=1),{x:h,y:y}},n.mount=function(t,e,n,r,i,s){let a=0;const l=r=>{if(r.target!==t)return;if(e.pointerDisabled)return void r.stopPropagation();const i=(0,o.getPointerState)(r,t);a=i.button||e.pointerButton,n(i.x,i.y,a),r.stopPropagation()},c=n=>{if(n.target!==t)return;if(e.pointerDisabled)return void n.stopPropagation();const i=(0,o.getPointerState)(n,t);r(i.x,i.y,i.mX,i.mY),n.stopPropagation()},u=n=>{if(e.pointerDisabled)return void n.stopPropagation();const r=(0,o.getPointerState)(n,t);i(r.x,r.y,a),n.stopPropagation()},d=n=>{if(n.target!==t)return;if(e.pointerDisabled)return void n.stopPropagation();const r=(0,o.getPointerState)(n,t);s(r.x,r.y),n.stopPropagation()},f=t=>{t.stopPropagation()},p={capture:!1};for(const e of o.pointer.starters)t.addEventListener(e,l,p);for(const e of o.pointer.changers)t.addEventListener(e,c,p);for(const e of o.pointer.enders)t.addEventListener(e,u,p);for(const e of o.pointer.prevents)t.addEventListener(e,f,p);for(const e of o.pointer.leavers)t.addEventListener(e,d,p);return()=>{for(const e of o.pointer.starters)t.removeEventListener(e,l,p);for(const e of o.pointer.changers)t.removeEventListener(e,c,p);for(const e of o.pointer.enders)t.removeEventListener(e,u,p);for(const e of o.pointer.prevents)t.removeEventListener(e,f,p);for(const e of o.pointer.leavers)t.removeEventListener(e,d,p)}},n.mouse=function(t,e,n,a){return t&&!o.pointer.canLock?(0,r.mouseSwipe)(e,n,a):t?(0,s.mouseLocked)(e,n,a):(0,i.mouseNotLocked)(n,a)}},{"../../dom/pointer":158,"./mouse-locked":147,"./mouse-not-locked":148,"./mouse-swipe":149,"core-js/modules/web.dom-collections.iterator.js":124}],147:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.mouseLocked=void 0;const o=t("./mouse-common");n.mouseLocked=function(t,e,n){const r=e.mouseOverlay;function i(){return document.pointerLockElement!==r}return(0,o.mount)(r,e,(function(t,e,o){if(i()){(r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock).call(r)}else n.sendMouseButton(o,!0)}),(function(e,o,r,s){i()||0===r&&0===s||n.sendMouseRelativeMotion(r*t,s*t)}),(function(t,e,o){i()||n.sendMouseButton(o,!1)}),(function(t,e){}))}},{"./mouse-common":146}],148:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.mouseNotLocked=void 0;const o=t("./mouse-common");n.mouseNotLocked=function(t,e){const n=t.mouseOverlay,r=(n,r)=>(0,o.mapXY)(n,r,e,t);return document.pointerLockElement===n&&document.exitPointerLock(),(0,o.mount)(n,t,(function(t,n,o){const i=r(t,n);e.sendMouseMotion(i.x,i.y),e.sendMouseButton(o,!0)}),(function(t,n,o,i){const s=r(t,n);e.sendMouseMotion(s.x,s.y)}),(function(t,n,o){const i=r(t,n);e.sendMouseMotion(i.x,i.y),e.sendMouseButton(o,!1)}),(function(t,n){const o=r(t,n);e.sendMouseMotion(o.x,o.y)}))}},{"./mouse-common":146}],149:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.mouseSwipe=void 0;const o=t("./mouse-common");n.mouseSwipe=function(t,e,n){const r=e.mouseOverlay;let i=-1,s=0,a=0,l=0;return(0,o.mount)(r,e,((t,e)=>{i=Date.now(),s=0,a=t,l=e}),(function(e,o,r,i){void 0===r&&(r=e-a),void 0===i&&(i=o-l),a=e,l=o,0===r&&0===i||(s+=Math.abs(r)+Math.abs(i),n.sendMouseRelativeMotion(r*t*2,i*t*2))}),((t,o)=>{if(Date.now()-i<500&&s<50){const t=e.pointerButton||0;n.sendMouseButton(t,!0),setTimeout((()=>n.sendMouseButton(t,!1)),60)}}),(()=>{}))}},{"./mouse-common":146}],150:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.nipple=void 0;const o=t("nipplejs"),r=t("../dom/keys");n.nipple=function(t,e,n){const i=o.create({zone:t.mouseOverlay,multitouch:!0,maxNumberOfNipples:2});let s=-1;const a=()=>{-1!==s&&(t.fireKeyUp(s),s=-1)},l={},c={},u={};for(const e of n)"end:release"===e.event?l[e.joystickId]=!0:e.mapTo!==r.KBD_NONE&&("tap"===e.event?c[e.joystickId]=e.mapTo:i.on(e.event,(()=>{var n;u[e.joystickId]=Date.now(),a(),n=e.mapTo,t.fireKeyDown(n),s=n})));const d={};return i.on("start",(()=>{const t=i.ids.length-1;d[t]=Date.now()})),i.on("end",(()=>{const e=i.ids.length-1,n=Date.now()-d[e];!0===l[e]&&a(),c[e]&&n<500&&u[e]<d[e]&&t.fireKeyPress(c[e])})),()=>i.destroy()}},{"../dom/keys":154,"core-js/modules/web.dom-collections.iterator.js":124,nipplejs:136}],151:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.initNullLayersControl=void 0;const o=t("./keyboard"),r=t("./mouse/mouse-common"),i=t("./options");n.initNullLayersControl=function(t,e,n){var s;const a=(0,o.keyboard)(e,n),l=(0,r.mouse)(t.autolock,t.sensitivity,e,n),c=0===(null===(s=e.options.optionControls)||void 0===s?void 0:s.length)?()=>{}:(0,i.options)(e,["default"],(()=>{}),54,13.5,0);return()=>{a(),l(),c()}}},{"./keyboard":142,"./mouse/mouse-common":146,"./options":152}],152:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.options=void 0;const o=t("./button"),r=t("../dom/helpers");function i(t,e){if(t.length<=1)return document.createElement("div");const n=document.createElement("select");n.classList.add("emulator-control-select");for(const e of t){const t=document.createElement("option");t.value=e,t.innerHTML=e,n.appendChild(t)}return n.onchange=t=>{const n=t.target.value;e(n)},(0,r.stopPropagation)(n,!1),n}n.options=function(t,e,n,s,a,l){const c=Math.round(s/4);let u=!1,d=!1;const f=()=>{const t=u?"flex":"none";for(const e of h)e!=y&&(e.style.display=t)},p=()=>{u=!u,!u&&d&&t.toggleKeyboard(),f()},h=[i(e,n),(0,o.createButton)("keyboard",{onClick:()=>{t.toggleKeyboard(),u&&!d&&(u=!1,f())}},s),(0,o.createButton)("save",{onClick:()=>{t.save(),u&&p()}},s),(0,o.createButton)("fullscreen",{onClick:()=>{t.toggleFullscreen(),u&&p()}},s),(0,o.createButton)("options",{onClick:p},s)],y=h[h.length-1],v=h[h.length-2].children[0],g=h[h.length-4].children[0],m=t=>{d=t,t?g.classList.add("emulator-control-close-icon"):g.classList.remove("emulator-control-close-icon")};t.setOnKeyboardVisibility(m),m(t.keyboardVisible),t.setOnFullscreen((t=>{t?v.classList.contains("emulator-control-exit-fullscreen-icon")||v.classList.add("emulator-control-exit-fullscreen-icon"):v.classList.remove("emulator-control-exit-fullscreen-icon")})),t.fullscreen&&v.classList.add("emulator-control-exit-fullscreen-icon");const b=(0,r.createDiv)("emulator-options"),w=d?"flex":"none";for(const t of h)t!==y&&t.classList.add("emulator-button-control"),t.style.marginRight=c+"px",t.style.marginBottom=c+"px",t!==y&&(t.style.display=w),b.appendChild(t);return b.style.position="absolute",b.style.right=l+"px",b.style.top=a+"px",t.mouseOverlay.appendChild(b),()=>{t.mouseOverlay.removeChild(b),t.setOnFullscreen((()=>{})),t.removeOnKeyboardVisibility(m)}}},{"../dom/helpers":153,"./button":140,"core-js/modules/web.dom-collections.iterator.js":124}],153:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.stopPropagation=n.createDiv=void 0;const o=t("./pointer");n.createDiv=function(t,e){const n=document.createElement("div");return n.className=t,void 0!==e&&(n.innerHTML=e),n},n.stopPropagation=function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=t=>{t.stopPropagation()},r=t=>{t.stopPropagation(),e&&t.preventDefault()},i={capture:!1};for(const e of o.pointer.starters)t.addEventListener(e,n,i);for(const e of o.pointer.enders)t.addEventListener(e,n,i);for(const e of o.pointer.prevents)t.addEventListener(e,r,i)}},{"./pointer":158,"core-js/modules/web.dom-collections.iterator.js":124}],154:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.KBD_kp0=n.KBD_f12=n.KBD_f11=n.KBD_f10=n.KBD_f9=n.KBD_f8=n.KBD_f7=n.KBD_f6=n.KBD_f5=n.KBD_f4=n.KBD_f3=n.KBD_f2=n.KBD_f1=n.KBD_z=n.KBD_y=n.KBD_x=n.KBD_w=n.KBD_v=n.KBD_u=n.KBD_t=n.KBD_s=n.KBD_r=n.KBD_q=n.KBD_p=n.KBD_o=n.KBD_n=n.KBD_m=n.KBD_l=n.KBD_k=n.KBD_j=n.KBD_i=n.KBD_h=n.KBD_g=n.KBD_f=n.KBD_e=n.KBD_d=n.KBD_c=n.KBD_b=n.KBD_a=n.KBD_9=n.KBD_8=n.KBD_7=n.KBD_6=n.KBD_5=n.KBD_4=n.KBD_3=n.KBD_2=n.KBD_1=n.KBD_0=n.KBD_NONE=void 0,n.KBD_up=n.KBD_left=n.KBD_pagedown=n.KBD_end=n.KBD_delete=n.KBD_pageup=n.KBD_home=n.KBD_insert=n.KBD_pause=n.KBD_printscreen=n.KBD_slash=n.KBD_comma=n.KBD_period=n.KBD_quote=n.KBD_semicolon=n.KBD_rightbracket=n.KBD_leftbracket=n.KBD_backslash=n.KBD_equals=n.KBD_minus=n.KBD_grave=n.KBD_numlock=n.KBD_scrolllock=n.KBD_capslock=n.KBD_rightshift=n.KBD_leftshift=n.KBD_rightctrl=n.KBD_leftctrl=n.KBD_rightalt=n.KBD_leftalt=n.KBD_space=n.KBD_enter=n.KBD_backspace=n.KBD_tab=n.KBD_esc=n.KBD_kpenter=n.KBD_kpplus=n.KBD_kpminus=n.KBD_kpmultiply=n.KBD_kpdivide=n.KBD_kpperiod=n.KBD_kp9=n.KBD_kp8=n.KBD_kp7=n.KBD_kp6=n.KBD_kp5=n.KBD_kp4=n.KBD_kp3=n.KBD_kp2=n.KBD_kp1=void 0,n.domToKeyCode=n.keyCodesToDom=n.namedKeyCodes=n.domToKeyCodes=n.KBD_extra_lt_gt=n.KBD_right=n.KBD_down=void 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(const t of Object.keys(n.domToKeyCodes)){const e=Number.parseInt(t,10);n.keyCodesToDom[n.domToKeyCodes[e]]=e}n.domToKeyCode=function(t){return n.domToKeyCodes[t]||0}},{"core-js/modules/web.dom-collections.iterator.js":124}],155:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t("core-js/modules/web.dom-collections.iterator.js");var r=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0}),n.Layers=n.layers=void 0;const i=t("notyf"),s=r(t("simple-keyboard")),a=t("./helpers"),l=t("./keys"),c=t("element-resize-detector")({});n.layers=function(t,e){return new u(t,e||{})};class u{constructor(t,e){o(this,"options",void 0),o(this,"root",void 0),o(this,"loading",void 0),o(this,"canvas",void 0),o(this,"video",void 0),o(this,"mouseOverlay",void 0),o(this,"width",void 0),o(this,"height",void 0),o(this,"fullscreen",!1),o(this,"keyboardVisible",!1),o(this,"pointerLock",!1),o(this,"pointerDisabled",!1),o(this,"pointerButton",0),o(this,"notyf",new i.Notyf),o(this,"toggleKeyboard",(()=>!1)),o(this,"fullscreenElement",void 0),o(this,"clickToStart",void 0),o(this,"loaderText",void 0),o(this,"onResize",void 0),o(this,"onKeyDown",void 0),o(this,"onKeyUp",void 0),o(this,"onKeyPress",void 0),o(this,"onKeysPress",void 0),o(this,"onSave",void 0),o(this,"onSaveStarted",void 0),o(this,"onSaveEnded",void 0),o(this,"onFullscreenChanged",[]),o(this,"onKeyboardChanged",[]),this.options=e,this.root=t,this.root.classList.add("emulator-root"),this.fullscreenElement=e.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=(0,a.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=(0,a.createDiv)("emulator-mouse-overlay",""),this.clickToStart=(0,a.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=()=>{this.clickToStart.style.display="none",this.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=()=>{},this.onKeyUp=()=>{},this.onKeyPress=()=>{},this.onKeysPress=()=>{},this.onSave=()=>Promise.reject(new Error("Not implemented")),this.onSaveStarted=()=>{},this.onSaveEnded=()=>{},c.listenTo(this.root,(e=>{if(e===t){this.width=e.offsetWidth,this.height=e.offsetHeight;for(const t of this.onResize)t(this.width,this.height)}})),this.initKeyEvents(),this.initKeyboard(),this.preventContextMenu(),this.fullscreenElement.onfullscreenchange=()=>{if(document.fullscreenElement!==this.fullscreenElement){this.fullscreen=!1;for(const t of this.onFullscreenChanged)t(this.fullscreen)}}}initKeyEvents(){var t;const e=null!==(t=this.options.keyboardInputDiv)&&void 0!==t?t:this.root;e.style.outline="none",e.tabIndex&&-1!==e.tabIndex||(e.tabIndex=0),e.addEventListener("keydown",(t=>{const e=(0,l.domToKeyCode)(t.keyCode);this.onKeyDown(e),t.stopPropagation(),t.preventDefault()})),e.addEventListener("keyup",(t=>{const e=(0,l.domToKeyCode)(t.keyCode);this.onKeyUp(e),t.stopPropagation(),t.preventDefault()}))}preventContextMenu(){this.root.addEventListener("contextmenu",(t=>(t.stopPropagation(),t.preventDefault(),!1)))}addOnResize(t){this.onResize.push(t)}removeOnResize(t){this.onResize=this.onResize.filter((e=>e!==t))}setOnKeyDown(t){this.onKeyDown=t}fireKeyDown(t){this.onKeyDown(t)}setOnKeyUp(t){this.onKeyUp=t}fireKeyUp(t){this.onKeyUp(t)}setOnKeyPress(t){this.onKeyPress=t}fireKeyPress(t){this.onKeyPress(t)}setOnKeysPress(t){this.onKeysPress=t}fireKeysPress(t){this.onKeysPress(t)}toggleFullscreen(){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();for(const t of this.onFullscreenChanged)t(!1)}else{this.fullscreen=!0;const t=this.fullscreenElement;t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitEnterFullscreen?t.webkitEnterFullscreen():this.fullscreenElement.classList.add("emulator-fullscreen-workaround");for(const t of this.onFullscreenChanged)t(!0)}}setOnFullscreen(t){this.onFullscreenChanged.push(t)}removeOnFullscreen(t){this.onFullscreenChanged=this.onFullscreenChanged.filter((e=>e!==t))}setOnKeyboardVisibility(t){this.onKeyboardChanged.push(t)}removeOnKeyboardVisibility(t){this.onKeyboardChanged=this.onKeyboardChanged.filter((e=>e!==t))}save(){return this.onSaveStarted(),this.onSave().then((()=>{this.notyf.success("Saved"),this.onSaveEnded()})).catch((t=>{this.notyf.error(t.message),this.onSaveEnded()}))}setOnSave(t){this.onSave=t}getOnSave(){return this.onSave}setOnSaveStarted(t){this.onSaveStarted=t}setOnSaveEnded(t){this.onSaveEnded=t}hideLoadingLayer(){this.loading.style.visibility="hidden"}showLoadingLayer(){this.loading.style.visibility="visible"}setLoadingMessage(t){this.loaderText.innerHTML=t}switchToVideo(){this.video.style.display="block",this.canvas.style.display="none"}showClickToStart(){this.clickToStart.style.display="flex"}initKeyboard(){let t=!1;const e=[{"{esc}":"␛","{bksp}":"⌫","{enter}":"↵","{space}":"Space","{up}":"↑","{down}":"↓","{left}":"←","{right}":"→","{shift}":"⇑","{ctrl}":"Ctrl","{alt}":"Alt","{tab}":"Tab"},{"{esc}":"␛","{bksp}":"⌫","{enter}":"↵","{space}":"Space","{up}":"↑","{down}":"↓","{left}":"←","{right}":"→","{shift}":"⇑","{alt}":"Alt","{ctrl}":"Ctrl","{tab}":"Tab",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:"ь",",":"б",".":"ю"}];let n=0;const o=this.options.keyboardDiv||(0,a.createDiv)("");o.classList.add("emulator-keyboard"),o.style.display="none",(0,a.stopPropagation)(o);const r=new s.default(o,{layout:{en:["{esc} ` 1 2 3 4 5 6 7 8 9 0 () - = {bksp} {enter}","{tab} q w e r t y u i o p { } \\ {up}","{shift} {left} {right} a s d f g h j k l ; ' [ {down}","⎘ {alt} {ctrl} z x c v b n m , . / ] {space}"]},layoutName:"en",display:e[n],onKeyPress:t=>{if("⎘"===t)return;const e=d(t);for(const t of e)this.fireKeyDown(t)},onKeyReleased:t=>{if("⎘"===t)return n=(n+1)%e.length,void r.setOptions({display:e[n]});const o=d(t);for(const t of o)this.fireKeyUp(t)},preventMouseDownDefault:!0,preventMouseUpDefault:!0,stopMouseDownPropagation:!0,stopMouseUpPropagation:!0,physicalKeyboardHighlight:!1,physicalKeyboardHighlightPress:!1,physicalKeyboardHighlightPressUseClick:!1,physicalKeyboardHighlightPressUsePointerEvents:!1});this.toggleKeyboard=()=>{t=!t;const e=t?"block":"none";o.style.display=e;for(const e of this.onKeyboardChanged)e(t);return this.keyboardVisible=t,t},this.options.keyboardDiv||this.mouseOverlay.appendChild(o)}}function d(t){if(t.length>1)return"{enter}"===t?[l.KBD_enter]:"{shift}"===t?[l.KBD_leftshift]:"{bksp}"===t?[l.KBD_backspace]:"{lock}"===t?[l.KBD_capslock]:"{tab}"===t?[l.KBD_tab]:"{space}"===t?[l.KBD_space]:"{esc}"===t?[l.KBD_esc]:"{ctrl}"===t?[l.KBD_leftctrl]:"{alt}"===t?[l.KBD_leftalt]:"{up}"===t?[l.KBD_up]:"{down}"===t?[l.KBD_down]:"{left}"===t?[l.KBD_left]:"{right}"===t?[l.KBD_right]:(console.warn("Unknown button",t),[]);if(","===t)return[l.KBD_comma];if("."===t)return[l.KBD_period];if("'"===t)return[l.KBD_quote];if(":"===t)return[l.KBD_semicolon];if("{"===t)return[l.KBD_leftshift,l.KBD_leftbracket];if("}"===t)return[l.KBD_leftshift,l.KBD_rightbracket];const e=(0,l.domToKeyCode)(t.toUpperCase().charCodeAt(0));return 0===e?[]:[e]}n.Layers=u},{"./helpers":153,"./keys":154,"core-js/modules/web.dom-collections.iterator.js":124,"element-resize-detector":129,notyf:137,"simple-keyboard":138}],156:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.lifecycle=void 0,n.lifecycle=function(t){let e="",n="";function o(){document[e]?t.pause():t.resume()}void 0!==document.hidden?(e="hidden",n="visibilitychange"):void 0!==document.mozHidden?(e="mozHidden",n="mozvisibilitychange"):void 0!==document.msHidden?(e="msHidden",n="msvisibilitychange"):void 0!==document.webkitHidden&&(e="webkitHidden",n="webkitvisibilitychange"),document.addEventListener(n,o),t.events().onExit((()=>{document.removeEventListener(n,o)}))}},{}],157:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(n,"__esModule",{value:!0}),n.MemStorage=void 0;n.MemStorage=class{constructor(){o(this,"length",0),o(this,"storage",{})}setItem(t,e){this.storage[t]=e,this.length=Object.keys(this.storage).length}getItem(t){const e=this.storage[t];return void 0===e?null:e}removeItem(t){delete this.storage[t],this.length=Object.keys(this.storage).length}key(t){const e=Object.keys(this.storage);return void 0===e[t]?null:e[t]}clear(){this.length=0,this.storage={}}}},{}],158:[function(t,e,n){"use strict";function o(t,e){if(t.type.match(/^touch/)){const n=t,o=e.getBoundingClientRect();return{x:n.targetTouches[0].clientX-o.x,y:n.targetTouches[0].clientY-o.y,mX:0,mY:0}}if(t.type.match(/^pointer/)){const e=t;return{x:e.offsetX,y:e.offsetY,mX:e.movementX,mY:e.movementY}}{const e=t;return{x:e.offsetX,y:e.offsetY,mX:e.movementX,mY:e.movementY,button:0===e.button?0:1}}}Object.defineProperty(n,"__esModule",{value:!0}),n.pointers=n.getPointerState=n.pointer=void 0,n.pointer=function(){const t=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent),e=t&&!!("ontouchstart"in window),n=t&&!!window.PointerEvent,o=t&&!!window.MSPointerEvent;let r=!t;const i=[],s=[],a=[],l=[],c=[];n?(i.push("pointerdown"),a.push("pointerup","pointercancel"),s.push("pointermove"),c.push("touchstart","touchmove","touchend")):o?(i.push("MSPointerDown"),s.push("MSPointerMove"),a.push("MSPointerUp")):e?(r=!1,i.push("touchstart","mousedown"),s.push("touchmove"),a.push("touchend","touchcancel","mouseup")):(i.push("mousedown"),s.push("mousemove"),a.push("mouseup"),l.push("mouseleave"));return{mobile:t,canLock:r,starters:i,changers:s,enders:a,prevents:c,leavers:l}}(),n.getPointerState=o,n.pointers={bind:n.pointer,getPointerState:o}},{}],159:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.LStorage=void 0;const r=t("./mem-storage");n.LStorage=class{constructor(t,e){o(this,"backend",void 0),o(this,"length",void 0),o(this,"prefix",void 0),this.prefix=e;try{this.backend=t||localStorage,this.testBackend()}catch(t){this.backend=new r.MemStorage}this.length=this.backend.length,"function"==typeof this.backend.sync&&(this.sync=t=>{this.backend.sync(t)})}testBackend(){const t=this.prefix+".test.record";this.backend.setItem(t,"123");const e=this.backend.getItem(t);this.backend.removeItem(t);if(!("123"===e&&null===this.backend.getItem(t)))throw new Error("Storage backend is not working properly")}setLocalStoragePrefix(t){this.prefix=t}clear(){if(!this.backend.length)return;const t=[];for(let e=0;e<this.backend.length;++e){const n=this.backend.key(e);n&&n.startsWith(this.prefix)&&t.push(n)}for(const e of t)this.backend.removeItem(e);this.length=this.backend.length}key(t){return this.backend.key(t)}setItem(t,e){if(!e||void 0===e.length||0===e.length)return void this.writeStringToKey(t,"");let n=0;for(;n<e.length;){let o=e.substr(n,1024);n+=o.length,n<e.length&&(o+="@"),this.writeStringToKey(t,o),t+="."}}getItem(t){let e=this.readStringFromKey(t);if(null===e)return null;if(0===e.length)return e;for(;"@"===e[e.length-1];){e=e.substr(0,e.length-1),t+=".";const n=this.readStringFromKey(t);e+=null===n?"":n}return e}removeItem(t){this.backend.removeItem(this.prefix+t),this.length=this.backend.length}writeStringToKey(t,e){this.backend.setItem(this.prefix+t,e),this.length=this.backend.length}readStringFromKey(t){return this.backend.getItem(this.prefix+t)}}},{"./mem-storage":157,"core-js/modules/web.dom-collections.iterator.js":124}],160:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(n,"__esModule",{value:!0}),n.EmulatorsUi=void 0;const r=t("./build"),i=t("./dom/layers"),s=t("./dom/lifecycle"),a=t("./network/xhr"),l=t("./graphics/_2d"),c=t("./graphics/webgl"),u=t("./graphics/video"),d=t("./controls/keyboard"),f=t("./controls/mouse/mouse-common"),p=t("./controls/nipple"),h=t("./controls/options"),y=t("./dom/keys"),v=t("./sound/audio-node"),g=t("./notification/notyf"),m=t("./persist/save-load"),b=t("./controls/grid"),w=t("./dom/pointer"),_=t("./dom/storage"),x=t("./js-dos");class D{constructor(){o(this,"build",r.Build),o(this,"dom",{layers:i.layers,lifecycle:s.lifecycle,pointers:w.pointers,storage:new _.LStorage(void 0,"emulators.ui.")}),o(this,"network",{resolveBundle:a.resolveBundle}),o(this,"graphics",{webGl:c.webGl,_2d:l._2d,video:u.video}),o(this,"sound",{audioNode:v.audioNode}),o(this,"persist",{save:m.save,load:m.load}),o(this,"controls",{getGrid:b.getGrid,namedKeyCodes:y.namedKeyCodes,domToKeyCodes:y.domToKeyCodes,domToKeyCode:y.domToKeyCode,keyCodesToDom:y.keyCodesToDom,keyboard:d.keyboard,mouse:f.mouse,nipple:p.nipple,options:h.options}),o(this,"notifications",{notyf:g.notyf}),o(this,"dos",((t,e)=>new x.DosInstance(t,k,e||{})))}}n.EmulatorsUi=D;const k=new D;window.emulatorsUi=k,window.Dos=k.dos},{"./build":139,"./controls/grid":141,"./controls/keyboard":142,"./controls/mouse/mouse-common":146,"./controls/nipple":150,"./controls/options":152,"./dom/keys":154,"./dom/layers":155,"./dom/lifecycle":156,"./dom/pointer":158,"./dom/storage":159,"./graphics/_2d":161,"./graphics/video":162,"./graphics/webgl":163,"./js-dos":164,"./network/xhr":165,"./notification/notyf":166,"./persist/save-load":168,"./sound/audio-node":169}],161:[function(t,e,n){"use strict";t("core-js/modules/es.typed-array.uint8-clamped-array.js"),t("core-js/modules/es.typed-array.set.js"),t("core-js/modules/es.typed-array.sort.js"),Object.defineProperty(n,"__esModule",{value:!0}),n._2d=void 0,n._2d=function(t,e){const n=t.canvas,o=n.getContext("2d");if(null===o)throw new Error("Unable to create 2d context on given canvas");let r=t.width,i=t.height,s=0,a=0;const l=()=>{const t=s/a;let e=r,o=r/t;o>i&&(o=i,e=i*t),n.style.position="relative",n.style.top=(i-o)/2+"px",n.style.left=(r-e)/2+"px",n.style.width=e+"px",n.style.height=o+"px"},c=(t,e)=>{r=t,i=e,l()};t.addOnResize(c);let u=new Uint8ClampedArray(0);const d=(t,e)=>{s=t,a=e,n.width=s,n.height=a,u=new Uint8ClampedArray(t*e*4),l()};e.events().onFrameSize(d),e.events().onFrame(((t,e)=>{if(null===t&&null===e)return;const n=null!==t?t:e;let r=0,i=0;for(;i<u.length;)u[i++]=n[r++],u[i++]=n[r++],u[i++]=n[r++],u[i++]=255,n.length===u.length&&r++;o.putImageData(new ImageData(u,s,a),0,0)})),d(e.width(),e.height()),e.events().onExit((()=>{t.removeOnResize(c)}))}},{"core-js/modules/es.typed-array.set.js":120,"core-js/modules/es.typed-array.sort.js":121,"core-js/modules/es.typed-array.uint8-clamped-array.js":123}],162:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.video=void 0,n.video=function(t,e){t.switchToVideo(),e.events().onMessage(((e,n)=>{"onremotestream"===e&&window.Janus.attachMediaStream(t.video,n)}))}},{}],163:[function(t,e,n){"use strict";t("core-js/modules/es.typed-array.uint8-array.js"),t("core-js/modules/es.typed-array.set.js"),t("core-js/modules/es.typed-array.sort.js"),t("core-js/modules/es.typed-array.float32-array.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.webGl=void 0;function o(t,e,n){const o=t.createShader(e);if(t.shaderSource(o,n),t.compileShader(o),!t.getShaderParameter(o,t.COMPILE_STATUS)){const e=t.getShaderInfoLog(o);throw t.deleteShader(o),new Error("An error occurred compiling the shaders: "+e)}return o}n.webGl=function(t,e){const n=t.canvas,r=n.getContext("webgl");if(null===r)throw new Error("Unable to create webgl context on given canvas");const i=function(t,e,n){const r=o(t,t.VERTEX_SHADER,e),i=o(t,t.FRAGMENT_SHADER,n),s=t.createProgram();if(t.attachShader(s,r),t.attachShader(s,i),t.linkProgram(s),!t.getProgramParameter(s,t.LINK_STATUS))throw new Error("Unable to initialize the shader program: "+t.getProgramInfoLog(s));return s}(r,"\nattribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nvarying highp vec2 vTextureCoord;\n\nvoid main(void) {\n gl_Position = aVertexPosition;\n vTextureCoord = aTextureCoord;\n}\n","\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=r.getAttribLocation(i,"aVertexPosition"),a=r.getAttribLocation(i,"aTextureCoord"),l=r.getUniformLocation(i,"uSampler");!function(t,e,n){const o=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,o);const r=[-1,-1,0,1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,1,0];t.bufferData(t.ARRAY_BUFFER,new Float32Array(r),t.STATIC_DRAW),t.vertexAttribPointer(e,3,t.FLOAT,!1,0,0),t.enableVertexAttribArray(e);const i=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,i);const s=[0,1,1,1,1,0,0,1,1,0,0,0];t.bufferData(t.ARRAY_BUFFER,new Float32Array(s),t.STATIC_DRAW),t.vertexAttribPointer(n,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(n)}(r,s,a);const c=r.createTexture();r.bindTexture(r.TEXTURE_2D,c),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR);const u=new Uint8Array([0,0,0]);r.texImage2D(r.TEXTURE_2D,0,r.RGB,1,1,0,r.RGB,r.UNSIGNED_BYTE,u),r.useProgram(i),r.activeTexture(r.TEXTURE0),r.uniform1i(l,0);let d=t.width,f=t.height,p=0,h=0;const y=()=>{const t=p/h;let e=d,o=d/t;o>f&&(o=f,e=f*t),n.style.position="relative",n.style.top=(f-o)/2+"px",n.style.left=(d-e)/2+"px",n.style.width=e+"px",n.style.height=o+"px"},v=(t,e)=>{d=t,f=e,y()};t.addOnResize(v);const g=(t,e)=>{p=t,h=e,n.width=p,n.height=h,r.viewport(0,0,p,h),y()};e.events().onFrameSize(g),g(e.width(),e.height());let m=null,b=null,w=0;e.events().onFrame(((t,e)=>{b=null!=t?t:e,w=null!=t?r.RGB:r.RGBA,null===m&&(m=requestAnimationFrame(_))}));const _=()=>{r.texImage2D(r.TEXTURE_2D,0,w,p,h,0,w,r.UNSIGNED_BYTE,b),r.drawArrays(r.TRIANGLES,0,6),m=null,b=null};e.events().onExit((()=>{t.removeOnResize(v)}))}},{"core-js/modules/es.typed-array.float32-array.js":119,"core-js/modules/es.typed-array.set.js":120,"core-js/modules/es.typed-array.sort.js":121,"core-js/modules/es.typed-array.uint8-array.js":122}],164:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.DosInstance=void 0;const r=t("./controls/layers-config"),i=t("./controls/legacy-layers-control"),s=t("./controls/null-layers-control"),a=t("./controls/layers-control"),l=t("./dom/pointer");n.DosInstance=class{constructor(t,e,n){var r,i,s;o(this,"emulatorsUi",void 0),o(this,"emulatorFunction",void 0),o(this,"createTransportLayer",void 0),o(this,"layers",void 0),o(this,"layersConfig",null),o(this,"ciPromise",void 0),o(this,"options",void 0),o(this,"mobileControls",void 0),o(this,"mirroredControls",void 0),o(this,"scaleControls",void 0),o(this,"autolock",void 0),o(this,"sensitivity",void 0),o(this,"storage",void 0),o(this,"volume",void 0),o(this,"clickToStart",void 0),o(this,"unbindControls",(()=>{})),o(this,"storedLayersConfig",null),o(this,"onMobileControlsChanged",void 0),o(this,"onSensitivityChanged",[]),o(this,"onScaleChanged",[]),o(this,"onVolumeChanged",[]),o(this,"setVolumeImplFn",(()=>{})),o(this,"registerOnSensitivityChanged",(t=>{this.onSensitivityChanged.push(t)})),o(this,"removeOnSensitivityChanged",(t=>{this.onSensitivityChanged=this.onSensitivityChanged.filter((e=>e!==t))})),o(this,"registerOnScaleChanged",(t=>{this.onScaleChanged.push(t)})),o(this,"removeOnScaleChanged",(t=>{this.onScaleChanged=this.onScaleChanged.filter((e=>e!==t))})),o(this,"registerOnVolumeChanged",(t=>{this.onVolumeChanged.push(t)})),o(this,"removeOnVolumeChanged",(t=>{this.onVolumeChanged=this.onVolumeChanged.filter((e=>e!==t))})),this.options=n,this.emulatorsUi=e,this.storage=e.dom.storage,this.emulatorFunction=n.emulatorFunction||"dosboxWorker",this.clickToStart=n.clickToStart||!1,this.layers=this.emulatorsUi.dom.layers(t,n.layersOptions),this.layers.showLoadingLayer(),this.createTransportLayer=n.createTransportLayer,this.mobileControls=l.pointers.bind.mobile,this.autolock=!1,this.mirroredControls="true"===this.storage.getItem("mirroredControls");const a=Number.parseFloat(null!==(r=this.storage.getItem("scaleControls"))&&void 0!==r?r:"1.0");this.scaleControls=Number.isNaN(a)?1:a;const c=Number.parseFloat(null!==(i=this.storage.getItem("sensitivity"))&&void 0!==i?i:"1.0");this.sensitivity=Number.isNaN(c)?1:c;const u=Number.parseFloat(null!==(s=this.storage.getItem("volume"))&&void 0!==s?s:"1.0");if(this.volume=Number.isNaN(u)?1:u,this.onMobileControlsChanged=()=>{},"backend"===this.emulatorFunction&&void 0===this.createTransportLayer)throw new Error("Emulator function set to 'backend' but 'createTransportLayer' is not a function")}async run(t,e,n){var o,i,s;await this.stop(),this.layers.setLoadingMessage("Starting...");const a=null!=n&&n.length>0?n:t+".changes";let l;try{l=await this.runBundle(t,e,a)}catch(t){throw this.layers.setLoadingMessage("Unexpected error occured..."),this.layers.notyf.error({message:"Can't start emulator look browser logs for more info"}),console.error(t),t}const c=this.emulatorsUi;if("janus"===this.emulatorFunction)c.graphics.video(this.layers,l);else{c.persist.save(a,this.layers,l,emulators);try{if(!0===this.options.noWebGL)throw new Error("WebGL is disabled by options");c.graphics.webGl(this.layers,l)}catch(t){console.error("Unable to create webgl canvas, fallback to 2d rendering"),c.graphics._2d(this.layers,l)}this.setVolumeImplFn=c.sound.audioNode(l),this.setVolumeImplFn(this.volume)}c.dom.lifecycle(l);const u=await l.config();return this.autolock=!0===(null===(o=u.output)||void 0===o||null===(i=o.options)||void 0===i||null===(s=i.autolock)||void 0===s?void 0:s.value),await this.setLayersConfig((0,r.extractLayersConfig)(u)),this.mobileControls||(this.mobileControls=!0,this.disableMobileControls()),this.layers.setLoadingMessage("Ready"),this.layers.hideLoadingLayer(),this.clickToStart&&this.layers.showClickToStart(),l}async stop(){if(this.layers.showLoadingLayer(),void 0===this.ciPromise)return;const t=await this.ciPromise;delete this.ciPromise,await t.exit()}async setLayersConfig(t,e){if(void 0===this.ciPromise)return;const n=await this.ciPromise;this.layersConfig=t,this.unbindControls(),null===t?this.unbindControls=(0,s.initNullLayersControl)(this,this.layers,n):void 0===t.version?this.unbindControls=(0,i.initLegacyLayersControl)(this,this.layers,t,n):this.unbindControls=(0,a.initLayersControl)(this.layers,t,n,this,this.mirroredControls,this.scaleControls,e)}getLayersConfig(){return this.layersConfig}async enableMobileControls(){this.mobileControls||(this.mobileControls=!0,await this.setLayersConfig(this.storedLayersConfig),this.storedLayersConfig=null,this.onMobileControlsChanged(!0))}async disableMobileControls(){this.mobileControls&&(this.mobileControls=!1,this.storedLayersConfig=this.layersConfig,await this.setLayersConfig(null),this.onMobileControlsChanged(!1))}async setMirroredControls(t){this.mirroredControls!==t&&(this.mirroredControls=t,this.storage.setItem("mirroredControls",t+""),t?this.mobileControls?await this.setLayersConfig(this.layersConfig):await this.enableMobileControls():this.mobileControls&&await this.setLayersConfig(this.layersConfig))}async setScaleControls(t){if(t!==this.scaleControls){this.scaleControls=t,this.storage.setItem("scaleControls",t+""),this.mobileControls&&await this.setLayersConfig(this.layersConfig);for(const t of this.onScaleChanged)t(this.scaleControls)}}async setSensitivity(t){if(t!==this.sensitivity){this.sensitivity=t,this.storage.setItem("sensitivity",t+""),await this.setLayersConfig(this.layersConfig);for(const t of this.onSensitivityChanged)t(this.sensitivity)}}async setVolume(t){this.volume=t,this.storage.setItem("volume",t+""),this.setVolumeImplFn(t);for(const t of this.onVolumeChanged)t(this.volume)}async setAutolock(t){t!==this.autolock&&(this.autolock=t,await this.setLayersConfig(this.layersConfig))}setOnMobileControlsChanged(t){this.onMobileControlsChanged=t}async runBundle(t,e,n){const o=this.emulatorsUi;if("janus"===this.emulatorFunction)this.layers.setLoadingMessage("Connecting..."),this.ciPromise=emulators.janus(t);else{this.layers.setLoadingMessage("Downloading bundle ...");const r=o.network.resolveBundle(t,{onprogress:t=>this.layers.setLoadingMessage("Downloading bundle "+t+"%")}),i={onExtractProgress:(t,e,n,o)=>{if(0!==t)return;const r=Math.round(n/o*100),i=e.lastIndexOf("/"),s=e.substring(i+1);this.layers.setLoadingMessage("Extracting "+r+"% ("+s+")")}};try{let t;t=null!=e&&e.length>0?await o.network.resolveBundle(e,{httpCache:!1}):await o.persist.load(n,emulators);const s=await r;"backend"===this.emulatorFunction?this.ciPromise=emulators.backend([s,t],this.createTransportLayer(),i):this.ciPromise=emulators[this.emulatorFunction]([s,t],i)}catch{const t=await r;"backend"===this.emulatorFunction?this.ciPromise=emulators.backend([t],this.createTransportLayer(),i):this.ciPromise=emulators[this.emulatorFunction]([t],i)}}return this.ciPromise}}},{"./controls/layers-config":143,"./controls/layers-control":144,"./controls/legacy-layers-control":145,"./controls/null-layers-control":151,"./dom/pointer":158,"core-js/modules/web.dom-collections.iterator.js":124}],165:[function(t,e,n){"use strict";t("core-js/modules/es.typed-array.uint8-array.js"),t("core-js/modules/es.typed-array.set.js"),t("core-js/modules/es.typed-array.sort.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.resolveBundle=void 0,n.resolveBundle=async function(t,e){const n=null==e?void 0:e.onprogress,o=!(!1===(null==e?void 0:e.httpCache));return new Promise(((e,r)=>{const i=new XMLHttpRequest;i.open("GET",t,!0),i.overrideMimeType("text/plain; charset=x-user-defined"),i.addEventListener("error",(()=>{r(new Error("Network error, can't download "+t))})),i.addEventListener("abort",(()=>{r(new Error("Request canceled for url "+t))}),!1),i.responseType="arraybuffer",i.onreadystatechange=()=>{4===i.readyState&&(200===i.status?(void 0!==n&&n(100),e(new Uint8Array(i.response))):r(new Error("Network error, can't download "+t)))},void 0!==n&&(i.onprogress=t=>{if(t.total&&t.total>0){const e=Math.round(1e4*t.loaded/t.total)/100;n(e)}}),!1===o&&(i.setRequestHeader("Cache-Control","no-cache, no-store, max-age=0"),i.setRequestHeader("Expires","Tue, 01 Jan 1980 1:00:00 GMT"),i.setRequestHeader("Pragma","no-cache")),i.send()}))}},{"core-js/modules/es.typed-array.set.js":120,"core-js/modules/es.typed-array.sort.js":121,"core-js/modules/es.typed-array.uint8-array.js":122}],166:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.notyf=void 0,n.notyf=function(t,e){const n=t.notyf;e.events().onMessage((function(t){if("error"===t){for(var e=arguments.length,o=new Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];n.error({message:JSON.stringify(o)})}}))}},{}],167:[function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(n,"__esModule",{value:!0}),n.makeCache=void 0;class r{close(){}put(t,e){return Promise.resolve()}get(t,e){return void 0!==e?Promise.resolve(e):Promise.reject(new Error("Cache is not supported on this host"))}forEach(t,e){e()}}n.makeCache=function(t,e){return new Promise((n=>{new i(t,n,(t=>{e.onErr(t),n(new r)}))}))};class i{constructor(t,e,n){if(o(this,"version",void 0),o(this,"storeName","files"),o(this,"indexedDB",void 0),o(this,"db",null),this.version=t,this.indexedDB="undefined"==typeof window?void 0:window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,this.indexedDB)try{const o=this.indexedDB.open("js-dos-cache ("+t+")",1);o.onerror=t=>{var e;n("Can't open cache database: "+(null===(e=o.error)||void 0===e?void 0:e.message))},o.onsuccess=t=>{this.db=o.result,e(this)},o.onupgradeneeded=t=>{try{this.db=o.result,this.db.onerror=t=>{n("Can't upgrade cache database")},this.db.createObjectStore(this.storeName)}catch(t){n("Can't upgrade cache database")}}}catch(t){n("Can't open cache database: "+t.message)}else n("Indexed db is not supported on this host")}close(){null!==this.db&&(this.db.close(),this.db=null)}put(t,e){return new Promise((n=>{if(null===this.db)return void n();const o=this.db.transaction(this.storeName,"readwrite");o.oncomplete=()=>n(),o.objectStore(this.storeName).put(e,t)}))}get(t,e){return new Promise(((n,o)=>{function r(t){void 0===e?o(new Error(t)):n(e)}if(null===this.db)return void r("db is not initalized");const i=this.db.transaction(this.storeName,"readonly").objectStore(this.storeName).get(t);i.onerror=()=>o(new Error("Can't read value for key '"+t+"'")),i.onsuccess=()=>{i.result?n(i.result):r("Result is empty for key '"+t+"', result: "+i.result)}}))}forEach(t,e){if(null===this.db)return void e();const n=this.db.transaction(this.storeName,"readonly").objectStore(this.storeName).openCursor();n.onerror=()=>e(),n.onsuccess=n=>{const o=n.target.result;o?(t(o.key.toString(),o.value),o.continue()):e()}}}},{}],168:[function(t,e,n){"use strict";t("core-js/modules/es.typed-array.uint8-array.js"),t("core-js/modules/es.typed-array.set.js"),t("core-js/modules/es.typed-array.sort.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.load=n.save=void 0;const o=(0,t("./cache").makeCache)("emulators-ui-saves",{onErr:console.error});n.save=function(t,e,n,r){e.setOnSave((async()=>{const e=await o,r=await n.persist();return e.put(t,r.buffer)}))},n.load=async function(t,e){return(await o).get(t).then((t=>new Uint8Array(t)))}},{"./cache":167,"core-js/modules/es.typed-array.set.js":120,"core-js/modules/es.typed-array.sort.js":121,"core-js/modules/es.typed-array.uint8-array.js":122}],169:[function(t,e,n){"use strict";t("core-js/modules/web.dom-collections.iterator.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.audioNode=void 0;class o{constructor(){var t,e,n;n=[],(e="samplesQueue")in(t=this)?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}push(t){this.samplesQueue.push(t)}length(){let t=0;for(const e of this.samplesQueue)t+=e.length;return t}writeTo(t,e){let n=0;for(;this.samplesQueue.length>0;){const o=this.samplesQueue[0],r=Math.min(e-n,o.length);if(r===o.length?(t.set(o,n),this.samplesQueue.shift()):(t.set(o.slice(0,r),n),this.samplesQueue[0]=o.slice(r)),n+=r,n===e)break}n<e&&t.fill(0,n)}}n.audioNode=function(t){const e=t.soundFrequency();if(0===e)return console.warn("Can't create audio node with sampleRate === 0, ingnoring"),()=>{};let n=null;if("undefined"!=typeof AudioContext?n=new AudioContext({sampleRate:e,latencyHint:"interactive"}):void 0!==window.webkitAudioContext&&(n=new window.webkitAudioContext({sampleRate:e,latencyHint:"interactive"})),null==n)return()=>{};const r=new o;t.events().onSoundPush((t=>{r.length()<6144&&r.push(t)}));const i=n.createScriptProcessor(2048,0,1);let s=!1,a=0;const l=t.directSound;i.onaudioprocess=void 0!==t.directSound?t=>{if(!s){const t=l.buffer[0];s=Math.ceil(t[t.length-1])>0}if(!s)return;let e=0,n=t.outputBuffer.length;const o=t.outputBuffer.numberOfChannels;let r,i=l.buffer[a];for(;n>0&&(r=Math.ceil(i[i.length-1]))>0;)if(n>=r){const s=i.subarray(0,r);for(let n=0;n<o;++n){t.outputBuffer.getChannelData(n).set(s,e)}e+=r,n-=r,i[i.length-1]=0,a=(a+1)%l.ringSize,i=l.buffer[a]}else{const s=i.subarray(0,n);for(let n=0;n<o;++n){t.outputBuffer.getChannelData(n).set(s,e)}i[i.length-1]=r-n,i.set(i.subarray(n,n+i[i.length-1])),n=0}}:t=>{const e=t.outputBuffer.length,n=t.outputBuffer.numberOfChannels,o=r.length();if(s||(s=o>=2048),s)for(let o=0;o<n;o++){const n=t.outputBuffer.getChannelData(o);r.writeTo(n,e)}};const c=n.createGain();c.connect(n.destination),i.connect(c),c.gain.value=1;const u=()=>{null!==n&&"suspended"===n.state&&n.resume()};return document.addEventListener("click",u,{once:!0}),document.addEventListener("touchstart",u,{once:!0}),document.addEventListener("keydown",u,{once:!0}),t.events().onExit((()=>{null!==n&&(i.disconnect(),c.disconnect(),n.close()),document.removeEventListener("click",u),document.removeEventListener("touchstart",u),document.removeEventListener("keydown",u)})),t=>{c.gain.value=t}}},{"core-js/modules/web.dom-collections.iterator.js":124}]},{},[160]);