!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){returno={},r.m=n=[function(t,e,n){"use strict";varo="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},r=function(t,e,n){returne&&i(t.prototype,e),n&&i(t,n),t};functioni(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}vara=u(n(1)),c=u(n(3)),l=u(n(4));functionu(t){returnt&&t.__esModule?t:{default:t}}(function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)})(s,c.default),r(s,[{key:"resolveOptions",value:function(){vart=0<arguments.length&&void0!==arguments[0]?arguments[0]:{};this.action="function"==typeoft.action?t.action:this.defaultAction,this.target="function"==typeoft.target?t.target:this.defaultTarget,this.text="function"==typeoft.text?t.text:this.defaultText,this.container="object"===o(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){vare=this;this.listener=(0,l.default)(t,"click",function(t){returne.onClick(t)})}},{key:"onClick",value:function(t){t=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=newa.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(t){returnf("action",t)}},{key:"defaultTarget",value:function(t){t=f("target",t);if(t)returndocument.querySelector(t)}},{key:"defaultText",value:function(t){returnf("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){vart=0<arguments.length&&void0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeoft?[t]:t,e=!!document.queryCommandSupported;returnt.forEach(function(t){e=e&&!!document.queryCommandSupported(t)}),e}}]),r=s;functions(t,e){!function(t){if(!(tinstanceofs))thrownewTypeError("Cannot call a class as a function")}(this);varn=function(t,e){if(!t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeofe&&"function"!=typeofe?t:e}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));returnn.resolveOptions(e),n.listenClick(t),n}functionf(t,e){t="data-clipboard-"+t;if(e.hasAttribute(t))returne.getAttribute(t)}t.exports=r},function(t,e,n){"use strict";varo="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},r=function(t,e,n){returne&&i(t.prototype,e),n&&i(t,n),t};functioni(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}vara,c=n(2),l=(a=c)&&a.__esModule?a:{default:a};r(u,[{key:"resolveOptions",value:function(){vart=0<arguments.length&&void0!==arguments[0]?arguments[0]:{};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(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){vart=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){returnt.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandler