@tendaui/theme-generator 1.2.4 → 1.3.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 +10 -10
- package/dist/index.esm.js +171 -172
- package/dist/theme-generator.css +1 -1
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
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
|
|
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 Y(){{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
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
19
|
`),nr=ge.stack.split(`
|
|
20
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,
|
|
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,Y(),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
22
|
|
|
23
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
24
|
|
|
@@ -27,7 +27,7 @@ Check the top-level render call using <`+fe+">.")}return ee}}function ra(O,ee){{
|
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
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.
|
|
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,Y=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 Y(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 Y(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
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:{}};/**
|
|
32
32
|
* chroma.js - JavaScript library for color conversions
|
|
33
33
|
*
|
|
@@ -83,7 +83,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
83
83
|
* http://www.w3.org/TR/css3-color/#svg-color
|
|
84
84
|
*
|
|
85
85
|
* @preserve
|
|
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.
|
|
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 J=h.format[q].apply(null,k?d:d.slice(0,-1));w._rgb=_(J)}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,J=(1-q-C)*N,te=(1-k-C)*N;return[D,J,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,J;return C===k?(D=0,J=Number.NaN):D=N<.5?(C-k)/(C+k):(C-k)/(2-C-k),m==C?J=(w-q)/(C-k):w==C?J=2+(q-m)/(C-k):q==C&&(J=4+(m-w)/(C-k)),J*=60,J<0&&(J+=360),s.length>3&&s[3]!==void 0?[J,D,N,s[3]]:[J,D,N]},H=F,ae=v.unpack,le=v.last,oe=Math.round,Y=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=Y,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 J=[0,0,0],te=[0,0,0],re=k<.5?k*(1+q):k+q-k*q,pe=2*k-re,de=w/360;J[0]=de+1/3,J[1]=de,J[2]=de-1/3;for(var me=0;me<3;me++)J[me]<0&&(J[me]+=1),J[me]>1&&(J[me]-=1),6*J[me]<1?te[me]=pe+(re-pe)*6*J[me]:2*J[me]<1?te[me]=re:3*J[me]<2?te[me]=pe+(re-pe)*(2/3-J[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),J=0;J<3;J++)D[J]=fr(D[J]*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,J=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,J,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],J=C[1],te=C[2],re,pe,de;te=te*255;var me=J*255;if(J===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-J),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,J="000000"+D.toString(16);J=J.substr(J.length-6);var te="0"+Se(C*255).toString(16);switch(te=te.substr(te.length-2),N.toLowerCase()){case"rgba":return"#"+J+te;case"argb":return"#"+te+J;default:return"#"+J}},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,J=Math.round((k&255)/255*100)/100;return[C,N,D,J]}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,J=D>0?1-N/D:0;return J===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,J,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,J,te;return te=C/255,C===0?(D=Number.NaN,J=0):(J=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,J,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],J=C[1],te=C[2],re,pe,de;if(te*=255,J===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-J),$e=te*(1-J*Te),Be=te*(1-J*(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],J=C[2],te=116*D-16;return[te<0?0:te,500*(N-D),200*(D-J)]},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,J,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),J=Za(-.969266*k+1.8760108*C+.041556*N),te=Za(.0556434*k-.2040259*C+1.0572252*N),[D,J,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],J=C[2];return V1(N,D,J)},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],J=Vc(C,N,D),te=J[0],re=J[1],pe=J[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 J=Jc(D);J[2]/J[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),J=D.luminance();return Math.abs(s-J)<wb||!w--?D:J>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],J=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(J,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,J,te,re,pe,de;w.substr(0,1)==="h"&&(q=C,D=q[0],te=q[1],pe=q[2],k=N,J=k[0],re=k[1],de=k[2]);var me,Te,xe,$e;return!isNaN(D)&&!isNaN(J)?(J>D&&J-D>180?$e=J-(D+360):J<D&&D-J>180?$e=J+360-D:$e=J-D,Te=D+m*$e):isNaN(D)?isNaN(J)?Te=Number.NaN:(Te=J,(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,J=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],J+=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],J+=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(J/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=[],J=!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 J&&he[J]?he[J]():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 J=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 J=ao(s.slice(0,3)),te=ao(s.slice(2,5));q=function(re){return re<.5?J(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 J=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(J),me=Qb(J),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),J=Math.LOG10E*nf(q);C.push(w);for(var te=1;te<m;te++)C.push(ix(10,D+te/m*(J-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()),J=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-J,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
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_()}/**
|
|
88
88
|
* @license
|
|
89
89
|
* Copyright 2021 Google LLC
|
|
@@ -144,7 +144,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
144
144
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
145
145
|
* See the License for the specific language governing permissions and
|
|
146
146
|
* limitations under the License.
|
|
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),
|
|
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),Y=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*Y),ce=ie*Math.cos(B),Q=ie*Math.sin(B);return new Or(z,oe,U,X,Y,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)}}/**
|
|
148
148
|
* @license
|
|
149
149
|
* Copyright 2021 Google LLC
|
|
150
150
|
*
|
|
@@ -175,7 +175,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
175
175
|
* See the License for the specific language governing permissions and
|
|
176
176
|
* limitations under the License.
|
|
177
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===`
|
|
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(),Y=i.lab();return yt(le,Y)-yt(oe,Y)})),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
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
180
|
`,x(),u+="{"),g!==`
|
|
181
181
|
`&&(u+=`
|
|
@@ -417,7 +417,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
417
417
|
Copyright (c) 2018 Jed Watson.
|
|
418
418
|
Licensed under the MIT License (MIT), see
|
|
419
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
|
|
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","theme-mode"]}),()=>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,Y=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?Y-ie:Y+(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 Y=P(ve);return I.w(Y.date(Y.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,Y=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,Y,3);case"MMMM":return ue(Y,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,Y=function(){return I.m(F,ae)};switch(H){case h:ve=Y()/12;break;case g:ve=Y();break;case v:ve=Y()/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,direction:"ltr",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
421
|
* react-is.production.min.js
|
|
422
422
|
*
|
|
423
423
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -431,9 +431,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
431
431
|
*
|
|
432
432
|
* This source code is licensed under the MIT license found in the
|
|
433
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
|
|
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 Y(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=Y,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
435
|
object-assign
|
|
436
436
|
(c) Sindre Sorhus
|
|
437
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(
|
|
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;
|
|
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(Y,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?Y?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,Y,K,ue){var ie=ae[le],ce=G(ie);if(ce!==F){var Q=U(ie);return new _("Invalid "+Y+" `"+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,Y,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 "+Y+" `"+K+"` of type "+("`"+ie+"` supplied to `"+oe+"`, expected an array."))}for(var ce=0;ce<ue.length;ce++){var Q=F(ue,ce,oe,Y,K+"["+ce+"]",t);if(Q instanceof Error)return Q}return null}return T(H)}function S(){function F(H,ae,le,oe,Y){var K=H[ae];if(!c(K)){var ue=G(K);return new _("Invalid "+oe+" `"+Y+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected a single ReactElement."))}return null}return T(F)}function E(){function F(H,ae,le,oe,Y){var K=H[ae];if(!e.isValidElementType(K)){var ue=G(K);return new _("Invalid "+oe+" `"+Y+"` of type "+("`"+ue+"` supplied to `"+le+"`, expected a single ReactElement type."))}return null}return T(F)}function M(F){function H(ae,le,oe,Y,K){if(!(ae[le]instanceof F)){var ue=F.name||v,ie=ve(ae[le]);return new _("Invalid "+Y+" `"+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,Y,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 "+Y+" `"+K+"` of value `"+String(ue)+"` "+("supplied to `"+oe+"`, expected one of "+ce+"."))}return T(H)}function x(F){function H(ae,le,oe,Y,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 "+Y+" `"+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,Y,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,Y,K,ue,ie){for(var ce=[],Q=0;Q<F.length;Q++){var se=F[Q],Z=se(oe,Y,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,Y){return z(H[ae])?null:new _("Invalid "+oe+" `"+Y+"` 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,Y,K){var ue=ae[le],ie=G(ue);if(ie!=="object")return new _("Invalid "+Y+" `"+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,Y,K,ce,U(Q));var se=Q(ue,ce,oe,Y,K+"."+ce,t);if(se)return se}return null}return T(H)}function W(F){function H(ae,le,oe,Y,K){var ue=ae[le],ie=G(ue);if(ie!=="object")return new _("Invalid "+Y+" `"+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,Y,K,Q,U(se));if(!se)return new _("Invalid "+Y+" `"+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,Y,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((Y="brand")=>{let K=[],ue=[];if(Y==="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)}Y==="error"&&(K=nE),Y==="success"&&(K=oE),Y==="warning"&&(K=aE),Y==="gray"&&(K=iE);const ie=getComputedStyle(document.documentElement);return[...new Array(Y==="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-${Y}-color-${se+1}`)}:Z.map(Pe=>({...Pe,value:ie.getPropertyValue(`--td-${Y}-color-${Pe.idx+1}`)})):{value:ie.getPropertyValue(`--td-${Y}-color-${se+1}`)}})},[a]),W=Y=>{n(Y),B(Y)},z=L.useCallback(()=>{const Y=V();u([...Y]),c([...Y]);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 Y=window.getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").toLowerCase().trim();n(Y)})},[]);const B=Y=>{if(Y===t)return;n(Y);const K=Zn(Y,I==="remain",r);o(K.brandColorIdx),c(K.colorPalette),u([...K.colorPalette])},G=Y=>{let K;const ue=V(Y);if(Y==="brand"&&(K=l),Y==="error"&&(K=T),Y==="success"&&(K=v),Y==="warning"&&(K=S),Y==="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,Y,!1);return}else{const Q=ce;Q?.value!==void 0&&Q?.idx!==void 0&&X(Q.value,Q.idx,Y,!1)}})},U=(Y,K)=>{const{colorPalette:ue}=wa(Y,!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=(Y,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:Y}:se)):c(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:Y}:se))),ue==="success"&&g(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:Y}:se)),ue==="error"&&_(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:Y}:se)),ue==="warning"&&$(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:Y}:se)),ue==="gray"&&j(Q=>Q.map((se,Z)=>Z===K?{...Array.isArray(se)?se[0]:se,value:Y}:se));const ce=`--td-${ue}-color-${K+1}`;mr(ce,Y,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((Y,K)=>p.jsx("div",{className:Qt(["color-content__block",{"is-active":t.toLocaleLowerCase()===Y.value.toLocaleLowerCase()}]),style:{paddingBottom:"4px",color:"'var(--text-secondary)'"},children:p.jsx("div",{className:Qt({"is-active":t.toLocaleLowerCase()===Y.value.toLocaleLowerCase()}),onClick:()=>B(Y.value),children:p.jsx("div",{style:{width:"48px",height:"48px",border:"1px solid var(--theme-component-border)",borderRadius:"6px",backgroundColor:Y.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,attach:".theme-generator",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;
|