UNPKG

xiaobu-water-marker

Version:

vue2水印插件

2 lines 45.4 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue2-water-marker"]=e():t["vue2-water-marker"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"00ee":function(t,e,r){var n=r("b622"),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"0366":function(t,e,r){var n=r("e330"),o=r("59ed"),i=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},"06cf":function(t,e,r){var n=r("83ab"),o=r("c65b"),i=r("d1e7"),a=r("5c6c"),c=r("fc6a"),u=r("a04b"),f=r("1a2d"),s=r("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=c(t),e=u(e),s)try{return l(t,e)}catch(r){}if(f(t,e))return a(!o(i.f,t,e),t[e])}},"07fa":function(t,e,r){var n=r("50c4");t.exports=function(t){return n(t.length)}},"0b42":function(t,e,r){var n=r("da84"),o=r("e8b5"),i=r("68ee"),a=r("861d"),c=r("b622"),u=c("species"),f=n.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,i(e)&&(e===f||o(e.prototype))?e=void 0:a(e)&&(e=e[u],null===e&&(e=void 0))),void 0===e?f:e}},"0cfb":function(t,e,r){var n=r("83ab"),o=r("d039"),i=r("cc12");t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(t,e,r){var n=r("da84"),o=n.String;t.exports=function(t){try{return o(t)}catch(e){return"Object"}}},"107c":function(t,e,r){var n=r("d039"),o=r("da84"),i=o.RegExp;t.exports=n((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},1276:function(t,e,r){"use strict";var n=r("2ba4"),o=r("c65b"),i=r("e330"),a=r("d784"),c=r("44e7"),u=r("825a"),f=r("1d80"),s=r("4840"),l=r("8aa5"),d=r("50c4"),p=r("577e"),h=r("dc4a"),v=r("4dae"),g=r("14c3"),b=r("9263"),y=r("9f7f"),m=r("d039"),x=y.UNSUPPORTED_Y,w=4294967295,S=Math.min,E=[].push,O=i(/./.exec),I=i(E),T=i("".slice),j=!m((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));a("split",(function(t,e,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var i=p(f(this)),a=void 0===r?w:r>>>0;if(0===a)return[];if(void 0===t)return[i];if(!c(t))return o(e,i,t,a);var u,s,l,d=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,y=new RegExp(t.source,h+"g");while(u=o(b,y,i)){if(s=y.lastIndex,s>g&&(I(d,T(i,g,u.index)),u.length>1&&u.index<i.length&&n(E,d,v(u,1)),l=u[0].length,g=s,d.length>=a))break;y.lastIndex===u.index&&y.lastIndex++}return g===i.length?!l&&O(y,"")||I(d,""):I(d,T(i,g)),d.length>a?v(d,0,a):d}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:o(e,this,t,r)}:e,[function(e,r){var n=f(this),a=void 0==e?void 0:h(e,t);return a?o(a,e,n,r):o(i,p(n),e,r)},function(t,n){var o=u(this),a=p(t),c=r(i,o,a,n,i!==e);if(c.done)return c.value;var f=s(o,RegExp),h=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(x?"g":"y"),b=new f(x?"^(?:"+o.source+")":o,v),y=void 0===n?w:n>>>0;if(0===y)return[];if(0===a.length)return null===g(b,a)?[a]:[];var m=0,E=0,O=[];while(E<a.length){b.lastIndex=x?0:E;var j,N=g(b,x?T(a,E):a);if(null===N||(j=S(d(b.lastIndex+(x?E:0)),a.length))===m)E=l(a,E,h);else{if(I(O,T(a,m,E)),O.length===y)return O;for(var M=1;M<=N.length-1;M++)if(I(O,N[M]),O.length===y)return O;E=m=j}}return I(O,T(a,m)),O}]}),!j,x)},"14c3":function(t,e,r){var n=r("da84"),o=r("c65b"),i=r("825a"),a=r("1626"),c=r("c6b6"),u=r("9263"),f=n.TypeError;t.exports=function(t,e){var r=t.exec;if(a(r)){var n=o(r,t,e);return null!==n&&i(n),n}if("RegExp"===c(t))return o(u,t,e);throw f("RegExp#exec called on incompatible receiver")}},"159b":function(t,e,r){var n=r("da84"),o=r("fdbc"),i=r("785a"),a=r("17c2"),c=r("9112"),u=function(t){if(t&&t.forEach!==a)try{c(t,"forEach",a)}catch(e){t.forEach=a}};for(var f in o)o[f]&&u(n[f]&&n[f].prototype);u(i)},1626:function(t,e){t.exports=function(t){return"function"==typeof t}},"17c2":function(t,e,r){"use strict";var n=r("b727").forEach,o=r("a640"),i=o("forEach");t.exports=i?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},"1a2d":function(t,e,r){var n=r("e330"),o=r("7b0b"),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},"1be4":function(t,e,r){var n=r("d066");t.exports=n("document","documentElement")},"1d80":function(t,e,r){var n=r("da84"),o=n.TypeError;t.exports=function(t){if(void 0==t)throw o("Can't call method on "+t);return t}},"1dde":function(t,e,r){var n=r("d039"),o=r("b622"),i=r("2d00"),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[],r=e.constructor={};return r[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,r){var n=r("5926"),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},"23e7":function(t,e,r){var n=r("da84"),o=r("06cf").f,i=r("9112"),a=r("6eeb"),c=r("ce4e"),u=r("e893"),f=r("94ca");t.exports=function(t,e){var r,s,l,d,p,h,v=t.target,g=t.global,b=t.stat;if(s=g?n:b?n[v]||c(v,{}):(n[v]||{}).prototype,s)for(l in e){if(p=e[l],t.noTargetGet?(h=o(s,l),d=h&&h.value):d=s[l],r=f(g?l:v+(b?".":"#")+l,t.forced),!r&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(t.sham||d&&d.sham)&&i(p,"sham",!0),a(s,l,p,t)}}},"241c":function(t,e,r){var n=r("ca84"),o=r("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},"2ba4":function(t,e){var r=Function.prototype,n=r.apply,o=r.bind,i=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(n):function(){return i.apply(n,arguments)})},"2d00":function(t,e,r){var n,o,i=r("da84"),a=r("342f"),c=i.process,u=i.Deno,f=c&&c.versions||u&&u.version,s=f&&f.v8;s&&(n=s.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},"342f":function(t,e,r){var n=r("d066");t.exports=n("navigator","userAgent")||""},"37e8":function(t,e,r){var n=r("83ab"),o=r("aed9"),i=r("9bf2"),a=r("825a"),c=r("fc6a"),u=r("df75");e.f=n&&!o?Object.defineProperties:function(t,e){a(t);var r,n=c(e),o=u(e),f=o.length,s=0;while(f>s)i.f(t,r=o[s++],n[r]);return t}},"3a9b":function(t,e,r){var n=r("e330");t.exports=n({}.isPrototypeOf)},"3bbe":function(t,e,r){var n=r("da84"),o=r("1626"),i=n.String,a=n.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},"408a":function(t,e,r){var n=r("e330");t.exports=n(1..valueOf)},"44ad":function(t,e,r){var n=r("da84"),o=r("e330"),i=r("d039"),a=r("c6b6"),c=n.Object,u=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?u(t,""):c(t)}:c},"44d2":function(t,e,r){var n=r("b622"),o=r("7c73"),i=r("9bf2"),a=n("unscopables"),c=Array.prototype;void 0==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},"44e7":function(t,e,r){var n=r("861d"),o=r("c6b6"),i=r("b622"),a=i("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},4840:function(t,e,r){var n=r("825a"),o=r("5087"),i=r("b622"),a=i("species");t.exports=function(t,e){var r,i=n(t).constructor;return void 0===i||void 0==(r=n(i)[a])?e:o(r)}},"485a":function(t,e,r){var n=r("da84"),o=r("c65b"),i=r("1626"),a=r("861d"),c=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&i(r=t.toString)&&!a(n=o(r,t)))return n;if(i(r=t.valueOf)&&!a(n=o(r,t)))return n;if("string"!==e&&i(r=t.toString)&&!a(n=o(r,t)))return n;throw c("Can't convert object to primitive value")}},4930:function(t,e,r){var n=r("2d00"),o=r("d039");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"4d64":function(t,e,r){var n=r("fc6a"),o=r("23cb"),i=r("07fa"),a=function(t){return function(e,r,a){var c,u=n(e),f=i(u),s=o(a,f);if(t&&r!=r){while(f>s)if(c=u[s++],c!=c)return!0}else for(;f>s;s++)if((t||s in u)&&u[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4dae":function(t,e,r){var n=r("da84"),o=r("23cb"),i=r("07fa"),a=r("8418"),c=n.Array,u=Math.max;t.exports=function(t,e,r){for(var n=i(t),f=o(e,n),s=o(void 0===r?n:r,n),l=c(u(s-f,0)),d=0;f<s;f++,d++)a(l,d,t[f]);return l.length=d,l}},5087:function(t,e,r){var n=r("da84"),o=r("68ee"),i=r("0d51"),a=n.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not a constructor")}},"50c4":function(t,e,r){var n=r("5926"),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},5692:function(t,e,r){var n=r("c430"),o=r("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.20.2",mode:n?"pure":"global",copyright:"© 2022 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,r){var n=r("d066"),o=r("e330"),i=r("241c"),a=r("7418"),c=r("825a"),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=a.f;return r?u(e,r(t)):e}},"577e":function(t,e,r){var n=r("da84"),o=r("f5df"),i=n.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,r){var n=r("e330"),o=r("1d80"),i=r("577e"),a=r("5899"),c=n("".replace),u="["+a+"]",f=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),l=function(t){return function(e){var r=i(o(e));return 1&t&&(r=c(r,f,"")),2&t&&(r=c(r,s,"")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},5926:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){var e=+t;return e!==e||0===e?0:(e>0?n:r)(e)}},"59ed":function(t,e,r){var n=r("da84"),o=r("1626"),i=r("0d51"),a=n.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,r){var n=r("83ab"),o=r("1a2d"),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,f=c&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:f}},6547:function(t,e,r){var n=r("e330"),o=r("5926"),i=r("577e"),a=r("1d80"),c=n("".charAt),u=n("".charCodeAt),f=n("".slice),s=function(t){return function(e,r){var n,s,l=i(a(e)),d=o(r),p=l.length;return d<0||d>=p?t?"":void 0:(n=u(l,d),n<55296||n>56319||d+1===p||(s=u(l,d+1))<56320||s>57343?t?c(l,d):n:t?f(l,d,d+2):s-56320+(n-55296<<10)+65536)}};t.exports={codeAt:s(!1),charAt:s(!0)}},"65f0":function(t,e,r){var n=r("0b42");t.exports=function(t,e){return new(n(t))(0===e?0:e)}},"68ee":function(t,e,r){var n=r("e330"),o=r("d039"),i=r("1626"),a=r("f5df"),c=r("d066"),u=r("8925"),f=function(){},s=[],l=c("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=n(d.exec),h=!d.exec(f),v=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(e){return!1}},g=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,u(t))}catch(e){return!0}};g.sham=!0,t.exports=!l||o((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?g:v},"69f3":function(t,e,r){var n,o,i,a=r("7f9a"),c=r("da84"),u=r("e330"),f=r("861d"),s=r("9112"),l=r("1a2d"),d=r("c6cd"),p=r("f772"),h=r("d012"),v="Object already initialized",g=c.TypeError,b=c.WeakMap,y=function(t){return i(t)?o(t):n(t,{})},m=function(t){return function(e){var r;if(!f(e)||(r=o(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return r}};if(a||d.state){var x=d.state||(d.state=new b),w=u(x.get),S=u(x.has),E=u(x.set);n=function(t,e){if(S(x,t))throw new g(v);return e.facade=t,E(x,t,e),e},o=function(t){return w(x,t)||{}},i=function(t){return S(x,t)}}else{var O=p("state");h[O]=!0,n=function(t,e){if(l(t,O))throw new g(v);return e.facade=t,s(t,O,e),e},o=function(t){return l(t,O)?t[O]:{}},i=function(t){return l(t,O)}}t.exports={set:n,get:o,has:i,enforce:y,getterFor:m}},"6eeb":function(t,e,r){var n=r("da84"),o=r("1626"),i=r("1a2d"),a=r("9112"),c=r("ce4e"),u=r("8925"),f=r("69f3"),s=r("5e77").CONFIGURABLE,l=f.get,d=f.enforce,p=String(String).split("String");(t.exports=function(t,e,r,u){var f,l=!!u&&!!u.unsafe,h=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,g=u&&void 0!==u.name?u.name:e;o(r)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(r,"name")||s&&r.name!==g)&&a(r,"name",g),f=d(r),f.source||(f.source=p.join("string"==typeof g?g:""))),t!==n?(l?!v&&t[e]&&(h=!0):delete t[e],h?t[e]=r:a(t,e,r)):h?t[e]=r:c(e,r)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||u(this)}))},7156:function(t,e,r){var n=r("1626"),o=r("861d"),i=r("d2bb");t.exports=function(t,e,r){var a,c;return i&&n(a=e.constructor)&&a!==r&&o(c=a.prototype)&&c!==r.prototype&&i(t,c),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(t,e,r){var n=r("cc12"),o=n("span").classList,i=o&&o.constructor&&o.constructor.prototype;t.exports=i===Object.prototype?void 0:i},"7b0b":function(t,e,r){var n=r("da84"),o=r("1d80"),i=n.Object;t.exports=function(t){return i(o(t))}},"7c73":function(t,e,r){var n,o=r("825a"),i=r("37e8"),a=r("7839"),c=r("d012"),u=r("1be4"),f=r("cc12"),s=r("f772"),l=">",d="<",p="prototype",h="script",v=s("IE_PROTO"),g=function(){},b=function(t){return d+h+l+t+d+"/"+h+l},y=function(t){t.write(b("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t,e=f("iframe"),r="java"+h+":";return e.style.display="none",u.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(b("document.F=Object")),t.close(),t.F},x=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}x="undefined"!=typeof document?document.domain&&n?y(n):m():y(n);var t=a.length;while(t--)delete x[p][a[t]];return x()};c[v]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(g[p]=o(t),r=new g,g[p]=null,r[v]=t):r=x(),void 0===e?r:i.f(r,e)}},"7f9a":function(t,e,r){var n=r("da84"),o=r("1626"),i=r("8925"),a=n.WeakMap;t.exports=o(a)&&/native code/.test(i(a))},"825a":function(t,e,r){var n=r("da84"),o=r("861d"),i=n.String,a=n.TypeError;t.exports=function(t){if(o(t))return t;throw a(i(t)+" is not an object")}},"83ab":function(t,e,r){var n=r("d039");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,r){"use strict";var n=r("a04b"),o=r("9bf2"),i=r("5c6c");t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},"861d":function(t,e,r){var n=r("1626");t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},8875:function(t,e,r){var n,o,i;(function(r,a){o=[],n=a,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=i.exec(p.stack)||a.exec(p.stack),u=c&&c[1]||!1,f=c&&c[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===s&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(f-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var d=0;d<l.length;d++){if("interactive"===l[d].readyState)return l[d];if(l[d].src===u)return l[d];if(u===s&&l[d].innerHTML&&l[d].innerHTML.trim()===o)return l[d]}return null}}return t}))},8925:function(t,e,r){var n=r("e330"),o=r("1626"),i=r("c6cd"),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},"8aa5":function(t,e,r){"use strict";var n=r("6547").charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},"90e3":function(t,e,r){var n=r("e330"),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},9112:function(t,e,r){var n=r("83ab"),o=r("9bf2"),i=r("5c6c");t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9263:function(t,e,r){"use strict";var n=r("c65b"),o=r("e330"),i=r("577e"),a=r("ad6d"),c=r("9f7f"),u=r("5692"),f=r("7c73"),s=r("69f3").get,l=r("fce3"),d=r("107c"),p=u("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,v=h,g=o("".charAt),b=o("".indexOf),y=o("".replace),m=o("".slice),x=function(){var t=/a/,e=/b*/g;return n(h,t,"a"),n(h,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),w=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1],E=x||S||w||l||d;E&&(v=function(t){var e,r,o,c,u,l,d,E=this,O=s(E),I=i(t),T=O.raw;if(T)return T.lastIndex=E.lastIndex,e=n(v,T,I),E.lastIndex=T.lastIndex,e;var j=O.groups,N=w&&E.sticky,M=n(a,E),k=E.source,L=0,_=I;if(N&&(M=y(M,"y",""),-1===b(M,"g")&&(M+="g"),_=m(I,E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&"\n"!==g(I,E.lastIndex-1))&&(k="(?: "+k+")",_=" "+_,L++),r=new RegExp("^(?:"+k+")",M)),S&&(r=new RegExp("^"+k+"$(?!\\s)",M)),x&&(o=E.lastIndex),c=n(h,N?r:E,_),N?c?(c.input=m(c.input,L),c[0]=m(c[0],L),c.index=E.lastIndex,E.lastIndex+=c[0].length):E.lastIndex=0:x&&c&&(E.lastIndex=E.global?c.index+c[0].length:o),S&&c&&c.length>1&&n(p,c[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(c[u]=void 0)})),c&&j)for(c.groups=l=f(null),u=0;u<j.length;u++)d=j[u],l[d[0]]=c[d[1]];return c}),t.exports=v},"94ca":function(t,e,r){var n=r("d039"),o=r("1626"),i=/#|\.prototype\./,a=function(t,e){var r=u[c(t)];return r==s||r!=f&&(o(e)?n(e):!!e)},c=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},f=a.NATIVE="N",s=a.POLYFILL="P";t.exports=a},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(_){u=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new M(n||[]);return i._invoke=I(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(_){return{type:"throw",arg:_}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function g(){}function b(){}function y(){}var m={};u(m,i,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(k([])));w&&w!==r&&n.call(w,i)&&(m=w);var S=y.prototype=g.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"===typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;function i(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function I(t,e,r){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return L()}r.method=o,r.arg=i;while(1){var a=r.delegate;if(a){var c=T(a,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?h:d,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}function T(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){while(++o<t.length)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:e,done:!0}}return b.prototype=y,u(S,"constructor",y),u(y,"constructor",b),b.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},E(O.prototype),u(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),u(S,c,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},"99af":function(t,e,r){"use strict";var n=r("23e7"),o=r("da84"),i=r("d039"),a=r("e8b5"),c=r("861d"),u=r("7b0b"),f=r("07fa"),s=r("8418"),l=r("65f0"),d=r("1dde"),p=r("b622"),h=r("2d00"),v=p("isConcatSpreadable"),g=9007199254740991,b="Maximum allowed index exceeded",y=o.TypeError,m=h>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),x=d("concat"),w=function(t){if(!c(t))return!1;var e=t[v];return void 0!==e?!!e:a(t)},S=!m||!x;n({target:"Array",proto:!0,forced:S},{concat:function(t){var e,r,n,o,i,a=u(this),c=l(a,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(i=-1===e?a:arguments[e],w(i)){if(o=f(i),d+o>g)throw y(b);for(r=0;r<o;r++,d++)r in i&&s(c,d,i[r])}else{if(d>=g)throw y(b);s(c,d++,i)}return c.length=d,c}})},"9bf2":function(t,e,r){var n=r("da84"),o=r("83ab"),i=r("0cfb"),a=r("aed9"),c=r("825a"),u=r("a04b"),f=n.TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";e.f=o?a?function(t,e,r){if(c(t),e=u(e),c(r),"function"===typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=l(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:d in r?r[d]:n[d],writable:!1})}return s(t,e,r)}:s:function(t,e,r){if(c(t),e=u(e),c(r),i)try{return s(t,e,r)}catch(n){}if("get"in r||"set"in r)throw f("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},"9f7f":function(t,e,r){var n=r("d039"),o=r("da84"),i=o.RegExp,a=n((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),c=a||n((function(){return!i("a","y").sticky})),u=a||n((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:c,UNSUPPORTED_Y:a}},a04b:function(t,e,r){var n=r("c04e"),o=r("d9b5");t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},a640:function(t,e,r){"use strict";var n=r("d039");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},a9e3:function(t,e,r){"use strict";var n=r("83ab"),o=r("da84"),i=r("e330"),a=r("94ca"),c=r("6eeb"),u=r("1a2d"),f=r("7156"),s=r("3a9b"),l=r("d9b5"),d=r("c04e"),p=r("d039"),h=r("241c").f,v=r("06cf").f,g=r("9bf2").f,b=r("408a"),y=r("58a8").trim,m="Number",x=o[m],w=x.prototype,S=o.TypeError,E=i("".slice),O=i("".charCodeAt),I=function(t){var e=d(t,"number");return"bigint"==typeof e?e:T(e)},T=function(t){var e,r,n,o,i,a,c,u,f=d(t,"number");if(l(f))throw S("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=y(f),e=O(f,0),43===e||45===e){if(r=O(f,2),88===r||120===r)return NaN}else if(48===e){switch(O(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(i=E(f,2),a=i.length,c=0;c<a;c++)if(u=O(i,c),u<48||u>o)return NaN;return parseInt(i,n)}return+f};if(a(m,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var j,N=function(t){var e=arguments.length<1?0:x(I(t)),r=this;return s(w,r)&&p((function(){b(r)}))?f(Object(e),r,N):e},M=n?h(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),k=0;M.length>k;k++)u(x,j=M[k])&&!u(N,j)&&g(N,j,v(x,j));N.prototype=w,w.constructor=N,c(o,m,N)}},ac1f:function(t,e,r){"use strict";var n=r("23e7"),o=r("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(t,e,r){"use strict";var n=r("825a");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},aed9:function(t,e,r){var n=r("83ab"),o=r("d039");t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b041:function(t,e,r){"use strict";var n=r("00ee"),o=r("f5df");t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(t,e,r){var n=r("83ab"),o=r("5e77").EXISTS,i=r("e330"),a=r("9bf2").f,c=Function.prototype,u=i(c.toString),f=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(f.exec),l="name";n&&!o&&a(c,l,{configurable:!0,get:function(){try{return s(f,u(this))[1]}catch(t){return""}}})},b622:function(t,e,r){var n=r("da84"),o=r("5692"),i=r("1a2d"),a=r("90e3"),c=r("4930"),u=r("fdbf"),f=o("wks"),s=n.Symbol,l=s&&s["for"],d=u?s:s&&s.withoutSetter||a;t.exports=function(t){if(!i(f,t)||!c&&"string"!=typeof f[t]){var e="Symbol."+t;c&&i(s,t)?f[t]=s[t]:f[t]=u&&l?l(e):d(e)}return f[t]}},b727:function(t,e,r){var n=r("0366"),o=r("e330"),i=r("44ad"),a=r("7b0b"),c=r("07fa"),u=r("65f0"),f=o([].push),s=function(t){var e=1==t,r=2==t,o=3==t,s=4==t,l=6==t,d=7==t,p=5==t||l;return function(h,v,g,b){for(var y,m,x=a(h),w=i(x),S=n(v,g),E=c(w),O=0,I=b||u,T=e?I(h,E):r||d?I(h,0):void 0;E>O;O++)if((p||O in w)&&(y=w[O],m=S(y,O,x),t))if(e)T[O]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:f(T,y)}else switch(t){case 4:return!1;case 7:f(T,y)}return l?-1:o||s?s:T}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},c04e:function(t,e,r){var n=r("da84"),o=r("c65b"),i=r("861d"),a=r("d9b5"),c=r("dc4a"),u=r("485a"),f=r("b622"),s=n.TypeError,l=f("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var r,n=c(t,l);if(n){if(void 0===e&&(e="default"),r=o(n,t,e),!i(r)||a(r))return r;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},c430:function(t,e){t.exports=!1},c65b:function(t,e){var r=Function.prototype.call;t.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,r){var n=r("e330"),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},c6cd:function(t,e,r){var n=r("da84"),o=r("ce4e"),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},ca84:function(t,e,r){var n=r("e330"),o=r("1a2d"),i=r("fc6a"),a=r("4d64").indexOf,c=r("d012"),u=n([].push);t.exports=function(t,e){var r,n=i(t),f=0,s=[];for(r in n)!o(c,r)&&o(n,r)&&u(s,r);while(e.length>f)o(n,r=e[f++])&&(~a(s,r)||u(s,r));return s}},caad:function(t,e,r){"use strict";var n=r("23e7"),o=r("4d64").includes,i=r("44d2");n({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(t,e,r){var n=r("da84"),o=r("861d"),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},ce4e:function(t,e,r){var n=r("da84"),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,r){var n=r("da84"),o=r("1626"),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},d1e7:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},d2bb:function(t,e,r){var n=r("e330"),o=r("825a"),i=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(r,[]),e=r instanceof Array}catch(a){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},d3b7:function(t,e,r){var n=r("00ee"),o=r("6eeb"),i=r("b041");n||o(Object.prototype,"toString",i,{unsafe:!0})},d784:function(t,e,r){"use strict";r("ac1f");var n=r("e330"),o=r("6eeb"),i=r("9263"),a=r("d039"),c=r("b622"),u=r("9112"),f=c("species"),s=RegExp.prototype;t.exports=function(t,e,r,l){var d=c(t),p=!a((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),h=p&&!a((function(){var e=!1,r=/a/;return"split"===t&&(r={},r.constructor={},r.constructor[f]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return e=!0,null},r[d](""),!e}));if(!p||!h||r){var v=n(/./[d]),g=e(d,""[t],(function(t,e,r,o,a){var c=n(t),u=e.exec;return u===i||u===s.exec?p&&!a?{done:!0,value:v(e,r,o)}:{done:!0,value:c(r,e,o)}:{done:!1}}));o(String.prototype,t,g[0]),o(s,d,g[1])}l&&u(s[d],"sham",!0)}},d9b5:function(t,e,r){var n=r("da84"),o=r("d066"),i=r("1626"),a=r("3a9b"),c=r("fdbf"),u=n.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&a(e.prototype,u(t))}},da84:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r("c8ba"))},dc4a:function(t,e,r){var n=r("59ed");t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},df75:function(t,e,r){var n=r("ca84"),o=r("7839");t.exports=Object.keys||function(t){return n(t,o)}},e330:function(t,e){var r=Function.prototype,n=r.bind,o=r.call,i=n&&n.bind(o,o);t.exports=n?function(t){return t&&i(t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},e893:function(t,e,r){var n=r("1a2d"),o=r("56ef"),i=r("06cf"),a=r("9bf2");t.exports=function(t,e,r){for(var c=o(e),u=a.f,f=i.f,s=0;s<c.length;s++){var l=c[s];n(t,l)||r&&n(r,l)||u(t,l,f(e,l))}}},e8b5:function(t,e,r){var n=r("c6b6");t.exports=Array.isArray||function(t){return"Array"==n(t)}},f5df:function(t,e,r){var n=r("da84"),o=r("00ee"),i=r("1626"),a=r("c6b6"),c=r("b622"),u=c("toStringTag"),f=n.Object,s="Arguments"==a(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(r){}};t.exports=o?a:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=l(e=f(t),u))?r:s?a(e):"Object"==(n=a(e))&&i(e.callee)?"Arguments":n}},f772:function(t,e,r){var n=r("5692"),o=r("90e3"),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},fb15:function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,o=r("8875");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}r("b0c0"),r("96cf");function a(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(f){return void r(f)}c.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))}}var u=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:t.waterMarkerRef,style:t.waterMarkStyle})},f=[];function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){if(t){if("string"===typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(t,e):void 0}}function d(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r["return"]||r["return"]()}finally{if(c)throw i}}}}r("a9e3"),r("caad"),r("d3b7"),r("159b"),r("ac1f"),r("1276"),r("99af");var p={name:"Vue2WaterMarker",props:{beDeleteTips:{type:String,default:"不要删我水印,请尊重下版权,谢谢!"},beChangeTips:{type:String,default:"不要随意更改我的属性,谢谢!"},unSupportTips:{type:String,default:"您的浏览器不支持MutationObserver,请更换浏览器使用!"},showDestoryTips:{type:String,default:"水印组件已销毁,已执行去除监听事件!"},waterMarkerId:{type:String,default:""},text:{type:String,default:""},imgSrc:{type:String,default:""},imgWidth:{type:[Number,String],default:"100"},width:{type:[Number,String],default:"200"},height:{type:[Number,String],default:"200"},crisscross:{type:Boolean,default:!0},rotateDirection:{type:String,default:"anticlockwise",validate:function(t){return["clockwise","anticlockwise"].includes(t)}},rotateDeg:{type:[Number,String],default:"20"},oddOrEven:{type:String,default:"1",validate:function(t){return["0","1"].includes(t)}},lineHeight:{type:[Number,String],default:"24"},textColor:{type:String,default:"rgb(180, 180, 180)"},fontSize:{type:[Number,String],default:"16"},font:{type:String,default:"sans-serif"},opacity:{type:[Number,String],default:"0.3"},zIndex:{type:[Number,String],default:"999"},openPrevent:{type:Boolean,default:!0},grayImg:{type:Boolean,default:!1},rgbNum:{type:Array,default:function(){return[.299,.587,.114]}}},computed:{waterMarkStyle:function(){return{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",pointerEvents:"none",overflow:"hidden",opacity:this.opacity,zIndex:this.zIndex,backgroundImage:"url(".concat(this.waterImg,")")}}},watch:{waterMarkStyle:function(){var t=this;this.openPrevent&&setTimeout((function(){t.parentDomListener()}),300)}},data:function(){return{waterMarkerRef:"",isRender:!1,waterImg:null,observer:null,waterMarkerDom:null}},created:function(){this.waterMarkerRef=this.waterMarkerId||this.getRandomId()},mounted:function(){var t=this;t.waterMarkerDom=t.$refs[t.waterMarkerRef],t.$nextTick((function(){var e=t.waterMarkerDom.parentElement,r=t.getStyle(e,"position");e.style.position="static"===r?"relative":r,t.text&&t.marker(),t.imgSrc&&(t.waterImgRef=new Image,t.waterImgRef.src=t.imgSrc,t.waterImgRef.setAttribute("crossOrigin","anonymous"),t.waterImgRef.width=t.imgWidth,t.waterImgRef.height=t.waterImgRef.naturalHeight*(Number(t.imgWidth)/t.waterImgRef.naturalWidth),t.waterImgRef.onload=function(){t.marker()})}))},beforeDestroy:function(){this.showDestoryTips&&console.log(this.showDestoryTips),this.observer&&this.observer.disconnect(),this.waterMarkerDom=null},methods:{parentDomListener:function(){var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(t){var e=this,r=this.waterMarkerDom.parentNode;e.observer=new t((function(t){t.forEach((function(t){var n,o=d(t.removedNodes);try{for(o.s();!(n=o.n()).done;){var i=n.value;i===e.waterMarkerDom&&(e.beDeleteTips&&console.log(e.beDeleteTips),r.appendChild(e.waterMarkerDom))}}catch(a){o.e(a)}finally{o.f()}"attributes"===t.type&&t.target===e.waterMarkerDom&&(e.beChangeTips&&console.log(e.beChangeTips),e.newWaterDiv())}))})),e.observer.observe(r,{childList:!0,subtree:!0,attributes:!0})}else this.unSupportTips&&console.log(this.unSupportTips)},newWaterDiv:function(){var t=this.waterMarkerDom.parentElement;t.removeChild(this.waterMarkerDom),this.waterMarkerDom=document.createElement("div"),this.waterMarkerDom.style.position="absolute",this.waterMarkerDom.style.top="0",this.waterMarkerDom.style.left="0",this.waterMarkerDom.style.width="100%",this.waterMarkerDom.style.height="100%",this.waterMarkerDom.style.pointerEvents="none",this.waterMarkerDom.style.overflow="hidden",this.waterMarkerDom.style.opacity=this.opacity,this.waterMarkerDom.style.zIndex=this.zIndex,this.waterMarkerDom.style.backgroundImage="url(".concat(this.waterImg,")"),t.appendChild(this.waterMarkerDom)},getStyle:function(t,e){return t&&t.currentStyle?t.currentStyle[e]:getComputedStyle(t)[e]},getRandomId:function(){for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",e=t.length,r="",n=0;n<10;n++)r+=t.charAt(Math.floor(Math.random()*e));return r},marker:function(){var t=this;if(!this.isRender){this.isRender=!0;var e=document.createElement("canvas"),r=Number(this.width);e.width=this.crisscross?2*r:r;var n=Number(this.height);e.height=this.crisscross?2*n:n;var o=e.getContext("2d"),i="clockwise"===this.rotateDirection?Number(this.rotateDeg):-Number(this.rotateDeg),a=1===Number(this.oddOrEven)&&this.crisscross?r/2+r:r/2;if(o.translate(a,n/2),o.rotate(i*Math.PI/180),o.translate(-a,-n/2),this.text){var c=this.text.split(",");o.font="".concat(this.fontSize,"px ").concat(this.font),o.fillStyle=this.textColor,o.textBaseline="top";var u=Number(this.lineHeight)*c.length,f=(n-u)/2;if(c.forEach((function(e,n){var i=o.measureText(e).width,a=1===Number(t.oddOrEven)&&t.crisscross?(r-i)/2+r:(r-i)/2;o.fillText(e,a,f+n*Number(t.lineHeight))})),o.setTransform(1,0,0,1,0,0),this.crisscross){var s=1===Number(this.oddOrEven)?r/2:3*r/2;o.translate(s,3*n/2),o.rotate(i*Math.PI/180),o.translate(-s,3*-n/2),c.forEach((function(e,i){var a=o.measureText(e).width,c=0===Number(t.oddOrEven)?(r-a)/2+r:(r-a)/2;o.fillText(e,c,f+i*Number(t.lineHeight)+n)}))}}else{var l=this.waterImgRef;if(o.drawImage(l,1===Number(this.oddOrEven)&&this.crisscross?(r-Number(this.imgWidth))/2+r:(r-Number(this.imgWidth))/2,(n-Number(l.height))/2,this.imgWidth,l.height),o.setTransform(1,0,0,1,0,0),this.crisscross){var d=1===Number(this.oddOrEven)&&this.crisscross?r/2:3*r/2;o.translate(d,3*n/2),o.rotate(i*Math.PI/180),o.translate(-1*d,-1*n*3/2),o.drawImage(l,0===Number(this.oddOrEven)?(r-Number(this.imgWidth))/2+r:(r-Number(this.imgWidth))/2,(n-Number(l.height))/2+n,this.imgWidth,l.height)}if(this.grayImg){for(var p=o.getImageData(0,0,e.width,e.height),h=p.data.length,v=0;v<h;v+=4){var g=p.data[v],b=p.data[v+1],y=p.data[v+2],m=g*this.rgbNum[0]+b*this.rgbNum[1]+y*this.rgbNum[2];p.data[v]=m,p.data[v+1]=m,p.data[v+2]=m}o.putImageData(p,0,0)}}this.waterImg=e.toDataURL("image/png"),this.isRender=!1}}}},h=p;function v(t,e,r,n,o,i,a,c){var u,f="function"===typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=r,f._compiled=!0),n&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},f._ssrRegister=u):o&&(u=c?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(f.functional){f._injectStyles=u;var s=f.render;f.render=function(t,e){return u.call(e),s(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:f}}var g=v(h,u,f,!1,null,null,null),b=g.exports,y={install:function(t){return c(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.component(b.name,b);case 1:case"end":return e.stop()}}),e)})))()}},m=y;e["default"]=m},fc6a:function(t,e,r){var n=r("44ad"),o=r("1d80");t.exports=function(t){return n(o(t))}},fce3:function(t,e,r){var n=r("d039"),o=r("da84"),i=o.RegExp;t.exports=n((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,r){var n=r("4930");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})})); //# sourceMappingURL=vue2-water-marker.umd.min.js.map