!function(t){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=t();elseif("function"==typeofdefine&&define.amd)define([],t);else{vare;e="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,e.Clipboard=t()}}(function(){vart,e,n;returnfunctiont(e,n,i){functiono(a,c){if(!n[a]){if(!e[a]){vars="function"==typeofrequire&&require;if(!c&&s)returns(a,!0);if(r)returnr(a,!0);varl=newError("Cannot find module '"+a+"'");throwl.code="MODULE_NOT_FOUND",l}varu=n[a]={exports:{}};e[a][0].call(u.exports,function(t){varn=e[a][1][t];returno(n?n:t)},u,u.exports,t,e,n,i)}returnn[a].exports}for(varr="function"==typeofrequire&&require,a=0;a<i.length;a++)o(i[a]);returno}({1:[function(t,e,n){vari=t("closest"),o=t("component-event"),r=["focus","blur"];n.bind=function(t,e,n,a,c){return-1!==r.indexOf(n)&&(c=!0),o.bind(t,n,function(n){varo=n.target||n.srcElement;n.delegateTarget=i(o,e,!0,t),n.delegateTarget&&a.call(t,n)},c)},n.unbind=function(t,e,n,i){-1!==r.indexOf(e)&&(i=!0),o.unbind(t,e,n,i)}},{closest:2,"component-event":4}],2:[function(t,e,n){vari=t("matches-selector");e.exports=function(t,e,n){for(varo=n?t:t.parentNode;o&&o!==document;){if(i(o,e))returno;o=o.parentNode}}},{"matches-selector":3}],3:[function(t,e,n){functioni(t,e){if(r)returnr.call(t,e);for(varn=t.parentNode.querySelectorAll(e),i=0;i<n.length;++i)if(n[i]==t)return!0;return!1}varo=Element.prototype,r=o.matchesSelector||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector;e.exports=i},{}],4:[function(t,e,n){vari=window.addEventListener?"addEventListener":"attachEvent",o=window.removeEventListener?"removeEventListener":"detachEvent",r="addEventListener"!==i?"on":"";n.bind=function(t,e,n,o){returnt[i](r+e,n,o||!1),n},n.unbind=function(t,e,n,i){returnt[o](r+e,n,i||!1),n}},{}],5:[function(t,e,n){functioni(){}i.prototype={on:function(t,e,n){vari=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){vari=this,o=function(){i.off(t,o),e.apply(n,arguments)};returnthis.on(t,o,n)},emit:function(t){vare=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,o=n.length;for(i;o>i;i++)n[i].fn.apply(n[i].ctx,e);returnthis},off:function(t,e){varn=this.e||(this.e={}),i=n[t],o=[];if(i&&e)for(varr=0,a=i.length;a>r;r++)i[r].fn!==e&&o.push(i[r]);returno.length?n[t]=o:deleten[t],this}},e.exports=i},{}],6:[function(t,e,n){"use strict";functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}n.__esModule=!0;varo=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}}(),r=function(){functiont(e){i(this,t),this.resolveOptions(e),this.initSelection()}returnt.prototype.resolveOptions=functiont(){vare=arguments.length<=0||void0===arguments[0]?{}:arguments[0];this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.triggerStart,this.selectedText=""},t.prototype.initSelection=functiont(){if(this.text&&this.target)thrownewError('Multiple attributes declared, use either "target" or "text"');if(this.text)this.selectFake();else{if(!this.target)thrownewError('Missing required attributes, use either "target" or "text"');this.selectTarget()}},t.prototype.selectFake=functiont(){vare=this;this.removeFake(),this.fakeHandler=document.body.addEventListener("click",function(){returne.removeFake()}),this.fakeElem=document.createElement("textarea"),this.fakeElem.style.position="absolute",this.fakeElem.style.left="-9999px",this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.selectedText=this.text,document.body.appendChild(this.fakeElem),this.fakeElem.select(),this.copyText()},t.prototype.removeFake=functiont(){this.fakeHandler&&(document.body.removeEv