text: /* jQlipboard w0.3 (withPaste; minified) by DiriectorDoc on Github | MIT Licence | Copyright (c) 2020–2021 DiriectorDoc | Full licence at [https://github.com/DiriectorDoc/jQlipboard] */
  !function(t){console.log("%cNotice of Deprecation", "font-size:3em", "\njQlipboard source files will be moved in the neer future. On July 1st of this year, the new location of this extention, will be located at diriectordoc.github.io/jQlipboard/\n\nSee https://github.com/DiriectorDoc/jQlipboard for more information.");if(!t)return;let e=e=>{let o=e instanceof t?e.clone():null;t.jQlipboard.qlipboard.jqobj=o,t.jQlipboard.qlipboard.text="",navigator.clipboard.readText().then(e=>{t.jQlipboard.qlipboard.text=e}).catch(i),o&&(t.jQlipboard.qlipboard.text=o[0]&&t(o).is("img")?"image":o.val()||o.html()||"")},o=(t,e)=>t.val(t.val().slice(0,t[0].selectionStart)+e+t.val().slice(t[0].selectionEnd)),i=t=>{l(t),c("Browser does not have permission to access clipboard. Some features may not work until permission is granted."),p('To grant permission, go into your browser setting and allow "Clipboard"'),i=n},n=t=>0,r=t=>document.execCommand(t)||(t=>{throw 0})(),a=e=>t(document.activeElement),s=console,c=s.warn,l=s.error,p=s.info,d=window.getSelection(),u=(e,o,i,n)=>{let r=new Range;t.deselect(),o?(r.setStart(e,o),r.setEnd(i,n)):r.selectNode(e),d.addRange(r)};t.fn.copy=function(){if(this.parent().length){if(t(this).is("table"))t.copy(this[0].outerHTML);else{let o=d.baseNode,i=d.baseOffset,n=d.extentNode,r=d.extentOffset;this.select(),t.copy(),u(o,i,n,r),e(this)}return this}return this.css({display:"block",position:"absolute",left:"-9999in","-webkit-user-select":"text","-khtml-user-select":"text","-moz-user-select":"text","-ms-user-select":"text","user-select":"text"}).appendTo("body").copy().remove()},t.fn.paste=function(){if(t(this).is("input,textarea")){if(this.is(":focus")||this[0]===document.activeElement)return t.paste()?this:this.val(t.jQlipboard.qlipboard.text);let e=d.baseNode,i=d.baseOffset,n=d.extentNode,r=d.extentOffset;return this.focus(),t.paste()||o(this,t.jQlipboard.qlipboard.text),u(e,i,n,r),this}return this.append(t.jQlipboard.qlipboard.jqobj.clone())},t.fn.cut=function(){return this.copy().remove()},t.fn.select=function(e,o){return arguments.length>0?this.on("select",null,e,o):t(this).is("input,textarea")?this.trigger("select"):(u(this[0]),this)},t.deselect=t=>d.removeAllRanges();t.cut=e=>{try{return r("cut")}catch(e){return e&&(l(e),p("Trying $.copy() instead")),t.copy()&&o(a(),"")}};t.copy=e=>{switch(typeof e){case"object":if(null==e){t("<img>").copy();break}e=e instanceof Date?e.toISOString():e instanceof HTMLElement?e.outerHTML:"[object Object]"!=e.toString()?e.toString():JSON.stringify(e);case"number":case"string":t('<script type="text/plain">').html(e).copy();break;case"undefined":try{return r("copy")}catch(t){t&&e(t);let e=t=>!!e("Cannot copy text to clipboard");if(navigator.clipboard){let t=!p("Trying navigator.clipboard.writeText() instead");return navigator.clipboard.writeText(d).then(t=>0).catch(o=>{t=e()}),t}return e()}default:try{return t.copy(e.toString())}catch(t){l("Could not convert item to a copiable string.\n",e,t)}}};t.paste=t=>{try{return r("paste")}catch(t){t&&c(t);let e=!0;return navigator.clipboard.readText().then(t=>{o(a(),t)}).catch(t=>{e=!!l("Could not execute paste",t)}),e}};(t.jQlipboard=function(o){o=o||0,t.jQlipboard.qlipboard={},"immediate"==o.permissionPrompt&&navigator.clipboard.readText().then(n).catch(i),(o.copyListener||void 0===o.copyListener)&&(t().on?t(document).on("copy",e):t(document).bind("copy",e))})(),t.jQlipboard.version="w0.3"}(window.jQuery||console.warn("jQuery not detected. You must use a jQuery version of 1.0 or newer to run this plugin."));