diff --git a/assets/401-2a9b5f24.css b/assets/401-2a9b5f24.css new file mode 100644 index 00000000..d6ac225d --- /dev/null +++ b/assets/401-2a9b5f24.css @@ -0,0 +1 @@ +.errPage-container[data-v-9001f8b1]{width:800px;max-width:100%;margin:100px auto}.errPage-container .pan-back-btn[data-v-9001f8b1]{color:#fff;background:#008489;border:none!important}.errPage-container .pan-gif[data-v-9001f8b1]{display:block;margin:0 auto}.errPage-container .pan-img[data-v-9001f8b1]{display:block;width:100%;margin:0 auto}.errPage-container .text-jumbo[data-v-9001f8b1]{font-size:60px;font-weight:700;color:#484848}.errPage-container .list-unstyled[data-v-9001f8b1]{font-size:14px}.errPage-container .list-unstyled li[data-v-9001f8b1]{padding-bottom:5px}.errPage-container .list-unstyled a[data-v-9001f8b1]{color:#008489;text-decoration:none}.errPage-container .list-unstyled a[data-v-9001f8b1]:hover{text-decoration:underline} diff --git a/assets/401-867e9ae9.js b/assets/401-867e9ae9.js new file mode 100644 index 00000000..20346d00 --- /dev/null +++ b/assets/401-867e9ae9.js @@ -0,0 +1 @@ +import{u as s,_ as a}from"./index-3a84706f.js";import{j as e,Z as t,a8 as i,k as r,l as o}from"./vue-aadc59b7.js";import"./fabric-aa9a28c9.js";import"./lodash-es-fcf8a448.js";import"./element-plus-2d3d0866.js";import"./clipper-lib-eae4901e.js";const p={class:"errPage-container"},l=a(e({__name:"401",setup(a){const e=t({ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1});return i(e),s(),(s,a)=>(r(),o("div",p))}}),[["__scopeId","data-v-9001f8b1"]]);export{l as default}; diff --git a/assets/404-1e71c88c.css b/assets/404-1e71c88c.css new file mode 100644 index 00000000..214955ae --- /dev/null +++ b/assets/404-1e71c88c.css @@ -0,0 +1 @@ +.wscn-http404-container[data-v-7aedc72b]{position:absolute;top:40%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wscn-http404[data-v-7aedc72b]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-7aedc72b]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-7aedc72b]{width:100%}.wscn-http404 .pic-404__child[data-v-7aedc72b]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-7aedc72b]{top:17px;left:220px;width:80px;opacity:0;-webkit-animation-name:cloudLeft-7aedc72b;animation-name:cloudLeft-7aedc72b;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .pic-404__child.mid[data-v-7aedc72b]{top:10px;left:420px;width:46px;opacity:0;-webkit-animation-name:cloudMid-7aedc72b;animation-name:cloudMid-7aedc72b;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-delay:1.2s;animation-delay:1.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .pic-404__child.right[data-v-7aedc72b]{top:100px;left:500px;width:62px;opacity:0;-webkit-animation-name:cloudRight-7aedc72b;animation-name:cloudRight-7aedc72b;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes cloudLeft-7aedc72b{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudLeft-7aedc72b{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@-webkit-keyframes cloudMid-7aedc72b{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudMid-7aedc72b{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@-webkit-keyframes cloudRight-7aedc72b{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}@keyframes cloudRight-7aedc72b{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-7aedc72b]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-7aedc72b]{margin-bottom:20px;font-size:32px;font-weight:700;line-height:40px;color:#1482f0;opacity:0;-webkit-animation-name:slideUp-7aedc72b;animation-name:slideUp-7aedc72b;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-7aedc72b]{margin-bottom:10px;font-size:20px;font-weight:700;line-height:24px;color:#222;opacity:0;-webkit-animation-name:slideUp-7aedc72b;animation-name:slideUp-7aedc72b;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-7aedc72b]{margin-bottom:30px;font-size:13px;line-height:21px;color:gray;opacity:0;-webkit-animation-name:slideUp-7aedc72b;animation-name:slideUp-7aedc72b;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__return-home[data-v-7aedc72b]{display:block;float:left;width:110px;height:36px;font-size:14px;line-height:36px;color:#fff;text-align:center;cursor:pointer;background:#1482f0;border-radius:100px;opacity:0;-webkit-animation-name:slideUp-7aedc72b;animation-name:slideUp-7aedc72b;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideUp-7aedc72b{0%{opacity:0;-webkit-transform:translateY(60px);transform:translateY(60px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideUp-7aedc72b{0%{opacity:0;-webkit-transform:translateY(60px);transform:translateY(60px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}} diff --git a/assets/404-ad15d341.js b/assets/404-ad15d341.js new file mode 100644 index 00000000..22c6f4d5 --- /dev/null +++ b/assets/404-ad15d341.js @@ -0,0 +1 @@ +var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,p=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;import{j as i,k as c,l as n}from"./vue-aadc59b7.js";import{_ as l}from"./index-3a84706f.js";import"./fabric-aa9a28c9.js";import"./lodash-es-fcf8a448.js";import"./element-plus-2d3d0866.js";import"./clipper-lib-eae4901e.js";const b={class:"wscn-http404-container"},j=i((m=((e,r)=>{for(var t in r||(r={}))a.call(r,t)&&p(e,t,r[t]);if(o)for(var t of o(r))s.call(r,t)&&p(e,t,r[t]);return e})({},{name:"Page404"}),r(m,t({setup:e=>(e,r)=>(c(),n("div",b))}))));var m;const f=l(j,[["__scopeId","data-v-7aedc72b"]]);export{f as default}; diff --git a/assets/clipper-lib-eae4901e.js b/assets/clipper-lib-eae4901e.js new file mode 100644 index 00000000..f8b33e56 --- /dev/null +++ b/assets/clipper-lib-eae4901e.js @@ -0,0 +1 @@ +var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function i(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var i=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),i}var n,o={exports:{}};n=o,function(){var t,e={version:"6.4.2.2",use_lines:!0,use_xyz:!1},i=!1;if(n.exports?(n.exports=e,i=!0):"undefined"!=typeof document?window.ClipperLib=e:self.ClipperLib=e,i)o="chrome",t="Netscape";else{var o=navigator.userAgent.toString().toLowerCase();t=navigator.appName}var r,s={};function l(t,i,n){e.biginteger_used=1,null!=t&&("number"==typeof t&&void 0===i?this.fromInt(t):"number"==typeof t?this.fromNumber(t,i,n):null==i&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,i))}function p(){return new l(null,void 0,void 0)}-1!=o.indexOf("chrome")&&-1==o.indexOf("chromium")?s.chrome=1:s.chrome=0,-1!=o.indexOf("chromium")?s.chromium=1:s.chromium=0,-1!=o.indexOf("safari")&&-1==o.indexOf("chrome")&&-1==o.indexOf("chromium")?s.safari=1:s.safari=0,-1!=o.indexOf("firefox")?s.firefox=1:s.firefox=0,-1!=o.indexOf("firefox/17")?s.firefox17=1:s.firefox17=0,-1!=o.indexOf("firefox/15")?s.firefox15=1:s.firefox15=0,-1!=o.indexOf("firefox/3")?s.firefox3=1:s.firefox3=0,-1!=o.indexOf("opera")?s.opera=1:s.opera=0,-1!=o.indexOf("msie 10")?s.msie10=1:s.msie10=0,-1!=o.indexOf("msie 9")?s.msie9=1:s.msie9=0,-1!=o.indexOf("msie 8")?s.msie8=1:s.msie8=0,-1!=o.indexOf("msie 7")?s.msie7=1:s.msie7=0,-1!=o.indexOf("msie ")?s.msie=1:s.msie=0,e.biginteger_used=null,"Microsoft Internet Explorer"==t?(l.prototype.am=function(t,e,i,n,o,r){for(var s=32767&e,l=e>>15;--r>=0;){var p=32767&this[t],u=this[t++]>>15,h=l*p+u*s;o=((p=s*p+((32767&h)<<15)+i[n]+(1073741823&o))>>>30)+(h>>>15)+l*u+(o>>>30),i[n++]=1073741823&p}return o},r=30):"Netscape"!=t?(l.prototype.am=function(t,e,i,n,o,r){for(;--r>=0;){var s=e*this[t++]+i[n]+o;o=Math.floor(s/67108864),i[n++]=67108863&s}return o},r=26):(l.prototype.am=function(t,e,i,n,o,r){for(var s=16383&e,l=e>>14;--r>=0;){var p=16383&this[t],u=this[t++]>>14,h=l*p+u*s;o=((p=s*p+((16383&h)<<14)+i[n]+o)>>28)+(h>>14)+l*u,i[n++]=268435455&p}return o},r=28),l.prototype.DB=r,l.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function c(t){this.m=t}function v(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function E(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function T(){}function g(t){return t}function X(t){this.r2=p(),this.q3=p(),l.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}c.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},c.prototype.revert=function(t){return t},c.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},c.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},c.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},v.prototype.convert=function(t){var e=p();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(l.ZERO)>0&&this.m.subTo(e,e),e},v.prototype.revert=function(t){var e=p();return t.copyTo(e),this.reduce(e),e},v.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},v.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},v.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},l.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},l.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},l.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,o=!1,r=0;--n>=0;){var s=8==i?255&t[n]:P(t,n);s<0?"-"==t.charAt(n)&&(o=!0):(o=!1,0==r?this[this.t++]=s:r+i>this.DB?(this[this.t-1]|=(s&(1<>this.DB-r):this[this.t-1]|=s<=this.DB&&(r-=this.DB))}8==i&&0!=(128&t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},l.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},l.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+s+1]=this[i]>>o|l,l=(this[i]&r)<=0;--i)e[i]=0;e[s]=l,e.t=this.t+s+1,e.s=this.s,e.clamp()},l.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,o=this.DB-n,r=(1<>n;for(var s=i+1;s>n;n>0&&(e[this.t-i-1]|=(this.s&r)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},l.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),o=i.t;for(e.t=o+n.t;--o>=0;)e[o]=0;for(o=0;o=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},l.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var o=this.abs();if(o.t0?(n.lShiftTo(h,r),o.lShiftTo(h,i)):(n.copyTo(r),o.copyTo(i));var a=r.t,f=r[a-1];if(0!=f){var d=f*(1<1?r[a-2]>>this.F2:0),P=this.FV/d,m=(1<=0&&(i[i.t++]=1,i.subTo(I,i)),l.ONE.dlShiftTo(a,I),I.subTo(r,r);r.t=0;){var x=i[--v]==f?this.DM:Math.floor(i[v]*P+(i[v-1]+c)*m);if((i[v]+=r.am(0,x,i,C,0,a))0&&i.rShiftTo(h,i),s<0&&l.ZERO.subTo(i,i)}}},l.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},l.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},l.prototype.exp=function(t,e){if(t>4294967295||t<1)return l.ONE;var i=p(),n=p(),o=e.convert(this),r=y(t)-1;for(o.copyTo(i);--r>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,o,i);else{var s=i;i=n,n=s}return e.revert(i)},l.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(l>l)>0&&(o=!0,r=d(i));s>=0;)l>(l+=this.DB-e)):(i=this[s]>>(l-=e)&n,l<=0&&(l+=this.DB,--s)),i>0&&(o=!0),o&&(r+=d(i));return o?r:"0"},l.prototype.negate=function(){var t=p();return l.ZERO.subTo(this,t),t},l.prototype.abs=function(){return this.s<0?this.negate():this},l.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},l.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+y(this[this.t-1]^this.s&this.DM)},l.prototype.mod=function(t){var e=p();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(l.ZERO)>0&&t.subTo(e,e),e},l.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new c(e):new v(e),this.exp(t,i)},l.ZERO=m(0),l.ONE=m(1),T.prototype.convert=g,T.prototype.revert=g,T.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},T.prototype.sqrTo=function(t,e){t.squareTo(e)},X.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=p();return t.copyTo(e),this.reduce(e),e},X.prototype.revert=function(t){return t},X.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},X.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},X.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],N=(1<<26)/O[O.length-1];l.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},l.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=m(i),o=p(),r=p(),s="";for(this.divRemTo(n,o,r);o.signum()>0;)s=(i+r.intValue()).toString(t).substr(1)+s,o.divRemTo(n,o,r);return r.intValue().toString(t)+s},l.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),o=!1,r=0,s=0,p=0;p=i&&(this.dMultiply(n),this.dAddOffset(s,0),r=0,s=0))}r>0&&(this.dMultiply(Math.pow(e,r)),this.dAddOffset(s,0)),o&&l.ZERO.subTo(this,this)},l.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(l.ONE.shiftLeft(t-1),I,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(l.ONE.shiftLeft(t-1),this);else{var n=new Array,o=7&t;n.length=1+(t>>3),e.nextBytes(n),o>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},l.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},l.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},l.prototype.multiplyLowerTo=function(t,e,i){var n,o=Math.min(this.t+t.t,e);for(i.s=0,i.t=o;o>0;)i[--o]=0;for(n=i.t-this.t;o=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},l.prototype.millerRabin=function(t){var e=this.subtract(l.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>O.length&&(t=O.length);for(var o=p(),r=0;r>24},l.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},l.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},l.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,o=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[o++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==o&&(128&this.s)!=(128&i)&&++o,(o>0||i!=this.s)&&(e[o++]=i);return e},l.prototype.equals=function(t){return 0==this.compareTo(t)},l.prototype.min=function(t){return this.compareTo(t)<0?this:t},l.prototype.max=function(t){return this.compareTo(t)>0?this:t},l.prototype.and=function(t){var e=p();return this.bitwiseTo(t,C,e),e},l.prototype.or=function(t){var e=p();return this.bitwiseTo(t,I,e),e},l.prototype.xor=function(t){var e=p();return this.bitwiseTo(t,x,e),e},l.prototype.andNot=function(t){var e=p();return this.bitwiseTo(t,_,e),e},l.prototype.not=function(){for(var t=p(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var a=p();for(n.sqrTo(s[1],a);l<=h;)s[l]=p(),n.mulTo(a,s[l-2],s[l]),l+=2}var f,d,P=t.t-1,C=!0,I=p();for(o=y(t[P])-1;P>=0;){for(o>=u?f=t[P]>>o-u&h:(f=(t[P]&(1<0&&(f|=t[P-1]>>this.DB+o-u)),l=i;0==(1&f);)f>>=1,--l;if((o-=l)<0&&(o+=this.DB,--P),C)s[f].copyTo(r),C=!1;else{for(;l>1;)n.sqrTo(r,I),n.sqrTo(I,r),l-=2;l>0?n.sqrTo(r,I):(d=r,r=I,I=d),n.mulTo(I,s[f],r)}for(;P>=0&&0==(t[P]&1<=0?(i.subTo(n,i),e&&o.subTo(s,o),r.subTo(p,r)):(n.subTo(i,n),e&&s.subTo(o,s),p.subTo(r,p))}return 0!=n.compareTo(l.ONE)?l.ZERO:p.compareTo(t)>=0?p.subtract(t):p.signum()<0?(p.addTo(t,p),p.signum()<0?p.add(t):p):p},l.prototype.pow=function(t){return this.exp(t,new T)},l.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var o=e.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)return e;for(o0&&(e.rShiftTo(r,e),i.rShiftTo(r,i));e.signum()>0;)(o=e.getLowestSetBit())>0&&e.rShiftTo(o,e),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},l.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=O[O.length-1]){for(e=0;e0},Y.op_LessThan=function(t,e){return t.compareTo(e)<0},Y.op_Addition=function(t,e){return new Y(t,void 0,void 0).add(new Y(e,void 0,void 0))},Y.op_Subtraction=function(t,e){return new Y(t,void 0,void 0).subtract(new Y(e,void 0,void 0))},Y.Int128Mul=function(t,e){return new Y(t,void 0,void 0).multiply(new Y(e,void 0,void 0))},Y.op_Division=function(t,e){return t.divide(e)},Y.prototype.ToDouble=function(){return parseFloat(this.toString())};var S=function(t,e){var i;if(void 0===Object.getOwnPropertyNames){for(i in e.prototype)void 0!==t.prototype[i]&&t.prototype[i]!==Object.prototype[i]||(t.prototype[i]=e.prototype[i]);for(i in e)void 0===t[i]&&(t[i]=e[i]);t.$baseCtor=e}else{for(var n=Object.getOwnPropertyNames(e.prototype),o=0;o0?this.m_Childs[0]:this.GetNextSiblingUp()},e.PolyNode.prototype.GetNextSiblingUp=function(){return null===this.m_Parent?null:this.m_Index===this.m_Parent.m_Childs.length-1?this.m_Parent.GetNextSiblingUp():this.m_Parent.m_Childs[this.m_Index+1]},e.PolyNode.prototype.Childs=function(){return this.m_Childs},e.PolyNode.prototype.Parent=function(){return this.m_Parent},e.PolyNode.prototype.IsHole=function(){return this.IsHoleNode()},e.PolyTree=function(){this.m_AllPolys=[],e.PolyNode.call(this)},e.PolyTree.prototype.Clear=function(){for(var t=0,e=this.m_AllPolys.length;t0?this.m_Childs[0]:null},e.PolyTree.prototype.Total=function(){var t=this.m_AllPolys.length;return t>0&&this.m_Childs[0]!==this.m_AllPolys[0]&&t--,t},S(e.PolyTree,e.PolyNode),e.Math_Abs_Int64=e.Math_Abs_Int32=e.Math_Abs_Double=function(t){return Math.abs(t)},e.Math_Max_Int32_Int32=function(t,e){return Math.max(t,e)},s.msie||s.opera||s.safari?e.Cast_Int32=function(t){return 0|t}:e.Cast_Int32=function(t){return~~t},void 0===Number.toInteger&&(Number.toInteger=null),s.chrome?e.Cast_Int64=function(t){return t<-2147483648||t>2147483647?t<0?Math.ceil(t):Math.floor(t):~~t}:s.firefox&&"function"==typeof Number.toInteger?e.Cast_Int64=function(t){return Number.toInteger(t)}:s.msie7||s.msie8?e.Cast_Int64=function(t){return parseInt(t,10)}:s.msie?e.Cast_Int64=function(t){return t<-2147483648||t>2147483647?t<0?Math.ceil(t):Math.floor(t):0|t}:e.Cast_Int64=function(t){return t<0?Math.ceil(t):Math.floor(t)},e.Clear=function(t){t.length=0},e.PI=3.141592653589793,e.PI2=6.283185307179586,e.IntPoint=function(){var t=arguments,i=t.length;if(this.X=0,this.Y=0,e.use_xyz)if(this.Z=0,3===i)this.X=t[0],this.Y=t[1],this.Z=t[2];else if(2===i)this.X=t[0],this.Y=t[1],this.Z=0;else if(1===i)if(t[0]instanceof e.DoublePoint){var n=t[0];this.X=e.Clipper.Round(n.X),this.Y=e.Clipper.Round(n.Y),this.Z=0}else void 0===(o=t[0]).Z&&(o.Z=0),this.X=o.X,this.Y=o.Y,this.Z=o.Z;else this.X=0,this.Y=0,this.Z=0;else if(2===i)this.X=t[0],this.Y=t[1];else if(1===i)if(t[0]instanceof e.DoublePoint)n=t[0],this.X=e.Clipper.Round(n.X),this.Y=e.Clipper.Round(n.Y);else{var o=t[0];this.X=o.X,this.Y=o.Y}else this.X=0,this.Y=0},e.IntPoint.op_Equality=function(t,e){return t.X===e.X&&t.Y===e.Y},e.IntPoint.op_Inequality=function(t,e){return t.X!==e.X||t.Y!==e.Y},e.IntPoint0=function(){this.X=0,this.Y=0,e.use_xyz&&(this.Z=0)},e.IntPoint0.prototype=e.IntPoint.prototype,e.IntPoint1=function(t){this.X=t.X,this.Y=t.Y,e.use_xyz&&(void 0===t.Z?this.Z=0:this.Z=t.Z)},e.IntPoint1.prototype=e.IntPoint.prototype,e.IntPoint1dp=function(t){this.X=e.Clipper.Round(t.X),this.Y=e.Clipper.Round(t.Y),e.use_xyz&&(this.Z=0)},e.IntPoint1dp.prototype=e.IntPoint.prototype,e.IntPoint2=function(t,i,n){this.X=t,this.Y=i,e.use_xyz&&(this.Z=void 0===n?0:n)},e.IntPoint2.prototype=e.IntPoint.prototype,e.IntRect=function(){var t=arguments,e=t.length;if(4===e)this.left=t[0],this.top=t[1],this.right=t[2],this.bottom=t[3];else if(1===e){var i=t[0];this.left=i.left,this.top=i.top,this.right=i.right,this.bottom=i.bottom}else this.left=0,this.top=0,this.right=0,this.bottom=0},e.IntRect0=function(){this.left=0,this.top=0,this.right=0,this.bottom=0},e.IntRect0.prototype=e.IntRect.prototype,e.IntRect1=function(t){this.left=t.left,this.top=t.top,this.right=t.right,this.bottom=t.bottom},e.IntRect1.prototype=e.IntRect.prototype,e.IntRect4=function(t,e,i,n){this.left=t,this.top=e,this.right=i,this.bottom=n},e.IntRect4.prototype=e.IntRect.prototype,e.ClipType={ctIntersection:0,ctUnion:1,ctDifference:2,ctXor:3},e.PolyType={ptSubject:0,ptClip:1},e.PolyFillType={pftEvenOdd:0,pftNonZero:1,pftPositive:2,pftNegative:3},e.JoinType={jtSquare:0,jtRound:1,jtMiter:2},e.EndType={etOpenSquare:0,etOpenRound:1,etOpenButt:2,etClosedLine:3,etClosedPolygon:4},e.EdgeSide={esLeft:0,esRight:1},e.Direction={dRightToLeft:0,dLeftToRight:1},e.TEdge=function(){this.Bot=new e.IntPoint0,this.Curr=new e.IntPoint0,this.Top=new e.IntPoint0,this.Delta=new e.IntPoint0,this.Dx=0,this.PolyTyp=e.PolyType.ptSubject,this.Side=e.EdgeSide.esLeft,this.WindDelta=0,this.WindCnt=0,this.WindCnt2=0,this.OutIdx=0,this.Next=null,this.Prev=null,this.NextInLML=null,this.NextInAEL=null,this.PrevInAEL=null,this.NextInSEL=null,this.PrevInSEL=null},e.IntersectNode=function(){this.Edge1=null,this.Edge2=null,this.Pt=new e.IntPoint0},e.MyIntersectNodeSort=function(){},e.MyIntersectNodeSort.Compare=function(t,e){var i=e.Pt.Y-t.Pt.Y;return i>0?1:i<0?-1:0},e.LocalMinima=function(){this.Y=0,this.LeftBound=null,this.RightBound=null,this.Next=null},e.Scanbeam=function(){this.Y=0,this.Next=null},e.Maxima=function(){this.X=0,this.Next=null,this.Prev=null},e.OutRec=function(){this.Idx=0,this.IsHole=!1,this.IsOpen=!1,this.FirstLeft=null,this.Pts=null,this.BottomPt=null,this.PolyNode=null},e.OutPt=function(){this.Idx=0,this.Pt=new e.IntPoint0,this.Next=null,this.Prev=null},e.Join=function(){this.OutPt1=null,this.OutPt2=null,this.OffPt=new e.IntPoint0},e.ClipperBase=function(){this.m_MinimaList=null,this.m_CurrentLM=null,this.m_edges=new Array,this.m_UseFullRange=!1,this.m_HasOpenPaths=!1,this.PreserveCollinear=!1,this.m_Scanbeam=null,this.m_PolyOuts=null,this.m_ActiveEdges=null},e.ClipperBase.horizontal=-9007199254740992,e.ClipperBase.Skip=-2,e.ClipperBase.Unassigned=-1,e.ClipperBase.tolerance=1e-20,e.ClipperBase.loRange=47453132,e.ClipperBase.hiRange=0xfffffffffffff,e.ClipperBase.near_zero=function(t){return t>-e.ClipperBase.tolerance&&te.X==t.Xe.Y==t.Ye.X==t.Xe.Y==t.Ye.ClipperBase.hiRange||t.Y>e.ClipperBase.hiRange||-t.X>e.ClipperBase.hiRange||-t.Y>e.ClipperBase.hiRange)&&e.Error("Coordinate outside allowed range in RangeTest()."):(t.X>e.ClipperBase.loRange||t.Y>e.ClipperBase.loRange||-t.X>e.ClipperBase.loRange||-t.Y>e.ClipperBase.loRange)&&(i.Value=!0,this.RangeTest(t,i))},e.ClipperBase.prototype.InitEdge=function(t,i,n,o){t.Next=i,t.Prev=n,t.Curr.X=o.X,t.Curr.Y=o.Y,e.use_xyz&&(t.Curr.Z=o.Z),t.OutIdx=-1},e.ClipperBase.prototype.InitEdge2=function(t,i){t.Curr.Y>=t.Next.Curr.Y?(t.Bot.X=t.Curr.X,t.Bot.Y=t.Curr.Y,e.use_xyz&&(t.Bot.Z=t.Curr.Z),t.Top.X=t.Next.Curr.X,t.Top.Y=t.Next.Curr.Y,e.use_xyz&&(t.Top.Z=t.Next.Curr.Z)):(t.Top.X=t.Curr.X,t.Top.Y=t.Curr.Y,e.use_xyz&&(t.Top.Z=t.Curr.Z),t.Bot.X=t.Next.Curr.X,t.Bot.Y=t.Next.Curr.Y,e.use_xyz&&(t.Bot.Z=t.Next.Curr.Z)),this.SetDx(t),t.PolyTyp=i},e.ClipperBase.prototype.FindNextLocMin=function(t){for(var i;;){for(;e.IntPoint.op_Inequality(t.Bot,t.Prev.Bot)||e.IntPoint.op_Equality(t.Curr,t.Top);)t=t.Next;if(t.Dx!==e.ClipperBase.horizontal&&t.Prev.Dx!==e.ClipperBase.horizontal)break;for(;t.Prev.Dx===e.ClipperBase.horizontal;)t=t.Prev;for(i=t;t.Dx===e.ClipperBase.horizontal;)t=t.Next;if(t.Top.Y!==t.Prev.Bot.Y){i.Prev.Bot.Xr.Next.Top.X&&(r=o.Prev)}for(;t!==r;)t.NextInLML=t.Next,t.Dx===e.ClipperBase.horizontal&&t!==n&&t.Bot.X!==t.Prev.Top.X&&this.ReverseHorizontal(t),t=t.Next;t.Dx===e.ClipperBase.horizontal&&t!==n&&t.Bot.X!==t.Prev.Top.X&&this.ReverseHorizontal(t),r=r.Next}else{for(;r.Top.Y===r.Prev.Bot.Y&&r.Prev.OutIdx!==e.ClipperBase.Skip;)r=r.Prev;if(r.Dx===e.ClipperBase.horizontal&&r.Prev.OutIdx!==e.ClipperBase.Skip){for(o=r;o.Next.Dx===e.ClipperBase.horizontal;)o=o.Next;(o.Next.Top.X===r.Prev.Top.X||o.Next.Top.X>r.Prev.Top.X)&&(r=o.Next)}for(;t!==r;)t.NextInLML=t.Prev,t.Dx===e.ClipperBase.horizontal&&t!==n&&t.Bot.X!==t.Next.Top.X&&this.ReverseHorizontal(t),t=t.Prev;t.Dx===e.ClipperBase.horizontal&&t!==n&&t.Bot.X!==t.Next.Top.X&&this.ReverseHorizontal(t),r=r.Prev}return r},e.ClipperBase.prototype.AddPath=function(t,i,n){e.use_lines?n||i!==e.PolyType.ptClip||e.Error("AddPath: Open paths must be subject."):n||e.Error("AddPath: Open paths have been disabled.");var o=t.length-1;if(n)for(;o>0&&e.IntPoint.op_Equality(t[o],t[0]);)--o;for(;o>0&&e.IntPoint.op_Equality(t[o],t[o-1]);)--o;if(n&&o<2||!n&&o<1)return!1;for(var r=new Array,s=0;s<=o;s++)r.push(new e.TEdge);var l=!0;r[1].Curr.X=t[1].X,r[1].Curr.Y=t[1].Y,e.use_xyz&&(r[1].Curr.Z=t[1].Z);var p={Value:this.m_UseFullRange};for(this.RangeTest(t[0],p),this.m_UseFullRange=p.Value,p.Value=this.m_UseFullRange,this.RangeTest(t[o],p),this.m_UseFullRange=p.Value,this.InitEdge(r[0],r[1],r[o],t[0]),this.InitEdge(r[o],r[0],r[o-1],t[o]),s=o-1;s>=1;--s)p.Value=this.m_UseFullRange,this.RangeTest(t[s],p),this.m_UseFullRange=p.Value,this.InitEdge(r[s],r[s+1],r[s-1],t[s]);for(var u,h=r[0],a=h,f=h;;)if(a.Curr!==a.Next.Curr||!n&&a.Next===h){if(a.Prev===a.Next)break;if(!n||!e.ClipperBase.SlopesEqual4(a.Prev.Curr,a.Curr,a.Next.Curr,this.m_UseFullRange)||this.PreserveCollinear&&this.Pt2IsBetweenPt1AndPt3(a.Prev.Curr,a.Curr,a.Next.Curr)){if((a=a.Next)===f||!n&&a.Next===h)break}else a===h&&(h=a.Next),f=a=(a=this.RemoveEdge(a)).Prev}else{if(a===a.Next)break;a===h&&(h=a.Next),f=a=this.RemoveEdge(a)}if(!n&&a===a.Next||n&&a.Prev===a.Next)return!1;n||(this.m_HasOpenPaths=!0,h.Prev.OutIdx=e.ClipperBase.Skip),a=h;do{this.InitEdge2(a,i),a=a.Next,l&&a.Curr.Y!==h.Curr.Y&&(l=!1)}while(a!==h);if(l){if(n)return!1;for(a.Prev.OutIdx=e.ClipperBase.Skip,(P=new e.LocalMinima).Next=null,P.Y=a.Bot.Y,P.LeftBound=null,P.RightBound=a,P.RightBound.Side=e.EdgeSide.esRight,P.RightBound.WindDelta=0;a.Bot.X!==a.Prev.Top.X&&this.ReverseHorizontal(a),a.Next.OutIdx!==e.ClipperBase.Skip;)a.NextInLML=a.Next,a=a.Next;return this.InsertLocalMinima(P),this.m_edges.push(r),!0}this.m_edges.push(r);var d=null;for(e.IntPoint.op_Equality(a.Prev.Bot,a.Prev.Top)&&(a=a.Next);(a=this.FindNextLocMin(a))!==d;){var P;null===d&&(d=a),(P=new e.LocalMinima).Next=null,P.Y=a.Bot.Y,a.Dxt.X==i.Xt.Y==i.Y=this.m_MinimaList.Y)t.Next=this.m_MinimaList,this.m_MinimaList=t;else{for(var e=this.m_MinimaList;null!==e.Next&&t.Ythis.m_Scanbeam.Y){var i=new e.Scanbeam;i.Y=t,i.Next=this.m_Scanbeam,this.m_Scanbeam=i}else{for(var n=this.m_Scanbeam;null!==n.Next&&t<=n.Next.Y;)n=n.Next;if(t===n.Y)return;var o=new e.Scanbeam;o.Y=t,o.Next=n.Next,n.Next=o}},e.ClipperBase.prototype.PopScanbeam=function(t){return null===this.m_Scanbeam?(t.v=0,!1):(t.v=this.m_Scanbeam.Y,this.m_Scanbeam=this.m_Scanbeam.Next,!0)},e.ClipperBase.prototype.LocalMinimaPending=function(){return null!==this.m_CurrentLM},e.ClipperBase.prototype.CreateOutRec=function(){var t=new e.OutRec;return t.Idx=e.ClipperBase.Unassigned,t.IsHole=!1,t.IsOpen=!1,t.FirstLeft=null,t.Pts=null,t.BottomPt=null,t.PolyNode=null,this.m_PolyOuts.push(t),t.Idx=this.m_PolyOuts.length-1,t},e.ClipperBase.prototype.DisposeOutRec=function(t){var e=this.m_PolyOuts[t];e.Pts=null,e=null,this.m_PolyOuts[t]=null},e.ClipperBase.prototype.UpdateEdgeIntoAEL=function(t){null===t.NextInLML&&e.Error("UpdateEdgeIntoAEL: invalid call");var i=t.PrevInAEL,n=t.NextInAEL;return t.NextInLML.OutIdx=t.OutIdx,null!==i?i.NextInAEL=t.NextInLML:this.m_ActiveEdges=t.NextInLML,null!==n&&(n.PrevInAEL=t.NextInLML),t.NextInLML.Side=t.Side,t.NextInLML.WindDelta=t.WindDelta,t.NextInLML.WindCnt=t.WindCnt,t.NextInLML.WindCnt2=t.WindCnt2,(t=t.NextInLML).Curr.X=t.Bot.X,t.Curr.Y=t.Bot.Y,t.PrevInAEL=i,t.NextInAEL=n,e.ClipperBase.IsHorizontal(t)||this.InsertScanbeam(t.Top.Y),t},e.ClipperBase.prototype.SwapPositionsInAEL=function(t,e){if(t.NextInAEL!==t.PrevInAEL&&e.NextInAEL!==e.PrevInAEL){if(t.NextInAEL===e){var i=e.NextInAEL;null!==i&&(i.PrevInAEL=t);var n=t.PrevInAEL;null!==n&&(n.NextInAEL=e),e.PrevInAEL=n,e.NextInAEL=t,t.PrevInAEL=e,t.NextInAEL=i}else if(e.NextInAEL===t){var o=t.NextInAEL;null!==o&&(o.PrevInAEL=e);var r=e.PrevInAEL;null!==r&&(r.NextInAEL=t),t.PrevInAEL=r,t.NextInAEL=e,e.PrevInAEL=t,e.NextInAEL=o}else{var s=t.NextInAEL,l=t.PrevInAEL;t.NextInAEL=e.NextInAEL,null!==t.NextInAEL&&(t.NextInAEL.PrevInAEL=t),t.PrevInAEL=e.PrevInAEL,null!==t.PrevInAEL&&(t.PrevInAEL.NextInAEL=t),e.NextInAEL=s,null!==e.NextInAEL&&(e.NextInAEL.PrevInAEL=e),e.PrevInAEL=l,null!==e.PrevInAEL&&(e.PrevInAEL.NextInAEL=e)}null===t.PrevInAEL?this.m_ActiveEdges=t:null===e.PrevInAEL&&(this.m_ActiveEdges=e)}},e.ClipperBase.prototype.DeleteFromAEL=function(t){var e=t.PrevInAEL,i=t.NextInAEL;null===e&&null===i&&t!==this.m_ActiveEdges||(null!==e?e.NextInAEL=i:this.m_ActiveEdges=i,null!==i&&(i.PrevInAEL=e),t.NextInAEL=null,t.PrevInAEL=null)},e.Clipper=function(t){void 0===t&&(t=0),this.m_PolyOuts=null,this.m_ClipType=e.ClipType.ctIntersection,this.m_Scanbeam=null,this.m_Maxima=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=null,this.m_IntersectNodeComparer=null,this.m_ExecuteLocked=!1,this.m_ClipFillType=e.PolyFillType.pftEvenOdd,this.m_SubjFillType=e.PolyFillType.pftEvenOdd,this.m_Joins=null,this.m_GhostJoins=null,this.m_UsingPolyTree=!1,this.ReverseSolution=!1,this.StrictlySimple=!1,e.ClipperBase.call(this),this.m_Scanbeam=null,this.m_Maxima=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=new Array,this.m_IntersectNodeComparer=e.MyIntersectNodeSort.Compare,this.m_ExecuteLocked=!1,this.m_UsingPolyTree=!1,this.m_PolyOuts=new Array,this.m_Joins=new Array,this.m_GhostJoins=new Array,this.ReverseSolution=0!=(1&t),this.StrictlySimple=0!=(2&t),this.PreserveCollinear=0!=(4&t),e.use_xyz&&(this.ZFillFunction=null)},e.Clipper.ioReverseSolution=1,e.Clipper.ioStrictlySimple=2,e.Clipper.ioPreserveCollinear=4,e.Clipper.prototype.Clear=function(){0!==this.m_edges.length&&(this.DisposeAllPolyPts(),e.ClipperBase.prototype.Clear.call(this))},e.Clipper.prototype.InsertMaxima=function(t){var i=new e.Maxima;if(i.X=t,null===this.m_Maxima)this.m_Maxima=i,this.m_Maxima.Next=null,this.m_Maxima.Prev=null;else if(t=n.Next.X;)n=n.Next;if(t===n.X)return;i.Next=n.Next,i.Prev=n,null!==n.Next&&(n.Next.Prev=i),n.Next=i}},e.Clipper.prototype.Execute=function(){var t=arguments,i=t.length,n=t[1]instanceof e.PolyTree;if(4===i&&!n){var o=t[0],r=t[1],s=t[2],l=t[3];if(this.m_ExecuteLocked)return!1;this.m_HasOpenPaths&&e.Error("Error: PolyTree struct is needed for open path clipping."),this.m_ExecuteLocked=!0,e.Clear(r),this.m_SubjFillType=s,this.m_ClipFillType=l,this.m_ClipType=o,this.m_UsingPolyTree=!1;try{(u=this.ExecuteInternal())&&this.BuildResult(r)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return u}if(4===i&&n){o=t[0];var p=t[1];if(s=t[2],l=t[3],this.m_ExecuteLocked)return!1;this.m_ExecuteLocked=!0,this.m_SubjFillType=s,this.m_ClipFillType=l,this.m_ClipType=o,this.m_UsingPolyTree=!0;try{var u;(u=this.ExecuteInternal())&&this.BuildResult2(p)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return u}return 2!==i||n?2===i&&n?(o=t[0],p=t[1],this.Execute(o,p,e.PolyFillType.pftEvenOdd,e.PolyFillType.pftEvenOdd)):void 0:(o=t[0],r=t[1],this.Execute(o,r,e.PolyFillType.pftEvenOdd,e.PolyFillType.pftEvenOdd))},e.Clipper.prototype.FixHoleLinkage=function(t){if(null!==t.FirstLeft&&(t.IsHole===t.FirstLeft.IsHole||null===t.FirstLeft.Pts)){for(var e=t.FirstLeft;null!==e&&(e.IsHole===t.IsHole||null===e.Pts);)e=e.FirstLeft;t.FirstLeft=e}},e.Clipper.prototype.ExecuteInternal=function(){try{this.Reset(),this.m_SortedEdges=null,this.m_Maxima=null;var t,e,i,n={},o={};if(!this.PopScanbeam(n))return!1;for(this.InsertLocalMinimaIntoAEL(n.v);this.PopScanbeam(o)||this.LocalMinimaPending();){if(this.ProcessHorizontals(),this.m_GhostJoins.length=0,!this.ProcessIntersections(o.v))return!1;this.ProcessEdgesAtTopOfScanbeam(o.v),n.v=o.v,this.InsertLocalMinimaIntoAEL(n.v)}for(e=0,i=this.m_PolyOuts.length;e0&&this.ReversePolyPtLinks(t.Pts);for(this.JoinCommonEdges(),e=0,i=this.m_PolyOuts.length;e0&&0!==n.WindDelta)for(var s=0,l=this.m_GhostJoins.length;s=0&&null!==i.PrevInAEL&&i.PrevInAEL.Curr.X===i.Bot.X&&i.PrevInAEL.OutIdx>=0&&e.ClipperBase.SlopesEqual5(i.PrevInAEL.Curr,i.PrevInAEL.Top,i.Curr,i.Top,this.m_UseFullRange)&&0!==i.WindDelta&&0!==i.PrevInAEL.WindDelta){var u=this.AddOutPt(i.PrevInAEL,i.Bot);this.AddJoin(r,u,i.Top)}if(i.NextInAEL!==n){n.OutIdx>=0&&n.PrevInAEL.OutIdx>=0&&e.ClipperBase.SlopesEqual5(n.PrevInAEL.Curr,n.PrevInAEL.Top,n.Curr,n.Top,this.m_UseFullRange)&&0!==n.WindDelta&&0!==n.PrevInAEL.WindDelta&&(u=this.AddOutPt(n.PrevInAEL,n.Bot),this.AddJoin(r,u,n.Top));var h=i.NextInAEL;if(null!==h)for(;h!==n;)this.IntersectEdges(n,h,i.Curr),h=h.NextInAEL}}}},e.Clipper.prototype.InsertEdgeIntoAEL=function(t,e){if(null===this.m_ActiveEdges)t.PrevInAEL=null,t.NextInAEL=null,this.m_ActiveEdges=t;else if(null===e&&this.E2InsertsBeforeE1(this.m_ActiveEdges,t))t.PrevInAEL=null,t.NextInAEL=this.m_ActiveEdges,this.m_ActiveEdges.PrevInAEL=t,this.m_ActiveEdges=t;else{for(null===e&&(e=this.m_ActiveEdges);null!==e.NextInAEL&&!this.E2InsertsBeforeE1(e.NextInAEL,t);)e=e.NextInAEL;t.NextInAEL=e.NextInAEL,null!==e.NextInAEL&&(e.NextInAEL.PrevInAEL=t),t.PrevInAEL=e,e.NextInAEL=t}},e.Clipper.prototype.E2InsertsBeforeE1=function(t,i){return i.Curr.X===t.Curr.X?i.Top.Y>t.Top.Y?i.Top.Xe.Clipper.TopX(i,t.Top.Y):i.Curr.X0;default:return t.WindCnt2<0}case e.ClipType.ctUnion:switch(n){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return 0===t.WindCnt2;case e.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}case e.ClipType.ctDifference:if(t.PolyTyp===e.PolyType.ptSubject)switch(n){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return 0===t.WindCnt2;case e.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}else switch(n){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return 0!==t.WindCnt2;case e.PolyFillType.pftPositive:return t.WindCnt2>0;default:return t.WindCnt2<0}case e.ClipType.ctXor:if(0!==t.WindDelta)return!0;switch(n){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return 0===t.WindCnt2;case e.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}}return!0},e.Clipper.prototype.SetWindingCount=function(t){for(var i=t.PrevInAEL;null!==i&&(i.PolyTyp!==t.PolyTyp||0===i.WindDelta);)i=i.PrevInAEL;if(null===i){var n=t.PolyTyp===e.PolyType.ptSubject?this.m_SubjFillType:this.m_ClipFillType;0===t.WindDelta?t.WindCnt=n===e.PolyFillType.pftNegative?-1:1:t.WindCnt=t.WindDelta,t.WindCnt2=0,i=this.m_ActiveEdges}else if(0===t.WindDelta&&this.m_ClipType!==e.ClipType.ctUnion)t.WindCnt=1,t.WindCnt2=i.WindCnt2,i=i.NextInAEL;else if(this.IsEvenOddFillType(t)){if(0===t.WindDelta){for(var o=!0,r=i.PrevInAEL;null!==r;)r.PolyTyp===i.PolyTyp&&0!==r.WindDelta&&(o=!o),r=r.PrevInAEL;t.WindCnt=o?0:1}else t.WindCnt=t.WindDelta;t.WindCnt2=i.WindCnt2,i=i.NextInAEL}else i.WindCnt*i.WindDelta<0?Math.abs(i.WindCnt)>1?i.WindDelta*t.WindDelta<0?t.WindCnt=i.WindCnt:t.WindCnt=i.WindCnt+t.WindDelta:t.WindCnt=0===t.WindDelta?1:t.WindDelta:0===t.WindDelta?t.WindCnt=i.WindCnt<0?i.WindCnt-1:i.WindCnt+1:i.WindDelta*t.WindDelta<0?t.WindCnt=i.WindCnt:t.WindCnt=i.WindCnt+t.WindDelta,t.WindCnt2=i.WindCnt2,i=i.NextInAEL;if(this.IsEvenOddAltFillType(t))for(;i!==t;)0!==i.WindDelta&&(t.WindCnt2=0===t.WindCnt2?1:0),i=i.NextInAEL;else for(;i!==t;)t.WindCnt2+=i.WindDelta,i=i.NextInAEL},e.Clipper.prototype.AddEdgeToSEL=function(t){null===this.m_SortedEdges?(this.m_SortedEdges=t,t.PrevInSEL=null,t.NextInSEL=null):(t.NextInSEL=this.m_SortedEdges,t.PrevInSEL=null,this.m_SortedEdges.PrevInSEL=t,this.m_SortedEdges=t)},e.Clipper.prototype.PopEdgeFromSEL=function(t){if(t.v=this.m_SortedEdges,null===t.v)return!1;var e=t.v;return this.m_SortedEdges=t.v.NextInSEL,null!==this.m_SortedEdges&&(this.m_SortedEdges.PrevInSEL=null),e.NextInSEL=null,e.PrevInSEL=null,!0},e.Clipper.prototype.CopyAELToSEL=function(){var t=this.m_ActiveEdges;for(this.m_SortedEdges=t;null!==t;)t.PrevInSEL=t.PrevInAEL,t.NextInSEL=t.NextInAEL,t=t.NextInAEL},e.Clipper.prototype.SwapPositionsInSEL=function(t,e){if(!(null===t.NextInSEL&&null===t.PrevInSEL||null===e.NextInSEL&&null===e.PrevInSEL)){if(t.NextInSEL===e)null!==(i=e.NextInSEL)&&(i.PrevInSEL=t),null!==(n=t.PrevInSEL)&&(n.NextInSEL=e),e.PrevInSEL=n,e.NextInSEL=t,t.PrevInSEL=e,t.NextInSEL=i;else if(e.NextInSEL===t)null!==(i=t.NextInSEL)&&(i.PrevInSEL=e),null!==(n=e.PrevInSEL)&&(n.NextInSEL=t),t.PrevInSEL=n,t.NextInSEL=e,e.PrevInSEL=t,e.NextInSEL=i;else{var i=t.NextInSEL,n=t.PrevInSEL;t.NextInSEL=e.NextInSEL,null!==t.NextInSEL&&(t.NextInSEL.PrevInSEL=t),t.PrevInSEL=e.PrevInSEL,null!==t.PrevInSEL&&(t.PrevInSEL.NextInSEL=t),e.NextInSEL=i,null!==e.NextInSEL&&(e.NextInSEL.PrevInSEL=e),e.PrevInSEL=n,null!==e.PrevInSEL&&(e.PrevInSEL.NextInSEL=e)}null===t.PrevInSEL?this.m_SortedEdges=t:null===e.PrevInSEL&&(this.m_SortedEdges=e)}},e.Clipper.prototype.AddLocalMaxPoly=function(t,e,i){this.AddOutPt(t,i),0===e.WindDelta&&this.AddOutPt(e,i),t.OutIdx===e.OutIdx?(t.OutIdx=-1,e.OutIdx=-1):t.OutIdxi.Dx?(o=this.AddOutPt(t,n),i.OutIdx=t.OutIdx,t.Side=e.EdgeSide.esLeft,i.Side=e.EdgeSide.esRight,s=(r=t).PrevInAEL===i?i.PrevInAEL:r.PrevInAEL):(o=this.AddOutPt(i,n),t.OutIdx=i.OutIdx,t.Side=e.EdgeSide.esRight,i.Side=e.EdgeSide.esLeft,s=(r=i).PrevInAEL===t?t.PrevInAEL:r.PrevInAEL),null!==s&&s.OutIdx>=0&&s.Top.Ye&&(o=t,t=e,e=o),i>n&&(o=i,i=n,n=o),t=0&&0!==i.WindDelta&&(null===n?n=i:n.OutIdx===i.OutIdx&&(n=null)),i=i.PrevInAEL;null===n?(e.FirstLeft=null,e.IsHole=!1):(e.FirstLeft=this.m_PolyOuts[n.OutIdx],e.IsHole=!e.FirstLeft.IsHole)},e.Clipper.prototype.GetDx=function(t,i){return t.Y===i.Y?e.ClipperBase.horizontal:(i.X-t.X)/(i.Y-t.Y)},e.Clipper.prototype.FirstIsBottomPt=function(t,i){for(var n=t.Prev;e.IntPoint.op_Equality(n.Pt,t.Pt)&&n!==t;)n=n.Prev;var o=Math.abs(this.GetDx(t.Pt,n.Pt));for(n=t.Next;e.IntPoint.op_Equality(n.Pt,t.Pt)&&n!==t;)n=n.Next;var r=Math.abs(this.GetDx(t.Pt,n.Pt));for(n=i.Prev;e.IntPoint.op_Equality(n.Pt,i.Pt)&&n!==i;)n=n.Prev;var s=Math.abs(this.GetDx(i.Pt,n.Pt));for(n=i.Next;e.IntPoint.op_Equality(n.Pt,i.Pt)&&n!==i;)n=n.Next;var l=Math.abs(this.GetDx(i.Pt,n.Pt));return Math.max(o,r)===Math.max(s,l)&&Math.min(o,r)===Math.min(s,l)?this.Area(t)>0:o>=s&&o>=l||r>=s&&r>=l},e.Clipper.prototype.GetBottomPt=function(t){for(var i=null,n=t.Next;n!==t;)n.Pt.Y>t.Pt.Y?(t=n,i=null):n.Pt.Y===t.Pt.Y&&n.Pt.X<=t.Pt.X&&(n.Pt.Xn.Pt.Y?t:i.Pt.Yn.Pt.X||i.Next===i?e:n.Next===n||this.FirstIsBottomPt(i,n)?t:e},e.Clipper.prototype.OutRec1RightOfOutRec2=function(t,e){do{if((t=t.FirstLeft)===e)return!0}while(null!==t);return!1},e.Clipper.prototype.GetOutRec=function(t){for(var e=this.m_PolyOuts[t];e!==this.m_PolyOuts[e.Idx];)e=this.m_PolyOuts[e.Idx];return e},e.Clipper.prototype.AppendPolygon=function(t,i){var n,o=this.m_PolyOuts[t.OutIdx],r=this.m_PolyOuts[i.OutIdx];n=this.OutRec1RightOfOutRec2(o,r)?r:this.OutRec1RightOfOutRec2(r,o)?o:this.GetLowermostRec(o,r);var s=o.Pts,l=s.Prev,p=r.Pts,u=p.Prev;t.Side===e.EdgeSide.esLeft?i.Side===e.EdgeSide.esLeft?(this.ReversePolyPtLinks(p),p.Next=s,s.Prev=p,l.Next=u,u.Prev=l,o.Pts=u):(u.Next=s,s.Prev=u,p.Prev=l,l.Next=p,o.Pts=p):i.Side===e.EdgeSide.esRight?(this.ReversePolyPtLinks(p),l.Next=u,u.Prev=l,p.Next=s,s.Prev=p):(l.Next=p,p.Prev=l,s.Prev=u,u.Next=s),o.BottomPt=null,n===r&&(r.FirstLeft!==o&&(o.FirstLeft=r.FirstLeft),o.IsHole=r.IsHole),r.Pts=null,r.BottomPt=null,r.FirstLeft=o;var h=t.OutIdx,a=i.OutIdx;t.OutIdx=-1,i.OutIdx=-1;for(var f=this.m_ActiveEdges;null!==f;){if(f.OutIdx===a){f.OutIdx=h,f.Side=t.Side;break}f=f.NextInAEL}r.Idx=o.Idx},e.Clipper.prototype.ReversePolyPtLinks=function(t){if(null!==t){var e,i;e=t;do{i=e.Next,e.Next=e.Prev,e.Prev=i,e=i}while(e!==t)}},e.Clipper.SwapSides=function(t,e){var i=t.Side;t.Side=e.Side,e.Side=i},e.Clipper.SwapPolyIndexes=function(t,e){var i=t.OutIdx;t.OutIdx=e.OutIdx,e.OutIdx=i},e.Clipper.prototype.IntersectEdges=function(t,i,n){var o=t.OutIdx>=0,r=i.OutIdx>=0;if(e.use_xyz&&this.SetZ(n,t,i),!e.use_lines||0!==t.WindDelta&&0!==i.WindDelta){if(t.PolyTyp===i.PolyTyp)if(this.IsEvenOddFillType(t)){var s=t.WindCnt;t.WindCnt=i.WindCnt,i.WindCnt=s}else t.WindCnt+i.WindDelta===0?t.WindCnt=-t.WindCnt:t.WindCnt+=i.WindDelta,i.WindCnt-t.WindDelta==0?i.WindCnt=-i.WindCnt:i.WindCnt-=t.WindDelta;else this.IsEvenOddFillType(i)?t.WindCnt2=0===t.WindCnt2?1:0:t.WindCnt2+=i.WindDelta,this.IsEvenOddFillType(t)?i.WindCnt2=0===i.WindCnt2?1:0:i.WindCnt2-=t.WindDelta;var l,p,u,h,a,f;switch(t.PolyTyp===e.PolyType.ptSubject?(l=this.m_SubjFillType,u=this.m_ClipFillType):(l=this.m_ClipFillType,u=this.m_SubjFillType),i.PolyTyp===e.PolyType.ptSubject?(p=this.m_SubjFillType,h=this.m_ClipFillType):(p=this.m_ClipFillType,h=this.m_SubjFillType),l){case e.PolyFillType.pftPositive:a=t.WindCnt;break;case e.PolyFillType.pftNegative:a=-t.WindCnt;break;default:a=Math.abs(t.WindCnt)}switch(p){case e.PolyFillType.pftPositive:f=i.WindCnt;break;case e.PolyFillType.pftNegative:f=-i.WindCnt;break;default:f=Math.abs(i.WindCnt)}if(o&&r)0!==a&&1!==a||0!==f&&1!==f||t.PolyTyp!==i.PolyTyp&&this.m_ClipType!==e.ClipType.ctXor?this.AddLocalMaxPoly(t,i,n):(this.AddOutPt(t,n),this.AddOutPt(i,n),e.Clipper.SwapSides(t,i),e.Clipper.SwapPolyIndexes(t,i));else if(o)0!==f&&1!==f||(this.AddOutPt(t,n),e.Clipper.SwapSides(t,i),e.Clipper.SwapPolyIndexes(t,i));else if(r)0!==a&&1!==a||(this.AddOutPt(i,n),e.Clipper.SwapSides(t,i),e.Clipper.SwapPolyIndexes(t,i));else if(!(0!==a&&1!==a||0!==f&&1!==f)){var d,P;switch(u){case e.PolyFillType.pftPositive:d=t.WindCnt2;break;case e.PolyFillType.pftNegative:d=-t.WindCnt2;break;default:d=Math.abs(t.WindCnt2)}switch(h){case e.PolyFillType.pftPositive:P=i.WindCnt2;break;case e.PolyFillType.pftNegative:P=-i.WindCnt2;break;default:P=Math.abs(i.WindCnt2)}if(t.PolyTyp!==i.PolyTyp)this.AddLocalMinPoly(t,i,n);else if(1===a&&1===f)switch(this.m_ClipType){case e.ClipType.ctIntersection:d>0&&P>0&&this.AddLocalMinPoly(t,i,n);break;case e.ClipType.ctUnion:d<=0&&P<=0&&this.AddLocalMinPoly(t,i,n);break;case e.ClipType.ctDifference:(t.PolyTyp===e.PolyType.ptClip&&d>0&&P>0||t.PolyTyp===e.PolyType.ptSubject&&d<=0&&P<=0)&&this.AddLocalMinPoly(t,i,n);break;case e.ClipType.ctXor:this.AddLocalMinPoly(t,i,n)}else e.Clipper.SwapSides(t,i)}}else{if(0===t.WindDelta&&0===i.WindDelta)return;t.PolyTyp===i.PolyTyp&&t.WindDelta!==i.WindDelta&&this.m_ClipType===e.ClipType.ctUnion?0===t.WindDelta?r&&(this.AddOutPt(t,n),o&&(t.OutIdx=-1)):o&&(this.AddOutPt(i,n),r&&(i.OutIdx=-1)):t.PolyTyp!==i.PolyTyp&&(0!==t.WindDelta||1!==Math.abs(i.WindCnt)||this.m_ClipType===e.ClipType.ctUnion&&0!==i.WindCnt2?0!==i.WindDelta||1!==Math.abs(t.WindCnt)||this.m_ClipType===e.ClipType.ctUnion&&0!==t.WindCnt2||(this.AddOutPt(i,n),r&&(i.OutIdx=-1)):(this.AddOutPt(t,n),o&&(t.OutIdx=-1)))}},e.Clipper.prototype.DeleteFromSEL=function(t){var e=t.PrevInSEL,i=t.NextInSEL;null===e&&null===i&&t!==this.m_SortedEdges||(null!==e?e.NextInSEL=i:this.m_SortedEdges=i,null!==i&&(i.PrevInSEL=e),t.NextInSEL=null,t.PrevInSEL=null)},e.Clipper.prototype.ProcessHorizontals=function(){for(var t={};this.PopEdgeFromSEL(t);)this.ProcessHorizontal(t.v)},e.Clipper.prototype.GetHorzDirection=function(t,i){t.Bot.X=l.Top.X&&(u=null)}else{for(;null!==u.Next&&u.Next.X=0&&!s&&this.AddOutPt(t,new e.IntPoint2(u.X,t.Bot.Y)),u=u.Next;else for(;null!==u&&u.X>f.Curr.X;)t.OutIdx>=0&&!s&&this.AddOutPt(t,new e.IntPoint2(u.X,t.Bot.Y)),u=u.Prev;if(n===e.Direction.dLeftToRight&&f.Curr.X>r||n===e.Direction.dRightToLeft&&f.Curr.X=0&&!s){e.use_xyz&&(n===e.Direction.dLeftToRight?this.SetZ(f.Curr,t,f):this.SetZ(f.Curr,f,t)),h=this.AddOutPt(t,f.Curr);for(var d=this.m_SortedEdges;null!==d;){if(d.OutIdx>=0&&this.HorzSegmentsOverlap(t.Bot.X,t.Top.X,d.Bot.X,d.Top.X)){var P=this.GetLastOutPt(d);this.AddJoin(P,h,d.Top)}d=d.NextInSEL}this.AddGhostJoin(h,t.Bot)}if(f===p&&a)return t.OutIdx>=0&&this.AddLocalMaxPoly(t,p,t.Top),this.DeleteFromAEL(t),void this.DeleteFromAEL(p);if(n===e.Direction.dLeftToRight){var m=new e.IntPoint2(f.Curr.X,t.Curr.Y);this.IntersectEdges(t,f,m)}else m=new e.IntPoint2(f.Curr.X,t.Curr.Y),this.IntersectEdges(f,t,m);var y=this.GetNextInAEL(f,n);this.SwapPositionsInAEL(t,f),f=y}if(null===t.NextInLML||!e.ClipperBase.IsHorizontal(t.NextInLML))break;(t=this.UpdateEdgeIntoAEL(t)).OutIdx>=0&&this.AddOutPt(t,t.Bot),i={Dir:n,Left:o,Right:r},this.GetHorzDirection(t,i),n=i.Dir,o=i.Left,r=i.Right}if(t.OutIdx>=0&&null===h){for(h=this.GetLastOutPt(t),d=this.m_SortedEdges;null!==d;)d.OutIdx>=0&&this.HorzSegmentsOverlap(t.Bot.X,t.Top.X,d.Bot.X,d.Top.X)&&(P=this.GetLastOutPt(d),this.AddJoin(P,h,d.Top)),d=d.NextInSEL;this.AddGhostJoin(h,t.Top)}if(null!==t.NextInLML)if(t.OutIdx>=0){if(h=this.AddOutPt(t,t.Top),0===(t=this.UpdateEdgeIntoAEL(t)).WindDelta)return;var c=t.PrevInAEL;y=t.NextInAEL,null!==c&&c.Curr.X===t.Bot.X&&c.Curr.Y===t.Bot.Y&&0===c.WindDelta&&c.OutIdx>=0&&c.Curr.Y>c.Top.Y&&e.ClipperBase.SlopesEqual3(t,c,this.m_UseFullRange)?(P=this.AddOutPt(c,t.Bot),this.AddJoin(h,P,t.Top)):null!==y&&y.Curr.X===t.Bot.X&&y.Curr.Y===t.Bot.Y&&0!==y.WindDelta&&y.OutIdx>=0&&y.Curr.Y>y.Top.Y&&e.ClipperBase.SlopesEqual3(t,y,this.m_UseFullRange)&&(P=this.AddOutPt(y,t.Bot),this.AddJoin(h,P,t.Top))}else t=this.UpdateEdgeIntoAEL(t);else t.OutIdx>=0&&this.AddOutPt(t,t.Top),this.DeleteFromAEL(t)},e.Clipper.prototype.GetNextInAEL=function(t,i){return i===e.Direction.dLeftToRight?t.NextInAEL:t.PrevInAEL},e.Clipper.prototype.IsMinima=function(t){return null!==t&&t.Prev.NextInLML!==t&&t.Next.NextInLML!==t},e.Clipper.prototype.IsMaxima=function(t,e){return null!==t&&t.Top.Y===e&&null===t.NextInLML},e.Clipper.prototype.IsIntermediate=function(t,e){return t.Top.Y===e&&null!==t.NextInLML},e.Clipper.prototype.GetMaximaPair=function(t){return e.IntPoint.op_Equality(t.Next.Top,t.Top)&&null===t.Next.NextInLML?t.Next:e.IntPoint.op_Equality(t.Prev.Top,t.Top)&&null===t.Prev.NextInLML?t.Prev:null},e.Clipper.prototype.GetMaximaPairEx=function(t){var i=this.GetMaximaPair(t);return null===i||i.OutIdx===e.ClipperBase.Skip||i.NextInAEL===i.PrevInAEL&&!e.ClipperBase.IsHorizontal(i)?null:i},e.Clipper.prototype.ProcessIntersections=function(t){if(null===this.m_ActiveEdges)return!0;try{if(this.BuildIntersectList(t),0===this.m_IntersectList.length)return!0;if(1!==this.m_IntersectList.length&&!this.FixupIntersectionOrder())return!1;this.ProcessIntersectList()}catch(i){this.m_SortedEdges=null,this.m_IntersectList.length=0,e.Error("ProcessIntersections error")}return this.m_SortedEdges=null,!0},e.Clipper.prototype.BuildIntersectList=function(t){if(null!==this.m_ActiveEdges){var i=this.m_ActiveEdges;for(this.m_SortedEdges=i;null!==i;)i.PrevInSEL=i.PrevInAEL,i.NextInSEL=i.NextInAEL,i.Curr.X=e.Clipper.TopX(i,t),i=i.NextInAEL;for(var n=!0;n&&null!==this.m_SortedEdges;){for(n=!1,i=this.m_SortedEdges;null!==i.NextInSEL;){var o=i.NextInSEL,r=new e.IntPoint0;if(i.Curr.X>o.Curr.X){this.IntersectPoint(i,o,r),r.Y2147483647?Math.floor(t):0|t}:e.Clipper.Round=function(t){return t<0?Math.ceil(t-.5):Math.floor(t+.5)},e.Clipper.TopX=function(t,i){return i===t.Top.Y?t.Top.X:t.Bot.X+e.Clipper.Round(t.Dx*(i-t.Bot.Y))},e.Clipper.prototype.IntersectPoint=function(t,i,n){var o,r;if(n.X=0,n.Y=0,t.Dx===i.Dx)return n.Y=t.Curr.Y,void(n.X=e.Clipper.TopX(t,n.Y));if(0===t.Delta.X)n.X=t.Bot.X,e.ClipperBase.IsHorizontal(i)?n.Y=i.Bot.Y:(r=i.Bot.Y-i.Bot.X/i.Dx,n.Y=e.Clipper.Round(n.X/i.Dx+r));else if(0===i.Delta.X)n.X=i.Bot.X,e.ClipperBase.IsHorizontal(t)?n.Y=t.Bot.Y:(o=t.Bot.Y-t.Bot.X/t.Dx,n.Y=e.Clipper.Round(n.X/t.Dx+o));else{o=t.Bot.X-t.Bot.Y*t.Dx;var s=((r=i.Bot.X-i.Bot.Y*i.Dx)-o)/(t.Dx-i.Dx);n.Y=e.Clipper.Round(s),Math.abs(t.Dx)i.Top.Y)return n.Y=t.Top.Y,n.X=e.Clipper.TopX(i,t.Top.Y),n.Xt.Curr.Y&&(n.Y=t.Curr.Y,Math.abs(t.Dx)>Math.abs(i.Dx)?n.X=e.Clipper.TopX(i,n.Y):n.X=e.Clipper.TopX(t,n.Y))},e.Clipper.prototype.ProcessEdgesAtTopOfScanbeam=function(t){for(var i=this.m_ActiveEdges;null!==i;){var n=this.IsMaxima(i,t);if(n){var o=this.GetMaximaPairEx(i);n=null===o||!e.ClipperBase.IsHorizontal(o)}if(n){this.StrictlySimple&&this.InsertMaxima(i.Top.X);var r=i.PrevInAEL;this.DoMaxima(i),i=null===r?this.m_ActiveEdges:r.NextInAEL}else{if(this.IsIntermediate(i,t)&&e.ClipperBase.IsHorizontal(i.NextInLML)?((i=this.UpdateEdgeIntoAEL(i)).OutIdx>=0&&this.AddOutPt(i,i.Bot),this.AddEdgeToSEL(i)):(i.Curr.X=e.Clipper.TopX(i,t),i.Curr.Y=t),e.use_xyz&&(i.Top.Y===t?i.Curr.Z=i.Top.Z:i.Bot.Y===t?i.Curr.Z=i.Bot.Z:i.Curr.Z=0),this.StrictlySimple&&(r=i.PrevInAEL,i.OutIdx>=0&&0!==i.WindDelta&&null!==r&&r.OutIdx>=0&&r.Curr.X===i.Curr.X&&0!==r.WindDelta)){var s=new e.IntPoint1(i.Curr);e.use_xyz&&this.SetZ(s,r,i);var l=this.AddOutPt(r,s),p=this.AddOutPt(i,s);this.AddJoin(l,p,s)}i=i.NextInAEL}}for(this.ProcessHorizontals(),this.m_Maxima=null,i=this.m_ActiveEdges;null!==i;){if(this.IsIntermediate(i,t)){l=null,i.OutIdx>=0&&(l=this.AddOutPt(i,i.Top)),r=(i=this.UpdateEdgeIntoAEL(i)).PrevInAEL;var u=i.NextInAEL;null!==r&&r.Curr.X===i.Bot.X&&r.Curr.Y===i.Bot.Y&&null!==l&&r.OutIdx>=0&&r.Curr.Y===r.Top.Y&&e.ClipperBase.SlopesEqual5(i.Curr,i.Top,r.Curr,r.Top,this.m_UseFullRange)&&0!==i.WindDelta&&0!==r.WindDelta?(p=this.AddOutPt(ePrev2,i.Bot),this.AddJoin(l,p,i.Top)):null!==u&&u.Curr.X===i.Bot.X&&u.Curr.Y===i.Bot.Y&&null!==l&&u.OutIdx>=0&&u.Curr.Y===u.Top.Y&&e.ClipperBase.SlopesEqual5(i.Curr,i.Top,u.Curr,u.Top,this.m_UseFullRange)&&0!==i.WindDelta&&0!==u.WindDelta&&(p=this.AddOutPt(u,i.Bot),this.AddJoin(l,p,i.Top))}i=i.NextInAEL}},e.Clipper.prototype.DoMaxima=function(t){var i=this.GetMaximaPairEx(t);if(null===i)return t.OutIdx>=0&&this.AddOutPt(t,t.Top),void this.DeleteFromAEL(t);for(var n=t.NextInAEL;null!==n&&n!==i;)this.IntersectEdges(t,n,t.Top),this.SwapPositionsInAEL(t,n),n=t.NextInAEL;-1===t.OutIdx&&-1===i.OutIdx?(this.DeleteFromAEL(t),this.DeleteFromAEL(i)):t.OutIdx>=0&&i.OutIdx>=0?(t.OutIdx>=0&&this.AddLocalMaxPoly(t,i,t.Top),this.DeleteFromAEL(t),this.DeleteFromAEL(i)):e.use_lines&&0===t.WindDelta?(t.OutIdx>=0&&(this.AddOutPt(t,t.Top),t.OutIdx=e.ClipperBase.Unassigned),this.DeleteFromAEL(t),i.OutIdx>=0&&(this.AddOutPt(i,t.Top),i.OutIdx=e.ClipperBase.Unassigned),this.DeleteFromAEL(i)):e.Error("DoMaxima error")},e.Clipper.ReversePaths=function(t){for(var e=0,i=t.length;e=0},e.Clipper.prototype.PointCount=function(t){if(null===t)return 0;var e=0,i=t;do{e++,i=i.Next}while(i!==t);return e},e.Clipper.prototype.BuildResult=function(t){e.Clear(t);for(var i=0,n=this.m_PolyOuts.length;ii.Pt.X?e.Direction.dRightToLeft:e.Direction.dLeftToRight,p=n.Pt.X>o.Pt.X?e.Direction.dRightToLeft:e.Direction.dLeftToRight;if(l===p)return!1;if(l===e.Direction.dLeftToRight){for(;t.Next.Pt.X<=r.X&&t.Next.Pt.X>=t.Pt.X&&t.Next.Pt.Y===r.Y;)t=t.Next;s&&t.Pt.X!==r.X&&(t=t.Next),i=this.DupOutPt(t,!s),e.IntPoint.op_Inequality(i.Pt,r)&&((t=i).Pt.X=r.X,t.Pt.Y=r.Y,e.use_xyz&&(t.Pt.Z=r.Z),i=this.DupOutPt(t,!s))}else{for(;t.Next.Pt.X>=r.X&&t.Next.Pt.X<=t.Pt.X&&t.Next.Pt.Y===r.Y;)t=t.Next;s||t.Pt.X===r.X||(t=t.Next),i=this.DupOutPt(t,s),e.IntPoint.op_Inequality(i.Pt,r)&&((t=i).Pt.X=r.X,t.Pt.Y=r.Y,e.use_xyz&&(t.Pt.Z=r.Z),i=this.DupOutPt(t,s))}if(p===e.Direction.dLeftToRight){for(;n.Next.Pt.X<=r.X&&n.Next.Pt.X>=n.Pt.X&&n.Next.Pt.Y===r.Y;)n=n.Next;s&&n.Pt.X!==r.X&&(n=n.Next),o=this.DupOutPt(n,!s),e.IntPoint.op_Inequality(o.Pt,r)&&((n=o).Pt.X=r.X,n.Pt.Y=r.Y,e.use_xyz&&(n.Pt.Z=r.Z),o=this.DupOutPt(n,!s))}else{for(;n.Next.Pt.X>=r.X&&n.Next.Pt.X<=n.Pt.X&&n.Next.Pt.Y===r.Y;)n=n.Next;s||n.Pt.X===r.X||(n=n.Next),o=this.DupOutPt(n,s),e.IntPoint.op_Inequality(o.Pt,r)&&((n=o).Pt.X=r.X,n.Pt.Y=r.Y,e.use_xyz&&(n.Pt.Z=r.Z),o=this.DupOutPt(n,s))}return l===e.Direction.dLeftToRight===s?(t.Prev=n,n.Next=t,i.Next=o,o.Prev=i):(t.Next=n,n.Prev=t,i.Prev=o,o.Next=i),!0},e.Clipper.prototype.JoinPoints=function(t,i,n){var o=t.OutPt1,r=new e.OutPt,s=t.OutPt2,l=new e.OutPt,p=t.OutPt1.Pt.Y===t.OffPt.Y;if(p&&e.IntPoint.op_Equality(t.OffPt,t.OutPt1.Pt)&&e.IntPoint.op_Equality(t.OffPt,t.OutPt2.Pt)){if(i!==n)return!1;for(r=t.OutPt1.Next;r!==o&&e.IntPoint.op_Equality(r.Pt,t.OffPt);)r=r.Next;var u=r.Pt.Y>t.OffPt.Y;for(l=t.OutPt2.Next;l!==s&&e.IntPoint.op_Equality(l.Pt,t.OffPt);)l=l.Next;return u!==l.Pt.Y>t.OffPt.Y&&(u?(r=this.DupOutPt(o,!1),l=this.DupOutPt(s,!0),o.Prev=s,s.Next=o,r.Next=l,l.Prev=r,t.OutPt1=o,t.OutPt2=r,!0):(r=this.DupOutPt(o,!0),l=this.DupOutPt(s,!1),o.Next=s,s.Prev=o,r.Prev=l,l.Next=r,t.OutPt1=o,t.OutPt2=r,!0))}if(p){for(r=o;o.Prev.Pt.Y===o.Pt.Y&&o.Prev!==r&&o.Prev!==s;)o=o.Prev;for(;r.Next.Pt.Y===r.Pt.Y&&r.Next!==o&&r.Next!==s;)r=r.Next;if(r.Next===o||r.Next===s)return!1;for(l=s;s.Prev.Pt.Y===s.Pt.Y&&s.Prev!==l&&s.Prev!==r;)s=s.Prev;for(;l.Next.Pt.Y===l.Pt.Y&&l.Next!==s&&l.Next!==o;)l=l.Next;if(l.Next===s||l.Next===o)return!1;var h={Left:null,Right:null};if(!this.GetOverlap(o.Pt.X,r.Pt.X,s.Pt.X,l.Pt.X,h))return!1;var a,f=h.Left,d=h.Right,P=new e.IntPoint0;return o.Pt.X>=f&&o.Pt.X<=d?(P.X=o.Pt.X,P.Y=o.Pt.Y,e.use_xyz&&(P.Z=o.Pt.Z),a=o.Pt.X>r.Pt.X):s.Pt.X>=f&&s.Pt.X<=d?(P.X=s.Pt.X,P.Y=s.Pt.Y,e.use_xyz&&(P.Z=s.Pt.Z),a=s.Pt.X>l.Pt.X):r.Pt.X>=f&&r.Pt.X<=d?(P.X=r.Pt.X,P.Y=r.Pt.Y,e.use_xyz&&(P.Z=r.Pt.Z),a=r.Pt.X>o.Pt.X):(P.X=l.Pt.X,P.Y=l.Pt.Y,e.use_xyz&&(P.Z=l.Pt.Z),a=l.Pt.X>s.Pt.X),t.OutPt1=o,t.OutPt2=s,this.JoinHorz(o,r,s,l,P,a)}for(r=o.Next;e.IntPoint.op_Equality(r.Pt,o.Pt)&&r!==o;)r=r.Next;var m=r.Pt.Y>o.Pt.Y||!e.ClipperBase.SlopesEqual4(o.Pt,r.Pt,t.OffPt,this.m_UseFullRange);if(m){for(r=o.Prev;e.IntPoint.op_Equality(r.Pt,o.Pt)&&r!==o;)r=r.Prev;if(r.Pt.Y>o.Pt.Y||!e.ClipperBase.SlopesEqual4(o.Pt,r.Pt,t.OffPt,this.m_UseFullRange))return!1}for(l=s.Next;e.IntPoint.op_Equality(l.Pt,s.Pt)&&l!==s;)l=l.Next;var y=l.Pt.Y>s.Pt.Y||!e.ClipperBase.SlopesEqual4(s.Pt,l.Pt,t.OffPt,this.m_UseFullRange);if(y){for(l=s.Prev;e.IntPoint.op_Equality(l.Pt,s.Pt)&&l!==s;)l=l.Prev;if(l.Pt.Y>s.Pt.Y||!e.ClipperBase.SlopesEqual4(s.Pt,l.Pt,t.OffPt,this.m_UseFullRange))return!1}return!(r===o||l===s||r===l||i===n&&m===y||(m?(r=this.DupOutPt(o,!1),l=this.DupOutPt(s,!0),o.Prev=s,s.Next=o,r.Next=l,l.Prev=r,t.OutPt1=o,t.OutPt2=r,0):(r=this.DupOutPt(o,!0),l=this.DupOutPt(s,!1),o.Next=s,s.Prev=o,r.Prev=l,l.Next=r,t.OutPt1=o,t.OutPt2=r,0)))},e.Clipper.GetBounds=function(t){for(var i=0,n=t.length;io.right&&(o.right=t[i][r].X),t[i][r].Yo.bottom&&(o.bottom=t[i][r].Y);return o},e.Clipper.prototype.GetBounds2=function(t){var i=t,n=new e.IntRect;for(n.left=t.Pt.X,n.right=t.Pt.X,n.top=t.Pt.Y,n.bottom=t.Pt.Y,t=t.Next;t!==i;)t.Pt.Xn.right&&(n.right=t.Pt.X),t.Pt.Yn.bottom&&(n.bottom=t.Pt.Y),t=t.Next;return n},e.Clipper.PointInPolygon=function(t,e){var i=0,n=e.length;if(n<3)return 0;for(var o=e[0],r=1;r<=n;++r){var s=r===n?e[0]:e[r];if(s.Y===t.Y&&(s.X===t.X||o.Y===t.Y&&s.X>t.X==o.X=t.X)if(s.X>t.X)i=1-i;else{if(0==(l=(o.X-t.X)*(s.Y-t.Y)-(s.X-t.X)*(o.Y-t.Y)))return-1;l>0==s.Y>o.Y&&(i=1-i)}else if(s.X>t.X){var l;if(0==(l=(o.X-t.X)*(s.Y-t.Y)-(s.X-t.X)*(o.Y-t.Y)))return-1;l>0==s.Y>o.Y&&(i=1-i)}o=s}return i},e.Clipper.prototype.PointInPolygon=function(t,e){var i=0,n=e,o=t.X,r=t.Y,s=e.Pt.X,l=e.Pt.Y;do{var p=(e=e.Next).Pt.X,u=e.Pt.Y;if(u===r&&(p===o||l===r&&p>o==s=o)if(p>o)i=1-i;else{if(0==(h=(s-o)*(u-r)-(p-o)*(l-r)))return-1;h>0==u>l&&(i=1-i)}else if(p>o){var h;if(0==(h=(s-o)*(u-r)-(p-o)*(l-r)))return-1;h>0==u>l&&(i=1-i)}s=p,l=u}while(n!==e);return i},e.Clipper.prototype.Poly2ContainsPoly1=function(t,e){var i=t;do{var n=this.PointInPolygon(i.Pt,e);if(n>=0)return n>0;i=i.Next}while(i!==t);return!0},e.Clipper.prototype.FixupFirstLefts1=function(t,i){for(var n,o,r=0,s=this.m_PolyOuts.length;r0&&this.ReversePolyPtLinks(r.Pts)):this.Poly2ContainsPoly1(o.Pts,r.Pts)?(r.IsHole=o.IsHole,o.IsHole=!r.IsHole,r.FirstLeft=o.FirstLeft,o.FirstLeft=r,this.m_UsingPolyTree&&this.FixupFirstLefts2(o,r),(o.IsHole^this.ReverseSolution)==this.Area$1(o)>0&&this.ReversePolyPtLinks(o.Pts)):(r.IsHole=o.IsHole,r.FirstLeft=o.FirstLeft,this.m_UsingPolyTree&&this.FixupFirstLefts1(o,r))):(r.Pts=null,r.BottomPt=null,r.Idx=o.Idx,o.IsHole=i.IsHole,i===r&&(o.FirstLeft=r.FirstLeft),r.FirstLeft=o,this.m_UsingPolyTree&&this.FixupFirstLefts3(r,o)))))}},e.Clipper.prototype.UpdateOutPtIdxs=function(t){var e=t.Pts;do{e.Idx=t.Idx,e=e.Prev}while(e!==t.Pts)},e.Clipper.prototype.DoSimplePolygons=function(){for(var t=0;tMath.abs(t.Y-i.Y)?t.X>i.X==t.Xt.X==i.Xi.Y==t.Yt.Y==i.Y0&&o&&n.push(t.m_polygon);for(var r=0,s=t.Childs(),l=s.length,p=s[r];r0&&e.IntPoint.op_Equality(t[0],t[o]);)o--;r.m_polygon.push(t[0]);for(var s=0,l=0,p=1;p<=o;p++)e.IntPoint.op_Inequality(r.m_polygon[s],t[p])&&(s++,r.m_polygon.push(t[p]),(t[p].Y>r.m_polygon[l].Y||t[p].Y===r.m_polygon[l].Y&&t[p].Xu.Y||r.m_polygon[l].Y===u.Y&&r.m_polygon[l].X=0&&!e.Clipper.Orientation(this.m_polyNodes.Childs()[this.m_lowest.X].m_polygon))for(var t=0;t2?this.m_miterLim=2/(this.MiterLimit*this.MiterLimit):this.m_miterLim=.5,n=this.ArcTolerance<=0?e.ClipperOffset.def_arc_tolerance:this.ArcTolerance>Math.abs(t)*e.ClipperOffset.def_arc_tolerance?Math.abs(t)*e.ClipperOffset.def_arc_tolerance:this.ArcTolerance;var o=3.14159265358979/Math.acos(1-n/Math.abs(t));for(this.m_sin=Math.sin(e.ClipperOffset.two_pi/o),this.m_cos=Math.cos(e.ClipperOffset.two_pi/o),this.m_StepsPerRad=o/e.ClipperOffset.two_pi,t<0&&(this.m_sin=-this.m_sin),i=0;i0;f--)this.m_normals[f]=new e.DoublePoint2(-this.m_normals[f-1].X,-this.m_normals[f-1].Y);for(this.m_normals[0]=new e.DoublePoint2(-p.X,-p.Y),l=0,f=s-1;f>=0;f--)l=this.OffsetPoint(f,l,r.m_jointype);this.m_destPolys.push(this.m_destPoly)}else{var u;for(l=0,f=1;f0;f--)this.m_normals[f]=new e.DoublePoint2(-this.m_normals[f-1].X,-this.m_normals[f-1].Y);for(this.m_normals[0]=new e.DoublePoint2(-this.m_normals[1].X,-this.m_normals[1].Y),f=(l=s-1)-1;f>0;--f)l=this.OffsetPoint(f,l,r.m_jointype);r.m_endtype===e.EndType.etOpenButt?(u=new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[0].X-this.m_normals[0].X*t),e.ClipperOffset.Round(this.m_srcPoly[0].Y-this.m_normals[0].Y*t)),this.m_destPoly.push(u),u=new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[0].X+this.m_normals[0].X*t),e.ClipperOffset.Round(this.m_srcPoly[0].Y+this.m_normals[0].Y*t)),this.m_destPoly.push(u)):(l=1,this.m_sinA=0,r.m_endtype===e.EndType.etOpenSquare?this.DoSquare(0,1):this.DoRound(0,1)),this.m_destPolys.push(this.m_destPoly)}}else{if(r.m_jointype===e.JoinType.jtRound)for(var h=1,a=0,f=1;f<=o;f++){this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[0].X+h*t),e.ClipperOffset.Round(this.m_srcPoly[0].Y+a*t)));var d=h;h=h*this.m_cos-this.m_sin*a,a=d*this.m_sin+a*this.m_cos}else{h=-1,a=-1;for(var f=0;f<4;++f)this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[0].X+h*t),e.ClipperOffset.Round(this.m_srcPoly[0].Y+a*t))),h<0?h=1:a<0?a=1:h=-1}this.m_destPolys.push(this.m_destPoly)}}}},e.ClipperOffset.prototype.Execute=function(){var t=arguments;if(t[0]instanceof e.PolyTree)if(s=t[1],(r=t[0]).Clear(),this.FixOrientations(),this.DoOffset(s),(o=new e.Clipper(0)).AddPaths(this.m_destPolys,e.PolyType.ptSubject,!0),s>0)o.Execute(e.ClipType.ctUnion,r,e.PolyFillType.pftPositive,e.PolyFillType.pftPositive);else if(p=e.Clipper.GetBounds(this.m_destPolys),(l=new e.Path).push(new e.IntPoint2(p.left-10,p.bottom+10)),l.push(new e.IntPoint2(p.right+10,p.bottom+10)),l.push(new e.IntPoint2(p.right+10,p.top-10)),l.push(new e.IntPoint2(p.left-10,p.top-10)),o.AddPath(l,e.PolyType.ptSubject,!0),o.ReverseSolution=!0,o.Execute(e.ClipType.ctUnion,r,e.PolyFillType.pftNegative,e.PolyFillType.pftNegative),1===r.ChildCount()&&r.Childs()[0].ChildCount()>0){var i=r.Childs()[0];r.Childs()[0]=i.Childs()[0],r.Childs()[0].m_Parent=r;for(var n=1;n0)o.Execute(e.ClipType.ctUnion,r,e.PolyFillType.pftPositive,e.PolyFillType.pftPositive);else{var l,p=e.Clipper.GetBounds(this.m_destPolys);(l=new e.Path).push(new e.IntPoint2(p.left-10,p.bottom+10)),l.push(new e.IntPoint2(p.right+10,p.bottom+10)),l.push(new e.IntPoint2(p.right+10,p.top-10)),l.push(new e.IntPoint2(p.left-10,p.top-10)),o.AddPath(l,e.PolyType.ptSubject,!0),o.ReverseSolution=!0,o.Execute(e.ClipType.ctUnion,r,e.PolyFillType.pftNegative,e.PolyFillType.pftNegative),r.length>0&&r.splice(0,1)}}},e.ClipperOffset.prototype.OffsetPoint=function(t,i,n){if(this.m_sinA=this.m_normals[i].X*this.m_normals[t].Y-this.m_normals[t].X*this.m_normals[i].Y,Math.abs(this.m_sinA*this.m_delta)<1){if(this.m_normals[i].X*this.m_normals[t].X+this.m_normals[t].Y*this.m_normals[i].Y>0)return this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[i].X*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[i].Y*this.m_delta))),i}else this.m_sinA>1?this.m_sinA=1:this.m_sinA<-1&&(this.m_sinA=-1);if(this.m_sinA*this.m_delta<0)this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[i].X*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[i].Y*this.m_delta))),this.m_destPoly.push(new e.IntPoint1(this.m_srcPoly[t])),this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[t].X*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[t].Y*this.m_delta)));else switch(n){case e.JoinType.jtMiter:var o=this.m_normals[t].X*this.m_normals[i].X+this.m_normals[t].Y*this.m_normals[i].Y+1;o>=this.m_miterLim?this.DoMiter(t,i,o):this.DoSquare(t,i);break;case e.JoinType.jtSquare:this.DoSquare(t,i);break;case e.JoinType.jtRound:this.DoRound(t,i)}return i=t},e.ClipperOffset.prototype.DoSquare=function(t,i){var n=Math.tan(Math.atan2(this.m_sinA,this.m_normals[i].X*this.m_normals[t].X+this.m_normals[i].Y*this.m_normals[t].Y)/4);this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_delta*(this.m_normals[i].X-this.m_normals[i].Y*n)),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_delta*(this.m_normals[i].Y+this.m_normals[i].X*n)))),this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_delta*(this.m_normals[t].X+this.m_normals[t].Y*n)),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_delta*(this.m_normals[t].Y-this.m_normals[t].X*n))))},e.ClipperOffset.prototype.DoMiter=function(t,i,n){var o=this.m_delta/n;this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+(this.m_normals[i].X+this.m_normals[t].X)*o),e.ClipperOffset.Round(this.m_srcPoly[t].Y+(this.m_normals[i].Y+this.m_normals[t].Y)*o)))},e.ClipperOffset.prototype.DoRound=function(t,i){for(var n,o=Math.atan2(this.m_sinA,this.m_normals[i].X*this.m_normals[t].X+this.m_normals[i].Y*this.m_normals[t].Y),r=Math.max(e.Cast_Int32(e.ClipperOffset.Round(this.m_StepsPerRad*Math.abs(o))),1),s=this.m_normals[i].X,l=this.m_normals[i].Y,p=0;p1?(c=h.X,v=h.Y):y>0&&(c+=P*y,v+=m*y)),(P=a.X-c)*P+(m=a.Y-v)*m<=x&&(f[o+1]=1,o++);for(l.push({X:r[0].X,Y:r[0].Y}),o=1;o2&&_.push(l)}return C||(_=_[0]),void 0===_&&(_=[]),_},e.JS.PerimeterOfPath=function(t,e,i){if(void 0===t)return 0;var n,o,r=Math.sqrt,s=0,l=0,p=0,u=0,h=0,a=t.length;if(a<2)return 0;for(e&&(t[a]=t[0],a++);--a;)l=(n=t[a]).X,p=n.Y,s+=r((l-(u=(o=t[a-1]).X))*(l-u)+(p-(h=o.Y))*(p-h));return e&&t.pop(),s/i},e.JS.PerimeterOfPaths=function(t,i,n){n||(n=1);for(var o=0,r=0;rn in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,s=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&i(e,n,t[n]);if(o)for(var n of o(t))a.call(t,n)&&i(e,n,t[n]);return e},u=(e,o)=>t(e,n(o)),c=(e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&o)for(var r of o(e))t.indexOf(r)<0&&a.call(e,r)&&(n[r]=e[r]);return n},d=(e,t,n)=>new Promise(((o,l)=>{var a=e=>{try{i(n.next(e))}catch(t){l(t)}},r=e=>{try{i(n.throw(e))}catch(t){l(t)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(a,r);i((n=n.apply(e,t)).next())}));import{u as p,g as f,o as v,r as m,a as h,b as g,c as b,n as y,s as w,w as x,d as S,e as k,i as C,f as E,h as I,j as T,k as B,l as O,m as M,p as _,q as R,t as L,N as $,v as A,x as V,y as N,z as F,A as z,B as P,C as D,D as H,E as j,F as W,G as K,H as U,I as q,J as Y,K as G,L as X,M as Z,O as J,P as Q,Q as ee,R as te,S as ne,T as oe,U as le,V as ae,W as re,X as ie,Y as se,Z as ue,_ as ce,$ as de,a0 as pe,a1 as fe,a2 as ve,a3 as me,a4 as he,a5 as ge,a6 as be,a7 as ye,a8 as we,a9 as xe,aa as Se,ab as ke,ac as Ce,ad as Ee,ae as Ie,af as Te,ag as Be,ah as Oe,ai as Me,aj as _e,ak as Re,al as Le,am as $e,an as Ae,ao as Ve,ap as Ne,aq as Fe,ar as ze,as as Pe}from"./vue-aadc59b7.js";import{i as De,f as He,g as je,a as We,t as Ke,b as Ue,p as qe,c as Ye,d as Ge,e as Xe,h as Ze,o as Je}from"./lodash-es-fcf8a448.js";const Qe=e=>Array.from(e.querySelectorAll('a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])')).filter((e=>et(e)&&(e=>"fixed"!==getComputedStyle(e).position&&null!==e.offsetParent)(e))),et=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return!("hidden"===e.type||"file"===e.type);case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},tt=function(e,t,...n){let o;o=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const l=document.createEvent(o);return l.initEvent(t,...n),e.dispatchEvent(l),e},nt=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const l=null==e?void 0:e(o);if(!1===n||!l)return null==t?void 0:t(o)},ot=e=>t=>"mouse"===t.pointerType?e(t):void 0;var lt,at=Object.defineProperty,rt=Object.defineProperties,it=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,dt=(e,t,n)=>t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function pt(e,t){var n;const o=w();var l,a;return x((()=>{o.value=e()}),(l=((e,t)=>{for(var n in t||(t={}))ut.call(t,n)&&dt(e,n,t[n]);if(st)for(var n of st(t))ct.call(t,n)&&dt(e,n,t[n]);return e})({},t),a={flush:null!=(n=null==t?void 0:t.flush)?n:"sync"},rt(l,it(a)))),h(o)}const ft="undefined"!=typeof window,vt=e=>"string"==typeof e,mt=()=>{},ht=ft&&(null==(lt=null==window?void 0:window.navigator)?void 0:lt.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function gt(e){return"function"==typeof e?e():p(e)}function bt(e){return!!f()&&(v(e),!0)}function yt(e,t=200,n=!1,o=!0,l=!1){return function(e,t){return function(...n){return new Promise(((o,l)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(o).catch(l)}))}}(function(e,t=!0,n=!0,o=!1){let l,a,r=0,i=!0,s=mt;const u=()=>{l&&(clearTimeout(l),l=void 0,s(),s=mt)};return c=>{const d=gt(e),p=Date.now()-r,f=()=>a=c();return u(),d<=0?(r=Date.now(),f()):(p>d&&(n||!i)?(r=Date.now(),f()):t&&(a=new Promise(((e,t)=>{s=o?t:e,l=setTimeout((()=>{r=Date.now(),i=!0,e(f()),u()}),Math.max(0,d-p))}))),n||l||(l=setTimeout((()=>i=!0),d)),i=!1,a)}}(t,n,o,l),e)}function wt(e,t=!0){g()?b(e):t?e():y(e)}function xt(e,t,n={}){const{immediate:o=!0}=n,l=m(!1);let a=null;function r(){a&&(clearTimeout(a),a=null)}function i(){l.value=!1,r()}function s(...n){r(),l.value=!0,a=setTimeout((()=>{l.value=!1,a=null,e(...n)}),gt(t))}return o&&(l.value=!0,ft&&s()),bt(i),{isPending:h(l),start:s,stop:i}}function St(e){var t;const n=gt(e);return null!=(t=null==n?void 0:n.$el)?t:n}const kt=ft?window:void 0,Ct=ft?window.document:void 0;function Et(...e){let t,n,o,l;if(vt(e[0])||Array.isArray(e[0])?([n,o,l]=e,t=kt):[t,n,o,l]=e,!t)return mt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],r=()=>{a.forEach((e=>e())),a.length=0},i=S((()=>[St(t),gt(l)]),(([e,t])=>{r(),e&&a.push(...n.flatMap((n=>o.map((o=>((e,t,n,o)=>(e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)))(e,n,o,t))))))}),{immediate:!0,flush:"post"}),s=()=>{i(),r()};return bt(s),s}let It=!1;function Tt(e,t=!1){const n=m(),o=()=>n.value=Boolean(e());return o(),wt(o,t),n}const Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ot="__vueuse_ssr_handlers__";Bt[Ot]=Bt[Ot]||{};var Mt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Lt=(e,t)=>{var n={};for(var o in e)_t.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&Mt)for(var o of Mt(e))t.indexOf(o)<0&&Rt.call(e,o)&&(n[o]=e[o]);return n};function $t(e,t,n={}){const o=n,{window:l=kt}=o,a=Lt(o,["window"]);let r;const i=Tt((()=>l&&"ResizeObserver"in l)),s=()=>{r&&(r.disconnect(),r=void 0)},u=S((()=>St(e)),(e=>{s(),i.value&&l&&e&&(r=new ResizeObserver(t),r.observe(e,a))}),{immediate:!0,flush:"post"}),c=()=>{s(),u()};return bt(c),{isSupported:i,stop:c}}function At(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:l=!0,immediate:a=!0}=t,r=m(0),i=m(0),s=m(0),u=m(0),c=m(0),d=m(0),p=m(0),f=m(0);function v(){const t=St(e);if(!t)return void(n&&(r.value=0,i.value=0,s.value=0,u.value=0,c.value=0,d.value=0,p.value=0,f.value=0));const o=t.getBoundingClientRect();r.value=o.height,i.value=o.bottom,s.value=o.left,u.value=o.right,c.value=o.top,d.value=o.width,p.value=o.x,f.value=o.y}return $t(e,v),S((()=>St(e)),(e=>!e&&v())),l&&Et("scroll",v,{capture:!0,passive:!0}),o&&Et("resize",v,{passive:!0}),wt((()=>{a&&v()})),{height:r,bottom:i,left:s,right:u,top:c,width:d,x:p,y:f,update:v}}var Vt,Nt,Ft=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable;function Dt(e,t,n={}){const o=n,{window:l=kt}=o,a=((e,t)=>{var n={};for(var o in e)zt.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&Ft)for(var o of Ft(e))t.indexOf(o)<0&&Pt.call(e,o)&&(n[o]=e[o]);return n})(o,["window"]);let r;const i=Tt((()=>l&&"MutationObserver"in l)),s=()=>{r&&(r.disconnect(),r=void 0)},u=S((()=>St(e)),(e=>{s(),i.value&&l&&e&&(r=new MutationObserver(t),r.observe(e,a))}),{immediate:!0}),c=()=>{s(),u()};return bt(c),{isSupported:i,stop:c}}(Nt=Vt||(Vt={})).UP="UP",Nt.RIGHT="RIGHT",Nt.DOWN="DOWN",Nt.LEFT="LEFT",Nt.NONE="NONE";var Ht=Object.defineProperty,jt=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,Ut=(e,t,n)=>t in e?Ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function qt(e,t,n,o={}){var l,a,r;const{clone:i=!1,passive:s=!1,eventName:u,deep:c=!1,defaultValue:d}=o,p=g(),f=n||(null==p?void 0:p.emit)||(null==(l=null==p?void 0:p.$emit)?void 0:l.bind(p))||(null==(r=null==(a=null==p?void 0:p.proxy)?void 0:a.$emit)?void 0:r.bind(null==p?void 0:p.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const h=e=>{return i?(e=>"function"==typeof e)(i)?i(e):(t=e,JSON.parse(JSON.stringify(t))):e;var t},b=()=>void 0!==e[t]?h(e[t]):d;if(s){const n=b(),o=m(n);return S((()=>e[t]),(e=>o.value=h(e))),S(o,(n=>{(n!==e[t]||c)&&f(v,n)}),{deep:c}),o}return k({get:()=>b(),set(e){f(v,e)}})}((e,t)=>{for(var n in t||(t={}))Wt.call(t,n)&&Ut(e,n,t[n]);if(jt)for(var n of jt(t))Kt.call(t,n)&&Ut(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Yt=e=>void 0===e,Gt=e=>"boolean"==typeof e,Xt=e=>"number"==typeof e,Zt=e=>"undefined"!=typeof Element&&e instanceof Element,Jt=e=>De(e),Qt=e=>E(e),en=e=>Object.keys(e);class tn extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function nn(e,t){throw new tn(`[${e}] ${t}`)}const on=(e="")=>e.split(" ").filter((e=>!!e.trim())),ln=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},an=(e,t)=>{e&&t.trim()&&e.classList.add(...on(t))},rn=(e,t)=>{e&&t.trim()&&e.classList.remove(...on(t))},sn=(e,t)=>{var n;if(!ft||!e||!t)return"";let o=I(t);"float"===o&&(o="cssFloat");try{const t=e.style[o];if(t)return t;const l=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return l?l[o]:""}catch(l){return e.style[o]}};function un(e,t="px"){return e?Xt(e)||C(n=e)&&!Number.isNaN(Number(n))?`${e}${t}`:C(e)?e:void 0:"";var n}const cn=(e,t)=>{if(!ft)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=sn(e,n);return["scroll","auto","overlay"].some((e=>o.includes(e)))},dn=(e,t)=>{if(!ft)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(cn(n,t))return n;n=n.parentNode}return n};let pn; +/*! Element Plus Icons Vue v2.3.1 */ +var fn=T({name:"ArrowDown",__name:"arrow-down",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}),vn=T({name:"ArrowLeft",__name:"arrow-left",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}),mn=T({name:"ArrowRight",__name:"arrow-right",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}),hn=T({name:"ArrowUp",__name:"arrow-up",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}),gn=T({name:"Check",__name:"check",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}),bn=T({name:"CircleCheck",__name:"circle-check",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),M("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}),yn=T({name:"CircleCloseFilled",__name:"circle-close-filled",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}),wn=T({name:"CircleClose",__name:"circle-close",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),M("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),xn=T({name:"Close",__name:"close",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}),Sn=T({name:"Delete",__name:"delete",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}),kn=T({name:"Document",__name:"document",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}),Cn=T({name:"FullScreen",__name:"full-screen",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}),En=T({name:"Hide",__name:"hide",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),M("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}),In=T({name:"InfoFilled",__name:"info-filled",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}),Tn=T({name:"Loading",__name:"loading",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}),Bn=T({name:"Minus",__name:"minus",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}),On=T({name:"More",__name:"more",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}),Mn=T({name:"Plus",__name:"plus",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}),_n=T({name:"RefreshLeft",__name:"refresh-left",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}),Rn=T({name:"RefreshRight",__name:"refresh-right",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}),Ln=T({name:"ScaleToOriginal",__name:"scale-to-original",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}),$n=T({name:"Search",__name:"search",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}),An=T({name:"SuccessFilled",__name:"success-filled",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}),Vn=T({name:"UploadFilled",__name:"upload-filled",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}),Nn=T({name:"View",__name:"view",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}),Fn=T({name:"WarningFilled",__name:"warning-filled",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}),zn=T({name:"ZoomIn",__name:"zoom-in",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}),Pn=T({name:"ZoomOut",__name:"zoom-out",setup:e=>(e,t)=>(B(),O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))});const Dn="__epPropKey",Hn=(e,t)=>{if(!_(e)||_(n=e)&&n[Dn])return e;var n;const{values:o,required:l,default:a,type:r,validator:i}=e,s=o||i?n=>{let l=!1,r=[];if(o&&(r=Array.from(o),R(e,"default")&&r.push(a),l||(l=r.includes(n))),i&&(l||(l=i(n))),!l&&r.length>0){const e=[...new Set(r)].map((e=>JSON.stringify(e))).join(", ");L(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(n)}.`)}return l}:void 0,u={type:r,required:!!l,validator:s,[Dn]:!0};return R(e,"default")&&(u.default=a),u},jn=e=>He(Object.entries(e).map((([e,t])=>[e,Hn(t,e)]))),Wn=[String,Object,Function],Kn={Close:xn},Un={Close:xn,SuccessFilled:An,InfoFilled:In,WarningFilled:Fn,CircleCloseFilled:yn},qn={success:An,warning:Fn,error:yn,info:In},Yn={validating:Tn,success:bn,error:wn},Gn=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(null!=t?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},Xn=e=>(e.install=$,e),Zn=(...e)=>t=>{e.forEach((e=>{A(e)?e(t):e.value=t}))},Jn={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Qn="update:modelValue",eo="change",to="input",no=["","default","small","large"],oo=e=>["",...no].includes(e);var lo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(lo||{});const ao=e=>{const t=V(e)?e:[e],n=[];return t.forEach((e=>{var t;V(e)?n.push(...ao(e)):N(e)&&V(e.children)?n.push(...ao(e.children)):(n.push(e),N(e)&&(null==(t=e.component)?void 0:t.subTree)&&n.push(...ao(e.component.subTree)))})),n},ro=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),io=["class","style"],so=/^on[A-Z]/,uo=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=k((()=>((null==n?void 0:n.value)||[]).concat(io))),l=g();return k(l?()=>{var e;return He(Object.entries(null==(e=l.proxy)?void 0:e.$attrs).filter((([e])=>!(o.value.includes(e)||t&&so.test(e)))))}:()=>({}))},co=({from:e,replacement:t,scope:n,version:o,ref:l,type:a="API"},r)=>{S((()=>p(r)),(e=>{}),{immediate:!0})},po=(e,t,n,o)=>{let l={offsetX:0,offsetY:0};const a=t=>{const n=t.clientX,a=t.clientY,{offsetX:r,offsetY:i}=l,s=e.value.getBoundingClientRect(),u=s.left,c=s.top,d=s.width,p=s.height,f=document.documentElement.clientWidth,v=document.documentElement.clientHeight,m=-u+r,h=-c+i,g=f-u-d+r,b=v-c-p+i,y=t=>{let s=r+t.clientX-n,u=i+t.clientY-a;(null==o?void 0:o.value)||(s=Math.min(Math.max(s,m),g),u=Math.min(Math.max(u,h),b)),l={offsetX:s,offsetY:u},e.value&&(e.value.style.transform=`translate(${un(s)}, ${un(u)})`)},w=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",w)},r=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};b((()=>{x((()=>{n.value?t.value&&e.value&&t.value.addEventListener("mousedown",a):r()}))})),F((()=>{r()}))};var fo={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const vo=e=>(t,n)=>mo(t,n,p(e)),mo=(e,t,n)=>je(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var o;return`${null!=(o=null==t?void 0:t[n])?o:`{${n}}`}`})),ho=Symbol("localeContextKey"),go=e=>{const t=e||z(ho,m());return(e=>({lang:k((()=>p(e).name)),locale:P(e)?e:m(e),t:vo(e)}))(k((()=>t.value||fo)))},bo="el",yo=(e,t,n,o,l)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),o&&(a+=`__${o}`),l&&(a+=`--${l}`),a},wo=Symbol("namespaceContextKey"),xo=e=>{const t=e||(g()?z(wo,m(bo)):m(bo));return k((()=>p(t)||bo))},So=(e,t)=>{const n=xo(t);return{namespace:n,b:(t="")=>yo(n.value,e,t,"",""),e:t=>t?yo(n.value,e,"",t,""):"",m:t=>t?yo(n.value,e,"","",t):"",be:(t,o)=>t&&o?yo(n.value,e,t,o,""):"",em:(t,o)=>t&&o?yo(n.value,e,"",t,o):"",bm:(t,o)=>t&&o?yo(n.value,e,t,"",o):"",bem:(t,o,l)=>t&&o&&l?yo(n.value,e,t,o,l):"",is:(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`is-${e}`:""},cssVar:e=>{const t={};for(const o in e)e[o]&&(t[`--${n.value}-${o}`]=e[o]);return t},cssVarName:e=>`--${n.value}-${e}`,cssVarBlock:t=>{const o={};for(const l in t)t[l]&&(o[`--${n.value}-${e}-${l}`]=t[l]);return o},cssVarBlockName:t=>`--${n.value}-${e}-${t}`}},ko=(e,t={})=>{P(e)||nn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||So("popup"),o=D((()=>n.bm("parent","hidden")));if(!ft||ln(document.body,o.value))return;let l=0,a=!1,r="0";const i=()=>{setTimeout((()=>{rn(null==document?void 0:document.body,o.value),a&&document&&(document.body.style.width=r)}),200)};S(e,(e=>{if(!e)return void i();a=!ln(document.body,o.value),a&&(r=document.body.style.width),l=(e=>{var t;if(!ft)return 0;if(void 0!==pn)return pn;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const a=l.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),pn=o-a,pn})(n.namespace.value);const t=document.documentElement.clientHeight0&&(t||"scroll"===s)&&a&&(document.body.style.width=`calc(100% - ${l}px)`),an(document.body,o.value)})),v((()=>i()))},Co=Hn({type:Boolean,default:null}),Eo=Hn({type:Function}),Io=e=>{const t=`update:${e}`,n=`onUpdate:${e}`;return{useModelToggle:({indicator:o,toggleReason:l,shouldHideWhenRouteChanges:a,shouldProceed:r,onShow:i,onHide:u})=>{const c=g(),{emit:d}=c,p=c.props,f=k((()=>A(p[n]))),v=k((()=>null===p[e])),m=e=>{!0!==o.value&&(o.value=!0,l&&(l.value=e),A(i)&&i(e))},h=e=>{!1!==o.value&&(o.value=!1,l&&(l.value=e),A(u)&&u(e))},y=e=>{if(!0===p.disabled||A(r)&&!r())return;const n=f.value&&ft;n&&d(t,!0),!v.value&&n||m(e)},w=e=>{if(!0===p.disabled||!ft)return;const n=f.value&&ft;n&&d(t,!1),!v.value&&n||h(e)},x=e=>{Gt(e)&&(p.disabled&&e?f.value&&d(t,!1):o.value!==e&&(e?m():h()))};return S((()=>p[e]),x),a&&void 0!==c.appContext.config.globalProperties.$route&&S((()=>s({},c.proxy.$route)),(()=>{a.value&&o.value&&w()})),b((()=>{x(p[e])})),{hide:w,show:y,toggle:()=>{o.value?w():y()},hasUpdateHandler:f}},useModelToggleProps:{[e]:Co,[n]:Eo},useModelToggleEmits:[t]}};Io("modelValue");const To=e=>{const t=g();return k((()=>{var n,o;return null==(o=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:o[e]}))};var Bo="top",Oo="bottom",Mo="right",_o="left",Ro="auto",Lo=[Bo,Oo,Mo,_o],$o="start",Ao="end",Vo="clippingParents",No="viewport",Fo="popper",zo="reference",Po=Lo.reduce((function(e,t){return e.concat([t+"-"+$o,t+"-"+Ao])}),[]),Do=[].concat(Lo,[Ro]).reduce((function(e,t){return e.concat([t,t+"-"+$o,t+"-"+Ao])}),[]),Ho=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function jo(e){return e?(e.nodeName||"").toLowerCase():null}function Wo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ko(e){return e instanceof Wo(e).Element||e instanceof Element}function Uo(e){return e instanceof Wo(e).HTMLElement||e instanceof HTMLElement}function qo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Wo(e).ShadowRoot||e instanceof ShadowRoot)}var Yo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},l=t.elements[e];!Uo(l)||!jo(l)||(Object.assign(l.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?l.removeAttribute(e):l.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],l=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!Uo(o)||!jo(o)||(Object.assign(o.style,a),Object.keys(l).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Go(e){return e.split("-")[0]}var Xo=Math.max,Zo=Math.min,Jo=Math.round;function Qo(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,l=1;if(Uo(e)&&t){var a=e.offsetHeight,r=e.offsetWidth;r>0&&(o=Jo(n.width)/r||1),a>0&&(l=Jo(n.height)/a||1)}return{width:n.width/o,height:n.height/l,top:n.top/l,right:n.right/o,bottom:n.bottom/l,left:n.left/o,x:n.left/o,y:n.top/l}}function el(e){var t=Qo(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function tl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qo(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function nl(e){return Wo(e).getComputedStyle(e)}function ol(e){return["table","td","th"].indexOf(jo(e))>=0}function ll(e){return((Ko(e)?e.ownerDocument:e.document)||window.document).documentElement}function al(e){return"html"===jo(e)?e:e.assignedSlot||e.parentNode||(qo(e)?e.host:null)||ll(e)}function rl(e){return Uo(e)&&"fixed"!==nl(e).position?e.offsetParent:null}function il(e){for(var t=Wo(e),n=rl(e);n&&ol(n)&&"static"===nl(n).position;)n=rl(n);return n&&("html"===jo(n)||"body"===jo(n)&&"static"===nl(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Uo(e)&&"fixed"===nl(e).position)return null;var n=al(e);for(qo(n)&&(n=n.host);Uo(n)&&["html","body"].indexOf(jo(n))<0;){var o=nl(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function sl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ul(e,t,n){return Xo(e,Zo(t,n))}function cl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function dl(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var pl={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,l=e.options,a=n.elements.arrow,r=n.modifiersData.popperOffsets,i=Go(n.placement),s=sl(i),u=[_o,Mo].indexOf(i)>=0?"height":"width";if(a&&r){var c=function(e,t){return cl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:dl(e,Lo))}(l.padding,n),d=el(a),p="y"===s?Bo:_o,f="y"===s?Oo:Mo,v=n.rects.reference[u]+n.rects.reference[s]-r[s]-n.rects.popper[u],m=r[s]-n.rects.reference[s],h=il(a),g=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,b=v/2-m/2,y=c[p],w=g-d[u]-c[f],x=g/2-d[u]/2+b,S=ul(y,x,w),k=s;n.modifiersData[o]=((t={})[k]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"==typeof o&&!(o=t.elements.popper.querySelector(o))||!tl(t.elements.popper,o)||(t.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fl(e){return e.split("-")[1]}var vl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ml(e){var t,n=e.popper,o=e.popperRect,l=e.placement,a=e.variation,r=e.offsets,i=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=r.x,f=void 0===p?0:p,v=r.y,m=void 0===v?0:v,h="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=h.x,m=h.y;var g=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),y=_o,w=Bo,x=window;if(u){var S=il(n),k="clientHeight",C="clientWidth";if(S===Wo(n)&&("static"!==nl(S=ll(n)).position&&"absolute"===i&&(k="scrollHeight",C="scrollWidth")),l===Bo||(l===_o||l===Mo)&&a===Ao)w=Oo,m-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[k])-o.height,m*=s?1:-1;if(l===_o||(l===Bo||l===Oo)&&a===Ao)y=Mo,f-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[C])-o.width,f*=s?1:-1}var E,I=Object.assign({position:i},u&&vl),T=!0===c?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:Jo(t*o)/o||0,y:Jo(n*o)/o||0}}({x:f,y:m}):{x:f,y:m};return f=T.x,m=T.y,s?Object.assign({},I,((E={})[w]=b?"0":"",E[y]=g?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},I,((t={})[w]=b?m+"px":"",t[y]=g?f+"px":"",t.transform="",t))}var hl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,l=void 0===o||o,a=n.adaptive,r=void 0===a||a,i=n.roundOffsets,s=void 0===i||i,u={placement:Go(t.placement),variation:fl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ml(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ml(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},gl={passive:!0};var bl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,l=o.scroll,a=void 0===l||l,r=o.resize,i=void 0===r||r,s=Wo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,gl)})),i&&s.addEventListener("resize",n.update,gl),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,gl)})),i&&s.removeEventListener("resize",n.update,gl)}},data:{}},yl={left:"right",right:"left",bottom:"top",top:"bottom"};function wl(e){return e.replace(/left|right|bottom|top/g,(function(e){return yl[e]}))}var xl={start:"end",end:"start"};function Sl(e){return e.replace(/start|end/g,(function(e){return xl[e]}))}function kl(e){var t=Wo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Cl(e){return Qo(ll(e)).left+kl(e).scrollLeft}function El(e){var t=nl(e),n=t.overflow,o=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+o)}function Il(e){return["html","body","#document"].indexOf(jo(e))>=0?e.ownerDocument.body:Uo(e)&&El(e)?e:Il(al(e))}function Tl(e,t){var n;void 0===t&&(t=[]);var o=Il(e),l=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Wo(o),r=l?[a].concat(a.visualViewport||[],El(o)?o:[]):o,i=t.concat(r);return l?i:i.concat(Tl(al(r)))}function Bl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ol(e,t){return t===No?Bl(function(e){var t=Wo(e),n=ll(e),o=t.visualViewport,l=n.clientWidth,a=n.clientHeight,r=0,i=0;return o&&(l=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,i=o.offsetTop)),{width:l,height:a,x:r+Cl(e),y:i}}(e)):Ko(t)?function(e){var t=Qo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Bl(function(e){var t,n=ll(e),o=kl(e),l=null==(t=e.ownerDocument)?void 0:t.body,a=Xo(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),r=Xo(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),i=-o.scrollLeft+Cl(e),s=-o.scrollTop;return"rtl"===nl(l||n).direction&&(i+=Xo(n.clientWidth,l?l.clientWidth:0)-a),{width:a,height:r,x:i,y:s}}(ll(e)))}function Ml(e,t,n){var o="clippingParents"===t?function(e){var t=Tl(al(e)),n=["absolute","fixed"].indexOf(nl(e).position)>=0&&Uo(e)?il(e):e;return Ko(n)?t.filter((function(e){return Ko(e)&&tl(e,n)&&"body"!==jo(e)})):[]}(e):[].concat(t),l=[].concat(o,[n]),a=l[0],r=l.reduce((function(t,n){var o=Ol(e,n);return t.top=Xo(o.top,t.top),t.right=Zo(o.right,t.right),t.bottom=Zo(o.bottom,t.bottom),t.left=Xo(o.left,t.left),t}),Ol(e,a));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function _l(e){var t,n=e.reference,o=e.element,l=e.placement,a=l?Go(l):null,r=l?fl(l):null,i=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(a){case Bo:t={x:i,y:n.y-o.height};break;case Oo:t={x:i,y:n.y+n.height};break;case Mo:t={x:n.x+n.width,y:s};break;case _o:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?sl(a):null;if(null!=u){var c="y"===u?"height":"width";switch(r){case $o:t[u]=t[u]-(n[c]/2-o[c]/2);break;case Ao:t[u]=t[u]+(n[c]/2-o[c]/2)}}return t}function Rl(e,t){void 0===t&&(t={});var n=t,o=n.placement,l=void 0===o?e.placement:o,a=n.boundary,r=void 0===a?Vo:a,i=n.rootBoundary,s=void 0===i?No:i,u=n.elementContext,c=void 0===u?Fo:u,d=n.altBoundary,p=void 0!==d&&d,f=n.padding,v=void 0===f?0:f,m=cl("number"!=typeof v?v:dl(v,Lo)),h=c===Fo?zo:Fo,g=e.rects.popper,b=e.elements[p?h:c],y=Ml(Ko(b)?b:b.contextElement||ll(e.elements.popper),r,s),w=Qo(e.elements.reference),x=_l({reference:w,element:g,strategy:"absolute",placement:l}),S=Bl(Object.assign({},g,x)),k=c===Fo?S:w,C={top:y.top-k.top+m.top,bottom:k.bottom-y.bottom+m.bottom,left:y.left-k.left+m.left,right:k.right-y.right+m.right},E=e.modifiersData.offset;if(c===Fo&&E){var I=E[l];Object.keys(C).forEach((function(e){var t=[Mo,Oo].indexOf(e)>=0?1:-1,n=[Bo,Oo].indexOf(e)>=0?"y":"x";C[e]+=I[n]*t}))}return C}var Ll={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var l=n.mainAxis,a=void 0===l||l,r=n.altAxis,i=void 0===r||r,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,v=void 0===f||f,m=n.allowedAutoPlacements,h=t.options.placement,g=Go(h),b=s||(g===h||!v?[wl(h)]:function(e){if(Go(e)===Ro)return[];var t=wl(e);return[Sl(e),t,Sl(t)]}(h)),y=[h].concat(b).reduce((function(e,n){return e.concat(Go(n)===Ro?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,l=n.boundary,a=n.rootBoundary,r=n.padding,i=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Do:s,c=fl(o),d=c?i?Po:Po.filter((function(e){return fl(e)===c})):Lo,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Rl(e,{placement:n,boundary:l,rootBoundary:a,padding:r})[Go(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,k=!0,C=y[0],E=0;E=0,M=O?"width":"height",_=Rl(t,{placement:I,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),R=O?B?Mo:_o:B?Oo:Bo;w[M]>x[M]&&(R=wl(R));var L=wl(R),$=[];if(a&&$.push(_[T]<=0),i&&$.push(_[R]<=0,_[L]<=0),$.every((function(e){return e}))){C=I,k=!1;break}S.set(I,$)}if(k)for(var A=function(e){var t=y.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},V=v?3:1;V>0;V--){if("break"===A(V))break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $l(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Al(e){return[Bo,Mo,Oo,_o].some((function(t){return e[t]>=0}))}var Vl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,l=t.rects.popper,a=t.modifiersData.preventOverflow,r=Rl(t,{elementContext:"reference"}),i=Rl(t,{altBoundary:!0}),s=$l(r,o),u=$l(i,l,a),c=Al(s),d=Al(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var Nl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,l=n.offset,a=void 0===l?[0,0]:l,r=Do.reduce((function(e,n){return e[n]=function(e,t,n){var o=Go(e),l=[_o,Bo].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=a[0],i=a[1];return r=r||0,i=(i||0)*l,[_o,Mo].indexOf(o)>=0?{x:i,y:r}:{x:r,y:i}}(n,t.rects,a),e}),{}),i=r[t.placement],s=i.x,u=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=r}};var Fl={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=_l({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var zl={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,l=n.mainAxis,a=void 0===l||l,r=n.altAxis,i=void 0!==r&&r,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,v=n.tetherOffset,m=void 0===v?0:v,h=Rl(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),g=Go(t.placement),b=fl(t.placement),y=!b,w=sl(g),x=function(e){return"x"===e?"y":"x"}(w),S=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,I="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(S){if(a){var O,M="y"===w?Bo:_o,_="y"===w?Oo:Mo,R="y"===w?"height":"width",L=S[w],$=L+h[M],A=L-h[_],V=f?-C[R]/2:0,N=b===$o?k[R]:C[R],F=b===$o?-C[R]:-k[R],z=t.elements.arrow,P=f&&z?el(z):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=D[M],j=D[_],W=ul(0,k[R],P[R]),K=y?k[R]/2-V-W-H-I.mainAxis:N-W-H-I.mainAxis,U=y?-k[R]/2+V+W+j+I.mainAxis:F+W+j+I.mainAxis,q=t.elements.arrow&&il(t.elements.arrow),Y=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,G=null!=(O=null==T?void 0:T[w])?O:0,X=L+U-G,Z=ul(f?Zo($,L+K-G-Y):$,L,f?Xo(A,X):A);S[w]=Z,B[w]=Z-L}if(i){var J,Q="x"===w?Bo:_o,ee="x"===w?Oo:Mo,te=S[x],ne="y"===x?"height":"width",oe=te+h[Q],le=te-h[ee],ae=-1!==[Bo,_o].indexOf(g),re=null!=(J=null==T?void 0:T[x])?J:0,ie=ae?oe:te-k[ne]-C[ne]-re+I.altAxis,se=ae?te+k[ne]+C[ne]-re-I.altAxis:le,ue=f&&ae?function(e,t,n){var o=ul(e,t,n);return o>n?n:o}(ie,te,se):ul(f?ie:oe,te,f?se:le);S[x]=ue,B[x]=ue-te}t.modifiersData[o]=B}},requiresIfExists:["offset"]};function Pl(e,t,n){void 0===n&&(n=!1);var o=Uo(t),l=Uo(t)&&function(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,o=Jo(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),a=ll(t),r=Qo(e,l),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&(("body"!==jo(t)||El(a))&&(i=function(e){return e!==Wo(e)&&Uo(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):kl(e)}(t)),Uo(t)?((s=Qo(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Cl(a))),{x:r.left+i.scrollLeft-s.x,y:r.top+i.scrollTop-s.y,width:r.width,height:r.height}}function Dl(e){var t=new Map,n=new Set,o=[];function l(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&l(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||l(e)})),o}function Hl(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var jl={placement:"bottom",modifiers:[],strategy:"absolute"};function Wl(){for(var e=arguments.length,t=new Array(e),n=0;n{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements),n=He(t.map((t=>[t,e.styles[t]||{}]))),o=He(t.map((t=>[t,e.attributes[t]])));return{styles:n,attributes:o}}(e);Object.assign(r.value,t)},requires:["computeStyles"]},l=k((()=>{const{onFirstUpdate:e,placement:t,strategy:l,modifiers:a}=p(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:l||"absolute",modifiers:[...a||[],o,{name:"applyStyles",enabled:!1}]}})),a=w(),r=m({styles:{popper:{position:p(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return S(l,(e=>{const t=p(a);t&&t.setOptions(e)}),{deep:!0}),S([e,t],(([e,t])=>{i(),e&&t&&(a.value=Ul(e,t,p(l)))})),F((()=>{i()})),{state:k((()=>{var e;return s({},(null==(e=p(a))?void 0:e.state)||{})})),styles:k((()=>p(r).styles)),attributes:k((()=>p(r).attributes)),update:()=>{var e;return null==(e=p(a))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=p(a))?void 0:e.forceUpdate()},instanceRef:k((()=>p(a)))}};const Yl=e=>{if(!e)return{onClick:$,onMousedown:$,onMouseup:$};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{n=e.target===e.currentTarget}}};function Gl(){let e;const t=()=>window.clearTimeout(e);return bt((()=>t())),{registerTimeout:(n,o)=>{t(),e=window.setTimeout(n,o)},cancelTimeout:t}}const Xl={prefix:Math.floor(1e4*Math.random()),current:0},Zl=Symbol("elIdInjection"),Jl=()=>g()?z(Zl,Xl):Xl,Ql=e=>{const t=Jl(),n=xo();return k((()=>p(e)||`${n.value}-id-${t.prefix}-${t.current++}`))};let ea=[];const ta=e=>{const t=e;t.key===Jn.esc&&ea.forEach((e=>e(t)))};let na;const oa=()=>{const e=xo(),t=Jl(),n=k((()=>`${e.value}-popper-container-${t.prefix}`)),o=k((()=>`#${n.value}`));return{id:n,selector:o}},la=()=>{const{id:e,selector:t}=oa();return H((()=>{ft&&(na||document.body.querySelector(t.value)||(na=(e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t})(e.value)))})),{id:e,selector:t}},aa=jn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),ra=Symbol("elForwardRef"),ia=m(0),sa=2e3,ua=Symbol("zIndexContextKey"),ca=e=>{const t=e||(g()?z(ua,void 0):void 0),n=k((()=>{const e=p(t);return Xt(e)?e:sa})),o=k((()=>n.value+ia.value));return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(ia.value++,o.value)}},da=Math.min,pa=Math.max,fa=Math.round,va=Math.floor,ma=e=>({x:e,y:e}),ha={left:"right",right:"left",bottom:"top",top:"bottom"},ga={start:"end",end:"start"};function ba(e,t,n){return pa(e,da(t,n))}function ya(e,t){return"function"==typeof e?e(t):e}function wa(e){return e.split("-")[0]}function xa(e){return e.split("-")[1]}function Sa(e){return"x"===e?"y":"x"}function ka(e){return"y"===e?"height":"width"}function Ca(e){return["top","bottom"].includes(wa(e))?"y":"x"}function Ea(e){return Sa(Ca(e))}function Ia(e){return e.replace(/start|end/g,(e=>ga[e]))}function Ta(e){return e.replace(/left|right|bottom|top/g,(e=>ha[e]))}function Ba(e){return"number"!=typeof e?function(e){return s({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function Oa(e){return u(s({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function Ma(e,t,n){let{reference:o,floating:l}=e;const a=Ca(t),r=Ea(t),i=ka(r),s=wa(t),u="y"===a,c=o.x+o.width/2-l.width/2,d=o.y+o.height/2-l.height/2,p=o[i]/2-l[i]/2;let f;switch(s){case"top":f={x:c,y:o.y-l.height};break;case"bottom":f={x:c,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-l.width,y:d};break;default:f={x:o.x,y:o.y}}switch(xa(t)){case"start":f[r]-=p*(n&&u?-1:1);break;case"end":f[r]+=p*(n&&u?-1:1)}return f}function _a(e,t){return d(this,null,(function*(){var n;void 0===t&&(t={});const{x:o,y:l,platform:a,rects:r,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:v=!1,padding:m=0}=ya(t,e),h=Ba(m),g=i[v?"floating"===f?"reference":"floating":f],b=Oa(yield a.getClippingRect({element:null==(n=yield null==a.isElement?void 0:a.isElement(g))||n?g:g.contextElement||(yield null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:p,strategy:c})),y="floating"===f?u(s({},r.floating),{x:o,y:l}):r.reference,w=yield null==a.getOffsetParent?void 0:a.getOffsetParent(i.floating),x=(yield null==a.isElement?void 0:a.isElement(w))&&(yield null==a.getScale?void 0:a.getScale(w))||{x:1,y:1},S=Oa(a.convertOffsetParentRelativeRectToViewportRelativeRect?yield a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:w,strategy:c}):y);return{top:(b.top-S.top+h.top)/x.y,bottom:(S.bottom-b.bottom+h.bottom)/x.y,left:(b.left-S.left+h.left)/x.x,right:(S.right-b.right+h.right)/x.x}}))}const Ra=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn(t){return d(this,null,(function*(){var n,o;const{x:l,y:a,placement:r,middlewareData:i}=t,c=yield function(e,t){return d(this,null,(function*(){const{placement:n,platform:o,elements:l}=e,a=yield null==o.isRTL?void 0:o.isRTL(l.floating),r=wa(n),i=xa(n),u="y"===Ca(n),c=["left","top"].includes(r)?-1:1,d=a&&u?-1:1,p=ya(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:m}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:s({mainAxis:0,crossAxis:0,alignmentAxis:null},p);return i&&"number"==typeof m&&(v="end"===i?-1*m:m),u?{x:v*d,y:f*c}:{x:f*c,y:v*d}}))}(t,e);return r===(null==(n=i.offset)?void 0:n.placement)&&null!=(o=i.arrow)&&o.alignmentOffset?{}:{x:l+c.x,y:a+c.y,data:u(s({},c),{placement:r})}}))}}};function La(e){return Va(e)?(e.nodeName||"").toLowerCase():"#document"}function $a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Aa(e){var t;return null==(t=(Va(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Va(e){return e instanceof Node||e instanceof $a(e).Node}function Na(e){return e instanceof Element||e instanceof $a(e).Element}function Fa(e){return e instanceof HTMLElement||e instanceof $a(e).HTMLElement}function za(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof $a(e).ShadowRoot)}function Pa(e){const{overflow:t,overflowX:n,overflowY:o,display:l}=Ka(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(l)}function Da(e){return["table","td","th"].includes(La(e))}function Ha(e){const t=ja(),n=Ka(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ja(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Wa(e){return["html","body","#document"].includes(La(e))}function Ka(e){return $a(e).getComputedStyle(e)}function Ua(e){return Na(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function qa(e){if("html"===La(e))return e;const t=e.assignedSlot||e.parentNode||za(e)&&e.host||Aa(e);return za(t)?t.host:t}function Ya(e){const t=qa(e);return Wa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fa(t)&&Pa(t)?t:Ya(t)}function Ga(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const l=Ya(e),a=l===(null==(o=e.ownerDocument)?void 0:o.body),r=$a(l);return a?t.concat(r,r.visualViewport||[],Pa(l)?l:[],r.frameElement&&n?Ga(r.frameElement):[]):t.concat(l,Ga(l,[],n))}function Xa(e){const t=Ka(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const l=Fa(e),a=l?e.offsetWidth:n,r=l?e.offsetHeight:o,i=fa(n)!==a||fa(o)!==r;return i&&(n=a,o=r),{width:n,height:o,$:i}}function Za(e){return Na(e)?e:e.contextElement}function Ja(e){const t=Za(e);if(!Fa(t))return ma(1);const n=t.getBoundingClientRect(),{width:o,height:l,$:a}=Xa(t);let r=(a?fa(n.width):n.width)/o,i=(a?fa(n.height):n.height)/l;return r&&Number.isFinite(r)||(r=1),i&&Number.isFinite(i)||(i=1),{x:r,y:i}}const Qa=ma(0);function er(e){const t=$a(e);return ja()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Qa}function tr(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect(),a=Za(e);let r=ma(1);t&&(o?Na(o)&&(r=Ja(o)):r=Ja(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$a(e))&&t}(a,n,o)?er(a):ma(0);let s=(l.left+i.x)/r.x,u=(l.top+i.y)/r.y,c=l.width/r.x,d=l.height/r.y;if(a){const e=$a(a),t=o&&Na(o)?$a(o):o;let n=e,l=n.frameElement;for(;l&&o&&t!==n;){const e=Ja(l),t=l.getBoundingClientRect(),o=Ka(l),a=t.left+(l.clientLeft+parseFloat(o.paddingLeft))*e.x,r=t.top+(l.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=a,u+=r,n=$a(l),l=n.frameElement}}return Oa({width:c,height:d,x:s,y:u})}const nr=[":popover-open",":modal"];function or(e){return nr.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function lr(e){return tr(Aa(e)).left+Ua(e).scrollLeft}function ar(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=$a(e),o=Aa(e),l=n.visualViewport;let a=o.clientWidth,r=o.clientHeight,i=0,s=0;if(l){a=l.width,r=l.height;const e=ja();(!e||e&&"fixed"===t)&&(i=l.offsetLeft,s=l.offsetTop)}return{width:a,height:r,x:i,y:s}}(e,n);else if("document"===t)o=function(e){const t=Aa(e),n=Ua(e),o=e.ownerDocument.body,l=pa(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=pa(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+lr(e);const i=-n.scrollTop;return"rtl"===Ka(o).direction&&(r+=pa(t.clientWidth,o.clientWidth)-l),{width:l,height:a,x:r,y:i}}(Aa(e));else if(Na(t))o=function(e,t){const n=tr(e,!0,"fixed"===t),o=n.top+e.clientTop,l=n.left+e.clientLeft,a=Fa(e)?Ja(e):ma(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:l*a.x,y:o*a.y}}(t,n);else{const n=er(e);o=u(s({},t),{x:t.x-n.x,y:t.y-n.y})}return Oa(o)}function rr(e,t){const n=qa(e);return!(n===t||!Na(n)||Wa(n))&&("fixed"===Ka(n).position||rr(n,t))}function ir(e,t,n){const o=Fa(t),l=Aa(t),a="fixed"===n,r=tr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const s=ma(0);if(o||!o&&!a)if(("body"!==La(t)||Pa(l))&&(i=Ua(t)),o){const e=tr(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else l&&(s.x=lr(l));return{x:r.left+i.scrollLeft-s.x,y:r.top+i.scrollTop-s.y,width:r.width,height:r.height}}function sr(e,t){return Fa(e)&&"fixed"!==Ka(e).position?t?t(e):e.offsetParent:null}function ur(e,t){const n=$a(e);if(!Fa(e)||or(e))return n;let o=sr(e,t);for(;o&&Da(o)&&"static"===Ka(o).position;)o=sr(o,t);return o&&("html"===La(o)||"body"===La(o)&&"static"===Ka(o).position&&!Ha(o))?n:o||function(e){let t=qa(e);for(;Fa(t)&&!Wa(t);){if(Ha(t))return t;t=qa(t)}return null}(e)||n}const cr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:l}=e;const a="fixed"===l,r=Aa(o),i=!!t&&or(t.floating);if(o===r||i&&a)return n;let s={scrollLeft:0,scrollTop:0},u=ma(1);const c=ma(0),d=Fa(o);if((d||!d&&!a)&&(("body"!==La(o)||Pa(r))&&(s=Ua(o)),Fa(o))){const e=tr(o);u=Ja(o),c.x=e.x+o.clientLeft,c.y=e.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:Aa,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e;const a=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=Ga(e,[],!1).filter((e=>Na(e)&&"body"!==La(e))),l=null;const a="fixed"===Ka(e).position;let r=a?qa(e):e;for(;Na(r)&&!Wa(r);){const t=Ka(r),n=Ha(r);n||"fixed"!==t.position||(l=null),(a?!n&&!l:!n&&"static"===t.position&&l&&["absolute","fixed"].includes(l.position)||Pa(r)&&!n&&rr(e,r))?o=o.filter((e=>e!==r)):l=t,r=qa(r)}return t.set(e,o),o}(t,this._c):[].concat(n),o],r=a[0],i=a.reduce(((e,n)=>{const o=ar(t,n,l);return e.top=pa(o.top,e.top),e.right=da(o.right,e.right),e.bottom=da(o.bottom,e.bottom),e.left=pa(o.left,e.left),e}),ar(t,r,l));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:ur,getElementRects:function(e){return d(this,null,(function*(){const t=this.getOffsetParent||ur,n=this.getDimensions;return{reference:ir(e.reference,yield t(e.floating),e.strategy),floating:s({x:0,y:0},yield n(e.floating))}}))},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Xa(e);return{width:t,height:n}},getScale:Ja,isElement:Na,isRTL:function(e){return"rtl"===Ka(e).direction}};function dr(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,d=Za(e),p=l||a?[...d?Ga(d):[],...Ga(t)]:[];p.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const f=d&&i?function(e,t){let n,o=null;const l=Aa(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function r(i,c){void 0===i&&(i=!1),void 0===c&&(c=1),a();const{left:d,top:p,width:f,height:v}=e.getBoundingClientRect();if(i||t(),!f||!v)return;const m={rootMargin:-va(p)+"px "+-va(l.clientWidth-(d+f))+"px "+-va(l.clientHeight-(p+v))+"px "+-va(d)+"px",threshold:pa(0,da(1,c))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return r();t?r(!1,t):n=setTimeout((()=>{r(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(g,u(s({},m),{root:l.ownerDocument}))}catch(b){o=new IntersectionObserver(g,m)}o.observe(e)}(!0),a}(d,n):null;let v,m=-1,h=null;r&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),d&&!c&&h.observe(d),h.observe(t));let g=c?tr(e):null;return c&&function t(){const o=tr(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,v=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const pr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn(t){return d(this,null,(function*(){const{x:n,y:o,placement:l}=t,a=ya(e,t),{mainAxis:r=!0,crossAxis:i=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=a,p=c(a,["mainAxis","crossAxis","limiter"]),f={x:n,y:o},v=yield _a(t,p),m=Ca(wa(l)),h=Sa(m);let g=f[h],b=f[m];if(r){const e="y"===h?"bottom":"right";g=ba(g+v["y"===h?"top":"left"],g,g-v[e])}if(i){const e="y"===m?"bottom":"right";b=ba(b+v["y"===m?"top":"left"],b,b-v[e])}const y=d.fn(u(s({},t),{[h]:g,[m]:b}));return u(s({},y),{data:{x:y.x-n,y:y.y-o}})}))}}},fr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn(t){return d(this,null,(function*(){var n,o;const{placement:l,middlewareData:a,rects:r,initialPlacement:i,platform:s,elements:u}=t,d=ya(e,t),{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0}=d,b=c(d,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=wa(l),w=wa(i)===i,x=yield null==s.isRTL?void 0:s.isRTL(u.floating),S=v||(w||!g?[Ta(i)]:function(e){const t=Ta(e);return[Ia(e),t,Ia(t)]}(i));v||"none"===h||S.push(...function(e,t,n,o){const l=xa(e);let a=function(e,t,n){const o=["left","right"],l=["right","left"],a=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return n?t?l:o:t?o:l;case"left":case"right":return t?a:r;default:return[]}}(wa(e),"start"===n,o);return l&&(a=a.map((e=>e+"-"+l)),t&&(a=a.concat(a.map(Ia)))),a}(i,g,h,x));const k=[i,...S],C=yield _a(t,b),E=[];let I=(null==(o=a.flip)?void 0:o.overflows)||[];if(p&&E.push(C[y]),f){const e=function(e,t,n){void 0===n&&(n=!1);const o=xa(e),l=Ea(e),a=ka(l);let r="x"===l?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(r=Ta(r)),[r,Ta(r)]}(l,r,x);E.push(C[e[0]],C[e[1]])}if(I=[...I,{placement:l,overflows:E}],!E.every((e=>e<=0))){var T,B;const e=((null==(T=a.flip)?void 0:T.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(B=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:B.placement;if(!n)switch(m){case"bestFit":{var O;const e=null==(O=I.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=i}if(l!==n)return{reset:{placement:n}}}return{}}))}}},vr=e=>({name:"arrow",options:e,fn(t){return d(this,null,(function*(){const{x:n,y:o,placement:l,rects:a,platform:r,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=ya(e,t)||{};if(null==c)return{};const p=Ba(d),f={x:n,y:o},v=Ea(l),m=ka(v),h=yield r.getDimensions(c),g="y"===v,b=g?"top":"left",y=g?"bottom":"right",w=g?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[v]-f[v]-a.floating[m],S=f[v]-a.reference[v],k=yield null==r.getOffsetParent?void 0:r.getOffsetParent(c);let C=k?k[w]:0;C&&(yield null==r.isElement?void 0:r.isElement(k))||(C=i.floating[w]||a.floating[m]);const E=x/2-S/2,I=C/2-h[m]/2-1,T=da(p[b],I),B=da(p[y],I),O=T,M=C-h[m]-B,_=C/2-h[m]/2+E,R=ba(O,_,M),L=!u.arrow&&null!=xa(l)&&_!==R&&a.reference[m]/2-(_{const o=new Map,l=s({platform:cr},n),a=u(s({},l.platform),{_c:o});return((e,t,n)=>d(void 0,null,(function*(){const{placement:o="bottom",strategy:l="absolute",middleware:a=[],platform:r}=n,i=a.filter(Boolean),c=yield null==r.isRTL?void 0:r.isRTL(t);let d=yield r.getElementRects({reference:e,floating:t,strategy:l}),{x:p,y:f}=Ma(d,o,c),v=o,m={},h=0;for(let n=0;n{const n={},o=w([]);return{children:o,addChild:l=>{n[l.uid]=l,o.value=((e,t,n)=>ao(e.subTree).filter((e=>{var n;return N(e)&&(null==(n=e.type)?void 0:n.name)===t&&!!e.component})).map((e=>e.component.uid)).map((e=>n[e])).filter((e=>!!e)))(e,t,n)},removeChild:e=>{delete n[e],o.value=o.value.filter((t=>t.uid!==e))}}},gr=Hn({type:String,values:no,required:!1}),br=Symbol("size");function yr(e,{afterFocus:t,beforeBlur:n,afterBlur:o}={}){const l=g(),{emit:a}=l,r=w(),i=m(!1);return S(r,(e=>{e&&e.setAttribute("tabindex","-1")})),Et(r,"click",(()=>{var t;null==(t=e.value)||t.focus()})),{wrapperRef:r,isFocused:i,handleFocus:e=>{i.value||(i.value=!0,a("focus",e),null==t||t())},handleBlur:e=>{var t;!!A(n)&&n(e)||e.relatedTarget&&(null==(t=r.value)?void 0:t.contains(e.relatedTarget))||(i.value=!1,a("blur",e),null==o||o())}}}const wr=Symbol(),xr=m();function Sr(e,t=void 0){const n=g()?z(wr,xr):xr;return e?k((()=>{var o,l;return null!=(l=null==(o=n.value)?void 0:o[e])?l:t})):n}function kr(e,t){const n=Sr(),o=So(e,k((()=>{var e;return(null==(e=n.value)?void 0:e.namespace)||bo}))),l=go(k((()=>{var e;return null==(e=n.value)?void 0:e.locale}))),a=ca(k((()=>{var e;return(null==(e=n.value)?void 0:e.zIndex)||sa}))),r=k((()=>{var e;return p(t)||(null==(e=n.value)?void 0:e.size)||""}));return Cr(k((()=>p(n)||{}))),{ns:o,locale:l,zIndex:a,size:r}}const Cr=(e,t,n=!1)=>{var o;const l=!!g(),a=l?Sr():void 0,r=null!=(o=null==t?void 0:t.provide)?o:l?j:void 0;if(!r)return;const i=k((()=>{const t=p(e);return(null==a?void 0:a.value)?Er(a.value,t):t}));return r(wr,i),r(ho,k((()=>i.value.locale))),r(wo,k((()=>i.value.namespace))),r(ua,k((()=>i.value.zIndex))),r(br,{size:k((()=>i.value.size||""))}),!n&&xr.value||(xr.value=i.value),i},Er=(e,t)=>{var n;const o=[...new Set([...en(e),...en(t)])],l={};for(const a of o)l[a]=null!=(n=t[a])?n:e[a];return l},Ir=jn({a11y:{type:Boolean,default:!0},locale:{type:Object},size:gr,button:{type:Object},experimentalFeatures:{type:Object},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object},zIndex:Number,namespace:{type:String,default:"el"}}),Tr={},Br=Gn(T({name:"ElConfigProvider",props:Ir,setup(e,{slots:t}){S((()=>e.message),(e=>{Object.assign(Tr,null!=e?e:{})}),{immediate:!0,deep:!0});const n=Cr(e);return()=>W(t,"default",{config:null==n?void 0:n.value})}})),Or=jn({zIndex:{type:[Number,String],default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Mr={scroll:({scrollTop:e,fixed:t})=>Xt(e)&&Gt(t),[eo]:e=>Gt(e)};var _r=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n};const Rr="ElAffix",Lr=T({name:Rr});const $r=Gn(_r(T(u(s({},Lr),{props:Or,emits:Mr,setup(e,{expose:t,emit:n}){const o=e,l=So("affix"),a=w(),r=w(),i=w(),{height:s}=function(e={}){const{window:t=kt,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:l=!0,includeScrollbar:a=!0}=e,r=m(n),i=m(o),s=()=>{t&&(a?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return s(),wt(s),Et("resize",s,{passive:!0}),l&&Et("orientationchange",s,{passive:!0}),{width:r,height:i}}(),{height:u,width:c,top:d,bottom:f,update:v}=At(r,{windowScroll:!1}),h=At(a),g=m(!1),y=m(0),C=m(0),E=k((()=>({height:g.value?`${u.value}px`:"",width:g.value?`${c.value}px`:""}))),I=k((()=>{if(!g.value)return{};const e=o.offset?un(o.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:"top"===o.position?e:"",bottom:"bottom"===o.position?e:"",transform:C.value?`translateY(${C.value}px)`:"",zIndex:o.zIndex}})),T=()=>{if(i.value)if(y.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0,"top"===o.position)if(o.target){const e=h.bottom.value-o.offset-u.value;g.value=o.offset>d.value&&h.bottom.value>0,C.value=e<0?e:0}else g.value=o.offset>d.value;else if(o.target){const e=s.value-h.top.value-o.offset-u.value;g.value=s.value-o.offseth.top.value,C.value=e<0?-e:0}else g.value=s.value-o.offsetn("change",e))),b((()=>{var e;o.target?(a.value=null!=(e=document.querySelector(o.target))?e:void 0,a.value||nn(Rr,`Target is not existed: ${o.target}`)):a.value=document.documentElement,i.value=dn(r.value,!0),v()})),Et(i,"scroll",(()=>{v(),n("scroll",{scrollTop:y.value,fixed:g.value})})),x(T),t({update:T,updateRoot:v}),(e,t)=>(B(),O("div",{ref_key:"root",ref:r,class:K(p(l).b()),style:U(p(E))},[M("div",{class:K({[p(l).m("fixed")]:g.value}),style:U(p(I))},[W(e.$slots,"default")],6)],6))}})),[["__file","affix.vue"]])),Ar=jn({size:{type:[Number,String]},color:{type:String}}),Vr=T({name:"ElIcon",inheritAttrs:!1});const Nr=Gn(_r(T(u(s({},Vr),{props:Ar,setup(e){const t=e,n=So("icon"),o=k((()=>{const{size:e,color:n}=t;return e||n?{fontSize:Yt(e)?void 0:un(e),"--color":n}:{}}));return(e,t)=>(B(),O("i",q({class:p(n).b(),style:p(o)},e.$attrs),[W(e.$slots,"default")],16))}})),[["__file","icon.vue"]])),Fr=Symbol("formContextKey"),zr=Symbol("formItemContextKey"),Pr=(e,t={})=>{const n=m(void 0),o=t.prop?n:To("size"),l=t.global?n:(()=>{const e=z(br,{});return k((()=>p(e.size)||""))})(),a=t.form?{size:void 0}:z(Fr,void 0),r=t.formItem?{size:void 0}:z(zr,void 0);return k((()=>o.value||p(e)||(null==r?void 0:r.size)||(null==a?void 0:a.size)||l.value||""))},Dr=e=>{const t=To("disabled"),n=z(Fr,void 0);return k((()=>t.value||p(e)||(null==n?void 0:n.disabled)||!1))},Hr=()=>({form:z(Fr,void 0),formItem:z(zr,void 0)}),jr=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=m(!1)),o||(o=m(!1));const l=m();let a;const r=k((()=>{var n;return!!(!e.label&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return b((()=>{a=S([Y(e,"id"),n],(([e,n])=>{const a=null!=e?e:n?void 0:Ql().value;a!==l.value&&((null==t?void 0:t.removeInputId)&&(l.value&&t.removeInputId(l.value),(null==o?void 0:o.value)||n||!a||t.addInputId(a)),l.value=a)}),{immediate:!0})})),G((()=>{a&&a(),(null==t?void 0:t.removeInputId)&&l.value&&t.removeInputId(l.value)})),{isLabeledByFormItem:r,inputId:l}};let Wr;const Kr=`\n height:0 !important;\n visibility:hidden !important;\n ${ft&&/firefox/i.test(window.navigator.userAgent)?"":"overflow:hidden !important;"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`,Ur=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function qr(e,t=1,n){var o;Wr||(Wr=document.createElement("textarea"),document.body.appendChild(Wr));const{paddingSize:l,borderSize:a,boxSizing:r,contextStyle:i}=function(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Ur.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:o,borderSize:l,boxSizing:n}}(e);Wr.setAttribute("style",`${i};${Kr}`),Wr.value=e.value||e.placeholder||"";let s=Wr.scrollHeight;const u={};"border-box"===r?s+=a:"content-box"===r&&(s-=l),Wr.value="";const c=Wr.scrollHeight-l;if(Xt(t)){let e=c*t;"border-box"===r&&(e=e+l+a),s=Math.max(e,s),u.minHeight=`${e}px`}if(Xt(n)){let e=c*n;"border-box"===r&&(e=e+l+a),s=Math.min(e,s)}return u.height=`${s}px`,null==(o=Wr.parentNode)||o.removeChild(Wr),Wr=void 0,u}const Yr=jn({id:{type:String,default:void 0},size:gr,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Wn},prefixIcon:{type:Wn},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})},autofocus:{type:Boolean,default:!1}}),Gr={[Qn]:e=>C(e),input:e=>C(e),change:e=>C(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Xr=["role"],Zr=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Jr=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Qr=T({name:"ElInput",inheritAttrs:!1});const ei=Gn(_r(T(u(s({},Qr),{props:Yr,emits:Gr,setup(e,{expose:t,emit:n}){const o=e,l=X(),a=Z(),r=k((()=>{const e={};return"combobox"===o.containerRole&&(e["aria-haspopup"]=l["aria-haspopup"],e["aria-owns"]=l["aria-owns"],e["aria-expanded"]=l["aria-expanded"]),e})),i=k((()=>["textarea"===o.type?E.b():C.b(),C.m(g.value),C.is("disabled",x.value),C.is("exceed",me.value),{[C.b("group")]:a.prepend||a.append,[C.bm("group","append")]:a.append,[C.bm("group","prepend")]:a.prepend,[C.m("prefix")]:a.prefix||o.prefixIcon,[C.m("suffix")]:a.suffix||o.suffixIcon||o.clearable||o.showPassword,[C.bm("suffix","password-clear")]:de.value&&pe.value,[C.b("hidden")]:"hidden"===o.type},l.class])),u=k((()=>[C.e("wrapper"),C.is("focus",P.value)])),c=uo({excludeKeys:k((()=>Object.keys(r.value)))}),{form:f,formItem:v}=Hr(),{inputId:h}=jr(o,{formItemContext:v}),g=Pr(),x=Dr(),C=So("input"),E=So("textarea"),I=w(),T=w(),R=m(!1),L=m(!1),A=m(!1),V=m(),N=w(o.inputStyle),F=k((()=>I.value||T.value)),{wrapperRef:z,isFocused:P,handleFocus:D,handleBlur:H}=yr(F,{afterBlur(){var e;o.validateEvent&&(null==(e=null==v?void 0:v.validate)||e.call(v,"blur").catch((e=>{})))}}),j=k((()=>{var e;return null!=(e=null==f?void 0:f.statusIcon)&&e})),G=k((()=>(null==v?void 0:v.validateState)||"")),re=k((()=>G.value&&Yn[G.value])),ie=k((()=>A.value?Nn:En)),se=k((()=>[l.style])),ue=k((()=>[o.inputStyle,N.value,{resize:o.resize}])),ce=k((()=>De(o.modelValue)?"":String(o.modelValue))),de=k((()=>o.clearable&&!x.value&&!o.readonly&&!!ce.value&&(P.value||R.value))),pe=k((()=>o.showPassword&&!x.value&&!o.readonly&&!!ce.value&&(!!ce.value||P.value))),fe=k((()=>o.showWordLimit&&!!o.maxlength&&("text"===o.type||"textarea"===o.type)&&!x.value&&!o.readonly&&!o.showPassword)),ve=k((()=>ce.value.length)),me=k((()=>!!fe.value&&ve.value>Number(o.maxlength))),he=k((()=>!!a.suffix||!!o.suffixIcon||de.value||o.showPassword||fe.value||!!G.value&&j.value)),[ge,be]=function(e){const t=m();return[function(){if(null==e.value)return;const{selectionStart:n,selectionEnd:o,value:l}=e.value;if(null==n||null==o)return;const a=l.slice(0,Math.max(0,n)),r=l.slice(Math.max(0,o));t.value={selectionStart:n,selectionEnd:o,value:l,beforeTxt:a,afterTxt:r}},function(){if(null==e.value||null==t.value)return;const{value:n}=e.value,{beforeTxt:o,afterTxt:l,selectionStart:a}=t.value;if(null==o||null==l||null==a)return;let r=n.length;if(n.endsWith(l))r=n.length-l.length;else if(n.startsWith(o))r=o.length;else{const e=o[a-1],t=n.indexOf(e,a-1);-1!==t&&(r=t+1)}e.value.setSelectionRange(r,r)}]}(I);$t(T,(e=>{if(we(),!fe.value||"both"!==o.resize)return;const t=e[0],{width:n}=t.contentRect;V.value={right:`calc(100% - ${n+15+6}px)`}}));const ye=()=>{const{type:e,autosize:t}=o;if(ft&&"textarea"===e&&T.value)if(t){const e=_(t)?t.minRows:void 0,n=_(t)?t.maxRows:void 0,o=qr(T.value,e,n);N.value=s({overflowY:"hidden"},o),y((()=>{T.value.offsetHeight,N.value=o}))}else N.value={minHeight:qr(T.value).minHeight}},we=(e=>{let t=!1;return()=>{var n;if(t||!o.autosize)return;null===(null==(n=T.value)?void 0:n.offsetParent)||(e(),t=!0)}})(ye),xe=()=>{const e=F.value,t=o.formatter?o.formatter(ce.value):ce.value;e&&e.value!==t&&(e.value=t)},Se=e=>d(this,null,(function*(){ge();let{value:t}=e.target;o.formatter&&(t=o.parser?o.parser(t):t),L.value||(t!==ce.value?(n(Qn,t),n("input",t),yield y(),xe(),be()):xe())})),ke=e=>{n("change",e.target.value)},Ce=e=>{n("compositionstart",e),L.value=!0},Ee=e=>{var t;n("compositionupdate",e);const o=null==(t=e.target)?void 0:t.value,l=o[o.length-1]||"";L.value=!ro(l)},Ie=e=>{n("compositionend",e),L.value&&(L.value=!1,Se(e))},Te=()=>{A.value=!A.value,Be()},Be=()=>d(this,null,(function*(){var e;yield y(),null==(e=F.value)||e.focus()})),Oe=e=>{R.value=!1,n("mouseleave",e)},Me=e=>{R.value=!0,n("mouseenter",e)},_e=e=>{n("keydown",e)},Re=()=>{n(Qn,""),n("change",""),n("clear"),n("input","")};return S((()=>o.modelValue),(()=>{var e;y((()=>ye())),o.validateEvent&&(null==(e=null==v?void 0:v.validate)||e.call(v,"change").catch((e=>{})))})),S(ce,(()=>xe())),S((()=>o.type),(()=>d(this,null,(function*(){yield y(),xe(),ye()})))),b((()=>{!o.formatter&&o.parser,xe(),y(ye)})),t({input:I,textarea:T,ref:F,textareaStyle:ue,autosize:Y(o,"autosize"),focus:Be,blur:()=>{var e;return null==(e=F.value)?void 0:e.blur()},select:()=>{var e;null==(e=F.value)||e.select()},clear:Re,resizeTextarea:ye}),(e,t)=>(B(),O("div",q(p(r),{class:p(i),style:p(se),role:e.containerRole,onMouseenter:Me,onMouseleave:Oe}),[J(" input "),"textarea"!==e.type?(B(),O(Q,{key:0},[J(" prepend slot "),e.$slots.prepend?(B(),O("div",{key:0,class:K(p(C).be("group","prepend"))},[W(e.$slots,"prepend")],2)):J("v-if",!0),M("div",{ref_key:"wrapperRef",ref:z,class:K(p(u))},[J(" prefix slot "),e.$slots.prefix||e.prefixIcon?(B(),O("span",{key:0,class:K(p(C).e("prefix"))},[M("span",{class:K(p(C).e("prefix-inner"))},[W(e.$slots,"prefix"),e.prefixIcon?(B(),ee(p(Nr),{key:0,class:K(p(C).e("icon"))},{default:te((()=>[(B(),ee(ne(e.prefixIcon)))])),_:1},8,["class"])):J("v-if",!0)],2)],2)):J("v-if",!0),M("input",q({id:p(h),ref_key:"input",ref:I,class:p(C).e("inner")},p(c),{minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?A.value?"text":"password":e.type,disabled:p(x),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,onCompositionstart:Ce,onCompositionupdate:Ee,onCompositionend:Ie,onInput:Se,onFocus:t[0]||(t[0]=(...e)=>p(D)&&p(D)(...e)),onBlur:t[1]||(t[1]=(...e)=>p(H)&&p(H)(...e)),onChange:ke,onKeydown:_e}),null,16,Zr),J(" suffix slot "),p(he)?(B(),O("span",{key:1,class:K(p(C).e("suffix"))},[M("span",{class:K(p(C).e("suffix-inner"))},[p(de)&&p(pe)&&p(fe)?J("v-if",!0):(B(),O(Q,{key:0},[W(e.$slots,"suffix"),e.suffixIcon?(B(),ee(p(Nr),{key:0,class:K(p(C).e("icon"))},{default:te((()=>[(B(),ee(ne(e.suffixIcon)))])),_:1},8,["class"])):J("v-if",!0)],64)),p(de)?(B(),ee(p(Nr),{key:1,class:K([p(C).e("icon"),p(C).e("clear")]),onMousedown:le(p($),["prevent"]),onClick:Re},{default:te((()=>[oe(p(wn))])),_:1},8,["class","onMousedown"])):J("v-if",!0),p(pe)?(B(),ee(p(Nr),{key:2,class:K([p(C).e("icon"),p(C).e("password")]),onClick:Te},{default:te((()=>[(B(),ee(ne(p(ie))))])),_:1},8,["class"])):J("v-if",!0),p(fe)?(B(),O("span",{key:3,class:K(p(C).e("count"))},[M("span",{class:K(p(C).e("count-inner"))},ae(p(ve))+" / "+ae(e.maxlength),3)],2)):J("v-if",!0),p(G)&&p(re)&&p(j)?(B(),ee(p(Nr),{key:4,class:K([p(C).e("icon"),p(C).e("validateIcon"),p(C).is("loading","validating"===p(G))])},{default:te((()=>[(B(),ee(ne(p(re))))])),_:1},8,["class"])):J("v-if",!0)],2)],2)):J("v-if",!0)],2),J(" append slot "),e.$slots.append?(B(),O("div",{key:1,class:K(p(C).be("group","append"))},[W(e.$slots,"append")],2)):J("v-if",!0)],64)):(B(),O(Q,{key:1},[J(" textarea "),M("textarea",q({id:p(h),ref_key:"textarea",ref:T,class:p(E).e("inner")},p(c),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:p(x),readonly:e.readonly,autocomplete:e.autocomplete,style:p(ue),"aria-label":e.label,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,onCompositionstart:Ce,onCompositionupdate:Ee,onCompositionend:Ie,onInput:Se,onFocus:t[2]||(t[2]=(...e)=>p(D)&&p(D)(...e)),onBlur:t[3]||(t[3]=(...e)=>p(H)&&p(H)(...e)),onChange:ke,onKeydown:_e}),null,16,Jr),p(fe)?(B(),O("span",{key:0,style:U(V.value),class:K(p(C).e("count"))},ae(p(ve))+" / "+ae(e.maxlength),7)):J("v-if",!0)],64))],16,Xr))}})),[["__file","input.vue"]])),ti={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ni=Symbol("scrollbarContextKey"),oi=jn({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var li=_r(T({__name:"thumb",props:oi,setup(e){const t=e,n=z(ni),o=So("scrollbar");n||nn("Thumb","can not inject scrollbar context");const l=m(),a=m(),i=m({}),s=m(!1);let u=!1,c=!1,d=ft?document.onselectstart:null;const f=k((()=>ti[t.vertical?"vertical":"horizontal"])),v=k((()=>(({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}))({size:t.size,move:t.move,bar:f.value}))),h=k((()=>r(l.value[f.value.offset],2)/n.wrapElement[f.value.scrollSize]/t.ratio/a.value[f.value.offset])),g=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),y(e);const n=e.currentTarget;n&&(i.value[f.value.axis]=n[f.value.offset]-(e[f.value.client]-n.getBoundingClientRect()[f.value.direction]))},b=e=>{if(!a.value||!l.value||!n.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[f.value.direction]-e[f.value.client])-a.value[f.value.offset]/2)*h.value/l.value[f.value.offset];n.wrapElement[f.value.scroll]=t*n.wrapElement[f.value.scrollSize]/100},y=e=>{e.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",x),d=document.onselectstart,document.onselectstart=()=>!1},w=e=>{if(!l.value||!a.value)return;if(!1===u)return;const t=i.value[f.value.axis];if(!t)return;const o=100*(-1*(l.value.getBoundingClientRect()[f.value.direction]-e[f.value.client])-(a.value[f.value.offset]-t))*h.value/l.value[f.value.offset];n.wrapElement[f.value.scroll]=o*n.wrapElement[f.value.scrollSize]/100},x=()=>{u=!1,i.value[f.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",x),S(),c&&(s.value=!1)};F((()=>{S(),document.removeEventListener("mouseup",x)}));const S=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Et(Y(n,"scrollbarElement"),"mousemove",(()=>{c=!1,s.value=!!t.size})),Et(Y(n,"scrollbarElement"),"mouseleave",(()=>{c=!0,s.value=u})),(e,t)=>(B(),ee(se,{name:p(o).b("fade"),persisted:""},{default:te((()=>[re(M("div",{ref_key:"instance",ref:l,class:K([p(o).e("bar"),p(o).is(p(f).key)]),onMousedown:b},[M("div",{ref_key:"thumb",ref:a,class:K(p(o).e("thumb")),style:U(p(v)),onMousedown:g},null,38)],34),[[ie,e.always||s.value]])])),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const ai=jn({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var ri=_r(T({__name:"bar",props:ai,setup(e,{expose:t}){const n=e,o=z(ni),l=m(0),a=m(0),i=m(""),s=m(""),u=m(1),c=m(1);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,n=e.offsetWidth-4;a.value=100*e.scrollTop/t*u.value,l.value=100*e.scrollLeft/n*c.value}},update:()=>{const e=null==o?void 0:o.wrapElement;if(!e)return;const t=e.offsetHeight-4,l=e.offsetWidth-4,a=r(t,2)/e.scrollHeight,d=r(l,2)/e.scrollWidth,p=Math.max(a,n.minSize),f=Math.max(d,n.minSize);u.value=a/(t-a)/(p/(t-p)),c.value=d/(l-d)/(f/(l-f)),s.value=p+4(B(),O(Q,null,[oe(li,{move:l.value,ratio:c.value,size:i.value,always:e.always},null,8,["move","ratio","size","always"]),oe(li,{move:a.value,ratio:u.value,size:s.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const ii=jn({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:[String,Object,Array],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),si={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Xt)},ui=T({name:"ElScrollbar"});const ci=Gn(_r(T(u(s({},ui),{props:ii,emits:si,setup(e,{expose:t,emit:n}){const o=e,l=So("scrollbar");let a,r;const i=m(),s=m(),u=m(),c=m(),d=k((()=>{const e={};return o.height&&(e.height=un(o.height)),o.maxHeight&&(e.maxHeight=un(o.maxHeight)),[o.wrapStyle,e]})),f=k((()=>[o.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!o.native}])),v=k((()=>[l.e("view"),o.viewClass])),h=()=>{var e;s.value&&(null==(e=c.value)||e.handleScroll(s.value),n("scroll",{scrollTop:s.value.scrollTop,scrollLeft:s.value.scrollLeft}))};const g=()=>{var e;null==(e=c.value)||e.update()};return S((()=>o.noresize),(e=>{e?(null==a||a(),null==r||r()):(({stop:a}=$t(u,g)),r=Et("resize",g))}),{immediate:!0}),S((()=>[o.maxHeight,o.height]),(()=>{o.native||y((()=>{var e;g(),s.value&&(null==(e=c.value)||e.handleScroll(s.value))}))})),j(ni,ue({scrollbarElement:i,wrapElement:s})),b((()=>{o.native||y((()=>{g()}))})),ce((()=>g())),t({wrapRef:s,update:g,scrollTo:function(e,t){_(e)?s.value.scrollTo(e):Xt(e)&&Xt(t)&&s.value.scrollTo(e,t)},setScrollTop:e=>{Xt(e)&&(s.value.scrollTop=e)},setScrollLeft:e=>{Xt(e)&&(s.value.scrollLeft=e)},handleScroll:h}),(e,t)=>(B(),O("div",{ref_key:"scrollbarRef",ref:i,class:K(p(l).b())},[M("div",{ref_key:"wrapRef",ref:s,class:K(p(f)),style:U(p(d)),onScroll:h},[(B(),ee(ne(e.tag),{id:e.id,ref_key:"resizeRef",ref:u,class:K(p(v)),style:U(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),e.native?J("v-if",!0):(B(),ee(ri,{key:0,ref_key:"barRef",ref:c,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}})),[["__file","scrollbar.vue"]])),di=Symbol("popper"),pi=Symbol("popperContent"),fi=jn({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),vi=T({name:"ElPopper",inheritAttrs:!1});var mi=_r(T(u(s({},vi),{props:fi,setup(e,{expose:t}){const n=e,o={triggerRef:m(),popperInstanceRef:m(),contentRef:m(),referenceRef:m(),role:k((()=>n.role))};return t(o),j(di,o),(e,t)=>W(e.$slots,"default")}})),[["__file","popper.vue"]]);const hi=jn({arrowOffset:{type:Number,default:5}}),gi=T({name:"ElPopperArrow",inheritAttrs:!1});var bi=_r(T(u(s({},gi),{props:hi,setup(e,{expose:t}){const n=e,o=So("popper"),{arrowOffset:l,arrowRef:a,arrowStyle:r}=z(pi,void 0);return S((()=>n.arrowOffset),(e=>{l.value=e})),F((()=>{a.value=void 0})),t({arrowRef:a}),(e,t)=>(B(),O("span",{ref_key:"arrowRef",ref:a,class:K(p(o).e("arrow")),style:U(p(r)),"data-popper-arrow":""},null,6))}})),[["__file","arrow.vue"]]);const yi=T({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var o;const l=z(ra),a=(r=null!=(o=null==l?void 0:l.setForwardRef)?o:$,{mounted(e){r(e)},updated(e){r(e)},unmounted(){r(null)}});var r;return()=>{var e;const o=null==(e=t.default)?void 0:e.call(t,n);if(!o)return null;if(o.length>1)return null;const l=wi(o);return l?re(de(l,n),[[a]]):null}}});function wi(e){if(!e)return null;const t=e;for(const n of t){if(_(n))switch(n.type){case fe:continue;case pe:case"svg":return xi(n);case Q:return wi(n.children);default:return n}return xi(n)}return null}function xi(e){const t=So("only-child");return oe("span",{class:t.e("content")},[e])}const Si=jn({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean}),ki=T({name:"ElPopperTrigger",inheritAttrs:!1});var Ci=_r(T(u(s({},ki),{props:Si,setup(e,{expose:t}){const n=e,{role:o,triggerRef:l}=z(di,void 0);var a;a=l,j(ra,{setForwardRef:e=>{a.value=e}});const r=k((()=>s.value?n.id:void 0)),i=k((()=>{if(o&&"tooltip"===o.value)return n.open&&n.id?n.id:void 0})),s=k((()=>{if(o&&"tooltip"!==o.value)return o.value})),u=k((()=>s.value?`${n.open}`:void 0));let c;return b((()=>{S((()=>n.virtualRef),(e=>{e&&(l.value=St(e))}),{immediate:!0}),S(l,((e,t)=>{null==c||c(),c=void 0,Zt(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((o=>{var l;const a=n[o];a&&(e.addEventListener(o.slice(2).toLowerCase(),a),null==(l=null==t?void 0:t.removeEventListener)||l.call(t,o.slice(2).toLowerCase(),a))})),c=S([r,i,s,u],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,o)=>{De(t[o])?e.removeAttribute(n):e.setAttribute(n,t[o])}))}),{immediate:!0})),Zt(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),F((()=>{null==c||c(),c=void 0})),t({triggerRef:l}),(e,t)=>e.virtualTriggering?J("v-if",!0):(B(),ee(p(yi),q({key:0},e.$attrs,{"aria-controls":p(r),"aria-describedby":p(i),"aria-expanded":p(u),"aria-haspopup":p(s)}),{default:te((()=>[W(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}})),[["__file","trigger.vue"]]);const Ei="focus-trap.focus-after-trapped",Ii="focus-trap.focus-after-released",Ti={cancelable:!0,bubbles:!1},Bi={cancelable:!0,bubbles:!1},Oi="focusAfterTrapped",Mi="focusAfterReleased",_i=Symbol("elFocusTrap"),Ri=m(),Li=m(0),$i=m(0);let Ai=0;const Vi=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Ni=(e,t)=>{for(const n of e)if(!Fi(n,t))return n},Fi=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},zi=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),$i.value=window.performance.now(),e!==n&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function Pi(e,t){const n=[...e],o=e.indexOf(t);return-1!==o&&n.splice(o,1),n}const Di=(()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=Pi(e,t),e.unshift(t)},remove:t=>{var n,o;e=Pi(e,t),null==(o=null==(n=e[0])?void 0:n.resume)||o.call(n)}}})(),Hi=()=>{Ri.value="pointer",Li.value=window.performance.now()},ji=()=>{Ri.value="keyboard",Li.value=window.performance.now()},Wi=e=>new CustomEvent("focus-trap.focusout-prevented",u(s({},Bi),{detail:e}));var Ki=_r(T({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Oi,Mi,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=m();let o,l;const{focusReason:a}=(b((()=>{0===Ai&&(document.addEventListener("mousedown",Hi),document.addEventListener("touchstart",Hi),document.addEventListener("keydown",ji)),Ai++})),F((()=>{Ai--,Ai<=0&&(document.removeEventListener("mousedown",Hi),document.removeEventListener("touchstart",Hi),document.removeEventListener("keydown",ji))})),{focusReason:Ri,lastUserFocusTimestamp:Li,lastAutomatedFocusTimestamp:$i});var r;r=n=>{e.trapped&&!i.paused&&t("release-requested",n)},b((()=>{0===ea.length&&document.addEventListener("keydown",ta),ft&&ea.push(r)})),F((()=>{ea=ea.filter((e=>e!==r)),0===ea.length&&ft&&document.removeEventListener("keydown",ta)}));const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=n=>{if(!e.loop&&!e.trapped)return;if(i.paused)return;const{key:o,altKey:l,ctrlKey:r,metaKey:s,currentTarget:u,shiftKey:c}=n,{loop:d}=e,p=o===Jn.tab&&!l&&!r&&!s,f=document.activeElement;if(p&&f){const e=u,[o,l]=(e=>{const t=Vi(e);return[Ni(t,e),Ni(t.reverse(),e)]})(e);if(o&&l)if(c||f!==l){if(c&&[o,e].includes(f)){const e=Wi({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&zi(l,!0))}}else{const e=Wi({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&zi(o,!0))}else if(f===e){const e=Wi({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};j(_i,{focusTrapRef:n,onKeydown:c}),S((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),S([n],(([e],[t])=>{e&&(e.addEventListener("keydown",c),e.addEventListener("focusin",h),e.addEventListener("focusout",g)),t&&(t.removeEventListener("keydown",c),t.removeEventListener("focusin",h),t.removeEventListener("focusout",g))}));const f=e=>{t(Oi,e)},v=e=>t(Mi,e),h=a=>{const r=p(n);if(!r)return;const s=a.target,u=a.relatedTarget,c=s&&r.contains(s);if(!e.trapped){u&&r.contains(u)||(o=u)}c&&t("focusin",a),i.paused||e.trapped&&(c?l=s:zi(l,!0))},g=o=>{const r=p(n);if(!i.paused&&r)if(e.trapped){const n=o.relatedTarget;De(n)||r.contains(n)||setTimeout((()=>{if(!i.paused&&e.trapped){const e=Wi({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||zi(l,!0)}}),0)}else{const e=o.target;e&&r.contains(e)||t("focusout",o)}};function w(){return d(this,null,(function*(){yield y();const t=p(n);if(t){Di.push(i);const n=t.contains(document.activeElement)?o:document.activeElement;o=n;if(!t.contains(n)){const o=new Event(Ei,Ti);t.addEventListener(Ei,f),t.dispatchEvent(o),o.defaultPrevented||y((()=>{let o=e.focusStartEl;C(o)||(zi(o),document.activeElement!==o&&(o="first")),"first"===o&&((e,t=!1)=>{const n=document.activeElement;for(const o of e)if(zi(o,t),document.activeElement!==n)return})(Vi(t),!0),document.activeElement!==n&&"container"!==o||zi(t)}))}}}))}function x(){const e=p(n);if(e){e.removeEventListener(Ei,f);const t=new CustomEvent(Ii,u(s({},Ti),{detail:{focusReason:a.value}}));e.addEventListener(Ii,v),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=a.value&&Li.value>$i.value&&!e.contains(document.activeElement)||zi(null!=o?o:document.body),e.removeEventListener(Ii,v),Di.remove(i)}}return b((()=>{e.trapped&&w(),S((()=>e.trapped),(e=>{e?w():x()}))})),F((()=>{e.trapped&&x()})),{onKeydown:c}}}),[["render",function(e,t,n,o,l,a){return W(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]);const Ui=jn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Do,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),qi=jn(u(s({},Ui),{id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number})),Yi={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0};function Gi(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}const Xi=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:l}=z(di,void 0),a=m(),r=m(),i=k((()=>({name:"eventListeners",enabled:!!e.visible}))),c=k((()=>{var e;const t=p(a),n=null!=(e=p(r))?e:0;return{name:"arrow",enabled:!We(t),options:{element:t,padding:n}}})),d=k((()=>s({onFirstUpdate:()=>{y()}},((e,t=[])=>{const{placement:n,strategy:o,popperOptions:l}=e,a=u(s({placement:n,strategy:o},l),{modifiers:[...Gi(e),...t]});return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(a,null==l?void 0:l.modifiers),a})(e,[p(c),p(i)])))),f=k((()=>(e=>{if(ft)return St(e)})(e.referenceEl)||p(o))),{attributes:v,state:h,styles:g,update:y,forceUpdate:w,instanceRef:x}=ql(f,n,d);return S(x,(e=>t.value=e)),b((()=>{S((()=>{var e;return null==(e=p(f))?void 0:e.getBoundingClientRect()}),(()=>{y()}))})),{attributes:v,arrowRef:a,contentRef:n,instanceRef:x,state:h,styles:g,role:l,forceUpdate:w,update:y}},Zi=T({name:"ElPopperContent"});var Ji=_r(T(u(s({},Zi),{props:qi,emits:Yi,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:l,trapped:a,onFocusAfterReleased:r,onFocusAfterTrapped:i,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=((e,t)=>{const n=m(!1),o=m();return{focusStartRef:o,trapped:n,onFocusAfterReleased:e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!n.value&&(t.target&&(o.value=t.target),n.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}})(o,n),{attributes:v,arrowRef:h,contentRef:g,styles:y,instanceRef:w,role:x,update:C}=Xi(o),{ariaModal:E,arrowStyle:I,contentAttrs:T,contentClass:M,contentStyle:_,updateZIndex:R}=((e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:l}=ca(),a=So("popper"),r=k((()=>p(t).popper)),i=m(Xt(e.zIndex)?e.zIndex:l()),s=k((()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass])),u=k((()=>[{zIndex:p(i)},p(n).popper,e.popperStyle||{}]));return{ariaModal:k((()=>"dialog"===o.value?"false":void 0)),arrowStyle:k((()=>p(n).arrow||{})),contentAttrs:r,contentClass:s,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=Xt(e.zIndex)?e.zIndex:l()}}})(o,{styles:y,attributes:v,role:x}),L=z(zr,void 0),A=m();let V;j(pi,{arrowStyle:I,arrowRef:h,arrowOffset:A}),L&&(L.addInputId||L.removeInputId)&&j(zr,u(s({},L),{addInputId:$,removeInputId:$}));const N=(e=!0)=>{C(),e&&R()},P=()=>{N(!1),o.visible&&o.focusOnShow?a.value=!0:!1===o.visible&&(a.value=!1)};return b((()=>{S((()=>o.triggerTargetEl),((e,t)=>{null==V||V(),V=void 0;const n=p(e||g.value),l=p(t||g.value);Zt(n)&&(V=S([x,()=>o.ariaLabel,E,()=>o.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,o)=>{De(e[o])?n.removeAttribute(t):n.setAttribute(t,e[o])}))}),{immediate:!0})),l!==n&&Zt(l)&&["role","aria-label","aria-modal","id"].forEach((e=>{l.removeAttribute(e)}))}),{immediate:!0}),S((()=>o.visible),P,{immediate:!0})})),F((()=>{null==V||V(),V=void 0})),t({popperContentRef:g,popperInstanceRef:w,updatePopper:N,contentStyle:_}),(e,t)=>(B(),O("div",q({ref_key:"contentRef",ref:g},p(T),{style:p(_),class:p(M),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))}),[oe(p(Ki),{trapped:p(a),"trap-on-focus-in":!0,"focus-trap-el":p(g),"focus-start-el":p(l),onFocusAfterTrapped:p(i),onFocusAfterReleased:p(r),onFocusin:p(c),onFocusoutPrevented:p(d),onReleaseRequested:p(f)},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}})),[["__file","content.vue"]]);const Qi=Gn(mi),es=Symbol("elTooltip"),ts=jn(u(s(s({},aa),qi),{appendTo:{type:[String,Object]},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean})),ns=jn(u(s({},Si),{disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[Jn.enter,Jn.space]}})),{useModelToggleProps:os,useModelToggleEmits:ls,useModelToggle:as}=Io("visible"),rs=jn(u(s(s(s(s(s({},fi),os),ts),ns),hi),{showArrow:{type:Boolean,default:!0}})),is=[...ls,"before-show","before-hide","show","hide","open","close"],ss=(e,t,n)=>o=>{((e,t)=>V(e)?e.includes(t):e===t)(p(e),t)&&n(o)},us=T({name:"ElTooltipTrigger"});var cs=_r(T(u(s({},us),{props:ns,setup(e,{expose:t}){const n=e,o=So("tooltip"),{controlled:l,id:a,open:r,onOpen:i,onClose:s,onToggle:u}=z(es,void 0),c=m(null),d=()=>{if(p(l)||n.disabled)return!0},f=Y(n,"trigger"),v=nt(d,ss(f,"hover",i)),h=nt(d,ss(f,"hover",s)),g=nt(d,ss(f,"click",(e=>{0===e.button&&u(e)}))),b=nt(d,ss(f,"focus",i)),y=nt(d,ss(f,"focus",s)),w=nt(d,ss(f,"contextmenu",(e=>{e.preventDefault(),u(e)}))),x=nt(d,(e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),u(e))}));return t({triggerRef:c}),(e,t)=>(B(),ee(p(Ci),{id:p(a),"virtual-ref":e.virtualRef,open:p(r),"virtual-triggering":e.virtualTriggering,class:K(p(o).e("trigger")),onBlur:p(y),onClick:p(g),onContextmenu:p(w),onFocus:p(b),onMouseenter:p(v),onMouseleave:p(h),onKeydown:p(x)},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}})),[["__file","trigger.vue"]]);const ds=T({name:"ElTooltipContent",inheritAttrs:!1});var ps=_r(T(u(s({},ds),{props:ts,setup(e,{expose:t}){const n=e,{selector:o}=oa(),l=So("tooltip"),a=m(null),r=m(!1),{controlled:i,id:s,open:u,trigger:c,onClose:d,onOpen:f,onShow:v,onHide:h,onBeforeShow:g,onBeforeHide:b}=z(es,void 0),y=k((()=>n.transition||`${l.namespace.value}-fade-in-linear`)),w=k((()=>n.persistent));F((()=>{r.value=!0}));const x=k((()=>!!p(w)||p(u))),C=k((()=>!n.disabled&&p(u))),E=k((()=>n.appendTo||o.value)),I=k((()=>{var e;return null!=(e=n.style)?e:{}})),T=k((()=>!p(u))),O=()=>{h()},M=()=>{if(p(i))return!0},_=nt(M,(()=>{n.enterable&&"hover"===p(c)&&f()})),R=nt(M,(()=>{"hover"===p(c)&&d()})),L=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e),null==g||g()},$=()=>{null==b||b()},A=()=>{v(),N=function(e,t,n={}){const{window:o=kt,ignore:l=[],capture:a=!0,detectIframe:r=!1}=n;if(!o)return;ht&&!It&&(It=!0,Array.from(o.document.body.children).forEach((e=>e.addEventListener("click",mt))));let i=!0;const s=e=>l.some((t=>{if("string"==typeof t)return Array.from(o.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=St(t);return n&&(e.target===n||e.composedPath().includes(n))}})),u=[Et(o,"click",(n=>{const o=St(e);o&&o!==n.target&&!n.composedPath().includes(o)&&(0===n.detail&&(i=!s(n)),i?t(n):i=!0)}),{passive:!0,capture:a}),Et(o,"pointerdown",(t=>{const n=St(e);n&&(i=!t.composedPath().includes(n)&&!s(t))}),{passive:!0}),r&&Et(o,"blur",(n=>{var l;const a=St(e);"IFRAME"!==(null==(l=o.document.activeElement)?void 0:l.tagName)||(null==a?void 0:a.contains(o.document.activeElement))||t(n)}))].filter(Boolean);return()=>u.forEach((e=>e()))}(k((()=>{var e;return null==(e=a.value)?void 0:e.popperContentRef})),(()=>{if(p(i))return;"hover"!==p(c)&&d()}))},V=()=>{n.virtualTriggering||d()};let N;return S((()=>p(u)),(e=>{e||null==N||N()}),{flush:"post"}),S((()=>n.content),(()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:a}),(e,t)=>(B(),ee(ve,{disabled:!e.teleported,to:p(E)},[oe(se,{name:p(y),onAfterLeave:O,onBeforeEnter:L,onAfterEnter:A,onBeforeLeave:$},{default:te((()=>[p(x)?re((B(),ee(p(Ji),q({key:0,id:p(s),ref_key:"contentRef",ref:a},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":p(T),"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,p(I)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:p(C),"z-index":e.zIndex,onMouseenter:p(_),onMouseleave:p(R),onBlur:V,onClose:p(d)}),{default:te((()=>[r.value?J("v-if",!0):W(e.$slots,"default",{key:0})])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[ie,p(C)]]):J("v-if",!0)])),_:3},8,["name"])],8,["disabled","to"]))}})),[["__file","content.vue"]]);const fs=["innerHTML"],vs={key:1},ms=T({name:"ElTooltip"});const hs=Gn(_r(T(u(s({},ms),{props:rs,emits:is,setup(e,{expose:t,emit:n}){const o=e;la();const l=Ql(),a=m(),r=m(),i=()=>{var e;const t=p(a);t&&(null==(e=t.popperInstanceRef)||e.update())},s=m(!1),u=m(),{show:c,hide:d,hasUpdateHandler:f}=as({indicator:s,toggleReason:u}),{onOpen:v,onClose:g}=(({showAfter:e,hideAfter:t,autoClose:n,open:o,close:l})=>{const{registerTimeout:a}=Gl(),{registerTimeout:r,cancelTimeout:i}=Gl();return{onOpen:t=>{a((()=>{o(t);const e=p(n);Xt(e)&&e>0&&r((()=>{l(t)}),e)}),p(e))},onClose:e=>{i(),a((()=>{l(e)}),p(t))}}})({showAfter:Y(o,"showAfter"),hideAfter:Y(o,"hideAfter"),autoClose:Y(o,"autoClose"),open:c,close:d}),b=k((()=>Gt(o.visible)&&!f.value));j(es,{controlled:b,id:l,open:h(s),trigger:Y(o,"trigger"),onOpen:e=>{v(e)},onClose:e=>{g(e)},onToggle:e=>{p(s)?g(e):v(e)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:i}),S((()=>o.disabled),(e=>{e&&s.value&&(s.value=!1)}));return me((()=>s.value&&d())),t({popperRef:a,contentRef:r,isFocusInsideContent:e=>{var t,n;const o=null==(n=null==(t=r.value)?void 0:t.contentRef)?void 0:n.popperContentRef,l=(null==e?void 0:e.relatedTarget)||document.activeElement;return o&&o.contains(l)},updatePopper:i,onOpen:v,onClose:g,hide:d}),(e,t)=>(B(),ee(p(Qi),{ref_key:"popperRef",ref:a,role:e.role},{default:te((()=>[oe(cs,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:te((()=>[e.$slots.default?W(e.$slots,"default",{key:0}):J("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),oe(ps,{ref_key:"contentRef",ref:r,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:te((()=>[W(e.$slots,"content",{},(()=>[e.rawContent?(B(),O("span",{key:0,innerHTML:e.content},null,8,fs)):(B(),O("span",vs,ae(e.content),1))])),e.showArrow?(B(),ee(p(bi),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):J("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}})),[["__file","tooltip.vue"]])),gs=jn({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0}}),bs=["textContent"],ys=T({name:"ElBadge"});const ws=Gn(_r(T(u(s({},ys),{props:gs,setup(e,{expose:t}){const n=e,o=So("badge"),l=k((()=>n.isDot?"":Xt(n.value)&&Xt(n.max)?n.max(B(),O("div",{class:K(p(o).b())},[W(e.$slots,"default"),oe(se,{name:`${p(o).namespace.value}-zoom-in-center`,persisted:""},{default:te((()=>[re(M("sup",{class:K([p(o).e("content"),p(o).em("content",e.type),p(o).is("fixed",!!e.$slots.default),p(o).is("dot",e.isDot)]),textContent:ae(p(l))},null,10,bs),[[ie,!e.hidden&&(p(l)||e.isDot)]])])),_:1},8,["name"])],2))}})),[["__file","badge.vue"]])),xs=Symbol("buttonGroupContextKey"),Ss=jn({size:gr,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Wn},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Wn,default:()=>Tn},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:[String,Object],default:"button"}}),ks={click:e=>e instanceof MouseEvent};function Cs(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Es(e){return Math.min(1,Math.max(0,e))}function Is(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ts(e){return e<=1?"".concat(100*Number(e),"%"):e}function Bs(e){return 1===e.length?"0"+e:String(e)}function Os(e,t,n){e=Cs(e,255),t=Cs(t,255),n=Cs(n,255);var o=Math.max(e,t,n),l=Math.min(e,t,n),a=0,r=0,i=(o+l)/2;if(o===l)r=0,a=0;else{var s=o-l;switch(r=i>.5?s/(2-o-l):s/(o+l),o){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _s(e,t,n){e=Cs(e,255),t=Cs(t,255),n=Cs(n,255);var o=Math.max(e,t,n),l=Math.min(e,t,n),a=0,r=o,i=o-l,s=0===o?0:i/o;if(o===l)a=0;else{switch(o){case e:a=(t-n)/i+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var l=Vs(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:l.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=l.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Is(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=_s(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=_s(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Os(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Os(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Rs(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,l){var a,r=[Bs(Math.round(e).toString(16)),Bs(Math.round(t).toString(16)),Bs(Math.round(n).toString(16)),Bs((a=o,Math.round(255*parseFloat(a)).toString(16)))];return l&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))&&r[3].startsWith(r[3].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Cs(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Cs(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Rs(this.r,this.g,this.b,!1),t=0,n=Object.entries(As);t=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Es(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Es(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Es(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Es(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),l=new e(t).toRgb(),a=n/100;return new e({r:(l.r-o.r)*a+o.r,g:(l.g-o.g)*a+o.g,b:(l.b-o.b)*a+o.b,a:(l.a-o.a)*a+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),l=360/n,a=[this];for(o.h=(o.h-(l*t>>1)+720)%360;--t;)o.h=(o.h+l)%360,a.push(new e(o));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,l=n.s,a=n.v,r=[],i=1/t;t--;)r.push(new e({h:o,s:l,v:a})),a=(a+i)%1;return r},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),l=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/l,g:(n.g*n.a+o.g*o.a*(1-n.a))/l,b:(n.b*n.a+o.b*o.a*(1-n.a))/l,a:l})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,l=[this],a=360/t,r=1;r{let o={};const l=e.color;if(l){const a=new Hs(l),r=e.dark?a.tint(20).toString():js(a,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?js(a,90):a.tint(90).toString(),"text-color":l,"border-color":e.dark?js(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":r,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":r}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?js(a,90):a.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?js(a,50):a.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?js(a,80):a.tint(80).toString());else{const i=e.dark?js(a,30):a.tint(30).toString(),s=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":l,"text-color":s,"border-color":l,"hover-bg-color":i,"hover-text-color":s,"hover-border-color":i,"active-bg-color":r,"active-border-color":r}),t.value){const t=e.dark?js(a,50):a.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=t,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=t}}}return o}))}(o),a=So("button"),{_ref:r,_size:i,_type:s,_disabled:u,_props:c,shouldAddSpace:d,handleClick:f}=((e,t)=>{co({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},k((()=>"text"===e.type)));const n=z(xs,void 0),o=Sr("button"),{form:l}=Hr(),a=Pr(k((()=>null==n?void 0:n.size))),r=Dr(),i=m(),s=Z(),u=k((()=>e.type||(null==n?void 0:n.type)||"")),c=k((()=>{var t,n,l;return null!=(l=null!=(n=e.autoInsertSpace)?n:null==(t=o.value)?void 0:t.autoInsertSpace)&&l})),d=k((()=>"button"===e.tag?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{})),p=k((()=>{var e;const t=null==(e=s.default)?void 0:e.call(s);if(c.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===pe){const t=e.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(t.trim())}}return!1}));return{_disabled:r,_size:a,_type:u,_ref:i,_props:d,shouldAddSpace:p,handleClick:n=>{"reset"===e.nativeType&&(null==l||l.resetFields()),t("click",n)}}})(o,n);return t({ref:r,size:i,type:s,disabled:u,shouldAddSpace:d}),(e,t)=>(B(),ee(ne(e.tag),q({ref_key:"_ref",ref:r},p(c),{class:[p(a).b(),p(a).m(p(s)),p(a).m(p(i)),p(a).is("disabled",p(u)),p(a).is("loading",e.loading),p(a).is("plain",e.plain),p(a).is("round",e.round),p(a).is("circle",e.circle),p(a).is("text",e.text),p(a).is("link",e.link),p(a).is("has-bg",e.bg)],style:p(l),onClick:p(f)}),{default:te((()=>[e.loading?(B(),O(Q,{key:0},[e.$slots.loading?W(e.$slots,"loading",{key:0}):(B(),ee(p(Nr),{key:1,class:K(p(a).is("loading"))},{default:te((()=>[(B(),ee(ne(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(B(),ee(p(Nr),{key:1},{default:te((()=>[e.icon?(B(),ee(ne(e.icon),{key:0})):W(e.$slots,"icon",{key:1})])),_:3})):J("v-if",!0),e.$slots.default?(B(),O("span",{key:2,class:K({[p(a).em("text","expand")]:p(d)})},[W(e.$slots,"default")],2)):J("v-if",!0)])),_:3},16,["class","style","onClick"]))}})),[["__file","button.vue"]]);const Us={size:Ss.size,type:Ss.type},qs=T({name:"ElButtonGroup"});var Ys=_r(T(u(s({},qs),{props:Us,setup(e){const t=e;j(xs,ue({size:Y(t,"size"),type:Y(t,"type")}));const n=So("button");return(e,t)=>(B(),O("div",{class:K(`${p(n).b("group")}`)},[W(e.$slots,"default")],2))}})),[["__file","button-group.vue"]]);const Gs=Gn(Ks,{ButtonGroup:Ys}),Xs=Xn(Ys),Zs=new Map;let Js;function Qs(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Zt(t.arg)&&n.push(t.arg),function(o,l){const a=t.instance.popperRef,r=o.target,i=null==l?void 0:l.target,s=!t||!t.instance,u=!r||!i,c=e.contains(r)||e.contains(i),d=e===r,p=n.length&&n.some((e=>null==e?void 0:e.contains(r)))||n.length&&n.includes(i),f=a&&(a.contains(r)||a.contains(i));s||u||c||d||p||f||t.value(o,l)}}ft&&(document.addEventListener("mousedown",(e=>Js=e)),document.addEventListener("mouseup",(e=>{for(const t of Zs.values())for(const{documentHandler:n}of t)n(e,Js)})));const eu={beforeMount(e,t){Zs.has(e)||Zs.set(e,[]),Zs.get(e).push({documentHandler:Qs(e,t),bindingFn:t.value})},updated(e,t){Zs.has(e)||Zs.set(e,[]);const n=Zs.get(e),o=n.findIndex((e=>e.bindingFn===t.oldValue)),l={documentHandler:Qs(e,t),bindingFn:t.value};o>=0?n.splice(o,1,l):n.push(l)},unmounted(e){Zs.delete(e)}},tu=100,nu=600,ou={beforeMount(e,t){const n=t.value,{interval:o=tu,delay:l=nu}=A(n)?{}:n;let a,r;const i=()=>A(n)?n():n.handler(),s=()=>{r&&(clearTimeout(r),r=void 0),a&&(clearInterval(a),a=void 0)};e.addEventListener("mousedown",(e=>{0===e.button&&(s(),i(),document.addEventListener("mouseup",(()=>s()),{once:!0}),r=setTimeout((()=>{a=setInterval((()=>{i()}),o)}),l))}))}},lu="_trap-focus-children",au=[],ru=e=>{if(0===au.length)return;const t=au[au.length-1][lu];if(t.length>0&&e.code===Jn.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,o=e.target===t[0],l=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},iu={beforeMount(e){e[lu]=Qe(e),au.push(e),au.length<=1&&document.addEventListener("keydown",ru)},updated(e){y((()=>{e[lu]=Qe(e)}))},unmounted(){au.shift(),0===au.length&&document.removeEventListener("keydown",ru)}},su=jn({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!1}}),uu={change:(e,t)=>[e,t].every(Xt)},cu=Symbol("carouselContextKey"),du=(e,t,n)=>{const{children:o,addChild:l,removeChild:a}=hr(g(),"ElCarouselItem"),r=Z(),i=m(-1),s=m(null),u=m(!1),c=m(),d=m(0),f=m(!0),v=m(!0),h=m(!1),y=k((()=>"never"!==e.arrow&&!p(I))),x=k((()=>o.value.some((e=>e.props.label.toString().length>0)))),E=k((()=>"card"===e.type)),I=k((()=>"vertical"===e.direction)),T=k((()=>"auto"!==e.height?{height:e.height}:{height:`${d.value}px`,overflow:"hidden"})),B=Ke((e=>{L(e)}),300,{trailing:!0}),O=Ke((t=>{!function(t){"hover"===e.trigger&&t!==i.value&&(i.value=t,v.value||(h.value=!0))}(t)}),300);function M(){s.value&&(clearInterval(s.value),s.value=null)}function _(){e.interval<=0||!e.autoplay||s.value||(s.value=setInterval((()=>R()),e.interval))}const R=()=>{v.value||(h.value=!0),v.value=!1,i.valuee.props.name===t));e.length>0&&(t=o.value.indexOf(e[0]))}if(t=Number(t),Number.isNaN(t)||t!==Math.floor(t))return;const n=o.value.length,l=i.value;i.value=t<0?e.loop?n-1:0:t>=n?e.loop?0:n-1:t,l===i.value&&$(l),A()}function $(e){o.value.forEach(((t,n)=>{t.translateItem(n,i.value,e)}))}function A(){M(),e.pauseOnHover||_()}S((()=>i.value),((e,n)=>{$(n),f.value&&(e%=2,n%=2),n>-1&&t("change",e,n)})),S((()=>e.autoplay),(e=>{e?_():M()})),S((()=>e.loop),(()=>{L(i.value)})),S((()=>e.interval),(()=>{A()}));const V=w();return b((()=>{S((()=>o.value),(()=>{o.value.length>0&&L(e.initialIndex)}),{immediate:!0}),V.value=$t(c.value,(()=>{$()})),_()})),F((()=>{M(),c.value&&V.value&&V.value.stop()})),j(cu,{root:c,isCardType:E,isVertical:I,items:o,loop:e.loop,addItem:l,removeItem:a,setActiveItem:L,setContainerHeight:function(t){"auto"===e.height&&(d.value=t)}}),{root:c,activeIndex:i,arrowDisplay:y,hasLabel:x,hover:u,isCardType:E,isTransitioning:h,items:o,isVertical:I,containerStyle:T,isItemsTwoLength:f,handleButtonEnter:function(e){p(I)||o.value.forEach(((t,n)=>{e===function(e,t){var n,l,a,r;const i=p(o),s=i.length;if(0===s||!e.states.inStage)return!1;const u=t+1,c=t-1,d=s-1,f=i[d].states.active,v=i[0].states.active,m=null==(l=null==(n=i[u])?void 0:n.states)?void 0:l.active,h=null==(r=null==(a=i[c])?void 0:a.states)?void 0:r.active;return t===d&&v||m?"left":!!(0===t&&f||h)&&"right"}(t,n)&&(t.states.hover=!0)}))},handleTransitionEnd:function(){h.value=!1},handleButtonLeave:function(){p(I)||o.value.forEach((e=>{e.states.hover=!1}))},handleIndicatorClick:function(e){e!==i.value&&(v.value||(h.value=!0)),i.value=e},handleMouseEnter:function(){u.value=!0,e.pauseOnHover&&M()},handleMouseLeave:function(){u.value=!1,_()},setActiveItem:L,prev:function(){L(i.value-1)},next:function(){L(i.value+1)},PlaceholderItem:function(){var t;const n=null==(t=r.default)?void 0:t.call(r);if(!n)return null;const o=ao(n).filter((e=>N(e)&&"ElCarouselItem"===e.type.name));return 2===(null==o?void 0:o.length)&&e.loop&&!E.value?(f.value=!0,o):(f.value=!1,null)},isTwoLengthShow:e=>!f.value||(i.value<=1?e<=1:e>1),throttledArrowClick:B,throttledIndicatorHover:O}},pu=["aria-label"],fu=["aria-label"],vu=["onMouseenter","onClick"],mu=["aria-label"],hu={key:0},gu={key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},bu=[M("defs",null,[M("filter",{id:"elCarouselHorizontal"},[M("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),M("filter",{id:"elCarouselVertical"},[M("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)],yu=T({name:"ElCarousel"});var wu=_r(T(u(s({},yu),{props:su,emits:uu,setup(e,{expose:t,emit:n}){const o=e,{root:l,activeIndex:a,arrowDisplay:r,hasLabel:i,hover:s,isCardType:u,items:c,isVertical:d,containerStyle:f,handleButtonEnter:v,handleButtonLeave:m,isTransitioning:h,handleIndicatorClick:g,handleMouseEnter:b,handleMouseLeave:y,handleTransitionEnd:w,setActiveItem:x,prev:S,next:C,PlaceholderItem:E,isTwoLengthShow:I,throttledArrowClick:T,throttledIndicatorHover:_}=du(o,n),R=So("carousel"),{t:L}=go(),$=k((()=>{const e=[R.b(),R.m(o.direction)];return p(u)&&e.push(R.m("card")),e})),A=k((()=>{const e=[R.e("container")];return o.motionBlur&&p(h)&&e.push(p(d)?`${R.namespace.value}-transitioning-vertical`:`${R.namespace.value}-transitioning`),e})),V=k((()=>{const e=[R.e("indicators"),R.em("indicators",o.direction)];return p(i)&&e.push(R.em("indicators","labels")),"outside"===o.indicatorPosition&&e.push(R.em("indicators","outside")),p(d)&&e.push(R.em("indicators","right")),e}));return t({setActiveItem:x,prev:S,next:C}),(e,t)=>(B(),O("div",{ref_key:"root",ref:l,class:K(p($)),onMouseenter:t[7]||(t[7]=le(((...e)=>p(b)&&p(b)(...e)),["stop"])),onMouseleave:t[8]||(t[8]=le(((...e)=>p(y)&&p(y)(...e)),["stop"]))},[p(r)?(B(),ee(se,{key:0,name:"carousel-arrow-left",persisted:""},{default:te((()=>[re(M("button",{type:"button",class:K([p(R).e("arrow"),p(R).em("arrow","left")]),"aria-label":p(L)("el.carousel.leftArrow"),onMouseenter:t[0]||(t[0]=e=>p(v)("left")),onMouseleave:t[1]||(t[1]=(...e)=>p(m)&&p(m)(...e)),onClick:t[2]||(t[2]=le((e=>p(T)(p(a)-1)),["stop"]))},[oe(p(Nr),null,{default:te((()=>[oe(p(vn))])),_:1})],42,pu),[[ie,("always"===e.arrow||p(s))&&(o.loop||p(a)>0)]])])),_:1})):J("v-if",!0),p(r)?(B(),ee(se,{key:1,name:"carousel-arrow-right",persisted:""},{default:te((()=>[re(M("button",{type:"button",class:K([p(R).e("arrow"),p(R).em("arrow","right")]),"aria-label":p(L)("el.carousel.rightArrow"),onMouseenter:t[3]||(t[3]=e=>p(v)("right")),onMouseleave:t[4]||(t[4]=(...e)=>p(m)&&p(m)(...e)),onClick:t[5]||(t[5]=le((e=>p(T)(p(a)+1)),["stop"]))},[oe(p(Nr),null,{default:te((()=>[oe(p(mn))])),_:1})],42,fu),[[ie,("always"===e.arrow||p(s))&&(o.loop||p(a)p(w)&&p(w)(...e))},[oe(p(E)),W(e.$slots,"default")],38),"none"!==e.indicatorPosition?(B(),O("ul",{key:2,class:K(p(V))},[(B(!0),O(Q,null,he(p(c),((t,n)=>re((B(),O("li",{key:n,class:K([p(R).e("indicator"),p(R).em("indicator",e.direction),p(R).is("active",n===p(a))]),onMouseenter:e=>p(_)(n),onClick:le((e=>p(g)(n)),["stop"])},[M("button",{class:K(p(R).e("button")),"aria-label":p(L)("el.carousel.indicator",{index:n+1})},[p(i)?(B(),O("span",hu,ae(t.props.label),1)):J("v-if",!0)],10,mu)],42,vu)),[[ie,p(I)(n)]]))),128))],2)):J("v-if",!0),o.motionBlur?(B(),O("svg",gu,bu)):J("v-if",!0)],34))}})),[["__file","carousel.vue"]]);const xu=jn({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Su=(e,t)=>{const n=z(cu),o=g(),l=.83,a=m(),r=m(!1),i=m(0),s=m(1),u=m(!1),c=m(!1),d=m(!1),f=m(!1),{isCardType:v,isVertical:h}=n;const y=(e,t,o)=>{var r;const m=p(v),g=null!=(r=n.items.value.length)?r:Number.NaN,b=e===t;m||Yt(o)||(f.value=b||e===o),!b&&g>2&&n.loop&&(e=function(e,t,n){const o=n-1,l=n/2;return 0===t&&e===o?-1:t===o&&0===e?n:e=l?n+1:e>t+1&&e-t>=l?-2:e}(e,t,g));const y=p(h);u.value=b,m?(d.value=Math.round(Math.abs(e-t))<=1,i.value=function(e,t){var o,l;const a=p(h)?(null==(o=n.root.value)?void 0:o.offsetHeight)||0:(null==(l=n.root.value)?void 0:l.offsetWidth)||0;return d.value?a*(1.17*(e-t)+1)/4:e{n.addItem({props:e,states:ue({hover:r,translate:i,scale:s,active:u,ready:c,inStage:d,animating:f}),uid:o.uid,translateItem:y})})),G((()=>{n.removeItem(o.uid)})),{carouselItemRef:a,active:u,animating:f,hover:r,inStage:d,isVertical:h,translate:i,isCardType:v,scale:s,ready:c,handleItemClick:function(){if(n&&p(v)){const e=n.items.value.findIndex((({uid:e})=>e===o.uid));n.setActiveItem(e)}}}},ku=T({name:"ElCarouselItem"});var Cu=_r(T(u(s({},ku),{props:xu,setup(e){const t=e,n=So("carousel"),{carouselItemRef:o,active:l,animating:a,hover:r,inStage:i,isVertical:s,translate:u,isCardType:c,scale:d,ready:f,handleItemClick:v}=Su(t),m=k((()=>[n.e("item"),n.is("active",l.value),n.is("in-stage",i.value),n.is("hover",r.value),n.is("animating",a.value),{[n.em("item","card")]:c.value,[n.em("item","card-vertical")]:c.value&&s.value}])),h=k((()=>({transform:[`${"translate"+(p(s)?"Y":"X")}(${p(u)}px)`,`scale(${p(d)})`].join(" ")})));return(e,t)=>re((B(),O("div",{ref_key:"carouselItemRef",ref:o,class:K(p(m)),style:U(p(h)),onClick:t[0]||(t[0]=(...e)=>p(v)&&p(v)(...e))},[p(c)?re((B(),O("div",{key:0,class:K(p(n).e("mask"))},null,2)),[[ie,!p(l)]]):J("v-if",!0),W(e.$slots,"default")],6)),[[ie,p(f)]])}})),[["__file","carousel-item.vue"]]);const Eu=Gn(wu,{CarouselItem:Cu}),Iu=Xn(Cu),Tu={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:gr,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Bu={[Qn]:e=>C(e)||Xt(e)||Gt(e),change:e=>C(e)||Xt(e)||Gt(e)},Ou=Symbol("checkboxGroupContextKey"),Mu=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:l,isLabeledByFormItem:a})=>{const r=z(Ou,void 0),{formItem:i}=Hr(),{emit:s}=g();function u(t){var n,o,l,a;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(o=null!=(n=e.trueValue)?n:e.trueLabel)||o:null!=(a=null!=(l=e.falseValue)?l:e.falseLabel)&&a}const c=k((()=>(null==r?void 0:r.validateEvent)||e.validateEvent));return S((()=>e.modelValue),(()=>{c.value&&(null==i||i.validate("change").catch((e=>{})))})),{handleChange:function(e){if(n.value)return;const t=e.target;s("change",u(t.checked),e)},onClickRoot:function(r){return d(this,null,(function*(){if(!n.value&&!o.value&&!l.value&&a.value){r.composedPath().some((e=>"LABEL"===e.tagName))||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),yield y(),function(e,t){s("change",u(e),t)}(t.value,r))}}))}}},_u=(e,t)=>{const{formItem:n}=Hr(),{model:o,isGroup:l,isLimitExceeded:a}=(e=>{const t=m(!1),{emit:n}=g(),o=z(Ou,void 0),l=k((()=>!1===Yt(o))),a=m(!1),r=k({get(){var n,a;return l.value?null==(n=null==o?void 0:o.modelValue)?void 0:n.value:null!=(a=e.modelValue)?a:t.value},set(e){var i,s;l.value&&V(e)?(a.value=void 0!==(null==(i=null==o?void 0:o.max)?void 0:i.value)&&e.length>(null==o?void 0:o.max.value)&&e.length>r.value.length,!1===a.value&&(null==(s=null==o?void 0:o.changeEvent)||s.call(o,e))):(n(Qn,e),t.value=e)}});return{model:r,isGroup:l,isLimitExceeded:a}})(e),{isFocused:r,isChecked:i,checkboxButtonSize:s,checkboxSize:u,hasOwnLabel:c,actualValue:d}=((e,t,{model:n})=>{const o=z(Ou,void 0),l=m(!1),a=k((()=>Jt(e.value)?e.label:e.value)),r=k((()=>{const t=n.value;return Gt(t)?t:V(t)?_(a.value)?t.map(ge).some((e=>Ue(e,a.value))):t.map(ge).includes(a.value):null!=t?t===e.trueValue||t===e.trueLabel:!!t}));return{checkboxButtonSize:Pr(k((()=>{var e;return null==(e=null==o?void 0:o.size)?void 0:e.value})),{prop:!0}),isChecked:r,isFocused:l,checkboxSize:Pr(k((()=>{var e;return null==(e=null==o?void 0:o.size)?void 0:e.value}))),hasOwnLabel:k((()=>!!t.default||!Jt(a.value))),actualValue:a}})(e,t,{model:o}),{isDisabled:p}=(({model:e,isChecked:t})=>{const n=z(Ou,void 0),o=k((()=>{var o,l;const a=null==(o=null==n?void 0:n.max)?void 0:o.value,r=null==(l=null==n?void 0:n.min)?void 0:l.value;return!Yt(a)&&e.value.length>=a&&!t.value||!Yt(r)&&e.value.length<=r&&t.value}));return{isDisabled:Dr(k((()=>(null==n?void 0:n.disabled.value)||o.value))),isLimitDisabled:o}})({model:o,isChecked:i}),{inputId:f,isLabeledByFormItem:v}=jr(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:l}),{handleChange:h,onClickRoot:b}=Mu(e,{model:o,isLimitExceeded:a,hasOwnLabel:c,isDisabled:p,isLabeledByFormItem:v});var y,w;return e.checked&&(V(o.value)&&!o.value.includes(d.value)?o.value.push(d.value):o.value=null==(w=null!=(y=e.trueValue)?y:e.trueLabel)||w),co({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k((()=>l.value&&Jt(e.value)))),co({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k((()=>!!e.trueLabel))),co({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k((()=>!!e.falseLabel))),{inputId:f,isLabeledByFormItem:v,isChecked:i,isDisabled:p,isFocused:r,checkboxButtonSize:s,checkboxSize:u,hasOwnLabel:c,model:o,actualValue:d,handleChange:h,onClickRoot:b}},Ru=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],Lu=["id","indeterminate","disabled","value","name","tabindex"],$u=T({name:"ElCheckbox"});var Au=_r(T(u(s({},$u),{props:Tu,emits:Bu,setup(e){const t=e,n=Z(),{inputId:o,isLabeledByFormItem:l,isChecked:a,isDisabled:r,isFocused:i,checkboxSize:s,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:v}=_u(t,n),m=So("checkbox"),h=k((()=>[m.b(),m.m(s.value),m.is("disabled",r.value),m.is("bordered",t.border),m.is("checked",a.value)])),g=k((()=>[m.e("input"),m.is("disabled",r.value),m.is("checked",a.value),m.is("indeterminate",t.indeterminate),m.is("focus",i.value)]));return(e,t)=>(B(),ee(ne(!p(u)&&p(l)?"span":"label"),{class:K(p(h)),"aria-controls":e.indeterminate?e.controls:null,onClick:p(v)},{default:te((()=>{var n,l;return[M("span",{class:K(p(g))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?re((B(),O("input",{key:0,id:p(o),"onUpdate:modelValue":t[0]||(t[0]=e=>P(c)?c.value=e:null),class:K(p(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:p(r),"true-value":null!=(n=e.trueValue)?n:e.trueLabel,"false-value":null!=(l=e.falseValue)?l:e.falseLabel,onChange:t[1]||(t[1]=(...e)=>p(f)&&p(f)(...e)),onFocus:t[2]||(t[2]=e=>i.value=!0),onBlur:t[3]||(t[3]=e=>i.value=!1),onClick:t[4]||(t[4]=le((()=>{}),["stop"]))},null,42,Ru)),[[be,p(c)]]):re((B(),O("input",{key:1,id:p(o),"onUpdate:modelValue":t[5]||(t[5]=e=>P(c)?c.value=e:null),class:K(p(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:p(r),value:p(d),name:e.name,tabindex:e.tabindex,onChange:t[6]||(t[6]=(...e)=>p(f)&&p(f)(...e)),onFocus:t[7]||(t[7]=e=>i.value=!0),onBlur:t[8]||(t[8]=e=>i.value=!1),onClick:t[9]||(t[9]=le((()=>{}),["stop"]))},null,42,Lu)),[[be,p(c)]]),M("span",{class:K(p(m).e("inner"))},null,2)],2),p(u)?(B(),O("span",{key:0,class:K(p(m).e("label"))},[W(e.$slots,"default"),e.$slots.default?J("v-if",!0):(B(),O(Q,{key:0},[ye(ae(e.label),1)],64))],2)):J("v-if",!0)]})),_:3},8,["class","aria-controls","onClick"]))}})),[["__file","checkbox.vue"]]);const Vu=["name","tabindex","disabled","true-value","false-value"],Nu=["name","tabindex","disabled","value"],Fu=T({name:"ElCheckboxButton"});var zu=_r(T(u(s({},Fu),{props:Tu,emits:Bu,setup(e){const t=e,n=Z(),{isFocused:o,isChecked:l,isDisabled:a,checkboxButtonSize:r,model:i,actualValue:s,handleChange:u}=_u(t,n),c=z(Ou,void 0),d=So("checkbox"),f=k((()=>{var e,t,n,o;const l=null!=(t=null==(e=null==c?void 0:c.fill)?void 0:e.value)?t:"";return{backgroundColor:l,borderColor:l,color:null!=(o=null==(n=null==c?void 0:c.textColor)?void 0:n.value)?o:"",boxShadow:l?`-1px 0 0 0 ${l}`:void 0}})),v=k((()=>[d.b("button"),d.bm("button",r.value),d.is("disabled",a.value),d.is("checked",l.value),d.is("focus",o.value)]));return(e,t)=>{var n,r;return B(),O("label",{class:K(p(v))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?re((B(),O("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=e=>P(i)?i.value=e:null),class:K(p(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:p(a),"true-value":null!=(n=e.trueValue)?n:e.trueLabel,"false-value":null!=(r=e.falseValue)?r:e.falseLabel,onChange:t[1]||(t[1]=(...e)=>p(u)&&p(u)(...e)),onFocus:t[2]||(t[2]=e=>o.value=!0),onBlur:t[3]||(t[3]=e=>o.value=!1),onClick:t[4]||(t[4]=le((()=>{}),["stop"]))},null,42,Vu)),[[be,p(i)]]):re((B(),O("input",{key:1,"onUpdate:modelValue":t[5]||(t[5]=e=>P(i)?i.value=e:null),class:K(p(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:p(a),value:p(s),onChange:t[6]||(t[6]=(...e)=>p(u)&&p(u)(...e)),onFocus:t[7]||(t[7]=e=>o.value=!0),onBlur:t[8]||(t[8]=e=>o.value=!1),onClick:t[9]||(t[9]=le((()=>{}),["stop"]))},null,42,Nu)),[[be,p(i)]]),e.$slots.default||e.label?(B(),O("span",{key:2,class:K(p(d).be("button","inner")),style:U(p(l)?p(f):void 0)},[W(e.$slots,"default",{},(()=>[ye(ae(e.label),1)]))],6)):J("v-if",!0)],2)}}})),[["__file","checkbox-button.vue"]]);const Pu=jn({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:gr,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Du={[Qn]:e=>V(e),change:e=>V(e)},Hu=T({name:"ElCheckboxGroup"});var ju=_r(T(u(s({},Hu),{props:Pu,emits:Du,setup(e,{emit:t}){const n=e,o=So("checkbox"),{formItem:l}=Hr(),{inputId:a,isLabeledByFormItem:r}=jr(n,{formItemContext:l}),i=e=>d(this,null,(function*(){t(Qn,e),yield y(),t("change",e)})),c=k({get:()=>n.modelValue,set(e){i(e)}});return j(Ou,u(s({},qe(we(n),["size","min","max","disabled","validateEvent","fill","textColor"])),{modelValue:c,changeEvent:i})),S((()=>n.modelValue),(()=>{n.validateEvent&&(null==l||l.validate("change").catch((e=>{})))})),(e,t)=>{var n;return B(),ee(ne(e.tag),{id:p(a),class:K(p(o).b("group")),role:"group","aria-label":p(r)?void 0:e.label||"checkbox-group","aria-labelledby":p(r)?null==(n=p(l))?void 0:n.labelId:void 0},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}})),[["__file","checkbox-group.vue"]]);const Wu=Gn(Au,{CheckboxButton:zu,CheckboxGroup:ju}),Ku=Xn(zu),Uu=Xn(ju),qu=jn({modelValue:{type:[String,Number,Boolean],default:void 0},size:gr,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Yu=jn(u(s({},qu),{border:Boolean})),Gu={[Qn]:e=>C(e)||Xt(e)||Gt(e),[eo]:e=>C(e)||Xt(e)||Gt(e)},Xu=Symbol("radioGroupKey"),Zu=(e,t)=>{const n=m(),o=z(Xu,void 0),l=k((()=>!!o)),a=k((()=>Jt(e.value)?e.label:e.value)),r=k({get:()=>l.value?o.modelValue:e.modelValue,set(r){l.value?o.changeEvent(r):t&&t(Qn,r),n.value.checked=e.modelValue===a.value}}),i=Pr(k((()=>null==o?void 0:o.size))),s=Dr(k((()=>null==o?void 0:o.disabled))),u=m(!1),c=k((()=>s.value||l.value&&r.value!==a.value?-1:0));return co({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},k((()=>l.value&&Jt(e.value)))),{radioRef:n,isGroup:l,radioGroup:o,focus:u,size:i,disabled:s,tabIndex:c,modelValue:r,actualValue:a}},Ju=["value","name","disabled"],Qu=T({name:"ElRadio"});var ec=_r(T(u(s({},Qu),{props:Yu,emits:Gu,setup(e,{emit:t}){const n=e,o=So("radio"),{radioRef:l,radioGroup:a,focus:r,size:i,disabled:s,modelValue:u,actualValue:c}=Zu(n,t);function d(){y((()=>t("change",u.value)))}return(e,t)=>{var n;return B(),O("label",{class:K([p(o).b(),p(o).is("disabled",p(s)),p(o).is("focus",p(r)),p(o).is("bordered",e.border),p(o).is("checked",p(u)===p(c)),p(o).m(p(i))])},[M("span",{class:K([p(o).e("input"),p(o).is("disabled",p(s)),p(o).is("checked",p(u)===p(c))])},[re(M("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":t[0]||(t[0]=e=>P(u)?u.value=e:null),class:K(p(o).e("original")),value:p(c),name:e.name||(null==(n=p(a))?void 0:n.name),disabled:p(s),type:"radio",onFocus:t[1]||(t[1]=e=>r.value=!0),onBlur:t[2]||(t[2]=e=>r.value=!1),onChange:d,onClick:t[3]||(t[3]=le((()=>{}),["stop"]))},null,42,Ju),[[xe,p(u)]]),M("span",{class:K(p(o).e("inner"))},null,2)],2),M("span",{class:K(p(o).e("label")),onKeydown:t[4]||(t[4]=le((()=>{}),["stop"]))},[W(e.$slots,"default",{},(()=>[ye(ae(e.label),1)]))],34)],2)}}})),[["__file","radio.vue"]]);const tc=jn(s({},qu)),nc=["value","name","disabled"],oc=T({name:"ElRadioButton"});var lc=_r(T(u(s({},oc),{props:tc,setup(e){const t=e,n=So("radio"),{radioRef:o,focus:l,size:a,disabled:r,modelValue:i,radioGroup:s,actualValue:u}=Zu(t),c=k((()=>({backgroundColor:(null==s?void 0:s.fill)||"",borderColor:(null==s?void 0:s.fill)||"",boxShadow:(null==s?void 0:s.fill)?`-1px 0 0 0 ${s.fill}`:"",color:(null==s?void 0:s.textColor)||""})));return(e,t)=>{var d;return B(),O("label",{class:K([p(n).b("button"),p(n).is("active",p(i)===p(u)),p(n).is("disabled",p(r)),p(n).is("focus",p(l)),p(n).bm("button",p(a))])},[re(M("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>P(i)?i.value=e:null),class:K(p(n).be("button","original-radio")),value:p(u),type:"radio",name:e.name||(null==(d=p(s))?void 0:d.name),disabled:p(r),onFocus:t[1]||(t[1]=e=>l.value=!0),onBlur:t[2]||(t[2]=e=>l.value=!1),onClick:t[3]||(t[3]=le((()=>{}),["stop"]))},null,42,nc),[[xe,p(i)]]),M("span",{class:K(p(n).be("button","inner")),style:U(p(i)===p(u)?p(c):{}),onKeydown:t[4]||(t[4]=le((()=>{}),["stop"]))},[W(e.$slots,"default",{},(()=>[ye(ae(e.label),1)]))],38)],2)}}})),[["__file","radio-button.vue"]]);const ac=jn({id:{type:String,default:void 0},size:gr,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),rc=Gu,ic=["id","aria-label","aria-labelledby"],sc=T({name:"ElRadioGroup"}),uc=T(u(s({},sc),{props:ac,emits:rc,setup(e,{emit:t}){const n=e,o=So("radio"),l=Ql(),a=m(),{formItem:r}=Hr(),{inputId:i,isLabeledByFormItem:c}=jr(n,{formItemContext:r});b((()=>{const e=a.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const d=k((()=>n.name||l.value));return j(Xu,ue(u(s({},we(n)),{changeEvent:e=>{t(Qn,e),y((()=>t("change",e)))},name:d}))),S((()=>n.modelValue),(()=>{n.validateEvent&&(null==r||r.validate("change").catch((e=>{})))})),(e,t)=>(B(),O("div",{id:p(i),ref_key:"radioGroupRef",ref:a,class:K(p(o).b("group")),role:"radiogroup","aria-label":p(c)?void 0:e.label||"radio-group","aria-labelledby":p(c)?p(r).labelId:void 0},[W(e.$slots,"default")],10,ic))}}));var cc=_r(uc,[["__file","radio-group.vue"]]);const dc=Gn(ec,{RadioButton:lc,RadioGroup:cc}),pc=Xn(cc),fc=Xn(lc),vc=jn({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:no},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),mc={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},hc=T({name:"ElTag"});const gc=Gn(_r(T(u(s({},hc),{props:vc,emits:mc,setup(e,{emit:t}){const n=e,o=Pr(),l=So("tag"),a=k((()=>{const{type:e,hit:t,effect:a,closable:r,round:i}=n;return[l.b(),l.is("closable",r),l.m(e||"primary"),l.m(o.value),l.m(a),l.is("hit",t),l.is("round",i)]})),r=e=>{t("close",e)},i=e=>{t("click",e)};return(e,t)=>e.disableTransitions?(B(),O("span",{key:0,class:K(p(a)),style:U({backgroundColor:e.color}),onClick:i},[M("span",{class:K(p(l).e("content"))},[W(e.$slots,"default")],2),e.closable?(B(),ee(p(Nr),{key:0,class:K(p(l).e("close")),onClick:le(r,["stop"])},{default:te((()=>[oe(p(xn))])),_:1},8,["class","onClick"])):J("v-if",!0)],6)):(B(),ee(se,{key:1,name:`${p(l).namespace.value}-zoom-in-center`,appear:""},{default:te((()=>[M("span",{class:K(p(a)),style:U({backgroundColor:e.color}),onClick:i},[M("span",{class:K(p(l).e("content"))},[W(e.$slots,"default")],2),e.closable?(B(),ee(p(Nr),{key:0,class:K(p(l).e("close")),onClick:le(r,["stop"])},{default:te((()=>[oe(p(xn))])),_:1},8,["class","onClick"])):J("v-if",!0)],6)])),_:3},8,["name"]))}})),[["__file","tag.vue"]])),bc=Symbol("rowContextKey"),yc=jn({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),wc=T({name:"ElRow"});const xc=Gn(_r(T(u(s({},wc),{props:yc,setup(e){const t=e,n=So("row"),o=k((()=>t.gutter));j(bc,{gutter:o});const l=k((()=>{const e={};return t.gutter?(e.marginRight=e.marginLeft=`-${t.gutter/2}px`,e):e})),a=k((()=>[n.b(),n.is(`justify-${t.justify}`,"start"!==t.justify),n.is(`align-${t.align}`,!!t.align)]));return(e,t)=>(B(),ee(ne(e.tag),{class:K(p(a)),style:U(p(l))},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["class","style"]))}})),[["__file","row.vue"]])),Sc=jn({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:[Number,Object],default:()=>({})},sm:{type:[Number,Object],default:()=>({})},md:{type:[Number,Object],default:()=>({})},lg:{type:[Number,Object],default:()=>({})},xl:{type:[Number,Object],default:()=>({})}}),kc=T({name:"ElCol"});const Cc=Gn(_r(T(u(s({},kc),{props:Sc,setup(e){const t=e,{gutter:n}=z(bc,{gutter:k((()=>0))}),o=So("col"),l=k((()=>{const e={};return n.value&&(e.paddingLeft=e.paddingRight=n.value/2+"px"),e})),a=k((()=>{const e=[];["span","offset","pull","push"].forEach((n=>{const l=t[n];Xt(l)&&("span"===n?e.push(o.b(`${t[n]}`)):l>0&&e.push(o.b(`${n}-${t[n]}`)))}));return["xs","sm","md","lg","xl"].forEach((n=>{Xt(t[n])?e.push(o.b(`${n}-${t[n]}`)):_(t[n])&&Object.entries(t[n]).forEach((([t,l])=>{e.push("span"!==t?o.b(`${n}-${t}-${l}`):o.b(`${n}-${l}`))}))})),n.value&&e.push(o.is("guttered")),[o.b(),e]}));return(e,t)=>(B(),ee(ne(e.tag),{class:K(p(a)),style:U(p(l))},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["class","style"]))}})),[["__file","col.vue"]])),Ec=T({name:"ElCollapseTransition"});var Ic=_r(T(u(s({},Ec),{setup(e){const t=So("collapse-transition"),n=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},o={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame((()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"}))},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){n(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){n(e)},leaveCancelled(e){n(e)}};return(e,n)=>(B(),ee(se,q({name:p(t).b()},Se(o)),{default:te((()=>[W(e.$slots,"default")])),_:3},16,["name"]))}})),[["__file","collapse-transition.vue"]]);Ic.install=e=>{e.component(Ic.name,Ic)};const Tc=Ic,Bc=T({name:"ElContainer"});var Oc=_r(T(u(s({},Bc),{props:{direction:{type:String}},setup(e){const t=e,n=Z(),o=So("container"),l=k((()=>{if("vertical"===t.direction)return!0;if("horizontal"===t.direction)return!1;if(n&&n.default){return n.default().some((e=>{const t=e.type.name;return"ElHeader"===t||"ElFooter"===t}))}return!1}));return(e,t)=>(B(),O("section",{class:K([p(o).b(),p(o).is("vertical",p(l))])},[W(e.$slots,"default")],2))}})),[["__file","container.vue"]]);const Mc=T({name:"ElAside"});var _c=_r(T(u(s({},Mc),{props:{width:{type:String,default:null}},setup(e){const t=e,n=So("aside"),o=k((()=>t.width?n.cssVarBlock({width:t.width}):{}));return(e,t)=>(B(),O("aside",{class:K(p(n).b()),style:U(p(o))},[W(e.$slots,"default")],6))}})),[["__file","aside.vue"]]);const Rc=T({name:"ElFooter"});var Lc=_r(T(u(s({},Rc),{props:{height:{type:String,default:null}},setup(e){const t=e,n=So("footer"),o=k((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>(B(),O("footer",{class:K(p(n).b()),style:U(p(o))},[W(e.$slots,"default")],6))}})),[["__file","footer.vue"]]);const $c=T({name:"ElHeader"});var Ac=_r(T(u(s({},$c),{props:{height:{type:String,default:null}},setup(e){const t=e,n=So("header"),o=k((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>(B(),O("header",{class:K(p(n).b()),style:U(p(o))},[W(e.$slots,"default")],6))}})),[["__file","header.vue"]]);const Vc=T({name:"ElMain"});var Nc=_r(T(u(s({},Vc),{setup(e){const t=So("main");return(e,n)=>(B(),O("main",{class:K(p(t).b())},[W(e.$slots,"default")],2))}})),[["__file","main.vue"]]);const Fc=Gn(Oc,{Aside:_c,Footer:Lc,Header:Ac,Main:Nc}),zc=Xn(_c);Xn(Lc);const Pc=Xn(Ac),Dc=Xn(Nc),Hc=jn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:[String,Array,Object]},zIndex:{type:[String,Number]}});const jc=T({name:"ElOverlay",props:Hc,emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:n}){const o=So("overlay"),{onClick:l,onMousedown:a,onMouseup:r}=Yl(e.customMaskEvent?void 0:e=>{n("click",e)});return()=>e.mask?oe("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:a,onMouseup:r},[W(t,"default")],lo.STYLE|lo.CLASS|lo.PROPS,["onClick","onMouseup","onMousedown"]):ke("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[W(t,"default")])}}),Wc=Symbol("dialogInjectionKey"),Kc=jn({center:Boolean,alignCenter:Boolean,closeIcon:{type:Wn},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),Uc=["aria-level"],qc=["aria-label"],Yc=["id"],Gc=T({name:"ElDialogContent"});var Xc=_r(T(u(s({},Gc),{props:Kc,emits:{close:()=>!0},setup(e){const t=e,{t:n}=go(),{Close:o}=Kn,{dialogRef:l,headerRef:a,bodyId:r,ns:i,style:s}=z(Wc),{focusTrapRef:u}=z(_i),c=k((()=>[i.b(),i.is("fullscreen",t.fullscreen),i.is("draggable",t.draggable),i.is("align-center",t.alignCenter),{[i.m("center")]:t.center}])),d=Zn(u,l),f=k((()=>t.draggable)),v=k((()=>t.overflow));return po(l,a,f,v),(e,t)=>(B(),O("div",{ref:p(d),class:K(p(c)),style:U(p(s)),tabindex:"-1"},[M("header",{ref_key:"headerRef",ref:a,class:K([p(i).e("header"),{"show-close":e.showClose}])},[W(e.$slots,"header",{},(()=>[M("span",{role:"heading","aria-level":e.ariaLevel,class:K(p(i).e("title"))},ae(e.title),11,Uc)])),e.showClose?(B(),O("button",{key:0,"aria-label":p(n)("el.dialog.close"),class:K(p(i).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[oe(p(Nr),{class:K(p(i).e("close"))},{default:te((()=>[(B(),ee(ne(e.closeIcon||p(o))))])),_:1},8,["class"])],10,qc)):J("v-if",!0)],2),M("div",{id:p(r),class:K(p(i).e("body"))},[W(e.$slots,"default")],10,Yc),e.$slots.footer?(B(),O("footer",{key:0,class:K(p(i).e("footer"))},[W(e.$slots,"footer")],2)):J("v-if",!0)],6))}})),[["__file","dialog-content.vue"]]);const Zc=jn(u(s({},Kc),{appendToBody:Boolean,appendTo:{type:String,default:"body"},beforeClose:{type:Function},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}})),Jc={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Qn]:e=>Gt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Qc=(e,t)=>{var n;const o=g().emit,{nextZIndex:l}=ca();let a="";const r=Ql(),i=Ql(),s=m(!1),u=m(!1),c=m(!1),d=m(null!=(n=e.zIndex)?n:l());let p,f;const v=Sr("namespace",bo),h=k((()=>{const t={},n=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(t[`${n}-margin-top`]=e.top),e.width&&(t[`${n}-width`]=un(e.width))),t})),w=k((()=>e.alignCenter?{display:"flex"}:{}));function x(){null==f||f(),null==p||p(),e.openDelay&&e.openDelay>0?({stop:p}=xt((()=>I()),e.openDelay)):I()}function C(){null==p||p(),null==f||f(),e.closeDelay&&e.closeDelay>0?({stop:f}=xt((()=>T()),e.closeDelay)):T()}function E(){e.beforeClose?e.beforeClose((function(e){e||(u.value=!0,s.value=!1)})):C()}function I(){ft&&(s.value=!0)}function T(){s.value=!1}return e.lockScroll&&ko(s),S((()=>e.modelValue),(n=>{n?(u.value=!1,x(),c.value=!0,d.value=We(e.zIndex)?l():d.value++,y((()=>{o("open"),t.value&&(t.value.scrollTop=0)}))):s.value&&C()})),S((()=>e.fullscreen),(e=>{t.value&&(e?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)})),b((()=>{e.modelValue&&(s.value=!0,c.value=!0,x())})),{afterEnter:function(){o("opened")},afterLeave:function(){o("closed"),o(Qn,!1),e.destroyOnClose&&(c.value=!1)},beforeLeave:function(){o("close")},handleClose:E,onModalClick:function(){e.closeOnClickModal&&E()},close:C,doClose:T,onOpenAutoFocus:function(){o("openAutoFocus")},onCloseAutoFocus:function(){o("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&E()},onFocusoutPrevented:function(e){var t;"pointer"===(null==(t=e.detail)?void 0:t.focusReason)&&e.preventDefault()},titleId:r,bodyId:i,closed:u,style:h,overlayDialogStyle:w,rendered:c,visible:s,zIndex:d}},ed=["aria-label","aria-labelledby","aria-describedby"],td=T({name:"ElDialog",inheritAttrs:!1});const nd=Gn(_r(T(u(s({},td),{props:Zc,emits:Jc,setup(e,{expose:t}){const n=e,o=Z();co({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},k((()=>!!o.title)));const l=So("dialog"),a=m(),r=m(),i=m(),{visible:s,titleId:u,bodyId:c,style:d,overlayDialogStyle:f,rendered:v,zIndex:h,afterEnter:g,afterLeave:b,beforeLeave:y,handleClose:w,onModalClick:x,onOpenAutoFocus:S,onCloseAutoFocus:C,onCloseRequested:E,onFocusoutPrevented:I}=Qc(n,a);j(Wc,{dialogRef:a,headerRef:r,bodyId:c,ns:l,rendered:v,style:d});const T=Yl(x),O=k((()=>n.draggable&&!n.fullscreen));return t({visible:s,dialogContentRef:i}),(e,t)=>(B(),ee(ve,{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},[oe(se,{name:"dialog-fade",onAfterEnter:p(g),onAfterLeave:p(b),onBeforeLeave:p(y),persisted:""},{default:te((()=>[re(oe(p(jc),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":p(h)},{default:te((()=>[M("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:p(u),"aria-describedby":p(c),class:K(`${p(l).namespace.value}-overlay-dialog`),style:U(p(f)),onClick:t[0]||(t[0]=(...e)=>p(T).onClick&&p(T).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>p(T).onMousedown&&p(T).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>p(T).onMouseup&&p(T).onMouseup(...e))},[oe(p(Ki),{loop:"",trapped:p(s),"focus-start-el":"container",onFocusAfterTrapped:p(S),onFocusAfterReleased:p(C),onFocusoutPrevented:p(I),onReleaseRequested:p(E)},{default:te((()=>[p(v)?(B(),ee(Xc,q({key:0,ref_key:"dialogContentRef",ref:i},e.$attrs,{center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:p(O),overflow:e.overflow,fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:p(w)}),Ce({header:te((()=>[e.$slots.title?W(e.$slots,"title",{key:1}):W(e.$slots,"header",{key:0,close:p(w),titleId:p(u),titleClass:p(l).e("title")})])),default:te((()=>[W(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:te((()=>[W(e.$slots,"footer")]))}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):J("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,ed)])),_:3},8,["mask","overlay-class","z-index"]),[[ie,p(s)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}})),[["__file","dialog.vue"]])),od=jn({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:String,default:"solid"}}),ld=T({name:"ElDivider"});const ad=Gn(_r(T(u(s({},ld),{props:od,setup(e){const t=e,n=So("divider"),o=k((()=>n.cssVar({"border-style":t.borderStyle})));return(e,t)=>(B(),O("div",{class:K([p(n).b(),p(n).m(e.direction)]),style:U(p(o)),role:"separator"},[e.$slots.default&&"vertical"!==e.direction?(B(),O("div",{key:0,class:K([p(n).e("text"),p(n).is(e.contentPosition)])},[W(e.$slots,"default")],2)):J("v-if",!0)],6))}})),[["__file","divider.vue"]])),rd=jn(u(s({},Zc),{direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}})),id=Jc,sd=["aria-label","aria-labelledby","aria-describedby"],ud=["id","aria-level"],cd=["aria-label"],dd=["id"],pd=T({name:"ElDrawer",inheritAttrs:!1});const fd=Gn(_r(T(u(s({},pd),{props:rd,emits:id,setup(e,{expose:t}){const n=e,o=Z();co({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},k((()=>!!o.title)));const l=m(),a=m(),r=So("drawer"),{t:i}=go(),{afterEnter:s,afterLeave:u,beforeLeave:c,visible:d,rendered:f,titleId:v,bodyId:h,zIndex:g,onModalClick:b,onOpenAutoFocus:y,onCloseAutoFocus:w,onFocusoutPrevented:x,onCloseRequested:S,handleClose:C}=Qc(n,l),E=k((()=>"rtl"===n.direction||"ltr"===n.direction)),I=k((()=>un(n.size)));return t({handleClose:C,afterEnter:s,afterLeave:u}),(e,t)=>(B(),ee(ve,{to:"body",disabled:!e.appendToBody},[oe(se,{name:p(r).b("fade"),onAfterEnter:p(s),onAfterLeave:p(u),onBeforeLeave:p(c),persisted:""},{default:te((()=>[re(oe(p(jc),{mask:e.modal,"overlay-class":e.modalClass,"z-index":p(g),onClick:p(b)},{default:te((()=>[oe(p(Ki),{loop:"",trapped:p(d),"focus-trap-el":l.value,"focus-start-el":a.value,onFocusAfterTrapped:p(y),onFocusAfterReleased:p(w),onFocusoutPrevented:p(x),onReleaseRequested:p(S)},{default:te((()=>[M("div",q({ref_key:"drawerRef",ref:l,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:p(v),"aria-describedby":p(h)},e.$attrs,{class:[p(r).b(),e.direction,p(d)&&"open"],style:p(E)?"width: "+p(I):"height: "+p(I),role:"dialog",onClick:t[1]||(t[1]=le((()=>{}),["stop"]))}),[M("span",{ref_key:"focusStartRef",ref:a,class:K(p(r).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(B(),O("header",{key:0,class:K(p(r).e("header"))},[e.$slots.title?W(e.$slots,"title",{key:1},(()=>[J(" DEPRECATED SLOT ")])):W(e.$slots,"header",{key:0,close:p(C),titleId:p(v),titleClass:p(r).e("title")},(()=>[e.$slots.title?J("v-if",!0):(B(),O("span",{key:0,id:p(v),role:"heading","aria-level":e.headerAriaLevel,class:K(p(r).e("title"))},ae(e.title),11,ud))])),e.showClose?(B(),O("button",{key:2,"aria-label":p(i)("el.drawer.close"),class:K(p(r).e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...e)=>p(C)&&p(C)(...e))},[oe(p(Nr),{class:K(p(r).e("close"))},{default:te((()=>[oe(p(xn))])),_:1},8,["class"])],10,cd)):J("v-if",!0)],2)):J("v-if",!0),p(f)?(B(),O("div",{key:1,id:p(h),class:K(p(r).e("body"))},[W(e.$slots,"default")],10,dd)):J("v-if",!0),e.$slots.footer?(B(),O("div",{key:2,class:K(p(r).e("footer"))},[W(e.$slots,"footer")],2)):J("v-if",!0)],16,sd)])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])])),_:3},8,["mask","overlay-class","z-index","onClick"]),[[ie,p(d)]])])),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}})),[["__file","drawer.vue"]]));var vd=_r(T({inheritAttrs:!1}),[["render",function(e,t,n,o,l,a){return W(e.$slots,"default")}],["__file","collection.vue"]]);var md=_r(T({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,t,n,o,l,a){return W(e.$slots,"default")}],["__file","collection-item.vue"]]);const hd="data-el-collection-item",gd=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),l=Symbol(n),a=u(s({},vd),{name:t,setup(){const e=m(null),t=new Map;j(o,{itemMap:t,getItems:()=>{const n=p(e);if(!n)return[];const o=Array.from(n.querySelectorAll(`[${hd}]`));return[...t.values()].sort(((e,t)=>o.indexOf(e.ref)-o.indexOf(t.ref)))},collectionRef:e})}}),r=u(s({},md),{name:n,setup(e,{attrs:t}){const n=m(null),a=z(o,void 0);j(l,{collectionItemRef:n}),b((()=>{const e=p(n);e&&a.itemMap.set(e,s({ref:e},t))})),F((()=>{const e=p(n);a.itemMap.delete(e)}))}});return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:l,ElCollection:a,ElCollectionItem:r}},bd=jn({style:{type:[String,Array,Object]},currentTabId:{type:String},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:String},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:yd,ElCollectionItem:wd,COLLECTION_INJECTION_KEY:xd,COLLECTION_ITEM_INJECTION_KEY:Sd}=gd("RovingFocusGroup"),kd=Symbol("elRovingFocusGroup"),Cd=Symbol("elRovingFocusGroupItem"),Ed={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Id=(e,t,n)=>{const o=((e,t)=>{if("rtl"!==t)return e;switch(e){case Jn.right:return Jn.left;case Jn.left:return Jn.right;default:return e}})(e.key,n);if(!("vertical"===t&&[Jn.left,Jn.right].includes(o)||"horizontal"===t&&[Jn.up,Jn.down].includes(o)))return Ed[o]},Td=e=>{const{activeElement:t}=document;for(const n of e){if(n===t)return;if(n.focus(),t!==document.activeElement)return}},Bd="currentTabIdChange",Od="rovingFocusGroup.entryFocus",Md={bubbles:!1,cancelable:!0},_d=T({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:bd,emits:[Bd,"entryFocus"],setup(e,{emit:t}){var n;const o=m(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),l=m(!1),a=m(!1),r=m(null),{getItems:i}=z(xd,void 0),s=k((()=>[{outline:"none"},e.style])),u=nt((t=>{var n;null==(n=e.onMousedown)||n.call(e,t)}),(()=>{a.value=!0})),c=nt((t=>{var n;null==(n=e.onFocus)||n.call(e,t)}),(e=>{const t=!p(a),{target:n,currentTarget:r}=e;if(n===r&&t&&!p(l)){const e=new Event(Od,Md);if(null==r||r.dispatchEvent(e),!e.defaultPrevented){const e=i().filter((e=>e.focusable)),t=[e.find((e=>e.active)),e.find((e=>e.id===p(o))),...e].filter(Boolean).map((e=>e.ref));Td(t)}}a.value=!1})),d=nt((t=>{var n;null==(n=e.onBlur)||n.call(e,t)}),(()=>{l.value=!1}));j(kd,{currentTabbedId:h(o),loop:Y(e,"loop"),tabIndex:k((()=>p(l)?-1:0)),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:s,orientation:Y(e,"orientation"),dir:Y(e,"dir"),onItemFocus:e=>{t(Bd,e)},onItemShiftTab:()=>{l.value=!0},onBlur:d,onFocus:c,onMousedown:u}),S((()=>e.currentTabId),(e=>{o.value=null!=e?e:null})),Et(r,Od,((...e)=>{t("entryFocus",...e)}))}});var Rd=_r(T({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:yd,ElRovingFocusGroupImpl:_r(_d,[["render",function(e,t,n,o,l,a){return W(e.$slots,"default")}],["__file","roving-focus-group-impl.vue"]])}}),[["render",function(e,t,n,o,l,a){const r=Ee("el-roving-focus-group-impl"),i=Ee("el-focus-group-collection");return B(),ee(i,null,{default:te((()=>[oe(r,Ie(Te(e.$attrs)),{default:te((()=>[W(e.$slots,"default")])),_:3},16)])),_:3})}],["__file","roving-focus-group.vue"]]);var Ld=_r(T({components:{ElRovingFocusCollectionItem:wd},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:o,onItemFocus:l,onItemShiftTab:a}=z(kd,void 0),{getItems:r}=z(xd,void 0),i=Ql(),s=m(null),u=nt((e=>{t("mousedown",e)}),(t=>{e.focusable?l(p(i)):t.preventDefault()})),c=nt((e=>{t("focus",e)}),(()=>{l(p(i))})),d=nt((e=>{t("keydown",e)}),(e=>{const{key:t,shiftKey:n,target:l,currentTarget:i}=e;if(t===Jn.tab&&n)return void a();if(l!==i)return;const s=Id(e);if(s){e.preventDefault();let t=r().filter((e=>e.focusable)).map((e=>e.ref));switch(s){case"last":t.reverse();break;case"prev":case"next":{"prev"===s&&t.reverse();const e=t.indexOf(i);t=o.value?(c=e+1,(u=t).map(((e,t)=>u[(t+c)%u.length]))):t.slice(e+1);break}}y((()=>{Td(t)}))}var u,c})),f=k((()=>n.value===p(i)));return j(Cd,{rovingFocusGroupItemRef:s,tabIndex:k((()=>p(f)?0:-1)),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:i,handleKeydown:d,handleFocus:c,handleMousedown:u}}}),[["render",function(e,t,n,o,l,a){const r=Ee("el-roving-focus-collection-item");return B(),ee(r,{id:e.id,focusable:e.focusable,active:e.active},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["id","focusable","active"])}],["__file","roving-focus-item.vue"]]);const $d=jn({trigger:ns.trigger,effect:u(s({},ts.effect),{default:"light"}),type:{type:String},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Object},teleported:ts.teleported}),Ad=jn({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Wn}}),Vd=jn({onKeydown:{type:Function}}),Nd=[Jn.down,Jn.pageDown,Jn.home],Fd=[Jn.up,Jn.pageUp,Jn.end],zd=[...Nd,...Fd],{ElCollection:Pd,ElCollectionItem:Dd,COLLECTION_INJECTION_KEY:Hd,COLLECTION_ITEM_INJECTION_KEY:jd}=gd("Dropdown"),Wd=Symbol("elDropdown"),{ButtonGroup:Kd}=Gs;var Ud=_r(T({name:"ElDropdown",components:{ElButton:Gs,ElButtonGroup:Kd,ElScrollbar:ci,ElDropdownCollection:Pd,ElTooltip:hs,ElRovingFocusGroup:Rd,ElOnlyChild:yi,ElIcon:Nr,ArrowDown:fn},props:$d,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=g(),o=So("dropdown"),{t:l}=go(),a=m(),r=m(),i=m(null),s=m(null),u=m(null),c=m(null),d=m(!1),f=[Jn.enter,Jn.space,Jn.down],v=k((()=>({maxHeight:un(e.maxHeight)}))),h=k((()=>[o.m(C.value)])),b=k((()=>Ye(e.trigger))),y=Ql().value,w=k((()=>e.id||y));function x(){var e;null==(e=i.value)||e.onClose()}S([a,b],(([e,t],[n])=>{var o,l,a;(null==(o=null==n?void 0:n.$el)?void 0:o.removeEventListener)&&n.$el.removeEventListener("pointerenter",E),(null==(l=null==e?void 0:e.$el)?void 0:l.removeEventListener)&&e.$el.removeEventListener("pointerenter",E),(null==(a=null==e?void 0:e.$el)?void 0:a.addEventListener)&&t.includes("hover")&&e.$el.addEventListener("pointerenter",E)}),{immediate:!0}),F((()=>{var e,t;(null==(t=null==(e=a.value)?void 0:e.$el)?void 0:t.removeEventListener)&&a.value.$el.removeEventListener("pointerenter",E)}));const C=Pr();function E(){var e,t;null==(t=null==(e=a.value)?void 0:e.$el)||t.focus()}j(Wd,{contentRef:s,role:k((()=>e.role)),triggerId:w,isUsingKeyboard:d,onItemEnter:function(){},onItemLeave:function(){const e=p(s);b.value.includes("hover")&&(null==e||e.focus()),c.value=null}}),j("elDropdown",{instance:n,dropdownSize:C,handleClick:function(){x()},commandHandler:function(...e){t("command",...e)},trigger:Y(e,"trigger"),hideOnClick:Y(e,"hideOnClick")});return{t:l,ns:o,scrollbar:u,wrapStyle:v,dropdownTriggerKls:h,dropdownSize:C,triggerId:w,triggerKeys:f,currentTabId:c,handleCurrentTabIdChange:function(e){c.value=e},handlerMainButtonClick:e=>{t("click",e)},handleEntryFocus:function(e){d.value||(e.preventDefault(),e.stopImmediatePropagation())},handleClose:x,handleOpen:function(){var e;null==(e=i.value)||e.onOpen()},handleBeforeShowTooltip:function(){t("visible-change",!0)},handleShowTooltip:function(e){"keydown"===(null==e?void 0:e.type)&&s.value.focus()},handleBeforeHideTooltip:function(){t("visible-change",!1)},onFocusAfterTrapped:e=>{var t,n;e.preventDefault(),null==(n=null==(t=s.value)?void 0:t.focus)||n.call(t,{preventScroll:!0})},popperRef:i,contentRef:s,triggeringElementRef:a,referenceElementRef:r}}}),[["render",function(e,t,n,o,l,a){var r;const i=Ee("el-dropdown-collection"),s=Ee("el-roving-focus-group"),u=Ee("el-scrollbar"),c=Ee("el-only-child"),d=Ee("el-tooltip"),p=Ee("el-button"),f=Ee("arrow-down"),v=Ee("el-icon"),m=Ee("el-button-group");return B(),O("div",{class:K([e.ns.b(),e.ns.is("disabled",e.disabled)])},[oe(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(r=e.referenceElementRef)?void 0:r.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ce({content:te((()=>[oe(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:te((()=>[oe(s,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:te((()=>[oe(i,null,{default:te((()=>[W(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:te((()=>[oe(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["id","tabindex"])]))}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(B(),ee(m,{key:0},{default:te((()=>[oe(p,q({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:te((()=>[W(e.$slots,"default")])),_:3},16,["size","type","disabled","tabindex","onClick"]),oe(p,q({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:te((()=>[oe(v,{class:K(e.ns.e("icon"))},{default:te((()=>[oe(f)])),_:1},8,["class"])])),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])])),_:3})):J("v-if",!0)],2)}],["__file","dropdown.vue"]]);const qd=T({name:"DropdownItemImpl",components:{ElIcon:Nr},props:Ad,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=So("dropdown"),{role:o}=z(Wd,void 0),{collectionItemRef:l}=z(jd,void 0),{collectionItemRef:a}=z(Sd,void 0),{rovingFocusGroupItemRef:r,tabIndex:i,handleFocus:s,handleKeydown:u,handleMousedown:c}=z(Cd,void 0),d=Zn(l,a,r),p=k((()=>"menu"===o.value?"menuitem":"navigation"===o.value?"link":"button")),f=nt((e=>{const{code:n}=e;if(n===Jn.enter||n===Jn.space)return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0}),u);return{ns:n,itemRef:d,dataset:{[hd]:""},role:p,tabIndex:i,handleFocus:s,handleKeydown:f,handleMousedown:c}}}),Yd=["aria-disabled","tabindex","role"];const Gd=()=>{const e=z("elDropdown",{}),t=k((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:t}};var Xd=_r(T({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Dd,ElRovingFocusItem:Ld,ElDropdownItemImpl:_r(qd,[["render",function(e,t,n,o,l,a){const r=Ee("el-icon");return B(),O(Q,null,[e.divided?(B(),O("li",q({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):J("v-if",!0),M("li",q({ref:e.itemRef},s(s({},e.dataset),e.$attrs),{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=t=>e.$emit("clickimpl",t)),onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onKeydown:t[2]||(t[2]=le(((...t)=>e.handleKeydown&&e.handleKeydown(...t)),["self"])),onMousedown:t[3]||(t[3]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),onPointermove:t[4]||(t[4]=t=>e.$emit("pointermove",t)),onPointerleave:t[5]||(t[5]=t=>e.$emit("pointerleave",t))}),[e.icon?(B(),ee(r,{key:0},{default:te((()=>[(B(),ee(ne(e.icon)))])),_:1})):J("v-if",!0),W(e.$slots,"default")],16,Yd)],64)}],["__file","dropdown-item-impl.vue"]])},inheritAttrs:!1,props:Ad,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=Gd(),l=g(),a=m(null),r=k((()=>{var e,t;return null!=(t=null==(e=p(a))?void 0:e.textContent)?t:""})),{onItemEnter:i,onItemLeave:u}=z(Wd,void 0),c=nt((e=>(t("pointermove",e),e.defaultPrevented)),ot((t=>{if(e.disabled)return void u(t);const n=t.currentTarget;n===document.activeElement||n.contains(document.activeElement)||(i(t),t.defaultPrevented||null==n||n.focus())}))),d=nt((e=>(t("pointerleave",e),e.defaultPrevented)),ot((e=>{u(e)})));return{handleClick:nt((n=>{if(!e.disabled)return t("click",n),"keydown"!==n.type&&n.defaultPrevented}),(t=>{var n,a,r;e.disabled?t.stopImmediatePropagation():((null==(n=null==o?void 0:o.hideOnClick)?void 0:n.value)&&(null==(a=o.handleClick)||a.call(o)),null==(r=o.commandHandler)||r.call(o,e.command,l,t))})),handlePointerMove:c,handlePointerLeave:d,textContent:r,propsAndAttrs:k((()=>s(s({},e),n)))}}}),[["render",function(e,t,n,o,l,a){var r;const i=Ee("el-dropdown-item-impl"),s=Ee("el-roving-focus-item"),u=Ee("el-dropdown-collection-item");return B(),ee(u,{disabled:e.disabled,"text-value":null!=(r=e.textValue)?r:e.textContent},{default:te((()=>[oe(s,{focusable:!e.disabled},{default:te((()=>[oe(i,q(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:te((()=>[W(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}],["__file","dropdown-item.vue"]]);const Zd=T({name:"ElDropdownMenu",props:Vd,setup(e){const t=So("dropdown"),{_elDropdownSize:n}=Gd(),o=n.value,{focusTrapRef:l,onKeydown:a}=z(_i,void 0),{contentRef:r,role:i,triggerId:s}=z(Wd,void 0),{collectionRef:u,getItems:c}=z(Hd,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:f,tabIndex:v,onBlur:m,onFocus:h,onMousedown:g}=z(kd,void 0),{collectionRef:b}=z(xd,void 0),y=k((()=>[t.b("menu"),t.bm("menu",null==o?void 0:o.value)])),w=Zn(r,u,l,d,b),x=nt((t=>{var n;null==(n=e.onKeydown)||n.call(e,t)}),(e=>{const{currentTarget:t,code:n,target:o}=e;if(t.contains(o),Jn.tab===n&&e.stopImmediatePropagation(),e.preventDefault(),o!==p(r))return;if(!zd.includes(n))return;const l=c().filter((e=>!e.disabled)).map((e=>e.ref));Fd.includes(n)&&l.reverse(),Td(l)}));return{size:o,rovingFocusGroupRootStyle:f,tabIndex:v,dropdownKls:y,role:i,triggerId:s,dropdownListWrapperRef:w,handleKeydown:e=>{x(e),a(e)},onBlur:m,onFocus:h,onMousedown:g}}}),Jd=["role","aria-labelledby"];var Qd=_r(Zd,[["render",function(e,t,n,o,l,a){return B(),O("ul",{ref:e.dropdownListWrapperRef,class:K(e.dropdownKls),style:U(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...t)=>e.onBlur&&e.onBlur(...t)),onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onKeydown:t[2]||(t[2]=le(((...t)=>e.handleKeydown&&e.handleKeydown(...t)),["self"])),onMousedown:t[3]||(t[3]=le(((...t)=>e.onMousedown&&e.onMousedown(...t)),["self"]))},[W(e.$slots,"default")],46,Jd)}],["__file","dropdown-menu.vue"]]);const ep=Gn(Ud,{DropdownItem:Xd,DropdownMenu:Qd}),tp=Xn(Xd),np=Xn(Qd),op=jn({urlList:{type:Array,default:()=>[]},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:String}}),lp={close:()=>!0,switch:e=>Xt(e),rotate:e=>Xt(e)},ap=["src","crossorigin"],rp=T({name:"ElImageViewer"});const ip=Gn(_r(T(u(s({},rp),{props:op,emits:lp,setup(e,{expose:t,emit:n}){var o;const l=e,a={CONTAIN:{name:"contain",icon:Be(Cn)},ORIGINAL:{name:"original",icon:Be(Ln)}},{t:r}=go(),i=So("image-viewer"),{nextZIndex:c}=ca(),d=m(),f=m([]),v=Oe(),h=m(!0),g=m(l.initialIndex),x=w(a.CONTAIN),C=m({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),E=m(null!=(o=l.zIndex)?o:c()),I=k((()=>{const{urlList:e}=l;return e.length<=1})),T=k((()=>0===g.value)),_=k((()=>g.value===l.urlList.length-1)),R=k((()=>l.urlList[g.value])),L=k((()=>[i.e("btn"),i.e("prev"),i.is("disabled",!l.infinite&&T.value)])),$=k((()=>[i.e("btn"),i.e("next"),i.is("disabled",!l.infinite&&_.value)])),A=k((()=>{const{scale:e,deg:t,offsetX:n,offsetY:o,enableTransition:l}=C.value;let r=n/e,i=o/e;switch(t%360){case 90:case-270:[r,i]=[i,-r];break;case 180:case-180:[r,i]=[-r,-i];break;case 270:case-90:[r,i]=[-i,r]}const s={transform:`scale(${e}) rotate(${t}deg) translate(${r}px, ${i}px)`,transition:l?"transform .3s":""};return x.value.name===a.CONTAIN.name&&(s.maxWidth=s.maxHeight="100%"),s}));function V(){v.stop(),n("close")}function N(){h.value=!1}function F(e){h.value=!1,e.target.alt=r("el.image.error")}function z(e){if(h.value||0!==e.button||!d.value)return;C.value.enableTransition=!1;const{offsetX:t,offsetY:n}=C.value,o=e.pageX,l=e.pageY,a=Ke((e=>{C.value=u(s({},C.value),{offsetX:t+e.pageX-o,offsetY:n+e.pageY-l})})),r=Et(document,"mousemove",a);Et(document,"mouseup",(()=>{r()})),e.preventDefault()}function P(){C.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function D(){if(h.value)return;const e=en(a),t=Object.values(a),n=x.value.name,o=(t.findIndex((e=>e.name===n))+1)%e.length;x.value=a[e[o]],P()}function H(e){const t=l.urlList.length;g.value=(e+t)%t}function j(){T.value&&!l.infinite||H(g.value-1)}function q(){_.value&&!l.infinite||H(g.value+1)}function Y(e,t={}){if(h.value)return;const{minScale:o,maxScale:a}=l,{zoomRate:r,rotateDeg:i,enableTransition:u}=s({zoomRate:l.zoomRate,rotateDeg:90,enableTransition:!0},t);switch(e){case"zoomOut":C.value.scale>o&&(C.value.scale=Number.parseFloat((C.value.scale/r).toFixed(3)));break;case"zoomIn":C.value.scale{y((()=>{const e=f.value[0];(null==e?void 0:e.complete)||(h.value=!0)}))})),S(g,(e=>{P(),n("switch",e)})),b((()=>{var e,t;!function(){const e=Ke((e=>{switch(e.code){case Jn.esc:l.closeOnPressEscape&&V();break;case Jn.space:D();break;case Jn.left:j();break;case Jn.up:Y("zoomIn");break;case Jn.right:q();break;case Jn.down:Y("zoomOut")}})),t=Ke((e=>{Y((e.deltaY||e.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:l.zoomRate,enableTransition:!1})}));v.run((()=>{Et(document,"keydown",e),Et(document,"wheel",t)}))}(),null==(t=null==(e=d.value)?void 0:e.focus)||t.call(e)})),t({setActiveItem:H}),(e,t)=>(B(),ee(ve,{to:"body",disabled:!e.teleported},[oe(se,{name:"viewer-fade",appear:""},{default:te((()=>[M("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:K(p(i).e("wrapper")),style:U({zIndex:E.value})},[M("div",{class:K(p(i).e("mask")),onClick:t[0]||(t[0]=le((t=>e.hideOnClickModal&&V()),["self"]))},null,2),J(" CLOSE "),M("span",{class:K([p(i).e("btn"),p(i).e("close")]),onClick:V},[oe(p(Nr),null,{default:te((()=>[oe(p(xn))])),_:1})],2),J(" ARROW "),p(I)?J("v-if",!0):(B(),O(Q,{key:0},[M("span",{class:K(p(L)),onClick:j},[oe(p(Nr),null,{default:te((()=>[oe(p(vn))])),_:1})],2),M("span",{class:K(p($)),onClick:q},[oe(p(Nr),null,{default:te((()=>[oe(p(mn))])),_:1})],2)],64)),J(" ACTIONS "),M("div",{class:K([p(i).e("btn"),p(i).e("actions")])},[M("div",{class:K(p(i).e("actions__inner"))},[oe(p(Nr),{onClick:t[1]||(t[1]=e=>Y("zoomOut"))},{default:te((()=>[oe(p(Pn))])),_:1}),oe(p(Nr),{onClick:t[2]||(t[2]=e=>Y("zoomIn"))},{default:te((()=>[oe(p(zn))])),_:1}),M("i",{class:K(p(i).e("actions__divider"))},null,2),oe(p(Nr),{onClick:D},{default:te((()=>[(B(),ee(ne(p(x).icon)))])),_:1}),M("i",{class:K(p(i).e("actions__divider"))},null,2),oe(p(Nr),{onClick:t[3]||(t[3]=e=>Y("anticlockwise"))},{default:te((()=>[oe(p(_n))])),_:1}),oe(p(Nr),{onClick:t[4]||(t[4]=e=>Y("clockwise"))},{default:te((()=>[oe(p(Rn))])),_:1})],2)],2),J(" CANVAS "),M("div",{class:K(p(i).e("canvas"))},[(B(!0),O(Q,null,he(e.urlList,((t,n)=>re((B(),O("img",{ref_for:!0,ref:e=>f.value[n]=e,key:t,src:t,style:U(p(A)),class:K(p(i).e("img")),crossorigin:e.crossorigin,onLoad:N,onError:F,onMousedown:z},null,46,ap)),[[ie,n===g.value]]))),128))],2),W(e.$slots,"default")],6)])),_:3})],8,["disabled"]))}})),[["__file","image-viewer.vue"]])),sp=jn({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:[String,Object]},previewSrcList:{type:Array,default:()=>[]},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:String}}),up={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Xt(e),close:()=>!0,show:()=>!0},cp=["src","loading","crossorigin"],dp={key:0},pp=T({name:"ElImage",inheritAttrs:!1});const fp=Gn(_r(T(u(s({},pp),{props:sp,emits:up,setup(e,{emit:t}){const n=e;let o="";const{t:l}=go(),a=So("image"),r=X(),i=uo(),s=m(),u=m(!1),c=m(!0),f=m(!1),v=m(),h=m(),g=ft&&"loading"in HTMLImageElement.prototype;let w,x;const E=k((()=>[a.e("inner"),_.value&&a.e("preview"),c.value&&a.is("loading")])),I=k((()=>r.style)),T=k((()=>{const{fit:e}=n;return ft&&e?{objectFit:e}:{}})),_=k((()=>{const{previewSrcList:e}=n;return Array.isArray(e)&&e.length>0})),R=k((()=>{const{previewSrcList:e,initialIndex:t}=n;let o=t;return t>e.length-1&&(o=0),o})),L=k((()=>"eager"!==n.loading&&(!g&&"lazy"===n.loading||n.lazy))),$=()=>{ft&&(c.value=!0,u.value=!1,s.value=n.src)};function A(e){c.value=!1,u.value=!1,t("load",e)}function V(e){c.value=!1,u.value=!0,t("error",e)}function N(){((e,t)=>{if(!ft||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return o=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topo.top&&n.right>o.left&&n.leftN()),100))}))}function P(){ft&&h.value&&F&&(null==w||w(),h.value=void 0)}function D(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function H(){_.value&&(x=Et("wheel",D,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function j(){null==x||x(),document.body.style.overflow=o,f.value=!1,t("close")}function Y(e){t("switch",e)}return S((()=>n.src),(()=>{L.value?(c.value=!0,u.value=!1,P(),z()):$()})),b((()=>{L.value?z():$()})),(e,t)=>(B(),O("div",{ref_key:"container",ref:v,class:K([p(a).b(),e.$attrs.class]),style:U(p(I))},[u.value?W(e.$slots,"error",{key:0},(()=>[M("div",{class:K(p(a).e("error"))},ae(p(l)("el.image.error")),3)])):(B(),O(Q,{key:1},[void 0!==s.value?(B(),O("img",q({key:0},p(i),{src:s.value,loading:e.loading,style:p(T),class:p(E),crossorigin:e.crossorigin,onClick:H,onLoad:A,onError:V}),null,16,cp)):J("v-if",!0),c.value?(B(),O("div",{key:1,class:K(p(a).e("wrapper"))},[W(e.$slots,"placeholder",{},(()=>[M("div",{class:K(p(a).e("placeholder"))},null,2)]))],2)):J("v-if",!0)],64)),p(_)?(B(),O(Q,{key:2},[f.value?(B(),ee(p(ip),{key:0,"z-index":e.zIndex,"initial-index":p(R),infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"url-list":e.previewSrcList,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:j,onSwitch:Y},{default:te((()=>[e.$slots.viewer?(B(),O("div",dp,[W(e.$slots,"viewer")])):J("v-if",!0)])),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):J("v-if",!0)],64)):J("v-if",!0)],6))}})),[["__file","image.vue"]])),vp=jn({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:gr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||Xt(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),mp={[eo]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[to]:e=>Xt(e)||De(e),[Qn]:e=>Xt(e)||De(e)},hp=["aria-label","onKeydown"],gp=["aria-label","onKeydown"],bp=T({name:"ElInputNumber"});const yp=Gn(_r(T(u(s({},bp),{props:vp,emits:mp,setup(e,{expose:t,emit:n}){const o=e,{t:l}=go(),a=So("input-number"),r=m(),i=ue({currentValue:o.modelValue,userInput:null}),{formItem:s}=Hr(),u=k((()=>Xt(o.modelValue)&&o.modelValue<=o.min)),c=k((()=>Xt(o.modelValue)&&o.modelValue>=o.max)),d=k((()=>{const e=w(o.step);return Yt(o.precision)?Math.max(w(o.modelValue),e):(o.precision,o.precision)})),f=k((()=>o.controls&&"right"===o.controlsPosition)),v=Pr(),h=Dr(),g=k((()=>{if(null!==i.userInput)return i.userInput;let e=i.currentValue;if(De(e))return"";if(Xt(e)){if(Number.isNaN(e))return"";Yt(o.precision)||(e=e.toFixed(o.precision))}return e})),y=(e,t)=>{if(Yt(t)&&(t=d.value),0===t)return Math.round(e);let n=String(e);const o=n.indexOf(".");if(-1===o)return e;if(!n.replace(".","").split("")[o+t])return e;const l=n.length;return"5"===n.charAt(l-1)&&(n=`${n.slice(0,Math.max(0,l-1))}6`),Number.parseFloat(Number(n).toFixed(t))},w=e=>{if(De(e))return 0;const t=e.toString(),n=t.indexOf(".");let o=0;return-1!==n&&(o=t.length-n-1),o},x=(e,t=1)=>Xt(e)?y(e+o.step*t):i.currentValue,E=()=>{if(o.readonly||h.value||c.value)return;const e=Number(g.value)||0,t=x(e);M(t),n(to,i.currentValue),A()},I=()=>{if(o.readonly||h.value||u.value)return;const e=Number(g.value)||0,t=x(e,-1);M(t),n(to,i.currentValue),A()},T=(e,t)=>{const{max:l,min:a,step:r,precision:i,stepStrictly:s,valueOnClear:u}=o;ll||cl?l:a,t&&n(Qn,c)),c},M=(e,t=!0)=>{var l;const a=i.currentValue,r=T(e);t?a===r&&e||(i.userInput=null,n(Qn,r),a!==r&&n(eo,r,a),o.validateEvent&&(null==(l=null==s?void 0:s.validate)||l.call(s,"change").catch((e=>{}))),i.currentValue=r):n(Qn,r)},_=e=>{i.userInput=e;const t=""===e?null:Number(e);n(to,t),M(t,!1)},R=e=>{const t=""!==e?Number(e):"";(Xt(t)&&!Number.isNaN(t)||""===e)&&M(t),A(),i.userInput=null},L=e=>{n("focus",e)},$=e=>{var t;i.userInput=null,n("blur",e),o.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"blur").catch((e=>{})))},A=()=>{i.currentValue!==o.modelValue&&(i.currentValue=o.modelValue)},V=e=>{document.activeElement===e.target&&e.preventDefault()};return S((()=>o.modelValue),((e,t)=>{const n=T(e,!0);null===i.userInput&&n!==t&&(i.currentValue=n)}),{immediate:!0}),b((()=>{var e;const{min:t,max:l,modelValue:a}=o,s=null==(e=r.value)?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(l)?s.setAttribute("aria-valuemax",String(l)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",i.currentValue||0===i.currentValue?String(i.currentValue):""),s.setAttribute("aria-disabled",String(h.value)),!Xt(a)&&null!=a){let e=Number(a);Number.isNaN(e)&&(e=null),n(Qn,e)}})),ce((()=>{var e,t;const n=null==(e=r.value)?void 0:e.input;null==n||n.setAttribute("aria-valuenow",`${null!=(t=i.currentValue)?t:""}`)})),t({focus:()=>{var e,t;null==(t=null==(e=r.value)?void 0:e.focus)||t.call(e)},blur:()=>{var e,t;null==(t=null==(e=r.value)?void 0:e.blur)||t.call(e)}}),(e,t)=>(B(),O("div",{class:K([p(a).b(),p(a).m(p(v)),p(a).is("disabled",p(h)),p(a).is("without-controls",!e.controls),p(a).is("controls-right",p(f))]),onDragstart:t[0]||(t[0]=le((()=>{}),["prevent"]))},[e.controls?re((B(),O("span",{key:0,role:"button","aria-label":p(l)("el.inputNumber.decrease"),class:K([p(a).e("decrease"),p(a).is("disabled",p(u))]),onKeydown:Me(I,["enter"])},[oe(p(Nr),null,{default:te((()=>[p(f)?(B(),ee(p(fn),{key:0})):(B(),ee(p(Bn),{key:1}))])),_:1})],42,hp)),[[p(ou),I]]):J("v-if",!0),e.controls?re((B(),O("span",{key:1,role:"button","aria-label":p(l)("el.inputNumber.increase"),class:K([p(a).e("increase"),p(a).is("disabled",p(c))]),onKeydown:Me(E,["enter"])},[oe(p(Nr),null,{default:te((()=>[p(f)?(B(),ee(p(hn),{key:0})):(B(),ee(p(Mn),{key:1}))])),_:1})],42,gp)),[[p(ou),E]]):J("v-if",!0),oe(p(ei),{id:e.id,ref_key:"input",ref:r,type:"number",step:e.step,"model-value":p(g),placeholder:e.placeholder,readonly:e.readonly,disabled:p(h),size:p(v),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onWheel:V,onKeydown:[Me(le(E,["prevent"]),["up"]),Me(le(I,["prevent"]),["down"])],onBlur:$,onFocus:L,onInput:_,onChange:R},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}})),[["__file","input-number.vue"]]));let wp=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(t=>{t.addEventListener("keydown",(t=>{let n=!1;switch(t.code){case Jn.down:this.gotoSubIndex(this.subIndex+1),n=!0;break;case Jn.up:this.gotoSubIndex(this.subIndex-1),n=!0;break;case Jn.tab:tt(e,"mouseleave");break;case Jn.enter:case Jn.space:n=!0,t.currentTarget.click()}return n&&(t.preventDefault(),t.stopPropagation()),!1}))}))}},xp=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new wp(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case Jn.down:tt(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case Jn.up:tt(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case Jn.tab:tt(e.currentTarget,"mouseleave");break;case Jn.enter:case Jn.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()}))}},Sp=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach((t=>{1===t.nodeType&&new xp(t,e)}))}};var kp=_r(T({name:"ElMenuCollapseTransition",setup(){const e=So("menu");return{listeners:{onBeforeEnter:e=>e.style.opacity="0.2",onEnter(t,n){an(t,`${e.namespace.value}-opacity-transition`),t.style.opacity="1",n()},onAfterEnter(t){rn(t,`${e.namespace.value}-opacity-transition`),t.style.opacity=""},onBeforeLeave(t){t.dataset||(t.dataset={}),ln(t,e.m("collapse"))?(rn(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),an(t,e.m("collapse"))):(an(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),rn(t,e.m("collapse"))),t.style.width=`${t.scrollWidth}px`,t.style.overflow="hidden"},onLeave(e){an(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}}}}}),[["render",function(e,t,n,o,l,a){return B(),ee(se,q({mode:"out-in"},e.listeners),{default:te((()=>[W(e.$slots,"default")])),_:3},16)}],["__file","menu-collapse-transition.vue"]]);function Cp(e,t){const n=k((()=>{let n=e.parent;const o=[t.value];for(;"ElMenu"!==n.type.name;)n.props.index&&o.unshift(n.props.index),n=n.parent;return o}));return{parentMenu:k((()=>{let t=e.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t})),indexPath:n}}function Ep(e){return k((()=>{const t=e.backgroundColor;return t?new Hs(t).shade(20).toString():""}))}const Ip=(e,t)=>{const n=So("menu");return k((()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Ep(e).value||"","active-color":e.activeTextColor||"",level:`${t}`})))},Tp=jn({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Wn},expandOpenIcon:{type:Wn},collapseCloseIcon:{type:Wn},collapseOpenIcon:{type:Wn}}),Bp="ElSubMenu";var Op=T({name:Bp,props:Tp,setup(e,{slots:t,expose:n}){const o=g(),{indexPath:l,parentMenu:a}=Cp(o,k((()=>e.index))),r=So("menu"),i=So("sub-menu"),s=z("rootMenu");s||nn(Bp,"can not inject root menu");const u=z(`subMenu:${a.value.uid}`);u||nn(Bp,"can not inject sub menu");const c=m({}),d=m({});let p;const f=m(!1),v=m(),h=m(null),y=k((()=>"horizontal"===M.value&&x.value?"bottom-start":"right-start")),w=k((()=>"horizontal"===M.value&&x.value||"vertical"===M.value&&!s.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?B.value?e.expandOpenIcon:e.expandCloseIcon:fn:e.collapseCloseIcon&&e.collapseOpenIcon?B.value?e.collapseOpenIcon:e.collapseCloseIcon:mn)),x=k((()=>0===u.level)),E=k((()=>{const t=e.teleported;return void 0===t?x.value:t})),I=k((()=>s.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`)),T=k((()=>"horizontal"===M.value&&x.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"])),B=k((()=>s.openedMenus.includes(e.index))),O=k((()=>{let e=!1;return Object.values(c.value).forEach((t=>{t.active&&(e=!0)})),Object.values(d.value).forEach((t=>{t.active&&(e=!0)})),e})),M=k((()=>s.props.mode)),_=ue({index:e.index,indexPath:l,active:O}),R=Ip(s.props,u.level+1),L=k((()=>{var t;return null!=(t=e.popperOffset)?t:s.props.popperOffset})),$=k((()=>{var t;return null!=(t=e.popperClass)?t:s.props.popperClass})),A=k((()=>{var t;return null!=(t=e.showTimeout)?t:s.props.showTimeout})),V=k((()=>{var t;return null!=(t=e.hideTimeout)?t:s.props.hideTimeout})),N=e=>{var t,n,o;e||null==(o=null==(n=null==(t=h.value)?void 0:t.popperRef)?void 0:n.popperInstanceRef)||o.destroy()},P=()=>{"hover"===s.props.menuTrigger&&"horizontal"===s.props.mode||s.props.collapse&&"vertical"===s.props.mode||e.disabled||s.handleSubMenuClick({index:e.index,indexPath:l.value,active:O.value})},D=(t,n=A.value)=>{var o;"focus"!==t.type&&("click"===s.props.menuTrigger&&"horizontal"===s.props.mode||!s.props.collapse&&"vertical"===s.props.mode||e.disabled?u.mouseInChild.value=!0:(u.mouseInChild.value=!0,null==p||p(),({stop:p}=xt((()=>{s.openMenu(e.index,l.value)}),n)),E.value&&(null==(o=a.value.vnode.el)||o.dispatchEvent(new MouseEvent("mouseenter")))))},H=(t=!1)=>{var n;"click"===s.props.menuTrigger&&"horizontal"===s.props.mode||!s.props.collapse&&"vertical"===s.props.mode?u.mouseInChild.value=!1:(null==p||p(),u.mouseInChild.value=!1,({stop:p}=xt((()=>!f.value&&s.closeMenu(e.index,l.value)),V.value)),E.value&&t&&(null==(n=u.handleMouseleave)||n.call(u,!0)))};S((()=>s.props.collapse),(e=>N(Boolean(e))));{const e=e=>{d.value[e.index]=e},t=e=>{delete d.value[e.index]};j(`subMenu:${o.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:H,mouseInChild:f,level:u.level+1})}return n({opened:B}),b((()=>{s.addSubMenu(_),u.addSubMenu(_)})),F((()=>{u.removeSubMenu(_),s.removeSubMenu(_)})),()=>{var n;const l=[null==(n=t.title)?void 0:n.call(t),ke(Nr,{class:i.e("icon-arrow"),style:{transform:B.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&s.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>C(w.value)?ke(o.appContext.components[w.value]):ke(w.value)})],a=s.isMenuPopup?ke(hs,{ref:h,visible:B.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:!0,popperClass:$.value,placement:y.value,teleported:E.value,fallbackPlacements:T.value,transition:I.value,gpuAcceleration:!1},{content:()=>{var e;return ke("div",{class:[r.m(M.value),r.m("popup-container"),$.value],onMouseenter:e=>D(e,100),onMouseleave:()=>H(!0),onFocus:e=>D(e,100)},[ke("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${y.value}`)],style:R.value},[null==(e=t.default)?void 0:e.call(t)])])},default:()=>ke("div",{class:i.e("title"),onClick:P},l)}):ke(Q,{},[ke("div",{class:i.e("title"),ref:v,onClick:P},l),ke(Tc,{},{default:()=>{var e;return re(ke("ul",{role:"menu",class:[r.b(),r.m("inline")],style:R.value},[null==(e=t.default)?void 0:e.call(t)]),[[ie,B.value]])}})]);return ke("li",{class:[i.b(),i.is("active",O.value),i.is("opened",B.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:B.value,onMouseenter:D,onMouseleave:()=>H(),onFocus:D},[a])}}});const Mp=jn({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Array,default:()=>[]},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Wn,default:()=>On},popperEffect:{type:String,values:["dark","light"],default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),_p=e=>Array.isArray(e)&&e.every((e=>C(e)));var Rp=T({name:"ElMenu",props:Mp,emits:{close:(e,t)=>C(e)&&_p(t),open:(e,t)=>C(e)&&_p(t),select:(e,t,n,o)=>C(e)&&_p(t)&&_(n)&&(void 0===o||o instanceof Promise)},setup(e,{emit:t,slots:n,expose:o}){const l=g(),a=l.appContext.config.globalProperties.$router,r=m(),i=So("menu"),s=So("sub-menu"),u=m(-1),c=m(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),d=m(e.defaultActive),p=m({}),f=m({}),v=k((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),h=(n,o)=>{c.value.includes(n)||(e.uniqueOpened&&(c.value=c.value.filter((e=>o.includes(e)))),c.value.push(n),t("open",n,o))},w=e=>{const t=c.value.indexOf(e);-1!==t&&c.value.splice(t,1)},C=(e,n)=>{w(e),t("close",e,n)},E=({index:e,indexPath:t})=>{c.value.includes(e)?C(e,t):h(e,t)},I=n=>{("horizontal"===e.mode||e.collapse)&&(c.value=[]);const{index:o,indexPath:l}=n;if(!De(o)&&!De(l))if(e.router&&a){const e=n.route||o,r=a.push(e).then((e=>(e||(d.value=o),e)));t("select",o,l,{index:o,indexPath:l,route:e},r)}else d.value=o,t("select",o,l,{index:o,indexPath:l})},T=()=>{var e,t;if(!r.value)return-1;const n=Array.from(null!=(t=null==(e=r.value)?void 0:e.childNodes)?t:[]).filter((e=>"#comment"!==e.nodeName&&("#text"!==e.nodeName||e.nodeValue))),o=getComputedStyle(r.value),l=Number.parseInt(o.paddingLeft,10),a=Number.parseInt(o.paddingRight,10),i=r.value.clientWidth-l-a;let s=0,u=0;return n.forEach(((e,t)=>{s+=(e=>{const t=getComputedStyle(e),n=Number.parseInt(t.marginLeft,10),o=Number.parseInt(t.marginRight,10);return e.offsetWidth+n+o||0})(e),s<=i-64&&(u=t+1)})),u===n.length?-1:u};let B=!0;const O=()=>{if(u.value===T())return;const e=()=>{u.value=-1,y((()=>{u.value=T()}))};B?e():((e,t=33.34)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout((()=>{e()}),t)}})(e)(),B=!1};let M;S((()=>e.defaultActive),(t=>{p.value[t]||(d.value=""),(t=>{const n=p.value,o=n[t]||d.value&&n[d.value]||n[e.defaultActive];d.value=o?o.index:t})(t)})),S((()=>e.collapse),(e=>{e&&(c.value=[])})),S(p.value,(()=>{const t=d.value&&p.value[d.value];if(!t||"horizontal"===e.mode||e.collapse)return;t.indexPath.forEach((e=>{const t=f.value[e];t&&h(e,t.indexPath)}))})),x((()=>{"horizontal"===e.mode&&e.ellipsis?M=$t(r,O).stop:null==M||M()}));const _=m(!1);{const t=e=>{f.value[e.index]=e},n=e=>{delete f.value[e.index]},o=e=>{p.value[e.index]=e},a=e=>{delete p.value[e.index]};j("rootMenu",ue({props:e,openedMenus:c,items:p,subMenus:f,activeIndex:d,isMenuPopup:v,addMenuItem:o,removeMenuItem:a,addSubMenu:t,removeSubMenu:n,openMenu:h,closeMenu:C,handleMenuItemClick:I,handleSubMenuClick:E})),j(`subMenu:${l.uid}`,{addSubMenu:t,removeSubMenu:n,mouseInChild:_,level:0})}b((()=>{"horizontal"===e.mode&&new Sp(l.vnode.el,i.namespace.value)}));o({open:e=>{const{indexPath:t}=f.value[e];t.forEach((e=>h(e,t)))},close:w,handleResize:O});return()=>{var o,l;let a=null!=(l=null==(o=n.default)?void 0:o.call(n))?l:[];const d=[];if("horizontal"===e.mode&&r.value){const t=ao(a),n=-1===u.value?t:t.slice(0,u.value),o=-1===u.value?[]:t.slice(u.value);(null==o?void 0:o.length)&&e.ellipsis&&(a=n,d.push(ke(Op,{index:"sub-menu-more",class:s.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>ke(Nr,{class:s.e("icon-more")},{default:()=>ke(e.ellipsisIcon)}),default:()=>o})))}const p=Ip(e,0),v=e.closeOnClickOutside?[[eu,()=>{c.value.length&&(_.value||(c.value.forEach((e=>{return t("close",e,(n=e,f.value[n].indexPath));var n})),c.value=[]))}]]:[],m=re(ke("ul",{key:String(e.collapse),role:"menubar",ref:r,style:p.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...a,...d]),v);return e.collapseTransition&&"vertical"===e.mode?ke(kp,(()=>m)):m}}});const Lp=jn({index:{type:[String,null],default:null},route:{type:[String,Object]},disabled:Boolean}),$p="ElMenuItem";var Ap=_r(T({name:$p,components:{ElTooltip:hs},props:Lp,emits:{click:e=>C(e.index)&&Array.isArray(e.indexPath)},setup(e,{emit:t}){const n=g(),o=z("rootMenu"),l=So("menu"),a=So("menu-item");o||nn($p,"can not inject root menu");const{parentMenu:r,indexPath:i}=Cp(n,Y(e,"index")),s=z(`subMenu:${r.value.uid}`);s||nn($p,"can not inject sub menu");const u=k((()=>e.index===o.activeIndex)),c=ue({index:e.index,indexPath:i,active:u});return b((()=>{s.addSubMenu(c),o.addMenuItem(c)})),F((()=>{s.removeSubMenu(c),o.removeMenuItem(c)})),{parentMenu:r,rootMenu:o,active:u,nsMenu:l,nsMenuItem:a,handleClick:()=>{e.disabled||(o.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",c))}}}}),[["render",function(e,t,n,o,l,a){const r=Ee("el-tooltip");return B(),O("li",{class:K([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},["ElMenu"===e.parentMenu.type.name&&e.rootMenu.props.collapse&&e.$slots.title?(B(),ee(r,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:te((()=>[W(e.$slots,"title")])),default:te((()=>[M("div",{class:K(e.nsMenu.be("tooltip","trigger"))},[W(e.$slots,"default")],2)])),_:3},8,["effect"])):(B(),O(Q,{key:1},[W(e.$slots,"default"),W(e.$slots,"title")],64))],2)}],["__file","menu-item.vue"]]);var Vp=_r(T({name:"ElMenuItemGroup",props:{title:String},setup:()=>({ns:So("menu-item-group")})}),[["render",function(e,t,n,o,l,a){return B(),O("li",{class:K(e.ns.b())},[M("div",{class:K(e.ns.e("title"))},[e.$slots.title?W(e.$slots,"title",{key:1}):(B(),O(Q,{key:0},[ye(ae(e.title),1)],64))],2),M("ul",null,[W(e.$slots,"default")])],2)}],["__file","menu-item-group.vue"]]);const Np=Gn(Rp,{MenuItem:Ap,MenuItemGroup:Vp,SubMenu:Op}),Fp=Xn(Ap);Xn(Vp),Xn(Op);const zp=Symbol("ElSelectGroup"),Pp=Symbol("ElSelect");const Dp=T({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=So("select"),n=Ql(),o=k((()=>[t.be("dropdown","item"),t.is("disabled",p(i)),t.is("selected",p(r)),t.is("hovering",p(f))])),l=ue({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:a,itemSelected:r,isDisabled:i,select:s,hoverItem:u,updateOption:c}=function(e,t){const n=z(Pp),o=z(zp,{disabled:!1}),l=k((()=>n.props.multiple?c(n.props.modelValue,e.value):c([n.props.modelValue],e.value))),a=k((()=>{if(n.props.multiple){const e=n.props.modelValue||[];return!l.value&&e.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1})),r=k((()=>e.label||(_(e.value)?"":e.value))),i=k((()=>e.value||e.label||"")),s=k((()=>e.disabled||t.groupDisabled||a.value)),u=g(),c=(t=[],o)=>{if(_(e.value)){const e=n.props.valueKey;return t&&t.some((t=>ge(je(t,e))===je(o,e)))}return t&&t.includes(o)};return S((()=>r.value),(()=>{e.created||n.props.remote||n.setSelected()})),S((()=>e.value),((t,o)=>{const{remote:l,valueKey:a}=n.props;if(Ue(t,o)||(n.onOptionDestroy(o,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!l){if(a&&_(t)&&_(o)&&t[a]===o[a])return;n.setSelected()}})),S((()=>o.disabled),(()=>{t.groupDisabled=o.disabled}),{immediate:!0}),{select:n,currentLabel:r,currentValue:i,itemSelected:l,isDisabled:s,hoverItem:()=>{e.disabled||o.disabled||(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},updateOption:n=>{const o=new RegExp(((e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"))(n),"i");t.visible=o.test(r.value)||e.created}}}(e,l),{visible:d,hover:f}=we(l),v=g().proxy;return s.onOptionCreate(v),F((()=>{const e=v.value,{selected:t}=s.states,n=(s.props.multiple?t:[t]).some((e=>e.value===v.value));y((()=>{s.states.cachedOptions.get(e)!==v||n||s.states.cachedOptions.delete(e)})),s.onOptionDestroy(e,v)})),{ns:t,id:n,containerKls:o,currentLabel:a,itemSelected:r,isDisabled:i,select:s,hoverItem:u,updateOption:c,visible:d,hover:f,selectOptionClick:function(){!0!==e.disabled&&!0!==l.groupDisabled&&s.handleOptionSelect(v)},states:l}}}),Hp=["id","aria-disabled","aria-selected"];var jp=_r(Dp,[["render",function(e,t,n,o,l,a){return re((B(),O("li",{id:e.id,class:K(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...t)=>e.hoverItem&&e.hoverItem(...t)),onClick:t[1]||(t[1]=le(((...t)=>e.selectOptionClick&&e.selectOptionClick(...t)),["stop"]))},[W(e.$slots,"default",{},(()=>[M("span",null,ae(e.currentLabel),1)]))],42,Hp)),[[ie,e.visible]])}],["__file","option.vue"]]);var Wp=_r(T({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=z(Pp),t=So("select"),n=k((()=>e.props.popperClass)),o=k((()=>e.props.multiple)),l=k((()=>e.props.fitInputWidth)),a=m("");function r(){var t;a.value=`${null==(t=e.selectRef)?void 0:t.offsetWidth}px`}return b((()=>{r(),$t(e.selectRef,r)})),{ns:t,minWidth:a,popperClass:n,isMultiple:o,isFitInputWidth:l}}}),[["render",function(e,t,n,o,l,a){return B(),O("div",{class:K([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:U({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(B(),O("div",{key:0,class:K(e.ns.be("dropdown","header"))},[W(e.$slots,"header")],2)):J("v-if",!0),W(e.$slots,"default"),e.$slots.footer?(B(),O("div",{key:1,class:K(e.ns.be("dropdown","footer"))},[W(e.$slots,"footer")],2)):J("v-if",!0)],6)}],["__file","select-dropdown.vue"]]);const Kp=(e,t)=>{const{t:n}=go(),o=Ql(),l=So("select"),a=So("input"),r=ue({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),i=m(null),s=m(null),u=m(null),c=m(null),d=m(null),p=m(null),f=m(null),v=m(null),h=m(null),g=m(null),w=m(null),C=m(null),{wrapperRef:E,isFocused:I,handleFocus:T,handleBlur:B}=yr(d,{afterFocus(){e.automaticDropdown&&!O.value&&(O.value=!0,r.menuVisibleOnFocus=!0)},beforeBlur(e){var t,n;return(null==(t=u.value)?void 0:t.isFocusInsideContent(e))||(null==(n=c.value)?void 0:n.isFocusInsideContent(e))},afterBlur(){O.value=!1,r.menuVisibleOnFocus=!1}}),O=m(!1),M=m(),{form:R,formItem:L}=Hr(),{inputId:$}=jr(e,{formItemContext:L}),N=k((()=>e.disabled||(null==R?void 0:R.disabled))),F=k((()=>Y.value.some((e=>""===e.value)))),z=k((()=>e.multiple?V(e.modelValue)&&e.modelValue.length>0:!De(e.modelValue)&&(""!==e.modelValue||F.value))),P=k((()=>e.clearable&&!N.value&&r.inputHovering&&z.value)),D=k((()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon)),H=k((()=>l.is("reverse",D.value&&O.value))),j=k((()=>(null==L?void 0:L.validateState)||"")),W=k((()=>Yn[j.value])),K=k((()=>e.remote?300:0)),U=k((()=>e.loading?e.loadingText||n("el.select.loading"):!(e.remote&&!r.inputValue&&0===r.options.size)&&(e.filterable&&r.inputValue&&r.options.size>0&&0===q.value?e.noMatchText||n("el.select.noMatch"):0===r.options.size?e.noDataText||n("el.select.noData"):null))),q=k((()=>Y.value.filter((e=>e.visible)).length)),Y=k((()=>{const e=Array.from(r.options.values()),t=[];return r.optionValues.forEach((n=>{const o=e.findIndex((e=>e.value===n));o>-1&&t.push(e[o])})),t.length>=e.length?t:e})),G=k((()=>Array.from(r.cachedOptions.values()))),X=k((()=>{const t=Y.value.filter((e=>!e.created)).some((e=>e.currentLabel===r.inputValue));return e.filterable&&e.allowCreate&&""!==r.inputValue&&!t})),Z=()=>{e.filterable&&A(e.filterMethod)||e.filterable&&e.remote&&A(e.remoteMethod)||Y.value.forEach((e=>{e.updateOption(r.inputValue)}))},J=Pr(),Q=k((()=>["small"].includes(J.value)?"small":"default")),ee=k({get:()=>O.value&&!1!==U.value,set(e){O.value=e}}),te=k((()=>V(e.modelValue)?0===e.modelValue.length&&!r.inputValue:!e.filterable||!r.inputValue)),ne=k((()=>{var t;const o=null!=(t=e.placeholder)?t:n("el.select.placeholder");return e.multiple||!z.value?o:r.selectedLabel}));S((()=>e.modelValue),((t,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(r.inputValue="",oe("")),ae(),!Ue(t,n)&&e.validateEvent&&(null==L||L.validate("change").catch((e=>{})))}),{flush:"post",deep:!0}),S((()=>O.value),(e=>{e?oe(r.inputValue):(r.inputValue="",r.previousQuery=null,r.isBeforeHide=!0),t("visible-change",e)})),S((()=>r.options.entries()),(()=>{var t;if(!ft)return;const n=(null==(t=i.value)?void 0:t.querySelectorAll("input"))||[];(e.filterable||e.defaultFirstOption||Yt(e.modelValue))&&Array.from(n).includes(document.activeElement)||ae(),e.defaultFirstOption&&(e.filterable||e.remote)&&q.value&&le()}),{flush:"post"}),S((()=>r.hoveringIndex),(e=>{Xt(e)&&e>-1?M.value=Y.value[e]||{}:M.value={},Y.value.forEach((e=>{e.hover=M.value===e}))})),x((()=>{r.isBeforeHide||Z()}));const oe=t=>{r.previousQuery!==t&&(r.previousQuery=t,e.filterable&&A(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&A(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&q.value?y(le):y(ie))},le=()=>{const e=Y.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),t=e.find((e=>e.created)),n=e[0];r.hoveringIndex=ye(Y.value,t||n)},ae=()=>{if(!e.multiple){const t=re(e.modelValue);return r.selectedLabel=t.currentLabel,void(r.selected=t)}r.selectedLabel="";const t=[];V(e.modelValue)&&e.modelValue.forEach((e=>{t.push(re(e))})),r.selected=t},re=t=>{let n;const o="object"===_e(t).toLowerCase(),l="null"===_e(t).toLowerCase(),a="undefined"===_e(t).toLowerCase();for(let i=r.cachedOptions.size-1;i>=0;i--){const l=G.value[i];if(o?je(l.value,e.valueKey)===je(t,e.valueKey):l.value===t){n={value:t,currentLabel:l.currentLabel,isDisabled:l.isDisabled};break}}if(n)return n;return{value:t,currentLabel:o?t.label:l||a?"":t}},ie=()=>{e.multiple?r.hoveringIndex=Y.value.findIndex((e=>r.selected.some((t=>Be(t)===Be(e))))):r.hoveringIndex=Y.value.findIndex((e=>Be(e)===Be(r.selected)))},se=()=>{r.calculatorWidth=p.value.getBoundingClientRect().width},ce=()=>{var e,t;null==(t=null==(e=u.value)?void 0:e.updatePopper)||t.call(e)},de=()=>{var e,t;null==(t=null==(e=c.value)?void 0:e.updatePopper)||t.call(e)},pe=()=>{r.inputValue.length>0&&!O.value&&(O.value=!0),oe(r.inputValue)},fe=t=>{if(r.inputValue=t.target.value,!e.remote)return pe();ve()},ve=Ge((()=>{pe()}),K.value),me=n=>{Ue(e.modelValue,n)||t(eo,n)},he=n=>{n.stopPropagation();const o=e.multiple?[]:void 0;if(e.multiple)for(const e of r.selected)e.isDisabled&&o.push(e.value);t(Qn,o),me(o),r.hoveringIndex=-1,O.value=!1,t("clear"),Ee()},be=n=>{if(e.multiple){const o=(e.modelValue||[]).slice(),l=ye(o,n.value);l>-1?o.splice(l,1):(e.multipleLimit<=0||o.length{we(n)}))},ye=(t=[],n)=>{if(!_(n))return t.indexOf(n);const o=e.valueKey;let l=-1;return t.some(((e,t)=>ge(je(e,o))===je(n,o)&&(l=t,!0))),l},we=e=>{var t,n,o,a,r;const i=V(e)?e[0]:e;let s=null;if(null==i?void 0:i.value){const e=Y.value.filter((e=>e.value===i.value));e.length>0&&(s=e[0].$el)}if(u.value&&s){const e=null==(a=null==(o=null==(n=null==(t=u.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:o.querySelector)?void 0:a.call(o,`.${l.be("dropdown","wrap")}`);e&&function(e,t){if(!ft)return;if(!t)return void(e.scrollTop=0);const n=[];let o=t.offsetParent;for(;null!==o&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const l=t.offsetTop+n.reduce(((e,t)=>e+t.offsetTop),0),a=l+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;li&&(e.scrollTop=a-e.clientHeight)}(e,s)}null==(r=C.value)||r.handleScroll()},{handleCompositionStart:xe,handleCompositionUpdate:Se,handleCompositionEnd:ke}=function(e){const t=m(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:e=>{const n=e.target.value,o=n[n.length-1]||"";t.value=!ro(o)},handleCompositionEnd:n=>{t.value&&(t.value=!1,A(e)&&e(n))}}}((e=>fe(e))),Ce=k((()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.popperRef)?void 0:t.contentRef})),Ee=()=>{var e;null==(e=d.value)||e.focus()},Ie=e=>{if(O.value=!1,I.value){const t=new FocusEvent("focus",e);y((()=>B(t)))}},Te=()=>{N.value||(r.menuVisibleOnFocus?r.menuVisibleOnFocus=!1:O.value=!O.value)},Be=t=>_(t.value)?je(t.value,e.valueKey):t.value,Oe=k((()=>Y.value.filter((e=>e.visible)).every((e=>e.disabled)))),Me=k((()=>e.multiple?e.collapseTags?r.selected.slice(0,e.maxCollapseTags):r.selected:[])),Re=k((()=>e.multiple&&e.collapseTags?r.selected.slice(e.maxCollapseTags):[])),Le=e=>{if(O.value){if(0!==r.options.size&&0!==q.value&&!Oe.value){"next"===e?(r.hoveringIndex++,r.hoveringIndex===r.options.size&&(r.hoveringIndex=0)):"prev"===e&&(r.hoveringIndex--,r.hoveringIndex<0&&(r.hoveringIndex=r.options.size-1));const t=Y.value[r.hoveringIndex];!0!==t.disabled&&!0!==t.states.groupDisabled&&t.visible||Le(e),y((()=>we(M.value)))}}else O.value=!0},$e=k((()=>{const t=(()=>{if(!s.value)return 0;const e=window.getComputedStyle(s.value);return Number.parseFloat(e.gap||"6px")})();return{maxWidth:`${w.value&&1===e.maxCollapseTags?r.selectionWidth-r.collapseItemWidth-t:r.selectionWidth}px`}})),Ae=k((()=>({maxWidth:`${r.selectionWidth}px`}))),Ve=k((()=>({width:`${Math.max(r.calculatorWidth,11)}px`})));return e.multiple&&!V(e.modelValue)&&t(Qn,[]),!e.multiple&&V(e.modelValue)&&t(Qn,""),$t(s,(()=>{r.selectionWidth=s.value.getBoundingClientRect().width})),$t(p,se),$t(h,ce),$t(E,ce),$t(g,de),$t(w,(()=>{r.collapseItemWidth=w.value.getBoundingClientRect().width})),b((()=>{ae()})),{inputId:$,contentId:o,nsSelect:l,nsInput:a,states:r,isFocused:I,expanded:O,optionsArray:Y,hoverOption:M,selectSize:J,filteredOptionsCount:q,resetCalculatorWidth:se,updateTooltip:ce,updateTagTooltip:de,debouncedOnInputChange:ve,onInput:fe,deletePrevTag:n=>{if(e.multiple&&n.code!==Jn.delete&&n.target.value.length<=0){const n=e.modelValue.slice(),o=(e=>Xe(e,(e=>!r.disabledOptions.has(e))))(n);if(o<0)return;n.splice(o,1),t(Qn,n),me(n)}},deleteTag:(n,o)=>{const l=r.selected.indexOf(o);if(l>-1&&!N.value){const n=e.modelValue.slice();n.splice(l,1),t(Qn,n),me(n),t("remove-tag",o.value)}n.stopPropagation(),Ee()},deleteSelected:he,handleOptionSelect:be,scrollToOption:we,hasModelValue:z,shouldShowPlaceholder:te,currentPlaceholder:ne,showClose:P,iconComponent:D,iconReverse:H,validateState:j,validateIcon:W,showNewOption:X,updateOptions:Z,collapseTagSize:Q,setSelected:ae,selectDisabled:N,emptyText:U,handleCompositionStart:xe,handleCompositionUpdate:Se,handleCompositionEnd:ke,onOptionCreate:e=>{r.options.set(e.value,e),r.cachedOptions.set(e.value,e),e.disabled&&r.disabledOptions.set(e.value,e)},onOptionDestroy:(e,t)=>{r.options.get(e)===t&&r.options.delete(e)},handleMenuEnter:()=>{y((()=>we(r.selected)))},handleFocus:T,focus:Ee,blur:()=>{Ie()},handleBlur:B,handleClearClick:e=>{he(e)},handleClickOutside:Ie,handleEsc:()=>{r.inputValue.length>0?r.inputValue="":O.value=!1},toggleMenu:Te,selectOption:()=>{O.value?Y.value[r.hoveringIndex]&&be(Y.value[r.hoveringIndex]):Te()},getValueKey:Be,navigateOptions:Le,dropdownMenuVisible:ee,showTagList:Me,collapseTagList:Re,tagStyle:$e,collapseTagStyle:Ae,inputStyle:Ve,popperRef:Ce,inputRef:d,tooltipRef:u,tagTooltipRef:c,calculatorRef:p,prefixRef:f,suffixRef:v,selectRef:i,wrapperRef:E,selectionRef:s,scrollbarRef:C,menuRef:h,tagMenuRef:g,collapseItemRef:w}};var Up=T({name:"ElOptions",setup(e,{slots:t}){const n=z(Pp);let o=[];return()=>{var e,l;const a=null==(e=t.default)?void 0:e.call(t),r=[];return a.length&&function e(t){V(t)&&t.forEach((t=>{var n,o,l,a;const i=null==(n=(null==t?void 0:t.type)||{})?void 0:n.name;"ElOptionGroup"===i?e(C(t.children)||V(t.children)||!A(null==(o=t.children)?void 0:o.default)?t.children:null==(l=t.children)?void 0:l.default()):"ElOption"===i?r.push(null==(a=t.props)?void 0:a.value):V(t.children)&&e(t.children)}))}(null==(l=a[0])?void 0:l.children),Ue(r,o)||(o=r,n&&(n.states.optionValues=r)),a}}});const qp=jn({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:gr,effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:ts.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Wn,default:wn},fitInputWidth:Boolean,suffixIcon:{type:Wn,default:fn},tagType:u(s({},vc.type),{default:"info"}),validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:String,values:Do,default:"bottom-start"},fallbackPlacements:{type:Array,default:["bottom-start","top-start","right","left"]},ariaLabel:{type:String,default:void 0}}),Yp="ElSelect",Gp=T({name:Yp,componentName:Yp,components:{ElInput:ei,ElSelectMenu:Wp,ElOption:jp,ElOptions:Up,ElTag:gc,ElScrollbar:ci,ElTooltip:hs,ElIcon:Nr},directives:{ClickOutside:eu},props:qp,emits:[Qn,eo,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=Kp(e,t);return j(Pp,ue({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),s({},n)}}),Xp=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],Zp=["textContent"];var Jp=_r(Gp,[["render",function(e,t,n,o,l,a){const r=Ee("el-tag"),i=Ee("el-tooltip"),s=Ee("el-icon"),u=Ee("el-option"),c=Ee("el-options"),d=Ee("el-scrollbar"),p=Ee("el-select-menu"),f=Re("click-outside");return re((B(),O("div",{ref:"selectRef",class:K([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=t=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=t=>e.states.inputHovering=!1),onClick:t[16]||(t[16]=le(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},[oe(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=t=>e.states.isBeforeHide=!1)},{default:te((()=>{var n;return[M("div",{ref:"wrapperRef",class:K([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(B(),O("div",{key:0,ref:"prefixRef",class:K(e.nsSelect.e("prefix"))},[W(e.$slots,"prefix")],2)):J("v-if",!0),M("div",{ref:"selectionRef",class:K([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?W(e.$slots,"tag",{key:0},(()=>[(B(!0),O(Q,null,he(e.showTagList,(t=>(B(),O("div",{key:e.getValueKey(t),class:K(e.nsSelect.e("selected-item"))},[oe(r,{closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:U(e.tagStyle),onClose:n=>e.deleteTag(n,t)},{default:te((()=>[M("span",{class:K(e.nsSelect.e("tags-text"))},ae(t.currentLabel),3)])),_:2},1032,["closable","size","type","style","onClose"])],2)))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(B(),ee(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:te((()=>[M("div",{ref:"collapseItemRef",class:K(e.nsSelect.e("selected-item"))},[oe(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:U(e.collapseTagStyle)},{default:te((()=>[M("span",{class:K(e.nsSelect.e("tags-text"))}," + "+ae(e.states.selected.length-e.maxCollapseTags),3)])),_:1},8,["size","type","style"])],2)])),content:te((()=>[M("div",{ref:"tagMenuRef",class:K(e.nsSelect.e("selection"))},[(B(!0),O(Q,null,he(e.collapseTagList,(t=>(B(),O("div",{key:e.getValueKey(t),class:K(e.nsSelect.e("selected-item"))},[oe(r,{class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:te((()=>[M("span",{class:K(e.nsSelect.e("tags-text"))},ae(t.currentLabel),3)])),_:2},1032,["closable","size","type","onClose"])],2)))),128))],2)])),_:1},8,["disabled","effect","teleported"])):J("v-if",!0)])):J("v-if",!0),e.selectDisabled?J("v-if",!0):(B(),O("div",{key:1,class:K([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[re(M("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=t=>e.states.inputValue=t),type:"text",class:K([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:U(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":(null==(n=e.hoverOption)?void 0:n.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...t)=>e.handleFocus&&e.handleFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.handleBlur&&e.handleBlur(...t)),onKeydown:[t[3]||(t[3]=Me(le((t=>e.navigateOptions("next")),["stop","prevent"]),["down"])),t[4]||(t[4]=Me(le((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"])),t[5]||(t[5]=Me(le(((...t)=>e.handleEsc&&e.handleEsc(...t)),["stop","prevent"]),["esc"])),t[6]||(t[6]=Me(le(((...t)=>e.selectOption&&e.selectOption(...t)),["stop","prevent"]),["enter"])),t[7]||(t[7]=Me(le(((...t)=>e.deletePrevTag&&e.deletePrevTag(...t)),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...t)=>e.handleCompositionStart&&e.handleCompositionStart(...t)),onCompositionupdate:t[9]||(t[9]=(...t)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...t)),onCompositionend:t[10]||(t[10]=(...t)=>e.handleCompositionEnd&&e.handleCompositionEnd(...t)),onInput:t[11]||(t[11]=(...t)=>e.onInput&&e.onInput(...t)),onClick:t[12]||(t[12]=le(((...t)=>e.toggleMenu&&e.toggleMenu(...t)),["stop"]))},null,46,Xp),[[Le,e.states.inputValue]]),e.filterable?(B(),O("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:K(e.nsSelect.e("input-calculator")),textContent:ae(e.states.inputValue)},null,10,Zp)):J("v-if",!0)],2)),e.shouldShowPlaceholder?(B(),O("div",{key:2,class:K([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[M("span",null,ae(e.currentPlaceholder),1)],2)):J("v-if",!0)],2),M("div",{ref:"suffixRef",class:K(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(B(),ee(s,{key:0,class:K([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:te((()=>[(B(),ee(ne(e.iconComponent)))])),_:1},8,["class"])):J("v-if",!0),e.showClose&&e.clearIcon?(B(),ee(s,{key:1,class:K([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:te((()=>[(B(),ee(ne(e.clearIcon)))])),_:1},8,["class","onClick"])):J("v-if",!0),e.validateState&&e.validateIcon?(B(),ee(s,{key:2,class:K([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:te((()=>[(B(),ee(ne(e.validateIcon)))])),_:1},8,["class"])):J("v-if",!0)],2)],2)]})),content:te((()=>[oe(p,{ref:"menuRef"},{default:te((()=>[e.$slots.header?(B(),O("div",{key:0,class:K(e.nsSelect.be("dropdown","header"))},[W(e.$slots,"header")],2)):J("v-if",!0),re(oe(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:K([e.nsSelect.is("empty",0===e.filteredOptionsCount)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:te((()=>[e.showNewOption?(B(),ee(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):J("v-if",!0),oe(c,null,{default:te((()=>[W(e.$slots,"default")])),_:3})])),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[ie,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(B(),O("div",{key:1,class:K(e.nsSelect.be("dropdown","loading"))},[W(e.$slots,"loading")],2)):e.loading||0===e.filteredOptionsCount?(B(),O("div",{key:2,class:K(e.nsSelect.be("dropdown","empty"))},[W(e.$slots,"empty",{},(()=>[M("span",null,ae(e.emptyText),1)]))],2)):J("v-if",!0),e.$slots.footer?(B(),O("div",{key:3,class:K(e.nsSelect.be("dropdown","footer"))},[W(e.$slots,"footer")],2)):J("v-if",!0)])),_:3},512)])),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}],["__file","select.vue"]]);var Qp=_r(T({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=So("select"),n=m(null),o=g(),l=m([]);j(zp,ue(s({},we(e))));const a=k((()=>l.value.some((e=>!0===e.visible)))),r=e=>{const t=[];return V(e.children)&&e.children.forEach((e=>{var n,o;e.type&&"ElOption"===e.type.name&&e.component&&e.component.proxy?t.push(e.component.proxy):(null==(n=e.children)?void 0:n.length)?t.push(...r(e)):(null==(o=e.component)?void 0:o.subTree)&&t.push(...r(e.component.subTree))})),t},i=()=>{l.value=r(o.subTree)};return b((()=>{i()})),Dt(n,i,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:a,ns:t}}}),[["render",function(e,t,n,o,l,a){return re((B(),O("ul",{ref:"groupRef",class:K(e.ns.be("group","wrap"))},[M("li",{class:K(e.ns.be("group","title"))},ae(e.label),3),M("li",null,[M("ul",{class:K(e.ns.b("group"))},[W(e.$slots,"default")],2)])],2)),[[ie,e.visible]])}],["__file","option-group.vue"]]);const ef=Gn(Jp,{Option:jp,OptionGroup:Qp}),tf=Xn(jp),nf=Xn(Qp),of=jn({trigger:ns.trigger,placement:$d.placement,disabled:ns.disabled,visible:ts.visible,transition:ts.transition,popperOptions:$d.popperOptions,tabindex:$d.tabindex,content:ts.content,popperStyle:ts.popperStyle,popperClass:ts.popperClass,enterable:u(s({},ts.enterable),{default:!0}),effect:u(s({},ts.effect),{default:"light"}),teleported:ts.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),lf={"update:visible":e=>Gt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},af=T({name:"ElPopover"}),rf=T(u(s({},af),{props:of,emits:lf,setup(e,{expose:t,emit:n}){const o=e,l=k((()=>o["onUpdate:visible"])),a=So("popover"),r=m(),i=k((()=>{var e;return null==(e=p(r))?void 0:e.popperRef})),s=k((()=>[{width:un(o.width)},o.popperStyle])),u=k((()=>[a.b(),o.popperClass,{[a.m("plain")]:!!o.content}])),c=k((()=>o.transition===`${a.namespace.value}-fade-in-linear`)),d=()=>{n("before-enter")},f=()=>{n("before-leave")},v=()=>{n("after-enter")},h=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:i,hide:()=>{var e;null==(e=r.value)||e.hide()}}),(e,t)=>(B(),ee(p(hs),q({ref_key:"tooltipRef",ref:r},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(u),"popper-style":p(s),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":p(c),"onUpdate:visible":p(l),onBeforeShow:d,onBeforeHide:f,onShow:v,onHide:h}),{content:te((()=>[e.title?(B(),O("div",{key:0,class:K(p(a).e("title")),role:"title"},ae(e.title),3)):J("v-if",!0),W(e.$slots,"default",{},(()=>[ye(ae(e.content),1)]))])),default:te((()=>[e.$slots.reference?W(e.$slots,"reference",{key:0}):J("v-if",!0)])),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}}));const sf=(e,t)=>{const n=t.arg||t.value,o=null==n?void 0:n.popperRef;o&&(o.triggerRef=e)};var uf,cf;const df=Gn(_r(rf,[["__file","popover.vue"]]),{directive:(cf="popover",(uf={mounted(e,t){sf(e,t)},updated(e,t){sf(e,t)}}).install=e=>{e.directive(cf,uf)},uf)}),pf=jn({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Function,default:e=>`${e}%`}}),ff=["aria-valuenow"],vf={viewBox:"0 0 100 100"},mf=["d","stroke","stroke-linecap","stroke-width"],hf=["d","stroke","opacity","stroke-linecap","stroke-width"],gf={key:0},bf=T({name:"ElProgress"});const yf=Gn(_r(T(u(s({},bf),{props:pf,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=So("progress"),l=k((()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:b(t.percentage)}))),a=k((()=>(t.strokeWidth/t.width*100).toFixed(1))),r=k((()=>["circle","dashboard"].includes(t.type)?Number.parseInt(""+(50-Number.parseFloat(a.value)/2),10):0)),i=k((()=>{const e=r.value,n="dashboard"===t.type;return`\n M 50 50\n m 0 ${n?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${n?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${n?"":"-"}${2*e}\n `})),s=k((()=>2*Math.PI*r.value)),u=k((()=>"dashboard"===t.type?.75:1)),c=k((()=>`${-1*s.value*(1-u.value)/2}px`)),d=k((()=>({strokeDasharray:`${s.value*u.value}px, ${s.value}px`,strokeDashoffset:c.value}))),f=k((()=>({strokeDasharray:`${s.value*u.value*(t.percentage/100)}px, ${s.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"}))),v=k((()=>{let e;return e=t.color?b(t.percentage):n[t.status]||n.default,e})),m=k((()=>"warning"===t.status?Fn:"line"===t.type?"success"===t.status?bn:wn:"success"===t.status?gn:xn)),h=k((()=>"line"===t.type?12+.4*t.strokeWidth:.111111*t.width+2)),g=k((()=>t.format(t.percentage)));const b=e=>{var n;const{color:o}=t;if(A(o))return o(e);if(C(o))return o;{const t=function(e){const t=100/e.length;return e.map(((e,n)=>C(e)?{color:e,percentage:(n+1)*t}:e)).sort(((e,t)=>e.percentage-t.percentage))}(o);for(const n of t)if(n.percentage>e)return n.color;return null==(n=t[t.length-1])?void 0:n.color}};return(e,t)=>(B(),O("div",{class:K([p(o).b(),p(o).m(e.type),p(o).is(e.status),{[p(o).m("without-text")]:!e.showText,[p(o).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===e.type?(B(),O("div",{key:0,class:K(p(o).b("bar"))},[M("div",{class:K(p(o).be("bar","outer")),style:U({height:`${e.strokeWidth}px`})},[M("div",{class:K([p(o).be("bar","inner"),{[p(o).bem("bar","inner","indeterminate")]:e.indeterminate},{[p(o).bem("bar","inner","striped")]:e.striped},{[p(o).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:U(p(l))},[(e.showText||e.$slots.default)&&e.textInside?(B(),O("div",{key:0,class:K(p(o).be("bar","innerText"))},[W(e.$slots,"default",{percentage:e.percentage},(()=>[M("span",null,ae(p(g)),1)]))],2)):J("v-if",!0)],6)],6)],2)):(B(),O("div",{key:1,class:K(p(o).b("circle")),style:U({height:`${e.width}px`,width:`${e.width}px`})},[(B(),O("svg",vf,[M("path",{class:K(p(o).be("circle","track")),d:p(i),stroke:`var(${p(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":p(a),fill:"none",style:U(p(d))},null,14,mf),M("path",{class:K(p(o).be("circle","path")),d:p(i),stroke:p(v),fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":p(a),style:U(p(f))},null,14,hf)]))],6)),!e.showText&&!e.$slots.default||e.textInside?J("v-if",!0):(B(),O("div",{key:2,class:K(p(o).e("text")),style:U({fontSize:`${p(h)}px`})},[W(e.$slots,"default",{percentage:e.percentage},(()=>[e.status?(B(),ee(p(Nr),{key:1},{default:te((()=>[(B(),ee(ne(p(m))))])),_:1})):(B(),O("span",gf,ae(p(g)),1))]))],6))],10,ff))}})),[["__file","progress.vue"]])),wf=Symbol("sliderContextKey"),xf=jn({modelValue:{type:[Number,Array],default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:gr,inputSize:gr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Function,default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Function,default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Do,default:"top"},marks:{type:Object},validateEvent:{type:Boolean,default:!0}}),Sf=e=>Xt(e)||V(e)&&e.every(Xt),kf={[Qn]:Sf,[to]:Sf,[eo]:Sf},Cf=(e,t,n)=>{const{form:o,formItem:l}=Hr(),a=w(),r=m(),i=m(),s={firstButton:r,secondButton:i},u=k((()=>e.disabled||(null==o?void 0:o.disabled)||!1)),c=k((()=>Math.min(t.firstValue,t.secondValue))),p=k((()=>Math.max(t.firstValue,t.secondValue))),f=k((()=>e.range?100*(p.value-c.value)/(e.max-e.min)+"%":100*(t.firstValue-e.min)/(e.max-e.min)+"%")),v=k((()=>e.range?100*(c.value-e.min)/(e.max-e.min)+"%":"0%")),h=k((()=>e.vertical?{height:e.height}:{})),g=k((()=>e.vertical?{height:f.value,bottom:v.value}:{width:f.value,left:v.value})),b=()=>{a.value&&(t.sliderSize=a.value["client"+(e.vertical?"Height":"Width")])},x=n=>{const o=(n=>{const o=e.min+n*(e.max-e.min)/100;if(!e.range)return r;let l;return l=Math.abs(c.value-o)t.secondValue?"firstButton":"secondButton",s[l]})(n);return o.value.setPosition(n),o},S=e=>{n(Qn,e),n(to,e)},C=()=>d(void 0,null,(function*(){yield y(),n(eo,e.range?[c.value,p.value]:e.modelValue)})),E=n=>{var o,l,r,i,s,c;if(u.value||t.dragging)return;b();let d=0;if(e.vertical){const e=null!=(r=null==(l=null==(o=n.touches)?void 0:o.item(0))?void 0:l.clientY)?r:n.clientY;d=(a.value.getBoundingClientRect().bottom-e)/t.sliderSize*100}else{d=((null!=(c=null==(s=null==(i=n.touches)?void 0:i.item(0))?void 0:s.clientX)?c:n.clientX)-a.value.getBoundingClientRect().left)/t.sliderSize*100}return d<0||d>100?void 0:x(d)};return{elFormItem:l,slider:a,firstButton:r,secondButton:i,sliderDisabled:u,minValue:c,maxValue:p,runwayStyle:h,barStyle:g,resetSize:b,setPosition:x,emitChange:C,onSliderWrapperPrevent:e=>{var t,n;((null==(t=s.firstButton.value)?void 0:t.dragging)||(null==(n=s.secondButton.value)?void 0:n.dragging))&&e.preventDefault()},onSliderClick:e=>{E(e)&&C()},onSliderDown:e=>d(void 0,null,(function*(){const t=E(e);t&&(yield y(),t.value.onButtonDown(e))})),setFirstValue:n=>{t.firstValue=n,S(e.range?[c.value,p.value]:n)},setSecondValue:n=>{t.secondValue=n,e.range&&S([c.value,p.value])}}},{left:Ef,down:If,right:Tf,up:Bf,home:Of,end:Mf,pageUp:_f,pageDown:Rf}=Jn,Lf=(e,t,n)=>{const{disabled:o,min:l,max:a,step:r,showTooltip:i,precision:s,sliderSize:u,formatTooltip:c,emitChange:p,resetSize:f,updateDragging:v}=z(wf),{tooltip:h,tooltipVisible:g,formatValue:b,displayTooltip:w,hideTooltip:x}=((e,t,n)=>{const o=m(),l=m(!1),a=k((()=>t.value instanceof Function)),r=k((()=>a.value&&t.value(e.modelValue)||e.modelValue)),i=Ge((()=>{n.value&&(l.value=!0)}),50),s=Ge((()=>{n.value&&(l.value=!1)}),50);return{tooltip:o,tooltipVisible:l,formatValue:r,displayTooltip:i,hideTooltip:s}})(e,c,i),C=m(),E=k((()=>(e.modelValue-l.value)/(a.value-l.value)*100+"%")),I=k((()=>e.vertical?{bottom:E.value}:{left:E.value})),T=e=>{o.value||(t.newPosition=Number.parseFloat(E.value)+e/(a.value-l.value)*100,R(t.newPosition),p())},B=e=>{let t,n;return e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},O=n=>{t.dragging=!0,t.isClick=!0;const{clientX:o,clientY:l}=B(n);e.vertical?t.startY=l:t.startX=o,t.startPosition=Number.parseFloat(E.value),t.newPosition=t.startPosition},M=n=>{if(t.dragging){let o;t.isClick=!1,w(),f();const{clientX:l,clientY:a}=B(n);e.vertical?(t.currentY=a,o=(t.startY-t.currentY)/u.value*100):(t.currentX=l,o=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+o,R(t.newPosition)}},_=()=>{t.dragging&&(setTimeout((()=>{t.dragging=!1,t.hovering||x(),t.isClick||R(t.newPosition),p()}),0),window.removeEventListener("mousemove",M),window.removeEventListener("touchmove",M),window.removeEventListener("mouseup",_),window.removeEventListener("touchend",_),window.removeEventListener("contextmenu",_))},R=o=>d(void 0,null,(function*(){if(null===o||Number.isNaN(+o))return;o<0?o=0:o>100&&(o=100);const i=100/((a.value-l.value)/r.value);let u=Math.round(o/i)*i*(a.value-l.value)*.01+l.value;u=Number.parseFloat(u.toFixed(s.value)),u!==e.modelValue&&n(Qn,u),t.dragging||e.modelValue===t.oldValue||(t.oldValue=e.modelValue),yield y(),t.dragging&&w(),h.value.updatePopper()}));return S((()=>t.dragging),(e=>{v(e)})),{disabled:o,button:C,tooltip:h,tooltipVisible:g,showTooltip:i,wrapperStyle:I,formatValue:b,handleMouseEnter:()=>{t.hovering=!0,w()},handleMouseLeave:()=>{t.hovering=!1,t.dragging||x()},onButtonDown:e=>{o.value||(e.preventDefault(),O(e),window.addEventListener("mousemove",M),window.addEventListener("touchmove",M),window.addEventListener("mouseup",_),window.addEventListener("touchend",_),window.addEventListener("contextmenu",_),C.value.focus())},onKeyDown:e=>{let t=!0;[Ef,If].includes(e.key)?T(-r.value):[Tf,Bf].includes(e.key)?T(r.value):e.key===Of?o.value||(R(0),p()):e.key===Mf?o.value||(R(100),p()):e.key===Rf?T(4*-r.value):e.key===_f?T(4*r.value):t=!1,t&&e.preventDefault()},setPosition:R}},$f=jn({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Do,default:"top"}}),Af={[Qn]:e=>Xt(e)},Vf=["tabindex"],Nf=T({name:"ElSliderButton"});var Ff=_r(T(u(s({},Nf),{props:$f,emits:Af,setup(e,{expose:t,emit:n}){const o=e,l=So("slider"),a=ue({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:o.modelValue}),{disabled:r,button:i,tooltip:s,showTooltip:u,tooltipVisible:c,wrapperStyle:d,formatValue:f,handleMouseEnter:v,handleMouseLeave:m,onButtonDown:h,onKeyDown:g,setPosition:b}=Lf(o,a,n),{hovering:y,dragging:w}=we(a);return t({onButtonDown:h,onKeyDown:g,setPosition:b,hovering:y,dragging:w}),(e,t)=>(B(),O("div",{ref_key:"button",ref:i,class:K([p(l).e("button-wrapper"),{hover:p(y),dragging:p(w)}]),style:U(p(d)),tabindex:p(r)?-1:0,onMouseenter:t[0]||(t[0]=(...e)=>p(v)&&p(v)(...e)),onMouseleave:t[1]||(t[1]=(...e)=>p(m)&&p(m)(...e)),onMousedown:t[2]||(t[2]=(...e)=>p(h)&&p(h)(...e)),onTouchstart:t[3]||(t[3]=(...e)=>p(h)&&p(h)(...e)),onFocus:t[4]||(t[4]=(...e)=>p(v)&&p(v)(...e)),onBlur:t[5]||(t[5]=(...e)=>p(m)&&p(m)(...e)),onKeydown:t[6]||(t[6]=(...e)=>p(g)&&p(g)(...e))},[oe(p(hs),{ref_key:"tooltip",ref:s,visible:p(c),placement:e.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":e.tooltipClass,disabled:!p(u),persistent:""},{content:te((()=>[M("span",null,ae(p(f)),1)])),default:te((()=>[M("div",{class:K([p(l).e("button"),{hover:p(y),dragging:p(w)}])},null,2)])),_:1},8,["visible","placement","popper-class","disabled"])],46,Vf))}})),[["__file","button.vue"]]);const zf=jn({mark:{type:[String,Object],default:void 0}});var Pf=T({name:"ElSliderMarker",props:zf,setup(e){const t=So("slider"),n=k((()=>C(e.mark)?e.mark:e.mark.label)),o=k((()=>C(e.mark)?void 0:e.mark.style));return()=>ke("div",{class:t.e("marks-text"),style:o.value},n.value)}});const Df=["id","role","aria-label","aria-labelledby"],Hf={key:1},jf=T({name:"ElSlider"});const Wf=Gn(_r(T(u(s({},jf),{props:xf,emits:kf,setup(e,{expose:t,emit:n}){const o=e,l=So("slider"),{t:a}=go(),r=ue({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:c,firstButton:f,secondButton:v,sliderDisabled:h,minValue:g,maxValue:w,runwayStyle:x,barStyle:C,resetSize:E,emitChange:I,onSliderWrapperPrevent:T,onSliderClick:_,onSliderDown:R,setFirstValue:L,setSecondValue:$}=Cf(o,r,n),{stops:A,getStopStyle:V}=((e,t,n,o)=>({stops:k((()=>{if(!e.showStops||e.min>e.max)return[];if(0===e.step)return[];const l=(e.max-e.min)/e.step,a=100*e.step/(e.max-e.min),r=Array.from({length:l-1}).map(((e,t)=>(t+1)*a));return e.range?r.filter((t=>t<100*(n.value-e.min)/(e.max-e.min)||t>100*(o.value-e.min)/(e.max-e.min))):r.filter((n=>n>100*(t.firstValue-e.min)/(e.max-e.min)))})),getStopStyle:t=>e.vertical?{bottom:`${t}%`}:{left:`${t}%`}}))(o,r,g,w),{inputId:N,isLabeledByFormItem:F}=jr(o,{formItemContext:i}),z=Pr(),P=k((()=>o.inputSize||z.value)),D=k((()=>o.label||a("el.slider.defaultLabel",{min:o.min,max:o.max}))),H=k((()=>o.range?o.rangeStartLabel||a("el.slider.defaultRangeStartLabel"):D.value)),W=k((()=>o.formatValueText?o.formatValueText(ne.value):`${ne.value}`)),q=k((()=>o.rangeEndLabel||a("el.slider.defaultRangeEndLabel"))),Y=k((()=>o.formatValueText?o.formatValueText(le.value):`${le.value}`)),G=k((()=>[l.b(),l.m(z.value),l.is("vertical",o.vertical),{[l.m("with-input")]:o.showInput}])),X=(e=>k((()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort(((e,t)=>e-t)).filter((t=>t<=e.max&&t>=e.min)).map((t=>({point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}))):[])))(o);((e,t,n,o,l,a)=>{const r=e=>{l(Qn,e),l(to,e)},i=()=>e.range?![n.value,o.value].every(((e,n)=>e===t.oldValue[n])):e.modelValue!==t.oldValue,s=()=>{var n,o;e.min>e.max&&nn("Slider","min should not be greater than max.");const l=e.modelValue;e.range&&Array.isArray(l)?l[1]e.max?r([e.max,e.max]):l[0]e.max?r([l[0],e.max]):(t.firstValue=l[0],t.secondValue=l[1],i()&&(e.validateEvent&&(null==(n=null==a?void 0:a.validate)||n.call(a,"change").catch((e=>{}))),t.oldValue=l.slice())):e.range||"number"!=typeof l||Number.isNaN(l)||(le.max?r(e.max):(t.firstValue=l,i()&&(e.validateEvent&&(null==(o=null==a?void 0:a.validate)||o.call(a,"change").catch((e=>{}))),t.oldValue=l)))};s(),S((()=>t.dragging),(e=>{e||s()})),S((()=>e.modelValue),((e,n)=>{t.dragging||Array.isArray(e)&&Array.isArray(n)&&e.every(((e,t)=>e===n[t]))&&t.firstValue===e[0]&&t.secondValue===e[1]||s()}),{deep:!0}),S((()=>[e.min,e.max]),(()=>{s()}))})(o,r,g,w,n,i);const Z=k((()=>{const e=[o.min,o.max,o.step].map((e=>{const t=`${e}`.split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)})),{sliderWrapper:te}=((e,t,n)=>{const o=m();return b((()=>d(void 0,null,(function*(){e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):("number"!=typeof e.modelValue||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Et(window,"resize",n),yield y(),n()})))),{sliderWrapper:o}})(o,r,E),{firstValue:ne,secondValue:le,sliderSize:ae}=we(r);return j(wf,u(s({},we(o)),{sliderSize:ae,disabled:h,precision:Z,emitChange:I,resetSize:E,updateDragging:e=>{r.dragging=e}})),t({onSliderClick:_}),(e,t)=>{var n,o;return B(),O("div",{id:e.range?p(N):void 0,ref_key:"sliderWrapper",ref:te,class:K(p(G)),role:e.range?"group":void 0,"aria-label":e.range&&!p(F)?p(D):void 0,"aria-labelledby":e.range&&p(F)?null==(n=p(i))?void 0:n.labelId:void 0,onTouchstart:t[2]||(t[2]=(...e)=>p(T)&&p(T)(...e)),onTouchmove:t[3]||(t[3]=(...e)=>p(T)&&p(T)(...e))},[M("div",{ref_key:"slider",ref:c,class:K([p(l).e("runway"),{"show-input":e.showInput&&!e.range},p(l).is("disabled",p(h))]),style:U(p(x)),onMousedown:t[0]||(t[0]=(...e)=>p(R)&&p(R)(...e)),onTouchstart:t[1]||(t[1]=(...e)=>p(R)&&p(R)(...e))},[M("div",{class:K(p(l).e("bar")),style:U(p(C))},null,6),oe(Ff,{id:e.range?void 0:p(N),ref_key:"firstButton",ref:f,"model-value":p(ne),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":e.range||!p(F)?p(H):void 0,"aria-labelledby":!e.range&&p(F)?null==(o=p(i))?void 0:o.labelId:void 0,"aria-valuemin":e.min,"aria-valuemax":e.range?p(le):e.max,"aria-valuenow":p(ne),"aria-valuetext":p(W),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":p(h),"onUpdate:modelValue":p(L)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),e.range?(B(),ee(Ff,{key:0,ref_key:"secondButton",ref:v,"model-value":p(le),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":p(q),"aria-valuemin":p(ne),"aria-valuemax":e.max,"aria-valuenow":p(le),"aria-valuetext":p(Y),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":p(h),"onUpdate:modelValue":p($)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):J("v-if",!0),e.showStops?(B(),O("div",Hf,[(B(!0),O(Q,null,he(p(A),((e,t)=>(B(),O("div",{key:t,class:K(p(l).e("stop")),style:U(p(V)(e))},null,6)))),128))])):J("v-if",!0),p(X).length>0?(B(),O(Q,{key:2},[M("div",null,[(B(!0),O(Q,null,he(p(X),((e,t)=>(B(),O("div",{key:t,style:U(p(V)(e.position)),class:K([p(l).e("stop"),p(l).e("marks-stop")])},null,6)))),128))]),M("div",{class:K(p(l).e("marks"))},[(B(!0),O(Q,null,he(p(X),((e,t)=>(B(),ee(p(Pf),{key:t,mark:e.mark,style:U(p(V)(e.position))},null,8,["mark","style"])))),128))],2)],64)):J("v-if",!0)],38),e.showInput&&!e.range?(B(),ee(p(yp),{key:0,ref:"input","model-value":p(ne),class:K(p(l).e("input")),step:e.step,disabled:p(h),controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:p(P),"onUpdate:modelValue":p(L),onChange:p(I)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):J("v-if",!0)],42,Df)}}})),[["__file","slider.vue"]])),Kf=jn({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:oo},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Wn},activeActionIcon:{type:Wn},activeIcon:{type:Wn},inactiveIcon:{type:Wn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Function},id:String,tabindex:{type:[String,Number]},label:{type:String,default:void 0}}),Uf={[Qn]:e=>Gt(e)||C(e)||Xt(e),[eo]:e=>Gt(e)||C(e)||Xt(e),[to]:e=>Gt(e)||C(e)||Xt(e)},qf=["onClick"],Yf=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],Gf=["aria-hidden"],Xf=["aria-hidden"],Zf=["aria-hidden"],Jf="ElSwitch",Qf=T({name:Jf});const ev=Gn(_r(T(u(s({},Qf),{props:Kf,emits:Uf,setup(e,{expose:t,emit:n}){const o=e,{formItem:l}=Hr(),a=Pr(),r=So("switch"),{inputId:i}=jr(o,{formItemContext:l}),s=Dr(k((()=>o.loading))),u=m(!1!==o.modelValue),c=m(),d=m(),f=k((()=>[r.b(),r.m(a.value),r.is("disabled",s.value),r.is("checked",x.value)])),v=k((()=>[r.e("label"),r.em("label","left"),r.is("active",!x.value)])),h=k((()=>[r.e("label"),r.em("label","right"),r.is("active",x.value)])),g=k((()=>({width:un(o.width)})));S((()=>o.modelValue),(()=>{u.value=!0}));const w=k((()=>!!u.value&&o.modelValue)),x=k((()=>w.value===o.activeValue));[o.activeValue,o.inactiveValue].includes(w.value)||(n(Qn,o.inactiveValue),n(eo,o.inactiveValue),n(to,o.inactiveValue)),S(x,(e=>{var t;c.value.checked=e,o.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"change").catch((e=>{})))}));const C=()=>{const e=x.value?o.inactiveValue:o.activeValue;n(Qn,e),n(eo,e),n(to,e),y((()=>{c.value.checked=x.value}))},E=()=>{if(s.value)return;const{beforeChange:e}=o;if(!e)return void C();const t=e();[$e(t),Gt(t)].includes(!0)||nn(Jf,"beforeChange must return type `Promise` or `boolean`"),$e(t)?t.then((e=>{e&&C()})).catch((e=>{})):t&&C()};return b((()=>{c.value.checked=x.value})),t({focus:()=>{var e,t;null==(t=null==(e=c.value)?void 0:e.focus)||t.call(e)},checked:x}),(e,t)=>(B(),O("div",{class:K(p(f)),onClick:le(E,["prevent"])},[M("input",{id:p(i),ref_key:"input",ref:c,class:K(p(r).e("input")),type:"checkbox",role:"switch","aria-checked":p(x),"aria-disabled":p(s),"aria-label":e.label,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:p(s),tabindex:e.tabindex,onChange:C,onKeydown:Me(E,["enter"])},null,42,Yf),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?J("v-if",!0):(B(),O("span",{key:0,class:K(p(v))},[e.inactiveIcon?(B(),ee(p(Nr),{key:0},{default:te((()=>[(B(),ee(ne(e.inactiveIcon)))])),_:1})):J("v-if",!0),!e.inactiveIcon&&e.inactiveText?(B(),O("span",{key:1,"aria-hidden":p(x)},ae(e.inactiveText),9,Gf)):J("v-if",!0)],2)),M("span",{ref_key:"core",ref:d,class:K(p(r).e("core")),style:U(p(g))},[e.inlinePrompt?(B(),O("div",{key:0,class:K(p(r).e("inner"))},[e.activeIcon||e.inactiveIcon?(B(),ee(p(Nr),{key:0,class:K(p(r).is("icon"))},{default:te((()=>[(B(),ee(ne(p(x)?e.activeIcon:e.inactiveIcon)))])),_:1},8,["class"])):e.activeText||e.inactiveText?(B(),O("span",{key:1,class:K(p(r).is("text")),"aria-hidden":!p(x)},ae(p(x)?e.activeText:e.inactiveText),11,Xf)):J("v-if",!0)],2)):J("v-if",!0),M("div",{class:K(p(r).e("action"))},[e.loading?(B(),ee(p(Nr),{key:0,class:K(p(r).is("loading"))},{default:te((()=>[oe(p(Tn))])),_:1},8,["class"])):p(x)?W(e.$slots,"active-action",{key:1},(()=>[e.activeActionIcon?(B(),ee(p(Nr),{key:0},{default:te((()=>[(B(),ee(ne(e.activeActionIcon)))])),_:1})):J("v-if",!0)])):p(x)?J("v-if",!0):W(e.$slots,"inactive-action",{key:2},(()=>[e.inactiveActionIcon?(B(),ee(p(Nr),{key:0},{default:te((()=>[(B(),ee(ne(e.inactiveActionIcon)))])),_:1})):J("v-if",!0)]))],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?J("v-if",!0):(B(),O("span",{key:1,class:K(p(h))},[e.activeIcon?(B(),ee(p(Nr),{key:0},{default:te((()=>[(B(),ee(ne(e.activeIcon)))])),_:1})):J("v-if",!0),!e.activeIcon&&e.activeText?(B(),O("span",{key:1,"aria-hidden":!p(x)},ae(e.activeText),9,Zf)):J("v-if",!0)],2))],10,qf))}})),[["__file","switch.vue"]])),tv=Symbol("tabsRootContextKey"),nv=jn({tabs:{type:Array,default:()=>[]}}),ov="ElTabBar",lv=T({name:ov});var av=_r(T(u(s({},lv),{props:nv,setup(e,{expose:t}){const n=e,o=g(),l=z(tv);l||nn(ov,"");const a=So("tabs"),r=m(),i=m(),s=()=>i.value=(()=>{let e=0,t=0;const a=["top","bottom"].includes(l.props.tabPosition)?"width":"height",r="width"===a?"x":"y",i="x"===r?"left":"top";return n.tabs.every((l=>{var r,s;const u=null==(s=null==(r=o.parent)?void 0:r.refs)?void 0:s[`tab-${l.uid}`];if(!u)return!1;if(!l.active)return!0;e=u[`offset${Qt(i)}`],t=u[`client${Qt(a)}`];const c=window.getComputedStyle(u);return"width"===a&&(n.tabs.length>1&&(t-=Number.parseFloat(c.paddingLeft)+Number.parseFloat(c.paddingRight)),e+=Number.parseFloat(c.paddingLeft)),!1})),{[a]:`${t}px`,transform:`translate${Qt(r)}(${e}px)`}})();return S((()=>n.tabs),(()=>d(this,null,(function*(){yield y(),s()}))),{immediate:!0}),$t(r,(()=>s())),t({ref:r,update:s}),(e,t)=>(B(),O("div",{ref_key:"barRef",ref:r,class:K([p(a).e("active-bar"),p(a).is(p(l).props.tabPosition)]),style:U(i.value)},null,6))}})),[["__file","tab-bar.vue"]]);const rv=jn({panes:{type:Array,default:()=>[]},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),iv="ElTabNav",sv=T({name:iv,props:rv,emits:{tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},setup(e,{expose:t,emit:n}){const o=g(),l=z(tv);l||nn(iv,"");const a=So("tabs"),r=function({document:e=Ct}={}){if(!e)return m("visible");const t=m(e.visibilityState);return Et(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}(),i=function({window:e=kt}={}){if(!e)return m(!1);const t=m(e.document.hasFocus());return Et(e,"blur",(()=>{t.value=!1})),Et(e,"focus",(()=>{t.value=!0})),t}(),s=m(),u=m(),c=m(),p=m(),f=m(!1),v=m(0),h=m(!1),w=m(!0),x=k((()=>["top","bottom"].includes(l.props.tabPosition)?"width":"height")),C=k((()=>({transform:`translate${"width"===x.value?"X":"Y"}(-${v.value}px)`}))),E=()=>{if(!s.value)return;const e=s.value[`offset${Qt(x.value)}`],t=v.value;if(!t)return;const n=t>e?t-e:0;v.value=n},I=()=>{if(!s.value||!u.value)return;const e=u.value[`offset${Qt(x.value)}`],t=s.value[`offset${Qt(x.value)}`],n=v.value;if(e-n<=t)return;const o=e-n>2*t?n+t:e-t;v.value=o},T=()=>d(this,null,(function*(){const e=u.value;if(!(f.value&&c.value&&s.value&&e))return;yield y();const t=c.value.querySelector(".is-active");if(!t)return;const n=s.value,o=["top","bottom"].includes(l.props.tabPosition),a=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=o?e.offsetWidth-r.width:e.offsetHeight-r.height,d=v.value;let p=d;o?(a.leftr.right&&(p=d+a.right-r.right)):(a.topr.bottom&&(p=d+(a.bottom-r.bottom))),p=Math.max(p,0),v.value=Math.min(p,i)})),B=()=>{var t;if(!u.value||!s.value)return;e.stretch&&(null==(t=p.value)||t.update());const n=u.value[`offset${Qt(x.value)}`],o=s.value[`offset${Qt(x.value)}`],l=v.value;o0&&(v.value=0))},O=e=>{const t=e.code,{up:n,down:o,left:l,right:a}=Jn;if(![n,o,l,a].includes(t))return;const r=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),i=r.indexOf(e.target);let s;s=t===l||t===n?0===i?r.length-1:i-1:i{w.value&&(h.value=!0)},_=()=>h.value=!1;return S(r,(e=>{"hidden"===e?w.value=!1:"visible"===e&&setTimeout((()=>w.value=!0),50)})),S(i,(e=>{e?setTimeout((()=>w.value=!0),50):w.value=!1})),$t(c,B),b((()=>setTimeout((()=>T()),0))),ce((()=>B())),t({scrollToActiveTab:T,removeFocus:_}),S((()=>e.panes),(()=>o.update()),{flush:"post",deep:!0}),()=>{const t=f.value?[oe("span",{class:[a.e("nav-prev"),a.is("disabled",!f.value.prev)],onClick:E},[oe(Nr,null,{default:()=>[oe(vn,null,null)]})]),oe("span",{class:[a.e("nav-next"),a.is("disabled",!f.value.next)],onClick:I},[oe(Nr,null,{default:()=>[oe(mn,null,null)]})])]:null,o=e.panes.map(((t,o)=>{var r,i,s,u;const c=t.uid,d=t.props.disabled,p=null!=(i=null!=(r=t.props.name)?r:t.index)?i:`${o}`,f=!d&&(t.isClosable||e.editable);t.index=`${o}`;const v=f?oe(Nr,{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[oe(xn,null,null)]}):null,m=(null==(u=(s=t.slots).label)?void 0:u.call(s))||t.props.label,g=!d&&t.active?0:-1;return oe("div",{ref:`tab-${c}`,class:[a.e("item"),a.is(l.props.tabPosition),a.is("active",t.active),a.is("disabled",d),a.is("closable",f),a.is("focus",h.value)],id:`tab-${p}`,key:`tab-${c}`,"aria-controls":`pane-${p}`,role:"tab","aria-selected":t.active,tabindex:g,onFocus:()=>M(),onBlur:()=>_(),onClick:e=>{_(),n("tabClick",t,p,e)},onKeydown:e=>{!f||e.code!==Jn.delete&&e.code!==Jn.backspace||n("tabRemove",t,e)}},[m,v])}));return oe("div",{ref:c,class:[a.e("nav-wrap"),a.is("scrollable",!!f.value),a.is(l.props.tabPosition)]},[t,oe("div",{class:a.e("nav-scroll"),ref:s},[oe("div",{class:[a.e("nav"),a.is(l.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(l.props.tabPosition))],ref:u,style:C.value,role:"tablist",onKeydown:O},[e.type?null:oe(av,{ref:p,tabs:[...e.panes]},null),o])])])}}}),uv=jn({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Function,default:()=>!0},stretch:Boolean}),cv=e=>C(e)||Xt(e),dv={[Qn]:e=>cv(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>cv(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>cv(e),tabAdd:()=>!0},pv=T({name:"ElTabs",props:uv,emits:dv,setup(e,{emit:t,slots:n,expose:o}){var l;const a=So("tabs"),{children:r,addChild:i,removeChild:s}=hr(g(),"ElTabPane"),u=m(),c=m(null!=(l=e.modelValue)?l:"0"),p=(n,o=!1)=>d(this,null,(function*(){var l,a,r;if(c.value!==n&&!Yt(n))try{!1!==(yield null==(l=e.beforeLeave)?void 0:l.call(e,n,c.value))&&(c.value=n,o&&(t(Qn,n),t("tabChange",n)),null==(r=null==(a=u.value)?void 0:a.removeFocus)||r.call(a))}catch(i){}})),f=(e,n,o)=>{e.props.disabled||(p(n,!0),t("tabClick",e,o))},v=(e,n)=>{e.props.disabled||Yt(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")};return S((()=>e.modelValue),(e=>p(e))),S(c,(()=>d(this,null,(function*(){var e;yield y(),null==(e=u.value)||e.scrollToActiveTab()})))),j(tv,{props:e,currentName:c,registerPane:i,unregisterPane:s}),o({currentName:c}),()=>{const t=n["add-icon"],o=e.editable||e.addable?oe("span",{class:a.e("new-tab"),tabindex:"0",onClick:h,onKeydown:e=>{e.code===Jn.enter&&h()}},[t?W(n,"add-icon"):oe(Nr,{class:a.is("icon-plus")},{default:()=>[oe(Mn,null,null)]})]):null,l=oe("div",{class:[a.e("header"),a.is(e.tabPosition)]},[o,oe(sv,{ref:u,currentName:c.value,editable:e.editable,type:e.type,panes:r.value,stretch:e.stretch,onTabClick:f,onTabRemove:v},null)]),i=oe("div",{class:a.e("content")},[W(n,"default")]);return oe("div",{class:[a.b(),a.m(e.tabPosition),{[a.m("card")]:"card"===e.type,[a.m("border-card")]:"border-card"===e.type}]},[..."bottom"!==e.tabPosition?[l,i]:[i,l]])}}}),fv=jn({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),vv=["id","aria-hidden","aria-labelledby"],mv="ElTabPane",hv=T({name:mv});var gv=_r(T(u(s({},hv),{props:fv,setup(e){const t=e,n=g(),o=Z(),l=z(tv);l||nn(mv,"usage: ");const a=So("tab-pane"),r=m(),i=k((()=>t.closable||l.props.closable)),s=pt((()=>{var e;return l.currentName.value===(null!=(e=t.name)?e:r.value)})),u=m(s.value),c=k((()=>{var e;return null!=(e=t.name)?e:r.value})),d=pt((()=>!t.lazy||u.value||s.value));S(s,(e=>{e&&(u.value=!0)}));const f=ue({uid:n.uid,slots:o,props:t,paneName:c,active:s,index:r,isClosable:i});return b((()=>{l.registerPane(f)})),G((()=>{l.unregisterPane(f.uid)})),(e,t)=>p(d)?re((B(),O("div",{key:0,id:`pane-${p(c)}`,class:K(p(a).b()),role:"tabpanel","aria-hidden":!p(s),"aria-labelledby":`tab-${p(c)}`},[W(e.$slots,"default")],10,vv)),[[ie,p(s)]]):J("v-if",!0)}})),[["__file","tab-pane.vue"]]);const bv=Gn(pv,{TabPane:gv}),yv=Xn(gv),wv=Symbol("uploadContextKey");class xv extends Error{constructor(e,t,n,o){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=o}}function Sv(e,t,n){let o;return o=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new xv(o,n.status,t.method,e)}const kv=["text","picture","picture-card"];let Cv=1;const Ev=()=>Date.now()+Cv++,Iv=jn({action:{type:String,default:"#"},headers:{type:Object},method:{type:String,default:"post"},data:{type:[Object,Function,Promise],default:()=>({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:kv,default:"text"},httpRequest:{type:Function,default:e=>{"undefined"==typeof XMLHttpRequest&&nn("ElUpload","XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",(t=>{const n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)}));const o=new FormData;if(e.data)for(const[a,r]of Object.entries(e.data))V(r)&&r.length?o.append(a,...r):o.append(a,r);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",(()=>{e.onError(Sv(n,e,t))})),t.addEventListener("load",(()=>{if(t.status<200||t.status>=300)return e.onError(Sv(n,e,t));e.onSuccess(function(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}(t))})),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach(((e,n)=>t.setRequestHeader(n,e)));else for(const[a,r]of Object.entries(l))De(r)||t.setRequestHeader(a,String(r));return t.send(o),t}},disabled:Boolean,limit:Number}),Tv=jn(u(s({},Iv),{beforeUpload:{type:Function,default:$},beforeRemove:{type:Function},onRemove:{type:Function,default:$},onChange:{type:Function,default:$},onPreview:{type:Function,default:$},onSuccess:{type:Function,default:$},onProgress:{type:Function,default:$},onError:{type:Function,default:$},onExceed:{type:Function,default:$},crossorigin:{type:String}})),Bv=jn({files:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},handlePreview:{type:Function,default:$},listType:{type:String,values:kv,default:"text"},crossorigin:{type:String}}),Ov=["onKeydown"],Mv=["src","crossorigin"],_v=["onClick"],Rv=["title"],Lv=["onClick"],$v=["onClick"],Av=T({name:"ElUploadList"});var Vv=_r(T(u(s({},Av),{props:Bv,emits:{remove:e=>!!e},setup(e,{emit:t}){const n=e,{t:o}=go(),l=So("upload"),a=So("icon"),r=So("list"),i=Dr(),s=m(!1),u=k((()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",n.disabled)])),c=e=>{t("remove",e)};return(e,t)=>(B(),ee(Ae,{tag:"ul",class:K(p(u)),name:p(r).b()},{default:te((()=>[(B(!0),O(Q,null,he(e.files,(n=>(B(),O("li",{key:n.uid||n.name,class:K([p(l).be("list","item"),p(l).is(n.status),{focusing:s.value}]),tabindex:"0",onKeydown:Me((e=>!p(i)&&c(n)),["delete"]),onFocus:t[0]||(t[0]=e=>s.value=!0),onBlur:t[1]||(t[1]=e=>s.value=!1),onClick:t[2]||(t[2]=e=>s.value=!1)},[W(e.$slots,"default",{file:n},(()=>["picture"===e.listType||"uploading"!==n.status&&"picture-card"===e.listType?(B(),O("img",{key:0,class:K(p(l).be("list","item-thumbnail")),src:n.url,crossorigin:e.crossorigin,alt:""},null,10,Mv)):J("v-if",!0),"uploading"===n.status||"picture-card"!==e.listType?(B(),O("div",{key:1,class:K(p(l).be("list","item-info"))},[M("a",{class:K(p(l).be("list","item-name")),onClick:le((t=>e.handlePreview(n)),["prevent"])},[oe(p(Nr),{class:K(p(a).m("document"))},{default:te((()=>[oe(p(kn))])),_:1},8,["class"]),M("span",{class:K(p(l).be("list","item-file-name")),title:n.name},ae(n.name),11,Rv)],10,_v),"uploading"===n.status?(B(),ee(p(yf),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(n.percentage),style:U("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):J("v-if",!0)],2)):J("v-if",!0),M("label",{class:K(p(l).be("list","item-status-label"))},["text"===e.listType?(B(),ee(p(Nr),{key:0,class:K([p(a).m("upload-success"),p(a).m("circle-check")])},{default:te((()=>[oe(p(bn))])),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(B(),ee(p(Nr),{key:1,class:K([p(a).m("upload-success"),p(a).m("check")])},{default:te((()=>[oe(p(gn))])),_:1},8,["class"])):J("v-if",!0)],2),p(i)?J("v-if",!0):(B(),ee(p(Nr),{key:2,class:K(p(a).m("close")),onClick:e=>c(n)},{default:te((()=>[oe(p(xn))])),_:2},1032,["class","onClick"])),J(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),J(" This is a bug which needs to be fixed "),J(" TODO: Fix the incorrect navigation interaction "),p(i)?J("v-if",!0):(B(),O("i",{key:3,class:K(p(a).m("close-tip"))},ae(p(o)("el.upload.deleteTip")),3)),"picture-card"===e.listType?(B(),O("span",{key:4,class:K(p(l).be("list","item-actions"))},[M("span",{class:K(p(l).be("list","item-preview")),onClick:t=>e.handlePreview(n)},[oe(p(Nr),{class:K(p(a).m("zoom-in"))},{default:te((()=>[oe(p(zn))])),_:1},8,["class"])],10,Lv),p(i)?J("v-if",!0):(B(),O("span",{key:0,class:K(p(l).be("list","item-delete")),onClick:e=>c(n)},[oe(p(Nr),{class:K(p(a).m("delete"))},{default:te((()=>[oe(p(Sn))])),_:1},8,["class"])],10,$v))],2)):J("v-if",!0)]))],42,Ov)))),128)),W(e.$slots,"append")])),_:3},8,["class","name"]))}})),[["__file","upload-list.vue"]]);const Nv=jn({disabled:{type:Boolean,default:!1}}),Fv={file:e=>V(e)},zv=["onDrop","onDragover"],Pv="ElUploadDrag",Dv=T({name:Pv});var Hv=_r(T(u(s({},Dv),{props:Nv,emits:Fv,setup(e,{emit:t}){z(wv)||nn(Pv,"usage: ");const n=So("upload"),o=m(!1),l=Dr(),a=e=>{if(l.value)return;o.value=!1,e.stopPropagation();const n=Array.from(e.dataTransfer.files);t("file",n)},r=()=>{l.value||(o.value=!0)};return(e,t)=>(B(),O("div",{class:K([p(n).b("dragger"),p(n).is("dragover",o.value)]),onDrop:le(a,["prevent"]),onDragover:le(r,["prevent"]),onDragleave:t[0]||(t[0]=le((e=>o.value=!1),["prevent"]))},[W(e.$slots,"default")],42,zv))}})),[["__file","upload-dragger.vue"]]);const jv=jn(u(s({},Iv),{beforeUpload:{type:Function,default:$},onRemove:{type:Function,default:$},onStart:{type:Function,default:$},onSuccess:{type:Function,default:$},onProgress:{type:Function,default:$},onError:{type:Function,default:$},onExceed:{type:Function,default:$}})),Wv=["onKeydown"],Kv=["name","multiple","accept"],Uv=T({name:"ElUploadContent",inheritAttrs:!1});var qv=_r(T(u(s({},Uv),{props:jv,setup(e,{expose:t}){const n=e,o=So("upload"),l=Dr(),a=w({}),r=w(),i=e=>{if(0===e.length)return;const{autoUpload:t,limit:o,fileList:l,multiple:a,onStart:r,onExceed:i}=n;if(o&&l.length+e.length>o)i(e,l);else{a||(e=e.slice(0,1));for(const n of e){const e=n;e.uid=Ev(),r(e),t&&s(e)}}},s=e=>d(this,null,(function*(){if(r.value.value="",!n.beforeUpload)return c(e);let t,o={};try{const l=n.data,a=n.beforeUpload(e);o=Ve(n.data)?Ze(n.data):n.data,t=yield a,Ve(n.data)&&Ue(l,o)&&(o=Ze(n.data))}catch(a){t=!1}if(!1===t)return void n.onRemove(e);let l=e;t instanceof Blob&&(l=t instanceof File?t:new File([t],e.name,{type:e.type})),c(Object.assign(l,{uid:e.uid}),o)})),u=(e,t)=>d(this,null,(function*(){return A(e)?e(t):e})),c=(e,t)=>d(this,null,(function*(){const{headers:o,data:l,method:r,withCredentials:i,name:s,action:c,onProgress:d,onSuccess:p,onError:f,httpRequest:v}=n;try{t=yield u(null!=t?t:l,e)}catch(b){return void n.onRemove(e)}const{uid:m}=e,h={headers:o||{},withCredentials:i,file:e,data:t,method:r,filename:s,action:c,onProgress:t=>{d(t,e)},onSuccess:t=>{p(t,e),delete a.value[m]},onError:t=>{f(t,e),delete a.value[m]}},g=v(h);a.value[m]=g,g instanceof Promise&&g.then(h.onSuccess,h.onError)})),f=e=>{const t=e.target.files;t&&i(Array.from(t))},v=()=>{l.value||(r.value.value="",r.value.click())},m=()=>{v()};return t({abort:e=>{var t;(t=a.value,Object.entries(t)).filter(e?([t])=>String(e.uid)===t:()=>!0).forEach((([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete a.value[e]}))},upload:s}),(e,t)=>(B(),O("div",{class:K([p(o).b(),p(o).m(e.listType),p(o).is("drag",e.drag)]),tabindex:"0",onClick:v,onKeydown:Me(le(m,["self"]),["enter","space"])},[e.drag?(B(),ee(Hv,{key:0,disabled:p(l),onFile:i},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["disabled"])):W(e.$slots,"default",{key:1}),M("input",{ref_key:"inputRef",ref:r,class:K(p(o).e("input")),name:e.name,multiple:e.multiple,accept:e.accept,type:"file",onChange:f,onClick:t[0]||(t[0]=le((()=>{}),["stop"]))},null,42,Kv)],42,Wv))}})),[["__file","upload-content.vue"]]);const Yv="ElUpload",Gv=e=>{var t;(null==(t=e.url)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.url)},Xv=T({name:"ElUpload"});const Zv=Gn(_r(T(u(s({},Xv),{props:Tv,setup(e,{expose:t}){const n=e,o=Dr(),l=w(),{abort:a,submit:r,clearFiles:i,uploadFiles:c,handleStart:f,handleError:v,handleRemove:m,handleSuccess:h,handleProgress:g,revokeFileObjectURL:b}=((e,t)=>{const n=qt(e,"fileList",void 0,{passive:!0}),o=e=>n.value.find((t=>t.uid===e.uid));function l(e){var n;null==(n=t.value)||n.abort(e)}return S((()=>e.listType),(t=>{"picture-card"!==t&&"picture"!==t||(n.value=n.value.map((t=>{const{raw:o,url:l}=t;if(!l&&o)try{t.url=URL.createObjectURL(o)}catch(a){e.onError(a,t,n.value)}return t})))})),S(n,(e=>{for(const t of e)t.uid||(t.uid=Ev()),t.status||(t.status="success")}),{immediate:!0,deep:!0}),{uploadFiles:n,abort:l,clearFiles:function(e=["ready","uploading","success","fail"]){n.value=n.value.filter((t=>!e.includes(t.status)))},handleError:(t,l)=>{const a=o(l);a&&(a.status="fail",n.value.splice(n.value.indexOf(a),1),e.onError(t,a,n.value),e.onChange(a,n.value))},handleProgress:(t,l)=>{const a=o(l);a&&(e.onProgress(t,a,n.value),a.status="uploading",a.percentage=Math.round(t.percent))},handleStart:t=>{De(t.uid)&&(t.uid=Ev());const o={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{o.url=URL.createObjectURL(t)}catch(l){l.message,e.onError(l,o,n.value)}n.value=[...n.value,o],e.onChange(o,n.value)},handleSuccess:(t,l)=>{const a=o(l);a&&(a.status="success",a.response=t,e.onSuccess(t,a,n.value),e.onChange(a,n.value))},handleRemove:t=>d(void 0,null,(function*(){const a=t instanceof File?o(t):t;a||nn(Yv,"file to be removed not found");const r=t=>{l(t);const o=n.value;o.splice(o.indexOf(t),1),e.onRemove(t,o),Gv(t)};e.beforeRemove?!1!==(yield e.beforeRemove(a,n.value))&&r(a):r(a)})),submit:function(){n.value.filter((({status:e})=>"ready"===e)).forEach((({raw:e})=>{var n;return e&&(null==(n=t.value)?void 0:n.upload(e))}))},revokeFileObjectURL:Gv}})(n,l),y=k((()=>"picture-card"===n.listType)),x=k((()=>u(s({},n),{fileList:c.value,onStart:f,onProgress:g,onSuccess:h,onError:v,onRemove:m})));return F((()=>{c.value.forEach(b)})),j(wv,{accept:Y(n,"accept")}),t({abort:a,submit:r,clearFiles:i,handleStart:f,handleRemove:m}),(e,t)=>(B(),O("div",null,[p(y)&&e.showFileList?(B(),ee(Vv,{key:0,disabled:p(o),"list-type":e.listType,files:p(c),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:p(m)},Ce({append:te((()=>[oe(qv,q({ref_key:"uploadRef",ref:l},p(x)),{default:te((()=>[e.$slots.trigger?W(e.$slots,"trigger",{key:0}):J("v-if",!0),!e.$slots.trigger&&e.$slots.default?W(e.$slots,"default",{key:1}):J("v-if",!0)])),_:3},16)])),_:2},[e.$slots.file?{name:"default",fn:te((({file:t})=>[W(e.$slots,"file",{file:t})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):J("v-if",!0),!p(y)||p(y)&&!e.showFileList?(B(),ee(qv,q({key:1,ref_key:"uploadRef",ref:l},p(x)),{default:te((()=>[e.$slots.trigger?W(e.$slots,"trigger",{key:0}):J("v-if",!0),!e.$slots.trigger&&e.$slots.default?W(e.$slots,"default",{key:1}):J("v-if",!0)])),_:3},16)):J("v-if",!0),e.$slots.trigger?W(e.$slots,"default",{key:2}):J("v-if",!0),W(e.$slots,"tip"),!p(y)&&e.showFileList?(B(),ee(Vv,{key:3,disabled:p(o),"list-type":e.listType,files:p(c),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:p(m)},Ce({_:2},[e.$slots.file?{name:"default",fn:te((({file:t})=>[W(e.$slots,"file",{file:t})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):J("v-if",!0)]))}})),[["__file","upload.vue"]])),Jv=jn({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:Object},targetAreaClickable:{type:Boolean,default:!0}}),Qv=(e,t,n,o,l)=>{const a=m(null),r=()=>{let t;return t=C(e.value)?document.querySelector(e.value):A(e.value)?e.value():e.value,t},i=()=>{const e=r();if(!e||!t.value)return void(a.value=null);!function(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:l,bottom:a,left:r}=e.getBoundingClientRect();return o>=0&&r>=0&&l<=t&&a<=n}(e)&&t.value&&e.scrollIntoView(l.value);const{left:n,top:o,width:i,height:s}=e.getBoundingClientRect();a.value={left:n,top:o,width:i,height:s,radius:0}};b((()=>{S([t,e],(()=>{i()}),{immediate:!0}),window.addEventListener("resize",i)})),F((()=>{window.removeEventListener("resize",i)}));const s=e=>{var t;return null!=(t=V(n.value.offset)?n.value.offset[e]:n.value.offset)?t:6},u=k((()=>{var e;if(!a.value)return a.value;const t=s(0),o=s(1),l=(null==(e=n.value)?void 0:e.radius)||2;return{left:a.value.left-t,top:a.value.top-o,width:a.value.width+2*t,height:a.value.height+2*o,radius:l}})),c=k((()=>{const e=r();return o.value&&e&&window.DOMRect?{getBoundingClientRect(){var e,t,n,o;return window.DOMRect.fromRect({width:(null==(e=u.value)?void 0:e.width)||0,height:(null==(t=u.value)?void 0:t.height)||0,x:(null==(n=u.value)?void 0:n.left)||0,y:(null==(o=u.value)?void 0:o.top)||0})}}:e||void 0}));return{mergedPosInfo:u,triggerTarget:c}},em=Symbol("ElTour");const tm=()=>({name:"overflow",fn(e){return d(this,null,(function*(){const t=yield _a(e);let n=0;t.left>0&&(n=t.left),t.right>0&&(n=t.right);return{data:{maxWidth:e.rects.floating.width-n}}}))}}),nm={style:{width:"100%",height:"100%"}},om=["d"],lm=T({name:"ElTourMask",inheritAttrs:!1});var am=_r(T(u(s({},lm),{props:Jv,setup(e){const t=e,{ns:n}=z(em),o=k((()=>{var e,n;return null!=(n=null==(e=t.pos)?void 0:e.radius)?n:2})),l=k((()=>{const e=o.value,t=`a${e},${e} 0 0 1`;return{topRight:`${t} ${e},${e}`,bottomRight:`${t} ${-e},${e}`,bottomLeft:`${t} ${-e},${-e}`,topLeft:`${t} ${e},${-e}`}})),a=k((()=>{const e=window.innerWidth,n=window.innerHeight,a=l.value,r=`M${e},0 L0,0 L0,${n} L${e},${n} L${e},0 Z`,i=o.value;return t.pos?`${r} M${t.pos.left+i},${t.pos.top} h${t.pos.width-2*i} ${a.topRight} v${t.pos.height-2*i} ${a.bottomRight} h${-t.pos.width+2*i} ${a.bottomLeft} v${-t.pos.height+2*i} ${a.topLeft} z`:r})),r=k((()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"})));return ko(Y(t,"visible"),{ns:n}),(e,t)=>e.visible?(B(),O("div",q({key:0,class:p(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:e.zIndex,pointerEvents:e.pos&&e.targetAreaClickable?"none":"auto"}},e.$attrs),[(B(),O("svg",nm,[M("path",{class:K(p(n).e("hollow")),style:U(p(r)),d:p(a)},null,14,om)]))],16)):J("v-if",!0)}})),[["__file","mask.vue"]]);const rm=jn({placement:{type:String,values:["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],default:"bottom"},reference:{type:Object,default:null},strategy:{type:String,values:["absolute","fixed"],default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),im=["data-side"],sm=T({name:"ElTourContent"});var um=_r(T(u(s({},sm),{props:rm,emits:{close:()=>!0},setup(e,{emit:t}){const n=e,o=m(n.placement),l=m(n.strategy),a=m(null),r=m(null);S((()=>n.placement),(()=>{o.value=n.placement}));const{contentStyle:i,arrowStyle:s}=((e,t,n,o,l,a,r,i)=>{const s=m(),u=m(),c=m({}),f={x:s,y:u,placement:o,strategy:l,middlewareData:c},v=k((()=>{const e=[Ra(p(a)),fr(),pr(),tm()];return p(i)&&p(n)&&e.push(vr({element:p(n)})),e})),h=()=>d(void 0,null,(function*(){if(!ft)return;const n=p(e),a=p(t);if(!n||!a)return;const r=yield mr(n,a,{placement:p(o),strategy:p(l),middleware:p(v)});en(f).forEach((e=>{f[e].value=r[e]}))})),g=k((()=>{if(!p(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:p(r)};const{overflow:t}=p(c);return{position:p(l),zIndex:p(r),top:null!=p(u)?`${p(u)}px`:"",left:null!=p(s)?`${p(s)}px`:"",maxWidth:(null==t?void 0:t.maxWidth)?`${null==t?void 0:t.maxWidth}px`:""}})),y=k((()=>{if(!p(i))return{};const{arrow:e}=p(c);return{left:null!=(null==e?void 0:e.x)?`${null==e?void 0:e.x}px`:"",top:null!=(null==e?void 0:e.y)?`${null==e?void 0:e.y}px`:""}}));let w;return b((()=>{const n=p(e),o=p(t);n&&o&&(w=dr(n,o,h)),x((()=>{h()}))})),F((()=>{w&&w()})),{update:h,contentStyle:g,arrowStyle:y}})(Y(n,"reference"),a,r,o,l,Y(n,"offset"),Y(n,"zIndex"),Y(n,"showArrow")),u=k((()=>o.value.split("-")[0])),{ns:c}=z(em),f=()=>{t("close")},v=e=>{"pointer"===e.detail.focusReason&&e.preventDefault()};return(e,t)=>(B(),O("div",{ref_key:"contentRef",ref:a,style:U(p(i)),class:K(p(c).e("content")),"data-side":p(u),tabindex:"-1"},[oe(p(Ki),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":a.value||void 0,onReleaseRequested:f,onFocusoutPrevented:v},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["focus-trap-el"]),e.showArrow?(B(),O("span",{key:0,ref_key:"arrowRef",ref:r,style:U(p(s)),class:K(p(c).e("arrow"))},null,6)):J("v-if",!0)],14,im))}})),[["__file","content.vue"]]),cm=T({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let o=0;return()=>{var l,a;const r=null==(l=t.default)?void 0:l.call(t),i=[];let s=0;var u;return r.length&&(u=ao(null==(a=r[0])?void 0:a.children),V(u)&&u.forEach((e=>{var t;"ElTourStep"===(null==(t=(null==e?void 0:e.type)||{})?void 0:t.name)&&(i.push(e),s+=1)}))),o!==s&&(o=s,n("update-total",s)),i.length?i[e.current]:null}}});const dm=jn({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Wn},placement:rm.placement,contentStyle:{type:[Object]},mask:{type:[Boolean,Object],default:!0},gap:{type:Object,default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:[Boolean,Object],default:()=>({block:"center"})},type:{type:String},appendTo:{type:[String,Object],default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),pm={[Qn]:e=>Gt(e),"update:current":e=>Xt(e),close:e=>Xt(e),finish:()=>!0,change:e=>Xt(e)},fm=T({name:"ElTour"});var vm=_r(T(u(s({},fm),{props:dm,emits:pm,setup(e,{emit:t}){const n=e,o=So("tour"),l=m(0),a=m(),r=qt(n,"current",t,{passive:!0}),i=k((()=>{var e;return null==(e=a.value)?void 0:e.target})),s=k((()=>[o.b(),"primary"===b.value?o.m("primary"):""])),u=k((()=>{var e;return(null==(e=a.value)?void 0:e.placement)||n.placement})),c=k((()=>{var e,t;return null!=(t=null==(e=a.value)?void 0:e.contentStyle)?t:n.contentStyle})),d=k((()=>{var e,t;return null!=(t=null==(e=a.value)?void 0:e.mask)?t:n.mask})),f=k((()=>!!d.value&&n.modelValue)),v=k((()=>Gt(d.value)?void 0:d.value)),h=k((()=>{var e,t;return!!i.value&&(null!=(t=null==(e=a.value)?void 0:e.showArrow)?t:n.showArrow)})),g=k((()=>{var e,t;return null!=(t=null==(e=a.value)?void 0:e.scrollIntoViewOptions)?t:n.scrollIntoViewOptions})),b=k((()=>{var e,t;return null!=(t=null==(e=a.value)?void 0:e.type)?t:n.type})),{nextZIndex:y}=ca(),w=y(),x=k((()=>{var e;return null!=(e=n.zIndex)?e:w})),{mergedPosInfo:C,triggerTarget:E}=Qv(i,Y(n,"modelValue"),Y(n,"gap"),d,g);S((()=>n.modelValue),(e=>{e||(r.value=0)}));const I=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",r.value))},T=e=>{l.value=e},_=Z();return j(em,{currentStep:a,current:r,total:l,showClose:Y(n,"showClose"),closeIcon:Y(n,"closeIcon"),mergedType:b,ns:o,slots:_,updateModelValue(e){t("update:modelValue",e)},onClose(){t("close",r.value)},onFinish(){t("finish")},onChange(){t("change",r.value)}}),(e,t)=>{var n,o;return B(),O(Q,null,[(B(),ee(ve,{to:e.appendTo},[M("div",q({class:p(s)},e.$attrs),[oe(am,{visible:p(f),fill:null==(n=p(v))?void 0:n.color,style:U(null==(o=p(v))?void 0:o.style),pos:p(C),"z-index":p(x),"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(B(),ee(um,{key:p(r),reference:p(E),placement:p(u),"show-arrow":p(h),"z-index":p(x),style:U(p(c)),onClose:I},{default:te((()=>[oe(p(cm),{current:p(r),onUpdateTotal:T},{default:te((()=>[W(e.$slots,"default")])),_:3},8,["current"])])),_:3},8,["reference","placement","show-arrow","z-index","style"])):J("v-if",!0)],16)],8,["to"])),J(" just for IDE "),J("v-if",!0)],64)}}})),[["__file","tour.vue"]]);const mm=jn({target:{type:[String,Object,Function]},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Wn},showArrow:{type:Boolean,default:void 0},placement:rm.placement,mask:{type:[Boolean,Object],default:void 0},contentStyle:{type:[Object]},prevButtonProps:{type:Object},nextButtonProps:{type:Object},scrollIntoViewOptions:{type:[Boolean,Object],default:void 0},type:{type:String}}),hm=T({name:"ElTourStep"});var gm=_r(T(u(s({},hm),{props:mm,emits:{close:()=>!0},setup(e,{emit:t}){const n=e,{Close:o}=Kn,{t:l}=go(),{currentStep:a,current:r,total:i,showClose:s,closeIcon:u,mergedType:c,ns:d,slots:f,updateModelValue:v,onClose:m,onFinish:h,onChange:g}=z(em);S(n,(e=>{a.value=e}),{immediate:!0});const b=k((()=>{var e;return null!=(e=n.showClose)?e:s.value})),y=k((()=>{var e,t;return null!=(t=null!=(e=n.closeIcon)?e:u.value)?t:o})),w=e=>{if(e)return Je(e,["children","onClick"])},x=()=>{var e,t;r.value-=1,(null==(e=n.prevButtonProps)?void 0:e.onClick)&&(null==(t=n.prevButtonProps)||t.onClick()),g()},C=()=>{var e;r.value>=i.value-1?E():r.value+=1,(null==(e=n.nextButtonProps)?void 0:e.onClick)&&n.nextButtonProps.onClick(),g()},E=()=>{I(),h()},I=()=>{v(!1),m(),t("close")};return(e,t)=>(B(),O(Q,null,[p(b)?(B(),O("button",{key:0,"aria-label":"Close",class:K(p(d).e("closebtn")),type:"button",onClick:I},[oe(p(Nr),{class:K(p(d).e("close"))},{default:te((()=>[(B(),ee(ne(p(y))))])),_:1},8,["class"])],2)):J("v-if",!0),M("header",{class:K([p(d).e("header"),{"show-close":p(s)}])},[W(e.$slots,"header",{},(()=>[M("span",{role:"heading",class:K(p(d).e("title"))},ae(e.title),3)]))],2),M("div",{class:K(p(d).e("body"))},[W(e.$slots,"default",{},(()=>[M("span",null,ae(e.description),1)]))],2),M("footer",{class:K(p(d).e("footer"))},[M("div",{class:K(p(d).b("indicators"))},[p(f).indicators?(B(),ee(ne(p(f).indicators),{key:0,current:p(r),total:p(i)},null,8,["current","total"])):(B(!0),O(Q,{key:1},he(p(i),((e,t)=>(B(),O("span",{key:e,class:K([p(d).b("indicator"),t===p(r)?"is-active":""])},null,2)))),128))],2),M("div",{class:K(p(d).b("buttons"))},[p(r)>0?(B(),ee(p(Gs),q({key:0,size:"small",type:p(c)},w(e.prevButtonProps),{onClick:x}),{default:te((()=>{var t,n;return[ye(ae(null!=(n=null==(t=e.prevButtonProps)?void 0:t.children)?n:p(l)("el.tour.previous")),1)]})),_:1},16,["type"])):J("v-if",!0),p(r)<=p(i)-1?(B(),ee(p(Gs),q({key:1,size:"small",type:"primary"===p(c)?"default":"primary"},w(e.nextButtonProps),{onClick:C}),{default:te((()=>{var t,n;return[ye(ae(null!=(n=null==(t=e.nextButtonProps)?void 0:t.children)?n:p(r)===p(i)-1?p(l)("el.tour.finish"):p(l)("el.tour.next")),1)]})),_:1},16,["type"])):J("v-if",!0)],2)],2)],64))}})),[["__file","step.vue"]]);const bm=Gn(vm,{TourStep:gm}),ym=Xn(gm);function wm(e){let t;const n=m(!1),o=ue(u(s({},e),{originalPosition:"",originalOverflow:"",visible:!1}));function l(){var e,t;null==(t=null==(e=c.$el)?void 0:e.parentNode)||t.removeChild(c.$el)}function a(){if(!n.value)return;const e=o.parent;n.value=!1,e.vLoadingAddClassList=void 0,function(){const e=o.parent,t=c.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute("loading-number");n=Number.parseInt(n)-1,n?e.setAttribute("loading-number",n.toString()):(rn(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),rn(e,t.bm("parent","hidden"))}l(),i.unmount()}()}const r=T({name:"ElLoading",setup(e,{expose:t}){const{ns:n,zIndex:l}=kr("loading");return t({ns:n,zIndex:l}),()=>{const e=o.spinner||o.svg,t=ke("svg",s({class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50"},e?{innerHTML:e}:{}),[ke("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),l=o.text?ke("p",{class:n.b("text")},[o.text]):void 0;return ke(se,{name:n.b("fade"),onAfterLeave:a},{default:te((()=>[re(oe("div",{style:{backgroundColor:o.background||""},class:[n.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[ke("div",{class:n.b("spinner")},[t,l])]),[[ie,o.visible]])]))})}}}),i=Ne(r),c=i.mount(document.createElement("div"));return u(s({},we(o)),{setText:function(e){o.text=e},removeElLoadingChild:l,close:function(){var l;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(a,400),o.visible=!1,null==(l=e.closed)||l.call(e))},handleAfterLeave:a,vm:c,get $el(){return c.$el}})}let xm;const Sm=function(e={}){if(!ft)return;const t=km(e);if(t.fullscreen&&xm)return xm;const n=wm(u(s({},t),{closed:()=>{var e;null==(e=t.closed)||e.call(t),t.fullscreen&&(xm=void 0)}}));Cm(t,t.parent,n),Em(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Em(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o=o?`${Number.parseInt(o)+1}`:"1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),y((()=>n.visible.value=t.visible)),t.fullscreen&&(xm=n),n},km=e=>{var t,n,o,l;let a;return a=C(e.target)?null!=(t=document.querySelector(e.target))?t:document.body:e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&(null==(n=e.fullscreen)||n),lock:null!=(o=e.lock)&&o,customClass:e.customClass||"",visible:null==(l=e.visible)||l,target:a}},Cm=(e,t,n)=>d(void 0,null,(function*(){const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=sn(document.body,"position"),n.originalOverflow.value=sn(document.body,"overflow"),l.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=sn(document.body,"position"),yield y();for(const t of["top","left"]){const n="top"===t?"scrollTop":"scrollLeft";l[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-Number.parseInt(sn(document.body,`margin-${t}`),10)+"px"}for(const t of["height","width"])l[t]=`${e.target.getBoundingClientRect()[t]}px`}else n.originalPosition.value=sn(t,"position");for(const[e,t]of Object.entries(l))n.$el.style[e]=t})),Em=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?rn(t,o.bm("parent","relative")):an(t,o.bm("parent","relative")),e.fullscreen&&e.lock?an(t,o.bm("parent","hidden")):rn(t,o.bm("parent","hidden"))},Im=Symbol("ElLoading"),Tm=(e,t)=>{var n,o,l,a;const r=t.instance,i=e=>_(t.value)?t.value[e]:void 0,s=t=>(e=>{const t=C(e)&&(null==r?void 0:r[e])||e;return t?m(t):t})(i(t)||e.getAttribute(`element-loading-${Fe(t)}`)),u=null!=(n=i("fullscreen"))?n:t.modifiers.fullscreen,c={text:s("text"),svg:s("svg"),svgViewBox:s("svgViewBox"),spinner:s("spinner"),background:s("background"),customClass:s("customClass"),fullscreen:u,target:null!=(o=i("target"))?o:u?void 0:e,body:null!=(l=i("body"))?l:t.modifiers.body,lock:null!=(a=i("lock"))?a:t.modifiers.lock};e[Im]={options:c,instance:Sm(c)}},Bm={mounted(e,t){t.value&&Tm(e,t)},updated(e,t){const n=e[Im];t.oldValue!==t.value&&(t.value&&!t.oldValue?Tm(e,t):t.value&&t.oldValue?_(t.value)&&((e,t)=>{for(const n of Object.keys(t))P(t[n])&&(t[n].value=e[n])})(t.value,n.options):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[Im])||t.instance.close(),e[Im]=null}},Om={install(e){e.directive("loading",Bm),e.config.globalProperties.$loading=Sm},directive:Bm,service:Sm},Mm=["success","info","warning","error"],_m={customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ft?document.body:void 0},Rm=jn({customClass:{type:String,default:_m.customClass},center:{type:Boolean,default:_m.center},dangerouslyUseHTMLString:{type:Boolean,default:_m.dangerouslyUseHTMLString},duration:{type:Number,default:_m.duration},icon:{type:Wn,default:_m.icon},id:{type:String,default:_m.id},message:{type:[String,Object,Function],default:_m.message},onClose:{type:Function,required:!1},showClose:{type:Boolean,default:_m.showClose},type:{type:String,values:Mm,default:_m.type},offset:{type:Number,default:_m.offset},zIndex:{type:Number,default:_m.zIndex},grouping:{type:Boolean,default:_m.grouping},repeatNum:{type:Number,default:_m.repeatNum}}),Lm=ze([]),$m=e=>{const{prev:t}=(e=>{const t=Lm.findIndex((t=>t.id===e)),n=Lm[t];let o;return t>0&&(o=Lm[t-1]),{current:n,prev:o}})(e);return t?t.vm.exposed.bottom.value:0},Am=["id"],Vm=["innerHTML"],Nm=T({name:"ElMessage"});var Fm=_r(T(u(s({},Nm),{props:Rm,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{Close:o}=Un,{ns:l,zIndex:a}=kr("message"),{currentZIndex:r,nextZIndex:i}=a,s=m(),u=m(!1),c=m(0);let d;const f=k((()=>n.type?"error"===n.type?"danger":n.type:"info")),v=k((()=>{const e=n.type;return{[l.bm("icon",e)]:e&&qn[e]}})),h=k((()=>n.icon||qn[n.type]||"")),g=k((()=>$m(n.id))),y=k((()=>((e,t)=>Lm.findIndex((t=>t.id===e))>0?16:t)(n.id,n.offset)+g.value)),w=k((()=>c.value+y.value)),x=k((()=>({top:`${y.value}px`,zIndex:r.value})));function C(){0!==n.duration&&({stop:d}=xt((()=>{I()}),n.duration))}function E(){null==d||d()}function I(){u.value=!1}return b((()=>{C(),i(),u.value=!0})),S((()=>n.repeatNum),(()=>{E(),C()})),Et(document,"keydown",(function({code:e}){e===Jn.esc&&I()})),$t(s,(()=>{c.value=s.value.getBoundingClientRect().height})),t({visible:u,bottom:w,close:I}),(e,t)=>(B(),ee(se,{name:p(l).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[0]||(t[0]=t=>e.$emit("destroy")),persisted:""},{default:te((()=>[re(M("div",{id:e.id,ref_key:"messageRef",ref:s,class:K([p(l).b(),{[p(l).m(e.type)]:e.type},p(l).is("center",e.center),p(l).is("closable",e.showClose),e.customClass]),style:U(p(x)),role:"alert",onMouseenter:E,onMouseleave:C},[e.repeatNum>1?(B(),ee(p(ws),{key:0,value:e.repeatNum,type:p(f),class:K(p(l).e("badge"))},null,8,["value","type","class"])):J("v-if",!0),p(h)?(B(),ee(p(Nr),{key:1,class:K([p(l).e("icon"),p(v)])},{default:te((()=>[(B(),ee(ne(p(h))))])),_:1},8,["class"])):J("v-if",!0),W(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(B(),O(Q,{key:1},[J(" Caution here, message could've been compromised, never use user's input as message "),M("p",{class:K(p(l).e("content")),innerHTML:e.message},null,10,Vm)],2112)):(B(),O("p",{key:0,class:K(p(l).e("content"))},ae(e.message),3))])),e.showClose?(B(),ee(p(Nr),{key:2,class:K(p(l).e("closeBtn")),onClick:le(I,["stop"])},{default:te((()=>[oe(p(o))])),_:1},8,["class","onClick"])):J("v-if",!0)],46,Am),[[ie,u.value]])])),_:3},8,["name","onBeforeLeave"]))}})),[["__file","message.vue"]]);let zm=1;const Pm=e=>{const t=!e||C(e)||N(e)||A(e)?{message:e}:e,n=s(s({},_m),t);if(n.appendTo){if(C(n.appendTo)){let e=document.querySelector(n.appendTo);Zt(e)||(e=document.body),n.appendTo=e}}else n.appendTo=document.body;return n},Dm=(e,t)=>{var n=e,{appendTo:o}=n,l=c(n,["appendTo"]);const a="message_"+zm++,r=l.onClose,i=document.createElement("div"),d=u(s({},l),{id:a,onClose:()=>{null==r||r(),(e=>{const t=Lm.indexOf(e);if(-1===t)return;Lm.splice(t,1);const{handler:n}=e;n.close()})(m)},onDestroy:()=>{Pe(null,i)}}),p=oe(Fm,d,A(d.message)||N(d.message)?{default:A(d.message)?d.message:()=>d.message}:null);p.appContext=t||Hm._context,Pe(p,i),o.appendChild(i.firstElementChild);const f=p.component,v={close:()=>{f.exposed.visible.value=!1}},m={id:a,vnode:p,vm:f,handler:v,props:p.component.props};return m},Hm=(e={},t)=>{if(!ft)return{close:()=>{}};if(Xt(Tr.max)&&Lm.length>=Tr.max)return{close:()=>{}};const n=Pm(e);if(n.grouping&&Lm.length){const e=Lm.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}const o=Dm(n,t);return Lm.push(o),o.handler};Mm.forEach((e=>{Hm[e]=(t={},n)=>{const o=Pm(t);return Hm(u(s({},o),{type:e}),n)}})),Hm.closeAll=function(e){for(const t of Lm)e&&e!==t.props.type||t.handler.close()},Hm._context=null;const jm=((e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e))(Hm,"$message"),Wm=T({name:"ElMessageBox",directives:{TrapFocus:iu},components:s({ElButton:Gs,ElFocusTrap:Ki,ElInput:ei,ElOverlay:jc,ElIcon:Nr},Un),inheritAttrs:!1,props:{buttonSize:{type:String,validator:oo},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:l,size:a}=kr("message-box",k((()=>e.buttonSize))),{t:r}=n,{nextZIndex:i}=o,c=m(!1),p=ue({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),f=k((()=>{const e=p.type;return{[l.bm("icon",e)]:e&&qn[e]}})),v=Ql(),h=Ql(),g=k((()=>p.icon||qn[p.type]||"")),w=k((()=>!!p.message)),x=m(),C=m(),E=m(),I=m(),T=m(),B=k((()=>p.confirmButtonClass));S((()=>p.inputValue),(t=>d(this,null,(function*(){yield y(),"prompt"===e.boxType&&null!==t&&A()}))),{immediate:!0}),S((()=>c.value),(t=>{var n,o;t&&("prompt"!==e.boxType&&(p.autofocus?E.value=null!=(o=null==(n=T.value)?void 0:n.$el)?o:x.value:E.value=x.value),p.zIndex=i()),"prompt"===e.boxType&&(t?y().then((()=>{var e;I.value&&I.value.$el&&(p.autofocus?E.value=null!=(e=V())?e:x.value:E.value=x.value)})):(p.editorErrorMessage="",p.validateError=!1))}));const O=k((()=>e.draggable)),M=k((()=>e.overflow));function _(){c.value&&(c.value=!1,y((()=>{p.action&&t("action",p.action)})))}po(x,C,O,M),b((()=>d(this,null,(function*(){yield y(),e.closeOnHashChange&&window.addEventListener("hashchange",_)})))),F((()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",_)}));const R=()=>{e.closeOnClickModal&&$(p.distinguishCancelAndClose?"close":"cancel")},L=Yl(R),$=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||A())&&(p.action=t,p.beforeClose?null==(n=p.beforeClose)||n.call(p,t,p,_):_())},A=()=>{if("prompt"===e.boxType){const e=p.inputPattern;if(e&&!e.test(p.inputValue||""))return p.editorErrorMessage=p.inputErrorMessage||r("el.messagebox.error"),p.validateError=!0,!1;const t=p.inputValidator;if("function"==typeof t){const e=t(p.inputValue);if(!1===e)return p.editorErrorMessage=p.inputErrorMessage||r("el.messagebox.error"),p.validateError=!0,!1;if("string"==typeof e)return p.editorErrorMessage=e,p.validateError=!0,!1}}return p.editorErrorMessage="",p.validateError=!1,!0},V=()=>{const e=I.value.$refs;return e.input||e.textarea},N=()=>{$("close")};return e.lockScroll&&ko(c),u(s({},we(p)),{ns:l,overlayEvent:L,visible:c,hasMessage:w,typeClass:f,contentId:v,inputId:h,btnSize:a,iconComponent:g,confirmButtonClasses:B,rootRef:x,focusStartRef:E,headerRef:C,inputRef:I,confirmRef:T,doClose:_,handleClose:N,onCloseRequested:()=>{e.closeOnPressEscape&&N()},handleWrapperClick:R,handleInputEnter:e=>{if("textarea"!==p.inputType)return e.preventDefault(),$("confirm")},handleAction:$,t:r})}}),Km=["aria-label","aria-describedby"],Um=["aria-label"],qm=["id"];var Ym=_r(Wm,[["render",function(e,t,n,o,l,a){const r=Ee("el-icon"),i=Ee("close"),s=Ee("el-input"),u=Ee("el-button"),c=Ee("el-focus-trap"),d=Ee("el-overlay");return B(),ee(se,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=t=>e.$emit("vanish")),persisted:""},{default:te((()=>[re(oe(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:te((()=>[M("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:K(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...t)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...t)),onMousedown:t[9]||(t[9]=(...t)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...t)),onMouseup:t[10]||(t[10]=(...t)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...t))},[oe(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:te((()=>[M("div",{ref:"rootRef",class:K([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:U(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=le((()=>{}),["stop"]))},[null!==e.title&&void 0!==e.title?(B(),O("div",{key:0,ref:"headerRef",class:K([e.ns.e("header"),{"show-close":e.showClose}])},[M("div",{class:K(e.ns.e("title"))},[e.iconComponent&&e.center?(B(),ee(r,{key:0,class:K([e.ns.e("status"),e.typeClass])},{default:te((()=>[(B(),ee(ne(e.iconComponent)))])),_:1},8,["class"])):J("v-if",!0),M("span",null,ae(e.title),1)],2),e.showClose?(B(),O("button",{key:0,type:"button",class:K(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Me(le((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"]))},[oe(r,{class:K(e.ns.e("close"))},{default:te((()=>[oe(i)])),_:1},8,["class"])],42,Um)):J("v-if",!0)],2)):J("v-if",!0),M("div",{id:e.contentId,class:K(e.ns.e("content"))},[M("div",{class:K(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(B(),ee(r,{key:0,class:K([e.ns.e("status"),e.typeClass])},{default:te((()=>[(B(),ee(ne(e.iconComponent)))])),_:1},8,["class"])):J("v-if",!0),e.hasMessage?(B(),O("div",{key:1,class:K(e.ns.e("message"))},[W(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(B(),ee(ne(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(B(),ee(ne(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:te((()=>[ye(ae(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):J("v-if",!0)],2),re(M("div",{class:K(e.ns.e("input"))},[oe(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputValue=t),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:K({invalid:e.validateError}),onKeydown:Me(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),M("div",{class:K(e.ns.e("errormsg")),style:U({visibility:e.editorErrorMessage?"visible":"hidden"})},ae(e.editorErrorMessage),7)],2),[[ie,e.showInput]])],10,qm),M("div",{class:K(e.ns.e("btns"))},[e.showCancelButton?(B(),ee(u,{key:0,loading:e.cancelButtonLoading,class:K([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=t=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Me(le((t=>e.handleAction("cancel")),["prevent"]),["enter"]))},{default:te((()=>[ye(ae(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","class","round","size"])):J("v-if",!0),re(oe(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:K([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=t=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Me(le((t=>e.handleAction("confirm")),["prevent"]),["enter"]))},{default:te((()=>[ye(ae(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","class","round","disabled","size"]),[[ie,e.showConfirmButton]])],2)],6)])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Km)])),_:3},8,["z-index","overlay-class","mask"]),[[ie,e.visible]])])),_:3})}],["__file","index.vue"]]);const Gm=new Map,Xm=(e,t,n=null)=>{const o=oe(Ym,e,A(e.message)||N(e.message)?{default:A(e.message)?e.message:()=>e.message}:null);return o.appContext=n,Pe(o,t),(e=>{let t=document.body;return e.appendTo&&(C(e.appendTo)&&(t=document.querySelector(e.appendTo)),Zt(e.appendTo)&&(t=e.appendTo),Zt(t)||(t=document.body)),t})(e).appendChild(t.firstElementChild),o.component},Zm=(e,t)=>{const n=document.createElement("div");e.onVanish=()=>{Pe(null,n),Gm.delete(l)},e.onAction=t=>{const n=Gm.get(l);let a;a=e.showInput?{value:l.inputValue,action:t}:t,e.callback?e.callback(a,o.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(a)};const o=Xm(e,n,t),l=o.proxy;for(const a in e)R(e,a)&&!R(l.$props,a)&&(l[a]=e[a]);return l.visible=!0,l};function Jm(e,t=null){if(!ft)return Promise.reject();let n;return C(e)||N(e)?e={message:e}:n=e.callback,new Promise(((o,l)=>{const a=Zm(e,null!=t?t:Jm._context);Gm.set(a,{options:e,callback:n,resolve:o,reject:l})}))}const Qm={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};["alert","confirm","prompt"].forEach((e=>{Jm[e]=function(e){return(t,n,o,l)=>{let a="";return _(n)?(o=n,a=""):a=Yt(n)?"":n,Jm(Object.assign(s({title:a,message:t,type:""},Qm[e]),o,{boxType:e}),l)}}(e)})),Jm.close=()=>{Gm.forEach(((e,t)=>{t.doClose()})),Gm.clear()},Jm._context=null;const eh=Jm;eh.install=e=>{eh._context=e._context,e.config.globalProperties.$msgbox=eh,e.config.globalProperties.$messageBox=eh,e.config.globalProperties.$alert=eh.alert,e.config.globalProperties.$confirm=eh.confirm,e.config.globalProperties.$prompt=eh.prompt};const th=eh;export{Dc as A,fd as B,hs as C,yv as D,Om as E,fc as F,bv as G,Ku as H,gc as I,Iu as J,Eu as K,tp as L,np as M,ep as N,Wf as O,Xs as P,ad as Q,ev as R,nf as S,Uu as T,Wu as U,$r as V,ym as W,bm as X,Br as a,jm as b,yp as c,th as d,nd as e,Nr as f,Ev as g,Zv as h,Cc as i,tf as j,ef as k,xc as l,Gs as m,df as n,dc as o,pc as p,ei as q,fp as r,$n as s,Fc as t,Vn as u,Bm as v,Pc as w,Fp as x,Np as y,zc as z}; diff --git a/assets/element-plus-2d3d0866.js.gz b/assets/element-plus-2d3d0866.js.gz new file mode 100644 index 00000000..28c9db59 Binary files /dev/null and b/assets/element-plus-2d3d0866.js.gz differ diff --git a/assets/fabric-aa9a28c9.js b/assets/fabric-aa9a28c9.js new file mode 100644 index 00000000..8c9f3165 --- /dev/null +++ b/assets/fabric-aa9a28c9.js @@ -0,0 +1 @@ +var t=Math.pow,e=(t,e,i)=>new Promise(((s,r)=>{var n=t=>{try{a(i.next(t))}catch(e){r(e)}},o=t=>{try{a(i.throw(t))}catch(e){r(e)}},a=t=>t.done?s(t.value):Promise.resolve(t.value).then(n,o);a((i=i.apply(t,e)).next())}));function i(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function s(t){for(var e=1;e=0||(r[i]=t[i]);return r}(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function o(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function a(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}class h{constructor(){r(this,"browserShadowBlurConstant",1),r(this,"DPI",96),r(this,"devicePixelRatio",1),r(this,"perfLimitSizeTotal",2097152),r(this,"maxCacheSideLimit",4096),r(this,"minCacheSideLimit",256),r(this,"disableStyleCopyPaste",!1),r(this,"enableGLFiltering",!0),r(this,"textureSize",4096),r(this,"forceGLPutImageData",!1),r(this,"cachesBoundsOfCurve",!0),r(this,"fontPaths",{}),r(this,"NUM_FRACTION_DIGITS",4)}}const c=new class extends h{constructor(t){super(),this.configure(t)}configure(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(this,t)}addFonts(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fontPaths=s(s({},this.fontPaths),t)}removeFonts(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{delete this.fontPaths[t]}))}clearFonts(){this.fontPaths={}}restoreDefaults(t){const e=new h,i=(null==t?void 0:t.reduce(((t,i)=>(t[i]=e[i],t)),{}))||e;this.configure(i)}};class l{}class u extends l{testPrecision(t,e){const i="precision ".concat(e," float;\nvoid main(){}"),s=t.createShader(t.FRAGMENT_SHADER);return!!s&&(t.shaderSource(s,i),t.compileShader(s),!!t.getShaderParameter(s,t.COMPILE_STATUS))}queryWebGL(t){const e=t.getContext("webgl");e&&(this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),this.GLPrecision=["highp","mediump","lowp"].find((t=>this.testPrecision(e,t))))}isSupported(t){return!!this.maxTextureSize&&this.maxTextureSize>=t}}const d={};let g,f=!1;const p=()=>(f||(c.configure({devicePixelRatio:window.devicePixelRatio||1}),g="ontouchstart"in window||"ontouchstart"in document||window&&window.navigator&&window.navigator.maxTouchPoints>0,f=!0),{document:document,window:window,isTouchSupported:g,WebGLProbe:new u,dispose(){},copyPasteData:d}),m=()=>p().document,_=()=>p().window;const v=new class{constructor(){r(this,"charWidthsCache",{}),r(this,"boundsOfCurveCache",{})}getFontCache(t){let{fontFamily:e,fontStyle:i,fontWeight:s}=t;e=e.toLowerCase(),this.charWidthsCache[e]||(this.charWidthsCache[e]={});const r=this.charWidthsCache[e],n="".concat(i.toLowerCase(),"_").concat((s+"").toLowerCase());return r[n]||(r[n]={}),r[n]}clearFontCache(t){(t=(t||"").toLowerCase())?this.charWidthsCache[t]&&delete this.charWidthsCache[t]:this.charWidthsCache={}}limitDimsByArea(t){const{perfLimitSizeTotal:e}=c,i=Math.sqrt(e*t);return[Math.floor(i),Math.floor(e/i)]}};const y="6.0.0-beta12";function x(){}const C=Math.PI/2,b=2*Math.PI,S=Math.PI/180,w=Object.freeze([1,0,0,1,0,0]),T=16,O=.4477152502,k="center",D="left",M="top",P="bottom",E="right",A="none",j=/\r?\n/,F="json",L="svg";const R=new class{constructor(){this[F]=new Map,this[L]=new Map}getClass(t){const e=this[F].get(t);if(!e)throw new Error("No class registered for ".concat(t));return e}setClass(t,e){e?this[F].set(e,t):(this[F].set(t.type,t),this[F].set(t.type.toLowerCase(),t))}getSVGClass(t){return this[L].get(t)}setSVGClass(t,e){this[L].set(null!=e?e:t.type.toLowerCase(),t)}};const B=new class extends Array{remove(t){const e=this.indexOf(t);e>-1&&this.splice(e,1)}cancelAll(){const t=this.splice(0);return t.forEach((t=>t.abort())),t}cancelByCanvas(t){if(!t)return[];const e=this.filter((e=>{var i;return"object"==typeof e.target&&(null===(i=e.target)||void 0===i?void 0:i.canvas)===t}));return e.forEach((t=>t.abort())),e}cancelByTarget(t){if(!t)return[];const e=this.filter((e=>e.target===t));return e.forEach((t=>t.abort())),e}};class I{constructor(){r(this,"__eventListeners",{})}on(t,e){if(this.__eventListeners||(this.__eventListeners={}),"object"==typeof t)return Object.entries(t).forEach((t=>{let[e,i]=t;this.on(e,i)})),()=>this.off(t);if(e){const i=t;return this.__eventListeners[i]||(this.__eventListeners[i]=[]),this.__eventListeners[i].push(e),()=>this.off(i,e)}return()=>!1}once(t,e){if("object"==typeof t){const e=[];return Object.entries(t).forEach((t=>{let[i,s]=t;e.push(this.once(i,s))})),()=>e.forEach((t=>t()))}if(e){const i=this.on(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r!1}_removeEventListener(t,e){if(this.__eventListeners[t])if(e){const i=this.__eventListeners[t],s=i.indexOf(e);s>-1&&i.splice(s,1)}else this.__eventListeners[t]=[]}off(t,e){if(this.__eventListeners)if(void 0===t)for(const i in this.__eventListeners)this._removeEventListener(i);else"object"==typeof t?Object.entries(t).forEach((t=>{let[e,i]=t;this._removeEventListener(e,i)})):this._removeEventListener(t,e)}fire(t,e){var i;if(!this.__eventListeners)return;const s=null===(i=this.__eventListeners[t])||void 0===i?void 0:i.concat();if(s)for(let r=0;risNaN(t)&&"number"==typeof e?e:t,Y=(t,e)=>{const i=t.indexOf(e);return-1!==i&&t.splice(i,1),t},W=t=>{if(0===t)return 1;switch(Math.abs(t)/C){case 1:case 3:return 0;case 2:return-1}return Math.cos(t)},V=t=>{if(0===t)return 0;const e=t/C,i=Math.sign(t);switch(e){case 1:return i;case 2:return 0;case 3:return-i}return Math.sin(t)};class H{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;"object"==typeof t?(this.x=t.x,this.y=t.y):(this.x=t,this.y=e)}add(t){return new H(this.x+t.x,this.y+t.y)}addEquals(t){return this.x+=t.x,this.y+=t.y,this}scalarAdd(t){return new H(this.x+t,this.y+t)}scalarAddEquals(t){return this.x+=t,this.y+=t,this}subtract(t){return new H(this.x-t.x,this.y-t.y)}subtractEquals(t){return this.x-=t.x,this.y-=t.y,this}scalarSubtract(t){return new H(this.x-t,this.y-t)}scalarSubtractEquals(t){return this.x-=t,this.y-=t,this}multiply(t){return new H(this.x*t.x,this.y*t.y)}scalarMultiply(t){return new H(this.x*t,this.y*t)}scalarMultiplyEquals(t){return this.x*=t,this.y*=t,this}divide(t){return new H(this.x/t.x,this.y/t.y)}scalarDivide(t){return new H(this.x/t,this.y/t)}scalarDivideEquals(t){return this.x/=t,this.y/=t,this}eq(t){return this.x===t.x&&this.y===t.y}lt(t){return this.xt.x&&this.y>t.y}gte(t){return this.x>=t.x&&this.y>=t.y}lerp(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;return e=Math.max(Math.min(1,e),0),new H(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e)}distanceFrom(t){const e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)}midPointFrom(t){return this.lerp(t)}min(t){return new H(Math.min(this.x,t.x),Math.min(this.y,t.y))}max(t){return new H(Math.max(this.x,t.x),Math.max(this.y,t.y))}toString(){return"".concat(this.x,",").concat(this.y)}setXY(t,e){return this.x=t,this.y=e,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setFromPoint(t){return this.x=t.x,this.y=t.y,this}swap(t){const e=this.x,i=this.y;this.x=t.x,this.y=t.y,t.x=e,t.y=i}clone(){return new H(this.x,this.y)}rotate(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z;const i=V(t),s=W(t),r=this.subtract(e);return new H(r.x*s-r.y*i,r.x*i+r.y*s).add(e)}transform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new H(t[0]*this.x+t[2]*this.y+(e?0:t[4]),t[1]*this.x+t[3]*this.y+(e?0:t[5]))}}const z=new H(0,0);function G(t){class e extends t{constructor(){super(...arguments),r(this,"_objects",[])}_onObjectAdded(t){}_onObjectRemoved(t){}_onStackOrderChanged(t){}add(){for(var t=arguments.length,e=new Array(t),i=0;ithis._onObjectAdded(t))),s}insertAt(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;sthis._onObjectAdded(t))),this._objects.length}remove(){const t=this._objects,e=[];for(var i=arguments.length,s=new Array(i),r=0;r{const s=t.indexOf(i);-1!==s&&(t.splice(s,1),e.push(i),this._onObjectRemoved(i))})),e}forEachObject(t){this.getObjects().forEach(((e,i,s)=>t(e,i,s)))}getObjects(){for(var t=arguments.length,e=new Array(t),i=0;it.isType(...e)))}item(t){return this._objects[t]}isEmpty(){return 0===this._objects.length}size(){return this._objects.length}contains(t,i){return!!this._objects.includes(t)||!!i&&this._objects.some((i=>i instanceof e&&i.contains(t,!0)))}complexity(){return this._objects.reduce(((t,e)=>t+=e.complexity?e.complexity():0),0)}sendObjectToBack(t){return!(!t||t===this._objects[0])&&(Y(this._objects,t),this._objects.unshift(t),this._onStackOrderChanged(t),!0)}bringObjectToFront(t){return!(!t||t===this._objects[this._objects.length-1])&&(Y(this._objects,t),this._objects.push(t),this._onStackOrderChanged(t),!0)}sendObjectBackwards(t,e){if(!t)return!1;const i=this._objects.indexOf(t);if(0!==i){const s=this.findNewLowerIndex(t,i,e);return Y(this._objects,t),this._objects.splice(s,0,t),this._onStackOrderChanged(t),!0}return!1}bringObjectForward(t,e){if(!t)return!1;const i=this._objects.indexOf(t);if(i!==this._objects.length-1){const s=this.findNewUpperIndex(t,i,e);return Y(this._objects,t),this._objects.splice(s,0,t),this._onStackOrderChanged(t),!0}return!1}moveObjectTo(t,e){return t!==this._objects[e]&&(Y(this._objects,t),this._objects.splice(e,0,t),this._onStackOrderChanged(t),!0)}findNewLowerIndex(t,e,i){let s;if(i){s=e;for(let i=e-1;i>=0;--i)if(t.isOverlapping(this._objects[i])){s=i;break}}else s=e-1;return s}findNewUpperIndex(t,e,i){let s;if(i){s=e;for(let i=e+1;i1&&void 0!==arguments[1]?arguments[1]:{};const o=[],a=new H(e,i),h=a.add(new H(s,r));for(let c=this._objects.length-1;c>=0;c--){const t=this._objects[c];t.selectable&&t.visible&&(n&&t.intersectsWithRect(a,h,!0)||t.isContainedWithinRect(a,h,!0)||n&&t.containsPoint(a,void 0,!0)||n&&t.containsPoint(h,void 0,!0))&&o.push(t)}return o}}return e}class U extends I{_setOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(const e in t)this.set(e,t[e])}_setObject(t){for(const e in t)this._set(e,t[e])}set(t,e){return"object"==typeof t?this._setObject(t):this._set(t,e),this}_set(t,e){this[t]=e}toggle(t){const e=this.get(t);return"boolean"==typeof e&&this.set(t,!e),this}get(t){return this[t]}}function N(t){return _().requestAnimationFrame(t)}function q(t){return _().cancelAnimationFrame(t)}let K=0;const J=()=>K++,Q=()=>{const t=m().createElement("canvas");if(!t||void 0===t.getContext)throw new Error("Failed to create `canvas` element");return t},Z=()=>m().createElement("img"),$=(t,e,i)=>t.toDataURL("image/".concat(e),i),tt=t=>t*S,et=t=>t/S,it=["translateX","translateY","angle"],st=(t,e,i)=>new H(t).transform(e,i),rt=t=>{const e=1/(t[0]*t[3]-t[1]*t[2]),i=[e*t[3],-e*t[1],-e*t[2],e*t[0],0,0],{x:s,y:r}=new H(t[4],t[5]).transform(i,!0);return i[4]=-s,i[5]=-r,i},nt=(t,e,i)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],i?0:t[0]*e[4]+t[2]*e[5]+t[4],i?0:t[1]*e[4]+t[3]*e[5]+t[5]],ot=(t,e)=>t.reduceRight(((t,i)=>i?nt(i,t,e):t),w),at=t=>{const e=Math.atan2(t[1],t[0]),i=Math.pow(t[0],2)+Math.pow(t[1],2),s=Math.sqrt(i),r=(t[0]*t[3]-t[2]*t[1])/s,n=Math.atan2(t[0]*t[2]+t[1]*t[3],i);return{angle:et(e),scaleX:s,scaleY:r,skewX:et(n),skewY:0,translateX:t[4]||0,translateY:t[5]||0}},ht=function(t){return[1,0,0,1,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0]};function ct(){let{angle:t=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{x:e=0,y:i=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=tt(t),r=W(s),n=V(s);return[r,n,-n,r,e?e-(r*e-n*i):0,i?i-(n*e+r*i):0]}const lt=function(t){return[t,0,0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,0,0]},ut=t=>Math.tan(tt(t)),dt=t=>[1,0,ut(t),1,0,0],gt=t=>[1,ut(t),0,1,0,0],ft=t=>{let{scaleX:e=1,scaleY:i=1,flipX:s=!1,flipY:r=!1,skewX:n=0,skewY:o=0}=t;return ot([lt(s?-e:e,r?-i:i),n&&dt(n),o&>(o)],!0)},pt=t=>{let{translateX:e=0,translateY:i=0,angle:s=0}=t,r=n(t,it);return ot([ht(e,i),s&&ct({angle:s}),ft(r)])},mt=function(t){let{signal:e,crossOrigin:i=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(s,r){if(e&&e.aborted)return r(new Error("`options.signal` is in `aborted` state"));const n=Z();let o;e&&(o=function(t){n.src="",r(t)},e.addEventListener("abort",o,{once:!0}));const a=function(){n.onload=n.onerror=null,o&&(null==e||e.removeEventListener("abort",o)),s(n)};t?(n.onload=a,n.onerror=function(){o&&(null==e||e.removeEventListener("abort",o)),r(new Error("Error loading "+n.src))},i&&(n.crossOrigin=i),n.src=t):a()}))},_t=function(t){let{signal:e,reviver:i=x}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((s,r)=>{const n=[];e&&e.addEventListener("abort",r,{once:!0}),Promise.all(t.map((t=>R.getClass(t.type).fromObject(t,{signal:e,reviver:i}).then((e=>(i(t,e),n.push(e),e)))))).then(s).catch((t=>{n.forEach((t=>{t.dispose&&t.dispose()})),r(t)})).finally((()=>{e&&e.removeEventListener("abort",r)}))}))},vt=function(t){let{signal:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,s)=>{const r=[];e&&e.addEventListener("abort",s,{once:!0});const n=Object.values(t).map((t=>t?t.colorStops?new(R.getClass("gradient"))(t):t.type?_t([t],{signal:e}).then((t=>{let[e]=t;return r.push(e),e})):t.source?R.getClass("pattern").fromObject(t,{signal:e}).then((t=>(r.push(t),t))):t:t)),o=Object.keys(t);Promise.all(n).then((t=>t.reduce(((t,e,i)=>(t[o[i]]=e,t)),{}))).then(i).catch((t=>{r.forEach((t=>{t.dispose&&t.dispose()})),s(t)})).finally((()=>{e&&e.removeEventListener("abort",s)}))}))},yt=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).reduce(((e,i)=>(i in t&&(e[i]=t[i]),e)),{})},xt=(t,e)=>Object.keys(t).reduce(((i,s)=>(e(t[s],s,t)&&(i[s]=t[s]),i)),{}),Ct={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#639",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32"},bt=(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t),St=(t,e,i,s)=>{t/=255,e/=255,i/=255;const r=Math.max(t,e,i),n=Math.min(t,e,i);let o,a;const h=(r+n)/2;if(r===n)o=a=0;else{const s=r-n;switch(a=h>.5?s/(2-r-n):s/(r+n),r){case t:o=(e-i)/s+(e0&&void 0!==arguments[0]?arguments[0]:"1";return parseFloat(t)/(t.endsWith("%")?100:1)},Tt=t=>Math.min(Math.round(t),255).toString(16).toUpperCase().padStart(2,"0"),Ot=t=>{let[e,i,s,r=1]=t;const n=Math.round(.3*e+.59*i+.11*s);return[n,n,n,r]};class kt{constructor(t){if(t)if(t instanceof kt)this.setSource([...t._source]);else if(Array.isArray(t)){const[e,i,s,r=1]=t;this.setSource([e,i,s,r])}else this.setSource(this._tryParsingColor(t));else this.setSource([0,0,0,1])}_tryParsingColor(t){return t in Ct&&(t=Ct[t]),"transparent"===t?[255,255,255,0]:kt.sourceFromHex(t)||kt.sourceFromRgb(t)||kt.sourceFromHsl(t)||[0,0,0,1]}getSource(){return this._source}setSource(t){this._source=t}toRgb(){const[t,e,i]=this.getSource();return"rgb(".concat(t,",").concat(e,",").concat(i,")")}toRgba(){return"rgba(".concat(this.getSource().join(","),")")}toHsl(){const[t,e,i]=St(...this.getSource());return"hsl(".concat(t,",").concat(e,"%,").concat(i,"%)")}toHsla(){const[t,e,i,s]=St(...this.getSource());return"hsla(".concat(t,",").concat(e,"%,").concat(i,"%,").concat(s,")")}toHex(){return this.toHexa().slice(0,6)}toHexa(){const[t,e,i,s]=this.getSource();return"".concat(Tt(t)).concat(Tt(e)).concat(Tt(i)).concat(Tt(Math.round(255*s)))}getAlpha(){return this.getSource()[3]}setAlpha(t){return this._source[3]=t,this}toGrayscale(){return this.setSource(Ot(this.getSource())),this}toBlackWhite(t){const[e,,,i]=Ot(this.getSource()),s=e<(t||127)?0:255;return this.setSource([s,s,s,i]),this}overlayWith(t){t instanceof kt||(t=new kt(t));const e=this.getSource(),i=t.getSource(),[s,r,n]=e.map(((t,e)=>Math.round(.5*t+.5*i[e])));return this.setSource([s,r,n,e[3]]),this}static fromRgb(t){return kt.fromRgba(t)}static fromRgba(t){return new kt(kt.sourceFromRgb(t))}static sourceFromRgb(t){const e=t.match(/^rgba?\(\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*(?:\s*[,/]\s*(\d{0,3}(?:\.\d+)?%?)\s*)?\)$/i);if(e){const[t,i,s]=e.slice(1,4).map((t=>{const e=parseFloat(t);return t.endsWith("%")?Math.round(2.55*e):e}));return[t,i,s,wt(e[4])]}}static fromHsl(t){return kt.fromHsla(t)}static fromHsla(t){return new kt(kt.sourceFromHsl(t))}static sourceFromHsl(t){const e=t.match(/^hsla?\(\s*([+-]?\d{1,3})\s*[\s|,]\s*(\d{1,3}%)\s*[\s|,]\s*(\d{1,3}%)\s*(?:\s*[,/]\s*(\d*(?:\.\d+)?%?)\s*)?\)$/i);if(!e)return;const i=(parseFloat(e[1])%360+360)%360/360,s=parseFloat(e[2])/100,r=parseFloat(e[3])/100;let n,o,a;if(0===s)n=o=a=r;else{const t=r<=.5?r*(s+1):r+s-r*s,e=2*r-t;n=bt(e,t,i+1/3),o=bt(e,t,i),a=bt(e,t,i-1/3)}return[Math.round(255*n),Math.round(255*o),Math.round(255*a),wt(e[4])]}static fromHex(t){return new kt(kt.sourceFromHex(t))}static sourceFromHex(t){if(t.match(/^#?(([0-9a-f]){3,4}|([0-9a-f]{2}){3,4})$/i)){const e=t.slice(t.indexOf("#")+1);let i;i=e.length<=4?e.split("").map((t=>t+t)):e.match(/.{2}/g);const[s,r,n,o=255]=i.map((t=>parseInt(t,16)));return[s,r,n,o/255]}}}const Dt=(t,e)=>parseFloat(Number(t).toFixed(e)),Mt=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;const i=/\D{0,2}$/.exec(t),s=parseFloat(t),r=c.DPI;switch(null==i?void 0:i[0]){case"mm":return s*r/25.4;case"cm":return s*r/2.54;case"in":return s*r;case"pt":return s*r/72;case"pc":return s*r/72*12;case"em":return s*e;default:return s}},Pt=t=>{const[e,i]=t.trim().split(" "),[s,r]=(n=e)&&n!==A?[n.slice(1,4),n.slice(5,8)]:n===A?[n,n]:["Mid","Mid"];var n;return{meetOrSlice:i||"meet",alignX:s,alignY:r}},Et=t=>"matrix("+t.map((t=>Dt(t,c.NUM_FRACTION_DIGITS))).join(" ")+")",At=(t,e)=>{if(e){if(e.toLive)return"".concat(t,": url(#SVGID_").concat(e.id,"); ");{const i=new kt(e),s=i.getAlpha();let r="".concat(t,": ").concat(i.toRgb(),"; ");return 1!==s&&(r+="".concat(t,"-opacity: ").concat(s.toString(),"; ")),r}}return"".concat(t,": none; ")},jt=t=>!!t&&void 0!==t.toLive,Ft=t=>!!t&&"function"==typeof t.toObject,Lt=t=>!!t&&void 0!==t.offsetX&&void 0!==t.source,Rt=t=>!!t&&Array.isArray(t._objects),Bt=t=>!!t&&t.isType("Text","IText","Textbox"),It=t=>!!t&&t.isType("IText","Textbox"),Xt=t=>!!t&&"function"==typeof t.onDragStart&&"function"==typeof t.shouldStartDragging;function Yt(t){let e=0,i=0;if(!t)return{left:e,top:i};const s=Wt(t),r=s.documentElement,n=s.body||{scrollLeft:0,scrollTop:0};for(;t&&(t.parentNode||t.host)&&((t=t.parentNode||t.host)===s?(e=n.scrollLeft||r.scrollLeft||0,i=n.scrollTop||r.scrollTop||0):(e+=t.scrollLeft||0,i+=t.scrollTop||0),1!==t.nodeType||"fixed"!==t.style.position););return{left:e,top:i}}const Wt=t=>t.ownerDocument||null,Vt=t=>{var e;return(null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||null};function Ht(t,e){const i=t.style;i&&("string"==typeof e?t.style.cssText+=";"+e:Object.entries(e).forEach((t=>{let[e,s]=t;return i.setProperty(e,s)})))}const zt=function(t,e,i){let{width:s,height:r}=i,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;t.width=s,t.height=r,n>1&&(t.setAttribute("width",(s*n).toString()),t.setAttribute("height",(r*n).toString()),e.scale(n,n))};const Gt=(t,e)=>{let{width:i,height:s}=e;i&&(t.style.width="number"==typeof i?"".concat(i,"px"):i),s&&(t.style.height="number"==typeof s?"".concat(s,"px"):s)};function Ut(t){return void 0!==t.onselectstart&&(t.onselectstart=()=>!1),t.style.userSelect=A,t}class Nt{constructor(t){r(this,"_originalCanvasStyle",void 0),r(this,"lower",void 0);const e=this.createLowerCanvas(t);this.lower={el:e,ctx:e.getContext("2d")}}createLowerCanvas(t){const e=(i=t)&&void 0!==i.getContext?t:m().getElementById(t)||Q();var i;if(e.hasAttribute("data-fabric"))throw new Error("fabric.js: trying to initialize a canvas that has already been initialized");return this._originalCanvasStyle=e.style.cssText,e.setAttribute("data-fabric","main"),e.classList.add("lower-canvas"),e}cleanupDOM(t){let{width:e,height:i}=t;const{el:s}=this.lower;s.classList.remove("lower-canvas"),s.removeAttribute("data-fabric"),s.setAttribute("width","".concat(e)),s.setAttribute("height","".concat(i)),s.style.cssText=this._originalCanvasStyle||"",this._originalCanvasStyle=void 0}setDimensions(t,e){const{el:i,ctx:s}=this.lower;zt(i,s,t,e)}setCSSDimensions(t){Gt(this.lower.el,t)}calcOffset(){return function(t){var e;let i={left:0,top:0};const s=t&&Wt(t),r={left:0,top:0},n={borderLeftWidth:D,borderTopWidth:M,paddingLeft:D,paddingTop:M};if(!s)return r;const o=(null===(e=Vt(t))||void 0===e?void 0:e.getComputedStyle(t,null))||{};for(const c in n)r[n[c]]+=parseInt(o[c],10)||0;const a=s.documentElement;void 0!==t.getBoundingClientRect&&(i=t.getBoundingClientRect());const h=Yt(t);return{left:i.left+h.left-(a.clientLeft||0)+r.left,top:i.top+h.top-(a.clientTop||0)+r.top}}(this.lower.el)}dispose(){p().dispose(this.lower.el),delete this.lower}}const qt={backgroundVpt:!0,backgroundColor:"",overlayVpt:!0,overlayColor:"",includeDefaultValues:!0,svgViewportTransformation:!0,renderOnAddRemove:!0,skipOffscreen:!0,enableRetinaScaling:!0,imageSmoothingEnabled:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,viewportTransform:[...w]};class Kt extends(G(U)){get lowerCanvasEl(){var t;return null===(t=this.elements.lower)||void 0===t?void 0:t.el}get contextContainer(){var t;return null===(t=this.elements.lower)||void 0===t?void 0:t.ctx}static getDefaults(){return Kt.ownDefaults}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),Object.assign(this,this.constructor.getDefaults()),this.set(e),this.initElements(t),this._setDimensionsImpl({width:this.width||this.elements.lower.el.width||0,height:this.height||this.elements.lower.el.height||0}),this.viewportTransform=[...this.viewportTransform],this.calcViewportBoundaries()}initElements(t){this.elements=new Nt(t)}add(){const t=super.add(...arguments);return arguments.length>0&&this.renderOnAddRemove&&this.requestRenderAll(),t}insertAt(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s0&&this.renderOnAddRemove&&this.requestRenderAll(),r}remove(){const t=super.remove(...arguments);return t.length>0&&this.renderOnAddRemove&&this.requestRenderAll(),t}_onObjectAdded(t){t.canvas&&t.canvas!==this&&t.canvas.remove(t),t._set("canvas",this),t.setCoords(),this.fire("object:added",{target:t}),t.fire("added",{target:this})}_onObjectRemoved(t){t._set("canvas",void 0),this.fire("object:removed",{target:t}),t.fire("removed",{target:this})}_onStackOrderChanged(){this.renderOnAddRemove&&this.requestRenderAll()}_isRetinaScaling(){return c.devicePixelRatio>1&&this.enableRetinaScaling}getRetinaScaling(){return this._isRetinaScaling()?Math.max(1,c.devicePixelRatio):1}calcOffset(){return this._offset=this.elements.calcOffset()}getWidth(){return this.width}getHeight(){return this.height}setWidth(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDimensions({width:t},e)}setHeight(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setDimensions({height:t},e)}_setDimensionsImpl(t){let{cssOnly:e=!1,backstoreOnly:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e){const e=s({width:this.width,height:this.height},t);this.elements.setDimensions(e,this.getRetinaScaling()),this.hasLostContext=!0,this.width=e.width,this.height=e.height}i||this.elements.setCSSDimensions(t),this.calcOffset()}setDimensions(t){let{cssOnly:e=!1,backstoreOnly:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._setDimensionsImpl(t,{cssOnly:e,backstoreOnly:i}),e||this.requestRenderAll()}getZoom(){return this.viewportTransform[0]}setViewportTransform(t){const e=this.backgroundImage,i=this.overlayImage,s=this._objects.length;this.viewportTransform=t;for(let r=0;rthis.renderAndReset())))}calcViewportBoundaries(){const t=this.width,e=this.height,i=rt(this.viewportTransform),s=st({x:0,y:0},i),r=st({x:t,y:e},i),n=s.min(r),o=s.max(r);return this.vptCoords={tl:n,tr:new H(o.x,n.y),bl:new H(n.x,o.y),br:o}}cancelRequestedRender(){this.nextRenderHandle&&(q(this.nextRenderHandle),this.nextRenderHandle=0)}drawControls(t){}renderCanvas(t,e){if(this.destroyed)return;const i=this.viewportTransform,s=this.clipPath;this.calcViewportBoundaries(),this.clearContext(t),t.imageSmoothingEnabled=this.imageSmoothingEnabled,t.patternQuality="best",this.fire("before:render",{ctx:t}),this._renderBackground(t),t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(t,e),t.restore(),this.controlsAboveOverlay||this.drawControls(t),s&&(s._set("canvas",this),s.shouldCache(),s._transformDone=!0,s.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(t,s)),this._renderOverlay(t),this.controlsAboveOverlay&&this.drawControls(t),this.fire("after:render",{ctx:t}),this.__cleanupTask&&(this.__cleanupTask(),this.__cleanupTask=void 0)}drawClipPathOnCanvas(t,e){const i=this.viewportTransform;t.save(),t.transform(...i),t.globalCompositeOperation="destination-in",e.transform(t),t.scale(1/e.zoomX,1/e.zoomY),t.drawImage(e._cacheCanvas,-e.cacheTranslationX,-e.cacheTranslationY),t.restore()}_renderObjects(t,e){for(let i=0,s=e.length;i!t.excludeFromExport)).map((i=>this._toObject(i,t,e)))},this.__serializeBgOverlay(t,e)),r?{clipPath:r}:null)}_toObject(t,e,i){let s;this.includeDefaultValues||(s=t.includeDefaultValues,t.includeDefaultValues=!1);const r=t[e](i);return this.includeDefaultValues||(t.includeDefaultValues=!!s),r}__serializeBgOverlay(t,e){const i={},s=this.backgroundImage,r=this.overlayImage,n=this.backgroundColor,o=this.overlayColor;return jt(n)?n.excludeFromExport||(i.background=n.toObject(e)):n&&(i.background=n),jt(o)?o.excludeFromExport||(i.overlay=o.toObject(e)):o&&(i.overlay=o),s&&!s.excludeFromExport&&(i.backgroundImage=this._toObject(s,t,e)),r&&!r.excludeFromExport&&(i.overlayImage=this._toObject(r,t,e)),i}toSVG(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;t.reviver=e;const i=[];return this._setSVGPreamble(i,t),this._setSVGHeader(i,t),this.clipPath&&i.push('\n')),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",e),this._setSVGObjects(i,e),this.clipPath&&i.push("\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",e),i.push(""),i.join("")}_setSVGPreamble(t,e){e.suppressPreamble||t.push('\n','\n')}_setSVGHeader(t,e){const i=e.width||"".concat(this.width),s=e.height||"".concat(this.height),r=c.NUM_FRACTION_DIGITS,n=e.viewBox;let o;if(n)o='viewBox="'.concat(n.x," ").concat(n.y," ").concat(n.width," ").concat(n.height,'" ');else if(this.svgViewportTransformation){const t=this.viewportTransform;o='viewBox="'.concat(Dt(-t[4]/t[0],r)," ").concat(Dt(-t[5]/t[3],r)," ").concat(Dt(this.width/t[0],r)," ").concat(Dt(this.height/t[3],r),'" ')}else o='viewBox="0 0 '.concat(this.width," ").concat(this.height,'" ');t.push("\n',"Created with Fabric.js ",y,"\n","\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(e),"\n")}createSVGClipPathMarkup(t){const e=this.clipPath;return e?(e.clipPathId="CLIPPATH_".concat(J()),'\n').concat(e.toClipPathSVG(t.reviver),"\n")):""}createSVGRefElementsMarkup(){return["background","overlay"].map((t=>{const e=this["".concat(t,"Color")];if(jt(e)){const i=this["".concat(t,"Vpt")],s=this.viewportTransform,r={isType:()=>!1,width:this.width/(i?s[0]:1),height:this.height/(i?s[3]:1)};return e.toSVG(r,{additionalTransform:i?Et(s):""})}})).join("")}createSVGFontFacesMarkup(){const t=[],e={},i=c.fontPaths;this._objects.forEach((function e(i){t.push(i),Rt(i)&&i._objects.forEach(e)})),t.forEach((t=>{if(!Bt(t))return;const{styles:s,fontFamily:r}=t;!e[r]&&i[r]&&(e[r]=!0,s&&Object.values(s).forEach((t=>{Object.values(t).forEach((t=>{let{fontFamily:s=""}=t;!e[s]&&i[s]&&(e[s]=!0)}))})))}));const s=Object.keys(e).map((t=>"\t\t@font-face {\n\t\t\tfont-family: '".concat(t,"';\n\t\t\tsrc: url('").concat(i[t],"');\n\t\t}\n"))).join("");return s?'\t\n"):""}_setSVGObjects(t,e){this.forEachObject((i=>{i.excludeFromExport||this._setSVGObject(t,i,e)}))}_setSVGObject(t,e,i){t.push(e.toSVG(i))}_setSVGBgOverlayImage(t,e,i){const s=this[e];s&&!s.excludeFromExport&&s.toSVG&&t.push(s.toSVG(i))}_setSVGBgOverlayColor(t,e){const i=this["".concat(e,"Color")];if(i)if(jt(i)){const s=i.repeat||"",r=this.width,n=this.height,o=this["".concat(e,"Vpt")]?Et(rt(this.viewportTransform)):"";t.push('\n'))}else t.push('\n")}loadFromJSON(t,e){let{signal:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return Promise.reject(new Error("fabric.js: `json` is undefined"));const s="string"==typeof t?JSON.parse(t):t,{objects:r=[],backgroundImage:n,background:o,overlayImage:a,overlay:h,clipPath:c}=s,l=this.renderOnAddRemove;return this.renderOnAddRemove=!1,Promise.all([_t(r,{reviver:e,signal:i}),vt({backgroundImage:n,backgroundColor:o,overlayImage:a,overlayColor:h,clipPath:c},{signal:i})]).then((t=>{let[e,i]=t;return this.clear(),this.add(...e),this.set(s),this.set(i),this.renderOnAddRemove=l,this}))}clone(t){const e=this.toObject(t);return this.cloneWithoutData().loadFromJSON(e)}cloneWithoutData(){const t=Q();return t.width=this.width,t.height=this.height,new this.constructor(t)}toDataURL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{format:e="png",quality:i=1,multiplier:s=1,enableRetinaScaling:r=!1}=t,n=s*(r?this.getRetinaScaling():1);return $(this.toCanvasElement(n,t),e,i)}toCanvasElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,{width:e,height:i,left:s,top:r,filter:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=(e||this.width)*t,a=(i||this.height)*t,h=this.getZoom(),c=this.width,l=this.height,u=h*t,d=this.viewportTransform,g=[u,0,0,u,(d[4]-(s||0))*t,(d[5]-(r||0))*t],f=this.enableRetinaScaling,p=Q(),m=n?this._objects.filter((t=>n(t))):this._objects;return p.width=o,p.height=a,this.enableRetinaScaling=!1,this.viewportTransform=g,this.width=o,this.height=a,this.calcViewportBoundaries(),this.renderCanvas(p.getContext("2d"),m),this.viewportTransform=d,this.width=c,this.height=l,this.calcViewportBoundaries(),this.enableRetinaScaling=f,p}dispose(){return!this.disposed&&this.elements.cleanupDOM({width:this.width,height:this.height}),this.disposed=!0,new Promise(((t,e)=>{const i=()=>{this.destroy(),t(!0)};i.kill=e,this.__cleanupTask&&this.__cleanupTask.kill("aborted"),this.destroyed?t(!1):this.nextRenderHandle?this.__cleanupTask=i:i()}))}destroy(){this.destroyed=!0,this.cancelRequestedRender(),this.forEachObject((t=>t.dispose())),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose(),this.backgroundImage=void 0,this.overlayImage&&this.overlayImage.dispose(),this.overlayImage=void 0,this.elements.dispose()}toString(){return"#")}}r(Kt,"ownDefaults",qt);const Jt=["touchstart","touchmove","touchend"];const Qt=t=>{const e=Yt(t.target),i=function(t){const e=t.changedTouches;return e&&e[0]?e[0]:t}(t);return new H(i.clientX+e.left,i.clientY+e.top)},Zt=t=>Jt.includes(t.type)||"touch"===t.pointerType,$t=t=>{t.preventDefault(),t.stopPropagation()},te=t=>{if(0===t.length)return{left:0,top:0,width:0,height:0};const{min:e,max:i}=t.reduce(((t,e)=>{let{min:i,max:s}=t;return{min:i.min(e),max:s.max(e)}}),{min:new H(t[0]),max:new H(t[0])}),s=i.subtract(e);return{left:e.x,top:e.y,width:s.x,height:s.y}},ee=["translateX","translateY","scaleX","scaleY"],ie=(t,e)=>se(t,nt(e,t.calcOwnMatrix())),se=(t,e)=>{const i=at(e),{translateX:s,translateY:r,scaleX:o,scaleY:a}=i,h=n(i,ee),c=new H(s,r);t.flipX=!1,t.flipY=!1,Object.assign(t,h),t.set({scaleX:o,scaleY:a}),t.setPositionByOrigin(c,k,k)},re=t=>{t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.flipX=!1,t.flipY=!1,t.rotate(0)},ne=t=>({scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,angle:t.angle,left:t.left,flipX:t.flipX,flipY:t.flipY,top:t.top}),oe=(t,e,i)=>{const s=t/2,r=e/2,n=ft(i),o=[new H(-s,-r),new H(s,-r),new H(-s,r),new H(s,r)].map((t=>t.transform(n))),a=te(o);return new H(a.width,a.height)},ae=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w;return nt(rt(arguments.length>1&&void 0!==arguments[1]?arguments[1]:w),t)},he=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return t.transform(ae(e,i))},ce=(t,e,i)=>{const s=ae(e,i);return se(t,nt(s,t.calcOwnMatrix())),s},le=(t,e)=>{var i;const{transform:{target:r}}=e;null===(i=r.canvas)||void 0===i||i.fire("object:".concat(t),s(s({},e),{},{target:r})),r.fire(t,e)},ue={left:-.5,top:-.5,center:0,bottom:.5,right:.5},de=t=>"string"==typeof t?ue[t]:t-.5,ge="not-allowed";function fe(t){return t.originX===k&&t.originY===k}function pe(t){return.5-de(t)}const me=(t,e)=>t[e],_e=(t,e,i,s)=>({e:t,transform:e,pointer:new H(i,s)});function ve(t,e){const i=t.getTotalAngle()+et(Math.atan2(e.y,e.x))+360;return Math.round(i%360/45)}function ye(t,e,i,s,r){var n;let{target:o,corner:a}=t;const h=o.controls[a],c=(null===(n=o.canvas)||void 0===n?void 0:n.getZoom())||1,l=o.padding/c,u=function(t,e,i,s){const r=t.getRelativeCenterPoint(),n=void 0!==i&&void 0!==s?t.translateToGivenOrigin(r,k,k,i,s):new H(t.left,t.top);return(t.angle?e.rotate(-tt(t.angle),r):e).subtract(n)}(o,new H(s,r),e,i);return u.x>=l&&(u.x-=l),u.x<=-l&&(u.x+=l),u.y>=l&&(u.y-=l),u.y<=l&&(u.y+=l),u.x-=h.offsetX,u.y-=h.offsetY,u}const xe=(t,e,i,s)=>{const{target:r,offsetX:n,offsetY:o}=e,a=i-n,h=s-o,c=!me(r,"lockMovementX")&&r.left!==a,l=!me(r,"lockMovementY")&&r.top!==h;return c&&r.set(D,a),l&&r.set(M,h),(c||l)&&le("moving",_e(t,e,i,s)),c||l};class Ce{getSvgStyles(t){const e=this.fillRule?this.fillRule:"nonzero",i=this.strokeWidth?this.strokeWidth:"0",s=this.strokeDashArray?this.strokeDashArray.join(" "):A,r=this.strokeDashOffset?this.strokeDashOffset:"0",n=this.strokeLineCap?this.strokeLineCap:"butt",o=this.strokeLineJoin?this.strokeLineJoin:"miter",a=this.strokeMiterLimit?this.strokeMiterLimit:"4",h=void 0!==this.opacity?this.opacity:"1",c=this.visible?"":" visibility: hidden;",l=t?"":this.getSvgFilter(),u=At("fill",this.fill);return[At("stroke",this.stroke),"stroke-width: ",i,"; ","stroke-dasharray: ",s,"; ","stroke-linecap: ",n,"; ","stroke-dashoffset: ",r,"; ","stroke-linejoin: ",o,"; ","stroke-miterlimit: ",a,"; ",u,"fill-rule: ",e,"; ","opacity: ",h,";",l,c].join("")}getSvgFilter(){return this.shadow?"filter: url(#SVGID_".concat(this.shadow.id,");"):""}getSvgCommons(){return[this.id?'id="'.concat(this.id,'" '):"",this.clipPath?'clip-path="url(#'.concat(this.clipPath.clipPathId,')" '):""].join("")}getSvgTransform(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const i=t?this.calcTransformMatrix():this.calcOwnMatrix(),s='transform="'.concat(Et(i));return"".concat(s).concat(e,'" ')}_toSVG(t){return[""]}toSVG(t){return this._createBaseSVGMarkup(this._toSVG(t),{reviver:t})}toClipPathSVG(t){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(t),{reviver:t})}_createBaseClipPathSVGMarkup(t){let{reviver:e,additionalTransform:i=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=[this.getSvgTransform(!0,i),this.getSvgCommons()].join(""),r=t.indexOf("COMMON_PARTS");return t[r]=s,e?e(t.join("")):t.join("")}_createBaseSVGMarkup(t){let{noStyle:e,reviver:i,withShadow:s,additionalTransform:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e?"":'style="'.concat(this.getSvgStyles(),'" '),o=s?'style="'.concat(this.getSvgFilter(),'" '):"",a=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",c=a&&a.absolutePositioned,l=this.stroke,u=this.fill,d=this.shadow,g=[],f=t.indexOf("COMMON_PARTS");let p;a&&(a.clipPathId="CLIPPATH_".concat(J()),p='\n').concat(a.toClipPathSVG(i),"\n")),c&&g.push("\n"),g.push("\n");const m=[n,h,e?"":this.addPaintOrder()," ",r?'transform="'.concat(r,'" '):""].join("");return t[f]=m,jt(u)&&g.push(u.toSVG(this)),jt(l)&&g.push(l.toSVG(this)),d&&g.push(d.toSVG(this)),a&&g.push(p),g.push(t.join("")),g.push("\n"),c&&g.push("\n"),i?i(g.join("")):g.join("")}addPaintOrder(){return"fill"!==this.paintFirst?' paint-order="'.concat(this.paintFirst,'" '):""}}const be=(t,e,i,s)=>(tt*Math.pow(2,10*(s-=1))*Math.sin((s*r-e)*b/i),we=(t,e,i,s)=>-i*Math.cos(t/s*C)+i+e,Te=(t,e,i,s)=>(t/=s)<1/2.75?i*(7.5625*t*t)+e:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e,Oe=(t,e,i,s)=>i-Te(s-t,0,i,s)+e;var ke=Object.freeze({__proto__:null,defaultEasing:we,easeInBack:function(t,e,i,s){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.70158;return i*(t/=s)*t*((r+1)*t-r)+e},easeInBounce:Oe,easeInCirc:(t,e,i,s)=>-i*(Math.sqrt(1-(t/=s)*t)-1)+e,easeInCubic:(e,i,s,r)=>s*t(e/r,3)+i,easeInElastic:(t,e,i,s)=>{const r=i;let n=0;if(0===t)return e;if(1===(t/=s))return e+i;n||(n=.3*s);const{a:o,s:a,p:h}=be(r,i,n,1.70158);return-Se(o,a,h,t,s)+e},easeInExpo:(e,i,s,r)=>0===e?i:s*t(2,10*(e/r-1))+i,easeInOutBack:function(t,e,i,s){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.70158;return(t/=s/2)<1?i/2*(t*t*((1+(r*=1.525))*t-r))+e:i/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e},easeInOutBounce:(t,e,i,s)=>t(e/=r/2)<1?-s/2*(Math.sqrt(1-t(e,2))-1)+i:s/2*(Math.sqrt(1-(e-=2)*e)+1)+i,easeInOutCubic:(e,i,s,r)=>(e/=r/2)<1?s/2*t(e,3)+i:s/2*(t(e-2,3)+2)+i,easeInOutElastic:(t,e,i,s)=>{const r=i;let n=0;if(0===t)return e;if(2===(t/=s/2))return e+i;n||(n=s*(.3*1.5));const{a:o,s:a,p:h,c:c}=be(r,i,n,1.70158);return t<1?-.5*Se(o,a,h,t,s)+e:o*Math.pow(2,-10*(t-=1))*Math.sin((t*s-a)*b/h)*.5+c+e},easeInOutExpo:(e,i,s,r)=>0===e?i:e===r?i+s:(e/=r/2)<1?s/2*t(2,10*(e-1))+i:s/2*-(t(2,-10*--e)+2)+i,easeInOutQuad:(e,i,s,r)=>(e/=r/2)<1?s/2*t(e,2)+i:-s/2*(--e*(e-2)-1)+i,easeInOutQuart:(e,i,s,r)=>(e/=r/2)<1?s/2*t(e,4)+i:-s/2*((e-=2)*t(e,3)-2)+i,easeInOutQuint:(e,i,s,r)=>(e/=r/2)<1?s/2*t(e,5)+i:s/2*(t(e-2,5)+2)+i,easeInOutSine:(t,e,i,s)=>-i/2*(Math.cos(Math.PI*t/s)-1)+e,easeInQuad:(t,e,i,s)=>i*(t/=s)*t+e,easeInQuart:(e,i,s,r)=>s*(e/=r)*t(e,3)+i,easeInQuint:(e,i,s,r)=>s*t(e/r,5)+i,easeInSine:(t,e,i,s)=>-i*Math.cos(t/s*C)+i+e,easeOutBack:function(t,e,i,s){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.70158;return i*((t=t/s-1)*t*((r+1)*t+r)+1)+e},easeOutBounce:Te,easeOutCirc:(t,e,i,s)=>i*Math.sqrt(1-(t=t/s-1)*t)+e,easeOutCubic:(e,i,s,r)=>s*(t(e/r-1,3)+1)+i,easeOutElastic:(e,i,s,r)=>{const n=s;let o=0;if(0===e)return i;if(1===(e/=r))return i+s;o||(o=.3*r);const{a:a,s:h,p:c,c:l}=be(n,s,o,1.70158);return a*t(2,-10*e)*Math.sin((e*r-h)*b/c)+l+i},easeOutExpo:(e,i,s,r)=>e===r?i+s:s*-(t(2,-10*e/r)+1)+i,easeOutQuad:(t,e,i,s)=>-i*(t/=s)*(t-2)+e,easeOutQuart:(e,i,s,r)=>-s*((e=e/r-1)*t(e,3)-1)+i,easeOutQuint:(e,i,s,r)=>s*(t(e/r-1,5)+1)+i,easeOutSine:(t,e,i,s)=>i*Math.sin(t/s*C)+e});const De=()=>!1;class Me{constructor(t){let{startValue:e,byValue:i,duration:s=500,delay:n=0,easing:o=we,onStart:a=x,onChange:h=x,onComplete:c=x,abort:l=De,target:u}=t;r(this,"_state","pending"),r(this,"durationProgress",0),r(this,"valueProgress",0),this.tick=this.tick.bind(this),this.duration=s,this.delay=n,this.easing=o,this._onStart=a,this._onChange=h,this._onComplete=c,this._abort=l,this.target=u,this.startValue=e,this.byValue=i,this.value=this.startValue,this.endValue=Object.freeze(this.calculate(this.duration).value)}get state(){return this._state}isDone(){return"aborted"===this._state||"completed"===this._state}start(){const t=t=>{"pending"===this._state&&(this.startTime=t||+new Date,this._state="running",this._onStart(),this.tick(this.startTime))};this.register(),this.delay>0?setTimeout((()=>N(t)),this.delay):N(t)}tick(t){const e=(t||+new Date)-this.startTime,i=Math.min(e,this.duration);this.durationProgress=i/this.duration;const{value:s,valueProgress:r}=this.calculate(i);this.value=Object.freeze(s),this.valueProgress=r,"aborted"!==this._state&&(this._abort(this.value,this.valueProgress,this.durationProgress)?(this._state="aborted",this.unregister()):e>=this.duration?(this.durationProgress=this.valueProgress=1,this._onChange(this.endValue,this.valueProgress,this.durationProgress),this._state="completed",this._onComplete(this.endValue,this.valueProgress,this.durationProgress),this.unregister()):(this._onChange(this.value,this.valueProgress,this.durationProgress),N(this.tick)))}register(){B.push(this)}unregister(){B.remove(this)}abort(){this._state="aborted",this.unregister()}}const Pe=["startValue","endValue"];class Ee extends Me{constructor(t){let{startValue:e=0,endValue:i=100}=t;super(s(s({},n(t,Pe)),{},{startValue:e,byValue:i-e}))}calculate(t){const e=this.easing(t,this.startValue,this.byValue,this.duration);return{value:e,valueProgress:Math.abs((e-this.startValue)/this.byValue)}}}const Ae=["startValue","endValue"];class je extends Me{constructor(t){let{startValue:e=[0],endValue:i=[100]}=t;super(s(s({},n(t,Ae)),{},{startValue:e,byValue:i.map(((t,i)=>t-e[i]))}))}calculate(t){const e=this.startValue.map(((e,i)=>this.easing(t,e,this.byValue[i],this.duration,i)));return{value:e,valueProgress:Math.abs((e[0]-this.startValue[0])/this.byValue[0])}}}const Fe=(t,e,i)=>Math.max(t,Math.min(e,i)),Le=["startValue","endValue","easing","onChange","onComplete","abort"],Re=(t,e,i,s)=>e+i*(1-Math.cos(t/s*C)),Be=t=>t&&((e,i,s)=>t(new kt(e).toRgba(),i,s));class Ie extends Me{constructor(t){let{startValue:e,endValue:i,easing:r=Re,onChange:o,onComplete:a,abort:h}=t,c=n(t,Le);const l=new kt(e).getSource(),u=new kt(i).getSource();super(s(s({},c),{},{startValue:l,byValue:u.map(((t,e)=>t-l[e])),easing:r,onChange:Be(o),onComplete:Be(a),abort:Be(h)}))}calculate(t){const[e,i,s,r]=this.startValue.map(((e,i)=>this.easing(t,e,this.byValue[i],this.duration,i))),n=[...[e,i,s].map(Math.round),Fe(0,r,1)];return{value:n,valueProgress:n.map(((t,e)=>0!==this.byValue[e]?Math.abs((t-this.startValue[e])/this.byValue[e]):0)).find((t=>0!==t))||0}}}function Xe(t){const e=(t=>Array.isArray(t.startValue)||Array.isArray(t.endValue))(t)?new je(t):new Ee(t);return e.start(),e}function Ye(t){const e=new Ie(t);return e.start(),e}const We=new H(1,0),Ve=new H,He=(t,e)=>t.rotate(e),ze=(t,e)=>new H(e).subtract(t),Ge=t=>t.distanceFrom(Ve),Ue=(t,e)=>Math.atan2(Je(t,e),Qe(t,e)),Ne=t=>Ue(We,t),qe=t=>t.eq(Ve)?t:t.scalarDivide(Ge(t)),Ke=function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return qe(new H(-t.y,t.x).scalarMultiply(e?1:-1))},Je=(t,e)=>t.x*e.y-t.y*e.x,Qe=(t,e)=>t.x*e.x+t.y*e.y,Ze=(t,e,i)=>{if(t.eq(e)||t.eq(i))return!0;const s=Je(e,i),r=Je(e,t),n=Je(i,t);return s>=0?r>=0&&n<=0:!(r<=0&&n>=0)};class $e{constructor(t){this.status=t,this.points=[]}includes(t){return this.points.some((e=>e.eq(t)))}append(){for(var t=arguments.length,e=new Array(t),i=0;i!this.includes(t)))),this}static isPointContained(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.eq(i))return t.eq(e);if(e.x===i.x)return t.x===e.x&&(s||t.y>=Math.min(e.y,i.y)&&t.y<=Math.max(e.y,i.y));if(e.y===i.y)return t.y===e.y&&(s||t.x>=Math.min(e.x,i.x)&&t.x<=Math.max(e.x,i.x));{const r=ze(e,i),n=ze(e,t).divide(r);return s?Math.abs(n.x)===Math.abs(n.y):n.x===n.y&&n.x>=0&&n.x<=1}}static intersectLineLine(t,e,i,s){let r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const o=e.x-t.x,a=e.y-t.y,h=s.x-i.x,c=s.y-i.y,l=t.x-i.x,u=t.y-i.y,d=h*u-c*l,g=o*u-a*l,f=c*o-h*a;if(0!==f){const e=d/f,i=g/f;return(r||0<=e&&e<=1)&&(n||0<=i&&i<=1)?new $e("Intersection").append(new H(t.x+e*o,t.y+e*a)):new $e}if(0===d||0===g){const o=r||n||$e.isPointContained(t,i,s)||$e.isPointContained(e,i,s)||$e.isPointContained(i,t,e)||$e.isPointContained(s,t,e);return new $e(o?"Coincident":void 0)}return new $e("Parallel")}static intersectSegmentLine(t,e,i,s){return $e.intersectLineLine(t,e,i,s,!1,!0)}static intersectSegmentSegment(t,e,i,s){return $e.intersectLineLine(t,e,i,s,!1,!1)}static intersectLinePolygon(t,e,i){let s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r=new $e,n=i.length;for(let o,a,h,c=0;c0&&(r.status="Intersection"),r}static intersectSegmentPolygon(t,e,i){return $e.intersectLinePolygon(t,e,i,!1)}static intersectPolygonPolygon(t,e){const i=new $e,s=t.length,r=[];for(let n=0;n0&&r.length===t.length?new $e("Coincident"):(i.points.length>0&&(i.status="Intersection"),i)}static intersectPolygonRectangle(t,e,i){const s=e.min(i),r=e.max(i),n=new H(r.x,s.y),o=new H(s.x,r.y);return $e.intersectPolygonPolygon(t,[s,n,r,o])}}class ti extends U{_getTransformedDimensions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=s({scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,width:this.width,height:this.height,strokeWidth:this.strokeWidth},t),i=e.strokeWidth;let r=i,n=0;this.strokeUniform&&(r=0,n=i);const o=e.width+r,a=e.height+r;let h;return h=0===e.skewX&&0===e.skewY?new H(o*e.scaleX,a*e.scaleY):oe(o,a,e),h.scalarAdd(n)}translateToGivenOrigin(t,e,i,s,r){let n=t.x,o=t.y;const a=de(s)-de(e),h=de(r)-de(i);if(a||h){const t=this._getTransformedDimensions();n+=a*t.x,o+=h*t.y}return new H(n,o)}translateToCenterPoint(t,e,i){const s=this.translateToGivenOrigin(t,e,i,k,k);return this.angle?s.rotate(tt(this.angle),t):s}translateToOriginPoint(t,e,i){const s=this.translateToGivenOrigin(t,k,k,e,i);return this.angle?s.rotate(tt(this.angle),t):s}getCenterPoint(){const t=this.getRelativeCenterPoint();return this.group?st(t,this.group.calcTransformMatrix()):t}getRelativeCenterPoint(){return this.translateToCenterPoint(new H(this.left,this.top),this.originX,this.originY)}getPointByOrigin(t,e){return this.translateToOriginPoint(this.getRelativeCenterPoint(),t,e)}setPositionByOrigin(t,e,i){const s=this.translateToCenterPoint(t,e,i),r=this.translateToOriginPoint(s,this.originX,this.originY);this.set({left:r.x,top:r.y})}_setOriginToCenter(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;const t=this.getRelativeCenterPoint();this.originX=k,this.originY=k,this.left=t.x,this.top=t.y}_resetOrigin(){if(void 0!==this._originalOriginX&&void 0!==this._originalOriginY){const t=this.translateToOriginPoint(this.getRelativeCenterPoint(),this._originalOriginX,this._originalOriginY);this.left=t.x,this.top=t.y,this.originX=this._originalOriginX,this.originY=this._originalOriginY,this._originalOriginX=void 0,this._originalOriginY=void 0}}_getLeftTopCoords(){return this.translateToOriginPoint(this.getRelativeCenterPoint(),D,M)}}class ei extends ti{getX(){return this.getXY().x}setX(t){this.setXY(this.getXY().setX(t))}getY(){return this.getXY().y}setY(t){this.setXY(this.getXY().setY(t))}getRelativeX(){return this.left}setRelativeX(t){this.left=t}getRelativeY(){return this.top}setRelativeY(t){this.top=t}getXY(){const t=this.getRelativeXY();return this.group?st(t,this.group.calcTransformMatrix()):t}setXY(t,e,i){this.group&&(t=st(t,rt(this.group.calcTransformMatrix()))),this.setRelativeXY(t,e,i)}getRelativeXY(){return new H(this.left,this.top)}setRelativeXY(t,e,i){this.setPositionByOrigin(t,e||this.originX,i||this.originY)}_getCoords(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?t?this.calcACoords():this.calcLineCoords():(this.aCoords||(this.aCoords=this.calcACoords()),this.lineCoords||(this.lineCoords=this.calcLineCoords()),t?this.aCoords:this.lineCoords)}getCoords(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{tl:i,tr:s,br:r,bl:n}=this._getCoords(t,e),o=[i,s,r,n];if(this.group){const t=this.group.calcTransformMatrix();return o.map((e=>st(e,t)))}return o}intersectsWithRect(t,e,i,s){const r=this.getCoords(i,s);return"Intersection"===$e.intersectPolygonRectangle(r,t,e).status}intersectsWithObject(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=$e.intersectPolygonPolygon(this.getCoords(e,i),t.getCoords(e,i));return"Intersection"===s.status||"Coincident"===s.status||t.isContainedWithinObject(this,e,i)||this.isContainedWithinObject(t,e,i)}isContainedWithinObject(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=this.getCoords(e,i),r=e?t.aCoords:t.lineCoords,n=t._getImageLines(r);for(let o=0;o<4;o++)if(!t.containsPoint(s[o],n))return!1;return!0}isContainedWithinRect(t,e,i,s){const r=this.getBoundingRect(i,s);return r.left>=t.x&&r.left+r.width<=e.x&&r.top>=t.y&&r.top+r.height<=e.y}isOverlapping(t){return this.intersectsWithObject(t)||this.isContainedWithinObject(t)||t.isContainedWithinObject(this)}containsPoint(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=this._getCoords(i,s),n=e||this._getImageLines(r),o=this._findCrossPoints(t,n);return 0!==o&&o%2==1}isOnScreen(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.canvas)return!1;const{tl:e,br:i}=this.canvas.vptCoords;return!!this.getCoords(!0,t).some((t=>t.x<=i.x&&t.x>=e.x&&t.y<=i.y&&t.y>=e.y))||(!!this.intersectsWithRect(e,i,!0,t)||this._containsCenterOfCanvas(e,i,t))}_containsCenterOfCanvas(t,e,i){const s=t.midPointFrom(e);return this.containsPoint(s,void 0,!0,i)}isPartiallyOnScreen(t){if(!this.canvas)return!1;const{tl:e,br:i}=this.canvas.vptCoords;if(this.intersectsWithRect(e,i,!0,t))return!0;return this.getCoords(!0,t).every((t=>(t.x>=i.x||t.x<=e.x)&&(t.y>=i.y||t.y<=e.y)))&&this._containsCenterOfCanvas(e,i,t)}_getImageLines(t){let{tl:e,tr:i,bl:s,br:r}=t;return{topline:{o:e,d:i},rightline:{o:i,d:r},bottomline:{o:r,d:s},leftline:{o:s,d:e}}}_findCrossPoints(t,e){let i=0;for(const s in e){let r;const n=e[s];if(!(n.o.y=t.y&&n.d.y>=t.y)){if(n.o.x===n.d.x&&n.o.x>=t.x)r=n.o.x;else{const e=0,i=(n.d.y-n.o.y)/(n.d.x-n.o.x);r=-(t.y-e*t.x-(n.o.y-i*n.o.x))/(e-i)}if(r>=t.x&&(i+=1),2===i)break}}return i}getBoundingRect(t,e){return te(this.getCoords(t,e))}getScaledWidth(){return this._getTransformedDimensions().x}getScaledHeight(){return this._getTransformedDimensions().y}scale(t){this._set("scaleX",t),this._set("scaleY",t),this.setCoords()}scaleToWidth(t,e){const i=this.getBoundingRect(e).width/this.getScaledWidth();return this.scale(t/this.width/i)}scaleToHeight(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=this.getBoundingRect(e).height/this.getScaledHeight();return this.scale(t/this.height/i)}getCanvasRetinaScaling(){var t;return(null===(t=this.canvas)||void 0===t?void 0:t.getRetinaScaling())||1}getTotalAngle(){return this.group?at(this.calcTransformMatrix()).angle:this.angle}calcLineCoords(){const t=this.getViewportTransform(),e=this.padding,i=tt(this.getTotalAngle()),s=W(i)*e,r=V(i)*e,n=s+r,o=s-r,{tl:a,tr:h,bl:c,br:l}=this.calcACoords(),u={tl:st(a,t),tr:st(h,t),bl:st(c,t),br:st(l,t)};return e&&(u.tl.x-=o,u.tl.y-=n,u.tr.x+=n,u.tr.y-=o,u.bl.x-=n,u.bl.y+=o,u.br.x+=o,u.br.y+=n),u}getViewportTransform(){var t;return(null===(t=this.canvas)||void 0===t?void 0:t.viewportTransform)||w.concat()}calcACoords(){const t=ct({angle:this.angle}),{x:e,y:i}=this.getRelativeCenterPoint(),s=ht(e,i),r=nt(s,t),n=this._getTransformedDimensions(),o=n.x/2,a=n.y/2;return{tl:st({x:-o,y:-a},r),tr:st({x:o,y:-a},r),bl:st({x:-o,y:a},r),br:st({x:o,y:a},r)}}setCoords(){this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords()}transformMatrixKey(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e="_";let i="";return!t&&this.group&&(i=this.group.transformMatrixKey(t)+e),i+this.top+e+this.left+e+this.scaleX+e+this.scaleY+e+this.skewX+e+this.skewY+e+this.angle+e+this.originX+e+this.originY+e+this.width+e+this.height+e+this.strokeWidth+this.flipX+this.flipY}calcTransformMatrix(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.calcOwnMatrix();if(t||!this.group)return e;const i=this.transformMatrixKey(t),s=this.matrixCache;return s&&s.key===i?s.value:(this.group&&(e=nt(this.group.calcTransformMatrix(!1),e)),this.matrixCache={key:i,value:e},e)}calcOwnMatrix(){const t=this.transformMatrixKey(!0),e=this.ownMatrixCache;if(e&&e.key===t)return e.value;const i=this.getRelativeCenterPoint(),s={angle:this.angle,translateX:i.x,translateY:i.y,scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY},r=pt(s);return this.ownMatrixCache={key:t,value:r},r}_getNonTransformedDimensions(){return new H(this.width,this.height).scalarAdd(this.strokeWidth)}_calculateCurrentDimensions(t){return this._getTransformedDimensions(t).transform(this.getViewportTransform(),!0).scalarAdd(2*this.padding)}}class ii extends ei{getParent(t){return((e=this.group)&&e.isType("ActiveSelection")?this.__owningGroup:this.group)||(t?void 0:this.canvas);var e}isDescendantOf(t){return this.__owningGroup===t||this.group===t||this.canvas===t||!!this.__owningGroup&&this.__owningGroup.isDescendantOf(t)||!!this.group&&this.group.isDescendantOf(t)}getAncestors(t){const e=[];let i=this;do{i=i instanceof ii?i.getParent(t):void 0,i&&e.push(i)}while(i);return e}findCommonAncestors(t,e){if(this===t)return{fork:[],otherFork:[],common:[this,...this.getAncestors(e)]};const i=this.getAncestors(e),s=t.getAncestors(e);if(0===i.length&&s.length>0&&this===s[s.length-1])return{fork:[],otherFork:[t,...s.slice(0,s.length-1)],common:[this]};for(let r,n=0;n-1&&n>o}}class si extends ii{animate(t,e){return Object.entries(t).reduce(((t,i)=>{let[s,r]=i;return t[s]=this._animate(s,r,e),t}),{})}_animate(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=t.split("."),r=this.colorProperties.includes(s[s.length-1]),{easing:n,duration:o,abort:a,startValue:h,onChange:c,onComplete:l}=i,u={target:this,startValue:null!=h?h:s.reduce(((t,e)=>t[e]),this),endValue:e,easing:n,duration:o,abort:null==a?void 0:a.bind(this),onChange:(t,e,i)=>{s.reduce(((e,i,r)=>(r===s.length-1&&(e[i]=t),e[i])),this),c&&c(t,e,i)},onComplete:(t,e,i)=>{this.setCoords(),l&&l(t,e,i)}};return r?Ye(u):Xe(u)}}class ri{constructor(t){const e="string"==typeof t?ri.parseShadow(t):t;Object.assign(this,this.constructor.ownDefaults);for(const i in e)this[i]=e[i];this.id=J()}static parseShadow(t){const e=t.trim(),[i,s=0,r=0,n=0]=(ri.reOffsetsAndBlur.exec(e)||[]).map((t=>parseFloat(t)||0));return{color:(e.replace(ri.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:s,offsetY:r,blur:n}}toString(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")}toSVG(t){const e=He(new H(this.offsetX,this.offsetY),tt(-t.angle)),i=new kt(this.color);let s=40,r=40;return t.width&&t.height&&(s=100*Dt((Math.abs(e.x)+this.blur)/t.width,c.NUM_FRACTION_DIGITS)+20,r=100*Dt((Math.abs(e.y)+this.blur)/t.height,c.NUM_FRACTION_DIGITS)+20),t.flipX&&(e.x*=-1),t.flipY&&(e.y*=-1),'\n\t\n\t\n\t\n\t\n\t\n\t\t\n\t\t\n\t\n\n')}toObject(){const t={color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling},e=ri.ownDefaults;return this.includeDefaultValues?t:xt(t,((t,i)=>t!==e[i]))}}r(ri,"ownDefaults",{color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1}),r(ri,"reOffsetsAndBlur",/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/);const ni=t=>JSON.parse(JSON.stringify(t)),oi=[M,D,"scaleX","scaleY","flipX","flipY","originX","originY","angle","opacity","globalCompositeOperation","shadow","visible","skewX","skewY"],ai=["fill","stroke","strokeWidth","strokeDashArray","width","height","paintFirst","strokeUniform","strokeLineCap","strokeDashOffset","strokeLineJoin","strokeMiterLimit","backgroundColor","clipPath"],hi={originX:D,originY:M,top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:"",cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:!0,noScaleCache:!0,strokeUniform:!1,dirty:!0,paintFirst:"fill",activeOn:"down",colorProperties:["fill","stroke","backgroundColor"],clipPath:void 0,inverted:!1,absolutePositioned:!1,FX_DURATION:500},ci=["extraParam"];let li=class t extends si{static getDefaults(){return s({},t.ownDefaults)}get type(){const t=this.constructor.type;return"FabricObject"===t?"object":t.toLowerCase()}set type(t){}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),r(this,"_cacheContext",null),Object.assign(this,this.constructor.getDefaults()),this.setOptions(t)}_createCacheCanvas(){this._cacheCanvas=Q(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0}_limitCacheSize(t){const e=t.width,i=t.height,s=c.maxCacheSideLimit,r=c.minCacheSideLimit;if(e<=s&&i<=s&&e*i<=c.perfLimitSizeTotal)return eh&&(t.zoomX/=e/h,t.width=h,t.capped=!0),i>l&&(t.zoomY/=i/l,t.height=l,t.capped=!0),t}_getCacheCanvasDimensions(){const t=this.getTotalObjectScaling(),e=this._getTransformedDimensions({skewX:0,skewY:0}),i=e.x*t.x/this.scaleX,s=e.y*t.y/this.scaleY;return{width:i+2,height:s+2,zoomX:t.x,zoomY:t.y,x:i,y:s}}_updateCacheCanvas(){const t=this._cacheCanvas,e=this._cacheContext,i=this._limitCacheSize(this._getCacheCanvasDimensions()),s=c.minCacheSideLimit,r=i.width,n=i.height,o=i.zoomX,a=i.zoomY,h=r!==this.cacheWidth||n!==this.cacheHeight,l=this.zoomX!==o||this.zoomY!==a;if(!t||!e)return!1;let u,d,g=h||l,f=0,p=0,m=!1;if(h){const t=this._cacheCanvas.width,e=this._cacheCanvas.height,o=r>t||n>e;m=o||(r<.9*t||n<.9*e)&&t>s&&e>s,o&&!i.capped&&(r>s||n>s)&&(f=.1*r,p=.1*n)}return Bt(this)&&this.path&&(g=!0,m=!0,f+=this.getHeightOfLine(0)*this.zoomX,p+=this.getHeightOfLine(0)*this.zoomY),!!g&&(m?(t.width=Math.ceil(r+f),t.height=Math.ceil(n+p)):(e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height)),u=i.x/2,d=i.y/2,this.cacheTranslationX=Math.round(t.width/2-u)+u,this.cacheTranslationY=Math.round(t.height/2-d)+d,this.cacheWidth=r,this.cacheHeight=n,e.translate(this.cacheTranslationX,this.cacheTranslationY),e.scale(o,a),this.zoomX=o,this.zoomY=a,!0)}setOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setOptions(t)}transform(t){const e=this.group&&!this.group._transformDone||this.group&&this.canvas&&t===this.canvas.contextTop,i=this.calcTransformMatrix(!e);t.transform(i[0],i[1],i[2],i[3],i[4],i[5])}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=c.NUM_FRACTION_DIGITS,i=this.clipPath&&!this.clipPath.excludeFromExport?s(s({},this.clipPath.toObject(t)),{},{inverted:this.clipPath.inverted,absolutePositioned:this.clipPath.absolutePositioned}):null,r=s(s({},yt(this,t)),{},{type:this.constructor.type,version:y,originX:this.originX,originY:this.originY,left:Dt(this.left,e),top:Dt(this.top,e),width:Dt(this.width,e),height:Dt(this.height,e),fill:Ft(this.fill)?this.fill.toObject():this.fill,stroke:Ft(this.stroke)?this.stroke.toObject():this.stroke,strokeWidth:Dt(this.strokeWidth,e),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:Dt(this.strokeMiterLimit,e),scaleX:Dt(this.scaleX,e),scaleY:Dt(this.scaleY,e),angle:Dt(this.angle,e),flipX:this.flipX,flipY:this.flipY,opacity:Dt(this.opacity,e),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:Dt(this.skewX,e),skewY:Dt(this.skewY,e)},i?{clipPath:i}:null);return this.includeDefaultValues?r:this._removeDefaultValues(r)}toDatalessObject(t){return this.toObject(t)}_removeDefaultValues(t){const e=this.constructor.getDefaults(),i=Object.keys(e).length>0?e:Object.getPrototypeOf(this);return xt(t,((t,e)=>{if(e===D||e===M||"type"===e)return!0;const s=i[e];return t!==s&&!(Array.isArray(t)&&Array.isArray(s)&&0===t.length&&0===s.length)}))}toString(){return"#<".concat(this.constructor.type,">")}getObjectScaling(){if(!this.group)return new H(Math.abs(this.scaleX),Math.abs(this.scaleY));const t=at(this.calcTransformMatrix());return new H(Math.abs(t.scaleX),Math.abs(t.scaleY))}getTotalObjectScaling(){const t=this.getObjectScaling();if(this.canvas){const e=this.canvas.getZoom(),i=this.getCanvasRetinaScaling();return t.scalarMultiply(e*i)}return t}getObjectOpacity(){let t=this.opacity;return this.group&&(t*=this.group.getObjectOpacity()),t}_constrainScale(t){return Math.abs(t)0&&void 0!==arguments[0]&&arguments[0];if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!t&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned){if(this._cacheCanvas&&this._cacheContext&&!t){const t=this.cacheWidth/this.zoomX,e=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-e/2,t,e)}return!0}return!1}_renderBackground(t){if(!this.backgroundColor)return;const e=this._getNonTransformedDimensions();t.fillStyle=this.backgroundColor,t.fillRect(-e.x/2,-e.y/2,e.x,e.y),this._removeShadow(t)}_setOpacity(t){this.group&&!this.group._transformDone?t.globalAlpha=this.getObjectOpacity():t.globalAlpha*=this.opacity}_setStrokeStyles(t,e){const i=e.stroke;i&&(t.lineWidth=e.strokeWidth,t.lineCap=e.strokeLineCap,t.lineDashOffset=e.strokeDashOffset,t.lineJoin=e.strokeLineJoin,t.miterLimit=e.strokeMiterLimit,jt(i)?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(t,i):(t.strokeStyle=i.toLive(t),this._applyPatternGradientTransform(t,i)):t.strokeStyle=e.stroke)}_setFillStyles(t,e){let{fill:i}=e;i&&(jt(i)?(t.fillStyle=i.toLive(t),this._applyPatternGradientTransform(t,i)):t.fillStyle=i)}_setClippingProperties(t){t.globalAlpha=1,t.strokeStyle="transparent",t.fillStyle="#000000"}_setLineDash(t,e){e&&0!==e.length&&(1&e.length&&e.push(...e),t.setLineDash(e))}_setShadow(t){if(!this.shadow)return;const e=this.shadow,i=this.canvas,s=this.getCanvasRetinaScaling(),[r,,,n]=(null==i?void 0:i.viewportTransform)||w,o=r*s,a=n*s,h=e.nonScaling?new H(1,1):this.getObjectScaling();t.shadowColor=e.color,t.shadowBlur=e.blur*c.browserShadowBlurConstant*(o+a)*(h.x+h.y)/4,t.shadowOffsetX=e.offsetX*o*h.x,t.shadowOffsetY=e.offsetY*a*h.y}_removeShadow(t){this.shadow&&(t.shadowColor="",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0)}_applyPatternGradientTransform(t,e){if(!jt(e))return{offsetX:0,offsetY:0};const i=e.gradientTransform||e.patternTransform,s=-this.width/2+e.offsetX||0,r=-this.height/2+e.offsetY||0;return"percentage"===e.gradientUnits?t.transform(this.width,0,0,this.height,s,r):t.transform(1,0,0,1,s,r),i&&t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:s,offsetY:r}}_renderPaintInOrder(t){"stroke"===this.paintFirst?(this._renderStroke(t),this._renderFill(t)):(this._renderFill(t),this._renderStroke(t))}_render(t){}_renderFill(t){this.fill&&(t.save(),this._setFillStyles(t,this),"evenodd"===this.fillRule?t.fill("evenodd"):t.fill(),t.restore())}_renderStroke(t){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(t),t.save(),this.strokeUniform){const e=this.getObjectScaling();t.scale(1/e.x,1/e.y)}this._setLineDash(t,this.strokeDashArray),this._setStrokeStyles(t,this),t.stroke(),t.restore()}}_applyPatternForTransformedGradient(t,e){var i;const s=this._limitCacheSize(this._getCacheCanvasDimensions()),r=Q(),n=this.getCanvasRetinaScaling(),o=s.x/this.scaleX/n,a=s.y/this.scaleY/n;r.width=Math.ceil(o),r.height=Math.ceil(a);const h=r.getContext("2d");h&&(h.beginPath(),h.moveTo(0,0),h.lineTo(o,0),h.lineTo(o,a),h.lineTo(0,a),h.closePath(),h.translate(o/2,a/2),h.scale(s.zoomX/this.scaleX/n,s.zoomY/this.scaleY/n),this._applyPatternGradientTransform(h,e),h.fillStyle=e.toLive(t),h.fill(),t.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),t.scale(n*this.scaleX/s.zoomX,n*this.scaleY/s.zoomY),t.strokeStyle=null!==(i=h.createPattern(r,"no-repeat"))&&void 0!==i?i:"")}_findCenterFromElement(){return new H(this.left+this.width/2,this.top+this.height/2)}clone(t){const e=this.toObject(t);return this.constructor.fromObject(e)}cloneAsImage(t){const e=this.toCanvasElement(t);return new(R.getClass("image"))(e)}toCanvasElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=ne(this),i=this.group,s=this.shadow,r=Math.abs,n=t.enableRetinaScaling?Math.max(c.devicePixelRatio,1):1,o=(t.multiplier||1)*n;delete this.group,t.withoutTransform&&re(this),t.withoutShadow&&(this.shadow=null),t.viewportTransform&&ce(this,this.getViewportTransform());const a=Q(),h=this.getBoundingRect(!0,!0),l=this.shadow,u=new H;if(l){const t=l.blur,e=l.nonScaling?new H(1,1):this.getObjectScaling();u.x=2*Math.round(r(l.offsetX)+t)*r(e.x),u.y=2*Math.round(r(l.offsetY)+t)*r(e.y)}const d=h.width+u.x,g=h.height+u.y;a.width=Math.ceil(d),a.height=Math.ceil(g);const f=new Kt(a,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===t.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new H(f.width/2,f.height/2),k,k);const p=this.canvas;f._objects=[this],this.set("canvas",f),this.setCoords();const m=f.toCanvasElement(o||1,t);return this.set("canvas",p),this.shadow=s,i&&(this.group=i),this.set(e),this.setCoords(),f._objects=[],f.destroy(),m}toDataURL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $(this.toCanvasElement(t),t.format||"png",t.quality||1)}isType(){for(var t=arguments.length,e=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},{extraParam:i}=e,r=n(e,ci);return vt(ni(t),r).then((t=>{const e=s(s({},r),t);if(i){const{[i]:t,type:s}=e;return new this(t,n(e,[i,"type"].map(a)))}return new this(e)}))}static fromObject(t,e){return this._fromObject(t,e)}};r(li,"stateProperties",oi),r(li,"cacheProperties",ai),r(li,"ownDefaults",hi),r(li,"type","FabricObject"),R.setClass(li),R.setClass(li,"object");const ui=(t,e)=>(i,s,r,n)=>{const o=e(i,s,r,n);return o&&le(t,_e(i,s,r,n)),o};function di(t){return(e,i,s,r)=>{const{target:n,originX:o,originY:a}=i,h=n.getRelativeCenterPoint(),c=n.translateToOriginPoint(h,o,a),l=t(e,i,s,r);return n.setPositionByOrigin(c,o,a),l}}const gi=ui("resizing",di(((t,e,i,s)=>{const r=ye(e,e.originX,e.originY,i,s);if(e.originX===k||e.originX===E&&r.x<0||e.originX===D&&r.x>0){const{target:t}=e,i=t.strokeWidth/(t.strokeUniform?t.scaleX:1),s=fe(e)?2:1,n=t.width,o=Math.ceil(Math.abs(r.x*s/t.scaleX)-i);return t.set("width",Math.max(o,0)),n!==t.width}return!1})));function fi(t,e,i,s,r){s=s||{};const n=this.sizeX||s.cornerSize||r.cornerSize,o=this.sizeY||s.cornerSize||r.cornerSize,a=void 0!==s.transparentCorners?s.transparentCorners:r.transparentCorners,h=a?"stroke":"fill",c=!a&&(s.cornerStrokeColor||r.cornerStrokeColor);let l,u=e,d=i;t.save(),t.fillStyle=s.cornerColor||r.cornerColor||"",t.strokeStyle=s.cornerStrokeColor||r.cornerStrokeColor||"",n>o?(l=n,t.scale(1,o/n),d=i*n/o):o>n?(l=o,t.scale(n/o,1),u=e*o/n):l=n,t.lineWidth=1,t.beginPath(),t.arc(u,d,l/2,0,b,!1),t[h](),c&&t.stroke(),t.restore()}function pi(t,e,i,s,r){s=s||{};const n=this.sizeX||s.cornerSize||r.cornerSize,o=this.sizeY||s.cornerSize||r.cornerSize,a=void 0!==s.transparentCorners?s.transparentCorners:r.transparentCorners,h=a?"stroke":"fill",c=!a&&(s.cornerStrokeColor||r.cornerStrokeColor),l=n/2,u=o/2;t.save(),t.fillStyle=s.cornerColor||r.cornerColor||"",t.strokeStyle=s.cornerStrokeColor||r.cornerStrokeColor||"",t.lineWidth=1,t.translate(e,i);const d=r.getTotalAngle();t.rotate(tt(d)),t["".concat(h,"Rect")](-l,-u,n,o),c&&t.strokeRect(-l,-u,n,o),t.restore()}class mi{constructor(t){r(this,"visible",!0),r(this,"actionName","scale"),r(this,"angle",0),r(this,"x",0),r(this,"y",0),r(this,"offsetX",0),r(this,"offsetY",0),r(this,"sizeX",null),r(this,"sizeY",null),r(this,"touchSizeX",null),r(this,"touchSizeY",null),r(this,"cursorStyle","crosshair"),r(this,"withConnection",!1),Object.assign(this,t)}shouldActivate(t,e){var i;return(null===(i=e.canvas)||void 0===i?void 0:i.getActiveObject())===e&&e.isControlVisible(t)}getActionHandler(t,e,i){return this.actionHandler}getMouseDownHandler(t,e,i){return this.mouseDownHandler}getMouseUpHandler(t,e,i){return this.mouseUpHandler}cursorStyleHandler(t,e,i){return e.cursorStyle}getActionName(t,e,i){return e.actionName}getVisibility(t,e){var i,s;return null!==(i=null===(s=t._controlsVisibility)||void 0===s?void 0:s[e])&&void 0!==i?i:this.visible}setVisibility(t,e,i){this.visible=t}positionHandler(t,e,i,s){return new H(this.x*t.x+this.offsetX,this.y*t.y+this.offsetY).transform(e)}calcCornerCoords(t,e,i,s,r){let n,o,a,h;const c=r?this.touchSizeX:this.sizeX,l=r?this.touchSizeY:this.sizeY;if(c&&l&&c!==l){const e=Math.atan2(l,c),i=Math.sqrt(c*c+l*l)/2,s=e-tt(t),r=C-e-tt(t);n=i*W(s),o=i*V(s),a=i*W(r),h=i*V(r)}else{const i=(c&&l?c:e)*Math.SQRT1_2,s=tt(45-t);n=a=i*W(s),o=h=i*V(s)}return{tl:new H(i-h,s-a),tr:new H(i+n,s-o),bl:new H(i-n,s+o),br:new H(i+h,s+a)}}render(t,e,i,s,r){if("circle"===((s=s||{}).cornerStyle||r.cornerStyle))fi.call(this,t,e,i,s,r);else pi.call(this,t,e,i,s,r)}}const _i=(t,e,i)=>i.lockRotation?ge:e.cursorStyle,vi=ui("rotating",di(((t,e,i,s)=>{let{target:r,ex:n,ey:o,theta:a,originX:h,originY:c}=e;const l=r.translateToOriginPoint(r.getRelativeCenterPoint(),h,c);if(me(r,"lockRotation"))return!1;const u=Math.atan2(o-l.y,n-l.x),d=Math.atan2(s-l.y,i-l.x);let g=et(d-u+a);if(r.snapAngle&&r.snapAngle>0){const t=r.snapAngle,e=r.snapThreshold||t,i=Math.ceil(g/t)*t,s=Math.floor(g/t)*t;Math.abs(g-s){const s=yi(t,i);if(xi(i,0!==e.x&&0===e.y?"x":0===e.x&&0!==e.y?"y":"",s))return ge;const r=ve(i,e);return"".concat(Ci[r],"-resize")};function Si(t,e,i,s){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const n=e.target,o=r.by,a=yi(t,n);let h,c,l,u,d,g;if(xi(n,o,a))return!1;if(e.gestureScale)c=e.scaleX*e.gestureScale,l=e.scaleY*e.gestureScale;else{if(h=ye(e,e.originX,e.originY,i,s),d="y"!==o?Math.sign(h.x||e.signX||1):1,g="x"!==o?Math.sign(h.y||e.signY||1):1,e.signX||(e.signX=d),e.signY||(e.signY=g),me(n,"lockScalingFlip")&&(e.signX!==d||e.signY!==g))return!1;if(u=n._getTransformedDimensions(),a&&!o){const t=Math.abs(h.x)+Math.abs(h.y),{original:i}=e,s=t/(Math.abs(u.x*i.scaleX/n.scaleX)+Math.abs(u.y*i.scaleY/n.scaleY));c=i.scaleX*s,l=i.scaleY*s}else c=Math.abs(h.x*n.scaleX/u.x),l=Math.abs(h.y*n.scaleY/u.y);fe(e)&&(c*=2,l*=2),e.signX!==d&&"y"!==o&&(e.originX=pe(e.originX),c*=-1,e.signX=d),e.signY!==g&&"x"!==o&&(e.originY=pe(e.originY),l*=-1,e.signY=g)}const f=n.scaleX,p=n.scaleY;return o?("x"===o&&n.set("scaleX",c),"y"===o&&n.set("scaleY",l)):(!me(n,"lockScalingX")&&n.set("scaleX",c),!me(n,"lockScalingY")&&n.set("scaleY",l)),f!==n.scaleX||p!==n.scaleY}const wi=ui("scaling",di(((t,e,i,s)=>Si(t,e,i,s)))),Ti=ui("scaling",di(((t,e,i,s)=>Si(t,e,i,s,{by:"x"})))),Oi=ui("scaling",di(((t,e,i,s)=>Si(t,e,i,s,{by:"y"})))),ki=["target","ex","ey","skewingSide"],Di={x:{counterAxis:"y",scale:"scaleX",skew:"skewX",lockSkewing:"lockSkewingX",origin:"originX",flip:"flipX"},y:{counterAxis:"x",scale:"scaleY",skew:"skewY",lockSkewing:"lockSkewingY",origin:"originY",flip:"flipY"}},Mi=["ns","nesw","ew","nwse"],Pi=(t,e,i)=>{if(0!==e.x&&me(i,"lockSkewingY"))return ge;if(0!==e.y&&me(i,"lockSkewingX"))return ge;const s=ve(i,e)%4;return"".concat(Mi[s],"-resize")};function Ei(t,e,i,r,o){const{target:a}=i,{counterAxis:h,origin:c,lockSkewing:l,skew:u,flip:d}=Di[t];if(me(a,l))return!1;const{origin:g,flip:f}=Di[h],p=de(i[g])*(a[f]?-1:1),m=-Math.sign(p)*(a[d]?-1:1),_=.5*-((0===a[u]&&ye(i,k,k,r,o)[t]>0||a[u]>0?1:-1)*m)+.5,v=ui("skewing",di(((e,i,s,r)=>function(t,e,i){let{target:s,ex:r,ey:o,skewingSide:a}=e,h=n(e,ki);const{skew:c}=Di[t],l=i.subtract(new H(r,o)).divide(new H(s.scaleX,s.scaleY))[t],u=s[c],d=h[c],g=Math.tan(tt(d)),f="y"===t?s._getTransformedDimensions({scaleX:1,scaleY:1,skewX:0}).x:s._getTransformedDimensions({scaleX:1,scaleY:1}).y,p=2*l*a/Math.max(f,1)+g,m=et(Math.atan(p));s.set(c,m);const _=u!==s[c];if(_&&"y"===t){const{skewX:t,scaleX:e}=s,i=s._getTransformedDimensions({skewY:u}),r=s._getTransformedDimensions(),n=0!==t?i.x/r.x:1;1!==n&&s.set("scaleX",n*e)}return _}(t,i,new H(s,r)))));return v(e,s(s({},i),{},{[c]:_,skewingSide:m}),r,o)}const Ai=(t,e,i,s)=>Ei("x",t,e,i,s),ji=(t,e,i,s)=>Ei("y",t,e,i,s);function Fi(t,e){return t[e.canvas.altActionKey]}const Li=(t,e,i)=>{const s=Fi(t,i);return 0===e.x?s?"skewX":"scaleY":0===e.y?s?"skewY":"scaleX":""},Ri=(t,e,i)=>Fi(t,i)?Pi(0,e,i):bi(t,e,i),Bi=(t,e,i,s)=>Fi(t,e.target)?ji(t,e,i,s):Ti(t,e,i,s),Ii=(t,e,i,s)=>Fi(t,e.target)?Ai(t,e,i,s):Oi(t,e,i,s),Xi=()=>({ml:new mi({x:-.5,y:0,cursorStyleHandler:Ri,actionHandler:Bi,getActionName:Li}),mr:new mi({x:.5,y:0,cursorStyleHandler:Ri,actionHandler:Bi,getActionName:Li}),mb:new mi({x:0,y:.5,cursorStyleHandler:Ri,actionHandler:Ii,getActionName:Li}),mt:new mi({x:0,y:-.5,cursorStyleHandler:Ri,actionHandler:Ii,getActionName:Li}),tl:new mi({x:-.5,y:-.5,cursorStyleHandler:bi,actionHandler:wi}),tr:new mi({x:.5,y:-.5,cursorStyleHandler:bi,actionHandler:wi}),bl:new mi({x:-.5,y:.5,cursorStyleHandler:bi,actionHandler:wi}),br:new mi({x:.5,y:.5,cursorStyleHandler:bi,actionHandler:wi}),mtr:new mi({x:0,y:-.5,actionHandler:vi,cursorStyleHandler:_i,offsetY:-40,withConnection:!0,actionName:"rotate"})}),Yi=()=>({mr:new mi({x:.5,y:0,actionHandler:gi,cursorStyleHandler:Ri,actionName:"resizing"}),ml:new mi({x:-.5,y:0,actionHandler:gi,cursorStyleHandler:Ri,actionName:"resizing"})}),Wi=()=>s(s({},Xi()),Yi());class Vi extends li{static getDefaults(){return s(s({},super.getDefaults()),{},{controls:Xi()},Vi.ownDefaults)}_updateCacheCanvas(){const t=this.canvas;if(this.noScaleCache&&t&&t._currentTransform){const e=t._currentTransform.target,i=t._currentTransform.action;if(this===e&&i.startsWith("scale"))return!1}return super._updateCacheCanvas()}getActiveControl(){return this.__corner}_findTargetCorner(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasControls||!this.canvas)return"";this.__corner=void 0;const i=Object.entries(this.oCoords);for(let s=i.length-1;s>=0;s--){const[r,n]=i[s];if(this.controls[r].shouldActivate(r,this)){const i=this._getImageLines(e?n.touchCorner:n.corner),s=this._findCrossPoints(t,i);if(0!==s&&s%2==1)return this.__corner=r,r}}return""}calcOCoords(){const t=this.getViewportTransform(),e=this.getCenterPoint(),i=ht(e.x,e.y),s=ct({angle:this.getTotalAngle()-(this.group&&this.flipX?180:0)}),r=nt(i,s),n=nt(t,r),o=nt(n,[1/t[0],0,0,1/t[3],0,0]),a=this.group?at(this.calcTransformMatrix()):void 0,h=this._calculateCurrentDimensions(a),c={};return this.forEachControl(((t,e)=>{const i=t.positionHandler(h,o,this,t);c[e]=Object.assign(i,this._calcCornerCoords(t,i))})),c}_calcCornerCoords(t,e){return{corner:t.calcCornerCoords(this.angle,this.cornerSize,e.x,e.y,!1),touchCorner:t.calcCornerCoords(this.angle,this.touchCornerSize,e.x,e.y,!0)}}setCoords(){super.setCoords(),this.oCoords=this.calcOCoords()}forEachControl(t){for(const e in this.controls)t(this.controls[e],e,this)}drawSelectionBackground(t){if(!this.selectionBackgroundColor||this.canvas&&this.canvas._activeObject!==this)return;t.save();const e=this.getRelativeCenterPoint(),i=this._calculateCurrentDimensions(),s=this.getViewportTransform();t.translate(e.x,e.y),t.scale(1/s[0],1/s[3]),t.rotate(tt(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-i.x/2,-i.y/2,i.x,i.y),t.restore()}strokeBorders(t,e){t.strokeRect(-e.x/2,-e.y/2,e.x,e.y)}_drawBorders(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=s({hasControls:this.hasControls,borderColor:this.borderColor,borderDashArray:this.borderDashArray},i);t.save(),t.strokeStyle=r.borderColor,this._setLineDash(t,r.borderDashArray),this.strokeBorders(t,e),r.hasControls&&this.drawControlsConnectingLines(t,e),t.restore()}_renderControls(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{hasBorders:i,hasControls:r}=this,n=s({hasBorders:i,hasControls:r},e),o=this.getViewportTransform(),a=n.hasBorders,h=n.hasControls,c=nt(o,this.calcTransformMatrix()),l=at(c);t.save(),t.translate(l.translateX,l.translateY),t.lineWidth=1*this.borderScaleFactor,this.group||(t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(l.angle-=180),t.rotate(tt(this.group?l.angle:this.angle)),a&&this.drawBorders(t,l,e),h&&this.drawControls(t,e),t.restore()}drawBorders(t,e,i){let s;if(i&&i.forActiveSelection||this.group){const t=oe(this.width,this.height,e),i=(this.strokeUniform?(new H).scalarAdd(this.canvas?this.canvas.getZoom():1):new H(e.scaleX,e.scaleY)).scalarMultiply(this.strokeWidth);s=t.add(i).scalarAdd(this.borderScaleFactor).scalarAdd(2*this.padding)}else s=this._calculateCurrentDimensions().scalarAdd(this.borderScaleFactor);this._drawBorders(t,s,i)}drawControlsConnectingLines(t,e){let i=!1;t.beginPath(),this.forEachControl(((s,r)=>{s.withConnection&&s.getVisibility(this,r)&&(i=!0,t.moveTo(s.x*e.x,s.y*e.y),t.lineTo(s.x*e.x+s.offsetX,s.y*e.y+s.offsetY))})),i&&t.stroke()}drawControls(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.save();const i=this.getCanvasRetinaScaling(),{cornerStrokeColor:r,cornerDashArray:n,cornerColor:o}=this,a=s({cornerStrokeColor:r,cornerDashArray:n,cornerColor:o},e);t.setTransform(i,0,0,i,0,0),t.strokeStyle=t.fillStyle=a.cornerColor,this.transparentCorners||(t.strokeStyle=a.cornerStrokeColor),this._setLineDash(t,a.cornerDashArray),this.setCoords(),this.forEachControl(((e,i)=>{if(e.getVisibility(this,i)){const s=this.oCoords[i];e.render(t,s.x,s.y,a,this)}})),t.restore()}isControlVisible(t){return this.controls[t]&&this.controls[t].getVisibility(this,t)}setControlVisible(t,e){this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[t]=e}setControlsVisibility(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(t).forEach((t=>{let[e,i]=t;return this.setControlVisible(e,i)}))}clearContextTop(t){if(!this.canvas)return;const e=this.canvas.contextTop;if(!e)return;const i=this.canvas.viewportTransform;e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(e);const s=this.width+4,r=this.height+4;return e.clearRect(-s/2,-r/2,s,r),t||e.restore(),e}onDeselect(t){return!1}onSelect(t){return!1}canDrop(t){return!1}renderDragSourceEffect(t){}renderDropTargetEffect(t){}}function Hi(t,e){return e.forEach((e=>{Object.getOwnPropertyNames(e.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i)||Object.create(null))}))})),t}r(Vi,"ownDefaults",{});class zi extends Vi{}Hi(zi,[Ce]),R.setClass(zi),R.setClass(zi,"object");const Gi=(t,e,i,s)=>{const r=2*(s=Math.round(s))+1,{data:n}=t.getImageData(e-s,i-s,r,r);for(let o=3;o0)return!1}return!0},Ui=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"];function Ni(t){return new RegExp("^("+t.join("|")+")\\b","i")}var qi,Ki;const Ji=String.raw(qi||(qi=o(["(?:[-+]?(?:d*.d+|d+.?)(?:[eE][-+]?d+)?)"],["(?:[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?)"])));String.raw(Ki||(Ki=o(["(?:s+,?s*|,s*|$)"],["(?:\\s+,?\\s*|,\\s*|$)"])));const Qi=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+Ji+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+Ji+"))?\\s+(.*)"),Zi={cx:D,x:D,r:"radius",cy:M,y:M,display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},$i="font-size",ts="clip-path";Ni(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),Ni(["symbol","image","marker","pattern","view","svg"]);const es=Ni(["symbol","g","a","svg","clipPath","defs"]);function is(t,e){const i=t.nodeName,s=t.getAttribute("class"),r=t.getAttribute("id");let n;if(n=new RegExp("^"+i,"i"),e=e.replace(n,""),r&&e.length&&(n=new RegExp("#"+r+"(?![a-zA-Z\\-]+)","i"),e=e.replace(n,"")),s&&e.length){const t=s.split(" ");for(let i=t.length;i--;)n=new RegExp("\\."+t[i]+"(?![a-zA-Z\\-]+)","i"),e=e.replace(n,"")}return 0===e.length}function ss(t,e){let i=!0;const s=is(t,e.pop());return s&&e.length&&(i=function(t,e){let i,s=!0;for(;t.parentElement&&1===t.parentElement.nodeType&&e.length;)s&&(i=e.pop()),s=is(t=t.parentElement,i);return 0===e.length}(t,e)),s&&i&&0===e.length}const rs=t=>{var e;return null!==(e=Zi[t])&&void 0!==e?e:t},ns=t=>t.replace(new RegExp("(".concat(Ji,")"),"gi")," $1 ").replace(/,/gi," ").replace(/\s+/gi," ");var os,as,hs,cs,ls,us,ds;const gs="(".concat(Ji,")"),fs=String.raw(os||(os=o(["(skewX)(",")"],["(skewX)\\(","\\)"])),gs),ps=String.raw(as||(as=o(["(skewY)(",")"],["(skewY)\\(","\\)"])),gs),ms=String.raw(hs||(hs=o(["(rotate)(","(?: "," ",")?)"],["(rotate)\\(","(?: "," ",")?\\)"])),gs,gs,gs),_s=String.raw(cs||(cs=o(["(scale)(","(?: ",")?)"],["(scale)\\(","(?: ",")?\\)"])),gs,gs),vs=String.raw(ls||(ls=o(["(translate)(","(?: ",")?)"],["(translate)\\(","(?: ",")?\\)"])),gs,gs),ys=String.raw(us||(us=o(["(matrix)("," "," "," "," "," ",")"],["(matrix)\\("," "," "," "," "," ","\\)"])),gs,gs,gs,gs,gs,gs),xs="(?:".concat(ys,"|").concat(vs,"|").concat(ms,"|").concat(_s,"|").concat(fs,"|").concat(ps,")"),Cs="(?:".concat(xs,"*)"),bs=String.raw(ds||(ds=o(["^s*(?:","?)s*$"],["^\\s*(?:","?)\\s*$"])),Cs),Ss=new RegExp(bs),ws=new RegExp(xs,"g");function Ts(t){const e=[];if(!(t=ns(t).replace(/\s*([()])\s*/gi,"$1"))||t&&!Ss.test(t))return[...w];for(const i of t.matchAll(ws)){const t=new RegExp(xs).exec(i[0]);if(!t)continue;let s=w;const r=t.filter((t=>!!t)),[,n,...o]=r,[a,h,c,l,u,d]=o.map((t=>parseFloat(t)));switch(n){case"translate":s=ht(a,h);break;case"rotate":s=ct({angle:a},{x:h,y:c});break;case"scale":s=lt(a,h);break;case"skewX":s=dt(a);break;case"skewY":s=gt(a);break;case"matrix":s=[a,h,c,l,u,d]}e.push(s)}return ot(e)}function Os(t,e,i,s){const r=Array.isArray(e);let n,o=e;if("fill"!==t&&"stroke"!==t||e!==A){if("strokeUniform"===t)return"non-scaling-stroke"===e;if("strokeDashArray"===t)o=e===A?null:e.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===t)o=i&&i.transformMatrix?nt(i.transformMatrix,Ts(e)):Ts(e);else if("visible"===t)o=e!==A&&"hidden"!==e,i&&!1===i.visible&&(o=!1);else if("opacity"===t)o=parseFloat(e),i&&void 0!==i.opacity&&(o*=i.opacity);else if("textAnchor"===t)o="start"===e?D:"end"===e?E:k;else if("charSpacing"===t)n=Mt(e,s)/s*1e3;else if("paintFirst"===t){const t=e.indexOf("fill"),i=e.indexOf("stroke");o="fill",(t>-1&&i>-1&&i-1)&&(o="stroke")}else{if("href"===t||"xlink:href"===t||"font"===t)return e;if("imageSmoothing"===t)return"optimizeQuality"===e;n=r?e.map(Mt):Mt(e,s)}}else o="";return!r&&isNaN(n)?o:n}function ks(t){const e={},i=t.getAttribute("style");return i?("string"==typeof i?function(t,e){t.replace(/;\s*$/,"").split(";").forEach((t=>{const[i,s]=t.split(":");e[i.trim().toLowerCase()]=s.trim()}))}(i,e):function(t,e){Object.entries(t).forEach((t=>{let[i,s]=t;void 0!==s&&(e[i.toLowerCase()]=s)}))}(i,e),e):e}const Ds={stroke:"strokeOpacity",fill:"fillOpacity"};function Ms(t,e,i){if(!t)return{};let r,n={},o=T;t.parentNode&&es.test(t.parentNode.nodeName)&&(n=Ms(t.parentElement,e,i),n.fontSize&&(r=o=Mt(n.fontSize)));const a=s(s(s({},e.reduce(((e,i)=>{const s=t.getAttribute(i);return s&&(e[i]=s),e}),{})),function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={};for(const r in e)ss(t,r.split(" "))&&(i=s(s({},i),e[r]));return i}(t,i)),ks(t));a[ts]&&t.setAttribute(ts,a[ts]),a[$i]&&(r=Mt(a[$i],o),a[$i]="".concat(r));const h={};for(const s in a){const t=rs(s),e=Os(t,a[s],n,r);h[t]=e}h&&h.font&&function(t,e){const i=t.match(Qi);if(!i)return;const s=i[1],r=i[3],n=i[4],o=i[5],a=i[6];s&&(e.fontStyle=s),r&&(e.fontWeight=isNaN(parseFloat(r))?r:parseFloat(r)),n&&(e.fontSize=Mt(n)),a&&(e.fontFamily=a),o&&(e.lineHeight="normal"===o?1:o)}(h.font,h);const c=s(s({},n),h);return es.test(t.nodeName)?c:function(t){const e=zi.getDefaults();return Object.entries(Ds).forEach((i=>{let[s,r]=i;if(void 0===t[r]||""===t[s])return;if(void 0===t[s]){if(!e[s])return;t[s]=e[s]}if(0===t[s].indexOf("url("))return;const n=new kt(t[s]);t[s]=n.setAlpha(Dt(n.getAlpha()*t[r],2)).toRgba()})),t}(c)}const Ps=["left","top","width","height","visible"],Es=["rx","ry"];class As extends zi{static getDefaults(){return s(s({},super.getDefaults()),As.ownDefaults)}constructor(t){super(t),this._initRxRy()}_initRxRy(){const{rx:t,ry:e}=this;t&&!e?this.ry=t:e&&!t&&(this.rx=e)}_render(t){const{width:e,height:i}=this,s=-e/2,r=-i/2,n=this.rx?Math.min(this.rx,e/2):0,o=this.ry?Math.min(this.ry,i/2):0,a=0!==n||0!==o;t.beginPath(),t.moveTo(s+n,r),t.lineTo(s+e-n,r),a&&t.bezierCurveTo(s+e-O*n,r,s+e,r+O*o,s+e,r+o),t.lineTo(s+e,r+i-o),a&&t.bezierCurveTo(s+e,r+i-O*o,s+e-O*n,r+i,s+e-n,r+i),t.lineTo(s+n,r+i),a&&t.bezierCurveTo(s+O*n,r+i,s,r+i-O*o,s,r+i-o),t.lineTo(s,r+o),a&&t.bezierCurveTo(s,r+O*o,s+O*n,r,s+n,r),t.closePath(),this._renderPaintInOrder(t)}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject([...Es,...t])}_toSVG(){const{width:t,height:e,rx:i,ry:s}=this;return["\n')]}static fromElement(t,i,r){return e(this,null,(function*(){const e=Ms(t,this.ATTRIBUTE_NAMES,r),{left:o=0,top:a=0,width:h=0,height:c=0,visible:l=!0}=e,u=n(e,Ps);return new this(s(s(s({},i),u),{},{left:o,top:a,width:h,height:c,visible:Boolean(l&&h&&c)}))}))}}r(As,"type","Rect"),r(As,"cacheProperties",[...ai,...Es]),r(As,"ownDefaults",{rx:0,ry:0}),r(As,"ATTRIBUTE_NAMES",[...Ui,"x","y","rx","ry","width","height"]),R.setClass(As),R.setSVGClass(As);const js=["objects"];let Fs=class t extends(G(zi)){static getDefaults(){return s(s({},super.getDefaults()),t.ownDefaults)}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;super(),r(this,"_activeObjects",[]),r(this,"__objectSelectionTracker",void 0),r(this,"__objectSelectionDisposer",void 0),r(this,"_firstLayoutDone",!1),this._objects=t.slice(),this.__objectMonitor=this.__objectMonitor.bind(this),this.__objectSelectionTracker=this.__objectSelectionMonitor.bind(this,!0),this.__objectSelectionDisposer=this.__objectSelectionMonitor.bind(this,!1),this.set(s(s({},e),{},{angle:0,skewX:0,skewY:0})),this.forEachObject((t=>{this.enterGroup(t,!1)})),this._applyLayoutStrategy({type:"initialization",options:e,objectsRelativeToGroup:i})}canEnterGroup(t){return t!==this&&!this.isDescendantOf(t)&&-1===this._objects.indexOf(t)}_filterObjectsBeforeEnteringGroup(t){return t.filter(((t,e,i)=>this.canEnterGroup(t)&&i.indexOf(t)===e))}add(){for(var t=arguments.length,e=new Array(t),i=0;i1?e-1:0),s=1;s{i._set(t,e)})),"layout"===t&&i!==e&&this._applyLayoutStrategy({type:"layout_change",layout:e,prevLayout:i}),"interactive"===t&&this.forEachObject((t=>this._watchObject(e,t))),this}_shouldSetNestedCoords(){return this.subTargetCheck}removeAll(){return this._activeObjects=[],this.remove(...this._objects)}__objectMonitor(t){this._applyLayoutStrategy(s(s({},t),{},{type:"object_modified"})),this._set("dirty",!0)}__objectSelectionMonitor(t,e){let{target:i}=e;if(t)this._activeObjects.push(i),this._set("dirty",!0);else if(this._activeObjects.length>0){const t=this._activeObjects.indexOf(i);t>-1&&(this._activeObjects.splice(t,1),this._set("dirty",!0))}}_watchObject(t,e){const i=t?"on":"off";t&&this._watchObject(!1,e),e[i]("changed",this.__objectMonitor),e[i]("modified",this.__objectMonitor),e[i]("selected",this.__objectSelectionTracker),e[i]("deselected",this.__objectSelectionDisposer)}enterGroup(t,e){return t.group&&t.group.remove(t),this._enterGroup(t,e),!0}_enterGroup(t,e){e&&se(t,nt(rt(this.calcTransformMatrix()),t.calcTransformMatrix())),this._shouldSetNestedCoords()&&t.setCoords(),t._set("group",this),t._set("canvas",this.canvas),this.interactive&&this._watchObject(!0,t);const i=this.canvas&&this.canvas.getActiveObject&&this.canvas.getActiveObject();i&&(i===t||t.isDescendantOf(i))&&this._activeObjects.push(t)}exitGroup(t,e){this._exitGroup(t,e),t._set("canvas",void 0)}_exitGroup(t,e){t._set("group",void 0),e||(se(t,nt(this.calcTransformMatrix(),t.calcTransformMatrix())),t.setCoords()),this._watchObject(!1,t);const i=this._activeObjects.length>0?this._activeObjects.indexOf(t):-1;i>-1&&this._activeObjects.splice(i,1)}shouldCache(){const t=zi.prototype.shouldCache.call(this);if(t)for(let e=0;et.setCoords()))}render(t){this._transformDone=!0,super.render(t),this._transformDone=!1}triggerLayout(t){t&&t.layout&&(t.prevLayout=this.layout,this.layout=t.layout),this._applyLayoutStrategy({type:"imperative",context:t})}_adjustObjectPosition(t,e){t.set({left:t.left+e.x,top:t.top+e.y})}_applyLayoutStrategy(t){const e="initialization"===t.type;if(!e&&!this._firstLayoutDone)return;const i=e&&t.options,s=i&&{angle:i.angle||0,skewX:i.skewX||0,skewY:i.skewY||0},r=this.getRelativeCenterPoint();let n,o=this.getLayoutStrategyResult(this.layout,[...this._objects],t);if(o){const i=new H(o.centerX,o.centerY),a=r.subtract(i).add(new H(o.correctionX||0,o.correctionY||0));n=a.transform(rt(this.calcOwnMatrix()),!0),this.set({width:o.width,height:o.height}),!t.objectsRelativeToGroup&&this.forEachObject((t=>{t.group===this&&this._adjustObjectPosition(t,n)})),!e&&"clip-path"!==this.layout&&this.clipPath&&!this.clipPath.absolutePositioned&&this._adjustObjectPosition(this.clipPath,n),i.eq(r)&&!s||(this.setPositionByOrigin(i,k,k),s&&this.set(s),this.setCoords())}else{if(!e)return;o={centerX:r.x,centerY:r.y,width:this.width,height:this.height},s&&this.set(s),n=new H}this._firstLayoutDone=!0,this.onLayout(t,o),this.fire("layout",{context:t,result:o,diff:n}),this.group&&this.group._applyLayoutStrategy&&(t.path||(t.path=[]),t.path.push(this),this.group._applyLayoutStrategy(t))}getLayoutStrategyResult(t,e,i){if("fit-content-lazy"===t&&"added"===i.type&&e.length>i.targets.length){const e=i.targets.concat(this);return this.prepareBoundingBox(t,e,i)}if("fit-content"===t||"fit-content-lazy"===t||"fixed"===t&&("initialization"===i.type||"imperative"===i.type))return this.prepareBoundingBox(t,e,i);if("clip-path"===t&&this.clipPath){const s=this.clipPath,r=s._getTransformedDimensions();if(s.absolutePositioned&&("initialization"===i.type||"layout_change"===i.type)){let t=s.getCenterPoint();if(this.group){const e=rt(this.group.calcTransformMatrix());t=st(t,e)}return{centerX:t.x,centerY:t.y,width:r.x,height:r.y}}if(!s.absolutePositioned){let n;const o=s.getRelativeCenterPoint(),a=st(o,this.calcOwnMatrix(),!0);if("initialization"===i.type||"layout_change"===i.type){const r=this.prepareBoundingBox(t,e,i)||{};return n=new H(r.centerX||0,r.centerY||0),{centerX:n.x+a.x,centerY:n.y+a.y,correctionX:r.correctionX-a.x,correctionY:r.correctionY-a.y,width:s.width,height:s.height}}return n=this.getRelativeCenterPoint(),{centerX:n.x+a.x,centerY:n.y+a.y,width:r.x,height:r.y}}}}prepareBoundingBox(t,e,i){return"initialization"===i.type?this.prepareInitialBoundingBox(t,e,i):"imperative"===i.type&&i.context?s(s({},this.getObjectsBoundingBox(e)||{}),i.context):this.getObjectsBoundingBox(e)}prepareInitialBoundingBox(t,e,i){const s=i.options||{},r="number"==typeof s.left,n="number"==typeof s.top,o="number"==typeof s.width,a="number"==typeof s.height;if(r&&n&&o&&a&&i.objectsRelativeToGroup||0===e.length)return;const h=this.getObjectsBoundingBox(e)||{},{centerX:c=0,centerY:l=0,width:u=0,height:d=0}=h,g=o?this.width:u,f=a?this.height:d,p=new H(c,l),m=new H(de(this.originX),de(this.originY)),_=new H(g,f),v=this._getTransformedDimensions({width:0,height:0}),y=this._getTransformedDimensions({width:g,height:f,strokeWidth:0}),x=this._getTransformedDimensions({width:h.width,height:h.height,strokeWidth:0}),C=new H(0,0),b=m.scalarAdd(.5),S=y.multiply(b),w=new H(o?x.x/2:S.x,a?x.y/2:S.y),T=new H(r?this.left-(y.x+v.x)*m.x:p.x-w.x,n?this.top-(y.y+v.y)*m.y:p.y-w.y),O=new H(r?T.x-p.x+x.x*(o?.5:0):-(o?.5*(y.x-v.x):y.x*b.x),n?T.y-p.y+x.y*(a?.5:0):-(a?.5*(y.y-v.y):y.y*b.y)).add(C),k=new H(o?-y.x/2:0,a?-y.y/2:0).add(O);return{centerX:T.x,centerY:T.y,correctionX:k.x,correctionY:k.y,width:_.x,height:_.y}}getObjectsBoundingBox(t,e){if(0===t.length)return null;const i=[];t.forEach((t=>{const e=t.getRelativeCenterPoint();let s=t._getTransformedDimensions().scalarDivide(2);if(t.angle){const e=tt(t.angle),i=Math.abs(V(e)),r=Math.abs(W(e)),n=s.x*r+s.y*i,o=s.x*i+s.y*r;s=new H(n,o)}i.push(e.subtract(s),e.add(s))}));const{left:s,top:r,width:n,height:o}=te(i),a=new H(n,o),h=(e?new H:new H(s,r)).add(a.scalarDivide(2)).transform(this.calcOwnMatrix());return{centerX:h.x,centerY:h.y,width:a.x,height:a.y}}onLayout(t,e){}__serializeObjects(t,e){const i=this.includeDefaultValues;return this._objects.filter((function(t){return!t.excludeFromExport})).map((function(s){const r=s.includeDefaultValues;s.includeDefaultValues=i;const n=s[t||"toObject"](e);return s.includeDefaultValues=r,n}))}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return s(s({},super.toObject(["layout","subTargetCheck","interactive",...t])),{},{objects:this.__serializeObjects("toObject",t)})}toString(){return"#")}dispose(){this._activeObjects=[],this.forEachObject((t=>{this._watchObject(!1,t),t.dispose()})),super.dispose()}_createSVGBgRect(t){if(!this.backgroundColor)return"";const e=As.prototype._toSVG.call(this),i=e.indexOf("COMMON_PARTS");e[i]='for="group" ';const s=e.join("");return t?t(s):s}_toSVG(t){const e=["\n"],i=this._createSVGBgRect(t);i&&e.push("\t\t",i);for(let s=0;s\n"),e}getSvgStyles(){const t=void 0!==this.opacity&&1!==this.opacity?"opacity: ".concat(this.opacity,";"):"",e=this.visible?"":" visibility: hidden;";return[t,this.getSvgFilter(),e].join("")}toClipPathSVG(t){const e=[],i=this._createSVGBgRect(t);i&&e.push("\t",i);for(let s=0;s{let[e,r]=t;return new this(e,s(s({},i),r),!0)}))}};r(Fs,"stateProperties",[...zi.stateProperties,"layout"]),r(Fs,"type","Group"),r(Fs,"ownDefaults",{layout:"fit-content",strokeWidth:0,subTargetCheck:!1,interactive:!1}),R.setClass(Fs);class Ls extends Fs{constructor(t,e,i){super(t,e,i),r(this,"multiSelectionStacking","canvas-stacking"),this.setCoords()}_shouldSetNestedCoords(){return!0}__objectSelectionMonitor(){}multiSelectAdd(){for(var t=arguments.length,e=new Array(t),i=0;i{const e=this._objects.findIndex((e=>e.isInFrontOf(t))),i=-1===e?this.size():e;this.insertAt(i,t)}))}enterGroup(t,e){if(t.group){const e=t.group;e._exitGroup(t),t.__owningGroup=e}return this._enterGroup(t,e),!0}exitGroup(t,e){this._exitGroup(t,e);const i=t.__owningGroup;i&&(i._enterGroup(t,!0),delete t.__owningGroup)}_onAfterObjectsChange(t,e){super._onAfterObjectsChange(t,e);const i=[];e.forEach((t=>{t.group&&!i.includes(t.group)&&i.push(t.group)})),"removed"===t?i.forEach((t=>{t._onAfterObjectsChange("added",e)})):i.forEach((t=>{t._set("dirty",!0)}))}onDeselect(){return this.removeAll(),!1}toString(){return"#")}shouldCache(){return!1}isOnACache(){return!1}_renderControls(t,e,i){t.save(),t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,super._renderControls(t,e);const r=s(s({hasControls:!1},i),{},{forActiveSelection:!0});for(let s=0;s2&&void 0!==arguments[2]?arguments[2]:this.strokeProjectionMagnitude;const s=this.createSideVector(t,e),r=Ke(s),n=Is.getOrthogonalRotationFactor(r,this.bisector);return this.scaleUnitVector(r,i*n)}projectBevel(){const t=[];return(this.alpha%b==0?[this.B]:[this.B,this.C]).forEach((e=>{t.push(this.projectOrthogonally(this.A,e)),t.push(this.projectOrthogonally(this.A,e,-this.strokeProjectionMagnitude))})),t}projectMiter(){const t=[],e=Math.abs(this.alpha),i=1/Math.sin(e/2),s=this.scaleUnitVector(this.bisector,-this.strokeProjectionMagnitude*i),r=this.options.strokeUniform?Ge(this.scaleUnitVector(this.bisector,this.options.strokeMiterLimit)):this.options.strokeMiterLimit;return Ge(s)/this.strokeProjectionMagnitude<=r&&t.push(this.applySkew(this.A.add(s))),t.push(...this.projectBevel()),t}projectRoundNoSkew(t,e){const i=[],s=new H(Is.getOrthogonalRotationFactor(this.bisector),Is.getOrthogonalRotationFactor(new H(this.bisector.y,this.bisector.x)));return[new H(1,0).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar).multiply(s),new H(0,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar).multiply(s)].forEach((s=>{Ze(s,t,e)&&i.push(this.A.add(s))})),i}projectRoundWithSkew(e,i){const s=[],{skewX:r,skewY:n,scaleX:o,scaleY:a,strokeUniform:h}=this.options,c=new H(Math.tan(tt(r)),Math.tan(tt(n))),l=this.strokeProjectionMagnitude,u=h?l/a/Math.sqrt(1/t(a,2)+1/t(o,2)*t(c.y,2)):l/Math.sqrt(1+t(c.y,2)),d=new H(Math.sqrt(Math.max(t(l,2)-t(u,2),0)),u),g=h?l/Math.sqrt(1+t(c.x,2)*t(1/a,2)/t(1/o+1/o*c.x*c.y,2)):l/Math.sqrt(1+t(c.x,2)/t(1+c.x*c.y,2)),f=new H(g,Math.sqrt(Math.max(t(l,2)-t(g,2),0)));return[f,f.scalarMultiply(-1),d,d.scalarMultiply(-1)].map((t=>this.applySkew(h?t.multiply(this.strokeUniformScalar):t))).forEach((t=>{Ze(t,e,i)&&s.push(this.applySkew(this.A).add(t))})),s}projectRound(){const t=[];t.push(...this.projectBevel());const e=this.alpha%b==0,i=this.applySkew(this.A),s=t[e?0:2].subtract(i),r=t[e?1:0].subtract(i),n=e?this.applySkew(this.AB.scalarMultiply(-1)):this.applySkew(this.bisector.multiply(this.strokeUniformScalar).scalarMultiply(-1)),o=Je(s,n)>0,a=o?s:r,h=o?r:s;return this.isSkewed()?t.push(...this.projectRoundWithSkew(a,h)):t.push(...this.projectRoundNoSkew(a,h)),t}projectPoints(){switch(this.options.strokeLineJoin){case"miter":return this.projectMiter();case"round":return this.projectRound();default:return this.projectBevel()}}project(){return this.projectPoints().map((t=>({originPoint:this.A,projectedPoint:t,angle:this.alpha,bisector:this.bisector})))}}class Xs extends Rs{constructor(t,e,i){super(i),this.A=new H(t),this.T=new H(e)}calcOrthogonalProjection(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.strokeProjectionMagnitude;const s=this.createSideVector(t,e);return this.scaleUnitVector(Ke(s),i)}projectButt(){return[this.projectOrthogonally(this.A,this.T,this.strokeProjectionMagnitude),this.projectOrthogonally(this.A,this.T,-this.strokeProjectionMagnitude)]}projectRound(){const t=[];if(!this.isSkewed()&&this.A.eq(this.T)){const e=new H(1,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar);t.push(this.applySkew(this.A.add(e)),this.applySkew(this.A.subtract(e)))}else t.push(...new Is(this.A,this.T,this.T,this.options).projectRound());return t}projectSquare(){const t=[];if(this.A.eq(this.T)){const e=new H(1,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar);t.push(this.A.add(e),this.A.subtract(e))}else{const e=this.calcOrthogonalProjection(this.A,this.T,this.strokeProjectionMagnitude),i=this.scaleUnitVector(qe(this.createSideVector(this.A,this.T)),-this.strokeProjectionMagnitude),s=this.A.add(i);t.push(s.add(e),s.subtract(e))}return t.map((t=>this.applySkew(t)))}projectPoints(){switch(this.options.strokeLineCap){case"round":return this.projectRound();case"square":return this.projectSquare();default:return this.projectButt()}}project(){return this.projectPoints().map((t=>({originPoint:this.A,projectedPoint:t})))}}const Ys=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const s=[];if(0===t.length)return s;const r=t.reduce(((t,e)=>(t[t.length-1].eq(e)||t.push(new H(e)),t)),[new H(t[0])]);if(1===r.length)i=!0;else if(!i){const t=r[0],e=((t,e)=>{for(let i=t.length-1;i>=0;i--)if(e(t[i],i,t))return i;return-1})(r,(e=>!e.eq(t)));r.splice(e+1)}return r.forEach(((t,r,n)=>{let o,a;0===r?(a=n[1],o=i?t:n[n.length-1]):r===n.length-1?(o=n[r-1],a=i?t:n[0]):(o=n[r-1],a=n[r+1]),i&&1===n.length?s.push(...new Xs(t,t,e).project()):!i||0!==r&&r!==n.length-1?s.push(...new Is(t,o,a,e).project()):s.push(...new Xs(t,0===r?a:o,e).project())})),s},Ws=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.fill!==e.fill||t.stroke!==e.stroke||t.strokeWidth!==e.strokeWidth||t.fontSize!==e.fontSize||t.fontFamily!==e.fontFamily||t.fontWeight!==e.fontWeight||t.fontStyle!==e.fontStyle||t.textBackgroundColor!==e.textBackgroundColor||t.deltaY!==e.deltaY||i&&(t.overline!==e.overline||t.underline!==e.underline||t.linethrough!==e.linethrough)},Vs=(t,e)=>{const i=e.split("\n"),s=[];let r=-1,n={};t=ni(t);for(let o=0;o0&&(Ws(n,i,!0)?s.push({start:r,end:r+1,style:i}):s[s.length-1].end++),n=i||{}}else r+=i[o].length,n={};return s},Hs=(t,e)=>{if(!Array.isArray(t))return ni(t);const i=e.split(j),r={};let n=-1,o=0;for(let a=0;aMath.min(e.width/t.width,e.height/t.height),Gs=(t,e)=>Math.max(e.width/t.width,e.height/t.height),Us=t=>t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">"),Ns=t=>{const e=[];for(let i,s=0;s{const i=t.charCodeAt(e);if(isNaN(i))return"";if(i<55296||i>57343)return t.charAt(e);if(55296<=i&&i<=56319){if(t.length<=e+1)throw"High surrogate without following low surrogate";const i=t.charCodeAt(e+1);if(56320>i||i>57343)throw"High surrogate without following low surrogate";return t.charAt(e)+t.charAt(e+1)}if(0===e)throw"Low surrogate without preceding high surrogate";const s=t.charCodeAt(e-1);if(55296>s||s>56319)throw"Low surrogate without preceding high surrogate";return!1};var Ks,Js=Object.freeze({__proto__:null,capitalize:function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"".concat(t.charAt(0).toUpperCase()).concat(e?t.slice(1):t.slice(1).toLowerCase())},escapeXml:Us,graphemeSplit:Ns});const Qs="(".concat(Ji,")"),Zs="(M) (?:".concat(Qs," ").concat(Qs," ?)+"),$s="(L) (?:".concat(Qs," ").concat(Qs," ?)+"),tr="(H) (?:".concat(Qs," ?)+"),er="(V) (?:".concat(Qs," ?)+"),ir=String.raw(Ks||(Ks=o(["(Z)s*"],["(Z)\\s*"]))),sr="(C) (?:".concat(Qs," ").concat(Qs," ").concat(Qs," ").concat(Qs," ").concat(Qs," ").concat(Qs," ?)+"),rr="(S) (?:".concat(Qs," ").concat(Qs," ").concat(Qs," ").concat(Qs," ?)+"),nr="(Q) (?:".concat(Qs," ").concat(Qs," ").concat(Qs," ").concat(Qs," ?)+"),or="(T) (?:".concat(Qs," ").concat(Qs," ?)+"),ar="(A) (?:".concat(Qs," ").concat(Qs," ").concat(Qs," ([01]) ?([01]) ").concat(Qs," ").concat(Qs," ?)+"),hr="(?:(?:".concat(Zs,")")+"|(?:".concat($s,")")+"|(?:".concat(tr,")")+"|(?:".concat(er,")")+"|(?:".concat(ir,")")+"|(?:".concat(sr,")")+"|(?:".concat(rr,")")+"|(?:".concat(nr,")")+"|(?:".concat(or,")")+"|(?:".concat(ar,"))"),cr={m:"l",M:"L"},lr=(t,e,i,s,r,n,o,a,h,c,l)=>{const u=W(t),d=V(t),g=W(e),f=V(e),p=i*r*g-s*n*f+o,m=s*r*g+i*n*f+a;return["C",c+h*(-i*r*d-s*n*u),l+h*(-s*r*d+i*n*u),p+h*(i*r*f+s*n*g),m+h*(s*r*f-i*n*g),p,m]},ur=(t,e,i,s)=>{const r=Math.atan2(e,t),n=Math.atan2(s,i);return n>=r?n-r:2*Math.PI-(r-n)};function dr(t,e,i,s,r,n,o,a){let h;if(c.cachesBoundsOfCurve&&(h=[...arguments].join(),v.boundsOfCurveCache[h]))return v.boundsOfCurveCache[h];const l=Math.sqrt,u=Math.abs,d=[],g=[[0,0],[0,0]];let f=6*t-12*i+6*r,p=-3*t+9*i-9*r+3*o,m=3*i-3*t;for(let c=0;c<2;++c){if(c>0&&(f=6*e-12*s+6*n,p=-3*e+9*s-9*n+3*a,m=3*s-3*e),u(p)<1e-12){if(u(f)<1e-12)continue;const t=-m/f;0{let[r,n,o,a,h,c,l,u]=s;const d=((e,i,s,r,n,o,a)=>{if(0===s||0===r)return[];let h=0,c=0,l=0;const u=Math.PI,d=a*S,g=V(d),f=W(d),p=.5*(-f*e-g*i),m=.5*(-f*i+g*e),_=t(s,2),v=t(r,2),y=t(m,2),x=t(p,2),C=_*v-_*y-v*x;let b=Math.abs(s),w=Math.abs(r);if(C<0){const t=Math.sqrt(1-C/(_*v));b*=t,w*=t}else l=(n===o?-1:1)*Math.sqrt(C/(_*y+v*x));const T=l*b*m/w,O=-l*w*p/b,k=f*T-g*O+.5*e,D=g*T+f*O+.5*i;let M=ur(1,0,(p-T)/b,(m-O)/w),P=ur((p-T)/b,(m-O)/w,(-p-T)/b,(-m-O)/w);0===o&&P>0?P-=2*u:1===o&&P<0&&(P+=2*u);const E=Math.ceil(Math.abs(P/u*2)),A=new Array(E),j=P/E,F=8/3*Math.sin(j/4)*Math.sin(j/4)/Math.sin(j/2);let L=M+j;for(let t=0;t{let e=0,i=0,s=0,r=0;const n=[];let o,a=0,h=0;for(const c of t){const t=[...c];let l;switch(t[0]){case"l":t[1]+=e,t[2]+=i;case"L":e=t[1],i=t[2],l=["L",e,i];break;case"h":t[1]+=e;case"H":e=t[1],l=["L",e,i];break;case"v":t[1]+=i;case"V":i=t[1],l=["L",e,i];break;case"m":t[1]+=e,t[2]+=i;case"M":e=t[1],i=t[2],s=t[1],r=t[2],l=["M",e,i];break;case"c":t[1]+=e,t[2]+=i,t[3]+=e,t[4]+=i,t[5]+=e,t[6]+=i;case"C":a=t[3],h=t[4],e=t[5],i=t[6],l=["C",t[1],t[2],a,h,e,i];break;case"s":t[1]+=e,t[2]+=i,t[3]+=e,t[4]+=i;case"S":"C"===o?(a=2*e-a,h=2*i-h):(a=e,h=i),e=t[3],i=t[4],l=["C",a,h,t[1],t[2],e,i],a=l[3],h=l[4];break;case"q":t[1]+=e,t[2]+=i,t[3]+=e,t[4]+=i;case"Q":a=t[1],h=t[2],e=t[3],i=t[4],l=["Q",a,h,e,i];break;case"t":t[1]+=e,t[2]+=i;case"T":"Q"===o?(a=2*e-a,h=2*i-h):(a=e,h=i),e=t[1],i=t[2],l=["Q",a,h,e,i];break;case"a":t[6]+=e,t[7]+=i;case"A":gr(e,i,t).forEach((t=>n.push(t))),e=t[6],i=t[7];break;case"z":case"Z":e=s,i=r,l=["Z"]}l?(n.push(l),o=l[0]):o=""}return n},pr=(e,i,s,r)=>Math.sqrt(t(s-e,2)+t(r-i,2)),mr=(e,i,s,r,n,o,a,h)=>c=>{const l=t(c,3),u=(e=>3*t(e,2)*(1-e))(c),d=(e=>3*e*t(1-e,2))(c),g=(e=>t(1-e,3))(c);return new H(a*l+n*u+s*d+e*g,h*l+o*u+r*d+i*g)},_r=e=>t(e,2),vr=t=>2*t*(1-t),yr=e=>t(1-e,2),xr=(t,e,i,s,r,n,o,a)=>h=>{const c=_r(h),l=vr(h),u=yr(h),d=3*(u*(i-t)+l*(r-i)+c*(o-r)),g=3*(u*(s-e)+l*(n-s)+c*(a-n));return Math.atan2(g,d)},Cr=(t,e,i,s,r,n)=>o=>{const a=_r(o),h=vr(o),c=yr(o);return new H(r*a+i*h+t*c,n*a+s*h+e*c)},br=(t,e,i,s,r,n)=>o=>{const a=1-o,h=2*(a*(i-t)+o*(r-i)),c=2*(a*(s-e)+o*(n-s));return Math.atan2(c,h)},Sr=(t,e,i)=>{let s=new H(e,i),r=0;for(let n=1;n<=100;n+=1){const e=t(n/100);r+=pr(s.x,s.y,e.x,e.y),s=e}return r},wr=(t,e)=>{let i,r=0,n=0,o={x:t.x,y:t.y},a=s({},o),h=.01,c=0;const l=t.iterator,u=t.angleFinder;for(;n1e-4;)a=l(r),c=r,i=pr(o.x,o.y,a.x,a.y),i+n>e?(r-=h,h/=2):(o=a,r+=h,n+=i);return s(s({},a),{},{angle:u(c)})},Tr=t=>{let e,i,s=0,r=0,n=0,o=0,a=0;const h=[];for(const c of t){const t={x:r,y:n,command:c[0],length:0};switch(c[0]){case"M":i=t,i.x=o=r=c[1],i.y=a=n=c[2];break;case"L":i=t,i.length=pr(r,n,c[1],c[2]),r=c[1],n=c[2];break;case"C":e=mr(r,n,c[1],c[2],c[3],c[4],c[5],c[6]),i=t,i.iterator=e,i.angleFinder=xr(r,n,c[1],c[2],c[3],c[4],c[5],c[6]),i.length=Sr(e,r,n),r=c[5],n=c[6];break;case"Q":e=Cr(r,n,c[1],c[2],c[3],c[4]),i=t,i.iterator=e,i.angleFinder=br(r,n,c[1],c[2],c[3],c[4]),i.length=Sr(e,r,n),r=c[3],n=c[4];break;case"Z":i=t,i.destX=o,i.destY=a,i.length=pr(r,n,o,a),r=o,n=a}s+=i.length,h.push(i)}return h.push({length:s,x:r,y:n}),h},Or=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tr(t),r=0;for(;e-i[r].length>0&&r{t=ns(t);const e=[];for(const i of t.matchAll(new RegExp(hr,"gi"))){let t=i[0];const s=[];let r;do{if(r=new RegExp(hr,"i").exec(t),!r)break;const e=r.filter((t=>t));e.shift();const i=e.map((t=>{const e=Number.parseFloat(t);return Number.isNaN(e)?t:e}));if(s.push(i),e.length<=1)break;e.shift(),t=t.replace(new RegExp("".concat(e.join(" ?")," ?$")),"")}while(r);s.reverse().forEach(((t,i)=>{const s=cr[t[0]];i>0&&("l"==s||"L"==s)&&(t[0]=s),e.push(t)}))}return e},Dr=(t,e)=>t.map((t=>t.map(((t,i)=>0===i||void 0===e?t:Dt(t,e))).join(" "))).join(" ");var Mr=Object.freeze({__proto__:null,addTransformToObject:ie,animate:Xe,animateColor:Ye,applyTransformToObject:se,calcAngleBetweenVectors:Ue,calcDimensionsMatrix:ft,calcPlaneChangeMatrix:ae,calcVectorRotation:Ne,cancelAnimFrame:q,capValue:Fe,composeMatrix:pt,copyCanvasElement:t=>{var e;const i=Q();return i.width=t.width,i.height=t.height,null===(e=i.getContext("2d"))||void 0===e||e.drawImage(t,0,0),i},cos:W,createCanvasElement:Q,createImage:Z,createRotateMatrix:ct,createScaleMatrix:lt,createSkewXMatrix:dt,createSkewYMatrix:gt,createTranslateMatrix:ht,createVector:ze,crossProduct:Je,degreesToRadians:tt,dotProduct:Qe,ease:ke,enlivenObjectEnlivables:vt,enlivenObjects:_t,findScaleToCover:Gs,findScaleToFit:zs,getBoundsOfCurve:dr,getOrthonormalVector:Ke,getPathSegmentsInfo:Tr,getPointOnPath:Or,getPointer:Qt,getRandomInt:(t,e)=>Math.floor(Math.random()*(e-t+1))+t,getRegularPolygonPath:(t,e)=>{const i=2*Math.PI/t;let s=-C;t%2==0&&(s+=i/2);const r=new Array(t+1);for(let n=0;n1&&void 0!==arguments[1]?arguments[1]:0,i=new H(t[0]),s=new H(t[1]),r=1,n=0;const o=[],a=t.length,h=a>2;let c;for(h&&(r=t[2].xt[c-2].x?1:i.x===t[c-2].x?0:-1,n=i.y>t[c-2].y?1:i.y===t[c-2].y?0:-1),o.push(["L",i.x+r*e,i.y+n*e]),o},getSvgAttributes:t=>{const e=["instantiated_by_use","style","id","class"];switch(t){case"linearGradient":return e.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);case"radialGradient":return e.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);case"stop":return e.concat(["offset","stop-color","stop-opacity"])}return e},getUnitVector:qe,groupSVGElements:t=>t&&1===t.length?t[0]:new Fs(t),hasStyleChanged:Ws,invertTransform:rt,isBetweenVectors:Ze,isIdentityMatrix:t=>t.every(((t,e)=>t===w[e])),isTouchEvent:Zt,isTransparent:Gi,joinPath:Dr,loadImage:mt,magnitude:Ge,makeBoundingBoxFromPoints:te,makePathSimpler:fr,matrixToSVG:Et,mergeClipPaths:(t,e)=>{var i;let s=t,r=e;s.inverted&&!r.inverted&&(s=e,r=t),ce(r,null===(i=r.group)||void 0===i?void 0:i.calcTransformMatrix(),s.calcTransformMatrix());const n=s.inverted&&r.inverted;return n&&(s.inverted=r.inverted=!1),new Fs([s],{clipPath:r,inverted:n})},multiplyTransformMatrices:nt,multiplyTransformMatrixArray:ot,parsePath:kr,parsePreserveAspectRatioAttribute:Pt,parseUnit:Mt,pick:yt,projectStrokeOnPoints:Ys,qrDecompose:at,radiansToDegrees:et,removeFromArray:Y,removeTransformFromObject:(t,e)=>{const i=rt(e),s=nt(i,t.calcOwnMatrix());se(t,s)},removeTransformMatrixForSvgParsing:(t,e)=>{let i=t._findCenterFromElement();t.transformMatrix&&((t=>{if(t.transformMatrix){const{scaleX:e,scaleY:i,angle:s,skewX:r}=at(t.transformMatrix);t.flipX=!1,t.flipY=!1,t.set("scaleX",e),t.set("scaleY",i),t.angle=s,t.skewX=r,t.skewY=0}})(t),i=i.transform(t.transformMatrix)),delete t.transformMatrix,e&&(t.scaleX*=e.scaleX,t.scaleY*=e.scaleY,t.cropX=e.cropX,t.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,t.width=e.width,t.height=e.height),t.setPositionByOrigin(i,k,k)},request:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e.onComplete||x,s=new(_().XMLHttpRequest),r=e.signal,n=function(){s.abort()},o=function(){r&&r.removeEventListener("abort",n),s.onerror=s.ontimeout=x};if(r&&r.aborted)throw new Error("`options.signal` is in `aborted` state");return r&&r.addEventListener("abort",n,{once:!0}),s.onreadystatechange=function(){4===s.readyState&&(o(),i(s),s.onreadystatechange=x)},s.onerror=s.ontimeout=o,s.open("get",t,!0),s.send(),s},requestAnimFrame:N,resetObjectTransform:re,rotatePoint:(t,e,i)=>t.rotate(i,e),rotateVector:He,saveObjectTransform:ne,sendObjectToPlane:ce,sendPointToPlane:he,setStyle:Ht,sin:V,sizeAfterTransform:oe,string:Js,stylesFromArray:Hs,stylesToArray:Vs,toDataURL:$,toFixed:Dt,transformPath:(t,e,i)=>(i&&(e=nt(e,[1,0,0,1,-i.x,-i.y])),t.map((t=>{const i=[...t];for(let s=1;s{if("child"!==i&&"sibling"!==i)throw new Error("fabric.js: received bad argument ".concat(i));if("child"!==s&&"sibling"!==s)throw new Error("fabric.js: received bad argument ".concat(s));if(i===s)return t;const r=e.viewportTransform;return t.transform("child"===s?rt(r):r)}});class Pr extends Nt{constructor(t){let{allowTouchScrolling:e=!1,containerClass:i=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(t),r(this,"upper",void 0),r(this,"container",void 0);const{el:s}=this.lower,n=this.createUpperCanvas();this.upper={el:n,ctx:n.getContext("2d")},this.applyCanvasStyle(s,{allowTouchScrolling:e}),this.applyCanvasStyle(n,{allowTouchScrolling:e});const o=this.createContainerElement();o.classList.add(i),s.parentNode&&s.parentNode.replaceChild(o,s),o.append(s,n),this.container=o}createUpperCanvas(){const{el:t}=this.lower,e=Q();return e.className=t.className,e.classList.remove("lower-canvas"),e.classList.add("upper-canvas"),e.setAttribute("data-fabric","top"),e.style.cssText=t.style.cssText,e.setAttribute("draggable","true"),e}createContainerElement(){const t=m().createElement("div");return t.setAttribute("data-fabric","wrapper"),Ht(t,{position:"relative"}),Ut(t),t}applyCanvasStyle(t,e){let{allowTouchScrolling:i}=e;Ht(t,{position:"absolute",left:"0",top:"0"}),function(t,e){const i=e?"manipulation":A;Ht(t,{"touch-action":i,"-ms-touch-action":i})}(t,i),Ut(t)}setDimensions(t,e){super.setDimensions(t,e);const{el:i,ctx:s}=this.upper;zt(i,s,t,e)}setCSSDimensions(t){super.setCSSDimensions(t),Gt(this.upper.el,t),Gt(this.container,t)}cleanupDOM(t){const e=this.container,{el:i}=this.lower,{el:s}=this.upper;super.cleanupDOM(t),e.removeChild(s),e.removeChild(i),e.parentNode&&e.parentNode.replaceChild(i,e)}dispose(){super.dispose(),p().dispose(this.upper.el),delete this.upper,delete this.container}}const Er=["activeSelection"];class Ar extends Kt{static getDefaults(){return s(s({},super.getDefaults()),Ar.ownDefaults)}get upperCanvasEl(){var t;return null===(t=this.elements.upper)||void 0===t?void 0:t.el}get contextTop(){var t;return null===(t=this.elements.upper)||void 0===t?void 0:t.ctx}get wrapperEl(){return this.elements.container}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{activeSelection:i=new Ls}=e;super(t,n(e,Er)),r(this,"targets",[]),r(this,"_hoveredTargets",[]),r(this,"_objectsToRender",[]),r(this,"_currentTransform",null),r(this,"_groupSelector",null),r(this,"contextTopDirty",!1),r(this,"_activeSelection",void 0),this._activeSelection=i,this._activeSelection.set("canvas",this)}initElements(t){this.elements=new Pr(t,{allowTouchScrolling:this.allowTouchScrolling,containerClass:this.containerClass}),this._createCacheCanvas()}_onObjectAdded(t){this._objectsToRender=void 0,super._onObjectAdded(t)}_onObjectRemoved(t){this._objectsToRender=void 0,t===this._activeObject&&(this.fire("before:selection:cleared",{deselected:[t]}),this._discardActiveObject(),this.fire("selection:cleared",{deselected:[t]}),t.fire("deselected",{target:t})),t===this._hoveredTarget&&(this._hoveredTarget=void 0,this._hoveredTargets=[]),super._onObjectRemoved(t)}_chooseObjectsToRender(){const t=this._activeObject;return!this.preserveObjectStacking&&t?this._objects.filter((e=>!e.group&&e!==t)).concat(t):this._objects}renderAll(){this.cancelRequestedRender(),this.destroyed||(!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1),!this._objectsToRender&&(this._objectsToRender=this._chooseObjectsToRender()),this.renderCanvas(this.getContext(),this._objectsToRender))}renderTopLayer(t){t.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(t),this.contextTopDirty=!0),t.restore()}renderTop(){const t=this.contextTop;this.clearContext(t),this.renderTopLayer(t),this.fire("after:render",{ctx:t})}_normalizePointer(t,e){return st(this.restorePointerVpt(e),rt(t.calcTransformMatrix()))}setTargetFindTolerance(t){t=Math.round(t),this.targetFindTolerance=t;const e=this.getRetinaScaling(),i=Math.ceil((2*t+1)*e);this.pixelFindCanvasEl.width=this.pixelFindCanvasEl.height=i,this.pixelFindContext.scale(e,e)}isTargetTransparent(t,e,i){const s=this.targetFindTolerance,r=this.pixelFindContext;this.clearContext(r),r.save(),r.translate(-e+s,-i+s),r.transform(...this.viewportTransform);const n=t.selectionBackgroundColor;t.selectionBackgroundColor="",t.render(r),t.selectionBackgroundColor=n,r.restore();const o=Math.round(s*this.getRetinaScaling());return Gi(r,o,o,o)}_isSelectionKeyPressed(t){const e=this.selectionKey;return!!e&&(Array.isArray(e)?!!e.find((e=>!!e&&!0===t[e])):t[e])}_shouldClearSelection(t,e){const i=this.getActiveObjects(),s=this._activeObject;return!!(!e||e&&s&&i.length>1&&-1===i.indexOf(e)&&s!==e&&!this._isSelectionKeyPressed(t)||e&&!e.evented||e&&!e.selectable&&s&&s!==e)}_shouldCenterTransform(t,e,i){if(!t)return;let s;return"scale"===e||"scaleX"===e||"scaleY"===e||"resizing"===e?s=this.centeredScaling||t.centeredScaling:"rotate"===e&&(s=this.centeredRotation||t.centeredRotation),s?!i:i}_getOriginFromCorner(t,e){const i={x:t.originX,y:t.originY};return["ml","tl","bl"].includes(e)?i.x=E:["mr","tr","br"].includes(e)&&(i.x=D),["tl","mt","tr"].includes(e)?i.y=P:["bl","mb","br"].includes(e)&&(i.y=M),i}_setupCurrentTransform(t,e,i){if(!e)return;const r=e.group?he(this.getPointer(t),void 0,e.group.calcTransformMatrix()):this.getPointer(t),n=e.getActiveControl()||"",o=!!n&&e.controls[n],a=i&&o?o.getActionHandler(t,e,o):xe,h=((t,e,i,s)=>{if(!e||!t)return"drag";const r=s.controls[e];return r.getActionName(i,r,s)})(i,n,t,e),c=this._getOriginFromCorner(e,n),l=t[this.centeredKey],u={target:e,action:h,actionHandler:a,actionPerformed:!1,corner:n,scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,offsetX:r.x-e.left,offsetY:r.y-e.top,originX:c.x,originY:c.y,ex:r.x,ey:r.y,lastX:r.x,lastY:r.y,theta:tt(e.angle),width:e.width,height:e.height,shiftKey:t.shiftKey,altKey:l,original:s(s({},ne(e)),{},{originX:c.x,originY:c.y})};this._shouldCenterTransform(e,h,l)&&(u.originX=k,u.originY=k),this._currentTransform=u,this._beforeTransform(t)}setCursor(t){this.upperCanvasEl.style.cursor=t}_drawSelection(t){const{x:e,y:i,deltaX:s,deltaY:r}=this._groupSelector,n=new H(e,i).transform(this.viewportTransform),o=new H(e+s,i+r).transform(this.viewportTransform),a=this.selectionLineWidth/2;let h=Math.min(n.x,o.x),c=Math.min(n.y,o.y),l=Math.max(n.x,o.x),u=Math.max(n.y,o.y);this.selectionColor&&(t.fillStyle=this.selectionColor,t.fillRect(h,c,l-h,u-c)),this.selectionLineWidth&&this.selectionBorderColor&&(t.lineWidth=this.selectionLineWidth,t.strokeStyle=this.selectionBorderColor,h+=a,c+=a,l-=a,u-=a,zi.prototype._setLineDash.call(this,t,this.selectionDashArray),t.strokeRect(h,c,l-h,u-c))}findTarget(t){if(this.skipTargetFind)return;const e=this.getPointer(t,!0),i=this._activeObject,s=this.getActiveObjects();if(this.targets=[],i&&s.length>=1){if(i._findTargetCorner(e,Zt(t)))return i;if(s.length>1&&this.searchPossibleTargets([i],e))return i;if(i===this.searchPossibleTargets([i],e)){if(this.preserveObjectStacking){const s=this.targets;this.targets=[];const r=this.searchPossibleTargets(this._objects,e);return t[this.altSelectionKey]&&r&&r!==i?(this.targets=s,i):r}return i}}return this.searchPossibleTargets(this._objects,e)}_checkTarget(t,e,i){if(e&&e.visible&&e.evented&&e.containsPoint(t)){if(!this.perPixelTargetFind&&!e.perPixelTargetFind||e.isEditing)return!0;if(!this.isTargetTransparent(e,i.x,i.y))return!0}return!1}_searchPossibleTargets(t,e){let i,s=t.length;for(;s--;){const r=t[s],n=r.group?this._normalizePointer(r.group,e):e;if(this._checkTarget(n,r,e)){if(i=t[s],Rt(i)&&i.subTargetCheck){const t=this._searchPossibleTargets(i._objects,e);t&&this.targets.push(t)}break}}return i}searchPossibleTargets(t,e){const i=this._searchPossibleTargets(t,e);return i&&Rt(i)&&i.interactive&&this.targets[0]?this.targets[0]:i}restorePointerVpt(t){return t.transform(rt(this.viewportTransform))}getPointer(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._absolutePointer&&!e)return this._absolutePointer;if(this._pointer&&e)return this._pointer;const i=this.upperCanvasEl,s=i.getBoundingClientRect();let r=Qt(t),n=s.width||0,o=s.height||0;n&&o||(M in s&&P in s&&(o=Math.abs(s.top-s.bottom)),E in s&&D in s&&(n=Math.abs(s.right-s.left))),this.calcOffset(),r.x=r.x-this._offset.left,r.y=r.y-this._offset.top,e||(r=this.restorePointerVpt(r));const a=this.getRetinaScaling();1!==a&&(r.x/=a,r.y/=a);const h=0===n||0===o?new H(1,1):new H(i.width/n,i.height/o);return r.multiply(h)}_setDimensionsImpl(t,e){this._resetTransformEventData(),super._setDimensionsImpl(t,e),this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop)}_createCacheCanvas(){this.pixelFindCanvasEl=Q(),this.pixelFindContext=this.pixelFindCanvasEl.getContext("2d",{willReadFrequently:!0}),this.setTargetFindTolerance(this.targetFindTolerance)}getTopContext(){return this.elements.upper.ctx}getSelectionContext(){return this.elements.upper.ctx}getSelectionElement(){return this.elements.upper.el}getActiveObject(){return this._activeObject}getActiveSelection(){return this._activeSelection}getActiveObjects(){const t=this._activeObject;return t?t===this._activeSelection?[...t._objects]:[t]:[]}_fireSelectionEvents(t,e){let i=!1,s=!1;const r=this.getActiveObjects(),n=[],o=[];t.forEach((t=>{r.includes(t)||(i=!0,t.fire("deselected",{e:e,target:t}),o.push(t))})),r.forEach((s=>{t.includes(s)||(i=!0,s.fire("selected",{e:e,target:s}),n.push(s))})),t.length>0&&r.length>0?(s=!0,i&&this.fire("selection:updated",{e:e,selected:n,deselected:o})):r.length>0?(s=!0,this.fire("selection:created",{e:e,selected:n})):t.length>0&&(s=!0,this.fire("selection:cleared",{e:e,deselected:o})),s&&(this._objectsToRender=void 0)}setActiveObject(t,e){const i=this.getActiveObjects(),s=this._setActiveObject(t,e);return this._fireSelectionEvents(i,e),s}_setActiveObject(t,e){return this._activeObject!==t&&(!(!this._discardActiveObject(e,t)&&this._activeObject)&&(!t.onSelect({e:e})&&(this._activeObject=t,!0)))}_discardActiveObject(t,e){const i=this._activeObject;return!!i&&(!i.onDeselect({e:t,object:e})&&(i===this._activeSelection&&(this._activeSelection.removeAll(),re(this._activeSelection)),this._currentTransform&&this._currentTransform.target===i&&this.endCurrentTransform(t),this._activeObject=void 0,!0))}discardActiveObject(t){const e=this.getActiveObjects(),i=this.getActiveObject();e.length&&this.fire("before:selection:cleared",{e:t,deselected:[i]});const s=this._discardActiveObject(t);return this._fireSelectionEvents(e,t),s}setViewportTransform(t){super.setViewportTransform(t);const e=this._activeObject;e&&e.setCoords()}destroy(){const t=this._activeSelection;t.removeAll(),this._activeSelection=void 0,t.dispose(),super.destroy(),this.pixelFindContext=null,this.pixelFindCanvasEl=void 0}clear(){this.discardActiveObject(),this._activeObject=void 0,this.clearContext(this.contextTop),super.clear()}drawControls(t){const e=this._activeObject;e&&e._renderControls(t)}_toObject(t,e,i){const s=this._realizeGroupTransformOnObject(t),r=super._toObject(t,e,i);return t.set(s),r}_realizeGroupTransformOnObject(t){if(t.group&&t.group===this._activeSelection&&this._activeObject===t.group){const e=yt(t,["angle","flipX","flipY",D,"scaleX","scaleY","skewX","skewY",M]);return ie(t,this._activeObject.calcOwnMatrix()),e}return{}}_setSVGObject(t,e,i){const s=this._realizeGroupTransformOnObject(e);super._setSVGObject(t,e,i),e.set(s)}}r(Ar,"ownDefaults",{uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",selection:!0,selectionKey:"shiftKey",selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,enablePointerEvents:!1,containerClass:"canvas-container",preserveObjectStacking:!1});class jr{constructor(t){r(this,"targets",[]),r(this,"__disposer",void 0);const e=()=>{const e=t.getActiveObject();It(e)&&e.hiddenTextarea&&e.hiddenTextarea.focus()},i=t.upperCanvasEl;i.addEventListener("click",e),this.__disposer=()=>i.removeEventListener("click",e)}exitTextEditing(){this.target=void 0,this.targets.forEach((t=>{t.isEditing&&t.exitEditing()}))}add(t){this.targets.push(t)}remove(t){this.unregister(t),Y(this.targets,t)}register(t){this.target=t}unregister(t){t===this.target&&(this.target=void 0)}onMouseMove(t){var e;(null===(e=this.target)||void 0===e?void 0:e.isEditing)&&this.target.updateSelectionOnMouseMove(t)}clear(){this.targets=[],this.target=void 0}dispose(){this.clear(),this.__disposer(),delete this.__disposer}}const Fr=["target","oldTarget","fireCanvas","e"],Lr={passive:!1};function Rr(t,e){return!!t.button&&t.button===e-1}const Br=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),s=1;s1?e-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:{}),r(this,"_isClick",void 0),r(this,"textEditingManager",new jr(this)),["_onMouseDown","_onTouchStart","_onMouseMove","_onMouseUp","_onTouchEnd","_onResize","_onMouseWheel","_onMouseOut","_onMouseEnter","_onContextMenu","_onDoubleClick","_onDragStart","_onDragEnd","_onDragProgress","_onDragOver","_onDragEnter","_onDragLeave","_onDrop"].forEach((t=>{this[t]=this[t].bind(this)})),this.addOrRemove(Br,"add")}_getEventPrefix(){return this.enablePointerEvents?"pointer":"mouse"}addOrRemove(t,e){const i=this.upperCanvasEl,s=this._getEventPrefix();t(Vt(i),"resize",this._onResize),t(i,s+"down",this._onMouseDown),t(i,"".concat(s,"move"),this._onMouseMove,Lr),t(i,"".concat(s,"out"),this._onMouseOut),t(i,"".concat(s,"enter"),this._onMouseEnter),t(i,"wheel",this._onMouseWheel),t(i,"contextmenu",this._onContextMenu),t(i,"dblclick",this._onDoubleClick),t(i,"dragstart",this._onDragStart),t(i,"dragend",this._onDragEnd),t(i,"dragover",this._onDragOver),t(i,"dragenter",this._onDragEnter),t(i,"dragleave",this._onDragLeave),t(i,"drop",this._onDrop),this.enablePointerEvents||t(i,"touchstart",this._onTouchStart,Lr)}removeListeners(){this.addOrRemove(Ir,"remove");const t=this._getEventPrefix(),e=Wt(this.upperCanvasEl);Ir(e,"".concat(t,"up"),this._onMouseUp),Ir(e,"touchend",this._onTouchEnd,Lr),Ir(e,"".concat(t,"move"),this._onMouseMove,Lr),Ir(e,"touchmove",this._onMouseMove,Lr)}_onMouseWheel(t){this.__onMouseWheel(t)}_onMouseOut(t){const e=this._hoveredTarget,i={e:t,isClick:!1,pointer:this.getPointer(t),absolutePointer:this.getPointer(t,!0)};this.fire("mouse:out",s(s({},i),{},{target:e})),this._hoveredTarget=void 0,e&&e.fire("mouseout",s({},i)),this._hoveredTargets.forEach((t=>{this.fire("mouse:out",s(s({},i),{},{target:t})),t&&t.fire("mouseout",s({},i))})),this._hoveredTargets=[]}_onMouseEnter(t){this._currentTransform||this.findTarget(t)||(this.fire("mouse:over",{e:t,isClick:!1,pointer:this.getPointer(t),absolutePointer:this.getPointer(t,!0)}),this._hoveredTarget=void 0,this._hoveredTargets=[])}_onDragStart(t){this._isClick=!1;const e=this.getActiveObject();if(Xt(e)&&e.onDragStart(t)){this._dragSource=e;const i={e:t,target:e};return this.fire("dragstart",i),e.fire("dragstart",i),void Br(this.upperCanvasEl,"drag",this._onDragProgress)}$t(t)}_renderDragEffects(t,e,i){let s=!1;const r=this._dropTarget;r&&r!==e&&r!==i&&(r.clearContextTop(),s=!0),null==e||e.clearContextTop(),i!==e&&(null==i||i.clearContextTop());const n=this.contextTop;n.save(),n.transform(...this.viewportTransform),e&&(n.save(),e.transform(n),e.renderDragSourceEffect(t),n.restore(),s=!0),i&&(n.save(),i.transform(n),i.renderDropTargetEffect(t),n.restore(),s=!0),n.restore(),s&&(this.contextTopDirty=!0)}_onDragEnd(t){const e=!!t.dataTransfer&&t.dataTransfer.dropEffect!==A,i=e?this._activeObject:void 0,s={e:t,target:this._dragSource,subTargets:this.targets,dragSource:this._dragSource,didDrop:e,dropTarget:i};Ir(this.upperCanvasEl,"drag",this._onDragProgress),this.fire("dragend",s),this._dragSource&&this._dragSource.fire("dragend",s),delete this._dragSource,this._onMouseUp(t)}_onDragProgress(t){const e={e:t,target:this._dragSource,dragSource:this._dragSource,dropTarget:this._draggedoverTarget};this.fire("drag",e),this._dragSource&&this._dragSource.fire("drag",e)}findDragTargets(t){this.targets=[];return{target:this._searchPossibleTargets(this._objects,this.getPointer(t,!0)),targets:[...this.targets]}}_onDragOver(t){const e="dragover",{target:i,targets:s}=this.findDragTargets(t),r=this._dragSource,n={e:t,target:i,subTargets:s,dragSource:r,canDrop:!1,dropTarget:void 0};let o;this.fire(e,n),this._fireEnterLeaveEvents(i,n),i&&(i.canDrop(t)&&(o=i),i.fire(e,n));for(let a=0;a0)return;this.__onMouseUp(t),this._resetTransformEventData(),this.mainTouchId=null;const e=this._getEventPrefix(),i=Wt(this.upperCanvasEl);Ir(i,"touchend",this._onTouchEnd,Lr),Ir(i,"touchmove",this._onMouseMove,Lr),this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((()=>{Br(this.upperCanvasEl,"".concat(e,"down"),this._onMouseDown),this._willAddMouseDown=0}),400)}_onMouseUp(t){this.__onMouseUp(t),this._resetTransformEventData();const e=this.upperCanvasEl,i=this._getEventPrefix();if(this._isMainEvent(t)){const t=Wt(this.upperCanvasEl);Ir(t,"".concat(i,"up"),this._onMouseUp),Ir(t,"".concat(i,"move"),this._onMouseMove,Lr),Br(e,"".concat(i,"move"),this._onMouseMove,Lr)}}_onMouseMove(t){const e=this.getActiveObject();!this.allowTouchScrolling&&(!e||Xt(e)&&!e.shouldStartDragging())&&t.preventDefault&&t.preventDefault(),this.__onMouseMove(t)}_onResize(){this.calcOffset(),this._resetTransformEventData()}_shouldRender(t){const e=this.getActiveObject();return!!(!!e!=!!t||e&&t&&e!==t)||(It(e),!1)}__onMouseUp(t){const e=this._currentTransform;this._cacheTransformEventData(t);const i=this._target,s=this._isClick;if(this._handleEvent(t,"up:before"),Rr(t,3))return void(this.fireRightClick&&this._handleEvent(t,"up",3,s));if(Rr(t,2))return this.fireMiddleClick&&this._handleEvent(t,"up",2,s),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)return void this._onMouseUpInDrawingMode(t);if(!this._isMainEvent(t))return;let r,n,o=!1;if(e&&(this._finalizeCurrentTransform(t),o=e.actionPerformed),!s){const e=i===this._activeObject;this.handleSelection(t),o||(o=this._shouldRender(i)||!e&&i===this._activeObject)}if(i){if(n=i._findTargetCorner(this.getPointer(t,!0),Zt(t)),i.selectable&&i!==this._activeObject&&"up"===i.activeOn)this.setActiveObject(i,t),o=!0;else{const s=i.controls[n],o=s&&s.getMouseUpHandler(t,i,s);o&&(r=this.getPointer(t),o(t,e,r.x,r.y))}i.isMoving=!1}if(e&&(e.target!==i||e.corner!==n)){const i=e.target&&e.target.controls[e.corner],s=i&&i.getMouseUpHandler(t,e.target,i);r=r||this.getPointer(t),s&&s(t,e,r.x,r.y)}this._setCursorFromEvent(t,i),this._handleEvent(t,"up",1,s),this._groupSelector=null,this._currentTransform=null,i&&(i.__corner=void 0),o?this.requestRenderAll():s||It(this._activeObject)&&this._activeObject.isEditing||this.renderTop()}_basicEventHandler(t,e){const{target:i,subTargets:s=[]}=e;this.fire(t,e),i&&i.fire(t,e);for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=this._target,n=this.targets||[],o={e:t,target:r,subTargets:n,button:i,isClick:s,pointer:this.getPointer(t),absolutePointer:this.getPointer(t,!0),transform:this._currentTransform};"up"===e&&(o.currentTarget=this.findTarget(t),o.currentSubTargets=this.targets),this.fire("mouse:".concat(e),o),r&&r.fire("mouse".concat(e),o);for(let a=0;a{i=t.hoverCursor||i})),this.setCursor(i)}handleMultiSelection(t,e){const i=this._activeObject,s=this._activeSelection,r=i===s;if(i&&this._isSelectionKeyPressed(t)&&this.selection&&e&&e.selectable&&(i!==e||r)&&(r||!e.isDescendantOf(i)&&!i.isDescendantOf(e))&&!e.onSelect({e:t})&&!i.getActiveControl()){if(r){const i=s.getObjects();if(e===s){const s=this.getPointer(t,!0);if(!(e=this.searchPossibleTargets(i,s)||this.searchPossibleTargets(this._objects,s))||!e.selectable)return!1}e.group===s?(s.remove(e),this._hoveredTarget=e,this._hoveredTargets=[...this.targets],1===s.size()&&this._setActiveObject(s.item(0),t)):(s.multiSelectAdd(e),this._hoveredTarget=s,this._hoveredTargets=[...this.targets]),this._fireSelectionEvents(i,t)}else It(i)&&i.exitEditing(),s.multiSelectAdd(i,e),this._hoveredTarget=s,this._setActiveObject(s,t),this._fireSelectionEvents([i],t);return!0}return!1}handleSelection(t){if(!this.selection||!this._groupSelector)return!1;const{x:e,y:i,deltaX:s,deltaY:r}=this._groupSelector,n=new H(e,i),o=n.add(new H(s,r)),a=n.min(o),h=n.max(o).subtract(a),c=n.eq(o),l=this.collectObjects({left:a.x,top:a.y,width:h.x,height:h.y},{includeIntersecting:!this.selectionFullyContained}),u=c?l[0]?[l[0]]:[]:l.length>1?l.filter((e=>!e.onSelect({e:t}))).reverse():l;return 1===u.length?this.setActiveObject(u[0],t):u.length>1&&(this._activeSelection.add(...u),this.setActiveObject(this._activeSelection,t)),this._groupSelector=null,!0}clear(){this.textEditingManager.clear(),super.clear()}destroy(){this.removeListeners(),this.textEditingManager.dispose(),super.destroy()}}const Wr={x1:0,y1:0,x2:0,y2:0},Vr=s(s({},Wr),{},{r1:0,r2:0}),Hr=/^(\d+\.\d+)%|(\d+)%$/;function zr(t){return t&&Hr.test(t)}function Gr(t,e){const i="number"==typeof t?t:"string"==typeof t?parseFloat(t)/(zr(t)?100:1):NaN;return Fe(0,X(i,e),1)}const Ur=/\s*;\s*/,Nr=/\s*:\s*/;function qr(t,e){let i,s;const r=t.getAttribute("style");if(r){const t=r.split(Ur);""===t[t.length-1]&&t.pop();for(let e=t.length;e--;){const[r,n]=t[e].split(Nr).map((t=>t.trim()));"stop-color"===r?i=n:"stop-opacity"===r&&(s=n)}}const n=new kt(i||t.getAttribute("stop-color")||"rgb(0,0,0)");return{offset:Gr(t.getAttribute("offset"),0),color:n.toRgb(),opacity:X(parseFloat(s||t.getAttribute("stop-opacity")||""),1)*n.getAlpha()*e}}function Kr(t,e){const i=[],s=t.getElementsByTagName("stop"),r=Gr(e,1);for(let n=s.length;n--;)i.push(qr(s[n],r));return i}function Jr(t){return"linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?"linear":"radial"}function Qr(t){return"userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage"}function Zr(t,e){return t.getAttribute(e)}function $r(t,e){return function(t,e){let i,{width:s,height:r,gradientUnits:n}=e;return Object.keys(t).reduce(((e,o)=>{const a=t[o];return"Infinity"===a?i=1:"-Infinity"===a?i=0:(i="string"==typeof a?parseFloat(a):a,"string"==typeof a&&zr(a)&&(i*=.01,"pixels"===n&&("x1"!==o&&"x2"!==o&&"r2"!==o||(i*=s),"y1"!==o&&"y2"!==o||(i*=r)))),e[o]=i,e}),{})}("linear"===Jr(t)?function(t){return{x1:Zr(t,"x1")||0,y1:Zr(t,"y1")||0,x2:Zr(t,"x2")||"100%",y2:Zr(t,"y2")||0}}(t):function(t){return{x1:Zr(t,"fx")||Zr(t,"cx")||"50%",y1:Zr(t,"fy")||Zr(t,"cy")||"50%",r1:0,x2:Zr(t,"cx")||"50%",y2:Zr(t,"cy")||"50%",r2:Zr(t,"r")||"50%"}}(t),s(s({},e),{},{gradientUnits:Qr(t)}))}class tn{constructor(t){let{type:e="linear",gradientUnits:i="pixels",coords:r,colorStops:n=[],offsetX:o=0,offsetY:a=0,gradientTransform:h,id:c}=t;this.id=c?"".concat(c,"_").concat(J()):J(),this.type=e,this.gradientUnits=i,this.gradientTransform=h,this.offsetX=o,this.offsetY=a,this.coords=s(s({},"radial"===this.type?Vr:Wr),r),this.colorStops=n.slice()}addColorStop(t){for(const e in t){const i=new kt(t[e]);this.colorStops.push({offset:parseFloat(e),color:i.toRgb(),opacity:i.getAlpha()})}return this}toObject(t){return s(s({},yt(this,t)),{},{type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?[...this.gradientTransform]:void 0})}toSVG(t){let{additionalTransform:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=[],r=this.gradientTransform?this.gradientTransform.concat():w.concat(),n="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox",o=this.colorStops.map((t=>s({},t))).sort(((t,e)=>t.offset-e.offset));let a=-this.offsetX,h=-this.offsetY;var c;"objectBoundingBox"===n?(a/=t.width,h/=t.height):(a+=t.width/2,h+=t.height/2),(c=t)&&c.isType("Path")&&"percentage"!==this.gradientUnits&&(a-=t.pathOffset.x,h-=t.pathOffset.y),r[4]-=a,r[5]-=h;const l=['id="SVGID_'.concat(this.id,'"'),'gradientUnits="'.concat(n,'"'),'gradientTransform="'.concat(e?e+" ":"").concat(Et(r),'"'),""].join(" ");if("linear"===this.type){const{x1:t,y1:e,x2:s,y2:r}=this.coords;i.push("\n')}else if("radial"===this.type){const{x1:t,y1:e,x2:s,y2:r,r1:n,r2:a}=this.coords,h=n>a;i.push("\n'),h&&(o.reverse(),o.forEach((t=>{t.offset=1-t.offset})));const c=Math.min(n,a);if(c>0){const t=c/Math.max(n,a);o.forEach((e=>{e.offset+=t*(1-e.offset)}))}}return o.forEach((t=>{let{color:e,offset:s,opacity:r}=t;i.push("\n')})),i.push("linear"===this.type?"":"","\n"),i.join("")}toLive(t){const e=this.coords,i="linear"===this.type?t.createLinearGradient(e.x1,e.y1,e.x2,e.y2):t.createRadialGradient(e.x1,e.y1,e.r1,e.x2,e.y2,e.r2);return this.colorStops.forEach((t=>{let{color:e,opacity:s,offset:r}=t;i.addColorStop(r,void 0!==s?new kt(e).setAlpha(s).toRgba():e)})),i}static fromElement(t,e,i){const r=Qr(t),n=e._findCenterFromElement();return new this(s({id:t.getAttribute("id")||void 0,type:Jr(t),coords:$r(t,{width:i.viewBoxWidth||i.width,height:i.viewBoxHeight||i.height}),colorStops:Kr(t,i.opacity),gradientUnits:r,gradientTransform:Ts(t.getAttribute("gradientTransform")||"")},"pixels"===r?{offsetX:e.width/2-n.x,offsetY:e.height/2-n.y}:{offsetX:0,offsetY:0}))}}r(tn,"type","Gradient"),R.setClass(tn,"gradient");const en=["source"];class sn{get type(){return"pattern"}set type(t){}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,"repeat","repeat"),r(this,"offsetX",0),r(this,"offsetY",0),r(this,"crossOrigin",""),r(this,"patternTransform",null),this.id=J(),Object.assign(this,t)}isImageSource(){return!!this.source&&"string"==typeof this.source.src}isCanvasSource(){return!!this.source&&!!this.source.toDataURL}sourceToString(){return this.isImageSource()?this.source.src:this.isCanvasSource()?this.source.toDataURL():""}toLive(t){return this.source&&(!this.isImageSource()||this.source.complete&&0!==this.source.naturalWidth&&0!==this.source.naturalHeight)?t.createPattern(this.source,this.repeat):null}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{repeat:e,crossOrigin:i}=this;return s(s({},yt(this,t)),{},{type:"pattern",source:this.sourceToString(),repeat:e,crossOrigin:i,offsetX:Dt(this.offsetX,c.NUM_FRACTION_DIGITS),offsetY:Dt(this.offsetY,c.NUM_FRACTION_DIGITS),patternTransform:this.patternTransform?[...this.patternTransform]:null})}toSVG(t){let{width:e,height:i}=t;const{source:s,repeat:r,id:n}=this,o=X(this.offsetX/e,0),a=X(this.offsetY/i,0),h="repeat-y"===r||"no-repeat"===r?1+Math.abs(o||0):X(s.width/e,0),c="repeat-x"===r||"no-repeat"===r?1+Math.abs(a||0):X(s.height/i,0);return[''),''),"",""].join("\n")}static fromObject(t,i){return e(this,null,(function*(){let{source:e}=t,r=n(t,en);const o=yield mt(e,s(s({},i),{},{crossOrigin:r.crossOrigin}));return new this(s(s({},r),{},{source:o}))}))}}r(sn,"type","Pattern"),R.setClass(sn),R.setClass(sn,"pattern");const rn=["path","left","top"],nn=["d"];class on extends zi{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{path:i,left:s,top:r}=e;super(n(e,rn)),this._setPath(t||[],!0),"number"==typeof s&&this.set(D,s),"number"==typeof r&&this.set(M,r)}_setPath(t,e){this.path=fr(Array.isArray(t)?t:kr(t)),this.setBoundingBox(e)}_findCenterFromElement(){const t=this._calcBoundsFromPath();return new H(t.left+t.width/2,t.top+t.height/2)}_renderPathCommands(t){let e=0,i=0,s=0,r=0,n=0,o=0;const a=-this.pathOffset.x,h=-this.pathOffset.y;t.beginPath();for(const c of this.path)switch(c[0]){case"L":s=c[1],r=c[2],t.lineTo(s+a,r+h);break;case"M":s=c[1],r=c[2],e=s,i=r,t.moveTo(s+a,r+h);break;case"C":s=c[5],r=c[6],n=c[3],o=c[4],t.bezierCurveTo(c[1]+a,c[2]+h,n+a,o+h,s+a,r+h);break;case"Q":t.quadraticCurveTo(c[1]+a,c[2]+h,c[3]+a,c[4]+h),s=c[3],r=c[4],n=c[1],o=c[2];break;case"Z":s=e,r=i,t.closePath()}}_render(t){this._renderPathCommands(t),this._renderPaintInOrder(t)}toString(){return"#")}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return s(s({},super.toObject(t)),{},{path:ni(this.path)})}toDatalessObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=this.toObject(t);return this.sourcePath&&(delete e.path,e.sourcePath=this.sourcePath),e}_toSVG(){const t=Dr(this.path,c.NUM_FRACTION_DIGITS);return["\n')]}_getOffsetTransform(){const t=c.NUM_FRACTION_DIGITS;return" translate(".concat(Dt(-this.pathOffset.x,t),", ").concat(Dt(-this.pathOffset.y,t),")")}toClipPathSVG(t){const e=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})}toSVG(t){const e=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})}complexity(){return this.path.length}setDimensions(){this.setBoundingBox()}setBoundingBox(t){const{width:e,height:i,pathOffset:s}=this._calcDimensions();this.set({width:e,height:i,pathOffset:s}),t&&this.setPositionByOrigin(s,k,k)}_calcBoundsFromPath(){const t=[];let e=0,i=0,s=0,r=0;for(const n of this.path)switch(n[0]){case"L":s=n[1],r=n[2],t.push(new H(e,i),new H(s,r));break;case"M":s=n[1],r=n[2],e=s,i=r;break;case"C":t.push(...dr(s,r,n[1],n[2],n[3],n[4],n[5],n[6])),s=n[5],r=n[6];break;case"Q":t.push(...dr(s,r,n[1],n[2],n[1],n[2],n[3],n[4])),s=n[3],r=n[4];break;case"Z":s=e,r=i}return te(t)}_calcDimensions(){const t=this._calcBoundsFromPath();return s(s({},t),{},{pathOffset:new H(t.left+t.width/2,t.top+t.height/2)})}static fromObject(t){return this._fromObject(t,{extraParam:"path"})}static fromElement(t,i,r){return e(this,null,(function*(){const e=Ms(t,this.ATTRIBUTE_NAMES,r),{d:o}=e;return new this(o,s(s(s({},n(e,nn)),i),{},{left:void 0,top:void 0}))}))}}r(on,"type","Path"),r(on,"cacheProperties",[...ai,"path","fillRule"]),r(on,"ATTRIBUTE_NAMES",[...Ui,"d"]),R.setClass(on),R.setSVGClass(on);const an=["left","top","radius"],hn=["radius","startAngle","endAngle"];class cn extends zi{static getDefaults(){return s(s({},super.getDefaults()),cn.ownDefaults)}_set(t,e){return super._set(t,e),"radius"===t&&this.setRadius(e),this}_render(t){t.beginPath(),t.arc(0,0,this.radius,tt(this.startAngle),tt(this.endAngle),!1),this._renderPaintInOrder(t)}getRadiusX(){return this.get("radius")*this.get("scaleX")}getRadiusY(){return this.get("radius")*this.get("scaleY")}setRadius(t){this.radius=t,this.set({width:2*t,height:2*t})}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject([...hn,...t])}_toSVG(){const t=(this.endAngle-this.startAngle)%360;if(0===t)return["\n'];{const{radius:e}=this,i=tt(this.startAngle),s=tt(this.endAngle),r=W(i)*e,n=V(i)*e,o=W(s)*e,a=V(s)*e,h=t>180?"1":"0";return['\n"]}}static fromElement(t,i,r){return e(this,null,(function*(){const e=Ms(t,this.ATTRIBUTE_NAMES,r),{left:i=0,top:o=0,radius:a=0}=e;return new this(s(s({},n(e,an)),{},{radius:a,left:i-a,top:o-a}))}))}static fromObject(t){return super._fromObject(t)}}r(cn,"type","Circle"),r(cn,"cacheProperties",[...ai,...hn]),r(cn,"ownDefaults",{radius:0,startAngle:0,endAngle:360}),r(cn,"ATTRIBUTE_NAMES",["cx","cy","r",...Ui]),R.setClass(cn),R.setSVGClass(cn);const ln=["x1","y1","x2","y2"],un=["x1","y1","x2","y2"],dn=["x1","x2","y1","y2"];let gn=class extends zi{constructor(){let[t,e,i,r]=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0,0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(s(s({},n),{},{x1:t,y1:e,x2:i,y2:r})),this._setWidthHeight();const{left:o,top:a}=n;"number"==typeof o&&this.set(D,o),"number"==typeof a&&this.set(M,a)}_setWidthHeight(){const{x1:t,y1:e,x2:i,y2:s}=this;this.width=Math.abs(i-t),this.height=Math.abs(s-e);const{left:r,top:n,width:o,height:a}=te([{x:t,y:e},{x:i,y:s}]),h=new H(r+o/2,n+a/2);this.setPositionByOrigin(h,k,k)}_set(t,e){return super._set(t,e),dn.includes(t)&&this._setWidthHeight(),this}_render(t){t.beginPath();const e=this.calcLinePoints();t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.lineWidth=this.strokeWidth;const i=t.strokeStyle;var s;jt(this.stroke)?t.strokeStyle=this.stroke.toLive(t):t.strokeStyle=null!==(s=this.stroke)&&void 0!==s?s:t.fillStyle;this.stroke&&this._renderStroke(t),t.strokeStyle=i}_findCenterFromElement(){return new H((this.x1+this.x2)/2,(this.y1+this.y2)/2)}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return s(s({},super.toObject(t)),this.calcLinePoints())}_getNonTransformedDimensions(){const t=super._getNonTransformedDimensions();return"butt"===this.strokeLineCap&&(0===this.width&&(t.y-=this.strokeWidth),0===this.height&&(t.x-=this.strokeWidth)),t}calcLinePoints(){const{x1:t,x2:e,y1:i,y2:s,width:r,height:n}=this,o=t<=e?-1:1,a=i<=s?-1:1;return{x1:o*r/2,x2:o*-r/2,y1:a*n/2,y2:a*-n/2}}_toSVG(){const{x1:t,x2:e,y1:i,y2:s}=this.calcLinePoints();return["\n')]}static fromElement(t,i,s){return e(this,null,(function*(){const e=Ms(t,this.ATTRIBUTE_NAMES,s),{x1:i=0,y1:r=0,x2:o=0,y2:a=0}=e;return new this([i,r,o,a],n(e,ln))}))}static fromObject(t){let{x1:e,y1:i,x2:r,y2:o}=t,a=n(t,un);return this._fromObject(s(s({},a),{},{points:[e,i,r,o]}),{extraParam:"points"})}};r(gn,"type","Line"),r(gn,"cacheProperties",[...ai,...dn]),r(gn,"ATTRIBUTE_NAMES",Ui.concat(dn)),R.setClass(gn),R.setSVGClass(gn);class fn extends zi{static getDefaults(){return s(s({},super.getDefaults()),fn.ownDefaults)}_render(t){const e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,i),t.lineTo(0,-i),t.lineTo(e,i),t.closePath(),this._renderPaintInOrder(t)}_toSVG(){const t=this.width/2,e=this.height/2;return["']}}r(fn,"type","Triangle"),r(fn,"ownDefaults",{width:100,height:100}),R.setClass(fn),R.setSVGClass(fn);const pn=["rx","ry"];class mn extends zi{static getDefaults(){return s(s({},super.getDefaults()),mn.ownDefaults)}_set(t,e){switch(super._set(t,e),t){case"rx":this.rx=e,this.set("width",2*e);break;case"ry":this.ry=e,this.set("height",2*e)}return this}getRx(){return this.get("rx")*this.get("scaleX")}getRy(){return this.get("ry")*this.get("scaleY")}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject([...pn,...t])}_toSVG(){return["\n')]}_render(t){t.beginPath(),t.save(),t.transform(1,0,0,this.ry/this.rx,0,0),t.arc(0,0,this.rx,0,b,!1),t.restore(),this._renderPaintInOrder(t)}static fromElement(t,i,s){return e(this,null,(function*(){const e=Ms(t,this.ATTRIBUTE_NAMES,s);return e.left=(e.left||0)-e.rx,e.top=(e.top||0)-e.ry,new this(e)}))}}r(mn,"type","Ellipse"),r(mn,"cacheProperties",[...ai,...pn]),r(mn,"ownDefaults",{rx:0,ry:0}),r(mn,"ATTRIBUTE_NAMES",[...Ui,"cx","cy","rx","ry"]),R.setClass(mn),R.setSVGClass(mn);const _n=["left","top"],vn={exactBoundingBox:!1};let yn=class t extends zi{static getDefaults(){return s(s({},super.getDefaults()),t.ownDefaults)}constructor(){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(s({points:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]},t)),r(this,"strokeDiff",void 0);const{left:e,top:i}=t;this.initialized=!0,this.setBoundingBox(!0),"number"==typeof e&&this.set(D,e),"number"==typeof i&&this.set(M,i)}isOpen(){return!0}_projectStrokeOnPoints(t){return Ys(this.points,t,this.isOpen())}_calcDimensions(t){t=s({scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,strokeLineCap:this.strokeLineCap,strokeLineJoin:this.strokeLineJoin,strokeMiterLimit:this.strokeMiterLimit,strokeUniform:this.strokeUniform,strokeWidth:this.strokeWidth},t||{});const e=this.exactBoundingBox?this._projectStrokeOnPoints(t).map((t=>t.projectedPoint)):this.points;if(0===e.length)return{left:0,top:0,width:0,height:0,pathOffset:new H,strokeOffset:new H,strokeDiff:new H};const i=te(e),r=ft(s(s({},t),{},{scaleX:1,scaleY:1})),n=te(this.points.map((t=>st(t,r,!0)))),o=i.left+i.width/2,a=i.top+i.height/2,h=o-a*Math.tan(tt(this.skewX)),c=a-h*Math.tan(tt(this.skewY)),l=new H(this.scaleX,this.scaleY);return s(s({},i),{},{pathOffset:new H(h,c),strokeOffset:new H(n.left,n.top).subtract(new H(i.left,i.top)).multiply(l),strokeDiff:new H(i.width,i.height).subtract(new H(n.width,n.height)).multiply(l)})}_findCenterFromElement(){const t=te(this.points);return new H(t.left+t.width/2,t.top+t.height/2)}setDimensions(){this.setBoundingBox()}setBoundingBox(t){const{left:e,top:i,width:s,height:r,pathOffset:n,strokeOffset:o,strokeDiff:a}=this._calcDimensions();this.set({width:s,height:r,pathOffset:n,strokeOffset:o,strokeDiff:a}),t&&this.setPositionByOrigin(new H(e+s/2,i+r/2),k,k)}_getNonTransformedDimensions(){return this.exactBoundingBox?new H(this.width,this.height):super._getNonTransformedDimensions()}_getTransformedDimensions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.exactBoundingBox){let n;if(Object.keys(t).some((t=>this.strokeUniform||this.constructor.layoutProperties.includes(t)))){var e,i;const{width:s,height:r}=this._calcDimensions(t);n=new H(null!==(e=t.width)&&void 0!==e?e:s,null!==(i=t.height)&&void 0!==i?i:r)}else{var s,r;n=new H(null!==(s=t.width)&&void 0!==s?s:this.width,null!==(r=t.height)&&void 0!==r?r:this.height)}return n.multiply(new H(t.scaleX||this.scaleX,t.scaleY||this.scaleY))}return super._getTransformedDimensions(t)}_set(t,e){const i=this.initialized&&this[t]!==e,s=super._set(t,e);return this.exactBoundingBox&&i&&(("scaleX"===t||"scaleY"===t)&&this.strokeUniform&&this.constructor.layoutProperties.includes("strokeUniform")||this.constructor.layoutProperties.includes(t))&&this.setDimensions(),s}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return s(s({},super.toObject(t)),{},{points:ni(this.points)})}_toSVG(){const t=[],e=this.pathOffset.x,i=this.pathOffset.y,s=c.NUM_FRACTION_DIGITS;for(let r=0,n=this.points.length;r\n')]}_render(t){const e=this.points.length,i=this.pathOffset.x,s=this.pathOffset.y;if(e&&!isNaN(this.points[e-1].y)){t.beginPath(),t.moveTo(this.points[0].x-i,this.points[0].y-s);for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:c.NUM_FRACTION_DIGITS;const a=At("fill",t),[h,l,u,d]=[i,s,r,n].map((t=>Dt(t,o)));return"')}(t,{left:e,top:i,width:s,height:r}),"\n")}const Ln=["textAnchor","textDecoration","dx","dy","top","left","fontSize","strokeWidth"];let Rn;class Bn extends En{static getDefaults(){return s(s({},super.getDefaults()),Bn.ownDefaults)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(s(s({},e),{},{text:t,styles:(null==e?void 0:e.styles)||{}})),r(this,"__charBounds",[]),this.initialized=!0,this.path&&this.setPathInfo(),this.initDimensions(),this.setCoords()}setPathInfo(){const t=this.path;t&&(t.segmentsInfo=Tr(t.path))}_splitText(){const t=this._splitTextIntoLines(this.text);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,t}initDimensions(){this._splitText(),this._clearCache(),this.dirty=!0,this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),this.textAlign.includes(kn)&&this.enlargeSpaces()}enlargeSpaces(){let t,e,i,s,r,n,o;for(let a=0,h=this._textLines.length;a')}_getCacheCanvasDimensions(){const t=super._getCacheCanvasDimensions(),e=this.fontSize;return t.width+=e*t.zoomX,t.height+=e*t.zoomY,t}_render(t){const e=this.path;e&&!e.isNotVisible()&&e._render(t),this._setTextStyles(t),this._renderTextLinesBackground(t),this._renderTextDecoration(t,"underline"),this._renderText(t),this._renderTextDecoration(t,"overline"),this._renderTextDecoration(t,"linethrough")}_renderText(t){"stroke"===this.paintFirst?(this._renderTextStroke(t),this._renderTextFill(t)):(this._renderTextFill(t),this._renderTextStroke(t))}_setTextStyles(t,e,i){if(t.textBaseline="alphabetic",this.path)switch(this.pathAlign){case k:t.textBaseline="middle";break;case"ascender":t.textBaseline=M;break;case"descender":t.textBaseline=P}t.font=this._getFontDeclaration(e,i)}calcTextWidth(){let t=this.getLineWidth(0);for(let e=1,i=this._textLines.length;et&&(t=i)}return t}_renderTextLine(t,e,i,s,r,n){this._renderChars(t,e,i,s,r,n)}_renderTextLinesBackground(t){if(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))return;const e=t.fillStyle,i=this._getLeftOffset();let s=this._getTopOffset();for(let r=0,n=this._textLines.length;r=0:se?t%=e:t<0&&(t+=e),this._setGraphemeOnPath(t,i),t+=i.kernedWidth}return{width:s,numOfSpaces:0}}_setGraphemeOnPath(t,e){const i=t+e.kernedWidth/2,s=this.path,r=Or(s.path,i,s.segmentsInfo);e.renderLeft=r.x-s.pathOffset.x,e.renderTop=r.y-s.pathOffset.y,e.angle=r.angle+(this.pathSide===E?Math.PI:0)}_getGraphemeBox(t,e,i,s,r){const n=this.getCompleteStyleDeclaration(e,i),o=s?this.getCompleteStyleDeclaration(e,i-1):{},a=this._measureChar(t,n,s,o);let h,c=a.kernedWidth,l=a.width;0!==this.charSpacing&&(h=this._getWidthOfCharSpacing(),l+=h,c+=h);const u={width:l,left:0,height:n.fontSize,kernedWidth:c,deltaY:n.deltaY};if(i>0&&!r){const t=this.__charBounds[e][i-1];u.left=t.left+t.width+a.kernedWidth-a.width}return u}getHeightOfLine(t){if(this.__lineHeights[t])return this.__lineHeights[t];let e=this.getHeightOfChar(t,0);for(let i=1,s=this._textLines[t].length;i0){let e=s+u+f;"rtl"===this.direction&&(e=this.width-e-p),m&&_&&(t.fillStyle=_,t.fillRect(e,v+o*y+x,p,this.fontSize/15)),f=n.left,p=n.width,m=d,_=g,y=h,x=c}else p+=n.kernedWidth}let C=s+u+f;"rtl"===this.direction&&(C=this.width-C-p),t.fillStyle=g,d&&g&&t.fillRect(C,v+o*y+x,p-n,this.fontSize/15),i+=h}this._removeShadow(t)}_getFontDeclaration(){let{fontFamily:t=this.fontFamily,fontStyle:e=this.fontStyle,fontWeight:i=this.fontWeight,fontSize:s=this.fontSize}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;const n=t.includes("'")||t.includes('"')||t.includes(",")||Bn.genericFonts.includes(t.toLowerCase())?t:'"'.concat(t,'"');return[e,i,"".concat(r?this.CACHE_FONT_SIZE:s,"px"),n].join(" ")}render(t){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._forceClearCache&&this.initDimensions(),super.render(t)))}graphemeSplit(t){return Ns(t)}_splitTextIntoLines(t){const e=t.split(this._reNewline),i=new Array(e.length),s=["\n"];let r=[];for(let n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return s(s({},super.toObject([...wn,...t])),{},{styles:Vs(this.styles,this.text)},this.path?{path:this.path.toObject()}:{})}set(t,e){const{textLayoutProperties:i}=this.constructor;super.set(t,e);let s=!1,r=!1;if("object"==typeof t)for(const n in t)"path"===n&&this.setPathInfo(),s=s||i.includes(n),r=r||"path"===n;else s=i.includes(t),r="path"===t;return r&&this.setPathInfo(),s&&this.initialized&&(this.initDimensions(),this.setCoords()),this}complexity(){return 1}static fromElement(t,i,r){return e(this,null,(function*(){const e=Ms(t,Bn.ATTRIBUTE_NAMES,r),o=s(s({},i),e),{textAnchor:a=D,textDecoration:h="",dx:c=0,dy:l=0,top:u=0,left:d=0,fontSize:g=T,strokeWidth:f=1}=o,p=n(o,Ln),m=new this((t.textContent||"").replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," "),s({left:d+c,top:u+l,underline:h.includes("underline"),overline:h.includes("overline"),linethrough:h.includes("line-through"),strokeWidth:0,fontSize:g},p)),_=m.getScaledHeight()/m.height,v=((m.height+m.strokeWidth)*m.lineHeight-m.height)*_,y=m.getScaledHeight()+v;let x=0;return a===k&&(x=m.getScaledWidth()/2),a===E&&(x=m.getScaledWidth()),m.set({left:m.left-x,top:m.top-(y-m.fontSize*(.07+m._fontSizeFraction))/m.lineHeight,strokeWidth:f}),m}))}static fromObject(t){return this._fromObject(s(s({},t),{},{styles:Hs(t.styles||{},t.text)}),{extraParam:"text"})}}r(Bn,"textLayoutProperties",Sn),r(Bn,"cacheProperties",[...ai,...wn]),r(Bn,"ownDefaults",On),r(Bn,"type","Text"),r(Bn,"genericFonts",["sans-serif","serif","cursive","fantasy","monospace"]),r(Bn,"ATTRIBUTE_NAMES",Ui.concat("x","y","dx","dy","font-family","font-style","font-weight","font-size","letter-spacing","text-decoration","text-anchor")),Hi(Bn,[class extends Ce{_toSVG(){const t=this._getSVGLeftTopOffsets(),e=this._getSVGTextAndBg(t.textTop,t.textLeft);return this._wrapSVGTextAndBg(e)}toSVG(t){return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,noStyle:!0,withShadow:!0})}_getSVGLeftTopOffsets(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}}_wrapSVGTextAndBg(t){let{textBgRects:e,textSpans:i}=t;const s=this.getSvgTextDecoration(this);return[e.join(""),'\t\t",i.join(""),"\n"]}_getSVGTextAndBg(t,e){const i=[],s=[];let r,n=t;this.backgroundColor&&s.push(...Fn(this.backgroundColor,-this.width/2,-this.height/2,this.width,this.height));for(let o=0,a=this._textLines.length;o").concat(Us(t),"")}_setSVGTextLineText(t,e,i,s){const r=this.getHeightOfLine(e),n=this.textAlign.includes(kn),o=this._textLines[e];let a,h,c,l,u,d="",g=0;s+=r*(1-this._fontSizeFraction)/this.lineHeight;for(let f=0,p=o.length-1;f<=p;f++)u=f===p||this.charSpacing,d+=o[f],c=this.__charBounds[e][f],0===g?(i+=c.kernedWidth-c.width,g+=c.width):g+=c.kernedWidth,n&&!u&&this._reSpaceAndTab.test(o[f])&&(u=!0),u||(a=a||this.getCompleteStyleDeclaration(e,f),h=this.getCompleteStyleDeclaration(e,f+1),u=Ws(a,h,!0)),u&&(l=this._getStyleDeclaration(e,f),t.push(this._createTextCharSpan(d,l,i,s)),d="",a=h,"rtl"===this.direction?i-=g:i+=g,g=0)}_setSVGTextLineBg(t,e,i,s){const r=this._textLines[e],n=this.getHeightOfLine(e)/this.lineHeight;let o,a=0,h=0,c=this.getValueOfPropertyAt(e,0,"textBackgroundColor");for(let l=0;lt[e.replace("-","")])).join(" ")}}]),R.setClass(Bn),R.setSVGClass(Bn);class In{constructor(t){r(this,"target",void 0),r(this,"__mouseDownInPlace",!1),r(this,"__dragStartFired",!1),r(this,"__isDraggingOver",!1),r(this,"__dragStartSelection",void 0),r(this,"__dragImageDisposer",void 0),r(this,"_dispose",void 0),this.target=t;const e=[this.target.on("dragenter",this.dragEnterHandler.bind(this)),this.target.on("dragover",this.dragOverHandler.bind(this)),this.target.on("dragleave",this.dragLeaveHandler.bind(this)),this.target.on("dragend",this.dragEndHandler.bind(this)),this.target.on("drop",this.dropHandler.bind(this))];this._dispose=()=>{e.forEach((t=>t())),this._dispose=void 0}}isPointerOverSelection(t){const e=this.target,i=e.getSelectionStartFromPointer(t);return e.isEditing&&i>=e.selectionStart&&i<=e.selectionEnd&&e.selectionStart{x.remove()},Wt(t.target||this.target.hiddenTextarea).body.appendChild(x),null===(i=t.dataTransfer)||void 0===i||i.setDragImage(x,m.x,m.y)}onDragStart(t){this.__dragStartFired=!0;const e=this.target,i=this.isActive();if(i&&t.dataTransfer){const i=this.__dragStartSelection={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd},r=e._text.slice(i.selectionStart,i.selectionEnd).join(""),n=s({text:e.text,value:r},i);t.dataTransfer.setData("text/plain",r),t.dataTransfer.setData("application/fabric",JSON.stringify({value:r,styles:e.getSelectionStyles(i.selectionStart,i.selectionEnd,!0)})),t.dataTransfer.effectAllowed="copyMove",this.setDragImage(t,n)}return e.abortCursorAnimation(),i}canDrop(t){if(this.target.editable&&!this.target.getActiveControl()&&!t.defaultPrevented){if(this.isActive()&&this.__dragStartSelection){const e=this.target.getSelectionStartFromPointer(t),i=this.__dragStartSelection;return ei.selectionEnd}return!0}return!1}targetCanDrop(t){return this.target.canDrop(t)}dragEnterHandler(t){let{e:e}=t;const i=this.targetCanDrop(e);!this.__isDraggingOver&&i&&(this.__isDraggingOver=!0)}dragOverHandler(t){const{e:e}=t,i=this.targetCanDrop(e);!this.__isDraggingOver&&i?this.__isDraggingOver=!0:this.__isDraggingOver&&!i&&(this.__isDraggingOver=!1),this.__isDraggingOver&&(e.preventDefault(),t.canDrop=!0,t.dropTarget=this.target)}dragLeaveHandler(){(this.__isDraggingOver||this.isActive())&&(this.__isDraggingOver=!1)}dropHandler(t){var e;const{e:i}=t,s=i.defaultPrevented;this.__isDraggingOver=!1,i.preventDefault();let r=null===(e=i.dataTransfer)||void 0===e?void 0:e.getData("text/plain");if(r&&!s){const e=this.target,s=e.canvas;let n=e.getSelectionStartFromPointer(i);const{styles:o}=i.dataTransfer.types.includes("application/fabric")?JSON.parse(i.dataTransfer.getData("application/fabric")):{},a=r[Math.max(0,r.length-1)],h=0;if(this.__dragStartSelection){const t=this.__dragStartSelection.selectionStart,i=this.__dragStartSelection.selectionEnd;n>t&&n<=i?n=t:n>i&&(n-=i-t),e.removeChars(t,i),delete this.__dragStartSelection}e._reNewline.test(a)&&(e._reNewline.test(e._text[n])||n===e._text.length)&&(r=r.trimEnd()),t.didDrop=!0,t.dropTarget=e,e.insertChars(r,o,n),s.setActiveObject(e),e.enterEditing(i),e.selectionStart=Math.min(n+h,e._text.length),e.selectionEnd=Math.min(e.selectionStart+r.length,e._text.length),e.hiddenTextarea.value=e.text,e._updateTextarea(),e.hiddenTextarea.focus(),e.fire("changed",{index:n+h,action:"drop"}),s.fire("text:changed",{target:e}),s.contextTopDirty=!0,s.requestRenderAll()}}dragEndHandler(t){let{e:e}=t;if(this.isActive()&&this.__dragStartFired&&this.__dragStartSelection){var i;const t=this.target,s=this.target.canvas,{selectionStart:r,selectionEnd:n}=this.__dragStartSelection,o=(null===(i=e.dataTransfer)||void 0===i?void 0:i.dropEffect)||A;o===A?(t.selectionStart=r,t.selectionEnd=n,t._updateTextarea(),t.hiddenTextarea.focus()):(t.clearContextTop(),"move"===o&&(t.removeChars(r,n),t.selectionStart=t.selectionEnd=r,t.hiddenTextarea&&(t.hiddenTextarea.value=t.text),t._updateTextarea(),t.fire("changed",{index:r,action:"dragend"}),s.fire("text:changed",{target:t}),s.requestRenderAll()),t.exitEditing())}this.__dragImageDisposer&&this.__dragImageDisposer(),delete this.__dragImageDisposer,delete this.__dragStartSelection,this.__isDraggingOver=!1}dispose(){this._dispose&&this._dispose()}}const Xn=/[ \n\.,;!\?\-]/;class Yn extends Bn{constructor(){super(...arguments),r(this,"_currentCursorOpacity",1)}initBehavior(){this._tick=this._tick.bind(this),this._onTickComplete=this._onTickComplete.bind(this),this.updateSelectionOnMouseMove=this.updateSelectionOnMouseMove.bind(this)}onDeselect(t){return this.isEditing&&this.exitEditing(),this.selected=!1,super.onDeselect(t)}_animateCursor(t){let{toValue:e,duration:i,delay:s,onComplete:r}=t;return Xe({startValue:this._currentCursorOpacity,endValue:e,duration:i,delay:s,onComplete:r,abort:()=>!this.canvas||this.selectionStart!==this.selectionEnd,onChange:t=>{this._currentCursorOpacity=t,this.renderCursorOrSelection()}})}_tick(t){this._currentTickState=this._animateCursor({toValue:1,duration:this.cursorDuration,delay:t,onComplete:this._onTickComplete})}_onTickComplete(){var t;null===(t=this._currentTickCompleteState)||void 0===t||t.abort(),this._currentTickCompleteState=this._animateCursor({toValue:0,duration:this.cursorDuration/2,delay:100,onComplete:this._tick})}initDelayedCursor(t){this.abortCursorAnimation(),this._tick(t?0:this.cursorDelay)}abortCursorAnimation(){let t=!1;[this._currentTickState,this._currentTickCompleteState].forEach((e=>{e&&!e.isDone()&&(t=!0,e.abort())})),this._currentCursorOpacity=1,t&&this.clearContextTop()}restartCursorIfNeeded(){[this._currentTickState,this._currentTickCompleteState].some((t=>!t||t.isDone()))&&this.initDelayedCursor()}selectAll(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this}getSelectedText(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")}findWordBoundaryLeft(t){let e=0,i=t-1;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i--;for(;/\S/.test(this._text[i])&&i>-1;)e++,i--;return t-e}findWordBoundaryRight(t){let e=0,i=t;if(this._reSpace.test(this._text[i]))for(;this._reSpace.test(this._text[i]);)e++,i++;for(;/\S/.test(this._text[i])&&i-1;)e++,i--;return t-e}findLineBoundaryRight(t){let e=0,i=t;for(;!/\n/.test(this._text[i])&&i0&&this._reSpace.test(i[t])&&(-1===e||!j.test(i[t-1]))?t-1:t,r=i[s];for(;s>0&&sthis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=i):(this.selectionStart=i,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===s&&this.selectionEnd===r||(this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}_setEditingProps(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0}fromStringToGraphemeSelection(t,e,i){const s=i.slice(0,t),r=this.graphemeSplit(s).length;if(t===e)return{selectionStart:r,selectionEnd:r};const n=i.slice(t,e);return{selectionStart:r,selectionEnd:r+this.graphemeSplit(n).length}}fromGraphemeToStringSelection(t,e,i){const s=i.slice(0,t).join("").length;if(t===e)return{selectionStart:s,selectionEnd:s};return{selectionStart:s,selectionEnd:s+i.slice(t,e).join("").length}}_updateTextarea(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){const t=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=t.selectionStart,this.hiddenTextarea.selectionEnd=t.selectionEnd}this.updateTextareaPosition()}}updateFromTextArea(){if(!this.hiddenTextarea)return;this.cursorOffsetCache={};const t=this.hiddenTextarea;this.text=t.value,this.set("dirty",!0),this.initDimensions(),this.setCoords();const e=this.fromStringToGraphemeSelection(t.selectionStart,t.selectionEnd,t.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}updateTextareaPosition(){if(this.selectionStart===this.selectionEnd){const t=this._calcTextareaPosition();this.hiddenTextarea.style.left=t.left,this.hiddenTextarea.style.top=t.top}}_calcTextareaPosition(){if(!this.canvas)return{left:"1px",top:"1px"};const t=this.inCompositionMode?this.compositionStart:this.selectionStart,e=this._getCursorBoundaries(t),i=this.get2DCursorLocation(t),s=i.lineIndex,r=i.charIndex,n=this.getValueOfPropertyAt(s,r,"fontSize")*this.lineHeight,o=e.leftOffset,a=this.getCanvasRetinaScaling(),h=this.canvas.upperCanvasEl,c=h.width/a,l=h.height/a,u=c-n,d=l-n,g=new H(e.left+o,e.top+e.topOffset+n).transform(this.calcTransformMatrix()).transform(this.canvas.viewportTransform).multiply(new H(h.clientWidth/c,h.clientHeight/l));return g.x<0&&(g.x=0),g.x>u&&(g.x=u),g.y<0&&(g.y=0),g.y>d&&(g.y=d),g.x+=this.canvas._offset.left,g.y+=this.canvas._offset.top,{left:"".concat(g.x,"px"),top:"".concat(g.y,"px"),fontSize:"".concat(n,"px"),charHeight:n}}_saveEditingProps(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}}_restoreEditingProps(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor||this.canvas.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor||this.canvas.moveCursor),delete this._savedProps)}_exitEditing(){const t=this.hiddenTextarea;this.selected=!1,this.isEditing=!1,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this.selectionStart!==this.selectionEnd&&this.clearContextTop()}exitEditing(){const t=this._textBeforeEdit!==this.text;return this._exitEditing(),this.selectionEnd=this.selectionStart,this._restoreEditingProps(),this._forceClearCache&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),t&&this.fire("modified"),this.canvas&&(this.canvas.fire("text:editing:exited",{target:this}),t&&this.canvas.fire("object:modified",{target:this})),this}_removeExtraneousStyles(){for(const t in this.styles)this._textLines[t]||delete this.styles[t]}removeStyleFromTo(t,e){const{lineIndex:i,charIndex:s}=this.get2DCursorLocation(t,!0),{lineIndex:r,charIndex:n}=this.get2DCursorLocation(e,!0);if(i!==r){if(this.styles[i])for(let t=s;t=n&&(t[i-e]=t[s],delete t[s])}}}shiftLineStyles(t,e){const i=Object.assign({},this.styles);for(const s in this.styles){const r=parseInt(s,10);r>t&&(this.styles[r+e]=i[r],i[r-e]||delete this.styles[r])}}insertNewlineStyleObject(t,e,i,r){const n={},o=this._unwrappedTextLines[t].length===e;let a=!1;i||(i=1),this.shiftLineStyles(t,i);const h=this.styles[t]?this.styles[t][0===e?e:e-1]:void 0;for(const s in this.styles[t]){const i=parseInt(s,10);i>=e&&(a=!0,n[i-e]=this.styles[t][s],o&&0===e||delete this.styles[t][s])}let c=!1;for(a&&!o&&(this.styles[t+i]=n,c=!0),c&&i--;i>0;)r&&r[i-1]?this.styles[t+i]={0:s({},r[i-1])}:h?this.styles[t+i]={0:s({},h)}:delete this.styles[t+i],i--;this._forceClearCache=!0}insertCharStyleObject(t,e,i,r){this.styles||(this.styles={});const n=this.styles[t],o=n?s({},n):{};i||(i=1);for(const s in o){const t=parseInt(s,10);t>=e&&(n[t+i]=o[t],o[t-i]||delete n[t])}if(this._forceClearCache=!0,r){for(;i--;)Object.keys(r[i]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][e+i]=s({},r[i]));return}if(!n)return;const a=n[e?e-1:1];for(;a&&i--;)this.styles[t][e+i]=s({},a)}insertNewStyleBlock(t,e,i){const s=this.get2DCursorLocation(e,!0),r=[0];let n,o=0;for(let a=0;a0&&(this.insertCharStyleObject(s.lineIndex,s.charIndex,r[0],i),i=i&&i.slice(r[0]+1)),o&&this.insertNewlineStyleObject(s.lineIndex,s.charIndex+r[0],o),n=1;n0?this.insertCharStyleObject(s.lineIndex+n,0,r[n],i):i&&this.styles[s.lineIndex+n]&&i[0]&&(this.styles[s.lineIndex+n][0]=i[0]),i=i&&i.slice(r[n]+1);r[n]>0&&this.insertCharStyleObject(s.lineIndex+n,0,r[n],i)}removeChars(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t+1;this.removeStyleFromTo(t,e),this._text.splice(t,e-t),this.text=this._text.join(""),this.set("dirty",!0),this.initDimensions(),this.setCoords(),this._removeExtraneousStyles()}insertChars(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i;s>i&&this.removeStyleFromTo(i,s);const r=this.graphemeSplit(t);this.insertNewStyleBlock(r,i,e),this._text=[...this._text.slice(0,i),...r,...this._text.slice(s)],this.text=this._text.join(""),this.set("dirty",!0),this.initDimensions(),this.setCoords(),this._removeExtraneousStyles()}setSelectionStartEndWithShift(t,e,i){i<=t?(e===t?this._selectionDirection=D:this._selectionDirection===E&&(this._selectionDirection=D,this.selectionEnd=t),this.selectionStart=i):i>t&&i{let[i,s]=t;return e.setAttribute(i,s)}));const{top:i,left:s,fontSize:r}=this._calcTextareaPosition();e.style.cssText="position: absolute; top: ".concat(i,"; left: ").concat(s,"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: ").concat(r,";"),(this.hiddenTextareaContainer||t.body).appendChild(e),Object.entries({blur:"blur",keydown:"onKeyDown",keyup:"onKeyUp",input:"onInput",copy:"copy",cut:"copy",paste:"paste",compositionstart:"onCompositionStart",compositionupdate:"onCompositionUpdate",onCompositionUpdate:"onCompositionEnd"}).map((t=>{let[i,s]=t;return e.addEventListener(i,this[s].bind(this))})),this.hiddenTextarea=e}blur(){this.abortCursorAnimation()}onKeyDown(t){if(!this.isEditing)return;const e="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(t.keyCode in e)this[e[t.keyCode]](t);else{if(!(t.keyCode in this.ctrlKeysMapDown)||!t.ctrlKey&&!t.metaKey)return;this[this.ctrlKeysMapDown[t.keyCode]](t)}t.stopImmediatePropagation(),t.preventDefault(),t.keyCode>=33&&t.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}onKeyUp(t){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:t.keyCode in this.ctrlKeysMapUp&&(t.ctrlKey||t.metaKey)&&(this[this.ctrlKeysMapUp[t.keyCode]](t),t.stopImmediatePropagation(),t.preventDefault(),this.canvas&&this.canvas.requestRenderAll())}onInput(t){const e=this.fromPaste;if(this.fromPaste=!1,t&&t.stopPropagation(),!this.isEditing)return;const i=()=>{this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())};if(""===this.hiddenTextarea.value)return this.styles={},void i();const s=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,r=this._text.length,n=s.length,o=this.selectionStart,a=this.selectionEnd,h=o!==a;let l,u,d,g,f=n-r;const m=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),_=o>m.selectionStart;h?(u=this._text.slice(o,a),f+=a-o):nl[0]))),h?(d=o,g=a):_?(d=a-u.length,g=a):(d=a,g=a+u.length),this.removeStyleFromTo(d,g)),v.length){const{copyPasteData:t}=p();e&&v.join("")===t.copiedText&&!c.disableStyleCopyPaste&&(l=t.copiedTextStyle),this.insertNewStyleBlock(v,o,l)}i()}onCompositionStart(){this.inCompositionMode=!0}onCompositionEnd(){this.inCompositionMode=!1}onCompositionUpdate(t){let{target:e}=t;const{selectionStart:i,selectionEnd:s}=e;this.compositionStart=i,this.compositionEnd=s,this.updateTextareaPosition()}copy(){if(this.selectionStart===this.selectionEnd)return;const{copyPasteData:t}=p();t.copiedText=this.getSelectedText(),c.disableStyleCopyPaste?t.copiedTextStyle=void 0:t.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0}paste(){this.fromPaste=!0}_getWidthBeforeCursor(t,e){let i,s=this._getLineLeftOffset(t);return e>0&&(i=this.__charBounds[t][e-1],s+=i.left+i.width),s}getDownCursorOffset(t,e){const i=this._getSelectionForOffset(t,e),s=this.get2DCursorLocation(i),r=s.lineIndex;if(r===this._textLines.length-1||t.metaKey||34===t.keyCode)return this._text.length-i;const n=s.charIndex,o=this._getWidthBeforeCursor(r,n),a=this._getIndexOnLine(r+1,o);return this._textLines[r].slice(n).length+a+1+this.missingNewlineOffset(r)}_getSelectionForOffset(t,e){return t.shiftKey&&this.selectionStart!==this.selectionEnd&&e?this.selectionEnd:this.selectionStart}getUpCursorOffset(t,e){const i=this._getSelectionForOffset(t,e),s=this.get2DCursorLocation(i),r=s.lineIndex;if(0===r||t.metaKey||33===t.keyCode)return-i;const n=s.charIndex,o=this._getWidthBeforeCursor(r,n),a=this._getIndexOnLine(r-1,o),h=this._textLines[r].slice(0,n),c=this.missingNewlineOffset(r-1);return-this._textLines[r-1].length+a-h.length+(1-c)}_getIndexOnLine(t,e){const i=this._textLines[t];let s,r,n=this._getLineLeftOffset(t),o=0;for(let a=0,h=i.length;ae){r=!0;const t=n-s,i=n,h=Math.abs(t-e);o=Math.abs(i-e)=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",t)}moveCursorUp(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",t)}_moveCursorUpOrDown(t,e){const i=this["get".concat(t,"CursorOffset")](e,this._selectionDirection===E);if(e.shiftKey?this.moveCursorWithShift(i):this.moveCursorWithoutShift(i),0!==i){const t=this.text.length;this.selectionStart=Fe(0,this.selectionStart,t),this.selectionEnd=Fe(0,this.selectionEnd,t),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea()}}moveCursorWithShift(t){const e=this._selectionDirection===D?this.selectionStart+t:this.selectionEnd+t;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,e),0!==t}moveCursorWithoutShift(t){return t<0?(this.selectionStart+=t,this.selectionEnd=this.selectionStart):(this.selectionEnd+=t,this.selectionStart=this.selectionEnd),0!==t}moveCursorLeft(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",t)}_move(t,e,i){let s;if(t.altKey)s=this["findWordBoundary".concat(i)](this[e]);else{if(!t.metaKey&&35!==t.keyCode&&36!==t.keyCode)return this[e]+="Left"===i?-1:1,!0;s=this["findLineBoundary".concat(i)](this[e])}return void 0!==s&&this[e]!==s&&(this[e]=s,!0)}_moveLeft(t,e){return this._move(t,e,"Left")}_moveRight(t,e){return this._move(t,e,"Right")}moveCursorLeftWithoutShift(t){let e=!0;return this._selectionDirection=D,this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(e=this._moveLeft(t,"selectionStart")),this.selectionEnd=this.selectionStart,e}moveCursorLeftWithShift(t){return this._selectionDirection===E&&this.selectionStart!==this.selectionEnd?this._moveLeft(t,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection=D,this._moveLeft(t,"selectionStart")):void 0}moveCursorRight(t){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",t)}_moveCursorLeftOrRight(t,e){const i="moveCursor".concat(t).concat(e.shiftKey?"WithShift":"WithoutShift");this._currentCursorOpacity=1,this[i](e)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())}moveCursorRightWithShift(t){return this._selectionDirection===D&&this.selectionStart!==this.selectionEnd?this._moveRight(t,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection=E,this._moveRight(t,"selectionEnd")):void 0}moveCursorRightWithoutShift(t){let e=!0;return this._selectionDirection=E,this.selectionStart===this.selectionEnd?(e=this._moveRight(t,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,e}}function Vn(t){return t.button&&1!==t.button}class Hn extends Wn{constructor(){super(...arguments),r(this,"draggableTextDelegate",void 0)}initBehavior(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore),this.on("mouseup",this.mouseUpHandler),this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler),this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown),this.draggableTextDelegate=new In(this),super.initBehavior()}shouldStartDragging(){return this.draggableTextDelegate.isActive()}onDragStart(t){return this.draggableTextDelegate.onDragStart(t)}canDrop(t){return this.draggableTextDelegate.canDrop(t)}onMouseDown(t){if(!this.canvas)return;this.__newClickTime=+new Date;const e=t.pointer;this.isTripleClick(e)&&(this.fire("tripleclick",t),$t(t.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=e,this.__lastSelected=this.selected}isTripleClick(t){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===t.x&&this.__lastPointer.y===t.y}doubleClickHandler(t){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(t.e))}tripleClickHandler(t){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(t.e))}_mouseDownHandler(t){let{e:e}=t;this.canvas&&this.editable&&!Vn(e)&&!this.getActiveControl()&&(this.draggableTextDelegate.start(e)||(this.canvas.textEditingManager.register(this),this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection())))}_mouseDownHandlerBefore(t){let{e:e}=t;this.canvas&&this.editable&&!Vn(e)&&(this.selected=this===this.canvas._activeObject)}mouseUpHandler(t){let{e:e,transform:i,button:s}=t;const r=this.draggableTextDelegate.end(e);if(this.canvas){this.canvas.textEditingManager.unregister(this);const t=this.canvas._activeObject;if(t&&t!==this)return}!this.editable||this.group&&!this.group.interactive||i&&i.actionPerformed||Vn(e)||r||(this.__lastSelected&&!this.getActiveControl()?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0)}setCursorByClick(t){const e=this.getSelectionStartFromPointer(t),i=this.selectionStart,s=this.selectionEnd;t.shiftKey?this.setSelectionStartEndWithShift(i,s,e):(this.selectionStart=e,this.selectionEnd=e),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())}getSelectionStartFromPointer(t){const e=this.canvas.getPointer(t).transform(rt(this.calcTransformMatrix())).add(new H(-this._getLeftOffset(),-this._getTopOffset()));let i=0,s=0,r=0;for(let h=0;h0&&(s+=this._textLines[h-1].length+this.missingNewlineOffset(h-1));let n=Math.abs(this._getLineLeftOffset(r));const o=this._textLines[r].length,a=this.__charBounds[r];for(let h=0;h0&&void 0!==arguments[0]?arguments[0]:this.selectionStart||0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selectionEnd,i=arguments.length>2?arguments[2]:void 0;return super.getSelectionStyles(t,e,i)}setSelectionStyles(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selectionStart||0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.selectionEnd;return super.setSelectionStyles(t,e,i)}get2DCursorLocation(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectionStart,e=arguments.length>1?arguments[1]:void 0;return super.get2DCursorLocation(t,e)}render(t){super.render(t),this.cursorOffsetCache={},this.renderCursorOrSelection()}toCanvasElement(t){const e=this.isEditing;this.isEditing=!1;const i=super.toCanvasElement(t);return this.isEditing=e,i}renderCursorOrSelection(){if(!this.isEditing)return;const t=this.clearContextTop(!0);if(!t)return;const e=this._getCursorBoundaries();this.selectionStart===this.selectionEnd?this.renderCursor(t,e):this.renderSelection(t,e),this.canvas.contextTopDirty=!0,t.restore()}_getCursorBoundaries(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectionStart,e=arguments.length>1?arguments[1]:void 0;const i=this._getLeftOffset(),s=this._getTopOffset(),r=this._getCursorBoundariesOffsets(t,e);return{left:i,top:s,leftOffset:r.left,topOffset:r.top}}_getCursorBoundariesOffsets(t,e){return e?this.__getCursorBoundariesOffsets(t):this.cursorOffsetCache&&"top"in this.cursorOffsetCache?this.cursorOffsetCache:this.cursorOffsetCache=this.__getCursorBoundariesOffsets(t)}__getCursorBoundariesOffsets(t){let e=0,i=0;const{charIndex:s,lineIndex:r}=this.get2DCursorLocation(t);for(let h=0;h0?i:0)};return"rtl"===this.direction&&(this.textAlign===E||this.textAlign===kn||this.textAlign===Mn?a.left*=-1:this.textAlign===D||this.textAlign===Dn?a.left=n-(i>0?i:0):this.textAlign!==k&&this.textAlign!==Pn||(a.left=n-(i>0?i:0))),a}renderCursorAt(t){const e=this._getCursorBoundaries(t,!0);this._renderCursor(this.canvas.contextTop,e,t)}renderCursor(t,e){this._renderCursor(t,e,this.selectionStart)}_renderCursor(t,e,i){const s=this.get2DCursorLocation(i),r=s.lineIndex,n=s.charIndex>0?s.charIndex-1:0,o=this.getValueOfPropertyAt(r,n,"fontSize"),a=this.scaleX*this.canvas.getZoom(),h=this.cursorWidth/a,c=this.getValueOfPropertyAt(r,n,"deltaY"),l=e.topOffset+(1-this._fontSizeFraction)*this.getHeightOfLine(r)/this.lineHeight-o*(1-this._fontSizeFraction);this.inCompositionMode&&this.renderSelection(t,e),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(r,n,"fill"),t.globalAlpha=this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-h/2,l+e.top+c,h,o)}renderSelection(t,e){const i={selectionStart:this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,selectionEnd:this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd};this._renderSelection(t,i,e)}renderDragSourceEffect(){const t=this.draggableTextDelegate.getDragStartSelection();this._renderSelection(this.canvas.contextTop,t,this._getCursorBoundaries(t.selectionStart,!0))}renderDropTargetEffect(t){const e=this.getSelectionStartFromPointer(t);this.renderCursorAt(e)}_renderSelection(t,e,i){const s=e.selectionStart,r=e.selectionEnd,n=this.textAlign.includes(kn),o=this.get2DCursorLocation(s),a=this.get2DCursorLocation(r),h=o.lineIndex,c=a.lineIndex,l=o.charIndex<0?0:o.charIndex,u=a.charIndex<0?0:a.charIndex;for(let d=h;d<=c;d++){const e=this._getLineLeftOffset(d)||0;let s=this.getHeightOfLine(d),r=0,o=0,a=0;if(d===h&&(o=this.__charBounds[h][l].left),d>=h&&d1)&&(s/=this.lineHeight);let g=i.left+e+o,f=s,p=0;const m=a-o;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",f=1,p=s):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(this.textAlign===E||this.textAlign===kn||this.textAlign===Mn?g=this.width-g-m:this.textAlign===D||this.textAlign===Dn?g=i.left+e-a:this.textAlign!==k&&this.textAlign!==Pn||(g=i.left+e-a)),t.fillRect(g,i.top+i.topOffset+p,m,f),i.topOffset+=r}}getCurrentCharFontSize(){const t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,"fontSize")}getCurrentCharColor(){const t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,"fill")}_getCurrentCharIndex(){const t=this.get2DCursorLocation(this.selectionStart,!0),e=t.charIndex>0?t.charIndex-1:0;return{l:t.lineIndex,c:e}}dispose(){this._exitEditing(),this.draggableTextDelegate.dispose(),super.dispose()}};r(Jn,"ownDefaults",Kn),r(Jn,"type","IText"),R.setClass(Jn),R.setClass(Jn,"i-text");let Qn,Zn=class t extends Jn{static getDefaults(){return s(s({},super.getDefaults()),{},{controls:Wi()},t.ownDefaults)}initDimensions(){this.initialized&&(this.isEditing&&this.initDelayedCursor(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.includes(kn)&&this.enlargeSpaces(),this.height=this.calcTextHeight())}_generateStyleMap(t){let e=0,i=0,s=0;const r={};for(let n=0;n0?(i=0,s++,e++):!this.splitByGrapheme&&this._reSpaceAndTab.test(t.graphemeText[s])&&n>0&&(i++,s++),r[n]={line:e,offset:i},s+=t.graphemeLines[n].length,i+=t.graphemeLines[n].length;return r}styleHas(t,e){if(this._styleMap&&!this.isWrapping){const t=this._styleMap[e];t&&(e=t.line)}return super.styleHas(t,e)}isEmptyStyles(t){if(!this.styles)return!0;let e,i=0,s=t+1,r=!1;const n=this._styleMap[t],o=this._styleMap[t+1];n&&(t=n.line,i=n.offset),o&&(s=o.line,r=s===t,e=o.offset);const a=void 0===t?this.styles:{line:this.styles[t]};for(const h in a)for(const t in a[h]){const s=parseInt(t,10);if(s>=i&&(!r||s{let n=0;const o=e?this.graphemeSplit(t):this.wordSplit(t);return 0===o.length?[]:o.map((t=>{const o=e?[t]:this.graphemeSplit(t),a=this._measureWord(o,r,n);return s=Math.max(a,s),n+=t.length+i.length,{word:o,width:a}}))})),largestWordWidth:s}}_measureWord(t,e){let i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;for(let n=0,o=t.length;n3&&void 0!==arguments[3]?arguments[3]:0;const o=this._getWidthOfCharSpacing(),a=this.splitByGrapheme,h=[],c=a?"":" ";let l=0,u=[],d=0,g=0,f=!0;e-=n;const p=Math.max(e,s,this.dynamicMinWidth),m=r[t];let _;for(d=0,_=0;_p&&!f?(h.push(u),u=[],l=i,f=!0):l+=o,f||a||u.push(c),u=u.concat(e),g=a?0:this._measureWord([c],t,d),d++,f=!1}return _&&h.push(u),s+n>this.dynamicMinWidth&&(this.dynamicMinWidth=s-o+n),h}isEndOfWrapping(t){return!this._styleMap[t+1]||this._styleMap[t+1].line!==this._styleMap[t].line}missingNewlineOffset(t){return this.splitByGrapheme?this.isEndOfWrapping(t)?1:0:1}_splitTextIntoLines(t){const e=super._splitTextIntoLines(t),i=this._wrapText(e.lines,this.width),s=new Array(i.length);for(let r=0;r0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject(["minWidth","splitByGrapheme",...t])}};r(Zn,"type","Textbox"),r(Zn,"textLayoutProperties",[...Jn.textLayoutProperties,"width"]),r(Zn,"ownDefaults",{minWidth:20,dynamicMinWidth:2,lockScalingFlip:!0,noScaleCache:!1,_wordJoiners:/[ \t\r]/,splitByGrapheme:!1}),R.setClass(Zn);class $n{constructor(){r(this,"resources",{})}applyFilters(t,e,i,s,r){const n=r.getContext("2d");if(!n)return;n.drawImage(e,0,0,i,s);const o={sourceWidth:i,sourceHeight:s,imageData:n.getImageData(0,0,i,s),originalEl:e,originalImageData:n.getImageData(0,0,i,s),canvasEl:r,ctx:n,filterBackend:this};t.forEach((t=>{t.applyTo(o)}));const{imageData:a}=o;return a.width===i&&a.height===s||(r.width=a.width,r.height=a.height),n.putImageData(a,0,0),o}}class to{constructor(){let{tileSize:t=c.textureSize}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,"aPosition",new Float32Array([0,0,0,1,1,0,1,1])),r(this,"resources",{}),this.tileSize=t,this.setupGLContext(t,t),this.captureGPUInfo()}setupGLContext(t,e){this.dispose(),this.createWebGLCanvas(t,e),this.chooseFastestCopyGLTo2DMethod(t,e)}chooseFastestCopyGLTo2DMethod(t,e){const i=Q(),s=new ArrayBuffer(t*e*4);if(c.forceGLPutImageData)return this.imageBuffer=s,void(this.copyGLTo2D=eo);const r={imageBuffer:s},n={destinationWidth:t,destinationHeight:e,targetCanvas:i};let o;i.width=t,i.height=e,o=_().performance.now(),this.copyGLTo2D.call(r,this.gl,n);const a=_().performance.now()-o;o=_().performance.now(),eo.call(r,this.gl,n);a>_().performance.now()-o&&(this.imageBuffer=s,this.copyGLTo2D=eo)}createWebGLCanvas(t,e){const i=Q();i.width=t,i.height=e;const s=i.getContext("webgl",{alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1});s&&(s.clearColor(0,0,0,0),this.canvas=i,this.gl=s)}applyFilters(t,e,i,s,r,n){const o=this.gl,a=r.getContext("2d");if(!o||!a)return;let h;n&&(h=this.getCachedTexture(n,e));const c={originalWidth:e.width||e.originalWidth||0,originalHeight:e.height||e.originalHeight||0,sourceWidth:i,sourceHeight:s,destinationWidth:i,destinationHeight:s,context:o,sourceTexture:this.createTexture(o,i,s,h?void 0:e),targetTexture:this.createTexture(o,i,s),originalTexture:h||this.createTexture(o,i,s,h?void 0:e),passes:t.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:r},l=o.createFramebuffer();return o.bindFramebuffer(o.FRAMEBUFFER,l),t.forEach((t=>{t&&t.applyTo(c)})),function(t){const e=t.targetCanvas,i=e.width,s=e.height,r=t.destinationWidth,n=t.destinationHeight;i===r&&s===n||(e.width=r,e.height=n)}(c),this.copyGLTo2D(o,c),o.bindTexture(o.TEXTURE_2D,null),o.deleteTexture(c.sourceTexture),o.deleteTexture(c.targetTexture),o.deleteFramebuffer(l),a.setTransform(1,0,0,1,0,0),c}dispose(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()}clearWebGLCaches(){this.programCache={},this.textureCache={}}createTexture(t,e,i,s,r){const{NEAREST:n,TEXTURE_2D:o,RGBA:a,UNSIGNED_BYTE:h,CLAMP_TO_EDGE:c,TEXTURE_MAG_FILTER:l,TEXTURE_MIN_FILTER:u,TEXTURE_WRAP_S:d,TEXTURE_WRAP_T:g}=t,f=t.createTexture();return t.bindTexture(o,f),t.texParameteri(o,l,r||n),t.texParameteri(o,u,r||n),t.texParameteri(o,d,c),t.texParameteri(o,g,c),s?t.texImage2D(o,0,a,a,h,s):t.texImage2D(o,0,a,e,i,0,a,h,null),f}getCachedTexture(t,e,i){const{textureCache:s}=this;if(s[t])return s[t];{const r=this.createTexture(this.gl,e.width,e.height,e,i);return r&&(s[t]=r),r}}evictCachesForKey(t){this.textureCache[t]&&(this.gl.deleteTexture(this.textureCache[t]),delete this.textureCache[t])}copyGLTo2D(t,e){const i=t.canvas,s=e.targetCanvas,r=s.getContext("2d");if(!r)return;r.translate(0,s.height),r.scale(1,-1);const n=i.height-s.height;r.drawImage(i,0,n,s.width,s.height,0,0,s.width,s.height)}captureGPUInfo(){if(this.gpuInfo)return this.gpuInfo;const t=this.gl,e={renderer:"",vendor:""};if(!t)return e;const i=t.getExtension("WEBGL_debug_renderer_info");if(i){const s=t.getParameter(i.UNMASKED_RENDERER_WEBGL),r=t.getParameter(i.UNMASKED_VENDOR_WEBGL);s&&(e.renderer=s.toLowerCase()),r&&(e.vendor=r.toLowerCase())}return this.gpuInfo=e,e}}function eo(t,e){const i=e.targetCanvas.getContext("2d"),s=e.destinationWidth,r=e.destinationHeight,n=s*r*4;if(!i)return;const o=new Uint8Array(this.imageBuffer,0,n),a=new Uint8ClampedArray(this.imageBuffer,0,n);t.readPixels(0,0,s,r,t.RGBA,t.UNSIGNED_BYTE,o);const h=new ImageData(a,s,r);i.putImageData(h,0,0)}function io(){return!Qn&&(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(Qn=function(){const{WebGLProbe:t}=p();return t.queryWebGL(Q()),c.enableGLFiltering&&t.isSupported(c.textureSize)?new to({tileSize:c.textureSize}):new $n}()),Qn}const so=["filters","resizeFilter","src","crossOrigin"],ro=["cropX","cropY"];let no=class t extends zi{static getDefaults(){return s(s({},super.getDefaults()),t.ownDefaults)}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(s({filters:[]},e)),r(this,"_lastScaleX",1),r(this,"_lastScaleY",1),r(this,"_filterScalingX",1),r(this,"_filterScalingY",1),this.cacheKey="texture".concat(J()),this.setElement("string"==typeof t?(this.canvas&&Wt(this.canvas.getElement())||m()).getElementById(t):t,e)}getElement(){return this._element}setElement(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.removeTexture(this.cacheKey),this.removeTexture("".concat(this.cacheKey,"_filtered")),this._element=e,this._originalElement=e,this._setWidthHeight(i),e.classList.add(t.CSS_CANVAS),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters()}removeTexture(t){const e=io(!1);e instanceof to&&e.evictCachesForKey(t)}dispose(){super.dispose(),this.removeTexture(this.cacheKey),this.removeTexture("".concat(this.cacheKey,"_filtered")),this._cacheContext=null,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach((t=>{const e=this[t];e&&p().dispose(e),this[t]=void 0}))}getCrossOrigin(){return this._originalElement&&(this._originalElement.crossOrigin||null)}getOriginalSize(){const t=this.getElement();return t?{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height}:{width:0,height:0}}_stroke(t){if(!this.stroke||0===this.strokeWidth)return;const e=this.width/2,i=this.height/2;t.beginPath(),t.moveTo(-e,-i),t.lineTo(e,-i),t.lineTo(e,i),t.lineTo(-e,i),t.lineTo(-e,-i),t.closePath()}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=[];return this.filters.forEach((t=>{t&&e.push(t.toObject())})),s(s({},super.toObject([...ro,...t])),{},{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:e},this.resizeFilter?{resizeFilter:this.resizeFilter.toObject()}:{})}hasCrop(){return!!this.cropX||!!this.cropY||this.width\n','\t\n',"\n"),o=' clip-path="url(#imageCrop_'+t+')" '}if(this.imageSmoothing||(a=' image-rendering="optimizeSpeed"'),t.push("\t\n")),this.stroke||this.strokeDashArray){const t=this.fill;this.fill=null,n=['\t\n')],this.fill=t}return r="fill"!==this.paintFirst?r.concat(n,t):r.concat(t,n),r}getSrc(t){const e=t?this._element:this._originalElement;return e?e.toDataURL?e.toDataURL():this.srcFromAttribute?e.getAttribute("src")||"":e.src:this.src||""}getSvgSrc(t){return this.getSrc(t)}setSrc(t){let{crossOrigin:e,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return mt(t,{crossOrigin:e,signal:i}).then((t=>{void 0!==e&&this.set({crossOrigin:e}),this.setElement(t)}))}toString(){return'#')}applyResizeFilters(){const t=this.resizeFilter,e=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),s=i.x,r=i.y,n=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!t||s>e&&r>e)return this._element=n,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=s,void(this._lastScaleY=r);const o=Q(),a=n.width,h=n.height;o.width=a,o.height=h,this._element=o,this._lastScaleX=t.scaleX=s,this._lastScaleY=t.scaleY=r,io().applyFilters([t],n,a,h,this._element),this._filterScalingX=o.width/this._originalElement.width,this._filterScalingY=o.height/this._originalElement.height}applyFilters(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.filters||[];if(t=t.filter((t=>t&&!t.isNeutralState())),this.set("dirty",!0),this.removeTexture("".concat(this.cacheKey,"_filtered")),0===t.length)return this._element=this._originalElement,this._filteredEl=void 0,this._filterScalingX=1,void(this._filterScalingY=1);const e=this._originalElement,i=e.naturalWidth||e.width,s=e.naturalHeight||e.height;if(this._element===this._originalElement){const t=Q();t.width=i,t.height=s,this._element=t,this._filteredEl=t}else this._filteredEl&&(this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,s),this._lastScaleX=1,this._lastScaleY=1);io().applyFilters(t,this._originalElement,i,s,this._element),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height)}_render(t){t.imageSmoothingEnabled=this.imageSmoothing,!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(t),this._renderPaintInOrder(t)}drawCacheOnCanvas(t){t.imageSmoothingEnabled=this.imageSmoothing,super.drawCacheOnCanvas(t)}shouldCache(){return this.needsItsOwnCache()}_renderFill(t){const e=this._element;if(!e)return;const i=this._filterScalingX,s=this._filterScalingY,r=this.width,n=this.height,o=Math.max(this.cropX,0),a=Math.max(this.cropY,0),h=e.naturalWidth||e.width,c=e.naturalHeight||e.height,l=o*i,u=a*s,d=Math.min(r*i,h-l),g=Math.min(n*s,c-u),f=-r/2,p=-n/2,m=Math.min(r,h/i-o),_=Math.min(n,c/s-a);e&&t.drawImage(e,l,u,d,g,f,p,m,_)}_needsResize(){const t=this.getTotalObjectScaling();return t.x!==this._lastScaleX||t.y!==this._lastScaleY}_resetWidthHeight(){this.set(this.getOriginalSize())}_setWidthHeight(){let{width:t,height:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=this.getOriginalSize();this.width=t||i.width,this.height=e||i.height}parsePreserveAspectRatioAttribute(){const t=Pt(this.preserveAspectRatio||""),e=this.width,i=this.height,s={width:e,height:i};let r,n=this._element.width,o=this._element.height,a=1,h=1,c=0,l=0,u=0,d=0;return!t||t.alignX===A&&t.alignY===A?(a=e/n,h=i/o):("meet"===t.meetOrSlice&&(a=h=zs(this._element,s),r=(e-n*a)/2,"Min"===t.alignX&&(c=-r),"Max"===t.alignX&&(c=r),r=(i-o*h)/2,"Min"===t.alignY&&(l=-r),"Max"===t.alignY&&(l=r)),"slice"===t.meetOrSlice&&(a=h=Gs(this._element,s),r=n-e/a,"Mid"===t.alignX&&(u=r/2),"Max"===t.alignX&&(u=r),r=o-i/h,"Mid"===t.alignY&&(d=r/2),"Max"===t.alignY&&(d=r),n=e/a,o=i/h)),{width:n,height:o,scaleX:a,scaleY:h,offsetLeft:c,offsetTop:l,cropX:u,cropY:d}}static fromObject(t){let{filters:e,resizeFilter:i,src:r,crossOrigin:o}=t,a=n(t,so),h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Promise.all([mt(r,s(s({},h),{},{crossOrigin:o})),e&&_t(e,h),i&&_t([i],h),vt(a,h)]).then((t=>{let[e,i=[],[n]=[],o={}]=t;return new this(e,s(s({},a),{},{src:r,filters:i,resizeFilter:n},o))}))}static fromURL(t){let{crossOrigin:e=null,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;return mt(t,{crossOrigin:e,signal:i}).then((t=>new this(t,s)))}static fromElement(t){return e(this,arguments,(function*(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;const s=Ms(t,this.ATTRIBUTE_NAMES,i);return this.fromURL(s["xlink:href"],e,s).catch((t=>null))}))}};r(no,"type","Image"),r(no,"cacheProperties",[...ai,...ro]),r(no,"ownDefaults",{strokeWidth:0,srcFromAttribute:!1,minimumScaleTrigger:.5,cropX:0,cropY:0,imageSmoothing:!0}),r(no,"CSS_CANVAS","canvas-img"),r(no,"ATTRIBUTE_NAMES",[...Ui,"x","y","width","height","preserveAspectRatio","xlink:href","crossOrigin","image-rendering"]),R.setClass(no),R.setSVGClass(no),Ni(["pattern","defs","symbol","metadata","clipPath","mask","desc"]);const oo=t=>new H(t.width,t.height),ao=t=>function(e,i,s){var r,n;const o=s.points[t].x-s.pathOffset.x,a=s.points[t].y-s.pathOffset.y;return new H(o,a).transform(nt(null!==(r=null===(n=s.canvas)||void 0===n?void 0:n.viewportTransform)&&void 0!==r?r:w,s.calcTransformMatrix()))},ho=(t,e,i,s)=>{const r=e.target,n=e.pointIndex,o=ye(e,k,k,i,s),a=oo(r),h=r._getTransformedDimensions(),c=a.divide(h),l=new H(r.flipX?-1:1,r.flipY?-1:1),u=o.multiply(l).multiply(c).add(r.pathOffset);return r.points[n]=u,r.setDimensions(),!0},co=(t,e)=>function(i,r,n,o){const a=r.target,h=(t>0?t:a.points.length)-1,c=new H(a.points[h].x-a.pathOffset.x,a.points[h].y-a.pathOffset.y).transform(a.calcOwnMatrix()),l=e(i,s(s({},r),{},{pointIndex:t}),n,o),u=oo(a),d=new H(a.flipX?-1:1,a.flipY?-1:1),g=new H(a.points[h].x,a.points[h].y).subtract(a.pathOffset).divide(u).multiply(d);return a.setPositionByOrigin(c,g.x+.5,g.y+.5),l};var lo=Object.freeze({__proto__:null,changeWidth:gi,createObjectDefaultControls:Xi,createPolyControls:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i={};for(let r=0;r<("number"==typeof t?t:t.points.length);r++)i["p".concat(r)]=new mi(s({actionName:"modifyPoly",positionHandler:ao(r),actionHandler:co(r,ho)},e));return i},createResizeControls:Yi,createTextboxDefaultControls:Wi,dragHandler:xe,getLocalPoint:ye,renderCircleControl:fi,renderSquareControl:pi,rotationStyleHandler:_i,rotationWithSnapping:vi,scaleCursorStyleHandler:bi,scaleOrSkewActionName:Li,scaleSkewCursorStyleHandler:Ri,scalingEqually:wi,scalingX:Ti,scalingXOrSkewingY:Bi,scalingY:Oi,scalingYOrSkewingX:Ii,skewCursorStyleHandler:Pi,skewHandlerX:Ai,skewHandlerY:ji,wrapWithFireEvent:ui,wrapWithFixedAnchor:di});const uo=t=>void 0!==t.webgl,go="precision highp float",fo="\n ".concat(go,";\n varying vec2 vTexCoord;\n uniform sampler2D uTexture;\n void main() {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n }"),po=["type"],mo=["type"];class _o{get type(){return this.constructor.type}constructor(){let t=n(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},po);r(this,"vertexSource","\n attribute vec2 aPosition;\n varying vec2 vTexCoord;\n void main() {\n vTexCoord = aPosition;\n gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n }"),Object.assign(this,this.constructor.defaults,t)}getFragmentSource(){return fo}createProgram(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getFragmentSource(),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.vertexSource;const{WebGLProbe:{GLPrecision:s="highp"}}=p();"highp"!==s&&(e=e.replace(new RegExp(go,"g"),go.replace("highp",s)));const r=t.createShader(t.VERTEX_SHADER),n=t.createShader(t.FRAGMENT_SHADER),o=t.createProgram();if(!r||!n||!o)throw new Error("Vertex, fragment shader or program creation error");if(t.shaderSource(r,i),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS))throw new Error("Vertex shader compile error for ".concat(this.type,": ").concat(t.getShaderInfoLog(r)));if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new Error("Fragment shader compile error for ".concat(this.type,": ").concat(t.getShaderInfoLog(n)));if(t.attachShader(o,r),t.attachShader(o,n),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+t.getProgramInfoLog(o));const a=this.getUniformLocations(t,o)||{};return a.uStepW=t.getUniformLocation(o,"uStepW"),a.uStepH=t.getUniformLocation(o,"uStepH"),{program:o,attributeLocations:this.getAttributeLocations(t,o),uniformLocations:a}}getAttributeLocations(t,e){return{aPosition:t.getAttribLocation(e,"aPosition")}}getUniformLocations(t,e){return{}}sendAttributeData(t,e,i){const s=e.aPosition,r=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,r),t.enableVertexAttribArray(s),t.vertexAttribPointer(s,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,i,t.STATIC_DRAW)}_setupFrameBuffer(t){const e=t.context;if(t.passes>1){const i=t.destinationWidth,s=t.destinationHeight;t.sourceWidth===i&&t.sourceHeight===s||(e.deleteTexture(t.targetTexture),t.targetTexture=t.filterBackend.createTexture(e,i,s)),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t.targetTexture,0)}else e.bindFramebuffer(e.FRAMEBUFFER,null),e.finish()}_swapTextures(t){t.passes--,t.pass++;const e=t.targetTexture;t.targetTexture=t.sourceTexture,t.sourceTexture=e}isNeutralState(t){const e=this.mainParameter,i=this.constructor.defaults[e];if(e){const t=this[e];return Array.isArray(i)&&Array.isArray(t)?i.every(((e,i)=>e===t[i])):i===t}return!1}applyTo(t){uo(t)?(this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)}applyTo2d(t){}getCacheKey(){return this.type}retrieveShader(t){const e=this.getCacheKey();return t.programCache[e]||(t.programCache[e]=this.createProgram(t.context)),t.programCache[e]}applyToWebGL(t){const e=t.context,i=this.retrieveShader(t);0===t.pass&&t.originalTexture?e.bindTexture(e.TEXTURE_2D,t.originalTexture):e.bindTexture(e.TEXTURE_2D,t.sourceTexture),e.useProgram(i.program),this.sendAttributeData(e,i.attributeLocations,t.aPosition),e.uniform1f(i.uniformLocations.uStepW,1/t.sourceWidth),e.uniform1f(i.uniformLocations.uStepH,1/t.sourceHeight),this.sendUniformData(e,i.uniformLocations),e.viewport(0,0,t.destinationWidth,t.destinationHeight),e.drawArrays(e.TRIANGLE_STRIP,0,4)}bindAdditionalTexture(t,e,i){t.activeTexture(i),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE0)}unbindAdditionalTexture(t,e){t.activeTexture(e),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE0)}getMainParameter(){return this.mainParameter?this[this.mainParameter]:void 0}setMainParameter(t){this.mainParameter&&(this[this.mainParameter]=t)}sendUniformData(t,e){}createHelpLayer(t){if(!t.helpLayer){const e=Q();e.width=t.sourceWidth,e.height=t.sourceHeight,t.helpLayer=e}}toObject(){const t=this.mainParameter;return s({type:this.type},t?{[t]:this[t]}:{})}toJSON(){return this.toObject()}static fromObject(t,i){return e(this,null,(function*(){return new this(n(t,mo))}))}}r(_o,"type","BaseFilter");const vo={multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",difference:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"\n if (uColor.r < 0.5) {\n gl_FragColor.r *= 2.0 * uColor.r;\n } else {\n gl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n }\n if (uColor.g < 0.5) {\n gl_FragColor.g *= 2.0 * uColor.g;\n } else {\n gl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n }\n if (uColor.b < 0.5) {\n gl_FragColor.b *= 2.0 * uColor.b;\n } else {\n gl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n }\n ",tint:"\n gl_FragColor.rgb *= (1.0 - uColor.a);\n gl_FragColor.rgb += uColor.rgb;\n "};class yo extends _o{getCacheKey(){return"".concat(this.type,"_").concat(this.mode)}getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec4 uColor;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n gl_FragColor = color;\n if (color.a > 0.0) {\n ".concat(vo[this.mode],"\n }\n }\n ")}applyTo2d(t){let{imageData:{data:e}}=t;const i=new kt(this.color).getSource(),s=i[0]*this.alpha,r=i[1]*this.alpha,n=i[2]*this.alpha,o=1-this.alpha;for(let a=0;anew this(s(s({},o),{},{image:t}))))}}r(bo,"type","BlendImage"),r(bo,"defaults",{mode:"multiply",alpha:1,vertexSource:"\n attribute vec2 aPosition;\n varying vec2 vTexCoord;\n varying vec2 vTexCoord2;\n uniform mat3 uTransformMatrix;\n void main() {\n vTexCoord = aPosition;\n vTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\n gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n }\n "}),R.setClass(bo);class So extends _o{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec2 uDelta;\n varying vec2 vTexCoord;\n const float nSamples = 15.0;\n vec3 v3offset = vec3(12.9898, 78.233, 151.7182);\n float random(vec3 scale) {\n /* use the fragment position for a different seed per-pixel */\n return fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n }\n void main() {\n vec4 color = vec4(0.0);\n float total = 0.0;\n float offset = random(v3offset);\n for (float t = -nSamples; t <= nSamples; t++) {\n float percent = (t + offset - 0.5) / nSamples;\n float weight = 1.0 - abs(percent);\n color += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\n total += weight;\n }\n gl_FragColor = color / total;\n }\n "}applyTo(t){uo(t)?(this.aspectRatio=t.sourceWidth/t.sourceHeight,t.passes++,this._setupFrameBuffer(t),this.horizontal=!0,this.applyToWebGL(t),this._swapTextures(t),this._setupFrameBuffer(t),this.horizontal=!1,this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)}applyTo2d(t){t.imageData=this.simpleBlur(t)}simpleBlur(t){let{ctx:e,imageData:i,filterBackend:{resources:s}}=t;const{width:r,height:n}=i;s.blurLayer1||(s.blurLayer1=Q(),s.blurLayer2=Q());const o=s.blurLayer1,a=s.blurLayer2;o.width===r&&o.height===n||(a.width=o.width=r,a.height=o.height=n);const h=o.getContext("2d"),c=a.getContext("2d"),l=15,u=.06*this.blur*.5;let d,g,f,p;for(h.putImageData(i,0,0),c.clearRect(0,0,r,n),p=-15;p<=l;p++)d=(Math.random()-.5)/4,g=p/l,f=u*g*r+d,c.globalAlpha=1-Math.abs(g),c.drawImage(o,f,d),h.drawImage(a,0,0),c.globalAlpha=1,c.clearRect(0,0,a.width,a.height);for(p=-15;p<=l;p++)d=(Math.random()-.5)/4,g=p/l,f=u*g*n+d,c.globalAlpha=1-Math.abs(g),c.drawImage(o,d,f),h.drawImage(a,0,0),c.globalAlpha=1,c.clearRect(0,0,a.width,a.height);e.drawImage(o,0,0);const m=e.getImageData(0,0,o.width,o.height);return h.globalAlpha=1,h.clearRect(0,0,o.width,o.height),m}getUniformLocations(t,e){return{delta:t.getUniformLocation(e,"uDelta")}}sendUniformData(t,e){const i=this.chooseRightDelta();t.uniform2fv(e.delta,i)}chooseRightDelta(){let t=1;const e=[0,0];this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio);const i=t*this.blur*.12;return this.horizontal?e[0]=i:e[1]=i,e}}r(So,"type","Blur"),r(So,"defaults",{blur:0,mainParameter:"blur"}),R.setClass(So);class wo extends _o{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uBrightness;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n color.rgb += uBrightness;\n gl_FragColor = color;\n }\n"}applyTo2d(t){let{imageData:{data:e}}=t;if(0===this.brightness)return;const i=Math.round(255*this.brightness);for(let s=0;s0&&void 0!==arguments[0]?arguments[0]:{},{subFilters:e=[]}=t;super(n(t,Ro)),this.subFilters=e}applyTo(t){uo(t)&&(t.passes+=this.subFilters.length-1),this.subFilters.forEach((e=>{e.applyTo(t)}))}toObject(){return s(s({},super.toObject()),{},{subFilters:this.subFilters.map((t=>t.toObject()))})}isNeutralState(){return!this.subFilters.some((t=>!t.isNeutralState()))}static fromObject(t,e){return Promise.all((t.subFilters||[]).map((t=>R.getClass(t.type).fromObject(t,e)))).then((t=>new this({subFilters:t})))}}r(Bo,"type","Composed"),R.setClass(Bo);class Io extends _o{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uContrast;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n float contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\n color.rgb = contrastF * (color.rgb - 0.5) + 0.5;\n gl_FragColor = color;\n }"}applyTo2d(t){let{imageData:{data:e}}=t;if(0===this.contrast)return;const i=Math.floor(255*this.contrast),s=259*(i+255)/(255*(259-i));for(let r=0;r=a||m<0||m>=o||(v=4*(_*o+m),y=s[S*r+b],u+=i[v]*y,d+=i[v+1]*y,g+=i[v+2]*y,l||(f+=i[v+3]*y));c[p]=u,c[p+1]=d,c[p+2]=g,c[p+3]=l?i[p+3]:f}t.imageData=h}getUniformLocations(t,e){return{uMatrix:t.getUniformLocation(e,"uMatrix"),uOpaque:t.getUniformLocation(e,"uOpaque"),uHalfSize:t.getUniformLocation(e,"uHalfSize"),uSize:t.getUniformLocation(e,"uSize")}}sendUniformData(t,e){t.uniform1fv(e.uMatrix,this.matrix)}toObject(){return s(s({},super.toObject()),{},{opaque:this.opaque,matrix:[...this.matrix]})}}r(Yo,"type","Convolute"),r(Yo,"defaults",{opaque:!1,matrix:[0,0,0,0,1,0,0,0,0]}),R.setClass(Yo);const Wo=["gamma"];class Vo extends _o{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec3 uGamma;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n vec3 correction = (1.0 / uGamma);\n color.r = pow(color.r, correction.r);\n color.g = pow(color.g, correction.g);\n color.b = pow(color.b, correction.b);\n gl_FragColor = color;\n gl_FragColor.rgb *= color.a;\n }\n"}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{gamma:e=[1,1,1]}=t;super(n(t,Wo)),this.gamma=e}applyTo2d(t){let{imageData:{data:e}}=t;const i=this.gamma,s=1/i[0],r=1/i[1],n=1/i[2];this.rgbValues||(this.rgbValues={r:new Uint8Array(256),g:new Uint8Array(256),b:new Uint8Array(256)});const o=this.rgbValues;for(let a=0;a<256;a++)o.r[a]=255*Math.pow(a/255,s),o.g[a]=255*Math.pow(a/255,r),o.b[a]=255*Math.pow(a/255,n);for(let a=0;ar[0]&&i>r[1]&&s>r[2]&&t"\n color += texture2D(uTexture, vTexCoord + ".concat(t,") * uTaps[").concat(e,"] + texture2D(uTexture, vTexCoord - ").concat(t,") * uTaps[").concat(e,"];\n sum += 2.0 * uTaps[").concat(e,"];\n "))).join("\n"),"\n gl_FragColor = color / sum;\n }\n ")}applyToForWebgl(t){t.passes++,this.width=t.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=t.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),t.destinationWidth=this.dW,super.applyTo(t),t.sourceWidth=t.destinationWidth,this.height=t.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),t.destinationHeight=this.dH,super.applyTo(t),t.sourceHeight=t.destinationHeight}applyTo(t){uo(t)?this.applyToForWebgl(t):this.applyTo2d(t)}isNeutralState(){return 1===this.scaleX&&1===this.scaleY}lanczosCreate(t){return e=>{if(e>=t||e<=-t)return 0;if(e<1.1920929e-7&&e>-1.1920929e-7)return 1;const i=(e*=Math.PI)/t;return Math.sin(e)/e*Math.sin(i)/i}}applyTo2d(t){const e=t.imageData,i=this.scaleX,s=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/s;const r=e.width,n=e.height,o=Math.round(r*i),a=Math.round(n*s);let h;h="sliceHack"===this.resizeType?this.sliceByTwo(t,r,n,o,a):"hermite"===this.resizeType?this.hermiteFastResize(t,r,n,o,a):"bilinear"===this.resizeType?this.bilinearFiltering(t,r,n,o,a):"lanczos"===this.resizeType?this.lanczosResize(t,r,n,o,a):new ImageData(o,a),t.imageData=h}sliceByTwo(t,e,i,s,r){const n=t.imageData,o=.5;let a=!1,h=!1,c=e*o,l=i*o;const u=t.filterBackend.resources;let d=0,g=0;const f=e;let p=0;u.sliceByTwo||(u.sliceByTwo=Q());const m=u.sliceByTwo;(m.width<1.5*e||m.height=e)){D=Math.floor(1e3*Math.abs(x-m.x)),p[D]||(p[D]={});for(let t=_.y-f;t<=_.y+f;t++)t<0||t>=i||(M=Math.floor(1e3*Math.abs(t-m.y)),p[D][M]||(p[D][M]=h(Math.sqrt(Math.pow(D*u,2)+Math.pow(M*d,2))/1e3)),C=p[D][M],C>0&&(b=4*(t*e+x),S+=C,w+=C*n[b],T+=C*n[b+1],O+=C*n[b+2],k+=C*n[b+3]))}b=4*(y*s+v),a[b]=w/S,a[b+1]=T/S,a[b+2]=O/S,a[b+3]=k/S}return++v1&&i<-1||(r=2*i*i*i-3*i*i+1,r>0&&(t=4*(h+s*e),_+=r*c[t+3],g+=r,c[t+3]<255&&(r=r*c[t+3]/250),f+=r*c[t],p+=r*c[t+1],m+=r*c[t+2],l+=r))}}u[i]=f/l,u[i+1]=p/l,u[i+2]=m/l,u[i+3]=_/g}return l}toObject(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}r(Jo,"type","Resize"),r(Jo,"defaults",{resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,fragmentSourceTOP:"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec2 uDelta;\n varying vec2 vTexCoord;\n "}),R.setClass(Jo);class Qo extends _o{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uSaturation;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n float rgMax = max(color.r, color.g);\n float rgbMax = max(rgMax, color.b);\n color.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\n color.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\n color.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\n gl_FragColor = color;\n }\n"}applyTo2d(t){let{imageData:{data:e}}=t;if(0===this.saturation)return;const i=-this.saturation;for(let s=0;sa({url:"/api/design/template/info/pages",method:"get",params:e}),t=e=>a({url:"/api/design/template/detail/pages",method:"get",params:e}),s=e=>a({url:`/api/design/template/data/${e}`,method:"get"});export{t as a,s as b,e as g}; diff --git a/assets/index-3a84706f.js b/assets/index-3a84706f.js new file mode 100644 index 00000000..81799a49 --- /dev/null +++ b/assets/index-3a84706f.js @@ -0,0 +1,57 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=Math.pow,a=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,l=(e,t)=>{for(var n in t||(t={}))i.call(t,n)&&a(e,n,t[n]);if(r)for(var n of r(t))o.call(t,n)&&a(e,n,t[n]);return e},c=(e,r)=>t(e,n(r)),h=(e,t)=>{var n={};for(var s in e)i.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&r)for(var s of r(e))t.indexOf(s)<0&&o.call(e,s)&&(n[s]=e[s]);return n},u=(e,t,n)=>(a(e,"symbol"!=typeof t?t+"":t,n),n),d=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{a(n.next(e))}catch(t){i(t)}},s=e=>{try{a(n.throw(e))}catch(t){i(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,s);a((n=n.apply(e,t)).next())}));import{ah as f,r as p,ag as g,d as k,Z as m,B as v,at as y,a5 as L,A as w,J as b,g as _,o as x,n as C,au as S,a8 as j,e as E,u as M,c as T,b as A,w as O,s as P,j as I,ab as R,K as B,D as W,P as H,T as z,a0 as N,k as D,Q as F,R as V,ad as U,ar as $,E as Y,l as X,H as Z,m as G,G as q,F as K,av as J,aw as Q,a4 as ee,O as te,M as ne,W as re,a7 as ie,X as oe,V as se,U as ae,as as le,ap as ce}from"./vue-aadc59b7.js";import{P as he,A as ue,G as de,a as fe,b as pe,i as ge,T as ke,I as me,R as ve,c as ye,L as Le,F as we,C as be,d as _e,e as xe,f as Ce,g as Se,h as je,j as Ee,k as Me,l as Te,m as Ae,n as Oe}from"./fabric-aa9a28c9.js";import{j as Pe,k as Ie,d as Re,t as Be,l as We,b as He,m as ze}from"./lodash-es-fcf8a448.js";import{E as Ne,a as De,b as Fe,c as Ve,d as Ue,e as $e,u as Ye,g as Xe,f as Ze,h as Ge,v as qe,i as Ke,j as Je,k as Qe,l as et,m as tt,n as nt,o as rt,p as it,q as ot,r as st}from"./element-plus-2d3d0866.js";import{g as at,c as lt,a as ct,C as ht}from"./clipper-lib-eae4901e.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var ut=!1; +/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let dt;const ft=e=>dt=e,pt=Symbol();function gt(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var kt,mt;(mt=kt||(kt={})).direct="direct",mt.patchObject="patch object",mt.patchFunction="patch function";const vt=()=>{};function yt(e,t,n,r=vt){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&_()&&x(i),i}function Lt(e,...t){e.slice().forEach((e=>{e(...t)}))}const wt=e=>e();function bt(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];gt(i)&>(r)&&e.hasOwnProperty(n)&&!v(r)&&!y(r)?e[n]=bt(i,r):e[n]=r}return e}const _t=Symbol();const{assign:xt}=Object;function Ct(e,t,n={},r,i,o){let s;const a=xt({actions:{}},n),l={deep:!0};let c,h,u,d=[],g=[];const w=r.state.value[e];let b;function _(t){let n;c=h=!1,"function"==typeof t?(t(r.state.value[e]),n={type:kt.patchFunction,storeId:e,events:u}):(bt(r.state.value[e],t),n={type:kt.patchObject,payload:t,storeId:e,events:u});const i=b=Symbol();C().then((()=>{b===i&&(c=!0)})),h=!0,Lt(d,n,r.state.value[e])}o||w||(r.state.value[e]={}),p({});const x=o?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{xt(e,t)}))}:vt;function S(t,n){return function(){ft(r);const i=Array.from(arguments),o=[],s=[];let a;Lt(g,{args:i,name:t,store:E,after:function(e){o.push(e)},onError:function(e){s.push(e)}});try{a=n.apply(this&&this.$id===e?this:E,i)}catch(l){throw Lt(s,l),l}return a instanceof Promise?a.then((e=>(Lt(o,e),e))).catch((e=>(Lt(s,e),Promise.reject(e)))):(Lt(o,a),a)}}const j={_p:r,$id:e,$onAction:yt.bind(null,g),$patch:_,$reset:x,$subscribe(t,n={}){const i=yt(d,t,n.detached,(()=>o())),o=s.run((()=>k((()=>r.state.value[e]),(r=>{("sync"===n.flush?h:c)&&t({storeId:e,type:kt.direct,events:u},r)}),xt({},l,n))));return i},$dispose:function(){s.stop(),d=[],g=[],r._s.delete(e)}},E=m(j);r._s.set(e,E);const M=(r._a&&r._a.runWithContext||wt)((()=>r._e.run((()=>(s=f()).run(t)))));for(const f in M){const t=M[f];if(v(t)&&(!v(A=t)||!A.effect)||y(t))o||(!w||gt(T=t)&&T.hasOwnProperty(_t)||(v(t)?t.value=w[f]:bt(t,w[f])),r.state.value[e][f]=t);else if("function"==typeof t){const e=S(f,t);M[f]=e,a.actions[f]=t}}var T,A;return xt(E,M),xt(L(E),M),Object.defineProperty(E,"$state",{get:()=>r.state.value[e],set:e=>{_((t=>{xt(t,e)}))}}),r._p.forEach((e=>{xt(E,s.run((()=>e({store:E,app:r._a,pinia:r,options:a}))))})),w&&o&&n.hydrate&&n.hydrate(E.$state,w),c=!0,h=!0,E}function St(e,t,n){let r,i;const o="function"==typeof t;function s(e,n){const s=S();(e=e||(s?w(pt,null):null))&&ft(e),(e=dt)._s.has(r)||(o?Ct(r,t,i,e):function(e,t,n,r){const{state:i,actions:o,getters:s}=t,a=n.state.value[e];let l;l=Ct(e,(function(){a||(n.state.value[e]=i?i():{});const t=j(n.state.value[e]);return xt(t,o,Object.keys(s||{}).reduce(((t,r)=>(t[r]=g(E((()=>{ft(n);const t=n._s.get(e);return s[r].call(t,t)}))),t)),{}))}),t,n,0,!0)}(r,i,e));return e._s.get(r)}return"string"==typeof e?(r=e,i=o?n:t):(i=e,r=e.id),s.$id=r,s}function jt(e){{e=L(e);const t={};for(const n in e){const r=e[n];(v(r)||y(r))&&(t[n]=b(e,n))}return t}}const Et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Mt=Object.keys,Tt=Array.isArray;function At(e,t){return"object"!=typeof t||Mt(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||Et.Promise||(Et.Promise=Promise);const Ot=Object.getPrototypeOf,Pt={}.hasOwnProperty;function It(e,t){return Pt.call(e,t)}function Rt(e,t){"function"==typeof t&&(t=t(Ot(e))),("undefined"==typeof Reflect?Mt:Reflect.ownKeys)(t).forEach((n=>{Wt(e,n,t[n])}))}const Bt=Object.defineProperty;function Wt(e,t,n,r){Bt(e,t,At(n&&It(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function Ht(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Wt(e.prototype,"constructor",e),{extend:Rt.bind(null,e.prototype)}}}}const zt=Object.getOwnPropertyDescriptor;function Nt(e,t){let n;return zt(e,t)||(n=Ot(e))&&Nt(n,t)}const Dt=[].slice;function Ft(e,t,n){return Dt.call(e,t,n)}function Vt(e,t){return t(e)}function Ut(e){if(!e)throw new Error("Assertion Failed")}function $t(e){Et.setImmediate?setImmediate(e):setTimeout(e,0)}function Yt(e,t){return e.reduce(((e,n,r)=>{var i=t(n,r);return i&&(e[i[0]]=i[1]),e}),{})}function Xt(e,t){if(It(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>Et[e])),Qt=Jt.map((e=>Et[e]));Yt(Jt,(e=>[e,!0]));let en=null;function tn(e){en="undefined"!=typeof WeakMap&&new WeakMap;const t=nn(e);return en=null,t}function nn(e){if(!e||"object"!=typeof e)return e;let t=en&&en.get(e);if(t)return t;if(Tt(e)){t=[],en&&en.set(e,t);for(var n=0,r=e.length;n=0)t=e;else{const n=Ot(e);for(var i in t=n===Object.prototype?{}:Object.create(n),en&&en.set(e,t),e)It(e,i)&&(t[i]=nn(e[i]))}return t}const{toString:rn}={};function on(e){return rn.call(e).slice(8,-1)}const sn="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",an="symbol"==typeof sn?function(e){var t;return null!=e&&(t=e[sn])&&t.apply(e)}:function(){return null},ln={};function cn(e){var t,n,r,i;if(1===arguments.length){if(Tt(e))return e.slice();if(this===ln&&"string"==typeof e)return[e];if(i=an(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const hn="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var un="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function dn(e,t){un=e,fn=t}var fn=()=>!0;const pn=!new Error("").stack;function gn(){if(pn)try{throw gn.arguments,new Error}catch(e){return e}return new Error}function kn(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(fn).map((e=>"\n"+e)).join("")):""}var mn=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],vn=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(mn),yn={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Ln(e,t){this._e=gn(),this.name=e,this.message=t}function wn(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function bn(e,t,n,r){this._e=gn(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=wn(e,t)}function _n(e,t){this._e=gn(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=wn(e,t)}Ht(Ln).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+kn(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Ht(bn).from(Ln),Ht(_n).from(Ln);var xn=vn.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const Cn=Ln;var Sn=vn.reduce(((e,t)=>{var n=t+"Error";function r(e,r){this._e=gn(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=yn[t]||n,this.inner=null)}return Ht(r).from(Cn),e[t]=r,e}),{});Sn.Syntax=SyntaxError,Sn.Type=TypeError,Sn.Range=RangeError;var jn=mn.reduce(((e,t)=>(e[t+"Error"]=Sn[t],e)),{}),En=vn.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=Sn[t]),e)),{});function Mn(){}function Tn(e){return e}function An(e,t){return null==e||e===Tn?t:function(n){return t(e(n))}}function On(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Pn(e,t){return e===Mn?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?On(r,this.onsuccess):r),i&&(this.onerror=this.onerror?On(i,this.onerror):i),void 0!==o?o:n}}function In(e,t){return e===Mn?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?On(n,this.onsuccess):n),r&&(this.onerror=this.onerror?On(r,this.onerror):r)}}function Rn(e,t){return e===Mn?t:function(n){var r=e.apply(this,arguments);At(n,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?On(i,this.onsuccess):i),o&&(this.onerror=this.onerror?On(o,this.onerror):o),void 0===r?void 0===s?void 0:s:At(r,s)}}function Bn(e,t){return e===Mn?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function Wn(e,t){return e===Mn?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,o=new Array(i);i--;)o[i]=arguments[i];return n.then((function(){return t.apply(r,o)}))}return t.apply(this,arguments)}}En.ModifyError=bn,En.DexieError=Ln,En.BulkError=_n;var Hn={};const zn=100,[Nn,Dn,Fn]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,Ot(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Ot(t),e]})(),Vn=Dn&&Dn.then,Un=Nn&&Nn.constructor,$n=!!Fn;var Yn=!1,Xn=Fn?()=>{Fn.then(kr)}:Et.setImmediate?setImmediate.bind(null,kr):Et.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{kr(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(kr,0)},Zn=function(e,t){rr.push([e,t]),qn&&(Xn(),qn=!1)},Gn=!0,qn=!0,Kn=[],Jn=[],Qn=null,er=Tn,tr={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Dr,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{Dr(e[0],e[1])}catch(t){}}))}},nr=tr,rr=[],ir=0,or=[];function sr(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Mn,this._lib=!1;var t=this._PSD=nr;if(un&&(this._stackHolder=gn(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==Hn)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&hr(this,this._value))}this._state=null,this._value=null,++t.ref,cr(this,e)}const ar={get:function(){var e=nr,t=Sr;function n(n,r){var i=!e.global&&(e!==nr||t!==Sr);const o=i&&!Tr();var s=new sr(((t,s)=>{dr(this,new lr(Hr(n,e,i,o),Hr(r,e,i,o),t,s,e))}));return un&&gr(s,this),s}return n.prototype=Hn,n},set:function(e){Wt(this,"then",e&&e.prototype===Hn?ar:{get:function(){return e},set:ar.set})}};function lr(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function cr(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&mr();t&&"function"==typeof t.then?cr(e,((e,n)=>{t instanceof sr?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,ur(e)),n&&vr()}}),hr.bind(null,e))}catch(n){hr(e,n)}}function hr(e,t){if(Jn.push(t),null===e._state){var n=e._lib&&mr();t=er(t),e._state=!1,e._value=t,un&&null!==t&&"object"==typeof t&&!t._promise&&function(n,r,i){try{(()=>{var n=Nt(t,"stack");t._promise=e,Wt(t,"stack",{get:()=>Yn?n&&(n.get?n.get.apply(t):n.value):e.stack})}).apply(null,void 0)}catch(o){}}(),r=e,Kn.some((e=>e._value===r._value))||Kn.push(r),ur(e),n&&vr()}var r}function ur(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n{0==--ir&&yr()}),[]))}function dr(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++ir,Zn(fr,[n,e,t])}else e._listeners.push(t)}function fr(e,t,n){try{Qn=t;var r,i=t._value;t._state?r=e(i):(Jn.length&&(Jn=[]),r=e(i),-1===Jn.indexOf(i)&&function(e){for(var t=Kn.length;t;)if(Kn[--t]._value===e._value)return void Kn.splice(t,1)}(t)),n.resolve(r)}catch(o){n.reject(o)}finally{Qn=null,0==--ir&&yr(),--n.psd.ref||n.psd.finalize()}}function pr(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var i,o,s=e._value;null!=s?(i=s.name||"Error",o=s.message||s,r=kn(s,0)):(i=s,o=""),t.push(i+(o?": "+o:"")+r)}return un&&((r=kn(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&pr(e._prev,t,n)),t}function gr(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function kr(){mr()&&vr()}function mr(){var e=Gn;return Gn=!1,qn=!1,e}function vr(){var e,t,n;do{for(;rr.length>0;)for(e=rr,rr=[],n=e.length,t=0;t0);Gn=!0,qn=!0}function yr(){var e=Kn;Kn=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=or.slice(0),n=t.length;n;)t[--n]()}function Lr(e){return new sr(Hn,!1,e)}function wr(e,t){var n=nr;return function(){var r=mr(),i=nr;try{return Ir(n,!0),e.apply(this,arguments)}catch(o){t&&t(o)}finally{Ir(i,!1),r&&vr()}}}Rt(sr.prototype,{then:ar,_then:function(e,t){dr(this,new lr(null,null,e,t,nr))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):Lr(e))):this.then(null,(e=>e&&e.name===t?n(e):Lr(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),Lr(t))))},stack:{get:function(){if(this._stack)return this._stack;try{Yn=!0;var e=pr(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Yn=!1}}},timeout:function(e,t){return e<1/0?new sr(((n,r)=>{var i=setTimeout((()=>r(new Sn.Timeout(t))),e);this.then(n,r).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&Wt(sr.prototype,Symbol.toStringTag,"Dexie.Promise"),tr.env=Rr(),Rt(sr,{all:function(){var e=cn.apply(null,arguments).map(Ar);return new sr((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(((i,o)=>sr.resolve(i).then((n=>{e[o]=n,--r||t(e)}),n)))}))},resolve:e=>{if(e instanceof sr)return e;if(e&&"function"==typeof e.then)return new sr(((t,n)=>{e.then(t,n)}));var t=new sr(Hn,!0,e);return gr(t,Qn),t},reject:Lr,race:function(){var e=cn.apply(null,arguments).map(Ar);return new sr(((t,n)=>{e.map((e=>sr.resolve(e).then(t,n)))}))},PSD:{get:()=>nr,set:e=>nr=e},totalEchoes:{get:()=>Sr},newPSD:Er,usePSD:Br,scheduler:{get:()=>Zn,set:e=>{Zn=e}},rejectionMapper:{get:()=>er,set:e=>{er=e}},follow:(e,t)=>new sr(((n,r)=>Er(((t,n)=>{var r=nr;r.unhandleds=[],r.onunhandled=n,r.finalize=On((function(){var e;e=()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])},or.push((function t(){e(),or.splice(or.indexOf(t),1)})),++ir,Zn((()=>{0==--ir&&yr()}),[])}),r.finalize),e()}),t,n,r)))}),Un&&(Un.allSettled&&Wt(sr,"allSettled",(function(){const e=cn.apply(null,arguments).map(Ar);return new sr((t=>{0===e.length&&t([]);let n=e.length;const r=new Array(n);e.forEach(((e,i)=>sr.resolve(e).then((e=>r[i]={status:"fulfilled",value:e}),(e=>r[i]={status:"rejected",reason:e})).then((()=>--n||t(r)))))}))})),Un.any&&"undefined"!=typeof AggregateError&&Wt(sr,"any",(function(){const e=cn.apply(null,arguments).map(Ar);return new sr(((t,n)=>{0===e.length&&n(new AggregateError([]));let r=e.length;const i=new Array(r);e.forEach(((e,o)=>sr.resolve(e).then((e=>t(e)),(e=>{i[o]=e,--r||n(new AggregateError(i))}))))}))})));const br={awaits:0,echoes:0,id:0};var _r=0,xr=[],Cr=0,Sr=0,jr=0;function Er(e,t,n,r){var i=nr,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++jr;var s=tr.env;o.env=$n?{Promise:sr,PromiseProp:{value:sr,configurable:!0,writable:!0},all:sr.all,race:sr.race,allSettled:sr.allSettled,any:sr.any,resolve:sr.resolve,reject:sr.reject,nthen:zr(s.nthen,o),gthen:zr(s.gthen,o)}:{},t&&At(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=Br(o,e,n,r);return 0===o.ref&&o.finalize(),a}function Mr(){return br.id||(br.id=++_r),++br.awaits,br.echoes+=zn,br.id}function Tr(){return!!br.awaits&&(0==--br.awaits&&(br.id=0),br.echoes=br.awaits*zn,!0)}function Ar(e){return br.echoes&&e&&e.constructor===Un?(Mr(),e.then((e=>(Tr(),e)),(e=>(Tr(),Fr(e))))):e}function Or(e){++Sr,br.echoes&&0!=--br.echoes||(br.echoes=br.id=0),xr.push(nr),Ir(e,!0)}function Pr(){var e=xr[xr.length-1];xr.pop(),Ir(e,!1)}function Ir(e,t){var n=nr;if((t?!br.echoes||Cr++&&e===nr:!Cr||--Cr&&e===nr)||Wr(t?Or.bind(null,e):Pr),e!==nr&&(nr=e,n===tr&&(tr.env=Rr()),$n)){var r=tr.env.Promise,i=e.env;Dn.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(Et,"Promise",i.PromiseProp),r.all=i.all,r.race=i.race,r.resolve=i.resolve,r.reject=i.reject,i.allSettled&&(r.allSettled=i.allSettled),i.any&&(r.any=i.any))}}function Rr(){var e=Et.Promise;return $n?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(Et,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Dn.then,gthen:e.prototype.then}:{}}function Br(e,t,n,r,i){var o=nr;try{return Ir(e,!0),t(n,r,i)}finally{Ir(o,!1)}}function Wr(e){Vn.call(Nn,e)}function Hr(e,t,n,r){return"function"!=typeof e?e:function(){var i=nr;n&&Mr(),Ir(t,!0);try{return e.apply(this,arguments)}finally{Ir(i,!1),r&&Wr(Tr)}}}function zr(e,t){return function(n,r){return e.call(this,Hr(n,t),Hr(r,t))}}-1===(""+Vn).indexOf("[native code]")&&(Mr=Tr=Mn);const Nr="unhandledrejection";function Dr(e,t){var n;try{n=t.onuncatched(e)}catch(o){}if(!1!==n)try{var r,i={promise:t,reason:e};if(Et.document&&document.createEvent?((r=document.createEvent("Event")).initEvent(Nr,!0,!0),At(r,i)):Et.CustomEvent&&At(r=new CustomEvent(Nr,{detail:i}),i),r&&Et.dispatchEvent&&(dispatchEvent(r),!Et.PromiseRejectionEvent&&Et.onunhandledrejection))try{Et.onunhandledrejection(r)}catch(o){}un&&r&&r.defaultPrevented}catch(o){}}var Fr=sr.reject;function Vr(e,t,n,r){if(e.idbdb&&(e._state.openComplete||nr.letThrough||e._vip)){var i=e._createTransaction(t,n,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(o){return o.name===xn.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(e._close(),e.open().then((()=>Vr(e,t,n,r)))):Fr(o)}return i._promise(t,((e,t)=>Er((()=>(nr.trans=i,r(e,t,i)))))).then((e=>i._completion.then((()=>e))))}if(e._state.openComplete)return Fr(new Sn.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return Fr(new Sn.DatabaseClosed);e.open().catch(Mn)}return e._state.dbReadyPromise.then((()=>Vr(e,t,n,r)))}const Ur="3.2.4",$r=String.fromCharCode(65535),Yr=-1/0,Xr="Invalid key provided. Keys must be of type string, number, Date or Array.",Zr="String expected.",Gr=[],qr="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Kr=qr,Jr=qr,Qr=e=>!/(dexie\.js|dexie\.min\.js)/.test(e),ei="__dbnames",ti="readonly",ni="readwrite";function ri(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const ii={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function oi(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=tn(t))[e],t)}class si{_trans(e,t,n){const r=this._tx||nr.trans,i=this.name;function o(e,n,r){if(!r.schema[i])throw new Sn.NotFound("Table "+i+" not part of transaction");return t(r.idbtrans,r)}const s=mr();try{return r&&r.db===this.db?r===nr.trans?r._promise(e,o,n):Er((()=>r._promise(e,o,n)),{trans:r,transless:nr.transless||nr}):Vr(this.db,e,[this.name],o)}finally{s&&vr()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(Tt(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=Mt(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))&&e.keyPath.every((e=>t.indexOf(e)>=0))))[0];if(n&&this.db._maxKey!==$r)return this.where(n.name).equals(n.keyPath.map((t=>e[t])));const{idxByName:r}=this.schema,i=this.db._deps.indexedDB;function o(e,t){try{return 0===i.cmp(e,t)}catch(n){return!1}}const[s,a]=t.reduce((([t,n],i)=>{const s=r[i],a=e[i];return[t||s,t||!s?ri(n,s&&s.multi?e=>{const t=Xt(e,i);return Tt(t)&&t.some((e=>o(a,e)))}:e=>o(a,Xt(e,i))):n]}),[null,null]);return s?this.where(s.name).equals(e[s.keyPath]).filter(a):n?this.filter(a):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,Tt(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var r in t)if(It(t,r))try{n[r]=t[r]}catch(i){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){At(this,e)}))}add(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let i=e;return r&&n&&(i=oi(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[i]}))).then((e=>e.numFailures?sr.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{Zt(e,r,t)}catch(n){}return t}))}update(e,t){if("object"!=typeof e||Tt(e))return this.where(":id").equals(e).modify(t);{const r=Xt(e,this.schema.primKey.keyPath);if(void 0===r)return Fr(new Sn.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?Mt(t).forEach((n=>{Zt(e,n,t[n])})):t(e,{value:e,primKey:r})}catch(n){}return this.where(":id").equals(r).modify(t)}}put(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let i=e;return r&&n&&(i=oi(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[i],keys:null!=t?[t]:null}))).then((e=>e.numFailures?sr.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{Zt(e,r,t)}catch(n){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?sr.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:ii}))).then((e=>e.numFailures?sr.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new Sn.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Sn.InvalidArgument("Arguments objects and keys must have the same length");const s=e.length;let a=o&&n?e.map(oi(o)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:a,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new _n(`${this.name}.bulkAdd(): ${e} of ${s} operations failed`,r)}))}))}bulkPut(e,t,n){const r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new Sn.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Sn.InvalidArgument("Arguments objects and keys must have the same length");const s=e.length;let a=o&&n?e.map(oi(o)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:a,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new _n(`${this.name}.bulkPut(): ${e} of ${s} operations failed`,r)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new _n(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)}))}}function ai(e){var t={},n=function(n,r){if(r){for(var i=arguments.length,o=new Array(i-1);--i;)o[i-1]=arguments[i];return t[n].subscribe.apply(null,o),e}if("string"==typeof n)return t[n]};n.addEventType=o;for(var r=1,i=arguments.length;rri(r(),t()):t,e.justLimit=n&&!r}function di(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new Sn.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function fi(e,t,n){const r=di(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function pi(e,t,n,r){const i=e.replayFilter?ri(e.filter,e.replayFilter()):e.filter;if(e.or){const o={},s=(e,n,r)=>{if(!i||i(n,r,(e=>n.stop(e)),(e=>n.fail(e)))){var s=n.primaryKey,a=""+s;"[object ArrayBuffer]"===a&&(a=""+new Uint8Array(s)),It(o,a)||(o[a]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(s,n),gi(fi(e,r,n),e.algorithm,s,!e.keysOnly&&e.valueMapper)])}return gi(fi(e,r,n),ri(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function gi(e,t,n,r){var i=wr(r?(e,t,i)=>n(r(e),t,i):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=Mn}),(t=>{e.fail(t),n=Mn}))||i(e.value,e,(e=>n=e)),n()}))}))}function ki(e,t){try{const n=mi(e),r=mi(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:epi(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(ci(t,!0))return n.count({trans:e,query:{index:di(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var r=0;return pi(t,(()=>(++r,!1)),e,n).then((()=>r))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),r=n[0],i=n.length-1;function o(e,t){return t?o(e[n[t]],t-1):e[r]}var s="next"===this._ctx.dir?1:-1;function a(e,t){var n=o(e,i),r=o(t,i);return nr?s:0}return this.toArray((function(e){return e.sort(a)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&ci(t,!0)&&t.limit>0){const{valueMapper:n}=t,r=di(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return pi(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,ci(t)?ui(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):ui(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),ui(this._ctx,(()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this}until(e,t){return hi(this._ctx,(function(n,r,i){return!e(n.value)||(r(i),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return hi(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=ri(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&ci(t,!0)&&t.limit>0)return this._read((e=>{var n=di(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return hi(this._ctx,(function(e){var t=e.primaryKey.toString(),r=It(n,t);return n[t]=!0,!r})),this}modify(e){var t=this._ctx;return this._write((n=>{var r;if("function"==typeof e)r=e;else{var i=Mt(e),o=i.length;r=function(t){for(var n=!1,r=0;r{const{failures:n,numFailures:r}=t;u+=e-r;for(let i of Mt(n))h.push(n[i])};return this.clone().primaryKeys().then((i=>{const o=h=>{const u=Math.min(c,i.length-h);return s.getMany({trans:n,keys:i.slice(h,h+u),cache:"immutable"}).then((d=>{const p=[],g=[],k=a?[]:null,m=[];for(let e=0;e0&&s.mutate({trans:n,type:"add",values:p}).then((e=>{for(let t in e.failures)m.splice(parseInt(t),1);f(p.length,e)}))).then((()=>(g.length>0||v&&"object"==typeof e)&&s.mutate({trans:n,type:"put",keys:k,values:g,criteria:v,changeSpec:"function"!=typeof e&&e}).then((e=>f(g.length,e))))).then((()=>(m.length>0||v&&e===Li)&&s.mutate({trans:n,type:"delete",keys:m,criteria:v}).then((e=>f(m.length,e))))).then((()=>i.length>h+u&&o(h+c)))}))};return o(0).then((()=>{if(h.length>0)throw new bn("Error modifying one or more objects",h,u,d);return i.length}))}))}))}delete(){var e=this._ctx,t=e.range;return ci(e)&&(e.isPrimKey&&!Jr||3===t.type)?this._write((n=>{const{primaryKey:r}=e.table.core.schema,i=t;return e.table.core.count({trans:n,query:{index:r,range:i}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:i}).then((({failures:e,lastResult:n,results:r,numFailures:i})=>{if(i)throw new bn("Could not delete some values",Object.keys(e).map((t=>e[t])),t-i);return t-i}))))})):this.modify(Li)}}const Li=(e,t)=>t.value=null;function wi(e,t){return et?-1:e===t?0:1}function _i(e,t,n){var r=e instanceof Mi?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function xi(e){return new e.Collection(e,(()=>Ei(""))).limit(0)}function Ci(e,t,n,r,i,o){for(var s=Math.min(e.length,r.length),a=-1,l=0;l=0?e.substr(0,a)+t[a]+n.substr(a+1):null;i(e[l],c)<0&&(a=l)}return s"string"==typeof e)))return _i(e,Zr);function d(e){i="next"===e?e=>e.toUpperCase():e=>e.toLowerCase(),o=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),s="next"===e?wi:bi;var t=n.map((function(e){return{lower:o(e),upper:i(e)}})).sort((function(e,t){return s(e.lower,t.lower)}));a=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),c=e,h="next"===e?"":r}d("next");var f=new e.Collection(e,(()=>ji(a[0],l[u-1]+r)));f._ondirectionchange=function(e){d(e)};var p=0;return f._addAlgorithm((function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var d=o(i);if(t(d,l,p))return!0;for(var f=null,g=p;g0)&&(f=k)}return n(null!==f?function(){e.continue(f+h)}:r),!1})),f}function ji(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Ei(e){return{type:1,lower:e,upper:e}}let Mi=class{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?xi(this):new this.Collection(this,(()=>ji(e,t,!n,!r)))}catch(i){return _i(this,Xr)}}equals(e){return null==e?_i(this,Xr):new this.Collection(this,(()=>Ei(e)))}above(e){return null==e?_i(this,Xr):new this.Collection(this,(()=>ji(e,void 0,!0)))}aboveOrEqual(e){return null==e?_i(this,Xr):new this.Collection(this,(()=>ji(e,void 0,!1)))}below(e){return null==e?_i(this,Xr):new this.Collection(this,(()=>ji(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?_i(this,Xr):new this.Collection(this,(()=>ji(void 0,e)))}startsWith(e){return"string"!=typeof e?_i(this,Zr):this.between(e,e+$r,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):Si(this,((e,t)=>0===e.indexOf(t[0])),[e],$r)}equalsIgnoreCase(e){return Si(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=cn.apply(ln,arguments);return 0===e.length?xi(this):Si(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=cn.apply(ln,arguments);return 0===e.length?xi(this):Si(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,$r)}anyOf(){const e=cn.apply(ln,arguments);let t=this._cmp;try{e.sort(t)}catch(i){return _i(this,Xr)}if(0===e.length)return xi(this);const n=new this.Collection(this,(()=>ji(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm(((n,i,o)=>{const s=n.key;for(;t(s,e[r])>0;)if(++r,r===e.length)return i(o),!1;return 0===t(s,e[r])||(i((()=>{n.continue(e[r])})),!1)})),n}notEqual(e){return this.inAnyRange([[Yr,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=cn.apply(ln,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(n){return _i(this,Xr)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[Yr,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,r=this._ascending,i=this._descending,o=this._min,s=this._max;if(0===e.length)return xi(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0)))return _i(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Sn.InvalidArgument);const a=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;let c,h=r;function u(e,t){return h(e[0],t[0])}try{c=e.reduce((function(e,t){let r=0,i=e.length;for(;r0){i[0]=o(i[0],t[0]),i[1]=s(i[1],t[1]);break}}return r===i&&e.push(t),e}),[]),c.sort(u)}catch(m){return _i(this,Xr)}let d=0;const f=l?e=>r(e,c[d][1])>0:e=>r(e,c[d][1])>=0,p=a?e=>i(e,c[d][0])>0:e=>i(e,c[d][0])>=0;let g=f;const k=new this.Collection(this,(()=>ji(c[0][0],c[c.length-1][1],!a,!l)));return k._ondirectionchange=e=>{"next"===e?(g=f,h=r):(g=p,h=i),c.sort(u)},k._addAlgorithm(((e,t,n)=>{for(var i=e.key;g(i);)if(++d,d===c.length)return t(n),!1;return!(o=i,(f(o)||p(o))&&(0===this._cmp(i,c[d][1])||0===this._cmp(i,c[d][0])||t((()=>{h===r?e.continue(c[d][0]):e.continue(c[d][1])})),1));var o})),k}startsWithAnyOf(){const e=cn.apply(ln,arguments);return e.every((e=>"string"==typeof e))?0===e.length?xi(this):this.inAnyRange(e.map((e=>[e,e+$r]))):_i(this,"startsWithAnyOf() only works with strings")}};function Ti(e){return wr((function(t){return Ai(t),e(t.target.error),!1}))}function Ai(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const Oi="storagemutated",Pi="x-storagemutated-1",Ii=ai(null,Oi);class Ri{_lock(){return Ut(!nr.global),++this._reculock,1!==this._reculock||nr.global||(nr.lockOwnerFor=this),this}_unlock(){if(Ut(!nr.global),0==--this._reculock)for(nr.global||(nr.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{Br(e[1],e[0])}catch(t){}}return this}_locked(){return this._reculock&&nr.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(Ut(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new Sn.DatabaseClosed(n);case"MissingAPIError":throw new Sn.MissingAPI(n.message,n);default:throw new Sn.OpenFailed(n)}if(!this.active)throw new Sn.TransactionInactive;return Ut(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=wr((t=>{Ai(t),this._reject(e.error)})),e.onabort=wr((t=>{Ai(t),this.active&&this._reject(new Sn.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=wr((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&Ii.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return Fr(new Sn.ReadOnly("Transaction is readonly"));if(!this.active)return Fr(new Sn.TransactionInactive);if(this._locked())return new sr(((r,i)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,i)},nr])}));if(n)return Er((()=>{var e=new sr(((e,n)=>{this._lock();const r=t(e,n,this);r&&r.then&&r.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var r=new sr(((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)}));return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=sr.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new sr(((e,r)=>{n.then((n=>t._waitingQueue.push(wr(e.bind(null,n)))),(e=>t._waitingQueue.push(wr(r.bind(null,e))))).finally((()=>{t._waitingFor===i&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Sn.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(It(t,e))return t[e];const n=this.schema[e];if(!n)throw new Sn.NotFound("Table "+e+" not part of transaction");const r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function Bi(e,t,n,r,i,o,s){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:o,src:(n&&!s?"&":"")+(r?"*":"")+(i?"++":"")+Wi(t)}}function Wi(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function Hi(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:Yt(n,(e=>[e.name,e]))}}let zi=e=>{try{return e.only([[]]),zi=()=>[[]],[[]]}catch(t){return zi=()=>$r,$r}};function Ni(e){return null==e?()=>{}:"string"==typeof e?1===(t=e).split(".").length?e=>e[t]:e=>Xt(e,t):t=>Xt(t,e);var t}function Di(e){return[].slice.call(e)}let Fi=0;function Vi(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function Ui({_novip:e},t){const n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},i){const o=(s=function(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:r,lowerOpen:i,upperOpen:o}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!o):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!o)}const{schema:i,hasGetAll:o}=function(e,t){const n=Di(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,r=Tt(t),i=null==t,o={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:Ni(t)},indexes:Di(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:r,keyPath:i}=e,s={name:t,compound:Tt(i),keyPath:i,unique:n,multiEntry:r,extractKey:Ni(i)};return o[Vi(i)]=s,s})),getIndexByKeyPath:e=>o[Vi(e)]};return o[":id"]=s.primaryKey,null!=t&&(o[Vi(t)]=s.primaryKey),s}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),s=i.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:i,values:o,range:s}){return new Promise(((a,l)=>{a=wr(a);const c=e.objectStore(t),h=null==c.keyPath,u="put"===n||"add"===n;if(!u&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:d}=i||o||{length:1};if(i&&o&&i.length!==o.length)throw new Error("Given keys array must have same length as given values array.");if(0===d)return a({numFailures:0,failures:{},results:[],lastResult:void 0});let f;const p=[],g=[];let k=0;const m=e=>{++k,Ai(e)};if("deleteRange"===n){if(4===s.type)return a({numFailures:k,failures:g,results:[],lastResult:void 0});3===s.type?p.push(f=c.clear()):p.push(f=c.delete(r(s)))}else{const[e,t]=u?h?[o,i]:[o,null]:[i,null];if(u)for(let r=0;r{const t=e.target.result;p.forEach(((e,t)=>null!=e.error&&(g[t]=e.error))),a({numFailures:k,failures:g,results:"delete"===n?i:p.map((e=>e.result)),lastResult:t})};f.onerror=e=>{m(e),v(e)},f.onsuccess=v}))},getMany:({trans:e,keys:n})=>new Promise(((r,i)=>{r=wr(r);const o=e.objectStore(t),s=n.length,a=new Array(s);let l,c=0,h=0;const u=e=>{const t=e.target;a[t._pos]=t.result,++h===c&&r(a)},d=Ti(i);for(let e=0;enew Promise(((r,i)=>{r=wr(r);const o=e.objectStore(t).get(n);o.onsuccess=e=>r(e.target.result),o.onerror=Ti(i)})),query:(n=o,e=>new Promise(((i,o)=>{i=wr(i);const{trans:s,values:a,limit:l,query:c}=e,h=l===1/0?void 0:l,{index:u,range:d}=c,f=s.objectStore(t),p=u.isPrimaryKey?f:f.index(u.name),g=r(d);if(0===l)return i({result:[]});if(n){const e=a?p.getAll(g,h):p.getAllKeys(g,h);e.onsuccess=e=>i({result:e.target.result}),e.onerror=Ti(o)}else{let e=0;const t=a||!("openKeyCursor"in p)?p.openCursor(g):p.openKeyCursor(g),n=[];t.onsuccess=r=>{const o=t.result;return o?(n.push(a?o.value:o.primaryKey),++e===l?i({result:n}):void o.continue()):i({result:n})},t.onerror=Ti(o)}}))),openCursor:function({trans:e,values:n,query:i,reverse:o,unique:s}){return new Promise(((a,l)=>{a=wr(a);const{index:c,range:h}=i,u=e.objectStore(t),d=c.isPrimaryKey?u:u.index(c.name),f=o?s?"prevunique":"prev":s?"nextunique":"next",p=n||!("openKeyCursor"in d)?d.openCursor(r(h),f):d.openKeyCursor(r(h),f);p.onerror=Ti(l),p.onsuccess=wr((t=>{const n=p.result;if(!n)return void a(null);n.___id=++Fi,n.done=!1;const r=n.continue.bind(n);let i=n.continuePrimaryKey;i&&(i=i.bind(n));const o=n.advance.bind(n),s=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=wr(l),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=wr(e),p.onerror=Ti(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=s,e(t)}})),a=()=>{if(p.result)try{e()}catch(t){n.fail(t)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return p.onsuccess=wr((e=>{p.onsuccess=a,a()})),n.continue=r,n.continuePrimaryKey=i,n.advance=o,a(),t},a(n)}),l)}))},count({query:e,trans:n}){const{index:i,range:o}=e;return new Promise(((e,s)=>{const a=n.objectStore(t),l=i.isPrimaryKey?a:a.index(i.name),c=r(o),h=c?l.count(c):l.count();h.onsuccess=wr((t=>e(t.target.result))),h.onerror=Ti(s)}))}};var n}(e))),a={};return s.forEach((e=>a[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!a[e])throw new Error(`Table '${e}' not found`);return a[e]},MIN_KEY:-1/0,MAX_KEY:zi(t),schema:i}}(t,n,i),e.dbcore.reduce(((e,{create:t})=>l(l({},e),t(e))),s));var s;return{dbcore:o}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function $i({_novip:e},t,n,r){n.forEach((n=>{const i=r[n];t.forEach((t=>{const r=Nt(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?Wt(t,n,{get(){return this.table(n)},set(e){Bt(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))}))}))}function Yi({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function Xi(e,t){return e._cfg.version-t._cfg.version}function Zi(e,t){const n={del:[],add:[],change:[]};let r;for(r in e)t[r]||n.del.push(r);for(r in t){const i=e[r],o=t[r];if(i){const e={name:r,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(o.primKey.keyPath||"")||i.primKey.auto!==o.primKey.auto&&!qr)e.recreate=!0,n.change.push(e);else{const t=i.idxByName,r=o.idxByName;let s;for(s in t)r[s]||e.del.push(s);for(s in r){const n=t[s],i=r[s];n?n.src!==i.src&&e.change.push(i):e.add.push(i)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([r,o])}return n}function Gi(e,t,n,r){const i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((e=>qi(i,e))),i}function qi(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Ki(e,t,n){const r={};return Ft(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let i=t.keyPath;const o=Bi(Wi(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),s=[];for(let n=0;n{if(null!==e[n]){var r=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return Bi(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),Tt(r),0===t)})),i=r.shift();if(i.multi)throw new Sn.Schema("Primary key cannot be multi-valued");r.forEach((e=>{if(e.auto)throw new Sn.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new Sn.Schema("Index must have a name and cannot be an empty string")})),t[n]=Hi(n,i,r)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?At(this._cfg.storesSource,e):e;const n=t._versions,r={};let i={};return n.forEach((e=>{At(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)})),t._dbSchema=i,Yi(t,[t._allTables,t,t.Transaction.prototype]),$i(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],Mt(i),i),t._storeNames=Mt(i),this}upgrade(e){return this._cfg.contentUpgrade=Wn(this._cfg.contentUpgrade||Mn,e),this}}function eo(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new _o(ei,{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function to(e){return e&&"function"==typeof e.databases}function no(e){return Er((function(){return nr.letThrough=!0,e()}))}function ro(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function io(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?Fr(t.dbOpenError):e));un&&(t.openCanceller._stackHolder=gn()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new Sn.DatabaseClosed("db.open() was cancelled")}let o=t.dbReadyResolve,s=null,a=!1;return sr.race([r,("undefined"==typeof navigator?sr.resolve():ro()).then((()=>new sr(((r,o)=>{if(i(),!n)throw new Sn.MissingAPI;const l=e.name,c=t.autoSchema?n.open(l):n.open(l,Math.round(10*e.verno));if(!c)throw new Sn.MissingAPI;c.onerror=Ti(o),c.onblocked=wr(e._fireOnBlocked),c.onupgradeneeded=wr((r=>{if(s=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=Ai,s.abort(),c.result.close();const e=n.deleteDatabase(l);e.onsuccess=e.onerror=wr((()=>{o(new Sn.NoSuchDatabase(`Database ${l} doesnt exist`))}))}else{s.onerror=Ti(o);var i=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;a=i<1,e._novip.idbdb=c.result,function(e,t,n,r){const i=e._dbSchema,o=e._createTransaction("readwrite",e._storeNames,i);o.create(n),o._completion.catch(r);const s=o._reject.bind(o),a=nr.transless||nr;Er((()=>{nr.trans=o,nr.transless=a,0===t?(Mt(i).forEach((e=>{Gi(n,e,i[e].primKey,i[e].indexes)})),Ui(e,n),sr.follow((()=>e.on.populate.fire(o))).catch(s)):function({_novip:e},t,n,r){const i=[],o=e._versions;let s=e._dbSchema=Ki(0,e.idbdb,r),a=!1;return o.filter((e=>e._cfg.version>=t)).forEach((o=>{i.push((()=>{const i=s,l=o._cfg.dbschema;Ji(e,i,r),Ji(e,l,r),s=e._dbSchema=l;const c=Zi(i,l);c.add.forEach((e=>{Gi(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((e=>{if(e.recreate)throw new Sn.Upgrade("Not yet support for changing primary key");{const t=r.objectStore(e.name);e.add.forEach((e=>qi(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),qi(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const h=o._cfg.contentUpgrade;if(h&&o._cfg.version>t){Ui(e,r),n._memoizedTables={},a=!0;let t=Gt(l);c.del.forEach((e=>{t[e]=i[e]})),Yi(e,[e.Transaction.prototype]),$i(e,[e.Transaction.prototype],Mt(t),t),n.schema=t;const o=hn(h);let s;o&&Mr();const u=sr.follow((()=>{if(s=h(n),s&&o){var e=Tr.bind(null,null);s.then(e,e)}}));return s&&"function"==typeof s.then?sr.resolve(s):u.then((()=>s))}})),i.push((t=>{var r,i;a&&Kr||(r=o._cfg.dbschema,i=t,[].slice.call(i.db.objectStoreNames).forEach((e=>null==r[e]&&i.db.deleteObjectStore(e)))),Yi(e,[e.Transaction.prototype]),$i(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return i.length?sr.resolve(i.shift()(n.idbtrans)).then(e):sr.resolve()}().then((()=>{var e,t;t=r,Mt(e=s).forEach((n=>{t.db.objectStoreNames.contains(n)||Gi(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,o,n).catch(s)}))}(e,i/10,s,o)}}),o),c.onsuccess=wr((()=>{s=null;const n=e._novip.idbdb=c.result,i=Ft(n.objectStoreNames);if(i.length>0)try{const r=n.transaction(1===(o=i).length?o[0]:o,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const r=e._dbSchema=Ki(0,t,n);e._storeNames=Ft(t.objectStoreNames,0),$i(e,[e._allTables],Mt(r),r)}(e,n,r):(Ji(e,e._dbSchema,r),function(e,t){const n=Zi(Ki(0,e.idbdb,t),e._dbSchema);n.add.length||n.change.some((e=>e.add.length||e.change.length))}(e,r)),Ui(e,r)}catch(h){}var o;Gr.push(e),n.onversionchange=wr((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=wr((t=>{e.on("close").fire(t)})),a&&function({indexedDB:e,IDBKeyRange:t},n){!to(e)&&n!==ei&&eo(e,t).put({name:n}).catch(Mn)}(e._deps,l),r()}),o)}))))]).then((()=>(i(),t.onReadyBeingFired=[],sr.resolve(no((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let r=t.onReadyBeingFired.reduce(Wn,Mn);return t.onReadyBeingFired=[],sr.resolve(no((()=>r(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{s&&s.abort()}catch(i){}return r===t.openCanceller&&e._close(),Fr(n)})).finally((()=>{t.openComplete=!0,o()}))}function oo(e){var t=t=>e.next(t),n=i(t),r=i((t=>e.throw(t)));function i(e){return t=>{var i=e(t),o=i.value;return i.done?o:o&&"function"==typeof o.then?o.then(n,r):Tt(o)?Promise.all(o).then(n,r):n(o)}}return i(t)()}function so(e,t,n){var r=arguments.length;if(r<2)throw new Sn.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,Kt(i),n]}function ao(e,t,n,r,i){return sr.resolve().then((()=>{const o=nr.transless||nr,s=e._createTransaction(t,n,e._dbSchema,r),a={trans:s,transless:o};if(r)s.idbtrans=r.idbtrans;else try{s.create(),e._state.PR1398_maxLoop=3}catch(u){return u.name===xn.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(e._close(),e.open().then((()=>ao(e,t,n,null,i)))):Fr(u)}const l=hn(i);let c;l&&Mr();const h=sr.follow((()=>{if(c=i.call(s,s),c)if(l){var e=Tr.bind(null,null);c.then(e,e)}else"function"==typeof c.next&&"function"==typeof c.throw&&(c=oo(c))}),a);return(c&&"function"==typeof c.then?sr.resolve(c).then((e=>s.active?e:Fr(new Sn.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):h.then((()=>c))).then((e=>(r&&s._resolve(),s._completion.then((()=>e))))).catch((e=>(s._reject(e),Fr(e))))}))}function lo(e,t,n){const r=Tt(e)?e.slice():[e];for(let i=0;i0,d=c(l({},n),{isVirtual:u,keyTail:t,keyLength:h,extractKey:Ni(e),unique:!u&&n.unique});return a.push(d),d.isPrimaryKey||o.push(d),h>1&&s(2===h?e[0]:e.slice(0,h-1),t+1,n),a.sort(((e,t)=>e.keyTail-t.keyTail)),d}const a=s(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[a];for(const e of r.indexes)s(e.keyPath,0,e);function h(t){const n=t.query.index;return n.isVirtual?c(l({},t),{query:{index:n,range:(r=t.query.range,i=n.keyTail,{type:1===r.type?2:r.type,lower:lo(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,i),lowerOpen:!0,upper:lo(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,i),upperOpen:!0})}}):t;var r,i}return c(l({},n),{schema:c(l({},r),{primaryKey:a,indexes:o,getIndexByKeyPath:function(e){const t=i[Vi(e)];return t&&t[0]}}),count:e=>n.count(h(e)),query:e=>n.query(h(e)),openCursor(t){const{keyTail:r,isVirtual:i,keyLength:o}=t.query.index;return i?n.openCursor(h(t)).then((n=>{return n&&(i=n,Object.create(i,{continue:{value:function(n){null!=n?i.continue(lo(n,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?i.continue(i.key.slice(0,o).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):i.continue()}},continuePrimaryKey:{value(t,n){i.continuePrimaryKey(lo(t,e.MAX_KEY,r),n)}},primaryKey:{get:()=>i.primaryKey},key:{get(){const e=i.key;return 1===o?e[0]:e.slice(0,o)}},value:{get:()=>i.value}}));var i})):n.openCursor(t)}})}})}};function ho(e,t,n,r){return n=n||{},r=r||"",Mt(e).forEach((i=>{if(It(t,i)){var o=e[i],s=t[i];if("object"==typeof o&&"object"==typeof s&&o&&s){const e=on(o);e!==on(s)?n[r+i]=t[i]:"Object"===e?ho(o,s,n,r+i+"."):o!==s&&(n[r+i]=t[i])}else o!==s&&(n[r+i]=t[i])}else n[r+i]=void 0})),Mt(t).forEach((i=>{It(e,i)||(n[r+i]=t[i])})),n}const uo={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>c(l({},e),{table(t){const n=e.table(t),{primaryKey:r}=n.schema;return c(l({},n),{mutate(e){const i=nr.trans,{deleting:o,creating:s,updating:a}=i.table(t).hook;switch(e.type){case"add":if(s.fire===Mn)break;return i._promise("readwrite",(()=>h(e)),!0);case"put":if(s.fire===Mn&&a.fire===Mn)break;return i._promise("readwrite",(()=>h(e)),!0);case"delete":if(o.fire===Mn)break;return i._promise("readwrite",(()=>h(e)),!0);case"deleteRange":if(o.fire===Mn)break;return i._promise("readwrite",(()=>{return u((t=e).trans,t.range,1e4);var t}),!0)}return n.mutate(e);function h(e){const t=nr.trans,i=e.keys||(h=r,"delete"===(u=e).type?u.keys:u.keys||u.values.map(h.extractKey));var h,u;if(!i)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?c(l({},e),{keys:i}):l({},e)).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,i).then((l=>{const c=i.map(((n,i)=>{const c=l[i],h={onerror:null,onsuccess:null};if("delete"===e.type)o.fire.call(h,n,c,t);else if("add"===e.type||void 0===c){const o=s.fire.call(h,n,e.values[i],t);null==n&&null!=o&&(n=o,e.keys[i]=n,r.outbound||Zt(e.values[i],r.keyPath,n))}else{const r=ho(c,e.values[i]),o=a.fire.call(h,r,n,c,t);if(o){const t=e.values[i];Object.keys(o).forEach((e=>{It(t,e)?t[e]=o[e]:Zt(t,e,o[e])}))}}return h}));return n.mutate(e).then((({failures:t,results:n,numFailures:r,lastResult:o})=>{for(let s=0;s(c.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function u(e,t,i){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:i}).then((({result:n})=>h({type:"delete",keys:n,trans:e}).then((r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length({table:t=>{const n=e.table(t);return c(l({},n),{getMany:e=>{if(!e.cache)return n.getMany(e);const t=fo(e.keys,e.trans._cache,"clone"===e.cache);return t?sr.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?tn(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))})}})};function go(e){return!("from"in e)}const ko=function(e,t){if(!this){const t=new ko;return e&&"d"in e&&At(t,e),t}At(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function mo(e,t,n){const r=ki(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(go(e))return At(e,{from:t,to:n,d:1});const i=e.l,o=e.r;if(ki(n,e.from)<0)return i?mo(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Lo(e);if(ki(t,e.to)>0)return o?mo(o,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Lo(e);ki(t,e.from)<0&&(e.from=t,e.l=null,e.d=o?o.d+1:1),ki(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const s=!e.r;i&&!e.l&&vo(e,i),o&&s&&vo(e,o)}function vo(e,t){go(t)||function e(t,{from:n,to:r,l:i,r:o}){mo(t,n,r),i&&e(t,i),o&&e(t,o)}(e,t)}function yo(e){let t=go(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&ki(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||ki(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Lo(e){var t,n;const r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){const t="r"===i?"l":"r",n=l({},e),r=e[i];e.from=r.from,e.to=r.to,e[i]=r[i],n[i]=r[t],e[t]=n,n.d=wo(n)}e.d=wo(e)}function wo({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}Rt(ko.prototype,{add(e){return vo(this,e),this},addKey(e){return mo(this,e,e),this},addKeys(e){return e.forEach((e=>mo(this,e,e))),this},[sn](){return yo(this)}});const bo={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new ko(e.MIN_KEY,e.MAX_KEY);return c(l({},e),{table:r=>{const i=e.table(r),{schema:o}=i,{primaryKey:s}=o,{extractKey:a,outbound:h}=s,u=c(l({},i),{mutate:e=>{const s=e.trans,a=s.mutatedParts||(s.mutatedParts={}),l=e=>{const n=`idb://${t}/${r}/${e}`;return a[n]||(a[n]=new ko)},c=l(""),h=l(":dels"),{type:u}=e;let[d,f]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const p=e.trans._cache;return i.mutate(e).then((e=>{if(Tt(d)){"delete"!==u&&(d=e.results),c.addKeys(d);const n=fo(d,p);n||"add"===u||h.addKeys(d),(n||f)&&(t=l,r=n,i=f,o.indexes.forEach((function(e){const n=t(e.name||"");function o(t){return null!=t?e.extractKey(t):null}const s=t=>e.multiEntry&&Tt(t)?t.forEach((e=>n.addKey(e))):n.addKey(t);(r||i).forEach(((e,t)=>{const n=r&&o(r[t]),a=i&&o(i[t]);0!==ki(n,a)&&(null!=n&&s(n),null!=a&&s(a))}))})))}else if(d){const e={from:d.lower,to:d.upper};h.add(e),c.add(e)}else c.add(n),h.add(n),o.indexes.forEach((e=>l(e.name).add(n)));var t,r,i;return e}))}}),d=({query:{index:t,range:n}})=>{var r,i;return[t,new ko(null!==(r=n.lower)&&void 0!==r?r:e.MIN_KEY,null!==(i=n.upper)&&void 0!==i?i:e.MAX_KEY)]},f={get:e=>[s,new ko(e.key)],getMany:e=>[s,(new ko).addKeys(e.keys)],count:d,query:d,openCursor:d};return Mt(f).forEach((e=>{u[e]=function(o){const{subscr:s}=nr;if(s){const u=e=>{const n=`idb://${t}/${r}/${e}`;return s[n]||(s[n]=new ko)},d=u(""),p=u(":dels"),[g,k]=f[e](o);if(u(g.name||"").add(k),!g.isPrimaryKey){if("count"!==e){const t="query"===e&&h&&o.values&&i.query(c(l({},o),{values:!1}));return i[e].apply(this,arguments).then((n=>{if("query"===e){if(h&&o.values)return t.then((({result:e})=>(d.addKeys(e),n)));const e=o.values?n.result.map(a):n.result;o.values?d.addKeys(e):p.addKeys(e)}else if("openCursor"===e){const e=n,t=o.values;return e&&Object.create(e,{key:{get:()=>(p.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return p.addKey(t),t}},value:{get:()=>(t&&d.addKey(e.primaryKey),e.value)}})}return n}))}p.add(n)}}return i[e].apply(this,arguments)}})),u}})}};class _o{constructor(e,t){this._middlewares={},this.verno=0;const n=_o.dependencies;this._options=t=l({addons:_o.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange},t),this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:r}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Mn,dbReadyPromise:null,cancelOpen:Mn,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var o,s;i.dbReadyPromise=new sr((e=>{i.dbReadyResolve=e})),i.openCanceller=new sr(((e,t)=>{i.cancelOpen=t})),this._state=i,this.name=e,this.on=ai(this,"populate","blocked","versionchange","close",{ready:[Wn,Mn]}),this.on.ready.subscribe=Vt(this.on.ready.subscribe,(e=>(t,n)=>{_o.vip((()=>{const r=this._state;if(r.openComplete)r.dbOpenError||sr.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);const r=this;n||e((function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)}))}}))})),this.Collection=(o=this,li(yi.prototype,(function(e,t){this.db=o;let n=ii,r=null;if(t)try{n=t()}catch(l){r=l}const i=e._ctx,s=i.table,a=s.hook.reading.fire;this._ctx={table:s,index:i.index,isPrimKey:!i.index||s.schema.primKey.keyPath&&i.index===s.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:i.or,valueMapper:a!==Tn?a:null}}))),this.Table=(s=this,li(si.prototype,(function(e,t,n){this.db=s,this._tx=n,this.name=e,this.schema=t,this.hook=s._allTables[e]?s._allTables[e].hook:ai(null,{creating:[Pn,Mn],reading:[An,Tn],updating:[Rn,Mn],deleting:[In,Mn]})}))),this.Transaction=function(e){return li(Ri.prototype,(function(t,n,r,i,o){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=i,this.idbtrans=null,this.on=ai(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new sr(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),Fr(e)}))}))}(this),this.Version=function(e){return li(Qi.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return li(Mi.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};const i=e._deps.indexedDB;if(!i)throw new Sn.MissingAPI;this._cmp=this._ascending=i.cmp.bind(i),this._descending=(e,t)=>i.cmp(t,e),this._max=(e,t)=>i.cmp(e,t)>0?e:t,this._min=(e,t)=>i.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion,this.close()})),this.on("blocked",(e=>{!e.newVersion||(e.newVersion,e.oldVersion)})),this._maxKey=zi(t.IDBKeyRange),this._createTransaction=(e,t,n,r)=>new this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),Gr.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(co),this.use(uo),this.use(bo),this.use(po),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new Sn.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new Sn.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort(Xi),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||nr.letThrough||this._vip)?e():new sr(((e,t)=>{if(this._state.openComplete)return t(new Sn.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new Sn.DatabaseClosed);this.open().catch(Mn)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:t,level:null==n?10:n,name:r}),i.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return io(this)}_close(){const e=this._state,t=Gr.indexOf(this);if(t>=0&&Gr.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(n){}this._novip.idbdb=null}e.dbReadyPromise=new sr((t=>{e.dbReadyResolve=t})),e.openCanceller=new sr(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new Sn.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new sr(((n,r)=>{const i=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=wr((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!to(e)&&n!==ei&&eo(e,t).delete(n).catch(Mn)}(this._deps,this.name),n()})),e.onerror=Ti(r),e.onblocked=this._fireOnBlocked};if(e)throw new Sn.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(i):i()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Mt(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=so.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r=nr.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);const i=-1!==e.indexOf("?");let o,s;e=e.replace("!","").replace("?","");try{if(s=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||e===ti)o=ti;else{if("rw"!=e&&e!=ni)throw new Sn.InvalidArgument("Invalid transaction mode: "+e);o=ni}if(r){if(r.mode===ti&&o===ni){if(!i)throw new Sn.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&s.forEach((e=>{if(r&&-1===r.storeNames.indexOf(e)){if(!i)throw new Sn.SubTransaction("Table "+e+" not included in parent transaction.");r=null}})),i&&r&&!r.active&&(r=null)}}catch(l){return r?r._promise(null,((e,t)=>{t(l)})):Fr(l)}const a=ao.bind(null,this,o,s,r,n);return r?r._promise(o,a,"lock"):nr.trans?Br(nr.transless,(()=>this._whenReady(a))):this._whenReady(a)}table(e){if(!It(this._allTables,e))throw new Sn.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const xo="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class Co{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[xo](){return this}}function So(e,t){return Mt(t).forEach((n=>{vo(e[n]||(e[n]=new ko),t[n])})),e}let jo;try{jo={indexedDB:Et.indexedDB||Et.mozIndexedDB||Et.webkitIndexedDB||Et.msIndexedDB,IDBKeyRange:Et.IDBKeyRange||Et.webkitIDBKeyRange}}catch(FM){jo={indexedDB:null,IDBKeyRange:null}}const Eo=_o;function Mo(e){let t=To;try{To=!0,Ii.storagemutated.fire(e)}finally{To=t}}Rt(Eo,c(l({},En),{delete:e=>new Eo(e,{addons:[]}).delete(),exists:e=>new Eo(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return to(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>e!==ei)))):eo(e,t).toCollection().primaryKeys()}(Eo.dependencies).then(e)}catch(t){return Fr(new Sn.MissingAPI)}},defineClass:()=>function(e){At(this,e)},ignoreTransaction:e=>nr.trans?Br(nr.transless,e):e(),vip:no,async:function(e){return function(){try{var t=oo(e.apply(this,arguments));return t&&"function"==typeof t.then?t:sr.resolve(t)}catch(n){return Fr(n)}}},spawn:function(e,t,n){try{var r=oo(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:sr.resolve(r)}catch(i){return Fr(i)}},currentTransaction:{get:()=>nr.trans||null},waitFor:function(e,t){const n=sr.resolve("function"==typeof e?Eo.ignoreTransaction(e):e).timeout(t||6e4);return nr.trans?nr.trans.waitFor(n):n},Promise:sr,debug:{get:()=>un,set:e=>{dn(e,"dexie"===e?()=>!0:Qr)}},derive:Ht,extend:At,props:Rt,override:Vt,Events:ai,on:Ii,liveQuery:function(e){let t,n=!1;const r=new Co((r=>{const i=hn(e);let o=!1,s={},a={};const l={get closed(){return o},unsubscribe:()=>{o=!0,Ii.storagemutated.unsubscribe(d)}};r.start&&r.start(l);let c=!1,h=!1;function u(){return Mt(a).some((e=>s[e]&&function(e,t){const n=yo(t);let r=n.next();if(r.done)return!1;let i=r.value;const o=yo(e);let s=o.next(i.from),a=s.value;for(;!r.done&&!s.done;){if(ki(a.from,i.to)<=0&&ki(a.to,i.from)>=0)return!0;ki(i.from,a.from)<0?i=(r=n.next(a.from)).value:a=(s=o.next(i.from)).value}return!1}(s[e],a[e])))}const d=e=>{So(s,e),u()&&f()},f=()=>{if(c||o)return;s={};const p={},g=function(t){i&&Mr();const n=()=>Er(e,{subscr:t,trans:null}),r=nr.trans?Br(nr.transless,n):n();return i&&r.then(Tr,Tr),r}(p);h||(Ii(Oi,d),h=!0),c=!0,Promise.resolve(g).then((e=>{n=!0,t=e,c=!1,o||(u()?f():(s={},a=p,r.next&&r.next(e)))}),(e=>{c=!1,n=!1,r.error&&r.error(e),l.unsubscribe()}))};return f(),l}));return r.hasValue=()=>n,r.getValue=()=>t,r},extendObservabilitySet:So,getByKeyPath:Xt,setByKeyPath:Zt,delByKeyPath:function(e,t){"string"==typeof t?Zt(e,t,void 0):"length"in t&&[].map.call(t,(function(t){Zt(e,t,void 0)}))},shallowClone:Gt,deepClone:tn,getObjectDiff:ho,cmp:ki,asap:$t,minKey:Yr,addons:[],connections:Gr,errnames:xn,dependencies:jo,semVer:Ur,version:Ur.split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))})),Eo.maxKey=zi(Eo.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(Ii(Oi,(e=>{if(!To){let t;qr?(t=document.createEvent("CustomEvent"),t.initCustomEvent(Pi,!0,!0,e)):t=new CustomEvent(Pi,{detail:e}),To=!0,dispatchEvent(t),To=!1}})),addEventListener(Pi,(({detail:e})=>{To||Mo(e)})));let To=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel(Pi);"function"==typeof e.unref&&e.unref(),Ii(Oi,(t=>{To||e.postMessage(t)})),e.onmessage=e=>{e.data&&Mo(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){Ii(Oi,(e=>{try{To||("undefined"!=typeof localStorage&&localStorage.setItem(Pi,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:Pi,changedParts:e}))))}catch(t){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(e=>{if(e.key===Pi){const t=JSON.parse(e.newValue);t&&Mo(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&e.type===Pi&&Mo(e.changedParts)}))}sr.rejectionMapper=function(e,t){if(!e||e instanceof Ln||e instanceof TypeError||e instanceof SyntaxError||!e.name||!jn[e.name])return e;var n=new jn[e.name](t||e.message,e);return"stack"in e&&Wt(n,"stack",{get:function(){return this.inner.stack}}),n},dn(un,Qr);const Ao="WorkSpaceDrawType",Oo="WorkSpaceClipType",Po="WorkSpaceSafeType",Io="WorkSpaceMaskType",Ro="WorkSpaceLineType",Bo=[Ao,Oo,Po,Io,Ro],Wo=[Oo,Po,Io,Ro],Ho="YFT_DISCARD_DB",zo={selectable:!1,transparentCorners:!1,evented:!1,excludeFromExport:!0,hasControls:!1,hasBorders:!1,perPixelTargetFind:!1,lockMovementX:!0,lockMovementY:!0,lockRotation:!0,lockScalingX:!0,lockScalingY:!0,lockUniScaling:!0,hoverCursor:"default",name:"YFT-DRAW"},No=["id","name","layer","isShow","editable","color","axis","mask","padding","cropKey","cropPath","cropSize","fill","selectable","evented","fillType","fillURL","fillRepeat","lockMovementX","lockMovementY","objectCaching","transparentCorners","codeOption","codeContent","background","hasBorders","originSrc","radius","curvature","effect","reverse","startStyle","endStyle","effects","mask","originSrc","originWidth","originHeight","globalCompositeOperation"],Do={rx:0,ry:0,id:"WorkSpaceDrawType",name:"rect",fill:"#fff",selectable:!1,evented:!1,lockMovementX:!1,lockMovementY:!1,objectCaching:!0,transparentCorners:!1,hasBorders:!0,type:"Rect",version:"6.0.0-beta9",originX:"left",originY:"top",left:0,top:0,width:1070.5512,height:645.3543,stroke:"rgba(255,255,255,1)",strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",globalCompositeOperation:"source-over",skewX:0,skewY:0},Fo=St({id:"fabricStore",state:()=>({wrapperRef:null,canvasRef:null,zoom:1,clip:2,safe:5,round:0,diagonal:18,opacity:1,showClip:!1,showSafe:!1,isDragging:!1,isDrawing:!1,isTexting:!1,isCropping:!1,isCtrlKey:!1,isModifed:!1,isChecked:!1,verticalLines:[],horizontalLines:[],elementCoords:[],elementHover:"",scalePercentage:80}),getters:{},actions:{getWidth(){var e;return(null==(e=this.wrapperRef)?void 0:e.offsetWidth)||window.innerWidth-420},getHeight(){var e;return(null==(e=this.wrapperRef)?void 0:e.offsetHeight)||window.innerHeight-40},setCanvasPercentage(e){this.scalePercentage=e},setIsDraggingState(e){this.isDragging=e}}});let Vo=e=>crypto.getRandomValues(new Uint8Array(e)),Uo=(e,t=21)=>((e,t,n)=>{let r=(2<{let s="";for(;;){let t=n(i),a=i;for(;a--;)if(s+=e[t[a]&r]||"",s.length===o)return s}}})(e,t,Vo),$o=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"");const Yo=[{label:"Arial",value:"Arial"},{label:"微软雅黑",value:"Microsoft Yahei"},{label:"宋体",value:"SimSun"},{label:"黑体",value:"SimHei"},{label:"楷体",value:"KaiTi"},{label:"新宋体",value:"NSimSun"},{label:"仿宋",value:"FangSong"},{label:"苹方",value:"PingFang SC"},{label:"华文黑体",value:"STHeiti"},{label:"华文楷体",value:"STKaiti"},{label:"华文宋体",value:"STSong"},{label:"华文仿宋",value:"STFangSong"},{label:"华文中宋",value:"STZhongSong"},{label:"华文琥珀",value:"STHupo"},{label:"华文新魏",value:"STXinwei"},{label:"华文隶书",value:"STLiti"},{label:"华文行楷",value:"STXingkai"},{label:"冬青黑体",value:"Hiragino Sans GB"},{label:"兰亭黑",value:"Lantinghei SC"},{label:"偏偏体",value:"Hanzipen SC"},{label:"手札体",value:"Hannotate SC"},{label:"宋体",value:"Songti SC"},{label:"娃娃体",value:"Wawati SC"},{label:"行楷",value:"Xingkai SC"},{label:"圆体",value:"Yuanti SC"},{label:"华文细黑",value:"STXihei"},{label:"幼圆",value:"YouYuan"},{label:"隶书",value:"LiSu"}],Xo=[{label:"仓耳小丸子",value:"仓耳小丸子"},{label:"优设标题黑",value:"优设标题黑"},{label:"峰广明锐体",value:"峰广明锐体"},{label:"摄图摩登小方体",value:"摄图摩登小方体"},{label:"站酷快乐体",value:"站酷快乐体"},{label:"字制区喜脉体",value:"字制区喜脉体"},{label:"素材集市康康体",value:"素材集市康康体"},{label:"素材集市酷方体",value:"素材集市酷方体"},{label:"途牛类圆体",value:"途牛类圆体"},{label:"锐字真言体",value:"锐字真言体"},{label:"得意黑",value:"得意黑"},{label:"xuminY",value:"xuminY"}],Zo=[{label:"纵横比(方形)",children:[{key:"1:1",ratio:1}]},{label:"纵横比(纵向)",children:[{key:"2:3",ratio:1.5},{key:"3:4",ratio:4/3},{key:"3:5",ratio:5/3},{key:"4:5",ratio:5/4}]},{label:"纵横比(横向)",children:[{key:"3:2",ratio:2/3},{key:"4:3",ratio:3/4},{key:"5:3",ratio:.6},{key:"5:4",ratio:.8}]},{children:[{key:"16:9",ratio:9/16},{key:"16:10",ratio:.625}]}],Go={rect:{name:"矩形",type:"rect",radius:"0",style:"",createPath:(e,t)=>`M ${-e/2} ${-t/2} L ${e/2} ${-t/2} L ${e/2} ${t/2} L ${e/2} ${t/2} L ${-e/2} ${t/2} Z`},rect2:{name:"矩形2",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:(e,t)=>`M ${-e/2} ${-t/2} L ${.3*e} ${-t/2} L ${e/2} ${.3*-t} L ${e/2} ${t/2} L ${-e/2} ${t/2} Z`},rect3:{name:"矩形3",type:"polygon",style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:(e,t)=>`M ${-e/2} ${-t/2} L ${.3*e} ${-t/2} L ${e/2} ${.3*-t} L ${e/2} ${t/2} L ${.3*-e} ${t/2} L ${-e/2} ${.3*t} Z`},roundRect:{name:"圆角矩形",type:"rect",radius:"10px",style:"inset(0 0 0 0 round 10px 10px 10px 10px)",createPath:(e,t,n=50)=>`M ${-e/2+n} ${-t/2}\n Q ${-e/2} ${-t/2} ${-e/2} ${-t/2+n}\n L ${-e/2} ${t/2-n}\n Q ${-e/2} ${t/2} ${-e/2+n} ${t/2}\n L ${e/2-n} ${t/2}\n Q ${e/2} ${t/2} ${e/2} ${t/2-n}\n L ${e/2} ${-t/2+n}\n Q ${e/2} ${-t/2} ${e/2-n} ${-t/2}\n L ${-e/2+n} ${-t/2}\n Z`},ellipse:{name:"圆形",type:"ellipse",style:"ellipse(50% 50% at 50% 50%)",createPath:(e,t,n=100)=>{const r=Math.min(e,t);return`M ${r/2} 0\n A ${r/2} ${r/2} 0 1 0 ${-r/2} 0\n A ${r/2} ${r/2} 0 1 0 ${r/2} 0\n Z`}},triangle:{name:"三角形",type:"polygon",style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M 0 ${-t/2} L ${-e/2} ${t/2} L ${e/2} ${t/2} Z`},triangle2:{name:"三角形2",type:"polygon",style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:(e,t)=>`M 0 ${t/2} L ${-e/2} ${-t/2} L ${e/2} ${-t/2} Z`},triangle3:{name:"三角形3",type:"polygon",style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:(e,t)=>`M ${-e/2} ${-t/2} L ${-e/2} ${t/2} L ${e/2} ${t/2} Z`},rhombus:{name:"菱形",type:"polygon",style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:(e,t)=>`M 0 ${-t/2} L ${e/2} 0 L 0 ${t/2} L ${-e/2} 0 Z`},pentagon:{name:"五边形",type:"polygon",style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:(e,t)=>`M 0 ${-t/2} L ${e/2} ${-.12*t} L ${.32*e} ${t/2} L ${-.32*e} ${t/2} L ${-e/2} ${-.12*t} Z`},hexagon:{name:"六边形",type:"polygon",style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:(e,t)=>`M ${.3*-e} ${-t/2} L ${.3*e} ${-t/2} L ${e/2} 0 L ${.3*e} ${t/2} L ${.3*-e} ${t/2} L ${-e/2} 0 Z`},heptagon:{name:"七边形",type:"polygon",style:"polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)",createPath:(e,t)=>`M 0 ${-t/2} L ${.4*e} ${.3*-t} L ${e/2} ${.1*t} L ${.25*e} ${t/2} L ${.25*-e} ${t/2} L ${.5*-e} ${.1*t} L ${.4*-e} ${.3*-t} Z`},octagon:{name:"八边形",type:"polygon",style:"polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)",createPath:(e,t)=>`M ${.2*-e} ${.5*-t} L ${.2*e} ${.5*-t} L ${.5*e} ${.2*-t} L ${.5*e} ${.2*t} L ${.2*e} ${.5*t} L ${.2*-e} ${.5*t} L ${.5*-e} ${.2*t} L ${.5*-e} ${.2*-t} Z`},chevron:{name:"V形",type:"polygon",style:"polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)",createPath:(e,t)=>`M ${.25*e} ${.5*-t} L ${.5*e} 0 L ${.25*e} ${.5*t} L ${.5*-e} ${.5*t} L ${.25*-e} 0 L ${.5*-e} ${.5*-t} Z`},point:{name:"点",type:"polygon",style:"polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)",createPath:(e,t)=>`M ${.5*-e} ${.5*-t} L ${.25*e} ${.5*-t} L ${.5*e} 0 L ${.25*e} ${.5*t} L ${.5*-e} ${.5*t} Z`},arrow:{name:"箭头",type:"polygon",style:"polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)",createPath:(e,t)=>`M ${.5*-e} ${.3*-t} L ${.1*e} ${.3*-t} L ${.1*e} ${.5*-t} L ${.5*e} 0 L ${.1*e} ${.5*t} L ${.1*e} ${.3*t} L ${.5*-e} ${.3*t} Z`},parallelogram:{name:"平行四边形",type:"polygon",style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:(e,t)=>`M ${.2*-e} ${.5*-t} L ${.5*e} ${.5*-t} L ${.2*e} ${.5*t} L ${.5*-e} ${.5*t} Z`},parallelogram2:{name:"平行四边形2",type:"polygon",style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:(e,t)=>`M ${.2*-e} ${.5*t} L ${.5*e} ${.5*t} L ${.2*e} ${.5*-t} L ${.5*-e} ${.5*-t} Z`},trapezoid:{name:"梯形",type:"polygon",style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:(e,t)=>`M ${.25*-e} ${.5*-t} L ${.25*e} ${.5*-t} L ${.5*e} ${.5*t} L ${.5*-e} ${.5*t} Z`},trapezoid2:{name:"梯形2",type:"polygon",style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:(e,t)=>`M ${.5*-e} ${.5*-t} L ${.5*e} ${.5*-t} L ${.25*e} ${.5*t} L ${.25*-e} ${.5*t} Z`}},qo=[{name:"escheresque",url:new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAdCAMAAADiia4GAAAAJ1BMVEXb29vj4+Pm5ubk5OTd3d3g4ODc3Nzh4eHl5eXe3t7i4uLf3t7f399+XFm3AAABH0lEQVR42nXUCw6DIBAE0EEUFvT+5y3utJ3wM9FUebKAQ4Fw/I944kopt1/BH+eULpxRIEDcMkrk1XksyMbrggfvlzVyRc3eL2uEkduNm50QgC+rrecZpV0FUgM6CvLAk0qOR2htIy9W8NgC24PWNvHjqCnVSfPhih92ofQFrOCyY8V5f/ootUQnm2f+E3DBd0G15aqvke25Zmea955roYs+w8BZWBnwew5IKXjvyZmu9xQICioz9p7kniBOLS545NRdNf5wTt/k2sCNOf6uwAOOSmWt46YhcoY5dgFxJh7QxShiCMjE+xiR6/NPXFEQV7gmrs0qroBMXDESZ0A2XICc227LtQWda2g7rv8hVE18y7V0YFD05DbxFpSur1g+eZYPS/as5GIAAAAASUVORK5CYII=",self.location).href},{name:"greyfloral",url:new URL(""+new URL("greyfloral-2dfccd8c.png",import.meta.url).href,self.location).href},{name:"honey_im_subtle",url:new URL(""+new URL("honey_im_subtle-41108903.png",import.meta.url).href,self.location).href},{name:"nasty_fabric",url:new URL(""+new URL("nasty_fabric-c74ad35f.png",import.meta.url).href,self.location).href},{name:"retina_wood",url:new URL(""+new URL("retina_wood-9c41b0a6.png",import.meta.url).href,self.location).href}],Ko="Grayscale",Jo=[0,-1,0,-1,5,-1,0,-1,0],Qo=[1,1,1,1,.7,-1,-1,-1,-1],es=[{id:0,name:"背景",type:"backgrounds",category:[],total:[]},{id:1,name:"自然",type:"nature",category:[],total:[]},{id:2,name:"科学",type:"science",category:[],total:[]},{id:3,name:"教育",type:"education",category:[],total:[]},{id:4,name:"情感",type:"feelings",category:[],total:[]},{id:5,name:"健康",type:"health",category:[],total:[]},{id:6,name:"场所",type:"places",category:[],total:[]},{id:7,name:"动物",type:"animals",category:[],total:[]},{id:8,name:"工业",type:"industry",category:[],total:[]},{id:9,name:"计算机",type:"computer",category:[],total:[]},{id:10,name:"食品",type:"food",category:[],total:[]},{id:11,name:"体育",type:"sports",category:[],total:[]},{id:12,name:"交通",type:"transportation",category:[],total:[]},{id:13,name:"旅游",type:"travel",category:[],total:[]},{id:14,name:"建筑",type:"buildings",category:[],total:[]},{id:15,name:"商业",type:"business",category:[],total:[]},{id:16,name:"时尚",type:"fashion",category:[],total:[]},{id:17,name:"人物",type:"people",category:[],total:[]}],ts=[{id:"universal",key:"universal",name:"通用"},{id:"people",key:"people",name:"人像"}],ns=[{id:"source-over",key:"source-over",name:"正常"},{id:"screen",key:"screen",name:"滤色"},{id:"multiply",key:"multiply",name:"正片叠加"},{id:"darken",key:"darken",name:"变暗"},{id:"lighten",key:"lighten",name:"变亮"},{id:"color-dodge",key:"color-dodge",name:"颜色减淡"},{id:"color-burn",key:"color-burn",name:"颜色加深"},{id:"hard-light",key:"hard-light",name:"强光"},{id:"soft-light",key:"soft-light",name:"柔光"},{id:"difference",key:"difference",name:"差值"},{id:"exclusion",key:"exclusion",name:"排除"},{id:"hue",key:"hue",name:"色相"},{id:"saturation",key:"saturation",name:"饱和度"},{id:"color",key:"color",name:"颜色"},{id:"luminosity",key:"luminosity",name:"明度"}];function rs(e){return d(this,null,(function*(){let t;try{t=(yield window.queryLocalFonts()).filter((t=>t.family===e))[0]}catch(FM){}finally{return t}}))}var is=(e=>(e.TEXTBOX="textbox",e.TEXT="text",e.ITEXT="i-text",e.ARCTEXT="arctext",e.VERTICALTEXT="verticaltext",e.IMAGE="image",e.SVGIMAGE="svgimage",e.CROPIMAGE="cropimage",e.MASK="mask",e.PATH="path",e.RECT="rect",e.LINE="line",e.ARROW="arrow",e.POLYLINE="polyline",e.ELLIPSE="ellipse",e.QRCODE="qrcode",e.BARCODE="barcode",e.GROUP="group",e.ACTIVE="activeselection",e.CIRCLE="circle",e.REFERENCELINE="referenceline",e.DOT="dot",e))(is||{});const os=["group","activeselection","itext","text","textbo","image"];var ss=(e=>(e.ROUND_RECT="roundRect",e.ROUND_RECT_DIAGONAL="roundRectDiagonal",e.ROUND_RECT_SINGLE="roundRectSingle",e.ROUND_RECT_SAMESIDE="roundRectSameSide",e.CUT_RECT_DIAGONAL="cutRectDiagonal",e.CUT_RECT_SINGLE="cutRectSingle",e.CUT_RECT_SAMESIDE="cutRectSameSide",e.MESSAGE="message",e.ROUND_MESSAGE="roundMessage",e.L="L",e.RING_RECT="ringRect",e.PLUS="plus",e.TRIANGLE="triangle",e.PARALLELOGRAM_LEFT="parallelogramLeft",e.PARALLELOGRAM_RIGHT="parallelogramRight",e.TRAPEZOID="trapezoid",e.BULLET="bullet",e.INDICATOR="indicator",e))(ss||{}),as=(e=>(e.ELEMENT_CANVAS="design",e.ELEMENT_TEXT="text",e.ELEMENT_SVG="path",e.ELEMENT_IMAGE="image",e.ELEMENT_CODE="code",e.ELEMENT_STYLE="style",e.ELEMENT_POSITION="position",e.ELEMENT_LAYER="layer",e.ELEMENT_EFFECT="effect",e))(as||{}),ls=(e=>(e.LEFT="left",e.RIGHT="right",e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e.CENTER="center",e.TOP="top",e.BOTTOM="bottom",e))(ls||{}),cs=(e=>(e.UP="left",e.DOWN="right",e.TOP="top",e.BOTTOM="bottom",e))(cs||{});function hs(e){return!!_()&&(x(e),!0)}function us(e){return null!=M(e)}function ds(e){return"function"==typeof e?e():M(e)}const fs="undefined"!=typeof window&&"undefined"!=typeof document;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope);const ps=e=>null!=e,gs=Object.prototype.toString,ks=e=>"[object Object]"===gs.call(e),ms=()=>{};function vs(e,t=!0,n){const r=function(e){return e||A()}();r?T(e,n):t?e():C(e)}function ys(e){var t;const n=ds(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Ls=fs?window:void 0;function ws(...e){let t,n,r,i;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,i]=e,t=Ls):[t,n,r,i]=e,!t)return ms;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach((e=>e())),o.length=0},a=k((()=>[ys(t),ds(i)]),(([e,t])=>{if(s(),!e)return;const i=ks(t)?l({},t):t;o.push(...n.flatMap((t=>r.map((n=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,t,n,i))))))}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return hs(c),c}function bs(e={}){var t;const{window:n=Ls,deep:r=!0}=e,i=null!=(t=e.document)?t:null==n?void 0:n.document,o=p(),s=()=>{o.value=(()=>{var e;let t=null==i?void 0:i.activeElement;if(r)for(;null==t?void 0:t.shadowRoot;)t=null==(e=null==t?void 0:t.shadowRoot)?void 0:e.activeElement;return t})()};return n&&(ws(n,"blur",(e=>{null===e.relatedTarget&&s()}),!0),ws(n,"focus",s,!0)),s(),o}function _s(e){const t=function(){const e=p(!1),t=A();return t&&T((()=>{e.value=!0}),t),e}();return E((()=>(t.value,Boolean(e()))))}function xs(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:o=!0}=t,s=p(0),a=p(0),l=p(0),c=p(0),u=p(0),d=p(0),f=p(0),g=p(0);function m(){const t=ys(e);if(!t)return void(n&&(s.value=0,a.value=0,l.value=0,c.value=0,u.value=0,d.value=0,f.value=0,g.value=0));const r=t.getBoundingClientRect();s.value=r.height,a.value=r.bottom,l.value=r.left,c.value=r.right,u.value=r.top,d.value=r.width,f.value=r.x,g.value=r.y}return function(e,t,n={}){const r=n,{window:i=Ls}=r,o=h(r,["window"]);let s;const a=_s((()=>i&&"ResizeObserver"in i)),l=()=>{s&&(s.disconnect(),s=void 0)},c=E((()=>Array.isArray(e)?e.map((e=>ys(e))):[ys(e)])),u=k(c,(e=>{if(l(),a.value&&i){s=new ResizeObserver(t);for(const t of e)t&&s.observe(t,o)}}),{immediate:!0,flush:"post"}),d=()=>{l(),u()};hs(d)}(e,m),k((()=>ys(e)),(e=>!e&&m())),function(e,t,n={}){const r=n,{window:i=Ls}=r,o=h(r,["window"]);let s;const a=_s((()=>i&&"MutationObserver"in i)),l=()=>{s&&(s.disconnect(),s=void 0)},c=E((()=>{const t=ds(e),n=(Array.isArray(t)?t:[t]).map(ys).filter(ps);return new Set(n)})),u=k((()=>c.value),(e=>{l(),a.value&&i&&e.size&&(s=new MutationObserver(t),e.forEach((e=>s.observe(e,o))))}),{immediate:!0,flush:"post"}),d=()=>{l(),u()};hs(d)}(e,m,{attributeFilter:["style","class"]}),i&&ws("scroll",m,{capture:!0,passive:!0}),r&&ws("resize",m,{passive:!0}),vs((()=>{o&&m()})),{height:s,bottom:a,left:l,right:c,top:u,width:d,x:f,y:g,update:m}}const Cs={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Ss(e,t,n,r={}){var i,o,s;const{clone:a=!1,passive:l=!1,eventName:c,deep:h=!1,defaultValue:u,shouldEmit:d}=r,f=A(),g=n||(null==f?void 0:f.emit)||(null==(i=null==f?void 0:f.$emit)?void 0:i.bind(f))||(null==(s=null==(o=null==f?void 0:f.proxy)?void 0:o.$emit)?void 0:s.bind(null==f?void 0:f.proxy));let m=c;t||(t="modelValue"),m=m||`update:${t.toString()}`;const v=e=>{return a?"function"==typeof a?a(e):(t=e,JSON.parse(JSON.stringify(t))):e;var t},y=()=>void 0!==e[t]?v(e[t]):u,L=e=>{d?d(e)&&g(m,e):g(m,e)};if(l){const n=y(),r=p(n);let i=!1;return k((()=>e[t]),(e=>{i||(i=!0,r.value=v(e),C((()=>i=!1)))})),k(r,(n=>{i||n===e[t]&&!h||L(n)}),{deep:h}),r}return E({get:()=>y(),set(e){L(e)}})}class js extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function Es(e){if((t=e)&&"object"==typeof t&&"function"==typeof t[Symbol.iterator]){const t=[];for(const n of e)if(n)try{n.dispose()}catch(FM){t.push(FM)}if(1===t.length)throw t[0];if(t.length>1)throw new js(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e;var t}class Ms{constructor(){u(this,"_toDispose",new Set),u(this,"_isDisposed",!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{Es(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed||this._toDispose.add(e),e}}u(Ms,"DISABLE_DISPOSED_WARNING",!1);class Ts{constructor(){u(this,"_store",new Ms)}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class As extends UIEvent{constructor(e,t){super(e,t),u(this,"touches"),u(this,"targetTouches"),u(this,"changedTouches"),this.touches=t.touches,this.targetTouches=t.targetTouches,this.changedTouches=t.changedTouches}}const Os=(e={})=>{const{onSwipe:t,onSwipeEnd:n,onSwipeStart:r}=e,i=m({x:0,y:0}),o=m({x:0,y:0}),s=p(!1),a=p(!1),l=E((()=>o.x-i.x)),c=E((()=>o.y-i.y)),h=e=>{o.x=e.x,o.y=e.y},u=function(e,t){const[n]=Xa();n.on(e,t);const r=()=>{n.off(e,t)};return hs(r),r}({"mouse:down":e=>{var t;e.e instanceof As&&1!==e.e.touches.length||(a.value=!0,t=e.absolutePointer,i.x=t.x,i.y=t.y,h(e.absolutePointer),null==r||r(e))},"mouse:move":e=>{a.value&&(e.e instanceof As&&1!==e.e.touches.length||(h(e.absolutePointer),s.value=!0,null==t||t(e)))},"mouse:up":e=>{s.value&&(null==n||n(e)),a.value=!1,s.value=!1}});return hs(u),{isSwiping:s,coordsStart:i,coordsEnd:o,lengthX:l,lengthY:c,stop:u}};class Ps extends Ts{constructor(e){super(),u(this,"options",{move:{defaultCursor:"default",skipTargetFind:!1,selection:!0},handMove:{defaultCursor:"grab",skipTargetFind:!0,selection:!1},shape:{defaultCursor:"crosshair",skipTargetFind:!0,selection:!1}}),u(this,"_handMoveActivate",!1),this.canvas=e,this.initHandMove()}get handMoveActivate(){return this._handMoveActivate}set handMoveActivate(e){this._handMoveActivate=e}applyOption(e){const{defaultCursor:t,skipTargetFind:n,selection:r}=this.options[e];this.canvas.defaultCursor=t,this.canvas.setCursor(t),this.canvas.skipTargetFind=n,this.canvas.selection=r}initHandMove(){const e=this.canvas;let t=e.viewportTransform;const{spaceKeyState:n}=jt(ll()),{lengthX:r,lengthY:i,isSwiping:o}=Os({onSwipeStart:r=>{(2===r.button||n.value&&1===r.button)&&(o.value=!0,t=e.viewportTransform,this.handMoveActivate=!0)},onSwipe:()=>{this.handMoveActivate&&(e.setCursor("grab"),requestAnimationFrame((()=>{const n=new he(r.value,i.value).scalarDivide(e.getZoom()).transform(t).scalarMultiply(-1);e.absolutePan(n)})))},onSwipeEnd:()=>{this.applyOption(n.value?"handMove":"move"),this.handMoveActivate&&(n.value||(this.handMoveActivate=!1))}}),s=bs(),a=E((()=>{var e,t;return"INPUT"!==(null==(e=s.value)?void 0:e.tagName)&&"TEXTAREA"!==(null==(t=s.value)?void 0:t.tagName)}));k(E((()=>[n.value,a.value].every((e=>ds(e))))),(e=>{this.applyOption(e?"handMove":"move"),o.value||(this.handMoveActivate=e)}))}}const Is=e=>!!e&&Array.isArray(e._objects),Rs=e=>e instanceof ue,Bs=e=>!!e&&e.isType("Text","IText","Textbox","ArcText"),Ws=e=>e instanceof de,Hs=e=>Object.keys(e);class zs extends Ts{constructor(e){super(),u(this,"canvasEvents"),u(this,"aligningLineMargin",10),u(this,"aligningLineWidth",1),u(this,"aligningLineColor","#F68066"),u(this,"verticalLines",[]),u(this,"horizontalLines",[]),u(this,"activeObj"),u(this,"ignoreObjTypes",[]),u(this,"pickObjTypes",[]),u(this,"dirty",!1),this.canvas=e;this.canvasEvents={"before:render":this.clearGuideline.bind(this),"after:render":this.drawGuideLines.bind(this),"object:moving":this.objectMoving.bind(this),"mouse:up":()=>{(this.horizontalLines.length||this.verticalLines.length)&&(this.clearGuideline(),this.clearStretLine())}},e.on(this.canvasEvents)}objectMoving({target:e}){this.clearStretLine();if(!this.canvas._currentTransform)return;this.activeObj=e;const t=this.canvas.getActiveObjects(),n=[],r=i=>{const o=i.getObjects().filter((n=>this.ignoreObjTypes.length?!this.ignoreObjTypes.some((e=>n.get(e.key)===e.value)):this.pickObjTypes.length?this.pickObjTypes.some((e=>n.get(e.key)===e.value)):!t.includes(n)&&(!!n.visible&&(Rs(n)?(r(n),!1):!Is(n)||!e.group||n!==e.group||(r(n),!1)))));n.push(...o)};if(Rs(e)){const t=new Set;e.forEachObject((e=>{const n=e.getParent();n&&t.add(n)})),t.forEach((e=>{Ws(e)&&n.push(e),r(e)}))}else{const t=e.getParent();Ws(t)&&n.push(t),r(t)}this.traversAllObjects(e,n)}clearStretLine(){this.verticalLines.length=this.horizontalLines.length=0}getObjDraggingObjCoords(e){const t=this.getCoords(e),n=this.calcCenterPointByACoords(t).subtract(e.getCenterPoint()),r=Hs(t).map((e=>t[e].subtract(n)));return{tl:r[0],tr:r[1],br:r[2],bl:r[3],c:e.getCenterPoint()}}getObjMaxWidthHeightByCoords(e){const{c:t,tl:n,tr:r}=e;return{objHeight:2*Math.max(Math.abs(t.y-n.y),Math.abs(t.y-r.y)),objWidth:2*Math.max(Math.abs(t.x-n.x),Math.abs(t.x-r.x))}}omitCoords(e,t){const n=e,r="vertical"===t?"x":"y";return Hs(e).forEach((t=>{e[t][r]n.tl[r]&&(n[t]=e[t])})),n}isInRange(e,t){return Math.abs(Math.round(e)-Math.round(t))<=this.aligningLineMargin/this.canvas.getZoom()}getCoords(e){const[t,n,r,i]=e.getCoords(!0);return{tl:t,tr:n,br:r,bl:i}}calcCenterPointByACoords(e){return new he((e.tl.x+e.br.x)/2,(e.tl.y+e.br.y)/2)}traversAllObjects(e,t){const n=this.getObjDraggingObjCoords(e),r=new Set,i=new Set;for(let o=t.length;o--;){const s=c(l({},this.getCoords(t[o])),{c:t[o].getCenterPoint()}),{objHeight:a,objWidth:h}=this.getObjMaxWidthHeightByCoords(s);Hs(n).forEach((r=>{const a=0!==t[o].angle?this.omitCoords(s,"horizontal"):s;Hs(a).forEach((t=>{if(this.isInRange(n[r].y,s[t].y)){const o=s[t].y,a=n[r].y-o;i.add(n.c.y-a);const u=this.getCoords(e),{x1:d,x2:f}=function(e,t){let n,i;return"c"===e?(n=Math.min(s.c.x-h/2,t[r].x),i=Math.max(s.c.x+h/2,t[r].x)):(n=Math.min(s[e].x,t[r].x),i=Math.max(s[e].x,t[r].x)),{x1:n,x2:i}}(t,c(l({},u),{c:this.calcCenterPointByACoords(u)}));this.horizontalLines.push({y:o,x1:d,x2:f})}}))})),Hs(n).forEach((i=>{const h=0!==t[o].angle?this.omitCoords(s,"vertical"):s;Hs(h).forEach((t=>{if(this.isInRange(n[i].x,s[t].x)){const o=s[t].x,u=n[i].x-o;r.add(n.c.x-u);const d=this.getCoords(e),{y1:f,y2:p}=function(e,t){let n,r;return"c"===e?(n=Math.min(h.c.y-a/2,t[i].y),r=Math.max(h.c.y+a/2,t[i].y)):(n=Math.min(s[e].y,t[i].y),r=Math.max(s[e].y,t[i].y)),{y1:n,y2:r}}(t,c(l({},d),{c:this.calcCenterPointByACoords(d)}));this.verticalLines.push({x:o,y1:f,y2:p})}}))}))}this.snap({activeObject:e,draggingObjCoords:n,snapXPoints:r,snapYPoints:i})}snap({activeObject:e,draggingObjCoords:t,snapXPoints:n,snapYPoints:r}){if(0===n.size&&0===r.size)return;const i=(e,t)=>{if(0===e.size)return t;return[...e].sort(((e,n)=>Math.abs(t-e)-Math.abs(t-n)))[0]};e.setXY(new he(i(n,t.c.x),i(r,t.c.y)),"center","center")}drawSign(e,t){const n=this.canvas.getTopContext();n.strokeStyle=this.aligningLineColor,n.beginPath();n.moveTo(e-3,t-3),n.lineTo(e+3,t+3),n.moveTo(e+3,t-3),n.lineTo(e-3,t+3),n.stroke()}drawLine(e,t,n,r){const i=this.canvas.getTopContext(),o=ge.transformPoint(new he(e,t),this.canvas.viewportTransform),s=ge.transformPoint(new he(n,r),this.canvas.viewportTransform);i.save(),i.lineWidth=this.aligningLineWidth,i.strokeStyle=this.aligningLineColor,i.beginPath(),i.moveTo(o.x,o.y),i.lineTo(s.x,s.y),i.stroke(),this.drawSign(o.x,o.y),this.drawSign(s.x,s.y),i.restore(),this.dirty=!0}drawVerticalLine(e,t){Object.values(t).some((t=>Math.abs(t.x-e.x)<1e-4))&&this.drawLine(e.x,Math.min(e.y1,e.y2),e.x,Math.max(e.y1,e.y2))}drawHorizontalLine(e,t){Object.values(t).some((t=>Math.abs(t.y-e.y)<1e-4))&&this.drawLine(Math.min(e.x1,e.x2),e.y,Math.max(e.x1,e.x2),e.y)}drawGuideLines(e){if(!e.ctx||!this.verticalLines.length&&!this.horizontalLines.length||!this.activeObj)return;const t=this.getObjDraggingObjCoords(this.activeObj);for(let n=this.verticalLines.length;n--;)this.drawVerticalLine(this.verticalLines[n],t);for(let n=this.horizontalLines.length;n--;)this.drawHorizontalLine(this.horizontalLines[n],t)}clearGuideline(){this.dirty&&(this.dirty=!1,this.canvas.clearContext(this.canvas.getTopContext()))}dispose(){super.dispose(),this.canvas.off(this.canvasEvents)}}class Ns{constructor(e,t,n,r){u(this,"_handler"),u(this,"_node"),u(this,"_type"),u(this,"_options"),this._node=e,this._type=t,this._handler=n,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}class Ds extends Ts{constructor(e){var t,n;super(),u(this,"canvasEvents"),u(this,"lineWidth",2),u(this,"hoveredTarget"),this.canvas=e,this.canvasEvents={"mouse:out":this.drawBorder.bind(this),"mouse:over":this.clearBorder.bind(this)},e.on(this.canvasEvents),this._register((t=this.canvas.upperCanvasEl,new Ns(t,"mouseout",(()=>{this.canvas.contextTopDirty&&this.hoveredTarget&&(this.clearContextTop(this.hoveredTarget.group||this.hoveredTarget),this.hoveredTarget=void 0)}),n))),this.initWatch()}clearContextTop(e,t=!1){const n=this.canvas.contextTop;n.save(),n.transform(...this.canvas.viewportTransform),e.transform(n);const{strokeWidth:r,scaleX:i,scaleY:o,strokeUniform:s}=e,a=this.canvas.getZoom(),l=e.width+4/a+(s?r/i:r),c=e.height+4/a+(s?r/o:r);return n.clearRect(-l/2,-c/2,l,c),t||n.restore(),n}clearBorder(e){const t=e.target;this.hoveredTarget=void 0,t&&t!==this.canvas._activeObject&&this.clearBorderByObject(t)}clearBorderByObject(e){this.canvas.contextTopDirty&&this.clearContextTop(e)}drawBorder(e){const t=e.target;t&&t!==this.canvas._activeObject&&this.drawBorderByObject(t)}drawBorderByObject(e){this.hoveredTarget=e;const t=this.clearContextTop(e,!0);if(!t)return;const n=Ie(e);if(n instanceof ke&&n.isType("Textbox"))return void this.showUnderline(t,n);if(n instanceof me&&n.isType("IText"))return void this.showUnderline(t,n);(Is(n)||n.isType("ArcText"))&&(n._render=ve.prototype._render);const{strokeWidth:r,strokeUniform:i}=n;let{width:o,height:s}=n;o+=i?r/n.scaleX:r,s+=i?r/n.scaleY:r;const a=n.getTotalObjectScaling(),l=Math.min(this.lineWidth,o*a.x,s*a.y);o-=l/a.x,s-=l/a.y,n.set({width:o,height:s,stroke:"rgb(60,126,255)",strokeWidth:l,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4}),n._renderPaintInOrder=()=>{t.save();const e=n.getTotalObjectScaling();t.scale(1/e.x,1/e.y),n._setLineDash(t,n.strokeDashArray),n._setStrokeStyles(t,n),t.stroke(),t.restore()},n._render(t),t.restore(),this.canvas.contextTopDirty=!0}showUnderline(e,t){t.underline=!0,t.fill="rgb(60,126,255)",t._renderTextDecoration(e,"underline"),t._drawClipPath(e,t.clipPath),e.restore(),this.canvas.contextTopDirty=!0}initWatch(){const e=Ga(),{hoveredObject:t,leavedObject:n}=jt(e);E((()=>{t.value?this.drawBorderByObject(t.value):this.clearBorderByObject(n.value)}))}dispose(){super.dispose(),this.canvas.off(this.canvasEvents)}}class Fs extends Ts{constructor(e){super(),u(this,"edgeMoveStatus",!0),u(this,"setCoords",Re((()=>{const{renderOnAddRemove:e}=this.canvas;this.canvas.renderOnAddRemove=!1,this.canvas.setViewportTransform(this.canvas.viewportTransform),this.canvas.renderOnAddRemove=e}),150)),this.canvas=e,this.initWhellScroll(),this.initEdgeMove()}initWhellScroll(){const{ctrl:e,cmd:t,shift:n}=function(e={}){const{reactive:t=!1,target:n=Ls,aliasMap:r=Cs,passive:i=!0,onEventFired:o=ms}=e,s=m(new Set),a={toJSON:()=>({}),current:s},l=t?m(a):a,c=new Set,h=new Set;function u(e,n){e in l&&(t?l[e]=n:l[e].value=n)}function d(){s.clear();for(const e of h)u(e,!1)}function f(e,t){var n,r;const i=null==(n=e.key)?void 0:n.toLowerCase(),o=[null==(r=e.code)?void 0:r.toLowerCase(),i].filter(Boolean);i&&(t?s.add(i):s.delete(i));for(const s of o)h.add(s),u(s,t);"meta"!==i||t?"function"==typeof e.getModifierState&&e.getModifierState("Meta")&&t&&[...s,...o].forEach((e=>c.add(e))):(c.forEach((e=>{s.delete(e),u(e,!1)})),c.clear())}ws(n,"keydown",(e=>(f(e,!0),o(e))),{passive:i}),ws(n,"keyup",(e=>(f(e,!1),o(e))),{passive:i}),ws("blur",d,{passive:!0}),ws("focus",d,{passive:!0});const g=new Proxy(l,{get(e,n,i){if("string"!=typeof n)return Reflect.get(e,n,i);if((n=n.toLowerCase())in r&&(n=r[n]),!(n in l))if(/[+_-]/.test(n)){const e=n.split(/[+_-]/g).map((e=>e.trim()));l[n]=E((()=>e.every((e=>ds(g[e])))))}else l[n]=p(!1);const o=Reflect.get(e,n,i);return t?ds(o):o}});return g}(),r=Fo(),{zoom:i}=jt(r),o=r=>{r.e.preventDefault(),r.e.stopPropagation();const{deltaX:o,deltaY:s,offsetX:a,offsetY:l}=r.e;if(e.value||t.value){const e=Math.abs(s)<10?2*s:s/3;let t=this.canvas.getZoom()*(1-e/200);return t>.97&&t<1.03&&(t=1),i.value=t,this.canvas.zoomToPoint(new he(a,l),t),void this.setCoords()}const c=new he;n.value?c.x=s>0?-20:20:c.y=s>0?-20:20,this.canvas.relativePan(c),this.setCoords()};var s;this.canvas.on("mouse:wheel",o),this._register((s=()=>{this.canvas.off("mouse:wheel",o)},{dispose:Pe((()=>{s()}))}))}initEdgeMove(){!function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let o=null;const s=p(!1);function a(){o&&(clearInterval(o),o=null)}function l(){s.value=!1,a()}function c(){const n=ds(t);n<=0||(s.value=!0,i&&e(),a(),o=setInterval(e,n))}r&&fs&&c(),(v(t)||"function"==typeof t)&&hs(k(t,(()=>{s.value&&fs&&c()})));hs(l)}((()=>{}),16,{immediate:!1})}judgePosition(e,t,n){let r=0,i=0;return e.xn.x&&(r|=2,i+=e.x-n.x),e.yn.y&&(r|=8,i+=e.y-n.y),[r,i]}}const Vs="rgba(0,0,0,0)",Us=30,$s=800,Ys=[{id:0,name:"mm"},{id:1,name:"px"}],Xs=[{id:0,name:"名片",disabled:!1},{id:1,name:"单页",disabled:!1},{id:2,name:"自定义",disabled:!0}],Zs=[{id:0,name:"纯色填充"},{id:1,name:"图片填充"},{id:2,name:"渐变填充"},{id:3,name:"网格填充"},{id:4,name:"形状填充"},{id:5,name:"智能填充"}],Gs=[{id:"contain",name:"缩放"},{id:"repeat",name:"拼贴"},{id:"cover",name:"铺满"}],qs=[{id:0,name:"线性渐变",value:"linear"},{id:1,name:"径向渐变",value:"radial"}],Ks=[{id:0,name:"渐变",value:"interpolateLinear"},{id:1,name:"闪烁",value:"sparkle"},{id:2,name:"阴影",value:"shadows"}];function Js(e,t){return void 0===t&&(t=15),+parseFloat(Number(e).toPrecision(t))}function Qs(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function ea(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=Qs(e);return t>0?Js(Number(e)*Math.pow(10,t)):Number(e)}function ta(e){aa&&(e>Number.MAX_SAFE_INTEGER||Number.MIN_SAFE_INTEGER)}function na(e){return function(){for(var t=[],n=0;nMath.random()*(t-e),ha=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|HarmonyOS/i.test(navigator.userAgent),ua=Math.PI/180,da=(e,t=2)=>la.round(e,t),fa=25.4,pa=20,ga=e=>new Promise((t=>{const n=document.createElement("img");n.src=e,n.style.opacity="0",document.body.appendChild(n),n.onload=()=>{const e=n.clientWidth,r=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),t({width:e,height:r})},n.onerror=()=>{n.onload=null,n.onerror=null}})),ka=e=>new Promise((t=>{const n=new FileReader;n.addEventListener("load",(()=>{t(n.result)})),n.readAsDataURL(e)})),ma=e=>new Promise((t=>{const n=new FileReader;n.addEventListener("load",(()=>{t(n.result)})),n.readAsText(e)})),va=e=>e/300*fa,ya=e=>300*e/fa;class La extends Le{constructor(e,t){const n=999999;let r="horizontal"===t.axis?[-n,0,n,0]:[0,-n,0,n];"object"==typeof e&&(r=e),"number"==typeof e&&(r="horizontal"===t.axis?[-n,e,n,e]:[e,-n,e,n]);const i="horizontal"===t.axis;t[i?"lockMovementX":"lockMovementY"]=!0,super(r,t),u(this,"axis",""),this.axis=t.axis,this.initEvent(),this.hoverCursor=i?"ns-resize":"ew-resize"}initEvent(){const e=()=>{};this.on("mousedown:before",(e=>{var t;"down"===this.activeOn&&(null==(t=this.canvas)||t.setActiveObject(this,e.e))})),this.on("moving",(e=>{var t;this.isPointOnRuler(e.e)?this.moveCursor="not-allowed":this.moveCursor=this.isHorizontal()?"ns-resize":"ew-resize",null==(t=this.canvas)||t.fire("referenceline:moving",{target:this,e:e.e})})),this.on("mouseup",(e=>{var t,n,r;this.isPointOnRuler(e.e)?null==(t=this.canvas)||t.remove(this):(this.moveCursor=this.isHorizontal()?"ns-resize":"ew-resize",this.selectable=!1,null==(n=this.canvas)||n.fire("referenceline:mouseup",{target:this,e:e.e}),null==(r=this.canvas)||r.fire("object:modified"))})),this.on("removed",(()=>{var t;this.off("removed",e),this.off("mousedown:before",e),this.off("moving",e),this.off("mouseup",e),null==(t=this.canvas)||t.fire("object:modified")}))}isHorizontal(){return 0===this.height}getBoundingRect(e,t){var n;null==(n=this.canvas)||n.bringObjectToFront(this);const r=this.isHorizontal(),i=super.getBoundingRect(e,t);return i[r?"top":"left"]+=i[r?"height":"width"]/2,i[r?"height":"width"]=0,i}isPointOnRuler(e){var t;const n=this.isHorizontal(),r=null==(t=this.canvas.ruler)?void 0:t.getPointHover(new he(e.offsetX,e.offsetY));return!!(n&&"horizontal"===r||!n&&"vertical"===r)&&r}fire(e,t){super.fire(e,t)}fromObject(e){return d(this,null,(function*(){const t=0===e.height;return e.xy=t?e.y1:e.x1,e.axis=t?"horizontal":"vertical",yield we._fromObject(e.type,e)}))}}u(La,"type","ReferenceLine"),ye.setClass(La,"ReferenceLine");class wa extends Ts{constructor(e){super(),u(this,"canvasEvents"),u(this,"lastCursor"),u(this,"workSpaceDraw"),u(this,"options"),u(this,"tempReferenceLine"),u(this,"activeOn","up"),u(this,"objectRect"),this.canvas=e,this.lastCursor=this.canvas.defaultCursor,this.options=Object.assign({ruleSize:20,fontSize:8,enabled:!ha()});const{unitMode:t}=jt(Ga());O((()=>{const e=Ys.filter((e=>e.id===t.value))[0].name;this.options=l(l({},this.options),{backgroundColor:"#fff",borderColor:"#ccc",highlightColor:"#165dff3b",textColor:"#444",unitName:e}),this.render({ctx:this.canvas.contextContainer})})),this.canvasEvents={"after:render":this.render.bind(this),"mouse:move":this.mouseMove.bind(this),"mouse:down":this.mouseDown.bind(this),"mouse:up":this.mouseUp.bind(this),"referenceline:moving":this.referenceLineMoving.bind(this),"referenceline:mouseup":this.referenceLineMouseup.bind(this)},this.enabled=this.options.enabled,e.ruler=this}getPointHover(e){return new ve({left:0,top:0,width:this.options.ruleSize,height:this.canvas.height,absolutePositioned:!0}).containsPoint(e)?"vertical":new ve({left:0,top:0,width:this.canvas.width,height:this.options.ruleSize,absolutePositioned:!0}).containsPoint(e)?"horizontal":""}mouseMove(e){if(!e.pointer)return;if(this.tempReferenceLine&&e.absolutePointer){const t={};"horizontal"===this.tempReferenceLine.axis?t.top=e.pointer.y:t.left=e.pointer.x,this.tempReferenceLine.set(c(l({},t),{visible:!0})),this.canvas.renderAll();const n=this.getCommonEventInfo(e);this.canvas.fire("object:moving",n),this.tempReferenceLine.fire("moving",n)}const t=this.getPointHover(e.absolutePointer);this.canvas.defaultCursor=this.lastCursor,t&&(this.lastCursor=this.canvas.defaultCursor,this.canvas.defaultCursor="horizontal"===t?"ns-resize":"ew-resize")}mouseDown(e){const t=this.getPointHover(e.absolutePointer);if(t&&"up"===this.activeOn){this.canvas.selection=!1,this.activeOn="down";const n="horizontal"===t?e.pointer.y:e.pointer.x;this.tempReferenceLine=new La(n,{type:"ReferenceLine",axis:t,visible:!1,name:"ReferenceLine",hasControls:!1,hasBorders:!1,stroke:"pink",fill:"pink",originX:"center",originY:"center",padding:4,globalCompositeOperation:"difference"}),this.canvas.add(this.tempReferenceLine);sl().modifedElement(),this.canvas.setActiveObject(this.tempReferenceLine),this.canvas._setupCurrentTransform(e.e,this.tempReferenceLine,!0),this.tempReferenceLine.fire("down",this.getCommonEventInfo(e))}}getCommonEventInfo(e){if(this.tempReferenceLine&&e.absolutePointer)return{e:e.e,transform:this.tempReferenceLine.get("transform"),pointer:{x:e.absolutePointer.x,y:e.absolutePointer.y},target:this.tempReferenceLine}}mouseUp(e){var t;"down"===this.activeOn&&(this.canvas.selection=!0,this.tempReferenceLine.selectable=!1,this.canvas.renderAll(),this.activeOn="up",null==(t=this.tempReferenceLine)||t.fire("up",this.getCommonEventInfo(e)),this.tempReferenceLine=void 0)}setWorkSpaceDraw(){this.workSpaceDraw=this.canvas.getObjects().filter((e=>e.id===Ao))[0]}isRectOut(e,t){return!1}referenceLineMoving(e){if(!this.workSpaceDraw)return void this.setWorkSpaceDraw();const{target:t}=e;this.isRectOut(this.workSpaceDraw,t)&&(t.moveCursor="not-allowed")}referenceLineMouseup(e){var t;if(!this.workSpaceDraw)return void this.setWorkSpaceDraw();const{target:n}=e;this.isRectOut(this.workSpaceDraw,n)&&(this.canvas.remove(n),this.canvas.setCursor(null!=(t=this.canvas.defaultCursor)?t:""))}get enabled(){return this.options.enabled}set enabled(e){this.options.enabled=e,e?(this.canvas.on(this.canvasEvents),this.render({ctx:this.canvas.contextContainer})):(this.canvas.off(this.canvasEvents),this.canvas.requestRenderAll())}getSize(){return{width:this.canvas.width,height:this.canvas.height}}render({ctx:e}){if(e!==this.canvas.contextContainer)return;const{viewportTransform:t}=this.canvas;this.calcObjectRect(),this.draw({ctx:e,isHorizontal:!0,rulerLength:this.getSize().width,startCalibration:-t[4]/t[0]}),this.draw({ctx:e,isHorizontal:!1,rulerLength:this.getSize().height,startCalibration:-t[5]/t[3]});const{borderColor:n,backgroundColor:r,ruleSize:i,textColor:o}=this.options;this.darwRect(e,{left:0,top:0,width:i,height:i,fill:r,stroke:n}),this.darwText(e,{text:this.options.unitName,left:i/2,top:i/2,align:"center",baseline:"middle",fill:o})}draw(e){const{ctx:t,isHorizontal:n,rulerLength:r,startCalibration:i}=e,o=this.canvas.getZoom(),s=this.getGap(o),a=Math.ceil(r/o),l=Math.floor(i/s)*s,c=l-i,h=this.getSize(),{textColor:u,borderColor:d,ruleSize:f,highlightColor:p}=this.options;this.darwRect(t,{left:0,top:0,width:n?h.width:f,height:n?f:h.height,fill:this.options.backgroundColor,stroke:this.options.borderColor});for(let g=0;g+c<=a;g+=s)for(let e=0;e<10;e++){const r=Math.round((c+g+s*e/10)*o),i=0===e,[a,l]=n?[r,i?0:f-8]:[i?0:f-8,r],[h,u]=n?[0,f-l]:[f-a,0];this.darwLine(t,{left:a,top:l,width:h,height:u,stroke:d})}if(this.objectRect){const e=n?"x":"y";this.objectRect[e].forEach((r=>{if(r.skip===e)return;const[s,a,l,c]=n?[(r.left-i)*o,0,r.width*o,f]:[0,(r.top-i)*o,f,r.height*o];this.darwRect(t,{left:s,top:a,width:l,height:c,fill:p})}))}for(let g=0;g+c<=a;g+=s){const e=(c+g)*o;let r=(l+g).toString();"mm"===this.options.unitName&&(r=va(l+g).toFixed(0));const[i,s,a]=n?[e+6,2.5,0]:[2.5,e-6,-90];this.darwText(t,{text:r,left:i,top:s,fill:u,angle:a})}}getGap(e){const t=[.02,.03,.05,.1,.2,.5,1,2,5];let n=0;for(;n{const n=t.getBoundingRect(!0);return e.push(n),e}),[]);0!==t.length&&(this.objectRect={x:this.mergeLines(t,!0),y:this.mergeLines(t,!1)})}mergeLines(e,t){const n=t?"left":"top",r=t?"width":"height";e.sort(((e,t)=>e[n]-t[n]));const i=[];let o=Object.assign({},e[0]);for(let s=1;s=t[n]?o[r]=Math.max(o[n]+o[r],t[n]+t[r])-o[n]:(i.push(o),o=Object.assign({},t))}return i.push(o),i}dispose(){super.dispose(),this.enabled=!1}}const ba=e=>{if(e.ref)return e;const t=["id","name","hideOnLayer","originX","originY","top","left","width","height","scaleX","scaleY","flipX","flipY","opacity","angle","skewX","skewY","hoverCursor","moveCursor","padding","borderColor","borderDashArray","cornerColor","cornerStrokeColor","cornerStyle","cornerDashArray","centeredScaling","centeredRotation","fill","fillRule","globalCompositeOperation","backgroundColor","selectionBackgroundColor","stroke","strokeWidth","strokeDashArray","strokeDashOffset","strokeLineCap","strokeLineJoin","strokeMiterLimit","shadow","borderScaleFactor","minScaleLimit","selectable","evented","visible","hasControls","hasBorders","perPixelTargetFind","includeDefaultValues","lockMovementX","lockMovementY","lockRotation","lockScalingX","lockScalingY","lockSkewingX","lockSkewingY","lockScalingFlip","excludeFromExport","objectCaching","noScaleCache","strokeUniform","dirty","paintFirst","activeOn","colorProperties","inverted","absolutePositioned"];return e.isType("Rect")&&t.push("rx","ry"),e.isType("Text","Textbox")&&t.push("text","charSpacing","lineHeight","fontSize","fontWeight","fontFamily","fontStyle","pathSide","pathAlign","underline","overline","linethrough","textAlign","direction"),e.ref=m({}),t.forEach((t=>{e.ref[t]=e[t],Object.defineProperty(e,t,{get(){return this.ref[t]},set(e){this.ref[t]!==e&&(this.ref[t]=e)}})})),e};class _a extends be{constructor(e,t){super(e,t),u(this,"ruler"),u(this,"loading"),u(this,"activeObject",P())}get _activeObject(){return this.activeObject?this.activeObject.value:void 0}set _activeObject(e){Ga().setCanvasObject(e),this.activeObject.value=e}add(...e){return super.add(...e.map((e=>(this.setDefaultAttr(e),ba(e)))))}insertAt(e,...t){return super.insertAt(e,...t.map((e=>(this.setDefaultAttr(e),ba(e)))))}setDefaultAttr(e){var t;e.name||e.set({name:e.type}),e.id||e.set({id:(t=8,Uo("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")(t))}),Bs(e)&&e.set({color:e.fill}),Is(e)&&e._objects.forEach((e=>{this.setDefaultAttr(e)}))}}function xa(e,t,n){const r=this.pointIndex,i=n.points[r].x-n.pathOffset.x,o=n.points[r].y-n.pathOffset.y,s=ge.transformPoint({x:i,y:o},ge.multiplyTransformMatrices(n.canvas.viewportTransform,n.calcTransformMatrix()));return n.pointMoving(r,s),s}const Ca=e=>{const t=e.scaleX,n=e.scaleY,r=e.strokeWidth,i=e.width,o=e.height,s=new he(e.strokeUniform?1/t:1,e.strokeUniform?1/n:1).scalarMultiply(r);return new he(i+s.x,o+s.y)},Sa=(e,t)=>function(n,r,i,o){const s=r.target,a=s.points[e].x,l=s.points[e].y,c=new he({x:a-s.pathOffset.x,y:l-s.pathOffset.y}),h=ge.transformPoint(c,s.calcTransformMatrix()),u=t(n,r,i,o);s.setDimensions();const d=Ca(s),f=(a-s.pathOffset.x)/d.x,p=(l-s.pathOffset.y)/d.y;return s.setPositionByOrigin(h,f+.5,p+.5),u},ja=(e,t,n,r)=>{const i=t.target;if(!i.__corner)return;const o=i.controls[i.__corner],s=_e.getLocalPoint(t,"center","center",n,r),a=Ca(i),l=i._getTransformedDimensions(0),c={x:s.x*a.x/l.x+i.pathOffset.x,y:s.y*a.y/l.y+i.pathOffset.y};return i.points[o.pointIndex]=c,!0},Ea=(e,t=!1)=>{const n=e.getObjectScaling(),r=e._getTransformedDimensions({scaleX:n.x,scaleY:n.y});return t||(r.setX(da(r.x)),r.setY(da(r.y))),r},Ma=e=>`url("data:image/svg+xml,") 12 12,auto`,Ta=e=>({sizeX:16,sizeY:16,actionHandler:(t,n,r,i)=>{var o;return null==(o=n.target.canvas)||o.setCursor(Ma(n.target.angle+e)),((e,t,n,r)=>{const{shiftKey:i}=e,{target:o}=t,{rotationWithSnapping:s}=_e;let a;i&&(a=o.snapAngle,o.snapAngle=15);const l=s(e,t,n,r);return a&&(o.snapAngle=a),l})(t,n,r,i)},cursorStyleHandler:(t,n,r)=>Ma(r.angle+e),render:ms,actionName:"rotate"}),Aa={cursorStyleHandler:_e.scaleCursorStyleHandler,actionHandler:_e.scalingEqually,actionName:"scaling"},Oa=_e.wrapWithFireEvent("scaling",_e.wrapWithFixedAnchor(_e.changeWidth)),Pa=_e.wrapWithFireEvent("scaling",_e.wrapWithFixedAnchor(((e,t,n,r)=>{const i=_e.getLocalPoint(t,t.originX,t.originY,n,r),{target:o}=t;if("top"===t.originY&&i.y>0||"bottom"===t.originY&&i.y<0){const e=o.strokeWidth?o.strokeWidth:0;if(!o.scaleY)return!1;const t=e/(o.strokeUniform?o.scaleY:1),n=o.height,r=Math.ceil(Math.abs(1*i.y/o.scaleY)-t);return o.set("height",Math.max(r,0)),n!==o.height}return!1})));_e.wrapWithFireEvent("scaling",_e.wrapWithFixedAnchor(((e,t,n,r)=>{const i=t.target;let o,s=_e.getLocalPoint(t,t.originX,t.originY,n,r),a=i.strokeWidth/(i.strokeUniform?i.scaleX:1),l="center"===t.originY?2:1,c=(s.y+i.controls[t.corner].offsetY-i.height/2+i._contentOffsetY)*l/i.scaleY-a,h=i.calcTextHeight();return o=Math.abs(c)<=h/2?0:c>0?c-h/2:c+h/2,i.set(o),!1})));const Ia=()=>({size:new xe({x:0,y:.5,cursorStyleHandler:()=>"",offsetY:14,sizeX:1e-4,sizeY:1e-4,touchSizeX:1e-4,touchSizeY:1e-4,render:(e,t,n,r,i)=>{e.save(),e.translate(t,n);e.rotate((()=>{const e=i.group?i.getTotalAngle():i.angle,t=e*ua,n=Math.sin(t),r=Math.cos(t);return(e-(Math.abs(n)>Math.abs(r)?90*Math.sign(n):90*Math.sign(r)-90))*ua})());e.font="12px Tahoma",e.textAlign="center",e.textBaseline="middle";const{x:o,y:s}=Ea(i),{unitMode:a}=jt(Ga());let l=0===a.value?`${da(va(o))} × ${da(va(s))}`:`${o} × ${s}`;const c=e.measureText(l).width+8;e.roundRect(-c/2,-9,c,18,4),e.fillStyle="#0066ff",e.fill(),e.fillStyle="#fff",e.fillText(l,0,1),e.restore()},positionHandler:(e,t,n,r)=>{var i,o;const s=(null==(i=n.canvas)?void 0:i.getActiveObject)instanceof Function?null==(o=n.canvas)?void 0:o.getActiveObject():null;if(s&&s===n){const e=n.getTotalAngle()*ua,t=Math.sin(e),i=Math.cos(e);if(Math.abs(t)>=Math.abs(i)){const e=Math.sign(t);r.x=e/2,r.y=0,r.offsetX=14*e,r.offsetY=0}else{const e=Math.sign(i);r.x=0,r.y=e/2,r.offsetX=0,r.offsetY=14*e}(e=>{if(!e.canvas)return;const t=e.canvas.getZoom(),n=Ea(e).scalarMultiply(t),r=e.controls;["ml","mr"].forEach((t=>{r[t].sizeX=e.cornerSize,r[t].sizeY=n.y,r[t].touchSizeX=e.touchCornerSize,r[t].touchSizeY=n.y})),["mt","mb"].forEach((t=>{r[t].sizeX=n.x,r[t].sizeY=e.cornerSize,r[t].touchSizeX=n.x,r[t].touchSizeY=e.touchCornerSize}))})(n)}return((e,t,n,r)=>new he(r.x*e.x+r.offsetX,r.y*e.y+r.offsetY).transform(t))(e,t,0,r)}}),tlr:new xe(l({x:-.5,y:-.5,offsetX:-4,offsetY:-4},Ta(0))),trr:new xe(l({x:.5,y:-.5,offsetX:4,offsetY:-4},Ta(90))),brr:new xe(l({x:.5,y:.5,offsetX:4,offsetY:4},Ta(180))),blr:new xe(l({x:-.5,y:.5,offsetX:-4,offsetY:4},Ta(270))),ml:new xe({x:-.5,y:0,actionHandler:_e.scalingXOrSkewingY,cursorStyleHandler:_e.scaleSkewCursorStyleHandler,actionName:"scaling",render:ms}),mr:new xe({x:.5,y:0,actionHandler:_e.scalingXOrSkewingY,cursorStyleHandler:_e.scaleSkewCursorStyleHandler,actionName:"scaling",render:ms}),mb:new xe({x:0,y:.5,actionHandler:_e.scalingYOrSkewingX,cursorStyleHandler:_e.scaleSkewCursorStyleHandler,actionName:"scaling",render:ms}),mt:new xe({x:0,y:-.5,actionHandler:_e.scalingYOrSkewingX,cursorStyleHandler:_e.scaleSkewCursorStyleHandler,actionName:"scaling",render:ms}),tl:new xe(l({x:-.5,y:-.5},Aa)),tr:new xe(l({x:.5,y:-.5},Aa)),bl:new xe(l({x:-.5,y:.5},Aa)),br:new xe(l({x:.5,y:.5},Aa))}),Ra=()=>l(l({},Ia()),{mr:new xe({x:.5,y:0,actionHandler:Oa,cursorStyleHandler:_e.scaleSkewCursorStyleHandler,render:ms}),ml:new xe({x:-.5,y:0,actionHandler:Oa,cursorStyleHandler:_e.scaleSkewCursorStyleHandler,render:ms}),mt:new xe({x:0,y:-.5,actionHandler:Pa,cursorStyleHandler:_e.scaleSkewCursorStyleHandler,render:ms}),mb:new xe({x:0,y:.5,actionHandler:Pa,cursorStyleHandler:_e.scaleSkewCursorStyleHandler,render:ms})}),Ba=()=>({initCommon:()=>{const[e]=Xa();if(!e)return;const t=e.getObjects().filter((e=>e.id===Ao))[0];if(!t)return;const n=Fo(),{clip:r,safe:i,diagonal:o,opacity:s,showClip:a,showSafe:c}=jt(n);e.remove(...e.getObjects().filter((e=>Wo.includes(e.id))));const h=t.width,u=t.height,d=25e3,f=96*r.value/fa,p=96*o.value/fa,g=2*i.value*96/fa,k=t.left,m=t.top,v=new ve(l({left:k+f,top:m+f,width:h-2*f,height:u-2*f,fill:Vs,stroke:"red",strokeWidth:1,visible:a.value,id:Oo},zo)),y=new ve(l({left:k+g,top:m+g,width:h-2*g,height:u-2*g,fill:Vs,stroke:"yellow",strokeWidth:1,visible:c.value,id:Po},zo)),L=new Ce(`M0 0 L50000 0 L50000 50000 L0 50000 L0 0 Z \n M${d+k} ${d+m} \n L${d+k} ${d+m+u} \n L${d+k+h} ${d+m+u} \n L${d+k+h} ${d+m} \n L${d+k} ${d+m} Z`,l({left:-25e3,top:-25e3,fill:"#f3f3f3",opacity:s.value,id:Io,originX:"left",originY:"top"},zo)),w=p/2,b=[];[[d-w-f,d+f,d-w/2-f,d+f],[d,d-w,d,d-w/2],[d-w-f,d+u-f,d-w/2-f,d+u-f],[d,d+w+u,d,d+u+w/2],[d+h+f,d+f,d+h+w/2+f,d+f],[d+h-2*f,d-w,d+h-2*f,d-w/2],[d+h+f,d+u-f,d+h+w/2+f,d+u-f],[d+h-2*f,d+w+u,d+h-2*f,d+u+w/2]].forEach((e=>{const t=new Le(e,{selectable:!1,hoverCursor:"default",evented:!1,excludeFromExport:!1,hasBorders:!1,perPixelTargetFind:!0,strokeWidth:1,stroke:"red"});b.push(t)}));const _=new de([...b],l({id:Oo,left:k-w,top:m-w,visible:a.value},zo));e.add(v),e.add(y),e.add(_),e.add(L),e.renderAll(),e.getObjects("ReferenceLine").forEach((t=>{const n=t;n.set({selectable:!0,hasControls:!1,hasBorders:!1,padding:5}),e.bringObjectToFront(n),e.renderAll()}))}});var Wa,Ha={exports:{}}; +/*! Hammer.JS - v2.0.7 - 2016-04-22 + * http://hammerjs.github.io/ + * + * Copyright (c) 2016 Jorik Tangelder; + * Licensed under the MIT license */Wa=Ha,function(e,t,n,r){var i,o=["","webkit","Moz","MS","ms","o"],s=t.createElement("div"),a="function",l=Math.round,c=Math.abs,h=Date.now;function u(e,t,n){return setTimeout(v(e,n),t)}function d(e,t,n){return!!Array.isArray(e)&&(f(e,n[t],n),!0)}function f(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==r)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,i,r),t.apply(this,arguments)}}i="function"!=typeof Object.assign?function(e){if(e===r||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function C(e){return e.trim().split(/\s+/g)}function S(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]})):r.sort()),r}function M(e,t){for(var n,i,s=t[0].toUpperCase()+t.slice(1),a=0;a1&&!n.firstMultiple?n.firstMultiple=Q(t):1===o&&(n.firstMultiple=!1);var s=n.firstInput,a=n.firstMultiple,l=a?a.center:s.center,u=t.center=ee(i);t.timeStamp=h(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=ie(l,u),t.distance=re(l,u),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==H&&o.eventType!==z||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=ne(t.deltaX,t.deltaY);var d,f,p=te(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=c(p.x)>c(p.y)?p.x:p.y,t.scale=a?(d=a.pointers,re((f=i)[0],f[1],q)/re(d[0],d[1],q)):1,t.rotation=a?function(e,t){return ie(t[1],t[0],q)+ie(e[1],e[0],q)}(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,o,s,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=N&&(l>W||a.velocity===r)){var h=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,d=te(l,h,u);i=d.x,o=d.y,n=c(d.x)>c(d.y)?d.x:d.y,s=ne(h,u),e.lastInterval=t}else n=a.velocity,i=a.velocityX,o=a.velocityY,s=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=o,t.direction=s}(n,t);var g=e.element;_(t.srcEvent.target,g)&&(g=t.srcEvent.target),t.target=g}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function Q(e){for(var t=[],n=0;n=c(t)?e<0?F:V:t<0?U:$}function re(e,t,n){n||(n=G);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function ie(e,t,n){n||(n=G);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}K.prototype={handler:function(){},init:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(A(this.element),this.evWin,this.domHandler)}};var oe={mousedown:H,mousemove:2,mouseup:z},se="mousedown",ae="mousemove mouseup";function le(){this.evEl=se,this.evWin=ae,this.pressed=!1,K.apply(this,arguments)}m(le,K,{handler:function(e){var t=oe[e.type];t&H&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=z),this.pressed&&(t&z&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:B,srcEvent:e}))}});var ce={pointerdown:H,pointermove:2,pointerup:z,pointercancel:N,pointerout:N},he={2:R,3:"pen",4:B,5:"kinect"},ue="pointerdown",de="pointermove pointerup pointercancel";function fe(){this.evEl=ue,this.evWin=de,K.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(ue="MSPointerDown",de="MSPointerMove MSPointerUp MSPointerCancel"),m(fe,K,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=ce[r],o=he[e.pointerType]||e.pointerType,s=o==R,a=S(t,e.pointerId,"pointerId");i&H&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):i&(z|N)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(a,1))}});var pe={touchstart:H,touchmove:2,touchend:z,touchcancel:N};function ge(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,K.apply(this,arguments)}function ke(e,t){var n=j(e.touches),r=j(e.changedTouches);return t&(z|N)&&(n=E(n.concat(r),"identifier",!0)),[n,r]}m(ge,K,{handler:function(e){var t=pe[e.type];if(t===H&&(this.started=!0),this.started){var n=ke.call(this,e,t);t&(z|N)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:e})}}});var me={touchstart:H,touchmove:2,touchend:z,touchcancel:N},ve="touchstart touchmove touchend touchcancel";function ye(){this.evTarget=ve,this.targetIds={},K.apply(this,arguments)}function Le(e,t){var n=j(e.touches),r=this.targetIds;if(t&(2|H)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=j(e.changedTouches),a=[],l=this.target;if(o=n.filter((function(e){return _(e.target,l)})),t===H)for(i=0;i-1&&r.splice(e,1)}),we)}}function Ce(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+ze(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+ze(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=We},canEmit:function(){for(var e=0;et.threshold&&i&t.direction},attrTest:function(e){return Fe.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ne(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),m(Ue,Fe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ae]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),m($e,He,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Me]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||e.eventType&(z|N)&&!i)this.reset();else if(e.eventType&H)this.reset(),this._timer=u((function(){this.state=8,this.tryEmit()}),t.time,this);else if(e.eventType&z)return 8;return We},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&z?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),m(Ye,Fe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ae]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),m(Xe,Fe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Y|X,pointers:1},getTouchAction:function(){return Ve.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Y|X)?t=e.overallVelocity:n&Y?t=e.overallVelocityX:n&X&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&c(t)>this.options.velocity&&e.eventType&z},emit:function(e){var t=Ne(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),m(Ze,He,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Te]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance({initHammer:()=>{let e=!1,t=0,n=0,r=0,i=0,o=0;const[s]=Xa();jt(Fo());const a=new za.Manager(s.lowerCanvasEl),l=new za.Pan,c=new za.Rotate,h=new za.Pinch;a.add([l,h,c]),a.get("pan").set({enable:!0,direction:za.DIRECTION_ALL}),a.get("rotate").set({enable:!0}),a.get("pinch").set({enable:!0}),a.on("panstart pinchstart rotatestart",(e=>{if(r-=e.rotation,t=e.center.x,n=e.center.y,s.getActiveObject()){const e=s.getActiveObject();if(!e)return;e.scaleX,e.scaleY}})),a.on("panmove",(r=>{if(null==s.getActiveObject()&&0==e&&!s.isDrawingMode&&1==r.maxPointers){i=-(t-r.center.x),o=-(n-r.center.y);let e=new he(i,o);s.relativePan(e),s.renderAll(),t=r.center.x,n=r.center.y}}));a.on("pinchmove rotatemove",(e=>{s.zoomToPoint({x:e.deltaX,y:e.deltaY},e.scale)})),a.on("panend pinchend rotateend",(t=>{e=!1;const n=s.getActiveObject();n&&(r=0,setTimeout((function(){n.set({lockRotation:!1,lockMovementX:!1,lockMovementY:!1})}),300)),s.renderAll()})),s.on("object:rotating",(function(e){Na.includes(Math.abs(Math.ceil(e.target.angle)))?e.target.lockedDegree=Math.ceil(e.target.angle):e.target.lockedDegree=null,r=e.target.angle;const t=s.getActiveObject();t&&((e,t)=>{const n=s.getSelectionContext();if(n.clearRect(0,0,s.width,s.height),Na.includes(Math.abs(Math.ceil(e.angle)))){const t=e.scaleX;let o=ge.transformPoint(new he(e.left-e.width*t/2,e.top),s.viewportTransform);const a=e.getCenterPoint();var r=ge.transformPoint(new he(a.x,a.y),s.viewportTransform),i=ge.transformPoint(new he(e.left+e.width*t/2,e.top),s.viewportTransform);n.save();let l={x:r.x,y:r.y};n.translate(l.x,l.y),n.rotate(Math.PI/180*e.angle),n.translate(-l.x,-l.y),n.strokeStyle="#3988ad",n.lineWidth=1,n.beginPath(),n.moveTo(o.x,o.y),n.lineTo(i.x,i.y),n.stroke(),n.restore(),o=ge.transformPoint(new he(e.left-e.height*t/2,e.top),s.viewportTransform),i=ge.transformPoint(new he(e.left+e.height*t/2,e.top),s.viewportTransform),n.save(),l={x:r.x,y:r.y},n.translate(l.x,l.y),n.rotate(Math.PI/180*(e.angle+90)),n.translate(-l.x,-l.y),n.strokeStyle="#3988ad",n.lineWidth=1,n.beginPath(),n.moveTo(o.x,o.y),n.lineTo(i.x,i.y),n.stroke(),n.restore(),s.renderAll()}})(t,e.target.angle)}))}});let Fa=null;const Va=()=>{we.ownDefaults.objectCaching=!1,we.ownDefaults.borderColor="blue",we.ownDefaults.cornerColor="white",we.ownDefaults.cornerStrokeColor="#c0c0c0",we.ownDefaults.borderOpacityWhenMoving=1,we.ownDefaults.borderScaleFactor=1,we.ownDefaults.cornerSize=8,we.ownDefaults.cornerStyle="rect",we.ownDefaults.centeredScaling=!1,we.ownDefaults.centeredRotation=!0,we.ownDefaults.transparentCorners=!1,we.ownDefaults.rotatingPointOffset=1,we.ownDefaults.lockUniScaling=!0,we.ownDefaults.hasRotatingPoint=!1,we.ownDefaults.controls=Ia(),Object.assign(ke.ownDefaults,{controls:Ra()}),Object.assign(me.ownDefaults,{controls:Ra()});const e={getWidthHeight(e=!1){const t=this.getObjectScaling(),n=this._getTransformedDimensions({scaleX:t.x,scaleY:t.y});return e||(n.setX(n.x),n.setY(n.y)),n},getHeight(){return this.getWidthHeight().y},getWidth(){return this.getWidthHeight().x}};Object.assign(we.prototype,e)},Ua=()=>{if(!Fa)return;const e=Fo(),{zoom:t,wrapperRef:n,scalePercentage:r}=jt(e),{width:i,height:o}=xs(n.value);Fa.setDimensions({width:i.value,height:o.value});const s=Fa.getObjects().filter((e=>!Wo.includes(e.id))),a=de.prototype.getObjectsBoundingBox(s);if(!a)return;let l=a.width,c=a.height,h=a.centerX,u=a.centerY;const d=Fa.getObjects().filter((e=>e.id===Ao))[0];d&&(l=d.width,c=d.height,h=d.left+d.width/2,u=d.top+d.height/2),t.value=Math.min(Fa.getWidth()/l,Fa.getHeight()/c)*r.value/100,Fa.setZoom(t.value),Fa.absolutePan(new he(h,u).scalarMultiply(t.value).subtract(Fa.getCenterPoint()))},$a=()=>d(void 0,null,(function*(){if(!Fa)return;const e=sl(),{initCommon:t}=Ba(),{initHammer:n}=Da(),{currentTemplate:r}=jt(e);yield Fa.loadFromJSON(r.value),Ua(),t(),(()=>{if(!Fa)return;const e=sl();Fa.on("object:modified",(()=>e.modifedElement()))})(),ha()&&n()})),Ya=()=>d(void 0,null,(function*(){const e=Fo(),{wrapperRef:t}=jt(e);Va(),(()=>{const e=Fo(),{canvasRef:t}=jt(e),n=e.getWidth(),r=e.getHeight();t.value&&(Fa=new _a(t.value,{width:n,height:r}),new Ps(Fa),new zs(Fa),new Ds(Fa),new Fs(Fa),new wa(Fa),Fa.preserveObjectStacking=!0,Fa.renderAll())})(),$a();const{width:n,height:r}=xs(t.value);k([n,r],(()=>{Ua()}))})),Xa=()=>[Fa],Za=Uo("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")(10),Ga=St("main",{state:()=>({canvasObject:void 0,clonedObject:void 0,hoveredObject:void 0,leavedObject:void 0,currentPoint:null,rightState:as.ELEMENT_CANVAS,imageCategoryType:[],imageCategoryData:es,illustrationCategoryType:[],illustrationCategoryData:es,handleElementId:"",sizeMode:0,unitMode:0,gridColorSelf:[[]],databaseId:Za,selectedTemplatesIndex:[],thumbnailsFocus:!1,drawAreaFocus:!1,systemFonts:Yo,disableHotkeys:!1,exportType:"image",lastEdit:"editor",lastHelp:"editor",poolType:"editor",poolShow:!1}),getters:{activeElementList(){},handleElement(){}},actions:{setCanvasObject(e){this.canvasObject=e},setHoveredObject(e){this.hoveredObject=e},setLeaveddObject(e){this.leavedObject=e},setActiveObject(){const[e]=Xa();e&&e._activeObject},setPoolType(e){"help"===e&&(this.lastHelp=this.poolType),this.poolType=e},setRightState(e){this.rightState=e},setThumbnailsFocus(e){this.thumbnailsFocus=e},setSystemFonts(){this.systemFonts=(e=>{const t=100,n=100,r=document.createElement("canvas"),i=r.getContext("2d",{willReadFrequently:!0});return i?(r.width=t,r.height=n,i.textAlign="center",i.fillStyle="black",i.textBaseline="middle",e.filter((e=>{if("string"!=typeof e.value)return!1;const r="Arial";if(e.value.toLowerCase()===r.toLowerCase())return!0;const o=e=>{i.clearRect(0,0,t,n),i.font=`100px ${e}, ${r}`,i.fillText("a",50,50);const o=i.getImageData(0,0,t,n).data;return[].slice.call(o).filter((e=>0!==e))};return o(r).join("")!==o(e.value).join("")}))):[]})(Yo)},setExportType(e){this.exportType=e},setDrawAreaFocus(e){this.drawAreaFocus=e},updateSelectedTemplatesIndex(e){this.selectedTemplatesIndex=e}}}),qa=[{version:"6.0.0-beta12",id:"APxCmQX_hz",background:"rgba(255,255,255,0)",objects:[{rx:0,ry:0,id:"WorkSpaceDrawType",name:"rect",color:"#ffffff",padding:0,fill:"#ffffff",selectable:!1,evented:!1,fillType:0,lockMovementX:!1,lockMovementY:!1,objectCaching:!0,transparentCorners:!1,hasBorders:!0,globalCompositeOperation:"source-over",type:"Rect",version:"6.0.0-beta12",originX:"left",originY:"top",left:0,top:0,width:1070.5512,height:645.3543,stroke:"rgba(255,255,255,1)",strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"rgba(0,0,0,0)",fillRule:"nonzero",paintFirst:"fill",skewX:0,skewY:0},{id:"CIRlKuzGBu",name:"path",padding:0,fill:"#ff5e17",selectable:!0,evented:!0,lockMovementX:!1,lockMovementY:!1,objectCaching:!1,transparentCorners:!1,hasBorders:!0,globalCompositeOperation:"source-over",type:"Path",version:"6.0.0-beta12",originX:"left",originY:"left",left:435.2756,top:217.0772,width:200,height:200,stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",skewX:0,skewY:0,path:[["M",50,0],["L",150,0],["Q",200,0,200,50],["L",200,150],["Q",200,200,150,200],["L",50,200],["Q",0,200,0,150],["L",0,50],["Q",0,0,50,0],["Z"]]},{fontSize:"160",fontWeight:"normal",fontFamily:"得意黑",fontStyle:"normal",lineHeight:1.3,text:"yft",charSpacing:3,textAlign:"justify-center",styles:[],path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",underline:!1,overline:!1,linethrough:!1,textBackgroundColor:"",direction:"ltr",minWidth:20,splitByGrapheme:!1,id:"XBWMxwBboP",name:"textbox",editable:!0,color:"rgb(0,0,0)",padding:0,fill:"rgb(0,0,0)",selectable:!0,evented:!0,fillType:0,lockMovementX:!1,lockMovementY:!1,objectCaching:!1,transparentCorners:!1,hasBorders:!0,radius:66,globalCompositeOperation:"source-over",type:"Textbox",version:"6.0.0-beta12",originX:"left",originY:"top",left:136.1019,top:226.6772,width:153.92,height:180.8,stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",skewX:0,skewY:0},{id:"evc7yQi-5F",name:"path",color:"#000000",padding:0,fill:"#000000",selectable:!0,evented:!0,fillType:0,lockMovementX:!1,lockMovementY:!1,objectCaching:!1,transparentCorners:!1,background:{fillType:0,fill:"#000000",color:"#000000"},hasBorders:!0,globalCompositeOperation:"source-over",type:"Path",version:"6.0.0-beta12",originX:"left",originY:"left",left:451.5156,top:232.2772,width:167.52,height:169.6,stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",skewX:0,skewY:0,path:[["M",71.04,-92.8],["L",37.76,.64],["Q",32.96,14.24,28.72,22.56],["Q",24.48,30.88,19.04,34.64],["Q",13.6,38.4,5.12,38.4],["L",5.12,38.4],["Q",1.6,38.4,-1.92,37.84],["Q",-5.44,37.28,-9.44,35.84],["L",-9.44,35.84],["L",-7.2,22.08],["Q",-4.32,22.88,-1.6,23.44],["Q",1.12,24,4,24],["L",4,24],["Q",9.44,24,13.12,20],["Q",16.8,16,18.72,9.76],["L",18.72,9.76],["L",8.16,-92.8],["L",24,-92.8],["L",28.32,-32.64],["Q",28.64,-27.84,28.88,-23.04],["Q",29.12,-18.24,29.28,-13.44],["L",29.28,-13.44],["Q",30.88,-18.24,32.4,-23.04],["Q",33.92,-27.84,35.52,-32.64],["L",35.52,-32.64],["L",55.04,-92.8],["L",71.04,-92.8],["Z"],["M",72.16,-78.72],["L",74.24,-92.8],["L",84.96,-92.8],["L",85.76,-98.4],["Q",87.52,-111.2,91.36,-118.32],["Q",95.2,-125.44,100.56,-128.32],["Q",105.92,-131.2,112.32,-131.2],["L",112.32,-131.2],["Q",117.6,-131.2,121.12,-130.08],["L",121.12,-130.08],["L",119.04,-115.84],["Q",117.76,-116.16,116.08,-116.48],["Q",114.4,-116.8,112.96,-116.8],["L",112.96,-116.8],["Q",106.24,-116.8,104,-110.48],["Q",101.76,-104.16,100.16,-92.8],["L",100.16,-92.8],["L",118.08,-92.8],["L",116,-78.72],["L",98.24,-78.72],["L",87.04,4.8],["L",71.52,4.8],["L",83.04,-78.72],["L",72.16,-78.72],["Z"],["M",114.24,-23.52],["L",114.24,-23.52],["L",122.88,-78.72],["L",112.48,-78.72],["L",114.56,-92.8],["L",125.12,-92.8],["L",129.28,-119.68],["L",144,-119.68],["L",140,-92.8],["L",158.08,-92.8],["L",156,-78.72],["L",137.76,-78.72],["L",129.76,-25.28],["Q",128.48,-16.48,129.68,-12.24],["Q",130.88,-8,135.36,-8],["L",135.36,-8],["Q",139.2,-8,143.52,-11.04],["L",143.52,-11.04],["L",148.48,2.08],["Q",143.52,4.32,138.16,5.6],["Q",132.8,6.88,127.84,6.24],["Q",122.88,5.6,119.28,2.48],["Q",115.68,-.64,114.16,-6.96],["Q",112.64,-13.28,114.24,-23.52],["Z"]]},{id:"NkbIrgbD",name:"path",color:"rgba(255,94,23,1)",padding:0,fill:"rgba(255,94,23,1)",selectable:!0,evented:!0,fillType:0,lockMovementX:!1,lockMovementY:!1,objectCaching:!1,transparentCorners:!1,background:{fillType:0,fill:"rgba(255,94,23,1)",color:"rgba(255,94,23,1)"},hasBorders:!0,globalCompositeOperation:"source-over",type:"Path",version:"6.0.0-beta12",originX:"left",originY:"top",left:767.3619,top:217.0772,width:200,height:200,stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",skewX:0,skewY:0,path:[["M",151,.01],["L",152.01,.02],["L",153.01,.05],["L",153.99,.08],["L",155,.13],["L",156,.19],["L",156.99,.26],["L",157.99,.35],["L",158.98,.44],["L",159.98,.55],["L",160.97,.68],["L",161.95,.82],["L",162.95,.97],["L",163.93,1.13],["L",164.92,1.32],["L",165.89,1.52],["L",166.87,1.73],["L",167.84,1.96],["L",168.81,2.21],["L",169.79,2.48],["L",170.75,2.76],["L",171.69,3.06],["L",172.64,3.39],["L",173.59,3.73],["L",174.52,4.09],["L",175.44,4.47],["L",176.35,4.88],["L",177.26,5.3],["L",178.15,5.74],["L",179.04,6.21],["L",179.92,6.71],["L",180.77,7.22],["L",181.61,7.74],["L",182.45,8.3],["L",183.26,8.88],["L",184.07,9.49],["L",184.85,10.1],["L",185.61,10.75],["L",186.35,11.4],["L",187.08,12.09],["L",187.79,12.79],["L",188.48,13.52],["L",189.15,14.27],["L",189.8,15.03],["L",190.42,15.81],["L",191.03,16.61],["L",191.61,17.42],["L",192.17,18.26],["L",192.7,19.09],["L",193.22,19.96],["L",193.71,20.82],["L",194.18,21.71],["L",194.63,22.6],["L",195.06,23.5],["L",195.46,24.41],["L",195.85,25.34],["L",196.21,26.27],["L",196.56,27.22],["L",196.89,28.16],["L",197.19,29.1],["L",197.48,30.06],["L",197.75,31.03],["L",198,32],["L",198.23,32.97],["L",198.45,33.95],["L",198.65,34.92],["L",198.84,35.91],["L",199,36.88],["L",199.16,37.88],["L",199.3,38.86],["L",199.43,39.86],["L",199.54,40.85],["L",199.64,41.84],["L",199.72,42.85],["L",199.8,43.84],["L",199.86,44.84],["L",199.91,45.84],["L",199.95,46.84],["L",199.98,47.84],["L",199.99,48.83],["L",200,49.83],["L",200,150.84],["L",199.96,152.84],["L",199.92,153.83],["L",199.88,154.83],["L",199.82,155.84],["L",199.75,156.83],["L",199.67,157.82],["L",199.57,158.82],["L",199.46,159.82],["L",199.34,160.82],["L",199.21,161.8],["L",199.06,162.8],["L",198.89,163.78],["L",198.71,164.75],["L",198.51,165.75],["L",198.31,166.71],["L",198.07,167.7],["L",197.83,168.66],["L",197.56,169.63],["L",197.29,170.58],["L",196.98,171.54],["L",196.66,172.49],["L",196.33,173.43],["L",195.97,174.36],["L",195.59,175.28],["L",195.19,176.2],["L",194.77,177.12],["L",194.32,178.02],["L",193.86,178.9],["L",193.38,179.76],["L",192.87,180.64],["L",192.34,181.48],["L",191.79,182.32],["L",191.21,183.13],["L",190.62,183.93],["L",190,184.72],["L",189.37,185.48],["L",188.7,186.24],["L",188.02,186.97],["L",187.32,187.68],["L",186.59,188.38],["L",185.85,189.05],["L",185.1,189.69],["L",184.32,190.32],["L",183.51,190.94],["L",182.7,191.52],["L",181.88,192.08],["L",181.04,192.62],["L",180.19,193.13],["L",179.32,193.63],["L",178.43,194.11],["L",177.54,194.56],["L",176.63,194.99],["L",175.73,195.4],["L",174.82,195.79],["L",173.89,196.15],["L",172.94,196.5],["L",172,196.83],["L",171.04,197.14],["L",170.09,197.43],["L",169.12,197.71],["L",168.15,197.96],["L",167.19,198.2],["L",166.21,198.42],["L",165.24,198.62],["L",164.26,198.81],["L",163.26,198.98],["L",162.27,199.14],["L",161.29,199.28],["L",160.3,199.41],["L",159.31,199.52],["L",158.31,199.62],["L",157.3,199.71],["L",156.32,199.79],["L",155.32,199.85],["L",154.32,199.9],["L",153.31,199.94],["L",152.32,199.97],["L",151.32,199.99],["L",150.32,200],["L",49.32,200],["L",48.33,199.99],["L",47.33,199.96],["L",46.32,199.93],["L",45.33,199.89],["L",44.32,199.83],["L",43.33,199.76],["L",42.34,199.68],["L",41.33,199.59],["L",40.34,199.48],["L",39.36,199.36],["L",38.36,199.23],["L",37.37,199.08],["L",36.38,198.92],["L",35.39,198.74],["L",34.41,198.55],["L",33.45,198.34],["L",32.45,198.11],["L",31.5,197.87],["L",30.54,197.61],["L",29.57,197.33],["L",28.6,197.03],["L",27.67,196.72],["L",26.71,196.38],["L",25.79,196.03],["L",24.86,195.65],["L",23.94,195.25],["L",23.03,194.84],["L",22.13,194.4],["L",21.25,193.94],["L",20.36,193.45],["L",19.5,192.95],["L",18.66,192.43],["L",17.82,191.88],["L",16.99,191.31],["L",16.19,190.72],["L",15.41,190.11],["L",14.63,189.47],["L",13.88,188.81],["L",13.14,188.13],["L",12.43,187.43],["L",11.73,186.71],["L",11.06,185.97],["L",10.41,185.22],["L",9.77,184.44],["L",9.17,183.65],["L",8.57,182.83],["L",8.02,182.02],["L",7.47,181.18],["L",6.94,180.32],["L",6.45,179.46],["L",5.97,178.58],["L",5.51,177.69],["L",5.08,176.78],["L",4.66,175.88],["L",4.27,174.95],["L",3.9,174.03],["L",3.55,173.09],["L",3.22,172.15],["L",2.9,171.19],["L",2.61,170.24],["L",2.34,169.29],["L",2.08,168.31],["L",1.84,167.35],["L",1.62,166.37],["L",1.41,165.39],["L",1.22,164.4],["L",1.05,163.43],["L",.89,162.44],["L",.74,161.44],["L",.61,160.45],["L",.39,158.47],["L",.3,157.47],["L",.22,156.48],["L",.16,155.48],["L",.06,153.48],["L",.03,152.48],["L",.01,151.48],["L",0,150.49],["L",0,49.49],["L",.01,48.47],["L",.03,47.48],["L",.06,46.48],["L",.11,45.49],["L",.16,44.48],["L",.23,43.49],["L",.31,42.49],["L",.4,41.49],["L",.5,40.49],["L",.62,39.51],["L",.75,38.52],["L",.89,37.52],["L",1.05,36.54],["L",1.23,35.55],["L",1.42,34.57],["L",1.63,33.59],["L",1.85,32.61],["L",2.09,31.65],["L",2.34,30.69],["L",2.62,29.72],["L",2.92,28.77],["L",3.23,27.81],["L",3.56,26.88],["L",3.91,25.94],["L",4.28,25.01],["L",4.68,24.09],["L",5.09,23.18],["L",5.53,22.28],["L",5.98,21.39],["L",6.47,20.5],["L",6.97,19.64],["L",7.49,18.79],["L",8.04,17.95],["L",8.59,17.14],["L",9.19,16.32],["L",9.8,15.53],["L",10.43,14.75],["L",11.09,13.99],["L",11.75,13.27],["L",12.45,12.55],["L",13.17,11.85],["L",13.9,11.17],["L",14.66,10.51],["L",15.44,9.87],["L",16.22,9.26],["L",17.02,8.67],["L",17.85,8.1],["L",18.69,7.55],["L",19.53,7.03],["L",20.4,6.53],["L",21.28,6.04],["L",22.16,5.59],["L",23.07,5.15],["L",23.97,4.73],["L",24.89,4.33],["L",25.81,3.96],["L",26.75,3.61],["L",27.71,3.27],["L",28.64,2.96],["L",29.61,2.66],["L",30.56,2.38],["L",31.54,2.12],["L",32.49,1.88],["L",33.47,1.65],["L",34.45,1.44],["L",35.43,1.25],["L",36.42,1.07],["L",37.41,.91],["L",38.39,.77],["L",39.38,.63],["L",40.38,.51],["L",41.37,.41],["L",42.36,.32],["L",43.36,.24],["L",44.36,.17],["L",45.35,.11],["L",46.36,.07],["L",47.35,.04],["L",48.35,.01],["L",49.36,0],["L",150.01,0],["Z"],["M",34.3,53.6],["L",33.9,54.14],["L",34,55.13],["L",34.1,56.14],["L",34.2,57.13],["L",34.31,58.12],["L",34.41,59.11],["L",34.51,60.11],["L",34.61,61.1],["L",34.72,62.1],["L",34.82,63.09],["L",34.92,64.09],["L",35.12,66.07],["L",35.23,67.07],["L",35.33,68.06],["L",35.43,69.07],["L",35.53,70.05],["L",35.64,71.06],["L",35.94,74.03],["L",36.05,75.04],["L",36.25,77.02],["L",36.35,78.02],["L",36.46,79],["L",36.56,80.01],["L",36.66,81],["L",36.76,82],["L",36.87,82.99],["L",36.97,83.99],["L",37.07,84.98],["L",37.17,85.98],["L",37.28,86.97],["L",37.48,88.95],["L",37.58,89.96],["L",37.69,90.95],["L",37.79,91.94],["L",37.89,92.94],["L",37.99,93.93],["L",38.1,94.93],["L",38.2,95.93],["L",38.3,96.91],["L",38.4,97.91],["L",38.5,98.9],["L",38.61,99.89],["L",38.71,100.88],["L",38.81,101.88],["L",38.92,102.89],["L",39.02,103.88],["L",39.12,104.88],["L",39.22,105.86],["L",39.32,106.87],["L",39.43,107.85],["L",39.53,108.86],["L",39.73,110.84],["L",39.84,111.83],["L",39.94,112.83],["L",40.14,114.81],["L",40.25,115.81],["L",40.35,116.8],["L",40.45,117.81],["L",40.55,118.81],["L",40.65,119.78],["L",40.76,120.79],["L",40.96,122.77],["L",41.07,123.78],["L",41.17,124.76],["L",41.27,125.77],["L",41.37,126.75],["L",41.47,127.74],["L",41.58,128.74],["L",41.68,129.75],["L",41.78,130.74],["L",41.88,131.72],["L",41.99,132.73],["L",42.09,133.72],["L",42.19,134.72],["L",42.29,135.71],["L",42.4,136.7],["L",42.5,137.71],["L",42.6,138.69],["L",42.7,139.68],["L",42.81,140.68],["L",42.91,141.68],["L",43.11,143.66],["L",43.22,144.67],["L",43.32,145.65],["L",43.42,146.65],["L",43.52,147.64],["L",43.63,148.64],["L",43.73,149.63],["L",43.83,150.63],["L",44.03,152.61],["L",44.14,153.61],["L",44.34,155.61],["L",44.27,156.57],["L",43.95,157.52],["L",43.6,158.47],["L",43.23,159.38],["L",42.81,160.31],["L",42.38,161.2],["L",41.91,162.08],["L",41.39,162.95],["L",40.85,163.79],["L",40.28,164.6],["L",39.67,165.4],["L",39.02,166.16],["L",38.33,166.88],["L",37.59,167.57],["L",36.82,168.17],["L",35.98,168.73],["L",35.1,169.2],["L",34.18,169.61],["L",33.23,169.92],["L",32.27,170.15],["L",31.28,170.31],["L",30.27,170.39],["L",29.28,170.4],["L",28.27,170.37],["L",27.28,170.3],["L",26.29,170.2],["L",25.3,170.06],["L",24.31,169.89],["L",23.33,169.68],["L",22.36,169.47],["L",21.39,169.24],["L",20.42,169],["L",19.44,168.74],["L",18.49,168.48],["L",18.32,169.47],["L",18,171.43],["L",17.52,174.4],["L",17.36,175.38],["L",17.19,176.38],["L",17.03,177.37],["L",16.87,178.35],["L",16.39,181.32],["L",16.3,182.26],["L",17.23,182.59],["L",18.19,182.9],["L",19.14,183.19],["L",20.12,183.46],["L",21.08,183.7],["L",22.06,183.92],["L",23.04,184.12],["L",24.02,184.28],["L",25.01,184.42],["L",26.01,184.54],["L",27,184.64],["L",27.99,184.71],["L",29,184.76],["L",30,184.79],["L",31,184.8],["L",31.99,184.78],["L",33,184.73],["L",34,184.66],["L",34.99,184.55],["L",35.98,184.4],["L",36.96,184.23],["L",37.94,184.01],["L",38.9,183.75],["L",39.85,183.46],["L",40.8,183.11],["L",41.71,182.73],["L",42.62,182.29],["L",43.49,181.82],["L",44.36,181.29],["L",45.16,180.72],["L",45.96,180.11],["L",46.72,179.47],["L",47.47,178.78],["L",48.16,178.08],["L",48.85,177.34],["L",49.5,176.58],["L",50.12,175.81],["L",50.73,175.01],["L",51.31,174.19],["L",51.87,173.36],["L",52.4,172.52],["L",52.92,171.67],["L",53.42,170.8],["L",53.9,169.92],["L",54.36,169.04],["L",54.82,168.13],["L",55.25,167.25],["L",55.69,166.34],["L",56.11,165.44],["L",56.53,164.53],["L",56.94,163.61],["L",57.35,162.7],["L",57.74,161.79],["L",58.13,160.87],["L",58.52,159.94],["L",58.9,159.02],["L",59.28,158.09],["L",59.65,157.17],["L",60.02,156.24],["L",60.39,155.3],["L",60.75,154.37],["L",61.1,153.44],["L",61.46,152.49],["L",61.81,151.56],["L",62.15,150.63],["L",62.49,149.68],["L",62.83,148.75],["L",63.17,147.81],["L",63.5,146.86],["L",63.84,145.93],["L",64.17,144.98],["L",64.51,144.04],["L",64.85,143.08],["L",65.18,142.15],["L",65.52,141.21],["L",65.85,140.26],["L",66.18,139.33],["L",66.53,138.38],["L",67.19,136.5],["L",67.53,135.56],["L",67.87,134.61],["L",68.2,133.68],["L",68.54,132.73],["L",68.87,131.79],["L",69.21,130.84],["L",69.54,129.9],["L",69.88,128.97],["L",70.21,128.02],["L",70.55,127.08],["L",70.89,126.13],["L",71.22,125.19],["L",71.55,124.26],["L",71.89,123.31],["L",72.23,122.37],["L",72.56,121.43],["L",72.9,120.48],["L",73.23,119.54],["L",73.57,118.59],["L",73.9,117.67],["L",74.24,116.72],["L",74.57,115.78],["L",74.91,114.83],["L",75.24,113.9],["L",75.58,112.94],["L",75.92,112.01],["L",76.25,111.06],["L",76.59,110.13],["L",76.92,109.19],["L",77.6,107.29],["L",77.93,106.36],["L",78.27,105.41],["L",78.6,104.47],["L",78.94,103.53],["L",79.28,102.58],["L",79.61,101.64],["L",79.95,100.7],["L",80.28,99.76],["L",80.62,98.81],["L",80.95,97.87],["L",81.29,96.93],["L",81.62,96],["L",81.96,95.04],["L",82.29,94.11],["L",82.63,93.16],["L",82.96,92.23],["L",83.3,91.29],["L",83.63,90.35],["L",83.97,89.39],["L",84.3,88.46],["L",84.98,86.58],["L",85.31,85.63],["L",85.65,84.68],["L",85.98,83.74],["L",86.66,81.86],["L",86.99,80.93],["L",87.33,79.97],["L",87.66,79.04],["L",88,78.09],["L",88.33,77.15],["L",88.67,76.2],["L",89,75.27],["L",89.34,74.32],["L",89.67,73.39],["L",90.01,72.44],["L",90.34,71.51],["L",90.68,70.55],["L",91.02,69.61],["L",91.35,68.66],["L",91.69,67.73],["L",92.02,66.79],["L",92.36,65.84],["L",92.69,64.91],["L",93.03,63.96],["L",93.37,63.02],["L",93.7,62.08],["L",94.04,61.13],["L",94.37,60.19],["L",94.71,59.25],["L",95.04,58.31],["L",95.38,57.36],["L",95.71,56.42],["L",96.05,55.49],["L",96.39,54.54],["L",96.72,53.6],["L",81.37,53.6],["L",80.61,53.94],["L",80.3,54.88],["L",79.99,55.85],["L",79.68,56.79],["L",79.38,57.74],["L",79.06,58.7],["L",78.76,59.64],["L",78.45,60.59],["L",78.14,61.56],["L",77.83,62.51],["L",77.52,63.45],["L",77.21,64.41],["L",76.9,65.36],["L",76.6,66.3],["L",75.67,69.15],["L",75.36,70.12],["L",75.05,71.06],["L",74.74,72.02],["L",74.44,72.97],["L",73.82,74.87],["L",73.51,75.81],["L",73.2,76.77],["L",72.89,77.72],["L",72.58,78.68],["L",72.28,79.62],["L",71.97,80.58],["L",71.66,81.52],["L",71.35,82.47],["L",71.04,83.43],["L",70.42,85.33],["L",70.12,86.28],["L",69.5,88.18],["L",69.19,89.14],["L",68.26,91.99],["L",67.96,92.93],["L",67.34,94.85],["L",67.03,95.79],["L",66.72,96.74],["L",66.41,97.7],["L",66.11,98.64],["L",65.8,99.6],["L",65.49,100.54],["L",65.18,101.5],["L",64.87,102.44],["L",64.25,104.36],["L",63.95,105.3],["L",63.63,106.26],["L",63.33,107.21],["L",63.02,108.15],["L",62.71,109.11],["L",62.4,110.06],["L",62.09,111.02],["L",61.78,111.96],["L",61.48,112.91],["L",61.16,113.87],["L",60.85,114.81],["L",60.53,115.77],["L",60.23,116.7],["L",59.91,117.66],["L",59.6,118.62],["L",59.29,119.57],["L",58.99,120.51],["L",58.68,121.47],["L",58.38,122.42],["L",58.07,123.38],["L",57.77,124.33],["L",57.47,125.27],["L",57.16,126.23],["L",56.86,127.18],["L",56.55,128.14],["L",56.24,129.08],["L",55.93,130.03],["L",55.61,130.99],["L",55.3,131.93],["L",54.98,132.89],["L",54.93,132.04],["L",54.89,131.05],["L",54.86,130.03],["L",54.78,128.05],["L",54.73,127.03],["L",54.69,126.04],["L",54.64,125.05],["L",54.59,124.05],["L",54.54,123.04],["L",54.49,122.05],["L",54.44,121.05],["L",54.39,120.06],["L",54.33,119.05],["L",54.27,118.05],["L",54.15,116.07],["L",54.08,115.05],["L",54.02,114.06],["L",53.95,113.06],["L",53.81,111.08],["L",53.73,110.06],["L",53.66,109.08],["L",53.59,108.07],["L",53.52,107.08],["L",53.38,105.08],["L",53.31,104.09],["L",53.23,103.09],["L",53.09,101.09],["L",53.02,100.11],["L",52.95,99.1],["L",52.88,98.11],["L",52.8,97.1],["L",52.73,96.12],["L",52.52,93.12],["L",52.45,92.13],["L",52.37,91.12],["L",52.3,90.13],["L",52.23,89.13],["L",52.16,88.14],["L",52.09,87.13],["L",52.02,86.13],["L",51.94,85.13],["L",51.8,83.15],["L",51.73,82.14],["L",51.66,81.15],["L",51.59,80.15],["L",51.52,79.16],["L",51.44,78.16],["L",51.37,77.16],["L",51.3,76.15],["L",51.23,75.17],["L",51.16,74.16],["L",51.09,73.17],["L",51.01,72.16],["L",50.94,71.18],["L",50.87,70.18],["L",50.8,69.17],["L",50.73,68.18],["L",50.65,67.18],["L",50.58,66.19],["L",50.51,65.18],["L",50.44,64.18],["L",50.37,63.2],["L",50.3,62.19],["L",50.23,61.2],["L",50.15,60.21],["L",49.94,57.21],["L",49.87,56.2],["L",49.8,55.21],["L",49.72,54.22],["L",49.3,53.6],["Z"],["M",148.42,68.55],["L",148.12,70.51],["L",147.96,71.5],["L",147.81,72.49],["L",147.65,73.48],["L",147.5,74.48],["L",147.34,75.46],["L",147.19,76.44],["L",147.03,77.44],["L",146.73,79.4],["L",146.57,80.4],["L",146.42,81.38],["L",146.26,82.36],["L",146.1,83.37],["L",145.95,84.35],["L",145.8,85.34],["L",145.64,86.33],["L",145.49,87.32],["L",145.33,88.29],["L",145.18,89.3],["L",145.02,90.27],["L",144.87,91.27],["L",144.71,92.25],["L",144.56,93.24],["L",144.4,94.23],["L",144.25,95.22],["L",144.09,96.21],["L",143.79,98.19],["L",143.63,99.17],["L",143.48,100.15],["L",143.32,101.14],["L",143.17,102.13],["L",143.01,103.13],["L",142.86,104.11],["L",142.7,105.09],["L",142.55,106.09],["L",142.39,107.08],["L",142.24,108.05],["L",142.08,109.06],["L",141.78,111.02],["L",141.62,112.01],["L",141.47,113],["L",141.31,113.98],["L",141.16,114.97],["L",141,115.97],["L",140.85,116.95],["L",140.69,117.93],["L",140.54,118.93],["L",140.38,119.91],["L",140.23,120.9],["L",140.07,121.9],["L",139.92,122.88],["L",139.79,123.71],["L",139.66,124.71],["L",139.53,125.68],["L",139.42,126.69],["L",139.32,127.68],["L",139.24,128.69],["L",139.18,129.66],["L",139.13,130.67],["L",139.1,131.67],["L",139.1,132.67],["L",139.12,133.67],["L",139.17,134.66],["L",139.24,135.66],["L",139.34,136.66],["L",139.48,137.65],["L",139.66,138.63],["L",139.88,139.61],["L",140.14,140.57],["L",140.43,141.54],["L",140.76,142.49],["L",141.13,143.41],["L",141.55,144.32],["L",142.01,145.2],["L",142.53,146.06],["L",143.1,146.87],["L",143.73,147.66],["L",144.42,148.39],["L",145.16,149.05],["L",145.94,149.67],["L",146.77,150.24],["L",147.63,150.75],["L",148.52,151.21],["L",149.44,151.61],["L",150.38,151.94],["L",151.34,152.22],["L",152.3,152.44],["L",153.29,152.61],["L",154.3,152.73],["L",155.3,152.81],["L",156.28,152.85],["L",157.28,152.85],["L",158.28,152.82],["L",159.29,152.75],["L",160.28,152.64],["L",161.27,152.51],["L",162.26,152.34],["L",163.23,152.14],["L",164.22,151.91],["L",165.17,151.66],["L",166.15,151.4],["L",167.11,151.12],["L",168.05,150.83],["L",169,150.51],["L",169.94,150.18],["L",170.88,149.84],["L",171.81,149.48],["L",172.74,149.1],["L",173.66,148.71],["L",173.99,148.04],["L",173.65,147.13],["L",173.29,146.18],["L",172.93,145.24],["L",172.58,144.31],["L",172.23,143.37],["L",171.88,142.44],["L",171.52,141.5],["L",171.17,140.56],["L",170.82,139.64],["L",170.46,138.7],["L",170.11,137.77],["L",169.75,136.83],["L",169.4,135.89],["L",168.85,135.6],["L",168.01,136.14],["L",167.14,136.65],["L",166.25,137.11],["L",165.34,137.51],["L",164.4,137.85],["L",163.42,138.12],["L",162.45,138.3],["L",161.46,138.39],["L",160.46,138.38],["L",159.46,138.25],["L",158.51,137.96],["L",157.62,137.51],["L",156.85,136.88],["L",156.22,136.1],["L",155.74,135.23],["L",155.4,134.29],["L",155.15,133.31],["L",154.99,132.33],["L",154.87,131.33],["L",154.81,130.34],["L",154.78,129.33],["L",154.79,128.34],["L",154.82,127.34],["L",154.87,126.35],["L",154.95,125.34],["L",155.04,124.35],["L",155.15,123.35],["L",155.27,122.37],["L",155.4,121.38],["L",155.55,120.38],["L",155.85,118.4],["L",156,117.4],["L",156.14,116.42],["L",156.29,115.43],["L",156.44,114.45],["L",156.59,113.46],["L",156.73,112.47],["L",156.88,111.47],["L",157.03,110.5],["L",157.18,109.51],["L",157.33,108.51],["L",157.47,107.53],["L",157.62,106.53],["L",157.77,105.56],["L",157.92,104.56],["L",158.22,102.58],["L",158.36,101.58],["L",158.51,100.59],["L",158.81,98.63],["L",158.95,97.64],["L",159.1,96.65],["L",159.25,95.65],["L",159.4,94.67],["L",159.55,93.68],["L",159.69,92.7],["L",159.84,91.7],["L",160.14,89.72],["L",160.29,88.72],["L",160.44,87.75],["L",160.59,86.75],["L",160.73,85.77],["L",160.88,84.77],["L",161.03,83.79],["L",161.33,81.81],["L",161.47,80.82],["L",161.62,79.84],["L",161.92,77.86],["L",162.06,76.87],["L",162.36,74.89],["L",162.51,73.89],["L",162.66,72.9],["L",162.81,71.92],["L",162.95,70.92],["L",163.1,69.94],["L",163.25,68.95],["L",163.4,67.97],["L",164.16,67.68],["L",181.15,67.68],["L",181.75,67.21],["L",181.89,66.23],["L",182.04,65.23],["L",182.19,64.24],["L",182.33,63.26],["L",182.48,62.26],["L",182.63,61.28],["L",182.77,60.29],["L",182.92,59.31],["L",183.06,58.31],["L",183.36,56.33],["L",183.5,55.34],["L",183.65,54.36],["L",183.52,53.6],["L",166.53,53.6],["L",165.7,53.44],["L",165.85,52.44],["L",166,51.47],["L",166.14,50.48],["L",166.44,48.5],["L",166.59,47.5],["L",166.73,46.52],["L",166.88,45.54],["L",167.03,44.54],["L",167.18,43.55],["L",167.32,42.57],["L",167.62,40.59],["L",167.76,39.59],["L",167.91,38.61],["L",168.06,37.61],["L",168.2,36.63],["L",168.35,35.63],["L",168.5,34.64],["L",168.65,33.66],["L",168.79,32.67],["L",169.24,29.7],["L",169.38,28.72],["L",169.53,27.72],["L",169.68,26.74],["L",168.69,26.72],["L",155.69,26.72],["L",154.92,26.99],["L",154.77,27.96],["L",154.61,28.97],["L",154.31,30.93],["L",154.16,31.92],["L",154,32.9],["L",153.85,33.91],["L",153.69,34.89],["L",153.54,35.88],["L",153.39,36.86],["L",153.24,37.85],["L",153.08,38.84],["L",152.93,39.83],["L",152.78,40.81],["L",152.62,41.81],["L",152.47,42.8],["L",152.17,44.76],["L",152.01,45.75],["L",151.86,46.75],["L",151.71,47.73],["L",151.55,48.73],["L",151.4,49.72],["L",151.25,50.7],["L",151.1,51.69],["L",150.94,52.67],["L",150.73,53.6],["L",126.02,53.6],["L",125.96,52.79],["L",126.1,51.79],["L",126.26,50.8],["L",126.41,49.82],["L",126.75,47.84],["L",127.11,45.88],["L",127.31,44.89],["L",127.51,43.92],["L",127.72,42.94],["L",127.95,41.97],["L",128.18,40.99],["L",128.43,40.03],["L",128.69,39.06],["L",128.97,38.1],["L",129.27,37.15],["L",129.58,36.19],["L",129.93,35.26],["L",130.35,34.35],["L",130.86,33.49],["L",131.45,32.67],["L",132.11,31.95],["L",132.88,31.29],["L",133.71,30.76],["L",134.61,30.32],["L",135.56,30],["L",136.53,29.77],["L",137.53,29.65],["L",138.54,29.6],["L",139.53,29.63],["L",140.52,29.72],["L",141.51,29.87],["L",142.5,30.06],["L",143.48,30.27],["L",144.46,30.49],["L",144.82,29.85],["L",144.97,28.86],["L",145.11,27.86],["L",145.26,26.87],["L",145.4,25.9],["L",145.55,24.89],["L",145.69,23.92],["L",145.84,22.92],["L",146.12,20.94],["L",146.27,19.95],["L",146.41,18.97],["L",146.56,17.98],["L",146.7,16.99],["L",146.49,16.23],["L",145.52,15.96],["L",144.54,15.75],["L",143.55,15.58],["L",142.56,15.45],["L",141.57,15.34],["L",140.57,15.27],["L",139.57,15.23],["L",138.57,15.2],["L",137.58,15.2],["L",136.58,15.24],["L",135.59,15.31],["L",134.58,15.42],["L",133.6,15.56],["L",132.62,15.75],["L",131.64,15.97],["L",130.68,16.24],["L",129.72,16.55],["L",128.79,16.9],["L",127.86,17.28],["L",126.96,17.71],["L",126.07,18.17],["L",125.21,18.68],["L",124.38,19.24],["L",123.59,19.84],["L",122.82,20.49],["L",122.09,21.16],["L",121.39,21.88],["L",120.73,22.62],["L",120.08,23.4],["L",119.48,24.19],["L",118.91,25],["L",118.35,25.85],["L",117.83,26.69],["L",117.33,27.56],["L",116.85,28.45],["L",116.4,29.33],["L",115.98,30.24],["L",115.59,31.16],["L",115.21,32.1],["L",114.87,33.02],["L",114.54,33.97],["L",114.23,34.91],["L",113.94,35.87],["L",113.66,36.83],["L",113.4,37.81],["L",113.16,38.76],["L",112.92,39.74],["L",112.71,40.73],["L",112.5,41.7],["L",112.31,42.67],["L",111.95,44.65],["L",111.79,45.63],["L",111.49,47.61],["L",111.21,49.59],["L",111.07,50.59],["L",110.79,52.57],["L",110.65,53.55],["L",109.69,53.6],["L",100.69,53.6],["L",99.89,53.82],["L",99.74,54.82],["L",99.59,55.8],["L",99.45,56.79],["L",99.3,57.79],["L",99.15,58.78],["L",99.01,59.78],["L",98.86,60.76],["L",98.72,61.75],["L",98.57,62.74],["L",98.42,63.72],["L",98.28,64.71],["L",98.13,65.69],["L",97.99,66.69],["L",97.84,67.68],["L",108.57,67.68],["L",108.61,68.51],["L",108.47,69.5],["L",108.33,70.48],["L",108.2,71.49],["L",107.92,73.45],["L",107.79,74.44],["L",107.51,76.44],["L",107.38,77.42],["L",107.1,79.4],["L",106.97,80.39],["L",106.69,82.37],["L",106.56,83.36],["L",106.42,84.36],["L",106.28,85.34],["L",106.15,86.35],["L",105.87,88.33],["L",105.74,89.31],["L",105.6,90.31],["L",105.46,91.29],["L",105.33,92.29],["L",105.19,93.28],["L",105.05,94.26],["L",104.92,95.26],["L",104.64,97.24],["L",104.51,98.23],["L",104.37,99.23],["L",104.23,100.21],["L",104.1,101.2],["L",103.96,102.19],["L",103.82,103.19],["L",103.69,104.18],["L",103.55,105.16],["L",103.41,106.16],["L",103.28,107.15],["L",103.14,108.12],["L",103,109.13],["L",102.87,110.11],["L",102.73,111.11],["L",102.59,112.1],["L",102.46,113.09],["L",102.18,115.07],["L",102.05,116.05],["L",101.91,117.05],["L",101.77,118.04],["L",101.64,119.03],["L",101.5,120.03],["L",101.36,121.02],["L",101.23,122],["L",101.09,123],["L",100.95,123.98],["L",100.82,124.97],["L",100.68,125.97],["L",100.54,126.96],["L",100.41,127.95],["L",100.27,128.93],["L",100.13,129.94],["L",100,130.92],["L",99.72,132.9],["L",99.59,133.89],["L",99.45,134.87],["L",99.31,135.88],["L",99.18,136.87],["L",99.04,137.85],["L",98.9,138.84],["L",98.77,139.83],["L",98.63,140.83],["L",98.49,141.82],["L",98.36,142.81],["L",98.22,143.79],["L",98.08,144.79],["L",97.95,145.78],["L",97.67,147.76],["L",97.54,148.75],["L",97.4,149.75],["L",97.26,150.73],["L",97.73,151.2],["L",111.73,151.2],["L",112.72,151.18],["L",112.85,150.2],["L",112.99,149.22],["L",113.12,148.23],["L",113.25,147.23],["L",113.38,146.24],["L",113.52,145.24],["L",113.65,144.26],["L",113.78,143.27],["L",113.92,142.28],["L",114.05,141.29],["L",114.18,140.28],["L",114.32,139.3],["L",114.45,138.31],["L",114.58,137.31],["L",114.72,136.32],["L",114.85,135.34],["L",115.11,133.36],["L",115.25,132.35],["L",115.38,131.37],["L",115.64,129.39],["L",115.78,128.41],["L",115.91,127.41],["L",116.04,126.42],["L",116.18,125.43],["L",116.31,124.43],["L",116.44,123.45],["L",116.57,122.46],["L",116.71,121.46],["L",116.97,119.48],["L",117.11,118.49],["L",117.37,116.51],["L",117.51,115.51],["L",117.9,112.54],["L",118.04,111.55],["L",118.17,110.56],["L",118.3,109.56],["L",118.43,108.58],["L",118.57,107.57],["L",118.7,106.6],["L",118.83,105.61],["L",118.97,104.62],["L",119.1,103.62],["L",119.23,102.63],["L",119.37,101.64],["L",119.5,100.64],["L",119.63,99.66],["L",119.77,98.66],["L",119.9,97.67],["L",120.03,96.69],["L",120.16,95.69],["L",120.3,94.7],["L",120.43,93.71],["L",120.56,92.71],["L",120.7,91.73],["L",120.83,90.74],["L",120.96,89.73],["L",121.09,88.76],["L",121.23,87.76],["L",121.36,86.76],["L",121.49,85.78],["L",121.63,84.78],["L",121.76,83.8],["L",121.89,82.8],["L",122.02,81.81],["L",122.16,80.82],["L",122.29,79.82],["L",122.42,78.84],["L",122.56,77.86],["L",122.82,75.86],["L",122.96,74.87],["L",123.09,73.89],["L",123.22,72.89],["L",123.35,71.91],["L",123.49,70.9],["L",123.62,69.91],["L",123.75,68.93],["L",123.89,67.93],["L",124.66,67.68],["L",148.43,67.68],["Z"]]},{fontSize:80,fontWeight:"normal",fontFamily:"Arial",fontStyle:"normal",lineHeight:1.3,text:"双击修改文字",charSpacing:3,textAlign:"justify-center",styles:[],pathStartOffset:0,pathSide:"left",pathAlign:"baseline",underline:!1,overline:!1,linethrough:!1,textBackgroundColor:"",direction:"ltr",minWidth:20,splitByGrapheme:!0,id:"BijrkWb91U",name:"textbox",editable:!0,color:"rgb(0,0,0)",padding:0,fill:"rgb(0,0,0)",selectable:!0,evented:!0,fillType:0,lockMovementX:!1,lockMovementY:!1,objectCaching:!1,transparentCorners:!1,hasBorders:!0,radius:66,globalCompositeOperation:"source-over",type:"Textbox",version:"6.0.0-beta12",originX:"left",originY:"top",left:154.0756,top:53.0588,width:481.2,height:90.4,stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!1,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",skewX:0,skewY:0},{fontSize:80,fontWeight:"normal",fontFamily:"Arial",fontStyle:"normal",lineHeight:1.3,text:"双击修改文字",charSpacing:3,textAlign:"justify-center",styles:[],pathStartOffset:0,pathSide:"left",pathAlign:"baseline",underline:!1,overline:!1,linethrough:!1,textBackgroundColor:"",direction:"ltr",id:"yuIEbg5-5j",name:"textbox",editable:!0,color:"rgb(0,0,0)",padding:0,fill:"rgb(0,0,0)",selectable:!0,evented:!0,fillType:0,lockMovementX:!1,lockMovementY:!1,objectCaching:!1,transparentCorners:!1,hasBorders:!0,radius:331,curvature:30.211480362537763,globalCompositeOperation:"source-over",type:"ArcText",version:"6.0.0-beta12",originX:"left",originY:"top",left:0,top:.5,width:533.8893,height:165.355,stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:.6917,scaleY:.6917,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",skewX:0,skewY:0},{fontSize:60,fontWeight:"normal",fontFamily:"Arial",fontStyle:"normal",lineHeight:12,text:"双击123修改abc文字",charSpacing:3,textAlign:"right",styles:[],pathStartOffset:0,pathSide:"left",pathAlign:"baseline",underline:!1,overline:!1,linethrough:!1,textBackgroundColor:"",direction:"rtl",id:"M_VAPTvm1m",name:"textbox",editable:!0,color:"rgb(0,0,0)",padding:0,fill:"rgb(0,0,0)",selectable:!0,evented:!0,fillType:0,lockMovementX:!1,lockMovementY:!1,objectCaching:!1,transparentCorners:!1,hasBorders:!0,radius:66,globalCompositeOperation:"source-over",type:"VerticalText",version:"6.0.0-beta12",originX:"left",originY:"top",left:673.2276,top:36.0343,width:67.8,height:562.0857,stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeDashOffset:0,strokeLineJoin:"miter",strokeUniform:!1,strokeMiterLimit:4,scaleX:1,scaleY:1,angle:0,flipX:!1,flipY:!1,opacity:1,shadow:null,visible:!0,backgroundColor:"",fillRule:"nonzero",paintFirst:"fill",skewX:0,skewY:0}],workSpace:{fillType:0,left:0,top:0,angle:0,scaleX:1,scaleY:1,color:"#ffffff",fill:"#ffffff",backgroundColor:"rgba(0,0,0,0)"},zoom:.4298950822503346,width:456.97508743145806,height:274.18505245887485}],Ka=()=>{const[e]=Xa(),t=e.getObjects().filter((e=>e.id===Ao))[0],n=e.getObjects().filter((e=>!Wo.includes(e.id))),r=de.prototype.getObjectsBoundingBox(n);let i=0,o=0,s=e.getCenterPoint(),a=e.getWidth(),l=e.getHeight();return r&&(s=new he(r.centerX,r.centerY),a=r.width,l=r.height,i=r.centerX-r.width/2,o=r.centerY-r.height/2),t&&(s=new he(t.left+t.width/2,t.top+t.height/2),a=t.width,l=t.height,i=t.left,o=t.top),{width:a,height:l,left:i,top:o,centerPoint:s}},Ja=()=>{const e=Fo(),{zoom:t,wrapperRef:n,scalePercentage:r}=jt(e),i=E((()=>Math.round(100*t.value)+"%")),o=()=>{const[t]=Xa();if(!t)return;const{zoom:n}=jt(e),i=t.getObjects().filter((e=>!Wo.includes(e.id))),o=de.prototype.getObjectsBoundingBox(i),{width:s,height:a,centerPoint:l}=Ka();o&&(n.value=Math.min(t.getWidth()/s,t.getHeight()/a)*r.value/100,t.setZoom(n.value),t.absolutePan(new he(l.x,l.y).scalarMultiply(n.value).subtract(t.getCenterPoint())))};return{canvasScalePercentage:i,setCanvasScalePercentage:e=>{const[n]=Xa(),{centerPoint:r}=Ka();n.zoomToPoint(r,e/100),t.value=n.getZoom()},setCanvasTransform:o,setWorkSpace:(e,t)=>{const[n]=Xa();if(!n)return;const r=Fo(),i=sl(),{scalePercentage:o,zoom:s,clip:a}=jt(r),{currentTemplate:l}=jt(i),c=o.value/100;let h=1;const u=l.value.width/l.value.zoom,d=l.value.height/l.value.zoom;return(ed/t?u/(e*c):d/(t*c)),s.value=1/h,a.value=l.value.clip,n.setZoom(s.value),{workWidth:u,workHeight:d}},scaleCanvas:e=>{const[n]=Xa();let r=Math.round(100*t.value);"+"===e&&r<=500&&(r+=5),"-"===e&&r>=10&&(r-=5);const{centerPoint:i}=Ka();n.zoomToPoint(i,r/100),t.value=n.getZoom()},resetCanvas:()=>{o()},setCanvasSize:()=>{const[e]=Xa(),{width:t,height:r}=xs(n.value);e.setDimensions({width:t.value,height:r.value})}}},Qa=()=>{const e=al();return{addHistorySnapshot:Re((function(){e.addSnapshot()}),300,{trailing:!0}),redo:Be((function(){e.reDo()}),100,{leading:!0,trailing:!1}),undo:Be((function(){e.unDo()}),100,{leading:!0,trailing:!1})}};function el(){return new Worker(""+new URL("pixi-b6d9c9e4.js",import.meta.url).href)}let tl;const nl=()=>{const e=window.devicePixelRatio,t=document.createElement("canvas");t.style.width="800px",t.style.height="600px",document.body.appendChild(t),tl=new el;const n=t.transferControlToOffscreen();tl.postMessage({width:800,height:600,resolution:e,view:n},[n]),il(tl),document.body.removeChild(t)},rl=(e,t)=>{if(t)for(let n=0;n{const t=sl(),[n]=Xa();e.addEventListener("message",(e=>d(void 0,null,(function*(){const r=e.data,i=n.getObjects(),o=rl(r.id,i);o instanceof Se&&(o.originSrc=o.getSrc(),yield o.setSrc(r.res),o.dirty=!0,n.renderAll(),t.modifedElement())}))))},ol=()=>[tl],sl=St("Templates",{state:()=>({templates:qa,templateIndex:0}),getters:{currentTemplate:e=>e.templates[e.templateIndex],currentTemplateWidth(e){const t=e.templates[e.templateIndex];return t.width/t.zoom},currentTemplateHeight(e){const t=e.templates[e.templateIndex];return t.height/t.zoom},currentTemplateElement(e){const t=e.templates[e.templateIndex],[n]=Xa(),r=n.getActiveObject();return t.objects.filter((e=>e.id===r.id))[0]}},actions:{renderTemplate(){return d(this,null,(function*(){const[e]=Xa(),{initCommon:t}=Ba(),{setCanvasSize:n}=Ja();yield e.loadFromJSON(this.currentTemplate),this.setObjectFilter(this.currentTemplate.objects),n(),t()}))},renderElement(){return d(this,null,(function*(){const[e]=Xa(),{initCommon:t}=Ba(),{setCanvasSize:n}=Ja(),r=Ga();e.discardActiveObject(),r.setCanvasObject(void 0),yield e.loadFromJSON(this.currentTemplate),n(),t()}))},modifedElement(){const[e]=Xa(),{addHistorySnapshot:t}=Qa(),n=e.toObject(No);this.templates[this.templateIndex].objects=n.objects,this.templates[this.templateIndex].background=n.background,this.templates[this.templateIndex].backgroundImage=n.backgroundImage,t()},setClip(e){const{addHistorySnapshot:t}=Qa();this.templates.forEach((t=>{t.clip=e})),t()},setSize(e,t,n){const{initCommon:r}=Ba(),{addHistorySnapshot:i}=Qa();this.templates.forEach((r=>{r.width=e,r.height=t,r.zoom=n,r.objects.filter((e=>e.id===Ao)).map((r=>{r.width=e/n,r.height=t/n}))})),r(),i()},setObjectFilter(e){e.forEach((e=>{e.type.toLowerCase()===is.IMAGE&&this.setImageFilter(e),e.type.toLowerCase()===is.GROUP&&this.setObjectFilter(e.objects)}))},setImageFilter(e){if(!e.pixiFilters)return;const[t]=ol();t.postMessage({id:e.id,type:"filter",src:e.src,pixiFilters:JSON.stringify(e.pixiFilters),width:e.width,height:e.height})},setImageMask(e){if(!e.mask)return;const[t]=ol();t.postMessage({id:e.id,type:"mask",src:e.src,mask:JSON.stringify(e.mask),width:e.width,height:e.height})},changeTemplate(e){return d(this,null,(function*(){const t=Ne.service({fullscreen:!0,background:"rgba(122, 122, 122, 0.5)"}),{setCanvasTransform:n}=Ja(),r=Array.isArray(e)?e:[e];this.templates=r,this.templateIndex=0,yield this.renderTemplate(),n(),C((()=>{t.close()}))}))},setTemplates(e){return d(this,null,(function*(){this.templates=e}))},clearTemplates(){this.templates=[]},setTemplateIndex(e){this.templateIndex=e},addTemplate(e){return d(this,null,(function*(){const t=Array.isArray(e)?e:[e],n=this.templateIndex+1;this.templates.splice(n,0,...t),this.templateIndex=n,yield this.renderTemplate()}))},updateTemplate(e){const{addHistorySnapshot:t}=Qa(),n=this.templateIndex;this.templates[n]=l(l({},this.templates[n]),e),t()},deleteTemplate(e){const{addHistorySnapshot:t}=Qa(),n=Array.isArray(e)?e:[e],r=[];for(let s=0;se.id===n[s]));r.push(e)}let i=Math.min(...r);const o=this.templates.length-n.length-1;i>o&&(i=o),this.templateIndex=i,this.templates=this.templates.filter((e=>!n.includes(e.id))),t()},updateWorkSpace(e){const t=this.templateIndex;this.templates[t]=l(l({},this.templates[t]),e)},updateElement(e){const{addHistorySnapshot:t}=Qa(),{id:n,props:r}=e,i="string"==typeof n?[n]:n;if(!i)return;const o=this.templates[this.templateIndex].objects.map((e=>i.includes(e.id)?l(l({},e),r):e));this.templates[this.templateIndex].objects=o,t()},addElement(e){const{addHistorySnapshot:t}=Qa(),n=Array.isArray(e)?e:[e],r=[...this.templates[this.templateIndex].objects,...n];this.templates[this.templateIndex].objects=r,t()},deleteElement(e){const{addHistorySnapshot:t}=Qa(),n=Array.isArray(e)?e:[e],r=this.templates[this.templateIndex].objects.filter((e=>!n.includes(e.id)));this.templates[this.templateIndex].objects=r,t()},setBackgroundImage(e){this.currentTemplate.backgroundImage=e}}}),al=St("snapshot",{state:()=>({snapshotCursor:-1,snapshotLength:0}),getters:{canUndo:e=>e.snapshotCursor>0,canRedo:e=>e.snapshotCursor=0&&this.snapshotCursor20&&(i.push(r[0]),s--),s>=2&&hl.snapshots.update(r[s-2],{index:e.templateIndex}),yield hl.snapshots.bulkDelete(i),this.setSnapshotCursor(s-1),this.setSnapshotLength(s)}))},unDo(){return d(this,null,(function*(){if(this.snapshotCursor<=0)return;const e=sl(),t=Ga(),n=this.snapshotCursor-1,r=(yield hl.snapshots.orderBy("id").toArray())[n],{index:i,templates:o}=r,s=i>o.length-1?o.length-1:i;e.setTemplates(o),e.setTemplateIndex(s),this.setSnapshotCursor(n),e.renderElement(),t.setCanvasObject(void 0)}))},reDo(){return d(this,null,(function*(){if(this.snapshotCursor>=this.snapshotLength-1)return;const e=sl(),t=Ga(),n=this.snapshotCursor+1,r=(yield hl.snapshots.orderBy("id").toArray())[n],{index:i,templates:o}=r,s=i>o.length-1?o.length-1:i;e.setTemplates(o),e.setTemplateIndex(s),this.setSnapshotCursor(n),e.renderElement(),t.setCanvasObject(void 0)}))}}}),ll=St("keyboard",{state:()=>({ctrlKeyState:!1,shiftKeyState:!1,spaceKeyState:!1}),getters:{ctrlOrShiftKeyActive:e=>e.ctrlKeyState||e.shiftKeyState},actions:{setCtrlKeyState(e){this.ctrlKeyState=e},setShiftKeyState(e){this.shiftKeyState=e},setSpaceKeyState(e){this.spaceKeyState=e}}}),cl="YFT";const hl=new class extends _o{constructor(){super(`${cl}_${Za}_${(new Date).getTime()}`),u(this,"snapshots"),u(this,"writingBoardImgs"),this.version(1).stores({snapshots:"++id",writingBoardImgs:"++id"}),this.snapshots=this.table("snapshots"),this.writingBoardImgs=this.table("writingBoardImgs")}},ul="undefined"!=typeof window,dl=(e,t=!1)=>t?Symbol.for(e):Symbol(e),fl=(e,t,n)=>pl({l:e,k:t,s:n}),pl=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),gl=e=>"number"==typeof e&&isFinite(e),kl=e=>"[object Date]"===Ol(e),ml=e=>"[object RegExp]"===Ol(e),vl=e=>Pl(e)&&0===Object.keys(e).length,yl=Object.assign; +/*! + * shared v9.10.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */let Ll;const wl=()=>Ll||(Ll="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function bl(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const _l=Object.prototype.hasOwnProperty;function xl(e,t){return _l.call(e,t)}const Cl=Array.isArray,Sl=e=>"function"==typeof e,jl=e=>"string"==typeof e,El=e=>"boolean"==typeof e,Ml=e=>null!==e&&"object"==typeof e,Tl=e=>Ml(e)&&Sl(e.then)&&Sl(e.catch),Al=Object.prototype.toString,Ol=e=>Al.call(e),Pl=e=>{if(!Ml(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function Il(e){let t=e;return()=>++t}function Rl(e,t){}const Bl=e=>!Ml(e)||Cl(e);function Wl(e,t){if(Bl(e)||Bl(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{Bl(e[r])||Bl(t[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]})}))}} +/*! + * message-compiler v9.10.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function Hl(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const zl=/\{([0-9a-zA-Z]+)\}/g;const Nl=Object.assign,Dl=e=>"string"==typeof e,Fl=e=>null!==e&&"object"==typeof e;function Vl(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}const Ul={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},$l={[Ul.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ul.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ul.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ul.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ul.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ul.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ul.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ul.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ul.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ul.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ul.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ul.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ul.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ul.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ul.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ul.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Yl(e,t,n={}){const{domain:r,messages:i,args:o}=n,s=function(e,...t){return 1===t.length&&Fl(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(zl,((e,n)=>t.hasOwnProperty(n)?t[n]:""))}((i||$l)[e]||"",...o||[]),a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=r,a}function Xl(e){throw e}const Zl=" ",Gl="\r",ql="\n",Kl=String.fromCharCode(8232),Jl=String.fromCharCode(8233);function Ql(e){const t=e;let n=0,r=1,i=1,o=0;const s=e=>t[e]===Gl&&t[e+1]===ql,a=e=>t[e]===Jl,l=e=>t[e]===Kl,c=e=>s(e)||(e=>t[e]===ql)(e)||a(e)||l(e),h=e=>s(e)||a(e)||l(e)?ql:t[e];function u(){return o=0,c(n)&&(r++,i=0),s(n)&&n++,n++,i++,t[n]}return{index:()=>n,line:()=>r,column:()=>i,peekOffset:()=>o,charAt:h,currentChar:()=>h(n),currentPeek:()=>h(n+o),next:u,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,i=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)u();o=0}}}const ec=void 0,tc=".",nc="'",rc="tokenizer";function ic(e,t={}){const n=!1!==t.location,r=Ql(e),i=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=o(),a=i(),l={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:h}=t;function u(e,t,r,...i){const o=c();if(t.column+=r,t.offset+=r,h){const r=Yl(e,n?Hl(o.startLoc,t):null,{domain:rc,args:i});h(r)}}function d(e,t,r){e.endLoc=o(),e.currentType=t;const i={type:t};return n&&(i.loc=Hl(e.startLoc,e.endLoc)),null!=r&&(i.value=r),i}const f=e=>d(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(u(Ul.EXPECTED_TOKEN,o(),0,t),"")}function g(e){let t="";for(;e.currentPeek()===Zl||e.currentPeek()===ql;)t+=e.currentPeek(),e.peek();return t}function k(e){const t=g(e);return e.skipToPeek(),t}function m(e){if(e===ec)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=function(e){if(e===ec)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function y(e){g(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function L(e,t=!0){const n=(t=!1,r="",i=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!i)||!(r===Zl||r===ql):o===Zl?(e.peek(),n(!0,Zl,i)):o!==ql||(e.peek(),n(!0,ql,i)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function w(e,t){const n=e.currentChar();return n===ec?ec:t(n)?(e.next(),n):null}function b(e){return w(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function _(e){return w(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function x(e){return w(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function C(e){let t="",n="";for(;t=_(e);)n+=t;return n}function S(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!L(e))break;t+=n,e.next()}else if(n===Zl||n===ql)if(L(e))t+=n,e.next();else{if(y(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function j(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return E(e,t,4);case"U":return E(e,t,6);default:return u(Ul.UNKNOWN_ESCAPE_SEQUENCE,o(),0,t),""}}function E(e,t,n){p(e,t);let r="";for(let i=0;i=1&&u(Ul.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),e.next(),n=d(t,2,"{"),k(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&u(Ul.EMPTY_PLACEHOLDER,o(),0),e.next(),n=d(t,3,"}"),t.braceNest--,t.braceNest>0&&k(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&u(Ul.UNTERMINATED_CLOSING_BRACE,o(),0),n=A(e,t)||f(t),t.braceNest=0,n;default:let r=!0,i=!0,s=!0;if(y(e))return t.braceNest>0&&u(Ul.UNTERMINATED_CLOSING_BRACE,o(),0),n=d(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return u(Ul.UNTERMINATED_CLOSING_BRACE,o(),0),t.braceNest=0,O(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=m(e.currentPeek());return e.resetPeek(),r}(e,t))return n=d(t,5,function(e){k(e);let t="",n="";for(;t=b(e);)n+=t;return e.currentChar()===ec&&u(Ul.UNTERMINATED_CLOSING_BRACE,o(),0),n}(e)),k(e),n;if(i=v(e,t))return n=d(t,6,function(e){k(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${C(e)}`):t+=C(e),e.currentChar()===ec&&u(Ul.UNTERMINATED_CLOSING_BRACE,o(),0),t}(e)),k(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=e.currentPeek()===nc;return e.resetPeek(),r}(e,t))return n=d(t,7,function(e){k(e),p(e,"'");let t="",n="";const r=e=>e!==nc&&e!==ql;for(;t=w(e,r);)n+="\\"===t?j(e):t;const i=e.currentChar();return i===ql||i===ec?(u(Ul.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),i===ql&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),k(e),n;if(!r&&!i&&!s)return n=d(t,13,function(e){k(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==Zl&&e!==ql;for(;t=w(e,r);)n+=t;return n}(e)),u(Ul.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,n.value),k(e),n}return n}function A(e,t){const{currentType:n}=t;let r=null;const i=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||i!==ql&&i!==Zl||u(Ul.INVALID_LINKED_FORMAT,o(),0),i){case"@":return e.next(),r=d(t,8,"@"),t.inLinked=!0,r;case".":return k(e),e.next(),d(t,9,".");case":":return k(e),e.next(),d(t,10,":");default:return y(e)?(r=d(t,1,M(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;g(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;g(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(k(e),A(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;g(e);const r=m(e.currentPeek());return e.resetPeek(),r}(e,t)?(k(e),d(t,12,function(e){let t="",n="";for(;t=b(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?m(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===Zl||!t)&&(t===ql?(e.peek(),r()):m(t))},i=r();return e.resetPeek(),i}(e,t)?(k(e),"{"===i?T(e,t)||r:d(t,11,function(e){const t=(n=!1,r)=>{const i=e.currentChar();return"{"!==i&&"%"!==i&&"@"!==i&&"|"!==i&&"("!==i&&")"!==i&&i?i===Zl?r:i===ql||i===tc?(r+=i,e.next(),t(n,r)):(r+=i,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&u(Ul.INVALID_LINKED_FORMAT,o(),0),t.braceNest=0,t.inLinked=!1,O(e,t))}}function O(e,t){let n={type:14};if(t.braceNest>0)return T(e,t)||f(t);if(t.inLinked)return A(e,t)||f(t);switch(e.currentChar()){case"{":return T(e,t)||f(t);case"}":return u(Ul.UNBALANCED_CLOSING_BRACE,o(),0),e.next(),d(t,3,"}");case"@":return A(e,t)||f(t);default:if(y(e))return n=d(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:i}=function(e){const t=g(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return i?d(t,0,S(e)):d(t,4,function(e){k(e);const t=e.currentChar();return"%"!==t&&u(Ul.EXPECTED_TOKEN,o(),0,t),e.next(),"%"}(e));if(L(e))return d(t,0,S(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=i(),l.startLoc=o(),r.currentChar()===ec?d(l,14):O(r,l)},currentOffset:i,currentPosition:o,context:c}}const oc="parser",sc=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ac(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function lc(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,r,i,o,...s){const a=e.currentPosition();if(a.offset+=o,a.column+=o,n){const e=Yl(r,t?Hl(i,a):null,{domain:oc,args:s});n(e)}}function i(e,n,r){const i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function o(e,n,r,i){i&&(e.type=i),t&&(e.end=n,e.loc&&(e.loc.end=r))}function s(e,t){const n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}function a(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,a=i(5,r,s);return a.index=parseInt(t,10),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,a=i(4,r,s);return a.key=t,e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function c(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,a=i(9,r,s);return a.value=t.replace(sc,ac),e.nextToken(),o(a,e.currentOffset(),e.currentPosition()),a}function h(e){const t=e.context(),n=i(6,t.offset,t.startLoc);let s=e.nextToken();if(9===s.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:a}=n,l=i(8,s,a);return 12!==t.type?(r(e,Ul.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",o(l,s,a),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,cc(t)),l.value=t.value||"",o(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(10!==s.type&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,cc(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 11:null==s.value&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,cc(s)),n.key=function(e,t){const n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,o(r,e.currentOffset(),e.currentPosition()),r}(e,s.value||"");break;case 5:null==s.value&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,cc(s)),n.key=l(e,s.value||"");break;case 6:null==s.value&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,cc(s)),n.key=a(e,s.value||"");break;case 7:null==s.value&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,cc(s)),n.key=c(e,s.value||"");break;default:r(e,Ul.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const h=e.context(),u=i(7,h.offset,h.startLoc);return u.value="",o(u,h.offset,h.startLoc),n.key=u,o(n,h.offset,h.startLoc),{nextConsumeToken:s,node:n}}return o(n,e.currentOffset(),e.currentPosition()),{node:n}}function u(e){const t=e.context(),n=i(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let u=null;do{const i=u||e.nextToken();switch(u=null,i.type){case 0:null==i.value&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,cc(i)),n.items.push(s(e,i.value||""));break;case 6:null==i.value&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,cc(i)),n.items.push(a(e,i.value||""));break;case 5:null==i.value&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,cc(i)),n.items.push(l(e,i.value||""));break;case 7:null==i.value&&r(e,Ul.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,cc(i)),n.items.push(c(e,i.value||""));break;case 8:const o=h(e);n.items.push(o.node),u=o.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return o(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function d(e){const t=e.context(),{offset:n,startLoc:s}=t,a=u(e);return 14===t.currentType?a:function(e,t,n,s){const a=e.context();let l=0===s.items.length;const c=i(1,t,n);c.cases=[],c.cases.push(s);do{const t=u(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==a.currentType);return l&&r(e,Ul.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),o(c,e.currentOffset(),e.currentPosition()),c}(e,n,s,a)}return{parse:function(n){const s=ic(n,Nl({},e)),a=s.context(),l=i(0,a.offset,a.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=d(s),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),14!==a.currentType&&r(s,Ul.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,n[a.offset]||""),o(l,s.currentOffset(),s.currentPosition()),l}}}function cc(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function hc(e,t){for(let n=0;nn,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&uc(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function fc(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let n=0;n{const n=Dl(t.mode)?t.mode:"normal",r=Dl(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:o}=t,s=!1!==t.location,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:o,indentLevel:0};function l(e,t){a.code+=e}function c(e,t=!0){const n=t?i:"";l(o?n+" ".repeat(e):n)}return s&&e.loc&&(a.source=e.loc.source),{context:()=>a,push:l,indent:function(e=!0){const t=++a.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&c(t)},newline:function(){c(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{mode:n,filename:r,sourceMap:i,breakLineCode:o,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),a.length>0&&(l.push(`const { ${Vl(a.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),mc(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:h}=l.context();return{ast:e,code:c,map:h?h.toJSON():void 0}};function yc(e,t={}){const n=Nl({},t),r=!!n.jit,i=!!n.minify,o=null==n.optimize||n.optimize,s=lc(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?fc(t):t.cases.forEach((e=>fc(e)))}(s),i&&gc(s),{ast:s,code:""}):(dc(s,n),vc(s,n))} +/*! + * core-base v9.10.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const Lc=[];Lc[0]={w:[0],i:[3,0],"[":[4],o:[7]},Lc[1]={w:[1],".":[2],"[":[4],o:[7]},Lc[2]={w:[2],i:[3,0],0:[3,0]},Lc[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Lc[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Lc[5]={"'":[4,0],o:8,l:[5,0]},Lc[6]={'"':[4,0],o:8,l:[6,0]};const wc=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function bc(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function _c(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,wc.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const xc=new Map;function Cc(e,t){return Ml(e)?e[t]:null}const Sc=e=>e,jc=e=>"",Ec="text",Mc=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}(e),Tc=e=>null==e?"":Cl(e)||Pl(e)&&e.toString===Al?JSON.stringify(e,null,2):String(e);function Ac(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Oc(e={}){const t=e.locale,n=function(e){const t=gl(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(gl(e.named.count)||gl(e.named.n))?gl(e.named.count)?e.named.count:gl(e.named.n)?e.named.n:t:t}(e),r=Ml(e.pluralRules)&&jl(t)&&Sl(e.pluralRules[t])?e.pluralRules[t]:Ac,i=Ml(e.pluralRules)&&jl(t)&&Sl(e.pluralRules[t])?Ac:void 0,o=e.list||[],s=e.named||{};gl(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function a(t){const n=Sl(e.messages)?e.messages(t):!!Ml(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):jc)}const l=Pl(e.processor)&&Sl(e.processor.normalize)?e.processor.normalize:Mc,c=Pl(e.processor)&&Sl(e.processor.interpolate)?e.processor.interpolate:Tc,h={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,i)],linked:(t,...n)=>{const[r,i]=n;let o="text",s="";1===n.length?Ml(r)?(s=r.modifier||s,o=r.type||o):jl(r)&&(s=r||s):2===n.length&&(jl(r)&&(s=r||s),jl(i)&&(o=i||o));const l=a(t)(h),c="vnode"===o&&Cl(l)&&s?l[0]:l;return s?(u=s,e.modifiers?e.modifiers[u]:Sc)(c,o):c;var u},message:a,type:Pl(e.processor)&&jl(e.processor.type)?e.processor.type:Ec,interpolate:c,normalize:l,values:yl({},o,s)};return h}let Pc=null;const Ic=Rc("function:translate");function Rc(e){return t=>Pc&&Pc.emit(e,t)}const Bc=Ul.__EXTEND_POINT__,Wc=Il(Bc),Hc={INVALID_ARGUMENT:Bc,INVALID_DATE_ARGUMENT:Wc(),INVALID_ISO_DATE_ARGUMENT:Wc(),NOT_SUPPORT_NON_STRING_MESSAGE:Wc(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Wc(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Wc(),NOT_SUPPORT_LOCALE_TYPE:Wc(),__EXTEND_POINT__:Wc()};function zc(e){return Yl(e,null,void 0)}function Nc(e,t){return null!=t.locale?Fc(t.locale):Fc(e.locale)}let Dc;function Fc(e){if(jl(e))return e;if(Sl(e)){if(e.resolvedOnce&&null!=Dc)return Dc;if("Function"===e.constructor.name){const t=e();if(Tl(t))throw zc(Hc.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Dc=t}throw zc(Hc.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw zc(Hc.NOT_SUPPORT_LOCALE_TYPE)}function Vc(e,t,n){return[...new Set([n,...Cl(t)?t:Ml(t)?Object.keys(t):jl(t)?[t]:[n]])]}function Uc(e,t,n){const r=jl(n)?n:qc,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;Cl(e);)e=$c(o,e,t);const s=Cl(t)||!Pl(t)?t:t.default?t.default:null;e=jl(s)?[s]:s,Cl(e)&&$c(o,e,!1),i.__localeChainCache.set(r,o)}return o}function $c(e,t,n){let r=!0;for(let i=0;i`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Qc,eh,th;function nh(e){Qc=e}let rh=null;const ih=()=>rh;let oh=null;const sh=e=>{oh=e},ah=()=>oh;let lh=0;function ch(e={}){const t=Sl(e.onWarn)?e.onWarn:Rl,n=jl(e.version)?e.version:Zc,r=jl(e.locale)||Sl(e.locale)?e.locale:qc,i=Sl(r)?qc:r,o=Cl(e.fallbackLocale)||Pl(e.fallbackLocale)||jl(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i,s=Pl(e.messages)?e.messages:{[i]:{}},a=Pl(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=Pl(e.numberFormats)?e.numberFormats:{[i]:{}},c=yl({},e.modifiers||{},{upper:(e,t)=>"text"===t&&jl(e)?e.toUpperCase():"vnode"===t&&Ml(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&jl(e)?e.toLowerCase():"vnode"===t&&Ml(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&jl(e)?Jc(e):"vnode"===t&&Ml(e)&&"__v_isVNode"in e?Jc(e.children):e}),h=e.pluralRules||{},u=Sl(e.missing)?e.missing:null,d=!El(e.missingWarn)&&!ml(e.missingWarn)||e.missingWarn,f=!El(e.fallbackWarn)&&!ml(e.fallbackWarn)||e.fallbackWarn,p=!!e.fallbackFormat,g=!!e.unresolving,k=Sl(e.postTranslation)?e.postTranslation:null,m=Pl(e.processor)?e.processor:null,v=!El(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,L=Sl(e.messageCompiler)?e.messageCompiler:Qc,w=Sl(e.messageResolver)?e.messageResolver:eh||Cc,b=Sl(e.localeFallbacker)?e.localeFallbacker:th||Vc,_=Ml(e.fallbackContext)?e.fallbackContext:void 0,x=e,C=Ml(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,S=Ml(x.__numberFormatters)?x.__numberFormatters:new Map,j=Ml(x.__meta)?x.__meta:{};lh++;const E={version:n,cid:lh,locale:r,fallbackLocale:o,messages:s,modifiers:c,pluralRules:h,missing:u,missingWarn:d,fallbackWarn:f,fallbackFormat:p,unresolving:g,postTranslation:k,processor:m,warnHtmlMessage:v,escapeParameter:y,messageCompiler:L,messageResolver:w,localeFallbacker:b,fallbackContext:_,onWarn:t,__meta:j};return E.datetimeFormats=a,E.numberFormats=l,E.__datetimeFormatters=C,E.__numberFormatters=S,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){Pc&&Pc.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(E,n,j),E}function hh(e,t,n,r,i){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,i);return jl(r)?r:t}return t}function uh(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function dh(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,fh(e,n)]),[]))}return fh(e,n)}(t,e)}function fh(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,ph(e,n)]),[]);return e.normalize(n)}}function ph(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const i=t;return i.v||i.value;case 4:const o=t;return e.interpolate(e.named(o.k||o.key));case 5:const s=t;return e.interpolate(e.list(null!=s.i?s.i:s.index));case 6:const a=t,l=a.m||a.modifier;return e.linked(ph(e,a.k||a.key),l?ph(e,l):void 0,e.type);case 7:const c=t;return c.v||c.value;case 8:const h=t;return h.v||h.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const gh=e=>e;let kh=Object.create(null);const mh=e=>Ml(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);function vh(e,t={}){let n=!1;const r=t.onError||Xl;return t.onError=e=>{n=!0,r(e)},c(l({},yc(e,t)),{detectError:n})}const yh=(e,t)=>{if(!jl(e))throw zc(Hc.NOT_SUPPORT_NON_STRING_MESSAGE);{!El(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||gh)(e),r=kh[n];if(r)return r;const{code:i,detectError:o}=vh(e,t),s=new Function(`return ${i}`)();return o?s:kh[n]=s}};const Lh=()=>"",wh=e=>Sl(e);function bh(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:s,messages:a}=e,[l,c]=Ch(...t),h=El(c.missingWarn)?c.missingWarn:e.missingWarn,u=El(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,d=El(c.escapeParameter)?c.escapeParameter:e.escapeParameter,f=!!c.resolvedMessage,p=jl(c.default)||El(c.default)?El(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:"",g=n||""!==p,k=Nc(e,c);d&&function(e){Cl(e.list)?e.list=e.list.map((e=>jl(e)?bl(e):e)):Ml(e.named)&&Object.keys(e.named).forEach((t=>{jl(e.named[t])&&(e.named[t]=bl(e.named[t]))}))}(c);let[m,v,y]=f?[l,k,a[k]||{}]:_h(e,l,k,s,u,h),L=m,w=l;if(f||jl(L)||mh(L)||wh(L)||g&&(L=p,w=L),!(f||(jl(L)||mh(L)||wh(L))&&jl(v)))return i?Gc:l;let b=!1;const _=wh(L)?L:xh(e,l,v,L,w,(()=>{b=!0}));if(b)return L;const x=function(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:s,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:h}=e,u=r=>{let i=s(n,r);if(null==i&&h){const[,,e]=_h(h,r,t,a,l,c);i=s(e,r)}if(jl(i)||mh(i)){let n=!1;const o=xh(e,r,t,i,r,(()=>{n=!0}));return n?Lh:o}return wh(i)?i:Lh},d={locale:t,modifiers:i,pluralRules:o,messages:u};e.processor&&(d.processor=e.processor);r.list&&(d.list=r.list);r.named&&(d.named=r.named);gl(r.plural)&&(d.pluralIndex=r.plural);return d}(e,v,y,c),C=function(e,t,n){const r=t(n);return r}(0,_,Oc(x)),S=r?r(C,l):C;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:jl(l)?l:wh(L)?L.key:"",locale:v||(wh(L)?L.locale:""),format:jl(L)?L:wh(L)?L.source:"",message:S};t.meta=yl({},e.__meta,ih()||{}),Ic(t)}return S}function _h(e,t,n,r,i,o){const{messages:s,onWarn:a,messageResolver:l,localeFallbacker:c}=e,h=c(e,r,n);let u,d={},f=null;for(let p=0;pr;return e.locale=n,e.key=t,e}const l=s(r,function(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw o&&o(e),e},onCacheKey:e=>fl(t,n,e)}}(0,n,i,0,a,o));return l.locale=n,l.key=t,l.source=r,l}function Ch(...e){const[t,n,r]=e,i={};if(!(jl(t)||gl(t)||wh(t)||mh(t)))throw zc(Hc.INVALID_ARGUMENT);const o=gl(t)?String(t):(wh(t),t);return gl(n)?i.plural=n:jl(n)?i.default=n:Pl(n)&&!vl(n)?i.named=n:Cl(n)&&(i.list=n),gl(r)?i.plural=r:jl(r)?i.default=r:Pl(r)&&yl(i,r),[o,i]}function Sh(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:a}=e,[l,c,h,u]=Eh(...t);El(h.missingWarn)?h.missingWarn:e.missingWarn;El(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn;const d=!!h.part,f=Nc(e,h),p=s(e,i,f);if(!jl(l)||""===l)return new Intl.DateTimeFormat(f,u).format(c);let g,k={},m=null;for(let L=0;L{jh.includes(e)?a[e]=n[e]:o[e]=n[e]})),jl(r)?o.locale=r:Pl(r)&&(a=r),Pl(i)&&(a=i),[o.key||"",s,o,a]}function Mh(e,t,n){const r=e;for(const i in n){const e=`${t}__${i}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function Th(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:a}=e,[l,c,h,u]=Oh(...t);El(h.missingWarn)?h.missingWarn:e.missingWarn;El(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn;const d=!!h.part,f=Nc(e,h),p=s(e,i,f);if(!jl(l)||""===l)return new Intl.NumberFormat(f,u).format(c);let g,k={},m=null;for(let L=0;L{Ah.includes(e)?s[e]=n[e]:o[e]=n[e]})),jl(r)?o.locale=r:Pl(r)&&(s=r),Pl(i)&&(s=i),[o.key||"",a,o,s]}function Ph(e,t,n){const r=e;for(const i in n){const e=`${t}__${i}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(wl().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_JIT_COMPILATION__&&(wl().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(wl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1); +/*! + * vue-i18n v9.10.1 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */ +const Ih="9.10.1";const Rh=Il(8);Rh(),Rh(),Rh(),Rh(),Rh(),Rh(),Rh(),Rh(),Rh();const Bh=Hc.__EXTEND_POINT__,Wh=Il(Bh),Hh={UNEXPECTED_RETURN_TYPE:Bh,INVALID_ARGUMENT:Wh(),MUST_BE_CALL_SETUP_TOP:Wh(),NOT_INSTALLED:Wh(),NOT_AVAILABLE_IN_LEGACY_MODE:Wh(),REQUIRED_VALUE:Wh(),INVALID_VALUE:Wh(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Wh(),NOT_INSTALLED_WITH_PROVIDE:Wh(),UNEXPECTED_ERROR:Wh(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Wh(),BRIDGE_SUPPORT_VUE_2_ONLY:Wh(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Wh(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Wh(),__EXTEND_POINT__:Wh()};function zh(e,...t){return Yl(e,null,void 0)}const Nh=dl("__translateVNode"),Dh=dl("__datetimeParts"),Fh=dl("__numberParts"),Vh=dl("__setPluralRules"),Uh=dl("__injectWithOption"),$h=dl("__dispose");function Yh(e){if(!Ml(e))return e;for(const t in e)if(xl(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let e=0;e{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},Wl(n,s[t])):Wl(n,s)}else jl(e)&&Wl(JSON.parse(e),s)})),null==i&&o)for(const a in s)xl(s,a)&&Yh(s[a]);return s}function Zh(e){return e.type}function Gh(e,t,n){let r=Ml(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Xh(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);if(i.length&&i.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),Ml(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(Ml(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function qh(e){return z(N,null,e,0)}const Kh=()=>[],Jh=()=>!1;let Qh=0;function eu(e){return(t,n,r,i)=>e(n,r,A()||void 0,i)}function tu(e={},t){const{__root:n,__injectWithOption:r}=e,i=void 0===n,o=e.flatJson,s=ul?p:P,a=!!e.translateExistCompatible;let l=!El(e.inheritLocale)||e.inheritLocale;const c=s(n&&l?n.locale.value:jl(e.locale)?e.locale:qc),h=s(n&&l?n.fallbackLocale.value:jl(e.fallbackLocale)||Cl(e.fallbackLocale)||Pl(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),u=s(Xh(c.value,e)),d=s(Pl(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),f=s(Pl(e.numberFormats)?e.numberFormats:{[c.value]:{}});let g=n?n.missingWarn:!El(e.missingWarn)&&!ml(e.missingWarn)||e.missingWarn,m=n?n.fallbackWarn:!El(e.fallbackWarn)&&!ml(e.fallbackWarn)||e.fallbackWarn,v=n?n.fallbackRoot:!El(e.fallbackRoot)||e.fallbackRoot,y=!!e.fallbackFormat,L=Sl(e.missing)?e.missing:null,w=Sl(e.missing)?eu(e.missing):null,b=Sl(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:!El(e.warnHtmlMessage)||e.warnHtmlMessage,x=!!e.escapeParameter;const C=n?n.modifiers:Pl(e.modifiers)?e.modifiers:{};let S,j=e.pluralRules||n&&n.pluralRules;S=(()=>{i&&sh(null);const t={version:Ih,locale:c.value,fallbackLocale:h.value,messages:u.value,modifiers:C,pluralRules:j,missing:null===w?void 0:w,missingWarn:g,fallbackWarn:m,fallbackFormat:y,unresolving:!0,postTranslation:null===b?void 0:b,warnHtmlMessage:_,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=d.value,t.numberFormats=f.value,t.__datetimeFormatters=Pl(S)?S.__datetimeFormatters:void 0,t.__numberFormatters=Pl(S)?S.__numberFormatters:void 0;const n=ch(t);return i&&sh(n),n})(),uh(S,c.value,h.value);const M=E({get:()=>c.value,set:e=>{c.value=e,S.locale=c.value}}),T=E({get:()=>h.value,set:e=>{h.value=e,S.fallbackLocale=h.value,uh(S,c.value,e)}}),A=E((()=>u.value)),O=E((()=>d.value)),I=E((()=>f.value));const R=(e,t,r,o,s,a)=>{let l;c.value,h.value,u.value,d.value,f.value;try{__INTLIFY_PROD_DEVTOOLS__,i||(S.fallbackContext=n?ah():void 0),l=e(S)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(S.fallbackContext=void 0)}if("translate exists"!==r&&gl(l)&&l===Gc||"translate exists"===r&&!l){const[e,r]=t();return n&&v?o(n):s(e)}if(a(l))return l;throw zh(Hh.UNEXPECTED_RETURN_TYPE)};function B(...e){return R((t=>Reflect.apply(bh,null,[t,...e])),(()=>Ch(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>jl(e)))}const W={normalize:function(e){return e.map((e=>jl(e)||gl(e)||El(e)?qh(String(e)):e))},interpolate:e=>e,type:"vnode"};function H(e){return u.value[e]||{}}Qh++,n&&ul&&(k(n.locale,(e=>{l&&(c.value=e,S.locale=e,uh(S,c.value,h.value))})),k(n.fallbackLocale,(e=>{l&&(h.value=e,S.fallbackLocale=e,uh(S,c.value,h.value))})));const z={id:Qh,locale:M,fallbackLocale:T,get inheritLocale(){return l},set inheritLocale(e){l=e,e&&n&&(c.value=n.locale.value,h.value=n.fallbackLocale.value,uh(S,c.value,h.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:A,get modifiers(){return C},get pluralRules(){return j||{}},get isGlobal(){return i},get missingWarn(){return g},set missingWarn(e){g=e,S.missingWarn=g},get fallbackWarn(){return m},set fallbackWarn(e){m=e,S.fallbackWarn=m},get fallbackRoot(){return v},set fallbackRoot(e){v=e},get fallbackFormat(){return y},set fallbackFormat(e){y=e,S.fallbackFormat=y},get warnHtmlMessage(){return _},set warnHtmlMessage(e){_=e,S.warnHtmlMessage=e},get escapeParameter(){return x},set escapeParameter(e){x=e,S.escapeParameter=e},t:B,getLocaleMessage:H,setLocaleMessage:function(e,t){if(o){const n={[e]:t};for(const e in n)xl(n,e)&&Yh(n[e]);t=n[e]}u.value[e]=t,S.messages=u.value},mergeLocaleMessage:function(e,t){u.value[e]=u.value[e]||{};const n={[e]:t};if(o)for(const r in n)xl(n,r)&&Yh(n[r]);Wl(t=n[e],u.value[e]),S.messages=u.value},getPostTranslationHandler:function(){return Sl(b)?b:null},setPostTranslationHandler:function(e){b=e,S.postTranslation=e},getMissingHandler:function(){return L},setMissingHandler:function(e){null!==e&&(w=eu(e)),L=e,S.missing=w},[Vh]:function(e){j=e,S.pluralRules=j}};return z.datetimeFormats=O,z.numberFormats=I,z.rt=function(...e){const[t,n,r]=e;if(r&&!Ml(r))throw zh(Hh.INVALID_ARGUMENT);return B(t,n,yl({resolvedMessage:!0},r||{}))},z.te=function(e,t){return R((()=>{if(!e)return!1;const n=H(jl(t)?t:c.value),r=S.messageResolver(n,e);return a?null!=r:mh(r)||wh(r)||jl(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Jh,(e=>El(e)))},z.tm=function(e){const t=function(e){let t=null;const n=Uc(S,h.value,c.value);for(let r=0;rReflect.apply(Sh,null,[t,...e])),(()=>Eh(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Kc),(e=>jl(e)))},z.n=function(...e){return R((t=>Reflect.apply(Th,null,[t,...e])),(()=>Oh(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Kc),(e=>jl(e)))},z.getDateTimeFormat=function(e){return d.value[e]||{}},z.setDateTimeFormat=function(e,t){d.value[e]=t,S.datetimeFormats=d.value,Mh(S,e,t)},z.mergeDateTimeFormat=function(e,t){d.value[e]=yl(d.value[e]||{},t),S.datetimeFormats=d.value,Mh(S,e,t)},z.getNumberFormat=function(e){return f.value[e]||{}},z.setNumberFormat=function(e,t){f.value[e]=t,S.numberFormats=f.value,Ph(S,e,t)},z.mergeNumberFormat=function(e,t){f.value[e]=yl(f.value[e]||{},t),S.numberFormats=f.value,Ph(S,e,t)},z[Uh]=r,z[Nh]=function(...e){return R((t=>{let n;const r=t;try{r.processor=W,n=Reflect.apply(bh,null,[r,...e])}finally{r.processor=null}return n}),(()=>Ch(...e)),"translate",(t=>t[Nh](...e)),(e=>[qh(e)]),(e=>Cl(e)))},z[Dh]=function(...e){return R((t=>Reflect.apply(Sh,null,[t,...e])),(()=>Eh(...e)),"datetime format",(t=>t[Dh](...e)),Kh,(e=>jl(e)||Cl(e)))},z[Fh]=function(...e){return R((t=>Reflect.apply(Th,null,[t,...e])),(()=>Oh(...e)),"number format",(t=>t[Fh](...e)),Kh,(e=>jl(e)||Cl(e)))},z}function nu(e={},t){{const t=tu(function(e){const t=jl(e.locale)?e.locale:qc,n=jl(e.fallbackLocale)||Cl(e.fallbackLocale)||Pl(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=Sl(e.missing)?e.missing:void 0,i=!El(e.silentTranslationWarn)&&!ml(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!El(e.silentFallbackWarn)&&!ml(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!El(e.fallbackRoot)||e.fallbackRoot,a=!!e.formatFallbackMessages,l=Pl(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,h=Sl(e.postTranslation)?e.postTranslation:void 0,u=!jl(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,d=!!e.escapeParameterHtml,f=!El(e.sync)||e.sync;let p=e.messages;if(Pl(e.sharedMessages)){const t=e.sharedMessages;p=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return yl(r,t[n]),e}),p||{})}const{__i18n:g,__root:k,__injectWithOption:m}=e,v=e.datetimeFormats,y=e.numberFormats,L=e.flatJson,w=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:p,flatJson:L,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:s,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:h,warnHtmlMessage:u,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:f,translateExistCompatible:w,__i18n:g,__root:k,__injectWithOption:m}}(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return El(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=El(e)?!e:e},get silentFallbackWarn(){return El(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=El(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,i]=e,o={};let s=null,a=null;if(!jl(n))throw zh(Hh.INVALID_ARGUMENT);const l=n;return jl(r)?o.locale=r:Cl(r)?s=r:Pl(r)&&(a=r),Cl(i)?s=i:Pl(i)&&(a=i),Reflect.apply(t.t,t,[l,s||a||{},o])},rt:(...e)=>Reflect.apply(t.rt,t,[...e]),tc(...e){const[n,r,i]=e,o={plural:1};let s=null,a=null;if(!jl(n))throw zh(Hh.INVALID_ARGUMENT);const l=n;return jl(r)?o.locale=r:gl(r)?o.plural=r:Cl(r)?s=r:Pl(r)&&(a=r),jl(i)?o.locale=i:Cl(i)?s=i:Pl(i)&&(a=i),Reflect.apply(t.t,t,[l,s||a||{},o])},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1};return r.__extender=n,r}}const ru={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function iu(e){return H}const ou=I({name:"i18n-t",props:yl({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>gl(e)||!isNaN(e)}},ru),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||gu({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=jl(e.plural)?+e.plural:e.plural);const a=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===H?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,o),l=i[Nh](e.keypath,a,s),c=yl({},r),h=jl(e.tag)||Ml(e.tag)?e.tag:iu();return R(h,c,l)}}});function su(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),jl(e.format)?t.key=e.format:Ml(e.format)&&(jl(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?yl({},t,{[r]:e.format[r]}):t),{}));const a=r(e.value,t,s);let l=[t.key];Cl(a)?l=a.map(((e,t)=>{const n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:a}):[e.value];var o;return Cl(o=r)&&!jl(o[0])&&(r[0].key=`${e.type}-${t}`),r})):jl(a)&&(l=[a]);const c=yl({},o),h=jl(e.tag)||Ml(e.tag)?e.tag:iu();return R(h,c,l)}}const au=I({name:"i18n-n",props:yl({value:{type:Number,required:!0},format:{type:[String,Object]}},ru),setup(e,t){const n=e.i18n||gu({useScope:"parent",__useComponent:!0});return su(e,t,Ah,((...e)=>n[Fh](...e)))}}),lu=I({name:"i18n-d",props:yl({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ru),setup(e,t){const n=e.i18n||gu({useScope:"parent",__useComponent:!0});return su(e,t,jh,((...e)=>n[Dh](...e)))}});function cu(e){if(jl(e))return{path:e};if(Pl(e)){if(!("path"in e))throw zh(Hh.REQUIRED_VALUE);return e}throw zh(Hh.INVALID_VALUE)}function hu(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,s={},a=r||{};return jl(n)&&(s.locale=n),gl(i)&&(s.plural=i),gl(o)&&(s.plural=o),[t,a,s]}function uu(e,t,...n){const r=Pl(n[0])?n[0]:{},i=!!r.useI18nComponentName;(!El(r.globalInstall)||r.globalInstall)&&([i?"i18n":ou.name,"I18nT"].forEach((t=>e.component(t,ou))),[au.name,"I18nN"].forEach((t=>e.component(t,au))),[lu.name,"I18nD"].forEach((t=>e.component(t,lu)))),e.directive("t",function(e){const t=t=>{const{instance:n,modifiers:r,value:i}=t;if(!n||!n.$)throw zh(Hh.UNEXPECTED_ERROR);const o=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),s=cu(i);return[Reflect.apply(o.t,o,[...hu(s)]),o]};return{created:(n,r)=>{const[i,o]=t(r);ul&&e.global===o&&(n.__i18nWatcher=k(o.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=o,n.textContent=i},unmounted:e=>{ul&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=cu(t);e.textContent=Reflect.apply(n.t,n,[...hu(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}function du(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Vh](t.pluralizationRules||e.pluralizationRules);const n=Xh(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const fu=dl("global-vue-i18n");function pu(e={},t){const n=__VUE_I18N_LEGACY_API__&&El(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=!El(e.globalInjection)||e.globalInjection,i=!__VUE_I18N_LEGACY_API__||!n||!!e.allowComposition,o=new Map,[s,a]=function(e,t,n){const r=f();{const n=__VUE_I18N_LEGACY_API__&&t?r.run((()=>nu(e))):r.run((()=>tu(e)));if(null==n)throw zh(Hh.UNEXPECTED_ERROR);return[r,n]}}(e,n),l=dl("");{const e={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},install(t,...i){return d(this,null,(function*(){if(t.__VUE_I18N_SYMBOL__=l,t.provide(t.__VUE_I18N_SYMBOL__,e),Pl(i[0])){const t=i[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let o=null;!n&&r&&(o=function(e,t){const n=Object.create(null);ku.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw zh(Hh.UNEXPECTED_ERROR);const i=v(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,i)})),e.config.globalProperties.$i18n=n,mu.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw zh(Hh.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}));const r=()=>{delete e.config.globalProperties.$i18n,mu.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return r}(t,e.global)),__VUE_I18N_FULL_INSTALL__&&uu(t,e,...i),__VUE_I18N_LEGACY_API__&&n&&t.mixin(function(e,t,n){return{beforeCreate(){const r=A();if(!r)throw zh(Hh.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=du(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=nu(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=du(e,i);else{this.$i18n=nu({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Gh(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const e=A();if(!e)throw zh(Hh.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}(a,a.__composer,e));const s=t.unmount;t.unmount=()=>{o&&o(),e.dispose(),s()}}))},get global(){return a},dispose(){s.stop()},__instances:o,__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return e}}function gu(e={}){const t=A();if(null==t)throw zh(Hh.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw zh(Hh.NOT_INSTALLED);const n=function(e){{const t=w(e.isCE?fu:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw zh(e.isCE?Hh.NOT_INSTALLED_WITH_PROVIDE:Hh.UNEXPECTED_ERROR);return t}}(t),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),i=Zh(t),o=function(e,t){return vl(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,i);if(__VUE_I18N_LEGACY_API__&&"legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw zh(Hh.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,t,n,r={}){const i="local"===t,o=P(null);if(i&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw zh(Hh.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=El(r.inheritLocale)?r.inheritLocale:!jl(r.locale),a=p(!i||s?n.locale.value:jl(r.locale)?r.locale:qc),l=p(!i||s?n.fallbackLocale.value:jl(r.fallbackLocale)||Cl(r.fallbackLocale)||Pl(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:a.value),c=p(Xh(a.value,r)),h=p(Pl(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),u=p(Pl(r.numberFormats)?r.numberFormats:{[a.value]:{}}),d=i?n.missingWarn:!El(r.missingWarn)&&!ml(r.missingWarn)||r.missingWarn,f=i?n.fallbackWarn:!El(r.fallbackWarn)&&!ml(r.fallbackWarn)||r.fallbackWarn,g=i?n.fallbackRoot:!El(r.fallbackRoot)||r.fallbackRoot,k=!!r.fallbackFormat,m=Sl(r.missing)?r.missing:null,v=Sl(r.postTranslation)?r.postTranslation:null,y=i?n.warnHtmlMessage:!El(r.warnHtmlMessage)||r.warnHtmlMessage,L=!!r.escapeParameter,w=i?n.modifiers:Pl(r.modifiers)?r.modifiers:{},b=r.pluralRules||i&&n.pluralRules;function _(){return[a.value,l.value,c.value,h.value,u.value]}const x=E({get:()=>o.value?o.value.locale.value:a.value,set:e=>{o.value&&(o.value.locale.value=e),a.value=e}}),C=E({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),l.value=e}}),S=E((()=>o.value?o.value.messages.value:c.value)),j=E((()=>h.value)),M=E((()=>u.value));function T(){return o.value?o.value.getPostTranslationHandler():v}function A(e){o.value&&o.value.setPostTranslationHandler(e)}function O(){return o.value?o.value.getMissingHandler():m}function I(e){o.value&&o.value.setMissingHandler(e)}function R(e){return _(),e()}function B(...e){return o.value?R((()=>Reflect.apply(o.value.t,null,[...e]))):R((()=>""))}function H(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function z(...e){return o.value?R((()=>Reflect.apply(o.value.d,null,[...e]))):R((()=>""))}function N(...e){return o.value?R((()=>Reflect.apply(o.value.n,null,[...e]))):R((()=>""))}function D(e){return o.value?o.value.tm(e):{}}function F(e,t){return!!o.value&&o.value.te(e,t)}function V(e){return o.value?o.value.getLocaleMessage(e):{}}function U(e,t){o.value&&(o.value.setLocaleMessage(e,t),c.value[e]=t)}function $(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function Y(e){return o.value?o.value.getDateTimeFormat(e):{}}function X(e,t){o.value&&(o.value.setDateTimeFormat(e,t),h.value[e]=t)}function Z(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function G(e){return o.value?o.value.getNumberFormat(e):{}}function q(e,t){o.value&&(o.value.setNumberFormat(e,t),u.value[e]=t)}function K(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const J={get id(){return o.value?o.value.id:-1},locale:x,fallbackLocale:C,messages:S,datetimeFormats:j,numberFormats:M,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:w},get pluralRules(){return o.value?o.value.pluralRules:b},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:d},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:f},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:g},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:k},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:y},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:L},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:B,getPostTranslationHandler:T,setPostTranslationHandler:A,getMissingHandler:O,setMissingHandler:I,rt:H,d:z,n:N,tm:D,te:F,getLocaleMessage:V,setLocaleMessage:U,mergeLocaleMessage:$,getDateTimeFormat:Y,setDateTimeFormat:X,mergeDateTimeFormat:Z,getNumberFormat:G,setNumberFormat:q,mergeNumberFormat:K};function Q(e){e.locale.value=a.value,e.fallbackLocale.value=l.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(h.value).forEach((t=>{e.mergeDateTimeFormat(t,h.value[t])})),Object.keys(u.value).forEach((t=>{e.mergeNumberFormat(t,u.value[t])})),e.escapeParameter=L,e.fallbackFormat=k,e.fallbackRoot=g,e.fallbackWarn=f,e.missingWarn=d,e.warnHtmlMessage=y}return W((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw zh(Hh.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=o.value=e.proxy.$i18n.__composer;"global"===t?(a.value=n.locale.value,l.value=n.fallbackLocale.value,c.value=n.messages.value,h.value=n.datetimeFormats.value,u.value=n.numberFormats.value):i&&Q(n)})),J}(t,o,r,e)}if("global"===o)return Gh(r,e,i),r;if("parent"===o){let i=function(e,t,n=!1){let r=null;const i=t.root;let o=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[Uh]&&(r=null))}if(null!=r)break;if(i===o)break;o=o.parent}return r}(n,t,e.__useComponent);return null==i&&(i=r),i}const s=n;let a=s.__getInstance(t);if(null==a){const n=yl({},e);"__i18n"in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),a=tu(n),s.__composerExtend&&(a[$h]=s.__composerExtend(a)),function(e,t,n){T((()=>{}),t),B((()=>{const r=n;e.__deleteInstance(t);const i=r[$h];i&&(i(),delete r[$h])}),t)}(s,t,a),s.__setInstance(t,a)}return a}const ku=["locale","fallbackLocale","availableLocales"],mu=["t","rt","d","n","tm","te"];var vu;if("boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(wl().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(wl().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_JIT_COMPILATION__&&(wl().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(wl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(wl().__INTLIFY_PROD_DEVTOOLS__=!1),__INTLIFY_JIT_COMPILATION__?nh((function(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&jl(e)){!El(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||gh)(e),r=kh[n];if(r)return r;const{ast:i,detectError:o}=vh(e,c(l({},t),{location:!1,jit:!0})),s=dh(i);return o?s:kh[n]=s}{const t=e.cacheKey;if(t){return kh[t]||(kh[t]=dh(e))}return dh(e)}})):nh(yh),eh=function(e,t){if(!Ml(e))return null;let n=xc.get(t);if(n||(n=function(e){const t=[];let n,r,i,o,s,a,l,c=-1,h=0,u=0;const d=[];function f(){const t=e[c+1];if(5===h&&"'"===t||6===h&&'"'===t)return c++,i="\\"+t,d[0](),!0}for(d[0]=()=>{void 0===r?r=i:r+=i},d[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},d[2]=()=>{d[0](),u++},d[3]=()=>{if(u>0)u--,h=4,d[0]();else{if(u=0,void 0===r)return!1;if(r=_c(r),!1===r)return!1;d[1]()}};null!==h;)if(c++,n=e[c],"\\"!==n||!f()){if(o=bc(n),l=Lc[h],s=l[o]||l.l||8,8===s)return;if(h=s[0],void 0!==s[1]&&(a=d[s[1]],a&&(i=n,!1===a())))return;if(7===h)return t}}(t),n&&xc.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o{let e=function(e){if(!e)throw new Error("key is empty");const t=localStorage.getItem(e);return t?JSON.parse(t):null}(_u);if(!e){let t=navigator.language;if(t){const n=t.split("-")[0];t=n,e=n,xu(_u,n)}}return e},ju=()=>{const e=Su(),t=Object.assign({"./lang/en.ts":Lu,"./lang/zh.ts":bu}),n={};return Object.keys(t).forEach((e=>{const r=e.replace("./lang/","").split(".")[0];n[r]=t[e].default})),{legacy:!1,locale:e,messages:n,allowComposition:!0,globalInjection:!0,silentTranslationWarn:!0,missingWarn:!1,silentFallbackWarn:!1}},Eu=e=>d(void 0,null,(function*(){const t=null==Cu?void 0:Cu.global;if(!t)return;return t.locale!==e?((e=>{"legacy"===(null==Cu?void 0:Cu.mode)?Cu.global.locale=e:(null==Cu?void 0:Cu.global.locale).value=e,xu(_u,e)})(e),e):void 0})),Mu=()=>l({changeLocale:Eu},gu()||{}),Tu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Au=Tu(I({__name:"App",setup(e){const{messages:t}=Mu(),n=E((()=>t.value)),r=al(),i=Ga(),{databaseId:o}=jt(Ga());return T((()=>d(this,null,(function*(){yield d(void 0,null,(function*(){const e=(new Date).getTime(),t=localStorage.getItem(Ho),n=t?JSON.parse(t):[],r=(yield _o.getDatabaseNames()).filter((t=>{if(-1===t.indexOf(cl))return!1;const[r,i,o]=t.split("_");return r!==cl||!i||!o||!!n.includes(i)||e-+o>=432e5}));for(const i of r)_o.delete(i);localStorage.removeItem(Ho)})),yield r.initSnapshotDatabase(),i.setSystemFonts()})))),window.onbeforeunload=()=>!1,window.addEventListener("unload",(()=>{const e=localStorage.getItem(Ho),t=e?JSON.parse(e):[];t.push(o.value);const n=JSON.stringify(t);localStorage.setItem(Ho,n)})),(e,t)=>{const r=U("router-view"),i=De;return D(),F(i,{locale:n.value.el},{default:V((()=>[z(r)])),_:1},8,["locale"])}}}),[["__scopeId","data-v-c7ce7bef"]]),Ou={},Pu=function(e,t,n){if(!t||0===t.length)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map((e=>{if(e=function(e,t){return new URL(e,t).href}(e,n),e in Ou)return;Ou[e]=!0;const t=e.endsWith(".css"),i=t?'[rel="stylesheet"]':"";if(!!n)for(let n=r.length-1;n>=0;n--){const i=r[n];if(i.href===e&&(!t||"stylesheet"===i.rel))return}else if(document.querySelector(`link[href="${e}"]${i}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script",o.crossOrigin=""),o.href=e,document.head.appendChild(o),t?new Promise(((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))},Iu="undefined"!=typeof document;const Ru=Object.assign;function Bu(e,t){const n={};for(const r in t){const i=t[r];n[r]=Hu(i)?i.map(e):e(i)}return n}const Wu=()=>{},Hu=Array.isArray,zu=/#/g,Nu=/&/g,Du=/\//g,Fu=/=/g,Vu=/\?/g,Uu=/\+/g,$u=/%5B/g,Yu=/%5D/g,Xu=/%5E/g,Zu=/%60/g,Gu=/%7B/g,qu=/%7C/g,Ku=/%7D/g,Ju=/%20/g;function Qu(e){return encodeURI(""+e).replace(qu,"|").replace($u,"[").replace(Yu,"]")}function ed(e){return Qu(e).replace(Uu,"%2B").replace(Ju,"+").replace(zu,"%23").replace(Nu,"%26").replace(Zu,"`").replace(Gu,"{").replace(Ku,"}").replace(Xu,"^")}function td(e){return null==e?"":function(e){return Qu(e).replace(zu,"%23").replace(Vu,"%3F")}(e).replace(Du,"%2F")}function nd(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const rd=/\/$/,id=e=>e.replace(rd,"");function od(e,t,n="/"){let r,i={},o="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];".."!==i&&"."!==i||r.push("");let o,s,a=n.length-1;for(o=0;o1&&a--}return n.slice(0,a).join("/")+"/"+r.slice(o).join("/")}(null!=r?r:t,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:nd(s)}}function sd(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function ad(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ld(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!cd(e[n],t[n]))return!1;return!0}function cd(e,t){return Hu(e)?hd(e,t):Hu(t)?hd(t,e):e===t}function hd(e,t){return Hu(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var ud,dd,fd,pd;(dd=ud||(ud={})).pop="pop",dd.push="push",(pd=fd||(fd={})).back="back",pd.forward="forward",pd.unknown="";const gd=/^[^#]+#/;function kd(e,t){return e.replace(gd,"#")+t}const md=()=>({left:window.scrollX,top:window.scrollY});function vd(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function yd(e,t){return(history.state?history.state.position-t:-1)+e}const Ld=new Map;let wd=()=>location.protocol+"//"+location.host;function bd(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let t=i.includes(e.slice(o))?e.slice(o).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),sd(n,"")}return sd(n,e)+r+i}function _d(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?md():null}}function xd(e){return"string"==typeof e||"symbol"==typeof e}const Cd={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Sd=Symbol("");var jd,Ed;function Md(e,t){return Ru(new Error,{type:e,[Sd]:!0},t)}function Td(e,t){return e instanceof Error&&Sd in e&&(null==t||!!(e.type&t))}(Ed=jd||(jd={}))[Ed.aborted=4]="aborted",Ed[Ed.cancelled=8]="cancelled",Ed[Ed.duplicated=16]="duplicated";const Ad="[^/]+?",Od={sensitive:!1,strict:!1,start:!0,end:!0},Pd=/[.+*?^${}()[\]/\\]/g;function Id(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Rd(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Wd={type:0,value:""},Hd=/[a-zA-Z0-9_]/;function zd(e,t,n){const r=function(e,t){const n=Ru({},Od,t),r=[];let i=n.start?"^":"";const o=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:h,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{o(d)}:Wu}function o(e){if(xd(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!Yd(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Vd(e)&&r.set(e.record.name,e)}return t=$d({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:function(e,t){let i,o,s,a={};if("name"in e&&e.name){if(i=r.get(e.name),!i)throw Md(1,{location:e});s=i.record.name,a=Ru(Dd(t.params,i.keys.filter((e=>!e.optional)).concat(i.parent?i.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Dd(e.params,i.keys.map((e=>e.name)))),o=i.stringify(a)}else if(null!=e.path)o=e.path,i=n.find((e=>e.re.test(o))),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw Md(1,{location:e,currentLocation:t});s=i.record.name,a=Ru({},t.params,e.params),o=i.stringify(a)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:o,params:a,matched:l,meta:Ud(l)}},removeRoute:o,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function Dd(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Fd(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function Vd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ud(e){return e.reduce(((e,t)=>Ru(e,t.meta)),{})}function $d(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Yd(e,t){return t.children.some((t=>t===e||Yd(e,t)))}function Xd(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;re&&ed(e))):[r&&ed(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Gd(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=Hu(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const qd=Symbol(""),Kd=Symbol(""),Jd=Symbol(""),Qd=Symbol(""),ef=Symbol("");function tf(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function nf(e,t,n,r,i,o=(e=>e())){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var o;!1===e?l(Md(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(o=e)||o&&"object"==typeof o?l(Md(2,{from:t,to:e})):(s&&r.enterCallbacks[i]===s&&"function"==typeof e&&s.push(e),a())},h=o((()=>e.call(r&&r.instances[i],t,n,c)));let u=Promise.resolve(h);e.length<3&&(u=u.then(c)),u.catch((e=>l(e)))}))}function rf(e,t,n,r,i=(e=>e())){const o=[];for(const a of e)for(const e in a.components){let l=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(s=l)||"displayName"in s||"props"in s||"__vccOpts"in s){const s=(l.__vccOpts||l)[t];s&&o.push(nf(s,n,r,a,e,i))}else{let s=l();o.push((()=>s.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const s=(l=o).__esModule||"Module"===l[Symbol.toStringTag]?o.default:o;var l;a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&nf(c,n,r,a,e,i)()}))))}}var s;return o}function of(e){const t=w(Jd),n=w(Qd),r=E((()=>{const n=M(e.to);return t.resolve(n)})),i=E((()=>{const{matched:e}=r.value,{length:t}=e,i=e[t-1],o=n.matched;if(!i||!o.length)return-1;const s=o.findIndex(ad.bind(null,i));if(s>-1)return s;const a=af(e[t-2]);return t>1&&af(i)===a&&o[o.length-1].path!==a?o.findIndex(ad.bind(null,e[t-2])):s})),o=E((()=>i.value>-1&&function(e,t){for(const n in t){const r=t[n],i=e[n];if("string"==typeof r){if(r!==i)return!1}else if(!Hu(i)||i.length!==r.length||r.some(((e,t)=>e!==i[t])))return!1}return!0}(n.params,r.value.params))),s=E((()=>i.value>-1&&i.value===n.matched.length-1&&ld(n.params,r.value.params)));return{route:r,href:E((()=>r.value.href)),isActive:o,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[M(e.replace)?"replace":"push"](M(e.to)).catch(Wu):Promise.resolve()}}}const sf=I({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:of,setup(e,{slots:t}){const n=m(of(e)),{options:r}=w(Jd),i=E((()=>({[lf(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[lf(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:R("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function af(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lf=(e,t,n)=>null!=e?e:null!=t?t:n;function cf(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const hf=I({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=w(ef),i=E((()=>e.route||r.value)),o=w(Kd,0),s=E((()=>{let e=M(o);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=E((()=>i.value.matched[s.value]));Y(Kd,E((()=>s.value+1))),Y(qd,a),Y(ef,i);const l=p();return k((()=>[l.value,a.value,e.name]),(([e,t,n],[r,i,o])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&ad(t,i)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=i.value,o=e.name,s=a.value,c=s&&s.components[o];if(!c)return cf(n.default,{Component:c,route:r});const h=s.props[o],u=h?!0===h?r.params:"function"==typeof h?h(r):h:null,d=R(c,Ru({},u,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[o]=null)},ref:l}));return cf(n.default,{Component:d,route:r})||d}}});function uf(){return w(Jd)}const df=[{path:"/home",component:()=>Pu((()=>import("./index-9efc38ed.js")),["./index-9efc38ed.js","./index-025bde72.js","./vue-aadc59b7.js","./element-plus-2d3d0866.js","./lodash-es-fcf8a448.js","./fabric-aa9a28c9.js","./clipper-lib-eae4901e.js","./index-f8b79f6e.css"],import.meta.url),meta:{hidden:!0,title:"yft-home"}},{path:"/",name:"/",component:()=>Pu((()=>import("./index-a0142a5c.js")),["./index-a0142a5c.js","./index-025bde72.js","./element-plus-2d3d0866.js","./vue-aadc59b7.js","./lodash-es-fcf8a448.js","./clipper-lib-eae4901e.js","./fabric-aa9a28c9.js","./opentype.js-3318d238.js","./index-d5232f13.css"],import.meta.url),meta:{title:"yft-design"}},{path:"/401",component:()=>Pu((()=>import("./401-867e9ae9.js")),["./401-867e9ae9.js","./vue-aadc59b7.js","./fabric-aa9a28c9.js","./lodash-es-fcf8a448.js","./element-plus-2d3d0866.js","./clipper-lib-eae4901e.js","./401-2a9b5f24.css"],import.meta.url),meta:{hidden:!0}},{path:"/404",component:()=>Pu((()=>import("./404-ad15d341.js")),["./404-ad15d341.js","./vue-aadc59b7.js","./fabric-aa9a28c9.js","./lodash-es-fcf8a448.js","./element-plus-2d3d0866.js","./clipper-lib-eae4901e.js","./404-1e71c88c.css"],import.meta.url),meta:{hidden:!0}}],ff=function(e){const t=Nd(e.routes,e),n=e.parseQuery||Xd,r=e.stringifyQuery||Zd,i=e.history,o=tf(),s=tf(),a=tf(),l=P(Cd);let c=Cd;Iu&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=Bu.bind(null,(e=>""+e)),u=Bu.bind(null,td),d=Bu.bind(null,nd);function f(e,o){if(o=Ru({},o||l.value),"string"==typeof e){const r=od(n,e,o.path),s=t.resolve({path:r.path},o),a=i.createHref(r.fullPath);return Ru(r,s,{params:d(s.params),hash:nd(r.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=Ru({},e,{path:od(n,e.path,o.path).path});else{const t=Ru({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Ru({},e,{params:u(t)}),o.params=u(o.params)}const a=t.resolve(s,o),c=e.hash||"";a.params=h(d(a.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(r,Ru({},e,{hash:(p=c,Qu(p).replace(Gu,"{").replace(Ku,"}").replace(Xu,"^")),path:a.path}));var p;const g=i.createHref(f);return Ru({fullPath:f,hash:c,query:r===Zd?Gd(e.query):e.query||{}},a,{redirectedFrom:void 0,href:g})}function p(e){return"string"==typeof e?od(n,e,l.value.path):Ru({},e)}function g(e,t){if(c!==e)return Md(8,{from:t,to:e})}function k(e){return v(e)}function m(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=p(r):{path:r},r.params={}),Ru({query:e.query,hash:e.hash,params:null!=r.path?{}:e.params},r)}}function v(e,t){const n=c=f(e),i=l.value,o=e.state,s=e.force,a=!0===e.replace,h=m(n);if(h)return v(Ru(p(h),{state:"object"==typeof h?Ru({},o,h.state):o,force:s,replace:a}),t||n);const u=n;let d;return u.redirectedFrom=t,!s&&function(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ad(t.matched[r],n.matched[i])&&ld(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(r,i,n)&&(d=Md(16,{to:u,from:i}),I(i,i,!0,!1)),(d?Promise.resolve(d):w(u,i)).catch((e=>Td(e)?Td(e,2)?e:O(e):A(e,u,i))).then((e=>{if(e){if(Td(e,2))return v(Ru({replace:a},p(e.to),{state:"object"==typeof e.to?Ru({},o,e.to.state):o,force:s}),t||u)}else e=_(u,i,!0,a,o);return b(u,i,e),e}))}function y(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function L(e){const t=W.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[r,i,a]=function(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;sad(e,o)))?r.push(o):n.push(o));const a=e.matched[s];a&&(t.matched.find((e=>ad(e,a)))||i.push(a))}return[n,r,i]}(e,t);n=rf(r.reverse(),"beforeRouteLeave",e,t);for(const o of r)o.leaveGuards.forEach((r=>{n.push(nf(r,e,t))}));const l=y.bind(null,e,t);return n.push(l),z(n).then((()=>{n=[];for(const r of o.list())n.push(nf(r,e,t));return n.push(l),z(n)})).then((()=>{n=rf(i,"beforeRouteUpdate",e,t);for(const r of i)r.updateGuards.forEach((r=>{n.push(nf(r,e,t))}));return n.push(l),z(n)})).then((()=>{n=[];for(const r of a)if(r.beforeEnter)if(Hu(r.beforeEnter))for(const i of r.beforeEnter)n.push(nf(i,e,t));else n.push(nf(r.beforeEnter,e,t));return n.push(l),z(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=rf(a,"beforeRouteEnter",e,t,L),n.push(l),z(n)))).then((()=>{n=[];for(const r of s.list())n.push(nf(r,e,t));return n.push(l),z(n)})).catch((e=>Td(e,8)?e:Promise.reject(e)))}function b(e,t,n){a.list().forEach((r=>L((()=>r(e,t,n)))))}function _(e,t,n,r,o){const s=g(e,t);if(s)return s;const a=t===Cd,c=Iu?history.state:{};n&&(r||a?i.replace(e.fullPath,Ru({scroll:a&&c&&c.scroll},o)):i.push(e.fullPath,o)),l.value=e,I(e,t,n,a),O()}let x;function S(){x||(x=i.listen(((e,t,n)=>{if(!H.listening)return;const r=f(e),o=m(r);if(o)return void v(Ru(o,{replace:!0}),r).catch(Wu);c=r;const s=l.value;var a,h;Iu&&(a=yd(s.fullPath,n.delta),h=md(),Ld.set(a,h)),w(r,s).catch((e=>Td(e,12)?e:Td(e,2)?(v(e.to,r).then((e=>{Td(e,20)&&!n.delta&&n.type===ud.pop&&i.go(-1,!1)})).catch(Wu),Promise.reject()):(n.delta&&i.go(-n.delta,!1),A(e,r,s)))).then((e=>{(e=e||_(r,s,!1))&&(n.delta&&!Td(e,8)?i.go(-n.delta,!1):n.type===ud.pop&&Td(e,20)&&i.go(-1,!1)),b(r,s,e)})).catch(Wu)})))}let j,E=tf(),T=tf();function A(e,t,n){O(e);const r=T.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function O(e){return j||(j=!e,S(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function I(t,n,r,i){const{scrollBehavior:o}=e;if(!Iu||!o)return Promise.resolve();const s=!r&&function(e){const t=Ld.get(e);return Ld.delete(e),t}(yd(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return C().then((()=>o(t,n,s))).then((e=>e&&vd(e))).catch((e=>A(e,t,n)))}const R=e=>i.go(e);let B;const W=new Set,H={currentRoute:l,listening:!0,addRoute:function(e,n){let r,i;return xd(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:k,replace:function(e){return k(Ru(p(e),{replace:!0}))},go:R,back:()=>R(-1),forward:()=>R(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:T.add,isReady:function(){return j&&l.value!==Cd?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",sf),e.component("RouterView",hf),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>M(l)}),Iu&&!B&&l.value===Cd&&(B=!0,k(i.location).catch((e=>{})));const t={};for(const r in Cd)Object.defineProperty(t,r,{get:()=>l.value[r],enumerable:!0});e.provide(Jd,this),e.provide(Qd,$(t)),e.provide(ef,l);const n=e.unmount;W.add(e),e.unmount=function(){W.delete(e),W.size<1&&(c=Cd,x&&x(),x=null,l.value=Cd,B=!1,j=!1),n()}}};function z(e){return e.reduce(((e,t)=>e.then((()=>L(t)))),Promise.resolve())}return H}({history:function(e){const t=function(e){const{history:t,location:n}=window,r={value:bd(e,n)},i={value:t.state};function o(r,o,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+r:wd()+e+r;try{t[s?"replaceState":"pushState"](o,"",l),i.value=o}catch(c){n[s?"replace":"assign"](l)}}return i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:function(e,n){const s=Ru({},i.value,t.state,{forward:e,scroll:md()});o(s.current,s,!0),o(e,Ru({},_d(r.value,e,null),{position:s.position+1},n),!1),r.value=e},replace:function(e,n){o(e,Ru({},t.state,_d(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}}}(e=function(e){if(!e)if(Iu){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),id(e)}(e)),n=function(e,t,n,r){let i=[],o=[],s=null;const a=({state:o})=>{const a=bd(e,location),l=n.value,c=t.value;let h=0;if(o){if(n.value=a,t.value=o,s&&s===l)return void(s=null);h=c?o.position-c.position:0}else r(a);i.forEach((e=>{e(n.value,l,{delta:h,type:ud.pop,direction:h?h>0?fd.forward:fd.back:fd.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Ru({},e.state,{scroll:md()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return o.push(t),t},destroy:function(){for(const e of o)e();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace),r=Ru({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:kd.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}(),routes:df,scrollBehavior:()=>({left:0,top:0})});ff.beforeResolve(((e,t,n)=>{window.document.title=e.meta.title,n()}));const pf=(e,t,n,r,i="source-over")=>d(void 0,null,(function*(){var o;const s=r.width,a=r.height,l=r.getSrc();let c=document.createElement("canvas");const h=c.getContext("2d");if(!h)return;if(0===t)return;h.save(),h.clearRect(0,0,c.width,c.height),h.restore(),c.width=s+2*t,c.height=a+2*t;const u=[-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1],d=yield gf(l);if(!d)return;for(let e=0;ed(void 0,null,(function*(){return new Promise(((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>t(r),r.onerror=()=>n(),r.src=e}))})),kf=e=>e-0==0,mf=e=>d(void 0,null,(function*(){const t=new Image;return t.crossOrigin="anonymous",t.src=e,yield new Promise((e=>{t.onload=()=>e()})),createImageBitmap(t)}));function vf(e,t,n,r){const i=e.getRelativeCenterPoint(),o=void 0!==n&&void 0!==r?e.translateToGivenOrigin(i,"center","center",n,r):new he(e.left,e.top);return(e.angle?t.rotate(-ge.degreesToRadians(e.angle),i):t).subtract(o)}function yf(e,t,n,r,i){const o=Math.abs(e.x/n),s=Math.abs(e.y/t);return r||i?Math.max(o,s):Math.min(o,s)}function Lf(e,t,n,r){const i=t,o="right",{width:s}=i.target,a=-s/2,l=i.target.getRelativeCenterPoint(),c=vf(i.target,new he(n,r),"center","center"),h=i.target.translateToOriginPoint(l,o,i.originY);let u=c.x/i.target.scaleX-a,d=s-u;return i.target.cropX+u<0&&(u=-i.target.cropX,d=s+i.target.cropX),d<=0&&(u+=d,d=0),i.target.width=d,i.target.setPositionByOrigin(h,o,i.originY),i.target.cropX+=u,!0}function wf(e,t,n,r){const i=t,o="right",{width:s}=i.target,a=i.target.getOriginalElementWidth(),l=-s/2,c=i.target.getRelativeCenterPoint(),h=vf(i.target,new he(n,r),"center","center"),u=i.target.translateToOriginPoint(c,o,i.originY);let d=s-(h.x/i.target.scaleX-l);return d+i.target.cropX>a&&(d=a-i.target.cropX),d<0&&(d=0),i.target.width=d,i.target.setPositionByOrigin(u,o,i.originY),!0}function bf(e,t,n,r){const i=t,o="left",{width:s}=i.target,a=i.target.getOriginalElementWidth(),l=s/2,c=i.target.getRelativeCenterPoint(),h=vf(i.target,new he(n,r),"center","center"),u=i.target.translateToOriginPoint(c,o,i.originY);let d=s-(l-h.x/i.target.scaleX);return d+i.target.cropX>a&&(d=a-i.target.cropX),d<0&&(d=0),i.target.width=d,i.target.setPositionByOrigin(u,o,i.originY),!0}function _f(e,t,n,r){const i=t,o="left",{width:s}=i.target,a=s/2,l=i.target.getRelativeCenterPoint(),c=_e.getLocalPoint(t,"center","center",n,r),h=i.target.translateToOriginPoint(l,o,i.originY);let u=a-c.x/i.target.scaleX,d=s-u;return i.target.cropX+u<0&&(u=-i.target.cropX,d=s+i.target.cropX),d<=0&&(u+=d,d=0),i.target.width=d,i.target.setPositionByOrigin(h,o,i.originY),i.target.cropX+=u,!0}function xf(e,t,n,r){const i=t,o="bottom",{height:s}=i.target,a=-s/2,l=i.target.getRelativeCenterPoint(),c=_e.getLocalPoint(t,"center","center",n,r),h=i.target.translateToOriginPoint(l,i.originX,o);let u=c.y/i.target.scaleY-a,d=s-u;return i.target.cropY+u<0&&(u=-i.target.cropY,d=s+i.target.cropY),d<=0&&(u+=d,d=0),i.target.height=d,i.target.setPositionByOrigin(h,i.originX,o),i.target.cropY+=u,!0}function Cf(e,t,n,r){const i=t,o="bottom",{height:s}=i.target,a=i.target.getOriginalElementHeight(),l=-s/2,c=i.target.getRelativeCenterPoint(),h=_e.getLocalPoint(t,"center","center",n,r),u=i.target.translateToOriginPoint(c,i.originX,o);let d=s-(h.y/i.target.scaleY-l);return d+i.target.cropY>a&&(d=a-i.target.cropY),d<0&&(d=0),i.target.height=d,i.target.setPositionByOrigin(u,i.originX,o),!0}function Sf(e,t,n,r){const i=t,{height:o}=i.target,s=i.target.getOriginalElementHeight(),a=o/2,l=i.target.getRelativeCenterPoint(),c=_e.getLocalPoint(t,"center","center",n,r),h=i.target.translateToOriginPoint(l,i.originX,"top");let u=o-(a-c.y/i.target.scaleY);return u+i.target.cropY>s&&(u=s-i.target.cropY),u<0&&(u=0),i.target.height=u,i.target.setPositionByOrigin(h,i.originX,"top"),!0}function jf(e,t,n,r){const i=t,{height:o}=i.target,s=o/2,a=i.target.getRelativeCenterPoint(),l=_e.getLocalPoint(t,"center","center",n,r),c=i.target.translateToOriginPoint(a,i.originX,"top");let h=s-l.y/i.target.scaleY,u=o-h;return i.target.cropY+h<0&&(h=-i.target.cropY,u=o+i.target.cropY),u<=0&&(h+=u,u=0),i.target.height=u,i.target.setPositionByOrigin(c,i.originX,"top"),i.target.cropY+=h,!0}const Ef=e=>(t,n,r,i)=>e(t,n,r,i),Mf=Ef(((e,t,n,r)=>{const{target:i}=t,o=i.flipX?wf(0,t,n,r):Lf(0,t,n,r),s=i.flipY?Cf(0,t,n,r):xf(0,t,n,r);return o||s})),Tf=Ef(((e,t,n,r)=>{const{target:i}=t,o=i.flipX?_f(0,t,n,r):bf(0,t,n,r),s=i.flipY?jf(0,t,n,r):Sf(0,t,n,r);return o||s})),Af=Ef(((e,t,n,r)=>{const{target:i}=t,o=i.flipX?wf(0,t,n,r):Lf(0,t,n,r),s=i.flipY?jf(0,t,n,r):Sf(0,t,n,r);return o||s})),Of=Ef(((e,t,n,r)=>{const{target:i}=t,o=i.flipX?_f(0,t,n,r):bf(0,t,n,r),s=i.flipY?Cf(0,t,n,r):xf(0,t,n,r);return o||s}));function Pf(e,t,n){const r=n.calcTransformMatrix(),i=n.getViewportTransform(),o=ge.multiplyTransformMatrices(i,r),s={x:-n.width/2-n.cropX,y:-n.height/2-n.cropY};return ge.transformPoint(s,o)}function If(e,t,n){const r=n.calcTransformMatrix(),i=n.getViewportTransform(),o=ge.multiplyTransformMatrices(i,r),s={x:n.getOriginalElementWidth()-n.width/2-n.cropX,y:-n.height/2-n.cropY};return ge.transformPoint(s,o)}function Rf(e,t,n){const r=n.calcTransformMatrix(),i=n.getViewportTransform(),o=ge.multiplyTransformMatrices(i,r),s=n.getOriginalElementWidth(),a=n.getOriginalElementHeight(),l={x:s-n.width/2-n.cropX,y:a-n.height/2-n.cropY};return ge.transformPoint(l,o)}function Bf(e,t,n){const r=n.calcTransformMatrix(),i=n.getViewportTransform(),o=ge.multiplyTransformMatrices(i,r),s=n.getOriginalElementHeight(),a={x:-n.width/2-n.cropX,y:s-n.height/2-n.cropY};return ge.transformPoint(a,o)}function Wf(e,t,n,r){const{target:i}=t,o=i.getOriginalElementWidth(),s=i.getOriginalElementHeight(),a=s-i.height-i.cropY,l=i.cropX/i.width,c=a/i.height,h=i.getRelativeCenterPoint(),u=i.translateToOriginPoint(h,-l,1+c),d=_e.getLocalPoint(t,-l,1+c,n,r),f=i.scaleX,p=i.scaleY,g=yf(d,s,o,i.flipX,i.flipY),k=g/f,m=g/p,v=i.width/k,y=i.height/m,L=a/m,w=i.cropX/k,b=s-y-L;if(w+v>o||L+y>s)return!1;i.scaleX=g,i.scaleY=g,i.height=y,i.width=v,i.cropX=w,i.cropY=b,i.clippingPath&&(i.clippingPath.scaleX/=k,i.clippingPath.scaleY/=m);const _=L/i.height,x=i.cropX/i.width;return i.setPositionByOrigin(u,-x,1+_),!0}function Hf(e,t,n,r){const{target:i}=t,o=i.getOriginalElementWidth(),s=i.getOriginalElementHeight(),a=i.cropX/i.width,l=i.cropY/i.height,c=i.getRelativeCenterPoint(),h=i.translateToOriginPoint(c,-a,-l),u=_e.getLocalPoint(t,-a,-l,n,r),d=i.scaleX,f=i.scaleY,p=yf(u,s,o,i.flipX,i.flipY),g=p/d,k=p/f,m=i.width/g,v=i.height/k,y=i.cropX/g,L=i.cropY/k;if(y+m>o||L+v>s)return!1;i.scaleX=p,i.scaleY=p,i.height=v,i.width=m,i.cropX=y,i.cropY=L,i.clippingPath&&(i.clippingPath.scaleX/=g,i.clippingPath.scaleY/=k);const w=i.cropX/i.width,b=i.cropY/i.height;return i.setPositionByOrigin(h,-w,-b),!0}function zf(e,t,n,r){const{target:i}=t,o=i.getOriginalElementWidth(),s=i.getOriginalElementHeight(),a=o-i.width-i.cropX,l=a/i.width,c=i.cropY/i.height,h=i.getRelativeCenterPoint(),u=i.translateToOriginPoint(h,1+l,-c),d=_e.getLocalPoint(t,1+l,-c,n,r),f=i.scaleX,p=i.scaleY,g=yf(d,s,o,i.flipX,i.flipY),k=g/f,m=g/p,v=i.width/k,y=i.height/m,L=a/k,w=o-v-L,b=i.cropY/m;if(v+a>o||y+b>s)return!1;i.scaleX=g,i.scaleY=g,i.height=y,i.width=v,i.cropX=w,i.cropY=b,i.clippingPath&&(i.clippingPath.scaleX/=k,i.clippingPath.scaleY/=m);const _=L/v,x=b/y;return i.setPositionByOrigin(u,1+_,-x),!0}function Nf(e,t,n,r){const{target:i}=t,o=i.getOriginalElementWidth(),s=i.getOriginalElementHeight(),a=o-i.width-i.cropX,l=s-i.height-i.cropY,c=1+a/i.width,h=1+l/i.height,u=i.getRelativeCenterPoint(),d=i.translateToOriginPoint(u,c,h),f=yf(_e.getLocalPoint(t,c,h,n,r),s,o,i.flipX,i.flipY),p=f/i.scaleX,g=f/i.scaleY,k=a/p,m=l/g,v=i.width/p,y=i.height/g,L=o-v-k,w=s-y-m;if(v+k>o||y+m>s)return!1;i.scaleX=f,i.scaleY=f,i.width=v,i.height=y,i.cropX=L,i.cropY=w,i.clippingPath&&(i.clippingPath.scaleX/=p,i.clippingPath.scaleY/=g);const b=1+k/v,_=1+m/y;return i.setPositionByOrigin(d,b,_),!0}function Df(){delete this.__targetlessCanvasDrag,this.defaultCursor=this.__defaultCursor,delete this.__defaultCursor}function Ff(e){const t=e.target,n=this.getActiveObject();if(n&&(!t||n.id!==t.id)&&n.isCropping){const{tlS:t,trS:r,blS:i,brS:o}=n.oCoords,s=[{x:t.x,y:t.y},{x:r.x,y:r.y},{x:o.x,y:o.y},{x:i.x,y:i.y}];if(n.__corner)return;const a=function(e,t){let n=!1;for(let r=0,i=t.length-1;re.y!=l>e.y&&e.x<(a-o)*(e.y-s)/(l-s)+o&&(n=!n)}return n}(n.canvas.getPointer(e,!0),s);if(a)return n.resetCropModeAnchors(),n.canvas.__targetlessCanvasDrag=!0,n.canvas.__defaultCursor=n.canvas.defaultCursor,n.canvas.defaultCursor="move",n.canvas.selectable=!1,void(n.canvas.evented=!1);if(n.cropPath){const e=new Ce(n.cropPath);n.set({clipPath:e,width:e.width,height:e.height})}n.onDeselectEvent(),n.isCropping=!1,n.canvas.defaultCursor="default",n.canvas.renderAll()}}function Vf({e:e}){var t;const n=this.getActiveObject();if(!n||!(null==(t=n.canvas)?void 0:t.__targetlessCanvasDrag)||"mousemove"!==e.type||!n)return;const r={x:e.movementX,y:e.movementY},i=n.calcTransformMatrix(),o=n.canvas.viewportTransform,s=ge.invertTransform(ge.multiplyTransformMatrices(o,i));s[4]=0,s[5]=0;const a=ge.transformPoint(r,s);n.cropX-=a.x,n.cropY-=a.y,n.fire("moving"),n.canvas.requestRenderAll()}const Uf=ge.degreesToRadians;function $f(e,t,n,r,i){if(!this.getVisibility(i))return;e.save(),e.translate(t,n),e.rotate(Uf(this.angle+i.angle)),e.beginPath(),e.lineWidth=6,e.lineCap="round",e.strokeStyle="#dfe2e8",e.moveTo(0,10),e.lineTo(0,0),e.lineTo(10,0),e.stroke(),e.restore()}function Yf(e,t,n,r,i){if(this.visibility=!0,!this.getVisibility(i)||i.clippingPath)return void(this.visibility=!1);e.save(),e.translate(t,n),e.rotate(Uf(this.angle+i.angle)),e.beginPath(),e.lineWidth=4,e.lineCap="round",e.strokeStyle="#dfe2e8",e.moveTo(-6,0),e.lineTo(6,0),e.stroke(),e.restore()}function Xf(e,t,n){return function(r,i,o,s,a){r.save(),r.shadowColor="rgba(12, 18, 28, 0.38)",r.shadowBlur=4,r.shadowOffsetX=e,r.shadowOffsetY=t,n.call(this,r,i,o,s,a),r.restore()}}const{scaleCursorStyleHandler:Zf,renderCircleControl:Gf}=_e,qf=Xf(2,2,$f),Kf=Xf(-2,2,$f),Jf=Xf(2,-2,$f),Qf=Xf(-2,-2,$f),ep=Xf(0,2,Yf),tp=Xf(0,-2,Yf),np=Xf(2,0,Yf),rp=Xf(-2,0,Yf),ip={tlS:new xe({x:-.5,y:-.5,actionName:"tlS",cursorStyleHandler:Zf,positionHandler:Pf,actionHandler:Nf,render:Gf}),trS:new xe({x:.5,y:-.5,actionName:"trS",cursorStyleHandler:Zf,positionHandler:If,actionHandler:Wf,render:Gf}),blS:new xe({x:-.5,y:.5,actionName:"blS",cursorStyleHandler:Zf,positionHandler:Bf,actionHandler:zf,render:Gf}),brS:new xe({x:.5,y:.5,actionName:"brS",cursorStyleHandler:Zf,positionHandler:Rf,actionHandler:Hf,render:Gf}),cropLeft:new xe({x:-.5,y:0,actionName:"cropLeft",render:np,actionHandler:Lf,angle:90}),cropRight:new xe({x:.5,y:0,actionName:"cropRight",render:rp,actionHandler:bf,angle:90}),cropTop:new xe({x:0,y:-.5,actionName:"cropTop",render:ep,actionHandler:xf}),cropBottom:new xe({x:0,y:.5,actionName:"cropBottom",render:tp,actionHandler:Sf}),cropCornerTL:new xe({x:-.5,y:-.5,actionName:"cropCornerTL",render:qf,actionHandler:Mf}),cropCornerBL:new xe({x:-.5,y:.5,actionName:"cropCornerBL",render:Jf,angle:270,actionHandler:Af}),cropCornerBR:new xe({x:.5,y:.5,actionName:"cropCornerBR",render:Qf,angle:180,actionHandler:Tf}),cropCornerTR:new xe({x:.5,y:-.5,actionName:"cropCornerTR",render:Kf,angle:90,actionHandler:Of})};we.prototype.controls;const op={tlS:new xe({x:-.5,y:-.5,actionName:"tlS",cursorStyleHandler:Zf,positionHandler:If,actionHandler:Wf,render:Gf}),trS:new xe({x:.5,y:-.5,actionName:"trS",cursorStyleHandler:Zf,positionHandler:Pf,actionHandler:Nf,render:Gf}),blS:new xe({x:-.5,y:.5,actionName:"blS",cursorStyleHandler:Zf,positionHandler:Rf,actionHandler:Hf,render:Gf}),brS:new xe({x:.5,y:.5,actionName:"brS",cursorStyleHandler:Zf,positionHandler:Bf,actionHandler:zf,render:Gf}),cropLeft:new xe({x:-.5,y:0,actionName:"cropLeft",render:np,actionHandler:wf,angle:90}),cropRight:new xe({x:.5,y:0,actionName:"cropRight",render:rp,actionHandler:_f,angle:90}),cropTop:new xe({x:0,y:-.5,actionName:"cropTop",render:ep,actionHandler:xf}),cropBottom:new xe({x:0,y:.5,actionName:"cropBottom",render:tp,actionHandler:Sf}),cropCornerTL:new xe({x:-.5,y:-.5,actionName:"cropCornerTL",render:qf,actionHandler:Mf}),cropCornerBL:new xe({x:-.5,y:.5,actionName:"cropCornerBL",render:Jf,angle:270,actionHandler:Af}),cropCornerBR:new xe({x:.5,y:.5,actionName:"cropCornerBR",render:Qf,angle:180,actionHandler:Tf}),cropCornerTR:new xe({x:.5,y:-.5,actionName:"cropCornerTR",render:Kf,angle:90,actionHandler:Of})},sp={tlS:new xe({x:-.5,y:-.5,actionName:"tlS",cursorStyleHandler:Zf,positionHandler:Bf,actionHandler:zf,render:Gf}),trS:new xe({x:.5,y:-.5,actionName:"trS",cursorStyleHandler:Zf,positionHandler:Rf,actionHandler:Hf,render:Gf}),blS:new xe({x:-.5,y:.5,actionName:"blS",cursorStyleHandler:Zf,positionHandler:Pf,actionHandler:Nf,render:Gf}),brS:new xe({x:.5,y:.5,actionName:"brS",cursorStyleHandler:Zf,positionHandler:If,actionHandler:Wf,render:Gf}),cropLeft:new xe({x:-.5,y:0,actionName:"cropLeft",render:np,actionHandler:Lf,angle:90}),cropRight:new xe({x:.5,y:0,actionName:"cropRight",render:rp,actionHandler:bf,angle:90}),cropTop:new xe({x:0,y:-.5,actionName:"cropTop",render:ep,actionHandler:Cf}),cropBottom:new xe({x:0,y:.5,actionName:"cropBottom",render:tp,actionHandler:jf}),cropCornerTL:new xe({x:-.5,y:-.5,actionName:"cropCornerTL",render:qf,actionHandler:Mf}),cropCornerBL:new xe({x:-.5,y:.5,actionName:"cropCornerBL",render:Jf,angle:270,actionHandler:Af}),cropCornerBR:new xe({x:.5,y:.5,actionName:"cropCornerBR",render:Qf,angle:180,actionHandler:Tf}),cropCornerTR:new xe({x:.5,y:-.5,actionName:"cropCornerTR",render:Kf,angle:90,actionHandler:Of})},ap={tlS:new xe({x:-.5,y:-.5,actionName:"tlS",cursorStyleHandler:Zf,positionHandler:Rf,actionHandler:function(e,t,n,r){const{target:i}=t,o=i.getOriginalElementWidth(),s=i.getOriginalElementHeight(),a=1+i.cropX/i.width,l=1+i.cropY/i.height,c=i.getRelativeCenterPoint(),h=i.translateToOriginPoint(c,a,l),u=_e.getLocalPoint(t,a,l,n,r),d=i.scaleX,f=i.scaleY,p=yf(u,s,o,i.flipX,i.flipY),g=p/d,k=p/f,m=i.width/g,v=i.height/k,y=i.cropX/g,L=i.cropY/k;if(y+m>o||L+v>s)return!1;i.scaleX=p,i.scaleY=p,i.height=v,i.width=m,i.cropX=y,i.cropY=L,i.clippingPath&&(i.clippingPath.scaleX/=g,i.clippingPath.scaleY/=k);const w=1+i.cropX/i.width,b=1+i.cropY/i.height;return i.setPositionByOrigin(h,w,b),!0},render:Gf}),trS:new xe({x:.5,y:-.5,actionName:"trS",cursorStyleHandler:Zf,positionHandler:Bf,actionHandler:function(e,t,n,r){const{target:i}=t,o=i.getOriginalElementWidth(),s=i.getOriginalElementHeight(),a=o-i.width-i.cropX,l=a/i.width,c=i.cropY/i.height,h=i.getRelativeCenterPoint(),u=i.translateToOriginPoint(h,-l,1+c),d=_e.getLocalPoint(t,-l,1+c,n,r),f=i.scaleX,p=i.scaleY,g=yf(d,s,o,i.flipX,i.flipY),k=g/f,m=g/p,v=i.width/k,y=i.height/m,L=a/k,w=o-v-L,b=i.cropY/m;if(v+a>o||y+b>s)return!1;i.scaleX=g,i.scaleY=g,i.height=y,i.width=v,i.cropX=w,i.cropY=b,i.clippingPath&&(i.clippingPath.scaleX/=k,i.clippingPath.scaleY/=m);const _=L/v,x=b/y;return i.setPositionByOrigin(u,-_,1+x),!0},render:Gf}),blS:new xe({x:-.5,y:.5,actionName:"blS",cursorStyleHandler:Zf,positionHandler:If,actionHandler:function(e,t,n,r){const{target:i}=t,o=i.getOriginalElementWidth(),s=i.getOriginalElementHeight(),a=s-i.height-i.cropY,l=i.cropX/i.width,c=a/i.height,h=i.getRelativeCenterPoint(),u=i.translateToOriginPoint(h,1+l,-c),d=_e.getLocalPoint(t,1+l,-c,n,r),f=i.scaleX,p=i.scaleY,g=yf(d,s,o,i.flipX,i.flipY),k=g/f,m=g/p,v=i.width/k,y=i.height/m,L=a/m,w=i.cropX/k,b=s-y-L;if(w+v>o||L+y>s)return!1;i.scaleX=g,i.scaleY=g,i.height=y,i.width=v,i.cropX=w,i.cropY=b,i.clippingPath&&(i.clippingPath.scaleX/=k,i.clippingPath.scaleY/=m);const _=L/i.height,x=i.cropX/i.width;return i.setPositionByOrigin(u,1+x,-_),!0},render:Gf}),brS:new xe({x:.5,y:.5,actionName:"brS",cursorStyleHandler:Zf,positionHandler:Pf,actionHandler:function(e,t,n,r){const{target:i}=t,o=i.getOriginalElementWidth(),s=i.getOriginalElementHeight(),a=o-i.width-i.cropX,l=s-i.height-i.cropY,c=a/i.width,h=l/i.height,u=i.getRelativeCenterPoint(),d=i.translateToOriginPoint(u,-c,-h),f=yf(_e.getLocalPoint(t,-c,-h,n,r),s,o,i.flipX,i.flipY),p=f/i.scaleX,g=f/i.scaleY,k=a/p,m=l/g,v=i.width/p,y=i.height/g,L=o-v-k,w=s-y-m;if(v+k>o||y+m>s)return!1;i.scaleX=f,i.scaleY=f,i.width=v,i.height=y,i.cropX=L,i.cropY=w,i.clippingPath&&(i.clippingPath.scaleX/=p,i.clippingPath.scaleY/=g);const b=k/v,_=m/y;return i.setPositionByOrigin(d,-b,-_),!0},render:Gf}),cropLeft:new xe({x:-.5,y:0,actionName:"cropLeft",render:np,actionHandler:wf,angle:90}),cropRight:new xe({x:.5,y:0,actionName:"cropRight",render:rp,actionHandler:_f,angle:90}),cropTop:new xe({x:0,y:-.5,actionName:"cropTop",render:ep,actionHandler:Cf}),cropBottom:new xe({x:0,y:.5,actionName:"cropBottom",render:tp,actionHandler:jf}),cropCornerTL:new xe({x:-.5,y:-.5,actionName:"cropCornerTL",render:qf,actionHandler:Mf}),cropCornerBL:new xe({x:-.5,y:.5,actionName:"cropCornerBL",render:Jf,angle:270,actionHandler:Af}),cropCornerBR:new xe({x:.5,y:.5,actionName:"cropCornerBR",render:Qf,angle:180,actionHandler:Tf}),cropCornerTR:new xe({x:.5,y:-.5,actionName:"cropCornerTR",render:Kf,angle:90,actionHandler:Of})},lp=Math.PI/2,cp=Math.PI/180,hp=Object.freeze([1,0,0,1,0,0]),up=16,dp="center",fp="left",pp="right",gp="none",kp=(e,t)=>parseFloat(Number(e).toFixed(t)),mp=(e,t=up)=>{const n=/\D{0,2}$/.exec(e),r=parseFloat(e),i=je.DPI;switch(null==n?void 0:n[0]){case"mm":return r*i/25.4;case"cm":return r*i/2.54;case"in":return r*i;case"pt":return r*i/72;case"pc":return r*i/72*12;case"em":return r*t;default:return r}},vp=e=>{const[t,n]=e.trim().split(" "),[r,i]=(o=t)&&o!==gp?[o.slice(1,4),o.slice(5,8)]:o===gp?[o,o]:["Mid","Mid"];var o;return{meetOrSlice:n||"meet",alignX:r,alignY:i}};function yp(e){return new RegExp("^("+e.join("|")+")\\b","i")}const Lp=String.raw`(?:[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?)`,wp="http://www.w3.org/2000/svg",bp=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+Lp+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+Lp+"))?\\s+(.*)"),_p={cx:fp,x:fp,r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},xp="font-size",Cp="clip-path",Sp="mask",jp=yp(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),Ep=yp(["symbol","image","marker","pattern","view","svg"]),Mp=yp(["symbol","g","a","svg","clipPath","defs","mask"]),Tp=new RegExp("^\\s*("+Lp+"+)\\s*,?\\s*("+Lp+"+)\\s*,?\\s*("+Lp+"+)\\s*,?\\s*("+Lp+"+)\\s*$");function Ap(e,t){const n=e.nodeName,r=e.getAttribute("class"),i=e.getAttribute("id");let o;if(o=new RegExp("^"+n,"i"),t=t.replace(o,""),i&&t.length&&(o=new RegExp("#"+i+"(?![a-zA-Z\\-]+)","i"),t=t.replace(o,"")),r&&t.length){const e=r.split(" ");for(let n=e.length;n--;)o=new RegExp("\\."+e[n]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(o,"")}return 0===t.length}function Op(e,t){let n=!0;const r=Ap(e,t.pop());return r&&t.length&&(n=function(e,t){let n,r=!0;for(;e.parentElement&&1===e.parentElement.nodeType&&t.length;)r&&(n=t.pop()),r=Ap(e=e.parentElement,n);return 0===t.length}(e,t)),r&&n&&0===t.length}function Pp(e,t={}){let n={};for(const r in t)Op(e,r.split(" "))&&(n=l(l({},n),t[r]));return n}const Ip=e=>{var t;return null!=(t=_p[e])?t:e},Rp=e=>e*cp,Bp=e=>e/cp,Wp=e=>{if(0===e)return 1;switch(Math.abs(e)/lp){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},Hp=e=>{if(0===e)return 0;const t=e/lp,n=Math.sign(e);switch(t){case 1:return n;case 2:return 0;case 3:return-n}return Math.sin(e)},zp=(e,t,n)=>[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],n?0:e[0]*t[4]+e[2]*t[5]+e[4],n?0:e[1]*t[4]+e[3]*t[5]+e[5]],Np=e=>{const t=Math.atan2(e[1],e[0]),n=Math.pow(e[0],2)+Math.pow(e[1],2),r=Math.sqrt(n),i=(e[0]*e[3]-e[2]*e[1])/r,o=Math.atan2(e[0]*e[2]+e[1]*e[3],n);return{angle:Bp(t),scaleX:r,scaleY:i,skewX:Bp(o),skewY:0,translateX:e[4]||0,translateY:e[5]||0}};function Dp({angle:e=0}={},{x:t=0,y:n=0}={}){const r=Rp(e),i=Wp(r),o=Hp(r);return[i,o,-o,i,t?t-(i*t-o*n):0,n?n-(o*t+i*n):0]}const Fp=(e,t=e)=>[e,0,0,t,0,0],Vp=e=>Math.tan(Rp(e)),Up=e=>[1,0,Vp(e),1,0,0],$p=e=>[1,Vp(e),0,1,0,0],Yp=(e,t=0)=>[1,0,0,1,e,t],Xp=(e,t)=>e.reduceRight(((e,n)=>n?zp(n,e,t):e),hp),Zp=e=>e.replace(new RegExp(`(${Lp})`,"gi")," $1 ").replace(/,/gi," ").replace(/\s+/gi," "),Gp=`(${Lp})`,qp=String.raw`(skewX)\(${Gp}\)`,Kp=String.raw`(skewY)\(${Gp}\)`,Jp=String.raw`(rotate)\(${Gp}(?: ${Gp} ${Gp})?\)`,Qp=String.raw`(scale)\(${Gp}(?: ${Gp})?\)`,eg=String.raw`(translate)\(${Gp}(?: ${Gp})?\)`,tg=`(?:${String.raw`(matrix)\(${Gp} ${Gp} ${Gp} ${Gp} ${Gp} ${Gp}\)`}|${eg}|${Jp}|${Qp}|${qp}|${Kp})`,ng=`(?:${tg}*)`,rg=String.raw`^\s*(?:${ng}?)\s*$`,ig=new RegExp(rg),og=new RegExp(tg,"g");function sg(e){const t=[];if(!(e=Zp(e).replace(/\s*([()])\s*/gi,"$1"))||e&&!ig.test(e))return[...hp];for(const n of e.matchAll(og)){const e=new RegExp(tg).exec(n[0]);if(!e)continue;let r=hp;const i=e.filter((e=>!!e)),[,o,...s]=i,[a,l,c,h,u,d]=s.map((e=>parseFloat(e)));switch(o){case"translate":r=Yp(a,l);break;case"rotate":r=Dp({angle:a},{x:l,y:c});break;case"scale":r=Fp(a,l);break;case"skewX":r=Up(a);break;case"skewY":r=$p(a);break;case"matrix":r=[a,l,c,h,u,d]}t.push(r)}return Xp(t)}function ag(e,t,n,r){const i=Array.isArray(t);let o,s=t;if("fill"!==e&&"stroke"!==e||t!==gp){if("strokeUniform"===e)return"non-scaling-stroke"===t;if("strokeDashArray"===e)s=t===gp?null:t.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)s=n&&n.transformMatrix?zp(n.transformMatrix,sg(t)):sg(t);else if("visible"===e)s=t!==gp&&"hidden"!==t,n&&!1===n.visible&&(s=!1);else if("opacity"===e)s=parseFloat(t),n&&void 0!==n.opacity&&(s*=n.opacity);else if("textAnchor"===e)s="start"===t?fp:"end"===t?pp:dp;else if("charSpacing"===e)o=mp(t,r)/r*1e3;else if("paintFirst"===e){const e=t.indexOf("fill"),n=t.indexOf("stroke");s="fill",(e>-1&&n>-1&&n-1)&&(s="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return t;if("imageSmoothing"===e)return"optimizeQuality"===t;o=i?t.map(mp):mp(t,r)}}else s="";return!i&&isNaN(o)?s:o}function lg(e){const t={},n=e.getAttribute("style");return n?("string"==typeof n?function(e,t){e.replace(/;\s*$/,"").split(";").forEach((e=>{const[n,r]=e.split(":");t[n.trim().toLowerCase()]=r.trim()}))}(n,t):function(e,t){Object.entries(e).forEach((([e,n])=>{void 0!==n&&(t[e.toLowerCase()]=n)}))}(n,t),t):t}const cg={stroke:"strokeOpacity",fill:"fillOpacity"};function hg(e,t,n){if(!e)return{};let r,i={},o={},s=up;e.parentNode&&Mp.test(e.parentNode.nodeName)&&(i=hg(e.parentElement,t,n),i.fontSize&&(r=s=mp(i.fontSize))),"text"===e.tagName.toLowerCase().replace("svg:","")&&e.childNodes&&e.childNodes.forEach((e=>{o=ug(e,t,n)}));const a=l(l(l({},t.reduce(((t,n)=>{const r=e.getAttribute(n);return r&&(t[n]=r),t}),{})),Pp(e,n)),lg(e));a[Sp]&&e.setAttribute(Sp,a[Sp]),a[Cp]&&e.setAttribute(Cp,a[Cp]),a[xp]&&(r=mp(a[xp],s),a[xp]=`${r}`);const c={};for(const l in a){const e=Ip(l),t=ag(e,a[l],i,r);c[e]=t}c&&c.font&&function(e,t){const n=e.match(bp);if(!n)return;const r=n[1],i=n[3],o=n[4],s=n[5],a=n[6];r&&(t.fontStyle=r),i&&(t.fontWeight=isNaN(parseFloat(i))?i:parseFloat(i)),o&&(t.fontSize=mp(o)),a&&(t.fontFamily=a),s&&(t.lineHeight="normal"===s?1:s)}(c.font,c);const h=l(l(l({},i),c),o);return Mp.test(e.nodeName)?h:function(e){const t=we.getDefaults();return Object.entries(cg).forEach((([n,r])=>{if(void 0===e[r]||""===e[n])return;if(void 0===e[n]){if(!t[n])return;e[n]=t[n]}if(0===e[n].indexOf("url("))return;const i=new Ee(e[n]);e[n]=i.setAlpha(kp(i.getAlpha()*e[r],2)).toRgba()})),e}(h)}const ug=(e,t,n)=>{if(!e)return{};const r=l(l(l({},t.reduce(((t,n)=>{const r=e.getAttribute(n);return r&&(t[n]=r),t}),{})),Pp(e,n)),lg(e));if(r.x){const e=ag("left",r.x,{},void 0);r.dx=e,delete r.x}if(r.y){const e=ag("top",r.y,{},void 0);r.dy=e,delete r.y}return r};let dg=class extends Se{constructor(e,t){super(e,l({filters:[]},t)),u(this,"isCropping"),u(this,"cropKey"),u(this,"cropPath"),u(this,"cropSize"),u(this,"originWidth"),u(this,"originHeight"),u(this,"effects"),this.effects=null==t?void 0:t.effects,this.renderEffects(),this.on("mousedblclick",this.doubleClickHandler.bind(this))}doubleClickHandler(e){!this.canvas||!e.target||e.target!==this||e.target.lockMovementX&&e.target.lockMovementY||(this.set({__isCropping:!0,clipPath:void 0}),this.canvas.setActiveObject(this),this.canvas.requestRenderAll())}get __isCropping(){return this.isCropping}set __isCropping(e){this.isCropping=e,this.__isCropping&&this.onMousedbclickEvent()}onMousedbclickEvent(){const e=this.canvas;e&&(e.defaultCursor="move",function(e){const{canvas:t}=e;if(!t)return;e.hoverCursor=we.prototype.hoverCursor,t.requestRenderAll();const n=e.onDeselect;e.onDeselect=(...t)=>(n.call(e,...t),!0)}(this),this.lastEventTop=this.top,this.lastEventLeft=this.left,this.setupDragMatrix(),this.bindCropModeHandlers(),this.controls=ip,this.flipX&&!this.flipY&&(this.controls=op),this.flipY&&!this.flipX&&(this.controls=sp),this.flipX&&this.flipY&&(this.controls=ap),this.scaleX!=this.scaleY?this.setControlsVisibility({tlS:!1,trS:!1,blS:!1,brS:!1}):this.setControlsVisibility({tlS:!0,trS:!0,blS:!0,brS:!0}),this.setCoords(),e.centeredKey=null,e.altActionKey=null,e.selection=!1)}get _cropKey(){return this.cropKey}set _cropKey(e){this.cropSize=Math.min(this.width,this.height),this.cropKey!==e&&e&&(this.clipPath=void 0),this.cropKey=e,this.setCropCoords(this.cropSize,this.cropSize)}initEffects(){this.effects&&(this.originWidth=this.width,this.originHeight=this.height,this.originSrc=this.getSrc())}setCropCoords(e,t){if(!this.clipPath){const n=this.left+this.getOriginalElementWidth()/2-e/2,r=this.top+this.getOriginalElementHeight()/2-t/2;this.cropX=n-this.left,this.cropY=r-this.top,this.width=e,this.height=t}}getOriginalElementWidth(){return this._originalElement?this._originalElement.naturalWidth||this._originalElement.width:0}getOriginalElementHeight(){return this._originalElement?this._originalElement.naturalHeight||this._originalElement.height:0}getElementWidth(){return this._element?this._element.naturalWidth||this._element.width:0}getElementHeight(){return this._element?this._element.naturalHeight||this._element.height:0}_getOriginalTransformedDimensions(e={}){const t=l({scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,width:this.getOriginalElementWidth(),height:this.getOriginalElementHeight(),strokeWidth:this.strokeWidth},e),n=t.strokeWidth;let r=n,i=0;this.strokeUniform&&(r=0,i=n);const o=t.width+r,s=t.height+r;let a;return a=0===t.skewX&&0===t.skewY?new he(o*t.scaleX,s*t.scaleY):ge.sizeAfterTransform(o,s,t),a.scalarAdd(i)}_render(e){const t=this.width||0,n=this.height||0,r=this._element;if(e.save(),this.__isCropping){this._removeShadow(e),e.globalAlpha=.5;const i=this.getElementWidth(),o=this.getElementHeight(),s=-(this.cropX||0)-t/2,a=-(this.cropY||0)-n/2;e.drawImage(r,s,a,i,o),e.globalAlpha=1}super._render(e),this._drawCroppingLines(e),this._drawCroppingPath(e),e.restore()}drawBorders(e,t,n){this._renderCroppingBorders(e),super.drawBorders(e,t,n)}renderEffects(e){return d(this,null,(function*(){if(this.effects){this.initEffects(),this.originSrc&&(yield this.setSrc(this.originSrc));for(let t=0;t{if(n.width>=t.width&&n.height>=t.height)return;const r=n.top-t.top,i=n.left-t.left;e.fillStyle="#000",r>0&&e.fillRect(0,0,t.width,r),i>0&&e.fillRect(0,0,i,t.height),r+n.heightnew this(e,r)))}))}static fromObject(e,t){return d(this,null,(function*(){var n=e,{filters:r,resizeFilter:i,src:o,crossOrigin:s}=n,a=h(n,["filters","resizeFilter","src","crossOrigin"]);return a.originSrc&&a.effects&&(o=a.originSrc),a.originWidth&&a.effects&&(a.width=a.originWidth),a.originHeight&&a.effects&&(a.height=a.originHeight),Promise.all([ge.loadImage(o,c(l({},t),{crossOrigin:s})),r&&ge.enlivenObjects(r,t),i&&ge.enlivenObjects([i],t),ge.enlivenObjectEnlivables(a,t)]).then((([e,t=[],[n]=[],r={}])=>{const i=new this(e,l(c(l({},a),{src:o,crossOrigin:s,filters:t,resizeFilter:n}),r));return i.renderMask(),i}))}))}static fromElement(e){return d(this,arguments,(function*(e,t={},n){const r=hg(e,this.ATTRIBUTE_NAMES.concat(["mask"]),n);return this.fromURL(r["xlink:href"],t,r).catch((e=>null))}))}};Object.assign(dg.prototype,l(l({cacheProperties:[...we.cacheProperties,"cropX","cropY"]},{type:"Image",strokeWidth:0,srcFromAttribute:!1,minimumScaleTrigger:.5,cropX:0,cropY:0,imageSmoothing:!0}),{cropBorderColor:"#43b9d3",cropBorderScaleFactor:2,cropCornerStyle:"default",cropDarkLayer:"#16191e",cropLinesColor:"#f6f7fa",croppingBeforeVals:["stroke","strokeWidth","cornerSize"],bindCropModeHandlers(){this.unbindCropModeHandlers(),this.on("moving",this.cropModeHandlerMoveImage),this.on("mousedown",this.resetCropModeAnchors),this.canvas.on("before:transform",this.cropBeforeHelper),this.canvas.on("mouse:up",Df),this.canvas.on("mouse:down",Ff),this.canvas.on("mouse:move",Vf)},unbindCropModeHandlers(){this.off("moving",this.cropModeHandlerMoveImage),this.off("mousedown",this.resetCropModeAnchors),this.canvas.off("before:transform",this.cropBeforeHelper),this.canvas.off("mouse:up",Df),this.canvas.off("mouse:down",Ff),this.canvas.off("mouse:move",Vf)},onDeselectEvent(){const e=this.canvas;var t,n;e&&(function(e){const{canvas:t}=e;if(!t)return;t.requestRenderAll();const n=e.onDeselect;e.onDeselect=(...t)=>(n.call(e,...t),!1)}(this),delete this.lastEventTop,delete this.lastEventLeft,this.unbindCropModeHandlers(),e.centeredKey=be.prototype.centeredKey,e.altActionKey=be.prototype.altActionKey,e.selection=!0,this.controls=Ia(),this.setCoords(),null==(n=(t=this).canvas)||n.fire("object:modified",{action:"cropImage",target:t}))},_drawDarkLayer(e){!this.isCropping&&!this.isInPerspectiveMode||this===this.canvas.backgroundImage||(e.save(),e.setTransform(1,0,0,1,0,0),e.globalAlpha=.5,e.fillStyle=this.cropDarkLayer,e.fillRect(0,0,this.canvas.lowerCanvasEl.width,this.canvas.lowerCanvasEl.height),e.restore())},_drawCroppingLines(e){if(!this.__isCropping||!this.canvas||this.cropKey)return;const t=this.width,n=this.height,r=this.canvas.getZoom()*je.devicePixelRatio;e.save(),e.lineWidth=1,e.globalAlpha=1,e.strokeStyle=this.cropLinesColor,e.beginPath(),e.moveTo(-t/2+t/3,-n/2),e.lineTo(-t/2+t/3,n/2),e.moveTo(-t/2+2*t/3,-n/2),e.lineTo(-t/2+2*t/3,n/2),e.moveTo(-t/2,-n/2+n/3),e.lineTo(t/2,-n/2+n/3),e.moveTo(-t/2,-n/2+2*n/3),e.lineTo(t/2,-n/2+2*n/3),e.scale(1/(this.scaleX*r),1/(this.scaleY*r)),e.stroke(),e.restore()},_drawCroppingPath(e){if(!this.__isCropping||!this.canvas||!this.cropKey)return;const t=this.canvas.getZoom()*je.devicePixelRatio;e.save(),e.lineWidth=1,e.globalAlpha=1,e.strokeStyle=this.cropLinesColor,this.cropPath=Go[this.cropKey].createPath(this.width,this.height),e.stroke(new Path2D(this.cropPath)),e.scale(1/(this.scaleX*t),1/(this.scaleY*t)),e.restore()},resetCropModeAnchors(){this.lastEventTop=this.top,this.lastEventLeft=this.left,this.lastTop=void 0,this.lastLeft=void 0},setupDragMatrix(){this.moveTransformationMatrix=ge.invertTransform(this.calcTransformMatrix()),this.changeToPositionMatrix=this.calcTransformMatrix().concat(),this.moveTransformationMatrix[4]=0,this.moveTransformationMatrix[5]=0,this.changeToPositionMatrix[4]=0,this.changeToPositionMatrix[5]=0},cropBeforeHelper({transform:e}){const{action:t,target:n}=e;"scale"===t.substring(0,5)&&(n.cropAnchorPoint=n.translateToOriginPoint(n.getCenterPoint(),e.originX,e.originY))},cropModeHandlerMoveImage(){if(!this.isCropping)return;const e=void 0===this.lastTop?this.lastEventTop:this.lastTop,t=void 0===this.lastLeft?this.lastEventLeft:this.lastLeft,n=new he(t-this.left,e-this.top),r=ge.transformPoint(n,this.moveTransformationMatrix),i=this._element.naturalWidth||this._element.width,o=this._element.naturalHeight||this._element.height,s=r.x,a=r.y;let l=this.cropX+s,c=this.cropY+a;l<0?(this.cropX,l=0):l+this.width>i&&(l=i-this.width,this.cropX,this.width),c<0?(this.cropY,c=0):c+this.height>o&&(c=o-this.height,this.cropY,this.height),this.cropX=l,this.cropY=c,this.lastTop=this.top,this.lastLeft=this.left,this.top=this.lastEventTop,this.left=this.lastEventLeft}})),ye.setClass(dg),ye.setSVGClass(dg);ye.setClass(class extends de{constructor(e,t,n){super(e,t,n),u(this,"subTargetCheck",!0),u(this,"interactive",!1),u(this,"isShow",!1),this.on("mousedblclick",this.doubleClickHandler.bind(this))}addDeselectedEvent(e){e.once("deselected",(()=>{var e;const t=null==(e=this.canvas)?void 0:e.getActiveObject();t&&t.getAncestors(!0).includes(this)?this.addDeselectedEvent(t):this.set({interactive:!1,objectCaching:!0})}))}onActiveTarget(e){this.canvas&&e.group&&!e.group.interactive&&e.getAncestors(!0).forEach((t=>{const n=t;n.interactive||(n.set({interactive:!0,objectCaching:!1}),n.addDeselectedEvent(e))}))}doubleClickHandler(e){var t;if(!this.canvas||!e.target||e.target!==this||!e.subTargets||0===e.subTargets.length||this.interactive)return;this.set({interactive:!0,objectCaching:!1}),this.addDeselectedEvent(this);const n=e.subTargets.indexOf(this),r=null!=(t=e.subTargets[n-1])?t:e.subTargets[e.subTargets.length-1];this.canvas.setActiveObject(r),this.canvas.requestRenderAll()}_onObjectRemoved(e,t){if(super._onObjectRemoved(e,t),0===this.size()){const e=this.getParent();e&&e.remove(this)}}});const fg=e=>Object.keys(e);ye.setClass(class extends Me{constructor(e,t){super(e,t),u(this,"canvasEvents"),u(this,"pointSize",10),u(this,"aligningLineMargin",10),u(this,"aligningLineWidth",1),u(this,"aligningLineColor","#F68066"),u(this,"verticalLines",[]),u(this,"horizontalLines",[]),u(this,"ignoreObjTypes",[]),u(this,"pickObjTypes",[]),u(this,"startStyle"),u(this,"endStyle"),this.startStyle=t.startStyle,this.endStyle=t.endStyle;this.canvasEvents={mouseup:()=>{(this.horizontalLines.length||this.verticalLines.length)&&(this.clearGuideline(),this.clearStretLine())}},this.on(this.canvasEvents),this.initControls()}pointMoving(e,t){var n;if(!(null==(n=this.canvas)?void 0:n.contextTop))return t;if(this.clearStretLine(),!this.canvas)return t;if(!this.canvas._currentTransform)return t;const r=this.canvas.getActiveObjects(),i=[],o=e=>{const t=e.getObjects().filter((e=>this.ignoreObjTypes.length?!this.ignoreObjTypes.some((t=>e.get(t.key)===t.value)):this.pickObjTypes.length?this.pickObjTypes.some((t=>e.get(t.key)===t.value)):!r.includes(e)&&(!!e.visible&&(Rs(e)?(o(e),!1):!Is(e)||!this.group||e!==this.group||(o(e),!1)))));i.push(...t)},s=this.getParent();return Ws(s)&&i.push(s),o(s),this.traversAllObjects(e,t,i)}clearStretLine(){this.verticalLines.length=this.horizontalLines.length=0}initControls(){const e={};this.points.forEach(((t,n)=>{e[n]=new xe({positionHandler:xa,actionHandler:Sa(n>0?n-1:this.points.length-1,ja),actionName:"modifyPolygon",pointIndex:n})})),this.controls=e}traversAllObjects(e,t,n){const r=this.getObjDraggingObjCoords(),i=new Set,o=new Set;for(let s=n.length;s--;){const e=c(l({},this.__getCoords(n[s])),{c:n[s].getCenterPoint()}),{objHeight:t,objWidth:a}=this.getObjMaxWidthHeightByCoords(e);fg(r).forEach((t=>{const i=0!==n[s].angle?this.omitCoords(e,"horizontal"):e;fg(i).forEach((n=>{if(this.isInRange(r[t].y,e[n].y)){const i=e[n].y,s=r[t].y-i;o.add(r.c.y-s);const h=this.__getCoords(this),{x1:u,x2:d}=function(n,r){let i,o;return"c"===n?(i=Math.min(e.c.x-a/2,r[t].x),o=Math.max(e.c.x+a/2,r[t].x)):(i=Math.min(e[n].x,r[t].x),o=Math.max(e[n].x,r[t].x)),{x1:i,x2:o}}(n,c(l({},h),{c:this.calcCenterPointByACoords(h)}));this.horizontalLines.push({y:i,x1:u,x2:d})}}))})),fg(r).forEach((o=>{const a=0!==n[s].angle?this.omitCoords(e,"vertical"):e;fg(a).forEach((n=>{if(this.isInRange(r[o].x,e[n].x)){const s=e[n].x,h=r[o].x-s;i.add(r.c.x-h);const u=this.__getCoords(this),{y1:d,y2:f}=function(n,r){let i,s;return"c"===n?(i=Math.min(a.c.y-t/2,r[o].y),s=Math.max(a.c.y+t/2,r[o].y)):(i=Math.min(e[n].y,r[o].y),s=Math.max(e[n].y,r[o].y)),{y1:i,y2:s}}(n,c(l({},u),{c:this.calcCenterPointByACoords(u)}));this.verticalLines.push({x:s,y1:d,y2:f})}}))}))}return this.snap({point:t,snapXPoints:i,snapYPoints:o})}getObjDraggingObjCoords(){const e=this.__getCoords(this),t=this.calcCenterPointByACoords(e).subtract(this.getCenterPoint()),n=fg(e).map((n=>e[n].subtract(t)));return{tl:n[0],tr:n[1],br:n[2],bl:n[3],c:this.getCenterPoint()}}getObjMaxWidthHeightByCoords(e){const{c:t,tl:n,tr:r}=e;return{objHeight:2*Math.max(Math.abs(t.y-n.y),Math.abs(t.y-r.y)),objWidth:2*Math.max(Math.abs(t.x-n.x),Math.abs(t.x-r.x))}}omitCoords(e,t){const n=e,r="vertical"===t?"x":"y";return fg(e).forEach((t=>{e[t][r]n.tl[r]&&(n[t]=e[t])})),n}isInRange(e,t){return!!this.canvas&&Math.abs(Math.round(e)-Math.round(t))<=this.aligningLineMargin/this.canvas.getZoom()}__getCoords(e){const[t,n,r,i]=e.getCoords(!0);return{tl:t,tr:n,br:r,bl:i}}calcCenterPointByACoords(e){return new he((e.tl.x+e.br.x)/2,(e.tl.y+e.br.y)/2)}snap({point:e,snapXPoints:t,snapYPoints:n}){if(0===t.size&&0===n.size)return e;const r=(e,t)=>{if(0===e.size)return t;return[...e].sort(((e,n)=>Math.abs(t-e)-Math.abs(t-n)))[0]};return new he(r(t,e.x),r(n,e.y))}setLineMode(e,t){"start"===t&&(this.startStyle=e),"end"===t&&(this.endStyle=e)}_render(e){super._render(e),this.clearGuideline(),this.renderStartStyle(e),this.renderEndStyle(e),this.drawGuideLines()}renderStartStyle(e){if(!this.startStyle)return;const t=this.points[0],n=this.points[this.points.length-1],r=t.x-n.x,i=t.y-n.y,o=Math.atan2(i,r);this.startStyle===is.ARROW&&(e.save(),e.translate((t.x-n.x)/2,(t.y-n.y)/2),e.rotate(o),e.beginPath(),e.moveTo(this.pointSize,0),e.lineTo(-this.pointSize,this.pointSize),e.lineTo(-this.pointSize,-this.pointSize),e.closePath(),e.fillStyle=this.stroke,e.fill(),e.restore()),this.startStyle===is.DOT&&(e.save(),e.translate((t.x-n.x)/2,(t.y-n.y)/2),e.rotate(o),e.beginPath(),e.arc(0,0,this.pointSize,0,2*Math.PI),e.closePath(),e.fillStyle=this.stroke,e.fill(),e.restore())}renderEndStyle(e){if(!this.endStyle)return;this.points[0];const t=this.points[this.points.length-1],n=t.x-this.points[0].x,r=t.y-this.points[0].y,i=Math.atan2(r,n);this.endStyle===is.ARROW&&(e.save(),e.translate((t.x-this.points[0].x)/2,(t.y-this.points[0].y)/2),e.rotate(i),e.beginPath(),e.moveTo(this.pointSize,0),e.lineTo(-this.pointSize,this.pointSize),e.lineTo(-this.pointSize,-this.pointSize),e.closePath(),e.fillStyle=this.stroke,e.fill(),e.restore()),this.endStyle===is.DOT&&(e.save(),e.translate((t.x-this.points[0].x)/2,(t.y-this.points[0].y)/2),e.rotate(i),e.beginPath(),e.arc(0,0,this.pointSize,0,2*Math.PI),e.closePath(),e.fillStyle=this.stroke,e.fill(),e.restore())}drawVerticalLine(e,t){this.drawLine(e.x,Math.min(e.y1,e.y2),e.x,Math.max(e.y1,e.y2))}drawSign(e,t){if(!this.canvas)return;const n=this.canvas.getTopContext();n.strokeStyle=this.aligningLineColor,n.beginPath();n.moveTo(e-3,t-3),n.lineTo(e+3,t+3),n.moveTo(e+3,t-3),n.lineTo(e-3,t+3),n.stroke()}drawLine(e,t,n,r){if(!this.canvas)return;const i=this.canvas.getTopContext(),o=ge.transformPoint(new he(e,t),this.canvas.viewportTransform),s=ge.transformPoint(new he(n,r),this.canvas.viewportTransform);i.save(),i.lineWidth=this.aligningLineWidth,i.strokeStyle=this.aligningLineColor,i.beginPath(),i.moveTo(o.x,o.y),i.lineTo(s.x,s.y),i.stroke(),this.drawSign(o.x,o.y),this.drawSign(s.x,s.y),i.restore(),this.dirty=!0}drawHorizontalLine(e,t){this.drawLine(Math.min(e.x1,e.x2),e.y,Math.max(e.x1,e.x2),e.y)}drawGuideLines(){if(!this.canvas)return;const e=this.getObjDraggingObjCoords();if(this.verticalLines.length)for(let t=this.verticalLines.length;t--;)this.drawVerticalLine(this.verticalLines[t],e);if(this.horizontalLines.length)for(let t=this.horizontalLines.length;t--;)this.drawHorizontalLine(this.horizontalLines[t],e);this.canvas.calcOffset()}clearGuideline(){this.canvas&&(this.dirty=!1,this.canvas.contextTop&&this.canvas.clearContext(this.canvas.getTopContext()))}toSVG(e){return super.toSVG(e)}dispose(){super.dispose(),this.off(this.canvasEvents)}});const pg=e=>Object.keys(e);ye.setClass(class extends Te{constructor(e,t){super(e,t),u(this,"canvasEvents"),u(this,"pointSize",10),u(this,"aligningLineMargin",10),u(this,"aligningLineWidth",1),u(this,"aligningLineColor","#F68066"),u(this,"verticalLines",[]),u(this,"horizontalLines",[]),u(this,"ignoreObjTypes",[]),u(this,"pickObjTypes",[]),u(this,"startStyle"),u(this,"endStyle"),this.startStyle=t.startStyle,this.endStyle=t.endStyle;this.canvasEvents={mouseup:()=>{(this.horizontalLines.length||this.verticalLines.length)&&(this.clearGuideline(),this.clearStretLine())}},this.on(this.canvasEvents),this.initControls()}pointMoving(e,t){var n;if(!(null==(n=this.canvas)?void 0:n.contextTop))return t;if(this.clearStretLine(),!this.canvas)return t;if(!this.canvas._currentTransform)return t;const r=this.canvas.getActiveObjects(),i=[],o=e=>{const t=e.getObjects().filter((e=>this.ignoreObjTypes.length?!this.ignoreObjTypes.some((t=>e.get(t.key)===t.value)):this.pickObjTypes.length?this.pickObjTypes.some((t=>e.get(t.key)===t.value)):!r.includes(e)&&(!!e.visible&&(Rs(e)?(o(e),!1):!Is(e)||!this.group||e!==this.group||(o(e),!1)))));i.push(...t)},s=this.getParent();return Ws(s)&&i.push(s),o(s),this.traversAllObjects(e,t,i)}clearStretLine(){this.verticalLines.length=this.horizontalLines.length=0}initControls(){const e={};this.points.forEach(((t,n)=>{e[n]=new xe({positionHandler:xa,actionHandler:Sa(n>0?n-1:this.points.length-1,ja),actionName:"modifyPolyline",pointIndex:n})})),this.controls=e}traversAllObjects(e,t,n){const r=this.getObjDraggingObjCoords(),i=new Set,o=new Set;for(let s=n.length;s--;){const e=c(l({},this.__getCoords(n[s])),{c:n[s].getCenterPoint()}),{objHeight:t,objWidth:a}=this.getObjMaxWidthHeightByCoords(e);pg(r).forEach((t=>{const i=0!==n[s].angle?this.omitCoords(e,"horizontal"):e;pg(i).forEach((n=>{if(this.isInRange(r[t].y,e[n].y)){const i=e[n].y,s=r[t].y-i;o.add(r.c.y-s);const h=this.__getCoords(this),{x1:u,x2:d}=function(n,r){let i,o;return"c"===n?(i=Math.min(e.c.x-a/2,r[t].x),o=Math.max(e.c.x+a/2,r[t].x)):(i=Math.min(e[n].x,r[t].x),o=Math.max(e[n].x,r[t].x)),{x1:i,x2:o}}(n,c(l({},h),{c:this.calcCenterPointByACoords(h)}));this.horizontalLines.push({y:i,x1:u,x2:d})}}))})),pg(r).forEach((o=>{const a=0!==n[s].angle?this.omitCoords(e,"vertical"):e;pg(a).forEach((n=>{if(this.isInRange(r[o].x,e[n].x)){const s=e[n].x,h=r[o].x-s;i.add(r.c.x-h);const u=this.__getCoords(this),{y1:d,y2:f}=function(n,r){let i,s;return"c"===n?(i=Math.min(a.c.y-t/2,r[o].y),s=Math.max(a.c.y+t/2,r[o].y)):(i=Math.min(e[n].y,r[o].y),s=Math.max(e[n].y,r[o].y)),{y1:i,y2:s}}(n,c(l({},u),{c:this.calcCenterPointByACoords(u)}));this.verticalLines.push({x:s,y1:d,y2:f})}}))}))}return this.snap({point:t,snapXPoints:i,snapYPoints:o})}getObjDraggingObjCoords(){const e=this.__getCoords(this),t=this.calcCenterPointByACoords(e).subtract(this.getCenterPoint()),n=pg(e).map((n=>e[n].subtract(t)));return{tl:n[0],tr:n[1],br:n[2],bl:n[3],c:this.getCenterPoint()}}getObjMaxWidthHeightByCoords(e){const{c:t,tl:n,tr:r}=e;return{objHeight:2*Math.max(Math.abs(t.y-n.y),Math.abs(t.y-r.y)),objWidth:2*Math.max(Math.abs(t.x-n.x),Math.abs(t.x-r.x))}}omitCoords(e,t){const n=e,r="vertical"===t?"x":"y";return pg(e).forEach((t=>{e[t][r]n.tl[r]&&(n[t]=e[t])})),n}isInRange(e,t){return!!this.canvas&&Math.abs(Math.round(e)-Math.round(t))<=this.aligningLineMargin/this.canvas.getZoom()}__getCoords(e){const[t,n,r,i]=e.getCoords(!0);return{tl:t,tr:n,br:r,bl:i}}calcCenterPointByACoords(e){return new he((e.tl.x+e.br.x)/2,(e.tl.y+e.br.y)/2)}snap({point:e,snapXPoints:t,snapYPoints:n}){if(0===t.size&&0===n.size)return e;const r=(e,t)=>{if(0===e.size)return t;return[...e].sort(((e,n)=>Math.abs(t-e)-Math.abs(t-n)))[0]};return new he(r(t,e.x),r(n,e.y))}setLineMode(e,t){"start"===t&&(this.startStyle=e),"end"===t&&(this.endStyle=e)}_render(e){super._render(e),this.clearGuideline(),this.renderStartStyle(e),this.renderEndStyle(e),this.drawGuideLines()}renderStartStyle(e){if(!this.startStyle)return;const t=this.points[0],n=this.points[this.points.length-1],r=t.x-n.x,i=t.y-n.y,o=Math.atan2(i,r);this.renderPointStyle(e,r,i,o,this.startStyle)}renderEndStyle(e){if(!this.endStyle)return;const t=this.points[this.points.length-2],n=this.points[this.points.length-1],r=n.x-t.x,i=n.y-t.y,o=Math.atan2(i,r);this.renderPointStyle(e,r,i,o,this.endStyle)}renderPointStyle(e,t,n,r,i){e.save(),e.translate(t/2,n/2),e.rotate(r),e.beginPath(),"arrow"===i?(e.moveTo(this.pointSize,0),e.lineTo(-this.pointSize,this.pointSize),e.lineTo(-this.pointSize,-this.pointSize)):e.arc(0,0,this.pointSize,0,2*Math.PI),e.closePath(),e.fillStyle=this.stroke,e.fill(),e.restore()}drawVerticalLine(e,t){this.drawLine(e.x,Math.min(e.y1,e.y2),e.x,Math.max(e.y1,e.y2))}drawSign(e,t){if(!this.canvas)return;const n=this.canvas.getTopContext();n.strokeStyle=this.aligningLineColor,n.beginPath();n.moveTo(e-3,t-3),n.lineTo(e+3,t+3),n.moveTo(e+3,t-3),n.lineTo(e-3,t+3),n.stroke()}drawLine(e,t,n,r){if(!this.canvas)return;const i=this.canvas.getTopContext(),o=ge.transformPoint(new he(e,t),this.canvas.viewportTransform),s=ge.transformPoint(new he(n,r),this.canvas.viewportTransform);i.save(),i.lineWidth=this.aligningLineWidth,i.strokeStyle=this.aligningLineColor,i.beginPath(),i.moveTo(o.x,o.y),i.lineTo(s.x,s.y),i.stroke(),this.drawSign(o.x,o.y),this.drawSign(s.x,s.y),i.restore(),this.dirty=!0}drawHorizontalLine(e,t){this.drawLine(Math.min(e.x1,e.x2),e.y,Math.max(e.x1,e.x2),e.y)}drawGuideLines(){if(!this.canvas)return;const e=this.getObjDraggingObjCoords();if(this.verticalLines.length)for(let t=this.verticalLines.length;t--;)this.drawVerticalLine(this.verticalLines[t],e);if(this.horizontalLines.length)for(let t=this.horizontalLines.length;t--;)this.drawHorizontalLine(this.horizontalLines[t],e);this.canvas.calcOffset()}clearGuideline(){this.canvas&&(this.dirty=!1,this.canvas.contextTop&&this.canvas.clearContext(this.canvas.getTopContext()))}toSVG(e){return super.toSVG(e)}dispose(){super.dispose(),this.off(this.canvasEvents)}});const gg=e=>Object.keys(e);ye.setClass(class extends Le{constructor([e,t,n,r],i){super([e,t,n,r],i),u(this,"canvasEvents"),u(this,"aligningLineMargin",10),u(this,"aligningLineWidth",1),u(this,"aligningLineColor","#F68066"),u(this,"verticalLines",[]),u(this,"horizontalLines",[]),u(this,"ignoreObjTypes",[]),u(this,"pickObjTypes",[]),u(this,"startStyle"),u(this,"endStyle");this.canvasEvents={mouseup:()=>{(this.horizontalLines.length||this.verticalLines.length)&&(this.clearGuideline(),this.clearStretLine())}},this.on(this.canvasEvents)}pointMoving(e,t){var n;if(!(null==(n=this.canvas)?void 0:n.contextTop))return t;if(this.clearStretLine(),!this.canvas)return t;if(!this.canvas._currentTransform)return t;const r=this.canvas.getActiveObjects(),i=[],o=e=>{const t=e.getObjects().filter((e=>this.ignoreObjTypes.length?!this.ignoreObjTypes.some((t=>e.get(t.key)===t.value)):this.pickObjTypes.length?this.pickObjTypes.some((t=>e.get(t.key)===t.value)):!r.includes(e)&&(!!e.visible&&(Rs(e)?(o(e),!1):!Is(e)||!this.group||e!==this.group||(o(e),!1)))));i.push(...t)},s=this.getParent();return Ws(s)&&i.push(s),o(s),this.traversAllObjects(e,t,i)}clearStretLine(){this.verticalLines.length=this.horizontalLines.length=0}traversAllObjects(e,t,n){const r=this.getObjDraggingObjCoords(),i=new Set,o=new Set;for(let s=n.length;s--;){const e=c(l({},this.__getCoords(n[s])),{c:n[s].getCenterPoint()}),{objHeight:t,objWidth:a}=this.getObjMaxWidthHeightByCoords(e);gg(r).forEach((t=>{const i=0!==n[s].angle?this.omitCoords(e,"horizontal"):e;gg(i).forEach((n=>{if(this.isInRange(r[t].y,e[n].y)){const i=e[n].y,s=r[t].y-i;o.add(r.c.y-s);const h=this.__getCoords(this),{x1:u,x2:d}=function(n,r){let i,o;return"c"===n?(i=Math.min(e.c.x-a/2,r[t].x),o=Math.max(e.c.x+a/2,r[t].x)):(i=Math.min(e[n].x,r[t].x),o=Math.max(e[n].x,r[t].x)),{x1:i,x2:o}}(n,c(l({},h),{c:this.calcCenterPointByACoords(h)}));this.horizontalLines.push({y:i,x1:u,x2:d})}}))})),gg(r).forEach((o=>{const a=0!==n[s].angle?this.omitCoords(e,"vertical"):e;gg(a).forEach((n=>{if(this.isInRange(r[o].x,e[n].x)){const s=e[n].x,h=r[o].x-s;i.add(r.c.x-h);const u=this.__getCoords(this),{y1:d,y2:f}=function(n,r){let i,s;return"c"===n?(i=Math.min(a.c.y-t/2,r[o].y),s=Math.max(a.c.y+t/2,r[o].y)):(i=Math.min(e[n].y,r[o].y),s=Math.max(e[n].y,r[o].y)),{y1:i,y2:s}}(n,c(l({},u),{c:this.calcCenterPointByACoords(u)}));this.verticalLines.push({x:s,y1:d,y2:f})}}))}))}return this.snap({point:t,snapXPoints:i,snapYPoints:o})}getObjDraggingObjCoords(){const e=this.__getCoords(this),t=this.calcCenterPointByACoords(e).subtract(this.getCenterPoint()),n=gg(e).map((n=>e[n].subtract(t)));return{tl:n[0],tr:n[1],br:n[2],bl:n[3],c:this.getCenterPoint()}}getObjMaxWidthHeightByCoords(e){const{c:t,tl:n,tr:r}=e;return{objHeight:2*Math.max(Math.abs(t.y-n.y),Math.abs(t.y-r.y)),objWidth:2*Math.max(Math.abs(t.x-n.x),Math.abs(t.x-r.x))}}omitCoords(e,t){const n=e,r="vertical"===t?"x":"y";return gg(e).forEach((t=>{e[t][r]n.tl[r]&&(n[t]=e[t])})),n}isInRange(e,t){return!!this.canvas&&Math.abs(Math.round(e)-Math.round(t))<=this.aligningLineMargin/this.canvas.getZoom()}__getCoords(e){const[t,n,r,i]=e.getCoords(!0);return{tl:t,tr:n,br:r,bl:i}}calcCenterPointByACoords(e){return new he((e.tl.x+e.br.x)/2,(e.tl.y+e.br.y)/2)}snap({point:e,snapXPoints:t,snapYPoints:n}){if(0===t.size&&0===n.size)return e;const r=(e,t)=>{if(0===e.size)return t;return[...e].sort(((e,n)=>Math.abs(t-e)-Math.abs(t-n)))[0]};return new he(r(t,e.x),r(n,e.y))}setLineMode(e,t){"start"===t&&(this.startStyle=e),"end"===t&&(this.endStyle=e)}_render(e){if(super._render(e),this.endStyle===is.ARROW){e.save();const t=this.x2-this.x1,n=this.y2-this.y1,r=Math.atan2(n,t);e.translate(t/2,n/2),e.rotate(r),e.beginPath(),e.moveTo(5,0),e.lineTo(-5,5),e.lineTo(-5,-5),e.closePath(),e.fillStyle=this.stroke,e.fill(),e.restore()}}drawVerticalLine(e,t){this.drawLine(e.x,Math.min(e.y1,e.y2),e.x,Math.max(e.y1,e.y2))}drawSign(e,t){if(!this.canvas)return;const n=this.canvas.getTopContext();n.strokeStyle=this.aligningLineColor,n.beginPath();n.moveTo(e-3,t-3),n.lineTo(e+3,t+3),n.moveTo(e+3,t-3),n.lineTo(e-3,t+3),n.stroke()}drawLine(e,t,n,r){if(!this.canvas)return;const i=this.canvas.getTopContext(),o=ge.transformPoint(new he(e,t),this.canvas.viewportTransform),s=ge.transformPoint(new he(n,r),this.canvas.viewportTransform);i.save(),i.lineWidth=this.aligningLineWidth,i.strokeStyle=this.aligningLineColor,i.beginPath(),i.moveTo(o.x,o.y),i.lineTo(s.x,s.y),i.stroke(),this.drawSign(o.x,o.y),this.drawSign(s.x,s.y),i.restore(),this.dirty=!0}drawHorizontalLine(e,t){this.drawLine(Math.min(e.x1,e.x2),e.y,Math.max(e.x1,e.x2),e.y)}drawGuideLines(){if(!this.canvas)return;const e=this.getObjDraggingObjCoords();if(this.verticalLines.length)for(let t=this.verticalLines.length;t--;)this.drawVerticalLine(this.verticalLines[t],e);if(this.horizontalLines.length)for(let t=this.horizontalLines.length;t--;)this.drawHorizontalLine(this.horizontalLines[t],e);this.canvas.calcOffset()}clearGuideline(){this.canvas&&(this.dirty=!1,this.canvas.contextTop&&this.canvas.clearContext(this.canvas.getTopContext()))}toSVG(e){return super.toSVG(e)}dispose(){super.dispose(),this.off(this.canvasEvents)}});let kg=class extends Se{constructor(e,t){super(e,l({filters:[]},t))}};ye.setClass(kg,"BarCode");class mg extends Se{constructor(e,t){super(e,l({filters:[]},t))}}ye.setClass(mg,"QRCode");class vg extends Se{static getScale(e,t){return d(this,null,(function*(){const{width:n,height:r}=yield ga(e),i=t.width/n,o=t.height/r;return i>o?i:o}))}static fromURL(e){return d(this,arguments,(function*(e,t={}){const n=yield this.getScale(e,t);return t.scaleX=t.scaleY=n,ge.loadImage(e,t).then((e=>new this(e,t)))}))}static fromObject(e,t){return d(this,null,(function*(){var n=e,{filters:r,resizeFilter:i,src:o,crossOrigin:s}=n,a=h(n,["filters","resizeFilter","src","crossOrigin"]);const u=yield this.getScale(o,a);return a.scaleX=a.scaleY=u,a.width/=u,a.height/=u,Promise.all([ge.loadImage(o,c(l({},t),{crossOrigin:s})),r&&ge.enlivenObjects(r,t),i&&ge.enlivenObjects([i],t),ge.enlivenObjectEnlivables(a,t)]).then((([e,t=[],[n]=[],r={}])=>new this(e,l(c(l({},a),{src:o,crossOrigin:s,filters:t,resizeFilter:n}),r))))}))}}u(vg,"type","svgimage"),ye.setClass(vg,"svgimage");const yg=(e,t)=>wg(e,t,(function(e,t){return e>=t})),Lg=(e,t)=>wg(e,t,(function(e,t){return e{if(!e||0===e.length)return;let r=e.length-1,i=t?e[r][t]:e[r];if(t)for(;r--;)n(e[r][t],i)&&(i=e[r][t]);else for(;r--;)n(e[r],i)&&(i=e[r]);return i};class bg extends me{constructor(e,t){super(e,t),u(this,"letters"),u(this,"hasEffect",!1),u(this,"radius",100),u(this,"range",5),u(this,"smallFont",10),u(this,"largeFont",30),u(this,"effect","curved"),u(this,"spacing",20),u(this,"reverse",!1),u(this,"_isRendering",0),u(this,"_textLines",[]),u(this,"_dimensionAffectingProps",["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","scaleX","scaleY"]),this.radius=t.width/2,this.on("editing:entered",this.editingEnterdHandler.bind(this)),this.on("editing:exited",this.editingExitedHandler.bind(this)),this.letters=new de([],{selectable:!1,padding:0}),this.initialize(e,t)}initialize(e,t){this.hasEffect=!0,this.setOptions(t),this.setText(e,t),this._render()}setText(e,t){if(this.letters&&this.hasEffect){this.letters._objects=[];for(let n=0;nn.set(e,t)))),this}_calcBounds(e){let t,n,r,i=[],o=[],s=["tr","br","bl","tl"],a=this.letters._objects.length,l=s.length;for(let c=0;c"];if(this.letters)for(let n=0,r=this.letters.size();n"),e?e(t.join("")):t.join("")}}function _g(e,t){let n=t-e;for(;n>=2*Math.PI;)n-=2*Math.PI;for(;n<=0;)n+=2*Math.PI;return n}function xg(e,t,n){return _g(e,t)+_g(t,n)<2*Math.PI}function Cg(e,t,n,r){let i=e.x,o=e.y,s=i,a=o;t.xs&&(s=t.x),t.ya&&(a=t.y);let l=Math.atan2(e.y-n.y,e.x-n.x),c=Math.atan2(t.y-n.y,t.x-n.x);if(xg(l,0,c)){let e=n.x+r;e>s&&(s=e)}if(xg(l,Math.PI/2,c)){let e=n.y+r;e>a&&(a=e)}if(xg(l,Math.PI,c)){let e=n.x-r;ee.button&&1!==e.button,jg={minFontSize:2,maxFontSize:250,minLineHeight:2,maxLineHeight:200,maxStrokeWidth(){return Math.ceil(this.getFontSize()/10)},setProperty(e,t){this[e]=t,this._textBeforeEdit=this.text},_removeStyle(e){for(let t in this.styles)for(let n in this.styles[t])delete this.styles[t][n][e]},_removeStyleAt(e,t){let n=this.getStylePosition(t);if(!this._getLineStyle(n.lineIndex)||!this._getStyleDeclaration(n.lineIndex,n.charIndex))return;let r=this.styles[n.lineIndex][n.charIndex];delete r[e],Object.keys(r).length||(delete this.styles[n.lineIndex][n.charIndex],this.styles[n.lineIndex].length||delete this.styles[n.lineIndex])},_modifyObjectStyleProperty(e,t){let n=0;for(let r in this.styles)for(let i in this.styles[r]){if(void 0!==this.styles[r][i]&&this.styles[r][i][e]!==t)return;n++}n===this.text.length&&(this._removeStyle(e),this[e]=t)},setStyleInterval(e,t,n,r){if(void 0===t||this[e]===t){for(let t=n;tthis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===n&&this.selectionEnd===r||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()),this.group&&delete e.e._group)}},Eg=["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","color","canvas","curvature"],Mg=/ +/g;class Tg extends me{constructor(e,t){super(e,t),u(this,"curvature",151),u(this,"radius",66),u(this,"useRenderBoundingBoxes",!0),u(this,"showCurvature"),u(this,"color"),u(this,"splitByGrapheme"),u(this,"borderWidth",0),u(this,"__isMousedown",!1),u(this,"__lineInfo",[]),u(this,"__renderOffsetTop",0),u(this,"_linesRads",[]),u(this,"_contentOffsetX",0),u(this,"_contentOffsetY",0),u(this,"_curvingCenter",new he(0,0)),u(this,"_specialArray",[]),u(this,"_translatedX",0),u(this,"_translatedY",0),u(this,"_charTransformations",[]),u(this,"textTransform",""),u(this,"useBothRenderingMethod",!0),u(this,"storeProperties",["type","clipPath","frame","deco","textLines","textTransform"]),u(this,"backgroundStroke"),this.createCurvatureControl(),this.curvature=t.curvature?t.curvature:this.curvature,this.showCurvature=!0}get type(){return"ArcText"}createCurvatureControl(){this.on("scaling",this.updateCurvingControl)}updateCurvingControl(){this.controls.c}changeCurvature(e,t,n,r){const i=t.target,o=_e.getLocalPoint(t,t.originX,t.originY,n,r),s=i.strokeWidth/(i.strokeUniform?i.scaleX:1),a="center"===t.originY?2:1,l=(o.y+i.controls[t.corner].offsetY-i.height/2+i._contentOffsetY)*a/i.scaleY-s,c=i.calcTextHeight();let h=0;return Math.abs(l)>c/2&&(h=l>0?l-c/2:l+c/2),i.setRadius(h),!1}setRadius(e){this.setCurvature(1e4/e)}setCurvature(e){var t;this.set("curvature",e),null==(t=this.canvas)||t.fire("object:modified")}renderCharCallback(e,t,n,r,i,o,s,a){for(let l=r;l<=i;l++){const r=this._charTransformations[n][l];if(t.textAlign="center",r.char){let n=this.curvature>0?-r.charAngle:-r.charAngle-Math.PI;r.contour&&a.contourStroke&&(t.save(),t.lineWidth=a.contourStrokeWidth,t.strokeStyle=a.contourStroke,t.beginPath(),t.moveTo(r.contour.tl.x,r.contour.tl.y),t.lineTo(r.contour.tr.x,r.contour.tr.y),t.lineTo(r.contour.br.x,r.contour.br.y),t.lineTo(r.contour.bl.x,r.contour.bl.y),t.closePath(),t.stroke(),t.restore()),this.runCharRendering(e,t,r.char,r.cl.x,r.cl.y,n,a,"center")}}}runCharRendering(e,t,n,r,i,o,s,a){t&&(t.save(),t.translate(r,i),t.rotate(o)),this.defaultTextRender(e,t,n,s),t&&t.restore()}getSelectionStartFromPointer(e){const t=this.getLocalPointer(e);let n=t.x+(-this.width/2+this._contentOffsetX)*this.scaleX,r=t.y+(-this.height/2-this._curvingCenter.y+this._contentOffsetY)*this.scaleY,i=Math.atan2(-n,-r),o=Math.sqrt(n*n+r*r)/this.scaleY,s=0;if(this.curvature>0)for(;othis._linesRads[s];)s++;s>=this._textLines.length&&(s=this._textLines.length-1);let a=0;for(let f=0;f0?t/2+this.radius:-t/2+this.radius;this._curvingCenter=new he(0,i);let o=0;r>0&&(o=t),this._linesRads=[],-1!==this.textAlign.indexOf("justify")&&this.enArcLargeSpaces(n);const s=this._charTransformations=[];let a=1/0,l=-1/0,c=1/0,h=-1/0;for(let k=0;k0?o-=d:o+=d;const p=Math.abs(this.radius)+o;this._linesRads.push(p);for(let n=0;n0){v=m+p,y=m+p+d,L=m+p+f,w=m+p+d-d/this.lineHeight;const e=(3*v+2*y)/5;b=-(u+o.left)/e,x=-(u+o.left+o.width)/e,_=-(u+o.left+o.width/2)/e}else{v=m+p,y=m+p-d,L=m+p-f,w=m+p-d+d/this.lineHeight;let e=(2*v+3*y)/5;b=Math.PI+(u+o.left)/e,x=Math.PI+(u+o.left+o.width)/e,_=Math.PI+(u+o.left+o.width/2)/e}const j=Math.sin(x),E=Math.cos(x),M=Math.sin(b),T=Math.cos(b),A=Math.sin(_),O=Math.cos(_),P={contour:o.contour&&{x:o.contour.x*g.fontSize,w:o.contour.w*g.fontSize,h:o.contour.h*g.fontSize,y:this._getBaseLine(g.fontSize)+o.contour.y*g.fontSize},char:this._textLines[k][n],charAngle:_,leftAngle:b,rightAngle:x,charRadius:L,bottomRadius:v,topRadius:y,lineRadius:w,renderLeftAngle:C,renderRightAngle:S,bl:{x:0-v*M,y:i-v*T},br:{x:0-v*j,y:i-v*E},tl:{x:0-y*M,y:i-y*T},tr:{x:0-y*j,y:i-y*E},nl:{x:0-w*M,y:i-w*T},nr:{x:0-w*j,y:i-w*E},cl:{x:0-L*A,y:i-L*O},lc:{x:0-w*A,y:i-w*O}};if((null==(e=P.char)?void 0:e.trim())&&o.contour){let e=ge.cos(-_),t=ge.sin(-_),i=[e,t,-t,e,0,0],o=ge.multiplyTransformMatrices([1,0,0,1,P.lc.x,P.lc.y],i),s=P.contour.y;if(r>0){const e=P.contour.x-this.__charBounds[k][n].width/2;P.contour.br=ge.transformPoint({x:e+P.contour.w,y:-s},o),P.contour.bl=ge.transformPoint({x:e,y:-s},o),P.contour.tl=ge.transformPoint({x:e,y:-s-P.contour.h},o),P.contour.tr=ge.transformPoint({x:e+P.contour.w,y:-s-P.contour.h},o)}else{const e=-P.contour.x+this.__charBounds[k][n].width/2;P.contour.br=ge.transformPoint({x:e-P.contour.w,y:s},o),P.contour.bl=ge.transformPoint({x:e,y:s},o),P.contour.tl=ge.transformPoint({x:e,y:s+P.contour.h},o),P.contour.tr=ge.transformPoint({x:e-P.contour.w,y:s+P.contour.h},o)}c=Math.min(c,P.contour.br.x,P.contour.bl.x,P.contour.tl.x,P.contour.tr.x),h=Math.max(h,P.contour.br.x,P.contour.bl.x,P.contour.tl.x,P.contour.tr.x),a=Math.min(a,P.contour.br.y,P.contour.bl.y,P.contour.tl.y,P.contour.tr.y),l=Math.max(l,P.contour.br.y,P.contour.bl.y,P.contour.tl.y,P.contour.tr.y)}s[k][n]=P}}for(let k=0;k0?(i=Cg(t.tl,n.tr,this._curvingCenter,this._linesRads[k]+this.__lineHeights[k]),o=Cg(t.nl,n.nr,this._curvingCenter,this._linesRads[k])):(i=Cg(n.tr,t.tl,this._curvingCenter,this._linesRads[k]-this.__lineHeights[k]),o=Cg(n.nr,t.nl,this._curvingCenter,this._linesRads[k])),c=Math.min(c,i.x,o.x),h=Math.max(h,i.x+i.width,o.x+o.width),a=Math.min(a,i.y,o.y),l=Math.max(l,i.y+i.height,o.y+o.height)}this._enableDiacritics();const u=-c-n/2,d=h-n/2,f=-a-t/2,p=l-t/2;this.width=Math.max(n+u+d,this.MIN_TEXT_WIDTH),this.height=t+f+p,this._contentOffsetY=p/2-f/2,this._contentOffsetX=d/2-u/2;const g="left"===this.originX?u:this._contentOffsetX;this._translate(g,f),this.updateCurvingControl()}_hasStyleChanged(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let n in e)if(e[n]!==t[n])return!0;return!1}interateTextChunks(e,t,n){let r,i,o,s=0,a=this._specialArray,l=this._textLines[e],c=-1!==this.textAlign.indexOf("justify");if(c||0!==this.charSpacing||a&&a[e]||!this.isEmptyStyles(e))for(let h=0,u=l.length-1;h<=u;h++)o=h===u||this.charSpacing,n&&n(h),c&&!o&&this._reSpaceAndTab.test(l[h])&&(o=!0),o||(r=r||this.getCompleteStyleDeclaration(e,h),i=this.getCompleteStyleDeclaration(e,h+1),o=a&&a[e]&&a[e][h]!==a[e][h+1]||this._hasStyleChanged(r,i)),o&&(t(s,h,r),s=h+1,r=i);else t(0,l.length,null)}_enableDiacritics(){const e=this._charTransformations,t=["́","̀","̂","̌","̋","̏","̃","̇","̣","·","̈","ː","̆","̑","͗","̃","҃","̩","̄","̱","⃓","̷","̵","̊","̓","̒","̔","̉","̛","̦","̧","̡","̢","̨","͝","͡","","͞","͠"];for(let n in e)for(let r in e[n])if(e[n][r].char&&t.includes(e[n][r].char))for(let t=r;t--;)if(e[n][t].char){e[n][t].char+=e[n][r].char,e[n][r].isDiacritic=!0,delete e[n][r].char;break}}_drawTextLinesDecorationSector(e,t,n,r,i,o){e.fillStyle=t,e.lineWidth=this.fontSize/15;let s=this._charTransformations[r][i],a=this._charTransformations[r][o-1];e.beginPath(),this.curvature<0?e.arc(this._curvingCenter.x,this._curvingCenter.y,s.charRadius+1+n,-s.leftAngle-Math.PI/2,-a.rightAngle-Math.PI/2,!0):e.arc(this._curvingCenter.x,this._curvingCenter.y,s.charRadius-1-n,-s.leftAngle-Math.PI/2,-a.rightAngle-Math.PI/2,!1),e.stroke()}_contextSelectBackgroundSector(e,t,n,r,i){e.beginPath();let o=this._charTransformations[t][n],s=this._charTransformations[t][r];e.moveTo(o.tl.x,o.tl.y);let a=i?o.bottomRadius:o.lineRadius;const l=this.curvature<0;e.arc(this._curvingCenter.x,this._curvingCenter.y,a,-o.leftAngle-Math.PI/2,-s.rightAngle-Math.PI/2,l),e.lineTo(s.tr.x,s.tr.y);const c=!(this.curvature<0);e.arc(this._curvingCenter.x,this._curvingCenter.y,o.topRadius,-s.rightAngle-Math.PI/2,-o.leftAngle-Math.PI/2,c),e.closePath()}_renderTextLinesBackground(e){if(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))return;let t,n,r,i=e.fillStyle;for(let o=0,s=this._textLines.length;o=s&&h0?n.charIndex-1:0,o=this.scaleX*this.canvas.getZoom(),s=this.cursorWidth/o;this.inCompositionMode&&this.renderSelection(e,t);const a=this._charTransformations[n.lineIndex][n.charIndex];e.save(),e.translate(-this._contentOffsetX,-this._contentOffsetY),e.lineWidth=s,e.strokeStyle=this.getValueOfPropertyAt(r,i,"fill"),e.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,e.beginPath(),e.moveTo(a.nl.x,a.nl.y),e.lineTo(a.tl.x,a.tl.y),e.stroke(),e.restore()}_renderText(e){if(this.fill&&(e.fillStyle=this.fill),this.useBothRenderingMethod)return this._renderTextCommon(e,"both");"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))}_splitText(){let e=this.text;this.textTransform&&("uppercase"===this.textTransform&&(e=e.toUpperCase()),"lowercase"===this.textTransform&&(e=e.toLowerCase()),"capitalize"===this.textTransform&&(e=ge.string.capitalize(e)));let t=this._splitTextIntoLines(e);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,this.useRenderBoundingBoxes&&(this.__lineInfo=[]),t}calcTextHeight(){let e,t=0;for(let n=0,r=this._textLines.length;n{this._renderStr(e,t,o,n,s,r,i),r+=l,l=0}),(e=>{s=this.__charBounds[o][e],0===l?(r+=s.kernedWidth-s.width,l+=s.width):l+=s.kernedWidth})),t&&t.restore()}_renderStr(e,t,n,r,i,o,s){const a=this._getStyleDeclaration(n,r),l=this.getCompleteStyleDeclaration(n,r),c="fillText"===e&&l.fill,h="strokeText"===e&&l.stroke&&l.strokeWidth;if("calc"===e||"both"===e||h||c){if(t&&a&&t.save(),c&&this._setFillStyles(t,l),h&&this._setStrokeStyles(t,l),a&&a.textBackgroundColor&&this._removeShadow(t),a&&a.deltaY&&(s+=a.deltaY),l.special=this._specialArray&&this._specialArray[n]&&this._specialArray[n][r],this.renderCharCallback)this.renderCharCallback(e,t,n,r,i,o,s,l);else{const a=this._textLines[n].slice(r,i+1).join("");this.runCharRendering(e,t,a,o,s,0,l)}t&&a&&t.restore()}}_renderBackground(e){if(!this.backgroundColor&&!this.backgroundStroke)return;let t=this._getNonTransformedDimensions();this.backgroundColor&&(e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y)),this.backgroundStroke&&(this._setStrokeStyles(e,this.backgroundStroke),e.strokeRect(-t.x/2,-t.y/2,t.x,t.y)),this._removeShadow(e)}defaultTextRender(e,t,n,r){return"both"===e?(r.fill&&"fill"===this.paintFirst&&t.fillText(n,0,0),r.stroke&&r.strokeWidth&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(t),t.save(),this._setLineDash(t,this.strokeDashArray),t.beginPath(),t.strokeText(n,0,0),t.closePath(),t.restore()),r.fill&&"stroke"===this.paintFirst&&t.fillText(n,0,0)):("fillText"===e&&r.fill&&t.fillText(n,0,0),"strokeText"===e&&r.stroke&&r.strokeWidth&&t.strokeText(n,0,0)),!0}getHeightOfLine(e){if(this.__lineHeights||this.initDimensions(),this.__lineHeights[e])return this.__lineHeights[e];const t=this._textLines[e];let n=this.getHeightOfChar(e,0);for(let r=1,i=t.length;r`}_toSVG(){const e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)}_getSVGLeftTopOffsets(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}}_wrapSVGTextAndBg(e){const t=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t",e.textSpans.join(""),"\n"]}_setSVGBg(e){this.backgroundColor&&e.push("\t\t\n')}_getSVGTextAndBg(e,t){let n,r=[],i=[],o=e;this._setSVGBg(i);for(let s=0,a=this._textLines.length;s",ge.string.escapeXml(e),""].join("")}_hasStyleChangedForSvg(e,t){return this._hasStyleChanged(e,t)||e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough}_setSVGTextLineText(e,t,n,r){let i,o,s,a,l,c=this.getHeightOfLine(t),h=-1!==this.textAlign.indexOf("justify"),u="",d=0,f=this._textLines[t];this._fontSizeFraction,this.lineHeight;for(let p=0,g=f.length-1;p<=g;p++){l=p===g||this.charSpacing,u+=f[p],s=this._charTransformations[t][p];const n=this.curvature>0?-s.charAngle:-s.charAngle-Math.PI;if(0===d?(s.kernedWidth-s.width,d+=s.width):d+=s.kernedWidth,h&&!l&&this._reSpaceAndTab.test(f[p])&&(l=!0),l||(i=i||this.getCompleteStyleDeclaration(t,p),o=this.getCompleteStyleDeclaration(t,p+1),l=this._hasStyleChangedForSvg(i,o)),l){a=this._getStyleDeclaration(t,p)||{};const r=180*n/Math.PI;e.push(this._createTextCharSpan(u,a,s.cl.x,s.cl.y,r)),u="",i=o,d,d=0}}}_pushTextBgRect(e,t,n,r,i,o){e.push("\t\t\n')}_setSVGTextLineBg(e,t,n,r){let i,o,s=this._textLines[t],a=this.getHeightOfLine(t)/this.lineHeight,l=0,c=0,h=this.getValueOfPropertyAt(t,0,"textBackgroundColor");for(let u=0,d=s.length;u=0;a--){const e=this.effects[a];t.save(),t.strokeStyle=e.stroke,t.lineJoin=e.strokeLineJoin,t.lineWidth=e.strokeWidth,t.strokeText(i,o,s),t.restore()}super._renderChar(e,t,n,r,i,o,s)}static fromElement(e,t,n){return d(this,null,(function*(){const r=hg(e,Ae.ATTRIBUTE_NAMES,n),i=l(l({},t),r),{textAnchor:o=fp,textDecoration:s="",dx:a=0,dy:c=0,top:u=0,left:d=0,fontSize:f=up,strokeWidth:p=1}=i,g=h(i,["textAnchor","textDecoration","dx","dy","top","left","fontSize","strokeWidth"]),k=new this((e.textContent||"").replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," "),l({left:d+a,top:u+c,underline:s.includes("underline"),overline:s.includes("overline"),linethrough:s.includes("line-through"),strokeWidth:0,fontSize:f},g)),m=k.getScaledHeight()/k.height,v=((k.height+k.strokeWidth)*k.lineHeight-k.height)*m,y=k.getScaledHeight()+v;let L=0;return o===dp&&(L=k.getScaledWidth()/2),o===pp&&(L=k.getScaledWidth()),k.set({left:k.left-L,top:k.top-(y-k.fontSize*(.07+k._fontSizeFraction))/k.lineHeight,strokeWidth:p}),k}))}}ye.setClass(Og),ye.setSVGClass(Og);const Pg=e=>e.button&&1!==e.button,Ig={minFontSize:2,maxFontSize:250,minLineHeight:2,maxLineHeight:200,maxStrokeWidth(){return Math.ceil(this.getFontSize()/10)},setProperty(e,t){this[e]=t,this._textBeforeEdit=this.text},_removeStyle(e){for(let t in this.styles)for(let n in this.styles[t])delete this.styles[t][n][e]},_removeStyleAt(e,t){let n=this.getStylePosition(t);if(!this._getLineStyle(n.lineIndex)||!this._getStyleDeclaration(n.lineIndex,n.charIndex))return;let r=this.styles[n.lineIndex][n.charIndex];delete r[e],Object.keys(r).length||(delete this.styles[n.lineIndex][n.charIndex],this.styles[n.lineIndex].length||delete this.styles[n.lineIndex])},_modifyObjectStyleProperty(e,t){let n=0;for(let r in this.styles)for(let i in this.styles[r]){if(void 0!==this.styles[r][i]&&this.styles[r][i][e]!==t)return;n++}n===this.text.length&&(this._removeStyle(e),this[e]=t)},setStyleInterval(e,t,n,r){if(void 0===t||this[e]===t){for(let t=n;tthis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===n&&this.selectionEnd===r||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()),this.group&&delete e.e._group)}},Rg=/[a-zA-Z\.\s]+/,Bg=/[0-9]/,Wg=/[\(\)\]\[\{\}\]]/,Hg=/[ー「」『』()〔〕[]{}⦅⦆〈〉《》【】〖〗〘〙〚〛゛゜。、・゠=〜…•‥◦﹅﹆]/;class zg extends me{constructor(e,t){super(e,t),u(this,"minHeight"),u(this,"__isMousedown",!1),this.textAlign="right",this.direction="rtl",this.minHeight=t.width,this.offsets={underline:.05,linethrough:.65,overline:1.1}}initDimensions(){super.initDimensions(),this.heightn&&(n=r)}return n+this.cursorWidth}getSelectionStartFromPointer(e){let t,n,r=this.getLocalPointer(e),i=0,o=0,s=0,a=0,l=0,c=0,h=0;0!==this.charSpacing&&(h=this._getWidthOfCharSpacing()),r.x=this.width*this.scaleX-r.x+o;for(let d=0,f=this._textLines.length;d0&&(a+=this._textLines[d-1].length+this.missingNewlineOffset(d-1));n=this._textLines[l];const u=n.length;for(let d=0;do||s<0?0:1);return this.flipX&&(a=i-a),a>this._text.length&&(a=this._text.length),a}_getCursorBoundariesOffsets(e,t){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;let n,r,i,o,s,a=0,l=0,c=this.get2DCursorLocation(e);i=c.charIndex,r=c.lineIndex;for(let h=0;h0?a:0),left:l},"rtl"===this.direction&&(o.left*=-1),this.cursorOffsetCache=o,this.cursorOffsetCache}_getGraphemeBox(e,t,n,r,i){let o=super._getGraphemeBox(e,t,n,r,i);if(o.top=0,o.height=Number(o.height),n>0&&!i){const e=this.__charBounds[t][n-1],r=this._isLatin(this._textLines[t][n-1]);o.top=e.top+e[r?"width":"height"]}return o}renderSelection(e,t){var n,r;let i=this.inCompositionMode?null==(n=this.hiddenTextarea)?void 0:n.selectionStart:this.selectionStart,o=this.inCompositionMode?null==(r=this.hiddenTextarea)?void 0:r.selectionEnd:this.selectionEnd,s=-1!==this.textAlign.indexOf("justify"),a=this.get2DCursorLocation(i),l=this.get2DCursorLocation(o),c=a.lineIndex,h=l.lineIndex,u=a.charIndex<0?0:a.charIndex,d=l.charIndex<0?0:l.charIndex;for(let f=c;f<=h;f++){let n=this.getHeightOfLine(f),r=0,i=0;if(f===c&&(r=this.__charBounds[c][u].top),f>=c&&f1)&&(a/=this.lineHeight),this.inCompositionMode?e.fillStyle=this.compositionColor||"black":e.fillStyle=this.selectionColor,"rtl"===this.direction&&(o=this.width-o-a),e.fillRect(o,t.top+r,a,l),t.leftOffset-=n}}renderCursor(e,t){let n=this.get2DCursorLocation(),r=n.lineIndex,i=n.charIndex>0?n.charIndex-1:0,o=this.__charBounds[r][i],s=this.getValueOfPropertyAt(r,i,"fontSize"),a=this.scaleX*this.canvas.getZoom(),l=this.cursorWidth/a,c=t.topOffset,h=this.getHeightOfLine(r),u=t.left-t.leftOffset+(h/this.lineHeight+o.height)/2;this.inCompositionMode&&this.renderSelection(e,t),"rtl"===this.direction&&(u=this.width-u),e.fillStyle=this.cursorColor||this.getValueOfPropertyAt(r,i,"fill"),e.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,e.fillRect(u,c+t.top,s,l)}_renderTextLinesBackground(e){if(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))return;let t,n,r,i,o,s,a=e.fillStyle,l=this.width-this._getLeftOffset(),c=this._getTopOffset(),h=this.path,u=0,d=0,f=null;for(let p=0,g=this._textLines.length;p0?(a&&d&&(e.fillStyle=d,e.fillRect(v-p+n-f*L,y+g,this.fontSize/15,k)),l=c.width,k=this._isLatin(m)?c.width:c.height,a=h,d=u,r=f,i=o,g=c.top):(this._isLatin(m)?k+=c.kernedWidth:k+=c.height,l+=c.kernedWidth);e.fillStyle=u,h&&u&&e.fillRect(v-p+n-f*L,y+g,this.fontSize/15,k)}this._removeShadow(e)}}function Ng(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}u(zg,"type","VerticalText"),Object.assign(zg.prototype,l({},Ig)),ye.setClass(zg,"VerticalText"),function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(!a&&Ng)return Ng(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,(function(e){var n=t[s][1][e];return i(n||e)}),c,c.exports,e,t,n,r)}return n[s].exports}for(var o=Ng,s=0;s>=l,h-=l,k!==o){if(k===s)break;for(var m=ko;)y=p[y]>>8,++v;var L=y;if(d+v+(m!==k?1:0)>r)return;n[d++]=L;var w=d+=v;for(m!==k&&(n[d++]=L),y=m;v--;)y=p[y],n[--w]=255&y,y>>=8;null!==g&&a<4096&&(p[a++]=g<<8|L,a>=c+1&&l<12&&(++l,c=c<<1|1)),g=k}else a=s+1,c=(1<<(l=i+1))-1,g=null}return n}try{n.GifWriter=function(e,t,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,s=void 0===r.palette?null:r.palette;if(t<=0||n<=0||t>65535||n>65535)throw"Width/Height invalid.";function a(e){var t=e.length;if(t<2||t>256||t&t-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return t}e[i++]=71,e[i++]=73,e[i++]=70,e[i++]=56,e[i++]=57,e[i++]=97;var l=0,c=0;if(null!==s){for(var h=a(s);h>>=1;)++l;if(h=1<=h)throw"Background index out of range.";if(0===c)throw"Background index explicitly passed as 0."}}if(e[i++]=255&t,e[i++]=t>>8&255,e[i++]=255&n,e[i++]=n>>8&255,e[i++]=(null!==s?128:0)|l,e[i++]=c,e[i++]=0,null!==s)for(var u=0,d=s.length;u>16&255,e[i++]=f>>8&255,e[i++]=255&f}if(null!==o){if(o<0||o>65535)throw"Loop count invalid.";e[i++]=33,e[i++]=255,e[i++]=11,e[i++]=78,e[i++]=69,e[i++]=84,e[i++]=83,e[i++]=67,e[i++]=65,e[i++]=80,e[i++]=69,e[i++]=50,e[i++]=46,e[i++]=48,e[i++]=3,e[i++]=1,e[i++]=255&o,e[i++]=o>>8&255,e[i++]=0}var p=!1;this.addFrame=function(t,n,r,o,l,c){if(!0===p&&(--i,p=!1),c=void 0===c?{}:c,t<0||n<0||t>65535||n>65535)throw"x/y invalid.";if(r<=0||o<=0||r>65535||o>65535)throw"Width/Height invalid.";if(l.length>=1;)++f;d=1<3)throw"Disposal out of range.";var m=!1,v=0;if(void 0!==c.transparent&&null!==c.transparent&&(m=!0,(v=c.transparent)<0||v>=d))throw"Transparent color index.";if((0!==k||m||0!==g)&&(e[i++]=33,e[i++]=249,e[i++]=4,e[i++]=k<<2|(!0===m?1:0),e[i++]=255&g,e[i++]=g>>8&255,e[i++]=v,e[i++]=0),e[i++]=44,e[i++]=255&t,e[i++]=t>>8&255,e[i++]=255&n,e[i++]=n>>8&255,e[i++]=255&r,e[i++]=r>>8&255,e[i++]=255&o,e[i++]=o>>8&255,e[i++]=!0===h?128|f-1:0,!0===h)for(var y=0,L=u.length;y>16&255,e[i++]=w>>8&255,e[i++]=255&w}i=function(e,t,n,r){e[t++]=n;var i=t++,o=1<=n;)e[t++]=255&u,u>>=8,h-=8,t===i+256&&(e[i]=255,i=t++)}function f(e){u|=e<=8;)e[t++]=255&u,u>>=8,h-=8,t===i+256&&(e[i]=255,i=t++);4096===l?(f(o),l=a+1,c=n+1,g={}):(l>=1<>7,a=1<<1+(7&o);e[t++],e[t++];var l=null;s&&(l=t,t+=3*a);var c=!0,h=[],u=0,d=null,f=0,p=null;for(this.width=n,this.height=i;c&&t>2&7,t++;break;case 254:for(;0!==(C=e[t++]);)t+=C;break;default:throw"Unknown graphic control label: 0x"+e[t-1].toString(16)}break;case 44:var k=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,L=e[t++],w=L>>6&1,b=l,_=!1;L>>7&&(_=!0,b=t,t+=3*(1<<1+(7&L)));var x=t;for(t++;;){var C;if(0===(C=e[t++]))break;t+=C}h.push({x:k,y:m,width:v,height:y,has_local_palette:_,palette_offset:b,data_offset:x,data_length:t-x,transparent_index:d,interlaced:!!w,delay:u,disposal:f});break;case 59:c=!1;break;default:throw"Unknown gif block: 0x"+e[t-1].toString(16)}this.numFrames=function(){return h.length},this.loopCount=function(){return p},this.frameInfo=function(e){if(e<0||e>=h.length)throw"Frame index out of range.";return h[e]},this.decodeAndBlitFrameBGRA=function(t,i){var o=this.frameInfo(t),s=o.width*o.height,a=new Uint8Array(s);r(e,o.data_offset,a,s);var l=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var h=o.width,u=n-h,d=h,f=4*(o.y*n+o.x),p=4*((o.y+o.height)*n+o.x),g=f,k=4*u;!0===o.interlaced&&(k+=4*n*7);for(var m=8,v=0,y=a.length;v=p&&(k=4*u+4*n*(m-1),g=f+(h+u)*(m<<1),m>>=1)),L===c)g+=4;else{var w=e[l+3*L],b=e[l+3*L+1],_=e[l+3*L+2];i[g++]=_,i[g++]=b,i[g++]=w,i[g++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,i){var o=this.frameInfo(t),s=o.width*o.height,a=new Uint8Array(s);r(e,o.data_offset,a,s);var l=o.palette_offset,c=o.transparent_index;null===c&&(c=256);var h=o.width,u=n-h,d=h,f=4*(o.y*n+o.x),p=4*((o.y+o.height)*n+o.x),g=f,k=4*u;!0===o.interlaced&&(k+=4*n*7);for(var m=8,v=0,y=a.length;v=p&&(k=4*u+4*n*(m-1),g=f+(h+u)*(m<<1),m>>=1)),L===c)g+=4;else{var w=e[l+3*L],b=e[l+3*L+1],_=e[l+3*L+2];i[g++]=w,i[g++]=b,i[g++]=_,i[g++]=255}--d}}}}catch(FM){}},{}],2:[function(e,t,n){var r,i,o,s,a,l,c,h=function(e,t){return function(){return e.apply(t,arguments)}};i=e("omggif").GifReader,l=function(e){var t;return(t=new XMLHttpRequest).open("GET",e,!0),t.responseType="arraybuffer",{xhr:t,get:function(e){return t.onload=c(e),t.send(),this},animate:function(e){var n;return n=a(e),t.onload=c((function(e){return e.animateInCanvas(n)})),t.send(),this},frames:function(e,n,r){var i;return null==r&&(r=!1),i=a(e),t.onload=c((function(e){return e.onDrawFrame=n,e.animateInCanvas(i,r)})),t.send(),this}}},c=function(e){return function(t){return e(new r(new i(new Uint8Array(this.response))))}},a=function(e){var t,n;if("string"==typeof e&&"CANVAS"===(null!=(n=t=document.querySelector(e))?n.tagName:void 0))return t;if("CANVAS"===(null!=e?e.tagName:void 0))return e;throw new Error("Unexpected selector type. Valid types are query-selector-string/canvas-element")},o=function(e,t,n){var r,i,o;return i=(r=document.createElement("canvas")).getContext("2d"),r.width=e.width,r.height=e.height,(o=i.createImageData(t,n)).data.set(e.pixels),i.putImageData(o,-e.x,-e.y),r},s=function(e,t){var n;return function(){n=[];for(var t=0,r=e.numFrames();0<=r?tr;0<=r?t++:t--)n.push(t);return n}.apply(this).map((function(t){var n;return(n=e.frameInfo(t)).pixels=new Uint8ClampedArray(e.width*e.height*4),e.decodeAndBlitFrameRGBA(t,n.pixels),n}))},r=function(){function e(e){var t;this._reader=e,this._advanceFrame=h(this._advanceFrame,this),this._nextFrameRender=h(this._nextFrameRender,this),this._nextFrame=h(this._nextFrame,this),t=this._reader,this.width=t.width,this.height=t.height,this._frames=s(this._reader),this._loopCount=this._reader.loopCount(),this._loops=0,this._frameIndex=0,this._running=!1}return e.prototype.start=function(){return this._lastTime=(new Date).valueOf(),this._delayCompensation=0,this._running=!0,setTimeout(this._nextFrame,0),this},e.prototype.stop=function(){return this._running=!1,this},e.prototype.reset=function(){return this._frameIndex=0,this._loops=0,this},e.prototype._nextFrame=function(){requestAnimationFrame(this._nextFrameRender)},e.prototype._nextFrameRender=function(){var e,t;if(this._running)return e=this._frames[this._frameIndex],null!=(t=this.onFrame)&&t.apply(this,[e,this._frameIndex]),this._enqueueNextFrame()},e.prototype._advanceFrame=function(){this._frameIndex+=1,this._frameIndex>=this._frames.length&&(0!==this._loopCount&&this._loopCount===this._loops?this.stop():(this._frameIndex=0,this._loops+=1))},e.prototype._enqueueNextFrame=function(){var e,t,n,r;for(this._advanceFrame();this._running;){if(n=this._frames[this._frameIndex],t=(new Date).valueOf()-this._lastTime,this._lastTime+=t,this._delayCompensation+=t,e=(r=10*n.delay)-this._delayCompensation,this._delayCompensation-=r,!(e<0)){setTimeout(this._nextFrame,e);break}this._advanceFrame()}},e.prototype.animateInCanvas=function(e,t){var n,r;return null==t&&(t=!0),t&&(e.width=this.width,e.height=this.height),n=e.getContext("2d"),null==this.onDrawFrame&&(this.onDrawFrame=function(e,t,n){return e.drawImage(t.buffer,t.x,t.y)}),null==this.onFrame&&(this.onFrame=(r=this,function(t,i){var s,a;switch(null==t.buffer&&(t.buffer=o(t,r.width,r.height)),"function"==typeof r.disposeFrame&&r.disposeFrame(),t.disposal){case 2:r.disposeFrame=function(){return n.clearRect(0,0,e.width,e.height)};break;case 3:a=n.getImageData(0,0,e.width,e.height),r.disposeFrame=function(){return n.putImageData(a,0,0)};break;default:r.disposeFrame=null}return null!=(s=r.onDrawFrame)?s.apply(r,[n,t,i]):void 0})),this.start(),this},e}(),l.Animator=r,l.decodeFrames=s,l.createBufferCanvas=o,"undefined"!=typeof window&&null!==window&&(window.gifler=l),null!=t&&(t.exports=l)},{omggif:1}]},{},[2]);class Dg extends Se{constructor(e,t){super(e,t),u(this,"gifCanvas"),u(this,"gifler"),u(this,"isStarted",!1),this.gifCanvas=document.createElement("canvas")}drawFrame(e,t){var n;this.gifCanvas&&(this.gifCanvas.width=t.width,this.gifCanvas.height=t.height,e.drawImage(t.buffer,0,0),this.setSrc(this.gifCanvas.toDataURL()),null==(n=this.canvas)||n.renderAll())}_render(e){super._render(e),this.dirty=!0,this.isStarted||(this.isStarted=!0,this.gifler=window.gifler(this.getSrc()).frames(this.gifCanvas,((e,t)=>{this.isStarted=!0,this.drawFrame(e,t)})))}static fromURL(e,t={}){return ge.loadImage(e,t).then((e=>new this(e,t)))}}u(Dg,"type","GifImage"),ye.setClass(Dg);const Fg=["xlink:href"],Vg=Tu(I({__name:"index",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},setup(e){const t=e,n=E((()=>{return e=t.iconClass,/^(https?:|mailto:|tel:)/.test(e);var e})),r=E((()=>`#icon-${t.iconClass}`)),i=E((()=>t.className?`svg-icon ${t.className}`:"svg-icon")),o=E((()=>({mask:`url(${t.iconClass}) no-repeat 50% 50%`,"-webkit-mask":`url(${t.iconClass}) no-repeat 50% 50%`})));return(e,t)=>n.value?(D(),X("div",{key:0,style:Z(o.value),class:"svg-external-icon svg-icon"},null,4)):(D(),X("svg",{key:1,class:q(i.value),"aria-hidden":"true"},[G("use",{"xlink:href":r.value},null,8,Fg)],2))}}),[["__scopeId","data-v-2e52bf5e"]]),Ug={install(e){e.component("SvgIcon",Vg)}};var $g={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};var Yg=Symbol("icon-context");function Xg(e,t,n){return{name:"icon-"+e,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","spin"],setup:function(r){var i="icon-"+(4294967296*(1+Math.random())|0).toString(16).substring(1),o=w(Yg,$g);return function(){var s=r.size,a=r.strokeWidth,l=r.strokeLinecap,c=r.strokeLinejoin,h=r.theme,u=r.fill,d=r.spin,f=function(e,t,n){var r="string"==typeof t.fill?[t.fill]:t.fill||[],i=[];switch(t.theme||n.theme){case"outline":i.push("string"==typeof r[0]?r[0]:"currentColor"),i.push("none"),i.push("string"==typeof r[0]?r[0]:"currentColor"),i.push("none");break;case"filled":i.push("string"==typeof r[0]?r[0]:"currentColor"),i.push("string"==typeof r[0]?r[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push("string"==typeof r[0]?r[0]:"currentColor"),i.push("string"==typeof r[1]?r[1]:n.colors.twoTone.twoTone),i.push("string"==typeof r[0]?r[0]:"currentColor"),i.push("string"==typeof r[1]?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":i.push("string"==typeof r[0]?r[0]:"currentColor"),i.push("string"==typeof r[1]?r[1]:n.colors.multiColor.outFillColor),i.push("string"==typeof r[2]?r[2]:n.colors.multiColor.innerStrokeColor),i.push("string"==typeof r[3]?r[3]:n.colors.multiColor.innerFillColor)}return{size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:i,id:e}}(i,{size:s,strokeWidth:a,strokeLinecap:l,strokeLinejoin:c,theme:h,fill:u},o),p=[o.prefix+"-icon"];return p.push(o.prefix+"-icon-"+e),t&&o.rtl&&p.push(o.prefix+"-icon-rtl"),d&&p.push(o.prefix+"-icon-spin"),z("span",{class:p.join(" ")},[n(f)])}}}}const Zg=Xg("add-text",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M4 8H32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M28 21H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M18 42L18 8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M36 42L36 21",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),Gg=Xg("add-text-two",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("circle",{cx:"24",cy:"24",r:"20",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth},null),z("path",{d:"M32 16H16",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 34V16",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),qg=Xg("align-bottom",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"17",y:"6",width:"14",height:"28",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 42H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Kg=Xg("align-horizontally",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"7",y:"17",width:"34",height:"14",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Jg=Xg("align-left",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"14.5",y:"17",width:"28",height:"14",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6.5 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Qg=Xg("align-right",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"6",y:"17",width:"28",height:"14",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ek=Xg("align-text-both",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M42 19H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 39H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),tk=Xg("align-text-bottom-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 27H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27 34H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),nk=Xg("align-text-center",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M36 19H12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36 39H12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),rk=Xg("align-text-center-one",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M30 24H18",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 15H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 33H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ik=Xg("align-text-left",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 19H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 39H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ok=Xg("align-text-middle-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 20H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M26 27H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),sk=Xg("align-text-right",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 19H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 39H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ak=Xg("align-text-top-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M26 20H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 13H14",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),lk=Xg("align-top",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"17",y:"14.5",width:"14",height:"28",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 6.5H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ck=Xg("align-vertically",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"17",y:"7",width:"14",height:"34",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 24H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),hk=Xg("all-application",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M18 6H8C6.89543 6 6 6.89543 6 8V18C6 19.1046 6.89543 20 8 20H18C19.1046 20 20 19.1046 20 18V8C20 6.89543 19.1046 6 18 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M18 28H8C6.89543 28 6 28.8954 6 30V40C6 41.1046 6.89543 42 8 42H18C19.1046 42 20 41.1046 20 40V30C20 28.8954 19.1046 28 18 28Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M40 6H30C28.8954 6 28 6.89543 28 8V18C28 19.1046 28.8954 20 30 20H40C41.1046 20 42 19.1046 42 18V8C42 6.89543 41.1046 6 40 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M40 28H30C28.8954 28 28 28.8954 28 30V40C28 41.1046 28.8954 42 30 42H40C41.1046 42 42 41.1046 42 40V30C42 28.8954 41.1046 28 40 28Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),uk=Xg("application-menu",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M10 14C12.2091 14 14 12.2091 14 10C14 7.79086 12.2091 6 10 6C7.79086 6 6 7.79086 6 10C6 12.2091 7.79086 14 10 14Z",fill:e.colors[0]},null),z("path",{d:"M24 14C26.2091 14 28 12.2091 28 10C28 7.79086 26.2091 6 24 6C21.7909 6 20 7.79086 20 10C20 12.2091 21.7909 14 24 14Z",fill:e.colors[0]},null),z("path",{d:"M38 14C40.2091 14 42 12.2091 42 10C42 7.79086 40.2091 6 38 6C35.7909 6 34 7.79086 34 10C34 12.2091 35.7909 14 38 14Z",fill:e.colors[0]},null),z("path",{d:"M10 28C12.2091 28 14 26.2091 14 24C14 21.7909 12.2091 20 10 20C7.79086 20 6 21.7909 6 24C6 26.2091 7.79086 28 10 28Z",fill:e.colors[0]},null),z("path",{d:"M24 28C26.2091 28 28 26.2091 28 24C28 21.7909 26.2091 20 24 20C21.7909 20 20 21.7909 20 24C20 26.2091 21.7909 28 24 28Z",fill:e.colors[0]},null),z("path",{d:"M38 28C40.2091 28 42 26.2091 42 24C42 21.7909 40.2091 20 38 20C35.7909 20 34 21.7909 34 24C34 26.2091 35.7909 28 38 28Z",fill:e.colors[0]},null),z("path",{d:"M10 42C12.2091 42 14 40.2091 14 38C14 35.7909 12.2091 34 10 34C7.79086 34 6 35.7909 6 38C6 40.2091 7.79086 42 10 42Z",fill:e.colors[0]},null),z("path",{d:"M24 42C26.2091 42 28 40.2091 28 38C28 35.7909 26.2091 34 24 34C21.7909 34 20 35.7909 20 38C20 40.2091 21.7909 42 24 42Z",fill:e.colors[0]},null),z("path",{d:"M38 42C40.2091 42 42 40.2091 42 38C42 35.7909 40.2091 34 38 34C35.7909 34 34 35.7909 34 38C34 40.2091 35.7909 42 38 42Z",fill:e.colors[0]},null)])})),dk=Xg("arrow-circle-left",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32.4917 24.5H14.4917",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M23.4917 15.5L14.4917 24.5L23.4917 33.5",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),fk=Xg("back",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 40.8361C39.1069 34.8632 34.7617 31.4739 30.9644 30.6682C27.1671 29.8625 23.5517 29.7408 20.1182 30.303V41L4 23.5453L20.1182 7V17.167C26.4667 17.2172 31.8638 19.4948 36.3095 24C40.7553 28.5052 43.3187 34.1172 44 40.8361Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),pk=Xg("background-color",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37 37C39.2091 37 41 35.2091 41 33C41 31.5272 39.6667 29.5272 37 27C34.3333 29.5272 33 31.5272 33 33C33 35.2091 34.7909 37 37 37Z",fill:e.colors[0]},null),z("path",{d:"M20.8535 5.50439L24.389 9.03993",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M23.6818 8.33281L8.12549 23.8892L19.4392 35.2029L34.9955 19.6465L23.6818 8.33281Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 20.0732L28.961 25.6496",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M4 43H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),gk=Xg("bar-code",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M4 20H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 6V14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 25.9956V37.9992",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M20.4 6V14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M20.4 26V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34.8 6V14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 6V14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34.8 26V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M13.2 6V14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M13.2 26V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27.6 6V14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27.6 26V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 26V38",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),kk=Xg("bring-forward",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"6",y:"34",width:"36",height:"8",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("rect",{x:"6",y:"20",width:"36",height:"8",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M30 12L24 6L18 12V12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 28V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 6V20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),mk=Xg("bring-to-front",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M41 18H19C18.4477 18 18 18.4477 18 19V41C18 41.5523 18.4477 42 19 42H41C41.5523 42 42 41.5523 42 41V19C42 18.4477 41.5523 18 41 18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9.96906 6H6V10.0336",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9.99705 30H6V26.012",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M26.0023 6H30V10.0152",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16.0283 6H20.0083",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 16C6 18.6536 6 19.9869 6 20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M30 16C30 18.6765 30 19.3456 30 18.0074",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M15.9922 30H17.9996",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),vk=Xg("bring-to-front-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M14 21V34H27",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 14H34V27",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M5 21V5H21V21H5Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27 43V27H43V43H27Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),yk=Xg("chart-histogram",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 30V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M22 22V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M30 6V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M38 14V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Lk=Xg("chart-histogram-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M18 34H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M26 26H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 18H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 10L14 10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),wk=Xg("chart-line",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 34L22 18L32 27L42 6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),bk=Xg("chart-line-area",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 34L22 18L32 27L42 6V34H14Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),_k=Xg("chart-pie",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M44 24C44 35.0457 35.0457 44 24 44C12.9543 44 4 35.0457 4 24C4 12.9543 12.9543 4 24 4V24H44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43.0844 18H30V4.91553C36.2202 6.86917 41.1308 11.7798 43.0844 18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),xk=Xg("chart-proportion",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M16.3446 5.51758C13.9 6.53124 11.7001 8.01574 9.85786 9.85797C6.23858 13.4773 4 18.4773 4 24.0001C4 35.0458 12.9543 44.0001 24 44.0001V44.0001C29.5228 44.0001 34.5228 41.7615 38.1421 38.1422C39.9844 36.3 41.4689 34.1001 42.4825 31.6555",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 24H44C44 12.9543 35.0457 4 24 4L24 24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Ck=Xg("chart-ring",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M43.7756 20.9938C42.4735 12.3555 35.6463 5.5277 27.0084 4.22461M20.9757 4.22702C11.3651 5.68478 4 13.9822 4 23.9998C4 34.0212 11.3705 42.321 20.9863 43.7743C21.9692 43.9228 22.9756 43.9998 24 43.9998C25.0209 43.9998 26.024 43.9233 27.0038 43.7758C35.6458 42.4741 42.4762 35.6427 43.7764 27.0003",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 16C19.5817 16 16 19.5817 16 24C16 28.4183 19.5817 32 24 32C28.4183 32 32 28.4183 32 24C32 19.5817 28.4183 16 24 16Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Sk=Xg("chart-scatter",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 6V42H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 24C22.2091 24 24 22.2091 24 20C24 17.7909 22.2091 16 20 16C17.7909 16 16 17.7909 16 20C16 22.2091 17.7909 24 20 24Z",fill:e.colors[0]},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37 16C39.7614 16 42 13.7614 42 11C42 8.23858 39.7614 6 37 6C34.2386 6 32 8.23858 32 11C32 13.7614 34.2386 16 37 16Z",fill:e.colors[0]},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 36C16.6569 36 18 34.6569 18 33C18 31.3431 16.6569 30 15 30C13.3431 30 12 31.3431 12 33C12 34.6569 13.3431 36 15 36Z",fill:e.colors[0]},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 32C34.6569 32 36 30.6569 36 29C36 27.3431 34.6569 26 33 26C31.3431 26 30 27.3431 30 29C30 30.6569 31.3431 32 33 32Z",fill:e.colors[0]},null)])})),jk=Xg("check-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 24L22 30L34 18",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Ek=Xg("clear",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 5.91406H28V13.9141H43V21.9141H5V13.9141H20V5.91406Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M8 40H40V22H8V40Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 39.8976V33.9141",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 39.8977V33.8977",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 39.8976V33.9141",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 40H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Mk=Xg("click",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 4V12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22 22L42 26L36 30L42 36L36 42L30 36L26 42L22 22Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M38.1421 9.85789L32.4853 15.5147",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9.85787 38.1421L15.5147 32.4853",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 24H12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9.85795 9.85787L15.5148 15.5147",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Tk=Xg("click-tap",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M15 26V15C15 13.3431 16.3431 12 18 12C19.6569 12 21 13.3431 21 15V26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M39 25V31.5C39 37.8513 33.8513 43 27.5 43H26.5C20.1487 43 15 37.8513 15 31.5V25",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 29V27.1058V24C21 22.3431 22.3431 21 24 21C25.6569 21 27 22.3431 27 24V27.1818V29",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27 29V27.1058V24C27 22.3431 28.3431 21 30 21C31.6569 21 33 22.3431 33 24V27.1818V29",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M33 29V27.1058V24C33 22.3431 34.3431 21 36 21C37.6569 21 39 22.3431 39 24V27.1818V29",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M28 15C28 13.9489 27.8378 12.9357 27.5371 11.9839C27.2008 10.9195 26.6913 9.93208 26.0415 9.0547C24.2198 6.59472 21.2961 5 18 5C14.7039 5 11.7802 6.59472 9.95847 9.0547C9.30873 9.93208 8.79916 10.9195 8.46286 11.9839C8.16217 12.9357 8 13.9489 8 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),Ak=Xg("close",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M8 8L40 40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M8 40L40 8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Ok=Xg("close-small",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M14 14L34 34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 34L34 14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Pk=Xg("code",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M16 13L4 25.4322L16 37",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 13L44 25.4322L32 37",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M28 4L21 44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),Ik=Xg("color-filter",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 40.9444C26.123 42.8446 28.9266 44 32 44C38.6274 44 44 38.6274 44 32C44 26.4085 40.1757 21.7102 35 20.3781",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M13 20.3781C7.82432 21.7102 4 26.4085 4 32C4 38.6274 9.37258 44 16 44C22.6274 44 28 38.6274 28 32C28 30.4506 27.7063 28.9697 27.1716 27.6101",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 28C30.6274 28 36 22.6274 36 16C36 9.37258 30.6274 4 24 4C17.3726 4 12 9.37258 12 16C12 22.6274 17.3726 28 24 28Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Rk=Xg("connection",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M39 34L44 39L39 44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 8L20 8C22.2091 8 24 9.79086 24 12V35C24 37.2091 25.7909 39 28 39H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Bk=Xg("contrast-view-circle",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44V4Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 4C35.0457 4 44 12.9543 44 24C44 35.0457 35.0457 44 24 44V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 36H9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 28H5",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 20H5",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 12H9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Wk=Xg("copy",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Hk=Xg("copy-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M13 38H41V16H30V4H13V38Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M30 4L41 16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M7 20V44H28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M19 20H23",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M19 28H31",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),zk=Xg("cutting-one",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M11 42C13.7614 42 16 39.7614 16 37C16 34.2386 13.7614 32 11 32C8.23858 32 6 34.2386 6 37C6 39.7614 8.23858 42 11 42Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M37 42C39.7614 42 42 39.7614 42 37C42 34.2386 39.7614 32 37 32C34.2386 32 32 34.2386 32 37C32 39.7614 34.2386 42 37 42Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M15.3774 39.4131L17.5 35.8162L34.5 6.37138",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M13.4957 6.17518L30.4957 35.62L32.6265 39.4131",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),Nk=Xg("delete",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M20 20V33",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M28 20V33",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 10H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Dk=Xg("distortion",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M4 19V40H17M4 19V8H17M4 19C4 19 13 13 24 19C35 25 44 19 44 19M44 19V8H17M44 19V40H17M4 29C4 29 13 23 24 29C35 35 44 29 44 29M17 8C17 8 23 16 17 24C11 32 17 40 17 40M31 8C31 8 37 16 31 24C25 32 31 40 31 40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Fk=Xg("dividing-line",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M5 24H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 38H27",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M37 38H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 10H27",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M5 38H11",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M5 10H11",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M37 10H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Vk=Xg("down",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M36 18L24 30L12 18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Uk=Xg("down-one",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M36 19L24 31L12 19H36Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),$k=Xg("download-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M11.6777 20.271C7.27476 21.3181 4 25.2766 4 30C4 35.5228 8.47715 40 14 40C14.9474 40 15.864 39.8683 16.7325 39.6221",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36.0547 20.271C40.4577 21.3181 43.7324 25.2766 43.7324 30C43.7324 35.5228 39.2553 40 33.7324 40C32.785 40 31.8684 39.8683 30.9999 39.6221",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36 20C36 13.3726 30.6274 8 24 8C17.3726 8 12 13.3726 12 20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M17.0654 30.119L23.9999 37.0764L31.1318 30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 20V33.5382",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Yk=Xg("edit",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M7 42H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M11 26.7199V34H18.3172L39 13.3081L31.6951 6L11 26.7199Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Xk=Xg("effects",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24.9507 42.3603L30.4164 30.3695L43.1046 26.6501L33.3383 17.7699L33.7059 4.60732L22.2044 11.1099L9.74329 6.69439L12.4013 19.5934L4.33228 30.027L17.4766 31.4965L24.9507 42.3603Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36.1777 36.0537L44.1777 44.0179",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Zk=Xg("erase",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M4 42H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M31 4L7 28L13 34H21L41 14L31 4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Gk=Xg("exclude-selection",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"16",y:"16",width:"27",height:"27",rx:"2",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("rect",{x:"5",y:"5",width:"27",height:"27",rx:"2",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M25.0005 32L16.0005 41",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M41.0005 16L32.0005 25",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16.0005 23L7.00049 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32.0005 7L23.0005 16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43.0005 24L24.0005 43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24.0005 5L5.00049 24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43.0005 34L34.0005 43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 5L5 14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),qk=Xg("expand-down-one",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 9L42 9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 19L42 19",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 26L24 40L42 26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Kk=Xg("fill",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("rect",{x:"14",y:"14",width:"20",height:"20",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 23L23 34",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M25 14L14 25",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34 14L14 34",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 22V34H26",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M22 14H34V26",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Jk=Xg("flip-horizontally",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 34L16 12V34H4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 34H32V12L44 34Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Qk=Xg("flip-vertically",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M42 24L6 24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 4L36 16H14V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 44V32H36L14 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),em=Xg("fold-up-one",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 10L42 10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 20L42 20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 40L24 26L42 40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),tm=Xg("folder-close",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M5 8C5 6.89543 5.89543 6 7 6H19L24 12H41C42.1046 12 43 12.8954 43 14V40C43 41.1046 42.1046 42 41 42H7C5.89543 42 5 41.1046 5 40V8Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43 22H5",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M5 16V28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43 16V28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),nm=Xg("font-size",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M8 10.9333L8 6H40V10.9333",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 42H32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),rm=Xg("format",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"8",y:"24",width:"32",height:"18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 13H18V6H30V13H44V24H4V13Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 32L16 42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),im=Xg("format-brush",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M34 5H6V20H34V5Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34.0251 12H43V28.1014L19 31.2004V43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),om=Xg("formula",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M40 9L37 6H8L26 24L8 42H37L40 39",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),sm=Xg("full-screen",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M33 6H42V15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 33V42H33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M15 42H6V33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 15V6H15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),am=Xg("full-screen-one",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 6L16 15.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 41.8995L16 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42.0001 41.8995L32.1006 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M41.8995 6L32 15.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M33 6H42V15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 33V42H33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M15 42H6V33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 15V6H15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),lm=Xg("full-screen-play",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M16 40H6C4.89543 40 4 39.1046 4 38V10C4 8.89543 4.89543 8 6 8H42C43.1046 8 44 8.89543 44 10V16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 24H26C24.8954 24 24 24.8954 24 26V38C24 39.1046 24.8954 40 26 40H42C43.1046 40 44 39.1046 44 38V26C44 24.8954 43.1046 24 42 24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),cm=Xg("fullwidth",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M42 6V42M17 19L12 24M12 24L17 29M12 24H36M31 19L36 24M36 24L31 29M6 6L6 42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),hm=Xg("github",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4ZM0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24Z",fill:e.colors[0]},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.1833 45.4716C18.9898 45.2219 18.9898 42.9973 19.1833 38.798C17.1114 38.8696 15.8024 38.7258 15.2563 38.3667C14.437 37.828 13.6169 36.1667 12.8891 34.9959C12.1614 33.8251 10.5463 33.64 9.89405 33.3783C9.24182 33.1165 9.07809 32.0496 11.6913 32.8565C14.3044 33.6634 14.4319 35.8607 15.2563 36.3745C16.0806 36.8883 18.0515 36.6635 18.9448 36.2519C19.8382 35.8403 19.7724 34.3078 19.9317 33.7007C20.1331 33.134 19.4233 33.0083 19.4077 33.0037C18.5355 33.0037 13.9539 32.0073 12.6955 27.5706C11.437 23.134 13.0581 20.2341 13.9229 18.9875C14.4995 18.1564 14.4485 16.3852 13.7699 13.6737C16.2335 13.3589 18.1347 14.1343 19.4734 16.0001C19.4747 16.0108 21.2285 14.9572 24.0003 14.9572C26.772 14.9572 27.7553 15.8154 28.5142 16.0001C29.2731 16.1848 29.88 12.7341 34.5668 13.6737C33.5883 15.5969 32.7689 18.0001 33.3943 18.9875C34.0198 19.9749 36.4745 23.1147 34.9666 27.5706C33.9614 30.5413 31.9853 32.3523 29.0384 33.0037C28.7005 33.1115 28.5315 33.2855 28.5315 33.5255C28.5315 33.8856 28.9884 33.9249 29.6465 35.6117C30.0853 36.7362 30.117 39.948 29.7416 45.247C28.7906 45.4891 28.0508 45.6516 27.5221 45.7347C26.5847 45.882 25.5669 45.9646 24.5669 45.9965C23.5669 46.0284 23.2196 46.0248 21.837 45.8961C20.9154 45.8103 20.0308 45.6688 19.1833 45.4716Z",fill:e.colors[0]},null)])})),um=Xg("graphic-design",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M19 32C11.268 32 5 25.732 5 18C5 10.268 11.268 4 19 4C26.732 4 33 10.268 33 18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 18H18V44H44V18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),dm=Xg("group",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M12 4H4V12H12V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 36H36V44H44V36Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 36H4V44H12V36Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 4H36V12H44V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M8 36V12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M40 36V12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 8H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 40H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 16H25.6V22.4H32V32H22.4V25.6H16V16Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),fm=Xg("guide-board",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 4V41",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 8H39.5455L42 12L39.5455 16H24V8Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 22H8.45455L6 26L8.45455 30H24V22Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 42H32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),pm=Xg("h1",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 8V40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M25 8V40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 24H25",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34.2261 24L39.0001 19.0166V40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),gm=Xg("h3",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 8V40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 8V40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M7 24H23",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 20H42L35 29C39 29 42 31 42 35C42 39 39 40 37 40C34.619 40 33 39 32 37.9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),km=Xg("hamburger-button",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M7.94971 11.9497H39.9497",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M7.94971 23.9497H39.9497",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M7.94971 35.9497H39.9497",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),mm=Xg("headset-one",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M36 32C40.4183 32 44 28.4183 44 24C44 19.5817 40.4183 16 36 16",fill:e.colors[1]},null),z("path",{d:"M36 32V32C40.4183 32 44 28.4183 44 24C44 19.5817 40.4183 16 36 16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 16C7.58172 16 4 19.5817 4 24C4 28.4183 7.58172 32 12 32",fill:e.colors[1]},null),z("path",{d:"M12 16C7.58172 16 4 19.5817 4 24C4 28.4183 7.58172 32 12 32V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 32V31.5V29V24V16C12 9.37258 17.3726 4 24 4C30.6274 4 36 9.37258 36 16V32C36 38.6274 30.6274 44 24 44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),vm=Xg("helpcenter",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 28.625V24.625C27.3137 24.625 30 21.9387 30 18.625C30 15.3113 27.3137 12.625 24 12.625C20.6863 12.625 18 15.3113 18 18.625",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 37.625C25.3807 37.625 26.5 36.5057 26.5 35.125C26.5 33.7443 25.3807 32.625 24 32.625C22.6193 32.625 21.5 33.7443 21.5 35.125C21.5 36.5057 22.6193 37.625 24 37.625Z",fill:e.colors[2]},null)])})),ym=Xg("high-light",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 44L6 25H12V17H36V25H42V44H6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M17 17V8L31 4V17",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Lm=Xg("home",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9 42H39",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),wm=Xg("id-card",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M42 8H6C4.89543 8 4 8.89543 4 10V38C4 39.1046 4.89543 40 6 40H42C43.1046 40 44 39.1046 44 38V10C44 8.89543 43.1046 8 42 8Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36 16H28V24H36V16Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 32H36",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 16H18",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 24H18",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),bm=Xg("indent-left",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 9H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M19 19H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M19 29H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M11 19L6 24L11 29",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 39H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),_m=Xg("indent-right",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M42 9H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M29 19H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M29 29H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M37 19L42 24L37 29",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 39H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),xm=Xg("insert-table",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M39.3 6H8.7C7.20883 6 6 7.20883 6 8.7V39.3C6 40.7912 7.20883 42 8.7 42H39.3C40.7912 42 42 40.7912 42 39.3V8.7C42 7.20883 40.7912 6 39.3 6Z",stroke:e.colors[0],"stroke-width":e.strokeWidth},null),z("path",{d:"M18 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M30 6V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M6 18H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M6 30H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),Cm=Xg("intersect-selection",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"16",y:"16",width:"27",height:"27",rx:"2",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("rect",{x:"5",y:"5",width:"27",height:"27",rx:"2",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27 16L16 27",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 21L21 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Sm=Xg("intersection",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M31 31H40C41.1046 31 42 30.1046 42 29V8C42 6.89543 41.1046 6 40 6H19C17.8954 6 17 6.89543 17 8V17",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M17 17H8C6.89543 17 6 17.8954 6 19V40C6 41.1046 6.89543 42 8 42H29C30.1046 42 31 41.1046 31 40V31",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("rect",{x:"17",y:"17",width:"14",height:"14",rx:"2",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),jm=Xg("keyboard-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"4",y:"18",width:"40",height:"24",rx:"2",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("circle",{cx:"14",cy:"24",r:"2",fill:e.colors[0]},null),z("circle",{cx:"16",cy:"30",r:"2",fill:e.colors[0]},null),z("circle",{cx:"10",cy:"30",r:"2",fill:e.colors[0]},null),z("circle",{cx:"20",cy:"24",r:"2",fill:e.colors[0]},null),z("circle",{cx:"22",cy:"30",r:"2",fill:e.colors[0]},null),z("circle",{cx:"26",cy:"24",r:"2",fill:e.colors[0]},null),z("circle",{cx:"28",cy:"30",r:"2",fill:e.colors[0]},null),z("circle",{cx:"32",cy:"24",r:"2",fill:e.colors[0]},null),z("circle",{cx:"34",cy:"30",r:"2",fill:e.colors[0]},null),z("circle",{cx:"38",cy:"24",r:"2",fill:e.colors[0]},null),z("path",{d:"M17 36H31",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M33 18V13.125C33 12.5727 33.4477 12.125 34 12.125H39C39.5523 12.125 40 11.6773 40 11.125V6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Em=Xg("layers",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M4 11.9143L24 19L44 11.9143L24 5L4 11.9143Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 20L24 27L44 20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 28L24 35L44 28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 36L24 43L44 36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Mm=Xg("left",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M31 36L19 24L31 12",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Tm=Xg("left-c",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27 33L18 24L27 15",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Am=Xg("left-small-down",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M15 33L32 16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M33 33H15V15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Om=Xg("left-small-up",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M32 32L15 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M15 33V15H33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Pm=Xg("left-two",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 5L6 24L24 43L24 31L42 31V17H24V5Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Im=Xg("link-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M26.2401 16.373L17.1001 7.23303C14.4388 4.57168 10.0653 4.6303 7.33158 7.36397C4.59791 10.0976 4.53929 14.4712 7.20064 17.1325L15.1359 25.0678",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32.9027 23.0031L40.838 30.9384C43.4994 33.5998 43.4407 37.9733 40.7071 40.707C37.9734 43.4407 33.5999 43.4993 30.9385 40.8379L21.7985 31.6979",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M26.1093 26.1416C28.843 23.4079 28.9016 19.0344 26.2403 16.373",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21.7989 21.7984C19.0652 24.5321 19.0066 28.9056 21.6679 31.5669",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Rm=Xg("list",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M5 10L8 13L14 7",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M5 24L8 27L14 21",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M5 38L8 41L14 35",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 24H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 38H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 10H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Bm=Xg("list-view",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"4",y:"6",width:"40",height:"36",rx:"3",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 14H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M20 24H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M20 32H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 24H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 32H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Wm=Xg("lock",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"6",y:"22",width:"36",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 22V14C14 8.47715 18.4772 4 24 4C29.5228 4 34 8.47715 34 14V22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 30V36",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Hm=Xg("logout",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M23.9917 6H6V42H24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 23.9917H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),zm=Xg("magic",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M20.1005 8.1005L24.3431 12.3431M30 4V10V4ZM39.8995 8.1005L35.6569 12.3431L39.8995 8.1005ZM44 18H38H44ZM39.8995 27.8995L35.6569 23.6569L39.8995 27.8995ZM30 32V26V32ZM20.1005 27.8995L24.3431 23.6569L20.1005 27.8995ZM16 18H22H16Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M29.5856 18.4143L5.54395 42.4559",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Nm=Xg("magic-wand",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M7.57932 35.4207C5.32303 32.1826 4 28.2458 4 24C4 12.9543 12.9543 4 24 4C35.0457 4 44 12.9543 44 24C44 35.0457 35.0457 44 24 44C19.7542 44 15.8174 42.677 12.5793 40.4207M7.57932 35.4207C8.93657 37.3685 10.6315 39.0634 12.5793 40.4207M7.57932 35.4207L16 27M12.5793 40.4207L21 32M16 27L20 23L25 28L21 32M16 27L21 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M17 14H21M19 12V16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M28 17H34M31 14V20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 29H36M34 27V31",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Dm=Xg("mail",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M4 39H44V24V9H24H4V24V39Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 9L24 24L44 9",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 9H4V24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 24V9H24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Fm=Xg("map-draw",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M17 12L4 6V36L17 42L31 36L44 42V12L31 6L17 12Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M31 6V36",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M17 12V42",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M10.5 9L17 12L31 6L37.5 9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M10.5 39L17 42L31 36L37.5 39",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Vm=Xg("minus",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M10.5 24L38.5 24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Um=Xg("more",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("circle",{cx:"12",cy:"24",r:"3",fill:e.colors[0]},null),z("circle",{cx:"24",cy:"24",r:"3",fill:e.colors[0]},null),z("circle",{cx:"36",cy:"24",r:"3",fill:e.colors[0]},null)])})),$m=Xg("needle",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("g",{"clip-path":"url(#"+e.id+"3d50a8e2)"},[z("path",{d:"M39 23L25 9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43.9995 17L30.9995 4",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34.999 18.999L39.999 13.999",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M28.999 12.999L33.999 7.99902",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M11 37L6 42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27.9999 12.0001L11.9999 27.9998L10.9999 37L19.9999 35.9998L35.9999 20.0001L27.9999 12.0001Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)]),z("defs",null,[z("clipPath",{id:e.id+"3d50a8e2"},[z("rect",{width:"48",height:"48",fill:e.colors[2]},null)])])])})),Ym=Xg("newlybuild",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M19 10V7C19 5.89543 19.8954 5 21 5H41C42.1046 5 43 5.89543 43 7V29C43 30.1046 42.1046 31 41 31H37",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("rect",{x:"5",y:"18",width:"24",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M17 25V35",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 30H22",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Xm=Xg("next",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 40.8361C8.89307 34.8632 13.2383 31.4739 17.0356 30.6682C20.8329 29.8625 24.4483 29.7408 27.8818 30.303V41L44 23.5453L27.8818 7V17.167C21.5333 17.2172 16.1362 19.4948 11.6905 24C7.24474 28.5052 4.68126 34.1172 4 40.8361Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Zm=Xg("off-screen-one",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 6L16 15.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 41.8995L16 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42.0001 41.8995L32.1006 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M41.8995 6L32 15.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 7V16H41",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 7V16H7",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 41V32H7",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 41V32H40.8995",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Gm=Xg("ordered-list",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M9 4V13",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 13H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 27H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 19.9998C6 19.9998 9 16.9998 11 19.9998C13 22.9999 6 26.9998 6 26.9998",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6.00016 34.5001C6.00016 34.5001 8.00016 31.5 11.0002 33.5C14.0002 35.5 11.0002 38 11.0002 38C11.0002 38 14.0002 40.5 11.0002 42.5C8.00015 44.5 6.00015 41.5 6.00015 41.5",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M11 38H9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9 4L6 6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 24H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 38H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 10H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),qm=Xg("page-template",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M23 4H4V26H23V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 34H4V43H44V34Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 4H31V12H44V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 18H31V26H44V18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Km=Xg("pause",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M16 12V36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 12V36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Jm=Xg("pay-code-two",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M16 6H8C6.89543 6 6 6.89543 6 8V16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 42H8C6.89543 42 6 41.1046 6 40V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 42H40C41.1046 42 42 41.1046 42 40V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 6H40C41.1046 6 42 6.89543 42 8V16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 16V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 16V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 16V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Qm=Xg("peoples",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32.6077 7C34.6405 8.2249 36.0001 10.4537 36.0001 13C36.0001 15.5463 34.6405 17.7751 32.6077 19",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 40.8V42H34V40.8C34 36.3196 34 34.0794 33.1281 32.3681C32.3611 30.8628 31.1372 29.6389 29.6319 28.8719C27.9206 28 25.6804 28 21.2 28H16.8C12.3196 28 10.0794 28 8.36808 28.8719C6.86278 29.6389 5.63893 30.8628 4.87195 32.3681C4 34.0794 4 36.3196 4 40.8Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43.9999 42.0001V40.8001C43.9999 36.3197 43.9999 34.0795 43.128 32.3682C42.361 30.8629 41.1371 29.6391 39.6318 28.8721",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ev=Xg("picture",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M18 23C20.7614 23 23 20.7614 23 18C23 15.2386 20.7614 13 18 13C15.2386 13 13 15.2386 13 18C13 20.7614 15.2386 23 18 23Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27.7901 26.2194C28.6064 25.1269 30.2528 25.1538 31.0329 26.2725L39.8077 38.8561C40.7322 40.182 39.7835 42.0001 38.1671 42.0001H16L27.7901 26.2194Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),tv=Xg("platte",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 44C29.9601 44 26.3359 35.136 30 31C33.1264 27.4709 44 29.0856 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M28 17C29.6569 17 31 15.6569 31 14C31 12.3431 29.6569 11 28 11C26.3431 11 25 12.3431 25 14C25 15.6569 26.3431 17 28 17Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 21C17.6569 21 19 19.6569 19 18C19 16.3431 17.6569 15 16 15C14.3431 15 13 16.3431 13 18C13 19.6569 14.3431 21 16 21Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M17 34C18.6569 34 20 32.6569 20 31C20 29.3431 18.6569 28 17 28C15.3431 28 14 29.3431 14 31C14 32.6569 15.3431 34 17 34Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),nv=Xg("play-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),rv=Xg("plus",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24.0605 10L24.0239 38",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M10 24L38 24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),iv=Xg("power",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M14.5 8C13.8406 8.37652 13.2062 8.79103 12.6 9.24051C11.5625 10.0097 10.6074 10.8814 9.75 11.8402C6.79377 15.1463 5 19.4891 5 24.2455C5 34.6033 13.5066 43 24 43C34.4934 43 43 34.6033 43 24.2455C43 19.4891 41.2062 15.1463 38.25 11.8402C37.3926 10.8814 36.4375 10.0097 35.4 9.24051C34.7938 8.79103 34.1594 8.37652 33.5 8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 4V24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ov=Xg("ppt",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M4 8H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 8H40V34H8V8Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M22 16L27 21L22 26",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 42L24 34L32 42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),sv=Xg("preview-close",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 16C6.63472 17.2193 7.59646 18.3504 8.82276 19.3554C12.261 22.1733 17.779 24 24 24C30.221 24 35.739 22.1733 39.1772 19.3554C40.4035 18.3504 41.3653 17.2193 42 16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M28.9775 24L31.048 31.7274",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M37.3535 21.3536L43.0103 27.0104",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M5.00004 27.0103L10.6569 21.3534",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16.9278 31.7276L18.9983 24.0001",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),av=Xg("preview-close-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M20.3142 20.6211C19.4981 21.5109 19 22.6972 19 23.9998C19 26.7612 21.2386 28.9998 24 28.9998C25.3627 28.9998 26.5981 28.4546 27.5 27.5705",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 42L6 6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),lv=Xg("preview-open",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),cv=Xg("quote",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.8533 9.11587C11.3227 13.9521 7.13913 19.5811 6.30256 26.0028C5.00021 35.9999 13.9404 40.8932 18.4703 36.4966C23.0002 32.1 20.2848 26.5195 17.0047 24.9941C13.7246 23.4686 11.7187 23.9999 12.0686 21.9614C12.4185 19.923 17.0851 14.2712 21.1849 11.6391C21.4569 11.4078 21.5604 10.959 21.2985 10.6185C21.1262 10.3946 20.7883 9.95545 20.2848 9.30102C19.8445 8.72875 19.4227 8.75017 18.8533 9.11587Z",fill:e.colors[0]},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.6789 9.11587C31.1484 13.9521 26.9648 19.5811 26.1282 26.0028C24.8259 35.9999 33.7661 40.8932 38.296 36.4966C42.8259 32.1 40.1105 26.5195 36.8304 24.9941C33.5503 23.4686 31.5443 23.9999 31.8943 21.9614C32.2442 19.923 36.9108 14.2712 41.0106 11.6391C41.2826 11.4078 41.3861 10.959 41.1241 10.6185C40.9519 10.3946 40.614 9.95545 40.1105 9.30102C39.6702 8.72875 39.2484 8.75017 38.6789 9.11587Z",fill:e.colors[0]},null)])})),hv=Xg("reduce-one",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 24L32 24",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),uv=Xg("refresh",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M42 8V24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 24L6 40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 24C42 14.0589 33.9411 6 24 6C18.9145 6 14.3216 8.10896 11.0481 11.5M6 24C6 33.9411 14.0589 42 24 42C28.8556 42 33.2622 40.0774 36.5 36.9519",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),dv=Xg("right",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M19 12L31 24L19 36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),fv=Xg("right-angle",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 9.1153C8 7.29468 10.2347 6.42094 11.4696 7.75874L40.9016 39.6434C42.0842 40.9246 41.1755 43 39.432 43H10C8.89543 43 8 42.1046 8 41V9.1153Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),pv=Xg("right-c",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 33L30 24L21 15",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),gv=Xg("right-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M20 12L32 24L20 36V12Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),kv=Xg("right-small-down",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M32.3535 32.3535L15.3535 15.3535",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32.3535 14.3535V32.3535H14.3535",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),mv=Xg("right-small-up",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M16 32L33 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M15 15H33V33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),vv=Xg("right-two",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 43L42 24L24 5L24 17L6 17V31H24V43Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),yv=Xg("rotate",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M12 24H42V42H12V24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 8V17H15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M38.4747 13.2985C35.1956 8.87049 29.933 6 24 6C18.1788 6 13.0029 8.76334 9.71272 13.0498L6 17",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Lv=Xg("round",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("circle",{cx:"24",cy:"24",r:"20",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth},null)])})),wv=Xg("row-height",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M16 35L10 41L4 35",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 13L10 7L4 13",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M10 7V41",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 9H22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36 19H22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 29H22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36 39H22",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),bv=Xg("ruler",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M44 14L34 4L30.25 7.75L26.5 11.5L19 19L11.5 26.5L7.75 30.25L4 34L14 44L44 14Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M30.25 7.75L7.75 30.25",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9 29L13 33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 24L20 30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M19 19L23 23",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 14L30 20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M29 9L33 13",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),_v=Xg("save",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]},null),z("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9 6H34.2814",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 26H34",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 34H24.0083",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),xv=Xg("screen-rotation",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M4 24C4 35.0457 12.9543 44 24 44L19 39",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 24C44 12.9543 35.0457 4 24 4L29 9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M30 41L7 18L18 7L41 30L30 41Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Cv=Xg("send-backward",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{width:"36",height:"8",transform:"matrix(1 0 0 -1 6 14)",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("rect",{width:"36",height:"8",transform:"matrix(1 0 0 -1 6 28)",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M30 36L24 42L18 36V36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 42V28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 14V20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Sv=Xg("send-to-back",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M14 21H5V5H21V14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 27H43V43H27V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 32V14H32V32H14Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),jv=Xg("sent-to-back",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M30 18H41C41.5523 18 42 18.4477 42 19V41C42 41.5523 41.5523 42 41 42H19C18.4477 42 18 41.5523 18 41V30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9.96906 6H6V10.0336",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M9.99705 30H6V26.012",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M26 30H29.9971V26.012",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M26.0023 6H30V9.99785",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16.0283 6H20.0083",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M6 16V20.0148",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M30 16V20.0148",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M15.9922 30H19.9996",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Ev=Xg("share",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M28 6H42V20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 29.4737V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9C6 7.34315 7.34315 6 9 6L18 6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M25.7998 22.1999L41.0998 6.8999",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Mv=Xg("shield",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M6 8.25564L24.0086 3L42 8.25564V19.0337C42 30.3622 34.7502 40.4194 24.0026 44.0005C13.2521 40.4195 6 30.36 6 19.0287V8.25564Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Tv=Xg("shuffle-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M40 33L44 37L40 41",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M40 7L44 11L40 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M44 11H37C29.8203 11 24 16.8203 24 24C24 31.1797 29.8203 37 37 37H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M4 37H11C18.1797 37 24 31.1797 24 24C24 16.8203 18.1797 11 11 11H4",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),Av=Xg("square",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth},null)])})),Ov=Xg("stopwatch-start",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 44C33.3888 44 41 36.3888 41 27C41 17.6112 33.3888 10 24 10C14.6112 10 7 17.6112 7 27C7 36.3888 14.6112 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M18 4H30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 19V27",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 27H24",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 4V8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Pv=Xg("strikethrough",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M5 24H43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 24C40 30 34 44 24 44C13.9999 44 12 36 12 36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M35.9999 12C35.9999 12 33 4 23.9999 4C14.9999 4 11.4359 11.5995 15.6096 18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 36C12 36 15.9999 44 24 44C32 44 36.564 36.4005 32.3903 30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Iv=Xg("subtract-selection",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"16",y:"16",width:"27",height:"27",rx:"2",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 32H7C5.89543 32 5 31.1046 5 30V7C5 5.89543 5.89543 5 7 5H30C31.1046 5 32 5.89543 32 7V16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M29 16L16 30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M38 16L16 40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43 21L23 43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43 32L33 43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Rv=Xg("subtract-selection-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M32 16H41C42.1046 16 43 16.8954 43 18V41C43 42.1046 42.1046 43 41 43H18C16.8954 43 16 42.1046 16 41V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("rect",{x:"5",y:"5",width:"27",height:"27",rx:"2",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M18 5L5 19",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27 5L5 29",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 10L12 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 21L22 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Bv=Xg("tailoring",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M12 4V36H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M20 12H36V28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 12H4",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M36 44V36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),Wv=Xg("tencent-qq",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M23.7927 44.5178C20.1344 44.5178 16.7762 43.2933 14.6142 41.4646C13.5161 41.7927 12.1115 42.3204 11.2254 42.9751C10.4664 43.535 10.5613 44.1059 10.6979 44.3362C11.298 45.3491 20.9938 44.9831 23.7927 44.6678V44.5178ZM23.7927 44.5178C27.4516 44.5178 30.8095 43.2933 32.9718 41.4646C34.0693 41.7927 35.4742 42.3204 36.3606 42.9751C37.119 43.535 37.0244 44.1059 36.8875 44.3362C36.2874 45.3491 26.5919 44.9831 23.7927 44.6678V44.5178Z",fill:e.colors[0]},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36.3386 20.9326C34.6979 21.3809 29.856 22.5505 23.8144 22.5914H23.7698C17.5753 22.5491 12.6423 21.3214 11.1274 20.8999C10.816 20.8129 10.6458 20.6334 10.6458 20.6334C10.644 20.5785 10.6207 19.6503 10.6207 19.171C10.6207 11.1055 14.4284 3.00029 23.7922 3C33.1561 3.00029 36.9635 11.1052 36.9635 19.1713C36.9635 19.65 36.9402 20.5785 36.9387 20.6337C36.9387 20.6337 36.7297 20.8255 36.3386 20.9326ZM38.8284 25.3504C39.3462 26.7001 39.8573 28.1055 40.2318 29.3107C42.0176 35.0578 41.4388 37.4364 40.9986 37.4898C40.0532 37.6039 37.3187 33.1634 37.3187 33.1634C37.3187 37.6757 33.2448 44.604 23.916 44.6677H23.6685C14.3394 44.604 10.2655 37.6757 10.2655 33.1634C10.2655 33.1634 7.53131 37.6039 6.58588 37.4895C6.14542 37.4364 5.5666 35.0581 7.35268 29.3107C7.72717 28.1058 8.23827 26.7001 8.75609 25.3504C8.75609 25.3504 9.10519 25.3285 9.28207 25.3795C10.7319 25.798 12.2762 26.1689 13.8447 26.4792C13.5776 28.1343 13.4249 30.1827 13.5692 32.6021C13.9533 39.0363 17.7745 43.081 23.6727 43.1394H23.9121C29.8106 43.081 33.6314 39.0363 34.0161 32.6021C34.1604 30.1823 34.0075 28.1345 33.7402 26.4793C35.3363 26.1633 36.9076 25.7848 38.3798 25.3571C38.5307 25.3136 38.8284 25.3504 38.8284 25.3504ZM33.7402 26.4793C30.3004 27.1601 26.7448 27.5502 23.8144 27.5147H23.7698C20.8396 27.5498 17.2841 27.1598 13.8447 26.4792C13.8586 26.3929 13.8728 26.3076 13.8874 26.2234C17.3136 26.8989 20.8513 27.2853 23.769 27.2503H23.8137L23.814 27.25C26.7323 27.2856 30.2709 26.8989 33.6974 26.2231C33.712 26.3074 33.7262 26.3928 33.7402 26.4793ZM18.0376 11.6868C18.1059 13.5266 19.1912 14.9735 20.4615 14.916C21.7309 14.8594 22.7044 13.3208 22.6349 11.4802C22.566 9.6398 21.4811 8.19348 20.2122 8.2504C18.9419 8.30791 17.9687 9.84646 18.0376 11.6868ZM27.1253 14.916C28.3957 14.9735 29.4809 13.5263 29.5489 11.6868C29.6181 9.84646 28.6449 8.30791 27.3746 8.2504C26.1055 8.19378 25.0208 9.64009 24.9519 11.4805C24.8825 13.3208 25.8556 14.8591 27.1253 14.916ZM23.8148 15.9248C28.0469 15.9248 31.4658 16.7625 31.805 17.5141V17.5144C31.821 17.5477 31.8295 17.5841 31.8298 17.621C31.8294 17.6731 31.8131 17.7238 31.7831 17.7663C31.497 18.1835 27.701 20.2436 23.8148 20.2436H23.7692C19.8827 20.2436 16.0867 18.1829 15.8006 17.7663C15.7708 17.7239 15.7545 17.6734 15.7539 17.6216C15.7542 17.5845 15.7627 17.5479 15.7787 17.5144C16.1182 16.7625 19.5368 15.9248 23.7692 15.9248H23.8148Z",fill:e.colors[0]},null),z("path",{d:"M22.0218 11.7142C22.0799 12.441 21.6812 13.0867 21.1327 13.157C20.5831 13.2277 20.0912 12.6958 20.0329 11.969C19.9754 11.2416 20.3735 10.596 20.9211 10.5259C21.4716 10.4547 21.9643 10.9871 22.0218 11.7139V11.7142ZM25.5117 11.9571C25.624 11.7559 26.3885 10.6984 27.9714 11.0834C28.3874 11.1847 28.5797 11.3336 28.6203 11.392C28.6801 11.4784 28.6968 11.6015 28.6358 11.7673C28.5155 12.096 28.2671 12.087 28.1296 12.0227C28.0406 11.9813 26.9381 11.2463 25.9223 12.3429C25.8523 12.418 25.7274 12.4439 25.6091 12.3546C25.4903 12.2647 25.4416 12.0832 25.5117 11.9571Z",fill:e.colors[0]},null),z("path",{d:"M15.5039 26.7117V33.0437C15.5039 33.0437 18.4044 33.6286 21.3105 33.2235V27.383C19.4695 27.2788 17.4841 27.0468 15.5039 26.7117Z",fill:e.colors[0]},null),z("path",{d:"M36.9385 20.6337C36.9385 20.6337 31.2962 22.4148 23.8142 22.4653H23.7695C16.2998 22.4151 10.6648 20.6395 10.6456 20.6337L8.75586 25.35C13.4824 26.775 19.3401 27.6933 23.7695 27.6399H23.8142C28.2436 27.6933 34.101 26.775 38.8282 25.35L36.9385 20.6337Z",fill:e.colors[0]},null)])})),Hv=Xg("text",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 19V16H32V19",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M22 34H26",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 18L24 34",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),zv=Xg("text-bold",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 24C29.5056 24 33.9688 19.5228 33.9688 14C33.9688 8.47715 29.5056 4 24 4H11V24H24Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28.0312 44C33.5368 44 38 39.5228 38 34C38 28.4772 33.5368 24 28.0312 24H11V44H28.0312Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Nv=Xg("text-italic",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M20 6H36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M12 42H28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M29 5.95215L19 41.9998",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Dv=Xg("text-rotation-down",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M29 35L21 31.3333M29 13L21 16.6667M21 16.6667L17 18.5L5 24L17 29.5L21 31.3333M21 16.6667V31.3333",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M37 6V42L43 36",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Fv=Xg("text-rotation-none",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M13 29L16.6667 21M35 29L31.3333 21M31.3333 21L29.5 17L24 5L18.5 17L16.6667 21M31.3333 21H16.6667",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 37H42L36 43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Vv=Xg("text-style-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M4 42L8.94118 30M32 42L27.0588 30M27.0588 30L25 25L18 8L11 25L8.94118 30M27.0588 30H8.94118",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M28 10L44 10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 20L44 20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36 30L44 30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M40 40H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Uv=Xg("text-underline",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M8 44H40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M37 6.09717C37 12.7638 37 15.3335 37 22.0002C37 29.1799 31.1797 35.0002 24 35.0002C16.8203 35.0002 11 29.1799 11 22.0002C11 15.3335 11 12.7638 11 6.09717",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),$v=Xg("theme",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M18 6C18 9.31371 20.6863 12 24 12C27.3137 12 30 9.31371 30 6H35.4545L42 15.8182L36.2727 20.7273V42H11.7273V20.7273L6 15.8182L12.5455 6H18Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),Yv=Xg("transfer-data",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M10 8L4 14L10 20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M38 28L44 34L38 40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 14H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M4 34H44",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Xv=Xg("transform",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("circle",{cx:"13.7146",cy:"13.7141",r:"6.85714",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("circle",{cx:"34.2859",cy:"34.2854",r:"6.85714",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24.001 44C12.9553 44 4.00098 35.0457 4.00098 24L10.6676 27.3333",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24.001 4C35.0467 4 44.001 12.9543 44.001 24L37.3343 20.6667",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Zv=Xg("translate",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M28.2857 37H39.7143M42 42L39.7143 37L42 42ZM26 42L28.2857 37L26 42ZM28.2857 37L34 24L39.7143 37H28.2857Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M16 6L17 9",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 11H28",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M10 16C10 16 11.7895 22.2609 16.2632 25.7391C20.7368 29.2174 28 32 28 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 11C24 11 22.2105 19.2174 17.7368 23.7826C13.2632 28.3478 6 32 6 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Gv=Xg("triangle-round-rectangle",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M20 29H6V43H20V29Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 4L34 21H14L24 4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36 44C40.4183 44 44 40.4183 44 36C44 31.5817 40.4183 28 36 28C31.5817 28 28 31.5817 28 36C28 40.4183 31.5817 44 36 44Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),qv=Xg("two-dimensional-code-two",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M18 6H6V18H18V6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M18 30H6V42H18V30Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M42 6H30V18H42V6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 6V18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M42 24H6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M34 30V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M42 30V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M26 30V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),Kv=Xg("undo",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.61407 12.9301 6 17 6 17",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 9V17H14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Jv=Xg("ungroup",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M11.2727 4H4V11.2727H11.2727V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43.9998 36.7271H36.7271V43.9998H43.9998V36.7271Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M11.2727 24H4V31.2727H11.2727V24Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M23.9998 36.7271H16.7271V43.9998H23.9998V36.7271Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M31.2727 4H24V11.2727H31.2727V4Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43.9998 16.7271H36.7271V23.9998H43.9998V16.7271Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M11.2729 7.63623H24.0002",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 40.3638H36.7273",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M11.2729 27.6366H27.6366V11.2729",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M28.8275 20.3633H36.7269M20.3633 36.7269V27.6282V36.7269Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M7.63672 11.2725V23.9997",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M40.3633 24V36.7273",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),Qv=Xg("union-selection",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M32 16H41C42.1046 16 43 16.8954 43 18V41C43 42.1046 42.1046 43 41 43H18C16.8954 43 16 42.1046 16 41V32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 16V7C32 5.89543 31.1046 5 30 5H7C5.89543 5 5 5.89543 5 7V30C5 31.1046 5.89543 32 7 32H16",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M41.0005 16L17.0005 40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32.0005 7L7.00049 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32.0005 16L16.0005 32",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43.0005 24L24.0005 43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24.0005 5L5.00049 24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M43.0005 34L34.0005 43",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14.0005 5L5.00049 14",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ey=Xg("unlock",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{x:"7",y:"22.0476",width:"34",height:"22",rx:"2",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 22V14.0047C13.9948 8.87022 17.9227 4.56718 23.0859 4.05117C28.249 3.53516 32.9673 6.97408 34 12.0059",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 30V36",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ty=Xg("up",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M13 30L25 18L37 30",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),ny=Xg("upload",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("mask",{id:e.id+"04cec2fa",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"48",height:"48",style:{maskType:"alpha"}},[z("path",{d:"M48 0H0V48H48V0Z",fill:e.colors[2]},null)]),z("g",{mask:"url(#"+e.id+"04cec2fa)"},[z("path",{d:"M6 24.0083V42H42V24",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M33 15L24 6L15 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M23.9917 32V6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])])})),ry=Xg("upload-one",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M11.6777 20.271C7.27476 21.3181 4 25.2766 4 30C4 35.5228 8.47715 40 14 40C14.9474 40 15.864 39.8683 16.7325 39.6221",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36.0547 20.271C40.4577 21.3181 43.7324 25.2766 43.7324 30C43.7324 35.5228 39.2553 40 33.7324 40C32.785 40 31.8684 39.8683 30.9999 39.6221",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M36 20C36 13.3726 30.6274 8 24 8C17.3726 8 12 13.3726 12 20",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M17.0654 27.8812L23.9999 20.9238L31.1318 28.0002",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M24 38.0001V24.4619",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),iy=Xg("vertical-spacing-between-items",!1,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M8 6V12H40V6",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M14 24H34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null),z("path",{d:"M8 42V36H40V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),oy=Xg("video-two",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M20.5 28V21.9378L25.75 24.9689L31 28L25.75 31.0311L20.5 34.0622V28Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M6 15H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M33 6L27 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M21 6L15 15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),sy=Xg("volume-mute",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("rect",{opacity:"0.01",x:"30",y:"18",width:"13",height:"13",fill:e.colors[2]},null),z("mask",{id:e.id+"603476ab",maskUnits:"userSpaceOnUse",x:"30",y:"18",width:"13",height:"13",style:{maskType:"alpha"}},[z("rect",{x:"30",y:"18",width:"13",height:"13",fill:e.colors[2]},null)]),z("g",{mask:"url(#"+e.id+"603476ab)"},[z("path",{d:"M40.7348 20.2858L32.2495 28.7711",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32.2496 20.2858L40.7349 28.7711",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)]),z("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null)])})),ay=Xg("volume-notice",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M34.2359 41.1857C40.0836 37.6953 44 31.305 44 24C44 16.8085 40.2043 10.5035 34.507 6.97906",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap},null)])})),ly=Xg("volume-small",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),cy=Xg("wechat",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36.9974 21.7112C36.8434 13.0079 29.7401 6 21 6C12.1634 6 5 13.1634 5 22C5 26.1701 6.59531 29.9676 9.20892 32.8154L8.01043 40.0257L15.125 36.9699C18.2597 38.0122 21.218 38.2728 24 37.7516",fill:e.colors[1]},null),z("path",{d:"M36.9974 21.7112C36.8434 13.0079 29.7401 6 21 6C12.1634 6 5 13.1634 5 22C5 26.1701 6.59531 29.9676 9.20892 32.8154L8.01043 40.0257L15.125 36.9699C18.2597 38.0122 21.218 38.2728 24 37.7516",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M15.125 20.4667C16.3676 20.4667 17.375 19.4519 17.375 18.2C17.375 16.9482 16.3676 15.9333 15.125 15.9333C13.8824 15.9333 12.875 16.9482 12.875 18.2C12.875 19.4519 13.8824 20.4667 15.125 20.4667Z",fill:e.colors[2]},null),z("path",{d:"M24.125 20.4667C25.3676 20.4667 26.375 19.4519 26.375 18.2C26.375 16.9482 25.3676 15.9333 24.125 15.9333C22.8824 15.9333 21.875 16.9482 21.875 18.2C21.875 19.4519 22.8824 20.4667 24.125 20.4667Z",fill:e.colors[2]},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.7618 39.9293C37.0135 41.2302 34.8467 42 32.5 42C26.701 42 22 37.299 22 31.5C22 25.701 26.701 21 32.5 21C38.299 21 43 25.701 43 31.5C43 33.0997 42.6423 34.6159 42.0024 35.9728",fill:e.colors[1]},null),z("path",{d:"M38.7618 39.9293C37.0135 41.2302 34.8467 42 32.5 42C26.701 42 22 37.299 22 31.5C22 25.701 26.701 21 32.5 21C38.299 21 43 25.701 43 31.5C43 33.0997 42.6423 34.6159 42.0024 35.9728",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M42.0024 35.9728L43 42L38.7618 39.9293",fill:e.colors[1]},null),z("path",{d:"M42.0024 35.9728L43 42L38.7618 39.9293",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M35.6875 30.7999C34.7555 30.7999 34 30.0388 34 29.0999C34 28.161 34.7555 27.3999 35.6875 27.3999C36.6195 27.3999 37.375 28.161 37.375 29.0999C37.375 30.0388 36.6195 30.7999 35.6875 30.7999Z",fill:e.colors[2]},null),z("path",{d:"M28.9375 30.7999C28.0055 30.7999 27.25 30.0388 27.25 29.0999C27.25 28.161 28.0055 27.3999 28.9375 27.3999C29.8695 27.3999 30.625 28.161 30.625 29.0999C30.625 30.0388 29.8695 30.7999 28.9375 30.7999Z",fill:e.colors[2]},null)])})),hy={IconPlayOne:nv,IconFullScreenPlay:lm,IconLock:Wm,IconUnlock:ey,IconPpt:ov,IconFormat:rm,IconPicture:ev,IconFullScreen:sm,IconList:Rm,IconOrderedList:Gm,IconHelpcenter:vm,IconFlipVertically:Qk,IconFlipHorizontally:Jk,IconFontSize:nm,IconCode:Pk,IconTextBold:zv,IconTextItalic:Nv,IconTextUnderline:Uv,IconStrikethrough:Pv,IconEdit:Yk,IconQuote:cv,IconBackgroundColor:pk,IconGroup:dm,IconUngroup:Jv,IconBack:fk,IconNext:Xm,IconFullwidth:cm,IconAlignTop:lk,IconAlignLeft:Jg,IconAlignRight:Qg,IconAlignBottom:qg,IconAlignVertically:ck,IconAlignHorizontally:Kg,IconBringToFront:mk,IconSendToBack:Sv,IconAlignTextLeft:ik,IconAlignTextRight:sk,IconAlignTextCenter:nk,IconRowHeight:wv,IconWrite:Xg("write",!0,(function(e){return z("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[z("path",{d:"M5.32497 43.4996L13.81 43.4998L44.9227 12.3871L36.4374 3.90186L5.32471 35.0146L5.32497 43.4996Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),z("path",{d:"M27.9521 12.3872L36.4374 20.8725",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])})),IconInsertTable:xm,IconAddText:Zg,IconFill:Kk,IconTailoring:Bv,IconEffects:Xk,IconColorFilter:Ik,IconUp:ty,IconDown:Vk,IconPlus:rv,IconMinus:Vm,IconConnection:Rk,IconBringToFrontOne:vk,IconSentToBack:jv,IconGithub:hm,IconChartProportion:xk,IconChartHistogram:yk,IconChartHistogramOne:Lk,IconChartLineArea:bk,IconChartRing:Ck,IconChartScatter:Sk,IconChartLine:wk,IconChartPie:_k,IconText:Hv,IconRotate:yv,IconLeftTwo:Pm,IconRightTwo:vv,IconPlatte:tv,IconClose:Ak,IconCloseSmall:Ok,IconUndo:Kv,IconTransform:Xv,IconClick:Mk,IconTheme:$v,IconArrowCircleLeft:dk,IconGraphicDesign:um,IconLogout:Hm,IconErase:Zk,IconClear:Ek,IconFolderClose:tm,IconAlignTextTopOne:ak,IconAlignTextBottomOne:tk,IconAlignTextMiddleOne:ok,IconPause:Km,IconVolumeMute:sy,IconVolumeNotice:ay,IconVolumeSmall:ly,IconVideoTwo:oy,IconFormula:om,IconLinkOne:Im,IconFullScreenOne:am,IconOffScreenOne:Zm,IconPower:iv,IconListView:Bm,IconMagic:zm,IconHighLight:ym,IconShare:Ev,IconIndentLeft:bm,IconIndentRight:_m,IconVerticalSpacingBetweenItems:iy,IconCopy:Wk,IconDelete:Nk,IconSquare:Av,IconRound:Lv,IconNeedle:$m,IconTextRotationNone:Fv,IconTextRotationDown:Dv,IconFormatBrush:im,IconPreviewOpen:lv,IconPreviewClose:sv,IconStopwatchStart:Ov,IconShuffleOne:Tv,IconReduceOne:hv,IconTwoDimensionalCodeTwo:qv,IconMore:Um,IconRightAngle:fv,IconPageTemplate:qm,IconTriangleRoundRectangle:Gv,IconLeft:Mm,IconRight:dv,IconGuideBoard:fm,IconKeyboardOne:jm,IconHeadsetOne:mm,IconApplicationMenu:uk,IconPreviewCloseOne:av,IconUpload:ny,IconLayers:Em,IconAlignTextCenterOne:rk,IconRefresh:uv,IconPeoples:Qm,IconScreenRotation:xv,IconUploadOne:ry,IconDownloadOne:$k,IconSave:_v,IconShield:Mv,IconCuttingOne:zk,IconRuler:bv,IconIdCard:wm,IconExpandDownOne:qk,IconFoldUpOne:em,IconClickTap:Tk,IconAddTextTwo:Gg,IconCheckOne:jk,IconBarCode:gk,IconPayCodeTwo:Jm,IconTextStyleOne:Vv,IconIntersection:Sm,IconSendBackward:Cv,IconBringForward:kk,IconIntersectSelection:Cm,IconUnionSelection:Qv,IconExcludeSelection:Gk,IconSubtractSelection:Iv,IconSubtractSelectionOne:Rv,IconAllApplication:hk,IconHome:Lm,IconNewlybuild:Ym,IconDividingLine:Fk,IconAlignTextBoth:ek,IconDistortion:Dk,IconTranslate:Zv,IconMagicWand:Nm,IconH1:pm,IconH3:gm,IconTransferData:Yv,IconHamburgerButton:km,IconContrastViewCircle:Bk,IconLeftSmallUp:Om,IconLeftSmallDown:Am,IconRightSmallUp:mv,IconRightSmallDown:kv,IconMapDraw:Fm,IconRightC:pv,IconLeftC:Tm,IconRightOne:gv,IconDownOne:Uk,IconCopyOne:Hk,IconWechat:cy,IconTencentQq:Wv,IconMail:Dm},uy={install(e){for(const[t,n]of Object.entries(hy))e.component(t,n)}},dy=["accept"],fy=Tu(I({__name:"FileInput",props:{accept:{type:String,default:"image/*"}},emits:["change"],setup(e,{emit:t}){const n=t,r=p();return(t,i)=>(D(),X("div",{class:"file-input",onClick:i[1]||(i[1]=e=>{r.value&&(r.value.value="",r.value.click())})},[K(t.$slots,"default",{},void 0,!0),G("input",{class:"input",type:"file",name:"upload",ref_key:"inputRef",ref:r,accept:e.accept,onChange:i[0]||(i[0]=e=>(e=>{const t=e.target.files;t&&n("change",t)})(e))},null,40,dy)]))}}),[["__scopeId","data-v-b2d0b82e"]]);function py(e){return(py="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var gy=/^\s+/,ky=/\s+$/;function my(e,t){if(t=t||{},(e=e||"")instanceof my)return e;if(!(this instanceof my))return new my(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;"string"==typeof e&&(e=function(e){e=e.replace(gy,"").replace(ky,"").toLowerCase();var t,n=!1;if(Iy[e])e=Iy[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=Xy.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=Xy.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=Xy.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=Xy.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=Xy.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=Xy.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=Xy.hex8.exec(e))return{r:zy(t[1]),g:zy(t[2]),b:zy(t[3]),a:Vy(t[4]),format:n?"name":"hex8"};if(t=Xy.hex6.exec(e))return{r:zy(t[1]),g:zy(t[2]),b:zy(t[3]),format:n?"name":"hex"};if(t=Xy.hex4.exec(e))return{r:zy(t[1]+""+t[1]),g:zy(t[2]+""+t[2]),b:zy(t[3]+""+t[3]),a:Vy(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=Xy.hex3.exec(e))return{r:zy(t[1]+""+t[1]),g:zy(t[2]+""+t[2]),b:zy(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==py(e)&&(Zy(e.r)&&Zy(e.g)&&Zy(e.b)?(l=e.r,c=e.g,h=e.b,t={r:255*Wy(l,255),g:255*Wy(c,255),b:255*Wy(h,255)},s=!0,a="%"===String(e.r).substr(-1)?"prgb":"rgb"):Zy(e.h)&&Zy(e.s)&&Zy(e.v)?(r=Dy(e.s),i=Dy(e.v),t=function(e,t,n){e=6*Wy(e,360),t=Wy(t,100),n=Wy(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),s=n*(1-i*t),a=n*(1-(1-i)*t),l=r%6,c=[n,s,o,o,a,n][l],h=[a,n,n,s,o,o][l],u=[o,o,a,n,n,s][l];return{r:255*c,g:255*h,b:255*u}}(e.h,r,i),s=!0,a="hsv"):Zy(e.h)&&Zy(e.s)&&Zy(e.l)&&(r=Dy(e.s),o=Dy(e.l),t=function(e,t,n){var r,i,o;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=Wy(e,360),t=Wy(t,100),n=Wy(n,100),0===t)r=i=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=s(l,a,e+1/3),i=s(l,a,e),o=s(l,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),s=!0,a="hsl"),e.hasOwnProperty("a")&&(n=e.a));var l,c,h;return n=By(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function vy(e,t,n){e=Wy(e,255),t=Wy(t,255),n=Wy(n,255);var r,i,o=Math.max(e,t,n),s=Math.min(e,t,n),a=(o+s)/2;if(o==s)r=i=0;else{var l=o-s;switch(i=a>.5?l/(2-o-s):l/(o+s),o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(my(r));return o}function Py(e,t){t=t||6;for(var n=my(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/t;t--;)s.push(my({h:r,s:i,v:o})),o=(o+a)%1;return s}my.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=By(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=yy(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=yy(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=vy(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=vy(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return Ly(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[Ny(Math.round(e).toString(16)),Ny(Math.round(t).toString(16)),Ny(Math.round(n).toString(16)),Ny(Fy(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Wy(this._r,255))+"%",g:Math.round(100*Wy(this._g,255))+"%",b:Math.round(100*Wy(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Wy(this._r,255))+"%, "+Math.round(100*Wy(this._g,255))+"%, "+Math.round(100*Wy(this._b,255))+"%)":"rgba("+Math.round(100*Wy(this._r,255))+"%, "+Math.round(100*Wy(this._g,255))+"%, "+Math.round(100*Wy(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Ry[Ly(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+wy(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=my(e);n="#"+wy(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return my(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Cy,arguments)},brighten:function(){return this._applyModification(Sy,arguments)},darken:function(){return this._applyModification(jy,arguments)},desaturate:function(){return this._applyModification(by,arguments)},saturate:function(){return this._applyModification(_y,arguments)},greyscale:function(){return this._applyModification(xy,arguments)},spin:function(){return this._applyModification(Ey,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Oy,arguments)},complement:function(){return this._applyCombination(My,arguments)},monochromatic:function(){return this._applyCombination(Py,arguments)},splitcomplement:function(){return this._applyCombination(Ay,arguments)},triad:function(){return this._applyCombination(Ty,[3])},tetrad:function(){return this._applyCombination(Ty,[4])}},my.fromRatio=function(e,t){if("object"==py(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Dy(e[r]));e=n}return my(e,t)},my.equals=function(e,t){return!(!e||!t)&&my(e).toRgbString()==my(t).toRgbString()},my.random=function(){return my.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},my.mix=function(e,t,n){n=0===n?0:n||50;var r=my(e).toRgb(),i=my(t).toRgb(),o=n/100;return my({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},my.readability=function(e,t){var n=my(e),r=my(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},my.isReadable=function(e,t,n){var r,i,o=my.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},my.mostReadable=function(e,t,n){var r,i,o,s,a=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;for(var c=0;cl&&(l=r,a=my(t[c]));return my.isReadable(e,a,{level:o,size:s})||!i?a:(n.includeFallbackColors=!1,my.mostReadable(e,["#fff","#000"],n))};var Iy=my.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ry=my.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(Iy);function By(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wy(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Hy(e){return Math.min(1,Math.max(0,e))}function zy(e){return parseInt(e,16)}function Ny(e){return 1==e.length?"0"+e:""+e}function Dy(e){return e<=1&&(e=100*e+"%"),e}function Fy(e){return Math.round(255*parseFloat(e)).toString(16)}function Vy(e){return zy(e)/255}var Uy,$y,Yy,Xy=($y="[\\s|\\(]+("+(Uy="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Uy+")[,|\\s]+("+Uy+")\\s*\\)?",Yy="[\\s|\\(]+("+Uy+")[,|\\s]+("+Uy+")[,|\\s]+("+Uy+")[,|\\s]+("+Uy+")\\s*\\)?",{CSS_UNIT:new RegExp(Uy),rgb:new RegExp("rgb"+$y),rgba:new RegExp("rgba"+Yy),hsl:new RegExp("hsl"+$y),hsla:new RegExp("hsla"+Yy),hsv:new RegExp("hsv"+$y),hsva:new RegExp("hsva"+Yy),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Zy(e){return!!Xy.CSS_UNIT.exec(e)}const Gy=(()=>{let e=0;return()=>(e+=1,`u${`0000${(Math.random()*s(36,4)<<0).toString(36)}`.slice(-4)}${e}`)})();function qy(e){const t=[];for(let n=0,r=e.length;n{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e}))}function tL(e,t,n){return d(this,null,(function*(){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),function(e){return d(this,null,(function*(){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(e))).then(encodeURIComponent).then((e=>`data:image/svg+xml;charset=utf-8,${e}`))}))}(i)}))}const nL=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||nL(n,t))};function rL(e,t,n){const r=`.${e}:${t}`,i=n.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):function(e){return qy(e).map((t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`)).join(" ")}(n);return document.createTextNode(`${r}{${i}}`)}function iL(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const o=Gy();try{t.className=`${t.className} ${o}`}catch(a){return}const s=document.createElement("style");s.appendChild(rL(o,n,r)),t.appendChild(s)}const oL="application/font-woff",sL="image/jpeg",aL={woff:oL,woff2:oL,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:sL,jpeg:sL,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function lL(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return aL[t]||""}function cL(e){return-1!==e.search(/^(data:)/)}function hL(e,t){return`data:${t};base64,${e}`}function uL(e,t,n){return d(this,null,(function*(){const r=yield fetch(e,t);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const i=yield r.blob();return new Promise(((e,t)=>{const o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(n({res:r,result:o.result}))}catch(i){t(i)}},o.readAsDataURL(i)}))}))}const dL={};function fL(e,t,n){return d(this,null,(function*(){const r=function(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}(e,t,n.includeQueryParams);if(null!=dL[r])return dL[r];let i;n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());try{const r=yield uL(e,n.fetchRequestInit,(({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),function(e){return e.split(/,/)[1]}(n))));i=hL(r,t)}catch(o){i=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;o&&(t="string"==typeof o?o:o.message)}return dL[r]=i,i}))}function pL(e,t){return d(this,null,(function*(){return nL(e,HTMLCanvasElement)?function(e){return d(this,null,(function*(){const t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):eL(t)}))}(e):nL(e,HTMLVideoElement)?function(e,t){return d(this,null,(function*(){if(e.currentSrc){const t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null==n||n.drawImage(e,0,0,t.width,t.height),eL(t.toDataURL())}const n=e.poster,r=lL(n);return eL(yield fL(n,r,t))}))}(e,t):nL(e,HTMLIFrameElement)?function(e){return d(this,null,(function*(){var t;try{if(null===(t=null==e?void 0:e.contentDocument)||void 0===t?void 0:t.body)return yield mL(e.contentDocument.body,{},!0)}catch(n){}return e.cloneNode(!1)}))}(e):e.cloneNode(!1)}))}const gL=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();function kL(e,t){return nL(t,Element)&&(function(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):qy(r).forEach((i=>{let o=r.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){const e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}nL(e,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(i,o,r.getPropertyPriority(i))}))}(e,t),function(e,t){iL(e,t,":before"),iL(e,t,":after")}(e,t),function(e,t){nL(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),nL(e,HTMLInputElement)&&t.setAttribute("value",e.value)}(e,t),function(e,t){if(nL(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find((t=>e.value===t.getAttribute("value")));r&&r.setAttribute("selected","")}}(e,t)),t}function mL(e,t,n){return d(this,null,(function*(){return n||!t.filter||t.filter(e)?Promise.resolve(e).then((e=>pL(e,t))).then((n=>function(e,t,n){return d(this,null,(function*(){var r,i;let o=[];return o=gL(e)&&e.assignedNodes?qy(e.assignedNodes()):nL(e,HTMLIFrameElement)&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?qy(e.contentDocument.body.childNodes):qy((null!==(i=e.shadowRoot)&&void 0!==i?i:e).childNodes),0===o.length||nL(e,HTMLVideoElement)||(yield o.reduce(((e,r)=>e.then((()=>mL(r,n))).then((e=>{e&&t.appendChild(e)}))),Promise.resolve())),t}))}(e,n,t))).then((t=>kL(e,t))).then((e=>function(e,t){return d(this,null,(function*(){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;const r={};for(let o=0;o{for(;;){const[n,,r]=yL.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}})):e}(e,n),i=function(e){const t=[];return e.replace(vL,((e,n,r)=>(t.push(r),e))),t.filter((e=>!cL(e)))}(r);return i.reduce(((e,r)=>e.then((e=>wL(e,r,t,n)))),Promise.resolve(r))}))}function xL(e,t,n){return d(this,null,(function*(){var r;const i=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue(e);if(i){const r=yield _L(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}))}function CL(e,t){return d(this,null,(function*(){nL(e,Element)&&(yield function(e,t){return d(this,null,(function*(){(yield xL("background",e,t))||(yield xL("background-image",e,t)),(yield xL("mask",e,t))||(yield xL("mask-image",e,t))}))}(e,t),yield function(e,t){return d(this,null,(function*(){const n=nL(e,HTMLImageElement);if((!n||cL(e.src))&&(!nL(e,SVGImageElement)||cL(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=yield fL(r,lL(r),t);yield new Promise(((t,r)=>{e.onload=t,e.onerror=r;const o=e;o.decode&&(o.decode=t),"lazy"===o.loading&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i}))}))}(e,t),yield function(e,t){return d(this,null,(function*(){const n=qy(e.childNodes).map((e=>CL(e,t)));yield Promise.all(n).then((()=>e))}))}(e,t))}))}const SL={};function jL(e){return d(this,null,(function*(){let t=SL[e];if(null!=t)return t;const n=yield fetch(e),r=yield n.text();return t={url:e,cssText:r},SL[e]=t,t}))}function EL(e,t){return d(this,null,(function*(){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map((i=>d(this,null,(function*(){let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),uL(o,t.fetchRequestInit,(({result:e})=>(n=n.replace(i,`url(${e})`),[i,e])))}))));return Promise.all(i).then((()=>n))}))}function ML(e){if(null==e)return[];const t=[];let n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(e=o.exec(n),null===e)break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}function TL(e,t){return d(this,null,(function*(){if(null==e.ownerDocument)throw new Error("Provided element is not within a Document");const n=qy(e.ownerDocument.styleSheets),r=yield function(e,t){return d(this,null,(function*(){const n=[],r=[];return e.forEach((n=>{if("cssRules"in n)try{qy(n.cssRules||[]).forEach(((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1;const s=jL(e.href).then((e=>EL(e,t))).then((e=>ML(e).forEach((e=>{try{n.insertRule(e,e.startsWith("@import")?o+=1:n.cssRules.length)}catch(t){}})))).catch((e=>{}));r.push(s)}}))}catch(FM){const o=e.find((e=>null==e.href))||document.styleSheets[0];null!=n.href&&r.push(jL(n.href).then((e=>EL(e,t))).then((e=>ML(e).forEach((e=>{o.insertRule(e,n.cssRules.length)})))).catch((e=>{})))}})),Promise.all(r).then((()=>(e.forEach((e=>{if("cssRules"in e)try{qy(e.cssRules||[]).forEach((e=>{n.push(e)}))}catch(FM){}})),n)))}))}(n,t);return function(e){return e.filter((e=>e.type===CSSRule.FONT_FACE_RULE)).filter((e=>bL(e.style.getPropertyValue("src"))))}(r)}))}function AL(e,t){return d(this,null,(function*(){const n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:yield function(e,t){return d(this,null,(function*(){const n=yield TL(e,t);return(yield Promise.all(n.map((e=>{const n=e.parentStyleSheet?e.parentStyleSheet.href:null;return _L(e.cssText,n,t)})))).join("\n")}))}(e,t);if(n){const t=document.createElement("style"),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}))}function OL(e){return d(this,arguments,(function*(e,t={}){const{width:n,height:r}=Jy(e,t),i=yield mL(e,t,!0);yield AL(i,t),yield CL(i,t),function(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;null!=r&&Object.keys(r).forEach((e=>{n[e]=r[e]}))}(i,t);return yield tL(i,n,r)}))}function PL(e){return d(this,arguments,(function*(e,t={}){const{width:n,height:r}=Jy(e,t),i=yield OL(e,t),o=yield eL(i),s=document.createElement("canvas"),a=s.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch(FM){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),c=t.canvasWidth||n,h=t.canvasHeight||r;return s.width=c*l,s.height=h*l,t.skipAutoScale||function(e){(e.width>Qy||e.height>Qy)&&(e.width>Qy&&e.height>Qy?e.width>e.height?(e.height*=Qy/e.width,e.width=Qy):(e.width*=Qy/e.height,e.height=Qy):e.width>Qy?(e.height*=Qy/e.width,e.width=Qy):(e.width*=Qy/e.height,e.height=Qy))}(s),s.style.width=`${c}`,s.style.height=`${h}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,s.width,s.height)),a.drawImage(o,0,0,s.width,s.height),s}))}const IL=Tu(I({__name:"Checkboard",props:{size:{type:Number,default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},setup(e){const t=e,n={},r=(e,t,r)=>{const i=e+","+t+","+r;if(n[i])return n[i];const o=((e,t,n)=>{const r=document.createElement("canvas");r.width=r.height=2*n;const i=r.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,r.width,r.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),r.toDataURL()):null})(e,t,r);return n[i]=o,o},i=E((()=>({backgroundImage:`url(${r(t.white,t.grey,t.size)})`})));return(e,t)=>(D(),X("div",{class:"checkerboard",style:Z(i.value)},null,4))}}),[["__scopeId","data-v-b1c2a1c4"]]),RL={class:"alpha"},BL={class:"alpha-checkboard-wrap"},WL=[(e=>(J("data-v-fe195959"),e=e(),Q(),e))((()=>G("div",{class:"alpha-picker"},null,-1)))],HL=Tu(I({__name:"Alpha",props:{value:{type:Object,required:!0}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,i=E((()=>n.value)),o=E((()=>{const e=[i.value.r,i.value.g,i.value.b].join(",");return`linear-gradient(to right, rgba(${e}, 0) 0%, rgba(${e}, 1) 100%)`})),s=p(),a=e=>{if(e.preventDefault(),!s.value)return;const t=s.value.clientWidth,n=s.value.getBoundingClientRect().left+window.pageXOffset,o=e.pageX-n;let a;a=o<0?0:o>t?1:Math.round(100*o/t)/100,i.value.a!==a&&r("colorChange",{r:i.value.r,g:i.value.g,b:i.value.b,a:a})},l=()=>{window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",l)};return B(l),(e,t)=>(D(),X("div",RL,[G("div",BL,[z(IL)]),G("div",{class:"alpha-gradient",style:Z({background:o.value})},null,4),G("div",{class:"alpha-container",ref_key:"alphaRef",ref:s,onMousedown:t[0]||(t[0]=e=>(a(e),window.addEventListener("mousemove",a),void window.addEventListener("mouseup",l)))},[G("div",{class:"alpha-pointer",style:Z({left:100*i.value.a+"%"})},WL,4)],544)]))}}),[["__scopeId","data-v-fe195959"]]),zL={class:"hue"},NL=[(e=>(J("data-v-f9d05544"),e=e(),Q(),e))((()=>G("div",{class:"hue-picker"},null,-1)))],DL=Tu(I({__name:"Hue",props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,i=p(0),o=p(""),s=E((()=>{const e=my(n.value).toHsl();return-1!==n.hue&&(e.h=n.hue),e})),a=E((()=>0===s.value.h&&"right"===o.value?"100%":100*s.value.h/360+"%"));k((()=>n.value),(()=>{const e=my(n.value).toHsl(),t=0===e.s?n.hue:e.h;0!==t&&t-i.value>0&&(o.value="right"),0!==t&&t-i.value<0&&(o.value="left"),i.value=t}));const l=p(),c=e=>{if(e.preventDefault(),!l.value)return;const t=l.value.clientWidth,i=l.value.getBoundingClientRect().left+window.pageXOffset,o=e.pageX-i;let a,c;o<0?a=0:o>t?a=360:(c=100*o/t,a=360*c/100),-1!==n.hue&&s.value.h===a||r("colorChange",{h:a,l:s.value.l,s:s.value.s,a:s.value.a})},h=()=>{window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",h)};return B(h),(e,t)=>(D(),X("div",zL,[G("div",{class:"hue-container",ref_key:"hueRef",ref:l,onMousedown:t[0]||(t[0]=e=>(c(e),window.addEventListener("mousemove",c),void window.addEventListener("mouseup",h)))},[G("div",{class:"hue-pointer",style:Z({left:a.value})},NL,4)],544)]))}}),[["__scopeId","data-v-f9d05544"]]),FL=e=>(J("data-v-31f6e420"),e=e(),Q(),e),VL=FL((()=>G("div",{class:"saturation-white"},null,-1))),UL=FL((()=>G("div",{class:"saturation-black"},null,-1))),$L=[FL((()=>G("div",{class:"saturation-circle"},null,-1)))],YL=Tu(I({__name:"Saturation",props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,i=E((()=>{const e=my(n.value).toHsv();return-1!==n.hue&&(e.h=n.hue),e})),o=E((()=>`hsl(${i.value.h}, 100%, 50%)`)),s=E((()=>-100*i.value.v+1+100+"%")),a=E((()=>100*i.value.s+"%")),l=Be((function(e){r("colorChange",e)}),20,{leading:!0,trailing:!1}),c=p(),h=e=>{if(e.preventDefault(),!c.value)return;const t=c.value.clientWidth,n=c.value.clientHeight,r=c.value.getBoundingClientRect().left+window.pageXOffset,o=c.value.getBoundingClientRect().top+window.pageYOffset,s=We(e.pageX-r,0,t),a=We(e.pageY-o,0,n),h=s/t,u=We(-a/n+1,0,1);l({h:i.value.h,s:h,v:u,a:i.value.a})},u=()=>{window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",u)};return B(u),(e,t)=>(D(),X("div",{class:"saturation",ref_key:"saturationRef",ref:c,style:Z({background:o.value}),onMousedown:t[0]||(t[0]=e=>(h(e),window.addEventListener("mousemove",h),void window.addEventListener("mouseup",u)))},[VL,UL,G("div",{class:"saturation-pointer",style:Z({top:s.value,left:a.value})},$L,4)],36))}}),[["__scopeId","data-v-31f6e420"]]),XL={class:"editable-input"},ZL=["value"],GL=Tu(I({__name:"EditableInput",props:{value:{type:Object,required:!0}},emits:["colorChange"],setup(e,{emit:t}){const n=e,r=t,i=E((()=>{let e="";return e=n.value.a<1?my(n.value).toHex8String().toUpperCase():my(n.value).toHexString().toUpperCase(),e.replace("#","")}));return(e,t)=>(D(),X("div",XL,[G("input",{class:"input-content",value:i.value,onInput:t[0]||(t[0]=e=>(e=>{const t=e.target.value;t.length>=6&&r("colorChange",my(t).toRgb())})(e))},null,40,ZL)]))}}),[["__scopeId","data-v-1448e47d"]]),qL={class:"color-picker"},KL={class:"picker-saturation-wrap"},JL={class:"picker-controls"},QL={class:"picker-color-wrap"},ew={class:"picker-sliders"},tw={class:"picker-hue-wrap"},nw={class:"picker-alpha-wrap"},rw={class:"picker-field"},iw={class:"picker-presets"},ow=["onClick"],sw={class:"picker-gradient-presets"},aw=["onClick"],lw={class:"picker-presets"},cw=["onClick"],hw={key:0,class:"recent-colors-title"},uw={class:"picker-presets"},dw=["onClick"],fw="RECENT_COLORS",pw=Tu(I({__name:"index",props:{modelValue:{type:String,default:"#e86b99"}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],o=(e,t,n)=>{const r=my(e).toRgb(),i=my(t).toRgb(),o=(i.r-r.r)/n,s=(i.g-r.g)/n,a=(i.b-r.b)/n,l=[];for(let c=0;cmy(n.modelValue).toRgb(),set(e){const t=`rgba(${[e.r,e.g,e.b,e.a].join(",")})`;r("update:modelValue",t)}}),u=(()=>{const e=[];for(const t of i)e.push(o(t[1],t[0],5));return e})(),d=E((()=>`rgba(${[h.value.r,h.value.g,h.value.b,h.value.a].join(",")})`)),f=e=>{l.value=my(e).toHsl().h,r("update:modelValue",e)},g=Re((function(){const e=my(h.value).toRgbString();if(!c.value.includes(e)){c.value=[e,...c.value];const t=10;c.value.length>t&&(c.value=c.value.slice(0,t))}}),300,{trailing:!0});T((()=>{const e=localStorage.getItem(fw);e&&(c.value=JSON.parse(e))})),k(c,(()=>{const e=JSON.stringify(c.value);localStorage.setItem(fw,e)}));const m=e=>{"h"in e?(l.value=e.h,h.value=my(e).toRgb()):(l.value=my(e).toHsl().h,h.value=e),g()},v=()=>{Fe({type:"success",message:"按 ESC 键关闭取色吸管"});(new window.EyeDropper).open().then((e=>{const t=my(e.sRGBHex);l.value=t.toHsl().h,h.value=t.toRgb(),g()})).catch((()=>{Fe({type:"success",message:"关闭取色吸管"})}))},y=()=>{const e=document.querySelector(".canvas");if(!e)return;const t=document.createElement("div");t.style.cssText="position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9999; cursor: wait;",document.body.appendChild(t);const n=document.createElement("div");n.style.cssText="position: absolute; top: -100px; left: -100px; width: 16px; height: 16px; border: 1px solid #000; z-index: 999",t.appendChild(n);const{left:r,top:i,width:o,height:s}=e.getBoundingClientRect();PL(e,{filter:e=>(!e.tagName||"FOREIGNOBJECT"!==e.tagName.toUpperCase())&&(!e.classList||!e.classList.contains("operate")),fontEmbedCSS:"",width:o,height:s,canvasWidth:o,canvasHeight:s,pixelRatio:1}).then((e=>{e.style.cssText=`position: absolute; top: ${i}px; left: ${r}px; cursor: crosshair;`,t.style.cursor="default",t.appendChild(e);const o=e.getContext("2d");if(!o)return;let s="";const a=e=>{const t=e.x,a=e.y,l=t-r,c=a-i,[h,u,d,f]=o.getImageData(l,c,1,1).data;s=`rgba(${h}, ${u}, ${d}, ${(f/255).toFixed(2)})`,n.style.left=t+10+"px",n.style.top=a+10+"px",n.style.backgroundColor=s},c=()=>{s="",n.style.left="-100px",n.style.top="-100px",n.style.backgroundColor=""},u=n=>{if(s&&0===n.button){const e=my(s);l.value=e.toHsl().h,h.value=e.toRgb(),g()}document.body.removeChild(t),e.removeEventListener("mousemove",a),e.removeEventListener("mouseleave",c),window.removeEventListener("mousedown",u)};e.addEventListener("mousemove",a),e.addEventListener("mouseleave",c),window.addEventListener("mousedown",u)})).catch((()=>{Fe({type:"error",message:"取色吸管初始化失败"}),document.body.removeChild(t)}))};return(e,t)=>{const n=U("IconNeedle");return D(),X("div",qL,[G("div",KL,[z(YL,{value:h.value,hue:l.value,onColorChange:t[0]||(t[0]=e=>m(e))},null,8,["value","hue"])]),G("div",JL,[G("div",QL,[G("div",{class:"picker-current-color",style:Z({background:d.value})},null,4),z(IL)]),G("div",ew,[G("div",tw,[z(DL,{value:h.value,hue:l.value,onColorChange:t[1]||(t[1]=e=>m(e))},null,8,["value","hue"])]),G("div",nw,[z(HL,{value:h.value,onColorChange:t[2]||(t[2]=e=>m(e))},null,8,["value"])])])]),G("div",rw,[z(GL,{class:"input",value:h.value,onColorChange:t[3]||(t[3]=e=>m(e))},null,8,["value"]),G("div",{class:"straw",onClick:t[4]||(t[4]=e=>{"EyeDropper"in window?v():y()})},[z(n)])]),G("div",iw,[(D(),X(H,null,ee(s,(e=>G("div",{class:"picker-presets-color",key:e,style:Z({background:e}),onClick:t=>f(e)},null,12,ow))),64))]),G("div",sw,[(D(!0),X(H,null,ee(M(u),((e,t)=>(D(),X("div",{class:"picker-gradient-col",key:t},[(D(!0),X(H,null,ee(e,(e=>(D(),X("div",{class:"picker-gradient-color",key:e,style:Z({background:e}),onClick:t=>f(e)},null,12,aw)))),128))])))),128))]),G("div",lw,[(D(),X(H,null,ee(a,(e=>G("div",{key:e,class:"picker-presets-color",style:Z({background:e}),onClick:t=>f(e)},null,12,cw))),64))]),c.value.length?(D(),X("div",hw,"最近使用:")):te("",!0),G("div",uw,[(D(!0),X(H,null,ee(c.value,(e=>(D(),X("div",{key:e,class:"picker-presets-color alpha",onClick:t=>f(e)},[G("div",{class:"picker-presets-color-content",style:Z({background:e})},null,4)],8,dw)))),128))])])}}}),[["__scopeId","data-v-5ad11601"]]),gw={class:"color-btn el-button"},kw={class:"color-block"},mw=Tu(I({__name:"ColorButton",props:{color:{type:String,required:!0}},setup:e=>(t,n)=>{const r=U("IconPlatte");return D(),X("div",gw,[G("div",kw,[G("div",{class:"content",style:Z({backgroundColor:e.color})},null,4)]),z(r,{class:"color-btn-icon"})])}}),[["__scopeId","data-v-5bfc3800"]]),vw={class:"text-color-btn"},yw={class:"text-color-block"},Lw=Tu(I({__name:"TextColorButton",props:{color:{type:String,required:!0}},setup:e=>(t,n)=>(D(),X("div",vw,[K(t.$slots,"default",{},void 0,!0),G("div",yw,[G("div",{class:"text-color-block-content",style:Z({backgroundColor:e.color})},null,4)])]))}),[["__scopeId","data-v-059633ad"]]),ww={key:0,class:"fullscreen-spin"},bw=Tu(I({__name:"FullscreenSpin",props:{loading:{type:Boolean,default:!1},tip:{type:String,default:""}},setup:e=>(t,n)=>{const r=U("Spin");return e.loading?(D(),X("div",ww,[z(r,{tip:e.tip,size:"large"},null,8,["tip"])])):te("",!0)}}),[["__scopeId","data-v-2c307610"]]),_w=["id","markerWidth","markerHeight","refX","refY"],xw=["d","fill","transform"],Cw=I({__name:"LinePointMarker",props:{id:{type:String,required:!0},position:{type:String,required:!0},type:{type:String,required:!0},color:{type:String},baseSize:{type:Number,required:!0}},setup(e){const t=e,n={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},r={"arrow-start":180,"arrow-end":0},i=E((()=>n[t.type])),o=E((()=>r[`${t.type}-${t.position}`]||0)),s=E((()=>t.baseSize<2?2:t.baseSize));return(t,n)=>(D(),X("marker",{id:`${e.id}-${e.type}-${e.position}`,markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:3*s.value,markerHeight:3*s.value,refX:1.5*s.value,refY:1.5*s.value},[G("path",{d:i.value,fill:e.color,transform:`scale(${.3*s.value}, ${.3*s.value}) rotate(${o.value}, 5, 5)`},null,8,xw)],8,_w))}}),Sw=()=>{const e=Ga(),{unitMode:t}=jt(e),n=e=>0===t.value?va(e):e;return{handleActive:e=>{const[t]=Xa(),r=p();let i=!1;O((()=>{if(!us(t.activeObject))return void(r.value=void 0);const o=t.activeObject.value;let s;switch(i=!0,e){case"width":s=n(o.getWidth());break;case"height":s=n(o.getHeight());break;case"opacity":s=la.times(o.opacity,100);break;case"angle":s=(e=>{const t=(e%360+360)%360;return t>180?t-360:t})(o.angle);break;case"left":s=n(o.left);break;case"top":s=n(o.top);break;case"fontSize":if(Bs(o)){let e=o.getStyleAtPosition(0).fontSize,t=!0;for(let n=1;ni=!1))}));const o=(t,n)=>{"opacity"===e&&(n=la.divide(n,100)),t.get(e)!==n&&t.set(e,n)},s=(n,r)=>{var s;const a=t.activeObject.value;!i&&us(a)&&(["width","height","left","top","angle"].includes(e)?(a.set(e,Number(n)),"change"===r&&(null==(s=a.group)?void 0:s.updateLayout)&&a.group.updateLayout()):a.isType("Text","Textbox")&&["fontSize"].includes(e)&&a.selectionEnd-a.selectionStart>0?a.setSelectionStyles({fontSize:n}):Is(a)&&!["left","top","visible","globalCompositeOperation","opacity"].includes(e)?a.forEachObject((e=>{o(e,n)})):o(a,n),t.requestRenderAll())};return E((()=>({disabled:!us(t.activeObject.value),modelValue:r.value,onSwipe:e=>{s(e,"swipe")},onChange:e=>{s(e,"change"),us(t.activeObject)&&t.fire("object:modified",{target:t.activeObject.value})}})))},handleInput:e=>0===t.value?ya(e):e,handleUnit:n}},jw=Tu(I({__name:"SwipeInput",props:{label:{},modelValue:{},modelEvent:{default:"change"},step:{default:1},max:{},min:{}},emits:["update:modelValue","change","swipe"],setup(e,{emit:t}){const{handleInput:n}=Sw(),r=e,i=t;ne();const o=Ss(r,"modelValue",i);k(o,(e=>{e&&(o.value=da(e))}),{immediate:!0});const s=(e,t)=>{e&&(e=n(e),i("change",e,t))};return(e,t)=>{const n=Ve;return D(),F(n,{class:"swipe-input",modelValue:M(o),"onUpdate:modelValue":t[0]||(t[0]=e=>v(o)?o.value=e:null),step:e.step,max:e.max,min:e.min,controls:!1,label:e.label,onChange:s},null,8,["modelValue","step","max","min","label"])}}}),[["__scopeId","data-v-6884a013"]]);function Ew(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mw}=Object.prototype,{getPrototypeOf:Tw}=Object,Aw=(Ow=Object.create(null),e=>{const t=Mw.call(e);return Ow[t]||(Ow[t]=t.slice(8,-1).toLowerCase())});var Ow;const Pw=e=>(e=e.toLowerCase(),t=>Aw(t)===e),Iw=e=>t=>typeof t===e,{isArray:Rw}=Array,Bw=Iw("undefined");const Ww=Pw("ArrayBuffer");const Hw=Iw("string"),zw=Iw("function"),Nw=Iw("number"),Dw=e=>null!==e&&"object"==typeof e,Fw=e=>{if("object"!==Aw(e))return!1;const t=Tw(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Vw=Pw("Date"),Uw=Pw("File"),$w=Pw("Blob"),Yw=Pw("FileList"),Xw=Pw("URLSearchParams");function Zw(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),Rw(e))for(r=0,i=e.length;r0;)if(r=n[i],t===r.toLowerCase())return r;return null}const qw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Kw=e=>!Bw(e)&&e!==qw;const Jw=(Qw="undefined"!=typeof Uint8Array&&Tw(Uint8Array),e=>Qw&&e instanceof Qw);var Qw;const eb=Pw("HTMLFormElement"),tb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nb=Pw("RegExp"),rb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Zw(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},ib="abcdefghijklmnopqrstuvwxyz",ob="0123456789",sb={DIGIT:ob,ALPHA:ib,ALPHA_DIGIT:ib+ib.toUpperCase()+ob};const ab=Pw("AsyncFunction"),lb={isArray:Rw,isArrayBuffer:Ww,isBuffer:function(e){return null!==e&&!Bw(e)&&null!==e.constructor&&!Bw(e.constructor)&&zw(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||zw(e.append)&&("formdata"===(t=Aw(e))||"object"===t&&zw(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ww(e.buffer),t},isString:Hw,isNumber:Nw,isBoolean:e=>!0===e||!1===e,isObject:Dw,isPlainObject:Fw,isUndefined:Bw,isDate:Vw,isFile:Uw,isBlob:$w,isRegExp:nb,isFunction:zw,isStream:e=>Dw(e)&&zw(e.pipe),isURLSearchParams:Xw,isTypedArray:Jw,isFileList:Yw,forEach:Zw,merge:function e(){const{caseless:t}=Kw(this)&&this||{},n={},r=(r,i)=>{const o=t&&Gw(n,i)||i;Fw(n[o])&&Fw(r)?n[o]=e(n[o],r):Fw(r)?n[o]=e({},r):Rw(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i(Zw(t,((t,r)=>{n&&zw(t)?e[r]=Ew(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&Tw(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Aw,kindOfTest:Pw,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Rw(e))return e;let t=e.length;if(!Nw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:eb,hasOwnProperty:tb,hasOwnProp:tb,reduceDescriptors:rb,freezeMethods:e=>{rb(e,((t,n)=>{if(zw(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];zw(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Rw(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Gw,global:qw,isContextDefined:Kw,ALPHABET:sb,generateString:(e=16,t=sb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&zw(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Dw(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=Rw(e)?[]:{};return Zw(e,((e,t)=>{const o=n(e,r+1);!Bw(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:ab,isThenable:e=>e&&(Dw(e)||zw(e))&&zw(e.then)&&zw(e.catch)};function cb(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}lb.inherits(cb,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:lb.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hb=cb.prototype,ub={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ub[e]={value:e}})),Object.defineProperties(cb,ub),Object.defineProperty(hb,"isAxiosError",{value:!0}),cb.from=(e,t,n,r,i,o)=>{const s=Object.create(hb);return lb.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),cb.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};function db(e){return lb.isPlainObject(e)||lb.isArray(e)}function fb(e){return lb.endsWith(e,"[]")?e.slice(0,-2):e}function pb(e,t,n){return e?e.concat(t).map((function(e,t){return e=fb(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const gb=lb.toFlatObject(lb,{},null,(function(e){return/^is[A-Z]/.test(e)}));function kb(e,t,n){if(!lb.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=lb.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!lb.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&lb.isSpecCompliantForm(t);if(!lb.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(lb.isDate(e))return e.toISOString();if(!a&&lb.isBlob(e))throw new cb("Blob is not supported. Use a Buffer instead.");return lb.isArrayBuffer(e)||lb.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if(lb.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(lb.isArray(e)&&function(e){return lb.isArray(e)&&!e.some(db)}(e)||(lb.isFileList(e)||lb.endsWith(n,"[]"))&&(a=lb.toArray(e)))return n=fb(n),a.forEach((function(e,r){!lb.isUndefined(e)&&null!==e&&t.append(!0===s?pb([n],r,o):null===s?n:n+"[]",l(e))})),!1;return!!db(e)||(t.append(pb(i,n,o),l(e)),!1)}const h=[],u=Object.assign(gb,{defaultVisitor:c,convertValue:l,isVisitable:db});if(!lb.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!lb.isUndefined(n)){if(-1!==h.indexOf(n))throw Error("Circular reference detected in "+r.join("."));h.push(n),lb.forEach(n,(function(n,o){!0===(!(lb.isUndefined(n)||null===n)&&i.call(t,n,lb.isString(o)?o.trim():o,r,u))&&e(n,r?r.concat(o):[o])})),h.pop()}}(e),t}function mb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function vb(e,t){this._pairs=[],e&&kb(e,this,t)}const yb=vb.prototype;function Lb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wb(e,t,n){if(!t)return e;const r=n&&n.encode||Lb,i=n&&n.serialize;let o;if(o=i?i(t,n):lb.isURLSearchParams(t)?t.toString():new vb(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}yb.append=function(e,t){this._pairs.push([e,t])},yb.toString=function(e){const t=e?function(t){return e.call(this,t,mb)}:mb;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const bb=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){lb.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},_b={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xb={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:vb,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Cb="undefined"!=typeof window&&"undefined"!=typeof document,Sb=(jb="undefined"!=typeof navigator&&navigator.product,Cb&&["ReactNative","NativeScript","NS"].indexOf(jb)<0);var jb;const Eb="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Mb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cb,hasStandardBrowserEnv:Sb,hasStandardBrowserWebWorkerEnv:Eb},Symbol.toStringTag,{value:"Module"})),Tb=l(l({},Mb),xb);function Ab(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=e.length;if(o=!o&&lb.isArray(r)?r.length:o,a)return lb.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!s;r[o]&&lb.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&lb.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return lb.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Ob={transitional:_b,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=lb.isObject(e);i&&lb.isHTMLForm(e)&&(e=new FormData(e));if(lb.isFormData(e))return r?JSON.stringify(Ab(e)):e;if(lb.isArrayBuffer(e)||lb.isBuffer(e)||lb.isStream(e)||lb.isFile(e)||lb.isBlob(e))return e;if(lb.isArrayBufferView(e))return e.buffer;if(lb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return kb(e,new Tb.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Tb.isNode&&lb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=lb.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return kb(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(lb.isString(e))try{return(t||JSON.parse)(e),lb.trim(e)}catch(FM){if("SyntaxError"!==FM.name)throw FM}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ob.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&lb.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(FM){if(n){if("SyntaxError"===FM.name)throw cb.from(FM,cb.ERR_BAD_RESPONSE,this,null,this.response);throw FM}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tb.classes.FormData,Blob:Tb.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};lb.forEach(["delete","get","head","post","put","patch"],(e=>{Ob.headers[e]={}}));const Pb=Ob,Ib=lb.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rb=Symbol("internals");function Bb(e){return e&&String(e).trim().toLowerCase()}function Wb(e){return!1===e||null==e?e:lb.isArray(e)?e.map(Wb):String(e)}function Hb(e,t,n,r,i){return lb.isFunction(r)?r.call(this,t,n):(i&&(t=n),lb.isString(t)?lb.isString(r)?-1!==t.indexOf(r):lb.isRegExp(r)?r.test(t):void 0:void 0)}class zb{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Bb(t);if(!i)throw new Error("header name must be a non-empty string");const o=lb.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Wb(e))}const o=(e,t)=>lb.forEach(e,((e,n)=>i(e,n,t)));return lb.isPlainObject(e)||e instanceof this.constructor?o(e,t):lb.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Ib[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&i(t,e,n),this}get(e,t){if(e=Bb(e)){const n=lb.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(lb.isFunction(t))return t.call(this,e,n);if(lb.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Bb(e)){const n=lb.findKey(this,e);return!(!n||void 0===this[n]||t&&!Hb(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Bb(e)){const i=lb.findKey(n,e);!i||t&&!Hb(0,n[i],i,t)||(delete n[i],r=!0)}}return lb.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Hb(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return lb.forEach(this,((r,i)=>{const o=lb.findKey(n,i);if(o)return t[o]=Wb(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();s!==i&&delete t[i],t[s]=Wb(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return lb.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&lb.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Rb]=this[Rb]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Bb(e);t[r]||(!function(e,t){const n=lb.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return lb.isArray(e)?e.forEach(r):r(e),this}}zb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),lb.reduceDescriptors(zb.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),lb.freezeMethods(zb);const Nb=zb;function Db(e,t){const n=this||Pb,r=t||n,i=Nb.from(r.headers);let o=r.data;return lb.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Fb(e){return!(!e||!e.__CANCEL__)}function Vb(e,t,n){cb.call(this,null==e?"canceled":e,cb.ERR_CANCELED,t,n),this.name="CanceledError"}lb.inherits(Vb,cb,{__CANCEL__:!0});const Ub=Tb.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];lb.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),lb.isString(r)&&s.push("path="+r),lb.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function $b(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Yb=Tb.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=lb.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Xb(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[s];i||(i=l),n[o]=a,r[o]=l;let h=s,u=0;for(;h!==o;)u+=n[h++],h%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a);n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Zb={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const i=Nb.from(e.headers).normalize();let o,s,{responseType:a,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}if(lb.isFormData(r))if(Tb.hasStandardBrowserEnv||Tb.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(s=i.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}let h=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+n))}const u=$b(e.baseURL,e.url);function d(){if(!h)return;const r=Nb.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new cb("Request failed with status code "+n.status,[cb.ERR_BAD_REQUEST,cb.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:a&&"text"!==a&&"json"!==a?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}if(h.open(e.method.toUpperCase(),wb(u,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=d:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(d)},h.onabort=function(){h&&(n(new cb("Request aborted",cb.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new cb("Network Error",cb.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||_b;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new cb(t,r.clarifyTimeoutError?cb.ETIMEDOUT:cb.ECONNABORTED,e,h)),h=null},Tb.hasStandardBrowserEnv&&(l&&lb.isFunction(l)&&(l=l(e)),l||!1!==l&&Yb(u))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Ub.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===r&&i.setContentType(null),"setRequestHeader"in h&&lb.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),lb.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),a&&"json"!==a&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",Xb(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",Xb(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{h&&(n(!t||t.type?new Vb(null,e,h):t),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);f&&-1===Tb.protocols.indexOf(f)?n(new cb("Unsupported protocol "+f+":",cb.ERR_BAD_REQUEST,e)):h.send(r||null)}))}};lb.forEach(Zb,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(FM){}Object.defineProperty(e,"adapterName",{value:t})}}));const Gb=e=>`- ${e}`,qb=e=>lb.isFunction(e)||null===e||!1===e,Kb=e=>{e=lb.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new cb("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Gb).join("\n"):" "+Gb(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Jb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vb(null,e)}function Qb(e){Jb(e),e.headers=Nb.from(e.headers),e.data=Db.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Kb(e.adapter||Pb.adapter)(e).then((function(t){return Jb(e),t.data=Db.call(e,e.transformResponse,t),t.headers=Nb.from(t.headers),t}),(function(t){return Fb(t)||(Jb(e),t&&t.response&&(t.response.data=Db.call(e,e.transformResponse,t.response),t.response.headers=Nb.from(t.response.headers))),Promise.reject(t)}))}const e_=e=>e instanceof Nb?l({},e):e;function t_(e,t){t=t||{};const n={};function r(e,t,n){return lb.isPlainObject(e)&&lb.isPlainObject(t)?lb.merge.call({caseless:n},e,t):lb.isPlainObject(t)?lb.merge({},t):lb.isArray(t)?t.slice():t}function i(e,t,n){return lb.isUndefined(t)?lb.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!lb.isUndefined(t))return r(void 0,t)}function s(e,t){return lb.isUndefined(t)?lb.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>i(e_(e),e_(t),!0)};return lb.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,s=o(e[r],t[r],r);lb.isUndefined(s)&&o!==a||(n[r]=s)})),n}const n_="1.6.8",r_={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{r_[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const i_={};r_.transitional=function(e,t,n){return(r,i,o)=>{if(!1===e)throw new cb(function(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}(i," has been removed"+(t?" in "+t:"")),cb.ERR_DEPRECATED);return t&&!i_[i]&&(i_[i]=!0),!e||e(r,i,o)}};const o_={assertOptions:function(e,t,n){if("object"!=typeof e)throw new cb("options must be an object",cb.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new cb("option "+o+" must be "+n,cb.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new cb("Unknown option "+o,cb.ERR_BAD_OPTION)}},validators:r_},s_=o_.validators;class a_{constructor(e){this.defaults=e,this.interceptors={request:new bb,response:new bb}}request(e,t){return d(this,null,(function*(){try{return yield this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}))}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=t_(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&o_.assertOptions(n,{silentJSONParsing:s_.transitional(s_.boolean),forcedJSONParsing:s_.transitional(s_.boolean),clarifyTimeoutError:s_.transitional(s_.boolean)},!1),null!=r&&(lb.isFunction(r)?t.paramsSerializer={serialize:r}:o_.assertOptions(r,{encode:s_.function,serialize:s_.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&lb.merge(i.common,i[t.method]);i&&lb.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=Nb.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let h,u=0;if(!a){const e=[Qb.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),h=e.length,c=Promise.resolve(t);u{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Vb(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new c_((function(t){e=t})),cancel:e}}}const h_=c_;const u_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(u_).forEach((([e,t])=>{u_[t]=e}));const d_=u_;const f_=function e(t){const n=new l_(t),r=Ew(l_.prototype.request,n);return lb.extend(r,l_.prototype,n,{allOwnKeys:!0}),lb.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(t_(t,n))},r}(Pb);f_.Axios=l_,f_.CanceledError=Vb,f_.CancelToken=h_,f_.isCancel=Fb,f_.VERSION=n_,f_.toFormData=kb,f_.AxiosError=cb,f_.Cancel=f_.CanceledError,f_.all=function(e){return Promise.all(e)},f_.spread=function(e){return function(t){return e.apply(null,t)}},f_.isAxiosError=function(e){return lb.isObject(e)&&!0===e.isAxiosError},f_.mergeConfig=t_,f_.AxiosHeaders=Nb,f_.formToJSON=e=>Ab(lb.isHTMLForm(e)?new FormData(e):e),f_.getAdapter=Kb,f_.HttpStatusCode=d_,f_.default=f_;const p_={set(e,t){window.localStorage.setItem(e,JSON.stringify(t))},get(e){const t=window.localStorage.getItem(e);return JSON.parse(t)},remove(e){window.localStorage.removeItem(e)},clear(){window.localStorage.clear()}},g_=f_.create({baseURL:{}.VITE_APP_BASE_API,timeout:5e5,headers:{"Content-Type":"application/json;charset=utf-8"}});function k_(e,t){const n=new FormData;return n.append("file",e),n.append("type",t),g_({url:"/api/design/parse/file",method:"post",data:n,headers:{"Content-Type":"multipart/form-data"}})}function m_(e){return g_({url:"/api/design/export/file",method:"post",data:e})}function v_(e){if(!Ep.test(e.nodeName))return{};const t=e.getAttribute("viewBox");let n,r,i=1,o=1,s=0,a=0;const l=e.getAttribute("width"),c=e.getAttribute("height"),h=e.getAttribute("x")||0,u=e.getAttribute("y")||0,d=!(t&&Tp.test(t)),f=!l||!c||"100%"===l||"100%"===c;let p="",g=0,k=0;if(d&&(h||u)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(p=" translate("+mp(h||"0")+" "+mp(u||"0")+") ",n=(e.getAttribute("transform")||"")+p,e.setAttribute("transform",n),e.removeAttribute("x"),e.removeAttribute("y")),d&&f)return{width:0,height:0};const m={width:0,height:0};if(d)return m.width=mp(l),m.height=mp(c),m;const v=t.match(Tp);s=-parseFloat(v[1]),a=-parseFloat(v[2]);const y=parseFloat(v[3]),L=parseFloat(v[4]);m.minX=s,m.minY=a,m.viewBoxWidth=y,m.viewBoxHeight=L,f?(m.width=y,m.height=L):(m.width=mp(l),m.height=mp(c),i=m.width/y,o=m.height/L);const w=vp(e.getAttribute("preserveAspectRatio")||"");if(w.alignX!==gp&&("meet"===w.meetOrSlice&&(o=i=i>o?o:i),"slice"===w.meetOrSlice&&(o=i=i>o?i:o),g=m.width-y*i,k=m.height-L*i,"Mid"===w.alignX&&(g/=2),"Mid"===w.alignY&&(k/=2),"Min"===w.alignX&&(g=0),"Min"===w.alignY&&(k=0)),1===i&&1===o&&0===s&&0===a&&0===h&&0===u)return m;if((h||u)&&"#document"!==e.parentNode.nodeName&&(p=" translate("+mp(h||"0")+" "+mp(u||"0")+") "),n=p+" matrix("+i+" 0 0 "+o+" "+(s*i+g)+" "+(a*o+k)+") ","svg"===e.nodeName){for(r=e.ownerDocument.createElementNS(wp,"g");e.firstChild;)r.appendChild(e.firstChild);e.appendChild(r)}else r=e,r.removeAttribute("x"),r.removeAttribute("y"),n=r.getAttribute("transform")+n;return r.setAttribute("transform",n),m}g_.interceptors.request.use((e=>{if(!e.headers)throw new Error("Expected 'config' and 'config.headers' not to be undefined");return e}),(e=>Promise.reject(e))),g_.interceptors.response.use((e=>{const{code:t,msg:n}=e.data;return 200===t||e.data instanceof ArrayBuffer||e.data instanceof Array?e:(Fe({message:n||"系统出错",type:"error"}),Promise.reject(new Error(n||"Error")))}),(e=>{if(e.response.data){const{detail:t}=e.response.data;"Signature has expired."===t?Ue.confirm("当前页面已失效,请重新登录","Warning",{confirmButtonText:"OK",type:"warning"}).then((()=>{p_.clear(),window.location.href="/"})):Fe({message:t||"系统出错",type:"error"})}return Promise.reject(e.message)}));const y_=yp(["pattern","defs","symbol","metadata","clipPath","mask","desc"]);function L_(e,t){if(e.getElementById)return e.getElementById(t);const n=e.getElementsByTagName("*");for(let r=0,i=n.length;r{let n=e._findCenterFromElement();e.transformMatrix&&((e=>{if(e.transformMatrix){const{scaleX:t,scaleY:n,angle:r,skewX:i}=Np(e.transformMatrix);e.flipX=!1,e.flipY=!1,e.set("scaleX",t),e.set("scaleY",n),e.angle=r,e.skewX=i,e.skewY=0}})(e),n=n.transform(e.transformMatrix)),delete e.transformMatrix,t&&(e.scaleX*=t.scaleX,e.scaleY*=t.scaleY,e.cropX=t.cropX,e.cropY=t.cropY,n.x+=t.offsetLeft,n.y+=t.offsetTop,e.width=t.width,e.height=t.height),e.setPositionByOrigin(n,dp,dp)},__=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],x_="xlink:href";function C_(e,t){var n;const r=L_(e,(null==(n=t.getAttribute(x_))?void 0:n.slice(1))||"");if(r&&r.getAttribute(x_)&&C_(e,r),r&&(__.forEach((e=>{const n=r.getAttribute(e);!t.hasAttribute(e)&&n&&t.setAttribute(e,n)})),!t.children.length)){const e=r.cloneNode(!0);for(;e.firstChild;)t.appendChild(e.firstChild)}t.removeAttribute(x_)}const S_=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"];const j_=e=>{const t=e.tagName.toLowerCase().replace("svg:","");return"image"===t?dg:"text"===t?Og:ye.getSVGClass(e.tagName.toLowerCase().replace("svg:",""))};class E_{constructor(e,t,n,r,i,o){this.elements=e,this.options=t,this.reviver=n,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=r,this.clipPaths=i,this.masks=o,this.gradientDefs=function(e){const t=w_(e,S_),n={};let r=t.length;for(;r--;){const i=t[r];i.getAttribute("xlink:href")&&C_(e,i);const o=i.getAttribute("id");o&&(n[o]=i)}return n}(r),this.cssRules=function(e){const t=e.getElementsByTagName("style");let n,r;const i={};for(n=0,r=t.length;n{""!==(e=e.replace(/^svg/i,"").trim())&&(i[e]=l(l({},i[e]||{}),o))}))}))}return i}(r)}parse(){return Promise.all(this.elements.map((e=>this.createObject(e))))}createObject(e){return d(this,null,(function*(){const t=j_(e);if(t){const n=yield t.fromElement(e,this.options,this.cssRules);return n.set({id:$o(10)}),this.resolveGradient(n,e,"fill"),this.resolveGradient(n,e,"stroke"),n instanceof dg&&n._originalElement?b_(n,n.parsePreserveAspectRatioAttribute()):b_(n),yield this.resolveClipPath(n,e),yield this.resolveMask(n,e),this.reviver&&this.reviver(e,n),n}return null}))}extractPropertyDefinition(e,t,n){const r=e[t],i=this.regexUrl;if(!i.test(r))return;i.lastIndex=0;const o=i.exec(r)[1];return i.lastIndex=0,n[o]}resolveGradient(e,t,n){const r=this.extractPropertyDefinition(e,n,this.gradientDefs);if(r){const i=t.getAttribute(n+"-opacity"),o=fe.fromElement(r,e,c(l({},this.options),{opacity:i}));e.set(n,o)}}resolveClipPath(e,t){return d(this,null,(function*(){const n=this.extractPropertyDefinition(e,"clipPath",this.clipPaths);if(n){const r=(e=>{const t=1/(e[0]*e[3]-e[1]*e[2]),n=[t*e[3],-t*e[1],-t*e[2],t*e[0],0,0],{x:r,y:i}=new he(e[4],e[5]).transform(n,!0);return n[4]=-r,n[5]=-i,n})(e.calcTransformMatrix()),i=n[0].parentElement;let o=t;for(;o.parentElement&&o.getAttribute("clip-path")!==e.clipPath;)o=o.parentElement;o.parentElement.appendChild(i);const s=yield Promise.all(n.map((e=>j_(e).fromElement(e,this.options,this.cssRules).then((e=>(b_(e),e.fillRule=e.clipRule,delete e.clipRule,e)))))),a=1===s.length?s[0]:new de(s),l=zp(r,a.calcTransformMatrix());a.clipPath&&(yield this.resolveClipPath(a,o));const{scaleX:c,scaleY:h,angle:u,skewX:d,translateX:f,translateY:p}=Np(l);a.set({flipX:!1,flipY:!1}),a.set({scaleX:c,scaleY:h,angle:u,skewX:d,skewY:0}),a.setPositionByOrigin(new he(f,p),dp,dp),e.clipPath=a}else delete e.clipPath}))}resolveMask(e,t){return d(this,null,(function*(){const t=this.extractPropertyDefinition(e,"mask",this.masks);if(t){const n=t[0],r=yield dg.fromElement(n);e.set({mask:{src:null==r?void 0:r.getSrc(),left:e.left,top:e.top,width:e.width,height:e.height}})}}))}}const M_=e=>jp.test(e.nodeName.replace("svg:","")),T_=()=>({objects:[],elements:[],options:{},allElements:[]});function A_(e,t){return d(this,arguments,(function*(e,t,{crossOrigin:n,signal:r}={}){if(r&&r.aborted)return T_();const i=e.documentElement;!function(e){const t=w_(e,["use","svg:use"]);let n=0;for(;t.length&&n(v_(e),M_(e)&&!function(e){let t=e;for(;t&&(t=t.parentElement);)if(t&&t.nodeName&&y_.test(t.nodeName.replace("svg:",""))&&!t.getAttribute("instantiated_by_use"))return!0;return!1}(e))));if(!a||a&&!a.length)return c(l({},T_()),{options:s,allElements:o});const h={},u={};o.filter((e=>"clipPath"===e.nodeName.replace("svg:",""))).forEach((e=>{const t=e.getAttribute("id");h[t]=Array.from(e.getElementsByTagName("*")).filter((e=>M_(e)))})),o.filter((e=>"mask"===e.nodeName.replace("svg:",""))).forEach((e=>{const t=e.getAttribute("id");u[t]=Array.from(e.getElementsByTagName("*")).filter((e=>M_(e)))}));const d=new E_(a,s,t,e,h,u);return{objects:yield d.parse(),elements:a,options:s,allElements:o}}))}function O_(e,t,n){return A_((new(Oe().DOMParser)).parseFromString(e.trim(),"text/xml"),t,n)}const P_=()=>({setZindex:e=>{e.sendObjectToBack(e.getObjects().filter((e=>e.id===Ao))[0]),e.bringObjectToFront(e.getObjects().filter((e=>e.id===Io))[0]),e.bringObjectToFront(e.getObjects().filter((e=>e.id===Oo))[0]),e.bringObjectToFront(e.getObjects().filter((e=>e.id===Po))[0])}}),I_=()=>{const e=Ga(),t=sl(),{setZindex:n}=P_(),{t:r}=pu(ju()).global,{rightState:i,systemFonts:o}=jt(e),s=e=>{const[r]=Xa();r.viewportCenterObject(e),r.add(e),r.setActiveObject(e),i.value=as.ELEMENT_STYLE,n(r),r.renderAll(),t.modifedElement()},a=(e,t=!1,n="双击修改文字")=>{const{centerPoint:r}=Ka(),i=new zg(n,{id:$o(10),left:r.x,top:r.y,fontSize:e,fontFamily:o.value[0].value,fillType:0,hasControls:!0,hasBorders:!0,fontWeight:"normal",charSpacing:3,opacity:1,lineHeight:1.3,originX:"left",originY:"top",name:is.VERTICALTEXT});i.set({left:i.left-i.width/2,top:i.top-i.height/2}),t&&(i.fill="",i.stroke="black",i.strokeWidth=1),s(i)},l=(e,t,n,r)=>{const{centerPoint:i}=Ka(),o=new(ye.getClass("Polyline"))(e,{id:$o(10),left:i.x,top:i.y,strokeWidth:4,stroke:"pink",fill:"",scaleX:1,scaleY:1,originX:"left",originY:"top",startStyle:t,endStyle:n,hasBorders:!1,objectCaching:!1,transparentCorners:!1,strokeDashArray:r,name:is.LINE});s(o)};return{createTextElement:(e,t="transverse",n=!1,i=r("default.textValue"))=>{if("direction"===t)return void a(e,n,i);const{centerPoint:l}=Ka(),c=new Ag(i,{id:$o(10),left:l.x,top:l.y,fontSize:e,fontFamily:o.value[0].value,fillType:0,hasControls:!0,hasBorders:!0,fontWeight:"normal",charSpacing:3,opacity:1,lineHeight:1.3,originX:"left",originY:"top",textAlign:"justify-center",name:is.TEXTBOX,splitByGrapheme:!1,width:e*i.length/2});c.set({left:c.left-c.width/2,top:c.top-c.height/2,splitByGrapheme:!0}),n&&(c.fill="",c.stroke="black",c.strokeWidth=1),s(c)},createPathElement:(e,t,n)=>{const{centerPoint:r}=Ka(),i=new Ce(e,{id:$o(10),left:t||r.x,top:n||r.y,hasControls:!0,hasBorders:!0,opacity:1,originX:"left",originY:"top",fill:"#ff5e17",name:is.PATH});i.left-=i.width/2,i.top-=i.height/2,s(i)},createLineElement:(e,t,n,r)=>{l(e,t,n,r)},createImageElement:e=>{const{zoom:t}=jt(Fo()),{currentTemplateWidth:n,currentTemplateHeight:r}=jt(sl()),{centerPoint:i}=Ka();ga(e).then((o=>d(void 0,[o],(function*({width:o,height:a}){let l=1;a/on.value?l=n.value/o:a>r.value&&(l=r.value/a);const c=yield dg.fromURL(e,{},{id:$o(10),angle:0,left:i.x-o*l/2,top:i.y-a*l/2,scaleX:l,scaleY:l,hasControls:!0,hasBorders:!0,opacity:1,originX:"left",originY:"top",borderColor:"#ff8d23",name:is.IMAGE,crossOrigin:"anonymous"});s(c)}))))},createQRCodeElement:(e,t,n)=>d(void 0,null,(function*(){const{centerPoint:r}=Ka(),i=yield mg.fromURL(e,{},{id:$o(10),name:is.QRCODE,angle:0,left:r.x,top:r.y,hasControls:!0,hasBorders:!0,opacity:1,originX:"left",originY:"top",borderColor:"#ff8d23",codeContent:n,codeOption:t,crossOrigin:"anonymous"});i.left-=i.width/2,i.top-=i.height/2,s(i)})),createBarCodeElement:(e,t,n)=>d(void 0,null,(function*(){const{centerPoint:r}=Ka(),i=yield kg.fromURL(e,{},{id:$o(10),name:is.BARCODE,angle:0,left:r.x,top:r.y,hasControls:!0,hasBorders:!0,opacity:1,originX:"left",originY:"top",borderColor:"#ff8d23",codeContent:t,codeOption:n,crossOrigin:"anonymous"});i.left-=i.width/2,i.top-=i.height/2,s(i)})),createVideoElement:e=>{const{centerPoint:t}=Ka(),[n]=Xa(),r=document.createElement("video");r.loop=!0,r.crossOrigin="anonymous",r.controls=!0,r.style.display="none";const i=document.createElement("source");i.src=e,r.appendChild(i),r.addEventListener("loadeddata",(function(){r.width=r.videoWidth,r.height=r.videoHeight;const e=new Se(r,{left:t.x,top:t.y,originX:"center",originY:"center",objectCaching:!1});n.add(e);e.getElement().play(),ge.requestAnimFrame((function e(){n.renderAll(),ge.requestAnimFrame(e)}))}))},createArcTextElement:(e,t="transverse",n=!1,r="双击修改文字")=>{const{centerPoint:i}=Ka(),a=new Tg(r,{id:$o(10),left:i.x,top:i.y,fontSize:e,fontFamily:o.value[0].value,fillType:0,hasControls:!0,hasBorders:!0,fontWeight:"normal",charSpacing:3,opacity:1,lineHeight:1.3,originX:"left",originY:"top",textAlign:"justify-center",name:is.TEXTBOX,splitByGrapheme:"direction"===t});a.set({left:a.left-a.width/2,top:a.top-a.height/2}),n&&(a.fill="",a.stroke="black",a.strokeWidth=1),s(a)},createVerticalTextElement:a,createTableElement:()=>{}}};var R_={exports:{}}; +/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */const B_=at(R_.exports=function(){return function(){var e={686:function(e,t,n){n.d(t,{default:function(){return b}});var r=n(279),i=n.n(r),o=n(370),s=n.n(o),a=n(817),l=n.n(a);function c(e){try{return document.execCommand(e)}catch(t){return!1}}var h=function(e){var t=l()(e);return c("cut"),t},u=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=l()(n);return c("copy"),n.remove(),r},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=u(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=u(e.value,t):(n=l()(e),c("copy")),n};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==f(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?d(o,{container:r}):i?"cut"===n?h(i):d(i,{container:r}):void 0};function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===g(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=s()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=p({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return L("action",e)}},{key:"defaultTarget",value:function(e){var t=L("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return L("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(e,t)}},{key:"cut",value:function(e){return h(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&k(t.prototype,n),r&&k(t,r),o}(i()),b=w},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var s=o.apply(this,arguments);return e.addEventListener(n,s,i),{destroy:function(){e.removeEventListener(n,s,i)}}}function o(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r>>2]>>>24-o%4*8&255;t[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},u=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(FM){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,h=e.min(4*c,o);if(c){for(var u=0;u>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),Y_.exports;var e}var Z_,G_={exports:{}};function q_(){return Z_?G_.exports:(Z_=1,G_.exports=(e=D_(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16));var e}var K_,J_={exports:{}};function Q_(){return K_||(K_=1,J_.exports=(e=D_(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var i=[],o=0,s=0;s>>6-s%4*2;i[o>>>2]|=a<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a>>6*(3-a)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-s%4*2;i[o>>>2]|=a<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],s=0;s>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,l=0;l<4&&s+.75*l>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var s=0;s>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],g=e[t+4],k=e[t+5],m=e[t+6],v=e[t+7],y=e[t+8],L=e[t+9],w=e[t+10],b=e[t+11],_=e[t+12],x=e[t+13],C=e[t+14],S=e[t+15],j=o[0],E=o[1],M=o[2],T=o[3];j=c(j,E,M,T,s,7,a[0]),T=c(T,j,E,M,l,12,a[1]),M=c(M,T,j,E,f,17,a[2]),E=c(E,M,T,j,p,22,a[3]),j=c(j,E,M,T,g,7,a[4]),T=c(T,j,E,M,k,12,a[5]),M=c(M,T,j,E,m,17,a[6]),E=c(E,M,T,j,v,22,a[7]),j=c(j,E,M,T,y,7,a[8]),T=c(T,j,E,M,L,12,a[9]),M=c(M,T,j,E,w,17,a[10]),E=c(E,M,T,j,b,22,a[11]),j=c(j,E,M,T,_,7,a[12]),T=c(T,j,E,M,x,12,a[13]),M=c(M,T,j,E,C,17,a[14]),j=h(j,E=c(E,M,T,j,S,22,a[15]),M,T,l,5,a[16]),T=h(T,j,E,M,m,9,a[17]),M=h(M,T,j,E,b,14,a[18]),E=h(E,M,T,j,s,20,a[19]),j=h(j,E,M,T,k,5,a[20]),T=h(T,j,E,M,w,9,a[21]),M=h(M,T,j,E,S,14,a[22]),E=h(E,M,T,j,g,20,a[23]),j=h(j,E,M,T,L,5,a[24]),T=h(T,j,E,M,C,9,a[25]),M=h(M,T,j,E,p,14,a[26]),E=h(E,M,T,j,y,20,a[27]),j=h(j,E,M,T,x,5,a[28]),T=h(T,j,E,M,f,9,a[29]),M=h(M,T,j,E,v,14,a[30]),j=u(j,E=h(E,M,T,j,_,20,a[31]),M,T,k,4,a[32]),T=u(T,j,E,M,y,11,a[33]),M=u(M,T,j,E,b,16,a[34]),E=u(E,M,T,j,C,23,a[35]),j=u(j,E,M,T,l,4,a[36]),T=u(T,j,E,M,g,11,a[37]),M=u(M,T,j,E,v,16,a[38]),E=u(E,M,T,j,w,23,a[39]),j=u(j,E,M,T,x,4,a[40]),T=u(T,j,E,M,s,11,a[41]),M=u(M,T,j,E,p,16,a[42]),E=u(E,M,T,j,m,23,a[43]),j=u(j,E,M,T,L,4,a[44]),T=u(T,j,E,M,_,11,a[45]),M=u(M,T,j,E,S,16,a[46]),j=d(j,E=u(E,M,T,j,f,23,a[47]),M,T,s,6,a[48]),T=d(T,j,E,M,v,10,a[49]),M=d(M,T,j,E,C,15,a[50]),E=d(E,M,T,j,k,21,a[51]),j=d(j,E,M,T,_,6,a[52]),T=d(T,j,E,M,p,10,a[53]),M=d(M,T,j,E,w,15,a[54]),E=d(E,M,T,j,l,21,a[55]),j=d(j,E,M,T,y,6,a[56]),T=d(T,j,E,M,S,10,a[57]),M=d(M,T,j,E,m,15,a[58]),E=d(E,M,T,j,x,21,a[59]),j=d(j,E,M,T,g,6,a[60]),T=d(T,j,E,M,b,10,a[61]),M=d(M,T,j,E,f,15,a[62]),E=d(E,M,T,j,L,21,a[63]),o[0]=o[0]+j|0,o[1]=o[1]+E|0,o[2]=o[2]+M|0,o[3]=o[3]+T|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),s=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,l=a.words,c=0;c<4;c++){var h=l[c];l[c]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,s){var a=e+(t&n|~t&r)+i+s;return(a<>>32-o)+t}function h(e,t,n,r,i,o,s){var a=e+(t&r|n&~r)+i+s;return(a<>>32-o)+t}function u(e,t,n,r,i,o,s){var a=e+(t^n^r)+i+s;return(a<>>32-o)+t}function d(e,t,n,r,i,o,s){var a=e+(n^(t|~r))+i+s;return(a<>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5)),ix.exports;var e}var sx,ax={exports:{}};function lx(){return sx||(sx=1,ax.exports=(a=D_(),t=(e=a).lib,n=t.WordArray,r=t.Hasher,i=e.algo,o=[],s=i.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],s=n[2],a=n[3],l=n[4],c=0;c<80;c++){if(c<16)o[c]=0|e[t+c];else{var h=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=h<<1|h>>>31}var u=(r<<5|r>>>27)+l+o[c];u+=c<20?1518500249+(i&s|~i&a):c<40?1859775393+(i^s^a):c<60?(i&s|i&a|s&a)-1894007588:(i^s^a)-899497514,l=a,a=s,s=i<<30|i>>>2,i=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s),a.SHA1)),ax.exports;var e,t,n,r,i,o,s,a}var cx,hx={exports:{}};function ux(){return cx||(cx=1,hx.exports=(e=D_(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(a[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var c=[],h=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],h=n[5],u=n[6],d=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var p=c[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,k=c[f-2],m=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;c[f]=g+c[f-7]+m+c[f-16]}var v=r&i^r&o^i&o,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),L=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&u)+l[f]+c[f];d=u,u=h,h=a,a=s+L|0,s=o,o=i,i=r,r=L+(y+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+h|0,n[6]=n[6]+u|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(h),n.HmacSHA256=o._createHmacHelper(h)}(Math),e.SHA256)),hx.exports;var e}var dx,fx={exports:{}};var px,gx={exports:{}};function kx(){return px||(px=1,gx.exports=(e=D_(),U_(),function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,s=t.algo;function a(){return i.create.apply(i,arguments)}var l=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=a()}();var h=s.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],h=n[5],u=n[6],d=n[7],f=r.high,p=r.low,g=i.high,k=i.low,m=o.high,v=o.low,y=s.high,L=s.low,w=a.high,b=a.low,_=h.high,x=h.low,C=u.high,S=u.low,j=d.high,E=d.low,M=f,T=p,A=g,O=k,P=m,I=v,R=y,B=L,W=w,H=b,z=_,N=x,D=C,F=S,V=j,U=E,$=0;$<80;$++){var Y,X,Z=c[$];if($<16)X=Z.high=0|e[t+2*$],Y=Z.low=0|e[t+2*$+1];else{var G=c[$-15],q=G.high,K=G.low,J=(q>>>1|K<<31)^(q>>>8|K<<24)^q>>>7,Q=(K>>>1|q<<31)^(K>>>8|q<<24)^(K>>>7|q<<25),ee=c[$-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[$-7],se=oe.high,ae=oe.low,le=c[$-16],ce=le.high,he=le.low;X=(X=(X=J+se+((Y=Q+ae)>>>0>>0?1:0))+re+((Y+=ie)>>>0>>0?1:0))+ce+((Y+=he)>>>0>>0?1:0),Z.high=X,Z.low=Y}var ue,de=W&z^~W&D,fe=H&N^~H&F,pe=M&A^M&P^A&P,ge=T&O^T&I^O&I,ke=(M>>>28|T<<4)^(M<<30|T>>>2)^(M<<25|T>>>7),me=(T>>>28|M<<4)^(T<<30|M>>>2)^(T<<25|M>>>7),ve=(W>>>14|H<<18)^(W>>>18|H<<14)^(W<<23|H>>>9),ye=(H>>>14|W<<18)^(H>>>18|W<<14)^(H<<23|W>>>9),Le=l[$],we=Le.high,be=Le.low,_e=V+ve+((ue=U+ye)>>>0>>0?1:0),xe=me+ge;V=D,U=F,D=z,F=N,z=W,N=H,W=R+(_e=(_e=(_e=_e+de+((ue+=fe)>>>0>>0?1:0))+we+((ue+=be)>>>0>>0?1:0))+X+((ue+=Y)>>>0>>0?1:0))+((H=B+ue|0)>>>0>>0?1:0)|0,R=P,B=I,P=A,I=O,A=M,O=T,M=_e+(ke+pe+(xe>>>0>>0?1:0))+((T=ue+xe|0)>>>0>>0?1:0)|0}p=r.low=p+T,r.high=f+M+(p>>>0>>0?1:0),k=i.low=k+O,i.high=g+A+(k>>>0>>0?1:0),v=o.low=v+I,o.high=m+P+(v>>>0>>0?1:0),L=s.low=L+B,s.high=y+R+(L>>>0>>0?1:0),b=a.low=b+H,a.high=w+W+(b>>>0>>0?1:0),x=h.low=x+N,h.high=_+z+(x>>>0>>0?1:0),S=u.low=S+F,u.high=C+D+(S>>>0>>0?1:0),E=d.low=E+U,d.high=j+V+(E>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(h),t.HmacSHA512=n._createHmacHelper(h)}(),e.SHA512)),gx.exports;var e}var mx,vx={exports:{}};var yx,Lx={exports:{}};function wx(){return yx?Lx.exports:(yx=1,Lx.exports=(e=D_(),U_(),function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.x64.Word,a=n.algo,l=[],c=[],h=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var a=0,u=0,d=0;d<7;d++){if(1&i){var f=(1<>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(E=n[i]).high^=s,E.low^=o}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var f=0,p=0,g=0;g<5;g++)f^=(E=n[d+5*g]).high,p^=E.low;var k=u[d];k.high=f,k.low=p}for(d=0;d<5;d++){var m=u[(d+4)%5],v=u[(d+1)%5],y=v.high,L=v.low;for(f=m.high^(y<<1|L>>>31),p=m.low^(L<<1|y>>>31),g=0;g<5;g++)(E=n[d+5*g]).high^=f,E.low^=p}for(var w=1;w<25;w++){var b=(E=n[w]).high,_=E.low,x=l[w];x<32?(f=b<>>32-x,p=_<>>32-x):(f=_<>>64-x,p=b<>>64-x);var C=u[c[w]];C.high=f,C.low=p}var S=u[0],j=n[0];for(S.high=j.high,S.low=j.low,d=0;d<5;d++)for(g=0;g<5;g++){var E=n[w=d+5*g],M=u[w],T=u[(d+1)%5+5*g],A=u[(d+2)%5+5*g];E.high=M.high^~T.high&A.high,E.low=M.low^~T.low&A.low}E=n[0];var O=h[a];E.high^=O.high,E.low^=O.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,l=a/8,c=[],h=0;h>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(d)}return new i.init(c,a)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(d),n.HmacSHA3=o._createHmacHelper(d)}(Math),e.SHA3));var e}var bx,_x={exports:{}};var xx,Cx={exports:{}};function Sx(){return xx||(xx=1,Cx.exports=(e=D_(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),s=this._iKey=t.clone(),a=o.words,l=s.words,c=0;c>>2];e.sigBytes-=t}};r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:f,padding:p}),reset:function(){var e;h.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),k=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},m=r.SerializableCipher=i.extend({cfg:i.extend({format:k}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),s=i.cfg;return g.create({ciphertext:o,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)s=c.create({keySize:t+n,hasher:i}).compute(e,r);else var s=c.create({keySize:t+n}).compute(e,r);var a=o.create(s.words.slice(t),4*n);return s.sigBytes=4*t,g.create({key:s,iv:a,salt:r})}},y=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,m.decrypt.call(this,e,t,i.key,r)}})}()))),Px.exports;var e}var Rx,Bx={exports:{}};var Wx,Hx={exports:{}};var zx,Nx={exports:{}};function Dx(){return zx?Nx.exports:(zx=1,Nx.exports=(e=D_(),Ix(), +/** @preserve + * Counter block mode compatible with Dr Brian Gladman fileenc.c + * derived from CryptoJS.mode.CTR + * Jan Hruby jhruby.web@gmail.com + */ +e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),r(s);var a=s.slice(0);n.encryptBlock(a,0);for(var l=0;l>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],h=l[o];for(n=0;n<24;n++)c[n/6|0]|=t[(a[n]-1+h)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(a[n+24]-1+h)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(n=0;n<16;n++)u[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,s=this._rBlock,a=0,l=0;l<8;l++)a|=c[l][((s^i[l])&h[l])>>>0];this._lBlock=s,this._rBlock=o^a}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,d.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(r.create(t)),this._des2=u.createEncryptor(r.create(n)),this._des3=u.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),e.TripleDES));var e}var cC,hC={exports:{}};var uC,dC={exports:{}};var fC,pC={exports:{}};var gC,kC,mC,vC,yC,LC,wC,bC={exports:{}};function _C(){return gC?bC.exports:(gC=1,bC.exports=(e=D_(),Q_(),ox(),Ax(),Ix(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,r=t>>16&255,i=t>>8&255,o=255&t,s=e.sbox[0][n]+e.sbox[1][r];return s^=e.sbox[2][i],s+=e.sbox[3][o],s}function c(e,t,n){let r,o=t,s=n;for(let a=0;a1;--a)o^=e.pbox[a],s=l(e,o)^s,r=o,o=s,s=r;return r=o,o=s,s=r,s^=e.pbox[1],o^=e.pbox[0],{left:o,right:s}}function u(e,t,n){for(let i=0;i<4;i++){e.sbox[i]=[];for(let t=0;t<256;t++)e.sbox[i][t]=s[i][t]}let r=0;for(let s=0;s=n&&(r=0);let a=0,l=0,h=0;for(let o=0;o>>24)|4278255360&(i<<24|i>>>8)}var o,s,f,L,w,b,_,x,C,S,j,E=this._hash.words,M=u.words,T=d.words,A=a.words,O=l.words,P=c.words,I=h.words;for(b=o=E[0],_=s=E[1],x=f=E[2],C=L=E[3],S=w=E[4],n=0;n<80;n+=1)j=o+e[t+A[n]]|0,j+=n<16?p(s,f,L)+M[0]:n<32?g(s,f,L)+M[1]:n<48?k(s,f,L)+M[2]:n<64?m(s,f,L)+M[3]:v(s,f,L)+M[4],j=(j=y(j|=0,P[n]))+w|0,o=w,w=L,L=y(f,10),f=s,s=j,j=b+e[t+O[n]]|0,j+=n<16?v(_,x,C)+T[0]:n<32?m(_,x,C)+T[1]:n<48?k(_,x,C)+T[2]:n<64?g(_,x,C)+T[3]:p(_,x,C)+T[4],j=(j=y(j|=0,I[n]))+S|0,b=S,S=C,C=y(x,10),x=_,_=j;j=E[1]+f+C|0,E[1]=E[2]+L+S|0,E[2]=E[3]+w+b|0,E[3]=E[4]+o+_|0,E[4]=E[0]+s+x|0,E[0]=j},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function g(e,t,n){return e&t|~e&n}function k(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<>>32-t}n.RIPEMD160=o._createHelper(f),n.HmacRIPEMD160=o._createHmacHelper(f)}(),e.RIPEMD160));var e}(),Sx(),function(){return jx?Ex.exports:(jx=1,Ex.exports=(l=D_(),ux(),Sx(),t=(e=l).lib,n=t.Base,r=t.WordArray,i=e.algo,o=i.SHA256,s=i.HMAC,a=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=s.create(n.hasher,e),o=r.create(),a=r.create([1]),l=o.words,c=a.words,h=n.keySize,u=n.iterations;l.length>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Zx?Gx.exports:(Zx=1,Gx.exports=(e=D_(),Ix(),e.pad.Iso10126={pad:function(t,n){var r=4*n,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return qx?Kx.exports:(qx=1,Kx.exports=(e=D_(),Ix(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return Jx?Qx.exports:(Jx=1,Qx.exports=(e=D_(),Ix(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding));var e}(),function(){return eC?tC.exports:(eC=1,tC.exports=(e=D_(),Ix(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return nC?rC.exports:(nC=1,rC.exports=(r=D_(),Ix(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return iC?oC.exports:(iC=1,oC.exports=(e=D_(),Q_(),ox(),Ax(),Ix(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],o=[],s=[],a=[],l=[],c=[],h=[],u=[],d=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var g=e[n],k=e[g],m=e[k],v=257*e[p]^16843008*p;s[n]=v<<24|v>>>8,a[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,c[n]=v,v=16843009*m^65537*k^257*g^16843008*n,h[p]=v<<24|v>>>8,u[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,f[p]=v,n?(n=g^e[e[e[m^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],s=0;s6&&s%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[s/n|0]<<24),o[s]=o[s-n]^c);for(var a=this._invKeySchedule=[],l=0;l>>24]]^u[i[c>>>16&255]]^d[i[c>>>8&255]]^f[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,l,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,h,u,d,f,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,s,a){for(var l=this._nRounds,c=e[t]^n[0],h=e[t+1]^n[1],u=e[t+2]^n[2],d=e[t+3]^n[3],f=4,p=1;p>>24]^i[h>>>16&255]^o[u>>>8&255]^s[255&d]^n[f++],k=r[h>>>24]^i[u>>>16&255]^o[d>>>8&255]^s[255&c]^n[f++],m=r[u>>>24]^i[d>>>16&255]^o[c>>>8&255]^s[255&h]^n[f++],v=r[d>>>24]^i[c>>>16&255]^o[h>>>8&255]^s[255&u]^n[f++];c=g,h=k,u=m,d=v}g=(a[c>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^n[f++],k=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&c])^n[f++],m=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[c>>>8&255]<<8|a[255&h])^n[f++],v=(a[d>>>24]<<24|a[c>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^n[f++],e[t]=g,e[t+1]=k,e[t+2]=m,e[t+3]=v},keySize:8});t.AES=n._createHelper(g)}(),e.AES));var e}(),lC(),function(){return cC?hC.exports:(cC=1,hC.exports=(e=D_(),Q_(),ox(),Ax(),Ix(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var s=i%n,a=t[s>>>2]>>>24-s%4*8&255;o=(o+r[i]+a)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var s=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=n._createHelper(s)}(),e.RC4));var e}(),function(){return uC?dC.exports:(uC=1,dC.exports=(e=D_(),Q_(),ox(),Ax(),Ix(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],s=[],a=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=c>>>16|4294901760&h,d=h<<16|65535&c;for(i[0]^=c,i[1]^=u,i[2]^=h,i[3]^=d,i[4]^=c,i[5]^=u,i[6]^=h,i[7]^=d,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,l=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(a)}(),e.Rabbit));var e}(),function(){return fC?pC.exports:(fC=1,pC.exports=(e=D_(),Q_(),ox(),Ax(),Ix(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],s=[],a=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=c>>>16|4294901760&h,d=h<<16|65535&c;for(r[0]^=c,r[1]^=u,r[2]^=h,r[3]^=d,r[4]^=c,r[5]^=u,r[6]^=h,r[7]^=d,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,l=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(a)}(),e.RabbitLegacy));var e}(),_C())); +/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */function CC(e){let t=e.length;for(;--t>=0;)e[t]=0}const SC=256,jC=286,EC=30,MC=15,TC=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),AC=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),OC=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),PC=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),IC=new Array(576);CC(IC);const RC=new Array(60);CC(RC);const BC=new Array(512);CC(BC);const WC=new Array(256);CC(WC);const HC=new Array(29);CC(HC);const zC=new Array(EC);function NC(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let DC,FC,VC;function UC(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}CC(zC);const $C=e=>e<256?BC[e]:BC[256+(e>>>7)],YC=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},XC=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<{XC(e,n[2*t],n[2*t+1])},GC=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},qC=(e,t,n)=>{const r=new Array(16);let i,o,s=0;for(i=1;i<=MC;i++)s=s+n[i-1]<<1,r[i]=s;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=GC(r[t]++,t))}},KC=e=>{let t;for(t=0;t{e.bi_valid>8?YC(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},QC=(e,t,n,r)=>{const i=2*t,o=2*n;return e[i]{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i{let r,i,o,s,a=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+a++],r+=(255&e.pending_buf[e.sym_buf+a++])<<8,i=e.pending_buf[e.sym_buf+a++],0===r?ZC(e,i,t):(o=WC[i],ZC(e,o+SC+1,t),s=TC[o],0!==s&&(i-=HC[o],XC(e,i,s)),r--,o=$C(r),ZC(e,o,n),s=AC[o],0!==s&&(r-=zC[o],XC(e,r,s)))}while(a{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let s,a,l,c=-1;for(e.heap_len=0,e.heap_max=573,s=0;s>1;s>=1;s--)eS(e,n,s);l=o;do{s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],eS(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,n[2*l]=n[2*s]+n[2*a],e.depth[l]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,n[2*s+1]=n[2*a+1]=l,e.heap[1]=l++,eS(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,h,u,d,f,p,g=0;for(d=0;d<=MC;d++)e.bl_count[d]=0;for(n[2*e.heap[e.heap_max]+1]=0,c=e.heap_max+1;c<573;c++)h=e.heap[c],d=n[2*n[2*h+1]+1]+1,d>l&&(d=l,g++),n[2*h+1]=d,h>r||(e.bl_count[d]++,f=0,h>=a&&(f=s[h-a]),p=n[2*h],e.opt_len+=p*(d+f),o&&(e.static_len+=p*(i[2*h+1]+f)));if(0!==g){do{for(d=l-1;0===e.bl_count[d];)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[l]--,g-=2}while(g>0);for(d=l;0!==d;d--)for(h=e.bl_count[d];0!==h;)u=e.heap[--c],u>r||(n[2*u+1]!==d&&(e.opt_len+=(d-n[2*u+1])*n[2*u],n[2*u+1]=d),h--)}})(e,t),qC(n,c,e.bl_count)},rS=(e,t,n)=>{let r,i,o=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=t[2*(r+1)+1],++a{let r,i,o=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),r=0;r<=n;r++)if(i=s,s=t[2*(r+1)+1],!(++a{XC(e,0+(r?1:0),3),JC(e),YC(e,n),YC(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var aS={_tr_init:e=>{oS||((()=>{let e,t,n,r,i;const o=new Array(16);for(n=0,r=0;r<28;r++)for(HC[r]=n,e=0;e<1<>=7;r{let i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t{let t;for(rS(e,e.dyn_ltree,e.l_desc.max_code),rS(e,e.dyn_dtree,e.d_desc.max_code),nS(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*PC[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?sS(e,t,n,r):4===e.strategy||o===i?(XC(e,2+(r?1:0),3),tS(e,IC,RC)):(XC(e,4+(r?1:0),3),((e,t,n,r)=>{let i;for(XC(e,t-257,5),XC(e,n-1,5),XC(e,r-4,4),i=0;i(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(WC[n]+SC+1)]++,e.dyn_dtree[2*$C(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{XC(e,2,3),ZC(e,256,IC),(e=>{16===e.bi_valid?(YC(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var lS=(e,t,n,r)=>{let i=65535&e|0,o=e>>>16&65535|0,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do{i=i+t[r++]|0,o=o+i|0}while(--s);i%=65521,o%=65521}return i|o<<16|0};const cS=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var hS=(e,t,n,r)=>{const i=cS,o=r+n;e^=-1;for(let s=r;s>>8^i[255&(e^t[s])];return-1^e},uS={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},dS={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:fS,_tr_stored_block:pS,_tr_flush_block:gS,_tr_tally:kS,_tr_align:mS}=aS,{Z_NO_FLUSH:vS,Z_PARTIAL_FLUSH:yS,Z_FULL_FLUSH:LS,Z_FINISH:wS,Z_BLOCK:bS,Z_OK:_S,Z_STREAM_END:xS,Z_STREAM_ERROR:CS,Z_DATA_ERROR:SS,Z_BUF_ERROR:jS,Z_DEFAULT_COMPRESSION:ES,Z_FILTERED:MS,Z_HUFFMAN_ONLY:TS,Z_RLE:AS,Z_FIXED:OS,Z_DEFAULT_STRATEGY:PS,Z_UNKNOWN:IS,Z_DEFLATED:RS}=dS,BS=258,WS=262,HS=42,zS=113,NS=666,DS=(e,t)=>(e.msg=uS[t],t),FS=e=>2*e-(e>4?9:0),VS=e=>{let t=e.length;for(;--t>=0;)e[t]=0},US=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=i?n-i:0}while(--t);t=i,r=t;do{n=e.prev[--r],e.prev[r]=n>=i?n-i:0}while(--t)};let $S=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},XS=(e,t)=>{gS(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,YS(e.strm)},ZS=(e,t)=>{e.pending_buf[e.pending++]=t},GS=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},qS=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=lS(e.adler,t,i,n):2===e.state.wrap&&(e.adler=hS(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},KS=(e,t)=>{let n,r,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match;const l=e.strstart>e.w_size-WS?e.strstart-(e.w_size-WS):0,c=e.window,h=e.w_mask,u=e.prev,d=e.strstart+BS;let f=c[o+s-1],p=c[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(n=t,c[n+s]===p&&c[n+s-1]===f&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&os){if(e.match_start=t,s=r,r>=a)break;f=c[o+s-1],p=c[o+s]}}}while((t=u[t&h])>l&&0!=--i);return s<=e.lookahead?s:e.lookahead},JS=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-WS)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),US(e),r+=t),0===e.strm.avail_in)break;if(n=qS(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=$S(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=$S(e,e.ins_h,e.window[i+3-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead{let n,r,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,s=0,a=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_outr+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,YS(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(qS(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===s);return a-=e.strm.avail_in,a&&(a>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=a&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_wateri&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(qS(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=o||(r||t===wS)&&t!==vS&&0===e.strm.avail_in&&r<=i)&&(n=r>i?i:r,s=t===wS&&0===e.strm.avail_in&&n===r?1:0,pS(e,e.block_start,n,s),e.block_start+=n,YS(e.strm)),s?3:1)},ej=(e,t)=>{let n,r;for(;;){if(e.lookahead=3&&(e.ins_h=$S(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-WS&&(e.match_length=KS(e,n)),e.match_length>=3)if(r=kS(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=$S(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=$S(e,e.ins_h,e.window[e.strstart+1]);else r=kS(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(XS(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===wS?(XS(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(XS(e,!1),0===e.strm.avail_out)?1:2},tj=(e,t)=>{let n,r,i;for(;;){if(e.lookahead=3&&(e.ins_h=$S(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=kS(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=$S(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(XS(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(r=kS(e,0,e.window[e.strstart-1]),r&&XS(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=kS(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===wS?(XS(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(XS(e,!1),0===e.strm.avail_out)?1:2};function nj(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const rj=[new nj(0,0,0,0,QS),new nj(4,4,8,4,ej),new nj(4,5,16,8,ej),new nj(4,6,32,32,ej),new nj(4,4,16,16,tj),new nj(8,16,32,32,tj),new nj(8,16,128,128,tj),new nj(8,32,128,256,tj),new nj(32,128,258,1024,tj),new nj(32,258,258,4096,tj)];function ij(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=RS,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),VS(this.dyn_ltree),VS(this.dyn_dtree),VS(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),VS(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),VS(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const oj=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==HS&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==zS&&t.status!==NS?1:0},sj=e=>{if(oj(e))return DS(e,CS);e.total_in=e.total_out=0,e.data_type=IS;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?HS:zS,e.adler=2===t.wrap?0:1,t.last_flush=-2,fS(t),_S},aj=e=>{const t=sj(e);var n;return t===_S&&((n=e.state).window_size=2*n.w_size,VS(n.head),n.max_lazy_match=rj[n.level].max_lazy,n.good_match=rj[n.level].good_length,n.nice_match=rj[n.level].nice_length,n.max_chain_length=rj[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},lj=(e,t,n,r,i,o)=>{if(!e)return CS;let s=1;if(t===ES&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>9||n!==RS||r<8||r>15||t<0||t>9||o<0||o>OS||8===r&&1!==s)return DS(e,CS);8===r&&(r=9);const a=new ij;return e.state=a,a.strm=e,a.status=HS,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<lj(e,t,RS,15,8,PS),deflateInit2:lj,deflateReset:aj,deflateResetKeep:sj,deflateSetHeader:(e,t)=>oj(e)||2!==e.state.wrap?CS:(e.state.gzhead=t,_S),deflate:(e,t)=>{if(oj(e)||t>bS||t<0)return e?DS(e,CS):CS;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===NS&&t!==wS)return DS(e,0===e.avail_out?jS:CS);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(YS(e),0===e.avail_out)return n.last_flush=-1,_S}else if(0===e.avail_in&&FS(t)<=FS(r)&&t!==wS)return DS(e,jS);if(n.status===NS&&0!==e.avail_in)return DS(e,jS);if(n.status===HS&&0===n.wrap&&(n.status=zS),n.status===HS){let t=RS+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=TS||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,GS(n,t),0!==n.strstart&&(GS(n,e.adler>>>16),GS(n,65535&e.adler)),e.adler=1,n.status=zS,YS(e),0!==n.pending)return n.last_flush=-1,_S}if(57===n.status)if(e.adler=0,ZS(n,31),ZS(n,139),ZS(n,8),n.gzhead)ZS(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),ZS(n,255&n.gzhead.time),ZS(n,n.gzhead.time>>8&255),ZS(n,n.gzhead.time>>16&255),ZS(n,n.gzhead.time>>24&255),ZS(n,9===n.level?2:n.strategy>=TS||n.level<2?4:0),ZS(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(ZS(n,255&n.gzhead.extra.length),ZS(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=hS(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(ZS(n,0),ZS(n,0),ZS(n,0),ZS(n,0),ZS(n,0),ZS(n,9===n.level?2:n.strategy>=TS||n.level<2?4:0),ZS(n,3),n.status=zS,YS(e),0!==n.pending)return n.last_flush=-1,_S;if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=hS(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,YS(e),0!==n.pending)return n.last_flush=-1,_S;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=hS(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=hS(e.adler,n.pending_buf,n.pending-r,r)),YS(e),0!==n.pending)return n.last_flush=-1,_S;r=0}t=n.gzindexr&&(e.adler=hS(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=hS(e.adler,n.pending_buf,n.pending-r,r)),YS(e),0!==n.pending)return n.last_flush=-1,_S;r=0}t=n.gzindexr&&(e.adler=hS(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(YS(e),0!==n.pending))return n.last_flush=-1,_S;ZS(n,255&e.adler),ZS(n,e.adler>>8&255),e.adler=0}if(n.status=zS,YS(e),0!==n.pending)return n.last_flush=-1,_S}if(0!==e.avail_in||0!==n.lookahead||t!==vS&&n.status!==NS){let r=0===n.level?QS(n,t):n.strategy===TS?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(JS(e),0===e.lookahead)){if(t===vS)return 1;break}if(e.match_length=0,n=kS(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(XS(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===wS?(XS(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(XS(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===AS?((e,t)=>{let n,r,i,o;const s=e.window;for(;;){if(e.lookahead<=BS){if(JS(e),e.lookahead<=BS&&t===vS)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){o=e.strstart+BS;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=kS(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=kS(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(XS(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===wS?(XS(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(XS(e,!1),0===e.strm.avail_out)?1:2})(n,t):rj[n.level].func(n,t);if(3!==r&&4!==r||(n.status=NS),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),_S;if(2===r&&(t===yS?mS(n):t!==bS&&(pS(n,0,0,!1),t===LS&&(VS(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),YS(e),0===e.avail_out))return n.last_flush=-1,_S}return t!==wS?_S:n.wrap<=0?xS:(2===n.wrap?(ZS(n,255&e.adler),ZS(n,e.adler>>8&255),ZS(n,e.adler>>16&255),ZS(n,e.adler>>24&255),ZS(n,255&e.total_in),ZS(n,e.total_in>>8&255),ZS(n,e.total_in>>16&255),ZS(n,e.total_in>>24&255)):(GS(n,e.adler>>>16),GS(n,65535&e.adler)),YS(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?_S:xS)},deflateEnd:e=>{if(oj(e))return CS;const t=e.state.status;return e.state=null,t===zS?DS(e,SS):_S},deflateSetDictionary:(e,t)=>{let n=t.length;if(oj(e))return CS;const r=e.state,i=r.wrap;if(2===i||1===i&&r.status!==HS||r.lookahead)return CS;if(1===i&&(e.adler=lS(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(VS(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const o=e.avail_in,s=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,JS(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do{r.ins_h=$S(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++}while(--t);r.strstart=e,r.lookahead=2,JS(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=a,e.avail_in=o,r.wrap=i,_S},deflateInfo:"pako deflate (from Nodeca project)"};const hj=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var uj={assign:function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)hj(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let r=0,i=e.length;r=252?6:UM>=248?5:UM>=240?4:UM>=224?3:UM>=192?2:1;fj[254]=fj[254]=1;var pj={string2buf:e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,i,o,s=e.length,a=0;for(i=0;i>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},buf2string:(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let r,i;const o=new Array(2*n);for(i=0,r=0;r4)o[i++]=65533,r+=s-1;else{for(t&=2===s?31:3===s?15:7;s>1&&r1?o[i++]=65533:t<65536?o[i++]=t:(t-=65536,o[i++]=55296|t>>10&1023,o[i++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&dj)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+fj[e[n]]>t?n:t}};var gj=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const kj=Object.prototype.toString,{Z_NO_FLUSH:mj,Z_SYNC_FLUSH:vj,Z_FULL_FLUSH:yj,Z_FINISH:Lj,Z_OK:wj,Z_STREAM_END:bj,Z_DEFAULT_COMPRESSION:_j,Z_DEFAULT_STRATEGY:xj,Z_DEFLATED:Cj}=dS;function Sj(e){this.options=uj.assign({level:_j,method:Cj,chunkSize:16384,windowBits:15,memLevel:8,strategy:xj},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new gj,this.strm.avail_out=0;let n=cj.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==wj)throw new Error(uS[n]);if(t.header&&cj.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?pj.string2buf(t.dictionary):"[object ArrayBuffer]"===kj.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=cj.deflateSetDictionary(this.strm,e),n!==wj)throw new Error(uS[n]);this._dict_set=!0}}function jj(e,t){const n=new Sj(t);if(n.push(e,!0),n.err)throw n.msg||uS[n.err];return n.result}Sj.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=t===~~t?t:!0===t?Lj:mj,"string"==typeof e?n.input=pj.string2buf(e):"[object ArrayBuffer]"===kj.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===vj||o===yj)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(i=cj.deflate(n,o),i===bj)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=cj.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===wj;if(0!==n.avail_out){if(o>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},Sj.prototype.onData=function(e){this.chunks.push(e)},Sj.prototype.onEnd=function(e){e===wj&&(this.result=uj.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Ej={Deflate:Sj,deflate:jj,deflateRaw:function(e,t){return(t=t||{}).raw=!0,jj(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,jj(e,t)},constants:dS};const Mj=16209;var Tj=function(e,t){let n,r,i,o,s,a,l,c,h,u,d,f,p,g,k,m,v,y,L,w,b,_,x,C;const S=e.state;n=e.next_in,x=e.input,r=n+(e.avail_in-5),i=e.next_out,C=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),a=S.dmax,l=S.wsize,c=S.whave,h=S.wnext,u=S.window,d=S.hold,f=S.bits,p=S.lencode,g=S.distcode,k=(1<>>24,d>>>=y,f-=y,y=v>>>16&255,0===y)C[i++]=65535&v;else{if(!(16&y)){if(0==(64&y)){v=p[(65535&v)+(d&(1<>>=y,f-=y),f<15&&(d+=x[n++]<>>24,d>>>=y,f-=y,y=v>>>16&255,!(16&y)){if(0==(64&y)){v=g[(65535&v)+(d&(1<a){e.msg="invalid distance too far back",S.mode=Mj;break e}if(d>>>=y,f-=y,y=i-o,w>y){if(y=w-y,y>c&&S.sane){e.msg="invalid distance too far back",S.mode=Mj;break e}if(b=0,_=u,0===h){if(b+=l-y,y2;)C[i++]=_[b++],C[i++]=_[b++],C[i++]=_[b++],L-=3;L&&(C[i++]=_[b++],L>1&&(C[i++]=_[b++]))}else{b=i-w;do{C[i++]=C[b++],C[i++]=C[b++],C[i++]=C[b++],L-=3}while(L>2);L&&(C[i++]=C[b++],L>1&&(C[i++]=C[b++]))}break}}break}}while(n>3,n-=L,f-=L<<3,d&=(1<{const l=a.bits;let c,h,u,d,f,p,g=0,k=0,m=0,v=0,y=0,L=0,w=0,b=0,_=0,x=0,C=null;const S=new Uint16Array(16),j=new Uint16Array(16);let E,M,T,A=null;for(g=0;g<=Aj;g++)S[g]=0;for(k=0;k=1&&0===S[v];v--);if(y>v&&(y=v),0===v)return i[o++]=20971520,i[o++]=20971520,a.bits=1,0;for(m=1;m0&&(0===e||1!==v))return-1;for(j[1]=0,g=1;g852||2===e&&_>592)return 1;for(;;){E=g-w,s[k]+1=p?(M=A[s[k]-p],T=C[s[k]-p]):(M=96,T=0),c=1<>w)+h]=E<<24|M<<16|T|0}while(0!==h);for(c=1<>=1;if(0!==c?(x&=c-1,x+=c):x=0,k++,0==--S[g]){if(g===v)break;g=t[n+s[k]]}if(g>y&&(x&d)!==u){for(0===w&&(w=y),f+=m,L=g-w,b=1<852||2===e&&_>592)return 1;u=x&d,i[u]=y<<24|L<<16|f-o|0}}return 0!==x&&(i[f+x]=g-w<<24|64<<16|0),a.bits=y,0};const{Z_FINISH:Wj,Z_BLOCK:Hj,Z_TREES:zj,Z_OK:Nj,Z_STREAM_END:Dj,Z_NEED_DICT:Fj,Z_STREAM_ERROR:Vj,Z_DATA_ERROR:Uj,Z_MEM_ERROR:$j,Z_BUF_ERROR:Yj,Z_DEFLATED:Xj}=dS,Zj=16180,Gj=16190,qj=16191,Kj=16192,Jj=16194,Qj=16199,eE=16200,tE=16206,nE=16209,rE=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function iE(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const oE=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode16211?1:0},sE=e=>{if(oE(e))return Vj;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Zj,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Nj},aE=e=>{if(oE(e))return Vj;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,sE(e)},lE=(e,t)=>{let n;if(oE(e))return Vj;const r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Vj:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,aE(e))},cE=(e,t)=>{if(!e)return Vj;const n=new iE;e.state=n,n.strm=e,n.window=null,n.mode=Zj;const r=lE(e,t);return r!==Nj&&(e.state=null),r};let hE,uE,dE=!0;const fE=e=>{if(dE){hE=new Int32Array(512),uE=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Bj(1,e.lens,0,288,hE,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Bj(2,e.lens,0,32,uE,0,e.work,{bits:5}),dE=!1}e.lencode=hE,e.lenbits=9,e.distcode=uE,e.distbits=5},pE=(e,t,n,r)=>{let i;const o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),(r-=i)?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whavecE(e,15),inflateInit2:cE,inflate:(e,t)=>{let n,r,i,o,s,a,l,c,h,u,d,f,p,g,k,m,v,y,L,w,b,_,x=0;const C=new Uint8Array(4);let S,j;const E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(oE(e)||!e.output||!e.input&&0!==e.avail_in)return Vj;n=e.state,n.mode===qj&&(n.mode=Kj),s=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,c=n.hold,h=n.bits,u=a,d=l,_=Nj;e:for(;;)switch(n.mode){case Zj:if(0===n.wrap){n.mode=Kj;break}for(;h<16;){if(0===a)break e;a--,c+=r[o++]<>>8&255,n.check=hS(n.check,C,2,0),c=0,h=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=nE;break}if((15&c)!==Xj){e.msg="unknown compression method",n.mode=nE;break}if(c>>>=4,h-=4,b=8+(15&c),0===n.wbits&&(n.wbits=b),b>15||b>n.wbits){e.msg="invalid window size",n.mode=nE;break}n.dmax=1<>8&1),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,n.check=hS(n.check,C,2,0)),c=0,h=0,n.mode=16182;case 16182:for(;h<32;){if(0===a)break e;a--,c+=r[o++]<>>8&255,C[2]=c>>>16&255,C[3]=c>>>24&255,n.check=hS(n.check,C,4,0)),c=0,h=0,n.mode=16183;case 16183:for(;h<16;){if(0===a)break e;a--,c+=r[o++]<>8),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,n.check=hS(n.check,C,2,0)),c=0,h=0,n.mode=16184;case 16184:if(1024&n.flags){for(;h<16;){if(0===a)break e;a--,c+=r[o++]<>>8&255,n.check=hS(n.check,C,2,0)),c=0,h=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(f=n.length,f>a&&(f=a),f&&(n.head&&(b=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+f),b)),512&n.flags&&4&n.wrap&&(n.check=hS(n.check,r,f,o)),a-=f,o+=f,n.length-=f),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===a)break e;f=0;do{b=r[o+f++],n.head&&b&&n.length<65536&&(n.head.name+=String.fromCharCode(b))}while(b&&f>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=qj;break;case 16189:for(;h<32;){if(0===a)break e;a--,c+=r[o++]<>>=7&h,h-=7&h,n.mode=tE;break}for(;h<3;){if(0===a)break e;a--,c+=r[o++]<>>=1,h-=1,3&c){case 0:n.mode=16193;break;case 1:if(fE(n),n.mode=Qj,t===zj){c>>>=2,h-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=nE}c>>>=2,h-=2;break;case 16193:for(c>>>=7&h,h-=7&h;h<32;){if(0===a)break e;a--,c+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=nE;break}if(n.length=65535&c,c=0,h=0,n.mode=Jj,t===zj)break e;case Jj:n.mode=16195;case 16195:if(f=n.length,f){if(f>a&&(f=a),f>l&&(f=l),0===f)break e;i.set(r.subarray(o,o+f),s),a-=f,o+=f,l-=f,s+=f,n.length-=f;break}n.mode=qj;break;case 16196:for(;h<14;){if(0===a)break e;a--,c+=r[o++]<>>=5,h-=5,n.ndist=1+(31&c),c>>>=5,h-=5,n.ncode=4+(15&c),c>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=nE;break}n.have=0,n.mode=16197;case 16197:for(;n.have>>=3,h-=3}for(;n.have<19;)n.lens[E[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},_=Bj(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,_){e.msg="invalid code lengths set",n.mode=nE;break}n.have=0,n.mode=16198;case 16198:for(;n.have>>24,m=x>>>16&255,v=65535&x,!(k<=h);){if(0===a)break e;a--,c+=r[o++]<>>=k,h-=k,n.lens[n.have++]=v;else{if(16===v){for(j=k+2;h>>=k,h-=k,0===n.have){e.msg="invalid bit length repeat",n.mode=nE;break}b=n.lens[n.have-1],f=3+(3&c),c>>>=2,h-=2}else if(17===v){for(j=k+3;h>>=k,h-=k,b=0,f=3+(7&c),c>>>=3,h-=3}else{for(j=k+7;h>>=k,h-=k,b=0,f=11+(127&c),c>>>=7,h-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=nE;break}for(;f--;)n.lens[n.have++]=b}}if(n.mode===nE)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=nE;break}if(n.lenbits=9,S={bits:n.lenbits},_=Bj(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,_){e.msg="invalid literal/lengths set",n.mode=nE;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},_=Bj(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,_){e.msg="invalid distances set",n.mode=nE;break}if(n.mode=Qj,t===zj)break e;case Qj:n.mode=eE;case eE:if(a>=6&&l>=258){e.next_out=s,e.avail_out=l,e.next_in=o,e.avail_in=a,n.hold=c,n.bits=h,Tj(e,d),s=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,c=n.hold,h=n.bits,n.mode===qj&&(n.back=-1);break}for(n.back=0;x=n.lencode[c&(1<>>24,m=x>>>16&255,v=65535&x,!(k<=h);){if(0===a)break e;a--,c+=r[o++]<>y)],k=x>>>24,m=x>>>16&255,v=65535&x,!(y+k<=h);){if(0===a)break e;a--,c+=r[o++]<>>=y,h-=y,n.back+=y}if(c>>>=k,h-=k,n.back+=k,n.length=v,0===m){n.mode=16205;break}if(32&m){n.back=-1,n.mode=qj;break}if(64&m){e.msg="invalid literal/length code",n.mode=nE;break}n.extra=15&m,n.mode=16201;case 16201:if(n.extra){for(j=n.extra;h>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;x=n.distcode[c&(1<>>24,m=x>>>16&255,v=65535&x,!(k<=h);){if(0===a)break e;a--,c+=r[o++]<>y)],k=x>>>24,m=x>>>16&255,v=65535&x,!(y+k<=h);){if(0===a)break e;a--,c+=r[o++]<>>=y,h-=y,n.back+=y}if(c>>>=k,h-=k,n.back+=k,64&m){e.msg="invalid distance code",n.mode=nE;break}n.offset=v,n.extra=15&m,n.mode=16203;case 16203:if(n.extra){for(j=n.extra;h>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=nE;break}n.mode=16204;case 16204:if(0===l)break e;if(f=d-l,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=nE;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=i,p=s-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[s++]=g[p++]}while(--f);0===n.length&&(n.mode=eE);break;case 16205:if(0===l)break e;i[s++]=n.length,l--,n.mode=eE;break;case tE:if(n.wrap){for(;h<32;){if(0===a)break e;a--,c|=r[o++]<{if(oE(e))return Vj;let t=e.state;return t.window&&(t.window=null),e.state=null,Nj},inflateGetHeader:(e,t)=>{if(oE(e))return Vj;const n=e.state;return 0==(2&n.wrap)?Vj:(n.head=t,t.done=!1,Nj)},inflateSetDictionary:(e,t)=>{const n=t.length;let r,i,o;return oE(e)?Vj:(r=e.state,0!==r.wrap&&r.mode!==Gj?Vj:r.mode===Gj&&(i=1,i=lS(i,t,n,0),i!==r.check)?Uj:(o=pE(e,t,n,n),o?(r.mode=16210,$j):(r.havedict=1,Nj)))},inflateInfo:"pako inflate (from Nodeca project)"};var kE=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const mE=Object.prototype.toString,{Z_NO_FLUSH:vE,Z_FINISH:yE,Z_OK:LE,Z_STREAM_END:wE,Z_NEED_DICT:bE,Z_STREAM_ERROR:_E,Z_DATA_ERROR:xE,Z_MEM_ERROR:CE}=dS;function SE(e){this.options=uj.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new gj,this.strm.avail_out=0;let n=gE.inflateInit2(this.strm,t.windowBits);if(n!==LE)throw new Error(uS[n]);if(this.header=new kE,gE.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=pj.string2buf(t.dictionary):"[object ArrayBuffer]"===mE.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=gE.inflateSetDictionary(this.strm,t.dictionary),n!==LE)))throw new Error(uS[n])}function jE(e,t){const n=new SE(t);if(n.push(e),n.err)throw n.msg||uS[n.err];return n.result}SE.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let o,s,a;if(this.ended)return!1;for(s=t===~~t?t:!0===t?yE:vE,"[object ArrayBuffer]"===mE.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=gE.inflate(n,s),o===bE&&i&&(o=gE.inflateSetDictionary(n,i),o===LE?o=gE.inflate(n,s):o===xE&&(o=bE));n.avail_in>0&&o===wE&&n.state.wrap>0&&0!==e[n.next_in];)gE.inflateReset(n),o=gE.inflate(n,s);switch(o){case _E:case xE:case bE:case CE:return this.onEnd(o),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(0===n.avail_out||o===wE))if("string"===this.options.to){let e=pj.utf8border(n.output,n.next_out),t=n.next_out-e,i=pj.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(o!==LE||0!==a){if(o===wE)return o=gE.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},SE.prototype.onData=function(e){this.chunks.push(e)},SE.prototype.onEnd=function(e){e===LE&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=uj.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var EE={Inflate:SE,inflate:jE,inflateRaw:function(e,t){return(t=t||{}).raw=!0,jE(e,t)},ungzip:jE,constants:dS};const{Deflate:ME,deflate:TE,deflateRaw:AE,gzip:OE}=Ej,{Inflate:PE,inflate:IE,inflateRaw:RE,ungzip:BE}=EE;var WE={Deflate:ME,deflate:TE,deflateRaw:AE,gzip:OE,Inflate:PE,inflate:IE,inflateRaw:RE,ungzip:BE,constants:dS};const HE="yft-design",zE=e=>{let t=atob(e);const n=t.split("").map((function(e){return e.charCodeAt(0)})),r=new Uint8Array(n),i=WE.inflate(r);return t=new TextDecoder("utf-8").decode(i),decodeURIComponent(t)},NE=e=>new Promise(((t,n)=>{const r=document.createElement("button"),i=new B_(r,{text:()=>e,action:()=>"copy",container:document.body});i.on("success",(e=>{i.destroy(),t(e)})),i.on("error",(e=>{i.destroy(),n(e)})),document.body.appendChild(r),r.click(),document.body.removeChild(r)})),DE=e=>{let t;try{t=JSON.parse((n=e,xC.AES.decrypt(n,HE).toString(xC.enc.Utf8)))}catch(FM){t=e}var n;return t};var FE=(e=>(e.C="C",e.V="V",e.X="X",e.Z="Z",e.Y="Y",e.A="A",e.G="G",e.L="L",e.F="F",e.D="D",e.B="B",e.P="P",e.R="R",e.MINUS="-",e.EQUAL="=",e.DELETE="DELETE",e.UP="ARROWUP",e.DOWN="ARROWDOWN",e.LEFT="ARROWLEFT",e.RIGHT="ARROWRIGHT",e.ENTER="ENTER",e.SPACE=" ",e.TAB="TAB",e.BACKSPACE="BACKSPACE",e.ESC="ESCAPE",e.PAGEUP="PAGEUP",e.PAGEDOWN="PAGEDOWN",e.F5="F5",e))(FE||{});const VE=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"},{label:"打印",value:"Ctrl + P"},{label:"关闭",value:"ESC"}]},{type:"页面预览",children:[{label:"从第一页预览",value:"F5"},{label:"从当前页预览",value:"Shift + F5"},{label:"切换上一页",value:"↑ / ← / PgUp"},{label:"切换下一页",value:"↓ / → / PgDown"},{label:"切换下一页",value:"Enter / Space"},{label:"退出预览",value:"ESC"}]},{type:"页面编辑",children:[{label:"新建页面",value:"Enter"},{label:"移动画布",value:"Space + 鼠标拖拽"},{label:"缩放画布",value:"Ctrl + 鼠标滚轮"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"适应屏幕",value:"Ctrl + 0"},{label:"上一页(未选中元素)",value:"↑ / ←"},{label:"下一页(未选中元素)",value:"↓ / →"},{label:"上一页",value:"鼠标上滚 / PgUp"},{label:"下一页",value:"鼠标下滚 / PgDown"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"删除线",value:"Ctrl + D"}]}],UE=e=>{const t={},n={};for(const r of e){const e=r.type===is.GROUP?r.id:"";e&&!t[e]&&(t[e]=$o(10)),n[r.id]=$o(10)}return{groupIdMap:t,elIdMap:n}},$E=()=>{Ga();const e=sl(),{currentTemplate:t}=jt(e);return{addElementsFromData:n=>{const{groupIdMap:r,elIdMap:i}=UE(n),o=t.value.objects.map((e=>e.id));for(const e of n){const t=o.includes(e.id);e.id=i[e.id],t&&e.left&&e.top&&(e.left=e.left+10,e.top=e.top+10),e.type===is.GROUP&&(e.id=r[e.id])}e.addElement(n)},addTemplatesFromData:t=>{const n=(e=>{const t={};for(const n of e)t[n.id]=$o(10);return t})(t),r=t.map((e=>{const{groupIdMap:t,elIdMap:r}=UE(e.objects);for(const n of e.objects)n.id=r[n.id];return c(l({},e),{id:n[e.id]})}));e.addTemplate(r)}}},YE=()=>{const e=sl(),t=Ga(),{templates:n,templateIndex:r,currentTemplate:i}=jt(e),{selectedTemplatesIndex:o}=jt(t),s=E((()=>[...o.value,r.value])),a=E((()=>n.value.filter(((e,t)=>s.value.includes(t))))),l=E((()=>a.value.map((e=>e.id)))),{pasteTextClipboardData:c}=(()=>{const{createTextElement:e}=I_(),{addElementsFromData:t,addTemplatesFromData:n}=$E();return{pasteTextClipboardData:(r,i)=>{const o=(null==i?void 0:i.onlySlide)||!1,s=(null==i?void 0:i.onlyElements)||!1,a=DE(r);if("object"==typeof a){const{type:e,data:r}=a;"elements"!==e||o?"templates"!==e||s||n(r):t(r)}else s||o||e(36)}}})(),h=()=>({id:$o(10),version:"5.3.0",zoom:i.value.zoom,width:i.value.width,height:i.value.height,clip:i.value.clip,objects:i.value.objects.filter((e=>e.id===Ao)),workSpace:{fillType:0,left:0,top:0,angle:0,scaleX:1,scaleY:1},background:"rgba(255,255,255,0)"}),u=()=>d(void 0,null,(function*(){e.setTemplateIndex(0),e.setTemplates([h()]),yield e.renderTemplate()})),f=()=>{const e=(n=JSON.stringify({type:"slides",data:a.value}),xC.AES.encrypt(n,HE).toString());var n;NE(e).then((()=>{t.setThumbnailsFocus(!0)}))},p=(r=l.value)=>{n.value.length===r.length?u():e.deleteTemplate(r),t.updateSelectedTemplatesIndex([])};return{resetTemplate:u,updateTemplateIndex:t=>d(void 0,null,(function*(){t===FE.UP&&r.value>0?e.setTemplateIndex(r.value-1):t===FE.DOWN&&r.value{new Promise(((e,t)=>{var n;(null==(n=navigator.clipboard)?void 0:n.readText)?navigator.clipboard.readText().then((n=>(n||t("剪贴板为空或者不包含文本"),e(n)))):t("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")})).then((e=>{c(e,{onlySlide:!0})})).catch((e=>Fe({message:e,type:"warning"})))},createTemplate:()=>d(void 0,null,(function*(){yield e.addTemplate(h()),e.setTemplateIndex(r.value),yield e.renderTemplate()})),deleteTemplate:p,cutTemplate:()=>{const e=[...l.value];f(),p(e)},addTemplate:t=>d(void 0,null,(function*(){yield e.addTemplate(t),e.setTemplateIndex(r.value),yield e.renderTemplate()})),sortTemplates:(t,r)=>{if(r===t)return;const i=JSON.parse(JSON.stringify(n.value)),o=i[r];i.splice(r,1),i.splice(t,0,o),e.setTemplates(i),e.setTemplateIndex(t),e.renderElement()}}},XE=G("div",{class:"el-upload__text"},[ie(" 拖拽文件到这里 或者 "),G("em",null,"选择文件上传")],-1),ZE=G("div",{class:"el-upload__tip"}," 支持 PSD / PDF / SVG / CDR 以及 图片 等格式 ",-1),GE=I({__name:"index",props:{visible:{type:Boolean,required:!0}},emits:["close"],setup(e,{emit:t}){const n=sl(),{setCanvasTransform:r}=Ja(),{createImageElement:i,createVideoElement:o}=I_(),{addTemplate:s}=YE(),a=p(!1),l=p(!1),c=p(".pdf,.psd,.cdr,.ai,.svg,.jpg,.jpeg,.png,.webp,.json,.mp4"),h=p(),u=e,f=t;k((()=>u.visible),(e=>{var t;a.value=e,e&&(null==(t=h.value)||t.clearFiles())}));const g=()=>{f("close")},m=e=>d(this,null,(function*(){const t=yield O_(e),n=t.options,r=[];t.objects.slice(0,1e3).forEach((e=>r.push(e.toObject(No)))),Do.width=n.width,Do.height=n.height;return{id:$o(10),version:"6.12",zoom:1,width:n.width,height:n.height,clip:2,objects:[Do,...r],workSpace:{fillType:0,left:0,top:0,angle:0,scaleX:1,scaleY:1}}})),v=e=>d(this,null,(function*(){const t=e.file.name.split(".").pop();if(!c.value.split(",").includes(`.${t}`))return;if("svg"===t){const t=yield ma(e.file),i=yield m(t);yield n.addTemplate(i),r(),f("close")}if("json"===t){const t=yield ma(e.file),n=JSON.parse(t);s(n),f("close")}if(["jpg","jpeg","png","webp"].includes(t)){const t=yield ka(e.file);i(t),f("close")}if(["mp4"].includes(t)){const t=URL.createObjectURL(e.file);o(t),f("close")}l.value=!0;const a=yield k_(e.file,t);if(l.value=!1,a&&200===a.data.code){const e=a.data.data;if(!e)return;if(["pdf","ai"].includes(t)){const t=[],i=e;for(let e=0;e{h.value.clearFiles();const t=e[0];t.uid=Xe(),h.value.handleStart(t)};return(e,t)=>{const n=Ze,r=Ge,i=$e,o=qe;return D(),F(i,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),title:"导入文件",width:"35%",class:"upload-dialog","before-close":g},{default:V((()=>[re((D(),F(r,{class:"upload-demo",ref_key:"uploadRef",ref:h,"on-exceed":y,drag:"",action:"http","http-request":v,limit:1,accept:c.value},{tip:V((()=>[ZE])),default:V((()=>[z(n,{size:50},{default:V((()=>[z(M(Ye))])),_:1}),XE])),_:1},8,["accept"])),[[o,l.value]])])),_:1},8,["modelValue"])}}}),qE=(e,t)=>{const n=new Blob([e],{type:"image/svg+xml"}),r=URL.createObjectURL(n),i=document.createElement("a");i.style.display="none",i.download=t,i.href=r,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)},KE=(e,t)=>{const n=document.createElement("a");n.style.display="none",n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(e)};const JE={class:"el-upload__text"},QE={class:"el-upload__tip"},eM={class:"content"},tM=["src","alt"],nM=["src","alt"],rM={class:"dialog-footer"},iM=Tu(I({__name:"index",props:{visible:{type:Boolean,required:!0},imageId:{type:String,required:!1},image:{type:String,required:!1}},emits:["close"],setup(e,{emit:t}){const{t:n}=Mu();sl(),Ja(),I_(),YE();const r=m({dialogVisible:!1,fileAccept:".jpg,.jpeg,.png,.webp",show:!1,filename:"",originImage:"",resultImage:"",offsetWidth:0,percent:0,progress:0,progressText:"",toolModel:!0,loading:!1}),i=p(!1),o=p(ts[0].key),s=p(),a=e,l=t;k((()=>a.visible),(e=>{var t;r.dialogVisible=e,e&&(null==(t=s.value)||t.clearFiles(),u(a.image))}));const c=()=>{l("close")},h=e=>d(this,null,(function*(){r.filename=e.file.name;const t=r.filename.split(".").pop();if(!r.fileAccept.split(",").includes(`.${t}`))return;r.originImage=yield ka(e.file);const n=(yield function(e,t){const n=new FormData;return n.append("image",e),g_({url:"/api/design/matting/file",method:"post",data:n,headers:{"Content-Type":"multipart/form-data"}})}(e.file)).data;yield ga(r.originImage),200===n.code&&(r.resultImage=n.resultImage,requestAnimationFrame(y))})),u=e=>d(this,null,(function*(){if(!e)return;r.originImage=e;const t=yield function(e){return g_({url:"/api/matting/url",method:"post",data:{image:e}})}(e),n=t.data;yield ga(r.originImage),200===n.code&&(r.resultImage=n.resultImage,requestAnimationFrame(y))})),f=()=>d(this,null,(function*(){const[e]=Xa(),t=e.getActiveObject();t&&(yield t.setSrc(r.resultImage),e.renderAll(),l("close"))})),g=e=>{s.value.clearFiles();const t=e[0];t.uid=Xe(),s.value.handleStart(t)},v=()=>{URL.revokeObjectURL(r.originImage),r.originImage="",r.resultImage="",r.percent=0,r.offsetWidth=0},y=()=>{r.percent+=1,i.value=!0,r.percent<100?requestAnimationFrame(y):i.value=!1},L=()=>{},w=()=>{r.resultImage&&KE(r.resultImage,`yft-design-${Date.now()}-matting-${r.filename}`)},b=e=>{!i.value&&(r.percent=e.offsetX/e.target.width*100)};return(e,t)=>{const i=Ke,l=Je,u=Qe,d=et,p=Ze,k=Ge,m=tt,y=$e,_=qe;return D(),F(y,{modelValue:r.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>r.dialogVisible=e),title:M(n)("message.AICutoutImage"),width:"35%",class:"matting-dialog","before-close":c,"close-on-click-modal":!1},{footer:V((()=>[G("div",rM,[re(z(m,{type:"danger",onClick:v},{default:V((()=>[ie(se(M(n)("message.clear")),1)])),_:1},512),[[oe,r.originImage&&r.toolModel]]),re(z(m,{type:"primary",onClick:L},{default:V((()=>[ie(se(M(n)("message.edit")),1)])),_:1},512),[[oe,r.resultImage]]),re(z(m,{type:"success",onClick:w},{default:V((()=>[ie(se(M(n)("message.download")),1)])),_:1},512),[[oe,r.resultImage&&r.toolModel]]),re((D(),F(m,{type:"primary"},{default:V((()=>[ie(se(r.loading?M(n)("message.uploading"):M(n)("message.completeImageCutout")),1)])),_:1})),[[oe,r.resultImage&&!r.toolModel],[_,r.loading]]),re((D(),F(m,{type:"primary",onClick:f},{default:V((()=>[ie(" 替换 ")])),_:1})),[[oe,r.resultImage&&a.image],[_,r.loading]])])])),default:V((()=>[z(d,{class:"model-row"},{default:V((()=>[z(i,{span:2,class:"model-tip"},{default:V((()=>[ie(se(M(n)("message.model")),1)])),_:1}),z(i,{span:4},{default:V((()=>[z(u,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e)},{default:V((()=>[(D(!0),X(H,null,ee(M(ts),(e=>(D(),F(l,{key:e.key,value:e.id,label:e.name},null,8,["value","label"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1}),r.originImage?te("",!0):re((D(),F(k,{key:0,class:"upload-demo",ref_key:"uploadRef",ref:s,"on-exceed":g,drag:"",action:"http","http-request":h,limit:1,accept:r.fileAccept},{tip:V((()=>[G("div",QE,se(M(n)("message.imageLimit2MTips")),1)])),default:V((()=>[z(p,{size:50},{default:V((()=>[z(M(Ye))])),_:1}),G("div",JE,[ie(se(M(n)("message.dragAndDropFiles")),1),G("em",null,se(M(n)("message.selectFileUpload")),1)])])),_:1},8,["accept"])),[[_,r.loading]]),G("div",eM,[re((D(),X("div",{style:Z({width:r.offsetWidth?r.offsetWidth+"px":"100%"}),class:"scan-effect transparent-background"},[G("img",{ref:"raw",style:Z({"clip-path":"inset(0 0 0 "+r.percent+"%)"}),src:r.originImage,alt:M(n)("message.rawImage")},null,12,tM),re(G("img",{src:r.resultImage,onMousemove:b,alt:M(n)("message.resultImage")},null,40,nM),[[oe,r.resultImage]]),re(G("div",{style:Z({left:r.percent+"%"}),class:"scan-line"},null,4),[[oe,r.resultImage]])],4)),[[oe,r.originImage],[_,!r.resultImage]])])])),_:1},8,["modelValue","title"])}}}),[["__scopeId","data-v-cb4c81ee"]]),oM=G("div",{class:"el-upload__text"},[ie(" 拖拽图片到这里 或者 "),G("em",null,"选择图片上传")],-1),sM=G("div",{class:"el-upload__tip"}," 支持图片格式 ",-1),aM={key:1},lM=G("canvas",{id:"ImageFillColor",class:"mt-10px"},null,-1),cM={class:"dialog-footer"},hM=I({__name:"ImageFillColor",props:{visible:{type:Boolean,required:!0}},emits:["close"],setup(e,{emit:t}){const{t:n}=Mu();sl(),Ja(),I_(),YE();const r=p(!1),i=p(!1),o=p(!0),s=p(".jpg,.jpeg,.png,.webp,"),a=p(),l=e,c=p(400),h=p(""),u=p("#ffffff"),f=t;k((()=>l.visible),(e=>{var t;r.value=e,e&&(null==(t=a.value)||t.clearFiles())}));const g=()=>{f("close")},m=e=>d(this,null,(function*(){const t=e.file.name.split(".").pop();s.value.split(",").includes(`.${t}`)&&["jpg","jpeg","png","webp"].includes(t)&&(h.value=yield ka(e.file),o.value=!1,C((()=>{w()})))})),v=()=>{h.value="",o.value=!0},y=e=>{a.value.clearFiles();const t=e[0];t.uid=Xe(),a.value.handleStart(t)};let L=null;const w=()=>{L=document.getElementById("ImageFillColor");const e=L.getContext("2d",{willReadFrequently:!0}),t=new Image;t.src=h.value,t.onload=()=>{const n=Math.max(t.width,t.height),r=c.value/n;L.width=t.width*r,L.height=t.height*r,e.drawImage(t,0,0,L.width,L.height),h.value=e.getImageData(0,0,L.width,L.height)},L.addEventListener("click",(t=>{const n=t.offsetX,r=t.offsetY;if(!h.value)return;e.putImageData(h.value,0,0);const i=e.getImageData(0,0,L.width,L.height),o=_(n,r,i),s=my(u.value).toRgb(),a=[s.r,s.g,s.b,255],l=[{x:n,y:r}];for(;l.length>0;){const{x:e,y:t}=l.pop();if(e<0||e>=L.width||t<0||t>=L.height)continue;const n=b(e,t),r=_(e,t,i);x(r,o)<=100&&0!==x(r,a)&&(i.data.set(a,n),l.push({x:e+1,y:t}),l.push({x:e-1,y:t}),l.push({x:e,y:t+1}),l.push({x:e,y:t-1}))}e.putImageData(i,0,0),h.value=i}))},b=(e,t)=>4*(t*L.width+e),_=(e,t,n)=>{const r=b(e,t);return[n.data[r],n.data[r+1],n.data[r+2],n.data[r+3]]},x=(e,t)=>Math.abs(e[0]-t[0])+Math.abs(e[1]-t[1])+Math.abs(e[2]-t[2])+Math.abs(e[3]-t[3]),S=()=>{if(!h.value)return;const e=document.getElementById("ImageFillColor");KE(e.toDataURL("image/png"),`yft-design-${Date.now()}-ImageFillColor.png`)};return(e,t)=>{const l=Ze,c=Ge,d=mw,f=pw,p=nt,k=tt,L=$e,w=qe;return D(),F(L,{modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=e=>r.value=e),width:432,title:e.$t("message.ColorFillImage"),class:"upload-dialog","before-close":g,"close-on-click-modal":!1},{footer:V((()=>[G("div",cM,[re(z(k,{type:"danger",onClick:v},{default:V((()=>[ie(se(M(n)("message.clear")),1)])),_:1},512),[[oe,!o.value&&h.value]]),re(z(k,{type:"success",onClick:S},{default:V((()=>[ie(se(M(n)("message.download")),1)])),_:1},512),[[oe,!o.value&&h.value]])])])),default:V((()=>[o.value?re((D(),F(c,{key:0,class:"upload-demo",ref_key:"uploadRef",ref:a,"on-exceed":y,drag:"",action:"http","http-request":m,limit:1,accept:s.value},{tip:V((()=>[sM])),default:V((()=>[z(l,{size:50},{default:V((()=>[z(M(Ye))])),_:1}),oM])),_:1},8,["accept"])),[[w,i.value]]):(D(),X("div",aM,[z(p,{trigger:"click",width:265},{reference:V((()=>[z(d,{color:u.value},null,8,["color"])])),default:V((()=>[z(f,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=e=>(e=>{u.value=my(e).toHexString()})(e))},null,8,["modelValue"])])),_:1}),lM]))])),_:1},8,["modelValue","title"])}}}),uM=Tu(I({__name:"ReferencePopover",props:{referenceRef:{type:null},referencePopoverRef:{type:null}},emits:["add"],setup(e,{emit:t}){const n=p(!1),r=p("horizontal"),i=p(0),o=e,s=e=>{n.value=e},a=()=>{const[e]=Xa();if(!e.ruler)return;const t=new La(Number(i.value),{type:"ReferenceLine",axis:r.value,visible:!0,name:"ReferenceLine",selectable:!0,hasControls:!1,hasBorders:!1,stroke:"pink",fill:"pink",originX:"center",originY:"center",padding:4,globalCompositeOperation:"difference"});e.add(t),e.renderAll();sl().modifedElement()};return(e,t)=>{const n=Ke,l=rt,c=it,h=et,u=ot,d=tt,f=nt;return D(),X("div",null,[z(f,{placement:"right",trigger:"click","popper-style":{padding:0},width:"240",onBeforeEnter:t[3]||(t[3]=e=>s(!0)),onHide:t[4]||(t[4]=e=>s(!1)),ref:o.referencePopoverRef,"virtual-ref":o.referenceRef,"virtual-triggering":""},{default:V((()=>[z(h,{class:"reference-pop-row"},{default:V((()=>[z(n,{span:8,class:"reference-pop-text"},{default:V((()=>[ie(se(e.$t("default.direction"))+":",1)])),_:1}),z(n,{span:16,class:"reference-pop-direction"},{default:V((()=>[z(c,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e)},{default:V((()=>[z(l,{value:"vertical",size:"small"},{default:V((()=>[ie("X "+se(e.$t("style.axis")),1)])),_:1}),z(l,{value:"horizontal",size:"small"},{default:V((()=>[ie("Y "+se(e.$t("style.axis")),1)])),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1}),z(h,{class:"reference-pop-row"},{default:V((()=>[z(n,{span:6,class:"reference-pop-text"},{default:V((()=>[ie(se(e.$t("style.position"))+":",1)])),_:1}),z(n,{span:18},{default:V((()=>[z(h,{class:"reference-flex-end"},{default:V((()=>[z(n,{span:10},{default:V((()=>[z(u,{modelValue:i.value,"onUpdate:modelValue":t[1]||(t[1]=e=>i.value=e),size:"small"},null,8,["modelValue"])])),_:1}),z(n,{span:4,class:"reference-pop-text reference-flex-end"},{default:V((()=>[ie("px")])),_:1})])),_:1})])),_:1})])),_:1}),z(h,{class:"reference-pop-btn"},{default:V((()=>[z(d,{size:"small",onClick:t[2]||(t[2]=e=>s(!1))},{default:V((()=>[ie(se(e.$t("default.cancel")),1)])),_:1}),z(d,{size:"small",type:"primary",onClick:a},{default:V((()=>[ie(se(e.$t("default.ok")),1)])),_:1})])),_:1})])),_:1},8,["virtual-ref"])])}}}),[["__scopeId","data-v-28d75bed"]]),dM={class:"pop-text"},fM={class:"pop-text"},pM={class:"pop-text"},gM=Tu(I({__name:"HomePopover",props:{menuRef:{type:null},menuPopoverRef:{type:null},menuVisibleRef:{type:Boolean,default:!1}},emits:["hide"],setup(e,{emit:t}){const{t:n}=Mu(),r=p(!1);p(!1);const i=p(!1),o=p(),s=p(),a=e,l=e=>{r.value=e},c=()=>{i.value=!0},h=()=>{i.value=!1};return(e,t)=>{const r=U("IconNewlybuild"),u=et,d=U("IconUpload"),f=U("IconDividingLine"),p=nt,g=GE;return D(),X("div",null,[z(p,{placement:"right",width:"220",trigger:"click","popper-class":"home-pop",onBeforeEnter:t[0]||(t[0]=e=>l(!0)),onHide:t[1]||(t[1]=e=>l(!1)),ref:a.menuPopoverRef,"virtual-ref":a.menuRef,"virtual-triggering":""},{default:V((()=>[z(u,{class:"pop-row"},{default:V((()=>[z(r,{class:"pop-icon"}),G("span",dM,se(M(n)("message.createDesign")),1)])),_:1}),z(u,{class:"pop-row",onClick:c},{default:V((()=>[z(d,{class:"pop-icon"}),G("span",fM,se(M(n)("message.uploadFiles")),1)])),_:1}),z(u,{class:"pop-row",ref_key:"referenceRef",ref:o},{default:V((()=>[z(f,{class:"pop-icon"}),G("span",pM,se(M(n)("message.referenceLine")),1)])),_:1},512)])),_:1},8,["virtual-ref"]),z(g,{visible:i.value,onClose:h},null,8,["visible"]),z(uM,{"reference-ref":o.value,"reference-popover-ref":s.value},null,8,["reference-ref","reference-popover-ref"])])}}}),[["__scopeId","data-v-df8d3aac"]]);const kM={class:"overflow-hidden relative mt-[20px] mx-auto p-[10px] border border-solid border-[rgba(0, 0, 0, .08)] rounded-[8px] justify-center"},mM={class:"w-[150px] h-[150px]"},vM={class:"w-[170px] h-[45px]"},yM=(e=>(J("data-v-08d29bd7"),e=e(),Q(),e))((()=>G("strong",null,[G("a",{href:"",class:"hover:text-blue-700"},"用户服务协议")],-1))),LM=Tu(I({__name:"index",props:{visible:{type:Boolean,required:!0}},emits:["close"],setup(e,{emit:t}){const n=p(""),r=p(!1),i=e,o=t;k((()=>i.visible),(e=>d(this,null,(function*(){r.value=e,e&&(yield a())}))));const s=()=>{o("close",!1),n.value=""},a=()=>d(this,null,(function*(){const e=yield g_({url:"/api/design/oauth/wechat",method:"post"});200===e.data.code&&(n.value=e.data.data.img)}));return(e,t)=>{const i=et,o=st,a=U("IconGithub"),l=tt,c=Ke,h=U("IconTencentQq"),u=U("IconMail"),d=$e,f=qe;return D(),F(d,{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),title:"",width:"35%",class:"login-dialog","before-close":s},{footer:V((()=>[z(i,{class:"justify-center text-[12px] text-[#9da3ac]"},{default:V((()=>[ie(" 登录即代表您同意《"),yM,ie("》 ")])),_:1})])),default:V((()=>[z(i,null,{default:V((()=>[z(i,{class:"text-[20px] text-[#222529] font-semibold leading-snug justify-center"},{default:V((()=>[ie(" 微信扫码一键登录 ")])),_:1}),z(i,{class:"text-[12px] mt-[10px] justify-center"},{default:V((()=>[ie(" 仅用于身份识别,yft-design不会获取您的任何隐私信息~ ")])),_:1}),z(i,null,{default:V((()=>[G("div",kM,[G("div",mM,[re(z(o,{src:n.value,class:"w-full h-full"},null,8,["src"]),[[f,!n.value]])])])])),_:1}),z(i,{class:"mt-[28px] justify-center"},{default:V((()=>[G("div",vM,[z(i,{class:"h-full"},{default:V((()=>[z(c,{span:8,class:"flex justify-center"},{default:V((()=>[z(l,{class:"h-full"},{default:V((()=>[z(a,{class:"text-[20px]"})])),_:1})])),_:1}),z(c,{span:8,class:"flex justify-center"},{default:V((()=>[z(l,{class:"h-full"},{default:V((()=>[z(h,{class:"text-[20px]"})])),_:1})])),_:1}),z(c,{span:8,class:"flex justify-center"},{default:V((()=>[z(l,{class:"h-full"},{default:V((()=>[z(u,{class:"text-[20px]"})])),_:1})])),_:1})])),_:1})])])),_:1})])),_:1})])),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-08d29bd7"]]),wM={FileInput:fy,ColorButton:mw,TextColorButton:Lw,ColorPicker:pw,FullscreenSpin:bw,LinePointMarker:Cw,SwipeInput:jw,FileUpload:GE,ImageMatting:iM,ImageFillColor:hM,HomePopover:gM,LoginDialog:LM},bM={install(e){for(const t of Object.keys(wM))e.component(t,wM[t])}};var _M={exports:{}};window,_M.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&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)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){var r,i;r=[n(2)],void 0===(i=function(e){function t(r){if(t.is(r,"function"))return n?r():e.on("raphael.DOMload",r);if(t.is(r,T))return t._engine.create[f](t,r.splice(0,3+t.is(r[0],M))).add(r);var i=Array.prototype.slice.call(arguments,0);if(t.is(i[i.length-1],"function")){var o=i.pop();return n?o.call(t._engine.create[f](t,i)):e.on("raphael.DOMload",(function(){o.call(t._engine.create[f](t,i))}))}return t._engine.create[f](t,arguments)}t.version="2.3.0",t.eve=e;var n,r,i,o,s=/[, ]+/,a={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},l=/\{(\d+)\}/g,c="hasOwnProperty",h={doc:document,win:window},u={was:Object.prototype[c].call(h.win,"Raphael"),is:h.win.Raphael},d=function(){this.ca=this.customAttributes={}},f="apply",p="concat",g="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,k="",m=" ",v=String,y="split",L="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[y](m),w={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},b=v.prototype.toLowerCase,_=Math,x=_.max,C=_.min,S=_.abs,j=_.pow,E=_.PI,M="number",T="array",A=Object.prototype.toString,O=(t._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),P={NaN:1,Infinity:1,"-Infinity":1},I=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,R=_.round,B=parseFloat,W=parseInt,H=v.prototype.toUpperCase,z=t._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},N=t._availableAnimAttrs={blur:M,"clip-rect":"csv",cx:M,cy:M,fill:"colour","fill-opacity":M,"font-size":M,height:M,opacity:M,path:"path",r:M,rx:M,ry:M,stroke:"colour","stroke-opacity":M,"stroke-width":M,transform:"transform",width:M,x:M,y:M},D=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,F={hs:1,rg:1},V=/,?([achlmqrstvxz]),?/gi,U=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,$=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,Y=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,X=(t._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),Z=function(e,t){return B(e)-B(t)},G=function(e){return e},q=t._rectPath=function(e,t,n,r,i){return i?[["M",e+i,t],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",e,t],["l",n,0],["l",0,r],["l",-n,0],["z"]]},K=function(e,t,n,r){return null==r&&(r=n),[["M",e,t],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]]},J=t._getPath={path:function(e){return e.attr("path")},circle:function(e){var t=e.attrs;return K(t.cx,t.cy,t.r)},ellipse:function(e){var t=e.attrs;return K(t.cx,t.cy,t.rx,t.ry)},rect:function(e){var t=e.attrs;return q(t.x,t.y,t.width,t.height,t.r)},image:function(e){var t=e.attrs;return q(t.x,t.y,t.width,t.height)},text:function(e){var t=e._getBBox();return q(t.x,t.y,t.width,t.height)},set:function(e){var t=e._getBBox();return q(t.x,t.y,t.width,t.height)}},Q=t.mapPath=function(e,t){if(!t)return e;var n,r,i,o,s,a,l;for(i=0,s=(e=je(e)).length;i',(ee=te.firstChild).style.behavior="url(#default#VML)",!ee||"object"!=typeof ee.adj)return t.type=k;te=null}function ne(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var n in e)e[c](n)&&(t[n]=ne(e[n]));return t}t.svg=!(t.vml="VML"==t.type),t._Paper=d,t.fn=r=d.prototype=t.prototype,t._id=0,t.is=function(e,t){return"finite"==(t=b.call(t))?!P[c](+e):"array"==t?e instanceof Array:"null"==t&&null===e||t==typeof e&&null!==e||"object"==t&&e===Object(e)||"array"==t&&Array.isArray&&Array.isArray(e)||A.call(e).slice(8,-1).toLowerCase()==t},t.angle=function(e,n,r,i,o,s){if(null==o){var a=e-r,l=n-i;return a||l?(180+180*_.atan2(-l,-a)/E+360)%360:0}return t.angle(e,n,o,s)-t.angle(r,i,o,s)},t.rad=function(e){return e%360*E/180},t.deg=function(e){return Math.round(180*e/E%360*1e3)/1e3},t.snapTo=function(e,n,r){if(r=t.is(r,"finite")?r:10,t.is(e,T)){for(var i=e.length;i--;)if(S(e[i]-n)<=r)return e[i]}else{var o=n%(e=+e);if(oe-r)return n-o+e}return n},t.createUUID=(i=/[xy]/g,o=function(e){var t=16*_.random()|0;return("x"==e?t:3&t|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(i,o).toUpperCase()}),t.setWindow=function(n){e("raphael.setWindow",t,h.win,n),h.win=n,h.doc=h.win.document,t._engine.initWin&&t._engine.initWin(h.win)};var re=function(e){if(t.vml){var n,r=/^\s+|\s+$/g;try{var i=new ActiveXObject("htmlfile");i.write(""),i.close(),n=i.body}catch(a){n=createPopup().document.body}var o=n.createTextRange();re=ce((function(e){try{n.style.color=v(e).replace(r,k);var t=o.queryCommandValue("ForeColor");return"#"+("000000"+(t=(255&t)<<16|65280&t|(16711680&t)>>>16).toString(16)).slice(-6)}catch(i){return"none"}}))}else{var s=h.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",h.doc.body.appendChild(s),re=ce((function(e){return s.style.color=e,h.doc.defaultView.getComputedStyle(s,k).getPropertyValue("color")}))}return re(e)},ie=function(){return"hsb("+[this.h,this.s,this.b]+")"},oe=function(){return"hsl("+[this.h,this.s,this.l]+")"},se=function(){return this.hex},ae=function(e,n,r){if(null==n&&t.is(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(r=e.b,n=e.g,e=e.r),null==n&&t.is(e,"string")){var i=t.getRGB(e);e=i.r,n=i.g,r=i.b}return(e>1||n>1||r>1)&&(e/=255,n/=255,r/=255),[e,n,r]},le=function(e,n,r,i){var o={r:e*=255,g:n*=255,b:r*=255,hex:t.rgb(e,n,r),toString:se};return t.is(i,"finite")&&(o.opacity=i),o};function ce(e,t,n){return function r(){var i=Array.prototype.slice.call(arguments,0),o=i.join("␀"),s=r.cache=r.cache||{},a=r.count=r.count||[];return s[c](o)?(function(e,t){for(var n=0,r=e.length;n=1e3&&delete s[a.shift()],a.push(o),s[o]=e[f](t,i),n?n(s[o]):s[o])}}function he(){return this.hex}function ue(e,t){for(var n=[],r=0,i=e.length;i-2*!t>r;r+=2){var o=[{x:+e[r-2],y:+e[r-1]},{x:+e[r],y:+e[r+1]},{x:+e[r+2],y:+e[r+3]},{x:+e[r+4],y:+e[r+5]}];t?r?i-4==r?o[3]={x:+e[0],y:+e[1]}:i-2==r&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[i-2],y:+e[i-1]}:i-4==r?o[3]=o[2]:r||(o[0]={x:+e[r],y:+e[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}t.color=function(e){var n;return t.is(e,"object")&&"h"in e&&"s"in e&&"b"in e?(n=t.hsb2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.hex=n.hex):t.is(e,"object")&&"h"in e&&"s"in e&&"l"in e?(n=t.hsl2rgb(e),e.r=n.r,e.g=n.g,e.b=n.b,e.hex=n.hex):(t.is(e,"string")&&(e=t.getRGB(e)),t.is(e,"object")&&"r"in e&&"g"in e&&"b"in e?(n=t.rgb2hsl(e),e.h=n.h,e.s=n.s,e.l=n.l,n=t.rgb2hsb(e),e.v=n.b):(e={hex:"none"}).r=e.g=e.b=e.h=e.s=e.v=e.l=-1),e.toString=se,e},t.hsb2rgb=function(e,t,n,r){var i,o,s,a,l;return this.is(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(n=e.b,t=e.s,r=e.o,e=e.h),a=(l=n*t)*(1-S((e=(e*=360)%360/60)%2-1)),i=o=s=n-l,le(i+=[l,a,0,0,a,l][e=~~e],o+=[a,l,l,a,0,0][e],s+=[0,0,a,l,l,a][e],r)},t.hsl2rgb=function(e,t,n,r){var i,o,s,a,l;return this.is(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(n=e.l,t=e.s,e=e.h),(e>1||t>1||n>1)&&(e/=360,t/=100,n/=100),a=(l=2*t*(n<.5?n:1-n))*(1-S((e=(e*=360)%360/60)%2-1)),i=o=s=n-l/2,le(i+=[l,a,0,0,a,l][e=~~e],o+=[a,l,l,a,0,0][e],s+=[0,0,a,l,l,a][e],r)},t.rgb2hsb=function(e,t,n){var r,i;return e=(n=ae(e,t,n))[0],t=n[1],n=n[2],{h:((0==(i=(r=x(e,t,n))-C(e,t,n))?null:r==e?(t-n)/i:r==t?(n-e)/i+2:(e-t)/i+4)+360)%6*60/360,s:0==i?0:i/r,b:r,toString:ie}},t.rgb2hsl=function(e,t,n){var r,i,o,s;return e=(n=ae(e,t,n))[0],t=n[1],n=n[2],r=((i=x(e,t,n))+(o=C(e,t,n)))/2,{h:((0==(s=i-o)?null:i==e?(t-n)/s:i==t?(n-e)/s+2:(e-t)/s+4)+360)%6*60/360,s:0==s?0:r<.5?s/(2*r):s/(2-2*r),l:r,toString:oe}},t._path2string=function(){return this.join(",").replace(V,"$1")},t._preload=function(e,t){var n=h.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){t.call(this),this.onload=null,h.doc.body.removeChild(this)},n.onerror=function(){h.doc.body.removeChild(this)},h.doc.body.appendChild(n),n.src=e},t.getRGB=ce((function(e){if(!e||(e=v(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:he};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none",toString:he};!F[c](e.toLowerCase().substring(0,2))&&"#"!=e.charAt()&&(e=re(e));var n,r,i,o,s,a,l=e.match(O);return l?(l[2]&&(i=W(l[2].substring(5),16),r=W(l[2].substring(3,5),16),n=W(l[2].substring(1,3),16)),l[3]&&(i=W((s=l[3].charAt(3))+s,16),r=W((s=l[3].charAt(2))+s,16),n=W((s=l[3].charAt(1))+s,16)),l[4]&&(a=l[4][y](D),n=B(a[0]),"%"==a[0].slice(-1)&&(n*=2.55),r=B(a[1]),"%"==a[1].slice(-1)&&(r*=2.55),i=B(a[2]),"%"==a[2].slice(-1)&&(i*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(o=B(a[3])),a[3]&&"%"==a[3].slice(-1)&&(o/=100)),l[5]?(a=l[5][y](D),n=B(a[0]),"%"==a[0].slice(-1)&&(n*=2.55),r=B(a[1]),"%"==a[1].slice(-1)&&(r*=2.55),i=B(a[2]),"%"==a[2].slice(-1)&&(i*=2.55),("deg"==a[0].slice(-3)||"°"==a[0].slice(-1))&&(n/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(o=B(a[3])),a[3]&&"%"==a[3].slice(-1)&&(o/=100),t.hsb2rgb(n,r,i,o)):l[6]?(a=l[6][y](D),n=B(a[0]),"%"==a[0].slice(-1)&&(n*=2.55),r=B(a[1]),"%"==a[1].slice(-1)&&(r*=2.55),i=B(a[2]),"%"==a[2].slice(-1)&&(i*=2.55),("deg"==a[0].slice(-3)||"°"==a[0].slice(-1))&&(n/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(o=B(a[3])),a[3]&&"%"==a[3].slice(-1)&&(o/=100),t.hsl2rgb(n,r,i,o)):((l={r:n,g:r,b:i,toString:he}).hex="#"+(16777216|i|r<<8|n<<16).toString(16).slice(1),t.is(o,"finite")&&(l.opacity=o),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:he}}),t),t.hsb=ce((function(e,n,r){return t.hsb2rgb(e,n,r).hex})),t.hsl=ce((function(e,n,r){return t.hsl2rgb(e,n,r).hex})),t.rgb=ce((function(e,t,n){function r(e){return e+.5|0}return"#"+(16777216|r(n)|r(t)<<8|r(e)<<16).toString(16).slice(1)})),t.getColor=function(e){var t=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||.75},n=this.hsb2rgb(t.h,t.s,t.b);return t.h+=.075,t.h>1&&(t.h=0,t.s-=.2,t.s<=0&&(this.getColor.start={h:0,s:1,b:t.b})),n.hex},t.getColor.reset=function(){delete this.start},t.parsePathString=function(e){if(!e)return null;var n=de(e);if(n.arr)return ye(n.arr);var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[];return t.is(e,T)&&t.is(e[0],T)&&(i=ye(e)),i.length||v(e).replace(U,(function(e,t,n){var o=[],s=t.toLowerCase();if(n.replace(Y,(function(e,t){t&&o.push(+t)})),"m"==s&&o.length>2&&(i.push([t][p](o.splice(0,2))),s="l",t="m"==t?"l":"L"),"r"==s)i.push([t][p](o));else for(;o.length>=r[s]&&(i.push([t][p](o.splice(0,r[s]))),r[s]););})),i.toString=t._path2string,n.arr=ye(i),i},t.parseTransformString=ce((function(e){if(!e)return null;var n=[];return t.is(e,T)&&t.is(e[0],T)&&(n=ye(e)),n.length||v(e).replace($,(function(e,t,r){var i=[];b.call(t),r.replace(Y,(function(e,t){t&&i.push(+t)})),n.push([t][p](i))})),n.toString=t._path2string,n}),this,(function(e){if(!e)return e;for(var t=[],n=0;n1?1:l<0?0:l)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,f=0;f<12;f++){var p=c*h[f]+c,g=fe(p,e,n,i,s),k=fe(p,t,r,o,a),m=g*g+k*k;d+=u[f]*_.sqrt(m)}return c*d}function ge(e,t,n,r,i,o,s,a){if(!(x(e,n)x(i,s)||x(t,r)x(o,a))){var l=(e-n)*(o-a)-(t-r)*(i-s);if(l){var c=((e*r-t*n)*(i-s)-(e-n)*(i*a-o*s))/l,h=((e*r-t*n)*(o-a)-(t-r)*(i*a-o*s))/l,u=+c.toFixed(2),d=+h.toFixed(2);if(!(u<+C(e,n).toFixed(2)||u>+x(e,n).toFixed(2)||u<+C(i,s).toFixed(2)||u>+x(i,s).toFixed(2)||d<+C(t,r).toFixed(2)||d>+x(t,r).toFixed(2)||d<+C(o,a).toFixed(2)||d>+x(o,a).toFixed(2)))return{x:c,y:h}}}}function ke(e,n,r){var i=t.bezierBBox(e),o=t.bezierBBox(n);if(!t.isBBoxIntersect(i,o))return r?0:[];for(var s=pe.apply(0,e),a=pe.apply(0,n),l=x(~~(s/5),1),c=x(~~(a/5),1),h=[],u=[],d={},f=r?0:[],p=0;p=0&&j<=1.001&&E>=0&&E<=1.001&&(r?f++:f.push({x:_.x,y:_.y,t1:C(j,1),t2:C(E,1)}))}}return f}function me(e,n,r){e=t._path2curve(e),n=t._path2curve(n);for(var i,o,s,a,l,c,h,u,d,f,p=r?0:[],g=0,k=e.length;gv||m=e.x&&t<=e.x2&&n>=e.y&&n<=e.y2},t.isBBoxIntersect=function(e,n){var r=t.isPointInsideBBox;return r(n,e.x,e.y)||r(n,e.x2,e.y)||r(n,e.x,e.y2)||r(n,e.x2,e.y2)||r(e,n.x,n.y)||r(e,n.x2,n.y)||r(e,n.x,n.y2)||r(e,n.x2,n.y2)||(e.xn.x||n.xe.x)&&(e.yn.y||n.ye.y)},t.pathIntersection=function(e,t){return me(e,t)},t.pathIntersectionNumber=function(e,t){return me(e,t,1)},t.isPointInsidePath=function(e,n,r){var i=t.pathBBox(e);return t.isPointInsideBBox(i,n,r)&&me(e,[["M",n,r],["H",i.x2+10]],1)%2==1},t._removedFactory=function(t){return function(){e("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var ve=t.pathBBox=function(e){var t=de(e);if(t.bbox)return ne(t.bbox);if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var n,r=0,i=0,o=[],s=[],a=0,l=(e=je(e)).length;a1&&(n*=v=_.sqrt(v),r*=v);var L=n*n,w=r*r,b=(o==s?-1:1)*_.sqrt(S((L*w-L*m*m-w*k*k)/(L*m*m+w*k*k))),x=b*n*m/r+(e+a)/2,C=b*-r*k/n+(t+l)/2,j=_.asin(((t-C)/r).toFixed(9)),M=_.asin(((l-C)/r).toFixed(9));(j=eM&&(j-=2*E),!s&&M>j&&(M-=2*E)}var T=M-j;if(S(T)>u){var A=M,O=a,P=l;M=j+u*(s&&M>j?1:-1),a=x+n*_.cos(M),l=C+r*_.sin(M),f=xe(a,l,n,r,i,0,s,O,P,[M,A,x,C])}T=M-j;var I=_.cos(j),R=_.sin(j),B=_.cos(M),W=_.sin(M),H=_.tan(T/4),z=4/3*n*H,N=4/3*r*H,D=[e,t],F=[e+z*R,t-N*I],V=[a+z*W,l-N*B],U=[a,l];if(F[0]=2*D[0]-F[0],F[1]=2*D[1]-F[1],c)return[F,V,U][p](f);for(var $=[],Y=0,X=(f=[F,V,U][p](f).join()[y](",")).length;Y"1e12"&&(d=.5),S(p)>"1e12"&&(p=.5),d>0&&d<1&&(l=Ce(e,t,n,r,i,o,s,a,d),k.push(l.x),g.push(l.y)),p>0&&p<1&&(l=Ce(e,t,n,r,i,o,s,a,p),k.push(l.x),g.push(l.y)),c=o-2*r+t-(a-2*o+r),u=t-r,d=(-(h=2*(r-t)-2*(o-r))+_.sqrt(h*h-4*c*u))/2/c,p=(-h-_.sqrt(h*h-4*c*u))/2/c,S(d)>"1e12"&&(d=.5),S(p)>"1e12"&&(p=.5),d>0&&d<1&&(l=Ce(e,t,n,r,i,o,s,a,d),k.push(l.x),g.push(l.y)),p>0&&p<1&&(l=Ce(e,t,n,r,i,o,s,a,p),k.push(l.x),g.push(l.y)),{min:{x:C[f](0,k),y:C[f](0,g)},max:{x:x[f](0,k),y:x[f](0,g)}}})),je=t._path2curve=ce((function(e,t){var n=!t&&de(e);if(!t&&n.curve)return ye(n.curve);for(var r=we(e),i=t&&we(t),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a=function(e,t,n){var r,i;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in{T:1,Q:1})&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"][p](xe[f](0,[t.x,t.y][p](e.slice(1))));break;case"S":"C"==n||"S"==n?(r=2*t.x-t.bx,i=2*t.y-t.by):(r=t.x,i=t.y),e=["C",r,i][p](e.slice(1));break;case"T":"Q"==n||"T"==n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"][p](_e(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"][p](_e(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"][p](be(t.x,t.y,e[1],e[2]));break;case"H":e=["C"][p](be(t.x,t.y,e[1],t.y));break;case"V":e=["C"][p](be(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"][p](be(t.x,t.y,t.X,t.Y))}return e},l=function(e,t){if(e[t].length>7){e[t].shift();for(var n=e[t];n.length;)h[t]="A",i&&(u[t]="A"),e.splice(t++,0,["C"][p](n.splice(0,6)));e.splice(t,1),m=x(r.length,i&&i.length||0)}},c=function(e,t,n,o,s){e&&t&&"M"==e[s][0]&&"M"!=t[s][0]&&(t.splice(s,0,["M",o.x,o.y]),n.bx=0,n.by=0,n.x=e[s][1],n.y=e[s][2],m=x(r.length,i&&i.length||0))},h=[],u=[],d="",g="",k=0,m=x(r.length,i&&i.length||0);k.01;)c=pe(e,t,n,r,i,o,s,a,u+=(ci){if(n&&!d.start){if(u+=["C"+(h=Xe(s,a,l[1],l[2],l[3],l[4],l[5],l[6],i-f)).start.x,h.start.y,h.m.x,h.m.y,h.x,h.y],o)return u;d.start=u,u=["M"+h.x,h.y+"C"+h.n.x,h.n.y,h.end.x,h.end.y,l[5],l[6]].join(),f+=c,s=+l[5],a=+l[6];continue}if(!e&&!n)return{x:(h=Xe(s,a,l[1],l[2],l[3],l[4],l[5],l[6],i-f)).x,y:h.y,alpha:h.alpha}}f+=c,s=+l[5],a=+l[6]}u+=l.shift()+l}return d.end=u,(h=e?f:n?d:t.findDotsAtSegment(s,a,l[0],l[1],l[2],l[3],l[4],l[5],1)).alpha&&(h={x:h.x,y:h.y,alpha:h.alpha}),h}},Ge=Ze(1),qe=Ze(),Ke=Ze(0,1);t.getTotalLength=Ge,t.getPointAtLength=qe,t.getSubpath=function(e,t,n){if(this.getTotalLength(e)-n<1e-6)return Ke(e,t).end;var r=Ke(e,n,1);return t?Ke(r,t).end:r},Ve.getTotalLength=function(){var e=this.getPath();if(e)return this.node.getTotalLength?this.node.getTotalLength():Ge(e)},Ve.getPointAtLength=function(e){var t=this.getPath();if(t)return qe(t,e)},Ve.getPath=function(){var e,n=t._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return n&&(e=n(this)),e},Ve.getSubpath=function(e,n){var r=this.getPath();if(r)return t.getSubpath(r,e,n)};var Je=t.easing_formulas={linear:function(e){return e},"<":function(e){return j(e,1.7)},">":function(e){return j(e,.48)},"<>":function(e){var t=.48-e/1.04,n=_.sqrt(.1734+t*t),r=n-t,i=-n-t,o=j(S(r),1/3)*(r<0?-1:1)+j(S(i),1/3)*(i<0?-1:1)+.5;return 3*(1-o)*o*o+o*o*o},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},elastic:function(e){return e==!!e?e:j(2,-10*e)*_.sin(2*E*(e-.075)/.3)+1},bounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}};Je.easeIn=Je["ease-in"]=Je["<"],Je.easeOut=Je["ease-out"]=Je[">"],Je.easeInOut=Je["ease-in-out"]=Je["<>"],Je["back-in"]=Je.backIn,Je["back-out"]=Je.backOut;var Qe=[],et=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,16)},tt=function(){for(var n=+new Date,r=0;r1&&!i.next){for(s in f)f[c](s)&&(v[s]=i.totalOrigin[s]);i.el.attr(v),ot(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&ot(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}Qe.length&&et(tt)},nt=function(e){return e>255?255:e<0?0:e};function rt(e,t,n,r,i,o){var s,a=3*t,l=3*(r-t)-a,c=1-a-l,h=3*n,u=3*(i-n)-h,d=1-h-u;function f(e){return((c*e+l)*e+a)*e}return s=function(e,t){var n,r,i,o,s,h;for(i=e,h=0;h<8;h++){if(o=f(i)-e,S(o)(r=1))return r;for(;no?n=i:r=i,i=(r-n)/2+n}return i}(e,1/(200*o)),((d*s+u)*s+h)*s}function it(e,t){var n=[],r={};if(this.ms=t,this.times=1,e){for(var i in e)e[c](i)&&(r[B(i)]=e[i],n.push(B(i)));n.sort(Z)}this.anim=r,this.top=n[n.length-1],this.percents=n}function ot(n,r,i,o,a,l){i=B(i);var h,u,d,f,g,k,m=n.ms,L={},w={},b={};if(o)for(x=0,C=Qe.length;xo*n.top){i=n.percents[x],g=n.percents[x-1]||0,m=m/n.top*(i-g),f=n.percents[x+1],h=n.anim[i];break}o&&r.attr(n.anim[n.percents[x]])}if(h){if(u)u.initstatus=o,u.start=new Date-u.ms*o;else{for(var S in h)if(h[c](S)&&(N[c](S)||r.paper.customAttributes[c](S)))switch(L[S]=r.attr(S),null==L[S]&&(L[S]=z[S]),w[S]=h[S],N[S]){case M:b[S]=(w[S]-L[S])/m;break;case"colour":L[S]=t.getRGB(L[S]);var j=t.getRGB(w[S]);b[S]={r:(j.r-L[S].r)/m,g:(j.g-L[S].g)/m,b:(j.b-L[S].b)/m};break;case"path":var E=je(L[S],w[S]),T=E[1];for(L[S]=E[0],b[S]=[],x=0,C=L[S].length;xl&&(l=u)}!e[l+="%"].callback&&(e[l].callback=i)}return new it(e,n)},Ve.animate=function(e,n,r,i){if(this.removed)return i&&i.call(this),this;var o=e instanceof it?e:t.animation(e,n,r,i);return ot(o,this,o.percents[0],null,this.attr()),this},Ve.setTime=function(e,t){return e&&null!=t&&this.status(e,C(t,e.ms)/e.ms),this},Ve.status=function(e,t){var n,r,i=[],o=0;if(null!=t)return ot(e,this,-1,C(t,1)),this;for(n=Qe.length;o1)for(var r=0,i=n.length;r.5)-1;l(d-.5,2)+l(f-.5,2)>.25&&(f=o.sqrt(.25-l(d-.5,2))*i+.5)&&.5!=f&&(f=f.toFixed(5)-1e-5*i)}return u}))).split(/\s*\-\s*/),"linear"==c){var L=i.shift();if(L=-r(L),isNaN(L))return null;var w=[0,0,o.cos(e.rad(L)),o.sin(e.rad(L))],b=1/(s(a(w[2]),a(w[3]))||1);w[2]*=b,w[3]*=b,w[2]<0&&(w[0]=-w[2],w[2]=0),w[3]<0&&(w[1]=-w[3],w[3]=0)}var _=e._parseDots(i);if(!_)return null;if(h=h.replace(/[\(\)\s,\xb0#]/g,"_"),t.gradient&&h!=t.gradient.id&&(g.defs.removeChild(t.gradient),delete t.gradient),!t.gradient){y=k(c+"Gradient",{id:h}),t.gradient=y,k(y,"radial"==c?{fx:d,fy:f}:{x1:w[0],y1:w[1],x2:w[2],y2:w[3],gradientTransform:t.matrix.invert()}),g.defs.appendChild(y);for(var x=0,C=_.length;x1?P.opacity/100:P.opacity});case"stroke":P=e.getRGB(g),l.setAttribute(p,P.hex),"stroke"==p&&P[t]("opacity")&&k(l,{"stroke-opacity":P.opacity>1?P.opacity/100:P.opacity}),"stroke"==p&&r._.arrows&&("startString"in r._.arrows&&L(r,r._.arrows.startString),"endString"in r._.arrows&&L(r,r._.arrows.endString,1));break;case"gradient":("circle"==r.type||"ellipse"==r.type||"r"!=n(g).charAt())&&m(r,g);break;case"opacity":h.gradient&&!h[t]("stroke-opacity")&&k(l,{"stroke-opacity":g>1?g/100:g});case"fill-opacity":if(h.gradient){(I=e._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u)))&&(R=I.getElementsByTagName("stop"),k(R[R.length-1],{"stop-opacity":g}));break}default:"font-size"==p&&(g=i(g,10)+"px");var B=p.replace(/(\-.)/g,(function(e){return e.substring(1).toUpperCase()}));l.style[B]=g,r._.dirty=1,l.setAttribute(p,g)}}x(r,o),l.style.visibility=d},x=function(r,o){if("text"==r.type&&(o[t]("text")||o[t]("font")||o[t]("font-size")||o[t]("x")||o[t]("y"))){var s=r.attrs,a=r.node,l=a.firstChild?i(e._g.doc.defaultView.getComputedStyle(a.firstChild,u).getPropertyValue("font-size"),10):10;if(o[t]("text")){for(s.text=o.text;a.firstChild;)a.removeChild(a.firstChild);for(var c,h=n(o.text).split("\n"),d=[],f=0,p=h.length;f"));var Z=Y.getBoundingClientRect();j.W=g.w=(Z.right-Z.left)/100,j.H=g.h=(Z.bottom-Z.top)/100,j.X=g.x,j.Y=g.y+j.H/2,("x"in l||"y"in l)&&(j.path.v=e.format("m{0},{1}l{2},{1}",o(g.x*v),o(g.y*v),o(g.x*v)+1));for(var G=["x","y","text","font","font-family","font-weight","font-style","font-size"],q=0,K=G.length;q.25&&(n=i.sqrt(.25-a(t-.5,2))*(2*(n>.5)-1)+.5),c=t+u+n),d}))).split(/\s*\-\s*/),"linear"==l){var h=o.shift();if(h=-r(h),isNaN(h))return null}var f=e._parseDots(o);if(!f)return null;if(t=t.shape||t.node,f.length){t.removeChild(s),s.on=!0,s.method="none",s.color=f[0].color,s.color2=f[f.length-1].color;for(var p=[],g=0,k=f.length;g')}}catch(n){_=function(e){return t.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},e._engine.initWin(e._g.win),e._engine.create=function(){var t=e._getContainer.apply(0,arguments),n=t.container,r=t.height,i=t.width,o=t.x,s=t.y;if(!n)throw new Error("VML container not found.");var a=new e._Paper,l=a.canvas=e._g.doc.createElement("div"),c=l.style;return o=o||0,s=s||0,i=i||512,r=r||342,a.width=i,a.height=r,i==+i&&(i+="px"),r==+r&&(r+="px"),a.coordsize=216e5+u+216e5,a.coordorigin="0 0",a.span=e._g.doc.createElement("span"),a.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(a.span),c.cssText=e.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",i,r),1==n?(e._g.doc.body.appendChild(l),c.left=o+"px",c.top=s+"px",c.position="absolute"):n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),a.renderfix=function(){},a},e.prototype.clear=function(){e.eve("raphael.clear",this),this.canvas.innerHTML=d,this.span=e._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},e.prototype.remove=function(){for(var t in e.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?e._removedFactory(t):null;return!0};var M=e.st;for(var T in E)E[t](T)&&!M[t](T)&&(M[T]=function(e){return function(){var t=arguments;return this.forEach((function(n){n[e].apply(n,t)}))}}(T))}}.apply(t,r))||(e.exports=i)}]);const xM=at(_M.exports);const CM=(e,t,n,r=0,i=0)=>{const o=e.path.toString().replaceAll(","," ").split("Z");let s=[];for(let a=0;a{var n,r,i="";for(t||(t=1),n=0;n{e.forEach((e=>{const n="center"===t?e.left+e.width/2:e.left-e.width/2,r="center"===t?e.top+e.height/2:e.top-e.height/2;e.set({originX:t,originY:t,left:n,top:r})}))},EM=()=>{const e=sl(),t=Ga(),{currentTemplate:n}=jt(e),{isChecked:r}=jt(Fo()),{canvasObject:i,clonedObject:o,currentPoint:s}=jt(t),{setZindex:a}=P_(),l=()=>d(void 0,null,(function*(){i.value&&(o.value=yield i.value.clone(No),navigator.clipboard.writeText(""))})),c=e=>{const[t]=Xa();if(e.isEditing){const n=e;return n.getSelectedText()?n.removeChars(n.selectionStart,n.selectionEnd):n.removeChars(n.selectionStart,n.selectionStart+1),t.renderAll(),!0}return!1},h=n=>{const[r]=Xa(),i=f(n);if(i){if(i.group)if(1===i.group._objects.length){const e=i.group;h(e.id)}else{if(i.type===is.TEXTBOX&&c(i))return;i.group.remove(i)}i.type===is.TEXTBOX&&c(i)||(r.discardActiveObject(),t.setCanvasObject(void 0),r.remove(i),r.renderAll(),e.modifedElement())}},u=(e,t)=>{if(t)for(let n=0;n{const[t]=Xa(),n=t.getObjects().filter((e=>!Bo.includes(e.id)));let r=n.filter((t=>t.id===e))[0];return r||u(e,n)},p=(e,t)=>{for(let n=0;n{const t=n.value.objects;let r=t.filter((t=>t.id===e))[0];return r||p(e,t)},k=e=>{for(let t=0;t{if(Bo.includes(e.draggedContext.element.id))return!1},sortElement:t=>d(void 0,null,(function*(){if(Bo.includes(t.moved.element.id))return;const r=t.moved.newIndex,i=t.moved.oldIndex,o=t.moved.element;if(i===r)return;const s=f(o.id);if(s){if(s.group){const e=g(s.group.id);if(!e)return;const t=e.objects[i];e.objects.splice(i,1),e.objects.splice(r,0,t)}else{const e=JSON.parse(JSON.stringify(n.value.objects)),t=e[i];e.splice(i,1),e.splice(r,0,t),n.value.objects=e}yield e.renderElement(),e.modifedElement()}})),lockElement:(t,n)=>{const[r]=Xa(),o=f(t);o&&(o.lockMovementX=n,o.lockMovementY=n,o.selectable=!n,n&&(o.hoverCursor="not-allowed",i.value&&i.value.id==o.id&&r.discardActiveObject()),r.renderAll(),e.modifedElement())},copyElement:l,cutElement:()=>{i.value&&(l(),h(i.value.id))},pasteElement:()=>d(void 0,null,(function*(){const[n]=Xa();if(!o.value)return;const r=yield o.value.clone(No);let i=o.value.left+10,l=o.value.top+10;if(s.value&&(i=s.value.x,l=s.value.y),n.discardActiveObject(),t.setCanvasObject(void 0),r.set({left:i,top:l,evented:!0}),r.type===is.ACTIVE){r.canvas=n;r.forEachObject((t=>{const r=t;n.add(r),a(n),e.modifedElement()})),r.setCoords()}else n.add(r),a(n),e.modifedElement();o.value.top=l,o.value.left=i,n.setActiveObject(r),n.renderAll()})),deleteElement:h,moveElement:(t,n=2)=>{const[r]=Xa(),i=r.getActiveObject();if(!i||!i.left||!i.top)return;const o=bs();if(o.value){const e=o.value.tagName;if("INPUT"===e||"TEXTARE"===e)return}const s=i.left,a=i.top;switch(t){case FE.LEFT:i.set("left",s-n),i.setCoords(),r.renderAll();break;case FE.RIGHT:i.set("left",s+n),i.setCoords(),r.renderAll();break;case FE.UP:i.set("top",a-n),i.setCoords(),r.renderAll();break;case FE.DOWN:i.set("top",a+n),i.setCoords(),r.renderAll()}e.updateElement({id:i.id,props:i.toObject(No)})},combineElements:()=>d(void 0,null,(function*(){const[t]=Xa(),n=t.getActiveObjects();if(!n)return;t.discardActiveObject();const r=new de(n,{id:$o(10),name:is.GROUP,interactive:!1,subTargetCheck:!0});t.remove(...n),t.add(r),e.modifedElement(),e.renderElement()})),uncombineElements:()=>{const[n]=Xa(),r=n.getActiveObject();if(!r)return;const i=r.removeAll();n.discardActiveObject(),t.setCanvasObject(void 0),r.group?(r.group.add(...i),r.group.remove(r)):(n.add(...i),n.remove(r)),e.modifedElement(),a(n),n.renderAll()},queryElement:f,selectElement:e=>{const[t]=Xa(),n=f(e);n&&(t.setActiveObject(n),t.renderAll())},visibleElement:(t,n)=>{const[r]=Xa(),i=f(t);i&&(i.set({visible:n}),r.discardActiveObject(),r.renderAll(),e.modifedElement())},showElement:t=>{const n=f(t);n&&(n.isShow=!n.isShow,e.modifedElement())},mouseoverElement:e=>{const n=i.value;if(n&&n.id===e)return;const r=f(e);r&&t.setHoveredObject(r)},mouseleaveElement:e=>{t.setHoveredObject(void 0);const n=i.value;if(n&&n.id===e)return;const r=f(e);r&&t.setLeaveddObject(r)},cancelElement:()=>{const[e]=Xa();t.setCanvasObject(void 0),e.discardActiveObject(),e.renderAll()},forwardElement:()=>{const[t]=Xa();i.value&&(a(t),t.renderAll(),e.modifedElement())},backwardElement:()=>{const[t]=Xa();i.value&&(a(t),t.renderAll(),e.modifedElement())},checkElement:t=>{const[n]=Xa(),i=f(t);i.editable=!i.editable,n.discardActiveObject(),n.renderAll(),e.modifedElement();const o=n.getObjects().filter((e=>!Bo.includes(e.id)));r.value=k(o)},intersectElements:e=>{const[t]=Xa();let n=t.getActiveObjects();if(!n)return;1===n.length&&n[0].type===is.GROUP&&(n=n[0]._objects);const r=function(e,t){jM(e,"center");const n=e[0],r=e[1],i=r.left-n.left,o=r.top-n.top,s=r.pathOffset.x-n.pathOffset.x,a=r.pathOffset.y-n.pathOffset.y,l=CM(n,n.scaleX,n.scaleY),c=CM(r,r.scaleX,r.scaleY,-s+i,-a+o);ht.JS.ScaleUpPaths(l,100),ht.JS.ScaleUpPaths(c,100);const h=new ht.Clipper;h.AddPaths(l,ht.PolyType.ptSubject,!0),h.AddPaths(c,ht.PolyType.ptClip,!0);const u=ht.PolyFillType.pftNonZero,d=ht.PolyFillType.pftNonZero,f=[ht.ClipType.ctUnion,ht.ClipType.ctDifference,ht.ClipType.ctIntersection,ht.ClipType.ctXor];let p=new ht.Paths;return h.Execute(f[t],p,u,d),jM(e,"left"),SM(p,100)}(n,e),i=new Ce(r);t.add(i),t.renderAll()},maskElement:e=>{}}},MM={class:"menu-content"},TM=["onClick"],AM={class:"text"},OM={key:0,class:"sub-text"},PM=Tu(I({__name:"MenuContent",props:{menus:{type:Array,required:!0},handleClickMenuItem:{type:Function,required:!0}},setup:e=>(t,n)=>{const r=U("menu-content",!0);return D(),X("ul",MM,[(D(!0),X(H,null,ee(e.menus,((t,n)=>(D(),X(H,{key:t.text||n},[t.hide?te("",!0):(D(),X("li",{key:0,class:q(["menu-item",{divider:t.divider,disable:t.disable}]),onClick:ae((n=>e.handleClickMenuItem(t)),["stop"])},[t.divider?te("",!0):(D(),X("div",{key:0,class:q(["menu-item-content",{"has-children":t.children,"has-handler":t.handler}])},[G("span",AM,se(t.text),1),t.subText&&!t.children?(D(),X("span",OM,se(t.subText),1)):te("",!0),t.children&&t.children.length?(D(),F(r,{key:1,class:"sub-menu",menus:t.children,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])):te("",!0)],2))],10,TM))],64)))),128))])}}),[["__scopeId","data-v-10e0a8c0"]]),IM=I({__name:"index",props:{axis:{type:Object,required:!0},el:{type:Object,required:!0},menus:{type:Array,required:!0},removeContextmenu:{type:Function,required:!0}},setup(e){const t=e,n=E((()=>{const{x:e,y:n}=t.axis,r=30*t.menus.filter((e=>!(e.divider||e.hide))).length+11*t.menus.filter((e=>e.divider)).length+10;return{left:document.body.clientWidth<=e+170?e-170:e,top:document.body.clientHeight<=n+r?n-r:n}})),r=e=>{e.disable||e.children&&!e.handler||(e.handler&&e.handler(t.el),t.removeContextmenu())};return(t,i)=>(D(),X(H,null,[G("div",{class:"mask",onContextmenu:i[0]||(i[0]=ae((t=>e.removeContextmenu()),["prevent"])),onMousedown:i[1]||(i[1]=t=>e.removeContextmenu())},null,32),G("div",{class:"contextmenu",style:Z({left:n.value.left+"px",top:n.value.top+"px"}),onContextmenu:i[2]||(i[2]=ae((()=>{}),["prevent"]))},[z(PM,{menus:e.menus,handleClickMenuItem:r},null,8,["menus"])],36)],64))}}),RM=(e,t,n)=>{t.stopPropagation(),t.preventDefault(),(()=>{const{elementHover:e}=jt(Fo()),{selectElement:t}=EM();e.value&&t(e.value)})();const r=n.value(e);if(!r)return;let i=null;const o=()=>{i&&(document.body.removeChild(i),i=null),document.body.removeEventListener("scroll",o),window.removeEventListener("resize",o)},s={axis:{x:t.x,y:t.y},el:e,menus:r,removeContextmenu:o};i=document.createElement("div");const a=z(IM,s,null);le(a,i),document.body.appendChild(i),document.body.addEventListener("scroll",o),window.addEventListener("resize",o)},BM={mounted(e,t){e.addEventListener("contextmenu",(n=>RM(e,n,t)))},unmounted(e,t){if(e){const n=n=>RM(e,n,t);e.removeEventListener("contextmenu",n)}}},WM=(e,t,n)=>{const r=n.value,i=t.composedPath();(i?i.indexOf(e)<0:!e.contains(t.target))&&r(t)},HM={mounted(e,t){const n=n=>WM(e,n,t);setTimeout((()=>{document.addEventListener("click",n)}),0)},unmounted(e,t){document.removeEventListener("click",(n=>WM(e,n,t)))}},zM=(e,t)=>{Object.entries(t).forEach((t=>d(void 0,[t],(function*([t,n]){e.style[t]=""}))))},NM={mounted(e,t){const n=t.value.highlightStyle||{backgroundColor:"#f0f0f0"};e.addEventListener("dragover",(e=>e.preventDefault())),e.addEventListener("dragenter",(()=>((e,t)=>{Object.entries(t).forEach((([t,n])=>{e.style[t]=n}))})(e,n))),e.addEventListener("dragleave",(()=>zM(e,n))),e.addEventListener("drop",(r=>{r.preventDefault(),zM(e,n);const i=r.dataTransfer.files;t.value.uploadFunction&&"function"==typeof t.value.uploadFunction?t.value.uploadFunction(i):t.value.url&&((e,t)=>{d(void 0,null,(function*(){const{addTemplate:t}=YE(),{createImageElement:n}=I_(),r=sl(),{setCanvasTransform:i}=Ja();Array.from(e).forEach((e=>d(void 0,null,(function*(){const[o]=Xa(),s=e.name.split(".").pop();if(!".pdf,.psd,.cdr,.ai,.svg,.jpg,.jpeg,.png,.webp,.json".split(",").includes(`.${s}`))return;if("svg"===s){const t=yield ma(e),n=yield O_(t);o.add(...n.objects),o.renderAll()}if("json"===s){const n=yield ma(e),r=JSON.parse(n);t(r)}if(["jpg","jpeg","png","webp"].includes(s)){const t=yield ka(e);n(t)}const a=yield k_(e,s);if(a&&200===a.data.code){const e=a.data.data;if(!e)return;yield r.addTemplate(e),i()}}))))}))})(i,t.value.url)}))}},DM={install(e){e.directive("contextmenu",BM),e.directive("click-outside",HM),e.directive("drop-image",NM)}};if("undefined"!=typeof window){let e=function(){var e=document.body,t=document.getElementById("__svg__icons__dom__");t||((t=document.createElementNS("http://www.w3.org/2000/svg","svg")).style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',e.insertBefore(t,e.lastChild)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}!function(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:i,onRegisteredSW:o,onRegisterError:s}=e,a=p(!1),l=p(!1);(function(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:i,onRegisteredSW:o,onRegisterError:s}=e;let a,l;l=function(){return d(this,null,(function*(){if("serviceWorker"in navigator){const{Workbox:e}=yield Pu((()=>import("./workbox-window.prod.es5-1e1a3f8e.js")),[],import.meta.url);a=new e("./sw.js",{scope:"./",type:"classic"}),a.addEventListener("activated",(e=>{(e.isUpdate||e.isExternal)&&window.location.reload()})),a.addEventListener("installed",(e=>{e.isUpdate||null==r||r()})),a.register({immediate:t}).then((e=>{o?o("./sw.js",e):null==i||i(e)})).catch((e=>{null==s||s(e)}))}}))}()})({immediate:t,onNeedRefresh(){a.value=!0,null==n||n()},onOfflineReady(){l.value=!0,null==r||r()},onRegistered:i,onRegisteredSW:o,onRegisterError:s})}(),function(){d(this,null,(function*(){const e=ce(Au);yield(e=>d(void 0,null,(function*(){const t=ju();Cu=pu(t),e.use(Cu)})))(e),e.use(ff),e.use(function(){const e=f(!0),t=e.run((()=>p({})));let n=[],r=[];const i=g({install(e){ft(i),i._a=e,e.provide(pt,i),e.config.globalProperties.$pinia=i,r.forEach((e=>n.push(e))),r=[]},use(e){return this._a||ut?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}()),e.use(uy),e.use(Ug),e.use(bM),e.use(DM),e.mount("#app")}))}();export{mw as $,ls as A,ll as B,gM as C,xu as D,is as E,_u as F,Dg as G,VE as H,Fo as I,al as J,Qa as K,cs as L,FE as M,Ya as N,nl as O,pa as P,pw as Q,Zs as R,ss as S,Vs as T,Gs as U,qs as V,Wo as W,Ks as X,No as Y,ca as Z,Tu as _,LM as a,$o as a0,va as a1,Ys as a2,Xs as a3,ya as a4,Us as a5,$s as a6,Oo as a7,Io as a8,Sw as a9,jw as aa,qo as ab,as as ac,Xo as ad,zg as ae,rs as af,Tg as ag,Lw as ah,Jo as ai,Qo as aj,Ko as ak,ns as al,Go as am,Zo as an,os as ao,Bo as ap,Po as aq,qE as ar,m_ as as,KE as at,p_ as au,ha as av,Ga as b,Vg as c,Mu as d,YE as e,Ja as f,I_ as g,ma as h,ka as i,k_ as j,Cw as k,O_ as l,iM as m,Xa as n,sl as o,zE as p,fy as q,g_ as r,jt as s,Ka as t,uf as u,NE as v,hM as w,P_ as x,EM as y,Ao as z}; diff --git a/assets/index-3a84706f.js.gz b/assets/index-3a84706f.js.gz new file mode 100644 index 00000000..608d4c53 Binary files /dev/null and b/assets/index-3a84706f.js.gz differ diff --git a/assets/index-9efc38ed.js b/assets/index-9efc38ed.js new file mode 100644 index 00000000..2f15a6ce --- /dev/null +++ b/assets/index-9efc38ed.js @@ -0,0 +1 @@ +var e=(e,a,l)=>new Promise(((n,i)=>{var t=e=>{try{o(l.next(e))}catch(a){i(a)}},s=e=>{try{o(l.throw(e))}catch(a){i(a)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(t,s);o((l=l.apply(e,a)).next())}));import{_ as a,u as l,P as n,a as i}from"./index-3a84706f.js";import{g as t}from"./index-025bde72.js";import{j as s,r as o,k as c,Q as d,R as m,T as r,u,B as p,l as b,P as v,a4 as f,m as h,V as E,av as g,aw as _,Z as w,c as x,K as C,ad as I,a7 as O,an as R}from"./vue-aadc59b7.js";import{s as y,j as M,k as D,q as N,i as A,l as P,t as S,m as T,w as j,x as k,y as U,z as L,A as F}from"./element-plus-2d3d0866.js";import{t as V}from"./lodash-es-fcf8a448.js";import"./fabric-aa9a28c9.js";import"./clipper-lib-eae4901e.js";const B=""+new URL("logo-93940820.svg",import.meta.url).href,H=s({__name:"MainSearch",setup(e){const a=o("1");return(e,l)=>{const n=M,i=D,t=N,s=A,o=P;return c(),d(o,{gutter:20,class:"h-[100px] flex items-center row-home"},{default:m((()=>[r(s,{span:10,offset:7},{default:m((()=>[r(t,{class:"h-[40px]","prefix-icon":u(y),placeholder:"五一假期"},{append:m((()=>[r(i,{modelValue:u(a),"onUpdate:modelValue":l[0]||(l[0]=e=>p(a)?a.value=e:null),placeholder:"Select"},{default:m((()=>[r(n,{label:"精选模版",value:"1"}),r(n,{label:"我的空间",value:"2"})])),_:1},8,["modelValue"])])),_:1},8,["prefix-icon"])])),_:1})])),_:1})}}}),W=[{id:0,name:"精选推荐",label:"RECOMMEND",icon:"plus",themeColor:"#2254f4"},{id:0,name:"小红书",label:"REDBOOK",icon:"",themeColor:"#FF725C"},{id:0,name:"公众号",label:"WECHAT",icon:"",themeColor:"#45D582"},{id:0,name:"电商",label:"E-COMMERCE",icon:""},{id:0,name:"教育培训",label:"EDUCATION",icon:""},{id:0,name:"短视频",label:"VIDEO",icon:""},{id:0,name:"金融保险",label:"FINANCIAL",icon:""},{id:0,name:"粉丝应援",label:"SUPPORT",icon:""},{id:0,name:"个人生活",label:"LIFE",icon:""},{id:0,name:"设计师",label:"DESIGN",icon:""},{id:0,name:"门店",label:"STORE",icon:""},{id:0,name:"电竞运营",label:"ESPORTS",icon:""},{id:0,name:"精选推荐",label:"RECOMMEND",icon:""},{id:0,name:"精选推荐",label:"RECOMMEND",icon:""},{id:0,name:"精选推荐",label:"RECOMMEND",icon:""}],q=[{id:0,name:"创建设计",label:"RECOMMEND",icon:""},{id:0,name:"智能设计",label:"REDBOOK",icon:""},{id:0,name:"AI绘图",label:"WECHAT",icon:""},{id:0,name:"AI素材",label:"E-COMMERCE",icon:""},{id:0,name:"AI文案",label:"EDUCATION",icon:""},{id:0,name:"批量抠人像",label:"VIDEO",icon:""},{id:0,name:"智能抠图",label:"FINANCIAL",icon:""},{id:0,name:"粉丝应援",label:"SUPPORT",icon:""},{id:0,name:"个人生活",label:"LIFE",icon:""},{id:0,name:"设计师",label:"DESIGN",icon:""}],K=[{id:0,name:"精选推荐",label:"RECOMMEND",icon:""},{id:0,name:"小红书",label:"REDBOOK",icon:""},{id:0,name:"公众号",label:"WECHAT",icon:""},{id:0,name:"电商",label:"E-COMMERCE",icon:""},{id:0,name:"教育培训",label:"EDUCATION",icon:""},{id:0,name:"粉丝应援",label:"SUPPORT",icon:""},{id:0,name:"个人生活",label:"LIFE",icon:""},{id:0,name:"设计师",label:"DESIGN",icon:""},{id:0,name:"批量抠人像",label:"VIDEO",icon:""},{id:0,name:"智能抠图",label:"FINANCIAL",icon:""}],z={class:"scene-container"},G={class:"item-title"},Q={class:"item-subtitle"},Z=a(s({__name:"MainScene",setup:e=>(e,a)=>(c(),b("section",z,[(c(!0),b(v,null,f(u(W),(e=>(c(),b("div",{key:e.label,class:"scene-col"},[h("div",G,E(e.name),1),h("div",Q,E(e.label),1)])))),128))]))}),[["__scopeId","data-v-3d83eec7"]]),$=e=>(g("data-v-278f39a6"),e=e(),_(),e),J={class:"page-section-container mb-10"},X=$((()=>h("div",{class:"section-header"},[h("h2",{class:"title-wrapper"},"常用工具")],-1))),Y={class:"tools-wrapper"},ee=$((()=>h("div",{class:"section-header"},[h("h2",{class:"title-wrapper"},"常用物料")],-1))),ae={class:"materials-wrapper"},le={class:"materials-box"},ne={class:"grid-layout-box"},ie={class:"page-section-container"},te=$((()=>h("div",{class:"section-header"},[h("h2",{class:"title-wrapper"},"编辑推荐")],-1))),se={class:"editor-recommend"},oe=$((()=>h("p",null,"每日-新品推介",-1))),ce=$((()=>h("div",null,[h("div",null,"img1"),h("div",null,"img2"),h("p",null," 夏日精选营销物料 ")],-1))),de=$((()=>h("section",null,[h("div",{class:"section-header"},[h("h2",{class:"title-wrapper"},"热点日历")]),h("div",{class:"hot-topic-calendar"},[h("div",null,"1"),h("div",null,"2"),h("div",null,"3")])],-1))),me=a(s({__name:"MainTools",setup:e=>(e,a)=>(c(),b(v,null,[h("div",J,[h("section",null,[X,h("div",Y,[(c(!0),b(v,null,f(u(q),(e=>(c(),b("div",{key:e.name},E(e.name),1)))),128))])]),h("section",null,[ee,h("div",ae,[h("div",le,[h("div",ne,[(c(!0),b(v,null,f(u(K),(e=>(c(),b("div",{key:e.name},E(e.name),1)))),128))])])])])]),h("div",ie,[h("section",null,[te,h("div",se,[h("div",null,[(c(),b(v,null,f(["img1","img2","img3","img4"],(e=>h("div",{key:e},E(e),1))),64)),oe]),ce])]),de])],64))}),[["__scopeId","data-v-278f39a6"]]),re=e=>(g("data-v-b006b22b"),e=e(),_(),e),ue=re((()=>h("img",{src:B,alt:"",class:"h-full"},null,-1))),pe=re((()=>h("b",{class:"text-[20px]"},"今日推荐",-1))),be=["src","onClick"],ve={class:"title"},fe={class:"content ellipsis_2"},he=a(s({__name:"index",setup(a){const s=l(),d=o(!1),p=w({loading:!1,page:1,totalPage:1,column:6,move:!0,items:[]}),g=V((()=>e(this,null,(function*(){const e=document.getElementById("main");e.scrollHeight-(e.scrollTop+e.clientHeight)<=200&&p.page{d.value=e},y=()=>e(this,null,(function*(){const e={page:p.page,size:n},a=yield t(e);a.data&&200===a.data.code&&(p.page=a.data.data.page,p.totalPage=a.data.data.total_pages,p.items=p.items.concat(a.data.data.items))}));let M;return x((()=>{y();const e=document.getElementById("homeWaterfall");M=new ResizeObserver((a=>{const l=a[0].contentRect;l.width>1200?p.column=6:l.width>900?p.column=5:l.width>600?p.column=4:l.width>300?p.column=3:l.width>200&&(p.column=2),e.style.setProperty("--column",p.column.toString())})),M.observe(e)})),C((()=>{M.disconnect()})),(e,a)=>{const l=A,n=T,t=P,o=j,w=I("IconMapDraw"),x=k,C=U,y=L,M=F,D=S,N=i;return c(),b("div",null,[r(D,null,{default:m((()=>[r(o,{class:"border-b-[1px] items-center flex"},{default:m((()=>[r(t,{class:"justify-between items-center"},{default:m((()=>[r(l,{span:4,class:"h-[50px]"},{default:m((()=>[ue])),_:1}),r(l,{span:6,class:"flex justify-end"},{default:m((()=>[r(n,{type:"primary",onClick:_},{default:m((()=>[O("登陆/注册")])),_:1})])),_:1})])),_:1})])),_:1}),r(D,null,{default:m((()=>[r(y,{width:"216px"},{default:m((()=>[r(C,{"active-text-color":"#000","default-active":"1",class:"pt-[20px] h-lvh"},{default:m((()=>[r(x,{index:"1"},{default:m((()=>[r(w),O("为你推荐 ")])),_:1}),r(x,{index:"2"},{default:m((()=>[O(" 智能AI ")])),_:1}),r(x,{index:"3"},{default:m((()=>[r(w),O("模版空间 ")])),_:1})])),_:1})])),_:1}),r(M,{onScroll:u(g),class:"h-lvh",id:"main"},{default:m((()=>[r(H),r(Z),r(me),r(t,{class:"mt-[40px]"},{default:m((()=>[pe])),_:1}),r(R,{name:u(p).move?"group":"",tag:"div",class:"waterfall-box",id:"homeWaterfall"},{default:m((()=>[(c(!0),b(v,null,f(u(p).items,((e,a)=>(c(),b("div",{class:"waterfall-item",key:e.id},[h("img",{class:"pic",src:e.previewURL+"?image/auto-orient,1/quality,q_50",alt:"",ref_for:!0,ref:e=>((e,a)=>{if(!e)return;const l=()=>{const l=e.parentElement;if(!l)return;const n=a>=p.column?8:0,i=Math.ceil(l.clientHeight/2)+n;l.style.gridRowEnd=`span ${i}`};l(),e.onload=l,e.onerror=function(){e.src=new URL(""+new URL("loading-356a6359.gif",import.meta.url).href,self.location).href,l()}})(e,a),onClick:a=>(e=>{const{href:a}=s.resolve({path:"/",query:{template:e}});window.open(a,"_blank")})(e.id)},null,8,be),h("div",ve,E(e.title),1),h("div",fe,E(e.text),1)])))),128))])),_:1},8,["name"])])),_:1},8,["onScroll"])])),_:1})])),_:1}),r(N,{visible:u(d),onClose:_},null,8,["visible"])])}}}),[["__scopeId","data-v-b006b22b"]]);export{he as default}; diff --git a/assets/index-a0142a5c.js b/assets/index-a0142a5c.js new file mode 100644 index 00000000..5255083b --- /dev/null +++ b/assets/index-a0142a5c.js @@ -0,0 +1,63 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,l=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,i=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&l(e,n,t[n]);if(o)for(var n of o(t))r.call(t,n)&&l(e,n,t[n]);return e},c=(e,o)=>t(e,n(o)),s=(e,t,n)=>(l(e,"symbol"!=typeof t?t+"":t,n),n),u=(e,t,n)=>new Promise(((o,a)=>{var r=e=>{try{i(n.next(e))}catch(t){a(t)}},l=e=>{try{i(n.throw(e))}catch(t){a(t)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,l);i((n=n.apply(e,t)).next())}));import{H as f,_ as d,u as p,b as h,s as v,c as m,d as g,e as y,f as b,g as _,S as w,h as x,l as k,i as C,j as E,k as S,m as O,n as A,o as L,P as T,p as F,q as D,r as j,t as P,G as M,v as I,w as B,E as V,A as R,L as U,x as N,y as $,W as z,z as G,B as H,C as X,D as q,F as W,I as Y,J as Z,K,M as J,N as Q,O as ee,Q as te,T as ne,R as oe,U as ae,V as re,X as le,Y as ie,Z as ce,$ as se,a0 as ue,a1 as fe,a2 as de,a3 as pe,a4 as he,a5 as ve,a6 as me,a7 as ge,a8 as ye,a9 as be,aa as _e,ab as we,ac as xe,ad as ke,ae as Ce,af as Ee,ag as Se,ah as Oe,ai as Ae,aj as Le,ak as Te,al as Fe,am as De,an as je,ao as Pe,ap as Me,aq as Ie,ar as Be,as as Ve,at as Re,au as Ue,av as Ne}from"./index-3a84706f.js";import{a as $e,b as ze}from"./index-025bde72.js";import{B as Ge,l as He,n as Xe,C as qe,g as We,h as Ye,i as Ze,v as Ke,s as Je,d as Qe,b as et,q as tt,D as nt,F as ot,p as at,G as rt,m as lt,H as it,I as ct,r as st,e as ut,J as ft,K as dt,L as pt,M as ht,N as vt,j as mt,k as gt,O as yt,o as bt,P as _t,Q as wt,R as xt,S as kt,c as Ct,T as Et,U as St,V as Ot,W as At,X as Lt,a as Tt}from"./element-plus-2d3d0866.js";import{j as Ft,k as Dt,Q as jt,R as Pt,m as Mt,l as It,a4 as Bt,P as Vt,V as Rt,u as Ut,r as Nt,ad as $t,T as zt,G as Gt,W as Ht,O as Xt,av as qt,aw as Wt,c as Yt,a7 as Zt,e as Kt,H as Jt,d as Qt,B as en,ax as tn,U as nn,ak as on,X as an,S as rn,K as ln,n as cn,Z as sn,I as un}from"./vue-aadc59b7.js";import{g as fn,a as dn,c as pn}from"./clipper-lib-eae4901e.js";import{d as hn,t as vn,n as mn}from"./lodash-es-fcf8a448.js";import{i as gn,S as yn,G as bn,g as _n,b as wn,a as xn,o as kn,I as Cn,p as En}from"./fabric-aa9a28c9.js";import{o as Sn}from"./opentype.js-3318d238.js";const On={class:"hotkey-doc"},An={class:"title"},Ln={class:"label"},Tn={class:"value"},Fn=d(Ft({__name:"HotkeyDrawer",props:{hasHotkey:{type:Boolean,default:!1}},setup(e){const t=e;return(e,n)=>{const o=Ge;return Dt(),jt(o,{modelValue:t.hasHotkey,"onUpdate:modelValue":n[0]||(n[0]=e=>t.hasHotkey=e),"with-header":!1,size:"320"},{default:Pt((()=>[Mt("div",On,[(Dt(!0),It(Vt,null,Bt(Ut(f),(e=>(Dt(),It(Vt,{key:e.type},[Mt("div",An,Rt(e.type),1),(Dt(!0),It(Vt,null,Bt(e.children,(e=>(Dt(),It("div",{class:"hotkey-item",key:e.label},[Mt("div",Ln,Rt(e.label),1),Mt("div",Tn,Rt(e.value),1)])))),128))],64)))),128))])])),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-5980d094"]]),Dn={class:"help-pop-text"},jn={class:"help-pop-text"},Pn={class:"help-pop-text"},Mn={class:"help-pop-text"},In={class:"help-pop-text"},Bn=d(Ft({__name:"HelpPopover",props:{helpRef:{type:null},helpPopoverRef:{type:null}},emits:["change"],setup(e,{emit:t}){const n=Nt(!1),o=Nt(!1),a=e,r=e=>{n.value=e};return(e,t)=>{const n=$t("IconGuideBoard"),l=He,i=$t("IconVideoTwo"),c=$t("IconKeyboardOne"),s=$t("IconEdit"),u=$t("IconHeadsetOne"),f=Xe;return Dt(),It("div",null,[zt(f,{placement:"right",trigger:"click","popper-style":{padding:0},onBeforeEnter:t[1]||(t[1]=e=>r(!0)),onHide:t[2]||(t[2]=e=>r(!1)),ref:a.helpPopoverRef,"virtual-ref":a.helpRef,"virtual-triggering":""},{default:Pt((()=>[zt(l,{class:"help-pop-row"},{default:Pt((()=>[zt(n,{class:"help-pop-icon"}),Mt("span",Dn,Rt(e.$t("message.BeginnerGuide")),1)])),_:1}),zt(l,{class:"help-pop-row"},{default:Pt((()=>[zt(i,{class:"help-pop-icon"}),Mt("span",jn,Rt(e.$t("message.UserGuide")),1)])),_:1}),zt(l,{class:"help-pop-row",onClick:t[0]||(t[0]=e=>o.value=!0)},{default:Pt((()=>[zt(c,{class:"help-pop-icon"}),Mt("span",Pn,Rt(e.$t("message.Shortcuts")),1)])),_:1}),zt(l,{class:"help-pop-row"},{default:Pt((()=>[zt(s,{class:"help-pop-icon"}),Mt("span",Mn,Rt(e.$t("message.Suggestions")),1)])),_:1}),zt(l,{class:"help-pop-row"},{default:Pt((()=>[zt(u,{class:"help-pop-icon"}),Mt("span",In,Rt(e.$t("message.OnlineSupport")),1)])),_:1})])),_:1},8,["virtual-ref"])])}}}),[["__scopeId","data-v-ee17a7da"]]),Vn={class:"left-top-tabs",id:"left-top-tabs"},Rn={class:"top-tab"},Un={class:"left-bottom-tabs"},Nn={class:"center-tabs"},$n=["onClick"],zn=["id"],Gn={class:"left-name"},Hn={class:"bottom-tabs"},Xn={id:"left-tabs-help"},qn={class:"left-name"},Wn=d(Ft({__name:"index",setup(e){const t=p(),n=h(),{poolType:o,poolShow:a}=v(n),r=Nt(),l=Nt(),i=Nt(!1),c=[{key:"editor",label:"message.edit",icon:"editor",index:0},{key:"template",label:"message.template",icon:"template",index:1},{key:"material",label:"message.material",icon:"material",index:2},{key:"text",label:"message.text",icon:"text",index:3},{key:"image",label:"message.image",icon:"picture",index:4},{key:"toolkit",label:"message.tool",icon:"toolkit",index:5},{key:"chatgpt",label:"message.chatgpt",icon:"chatgpt",index:6}],s=e=>{a.value&&e===o.value?a.value=!1:a.value="help"!==e,n.setPoolType(e)},u=()=>{window.open(t.resolve({path:"/home"}).href,"_blank")};return(e,t)=>{const n=$t("IconHome"),a=qe,f=m;return Dt(),It("div",null,[Mt("div",Vn,[Mt("div",Rn,[zt(a,{placement:"top","hide-after":0,content:"首页"},{default:Pt((()=>[zt(n,{class:"handler-item",onClick:u})])),_:1})])]),Mt("div",Un,[Mt("div",Nn,[(Dt(),It(Vt,null,Bt(c,(t=>Mt("div",{class:Gt(["center-tab",{"left-active":t.key===Ut(o)}]),key:t.key,onClick:e=>s(t.key)},[Mt("div",{class:"flex justify-center items-center flex-col",id:`left-tabs-${t.key}`},[zt(f,{"icon-class":t.icon,className:"svg-size"},null,8,["icon-class"]),Mt("div",Gn,Rt(e.$t(t.label)),1)],8,zn)],10,$n))),64))]),Mt("div",Hn,[Mt("div",{class:Gt(["bottom-tab",{"left-active":"help"===Ut(o)}]),ref_key:"helpRef",ref:r,onClick:t[0]||(t[0]=e=>s("help"))},[Mt("div",Xn,[Mt("div",null,[zt(f,{"icon-class":"help",className:"svg-size"})]),Mt("div",qn,Rt(e.$t("message.help")),1)])],2),zt(Bn,{"help-ref":Ut(r),"help-popover-ref":Ut(l)},null,8,["help-ref","help-popover-ref"]),zt(Fn,{"has-hotkey":Ut(i)},null,8,["has-hotkey"])])])])}}}),[["__scopeId","data-v-c3d54922"]]),Yn="3.7.5",Zn=Yn,Kn="function"==typeof atob,Jn="function"==typeof btoa,Qn="function"==typeof Buffer,eo="function"==typeof TextDecoder?new TextDecoder:void 0,to="function"==typeof TextEncoder?new TextEncoder:void 0,no=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),oo=(e=>{let t={};return no.forEach(((e,n)=>t[e]=n)),t})(),ao=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ro=String.fromCharCode.bind(String),lo="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),io=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),co=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),so=e=>{let t,n,o,a,r="";const l=e.length%3;for(let i=0;i255||(o=e.charCodeAt(i++))>255||(a=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|a,r+=no[t>>18&63]+no[t>>12&63]+no[t>>6&63]+no[63&t]}return l?r.slice(0,l-3)+"===".substring(l):r},uo=Jn?e=>btoa(e):Qn?e=>Buffer.from(e,"binary").toString("base64"):so,fo=Qn?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,o=e.length;nt?io(fo(e)):fo(e),ho=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?ro(192|t>>>6)+ro(128|63&t):ro(224|t>>>12&15)+ro(128|t>>>6&63)+ro(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return ro(240|t>>>18&7)+ro(128|t>>>12&63)+ro(128|t>>>6&63)+ro(128|63&t)},vo=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,mo=e=>e.replace(vo,ho),go=Qn?e=>Buffer.from(e,"utf8").toString("base64"):to?e=>fo(to.encode(e)):e=>uo(mo(e)),yo=(e,t=!1)=>t?io(go(e)):go(e),bo=e=>yo(e,!0),_o=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,wo=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return ro(55296+(t>>>10))+ro(56320+(1023&t));case 3:return ro((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return ro((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},xo=e=>e.replace(_o,wo),ko=e=>{if(e=e.replace(/\s+/g,""),!ao.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,o,a="";for(let r=0;r>16&255):64===o?ro(t>>16&255,t>>8&255):ro(t>>16&255,t>>8&255,255&t);return a},Co=Kn?e=>atob(co(e)):Qn?e=>Buffer.from(e,"base64").toString("binary"):ko,Eo=Qn?e=>lo(Buffer.from(e,"base64")):e=>lo(Co(e).split("").map((e=>e.charCodeAt(0)))),So=e=>Eo(Ao(e)),Oo=Qn?e=>Buffer.from(e,"base64").toString("utf8"):eo?e=>eo.decode(Eo(e)):e=>xo(Co(e)),Ao=e=>co(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),Lo=e=>Oo(Ao(e)),To=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Fo=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,To(t));e("fromBase64",(function(){return Lo(this)})),e("toBase64",(function(e){return yo(this,e)})),e("toBase64URI",(function(){return yo(this,!0)})),e("toBase64URL",(function(){return yo(this,!0)})),e("toUint8Array",(function(){return So(this)}))},Do=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,To(t));e("toBase64",(function(e){return po(this,e)})),e("toBase64URI",(function(){return po(this,!0)})),e("toBase64URL",(function(){return po(this,!0)}))},jo={version:Yn,VERSION:Zn,atob:Co,atobPolyfill:ko,btoa:uo,btoaPolyfill:so,fromBase64:Lo,toBase64:yo,encode:yo,encodeURI:bo,encodeURL:bo,utob:mo,btou:xo,decode:Lo,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:po,toUint8Array:So,extendString:Fo,extendUint8Array:Do,extendBuiltins:()=>{Fo(),Do()}};var Po,Mo={exports:{}};Po=Mo.exports,window;var Io=Mo.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.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"!=typeof Symbol&&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)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=11)}([function(e,t,n){var o=n(5),a="object"==typeof self&&self&&self.Object===Object&&self,r=o.a||a||Function("return this")();t.a=r},function(e,t,n){(function(e){var o=n(5),a=Po&&!Po.nodeType&&Po,r=a&&"object"==typeof e&&e&&!e.nodeType&&e,l=r&&r.exports===a&&o.a.process,i=function(){try{return r&&r.require&&r.require("util").types||l&&l.binding&&l.binding("util")}catch(e){}}();t.a=i}).call(this,n(6)(e))},function(e,t,n){function o(e){this._maxSize=e,this.clear()}o.prototype.clear=function(){this._size=0,this._values=Object.create(null)},o.prototype.get=function(e){return this._values[e]},o.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var a=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,l=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,c=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new o(512),u=new o(512),f=new o(512);function d(e){return s.get(e)||s.set(e,p(e).map((function(e){return e.replace(c,"$2")})))}function p(e){return e.match(a)}function h(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function v(e){return!h(e)&&((t=e).match(l)&&!t.match(r)||function(e){return i.test(e)}(e));var t}e.exports={Cache:o,split:p,normalizePath:d,setter:function(e){var t=d(e);return u.get(e)||u.set(e,(function(e,n){for(var o=0,a=t.length;o-1},ae=function(e,t){var n=this.__data__,o=Q(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},Ve=function(e){if("string"==typeof e||w(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Re=function(e,t,n){for(var o=-1,a=(t=Le(t,e)).length,r=!1;++o=0||(a[n]=e[n]);return a}var lo=n(4),io=/\$\{\s*(\w+)\s*\}/g,co=function(e){return function(t){return e.replace(io,(function(e,n){return Zn(t[n])}))}};function so(e,t,n,o){var a=this;this.name="ValidationError",this.value=t,this.path=n,this.type=o,this.errors=[],this.inner=[],e&&[].concat(e).forEach((function(e){a.errors=a.errors.concat(e.errors||e),e.inner&&(a.inner=a.inner.concat(e.inner.length?e.inner:e))})),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,so)}so.prototype=Object.create(Error.prototype),so.prototype.constructor=so,so.isError=function(e){return e&&"ValidationError"===e.name},so.formatError=function(e,t){"string"==typeof e&&(e=co(e));var n=function(t){return t.path=t.label||t.path||"this","function"==typeof e?e(t):e};return 1===arguments.length?n:n(t)};var uo=function(e){return e?lo.SynchronousPromise:Promise};function fo(e,t){return e?null:function(e){return t.push(e),e.value}}function po(e){var t,n=e.validations,o=e.value,a=e.path,r=e.sync,l=e.errors,i=e.sort;return void 0===(t=l)&&(t=[]),l=t.inner&&t.inner.length?t.inner:[].concat(t),function(e,t){var n=uo(t);return n.all(e.map((function(e){return n.resolve(e).then((function(e){return{fulfilled:!0,value:e}}),(function(e){return{fulfilled:!1,value:e}}))})))}(n,r).then((function(e){var t=e.filter((function(e){return!e.fulfilled})).reduce((function(e,t){var n=t.value;if(!so.isError(n))throw n;return e.concat(n)}),[]);if(i&&t.sort(i),(l=t.concat(l)).length)throw new so(l,o,a);return o}))}function ho(e){var t,n,o,a=e.endEarly,r=ro(e,["endEarly"]);return a?(t=r.validations,n=r.value,o=r.sync,uo(o).all(t).catch((function(e){throw"ValidationError"===e.name&&(e.value=n),e})).then((function(){return n}))):po(r)}var vo=function(e){return"[object Object]"===Object.prototype.toString.call(e)},mo=function(e){return function(t,n,o){for(var a=-1,r=Object(t),l=o(t),i=l.length;i--;){var c=l[e?i:++a];if(!1===n(r[c],c,r))break}return t}}(),go=function(e,t){return e&&mo(e,t,gt)},yo=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},bo=function(e){return this.__data__.has(e)};function _o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new me;++ti))return!1;var s=r.get(e);if(s&&r.get(t))return s==t;var u=-1,f=!0,d=2&n?new wo:void 0;for(r.set(e,t),r.set(t,e);++u=n.length)throw new Error("Yup.reach cannot resolve an array item at index: "+i+", in the path: "+t+". because there is no value at that index. ");a=n,n=n&&n[d],e=e.innerType}if(!s){if(!e.fields||!e.fields[f])throw new Error("The schema does not contain the path: "+t+". (failed at: "+l+' which is a type: "'+e._type+'")');a=n,n=n&&n[f],e=e.fields[f]}r=f,l=c?"["+i+"]":"."+i})),{schema:e,parent:a,parentPath:r}):{parent:a,parentPath:t,schema:e}}var oa=function(){function e(){this.list=new Set,this.refs=new Map}var t,n=e.prototype;return n.describe=function(){var e=[],t=this.list,n=Array.isArray(t),o=0;for(t=n?t:t[Symbol.iterator]();;){var a;if(n){if(o>=t.length)break;a=t[o++]}else{if((o=t.next()).done)break;a=o.value}var r=a;e.push(r)}var l=this.refs,i=Array.isArray(l),c=0;for(l=i?l:l[Symbol.iterator]();;){var s;if(i){if(c>=l.length)break;s=l[c++]}else{if((c=l.next()).done)break;s=c.value}var u=s[1];e.push(u.describe())}return e},n.toArray=function(){return zn(this.list).concat(zn(this.refs.values()))},n.add=function(e){Jo.isRef(e)?this.refs.set(e.key,e):this.list.add(e)},n.delete=function(e){Jo.isRef(e)?this.refs.delete(e.key):this.list.delete(e)},n.has=function(e,t){if(this.list.has(e))return!0;for(var n,o=this.refs.values();!(n=o.next()).done;)if(t(n.value)===e)return!0;return!1},n.clone=function(){var t=new e;return t.list=new Set(this.list),t.refs=new Map(this.refs),t},n.merge=function(e,t){var n=this.clone();return e.list.forEach((function(e){return n.add(e)})),e.refs.forEach((function(e){return n.add(e)})),t.list.forEach((function(e){return n.delete(e)})),t.refs.forEach((function(e){return n.delete(e)})),n},(t=[{key:"size",get:function(){return this.list.size+this.refs.size}}])&&a(e.prototype,t),e}();function aa(e){var t=this;if(void 0===e&&(e={}),!(this instanceof aa))return new aa;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new oa,this._blacklist=new oa,this.tests=[],this.transforms=[],this.withMutation((function(){t.typeError(Kn.notType)})),Ue(e,"default")&&(this._defaultDefault=e.default),this.type=e.type||"mixed",this._type=e.type||"mixed"}for(var ra=aa.prototype={__isYupSchema__:!0,constructor:aa,clone:function(){var e=this;return this._mutate?this:_n(this,(function(t){if(oo(t)&&t!==e)return t}))},label:function(e){var t=this.clone();return t._label=e,t},meta:function(e){if(0===arguments.length)return this._meta;var t=this.clone();return t._meta=o(t._meta||{},e),t},withMutation:function(e){var t=this._mutate;this._mutate=!0;var n=e(this);return this._mutate=t,n},concat:function(e){if(!e||e===this)return this;if(e._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+e._type);var t=function e(t,n){for(var o in n)if(Ue(n,o)){var a=n[o],r=t[o];if(void 0===r)t[o]=a;else{if(r===a)continue;oo(r)?oo(a)&&(t[o]=a.concat(r)):vo(r)?vo(a)&&(t[o]=e(r,a)):Array.isArray(r)&&Array.isArray(a)&&(t[o]=a.concat(r))}}return t}(e.clone(),this);return Ue(e,"_default")&&(t._default=e._default),t.tests=this.tests,t._exclusive=this._exclusive,t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.withMutation((function(t){e.tests.forEach((function(e){t.test(e.OPTIONS)}))})),t},isType:function(e){return!(!this._nullable||null!==e)||!this._typeCheck||this._typeCheck(e)},resolve:function(e){var t=this;if(t._conditions.length){var n=t._conditions;(t=t.clone())._conditions=[],t=(t=n.reduce((function(t,n){return n.resolve(t,e)}),t)).resolve(e)}return t},cast:function(e,t){void 0===t&&(t={});var n=this.resolve(o({},t,{value:e})),a=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(a)){var r=Zn(e),l=Zn(a);throw new TypeError("The value of "+(t.path||"field")+' could not be cast to a value that satisfies the schema type: "'+n._type+'". \n\nattempted value: '+r+" \n"+(l!==r?"result of cast: "+l:""))}return a},_cast:function(e){var t=this,n=void 0===e?e:this.transforms.reduce((function(n,o){return o.call(t,n,e)}),e);return void 0===n&&Ue(this,"_default")&&(n=this.default()),n},_validate:function(e,t){var n=this;void 0===t&&(t={});var a=e,r=null!=t.originalValue?t.originalValue:e,l=this._option("strict",t),i=this._option("abortEarly",t),c=t.sync,s=t.path,u=this._label;l||(a=this._cast(a,o({assert:!1},t)));var f={value:a,path:s,schema:this,options:t,label:u,originalValue:r,sync:c};t.from&&(f.from=t.from);var d=[];return this._typeError&&d.push(this._typeError(f)),this._whitelistError&&d.push(this._whitelistError(f)),this._blacklistError&&d.push(this._blacklistError(f)),ho({validations:d,endEarly:i,value:a,path:s,sync:c}).then((function(e){return ho({path:s,sync:c,value:e,endEarly:i,validations:n.tests.map((function(e){return e(f)}))})}))},validate:function(e,t){return void 0===t&&(t={}),this.resolve(o({},t,{value:e}))._validate(e,t)},validateSync:function(e,t){var n,a;if(void 0===t&&(t={}),this.resolve(o({},t,{value:e}))._validate(e,o({},t,{sync:!0})).then((function(e){return n=e})).catch((function(e){return a=e})),a)throw a;return n},isValid:function(e,t){return this.validate(e,t).then((function(){return!0})).catch((function(e){if("ValidationError"===e.name)return!1;throw e}))},isValidSync:function(e,t){try{return this.validateSync(e,t),!0}catch(_e){if("ValidationError"===_e.name)return!1;throw _e}},getDefault:function(e){return void 0===e&&(e={}),this.resolve(e).default()},default:function(e){if(0===arguments.length){var t=Ue(this,"_default")?this._default:this._defaultDefault;return"function"==typeof t?t.call(this):_n(t)}var n=this.clone();return n._default=e,n},strict:function(e){void 0===e&&(e=!0);var t=this.clone();return t._options.strict=e,t},_isPresent:function(e){return null!=e},required:function(e){return void 0===e&&(e=Kn.required),this.test({message:e,name:"required",exclusive:!0,test:function(e){return this.schema._isPresent(e)}})},notRequired:function(){var e=this.clone();return e.tests=e.tests.filter((function(e){return"required"!==e.OPTIONS.name})),e},nullable:function(e){void 0===e&&(e=!0);var t=this.clone();return t._nullable=e,t},transform:function(e){var t=this.clone();return t.transforms.push(e),t},test:function(){var e;if(void 0===(e=1===arguments.length?"function"==typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(e.message=Kn.default),"function"!=typeof e.test)throw new TypeError("`test` is a required parameters");var t=this.clone(),n=ta(e),o=e.exclusive||e.name&&!0===t._exclusive[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t._exclusive[e.name]=!!e.exclusive,t.tests=t.tests.filter((function(t){if(t.OPTIONS.name===e.name){if(o)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t},when:function(e,t){1===arguments.length&&(t=e,e=".");var n=this.clone(),o=[].concat(e).map((function(e){return new Jo(e)}));return o.forEach((function(e){e.isSibling&&n._deps.push(e.key)})),n._conditions.push(new ao(o,t)),n},typeError:function(e){var t=this.clone();return t._typeError=ta({message:e,name:"typeError",test:function(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t},oneOf:function(e,t){void 0===t&&(t=Kn.oneOf);var n=this.clone();return e.forEach((function(e){n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=ta({message:t,name:"oneOf",test:function(e){if(void 0===e)return!0;var t=this.schema._whitelist;return!!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},notOneOf:function(e,t){void 0===t&&(t=Kn.notOneOf);var n=this.clone();return e.forEach((function(e){n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=ta({message:t,name:"notOneOf",test:function(e){var t=this.schema._blacklist;return!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},strip:function(e){void 0===e&&(e=!0);var t=this.clone();return t._strip=e,t},_option:function(e,t){return Ue(t,e)?t[e]:this._options[e]},describe:function(){var e=this.clone(),t={type:e._type,meta:e._meta,label:e._label,tests:e.tests.map((function(e){return{name:e.OPTIONS.name,params:e.OPTIONS.params}})).filter((function(e,t,n){return n.findIndex((function(t){return t.name===e.name}))===t}))};return e._whitelist.size&&(t.oneOf=e._whitelist.describe()),e._blacklist.size&&(t.notOneOf=e._blacklist.describe()),t},defined:function(e){return void 0===e&&(e=Kn.defined),this.nullable().test({message:e,name:"defined",exclusive:!0,test:function(e){return void 0!==e}})}},la=function(){var e=ca[ia];ra[e+"At"]=function(t,n,a){void 0===a&&(a={});var r=na(this,t,n,a.context),l=r.parent,i=r.parentPath;return r.schema[e](l&&l[i],o({},a,{parent:l,path:t}))}},ia=0,ca=["validate","validateSync"];ia0},length:function(e,t){return void 0===t&&(t=Jn.length),this.test({message:t,name:"length",exclusive:!0,params:{length:e},test:function(t){return va(t)||t.length===this.resolve(e)}})},min:function(e,t){return void 0===t&&(t=Jn.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return va(t)||t.length>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=Jn.max),this.test({name:"max",exclusive:!0,message:t,params:{max:e},test:function(t){return va(t)||t.length<=this.resolve(e)}})},matches:function(e,t){var n,o,a=!1;return t&&("object"==typeof t?(a=t.excludeEmptyString,n=t.message,o=t.name):n=t),this.test({name:o||"matches",message:n||Jn.matches,params:{regex:e},test:function(t){return va(t)||""===t&&a||-1!==t.search(e)}})},email:function(e){return void 0===e&&(e=Jn.email),this.matches(ma,{name:"email",message:e,excludeEmptyString:!0})},url:function(e){return void 0===e&&(e=Jn.url),this.matches(ga,{name:"url",message:e,excludeEmptyString:!0})},ensure:function(){return this.default("").transform((function(e){return null===e?"":e}))},trim:function(e){return void 0===e&&(e=Jn.trim),this.transform((function(e){return null!=e?e.trim():e})).test({message:e,name:"trim",test:ya})},lowercase:function(e){return void 0===e&&(e=Jn.lowercase),this.transform((function(e){return va(e)?e:e.toLowerCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return va(e)||e===e.toLowerCase()}})},uppercase:function(e){return void 0===e&&(e=Jn.uppercase),this.transform((function(e){return va(e)?e:e.toUpperCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return va(e)||e===e.toUpperCase()}})}}),pa(_a,aa,{_typeCheck:function(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!((t=e)!=+t);var t},min:function(e,t){return void 0===t&&(t=Qn.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return va(t)||t>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=Qn.max),this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return va(t)||t<=this.resolve(e)}})},lessThan:function(e,t){return void 0===t&&(t=Qn.lessThan),this.test({message:t,name:"max",exclusive:!0,params:{less:e},test:function(t){return va(t)||tthis.resolve(e)}})},positive:function(e){return void 0===e&&(e=Qn.positive),this.moreThan(0,e)},negative:function(e){return void 0===e&&(e=Qn.negative),this.lessThan(0,e)},integer:function(e){return void 0===e&&(e=Qn.integer),this.test({name:"integer",message:e,test:function(e){return va(e)||Number.isInteger(e)}})},truncate:function(){return this.transform((function(e){return va(e)?e:0|e}))},round:function(e){var t=["ceil","floor","round","trunc"];if("trunc"===(e=e&&e.toLowerCase()||"round"))return this.truncate();if(-1===t.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+t.join(", "));return this.transform((function(t){return va(t)?t:Math[e](t)}))}});var wa=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/,xa=new Date("");function ka(){var e=this;if(!(this instanceof ka))return new ka;aa.call(this,{type:"date"}),this.withMutation((function(){e.transform((function(e){return this.isType(e)?e:(e=function(e){var t,n,o=[1,4,5,6,7,10,11],a=0;if(n=wa.exec(e)){for(var r,l=0;r=o[l];++l)n[r]=+n[r]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(a=60*n[10]+n[11],"+"===n[9]&&(a=0-a)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+a,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?xa:new Date(e))}))}))}function Ca(e,t){return t||(t=e.slice(0)),e.raw=t,e}pa(ka,aa,{_typeCheck:function(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t},min:function(e,t){void 0===t&&(t=eo.min);var n=e;if(!Jo.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(e){return va(e)||e>=this.resolve(n)}})},max:function(e,t){void 0===t&&(t=eo.max);var n=e;if(!Jo.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(e){return va(e)||e<=this.resolve(n)}})}});var Ea=function(e,t,n,o){var a=-1,r=null==e?0:e.length;for(o&&r&&(n=e[++a]);++aa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(a);++o=o?e:er(e,t,n)},nr=function(e){return function(t){t=Ae(t);var n=On(t)?Rn(t):void 0,o=n?n[0]:t.charAt(0),a=n?tr(n,1).join(""):t.slice(1);return o[e]()+a}}("toUpperCase"),or=function(e){return nr(Ae(e).toLowerCase())},ar=Ja((function(e,t,n){return t=t.toLowerCase(),e+(n?or(t):t)})),rr=function(e,t){var n={};return t=qo(t),go(e,(function(e,o,a){Ze(n,t(e,o,a),e)})),n},lr=n(9),ir=n.n(lr);function cr(e,t){void 0===t&&(t=[]);var n=[],o=[];function a(e,a){var r=Object(Yo.split)(e)[0];~o.indexOf(r)||o.push(r),~t.indexOf(a+"-"+r)||n.push([a,r])}for(var r in e)if(Ue(e,r)){var l=e[r];~o.indexOf(r)||o.push(r),Jo.isRef(l)&&l.isSibling?a(l.path,r):oo(l)&&l._deps&&l._deps.forEach((function(e){return a(e,r)}))}return ir.a.array(o,n).reverse()}function sr(e,t){var n=1/0;return e.some((function(e,o){if(-1!==t.path.indexOf(e))return n=o,!0})),n}function ur(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o\n ').concat(e.listPoints(n,o).join(""),"\n \n ")}}function kr(e){this.mode=Er.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t65536?(o[0]=240|(1835008&a)>>>18,o[1]=128|(258048&a)>>>12,o[2]=128|(4032&a)>>>6,o[3]=128|63&a):a>2048?(o[0]=224|(61440&a)>>>12,o[1]=128|(4032&a)>>>6,o[2]=128|63&a):a>128?(o[0]=192|(1984&a)>>>6,o[1]=128|63&a):o[0]=a,this.parsedData.push(o)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function Cr(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.position=[],this.dataCache=null,this.dataList=[]}pa(vr,aa,{_typeCheck:function(e){return hr(e)||"function"==typeof e},_cast:function(e,t){var n=this;void 0===t&&(t={});var a=aa.prototype._cast.call(this,e,t);if(void 0===a)return this.default();if(!this._typeCheck(a))return a;var r=this.fields,l=!0===this._option("stripUnknown",t),i=this._nodes.concat(Object.keys(a).filter((function(e){return-1===n._nodes.indexOf(e)}))),c={},s=o({},t,{parent:c,__validating:t.__validating||!1}),u=!1;return i.forEach((function(e){var n=r[e],o=Ue(a,e);if(n){var i,f=n._options&&n._options.strict;if(s.path=ur(pr(),t.path,e),s.value=a[e],!0===(n=n.resolve(s))._strip)return void(u=u||e in a);void 0!==(i=t.__validating&&f?a[e]:n.cast(a[e],s))&&(c[e]=i)}else o&&!l&&(c[e]=a[e]);c[e]!==a[e]&&(u=!0)})),u?c:a},_validate:function(e,t){var n,a,r=this;void 0===t&&(t={});var l=t.sync,i=[],c=null!=t.originalValue?t.originalValue:e,s=[{schema:this,value:c}].concat(t.from||[]);return n=this._option("abortEarly",t),a=this._option("recursive",t),t=o({},t,{__validating:!0,originalValue:c,from:s}),aa.prototype._validate.call(this,e,t).catch(fo(n,i)).then((function(e){if(!a||!hr(e)){if(i.length)throw i[0];return e}s=c?[].concat(s):[{schema:r,value:c||e}].concat(t.from||[]),c=c||e;var u,f,d=r._nodes.map((function(n){var a,i=-1===n.indexOf(".")?ur(dr(),t.path,n):ur(fr(),t.path,n),u=r.fields[n],f=o({},t,{path:i,from:s,parent:e,originalValue:c[n]});return u&&u.validate?(f.strict=!0,u.validate(e[n],f)):(a=l,a?lo.SynchronousPromise:Promise).resolve(!0)}));return ho({sync:l,validations:d,value:e,errors:i,endEarly:n,path:t.path,sort:(u=r.fields,f=Object.keys(u),function(e,t){return sr(f,e)-sr(f,t)})})}))},concat:function(e){var t=aa.prototype.concat.call(this,e);return t._nodes=cr(t.fields,t._excludedEdges),t},shape:function(e,t){void 0===t&&(t=[]);var n=this.clone(),a=o(n.fields,e);if(n.fields=a,t.length){Array.isArray(t[0])||(t=[t]);var r=t.map((function(e){return e[0]+"-"+e[1]}));n._excludedEdges=n._excludedEdges.concat(r)}return n._nodes=cr(a,n._excludedEdges),n},from:function(e,t,n){var a=Object(Yo.getter)(e,!0);return this.transform((function(r){if(null==r)return r;var l=r;return Ue(r,e)&&(l=o({},r),n||delete l[e],l[t]=a(r)),l}))},noUnknown:function(e,t){void 0===e&&(e=!0),void 0===t&&(t=to.noUnknown),"string"==typeof e&&(t=e,e=!0);var n=this.test({name:"noUnknown",exclusive:!0,message:t,test:function(t){if(null==t)return!0;var n,o,a,r=(n=this.schema,o=t,a=Object.keys(n.fields),Object.keys(o).filter((function(e){return-1===a.indexOf(e)})));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n._options.stripUnknown=e,n},unknown:function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=to.noUnknown),this.noUnknown(!e,t)},transformKeys:function(e){return this.transform((function(t){return t&&rr(t,(function(t,n){return e(n)}))}))},camelCase:function(){return this.transformKeys(ar)},snakeCase:function(){return this.transformKeys(Qa)},constantCase:function(){return this.transformKeys((function(e){return Qa(e).toUpperCase()}))},describe:function(){var e=aa.prototype.describe.call(this);return e.fields=Wo(this.fields,(function(e){return e.describe()})),e}}),pa(yr,aa,{_typeCheck:function(e){return Array.isArray(e)},_cast:function(e,t){var n=this,a=aa.prototype._cast.call(this,e,t);if(!this._typeCheck(a)||!this.innerType)return a;var r=!1,l=a.map((function(e,a){var l=n.innerType.cast(e,o({},t,{path:ur(gr(),t.path,a)}));return l!==e&&(r=!0),l}));return r?l:a},_validate:function(e,t){var n=this;void 0===t&&(t={});var a=[],r=t.sync,l=t.path,i=this.innerType,c=this._option("abortEarly",t),s=this._option("recursive",t),u=null!=t.originalValue?t.originalValue:e;return aa.prototype._validate.call(this,e,t).catch(fo(c,a)).then((function(e){if(!s||!i||!n._typeCheck(e)){if(a.length)throw a[0];return e}u=u||e;var f=e.map((function(n,a){var r=ur(mr(),t.path,a),l=o({},t,{path:r,strict:!0,parent:e,index:a,originalValue:u[a]});return!i.validate||i.validate(n,l)}));return ho({sync:r,path:l,value:e,errors:a,endEarly:c,validations:f})}))},_isPresent:function(e){return aa.prototype._isPresent.call(this,e)&&e.length>0},of:function(e){var t=this.clone();if(!1!==e&&!oo(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+Zn(e));return t._subType=e,t.innerType=e,t},min:function(e,t){return t=t||no.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return va(t)||t.length>=this.resolve(e)}})},max:function(e,t){return t=t||no.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return va(t)||t.length<=this.resolve(e)}})},ensure:function(){var e=this;return this.default((function(){return[]})).transform((function(t,n){return e._typeCheck(t)?t:null==n?[]:[].concat(n)}))},compact:function(e){var t=e?function(t,n,o){return!e(t,n,o)}:function(e){return!!e};return this.transform((function(e){return null!=e?e.filter(t):e}))},describe:function(){var e=aa.prototype.describe.call(this);return this.innerType&&(e.innerType=this.innerType.describe()),e}}),kr.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=Cr.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var o=-1;o<=7;o++)t+o<=-1||this.moduleCount<=t+o||(this.modules[e+n][t+o]=0<=n&&n<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=o&&o<=4)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var o=Vr.getLostPoint(this);(0==n||e>o)&&(e=o,t=n)}return t},createMovieClip:function(e,t,n){var o=e.createEmptyMovieClip(t,n);this.make();for(var a=0;a>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=o}for(var a=0;a<18;a++){var r=!e&&1==(t>>a&1);this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,o=Vr.getBCHTypeInfo(n),a=0;a<15;a++){var r=!e&&1==(o>>a&1);a<6?this.modules[a][8]=r:a<8?this.modules[a+1][8]=r:this.modules[this.moduleCount-15+a][8]=r}for(var l=0;l<15;l++){var i=!e&&1==(o>>l&1);l<8?this.modules[8][this.moduleCount-l-1]=i:l<9?this.modules[8][15-l-1+1]=i:this.modules[8][15-l-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,o=this.moduleCount-1,a=7,r=0,l=this.moduleCount-1;l>0;l-=2)for(6==l&&l--;;){for(var i=0;i<2;i++)if(null==this.modules[o][l-i]){var c=!1;r>>a&1)),Vr.getMask(t,o,l-i)&&(c=!c),this.modules[o][l-i]=c,-1==--a&&(r++,a=7)}if((o+=n)<0||this.moduleCount<=o){o-=n,n=-n;break}}}},Cr.PAD0=236,Cr.PAD1=17,Cr.createData=function(e,t,n){for(var o=Gr.getRSBlocks(e,t),a=new Hr,r=0;r8*i)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*i+")");for(a.getLengthInBits()+4<=8*i&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*i||(a.put(Cr.PAD0,8),a.getLengthInBits()>=8*i));)a.put(Cr.PAD1,8);return Cr.createBytes(a,o)},Cr.createBytes=function(e,t){for(var n=0,o=0,a=0,r=new Array(t.length),l=new Array(t.length),i=0;i=0?d.get(h):0}}for(var v=0,m=0;m=0;)t^=Vr.G15<=0;)t^=Vr.G18<>>=1;return t},getPatternPosition:function(e){return Vr.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case Tr:return(t+n)%2==0;case Fr:return t%2==0;case Dr:return n%3==0;case jr:return(t+n)%3==0;case Pr:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case Mr:return t*n%2+t*n%3==0;case Ir:return(t*n%2+t*n%3)%2==0;case Br:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new zr([1],0),n=0;n5&&(n+=3+r-5)}for(var s=0;s=256;)e-=255;return Rr.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},Ur=0;Ur<8;Ur++)Rr.EXP_TABLE[Ur]=1<>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Yr=0,Zr=1,Kr=2,Jr=3,Qr=4,el=5,tl=6,nl=7;function ol(e){if(!e.text||e.text.length<=0)return null;var t=new Cr((e=qr(qr({},{render:"canvas",width:"100%",height:"100%",typeNumber:-1,correctLevel:1,background:"#ffffff",foreground:"#000000",isSpace:!0}),e)).typeNumber,e.correctLevel);return t.addData(e.text),t.make(),t.$options=e,t}function al(e){for(var t=e.getModuleCount(),n=e.getPositionTable(),o=[[3,3],[3,t-4],[t-4,3]],a=new Array(t),r=0;r=0&&o[u][0]+f=0&&o[u][1]+d')):1===r?a.push('')):2===r&&a.push(''));else if(o[h][v]===Zr)if(0===c)a.push(''));else if(1===c)a.push('')),a.push(''));else if(2===c){a.push('')),a.push(''));for(var m=0;m'));for(var g=0;g'))}else 3===c&&(a.push('')),a.push('')));else o[h][v]===Kr?0===c&&a.push('')):0===r?a.push('')):1===r?a.push('')):2===r&&a.push(''));return a}function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function cl(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return t=cl(cl({},{type:0,size:100,opacity:100,posType:0}),t),fl(e,t)},pl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=cl(cl({},{type:1,size:50,opacity:30,posType:1}),t),fl(e,t)},hl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=cl(cl({},{type:2,size:80,opacity:100,posType:2}),t),fl(e,t)};function vl(e,t){if(!e)return[];var n=e.getModuleCount(),o=al(e),a=[],r=[],l=[],i=t[0]/100,c=t[1]/100,s=t[2]/100,u=t[3],f=0;i<=0&&(i=70),c<=0&&(c=70);for(var d=[],p=[],h=0;h')):1===u&&(a.push('')),a.push('')),a.push('')),a.push('')),a.push('')));else if(o[g][m]===Kr)0===u&&a.push(''));else{if(d[g][m]&&p[g][m]&&g')),r.push('')),d[g][m]=!1,d[g+2][m]=!1,d[g][m+2]=!1,d[g+2][m+2]=!1,d[g+1][m+1]=!1;for(var w=0;w<3;w++)for(var x=0;x<3;x++)p[g+w][m+x]=!1}}if(d[g][m]&&p[g][m]&&g')),r.push(''));for(var S=0;S<2;S++)for(var O=0;O<2;O++)d[g+S][m+O]=!1,p[g+S][m+O]=!1}}if(d[g][m]&&p[g][m]&&(0===m||m>0&&(!e.isDark(g,m-1)||!p[g][m-1]))){for(var A=m,L=m,T=!0;T&&L2){for(var F=A;F')),l.push(''))}}if(d[g][m]&&p[g][m]&&(0===g||g>0&&(!e.isDark(g-1,m)||!p[g-1][m]))){for(var D=g,j=g,P=!0;P&&j1){for(var M=D;M'))}}d[g][m]&&a.push(''))}for(var I=0;I')),o.push(''))}}return o}var bl=function(e){return xr({listPoints:yl})({qrcode:e})};function _l(e,t){if(!e)return[];var n=e.getModuleCount(),o=al(e),a=new Array(n),r=1.001,l=t[0],i=t[1],c=t[2],s=t[3],u=t[4],f=0,d=[-Math.sqrt(3)/2,.5],p=[Math.sqrt(3)/2,.5],h=[0,0],v="matrix("+String(d[0])+", "+String(d[1])+", "+String(p[0])+", "+String(p[1])+", "+String(h[0])+", "+String(h[1])+")";l<=0&&(l=1),i<=0&&(i=1);for(var m=0;m')),a.push('')),a.push(''))):(a.push('')),a.push('')),a.push(''))));return a}function wl(e){if(!e)return"0 0 0 0";var t=e.getModuleCount();return e.$options.isSpace?"".concat(-t," ").concat(-t/2," ").concat(2*t," ").concat(2*t):"".concat(3-t," ").concat(-t/2," ").concat(2*t-6," ").concat(2*t-6)}var xl=vr().shape({height:_a().default(.5),height2:_a().default(.5),upColor:ba().default("#FF7F89"),leftColor:ba().default("#FFD7D9"),rightColor:ba().default("#FFEBF3")}),kl=function(e,t){try{t=xl.validateSync(t)}catch(o){return""}var n=["height","height2","upColor","leftColor","rightColor"].map((function(e){return t[e]}));return xr({listPoints:_l,getViewBox:wl})({qrcode:e,params:n})};function Cl(e,t){if(!e)return[];var n=e.getModuleCount(),o=al(e),a=new Array(n),r=t[1],l=t[2]/100/3,i=t[3]/100,c=t[4],s=t[5],u=t[6],f=t[7],d=0,p=[3,-3],h=[3,-3];l<=0&&(l=1),a.push(''));for(var v=0;v')):1===r&&a.push('')):0===r?a.push('')):1===r&&a.push(''));else if(o[v][m]===Zr){if(e.isDark(v,m))if(0===u)a.push(''));else if(1===u)a.push('')),a.push('')),a.push(''));else if(2===u){a.push('')),a.push('')),a.push(''));for(var g=0;g'));for(var y=0;y'))}}else o[v][m]===Kr?e.isDark(v,m)?0===u&&a.push('')):0===u&&a.push('')):e.isDark(v,m)?0===r?a.push('')):1===r&&a.push('')):0===r?a.push('')):1===r&&a.push(''));return a}var El=vr().shape({backgroudImage:ba(),type:aa().oneOf([0,1]).default(0),size:_a().default(100),opacity:_a().default(100),otherColorDark:ba().default("#000000"),otherColorLight:ba().default("#FFFFFF"),posType:aa().oneOf([0,1,2]).default(0),posColor:ba().default("#000000")}),Sl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=El.validateSync(t)}catch(o){return""}var n=["backgroudImage","type","size","opacity","otherColorDark","otherColorLight","posType","posColor"].map((function(e){return t[e]}));return xr({listPoints:Cl})({qrcode:e,params:n})},Ol=function(e){var t=e.qrcode,n=e.params,o=n[5],a=t.$options,r=a.width,l=a.height;return new Promise((function(e,a){(function(e,t,n,o){var a=document.createElement("canvas"),r=a.getContext("2d"),l=document.createElement("img"),i=[];a.style.imageRendering="pixelated",t*=3,l.src=e[0];var c=e[1]/100,s=e[2]/100;return new Promise((function(e){l.onload=function(){a.width=t,a.height=t,r.imageSmoothingEnabled=!1,r.drawImage(l,0,0,t,t);for(var o=0;o(d/255+s-.5)*(c+1)+.5&&(o%3!=1||u%3!=1)&&i.push(''))}var p,h,v;e(i)}}))})(n,t.getModuleCount(),"#S-black").then((function(a){var i='\n \n \n \n \n \n \n \n \n ').concat(a.concat(function(e,t){if(!e)return[];for(var n=e.getModuleCount(),o=al(e),a=new Array(n),r=t[3],l=t[4],i=t[6],c=0,s=0;s')):a.push('')):0===r?a.push('")):a.push('')):o[s][u]===el?e.isDark(s,u)?2===l?a.push('')):a.push('')):0===l?a.push('')):a.push('')):o[s][u]===Zr?e.isDark(s,u)&&a.push('')):o[s][u]===Kr?e.isDark(s,u)?a.push('')):a.push('')):e.isDark(s,u)&&a.push(''))}return a}(t,n)).join(""),"\n ");e(i)})).catch((function(t){e(t)}))}))},Al=vr().shape({backgroudImage:ba().default(),contrast:_a().default(0),exposure:_a().default(0),alignType:aa().oneOf([0,1,2]).default(0),timingType:aa().oneOf([0,1,2]).default(0),otherColor:ba().default("#000000"),posColor:ba().default("#000000")}),Ll=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=Al.validateSync(t)}catch(o){return""}var n=["backgroudImage","contrast","exposure","alignType","timingType","otherColor","posColor"].map((function(e){return t[e]}));return Ol({qrcode:e,params:n})};function Tl(e,t){if(!e)return[];for(var n=e.getModuleCount(),o=al(e),a=[],r=[],l=[],i=0,c=t[0],s=t[1],u=[],f=[],d=0;d')),a.push(''));else if(e.isDark(v,h)&&o[v][h]===Kr);else{if(u[v][h]&&f[v][h]&&v')),e.isDark(v+1,h+1)&&r.push('')),u[v+1][h]=!1,u[v][h+1]=!1,u[v+2][h+1]=!1,u[v+1][h+2]=!1;for(var b=0;b<3;b++)for(var _=0;_<3;_++)f[v+b][h+_]=!1}}if(v'));for(var w=0;w<2;w++)for(var x=0;x<2;x++)u[v+w][h+x]=!1,f[v+w][h+x]=!1}u[v][h]&&h')),u[v][h]=!1,u[v][h+1]=!1),u[v][h]&&v')),u[v][h]=!1,u[v+1][h]=!1),u[v][h]&&(e.isDark(v,h)?a.push('')):o[v][h]===Yr&&rl(0,1)>.85&&l.push('')))}for(var k=0;k'));for(var h=0;h'));else if(1===i)a.push('')),a.push(''));else if(2===i){a.push('')),a.push(''));for(var m=0;m'));for(var g=0;g'))}else 3===i&&(a.push('')),a.push('')));else if(e.isDark(h,v)&&o[h][v]===Kr)0===i&&a.push(''));else{var y=Math.sqrt(Math.pow((n-1)/2-h,2)+Math.pow((n-1)/2-v,2))/(n/2*Math.sqrt(2));if(0===l){var b=(1-Math.cos(Math.PI*y))/6+.2,_=s,w=Number(e.isDark(h,v));0===r?(b+=.2,a.push(''))):1===r&&a.push(''))}if(1===l){var x=0,k=s,C=Number(e.isDark(h,v));y>.25&&y<.4?(x=.5,k=u,C=1):(x=1/4,0===r&&(x=.15)),0===r?(x=2*x+.1,e.isDark(h,v)?a.push('')):(x-=.1,a.push('')))):1===r&&(e.isDark(h,v)?a.push('')):a.push('')))}}return a}var Pl=vr().shape({type:aa().oneOf([0,1]).default(1),size:aa().oneOf([0,1]).default(0),opacity:_a().default(100),posType:aa().oneOf([0,1,2,3]).default(1),otherColor:ba().default("#000000"),otherColor2:ba().default("#000000"),posColor:ba().default("#000000")}),Ml=vr().shape({type:aa().oneOf([0,1]).default(1),size:aa().oneOf([0,1]).default(1),opacity:_a().default(100),posType:aa().oneOf([0,1,2,3]).default(1),otherColor:ba().default("#ABB8C3"),otherColor2:ba().default("#000000"),posColor:ba().default("#000000")}),Il=function(e,t){try{t=Pl.validateSync(t)}catch(o){return""}var n=["type","size","opacity","posType","otherColor","otherColor2","posColor"].map((function(e){return t[e]}));return xr({listPoints:jl})({qrcode:e,params:n})},Bl=function(e,t){try{t=Ml.validateSync(t)}catch(o){return""}var n=["type","size","opacity","posType","otherColor","otherColor2","posColor"].map((function(e){return t[e]}));return xr({listPoints:jl})({qrcode:e,params:n})};function Vl(e,t){if(!e)return[];var n=e.getModuleCount(),o=al(e),a=new Array(n),r=t[0],l=t[1]/100,i=t[2]/100,c=t[3],s=0,u=t[4],f=t[5],d=[3,-3],p=[3,-3];l<=0&&(l=1);for(var h=[],v=[],m=0;m'));else if(1===c)a.push('')),a.push(''));else if(2===c){a.push('')),a.push(''));for(var _=0;_'));for(var w=0;w'))}else 3===c&&(a.push('')),a.push('')));else if(o[y][b]===Kr)0===c&&a.push(''));else{if(0===r){if(0===y||y>0&&(!e.isDark(y-1,b)||!v[y-1][b])){for(var x=0,k=!0;k&&y+x1){for(var C=0;C'))}}h[y][b]&&a.push(''))}if(1===r){if(0===b||b>0&&(!e.isDark(y,b-1)||!v[y][b-1])){for(var E=0,S=!0;S&&b+E1){for(var O=0;O'))}}h[y][b]&&a.push(''))}if(2===r){if(0===b||b>0&&(!e.isDark(y,b-1)||!v[y][b-1])){for(var A=0,L=!0;L&&b+A1){for(var T=0;T'))}}if(0===y||y>0&&(!e.isDark(y-1,b)||!v[y-1][b])){for(var F=0,D=!0;D&&y+F1){for(var j=0;j'))}}h[y][b]&&a.push(''))}if(3===r){if(y>b^y+b0&&(!e.isDark(y,b-1)||!v[y][b-1])){for(var P=0,M=!0;M&&b+P1){for(var I=0;I'))}}}else if(0===y||y>0&&(!e.isDark(y-1,b)||!v[y-1][b])){for(var B=0,V=!0;V&&y+B1){for(var R=0;R'))}}h[y][b]&&a.push(''))}if(4===r){if(0===b||0===y||b>0&&y>0&&(!e.isDark(y-1,b-1)||!v[y-1][b-1])){for(var U=0,N=!0;N&&b+U1){for(var $=0;$'))}}h[y][b]&&a.push(''))}if(5===r){if(0===y||b===n-1||y>0&&b=0;)e.isDark(y+z,b-z)&&h[y+z][b-z]?z++:G=!1;if(z-0>1){for(var H=0;H'))}}h[y][b]&&a.push(''))}if(6===r){if(0===y||b===n-1||y>0&&b=0;)e.isDark(y+X,b-X)&&v[y+X][b-X]?X++:q=!1;if(X-0>1){for(var W=0;W'))}}if(0===b||0===y||b>0&&y>0&&(!e.isDark(y-1,b-1)||!h[y-1][b-1])){for(var Y=0,Z=!0;Z&&b+Y1){for(var K=0;K'))}}a.push(''))}}return a}var Rl=vr().shape({type:aa().oneOf([0,1,2,3,4,5,6]).default(2),size:_a().default(50),opacity:_a().default(100),posType:aa().oneOf([0,1,2,3]).default(3),otherColor:ba().default("#000000"),posColor:ba().default("#000000")}),Ul=vr().shape({type:aa().oneOf([0,1,2,3,4,5,6]).default(6),size:_a().default(50),opacity:_a().default(100),posType:aa().oneOf([0,1,2,3]).default(0),otherColor:ba().default("#000000"),posColor:ba().default("#000000")}),Nl=function(e,t){try{t=Rl.validateSync(t)}catch(o){return""}var n=["type","size","opacity","posType","otherColor","posColor"].map((function(e){return t[e]}));return xr({listPoints:Vl})({qrcode:e,params:n})},$l=function(e,t){try{t=Ul.validateSync(t)}catch(o){return""}var n=["type","size","opacity","posType","otherColor","posColor"].map((function(e){return t[e]}));return xr({listPoints:Vl})({qrcode:e,params:n})};t.default={rendererRect:dl,rendererRound:pl,rendererRandRound:hl,rendererDSJ:gl,rendererResImage:Ll,rendererImage:Sl,renderer25D:kl,rendererRandRect:bl,rendererCircle:Dl,rendererFuncA:Il,rendererFuncB:Bl,rendererLine:Nl,rendererLine2:$l,encodeData:ol}}]).default;const Bo=[{path:"M 0 0 L 20 20",style:"solid",points:["",""],data:[{x:0,y:0},{x:200,y:0}]}],Vo=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"],data:[{x:0,y:0},{x:200,y:0}]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0,data:[{x:0,y:0},{x:0,y:100},{x:200,y:100}]},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0,data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0,data:[{x:0,y:0},{x:200,y:0}]}]}];var Ro={},Uo={},No={};Object.defineProperty(No,"__esModule",{value:!0});No.default=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.text=n.text||t,this.options=n},Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.CODE39=void 0;var $o,zo=function(){function e(e,t){for(var n=0;n=200){r=e.shift()-105;var l=ua.SWAP[r];void 0!==l?a=t.next(e,n+1,l):(o!==ua.SET_A&&o!==ua.SET_B||r!==ua.SHIFT||(e[0]=o===ua.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),a=t.next(e,n+1,o))}else r=t.correctIndex(e,o),a=t.next(e,n+1,o);var i=r*n;return{result:t.getBar(r)+a.result,checksum:i+a.checksum}}}]),t}();Qo.default=fa;var da={};Object.defineProperty(da,"__esModule",{value:!0});var pa=ea,ha=function(e){return e.match(new RegExp("^"+pa.A_CHARS+"*"))[0].length},va=function(e){return e.match(new RegExp("^"+pa.B_CHARS+"*"))[0].length},ma=function(e){return e.match(new RegExp("^"+pa.C_CHARS+"*"))[0]};function ga(e,t){var n=t?pa.A_CHARS:pa.B_CHARS,o=e.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+ya(e.substring(o[1].length));var a=e.match(new RegExp("^"+n+"+"))[0];return a.length===e.length?e:a+String.fromCharCode(t?205:206)+ga(e.substring(a.length),!t)}function ya(e){var t=ma(e),n=t.length;if(n===e.length)return e;e=e.substring(n);var o=ha(e)>=va(e);return t+String.fromCharCode(o?206:205)+ga(e,o)}da.default=function(e){var t=void 0;if(ma(e).length>=2)t=pa.C_START_CHAR+ya(e);else{var n=ha(e)>va(e);t=(n?pa.A_START_CHAR:pa.B_START_CHAR)+ga(e,n)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(e,t){return String.fromCharCode(203)+t}))},Object.defineProperty(Jo,"__esModule",{value:!0});var ba=wa(Qo),_a=wa(da);function wa(e){return e&&e.__esModule?e:{default:e}}function xa(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ka=function(e){function t(e,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var o=xa(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,_a.default)(e),n));else o=xa(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return xa(o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,ba.default),t}();Jo.default=ka;var Ca={};Object.defineProperty(Ca,"__esModule",{value:!0});var Ea=function(){function e(e,t){for(var n=0;n10*n.width?10*n.width:n.fontSize,o.guardHeight=n.height+o.fontSize/2+n.textMargin,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Qa.default),Za(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(e,t){return this.text.substr(e,t)}},{key:"leftEncode",value:function(e,t){return(0,Ja.default)(e,t)}},{key:"rightText",value:function(e,t){return this.text.substr(e,t)}},{key:"rightEncode",value:function(e,t){return(0,Ja.default)(e,t)}},{key:"encodeGuarded",value:function(){var e={fontSize:this.fontSize},t={height:this.guardHeight};return[{data:Ka.SIDE_BIN,options:t},{data:this.leftEncode(),text:this.leftText(),options:e},{data:Ka.MIDDLE_BIN,options:t},{data:this.rightEncode(),text:this.rightText(),options:e},{data:Ka.SIDE_BIN,options:t}]}},{key:"encodeFlat",value:function(){return{data:[Ka.SIDE_BIN,this.leftEncode(),Ka.MIDDLE_BIN,this.rightEncode(),Ka.SIDE_BIN].join(""),text:this.text}}}]),t}();qa.default=tr,Object.defineProperty(Ha,"__esModule",{value:!0});var nr=function(){function e(e,t){for(var n=0;n10*n.width?o.fontSize=10*n.width:o.fontSize=n.fontSize,o.guardHeight=n.height+o.fontSize/2+n.textMargin,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Fr.default),Lr(t,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==Pr(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=(0,Tr.default)(this.data.substr(0,6),"LLLLLL"),e+="01010",e+=(0,Tr.default)(this.data.substr(6,6),"RRRRRR"),{data:e+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101"+(0,Tr.default)(this.data[0],"L"),options:{height:this.guardHeight}}),e.push({data:(0,Tr.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:"01010",options:{height:this.guardHeight}}),e.push({data:(0,Tr.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,Tr.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),e}}]),t}();function Pr(e){var t,n=0;for(t=1;t<11;t+=2)n+=parseInt(e[t]);for(t=0;t<11;t+=2)n+=3*parseInt(e[t]);return(10-n%10)%10}Ar.default=jr;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});var Ir=function(){function e(e,t){for(var n=0;n10*n.width?o.fontSize=10*n.width:o.fontSize=n.fontSize,o.guardHeight=n.height+o.fontSize/2+n.textMargin,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Vr.default),Ir(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=this.encodeMiddleDigits(),{data:e+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101",options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),e}},{key:"encodeMiddleDigits",value:function(){var e=this.upcA[0],t=this.upcA[this.upcA.length-1],n=zr[parseInt(t)][parseInt(e)];return(0,Br.default)(this.middleDigits,n)}}]),t}();function Hr(e,t){for(var n=parseInt(e[e.length-1]),o=$r[n],a="",r=0,l=0;l=3&&this.number<=131070}}]),t}();zl.pharmacode=Xl;var ql={};Object.defineProperty(ql,"__esModule",{value:!0}),ql.codabar=void 0;var Wl=function(){function e(e,t){for(var n=0;n0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function Ei(e,t,n){if(n.displayValue&&tt&&(t=e[n].height);return t},xi.getEncodingHeight=Ci,xi.getBarcodePadding=Ei,xi.calculateEncodingAttributes=function(e,t,n){for(var o=0;o0?(n=0,a.textAlign="left"):"right"==e.textAlign?(n=t.width-1,a.textAlign="right"):(n=t.width/2,a.textAlign="center"),a.fillText(t.text,n,o))}},{key:"moveCanvasDrawing",value:function(e){this.canvas.getContext("2d").translate(e.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),e}();wi.default=Ti;var Fi={};Object.defineProperty(Fi,"__esModule",{value:!0});var Di=function(){function e(e,t){for(var n=0;n0&&(this.drawRect(l-t.width*r,o,t.width*r,t.height,e),r=0);r>0&&this.drawRect(l-t.width*(r-1),o,t.width*r,t.height,e)}},{key:"drawSVGText",value:function(e,t,n){var o,a,r=this.document.createElementNS(Mi,"text");t.displayValue&&(r.setAttribute("style","font:"+t.fontOptions+" "+t.fontSize+"px "+t.font),a="top"==t.textPosition?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,"left"==t.textAlign||n.barcodePadding>0?(o=0,r.setAttribute("text-anchor","start")):"right"==t.textAlign?(o=n.width-1,r.setAttribute("text-anchor","end")):(o=n.width/2,r.setAttribute("text-anchor","middle")),r.setAttribute("x",o),r.setAttribute("y",a),r.appendChild(this.document.createTextNode(n.text)),e.appendChild(r))}},{key:"setSvgAttributes",value:function(e,t){var n=this.svg;n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+e+" "+t),n.setAttribute("xmlns",Mi),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(e,t,n){var o=this.document.createElementNS(Mi,"g");return o.setAttribute("transform","translate("+e+", "+t+")"),n.appendChild(o),o}},{key:"setGroupOptions",value:function(e,t){e.setAttribute("style","fill:"+t.lineColor+";")}},{key:"drawRect",value:function(e,t,n,o,a){var r=this.document.createElementNS(Mi,"rect");return r.setAttribute("x",e),r.setAttribute("y",t),r.setAttribute("width",n),r.setAttribute("height",o),a.appendChild(r),r}}]),e}();Fi.default=Ii;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});var Vi=function(){function e(e,t){for(var n=0;n(qt("data-v-40ad5c5a"),e=e(),Wt(),e))((()=>Mt("i",{class:"icon-font iconfont icon-text-path"},null,-1))),$c={class:"mt-5px"},zc={class:"edit-section"},Gc={class:"font-bold text-lg mb-6px"},Hc={class:"item-box"},Xc={overflow:"visible",width:"20",height:"20"},qc=["transform"],Wc=["fill","stroke","d"],Yc={class:"item-box"},Zc={overflow:"visible",width:"20",height:"20"},Kc=["d","stroke-dasharray","marker-start","marker-end"],Jc={class:"edit-section"},Qc={class:"font-bold text-lg mb-6px"},es={class:"mt-5px"},ts={class:"mt-5px"},ns={class:"mt-5px"},os={class:"mt-5px"},as=d(Ft({__name:"EditorPool",setup(e){g();const{addTemplate:t}=y(),{setCanvasTransform:n}=b(),{createQRCodeElement:o,createBarCodeElement:a,createImageElement:r,createTextElement:l,createPathElement:i,createLineElement:c,createArcTextElement:s,createVerticalTextElement:f,createVideoElement:d,createTableElement:p}=_(),h=Nt(window.location.href),v=Nt(!0),m=Nt(0),L=Nt(),T=Nt(!1),F={A1:Io.rendererRect,A2:Io.rendererRound,A3:Io.rendererRandRound,SP1:Io.rendererDSJ,SP2:Io.rendererRandRect,SP3:Io.rendererCircle,B1:Io.renderer25D,C1:Io.rendererImage,A_a1:Io.rendererLine,A_a2:Io.rendererLine2,A_b1:Io.rendererFuncA,A_b2:Io.rendererFuncB},D=Nt(".pdf,.psd,.cdr,.ai,.svg,.jpg,.jpeg,.png,.webp,.json,.mp4"),j=Nt(!1),P=[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:w.TRIANGLE},{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"}],M=()=>{const e={format:"pharmacode",lineColor:"#0aa",width:4,height:40,displayValue:!1};kc("#barcode","1234",e);const t=document.getElementById("barcode");if(!t)return;const n=(new XMLSerializer).serializeToString(t),o="data:image/svg+xml;base64,"+jo.encode(n);a(o,"1234",e)},I=e=>{const t="data:image/svg+xml;base64,"+jo.encode(F[e](((e=118,t=118)=>{const n={text:h.value,width:e,height:t,correctLevel:m.value,isSpace:v.value};return Io.encodeData(n)})(118,118))),n={codeStyle:e,codeSpace:v.value,codeError:m.value};o(t,n,h.value)},B=()=>{T.value=!0},V=()=>{T.value=!1},R=e=>u(this,null,(function*(){const[o]=A(),a=e.file.name.split(".").pop();if(!D.value.split(",").includes(`.${a}`))return;if("svg"===a){const t=yield x(e.file),n=yield k(t);o.add(...n.objects),o.renderAll()}if("json"===a){const n=yield x(e.file),o=JSON.parse(n);t(o)}if(["jpg","jpeg","png","webp"].includes(a)){const t=yield C(e.file);r(t)}if(["mp4"].includes(a)){const t=URL.createObjectURL(e.file);d(t)}const l=yield E(e.file,a);if(j.value=!1,l&&200===l.data.code){const e=l.data.data;if(!e)return;yield t(e),n()}})),U=e=>{L.value.clearFiles();const t=e[0];t.uid=We(),L.value.handleStart(t)},N=(e,t="transverse",n=!1)=>{l(e,t,n)},$=()=>{s(36)},z=()=>{p()};return(e,t)=>{const n=$t("IconUpload"),o=Ye,a=Ze,r=He,l=$t("IconH1"),s=$t("IconH3"),u=$t("IconTextRotationNone"),d=$t("IconTextRotationDown"),p=$t("IconText"),h=S,v=$t("IconInsertTable"),m=$t("IconPayCodeTwo"),g=$t("IconTwoDimensionalCodeTwo"),y=$t("IconMagicWand"),b=O,_=Ke;return Dt(),It("div",Cc,[Mt("div",Ec,[Mt("div",Sc,Rt(e.$t("message.files")),1),zt(r,{gutter:10,class:"mt-10"},{default:Pt((()=>[zt(a,{span:8},{default:Pt((()=>[Ht((Dt(),jt(o,{ref_key:"uploadRef",ref:L,"on-exceed":U,action:"http","http-request":R,limit:1,accept:D.value,class:"edit-upload"},{default:Pt((()=>[Mt("div",Oc,[zt(n,{class:"icon-font"}),Mt("div",Ac,Rt(e.$t("message.uploadFiles")),1)])])),_:1},8,["accept"])),[[_,j.value]])])),_:1})])),_:1})]),Mt("div",Lc,[Mt("div",Tc,Rt(e.$t("message.text")),1),zt(r,{gutter:10,class:"mt-10"},{default:Pt((()=>[zt(a,{span:8},{default:Pt((()=>[Mt("div",{class:"item-box",onClick:t[0]||(t[0]=e=>N(80))},[zt(l,{class:"icon-font"}),Mt("div",Fc,Rt(e.$t("message.title")),1)])])),_:1}),zt(a,{span:8,onClick:t[1]||(t[1]=e=>N(60))},{default:Pt((()=>[Mt("div",Dc,[zt(s,{class:"icon-font"}),Mt("div",jc,Rt(e.$t("message.subtitle")),1)])])),_:1}),zt(a,{span:8,onClick:t[2]||(t[2]=e=>N(36))},{default:Pt((()=>[Mt("div",Pc,[zt(u,{class:"icon-font"}),Mt("div",Mc,Rt(e.$t("message.horizontalText")),1)])])),_:1}),zt(a,{span:8,onClick:t[3]||(t[3]=e=>{f(36)})},{default:Pt((()=>[Mt("div",Ic,[zt(d,{class:"icon-font"}),Mt("div",Bc,Rt(e.$t("message.verticalText")),1)])])),_:1}),zt(a,{span:8,onClick:t[4]||(t[4]=e=>N(36,void 0,!0))},{default:Pt((()=>[Mt("div",Vc,[zt(p,{class:"icon-font"}),Mt("div",Rc,Rt(e.$t("message.hollowOutText")),1)])])),_:1}),zt(a,{span:8,onClick:$},{default:Pt((()=>[Mt("div",Uc,[Nc,Mt("div",$c,Rt(e.$t("message.circularText")),1)])])),_:1})])),_:1})]),Mt("div",zc,[Mt("div",Gc,Rt(e.$t("message.shape")),1),zt(r,{gutter:10,class:"mt-10"},{default:Pt((()=>[(Dt(),It(Vt,null,Bt(P,((e,t)=>zt(a,{span:8,key:t,onClick:t=>(e=>{i(e.path)})(e)},{default:Pt((()=>[Mt("div",Hc,[(Dt(),It("svg",Xc,[Mt("g",{transform:`scale(${20/e.viewBox[0]}, ${20/e.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[Mt("path",{class:Gt(["shape-path",{outlined:e.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:e.outlined?"#999":"transparent",stroke:e.outlined?"transparent":"#999","stroke-width":"2",d:e.path},null,10,Wc)],8,qc)]))])])),_:2},1032,["onClick"]))),64)),(Dt(!0),It(Vt,null,Bt(Ut(Bo),((e,t)=>(Dt(),jt(a,{span:8,key:t,onClick:t=>(e=>{const t="dashed"===e.style?[6,6]:void 0;c(e.data,e.points[0],e.points[1],t)})(e)},{default:Pt((()=>[Mt("div",Yc,[(Dt(),It("svg",Zc,[Mt("defs",null,[e.points[0]?(Dt(),jt(h,{key:0,class:"line-marker",id:`preset-line-${t}`,position:"start",type:e.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Xt("",!0),e.points[1]?(Dt(),jt(h,{key:1,class:"line-marker",id:`preset-line-${t}`,position:"end",type:e.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Xt("",!0)]),Mt("path",{class:"line-path",d:e.path,stroke:"#999",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===e.style?"0, 0":"4, 1","marker-start":e.points[0]?`url(#preset-line-${t}-${e.points[0]}-start)`:"","marker-end":e.points[1]?`url(#preset-line-${t}-${e.points[1]}-end)`:""},null,8,Kc)]))])])),_:2},1032,["onClick"])))),128))])),_:1})]),Mt("div",Jc,[Mt("div",Qc,Rt(e.$t("message.module")),1),zt(r,{gutter:10,class:"mt-10"},{default:Pt((()=>[zt(a,{span:8},{default:Pt((()=>[Mt("div",{class:"item-box",onClick:z},[zt(v,{class:"icon-font"}),Mt("div",es,Rt(e.$t("message.fabricTable")),1)])])),_:1}),zt(a,{span:8},{default:Pt((()=>[Mt("div",{class:"item-box",onClick:M},[zt(m,{class:"icon-font"}),Mt("div",ts,Rt(e.$t("message.barCode")),1)])])),_:1}),zt(a,{span:8},{default:Pt((()=>[Mt("div",{class:"item-box",onClick:t[5]||(t[5]=e=>I("A1"))},[zt(g,{class:"icon-font"}),Mt("div",ns,Rt(e.$t("message.QRCode")),1)])])),_:1}),zt(a,{span:8},{default:Pt((()=>[Mt("div",{class:"item-box",onClick:B},[zt(y,{class:"icon-font"}),Mt("div",os,Rt(e.$t("message.AICutoutImage")),1)])])),_:1})])),_:1})]),zt(b,{visible:T.value,onClose:V},null,8,["visible"])])}}}),[["__scopeId","data-v-40ad5c5a"]]),rs=["src","onClick"],ls=d(Ft({__name:"TemplatePool",setup(e){const t=L(),n=Nt([]),o=Nt("data"),a=Nt("buy"),r=Nt(1),l=Nt(1),i=Nt(),c=hn((()=>u(this,null,(function*(){const e=i.value;e.scrollHeight-(e.scrollTop+e.clientHeight)<=200&&r.valueu(this,null,(function*(){const e={page:r.value,size:T},t=yield $e(e);t.data&&200===t.data.code&&(r.value=t.data.data.page,l.value=t.data.data.total_pages,n.value=n.value.concat(t.data.data.items))})),f=e=>{Qe.confirm("是否确认更换模板?",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then((()=>u(this,null,(function*(){const n=F(e.data),o=JSON.parse(n);yield t.changeTemplate(o),et({type:"success",message:"更换模板成功"})})))).catch((()=>{et({type:"error",message:"模板加载失败,请联系管理员修改bug了"})}))};return Yt((()=>u(this,null,(function*(){yield s()})))),(e,t)=>{const r=tt,l=He,s=nt,u=ot,d=at,p=rt;return Dt(),It("div",null,[zt(l,{class:"layout-search"},{default:Pt((()=>[zt(r,{"prefix-icon":Ut(Je),placeholder:e.$t("message.searchTemp")},null,8,["prefix-icon","placeholder"])])),_:1}),zt(p,{modelValue:o.value,"onUpdate:modelValue":t[2]||(t[2]=e=>o.value=e),class:"layout-tabs"},{default:Pt((()=>[zt(s,{label:e.$t("message.recommendTemp"),name:"data"},{default:Pt((()=>[Mt("div",{class:"layout-templates",onScroll:t[0]||(t[0]=(...e)=>Ut(c)&&Ut(c)(...e)),ref_key:"templateRef",ref:i},[(Dt(!0),It(Vt,null,Bt(n.value,((e,t)=>(Dt(),It("div",{key:e.id,class:"thumbnail"},[Mt("img",{src:e.previewURL+"?x-oss-process=style/img_tum",alt:"",ref_for:!0,ref:e=>((e,t)=>{if(!e)return;const n=()=>{const n=e.parentElement;if(!n)return;const o=t>=2?2:0,a=Math.ceil(n.clientHeight/2)+o;n.style.gridRowEnd=`span ${a}`};n(),e.onload=n,e.onerror=function(){e.src=new URL(""+new URL("loading-356a6359.gif",import.meta.url).href,self.location).href,n()}})(e,t),onClick:t=>f(e)},null,8,rs)])))),128))],544)])),_:1},8,["label"]),zt(s,{label:e.$t("message.myTemp"),name:"self"},{default:Pt((()=>[zt(d,{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value=e),size:"large",class:"full-ratio"},{default:Pt((()=>[zt(u,{value:"buy",label:e.$t("message.myPurchases")},null,8,["label"]),zt(u,{value:"collect",label:e.$t("message.myFavorites")},null,8,["label"])])),_:1},8,["modelValue"])])),_:1},8,["label"]),zt(s,{label:e.$t("message.teamTemp"),name:"team"},{default:Pt((()=>[Zt(Rt(e.$t("message.teamTemp")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-4a3b0796"]]);w.ROUND_RECT,w.CUT_RECT_DIAGONAL,w.CUT_RECT_SINGLE,w.CUT_RECT_SAMESIDE,w.ROUND_RECT_DIAGONAL,w.ROUND_RECT_SINGLE,w.ROUND_RECT_SAMESIDE,w.MESSAGE,w.ROUND_MESSAGE,w.L,w.RING_RECT,w.PLUS,w.TRIANGLE,w.PARALLELOGRAM_LEFT,w.PARALLELOGRAM_RIGHT,w.TRAPEZOID,w.BULLET,w.INDICATOR;const is=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z"},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z"},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:w.CUT_RECT_SAMESIDE},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 50 200 Q 0 200 0 150 L 0 0 Z",pathFormula:w.ROUND_RECT_DIAGONAL},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:w.ROUND_RECT_SINGLE},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:w.ROUND_RECT_SAMESIDE}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:w.TRIANGLE},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:w.PARALLELOGRAM_LEFT},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:w.PARALLELOGRAM_RIGHT},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:w.TRAPEZOID},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:w.BULLET},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:w.INDICATOR},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:w.L},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:w.RING_RECT},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pathFormula:w.PLUS},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:w.MESSAGE},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:w.ROUND_MESSAGE},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 80 40 L 20 20 L 40 80 L 0 100 L 40 120 L 20 180 L 80 160 L 100 200 L 120 160 L 180 180 L 160 120 L 200 100 L 160 80 L 180 20 L 120 40 L 100 0 Z"}]},{type:"箭头",children:[{viewBox:[200,200],path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:[200,200],path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:[200,200],path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z"},{viewBox:[200,200],path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:[200,200],path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z"},{viewBox:[200,200],path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:[1024,1024],path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:[1024,1024],path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:[1024,1024],path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:[1024,1024],path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:[1024,1024],path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:[1024,1024],path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:[1024,1024],path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:[1024,1024],path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:[1024,1024],path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:[1024,1024],path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:[1024,1024],path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:[1024,1024],path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:[1024,1024],path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:[1024,1024],path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:[1024,1024],path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:[1024,1024],path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:[1024,1024],path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:[1024,1024],path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0},{viewBox:[1024,1024],path:"M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z",special:!0},{viewBox:[1024,1024],path:"M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z",special:!0},{viewBox:[1024,1024],path:"M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z",special:!0}]},{type:"线性",children:[{viewBox:[1024,1024],path:"M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z",special:!0,outlined:!0}]}],cs={class:"shape-pool"},ss={class:"category-name"},us={class:"shape-list"},fs=["onClick"],ds={overflow:"visible",width:"20",height:"20"},ps=["transform"],hs=["fill","stroke","d"],vs=d(Ft({__name:"PathPool",emits:["select"],setup(e,{emit:t}){const n=t;return(e,t)=>(Dt(),It("div",cs,[(Dt(!0),It(Vt,null,Bt(Ut(is),(e=>(Dt(),It("div",{class:"category",key:e.type},[Mt("div",ss,Rt(e.type),1),Mt("div",us,[(Dt(!0),It(Vt,null,Bt(e.children,((e,t)=>(Dt(),It("div",{class:"shape-item",key:t},[Mt("div",{class:"shape-content",onClick:t=>{n("select",e)}},[(Dt(),It("svg",ds,[Mt("g",{transform:`scale(${20/e.viewBox[0]}, ${20/e.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[Mt("path",{class:Gt(["shape-path",{outlined:e.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:e.outlined?"#999":"transparent",stroke:e.outlined?"transparent":"#999","stroke-width":"2",d:e.path},null,10,hs)],8,ps)]))],8,fs)])))),128))])])))),128))]))}}),[["__scopeId","data-v-9e26ebaa"]]),ms={class:"line-pool"},gs={class:"category-name"},ys={class:"line-list"},bs=["onClick"],_s={overflow:"visible",width:"20",height:"20"},ws=["d","stroke-dasharray","marker-start","marker-end"],xs=d(Ft({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t;return(e,t)=>{const o=S;return Dt(),It("div",ms,[(Dt(!0),It(Vt,null,Bt(Ut(Vo),((e,t)=>(Dt(),It("div",{class:"category",key:e.type},[Mt("div",gs,Rt(e.type),1),Mt("div",ys,[(Dt(!0),It(Vt,null,Bt(e.children,((e,a)=>(Dt(),It("div",{class:"line-item",key:a},[Mt("div",{class:"line-content",onClick:t=>(e=>{n("select",e)})(e)},[(Dt(),It("svg",_s,[Mt("defs",null,[e.points[0]?(Dt(),jt(o,{key:0,class:"line-marker",id:`preset-line-${t}-${a}`,position:"start",type:e.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Xt("",!0),e.points[1]?(Dt(),jt(o,{key:1,class:"line-marker",id:`preset-line-${t}-${a}`,position:"end",type:e.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Xt("",!0)]),Mt("path",{class:"line-path",d:e.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===e.style?"0, 0":"4, 1","marker-start":e.points[0]?`url(#preset-line-${t}-${a}-${e.points[0]}-start)`:"","marker-end":e.points[1]?`url(#preset-line-${t}-${a}-${e.points[1]}-end)`:""},null,8,ws)]))],8,bs)])))),128))])])))),128))])}}}),[["__scopeId","data-v-983cb3e2"]]),ks={class:"layout-pool"},Cs=d(Ft({__name:"MaterialPool",setup(e){g();const{createLineElement:t,createPathElement:n}=_(),o=Nt("data"),a=(e,t)=>{const[n]=A();n.add(t)},r=e=>u(this,null,(function*(){const t=e[0],[n]=A();if(!t)return;const o=yield x(t);yield k(o,a),n.renderAll()}));return(e,a)=>{const l=$t("IconUpload"),i=lt,c=qe,s=D,u=Ze,f=tt,d=He,p=nt,h=rt;return Dt(),It("div",ks,[zt(d,{class:"layout-search"},{default:Pt((()=>[zt(u,{span:5},{default:Pt((()=>[zt(s,{onChange:a[0]||(a[0]=e=>r(e))},{default:Pt((()=>[zt(c,{placement:"top","hide-after":0,content:e.$t("message.searchMat")},{default:Pt((()=>[zt(i,{type:"primary"},{default:Pt((()=>[zt(l)])),_:1})])),_:1},8,["content"])])),_:1})])),_:1}),zt(u,{span:19},{default:Pt((()=>[zt(f,{"prefix-icon":Ut(Je),placeholder:e.$t("message.searchMat")},null,8,["prefix-icon","placeholder"])])),_:1})])),_:1}),Mt("div",null,[zt(h,{modelValue:o.value,"onUpdate:modelValue":a[3]||(a[3]=e=>o.value=e),class:"layout-tabs material-tab"},{default:Pt((()=>[zt(p,{label:e.$t("message.recommendMat"),name:"data"},{default:Pt((()=>[zt(xs,{onSelect:a[1]||(a[1]=e=>(e=>{const n="dashed"===e.style?[6,6]:void 0;t(e.data,e.points[0],e.points[1],n)})(e))}),zt(vs,{onSelect:a[2]||(a[2]=e=>{n(e.path)})})])),_:1},8,["label"]),zt(p,{label:e.$t("message.myBookmarksMat"),name:"self"},{default:Pt((()=>[Zt(Rt(e.$t("message.myBookmarksMat")),1)])),_:1},8,["label"]),zt(p,{label:e.$t("message.myPurchasesMat"),name:"team"},{default:Pt((()=>[Zt(Rt(e.$t("message.myPurchasesMat")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-eb444a44"]]),Es={class:"layout-pool"},Ss={class:"large"},Os={class:"middle"},As={class:"small"},Ls=d(Ft({__name:"TextboxPool",setup(e){const{t:t}=g(),{createTextElement:n}=_(),o=Nt("transverse"),a=Nt(!1),r=Nt("data"),l=e=>{n(e,o.value,a.value)};return(e,n)=>{const i=tt,c=He,s=$t("IconTextRotationNone"),u=ot,f=$t("IconTextRotationDown"),d=at,p=Ze,h=$t("IconText"),v=it,m=nt,g=rt;return Dt(),It("div",Es,[zt(c,{class:"layout-search"},{default:Pt((()=>[zt(i,{"prefix-icon":Ut(Je),placeholder:Ut(t)("message.searchText")},null,8,["prefix-icon","placeholder"])])),_:1}),zt(c,{class:"layout-text",onClick:n[0]||(n[0]=e=>l(80))},{default:Pt((()=>[Mt("div",Ss,Rt(Ut(t)("message.addTitle")),1)])),_:1}),zt(c,{class:"layout-text",onClick:n[1]||(n[1]=e=>l(60))},{default:Pt((()=>[Mt("div",Os,Rt(Ut(t)("message.addSubtitle")),1)])),_:1}),zt(c,{class:"layout-text",onClick:n[2]||(n[2]=e=>l(36))},{default:Pt((()=>[Mt("div",As,Rt(Ut(t)("message.addBodyText")),1)])),_:1}),zt(c,{class:"layout-style"},{default:Pt((()=>[zt(p,{span:16},{default:Pt((()=>[zt(d,{class:"full-ratio",modelValue:o.value,"onUpdate:modelValue":n[3]||(n[3]=e=>o.value=e)},{default:Pt((()=>[zt(u,{label:Ut(t)("message.transverse"),value:"transverse"},{default:Pt((()=>[zt(s)])),_:1},8,["label"]),zt(u,{label:Ut(t)("message.direction"),value:"direction"},{default:Pt((()=>[zt(f)])),_:1},8,["label"])])),_:1},8,["modelValue"])])),_:1}),zt(p,{span:8},{default:Pt((()=>[zt(v,{modelValue:a.value,"onUpdate:modelValue":n[4]||(n[4]=e=>a.value=e)},{default:Pt((()=>[zt(h),Zt(Rt(Ut(t)("message.hollowOut")),1)])),_:1},8,["modelValue"])])),_:1})])),_:1}),zt(g,{modelValue:r.value,"onUpdate:modelValue":n[5]||(n[5]=e=>r.value=e),class:"layout-tabs"},{default:Pt((()=>[zt(m,{label:Ut(t)("message.recommendText"),name:"data"},{default:Pt((()=>[Zt(Rt(Ut(t)("message.recommendText")),1)])),_:1},8,["label"]),zt(m,{label:Ut(t)("message.myBookmarksText"),name:"self"},{default:Pt((()=>[Zt(Rt(Ut(t)("message.myTemplate")),1)])),_:1},8,["label"]),zt(m,{label:Ut(t)("message.myPurchasesText"),name:"team"},{default:Pt((()=>[Zt(Rt(Ut(t)("message.TeamTemplate")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-983a02e2"]]);const Ts=["src","alt","onClick"],Fs=d(Ft({__name:"IllustrationCategory",setup(e){const t=h(),{illustrationCategoryType:n,illustrationCategoryData:o}=v(t),{createImageElement:a}=_(),r=Nt(),l=Nt(),i=Nt(0),c=Nt("all"),s=Kt((()=>o.value.filter((e=>e.type===c.value))[0])),f=vn((e=>u(this,null,(function*(){const t=yield(n={t:e},j({url:"api/design/illustration/category",method:"get",params:n}));var n;t&&200===t.data.code&&o.value.filter((t=>t.type===e)).map((e=>e.category=t.data.data))}))),100,{leading:!0,trailing:!1}),d=vn(((e,t)=>u(this,null,(function*(){const n=yield(a={t:e,page:t},j({url:"api/design/illustration/page",method:"get",params:a}));var a;n&&200===n.data.code&&o.value.filter((t=>t.type===e)).map((e=>e.total=n.data.data))}))),100,{leading:!0,trailing:!1}),p=()=>{let e=0,t=2;if(!r.value)return{startIndex:e,endIndex:t};const n=r.value.scrollTop,o=r.value.clientHeight;return e=Math.floor(n/132),t=Math.ceil((n+o)/132),{startIndex:e,endIndex:t}},m=()=>u(this,null,(function*(){const{startIndex:e,endIndex:t}=p();for(let a=e;au(this,null,(function*(){const{startIndex:e,endIndex:t}=p();for(let a=e;au(this,null,(function*(){r.value&&(i.value=r.value.scrollTop,c.value=e,yield d(e,1))})),b=(e,t)=>u(this,null,(function*(){const[n]=A();yield gn.loadImage(e.largeImageURL),t.set({visible:!1}),n.renderAll()})),w=e=>u(this,null,(function*(){const[t]=A(),{centerPoint:n}=P();let o=t.loading;o?(o.set({visible:!0}),t.bringObjectToFront(o),t.renderAll()):(o=yield M.fromURL(new URL(""+new URL("loading-356a6359.gif",import.meta.url).href,self.location).href),o.set({left:n.x-o.width/2,top:n.y-o.height/2}),t.add(o),t.renderAll(),t.loading=o),yield b(e,o),a(e.largeImageURL)}));return Yt((()=>{r.value&&m()})),(e,t)=>{const n=ct,a=Ze,u=$t("IconRight"),f=lt,d=He,p=st,h=$t("IconLeft"),v=Ke;return Dt(),It("div",null,["all"===c.value?(Dt(),It("div",{key:0,class:"category-container",ref_key:"categoryRef",ref:r,onScroll:m},[(Dt(!0),It(Vt,null,Bt(Ut(o),((t,o)=>(Dt(),It("div",{key:o},[zt(d,{class:"col-tip mt-5"},{default:Pt((()=>[zt(a,{span:5,class:"col-name"},{default:Pt((()=>[zt(n,null,{default:Pt((()=>[Zt(Rt(t.name),1)])),_:2},1024)])),_:2},1024),zt(a,{span:7,class:"col-name"},{default:Pt((()=>[zt(f,{text:"",onClick:e=>y(t.type)},{default:Pt((()=>[Zt(Rt(e.$t("message.all")),1),zt(u)])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024),Ht((Dt(),jt(d,{class:"category-box mt-5"},{default:Pt((()=>[(Dt(!0),It(Vt,null,Bt(t.category,((e,t)=>(Dt(),It("div",{class:"box-image",key:t,style:Jt({height:(e.previewHeight<100?100:e.previewHeight)+"px"})},[zt(p,{src:e.previewURL,alt:e.tags,onClick:t=>w(e),lazy:"",loading:"lazy"},null,8,["src","alt","onClick"])],4)))),128))])),_:2},1024)),[[v,0===t.category.length]])])))),128))],544)):(Dt(),It("div",{key:1,class:"category-container",ref_key:"totalRef",ref:l,onScroll:g},[zt(d,{class:"col-tip mt-5"},{default:Pt((()=>[zt(a,{span:7,class:"col-name"},{default:Pt((()=>[zt(f,{text:"",onClick:t[0]||(t[0]=e=>(c.value="all",void(r.value&&r.value.scrollTo({top:i.value,behavior:"smooth"}))))},{default:Pt((()=>[zt(h),Zt(Rt(s.value.name),1)])),_:1})])),_:1})])),_:1}),Ht((Dt(),jt(d,{class:"total-box mt-5"},{default:Pt((()=>[(Dt(!0),It(Vt,null,Bt(s.value.total,((e,t)=>(Dt(),It("div",{class:"box-image",key:t},[Mt("img",{src:e.previewURL,alt:e.tags,onClick:t=>w(e),lazy:"",loading:"lazy",ref_for:!0,ref:e=>((e,t)=>{if(!e)return;const n=()=>{const n=e.parentElement;if(!n)return;const o=t>=2?2:0,a=Math.ceil(n.clientHeight/2)+o;n.style.gridRowEnd=`span ${a}`};n(),e.onload=n,e.onerror=function(){e.src=new URL(""+new URL("loading-356a6359.gif",import.meta.url).href,self.location).href,n()}})(e,t)},null,8,Ts)])))),128))])),_:1})),[[v,0===s.value.total.length]])],544)),zt(d,{class:"image-bottom"},{default:Pt((()=>[Zt(Rt(e.$t("message.endOfContent")),1)])),_:1})])}}}),[["__scopeId","data-v-8cc3a6b1"]]),Ds={class:"layout-pool"},js=d(Ft({__name:"ImagePool",setup(e){g();const{createImageElement:t}=_(),n=Nt("data");return(e,o)=>{const a=$t("IconUpload"),r=lt,l=qe,i=D,c=Ze,s=tt,u=He,f=nt,d=rt;return Dt(),It("div",Ds,[zt(u,{class:"layout-search"},{default:Pt((()=>[zt(c,{span:5},{default:Pt((()=>[zt(i,{onChange:o[0]||(o[0]=e=>(e=>{const n=e[0];n&&C(n).then((e=>t(e)))})(e))},{default:Pt((()=>[zt(l,{placement:"top","hide-after":0,content:e.$t("message.uploadImages")},{default:Pt((()=>[zt(r,{type:"primary"},{default:Pt((()=>[zt(a)])),_:1})])),_:1},8,["content"])])),_:1})])),_:1}),zt(c,{span:19},{default:Pt((()=>[zt(s,{"prefix-icon":Ut(Je),placeholder:e.$t("message.searchImages")},null,8,["prefix-icon","placeholder"])])),_:1})])),_:1}),zt(d,{modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=e=>n.value=e),class:"layout-tabs"},{default:Pt((()=>[zt(f,{label:e.$t("message.recommendImages"),name:"data"},{default:Pt((()=>[zt(Fs)])),_:1},8,["label"]),zt(f,{label:e.$t("message.myBookmarks"),name:"self"},{default:Pt((()=>[Zt(Rt(e.$t("message.myBookmarks")),1)])),_:1},8,["label"]),zt(f,{label:e.$t("message.teamTemplates"),name:"team"},{default:Pt((()=>[Zt(Rt(e.$t("message.teamTemplates")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-fa5cec3c"]]),Ps=Mt("div",{class:"mb-[20px] text-center"},"初级变中级,中级变高级,让前端开发更轻松高效!",-1),Ms=Mt("div",{class:"mb-[20px] text-center"},"限时优惠,数量有限,先到先得!",-1),Is={class:"dialog-footer"},Bs=Ft({__name:"OpenGpt",props:{visible:{type:Boolean,required:!0}},emits:["close"],setup(e,{emit:t}){const n=t,o=e,a=Nt(!1),r=hn((function(){a.value=!1,n("close")}),250),l=hn((function(){return u(this,null,(function*(){(yield I("juezhanqianye_"))&&et.success("复制成功")}))}),250);return Qt((()=>o.visible),(e=>{a.value=e})),(e,t)=>{const n=$t("IconCopyOne"),o=$t("IconWechat"),i=ct,c=lt,s=ut;return Dt(),jt(s,{modelValue:Ut(a),"onUpdate:modelValue":t[1]||(t[1]=e=>en(a)?a.value=e:null),width:500,title:e.$t("gpt.openGPTTitle"),class:"upload-dialog","before-close":Ut(r),"close-on-click-modal":!1},{footer:Pt((()=>[Mt("div",Is,[zt(c,{onClick:Ut(r)},{default:Pt((()=>[Zt(Rt(e.$t("default.cancel")),1)])),_:1},8,["onClick"]),zt(c,{type:"primary",onClick:Ut(r)},{default:Pt((()=>[Zt(Rt(e.$t("default.ok")),1)])),_:1},8,["onClick"])])])),default:Pt((()=>[Mt("div",null,[Ps,Ms,Mt("div",{class:"cursor-pointer text-center text-[18px] font-bold",onClick:t[0]||(t[0]=(...e)=>Ut(l)&&Ut(l)(...e))},[Mt("div",null,[zt(n),Zt("点击复制"),zt(o),Zt("微信号 "),zt(i,null,{default:Pt((()=>[Zt("juezhanqianye_")])),_:1})])])])])),_:1},8,["modelValue","title","before-close"])}}}),Vs={class:"font-middle"},Rs={class:"font-little"},Us={class:"font-middle"},Ns={class:"font-little"},$s={class:"font-middle"},zs={class:"font-little"},Gs={class:"font-middle"},Hs={class:"font-little"},Xs=d(Ft({__name:"ToolkitPool",setup(e){g();const{createQRCodeElement:t,createBarCodeElement:n}=_(),o=Nt(window.location.href),a=Nt(!0),r=Nt(0),l=Nt(!1),i=Nt(!1),c=Nt(!1),s={A1:Io.rendererRect,A2:Io.rendererRound,A3:Io.rendererRandRound,SP1:Io.rendererDSJ,SP2:Io.rendererRandRect,SP3:Io.rendererCircle,B1:Io.renderer25D,C1:Io.rendererImage,A_a1:Io.rendererLine,A_a2:Io.rendererLine2,A_b1:Io.rendererFuncA,A_b2:Io.rendererFuncB},u=()=>{const e={format:"pharmacode",lineColor:"#0aa",width:4,height:40,displayValue:!1};kc("#barcode","1234",e);const t=document.getElementById("barcode");if(!t)return;const o=(new XMLSerializer).serializeToString(t),a="data:image/svg+xml;base64,"+jo.encode(o);n(a,"1234",e)},f=e=>{const n="data:image/svg+xml;base64,"+jo.encode(s[e](((e=118,t=118)=>{const n={text:o.value,width:e,height:t,correctLevel:r.value,isSpace:a.value};return Io.encodeData(n)})(118,118))),l={codeStyle:e,codeSpace:a.value,codeError:r.value};t(n,l,o.value)},d=()=>{l.value=!0},p=()=>{l.value=!1},h=()=>{i.value=!0},v=()=>{i.value=!1};return hn((function(){Qe.alert("功能开发中,敬请期待","提示",{confirmButtonText:"我知道了",callback:e=>{}})}),250),hn((function(){c.value=!0}),250),(e,t)=>{const n=tt,o=He,a=$t("IconPayCodeTwo"),r=Ze,s=$t("IconTwoDimensionalCodeTwo"),m=$t("IconMagicWand"),g=$t("IconPlatte"),y=O,b=B,_=Bs;return Dt(),It("div",null,[zt(o,{class:"layout-search"},{default:Pt((()=>[zt(n,{"prefix-icon":Ut(Je),placeholder:e.$t("message.searchTools")},null,8,["prefix-icon","placeholder"])])),_:1}),zt(o,null,{default:Pt((()=>[zt(o,{class:"code-common",onClick:u},{default:Pt((()=>[zt(r,{span:4,class:"code-icon"},{default:Pt((()=>[zt(a,{class:"icon-font"})])),_:1}),zt(r,{span:20,class:"code-text"},{default:Pt((()=>[Mt("div",Vs,Rt(e.$t("message.barCode")),1),Mt("div",Rs,Rt(e.$t("message.barCodeTips")),1)])),_:1})])),_:1})])),_:1}),zt(o,null,{default:Pt((()=>[zt(o,{class:"code-common",onClick:t[0]||(t[0]=e=>f("A1"))},{default:Pt((()=>[zt(r,{span:4,class:"code-icon"},{default:Pt((()=>[zt(s,{class:"icon-font"})])),_:1}),zt(r,{span:20,class:"code-text"},{default:Pt((()=>[Mt("div",Us,Rt(e.$t("message.QRCode")),1),Mt("div",Ns,Rt(e.$t("message.QRCodeTips")),1)])),_:1})])),_:1})])),_:1}),zt(o,null,{default:Pt((()=>[zt(o,{class:"code-common",onClick:d},{default:Pt((()=>[zt(r,{span:4,class:"code-icon"},{default:Pt((()=>[zt(m,{class:"icon-font"})])),_:1}),zt(r,{span:20,class:"code-text"},{default:Pt((()=>[Mt("div",$s,Rt(e.$t("message.AICutoutImage")),1),Mt("div",zs,Rt(e.$t("message.AICutoutImageTips")),1)])),_:1})])),_:1})])),_:1}),zt(o,null,{default:Pt((()=>[zt(o,{class:"code-common",onClick:h},{default:Pt((()=>[zt(r,{span:4,class:"code-icon"},{default:Pt((()=>[zt(g,{class:"icon-font"})])),_:1}),zt(r,{span:20,class:"code-text"},{default:Pt((()=>[Mt("div",Gs,Rt(e.$t("message.ColorFillImage")),1),Mt("div",Hs,Rt(e.$t("message.ColorFillImageTips")),1)])),_:1})])),_:1})])),_:1}),zt(y,{visible:l.value,onClose:p},null,8,["visible"]),zt(b,{visible:i.value,onClose:v},null,8,["visible"]),Zt("\\ "),zt(_,{visible:c.value,onClose:t[1]||(t[1]=e=>c.value=!1)},null,8,["visible"])])}}}),[["__scopeId","data-v-58f96583"]]),qs=e=>(qt("data-v-c5a72ec2"),e=e(),Wt(),e),Ws=qs((()=>Mt("i",{class:"iconfont icon-gpt"},null,-1))),Ys={class:"font-middle"},Zs={class:"font-little"},Ks=qs((()=>Mt("i",{class:"iconfont icon-gpt"},null,-1))),Js={class:"font-middle"},Qs={class:"font-little"},eu=d(Ft({__name:"ChatgptPool",setup(e){g(),_(),Nt(window.location.href),Nt(!0),Nt(0),Nt(!1),Nt(!1);const t=Nt(!1),n=hn((function(){Qe.alert("功能开发中,敬请期待","提示",{confirmButtonText:"我知道了",callback:e=>{}})}),250),o=hn((function(){t.value=!0}),250);return(e,a)=>{const r=tt,l=He,i=Ze,c=Bs;return Dt(),It("div",null,[zt(l,{class:"layout-search"},{default:Pt((()=>[zt(r,{"prefix-icon":Ut(Je),placeholder:e.$t("message.searchTools")},null,8,["prefix-icon","placeholder"])])),_:1}),zt(l,null,{default:Pt((()=>[zt(l,{class:"code-common",onClick:Ut(n)},{default:Pt((()=>[zt(i,{span:4,class:"code-icon"},{default:Pt((()=>[Ws])),_:1}),zt(i,{span:20,class:"code-text"},{default:Pt((()=>[Mt("div",Ys,Rt(e.$t("gpt.gptTitle")),1),Mt("div",Zs,Rt(e.$t("gpt.gptIntro")),1)])),_:1})])),_:1},8,["onClick"])])),_:1}),zt(l,null,{default:Pt((()=>[zt(l,{class:"code-common",onClick:Ut(o)},{default:Pt((()=>[zt(i,{span:4,class:"code-icon"},{default:Pt((()=>[Ks])),_:1}),zt(i,{span:20,class:"code-text"},{default:Pt((()=>[Mt("div",Js,Rt(e.$t("gpt.openGPTTitle")),1),Mt("div",Qs,Rt(e.$t("gpt.openGPTIntro")),1)])),_:1})])),_:1},8,["onClick"])])),_:1}),zt(c,{visible:t.value,onClose:a[0]||(a[0]=e=>t.value=!1)},null,8,["visible"])])}}}),[["__scopeId","data-v-c5a72ec2"]]),tu=()=>({alignElement:e=>{const[t]=A(),{left:n,top:o,width:a,height:r,centerPoint:l}=P(),i=t.getActiveObject(),c=L();if(i){if(i.type===V.ACTIVE){const t=i,n=t.left-t.width/2,o=t.top-t.height/2;switch(e){case R.LEFT:t._objects.forEach((e=>e.set({left:n})));break;case R.RIGHT:t._objects.forEach((e=>e.set({left:n+t.width-e.width})));break;case R.TOP:t._objects.forEach((e=>e.set({top:o})));break;case R.BOTTOM:t._objects.forEach((e=>e.set({top:o+t.height-e.height})));break;case R.HORIZONTAL:t._objects.forEach((e=>e.set({left:t.left-e.width/2})));break;case R.VERTICAL:t._objects.forEach((e=>e.set({top:t.top-e.height/2})));break;case R.CENTER:t._objects.forEach((e=>e.set({left:t.left-e.width/2}))),t._objects.forEach((e=>e.set({top:t.top-e.height/2})))}}else switch(e){case R.LEFT:i.set({left:n+i.width/2});break;case R.RIGHT:i.set({left:n+a-i.width/2});break;case R.TOP:i.set({top:o+i.height/2});break;case R.BOTTOM:i.set({top:o+r-i.height/2});break;case R.HORIZONTAL:i.set({left:l.x});break;case R.VERTICAL:i.set({top:l.y});break;case R.CENTER:i.set({left:l.x}),i.set({top:l.y})}t.renderAll(),c.modifedElement()}},layerElement:e=>{const[t]=A(),{setZindex:n}=N(),o=t.getActiveObject(),a=L();if(o){switch(e){case U.UP:t.bringObjectForward(o);break;case U.DOWN:t.sendObjectBackwards(o);break;case U.TOP:t.bringObjectToFront(o);break;case U.BOTTOM:t.sendObjectToBack(o)}n(t),t.renderAll(),a.modifedElement()}}}),nu=()=>{const{lockElement:e,deleteElement:t,cutElement:n,copyElement:o,pasteElement:a}=$(),{alignElement:r,layerElement:l}=tu(),{canvasObject:i}=v(h()),c=i.value;return c?c.lockMovementX&&c.lockMovementY?[{text:"解锁",handler:()=>e(c.id,!1)}]:[{text:"剪切",subText:"Ctrl + X",handler:n},{text:"复制",subText:"Ctrl + C",handler:o},{text:"粘贴",subText:"Ctrl + V",handler:a},{divider:!0},{text:"水平居中",handler:()=>r(R.HORIZONTAL),children:[{text:"垂直居中",handler:()=>r(R.CENTER)},{text:"水平居中",handler:()=>r(R.HORIZONTAL)},{text:"左对齐",handler:()=>r(R.LEFT)},{text:"右对齐",handler:()=>r(R.RIGHT)}]},{text:"垂直居中",handler:()=>r(R.VERTICAL),children:[{text:"水平居中",handler:()=>r(R.CENTER)},{text:"垂直居中",handler:()=>r(R.VERTICAL)},{text:"顶部对齐",handler:()=>r(R.TOP)},{text:"底部对齐",handler:()=>r(R.BOTTOM)}]},{divider:!0},{text:"置于顶层",handler:()=>l(U.TOP),children:[{text:"置于顶层",handler:()=>l(U.TOP)},{text:"上移一层",handler:()=>l(U.UP)}]},{text:"置于底层",handler:()=>l(U.BOTTOM),children:[{text:"置于底层",handler:()=>l(U.BOTTOM)},{text:"下移一层",handler:()=>l(U.DOWN)}]},{divider:!0},{text:c.type===V.GROUP?"取消组合":"组合",subText:"Ctrl + G"},{text:"全选",subText:"Ctrl + A"},{text:"锁定",subText:"Ctrl + L",handler:()=>e(c.id,!0)},{text:"删除",subText:"Delete",handler:()=>t(c.id)}]:[{text:"粘贴",subText:"Ctrl + V",handler:a},{text:"全选",subText:"Ctrl + A"},{text:"标尺"},{text:"网格"},{text:"重置"}]},ou=()=>[{text:"剪切",subText:"Ctrl + X"},{text:"复制",subText:"Ctrl + C"},{text:"粘贴",subText:"Ctrl + V"},{text:"全选",subText:"Ctrl + A"},{divider:!0},{text:"新建页面",subText:"Enter"},{text:"复制页面",subText:"Ctrl + D"},{text:"删除页面",subText:"Delete"},{divider:!0},{text:"从当前预览",subText:"Shift + F5"}];var au={exports:{}};const ru=dn(tn); +/**! + * Sortable 1.14.0 + * @author RubaXa + * @author owenm + * @license MIT + */function lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function iu(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function du(e){return function(e){if(Array.isArray(e))return pu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return pu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pu(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Eu(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Su(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Cu(e,t):Cu(e,t))||o&&e===n)return e;if(e===n)break}while(e=Eu(e))}return null}var Ou,Au=/\s+/g;function Lu(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Au," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Au," ")}}function Tu(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function Fu(e,t){var n="";if("string"==typeof e)n=e;else do{var o=Tu(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function Du(e,t,n){if(e){var o=e.getElementsByTagName(t),a=0,r=o.length;if(n)for(;a=r:a<=r))return o;if(o===ju())break;o=Uu(o,!1)}return!1}function Iu(e,t,n,o){for(var a=0,r=0,l=e.children;r2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,a=fu(n,Qu);Ku.pluginEvent.bind(qf)(e,t,iu({dragEl:nf,parentEl:of,ghostEl:af,rootEl:rf,nextEl:lf,lastDownEl:cf,cloneEl:sf,cloneHidden:uf,dragStarted:kf,putSortable:mf,activeSortable:qf.active,originalEvent:o,oldIndex:ff,oldDraggableIndex:pf,newIndex:df,newDraggableIndex:hf,hideGhostForTarget:zf,unhideGhostForTarget:Gf,cloneNowHidden:function(){uf=!0},cloneNowShown:function(){uf=!1},dispatchSortableEvent:function(e){tf({sortable:t,name:e,originalEvent:o})}},a))};function tf(e){Ju(iu({putSortable:mf,cloneEl:sf,targetEl:nf,rootEl:rf,oldIndex:ff,oldDraggableIndex:pf,newIndex:df,newDraggableIndex:hf},e))}var nf,of,af,rf,lf,cf,sf,uf,ff,df,pf,hf,vf,mf,gf,yf,bf,_f,wf,xf,kf,Cf,Ef,Sf,Of,Af=!1,Lf=!1,Tf=[],Ff=!1,Df=!1,jf=[],Pf=!1,Mf=[],If="undefined"!=typeof document,Bf=bu,Vf=mu||vu?"cssFloat":"float",Rf=If&&!_u&&!bu&&"draggable"in document.createElement("div"),Uf=function(){if(If){if(vu)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Nf=function(e,t){var n=Tu(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Iu(e,0,t),r=Iu(e,1,t),l=a&&Tu(a),i=r&&Tu(r),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Pu(a).width,s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Pu(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!r||"both"!==i.clear&&i.clear!==u?"horizontal":"vertical"}return a&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||c>=o&&"none"===n[Vf]||r&&"none"===n[Vf]&&c+s>o)?"vertical":"horizontal"},$f=function(e){function t(e,n){return function(o,a,r,l){var i=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(null==e&&(n||i))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,a,r,l),n)(o,a,r,l);var c=(n?o:a).options.group.name;return!0===e||"string"==typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},o=e.group;o&&"object"==cu(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},zf=function(){!Uf&&af&&Tu(af,"display","none")},Gf=function(){!Uf&&af&&Tu(af,"display","")};If&&document.addEventListener("click",(function(e){if(Lf)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Lf=!1,!1}),!0);var Hf=function(e){if(nf){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,r=e.clientY,Tf.some((function(e){var t=e[qu].options.emptyInsertThreshold;if(t&&!Bu(e)){var n=Pu(e),o=a>=n.left-t&&a<=n.right+t,i=r>=n.top-t&&r<=n.bottom+t;return o&&i?l=e:void 0}})),l);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[qu]._onDragOver(n)}}var a,r,l},Xf=function(e){nf&&nf.parentNode[qu]._isOutsideThisEl(e.target)};function qf(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=uu({},t),e[qu]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nf(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==qf.supportPointer&&"PointerEvent"in window&&!yu,emptyInsertThreshold:5};for(var o in Ku.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var a in $f(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&Rf,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?xu(e,"pointerdown",this._onTapStart):(xu(e,"mousedown",this._onTapStart),xu(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(xu(e,"dragover",this),xu(e,"dragenter",this)),Tf.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),uu(this,Wu())}function Wf(e,t,n,o,a,r,l,i){var c,s,u=e[qu],f=u.options.onMove;return!window.CustomEvent||vu||mu?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=o,c.related=a||t,c.relatedRect=r||Pu(t),c.willInsertAfter=i,c.originalEvent=l,e.dispatchEvent(c),f&&(s=f.call(u,c,l)),s}function Yf(e){e.draggable=!1}function Zf(){Pf=!1}function Kf(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Jf(e){return setTimeout(e,0)}function Qf(e){return clearTimeout(e)}qf.prototype={constructor:qf,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Cf=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,nf):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,a=o.preventOnFilter,r=e.type,l=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,i=(l||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||i,s=o.filter;if(function(e){Mf.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&Mf.push(o)}}(n),!nf&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||o.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!yu||!i||"SELECT"!==i.tagName.toUpperCase())&&!((i=Su(i,o.draggable,n,!1))&&i.animated||cf===i)){if(ff=Vu(i),pf=Vu(i,o.draggable),"function"==typeof s){if(s.call(this,e,i,this))return tf({sortable:t,rootEl:c,name:"filter",targetEl:i,toEl:n,fromEl:n}),ef("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(s&&(s=s.split(",").some((function(o){if(o=Su(c,o.trim(),n,!1))return tf({sortable:t,rootEl:o,name:"filter",targetEl:i,fromEl:n,toEl:n}),ef("filter",t,{evt:e}),!0}))))return void(a&&e.cancelable&&e.preventDefault());o.handle&&!Su(c,o.handle,n,!1)||this._prepareDragStart(e,l,i)}}},_prepareDragStart:function(e,t,n){var o,a=this,r=a.el,l=a.options,i=r.ownerDocument;if(n&&!nf&&n.parentNode===r){var c=Pu(n);if(rf=r,of=(nf=n).parentNode,lf=nf.nextSibling,cf=n,vf=l.group,qf.dragged=nf,gf={target:nf,clientX:(t||e).clientX,clientY:(t||e).clientY},wf=gf.clientX-c.left,xf=gf.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,nf.style["will-change"]="all",o=function(){ef("delayEnded",a,{evt:e}),qf.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!gu&&a.nativeDraggable&&(nf.draggable=!0),a._triggerDragStart(e,t),tf({sortable:a,name:"choose",originalEvent:e}),Lu(nf,l.chosenClass,!0))},l.ignore.split(",").forEach((function(e){Du(nf,e.trim(),Yf)})),xu(i,"dragover",Hf),xu(i,"mousemove",Hf),xu(i,"touchmove",Hf),xu(i,"mouseup",a._onDrop),xu(i,"touchend",a._onDrop),xu(i,"touchcancel",a._onDrop),gu&&this.nativeDraggable&&(this.options.touchStartThreshold=4,nf.draggable=!0),ef("delayStart",this,{evt:e}),!l.delay||l.delayOnTouchOnly&&!t||this.nativeDraggable&&(mu||vu))o();else{if(qf.eventCanceled)return void this._onDrop();xu(i,"mouseup",a._disableDelayedDrag),xu(i,"touchend",a._disableDelayedDrag),xu(i,"touchcancel",a._disableDelayedDrag),xu(i,"mousemove",a._delayedDragTouchMoveHandler),xu(i,"touchmove",a._delayedDragTouchMoveHandler),l.supportPointer&&xu(i,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(o,l.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){nf&&Yf(nf),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ku(e,"mouseup",this._disableDelayedDrag),ku(e,"touchend",this._disableDelayedDrag),ku(e,"touchcancel",this._disableDelayedDrag),ku(e,"mousemove",this._delayedDragTouchMoveHandler),ku(e,"touchmove",this._delayedDragTouchMoveHandler),ku(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?xu(document,"pointermove",this._onTouchMove):xu(document,t?"touchmove":"mousemove",this._onTouchMove):(xu(nf,"dragend",this),xu(rf,"dragstart",this._onDragStart));try{document.selection?Jf((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Af=!1,rf&&nf){ef("dragStarted",this,{evt:t}),this.nativeDraggable&&xu(document,"dragover",Xf);var n=this.options;!e&&Lu(nf,n.dragClass,!1),Lu(nf,n.ghostClass,!0),qf.active=this,e&&this._appendGhost(),tf({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(yf){this._lastX=yf.clientX,this._lastY=yf.clientY,zf();for(var e=document.elementFromPoint(yf.clientX,yf.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(yf.clientX,yf.clientY))!==t;)t=e;if(nf.parentNode[qu]._isOutsideThisEl(e),t)do{if(t[qu]){if(t[qu]._onDragOver({clientX:yf.clientX,clientY:yf.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Gf()}},_onTouchMove:function(e){if(gf){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,a=e.touches?e.touches[0]:e,r=af&&Fu(af,!0),l=af&&r&&r.a,i=af&&r&&r.d,c=Bf&&Of&&Ru(Of),s=(a.clientX-gf.clientX+o.x)/(l||1)+(c?c[0]-jf[0]:0)/(l||1),u=(a.clientY-gf.clientY+o.y)/(i||1)+(c?c[1]-jf[1]:0)/(i||1);if(!qf.active&&!Af){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))o.right+a||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+a}(e,a,this)&&!v.animated){if(v===nf)return F(!1);if(v&&r===e.target&&(l=v),l&&(n=Pu(l)),!1!==Wf(rf,r,nf,t,l,n,e,!!l))return T(),r.appendChild(nf),of=r,D(),F(!0)}else if(v&&function(e,t,n){var o=Pu(Iu(n.el,0,n.options,!0)),a=10;return t?e.clientXu+s*r/2:cf-Sf)return-Ef}else if(c>u+s*(1-a)/2&&cf-s*r/2))return c>u+s/2?1:-1;return 0}(e,l,n,a,w?1:i.swapThreshold,null==i.invertedSwapThreshold?i.swapThreshold:i.invertedSwapThreshold,Df,Cf===l),0!==g){var E=Vu(nf);do{E-=g,b=of.children[E]}while(b&&("none"===Tu(b,"display")||b===af))}if(0===g||b===l)return F(!1);Cf=l,Ef=g;var S=l.nextElementSibling,O=!1,A=Wf(rf,r,nf,t,l,n,e,O=1===g);if(!1!==A)return 1!==A&&-1!==A||(O=1===A),Pf=!0,setTimeout(Zf,30),T(),O&&!S?r.appendChild(nf):l.parentNode.insertBefore(nf,O?S:l),k&&zu(k,0,C-k.scrollTop),of=nf.parentNode,void 0===y||Df||(Sf=Math.abs(y-Pu(l)[x])),D(),F(!0)}if(r.contains(nf))return F(!1)}return!1}function L(i,c){ef(i,p,iu({evt:e,isOwner:u,axis:a?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:l,completed:F,onMove:function(n,o){return Wf(rf,r,nf,t,n,Pu(n),e,o)},changed:D},c))}function T(){L("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function F(t){return L("dragOverCompleted",{insertion:t}),t&&(u?s._hideClone():s._showClone(p),p!==d&&(Lu(nf,mf?mf.options.ghostClass:s.options.ghostClass,!1),Lu(nf,i.ghostClass,!0)),mf!==p&&p!==qf.active?mf=p:p===qf.active&&mf&&(mf=null),d===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){L("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(l===nf&&!nf.animated||l===r&&!l.animated)&&(Cf=null),i.dragoverBubble||e.rootEl||l===document||(nf.parentNode[qu]._isOutsideThisEl(e.target),!t&&Hf(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function D(){df=Vu(nf),hf=Vu(nf,i.draggable),tf({sortable:p,name:"change",toEl:r,newIndex:df,newDraggableIndex:hf,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ku(document,"mousemove",this._onTouchMove),ku(document,"touchmove",this._onTouchMove),ku(document,"pointermove",this._onTouchMove),ku(document,"dragover",Hf),ku(document,"mousemove",Hf),ku(document,"touchmove",Hf)},_offUpEvents:function(){var e=this.el.ownerDocument;ku(e,"mouseup",this._onDrop),ku(e,"touchend",this._onDrop),ku(e,"pointerup",this._onDrop),ku(e,"touchcancel",this._onDrop),ku(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;df=Vu(nf),hf=Vu(nf,n.draggable),ef("drop",this,{evt:e}),of=nf&&nf.parentNode,df=Vu(nf),hf=Vu(nf,n.draggable),qf.eventCanceled||(Af=!1,Df=!1,Ff=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qf(this.cloneId),Qf(this._dragStartId),this.nativeDraggable&&(ku(document,"drop",this),ku(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),yu&&Tu(document.body,"user-select",""),Tu(nf,"transform",""),e&&(kf&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),af&&af.parentNode&&af.parentNode.removeChild(af),(rf===of||mf&&"clone"!==mf.lastPutMode)&&sf&&sf.parentNode&&sf.parentNode.removeChild(sf),nf&&(this.nativeDraggable&&ku(nf,"dragend",this),Yf(nf),nf.style["will-change"]="",kf&&!Af&&Lu(nf,mf?mf.options.ghostClass:this.options.ghostClass,!1),Lu(nf,this.options.chosenClass,!1),tf({sortable:this,name:"unchoose",toEl:of,newIndex:null,newDraggableIndex:null,originalEvent:e}),rf!==of?(df>=0&&(tf({rootEl:of,name:"add",toEl:of,fromEl:rf,originalEvent:e}),tf({sortable:this,name:"remove",toEl:of,originalEvent:e}),tf({rootEl:of,name:"sort",toEl:of,fromEl:rf,originalEvent:e}),tf({sortable:this,name:"sort",toEl:of,originalEvent:e})),mf&&mf.save()):df!==ff&&df>=0&&(tf({sortable:this,name:"update",toEl:of,originalEvent:e}),tf({sortable:this,name:"sort",toEl:of,originalEvent:e})),qf.active&&(null!=df&&-1!==df||(df=ff,hf=pf),tf({sortable:this,name:"end",toEl:of,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ef("nulling",this),rf=nf=of=af=lf=sf=cf=uf=gf=yf=kf=df=hf=ff=pf=Cf=Ef=mf=vf=qf.dragged=qf.ghost=qf.clone=qf.active=null,Mf.forEach((function(e){e.checked=!0})),Mf.length=bf=_f=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":nf&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,a=n.length,r=this.options;o1&&(_d.forEach((function(e){o.addAnimationState({target:e,rect:kd?Pu(e):a}),Xu(e),e.fromRect=a,t.removeAnimationState(e)})),kd=!1,function(e,t){_d.forEach((function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,a=e.activeSortable,r=e.parentEl,l=e.putSortable,i=this.options;if(o){if(n&&a._hideClone(),xd=!1,i.animation&&_d.length>1&&(kd||!n&&!a.options.sort&&!l)){var c=Pu(gd,!1,!0,!0);_d.forEach((function(e){e!==gd&&(Hu(e,c),r.appendChild(e))})),kd=!0}if(!n)if(kd||Sd(),_d.length>1){var s=bd;a._showClone(t),a.options.animation&&!bd&&s&&wd.forEach((function(e){a.addAnimationState({target:e,rect:yd}),e.fromRect=yd,e.thisAnimationDuration=null}))}else a._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(_d.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){yd=uu({},t);var a=Fu(gd,!0);yd.top-=a.f,yd.left-=a.e}},dragOverAnimationComplete:function(){kd&&(kd=!1,Sd())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,a=e.sortable,r=e.dispatchSortableEvent,l=e.oldIndex,i=e.putSortable,c=i||this.sortable;if(t){var s=this.options,u=o.children;if(!Cd)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Lu(gd,s.selectedClass,!~_d.indexOf(gd)),~_d.indexOf(gd))_d.splice(_d.indexOf(gd),1),vd=null,Ju({sortable:a,rootEl:n,name:"deselect",targetEl:gd,originalEvt:t});else{if(_d.push(gd),Ju({sortable:a,rootEl:n,name:"select",targetEl:gd,originalEvt:t}),t.shiftKey&&vd&&a.el.contains(vd)){var f,d,p=Vu(vd),h=Vu(gd);if(~p&&~h&&p!==h)for(h>p?(d=p,f=h):(d=h,f=p+1);d1){var v=Pu(gd),m=Vu(gd,":not(."+this.options.selectedClass+")");if(!xd&&s.animation&&(gd.thisAnimationDuration=null),c.captureAnimationState(),!xd&&(s.animation&&(gd.fromRect=v,_d.forEach((function(e){if(e.thisAnimationDuration=null,e!==gd){var t=kd?Pu(e):v;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),Sd(),_d.forEach((function(e){u[m]?o.insertBefore(e,u[m]):o.appendChild(e),m++})),l===Vu(gd))){var g=!1;_d.forEach((function(e){e.sortableIndex===Vu(e)||(g=!0)})),g&&r("update")}_d.forEach((function(e){Xu(e)})),c.animateAll()}md=c}(n===o||i&&"clone"!==i.lastPutMode)&&wd.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Cd=!1,wd.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ku(document,"pointerup",this._deselectMultiDrag),ku(document,"mouseup",this._deselectMultiDrag),ku(document,"touchend",this._deselectMultiDrag),ku(document,"keydown",this._checkKeyDown),ku(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Cd&&Cd||md!==this.sortable||e&&Su(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;_d.length;){var t=_d[0];Lu(t,this.options.selectedClass,!1),_d.shift(),Ju({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},uu(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[qu];t&&t.options.multiDrag&&!~_d.indexOf(e)&&(md&&md!==t&&(md.multiDrag._deselectMultiDrag(),md=t),Lu(e,t.options.selectedClass,!0),_d.push(e))},deselect:function(e){var t=e.parentNode[qu],n=_d.indexOf(e);t&&t.options.multiDrag&&~n&&(Lu(e,t.options.selectedClass,!1),_d.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return _d.forEach((function(o){var a;t.push({multiDragElement:o,index:o.sortableIndex}),a=kd&&o!==gd?-1:kd?Vu(o,":not(."+e.options.selectedClass+")"):Vu(o),n.push({multiDragElement:o,index:a})})),{items:du(_d),clones:[].concat(wd),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:qf,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;ud=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,a=e.activeSortable,r=e.changed,l=e.cancel;if(a.options.swap){var i=this.sortable.el,c=this.options;if(n&&n!==i){var s=ud;!1!==o(n)?(Lu(n,c.swapClass,!0),ud=n):ud=null,s&&s!==ud&&Lu(s,c.swapClass,!1)}r(),t(!0),l()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,o=e.dragEl,a=n||this.sortable,r=this.options;ud&&Lu(ud,r.swapClass,!1),ud&&(r.swap||n&&n.options.swap)&&o!==ud&&(a.captureAnimationState(),a!==t&&t.captureAnimationState(),function(e,t){var n,o,a=e.parentNode,r=t.parentNode;if(!a||!r||a.isEqualNode(t)||r.isEqualNode(e))return;n=Vu(e),o=Vu(t),a.isEqualNode(r)&&n1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var o=n("c6b6"),a=n("9263");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"159b":function(e,t,n){var o=n("da84"),a=n("fdbc"),r=n("17c2"),l=n("9112");for(var i in a){var c=o[i],s=c&&c.prototype;if(s&&s.forEach!==r)try{l(s,"forEach",r)}catch(u){s.forEach=r}}},"17c2":function(e,t,n){var o=n("b727").forEach,a=n("a640"),r=n("ae40"),l=a("forEach"),i=r("forEach");e.exports=l&&i?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var o=n("d066");e.exports=o("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var o=n("b622")("iterator"),a=!1;try{var r=0,l={next:function(){return{done:!!r++}},return:function(){a=!0}};l[o]=function(){return this},Array.from(l,(function(){throw 2}))}catch(i){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(i){}return n}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var o=n("d039"),a=n("b622"),r=n("2d00"),l=a("species");e.exports=function(e){return r>=51||!o((function(){var t=[];return(t.constructor={})[l]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var o=n("a691"),a=Math.max,r=Math.min;e.exports=function(e,t){var n=o(e);return n<0?a(n+t,0):r(n,t)}},"23e7":function(e,t,n){var o=n("da84"),a=n("06cf").f,r=n("9112"),l=n("6eeb"),i=n("ce4e"),c=n("e893"),s=n("94ca");e.exports=function(e,t){var n,u,f,d,p,h=e.target,v=e.global,m=e.stat;if(n=v?o:m?o[h]||i(h,{}):(o[h]||{}).prototype)for(u in t){if(d=t[u],f=e.noTargetGet?(p=a(n,u))&&p.value:n[u],!s(v?u:h+(m?".":"#")+u,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&r(d,"sham",!0),l(n,u,d,e)}}},"241c":function(e,t,n){var o=n("ca84"),a=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,a)}},"25f0":function(e,t,n){var o=n("6eeb"),a=n("825a"),r=n("d039"),l=n("ad6d"),i="toString",c=RegExp.prototype,s=c[i],u=r((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),f=s.name!=i;(u||f)&&o(RegExp.prototype,i,(function(){var e=a(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?l.call(e):n)}),{unsafe:!0})},"2ca0":function(e,t,n){var o,a=n("23e7"),r=n("06cf").f,l=n("50c4"),i=n("5a34"),c=n("1d80"),s=n("ab13"),u=n("c430"),f="".startsWith,d=Math.min,p=s("startsWith");a({target:"String",proto:!0,forced:!(!u&&!p&&(o=r(String.prototype,"startsWith"),o&&!o.writable)||p)},{startsWith:function(e){var t=String(c(this));i(e);var n=l(d(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return f?f.call(t,o,n):t.slice(n,n+o.length)===o}})},"2d00":function(e,t,n){var o,a,r=n("da84"),l=n("342f"),i=r.process,c=i&&i.versions,s=c&&c.v8;s?a=(o=s.split("."))[0]+o[1]:l&&(!(o=l.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=l.match(/Chrome\/(\d+)/))&&(a=o[1]),e.exports=a&&+a},"342f":function(e,t,n){var o=n("d066");e.exports=o("navigator","userAgent")||""},"35a1":function(e,t,n){var o=n("f5df"),a=n("3f8c"),r=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||a[o(e)]}},"37e8":function(e,t,n){var o=n("83ab"),a=n("9bf2"),r=n("825a"),l=n("df75");e.exports=o?Object.defineProperties:function(e,t){r(e);for(var n,o=l(t),i=o.length,c=0;i>c;)a.f(e,n=o[c++],t[n]);return e}},"3bbe":function(e,t,n){var o=n("861d");e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){var o=n("6547").charAt,a=n("69f3"),r=n("7dd0"),l="String Iterator",i=a.set,c=a.getterFor(l);r(String,"String",(function(e){i(this,{type:l,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,a=t.index;return a>=n.length?{value:void 0,done:!0}:(e=o(n,a),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){var o=n("23e7"),a=n("17c2");o({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},"428f":function(e,t,n){var o=n("da84");e.exports=o},"44ad":function(e,t,n){var o=n("d039"),a=n("c6b6"),r="".split;e.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?r.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var o=n("b622"),a=n("7c73"),r=n("9bf2"),l=o("unscopables"),i=Array.prototype;null==i[l]&&r.f(i,l,{configurable:!0,value:a(null)}),e.exports=function(e){i[l][e]=!0}},"44e7":function(e,t,n){var o=n("861d"),a=n("c6b6"),r=n("b622")("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==a(e))}},4930:function(e,t,n){var o=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var o=n("fc6a"),a=n("50c4"),r=n("23cb"),l=function(e){return function(t,n,l){var i,c=o(t),s=a(c.length),u=r(l,s);if(e&&n!=n){for(;s>u;)if((i=c[u++])!=i)return!0}else for(;s>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:l(!0),indexOf:l(!1)}},"4de4":function(e,t,n){var o=n("23e7"),a=n("b727").filter,r=n("1dde"),l=n("ae40"),i=r("filter"),c=l("filter");o({target:"Array",proto:!0,forced:!i||!c},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){var o=n("0366"),a=n("7b0b"),r=n("9bdd"),l=n("e95a"),i=n("50c4"),c=n("8418"),s=n("35a1");e.exports=function(e){var t,n,u,f,d,p,h=a(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=s(h),_=0;if(y&&(g=o(g,m>2?arguments[2]:void 0,2)),null==b||v==Array&&l(b))for(n=new v(t=i(h.length));t>_;_++)p=y?g(h[_],_):h[_],c(n,_,p);else for(d=(f=b.call(h)).next,n=new v;!(u=d.call(f)).done;_++)p=y?r(f,g,[u.value,_],!0):u.value,c(n,_,p);return n.length=_,n}},"4fad":function(e,t,n){var o=n("23e7"),a=n("6f53").entries;o({target:"Object",stat:!0},{entries:function(e){return a(e)}})},"50c4":function(e,t,n){var o=n("a691"),a=Math.min;e.exports=function(e){return e>0?a(o(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){var o=n("d784"),a=n("825a"),r=n("7b0b"),l=n("50c4"),i=n("a691"),c=n("1d80"),s=n("8aa5"),u=n("14c3"),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;o("replace",2,(function(e,t,n,o){var m=o.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=o.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(n,o){var a=c(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,a,o):t.call(String(a),n,o)},function(e,o){if(!m&&g||"string"==typeof o&&-1===o.indexOf(y)){var r=n(t,e,this,o);if(r.done)return r.value}var c=a(e),p=String(this),h="function"==typeof o;h||(o=String(o));var v=c.global;if(v){var _=c.unicode;c.lastIndex=0}for(var w=[];;){var x=u(c,p);if(null===x)break;if(w.push(x),!v)break;""===String(x[0])&&(c.lastIndex=s(p,l(c.lastIndex),_))}for(var k,C="",E=0,S=0;S=E&&(C+=p.slice(E,A)+j,E=A+O.length)}return C+p.slice(E)}];function b(e,n,o,a,l,i){var c=o+e.length,s=a.length,u=v;return void 0!==l&&(l=r(l),u=h),t.call(i,u,(function(t,r){var i;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,o);case"'":return n.slice(c);case"<":i=l[r.slice(1,-1)];break;default:var u=+r;if(0===u)return t;if(u>s){var f=p(u/10);return 0===f?t:f<=s?void 0===a[f-1]?r.charAt(1):a[f-1]+r.charAt(1):t}i=a[u-1]}return void 0===i?"":i}))}}))},5692:function(e,t,n){var o=n("c430"),a=n("c6cd");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var o=n("d066"),a=n("241c"),r=n("7418"),l=n("825a");e.exports=o("Reflect","ownKeys")||function(e){var t=a.f(l(e)),n=r.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var o=n("44e7");e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,n){var o=n("23e7"),a=n("a2bf"),r=n("7b0b"),l=n("50c4"),i=n("1c0b"),c=n("65f0");o({target:"Array",proto:!0},{flatMap:function(e){var t,n=r(this),o=l(n.length);return i(e),(t=c(n,0)).length=a(t,n,n,o,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,n){var o=n("a691"),a=n("1d80"),r=function(e){return function(t,n){var r,l,i=String(a(t)),c=o(n),s=i.length;return c<0||c>=s?e?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===s||(l=i.charCodeAt(c+1))<56320||l>57343?e?i.charAt(c):r:e?i.slice(c,c+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:r(!1),charAt:r(!0)}},"65f0":function(e,t,n){var o=n("861d"),a=n("e8b5"),r=n("b622")("species");e.exports=function(e,t){var n;return a(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!a(n.prototype)?o(n)&&null===(n=n[r])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var o,a,r,l=n("7f9a"),i=n("da84"),c=n("861d"),s=n("9112"),u=n("5135"),f=n("f772"),d=n("d012"),p=i.WeakMap;if(l){var h=new p,v=h.get,m=h.has,g=h.set;o=function(e,t){return g.call(h,e,t),t},a=function(e){return v.call(h,e)||{}},r=function(e){return m.call(h,e)}}else{var y=f("state");d[y]=!0,o=function(e,t){return s(e,y,t),t},a=function(e){return u(e,y)?e[y]:{}},r=function(e){return u(e,y)}}e.exports={set:o,get:a,has:r,enforce:function(e){return r(e)?a(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6eeb":function(e,t,n){var o=n("da84"),a=n("9112"),r=n("5135"),l=n("ce4e"),i=n("8925"),c=n("69f3"),s=c.get,u=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,i){var c=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,d=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||r(n,"name")||a(n,"name",t),u(n).source=f.join("string"==typeof t?t:"")),e!==o?(c?!d&&e[t]&&(s=!0):delete e[t],s?e[t]=n:a(e,t,n)):s?e[t]=n:l(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||i(this)}))},"6f53":function(e,t,n){var o=n("83ab"),a=n("df75"),r=n("fc6a"),l=n("d1e7").f,i=function(e){return function(t){for(var n,i=r(t),c=a(i),s=c.length,u=0,f=[];s>u;)n=c[u++],o&&!l.call(i,n)||f.push(e?[n,i[n]]:i[n]);return f}};e.exports={entries:i(!0),values:i(!1)}},"73d9":function(e,t,n){n("44d2")("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var o=n("428f"),a=n("5135"),r=n("e538"),l=n("9bf2").f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});a(t,e)||l(t,e,{value:r.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var o=n("1d80");e.exports=function(e){return Object(o(e))}},"7c73":function(e,t,n){var o,a=n("825a"),r=n("37e8"),l=n("7839"),i=n("d012"),c=n("1be4"),s=n("cc12"),u=n("f772"),f="prototype",d="script",p=u("IE_PROTO"),h=function(){},v=function(e){return"<"+d+">"+e+""},m=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t,n;m=o?function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t}(o):(t=s("iframe"),n="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F);for(var a=l.length;a--;)delete m[f][l[a]];return m()};i[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[f]=a(e),n=new h,h[f]=null,n[p]=e):n=m(),void 0===t?n:r(n,t)}},"7dd0":function(e,t,n){var o=n("23e7"),a=n("9ed3"),r=n("e163"),l=n("d2bb"),i=n("d44e"),c=n("9112"),s=n("6eeb"),u=n("b622"),f=n("c430"),d=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),g="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,u,p,w,x){a(n,t,u);var k,C,E,S=function(e){if(e===p&&F)return F;if(!v&&e in L)return L[e];switch(e){case g:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",A=!1,L=e.prototype,T=L[m]||L["@@iterator"]||p&&L[p],F=!v&&T||S(p),D="Array"==t&&L.entries||T;if(D&&(k=r(D.call(new e)),h!==Object.prototype&&k.next&&(f||r(k)===h||(l?l(k,h):"function"!=typeof k[m]&&c(k,m,_)),i(k,O,!0,!0),f&&(d[O]=_))),p==y&&T&&T.name!==y&&(A=!0,F=function(){return T.call(this)}),f&&!x||L[m]===F||c(L,m,F),d[t]=F,p)if(C={values:S(y),keys:w?F:S(g),entries:S(b)},x)for(E in C)(v||A||!(E in L))&&s(L,E,C[E]);else o({target:t,proto:!0,forced:v||A},C);return C}},"7f9a":function(e,t,n){var o=n("da84"),a=n("8925"),r=o.WeakMap;e.exports="function"==typeof r&&/native code/.test(a(r))},"825a":function(e,t,n){var o=n("861d");e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var o=n("d039");e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){var o=n("c04e"),a=n("9bf2"),r=n("5c6c");e.exports=function(e,t,n){var l=o(t);l in e?a.f(e,l,r(0,n)):e[l]=n}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8875:function(e,t,n){var o,a,r;"undefined"!=typeof self&&self,a=[],void 0===(r="function"==typeof(o=function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,o,a,r=/@([^@]*):(\d+):(\d+)\s*$/gi,l=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(d.stack)||r.exec(d.stack),i=l&&l[1]||!1,c=l&&l[2]||!1,s=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");i===s&&(n=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*
正在加载中,请稍等 ...
\ No newline at end of file diff --git a/manifest.webmanifest b/manifest.webmanifest new file mode 100644 index 00000000..07281cd6 --- /dev/null +++ b/manifest.webmanifest @@ -0,0 +1 @@ +{"name":"yft-design","short_name":"yft-design","start_url":"./index.html","display":"standalone","background_color":"#000000","lang":"en","scope":"./","theme_color":"#d14424","icons":[{"src":"./favicon.ico","sizes":"192x192","type":"image/png"},{"src":"./favicon.ico","sizes":"512x512","type":"image/png"},{"src":"./favicon.ico","sizes":"192x192","type":"image/png","purpose":"maskable"},{"src":"./favicon.ico","sizes":"512x512","type":"image/png","purpose":"maskable"}]} diff --git a/resource/color/shading.json b/resource/color/shading.json new file mode 100644 index 00000000..e920f8d1 --- /dev/null +++ b/resource/color/shading.json @@ -0,0 +1 @@ +[{"title":"Waves - 1","slug":"waves-1","mode":"stroke","colors":5,"maxStroke":6.5,"maxScale":16,"maxSpacing":[0,10],"width":120,"height":80,"vHeight":20,"tags":["waves","curves"],"path":"~~~"},{"title":"Waves - 2","slug":"waves-2","mode":"stroke","colors":5,"maxStroke":5.5,"maxScale":16,"maxSpacing":[0,10],"width":80,"height":80,"vHeight":20,"tags":["waves","curves"],"path":"~~~"},{"title":"Waves - 3","slug":"waves-3","mode":"stroke","colors":5,"maxStroke":5.5,"maxScale":16,"maxSpacing":[0,10],"width":40,"height":80,"vHeight":20,"tags":["waves","curves"],"path":"~~~"},{"title":"Waves - 5","slug":"waves-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":15.825,"height":26.667,"vHeight":0,"tags":["waves","curves"],"path":"~"},{"title":"Waves - 4","slug":"waves-4","mode":"stroke","colors":2,"maxStroke":4,"maxScale":10,"maxSpacing":[0,0],"width":70,"height":8,"vHeight":0,"tags":["waves","curves"],"path":""},{"title":"Waves - 6","slug":"waves-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":16.591,"height":26.667,"vHeight":0,"tags":["waves","curves"],"path":"~"},{"title":"Waves - 7","slug":"waves-7","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":35.584,"height":30.585,"vHeight":0,"tags":["waves","curves"],"path":"~"},{"title":"Chevron - 1","slug":"chevron-1","mode":"stroke-join","colors":5,"maxStroke":10,"maxScale":16,"maxSpacing":[0,10],"width":40,"height":80,"vHeight":20,"tags":["chevron","lines"],"path":"~~~"},{"title":"Chevron - 2","slug":"chevron-2","mode":"stroke-join","colors":5,"maxStroke":4.5,"maxScale":16,"maxSpacing":[0,10],"width":40,"height":80,"vHeight":20,"tags":["chevron","lines"],"path":"~~~"},{"title":"Chevron - 3","slug":"chevron-3","mode":"stroke-join","colors":5,"maxStroke":7,"maxScale":16,"maxSpacing":[0,10],"width":20,"height":80,"vHeight":20,"tags":["chevron","lines"],"path":"~~~"},{"title":"Straight Lines","slug":"straight-lines","mode":"stroke","colors":5,"maxStroke":19.5,"maxScale":12,"maxSpacing":[10,10],"width":20,"height":80,"vHeight":20,"tags":["straight lines"],"path":"~~~"},{"title":"Brick Wall - 2","slug":"brick-wall-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":30,"vHeight":0,"tags":["brick wall","lines"],"path":"~"},{"title":"Cross Section","slug":"cross-section","mode":"stroke","colors":2,"maxStroke":19.5,"maxScale":12,"maxSpacing":[10,10],"width":20,"height":20,"vHeight":0,"tags":["cross section","lines"],"path":""},{"title":"Brick Wall - 1","slug":"brick-wall-1","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[10,0],"width":30,"height":30,"vHeight":0,"tags":["brick wall","lines"],"path":""},{"title":"Herringbone - 2","slug":"herringbone-2","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["herringbone","lines"],"path":""},{"title":"Herringbone - 3","slug":"herringbone-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":"~"},{"title":"Herringbone - 1","slug":"herringbone-1","mode":"stroke","colors":2,"maxStroke":8.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":20,"vHeight":0,"tags":["herringbone","lines"],"path":""},{"title":"Herringbone - 4","slug":"herringbone-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":"~"},{"title":"Herringbone - 5","slug":"herringbone-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":"~"},{"title":"Herringbone - 6","slug":"herringbone-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":"~"},{"title":"Herringbone - 7","slug":"herringbone-7","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":""},{"title":"Herringbone - 8","slug":"herringbone-8","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":""},{"title":"Flower - 1","slug":"flower-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["flower","floral"],"path":"~"},{"title":"Flower - 2","slug":"flower-2","mode":"stroke","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["flower","floral"],"path":"~"},{"title":"Flower - 3","slug":"flower-3","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[20,20],"width":50,"height":50,"vHeight":0,"tags":["flower","floral"],"path":""},{"title":"Flower - 4","slug":"flower-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["flower","floral"],"path":""},{"title":"Flower - 5","slug":"flower-5","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["flower","floral"],"path":"~~~"},{"title":"Flower - 6","slug":"flower-6","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":40,"vHeight":0,"tags":["flower","floral"],"path":""},{"title":"Flower - 7","slug":"flower-7","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["flower","floral"],"path":"~~"},{"title":"Plus - 1","slug":"plus-1","mode":"stroke-join","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[10,10],"width":20,"height":20,"vHeight":0,"tags":["plus","cross"],"path":""},{"title":"Plus - 2","slug":"plus-2","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[6,6],"width":20,"height":20,"vHeight":0,"tags":["plus","cross"],"path":""},{"title":"Plus - 4","slug":"plus-4","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":32,"height":32,"vHeight":0,"tags":["plus","cross"],"path":"~"},{"title":"Circles - 1","slug":"circles-1","mode":"stroke","colors":3,"maxStroke":15,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Plus - 3","slug":"plus-3","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":32,"height":32,"vHeight":0,"tags":["plus","cross"],"path":"~"},{"title":"Circles - 2","slug":"circles-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Circles - 3","slug":"circles-3","mode":"stroke","colors":2,"maxStroke":15,"maxScale":16,"maxSpacing":[20,20],"width":20,"height":20,"vHeight":0,"tags":["circles"],"path":""},{"title":"Circles - 4","slug":"circles-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[20,20],"width":40,"height":40,"vHeight":0,"tags":["circles"],"path":""},{"title":"Circles - 5","slug":"circles-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Circles - 7","slug":"circles-7","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["circles"],"path":""},{"title":"Circles - 6","slug":"circles-6","mode":"stroke","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Concentric Circles - 1","slug":"concentric-circles-1","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":48,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Concentric Circles - 2","slug":"concentric-circles-2","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":36,"height":36,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Adjointed Diamonds","slug":"adjointed-diamonds","mode":"stroke","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["adjointed diamonds"],"path":"~"},{"title":"Concentric Circles - 3","slug":"concentric-circles-3","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":46.5,"height":46.5,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Adjointed Circles","slug":"adjointed-circles","mode":"stroke","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["adjointed circles"],"path":"~"},{"title":"Diamonds - 2","slug":"diamonds-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":100,"vHeight":0,"tags":["diamonds","rhombus"],"path":"~"},{"title":"Diamonds - 3","slug":"diamonds-3","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[10,0],"width":32,"height":32,"vHeight":0,"tags":["diamonds","rhombus"],"path":""},{"title":"Hexagon - 1","slug":"hexagon-1","mode":"stroke","colors":2,"maxStroke":10,"maxScale":16,"maxSpacing":[0,0],"width":29,"height":50.115,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 2","slug":"hexagon-2","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[10,10],"width":29,"height":50.115,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 3","slug":"hexagon-3","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[10,10],"width":29,"height":50.115,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 4","slug":"hexagon-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":58,"height":66.981,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 5","slug":"hexagon-5","mode":"stroke-join","colors":2,"maxStroke":8,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":59.428,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 6","slug":"hexagon-6","mode":"stroke-join","colors":2,"maxStroke":5.5,"maxScale":16,"maxSpacing":[0,0],"width":58,"height":100.23,"vHeight":0,"tags":["hexagon","triangles"],"path":""},{"title":"Diamonds - 1","slug":"diamonds-1","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["diamonds","rhombus"],"path":""},{"title":"Hexagon - 7","slug":"hexagon-7","mode":"stroke-join","colors":2,"maxStroke":5.5,"maxScale":16,"maxSpacing":[0,0],"width":58,"height":100.23,"vHeight":0,"tags":["hexagon","triangles"],"path":""},{"title":"Hexagon - 8","slug":"hexagon-8","mode":"stroke","colors":2,"maxStroke":6.5,"maxScale":16,"maxSpacing":[0,0],"width":50.41,"height":87,"vHeight":0,"tags":["hexagon","triangles"],"path":""},{"title":"Overlapping Hexagons","slug":"overlapping-hexagons","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":68,"height":61.151,"vHeight":0,"tags":["overlapping hexagons"],"path":""},{"title":"Squares & Squares - 2","slug":"squares-and-squares-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":80,"height":80,"vHeight":0,"tags":["squares & squares"],"path":"~"},{"title":"Squares & Squares - 1","slug":"squares-and-squares-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & squares"],"path":"~"},{"title":"Squares & Diamonds","slug":"squares-and-diamonds","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & diamonds"],"path":"~"},{"title":"Squares & Circles - 2","slug":"squares-and-circles-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["squares & circles"],"path":"~"},{"title":"Squares & Plus - 1","slug":"squares-and-plus-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & plus","cross"],"path":"~"},{"title":"Squares & Plus - 2","slug":"squares-and-plus-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["squares & plus","cross"],"path":"~"},{"title":"Squares & Stars - 1","slug":"squares-and-stars-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & stars"],"path":"~"},{"title":"Squares & Stars - 2","slug":"squares-and-stars-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & stars"],"path":"~"},{"title":"Stars & Lines - 1","slug":"stars-and-lines-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,10],"width":20,"height":40,"vHeight":0,"tags":["stars & lines","stripes"],"path":"~"},{"title":"Stars & Lines - 2","slug":"stars-and-lines-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,5],"width":20,"height":35,"vHeight":0,"tags":["stars & lines","stripes"],"path":"~"},{"title":"Triangles - 1","slug":"triangles-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[40,40],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 2","slug":"triangles-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[20,20],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 3","slug":"triangles-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Squares & Circles - 1","slug":"squares-and-circles-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & circles"],"path":"~"},{"title":"Triangles - 5","slug":"triangles-5","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 7","slug":"triangles-7","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":30,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 6","slug":"triangles-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 8","slug":"triangles-8","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":20,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 9","slug":"triangles-9","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":80,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 10","slug":"triangles-10","mode":"stroke-join","colors":2,"maxStroke":4.5,"maxScale":16,"maxSpacing":[0,0],"width":23.07,"height":40,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Inverted Triangles","slug":"inverted-triangles","mode":"stroke","colors":2,"maxStroke":5.5,"maxScale":10,"maxSpacing":[0,0],"width":16.5,"height":32.877,"vHeight":0,"tags":["inverted triangles"],"path":""},{"title":"Checkerboard","slug":"checkerboard","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["checkerboard","lines","squares"],"path":"~"},{"title":"Triangles - 4","slug":"triangles-4","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":40,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Japanese Pattern - 1","slug":"japanese-pattern-1","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":69.283,"height":40,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Japanese Pattern - 2","slug":"japanese-pattern-2","mode":"stroke","colors":2,"maxStroke":6.5,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":69.282,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Japanese Pattern - 3","slug":"japanese-pattern-3","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[10,10],"width":69.141,"height":40,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Japanese Pattern - 4","slug":"japanese-pattern-4","mode":"stroke","colors":2,"maxStroke":6.5,"maxScale":10,"maxSpacing":[0,0],"width":69.282,"height":40,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Japanese Pattern - 6","slug":"japanese-pattern-6","mode":"stroke-join","colors":2,"maxStroke":4,"maxScale":16,"maxSpacing":[0,0],"width":50.222,"height":29.003,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Eyes - 1","slug":"eyes-1","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[11.5,0],"width":40,"height":40,"vHeight":0,"tags":["eyes","curves"],"path":""},{"title":"Japanese Pattern - 5","slug":"japanese-pattern-5","mode":"fill","colors":2,"maxStroke":1,"maxScale":10,"maxSpacing":[0,30],"width":34.129,"height":45,"vHeight":0,"tags":["japanese pattern","country","waves"],"path":""},{"title":"Eyes - 2","slug":"eyes-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[11,0],"width":40,"height":40,"vHeight":0,"tags":["eyes","curves"],"path":""},{"title":"Jigsaw","slug":"jigsaw","mode":"stroke","colors":2,"maxStroke":7,"maxScale":10,"maxSpacing":[0,0],"width":160,"height":160,"vHeight":0,"tags":["jigsaw","puzzle"],"path":""},{"title":"Eyes - 4","slug":"eyes-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,40],"width":40,"height":40,"vHeight":0,"tags":["eyes","curves"],"path":""},{"title":"Eyes - 3","slug":"eyes-3","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,40],"width":40,"height":40,"vHeight":0,"tags":["eyes","curves"],"path":""},{"title":"Octagons - 2","slug":"octagons-2","mode":"stroke-join","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["octagons"],"path":""},{"title":"Octagons - 1","slug":"octagons-1","mode":"stroke-join","colors":3,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["octagons"],"path":"~"},{"title":"Railroad","slug":"railroad","mode":"stroke-join","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[10,0],"width":30,"height":30,"vHeight":0,"tags":["railroad","lines"],"path":""},{"title":"Lines - 2","slug":"lines-2","mode":"stroke-join","colors":3,"maxStroke":15,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["lines"],"path":"~"},{"title":"Scales - 1","slug":"scales-1","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["scales","clouds","fish"],"path":""},{"title":"Lines - 1","slug":"lines-1","mode":"stroke-join","colors":3,"maxStroke":15,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["lines"],"path":"~"},{"title":"Scales - 2","slug":"scales-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["scales","clouds","fish"],"path":""},{"title":"Scales - 3","slug":"scales-3","mode":"stroke","colors":2,"maxStroke":2,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":13,"vHeight":0,"tags":["scales","clouds","fish"],"path":""},{"title":"Scales - 4","slug":"scales-4","mode":"stroke","colors":2,"maxStroke":2,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":13,"vHeight":0,"tags":["scales","clouds","fish"],"path":""},{"title":"Leaves - 2","slug":"leaves-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 1","slug":"leaves-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 3","slug":"leaves-3","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 4","slug":"leaves-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["leaves"],"path":""},{"title":"Leaves - 6","slug":"leaves-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":38.907,"height":70,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 5","slug":"leaves-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":44.921,"height":50,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 7","slug":"leaves-7","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["leaves"],"path":"~~"},{"title":"Leaves - 8","slug":"leaves-8","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":68.436,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Zebra","slug":"zebra","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["zebra","animals"],"path":""},{"title":"Memphis Pattern - 2","slug":"memphis-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["memphis pattern"],"path":"~~"},{"title":"Pipes","slug":"pipes","mode":"stroke-join","colors":2,"maxStroke":5,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["pipes"],"path":""},{"title":"Memphis Pattern - 1","slug":"memphis-1","mode":"stroke-join","colors":5,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":70,"height":70,"vHeight":0,"tags":["memphis pattern"],"path":"~~~"},{"title":"Memphis Pattern - 3","slug":"memphis-3","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["memphis pattern"],"path":"~~"},{"title":"Memphis Pattern - 4","slug":"memphis-4","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["memphis pattern"],"path":"~~~"},{"title":"Memphis Pattern - 6","slug":"memphis-6","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["memphis pattern"],"path":"~~~"},{"title":"Greek Key","slug":"greek-key","mode":"stroke-join","colors":2,"maxStroke":5,"maxScale":16,"maxSpacing":[20,20],"width":62,"height":68,"vHeight":0,"tags":["greek key","country"],"path":""},{"title":"Memphis Pattern - 5","slug":"memphis-5","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":45,"height":110,"vHeight":0,"tags":["memphis pattern"],"path":"~~~"},{"title":"Chinese Pattern - 1","slug":"chinese-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["chinese pattern","country"],"path":"~"},{"title":"Chinese Pattern - 2","slug":"chinese-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["chinese pattern","country"],"path":""},{"title":"Chinese Pattern - 3","slug":"chinese-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["chinese pattern","country"],"path":"~"},{"title":"Chinese Pattern - 9","slug":"chinese-9","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["chinese pattern","country"],"path":"~"},{"title":"Chinese Pattern - 4","slug":"chinese-4","mode":"stroke-join","colors":2,"maxStroke":9.5,"maxScale":10,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["chinese pattern","country"],"path":""},{"title":"Chinese Pattern - 5","slug":"chinese-5","mode":"stroke-join","colors":5,"maxStroke":7,"maxScale":10,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["chinese pattern","country"],"path":"~~~"},{"title":"Chinese Pattern - 7","slug":"chinese-7","mode":"stroke-join","colors":4,"maxStroke":5,"maxScale":10,"maxSpacing":[0,0],"width":48,"height":48,"vHeight":0,"tags":["chinese pattern","country"],"path":"~~"},{"title":"Chinese Pattern - 8","slug":"chinese-8","mode":"stroke-join","colors":3,"maxStroke":9.5,"maxScale":10,"maxSpacing":[0,0],"width":36,"height":36,"vHeight":0,"tags":["chinese pattern","country"],"path":"~"},{"title":"New Pattern - 1","slug":"new-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":48,"vHeight":0,"tags":["new pattern"],"path":"~"},{"title":"New Pattern - 3","slug":"new-3","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"Chinese Pattern - 6","slug":"chinese-6","mode":"stroke-join","colors":2,"maxStroke":5,"maxScale":10,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["chinese pattern","country"],"path":""},{"title":"New Pattern - 4","slug":"new-4","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":"~~~"},{"title":"New Pattern - 5","slug":"new-5","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 2","slug":"new-2","mode":"stroke-join","colors":2,"maxStroke":8,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 6","slug":"new-6","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 8","slug":"new-8","mode":"stroke-join","colors":4,"maxStroke":3.5,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":"~~"},{"title":"New Pattern - 9","slug":"new-9","mode":"stroke-join","colors":4,"maxStroke":5,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":"~~"},{"title":"New Pattern - 10","slug":"new-10","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 11","slug":"new-11","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 14","slug":"new-14","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 13","slug":"new-13","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 7","slug":"new-7","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 15","slug":"new-15","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":29,"height":33.487,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 16","slug":"new-16","mode":"stroke-join","colors":2,"maxStroke":12,"maxScale":16,"maxSpacing":[0,0],"width":87,"height":50.232,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"Double Bubble - 1","slug":"double-bubble-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["double bubbles"],"path":"~"},{"title":"New Pattern - 17","slug":"new-17","mode":"stroke","colors":2,"maxStroke":8.5,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"Double Bubble - 2","slug":"double-bubble-2","mode":"stroke","colors":3,"maxStroke":5,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["double bubbles"],"path":"~"},{"title":"Stars - 1","slug":"stars-1","mode":"stroke-join","colors":3,"maxStroke":8,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["stars"],"path":"~"},{"title":"Stars - 3","slug":"stars-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["stars"],"path":"~"},{"title":"Stars - 2","slug":"stars-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["stars"],"path":"~"},{"title":"Stars - 4","slug":"stars-4","mode":"fill","colors":4,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["stars"],"path":"~~"},{"title":"Stars - 5","slug":"stars-5","mode":"fill","colors":4,"maxStroke":1,"maxScale":20,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["stars"],"path":"~~"},{"title":"Stars - 6","slug":"stars-6","mode":"fill","colors":4,"maxStroke":1,"maxScale":20,"maxSpacing":[0,0],"width":100,"height":80,"vHeight":0,"tags":["stars"],"path":"~~"},{"title":"Semicircles - 1","slug":"semicircles-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["semicircles"],"path":"~"},{"title":"Songket Pattern - 1","slug":"songket-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":61.125,"height":63.75,"vHeight":0,"tags":["songket pattern","malaysia"],"path":"~~~"},{"title":"Christmas Tree - 1","slug":"christmas-tree-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":70,"vHeight":0,"tags":["christmas","tree","holidays"],"path":"~~~"},{"title":"Candy Cane - 1","slug":"candy-cane-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":40,"vHeight":0,"tags":["christmas","candy","cane","holidays","santaclaus"],"path":"~"},{"title":"Christmas Bells - 1","slug":"christmas-bells-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["christmas","jingle","bells","holidays","santaclaus"],"path":"~"},{"title":"Christmas Pattern - 1","slug":"christmas-pattern-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":""},{"title":"Christmas Pattern - 2","slug":"christmas-pattern-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~~"},{"title":"New Pattern - 12","slug":"new-12","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"Snowflakes - 1","slug":"snowflakes-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["christmas","snowflakes","holidays","winter","santaclaus"],"path":"~"},{"title":"Christmas Pattern - 3","slug":"christmas-pattern-3","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~~"},{"title":"Santa Claus","slug":"santa-claus","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[30,30],"width":36.92,"height":45,"vHeight":0,"tags":["christmas","holidays","winter","santaclaus"],"path":"~~~"},{"title":"Christmas Gift","slug":"christmas-gift","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":40,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~~"},{"title":"Cubes - 1","slug":"cubes-1","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["cubes","squares","lines"],"path":""},{"title":"Christmas Tree Balls","slug":"christmas-tree-balls","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":90,"height":90,"vHeight":0,"tags":["christmas","tree","holidays","santaclaus"],"path":"~"},{"title":"Cubes - 3","slug":"cubes-3","mode":"stroke","colors":2,"maxStroke":9,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["cubes","squares","lines"],"path":""},{"title":"Cubes - 2","slug":"cubes-2","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["cubes","squares","lines"],"path":""},{"title":"Stained Glass","slug":"stained-glass","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":30,"vHeight":0,"tags":["cubes","squares","lines"],"path":""},{"title":"Tiles - 1","slug":"tiles-1","mode":"stroke","colors":2,"maxStroke":12,"maxScale":16,"maxSpacing":[0,0],"width":45,"height":51.96,"vHeight":0,"tags":["tiles","circles"],"path":""},{"title":"Mexican Pattern - 1","slug":"mexican-pattern-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["mexican pattern"],"path":"~~~"},{"title":"Mexican Pattern - 2","slug":"mexican-pattern-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["mexican pattern"],"path":"~~"},{"title":"Rectangles & Squares - 1","slug":"rectangles-and-squares-1","mode":"stroke","colors":2,"maxStroke":9,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["rectangles & squares"],"path":""},{"title":"Ethnic Pattern - 1","slug":"ethnic-pattern-1","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["ethnic pattern"],"path":"~~"},{"title":"Plaid Pattern - 1","slug":"plaid-pattern-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":30,"vHeight":0,"tags":["plaid pattern","tartan","buffalo"],"path":"~"},{"title":"Ethnic Pattern - 2","slug":"ethnic-pattern-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["ethnic pattern"],"path":"~~"},{"title":"Ethnic Pattern - 3","slug":"ethnic-pattern-3","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["ethnic pattern"],"path":"~~"},{"title":"Plaid Pattern - 3","slug":"plaid-pattern-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["plaid pattern","tartan","buffalo"],"path":"~"},{"title":"Plaid Pattern - 4","slug":"plaid-pattern-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["plaid pattern","tartan","buffalo"],"path":"~"},{"title":"Doodle Pattern - 1","slug":"doodle-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["doodle pattern"],"path":"~"},{"title":"Doodle Pattern - 2","slug":"doodle-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["doodle pattern"],"path":"~"},{"title":"Batik Pattern - 2","slug":"batik-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","floral","flower"],"path":"~"},{"title":"Plaid Pattern - 2","slug":"plaid-pattern-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["plaid pattern","tartan","buffalo"],"path":""},{"title":"Batik Pattern - 4","slug":"batik-4","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","floral","flower","diamonds"],"path":"~~"},{"title":"Batik Pattern - 5","slug":"batik-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","floral","flower"],"path":"~"},{"title":"Batik Pattern - 6","slug":"batik-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","floral","flower"],"path":"~"},{"title":"Batik Pattern - 3","slug":"batik-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","diamonds"],"path":"~"},{"title":"African Pattern - 1","slug":"african-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":96,"height":144,"vHeight":0,"tags":["african pattern"],"path":""},{"title":"African Pattern - 2","slug":"african-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":96,"vHeight":0,"tags":["african pattern"],"path":""},{"title":"Batik Pattern - 1","slug":"batik-1","mode":"stroke-join","colors":3,"maxStroke":6,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","diamonds"],"path":"~"},{"title":"African Pattern - 3","slug":"african-3","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":96,"vHeight":0,"tags":["african pattern"],"path":""},{"title":"African Pattern - 4","slug":"african-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":96,"vHeight":0,"tags":["african pattern"],"path":"~"},{"title":"Hexagon - 9","slug":"hexagon-9","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":73.612,"height":85,"vHeight":0,"tags":["hexagon","triangles"],"path":"~~"},{"title":"Triangles - 11","slug":"triangles-11","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":82,"vHeight":0,"tags":["triangles"],"path":"~~"},{"title":"Tiles - 2","slug":"tiles-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["tiles"],"path":"~"},{"title":"Tiles - 3","slug":"tiles-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["tiles","squares"],"path":"~"},{"title":"Tribal Pattern - 1","slug":"tribal-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":120,"height":120.1,"vHeight":0,"tags":["tribal pattern"],"path":""},{"title":"Waves - 8","slug":"waves-8","mode":"fill","colors":2,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":63,"height":63.6,"vHeight":0,"tags":["waves","curves"],"path":""},{"title":"Leaves - 9","slug":"leaves-9","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["leaves"],"path":"~~~"},{"title":"Tribal Pattern - 2","slug":"tribal-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":120,"height":120.1,"vHeight":0,"tags":["tribal pattern"],"path":""},{"title":"Blobs","slug":"blobs","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["blobs"],"path":"~~~"},{"title":"African Pattern - 5","slug":"african-5","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":120,"vHeight":0,"tags":["african pattern"],"path":"~~"},{"title":"Squares & Triangles - 1","slug":"squares-and-triangles-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["squares & squares"],"path":""},{"title":"Triangles - 12","slug":"triangles-12","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":200,"height":100,"vHeight":0,"tags":["triangles"],"path":"~~"},{"title":"Circles - 8","slug":"circles-8","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["circles"],"path":""},{"title":"Tribal Pattern - 3","slug":"tribal-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":98.25,"height":98.25,"vHeight":0,"tags":["tribal pattern","greek key","country"],"path":"~"},{"title":"Triangles - 13","slug":"triangles-13","mode":"fill","colors":2,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":75,"height":150,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Triangles - 14","slug":"triangles-14","mode":"fill","colors":3,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":65.5,"height":55.2,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 15","slug":"triangles-15","mode":"fill","colors":2,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":122.75,"height":125.8,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Triangles - 16","slug":"triangles-16","mode":"fill","colors":4,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":90.6,"height":90.6,"vHeight":0,"tags":["triangles"],"path":"~~"},{"title":"Concentric Circles - 4","slug":"concentric-circles-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":120,"height":69.336,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Concentric Circles - 5","slug":"concentric-circles-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Circles - 9","slug":"circles-9","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":65,"height":65,"vHeight":0,"tags":["circles"],"path":"~~~"},{"title":"Concentric Circles - 6","slug":"concentric-circles-6","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":90,"height":90,"vHeight":0,"tags":["concentric circles"],"path":"~~~"},{"title":"Stripes - 1","slug":"stripes-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["straight lines","stripes","lines"],"path":"~~~"},{"title":"Stripes - 2","slug":"stripes-2","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["straight lines","stripes","lines"],"path":"~~~"},{"title":"Chevron - 4","slug":"chevron-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":50,"vHeight":0,"tags":["chevron","lines"],"path":"~"},{"title":"Chevron - 5","slug":"chevron-5","mode":"fill","colors":4,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":65.5,"height":55.2,"vHeight":0,"tags":["chevron","lines"],"path":"~~"},{"title":"Terrazzo - 1","slug":"terrazzo-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":200,"height":200,"vHeight":0,"tags":["terrazzo","mosaic","tiles"],"path":"~~~"},{"title":"Geometric Pattern - 1","slug":"geometric-1","mode":"fill","colors":4,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":97.5,"height":49.15,"vHeight":0,"tags":["geometric","triangles","hexagon","diamond","rhombus"],"path":"~~"},{"title":"Halloween Pattern - 1","slug":"halloween-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["halloween","bats"],"path":"~"},{"title":"Halloween Pattern - 2","slug":"halloween-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["halloween","bats","skull"],"path":"~~"},{"title":"Halloween Pattern - 3","slug":"halloween-3","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["halloween","pumpkin"],"path":"~~~"},{"title":"Halloween Pattern - 4","slug":"halloween-4","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["halloween","candy","trick","treat"],"path":"~~~"},{"title":"Halloween Pattern - 5","slug":"halloween-5","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":75,"height":100,"vHeight":0,"tags":["halloween","pumpkin"],"path":"~~~"},{"title":"Halloween Pattern - 6","slug":"halloween-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":60,"height":80,"vHeight":0,"tags":["halloween","pumpkin"],"path":"~"},{"title":"Hexagon - 10","slug":"hexagon-10","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":69.3,"height":46.8,"vHeight":0,"tags":["hexagon","triangles"],"path":""},{"title":"Hexagon - 11","slug":"hexagon-11","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":94.4,"height":51.6,"vHeight":0,"tags":["hexagon","triangles"],"path":"~~"},{"title":"Squares - 1","slug":"squares-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["squares"],"path":"~~~"},{"title":"Sprinkles - 1","slug":"sprinkles-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["sprinkles"],"path":""},{"title":"Squares - 2","slug":"squares-2","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":65,"height":65,"vHeight":0,"tags":["squares"],"path":"~~~"},{"title":"Geometric Pattern - 2","slug":"geometric-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":180,"height":45,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Geometric Pattern - 4","slug":"geometric-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Cubes - 4","slug":"cubes-4","mode":"fill","colors":3,"maxStroke":9,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":60,"vHeight":0,"tags":["cubes","squares","lines"],"path":"~"},{"title":"Circles - 10","slug":"circles-10","mode":"fill","colors":2,"maxStroke":10,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":50,"vHeight":0,"tags":["circles"],"path":""},{"title":"Geometric Pattern - 3","slug":"geometric-3","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":90,"height":45,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Circles - 12","slug":"circles-12","mode":"fill","colors":3,"maxStroke":10,"maxScale":16,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Triangles - 17","slug":"triangles-17","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":150,"height":130,"vHeight":0,"tags":["triangles"],"path":"~~"},{"title":"Geometric Pattern - 5","slug":"geometric-5","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":116.75,"height":120,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Triangles - 18","slug":"triangles-18","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Circles - 11","slug":"circles-11","mode":"fill","colors":3,"maxStroke":10,"maxScale":16,"maxSpacing":[0,0],"width":24.96,"height":71.38,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Geometric Pattern - 6","slug":"geometric-6","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Squiggle","slug":"squiggle-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["squiggle"],"path":""},{"title":"Moroccan Pattern - 1","slug":"moroccan-1","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["moroccan"],"path":"~~"},{"title":"Moroccan Pattern - 2","slug":"moroccan-2","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["moroccan"],"path":"~~~"},{"title":"Japanese Pattern - 7","slug":"japanese-pattern-7","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":72.69,"height":42,"vHeight":0,"tags":["japanese pattern","country","bamboo","interlocked"],"path":"~~"},{"title":"Christmas Pattern - 4","slug":"christmas-pattern-4","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":19.46,"height":175.14,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~~"},{"title":"Christmas Pattern - 5","slug":"christmas-pattern-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":53.78,"height":119.06,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~"},{"title":"Plaid Pattern - 5","slug":"plaid-pattern-5","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":39.975,"height":50,"vHeight":0,"tags":["plaid pattern","tartan","buffalo","diamonds"],"path":""},{"title":"Waves - 9","slug":"waves-9","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":52,"vHeight":0,"tags":["waves","curves"],"path":"~"}] \ No newline at end of file diff --git a/resource/color/shading.json.gz b/resource/color/shading.json.gz new file mode 100644 index 00000000..6b64463b Binary files /dev/null and b/resource/color/shading.json.gz differ diff --git a/robots.txt b/robots.txt new file mode 100644 index 00000000..eb053628 --- /dev/null +++ b/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/sw.js b/sw.js new file mode 100644 index 00000000..136b18f6 --- /dev/null +++ b/sw.js @@ -0,0 +1 @@ +if(!self.define){let s,e={};const i=(i,n)=>(i=new URL(i+".js",n).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didn’t register its module`);return s})));self.define=(n,l)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let a={};const u=s=>i(s,r),t={module:{uri:r},exports:a,require:u};e[r]=Promise.all(n.map((s=>t[s]||u(s)))).then((s=>(l(...s),a)))}}define(["./workbox-fd6446f0"],(function(s){"use strict";s.setCacheNameDetails({prefix:"yft-design-cache"}),self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/401-2a9b5f24.css",revision:null},{url:"assets/401-867e9ae9.js",revision:null},{url:"assets/404-1e71c88c.css",revision:null},{url:"assets/404-ad15d341.js",revision:null},{url:"assets/clipper-lib-eae4901e.js",revision:null},{url:"assets/element-plus-2d3d0866.js",revision:null},{url:"assets/fabric-aa9a28c9.js",revision:null},{url:"assets/index-025bde72.js",revision:null},{url:"assets/index-3a84706f.js",revision:null},{url:"assets/index-9efc38ed.js",revision:null},{url:"assets/index-a0142a5c.js",revision:null},{url:"assets/index-d5232f13.css",revision:null},{url:"assets/index-efe0a5c7.css",revision:null},{url:"assets/index-f8b79f6e.css",revision:null},{url:"assets/lodash-es-fcf8a448.js",revision:null},{url:"assets/opentype.js-3318d238.js",revision:null},{url:"assets/pixi-b6d9c9e4.js",revision:null},{url:"assets/vue-aadc59b7.js",revision:null},{url:"assets/workbox-window.prod.es5-1e1a3f8e.js",revision:null},{url:"index.html",revision:"1f417d171daf2ff2a9756d30975609e1"},{url:"./favicon.ico",revision:"041e571db7264be1ed5a6ad5965b4657"},{url:"manifest.webmanifest",revision:"10dd2a18d513265fa216669a25cbb01d"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"))),s.registerRoute(/.*/i,new s.NetworkFirst({cacheName:"interface-cache",plugins:[]}),"GET"),s.registerRoute(/(.*?)\.(js|css|ts)/,new s.CacheFirst({cacheName:"js-css-cache",plugins:[]}),"GET"),s.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps)/,new s.CacheFirst({cacheName:"image-cache",plugins:[]}),"GET")})); diff --git a/workbox-fd6446f0.js b/workbox-fd6446f0.js new file mode 100644 index 00000000..cde99222 --- /dev/null +++ b/workbox-fd6446f0.js @@ -0,0 +1 @@ +define(["exports"],(function(t){"use strict";try{self["workbox:core:6.5.4"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.5.4"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class r{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class i extends r{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=i&&i.handler;const a=t.method;if(!o&&this.i.has(a)&&(o=this.i.get(a)),!o)return;let c;try{c=o.handle({url:s,request:t,event:e,params:r})}catch(t){c=Promise.reject(t)}const h=i&&i.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:r})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const r=this.t.get(s.method)||[];for(const i of r){let r;const o=i.match({url:t,sameOrigin:e,request:s,event:n});if(o)return r=o,(Array.isArray(r)&&0===r.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(r=void 0),{route:i,params:r}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let a;const c=()=>(a||(a=new o,a.addFetchListener(),a.addCacheListener()),a);function h(t,e,n){let o;if("string"==typeof t){const s=new URL(t,location.href);o=new r((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)o=new i(t,e,n);else if("function"==typeof t)o=new r(t,e,n);else{if(!(t instanceof r))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=t}return c().registerRoute(o),o}try{self["workbox:strategies:6.5.4"]&&_()}catch(t){}const u={cacheWillUpdate:async({response:t})=>200===t.status||0===t.status?t:null},l={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},f=t=>[l.prefix,t,l.suffix].filter((t=>t&&t.length>0)).join("-"),w=t=>{(t=>{for(const e of Object.keys(l))t(e)})((e=>{"string"==typeof t[e]&&(l[e]=t[e])}))},d=t=>t||f(l.precache),p=t=>t||f(l.runtime);function y(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class g{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const m=new Set;function R(t){return"string"==typeof t?new Request(t):t}class v{constructor(t,e){this.h={},Object.assign(this,e),this.event=e.event,this.u=t,this.l=new g,this.p=[],this.m=[...t.plugins],this.R=new Map;for(const t of this.m)this.R.set(t,{});this.event.waitUntil(this.l.promise)}async fetch(t){const{event:e}=this;let n=R(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const r=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const i=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.u.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:i,response:t});return t}catch(t){throw r&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:r.clone(),request:i.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=R(t);let s;const{cacheName:n,matchOptions:r}=this.u,i=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},r),{cacheName:n});s=await caches.match(i,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:r,cachedResponse:s,request:i,event:this.event})||void 0;return s}async cachePut(t,e){const n=R(t);var r;await(r=0,new Promise((t=>setTimeout(t,r))));const i=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=i.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const a=await this.v(e);if(!a)return!1;const{cacheName:c,matchOptions:h}=this.u,u=await self.caches.open(c),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const r=y(e.url,s);if(e.url===r)return t.match(e,n);const i=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,i);for(const e of o)if(r===y(e.url,s))return t.match(e,n)}(u,i.clone(),["__WB_REVISION__"],h):null;try{await u.put(i,l?a.clone():a)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of m)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:c,oldResponse:f,newResponse:a.clone(),request:i,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.h[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=R(await t({mode:e,request:n,event:this.event,params:this.params}));this.h[s]=n}return this.h[s]}hasCallback(t){for(const e of this.u.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.u.plugins)if("function"==typeof e[t]){const s=this.R.get(e),n=n=>{const r=Object.assign(Object.assign({},n),{state:s});return e[t](r)};yield n}}waitUntil(t){return this.p.push(t),t}async doneWaiting(){let t;for(;t=this.p.shift();)await t}destroy(){this.l.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class q{constructor(t={}){this.cacheName=p(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,r=new v(this,{event:e,request:s,params:n}),i=this.q(r,s,e);return[i,this.U(i,r,s,e)]}async q(t,e,n){let r;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(r=await this.L(e,t),!r||"error"===r.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const i of t.iterateCallbacks("handlerDidError"))if(r=await i({error:s,event:n,request:e}),r)break;if(!r)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))r=await s({event:n,request:e,response:r});return r}async U(t,e,s,n){let r,i;try{r=await t}catch(i){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:r}),await e.doneWaiting()}catch(t){t instanceof Error&&(i=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:r,error:i}),e.destroy(),i)throw i}}function U(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:6.5.4"]&&_()}catch(t){}function b(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const r=new URL(n,location.href),i=new URL(n,location.href);return r.searchParams.set("__WB_REVISION__",e),{cacheKey:r.href,url:i.href}}class L{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class E{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this._.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this._=t}}let x,C;async function O(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const r=t.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},o=e?e(i):i,a=function(){if(void 0===x){const t=new Response("");if("body"in t)try{new Response(t.body),x=!0}catch(t){x=!1}x=!1}return x}()?r.body:await r.blob();return new Response(a,o)}class N extends q{constructor(t={}){t.cacheName=d(t.cacheName),super(t),this.C=!1!==t.fallbackToNetwork,this.plugins.push(N.copyRedirectedCacheableResponsesPlugin)}async L(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.O(t,e):await this.N(t,e))}async N(t,e){let n;const r=e.params||{};if(!this.C)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=r.integrity,i=t.integrity,o=!i||i===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?i||s:void 0})),s&&o&&"no-cors"!==t.mode&&(this.P(),await e.cachePut(t,n.clone()))}return n}async O(t,e){this.P();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}P(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==N.copyRedirectedCacheableResponsesPlugin&&(n===N.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(N.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}N.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},N.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await O(t):t};class P{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.T=new Map,this.W=new Map,this.k=new Map,this.u=new N({cacheName:d(t),plugins:[...e,new E({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.u}precache(t){this.addToCacheList(t),this.j||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.j=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:r}=b(n),i="string"!=typeof n&&n.revision?"reload":"default";if(this.T.has(r)&&this.T.get(r)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.T.get(r),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.k.has(t)&&this.k.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:r});this.k.set(t,n.integrity)}if(this.T.set(r,t),this.W.set(r,i),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return U(t,(async()=>{const e=new L;this.strategy.plugins.push(e);for(const[e,s]of this.T){const n=this.k.get(s),r=this.W.get(e),i=new Request(e,{integrity:n,cache:r,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:i,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return U(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.T.values()),n=[];for(const r of e)s.has(r.url)||(await t.delete(r),n.push(r.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.T}getCachedURLs(){return[...this.T.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.T.get(e.href)}getIntegrityForCacheKey(t){return this.k.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}const T=()=>(C||(C=new P),C);class W extends r{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const r of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:r}={}){const i=new URL(t,location.href);i.hash="",yield i.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(i,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(r){const t=r({url:i});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(r);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}t.CacheFirst=class extends q{async L(t,e){let n,r=await e.cacheMatch(t);if(!r)try{r=await e.fetchAndCachePut(t)}catch(t){t instanceof Error&&(n=t)}if(!r)throw new s("no-response",{url:t.url,error:n});return r}},t.NavigationRoute=class extends r{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super((t=>this.K(t)),t),this.M=e,this.S=s}K({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.S)if(t.test(s))return!1;return!!this.M.some((t=>t.test(s)))}},t.NetworkFirst=class extends q{constructor(t={}){super(t),this.plugins.some((t=>"cacheWillUpdate"in t))||this.plugins.unshift(u),this.D=t.networkTimeoutSeconds||0}async L(t,e){const n=[],r=[];let i;if(this.D){const{id:s,promise:o}=this.I({request:t,logs:n,handler:e});i=s,r.push(o)}const o=this.F({timeoutId:i,request:t,logs:n,handler:e});r.push(o);const a=await e.waitUntil((async()=>await e.waitUntil(Promise.race(r))||await o)());if(!a)throw new s("no-response",{url:t.url});return a}I({request:t,logs:e,handler:s}){let n;return{promise:new Promise((e=>{n=setTimeout((async()=>{e(await s.cacheMatch(t))}),1e3*this.D)})),id:n}}async F({timeoutId:t,request:e,logs:s,handler:n}){let r,i;try{i=await n.fetchAndCachePut(e)}catch(t){t instanceof Error&&(r=t)}return t&&clearTimeout(t),!r&&i||(i=await n.cacheMatch(e)),i}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",(t=>{const e=d();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t));return await Promise.all(s.map((t=>self.caches.delete(t)))),s})(e).then((t=>{})))}))},t.clientsClaim=function(){self.addEventListener("activate",(()=>self.clients.claim()))},t.createHandlerBoundToURL=function(t){return T().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){T().precache(t)}(t),function(t){const e=T();h(new W(e,t))}(e)},t.registerRoute=h,t.setCacheNameDetails=function(t){w(t)}}));