this.wp=this.wp||{},this.wp.components=function(e){vart={};functionn(o){if(t[o])returnt[o].exports;varr=t[o]={i:o,l:!1,exports:{}};returne[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}returnn.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varo=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(varrine)n.d(o,r,function(t){returne[t]}.bind(null,r));returno},n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,"a",t),t},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=301)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,n){"use strict";functiono(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}n.d(t,"a",function(){returno})},,,function(e,t){!function(){e.exports=this.wp.compose}()},,function(e,t,n){"use strict";n.d(t,"a",function(){returnr});varo=n(15);functionr(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeofObject.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){returnObject.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Object(o.a)(e,t,n[t])})}returne}},function(e,t,n){"use strict";functiono(e,t){for(varn=0;n<t.length;n++){varo=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}functionr(e,t,n){returnt&&o(e.prototype,t),n&&o(e,n),e}n.d(t,"a",function(){returnr})},function(e,t,n){"use strict";functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}n.d(t,"a",function(){returno})},,function(e,t,n){"use strict";n.d(t,"a",function(){returna});varo=n(28),r=n(3);functiona(e,t){return!t||"object"!==Object(o.a)(t)&&"function"!=typeoft?Object(r.a)(e):t}},function(e,t,n){"use strict";functiono(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){returno})},function(e,t,n){"use strict";functiono(e,t){return(o=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}functionr(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}n.d(t,"a",function(){returnr})},function(e,t,n){"use strict";functiono(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){returno})},function(e,t,n){varo;
!function(t,n){e.exports=n()}(0,function(){returnfunction(e){vart={};functionn(o){if(t[o])returnt[o].exports;varr=t[o]={i:o,l:!1,exports:{}};returne[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}returnn.m=e,n.c=t,n.i=function(e){returne},n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,"a",t),t},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){varo,r,a;r=[e,n(7)],void0===(a="function"==typeof(o=function(e,t){"use strict";varn=function(e){returne&&e.__esModule?e:{default:e}}(t),o="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},r=function(){functione(e,t){for(varn=0;n<t.length;n++){varo=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}returnfunction(t,n,o){returnn&&e(t.prototype,n),o&&e(t,o),t}}(),a=function(){functione(t){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}returnr(e,[{key:"resolveOptions",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){vare=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){returne.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";varo=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){vare=void0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)thrownewError('Invalid "action" value, use either "copy" or "cut"')},get:function(){returnthis._action}},{key:"target",set:function(e){if(void0!==e){if(!e||"object"!==(void0===e?"undefined":o(e))||1!==e.nodeType)thrownewError('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))thrownewError('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))thrownewError('Invalid "target" attribute. You can\'tcuttextfromelementswith"readon