vara;a=function(){returna={},i.m=n=[function(e,t){e.exports=function(e){vart,n,a,i="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),n=window.getSelection(),(a=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(a),n.toString());returni}},function(e,t){functionn(){}n.prototype={on:function(e,t,n){vara=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){vara=this;functioni(){a.off(e,i),t.apply(n,arguments)}returni._=t,this.on(e,i,n)},emit:function(e){for(vart=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),a=0,i=n.length;a<i;a++)n[a].fn.apply(n[a].ctx,t);returnthis},off:function(e,t){varn=this.e||(this.e={}),a=n[e],i=[];if(a&&t)for(varr=0,o=a.length;r<o;r++)a[r].fn!==t&&a[r].fn._!==t&&i.push(a[r]);returni.length?n[e]=i:deleten[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){varp=n(3),g=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)thrownewError("Missing required arguments");if(!p.string(t))thrownewTypeError("Second argument must be a String");if(!p.fn(n))thrownewTypeError("Third argument must be a Function");if(p.node(e))returnc=t,u=n,(d=e).addEventListener(c,u),{destroy:function(){d.removeEventListener(c,u)}};if(p.nodeList(e))returno=e,s=t,l=n,Array.prototype.forEach.call(o,function(e){e.addEventListener(s,l)}),{destroy:function(){Array.prototype.forEach.call(o,function(e){e.removeEventListener(s,l)})}};if(p.string(e))returna=e,i=t,r=n,g(document.body,a,i,r);thrownewTypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");vara,i,r,o,s,l,d,c,u}},function(e,n){n.node=function(e){returnvoid0!==e&&einstanceofHTMLElement&&1===e.nodeType},n.nodeList=function(e){vart=Object.prototype.toString.call(e);returnvoid0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"ine&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeofe||einstanceofString},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){varo=n(5);functionr(e,t,n,a,i){varr=function(t,n,e,a){returnfunction(e){e.delegateTarget=o(e.target,n),e.delegateTarget&&a.call(t,e)}}.apply(this,arguments);returne.addEventListener(n,r,i),{destroy:function(){e.removeEventListener(n,r,i)}}}e.exports=function(e,t,n,a,i){return"function"==typeofe.addEventListener?r.apply(null,arguments):"function"==typeofn?r.bind(null,document).apply(null,arguments):("string"==typeofe&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){returnr(e,t,n,a,i)}))}},function(e,t){varn;"undefined"==typeofElement||Element.prototype.matches||((n=Element.prototype).matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeofe.matches&&e.matches(t))returne;e=e.parentNode}}},function(e,t,n){"use strict";n.r(t);vara=n(0),i=n.n(a),r="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe};functiono(e,t){for(varn=0;n<t.length;n++){vara=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}functions(e){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,s),this.resolveOptions(e),this.initSelection()}varl=(function(e,t,n){returnt&&o(e.prototype,t),n&&o(e,n),e}(s,[{key:"resolveOptions",value:function(e){vart=0<arguments.length&&void0!==e?e:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){t