@tendaui/theme-generator 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +289 -119
- package/dist/index.esm.js +11092 -4951
- package/dist/theme-generator.css +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fc={},st,lc;function Cr(){if(lc)return st;lc=1;var r=function(e){return e&&e.Math===Math&&e};return st=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof cc=="object"&&cc)||r(typeof st=="object"&&st)||(function(){return this})()||Function("return this")(),st}var Tn,vc;function pr(){return vc||(vc=1,Tn=function(r){try{return!!r()}catch{return!0}}),Tn}var xn,dc;function Ut(){if(dc)return xn;dc=1;var r=pr();return xn=!r(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),xn}var Pn,hc;function cp(){if(hc)return Pn;hc=1;var r=Ut(),e=Function.prototype,t=e.apply,n=e.call;return Pn=typeof Reflect=="object"&&Reflect.apply||(r?n.bind(t):function(){return n.apply(t,arguments)}),Pn}var $n,pc;function _r(){if(pc)return $n;pc=1;var r=Ut(),e=Function.prototype,t=e.call,n=r&&e.bind.bind(t,t);return $n=r?n:function(o){return function(){return t.apply(o,arguments)}},$n}var An,yc;function de(){if(yc)return An;yc=1;var r=_r(),e=r({}.toString),t=r("".slice);return An=function(n){return t(e(n),8,-1)},An}var Mn,bc;function fp(){if(bc)return Mn;bc=1;var r=de(),e=_r();return Mn=function(t){if(r(t)==="Function")return e(t)},Mn}var Cn,gc;function xr(){if(gc)return Cn;gc=1;var r=typeof document=="object"&&document.all;return Cn=typeof r>"u"&&r!==void 0?function(e){return typeof e=="function"||e===r}:function(e){return typeof e=="function"},Cn}var Fn={},kn,mc;function Fr(){if(mc)return kn;mc=1;var r=pr();return kn=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),kn}var Dn,Sc;function Br(){if(Sc)return Dn;Sc=1;var r=Ut(),e=Function.prototype.call;return Dn=r?e.bind(e):function(){return e.apply(e,arguments)},Dn}var jn={},_c;function ds(){if(_c)return jn;_c=1;var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,t=e&&!r.call({1:2},1);return jn.f=t?function(o){var s=e(this,o);return!!s&&s.enumerable}:r,jn}var Ln,Rc;function ht(){return Rc||(Rc=1,Ln=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}),Ln}var Nn,Ic;function hs(){if(Ic)return Nn;Ic=1;var r=_r(),e=pr(),t=de(),n=Object,o=r("".split);return Nn=e(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return t(s)==="String"?o(s,""):n(s)}:n,Nn}var Bn,qc;function pt(){return qc||(qc=1,Bn=function(r){return r==null}),Bn}var Gn,wc;function yt(){if(wc)return Gn;wc=1;var r=pt(),e=TypeError;return Gn=function(t){if(r(t))throw new e("Can't call method on "+t);return t},Gn}var Kn,Ec;function he(){if(Ec)return Kn;Ec=1;var r=hs(),e=yt();return Kn=function(t){return r(e(t))},Kn}var zn,Oc;function kr(){if(Oc)return zn;Oc=1;var r=xr();return zn=function(e){return typeof e=="object"?e!==null:r(e)},zn}var Wn,Tc;function Qr(){return Tc||(Tc=1,Wn={}),Wn}var Un,xc;function re(){if(xc)return Un;xc=1;var r=Qr(),e=Cr(),t=xr(),n=function(o){return t(o)?o:void 0};return Un=function(o,s){return arguments.length<2?n(r[o])||n(e[o]):r[o]&&r[o][s]||e[o]&&e[o][s]},Un}var Hn,Pc;function zr(){if(Pc)return Hn;Pc=1;var r=_r();return Hn=r({}.isPrototypeOf),Hn}var Vn,$c;function Ht(){if($c)return Vn;$c=1;var r=Cr(),e=r.navigator,t=e&&e.userAgent;return Vn=t?String(t):"",Vn}var Yn,Ac;function Vt(){if(Ac)return Yn;Ac=1;var r=Cr(),e=Ht(),t=r.process,n=r.Deno,o=t&&t.versions||n&&n.version,s=o&&o.v8,u,v;return s&&(u=s.split("."),v=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!v&&e&&(u=e.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=e.match(/Chrome\/(\d+)/),u&&(v=+u[1]))),Yn=v,Yn}var Jn,Mc;function Ke(){if(Mc)return Jn;Mc=1;var r=Vt(),e=pr(),t=Cr(),n=t.String;return Jn=!!Object.getOwnPropertySymbols&&!e(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&r&&r<41}),Jn}var Xn,Cc;function lp(){if(Cc)return Xn;Cc=1;var r=Ke();return Xn=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Xn}var Zn,Fc;function bt(){if(Fc)return Zn;Fc=1;var r=re(),e=xr(),t=zr(),n=lp(),o=Object;return Zn=n?function(s){return typeof s=="symbol"}:function(s){var u=r("Symbol");return e(u)&&t(u.prototype,o(s))},Zn}var Qn,kc;function ze(){if(kc)return Qn;kc=1;var r=String;return Qn=function(e){try{return r(e)}catch{return"Object"}},Qn}var ra,Dc;function We(){if(Dc)return ra;Dc=1;var r=xr(),e=ze(),t=TypeError;return ra=function(n){if(r(n))return n;throw new t(e(n)+" is not a function")},ra}var ea,jc;function ps(){if(jc)return ea;jc=1;var r=We(),e=pt();return ea=function(t,n){var o=t[n];return e(o)?void 0:r(o)},ea}var ta,Lc;function Eb(){if(Lc)return ta;Lc=1;var r=Br(),e=xr(),t=kr(),n=TypeError;return ta=function(o,s){var u,v;if(s==="string"&&e(u=o.toString)&&!t(v=r(u,o))||e(u=o.valueOf)&&!t(v=r(u,o))||s!=="string"&&e(u=o.toString)&&!t(v=r(u,o)))return v;throw new n("Can't convert object to primitive value")},ta}var na={exports:{}},aa,Nc;function gt(){return Nc||(Nc=1,aa=!0),aa}var oa,Bc;function Ob(){if(Bc)return oa;Bc=1;var r=Cr(),e=Object.defineProperty;return oa=function(t,n){try{e(r,t,{value:n,configurable:!0,writable:!0})}catch{r[t]=n}return n},oa}var Gc;function ys(){if(Gc)return na.exports;Gc=1;var r=gt(),e=Cr(),t=Ob(),n="__core-js_shared__",o=na.exports=e[n]||t(n,{});return(o.versions||(o.versions=[])).push({version:"3.46.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"}),na.exports}var ia,Kc;function Ue(){if(Kc)return ia;Kc=1;var r=ys();return ia=function(e,t){return r[e]||(r[e]=t||{})},ia}var ua,zc;function ee(){if(zc)return ua;zc=1;var r=yt(),e=Object;return ua=function(t){return e(r(t))},ua}var sa,Wc;function Wr(){if(Wc)return sa;Wc=1;var r=_r(),e=ee(),t=r({}.hasOwnProperty);return sa=Object.hasOwn||function(o,s){return t(e(o),s)},sa}var ca,Uc;function Yt(){if(Uc)return ca;Uc=1;var r=_r(),e=0,t=Math.random(),n=r(1.1.toString);return ca=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++e+t,36)},ca}var fa,Hc;function Rr(){if(Hc)return fa;Hc=1;var r=Cr(),e=Ue(),t=Wr(),n=Yt(),o=Ke(),s=lp(),u=r.Symbol,v=e("wks"),l=s?u.for||u:u&&u.withoutSetter||n;return fa=function(f){return t(v,f)||(v[f]=o&&t(u,f)?u[f]:l("Symbol."+f)),v[f]},fa}var la,Vc;function Tb(){if(Vc)return la;Vc=1;var r=Br(),e=kr(),t=bt(),n=ps(),o=Eb(),s=Rr(),u=TypeError,v=s("toPrimitive");return la=function(l,f){if(!e(l)||t(l))return l;var h=n(l,v),y;if(h){if(f===void 0&&(f="default"),y=r(h,l,f),!e(y)||t(y))return y;throw new u("Can't convert object to primitive value")}return f===void 0&&(f="number"),o(l,f)},la}var va,Yc;function bs(){if(Yc)return va;Yc=1;var r=Tb(),e=bt();return va=function(t){var n=r(t,"string");return e(n)?n:n+""},va}var da,Jc;function vp(){if(Jc)return da;Jc=1;var r=Cr(),e=kr(),t=r.document,n=e(t)&&e(t.createElement);return da=function(o){return n?t.createElement(o):{}},da}var ha,Xc;function dp(){if(Xc)return ha;Xc=1;var r=Fr(),e=pr(),t=vp();return ha=!r&&!e(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),ha}var Zc;function hp(){if(Zc)return Fn;Zc=1;var r=Fr(),e=Br(),t=ds(),n=ht(),o=he(),s=bs(),u=Wr(),v=dp(),l=Object.getOwnPropertyDescriptor;return Fn.f=r?l:function(h,y){if(h=o(h),y=s(y),v)try{return l(h,y)}catch{}if(u(h,y))return n(!e(t.f,h,y),h[y])},Fn}var pa,Qc;function xb(){if(Qc)return pa;Qc=1;var r=pr(),e=xr(),t=/#|\.prototype\./,n=function(l,f){var h=s[o(l)];return h===v?!0:h===u?!1:e(f)?r(f):!!f},o=n.normalize=function(l){return String(l).replace(t,".").toLowerCase()},s=n.data={},u=n.NATIVE="N",v=n.POLYFILL="P";return pa=n,pa}var ya,rf;function mt(){if(rf)return ya;rf=1;var r=fp(),e=We(),t=Ut(),n=r(r.bind);return ya=function(o,s){return e(o),s===void 0?o:t?n(o,s):function(){return o.apply(s,arguments)}},ya}var ba={},ga,ef;function pp(){if(ef)return ga;ef=1;var r=Fr(),e=pr();return ga=r&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),ga}var ma,tf;function ie(){if(tf)return ma;tf=1;var r=kr(),e=String,t=TypeError;return ma=function(n){if(r(n))return n;throw new t(e(n)+" is not an object")},ma}var nf;function Jr(){if(nf)return ba;nf=1;var r=Fr(),e=dp(),t=pp(),n=ie(),o=bs(),s=TypeError,u=Object.defineProperty,v=Object.getOwnPropertyDescriptor,l="enumerable",f="configurable",h="writable";return ba.f=r?t?function(d,p,S){if(n(d),p=o(p),n(S),typeof d=="function"&&p==="prototype"&&"value"in S&&h in S&&!S[h]){var w=v(d,p);w&&w[h]&&(d[p]=S.value,S={configurable:f in S?S[f]:w[f],enumerable:l in S?S[l]:w[l],writable:!1})}return u(d,p,S)}:u:function(d,p,S){if(n(d),p=o(p),n(S),e)try{return u(d,p,S)}catch{}if("get"in S||"set"in S)throw new s("Accessors not supported");return"value"in S&&(d[p]=S.value),d},ba}var Sa,af;function He(){if(af)return Sa;af=1;var r=Fr(),e=Jr(),t=ht();return Sa=r?function(n,o,s){return e.f(n,o,t(1,s))}:function(n,o,s){return n[o]=s,n},Sa}var _a,of;function ar(){if(of)return _a;of=1;var r=Cr(),e=cp(),t=fp(),n=xr(),o=hp().f,s=xb(),u=Qr(),v=mt(),l=He(),f=Wr(),h=function(y){var d=function(p,S,w){if(this instanceof d){switch(arguments.length){case 0:return new y;case 1:return new y(p);case 2:return new y(p,S)}return new y(p,S,w)}return e(y,this,arguments)};return d.prototype=y.prototype,d};return _a=function(y,d){var p=y.target,S=y.global,w=y.stat,$=y.proto,C=S?r:w?r[p]:r[p]&&r[p].prototype,b=S?u:u[p]||l(u,p,{})[p],E=b.prototype,m,O,M,F,q,x,k,A,B;for(F in d)m=s(S?F:p+(w?".":"#")+F,y.forced),O=!m&&C&&f(C,F),x=b[F],O&&(y.dontCallGetSet?(B=o(C,F),k=B&&B.value):k=C[F]),q=O&&k?k:d[F],!(!m&&!$&&typeof x==typeof q)&&(y.bind&&O?A=v(q,r):y.wrap&&O?A=h(q):$&&n(q)?A=t(q):A=q,(y.sham||q&&q.sham||x&&x.sham)&&l(A,"sham",!0),l(b,F,A),$&&(M=p+"Prototype",f(u,M)||l(u,M,{}),l(u[M],F,q),y.real&&E&&(m||!E[F])&&l(E,F,q)))},_a}var Ra,uf;function Ve(){if(uf)return Ra;uf=1;var r=de();return Ra=Array.isArray||function(t){return r(t)==="Array"},Ra}var sf;function Pb(){if(sf)return fc;sf=1;var r=ar(),e=Ve();return r({target:"Array",stat:!0},{isArray:e}),fc}var Ia,cf;function $b(){if(cf)return Ia;cf=1,Pb();var r=Qr();return Ia=r.Array.isArray,Ia}var qa,ff;function Ab(){if(ff)return qa;ff=1;var r=$b();return qa=r,qa}var wa,lf;function Mb(){if(lf)return wa;lf=1;var r=Ab();return wa=r,wa}var Ea,vf;function Cb(){if(vf)return Ea;vf=1;var r=Mb();return Ea=r,Ea}var Oa,df;function Fb(){return df||(df=1,Oa=Cb()),Oa}var Ta,hf;function kb(){return hf||(hf=1,Ta=Fb()),Ta}var Db=kb();const yp=gr(Db);function is(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function jb(r){if(yp(r))return is(r)}var pf={},xa,yf;function Lb(){if(yf)return xa;yf=1;var r=Math.ceil,e=Math.floor;return xa=Math.trunc||function(n){var o=+n;return(o>0?e:r)(o)},xa}var Pa,bf;function St(){if(bf)return Pa;bf=1;var r=Lb();return Pa=function(e){var t=+e;return t!==t||t===0?0:r(t)},Pa}var $a,gf;function Nb(){if(gf)return $a;gf=1;var r=St(),e=Math.min;return $a=function(t){var n=r(t);return n>0?e(n,9007199254740991):0},$a}var Aa,mf;function ue(){if(mf)return Aa;mf=1;var r=Nb();return Aa=function(e){return r(e.length)},Aa}var Ma,Sf;function bp(){if(Sf)return Ma;Sf=1;var r=TypeError,e=9007199254740991;return Ma=function(t){if(t>e)throw r("Maximum allowed index exceeded");return t},Ma}var Ca,_f;function Jt(){if(_f)return Ca;_f=1;var r=Fr(),e=Jr(),t=ht();return Ca=function(n,o,s){r?e.f(n,o,t(0,s)):n[o]=s},Ca}var Fa,Rf;function gs(){if(Rf)return Fa;Rf=1;var r=Rr(),e=r("toStringTag"),t={};return t[e]="z",Fa=String(t)==="[object z]",Fa}var ka,If;function Xt(){if(If)return ka;If=1;var r=gs(),e=xr(),t=de(),n=Rr(),o=n("toStringTag"),s=Object,u=t((function(){return arguments})())==="Arguments",v=function(l,f){try{return l[f]}catch{}};return ka=r?t:function(l){var f,h,y;return l===void 0?"Undefined":l===null?"Null":typeof(h=v(f=s(l),o))=="string"?h:u?t(f):(y=t(f))==="Object"&&e(f.callee)?"Arguments":y},ka}var Da,qf;function Bb(){if(qf)return Da;qf=1;var r=_r(),e=xr(),t=ys(),n=r(Function.toString);return e(t.inspectSource)||(t.inspectSource=function(o){return n(o)}),Da=t.inspectSource,Da}var ja,wf;function ms(){if(wf)return ja;wf=1;var r=_r(),e=pr(),t=xr(),n=Xt(),o=re(),s=Bb(),u=function(){},v=o("Reflect","construct"),l=/^\s*(?:class|function)\b/,f=r(l.exec),h=!l.test(u),y=function(S){if(!t(S))return!1;try{return v(u,[],S),!0}catch{return!1}},d=function(S){if(!t(S))return!1;switch(n(S)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(l,s(S))}catch{return!0}};return d.sham=!0,ja=!v||e(function(){var p;return y(y.call)||!y(Object)||!y(function(){p=!0})||p})?d:y,ja}var La,Ef;function Gb(){if(Ef)return La;Ef=1;var r=Ve(),e=ms(),t=kr(),n=Rr(),o=n("species"),s=Array;return La=function(u){var v;return r(u)&&(v=u.constructor,e(v)&&(v===s||r(v.prototype))?v=void 0:t(v)&&(v=v[o],v===null&&(v=void 0))),v===void 0?s:v},La}var Na,Of;function Ss(){if(Of)return Na;Of=1;var r=Gb();return Na=function(e,t){return new(r(e))(t===0?0:t)},Na}var Ba,Tf;function _t(){if(Tf)return Ba;Tf=1;var r=pr(),e=Rr(),t=Vt(),n=e("species");return Ba=function(o){return t>=51||!r(function(){var s=[],u=s.constructor={};return u[n]=function(){return{foo:1}},s[o](Boolean).foo!==1})},Ba}var xf;function gp(){if(xf)return pf;xf=1;var r=ar(),e=pr(),t=Ve(),n=kr(),o=ee(),s=ue(),u=bp(),v=Jt(),l=Ss(),f=_t(),h=Rr(),y=Vt(),d=h("isConcatSpreadable"),p=y>=51||!e(function(){var $=[];return $[d]=!1,$.concat()[0]!==$}),S=function($){if(!n($))return!1;var C=$[d];return C!==void 0?!!C:t($)},w=!p||!f("concat");return r({target:"Array",proto:!0,arity:1,forced:w},{concat:function(C){var b=o(this),E=l(b,0),m=0,O,M,F,q,x;for(O=-1,F=arguments.length;O<F;O++)if(x=O===-1?b:arguments[O],S(x))for(q=s(x),u(m+q),M=0;M<q;M++,m++)M in x&&v(E,m,x[M]);else u(m+1),v(E,m++,x);return E.length=m,E}}),pf}var Pf={},$f={},Ga,Af;function _e(){if(Af)return Ga;Af=1;var r=Xt(),e=String;return Ga=function(t){if(r(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(t)},Ga}var Ka={},za,Mf;function Zt(){if(Mf)return za;Mf=1;var r=St(),e=Math.max,t=Math.min;return za=function(n,o){var s=r(n);return s<0?e(s+o,0):t(s,o)},za}var Wa,Cf;function mp(){if(Cf)return Wa;Cf=1;var r=he(),e=Zt(),t=ue(),n=function(o){return function(s,u,v){var l=r(s),f=t(l);if(f===0)return!o&&-1;var h=e(v,f),y;if(o&&u!==u){for(;f>h;)if(y=l[h++],y!==y)return!0}else for(;f>h;h++)if((o||h in l)&&l[h]===u)return o||h||0;return!o&&-1}};return Wa={includes:n(!0),indexOf:n(!1)},Wa}var Ua,Ff;function Rt(){return Ff||(Ff=1,Ua={}),Ua}var Ha,kf;function Sp(){if(kf)return Ha;kf=1;var r=_r(),e=Wr(),t=he(),n=mp().indexOf,o=Rt(),s=r([].push);return Ha=function(u,v){var l=t(u),f=0,h=[],y;for(y in l)!e(o,y)&&e(l,y)&&s(h,y);for(;v.length>f;)e(l,y=v[f++])&&(~n(h,y)||s(h,y));return h},Ha}var Va,Df;function _s(){return Df||(Df=1,Va=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Va}var Ya,jf;function Qt(){if(jf)return Ya;jf=1;var r=Sp(),e=_s();return Ya=Object.keys||function(n){return r(n,e)},Ya}var Lf;function _p(){if(Lf)return Ka;Lf=1;var r=Fr(),e=pp(),t=Jr(),n=ie(),o=he(),s=Qt();return Ka.f=r&&!e?Object.defineProperties:function(v,l){n(v);for(var f=o(l),h=s(l),y=h.length,d=0,p;y>d;)t.f(v,p=h[d++],f[p]);return v},Ka}var Ja,Nf;function Kb(){if(Nf)return Ja;Nf=1;var r=re();return Ja=r("document","documentElement"),Ja}var Xa,Bf;function rn(){if(Bf)return Xa;Bf=1;var r=Ue(),e=Yt(),t=r("keys");return Xa=function(n){return t[n]||(t[n]=e(n))},Xa}var Za,Gf;function en(){if(Gf)return Za;Gf=1;var r=ie(),e=_p(),t=_s(),n=Rt(),o=Kb(),s=vp(),u=rn(),v=">",l="<",f="prototype",h="script",y=u("IE_PROTO"),d=function(){},p=function(b){return l+h+v+b+l+"/"+h+v},S=function(b){b.write(p("")),b.close();var E=b.parentWindow.Object;return b=null,E},w=function(){var b=s("iframe"),E="java"+h+":",m;return b.style.display="none",o.appendChild(b),b.src=String(E),m=b.contentWindow.document,m.open(),m.write(p("document.F=Object")),m.close(),m.F},$,C=function(){try{$=new ActiveXObject("htmlfile")}catch{}C=typeof document<"u"?document.domain&&$?S($):w():S($);for(var b=t.length;b--;)delete C[f][t[b]];return C()};return n[y]=!0,Za=Object.create||function(E,m){var O;return E!==null?(d[f]=r(E),O=new d,d[f]=null,O[y]=E):O=C(),m===void 0?O:e.f(O,m)},Za}var Qa={},Kf;function Rs(){if(Kf)return Qa;Kf=1;var r=Sp(),e=_s(),t=e.concat("length","prototype");return Qa.f=Object.getOwnPropertyNames||function(o){return r(o,t)},Qa}var ro={},eo,zf;function tn(){if(zf)return eo;zf=1;var r=_r();return eo=r([].slice),eo}var Wf;function Rp(){if(Wf)return ro;Wf=1;var r=de(),e=he(),t=Rs().f,n=tn(),o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(u){try{return t(u)}catch{return n(o)}};return ro.f=function(v){return o&&r(v)==="Window"?s(v):t(e(v))},ro}var to={},Uf;function Is(){return Uf||(Uf=1,to.f=Object.getOwnPropertySymbols),to}var no,Hf;function It(){if(Hf)return no;Hf=1;var r=He();return no=function(e,t,n,o){return o&&o.enumerable?e[t]=n:r(e,t,n),e},no}var ao,Vf;function qs(){if(Vf)return ao;Vf=1;var r=Jr();return ao=function(e,t,n){return r.f(e,t,n)},ao}var oo={},Yf;function Ip(){if(Yf)return oo;Yf=1;var r=Rr();return oo.f=r,oo}var io,Jf;function mr(){if(Jf)return io;Jf=1;var r=Qr(),e=Wr(),t=Ip(),n=Jr().f;return io=function(o){var s=r.Symbol||(r.Symbol={});e(s,o)||n(s,o,{value:t.f(o)})},io}var uo,Xf;function qp(){if(Xf)return uo;Xf=1;var r=Br(),e=re(),t=Rr(),n=It();return uo=function(){var o=e("Symbol"),s=o&&o.prototype,u=s&&s.valueOf,v=t("toPrimitive");s&&!s[v]&&n(s,v,function(l){return r(u,this)},{arity:1})},uo}var so,Zf;function zb(){if(Zf)return so;Zf=1;var r=gs(),e=Xt();return so=r?{}.toString:function(){return"[object "+e(this)+"]"},so}var co,Qf;function Re(){if(Qf)return co;Qf=1;var r=gs(),e=Jr().f,t=He(),n=Wr(),o=zb(),s=Rr(),u=s("toStringTag");return co=function(v,l,f,h){var y=f?v:v&&v.prototype;y&&(n(y,u)||e(y,u,{configurable:!0,value:l}),h&&!r&&t(y,"toString",o))},co}var fo,rl;function Wb(){if(rl)return fo;rl=1;var r=Cr(),e=xr(),t=r.WeakMap;return fo=e(t)&&/native code/.test(String(t)),fo}var lo,el;function qt(){if(el)return lo;el=1;var r=Wb(),e=Cr(),t=kr(),n=He(),o=Wr(),s=ys(),u=rn(),v=Rt(),l="Object already initialized",f=e.TypeError,h=e.WeakMap,y,d,p,S=function(b){return p(b)?d(b):y(b,{})},w=function(b){return function(E){var m;if(!t(E)||(m=d(E)).type!==b)throw new f("Incompatible receiver, "+b+" required");return m}};if(r||s.state){var $=s.state||(s.state=new h);$.get=$.get,$.has=$.has,$.set=$.set,y=function(b,E){if($.has(b))throw new f(l);return E.facade=b,$.set(b,E),E},d=function(b){return $.get(b)||{}},p=function(b){return $.has(b)}}else{var C=u("state");v[C]=!0,y=function(b,E){if(o(b,C))throw new f(l);return E.facade=b,n(b,C,E),E},d=function(b){return o(b,C)?b[C]:{}},p=function(b){return o(b,C)}}return lo={set:y,get:d,has:p,enforce:S,getterFor:w},lo}var vo,tl;function wt(){if(tl)return vo;tl=1;var r=mt(),e=_r(),t=hs(),n=ee(),o=ue(),s=Ss(),u=e([].push),v=function(l){var f=l===1,h=l===2,y=l===3,d=l===4,p=l===6,S=l===7,w=l===5||p;return function($,C,b,E){for(var m=n($),O=t(m),M=o(O),F=r(C,b),q=0,x=E||s,k=f?x($,M):h||S?x($,0):void 0,A,B;M>q;q++)if((w||q in O)&&(A=O[q],B=F(A,q,m),l))if(f)k[q]=B;else if(B)switch(l){case 3:return!0;case 5:return A;case 6:return q;case 2:u(k,A)}else switch(l){case 4:return!1;case 7:u(k,A)}return p?-1:y||d?d:k}};return vo={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)},vo}var nl;function Ub(){if(nl)return $f;nl=1;var r=ar(),e=Cr(),t=Br(),n=_r(),o=gt(),s=Fr(),u=Ke(),v=pr(),l=Wr(),f=zr(),h=ie(),y=he(),d=bs(),p=_e(),S=ht(),w=en(),$=Qt(),C=Rs(),b=Rp(),E=Is(),m=hp(),O=Jr(),M=_p(),F=ds(),q=It(),x=qs(),k=Ue(),A=rn(),B=Rt(),G=Yt(),W=Rr(),Q=Ip(),hr=mr(),or=qp(),wr=Re(),Pr=qt(),Dr=wt().forEach,V=A("hidden"),yr="Symbol",Er="prototype",Ir=Pr.set,Gr=Pr.getterFor(yr),$r=Object[Er],Xr=e.Symbol,Ur=Xr&&Xr[Er],Je=e.RangeError,pe=e.TypeError,Te=e.QObject,Xe=m.f,te=O.f,Ze=b.f,Tt=F.f,Qe=n([].push),Hr=k("symbols"),se=k("op-symbols"),xt=k("wks"),rt=!Te||!Te[Er]||!Te[Er].findChild,Pt=function(lr,J,X){var tr=Xe($r,J);tr&&delete $r[J],te(lr,J,X),tr&&lr!==$r&&te($r,J,tr)},et=s&&v(function(){return w(te({},"a",{get:function(){return te(this,"a",{value:7}).a}})).a!==7})?Pt:te,tt=function(lr,J){var X=Hr[lr]=w(Ur);return Ir(X,{type:yr,tag:lr,description:J}),s||(X.description=J),X},xe=function(J,X,tr){J===$r&&xe(se,X,tr),h(J);var sr=d(X);return h(tr),l(Hr,sr)?(tr.enumerable?(l(J,V)&&J[V][sr]&&(J[V][sr]=!1),tr=w(tr,{enumerable:S(0,!1)})):(l(J,V)||te(J,V,S(1,w(null))),J[V][sr]=!0),et(J,sr,tr)):te(J,sr,tr)},nt=function(J,X){h(J);var tr=y(X),sr=$(tr).concat(Mt(tr));return Dr(sr,function(Ar){(!s||t(at,tr,Ar))&&xe(J,Ar,tr[Ar])}),J},un=function(J,X){return X===void 0?w(J):nt(w(J),X)},at=function(J){var X=d(J),tr=t(Tt,this,X);return this===$r&&l(Hr,X)&&!l(se,X)?!1:tr||!l(this,X)||!l(Hr,X)||l(this,V)&&this[V][X]?tr:!0},$t=function(J,X){var tr=y(J),sr=d(X);if(!(tr===$r&&l(Hr,sr)&&!l(se,sr))){var Ar=Xe(tr,sr);return Ar&&l(Hr,sr)&&!(l(tr,V)&&tr[V][sr])&&(Ar.enumerable=!0),Ar}},At=function(J){var X=Ze(y(J)),tr=[];return Dr(X,function(sr){!l(Hr,sr)&&!l(B,sr)&&Qe(tr,sr)}),tr},Mt=function(lr){var J=lr===$r,X=Ze(J?se:y(lr)),tr=[];return Dr(X,function(sr){l(Hr,sr)&&(!J||l($r,sr))&&Qe(tr,Hr[sr])}),tr};return u||(Xr=function(){if(f(Ur,this))throw new pe("Symbol is not a constructor");var J=!arguments.length||arguments[0]===void 0?void 0:p(arguments[0]),X=G(J),tr=function(sr){var Ar=this===void 0?e:this;Ar===$r&&t(tr,se,sr),l(Ar,V)&&l(Ar[V],X)&&(Ar[V][X]=!1);var Ct=S(1,sr);try{et(Ar,X,Ct)}catch(Ft){if(!(Ft instanceof Je))throw Ft;Pt(Ar,X,Ct)}};return s&&rt&&et($r,X,{configurable:!0,set:tr}),tt(X,J)},Ur=Xr[Er],q(Ur,"toString",function(){return Gr(this).tag}),q(Xr,"withoutSetter",function(lr){return tt(G(lr),lr)}),F.f=at,O.f=xe,M.f=nt,m.f=$t,C.f=b.f=At,E.f=Mt,Q.f=function(lr){return tt(W(lr),lr)},s&&(x(Ur,"description",{configurable:!0,get:function(){return Gr(this).description}}),o||q($r,"propertyIsEnumerable",at,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Xr}),Dr($(xt),function(lr){hr(lr)}),r({target:yr,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:un,defineProperty:xe,defineProperties:nt,getOwnPropertyDescriptor:$t}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:At}),or(),wr(Xr,yr),B[V]=!0,$f}var al={},ho,ol;function wp(){if(ol)return ho;ol=1;var r=Ke();return ho=r&&!!Symbol.for&&!!Symbol.keyFor,ho}var il;function Hb(){if(il)return al;il=1;var r=ar(),e=re(),t=Wr(),n=_e(),o=Ue(),s=wp(),u=o("string-to-symbol-registry"),v=o("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{for:function(l){var f=n(l);if(t(u,f))return u[f];var h=e("Symbol")(f);return u[f]=h,v[h]=f,h}}),al}var ul={},sl;function Vb(){if(sl)return ul;sl=1;var r=ar(),e=Wr(),t=bt(),n=ze(),o=Ue(),s=wp(),u=o("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(l){if(!t(l))throw new TypeError(n(l)+" is not a symbol");if(e(u,l))return u[l]}}),ul}var cl={},po,fl;function Yb(){if(fl)return po;fl=1;var r=_r(),e=Ve(),t=xr(),n=de(),o=_e(),s=r([].push);return po=function(u){if(t(u))return u;if(e(u)){for(var v=u.length,l=[],f=0;f<v;f++){var h=u[f];typeof h=="string"?s(l,h):(typeof h=="number"||n(h)==="Number"||n(h)==="String")&&s(l,o(h))}var y=l.length,d=!0;return function(p,S){if(d)return d=!1,S;if(e(this))return S;for(var w=0;w<y;w++)if(l[w]===p)return S}}},po}var ll;function Jb(){if(ll)return cl;ll=1;var r=ar(),e=re(),t=cp(),n=Br(),o=_r(),s=pr(),u=xr(),v=bt(),l=tn(),f=Yb(),h=Ke(),y=String,d=e("JSON","stringify"),p=o(/./.exec),S=o("".charAt),w=o("".charCodeAt),$=o("".replace),C=o(1.1.toString),b=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,m=/^[\uDC00-\uDFFF]$/,O=!h||s(function(){var x=e("Symbol")("stringify detection");return d([x])!=="[null]"||d({a:x})!=="{}"||d(Object(x))!=="{}"}),M=s(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'}),F=function(x,k){var A=l(arguments),B=f(k);if(!(!u(B)&&(x===void 0||v(x))))return A[1]=function(G,W){if(u(B)&&(W=n(B,this,y(G),W)),!v(W))return W},t(d,null,A)},q=function(x,k,A){var B=S(A,k-1),G=S(A,k+1);return p(E,x)&&!p(m,G)||p(m,x)&&!p(E,B)?"\\u"+C(w(x,0),16):x};return d&&r({target:"JSON",stat:!0,arity:3,forced:O||M},{stringify:function(k,A,B){var G=l(arguments),W=t(O?F:d,null,G);return M&&typeof W=="string"?$(W,b,q):W}}),cl}var vl={},dl;function Xb(){if(dl)return vl;dl=1;var r=ar(),e=Ke(),t=pr(),n=Is(),o=ee(),s=!e||t(function(){n.f(1)});return r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(v){var l=n.f;return l?l(o(v)):[]}}),vl}var hl;function Zb(){return hl||(hl=1,Ub(),Hb(),Vb(),Jb(),Xb()),Pf}var pl={},yl;function Ep(){if(yl)return pl;yl=1;var r=mr();return r("asyncDispose"),pl}var bl={},gl;function Qb(){if(gl)return bl;gl=1;var r=mr();return r("asyncIterator"),bl}var ml={},Sl;function Op(){if(Sl)return ml;Sl=1;var r=mr();return r("dispose"),ml}var _l={},Rl;function rg(){if(Rl)return _l;Rl=1;var r=mr();return r("hasInstance"),_l}var Il={},ql;function eg(){if(ql)return Il;ql=1;var r=mr();return r("isConcatSpreadable"),Il}var wl={},El;function tg(){if(El)return wl;El=1;var r=mr();return r("iterator"),wl}var Ol={},Tl;function ng(){if(Tl)return Ol;Tl=1;var r=mr();return r("match"),Ol}var xl={},Pl;function ag(){if(Pl)return xl;Pl=1;var r=mr();return r("matchAll"),xl}var $l={},Al;function og(){if(Al)return $l;Al=1;var r=mr();return r("replace"),$l}var Ml={},Cl;function ig(){if(Cl)return Ml;Cl=1;var r=mr();return r("search"),Ml}var Fl={},kl;function ug(){if(kl)return Fl;kl=1;var r=mr();return r("species"),Fl}var Dl={},jl;function sg(){if(jl)return Dl;jl=1;var r=mr();return r("split"),Dl}var Ll={},Nl;function cg(){if(Nl)return Ll;Nl=1;var r=mr(),e=qp();return r("toPrimitive"),e(),Ll}var Bl={},Gl;function fg(){if(Gl)return Bl;Gl=1;var r=re(),e=mr(),t=Re();return e("toStringTag"),t(r("Symbol"),"Symbol"),Bl}var Kl={},zl;function lg(){if(zl)return Kl;zl=1;var r=mr();return r("unscopables"),Kl}var Wl={},Ul;function vg(){if(Ul)return Wl;Ul=1;var r=Cr(),e=Re();return e(r.JSON,"JSON",!0),Wl}var yo,Hl;function dg(){if(Hl)return yo;Hl=1,gp(),Zb(),Ep(),Qb(),Op(),rg(),eg(),tg(),ng(),ag(),og(),ig(),ug(),sg(),cg(),fg(),lg(),vg();var r=Qr();return yo=r.Symbol,yo}var Vl={},bo,Yl;function nn(){return Yl||(Yl=1,bo=function(){}),bo}var go,Jl;function Ye(){return Jl||(Jl=1,go={}),go}var mo,Xl;function hg(){if(Xl)return mo;Xl=1;var r=Fr(),e=Wr(),t=Function.prototype,n=r&&Object.getOwnPropertyDescriptor,o=e(t,"name"),s=o&&(function(){}).name==="something",u=o&&(!r||r&&n(t,"name").configurable);return mo={EXISTS:o,PROPER:s,CONFIGURABLE:u},mo}var So,Zl;function pg(){if(Zl)return So;Zl=1;var r=pr();return So=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),So}var _o,Ql;function Tp(){if(Ql)return _o;Ql=1;var r=Wr(),e=xr(),t=ee(),n=rn(),o=pg(),s=n("IE_PROTO"),u=Object,v=u.prototype;return _o=o?u.getPrototypeOf:function(l){var f=t(l);if(r(f,s))return f[s];var h=f.constructor;return e(h)&&f instanceof h?h.prototype:f instanceof u?v:null},_o}var Ro,rv;function xp(){if(rv)return Ro;rv=1;var r=pr(),e=xr(),t=kr(),n=en(),o=Tp(),s=It(),u=Rr(),v=gt(),l=u("iterator"),f=!1,h,y,d;[].keys&&(d=[].keys(),"next"in d?(y=o(o(d)),y!==Object.prototype&&(h=y)):f=!0);var p=!t(h)||r(function(){var S={};return h[l].call(S)!==S});return p?h={}:v&&(h=n(h)),e(h[l])||s(h,l,function(){return this}),Ro={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:f},Ro}var Io,ev;function yg(){if(ev)return Io;ev=1;var r=xp().IteratorPrototype,e=en(),t=ht(),n=Re(),o=Ye(),s=function(){return this};return Io=function(u,v,l,f){var h=v+" Iterator";return u.prototype=e(r,{next:t(+!f,l)}),n(u,h,!1,!0),o[h]=s,u},Io}var qo,tv;function bg(){if(tv)return qo;tv=1;var r=_r(),e=We();return qo=function(t,n,o){try{return r(e(Object.getOwnPropertyDescriptor(t,n)[o]))}catch{}},qo}var wo,nv;function gg(){if(nv)return wo;nv=1;var r=kr();return wo=function(e){return r(e)||e===null},wo}var Eo,av;function mg(){if(av)return Eo;av=1;var r=gg(),e=String,t=TypeError;return Eo=function(n){if(r(n))return n;throw new t("Can't set "+e(n)+" as a prototype")},Eo}var Oo,ov;function Sg(){if(ov)return Oo;ov=1;var r=bg(),e=kr(),t=yt(),n=mg();return Oo=Object.setPrototypeOf||("__proto__"in{}?(function(){var o=!1,s={},u;try{u=r(Object.prototype,"__proto__","set"),u(s,[]),o=s instanceof Array}catch{}return function(l,f){return t(l),n(f),e(l)&&(o?u(l,f):l.__proto__=f),l}})():void 0),Oo}var To,iv;function ws(){if(iv)return To;iv=1;var r=ar(),e=Br(),t=gt(),n=hg(),o=xr(),s=yg(),u=Tp(),v=Sg(),l=Re(),f=He(),h=It(),y=Rr(),d=Ye(),p=xp(),S=n.PROPER,w=n.CONFIGURABLE,$=p.IteratorPrototype,C=p.BUGGY_SAFARI_ITERATORS,b=y("iterator"),E="keys",m="values",O="entries",M=function(){return this};return To=function(F,q,x,k,A,B,G){s(x,q,k);var W=function(Ir){if(Ir===A&&Pr)return Pr;if(!C&&Ir&&Ir in or)return or[Ir];switch(Ir){case E:return function(){return new x(this,Ir)};case m:return function(){return new x(this,Ir)};case O:return function(){return new x(this,Ir)}}return function(){return new x(this)}},Q=q+" Iterator",hr=!1,or=F.prototype,wr=or[b]||or["@@iterator"]||A&&or[A],Pr=!C&&wr||W(A),Dr=q==="Array"&&or.entries||wr,V,yr,Er;if(Dr&&(V=u(Dr.call(new F)),V!==Object.prototype&&V.next&&(!t&&u(V)!==$&&(v?v(V,$):o(V[b])||h(V,b,M)),l(V,Q,!0,!0),t&&(d[Q]=M))),S&&A===m&&wr&&wr.name!==m&&(!t&&w?f(or,"name",m):(hr=!0,Pr=function(){return e(wr,this)})),A)if(yr={values:W(m),keys:B?Pr:W(E),entries:W(O)},G)for(Er in yr)(C||hr||!(Er in or))&&h(or,Er,yr[Er]);else r({target:q,proto:!0,forced:C||hr},yr);return(!t||G)&&or[b]!==Pr&&h(or,b,Pr,{name:A}),d[q]=Pr,yr},To}var xo,uv;function Es(){return uv||(uv=1,xo=function(r,e){return{value:r,done:e}}),xo}var Po,sv;function Os(){if(sv)return Po;sv=1;var r=he(),e=nn(),t=Ye(),n=qt(),o=Jr().f,s=ws(),u=Es(),v=gt(),l=Fr(),f="Array Iterator",h=n.set,y=n.getterFor(f);Po=s(Array,"Array",function(p,S){h(this,{type:f,target:r(p),index:0,kind:S})},function(){var p=y(this),S=p.target,w=p.index++;if(!S||w>=S.length)return p.target=null,u(void 0,!0);switch(p.kind){case"keys":return u(w,!1);case"values":return u(S[w],!1)}return u([w,S[w]],!1)},"values");var d=t.Arguments=t.Array;if(e("keys"),e("values"),e("entries"),!v&&l&&d.name!=="values")try{o(d,"name",{value:"values"})}catch{}return Po}var $o,cv;function _g(){return cv||(cv=1,$o={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),$o}var fv;function Ts(){if(fv)return Vl;fv=1,Os();var r=_g(),e=Cr(),t=Re(),n=Ye();for(var o in r)t(e[o],o),n[o]=n.Array;return Vl}var Ao,lv;function Pp(){if(lv)return Ao;lv=1;var r=dg();return Ts(),Ao=r,Ao}var vv={},dv;function Rg(){if(dv)return vv;dv=1;var r=Rr(),e=Jr().f,t=r("metadata"),n=Function.prototype;return n[t]===void 0&&e(n,t,{value:null}),vv}var hv={},pv;function Ig(){return pv||(pv=1,Ep()),hv}var yv={},bv;function qg(){return bv||(bv=1,Op()),yv}var gv={},mv;function wg(){if(mv)return gv;mv=1;var r=mr();return r("metadata"),gv}var Mo,Sv;function Eg(){if(Sv)return Mo;Sv=1;var r=Pp();return Rg(),Ig(),qg(),wg(),Mo=r,Mo}var _v={},Co,Rv;function $p(){if(Rv)return Co;Rv=1;var r=re(),e=_r(),t=r("Symbol"),n=t.keyFor,o=e(t.prototype.valueOf);return Co=t.isRegisteredSymbol||function(u){try{return n(o(u))!==void 0}catch{return!1}},Co}var Iv;function Og(){if(Iv)return _v;Iv=1;var r=ar(),e=$p();return r({target:"Symbol",stat:!0},{isRegisteredSymbol:e}),_v}var qv={},Fo,wv;function Ap(){if(wv)return Fo;wv=1;for(var r=Ue(),e=re(),t=_r(),n=bt(),o=Rr(),s=e("Symbol"),u=s.isWellKnownSymbol,v=e("Object","getOwnPropertyNames"),l=t(s.prototype.valueOf),f=r("wks"),h=0,y=v(s),d=y.length;h<d;h++)try{var p=y[h];n(s[p])&&o(p)}catch{}return Fo=function(w){if(u&&u(w))return!0;try{for(var $=l(w),C=0,b=v(f),E=b.length;C<E;C++)if(f[b[C]]==$)return!0}catch{}return!1},Fo}var Ev;function Tg(){if(Ev)return qv;Ev=1;var r=ar(),e=Ap();return r({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:e}),qv}var Ov={},Tv;function xg(){if(Tv)return Ov;Tv=1;var r=mr();return r("customMatcher"),Ov}var xv={},Pv;function Pg(){if(Pv)return xv;Pv=1;var r=mr();return r("observable"),xv}var $v={},Av;function $g(){if(Av)return $v;Av=1;var r=ar(),e=$p();return r({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:e}),$v}var Mv={},Cv;function Ag(){if(Cv)return Mv;Cv=1;var r=ar(),e=Ap();return r({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:e}),Mv}var Fv={},kv;function Mg(){if(kv)return Fv;kv=1;var r=mr();return r("matcher"),Fv}var Dv={},jv;function Cg(){if(jv)return Dv;jv=1;var r=mr();return r("metadataKey"),Dv}var Lv={},Nv;function Fg(){if(Nv)return Lv;Nv=1;var r=mr();return r("patternMatch"),Lv}var Bv={},Gv;function kg(){if(Gv)return Bv;Gv=1;var r=mr();return r("replaceAll"),Bv}var ko,Kv;function Dg(){if(Kv)return ko;Kv=1;var r=Eg();return Og(),Tg(),xg(),Pg(),$g(),Ag(),Mg(),Cg(),Fg(),kg(),ko=r,ko}var Do,zv;function jg(){return zv||(zv=1,Do=Dg()),Do}var jo,Wv;function Lg(){return Wv||(Wv=1,jo=jg()),jo}var Ng=Lg();const Mp=gr(Ng);var Uv={},Lo,Hv;function Bg(){if(Hv)return Lo;Hv=1;var r=_r(),e=St(),t=_e(),n=yt(),o=r("".charAt),s=r("".charCodeAt),u=r("".slice),v=function(l){return function(f,h){var y=t(n(f)),d=e(h),p=y.length,S,w;return d<0||d>=p?l?"":void 0:(S=s(y,d),S<55296||S>56319||d+1===p||(w=s(y,d+1))<56320||w>57343?l?o(y,d):S:l?u(y,d,d+2):(S-55296<<10)+(w-56320)+65536)}};return Lo={codeAt:v(!1),charAt:v(!0)},Lo}var Vv;function xs(){if(Vv)return Uv;Vv=1;var r=Bg().charAt,e=_e(),t=qt(),n=ws(),o=Es(),s="String Iterator",u=t.set,v=t.getterFor(s);return n(String,"String",function(l){u(this,{type:s,string:e(l),index:0})},function(){var f=v(this),h=f.string,y=f.index,d;return y>=h.length?o(void 0,!0):(d=r(h,y),f.index+=d.length,o(d,!1))}),Uv}var No,Yv;function an(){if(Yv)return No;Yv=1;var r=Xt(),e=ps(),t=pt(),n=Ye(),o=Rr(),s=o("iterator");return No=function(u){if(!t(u))return e(u,s)||e(u,"@@iterator")||n[r(u)]},No}var Bo,Jv;function Gg(){if(Jv)return Bo;Jv=1,Os(),xs();var r=an();return Bo=r,Bo}var Go,Xv;function Kg(){if(Xv)return Go;Xv=1;var r=Gg();return Ts(),Go=r,Go}var Ko,Zv;function zg(){if(Zv)return Ko;Zv=1;var r=Kg();return Ko=r,Ko}var zo,Qv;function Wg(){if(Qv)return zo;Qv=1;var r=zg();return zo=r,zo}var Wo,r0;function Ug(){return r0||(r0=1,Wo=Wg()),Wo}var Uo,e0;function Hg(){return e0||(e0=1,Uo=Ug()),Uo}var Vg=Hg();const Ps=gr(Vg);var t0={},Ho,n0;function on(){if(n0)return Ho;n0=1;var r=Br(),e=ie(),t=ps();return Ho=function(n,o,s){var u,v;e(n);try{if(u=t(n,"return"),!u){if(o==="throw")throw s;return s}u=r(u,n)}catch(l){v=!0,u=l}if(o==="throw")throw s;if(v)throw u;return e(u),s},Ho}var Vo,a0;function Yg(){if(a0)return Vo;a0=1;var r=ie(),e=on();return Vo=function(t,n,o,s){try{return s?n(r(o)[0],o[1]):n(o)}catch(u){e(t,"throw",u)}},Vo}var Yo,o0;function Cp(){if(o0)return Yo;o0=1;var r=Rr(),e=Ye(),t=r("iterator"),n=Array.prototype;return Yo=function(o){return o!==void 0&&(e.Array===o||n[t]===o)},Yo}var Jo,i0;function Fp(){if(i0)return Jo;i0=1;var r=Br(),e=We(),t=ie(),n=ze(),o=an(),s=TypeError;return Jo=function(u,v){var l=arguments.length<2?o(u):v;if(e(l))return t(r(l,u));throw new s(n(u)+" is not iterable")},Jo}var Xo,u0;function Jg(){if(u0)return Xo;u0=1;var r=mt(),e=Br(),t=ee(),n=Yg(),o=Cp(),s=ms(),u=ue(),v=Jt(),l=Fp(),f=an(),h=Array;return Xo=function(d){var p=t(d),S=s(this),w=arguments.length,$=w>1?arguments[1]:void 0,C=$!==void 0;C&&($=r($,w>2?arguments[2]:void 0));var b=f(p),E=0,m,O,M,F,q,x;if(b&&!(this===h&&o(b)))for(O=S?new this:[],F=l(p,b),q=F.next;!(M=e(q,F)).done;E++)x=C?n(F,$,[M.value,E],!0):M.value,v(O,E,x);else for(m=u(p),O=S?new this(m):h(m);m>E;E++)x=C?$(p[E],E):p[E],v(O,E,x);return O.length=E,O},Xo}var Zo,s0;function Xg(){if(s0)return Zo;s0=1;var r=Rr(),e=r("iterator"),t=!1;try{var n=0,o={next:function(){return{done:!!n++}},return:function(){t=!0}};o[e]=function(){return this},Array.from(o,function(){throw 2})}catch{}return Zo=function(s,u){try{if(!u&&!t)return!1}catch{return!1}var v=!1;try{var l={};l[e]=function(){return{next:function(){return{done:v=!0}}}},s(l)}catch{}return v},Zo}var c0;function Zg(){if(c0)return t0;c0=1;var r=ar(),e=Jg(),t=Xg(),n=!t(function(o){Array.from(o)});return r({target:"Array",stat:!0,forced:n},{from:e}),t0}var Qo,f0;function Qg(){if(f0)return Qo;f0=1,xs(),Zg();var r=Qr();return Qo=r.Array.from,Qo}var ri,l0;function kp(){if(l0)return ri;l0=1;var r=Qg();return ri=r,ri}var ei,v0;function rm(){if(v0)return ei;v0=1;var r=kp();return ei=r,ei}var ti,d0;function em(){if(d0)return ti;d0=1;var r=rm();return ti=r,ti}var ni,h0;function tm(){return h0||(h0=1,ni=em()),ni}var ai,p0;function nm(){return p0||(p0=1,ai=tm()),ai}var am=nm();const Dp=gr(am);function om(r){if(typeof Mp<"u"&&Ps(r)!=null||r["@@iterator"]!=null)return Dp(r)}var y0={},b0;function im(){if(b0)return y0;b0=1;var r=ar(),e=Ve(),t=ms(),n=kr(),o=Zt(),s=ue(),u=he(),v=Jt(),l=Rr(),f=_t(),h=tn(),y=f("slice"),d=l("species"),p=Array,S=Math.max;return r({target:"Array",proto:!0,forced:!y},{slice:function($,C){var b=u(this),E=s(b),m=o($,E),O=o(C===void 0?E:C,E),M,F,q;if(e(b)&&(M=b.constructor,t(M)&&(M===p||e(M.prototype))?M=void 0:n(M)&&(M=M[d],M===null&&(M=void 0)),M===p||M===void 0))return h(b,m,O);for(F=new(M===void 0?p:M)(S(O-m,0)),q=0;m<O;m++,q++)m in b&&v(F,q,b[m]);return F.length=q,F}}),y0}var oi,g0;function ne(){if(g0)return oi;g0=1;var r=Cr(),e=Qr();return oi=function(t,n){var o=e[t+"Prototype"],s=o&&o[n];if(s)return s;var u=r[t],v=u&&u.prototype;return v&&v[n]},oi}var ii,m0;function um(){if(m0)return ii;m0=1,im();var r=ne();return ii=r("Array","slice"),ii}var ui,S0;function sm(){if(S0)return ui;S0=1;var r=zr(),e=um(),t=Array.prototype;return ui=function(n){var o=n.slice;return n===t||r(t,n)&&o===t.slice?e:o},ui}var si,_0;function jp(){if(_0)return si;_0=1;var r=sm();return si=r,si}var ci,R0;function cm(){if(R0)return ci;R0=1;var r=jp();return ci=r,ci}var fi,I0;function fm(){if(I0)return fi;I0=1;var r=cm();return fi=r,fi}var li,q0;function lm(){return q0||(q0=1,li=fm()),li}var vi,w0;function vm(){return w0||(w0=1,vi=lm()),vi}var dm=vm();const hm=gr(dm);function Lp(r,e){var t;if(r){if(typeof r=="string")return is(r,e);var n=hm(t=Object.prototype.toString.call(r)).call(t,8,-1);if(n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set")return Dp(r);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return is(r,e)}}function pm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("react"),Ee=require("@tendaui/components"),dr=require("@tendaui/icons"),la=require("react-dom");var df=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ua={exports:{}},bn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var vf;function mx(){if(vf)return bn;vf=1;var e=L,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(c,l,u){var f,g={},v=null,h=null;u!==void 0&&(v=""+u),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(h=l.ref);for(f in l)n.call(l,f)&&!o.hasOwnProperty(f)&&(g[f]=l[f]);if(c&&c.defaultProps)for(f in l=c.defaultProps,l)g[f]===void 0&&(g[f]=l[f]);return{$$typeof:r,type:c,key:v,ref:h,props:g,_owner:a.current}}return bn.Fragment=t,bn.jsx=i,bn.jsxs=i,bn}var xn={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var pf;function yx(){return pf||(pf=1,process.env.NODE_ENV!=="production"&&(function(){var e=L,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function T(O){if(O===null||typeof O!="object")return null;var ee=y&&O[y]||O[_];return typeof ee=="function"?ee:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(O){{for(var ee=arguments.length,fe=new Array(ee>1?ee-1:0),ge=1;ge<ee;ge++)fe[ge-1]=arguments[ge];$("error",O,fe)}}function $(O,ee,fe){{var ge=A.ReactDebugCurrentFrame,Ae=ge.getStackAddendum();Ae!==""&&(ee+="%s",fe=fe.concat([Ae]));var ze=fe.map(function(Oe){return String(Oe)});ze.unshift("Warning: "+ee),Function.prototype.apply.call(console[O],console,ze)}}var S=!1,E=!1,M=!1,j=!1,x=!1,R;R=Symbol.for("react.module.reference");function P(O){return!!(typeof O=="string"||typeof O=="function"||O===n||O===o||x||O===a||O===u||O===f||j||O===h||S||E||M||typeof O=="object"&&O!==null&&(O.$$typeof===v||O.$$typeof===g||O.$$typeof===i||O.$$typeof===c||O.$$typeof===l||O.$$typeof===R||O.getModuleId!==void 0))}function I(O,ee,fe){var ge=O.displayName;if(ge)return ge;var Ae=ee.displayName||ee.name||"";return Ae!==""?fe+"("+Ae+")":fe}function V(O){return O.displayName||"Context"}function W(O){if(O==null)return null;if(typeof O.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof O=="function")return O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case n:return"Fragment";case t:return"Portal";case o:return"Profiler";case a:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof O=="object")switch(O.$$typeof){case c:var ee=O;return V(ee)+".Consumer";case i:var fe=O;return V(fe._context)+".Provider";case l:return I(O,O.render,"ForwardRef");case g:var ge=O.displayName||null;return ge!==null?ge:W(O.type)||"Memo";case v:{var Ae=O,ze=Ae._payload,Oe=Ae._init;try{return W(Oe(ze))}catch{return null}}}return null}var z=Object.assign,B=0,G,U,X,ve,F,H,ae;function le(){}le.__reactDisabledLog=!0;function oe(){{if(B===0){G=console.log,U=console.info,X=console.warn,ve=console.error,F=console.group,H=console.groupCollapsed,ae=console.groupEnd;var O={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:O,log:O,warn:O,error:O,group:O,groupCollapsed:O,groupEnd:O})}B++}}function J(){{if(B--,B===0){var O={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},O,{value:G}),info:z({},O,{value:U}),warn:z({},O,{value:X}),error:z({},O,{value:ve}),group:z({},O,{value:F}),groupCollapsed:z({},O,{value:H}),groupEnd:z({},O,{value:ae})})}B<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=A.ReactCurrentDispatcher,ue;function ie(O,ee,fe){{if(ue===void 0)try{throw Error()}catch(Ae){var ge=Ae.stack.trim().match(/\n( *(at )?)/);ue=ge&&ge[1]||""}return`
|
|
18
|
+
`+ue+O}}var ce=!1,Q;{var se=typeof WeakMap=="function"?WeakMap:Map;Q=new se}function Z(O,ee){if(!O||ce)return"";{var fe=Q.get(O);if(fe!==void 0)return fe}var ge;ce=!0;var Ae=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=K.current,K.current=null,oe();try{if(ee){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(sr){ge=sr}Reflect.construct(O,[],Oe)}else{try{Oe.call()}catch(sr){ge=sr}O.call(Oe.prototype)}}else{try{throw Error()}catch(sr){ge=sr}O()}}catch(sr){if(sr&&ge&&typeof sr.stack=="string"){for(var _e=sr.stack.split(`
|
|
19
|
+
`),nr=ge.stack.split(`
|
|
20
|
+
`),Ue=_e.length-1,Je=nr.length-1;Ue>=1&&Je>=0&&_e[Ue]!==nr[Je];)Je--;for(;Ue>=1&&Je>=0;Ue--,Je--)if(_e[Ue]!==nr[Je]){if(Ue!==1||Je!==1)do if(Ue--,Je--,Je<0||_e[Ue]!==nr[Je]){var pr=`
|
|
21
|
+
`+_e[Ue].replace(" at new "," at ");return O.displayName&&pr.includes("<anonymous>")&&(pr=pr.replace("<anonymous>",O.displayName)),typeof O=="function"&&Q.set(O,pr),pr}while(Ue>=1&&Je>=0);break}}}finally{ce=!1,K.current=ze,J(),Error.prepareStackTrace=Ae}var tt=O?O.displayName||O.name:"",Ze=tt?ie(tt):"";return typeof O=="function"&&Q.set(O,Ze),Ze}function Pe(O,ee,fe){return Z(O,!1)}function Er(O){var ee=O.prototype;return!!(ee&&ee.isReactComponent)}function Rr(O,ee,fe){if(O==null)return"";if(typeof O=="function")return Z(O,Er(O));if(typeof O=="string")return ie(O);switch(O){case u:return ie("Suspense");case f:return ie("SuspenseList")}if(typeof O=="object")switch(O.$$typeof){case l:return Pe(O.render);case g:return Rr(O.type,ee,fe);case v:{var ge=O,Ae=ge._payload,ze=ge._init;try{return Rr(ze(Ae),ee,fe)}catch{}}}return""}var Ir=Object.prototype.hasOwnProperty,fr={},Cr=A.ReactDebugCurrentFrame;function zr(O){if(O){var ee=O._owner,fe=Rr(O.type,O._source,ee?ee.type:null);Cr.setExtraStackFrame(fe)}else Cr.setExtraStackFrame(null)}function vt(O,ee,fe,ge,Ae){{var ze=Function.call.bind(Ir);for(var Oe in O)if(ze(O,Oe)){var _e=void 0;try{if(typeof O[Oe]!="function"){var nr=Error((ge||"React class")+": "+fe+" type `"+Oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof O[Oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nr.name="Invariant Violation",nr}_e=O[Oe](ee,Oe,ge,fe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ue){_e=Ue}_e&&!(_e instanceof Error)&&(zr(Ae),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ge||"React class",fe,Oe,typeof _e),zr(null)),_e instanceof Error&&!(_e.message in fr)&&(fr[_e.message]=!0,zr(Ae),b("Failed %s type: %s",fe,_e.message),zr(null))}}}var qt=Array.isArray;function Lr(O){return qt(O)}function pt(O){{var ee=typeof Symbol=="function"&&Symbol.toStringTag,fe=ee&&O[Symbol.toStringTag]||O.constructor.name||"Object";return fe}}function Jr(O){try{return Zr(O),!1}catch{return!0}}function Zr(O){return""+O}function Mt(O){if(Jr(O))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(O)),Zr(O)}var Xr=A.ReactCurrentOwner,kt={key:!0,ref:!0,__self:!0,__source:!0},ht,gt;function De(O){if(Ir.call(O,"ref")){var ee=Object.getOwnPropertyDescriptor(O,"ref").get;if(ee&&ee.isReactWarning)return!1}return O.ref!==void 0}function be(O){if(Ir.call(O,"key")){var ee=Object.getOwnPropertyDescriptor(O,"key").get;if(ee&&ee.isReactWarning)return!1}return O.key!==void 0}function Se(O,ee){typeof O.ref=="string"&&Xr.current}function Re(O,ee){{var fe=function(){ht||(ht=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ee))};fe.isReactWarning=!0,Object.defineProperty(O,"key",{get:fe,configurable:!0})}}function qe(O,ee){{var fe=function(){gt||(gt=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ee))};fe.isReactWarning=!0,Object.defineProperty(O,"ref",{get:fe,configurable:!0})}}var tr=function(O,ee,fe,ge,Ae,ze,Oe){var _e={$$typeof:r,type:O,key:ee,ref:fe,props:Oe,_owner:ze};return _e._store={},Object.defineProperty(_e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(_e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.defineProperty(_e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ae}),Object.freeze&&(Object.freeze(_e.props),Object.freeze(_e)),_e};function Nt(O,ee,fe,ge,Ae){{var ze,Oe={},_e=null,nr=null;fe!==void 0&&(Mt(fe),_e=""+fe),be(ee)&&(Mt(ee.key),_e=""+ee.key),De(ee)&&(nr=ee.ref,Se(ee,Ae));for(ze in ee)Ir.call(ee,ze)&&!kt.hasOwnProperty(ze)&&(Oe[ze]=ee[ze]);if(O&&O.defaultProps){var Ue=O.defaultProps;for(ze in Ue)Oe[ze]===void 0&&(Oe[ze]=Ue[ze])}if(_e||nr){var Je=typeof O=="function"?O.displayName||O.name||"Unknown":O;_e&&Re(Oe,Je),nr&&qe(Oe,Je)}return tr(O,_e,nr,Ae,ge,Xr.current,Oe)}}var Qr=A.ReactCurrentOwner,dn=A.ReactDebugCurrentFrame;function et(O){if(O){var ee=O._owner,fe=Rr(O.type,O._source,ee?ee.type:null);dn.setExtraStackFrame(fe)}else dn.setExtraStackFrame(null)}var vn;vn=!1;function Dt(O){return typeof O=="object"&&O!==null&&O.$$typeof===r}function Qn(){{if(Qr.current){var O=W(Qr.current.type);if(O)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+O+"`."}return""}}function Ha(O){return""}var ea={};function Va(O){{var ee=Qn();if(!ee){var fe=typeof O=="string"?O:O.displayName||O.name;fe&&(ee=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+fe+">.")}return ee}}function ra(O,ee){{if(!O._store||O._store.validated||O.key!=null)return;O._store.validated=!0;var fe=Va(ee);if(ea[fe])return;ea[fe]=!0;var ge="";O&&O._owner&&O._owner!==Qr.current&&(ge=" It was passed a child from "+W(O._owner.type)+"."),et(O),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,ge),et(null)}}function ta(O,ee){{if(typeof O!="object")return;if(Lr(O))for(var fe=0;fe<O.length;fe++){var ge=O[fe];Dt(ge)&&ra(ge,ee)}else if(Dt(O))O._store&&(O._store.validated=!0);else if(O){var Ae=T(O);if(typeof Ae=="function"&&Ae!==O.entries)for(var ze=Ae.call(O),Oe;!(Oe=ze.next()).done;)Dt(Oe.value)&&ra(Oe.value,ee)}}}function pn(O){{var ee=O.type;if(ee==null||typeof ee=="string")return;var fe;if(typeof ee=="function")fe=ee.propTypes;else if(typeof ee=="object"&&(ee.$$typeof===l||ee.$$typeof===g))fe=ee.propTypes;else return;if(fe){var ge=W(ee);vt(fe,O.props,"prop",ge,O)}else if(ee.PropTypes!==void 0&&!vn){vn=!0;var Ae=W(ee);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ae||"Unknown")}typeof ee.getDefaultProps=="function"&&!ee.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rt(O){{for(var ee=Object.keys(O.props),fe=0;fe<ee.length;fe++){var ge=ee[fe];if(ge!=="children"&&ge!=="key"){et(O),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ge),et(null);break}}O.ref!==null&&(et(O),b("Invalid attribute `ref` supplied to `React.Fragment`."),et(null))}}var zt={};function Fr(O,ee,fe,ge,Ae,ze){{var Oe=P(O);if(!Oe){var _e="";(O===void 0||typeof O=="object"&&O!==null&&Object.keys(O).length===0)&&(_e+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var nr=Ha();nr?_e+=nr:_e+=Qn();var Ue;O===null?Ue="null":Lr(O)?Ue="array":O!==void 0&&O.$$typeof===r?(Ue="<"+(W(O.type)||"Unknown")+" />",_e=" Did you accidentally export a JSX literal instead of a component?"):Ue=typeof O,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ue,_e)}var Je=Nt(O,ee,fe,Ae,ze);if(Je==null)return Je;if(Oe){var pr=ee.children;if(pr!==void 0)if(ge)if(Lr(pr)){for(var tt=0;tt<pr.length;tt++)ta(pr[tt],O);Object.freeze&&Object.freeze(pr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ta(pr,O)}if(Ir.call(ee,"key")){var Ze=W(O),sr=Object.keys(ee).filter(function(hn){return hn!=="key"}),Lt=sr.length>0?"{key: someKey, "+sr.join(": ..., ")+": ...}":"{key: someKey}";if(!zt[Ze+Lt]){var Ya=sr.length>0?"{"+sr.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,Lt,Ze,Ya,Ze),zt[Ze+Lt]=!0}}return O===n?rt(Je):pn(Je),Je}}function Ga(O,ee,fe){return Fr(O,ee,fe,!0)}function Wa(O,ee,fe){return Fr(O,ee,fe,!1)}var Ua=Wa,Ka=Ga;xn.Fragment=n,xn.jsx=Ua,xn.jsxs=Ka})()),xn}var hf;function bx(){return hf||(hf=1,process.env.NODE_ENV==="production"?ua.exports=mx():ua.exports=yx()),ua.exports}var p=bx(),gf={},Sn,mf;function ur(){if(mf)return Sn;mf=1;var e=function(r){return r&&r.Math===Math&&r};return Sn=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof df=="object"&&df)||e(typeof Sn=="object"&&Sn)||(function(){return this})()||Function("return this")(),Sn}var po,yf;function Ve(){return yf||(yf=1,po=function(e){try{return!!e()}catch{return!0}}),po}var ho,bf;function Oa(){if(bf)return ho;bf=1;var e=Ve();return ho=!e(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),ho}var go,xf;function ay(){if(xf)return go;xf=1;var e=Oa(),r=Function.prototype,t=r.apply,n=r.call;return go=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(t):function(){return n.apply(t,arguments)}),go}var mo,Sf;function Qe(){if(Sf)return mo;Sf=1;var e=Oa(),r=Function.prototype,t=r.call,n=e&&r.bind.bind(t,t);return mo=e?n:function(a){return function(){return t.apply(a,arguments)}},mo}var yo,_f;function ft(){if(_f)return yo;_f=1;var e=Qe(),r=e({}.toString),t=e("".slice);return yo=function(n){return t(r(n),8,-1)},yo}var bo,wf;function oy(){if(wf)return bo;wf=1;var e=ft(),r=Qe();return bo=function(t){if(e(t)==="Function")return r(t)},bo}var xo,Ef;function ir(){if(Ef)return xo;Ef=1;var e=typeof document=="object"&&document.all;return xo=typeof e>"u"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"},xo}var So={},_o,Rf;function cr(){if(Rf)return _o;Rf=1;var e=Ve();return _o=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),_o}var wo,Of;function xr(){if(Of)return wo;Of=1;var e=Oa(),r=Function.prototype.call;return wo=e?r.bind(r):function(){return r.apply(r,arguments)},wo}var Eo={},Tf;function hc(){if(Tf)return Eo;Tf=1;var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,t=r&&!e.call({1:2},1);return Eo.f=t?function(a){var o=r(this,a);return!!o&&o.enumerable}:e,Eo}var Ro,If;function kn(){return If||(If=1,Ro=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}),Ro}var Oo,Cf;function gc(){if(Cf)return Oo;Cf=1;var e=Qe(),r=Ve(),t=ft(),n=Object,a=e("".split);return Oo=r(function(){return!n("z").propertyIsEnumerable(0)})?function(o){return t(o)==="String"?a(o,""):n(o)}:n,Oo}var To,jf;function Nn(){return jf||(jf=1,To=function(e){return e==null}),To}var Io,Pf;function Dn(){if(Pf)return Io;Pf=1;var e=Nn(),r=TypeError;return Io=function(t){if(e(t))throw new r("Can't call method on "+t);return t},Io}var Co,Af;function dt(){if(Af)return Co;Af=1;var e=gc(),r=Dn();return Co=function(t){return e(r(t))},Co}var jo,$f;function vr(){if($f)return jo;$f=1;var e=ir();return jo=function(r){return typeof r=="object"?r!==null:e(r)},jo}var Po,qf;function Ar(){return qf||(qf=1,Po={}),Po}var Ao,Mf;function $r(){if(Mf)return Ao;Mf=1;var e=Ar(),r=ur(),t=ir(),n=function(a){return t(a)?a:void 0};return Ao=function(a,o){return arguments.length<2?n(e[a])||n(r[a]):e[a]&&e[a][o]||r[a]&&r[a][o]},Ao}var $o,kf;function _r(){if(kf)return $o;kf=1;var e=Qe();return $o=e({}.isPrototypeOf),$o}var qo,Nf;function Ta(){if(Nf)return qo;Nf=1;var e=ur(),r=e.navigator,t=r&&r.userAgent;return qo=t?String(t):"",qo}var Mo,Df;function Ia(){if(Df)return Mo;Df=1;var e=ur(),r=Ta(),t=e.process,n=e.Deno,a=t&&t.versions||n&&n.version,o=a&&a.v8,i,c;return o&&(i=o.split("."),c=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!c&&r&&(i=r.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=r.match(/Chrome\/(\d+)/),i&&(c=+i[1]))),Mo=c,Mo}var ko,zf;function rn(){if(zf)return ko;zf=1;var e=Ia(),r=Ve(),t=ur(),n=t.String;return ko=!!Object.getOwnPropertySymbols&&!r(function(){var a=Symbol("symbol detection");return!n(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&e&&e<41}),ko}var No,Lf;function iy(){if(Lf)return No;Lf=1;var e=rn();return No=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",No}var Do,Ff;function zn(){if(Ff)return Do;Ff=1;var e=$r(),r=ir(),t=_r(),n=iy(),a=Object;return Do=n?function(o){return typeof o=="symbol"}:function(o){var i=e("Symbol");return r(i)&&t(i.prototype,a(o))},Do}var zo,Bf;function tn(){if(Bf)return zo;Bf=1;var e=String;return zo=function(r){try{return e(r)}catch{return"Object"}},zo}var Lo,Hf;function nn(){if(Hf)return Lo;Hf=1;var e=ir(),r=tn(),t=TypeError;return Lo=function(n){if(e(n))return n;throw new t(r(n)+" is not a function")},Lo}var Fo,Vf;function mc(){if(Vf)return Fo;Vf=1;var e=nn(),r=Nn();return Fo=function(t,n){var a=t[n];return r(a)?void 0:e(a)},Fo}var Bo,Gf;function xx(){if(Gf)return Bo;Gf=1;var e=xr(),r=ir(),t=vr(),n=TypeError;return Bo=function(a,o){var i,c;if(o==="string"&&r(i=a.toString)&&!t(c=e(i,a))||r(i=a.valueOf)&&!t(c=e(i,a))||o!=="string"&&r(i=a.toString)&&!t(c=e(i,a)))return c;throw new n("Can't convert object to primitive value")},Bo}var Ho={exports:{}},Vo,Wf;function Ln(){return Wf||(Wf=1,Vo=!0),Vo}var Go,Uf;function Sx(){if(Uf)return Go;Uf=1;var e=ur(),r=Object.defineProperty;return Go=function(t,n){try{r(e,t,{value:n,configurable:!0,writable:!0})}catch{e[t]=n}return n},Go}var Kf;function yc(){if(Kf)return Ho.exports;Kf=1;var e=Ln(),r=ur(),t=Sx(),n="__core-js_shared__",a=Ho.exports=r[n]||t(n,{});return(a.versions||(a.versions=[])).push({version:"3.46.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Ho.exports}var Wo,Yf;function an(){if(Yf)return Wo;Yf=1;var e=yc();return Wo=function(r,t){return e[r]||(e[r]=t||{})},Wo}var Uo,Jf;function qr(){if(Jf)return Uo;Jf=1;var e=Dn(),r=Object;return Uo=function(t){return r(e(t))},Uo}var Ko,Zf;function wr(){if(Zf)return Ko;Zf=1;var e=Qe(),r=qr(),t=e({}.hasOwnProperty);return Ko=Object.hasOwn||function(a,o){return t(r(a),o)},Ko}var Yo,Xf;function Ca(){if(Xf)return Yo;Xf=1;var e=Qe(),r=0,t=Math.random(),n=e(1.1.toString);return Yo=function(a){return"Symbol("+(a===void 0?"":a)+")_"+n(++r+t,36)},Yo}var Jo,Qf;function er(){if(Qf)return Jo;Qf=1;var e=ur(),r=an(),t=wr(),n=Ca(),a=rn(),o=iy(),i=e.Symbol,c=r("wks"),l=o?i.for||i:i&&i.withoutSetter||n;return Jo=function(u){return t(c,u)||(c[u]=a&&t(i,u)?i[u]:l("Symbol."+u)),c[u]},Jo}var Zo,ed;function _x(){if(ed)return Zo;ed=1;var e=xr(),r=vr(),t=zn(),n=mc(),a=xx(),o=er(),i=TypeError,c=o("toPrimitive");return Zo=function(l,u){if(!r(l)||t(l))return l;var f=n(l,c),g;if(f){if(u===void 0&&(u="default"),g=e(f,l,u),!r(g)||t(g))return g;throw new i("Can't convert object to primitive value")}return u===void 0&&(u="number"),a(l,u)},Zo}var Xo,rd;function bc(){if(rd)return Xo;rd=1;var e=_x(),r=zn();return Xo=function(t){var n=e(t,"string");return r(n)?n:n+""},Xo}var Qo,td;function sy(){if(td)return Qo;td=1;var e=ur(),r=vr(),t=e.document,n=r(t)&&r(t.createElement);return Qo=function(a){return n?t.createElement(a):{}},Qo}var ei,nd;function ly(){if(nd)return ei;nd=1;var e=cr(),r=Ve(),t=sy();return ei=!e&&!r(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),ei}var ad;function uy(){if(ad)return So;ad=1;var e=cr(),r=xr(),t=hc(),n=kn(),a=dt(),o=bc(),i=wr(),c=ly(),l=Object.getOwnPropertyDescriptor;return So.f=e?l:function(f,g){if(f=a(f),g=o(g),c)try{return l(f,g)}catch{}if(i(f,g))return n(!r(t.f,f,g),f[g])},So}var ri,od;function wx(){if(od)return ri;od=1;var e=Ve(),r=ir(),t=/#|\.prototype\./,n=function(l,u){var f=o[a(l)];return f===c?!0:f===i?!1:r(u)?e(u):!!u},a=n.normalize=function(l){return String(l).replace(t,".").toLowerCase()},o=n.data={},i=n.NATIVE="N",c=n.POLYFILL="P";return ri=n,ri}var ti,id;function Fn(){if(id)return ti;id=1;var e=oy(),r=nn(),t=Oa(),n=e(e.bind);return ti=function(a,o){return r(a),o===void 0?a:t?n(a,o):function(){return a.apply(o,arguments)}},ti}var ni={},ai,sd;function cy(){if(sd)return ai;sd=1;var e=cr(),r=Ve();return ai=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),ai}var oi,ld;function Wr(){if(ld)return oi;ld=1;var e=vr(),r=String,t=TypeError;return oi=function(n){if(e(n))return n;throw new t(r(n)+" is not an object")},oi}var ud;function Tr(){if(ud)return ni;ud=1;var e=cr(),r=ly(),t=cy(),n=Wr(),a=bc(),o=TypeError,i=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l="enumerable",u="configurable",f="writable";return ni.f=e?t?function(v,h,y){if(n(v),h=a(h),n(y),typeof v=="function"&&h==="prototype"&&"value"in y&&f in y&&!y[f]){var _=c(v,h);_&&_[f]&&(v[h]=y.value,y={configurable:u in y?y[u]:_[u],enumerable:l in y?y[l]:_[l],writable:!1})}return i(v,h,y)}:i:function(v,h,y){if(n(v),h=a(h),n(y),r)try{return i(v,h,y)}catch{}if("get"in y||"set"in y)throw new o("Accessors not supported");return"value"in y&&(v[h]=y.value),v},ni}var ii,cd;function on(){if(cd)return ii;cd=1;var e=cr(),r=Tr(),t=kn();return ii=e?function(n,a,o){return r.f(n,a,t(1,o))}:function(n,a,o){return n[a]=o,n},ii}var si,fd;function je(){if(fd)return si;fd=1;var e=ur(),r=ay(),t=oy(),n=ir(),a=uy().f,o=wx(),i=Ar(),c=Fn(),l=on(),u=wr(),f=function(g){var v=function(h,y,_){if(this instanceof v){switch(arguments.length){case 0:return new g;case 1:return new g(h);case 2:return new g(h,y)}return new g(h,y,_)}return r(g,this,arguments)};return v.prototype=g.prototype,v};return si=function(g,v){var h=g.target,y=g.global,_=g.stat,T=g.proto,A=y?e:_?e[h]:e[h]&&e[h].prototype,b=y?i:i[h]||l(i,h,{})[h],$=b.prototype,S,E,M,j,x,R,P,I,V;for(j in v)S=o(y?j:h+(_?".":"#")+j,g.forced),E=!S&&A&&u(A,j),R=b[j],E&&(g.dontCallGetSet?(V=a(A,j),P=V&&V.value):P=A[j]),x=E&&P?P:v[j],!(!S&&!T&&typeof R==typeof x)&&(g.bind&&E?I=c(x,e):g.wrap&&E?I=f(x):T&&n(x)?I=t(x):I=x,(g.sham||x&&x.sham||R&&R.sham)&&l(I,"sham",!0),l(b,j,I),T&&(M=h+"Prototype",u(i,M)||l(i,M,{}),l(i[M],j,x),g.real&&$&&(S||!$[j])&&l($,j,x)))},si}var li,dd;function sn(){if(dd)return li;dd=1;var e=ft();return li=Array.isArray||function(t){return e(t)==="Array"},li}var vd;function Ex(){if(vd)return gf;vd=1;var e=je(),r=sn();return e({target:"Array",stat:!0},{isArray:r}),gf}var ui,pd;function Rx(){if(pd)return ui;pd=1,Ex();var e=Ar();return ui=e.Array.isArray,ui}var ci,hd;function Ox(){if(hd)return ci;hd=1;var e=Rx();return ci=e,ci}var fi,gd;function Tx(){if(gd)return fi;gd=1;var e=Ox();return fi=e,fi}var di,md;function Ix(){if(md)return di;md=1;var e=Tx();return di=e,di}var vi,yd;function Cx(){return yd||(yd=1,vi=Ix()),vi}var pi,bd;function jx(){return bd||(bd=1,pi=Cx()),pi}var Px=jx();const fy=We(Px);function nc(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function Ax(e){if(fy(e))return nc(e)}var xd={},hi,Sd;function $x(){if(Sd)return hi;Sd=1;var e=Math.ceil,r=Math.floor;return hi=Math.trunc||function(n){var a=+n;return(a>0?r:e)(a)},hi}var gi,_d;function Bn(){if(_d)return gi;_d=1;var e=$x();return gi=function(r){var t=+r;return t!==t||t===0?0:e(t)},gi}var mi,wd;function qx(){if(wd)return mi;wd=1;var e=Bn(),r=Math.min;return mi=function(t){var n=e(t);return n>0?r(n,9007199254740991):0},mi}var yi,Ed;function Ur(){if(Ed)return yi;Ed=1;var e=qx();return yi=function(r){return e(r.length)},yi}var bi,Rd;function dy(){if(Rd)return bi;Rd=1;var e=TypeError,r=9007199254740991;return bi=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t},bi}var xi,Od;function ja(){if(Od)return xi;Od=1;var e=cr(),r=Tr(),t=kn();return xi=function(n,a,o){e?r.f(n,a,t(0,o)):n[a]=o},xi}var Si,Td;function xc(){if(Td)return Si;Td=1;var e=er(),r=e("toStringTag"),t={};return t[r]="z",Si=String(t)==="[object z]",Si}var _i,Id;function Pa(){if(Id)return _i;Id=1;var e=xc(),r=ir(),t=ft(),n=er(),a=n("toStringTag"),o=Object,i=t((function(){return arguments})())==="Arguments",c=function(l,u){try{return l[u]}catch{}};return _i=e?t:function(l){var u,f,g;return l===void 0?"Undefined":l===null?"Null":typeof(f=c(u=o(l),a))=="string"?f:i?t(u):(g=t(u))==="Object"&&r(u.callee)?"Arguments":g},_i}var wi,Cd;function Mx(){if(Cd)return wi;Cd=1;var e=Qe(),r=ir(),t=yc(),n=e(Function.toString);return r(t.inspectSource)||(t.inspectSource=function(a){return n(a)}),wi=t.inspectSource,wi}var Ei,jd;function Sc(){if(jd)return Ei;jd=1;var e=Qe(),r=Ve(),t=ir(),n=Pa(),a=$r(),o=Mx(),i=function(){},c=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,u=e(l.exec),f=!l.test(i),g=function(y){if(!t(y))return!1;try{return c(i,[],y),!0}catch{return!1}},v=function(y){if(!t(y))return!1;switch(n(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!u(l,o(y))}catch{return!0}};return v.sham=!0,Ei=!c||r(function(){var h;return g(g.call)||!g(Object)||!g(function(){h=!0})||h})?v:g,Ei}var Ri,Pd;function kx(){if(Pd)return Ri;Pd=1;var e=sn(),r=Sc(),t=vr(),n=er(),a=n("species"),o=Array;return Ri=function(i){var c;return e(i)&&(c=i.constructor,r(c)&&(c===o||e(c.prototype))?c=void 0:t(c)&&(c=c[a],c===null&&(c=void 0))),c===void 0?o:c},Ri}var Oi,Ad;function _c(){if(Ad)return Oi;Ad=1;var e=kx();return Oi=function(r,t){return new(e(r))(t===0?0:t)},Oi}var Ti,$d;function Hn(){if($d)return Ti;$d=1;var e=Ve(),r=er(),t=Ia(),n=r("species");return Ti=function(a){return t>=51||!e(function(){var o=[],i=o.constructor={};return i[n]=function(){return{foo:1}},o[a](Boolean).foo!==1})},Ti}var qd;function vy(){if(qd)return xd;qd=1;var e=je(),r=Ve(),t=sn(),n=vr(),a=qr(),o=Ur(),i=dy(),c=ja(),l=_c(),u=Hn(),f=er(),g=Ia(),v=f("isConcatSpreadable"),h=g>=51||!r(function(){var T=[];return T[v]=!1,T.concat()[0]!==T}),y=function(T){if(!n(T))return!1;var A=T[v];return A!==void 0?!!A:t(T)},_=!h||!u("concat");return e({target:"Array",proto:!0,arity:1,forced:_},{concat:function(A){var b=a(this),$=l(b,0),S=0,E,M,j,x,R;for(E=-1,j=arguments.length;E<j;E++)if(R=E===-1?b:arguments[E],y(R))for(x=o(R),i(S+x),M=0;M<x;M++,S++)M in R&&c($,S,R[M]);else i(S+1),c($,S++,R);return $.length=S,$}}),xd}var Md={},kd={},Ii,Nd;function Rt(){if(Nd)return Ii;Nd=1;var e=Pa(),r=String;return Ii=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(t)},Ii}var Ci={},ji,Dd;function Aa(){if(Dd)return ji;Dd=1;var e=Bn(),r=Math.max,t=Math.min;return ji=function(n,a){var o=e(n);return o<0?r(o+a,0):t(o,a)},ji}var Pi,zd;function py(){if(zd)return Pi;zd=1;var e=dt(),r=Aa(),t=Ur(),n=function(a){return function(o,i,c){var l=e(o),u=t(l);if(u===0)return!a&&-1;var f=r(c,u),g;if(a&&i!==i){for(;u>f;)if(g=l[f++],g!==g)return!0}else for(;u>f;f++)if((a||f in l)&&l[f]===i)return a||f||0;return!a&&-1}};return Pi={includes:n(!0),indexOf:n(!1)},Pi}var Ai,Ld;function Vn(){return Ld||(Ld=1,Ai={}),Ai}var $i,Fd;function hy(){if(Fd)return $i;Fd=1;var e=Qe(),r=wr(),t=dt(),n=py().indexOf,a=Vn(),o=e([].push);return $i=function(i,c){var l=t(i),u=0,f=[],g;for(g in l)!r(a,g)&&r(l,g)&&o(f,g);for(;c.length>u;)r(l,g=c[u++])&&(~n(f,g)||o(f,g));return f},$i}var qi,Bd;function wc(){return Bd||(Bd=1,qi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),qi}var Mi,Hd;function $a(){if(Hd)return Mi;Hd=1;var e=hy(),r=wc();return Mi=Object.keys||function(n){return e(n,r)},Mi}var Vd;function gy(){if(Vd)return Ci;Vd=1;var e=cr(),r=cy(),t=Tr(),n=Wr(),a=dt(),o=$a();return Ci.f=e&&!r?Object.defineProperties:function(c,l){n(c);for(var u=a(l),f=o(l),g=f.length,v=0,h;g>v;)t.f(c,h=f[v++],u[h]);return c},Ci}var ki,Gd;function Nx(){if(Gd)return ki;Gd=1;var e=$r();return ki=e("document","documentElement"),ki}var Ni,Wd;function qa(){if(Wd)return Ni;Wd=1;var e=an(),r=Ca(),t=e("keys");return Ni=function(n){return t[n]||(t[n]=r(n))},Ni}var Di,Ud;function Ma(){if(Ud)return Di;Ud=1;var e=Wr(),r=gy(),t=wc(),n=Vn(),a=Nx(),o=sy(),i=qa(),c=">",l="<",u="prototype",f="script",g=i("IE_PROTO"),v=function(){},h=function(b){return l+f+c+b+l+"/"+f+c},y=function(b){b.write(h("")),b.close();var $=b.parentWindow.Object;return b=null,$},_=function(){var b=o("iframe"),$="java"+f+":",S;return b.style.display="none",a.appendChild(b),b.src=String($),S=b.contentWindow.document,S.open(),S.write(h("document.F=Object")),S.close(),S.F},T,A=function(){try{T=new ActiveXObject("htmlfile")}catch{}A=typeof document<"u"?document.domain&&T?y(T):_():y(T);for(var b=t.length;b--;)delete A[u][t[b]];return A()};return n[g]=!0,Di=Object.create||function($,S){var E;return $!==null?(v[u]=e($),E=new v,v[u]=null,E[g]=$):E=A(),S===void 0?E:r.f(E,S)},Di}var zi={},Kd;function Ec(){if(Kd)return zi;Kd=1;var e=hy(),r=wc(),t=r.concat("length","prototype");return zi.f=Object.getOwnPropertyNames||function(a){return e(a,t)},zi}var Li={},Fi,Yd;function ka(){if(Yd)return Fi;Yd=1;var e=Qe();return Fi=e([].slice),Fi}var Jd;function my(){if(Jd)return Li;Jd=1;var e=ft(),r=dt(),t=Ec().f,n=ka(),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(i){try{return t(i)}catch{return n(a)}};return Li.f=function(c){return a&&e(c)==="Window"?o(c):t(r(c))},Li}var Bi={},Zd;function Rc(){return Zd||(Zd=1,Bi.f=Object.getOwnPropertySymbols),Bi}var Hi,Xd;function Gn(){if(Xd)return Hi;Xd=1;var e=on();return Hi=function(r,t,n,a){return a&&a.enumerable?r[t]=n:e(r,t,n),r},Hi}var Vi,Qd;function Oc(){if(Qd)return Vi;Qd=1;var e=Tr();return Vi=function(r,t,n){return e.f(r,t,n)},Vi}var Gi={},ev;function yy(){if(ev)return Gi;ev=1;var e=er();return Gi.f=e,Gi}var Wi,rv;function Ye(){if(rv)return Wi;rv=1;var e=Ar(),r=wr(),t=yy(),n=Tr().f;return Wi=function(a){var o=e.Symbol||(e.Symbol={});r(o,a)||n(o,a,{value:t.f(a)})},Wi}var Ui,tv;function by(){if(tv)return Ui;tv=1;var e=xr(),r=$r(),t=er(),n=Gn();return Ui=function(){var a=r("Symbol"),o=a&&a.prototype,i=o&&o.valueOf,c=t("toPrimitive");o&&!o[c]&&n(o,c,function(l){return e(i,this)},{arity:1})},Ui}var Ki,nv;function Dx(){if(nv)return Ki;nv=1;var e=xc(),r=Pa();return Ki=e?{}.toString:function(){return"[object "+r(this)+"]"},Ki}var Yi,av;function Ot(){if(av)return Yi;av=1;var e=xc(),r=Tr().f,t=on(),n=wr(),a=Dx(),o=er(),i=o("toStringTag");return Yi=function(c,l,u,f){var g=u?c:c&&c.prototype;g&&(n(g,i)||r(g,i,{configurable:!0,value:l}),f&&!e&&t(g,"toString",a))},Yi}var Ji,ov;function zx(){if(ov)return Ji;ov=1;var e=ur(),r=ir(),t=e.WeakMap;return Ji=r(t)&&/native code/.test(String(t)),Ji}var Zi,iv;function Wn(){if(iv)return Zi;iv=1;var e=zx(),r=ur(),t=vr(),n=on(),a=wr(),o=yc(),i=qa(),c=Vn(),l="Object already initialized",u=r.TypeError,f=r.WeakMap,g,v,h,y=function(b){return h(b)?v(b):g(b,{})},_=function(b){return function($){var S;if(!t($)||(S=v($)).type!==b)throw new u("Incompatible receiver, "+b+" required");return S}};if(e||o.state){var T=o.state||(o.state=new f);T.get=T.get,T.has=T.has,T.set=T.set,g=function(b,$){if(T.has(b))throw new u(l);return $.facade=b,T.set(b,$),$},v=function(b){return T.get(b)||{}},h=function(b){return T.has(b)}}else{var A=i("state");c[A]=!0,g=function(b,$){if(a(b,A))throw new u(l);return $.facade=b,n(b,A,$),$},v=function(b){return a(b,A)?b[A]:{}},h=function(b){return a(b,A)}}return Zi={set:g,get:v,has:h,enforce:y,getterFor:_},Zi}var Xi,sv;function Un(){if(sv)return Xi;sv=1;var e=Fn(),r=Qe(),t=gc(),n=qr(),a=Ur(),o=_c(),i=r([].push),c=function(l){var u=l===1,f=l===2,g=l===3,v=l===4,h=l===6,y=l===7,_=l===5||h;return function(T,A,b,$){for(var S=n(T),E=t(S),M=a(E),j=e(A,b),x=0,R=$||o,P=u?R(T,M):f||y?R(T,0):void 0,I,V;M>x;x++)if((_||x in E)&&(I=E[x],V=j(I,x,S),l))if(u)P[x]=V;else if(V)switch(l){case 3:return!0;case 5:return I;case 6:return x;case 2:i(P,I)}else switch(l){case 4:return!1;case 7:i(P,I)}return h?-1:g||v?v:P}};return Xi={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)},Xi}var lv;function Lx(){if(lv)return kd;lv=1;var e=je(),r=ur(),t=xr(),n=Qe(),a=Ln(),o=cr(),i=rn(),c=Ve(),l=wr(),u=_r(),f=Wr(),g=dt(),v=bc(),h=Rt(),y=kn(),_=Ma(),T=$a(),A=Ec(),b=my(),$=Rc(),S=uy(),E=Tr(),M=gy(),j=hc(),x=Gn(),R=Oc(),P=an(),I=qa(),V=Vn(),W=Ca(),z=er(),B=yy(),G=Ye(),U=by(),X=Ot(),ve=Wn(),F=Un().forEach,H=I("hidden"),ae="Symbol",le="prototype",oe=ve.set,J=ve.getterFor(ae),K=Object[le],ue=r.Symbol,ie=ue&&ue[le],ce=r.RangeError,Q=r.TypeError,se=r.QObject,Z=S.f,Pe=E.f,Er=b.f,Rr=j.f,Ir=n([].push),fr=P("symbols"),Cr=P("op-symbols"),zr=P("wks"),vt=!se||!se[le]||!se[le].findChild,qt=function(De,be,Se){var Re=Z(K,be);Re&&delete K[be],Pe(De,be,Se),Re&&De!==K&&Pe(K,be,Re)},Lr=o&&c(function(){return _(Pe({},"a",{get:function(){return Pe(this,"a",{value:7}).a}})).a!==7})?qt:Pe,pt=function(De,be){var Se=fr[De]=_(ie);return oe(Se,{type:ae,tag:De,description:be}),o||(Se.description=be),Se},Jr=function(be,Se,Re){be===K&&Jr(Cr,Se,Re),f(be);var qe=v(Se);return f(Re),l(fr,qe)?(Re.enumerable?(l(be,H)&&be[H][qe]&&(be[H][qe]=!1),Re=_(Re,{enumerable:y(0,!1)})):(l(be,H)||Pe(be,H,y(1,_(null))),be[H][qe]=!0),Lr(be,qe,Re)):Pe(be,qe,Re)},Zr=function(be,Se){f(be);var Re=g(Se),qe=T(Re).concat(gt(Re));return F(qe,function(tr){(!o||t(Xr,Re,tr))&&Jr(be,tr,Re[tr])}),be},Mt=function(be,Se){return Se===void 0?_(be):Zr(_(be),Se)},Xr=function(be){var Se=v(be),Re=t(Rr,this,Se);return this===K&&l(fr,Se)&&!l(Cr,Se)?!1:Re||!l(this,Se)||!l(fr,Se)||l(this,H)&&this[H][Se]?Re:!0},kt=function(be,Se){var Re=g(be),qe=v(Se);if(!(Re===K&&l(fr,qe)&&!l(Cr,qe))){var tr=Z(Re,qe);return tr&&l(fr,qe)&&!(l(Re,H)&&Re[H][qe])&&(tr.enumerable=!0),tr}},ht=function(be){var Se=Er(g(be)),Re=[];return F(Se,function(qe){!l(fr,qe)&&!l(V,qe)&&Ir(Re,qe)}),Re},gt=function(De){var be=De===K,Se=Er(be?Cr:g(De)),Re=[];return F(Se,function(qe){l(fr,qe)&&(!be||l(K,qe))&&Ir(Re,fr[qe])}),Re};return i||(ue=function(){if(u(ie,this))throw new Q("Symbol is not a constructor");var be=!arguments.length||arguments[0]===void 0?void 0:h(arguments[0]),Se=W(be),Re=function(qe){var tr=this===void 0?r:this;tr===K&&t(Re,Cr,qe),l(tr,H)&&l(tr[H],Se)&&(tr[H][Se]=!1);var Nt=y(1,qe);try{Lr(tr,Se,Nt)}catch(Qr){if(!(Qr instanceof ce))throw Qr;qt(tr,Se,Nt)}};return o&&vt&&Lr(K,Se,{configurable:!0,set:Re}),pt(Se,be)},ie=ue[le],x(ie,"toString",function(){return J(this).tag}),x(ue,"withoutSetter",function(De){return pt(W(De),De)}),j.f=Xr,E.f=Jr,M.f=Zr,S.f=kt,A.f=b.f=ht,$.f=gt,B.f=function(De){return pt(z(De),De)},o&&(R(ie,"description",{configurable:!0,get:function(){return J(this).description}}),a||x(K,"propertyIsEnumerable",Xr,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!i,sham:!i},{Symbol:ue}),F(T(zr),function(De){G(De)}),e({target:ae,stat:!0,forced:!i},{useSetter:function(){vt=!0},useSimple:function(){vt=!1}}),e({target:"Object",stat:!0,forced:!i,sham:!o},{create:Mt,defineProperty:Jr,defineProperties:Zr,getOwnPropertyDescriptor:kt}),e({target:"Object",stat:!0,forced:!i},{getOwnPropertyNames:ht}),U(),X(ue,ae),V[H]=!0,kd}var uv={},Qi,cv;function xy(){if(cv)return Qi;cv=1;var e=rn();return Qi=e&&!!Symbol.for&&!!Symbol.keyFor,Qi}var fv;function Fx(){if(fv)return uv;fv=1;var e=je(),r=$r(),t=wr(),n=Rt(),a=an(),o=xy(),i=a("string-to-symbol-registry"),c=a("symbol-to-string-registry");return e({target:"Symbol",stat:!0,forced:!o},{for:function(l){var u=n(l);if(t(i,u))return i[u];var f=r("Symbol")(u);return i[u]=f,c[f]=u,f}}),uv}var dv={},vv;function Bx(){if(vv)return dv;vv=1;var e=je(),r=wr(),t=zn(),n=tn(),a=an(),o=xy(),i=a("symbol-to-string-registry");return e({target:"Symbol",stat:!0,forced:!o},{keyFor:function(l){if(!t(l))throw new TypeError(n(l)+" is not a symbol");if(r(i,l))return i[l]}}),dv}var pv={},es,hv;function Hx(){if(hv)return es;hv=1;var e=Qe(),r=sn(),t=ir(),n=ft(),a=Rt(),o=e([].push);return es=function(i){if(t(i))return i;if(r(i)){for(var c=i.length,l=[],u=0;u<c;u++){var f=i[u];typeof f=="string"?o(l,f):(typeof f=="number"||n(f)==="Number"||n(f)==="String")&&o(l,a(f))}var g=l.length,v=!0;return function(h,y){if(v)return v=!1,y;if(r(this))return y;for(var _=0;_<g;_++)if(l[_]===h)return y}}},es}var gv;function Vx(){if(gv)return pv;gv=1;var e=je(),r=$r(),t=ay(),n=xr(),a=Qe(),o=Ve(),i=ir(),c=zn(),l=ka(),u=Hx(),f=rn(),g=String,v=r("JSON","stringify"),h=a(/./.exec),y=a("".charAt),_=a("".charCodeAt),T=a("".replace),A=a(1.1.toString),b=/[\uD800-\uDFFF]/g,$=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,E=!f||o(function(){var R=r("Symbol")("stringify detection");return v([R])!=="[null]"||v({a:R})!=="{}"||v(Object(R))!=="{}"}),M=o(function(){return v("\uDF06\uD834")!=='"\\udf06\\ud834"'||v("\uDEAD")!=='"\\udead"'}),j=function(R,P){var I=l(arguments),V=u(P);if(!(!i(V)&&(R===void 0||c(R))))return I[1]=function(W,z){if(i(V)&&(z=n(V,this,g(W),z)),!c(z))return z},t(v,null,I)},x=function(R,P,I){var V=y(I,P-1),W=y(I,P+1);return h($,R)&&!h(S,W)||h(S,R)&&!h($,V)?"\\u"+A(_(R,0),16):R};return v&&e({target:"JSON",stat:!0,arity:3,forced:E||M},{stringify:function(P,I,V){var W=l(arguments),z=t(E?j:v,null,W);return M&&typeof z=="string"?T(z,b,x):z}}),pv}var mv={},yv;function Gx(){if(yv)return mv;yv=1;var e=je(),r=rn(),t=Ve(),n=Rc(),a=qr(),o=!r||t(function(){n.f(1)});return e({target:"Object",stat:!0,forced:o},{getOwnPropertySymbols:function(c){var l=n.f;return l?l(a(c)):[]}}),mv}var bv;function Wx(){return bv||(bv=1,Lx(),Fx(),Bx(),Vx(),Gx()),Md}var xv={},Sv;function Sy(){if(Sv)return xv;Sv=1;var e=Ye();return e("asyncDispose"),xv}var _v={},wv;function Ux(){if(wv)return _v;wv=1;var e=Ye();return e("asyncIterator"),_v}var Ev={},Rv;function _y(){if(Rv)return Ev;Rv=1;var e=Ye();return e("dispose"),Ev}var Ov={},Tv;function Kx(){if(Tv)return Ov;Tv=1;var e=Ye();return e("hasInstance"),Ov}var Iv={},Cv;function Yx(){if(Cv)return Iv;Cv=1;var e=Ye();return e("isConcatSpreadable"),Iv}var jv={},Pv;function Jx(){if(Pv)return jv;Pv=1;var e=Ye();return e("iterator"),jv}var Av={},$v;function Zx(){if($v)return Av;$v=1;var e=Ye();return e("match"),Av}var qv={},Mv;function Xx(){if(Mv)return qv;Mv=1;var e=Ye();return e("matchAll"),qv}var kv={},Nv;function Qx(){if(Nv)return kv;Nv=1;var e=Ye();return e("replace"),kv}var Dv={},zv;function e2(){if(zv)return Dv;zv=1;var e=Ye();return e("search"),Dv}var Lv={},Fv;function r2(){if(Fv)return Lv;Fv=1;var e=Ye();return e("species"),Lv}var Bv={},Hv;function t2(){if(Hv)return Bv;Hv=1;var e=Ye();return e("split"),Bv}var Vv={},Gv;function n2(){if(Gv)return Vv;Gv=1;var e=Ye(),r=by();return e("toPrimitive"),r(),Vv}var Wv={},Uv;function a2(){if(Uv)return Wv;Uv=1;var e=$r(),r=Ye(),t=Ot();return r("toStringTag"),t(e("Symbol"),"Symbol"),Wv}var Kv={},Yv;function o2(){if(Yv)return Kv;Yv=1;var e=Ye();return e("unscopables"),Kv}var Jv={},Zv;function i2(){if(Zv)return Jv;Zv=1;var e=ur(),r=Ot();return r(e.JSON,"JSON",!0),Jv}var rs,Xv;function s2(){if(Xv)return rs;Xv=1,vy(),Wx(),Sy(),Ux(),_y(),Kx(),Yx(),Jx(),Zx(),Xx(),Qx(),e2(),r2(),t2(),n2(),a2(),o2(),i2();var e=Ar();return rs=e.Symbol,rs}var Qv={},ts,ep;function Na(){return ep||(ep=1,ts=function(){}),ts}var ns,rp;function ln(){return rp||(rp=1,ns={}),ns}var as,tp;function l2(){if(tp)return as;tp=1;var e=cr(),r=wr(),t=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,a=r(t,"name"),o=a&&(function(){}).name==="something",i=a&&(!e||e&&n(t,"name").configurable);return as={EXISTS:a,PROPER:o,CONFIGURABLE:i},as}var os,np;function u2(){if(np)return os;np=1;var e=Ve();return os=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),os}var is,ap;function wy(){if(ap)return is;ap=1;var e=wr(),r=ir(),t=qr(),n=qa(),a=u2(),o=n("IE_PROTO"),i=Object,c=i.prototype;return is=a?i.getPrototypeOf:function(l){var u=t(l);if(e(u,o))return u[o];var f=u.constructor;return r(f)&&u instanceof f?f.prototype:u instanceof i?c:null},is}var ss,op;function Ey(){if(op)return ss;op=1;var e=Ve(),r=ir(),t=vr(),n=Ma(),a=wy(),o=Gn(),i=er(),c=Ln(),l=i("iterator"),u=!1,f,g,v;[].keys&&(v=[].keys(),"next"in v?(g=a(a(v)),g!==Object.prototype&&(f=g)):u=!0);var h=!t(f)||e(function(){var y={};return f[l].call(y)!==y});return h?f={}:c&&(f=n(f)),r(f[l])||o(f,l,function(){return this}),ss={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:u},ss}var ls,ip;function c2(){if(ip)return ls;ip=1;var e=Ey().IteratorPrototype,r=Ma(),t=kn(),n=Ot(),a=ln(),o=function(){return this};return ls=function(i,c,l,u){var f=c+" Iterator";return i.prototype=r(e,{next:t(+!u,l)}),n(i,f,!1,!0),a[f]=o,i},ls}var us,sp;function f2(){if(sp)return us;sp=1;var e=Qe(),r=nn();return us=function(t,n,a){try{return e(r(Object.getOwnPropertyDescriptor(t,n)[a]))}catch{}},us}var cs,lp;function d2(){if(lp)return cs;lp=1;var e=vr();return cs=function(r){return e(r)||r===null},cs}var fs,up;function v2(){if(up)return fs;up=1;var e=d2(),r=String,t=TypeError;return fs=function(n){if(e(n))return n;throw new t("Can't set "+r(n)+" as a prototype")},fs}var ds,cp;function p2(){if(cp)return ds;cp=1;var e=f2(),r=vr(),t=Dn(),n=v2();return ds=Object.setPrototypeOf||("__proto__"in{}?(function(){var a=!1,o={},i;try{i=e(Object.prototype,"__proto__","set"),i(o,[]),a=o instanceof Array}catch{}return function(l,u){return t(l),n(u),r(l)&&(a?i(l,u):l.__proto__=u),l}})():void 0),ds}var vs,fp;function Tc(){if(fp)return vs;fp=1;var e=je(),r=xr(),t=Ln(),n=l2(),a=ir(),o=c2(),i=wy(),c=p2(),l=Ot(),u=on(),f=Gn(),g=er(),v=ln(),h=Ey(),y=n.PROPER,_=n.CONFIGURABLE,T=h.IteratorPrototype,A=h.BUGGY_SAFARI_ITERATORS,b=g("iterator"),$="keys",S="values",E="entries",M=function(){return this};return vs=function(j,x,R,P,I,V,W){o(R,x,P);var z=function(oe){if(oe===I&&ve)return ve;if(!A&&oe&&oe in U)return U[oe];switch(oe){case $:return function(){return new R(this,oe)};case S:return function(){return new R(this,oe)};case E:return function(){return new R(this,oe)}}return function(){return new R(this)}},B=x+" Iterator",G=!1,U=j.prototype,X=U[b]||U["@@iterator"]||I&&U[I],ve=!A&&X||z(I),F=x==="Array"&&U.entries||X,H,ae,le;if(F&&(H=i(F.call(new j)),H!==Object.prototype&&H.next&&(!t&&i(H)!==T&&(c?c(H,T):a(H[b])||f(H,b,M)),l(H,B,!0,!0),t&&(v[B]=M))),y&&I===S&&X&&X.name!==S&&(!t&&_?u(U,"name",S):(G=!0,ve=function(){return r(X,this)})),I)if(ae={values:z(S),keys:V?ve:z($),entries:z(E)},W)for(le in ae)(A||G||!(le in U))&&f(U,le,ae[le]);else e({target:x,proto:!0,forced:A||G},ae);return(!t||W)&&U[b]!==ve&&f(U,b,ve,{name:I}),v[x]=ve,ae},vs}var ps,dp;function Ic(){return dp||(dp=1,ps=function(e,r){return{value:e,done:r}}),ps}var hs,vp;function Cc(){if(vp)return hs;vp=1;var e=dt(),r=Na(),t=ln(),n=Wn(),a=Tr().f,o=Tc(),i=Ic(),c=Ln(),l=cr(),u="Array Iterator",f=n.set,g=n.getterFor(u);hs=o(Array,"Array",function(h,y){f(this,{type:u,target:e(h),index:0,kind:y})},function(){var h=g(this),y=h.target,_=h.index++;if(!y||_>=y.length)return h.target=null,i(void 0,!0);switch(h.kind){case"keys":return i(_,!1);case"values":return i(y[_],!1)}return i([_,y[_]],!1)},"values");var v=t.Arguments=t.Array;if(r("keys"),r("values"),r("entries"),!c&&l&&v.name!=="values")try{a(v,"name",{value:"values"})}catch{}return hs}var gs,pp;function h2(){return pp||(pp=1,gs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),gs}var hp;function jc(){if(hp)return Qv;hp=1,Cc();var e=h2(),r=ur(),t=Ot(),n=ln();for(var a in e)t(r[a],a),n[a]=n.Array;return Qv}var ms,gp;function Ry(){if(gp)return ms;gp=1;var e=s2();return jc(),ms=e,ms}var mp={},yp;function g2(){if(yp)return mp;yp=1;var e=er(),r=Tr().f,t=e("metadata"),n=Function.prototype;return n[t]===void 0&&r(n,t,{value:null}),mp}var bp={},xp;function m2(){return xp||(xp=1,Sy()),bp}var Sp={},_p;function y2(){return _p||(_p=1,_y()),Sp}var wp={},Ep;function b2(){if(Ep)return wp;Ep=1;var e=Ye();return e("metadata"),wp}var ys,Rp;function x2(){if(Rp)return ys;Rp=1;var e=Ry();return g2(),m2(),y2(),b2(),ys=e,ys}var Op={},bs,Tp;function Oy(){if(Tp)return bs;Tp=1;var e=$r(),r=Qe(),t=e("Symbol"),n=t.keyFor,a=r(t.prototype.valueOf);return bs=t.isRegisteredSymbol||function(i){try{return n(a(i))!==void 0}catch{return!1}},bs}var Ip;function S2(){if(Ip)return Op;Ip=1;var e=je(),r=Oy();return e({target:"Symbol",stat:!0},{isRegisteredSymbol:r}),Op}var Cp={},xs,jp;function Ty(){if(jp)return xs;jp=1;for(var e=an(),r=$r(),t=Qe(),n=zn(),a=er(),o=r("Symbol"),i=o.isWellKnownSymbol,c=r("Object","getOwnPropertyNames"),l=t(o.prototype.valueOf),u=e("wks"),f=0,g=c(o),v=g.length;f<v;f++)try{var h=g[f];n(o[h])&&a(h)}catch{}return xs=function(_){if(i&&i(_))return!0;try{for(var T=l(_),A=0,b=c(u),$=b.length;A<$;A++)if(u[b[A]]==T)return!0}catch{}return!1},xs}var Pp;function _2(){if(Pp)return Cp;Pp=1;var e=je(),r=Ty();return e({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:r}),Cp}var Ap={},$p;function w2(){if($p)return Ap;$p=1;var e=Ye();return e("customMatcher"),Ap}var qp={},Mp;function E2(){if(Mp)return qp;Mp=1;var e=Ye();return e("observable"),qp}var kp={},Np;function R2(){if(Np)return kp;Np=1;var e=je(),r=Oy();return e({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:r}),kp}var Dp={},zp;function O2(){if(zp)return Dp;zp=1;var e=je(),r=Ty();return e({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:r}),Dp}var Lp={},Fp;function T2(){if(Fp)return Lp;Fp=1;var e=Ye();return e("matcher"),Lp}var Bp={},Hp;function I2(){if(Hp)return Bp;Hp=1;var e=Ye();return e("metadataKey"),Bp}var Vp={},Gp;function C2(){if(Gp)return Vp;Gp=1;var e=Ye();return e("patternMatch"),Vp}var Wp={},Up;function j2(){if(Up)return Wp;Up=1;var e=Ye();return e("replaceAll"),Wp}var Ss,Kp;function P2(){if(Kp)return Ss;Kp=1;var e=x2();return S2(),_2(),w2(),E2(),R2(),O2(),T2(),I2(),C2(),j2(),Ss=e,Ss}var _s,Yp;function A2(){return Yp||(Yp=1,_s=P2()),_s}var ws,Jp;function $2(){return Jp||(Jp=1,ws=A2()),ws}var q2=$2();const Iy=We(q2);var Zp={},Es,Xp;function M2(){if(Xp)return Es;Xp=1;var e=Qe(),r=Bn(),t=Rt(),n=Dn(),a=e("".charAt),o=e("".charCodeAt),i=e("".slice),c=function(l){return function(u,f){var g=t(n(u)),v=r(f),h=g.length,y,_;return v<0||v>=h?l?"":void 0:(y=o(g,v),y<55296||y>56319||v+1===h||(_=o(g,v+1))<56320||_>57343?l?a(g,v):y:l?i(g,v,v+2):(y-55296<<10)+(_-56320)+65536)}};return Es={codeAt:c(!1),charAt:c(!0)},Es}var Qp;function Pc(){if(Qp)return Zp;Qp=1;var e=M2().charAt,r=Rt(),t=Wn(),n=Tc(),a=Ic(),o="String Iterator",i=t.set,c=t.getterFor(o);return n(String,"String",function(l){i(this,{type:o,string:r(l),index:0})},function(){var u=c(this),f=u.string,g=u.index,v;return g>=f.length?a(void 0,!0):(v=e(f,g),u.index+=v.length,a(v,!1))}),Zp}var Rs,eh;function Da(){if(eh)return Rs;eh=1;var e=Pa(),r=mc(),t=Nn(),n=ln(),a=er(),o=a("iterator");return Rs=function(i){if(!t(i))return r(i,o)||r(i,"@@iterator")||n[e(i)]},Rs}var Os,rh;function k2(){if(rh)return Os;rh=1,Cc(),Pc();var e=Da();return Os=e,Os}var Ts,th;function N2(){if(th)return Ts;th=1;var e=k2();return jc(),Ts=e,Ts}var Is,nh;function D2(){if(nh)return Is;nh=1;var e=N2();return Is=e,Is}var Cs,ah;function z2(){if(ah)return Cs;ah=1;var e=D2();return Cs=e,Cs}var js,oh;function L2(){return oh||(oh=1,js=z2()),js}var Ps,ih;function F2(){return ih||(ih=1,Ps=L2()),Ps}var B2=F2();const Ac=We(B2);var sh={},As,lh;function za(){if(lh)return As;lh=1;var e=xr(),r=Wr(),t=mc();return As=function(n,a,o){var i,c;r(n);try{if(i=t(n,"return"),!i){if(a==="throw")throw o;return o}i=e(i,n)}catch(l){c=!0,i=l}if(a==="throw")throw o;if(c)throw i;return r(i),o},As}var $s,uh;function H2(){if(uh)return $s;uh=1;var e=Wr(),r=za();return $s=function(t,n,a,o){try{return o?n(e(a)[0],a[1]):n(a)}catch(i){r(t,"throw",i)}},$s}var qs,ch;function Cy(){if(ch)return qs;ch=1;var e=er(),r=ln(),t=e("iterator"),n=Array.prototype;return qs=function(a){return a!==void 0&&(r.Array===a||n[t]===a)},qs}var Ms,fh;function jy(){if(fh)return Ms;fh=1;var e=xr(),r=nn(),t=Wr(),n=tn(),a=Da(),o=TypeError;return Ms=function(i,c){var l=arguments.length<2?a(i):c;if(r(l))return t(e(l,i));throw new o(n(i)+" is not iterable")},Ms}var ks,dh;function V2(){if(dh)return ks;dh=1;var e=Fn(),r=xr(),t=qr(),n=H2(),a=Cy(),o=Sc(),i=Ur(),c=ja(),l=jy(),u=Da(),f=Array;return ks=function(v){var h=t(v),y=o(this),_=arguments.length,T=_>1?arguments[1]:void 0,A=T!==void 0;A&&(T=e(T,_>2?arguments[2]:void 0));var b=u(h),$=0,S,E,M,j,x,R;if(b&&!(this===f&&a(b)))for(E=y?new this:[],j=l(h,b),x=j.next;!(M=r(x,j)).done;$++)R=A?n(j,T,[M.value,$],!0):M.value,c(E,$,R);else for(S=i(h),E=y?new this(S):f(S);S>$;$++)R=A?T(h[$],$):h[$],c(E,$,R);return E.length=$,E},ks}var Ns,vh;function G2(){if(vh)return Ns;vh=1;var e=er(),r=e("iterator"),t=!1;try{var n=0,a={next:function(){return{done:!!n++}},return:function(){t=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch{}return Ns=function(o,i){try{if(!i&&!t)return!1}catch{return!1}var c=!1;try{var l={};l[r]=function(){return{next:function(){return{done:c=!0}}}},o(l)}catch{}return c},Ns}var ph;function W2(){if(ph)return sh;ph=1;var e=je(),r=V2(),t=G2(),n=!t(function(a){Array.from(a)});return e({target:"Array",stat:!0,forced:n},{from:r}),sh}var Ds,hh;function U2(){if(hh)return Ds;hh=1,Pc(),W2();var e=Ar();return Ds=e.Array.from,Ds}var zs,gh;function Py(){if(gh)return zs;gh=1;var e=U2();return zs=e,zs}var Ls,mh;function K2(){if(mh)return Ls;mh=1;var e=Py();return Ls=e,Ls}var Fs,yh;function Y2(){if(yh)return Fs;yh=1;var e=K2();return Fs=e,Fs}var Bs,bh;function J2(){return bh||(bh=1,Bs=Y2()),Bs}var Hs,xh;function Z2(){return xh||(xh=1,Hs=J2()),Hs}var X2=Z2();const Ay=We(X2);function Q2(e){if(typeof Iy<"u"&&Ac(e)!=null||e["@@iterator"]!=null)return Ay(e)}var Sh={},_h;function e3(){if(_h)return Sh;_h=1;var e=je(),r=sn(),t=Sc(),n=vr(),a=Aa(),o=Ur(),i=dt(),c=ja(),l=er(),u=Hn(),f=ka(),g=u("slice"),v=l("species"),h=Array,y=Math.max;return e({target:"Array",proto:!0,forced:!g},{slice:function(T,A){var b=i(this),$=o(b),S=a(T,$),E=a(A===void 0?$:A,$),M,j,x;if(r(b)&&(M=b.constructor,t(M)&&(M===h||r(M.prototype))?M=void 0:n(M)&&(M=M[v],M===null&&(M=void 0)),M===h||M===void 0))return f(b,S,E);for(j=new(M===void 0?h:M)(y(E-S,0)),x=0;S<E;S++,x++)S in b&&c(j,x,b[S]);return j.length=x,j}}),Sh}var Vs,wh;function Nr(){if(wh)return Vs;wh=1;var e=ur(),r=Ar();return Vs=function(t,n){var a=r[t+"Prototype"],o=a&&a[n];if(o)return o;var i=e[t],c=i&&i.prototype;return c&&c[n]},Vs}var Gs,Eh;function r3(){if(Eh)return Gs;Eh=1,e3();var e=Nr();return Gs=e("Array","slice"),Gs}var Ws,Rh;function t3(){if(Rh)return Ws;Rh=1;var e=_r(),r=r3(),t=Array.prototype;return Ws=function(n){var a=n.slice;return n===t||e(t,n)&&a===t.slice?r:a},Ws}var Us,Oh;function $y(){if(Oh)return Us;Oh=1;var e=t3();return Us=e,Us}var Ks,Th;function n3(){if(Th)return Ks;Th=1;var e=$y();return Ks=e,Ks}var Ys,Ih;function a3(){if(Ih)return Ys;Ih=1;var e=n3();return Ys=e,Ys}var Js,Ch;function o3(){return Ch||(Ch=1,Js=a3()),Js}var Zs,jh;function i3(){return jh||(jh=1,Zs=o3()),Zs}var s3=i3();const l3=We(s3);function qy(e,r){var t;if(e){if(typeof e=="string")return nc(e,r);var n=l3(t=Object.prototype.toString.call(e)).call(t,8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Ay(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nc(e,r)}}function u3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
31
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _a(e){return Ax(e)||Q2(e)||qy(e)||u3()}function $c(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var Xs={exports:{}},Ph={},Ah;function c3(){if(Ah)return Ph;Ah=1;var e=je(),r=cr(),t=Tr().f;return e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!r},{defineProperty:t}),Ph}var $h;function f3(){if($h)return Xs.exports;$h=1,c3();var e=Ar(),r=e.Object,t=Xs.exports=function(a,o,i){return r.defineProperty(a,o,i)};return r.defineProperty.sham&&(t.sham=!0),Xs.exports}var Qs,qh;function d3(){if(qh)return Qs;qh=1;var e=f3();return Qs=e,Qs}var el,Mh;function v3(){if(Mh)return el;Mh=1;var e=d3();return el=e,el}var rl,kh;function p3(){if(kh)return rl;kh=1;var e=v3();return rl=e,rl}var tl,Nh;function h3(){return Nh||(Nh=1,tl=p3()),tl}var nl,Dh;function g3(){return Dh||(Dh=1,nl=h3()),nl}var m3=g3();const qc=We(m3);function zh(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),qc(e,n.key,n)}}function Mc(e,r,t){return r&&zh(e.prototype,r),t&&zh(e,t),qc(e,"prototype",{writable:!1}),e}function y3(e,r,t){return r in e?qc(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var Lh={},Fh;function b3(){if(Fh)return Lh;Fh=1;var e=je(),r=Un().map,t=Hn(),n=t("map");return e({target:"Array",proto:!0,forced:!n},{map:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}}),Lh}var al,Bh;function x3(){if(Bh)return al;Bh=1,b3();var e=Nr();return al=e("Array","map"),al}var ol,Hh;function S3(){if(Hh)return ol;Hh=1;var e=_r(),r=x3(),t=Array.prototype;return ol=function(n){var a=n.map;return n===t||e(t,n)&&a===t.map?r:a},ol}var il,Vh;function _3(){if(Vh)return il;Vh=1;var e=S3();return il=e,il}var sl,Gh;function w3(){return Gh||(Gh=1,sl=_3()),sl}var E3=w3();const Xe=We(E3);var Wh={},Uh;function R3(){if(Uh)return Wh;Uh=1;var e=je(),r=py().includes,t=Ve(),n=Na(),a=t(function(){return!Array(1).includes()});return e({target:"Array",proto:!0,forced:a},{includes:function(i){return r(this,i,arguments.length>1?arguments[1]:void 0)}}),n("includes"),Wh}var ll,Kh;function O3(){if(Kh)return ll;Kh=1,R3();var e=Nr();return ll=e("Array","includes"),ll}var Yh={},ul,Jh;function T3(){if(Jh)return ul;Jh=1;var e=vr(),r=ft(),t=er(),n=t("match");return ul=function(a){var o;return e(a)&&((o=a[n])!==void 0?!!o:r(a)==="RegExp")},ul}var cl,Zh;function I3(){if(Zh)return cl;Zh=1;var e=T3(),r=TypeError;return cl=function(t){if(e(t))throw new r("The method doesn't accept regular expressions");return t},cl}var fl,Xh;function C3(){if(Xh)return fl;Xh=1;var e=er(),r=e("match");return fl=function(t){var n=/./;try{"/./"[t](n)}catch{try{return n[r]=!1,"/./"[t](n)}catch{}}return!1},fl}var Qh;function j3(){if(Qh)return Yh;Qh=1;var e=je(),r=Qe(),t=I3(),n=Dn(),a=Rt(),o=C3(),i=r("".indexOf);return e({target:"String",proto:!0,forced:!o("includes")},{includes:function(l){return!!~i(a(n(this)),a(t(l)),arguments.length>1?arguments[1]:void 0)}}),Yh}var dl,e0;function P3(){if(e0)return dl;e0=1,j3();var e=Nr();return dl=e("String","includes"),dl}var vl,r0;function A3(){if(r0)return vl;r0=1;var e=_r(),r=O3(),t=P3(),n=Array.prototype,a=String.prototype;return vl=function(o){var i=o.includes;return o===n||e(n,o)&&i===n.includes?r:typeof o=="string"||o===a||e(a,o)&&i===a.includes?t:i},vl}var pl,t0;function $3(){if(t0)return pl;t0=1;var e=A3();return pl=e,pl}var hl,n0;function q3(){return n0||(n0=1,hl=$3()),hl}var M3=q3();const My=We(M3);var ma={exports:{}};/**
|
|
3
32
|
* chroma.js - JavaScript library for color conversions
|
|
4
33
|
*
|
|
5
34
|
* Copyright (c) 2011-2019, Gregor Aisch
|
|
@@ -54,8 +83,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
54
83
|
* http://www.w3.org/TR/css3-color/#svg-color
|
|
55
84
|
*
|
|
56
85
|
* @preserve
|
|
57
|
-
*/var Gm=Gt.exports,Q0;function Km(){return Q0||(Q0=1,(function(r,e){(function(t,n){r.exports=n()})(Gm,(function(){for(var t=function(a,i,c){return i===void 0&&(i=0),c===void 0&&(c=1),a<i?i:a>c?c:a},n=function(a){a._clipped=!1,a._unclipped=a.slice(0);for(var i=0;i<=3;i++)i<3?((a[i]<0||a[i]>255)&&(a._clipped=!0),a[i]=t(a[i],0,255)):i===3&&(a[i]=t(a[i],0,1));return a},o={},s=0,u=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];s<u.length;s+=1){var v=u[s];o["[object "+v+"]"]=v.toLowerCase()}var l=function(a){return o[Object.prototype.toString.call(a)]||"object"},f=function(a,i){return i===void 0&&(i=null),a.length>=3?Array.prototype.slice.call(a):l(a[0])=="object"&&i?i.split("").filter(function(c){return a[0][c]!==void 0}).map(function(c){return a[0][c]}):a[0]},h=function(a){if(a.length<2)return null;var i=a.length-1;return l(a[i])=="string"?a[i].toLowerCase():null},y=Math.PI,d={clip_rgb:n,limit:t,type:l,unpack:f,last:h,TWOPI:y*2,PITHIRD:y/3,DEG2RAD:y/180,RAD2DEG:180/y},p={format:{},autodetect:[]},S=d.last,w=d.clip_rgb,$=d.type,C=function(){for(var i=[],c=arguments.length;c--;)i[c]=arguments[c];var g=this;if($(i[0])==="object"&&i[0].constructor&&i[0].constructor===this.constructor)return i[0];var R=S(i),I=!1;if(!R){I=!0,p.sorted||(p.autodetect=p.autodetect.sort(function(L,j){return j.p-L.p}),p.sorted=!0);for(var _=0,T=p.autodetect;_<T.length;_+=1){var P=T[_];if(R=P.test.apply(P,i),R)break}}if(p.format[R]){var D=p.format[R].apply(null,I?i:i.slice(0,-1));g._rgb=w(D)}else throw new Error("unknown format: "+i);g._rgb.length===3&&g._rgb.push(1)};C.prototype.toString=function(){return $(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var b=C,E=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(E.Color,[null].concat(a)))};E.Color=b,E.version="2.1.2";var m=E,O=d.unpack,M=Math.max,F=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=O(a,"rgb"),g=c[0],R=c[1],I=c[2];g=g/255,R=R/255,I=I/255;var _=1-M(g,M(R,I)),T=_<1?1/(1-_):0,P=(1-g-_)*T,D=(1-R-_)*T,L=(1-I-_)*T;return[P,D,L,_]},q=F,x=d.unpack,k=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];a=x(a,"cmyk");var c=a[0],g=a[1],R=a[2],I=a[3],_=a.length>4?a[4]:1;return I===1?[0,0,0,_]:[c>=1?0:255*(1-c)*(1-I),g>=1?0:255*(1-g)*(1-I),R>=1?0:255*(1-R)*(1-I),_]},A=k,B=d.unpack,G=d.type;b.prototype.cmyk=function(){return q(this._rgb)},m.cmyk=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["cmyk"])))},p.format.cmyk=A,p.autodetect.push({p:2,test:function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];if(a=B(a,"cmyk"),G(a)==="array"&&a.length===4)return"cmyk"}});var W=d.unpack,Q=d.last,hr=function(a){return Math.round(a*100)/100},or=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=W(a,"hsla"),g=Q(a)||"lsa";return c[0]=hr(c[0]||0),c[1]=hr(c[1]*100)+"%",c[2]=hr(c[2]*100)+"%",g==="hsla"||c.length>3&&c[3]<1?(c[3]=c.length>3?c[3]:1,g="hsla"):c.length=3,g+"("+c.join(",")+")"},wr=or,Pr=d.unpack,Dr=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];a=Pr(a,"rgba");var c=a[0],g=a[1],R=a[2];c/=255,g/=255,R/=255;var I=Math.min(c,g,R),_=Math.max(c,g,R),T=(_+I)/2,P,D;return _===I?(P=0,D=Number.NaN):P=T<.5?(_-I)/(_+I):(_-I)/(2-_-I),c==_?D=(g-R)/(_-I):g==_?D=2+(R-c)/(_-I):R==_&&(D=4+(c-g)/(_-I)),D*=60,D<0&&(D+=360),a.length>3&&a[3]!==void 0?[D,P,T,a[3]]:[D,P,T]},V=Dr,yr=d.unpack,Er=d.last,Ir=Math.round,Gr=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=yr(a,"rgba"),g=Er(a)||"rgb";return g.substr(0,3)=="hsl"?wr(V(c),g):(c[0]=Ir(c[0]),c[1]=Ir(c[1]),c[2]=Ir(c[2]),(g==="rgba"||c.length>3&&c[3]<1)&&(c[3]=c.length>3?c[3]:1,g="rgba"),g+"("+c.slice(0,g==="rgb"?3:4).join(",")+")")},$r=Gr,Xr=d.unpack,Ur=Math.round,Je=function(){for(var a,i=[],c=arguments.length;c--;)i[c]=arguments[c];i=Xr(i,"hsl");var g=i[0],R=i[1],I=i[2],_,T,P;if(R===0)_=T=P=I*255;else{var D=[0,0,0],L=[0,0,0],j=I<.5?I*(1+R):I+R-I*R,z=2*I-j,K=g/360;D[0]=K+1/3,D[1]=K,D[2]=K-1/3;for(var H=0;H<3;H++)D[H]<0&&(D[H]+=1),D[H]>1&&(D[H]-=1),6*D[H]<1?L[H]=z+(j-z)*6*D[H]:2*D[H]<1?L[H]=j:3*D[H]<2?L[H]=z+(j-z)*(2/3-D[H])*6:L[H]=z;a=[Ur(L[0]*255),Ur(L[1]*255),Ur(L[2]*255)],_=a[0],T=a[1],P=a[2]}return i.length>3?[_,T,P,i[3]]:[_,T,P,1]},pe=Je,Te=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Xe=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,te=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Ze=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Tt=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Qe=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Hr=Math.round,se=function(a){a=a.toLowerCase().trim();var i;if(p.format.named)try{return p.format.named(a)}catch{}if(i=a.match(Te)){for(var c=i.slice(1,4),g=0;g<3;g++)c[g]=+c[g];return c[3]=1,c}if(i=a.match(Xe)){for(var R=i.slice(1,5),I=0;I<4;I++)R[I]=+R[I];return R}if(i=a.match(te)){for(var _=i.slice(1,4),T=0;T<3;T++)_[T]=Hr(_[T]*2.55);return _[3]=1,_}if(i=a.match(Ze)){for(var P=i.slice(1,5),D=0;D<3;D++)P[D]=Hr(P[D]*2.55);return P[3]=+P[3],P}if(i=a.match(Tt)){var L=i.slice(1,4);L[1]*=.01,L[2]*=.01;var j=pe(L);return j[3]=1,j}if(i=a.match(Qe)){var z=i.slice(1,4);z[1]*=.01,z[2]*=.01;var K=pe(z);return K[3]=+i[4],K}};se.test=function(a){return Te.test(a)||Xe.test(a)||te.test(a)||Ze.test(a)||Tt.test(a)||Qe.test(a)};var xt=se,rt=d.type;b.prototype.css=function(a){return $r(this._rgb,a)},m.css=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["css"])))},p.format.css=xt,p.autodetect.push({p:5,test:function(a){for(var i=[],c=arguments.length-1;c-- >0;)i[c]=arguments[c+1];if(!i.length&&rt(a)==="string"&&xt.test(a))return"css"}});var Pt=d.unpack;p.format.gl=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=Pt(a,"rgba");return c[0]*=255,c[1]*=255,c[2]*=255,c},m.gl=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["gl"])))},b.prototype.gl=function(){var a=this._rgb;return[a[0]/255,a[1]/255,a[2]/255,a[3]]};var et=d.unpack,tt=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=et(a,"rgb"),g=c[0],R=c[1],I=c[2],_=Math.min(g,R,I),T=Math.max(g,R,I),P=T-_,D=P*100/255,L=_/(255-P)*100,j;return P===0?j=Number.NaN:(g===T&&(j=(R-I)/P),R===T&&(j=2+(I-g)/P),I===T&&(j=4+(g-R)/P),j*=60,j<0&&(j+=360)),[j,D,L]},xe=tt,nt=d.unpack,un=Math.floor,at=function(){for(var a,i,c,g,R,I,_=[],T=arguments.length;T--;)_[T]=arguments[T];_=nt(_,"hcg");var P=_[0],D=_[1],L=_[2],j,z,K;L=L*255;var H=D*255;if(D===0)j=z=K=L;else{P===360&&(P=0),P>360&&(P-=360),P<0&&(P+=360),P/=60;var rr=un(P),Y=P-rr,ir=L*(1-D),vr=ir+H*(1-Y),Or=ir+H*Y,Tr=ir+H;switch(rr){case 0:a=[Tr,Or,ir],j=a[0],z=a[1],K=a[2];break;case 1:i=[vr,Tr,ir],j=i[0],z=i[1],K=i[2];break;case 2:c=[ir,Tr,Or],j=c[0],z=c[1],K=c[2];break;case 3:g=[ir,vr,Tr],j=g[0],z=g[1],K=g[2];break;case 4:R=[Or,ir,Tr],j=R[0],z=R[1],K=R[2];break;case 5:I=[Tr,ir,vr],j=I[0],z=I[1],K=I[2];break}}return[j,z,K,_.length>3?_[3]:1]},$t=at,At=d.unpack,Mt=d.type;b.prototype.hcg=function(){return xe(this._rgb)},m.hcg=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["hcg"])))},p.format.hcg=$t,p.autodetect.push({p:1,test:function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];if(a=At(a,"hcg"),Mt(a)==="array"&&a.length===3)return"hcg"}});var lr=d.unpack,J=d.last,X=Math.round,tr=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=lr(a,"rgba"),g=c[0],R=c[1],I=c[2],_=c[3],T=J(a)||"auto";_===void 0&&(_=1),T==="auto"&&(T=_<1?"rgba":"rgb"),g=X(g),R=X(R),I=X(I);var P=g<<16|R<<8|I,D="000000"+P.toString(16);D=D.substr(D.length-6);var L="0"+X(_*255).toString(16);switch(L=L.substr(L.length-2),T.toLowerCase()){case"rgba":return"#"+D+L;case"argb":return"#"+L+D;default:return"#"+D}},sr=tr,Ar=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Ct=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Ft=function(a){if(a.match(Ar)){(a.length===4||a.length===7)&&(a=a.substr(1)),a.length===3&&(a=a.split(""),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]);var i=parseInt(a,16),c=i>>16,g=i>>8&255,R=i&255;return[c,g,R,1]}if(a.match(Ct)){(a.length===5||a.length===9)&&(a=a.substr(1)),a.length===4&&(a=a.split(""),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]+a[3]+a[3]);var I=parseInt(a,16),_=I>>24&255,T=I>>16&255,P=I>>8&255,D=Math.round((I&255)/255*100)/100;return[_,T,P,D]}throw new Error("unknown hex color: "+a)},js=Ft,h1=d.type;b.prototype.hex=function(a){return sr(this._rgb,a)},m.hex=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["hex"])))},p.format.hex=js,p.autodetect.push({p:4,test:function(a){for(var i=[],c=arguments.length-1;c-- >0;)i[c]=arguments[c+1];if(!i.length&&h1(a)==="string"&&[3,4,5,6,7,8,9].indexOf(a.length)>=0)return"hex"}});var p1=d.unpack,Ls=d.TWOPI,y1=Math.min,b1=Math.sqrt,g1=Math.acos,m1=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=p1(a,"rgb"),g=c[0],R=c[1],I=c[2];g/=255,R/=255,I/=255;var _,T=y1(g,R,I),P=(g+R+I)/3,D=P>0?1-T/P:0;return D===0?_=NaN:(_=(g-R+(g-I))/2,_/=b1((g-R)*(g-R)+(g-I)*(R-I)),_=g1(_),I>R&&(_=Ls-_),_/=Ls),[_*360,D,P]},S1=m1,_1=d.unpack,sn=d.limit,Pe=d.TWOPI,cn=d.PITHIRD,$e=Math.cos,R1=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];a=_1(a,"hsi");var c=a[0],g=a[1],R=a[2],I,_,T;return isNaN(c)&&(c=0),isNaN(g)&&(g=0),c>360&&(c-=360),c<0&&(c+=360),c/=360,c<1/3?(T=(1-g)/3,I=(1+g*$e(Pe*c)/$e(cn-Pe*c))/3,_=1-(T+I)):c<2/3?(c-=1/3,I=(1-g)/3,_=(1+g*$e(Pe*c)/$e(cn-Pe*c))/3,T=1-(I+_)):(c-=2/3,_=(1-g)/3,T=(1+g*$e(Pe*c)/$e(cn-Pe*c))/3,I=1-(_+T)),I=sn(R*I*3),_=sn(R*_*3),T=sn(R*T*3),[I*255,_*255,T*255,a.length>3?a[3]:1]},I1=R1,q1=d.unpack,w1=d.type;b.prototype.hsi=function(){return S1(this._rgb)},m.hsi=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["hsi"])))},p.format.hsi=I1,p.autodetect.push({p:2,test:function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];if(a=q1(a,"hsi"),w1(a)==="array"&&a.length===3)return"hsi"}});var E1=d.unpack,O1=d.type;b.prototype.hsl=function(){return V(this._rgb)},m.hsl=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["hsl"])))},p.format.hsl=pe,p.autodetect.push({p:2,test:function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];if(a=E1(a,"hsl"),O1(a)==="array"&&a.length===3)return"hsl"}});var T1=d.unpack,x1=Math.min,P1=Math.max,$1=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];a=T1(a,"rgb");var c=a[0],g=a[1],R=a[2],I=x1(c,g,R),_=P1(c,g,R),T=_-I,P,D,L;return L=_/255,_===0?(P=Number.NaN,D=0):(D=T/_,c===_&&(P=(g-R)/T),g===_&&(P=2+(R-c)/T),R===_&&(P=4+(c-g)/T),P*=60,P<0&&(P+=360)),[P,D,L]},A1=$1,M1=d.unpack,C1=Math.floor,F1=function(){for(var a,i,c,g,R,I,_=[],T=arguments.length;T--;)_[T]=arguments[T];_=M1(_,"hsv");var P=_[0],D=_[1],L=_[2],j,z,K;if(L*=255,D===0)j=z=K=L;else{P===360&&(P=0),P>360&&(P-=360),P<0&&(P+=360),P/=60;var H=C1(P),rr=P-H,Y=L*(1-D),ir=L*(1-D*rr),vr=L*(1-D*(1-rr));switch(H){case 0:a=[L,vr,Y],j=a[0],z=a[1],K=a[2];break;case 1:i=[ir,L,Y],j=i[0],z=i[1],K=i[2];break;case 2:c=[Y,L,vr],j=c[0],z=c[1],K=c[2];break;case 3:g=[Y,ir,L],j=g[0],z=g[1],K=g[2];break;case 4:R=[vr,Y,L],j=R[0],z=R[1],K=R[2];break;case 5:I=[L,Y,ir],j=I[0],z=I[1],K=I[2];break}}return[j,z,K,_.length>3?_[3]:1]},k1=F1,D1=d.unpack,j1=d.type;b.prototype.hsv=function(){return A1(this._rgb)},m.hsv=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["hsv"])))},p.format.hsv=k1,p.autodetect.push({p:2,test:function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];if(a=D1(a,"hsv"),j1(a)==="array"&&a.length===3)return"hsv"}});var jr={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},L1=d.unpack,Ns=Math.pow,N1=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=L1(a,"rgb"),g=c[0],R=c[1],I=c[2],_=B1(g,R,I),T=_[0],P=_[1],D=_[2],L=116*P-16;return[L<0?0:L,500*(T-P),200*(P-D)]},fn=function(a){return(a/=255)<=.04045?a/12.92:Ns((a+.055)/1.055,2.4)},ln=function(a){return a>jr.t3?Ns(a,1/3):a/jr.t2+jr.t0},B1=function(a,i,c){a=fn(a),i=fn(i),c=fn(c);var g=ln((.4124564*a+.3575761*i+.1804375*c)/jr.Xn),R=ln((.2126729*a+.7151522*i+.072175*c)/jr.Yn),I=ln((.0193339*a+.119192*i+.9503041*c)/jr.Zn);return[g,R,I]},Bs=N1,G1=d.unpack,K1=Math.pow,z1=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];a=G1(a,"lab");var c=a[0],g=a[1],R=a[2],I,_,T,P,D,L;return _=(c+16)/116,I=isNaN(g)?_:_+g/500,T=isNaN(R)?_:_-R/200,_=jr.Yn*dn(_),I=jr.Xn*dn(I),T=jr.Zn*dn(T),P=vn(3.2404542*I-1.5371385*_-.4985314*T),D=vn(-.969266*I+1.8760108*_+.041556*T),L=vn(.0556434*I-.2040259*_+1.0572252*T),[P,D,L,a.length>3?a[3]:1]},vn=function(a){return 255*(a<=.00304?12.92*a:1.055*K1(a,1/2.4)-.055)},dn=function(a){return a>jr.t1?a*a*a:jr.t2*(a-jr.t0)},Gs=z1,W1=d.unpack,U1=d.type;b.prototype.lab=function(){return Bs(this._rgb)},m.lab=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["lab"])))},p.format.lab=Gs,p.autodetect.push({p:2,test:function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];if(a=W1(a,"lab"),U1(a)==="array"&&a.length===3)return"lab"}});var H1=d.unpack,V1=d.RAD2DEG,Y1=Math.sqrt,J1=Math.atan2,X1=Math.round,Z1=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=H1(a,"lab"),g=c[0],R=c[1],I=c[2],_=Y1(R*R+I*I),T=(J1(I,R)*V1+360)%360;return X1(_*1e4)===0&&(T=Number.NaN),[g,_,T]},Q1=Z1,ry=d.unpack,ey=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=ry(a,"rgb"),g=c[0],R=c[1],I=c[2],_=Bs(g,R,I),T=_[0],P=_[1],D=_[2];return Q1(T,P,D)},Ks=ey,ty=d.unpack,ny=d.DEG2RAD,ay=Math.sin,oy=Math.cos,iy=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=ty(a,"lch"),g=c[0],R=c[1],I=c[2];return isNaN(I)&&(I=0),I=I*ny,[g,oy(I)*R,ay(I)*R]},uy=iy,sy=d.unpack,cy=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];a=sy(a,"lch");var c=a[0],g=a[1],R=a[2],I=uy(c,g,R),_=I[0],T=I[1],P=I[2],D=Gs(_,T,P),L=D[0],j=D[1],z=D[2];return[L,j,z,a.length>3?a[3]:1]},zs=cy,fy=d.unpack,ly=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=fy(a,"hcl").reverse();return zs.apply(void 0,c)},vy=ly,dy=d.unpack,hy=d.type;b.prototype.lch=function(){return Ks(this._rgb)},b.prototype.hcl=function(){return Ks(this._rgb).reverse()},m.lch=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["lch"])))},m.hcl=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["hcl"])))},p.format.lch=zs,p.format.hcl=vy,["lch","hcl"].forEach(function(a){return p.autodetect.push({p:2,test:function(){for(var i=[],c=arguments.length;c--;)i[c]=arguments[c];if(i=dy(i,a),hy(i)==="array"&&i.length===3)return a}})});var py={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Ae=py,yy=d.type;b.prototype.name=function(){for(var a=sr(this._rgb,"rgb"),i=0,c=Object.keys(Ae);i<c.length;i+=1){var g=c[i];if(Ae[g]===a)return g.toLowerCase()}return a},p.format.named=function(a){if(a=a.toLowerCase(),Ae[a])return js(Ae[a]);throw new Error("unknown color name: "+a)},p.autodetect.push({p:5,test:function(a){for(var i=[],c=arguments.length-1;c-- >0;)i[c]=arguments[c+1];if(!i.length&&yy(a)==="string"&&Ae[a.toLowerCase()])return"named"}});var by=d.unpack,gy=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=by(a,"rgb"),g=c[0],R=c[1],I=c[2];return(g<<16)+(R<<8)+I},my=gy,Sy=d.type,_y=function(a){if(Sy(a)=="number"&&a>=0&&a<=16777215){var i=a>>16,c=a>>8&255,g=a&255;return[i,c,g,1]}throw new Error("unknown num color: "+a)},Ry=_y,Iy=d.type;b.prototype.num=function(){return my(this._rgb)},m.num=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["num"])))},p.format.num=Ry,p.autodetect.push({p:5,test:function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];if(a.length===1&&Iy(a[0])==="number"&&a[0]>=0&&a[0]<=16777215)return"num"}});var Ws=d.unpack,Us=d.type,Hs=Math.round;b.prototype.rgb=function(a){return a===void 0&&(a=!0),a===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Hs)},b.prototype.rgba=function(a){return a===void 0&&(a=!0),this._rgb.slice(0,4).map(function(i,c){return c<3?a===!1?i:Hs(i):i})},m.rgb=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["rgb"])))},p.format.rgb=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var c=Ws(a,"rgba");return c[3]===void 0&&(c[3]=1),c},p.autodetect.push({p:3,test:function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];if(a=Ws(a,"rgba"),Us(a)==="array"&&(a.length===3||a.length===4&&Us(a[3])=="number"&&a[3]>=0&&a[3]<=1))return"rgb"}});var kt=Math.log,qy=function(a){var i=a/100,c,g,R;return i<66?(c=255,g=-155.25485562709179-.44596950469579133*(g=i-2)+104.49216199393888*kt(g),R=i<20?0:-254.76935184120902+.8274096064007395*(R=i-10)+115.67994401066147*kt(R)):(c=351.97690566805693+.114206453784165*(c=i-55)-40.25366309332127*kt(c),g=325.4494125711974+.07943456536662342*(g=i-50)-28.0852963507957*kt(g),R=255),[c,g,R,1]},Vs=qy,wy=d.unpack,Ey=Math.round,Oy=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];for(var c=wy(a,"rgb"),g=c[0],R=c[2],I=1e3,_=4e4,T=.4,P;_-I>T;){P=(_+I)*.5;var D=Vs(P);D[2]/D[0]>=R/g?_=P:I=P}return Ey(P)},Ty=Oy;b.prototype.temp=b.prototype.kelvin=b.prototype.temperature=function(){return Ty(this._rgb)},m.temp=m.kelvin=m.temperature=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];return new(Function.prototype.bind.apply(b,[null].concat(a,["temp"])))},p.format.temp=p.format.kelvin=p.format.temperature=Vs;var xy=d.type;b.prototype.alpha=function(a,i){return i===void 0&&(i=!1),a!==void 0&&xy(a)==="number"?i?(this._rgb[3]=a,this):new b([this._rgb[0],this._rgb[1],this._rgb[2],a],"rgb"):this._rgb[3]},b.prototype.clipped=function(){return this._rgb._clipped||!1},b.prototype.darken=function(a){a===void 0&&(a=1);var i=this,c=i.lab();return c[0]-=jr.Kn*a,new b(c,"lab").alpha(i.alpha(),!0)},b.prototype.brighten=function(a){return a===void 0&&(a=1),this.darken(-a)},b.prototype.darker=b.prototype.darken,b.prototype.brighter=b.prototype.brighten,b.prototype.get=function(a){var i=a.split("."),c=i[0],g=i[1],R=this[c]();if(g){var I=c.indexOf(g);if(I>-1)return R[I];throw new Error("unknown channel "+g+" in mode "+c)}else return R};var Py=d.type,$y=Math.pow,Ay=1e-7,My=20;b.prototype.luminance=function(a){if(a!==void 0&&Py(a)==="number"){if(a===0)return new b([0,0,0,this._rgb[3]],"rgb");if(a===1)return new b([255,255,255,this._rgb[3]],"rgb");var i=this.luminance(),c="rgb",g=My,R=function(_,T){var P=_.interpolate(T,.5,c),D=P.luminance();return Math.abs(a-D)<Ay||!g--?P:D>a?R(_,P):R(P,T)},I=(i>a?R(new b([0,0,0]),this):R(this,new b([255,255,255]))).rgb();return new b(I.concat([this._rgb[3]]))}return Cy.apply(void 0,this._rgb.slice(0,3))};var Cy=function(a,i,c){return a=hn(a),i=hn(i),c=hn(c),.2126*a+.7152*i+.0722*c},hn=function(a){return a/=255,a<=.03928?a/12.92:$y((a+.055)/1.055,2.4)},Lr={},Ys=d.type,Js=function(a,i,c){c===void 0&&(c=.5);for(var g=[],R=arguments.length-3;R-- >0;)g[R]=arguments[R+3];var I=g[0]||"lrgb";if(!Lr[I]&&!g.length&&(I=Object.keys(Lr)[0]),!Lr[I])throw new Error("interpolation mode "+I+" is not defined");return Ys(a)!=="object"&&(a=new b(a)),Ys(i)!=="object"&&(i=new b(i)),Lr[I](a,i,c).alpha(a.alpha()+c*(i.alpha()-a.alpha()))};b.prototype.mix=b.prototype.interpolate=function(a,i){i===void 0&&(i=.5);for(var c=[],g=arguments.length-2;g-- >0;)c[g]=arguments[g+2];return Js.apply(void 0,[this,a,i].concat(c))},b.prototype.premultiply=function(a){a===void 0&&(a=!1);var i=this._rgb,c=i[3];return a?(this._rgb=[i[0]*c,i[1]*c,i[2]*c,c],this):new b([i[0]*c,i[1]*c,i[2]*c,c],"rgb")},b.prototype.saturate=function(a){a===void 0&&(a=1);var i=this,c=i.lch();return c[1]+=jr.Kn*a,c[1]<0&&(c[1]=0),new b(c,"lch").alpha(i.alpha(),!0)},b.prototype.desaturate=function(a){return a===void 0&&(a=1),this.saturate(-a)};var Xs=d.type;b.prototype.set=function(a,i,c){c===void 0&&(c=!1);var g=a.split("."),R=g[0],I=g[1],_=this[R]();if(I){var T=R.indexOf(I);if(T>-1){if(Xs(i)=="string")switch(i.charAt(0)){case"+":_[T]+=+i;break;case"-":_[T]+=+i;break;case"*":_[T]*=+i.substr(1);break;case"/":_[T]/=+i.substr(1);break;default:_[T]=+i}else if(Xs(i)==="number")_[T]=i;else throw new Error("unsupported value for Color.set");var P=new b(_,R);return c?(this._rgb=P._rgb,this):P}throw new Error("unknown channel "+I+" in mode "+R)}else return _};var Fy=function(a,i,c){var g=a._rgb,R=i._rgb;return new b(g[0]+c*(R[0]-g[0]),g[1]+c*(R[1]-g[1]),g[2]+c*(R[2]-g[2]),"rgb")};Lr.rgb=Fy;var pn=Math.sqrt,Me=Math.pow,ky=function(a,i,c){var g=a._rgb,R=g[0],I=g[1],_=g[2],T=i._rgb,P=T[0],D=T[1],L=T[2];return new b(pn(Me(R,2)*(1-c)+Me(P,2)*c),pn(Me(I,2)*(1-c)+Me(D,2)*c),pn(Me(_,2)*(1-c)+Me(L,2)*c),"rgb")};Lr.lrgb=ky;var Dy=function(a,i,c){var g=a.lab(),R=i.lab();return new b(g[0]+c*(R[0]-g[0]),g[1]+c*(R[1]-g[1]),g[2]+c*(R[2]-g[2]),"lab")};Lr.lab=Dy;var ot=function(a,i,c,g){var R,I,_,T;g==="hsl"?(_=a.hsl(),T=i.hsl()):g==="hsv"?(_=a.hsv(),T=i.hsv()):g==="hcg"?(_=a.hcg(),T=i.hcg()):g==="hsi"?(_=a.hsi(),T=i.hsi()):(g==="lch"||g==="hcl")&&(g="hcl",_=a.hcl(),T=i.hcl());var P,D,L,j,z,K;g.substr(0,1)==="h"&&(R=_,P=R[0],L=R[1],z=R[2],I=T,D=I[0],j=I[1],K=I[2]);var H,rr,Y,ir;return!isNaN(P)&&!isNaN(D)?(D>P&&D-P>180?ir=D-(P+360):D<P&&P-D>180?ir=D+360-P:ir=D-P,rr=P+c*ir):isNaN(P)?isNaN(D)?rr=Number.NaN:(rr=D,(z==1||z==0)&&g!="hsv"&&(H=j)):(rr=P,(K==1||K==0)&&g!="hsv"&&(H=L)),H===void 0&&(H=L+c*(j-L)),Y=z+c*(K-z),new b([rr,H,Y],g)},Zs=function(a,i,c){return ot(a,i,c,"lch")};Lr.lch=Zs,Lr.hcl=Zs;var jy=function(a,i,c){var g=a.num(),R=i.num();return new b(g+c*(R-g),"num")};Lr.num=jy;var Ly=function(a,i,c){return ot(a,i,c,"hcg")};Lr.hcg=Ly;var Ny=function(a,i,c){return ot(a,i,c,"hsi")};Lr.hsi=Ny;var By=function(a,i,c){return ot(a,i,c,"hsl")};Lr.hsl=By;var Gy=function(a,i,c){return ot(a,i,c,"hsv")};Lr.hsv=Gy;var Ky=d.clip_rgb,yn=Math.pow,bn=Math.sqrt,gn=Math.PI,Qs=Math.cos,rc=Math.sin,zy=Math.atan2,Wy=function(a,i,c){i===void 0&&(i="lrgb"),c===void 0&&(c=null);var g=a.length;c||(c=Array.from(new Array(g)).map(function(){return 1}));var R=g/c.reduce(function(rr,Y){return rr+Y});if(c.forEach(function(rr,Y){c[Y]*=R}),a=a.map(function(rr){return new b(rr)}),i==="lrgb")return Uy(a,c);for(var I=a.shift(),_=I.get(i),T=[],P=0,D=0,L=0;L<_.length;L++)if(_[L]=(_[L]||0)*c[0],T.push(isNaN(_[L])?0:c[0]),i.charAt(L)==="h"&&!isNaN(_[L])){var j=_[L]/180*gn;P+=Qs(j)*c[0],D+=rc(j)*c[0]}var z=I.alpha()*c[0];a.forEach(function(rr,Y){var ir=rr.get(i);z+=rr.alpha()*c[Y+1];for(var vr=0;vr<_.length;vr++)if(!isNaN(ir[vr]))if(T[vr]+=c[Y+1],i.charAt(vr)==="h"){var Or=ir[vr]/180*gn;P+=Qs(Or)*c[Y+1],D+=rc(Or)*c[Y+1]}else _[vr]+=ir[vr]*c[Y+1]});for(var K=0;K<_.length;K++)if(i.charAt(K)==="h"){for(var H=zy(D/T[K],P/T[K])/gn*180;H<0;)H+=360;for(;H>=360;)H-=360;_[K]=H}else _[K]=_[K]/T[K];return z/=g,new b(_,i).alpha(z>.99999?1:z,!0)},Uy=function(a,i){for(var c=a.length,g=[0,0,0,0],R=0;R<a.length;R++){var I=a[R],_=i[R]/c,T=I._rgb;g[0]+=yn(T[0],2)*_,g[1]+=yn(T[1],2)*_,g[2]+=yn(T[2],2)*_,g[3]+=T[3]*_}return g[0]=bn(g[0]),g[1]=bn(g[1]),g[2]=bn(g[2]),g[3]>.9999999&&(g[3]=1),new b(Ky(g))},Ce=d.type,Hy=Math.pow,Dt=function(a){var i="rgb",c=m("#ccc"),g=0,R=[0,1],I=[],_=[0,0],T=!1,P=[],D=!1,L=0,j=1,z=!1,K={},H=!0,rr=1,Y=function(N){if(N=N||["#fff","#000"],N&&Ce(N)==="string"&&m.brewer&&m.brewer[N.toLowerCase()]&&(N=m.brewer[N.toLowerCase()]),Ce(N)==="array"){N.length===1&&(N=[N[0],N[0]]),N=N.slice(0);for(var U=0;U<N.length;U++)N[U]=m(N[U]);I.length=0;for(var er=0;er<N.length;er++)I.push(er/(N.length-1))}return Kr(),P=N},ir=function(N){if(T!=null){for(var U=T.length-1,er=0;er<U&&N>=T[er];)er++;return er-1}return 0},vr=function(N){return N},Or=function(N){return N},Tr=function(N,U){var er,Z;if(U==null&&(U=!1),isNaN(N)||N===null)return c;if(U)Z=N;else if(T&&T.length>2){var Nr=ir(N);Z=Nr/(T.length-2)}else j!==L?Z=(N-L)/(j-L):Z=1;Z=Or(Z),U||(Z=vr(Z)),rr!==1&&(Z=Hy(Z,rr)),Z=_[0]+Z*(1-_[0]-_[1]),Z=Math.min(1,Math.max(0,Z));var br=Math.floor(Z*1e4);if(H&&K[br])er=K[br];else{if(Ce(P)==="array")for(var cr=0;cr<I.length;cr++){var fr=I[cr];if(Z<=fr){er=P[cr];break}if(Z>=fr&&cr===I.length-1){er=P[cr];break}if(Z>fr&&Z<I[cr+1]){Z=(Z-fr)/(I[cr+1]-fr),er=m.interpolate(P[cr],P[cr+1],Z,i);break}}else Ce(P)==="function"&&(er=P(Z));H&&(K[br]=er)}return er},Kr=function(){return K={}};Y(a);var nr=function(N){var U=m(Tr(N));return D&&U[D]?U[D]():U};return nr.classes=function(N){if(N!=null){if(Ce(N)==="array")T=N,R=[N[0],N[N.length-1]];else{var U=m.analyze(R);N===0?T=[U.min,U.max]:T=m.limits(U,"e",N)}return nr}return T},nr.domain=function(N){if(!arguments.length)return R;L=N[0],j=N[N.length-1],I=[];var U=P.length;if(N.length===U&&L!==j)for(var er=0,Z=Array.from(N);er<Z.length;er+=1){var Nr=Z[er];I.push((Nr-L)/(j-L))}else{for(var br=0;br<U;br++)I.push(br/(U-1));if(N.length>2){var cr=N.map(function(qr,dr){return dr/(N.length-1)}),fr=N.map(function(qr){return(qr-L)/(j-L)});fr.every(function(qr,dr){return cr[dr]===qr})||(Or=function(qr){if(qr<=0||qr>=1)return qr;for(var dr=0;qr>=fr[dr+1];)dr++;var le=(qr-fr[dr])/(fr[dr+1]-fr[dr]),Fe=cr[dr]+le*(cr[dr+1]-cr[dr]);return Fe})}}return R=[L,j],nr},nr.mode=function(N){return arguments.length?(i=N,Kr(),nr):i},nr.range=function(N,U){return Y(N),nr},nr.out=function(N){return D=N,nr},nr.spread=function(N){return arguments.length?(g=N,nr):g},nr.correctLightness=function(N){return N==null&&(N=!0),z=N,Kr(),z?vr=function(U){for(var er=Tr(0,!0).lab()[0],Z=Tr(1,!0).lab()[0],Nr=er>Z,br=Tr(U,!0).lab()[0],cr=er+(Z-er)*U,fr=br-cr,qr=0,dr=1,le=20;Math.abs(fr)>.01&&le-- >0;)(function(){return Nr&&(fr*=-1),fr<0?(qr=U,U+=(dr-U)*.5):(dr=U,U+=(qr-U)*.5),br=Tr(U,!0).lab()[0],fr=br-cr})();return U}:vr=function(U){return U},nr},nr.padding=function(N){return N!=null?(Ce(N)==="number"&&(N=[N,N]),_=N,nr):_},nr.colors=function(N,U){arguments.length<2&&(U="hex");var er=[];if(arguments.length===0)er=P.slice(0);else if(N===1)er=[nr(.5)];else if(N>1){var Z=R[0],Nr=R[1]-Z;er=Vy(0,N).map(function(dr){return nr(Z+dr/(N-1)*Nr)})}else{a=[];var br=[];if(T&&T.length>2)for(var cr=1,fr=T.length,qr=1<=fr;qr?cr<fr:cr>fr;qr?cr++:cr--)br.push((T[cr-1]+T[cr])*.5);else br=R;er=br.map(function(dr){return nr(dr)})}return m[U]&&(er=er.map(function(dr){return dr[U]()})),er},nr.cache=function(N){return N!=null?(H=N,nr):H},nr.gamma=function(N){return N!=null?(rr=N,nr):rr},nr.nodata=function(N){return N!=null?(c=m(N),nr):c},nr};function Vy(a,i,c){for(var g=[],R=a<i,I=i,_=a;R?_<I:_>I;R?_++:_--)g.push(_);return g}var mn=function(a){var i,c,g,R,I,_,T;if(a=a.map(function(j){return new b(j)}),a.length===2)i=a.map(function(j){return j.lab()}),I=i[0],_=i[1],R=function(j){var z=[0,1,2].map(function(K){return I[K]+j*(_[K]-I[K])});return new b(z,"lab")};else if(a.length===3)c=a.map(function(j){return j.lab()}),I=c[0],_=c[1],T=c[2],R=function(j){var z=[0,1,2].map(function(K){return(1-j)*(1-j)*I[K]+2*(1-j)*j*_[K]+j*j*T[K]});return new b(z,"lab")};else if(a.length===4){var P;g=a.map(function(j){return j.lab()}),I=g[0],_=g[1],T=g[2],P=g[3],R=function(j){var z=[0,1,2].map(function(K){return(1-j)*(1-j)*(1-j)*I[K]+3*(1-j)*(1-j)*j*_[K]+3*(1-j)*j*j*T[K]+j*j*j*P[K]});return new b(z,"lab")}}else if(a.length===5){var D=mn(a.slice(0,3)),L=mn(a.slice(2,5));R=function(j){return j<.5?D(j*2):L((j-.5)*2)}}return R},Yy=function(a){var i=mn(a);return i.scale=function(){return Dt(i)},i},Zr=function(a,i,c){if(!Zr[c])throw new Error("unknown blend mode "+c);return Zr[c](a,i)},ce=function(a){return function(i,c){var g=m(c).rgb(),R=m(i).rgb();return m.rgb(a(g,R))}},fe=function(a){return function(i,c){var g=[];return g[0]=a(i[0],c[0]),g[1]=a(i[1],c[1]),g[2]=a(i[2],c[2]),g}},Jy=function(a){return a},Xy=function(a,i){return a*i/255},Zy=function(a,i){return a>i?i:a},Qy=function(a,i){return a>i?a:i},rb=function(a,i){return 255*(1-(1-a/255)*(1-i/255))},eb=function(a,i){return i<128?2*a*i/255:255*(1-2*(1-a/255)*(1-i/255))},tb=function(a,i){return 255*(1-(1-i/255)/(a/255))},nb=function(a,i){return a===255?255:(a=255*(i/255)/(1-a/255),a>255?255:a)};Zr.normal=ce(fe(Jy)),Zr.multiply=ce(fe(Xy)),Zr.screen=ce(fe(rb)),Zr.overlay=ce(fe(eb)),Zr.darken=ce(fe(Zy)),Zr.lighten=ce(fe(Qy)),Zr.dodge=ce(fe(nb)),Zr.burn=ce(fe(tb));for(var ab=Zr,Sn=d.type,ob=d.clip_rgb,ib=d.TWOPI,ub=Math.pow,sb=Math.sin,cb=Math.cos,fb=function(a,i,c,g,R){a===void 0&&(a=300),i===void 0&&(i=-1.5),c===void 0&&(c=1),g===void 0&&(g=1),R===void 0&&(R=[0,1]);var I=0,_;Sn(R)==="array"?_=R[1]-R[0]:(_=0,R=[R,R]);var T=function(P){var D=ib*((a+120)/360+i*P),L=ub(R[0]+_*P,g),j=I!==0?c[0]+P*I:c,z=j*L*(1-L)/2,K=cb(D),H=sb(D),rr=L+z*(-.14861*K+1.78277*H),Y=L+z*(-.29227*K-.90649*H),ir=L+z*(1.97294*K);return m(ob([rr*255,Y*255,ir*255,1]))};return T.start=function(P){return P==null?a:(a=P,T)},T.rotations=function(P){return P==null?i:(i=P,T)},T.gamma=function(P){return P==null?g:(g=P,T)},T.hue=function(P){return P==null?c:(c=P,Sn(c)==="array"?(I=c[1]-c[0],I===0&&(c=c[1])):I=0,T)},T.lightness=function(P){return P==null?R:(Sn(P)==="array"?(R=P,_=P[1]-P[0]):(R=[P,P],_=0),T)},T.scale=function(){return m.scale(T)},T.hue(c),T},lb="0123456789abcdef",vb=Math.floor,db=Math.random,hb=function(){for(var a="#",i=0;i<6;i++)a+=lb.charAt(vb(db()*16));return new b(a,"hex")},ec=Math.log,pb=Math.pow,yb=Math.floor,bb=Math.abs,tc=function(a,i){i===void 0&&(i=null);var c={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return l(a)==="object"&&(a=Object.values(a)),a.forEach(function(g){i&&l(g)==="object"&&(g=g[i]),g!=null&&!isNaN(g)&&(c.values.push(g),c.sum+=g,g<c.min&&(c.min=g),g>c.max&&(c.max=g),c.count+=1)}),c.domain=[c.min,c.max],c.limits=function(g,R){return nc(c,g,R)},c},nc=function(a,i,c){i===void 0&&(i="equal"),c===void 0&&(c=7),l(a)=="array"&&(a=tc(a));var g=a.min,R=a.max,I=a.values.sort(function(En,On){return En-On});if(c===1)return[g,R];var _=[];if(i.substr(0,1)==="c"&&(_.push(g),_.push(R)),i.substr(0,1)==="e"){_.push(g);for(var T=1;T<c;T++)_.push(g+T/c*(R-g));_.push(R)}else if(i.substr(0,1)==="l"){if(g<=0)throw new Error("Logarithmic scales are only possible for values > 0");var P=Math.LOG10E*ec(g),D=Math.LOG10E*ec(R);_.push(g);for(var L=1;L<c;L++)_.push(pb(10,P+L/c*(D-P)));_.push(R)}else if(i.substr(0,1)==="q"){_.push(g);for(var j=1;j<c;j++){var z=(I.length-1)*j/c,K=yb(z);if(K===z)_.push(I[K]);else{var H=z-K;_.push(I[K]*(1-H)+I[K+1]*H)}}_.push(R)}else if(i.substr(0,1)==="k"){var rr,Y=I.length,ir=new Array(Y),vr=new Array(c),Or=!0,Tr=0,Kr=null;Kr=[],Kr.push(g);for(var nr=1;nr<c;nr++)Kr.push(g+nr/c*(R-g));for(Kr.push(R);Or;){for(var N=0;N<c;N++)vr[N]=0;for(var U=0;U<Y;U++)for(var er=I[U],Z=Number.MAX_VALUE,Nr=void 0,br=0;br<c;br++){var cr=bb(Kr[br]-er);cr<Z&&(Z=cr,Nr=br),vr[Nr]++,ir[U]=Nr}for(var fr=new Array(c),qr=0;qr<c;qr++)fr[qr]=null;for(var dr=0;dr<Y;dr++)rr=ir[dr],fr[rr]===null?fr[rr]=I[dr]:fr[rr]+=I[dr];for(var le=0;le<c;le++)fr[le]*=1/vr[le];Or=!1;for(var Fe=0;Fe<c;Fe++)if(fr[Fe]!==Kr[Fe]){Or=!0;break}Kr=fr,Tr++,Tr>200&&(Or=!1)}for(var it={},In=0;In<c;In++)it[In]=[];for(var Nt=0;Nt<Y;Nt++)rr=ir[Nt],it[rr].push(I[Nt]);for(var ye=[],ut=0;ut<c;ut++)ye.push(it[ut][0]),ye.push(it[ut][it[ut].length-1]);ye=ye.sort(function(En,On){return En-On}),_.push(ye[0]);for(var qn=1;qn<ye.length;qn+=2){var wn=ye[qn];!isNaN(wn)&&_.indexOf(wn)===-1&&_.push(wn)}}return _},ac={analyze:tc,limits:nc},gb=function(a,i){a=new b(a),i=new b(i);var c=a.luminance(),g=i.luminance();return c>g?(c+.05)/(g+.05):(g+.05)/(c+.05)},jt=Math.sqrt,mb=Math.atan2,oc=Math.abs,ic=Math.cos,_n=Math.PI,Sb=function(a,i,c,g){c===void 0&&(c=1),g===void 0&&(g=1),a=new b(a),i=new b(i);for(var R=Array.from(a.lab()),I=R[0],_=R[1],T=R[2],P=Array.from(i.lab()),D=P[0],L=P[1],j=P[2],z=jt(_*_+T*T),K=jt(L*L+j*j),H=I<16?.511:.040975*I/(1+.01765*I),rr=.0638*z/(1+.0131*z)+.638,Y=z<1e-6?0:mb(T,_)*180/_n;Y<0;)Y+=360;for(;Y>=360;)Y-=360;var ir=Y>=164&&Y<=345?.56+oc(.2*ic(_n*(Y+168)/180)):.36+oc(.4*ic(_n*(Y+35)/180)),vr=z*z*z*z,Or=jt(vr/(vr+1900)),Tr=rr*(Or*ir+1-Or),Kr=I-D,nr=z-K,N=_-L,U=T-j,er=N*N+U*U-nr*nr,Z=Kr/(c*H),Nr=nr/(g*rr),br=Tr;return jt(Z*Z+Nr*Nr+er/(br*br))},_b=function(a,i,c){c===void 0&&(c="lab"),a=new b(a),i=new b(i);var g=a.get(c),R=i.get(c),I=0;for(var _ in g){var T=(g[_]||0)-(R[_]||0);I+=T*T}return Math.sqrt(I)},Rb=function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];try{return new(Function.prototype.bind.apply(b,[null].concat(a))),!0}catch{return!1}},Ib={cool:function(){return Dt([m.hsl(180,1,.9),m.hsl(250,.7,.4)])},hot:function(){return Dt(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Lt={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Rn=0,uc=Object.keys(Lt);Rn<uc.length;Rn+=1){var sc=uc[Rn];Lt[sc.toLowerCase()]=Lt[sc]}var qb=Lt;m.average=Wy,m.bezier=Yy,m.blend=ab,m.cubehelix=fb,m.mix=m.interpolate=Js,m.random=hb,m.scale=Dt,m.analyze=ac.analyze,m.contrast=gb,m.deltaE=Sb,m.distance=_b,m.limits=ac.limits,m.valid=Rb,m.scales=Ib,m.colors=Ae,m.brewer=qb;var wb=m;return wb}))})(Gt)),Gt.exports}var us=Km();const ur=gr(us);var $i,rd;function zm(){return rd||(rd=1,$i=kp()),$i}var Wm=zm();const Um=gr(Wm);var Ai,ed;function Hm(){return ed||(ed=1,Ai=Pp()),Ai}var Vm=Hm();const Ym=gr(Vm);var Mi,td;function Jm(){return td||(td=1,Mi=jp()),Mi}var Xm=Jm();const ve=gr(Xm);var Ci,nd;function Zm(){if(nd)return Ci;nd=1,gp();var r=ne();return Ci=r("Array","concat"),Ci}var Fi,ad;function Qm(){if(ad)return Fi;ad=1;var r=zr(),e=Zm(),t=Array.prototype;return Fi=function(n){var o=n.concat;return n===t||r(t,n)&&o===t.concat?e:o},Fi}var ki,od;function r2(){if(od)return ki;od=1;var r=Qm();return ki=r,ki}var Di,id;function e2(){return id||(id=1,Di=r2()),Di}var t2=e2();const je=gr(t2);var ud={},ji,sd;function n2(){if(sd)return ji;sd=1;var r=Fr(),e=Ve(),t=TypeError,n=Object.getOwnPropertyDescriptor,o=r&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}})();return ji=o?function(s,u){if(e(s)&&!n(s,"length").writable)throw new t("Cannot set read only .length");return s.length=u}:function(s,u){return s.length=u},ji}var Li,cd;function Bp(){if(cd)return Li;cd=1;var r=ze(),e=TypeError;return Li=function(t,n){if(!delete t[n])throw new e("Cannot delete property "+r(n)+" of "+r(t))},Li}var fd;function a2(){if(fd)return ud;fd=1;var r=ar(),e=ee(),t=Zt(),n=St(),o=ue(),s=n2(),u=bp(),v=Ss(),l=Jt(),f=Bp(),h=_t(),y=h("splice"),d=Math.max,p=Math.min;return r({target:"Array",proto:!0,forced:!y},{splice:function(w,$){var C=e(this),b=o(C),E=t(w,b),m=arguments.length,O,M,F,q,x,k;for(m===0?O=M=0:m===1?(O=0,M=b-E):(O=m-2,M=p(d(n($),0),b-E)),u(b+O-M),F=v(C,M),q=0;q<M;q++)x=E+q,x in C&&l(F,q,C[x]);if(F.length=M,O<M){for(q=E;q<b-M;q++)x=q+M,k=q+O,x in C?C[k]=C[x]:f(C,k);for(q=b;q>b-M+O;q--)f(C,q-1)}else if(O>M)for(q=b-M;q>E;q--)x=q+M-1,k=q+O-1,x in C?C[k]=C[x]:f(C,k);for(q=0;q<O;q++)C[q+E]=arguments[q+2];return s(C,b-M+O),F}}),ud}var Ni,ld;function o2(){if(ld)return Ni;ld=1,a2();var r=ne();return Ni=r("Array","splice"),Ni}var Bi,vd;function i2(){if(vd)return Bi;vd=1;var r=zr(),e=o2(),t=Array.prototype;return Bi=function(n){var o=n.splice;return n===t||r(t,n)&&o===t.splice?e:o},Bi}var Gi,dd;function u2(){if(dd)return Gi;dd=1;var r=i2();return Gi=r,Gi}var Ki,hd;function s2(){return hd||(hd=1,Ki=u2()),Ki}var c2=s2();const lt=gr(c2);var pd={},yd;function f2(){if(yd)return pd;yd=1;var r=ar(),e=wt().filter,t=_t(),n=t("filter");return r({target:"Array",proto:!0,forced:!n},{filter:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),pd}var zi,bd;function l2(){if(bd)return zi;bd=1,f2();var r=ne();return zi=r("Array","filter"),zi}var Wi,gd;function v2(){if(gd)return Wi;gd=1;var r=zr(),e=l2(),t=Array.prototype;return Wi=function(n){var o=n.filter;return n===t||r(t,n)&&o===t.filter?e:o},Wi}var Ui,md;function d2(){if(md)return Ui;md=1;var r=v2();return Ui=r,Ui}var Hi,Sd;function h2(){return Sd||(Sd=1,Hi=d2()),Hi}var p2=h2();const Cs=gr(p2);var _d={},Vi,Rd;function y2(){if(Rd)return Vi;Rd=1;var r=tn(),e=Math.floor,t=function(n,o){var s=n.length;if(s<8)for(var u=1,v,l;u<s;){for(l=u,v=n[u];l&&o(n[l-1],v)>0;)n[l]=n[--l];l!==u++&&(n[l]=v)}else for(var f=e(s/2),h=t(r(n,0,f),o),y=t(r(n,f),o),d=h.length,p=y.length,S=0,w=0;S<d||w<p;)n[S+w]=S<d&&w<p?o(h[S],y[w])<=0?h[S++]:y[w++]:S<d?h[S++]:y[w++];return n};return Vi=t,Vi}var Yi,Id;function b2(){if(Id)return Yi;Id=1;var r=pr();return Yi=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){return 1},1)})},Yi}var Ji,qd;function g2(){if(qd)return Ji;qd=1;var r=Ht(),e=r.match(/firefox\/(\d+)/i);return Ji=!!e&&+e[1],Ji}var Xi,wd;function m2(){if(wd)return Xi;wd=1;var r=Ht();return Xi=/MSIE|Trident/.test(r),Xi}var Zi,Ed;function S2(){if(Ed)return Zi;Ed=1;var r=Ht(),e=r.match(/AppleWebKit\/(\d+)\./);return Zi=!!e&&+e[1],Zi}var Od;function _2(){if(Od)return _d;Od=1;var r=ar(),e=_r(),t=We(),n=ee(),o=ue(),s=Bp(),u=_e(),v=pr(),l=y2(),f=b2(),h=g2(),y=m2(),d=Vt(),p=S2(),S=[],w=e(S.sort),$=e(S.push),C=v(function(){S.sort(void 0)}),b=v(function(){S.sort(null)}),E=f("sort"),m=!v(function(){if(d)return d<70;if(!(h&&h>3)){if(y)return!0;if(p)return p<603;var F="",q,x,k,A;for(q=65;q<76;q++){switch(x=String.fromCharCode(q),q){case 66:case 69:case 70:case 72:k=3;break;case 68:case 71:k=4;break;default:k=2}for(A=0;A<47;A++)S.push({k:x+A,v:k})}for(S.sort(function(B,G){return G.v-B.v}),A=0;A<S.length;A++)x=S[A].k.charAt(0),F.charAt(F.length-1)!==x&&(F+=x);return F!=="DGBEFHACIJK"}}),O=C||!b||!E||!m,M=function(F){return function(q,x){return x===void 0?-1:q===void 0?1:F!==void 0?+F(q,x)||0:u(q)>u(x)?1:-1}};return r({target:"Array",proto:!0,forced:O},{sort:function(q){q!==void 0&&t(q);var x=n(this);if(m)return q===void 0?w(x):w(x,q);var k=[],A=o(x),B,G;for(G=0;G<A;G++)G in x&&$(k,x[G]);for(l(k,M(q)),B=o(k),G=0;G<B;)x[G]=k[G++];for(;G<A;)s(x,G++);return x}}),_d}var Qi,Td;function R2(){if(Td)return Qi;Td=1,_2();var r=ne();return Qi=r("Array","sort"),Qi}var ru,xd;function I2(){if(xd)return ru;xd=1;var r=zr(),e=R2(),t=Array.prototype;return ru=function(n){var o=n.sort;return n===t||r(t,n)&&o===t.sort?e:o},ru}var eu,Pd;function q2(){if(Pd)return eu;Pd=1;var r=I2();return eu=r,eu}var tu,$d;function w2(){return $d||($d=1,tu=q2()),tu}var E2=w2();const Kt=gr(E2);var Ad={},Md={},nu={exports:{}},au,Cd;function O2(){if(Cd)return au;Cd=1;var r=pr();return au=r(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),au}var ou,Fd;function T2(){if(Fd)return ou;Fd=1;var r=pr(),e=kr(),t=de(),n=O2(),o=Object.isExtensible,s=r(function(){});return ou=s||n?function(v){return!e(v)||n&&t(v)==="ArrayBuffer"?!1:o?o(v):!0}:o,ou}var iu,kd;function x2(){if(kd)return iu;kd=1;var r=pr();return iu=!r(function(){return Object.isExtensible(Object.preventExtensions({}))}),iu}var Dd;function Gp(){if(Dd)return nu.exports;Dd=1;var r=ar(),e=_r(),t=Rt(),n=kr(),o=Wr(),s=Jr().f,u=Rs(),v=Rp(),l=T2(),f=Yt(),h=x2(),y=!1,d=f("meta"),p=0,S=function(m){s(m,d,{value:{objectID:"O"+p++,weakData:{}}})},w=function(m,O){if(!n(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!o(m,d)){if(!l(m))return"F";if(!O)return"E";S(m)}return m[d].objectID},$=function(m,O){if(!o(m,d)){if(!l(m))return!0;if(!O)return!1;S(m)}return m[d].weakData},C=function(m){return h&&y&&l(m)&&!o(m,d)&&S(m),m},b=function(){E.enable=function(){},y=!0;var m=u.f,O=e([].splice),M={};M[d]=1,m(M).length&&(u.f=function(F){for(var q=m(F),x=0,k=q.length;x<k;x++)if(q[x]===d){O(q,x,1);break}return q},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:v.f}))},E=nu.exports={enable:b,fastKey:w,getWeakData:$,onFreeze:C};return t[d]=!0,nu.exports}var uu,jd;function Kp(){if(jd)return uu;jd=1;var r=mt(),e=Br(),t=ie(),n=ze(),o=Cp(),s=ue(),u=zr(),v=Fp(),l=an(),f=on(),h=TypeError,y=function(p,S){this.stopped=p,this.result=S},d=y.prototype;return uu=function(p,S,w){var $=w&&w.that,C=!!(w&&w.AS_ENTRIES),b=!!(w&&w.IS_RECORD),E=!!(w&&w.IS_ITERATOR),m=!!(w&&w.INTERRUPTED),O=r(S,$),M,F,q,x,k,A,B,G=function(Q){return M&&f(M,"normal"),new y(!0,Q)},W=function(Q){return C?(t(Q),m?O(Q[0],Q[1],G):O(Q[0],Q[1])):m?O(Q,G):O(Q)};if(b)M=p.iterator;else if(E)M=p;else{if(F=l(p),!F)throw new h(n(p)+" is not iterable");if(o(F)){for(q=0,x=s(p);x>q;q++)if(k=W(p[q]),k&&u(d,k))return k;return new y(!1)}M=v(p,F)}for(A=b?p.next:M.next;!(B=e(A,M)).done;){try{k=W(B.value)}catch(Q){f(M,"throw",Q)}if(typeof k=="object"&&k&&u(d,k))return k}return new y(!1)},uu}var su,Ld;function zp(){if(Ld)return su;Ld=1;var r=zr(),e=TypeError;return su=function(t,n){if(r(n,t))return t;throw new e("Incorrect invocation")},su}var cu,Nd;function P2(){if(Nd)return cu;Nd=1;var r=ar(),e=Cr(),t=Gp(),n=pr(),o=He(),s=Kp(),u=zp(),v=xr(),l=kr(),f=pt(),h=Re(),y=Jr().f,d=wt().forEach,p=Fr(),S=qt(),w=S.set,$=S.getterFor;return cu=function(C,b,E){var m=C.indexOf("Map")!==-1,O=C.indexOf("Weak")!==-1,M=m?"set":"add",F=e[C],q=F&&F.prototype,x={},k;if(!p||!v(F)||!(O||q.forEach&&!n(function(){new F().entries().next()})))k=E.getConstructor(b,C,m,M),t.enable();else{k=b(function(G,W){w(u(G,A),{type:C,collection:new F}),f(W)||s(W,G[M],{that:G,AS_ENTRIES:m})});var A=k.prototype,B=$(C);d(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(G){var W=G==="add"||G==="set";G in q&&!(O&&G==="clear")&&o(A,G,function(Q,hr){var or=B(this).collection;if(!W&&O&&!l(Q))return G==="get"?void 0:!1;var wr=or[G](Q===0?0:Q,hr);return W?this:wr})}),O||y(A,"size",{configurable:!0,get:function(){return B(this).collection.size}})}return h(k,C,!1,!0),x[C]=k,r({global:!0,forced:!0},x),O||E.setStrong(k,C,m),k},cu}var fu,Bd;function $2(){if(Bd)return fu;Bd=1;var r=It();return fu=function(e,t,n){for(var o in t)n&&n.unsafe&&e[o]?e[o]=t[o]:r(e,o,t[o],n);return e},fu}var lu,Gd;function A2(){if(Gd)return lu;Gd=1;var r=re(),e=qs(),t=Rr(),n=Fr(),o=t("species");return lu=function(s){var u=r(s);n&&u&&!u[o]&&e(u,o,{configurable:!0,get:function(){return this}})},lu}var vu,Kd;function M2(){if(Kd)return vu;Kd=1;var r=en(),e=qs(),t=$2(),n=mt(),o=zp(),s=pt(),u=Kp(),v=ws(),l=Es(),f=A2(),h=Fr(),y=Gp().fastKey,d=qt(),p=d.set,S=d.getterFor;return vu={getConstructor:function(w,$,C,b){var E=w(function(q,x){o(q,m),p(q,{type:$,index:r(null),first:null,last:null,size:0}),h||(q.size=0),s(x)||u(x,q[b],{that:q,AS_ENTRIES:C})}),m=E.prototype,O=S($),M=function(q,x,k){var A=O(q),B=F(q,x),G,W;return B?B.value=k:(A.last=B={index:W=y(x,!0),key:x,value:k,previous:G=A.last,next:null,removed:!1},A.first||(A.first=B),G&&(G.next=B),h?A.size++:q.size++,W!=="F"&&(A.index[W]=B)),q},F=function(q,x){var k=O(q),A=y(x),B;if(A!=="F")return k.index[A];for(B=k.first;B;B=B.next)if(B.key===x)return B};return t(m,{clear:function(){for(var x=this,k=O(x),A=k.first;A;)A.removed=!0,A.previous&&(A.previous=A.previous.next=null),A=A.next;k.first=k.last=null,k.index=r(null),h?k.size=0:x.size=0},delete:function(q){var x=this,k=O(x),A=F(x,q);if(A){var B=A.next,G=A.previous;delete k.index[A.index],A.removed=!0,G&&(G.next=B),B&&(B.previous=G),k.first===A&&(k.first=B),k.last===A&&(k.last=G),h?k.size--:x.size--}return!!A},forEach:function(x){for(var k=O(this),A=n(x,arguments.length>1?arguments[1]:void 0),B;B=B?B.next:k.first;)for(A(B.value,B.key,this);B&&B.removed;)B=B.previous},has:function(x){return!!F(this,x)}}),t(m,C?{get:function(x){var k=F(this,x);return k&&k.value},set:function(x,k){return M(this,x===0?0:x,k)}}:{add:function(x){return M(this,x=x===0?0:x,x)}}),h&&e(m,"size",{configurable:!0,get:function(){return O(this).size}}),E},setStrong:function(w,$,C){var b=$+" Iterator",E=S($),m=S(b);v(w,$,function(O,M){p(this,{type:b,target:O,state:E(O),kind:M,last:null})},function(){for(var O=m(this),M=O.kind,F=O.last;F&&F.removed;)F=F.previous;return!O.target||!(O.last=F=F?F.next:O.state.first)?(O.target=null,l(void 0,!0)):l(M==="keys"?F.key:M==="values"?F.value:[F.key,F.value],!1)},C?"entries":"values",!C,!0),f($)}},vu}var zd;function C2(){if(zd)return Md;zd=1;var r=P2(),e=M2();return r("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),Md}var Wd;function F2(){return Wd||(Wd=1,C2()),Ad}var Ud={},du,Hd;function Ie(){if(Hd)return du;Hd=1;var r=ze(),e=TypeError;return du=function(t){if(typeof t=="object"&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new e(r(t)+" is not a set")},du}var hu,Vd;function k2(){return Vd||(Vd=1,hu=function(r,e){return e===1?function(t,n){return t[r](n)}:function(t,n,o){return t[r](n,o)}}),hu}var pu,Yd;function qe(){if(Yd)return pu;Yd=1;var r=re(),e=k2(),t=r("Set"),n=t.prototype;return pu={Set:t,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:n},pu}var yu,Jd;function we(){if(Jd)return yu;Jd=1;var r=Br();return yu=function(e,t,n){for(var o=n?e:e.iterator,s=e.next,u,v;!(u=r(s,o)).done;)if(v=t(u.value),v!==void 0)return v},yu}var bu,Xd;function Et(){if(Xd)return bu;Xd=1;var r=we();return bu=function(e,t,n){return n?r(e.keys(),t,!0):e.forEach(t)},bu}var gu,Zd;function Fs(){if(Zd)return gu;Zd=1;var r=qe(),e=Et(),t=r.Set,n=r.add;return gu=function(o){var s=new t;return e(o,function(u){n(s,u)}),s},gu}var mu,Qd;function Ot(){return Qd||(Qd=1,mu=function(r){return r.size}),mu}var Su,rh;function D2(){return rh||(rh=1,Su=function(r){return{iterator:r,next:r.next,done:!1}}),Su}var _u,eh;function Ee(){if(eh)return _u;eh=1;var r=We(),e=ie(),t=Br(),n=St(),o=D2(),s="Invalid size",u=RangeError,v=TypeError,l=Math.max,f=function(h,y){this.set=h,this.size=l(y,0),this.has=r(h.has),this.keys=r(h.keys)};return f.prototype={getIterator:function(){return o(e(t(this.keys,this.set)))},includes:function(h){return t(this.has,this.set,h)}},_u=function(h){e(h);var y=+h.size;if(y!==y)throw new v(s);var d=n(y);if(d<0)throw new u(s);return new f(h,d)},_u}var Ru,th;function j2(){if(th)return Ru;th=1;var r=Ie(),e=qe(),t=Fs(),n=Ot(),o=Ee(),s=Et(),u=we(),v=e.has,l=e.remove;return Ru=function(h){var y=r(this),d=o(h),p=t(y);return n(y)<=d.size?s(y,function(S){d.includes(S)&&l(p,S)}):u(d.getIterator(),function(S){v(p,S)&&l(p,S)}),p},Ru}var Iu,nh;function Oe(){return nh||(nh=1,Iu=function(){return!1}),Iu}var ah;function L2(){if(ah)return Ud;ah=1;var r=ar(),e=j2(),t=pr(),n=Oe(),o=!n("difference",function(u){return u.size===0}),s=o||t(function(){var u={size:1,has:function(){return!0},keys:function(){var l=0;return{next:function(){var f=l++>1;return v.has(1)&&v.clear(),{done:f,value:2}}}}},v=new Set([1,2,3,4]);return v.difference(u).size!==3});return r({target:"Set",proto:!0,real:!0,forced:s},{difference:e}),Ud}var oh={},qu,ih;function N2(){if(ih)return qu;ih=1;var r=Ie(),e=qe(),t=Ot(),n=Ee(),o=Et(),s=we(),u=e.Set,v=e.add,l=e.has;return qu=function(h){var y=r(this),d=n(h),p=new u;return t(y)>d.size?s(d.getIterator(),function(S){l(y,S)&&v(p,S)}):o(y,function(S){d.includes(S)&&v(p,S)}),p},qu}var uh;function B2(){if(uh)return oh;uh=1;var r=ar(),e=pr(),t=N2(),n=Oe(),o=!n("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return r({target:"Set",proto:!0,real:!0,forced:o},{intersection:t}),oh}var sh={},wu,ch;function G2(){if(ch)return wu;ch=1;var r=Ie(),e=qe().has,t=Ot(),n=Ee(),o=Et(),s=we(),u=on();return wu=function(l){var f=r(this),h=n(l);if(t(f)<=h.size)return o(f,function(d){if(h.includes(d))return!1},!0)!==!1;var y=h.getIterator();return s(y,function(d){if(e(f,d))return u(y,"normal",!1)})!==!1},wu}var fh;function K2(){if(fh)return sh;fh=1;var r=ar(),e=G2(),t=Oe(),n=!t("isDisjointFrom",function(o){return!o});return r({target:"Set",proto:!0,real:!0,forced:n},{isDisjointFrom:e}),sh}var lh={},Eu,vh;function z2(){if(vh)return Eu;vh=1;var r=Ie(),e=Ot(),t=Et(),n=Ee();return Eu=function(s){var u=r(this),v=n(s);return e(u)>v.size?!1:t(u,function(l){if(!v.includes(l))return!1},!0)!==!1},Eu}var dh;function W2(){if(dh)return lh;dh=1;var r=ar(),e=z2(),t=Oe(),n=!t("isSubsetOf",function(o){return o});return r({target:"Set",proto:!0,real:!0,forced:n},{isSubsetOf:e}),lh}var hh={},Ou,ph;function U2(){if(ph)return Ou;ph=1;var r=Ie(),e=qe().has,t=Ot(),n=Ee(),o=we(),s=on();return Ou=function(v){var l=r(this),f=n(v);if(t(l)<f.size)return!1;var h=f.getIterator();return o(h,function(y){if(!e(l,y))return s(h,"normal",!1)})!==!1},Ou}var yh;function H2(){if(yh)return hh;yh=1;var r=ar(),e=U2(),t=Oe(),n=!t("isSupersetOf",function(o){return!o});return r({target:"Set",proto:!0,real:!0,forced:n},{isSupersetOf:e}),hh}var bh={},Tu,gh;function V2(){if(gh)return Tu;gh=1;var r=Ie(),e=qe(),t=Fs(),n=Ee(),o=we(),s=e.add,u=e.has,v=e.remove;return Tu=function(f){var h=r(this),y=n(f).getIterator(),d=t(h);return o(y,function(p){u(h,p)?v(d,p):s(d,p)}),d},Tu}var xu,mh;function Wp(){return mh||(mh=1,xu=function(r){try{var e=new Set,t={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},n=e[r](t);return n.size===1&&n.values().next().value===4}catch{return!1}}),xu}var Sh;function Y2(){if(Sh)return bh;Sh=1;var r=ar(),e=V2(),t=Wp(),n=Oe(),o=!n("symmetricDifference")||!t("symmetricDifference");return r({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:e}),bh}var _h={},Pu,Rh;function J2(){if(Rh)return Pu;Rh=1;var r=Ie(),e=qe().add,t=Fs(),n=Ee(),o=we();return Pu=function(u){var v=r(this),l=n(u).getIterator(),f=t(v);return o(l,function(h){e(f,h)}),f},Pu}var Ih;function X2(){if(Ih)return _h;Ih=1;var r=ar(),e=J2(),t=Wp(),n=Oe(),o=!n("union")||!t("union");return r({target:"Set",proto:!0,real:!0,forced:o},{union:e}),_h}var $u,qh;function Z2(){if(qh)return $u;qh=1,Os(),F2(),L2(),B2(),K2(),W2(),H2(),Y2(),X2(),xs();var r=Qr();return $u=r.Set,$u}var Au,wh;function Q2(){if(wh)return Au;wh=1;var r=Z2();return Ts(),Au=r,Au}var Mu,Eh;function rS(){return Eh||(Eh=1,Mu=Q2()),Mu}var eS=rS();const tS=gr(eS);var Oh={},Th;function nS(){if(Th)return Oh;Th=1;var r=ar(),e=ee(),t=Qt(),n=pr(),o=n(function(){t(1)});return r({target:"Object",stat:!0,forced:o},{keys:function(u){return t(e(u))}}),Oh}var Cu,xh;function aS(){if(xh)return Cu;xh=1,nS();var r=Qr();return Cu=r.Object.keys,Cu}var Fu,Ph;function oS(){if(Ph)return Fu;Ph=1;var r=aS();return Fu=r,Fu}var ku,$h;function iS(){return $h||($h=1,ku=oS()),ku}var uS=iS();const sS=gr(uS);var Ah={},Du,Mh;function cS(){if(Mh)return Du;Mh=1;var r=Fr(),e=_r(),t=Br(),n=pr(),o=Qt(),s=Is(),u=ds(),v=ee(),l=hs(),f=Object.assign,h=Object.defineProperty,y=e([].concat);return Du=!f||n(function(){if(r&&f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var d={},p={},S=Symbol("assign detection"),w="abcdefghijklmnopqrst";return d[S]=7,w.split("").forEach(function($){p[$]=$}),f({},d)[S]!==7||o(f({},p)).join("")!==w})?function(p,S){for(var w=v(p),$=arguments.length,C=1,b=s.f,E=u.f;$>C;)for(var m=l(arguments[C++]),O=b?y(o(m),b(m)):o(m),M=O.length,F=0,q;M>F;)q=O[F++],(!r||t(E,m,q))&&(w[q]=m[q]);return w}:f,Du}var Ch;function fS(){if(Ch)return Ah;Ch=1;var r=ar(),e=cS();return r({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),Ah}var ju,Fh;function lS(){if(Fh)return ju;Fh=1,fS();var r=Qr();return ju=r.Object.assign,ju}var Lu,kh;function vS(){if(kh)return Lu;kh=1;var r=lS();return Lu=r,Lu}var Nu,Dh;function dS(){return Dh||(Dh=1,Nu=vS()),Nu}var hS=dS();const pS=gr(hS);var jh={},Bu,Lh;function yS(){if(Lh)return Bu;Lh=1;var r=ee(),e=Zt(),t=ue();return Bu=function(o){for(var s=r(this),u=t(s),v=arguments.length,l=e(v>1?arguments[1]:void 0,u),f=v>2?arguments[2]:void 0,h=f===void 0?u:e(f,u);h>l;)s[l++]=o;return s},Bu}var Nh;function bS(){if(Nh)return jh;Nh=1;var r=ar(),e=yS(),t=nn();return r({target:"Array",proto:!0},{fill:e}),t("fill"),jh}var Gu,Bh;function gS(){if(Bh)return Gu;Bh=1,bS();var r=ne();return Gu=r("Array","fill"),Gu}var Ku,Gh;function mS(){if(Gh)return Ku;Gh=1;var r=zr(),e=gS(),t=Array.prototype;return Ku=function(n){var o=n.fill;return n===t||r(t,n)&&o===t.fill?e:o},Ku}var zu,Kh;function SS(){if(Kh)return zu;Kh=1;var r=mS();return zu=r,zu}var Wu,zh;function _S(){return zh||(zh=1,Wu=SS()),Wu}var RS=_S();const ks=gr(RS);function IS(r){if(yp(r))return r}function qS(r,e){var t=r==null?null:typeof Mp<"u"&&Ps(r)||r["@@iterator"];if(t!=null){var n=[],o=!0,s=!1,u,v;try{for(t=t.call(r);!(o=(u=t.next()).done)&&(n.push(u.value),!(e&&n.length===e));o=!0);}catch(l){s=!0,v=l}finally{try{!o&&t.return!=null&&t.return()}finally{if(s)throw v}}return n}}function wS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
86
|
+
*/var k3=ma.exports,a0;function N3(){return a0||(a0=1,(function(e,r){(function(t,n){e.exports=n()})(k3,(function(){for(var t=function(s,d,m){return d===void 0&&(d=0),m===void 0&&(m=1),s<d?d:s>m?m:s},n=function(s){s._clipped=!1,s._unclipped=s.slice(0);for(var d=0;d<=3;d++)d<3?((s[d]<0||s[d]>255)&&(s._clipped=!0),s[d]=t(s[d],0,255)):d===3&&(s[d]=t(s[d],0,1));return s},a={},o=0,i=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];o<i.length;o+=1){var c=i[o];a["[object "+c+"]"]=c.toLowerCase()}var l=function(s){return a[Object.prototype.toString.call(s)]||"object"},u=function(s,d){return d===void 0&&(d=null),s.length>=3?Array.prototype.slice.call(s):l(s[0])=="object"&&d?d.split("").filter(function(m){return s[0][m]!==void 0}).map(function(m){return s[0][m]}):s[0]},f=function(s){if(s.length<2)return null;var d=s.length-1;return l(s[d])=="string"?s[d].toLowerCase():null},g=Math.PI,v={clip_rgb:n,limit:t,type:l,unpack:u,last:f,TWOPI:g*2,PITHIRD:g/3,DEG2RAD:g/180,RAD2DEG:180/g},h={format:{},autodetect:[]},y=v.last,_=v.clip_rgb,T=v.type,A=function(){for(var d=[],m=arguments.length;m--;)d[m]=arguments[m];var w=this;if(T(d[0])==="object"&&d[0].constructor&&d[0].constructor===this.constructor)return d[0];var q=y(d),k=!1;if(!q){k=!0,h.sorted||(h.autodetect=h.autodetect.sort(function(te,re){return re.p-te.p}),h.sorted=!0);for(var C=0,N=h.autodetect;C<N.length;C+=1){var D=N[C];if(q=D.test.apply(D,d),q)break}}if(h.format[q]){var Y=h.format[q].apply(null,k?d:d.slice(0,-1));w._rgb=_(Y)}else throw new Error("unknown format: "+d);w._rgb.length===3&&w._rgb.push(1)};A.prototype.toString=function(){return T(this.hex)=="function"?this.hex():"["+this._rgb.join(",")+"]"};var b=A,$=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply($.Color,[null].concat(s)))};$.Color=b,$.version="2.1.2";var S=$,E=v.unpack,M=Math.max,j=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=E(s,"rgb"),w=m[0],q=m[1],k=m[2];w=w/255,q=q/255,k=k/255;var C=1-M(w,M(q,k)),N=C<1?1/(1-C):0,D=(1-w-C)*N,Y=(1-q-C)*N,te=(1-k-C)*N;return[D,Y,te,C]},x=j,R=v.unpack,P=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];s=R(s,"cmyk");var m=s[0],w=s[1],q=s[2],k=s[3],C=s.length>4?s[4]:1;return k===1?[0,0,0,C]:[m>=1?0:255*(1-m)*(1-k),w>=1?0:255*(1-w)*(1-k),q>=1?0:255*(1-q)*(1-k),C]},I=P,V=v.unpack,W=v.type;b.prototype.cmyk=function(){return x(this._rgb)},S.cmyk=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["cmyk"])))},h.format.cmyk=I,h.autodetect.push({p:2,test:function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];if(s=V(s,"cmyk"),W(s)==="array"&&s.length===4)return"cmyk"}});var z=v.unpack,B=v.last,G=function(s){return Math.round(s*100)/100},U=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=z(s,"hsla"),w=B(s)||"lsa";return m[0]=G(m[0]||0),m[1]=G(m[1]*100)+"%",m[2]=G(m[2]*100)+"%",w==="hsla"||m.length>3&&m[3]<1?(m[3]=m.length>3?m[3]:1,w="hsla"):m.length=3,w+"("+m.join(",")+")"},X=U,ve=v.unpack,F=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];s=ve(s,"rgba");var m=s[0],w=s[1],q=s[2];m/=255,w/=255,q/=255;var k=Math.min(m,w,q),C=Math.max(m,w,q),N=(C+k)/2,D,Y;return C===k?(D=0,Y=Number.NaN):D=N<.5?(C-k)/(C+k):(C-k)/(2-C-k),m==C?Y=(w-q)/(C-k):w==C?Y=2+(q-m)/(C-k):q==C&&(Y=4+(m-w)/(C-k)),Y*=60,Y<0&&(Y+=360),s.length>3&&s[3]!==void 0?[Y,D,N,s[3]]:[Y,D,N]},H=F,ae=v.unpack,le=v.last,oe=Math.round,J=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=ae(s,"rgba"),w=le(s)||"rgb";return w.substr(0,3)=="hsl"?X(H(m),w):(m[0]=oe(m[0]),m[1]=oe(m[1]),m[2]=oe(m[2]),(w==="rgba"||m.length>3&&m[3]<1)&&(m[3]=m.length>3?m[3]:1,w="rgba"),w+"("+m.slice(0,w==="rgb"?3:4).join(",")+")")},K=J,ue=v.unpack,ie=Math.round,ce=function(){for(var s,d=[],m=arguments.length;m--;)d[m]=arguments[m];d=ue(d,"hsl");var w=d[0],q=d[1],k=d[2],C,N,D;if(q===0)C=N=D=k*255;else{var Y=[0,0,0],te=[0,0,0],re=k<.5?k*(1+q):k+q-k*q,pe=2*k-re,de=w/360;Y[0]=de+1/3,Y[1]=de,Y[2]=de-1/3;for(var me=0;me<3;me++)Y[me]<0&&(Y[me]+=1),Y[me]>1&&(Y[me]-=1),6*Y[me]<1?te[me]=pe+(re-pe)*6*Y[me]:2*Y[me]<1?te[me]=re:3*Y[me]<2?te[me]=pe+(re-pe)*(2/3-Y[me])*6:te[me]=pe;s=[ie(te[0]*255),ie(te[1]*255),ie(te[2]*255)],C=s[0],N=s[1],D=s[2]}return d.length>3?[C,N,D,d[3]]:[C,N,D,1]},Q=ce,se=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Z=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,Pe=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Er=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Rr=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,Ir=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,fr=Math.round,Cr=function(s){s=s.toLowerCase().trim();var d;if(h.format.named)try{return h.format.named(s)}catch{}if(d=s.match(se)){for(var m=d.slice(1,4),w=0;w<3;w++)m[w]=+m[w];return m[3]=1,m}if(d=s.match(Z)){for(var q=d.slice(1,5),k=0;k<4;k++)q[k]=+q[k];return q}if(d=s.match(Pe)){for(var C=d.slice(1,4),N=0;N<3;N++)C[N]=fr(C[N]*2.55);return C[3]=1,C}if(d=s.match(Er)){for(var D=d.slice(1,5),Y=0;Y<3;Y++)D[Y]=fr(D[Y]*2.55);return D[3]=+D[3],D}if(d=s.match(Rr)){var te=d.slice(1,4);te[1]*=.01,te[2]*=.01;var re=Q(te);return re[3]=1,re}if(d=s.match(Ir)){var pe=d.slice(1,4);pe[1]*=.01,pe[2]*=.01;var de=Q(pe);return de[3]=+d[4],de}};Cr.test=function(s){return se.test(s)||Z.test(s)||Pe.test(s)||Er.test(s)||Rr.test(s)||Ir.test(s)};var zr=Cr,vt=v.type;b.prototype.css=function(s){return K(this._rgb,s)},S.css=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["css"])))},h.format.css=zr,h.autodetect.push({p:5,test:function(s){for(var d=[],m=arguments.length-1;m-- >0;)d[m]=arguments[m+1];if(!d.length&&vt(s)==="string"&&zr.test(s))return"css"}});var qt=v.unpack;h.format.gl=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=qt(s,"rgba");return m[0]*=255,m[1]*=255,m[2]*=255,m},S.gl=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["gl"])))},b.prototype.gl=function(){var s=this._rgb;return[s[0]/255,s[1]/255,s[2]/255,s[3]]};var Lr=v.unpack,pt=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=Lr(s,"rgb"),w=m[0],q=m[1],k=m[2],C=Math.min(w,q,k),N=Math.max(w,q,k),D=N-C,Y=D*100/255,te=C/(255-D)*100,re;return D===0?re=Number.NaN:(w===N&&(re=(q-k)/D),q===N&&(re=2+(k-w)/D),k===N&&(re=4+(w-q)/D),re*=60,re<0&&(re+=360)),[re,Y,te]},Jr=pt,Zr=v.unpack,Mt=Math.floor,Xr=function(){for(var s,d,m,w,q,k,C=[],N=arguments.length;N--;)C[N]=arguments[N];C=Zr(C,"hcg");var D=C[0],Y=C[1],te=C[2],re,pe,de;te=te*255;var me=Y*255;if(Y===0)re=pe=de=te;else{D===360&&(D=0),D>360&&(D-=360),D<0&&(D+=360),D/=60;var Te=Mt(D),xe=D-Te,$e=te*(1-Y),Be=$e+me*(1-xe),ar=$e+me*xe,or=$e+me;switch(Te){case 0:s=[or,ar,$e],re=s[0],pe=s[1],de=s[2];break;case 1:d=[Be,or,$e],re=d[0],pe=d[1],de=d[2];break;case 2:m=[$e,or,ar],re=m[0],pe=m[1],de=m[2];break;case 3:w=[$e,Be,or],re=w[0],pe=w[1],de=w[2];break;case 4:q=[ar,$e,or],re=q[0],pe=q[1],de=q[2];break;case 5:k=[or,$e,Be],re=k[0],pe=k[1],de=k[2];break}}return[re,pe,de,C.length>3?C[3]:1]},kt=Xr,ht=v.unpack,gt=v.type;b.prototype.hcg=function(){return Jr(this._rgb)},S.hcg=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["hcg"])))},h.format.hcg=kt,h.autodetect.push({p:1,test:function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];if(s=ht(s,"hcg"),gt(s)==="array"&&s.length===3)return"hcg"}});var De=v.unpack,be=v.last,Se=Math.round,Re=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=De(s,"rgba"),w=m[0],q=m[1],k=m[2],C=m[3],N=be(s)||"auto";C===void 0&&(C=1),N==="auto"&&(N=C<1?"rgba":"rgb"),w=Se(w),q=Se(q),k=Se(k);var D=w<<16|q<<8|k,Y="000000"+D.toString(16);Y=Y.substr(Y.length-6);var te="0"+Se(C*255).toString(16);switch(te=te.substr(te.length-2),N.toLowerCase()){case"rgba":return"#"+Y+te;case"argb":return"#"+te+Y;default:return"#"+Y}},qe=Re,tr=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Nt=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Qr=function(s){if(s.match(tr)){(s.length===4||s.length===7)&&(s=s.substr(1)),s.length===3&&(s=s.split(""),s=s[0]+s[0]+s[1]+s[1]+s[2]+s[2]);var d=parseInt(s,16),m=d>>16,w=d>>8&255,q=d&255;return[m,w,q,1]}if(s.match(Nt)){(s.length===5||s.length===9)&&(s=s.substr(1)),s.length===4&&(s=s.split(""),s=s[0]+s[0]+s[1]+s[1]+s[2]+s[2]+s[3]+s[3]);var k=parseInt(s,16),C=k>>24&255,N=k>>16&255,D=k>>8&255,Y=Math.round((k&255)/255*100)/100;return[C,N,D,Y]}throw new Error("unknown hex color: "+s)},dn=Qr,et=v.type;b.prototype.hex=function(s){return qe(this._rgb,s)},S.hex=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["hex"])))},h.format.hex=dn,h.autodetect.push({p:4,test:function(s){for(var d=[],m=arguments.length-1;m-- >0;)d[m]=arguments[m+1];if(!d.length&&et(s)==="string"&&[3,4,5,6,7,8,9].indexOf(s.length)>=0)return"hex"}});var vn=v.unpack,Dt=v.TWOPI,Qn=Math.min,Ha=Math.sqrt,ea=Math.acos,Va=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=vn(s,"rgb"),w=m[0],q=m[1],k=m[2];w/=255,q/=255,k/=255;var C,N=Qn(w,q,k),D=(w+q+k)/3,Y=D>0?1-N/D:0;return Y===0?C=NaN:(C=(w-q+(w-k))/2,C/=Ha((w-q)*(w-q)+(w-k)*(q-k)),C=ea(C),k>q&&(C=Dt-C),C/=Dt),[C*360,Y,D]},ra=Va,ta=v.unpack,pn=v.limit,rt=v.TWOPI,zt=v.PITHIRD,Fr=Math.cos,Ga=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];s=ta(s,"hsi");var m=s[0],w=s[1],q=s[2],k,C,N;return isNaN(m)&&(m=0),isNaN(w)&&(w=0),m>360&&(m-=360),m<0&&(m+=360),m/=360,m<1/3?(N=(1-w)/3,k=(1+w*Fr(rt*m)/Fr(zt-rt*m))/3,C=1-(N+k)):m<2/3?(m-=1/3,k=(1-w)/3,C=(1+w*Fr(rt*m)/Fr(zt-rt*m))/3,N=1-(k+C)):(m-=2/3,C=(1-w)/3,N=(1+w*Fr(rt*m)/Fr(zt-rt*m))/3,k=1-(C+N)),k=pn(q*k*3),C=pn(q*C*3),N=pn(q*N*3),[k*255,C*255,N*255,s.length>3?s[3]:1]},Wa=Ga,Ua=v.unpack,Ka=v.type;b.prototype.hsi=function(){return ra(this._rgb)},S.hsi=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["hsi"])))},h.format.hsi=Wa,h.autodetect.push({p:2,test:function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];if(s=Ua(s,"hsi"),Ka(s)==="array"&&s.length===3)return"hsi"}});var O=v.unpack,ee=v.type;b.prototype.hsl=function(){return H(this._rgb)},S.hsl=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["hsl"])))},h.format.hsl=Q,h.autodetect.push({p:2,test:function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];if(s=O(s,"hsl"),ee(s)==="array"&&s.length===3)return"hsl"}});var fe=v.unpack,ge=Math.min,Ae=Math.max,ze=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];s=fe(s,"rgb");var m=s[0],w=s[1],q=s[2],k=ge(m,w,q),C=Ae(m,w,q),N=C-k,D,Y,te;return te=C/255,C===0?(D=Number.NaN,Y=0):(Y=N/C,m===C&&(D=(w-q)/N),w===C&&(D=2+(q-m)/N),q===C&&(D=4+(m-w)/N),D*=60,D<0&&(D+=360)),[D,Y,te]},Oe=ze,_e=v.unpack,nr=Math.floor,Ue=function(){for(var s,d,m,w,q,k,C=[],N=arguments.length;N--;)C[N]=arguments[N];C=_e(C,"hsv");var D=C[0],Y=C[1],te=C[2],re,pe,de;if(te*=255,Y===0)re=pe=de=te;else{D===360&&(D=0),D>360&&(D-=360),D<0&&(D+=360),D/=60;var me=nr(D),Te=D-me,xe=te*(1-Y),$e=te*(1-Y*Te),Be=te*(1-Y*(1-Te));switch(me){case 0:s=[te,Be,xe],re=s[0],pe=s[1],de=s[2];break;case 1:d=[$e,te,xe],re=d[0],pe=d[1],de=d[2];break;case 2:m=[xe,te,Be],re=m[0],pe=m[1],de=m[2];break;case 3:w=[xe,$e,te],re=w[0],pe=w[1],de=w[2];break;case 4:q=[Be,xe,te],re=q[0],pe=q[1],de=q[2];break;case 5:k=[te,xe,$e],re=k[0],pe=k[1],de=k[2];break}}return[re,pe,de,C.length>3?C[3]:1]},Je=Ue,pr=v.unpack,tt=v.type;b.prototype.hsv=function(){return Oe(this._rgb)},S.hsv=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["hsv"])))},h.format.hsv=Je,h.autodetect.push({p:2,test:function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];if(s=pr(s,"hsv"),tt(s)==="array"&&s.length===3)return"hsv"}});var Ze={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},sr=v.unpack,Lt=Math.pow,Ya=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=sr(s,"rgb"),w=m[0],q=m[1],k=m[2],C=A1(w,q,k),N=C[0],D=C[1],Y=C[2],te=116*D-16;return[te<0?0:te,500*(N-D),200*(D-Y)]},hn=function(s){return(s/=255)<=.04045?s/12.92:Lt((s+.055)/1.055,2.4)},Ja=function(s){return s>Ze.t3?Lt(s,1/3):s/Ze.t2+Ze.t0},A1=function(s,d,m){s=hn(s),d=hn(d),m=hn(m);var w=Ja((.4124564*s+.3575761*d+.1804375*m)/Ze.Xn),q=Ja((.2126729*s+.7151522*d+.072175*m)/Ze.Yn),k=Ja((.0193339*s+.119192*d+.9503041*m)/Ze.Zn);return[w,q,k]},Hc=Ya,$1=v.unpack,q1=Math.pow,M1=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];s=$1(s,"lab");var m=s[0],w=s[1],q=s[2],k,C,N,D,Y,te;return C=(m+16)/116,k=isNaN(w)?C:C+w/500,N=isNaN(q)?C:C-q/200,C=Ze.Yn*Xa(C),k=Ze.Xn*Xa(k),N=Ze.Zn*Xa(N),D=Za(3.2404542*k-1.5371385*C-.4985314*N),Y=Za(-.969266*k+1.8760108*C+.041556*N),te=Za(.0556434*k-.2040259*C+1.0572252*N),[D,Y,te,s.length>3?s[3]:1]},Za=function(s){return 255*(s<=.00304?12.92*s:1.055*q1(s,1/2.4)-.055)},Xa=function(s){return s>Ze.t1?s*s*s:Ze.t2*(s-Ze.t0)},Vc=M1,k1=v.unpack,N1=v.type;b.prototype.lab=function(){return Hc(this._rgb)},S.lab=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["lab"])))},h.format.lab=Vc,h.autodetect.push({p:2,test:function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];if(s=k1(s,"lab"),N1(s)==="array"&&s.length===3)return"lab"}});var D1=v.unpack,z1=v.RAD2DEG,L1=Math.sqrt,F1=Math.atan2,B1=Math.round,H1=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=D1(s,"lab"),w=m[0],q=m[1],k=m[2],C=L1(q*q+k*k),N=(F1(k,q)*z1+360)%360;return B1(C*1e4)===0&&(N=Number.NaN),[w,C,N]},V1=H1,G1=v.unpack,W1=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=G1(s,"rgb"),w=m[0],q=m[1],k=m[2],C=Hc(w,q,k),N=C[0],D=C[1],Y=C[2];return V1(N,D,Y)},Gc=W1,U1=v.unpack,K1=v.DEG2RAD,Y1=Math.sin,J1=Math.cos,Z1=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=U1(s,"lch"),w=m[0],q=m[1],k=m[2];return isNaN(k)&&(k=0),k=k*K1,[w,J1(k)*q,Y1(k)*q]},X1=Z1,Q1=v.unpack,eb=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];s=Q1(s,"lch");var m=s[0],w=s[1],q=s[2],k=X1(m,w,q),C=k[0],N=k[1],D=k[2],Y=Vc(C,N,D),te=Y[0],re=Y[1],pe=Y[2];return[te,re,pe,s.length>3?s[3]:1]},Wc=eb,rb=v.unpack,tb=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=rb(s,"hcl").reverse();return Wc.apply(void 0,m)},nb=tb,ab=v.unpack,ob=v.type;b.prototype.lch=function(){return Gc(this._rgb)},b.prototype.hcl=function(){return Gc(this._rgb).reverse()},S.lch=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["lch"])))},S.hcl=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["hcl"])))},h.format.lch=Wc,h.format.hcl=nb,["lch","hcl"].forEach(function(s){return h.autodetect.push({p:2,test:function(){for(var d=[],m=arguments.length;m--;)d[m]=arguments[m];if(d=ab(d,s),ob(d)==="array"&&d.length===3)return s}})});var ib={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",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",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",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",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Ft=ib,sb=v.type;b.prototype.name=function(){for(var s=qe(this._rgb,"rgb"),d=0,m=Object.keys(Ft);d<m.length;d+=1){var w=m[d];if(Ft[w]===s)return w.toLowerCase()}return s},h.format.named=function(s){if(s=s.toLowerCase(),Ft[s])return dn(Ft[s]);throw new Error("unknown color name: "+s)},h.autodetect.push({p:5,test:function(s){for(var d=[],m=arguments.length-1;m-- >0;)d[m]=arguments[m+1];if(!d.length&&sb(s)==="string"&&Ft[s.toLowerCase()])return"named"}});var lb=v.unpack,ub=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=lb(s,"rgb"),w=m[0],q=m[1],k=m[2];return(w<<16)+(q<<8)+k},cb=ub,fb=v.type,db=function(s){if(fb(s)=="number"&&s>=0&&s<=16777215){var d=s>>16,m=s>>8&255,w=s&255;return[d,m,w,1]}throw new Error("unknown num color: "+s)},vb=db,pb=v.type;b.prototype.num=function(){return cb(this._rgb)},S.num=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["num"])))},h.format.num=vb,h.autodetect.push({p:5,test:function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];if(s.length===1&&pb(s[0])==="number"&&s[0]>=0&&s[0]<=16777215)return"num"}});var Uc=v.unpack,Kc=v.type,Yc=Math.round;b.prototype.rgb=function(s){return s===void 0&&(s=!0),s===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Yc)},b.prototype.rgba=function(s){return s===void 0&&(s=!0),this._rgb.slice(0,4).map(function(d,m){return m<3?s===!1?d:Yc(d):d})},S.rgb=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["rgb"])))},h.format.rgb=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];var m=Uc(s,"rgba");return m[3]===void 0&&(m[3]=1),m},h.autodetect.push({p:3,test:function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];if(s=Uc(s,"rgba"),Kc(s)==="array"&&(s.length===3||s.length===4&&Kc(s[3])=="number"&&s[3]>=0&&s[3]<=1))return"rgb"}});var na=Math.log,hb=function(s){var d=s/100,m,w,q;return d<66?(m=255,w=-155.25485562709179-.44596950469579133*(w=d-2)+104.49216199393888*na(w),q=d<20?0:-254.76935184120902+.8274096064007395*(q=d-10)+115.67994401066147*na(q)):(m=351.97690566805693+.114206453784165*(m=d-55)-40.25366309332127*na(m),w=325.4494125711974+.07943456536662342*(w=d-50)-28.0852963507957*na(w),q=255),[m,w,q,1]},Jc=hb,gb=v.unpack,mb=Math.round,yb=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];for(var m=gb(s,"rgb"),w=m[0],q=m[2],k=1e3,C=4e4,N=.4,D;C-k>N;){D=(C+k)*.5;var Y=Jc(D);Y[2]/Y[0]>=q/w?C=D:k=D}return mb(D)},bb=yb;b.prototype.temp=b.prototype.kelvin=b.prototype.temperature=function(){return bb(this._rgb)},S.temp=S.kelvin=S.temperature=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];return new(Function.prototype.bind.apply(b,[null].concat(s,["temp"])))},h.format.temp=h.format.kelvin=h.format.temperature=Jc;var xb=v.type;b.prototype.alpha=function(s,d){return d===void 0&&(d=!1),s!==void 0&&xb(s)==="number"?d?(this._rgb[3]=s,this):new b([this._rgb[0],this._rgb[1],this._rgb[2],s],"rgb"):this._rgb[3]},b.prototype.clipped=function(){return this._rgb._clipped||!1},b.prototype.darken=function(s){s===void 0&&(s=1);var d=this,m=d.lab();return m[0]-=Ze.Kn*s,new b(m,"lab").alpha(d.alpha(),!0)},b.prototype.brighten=function(s){return s===void 0&&(s=1),this.darken(-s)},b.prototype.darker=b.prototype.darken,b.prototype.brighter=b.prototype.brighten,b.prototype.get=function(s){var d=s.split("."),m=d[0],w=d[1],q=this[m]();if(w){var k=m.indexOf(w);if(k>-1)return q[k];throw new Error("unknown channel "+w+" in mode "+m)}else return q};var Sb=v.type,_b=Math.pow,wb=1e-7,Eb=20;b.prototype.luminance=function(s){if(s!==void 0&&Sb(s)==="number"){if(s===0)return new b([0,0,0,this._rgb[3]],"rgb");if(s===1)return new b([255,255,255,this._rgb[3]],"rgb");var d=this.luminance(),m="rgb",w=Eb,q=function(C,N){var D=C.interpolate(N,.5,m),Y=D.luminance();return Math.abs(s-Y)<wb||!w--?D:Y>s?q(C,D):q(D,N)},k=(d>s?q(new b([0,0,0]),this):q(this,new b([255,255,255]))).rgb();return new b(k.concat([this._rgb[3]]))}return Rb.apply(void 0,this._rgb.slice(0,3))};var Rb=function(s,d,m){return s=Qa(s),d=Qa(d),m=Qa(m),.2126*s+.7152*d+.0722*m},Qa=function(s){return s/=255,s<=.03928?s/12.92:_b((s+.055)/1.055,2.4)},hr={},Zc=v.type,Xc=function(s,d,m){m===void 0&&(m=.5);for(var w=[],q=arguments.length-3;q-- >0;)w[q]=arguments[q+3];var k=w[0]||"lrgb";if(!hr[k]&&!w.length&&(k=Object.keys(hr)[0]),!hr[k])throw new Error("interpolation mode "+k+" is not defined");return Zc(s)!=="object"&&(s=new b(s)),Zc(d)!=="object"&&(d=new b(d)),hr[k](s,d,m).alpha(s.alpha()+m*(d.alpha()-s.alpha()))};b.prototype.mix=b.prototype.interpolate=function(s,d){d===void 0&&(d=.5);for(var m=[],w=arguments.length-2;w-- >0;)m[w]=arguments[w+2];return Xc.apply(void 0,[this,s,d].concat(m))},b.prototype.premultiply=function(s){s===void 0&&(s=!1);var d=this._rgb,m=d[3];return s?(this._rgb=[d[0]*m,d[1]*m,d[2]*m,m],this):new b([d[0]*m,d[1]*m,d[2]*m,m],"rgb")},b.prototype.saturate=function(s){s===void 0&&(s=1);var d=this,m=d.lch();return m[1]+=Ze.Kn*s,m[1]<0&&(m[1]=0),new b(m,"lch").alpha(d.alpha(),!0)},b.prototype.desaturate=function(s){return s===void 0&&(s=1),this.saturate(-s)};var Qc=v.type;b.prototype.set=function(s,d,m){m===void 0&&(m=!1);var w=s.split("."),q=w[0],k=w[1],C=this[q]();if(k){var N=q.indexOf(k);if(N>-1){if(Qc(d)=="string")switch(d.charAt(0)){case"+":C[N]+=+d;break;case"-":C[N]+=+d;break;case"*":C[N]*=+d.substr(1);break;case"/":C[N]/=+d.substr(1);break;default:C[N]=+d}else if(Qc(d)==="number")C[N]=d;else throw new Error("unsupported value for Color.set");var D=new b(C,q);return m?(this._rgb=D._rgb,this):D}throw new Error("unknown channel "+k+" in mode "+q)}else return C};var Ob=function(s,d,m){var w=s._rgb,q=d._rgb;return new b(w[0]+m*(q[0]-w[0]),w[1]+m*(q[1]-w[1]),w[2]+m*(q[2]-w[2]),"rgb")};hr.rgb=Ob;var eo=Math.sqrt,Bt=Math.pow,Tb=function(s,d,m){var w=s._rgb,q=w[0],k=w[1],C=w[2],N=d._rgb,D=N[0],Y=N[1],te=N[2];return new b(eo(Bt(q,2)*(1-m)+Bt(D,2)*m),eo(Bt(k,2)*(1-m)+Bt(Y,2)*m),eo(Bt(C,2)*(1-m)+Bt(te,2)*m),"rgb")};hr.lrgb=Tb;var Ib=function(s,d,m){var w=s.lab(),q=d.lab();return new b(w[0]+m*(q[0]-w[0]),w[1]+m*(q[1]-w[1]),w[2]+m*(q[2]-w[2]),"lab")};hr.lab=Ib;var gn=function(s,d,m,w){var q,k,C,N;w==="hsl"?(C=s.hsl(),N=d.hsl()):w==="hsv"?(C=s.hsv(),N=d.hsv()):w==="hcg"?(C=s.hcg(),N=d.hcg()):w==="hsi"?(C=s.hsi(),N=d.hsi()):(w==="lch"||w==="hcl")&&(w="hcl",C=s.hcl(),N=d.hcl());var D,Y,te,re,pe,de;w.substr(0,1)==="h"&&(q=C,D=q[0],te=q[1],pe=q[2],k=N,Y=k[0],re=k[1],de=k[2]);var me,Te,xe,$e;return!isNaN(D)&&!isNaN(Y)?(Y>D&&Y-D>180?$e=Y-(D+360):Y<D&&D-Y>180?$e=Y+360-D:$e=Y-D,Te=D+m*$e):isNaN(D)?isNaN(Y)?Te=Number.NaN:(Te=Y,(pe==1||pe==0)&&w!="hsv"&&(me=re)):(Te=D,(de==1||de==0)&&w!="hsv"&&(me=te)),me===void 0&&(me=te+m*(re-te)),xe=pe+m*(de-pe),new b([Te,me,xe],w)},ef=function(s,d,m){return gn(s,d,m,"lch")};hr.lch=ef,hr.hcl=ef;var Cb=function(s,d,m){var w=s.num(),q=d.num();return new b(w+m*(q-w),"num")};hr.num=Cb;var jb=function(s,d,m){return gn(s,d,m,"hcg")};hr.hcg=jb;var Pb=function(s,d,m){return gn(s,d,m,"hsi")};hr.hsi=Pb;var Ab=function(s,d,m){return gn(s,d,m,"hsl")};hr.hsl=Ab;var $b=function(s,d,m){return gn(s,d,m,"hsv")};hr.hsv=$b;var qb=v.clip_rgb,ro=Math.pow,to=Math.sqrt,no=Math.PI,rf=Math.cos,tf=Math.sin,Mb=Math.atan2,kb=function(s,d,m){d===void 0&&(d="lrgb"),m===void 0&&(m=null);var w=s.length;m||(m=Array.from(new Array(w)).map(function(){return 1}));var q=w/m.reduce(function(Te,xe){return Te+xe});if(m.forEach(function(Te,xe){m[xe]*=q}),s=s.map(function(Te){return new b(Te)}),d==="lrgb")return Nb(s,m);for(var k=s.shift(),C=k.get(d),N=[],D=0,Y=0,te=0;te<C.length;te++)if(C[te]=(C[te]||0)*m[0],N.push(isNaN(C[te])?0:m[0]),d.charAt(te)==="h"&&!isNaN(C[te])){var re=C[te]/180*no;D+=rf(re)*m[0],Y+=tf(re)*m[0]}var pe=k.alpha()*m[0];s.forEach(function(Te,xe){var $e=Te.get(d);pe+=Te.alpha()*m[xe+1];for(var Be=0;Be<C.length;Be++)if(!isNaN($e[Be]))if(N[Be]+=m[xe+1],d.charAt(Be)==="h"){var ar=$e[Be]/180*no;D+=rf(ar)*m[xe+1],Y+=tf(ar)*m[xe+1]}else C[Be]+=$e[Be]*m[xe+1]});for(var de=0;de<C.length;de++)if(d.charAt(de)==="h"){for(var me=Mb(Y/N[de],D/N[de])/no*180;me<0;)me+=360;for(;me>=360;)me-=360;C[de]=me}else C[de]=C[de]/N[de];return pe/=w,new b(C,d).alpha(pe>.99999?1:pe,!0)},Nb=function(s,d){for(var m=s.length,w=[0,0,0,0],q=0;q<s.length;q++){var k=s[q],C=d[q]/m,N=k._rgb;w[0]+=ro(N[0],2)*C,w[1]+=ro(N[1],2)*C,w[2]+=ro(N[2],2)*C,w[3]+=N[3]*C}return w[0]=to(w[0]),w[1]=to(w[1]),w[2]=to(w[2]),w[3]>.9999999&&(w[3]=1),new b(qb(w))},Ht=v.type,Db=Math.pow,aa=function(s){var d="rgb",m=S("#ccc"),w=0,q=[0,1],k=[],C=[0,0],N=!1,D=[],Y=!1,te=0,re=1,pe=!1,de={},me=!0,Te=1,xe=function(ne){if(ne=ne||["#fff","#000"],ne&&Ht(ne)==="string"&&S.brewer&&S.brewer[ne.toLowerCase()]&&(ne=S.brewer[ne.toLowerCase()]),Ht(ne)==="array"){ne.length===1&&(ne=[ne[0],ne[0]]),ne=ne.slice(0);for(var he=0;he<ne.length;he++)ne[he]=S(ne[he]);k.length=0;for(var Ie=0;Ie<ne.length;Ie++)k.push(Ie/(ne.length-1))}return Sr(),D=ne},$e=function(ne){if(N!=null){for(var he=N.length-1,Ie=0;Ie<he&&ne>=N[Ie];)Ie++;return Ie-1}return 0},Be=function(ne){return ne},ar=function(ne){return ne},or=function(ne,he){var Ie,we;if(he==null&&(he=!1),isNaN(ne)||ne===null)return m;if(he)we=ne;else if(N&&N.length>2){var gr=$e(ne);we=gr/(N.length-2)}else re!==te?we=(ne-te)/(re-te):we=1;we=ar(we),he||(we=Be(we)),Te!==1&&(we=Db(we,Te)),we=C[0]+we*(1-C[0]-C[1]),we=Math.min(1,Math.max(0,we));var Ke=Math.floor(we*1e4);if(me&&de[Ke])Ie=de[Ke];else{if(Ht(D)==="array")for(var Le=0;Le<k.length;Le++){var Fe=k[Le];if(we<=Fe){Ie=D[Le];break}if(we>=Fe&&Le===k.length-1){Ie=D[Le];break}if(we>Fe&&we<k[Le+1]){we=(we-Fe)/(k[Le+1]-Fe),Ie=S.interpolate(D[Le],D[Le+1],we,d);break}}else Ht(D)==="function"&&(Ie=D(we));me&&(de[Ke]=Ie)}return Ie},Sr=function(){return de={}};xe(s);var Ce=function(ne){var he=S(or(ne));return Y&&he[Y]?he[Y]():he};return Ce.classes=function(ne){if(ne!=null){if(Ht(ne)==="array")N=ne,q=[ne[0],ne[ne.length-1]];else{var he=S.analyze(q);ne===0?N=[he.min,he.max]:N=S.limits(he,"e",ne)}return Ce}return N},Ce.domain=function(ne){if(!arguments.length)return q;te=ne[0],re=ne[ne.length-1],k=[];var he=D.length;if(ne.length===he&&te!==re)for(var Ie=0,we=Array.from(ne);Ie<we.length;Ie+=1){var gr=we[Ie];k.push((gr-te)/(re-te))}else{for(var Ke=0;Ke<he;Ke++)k.push(Ke/(he-1));if(ne.length>2){var Le=ne.map(function(rr,He){return He/(ne.length-1)}),Fe=ne.map(function(rr){return(rr-te)/(re-te)});Fe.every(function(rr,He){return Le[He]===rr})||(ar=function(rr){if(rr<=0||rr>=1)return rr;for(var He=0;rr>=Fe[He+1];)He++;var ot=(rr-Fe[He])/(Fe[He+1]-Fe[He]),Vt=Le[He]+ot*(Le[He+1]-Le[He]);return Vt})}}return q=[te,re],Ce},Ce.mode=function(ne){return arguments.length?(d=ne,Sr(),Ce):d},Ce.range=function(ne,he){return xe(ne),Ce},Ce.out=function(ne){return Y=ne,Ce},Ce.spread=function(ne){return arguments.length?(w=ne,Ce):w},Ce.correctLightness=function(ne){return ne==null&&(ne=!0),pe=ne,Sr(),pe?Be=function(he){for(var Ie=or(0,!0).lab()[0],we=or(1,!0).lab()[0],gr=Ie>we,Ke=or(he,!0).lab()[0],Le=Ie+(we-Ie)*he,Fe=Ke-Le,rr=0,He=1,ot=20;Math.abs(Fe)>.01&&ot-- >0;)(function(){return gr&&(Fe*=-1),Fe<0?(rr=he,he+=(He-he)*.5):(He=he,he+=(rr-he)*.5),Ke=or(he,!0).lab()[0],Fe=Ke-Le})();return he}:Be=function(he){return he},Ce},Ce.padding=function(ne){return ne!=null?(Ht(ne)==="number"&&(ne=[ne,ne]),C=ne,Ce):C},Ce.colors=function(ne,he){arguments.length<2&&(he="hex");var Ie=[];if(arguments.length===0)Ie=D.slice(0);else if(ne===1)Ie=[Ce(.5)];else if(ne>1){var we=q[0],gr=q[1]-we;Ie=zb(0,ne).map(function(He){return Ce(we+He/(ne-1)*gr)})}else{s=[];var Ke=[];if(N&&N.length>2)for(var Le=1,Fe=N.length,rr=1<=Fe;rr?Le<Fe:Le>Fe;rr?Le++:Le--)Ke.push((N[Le-1]+N[Le])*.5);else Ke=q;Ie=Ke.map(function(He){return Ce(He)})}return S[he]&&(Ie=Ie.map(function(He){return He[he]()})),Ie},Ce.cache=function(ne){return ne!=null?(me=ne,Ce):me},Ce.gamma=function(ne){return ne!=null?(Te=ne,Ce):Te},Ce.nodata=function(ne){return ne!=null?(m=S(ne),Ce):m},Ce};function zb(s,d,m){for(var w=[],q=s<d,k=d,C=s;q?C<k:C>k;q?C++:C--)w.push(C);return w}var ao=function(s){var d,m,w,q,k,C,N;if(s=s.map(function(re){return new b(re)}),s.length===2)d=s.map(function(re){return re.lab()}),k=d[0],C=d[1],q=function(re){var pe=[0,1,2].map(function(de){return k[de]+re*(C[de]-k[de])});return new b(pe,"lab")};else if(s.length===3)m=s.map(function(re){return re.lab()}),k=m[0],C=m[1],N=m[2],q=function(re){var pe=[0,1,2].map(function(de){return(1-re)*(1-re)*k[de]+2*(1-re)*re*C[de]+re*re*N[de]});return new b(pe,"lab")};else if(s.length===4){var D;w=s.map(function(re){return re.lab()}),k=w[0],C=w[1],N=w[2],D=w[3],q=function(re){var pe=[0,1,2].map(function(de){return(1-re)*(1-re)*(1-re)*k[de]+3*(1-re)*(1-re)*re*C[de]+3*(1-re)*re*re*N[de]+re*re*re*D[de]});return new b(pe,"lab")}}else if(s.length===5){var Y=ao(s.slice(0,3)),te=ao(s.slice(2,5));q=function(re){return re<.5?Y(re*2):te((re-.5)*2)}}return q},Lb=function(s){var d=ao(s);return d.scale=function(){return aa(d)},d},jr=function(s,d,m){if(!jr[m])throw new Error("unknown blend mode "+m);return jr[m](s,d)},nt=function(s){return function(d,m){var w=S(m).rgb(),q=S(d).rgb();return S.rgb(s(w,q))}},at=function(s){return function(d,m){var w=[];return w[0]=s(d[0],m[0]),w[1]=s(d[1],m[1]),w[2]=s(d[2],m[2]),w}},Fb=function(s){return s},Bb=function(s,d){return s*d/255},Hb=function(s,d){return s>d?d:s},Vb=function(s,d){return s>d?s:d},Gb=function(s,d){return 255*(1-(1-s/255)*(1-d/255))},Wb=function(s,d){return d<128?2*s*d/255:255*(1-2*(1-s/255)*(1-d/255))},Ub=function(s,d){return 255*(1-(1-d/255)/(s/255))},Kb=function(s,d){return s===255?255:(s=255*(d/255)/(1-s/255),s>255?255:s)};jr.normal=nt(at(Fb)),jr.multiply=nt(at(Bb)),jr.screen=nt(at(Gb)),jr.overlay=nt(at(Wb)),jr.darken=nt(at(Hb)),jr.lighten=nt(at(Vb)),jr.dodge=nt(at(Kb)),jr.burn=nt(at(Ub));for(var Yb=jr,oo=v.type,Jb=v.clip_rgb,Zb=v.TWOPI,Xb=Math.pow,Qb=Math.sin,ex=Math.cos,rx=function(s,d,m,w,q){s===void 0&&(s=300),d===void 0&&(d=-1.5),m===void 0&&(m=1),w===void 0&&(w=1),q===void 0&&(q=[0,1]);var k=0,C;oo(q)==="array"?C=q[1]-q[0]:(C=0,q=[q,q]);var N=function(D){var Y=Zb*((s+120)/360+d*D),te=Xb(q[0]+C*D,w),re=k!==0?m[0]+D*k:m,pe=re*te*(1-te)/2,de=ex(Y),me=Qb(Y),Te=te+pe*(-.14861*de+1.78277*me),xe=te+pe*(-.29227*de-.90649*me),$e=te+pe*(1.97294*de);return S(Jb([Te*255,xe*255,$e*255,1]))};return N.start=function(D){return D==null?s:(s=D,N)},N.rotations=function(D){return D==null?d:(d=D,N)},N.gamma=function(D){return D==null?w:(w=D,N)},N.hue=function(D){return D==null?m:(m=D,oo(m)==="array"?(k=m[1]-m[0],k===0&&(m=m[1])):k=0,N)},N.lightness=function(D){return D==null?q:(oo(D)==="array"?(q=D,C=D[1]-D[0]):(q=[D,D],C=0),N)},N.scale=function(){return S.scale(N)},N.hue(m),N},tx="0123456789abcdef",nx=Math.floor,ax=Math.random,ox=function(){for(var s="#",d=0;d<6;d++)s+=tx.charAt(nx(ax()*16));return new b(s,"hex")},nf=Math.log,ix=Math.pow,sx=Math.floor,lx=Math.abs,af=function(s,d){d===void 0&&(d=null);var m={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return l(s)==="object"&&(s=Object.values(s)),s.forEach(function(w){d&&l(w)==="object"&&(w=w[d]),w!=null&&!isNaN(w)&&(m.values.push(w),m.sum+=w,w<m.min&&(m.min=w),w>m.max&&(m.max=w),m.count+=1)}),m.domain=[m.min,m.max],m.limits=function(w,q){return of(m,w,q)},m},of=function(s,d,m){d===void 0&&(d="equal"),m===void 0&&(m=7),l(s)=="array"&&(s=af(s));var w=s.min,q=s.max,k=s.values.sort(function(fo,vo){return fo-vo});if(m===1)return[w,q];var C=[];if(d.substr(0,1)==="c"&&(C.push(w),C.push(q)),d.substr(0,1)==="e"){C.push(w);for(var N=1;N<m;N++)C.push(w+N/m*(q-w));C.push(q)}else if(d.substr(0,1)==="l"){if(w<=0)throw new Error("Logarithmic scales are only possible for values > 0");var D=Math.LOG10E*nf(w),Y=Math.LOG10E*nf(q);C.push(w);for(var te=1;te<m;te++)C.push(ix(10,D+te/m*(Y-D)));C.push(q)}else if(d.substr(0,1)==="q"){C.push(w);for(var re=1;re<m;re++){var pe=(k.length-1)*re/m,de=sx(pe);if(de===pe)C.push(k[de]);else{var me=pe-de;C.push(k[de]*(1-me)+k[de+1]*me)}}C.push(q)}else if(d.substr(0,1)==="k"){var Te,xe=k.length,$e=new Array(xe),Be=new Array(m),ar=!0,or=0,Sr=null;Sr=[],Sr.push(w);for(var Ce=1;Ce<m;Ce++)Sr.push(w+Ce/m*(q-w));for(Sr.push(q);ar;){for(var ne=0;ne<m;ne++)Be[ne]=0;for(var he=0;he<xe;he++)for(var Ie=k[he],we=Number.MAX_VALUE,gr=void 0,Ke=0;Ke<m;Ke++){var Le=lx(Sr[Ke]-Ie);Le<we&&(we=Le,gr=Ke),Be[gr]++,$e[he]=gr}for(var Fe=new Array(m),rr=0;rr<m;rr++)Fe[rr]=null;for(var He=0;He<xe;He++)Te=$e[He],Fe[Te]===null?Fe[Te]=k[He]:Fe[Te]+=k[He];for(var ot=0;ot<m;ot++)Fe[ot]*=1/Be[ot];ar=!1;for(var Vt=0;Vt<m;Vt++)if(Fe[Vt]!==Sr[Vt]){ar=!0;break}Sr=Fe,or++,or>200&&(ar=!1)}for(var mn={},lo=0;lo<m;lo++)mn[lo]=[];for(var sa=0;sa<xe;sa++)Te=$e[sa],mn[Te].push(k[sa]);for(var mt=[],yn=0;yn<m;yn++)mt.push(mn[yn][0]),mt.push(mn[yn][mn[yn].length-1]);mt=mt.sort(function(fo,vo){return fo-vo}),C.push(mt[0]);for(var uo=1;uo<mt.length;uo+=2){var co=mt[uo];!isNaN(co)&&C.indexOf(co)===-1&&C.push(co)}}return C},sf={analyze:af,limits:of},ux=function(s,d){s=new b(s),d=new b(d);var m=s.luminance(),w=d.luminance();return m>w?(m+.05)/(w+.05):(w+.05)/(m+.05)},oa=Math.sqrt,cx=Math.atan2,lf=Math.abs,uf=Math.cos,io=Math.PI,fx=function(s,d,m,w){m===void 0&&(m=1),w===void 0&&(w=1),s=new b(s),d=new b(d);for(var q=Array.from(s.lab()),k=q[0],C=q[1],N=q[2],D=Array.from(d.lab()),Y=D[0],te=D[1],re=D[2],pe=oa(C*C+N*N),de=oa(te*te+re*re),me=k<16?.511:.040975*k/(1+.01765*k),Te=.0638*pe/(1+.0131*pe)+.638,xe=pe<1e-6?0:cx(N,C)*180/io;xe<0;)xe+=360;for(;xe>=360;)xe-=360;var $e=xe>=164&&xe<=345?.56+lf(.2*uf(io*(xe+168)/180)):.36+lf(.4*uf(io*(xe+35)/180)),Be=pe*pe*pe*pe,ar=oa(Be/(Be+1900)),or=Te*(ar*$e+1-ar),Sr=k-Y,Ce=pe-de,ne=C-te,he=N-re,Ie=ne*ne+he*he-Ce*Ce,we=Sr/(m*me),gr=Ce/(w*Te),Ke=or;return oa(we*we+gr*gr+Ie/(Ke*Ke))},dx=function(s,d,m){m===void 0&&(m="lab"),s=new b(s),d=new b(d);var w=s.get(m),q=d.get(m),k=0;for(var C in w){var N=(w[C]||0)-(q[C]||0);k+=N*N}return Math.sqrt(k)},vx=function(){for(var s=[],d=arguments.length;d--;)s[d]=arguments[d];try{return new(Function.prototype.bind.apply(b,[null].concat(s))),!0}catch{return!1}},px={cool:function(){return aa([S.hsl(180,1,.9),S.hsl(250,.7,.4)])},hot:function(){return aa(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ia={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},so=0,cf=Object.keys(ia);so<cf.length;so+=1){var ff=cf[so];ia[ff.toLowerCase()]=ia[ff]}var hx=ia;S.average=kb,S.bezier=Lb,S.blend=Yb,S.cubehelix=rx,S.mix=S.interpolate=Xc,S.random=ox,S.scale=aa,S.analyze=sf.analyze,S.contrast=ux,S.deltaE=fx,S.distance=dx,S.limits=sf.limits,S.valid=vx,S.scales=px,S.colors=Ft,S.brewer=hx;var gx=S;return gx}))})(ma)),ma.exports}var ac=N3();const Ne=We(ac);var gl,o0;function D3(){return o0||(o0=1,gl=Py()),gl}var z3=D3();const L3=We(z3);var ml,i0;function F3(){return i0||(i0=1,ml=Ry()),ml}var B3=F3();const H3=We(B3);var yl,s0;function V3(){return s0||(s0=1,yl=$y()),yl}var G3=V3();const lt=We(G3);var bl,l0;function W3(){if(l0)return bl;l0=1,vy();var e=Nr();return bl=e("Array","concat"),bl}var xl,u0;function U3(){if(u0)return xl;u0=1;var e=_r(),r=W3(),t=Array.prototype;return xl=function(n){var a=n.concat;return n===t||e(t,n)&&a===t.concat?r:a},xl}var Sl,c0;function K3(){if(c0)return Sl;c0=1;var e=U3();return Sl=e,Sl}var _l,f0;function Y3(){return f0||(f0=1,_l=K3()),_l}var J3=Y3();const Kt=We(J3);var d0={},wl,v0;function Z3(){if(v0)return wl;v0=1;var e=cr(),r=sn(),t=TypeError,n=Object.getOwnPropertyDescriptor,a=e&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(o){return o instanceof TypeError}})();return wl=a?function(o,i){if(r(o)&&!n(o,"length").writable)throw new t("Cannot set read only .length");return o.length=i}:function(o,i){return o.length=i},wl}var El,p0;function ky(){if(p0)return El;p0=1;var e=tn(),r=TypeError;return El=function(t,n){if(!delete t[n])throw new r("Cannot delete property "+e(n)+" of "+e(t))},El}var h0;function X3(){if(h0)return d0;h0=1;var e=je(),r=qr(),t=Aa(),n=Bn(),a=Ur(),o=Z3(),i=dy(),c=_c(),l=ja(),u=ky(),f=Hn(),g=f("splice"),v=Math.max,h=Math.min;return e({target:"Array",proto:!0,forced:!g},{splice:function(_,T){var A=r(this),b=a(A),$=t(_,b),S=arguments.length,E,M,j,x,R,P;for(S===0?E=M=0:S===1?(E=0,M=b-$):(E=S-2,M=h(v(n(T),0),b-$)),i(b+E-M),j=c(A,M),x=0;x<M;x++)R=$+x,R in A&&l(j,x,A[R]);if(j.length=M,E<M){for(x=$;x<b-M;x++)R=x+M,P=x+E,R in A?A[P]=A[R]:u(A,P);for(x=b;x>b-M+E;x--)u(A,x-1)}else if(E>M)for(x=b-M;x>$;x--)R=x+M-1,P=x+E-1,R in A?A[P]=A[R]:u(A,P);for(x=0;x<E;x++)A[x+$]=arguments[x+2];return o(A,b-M+E),j}}),d0}var Rl,g0;function Q3(){if(g0)return Rl;g0=1,X3();var e=Nr();return Rl=e("Array","splice"),Rl}var Ol,m0;function eS(){if(m0)return Ol;m0=1;var e=_r(),r=Q3(),t=Array.prototype;return Ol=function(n){var a=n.splice;return n===t||e(t,n)&&a===t.splice?r:a},Ol}var Tl,y0;function rS(){if(y0)return Tl;y0=1;var e=eS();return Tl=e,Tl}var Il,b0;function tS(){return b0||(b0=1,Il=rS()),Il}var nS=tS();const In=We(nS);var x0={},S0;function aS(){if(S0)return x0;S0=1;var e=je(),r=Un().filter,t=Hn(),n=t("filter");return e({target:"Array",proto:!0,forced:!n},{filter:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}}),x0}var Cl,_0;function oS(){if(_0)return Cl;_0=1,aS();var e=Nr();return Cl=e("Array","filter"),Cl}var jl,w0;function iS(){if(w0)return jl;w0=1;var e=_r(),r=oS(),t=Array.prototype;return jl=function(n){var a=n.filter;return n===t||e(t,n)&&a===t.filter?r:a},jl}var Pl,E0;function sS(){if(E0)return Pl;E0=1;var e=iS();return Pl=e,Pl}var Al,R0;function lS(){return R0||(R0=1,Al=sS()),Al}var uS=lS();const kc=We(uS);var O0={},$l,T0;function cS(){if(T0)return $l;T0=1;var e=ka(),r=Math.floor,t=function(n,a){var o=n.length;if(o<8)for(var i=1,c,l;i<o;){for(l=i,c=n[i];l&&a(n[l-1],c)>0;)n[l]=n[--l];l!==i++&&(n[l]=c)}else for(var u=r(o/2),f=t(e(n,0,u),a),g=t(e(n,u),a),v=f.length,h=g.length,y=0,_=0;y<v||_<h;)n[y+_]=y<v&&_<h?a(f[y],g[_])<=0?f[y++]:g[_++]:y<v?f[y++]:g[_++];return n};return $l=t,$l}var ql,I0;function fS(){if(I0)return ql;I0=1;var e=Ve();return ql=function(r,t){var n=[][r];return!!n&&e(function(){n.call(null,t||function(){return 1},1)})},ql}var Ml,C0;function dS(){if(C0)return Ml;C0=1;var e=Ta(),r=e.match(/firefox\/(\d+)/i);return Ml=!!r&&+r[1],Ml}var kl,j0;function vS(){if(j0)return kl;j0=1;var e=Ta();return kl=/MSIE|Trident/.test(e),kl}var Nl,P0;function pS(){if(P0)return Nl;P0=1;var e=Ta(),r=e.match(/AppleWebKit\/(\d+)\./);return Nl=!!r&&+r[1],Nl}var A0;function hS(){if(A0)return O0;A0=1;var e=je(),r=Qe(),t=nn(),n=qr(),a=Ur(),o=ky(),i=Rt(),c=Ve(),l=cS(),u=fS(),f=dS(),g=vS(),v=Ia(),h=pS(),y=[],_=r(y.sort),T=r(y.push),A=c(function(){y.sort(void 0)}),b=c(function(){y.sort(null)}),$=u("sort"),S=!c(function(){if(v)return v<70;if(!(f&&f>3)){if(g)return!0;if(h)return h<603;var j="",x,R,P,I;for(x=65;x<76;x++){switch(R=String.fromCharCode(x),x){case 66:case 69:case 70:case 72:P=3;break;case 68:case 71:P=4;break;default:P=2}for(I=0;I<47;I++)y.push({k:R+I,v:P})}for(y.sort(function(V,W){return W.v-V.v}),I=0;I<y.length;I++)R=y[I].k.charAt(0),j.charAt(j.length-1)!==R&&(j+=R);return j!=="DGBEFHACIJK"}}),E=A||!b||!$||!S,M=function(j){return function(x,R){return R===void 0?-1:x===void 0?1:j!==void 0?+j(x,R)||0:i(x)>i(R)?1:-1}};return e({target:"Array",proto:!0,forced:E},{sort:function(x){x!==void 0&&t(x);var R=n(this);if(S)return x===void 0?_(R):_(R,x);var P=[],I=a(R),V,W;for(W=0;W<I;W++)W in R&&T(P,R[W]);for(l(P,M(x)),V=a(P),W=0;W<V;)R[W]=P[W++];for(;W<I;)o(R,W++);return R}}),O0}var Dl,$0;function gS(){if($0)return Dl;$0=1,hS();var e=Nr();return Dl=e("Array","sort"),Dl}var zl,q0;function mS(){if(q0)return zl;q0=1;var e=_r(),r=gS(),t=Array.prototype;return zl=function(n){var a=n.sort;return n===t||e(t,n)&&a===t.sort?r:a},zl}var Ll,M0;function yS(){if(M0)return Ll;M0=1;var e=mS();return Ll=e,Ll}var Fl,k0;function bS(){return k0||(k0=1,Fl=yS()),Fl}var xS=bS();const ya=We(xS);var N0={},D0={},Bl={exports:{}},Hl,z0;function SS(){if(z0)return Hl;z0=1;var e=Ve();return Hl=e(function(){if(typeof ArrayBuffer=="function"){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}}),Hl}var Vl,L0;function _S(){if(L0)return Vl;L0=1;var e=Ve(),r=vr(),t=ft(),n=SS(),a=Object.isExtensible,o=e(function(){});return Vl=o||n?function(c){return!r(c)||n&&t(c)==="ArrayBuffer"?!1:a?a(c):!0}:a,Vl}var Gl,F0;function wS(){if(F0)return Gl;F0=1;var e=Ve();return Gl=!e(function(){return Object.isExtensible(Object.preventExtensions({}))}),Gl}var B0;function Ny(){if(B0)return Bl.exports;B0=1;var e=je(),r=Qe(),t=Vn(),n=vr(),a=wr(),o=Tr().f,i=Ec(),c=my(),l=_S(),u=Ca(),f=wS(),g=!1,v=u("meta"),h=0,y=function(S){o(S,v,{value:{objectID:"O"+h++,weakData:{}}})},_=function(S,E){if(!n(S))return typeof S=="symbol"?S:(typeof S=="string"?"S":"P")+S;if(!a(S,v)){if(!l(S))return"F";if(!E)return"E";y(S)}return S[v].objectID},T=function(S,E){if(!a(S,v)){if(!l(S))return!0;if(!E)return!1;y(S)}return S[v].weakData},A=function(S){return f&&g&&l(S)&&!a(S,v)&&y(S),S},b=function(){$.enable=function(){},g=!0;var S=i.f,E=r([].splice),M={};M[v]=1,S(M).length&&(i.f=function(j){for(var x=S(j),R=0,P=x.length;R<P;R++)if(x[R]===v){E(x,R,1);break}return x},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},$=Bl.exports={enable:b,fastKey:_,getWeakData:T,onFreeze:A};return t[v]=!0,Bl.exports}var Wl,H0;function Dy(){if(H0)return Wl;H0=1;var e=Fn(),r=xr(),t=Wr(),n=tn(),a=Cy(),o=Ur(),i=_r(),c=jy(),l=Da(),u=za(),f=TypeError,g=function(h,y){this.stopped=h,this.result=y},v=g.prototype;return Wl=function(h,y,_){var T=_&&_.that,A=!!(_&&_.AS_ENTRIES),b=!!(_&&_.IS_RECORD),$=!!(_&&_.IS_ITERATOR),S=!!(_&&_.INTERRUPTED),E=e(y,T),M,j,x,R,P,I,V,W=function(B){return M&&u(M,"normal"),new g(!0,B)},z=function(B){return A?(t(B),S?E(B[0],B[1],W):E(B[0],B[1])):S?E(B,W):E(B)};if(b)M=h.iterator;else if($)M=h;else{if(j=l(h),!j)throw new f(n(h)+" is not iterable");if(a(j)){for(x=0,R=o(h);R>x;x++)if(P=z(h[x]),P&&i(v,P))return P;return new g(!1)}M=c(h,j)}for(I=b?h.next:M.next;!(V=r(I,M)).done;){try{P=z(V.value)}catch(B){u(M,"throw",B)}if(typeof P=="object"&&P&&i(v,P))return P}return new g(!1)},Wl}var Ul,V0;function zy(){if(V0)return Ul;V0=1;var e=_r(),r=TypeError;return Ul=function(t,n){if(e(n,t))return t;throw new r("Incorrect invocation")},Ul}var Kl,G0;function ES(){if(G0)return Kl;G0=1;var e=je(),r=ur(),t=Ny(),n=Ve(),a=on(),o=Dy(),i=zy(),c=ir(),l=vr(),u=Nn(),f=Ot(),g=Tr().f,v=Un().forEach,h=cr(),y=Wn(),_=y.set,T=y.getterFor;return Kl=function(A,b,$){var S=A.indexOf("Map")!==-1,E=A.indexOf("Weak")!==-1,M=S?"set":"add",j=r[A],x=j&&j.prototype,R={},P;if(!h||!c(j)||!(E||x.forEach&&!n(function(){new j().entries().next()})))P=$.getConstructor(b,A,S,M),t.enable();else{P=b(function(W,z){_(i(W,I),{type:A,collection:new j}),u(z)||o(z,W[M],{that:W,AS_ENTRIES:S})});var I=P.prototype,V=T(A);v(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(W){var z=W==="add"||W==="set";W in x&&!(E&&W==="clear")&&a(I,W,function(B,G){var U=V(this).collection;if(!z&&E&&!l(B))return W==="get"?void 0:!1;var X=U[W](B===0?0:B,G);return z?this:X})}),E||g(I,"size",{configurable:!0,get:function(){return V(this).collection.size}})}return f(P,A,!1,!0),R[A]=P,e({global:!0,forced:!0},R),E||$.setStrong(P,A,S),P},Kl}var Yl,W0;function RS(){if(W0)return Yl;W0=1;var e=Gn();return Yl=function(r,t,n){for(var a in t)n&&n.unsafe&&r[a]?r[a]=t[a]:e(r,a,t[a],n);return r},Yl}var Jl,U0;function OS(){if(U0)return Jl;U0=1;var e=$r(),r=Oc(),t=er(),n=cr(),a=t("species");return Jl=function(o){var i=e(o);n&&i&&!i[a]&&r(i,a,{configurable:!0,get:function(){return this}})},Jl}var Zl,K0;function TS(){if(K0)return Zl;K0=1;var e=Ma(),r=Oc(),t=RS(),n=Fn(),a=zy(),o=Nn(),i=Dy(),c=Tc(),l=Ic(),u=OS(),f=cr(),g=Ny().fastKey,v=Wn(),h=v.set,y=v.getterFor;return Zl={getConstructor:function(_,T,A,b){var $=_(function(x,R){a(x,S),h(x,{type:T,index:e(null),first:null,last:null,size:0}),f||(x.size=0),o(R)||i(R,x[b],{that:x,AS_ENTRIES:A})}),S=$.prototype,E=y(T),M=function(x,R,P){var I=E(x),V=j(x,R),W,z;return V?V.value=P:(I.last=V={index:z=g(R,!0),key:R,value:P,previous:W=I.last,next:null,removed:!1},I.first||(I.first=V),W&&(W.next=V),f?I.size++:x.size++,z!=="F"&&(I.index[z]=V)),x},j=function(x,R){var P=E(x),I=g(R),V;if(I!=="F")return P.index[I];for(V=P.first;V;V=V.next)if(V.key===R)return V};return t(S,{clear:function(){for(var R=this,P=E(R),I=P.first;I;)I.removed=!0,I.previous&&(I.previous=I.previous.next=null),I=I.next;P.first=P.last=null,P.index=e(null),f?P.size=0:R.size=0},delete:function(x){var R=this,P=E(R),I=j(R,x);if(I){var V=I.next,W=I.previous;delete P.index[I.index],I.removed=!0,W&&(W.next=V),V&&(V.previous=W),P.first===I&&(P.first=V),P.last===I&&(P.last=W),f?P.size--:R.size--}return!!I},forEach:function(R){for(var P=E(this),I=n(R,arguments.length>1?arguments[1]:void 0),V;V=V?V.next:P.first;)for(I(V.value,V.key,this);V&&V.removed;)V=V.previous},has:function(R){return!!j(this,R)}}),t(S,A?{get:function(R){var P=j(this,R);return P&&P.value},set:function(R,P){return M(this,R===0?0:R,P)}}:{add:function(R){return M(this,R=R===0?0:R,R)}}),f&&r(S,"size",{configurable:!0,get:function(){return E(this).size}}),$},setStrong:function(_,T,A){var b=T+" Iterator",$=y(T),S=y(b);c(_,T,function(E,M){h(this,{type:b,target:E,state:$(E),kind:M,last:null})},function(){for(var E=S(this),M=E.kind,j=E.last;j&&j.removed;)j=j.previous;return!E.target||!(E.last=j=j?j.next:E.state.first)?(E.target=null,l(void 0,!0)):l(M==="keys"?j.key:M==="values"?j.value:[j.key,j.value],!1)},A?"entries":"values",!A,!0),u(T)}},Zl}var Y0;function IS(){if(Y0)return D0;Y0=1;var e=ES(),r=TS();return e("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r),D0}var J0;function CS(){return J0||(J0=1,IS()),N0}var Z0={},Xl,X0;function Tt(){if(X0)return Xl;X0=1;var e=tn(),r=TypeError;return Xl=function(t){if(typeof t=="object"&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new r(e(t)+" is not a set")},Xl}var Ql,Q0;function jS(){return Q0||(Q0=1,Ql=function(e,r){return r===1?function(t,n){return t[e](n)}:function(t,n,a){return t[e](n,a)}}),Ql}var eu,eg;function It(){if(eg)return eu;eg=1;var e=$r(),r=jS(),t=e("Set"),n=t.prototype;return eu={Set:t,add:r("add",1),has:r("has",1),remove:r("delete",1),proto:n},eu}var ru,rg;function Ct(){if(rg)return ru;rg=1;var e=xr();return ru=function(r,t,n){for(var a=n?r:r.iterator,o=r.next,i,c;!(i=e(o,a)).done;)if(c=t(i.value),c!==void 0)return c},ru}var tu,tg;function Kn(){if(tg)return tu;tg=1;var e=Ct();return tu=function(r,t,n){return n?e(r.keys(),t,!0):r.forEach(t)},tu}var nu,ng;function Nc(){if(ng)return nu;ng=1;var e=It(),r=Kn(),t=e.Set,n=e.add;return nu=function(a){var o=new t;return r(a,function(i){n(o,i)}),o},nu}var au,ag;function Yn(){return ag||(ag=1,au=function(e){return e.size}),au}var ou,og;function PS(){return og||(og=1,ou=function(e){return{iterator:e,next:e.next,done:!1}}),ou}var iu,ig;function jt(){if(ig)return iu;ig=1;var e=nn(),r=Wr(),t=xr(),n=Bn(),a=PS(),o="Invalid size",i=RangeError,c=TypeError,l=Math.max,u=function(f,g){this.set=f,this.size=l(g,0),this.has=e(f.has),this.keys=e(f.keys)};return u.prototype={getIterator:function(){return a(r(t(this.keys,this.set)))},includes:function(f){return t(this.has,this.set,f)}},iu=function(f){r(f);var g=+f.size;if(g!==g)throw new c(o);var v=n(g);if(v<0)throw new i(o);return new u(f,v)},iu}var su,sg;function AS(){if(sg)return su;sg=1;var e=Tt(),r=It(),t=Nc(),n=Yn(),a=jt(),o=Kn(),i=Ct(),c=r.has,l=r.remove;return su=function(f){var g=e(this),v=a(f),h=t(g);return n(g)<=v.size?o(g,function(y){v.includes(y)&&l(h,y)}):i(v.getIterator(),function(y){c(h,y)&&l(h,y)}),h},su}var lu,lg;function Pt(){return lg||(lg=1,lu=function(){return!1}),lu}var ug;function $S(){if(ug)return Z0;ug=1;var e=je(),r=AS(),t=Ve(),n=Pt(),a=!n("difference",function(i){return i.size===0}),o=a||t(function(){var i={size:1,has:function(){return!0},keys:function(){var l=0;return{next:function(){var u=l++>1;return c.has(1)&&c.clear(),{done:u,value:2}}}}},c=new Set([1,2,3,4]);return c.difference(i).size!==3});return e({target:"Set",proto:!0,real:!0,forced:o},{difference:r}),Z0}var cg={},uu,fg;function qS(){if(fg)return uu;fg=1;var e=Tt(),r=It(),t=Yn(),n=jt(),a=Kn(),o=Ct(),i=r.Set,c=r.add,l=r.has;return uu=function(f){var g=e(this),v=n(f),h=new i;return t(g)>v.size?o(v.getIterator(),function(y){l(g,y)&&c(h,y)}):a(g,function(y){v.includes(y)&&c(h,y)}),h},uu}var dg;function MS(){if(dg)return cg;dg=1;var e=je(),r=Ve(),t=qS(),n=Pt(),a=!n("intersection",function(o){return o.size===2&&o.has(1)&&o.has(2)})||r(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return e({target:"Set",proto:!0,real:!0,forced:a},{intersection:t}),cg}var vg={},cu,pg;function kS(){if(pg)return cu;pg=1;var e=Tt(),r=It().has,t=Yn(),n=jt(),a=Kn(),o=Ct(),i=za();return cu=function(l){var u=e(this),f=n(l);if(t(u)<=f.size)return a(u,function(v){if(f.includes(v))return!1},!0)!==!1;var g=f.getIterator();return o(g,function(v){if(r(u,v))return i(g,"normal",!1)})!==!1},cu}var hg;function NS(){if(hg)return vg;hg=1;var e=je(),r=kS(),t=Pt(),n=!t("isDisjointFrom",function(a){return!a});return e({target:"Set",proto:!0,real:!0,forced:n},{isDisjointFrom:r}),vg}var gg={},fu,mg;function DS(){if(mg)return fu;mg=1;var e=Tt(),r=Yn(),t=Kn(),n=jt();return fu=function(o){var i=e(this),c=n(o);return r(i)>c.size?!1:t(i,function(l){if(!c.includes(l))return!1},!0)!==!1},fu}var yg;function zS(){if(yg)return gg;yg=1;var e=je(),r=DS(),t=Pt(),n=!t("isSubsetOf",function(a){return a});return e({target:"Set",proto:!0,real:!0,forced:n},{isSubsetOf:r}),gg}var bg={},du,xg;function LS(){if(xg)return du;xg=1;var e=Tt(),r=It().has,t=Yn(),n=jt(),a=Ct(),o=za();return du=function(c){var l=e(this),u=n(c);if(t(l)<u.size)return!1;var f=u.getIterator();return a(f,function(g){if(!r(l,g))return o(f,"normal",!1)})!==!1},du}var Sg;function FS(){if(Sg)return bg;Sg=1;var e=je(),r=LS(),t=Pt(),n=!t("isSupersetOf",function(a){return!a});return e({target:"Set",proto:!0,real:!0,forced:n},{isSupersetOf:r}),bg}var _g={},vu,wg;function BS(){if(wg)return vu;wg=1;var e=Tt(),r=It(),t=Nc(),n=jt(),a=Ct(),o=r.add,i=r.has,c=r.remove;return vu=function(u){var f=e(this),g=n(u).getIterator(),v=t(f);return a(g,function(h){i(f,h)?c(v,h):o(v,h)}),v},vu}var pu,Eg;function Ly(){return Eg||(Eg=1,pu=function(e){try{var r=new Set,t={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return r.clear(),r.add(4),function(){return{done:!0}}}})}},n=r[e](t);return n.size===1&&n.values().next().value===4}catch{return!1}}),pu}var Rg;function HS(){if(Rg)return _g;Rg=1;var e=je(),r=BS(),t=Ly(),n=Pt(),a=!n("symmetricDifference")||!t("symmetricDifference");return e({target:"Set",proto:!0,real:!0,forced:a},{symmetricDifference:r}),_g}var Og={},hu,Tg;function VS(){if(Tg)return hu;Tg=1;var e=Tt(),r=It().add,t=Nc(),n=jt(),a=Ct();return hu=function(i){var c=e(this),l=n(i).getIterator(),u=t(c);return a(l,function(f){r(u,f)}),u},hu}var Ig;function GS(){if(Ig)return Og;Ig=1;var e=je(),r=VS(),t=Ly(),n=Pt(),a=!n("union")||!t("union");return e({target:"Set",proto:!0,real:!0,forced:a},{union:r}),Og}var gu,Cg;function WS(){if(Cg)return gu;Cg=1,Cc(),CS(),$S(),MS(),NS(),zS(),FS(),HS(),GS(),Pc();var e=Ar();return gu=e.Set,gu}var mu,jg;function US(){if(jg)return mu;jg=1;var e=WS();return jc(),mu=e,mu}var yu,Pg;function KS(){return Pg||(Pg=1,yu=US()),yu}var YS=KS();const JS=We(YS);var Ag={},$g;function ZS(){if($g)return Ag;$g=1;var e=je(),r=qr(),t=$a(),n=Ve(),a=n(function(){t(1)});return e({target:"Object",stat:!0,forced:a},{keys:function(i){return t(r(i))}}),Ag}var bu,qg;function XS(){if(qg)return bu;qg=1,ZS();var e=Ar();return bu=e.Object.keys,bu}var xu,Mg;function QS(){if(Mg)return xu;Mg=1;var e=XS();return xu=e,xu}var Su,kg;function e_(){return kg||(kg=1,Su=QS()),Su}var r_=e_();const t_=We(r_);var Ng={},_u,Dg;function n_(){if(Dg)return _u;Dg=1;var e=cr(),r=Qe(),t=xr(),n=Ve(),a=$a(),o=Rc(),i=hc(),c=qr(),l=gc(),u=Object.assign,f=Object.defineProperty,g=r([].concat);return _u=!u||n(function(){if(e&&u({b:1},u(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},h={},y=Symbol("assign detection"),_="abcdefghijklmnopqrst";return v[y]=7,_.split("").forEach(function(T){h[T]=T}),u({},v)[y]!==7||a(u({},h)).join("")!==_})?function(h,y){for(var _=c(h),T=arguments.length,A=1,b=o.f,$=i.f;T>A;)for(var S=l(arguments[A++]),E=b?g(a(S),b(S)):a(S),M=E.length,j=0,x;M>j;)x=E[j++],(!e||t($,S,x))&&(_[x]=S[x]);return _}:u,_u}var zg;function a_(){if(zg)return Ng;zg=1;var e=je(),r=n_();return e({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r}),Ng}var wu,Lg;function o_(){if(Lg)return wu;Lg=1,a_();var e=Ar();return wu=e.Object.assign,wu}var Eu,Fg;function i_(){if(Fg)return Eu;Fg=1;var e=o_();return Eu=e,Eu}var Ru,Bg;function s_(){return Bg||(Bg=1,Ru=i_()),Ru}var l_=s_();const u_=We(l_);var Hg={},Ou,Vg;function c_(){if(Vg)return Ou;Vg=1;var e=qr(),r=Aa(),t=Ur();return Ou=function(a){for(var o=e(this),i=t(o),c=arguments.length,l=r(c>1?arguments[1]:void 0,i),u=c>2?arguments[2]:void 0,f=u===void 0?i:r(u,i);f>l;)o[l++]=a;return o},Ou}var Gg;function f_(){if(Gg)return Hg;Gg=1;var e=je(),r=c_(),t=Na();return e({target:"Array",proto:!0},{fill:r}),t("fill"),Hg}var Tu,Wg;function d_(){if(Wg)return Tu;Wg=1,f_();var e=Nr();return Tu=e("Array","fill"),Tu}var Iu,Ug;function v_(){if(Ug)return Iu;Ug=1;var e=_r(),r=d_(),t=Array.prototype;return Iu=function(n){var a=n.fill;return n===t||e(t,n)&&a===t.fill?r:a},Iu}var Cu,Kg;function p_(){if(Kg)return Cu;Kg=1;var e=v_();return Cu=e,Cu}var ju,Yg;function h_(){return Yg||(Yg=1,ju=p_()),ju}var g_=h_();const Dc=We(g_);function m_(e){if(fy(e))return e}function y_(e,r){var t=e==null?null:typeof Iy<"u"&&Ac(e)||e["@@iterator"];if(t!=null){var n=[],a=!0,o=!1,i,c;try{for(t=t.call(e);!(a=(i=t.next()).done)&&(n.push(i.value),!(r&&n.length===r));a=!0);}catch(l){o=!0,c=l}finally{try{!a&&t.return!=null&&t.return()}finally{if(o)throw c}}return n}}function b_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
87
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pu(e,r){return m_(e)||y_(e,r)||qy(e,r)||b_()}/**
|
|
59
88
|
* @license
|
|
60
89
|
* Copyright 2021 Google LLC
|
|
61
90
|
*
|
|
@@ -70,7 +99,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
70
99
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
71
100
|
* See the License for the specific language governing permissions and
|
|
72
101
|
* limitations under the License.
|
|
73
|
-
*/function
|
|
102
|
+
*/function Gt(e){return e<0?-1:e===0?0:1}function Jg(e,r,t){return(1-t)*e+t*r}function x_(e,r,t){return t<e?e:t>r?r:t}function S_(e,r,t){return t<e?e:t>r?r:t}function zc(e){return e=e%360,e<0&&(e=e+360),e}function __(e,r){const t=e[0]*r[0][0]+e[1]*r[0][1]+e[2]*r[0][2],n=e[0]*r[1][0]+e[1]*r[1][1]+e[2]*r[1][2],a=e[0]*r[2][0]+e[1]*r[2][1]+e[2]*r[2][2];return[t,n,a]}/**
|
|
74
103
|
* @license
|
|
75
104
|
* Copyright 2021 Google LLC
|
|
76
105
|
*
|
|
@@ -85,7 +114,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
85
114
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
86
115
|
* See the License for the specific language governing permissions and
|
|
87
116
|
* limitations under the License.
|
|
88
|
-
*/const
|
|
117
|
+
*/const w_=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],E_=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Fy=[95.047,100,108.883];function R_(e,r,t){return(255<<24|(e&255)<<16|(r&255)<<8|t&255)>>>0}function By(e){return e>>16&255}function Hy(e){return e>>8&255}function Vy(e){return e&255}function Gy(e,r,t){const n=E_,a=n[0][0]*e+n[0][1]*r+n[0][2]*t,o=n[1][0]*e+n[1][1]*r+n[1][2]*t,i=n[2][0]*e+n[2][1]*r+n[2][2]*t,c=Au(a),l=Au(o),u=Au(i);return R_(c,l,u)}function O_(e){const r=Jt(By(e)),t=Jt(Hy(e)),n=Jt(Vy(e));return __([r,t,n],w_)}function Zg(e){const r=(e+16)/116,t=r,n=r,a=24389/27,o=216/24389,c=e>8?r*r*r:e/a,l=r*r*r>o,u=l?n*n*n:e/a,f=l?t*t*t:e/a,g=Fy;return Gy(u*g[0],c*g[1],f*g[2])}function oc(e){const r=O_(e)[1]/100,t=216/24389;return r<=t?24389/27*r:116*Math.pow(r,.3333333333333333)-16}function Xg(e){return e>8?Math.pow((e+16)/116,3)*100:e/(24389/27)*100}function Jt(e){const r=e/255;return r<=.040449936?r/12.92*100:Math.pow((r+.055)/1.055,2.4)*100}function Au(e){const r=e/100;let t=0;return r<=.0031308?t=r*12.92:t=1.055*Math.pow(r,1/2.4)-.055,x_(0,255,Math.round(t*255))}function T_(){return Fy}/**
|
|
89
118
|
* @license
|
|
90
119
|
* Copyright 2021 Google LLC
|
|
91
120
|
*
|
|
@@ -100,7 +129,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
100
129
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
101
130
|
* See the License for the specific language governing permissions and
|
|
102
131
|
* limitations under the License.
|
|
103
|
-
*/class
|
|
132
|
+
*/class Vr{constructor(r,t,n,a,o,i,c,l,u,f){this.n=r,this.aw=t,this.nbb=n,this.ncb=a,this.c=o,this.nc=i,this.rgbD=c,this.fl=l,this.fLRoot=u,this.z=f}static make(r=T_(),t=200/Math.PI*Xg(50)/100,n=50,a=2,o=!1){const i=r,c=i[0]*.401288+i[1]*.650173+i[2]*-.051461,l=i[0]*-.250268+i[1]*1.204414+i[2]*.045854,u=i[0]*-.002079+i[1]*.048952+i[2]*.953127,f=.8+a/10,g=f>=.9?Jg(.59,.69,(f-.9)*10):Jg(.525,.59,(f-.8)*10);let v=o?1:f*(1-1/3.6*Math.exp((-t-42)/92));v=v>1?1:v<0?0:v;const h=f,y=[v*(100/c)+1-v,v*(100/l)+1-v,v*(100/u)+1-v],_=1/(5*t+1),T=_*_*_*_,A=1-T,b=T*t+.1*A*A*Math.cbrt(5*t),$=Xg(n)/r[1],S=1.48+Math.sqrt($),E=.725/Math.pow($,.2),M=E,j=[Math.pow(b*y[0]*c/100,.42),Math.pow(b*y[1]*l/100,.42),Math.pow(b*y[2]*u/100,.42)],x=[400*j[0]/(j[0]+27.13),400*j[1]/(j[1]+27.13),400*j[2]/(j[2]+27.13)],R=(2*x[0]+x[1]+.05*x[2])*E;return new Vr($,R,E,M,g,h,y,b,Math.pow(b,.25),S)}}Vr.DEFAULT=Vr.make();/**
|
|
104
133
|
* @license
|
|
105
134
|
* Copyright 2021 Google LLC
|
|
106
135
|
*
|
|
@@ -115,7 +144,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
115
144
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
116
145
|
* See the License for the specific language governing permissions and
|
|
117
146
|
* limitations under the License.
|
|
118
|
-
*/class
|
|
147
|
+
*/class Or{constructor(r,t,n,a,o,i,c,l,u){this.hue=r,this.chroma=t,this.j=n,this.q=a,this.m=o,this.s=i,this.jstar=c,this.astar=l,this.bstar=u}distance(r){const t=this.jstar-r.jstar,n=this.astar-r.astar,a=this.bstar-r.bstar,o=Math.sqrt(t*t+n*n+a*a);return 1.41*Math.pow(o,.63)}static fromInt(r){return Or.fromIntInViewingConditions(r,Vr.DEFAULT)}static fromIntInViewingConditions(r,t){const n=(r&16711680)>>16,a=(r&65280)>>8,o=r&255,i=Jt(n),c=Jt(a),l=Jt(o),u=.41233895*i+.35762064*c+.18051042*l,f=.2126*i+.7152*c+.0722*l,g=.01932141*i+.11916382*c+.95034478*l,v=.401288*u+.650173*f-.051461*g,h=-.250268*u+1.204414*f+.045854*g,y=-.002079*u+.048952*f+.953127*g,_=t.rgbD[0]*v,T=t.rgbD[1]*h,A=t.rgbD[2]*y,b=Math.pow(t.fl*Math.abs(_)/100,.42),$=Math.pow(t.fl*Math.abs(T)/100,.42),S=Math.pow(t.fl*Math.abs(A)/100,.42),E=Gt(_)*400*b/(b+27.13),M=Gt(T)*400*$/($+27.13),j=Gt(A)*400*S/(S+27.13),x=(11*E+-12*M+j)/11,R=(E+M-2*j)/9,P=(20*E+20*M+21*j)/20,I=(40*E+20*M+j)/20,W=Math.atan2(R,x)*180/Math.PI,z=W<0?W+360:W>=360?W-360:W,B=z*Math.PI/180,G=I*t.nbb,U=100*Math.pow(G/t.aw,t.c*t.z),X=4/t.c*Math.sqrt(U/100)*(t.aw+4)*t.fLRoot,ve=z<20.14?z+360:z,F=.25*(Math.cos(ve*Math.PI/180+2)+3.8),ae=5e4/13*F*t.nc*t.ncb*Math.sqrt(x*x+R*R)/(P+.305),le=Math.pow(ae,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),oe=le*Math.sqrt(U/100),J=oe*t.fLRoot,K=50*Math.sqrt(le*t.c/(t.aw+4)),ue=(1+100*.007)*U/(1+.007*U),ie=1/.0228*Math.log(1+.0228*J),ce=ie*Math.cos(B),Q=ie*Math.sin(B);return new Or(z,oe,U,X,J,K,ue,ce,Q)}static fromJch(r,t,n){return Or.fromJchInViewingConditions(r,t,n,Vr.DEFAULT)}static fromJchInViewingConditions(r,t,n,a){const o=4/a.c*Math.sqrt(r/100)*(a.aw+4)*a.fLRoot,i=t*a.fLRoot,c=t/Math.sqrt(r/100),l=50*Math.sqrt(c*a.c/(a.aw+4)),u=n*Math.PI/180,f=(1+100*.007)*r/(1+.007*r),g=1/.0228*Math.log(1+.0228*i),v=g*Math.cos(u),h=g*Math.sin(u);return new Or(n,t,r,o,i,l,f,v,h)}static fromUcs(r,t,n){return Or.fromUcsInViewingConditions(r,t,n,Vr.DEFAULT)}static fromUcsInViewingConditions(r,t,n,a){const o=t,i=n,c=Math.sqrt(o*o+i*i),u=(Math.exp(c*.0228)-1)/.0228/a.fLRoot;let f=Math.atan2(i,o)*(180/Math.PI);f<0&&(f+=360);const g=r/(1-(r-100)*.007);return Or.fromJchInViewingConditions(g,u,f,a)}toInt(){return this.viewed(Vr.DEFAULT)}viewed(r){const t=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(t/Math.pow(1.64-Math.pow(.29,r.n),.73),1/.9),a=this.hue*Math.PI/180,o=.25*(Math.cos(a+2)+3.8),i=r.aw*Math.pow(this.j/100,1/r.c/r.z),c=o*(5e4/13)*r.nc*r.ncb,l=i/r.nbb,u=Math.sin(a),f=Math.cos(a),g=23*(l+.305)*n/(23*c+11*n*f+108*n*u),v=g*f,h=g*u,y=(460*l+451*v+288*h)/1403,_=(460*l-891*v-261*h)/1403,T=(460*l-220*v-6300*h)/1403,A=Math.max(0,27.13*Math.abs(y)/(400-Math.abs(y))),b=Gt(y)*(100/r.fl)*Math.pow(A,1/.42),$=Math.max(0,27.13*Math.abs(_)/(400-Math.abs(_))),S=Gt(_)*(100/r.fl)*Math.pow($,1/.42),E=Math.max(0,27.13*Math.abs(T)/(400-Math.abs(T))),M=Gt(T)*(100/r.fl)*Math.pow(E,1/.42),j=b/r.rgbD[0],x=S/r.rgbD[1],R=M/r.rgbD[2],P=1.86206786*j-1.01125463*x+.14918677*R,I=.38752654*j+.62144744*x-.00897398*R,V=-.0158415*j-.03412294*x+1.04996444*R;return Gy(P,I,V)}}/**
|
|
119
148
|
* @license
|
|
120
149
|
* Copyright 2021 Google LLC
|
|
121
150
|
*
|
|
@@ -130,7 +159,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
130
159
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
131
160
|
* See the License for the specific language governing permissions and
|
|
132
161
|
* limitations under the License.
|
|
133
|
-
*/class
|
|
162
|
+
*/class _t{constructor(r,t,n){this.internalHue=r,this.internalChroma=t,this.internalTone=n,this.setInternalState(this.toInt())}static from(r,t,n){return new _t(r,t,n)}static fromInt(r){const t=Or.fromInt(r),n=oc(r);return new _t(t.hue,t.chroma,n)}toInt(){return ca(this.internalHue,this.internalChroma,this.internalTone)}get hue(){return this.internalHue}set hue(r){this.setInternalState(ca(zc(r),this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(r){this.setInternalState(ca(this.internalHue,r,this.internalTone))}get tone(){return this.internalTone}set tone(r){this.setInternalState(ca(this.internalHue,this.internalChroma,r))}setInternalState(r){const t=Or.fromInt(r),n=oc(r);this.internalHue=t.hue,this.internalChroma=t.chroma,this.internalTone=n}}const I_=.4,C_=1,j_=.2,P_=.01;function ca(e,r,t){return A_(zc(e),r,S_(0,100,t),Vr.DEFAULT)}function A_(e,r,t,n){if(r<1||Math.round(t)<=0||Math.round(t)>=100)return Zg(t);e=zc(e);let a=r,o=r,i=0,c=!0,l=null;for(;Math.abs(i-a)>=I_;){const u=$_(e,o,t);if(c){if(u!=null)return u.viewed(n);c=!1,o=i+(a-i)/2;continue}u===null?a=o:(l=u,i=o),o=i+(a-i)/2}return l===null?Zg(t):l.viewed(n)}function $_(e,r,t){let n=0,a=100,o=0,i=1e3,c=1e3,l=null;for(;Math.abs(n-a)>P_;){o=n+(a-n)/2;const f=Or.fromJch(o,r,e).toInt(),g=oc(f),v=Math.abs(t-g);if(v<j_){const h=Or.fromInt(f),y=h.distance(Or.fromJch(h.j,h.chroma,e));y<=C_&&y<=c&&(i=v,c=y,l=h)}if(i===0&&c===0)break;g<t?n=o:a=o}return l}/**
|
|
134
163
|
* @license
|
|
135
164
|
* Copyright 2021 Google LLC
|
|
136
165
|
*
|
|
@@ -145,125 +174,266 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
145
174
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
146
175
|
* See the License for the specific language governing permissions and
|
|
147
176
|
* limitations under the License.
|
|
148
|
-
*/const
|
|
149
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,u=!0,v=!1;return{s:function(){t=t.call(r)},n:function(){var l=t.next();return u=l.done,l},e:function(l){v=!0,s=l},f:function(){try{u||t.return==null||t.return()}finally{if(v)throw s}}}}function np(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var Zp=.95047,Qp=1,r1=1.08883,e1=.137931034,ZS=.206896552,t1=.12841855,QS=.008856452;function Qu(r){return Math.round(255*(r<=.00304?12.92*r:1.055*Math.pow(r,1/2.4)-.055))}function rs(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function es(r){return r>QS?Math.pow(r,1/3):r/t1+e1}function ts(r){return r>ZS?r*r*r:t1*(r-e1)}function ap(r){var e=r[0],t=r[1],n=r[2],o=(e+16)/116,s=isNaN(t)?o:o+t/500,u=isNaN(n)?o:o-n/200;return o=Qp*ts(o),[Qu(3.2404542*(s=Zp*ts(s))-1.5371385*o-.4985314*(u=r1*ts(u))),Qu(-.969266*s+1.8760108*o+.041556*u),n=Qu(.0556434*s-.2040259*o+1.0572252*u)]}function ns(r){var e;return ve(e="0".concat(r.toString(16))).call(e,-2)}var r_=180/Math.PI;function ct(r,e){return be(r,e)}var Mr={validateRgb:function(r){var e=r[0],t=r[1],n=r[2];return e>=0&&e<=255&&t>=0&&t<=255&&n>=0&&n<=255},labToRgb:ap,labToRgbHex:function(r){var e,t,n=ap(r);return je(e=je(t="#".concat(ns(n[0]))).call(t,ns(n[1]))).call(e,ns(n[2]))},rgbToLab:function(r){var e=(function(s){var u=s[0],v=s[1],l=s[2];return[es((.4124564*(u=rs(u))+.3575761*(v=rs(v))+.1804375*(l=rs(l)))/Zp),es((.2126729*u+.7151522*v+.072175*l)/Qp),es((.0193339*u+.119192*v+.9503041*l)/r1)]})(r),t=e[0],n=e[1],o=116*n-16;return[o<0?0:o,500*(t-n),200*(n-e[2])]},labToHcl:function(r){var e=r[0],t=r[1],n=r[2],o=Math.sqrt(t*t+n*n),s=(Math.atan2(n,t)*r_+360)%360;return Math.round(1e4*o)===0&&(s=NaN),[s,o,e]},diffSort:function(r,e){for(var t,n,o,s,u,v,l=[(e=ve(e).call(e)).shift()];e.length>0;){for(t=-1,n=-1/0,o=0;o<e.length;o++)for(s=e[o],v=0;v<l.length;v++)(u=r(s,l[v]))>n&&(n=u,t=o);l.push(e[t]),lt(e).call(e,t,1)}return l},distance:ct,contrast:function(r,e){return JS(r,e,!0)},sortColorsByComplementary:function(r,e){var t,n=ur(e).hsv(),o=zt(n);o[0]=(n[0]+180)%360;var s=zt(n);s[0]=(n[0]+330)%360;var u=function(p){return ur(p).lab()},v=function(p){return ur(p,"hsv").lab()},l=v(o),f=r[0],h=ct(l,u(r[0]));r.forEach((function(p){var S=ct(l,u(p));S<h&&(h=S,f=p)}));var y=v(s),d=Cs(t=Kt(r).call(r,(function(p,S){return ct(y,u(p))-ct(y,u(S))}))).call(t,(function(p){return p!==f}));return d.unshift(ur(e).hex()),d.push(f),d},sortColorsByDEThreshold:function(r,e){var t,n,o=ve(r).call(r);o.unshift();for(var s=Sr(o).call(o,(function(V){return ur.hex(V)})),u=ur(e),v=Kt(t=ve(s).call(s)).call(t,(function(V,yr){var Er=V.lab(),Ir=yr.lab(),Gr=u.lab();return be(Er,Gr)-be(Ir,Gr)})),l=u,f=l.lab(),h=ve(v).call(v),y=[],d=[],p=[];p.length<2||p[p.length-1]!==p[p.length-2];){for(var S=0,w=0;w<h.length;w++){var $=h[w],C=$.lab();be(C,f)>=30?(d.push($),f=(l=$).lab(),S+=1):y.push($)}p.push(S),h=y,y=[]}for(var b=ve(d).call(d),E=0,m=b.length-1;m>0;m--){var O=be(b[m].lab(),u.lab());if(!(O<30||O>55))break;b[m],h.unshift(b[m]),E+=1}if(E&<(d).call(d,d.length-E,E),h.length){var M,F=XS(h);try{for(F.s();!(M=F.n()).done;){for(var q,x,k=M.value,A=[],B=je(q=je(x=[u]).call(x,d)).call(q,[u]),G=1;G<B.length-1;G++){var W,Q=B[G-1],hr=B[G],or=be(Q.lab(),k.lab()),wr=be(hr.lab(),k.lab()),Pr=Sr(W=[or,wr]).call(W,(function(V){var yr=V-30;return yr>0?Math.pow(yr,2):Math.pow(Math.abs(yr),4)})).reduce((function(V,yr){return V+yr}),0);A.push({pos:G,deA:or,deB:wr,deMul:Pr})}Kt(A).call(A,(function(V,yr){return V.deMul-yr.deMul})),lt(d).call(d,A[0].pos-1,0,k)}}catch(V){F.e(V)}finally{F.f()}}var Dr=je(n=[u]).call(n,d);return Sr(Dr).call(Dr,(function(V){return V.hex()}))},generateLockedColor:function(r){return ur(r).lab()},getW3RelativeLuminance:cs,sRGBDecode:Xp},e_=(function(){function r(e){var t,n;$s(this,r),e||(t=0,n=Math.pow(2,31)-1,e=t+Math.floor(Math.random()*(n-t+1))),this.seed=e%2147483647,this.seed<=0&&(this.seed+=2147483646)}return Ms(r,[{key:"next",value:function(){return this.seed=16807*this.seed%2147483647,this.seed}},{key:"nextFloat",value:function(){return(this.next()-1)/2147483646}}]),r})(),n1={random:[0,360,15,98,40,98]},op={bright:[[330,360,42,88,68,92],[320,330,54,85,64,91],[300,320,46,75,62,89],[280,300,36,84,59,92],[270,280,5,88,54,87],[240,270,12,74,62,95],[210,240,13,82,58,93],[200,210,25,88,72,82],[180,200,14,70,57,90],[150,180,22,76,64,90],[135,150,42,85,68,82],[120,135,43,95,62,93],[110,120,49,89,66,92],[91,110,56,79,79,93],[70,91,65,95,78,99],[60,70,44,84,65,98],[30,60,41,79,72,92],[0,30,42,88,65,88]],contrast:[[330,360,39,69,54,74],[320,330,28,86,44,65],[300,320,80,100,33,53],[280,300,53,90,30,60],[270,280,27,47,30,55],[240,270,54,82,62,80],[210,240,25,88,57,90],[200,210,24,47,66,86],[180,200,30,62,77,88],[150,180,45,86,60,87],[120,150,63,92,58,87],[110,120,50,88,66,90],[90,110,35,83,70,95],[60,90,68,89,78,94],[30,60,43,87,55,85],[0,30,48,69,61,71]],composed:[[330,360,55,95,35,70],[320,330,25,83,44,70],[300,320,55,90,40,74],[280,300,38,90,42,67],[270,280,38,95,28,65],[240,270,20,88,34,78],[210,240,15,77,40,85],[200,210,10,88,33,85],[180,200,25,82,43,77],[150,180,35,89,44,68],[135,150,15,88,42,85],[120,135,15,95,46,85],[110,120,45,90,44,80],[90,110,35,78,67,95],[70,90,65,98,80,98],[60,70,42,85,45,90],[30,60,53,93,45,85],[0,30,43,83,38,65]]},ip={colorFilter:null,colorSpace:"default",quality:100,ultraPrecision:!1,seed:null},t_=new tS(sS(n1));function up(r,e){var t;if(typeof r!="number"||r<2)throw new Error("expecting a color count > 2.");e=(function(v){var l,f=pS({},ip,v);if(typeof f.quality!="number"||isNaN(f.quality)||f.quality<1)throw new Error("invalid `quality`. Expecting a number > 0.");if(typeof f.ultraPrecision!="boolean")throw new Error("invalid `ultraPrecision`. Expecting a boolean.");if(f.seed&&typeof f.seed!="number")throw new Error("invalid `seed`. Expecting an integer or a string.");if(f.colorFilter||!f.colorSpace)return f;if(typeof f.colorSpace=="string"){if(!t_.has(f.colorSpace))throw new Error('unknown `colorSpace` "'.concat(f.colorSpace,'".'));l=n1[f.colorSpace]}else if(Array.isArray(f.colorSpace)){if(f.colorSpace.length!==6)throw new Error("expecting a `colorSpace` array of length 6 ([hmin, hmax, cmin, cmax, lmin, lmax]).");l=f.colorSpace}else l=[f.colorSpace.hmin||0,f.colorSpace.hmax||360,f.colorSpace.cmin||0,f.colorSpace.cmax||100,f.colorSpace.lmin||0,f.colorSpace.lmax||100];return f.colorFilter=function(h,y){var d=Mr.labToHcl(y);return l[0]<l[1]?d[0]>=l[0]&&d[0]<=l[1]&&d[1]>=l[2]&&d[1]<=l[3]&&d[2]>=l[4]&&d[2]<=l[5]:(d[0]>=l[0]||d[0]<=l[1])&&d[1]>=l[2]&&d[1]<=l[3]&&d[2]>=l[4]&&d[2]<=l[5]},f})(e);var n=new e_(e.seed),o=Mr.distance,s=function(v,l){return!!Mr.validateRgb(v)&&(!e.colorFilter||!!e.colorFilter(v,l))},u=(function(v,l,f){for(var h,y,d=new Array(l),p=0;p<l;p++){do h=[100*v(),100*(2*v()-1),100*(2*v()-1)],y=Mr.labToRgb(h);while(!f(y,h));d[p]=h}return d})((function(){return n.nextFloat()}),r,s);return(t=e)!==null&&t!==void 0&&t.color&&(u[0]=ur(e.color).lab()),(function(v,l,f,h){var y,d,p,S,w=[],$=[],C=4,b=10,E=10;for(h.ultraPrecision&&(C=1,b=5,E=5),y=0;y<=100;y+=C)for(d=-100;d<=100;d+=b)for(p=-100;p<=100;p+=E)S=[y,d,p],l(Mr.labToRgb(S),S)&&(w.push(S),$.push(null));for(var m,O,M,F,q,x,k,A,B,G=h.quality||ip.quality,W=w.length,Q=f.length;G-- >0;){for(m=0;m<W;m++)for(M=w[m],q=1/0,O=0;O<Q;O++)(F=v(f[O],M))<q&&(q=F,$[m]=O);for(x=ve(w).call(w),O=1;O<Q;O++){for(k=0,A=[0,0,0],m=0;m<W;m++)$[m]===O&&(k+=1,A[0]+=w[m][0],A[1]+=w[m][1],A[2]+=w[m][2]);if(k!==0)if(A[0]/=k,A[1]/=k,A[2]/=k,l(Mr.labToRgb(A),A))f[O]=A;else{var hr=x.length>0?x:w;for(q=1/0,B=-1,m=0;m<hr.length;m++)(F=v(hr[m],A))<q&&(q=F,B=m);f[O]=hr[B],x=Cs(x).call(x,(function(or){return or[0]!==f[O][0]||or[1]!==f[O][1]||or[2]!==f[O][2]}))}}}})(o,s,u,e),u=Mr.diffSort(o,u),Sr(u).call(u,Mr.labToRgbHex)}function n_(r,e){var t;return typeof e.colorSpace=="string"&&op[e.colorSpace]?(function(n,o,s){var u=[];if(!Array.isArray(s))return u;var v=function(d){return Cs(s).call(s,(function(p){return p[0]<=d&&d<p[1]}))[0]},l=function(d){for(o.colorSpace=d;;){var p=up(5,o)[3];if(!Np(u).call(u,p)){u.push(p);break}}};if(s.length===n)s.forEach((function(d){return l(d)}));else for(var f=360/n,h=1;h<=n;h++){var y=h*f-Math.random()*f;l(v(y))}return u})(r-1,e,op[e.colorSpace]):lt(t=up(r,e)).call(t,1,r)}function a_(r,e){for(var t=ur(r).lab(),n=100*(1-1/e),o=n/(e-1),s=.5*(100-n),u=(function(y,d,p){for(var S=[],w=d;w>y;w-=p)S.push(w);return S})(s,s+e*o,o),v=9999,l=0;l<e;l++){var f=t[0]-u[l];Math.abs(f)<Math.abs(v)&&(v=f)}var h=(function(y,d){var p={diff:1/0,idx:-1};d.forEach((function(w,$){Math.abs(y-w)<p.diff&&(p.diff=Math.abs(y-w),p.idx=$)}));var S=je(d).call(d);return S[p.idx]=y,S})(t[0],Sr(u).call(u,(function(y){return y+v})));return Sr(h).call(h,(function(y){return ur.lab(y,t[1],t[2])}))}var o_=function(r,e){var t,n,o,s=ur(r).hex()!=="#ffffff",u=s?e+1:e,v=ur(r).set("lch.l",17).hex(),l=ur(r).set("lch.l",9999).hex(),f=Sr(t=ks(n=Array(u)).call(n,1)).call(t,(function(d,p){return p/u})),h=ur.scale((o=[l,r,v],Kt(o).call(o,(function(d,p){return ur(p).get("lch.l")-ur(d).get("lch.l")})))).mode("hsl").correctLightness(),y=Sr(f).call(f,(function(d){return h(d).hex()}));return s&&y.shift(),y},i_=function(r,e,t){var n=o_(r,e);t==="range"&&(n=ur.scale(a_(r,e)).correctLightness().colors(e));var o=Sr(n).call(n,(function(u){return us.deltaE(u,r)})),s=Math.min.apply(Math,zt(o));return Sr(n).call(n,(function(u){return us.deltaE(u,r)===s?r:u}))};function vt(r){return typeof r=="string"?Se.fromInt(Yh(r)):Sr(r).call(r,(function(e){return Se.fromInt(Yh(e))}))}function fs(r){return Array.isArray(r)?Sr(r).call(r,(function(e){return Vh(Se.from(e.hue,e.chroma,e.tone).toInt())})):Vh(Se.from(r.hue,r.chroma,r.tone).toInt())}var a1=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;return Math.round(r*Math.pow(10,e))/Math.pow(10,e)},u_=function(r,e,t,n){var o;if(!r)return ks(o=new Array(n)).call(o,t);for(var s=[],u=(function(l,f,h){var y=[];if(!l||l.length<2)return function(E){return f};for(var d=1;d<l.length;d++){var p=l[d-1],S=p.x,w=p.y,$=l[d],C=$.x,b=($.y-w)/(C-S);y.push({k:b,range:[S,C],base:w,formula:function(E,m){var O=this.base+(E-this.range[0])*this.k,M=m/f;return Math.min(100,Math.max(0,m+O*M))}})}return function(E,m){var O,M=10*Math.min(E,h)/h;return((O=US(y).call(y,(function(F){return F.range[0]<=M&&F.range[1]>=M})))===null||O===void 0?void 0:O.formula(M,m))||m}})(r,e||r[0].y||t,n),v=1;v<=n;v++)s.unshift(a1(u(v,t)));return s},s_={Blue:{bezier:[.28,.22,.86,.98],toneRange:[12,96]},Cyan:{bezier:[.63,.58,.79,.92],toneRange:[13,96]},Green:{bezier:[.85,.82,.84,1],toneRange:[12,96],piecewise:[{x:0,y:0},{x:5,y:0},{x:6,y:-5},{x:7,y:-7},{x:8,y:-18},{x:9,y:-30},{x:10,y:-40}],piecewiseBase:55},Lemon:{bezier:[.62,.51,.39,.82],toneRange:[12,98],piecewise:[{x:0,y:0},{x:7,y:0},{x:8,y:-10},{x:9,y:-25},{x:10,y:-50}],piecewiseBase:73},Yellow:{bezier:[.3,.25,.5,.8],toneRange:[12,97]},Orange:{bezier:[.31,.2,.7,.83],toneRange:[13,96],piecewise:[{x:0,y:0},{x:6,y:0},{x:7,y:-11},{x:8,y:-2},{x:9,y:0},{x:10,y:0}],piecewiseBase:59},Red:{bezier:[.31,.26,.7,.83],toneRange:[12,96],piecewise:[{x:0,y:-12},{x:2,y:-12},{x:3,y:-11},{x:4,y:-7},{x:5,y:-2},{x:6,y:-6},{x:7,y:0},{x:10,y:0}],piecewiseBase:72},Pink:{bezier:[.55,.45,.86,.99],toneRange:[12,96],piecewise:[{x:0,y:0},{x:1,y:0},{x:2,y:-12},{x:3,y:-11},{x:4,y:-7},{x:5,y:-2},{x:6,y:0},{x:10,y:0}],piecewiseBase:75},Purple:{bezier:[.25,.13,.71,.88],toneRange:[10,96]},Lime:{bezier:[.75,.68,.84,.99],toneRange:[12,97],piecewise:[{x:0,y:0},{x:5,y:0},{x:6,y:-5},{x:7,y:-7},{x:8,y:-18},{x:9,y:-30},{x:10,y:-40}],piecewiseBase:55},Mint:{bezier:[.46,.4,.84,.96],toneRange:[13,97],piecewise:[{x:0,y:0},{x:5,y:0},{x:6,y:-5},{x:7,y:-7},{x:8,y:-18},{x:9,y:-30},{x:10,y:-40}],piecewiseBase:55}},c_={"#2ba471":"#00a870","#d54941":"#d94941","#43c0c6":"#00c8cF","#8eba36":"#81b305","#00c3c3":"#1fffff"};function f_(r){var e,t,n;if(typeof r=="string"){e=r;for(var o=arguments.length,s=new Array(o>1?o-1:0),u=1;u<o;u++)s[u-1]=arguments[u];t=s[0],n=!1}else e=r.color,t=r.step,n=!!r.remainInput;return l_({color:e.toLowerCase(),step:t,remainInput:n})}function l_(r){var e,t,n=r.color,o=r.step,s=r.remainInput,u=vt(n),v=c_[n]||n,l=vt(v),f=s_[(function(b){var E=b%360;switch(!0){case(E>=10&&E<30):return"Red";case(E>=30&&E<60):return"Orange";case(E>=60&&E<102):return"Yellow";case(E>=102&&E<115):return"Lemon";case(E>=115&&E<130):return"Lime";case(E>=130&&E<180):return"Green";case(E>=180&&E<210):return"Mint";case(E>=210&&E<240):return"Cyan";case(E>=240&&E<285):return"Blue";case(E>=285&&E<325):return"Purple";default:return"Pink"}})(l.hue)],h=(function(b){var E=Uu(b.range,2),m=E[0],O=E[1],M=Uu(b.bezierMeta,4),F=M[0],q=M[1],x=M[2],k=M[3],A=b.count,B=[];try{for(var G=YS(F,q,x,k),W=Math.abs(O-m),Q=1/(A-1),hr=0;hr<A;hr++){var or=G(hr*Q)*W;if(m+or>O)break;B.unshift(a1(m+or))}}catch{}return B})({range:f.toneRange,bezierMeta:f.bezier,count:o});if(!h.length)for(var y=Uu(f.toneRange,2),d=y[0],p=y[1],S=(p-d)/(o-1),w=d;w<=p;w+=S)h.push(w);var $=(function(b){var E=vt("#fff");return b.hue===E.hue&&b.chroma===E.chroma&&b.tone===E.tone})(l)?ks(e=Array(o)).call(e,0):u_(f.piecewise,f.piecewiseBase,l.chroma,o),C=(function(b){var E=b.hctColor,m=b.originColor,O=b.originHctColor,M=b.chromas,F=b.tones,q=b.remainInput,x=Sr(F).call(F,(function(G,W){var Q=M?.[W];return{hue:E.hue,chroma:typeof Q=="number"?Q:E.chroma,tone:G}})),k=-1,A=1/0,B=ur(m).lab();return x.forEach((function(G,W){var Q=fs(G),hr=Mr.distance(ur(Q).lab(),B);hr<A&&(k=W,A=hr)})),q&<(x).call(x,k,1,O),{colors:x,primary:k}})({originColor:n,originHctColor:u,hctColor:l,chromas:$,tones:h,remainInput:l.tone>f.toneRange[1]||l.tone<f.toneRange[0]||s});return{colors:Sr(t=C.colors).call(t,(function(b){return fs(b)})),primary:C.primary}}function as(r){var e=[96,94,92,88,80,68,58,50,40,32,24,18,14,8],t=vt(r);return r.toLowerCase()==="#0052d9"&&(e[8]=t.tone),Sr(e).call(e,(function(n){return fs({hue:t.hue,chroma:t.chroma,tone:n})}))}var De=(function(){function r(){$s(this,r)}return Ms(r,null,[{key:"getRandomPalette",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.color,n=t===void 0?"#0052d9":t,o=e.colorGamut,s=e.number,u=s===void 0?8:s,v=e.sortMethod,l=v===void 0?"DEThreshold":v,f=Mr.generateLockedColor(n),h={color:f,quality:100,colorSpace:o||"bright"},y=n_(u,h),d=(l==="DEThreshold"?Mr.sortColorsByDEThreshold:Mr.sortColorsByComplementary)(y,n);return d}},{key:"getPaletteByGradation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{colors:[]},t=e.colors,n=e.step,o=n===void 0?10:n,s=e.method,u=s===void 0?"darken":s;return Sr(t).call(t,(function(v){return i_(v,o,u)}))}},{key:"getColorGradations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{colors:[]},t=e.colors,n=e.step,o=n===void 0?10:n,s=e.remainInput,u=s!==void 0&&s;return Sr(t).call(t,(function(v){return f_({color:v,step:o,remainInput:u})}))}},{key:"getNeutralColorGradation",value:function(e){return as(e)}},{key:"getNeutralColor",value:function(e){return(function(t){var n=as(t),o=as("#000000");return Sr(n).call(n,(function(s,u){var v=vt(s);return v.hue>=102&&v.hue<210?ur.average([s,o[u]],"rgb",[.08,.92]).hex():ur.average([s,o[u]],"rgb",[.12,.88]).hex()}))})(e)}}]),r})(),dt=(function(){function r(){$s(this,r)}return Ms(r,null,[{key:"color2arr",value:function(e){var t;return((t=e.match(/(\d|\.)+%?/g))===null||t===void 0?void 0:Sr(t).call(t,(function(n){return Np(n).call(n,"%")?parseFloat(n)/100:Number(n)})))||[0,0,0]}},{key:"similar",value:function(e,t){return Mr.distance(ur(e).lab(),ur(t).lab())}},{key:"contrast",value:function(e,t){return Mr.contrast(ur(e).rgb(),ur(t).rgb())}},{key:"scale",value:function(e,t,n){return ur.scale([e,t]).colors(n)}},{key:"sortColorsByComplementary",value:function(e,t){return Mr.sortColorsByComplementary(e,t)}},{key:"sortColorsByDEThreshold",value:function(e,t){return Mr.sortColorsByDEThreshold(e,t)}},{key:"getRandomPalette",value:function(e){return De.getRandomPalette(e)}},{key:"getPaletteByGradation",value:function(e){return De.getPaletteByGradation(e)}},{key:"getRandomPaletteByGradation",value:function(e){return De.getPaletteByGradation(e)}},{key:"getColorGradations",value:function(e){return De.getColorGradations(e)}},{key:"getNeutralColorGradation",value:function(e){return De.getNeutralColorGradation(e)}},{key:"getNeutralColor",value:function(e){return De.getNeutralColor(e)}}]),r})();qm(dt,"colorTransform",(function(r){var e,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"hex",n=arguments.length>2?arguments[2]:void 0;if(t==="name")e=ur(r)[n]();else if(t!=="hex"&&typeof r=="string"){var o=dt.color2arr(r);e=ur(o,t)[n]()}else e=t!=="hex"&&Array.isArray(r)?ur(zt(r),t)[n]():ur(r)[n]();return Array.isArray(e)?Sr(e).call(e,(function(s){return parseFloat(s.toFixed(3))})):e}));var os={exports:{}},sp;function v_(){return sp||(sp=1,(function(r,e){(function(){function t(n,o){var s,u=0,v=n.length,l,f="",h,y,d,p,S,w,$,C,b=!0,E=!1,m;s=arguments.length>1?o:{},typeof s.indent>"u"&&(s.indent=" "),typeof s.openbrace=="string"&&(b=s.openbrace==="end-of-line"),typeof s.autosemicolon=="boolean"&&(E=s.autosemicolon);function O(A){return A===" "||A===`
|
|
150
|
-
`||
|
|
151
|
-
`,
|
|
152
|
-
`&&(
|
|
153
|
-
`),
|
|
154
|
-
`,
|
|
155
|
-
`);
|
|
177
|
+
*/const Qg=e=>{const r=By(e),t=Hy(e),n=Vy(e),a=[r.toString(16),t.toString(16),n.toString(16)];for(const[o,i]of a.entries())i.length===1&&(a[o]="0"+i);return"#"+a.join("")},em=e=>{e=e.replace("#","");const r=e.length===3,t=e.length===6,n=e.length===8;if(!r&&!t&&!n)throw new Error("unexpected hex "+e);let a=0,o=0,i=0;return r?(a=Br(e.slice(0,1).repeat(2)),o=Br(e.slice(1,2).repeat(2)),i=Br(e.slice(2,3).repeat(2))):t?(a=Br(e.slice(0,2)),o=Br(e.slice(2,4)),i=Br(e.slice(4,6))):n&&(a=Br(e.slice(2,4)),o=Br(e.slice(4,6)),i=Br(e.slice(6,8))),(255<<24|(a&255)<<16|(o&255)<<8|i&255)>>>0};function Br(e){return parseInt(e,16)}var rm={},tm;function q_(){if(tm)return rm;tm=1;var e=je(),r=Un().find,t=Na(),n="find",a=!0;return n in[]&&Array(1)[n](function(){a=!1}),e({target:"Array",proto:!0,forced:a},{find:function(i){return r(this,i,arguments.length>1?arguments[1]:void 0)}}),t(n),rm}var $u,nm;function M_(){if(nm)return $u;nm=1,q_();var e=Nr();return $u=e("Array","find"),$u}var qu,am;function k_(){if(am)return qu;am=1;var e=_r(),r=M_(),t=Array.prototype;return qu=function(n){var a=n.find;return n===t||e(t,n)&&a===t.find?r:a},qu}var Mu,om;function N_(){if(om)return Mu;om=1;var e=k_();return Mu=e,Mu}var ku,im;function D_(){return im||(im=1,ku=N_()),ku}var z_=D_();const L_=We(z_);var Nu,sm;function F_(){if(sm)return Nu;sm=1;var e=4,r=.001,t=1e-7,n=10,a=11,o=1/(a-1),i=typeof Float32Array=="function";function c(_,T){return 1-3*T+3*_}function l(_,T){return 3*T-6*_}function u(_){return 3*_}function f(_,T,A){return((c(T,A)*_+l(T,A))*_+u(T))*_}function g(_,T,A){return 3*c(T,A)*_*_+2*l(T,A)*_+u(T)}function v(_,T,A,b,$){var S,E,M=0;do E=T+(A-T)/2,S=f(E,b,$)-_,S>0?A=E:T=E;while(Math.abs(S)>t&&++M<n);return E}function h(_,T,A,b){for(var $=0;$<e;++$){var S=g(T,A,b);if(S===0)return T;var E=f(T,A,b)-_;T-=E/S}return T}function y(_){return _}return Nu=function(T,A,b,$){if(!(0<=T&&T<=1&&0<=b&&b<=1))throw new Error("bezier x values must be in [0, 1] range");if(T===A&&b===$)return y;for(var S=i?new Float32Array(a):new Array(a),E=0;E<a;++E)S[E]=f(E*o,T,b);function M(j){for(var x=0,R=1,P=a-1;R!==P&&S[R]<=j;++R)x+=o;--R;var I=(j-S[R])/(S[R+1]-S[R]),V=x+I*o,W=g(V,T,b);return W>=r?h(j,V,T,b):W===0?V:v(j,x,x+o,T,b)}return function(x){return x===0?0:x===1?1:f(M(x),A,$)}},Nu}var B_=F_();const H_=We(B_);var yt=function(e,r){var t=function(z){return .017453292519943295*z},n=function(z){return 57.29577951308232*z},a=e[0],o=e[1],i=e[2],c=r[0],l=r[1],u=r[2],f=(a+c)/2,g=(Math.sqrt(Math.pow(o,2)+Math.pow(i,2))+Math.sqrt(Math.pow(l,2)+Math.pow(u,2)))/2,v=(1-Math.sqrt(Math.pow(g,7)/(Math.pow(g,7)+Math.pow(25,7))))/2,h=o*(1+v),y=l*(1+v),_=Math.sqrt(Math.pow(h,2)+Math.pow(i,2)),T=Math.sqrt(Math.pow(y,2)+Math.pow(u,2)),A=(_+T)/2,b=n(Math.atan2(i,h));b<0&&(b+=360);var $=n(Math.atan2(u,y));$<0&&($+=360);var S=Math.abs(b-$)>180?(b+$+360)/2:(b+$)/2,E=1-.17*Math.cos(t(S-30))+.24*Math.cos(t(2*S))+.32*Math.cos(t(3*S+6))-.2*Math.cos(t(4*S-63)),M=$-b;Math.abs(M)>180&&($<=b?M+=360:M-=360);var j=c-a,x=T-_;M=2*Math.sqrt(_*T)*Math.sin(t(M)/2);var R=1+.015*Math.pow(f-50,2)/Math.sqrt(20+Math.pow(f-50,2)),P=1+.045*A,I=1+.015*A*E,V=30*Math.exp(-Math.pow((S-275)/25,2)),W=-(2*Math.sqrt(Math.pow(A,7)/(Math.pow(A,7)+Math.pow(25,7))))*Math.sin(2*t(V));return Math.sqrt(Math.pow(j/(1*R),2)+Math.pow(x/(1*P),2)+Math.pow(M/(1*I),2)+W*(x/(1*P))*(M/(1*I)))};function V_(e,r){var t=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=ic(e),a=ic(r),o=(n+.05)/(a+.05);return t&&o<1&&(o=1/o),o}var ic=function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],t=Xe(e).call(e,(function(n){return n/255}));return r&&(t=Wy(t,!1)),.2126*t[0]+.7152*t[1]+.0722*t[2]},Wy=function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return Xe(e).call(e,(function(t){var n,a=r?t/255:t;return n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),r?255*n:n}))};function G_(e,r){var t=H3!==void 0&&Ac(e)||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=(function(l,u){var f;if(l){if(typeof l=="string")return lm(l,u);var g=lt(f=Object.prototype.toString.call(l)).call(f,8,-1);if(g==="Object"&&l.constructor&&(g=l.constructor.name),g==="Map"||g==="Set")return L3(l);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return lm(l,u)}})(e))||r){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
178
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var l=t.next();return i=l.done,l},e:function(l){c=!0,o=l},f:function(){try{i||t.return==null||t.return()}finally{if(c)throw o}}}}function lm(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var Uy=.95047,Ky=1,Yy=1.08883,Jy=.137931034,W_=.206896552,Zy=.12841855,U_=.008856452;function Du(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function zu(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Lu(e){return e>U_?Math.pow(e,1/3):e/Zy+Jy}function Fu(e){return e>W_?e*e*e:Zy*(e-Jy)}function um(e){var r=e[0],t=e[1],n=e[2],a=(r+16)/116,o=isNaN(t)?a:a+t/500,i=isNaN(n)?a:a-n/200;return a=Ky*Fu(a),[Du(3.2404542*(o=Uy*Fu(o))-1.5371385*a-.4985314*(i=Yy*Fu(i))),Du(-.969266*o+1.8760108*a+.041556*i),n=Du(.0556434*o-.2040259*a+1.0572252*i)]}function Bu(e){var r;return lt(r="0".concat(e.toString(16))).call(r,-2)}var K_=180/Math.PI;function _n(e,r){return yt(e,r)}var lr={validateRgb:function(e){var r=e[0],t=e[1],n=e[2];return r>=0&&r<=255&&t>=0&&t<=255&&n>=0&&n<=255},labToRgb:um,labToRgbHex:function(e){var r,t,n=um(e);return Kt(r=Kt(t="#".concat(Bu(n[0]))).call(t,Bu(n[1]))).call(r,Bu(n[2]))},rgbToLab:function(e){var r=(function(o){var i=o[0],c=o[1],l=o[2];return[Lu((.4124564*(i=zu(i))+.3575761*(c=zu(c))+.1804375*(l=zu(l)))/Uy),Lu((.2126729*i+.7151522*c+.072175*l)/Ky),Lu((.0193339*i+.119192*c+.9503041*l)/Yy)]})(e),t=r[0],n=r[1],a=116*n-16;return[a<0?0:a,500*(t-n),200*(n-r[2])]},labToHcl:function(e){var r=e[0],t=e[1],n=e[2],a=Math.sqrt(t*t+n*n),o=(Math.atan2(n,t)*K_+360)%360;return Math.round(1e4*a)===0&&(o=NaN),[o,a,r]},diffSort:function(e,r){for(var t,n,a,o,i,c,l=[(r=lt(r).call(r)).shift()];r.length>0;){for(t=-1,n=-1/0,a=0;a<r.length;a++)for(o=r[a],c=0;c<l.length;c++)(i=e(o,l[c]))>n&&(n=i,t=a);l.push(r[t]),In(r).call(r,t,1)}return l},distance:_n,contrast:function(e,r){return V_(e,r,!0)},sortColorsByComplementary:function(e,r){var t,n=Ne(r).hsv(),a=_a(n);a[0]=(n[0]+180)%360;var o=_a(n);o[0]=(n[0]+330)%360;var i=function(h){return Ne(h).lab()},c=function(h){return Ne(h,"hsv").lab()},l=c(a),u=e[0],f=_n(l,i(e[0]));e.forEach((function(h){var y=_n(l,i(h));y<f&&(f=y,u=h)}));var g=c(o),v=kc(t=ya(e).call(e,(function(h,y){return _n(g,i(h))-_n(g,i(y))}))).call(t,(function(h){return h!==u}));return v.unshift(Ne(r).hex()),v.push(u),v},sortColorsByDEThreshold:function(e,r){var t,n,a=lt(e).call(e);a.unshift();for(var o=Xe(a).call(a,(function(H){return Ne.hex(H)})),i=Ne(r),c=ya(t=lt(o).call(o)).call(t,(function(H,ae){var le=H.lab(),oe=ae.lab(),J=i.lab();return yt(le,J)-yt(oe,J)})),l=i,u=l.lab(),f=lt(c).call(c),g=[],v=[],h=[];h.length<2||h[h.length-1]!==h[h.length-2];){for(var y=0,_=0;_<f.length;_++){var T=f[_],A=T.lab();yt(A,u)>=30?(v.push(T),u=(l=T).lab(),y+=1):g.push(T)}h.push(y),f=g,g=[]}for(var b=lt(v).call(v),$=0,S=b.length-1;S>0;S--){var E=yt(b[S].lab(),i.lab());if(!(E<30||E>55))break;b[S],f.unshift(b[S]),$+=1}if($&&In(v).call(v,v.length-$,$),f.length){var M,j=G_(f);try{for(j.s();!(M=j.n()).done;){for(var x,R,P=M.value,I=[],V=Kt(x=Kt(R=[i]).call(R,v)).call(x,[i]),W=1;W<V.length-1;W++){var z,B=V[W-1],G=V[W],U=yt(B.lab(),P.lab()),X=yt(G.lab(),P.lab()),ve=Xe(z=[U,X]).call(z,(function(H){var ae=H-30;return ae>0?Math.pow(ae,2):Math.pow(Math.abs(ae),4)})).reduce((function(H,ae){return H+ae}),0);I.push({pos:W,deA:U,deB:X,deMul:ve})}ya(I).call(I,(function(H,ae){return H.deMul-ae.deMul})),In(v).call(v,I[0].pos-1,0,P)}}catch(H){j.e(H)}finally{j.f()}}var F=Kt(n=[i]).call(n,v);return Xe(F).call(F,(function(H){return H.hex()}))},generateLockedColor:function(e){return Ne(e).lab()},getW3RelativeLuminance:ic,sRGBDecode:Wy},Y_=(function(){function e(r){var t,n;$c(this,e),r||(t=0,n=Math.pow(2,31)-1,r=t+Math.floor(Math.random()*(n-t+1))),this.seed=r%2147483647,this.seed<=0&&(this.seed+=2147483646)}return Mc(e,[{key:"next",value:function(){return this.seed=16807*this.seed%2147483647,this.seed}},{key:"nextFloat",value:function(){return(this.next()-1)/2147483646}}]),e})(),Xy={random:[0,360,15,98,40,98]},cm={bright:[[330,360,42,88,68,92],[320,330,54,85,64,91],[300,320,46,75,62,89],[280,300,36,84,59,92],[270,280,5,88,54,87],[240,270,12,74,62,95],[210,240,13,82,58,93],[200,210,25,88,72,82],[180,200,14,70,57,90],[150,180,22,76,64,90],[135,150,42,85,68,82],[120,135,43,95,62,93],[110,120,49,89,66,92],[91,110,56,79,79,93],[70,91,65,95,78,99],[60,70,44,84,65,98],[30,60,41,79,72,92],[0,30,42,88,65,88]],contrast:[[330,360,39,69,54,74],[320,330,28,86,44,65],[300,320,80,100,33,53],[280,300,53,90,30,60],[270,280,27,47,30,55],[240,270,54,82,62,80],[210,240,25,88,57,90],[200,210,24,47,66,86],[180,200,30,62,77,88],[150,180,45,86,60,87],[120,150,63,92,58,87],[110,120,50,88,66,90],[90,110,35,83,70,95],[60,90,68,89,78,94],[30,60,43,87,55,85],[0,30,48,69,61,71]],composed:[[330,360,55,95,35,70],[320,330,25,83,44,70],[300,320,55,90,40,74],[280,300,38,90,42,67],[270,280,38,95,28,65],[240,270,20,88,34,78],[210,240,15,77,40,85],[200,210,10,88,33,85],[180,200,25,82,43,77],[150,180,35,89,44,68],[135,150,15,88,42,85],[120,135,15,95,46,85],[110,120,45,90,44,80],[90,110,35,78,67,95],[70,90,65,98,80,98],[60,70,42,85,45,90],[30,60,53,93,45,85],[0,30,43,83,38,65]]},fm={colorFilter:null,colorSpace:"default",quality:100,ultraPrecision:!1,seed:null},J_=new JS(t_(Xy));function dm(e,r){var t;if(typeof e!="number"||e<2)throw new Error("expecting a color count > 2.");r=(function(c){var l,u=u_({},fm,c);if(typeof u.quality!="number"||isNaN(u.quality)||u.quality<1)throw new Error("invalid `quality`. Expecting a number > 0.");if(typeof u.ultraPrecision!="boolean")throw new Error("invalid `ultraPrecision`. Expecting a boolean.");if(u.seed&&typeof u.seed!="number")throw new Error("invalid `seed`. Expecting an integer or a string.");if(u.colorFilter||!u.colorSpace)return u;if(typeof u.colorSpace=="string"){if(!J_.has(u.colorSpace))throw new Error('unknown `colorSpace` "'.concat(u.colorSpace,'".'));l=Xy[u.colorSpace]}else if(Array.isArray(u.colorSpace)){if(u.colorSpace.length!==6)throw new Error("expecting a `colorSpace` array of length 6 ([hmin, hmax, cmin, cmax, lmin, lmax]).");l=u.colorSpace}else l=[u.colorSpace.hmin||0,u.colorSpace.hmax||360,u.colorSpace.cmin||0,u.colorSpace.cmax||100,u.colorSpace.lmin||0,u.colorSpace.lmax||100];return u.colorFilter=function(f,g){var v=lr.labToHcl(g);return l[0]<l[1]?v[0]>=l[0]&&v[0]<=l[1]&&v[1]>=l[2]&&v[1]<=l[3]&&v[2]>=l[4]&&v[2]<=l[5]:(v[0]>=l[0]||v[0]<=l[1])&&v[1]>=l[2]&&v[1]<=l[3]&&v[2]>=l[4]&&v[2]<=l[5]},u})(r);var n=new Y_(r.seed),a=lr.distance,o=function(c,l){return!!lr.validateRgb(c)&&(!r.colorFilter||!!r.colorFilter(c,l))},i=(function(c,l,u){for(var f,g,v=new Array(l),h=0;h<l;h++){do f=[100*c(),100*(2*c()-1),100*(2*c()-1)],g=lr.labToRgb(f);while(!u(g,f));v[h]=f}return v})((function(){return n.nextFloat()}),e,o);return(t=r)!==null&&t!==void 0&&t.color&&(i[0]=Ne(r.color).lab()),(function(c,l,u,f){var g,v,h,y,_=[],T=[],A=4,b=10,$=10;for(f.ultraPrecision&&(A=1,b=5,$=5),g=0;g<=100;g+=A)for(v=-100;v<=100;v+=b)for(h=-100;h<=100;h+=$)y=[g,v,h],l(lr.labToRgb(y),y)&&(_.push(y),T.push(null));for(var S,E,M,j,x,R,P,I,V,W=f.quality||fm.quality,z=_.length,B=u.length;W-- >0;){for(S=0;S<z;S++)for(M=_[S],x=1/0,E=0;E<B;E++)(j=c(u[E],M))<x&&(x=j,T[S]=E);for(R=lt(_).call(_),E=1;E<B;E++){for(P=0,I=[0,0,0],S=0;S<z;S++)T[S]===E&&(P+=1,I[0]+=_[S][0],I[1]+=_[S][1],I[2]+=_[S][2]);if(P!==0)if(I[0]/=P,I[1]/=P,I[2]/=P,l(lr.labToRgb(I),I))u[E]=I;else{var G=R.length>0?R:_;for(x=1/0,V=-1,S=0;S<G.length;S++)(j=c(G[S],I))<x&&(x=j,V=S);u[E]=G[V],R=kc(R).call(R,(function(U){return U[0]!==u[E][0]||U[1]!==u[E][1]||U[2]!==u[E][2]}))}}}})(a,o,i,r),i=lr.diffSort(a,i),Xe(i).call(i,lr.labToRgbHex)}function Z_(e,r){var t;return typeof r.colorSpace=="string"&&cm[r.colorSpace]?(function(n,a,o){var i=[];if(!Array.isArray(o))return i;var c=function(v){return kc(o).call(o,(function(h){return h[0]<=v&&v<h[1]}))[0]},l=function(v){for(a.colorSpace=v;;){var h=dm(5,a)[3];if(!My(i).call(i,h)){i.push(h);break}}};if(o.length===n)o.forEach((function(v){return l(v)}));else for(var u=360/n,f=1;f<=n;f++){var g=f*u-Math.random()*u;l(c(g))}return i})(e-1,r,cm[r.colorSpace]):In(t=dm(e,r)).call(t,1,e)}function X_(e,r){for(var t=Ne(e).lab(),n=100*(1-1/r),a=n/(r-1),o=.5*(100-n),i=(function(g,v,h){for(var y=[],_=v;_>g;_-=h)y.push(_);return y})(o,o+r*a,a),c=9999,l=0;l<r;l++){var u=t[0]-i[l];Math.abs(u)<Math.abs(c)&&(c=u)}var f=(function(g,v){var h={diff:1/0,idx:-1};v.forEach((function(_,T){Math.abs(g-_)<h.diff&&(h.diff=Math.abs(g-_),h.idx=T)}));var y=Kt(v).call(v);return y[h.idx]=g,y})(t[0],Xe(i).call(i,(function(g){return g+c})));return Xe(f).call(f,(function(g){return Ne.lab(g,t[1],t[2])}))}var Q_=function(e,r){var t,n,a,o=Ne(e).hex()!=="#ffffff",i=o?r+1:r,c=Ne(e).set("lch.l",17).hex(),l=Ne(e).set("lch.l",9999).hex(),u=Xe(t=Dc(n=Array(i)).call(n,1)).call(t,(function(v,h){return h/i})),f=Ne.scale((a=[l,e,c],ya(a).call(a,(function(v,h){return Ne(h).get("lch.l")-Ne(v).get("lch.l")})))).mode("hsl").correctLightness(),g=Xe(u).call(u,(function(v){return f(v).hex()}));return o&&g.shift(),g},ew=function(e,r,t){var n=Q_(e,r);t==="range"&&(n=Ne.scale(X_(e,r)).correctLightness().colors(r));var a=Xe(n).call(n,(function(i){return ac.deltaE(i,e)})),o=Math.min.apply(Math,_a(a));return Xe(n).call(n,(function(i){return ac.deltaE(i,e)===o?e:i}))};function Cn(e){return typeof e=="string"?_t.fromInt(em(e)):Xe(e).call(e,(function(r){return _t.fromInt(em(r))}))}function sc(e){return Array.isArray(e)?Xe(e).call(e,(function(r){return Qg(_t.from(r.hue,r.chroma,r.tone).toInt())})):Qg(_t.from(e.hue,e.chroma,e.tone).toInt())}var Qy=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;return Math.round(e*Math.pow(10,r))/Math.pow(10,r)},rw=function(e,r,t,n){var a;if(!e)return Dc(a=new Array(n)).call(a,t);for(var o=[],i=(function(l,u,f){var g=[];if(!l||l.length<2)return function($){return u};for(var v=1;v<l.length;v++){var h=l[v-1],y=h.x,_=h.y,T=l[v],A=T.x,b=(T.y-_)/(A-y);g.push({k:b,range:[y,A],base:_,formula:function($,S){var E=this.base+($-this.range[0])*this.k,M=S/u;return Math.min(100,Math.max(0,S+E*M))}})}return function($,S){var E,M=10*Math.min($,f)/f;return((E=L_(g).call(g,(function(j){return j.range[0]<=M&&j.range[1]>=M})))===null||E===void 0?void 0:E.formula(M,S))||S}})(e,r||e[0].y||t,n),c=1;c<=n;c++)o.unshift(Qy(i(c,t)));return o},tw={Blue:{bezier:[.28,.22,.86,.98],toneRange:[12,96]},Cyan:{bezier:[.63,.58,.79,.92],toneRange:[13,96]},Green:{bezier:[.85,.82,.84,1],toneRange:[12,96],piecewise:[{x:0,y:0},{x:5,y:0},{x:6,y:-5},{x:7,y:-7},{x:8,y:-18},{x:9,y:-30},{x:10,y:-40}],piecewiseBase:55},Lemon:{bezier:[.62,.51,.39,.82],toneRange:[12,98],piecewise:[{x:0,y:0},{x:7,y:0},{x:8,y:-10},{x:9,y:-25},{x:10,y:-50}],piecewiseBase:73},Yellow:{bezier:[.3,.25,.5,.8],toneRange:[12,97]},Orange:{bezier:[.31,.2,.7,.83],toneRange:[13,96],piecewise:[{x:0,y:0},{x:6,y:0},{x:7,y:-11},{x:8,y:-2},{x:9,y:0},{x:10,y:0}],piecewiseBase:59},Red:{bezier:[.31,.26,.7,.83],toneRange:[12,96],piecewise:[{x:0,y:-12},{x:2,y:-12},{x:3,y:-11},{x:4,y:-7},{x:5,y:-2},{x:6,y:-6},{x:7,y:0},{x:10,y:0}],piecewiseBase:72},Pink:{bezier:[.55,.45,.86,.99],toneRange:[12,96],piecewise:[{x:0,y:0},{x:1,y:0},{x:2,y:-12},{x:3,y:-11},{x:4,y:-7},{x:5,y:-2},{x:6,y:0},{x:10,y:0}],piecewiseBase:75},Purple:{bezier:[.25,.13,.71,.88],toneRange:[10,96]},Lime:{bezier:[.75,.68,.84,.99],toneRange:[12,97],piecewise:[{x:0,y:0},{x:5,y:0},{x:6,y:-5},{x:7,y:-7},{x:8,y:-18},{x:9,y:-30},{x:10,y:-40}],piecewiseBase:55},Mint:{bezier:[.46,.4,.84,.96],toneRange:[13,97],piecewise:[{x:0,y:0},{x:5,y:0},{x:6,y:-5},{x:7,y:-7},{x:8,y:-18},{x:9,y:-30},{x:10,y:-40}],piecewiseBase:55}},nw={"#2ba471":"#00a870","#d54941":"#d94941","#43c0c6":"#00c8cF","#8eba36":"#81b305","#00c3c3":"#1fffff"};function aw(e){var r,t,n;if(typeof e=="string"){r=e;for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t=o[0],n=!1}else r=e.color,t=e.step,n=!!e.remainInput;return ow({color:r.toLowerCase(),step:t,remainInput:n})}function ow(e){var r,t,n=e.color,a=e.step,o=e.remainInput,i=Cn(n),c=nw[n]||n,l=Cn(c),u=tw[(function(b){var $=b%360;switch(!0){case($>=10&&$<30):return"Red";case($>=30&&$<60):return"Orange";case($>=60&&$<102):return"Yellow";case($>=102&&$<115):return"Lemon";case($>=115&&$<130):return"Lime";case($>=130&&$<180):return"Green";case($>=180&&$<210):return"Mint";case($>=210&&$<240):return"Cyan";case($>=240&&$<285):return"Blue";case($>=285&&$<325):return"Purple";default:return"Pink"}})(l.hue)],f=(function(b){var $=Pu(b.range,2),S=$[0],E=$[1],M=Pu(b.bezierMeta,4),j=M[0],x=M[1],R=M[2],P=M[3],I=b.count,V=[];try{for(var W=H_(j,x,R,P),z=Math.abs(E-S),B=1/(I-1),G=0;G<I;G++){var U=W(G*B)*z;if(S+U>E)break;V.unshift(Qy(S+U))}}catch{}return V})({range:u.toneRange,bezierMeta:u.bezier,count:a});if(!f.length)for(var g=Pu(u.toneRange,2),v=g[0],h=g[1],y=(h-v)/(a-1),_=v;_<=h;_+=y)f.push(_);var T=(function(b){var $=Cn("#fff");return b.hue===$.hue&&b.chroma===$.chroma&&b.tone===$.tone})(l)?Dc(r=Array(a)).call(r,0):rw(u.piecewise,u.piecewiseBase,l.chroma,a),A=(function(b){var $=b.hctColor,S=b.originColor,E=b.originHctColor,M=b.chromas,j=b.tones,x=b.remainInput,R=Xe(j).call(j,(function(W,z){var B=M?.[z];return{hue:$.hue,chroma:typeof B=="number"?B:$.chroma,tone:W}})),P=-1,I=1/0,V=Ne(S).lab();return R.forEach((function(W,z){var B=sc(W),G=lr.distance(Ne(B).lab(),V);G<I&&(P=z,I=G)})),x&&In(R).call(R,P,1,E),{colors:R,primary:P}})({originColor:n,originHctColor:i,hctColor:l,chromas:T,tones:f,remainInput:l.tone>u.toneRange[1]||l.tone<u.toneRange[0]||o});return{colors:Xe(t=A.colors).call(t,(function(b){return sc(b)})),primary:A.primary}}function Hu(e){var r=[96,94,92,88,80,68,58,50,40,32,24,18,14,8],t=Cn(e);return e.toLowerCase()==="#0052d9"&&(r[8]=t.tone),Xe(r).call(r,(function(n){return sc({hue:t.hue,chroma:t.chroma,tone:n})}))}var Wt=(function(){function e(){$c(this,e)}return Mc(e,null,[{key:"getRandomPalette",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.color,n=t===void 0?"#0052d9":t,a=r.colorGamut,o=r.number,i=o===void 0?8:o,c=r.sortMethod,l=c===void 0?"DEThreshold":c,u=lr.generateLockedColor(n),f={color:u,quality:100,colorSpace:a||"bright"},g=Z_(i,f),v=(l==="DEThreshold"?lr.sortColorsByDEThreshold:lr.sortColorsByComplementary)(g,n);return v}},{key:"getPaletteByGradation",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{colors:[]},t=r.colors,n=r.step,a=n===void 0?10:n,o=r.method,i=o===void 0?"darken":o;return Xe(t).call(t,(function(c){return ew(c,a,i)}))}},{key:"getColorGradations",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{colors:[]},t=r.colors,n=r.step,a=n===void 0?10:n,o=r.remainInput,i=o!==void 0&&o;return Xe(t).call(t,(function(c){return aw({color:c,step:a,remainInput:i})}))}},{key:"getNeutralColorGradation",value:function(r){return Hu(r)}},{key:"getNeutralColor",value:function(r){return(function(t){var n=Hu(t),a=Hu("#000000");return Xe(n).call(n,(function(o,i){var c=Cn(o);return c.hue>=102&&c.hue<210?Ne.average([o,a[i]],"rgb",[.08,.92]).hex():Ne.average([o,a[i]],"rgb",[.12,.88]).hex()}))})(r)}}]),e})(),Pn=(function(){function e(){$c(this,e)}return Mc(e,null,[{key:"color2arr",value:function(r){var t;return((t=r.match(/(\d|\.)+%?/g))===null||t===void 0?void 0:Xe(t).call(t,(function(n){return My(n).call(n,"%")?parseFloat(n)/100:Number(n)})))||[0,0,0]}},{key:"similar",value:function(r,t){return lr.distance(Ne(r).lab(),Ne(t).lab())}},{key:"contrast",value:function(r,t){return lr.contrast(Ne(r).rgb(),Ne(t).rgb())}},{key:"scale",value:function(r,t,n){return Ne.scale([r,t]).colors(n)}},{key:"sortColorsByComplementary",value:function(r,t){return lr.sortColorsByComplementary(r,t)}},{key:"sortColorsByDEThreshold",value:function(r,t){return lr.sortColorsByDEThreshold(r,t)}},{key:"getRandomPalette",value:function(r){return Wt.getRandomPalette(r)}},{key:"getPaletteByGradation",value:function(r){return Wt.getPaletteByGradation(r)}},{key:"getRandomPaletteByGradation",value:function(r){return Wt.getPaletteByGradation(r)}},{key:"getColorGradations",value:function(r){return Wt.getColorGradations(r)}},{key:"getNeutralColorGradation",value:function(r){return Wt.getNeutralColorGradation(r)}},{key:"getNeutralColor",value:function(r){return Wt.getNeutralColor(r)}}]),e})();y3(Pn,"colorTransform",(function(e){var r,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"hex",n=arguments.length>2?arguments[2]:void 0;if(t==="name")r=Ne(e)[n]();else if(t!=="hex"&&typeof e=="string"){var a=Pn.color2arr(e);r=Ne(a,t)[n]()}else r=t!=="hex"&&Array.isArray(e)?Ne(_a(e),t)[n]():Ne(e)[n]();return Array.isArray(r)?Xe(r).call(r,(function(o){return parseFloat(o.toFixed(3))})):r}));var Vu={exports:{}},vm;function iw(){return vm||(vm=1,(function(e,r){(function(){function t(n,a){var o,i=0,c=n.length,l,u="",f,g,v,h,y,_,T,A,b=!0,$=!1,S;o=arguments.length>1?a:{},typeof o.indent>"u"&&(o.indent=" "),typeof o.openbrace=="string"&&(b=o.openbrace==="end-of-line"),typeof o.autosemicolon=="boolean"&&($=o.autosemicolon);function E(I){return I===" "||I===`
|
|
179
|
+
`||I===" "||I==="\r"||I==="\f"}function M(I){return I==="'"||I==='"'}function j(I){return f>="a"&&f<="z"||f>="A"&&f<="Z"||f>="0"&&f<="9"||"-_*.:#[]".indexOf(I)>=0}function x(){var I;for(I=_;I>0;I-=1)u+=o.indent}function R(){u=S(u),b?u+=" {":(u+=`
|
|
180
|
+
`,x(),u+="{"),g!==`
|
|
181
|
+
`&&(u+=`
|
|
182
|
+
`),_+=1}function P(){var I;_-=1,u=S(u),u.length>0&&$&&(I=u.charAt(u.length-1),I!==";"&&I!=="{"&&(u+=";")),u+=`
|
|
183
|
+
`,x(),u+="}",l.push(u),u=""}for(String.prototype.trimRight?S=function(I){return I.trimRight()}:S=function(I){return I.replace(/\s+$/,"")},y={Start:0,AtRule:1,Block:2,Selector:3,Ruleset:4,Property:5,Separator:6,Expression:7,URL:8},_=0,h=y.Start,A=!1,l=[],n=n.replace(/\r\n/g,`
|
|
184
|
+
`);i<c;){if(f=n.charAt(i),g=n.charAt(i+1),i+=1,M(T)){u+=f,f===T&&(T=null),f==="\\"&&g===T&&(u+=g,i+=1);continue}if(M(f)){u+=f,T=f;continue}if(A){u+=f,f==="*"&&g==="/"&&(A=!1,u+=g,i+=1);continue}if(f==="/"&&g==="*"){A=!0,u+=f,u+=g,i+=1;continue}if(h===y.Start){if(l.length===0&&E(f)&&u.length===0)continue;if(f<=" "||f.charCodeAt(0)>=128){h=y.Start,u+=f;continue}if(j(f)||f==="@"){if(v=S(u),v.length===0)l.length>0&&(u=`
|
|
156
185
|
|
|
157
|
-
`);else if(
|
|
186
|
+
`);else if(v.charAt(v.length-1)==="}"||v.charAt(v.length-1)===";")u=v+`
|
|
158
187
|
|
|
159
|
-
`;else for(;
|
|
188
|
+
`;else for(;g=u.charAt(u.length-1),!(g!==" "&&g.charCodeAt(0)!==9);)u=u.substr(0,u.length-1);u+=f,h=f==="@"?y.AtRule:y.Selector;continue}}if(h===y.AtRule){if(f===";"){u+=f,h=y.Start;continue}if(f==="{"){v=S(u),R(),h=v==="@font-face"?y.Ruleset:y.Block;continue}u+=f;continue}if(h===y.Block){if(j(f)){if(v=S(u),v.length===0)l.length>0&&(u=`
|
|
160
189
|
|
|
161
|
-
`);else if(
|
|
190
|
+
`);else if(v.charAt(v.length-1)==="}")u=v+`
|
|
162
191
|
|
|
163
|
-
`;else for(;
|
|
164
|
-
`){
|
|
165
|
-
`;continue}if(!
|
|
166
|
-
`,
|
|
167
|
-
`,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
192
|
+
`;else for(;g=u.charAt(u.length-1),!(g!==" "&&g.charCodeAt(0)!==9);)u=u.substr(0,u.length-1);x(),u+=f,h=y.Selector;continue}if(f==="}"){P(),h=y.Start;continue}u+=f;continue}if(h===y.Selector){if(f==="{"){R(),h=y.Ruleset;continue}if(f==="}"){P(),h=y.Start;continue}u+=f;continue}if(h===y.Ruleset){if(f==="}"){P(),h=y.Start,_>0&&(h=y.Block);continue}if(f===`
|
|
193
|
+
`){u=S(u),u+=`
|
|
194
|
+
`;continue}if(!E(f)){u=S(u),u+=`
|
|
195
|
+
`,x(),u+=f,h=y.Property;continue}u+=f;continue}if(h===y.Property){if(f===":"){u=S(u),u+=": ",h=y.Expression,E(g)&&(h=y.Separator);continue}if(f==="}"){P(),h=y.Start,_>0&&(h=y.Block);continue}u+=f;continue}if(h===y.Separator){if(!E(f)){u+=f,h=y.Expression;continue}M(g)&&(h=y.Expression);continue}if(h===y.Expression){if(f==="}"){P(),h=y.Start,_>0&&(h=y.Block);continue}if(f===";"){u=S(u),u+=`;
|
|
196
|
+
`,h=y.Ruleset;continue}if(u+=f,f==="("&&u.charAt(u.length-2)==="l"&&u.charAt(u.length-3)==="r"&&u.charAt(u.length-4)==="u"){h=y.URL;continue}continue}if(h===y.URL&&f===")"&&u.charAt(u.length-1!=="\\")){u+=f,h=y.Expression;continue}u+=f}return u=l.join("")+u,u}e.exports=t})()})(Vu)),Vu.exports}var sw=iw();const lw=We(sw),uw=`--td-warning-color-1: #fef3e6;
|
|
197
|
+
--td-warning-color-2: #f9e0c7;
|
|
198
|
+
--td-warning-color-3: #f7c797;
|
|
199
|
+
--td-warning-color-4: #f2995f;
|
|
200
|
+
--td-warning-color-5: #ed7b2f;
|
|
201
|
+
--td-warning-color-6: #d35a21;
|
|
202
|
+
--td-warning-color-7: #ba431b;
|
|
203
|
+
--td-warning-color-8: #9e3610;
|
|
204
|
+
--td-warning-color-9: #842b0b;
|
|
205
|
+
--td-warning-color-10: #5a1907;
|
|
206
|
+
--td-warning-color: var(--td-warning-color-5);
|
|
207
|
+
--td-warning-color-hover: var(--td-warning-color-4);
|
|
208
|
+
--td-warning-color-focus: var(--td-warning-color-2);
|
|
209
|
+
--td-warning-color-active: var(--td-warning-color-6);
|
|
210
|
+
--td-warning-color-disabled: var(--td-warning-color-3);
|
|
211
|
+
--td-warning-color-light: var(--td-warning-color-1);`,cw=`--td-error-color-1: #fdecee;
|
|
212
|
+
--td-error-color-2: #f9d7d9;
|
|
213
|
+
--td-error-color-3: #f8b9be;
|
|
214
|
+
--td-error-color-4: #f78d94;
|
|
215
|
+
--td-error-color-5: #f36d78;
|
|
216
|
+
--td-error-color-6: #e34d59;
|
|
217
|
+
--td-error-color-7: #c9353f;
|
|
218
|
+
--td-error-color-8: #b11f26;
|
|
219
|
+
--td-error-color-9: #951114;
|
|
220
|
+
--td-error-color-10: #680506;
|
|
221
|
+
--td-error-color: var(--td-error-color-6);
|
|
222
|
+
--td-error-color-hover: var(--td-error-color-5);
|
|
223
|
+
--td-error-color-focus: var(--td-error-color-2);
|
|
224
|
+
--td-error-color-active: var(--td-error-color-7);
|
|
225
|
+
--td-error-color-disabled: var(--td-error-color-3);
|
|
226
|
+
--td-error-color-light: var(--td-error-color-1);`,fw=`--td-success-color-1: #e8f8f2;
|
|
227
|
+
--td-success-color-2: #bcebdc;
|
|
228
|
+
--td-success-color-3: #85dbbe;
|
|
229
|
+
--td-success-color-4: #48c79c;
|
|
230
|
+
--td-success-color-5: #00a870;
|
|
231
|
+
--td-success-color-6: #078d5c;
|
|
232
|
+
--td-success-color-7: #067945;
|
|
233
|
+
--td-success-color-8: #056334;
|
|
234
|
+
--td-success-color-9: #044f2a;
|
|
235
|
+
--td-success-color-10: #033017;
|
|
236
|
+
--td-success-color: var(--td-success-color-5);
|
|
237
|
+
--td-success-color-hover: var(--td-success-color-4);
|
|
238
|
+
--td-success-color-focus: var(--td-success-color-2);
|
|
239
|
+
--td-success-color-active: var(--td-success-color-6);
|
|
240
|
+
--td-success-color-disabled: var(--td-success-color-3);
|
|
241
|
+
--td-success-color-light: var(--td-success-color-1);`,dw=`--td-gray-color-1: #f3f3f3;
|
|
242
|
+
--td-gray-color-2: #eee;
|
|
243
|
+
--td-gray-color-3: #e7e7e7;
|
|
244
|
+
--td-gray-color-4: #dcdcdc;
|
|
245
|
+
--td-gray-color-5: #c5c5c5;
|
|
246
|
+
--td-gray-color-6: #a6a6a6;
|
|
247
|
+
--td-gray-color-7: #8b8b8b;
|
|
248
|
+
--td-gray-color-8: #777;
|
|
249
|
+
--td-gray-color-9: #5e5e5e;
|
|
250
|
+
--td-gray-color-10: #4b4b4b;
|
|
251
|
+
--td-gray-color-11: #383838;
|
|
252
|
+
--td-gray-color-12: #262626;
|
|
253
|
+
--td-gray-color-13: #242424;
|
|
254
|
+
--td-gray-color-14: #181818;
|
|
255
|
+
--td-bg-color-container: #fff;
|
|
256
|
+
--td-bg-color-container-select: #fff;
|
|
257
|
+
--td-bg-color-page: var(--td-gray-color-2);
|
|
258
|
+
--td-bg-color-container-hover: var(--td-gray-color-1);
|
|
259
|
+
--td-bg-color-container-active: var(--td-gray-color-3);
|
|
260
|
+
--td-bg-color-secondarycontainer: var(--td-gray-color-1);
|
|
261
|
+
--td-bg-color-secondarycontainer-hover: var(--td-gray-color-2);
|
|
262
|
+
--td-bg-color-secondarycontainer-active: var(--td-gray-color-4);
|
|
263
|
+
--td-bg-color-component: var(--td-gray-color-3);
|
|
264
|
+
--td-bg-color-component-hover: var(--td-gray-color-4);
|
|
265
|
+
--td-bg-color-component-active: var(--td-gray-color-6);
|
|
266
|
+
--td-bg-color-component-disabled: var(--td-gray-color-2);
|
|
267
|
+
--td-component-stroke: var(--td-gray-color-3);
|
|
268
|
+
--td-component-border: var(--td-gray-color-4);`,vw=`--td-font-white-1: #ffffff;
|
|
269
|
+
--td-font-white-2: rgba(255, 255, 255, 0.55);
|
|
270
|
+
--td-font-white-3: rgba(255, 255, 255, 0.35);
|
|
271
|
+
--td-font-white-4: rgba(255, 255, 255, 0.22);
|
|
272
|
+
--td-font-gray-1: rgba(0, 0, 0, 0.9);
|
|
273
|
+
--td-font-gray-2: rgba(0, 0, 0, 0.6);
|
|
274
|
+
--td-font-gray-3: rgba(0, 0, 0, 0.4);
|
|
275
|
+
--td-font-gray-4: rgba(0, 0, 0, 0.26);
|
|
276
|
+
--td-text-color-primary: var(--td-font-gray-1);
|
|
277
|
+
--td-text-color-secondary: var(--td-font-gray-2);
|
|
278
|
+
--td-text-color-placeholder: var(--td-font-gray-3);
|
|
279
|
+
--td-text-color-disabled: var(--td-font-gray-4);
|
|
280
|
+
--td-text-color-anti: #fff;
|
|
281
|
+
--td-text-color-brand: var(--td-brand-color);
|
|
282
|
+
--td-text-color-link: var(--td-brand-color);`,pw=`--td-brand-color-light-hover: var(--td-brand-color-2);
|
|
283
|
+
--td-warning-color-light-hover: var(--td-warning-color-2);
|
|
284
|
+
--td-error-color-light-hover: var(--td-error-color-2);
|
|
285
|
+
--td-success-color-light-hover: var(--td-success-color-2);
|
|
286
|
+
--td-bg-color-secondarycomponent: var(--td-gray-color-4);
|
|
287
|
+
--td-bg-color-secondarycomponent-hover: var(--td-gray-color-5);
|
|
288
|
+
--td-bg-color-secondarycomponent-active: var(--td-gray-color-6);
|
|
289
|
+
--td-table-shadow-color: rgba(0, 0, 0, 8%);
|
|
290
|
+
--td-scrollbar-color: rgba(0, 0, 0, 10%);
|
|
291
|
+
--td-scrollbar-hover-color: rgba(0, 0, 0, 30%);
|
|
292
|
+
--td-scroll-track-color: #fff;
|
|
293
|
+
--td-bg-color-specialcomponent: #fff;
|
|
294
|
+
--td-border-level-1-color: var(--td-gray-color-3);
|
|
295
|
+
--td-border-level-2-color: var(--td-gray-color-4);
|
|
296
|
+
--td-shadow-1: 0 1px 10px rgba(0, 0, 0, 5%), 0 4px 5px rgba(0, 0, 0, 8%), 0 2px 4px -1px rgba(0, 0, 0, 12%);
|
|
297
|
+
--td-shadow-2: 0 3px 14px 2px rgba(0, 0, 0, 5%), 0 8px 10px 1px rgba(0, 0, 0, 6%), 0 5px 5px -3px rgba(0, 0, 0, 10%);
|
|
298
|
+
--td-shadow-3: 0 6px 30px 5px rgba(0, 0, 0, 5%), 0 16px 24px 2px rgba(0, 0, 0, 4%), 0 8px 10px -5px rgba(0, 0, 0, 8%);
|
|
299
|
+
--td-shadow-inset-top: inset 0 0.5px 0 #dcdcdc;
|
|
300
|
+
--td-shadow-inset-right: inset 0.5px 0 0 #dcdcdc;
|
|
301
|
+
--td-shadow-inset-bottom: inset 0 -0.5px 0 #dcdcdc;
|
|
302
|
+
--td-shadow-inset-left: inset -0.5px 0 0 #dcdcdc;
|
|
303
|
+
--td-mask-active: rgba(0, 0, 0, 0.6);
|
|
304
|
+
--td-mask-disabled: rgba(255, 255, 255, 0.6);`,hw=`${uw} ${cw} ${fw} ${dw} ${vw} ${pw}`,gw=`--td-error-color-1: #472324;
|
|
305
|
+
--td-error-color-2: #5e2a2d;
|
|
306
|
+
--td-error-color-3: #703439;
|
|
307
|
+
--td-error-color-4: #83383e;
|
|
308
|
+
--td-error-color-5: #a03f46;
|
|
309
|
+
--td-error-color-6: #c64751;
|
|
310
|
+
--td-error-color-7: #de6670;
|
|
311
|
+
--td-error-color-8: #ec888e;
|
|
312
|
+
--td-error-color-9: #edb1b6;
|
|
313
|
+
--td-error-color-10: #eeced0;`,mw=`--td-success-color-1: #193a2a;
|
|
314
|
+
--td-success-color-2: #1a4230;
|
|
315
|
+
--td-success-color-3: #17533d;
|
|
316
|
+
--td-success-color-4: #0d7a55;
|
|
317
|
+
--td-success-color-5: #059465;
|
|
318
|
+
--td-success-color-6: #43af8a;
|
|
319
|
+
--td-success-color-7: #46bf96;
|
|
320
|
+
--td-success-color-8: #80d2b6;
|
|
321
|
+
--td-success-color-9: #b4e1d3;
|
|
322
|
+
--td-success-color-10: #deede8;`,yw=`--td-warning-color-1: #4f2a1d;
|
|
323
|
+
--td-warning-color-2: #582f21;
|
|
324
|
+
--td-warning-color-3: #733c23;
|
|
325
|
+
--td-warning-color-4: #a75d2b;
|
|
326
|
+
--td-warning-color-5: #cf6e2d;
|
|
327
|
+
--td-warning-color-6: #dc7633;
|
|
328
|
+
--td-warning-color-7: #e8935c;
|
|
329
|
+
--td-warning-color-8: #ecbf91;
|
|
330
|
+
--td-warning-color-9: #eed7bf;
|
|
331
|
+
--td-warning-color-10: #f3e9dc;`,bw=`--td-gray-color-1: #f3f3f3;
|
|
332
|
+
--td-gray-color-2: #eee;
|
|
333
|
+
--td-gray-color-3: #e7e7e7;
|
|
334
|
+
--td-gray-color-4: #dcdcdc;
|
|
335
|
+
--td-gray-color-5: #c5c5c5;
|
|
336
|
+
--td-gray-color-6: #a6a6a6;
|
|
337
|
+
--td-gray-color-7: #8b8b8b;
|
|
338
|
+
--td-gray-color-8: #777;
|
|
339
|
+
--td-gray-color-9: #5e5e5e;
|
|
340
|
+
--td-gray-color-10: #4b4b4b;
|
|
341
|
+
--td-gray-color-11: #383838;
|
|
342
|
+
--td-gray-color-12: #262626;
|
|
343
|
+
--td-gray-color-13: #242424;
|
|
344
|
+
--td-gray-color-14: #181818;
|
|
345
|
+
--td-bg-color-page: var(--td-gray-color-14);
|
|
346
|
+
--td-bg-color-container: var(--td-gray-color-13);
|
|
347
|
+
--td-bg-color-container-hover: var(--td-gray-color-12);
|
|
348
|
+
--td-bg-color-container-active: var(--td-gray-color-10);
|
|
349
|
+
--td-bg-color-container-select: var(--td-gray-color-9);
|
|
350
|
+
--td-bg-color-secondarycontainer: var(--td-gray-color-12);
|
|
351
|
+
--td-bg-color-secondarycontainer-hover: var(--td-gray-color-11);
|
|
352
|
+
--td-bg-color-secondarycontainer-active: var(--td-gray-color-9);
|
|
353
|
+
--td-bg-color-component: var(--td-gray-color-11);
|
|
354
|
+
--td-bg-color-component-hover: var(--td-gray-color-10);
|
|
355
|
+
--td-bg-color-component-active: var(--td-gray-color-9);
|
|
356
|
+
--td-bg-color-component-disabled: var(--td-gray-color-12);
|
|
357
|
+
--td-component-stroke: var(--td-gray-color-11);
|
|
358
|
+
--td-component-border: var(--td-gray-color-9);`,xw=`--td-font-white-1: rgba(255, 255, 255, 0.9);
|
|
359
|
+
--td-font-white-2: rgba(255, 255, 255, 0.55);
|
|
360
|
+
--td-font-white-3: rgba(255, 255, 255, 0.35);
|
|
361
|
+
--td-font-white-4: rgba(255, 255, 255, 0.22);
|
|
362
|
+
--td-font-gray-1: rgba(0, 0, 0, 0.9);
|
|
363
|
+
--td-font-gray-2: rgba(0, 0, 0, 0.6);
|
|
364
|
+
--td-font-gray-3: rgba(0, 0, 0, 0.4);
|
|
365
|
+
--td-font-gray-4: rgba(0, 0, 0, 0.26);
|
|
366
|
+
--td-text-color-primary: var(--td-font-white-1);
|
|
367
|
+
--td-text-color-secondary: var(--td-font-white-2);
|
|
368
|
+
--td-text-color-placeholder: var(--td-font-white-3);
|
|
369
|
+
--td-text-color-disabled: var(--td-font-white-4);
|
|
370
|
+
--td-text-color-anti: #fff;
|
|
371
|
+
--td-text-color-brand: var(--td-brand-color);
|
|
372
|
+
--td-text-color-link: var(--td-brand-color);`,Sw=`--td-shadow-1: 0 4px 6px rgba(0, 0, 0, 0.06), 0 1px 10px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12);
|
|
373
|
+
--td-shadow-2: 0 8px 10px rgba(0, 0, 0, 0.12), 0 3px 14px rgba(0, 0, 0, 0.10), 0 5px 5px rgba(0, 0, 0, 0.16);
|
|
374
|
+
--td-shadow-3: 0 16px 24px rgba(0, 0, 0, 0.14), 0 6px 30px rgba(0, 0, 0, 0.12), 0 8px 10px rgba(0, 0, 0, 0.20);
|
|
375
|
+
--td-shadow-inset-top: inset 0 0.5px 0 #5e5e5e;
|
|
376
|
+
--td-shadow-inset-right: inset 0.5px 0 0 #5e5e5e;
|
|
377
|
+
--td-shadow-inset-bottom: inset 0 -0.5px 0 #5e5e5e;
|
|
378
|
+
--td-shadow-inset-left: inset -0.5px 0 0 #5e5e5e;
|
|
379
|
+
--td-table-shadow-color: rgba(0, 0, 0, 55%);
|
|
380
|
+
--td-scrollbar-color: rgba(255, 255, 255, 10%);
|
|
381
|
+
--td-scrollbar-hover-color: rgba(255, 255, 255, 30%);
|
|
382
|
+
--td-scroll-track-color: #333;
|
|
383
|
+
--td-bg-color-specialcomponent: transparent;
|
|
384
|
+
--td-border-level-1-color: var(--td-gray-color-11);
|
|
385
|
+
--td-border-level-2-color: var(--td-gray-color-9);
|
|
386
|
+
--td-mask-active: rgba(0, 0, 0, 0.4);
|
|
387
|
+
--td-mask-disabled: rgba(0, 0, 0, 0.6);`,_w=`${yw} ${gw} ${mw} ${bw} ${xw} ${Sw}`;function pm(e){const t=document.documentElement.getAttribute("theme-mode")==="dark"?document.querySelector('[theme-mode="dark"]'):document.documentElement;return window.getComputedStyle(t).getPropertyValue(e).toLowerCase().trim()}function yr(){return document.querySelector("td-theme-generator")?.shadowRoot?.querySelector?.(".theme-generator")||document.body}function ww(e,r){const t=localStorage.getItem(e);if(!t)return;const n=JSON.parse(t);delete n[r],Object.keys(n).length===0?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(n))}const Ew=":root{--td-font-family: pingfang sc, microsoft yahei, arial regular;--td-font-family-medium: pingfang sc, microsoft yahei, arial medium;--td-font-size-link-small: 12px;--td-font-size-link-medium: 14px;--td-font-size-link-large: 16px;--td-font-size-mark-small: 12px;--td-font-size-mark-medium: 14px;--td-font-size-body-small: 12px;--td-font-size-body-medium: 14px;--td-font-size-body-large: 16px;--td-font-size-title-small: 14px;--td-font-size-title-medium: 16px;--td-font-size-title-large: 20px;--td-font-size-headline-small: 24px;--td-font-size-headline-medium: 28px;--td-font-size-headline-large: 36px;--td-font-size-display-medium: 48px;--td-font-size-display-large: 64px;--td-line-height-link-small: 20px;--td-line-height-link-medium: 22px;--td-line-height-link-large: 24px;--td-line-height-mark-small: 20px;--td-line-height-mark-medium: 22px;--td-line-height-body-small: 20px;--td-line-height-body-medium: 22px;--td-line-height-body-large: 24px;--td-line-height-title-small: 22px;--td-line-height-title-medium: 24px;--td-line-height-title-large: 28px;--td-line-height-headline-small: 32px;--td-line-height-headline-medium: 36px;--td-line-height-headline-large: 44px;--td-line-height-display-medium: 56px;--td-line-height-display-large: 72px;--td-font-link-small: var(--td-font-size-link-small) / var(--td-line-height-link-small) var(--td-font-family);--td-font-link-medium: var(--td-font-size-link-medium) / var(--td-line-height-link-medium) var(--td-font-family);--td-font-link-large: var(--td-font-size-link-large) / var(--td-line-height-link-large) var(--td-font-family);--td-font-mark-small: 600 var(--td-font-size-mark-small) / var(--td-line-height-mark-small) var(--td-font-family);--td-font-mark-medium: 600 var(--td-font-size-mark-medium) / var(--td-line-height-mark-medium) var(--td-font-family);--td-font-body-small: var(--td-font-size-body-small) / var(--td-line-height-body-small) var(--td-font-family);--td-font-body-medium: var(--td-font-size-body-medium) / var(--td-line-height-body-medium) var(--td-font-family);--td-font-body-large: var(--td-font-size-body-large) / var(--td-line-height-body-large) var(--td-font-family);--td-font-title-small: 600 var(--td-font-size-title-small) / var(--td-line-height-title-small) var(--td-font-family);--td-font-title-medium: 600 var(--td-font-size-title-medium) / var(--td-line-height-title-medium) var(--td-font-family);--td-font-title-large: 600 var(--td-font-size-title-large) / var(--td-line-height-title-large) var(--td-font-family);--td-font-headline-small: 600 var(--td-font-size-headline-small) / var(--td-line-height-headline-small) var(--td-font-family);--td-font-headline-medium: 600 var(--td-font-size-headline-medium) / var(--td-line-height-headline-medium) var(--td-font-family);--td-font-headline-large: 600 var(--td-font-size-headline-large) / var(--td-line-height-headline-large) var(--td-font-family);--td-font-display-medium: 600 var(--td-font-size-display-medium) / var(--td-line-height-display-medium) var(--td-font-family);--td-font-display-large: 600 var(--td-font-size-display-large) / var(--td-line-height-display-large) var(--td-font-family)}",Rw=":root{--td-radius-small: 2px;--td-radius-default: 3px;--td-radius-medium: 6px;--td-radius-large: 9px;--td-radius-extraLarge: 12px;--td-radius-round: 999px;--td-radius-circle: 50%}",Ow=":root{--td-size-1: 2px;--td-size-2: 4px;--td-size-3: 6px;--td-size-4: 8px;--td-size-5: 12px;--td-size-6: 16px;--td-size-7: 20px;--td-size-8: 24px;--td-size-9: 28px;--td-size-10: 32px;--td-size-11: 36px;--td-size-12: 40px;--td-size-13: 48px;--td-size-14: 56px;--td-size-15: 64px;--td-size-16: 72px;--td-comp-size-xxxs: var(--td-size-6);--td-comp-size-xxs: var(--td-size-7);--td-comp-size-xs: var(--td-size-8);--td-comp-size-s: var(--td-size-9);--td-comp-size-m: var(--td-size-10);--td-comp-size-l: var(--td-size-11);--td-comp-size-xl: var(--td-size-12);--td-comp-size-xxl: var(--td-size-13);--td-comp-size-xxxl: var(--td-size-14);--td-comp-size-xxxxl: var(--td-size-15);--td-comp-size-xxxxxl: var(--td-size-16);--td-pop-padding-s: var(--td-size-2);--td-pop-padding-m: var(--td-size-3);--td-pop-padding-l: var(--td-size-4);--td-pop-padding-xl: var(--td-size-5);--td-pop-padding-xxl: var(--td-size-6);--td-comp-paddingLR-xxs: var(--td-size-1);--td-comp-paddingLR-xs: var(--td-size-2);--td-comp-paddingLR-s: var(--td-size-4);--td-comp-paddingLR-m: var(--td-size-5);--td-comp-paddingLR-l: var(--td-size-6);--td-comp-paddingLR-xl: var(--td-size-8);--td-comp-paddingLR-xxl: var(--td-size-10);--td-comp-paddingTB-xxs: var(--td-size-1);--td-comp-paddingTB-xs: var(--td-size-2);--td-comp-paddingTB-s: var(--td-size-4);--td-comp-paddingTB-m: var(--td-size-5);--td-comp-paddingTB-l: var(--td-size-6);--td-comp-paddingTB-xl: var(--td-size-8);--td-comp-paddingTB-xxl: var(--td-size-10);--td-comp-margin-xxs: var(--td-size-1);--td-comp-margin-xs: var(--td-size-2);--td-comp-margin-s: var(--td-size-4);--td-comp-margin-m: var(--td-size-5);--td-comp-margin-l: var(--td-size-6);--td-comp-margin-xl: var(--td-size-7);--td-comp-margin-xxl: var(--td-size-8);--td-comp-margin-xxxl: var(--td-size-10);--td-comp-margin-xxxxl: var(--td-size-12)}",Lc={web:{common:{font:Ew,radius:Rw,size:Ow}}},br="custom-theme",un=`${br}-dark`,Jn=`${br}-extra`,Gr=`${br}-common`,Zt=`${br}-options`,wt=`${br}-tokens`,cn={value:"#262626",name:"中性黑",enName:"Neutral Black"},Tw="#0052D9",Iw=["#1b2f51","#173463","#143975","#103d88","#0d429a","#054bbe","#2667d4","#4582e6","#699ef5","#96bbf8"],Cw=()=>Lc.web.common.font,jw=()=>Lc.web.common.radius;function Xt(e){let r=document.getElementById(e);return r||(r=document.createElement("style"),r.id=e,r.type="text/css",document.head.appendChild(r)),r}function wa(e,r=!1,t=10,n=!0){const a=e.toLowerCase(),o=r?':root[theme-mode="dark"]':':root,:root[theme-mode="light"]',[{colors:i,primary:c}]=Pn.getColorGradations({colors:[a],step:t,remainInput:n}),l=a===Tw.toLowerCase(),u=typeof c=="number"&&!isNaN(c)?c:6;let f,g;return r?(f=l?Iw:[...i].reverse(),g=l?8:6):(f=[...i],g=l?7:u+1),{styleSheetString:`${o}{
|
|
388
|
+
--td-brand-color-1: ${f[0]};
|
|
389
|
+
--td-brand-color-2: ${f[1]};
|
|
390
|
+
--td-brand-color-3: ${f[2]};
|
|
391
|
+
--td-brand-color-4: ${f[3]};
|
|
392
|
+
--td-brand-color-5: ${f[4]};
|
|
393
|
+
--td-brand-color-6: ${f[5]};
|
|
394
|
+
--td-brand-color-7: ${f[6]};
|
|
395
|
+
--td-brand-color-8: ${f[7]};
|
|
396
|
+
--td-brand-color-9: ${f[8]};
|
|
397
|
+
--td-brand-color-10: ${f[9]};
|
|
246
398
|
--td-brand-color-light: var(--td-brand-color-1);
|
|
247
399
|
--td-brand-color-focus: var(--td-brand-color-2);
|
|
248
400
|
--td-brand-color-disabled: var(--td-brand-color-3);
|
|
249
|
-
--td-brand-color-hover: var(--td-brand-color-${
|
|
250
|
-
--td-brand-color: var(--td-brand-color-${
|
|
251
|
-
--td-brand-color-active:var(--td-brand-color-${
|
|
252
|
-
${
|
|
253
|
-
}`,brandColorIdx:
|
|
401
|
+
--td-brand-color-hover: var(--td-brand-color-${g>1?g-1:g});
|
|
402
|
+
--td-brand-color: var(--td-brand-color-${g});
|
|
403
|
+
--td-brand-color-active: var(--td-brand-color-${g<10?g+1:g});
|
|
404
|
+
${r?_w:hw}
|
|
405
|
+
}`,brandColorIdx:g,colorPalette:f}}const e1=e=>e==="mobile";function r1(e){return e1(e)?"mobile":"web"}const t1=(()=>{let e="web";return function(r="web",t=!1){const n=r1(r),a=Lc[n]?.common;a&&(e!==n&&Array.from(document.querySelectorAll(`[id^="${Gr}-"]`)).forEach(i=>{i.parentNode?.removeChild(i)}),Object.entries(a).forEach(([o,i])=>{const c=`${Gr}-${o}`;if(document.getElementById(c)&&!t)return;const l=Xt(c);l.textContent=i}),e=n)}})();function Zn(e,r=!0,t="web"){Pr("color",e,e!==cn.value),t1(t,!0),document.getElementById(Jn)?.remove();const n=Xt(br),a=Xt(un),{brandColorIdx:o,colorPalette:i,styleSheetString:c}=wa(e,!1,10,r),l=wa(e,!0).styleSheetString;return n.textContent=c,a.textContent=l,document.documentElement.setAttribute("theme-color",br),document.documentElement.style.setProperty("--brand-main",e),{brandColorIdx:o,colorPalette:i}}function n1(e="web"){const r=document.getElementById(br),t=document.getElementById(un),n=Array.from(document.querySelectorAll(`[id^="${Gr}-"]`)),a=ba(r?.textContent||""),o=ba(t?.textContent||""),i=n.map(f=>ba(f.textContent||"")).join(`
|
|
406
|
+
`),c=`
|
|
254
407
|
:root, :root[theme-mode="light"] {
|
|
255
|
-
${
|
|
408
|
+
${a}
|
|
256
409
|
}
|
|
257
410
|
:root[theme-mode="dark"] {
|
|
258
411
|
${o}
|
|
259
412
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
${r}: ${e};`;o=!0}}else{v=me(u);const l=s?':root[theme-mode="dark"]':':root,:root[theme-mode="light"]';v.textContent=`${l}{
|
|
268
|
-
|
|
269
|
-
|
|
413
|
+
:root {
|
|
414
|
+
${i}
|
|
415
|
+
}
|
|
416
|
+
`,l=lw(c.trim()),u=new window.Blob([l],{type:"text/css"});a1(u,"theme.css")}function ba(e){const r=e.match(/{([^}]*)}/);return r?r[1].trim():""}function a1(e,r){const t=window.URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download=r,n.click(),window.URL.revokeObjectURL(t)}function mr(e,r,t=!0){const n=document.querySelectorAll(`#${br}, #${un}, #${Jn}, [id^="${Gr}-"]`);let a=!1;n.forEach(o=>{const i=new RegExp(`${e}:\\s*(.*?);`),c=o.textContent??"",l=c.match(i);if(!l)return;if(l[1]===r){a=!0;return}const u=l[1];o.textContent=c.replace(`${e}: ${u}`,`${e}: ${r}`),a=!0,t?o1(e,r):ww(wt,e)}),a||console.warn(`CSS variable: ${e} is not exist`)}function Pr(e,r,t=!0){if(t){const n=localStorage.getItem(Zt)||"{}",a=JSON.parse(n);a[e]=r,localStorage.setItem(Zt,JSON.stringify(a))}}function kr(e){const r=localStorage.getItem(Zt);return r&&JSON.parse(r)[e]||null}function o1(e,r){const t=localStorage.getItem(wt)||"{}",n=JSON.parse(t);n[e]=r,localStorage.setItem(wt,JSON.stringify(n))}function i1(){const e=localStorage.getItem(wt);if(!e)return;const r=JSON.parse(e);Object.entries(r).forEach(([t,n])=>{mr(t,n)})}function s1(e){const r=localStorage.getItem(Zt);if(!r)return;const n=JSON.parse(r).color;n&&Zn(n,!1,e)}function l1(e){s1(e),i1()}function u1(e=!1){localStorage.removeItem(Zt),localStorage.removeItem(wt),document.querySelectorAll(`[id^="${Gr}-"], #${Jn}`).forEach(a=>{a.remove()});const t=document.getElementById(br),n=document.getElementById(un);if(t&&(t.textContent=""),n&&(n.textContent=""),e){const a=`${Gr}-font`,o=Xt(a);o.textContent=Cw();const i=`${Gr}-radius`,c=Xt(i);c.textContent=jw()}}function Pw(e){const r=localStorage.getItem(wt);if(!r)return;const t=JSON.parse(r);return e?t[e]:t}function Aw(e){const r=document.documentElement.getAttribute("theme-mode")==="dark",t=document.querySelector(r?`#${un}`:`#${br}`);return e.reduce((a,o)=>{const i=new RegExp(`${o}:\\s*var\\((--td-[\\w-]+)\\)`,"i"),c=t?.textContent?.match(i);if(c&&c[1]){const l=c[1].match(/(\d+)$/);l&&l[1]&&a.push({name:o,idx:parseInt(l[1],10)})}return a},[]).sort((a,o)=>a.idx-o.idx)}function $w({onTriggerVisible:e,onRefreshContent:r,drawerVisible:t,device:n="web",onDownloadSuccess:a}){const o=L.useRef(null),i=()=>t?"252px":"140px",c=()=>{o.current&&(o.current.classList.add("is-mouseleave"),setTimeout(()=>{o.current?.classList.remove("is-mouseleave")},500))},l=()=>{t||e()},u=()=>{try{n1(n),a?.()}catch(g){console.error("主题下载失败:",g)}},f=()=>{const g=Ee.DialogPlugin.confirm({header:"确认还原",body:"确定要还原为默认主题吗?此操作将清除所有自定义配置。",confirmBtn:"确定",cancelBtn:"取消",onConfirm:({e:v})=>{u1(!0),Zn(cn.value,!1,n),r(),g.hide()},onClose:({trigger:v})=>{g.hide()},attach:yr})};return p.jsx("div",{className:"theme-generator-dock",children:p.jsxs("div",{className:"theme-generator-dock__operation",style:{width:i(),marginRight:"4px",transition:"width 0.3s"},children:[p.jsx("div",{ref:o,className:"generator-btn",onMouseLeave:c,children:p.jsx(Ee.Button,{variant:"outline",size:"large",onClick:l,icon:p.jsx(dr.IconSetting,{}),children:"主题定制"})}),t&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"export-btn",style:{width:"48px",margin:"0 4px",transition:"opacity 0.3s, width 0.3s"},children:p.jsx(Ee.Button,{variant:"outline",shape:"square",size:"large",onClick:u,icon:p.jsx(dr.IconDownload,{})})}),p.jsx("div",{className:"recover-btn",style:{width:"48px",marginLeft:"4px",transition:"opacity 0.3s, width 0.3s"},children:p.jsx(Ee.Button,{variant:"outline",shape:"square",size:"large",onClick:f,icon:p.jsx(dr.IconRefresh,{})})})]})]})})}var Gu={exports:{}};/*!
|
|
417
|
+
Copyright (c) 2018 Jed Watson.
|
|
418
|
+
Licensed under the MIT License (MIT), see
|
|
419
|
+
http://jedwatson.github.io/classnames
|
|
420
|
+
*/var hm;function qw(){return hm||(hm=1,(function(e){(function(){var r={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var c=arguments[i];c&&(o=a(o,n(c)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var c in o)r.call(o,c)&&o[c]&&(i=a(i,c));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Gu)),Gu.exports}var Mw=qw();const Qt=We(Mw);function kw({color:e="#262626"}){return p.jsx("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",children:p.jsx("path",{d:"M512 0a512 512 0 0 0 0 1024c180.224 0-110.592-204.8 204.8-204.8a302.08 302.08 0 0 0 307.2-307.2A512 512 0 0 0 512 0zM179.2 486.4A76.8 76.8 0 1 1 256 409.6a76.8 76.8 0 0 1-76.8 76.8zM358.4 307.2a76.8 76.8 0 1 1 76.8-76.8A76.8 76.8 0 0 1 358.4 307.2z m307.2 0a76.8 76.8 0 1 1 76.8-76.8A76.8 76.8 0 0 1 665.6 307.2z m179.2 179.2A76.8 76.8 0 1 1 921.6 409.6a76.8 76.8 0 0 1-76.8 76.8z",fill:e})})}function Nw({color:e="#262626"}){return p.jsxs("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",children:[p.jsx("path",{d:"M609.28 232.32H152.96V404.48h100.48V332.8h127.36v417.92H306.56v100.48h249.6v-100.48H481.28V332.8h128v71.68h100.48V232.32H609.28z",fill:e}),p.jsx("path",{d:"M812.8 492.16H547.84v99.84h58.24V550.4h74.24v242.56h-42.88v58.24H782.08v-58.24h-43.52V550.4h74.24v41.6h58.24V492.16h-58.24z",fill:e})]})}function Dw({color:e="#262626"}){return p.jsx("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",children:p.jsx("path",{d:"M914.285714 694.857143A182.857143 182.857143 0 0 1 731.428571 877.714286H658.285714v-73.142857h73.142857a109.714286 109.714286 0 0 0 109.714286-109.714286v-73.142857h73.142857v73.142857zM731.428571 73.142857a182.857143 182.857143 0 0 1 182.857143 182.857143v73.142857h-73.142857v-73.142857A109.714286 109.714286 0 0 0 731.428571 146.285714H658.285714V73.142857h73.142857zM292.571429 877.714286a182.857143 182.857143 0 0 1-182.857143-182.857143v-73.142857h73.142857v73.142857A109.714286 109.714286 0 0 0 292.571429 804.571429h73.142857v73.142857H292.571429zM109.714286 256A182.857143 182.857143 0 0 1 292.571429 73.142857h73.142857v73.142857H292.571429a109.714286 109.714286 0 0 0-109.714286 109.714286v73.142857h-73.142857v-73.142857z",fill:e})})}function zw({color:e="#262626"}){return p.jsx("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",children:p.jsx("path",{d:"M128 85.333333a42.666667 42.666667 0 0 0-42.666667 42.666667v597.333333a42.666667 42.666667 0 0 0 42.666667 42.666667h128v128a42.666667 42.666667 0 0 0 42.666667 42.666667h597.333333a42.666667 42.666667 0 0 0 42.666667-42.666667V298.666667a42.666667 42.666667 0 0 0-42.666667-42.666667h-128V128a42.666667 42.666667 0 0 0-42.666667-42.666667H128z m640 407.893334l85.333333 85.333333v122.88l-85.333333-85.333333v-122.88z m0-90.453334V341.333333h85.333333v146.773334l-85.333333-85.333334zM768 725.333333v-18.773333l85.333333 85.333333V853.333333h-61.44l-85.333333-85.333333H725.333333a42.666667 42.666667 0 0 0 42.666667-42.666667z m-151.893333 42.666667l85.333333 85.333333h-122.88l-85.333333-85.333333h122.88z m-213.333334 0l85.333334 85.333333H341.333333v-85.333333h61.44zM170.666667 682.666667V170.666667h512v512H170.666667z",fill:e})})}function Lw({color:e="#262626"}){return p.jsxs("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",children:[p.jsx("path",{d:"M795.562667 378.709333H228.458667a79.104 79.104 0 0 0-79.146667 79.104v222.848a79.104 79.104 0 0 0 79.146667 79.104h567.104A79.104 79.104 0 0 0 874.666667 680.661333V457.813333a79.104 79.104 0 0 0-79.104-79.104m0 64c8.32 0 15.104 6.784 15.104 15.104v222.848c0 8.32-6.762667 15.104-15.104 15.104H228.458667a15.146667 15.146667 0 0 1-15.146667-15.104V457.813333a15.146667 15.146667 0 0 1 15.146667-15.104h567.104M181.333333 320h661.333334a32 32 0 0 0 0-64h-661.333334a32 32 0 0 0 0 64z",fill:e}),p.jsx("path",{d:"M399.637333 578.389333h21.333334a21.333333 21.333333 0 0 0 21.333333-21.333333v-117.248a21.333333 21.333333 0 0 0-21.333333-21.333333h-21.333334a21.333333 21.333333 0 0 0-21.333333 21.333333v117.248a21.333333 21.333333 0 0 0 21.333333 21.333333zM603.029333 578.389333h21.333334a21.333333 21.333333 0 0 0 21.333333-21.333333v-117.248a21.333333 21.333333 0 0 0-21.333333-21.333333h-21.333334a21.333333 21.333333 0 0 0-21.333333 21.333333v117.248a21.333333 21.333333 0 0 0 21.333333 21.333333zM501.333333 520.170667h21.333334a21.333333 21.333333 0 0 0 21.333333-21.333334v-59.029333a21.333333 21.333333 0 0 0-21.333333-21.333333h-21.333334a21.333333 21.333333 0 0 0-21.333333 21.333333v59.029333a21.333333 21.333333 0 0 0 21.333333 21.333334zM297.962667 520.170667h21.333333a21.333333 21.333333 0 0 0 21.333333-21.333334v-59.029333a21.333333 21.333333 0 0 0-21.333333-21.333333h-21.333333a21.333333 21.333333 0 0 0-21.333334 21.333333v59.029333a21.333333 21.333333 0 0 0 21.333334 21.333334zM704.704 520.170667h21.333333a21.333333 21.333333 0 0 0 21.333334-21.333334v-59.029333a21.333333 21.333333 0 0 0-21.333334-21.333333h-21.333333a21.333333 21.333333 0 0 0-21.333333 21.333333v59.029333a21.333333 21.333333 0 0 0 21.333333 21.333334z",fill:e})]})}const Fw=()=>window.location.pathname.endsWith("en")?{color:{title:"Color"},font:{title:"Font"},borerRadius:{title:"Border Radius"},shadow:{title:"Shadow"},size:{title:"Size"}}:{color:{title:"色彩"},font:{title:"字体"},borerRadius:{title:"圆角"},shadow:{title:"阴影"},size:{title:"尺寸"}},Bw=e=>e==="mobile"||e==="pad",gm=()=>{const e=window.getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim();if(e)return e;const r=kr("color");return r||cn.value};function Hw({activeTabIdx:e,device:r,onChangeActiveTab:t}){const n=L.useMemo(()=>Fw(),[]),[a,o]=L.useState(()=>gm());L.useLayoutEffect(()=>{const u=new MutationObserver(()=>{o(gm())});return u.observe(document.documentElement,{attributes:!0,attributeFilter:["style","theme-color"]}),()=>u.disconnect()},[]);const i=L.useMemo(()=>{const u=n;return[{title:u.color.title,image:kw},{title:u.font.title,image:Nw},{title:u.borerRadius.title,image:Dw},{title:u.shadow.title,image:zw},{title:u.size.title,image:Lw}]},[n]),c=L.useMemo(()=>Bw(r)?i.filter(u=>u.title!==n.size.title):i,[i,r,n.size.title]),l=u=>{t?.(u)};return p.jsx("div",{className:"switch-tabs",children:p.jsxs("div",{className:"switch-tabs__panel",children:[p.jsx("div",{className:"border",style:{top:`${e*88}px`}}),c.map((u,f)=>{const g=u.image;return p.jsxs("div",{className:Qt("switch-tabs__panel-content",{"switch-tabs__panel-content--active":f===e}),onClick:()=>l(f),children:[p.jsx("div",{children:p.jsx(g,{color:a})}),p.jsx("p",{children:u.title})]},f)})]})})}var c1=typeof global=="object"&&global&&global.Object===Object&&global,Vw=typeof self=="object"&&self&&self.Object===Object&&self,Kr=c1||Vw||Function("return this")(),ct=Kr.Symbol,f1=Object.prototype,Gw=f1.hasOwnProperty,Ww=f1.toString,wn=ct?ct.toStringTag:void 0;function Uw(e){var r=Gw.call(e,wn),t=e[wn];try{e[wn]=void 0;var n=!0}catch{}var a=Ww.call(e);return n&&(r?e[wn]=t:delete e[wn]),a}var Kw=Object.prototype,Yw=Kw.toString;function Jw(e){return Yw.call(e)}var Zw="[object Null]",Xw="[object Undefined]",mm=ct?ct.toStringTag:void 0;function Xn(e){return e==null?e===void 0?Xw:Zw:mm&&mm in Object(e)?Uw(e):Jw(e)}function An(e){return e!=null&&typeof e=="object"}var $n=Array.isArray;function d1(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var Qw="[object AsyncFunction]",e5="[object Function]",r5="[object GeneratorFunction]",t5="[object Proxy]";function v1(e){if(!d1(e))return!1;var r=Xn(e);return r==e5||r==r5||r==Qw||r==t5}var Wu=Kr["__core-js_shared__"],ym=(function(){var e=/[^.]+$/.exec(Wu&&Wu.keys&&Wu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function n5(e){return!!ym&&ym in e}var a5=Function.prototype,o5=a5.toString;function At(e){if(e!=null){try{return o5.call(e)}catch{}try{return e+""}catch{}}return""}var i5=/[\\^$.*+?()[\]{}|]/g,s5=/^\[object .+?Constructor\]$/,l5=Function.prototype,u5=Object.prototype,c5=l5.toString,f5=u5.hasOwnProperty,d5=RegExp("^"+c5.call(f5).replace(i5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v5(e){if(!d1(e)||n5(e))return!1;var r=v1(e)?d5:s5;return r.test(At(e))}function p5(e,r){return e?.[r]}function fn(e,r){var t=p5(e,r);return v5(t)?t:void 0}var lc=fn(Kr,"WeakMap"),h5=9007199254740991,g5=/^(?:0|[1-9]\d*)$/;function m5(e,r){var t=typeof e;return r=r??h5,!!r&&(t=="number"||t!="symbol"&&g5.test(e))&&e>-1&&e%1==0&&e<r}function p1(e,r){return e===r||e!==e&&r!==r}var y5=9007199254740991;function h1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=y5}function b5(e){return e!=null&&h1(e.length)&&!v1(e)}var x5=Object.prototype;function S5(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||x5;return e===t}function _5(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var w5="[object Arguments]";function bm(e){return An(e)&&Xn(e)==w5}var g1=Object.prototype,E5=g1.hasOwnProperty,R5=g1.propertyIsEnumerable,m1=bm((function(){return arguments})())?bm:function(e){return An(e)&&E5.call(e,"callee")&&!R5.call(e,"callee")};function O5(){return!1}var y1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xm=y1&&typeof module=="object"&&module&&!module.nodeType&&module,T5=xm&&xm.exports===y1,Sm=T5?Kr.Buffer:void 0,I5=Sm?Sm.isBuffer:void 0,uc=I5||O5,C5="[object Arguments]",j5="[object Array]",P5="[object Boolean]",A5="[object Date]",$5="[object Error]",q5="[object Function]",M5="[object Map]",k5="[object Number]",N5="[object Object]",D5="[object RegExp]",z5="[object Set]",L5="[object String]",F5="[object WeakMap]",B5="[object ArrayBuffer]",H5="[object DataView]",V5="[object Float32Array]",G5="[object Float64Array]",W5="[object Int8Array]",U5="[object Int16Array]",K5="[object Int32Array]",Y5="[object Uint8Array]",J5="[object Uint8ClampedArray]",Z5="[object Uint16Array]",X5="[object Uint32Array]",Ge={};Ge[V5]=Ge[G5]=Ge[W5]=Ge[U5]=Ge[K5]=Ge[Y5]=Ge[J5]=Ge[Z5]=Ge[X5]=!0;Ge[C5]=Ge[j5]=Ge[B5]=Ge[P5]=Ge[H5]=Ge[A5]=Ge[$5]=Ge[q5]=Ge[M5]=Ge[k5]=Ge[N5]=Ge[D5]=Ge[z5]=Ge[L5]=Ge[F5]=!1;function Q5(e){return An(e)&&h1(e.length)&&!!Ge[Xn(e)]}function e4(e){return function(r){return e(r)}}var b1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jn=b1&&typeof module=="object"&&module&&!module.nodeType&&module,r4=jn&&jn.exports===b1,Uu=r4&&c1.process,_m=(function(){try{var e=jn&&jn.require&&jn.require("util").types;return e||Uu&&Uu.binding&&Uu.binding("util")}catch{}})(),wm=_m&&_m.isTypedArray,x1=wm?e4(wm):Q5,t4=Object.prototype,n4=t4.hasOwnProperty;function a4(e,r){var t=$n(e),n=!t&&m1(e),a=!t&&!n&&uc(e),o=!t&&!n&&!a&&x1(e),i=t||n||a||o,c=i?_5(e.length,String):[],l=c.length;for(var u in e)n4.call(e,u)&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||m5(u,l)))&&c.push(u);return c}function o4(e,r){return function(t){return e(r(t))}}var i4=o4(Object.keys,Object),s4=Object.prototype,l4=s4.hasOwnProperty;function u4(e){if(!S5(e))return i4(e);var r=[];for(var t in Object(e))l4.call(e,t)&&t!="constructor"&&r.push(t);return r}function c4(e){return b5(e)?a4(e):u4(e)}var qn=fn(Object,"create");function f4(){this.__data__=qn?qn(null):{},this.size=0}function d4(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var v4="__lodash_hash_undefined__",p4=Object.prototype,h4=p4.hasOwnProperty;function g4(e){var r=this.__data__;if(qn){var t=r[e];return t===v4?void 0:t}return h4.call(r,e)?r[e]:void 0}var m4=Object.prototype,y4=m4.hasOwnProperty;function b4(e){var r=this.__data__;return qn?r[e]!==void 0:y4.call(r,e)}var x4="__lodash_hash_undefined__";function S4(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=qn&&r===void 0?x4:r,this}function Et(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}Et.prototype.clear=f4;Et.prototype.delete=d4;Et.prototype.get=g4;Et.prototype.has=b4;Et.prototype.set=S4;function _4(){this.__data__=[],this.size=0}function La(e,r){for(var t=e.length;t--;)if(p1(e[t][0],r))return t;return-1}var w4=Array.prototype,E4=w4.splice;function R4(e){var r=this.__data__,t=La(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():E4.call(r,t,1),--this.size,!0}function O4(e){var r=this.__data__,t=La(r,e);return t<0?void 0:r[t][1]}function T4(e){return La(this.__data__,e)>-1}function I4(e,r){var t=this.__data__,n=La(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}function Yr(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}Yr.prototype.clear=_4;Yr.prototype.delete=R4;Yr.prototype.get=O4;Yr.prototype.has=T4;Yr.prototype.set=I4;var Mn=fn(Kr,"Map");function C4(){this.size=0,this.__data__={hash:new Et,map:new(Mn||Yr),string:new Et}}function j4(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}function Fa(e,r){var t=e.__data__;return j4(r)?t[typeof r=="string"?"string":"hash"]:t.map}function P4(e){var r=Fa(this,e).delete(e);return this.size-=r?1:0,r}function A4(e){return Fa(this,e).get(e)}function $4(e){return Fa(this,e).has(e)}function q4(e,r){var t=Fa(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}function $t(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}$t.prototype.clear=C4;$t.prototype.delete=P4;$t.prototype.get=A4;$t.prototype.has=$4;$t.prototype.set=q4;function S1(e,r){for(var t=-1,n=r.length,a=e.length;++t<n;)e[a+t]=r[t];return e}var Em=ct?ct.isConcatSpreadable:void 0;function M4(e){return $n(e)||m1(e)||!!(Em&&e&&e[Em])}function k4(e,r,t,n,a){var o=-1,i=e.length;for(t||(t=M4),a||(a=[]);++o<i;){var c=e[o];t(c)?S1(a,c):a[a.length]=c}return a}function _1(e){var r=e==null?0:e.length;return r?k4(e):[]}function N4(){this.__data__=new Yr,this.size=0}function D4(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}function z4(e){return this.__data__.get(e)}function L4(e){return this.__data__.has(e)}var F4=200;function B4(e,r){var t=this.__data__;if(t instanceof Yr){var n=t.__data__;if(!Mn||n.length<F4-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new $t(n)}return t.set(e,r),this.size=t.size,this}function ut(e){var r=this.__data__=new Yr(e);this.size=r.size}ut.prototype.clear=N4;ut.prototype.delete=D4;ut.prototype.get=z4;ut.prototype.has=L4;ut.prototype.set=B4;function H4(e,r){for(var t=-1,n=e==null?0:e.length,a=0,o=[];++t<n;){var i=e[t];r(i,t,e)&&(o[a++]=i)}return o}function V4(){return[]}var G4=Object.prototype,W4=G4.propertyIsEnumerable,Rm=Object.getOwnPropertySymbols,U4=Rm?function(e){return e==null?[]:(e=Object(e),H4(Rm(e),function(r){return W4.call(e,r)}))}:V4;function K4(e,r,t){var n=r(e);return $n(e)?n:S1(n,t(e))}function Om(e){return K4(e,c4,U4)}var cc=fn(Kr,"DataView"),fc=fn(Kr,"Promise"),dc=fn(Kr,"Set"),Tm="[object Map]",Y4="[object Object]",Im="[object Promise]",Cm="[object Set]",jm="[object WeakMap]",Pm="[object DataView]",J4=At(cc),Z4=At(Mn),X4=At(fc),Q4=At(dc),e6=At(lc),st=Xn;(cc&&st(new cc(new ArrayBuffer(1)))!=Pm||Mn&&st(new Mn)!=Tm||fc&&st(fc.resolve())!=Im||dc&&st(new dc)!=Cm||lc&&st(new lc)!=jm)&&(st=function(e){var r=Xn(e),t=r==Y4?e.constructor:void 0,n=t?At(t):"";if(n)switch(n){case J4:return Pm;case Z4:return Tm;case X4:return Im;case Q4:return Cm;case e6:return jm}return r});var Am=Kr.Uint8Array,r6="__lodash_hash_undefined__";function t6(e){return this.__data__.set(e,r6),this}function n6(e){return this.__data__.has(e)}function Ea(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new $t;++r<t;)this.add(e[r])}Ea.prototype.add=Ea.prototype.push=t6;Ea.prototype.has=n6;function a6(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}function o6(e,r){return e.has(r)}var i6=1,s6=2;function w1(e,r,t,n,a,o){var i=t&i6,c=e.length,l=r.length;if(c!=l&&!(i&&l>c))return!1;var u=o.get(e),f=o.get(r);if(u&&f)return u==r&&f==e;var g=-1,v=!0,h=t&s6?new Ea:void 0;for(o.set(e,r),o.set(r,e);++g<c;){var y=e[g],_=r[g];if(n)var T=i?n(_,y,g,r,e,o):n(y,_,g,e,r,o);if(T!==void 0){if(T)continue;v=!1;break}if(h){if(!a6(r,function(A,b){if(!o6(h,b)&&(y===A||a(y,A,t,n,o)))return h.push(b)})){v=!1;break}}else if(!(y===_||a(y,_,t,n,o))){v=!1;break}}return o.delete(e),o.delete(r),v}function l6(e){var r=-1,t=Array(e.size);return e.forEach(function(n,a){t[++r]=[a,n]}),t}function u6(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var c6=1,f6=2,d6="[object Boolean]",v6="[object Date]",p6="[object Error]",h6="[object Map]",g6="[object Number]",m6="[object RegExp]",y6="[object Set]",b6="[object String]",x6="[object Symbol]",S6="[object ArrayBuffer]",_6="[object DataView]",$m=ct?ct.prototype:void 0,Ku=$m?$m.valueOf:void 0;function w6(e,r,t,n,a,o,i){switch(t){case _6:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case S6:return!(e.byteLength!=r.byteLength||!o(new Am(e),new Am(r)));case d6:case v6:case g6:return p1(+e,+r);case p6:return e.name==r.name&&e.message==r.message;case m6:case b6:return e==r+"";case h6:var c=l6;case y6:var l=n&c6;if(c||(c=u6),e.size!=r.size&&!l)return!1;var u=i.get(e);if(u)return u==r;n|=f6,i.set(e,r);var f=w1(c(e),c(r),n,a,o,i);return i.delete(e),f;case x6:if(Ku)return Ku.call(e)==Ku.call(r)}return!1}var E6=1,R6=Object.prototype,O6=R6.hasOwnProperty;function T6(e,r,t,n,a,o){var i=t&E6,c=Om(e),l=c.length,u=Om(r),f=u.length;if(l!=f&&!i)return!1;for(var g=l;g--;){var v=c[g];if(!(i?v in r:O6.call(r,v)))return!1}var h=o.get(e),y=o.get(r);if(h&&y)return h==r&&y==e;var _=!0;o.set(e,r),o.set(r,e);for(var T=i;++g<l;){v=c[g];var A=e[v],b=r[v];if(n)var $=i?n(b,A,v,r,e,o):n(A,b,v,e,r,o);if(!($===void 0?A===b||a(A,b,t,n,o):$)){_=!1;break}T||(T=v=="constructor")}if(_&&!T){var S=e.constructor,E=r.constructor;S!=E&&"constructor"in e&&"constructor"in r&&!(typeof S=="function"&&S instanceof S&&typeof E=="function"&&E instanceof E)&&(_=!1)}return o.delete(e),o.delete(r),_}var I6=1,qm="[object Arguments]",Mm="[object Array]",fa="[object Object]",C6=Object.prototype,km=C6.hasOwnProperty;function j6(e,r,t,n,a,o){var i=$n(e),c=$n(r),l=i?Mm:st(e),u=c?Mm:st(r);l=l==qm?fa:l,u=u==qm?fa:u;var f=l==fa,g=u==fa,v=l==u;if(v&&uc(e)){if(!uc(r))return!1;i=!0,f=!1}if(v&&!f)return o||(o=new ut),i||x1(e)?w1(e,r,t,n,a,o):w6(e,r,l,t,n,a,o);if(!(t&I6)){var h=f&&km.call(e,"__wrapped__"),y=g&&km.call(r,"__wrapped__");if(h||y){var _=h?e.value():e,T=y?r.value():r;return o||(o=new ut),a(_,T,t,n,o)}}return v?(o||(o=new ut),T6(e,r,t,n,a,o)):!1}function E1(e,r,t,n,a){return e===r?!0:e==null||r==null||!An(e)&&!An(r)?e!==e&&r!==r:j6(e,r,t,n,E1,a)}function da(e,r){return E1(e,r)}function En({type:e,colorPalette:r,originColorPalette:t,paletteChange:n,onRecoverGradation:a,onChangeGradation:o}){const[i,c]=L.useState(0),[l,u]=L.useState(null),f=()=>{a?.(e)},g=(h,y)=>{o?.(h,y,e)},v=L.useMemo(()=>_1(r),[r]);return p.jsxs("div",{className:"color-content",children:[p.jsx("div",{className:"color-content__horizontal-list",children:n?p.jsxs("div",{className:"unlink",onClick:f,children:[p.jsx(dr.IconLink,{size:"small"}),"断开色阶,点击恢复"]}):p.jsx("div",{children:v.filter((h,y)=>h&&(v[y+1]&&h.value!==v[y+1].value||y===v.length-1)).map((h,y)=>p.jsx("div",{style:{background:h.value},onClick:()=>c(y)},y))})}),p.jsxs("div",{className:"color-content__vertical-list",children:[p.jsx("span",{className:"current-arrow",style:{left:`${i*(e==="gray"?16.88:23.62)+(e==="gray"?5:8)}px`}}),(()=>{const h=v.filter(T=>!!T.name),y=h.findIndex(T=>T.idx===i)*44+4,_=h.filter(T=>T.idx===i).length*44;return p.jsx("div",{className:"active-tab",style:{top:`${y}px`,height:`${_}px`}})})(),v.filter(h=>!!h.name).map((h,y)=>p.jsxs("div",{children:[p.jsx(Ee.Popup,{placement:"left",showArrow:!0,trigger:"click",destroyOnClose:!0,attach:yr,overlayStyle:{borderRadius:"9px"},content:p.jsx(Ee.ColorPickerPanel,{format:"HEX",value:pm(h.name),onChange:_=>g(_,h.idx)}),children:p.jsx("div",{className:"block",style:{border:"1px solid var(--theme-component-border)",backgroundColor:h.value,minWidth:"32px",height:"32px",borderRadius:"6px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",color:"var(--text-anti)"},onMouseEnter:()=>u(y),onMouseLeave:()=>u(null),children:l===y&&p.jsx(dr.IconEdit,{size:"small"})})}),h.name&&p.jsxs("div",{className:"color-content__vertical-list-content",onClick:()=>c(h.idx),children:[p.jsx("div",{className:"color-content__vertical-list-title",title:h.name,children:h.name.replace("--td-","")}),p.jsxs("div",{className:"color-content__vertical-list-subtitle",children:[p.jsxs("span",{children:[e,h.idx," "]}),p.jsx("span",{children:pm(h.name)})]}),h.isModified&&p.jsx(dr.IconClose,{className:"error-icon"})]})]},y))]})]})}var xa={exports:{}},Sa={exports:{}},P6=Sa.exports,Nm;function A6(){return Nm||(Nm=1,(function(e,r){(function(t,n){e.exports=n()})(P6,(function(){var t=1e3,n=6e4,a=36e5,o="millisecond",i="second",c="minute",l="hour",u="day",f="week",g="month",v="quarter",h="year",y="date",_="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var B=["th","st","nd","rd"],G=z%100;return"["+z+(B[(G-20)%10]||B[G]||B[0])+"]"}},$=function(z,B,G){var U=String(z);return!U||U.length>=B?z:""+Array(B+1-U.length).join(G)+z},S={s:$,z:function(z){var B=-z.utcOffset(),G=Math.abs(B),U=Math.floor(G/60),X=G%60;return(B<=0?"+":"-")+$(U,2,"0")+":"+$(X,2,"0")},m:function z(B,G){if(B.date()<G.date())return-z(G,B);var U=12*(G.year()-B.year())+(G.month()-B.month()),X=B.clone().add(U,g),ve=G-X<0,F=B.clone().add(U+(ve?-1:1),g);return+(-(U+(G-X)/(ve?X-F:F-X))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:g,y:h,w:f,d:u,D:y,h:l,m:c,s:i,ms:o,Q:v}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},E="en",M={};M[E]=b;var j="$isDayjsObject",x=function(z){return z instanceof V||!(!z||!z[j])},R=function z(B,G,U){var X;if(!B)return E;if(typeof B=="string"){var ve=B.toLowerCase();M[ve]&&(X=ve),G&&(M[ve]=G,X=ve);var F=B.split("-");if(!X&&F.length>1)return z(F[0])}else{var H=B.name;M[H]=B,X=H}return!U&&X&&(E=X),X||!U&&E},P=function(z,B){if(x(z))return z.clone();var G=typeof B=="object"?B:{};return G.date=z,G.args=arguments,new V(G)},I=S;I.l=R,I.i=x,I.w=function(z,B){return P(z,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var V=(function(){function z(G){this.$L=R(G.locale,null,!0),this.parse(G),this.$x=this.$x||G.x||{},this[j]=!0}var B=z.prototype;return B.parse=function(G){this.$d=(function(U){var X=U.date,ve=U.utc;if(X===null)return new Date(NaN);if(I.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var F=X.match(T);if(F){var H=F[2]-1||0,ae=(F[7]||"0").substring(0,3);return ve?new Date(Date.UTC(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,ae)):new Date(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,ae)}}return new Date(X)})(G),this.init()},B.init=function(){var G=this.$d;this.$y=G.getFullYear(),this.$M=G.getMonth(),this.$D=G.getDate(),this.$W=G.getDay(),this.$H=G.getHours(),this.$m=G.getMinutes(),this.$s=G.getSeconds(),this.$ms=G.getMilliseconds()},B.$utils=function(){return I},B.isValid=function(){return this.$d.toString()!==_},B.isSame=function(G,U){var X=P(G);return this.startOf(U)<=X&&X<=this.endOf(U)},B.isAfter=function(G,U){return P(G)<this.startOf(U)},B.isBefore=function(G,U){return this.endOf(U)<P(G)},B.$g=function(G,U,X){return I.u(G)?this[U]:this.set(X,G)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(G,U){var X=this,ve=!!I.u(U)||U,F=I.p(G),H=function(ce,Q){var se=I.w(X.$u?Date.UTC(X.$y,Q,ce):new Date(X.$y,Q,ce),X);return ve?se:se.endOf(u)},ae=function(ce,Q){return I.w(X.toDate()[ce].apply(X.toDate("s"),(ve?[0,0,0,0]:[23,59,59,999]).slice(Q)),X)},le=this.$W,oe=this.$M,J=this.$D,K="set"+(this.$u?"UTC":"");switch(F){case h:return ve?H(1,0):H(31,11);case g:return ve?H(1,oe):H(0,oe+1);case f:var ue=this.$locale().weekStart||0,ie=(le<ue?le+7:le)-ue;return H(ve?J-ie:J+(6-ie),oe);case u:case y:return ae(K+"Hours",0);case l:return ae(K+"Minutes",1);case c:return ae(K+"Seconds",2);case i:return ae(K+"Milliseconds",3);default:return this.clone()}},B.endOf=function(G){return this.startOf(G,!1)},B.$set=function(G,U){var X,ve=I.p(G),F="set"+(this.$u?"UTC":""),H=(X={},X[u]=F+"Date",X[y]=F+"Date",X[g]=F+"Month",X[h]=F+"FullYear",X[l]=F+"Hours",X[c]=F+"Minutes",X[i]=F+"Seconds",X[o]=F+"Milliseconds",X)[ve],ae=ve===u?this.$D+(U-this.$W):U;if(ve===g||ve===h){var le=this.clone().set(y,1);le.$d[H](ae),le.init(),this.$d=le.set(y,Math.min(this.$D,le.daysInMonth())).$d}else H&&this.$d[H](ae);return this.init(),this},B.set=function(G,U){return this.clone().$set(G,U)},B.get=function(G){return this[I.p(G)]()},B.add=function(G,U){var X,ve=this;G=Number(G);var F=I.p(U),H=function(oe){var J=P(ve);return I.w(J.date(J.date()+Math.round(oe*G)),ve)};if(F===g)return this.set(g,this.$M+G);if(F===h)return this.set(h,this.$y+G);if(F===u)return H(1);if(F===f)return H(7);var ae=(X={},X[c]=n,X[l]=a,X[i]=t,X)[F]||1,le=this.$d.getTime()+G*ae;return I.w(le,this)},B.subtract=function(G,U){return this.add(-1*G,U)},B.format=function(G){var U=this,X=this.$locale();if(!this.isValid())return X.invalidDate||_;var ve=G||"YYYY-MM-DDTHH:mm:ssZ",F=I.z(this),H=this.$H,ae=this.$m,le=this.$M,oe=X.weekdays,J=X.months,K=X.meridiem,ue=function(Q,se,Z,Pe){return Q&&(Q[se]||Q(U,ve))||Z[se].slice(0,Pe)},ie=function(Q){return I.s(H%12||12,Q,"0")},ce=K||function(Q,se,Z){var Pe=Q<12?"AM":"PM";return Z?Pe.toLowerCase():Pe};return ve.replace(A,(function(Q,se){return se||(function(Z){switch(Z){case"YY":return String(U.$y).slice(-2);case"YYYY":return I.s(U.$y,4,"0");case"M":return le+1;case"MM":return I.s(le+1,2,"0");case"MMM":return ue(X.monthsShort,le,J,3);case"MMMM":return ue(J,le);case"D":return U.$D;case"DD":return I.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return ue(X.weekdaysMin,U.$W,oe,2);case"ddd":return ue(X.weekdaysShort,U.$W,oe,3);case"dddd":return oe[U.$W];case"H":return String(H);case"HH":return I.s(H,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ce(H,ae,!0);case"A":return ce(H,ae,!1);case"m":return String(ae);case"mm":return I.s(ae,2,"0");case"s":return String(U.$s);case"ss":return I.s(U.$s,2,"0");case"SSS":return I.s(U.$ms,3,"0");case"Z":return F}return null})(Q)||F.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(G,U,X){var ve,F=this,H=I.p(U),ae=P(G),le=(ae.utcOffset()-this.utcOffset())*n,oe=this-ae,J=function(){return I.m(F,ae)};switch(H){case h:ve=J()/12;break;case g:ve=J();break;case v:ve=J()/3;break;case f:ve=(oe-le)/6048e5;break;case u:ve=(oe-le)/864e5;break;case l:ve=oe/a;break;case c:ve=oe/n;break;case i:ve=oe/t;break;default:ve=oe}return X?ve:I.a(ve)},B.daysInMonth=function(){return this.endOf(g).$D},B.$locale=function(){return M[this.$L]},B.locale=function(G,U){if(!G)return this.$L;var X=this.clone(),ve=R(G,U,!0);return ve&&(X.$L=ve),X},B.clone=function(){return I.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},z})(),W=V.prototype;return P.prototype=W,[["$ms",o],["$s",i],["$m",c],["$H",l],["$W",u],["$M",g],["$y",h],["$D",y]].forEach((function(z){W[z[1]]=function(B){return this.$g(B,z[0],z[1])}})),P.extend=function(z,B){return z.$i||(z(B,V,P),z.$i=!0),P},P.locale=R,P.isDayjs=x,P.unix=function(z){return P(1e3*z)},P.en=M[E],P.Ls=M,P.p={},P}))})(Sa)),Sa.exports}var $6=xa.exports,Dm;function q6(){return Dm||(Dm=1,(function(e,r){(function(t,n){e.exports=n(A6())})($6,(function(t){function n(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=n(t),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(i,c){return c==="W"?i+"周":i+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(i,c){var l=100*i+c;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return a.default.locale(o,null,!0),o}))})(xa)),xa.exports}q6();const M6={autoComplete:{empty:"暂无数据"},pagination:{itemsPerPage:"{size} 条/页",jumpTo:"跳至",page:"页",total:"共 {count} 条数据"},cascader:{empty:"暂无数据",loadingText:"加载中",placeholder:"请选择"},calendar:{yearSelection:"{year} 年",monthSelection:"{month} 月",yearRadio:"年",monthRadio:"月",hideWeekend:"隐藏周末",showWeekend:"显示周末",today:"今天",thisMonth:"本月",week:"一,二,三,四,五,六,日",cellMonth:"1 月,2 月,3 月,4 月,5 月,6 月,7 月,8 月,9 月,10 月,11 月,12 月"},transfer:{title:"{checked} / {total} 项",empty:"暂无数据",placeholder:"请输入关键词搜索"},timePicker:{dayjsLocale:"zh-cn",now:"此刻",confirm:"确定",anteMeridiem:"上午",postMeridiem:"下午",placeholder:"选择时间"},dialog:{confirm:"确认",cancel:"取消"},drawer:{confirm:"确认",cancel:"取消"},popconfirm:{confirm:{content:"确定"},cancel:{content:"取消"}},table:{empty:"暂无数据",loadingText:"正在加载中,请稍后",loadingMoreText:"点击加载更多",filterInputPlaceholder:"请输入内容(无默认值)",sortAscendingOperationText:"点击升序",sortCancelOperationText:"点击取消排序",sortDescendingOperationText:"点击降序",clearFilterResultButtonText:"清空筛选",columnConfigButtonText:"列配置",columnConfigTitleText:"表格列配置",columnConfigDescriptionText:"请选择需要在表格中显示的数据列",confirmText:"确认",cancelText:"取消",resetText:"重置",selectAllText:"全选",searchResultText:"搜索“{result}”,找到 {count} 条结果"},select:{empty:"暂无数据",loadingText:"加载中",placeholder:"请选择"},tree:{empty:"暂无数据"},treeSelect:{empty:"暂无数据",loadingText:"加载中",placeholder:"请选择"},datePicker:{dayjsLocale:"zh-cn",placeholder:{date:"请选择日期",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",week:"请选择周"},weekdays:["一","二","三","四","五","六","日"],months:["1 月","2 月","3 月","4 月","5 月","6 月","7 月","8 月","9 月","10 月","11 月","12 月"],quarters:["一季度","二季度","三季度","四季度"],rangeSeparator:" - ",direction:"ltr",format:"YYYY-MM-DD",dayAriaLabel:"日",weekAbbreviation:"周",yearAriaLabel:"年",monthAriaLabel:"月",confirm:"确定",selectTime:"选择时间",selectDate:"选择日期",nextYear:"下一年",preYear:"上一年",nextMonth:"下个月",preMonth:"上个月",preDecade:"上个十年",nextDecade:"下个十年",now:"当前"},upload:{sizeLimitMessage:"文件大小不能超过 {sizeLimit}",cancelUploadText:"取消上传",triggerUploadText:{fileInput:"选择文件",image:"点击上传图片",normal:"点击上传",reupload:"重新选择",continueUpload:"继续选择",delete:"删除",uploading:"上传中"},dragger:{dragDropText:"释放鼠标",draggingText:"拖拽到此区域",clickAndDragText:"点击上方“选择文件”或将文件拖拽到此区域"},file:{fileNameText:"文件名",fileSizeText:"文件大小",fileStatusText:"状态",fileOperationText:"操作",fileOperationDateText:"上传日期"},progress:{uploadingText:"上传中",waitingText:"待上传",failText:"上传失败",successText:"上传成功"}},form:{errorMessage:{date:"请输入正确的${name}",url:"请输入正确的${name}",required:"${name}必填",whitespace:"${name}不能为空",max:"${name}字符长度不能超过 ${validate} 个字符,一个中文等于两个字符",min:"${name}字符长度不能少于 ${validate} 个字符,一个中文等于两个字符",len:"${name}字符长度必须是 ${validate}",enum:"${name}只能是${validate}等",idcard:"请输入正确的${name}",telnumber:"请输入正确的${name}",pattern:"请输入正确的${name}",validator:"${name}不符合要求",boolean:"${name}数据类型必须是布尔类型",number:"${name}必须是数字"},colonText:":"},input:{placeholder:"请输入"},list:{loadingText:"正在加载中,请稍等",loadingMoreText:"点击加载更多"},alert:{expandText:"展开更多",collapseText:"收起"},anchor:{copySuccessText:"链接复制成功",copyText:"复制链接"},colorPicker:{swatchColorTitle:"系统预设颜色",recentColorTitle:"最近使用颜色",clearConfirmText:"确定清空最近使用的颜色吗?",singleColor:"单色",gradientColor:"渐变"},guide:{finishButtonProps:{content:"完成",theme:"primary"},nextButtonProps:{content:"下一步",theme:"primary"},skipButtonProps:{content:"跳过",theme:"default"},prevButtonProps:{content:"上一步",theme:"default"}},image:{errorText:"图片无法显示",loadingText:"图片加载中"},imageViewer:{errorText:"图片加载失败,可尝试重新加载",mirrorTipText:"镜像",rotateTipText:"旋转",originalSizeTipText:"原始大小"},typography:{expandText:"展开",collapseText:"收起",copiedText:"复制成功"},rate:{rateText:["极差","失望","一般","满意","惊喜"]},empty:{titleText:{maintenance:"建设中",success:"成功",fail:"失败",empty:"暂无数据",networkError:"网络错误"}},descriptions:{colonText:":"},chat:{placeholder:"请输入消息...",stopBtnText:"中止",refreshTipText:"重新生成",copyTipText:"复制",likeTipText:"点赞",dislikeTipText:"点踩",copyCodeBtnText:"复制代码",copyCodeSuccessText:"已复制",clearHistoryBtnText:"清空历史记录",copyTextSuccess:"已成功复制到剪贴板",copyTextFail:"复制到剪贴板失败",confirmClearHistory:"确定要清空所有的消息吗?",loadingText:"思考中...",loadingEndText:"已深度思考",uploadImageText:"上传图片",uploadAttachmentText:"上传附件"},qrcode:{expiredText:"二维码过期",refreshText:"点击刷新",scannedText:"已扫描"}},k6="t",N6={classPrefix:k6,attach:null,form:{},icon:{},isContextEffectPlugin:!1,...M6},D6={globalConfig:N6},z6=L.createContext(D6),L6=()=>L.useContext(z6).globalConfig;function R1(e){const{classPrefix:r}=L6();return p.jsx("svg",{style:e.style,className:Qt(`${r}-fake-arrow`,{[`${r}-fake-arrow--active`]:e?.isActive&&!e?.disabled},e?.className),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921",stroke:"black",strokeOpacity:"0.9",strokeWidth:"1.3"})})}function Ra(){return Ra=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Ra.apply(null,arguments)}function O1(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function vc(e,r){return vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},vc(e,r)}function T1(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,vc(e,r)}var va={exports:{}},pa={exports:{}},Me={};/** @license React v16.13.1
|
|
421
|
+
* react-is.production.min.js
|
|
422
|
+
*
|
|
423
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
424
|
+
*
|
|
425
|
+
* This source code is licensed under the MIT license found in the
|
|
426
|
+
* LICENSE file in the root directory of this source tree.
|
|
427
|
+
*/var zm;function F6(){if(zm)return Me;zm=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function $(E){if(typeof E=="object"&&E!==null){var M=E.$$typeof;switch(M){case r:switch(E=E.type,E){case l:case u:case n:case o:case a:case g:return E;default:switch(E=E&&E.$$typeof,E){case c:case f:case y:case h:case i:return E;default:return M}}case t:return M}}}function S(E){return $(E)===u}return Me.AsyncMode=l,Me.ConcurrentMode=u,Me.ContextConsumer=c,Me.ContextProvider=i,Me.Element=r,Me.ForwardRef=f,Me.Fragment=n,Me.Lazy=y,Me.Memo=h,Me.Portal=t,Me.Profiler=o,Me.StrictMode=a,Me.Suspense=g,Me.isAsyncMode=function(E){return S(E)||$(E)===l},Me.isConcurrentMode=S,Me.isContextConsumer=function(E){return $(E)===c},Me.isContextProvider=function(E){return $(E)===i},Me.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===r},Me.isForwardRef=function(E){return $(E)===f},Me.isFragment=function(E){return $(E)===n},Me.isLazy=function(E){return $(E)===y},Me.isMemo=function(E){return $(E)===h},Me.isPortal=function(E){return $(E)===t},Me.isProfiler=function(E){return $(E)===o},Me.isStrictMode=function(E){return $(E)===a},Me.isSuspense=function(E){return $(E)===g},Me.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===u||E===o||E===a||E===g||E===v||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===h||E.$$typeof===i||E.$$typeof===c||E.$$typeof===f||E.$$typeof===T||E.$$typeof===A||E.$$typeof===b||E.$$typeof===_)},Me.typeOf=$,Me}var ke={};/** @license React v16.13.1
|
|
428
|
+
* react-is.development.js
|
|
429
|
+
*
|
|
430
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
431
|
+
*
|
|
432
|
+
* This source code is licensed under the MIT license found in the
|
|
433
|
+
* LICENSE file in the root directory of this source tree.
|
|
434
|
+
*/var Lm;function B6(){return Lm||(Lm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function $(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===u||Z===o||Z===a||Z===g||Z===v||typeof Z=="object"&&Z!==null&&(Z.$$typeof===y||Z.$$typeof===h||Z.$$typeof===i||Z.$$typeof===c||Z.$$typeof===f||Z.$$typeof===T||Z.$$typeof===A||Z.$$typeof===b||Z.$$typeof===_)}function S(Z){if(typeof Z=="object"&&Z!==null){var Pe=Z.$$typeof;switch(Pe){case r:var Er=Z.type;switch(Er){case l:case u:case n:case o:case a:case g:return Er;default:var Rr=Er&&Er.$$typeof;switch(Rr){case c:case f:case y:case h:case i:return Rr;default:return Pe}}case t:return Pe}}}var E=l,M=u,j=c,x=i,R=r,P=f,I=n,V=y,W=h,z=t,B=o,G=a,U=g,X=!1;function ve(Z){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(Z)||S(Z)===l}function F(Z){return S(Z)===u}function H(Z){return S(Z)===c}function ae(Z){return S(Z)===i}function le(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===r}function oe(Z){return S(Z)===f}function J(Z){return S(Z)===n}function K(Z){return S(Z)===y}function ue(Z){return S(Z)===h}function ie(Z){return S(Z)===t}function ce(Z){return S(Z)===o}function Q(Z){return S(Z)===a}function se(Z){return S(Z)===g}ke.AsyncMode=E,ke.ConcurrentMode=M,ke.ContextConsumer=j,ke.ContextProvider=x,ke.Element=R,ke.ForwardRef=P,ke.Fragment=I,ke.Lazy=V,ke.Memo=W,ke.Portal=z,ke.Profiler=B,ke.StrictMode=G,ke.Suspense=U,ke.isAsyncMode=ve,ke.isConcurrentMode=F,ke.isContextConsumer=H,ke.isContextProvider=ae,ke.isElement=le,ke.isForwardRef=oe,ke.isFragment=J,ke.isLazy=K,ke.isMemo=ue,ke.isPortal=ie,ke.isProfiler=ce,ke.isStrictMode=Q,ke.isSuspense=se,ke.isValidElementType=$,ke.typeOf=S})()),ke}var Fm;function I1(){return Fm||(Fm=1,process.env.NODE_ENV==="production"?pa.exports=F6():pa.exports=B6()),pa.exports}/*
|
|
435
|
+
object-assign
|
|
436
|
+
(c) Sindre Sorhus
|
|
437
|
+
@license MIT
|
|
438
|
+
*/var Yu,Bm;function H6(){if(Bm)return Yu;Bm=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},c=0;c<10;c++)i["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yu=a()?Object.assign:function(o,i){for(var c,l=n(o),u,f=1;f<arguments.length;f++){c=Object(arguments[f]);for(var g in c)r.call(c,g)&&(l[g]=c[g]);if(e){u=e(c);for(var v=0;v<u.length;v++)t.call(c,u[v])&&(l[u[v]]=c[u[v]])}}return l},Yu}var Ju,Hm;function Fc(){if(Hm)return Ju;Hm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ju=e,Ju}var Zu,Vm;function C1(){return Vm||(Vm=1,Zu=Function.call.bind(Object.prototype.hasOwnProperty)),Zu}var Xu,Gm;function V6(){if(Gm)return Xu;Gm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Fc(),t={},n=C1();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,c,l,u){if(process.env.NODE_ENV!=="production"){for(var f in o)if(n(o,f)){var g;try{if(typeof o[f]!="function"){var v=Error((l||"React class")+": "+c+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}g=o[f](i,f,l,c,null,r)}catch(y){g=y}if(g&&!(g instanceof Error)&&e((l||"React class")+": type specification of "+c+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in t)){t[g.message]=!0;var h=u?u():"";e("Failed "+c+" type: "+g.message+(h??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Xu=a,Xu}var Qu,Wm;function G6(){if(Wm)return Qu;Wm=1;var e=I1(),r=H6(),t=Fc(),n=C1(),a=V6(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return Qu=function(c,l){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function g(F){var H=F&&(u&&F[u]||F[f]);if(typeof H=="function")return H}var v="<<anonymous>>",h={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:b(),arrayOf:$,element:S(),elementType:E(),instanceOf:M,node:P(),objectOf:x,oneOf:j,oneOfType:R,shape:V,exact:W};function y(F,H){return F===H?F!==0||1/F===1/H:F!==F&&H!==H}function _(F,H){this.message=F,this.data=H&&typeof H=="object"?H:{},this.stack=""}_.prototype=Error.prototype;function T(F){if(process.env.NODE_ENV!=="production")var H={},ae=0;function le(J,K,ue,ie,ce,Q,se){if(ie=ie||v,Q=Q||ue,se!==t){if(l){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Pe=ie+":"+ue;!H[Pe]&&ae<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+ie+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[Pe]=!0,ae++)}}return K[ue]==null?J?K[ue]===null?new _("The "+ce+" `"+Q+"` is marked as required "+("in `"+ie+"`, but its value is `null`.")):new _("The "+ce+" `"+Q+"` is marked as required in "+("`"+ie+"`, but its value is `undefined`.")):null:F(K,ue,ie,ce,Q)}var oe=le.bind(null,!1);return oe.isRequired=le.bind(null,!0),oe}function A(F){function H(ae,le,oe,J,K,ue){var ie=ae[le],ce=G(ie);if(ce!==F){var Q=U(ie);return new _("Invalid "+J+" `"+K+"` of type "+("`"+Q+"` supplied to `"+oe+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return T(H)}function b(){return T(i)}function $(F){function H(ae,le,oe,J,K){if(typeof F!="function")return new _("Property `"+K+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var ue=ae[le];if(!Array.isArray(ue)){var ie=G(ue);return new _("Invalid "+J+" `"+K+"` of type "+("`"+ie+"` supplied to `"+oe+"`, expected an array."))}for(var ce=0;ce<ue.length;ce++){var Q=F(ue,ce,oe,J,K+"["+ce+"]",t);if(Q instanceof Error)return Q}return null}return T(H)}function S(){function F(H,ae,le,oe,J){var K=H[ae];if(!c(K)){var ue=G(K);return new _("Invalid "+oe+" `"+J+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return T(F)}function E(){function F(H,ae,le,oe,J){var K=H[ae];if(!e.isValidElementType(K)){var ue=G(K);return new _("Invalid "+oe+" `"+J+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return T(F)}function M(F){function H(ae,le,oe,J,K){if(!(ae[le]instanceof F)){var ue=F.name||v,ie=ve(ae[le]);return new _("Invalid "+J+" `"+K+"` of type "+("`"+ie+"` supplied to `"+oe+"`, expected ")+("instance of `"+ue+"`."))}return null}return T(H)}function j(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function H(ae,le,oe,J,K){for(var ue=ae[le],ie=0;ie<F.length;ie++)if(y(ue,F[ie]))return null;var ce=JSON.stringify(F,function(se,Z){var Pe=U(Z);return Pe==="symbol"?String(Z):Z});return new _("Invalid "+J+" `"+K+"` of value `"+String(ue)+"` "+("supplied to `"+oe+"`, expected one of "+ce+"."))}return T(H)}function x(F){function H(ae,le,oe,J,K){if(typeof F!="function")return new _("Property `"+K+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var ue=ae[le],ie=G(ue);if(ie!=="object")return new _("Invalid "+J+" `"+K+"` of type "+("`"+ie+"` supplied to `"+oe+"`, expected an object."));for(var ce in ue)if(n(ue,ce)){var Q=F(ue,ce,oe,J,K+"."+ce,t);if(Q instanceof Error)return Q}return null}return T(H)}function R(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var H=0;H<F.length;H++){var ae=F[H];if(typeof ae!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+X(ae)+" at index "+H+"."),i}function le(oe,J,K,ue,ie){for(var ce=[],Q=0;Q<F.length;Q++){var se=F[Q],Z=se(oe,J,K,ue,ie,t);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&ce.push(Z.data.expectedType)}var Pe=ce.length>0?", expected one of type ["+ce.join(", ")+"]":"";return new _("Invalid "+ue+" `"+ie+"` supplied to "+("`"+K+"`"+Pe+"."))}return T(le)}function P(){function F(H,ae,le,oe,J){return z(H[ae])?null:new _("Invalid "+oe+" `"+J+"` supplied to "+("`"+le+"`, expected a ReactNode."))}return T(F)}function I(F,H,ae,le,oe){return new _((F||"React class")+": "+H+" type `"+ae+"."+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function V(F){function H(ae,le,oe,J,K){var ue=ae[le],ie=G(ue);if(ie!=="object")return new _("Invalid "+J+" `"+K+"` of type `"+ie+"` "+("supplied to `"+oe+"`, expected `object`."));for(var ce in F){var Q=F[ce];if(typeof Q!="function")return I(oe,J,K,ce,U(Q));var se=Q(ue,ce,oe,J,K+"."+ce,t);if(se)return se}return null}return T(H)}function W(F){function H(ae,le,oe,J,K){var ue=ae[le],ie=G(ue);if(ie!=="object")return new _("Invalid "+J+" `"+K+"` of type `"+ie+"` "+("supplied to `"+oe+"`, expected `object`."));var ce=r({},ae[le],F);for(var Q in ce){var se=F[Q];if(n(F,Q)&&typeof se!="function")return I(oe,J,K,Q,U(se));if(!se)return new _("Invalid "+J+" `"+K+"` key `"+Q+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(ae[le],null," ")+`
|
|
439
|
+
Valid keys: `+JSON.stringify(Object.keys(F),null," "));var Z=se(ue,Q,oe,J,K+"."+Q,t);if(Z)return Z}return null}return T(H)}function z(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(z);if(F===null||c(F))return!0;var H=g(F);if(H){var ae=H.call(F),le;if(H!==F.entries){for(;!(le=ae.next()).done;)if(!z(le.value))return!1}else for(;!(le=ae.next()).done;){var oe=le.value;if(oe&&!z(oe[1]))return!1}}else return!1;return!0;default:return!1}}function B(F,H){return F==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function G(F){var H=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":B(H,F)?"symbol":H}function U(F){if(typeof F>"u"||F===null)return""+F;var H=G(F);if(H==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return H}function X(F){var H=U(F);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function ve(F){return!F.constructor||!F.constructor.name?v:F.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},Qu}var ec,Um;function W6(){if(Um)return ec;Um=1;var e=Fc();function r(){}function t(){}return t.resetWarningCache=r,ec=function(){function n(i,c,l,u,f,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:r};return o.PropTypes=o,o},ec}var Km;function U6(){if(Km)return va.exports;if(Km=1,process.env.NODE_ENV!=="production"){var e=I1(),r=!0;va.exports=G6()(e.isElement,r)}else va.exports=W6()();return va.exports}var K6=U6();const ye=We(K6);function Y6(e,r){return e.classList?!!r&&e.classList.contains(r):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+r+" ")!==-1}function J6(e,r){e.classList?e.classList.add(r):Y6(e,r)||(typeof e.className=="string"?e.className=e.className+" "+r:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+r))}function Ym(e,r){return e.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Z6(e,r){e.classList?e.classList.remove(r):typeof e.className=="string"?e.className=Ym(e.className,r):e.setAttribute("class",Ym(e.className&&e.className.baseVal||"",r))}const Jm={disabled:!1};var X6=process.env.NODE_ENV!=="production"?ye.oneOfType([ye.number,ye.shape({enter:ye.number,exit:ye.number,appear:ye.number}).isRequired]):null,Q6=process.env.NODE_ENV!=="production"?ye.oneOfType([ye.string,ye.shape({enter:ye.string,exit:ye.string,active:ye.string}),ye.shape({enter:ye.string,enterDone:ye.string,enterActive:ye.string,exit:ye.string,exitDone:ye.string,exitActive:ye.string})]):null;const j1=L.createContext(null);var P1=function(r){return r.scrollTop},Tn="unmounted",bt="exited",xt="entering",Yt="entered",pc="exiting",Dr=(function(e){T1(r,e);function r(n,a){var o;o=e.call(this,n,a)||this;var i=a,c=i&&!i.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?c?(l=bt,o.appearStatus=xt):l=Yt:n.unmountOnExit||n.mountOnEnter?l=Tn:l=bt,o.state={status:l},o.nextCallback=null,o}r.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===Tn?{status:bt}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==xt&&i!==Yt&&(o=xt):(i===xt||i===Yt)&&(o=pc)}this.updateStatus(!1,o)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var a=this.props.timeout,o,i,c;return o=i=c=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,c=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:c}},t.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===xt){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:la.findDOMNode(this);i&&P1(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bt&&this.setState({status:Tn})},t.performEnter=function(a){var o=this,i=this.props.enter,c=this.context?this.context.isMounting:a,l=this.props.nodeRef?[c]:[la.findDOMNode(this),c],u=l[0],f=l[1],g=this.getTimeouts(),v=c?g.appear:g.enter;if(!a&&!i||Jm.disabled){this.safeSetState({status:Yt},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:xt},function(){o.props.onEntering(u,f),o.onTransitionEnd(v,function(){o.safeSetState({status:Yt},function(){o.props.onEntered(u,f)})})})},t.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),c=this.props.nodeRef?void 0:la.findDOMNode(this);if(!o||Jm.disabled){this.safeSetState({status:bt},function(){a.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:pc},function(){a.props.onExiting(c),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:bt},function(){a.props.onExited(c)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},t.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(c){i&&(i=!1,o.nextCallback=null,a(c))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},t.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:la.findDOMNode(this),c=a==null&&!this.props.addEndListener;if(!i||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}a!=null&&setTimeout(this.nextCallback,a)},t.render=function(){var a=this.state.status;if(a===Tn)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var c=O1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return L.createElement(j1.Provider,{value:null},typeof i=="function"?i(a,c):L.cloneElement(L.Children.only(i),c))},r})(L.Component);Dr.contextType=j1;Dr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ye.shape({current:typeof Element>"u"?ye.any:function(e,r,t,n,a,o){var i=e[r];return ye.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,r,t,n,a,o)}}),children:ye.oneOfType([ye.func.isRequired,ye.element.isRequired]).isRequired,in:ye.bool,mountOnEnter:ye.bool,unmountOnExit:ye.bool,appear:ye.bool,enter:ye.bool,exit:ye.bool,timeout:function(r){var t=X6;r.addEndListener||(t=t.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return t.apply(void 0,[r].concat(a))},addEndListener:ye.func,onEnter:ye.func,onEntering:ye.func,onEntered:ye.func,onExit:ye.func,onExiting:ye.func,onExited:ye.func}:{};function Ut(){}Dr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ut,onEntering:Ut,onEntered:Ut,onExit:Ut,onExiting:Ut,onExited:Ut};Dr.UNMOUNTED=Tn;Dr.EXITED=bt;Dr.ENTERING=xt;Dr.ENTERED=Yt;Dr.EXITING=pc;var eE=function(r,t){return r&&t&&t.split(" ").forEach(function(n){return J6(r,n)})},rc=function(r,t){return r&&t&&t.split(" ").forEach(function(n){return Z6(r,n)})},Bc=(function(e){T1(r,e);function r(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=e.call.apply(e,[this].concat(o))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(c,l){var u=n.resolveArguments(c,l),f=u[0],g=u[1];n.removeClasses(f,"exit"),n.addClass(f,g?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(c,l)},n.onEntering=function(c,l){var u=n.resolveArguments(c,l),f=u[0],g=u[1],v=g?"appear":"enter";n.addClass(f,v,"active"),n.props.onEntering&&n.props.onEntering(c,l)},n.onEntered=function(c,l){var u=n.resolveArguments(c,l),f=u[0],g=u[1],v=g?"appear":"enter";n.removeClasses(f,v),n.addClass(f,v,"done"),n.props.onEntered&&n.props.onEntered(c,l)},n.onExit=function(c){var l=n.resolveArguments(c),u=l[0];n.removeClasses(u,"appear"),n.removeClasses(u,"enter"),n.addClass(u,"exit","base"),n.props.onExit&&n.props.onExit(c)},n.onExiting=function(c){var l=n.resolveArguments(c),u=l[0];n.addClass(u,"exit","active"),n.props.onExiting&&n.props.onExiting(c)},n.onExited=function(c){var l=n.resolveArguments(c),u=l[0];n.removeClasses(u,"exit"),n.addClass(u,"exit","done"),n.props.onExited&&n.props.onExited(c)},n.resolveArguments=function(c,l){return n.props.nodeRef?[n.props.nodeRef.current,c]:[c,l]},n.getClassNames=function(c){var l=n.props.classNames,u=typeof l=="string",f=u&&l?l+"-":"",g=u?""+f+c:l[c],v=u?g+"-active":l[c+"Active"],h=u?g+"-done":l[c+"Done"];return{baseClassName:g,activeClassName:v,doneClassName:h}},n}var t=r.prototype;return t.addClass=function(a,o,i){var c=this.getClassNames(o)[i+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;o==="appear"&&i==="done"&&u&&(c+=" "+u),i==="active"&&a&&P1(a),c&&(this.appliedClasses[o][i]=c,eE(a,c))},t.removeClasses=function(a,o){var i=this.appliedClasses[o],c=i.base,l=i.active,u=i.done;this.appliedClasses[o]={},c&&rc(a,c),l&&rc(a,l),u&&rc(a,u)},t.render=function(){var a=this.props;a.classNames;var o=O1(a,["classNames"]);return L.createElement(Dr,Ra({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r})(L.Component);Bc.defaultProps={classNames:""};Bc.propTypes=process.env.NODE_ENV!=="production"?Ra({},Dr.propTypes,{classNames:Q6,onEnter:ye.func,onEntering:ye.func,onEntered:ye.func,onExit:ye.func,onExiting:ye.func,onExited:ye.func}):{};console.log(R1);const ha=({type:e,title:r,colorPalette:t,disabled:n,onChangeMainColor:a,children:o})=>{const[i,c]=L.useState(!1),[l,u]=L.useState(!1),f=h=>{const y=document.createElement("input");y.value=h,document.body.appendChild(y),y.select(),document.execCommand("Copy"),y.remove()},g=L.useMemo(()=>_1(t).find(h=>h.type==="main"||h.type==="gray")?.value||"",[t]),v=L.useRef(null);return p.jsxs("div",{className:"color-collapse",children:[p.jsxs("div",{className:"color-collapse__header",children:[p.jsx(Ee.Popup,{placement:"left",showArrow:!0,trigger:"click",destroyOnClose:!0,hideEmptyPopup:!0,overlayStyle:{borderRadius:"9px"},content:p.jsx(Ee.ColorPickerPanel,{format:"HEX",defaultValue:g,onChange:h=>{a(h,e)}}),children:p.jsx("div",{className:"block",style:{width:48,height:48,background:g,borderRadius:6,cursor:n?"not-allowed":"pointer",display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid var(--theme-component-border)",color:"var(--text-anti)"},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:!n&&l&&p.jsx(dr.IconEdit,{size:"large"})})}),p.jsxs("div",{className:"color-collapse__text",onClick:()=>c(h=>!h),children:[p.jsx("div",{className:"color-collapse__title",children:r}),p.jsxs("div",{className:"color-collapse__subtitle",children:["HEX: ",g,p.jsx(Ee.Popup,{placement:"top",showArrow:!0,trigger:"click",destroyOnClose:!0,overlayStyle:{borderRadius:"6px"},content:p.jsx("span",{style:{color:"var(--text-secondary)"},children:"Copied!"}),children:p.jsx(dr.IconCopy,{onClick:()=>f(g)})})]})]}),p.jsx("div",{onClick:()=>c(h=>!h),children:p.jsx(R1,{isActive:i,className:"color-collapse__arrow"})})]}),p.jsx(Bc,{in:i,timeout:300,classNames:"collapse",unmountOnExit:!0,mountOnEnter:!0,nodeRef:v,onEnter:()=>{const h=v.current;h.style.height="0px",h.style.overflow="hidden"},onEntering:()=>{const h=v.current;h.style.height=h.scrollHeight+"px",h.style.overflow="hidden"},onEntered:()=>{const h=v.current;h.style.height="auto",h.style.overflow=""},onExit:()=>{const h=v.current;h.style.height=h.scrollHeight+"px",h.style.overflow="hidden"},onExiting:()=>{const h=v.current;h.style.height="0px",h.style.overflow="hidden"},children:p.jsx("div",{ref:v,style:{transition:"height 300ms ease",overflow:"hidden"},children:o})})]})},rE=[{name:"中性黑",subtitle:"",value:"#262626"},{name:"商用蓝",subtitle:"",value:"#0052D9"},{name:"IPCOM红",subtitle:"",value:"#d82228"},{name:"腾达橙",subtitle:"",value:"#ed7020"}],tE=[{name:"--td-brand-color-light",type:"light",idx:0},{name:"--td-brand-color-focus",type:"focus",idx:1},{name:"--td-brand-color-disabled",type:"disabled",idx:2}],nE=[{name:"--td-error-color-light",type:"light",idx:0},{name:"--td-error-color-focus",type:"focus",idx:1},{name:"--td-error-color-disabled",type:"disabled",idx:2},{name:"--td-error-color-hover",type:"hover",idx:4},{name:"--td-error-color",type:"main",idx:5},{name:"--td-error-color-active",type:"active",idx:6}],aE=[{name:"--td-warning-color-light",type:"light",idx:0},{name:"--td-warning-color-focus",type:"focus",idx:1},{name:"--td-warning-color-disabled",type:"disabled",idx:2},{name:"--td-warning-color-hover",type:"hover",idx:3},{name:"--td-warning-color",type:"main",idx:4},{name:"--td-warning-color-active",type:"active",idx:5}],oE=[{name:"--td-success-color-light",type:"light",idx:0},{name:"--td-success-color-focus",type:"focus",idx:1},{name:"--td-success-color-disabled",type:"disabled",idx:2},{name:"--td-success-color-hover",type:"hover",idx:3},{name:"--td-success-color",type:"main",idx:4},{name:"--td-success-color-active",type:"active",idx:5}],iE=[{name:"--td-bg-color-container-hover",type:"",idx:0},{name:"--td-bg-color-secondarycontainer",type:"",idx:0},{name:"--td-bg-color-secondarycontainer-hover",type:"",idx:1},{name:"--td-bg-color-component-disabled",type:"",idx:1},{name:"--td-bg-color-page",type:"",idx:1},{name:"--td-bg-color-container-active",type:"",idx:2},{name:"--td-bg-color-component",type:"",idx:2},{name:"--td-component-stroke",type:"",idx:2},{name:"--td-bg-color-secondarycontainer-active",type:"main",idx:3},{name:"--td-bg-color-component-hover",type:"",idx:3},{name:"--td-component-border",type:"",idx:3},{name:"--td-bg-color-component-active",type:"",idx:5}],sE=[{name:"--td-text-color-primary",from:"--td-font-gray-1"},{name:"--td-text-color-secondary",from:"--td-font-gray-2"},{name:"--td-text-color-placeholder",from:"--td-font-gray-3"},{name:"--td-text-color-disabled",from:"--td-font-gray-4"},{name:"--td-text-color-anti",value:"#fff"},{name:"--td-text-color-brand",from:"--td-brand-color"},{name:"--td-text-color-link",from:"--td-brand-color"}];function lE({isRefresh:e,device:r="web"}){const[t,n]=L.useState(kr("color")??cn.value),[a,o]=L.useState(6),[i,c]=L.useState([]),[l,u]=L.useState([]),[f,g]=L.useState([]),[v,h]=L.useState([]),[y,_]=L.useState([]),[T,A]=L.useState([]),[b,$]=L.useState([]),[S,E]=L.useState([]),[M,j]=L.useState([]),[x,R]=L.useState([]),P=rE,[I]=L.useState("remain"),V=L.useCallback((J="brand")=>{let K=[],ue=[];if(J==="brand"){K=tE;const Q=a,se=Q>0?Q-1:Q,Z=Q>8?Q:Q+1;ue=[{name:"--td-brand-color-hover",type:"hover",idx:se},{name:"--td-brand-color",type:"main",idx:Q},{name:"--td-brand-color-active",type:"active",idx:Z}],K=K.concat(ue)}J==="error"&&(K=nE),J==="success"&&(K=oE),J==="warning"&&(K=aE),J==="gray"&&(K=iE);const ie=getComputedStyle(document.documentElement);return[...new Array(J==="gray"?14:10).keys()].map((Q,se)=>{const Z=K.filter(Pe=>Pe.idx===se);return Z.length?Z.length===1?{...Z[0],value:ie.getPropertyValue(`--td-${J}-color-${se+1}`)}:Z.map(Pe=>({...Pe,value:ie.getPropertyValue(`--td-${J}-color-${Pe.idx+1}`)})):{value:ie.getPropertyValue(`--td-${J}-color-${se+1}`)}})},[a]),W=J=>{n(J),B(J)},z=L.useCallback(()=>{const J=V();u([...J]),c([...J]);const K=V("success");h(JSON.parse(JSON.stringify(K))),g([...K]);const ue=V("error");A(JSON.parse(JSON.stringify(ue))),_([...ue]);const ie=V("warning");E(JSON.parse(JSON.stringify(ie))),$([...ie]);const ce=V("gray");R(JSON.parse(JSON.stringify(ce))),j([...ce])},[V]);L.useEffect(()=>{Promise.resolve().then(()=>{const J=window.getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").toLowerCase().trim();n(J)})},[]);const B=J=>{n(J);const K=Zn(J,I==="remain",r);console.log(K.colorPalette),o(K.brandColorIdx),c(K.colorPalette),u([...K.colorPalette])},G=J=>{let K;const ue=V(J);if(J==="brand"&&(K=l),J==="error"&&(K=T),J==="success"&&(K=v),J==="warning"&&(K=S),J==="gray"&&(K=x),!K)return;K.filter((ce,Q)=>JSON.stringify(ce)!==JSON.stringify(ue[Q])).forEach(ce=>{if(Array.isArray(ce)){const Q=ce[0];Q?.value!==void 0&&Q?.idx!==void 0&&X(Q.value,Q.idx,J,!1);return}else{const Q=ce;Q?.value!==void 0&&Q?.idx!==void 0&&X(Q.value,Q.idx,J,!1)}})},U=(J,K)=>{const{colorPalette:ue}=wa(J,!1,K!=="gray"?10:14,!0);let ie=[],ce=[];K==="success"&&(ie=JSON.parse(JSON.stringify(f)),ce=JSON.parse(JSON.stringify(v))),K==="error"&&(ie=JSON.parse(JSON.stringify(y)),ce=JSON.parse(JSON.stringify(T))),K==="warning"&&(ie=JSON.parse(JSON.stringify(b)),ce=JSON.parse(JSON.stringify(S))),K==="gray"&&(ie=JSON.parse(JSON.stringify(M)),ce=JSON.parse(JSON.stringify(x))),ue.forEach((Q,se)=>{ie[se]&&!(ie[se]instanceof Array)?(ie[se].value=Q,ce[se].value=Q,X(Q,se,K)):ie[se]&&ie[se]instanceof Array&&(ie[se].forEach(Z=>{Z.value=Q}),ce[se].forEach(Z=>{Z.value=Q}),X(Q,se,K))}),K==="success"&&(g(ie),h(ce)),K==="error"&&(_(ie),A(ce)),K==="warning"&&($(ie),E(ce)),K==="gray"&&(j(ie),R(ce))};L.useEffect(()=>{Promise.resolve().then(()=>{z()})},[z,t,e]);const X=(J,K,ue,ie=!0)=>{if(!i[K])return;ue==="brand"&&(Array.isArray(i[K])?c(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:J}:se)):c(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:J}:se))),ue==="success"&&g(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:J}:se)),ue==="error"&&_(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:J}:se)),ue==="warning"&&$(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:J}:se)),ue==="gray"&&j(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:J}:se));const ce=`--td-${ue}-color-${K+1}`;mr(ce,J,ie)},ve=L.useMemo(()=>!da(f,v),[f,v]),F=L.useMemo(()=>!da(y,T),[y,T]),H=L.useMemo(()=>!da(b,S),[b,S]),ae=L.useMemo(()=>!da(M,x),[M,x]),le=L.useMemo(()=>`(${Pn.colorTransform(t,"hex","hsv").join(",")})`,[t]),oe=L.useMemo(()=>`(${Pn.colorTransform(t,"hex","rgb").join(",")})`,[t]);return p.jsx("div",{style:{width:268,background:"var(--bg-color-card)",borderRadius:"12px"},children:p.jsxs("div",{className:"color-content__content",style:{overflowY:"auto",height:window.innerHeight-(88-window.scrollY)+"px"},children:[p.jsxs("div",{className:"color-content__main",children:[p.jsx("p",{className:"color-panel__title",children:"主题色"}),p.jsx("div",{className:"color-content__flex",children:P.slice(0,4).map((J,K)=>p.jsx("div",{className:Qt(["color-content__block",{"is-active":t.toLocaleLowerCase()===J.value.toLocaleLowerCase()}]),style:{paddingBottom:"4px",color:"'var(--text-secondary)'"},children:p.jsx("div",{className:Qt({"is-active":t.toLocaleLowerCase()===J.value.toLocaleLowerCase()}),onClick:()=>B(J.value),children:p.jsx("div",{style:{width:"48px",height:"48px",border:"1px solid var(--theme-component-border)",borderRadius:"6px",backgroundColor:J.value}})})},K))}),p.jsx(Ee.Popup,{placement:"bottom-left",showArrow:!0,trigger:"click",destroyOnClose:!0,overlayStyle:{borderRadius:"9px"},content:p.jsx(Ee.ColorPickerPanel,{defaultValue:t,format:"HEX",onChange:W}),children:p.jsx("div",{className:"color-content__custom",children:p.jsxs("div",{className:"color-content__custom-inner",children:[p.jsxs("div",{className:"color-content__custom-top",style:{width:"100%",borderRadius:"6px",backgroundColor:t},children:[" ",p.jsxs("p",{children:["hsv: ",le]}),p.jsxs("p",{children:["rgba: ",oe]})]}),p.jsxs("div",{className:"color-content__custom-bottom",children:[p.jsxs("div",{children:[p.jsx("p",{children:"自定义主题颜色"}),p.jsxs("p",{style:{color:"var(--text-secondary)"},children:["HEX: ",t]})]}),p.jsx(dr.IconEdit,{size:"small",style:{marginRight:"8px",color:"var(--text-primary)"}})]})]})})}),p.jsx(En,{type:"brand",gradientStep:10,colorPalette:i,originColorPalette:l,onChangeGradation:X,onRecoverGradation:G})]}),p.jsx(ha,{title:"成功色",type:"success",colorPalette:f,disabled:!1,onChangeMainColor:U,children:p.jsx(En,{type:"success",gradientStep:10,colorPalette:f,originColorPalette:v,paletteChange:ve,onChangeGradation:X,onRecoverGradation:G})}),p.jsx(ha,{title:"错误色",type:"error",colorPalette:y,disabled:!1,onChangeMainColor:U,children:p.jsx(En,{type:"error",gradientStep:10,colorPalette:y,originColorPalette:T,paletteChange:F,onChangeGradation:X,onRecoverGradation:G})}),p.jsx(ha,{title:"警告色",type:"warning",colorPalette:b,disabled:!1,onChangeMainColor:U,children:p.jsx(En,{type:"warning",gradientStep:10,colorPalette:b,originColorPalette:S,paletteChange:H,onChangeGradation:X,onRecoverGradation:G})}),p.jsx(ha,{title:"中性色",type:"gray",colorPalette:M,disabled:!1,onChangeMainColor:U,children:p.jsx(En,{type:"gray",gradientStep:14,colorPalette:M,originColorPalette:x,paletteChange:ae,onChangeGradation:X,onRecoverGradation:G})})]})})}const Ba=({selectOptions:e,suspendedLabels:r={},value:t,disabled:n=!1,onChange:a,onEnable:o,children:i})=>{const c=L.useMemo(()=>window.location.pathname.endsWith("en"),[]),[l,u]=L.useState(t),[f,g]=L.useState(e);L.useEffect(()=>{u(t)},[t]),L.useEffect(()=>{if(console.log("disabled",n),n){const A=e.find(b=>b.disabled);A&&u(Number(A.value))}},[n,e]);const v=A=>{A&&n&&g(e)},h=A=>{n||(u(A),a?.(A))},y=()=>{if(l!=null)return r[l]},_=A=>{(typeof A=="string"||typeof A=="number")&&(u(A),a?.(A),o?.())},T=c?{label:"enLabel"}:void 0;return p.jsxs("div",{style:{display:"flex"},children:[p.jsxs("div",{className:`segment-panel__round ${n?"disabled":""}`,children:[p.jsx("div",{className:"segment-panel__round-tag",children:i?.left}),p.jsxs("div",{className:"segment-panel__round-slider",children:[e.slice(0,5).map((A,b)=>p.jsx("div",{className:"slider-split",style:{opacity:b===0||b===e.length-1?0:1}},b)),p.jsx(Ee.Slider,{min:1,disabled:n,max:5,value:l,onChange:h,label:y,tooltipProps:{attach:yr}})]}),p.jsx("div",{className:"segment-panel__round-tag",children:i?.right})]}),p.jsx("div",{className:"segment-panel__select",children:p.jsx(Ee.Select,{options:f,onChange:_,onPopupVisibleChange:v,keys:T,value:l,popupProps:{attach:yr}})})]})},en=({sizeValue:e,title:r,step:t,min:n,max:a,disabled:o=!1,needInteger:i=!0,onChangeFontSize:c})=>{const[l,u]=L.useState(null);L.useEffect(()=>{const v=i?parseInt(String(e||0),10):e??null;u(v)},[e,i]);const f=v=>`${v}px`,g=v=>{const h=typeof v=="string"?Number(v):v;v===l||n!==void 0&&h<n||a!==void 0&&h>a||o||i&&!Number.isInteger(Number(v))||(u(v),c?.(Number(v)))};return p.jsxs("div",{className:"panel__size-slider",children:[p.jsx("div",{children:r}),p.jsxs("div",{className:"panel__size-slider-op",children:[p.jsx(Ee.InputNumber,{disabled:o,value:l??void 0,format:f,theme:"column",onChange:g,style:{marginBottom:"8px"}}),p.jsx(Ee.Slider,{disabled:o,value:typeof l=="number"?l:parseFloat(String(l||0)),min:n,max:a,step:t,onChange:v=>{g(typeof v=="number"?v:v[0])},tooltipProps:{attach:yr}})]})]})},Zm=[{label:"全直角",enLabel:"mini",value:1},{label:"小圆角",enLabel:"small",value:2},{label:"默认",enLabel:"default",value:3},{label:"大圆角",enLabel:"large",value:4},{label:"超大",enLabel:"max",value:5},{label:"自定义",enLabel:"customized",value:6,disabled:!0}],Xm=[[0,0,0,0,0,"50%"],[1,2,4,6,8,"50%"],[2,3,6,9,12,"50%"],[3,4,8,12,16,"50%"],[4,6,12,18,24,"50%"]],uE=[{token:"--td-radius-small",value:null,enDesc:"internal scenes of basic components.",desc:"适用于基础组件内部场景"},{token:"--td-radius-default",value:null,enDesc:"basic components",desc:"适用于所有基础组件"},{token:"--td-radius-medium",value:null,enDesc:"popup and card-type components",desc:"适用于弹出类型和卡片类型组件"},{token:"--td-radius-large",value:null,enDesc:"dialog-type components",desc:"适用于对话框类型组件"},{token:"--td-radius-extraLarge",value:null,enDesc:"extra-large display-type components",desc:"适用于超大型展示型组件"},{token:"--td-radius-circle",value:null,enDesc:"Circular Components",desc:"适用于圆形组件"}],cE=({top:e=0,isRefresh:r})=>{const t=L.useMemo(()=>typeof window<"u"?window.location.pathname.endsWith("en"):!1,[]);console.log("init");const[n,a]=L.useState(()=>typeof window<"u"?window.innerHeight:0),[o,i]=L.useState(3),[c,l]=L.useState(null),[u,f]=L.useState(!1),[g,v]=L.useState(uE),h=L.useMemo(()=>Zm.reduce((x,R)=>(x[R.value]=R.label,x),{}),[]),y=L.useMemo(()=>({overflowY:"scroll",height:`${Math.max(0,n-e-96)}px`}),[n,e]),_=L.useCallback(x=>{if(!x.length)return!1;const R=x.map(I=>I.value);return!!Xm.find(I=>I.every((V,W)=>{const z=R[W];if(z===null||typeof z>"u")return!1;const B=typeof V=="number"?`${V}px`:V,G=typeof z=="number"?`${z}px`:String(z).trim();return B===G}))},[]),T=L.useCallback(x=>{const R=Xm[x-1];if(!R)return;Pr("radius",String(x));const P=x===6;v(I=>{const V=I.map((z,B)=>{const G=R[B];if(typeof G>"u")return z;const U=typeof G=="number"?`${G}px`:G;return mr(z.token,U,P),{...z,value:G}}),W=_(V);return f(!W),V})},[_]),A=L.useCallback(()=>{const x=kr("radius"),R=x!=null?Number(x):null,P=R!==null&&!Number.isNaN(R)&&R>=0?R:3;i(P),P>=1&&P<=5&&T(P)},[T]),b=L.useCallback(()=>{const x=document.getElementById(`${Gr}-radius`)||document.getElementById(Jn);if(x&&x.textContent){const P=x.textContent;v(I=>{const V=I.map(z=>{const B=new RegExp(`${z.token}\\s*:\\s*([^;]+);`),G=P.match(B);if(G){const U=G[1].trim(),X=U.endsWith("px")?parseInt(U,10):U==="50%"?"50%":U;return{...z,value:X}}return z}).filter(z=>z.value!==null),W=_(V);return f(!W),V});return}const R=getComputedStyle(document.documentElement);v(P=>{const I=P.map(W=>{const z=R.getPropertyValue(W.token).trim();if(z){const B=z.endsWith("px")?parseInt(z,10):z==="50%"?"50%":z;return{...W,value:B}}return W}).filter(W=>W.value!==null&&W.value!==""),V=_(I);return f(!V),I})},[_]);L.useEffect(()=>{const x=()=>a(window.innerHeight);return window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]),L.useEffect(()=>{setTimeout(()=>{const x=kr("radius"),R=x!=null?Number(x):null,P=R!==null&&!Number.isNaN(R)&&R>=0?R:3;A(),P===6&&b()},100)},[A,b,r]);const $=x=>{if(x==="50%")return"50%";if(typeof x=="number")return`${x}px`;if(typeof x=="string")return x},S=(x,R,P)=>{x?l(P):R?.trigger==="document"&&c===P&&l(null)},E=(x,R)=>{const P=g[R];if(!P)return;const I=`${x}px`;mr(P.token,I),v(V=>{if(!V[R])return V;const W=[...V];W[R]={...W[R],value:x};const z=_(W);return f(!z),z||Pr("radius","6"),W})},M=x=>{const R=Number(x);Number.isNaN(R)||(i(R),T(R))},j=t?"Border Radius":"圆角大小";return p.jsx("div",{className:"radius-content",style:{width:"268px",background:"var(--bg-color-card)",border:"1px solid var(--theme-component-border)",borderRadius:"12px"},children:p.jsx("div",{className:"radius-content__content",style:y,children:p.jsxs("div",{className:"radius-content__main",children:[p.jsx("p",{className:"radius-content__title",children:j}),p.jsx(Ba,{selectOptions:Zm,suspendedLabels:h,value:o,disabled:u,onEnable:()=>f(!1),onChange:M,children:{left:p.jsx("div",{className:Qt("radius-content__round-tag-left",{disabled:u})}),right:p.jsx("div",{className:Qt("radius-content__round-tag-right",{disabled:u})})}}),p.jsx("div",{className:"radius-content__list",children:g.map((x,R)=>p.jsx(Ee.Popup,{placement:"left",showArrow:!0,trigger:"click",destroyOnClose:!0,hideEmptyPopup:!0,overlayStyle:{borderRadius:"9px"},content:p.jsx(en,{title:"border-radius",sizeValue:x.value??void 0,disabled:x.token==="--td-radius-circle",onChangeFontSize:P=>E(P,R)}),attach:yr,onVisibleChange:(P,I)=>S(P,I,R),children:p.jsx("div",{className:"radius-content__list-item-wrapper",style:{border:c===R?"1px solid var(--brand-main)":"1px solid transparent",transition:"border-color .2s"},children:p.jsxs("div",{className:"radius-content__list-item",children:[p.jsx("div",{className:"radius-content__list-item-round-tag",style:{borderRadius:$(x.value)}}),p.jsxs("div",{className:"radius-content__list-item-text",children:[p.jsx("div",{className:"radius-content__list-item-title",children:`${x.token.replace("--td-","")}:${$(x.value)??"--"}`}),p.jsx("div",{className:"radius-content__list-item-title bottom",children:t?x.enDesc:x.desc})]})]})})},x.token))})]})})})},St=({title:e,subTitle:r,round:t,children:n,defaultActive:a=!1})=>{const[o,i]=L.useState(a);return p.jsxs("div",{className:"common-collapse",children:[p.jsxs("div",{className:"common-collapse__header",children:[t&&p.jsx("div",{className:"common-collapse__round",children:t}),p.jsxs("div",{className:"common-collapse__text",children:[p.jsx("div",{className:"common-collapse__title",onClick:()=>i(!o),children:e}),r&&p.jsx("div",{className:"common-collapse__subtitle",children:r})]}),p.jsx("div",{onClick:()=>i(!o),className:"common-collapse__arrow-wrapper",children:p.jsx(dr.IconChevronDown,{className:"common-collapse__arrow",style:{transform:o?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})})]}),o&&p.jsx("div",{className:"common-collapse__content",children:n})]})},ga={1:[{name:"--td-font-size-link-small",value:"12px"},{name:"--td-font-size-link-medium",value:"13px"},{name:"--td-font-size-link-large",value:"14px"},{name:"--td-font-size-mark-small",value:"12px"},{name:"--td-font-size-mark-medium",value:"13px"},{name:"--td-font-size-body-small",value:"12px"},{name:"--td-font-size-body-medium",value:"13px"},{name:"--td-font-size-body-large",value:"14px"},{name:"--td-font-size-title-small",value:"13px"},{name:"--td-font-size-title-medium",value:"14px"},{name:"--td-font-size-title-large",value:"16px"},{name:"--td-font-size-headline-small",value:"21px"},{name:"--td-font-size-headline-medium",value:"24px"},{name:"--td-font-size-headline-large",value:"28px"},{name:"--td-font-size-display-medium",value:"36px"},{name:"--td-font-size-display-large",value:"48px"}],2:[{name:"--td-font-size-link-small",value:"12px"},{name:"--td-font-size-link-medium",value:"13px"},{name:"--td-font-size-link-large",value:"15px"},{name:"--td-font-size-mark-small",value:"12px"},{name:"--td-font-size-mark-medium",value:"13px"},{name:"--td-font-size-body-small",value:"12px"},{name:"--td-font-size-body-medium",value:"13px"},{name:"--td-font-size-body-large",value:"15px"},{name:"--td-font-size-title-small",value:"13px"},{name:"--td-font-size-title-medium",value:"15px"},{name:"--td-font-size-title-large",value:"17px"},{name:"--td-font-size-headline-small",value:"22px"},{name:"--td-font-size-headline-medium",value:"25px"},{name:"--td-font-size-headline-large",value:"31px"},{name:"--td-font-size-display-medium",value:"40px"},{name:"--td-font-size-display-large",value:"52px"}],3:[{name:"--td-font-size-link-small",value:"12px"},{name:"--td-font-size-link-medium",value:"14px"},{name:"--td-font-size-link-large",value:"16px"},{name:"--td-font-size-mark-small",value:"12px"},{name:"--td-font-size-mark-medium",value:"14px"},{name:"--td-font-size-body-small",value:"12px"},{name:"--td-font-size-body-medium",value:"14px"},{name:"--td-font-size-body-large",value:"16px"},{name:"--td-font-size-title-small",value:"14px"},{name:"--td-font-size-title-medium",value:"16px"},{name:"--td-font-size-title-large",value:"20px"},{name:"--td-font-size-headline-small",value:"24px"},{name:"--td-font-size-headline-medium",value:"28px"},{name:"--td-font-size-headline-large",value:"36px"},{name:"--td-font-size-display-medium",value:"48px"},{name:"--td-font-size-display-large",value:"64px"}],4:[{name:"--td-font-size-link-small",value:"13px"},{name:"--td-font-size-link-medium",value:"15px"},{name:"--td-font-size-link-large",value:"17px"},{name:"--td-font-size-mark-small",value:"13px"},{name:"--td-font-size-mark-medium",value:"15px"},{name:"--td-font-size-body-small",value:"13px"},{name:"--td-font-size-body-medium",value:"15px"},{name:"--td-font-size-body-large",value:"17px"},{name:"--td-font-size-title-small",value:"15px"},{name:"--td-font-size-title-medium",value:"17px"},{name:"--td-font-size-title-large",value:"21px"},{name:"--td-font-size-headline-small",value:"25px"},{name:"--td-font-size-headline-medium",value:"29px"},{name:"--td-font-size-headline-large",value:"37px"},{name:"--td-font-size-display-medium",value:"49px"},{name:"--td-font-size-display-large",value:"65px"}],5:[{name:"--td-font-size-link-small",value:"14px"},{name:"--td-font-size-link-medium",value:"17px"},{name:"--td-font-size-link-large",value:"20px"},{name:"--td-font-size-mark-small",value:"14px"},{name:"--td-font-size-mark-medium",value:"17px"},{name:"--td-font-size-body-small",value:"14px"},{name:"--td-font-size-body-medium",value:"17px"},{name:"--td-font-size-body-large",value:"20px"},{name:"--td-font-size-title-small",value:"17px"},{name:"--td-font-size-title-medium",value:"20px"},{name:"--td-font-size-title-large",value:"23px"},{name:"--td-font-size-headline-small",value:"32px"},{name:"--td-font-size-headline-medium",value:"38px"},{name:"--td-font-size-headline-large",value:"47px"},{name:"--td-font-size-display-medium",value:"59px"},{name:"--td-font-size-display-large",value:"74px"}]},fE={1:"超小号",2:"小号",3:"默认",4:"大号",5:"特大号"},dE=[{label:"超小号",enLabel:"mini",value:1},{label:"小号",enLabel:"small",value:2},{label:"默认",enLabel:"default",value:3},{label:"大号",enLabel:"large",value:4},{label:"特大号",enLabel:"max",value:5},{label:"自定义",enLabel:"customized",value:6,disabled:!0}],Qm=[{label:"--td-font-size-link-small",value:null},{label:"--td-font-size-link-medium",value:null},{label:"--td-font-size-link-large",value:null},{label:"--td-font-size-mark-small",value:null,isBold:!0},{label:"--td-font-size-mark-medium",value:null,isBold:!0},{label:"--td-font-size-body-small",value:null},{label:"--td-font-size-body-medium",value:null},{label:"--td-font-size-body-large",value:null},{label:"--td-font-size-title-small",value:null,isBold:!0},{label:"--td-font-size-title-medium",value:null,isBold:!0},{label:"--td-font-size-title-large",value:null,isBold:!0},{label:"--td-font-size-headline-small",value:null,isBold:!0},{label:"--td-font-size-headline-medium",value:null,isBold:!0},{label:"--td-font-size-headline-large",value:null,isBold:!0},{label:"--td-font-size-display-medium",value:null,isBold:!0},{label:"--td-font-size-display-large",value:null,isBold:!0}],vE=()=>{const[e,r]=L.useState(3),[t,n]=L.useState(null),[a,o]=L.useState("list"),[i,c]=L.useState(!1),[l,u]=L.useState(Qm),[f,g]=L.useState([]),[v,h]=L.useState([]),[y,_]=L.useState([]),T=L.useRef(!0),A=L.useMemo(()=>fE,[]),b=L.useCallback(()=>{const j=kr("font");if(j!=null){const x=Number(j);!Number.isNaN(x)&&x>=1&&x<=6&&r(x)}},[]),$=L.useCallback(()=>{const j=window.getComputedStyle(document.documentElement),x=Qm.map(P=>({...P,value:j.getPropertyValue(P.label).trim()||null}));u(x),g(JSON.parse(JSON.stringify(x)));const R=[];x.forEach(P=>{if(!P.value)return;const I=R.findIndex(V=>V.value===P.value);I!==-1?R[I].tokens.push(P.label):R.push({value:P.value,tokens:[P.label]})}),h(R),_(JSON.parse(JSON.stringify(R)))},[]);L.useEffect(()=>{if(T.current||(Pr("font",String(e),e!==3),Pr("font","",e===3),e===6||!ga[e]))return;const j=e===6,x=ga[e];requestAnimationFrame(()=>{u(R=>{const P=R.map(V=>{const W=x.find(z=>z.name===V.label);return W?(mr(W.name,W.value,j),{...V,value:W.value}):V});g(JSON.parse(JSON.stringify(P)));const I=[];return P.forEach(V=>{if(!V.value)return;const W=I.findIndex(z=>z.value===V.value);W!==-1?I[W].tokens.push(V.label):I.push({value:V.value,tokens:[V.label]})}),h(I),_(JSON.parse(JSON.stringify(I))),P})})},[e]),L.useEffect(()=>{if(T.current||l.length===0||l[0].value===null)return;const x=Object.keys(ga).map(R=>ga[Number(R)]).find(R=>R.filter((P,I)=>P.value===(l[I]?.value?.trim()||"")).length===R.length);requestAnimationFrame(()=>{c(!x)})},[l]),L.useEffect(()=>{const x=requestAnimationFrame(()=>{$(),T.current=!1,b()});return()=>cancelAnimationFrame(x)},[b,$]);const S=L.useCallback((j,x,R)=>{j?n(R):x?.trigger==="document"&&t===R&&n(null)},[t]),E=L.useCallback((j,x,R,P)=>{const I=`${j}px`;if(document.getElementById(br)){if(Array.isArray(R)?R.forEach(W=>{mr(W,I)}):mr(R,I),x==="list"){const W=v[P].tokens;h(z=>{const B=[...z];return B[P]={...B[P],value:I},parseInt(y[P]?.value||"0",10)!==parseInt(I,10)&&(c(!0),r(6)),B}),u(z=>z.map(B=>W.includes(B.label)?{...B,value:I}:B))}if(x==="token"){const W=f[P]?.value;parseInt(W||"0",10)!==parseInt(I,10)&&(c(!0),r(6)),u(z=>{const B=[...z];return B[P]={...B[P],value:I},B}),I!==W&&h(z=>{const B=[...z],G=B.findIndex(U=>U.tokens.includes(R));if(G!==-1){const U=B[G].tokens.indexOf(R);U!==-1&&B[G].tokens.splice(U,1)}return B})}}},[v,f,y]),M=L.useCallback(j=>{const x=Number(j);Number.isNaN(x)||r(x)},[]);return p.jsxs("div",{children:[p.jsx(Ba,{selectOptions:dE,suspendedLabels:A,value:e,disabled:i,onEnable:()=>{c(!1)},onChange:M,children:{left:p.jsx("div",{className:"font-panel__round-tag-left",children:"Aa"}),right:p.jsx("div",{className:"font-panel__round-tag-right",children:"Aa"})}}),p.jsxs("div",{className:"font-panel__token-list",children:[p.jsxs("div",{className:"font-panel__radio-group",children:[p.jsx("button",{className:`font-panel__radio-button ${a==="list"?"active":""}`,onClick:()=>o("list"),children:"阶梯模式"}),p.jsx("button",{className:`font-panel__radio-button ${a==="token"?"active":""}`,onClick:()=>o("token"),children:"Token 模式"})]}),a==="list"?p.jsx("div",{className:"font-panel__list",children:v.map((j,x)=>p.jsx(Ee.Popup,{placement:"left",showArrow:!0,trigger:"click",destroyOnClose:!0,attach:yr,onVisibleChange:(R,P)=>S(R,P,x),overlayStyle:{borderRadius:"9px"},content:p.jsx(en,{title:"font-size",sizeValue:j.value??void 0,onChangeFontSize:R=>E(R,"list",j.tokens,x)}),children:p.jsxs("div",{className:"font-panel__list-item",style:{transition:"border-color .2s",border:t===x?"1px solid var(--brand-main-hover)":"1px solid transparent"},children:[p.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[p.jsx("span",{children:j.value}),p.jsx("span",{children:j.value})]}),p.jsx("div",{style:{fontSize:j.value||"14px",fontWeight:"normal",lineHeight:`calc(${j.value||"14px"} + 8px)`},children:"TDesign"})]})},x))}):p.jsx("div",{className:"font-panel__list token-type-list",children:l.map((j,x)=>p.jsx(Ee.Popup,{placement:"left",showArrow:!0,trigger:"click",destroyOnClose:!0,attach:yr,overlayStyle:{borderRadius:"9px"},onVisibleChange:(R,P)=>S(R,P,x),content:p.jsx(en,{title:"font-size",sizeValue:j.value??void 0,onChangeFontSize:R=>E(R,"token",j.label,x)}),children:p.jsxs("div",{className:"font-panel__list-item",style:{transition:"border-color .2s",border:t===x?"1px solid var(--brand-main-hover)":"1px solid transparent"},children:[p.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[p.jsx("span",{children:j.label.replace("--td-","")}),p.jsx("span",{children:j.value})]}),p.jsx("div",{style:{fontSize:`var(${j.label})`,fontWeight:j.isBold?"600":"normal",lineHeight:j.value?`calc(${j.value} + 8px)`:"22px"},children:"TDesign"})]})},j.label))})]})]})},Mr={1:2,2:4,3:8,4:12,5:16},ey=[{label:"超小",enLabel:"mini",value:1},{label:"小",enLabel:"small",value:2},{label:"默认",enLabel:"default",value:3},{label:"大",enLabel:"large",value:4},{label:"特大",enLabel:"max",value:5},{label:"自定义",enLabel:"customized",value:6,disabled:!0}];function it(e,r="plus"){const t=["link-small","link-medium","link-large","mark-small","mark-medium","body-small","body-medium","body-large","title-small","title-medium","title-large","headline-small","headline-medium","headline-large","display-medium","display-large"],n=parseFloat(String(e));if(isNaN(n)){console.warn("updateLineHeightTokens: invalid commonVal",e);return}t.forEach(a=>{const o=`--td-font-size-${a}`,i=`--td-line-height-${a}`,c=getComputedStyle(document.documentElement).getPropertyValue(o),l=parseFloat(c);if(!c||isNaN(l)){const u=document.querySelectorAll("style[id^='custom-theme'], style[id^='custom-dark'], style[id^='custom-extra']");let f=!1;if(u.forEach(g=>{const v=new RegExp(`${o}:\\s*(.*?);`),h=g.textContent?.match(v);if(h&&h[1]){const y=parseFloat(h[1]);if(!isNaN(y)){f=!0;const _=r==="plus"?y+n:y*n;mr(i,_+"px",!1)}}}),!f)return}else{let u;if(r==="plus")u=l+n;else if(r==="time")u=l*n;else return;mr(i,u+"px",!1)}})}const pE=()=>{const[e,r]=L.useState(!1),[t,n]=L.useState("plus"),[a,o]=L.useState(3),[i,c]=L.useState(Mr[3]),[l,u]=L.useState(!1),f=L.useMemo(()=>Object.fromEntries(ey.map((y,_)=>[_+1,y.label])),[]),g=L.useCallback(()=>{const y=kr("line-height");if(!y){it(Mr[3],"plus");return}const _=y.split("_");if(_[0].startsWith("time")){const b=parseFloat(_[1]);n("time"),c(b),it(b,"time");return}const T=_[1],A=Number(Object.keys(Mr).find(b=>Mr[Number(b)]===Number(T)));if(A>=0){o(A);const b=Mr[A];c(b),it(b,"plus")}else{const b=Number(T);c(b),it(b,"plus")}},[]);L.useEffect(()=>{const y=setTimeout(()=>{g()},100);return()=>clearTimeout(y)},[g]),L.useEffect(()=>{if(t!=="plus"||!Mr[a])return;const y=Mr[a];Pr("line-height",`plus_${y}`,a!==3),it(y,"plus")},[a,t]),L.useEffect(()=>{const y=setTimeout(()=>{const _=t==="time"?1.5:8,A=kr("line-height")?.split("_");let b;t===A?.[0]?b=Number(A[1]):b=_,c(b),Pr("line-height",`${t}_${b}`,a===3),it(b,t)},0);return()=>clearTimeout(y)},[t,a]);const v=L.useCallback(y=>{c(y);const _=t==="time";it(y,t),Pr("line-height",`${_?"time":"plus"}_${y}`),!_&&!Object.values(Mr).includes(y)&&u(!0)},[t]),h=L.useCallback(y=>{const _=Number(y);if(!Number.isNaN(_)&&(o(_),t==="plus"&&Mr[_])){const T=Mr[_];c(T),Pr("line-height",`plus_${T}`,_!==3),it(T,"plus")}},[t]);return p.jsxs("div",{children:[t==="plus"&&p.jsx("div",{style:{margin:"8px 0"},children:p.jsx(Ba,{selectOptions:ey,suspendedLabels:f,value:a,disabled:l,onEnable:()=>u(!1),onChange:h,children:{left:p.jsx("p",{children:p.jsx(dr.IconShrinkScreenStroked,{})}),right:p.jsx("p",{children:p.jsx(dr.IconFullScreenStroked,{})})}})}),p.jsxs("div",{className:"font-panel__token-list",children:[p.jsxs(Ee.RadioGroup,{theme:"button",variant:"default-filled",value:t,onChange:y=>n(y),children:[p.jsx(Ee.Radio.Button,{value:"plus",children:"固定模式"}),p.jsx(Ee.Radio.Button,{value:"time",children:"阶梯模式"})]}),t==="plus"?p.jsx(Ee.List,{children:p.jsx(Ee.List.ListItem,{style:{transition:"border-color .2s",border:e?"1px solid var(--brand-main-hover)":"1px solid transparent"},children:p.jsx(Ee.Popup,{placement:"left",showArrow:!0,trigger:"click",destroyOnClose:!0,attach:yr,overlayStyle:{borderRadius:"9px"},onVisibleChange:y=>{r(y)},content:p.jsx(en,{title:"line-height",min:1,max:99,step:1,sizeValue:i,onChangeFontSize:v}),children:p.jsxs("div",{children:[p.jsxs("div",{className:"code",children:["line-height = font size + ",i]}),p.jsx("div",{children:"固定模式:行高 = 字体大小 + 固定值"})]})})})}):p.jsx(Ee.List,{children:p.jsx(Ee.List.ListItem,{children:p.jsx(Ee.Popup,{placement:"left",showArrow:!0,trigger:"click",destroyOnClose:!0,attach:yr,overlayStyle:{borderRadius:"9px"},onVisibleChange:y=>r(y),content:p.jsx(en,{title:"line-height",sizeValue:i,min:1,max:5,step:.5,needInteger:!1,onChangeFontSize:v}),children:p.jsxs("div",{onClick:()=>console.log("onClick"),children:[p.jsxs("div",{className:"code",children:["line-height = font size * ",i]}),p.jsx("div",{children:"阶梯模式:行高 = 字体大小 * 倍数"})]})})})})]})]})},hE=({colorPalette:e,onChangeGradation:r})=>{const[t,n]=L.useState(null),a=L.useMemo(()=>e.flat(),[e]),o=(i,c)=>{const l=a[c];l?.name&&(mr(l.name,i),r?.(i,c))};return p.jsx("div",{style:{width:"100%"},children:p.jsx("div",{className:"font-color__vertical-list",children:a.filter(i=>!!i.name).map((i,c)=>p.jsxs("div",{children:[p.jsx(Ee.Popup,{placement:"left",showArrow:!0,trigger:"click",destroyOnClose:!0,attach:yr,overlayStyle:{borderRadius:"9px"},content:p.jsx(Ee.ColorPickerPanel,{defaultValue:i.value,format:"HEX",onChange:l=>o(l,c),enableAlpha:!0}),children:p.jsx("div",{className:"block",style:{border:"1px solid var(--theme-component-border)",backgroundColor:i.value,minWidth:"32px",height:"32px",borderRadius:"6px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",color:"var(--text-anti)"},onMouseOver:()=>n(c),onMouseLeave:()=>n(null),children:t===c&&p.jsx(dr.IconEdit,{style:{fontSize:"16px"}})})}),i.name&&p.jsxs("div",{className:"font-color__vertical-list-content",children:[p.jsx("div",{className:"font-color__vertical-list-title",title:i.name,children:i.name}),p.jsx("div",{className:"font-color__vertical-list-subtitle",children:p.jsx("span",{children:i.value})})]})]},c))})})},gE=({top:e=0,device:r="web"})=>{const[t,n]=L.useState([[]]),[a,o]=L.useState([[]]),i=L.useMemo(()=>typeof window<"u"?window.location.pathname.endsWith("en"):!1,[]),c=L.useMemo(()=>({overflowY:"scroll",height:`${(typeof window<"u"?window.innerHeight:0)-e-96}px`}),[e]),l=L.useCallback(()=>{const y=sE,_=getComputedStyle(document.documentElement);return[...new Array(7).keys()].map(T=>{const A=y[T];return{...A,value:A.value??_.getPropertyValue(A.from||"")}})},[]),u=L.useCallback(()=>{const y=l();n([y]),o(JSON.parse(JSON.stringify([y])))},[l]),f=L.useCallback((y,_)=>{const T=t[0][_]?.name;T&&(n(A=>{const b=JSON.parse(JSON.stringify(A));return b[0][_].value=y,b}),mr(T,y))},[t]);L.useEffect(()=>{setTimeout(()=>{u()},100)},[u]);const g=i?"Font Size":"字体大小",v=i?"Line Height":"行高",h=i?"Font Color":"字体颜色";return p.jsx("div",{className:"font-content",style:{width:"268px",background:"var(--bg-color-card)",borderRadius:"12px",border:"1px solid var(--theme-component-border)"},children:p.jsxs("div",{className:"font-content__content",style:c,children:[p.jsxs("div",{className:"font-content__main",children:[p.jsx("p",{className:"font-content__title",children:g}),p.jsx(vE,{})]}),r!=="mobile"&&r!=="mini-program"&&p.jsx(St,{round:p.jsx("div",{className:"block",style:{width:"48px",height:"48px",borderRadius:"6px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx("div",{style:{fontSize:"20px"},children:p.jsx(dr.IconLineHeight,{})})}),title:v,subTitle:"line-height",children:p.jsx(pE,{})}),p.jsx(St,{round:p.jsx("div",{className:"block",style:{width:"48px",height:"48px",borderRadius:"6px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx("div",{style:{fontSize:"20px"},children:p.jsx(dr.IconCommand,{})})}),title:h,children:p.jsx(hE,{colorPalette:t,originColorPalette:a,onChangeGradation:f})})]})})};var Hr=(e=>(e[e.Super_Light=0]="Super_Light",e[e.Light=1]="Light",e[e.Default=2]="Default",e[e.Deep=3]="Deep",e[e.Super_Deep=4]="Super_Deep",e[e.Self_Defined=5]="Self_Defined",e))(Hr||{});const tc={0:["0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 2px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.05)","0 2px 6px rgba(0, 0, 0, 0.02), 0 4px 6px rgba(0, 0, 0, 0.05), 0 3px 3px rgba(0, 0, 0, 0.06)","0 4px 10px 3px rgba(0, 0, 0, 0.05), 0 4px 6px 2px rgba(0, 0, 0, 0.04), 0 2px 3px -3px rgba(0, 0, 0, 0.08)"],1:["0 1px 6px rgba(0, 0, 0, 0.05), 0 3px 4px rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.08)","0 3px 10px 2px rgba(0, 0, 0, 0.04), 0 6px 8px rgba(0, 0, 0, 0.05), 0 4px 4px -2px rgba(0, 0, 0, 0.08)","0 4px 18px 5px rgba(0, 0, 0, 0.05), 0 10px 9px 2px rgba(0, 0, 0, 0.04), 0 3px 5px -3px rgba(0, 0, 0, 0.08)"],2:["0 1px 10px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.12)","0 3px 14px 2px rgba(0, 0, 0, 0.05), 0 8px 10px 1px rgba(0, 0, 0, 0.06), 0 5px 5px -3px rgba(0, 0, 0, 0.1)","0 6px 30px 5px rgba(0, 0, 0, 0.05), 0 16px 24px 2px rgba(0, 0, 0, 0.04), 0 8px 10px -5px rgba(0, 0, 0, 0.08)"],3:["0 3px 18px rgba(0, 0, 0, 0.06), 0 4px 7px rgba(0, 0, 0, 0.1), 0 2px 7px -1px rgba(0, 0, 0, 0.14)","0 5px 18px 2px rgba(0, 0, 0, 0.07), 0 10px 15px 1px rgba(0, 0, 0, 0.1), 0 6px 10px -4px rgba(0, 0, 0, 0.14)","0 8px 33px 5px rgba(0, 0, 0, 0.07), 0 18px 28px 2px rgba(0, 0, 0, 0.07), 0 10px 12px -6px rgba(0, 0, 0, 0.17)"],4:["0 5px 20px rgba(0, 0, 0, 0.08), 0 5px 8px rgba(0, 0, 0, 0.12), 0 5px 10px -1px rgba(0, 0, 0, 0.18)","0 7px 23px 2px rgba(0, 0, 0, 0.09), 0 12px 17px 1px rgba(0, 0, 0, 0.1), 0 8px 14px -4px rgba(0, 0, 0, 0.18)","0 11px 37px 5px rgba(0, 0, 0, 0.1), 0 21px 31px 2px rgba(0, 0, 0, 0.12), 0 14px 20px -6px rgba(0, 0, 0, 0.16)"],5:["","",""]},mE=[{label:"超轻",enLabel:"thinner",value:0},{label:"轻",enLabel:"thin",value:1},{label:"默认",enLabel:"default",value:2},{label:"深",enLabel:"deep",value:3},{label:"超深",enLabel:"deeper",value:4},{label:"自定义",enLabel:"customized",value:5,disabled:!0}],yE=[{label:"shadow-1",key:"td-shadow-1",tips:"组件 hover 状态使用,例如表格和树拖动",enTips:"Used when the component is hovered"},{label:"shadow-2",key:"td-shadow-2",tips:"下拉组件使用,例如下拉菜单 / 气泡确认框 / 选择器 等",enTips:"Used for dropdown components, such as dropdown, menu, select, etc."},{label:"shadow-3",key:"td-shadow-3",tips:"警示或弹窗组件使用,例如全局提示 / 消息通知等",enTips:"Used for alert or popup components, such as global prompt, message notification, etc."}],ry=[{name:"--td-shadow-1",from:"--td-shadow-1"},{name:"--td-shadow-2",from:"--td-shadow-2"},{name:"--td-shadow-3",from:"--td-shadow-3"}],bE=e=>{const r=e.match(/-?\d+(\.\d+)?/g)??[];return[0,0,0,0].map((t,n)=>{const a=r[n],o=Number(a);return Number.isNaN(o)?0:o})},xE=e=>{const r=e.match(/rgba?\([^)]+\)/i);return r&&r[0]?r[0].trim():"rgba(0, 0, 0, 0.25)"},SE=({name:e,value:r,onChange:t,onRemove:n})=>{const a=L.useMemo(()=>bE(r),[r]),o=L.useMemo(()=>xE(r),[r]),i=(l,u)=>{const f=typeof l=="number"?l:Number(l),g=Number.isNaN(f)?0:f,v=[...a];v[u]=g;const h=v.map(y=>`${y}px`).join(" ");t?.(`${h} ${o}`)},c=l=>{const u=a.map(f=>`${f}px`).join(" ");t?.(`${u} ${l}`)};return p.jsxs("div",{className:"shadow-layer__card",children:[p.jsxs("div",{className:"shadow-layer__title",children:[p.jsx("div",{className:"shadow-layer__name",children:e}),p.jsx("button",{className:"shadow-layer__remove","aria-label":"remove shadow layer",onClick:n,children:"×"})]}),p.jsxs("div",{className:"shadow-layer__card--item",children:[p.jsx(Ee.InputNumber,{className:"shadow-layer__card--x",theme:"normal",autoWidth:!0,value:a[0],onChange:l=>i(l,0),suffix:p.jsx("div",{className:"shadow-layer__suffix",children:"X"})}),p.jsx(Ee.InputNumber,{className:"shadow-layer__card--x",theme:"normal",autoWidth:!0,value:a[1],onChange:l=>i(l,1),suffix:p.jsx("div",{className:"shadow-layer__suffix",children:"Y"})})]}),p.jsx(Ee.InputNumber,{className:"shadow-layer__card--item",theme:"normal",autoWidth:!0,value:a[2],onChange:l=>i(l,2),suffix:p.jsx("div",{className:"shadow-layer__suffix",children:"Blur"})}),p.jsx(Ee.InputNumber,{className:"shadow-layer__card--item",theme:"normal",autoWidth:!0,value:a[3],onChange:l=>i(l,3),suffix:p.jsx("span",{className:"shadow-layer__suffix",children:"Spread"})}),p.jsx(Ee.Popup,{placement:"left",showArrow:!0,destroyOnClose:!0,attach:yr,overlayStyle:{borderRadius:"9px",padding:"12px 16px 8px"},content:p.jsx(Ee.ColorPickerPanel,{value:o,format:"RGBA",enableAlpha:!0,onChange:c}),children:p.jsxs("div",{className:"shadow-layer__color-input",children:[p.jsx("div",{className:"shadow-layer__card--sharp",style:{background:o}}),p.jsx("span",{className:"shadow-layer__color-text",children:o})]})})]})},_E="0 0 0 0 rgba(0, 0, 0, 0)",wE=({shadow:e,detail:r,onChange:t})=>{const n=(i,c)=>{const l=[...e];l[c]=i,t?.(l)},a=()=>{const i=[...e,_E];t?.(i)},o=i=>{const c=[...e];c.splice(i,1),t?.(c)};return p.jsxs("div",{className:"shadow-layer",children:[p.jsxs("div",{className:"shadow-layer__header",children:[p.jsx("div",{className:"shadow-layer__header--name",children:r.key}),p.jsx("button",{className:"shadow-layer__add",type:"button",onClick:a,"aria-label":"add shadow layer",children:"+"})]}),e.map((i,c)=>p.jsx(SE,{name:`layer${c+1}`,value:i,onRemove:()=>o(c),onChange:l=>n(l,c)},c))]})},EE=({shadow:e,detail:r,isEn:t,onChange:n})=>{const a=L.useMemo(()=>e.join(","),[e]);return p.jsx("div",{className:"shadow-card",children:p.jsx(Ee.Popup,{placement:"left",showArrow:!0,destroyOnClose:!0,attach:yr,overlayStyle:{borderRadius:"9px",padding:"12px 16px 8px"},content:p.jsx(wE,{shadow:e,detail:r,onChange:n}),children:p.jsxs("div",{className:"shadow-card__item",style:{boxShadow:a},children:[p.jsxs("div",{className:"shadow-card__title",children:[r.label,":"]}),p.jsx("div",{className:"shadow-card__tips",children:t?r.enTips:r.tips}),p.jsx("div",{className:"shadow-card__divider"}),p.jsx("div",{className:"shadow-card__info",children:e.map((o,i)=>p.jsxs("div",{className:"shadow-card__info-item",children:[o,i===e.length-1?";":","]},i))})]})})})},ty=e=>`${e},`.split("),").filter(n=>n).map(n=>`${n.trim()})`),RE=({top:e=0})=>{const r=L.useMemo(()=>typeof window<"u"?window.location.pathname.endsWith("en"):!1,[]),[t,n]=L.useState(()=>typeof window<"u"?window.innerHeight:0),[a,o]=L.useState(Hr.Default),[i,c]=L.useState([]),l=L.useRef(!1),u=L.useMemo(()=>mE.map(M=>({...M,value:M.value+1})),[]),f=L.useMemo(()=>u.reduce((M,j)=>(M[j.value]=r&&j.enLabel?j.enLabel:j.label,M),{}),[u,r]),g=L.useMemo(()=>({overflowY:"scroll",height:`${Math.max(0,t-e-96)}px`}),[t,e]),v=L.useMemo(()=>tc[Hr.Super_Light]?.[0]||"",[]),h=L.useMemo(()=>tc[Hr.Super_Deep]?.[0]||"",[]),y=L.useCallback(()=>{const M=getComputedStyle(document.documentElement);return ry.map(({from:j})=>{const x=M.getPropertyValue(j).trim();return ty(x)})},[]),_=L.useCallback(()=>{const M=y();c(M)},[y]),T=L.useCallback(M=>{if(M===Hr.Self_Defined)return;const j=tc[M];j&&c(j.map(x=>ty(x)))},[]),A=L.useCallback(()=>{const M=kr("shadow");if(M!=null){const j=Number(M);Number.isNaN(j)||(o(j),T(j))}},[T]);L.useEffect(()=>{const M=()=>n(window.innerHeight);window.addEventListener("resize",M);const j=setTimeout(()=>{A(),_(),l.current=!0},0);return()=>{window.removeEventListener("resize",M),clearTimeout(j)}},[A,_]),L.useEffect(()=>{if(!i.length||!l.current)return;const M=y();i.forEach((j,x)=>{const R=M[x]||[],P=j.join(", "),I=R.join(", ");if(P===I)return;const{name:V}=ry[x],W=a===Hr.Self_Defined;mr(V,P,W)})},[i,y,a]);const b=(M,j)=>{o(Hr.Self_Defined),c(x=>{const R=[...x];return R[j]=M,R})},$=M=>{const j=Number(M);if(Number.isNaN(j))return;const x=j-1;o(x),T(x),Pr("shadow",String(x),x!==Hr.Default)},S=a+1,E=r?"Shadow":"阴影";return p.jsx("div",{className:"shadow-content",style:{width:"268px",background:"var(--bg-color-card)",border:"1px solid var(--theme-component-border)",borderRadius:"12px"},children:p.jsx("div",{className:"shadow-content__content",style:g,children:p.jsxs("div",{className:"shadow-content__main",children:[p.jsx("p",{className:"shadow-content__title",children:E}),p.jsx(Ba,{selectOptions:u,suspendedLabels:f,value:S,disabled:a===Hr.Self_Defined,onChange:$,children:{left:p.jsx("div",{className:"shadow-panel__round-box",style:{boxShadow:v}}),right:p.jsx("div",{className:"shadow-panel__round-box",style:{boxShadow:h}})}}),i.map((M,j)=>p.jsx(EE,{shadow:M,detail:yE[j],isEn:r,onChange:x=>b(x,j)},j))]})})})},OE=({size:e=16})=>{const r=L.useMemo(()=>Math.min(parseInt(String(e),10)/2,80),[e]);return p.jsx("svg",{width:"8",height:r,viewBox:`0 0 8 ${r}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("rect",{width:"8",height:r,rx:"3",fill:"#F78D94"})})},TE=({size:e=4})=>{const r=L.useMemo(()=>Math.min(parseInt(String(e),10)/2,30),[e]),t=L.useMemo(()=>Math.min(12+r*2,72),[r]);return p.jsxs("svg",{width:t,height:"12",viewBox:`0 0 ${t} 12`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:`M0 3C0 1.34315 1.34315 0 3 0H${4+r}V12H3C1.34315 12 0 10.6569 0 9V3Z`,fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{y:"4",width:"2",height:"4",fill:"#F78D94"}),p.jsx("rect",{x:"2",y:"5",width:r,height:"2",fill:"#F78D94"}),p.jsx("rect",{x:2+r,y:"4",width:"2",height:"4",fill:"#F78D94"}),p.jsx("path",{d:`M${8+r} 0H${t-3}C${t-2}.6569 0 ${t} 1.34315 ${t} 3V9C${t} 10.6569 ${t-2}.6569 12 ${t-3} 12H${8+r}V0Z`,fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{x:8+r,y:"4",width:"2",height:"4",fill:"#F78D94"}),p.jsx("rect",{x:10+r,y:"5",width:r,height:"2",fill:"#F78D94"}),p.jsx("rect",{x:t-2,y:"4",width:"2",height:"4",fill:"#F78D94"})]})},IE=({size:e=2})=>{const r=L.useMemo(()=>Math.min(parseInt(String(e),10)+2,12),[e]),t=L.useMemo(()=>Math.min(12+r*2,36),[r]);return p.jsxs("svg",{width:"12",height:t,viewBox:`0 0 12 ${t}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:`M0 3C0 1.34315 1.34315 0 3 0H9C10.6569 0 12 1.34315 12 3V${4+r}H0V3Z`,fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{x:"4",width:"4",height:"2",fill:"#F78D94"}),p.jsx("rect",{x:"5",y:"2",width:"2",height:r,fill:"#F78D94"}),p.jsx("rect",{x:"4",y:r+2,width:"4",height:"2",fill:"#F78D94"}),p.jsx("path",{d:`M0 ${r+10}H12V${t-3}C12 ${t-2}.6569 10.6569 ${t} 9 ${t}H3C1.34315 ${t} 0 ${t-2}.6569 0 ${t-3}V${r+10}Z`,fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{x:"4",y:r+10,width:"4",height:"2",fill:"#F78D94"}),p.jsx("rect",{x:"5",y:r+12,width:"2",height:r,fill:"#F78D94"}),p.jsx("rect",{x:"4",y:t-2,width:"4",height:"2",fill:"#F78D94"})]})},CE=({size:e=2})=>{const r=L.useMemo(()=>Math.min(parseInt(String(e),10),12),[e]),t=L.useMemo(()=>Math.min(20+r,36),[r]);return p.jsxs("svg",{width:"16",height:t,viewBox:`0 0 16 ${t}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("rect",{width:"16",height:"8",rx:"3",fill:"#D54941",fillOpacity:"0.2"}),p.jsx("rect",{x:"6",y:"8",width:"4",height:"2",fill:"#F78D94"}),p.jsx("rect",{x:"7",y:"10",width:"2",height:r,fill:"#F78D94"}),p.jsx("rect",{x:"6",y:10+r,width:"4",height:"2",fill:"#F78D94"}),p.jsx("rect",{y:12+r,width:"16",height:"8",rx:"3",fill:"#D54941",fillOpacity:"0.2"})]})},jE=({size:e=2})=>{const r=L.useMemo(()=>Math.min(parseInt(String(e),10),12),[e]);return p.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsxs("g",{clipPath:"url(#clip0_26625_99462)",children:[p.jsx("rect",{width:r,height:"40",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{width:"36",height:r,fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{x:36-r,width:r,height:"36",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{y:36-r,width:"36",height:r,fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{y:"16",width:"2",height:"4",fill:"#F78D94"}),p.jsx("rect",{x:"2",y:"17",width:r-4,height:"2",fill:"#F78D94"}),p.jsx("rect",{x:r-2,y:"16",width:"2",height:"4",fill:"#F78D94"}),p.jsx("rect",{x:36-r,y:"16",width:"2",height:"4",fill:"#F78D94"}),p.jsx("rect",{x:38-r,y:"17",width:r-4,height:"2",fill:"#F78D94"}),p.jsx("rect",{x:"34",y:"16",width:"2",height:"4",fill:"#F78D94"}),p.jsx("rect",{x:"16",width:"4",height:"2",fill:"#F78D94"}),p.jsx("rect",{x:"17",y:"2",width:"2",height:r-4,fill:"#F78D94"}),p.jsx("rect",{x:"16",y:r-2,width:"4",height:"2",fill:"#F78D94"}),p.jsx("rect",{x:"16",y:36-r,width:"4",height:"2",fill:"#F78D94"}),p.jsx("rect",{x:"17",y:38-r,width:"2",height:r-4,fill:"#F78D94"}),p.jsx("rect",{x:"16",y:"34",width:"4",height:"2",fill:"#F78D94"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_26625_99462",children:p.jsx("rect",{width:"36",height:"36",rx:"6",fill:"white"})})})]})},Rn=({tokenList:e,type:r})=>{const[t,n]=L.useState(null),a=L.useMemo(()=>{const u=window.getComputedStyle(document.documentElement);return e.map(f=>({label:f.label,value:u.getPropertyValue(`--td-${f.label}`),desc:f.desc,remark:f.remark}))},[e]),o=L.useCallback((u,f,g)=>{u?n(g):f?.trigger==="document"&&t===g&&n(null)},[t]),i=(u,f)=>{const g=`${u}px`,v=`--td-${a[f].label}`;document.getElementById(br)&&mr(v,g)},c=u=>{if(typeof u=="string"){const f=parseFloat(u);return isNaN(f)?0:f}return u},l=(u,f)=>{switch(u){case"comp-size":return p.jsx(OE,{size:f});case"comp-padding-lr":return p.jsx(TE,{size:f});case"comp-padding-tb":return p.jsx(IE,{size:f});case"comp-margin":return p.jsx(CE,{size:f});case"popup-padding":return p.jsx(jE,{size:f});default:return null}};return p.jsx("div",{className:"size-panel__token-list",children:a.map((u,f)=>p.jsx(Ee.Popup,{placement:"left",showArrow:!0,trigger:"click",destroyOnClose:!0,attach:yr,overlayStyle:{borderRadius:"9px"},onVisibleChange:(g,v)=>o(g,v,f),content:p.jsx(en,{title:"size",sizeValue:u.value,onChangeFontSize:g=>i(g,f)}),children:p.jsx("div",{className:"size-panel__list-item",style:{height:"48px",transition:"border-color .2s",border:t===f?"1px solid var(--brand-main-hover)":"1px solid transparent",marginBottom:"4px",borderRadius:"6px",cursor:"pointer",backgroundColor:"var(--bg-color-theme-surface)",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',padding:"4px 6px",fontSize:"12px",lineHeight:"20px"},children:p.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[p.jsxs("div",{children:[p.jsx("div",{children:u.label}),p.jsxs("div",{style:{color:"var(--text-secondary)"},children:[u.remark," : ",u.value]})]}),p.jsx("div",{style:{display:"flex",alignItems:"center"},children:l(r,c(u.value))})]})})},f))})},PE=({size:e=2})=>{const r=e||2,t=L.useMemo(()=>r+2,[r]);return p.jsxs("svg",{width:t,height:"8",viewBox:`0 0 ${r} 8`,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("rect",{width:"1",height:"8",fill:"#D54941"}),p.jsx("rect",{x:"1",y:"3",width:r,height:"2",fill:"#D54941"}),p.jsx("rect",{x:r-1,width:"1",height:"8",fill:"#D54941"})]})},ny=[{token:"--td-size-1",name:"size-1",value:null},{token:"--td-size-2",name:"size-2",value:null},{token:"--td-size-3",name:"size-3",value:null},{token:"--td-size-4",name:"size-4",value:null},{token:"--td-size-5",name:"size-5",value:null},{token:"--td-size-6",name:"size-6",value:null},{token:"--td-size-7",name:"size-7",value:null},{token:"--td-size-8",name:"size-8",value:null},{token:"--td-size-9",name:"size-9",value:null},{token:"--td-size-10",name:"size-10",value:null},{token:"--td-size-11",name:"size-11",value:null},{token:"--td-size-12",name:"size-12",value:null},{token:"--td-size-13",name:"size-13",value:null},{token:"--td-size-14",name:"size-14",value:null},{token:"--td-size-15",name:"size-15",value:null},{token:"--td-size-16",name:"size-16",value:null}],AE=()=>{const[e,r]=L.useState(ny);return L.useEffect(()=>{r((()=>{const n=getComputedStyle(document.documentElement);return ny.map(a=>({...a,value:a.value??n.getPropertyValue(a.token).trim()}))})())},[]),p.jsx("div",{className:"size-panel__token-list",children:e.map((t,n)=>p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"8px"},children:[p.jsx("span",{children:p.jsx(PE,{size:parseInt(t.value||"2",10)})}),p.jsxs("span",{children:[t.name," : ",t.value]})]},n))})},$E=()=>p.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("rect",{width:"48",height:"48",rx:"6",fill:"#D54941",fillOpacity:"0.1"}),p.jsx("rect",{x:"1",y:"1",width:"24",height:"24",rx:"5",fill:"#D54941",fillOpacity:"0.2"}),p.jsx("rect",{x:"8",y:"8",width:"28",height:"28",rx:"5",fill:"#D54941",fillOpacity:"0.3"}),p.jsx("rect",{x:"16",y:"16",width:"31",height:"31",rx:"5",fill:"#D54941",fillOpacity:"0.4"}),p.jsx("rect",{x:"0.5",y:"0.5",width:"47",height:"47",rx:"5.5",stroke:"var(--theme-component-border)"})]}),qE=({size:e=2})=>p.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsxs("g",{clipPath:"url(#clip0_26565_99804)",children:[p.jsx("rect",{width:"48",height:"48",rx:"6",fill:"#D54941",fillOpacity:"0.1"}),p.jsx("rect",{width:"17",height:"48",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{x:"31",width:"17",height:"48",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 20H3V23H15V20H17V23V25V28H15V25H3V28H1V25V23V20Z",fill:"#D54941",fillOpacity:"0.5"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45 20H47V23V25V28H45V25H33V28H31V25V23V20H33V23H45V20Z",fill:"#D54941",fillOpacity:"0.5"})]}),p.jsx("rect",{x:"0.5",y:"0.5",width:"47",height:"47",rx:"5.5",stroke:"black",strokeOpacity:"0.06"}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_26565_99804",children:p.jsx("rect",{width:"48",height:"48",rx:"6",fill:"white"})})})]}),ME=({size:e=2})=>p.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsxs("g",{clipPath:"url(#clip0_26565_99786)",children:[p.jsx("rect",{width:"48",height:"48",rx:"6",fill:"#D54941",fillOpacity:"0.1"}),p.jsx("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H42C45.3137 0 48 2.68629 48 6V17H0V6Z",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("path",{d:"M0 32H48V42C48 45.3137 45.3137 48 42 48H6C2.68629 48 0 45.3137 0 42V32Z",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 1H23H25H28V3H25V15H28V17H25H23H20V15H23V3H20V1Z",fill:"#D54941",fillOpacity:"0.5"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 32H23H25H28V34H25V46H28V48H25H23H20V46H23V34H20V32Z",fill:"#D54941",fillOpacity:"0.5"})]}),p.jsx("rect",{x:"0.5",y:"0.5",width:"47",height:"47",rx:"5.5",stroke:"black",strokeOpacity:"0.06"}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_26565_99786",children:p.jsx("rect",{width:"48",height:"48",rx:"6",fill:"white"})})})]}),kE=({size:e=2})=>p.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsxs("g",{clipPath:"url(#clip0_26566_99945)",children:[p.jsx("rect",{width:"48",height:"48",rx:"6",fill:"#D54941",fillOpacity:"0.1"}),p.jsx("rect",{width:"10",height:"48",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{width:"48",height:"10",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{y:"38",width:"48",height:"10",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("rect",{x:"38",width:"10",height:"48",fill:"#D54941",fillOpacity:"0.16"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 20H3V23H8V20H10V23V25V28H8V25H3V28H1V25V23V20Z",fill:"#D54941",fillOpacity:"0.5"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45 20H47V23V25V28H45V25H40V28H38V25V23V20H40V23H45V20Z",fill:"#D54941",fillOpacity:"0.5"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 1H28V3H25V8H28V10H25H23H20V8H23V3H20V1Z",fill:"#D54941",fillOpacity:"0.5"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 38H23H25H28V40H25V45H28V47H20V45H23V40H20V38Z",fill:"#D54941",fillOpacity:"0.5"})]}),p.jsx("rect",{x:"0.5",y:"0.5",width:"47",height:"47",rx:"5.5",stroke:"black",strokeOpacity:"0.06"}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_26566_99945",children:p.jsx("rect",{width:"48",height:"48",rx:"6",fill:"white"})})})]}),NE=({size:e=2})=>p.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("rect",{width:"48",height:"48",rx:"6",fill:"#D54941",fillOpacity:"0.1"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 20H19V23H29V20H31V28H29V25H19V28H17V20Z",fill:"#D54941",fillOpacity:"0.6"}),p.jsx("rect",{x:"3",y:"8",width:"14",height:"32",rx:"3",fill:"#D54941",fillOpacity:"0.2"}),p.jsx("rect",{x:"31",y:"8",width:"14",height:"32",rx:"3",fill:"#D54941",fillOpacity:"0.2"}),p.jsx("rect",{x:"0.5",y:"0.5",width:"47",height:"47",rx:"5.5",stroke:"black",strokeOpacity:"0.06"})]}),DE=[{label:"comp-size-xxxs",value:null,remark:"size-6"},{label:"comp-size-xxs",remark:"size-7",value:null},{label:"comp-size-xs",remark:"size-8",value:null},{remark:"size-9",value:null,label:"comp-size-s"},{remark:"size-10",value:null,label:"comp-size-m"},{remark:"size-11",value:null,label:"comp-size-l"},{remark:"size-12",value:null,label:"comp-size-xl"},{remark:"size-13",value:null,label:"comp-size-xxl"},{remark:"size-14",value:null,label:"comp-size-xxxl"},{remark:"size-15",value:null,label:"comp-size-xxxxl"},{remark:"size-16",value:null,label:"comp-size-xxxxxl"}],zE=[{label:"comp-paddingLR-xxs",remark:"size-1",value:null},{label:"comp-paddingLR-xs",remark:"size-2",value:null},{label:"comp-paddingLR-s",remark:"size-4",value:null},{label:"comp-paddingLR-m",remark:"size-5",value:null},{label:"comp-paddingLR-l",remark:"size-6",value:null},{label:"comp-paddingLR-xl",remark:"size-8",value:null},{label:"comp-paddingLR-xxl",remark:"size-10",value:null}],LE=[{label:"comp-paddingTB-xxs",remark:"size-1",value:null},{label:"comp-paddingTB-xs",remark:"size-2",value:null},{label:"comp-paddingTB-s",remark:"size-4",value:null},{label:"comp-paddingTB-m",remark:"size-5",value:null},{label:"comp-paddingTB-l",remark:"size-6",value:null},{label:"comp-paddingTB-xl",remark:"size-8",value:null},{label:"comp-paddingTB-xxl",remark:"size-10",value:null}],FE=[{label:"pop-padding-s",remark:"size-2",value:null},{label:"pop-padding-m",remark:"size-3",value:null},{label:"pop-padding-l",remark:"size-4",value:null},{label:"pop-padding-xl",remark:"size-5",value:null},{label:"pop-padding-xxl",remark:"size-6",value:null}],BE=[{label:"comp-margin-xxs",remark:"size-1",value:null},{label:"comp-margin-xs",remark:"size-2",value:null},{label:"comp-margin-s",remark:"size-4",value:null},{label:"comp-margin-m",remark:"size-5",value:null},{label:"comp-margin-l",remark:"size-6",value:null},{label:"comp-margin-xl",remark:"size-7",value:null},{label:"comp-margin-xxl",remark:"size-8",value:null},{label:"comp-margin-xxxl",remark:"size-10",value:null},{label:"comp-margin-xxxxl",remark:"size-12",value:null}],HE=({top:e=0})=>{const[r,t]=L.useState(()=>typeof window<"u"?window.innerHeight:0),n=L.useMemo(()=>typeof window<"u"?window.location.pathname.endsWith("en"):!1,[]);L.useEffect(()=>{const i=()=>t(window.innerHeight);return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]);const a=L.useMemo(()=>({overflowY:"scroll",height:`${r-e-96}px`}),[r,e]),o=L.useMemo(()=>n?{size:{basicSize:"Basic size",componentSize:"Component Size",xPadding:"horizontal Padding",yPadding:"vertical Padding",popupPadding:"popup Padding",margin:"margin"}}:{size:{basicSize:"基础尺寸",componentSize:"组件大小",xPadding:"组件左右边距",yPadding:"组件上下边距",popupPadding:"弹出层边距",margin:"组件间距"}},[n]);return p.jsx("div",{style:{width:"268px",background:"var(--bg-color-card)",border:"1px solid var(--theme-component-border)",borderRadius:"12px"},children:p.jsxs("div",{className:"size-content__content",style:a,children:[p.jsxs("div",{className:"size-content__main",children:[p.jsx("p",{className:"size-content__title",children:o.size.basicSize}),p.jsx(AE,{})]}),p.jsx(St,{title:o.size.componentSize,subTitle:"size",round:p.jsx("div",{className:"block",style:{width:"48px",height:"48px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"var(--bg-color-theme-secondary)"},children:p.jsx($E,{})}),children:p.jsx(Rn,{tokenList:DE,type:"comp-size"})}),p.jsx(St,{title:o.size.yPadding,subTitle:"padding top & bottom",round:p.jsx("div",{className:"block",style:{width:"48px",height:"48px",borderRadius:"6px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"var(--bg-color-theme-secondary)"},children:p.jsx(ME,{})}),children:p.jsx(Rn,{tokenList:LE,type:"comp-padding-tb"})}),p.jsx(St,{title:o.size.xPadding,subTitle:"padding left & right",round:p.jsx("div",{className:"block",style:{width:"48px",height:"48px",borderRadius:"6px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"var(--bg-color-theme-secondary)"},children:p.jsx(qE,{})}),children:p.jsx(Rn,{tokenList:zE,type:"comp-padding-lr"})}),p.jsx(St,{title:o.size.popupPadding,subTitle:"popup padding",round:p.jsx("div",{className:"block",style:{width:"48px",height:"48px",borderRadius:"6px",backgroundColor:"var(--bg-color-theme-secondary)",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx(kE,{})}),children:p.jsx(Rn,{tokenList:FE,type:"popup-padding"})}),p.jsx(St,{title:o.size.margin,subTitle:"margin",round:p.jsx("div",{className:"block",style:{width:"48px",height:"48px",borderRadius:"6px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"var(--bg-color-theme-secondary)"},children:p.jsx(NE,{})}),children:p.jsx(Rn,{tokenList:BE,type:"comp-margin"})})]})})},On={color:0,font:1,radius:2,shadow:3,size:4};function VE({device:e="web",showSetting:r=!1}){const[t,n]=L.useState(On.color),[a,o]=L.useState(!1),[i,c]=L.useState(!1);L.useEffect(()=>{const f=kr("color")??cn.value;Zn(f,void 0,e),l1(e)},[e]);const l=()=>{o(!0)},u=()=>{c(!i)};return p.jsxs("div",{className:"theme-generator",children:[p.jsx($w,{onTriggerVisible:l,onRefreshContent:u,drawerVisible:a,showSetting:r,device:e}),p.jsx(Ee.Drawer,{size:"348px",visible:a,onClose:()=>{o(!1)},onConfirm:()=>o(!1),footer:!1,closeOnOverlayClick:!0,children:p.jsxs("div",{style:{display:"flex",paddingTop:"8px"},children:[p.jsx(Hw,{activeTabIdx:t,onChangeActiveTab:n,device:e}),t===On.radius?p.jsx(cE,{isRefresh:i,top:8}):t===On.font?p.jsx(gE,{isRefresh:i,top:8,device:e}):t===On.shadow?p.jsx(RE,{top:8}):t===On.size?p.jsx(HE,{top:8}):p.jsx(lE,{isRefresh:i,device:e})]})})]})}exports.CUSTOM_COMMON_ID_PREFIX=Gr;exports.CUSTOM_DARK_ID=un;exports.CUSTOM_EXTRA_ID=Jn;exports.CUSTOM_OPTIONS_ID=Zt;exports.CUSTOM_THEME_ID=br;exports.CUSTOM_TOKEN_ID=wt;exports.DEFAULT_THEME=cn;exports.ThemeGenerator=VE;exports.appendStyleSheet=Xt;exports.applyMainColorFromLocal=s1;exports.applyThemeFromLocal=l1;exports.applyTokenFromLocal=i1;exports.clearLocalTheme=u1;exports.collectTokenIndexes=Aw;exports.downloadFile=a1;exports.exportCustomTheme=n1;exports.extractRootContent=ba;exports.generateCommonTheme=t1;exports.generateNewTheme=Zn;exports.generateTokenList=wa;exports.getOptionFromLocal=kr;exports.getTokenFromLocal=Pw;exports.isMobile=e1;exports.modifyToken=mr;exports.normalizeDeviceType=r1;exports.storeTokenToLocal=o1;exports.updateLocalOption=Pr;
|