!function(t,e){"object"===typeofexports&&"object"===typeofmodule?module.exports=e():"function"===typeofdefine&&define.amd?define([],e):"object"===typeofexports?exports.SimpleKeyboard=e():t.SimpleKeyboard=e()}(this,function(){returnfunction(t){functione(i){if(n[i])returnn[i].exports;varo=n[i]={i:i,l:!1,exports:{}};returnt[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}varn={};returne.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){varn=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(n,"a",n),n},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});vari=n(2);e.default=i.a},function(t,e,n){"use strict";functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}varo=n(3),s=(n.n(o),n(4)),a=n(5),u=n(6),r="function"===typeofSymbol&&"symbol"===typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"===typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},h=function(){functiont(t,e){for(varn=0;n<e.length;n++){vari=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}returnfunction(e,n,i){returnn&&t(e.prototype,n),i&&t(e,i),e}}(),l=function(){functiont(){vare=this;i(this,t),this.setOptions=function(t){t=t||{},e.options=Object.assign(e.options,t),e.render()},this.registerModule=function(t,n){e.modules[t]||(e.modules[t]={}),n(e.modules[t])},this.getModuleProp=function(t,n){return!!e.modules[t]&&e.modules[t][n]},this.getModulesList=function(){returnObject.keys(e.modules)};varn="string"===typeof(arguments.length<=0?void0:arguments[0])?arguments.length<=0?void0:arguments[0]:".simple-keyboard",o="object"===r(arguments.length<=0?void0:arguments[0])?arguments.length<=0?void0:arguments[0]:arguments.length<=1?void0:arguments[1];if(o||(o={}),this.utilities=newu.a(this),this.keyboardDOM=document.querySelector(n),this.options=o,this.options.layoutName=this.options.layoutName||"default",this.options.theme=this.options.theme||"hg-theme-default",this.options.inputName=this.options.inputName||"default",this.keyboardPluginClasses="",this.handleButtonClicked=this.handleButtonClicked.bind(this),this.syncInstanceInputs=this.syncInstanceInputs.bind(this),this.clearInput=this.clearInput.bind(this),this.getInput=this.getInput.bind(this),this.setInput=this.setInput.bind(this),this.replaceInput=this.replaceInput.bind(this),this.clear=this.clear.bind(this),this.dispatch=this.dispatch.bind(this),this.addButtonTheme=this.addButtonTheme.bind(this),this.removeButtonTheme=this.removeButtonTheme.bind(this),this.getButtonElement=this.getButtonElement.bind(this),this.handleCaret=this.handleCaret.bind(this),this.caretEventHandler=this.caretEventHandler.bind(this),this.onInit=this.onInit.bind(this),this.onRender=this.onRender.bind(this),this.render=this.render.bind(this),this.loadModules=this.loadModules.bind(this),this.handleButtonMouseUp=this.handleButtonMouseUp.bind(this),this.handleButtonMouseDown=this.handleButtonMouseDown.bind(this),this.handleButtonHold=this.handleButtonHold.bind(this),this.onModulesLoaded=this.onModulesLoaded.bind(this),this.input={},this.input[this.options.inputName]="",this.keyboardDOMClass=n.split(".").join(""),this.buttonElements={},!this.keyboardDOM)throwconsole.warn('"'+n+'" was not found in the DOM.'),newError("KEYBOARD_DOM_ERROR");this.render(),window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),window.SimpleKeyboardInstances[this.utilities.camelCase(this.keyboardDOMClass)]=this,this.physicalKeyboardInterface=news.a(this),this.modules={},this.loadModules()}returnh(t,[{key:"handleButtonClicked",value:function(t){vare=this.options.debug;if("{//}"===t)return!1;"function"===typeofthis.options.onKeyPress&&this.options.onKeyPress(t),this.input[this.options.inputName]||(this.input[this.options.inpu