7 lines
9.1 KiB
Vue
Raw Permalink Normal View History

2025-04-29 09:38:12 +08:00
import{ai as X,aj as $}from"./vendor.3937d42d.js";var R={exports:{}};/*!
* clipboard.js v2.0.10
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(N,B){(function(S,b){N.exports=b()})(X,function(){return function(){var L={686:function(l,c,t){t.d(c,{default:function(){return V}});var a=t(279),f=t.n(a),s=t(370),h=t.n(s),y=t(817),g=t.n(y);function d(o){try{return document.execCommand(o)}catch{return!1}}var v=function(n){var e=g()(n);return d("cut"),e},p=v;function _(o){var n=document.documentElement.getAttribute("dir")==="rtl",e=document.createElement("textarea");e.style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[n?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return e.style.top="".concat(i,"px"),e.setAttribute("readonly",""),e.value=o,e}var j=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},i="";if(typeof n=="string"){var r=_(n);e.container.appendChild(r),i=g()(r),d("copy"),r.remove()}else i=g()(n),d("copy");return i},A=j;function x(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(e){return typeof e}:x=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(o)}var M=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.action,i=e===void 0?"copy":e,r=n.container,u=n.target,m=n.text;if(i!=="copy"&&i!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(u!==void 0)if(u&&x(u)==="object"&&u.nodeType===1){if(i==="copy"&&u.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(i==="cut"&&(u.hasAttribute("readonly")||u.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(m)return A(m,{container:r});if(u)return i==="cut"?p(u):A(u,{container:r})},k=M;function E(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(e){return typeof e}:E=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(o)}function D(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}function P(o,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}function F(o,n,e){return n&&P(o.prototype,n),e&&P(o,e),o}function H(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(n&&n.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),n&&C(o,n)}function C(o,n){return C=Object.setPrototypeOf||function(i,r){return i.__proto__=r,i},C(o,n)}function I(o){var n=Y();return function(){var i=T(o),r;if(n){var u=T(this).constructor;r=Reflect.construct(i,arguments,u)}else r=i.apply(this,arguments);return z(this,r)}}function z(o,n){return n&&(E(n)==="object"||typeof n=="function")?n:U(o)}function U(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function Y(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function T(o){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(o)}function O(o,n){var e="data-clipboard-".concat(o);if(!!n.hasAttribute(e))return n.getAttribute(e)}var G=function(o){H(e,o);var n=I(e);function e(i,r){var u;return D(this,e),u=n.call(this),u.resolveOptions(r),u.listenClick(i),u}return F(e,[{key:"resolveOptions",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof r.action=="function"?r.action:this.defaultAction,this.target=typeof r.target=="function"?r.target:this.defaultTarget,this.text=typeof r.text=="function"?r.text:thi