react-simple-keyboard 3.8.288 → 3.8.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * react-simple-keyboard v3.8.288
3
+ * react-simple-keyboard v3.8.290
4
4
  * https://github.com/hodgef/react-simple-keyboard
5
5
  *
6
6
  * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
@@ -9,4 +9,4 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  *
11
11
  */
12
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactSimpleKeyboard=e(require("react")):t.ReactSimpleKeyboard=e(t.React)}(this,function(t){return function(){var e={981:function(){"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){"use strict";if("Element"in t){var e="classList",n="prototype",r=t.Element[n],o=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},u=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},s=function(t,e){if(""===e)throw new u("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new u("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=c[n]=[],f=function(){return new c(this)};if(u[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return~s(this,t+"")},l.add=function(){var t,e=arguments,n=0,r=e.length,o=!1;do{~s(this,t=e[n]+"")||(this.push(t),o=!0)}while(++n<r);o&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(e=s(this,t=n[r]+"");~e;)this.splice(e,1),i=!0,e=s(this,t)}while(++r<o);i&&this._updateClassName()},l.toggle=function(t,e){var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},l.replace=function(t,e){var n=s(t+"");~n&&(this.splice(n,1,e),this._updateClassName())},l.toString=function(){return this.join(" ")},o.defineProperty){var p={get:f,enumerable:!0,configurable:!0};try{o.defineProperty(r,e,p)}catch(t){void 0!==t.number&&-2146823252!==t.number||(p.enumerable=!1,o.defineProperty(r,e,p))}}else o[n].__defineGetter__&&r.__defineGetter__(e,f)}}(self),function(){"use strict";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,r=arguments.length;for(n=0;n<r;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(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),t=null}())},548:function(t){t.exports=function(){var t={529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},606:function(t,e,n){"use strict";var r=n(823),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+r(e)+" of "+r(t))}},837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},400:function(t){"use strict";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}},117:function(t){"use strict";t.exports=function(t){return null==t}},269:function(t){"use strict";t.exports=Object.create?Object.create(null):{}},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.cw=function(t){var e;return function(){if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return function(){"use strict";n.r(r),n.d(r,{SimpleKeyboard:function(){return mr},default:function(){return br}});var t=n.cw(function(t){var e=Et(),n=Ue(),r=TypeError;t.exports=function(t){if(e(t))return t;throw new r(n(t)+" is not a function")}}),e=n.cw(function(t){var e=St(),n=Ue(),r=TypeError;t.exports=function(t){if(e(t))return t;throw new r(n(t)+" is not a constructor")}}),o=n.cw(function(t){var e=At(),n=String,r=TypeError;t.exports=function(t){if(e(t))return t;throw new r("Can't set "+n(t)+" as a prototype")}}),i=n.cw(function(t){var e=Ye(),n=Gt(),r=Vt().f,o=e("unscopables"),i=Array.prototype;void 0===i[o]&&r(i,o,{configurable:!0,value:n(null)}),t.exports=function(t){i[o][t]=!0}}),a=n.cw(function(t){var e=ke().o;t.exports=function(t,n,r){return n+(r&&e(t,n).length||1)}}),u=n.cw(function(t){var e=Ct(),n=String,r=TypeError;t.exports=function(t){if(e(t))return t;throw new r(n(t)+" is not an object")}}),s=n.cw(function(t){var e=f().jJ,n=d()("forEach");t.exports=n?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),c=n.cw(function(t){var e=Z(),n=nt(),r=Le(),o=w(),i=xt(),a=St(),u=_t(),s=M(),c=v(),l=st(),f=ct(),p=Tt(),d=K(),h=Array;t.exports=function(t){var v=a(this),y=arguments.length,g=y>1?arguments[1]:void 0,m=void 0!==g;m&&(g=e(g,y>2?arguments[2]:void 0));var b,w,x,O,E,S,k=r(t),P=f(k),I=0;if(!P||this===h&&i(P))for(b=u(k),w=v?new this(b):h(b);b>I;I++)S=m?g(k[I],I):k[I],s(w,I,S);else for(w=v?new this:[],E=(O=l(k,P)).next;!(x=n(E,O)).done;I++){try{d(I)}catch(t){p(O,"throw",t)}S=m?o(O,g,[x.value,I],!0):x.value;try{s(w,I,S)}catch(t){p(O,"throw",t)}}return c(w,I),w}}),l=n.cw(function(t){var e=De(),n=Ne(),r=_t(),o=function(t){return function(o,i,a){var u=e(o),s=r(u);if(0===s)return!t&&-1;var c,l=n(a,s);if(t&&i!=i){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===i)return t||l||0;return!t&&-1}};t.exports={m:o(!0),q:o(!1)}}),f=n.cw(function(t){var e=Z(),n=gt(),r=Le(),o=_t(),i=b(),a=M(),u=function(t){var u=1===t,s=2===t,c=3===t,l=4===t,f=6===t,p=7===t,d=5===t||f;return function(h,v,y){for(var g,m,b=r(h),w=n(b),x=o(w),O=e(v,y),E=0,S=0,k=u?i(h,x):s||p?i(h,0):void 0;x>E;E++)if((d||E in w)&&(m=O(g=w[E],E,b),t))if(u)a(k,E,m);else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:a(k,S++,g)}else switch(t){case 4:return!1;case 7:a(k,S++,g)}return f?-1:c||l?l:k}};t.exports={jJ:u(0),Tj:u(1),pb:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}),p=n.cw(function(t){var e=W(),n=Ye(),r=V(),o=n("species");t.exports=function(t){return r>=51||!e(function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo})}}),d=n.cw(function(t){var e=W();t.exports=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}),h=n.cw(function(e){var n=t(),r=Le(),o=gt(),i=_t(),a=TypeError,u="Reduce of empty array with no initial value",s=function(t){return function(e,s,c,l){var f=r(e),p=o(f),d=i(f);if(n(s),0===d&&c<2)throw new a(u);var h=t?d-1:0,v=t?-1:1;if(c<2)for(;;){if(h in p){l=p[h],h+=v;break}if(h+=v,t?h<0:d<=h)throw new a(u)}for(;t?h>=0:d>h;h+=v)h in p&&(l=s(l,p[h],h,f));return l}};e.exports={k:s(!1),right:s(!0)}}),v=n.cw(function(t){var e=L(),n=Ot(),r=TypeError,o=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=i?function(t,e){if(n(t)&&!o(t,"length").writable)throw new r("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}}),y=n.cw(function(t){var e=at();t.exports=e([].slice)}),g=n.cw(function(t){var e=y(),n=Math.floor,r=function(t,o){var i=t.length;if(i<8)for(var a,u,s=1;s<i;){for(u=s,a=t[s];u&&o(t[u-1],a)>0;)t[u]=t[--u];u!==s++&&(t[u]=a)}else for(var c=n(i/2),l=r(e(t,0,c),o),f=r(e(t,c),o),p=l.length,d=f.length,h=0,v=0;h<p||v<d;)t[h+v]=h<p&&v<d?o(l[h],f[v])<=0?l[h++]:f[v++]:h<p?l[h++]:f[v++];return t};t.exports=r}),m=n.cw(function(t){var e=Ot(),n=St(),r=Ct(),o=Ye()("species"),i=Array;t.exports=function(t){var a;return e(t)&&(a=t.constructor,(n(a)&&(a===i||e(a.prototype))||r(a)&&null===(a=a[o]))&&(a=void 0)),void 0===a?i:a}}),b=n.cw(function(t){var e=m();t.exports=function(t,n){return new(e(t))(0===n?0:n)}}),w=n.cw(function(t){var e=u(),n=Tt();t.exports=function(t,r,o,i){try{return i?r(e(o)[0],o[1]):r(o)}catch(e){n(t,"throw",e)}}}),x=n.cw(function(t){var e=Ye()("iterator"),n=!1;try{var r=0,o={next:function(){return{done:!!r++}},return:function(){n=!0}};o[e]=function(){return this},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,r){try{if(!r&&!n)return!1}catch(t){return!1}var o=!1;try{var i={};i[e]=function(){return{next:function(){return{done:o=!0}}}},t(i)}catch(t){}return o}}),O=n.cw(function(t){var e=at(),n=e({}.toString),r=e("".slice);t.exports=function(t){return r(n(t),8,-1)}}),E=n.cw(function(t){var e=_e(),n=Et(),r=O(),o=Ye()("toStringTag"),i=Object,a="Arguments"===r(function(){return arguments}());t.exports=e?r:function(t){var e,u,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(u=function(t,e){try{return t[e]}catch(t){}}(e=i(t),o))?u:a?r(e):"Object"===(s=r(e))&&n(e.callee)?"Arguments":s}}),S=n.cw(function(t){var e=dt(),n=ae(),r=zt(),o=Vt();t.exports=function(t,i,a){for(var u=n(i),s=o.f,c=r.f,l=0;l<u.length;l++){var f=u[l];e(t,f)||a&&e(a,f)||s(t,f,c(i,f))}}}),k=n.cw(function(t){var e=Ye()("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,"/./"[t](n)}catch(t){}}return!1}}),P=n.cw(function(t){var e=W();t.exports=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}),I=function(){return n(529)},C=n.cw(function(t){var e=L(),n=Vt(),r=A();t.exports=e?function(t,e,o){return n.f(t,e,r(1,o))}:function(t,e,n){return t[e]=n,t}}),A=n.cw(function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}}),M=n.cw(function(t){var e=L(),n=Vt(),r=A();t.exports=function(t,o,i){e?n.f(t,o,r(0,i)):t[o]=i}}),j=n.cw(function(t){var e=u(),n=ie(),r=TypeError;t.exports=function(t){if(e(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new r("Incorrect hint");return n(this,t)}}),N=n.cw(function(t){var e=Ft(),n=Vt();t.exports=function(t,r,o){return o.get&&e(o.get,r,{getter:!0}),o.set&&e(o.set,r,{setter:!0}),n.f(t,r,o)}}),D=n.cw(function(t){var e=Et(),n=Vt(),r=Ft(),o=T();t.exports=function(t,i,a,u){u||(u={});var s=u.enumerable,c=void 0!==u.name?u.name:i;if(e(a)&&r(a,c,u),u.global)s?t[i]=a:o(i,a);else{try{u.unsafe?t[i]&&(s=!0):delete t[i]}catch(t){}s?t[i]=a:n.f(t,i,{value:a,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}}),T=n.cw(function(t){var e=pt(),n=Object.defineProperty;t.exports=function(t,r){try{n(e,t,{value:r,configurable:!0,writable:!0})}catch(n){e[t]=r}return r}}),R=function(){return n(606)},L=n.cw(function(t){var e=W();t.exports=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),B=n.cw(function(t){var e=pt(),n=Ct(),r=e.document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}}),K=function(){return n(837)},_=function(){return n(400)},F=n.cw(function(t){var e=B()("span").classList,n=e&&e.constructor&&e.constructor.prototype;t.exports=n===Object.prototype?void 0:n}),U=n.cw(function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),H=n.cw(function(t){var e=J().match(/firefox\/(\d+)/i);t.exports=!!e&&+e[1]}),$=n.cw(function(t){var e=J();t.exports=/MSIE|Trident/.test(e)}),G=n.cw(function(t){var e=Y();t.exports="NODE"===e}),J=n.cw(function(t){var e=pt().navigator,n=e&&e.userAgent;t.exports=n?String(n):""}),V=n.cw(function(t){var e,n,r=pt(),o=J(),i=r.process,a=r.Deno,u=i&&i.versions||a&&a.version,s=u&&u.v8;s&&(n=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!n&&o&&(!(e=o.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=o.match(/Chrome\/(\d+)/))&&(n=+e[1]),t.exports=n}),z=n.cw(function(t){var e=J().match(/AppleWebKit\/(\d+)\./);t.exports=!!e&&+e[1]}),Y=n.cw(function(t){var e=pt(),n=J(),r=O(),o=function(t){return n.slice(0,t.length)===t};t.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}),q=n.cw(function(t){var e=pt(),n=zt().f,r=C(),o=D(),i=T(),a=S(),u=kt();t.exports=function(t,s){var c,l,f,p,d,h=t.target,v=t.global,y=t.stat;if(c=v?e:y?e[h]||i(h,{}):e[h]&&e[h].prototype)for(l in s){if(p=s[l],f=t.dontCallGetSet?(d=n(c,l))&&d.value:c[l],!u(v?l:h+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;a(p,f)}(t.sham||f&&f.sham)&&r(p,"sham",!0),o(c,l,p,t)}}}),W=n.cw(function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}}),X=n.cw(function(t){kn();var e=nt(),n=D(),r=fe(),o=W(),i=Ye(),a=C(),u=i("species"),s=RegExp.prototype;t.exports=function(t,c,l,f){var p=i(t),d=!o(function(){var e={};return e[p]=function(){return 7},7!==""[t](e)}),h=d&&!o(function(){var e=!1,n=/a/;if("split"===t){var r={};r[u]=function(){return n},(n={constructor:r,flags:""})[p]=/./[p]}return n.exec=function(){return e=!0,null},n[p](""),!e});if(!d||!h||l){var v=/./[p],y=c(p,""[t],function(t,n,o,i,a){var u=n.exec;return u===r||u===s.exec?d&&!a?{done:!0,value:e(v,n,o,i)}:{done:!0,value:e(t,o,n,i)}:{done:!1}});n(String.prototype,t,y[0]),n(s,p,y[1])}f&&a(s[p],"sham",!0)}}),Q=n.cw(function(t){var e=tt(),n=Function.prototype,r=n.apply,o=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?o.bind(r):function(){return o.apply(r,arguments)})}),Z=n.cw(function(e){var n=it(),r=t(),o=tt(),i=n(n.bind);e.exports=function(t,e){return r(t),void 0===e?t:o?i(t,e):function(){return t.apply(e,arguments)}}}),tt=n.cw(function(t){var e=W();t.exports=!e(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}),et=n.cw(function(e){var n=at(),r=t(),o=Ct(),i=dt(),a=y(),u=tt(),s=Function,c=n([].concat),l=n([].join),f={};e.exports=u?s.bind:function(t){var e=r(this),n=e.prototype,u=a(arguments,1),p=function(){var n=c(u,a(arguments));return this instanceof p?function(t,e,n){if(!i(f,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";f[e]=s("C,a","return new C("+l(r,",")+")")}return f[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(p.prototype=n),p}}),nt=n.cw(function(t){var e=tt(),n=Function.prototype.call;t.exports=e?n.bind(n):function(){return n.apply(n,arguments)}}),rt=n.cw(function(t){var e=L(),n=dt(),r=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,i=n(r,"name"),a=i&&"something"===function(){}.name,u=i&&(!e||e&&o(r,"name").configurable);t.exports={EXISTS:i,PROPER:a,CONFIGURABLE:u}}),ot=n.cw(function(e){var n=at(),r=t();e.exports=function(t,e,o){try{return n(r(Object.getOwnPropertyDescriptor(t,e)[o]))}catch(t){}}}),it=n.cw(function(t){var e=O(),n=at();t.exports=function(t){if("Function"===e(t))return n(t)}}),at=n.cw(function(t){var e=tt(),n=Function.prototype,r=n.call,o=e&&n.bind.bind(r,r);t.exports=e?o:function(t){return function(){return r.apply(t,arguments)}}}),ut=n.cw(function(t){var e=pt(),n=Et();t.exports=function(t,r){return arguments.length<2?(o=e[t],n(o)?o:void 0):e[t]&&e[t][r];var o}}),st=n.cw(function(t){var e=nt(),n=Et(),r=u(),o=Ue(),i=ct(),a=TypeError;t.exports=function(t,u){var s=arguments.length<2?i(t):u;if(n(s))return r(e(s,t));throw new a(o(t)+" is not iterable")}}),ct=n.cw(function(t){var e=O(),n=It(),r=lt(),o=Ye()("iterator"),i=Array.prototype;t.exports=function(t){if(!n(t))return r(t,o)||r(t,"@@iterator")||("Arguments"===e(t)?i[o]:void 0)}}),lt=n.cw(function(e){var n=t(),r=It();e.exports=function(t,e){var o=t[e];return r(o)?void 0:n(o)}}),ft=n.cw(function(t){var e=at(),n=Le(),r=Math.floor,o=e("".charAt),i=e("".replace),a=e("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,c,l,f,p){var d=c+t.length,h=l.length,v=s;return void 0!==f&&(f=n(f),v=u),i(p,v,function(n,i){var u;switch(o(i,0)){case"$":return"$";case"&":return t;case"`":return a(e,0,c);case"'":return a(e,d);case"<":u=f[a(i,1,-1)];break;default:var s=+i;if(0===s)return n;if(s>h){var p=r(s/10);return 0===p?n:p<=h?void 0===l[p-1]?o(i,1):l[p-1]+o(i,1):n}u=l[s-1]}return void 0===u?"":u})}}),pt=n.cw(function(t){var e=function(t){return t&&t.Math===Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n.g&&n.g)||e("object"==typeof this&&this)||function(){return this}()||Function("return this")()}),dt=n.cw(function(t){var e=at(),n=Le(),r=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(n(t),e)}}),ht=n.cw(function(t){t.exports={}}),vt=n.cw(function(t){var e=ut();t.exports=e("document","documentElement")}),yt=n.cw(function(t){var e=L(),n=W(),r=B();t.exports=!e&&!n(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}),gt=n.cw(function(t){var e=at(),n=W(),r=O(),o=Object,i=e("".split);t.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?i(t,""):o(t)}:o}),mt=n.cw(function(t){var e=Et(),n=Ct(),r=re();t.exports=function(t,o,i){var a,u;return r&&e(a=o.constructor)&&a!==i&&n(u=a.prototype)&&u!==i.prototype&&r(t,u),t}}),bt=n.cw(function(t){var e=at(),n=Et(),r=Oe(),o=e(Function.toString);n(r.inspectSource)||(r.inspectSource=function(t){return o(t)}),t.exports=r.inspectSource}),wt=n.cw(function(t){var e,n,r,o=Je(),i=pt(),a=Ct(),u=C(),s=dt(),c=Oe(),l=xe(),f=ht(),p="Object already initialized",d=i.TypeError,h=i.WeakMap;if(o||c.state){var v=c.state||(c.state=new h);v.get=v.get,v.has=v.has,v.set=v.set,e=function(t,e){if(v.has(t))throw new d(p);return e.facade=t,v.set(t,e),e},n=function(t){return v.get(t)||{}},r=function(t){return v.has(t)}}else{var y=l("state");f[y]=!0,e=function(t,e){if(s(t,y))throw new d(p);return e.facade=t,u(t,y,e),e},n=function(t){return s(t,y)?t[y]:{}},r=function(t){return s(t,y)}}t.exports={set:e,get:n,has:r,enforce:function(t){return r(t)?n(t):e(t,{})},getterFor:function(t){return function(e){var r;if(!a(e)||(r=n(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}),xt=n.cw(function(t){var e=Ye(),n=Kt(),r=e("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[r]===t)}}),Ot=n.cw(function(t){var e=O();t.exports=Array.isArray||function(t){return"Array"===e(t)}}),Et=n.cw(function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}}),St=n.cw(function(t){var e=at(),n=W(),r=Et(),o=E(),i=ut(),a=bt(),u=function(){},s=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,l=e(c.exec),f=!c.test(u),p=function(t){if(!r(t))return!1;try{return s(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!l(c,a(t))}catch(t){return!0}};d.sham=!0,t.exports=!s||n(function(){var t;return p(p.call)||!p(Object)||!p(function(){t=!0})||t})?d:p}),kt=n.cw(function(t){var e=W(),n=Et(),r=/#|\.prototype\./,o=function(t,r){var o=a[i(t)];return o===s||o!==u&&(n(r)?e(r):!!r)},i=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";t.exports=o}),Pt=n.cw(function(t){var e=Ct(),n=Math.floor;t.exports=Number.isInteger||function(t){return!e(t)&&isFinite(t)&&n(t)===t}}),It=function(){return n(117)},Ct=n.cw(function(t){var e=Et();t.exports=function(t){return"object"==typeof t?null!==t:e(t)}}),At=n.cw(function(t){var e=Ct();t.exports=function(t){return e(t)||null===t}}),Mt=n.cw(function(t){t.exports=!1}),jt=n.cw(function(t){var e=Ct(),n=wt().get;t.exports=function(t){if(!e(t))return!1;var r=n(t);return!!r&&"RawJSON"===r.type}}),Nt=n.cw(function(t){var e=Ct(),n=O(),r=Ye()("match");t.exports=function(t){var o;return e(t)&&(void 0!==(o=t[r])?!!o:"RegExp"===n(t))}}),Dt=n.cw(function(t){var e=ut(),n=Et(),r=Qt(),o=$e(),i=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var o=e("Symbol");return n(o)&&r(o.prototype,i(t))}}),Tt=n.cw(function(t){var e=nt(),n=u(),r=lt();t.exports=function(t,o,i){var a,u;n(t);try{if(!(a=r(t,"return"))){if("throw"===o)throw i;return i}a=e(a,t)}catch(t){u=!0,a=t}if("throw"===o)throw i;if(u)throw a;return n(a),i}}),Rt=n.cw(function(t){var e=Bt().IteratorPrototype,n=Gt(),r=A(),o=we(),i=Kt(),a=function(){return this};t.exports=function(t,u,s,c){var l=u+" Iterator";return t.prototype=n(e,{next:r(+!c,s)}),o(t,l,!1,!0),i[l]=a,t}}),Lt=n.cw(function(t){var e=q(),n=nt(),r=Mt(),o=rt(),i=Et(),a=Rt(),u=Xt(),s=re(),c=we(),l=C(),f=D(),p=Ye(),d=Kt(),h=Bt(),v=o.PROPER,y=o.CONFIGURABLE,g=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,b=p("iterator"),w="keys",x="values",O="entries",E=function(){return this};t.exports=function(t,o,p,h,S,k,P){a(p,o,h);var I,C,A,M=function(t){if(t===S&&R)return R;if(!m&&t&&t in D)return D[t];switch(t){case w:case x:case O:return function(){return new p(this,t)}}return function(){return new p(this)}},j=o+" Iterator",N=!1,D=t.prototype,T=D[b]||D["@@iterator"]||S&&D[S],R=!m&&T||M(S),L="Array"===o&&D.entries||T;if(L&&(I=u(L.call(new t)))!==Object.prototype&&I.next&&(r||u(I)===g||(s?s(I,g):i(I[b])||f(I,b,E)),c(I,j,!0,!0),r&&(d[j]=E)),v&&S===x&&T&&T.name!==x&&(!r&&y?l(D,"name",x):(N=!0,R=function(){return n(T,this)})),S)if(C={values:M(x),keys:k?R:M(w),entries:M(O)},P)for(A in C)(m||N||!(A in D))&&f(D,A,C[A]);else e({target:o,proto:!0,forced:m||N},C);return r&&!P||D[b]===R||f(D,b,R,{name:S}),d[o]=R,C}}),Bt=n.cw(function(t){var e,n,r,o=W(),i=Et(),a=Ct(),u=Gt(),s=Xt(),c=D(),l=Ye(),f=Mt(),p=l("iterator"),d=!1;[].keys&&("next"in(r=[].keys())?(n=s(s(r)))!==Object.prototype&&(e=n):d=!0),!a(e)||o(function(){var t={};return e[p].call(t)!==t})?e={}:f&&(e=u(e)),i(e[p])||c(e,p,function(){return this}),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:d}}),Kt=function(){return n(269)},_t=n.cw(function(t){var e=Re();t.exports=function(t){return e(t.length)}}),Ft=n.cw(function(t){var e=at(),n=W(),r=Et(),o=dt(),i=L(),a=rt().CONFIGURABLE,u=bt(),s=wt(),c=s.enforce,l=s.get,f=String,p=Object.defineProperty,d=e("".slice),h=e("".replace),v=e([].join),y=i&&!n(function(){return 8!==p(function(){},"length",{value:8}).length}),g=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===d(f(e),0,7)&&(e="["+h(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||a&&t.name!==e)&&(i?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&o(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?i&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=c(t);return o(r,"source")||(r.source=v(g,"string"==typeof e?e:"")),t};Function.prototype.toString=m(function(){return r(this)&&l(this).source||u(this)},"toString")}),Ut=n.cw(function(t){var e=W();t.exports=!e(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})}),Ht=n.cw(function(t){var e=Nt(),n=TypeError;t.exports=function(t){if(e(t))throw new n("The method doesn't accept regular expressions");return t}}),$t=n.cw(function(t){var e=L(),n=at(),r=nt(),o=W(),i=te(),a=Wt(),u=ee(),s=Le(),c=gt(),l=Object.assign,f=Object.defineProperty,p=n([].concat);t.exports=!l||o(function(){if(e&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(t){n[t]=t}),7!==l({},t)[r]||i(l({},n)).join("")!==o})?function(t,n){for(var o=s(t),l=arguments.length,f=1,d=a.f,h=u.f;l>f;)for(var v,y=c(arguments[f++]),g=d?p(i(y),d(y)):i(y),m=g.length,b=0;m>b;)v=g[b++],e&&!r(h,y,v)||(o[v]=y[v]);return o}:l}),Gt=n.cw(function(t){var e,n=u(),r=Jt(),o=U(),i=ht(),a=vt(),s=B(),c=xe(),l="prototype",f="script",p=c("IE_PROTO"),d=function(){},h=function(t){return"<"+f+">"+t+"</"+f+">"},v=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{e=new ActiveXObject("htmlfile")}catch(t){}var t,n,r;y="undefined"!=typeof document?document.domain&&e?v(e):(n=s("iframe"),r="java"+f+":",n.style.display="none",a.appendChild(n),n.src=String(r),(t=n.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):v(e);for(var i=o.length;i--;)delete y[l][o[i]];return y()};i[p]=!0,t.exports=Object.create||function(t,e){var o;return null!==t?(d[l]=n(t),o=new d,d[l]=null,o[p]=t):o=y(),void 0===e?o:r.f(o,e)}}),Jt=n.cw(function(t,e){var n=L(),r=Ge(),o=Vt(),i=u(),a=De(),s=te();e.f=n&&!r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),u=s(e),c=u.length,l=0;c>l;)o.f(t,n=u[l++],r[n]);return t}}),Vt=n.cw(function(t,e){var n=L(),r=yt(),o=Ge(),i=u(),a=Ke(),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=n?o?function(t,e,n){if(i(t),e=a(e),i(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(i(t),e=a(e),i(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}}),zt=n.cw(function(t,e){var n=L(),r=nt(),o=ee(),i=A(),a=De(),u=Ke(),s=dt(),c=yt(),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=u(e),c)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r(o.f,t,e),t[e])}}),Yt=n.cw(function(t){var e=O(),n=De(),r=qt().f,o=y(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"Window"===e(t)?function(t){try{return r(t)}catch(t){return o(i)}}(t):r(n(t))}}),qt=n.cw(function(t,e){var n=Zt(),r=U().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}}),Wt=function(){return n(717)},Xt=n.cw(function(t){var e=dt(),n=Et(),r=Le(),o=xe(),i=P(),a=o("IE_PROTO"),u=Object,s=u.prototype;t.exports=i?u.getPrototypeOf:function(t){var o=r(t);if(e(o,a))return o[a];var i=o.constructor;return n(i)&&o instanceof i?i.prototype:o instanceof u?s:null}}),Qt=n.cw(function(t){var e=at();t.exports=e({}.isPrototypeOf)}),Zt=n.cw(function(t){var e=at(),n=dt(),r=De(),o=l().q,i=ht(),a=e([].push);t.exports=function(t,e){var u,s=r(t),c=0,l=[];for(u in s)!n(i,u)&&n(s,u)&&a(l,u);for(;e.length>c;)n(s,u=e[c++])&&(~o(l,u)||a(l,u));return l}}),te=n.cw(function(t){var e=Zt(),n=U();t.exports=Object.keys||function(t){return e(t,n)}}),ee=n.cw(function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n}),ne=n.cw(function(t){var e=Mt(),n=pt(),r=W(),o=z();t.exports=e||!r(function(){if(!(o&&o<535)){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n[t]}})}),re=n.cw(function(t){var e=ot(),n=Ct(),r=me(),i=o();t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,o=!1,a={};try{(t=e(Object.prototype,"__proto__","set"))(a,[]),o=a instanceof Array}catch(t){}return function(e,a){return r(e),i(a),n(e)?(o?t(e,a):e.__proto__=a,e):e}}():void 0)}),oe=n.cw(function(t){var e=_e(),n=E();t.exports=e?{}.toString:function(){return"[object "+n(this)+"]"}}),ie=n.cw(function(t){var e=nt(),n=Et(),r=Ct(),o=TypeError;t.exports=function(t,i){var a,u;if("string"===i&&n(a=t.toString)&&!r(u=e(a,t)))return u;if(n(a=t.valueOf)&&!r(u=e(a,t)))return u;if("string"!==i&&n(a=t.toString)&&!r(u=e(a,t)))return u;throw new o("Can't convert object to primitive value")}}),ae=n.cw(function(t){var e=ut(),n=at(),r=qt(),o=Wt(),i=u(),a=n([].concat);t.exports=e("Reflect","ownKeys")||function(t){var e=r.f(i(t)),n=o.f;return n?a(e,n(t)):e}}),ue=n.cw(function(t){var e=at(),n=dt(),r=SyntaxError,o=parseInt,i=String.fromCharCode,a=e("".charAt),u=e("".slice),s=e(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},l=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var p=!0,d="";e<t.length;){var h=a(t,e);if("\\"===h){var v=u(t,e,e+2);if(n(c,v))d+=c[v],e+=2;else{if("\\u"!==v)throw new r('Unknown escape sequence: "'+v+'"');var y=u(t,e+=2,e+4);if(!s(l,y))throw new r("Bad Unicode escape at: "+e);d+=i(o(y,16)),e+=4}}else{if('"'===h){p=!1,e++;break}if(s(f,h))throw new r("Bad control character in string literal at: "+e);d+=h,e++}}if(p)throw new r("Unterminated string at: "+e);return{value:d,end:e}}}),se=n.cw(function(t){var e=pt();t.exports=e}),ce=n.cw(function(t){var e=Vt().f;t.exports=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(t){n[r]=t}})}}),le=n.cw(function(t){var e=nt(),n=u(),r=Et(),o=O(),i=fe(),a=TypeError;t.exports=function(t,u){var s=t.exec;if(r(s)){var c=e(s,t,u);return null!==c&&n(c),c}if("RegExp"===o(t))return e(i,t,u);throw new a("RegExp#exec called on incompatible receiver")}}),fe=n.cw(function(t){var e,n,r=nt(),o=at(),i=Fe(),a=de(),u=ve(),s=Ee(),c=Gt(),l=wt().get,f=ye(),p=ge(),d=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,v=h,y=o("".charAt),g=o("".indexOf),m=o("".replace),b=o("".slice),w=(n=/b*/g,r(h,e=/a/,"a"),r(h,n,"a"),0!==e.lastIndex||0!==n.lastIndex),x=u.BROKEN_CARET,O=void 0!==/()??/.exec("")[1],E=function(t,e){for(var n=t.groups=c(null),r=0;r<e.length;r++){var o=e[r];n[o[0]]=t[o[1]]}};(w||O||x||f||p)&&(v=function(t){var e,n,o,u=this,s=l(u),c=i(t),f=s.raw;if(f)return f.lastIndex=u.lastIndex,e=r(v,f,c),u.lastIndex=f.lastIndex,e&&s.groups&&E(e,s.groups),e;var p=s.groups,S=x&&u.sticky,k=r(a,u),P=u.source,I=0,C=c;if(S){k=m(k,"y",""),-1===g(k,"g")&&(k+="g"),C=b(c,u.lastIndex);var A=u.lastIndex>0&&y(c,u.lastIndex-1);u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==A&&"\r"!==A&&"\u2028"!==A&&"\u2029"!==A)&&(P="(?: (?:"+P+"))",C=" "+C,I++),n=new RegExp("^(?:"+P+")",k)}O&&(n=new RegExp("^"+P+"$(?!\\s)",k)),w&&(o=u.lastIndex);var M=r(h,S?n:u,C);return S?M?(M.input=c,M[0]=b(M[0],I),M.index=u.lastIndex,u.lastIndex+=M[0].length):u.lastIndex=0:w&&M&&(u.lastIndex=u.global?M.index+M[0].length:o),O&&M&&M.length>1&&r(d,M[0],n,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(M[t]=void 0)}),M&&p&&E(M,p),M}),t.exports=v}),pe=n.cw(function(t){var e=pt(),n=W(),r=e.RegExp,o=!n(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var u in t&&(a.hasIndices="d"),a)i(u,a[u]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(e)!==o||n!==o});t.exports={correct:o}}),de=n.cw(function(t){var e=u();t.exports=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}),he=n.cw(function(t){var e=nt(),n=dt(),r=Qt(),o=pe(),i=de(),a=RegExp.prototype;t.exports=o.correct?function(t){return t.flags}:function(t){return o.correct||!r(a,t)||n(t,"flags")?t.flags:e(i,t)}}),ve=n.cw(function(t){var e=W(),n=pt().RegExp,r=e(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),o=r||e(function(){return!n("a","y").sticky}),i=r||e(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:i,MISSED_STICKY:o,UNSUPPORTED_Y:r}}),ye=n.cw(function(t){var e=W(),n=pt().RegExp;t.exports=e(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}),ge=n.cw(function(t){var e=W(),n=pt().RegExp;t.exports=e(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}),me=n.cw(function(t){var e=It(),n=TypeError;t.exports=function(t){if(e(t))throw new n("Can't call method on "+t);return t}}),be=n.cw(function(t){var e=ut(),n=N(),r=Ye(),o=L(),i=r("species");t.exports=function(t){var r=e(t);o&&r&&!r[i]&&n(r,i,{configurable:!0,get:function(){return this}})}}),we=n.cw(function(t){var e=Vt().f,n=dt(),r=Ye()("toStringTag");t.exports=function(t,o,i){t&&!i&&(t=t.prototype),t&&!n(t,r)&&e(t,r,{configurable:!0,value:o})}}),xe=n.cw(function(t){var e=Ee(),n=He(),r=e("keys");t.exports=function(t){return r[t]||(r[t]=n(t))}}),Oe=n.cw(function(t){var e=Mt(),n=pt(),r=T(),o="__core-js_shared__",i=t.exports=n[o]||r(o,{});(i.versions||(i.versions=[])).push({version:"3.50.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Ee=n.cw(function(t){var e=Oe(),n=Object.create||Object;t.exports=function(t,r){return e[t]||(e[t]=r||n(null))}}),Se=n.cw(function(t){var n=u(),r=e(),o=It(),i=Ye()("species");t.exports=function(t,e){var a,u=n(t).constructor;return void 0===u||o(a=n(u)[i])?e:r(a)}}),ke=n.cw(function(t){var e=at(),n=Te(),r=Fe(),o=me(),i=e("".charAt),a=e("".charCodeAt),u=e("".slice),s=function(t){return function(e,s){var c,l,f=r(o(e)),p=n(s),d=f.length;return p<0||p>=d?t?"":void 0:(c=a(f,p))<55296||c>56319||p+1===d||(l=a(f,p+1))<56320||l>57343?t?i(f,p):c:t?u(f,p,p+2):l-56320+(c-55296<<10)+65536}};t.exports={codeAt:s(!1),o:s(!0)}}),Pe=n.cw(function(t){var e=rt().PROPER,n=W(),r=qe();t.exports=function(t){return n(function(){return!!r[t]()||"​…᠎"!=="​…᠎"[t]()||e&&r[t].name!==t})}}),Ie=n.cw(function(t){var e=at(),n=me(),r=Fe(),o=qe(),i=e("".replace),a=RegExp("^["+o+"]+"),u=RegExp("(^|[^"+o+"])["+o+"]+$"),s=function(t){return function(e){var o=r(n(e));return 1&t&&(o=i(o,a,"")),2&t&&(o=i(o,u,"$1")),o}};t.exports={start:s(1),end:s(2),Bq:s(3)}}),Ce=n.cw(function(t){var e=V(),n=W(),r=pt().String;t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}),Ae=n.cw(function(t){var e=nt(),n=ut(),r=Ye(),o=D();t.exports=function(){var t=n("Symbol"),i=t&&t.prototype,a=i&&i.valueOf,u=r("toPrimitive");i&&!i[u]&&o(i,u,function(t){return e(a,this)},{arity:1})}}),Me=n.cw(function(t){var e=Ce();t.exports=e&&!!Symbol.for&&!!Symbol.keyFor}),je=n.cw(function(t){var e=at();t.exports=e(1.1.valueOf)}),Ne=n.cw(function(t){var e=Te(),n=Math.max,r=Math.min;t.exports=function(t,o){var i=e(t);return i<0?n(i+o,0):r(i,o)}}),De=n.cw(function(t){var e=gt(),n=me();t.exports=function(t){return e(n(t))}}),Te=n.cw(function(t){var e=n(741);t.exports=function(t){var n=+t;return n!=n||0===n?0:e(n)}}),Re=n.cw(function(t){var e=Te(),n=Math.min;t.exports=function(t){var r=e(t);return r>0?n(r,9007199254740991):0}}),Le=n.cw(function(t){var e=me(),n=Object;t.exports=function(t){return n(e(t))}}),Be=n.cw(function(t){var e=nt(),n=Ct(),r=Dt(),o=lt(),i=ie(),a=Ye(),u=TypeError,s=a("toPrimitive");t.exports=function(t,a){if(!n(t)||r(t))return t;var c,l=o(t,s);if(l){if(void 0===a&&(a="default"),c=e(l,t,a),!n(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(t,a)}}),Ke=n.cw(function(t){var e=Be(),n=Dt();t.exports=function(t){var r=e(t,"string");return n(r)?r:r+""}}),_e=n.cw(function(t){var e={};e[Ye()("toStringTag")]="z",t.exports="[object z]"===String(e)}),Fe=n.cw(function(t){var e=E(),n=String;t.exports=function(t){if("Symbol"===e(t))throw new TypeError("Cannot convert a Symbol value to a string");return n(t)}}),Ue=function(){return n(823)},He=n.cw(function(t){var e=at(),n=0,r=Math.random(),o=e(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++n+r,36)}}),$e=n.cw(function(t){var e=Ce();t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),Ge=n.cw(function(t){var e=L(),n=W();t.exports=e&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),Je=n.cw(function(t){var e=pt(),n=Et(),r=e.WeakMap;t.exports=n(r)&&/native code/.test(String(r))}),Ve=n.cw(function(t){var e=se(),n=dt(),r=ze(),o=Vt().f;t.exports=function(t){var i=e.Symbol||(e.Symbol={});n(i,t)||o(i,t,{value:r.f(t)})}}),ze=n.cw(function(t,e){var n=Ye();e.f=n}),Ye=n.cw(function(t){var e=pt(),n=Ee(),r=dt(),o=He(),i=Ce(),a=$e(),u=e.Symbol,s=n("wks"),c=a?u.for||u:u&&u.withoutSetter||o;t.exports=function(t){return r(s,t)||(s[t]=i&&r(u,t)?u[t]:c("Symbol."+t)),s[t]}}),qe=n.cw(function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"}),We=n.cw(function(){var t=q(),e=W(),n=Ot(),r=Ct(),o=Le(),i=_t(),a=K(),u=M(),s=v(),c=b(),l=p(),f=Ye(),d=V(),h=f("isConcatSpreadable"),y=d>=51||!e(function(){var t=[];return t[h]=!1,t.concat()[0]!==t}),g=function(t){if(!r(t))return!1;var e=t[h];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!y||!l("concat")},{concat:function(t){var e,n,r,l,f,p=o(this),d=c(p,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(g(f=-1===e?p:arguments[e]))for(l=i(f),a(h+l),n=0;n<l;n++,h++)n in f&&u(d,h,f[n]);else a(h+1),u(d,h++,f);return s(d,h),d}})}),Xe=n.cw(function(){var t=q(),e=f().pb;t({target:"Array",proto:!0,forced:!p()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}),Qe=n.cw(function(){var t=q(),e=c();t({target:"Array",stat:!0,forced:!x()(function(t){Array.from(t)})},{from:e})}),Ze=n.cw(function(){var t=q(),e=l().m,n=W(),r=i(),o=n(function(){return!Array(1).includes()}),a=n(function(){return[,1].includes(void 0,1)});t({target:"Array",proto:!0,forced:o||a},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}),tn=n.cw(function(){var t=q(),e=it(),n=l().q,r=d(),o=e([].indexOf),i=!!o&&1/o([1],1,-0)<0;t({target:"Array",proto:!0,forced:i||!r("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return i?o(this,t,e)||0:n(this,t,e)}})}),en=n.cw(function(t){var e=De(),n=i(),r=Kt(),o=wt(),a=Vt().f,u=Lt(),s=I(),c=Mt(),l=L(),f="Array Iterator",p=o.set,d=o.getterFor(f);t.exports=u(Array,"Array",function(t,n){p(this,{type:f,target:e(t),index:0,kind:n})},function(){var t=d(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(n,!1);case"values":return s(e[n],!1)}return s([n,e[n]],!1)},"values");var h=r.Arguments=r.Array;if(n("keys"),n("values"),n("entries"),!c&&l&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(t){}}),nn=n.cw(function(){var t=q(),e=at(),n=gt(),r=De(),o=d(),i=e([].join);t({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(t){return i(r(this),void 0===t?",":t)}})}),rn=n.cw(function(){var t=q(),e=f().Tj;t({target:"Array",proto:!0,forced:!p()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}),on=n.cw(function(){var t=q(),e=h().k,n=d(),r=V();t({target:"Array",proto:!0,forced:!G()&&r>79&&r<83||!n("reduce")},{reduce:function(t){var n=arguments.length;return e(this,t,n,n>1?arguments[1]:void 0)}})}),an=n.cw(function(){var t=q(),e=Ot(),n=St(),r=Ct(),o=Ne(),i=_t(),a=De(),u=M(),s=v(),c=Ye(),l=p(),f=y(),d=l("slice"),h=c("species"),g=Array,m=Math.max;t({target:"Array",proto:!0,forced:!d},{slice:function(t,c){var l,p,d,v=a(this),y=i(v),b=o(t,y),w=o(void 0===c?y:c,y);if(e(v)&&(l=v.constructor,(n(l)&&(l===g||e(l.prototype))||r(l)&&null===(l=l[h]))&&(l=void 0),l===g||void 0===l))return f(v,b,w);for(p=new(void 0===l?g:l)(m(w-b,0)),d=0;b<w;b++,d++)b in v&&u(p,d,v[b]);return s(p,d),p}})}),un=n.cw(function(){var e=q(),n=at(),r=t(),o=Le(),i=_t(),a=R(),u=Fe(),s=W(),c=g(),l=d(),f=H(),p=$(),h=V(),v=z(),y=[],m=n(y.sort),b=n(y.push),w=s(function(){y.sort(void 0)}),x=s(function(){y.sort(null)}),O=l("sort"),E=!s(function(){if(h)return h<70;if(!(f&&f>3)){if(p)return!0;if(v)return v<603;var t,e,n,r,o="";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(r=0;r<47;r++)y.push({k:e+r,v:n})}for(y.sort(function(t,e){return e.v-t.v}),r=0;r<y.length;r++)e=y[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}});e({target:"Array",proto:!0,forced:w||!x||!O||!E},{sort:function(t){void 0!==t&&r(t);var e=o(this);if(E)return void 0===t?m(e):m(e,t);var n,s,l=[],f=i(e);for(s=0;s<f;s++)s in e&&b(l,e[s]);for(c(l,function(t){return function(e,n){if(void 0===n)return-1;if(void 0===e)return 1;if(void 0!==t)return+t(e,n)||0;var r=u(e),o=u(n);return r===o?0:r>o?1:-1}}(t)),n=i(l),s=0;s<n;)e[s]=l[s++];for(;s<f;)a(e,s++);return e}})}),sn=n.cw(function(){var t=q(),e=Le(),n=Ne(),r=Te(),o=_t(),i=v(),a=K(),u=b(),s=M(),c=R(),l=p()("splice"),f=Math.max,d=Math.min;t({target:"Array",proto:!0,forced:!l},{splice:function(t,l){var p,h,v,y,g,m,b=e(this),w=o(b),x=n(t,w),O=arguments.length;for(0===O?p=h=0:1===O?(p=0,h=w-x):(p=O-2,h=d(f(r(l),0),w-x)),a(w+p-h),v=u(b,h),y=0;y<h;y++)(g=x+y)in b&&s(v,y,b[g]);if(i(v,h),p<h){for(y=x;y<w-h;y++)m=y+p,(g=y+h)in b?b[m]=b[g]:c(b,m);for(y=w;y>w-h+p;y--)c(b,y-1)}else if(p>h)for(y=w-h;y>x;y--)m=y+p-1,(g=y+h-1)in b?b[m]=b[g]:c(b,m);for(y=0;y<p;y++)b[y+x]=arguments[y+2];return i(b,w-h+p),v}})}),cn=n.cw(function(){var t=q(),e=W(),n=Le(),r=Be();t({target:"Date",proto:!0,forced:e(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=n(this),o=r(e,"number");return"number"!=typeof o||isFinite(o)?e.toISOString():null}})}),ln=n.cw(function(){var t=dt(),e=D(),n=j(),r=Ye()("toPrimitive"),o=Date.prototype;t(o,r)||e(o,r,n)}),fn=n.cw(function(){var t=L(),e=rt().EXISTS,n=at(),r=N(),o=Function.prototype,i=n(o.toString),a=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=n(a.exec);t&&!e&&r(o,"name",{configurable:!0,get:function(){try{return u(a,i(this))[1]}catch(t){return""}}})}),pn=n.cw(function(){var t=q(),e=ut(),n=nt(),r=at(),o=W(),i=Ot(),a=Et(),u=Ct(),s=Gt(),c=jt(),f=Dt(),p=O(),d=je(),h=l().m,v=dt(),y=Fe(),g=ue(),m=He(),b=Ce(),w=Ut(),x=String,E=TypeError,S=e("JSON","stringify"),k=e("BigInt"),P=r("".valueOf),I=r((!0).valueOf),C=k&&r(k.prototype.valueOf),A=r(/./.exec),M=r("".charAt),j=r("".charCodeAt),N=r("".replace),D=r("".slice),T=r([].push),R=r([].pop),L=r(1.1.toString),B=/[\uD800-\uDFFF]/g,K=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,F=/^\d+$/,U=m(),H=m(),$=m(),G=U.length,J=H.length,V=!b||o(function(){var t=e("Symbol")("stringify detection");return"[null]"!==S([t])||"{}"!==S({a:t})||"{}"!==S(Object(t))}),z=o(function(){return'"\\udf06\\ud834"'!==S("\udf06\ud834")||'"\\udead"'!==S("\udead")}),Y=w?e("JSON","isRawJSON"):c,X=V?function(t,e,r){return S(t,function(t,r){var o=n(e,this,t,r);if(!f(o))return o},r)}:S,Q=function(t,e,n){var r=M(n,e-1),o=M(n,e+1);return A(K,t)&&!A(_,o)||A(_,t)&&!A(K,r)?"\\u"+L(j(t,0),16):t},Z=function(t,e){try{return t(e),!0}catch(t){return!1}},tt=function(t){if(!u(t)||a(t)||i(t))return!1;try{return!function(t){var e=p(t);return"Number"===e&&Z(d,t)||"String"===e&&Z(P,t)||"Boolean"===e&&Z(I,t)||!!C&&"BigInt"===e&&Z(C,t)}(t)}catch(t){return!0}},et=function(t,e){return{toJSON:function(){var r=t[e];if(u(r)||"bigint"==typeof r){var o=r.toJSON;a(o)&&(r=n(o,r,e))}return r}}};S&&t({target:"JSON",stat:!0,arity:3,forced:V||z||!w},{stringify:function(t,e,r){var o,u=a(e)?e:void 0,c=u?void 0:function(t){if(i(t)){for(var e=t.length,n=[],r=s(null),o=0;o<e;o++){var a,u=t[o];if("string"==typeof u)a=u;else{if("number"!=typeof u&&"Number"!==p(u)&&"String"!==p(u))continue;a=y(u)}v(r,a)||(r[a]=!0,T(n,a))}return n}}(e),l=c&&function(t){for(var e=0,n=t.length;e<n;e++)if(A(F,t[e]))return H;return""}(c),f=[],d=[],m=[],b=!1,O=!0,S=X(t,function(t,e){if(t=x(t),c){if(t===$)return R(d),void(o=R(m));if(O)O=!1;else if(this!==o&&!i(this)&&!h(c,t))return}else u&&(e=n(u,this,t,e));if(Y(e))return w?e:(b=!0,U+(T(f,e.rawJSON)-1));if(c&&tt(e)){if(h(d,e))throw new E("Converting circular structure to JSON");var r=function(t,e,n){for(var r=s(null),o=0,i=e.length;o<i;o++){var a=e[o];r[n+a]=et(t,a)}return r[$]=null,r}(e,c,l);return T(d,e),T(m,o),o=r,l&&(b=!0),r}return e},r);if("string"!=typeof S)return S;if(z&&(S=N(S,B,Q)),!b)return S;for(var k="",P=S.length,I=0;I<P;I++){var C=M(S,I);if('"'===C){var j=g(S,++I).end-1,L=D(S,I,j);D(L,0,G)===U?k+=f[D(L,G)]:D(L,0,J)===H?k+='"'+D(L,J)+'"':k+='"'+L+'"',I=j}else k+=C}return k}})}),dn=n.cw(function(){var t=q(),e=Mt(),n=L(),r=pt(),o=se(),i=at(),a=kt(),u=dt(),s=mt(),c=Qt(),l=Dt(),f=Be(),p=W(),d=qt().f,h=zt().f,v=Vt().f,y=je(),g=Ie().Bq,m="Number",b=r[m],w=o[m],x=b.prototype,O=r.TypeError,E=i("".slice),S=i("".charCodeAt),k=function(t){var e,n,r,o,i,a,u,s,c=f(t,"number");if(l(c))throw new O("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=g(c),43===(e=S(c,0))||45===e){if(88===(n=S(c,2))||120===n)return NaN}else if(48===e){switch(S(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=E(c,2)).length,u=0;u<a;u++)if((s=S(i,u))<48||s>o)return NaN;return parseInt(i,r)}return+c},P=a(m,!b(" 0o1")||!b("0b1")||b("+0x1")),I=function(t){var e,n=arguments.length<1?0:b(function(t){var e=f(t,"number");return"bigint"==typeof e?e:k(e)}(t));return c(x,e=this)&&p(function(){y(e)})?s(Object(n),this,I):n};I.prototype=x,P&&!e&&(x.constructor=I),t({global:!0,constructor:!0,wrap:!0,forced:P},{Number:I});var C=function(t,e){for(var r,o=n?d(e):"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(","),i=0;o.length>i;i++)u(e,r=o[i])&&!u(t,r)&&v(t,r,h(e,r))};e&&w&&C(o[m],w),(P||e)&&C(o[m],b)}),hn=n.cw(function(){q()({target:"Number",stat:!0},{isInteger:Pt()})}),vn=n.cw(function(){var t=q(),e=$t();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}),yn=n.cw(function(){var e=q(),n=L(),r=ne(),o=t(),i=Le(),a=Vt();n&&e({target:"Object",proto:!0,forced:r},{__defineGetter__:function(t,e){a.f(i(this),t,{get:o(e),enumerable:!0,configurable:!0})}})}),gn=n.cw(function(){var t=q(),e=W(),n=De(),r=zt().f,o=L();t({target:"Object",stat:!0,forced:!o||e(function(){r(1)}),sham:!o},{getOwnPropertyDescriptor:function(t,e){return r(n(t),e)}})}),mn=n.cw(function(){var t=q(),e=L(),n=ae(),r=De(),o=zt(),i=M();t({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(t){for(var e,a,u=r(t),s=o.f,c=n(u),l={},f=0;c.length>f;)void 0!==(a=s(u,e=c[f++]))&&i(l,e,a);return l}})}),bn=n.cw(function(){var t=q(),e=W(),n=Yt().f;t({target:"Object",stat:!0,forced:e(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:n})}),wn=n.cw(function(){var t=q(),e=Ce(),n=W(),r=Wt(),o=Le();t({target:"Object",stat:!0,forced:!e||n(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(o(t)):[]}})}),xn=n.cw(function(){var t=q(),e=Le(),n=te();t({target:"Object",stat:!0,forced:W()(function(){n(1)})},{keys:function(t){return n(e(t))}})}),On=n.cw(function(){var t=_e(),e=D(),n=oe();t||e(Object.prototype,"toString",n,{unsafe:!0})}),En=n.cw(function(){var t=q(),n=ut(),r=Q(),o=et(),i=e(),a=u(),s=Ct(),c=Gt(),l=W(),f=n("Reflect","construct"),p=Object.prototype,d=[].push,h=l(function(){function t(){}return!(f(function(){},[],t)instanceof t)}),v=!l(function(){f(function(){})}),y=h||v;t({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){i(t);var n=arguments.length<3?t:i(arguments[2]);if(a(e),v&&!h)return f(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var u=[null];return r(d,u,e),new(r(o,t,u))}var l=n.prototype,y=c(s(l)?l:p),g=r(t,y,e);return s(g)?g:y}})}),Sn=n.cw(function(){var t=L(),e=pt(),n=at(),r=kt(),o=mt(),i=C(),a=Gt(),u=qt().f,s=Qt(),c=Nt(),l=Fe(),f=he(),p=ve(),d=ce(),h=D(),v=W(),y=dt(),g=wt().enforce,m=be(),b=Ye(),w=ye(),x=ge(),O=b("match"),E=e.RegExp,S=E.prototype,k=e.SyntaxError,P=n(S.exec),I=n("".charAt),A=n("".replace),M=n("".indexOf),j=n("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,T=/a/g,R=/a/g,B=new E(T)!==T,K=p.MISSED_STICKY,_=p.UNSUPPORTED_Y;if(r("RegExp",t&&(!B||K||w||x||v(function(){return R[O]=!1,E(T)!==T||E(R)===R||"/a/i"!==String(E(T,"i"))})))){for(var F=function(t,e){var n,r,u,p,d,h,v=s(S,this),m=c(t),b=void 0===e,O=[],C=t;if(!v&&m&&b&&t.constructor===F)return t;if((m||s(S,t))&&(t=t.source,b&&(e=f(C))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),C=t,w&&"dotAll"in T&&(r=!!e&&M(e,"s")>-1)&&(e=A(e,/s/g,"")),n=e,K&&"sticky"in T&&(u=!!e&&M(e,"y")>-1)&&_&&(e=A(e,/y/g,"")),x&&(p=function(t){for(var e,n=t.length,r=0,o="",i=[],u=a(null),s=!1,c=!1,l=0,f="";r<n;r++){if("\\"===(e=I(t,r))){if(e+=I(t,++r),!c&&"\\"===I(e,1)){o+="\\x5c";continue}}else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:o+=e,P(N,j(t,r+1))?(r+=2,c=!0,l++):"?"!==I(t,r+1)&&l++;continue;case">"===e&&c:if(""===f||y(u,f))throw new k("Invalid capture group name");u[f]=!0,i[i.length]=[f,l],c=!1,f="";continue}c?f+=e:o+=e}for(var p=0;p<i.length;p++)for(var d="\\k<"+i[p][0]+">",h="\\"+i[p][1];M(o,d)>-1;)o=A(o,d,h);return[o,i]}(t),t=p[0],O=p[1]),d=o(E(t,e),v?this:S,F),(r||u||O.length)&&(h=g(d),r&&(h.dotAll=!0,h.raw=F(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<n;r++)"\\"!==(e=I(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+I(t,++r);return o}(t),n)),u&&(h.sticky=!0),O.length&&(h.groups=O)),t!==C)try{i(d,"source",""===C?"(?:)":C)}catch(t){}return d},U=u(E),H=0;U.length>H;)d(F,E,U[H++]);S.constructor=F,F.prototype=S,h(e,"RegExp",F,{constructor:!0})}m("RegExp")}),kn=n.cw(function(){var t=q(),e=fe();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}),Pn=n.cw(function(){var t=rt().PROPER,e=D(),n=u(),r=Fe(),o=W(),i=he(),a="toString",s=RegExp.prototype,c=s[a],l=o(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),f=t&&c.name!==a;(l||f)&&e(s,a,function(){var t=n(this);return"/"+r(t.source)+"/"+r(i(t))},{unsafe:!0})}),In=n.cw(function(){var t=q(),e=at(),n=Ht(),r=me(),o=Fe(),i=k(),a=e("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~a(o(r(this)),o(n(t)),arguments.length>1?arguments[1]:void 0)}})}),Cn=n.cw(function(){var t=ke().o,e=Fe(),n=wt(),r=Lt(),o=I(),i="String Iterator",a=n.set,u=n.getterFor(i);r(String,"String",function(t){a(this,{type:i,string:e(t),index:0})},function(){var e,n=u(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}),An=n.cw(function(){var t=q(),e=nt(),n=it(),r=Rt(),o=I(),i=me(),s=Re(),c=Fe(),l=u(),f=Ct(),p=O(),d=Nt(),h=he(),v=lt(),y=D(),g=W(),m=Ye(),b=Se(),w=a(),x=le(),E=wt(),S=Mt(),k=m("matchAll"),P="RegExp String",C=P+" Iterator",A=E.set,M=E.getterFor(C),j=RegExp.prototype,N=TypeError,T=n("".indexOf),R=n("".matchAll),L=!!R&&!g(function(){R("a",/./)}),B=r(function(t,e,n,r){A(this,{type:C,regexp:t,string:e,global:n,unicode:r,done:!1})},P,function(){var t=M(this);if(t.done)return o(void 0,!0);var e=t.regexp,n=t.string,r=x(e,n);return null===r?(t.done=!0,o(void 0,!0)):t.global?(""===c(r[0])&&(e.lastIndex=w(n,s(e.lastIndex),t.unicode)),o(r,!1)):(t.done=!0,o(r,!1))}),K=function(t){var e,n,r,o=l(this),i=c(t),a=b(o,RegExp),u=c(h(o));return e=new a(a===RegExp?o.source:o,u),n=!!~T(u,"g"),r=!!~T(u,"u")||!!~T(u,"v"),e.lastIndex=s(o.lastIndex),new B(e,i,n,r)};t({target:"String",proto:!0,forced:L},{matchAll:function(t){var n,r,o,a,u=i(this);if(f(t)){if(d(t)&&(n=c(i(h(t))),!~T(n,"g")))throw new N("`.matchAll` does not allow non-global regexes");if(L)return R(u,t);if(void 0===(o=v(t,k))&&S&&"RegExp"===p(t)&&(o=K),o)return e(o,t,u)}else if(L)return R(u,t);return r=c(u),a=new RegExp(t,"g"),S?e(K,a,r):a[k](r)}}),S||k in j||y(j,k,K)}),Mn=n.cw(function(){var t=nt(),e=at(),n=X(),r=u(),o=Ct(),i=Re(),s=Fe(),c=me(),l=lt(),f=a(),p=he(),d=le(),h=e("".indexOf);n("match",function(e,n,a){return[function(n){var r=c(this),i=o(n)?l(n,e):void 0;if(i)return t(i,n,r);var a=s(r);return new RegExp(n)[e](a)},function(t){var e=r(this),o=s(t),u=a(n,e,o);if(u.done)return u.value;var c=s(p(e));if(!~h(c,"g"))return d(e,o);var l=!!~h(c,"u")||!!~h(c,"v");e.lastIndex=0;for(var v,y=[],g=0;null!==(v=d(e,o));){var m=s(v[0]);y[g]=m,""===m&&(e.lastIndex=f(o,i(e.lastIndex),l)),g++}return 0===g?null:y}]})}),jn=n.cw(function(){var t=Q(),e=nt(),n=at(),r=X(),o=W(),i=u(),s=Et(),c=Ct(),l=Te(),f=Re(),p=Fe(),d=me(),h=a(),v=lt(),y=ft(),g=he(),m=le(),b=Ye()("replace"),w=Math.max,x=Math.min,O=n([].concat),E=n([].push),S=n("".indexOf),k=n("".slice),P=function(t){return void 0===t?t:String(t)},I="$0"==="a".replace(/./,"$0"),C=!!/./[b]&&""===/./[b]("a","$0");r("replace",function(n,r,o){var a=C?"$":"$0";return[function(t,n){var o=d(this),i=c(t)?v(t,b):void 0;return i?e(i,t,o,n):e(r,p(o),t,n)},function(e,n){var u=i(this),c=p(e),d=s(n);d||(n=p(n));var v=p(g(u));if("string"==typeof n&&!~S(n,a)&&!~S(n,"$<")&&!~S(v,"y")){var b=o(r,u,c,n);if(b.done)return b.value}var I,C=!!~S(v,"g");C&&(I=!!~S(v,"u")||!!~S(v,"v"),u.lastIndex=0);for(var A,M=[];null!==(A=m(u,c))&&(E(M,A),C);)""===p(A[0])&&(u.lastIndex=h(c,f(u.lastIndex),I));for(var j="",N=0,D=0;D<M.length;D++){for(var T,R=p((A=M[D])[0]),L=w(x(l(A.index),c.length),0),B=[],K=1;K<A.length;K++)E(B,P(A[K]));var _=A.groups;if(d){var F=O([R],B,L,c);void 0!==_&&E(F,_),T=p(t(n,void 0,F))}else T=y(R,c,L,B,_,n);L>=N&&(j+=k(c,N,L)+T,N=L+R.length)}return j+k(c,N)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!I||C)}),Nn=n.cw(function(){var t=nt(),e=at(),n=X(),r=u(),o=Ct(),i=me(),s=Se(),c=a(),l=Re(),f=Fe(),p=lt(),d=he(),h=le(),v=ve(),y=W(),g=v.UNSUPPORTED_Y,m=Math.min,b=e([].push),w=e("".slice),x=e("".indexOf),O=!y(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]}),E="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;n("split",function(e,n,a){var u="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t(n,this,e,r)}:n;return[function(n,r){var a=i(this),s=o(n)?p(n,e):void 0;return s?t(s,n,a,r):t(u,f(a),n,r)},function(t,e){var o=r(this),i=f(t);if(!E){var p=a(u,o,i,e,u!==n);if(p.done)return p.value}var v=s(o,RegExp),y=f(d(o)),O=!!~x(y,"u")||!!~x(y,"v");g?~x(y,"g")||(y+="g"):~x(y,"y")||(y+="y");var S=new v(g?"^(?:"+o.source+")":o,y),k=void 0===e?4294967295:e>>>0;if(0===k)return[];if(0===i.length)return null===h(S,i)?[i]:[];for(var P=0,I=0,C=[];I<i.length;){S.lastIndex=g?0:I;var A,M=h(S,g?w(i,I):i);if(null===M||(A=m(l(S.lastIndex+(g?I:0)),i.length))===P)I=c(i,I,O);else{if(b(C,w(i,P,I)),C.length===k)return C;for(var j=1;j<=M.length-1;j++)if(b(C,M[j]),C.length===k)return C;I=P=A}}return b(C,w(i,P)),C}]},E||!O,g)}),Dn=n.cw(function(){var t=q(),e=Ie().Bq;t({target:"String",proto:!0,forced:Pe()("trim")},{trim:function(){return e(this)}})}),Tn=n.cw(function(){var t=q(),e=pt(),n=nt(),r=at(),o=Mt(),i=L(),a=Ce(),s=W(),c=dt(),l=Qt(),p=u(),d=De(),h=Ke(),v=Fe(),y=A(),g=Gt(),m=te(),b=qt(),w=Yt(),x=Wt(),O=zt(),E=Vt(),S=Jt(),k=ee(),P=D(),I=N(),C=Ee(),M=xe(),j=ht(),T=He(),R=Ye(),B=ze(),K=Ve(),_=Ae(),F=we(),U=wt(),H=f().jJ,$=M("hidden"),G="Symbol",J="prototype",V=U.set,z=U.getterFor(G),Y=Object[J],X=e.Symbol,Q=X&&X[J],Z=e.RangeError,tt=e.TypeError,et=e.QObject,rt=O.f,ot=E.f,it=w.f,ut=k.f,st=r([].push),ct=C("symbols"),lt=C("op-symbols"),ft=C("wks"),vt=!et||!et[J]||!et[J].findChild,yt=function(t,e,n){var r=rt(Y,e);return r&&delete Y[e],ot(t,e,n),r&&t!==Y&&ot(Y,e,r),t},gt=i&&s(function(){return 7!==g(ot({},"a",{get:function(){return ot(this,"a",{value:7}).a}})).a})?yt:ot,mt=function(t,e){var n=ct[t]=g(Q);return V(n,{type:G,tag:t,description:e}),i||(n.description=e),n},bt=function(t,e,n){t===Y&&bt(lt,e,n),p(t);var r=h(e);return p(n),c(ct,r)?(("enumerable"in n?!n.enumerable:!c(t,r)||c(t,$)&&t[$][r])?(c(t,$)||ot(t,$,y(1,g(null))),t[$][r]=!0):(c(t,$)&&t[$][r]&&(t[$][r]=!1),n=g(n,{enumerable:y(0,!1)})),gt(t,r,n)):ot(t,r,n)},xt=function(t,e){p(t);var r=d(e),o=m(r).concat(kt(r));return H(o,function(e){i&&!n(Ot,r,e)||bt(t,e,r[e])}),t},Ot=function(t){var e=h(t),r=n(ut,this,e);return!(this===Y&&c(ct,e)&&!c(lt,e))&&(!(r||!c(this,e)||!c(ct,e)||c(this,$)&&this[$][e])||r)},Et=function(t,e){var n=d(t),r=h(e);if(n!==Y||!c(ct,r)||c(lt,r)){var o=rt(n,r);return!o||!c(ct,r)||c(n,$)&&n[$][r]||(o.enumerable=!0),o}},St=function(t){var e=it(d(t)),n=[];return H(e,function(t){c(ct,t)||c(j,t)||st(n,t)}),n},kt=function(t){var e=t===Y,n=it(e?lt:d(t)),r=[];return H(n,function(t){!c(ct,t)||e&&!c(Y,t)||st(r,ct[t])}),r};a||(X=function(){if(l(Q,this))throw new tt("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,r=T(t),o=function(t){var i=void 0===this?e:this;i===Y&&n(o,lt,t),c(i,$)&&c(i[$],r)&&(i[$][r]=!1);var a=y(1,t);try{gt(i,r,a)}catch(t){if(!(t instanceof Z))throw t;yt(i,r,a)}};return i&&vt&&gt(Y,r,{configurable:!0,set:o}),mt(r,t)},P(Q=X[J],"toString",function(){return z(this).tag}),P(X,"withoutSetter",function(t){return mt(T(t),t)}),k.f=Ot,E.f=bt,S.f=xt,O.f=Et,b.f=w.f=St,x.f=kt,B.f=function(t){return mt(R(t),t)},i&&(I(Q,"description",{configurable:!0,get:function(){return z(this).description}}),o||P(Y,"propertyIsEnumerable",Ot,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:X}),H(m(ft),function(t){K(t)}),t({target:G,stat:!0,forced:!a},{useSetter:function(){vt=!0},useSimple:function(){vt=!1}}),t({target:"Object",stat:!0,forced:!a,sham:!i},{create:function(t,e){return void 0===e?g(t):xt(g(t),e)},defineProperty:bt,defineProperties:xt,getOwnPropertyDescriptor:Et}),t({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:St}),_(),F(X,G),j[$]=!0}),Rn=n.cw(function(){var t=q(),e=L(),n=pt(),r=nt(),o=at(),i=dt(),a=Et(),u=Qt(),s=Fe(),c=N(),l=S(),f=n.Symbol,p=f&&f.prototype;if(e&&a(f)&&(!("description"in p)||void 0!==f().description)){var d={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=u(p,this)?new f(t):void 0===t?f():f(t);return""===t&&(d[e]=!0),e};l(h,f);var v=h.for;h.for={for:function(t){var e=s(t),n=r(v,this,e);return""===e&&(d[n]=!0),n}}.for,h.prototype=p,p.constructor=h;var y="Symbol(description detection)"===String(f("description detection")),g=o(p.valueOf),m=o(p.toString),b=/^Symbol\((.*)\)[^)]+$/,w=o("".replace),x=o("".slice);c(p,"description",{configurable:!0,get:function(){var t=g(this);if(i(d,t))return"";var e=m(t),n=y?x(e,7,-1):w(e,b,"$1");return""===n?void 0:n}}),t({global:!0,constructor:!0,forced:!0},{Symbol:h})}}),Ln=n.cw(function(){var t=q(),e=ut(),n=dt(),r=Fe(),o=Ee(),i=Me(),a=o("string-to-symbol-registry"),u=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{for:function(t){var o=r(t);if(n(a,o))return a[o];var i=e("Symbol")(o);return a[o]=i,u[i]=o,i}})}),Bn=n.cw(function(){Ve()("iterator")}),Kn=n.cw(function(){Tn(),Ln(),_n(),pn(),wn()}),_n=n.cw(function(){var t=q(),e=dt(),n=Dt(),r=Ue(),o=Ee(),i=Me(),a=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{keyFor:function(t){if(!n(t))throw new TypeError(r(t)+" is not a symbol");if(e(a,t))return a[t]}})}),Fn=n.cw(function(){var t=Ve(),e=Ae();t("toPrimitive"),e()}),Un=n.cw(function(){An()}),Hn=n.cw(function(){var t=pt(),e=_(),n=F(),r=s(),o=C(),i=function(t){if(t&&t.forEach!==r)try{o(t,"forEach",r)}catch(e){t.forEach=r}};for(var a in e)e[a]&&i(t[a]&&t[a].prototype);i(n)}),$n=n.cw(function(){var t=pt(),e=_(),n=F(),r=en(),o=C(),i=we(),a=Ye()("iterator"),u=r.values,s=function(t,n){if(t){if(t[a]!==u)try{o(t,a,u)}catch(e){t[a]=u}if(i(t,n,!0),e[n])for(var s in r)if(t[s]!==r[s])try{o(t,s,r[s])}catch(e){t[s]=r[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(n,"DOMTokenList")});function Gn(t){return function(t){if(Array.isArray(t))return Vn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Jn(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 Jn(t,e){if(t){if("string"==typeof t)return Vn(t,e);var n={}.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)?Vn(t,e):void 0}}function Vn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function zn(t){return zn="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},zn(t)}function Yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wn(r.key),r)}}function qn(t,e,n){return(e=Wn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wn(t){var e=function(t,e){if("object"!=zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zn(e)?e:e+""}tn(),nn(),an(),sn(),fn(),yn(),On(),kn(),Pn(),jn(),Nn(),Dn(),"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="prototype",r=t.Element[n],o=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},u=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},s=function(t,e){if(""===e)throw new u("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new u("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=c[n]=[],f=function(){return new c(this)};if(u[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return~s(this,t+"")},l.add=function(){var t,e=arguments,n=0,r=e.length,o=!1;do{~s(this,t=e[n]+"")||(this.push(t),o=!0)}while(++n<r);o&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(e=s(this,t=n[r]+"");~e;)this.splice(e,1),i=!0,e=s(this,t)}while(++r<o);i&&this._updateClassName()},l.toggle=function(t,e){var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},l.replace=function(t,e){var n=s(t+"");~n&&(this.splice(n,1,e),this._updateClassName())},l.toString=function(){return this.join(" ")},o.defineProperty){var p={get:f,enumerable:!0,configurable:!0};try{o.defineProperty(r,e,p)}catch(t){void 0!==t.number&&-2146823252!==t.number||(p.enumerable=!1,o.defineProperty(r,e,p))}}else o[n].__defineGetter__&&r.__defineGetter__(e,f)}}(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,r=arguments.length;for(n=0;n<r;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(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),t=null}()),Kn(),Rn(),Bn(),Fn(),We(),Xe(),Qe(),Ze(),en(),rn(),un(),cn(),ln(),dn(),vn(),gn(),mn(),xn(),Sn(),In(),Cn(),Un(),Hn(),$n(),on(),hn(),bn(),En(),Mn();var Xn=function(){return t=function t(e){var n=e.getOptions,r=e.getCaretPosition,o=e.getCaretPositionEnd,i=e.dispatch;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qn(this,"getOptions",void 0),qn(this,"getCaretPosition",void 0),qn(this,"getCaretPositionEnd",void 0),qn(this,"dispatch",void 0),qn(this,"maxLengthReached",void 0),qn(this,"isStandardButton",function(t){return t&&!("{"===t[0]&&"}"===t[t.length-1])}),this.getOptions=n,this.getCaretPosition=r,this.getCaretPositionEnd=o,this.dispatch=i,t.bindMethods(t,this)},e=[{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("}",""),r="";return"standardBtn"!==e&&(r=" hg-button-".concat(n)),"hg-".concat(e).concat(r)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{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){return(e=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),e):e||this.getDefaultDiplay())[t]||t}},{key:"getUpdatedInput",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this.getOptions(),a=[n,r,o],u=e;return("{bksp}"===t||"{backspace}"===t)&&u.length>0?u=this.removeAt.apply(this,[u].concat(a)):("{delete}"===t||"{forwarddelete}"===t)&&u.length>0?u=this.removeForwardsAt.apply(this,[u].concat(a)):"{space}"===t?u=this.addStringAt.apply(this,[u," "].concat(a)):"{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]))?u=this.addStringAt.apply(this,[u,t[t.length-2]].concat(a)):"{numpaddivide}"===t?u=this.addStringAt.apply(this,[u,"/"].concat(a)):"{numpadmultiply}"===t?u=this.addStringAt.apply(this,[u,"*"].concat(a)):"{numpadsubtract}"===t?u=this.addStringAt.apply(this,[u,"-"].concat(a)):"{numpadadd}"===t?u=this.addStringAt.apply(this,[u,"+"].concat(a)):"{numpaddecimal}"===t?u=this.addStringAt.apply(this,[u,"."].concat(a)):"{"===t||"}"===t?u=this.addStringAt.apply(this,[u,t].concat(a)):t.includes("{")||t.includes("}")||(u=this.addStringAt.apply(this,[u,t].concat(a))):u=this.addStringAt.apply(this,[u,"\n"].concat(a)):u=this.addStringAt.apply(this,[u,"\t"].concat(a)),i.debug&&console.log("Input will be: "+u),u}},{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(),r=this.getCaretPosition();return null!=r&&(e?r>0&&(r-=t):r+=t),n.debug&&console.log("Caret at:",r),r}},{key:"addStringAt",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return r||0===r?(n=[t.slice(0,r),e,t.slice(o)].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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===r)return t;if(n===r){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),o&&this.updateCaretPos(2,!0)):(e=t.substr(0,n-1)+t.substr(n),o&&this.updateCaretPos(1,!0)):t.slice(-2).match(i)?(e=t.slice(0,-2),o&&this.updateCaretPos(2,!0)):(e=t.slice(0,-1),o&&this.updateCaretPos(1,!0))}else e=t.slice(0,n)+t.slice(r),o&&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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null!=t&&t.length&&null!==n?(n===r?e=t.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?t.substr(0,n)+t.substr(n+2):t.substr(0,n)+t.substr(n+1):(e=t.slice(0,n)+t.slice(r),o&&this.dispatch(function(t){t.setCaretPosition(n)})),e):t}},{key:"handleMaxLength",value:function(t,e){var n=this.getOptions(),r=n.maxLength,o=t[n.inputName||"default"],i=e.length-1>=r;if(e.length<=o.length)return!1;if(Number.isInteger(r))return n.debug&&console.log("maxLength (num) reached:",i),i?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if("object"===zn(r)){var a=e.length-1>=r[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(t,e){return Gn(Array(Math.ceil(t.length/e))).map(function(n,r){return t.slice(e*r,e+e*r)})}},{key:"escapeRegex",value:function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(t,e){var n=t,r=e.indexOf("‫");return r<t&&-1!=r&&n--,e.indexOf("‬")<t&&-1!=r&&n--,n<0?0:n}},{key:"isConstructor",value:function(t){try{Reflect.construct(String,[],t)}catch(t){return!1}return!0}}],n=[{key:"bindMethods",value:function(t,e){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Jn(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(Object.getOwnPropertyNames(t.prototype));try{for(r.s();!(n=r.n()).done;){var o=n.value;"constructor"===o||"bindMethods"===o||(e[o]=e[o].bind(e))}}catch(t){r.e(t)}finally{r.f()}}}],e&&Yn(t.prototype,e),n&&Yn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();qn(Xn,"noop",function(){});var Qn=Xn;function Zn(t){return Zn="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},Zn(t)}function tr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nr(r.key),r)}}function er(t,e,n){return(e=nr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nr(t){var e=function(t,e){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zn(e)?e:e+""}var rr=function(){return t=function t(e){var n=this,r=e.dispatch,o=e.getOptions;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),er(this,"getOptions",void 0),er(this,"dispatch",void 0),er(this,"isModifierKey",function(t){return t.altKey||t.ctrlKey||t.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.code||t.key||n.keyCodeToKey(null==t?void 0:t.keyCode))}),this.dispatch=r,this.getOptions=o,Qn.bindMethods(t,this)},e=[{key:"handleHighlightKeyDown",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch(function(r){var o,i,a=r.getButtonElement(n),u=r.getButtonElement("{".concat(n,"}"));if(a)o=a,i=n;else{if(!u)return;o=u,i="{".concat(n,"}")}var s,c,l,f,p=function(t){t.style.background=e.physicalKeyboardHighlightBgColor||"#dadce4",t.style.color=e.physicalKeyboardHighlightTextColor||"black"};if(o)if(Array.isArray(o)){if(o.forEach(function(t){return p(t)}),e.physicalKeyboardHighlightPress)if(e.physicalKeyboardHighlightPressUsePointerEvents)null===(s=o[0])||void 0===s||null===(c=s.onpointerdown)||void 0===c||c.call(s,t);else if(e.physicalKeyboardHighlightPressUseClick){var d;null===(d=o[0])||void 0===d||d.click()}else r.handleButtonClicked(i,t)}else p(o),e.physicalKeyboardHighlightPress&&(e.physicalKeyboardHighlightPressUsePointerEvents?null===(l=o)||void 0===l||null===(f=l.onpointerdown)||void 0===f||f.call(l,t):e.physicalKeyboardHighlightPressUseClick?o.click():r.handleButtonClicked(i,t))})}},{key:"handleHighlightKeyUp",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch(function(r){var o,i,a,u=r.getButtonElement(n)||r.getButtonElement("{".concat(n,"}")),s=function(t){t.removeAttribute&&t.removeAttribute("style")};u&&(Array.isArray(u)?(u.forEach(function(t){return s(t)}),e.physicalKeyboardHighlightPressUsePointerEvents&&(null===(o=u[0])||void 0===o||null===(i=o.onpointerup)||void 0===i||i.call(o,t))):(s(u),e.physicalKeyboardHighlightPressUsePointerEvents&&(null==u||null===(a=u.onpointerup)||void 0===a||a.call(u,t))))})}},{key:"getSimpleKeyboardLayoutKey",value:function(t){var e,n="",r=t.code||t.key||this.keyCodeToKey(null==t?void 0:t.keyCode);return(n=null!=r&&r.includes("Numpad")||null!=r&&r.includes("Shift")||null!=r&&r.includes("Space")||null!=r&&r.includes("Backspace")||null!=r&&r.includes("Control")||null!=r&&r.includes("Alt")||null!=r&&r.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]||""}}],e&&tr(t.prototype,e),n&&tr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function or(t){return or="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},or(t)}function ir(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ur(r.key),r)}}function ar(t,e,n){return(e=ur(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ur(t){var e=function(t,e){if("object"!=or(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==or(e)?e:e+""}var sr=function(){return t=function t(e){var n=e.utilities,r=e.options;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ar(this,"utilities",void 0),ar(this,"options",void 0),ar(this,"candidateBoxElement",void 0),ar(this,"pageIndex",0),ar(this,"pageSize",void 0),this.utilities=n,this.options=r,Qn.bindMethods(t,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},e=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(t){var e=this,n=t.candidateValue,r=t.targetElement,o=t.onSelect;if(n&&n.length){var i=this.utilities.chunkArray(n.split(" "),this.pageSize);this.renderPage({candidateListPages:i,targetElement:r,pageIndex:this.pageIndex,nbPages:i.length,onItemSelected:function(t,n){o(t,n),e.destroy()}})}}},{key:"renderPage",value:function(t){var e,n=this,r=t.candidateListPages,o=t.targetElement,i=t.pageIndex,a=t.nbPages,u=t.onItemSelected;null===(e=this.candidateBoxElement)||void 0===e||e.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var s=document.createElement("ul");s.className="hg-candidate-box-list",r[i].forEach(function(t){var e,r=document.createElement("li"),o=function(){var t=new(n.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(t,"target",{value:r}),t};r.className="hg-candidate-box-list-item",r.innerHTML=(null===(e=n.options.display)||void 0===e?void 0:e[t])||t,n.options.useTouchEvents?r.ontouchstart=function(e){return u(t,e||o())}:r.onclick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o();return u(t,e)},s.appendChild(r)});var c=i>0,l=document.createElement("div");l.classList.add("hg-candidate-box-prev"),c&&l.classList.add("hg-candidate-box-btn-active");var f=function(){c&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i-1,nbPages:a,onItemSelected:u})};this.options.useTouchEvents?l.ontouchstart=f:l.onclick=f,this.candidateBoxElement.appendChild(l),this.candidateBoxElement.appendChild(s);var p=i<a-1,d=document.createElement("div");d.classList.add("hg-candidate-box-next"),p&&d.classList.add("hg-candidate-box-btn-active");var h=function(){p&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i+1,nbPages:a,onItemSelected:u})};this.options.useTouchEvents?d.ontouchstart=h:d.onclick=h,this.candidateBoxElement.appendChild(d),o.prepend(this.candidateBoxElement)}}],e&&ir(t.prototype,e),n&&ir(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),cr=sr;function lr(t){return function(t){if(Array.isArray(t))return fr(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 fr(t,e);var n={}.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)?fr(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 fr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function pr(t){return pr="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},pr(t)}function dr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function hr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yr(r.key),r)}}function vr(t,e,n){return(e=yr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yr(t){var e=function(t,e){if("object"!=pr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pr(e)?e:e+""}var gr=function(){return t=function t(e,n){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),vr(this,"input",void 0),vr(this,"options",void 0),vr(this,"utilities",void 0),vr(this,"caretPosition",void 0),vr(this,"caretPositionEnd",void 0),vr(this,"keyboardDOM",void 0),vr(this,"keyboardPluginClasses",void 0),vr(this,"keyboardDOMClass",void 0),vr(this,"buttonElements",void 0),vr(this,"currentInstanceName",void 0),vr(this,"allKeyboardInstances",void 0),vr(this,"keyboardInstanceNames",void 0),vr(this,"isFirstKeyboardInstance",void 0),vr(this,"physicalKeyboard",void 0),vr(this,"modules",void 0),vr(this,"activeButtonClass",void 0),vr(this,"holdInteractionTimeout",void 0),vr(this,"holdTimeout",void 0),vr(this,"isMouseHold",void 0),vr(this,"initialized",void 0),vr(this,"candidateBox",void 0),vr(this,"keyboardRowsDOM",void 0),vr(this,"defaultName","default"),vr(this,"activeInputElement",null),vr(this,"handleParams",function(t,e){var n,r,o;if("string"==typeof t)n=t.split(".").join(""),r=document.querySelector(".".concat(n)),o=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],r=t,o=e}else n="simple-keyboard",r=document.querySelector(".".concat(n)),o=t;return{keyboardDOMClass:n,keyboardDOM:r,options:o}}),vr(this,"getOptions",function(){return r.options}),vr(this,"getCaretPosition",function(){return r.caretPosition}),vr(this,"getCaretPositionEnd",function(){return r.caretPositionEnd}),vr(this,"registerModule",function(t,e){r.modules[t]||(r.modules[t]={}),e(r.modules[t])}),vr(this,"getKeyboardClassString",function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return[r.keyboardDOMClass].concat(e).filter(function(t){return!!t}).join(" ")}),"undefined"!=typeof window){var o=this.handleParams(e,n),i=o.keyboardDOMClass,a=o.keyboardDOM,u=o.options,s=void 0===u?{}:u;this.utilities=new Qn({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=a,this.options=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dr(Object(n),!0).forEach(function(e){vr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dr(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:{}},s),this.keyboardPluginClasses="",Qn.bindMethods(t,this);var c=this.options.inputName,l=void 0===c?this.defaultName:c;if(this.input={},this.input[l]="",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 rr({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new cr({utilities:this.utilities,options:this.options}):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()}},e=[{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,r=n.layoutCandidates,o=n.layoutCandidatesCaseSensitiveMatch;if(!r||"object"!==pr(r))return{};var i=Object.keys(r).filter(function(n){var r=t.substring(0,e.getCaretPositionEnd()||0)||t,i=new RegExp("".concat(e.utilities.escapeRegex(n),"$"),o?"g":"gi");return!!lr(r.matchAll(i)).length});if(i.length>1){var a=i.sort(function(t,e){return e.length-t.length})[0];return{candidateKey:a,candidateValue:r[a]}}if(i.length){var u=i[0];return{candidateKey:u,candidateValue:r[u]}}return{}}},{key:"showCandidatesBox",value:function(t,e,n){var r=this;this.candidateBox&&this.candidateBox.show({candidateValue:e,targetElement:n,onSelect:function(e,n){var o=r.options,i=o.layoutCandidatesCaseSensitiveMatch,a=o.disableCandidateNormalization,u=o.enableLayoutCandidatesKeyPress,s=e;a||(s=e.normalize("NFD")),"function"==typeof r.options.beforeInputUpdate&&r.options.beforeInputUpdate(r);var c=r.getInput(r.options.inputName,!0),l=r.getCaretPositionEnd()||0,f=c.substring(0,l||0)||c,p=new RegExp("".concat(r.utilities.escapeRegex(t),"$"),i?"g":"gi"),d=f.replace(p,s),h=c.replace(f,d),v=d.length-f.length,y=(l||c.length)+v;y<0&&(y=0),r.setInput(h,r.options.inputName,!0),r.setCaretPosition(y),u&&"function"==typeof r.options.onKeyPress&&r.options.onKeyPress(e,n),"function"==typeof r.options.onChange&&r.options.onChange(r.getInput(r.options.inputName,!0),n),"function"==typeof r.options.onChangeAll&&r.options.onChangeAll(r.getAllInputs(),n)}})}},{key:"handleButtonClicked",value:function(t,e){var n=this.options,r=n.inputName,o=void 0===r?this.defaultName:r,i=n.debug;if("{//}"!==t){this.input[o]||(this.input[o]=""),"function"==typeof this.options.beforeInputUpdate&&this.options.beforeInputUpdate(this);var a=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(t)&&this.activeInputElement&&this.input[o]&&this.input[o]===a&&0===this.caretPosition&&this.caretPositionEnd===a.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[o]!==a&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(a))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,a))return;var u=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(u,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,")"),null==e?void 0:e.type),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 s,c=this.getInputCandidates(a),l=c.candidateKey,f=c.candidateValue;l&&f?this.showCandidatesBox(l,f,this.keyboardDOM):null===(s=this.candidateBox)||void 0===s||s.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),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,e)}},{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];return this.options.syncInstanceInputs&&!e&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[t].replace("‫","").replace("‬","")+"‬":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 cr({utilities:this.utilities,options:this.options}))}},{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(r){e.split(" ").forEach(function(e){n.options.buttonTheme||(n.options.buttonTheme=[]);var o=!1;n.options.buttonTheme.map(function(t){if(null!=t&&t.class.split(" ").includes(e)){o=!0;var n=t.buttons.split(" ");n.includes(r)||(o=!0,n.push(r),t.buttons=n.join(" "))}return t}),o||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 r;null===(r=n.options)||void 0===r||null===(r=r.buttonTheme)||void 0===r||r.map(function(r,o){if(r&&e&&e.includes(r.class)||!e){var i,a,u=null===(i=r)||void 0===i?void 0:i.buttons.split(" ").filter(function(e){return e!==t});r&&null!=u&&u.length?r.buttons=u.join(" "):(null===(a=n.options.buttonTheme)||void 0===a||a.splice(o,1),r=null)}return r})}),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 r=e.test(t);return this.options.debug&&console.log('inputPattern ("'.concat(e,'"): ').concat(r?"passed":"did not pass!")),r}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.addEventListener("keyup",this.handleKeyUp,e),document.addEventListener("keydown",this.handleKeyDown,e),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{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){navigator.userAgent.includes("Firefox")||this.caretEventHandler(t)}},{key:"caretEventHandler",value:function(t){var e,n=this;t.target.tagName&&(e=t.target.tagName.toLowerCase()),this.dispatch(function(r){var o=t.target===r.keyboardDOM||t.target&&r.keyboardDOM.contains(t.target);if(n.options.syncInstanceInputs){var i="function"==typeof t.composedPath?t.composedPath():t.path;Array.isArray(i)&&(o=i.some(function(t){var e;return null==t||null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-skInstance")}))}if(("textarea"===e||"input"===e&&["text","search","url","tel","password"].includes(t.target.type))&&!r.options.disableCaretPositioning){var a=t.target.selectionStart,u=t.target.selectionEnd;r.options.rtl&&(a=r.utilities.getRtlOffset(a,r.getInput()),u=r.utilities.getRtlOffset(u,r.getInput())),r.setCaretPosition(a,u),r.activeInputElement=t.target,r.options.debug&&console.log("Caret at: ",r.getCaretPosition(),r.getCaretPositionEnd(),t&&t.target.tagName.toLowerCase(),"(".concat(r.keyboardDOMClass,")"),null==t?void 0:t.type)}else!r.options.disableCaretPositioning&&o||"selectionchange"===(null==t?void 0:t.type)||(r.setCaretPosition(null),r.activeInputElement=null,r.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));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.removeEventListener("keyup",this.handleKeyUp,e),document.removeEventListener("keydown",this.handleKeyDown,e),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&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 r=e.class.split(" ");e.buttons.split(" ").includes(t)&&(n=[].concat(lr(n),lr(r)))}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):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){var e;if(null!==(e=t.target.classList)&&void 0!==e&&e.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=t.utilities.isConstructor(e)?new e(t):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,r){var o=this,i=Array.from(t.children),a=0;return i.length&&n.forEach(function(n,u){var s=r[u];if(!(s&&s>n))return!1;var c=n-a,l=s-a,f=document.createElement("div");f.className+="hg-button-container";var p="".concat(o.options.layoutName,"-r").concat(e,"c").concat(u);f.setAttribute("data-skUID",p);var d=i.splice(c,l-c+1);a+=l-c,d.forEach(function(t){return f.appendChild(t)}),i.splice(c,0,f),t.innerHTML="",i.forEach(function(e){return t.appendChild(e)}),o.options.debug&&console.log("rowDOMContainer",d,c,l,a+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}"]},r=this.options.useTouchEvents||!1,o=r?"hg-touch-events":"",i=this.options.useMouseEvents||!1,a=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,e,this.keyboardPluginClasses,o),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 o=e.split(" ");t.options.excludeFromLayout&&t.options.excludeFromLayout[t.options.layoutName||t.defaultName]&&(o=o.filter(function(e){return t.options.excludeFromLayout&&!t.options.excludeFromLayout[t.options.layoutName||t.defaultName].includes(e)}));var u=document.createElement("div");u.className+="hg-row";var s=[],c=[];o.forEach(function(e,o){var l,f=!a&&"string"==typeof e&&e.length>1&&0===e.indexOf("["),p=!a&&"string"==typeof e&&e.length>1&&e.indexOf("]")===e.length-1;f&&(s.push(o),e=e.replace(/\[/g,"")),p&&(c.push(o),e=e.replace(/\]/g,""));var d=t.utilities.getButtonClass(e),h=t.utilities.getButtonDisplayName(e,t.options.display,t.options.mergeDisplay),v=t.options.useButtonTag?"button":"div",y=document.createElement(v);y.className+="hg-button ".concat(d),(l=y.classList).add.apply(l,lr(t.getButtonThemeClasses(e))),t.setDOMButtonAttributes(e,function(t,e){y.setAttribute(t,e)}),t.activeButtonClass="hg-activeButton",!t.utilities.pointerEventsSupported()||r||i?r?(y.ontouchstart=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.ontouchend=function(n){t.handleButtonMouseUp(e,n)},y.ontouchcancel=function(n){t.handleButtonMouseUp(e,n)}):(y.onclick=function(n){t.setMouseHold(!1),"function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown||t.handleButtonClicked(e,n)},y.onmousedown=function(n){("function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown)&&!t.isMouseHold&&t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.onmouseup=function(n){t.handleButtonMouseUp(e,n)}):(y.onpointerdown=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.onpointerup=function(n){t.handleButtonMouseUp(e,n)},y.onpointercancel=function(n){t.handleButtonMouseUp(e,n)}),y.setAttribute("data-skBtn",e);var g="".concat(t.options.layoutName,"-r").concat(n,"b").concat(o);y.setAttribute("data-skBtnUID",g);var m=document.createElement("span");m.innerHTML=h,y.appendChild(m),t.buttonElements[e]||(t.buttonElements[e]=[]),t.buttonElements[e].push(y),u.appendChild(y)}),u=t.parseRowDOMContainers(u,n,s,c),t.keyboardRowsDOM.appendChild(u)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||r||i?r?(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)}):r||(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())}}],e&&hr(t.prototype,e),n&&hr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),mr=gr,br=gr}(),r}()},442:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.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";r.r(o),r.d(o,{KeyboardReact:function(){return l},default:function(){return f}});r(981);var t=r(442),e=r(548),n=r.n(e);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},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(t){return u(u({},t),{},{keyboardRef:null})},l=function(e){var r=e.baseClass||"react-simple-keyboard",o=t.useRef(null),i=t.useRef(null),a=t.useRef(null),s=t.useRef(e);return t.useEffect(function(){return function(){a.current&&a.current.destroy(),o.current=!1}},[]),t.useEffect(function(){var t=function(t){return u(u({},t),{},{theme:"simple-keyboard ".concat(t.theme||"hg-theme-default")})}(e);if(!o.current){o.current=!0,t.debug&&console.log("ReactSimpleKeyboard: Init");var l=i.current,f=".".concat(r);a.current=new(n())(l||f,t),t.keyboardRef&&t.keyboardRef(a.current)}var p=function(t,e){var n=c(e),r=c(t);return Object.keys(n).filter(function(t){return n[t]!==r[t]})}(s.current,t);if(p.length){var d=a.current;s.current=t,null==d||d.setOptions(t),t.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",p)}},[o,r,s,e]),t.createElement("div",{className:r,ref:i})},f=l}(),o}()});
12
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactSimpleKeyboard=e(require("react")):t.ReactSimpleKeyboard=e(t.React)}(this,function(t){return function(){var e={981:function(){"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){"use strict";if("Element"in t){var e="classList",n="prototype",r=t.Element[n],o=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},u=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},s=function(t,e){if(""===e)throw new u("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new u("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=c[n]=[],f=function(){return new c(this)};if(u[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return~s(this,t+"")},l.add=function(){var t,e=arguments,n=0,r=e.length,o=!1;do{~s(this,t=e[n]+"")||(this.push(t),o=!0)}while(++n<r);o&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(e=s(this,t=n[r]+"");~e;)this.splice(e,1),i=!0,e=s(this,t)}while(++r<o);i&&this._updateClassName()},l.toggle=function(t,e){var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},l.replace=function(t,e){var n=s(t+"");~n&&(this.splice(n,1,e),this._updateClassName())},l.toString=function(){return this.join(" ")},o.defineProperty){var p={get:f,enumerable:!0,configurable:!0};try{o.defineProperty(r,e,p)}catch(t){void 0!==t.number&&-2146823252!==t.number||(p.enumerable=!1,o.defineProperty(r,e,p))}}else o[n].__defineGetter__&&r.__defineGetter__(e,f)}}(self),function(){"use strict";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,r=arguments.length;for(n=0;n<r;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(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),t=null}())},548:function(t){t.exports=function(){var t={529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},606:function(t,e,n){"use strict";var r=n(823),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+r(e)+" of "+r(t))}},837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},400:function(t){"use strict";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}},117:function(t){"use strict";t.exports=function(t){return null==t}},269:function(t){"use strict";t.exports=Object.create?Object.create(null):{}},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.cw=function(t){var e;return function(){if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return function(){"use strict";n.r(r),n.d(r,{SimpleKeyboard:function(){return mr},default:function(){return br}});var t=n.cw(function(t){var e=Et(),n=Ue(),r=TypeError;t.exports=function(t){if(e(t))return t;throw new r(n(t)+" is not a function")}}),e=n.cw(function(t){var e=St(),n=Ue(),r=TypeError;t.exports=function(t){if(e(t))return t;throw new r(n(t)+" is not a constructor")}}),o=n.cw(function(t){var e=At(),n=String,r=TypeError;t.exports=function(t){if(e(t))return t;throw new r("Can't set "+n(t)+" as a prototype")}}),i=n.cw(function(t){var e=Ye(),n=Gt(),r=Vt().f,o=e("unscopables"),i=Array.prototype;void 0===i[o]&&r(i,o,{configurable:!0,value:n(null)}),t.exports=function(t){i[o][t]=!0}}),a=n.cw(function(t){var e=ke().o;t.exports=function(t,n,r){return n+(r&&e(t,n).length||1)}}),u=n.cw(function(t){var e=Ct(),n=String,r=TypeError;t.exports=function(t){if(e(t))return t;throw new r(n(t)+" is not an object")}}),s=n.cw(function(t){var e=f().jJ,n=d()("forEach");t.exports=n?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),c=n.cw(function(t){var e=Z(),n=nt(),r=Le(),o=w(),i=xt(),a=St(),u=_t(),s=M(),c=v(),l=st(),f=ct(),p=Tt(),d=K(),h=Array;t.exports=function(t){var v=a(this),y=arguments.length,g=y>1?arguments[1]:void 0,m=void 0!==g;m&&(g=e(g,y>2?arguments[2]:void 0));var b,w,x,O,E,S,k=r(t),P=f(k),I=0;if(!P||this===h&&i(P))for(b=u(k),w=v?new this(b):h(b);b>I;I++)S=m?g(k[I],I):k[I],s(w,I,S);else for(w=v?new this:[],E=(O=l(k,P)).next;!(x=n(E,O)).done;I++){try{d(I)}catch(t){p(O,"throw",t)}S=m?o(O,g,[x.value,I],!0):x.value;try{s(w,I,S)}catch(t){p(O,"throw",t)}}return c(w,I),w}}),l=n.cw(function(t){var e=De(),n=Ne(),r=_t(),o=function(t){return function(o,i,a){var u=e(o),s=r(u);if(0===s)return!t&&-1;var c,l=n(a,s);if(t&&i!=i){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===i)return t||l||0;return!t&&-1}};t.exports={m:o(!0),q:o(!1)}}),f=n.cw(function(t){var e=Z(),n=gt(),r=Le(),o=_t(),i=b(),a=M(),u=function(t){var u=1===t,s=2===t,c=3===t,l=4===t,f=6===t,p=7===t,d=5===t||f;return function(h,v,y){for(var g,m,b=r(h),w=n(b),x=o(w),O=e(v,y),E=0,S=0,k=u?i(h,x):s||p?i(h,0):void 0;x>E;E++)if((d||E in w)&&(m=O(g=w[E],E,b),t))if(u)a(k,E,m);else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:a(k,S++,g)}else switch(t){case 4:return!1;case 7:a(k,S++,g)}return f?-1:c||l?l:k}};t.exports={jJ:u(0),Tj:u(1),pb:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}),p=n.cw(function(t){var e=W(),n=Ye(),r=V(),o=n("species");t.exports=function(t){return r>=51||!e(function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo})}}),d=n.cw(function(t){var e=W();t.exports=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}),h=n.cw(function(e){var n=t(),r=Le(),o=gt(),i=_t(),a=TypeError,u="Reduce of empty array with no initial value",s=function(t){return function(e,s,c,l){var f=r(e),p=o(f),d=i(f);if(n(s),0===d&&c<2)throw new a(u);var h=t?d-1:0,v=t?-1:1;if(c<2)for(;;){if(h in p){l=p[h],h+=v;break}if(h+=v,t?h<0:d<=h)throw new a(u)}for(;t?h>=0:d>h;h+=v)h in p&&(l=s(l,p[h],h,f));return l}};e.exports={k:s(!1),right:s(!0)}}),v=n.cw(function(t){var e=L(),n=Ot(),r=TypeError,o=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=i?function(t,e){if(n(t)&&!o(t,"length").writable)throw new r("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}}),y=n.cw(function(t){var e=at();t.exports=e([].slice)}),g=n.cw(function(t){var e=y(),n=Math.floor,r=function(t,o){var i=t.length;if(i<8)for(var a,u,s=1;s<i;){for(u=s,a=t[s];u&&o(t[u-1],a)>0;)t[u]=t[--u];u!==s++&&(t[u]=a)}else for(var c=n(i/2),l=r(e(t,0,c),o),f=r(e(t,c),o),p=l.length,d=f.length,h=0,v=0;h<p||v<d;)t[h+v]=h<p&&v<d?o(l[h],f[v])<=0?l[h++]:f[v++]:h<p?l[h++]:f[v++];return t};t.exports=r}),m=n.cw(function(t){var e=Ot(),n=St(),r=Ct(),o=Ye()("species"),i=Array;t.exports=function(t){var a;return e(t)&&(a=t.constructor,(n(a)&&(a===i||e(a.prototype))||r(a)&&null===(a=a[o]))&&(a=void 0)),void 0===a?i:a}}),b=n.cw(function(t){var e=m();t.exports=function(t,n){return new(e(t))(0===n?0:n)}}),w=n.cw(function(t){var e=u(),n=Tt();t.exports=function(t,r,o,i){try{return i?r(e(o)[0],o[1]):r(o)}catch(e){n(t,"throw",e)}}}),x=n.cw(function(t){var e=Ye()("iterator"),n=!1;try{var r=0,o={next:function(){return{done:!!r++}},return:function(){n=!0}};o[e]=function(){return this},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,r){try{if(!r&&!n)return!1}catch(t){return!1}var o=!1;try{var i={};i[e]=function(){return{next:function(){return{done:o=!0}}}},t(i)}catch(t){}return o}}),O=n.cw(function(t){var e=at(),n=e({}.toString),r=e("".slice);t.exports=function(t){return r(n(t),8,-1)}}),E=n.cw(function(t){var e=_e(),n=Et(),r=O(),o=Ye()("toStringTag"),i=Object,a="Arguments"===r(function(){return arguments}());t.exports=e?r:function(t){var e,u,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(u=function(t,e){try{return t[e]}catch(t){}}(e=i(t),o))?u:a?r(e):"Object"===(s=r(e))&&n(e.callee)?"Arguments":s}}),S=n.cw(function(t){var e=dt(),n=ae(),r=zt(),o=Vt();t.exports=function(t,i,a){for(var u=n(i),s=o.f,c=r.f,l=0;l<u.length;l++){var f=u[l];e(t,f)||a&&e(a,f)||s(t,f,c(i,f))}}}),k=n.cw(function(t){var e=Ye()("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,"/./"[t](n)}catch(t){}}return!1}}),P=n.cw(function(t){var e=W();t.exports=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}),I=function(){return n(529)},C=n.cw(function(t){var e=L(),n=Vt(),r=A();t.exports=e?function(t,e,o){return n.f(t,e,r(1,o))}:function(t,e,n){return t[e]=n,t}}),A=n.cw(function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}}),M=n.cw(function(t){var e=L(),n=Vt(),r=A();t.exports=function(t,o,i){e?n.f(t,o,r(0,i)):t[o]=i}}),j=n.cw(function(t){var e=u(),n=ie(),r=TypeError;t.exports=function(t){if(e(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new r("Incorrect hint");return n(this,t)}}),N=n.cw(function(t){var e=Ft(),n=Vt();t.exports=function(t,r,o){return o.get&&e(o.get,r,{getter:!0}),o.set&&e(o.set,r,{setter:!0}),n.f(t,r,o)}}),D=n.cw(function(t){var e=Et(),n=Vt(),r=Ft(),o=T();t.exports=function(t,i,a,u){u||(u={});var s=u.enumerable,c=void 0!==u.name?u.name:i;if(e(a)&&r(a,c,u),u.global)s?t[i]=a:o(i,a);else{try{u.unsafe?t[i]&&(s=!0):delete t[i]}catch(t){}s?t[i]=a:n.f(t,i,{value:a,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}}),T=n.cw(function(t){var e=pt(),n=Object.defineProperty;t.exports=function(t,r){try{n(e,t,{value:r,configurable:!0,writable:!0})}catch(n){e[t]=r}return r}}),R=function(){return n(606)},L=n.cw(function(t){var e=W();t.exports=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),B=n.cw(function(t){var e=pt(),n=Ct(),r=e.document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}}),K=function(){return n(837)},_=function(){return n(400)},F=n.cw(function(t){var e=B()("span").classList,n=e&&e.constructor&&e.constructor.prototype;t.exports=n===Object.prototype?void 0:n}),U=n.cw(function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),H=n.cw(function(t){var e=J().match(/firefox\/(\d+)/i);t.exports=!!e&&+e[1]}),$=n.cw(function(t){var e=J();t.exports=/MSIE|Trident/.test(e)}),G=n.cw(function(t){var e=Y();t.exports="NODE"===e}),J=n.cw(function(t){var e=pt().navigator,n=e&&e.userAgent;t.exports=n?String(n):""}),V=n.cw(function(t){var e,n,r=pt(),o=J(),i=r.process,a=r.Deno,u=i&&i.versions||a&&a.version,s=u&&u.v8;s&&(n=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!n&&o&&(!(e=o.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=o.match(/Chrome\/(\d+)/))&&(n=+e[1]),t.exports=n}),z=n.cw(function(t){var e=J().match(/AppleWebKit\/(\d+)\./);t.exports=!!e&&+e[1]}),Y=n.cw(function(t){var e=pt(),n=J(),r=O(),o=function(t){return n.slice(0,t.length)===t};t.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}),q=n.cw(function(t){var e=pt(),n=zt().f,r=C(),o=D(),i=T(),a=S(),u=kt();t.exports=function(t,s){var c,l,f,p,d,h=t.target,v=t.global,y=t.stat;if(c=v?e:y?e[h]||i(h,{}):e[h]&&e[h].prototype)for(l in s){if(p=s[l],f=t.dontCallGetSet?(d=n(c,l))&&d.value:c[l],!u(v?l:h+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;a(p,f)}(t.sham||f&&f.sham)&&r(p,"sham",!0),o(c,l,p,t)}}}),W=n.cw(function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}}),X=n.cw(function(t){kn();var e=nt(),n=D(),r=fe(),o=W(),i=Ye(),a=C(),u=i("species"),s=RegExp.prototype;t.exports=function(t,c,l,f){var p=i(t),d=!o(function(){var e={};return e[p]=function(){return 7},7!==""[t](e)}),h=d&&!o(function(){var e=!1,n=/a/;if("split"===t){var r={};r[u]=function(){return n},(n={constructor:r,flags:""})[p]=/./[p]}return n.exec=function(){return e=!0,null},n[p](""),!e});if(!d||!h||l){var v=/./[p],y=c(p,""[t],function(t,n,o,i,a){var u=n.exec;return u===r||u===s.exec?d&&!a?{done:!0,value:e(v,n,o,i)}:{done:!0,value:e(t,o,n,i)}:{done:!1}});n(String.prototype,t,y[0]),n(s,p,y[1])}f&&a(s[p],"sham",!0)}}),Q=n.cw(function(t){var e=tt(),n=Function.prototype,r=n.apply,o=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(e?o.bind(r):function(){return o.apply(r,arguments)})}),Z=n.cw(function(e){var n=it(),r=t(),o=tt(),i=n(n.bind);e.exports=function(t,e){return r(t),void 0===e?t:o?i(t,e):function(){return t.apply(e,arguments)}}}),tt=n.cw(function(t){var e=W();t.exports=!e(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}),et=n.cw(function(e){var n=at(),r=t(),o=Ct(),i=dt(),a=y(),u=tt(),s=Function,c=n([].concat),l=n([].join),f={};e.exports=u?s.bind:function(t){var e=r(this),n=e.prototype,u=a(arguments,1),p=function(){var n=c(u,a(arguments));return this instanceof p?function(t,e,n){if(!i(f,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";f[e]=s("C,a","return new C("+l(r,",")+")")}return f[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(p.prototype=n),p}}),nt=n.cw(function(t){var e=tt(),n=Function.prototype.call;t.exports=e?n.bind(n):function(){return n.apply(n,arguments)}}),rt=n.cw(function(t){var e=L(),n=dt(),r=Function.prototype,o=e&&Object.getOwnPropertyDescriptor,i=n(r,"name"),a=i&&"something"===function(){}.name,u=i&&(!e||e&&o(r,"name").configurable);t.exports={EXISTS:i,PROPER:a,CONFIGURABLE:u}}),ot=n.cw(function(e){var n=at(),r=t();e.exports=function(t,e,o){try{return n(r(Object.getOwnPropertyDescriptor(t,e)[o]))}catch(t){}}}),it=n.cw(function(t){var e=O(),n=at();t.exports=function(t){if("Function"===e(t))return n(t)}}),at=n.cw(function(t){var e=tt(),n=Function.prototype,r=n.call,o=e&&n.bind.bind(r,r);t.exports=e?o:function(t){return function(){return r.apply(t,arguments)}}}),ut=n.cw(function(t){var e=pt(),n=Et();t.exports=function(t,r){return arguments.length<2?(o=e[t],n(o)?o:void 0):e[t]&&e[t][r];var o}}),st=n.cw(function(t){var e=nt(),n=Et(),r=u(),o=Ue(),i=ct(),a=TypeError;t.exports=function(t,u){var s=arguments.length<2?i(t):u;if(n(s))return r(e(s,t));throw new a(o(t)+" is not iterable")}}),ct=n.cw(function(t){var e=O(),n=It(),r=lt(),o=Ye()("iterator"),i=Array.prototype;t.exports=function(t){if(!n(t))return r(t,o)||r(t,"@@iterator")||("Arguments"===e(t)?i[o]:void 0)}}),lt=n.cw(function(e){var n=t(),r=It();e.exports=function(t,e){var o=t[e];return r(o)?void 0:n(o)}}),ft=n.cw(function(t){var e=at(),n=Le(),r=Math.floor,o=e("".charAt),i=e("".replace),a=e("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,c,l,f,p){var d=c+t.length,h=l.length,v=s;return void 0!==f&&(f=n(f),v=u),i(p,v,function(n,i){var u;switch(o(i,0)){case"$":return"$";case"&":return t;case"`":return a(e,0,c);case"'":return a(e,d);case"<":u=f[a(i,1,-1)];break;default:var s=+i;if(0===s)return n;if(s>h){var p=r(s/10);return 0===p?n:p<=h?void 0===l[p-1]?o(i,1):l[p-1]+o(i,1):n}u=l[s-1]}return void 0===u?"":u})}}),pt=n.cw(function(t){var e=function(t){return t&&t.Math===Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n.g&&n.g)||e("object"==typeof this&&this)||function(){return this}()||Function("return this")()}),dt=n.cw(function(t){var e=at(),n=Le(),r=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(n(t),e)}}),ht=n.cw(function(t){t.exports={}}),vt=n.cw(function(t){var e=ut();t.exports=e("document","documentElement")}),yt=n.cw(function(t){var e=L(),n=W(),r=B();t.exports=!e&&!n(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}),gt=n.cw(function(t){var e=at(),n=W(),r=O(),o=Object,i=e("".split);t.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?i(t,""):o(t)}:o}),mt=n.cw(function(t){var e=Et(),n=Ct(),r=re();t.exports=function(t,o,i){var a,u;return r&&e(a=o.constructor)&&a!==i&&n(u=a.prototype)&&u!==i.prototype&&r(t,u),t}}),bt=n.cw(function(t){var e=at(),n=Et(),r=Oe(),o=e(Function.toString);n(r.inspectSource)||(r.inspectSource=function(t){return o(t)}),t.exports=r.inspectSource}),wt=n.cw(function(t){var e,n,r,o=Je(),i=pt(),a=Ct(),u=C(),s=dt(),c=Oe(),l=xe(),f=ht(),p="Object already initialized",d=i.TypeError,h=i.WeakMap;if(o||c.state){var v=c.state||(c.state=new h);v.get=v.get,v.has=v.has,v.set=v.set,e=function(t,e){if(v.has(t))throw new d(p);return e.facade=t,v.set(t,e),e},n=function(t){return v.get(t)||{}},r=function(t){return v.has(t)}}else{var y=l("state");f[y]=!0,e=function(t,e){if(s(t,y))throw new d(p);return e.facade=t,u(t,y,e),e},n=function(t){return s(t,y)?t[y]:{}},r=function(t){return s(t,y)}}t.exports={set:e,get:n,has:r,enforce:function(t){return r(t)?n(t):e(t,{})},getterFor:function(t){return function(e){var r;if(!a(e)||(r=n(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}}),xt=n.cw(function(t){var e=Ye(),n=Kt(),r=e("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[r]===t)}}),Ot=n.cw(function(t){var e=O();t.exports=Array.isArray||function(t){return"Array"===e(t)}}),Et=n.cw(function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}}),St=n.cw(function(t){var e=at(),n=W(),r=Et(),o=E(),i=ut(),a=bt(),u=function(){},s=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,l=e(c.exec),f=!c.test(u),p=function(t){if(!r(t))return!1;try{return s(u,[],t),!0}catch(t){return!1}},d=function(t){if(!r(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!l(c,a(t))}catch(t){return!0}};d.sham=!0,t.exports=!s||n(function(){var t;return p(p.call)||!p(Object)||!p(function(){t=!0})||t})?d:p}),kt=n.cw(function(t){var e=W(),n=Et(),r=/#|\.prototype\./,o=function(t,r){var o=a[i(t)];return o===s||o!==u&&(n(r)?e(r):!!r)},i=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";t.exports=o}),Pt=n.cw(function(t){var e=Ct(),n=Math.floor;t.exports=Number.isInteger||function(t){return!e(t)&&isFinite(t)&&n(t)===t}}),It=function(){return n(117)},Ct=n.cw(function(t){var e=Et();t.exports=function(t){return"object"==typeof t?null!==t:e(t)}}),At=n.cw(function(t){var e=Ct();t.exports=function(t){return e(t)||null===t}}),Mt=n.cw(function(t){t.exports=!1}),jt=n.cw(function(t){var e=Ct(),n=wt().get;t.exports=function(t){if(!e(t))return!1;var r=n(t);return!!r&&"RawJSON"===r.type}}),Nt=n.cw(function(t){var e=Ct(),n=O(),r=Ye()("match");t.exports=function(t){var o;return e(t)&&(void 0!==(o=t[r])?!!o:"RegExp"===n(t))}}),Dt=n.cw(function(t){var e=ut(),n=Et(),r=Qt(),o=$e(),i=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var o=e("Symbol");return n(o)&&r(o.prototype,i(t))}}),Tt=n.cw(function(t){var e=nt(),n=u(),r=lt();t.exports=function(t,o,i){var a,u;n(t);try{if(!(a=r(t,"return"))){if("throw"===o)throw i;return i}a=e(a,t)}catch(t){u=!0,a=t}if("throw"===o)throw i;if(u)throw a;return n(a),i}}),Rt=n.cw(function(t){var e=Bt().IteratorPrototype,n=Gt(),r=A(),o=we(),i=Kt(),a=function(){return this};t.exports=function(t,u,s,c){var l=u+" Iterator";return t.prototype=n(e,{next:r(+!c,s)}),o(t,l,!1,!0),i[l]=a,t}}),Lt=n.cw(function(t){var e=q(),n=nt(),r=Mt(),o=rt(),i=Et(),a=Rt(),u=Xt(),s=re(),c=we(),l=C(),f=D(),p=Ye(),d=Kt(),h=Bt(),v=o.PROPER,y=o.CONFIGURABLE,g=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,b=p("iterator"),w="keys",x="values",O="entries",E=function(){return this};t.exports=function(t,o,p,h,S,k,P){a(p,o,h);var I,C,A,M=function(t){if(t===S&&R)return R;if(!m&&t&&t in D)return D[t];switch(t){case w:case x:case O:return function(){return new p(this,t)}}return function(){return new p(this)}},j=o+" Iterator",N=!1,D=t.prototype,T=D[b]||D["@@iterator"]||S&&D[S],R=!m&&T||M(S),L="Array"===o&&D.entries||T;if(L&&(I=u(L.call(new t)))!==Object.prototype&&I.next&&(r||u(I)===g||(s?s(I,g):i(I[b])||f(I,b,E)),c(I,j,!0,!0),r&&(d[j]=E)),v&&S===x&&T&&T.name!==x&&(!r&&y?l(D,"name",x):(N=!0,R=function(){return n(T,this)})),S)if(C={values:M(x),keys:k?R:M(w),entries:M(O)},P)for(A in C)(m||N||!(A in D))&&f(D,A,C[A]);else e({target:o,proto:!0,forced:m||N},C);return r&&!P||D[b]===R||f(D,b,R,{name:S}),d[o]=R,C}}),Bt=n.cw(function(t){var e,n,r,o=W(),i=Et(),a=Ct(),u=Gt(),s=Xt(),c=D(),l=Ye(),f=Mt(),p=l("iterator"),d=!1;[].keys&&("next"in(r=[].keys())?(n=s(s(r)))!==Object.prototype&&(e=n):d=!0),!a(e)||o(function(){var t={};return e[p].call(t)!==t})?e={}:f&&(e=u(e)),i(e[p])||c(e,p,function(){return this}),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:d}}),Kt=function(){return n(269)},_t=n.cw(function(t){var e=Re();t.exports=function(t){return e(t.length)}}),Ft=n.cw(function(t){var e=at(),n=W(),r=Et(),o=dt(),i=L(),a=rt().CONFIGURABLE,u=bt(),s=wt(),c=s.enforce,l=s.get,f=String,p=Object.defineProperty,d=e("".slice),h=e("".replace),v=e([].join),y=i&&!n(function(){return 8!==p(function(){},"length",{value:8}).length}),g=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===d(f(e),0,7)&&(e="["+h(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||a&&t.name!==e)&&(i?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&o(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?i&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=c(t);return o(r,"source")||(r.source=v(g,"string"==typeof e?e:"")),t};Function.prototype.toString=m(function(){return r(this)&&l(this).source||u(this)},"toString")}),Ut=n.cw(function(t){var e=W();t.exports=!e(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})}),Ht=n.cw(function(t){var e=Nt(),n=TypeError;t.exports=function(t){if(e(t))throw new n("The method doesn't accept regular expressions");return t}}),$t=n.cw(function(t){var e=L(),n=at(),r=nt(),o=W(),i=te(),a=Wt(),u=ee(),s=Le(),c=gt(),l=Object.assign,f=Object.defineProperty,p=n([].concat);t.exports=!l||o(function(){if(e&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(t){n[t]=t}),7!==l({},t)[r]||i(l({},n)).join("")!==o})?function(t,n){for(var o=s(t),l=arguments.length,f=1,d=a.f,h=u.f;l>f;)for(var v,y=c(arguments[f++]),g=d?p(i(y),d(y)):i(y),m=g.length,b=0;m>b;)v=g[b++],e&&!r(h,y,v)||(o[v]=y[v]);return o}:l}),Gt=n.cw(function(t){var e,n=u(),r=Jt(),o=U(),i=ht(),a=vt(),s=B(),c=xe(),l="prototype",f="script",p=c("IE_PROTO"),d=function(){},h=function(t){return"<"+f+">"+t+"</"+f+">"},v=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{e=new ActiveXObject("htmlfile")}catch(t){}var t,n,r;y="undefined"!=typeof document?document.domain&&e?v(e):(n=s("iframe"),r="java"+f+":",n.style.display="none",a.appendChild(n),n.src=String(r),(t=n.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):v(e);for(var i=o.length;i--;)delete y[l][o[i]];return y()};i[p]=!0,t.exports=Object.create||function(t,e){var o;return null!==t?(d[l]=n(t),o=new d,d[l]=null,o[p]=t):o=y(),void 0===e?o:r.f(o,e)}}),Jt=n.cw(function(t,e){var n=L(),r=Ge(),o=Vt(),i=u(),a=De(),s=te();e.f=n&&!r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),u=s(e),c=u.length,l=0;c>l;)o.f(t,n=u[l++],r[n]);return t}}),Vt=n.cw(function(t,e){var n=L(),r=yt(),o=Ge(),i=u(),a=Ke(),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=n?o?function(t,e,n){if(i(t),e=a(e),i(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(i(t),e=a(e),i(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}}),zt=n.cw(function(t,e){var n=L(),r=nt(),o=ee(),i=A(),a=De(),u=Ke(),s=dt(),c=yt(),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=u(e),c)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r(o.f,t,e),t[e])}}),Yt=n.cw(function(t){var e=O(),n=De(),r=qt().f,o=y(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return i&&"Window"===e(t)?function(t){try{return r(t)}catch(t){return o(i)}}(t):r(n(t))}}),qt=n.cw(function(t,e){var n=Zt(),r=U().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}}),Wt=function(){return n(717)},Xt=n.cw(function(t){var e=dt(),n=Et(),r=Le(),o=xe(),i=P(),a=o("IE_PROTO"),u=Object,s=u.prototype;t.exports=i?u.getPrototypeOf:function(t){var o=r(t);if(e(o,a))return o[a];var i=o.constructor;return n(i)&&o instanceof i?i.prototype:o instanceof u?s:null}}),Qt=n.cw(function(t){var e=at();t.exports=e({}.isPrototypeOf)}),Zt=n.cw(function(t){var e=at(),n=dt(),r=De(),o=l().q,i=ht(),a=e([].push);t.exports=function(t,e){var u,s=r(t),c=0,l=[];for(u in s)!n(i,u)&&n(s,u)&&a(l,u);for(;e.length>c;)n(s,u=e[c++])&&(~o(l,u)||a(l,u));return l}}),te=n.cw(function(t){var e=Zt(),n=U();t.exports=Object.keys||function(t){return e(t,n)}}),ee=n.cw(function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n}),ne=n.cw(function(t){var e=Mt(),n=pt(),r=W(),o=z();t.exports=e||!r(function(){if(!(o&&o<535)){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n[t]}})}),re=n.cw(function(t){var e=ot(),n=Ct(),r=me(),i=o();t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,o=!1,a={};try{(t=e(Object.prototype,"__proto__","set"))(a,[]),o=a instanceof Array}catch(t){}return function(e,a){return r(e),i(a),n(e)?(o?t(e,a):e.__proto__=a,e):e}}():void 0)}),oe=n.cw(function(t){var e=_e(),n=E();t.exports=e?{}.toString:function(){return"[object "+n(this)+"]"}}),ie=n.cw(function(t){var e=nt(),n=Et(),r=Ct(),o=TypeError;t.exports=function(t,i){var a,u;if("string"===i&&n(a=t.toString)&&!r(u=e(a,t)))return u;if(n(a=t.valueOf)&&!r(u=e(a,t)))return u;if("string"!==i&&n(a=t.toString)&&!r(u=e(a,t)))return u;throw new o("Can't convert object to primitive value")}}),ae=n.cw(function(t){var e=ut(),n=at(),r=qt(),o=Wt(),i=u(),a=n([].concat);t.exports=e("Reflect","ownKeys")||function(t){var e=r.f(i(t)),n=o.f;return n?a(e,n(t)):e}}),ue=n.cw(function(t){var e=at(),n=dt(),r=SyntaxError,o=parseInt,i=String.fromCharCode,a=e("".charAt),u=e("".slice),s=e(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},l=/^[\da-f]{4}$/i,f=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var p=!0,d="";e<t.length;){var h=a(t,e);if("\\"===h){var v=u(t,e,e+2);if(n(c,v))d+=c[v],e+=2;else{if("\\u"!==v)throw new r('Unknown escape sequence: "'+v+'"');var y=u(t,e+=2,e+4);if(!s(l,y))throw new r("Bad Unicode escape at: "+e);d+=i(o(y,16)),e+=4}}else{if('"'===h){p=!1,e++;break}if(s(f,h))throw new r("Bad control character in string literal at: "+e);d+=h,e++}}if(p)throw new r("Unterminated string at: "+e);return{value:d,end:e}}}),se=n.cw(function(t){var e=pt();t.exports=e}),ce=n.cw(function(t){var e=Vt().f;t.exports=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(t){n[r]=t}})}}),le=n.cw(function(t){var e=nt(),n=u(),r=Et(),o=O(),i=fe(),a=TypeError;t.exports=function(t,u){var s=t.exec;if(r(s)){var c=e(s,t,u);return null!==c&&n(c),c}if("RegExp"===o(t))return e(i,t,u);throw new a("RegExp#exec called on incompatible receiver")}}),fe=n.cw(function(t){var e,n,r=nt(),o=at(),i=Fe(),a=de(),u=ve(),s=Ee(),c=Gt(),l=wt().get,f=ye(),p=ge(),d=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,v=h,y=o("".charAt),g=o("".indexOf),m=o("".replace),b=o("".slice),w=(n=/b*/g,r(h,e=/a/,"a"),r(h,n,"a"),0!==e.lastIndex||0!==n.lastIndex),x=u.BROKEN_CARET,O=void 0!==/()??/.exec("")[1],E=function(t,e){for(var n=t.groups=c(null),r=0;r<e.length;r++){var o=e[r];n[o[0]]=t[o[1]]}};(w||O||x||f||p)&&(v=function(t){var e,n,o,u=this,s=l(u),c=i(t),f=s.raw;if(f)return f.lastIndex=u.lastIndex,e=r(v,f,c),u.lastIndex=f.lastIndex,e&&s.groups&&E(e,s.groups),e;var p=s.groups,S=x&&u.sticky,k=r(a,u),P=u.source,I=0,C=c;if(S){k=m(k,"y",""),-1===g(k,"g")&&(k+="g"),C=b(c,u.lastIndex);var A=u.lastIndex>0&&y(c,u.lastIndex-1);u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==A&&"\r"!==A&&"\u2028"!==A&&"\u2029"!==A)&&(P="(?: (?:"+P+"))",C=" "+C,I++),n=new RegExp("^(?:"+P+")",k)}O&&(n=new RegExp("^"+P+"$(?!\\s)",k)),w&&(o=u.lastIndex);var M=r(h,S?n:u,C);return S?M?(M.input=c,M[0]=b(M[0],I),M.index=u.lastIndex,u.lastIndex+=M[0].length):u.lastIndex=0:w&&M&&(u.lastIndex=u.global?M.index+M[0].length:o),O&&M&&M.length>1&&r(d,M[0],n,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(M[t]=void 0)}),M&&p&&E(M,p),M}),t.exports=v}),pe=n.cw(function(t){var e=pt(),n=W(),r=e.RegExp,o=!n(function(){var t=!0;try{r(".","d")}catch(e){t=!1}var e={},n="",o=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var u in t&&(a.hasIndices="d"),a)i(u,a[u]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(e)!==o||n!==o});t.exports={correct:o}}),de=n.cw(function(t){var e=u();t.exports=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}),he=n.cw(function(t){var e=nt(),n=dt(),r=Qt(),o=pe(),i=de(),a=RegExp.prototype;t.exports=o.correct?function(t){return t.flags}:function(t){return o.correct||!r(a,t)||n(t,"flags")?t.flags:e(i,t)}}),ve=n.cw(function(t){var e=W(),n=pt().RegExp,r=e(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),o=r||e(function(){return!n("a","y").sticky}),i=r||e(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:i,MISSED_STICKY:o,UNSUPPORTED_Y:r}}),ye=n.cw(function(t){var e=W(),n=pt().RegExp;t.exports=e(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}),ge=n.cw(function(t){var e=W(),n=pt().RegExp;t.exports=e(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}),me=n.cw(function(t){var e=It(),n=TypeError;t.exports=function(t){if(e(t))throw new n("Can't call method on "+t);return t}}),be=n.cw(function(t){var e=ut(),n=N(),r=Ye(),o=L(),i=r("species");t.exports=function(t){var r=e(t);o&&r&&!r[i]&&n(r,i,{configurable:!0,get:function(){return this}})}}),we=n.cw(function(t){var e=Vt().f,n=dt(),r=Ye()("toStringTag");t.exports=function(t,o,i){t&&!i&&(t=t.prototype),t&&!n(t,r)&&e(t,r,{configurable:!0,value:o})}}),xe=n.cw(function(t){var e=Ee(),n=He(),r=e("keys");t.exports=function(t){return r[t]||(r[t]=n(t))}}),Oe=n.cw(function(t){var e=Mt(),n=pt(),r=T(),o="__core-js_shared__",i=t.exports=n[o]||r(o,{});(i.versions||(i.versions=[])).push({version:"3.51.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.51.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Ee=n.cw(function(t){var e=Oe(),n=Object.create||Object;t.exports=function(t,r){return e[t]||(e[t]=r||n(null))}}),Se=n.cw(function(t){var n=u(),r=e(),o=It(),i=Ye()("species");t.exports=function(t,e){var a,u=n(t).constructor;return void 0===u||o(a=n(u)[i])?e:r(a)}}),ke=n.cw(function(t){var e=at(),n=Te(),r=Fe(),o=me(),i=e("".charAt),a=e("".charCodeAt),u=e("".slice),s=function(t){return function(e,s){var c,l,f=r(o(e)),p=n(s),d=f.length;return p<0||p>=d?t?"":void 0:(c=a(f,p))<55296||c>56319||p+1===d||(l=a(f,p+1))<56320||l>57343?t?i(f,p):c:t?u(f,p,p+2):l-56320+(c-55296<<10)+65536}};t.exports={codeAt:s(!1),o:s(!0)}}),Pe=n.cw(function(t){var e=rt().PROPER,n=W(),r=qe();t.exports=function(t){return n(function(){return!!r[t]()||"​…᠎"!=="​…᠎"[t]()||e&&r[t].name!==t})}}),Ie=n.cw(function(t){var e=at(),n=me(),r=Fe(),o=qe(),i=e("".replace),a=RegExp("^["+o+"]+"),u=RegExp("(^|[^"+o+"])["+o+"]+$"),s=function(t){return function(e){var o=r(n(e));return 1&t&&(o=i(o,a,"")),2&t&&(o=i(o,u,"$1")),o}};t.exports={start:s(1),end:s(2),Bq:s(3)}}),Ce=n.cw(function(t){var e=V(),n=W(),r=pt().String;t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}),Ae=n.cw(function(t){var e=nt(),n=ut(),r=Ye(),o=D();t.exports=function(){var t=n("Symbol"),i=t&&t.prototype,a=i&&i.valueOf,u=r("toPrimitive");i&&!i[u]&&o(i,u,function(t){return e(a,this)},{arity:1})}}),Me=n.cw(function(t){var e=Ce();t.exports=e&&!!Symbol.for&&!!Symbol.keyFor}),je=n.cw(function(t){var e=at();t.exports=e(1.1.valueOf)}),Ne=n.cw(function(t){var e=Te(),n=Math.max,r=Math.min;t.exports=function(t,o){var i=e(t);return i<0?n(i+o,0):r(i,o)}}),De=n.cw(function(t){var e=gt(),n=me();t.exports=function(t){return e(n(t))}}),Te=n.cw(function(t){var e=n(741);t.exports=function(t){var n=+t;return n!=n||0===n?0:e(n)}}),Re=n.cw(function(t){var e=Te(),n=Math.min;t.exports=function(t){var r=e(t);return r>0?n(r,9007199254740991):0}}),Le=n.cw(function(t){var e=me(),n=Object;t.exports=function(t){return n(e(t))}}),Be=n.cw(function(t){var e=nt(),n=Ct(),r=Dt(),o=lt(),i=ie(),a=Ye(),u=TypeError,s=a("toPrimitive");t.exports=function(t,a){if(!n(t)||r(t))return t;var c,l=o(t,s);if(l){if(void 0===a&&(a="default"),c=e(l,t,a),!n(c)||r(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(t,a)}}),Ke=n.cw(function(t){var e=Be(),n=Dt();t.exports=function(t){var r=e(t,"string");return n(r)?r:r+""}}),_e=n.cw(function(t){var e={};e[Ye()("toStringTag")]="z",t.exports="[object z]"===String(e)}),Fe=n.cw(function(t){var e=E(),n=String;t.exports=function(t){if("Symbol"===e(t))throw new TypeError("Cannot convert a Symbol value to a string");return n(t)}}),Ue=function(){return n(823)},He=n.cw(function(t){var e=at(),n=0,r=Math.random(),o=e(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++n+r,36)}}),$e=n.cw(function(t){var e=Ce();t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),Ge=n.cw(function(t){var e=L(),n=W();t.exports=e&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),Je=n.cw(function(t){var e=pt(),n=Et(),r=e.WeakMap;t.exports=n(r)&&/native code/.test(String(r))}),Ve=n.cw(function(t){var e=se(),n=dt(),r=ze(),o=Vt().f;t.exports=function(t){var i=e.Symbol||(e.Symbol={});n(i,t)||o(i,t,{value:r.f(t)})}}),ze=n.cw(function(t,e){var n=Ye();e.f=n}),Ye=n.cw(function(t){var e=pt(),n=Ee(),r=dt(),o=He(),i=Ce(),a=$e(),u=e.Symbol,s=n("wks"),c=a?u.for||u:u&&u.withoutSetter||o;t.exports=function(t){return r(s,t)||(s[t]=i&&r(u,t)?u[t]:c("Symbol."+t)),s[t]}}),qe=n.cw(function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"}),We=n.cw(function(){var t=q(),e=W(),n=Ot(),r=Ct(),o=Le(),i=_t(),a=K(),u=M(),s=v(),c=b(),l=p(),f=Ye(),d=V(),h=f("isConcatSpreadable"),y=d>=51||!e(function(){var t=[];return t[h]=!1,t.concat()[0]!==t}),g=function(t){if(!r(t))return!1;var e=t[h];return void 0!==e?!!e:n(t)};t({target:"Array",proto:!0,arity:1,forced:!y||!l("concat")},{concat:function(t){var e,n,r,l,f,p=o(this),d=c(p,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(g(f=-1===e?p:arguments[e]))for(l=i(f),a(h+l),n=0;n<l;n++,h++)n in f&&u(d,h,f[n]);else a(h+1),u(d,h++,f);return s(d,h),d}})}),Xe=n.cw(function(){var t=q(),e=f().pb;t({target:"Array",proto:!0,forced:!p()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}),Qe=n.cw(function(){var t=q(),e=c();t({target:"Array",stat:!0,forced:!x()(function(t){Array.from(t)})},{from:e})}),Ze=n.cw(function(){var t=q(),e=l().m,n=W(),r=i(),o=n(function(){return!Array(1).includes()}),a=n(function(){return[,1].includes(void 0,1)});t({target:"Array",proto:!0,forced:o||a},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}),tn=n.cw(function(){var t=q(),e=it(),n=l().q,r=d(),o=e([].indexOf),i=!!o&&1/o([1],1,-0)<0;t({target:"Array",proto:!0,forced:i||!r("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return i?o(this,t,e)||0:n(this,t,e)}})}),en=n.cw(function(t){var e=De(),n=i(),r=Kt(),o=wt(),a=Vt().f,u=Lt(),s=I(),c=Mt(),l=L(),f="Array Iterator",p=o.set,d=o.getterFor(f);t.exports=u(Array,"Array",function(t,n){p(this,{type:f,target:e(t),index:0,kind:n})},function(){var t=d(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(n,!1);case"values":return s(e[n],!1)}return s([n,e[n]],!1)},"values");var h=r.Arguments=r.Array;if(n("keys"),n("values"),n("entries"),!c&&l&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(t){}}),nn=n.cw(function(){var t=q(),e=at(),n=gt(),r=De(),o=d(),i=e([].join);t({target:"Array",proto:!0,forced:n!==Object||!o("join",",")},{join:function(t){return i(r(this),void 0===t?",":t)}})}),rn=n.cw(function(){var t=q(),e=f().Tj;t({target:"Array",proto:!0,forced:!p()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}),on=n.cw(function(){var t=q(),e=h().k,n=d(),r=V();t({target:"Array",proto:!0,forced:!G()&&r>79&&r<83||!n("reduce")},{reduce:function(t){var n=arguments.length;return e(this,t,n,n>1?arguments[1]:void 0)}})}),an=n.cw(function(){var t=q(),e=Ot(),n=St(),r=Ct(),o=Ne(),i=_t(),a=De(),u=M(),s=v(),c=Ye(),l=p(),f=y(),d=l("slice"),h=c("species"),g=Array,m=Math.max;t({target:"Array",proto:!0,forced:!d},{slice:function(t,c){var l,p,d,v=a(this),y=i(v),b=o(t,y),w=o(void 0===c?y:c,y);if(e(v)&&(l=v.constructor,(n(l)&&(l===g||e(l.prototype))||r(l)&&null===(l=l[h]))&&(l=void 0),l===g||void 0===l))return f(v,b,w);for(p=new(void 0===l?g:l)(m(w-b,0)),d=0;b<w;b++,d++)b in v&&u(p,d,v[b]);return s(p,d),p}})}),un=n.cw(function(){var e=q(),n=at(),r=t(),o=Le(),i=_t(),a=R(),u=Fe(),s=W(),c=g(),l=d(),f=H(),p=$(),h=V(),v=z(),y=[],m=n(y.sort),b=n(y.push),w=s(function(){y.sort(void 0)}),x=s(function(){y.sort(null)}),O=l("sort"),E=!s(function(){if(h)return h<70;if(!(f&&f>3)){if(p)return!0;if(v)return v<603;var t,e,n,r,o="";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(r=0;r<47;r++)y.push({k:e+r,v:n})}for(y.sort(function(t,e){return e.v-t.v}),r=0;r<y.length;r++)e=y[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}});e({target:"Array",proto:!0,forced:w||!x||!O||!E},{sort:function(t){void 0!==t&&r(t);var e=o(this);if(E)return void 0===t?m(e):m(e,t);var n,s,l=[],f=i(e);for(s=0;s<f;s++)s in e&&b(l,e[s]);for(c(l,function(t){return function(e,n){if(void 0===n)return-1;if(void 0===e)return 1;if(void 0!==t)return+t(e,n)||0;var r=u(e),o=u(n);return r===o?0:r>o?1:-1}}(t)),n=i(l),s=0;s<n;)e[s]=l[s++];for(;s<f;)a(e,s++);return e}})}),sn=n.cw(function(){var t=q(),e=Le(),n=Ne(),r=Te(),o=_t(),i=v(),a=K(),u=b(),s=M(),c=R(),l=p()("splice"),f=Math.max,d=Math.min;t({target:"Array",proto:!0,forced:!l},{splice:function(t,l){var p,h,v,y,g,m,b=e(this),w=o(b),x=n(t,w),O=arguments.length;for(0===O?p=h=0:1===O?(p=0,h=w-x):(p=O-2,h=d(f(r(l),0),w-x)),a(w+p-h),v=u(b,h),y=0;y<h;y++)(g=x+y)in b&&s(v,y,b[g]);if(i(v,h),p<h){for(y=x;y<w-h;y++)m=y+p,(g=y+h)in b?b[m]=b[g]:c(b,m);for(y=w;y>w-h+p;y--)c(b,y-1)}else if(p>h)for(y=w-h;y>x;y--)m=y+p-1,(g=y+h-1)in b?b[m]=b[g]:c(b,m);for(y=0;y<p;y++)b[y+x]=arguments[y+2];return i(b,w-h+p),v}})}),cn=n.cw(function(){var t=q(),e=W(),n=Le(),r=Be();t({target:"Date",proto:!0,forced:e(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=n(this),o=r(e,"number");return"number"!=typeof o||isFinite(o)?e.toISOString():null}})}),ln=n.cw(function(){var t=dt(),e=D(),n=j(),r=Ye()("toPrimitive"),o=Date.prototype;t(o,r)||e(o,r,n)}),fn=n.cw(function(){var t=L(),e=rt().EXISTS,n=at(),r=N(),o=Function.prototype,i=n(o.toString),a=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=n(a.exec);t&&!e&&r(o,"name",{configurable:!0,get:function(){try{return u(a,i(this))[1]}catch(t){return""}}})}),pn=n.cw(function(){var t=q(),e=ut(),n=nt(),r=at(),o=W(),i=Ot(),a=Et(),u=Ct(),s=Gt(),c=jt(),f=Dt(),p=O(),d=je(),h=l().m,v=dt(),y=Fe(),g=ue(),m=He(),b=Ce(),w=Ut(),x=String,E=TypeError,S=e("JSON","stringify"),k=e("BigInt"),P=r("".valueOf),I=r((!0).valueOf),C=k&&r(k.prototype.valueOf),A=r(/./.exec),M=r("".charAt),j=r("".charCodeAt),N=r("".replace),D=r("".slice),T=r([].push),R=r([].pop),L=r(1.1.toString),B=/[\uD800-\uDFFF]/g,K=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,F=/^\d+$/,U=m(),H=m(),$=m(),G=U.length,J=H.length,V=!b||o(function(){var t=e("Symbol")("stringify detection");return"[null]"!==S([t])||"{}"!==S({a:t})||"{}"!==S(Object(t))}),z=o(function(){return'"\\udf06\\ud834"'!==S("\udf06\ud834")||'"\\udead"'!==S("\udead")}),Y=w?e("JSON","isRawJSON"):c,X=V?function(t,e,r){return S(t,function(t,r){var o=n(e,this,t,r);if(!f(o))return o},r)}:S,Q=function(t,e,n){var r=M(n,e-1),o=M(n,e+1);return A(K,t)&&!A(_,o)||A(_,t)&&!A(K,r)?"\\u"+L(j(t,0),16):t},Z=function(t,e){try{return t(e),!0}catch(t){return!1}},tt=function(t){if(!u(t)||a(t)||i(t))return!1;try{return!function(t){var e=p(t);return"Number"===e&&Z(d,t)||"String"===e&&Z(P,t)||"Boolean"===e&&Z(I,t)||!!C&&"BigInt"===e&&Z(C,t)}(t)}catch(t){return!0}},et=function(t,e){return{toJSON:function(){var r=t[e];if(u(r)||"bigint"==typeof r){var o=r.toJSON;a(o)&&(r=n(o,r,e))}return r}}};S&&t({target:"JSON",stat:!0,arity:3,forced:V||z||!w},{stringify:function(t,e,r){var o,u=a(e)?e:void 0,c=u?void 0:function(t){if(i(t)){for(var e=t.length,n=[],r=s(null),o=0;o<e;o++){var a,u=t[o];if("string"==typeof u)a=u;else{if("number"!=typeof u&&"Number"!==p(u)&&"String"!==p(u))continue;a=y(u)}v(r,a)||(r[a]=!0,T(n,a))}return n}}(e),l=c&&function(t){for(var e=0,n=t.length;e<n;e++)if(A(F,t[e]))return H;return""}(c),f=[],d=[],m=[],b=!1,O=!0,S=X(t,function(t,e){if(t=x(t),c){if(t===$)return R(d),void(o=R(m));if(O)O=!1;else if(this!==o&&!i(this)&&!h(c,t))return}else u&&(e=n(u,this,t,e));if(Y(e))return w?e:(b=!0,U+(T(f,e.rawJSON)-1));if(c&&tt(e)){if(h(d,e))throw new E("Converting circular structure to JSON");var r=function(t,e,n){for(var r=s(null),o=0,i=e.length;o<i;o++){var a=e[o];r[n+a]=et(t,a)}return r[$]=null,r}(e,c,l);return T(d,e),T(m,o),o=r,l&&(b=!0),r}return e},r);if("string"!=typeof S)return S;if(z&&(S=N(S,B,Q)),!b)return S;for(var k="",P=S.length,I=0;I<P;I++){var C=M(S,I);if('"'===C){var j=g(S,++I).end-1,L=D(S,I,j);D(L,0,G)===U?k+=f[D(L,G)]:D(L,0,J)===H?k+='"'+D(L,J)+'"':k+='"'+L+'"',I=j}else k+=C}return k}})}),dn=n.cw(function(){var t=q(),e=Mt(),n=L(),r=pt(),o=se(),i=at(),a=kt(),u=dt(),s=mt(),c=Qt(),l=Dt(),f=Be(),p=W(),d=qt().f,h=zt().f,v=Vt().f,y=je(),g=Ie().Bq,m="Number",b=r[m],w=o[m],x=b.prototype,O=r.TypeError,E=i("".slice),S=i("".charCodeAt),k=function(t){var e,n,r,o,i,a,u,s,c=f(t,"number");if(l(c))throw new O("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=g(c),43===(e=S(c,0))||45===e){if(88===(n=S(c,2))||120===n)return NaN}else if(48===e){switch(S(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=E(c,2)).length,u=0;u<a;u++)if((s=S(i,u))<48||s>o)return NaN;return parseInt(i,r)}return+c},P=a(m,!b(" 0o1")||!b("0b1")||b("+0x1")),I=function(t){var e,n=arguments.length<1?0:b(function(t){var e=f(t,"number");return"bigint"==typeof e?e:k(e)}(t));return c(x,e=this)&&p(function(){y(e)})?s(Object(n),this,I):n};I.prototype=x,P&&!e&&(x.constructor=I),t({global:!0,constructor:!0,wrap:!0,forced:P},{Number:I});var C=function(t,e){for(var r,o=n?d(e):"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(","),i=0;o.length>i;i++)u(e,r=o[i])&&!u(t,r)&&v(t,r,h(e,r))};e&&w&&C(o[m],w),(P||e)&&C(o[m],b)}),hn=n.cw(function(){q()({target:"Number",stat:!0},{isInteger:Pt()})}),vn=n.cw(function(){var t=q(),e=$t();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}),yn=n.cw(function(){var e=q(),n=L(),r=ne(),o=t(),i=Le(),a=Vt();n&&e({target:"Object",proto:!0,forced:r},{__defineGetter__:function(t,e){a.f(i(this),t,{get:o(e),enumerable:!0,configurable:!0})}})}),gn=n.cw(function(){var t=q(),e=W(),n=De(),r=zt().f,o=L();t({target:"Object",stat:!0,forced:!o||e(function(){r(1)}),sham:!o},{getOwnPropertyDescriptor:function(t,e){return r(n(t),e)}})}),mn=n.cw(function(){var t=q(),e=L(),n=ae(),r=De(),o=zt(),i=M();t({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(t){for(var e,a,u=r(t),s=o.f,c=n(u),l={},f=0;c.length>f;)void 0!==(a=s(u,e=c[f++]))&&i(l,e,a);return l}})}),bn=n.cw(function(){var t=q(),e=W(),n=Yt().f;t({target:"Object",stat:!0,forced:e(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:n})}),wn=n.cw(function(){var t=q(),e=Ce(),n=W(),r=Wt(),o=Le();t({target:"Object",stat:!0,forced:!e||n(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(o(t)):[]}})}),xn=n.cw(function(){var t=q(),e=Le(),n=te();t({target:"Object",stat:!0,forced:W()(function(){n(1)})},{keys:function(t){return n(e(t))}})}),On=n.cw(function(){var t=_e(),e=D(),n=oe();t||e(Object.prototype,"toString",n,{unsafe:!0})}),En=n.cw(function(){var t=q(),n=ut(),r=Q(),o=et(),i=e(),a=u(),s=Ct(),c=Gt(),l=W(),f=n("Reflect","construct"),p=Object.prototype,d=[].push,h=l(function(){function t(){}return!(f(function(){},[],t)instanceof t)}),v=!l(function(){f(function(){})}),y=h||v;t({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){i(t);var n=arguments.length<3?t:i(arguments[2]);if(a(e),v&&!h)return f(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var u=[null];return r(d,u,e),new(r(o,t,u))}var l=n.prototype,y=c(s(l)?l:p),g=r(t,y,e);return s(g)?g:y}})}),Sn=n.cw(function(){var t=L(),e=pt(),n=at(),r=kt(),o=mt(),i=C(),a=Gt(),u=qt().f,s=Qt(),c=Nt(),l=Fe(),f=he(),p=ve(),d=ce(),h=D(),v=W(),y=dt(),g=wt().enforce,m=be(),b=Ye(),w=ye(),x=ge(),O=b("match"),E=e.RegExp,S=E.prototype,k=e.SyntaxError,P=n(S.exec),I=n("".charAt),A=n("".replace),M=n("".indexOf),j=n("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,T=/a/g,R=/a/g,B=new E(T)!==T,K=p.MISSED_STICKY,_=p.UNSUPPORTED_Y;if(r("RegExp",t&&(!B||K||w||x||v(function(){return R[O]=!1,E(T)!==T||E(R)===R||"/a/i"!==String(E(T,"i"))})))){for(var F=function(t,e){var n,r,u,p,d,h,v=s(S,this),m=c(t),b=void 0===e,O=[],C=t;if(!v&&m&&b&&t.constructor===F)return t;if((m||s(S,t))&&(t=t.source,b&&(e=f(C))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),C=t,w&&"dotAll"in T&&(r=!!e&&M(e,"s")>-1)&&(e=A(e,/s/g,"")),n=e,K&&"sticky"in T&&(u=!!e&&M(e,"y")>-1)&&_&&(e=A(e,/y/g,"")),x&&(p=function(t){for(var e,n=t.length,r=0,o="",i=[],u=a(null),s=!1,c=!1,l=0,f="";r<n;r++){if("\\"===(e=I(t,r))){if(e+=I(t,++r),!c&&"\\"===I(e,1)){o+="\\x5c";continue}}else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:o+=e,P(N,j(t,r+1))?(r+=2,c=!0,l++):"?"!==I(t,r+1)&&l++;continue;case">"===e&&c:if(""===f||y(u,f))throw new k("Invalid capture group name");u[f]=!0,i[i.length]=[f,l],c=!1,f="";continue}c?f+=e:o+=e}for(var p=0;p<i.length;p++)for(var d="\\k<"+i[p][0]+">",h="\\"+i[p][1];M(o,d)>-1;)o=A(o,d,h);return[o,i]}(t),t=p[0],O=p[1]),d=o(E(t,e),v?this:S,F),(r||u||O.length)&&(h=g(d),r&&(h.dotAll=!0,h.raw=F(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<n;r++)"\\"!==(e=I(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+I(t,++r);return o}(t),n)),u&&(h.sticky=!0),O.length&&(h.groups=O)),t!==C)try{i(d,"source",""===C?"(?:)":C)}catch(t){}return d},U=u(E),H=0;U.length>H;)d(F,E,U[H++]);S.constructor=F,F.prototype=S,h(e,"RegExp",F,{constructor:!0})}m("RegExp")}),kn=n.cw(function(){var t=q(),e=fe();t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})}),Pn=n.cw(function(){var t=rt().PROPER,e=D(),n=u(),r=Fe(),o=W(),i=he(),a="toString",s=RegExp.prototype,c=s[a],l=o(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),f=t&&c.name!==a;(l||f)&&e(s,a,function(){var t=n(this);return"/"+r(t.source)+"/"+r(i(t))},{unsafe:!0})}),In=n.cw(function(){var t=q(),e=at(),n=Ht(),r=me(),o=Fe(),i=k(),a=e("".indexOf);t({target:"String",proto:!0,forced:!i("includes")},{includes:function(t){return!!~a(o(r(this)),o(n(t)),arguments.length>1?arguments[1]:void 0)}})}),Cn=n.cw(function(){var t=ke().o,e=Fe(),n=wt(),r=Lt(),o=I(),i="String Iterator",a=n.set,u=n.getterFor(i);r(String,"String",function(t){a(this,{type:i,string:e(t),index:0})},function(){var e,n=u(this),r=n.string,i=n.index;return i>=r.length?o(void 0,!0):(e=t(r,i),n.index+=e.length,o(e,!1))})}),An=n.cw(function(){var t=q(),e=nt(),n=it(),r=Rt(),o=I(),i=me(),s=Re(),c=Fe(),l=u(),f=Ct(),p=O(),d=Nt(),h=he(),v=lt(),y=D(),g=W(),m=Ye(),b=Se(),w=a(),x=le(),E=wt(),S=Mt(),k=m("matchAll"),P="RegExp String",C=P+" Iterator",A=E.set,M=E.getterFor(C),j=RegExp.prototype,N=TypeError,T=n("".indexOf),R=n("".matchAll),L=!!R&&!g(function(){R("a",/./)}),B=r(function(t,e,n,r){A(this,{type:C,regexp:t,string:e,global:n,unicode:r,done:!1})},P,function(){var t=M(this);if(t.done)return o(void 0,!0);var e=t.regexp,n=t.string,r=x(e,n);return null===r?(t.done=!0,o(void 0,!0)):t.global?(""===c(r[0])&&(e.lastIndex=w(n,s(e.lastIndex),t.unicode)),o(r,!1)):(t.done=!0,o(r,!1))}),K=function(t){var e=l(this),n=c(t),r=b(e,RegExp),o=c(h(e)),i=new r(r===RegExp?e.source:e,o),a=!!~T(o,"g"),u=!!~T(o,"u")||!!~T(o,"v");return i.lastIndex=s(e.lastIndex),new B(i,n,a,u)};t({target:"String",proto:!0,forced:L},{matchAll:function(t){var n,r,o,a,u=i(this);if(f(t)){if(d(t)&&(n=c(i(h(t))),!~T(n,"g")))throw new N("`.matchAll` does not allow non-global regexes");if(L)return R(u,t);if(void 0===(o=v(t,k))&&S&&"RegExp"===p(t)&&(o=K),o)return e(o,t,u)}else if(L)return R(u,t);return r=c(u),a=new RegExp(t,"g"),S?e(K,a,r):a[k](r)}}),S||k in j||y(j,k,K)}),Mn=n.cw(function(){var t=nt(),e=at(),n=X(),r=u(),o=Ct(),i=Re(),s=Fe(),c=me(),l=lt(),f=a(),p=he(),d=le(),h=e("".indexOf);n("match",function(e,n,a){return[function(n){var r=c(this),i=o(n)?l(n,e):void 0;if(i)return t(i,n,r);var a=s(r);return new RegExp(n)[e](a)},function(t){var e=r(this),o=s(t),u=a(n,e,o);if(u.done)return u.value;var c=s(p(e));if(!~h(c,"g"))return d(e,o);var l=!!~h(c,"u")||!!~h(c,"v");e.lastIndex=0;for(var v,y=[],g=0;null!==(v=d(e,o));){var m=s(v[0]);y[g]=m,""===m&&(e.lastIndex=f(o,i(e.lastIndex),l)),g++}return 0===g?null:y}]})}),jn=n.cw(function(){var t=Q(),e=nt(),n=at(),r=X(),o=W(),i=u(),s=Et(),c=Ct(),l=Te(),f=Re(),p=Fe(),d=me(),h=a(),v=lt(),y=ft(),g=he(),m=le(),b=Ye()("replace"),w=Math.max,x=Math.min,O=n([].concat),E=n([].push),S=n("".indexOf),k=n("".slice),P=function(t){return void 0===t?t:String(t)},I="$0"==="a".replace(/./,"$0"),C=!!/./[b]&&""===/./[b]("a","$0");r("replace",function(n,r,o){var a=C?"$":"$0";return[function(t,n){var o=d(this),i=c(t)?v(t,b):void 0;return i?e(i,t,o,n):e(r,p(o),t,n)},function(e,n){var u=i(this),c=p(e),d=s(n);d||(n=p(n));var v=p(g(u));if("string"==typeof n&&!~S(n,a)&&!~S(n,"$<")&&!~S(v,"y")){var b=o(r,u,c,n);if(b.done)return b.value}var I,C=!!~S(v,"g");C&&(I=!!~S(v,"u")||!!~S(v,"v"),u.lastIndex=0);for(var A,M=[];null!==(A=m(u,c))&&(E(M,A),C);)""===p(A[0])&&(u.lastIndex=h(c,f(u.lastIndex),I));for(var j="",N=0,D=0;D<M.length;D++){for(var T,R=p((A=M[D])[0]),L=w(x(l(A.index),c.length),0),B=[],K=1;K<A.length;K++)E(B,P(A[K]));var _=A.groups;if(d){var F=O([R],B,L,c);void 0!==_&&E(F,_),T=p(t(n,void 0,F))}else T=y(R,c,L,B,_,n);L>=N&&(j+=k(c,N,L)+T,N=L+R.length)}return j+k(c,N)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!I||C)}),Nn=n.cw(function(){var t=nt(),e=at(),n=X(),r=u(),o=Ct(),i=me(),s=Se(),c=a(),l=Re(),f=Fe(),p=lt(),d=he(),h=le(),v=ve(),y=W(),g=v.UNSUPPORTED_Y,m=Math.min,b=e([].push),w=e("".slice),x=e("".indexOf),O=!y(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]}),E="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;n("split",function(e,n,a){var u="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t(n,this,e,r)}:n;return[function(n,r){var a=i(this),s=o(n)?p(n,e):void 0;return s?t(s,n,a,r):t(u,f(a),n,r)},function(t,e){var o=r(this),i=f(t);if(!E){var p=a(u,o,i,e,u!==n);if(p.done)return p.value}var v=s(o,RegExp),y=f(d(o)),O=!!~x(y,"u")||!!~x(y,"v");g?~x(y,"g")||(y+="g"):~x(y,"y")||(y+="y");var S=new v(g?"^(?:"+o.source+")":o,y),k=void 0===e?4294967295:e>>>0;if(0===k)return[];if(0===i.length)return null===h(S,i)?[i]:[];for(var P=0,I=0,C=[];I<i.length;){S.lastIndex=g?0:I;var A,M=h(S,g?w(i,I):i);if(null===M||(A=m(l(S.lastIndex+(g?I:0)),i.length))===P)I=c(i,I,O);else{if(b(C,w(i,P,I)),C.length===k)return C;for(var j=1;j<=M.length-1;j++)if(b(C,M[j]),C.length===k)return C;I=P=A}}return b(C,w(i,P)),C}]},E||!O,g)}),Dn=n.cw(function(){var t=q(),e=Ie().Bq;t({target:"String",proto:!0,forced:Pe()("trim")},{trim:function(){return e(this)}})}),Tn=n.cw(function(){var t=q(),e=pt(),n=nt(),r=at(),o=Mt(),i=L(),a=Ce(),s=W(),c=dt(),l=Qt(),p=u(),d=De(),h=Ke(),v=Fe(),y=A(),g=Gt(),m=te(),b=qt(),w=Yt(),x=Wt(),O=zt(),E=Vt(),S=Jt(),k=ee(),P=D(),I=N(),C=Ee(),M=xe(),j=ht(),T=He(),R=Ye(),B=ze(),K=Ve(),_=Ae(),F=we(),U=wt(),H=f().jJ,$=M("hidden"),G="Symbol",J="prototype",V=U.set,z=U.getterFor(G),Y=Object[J],X=e.Symbol,Q=X&&X[J],Z=e.RangeError,tt=e.TypeError,et=e.QObject,rt=O.f,ot=E.f,it=w.f,ut=k.f,st=r([].push),ct=C("symbols"),lt=C("op-symbols"),ft=C("wks"),vt=!et||!et[J]||!et[J].findChild,yt=function(t,e,n){var r=rt(Y,e);return r&&delete Y[e],ot(t,e,n),r&&t!==Y&&ot(Y,e,r),t},gt=i&&s(function(){return 7!==g(ot({},"a",{get:function(){return ot(this,"a",{value:7}).a}})).a})?yt:ot,mt=function(t,e){var n=ct[t]=g(Q);return V(n,{type:G,tag:t,description:e}),i||(n.description=e),n},bt=function(t,e,n){t===Y&&bt(lt,e,n),p(t);var r=h(e);return p(n),c(ct,r)?(("enumerable"in n?!n.enumerable:!c(t,r)||c(t,$)&&t[$][r])?(c(t,$)||ot(t,$,y(1,g(null))),t[$][r]=!0):(c(t,$)&&t[$][r]&&(t[$][r]=!1),n=g(n,{enumerable:y(0,!1)})),gt(t,r,n)):ot(t,r,n)},xt=function(t,e){p(t);var r=d(e),o=m(r).concat(kt(r));return H(o,function(e){i&&!n(Ot,r,e)||bt(t,e,r[e])}),t},Ot=function(t){var e=h(t),r=n(ut,this,e);return!(this===Y&&c(ct,e)&&!c(lt,e))&&(!(r||!c(this,e)||!c(ct,e)||c(this,$)&&this[$][e])||r)},Et=function(t,e){var n=d(t),r=h(e);if(n!==Y||!c(ct,r)||c(lt,r)){var o=rt(n,r);return!o||!c(ct,r)||c(n,$)&&n[$][r]||(o.enumerable=!0),o}},St=function(t){var e=it(d(t)),n=[];return H(e,function(t){c(ct,t)||c(j,t)||st(n,t)}),n},kt=function(t){var e=t===Y,n=it(e?lt:d(t)),r=[];return H(n,function(t){!c(ct,t)||e&&!c(Y,t)||st(r,ct[t])}),r};a||(X=function(){if(l(Q,this))throw new tt("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,r=T(t),o=function(t){var i=void 0===this?e:this;i===Y&&n(o,lt,t),c(i,$)&&c(i[$],r)&&(i[$][r]=!1);var a=y(1,t);try{gt(i,r,a)}catch(t){if(!(t instanceof Z))throw t;yt(i,r,a)}};return i&&vt&&gt(Y,r,{configurable:!0,set:o}),mt(r,t)},P(Q=X[J],"toString",function(){return z(this).tag}),P(X,"withoutSetter",function(t){return mt(T(t),t)}),k.f=Ot,E.f=bt,S.f=xt,O.f=Et,b.f=w.f=St,x.f=kt,B.f=function(t){return mt(R(t),t)},i&&(I(Q,"description",{configurable:!0,get:function(){return z(this).description}}),o||P(Y,"propertyIsEnumerable",Ot,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:X}),H(m(ft),function(t){K(t)}),t({target:G,stat:!0,forced:!a},{useSetter:function(){vt=!0},useSimple:function(){vt=!1}}),t({target:"Object",stat:!0,forced:!a,sham:!i},{create:function(t,e){return void 0===e?g(t):xt(g(t),e)},defineProperty:bt,defineProperties:xt,getOwnPropertyDescriptor:Et}),t({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:St}),_(),F(X,G),j[$]=!0}),Rn=n.cw(function(){var t=q(),e=L(),n=pt(),r=nt(),o=at(),i=dt(),a=Et(),u=Qt(),s=Fe(),c=N(),l=S(),f=n.Symbol,p=f&&f.prototype;if(e&&a(f)&&(!("description"in p)||void 0!==f().description)){var d={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=u(p,this)?new f(t):void 0===t?f():f(t);return""===t&&(d[e]=!0),e};l(h,f);var v=h.for;h.for={for:function(t){var e=s(t),n=r(v,this,e);return""===e&&(d[n]=!0),n}}.for,h.prototype=p,p.constructor=h;var y="Symbol(description detection)"===String(f("description detection")),g=o(p.valueOf),m=o(p.toString),b=/^Symbol\((.*)\)[^)]+$/,w=o("".replace),x=o("".slice);c(p,"description",{configurable:!0,get:function(){var t=g(this);if(i(d,t))return"";var e=m(t),n=y?x(e,7,-1):w(e,b,"$1");return""===n?void 0:n}}),t({global:!0,constructor:!0,forced:!0},{Symbol:h})}}),Ln=n.cw(function(){var t=q(),e=ut(),n=dt(),r=Fe(),o=Ee(),i=Me(),a=o("string-to-symbol-registry"),u=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{for:function(t){var o=r(t);if(n(a,o))return a[o];var i=e("Symbol")(o);return a[o]=i,u[i]=o,i}})}),Bn=n.cw(function(){Ve()("iterator")}),Kn=n.cw(function(){Tn(),Ln(),_n(),pn(),wn()}),_n=n.cw(function(){var t=q(),e=dt(),n=Dt(),r=Ue(),o=Ee(),i=Me(),a=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!i},{keyFor:function(t){if(!n(t))throw new TypeError(r(t)+" is not a symbol");if(e(a,t))return a[t]}})}),Fn=n.cw(function(){var t=Ve(),e=Ae();t("toPrimitive"),e()}),Un=n.cw(function(){An()}),Hn=n.cw(function(){var t=pt(),e=_(),n=F(),r=s(),o=C(),i=function(t){if(t&&t.forEach!==r)try{o(t,"forEach",r)}catch(e){t.forEach=r}};for(var a in e)e[a]&&i(t[a]&&t[a].prototype);i(n)}),$n=n.cw(function(){var t=pt(),e=_(),n=F(),r=en(),o=C(),i=we(),a=Ye()("iterator"),u=r.values,s=function(t,n){if(t){if(t[a]!==u)try{o(t,a,u)}catch(e){t[a]=u}if(i(t,n,!0),e[n])for(var s in r)if(t[s]!==r[s])try{o(t,s,r[s])}catch(e){t[s]=r[s]}}};for(var c in e)s(t[c]&&t[c].prototype,c);s(n,"DOMTokenList")});function Gn(t){return function(t){if(Array.isArray(t))return Vn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Jn(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 Jn(t,e){if(t){if("string"==typeof t)return Vn(t,e);var n={}.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)?Vn(t,e):void 0}}function Vn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function zn(t){return zn="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},zn(t)}function Yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wn(r.key),r)}}function qn(t,e,n){return(e=Wn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wn(t){var e=function(t,e){if("object"!=zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zn(e)?e:e+""}tn(),nn(),an(),sn(),fn(),yn(),On(),kn(),Pn(),jn(),Nn(),Dn(),"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="prototype",r=t.Element[n],o=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},u=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},s=function(t,e){if(""===e)throw new u("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new u("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=c[n]=[],f=function(){return new c(this)};if(u[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return~s(this,t+"")},l.add=function(){var t,e=arguments,n=0,r=e.length,o=!1;do{~s(this,t=e[n]+"")||(this.push(t),o=!0)}while(++n<r);o&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(e=s(this,t=n[r]+"");~e;)this.splice(e,1),i=!0,e=s(this,t)}while(++r<o);i&&this._updateClassName()},l.toggle=function(t,e){var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},l.replace=function(t,e){var n=s(t+"");~n&&(this.splice(n,1,e),this._updateClassName())},l.toString=function(){return this.join(" ")},o.defineProperty){var p={get:f,enumerable:!0,configurable:!0};try{o.defineProperty(r,e,p)}catch(t){void 0!==t.number&&-2146823252!==t.number||(p.enumerable=!1,o.defineProperty(r,e,p))}}else o[n].__defineGetter__&&r.__defineGetter__(e,f)}}(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,r=arguments.length;for(n=0;n<r;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(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),t=null}()),Kn(),Rn(),Bn(),Fn(),We(),Xe(),Qe(),Ze(),en(),rn(),un(),cn(),ln(),dn(),vn(),gn(),mn(),xn(),Sn(),In(),Cn(),Un(),Hn(),$n(),on(),hn(),bn(),En(),Mn();var Xn=function(){return t=function t(e){var n=e.getOptions,r=e.getCaretPosition,o=e.getCaretPositionEnd,i=e.dispatch;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qn(this,"getOptions",void 0),qn(this,"getCaretPosition",void 0),qn(this,"getCaretPositionEnd",void 0),qn(this,"dispatch",void 0),qn(this,"maxLengthReached",void 0),qn(this,"isStandardButton",function(t){return t&&!("{"===t[0]&&"}"===t[t.length-1])}),this.getOptions=n,this.getCaretPosition=r,this.getCaretPositionEnd=o,this.dispatch=i,t.bindMethods(t,this)},e=[{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("}",""),r="";return"standardBtn"!==e&&(r=" hg-button-".concat(n)),"hg-".concat(e).concat(r)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{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){return(e=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),e):e||this.getDefaultDiplay())[t]||t}},{key:"getUpdatedInput",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this.getOptions(),a=[n,r,o],u=e;return("{bksp}"===t||"{backspace}"===t)&&u.length>0?u=this.removeAt.apply(this,[u].concat(a)):("{delete}"===t||"{forwarddelete}"===t)&&u.length>0?u=this.removeForwardsAt.apply(this,[u].concat(a)):"{space}"===t?u=this.addStringAt.apply(this,[u," "].concat(a)):"{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]))?u=this.addStringAt.apply(this,[u,t[t.length-2]].concat(a)):"{numpaddivide}"===t?u=this.addStringAt.apply(this,[u,"/"].concat(a)):"{numpadmultiply}"===t?u=this.addStringAt.apply(this,[u,"*"].concat(a)):"{numpadsubtract}"===t?u=this.addStringAt.apply(this,[u,"-"].concat(a)):"{numpadadd}"===t?u=this.addStringAt.apply(this,[u,"+"].concat(a)):"{numpaddecimal}"===t?u=this.addStringAt.apply(this,[u,"."].concat(a)):"{"===t||"}"===t?u=this.addStringAt.apply(this,[u,t].concat(a)):t.includes("{")||t.includes("}")||(u=this.addStringAt.apply(this,[u,t].concat(a))):u=this.addStringAt.apply(this,[u,"\n"].concat(a)):u=this.addStringAt.apply(this,[u,"\t"].concat(a)),i.debug&&console.log("Input will be: "+u),u}},{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(),r=this.getCaretPosition();return null!=r&&(e?r>0&&(r-=t):r+=t),n.debug&&console.log("Caret at:",r),r}},{key:"addStringAt",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return r||0===r?(n=[t.slice(0,r),e,t.slice(o)].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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===r)return t;if(n===r){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),o&&this.updateCaretPos(2,!0)):(e=t.substr(0,n-1)+t.substr(n),o&&this.updateCaretPos(1,!0)):t.slice(-2).match(i)?(e=t.slice(0,-2),o&&this.updateCaretPos(2,!0)):(e=t.slice(0,-1),o&&this.updateCaretPos(1,!0))}else e=t.slice(0,n)+t.slice(r),o&&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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null!=t&&t.length&&null!==n?(n===r?e=t.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?t.substr(0,n)+t.substr(n+2):t.substr(0,n)+t.substr(n+1):(e=t.slice(0,n)+t.slice(r),o&&this.dispatch(function(t){t.setCaretPosition(n)})),e):t}},{key:"handleMaxLength",value:function(t,e){var n=this.getOptions(),r=n.maxLength,o=t[n.inputName||"default"],i=e.length-1>=r;if(e.length<=o.length)return!1;if(Number.isInteger(r))return n.debug&&console.log("maxLength (num) reached:",i),i?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if("object"===zn(r)){var a=e.length-1>=r[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(t,e){return Gn(Array(Math.ceil(t.length/e))).map(function(n,r){return t.slice(e*r,e+e*r)})}},{key:"escapeRegex",value:function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(t,e){var n=t,r=e.indexOf("‫");return r<t&&-1!=r&&n--,e.indexOf("‬")<t&&-1!=r&&n--,n<0?0:n}},{key:"isConstructor",value:function(t){try{Reflect.construct(String,[],t)}catch(t){return!1}return!0}}],n=[{key:"bindMethods",value:function(t,e){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Jn(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(Object.getOwnPropertyNames(t.prototype));try{for(r.s();!(n=r.n()).done;){var o=n.value;"constructor"===o||"bindMethods"===o||(e[o]=e[o].bind(e))}}catch(t){r.e(t)}finally{r.f()}}}],e&&Yn(t.prototype,e),n&&Yn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();qn(Xn,"noop",function(){});var Qn=Xn;function Zn(t){return Zn="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},Zn(t)}function tr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nr(r.key),r)}}function er(t,e,n){return(e=nr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nr(t){var e=function(t,e){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zn(e)?e:e+""}var rr=function(){return t=function t(e){var n=this,r=e.dispatch,o=e.getOptions;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),er(this,"getOptions",void 0),er(this,"dispatch",void 0),er(this,"isModifierKey",function(t){return t.altKey||t.ctrlKey||t.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.code||t.key||n.keyCodeToKey(null==t?void 0:t.keyCode))}),this.dispatch=r,this.getOptions=o,Qn.bindMethods(t,this)},e=[{key:"handleHighlightKeyDown",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch(function(r){var o,i,a=r.getButtonElement(n),u=r.getButtonElement("{".concat(n,"}"));if(a)o=a,i=n;else{if(!u)return;o=u,i="{".concat(n,"}")}var s,c,l,f,p=function(t){t.style.background=e.physicalKeyboardHighlightBgColor||"#dadce4",t.style.color=e.physicalKeyboardHighlightTextColor||"black"};if(o)if(Array.isArray(o)){if(o.forEach(function(t){return p(t)}),e.physicalKeyboardHighlightPress)if(e.physicalKeyboardHighlightPressUsePointerEvents)null===(s=o[0])||void 0===s||null===(c=s.onpointerdown)||void 0===c||c.call(s,t);else if(e.physicalKeyboardHighlightPressUseClick){var d;null===(d=o[0])||void 0===d||d.click()}else r.handleButtonClicked(i,t)}else p(o),e.physicalKeyboardHighlightPress&&(e.physicalKeyboardHighlightPressUsePointerEvents?null===(l=o)||void 0===l||null===(f=l.onpointerdown)||void 0===f||f.call(l,t):e.physicalKeyboardHighlightPressUseClick?o.click():r.handleButtonClicked(i,t))})}},{key:"handleHighlightKeyUp",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch(function(r){var o,i,a,u=r.getButtonElement(n)||r.getButtonElement("{".concat(n,"}")),s=function(t){t.removeAttribute&&t.removeAttribute("style")};u&&(Array.isArray(u)?(u.forEach(function(t){return s(t)}),e.physicalKeyboardHighlightPressUsePointerEvents&&(null===(o=u[0])||void 0===o||null===(i=o.onpointerup)||void 0===i||i.call(o,t))):(s(u),e.physicalKeyboardHighlightPressUsePointerEvents&&(null==u||null===(a=u.onpointerup)||void 0===a||a.call(u,t))))})}},{key:"getSimpleKeyboardLayoutKey",value:function(t){var e,n="",r=t.code||t.key||this.keyCodeToKey(null==t?void 0:t.keyCode);return(n=null!=r&&r.includes("Numpad")||null!=r&&r.includes("Shift")||null!=r&&r.includes("Space")||null!=r&&r.includes("Backspace")||null!=r&&r.includes("Control")||null!=r&&r.includes("Alt")||null!=r&&r.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]||""}}],e&&tr(t.prototype,e),n&&tr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function or(t){return or="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},or(t)}function ir(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ur(r.key),r)}}function ar(t,e,n){return(e=ur(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ur(t){var e=function(t,e){if("object"!=or(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==or(e)?e:e+""}var sr=function(){return t=function t(e){var n=e.utilities,r=e.options;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ar(this,"utilities",void 0),ar(this,"options",void 0),ar(this,"candidateBoxElement",void 0),ar(this,"pageIndex",0),ar(this,"pageSize",void 0),this.utilities=n,this.options=r,Qn.bindMethods(t,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},e=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(t){var e=this,n=t.candidateValue,r=t.targetElement,o=t.onSelect;if(n&&n.length){var i=this.utilities.chunkArray(n.split(" "),this.pageSize);this.renderPage({candidateListPages:i,targetElement:r,pageIndex:this.pageIndex,nbPages:i.length,onItemSelected:function(t,n){o(t,n),e.destroy()}})}}},{key:"renderPage",value:function(t){var e,n=this,r=t.candidateListPages,o=t.targetElement,i=t.pageIndex,a=t.nbPages,u=t.onItemSelected;null===(e=this.candidateBoxElement)||void 0===e||e.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var s=document.createElement("ul");s.className="hg-candidate-box-list",r[i].forEach(function(t){var e,r=document.createElement("li"),o=function(){var t=new(n.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(t,"target",{value:r}),t};r.className="hg-candidate-box-list-item",r.innerHTML=(null===(e=n.options.display)||void 0===e?void 0:e[t])||t,n.options.useTouchEvents?r.ontouchstart=function(e){return u(t,e||o())}:r.onclick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o();return u(t,e)},s.appendChild(r)});var c=i>0,l=document.createElement("div");l.classList.add("hg-candidate-box-prev"),c&&l.classList.add("hg-candidate-box-btn-active");var f=function(){c&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i-1,nbPages:a,onItemSelected:u})};this.options.useTouchEvents?l.ontouchstart=f:l.onclick=f,this.candidateBoxElement.appendChild(l),this.candidateBoxElement.appendChild(s);var p=i<a-1,d=document.createElement("div");d.classList.add("hg-candidate-box-next"),p&&d.classList.add("hg-candidate-box-btn-active");var h=function(){p&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i+1,nbPages:a,onItemSelected:u})};this.options.useTouchEvents?d.ontouchstart=h:d.onclick=h,this.candidateBoxElement.appendChild(d),o.prepend(this.candidateBoxElement)}}],e&&ir(t.prototype,e),n&&ir(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),cr=sr;function lr(t){return function(t){if(Array.isArray(t))return fr(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 fr(t,e);var n={}.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)?fr(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 fr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function pr(t){return pr="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},pr(t)}function dr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function hr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yr(r.key),r)}}function vr(t,e,n){return(e=yr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yr(t){var e=function(t,e){if("object"!=pr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pr(e)?e:e+""}var gr=function(){return t=function t(e,n){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),vr(this,"input",void 0),vr(this,"options",void 0),vr(this,"utilities",void 0),vr(this,"caretPosition",void 0),vr(this,"caretPositionEnd",void 0),vr(this,"keyboardDOM",void 0),vr(this,"keyboardPluginClasses",void 0),vr(this,"keyboardDOMClass",void 0),vr(this,"buttonElements",void 0),vr(this,"currentInstanceName",void 0),vr(this,"allKeyboardInstances",void 0),vr(this,"keyboardInstanceNames",void 0),vr(this,"isFirstKeyboardInstance",void 0),vr(this,"physicalKeyboard",void 0),vr(this,"modules",void 0),vr(this,"activeButtonClass",void 0),vr(this,"holdInteractionTimeout",void 0),vr(this,"holdTimeout",void 0),vr(this,"isMouseHold",void 0),vr(this,"initialized",void 0),vr(this,"candidateBox",void 0),vr(this,"keyboardRowsDOM",void 0),vr(this,"defaultName","default"),vr(this,"activeInputElement",null),vr(this,"handleParams",function(t,e){var n,r,o;if("string"==typeof t)n=t.split(".").join(""),r=document.querySelector(".".concat(n)),o=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],r=t,o=e}else n="simple-keyboard",r=document.querySelector(".".concat(n)),o=t;return{keyboardDOMClass:n,keyboardDOM:r,options:o}}),vr(this,"getOptions",function(){return r.options}),vr(this,"getCaretPosition",function(){return r.caretPosition}),vr(this,"getCaretPositionEnd",function(){return r.caretPositionEnd}),vr(this,"registerModule",function(t,e){r.modules[t]||(r.modules[t]={}),e(r.modules[t])}),vr(this,"getKeyboardClassString",function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return[r.keyboardDOMClass].concat(e).filter(function(t){return!!t}).join(" ")}),"undefined"!=typeof window){var o=this.handleParams(e,n),i=o.keyboardDOMClass,a=o.keyboardDOM,u=o.options,s=void 0===u?{}:u;this.utilities=new Qn({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=a,this.options=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dr(Object(n),!0).forEach(function(e){vr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dr(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:{}},s),this.keyboardPluginClasses="",Qn.bindMethods(t,this);var c=this.options.inputName,l=void 0===c?this.defaultName:c;if(this.input={},this.input[l]="",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 rr({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new cr({utilities:this.utilities,options:this.options}):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()}},e=[{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,r=n.layoutCandidates,o=n.layoutCandidatesCaseSensitiveMatch;if(!r||"object"!==pr(r))return{};var i=Object.keys(r).filter(function(n){var r=t.substring(0,e.getCaretPositionEnd()||0)||t,i=new RegExp("".concat(e.utilities.escapeRegex(n),"$"),o?"g":"gi");return!!lr(r.matchAll(i)).length});if(i.length>1){var a=i.sort(function(t,e){return e.length-t.length})[0];return{candidateKey:a,candidateValue:r[a]}}if(i.length){var u=i[0];return{candidateKey:u,candidateValue:r[u]}}return{}}},{key:"showCandidatesBox",value:function(t,e,n){var r=this;this.candidateBox&&this.candidateBox.show({candidateValue:e,targetElement:n,onSelect:function(e,n){var o=r.options,i=o.layoutCandidatesCaseSensitiveMatch,a=o.disableCandidateNormalization,u=o.enableLayoutCandidatesKeyPress,s=e;a||(s=e.normalize("NFD")),"function"==typeof r.options.beforeInputUpdate&&r.options.beforeInputUpdate(r);var c=r.getInput(r.options.inputName,!0),l=r.getCaretPositionEnd()||0,f=c.substring(0,l||0)||c,p=new RegExp("".concat(r.utilities.escapeRegex(t),"$"),i?"g":"gi"),d=f.replace(p,s),h=c.replace(f,d),v=d.length-f.length,y=(l||c.length)+v;y<0&&(y=0),r.setInput(h,r.options.inputName,!0),r.setCaretPosition(y),u&&"function"==typeof r.options.onKeyPress&&r.options.onKeyPress(e,n),"function"==typeof r.options.onChange&&r.options.onChange(r.getInput(r.options.inputName,!0),n),"function"==typeof r.options.onChangeAll&&r.options.onChangeAll(r.getAllInputs(),n)}})}},{key:"handleButtonClicked",value:function(t,e){var n=this.options,r=n.inputName,o=void 0===r?this.defaultName:r,i=n.debug;if("{//}"!==t){this.input[o]||(this.input[o]=""),"function"==typeof this.options.beforeInputUpdate&&this.options.beforeInputUpdate(this);var a=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(t)&&this.activeInputElement&&this.input[o]&&this.input[o]===a&&0===this.caretPosition&&this.caretPositionEnd===a.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[o]!==a&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(a))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,a))return;var u=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(u,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,")"),null==e?void 0:e.type),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 s,c=this.getInputCandidates(a),l=c.candidateKey,f=c.candidateValue;l&&f?this.showCandidatesBox(l,f,this.keyboardDOM):null===(s=this.candidateBox)||void 0===s||s.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),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,e)}},{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];return this.options.syncInstanceInputs&&!e&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[t].replace("‫","").replace("‬","")+"‬":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 cr({utilities:this.utilities,options:this.options}))}},{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(r){e.split(" ").forEach(function(e){n.options.buttonTheme||(n.options.buttonTheme=[]);var o=!1;n.options.buttonTheme.map(function(t){if(null!=t&&t.class.split(" ").includes(e)){o=!0;var n=t.buttons.split(" ");n.includes(r)||(o=!0,n.push(r),t.buttons=n.join(" "))}return t}),o||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 r;null===(r=n.options)||void 0===r||null===(r=r.buttonTheme)||void 0===r||r.map(function(r,o){if(r&&e&&e.includes(r.class)||!e){var i,a,u=null===(i=r)||void 0===i?void 0:i.buttons.split(" ").filter(function(e){return e!==t});r&&null!=u&&u.length?r.buttons=u.join(" "):(null===(a=n.options.buttonTheme)||void 0===a||a.splice(o,1),r=null)}return r})}),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 r=e.test(t);return this.options.debug&&console.log('inputPattern ("'.concat(e,'"): ').concat(r?"passed":"did not pass!")),r}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.addEventListener("keyup",this.handleKeyUp,e),document.addEventListener("keydown",this.handleKeyDown,e),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{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){navigator.userAgent.includes("Firefox")||this.caretEventHandler(t)}},{key:"caretEventHandler",value:function(t){var e,n=this;t.target.tagName&&(e=t.target.tagName.toLowerCase()),this.dispatch(function(r){var o=t.target===r.keyboardDOM||t.target&&r.keyboardDOM.contains(t.target);if(n.options.syncInstanceInputs){var i="function"==typeof t.composedPath?t.composedPath():t.path;Array.isArray(i)&&(o=i.some(function(t){var e;return null==t||null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-skInstance")}))}if(("textarea"===e||"input"===e&&["text","search","url","tel","password"].includes(t.target.type))&&!r.options.disableCaretPositioning){var a=t.target.selectionStart,u=t.target.selectionEnd;r.options.rtl&&(a=r.utilities.getRtlOffset(a,r.getInput()),u=r.utilities.getRtlOffset(u,r.getInput())),r.setCaretPosition(a,u),r.activeInputElement=t.target,r.options.debug&&console.log("Caret at: ",r.getCaretPosition(),r.getCaretPositionEnd(),t&&t.target.tagName.toLowerCase(),"(".concat(r.keyboardDOMClass,")"),null==t?void 0:t.type)}else!r.options.disableCaretPositioning&&o||"selectionchange"===(null==t?void 0:t.type)||(r.setCaretPosition(null),r.activeInputElement=null,r.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));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.removeEventListener("keyup",this.handleKeyUp,e),document.removeEventListener("keydown",this.handleKeyDown,e),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&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 r=e.class.split(" ");e.buttons.split(" ").includes(t)&&(n=[].concat(lr(n),lr(r)))}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):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){var e;if(null!==(e=t.target.classList)&&void 0!==e&&e.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=t.utilities.isConstructor(e)?new e(t):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,r){var o=this,i=Array.from(t.children),a=0;return i.length&&n.forEach(function(n,u){var s=r[u];if(!(s&&s>n))return!1;var c=n-a,l=s-a,f=document.createElement("div");f.className+="hg-button-container";var p="".concat(o.options.layoutName,"-r").concat(e,"c").concat(u);f.setAttribute("data-skUID",p);var d=i.splice(c,l-c+1);a+=l-c,d.forEach(function(t){return f.appendChild(t)}),i.splice(c,0,f),t.innerHTML="",i.forEach(function(e){return t.appendChild(e)}),o.options.debug&&console.log("rowDOMContainer",d,c,l,a+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}"]},r=this.options.useTouchEvents||!1,o=r?"hg-touch-events":"",i=this.options.useMouseEvents||!1,a=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,e,this.keyboardPluginClasses,o),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 o=e.split(" ");t.options.excludeFromLayout&&t.options.excludeFromLayout[t.options.layoutName||t.defaultName]&&(o=o.filter(function(e){return t.options.excludeFromLayout&&!t.options.excludeFromLayout[t.options.layoutName||t.defaultName].includes(e)}));var u=document.createElement("div");u.className+="hg-row";var s=[],c=[];o.forEach(function(e,o){var l,f=!a&&"string"==typeof e&&e.length>1&&0===e.indexOf("["),p=!a&&"string"==typeof e&&e.length>1&&e.indexOf("]")===e.length-1;f&&(s.push(o),e=e.replace(/\[/g,"")),p&&(c.push(o),e=e.replace(/\]/g,""));var d=t.utilities.getButtonClass(e),h=t.utilities.getButtonDisplayName(e,t.options.display,t.options.mergeDisplay),v=t.options.useButtonTag?"button":"div",y=document.createElement(v);y.className+="hg-button ".concat(d),(l=y.classList).add.apply(l,lr(t.getButtonThemeClasses(e))),t.setDOMButtonAttributes(e,function(t,e){y.setAttribute(t,e)}),t.activeButtonClass="hg-activeButton",!t.utilities.pointerEventsSupported()||r||i?r?(y.ontouchstart=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.ontouchend=function(n){t.handleButtonMouseUp(e,n)},y.ontouchcancel=function(n){t.handleButtonMouseUp(e,n)}):(y.onclick=function(n){t.setMouseHold(!1),"function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown||t.handleButtonClicked(e,n)},y.onmousedown=function(n){("function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown)&&!t.isMouseHold&&t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.onmouseup=function(n){t.handleButtonMouseUp(e,n)}):(y.onpointerdown=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.onpointerup=function(n){t.handleButtonMouseUp(e,n)},y.onpointercancel=function(n){t.handleButtonMouseUp(e,n)}),y.setAttribute("data-skBtn",e);var g="".concat(t.options.layoutName,"-r").concat(n,"b").concat(o);y.setAttribute("data-skBtnUID",g);var m=document.createElement("span");m.innerHTML=h,y.appendChild(m),t.buttonElements[e]||(t.buttonElements[e]=[]),t.buttonElements[e].push(y),u.appendChild(y)}),u=t.parseRowDOMContainers(u,n,s,c),t.keyboardRowsDOM.appendChild(u)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||r||i?r?(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)}):r||(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())}}],e&&hr(t.prototype,e),n&&hr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),mr=gr,br=gr}(),r}()},442:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.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";r.r(o),r.d(o,{KeyboardReact:function(){return l},default:function(){return f}});r(981);var t=r(442),e=r(548),n=r.n(e);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},i(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(t){return u(u({},t),{},{keyboardRef:null})},l=function(e){var r=e.baseClass||"react-simple-keyboard",o=t.useRef(null),i=t.useRef(null),a=t.useRef(null),s=t.useRef(e);return t.useEffect(function(){return function(){a.current&&a.current.destroy(),o.current=!1}},[]),t.useEffect(function(){var t=function(t){return u(u({},t),{},{theme:"simple-keyboard ".concat(t.theme||"hg-theme-default")})}(e);if(!o.current){o.current=!0,t.debug&&console.log("ReactSimpleKeyboard: Init");var l=i.current,f=".".concat(r);a.current=new(n())(l||f,t),t.keyboardRef&&t.keyboardRef(a.current)}var p=function(t,e){var n=c(e),r=c(t);return Object.keys(n).filter(function(t){return n[t]!==r[t]})}(s.current,t);if(p.length){var d=a.current;s.current=t,null==d||d.setOptions(t),t.debug&&console.log("ReactSimpleKeyboard - setOptions called due to updated props:",p)}},[o,r,s,e]),t.createElement("div",{className:r,ref:i})},f=l}(),o}()});