mirror of
https://github.com/lobehub/sd-webui-lobe-theme.git
synced 2026-01-09 06:23:44 +08:00
2437 lines
1.5 MiB
2437 lines
1.5 MiB
function e(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}},i={},a={exports:{}},l={},s=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function k(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}function C(){}function E(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=k.prototype;var O=E.prototype=new C;O.constructor=E,x(O,k.prototype),O.isPureReactComponent=!0;var D=Array.isArray,$=Object.prototype.hasOwnProperty,j={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)$.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:s,type:e,key:i,ref:a,props:o,_owner:j.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}var I=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function F(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case s:case c:a=!0}}if(a)return o=o(a=e),e=""===r?"."+T(a,0):r,D(o)?(n="",null!=e&&(n=e.replace(I,"$&/")+"/"),F(o,t,n,"",(function(e){return e}))):null!=o&&(N(o)&&(o=function(e,t){return{$$typeof:s,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(I,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",D(e))for(var l=0;l<e.length;l++){var u=r+T(i=e[l],l);a+=F(i,t,n,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),l=0;!(i=e.next()).done;)a+=F(i=i.value,t,n,u=r+T(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function A(e,t,n){if(null==e)return e;var r=[],o=0;return F(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},L={transition:null},z={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:L,ReactCurrentOwner:j};l.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},l.Component=k,l.Fragment=u,l.Profiler=f,l.PureComponent=E,l.StrictMode=d,l.Suspense=m,l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,l.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=x({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=j.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)$.call(t,c)&&!P.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:s,type:e.type,key:o,ref:i,props:r,_owner:a}},l.createContext=function(e){return(e={$$typeof:h,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:p,_context:e},e.Consumer=e},l.createElement=_,l.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},l.createRef=function(){return{current:null}},l.forwardRef=function(e){return{$$typeof:g,render:e}},l.isValidElement=N,l.lazy=function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:R}},l.memo=function(e,t){return{$$typeof:b,type:e,compare:void 0===t?null:t}},l.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},l.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},l.useCallback=function(e,t){return M.current.useCallback(e,t)},l.useContext=function(e){return M.current.useContext(e)},l.useDebugValue=function(){},l.useDeferredValue=function(e){return M.current.useDeferredValue(e)},l.useEffect=function(e,t){return M.current.useEffect(e,t)},l.useId=function(){return M.current.useId()},l.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},l.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},l.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},l.useMemo=function(e,t){return M.current.useMemo(e,t)},l.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},l.useRef=function(e){return M.current.useRef(e)},l.useState=function(e){return M.current.useState(e)},l.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},l.useTransition=function(){return M.current.useTransition()},l.version="18.2.0",a.exports=l;var B=a.exports;const H=n(B),W=e({__proto__:null,default:H},[B]);
|
||
/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
var U=B,V=Symbol.for("react.element"),G=Symbol.for("react.fragment"),q=Object.prototype.hasOwnProperty,X=U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,K={key:!0,ref:!0,__self:!0,__source:!0};function Y(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)q.call(t,r)&&!K.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:V,type:e,key:i,ref:a,props:o,_owner:X.current}}i.Fragment=G,i.jsx=Y,i.jsxs=Y,o.exports=i;var Q=o.exports;const J={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Z={silent:{level:-1},fatal:{level:J.fatal},error:{level:J.error},warn:{level:J.warn},log:{level:J.log},info:{level:J.info},success:{level:J.success},fail:{level:J.fail},ready:{level:J.info},start:{level:J.info},box:{level:J.info},debug:{level:J.debug},trace:{level:J.trace},verbose:{level:J.verbose}};function ee(e){return null!==e&&"object"==typeof e}function te(e,t,n=".",r){if(!ee(t))return te(e,{},n,r);const o=Object.assign({},t);for(const i in e){if("__proto__"===i||"constructor"===i)continue;const t=e[i];null!=t&&(r&&r(o,i,t,n)||(Array.isArray(t)&&Array.isArray(o[i])?o[i]=[...t,...o[i]]:ee(t)&&ee(o[i])?o[i]=te(t,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=t))}return o}const ne=(...e)=>e.reduce(((e,t)=>te(e,t,"",re)),{});var re;function oe(e){return t=e,"[object Object]"===Object.prototype.toString.call(t)&&(!(!e.message&&!e.args)&&!e.stack);var t}let ie=!1;const ae=[];class le{constructor(e={}){const t=e.types||Z;this.options=ne({...e,defaults:{...e.defaults},level:se(e.level,t),reporters:[...e.reporters||[]]},{types:Z,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in t){const e={type:n,...this.options.defaults,...t[n]};this[n]=this._wrapLogFn(e),this[n].raw=this._wrapLogFn(e,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=se(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new le({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(t>=0)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=e=>{this[t].raw(String(e).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){ie=!0}resumeLogs(){ie=!1;const e=ae.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,"function"==typeof t)for(const n in this.options.types)this[n]=t(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(e,t){return(...n)=>{if(!ie)return this._logFn(e,n,t);ae.push([this,e,n,t])}}_logFn(e,t,n){if((e.level||0)>this.level)return!1;const r={date:new Date,args:[],...e,level:se(e.level,this.options.types)};!n&&1===t.length&&oe(t[0])?Object.assign(r,t[0]):r.args=[...t],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split("\n")),r.args.push("\n"+r.additional.join("\n")),delete r.additional),r.type="string"==typeof r.type?r.type.toLowerCase():"log",r.tag="string"==typeof r.tag?r.tag:"";const o=(e=!1)=>{const t=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&t>0){const e=[...this._lastLog.object.args];t>1&&e.push(`(repeated ${t} times)`),this._log({...this._lastLog.object,args:e}),this._lastLog.count=1}e&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const i=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,i<this.options.throttle)try{const e=JSON.stringify([r.type,r.tag,r.args]),t=this._lastLog.serialized===e;if(this._lastLog.serialized=e,t&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin))return void(this._lastLog.timeout=setTimeout(o,this.options.throttle))}catch{}o(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function se(e,t={},n=3){return void 0===e?n:"number"==typeof e?e:t[e]&&void 0!==t[e].level?t[e].level:n}le.prototype.add=le.prototype.addReporter,le.prototype.remove=le.prototype.removeReporter,le.prototype.clear=le.prototype.removeReporter,le.prototype.withScope=le.prototype.withTag,le.prototype.mock=le.prototype.mockTypes,le.prototype.pause=le.prototype.pauseLogs,le.prototype.resume=le.prototype.resumeLogs;class ce{constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:1===e?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),n="log"===e.type?"":e.type,r=e.tag||"",o=`\n background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,i=`%c${[r,n].filter(Boolean).join(":")}`;"string"==typeof e.args[0]?t(`${i}%c ${e.args[0]}`,o,"",...e.args.slice(1)):t(i,o,...e.args)}}const ue=function(e={}){return function(e={}){return new le(e)}({reporters:e.reporters||[new ce({})],prompt:(e,t={})=>"confirm"===t.type?Promise.resolve(confirm(e)):Promise.resolve(prompt(e)),...e})}();var de={exports:{}},fe={},pe={exports:{}},he={};
|
||
/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function w(e){if(g=!1,y(e),!h)if(null!==n(s))h=!0,N(x);else{var t=n(c);null!==t&&I(w,t.startTime-e)}}function x(t,o){h=!1,g&&(g=!1,b(E),E=-1),p=!0;var i=f;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!$());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var m=n(c);null!==m&&I(w,m.startTime-o),u=!1}return u}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,E=-1,O=5,D=-1;function $(){return!(e.unstable_now()-D<O)}function j(){if(null!==C){var t=e.unstable_now();D=t;var n=!0;try{n=C(!0,t)}finally{n?S():(k=!1,C=null)}}else k=!1}if("function"==typeof v)S=function(){v(j)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,_=P.port2;P.port1.onmessage=j,S=function(){_.postMessage(null)}}else S=function(){m(j,0)};function N(e){C=e,k||(k=!0,S())}function I(t,n){E=m((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,N(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(g?(b(E),E=-1):g=!0,I(w,i-a))):(r.sortIndex=l,t(s,r),h||p||(h=!0,N(x))),r},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(he),pe.exports=he;var ge=pe.exports,me=B,be=ge;
|
||
/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/function ve(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ye=new Set,we={};function xe(e,t){Se(e,t),Se(e+"Capture",t)}function Se(e,t){for(we[e]=t,e=0;e<t.length;e++)ye.add(t[e])}var ke=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ce=Object.prototype.hasOwnProperty,Ee=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Oe={},De={};function $e(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){je[e]=new $e(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];je[t]=new $e(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){je[e]=new $e(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){je[e]=new $e(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){je[e]=new $e(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){je[e]=new $e(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){je[e]=new $e(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){je[e]=new $e(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){je[e]=new $e(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Pe=/[\-:]([a-z])/g;function _e(e){return e[1].toUpperCase()}function Ne(e,t,n,r){var o=je.hasOwnProperty(t)?je[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Ce.call(De,e)||!Ce.call(Oe,e)&&(Ee.test(e)?De[e]=!0:(Oe[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Pe,_e);je[t]=new $e(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Pe,_e);je[t]=new $e(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Pe,_e);je[t]=new $e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){je[e]=new $e(e,1,!1,e.toLowerCase(),null,!1,!1)})),je.xlinkHref=new $e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){je[e]=new $e(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Ie=me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Te=Symbol.for("react.element"),Fe=Symbol.for("react.portal"),Ae=Symbol.for("react.fragment"),Re=Symbol.for("react.strict_mode"),Me=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),ze=Symbol.for("react.context"),Be=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),We=Symbol.for("react.suspense_list"),Ue=Symbol.for("react.memo"),Ve=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),qe=Symbol.iterator;function Xe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=qe&&e[qe]||e["@@iterator"])?e:null}var Ke,Ye=Object.assign;function Qe(e){if(void 0===Ke)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ke=t&&t[1]||""}return"\n"+Ke+e}var Je=!1;function Ze(e,t){if(!e||Je)return"";Je=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Je=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qe(e):""}function et(e){switch(e.tag){case 5:return Qe(e.type);case 16:return Qe("Lazy");case 13:return Qe("Suspense");case 19:return Qe("SuspenseList");case 0:case 2:case 15:return e=Ze(e.type,!1);case 11:return e=Ze(e.type.render,!1);case 1:return e=Ze(e.type,!0);default:return""}}function tt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ae:return"Fragment";case Fe:return"Portal";case Me:return"Profiler";case Re:return"StrictMode";case He:return"Suspense";case We:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ze:return(e.displayName||"Context")+".Consumer";case Le:return(e._context.displayName||"Context")+".Provider";case Be:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ue:return null!==(t=e.displayName||null)?t:tt(e.type)||"Memo";case Ve:t=e._payload,e=e._init;try{return tt(e(t))}catch(n){}}return null}function nt(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tt(t);case 8:return t===Re?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function rt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ot(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function it(e){e._valueTracker||(e._valueTracker=function(e){var t=ot(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function at(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ot(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function lt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function st(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ct(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=rt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ut(e,t){null!=(t=t.checked)&&Ne(e,"checked",t,!1)}function dt(e,t){ut(e,t);var n=rt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?pt(e,t.type,n):t.hasOwnProperty("defaultValue")&&pt(e,t.type,rt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ft(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function pt(e,t,n){"number"===t&<(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ht=Array.isArray;function gt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+rt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function mt(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ve(91));return Ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bt(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(ve(92));if(ht(n)){if(1<n.length)throw Error(ve(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:rt(n)}}function vt(e,t){var n=rt(t.value),r=rt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function yt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function wt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?wt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var St,kt,Ct=(kt=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((St=St||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=St.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return kt(e,t)}))}:kt);function Et(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ot={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dt=["Webkit","ms","Moz","O"];function $t(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ot.hasOwnProperty(e)&&Ot[e]?(""+t).trim():t+"px"}function jt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=$t(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Ot).forEach((function(e){Dt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ot[t]=Ot[e]}))}));var Pt=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _t(e,t){if(t){if(Pt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ve(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ve(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ve(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ve(62))}}function Nt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var It=null;function Tt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,At=null,Rt=null;function Mt(e){if(e=Ii(e)){if("function"!=typeof Ft)throw Error(ve(280));var t=e.stateNode;t&&(t=Fi(t),Ft(e.stateNode,e.type,t))}}function Lt(e){At?Rt?Rt.push(e):Rt=[e]:At=e}function zt(){if(At){var e=At,t=Rt;if(Rt=At=null,Mt(e),t)for(e=0;e<t.length;e++)Mt(t[e])}}function Bt(e,t){return e(t)}function Ht(){}var Wt=!1;function Ut(e,t,n){if(Wt)return e(t,n);Wt=!0;try{return Bt(e,t,n)}finally{Wt=!1,(null!==At||null!==Rt)&&(Ht(),zt())}}function Vt(e,t){var n=e.stateNode;if(null===n)return null;var r=Fi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(ve(231,t,typeof n));return n}var Gt=!1;if(ke)try{var qt={};Object.defineProperty(qt,"passive",{get:function(){Gt=!0}}),window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch(kt){Gt=!1}function Xt(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Kt=!1,Yt=null,Qt=!1,Jt=null,Zt={onError:function(e){Kt=!0,Yt=e}};function en(e,t,n,r,o,i,a,l,s){Kt=!1,Yt=null,Xt.apply(Zt,arguments)}function tn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function nn(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function rn(e){if(tn(e)!==e)throw Error(ve(188))}function on(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=tn(e)))throw Error(ve(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return rn(o),e;if(i===r)return rn(o),t;i=i.sibling}throw Error(ve(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(ve(189))}}if(n.alternate!==r)throw Error(ve(190))}if(3!==n.tag)throw Error(ve(188));return n.stateNode.current===n?e:t}(e))?an(e):null}function an(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=an(e);if(null!==t)return t;e=e.sibling}return null}var ln=be.unstable_scheduleCallback,sn=be.unstable_cancelCallback,cn=be.unstable_shouldYield,un=be.unstable_requestPaint,dn=be.unstable_now,fn=be.unstable_getCurrentPriorityLevel,pn=be.unstable_ImmediatePriority,hn=be.unstable_UserBlockingPriority,gn=be.unstable_NormalPriority,mn=be.unstable_LowPriority,bn=be.unstable_IdlePriority,vn=null,yn=null;var wn=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(xn(e)/Sn|0)|0},xn=Math.log,Sn=Math.LN2;var kn=64,Cn=4194304;function En(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function On(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=En(l):0!==(i&=a)&&(r=En(i))}else 0!==(a=n&~o)?r=En(a):0!==i&&(r=En(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-wn(t)),r|=e[n],t&=~o;return r}function Dn(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function $n(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function jn(){var e=kn;return 0==(4194240&(kn<<=1))&&(kn=64),e}function Pn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _n(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-wn(t)]=n}function Nn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var In=0;function Tn(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Fn,An,Rn,Mn,Ln,zn=!1,Bn=[],Hn=null,Wn=null,Un=null,Vn=new Map,Gn=new Map,qn=[],Xn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Kn(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":Vn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gn.delete(t.pointerId)}}function Yn(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ii(t))&&An(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Qn(e){var t=Ni(e.target);if(null!==t){var n=tn(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=nn(n)))return e.blockedOn=t,void Ln(e.priority,(function(){Rn(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Jn(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=cr(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ii(n))&&An(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function Zn(e,t,n){Jn(e)&&n.delete(t)}function er(){zn=!1,null!==Hn&&Jn(Hn)&&(Hn=null),null!==Wn&&Jn(Wn)&&(Wn=null),null!==Un&&Jn(Un)&&(Un=null),Vn.forEach(Zn),Gn.forEach(Zn)}function tr(e,t){e.blockedOn===t&&(e.blockedOn=null,zn||(zn=!0,be.unstable_scheduleCallback(be.unstable_NormalPriority,er)))}function nr(e){function t(t){return tr(t,e)}if(0<Bn.length){tr(Bn[0],e);for(var n=1;n<Bn.length;n++){var r=Bn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Hn&&tr(Hn,e),null!==Wn&&tr(Wn,e),null!==Un&&tr(Un,e),Vn.forEach(t),Gn.forEach(t),n=0;n<qn.length;n++)(r=qn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<qn.length&&null===(n=qn[0]).blockedOn;)Qn(n),null===n.blockedOn&&qn.shift()}var rr=Ie.ReactCurrentBatchConfig,or=!0;function ir(e,t,n,r){var o=In,i=rr.transition;rr.transition=null;try{In=1,lr(e,t,n,r)}finally{In=o,rr.transition=i}}function ar(e,t,n,r){var o=In,i=rr.transition;rr.transition=null;try{In=4,lr(e,t,n,r)}finally{In=o,rr.transition=i}}function lr(e,t,n,r){if(or){var o=cr(e,t,n,r);if(null===o)oi(e,t,r,sr,n),Kn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Hn=Yn(Hn,e,t,n,r,o),!0;case"dragenter":return Wn=Yn(Wn,e,t,n,r,o),!0;case"mouseover":return Un=Yn(Un,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Vn.set(i,Yn(Vn.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Gn.set(i,Yn(Gn.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Kn(e,r),4&t&&-1<Xn.indexOf(e)){for(;null!==o;){var i=Ii(o);if(null!==i&&Fn(i),null===(i=cr(e,t,n,r))&&oi(e,t,r,sr,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else oi(e,t,r,null,n)}}var sr=null;function cr(e,t,n,r){if(sr=null,null!==(e=Ni(e=Tt(r))))if(null===(t=tn(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=nn(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return sr=e,null}function ur(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(fn()){case pn:return 1;case hn:return 4;case gn:case mn:return 16;case bn:return 536870912;default:return 16}default:return 16}}var dr=null,fr=null,pr=null;function hr(){if(pr)return pr;var e,t,n=fr,r=n.length,o="value"in dr?dr.value:dr.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return pr=o.slice(e,1<t?1-t:void 0)}function gr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function mr(){return!0}function br(){return!1}function vr(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?mr:br,this.isPropagationStopped=br,this}return Ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=mr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=mr)},persist:function(){},isPersistent:mr}),t}var yr,wr,xr,Sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kr=vr(Sr),Cr=Ye({},Sr,{view:0,detail:0}),Er=vr(Cr),Or=Ye({},Cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==xr&&(xr&&"mousemove"===e.type?(yr=e.screenX-xr.screenX,wr=e.screenY-xr.screenY):wr=yr=0,xr=e),yr)},movementY:function(e){return"movementY"in e?e.movementY:wr}}),Dr=vr(Or),$r=vr(Ye({},Or,{dataTransfer:0})),jr=vr(Ye({},Cr,{relatedTarget:0})),Pr=vr(Ye({},Sr,{animationName:0,elapsedTime:0,pseudoElement:0})),_r=Ye({},Sr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Nr=vr(_r),Ir=vr(Ye({},Sr,{data:0})),Tr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ar={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ar[e])&&!!t[e]}function Mr(){return Rr}var Lr=Ye({},Cr,{key:function(e){if(e.key){var t=Tr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=gr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Fr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mr,charCode:function(e){return"keypress"===e.type?gr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?gr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),zr=vr(Lr),Br=vr(Ye({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hr=vr(Ye({},Cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mr})),Wr=vr(Ye({},Sr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ur=Ye({},Or,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Vr=vr(Ur),Gr=[9,13,27,32],qr=ke&&"CompositionEvent"in window,Xr=null;ke&&"documentMode"in document&&(Xr=document.documentMode);var Kr=ke&&"TextEvent"in window&&!Xr,Yr=ke&&(!qr||Xr&&8<Xr&&11>=Xr),Qr=String.fromCharCode(32),Jr=!1;function Zr(e,t){switch(e){case"keyup":return-1!==Gr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eo(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var to=!1;var no={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!no[e.type]:"textarea"===t}function oo(e,t,n,r){Lt(r),0<(t=ai(t,"onChange")).length&&(n=new kr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var io=null,ao=null;function lo(e){Jo(e,0)}function so(e){if(at(Ti(e)))return e}function co(e,t){if("change"===e)return t}var uo=!1;if(ke){var fo;if(ke){var po="oninput"in document;if(!po){var ho=document.createElement("div");ho.setAttribute("oninput","return;"),po="function"==typeof ho.oninput}fo=po}else fo=!1;uo=fo&&(!document.documentMode||9<document.documentMode)}function go(){io&&(io.detachEvent("onpropertychange",mo),ao=io=null)}function mo(e){if("value"===e.propertyName&&so(ao)){var t=[];oo(t,ao,e,Tt(e)),Ut(lo,t)}}function bo(e,t,n){"focusin"===e?(go(),ao=n,(io=t).attachEvent("onpropertychange",mo)):"focusout"===e&&go()}function vo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return so(ao)}function yo(e,t){if("click"===e)return so(t)}function wo(e,t){if("input"===e||"change"===e)return so(t)}var xo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function So(e,t){if(xo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Ce.call(t,o)||!xo(e[o],t[o]))return!1}return!0}function ko(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Co(e,t){var n,r=ko(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ko(r)}}function Eo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Eo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Oo(){for(var e=window,t=lt();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=lt((e=t.contentWindow).document)}return t}function Do(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function $o(e){var t=Oo(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Eo(n.ownerDocument.documentElement,n)){if(null!==r&&Do(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Co(n,i);var a=Co(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var jo=ke&&"documentMode"in document&&11>=document.documentMode,Po=null,_o=null,No=null,Io=!1;function To(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Io||null==Po||Po!==lt(r)||("selectionStart"in(r=Po)&&Do(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},No&&So(No,r)||(No=r,0<(r=ai(_o,"onSelect")).length&&(t=new kr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Po)))}function Fo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ao={animationend:Fo("Animation","AnimationEnd"),animationiteration:Fo("Animation","AnimationIteration"),animationstart:Fo("Animation","AnimationStart"),transitionend:Fo("Transition","TransitionEnd")},Ro={},Mo={};function Lo(e){if(Ro[e])return Ro[e];if(!Ao[e])return e;var t,n=Ao[e];for(t in n)if(n.hasOwnProperty(t)&&t in Mo)return Ro[e]=n[t];return e}ke&&(Mo=document.createElement("div").style,"AnimationEvent"in window||(delete Ao.animationend.animation,delete Ao.animationiteration.animation,delete Ao.animationstart.animation),"TransitionEvent"in window||delete Ao.transitionend.transition);var zo=Lo("animationend"),Bo=Lo("animationiteration"),Ho=Lo("animationstart"),Wo=Lo("transitionend"),Uo=new Map,Vo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Go(e,t){Uo.set(e,t),xe(t,[e])}for(var qo=0;qo<Vo.length;qo++){var Xo=Vo[qo];Go(Xo.toLowerCase(),"on"+(Xo[0].toUpperCase()+Xo.slice(1)))}Go(zo,"onAnimationEnd"),Go(Bo,"onAnimationIteration"),Go(Ho,"onAnimationStart"),Go("dblclick","onDoubleClick"),Go("focusin","onFocus"),Go("focusout","onBlur"),Go(Wo,"onTransitionEnd"),Se("onMouseEnter",["mouseout","mouseover"]),Se("onMouseLeave",["mouseout","mouseover"]),Se("onPointerEnter",["pointerout","pointerover"]),Se("onPointerLeave",["pointerout","pointerover"]),xe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xe("onBeforeInput",["compositionend","keypress","textInput","paste"]),xe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ko="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ko));function Qo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(en.apply(this,arguments),Kt){if(!Kt)throw Error(ve(198));var c=Yt;Kt=!1,Yt=null,Qt||(Qt=!0,Jt=c)}}(r,t,void 0,e),e.currentTarget=null}function Jo(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Qo(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Qo(o,l,c),i=s}}}if(Qt)throw e=Jt,Qt=!1,Jt=null,e}function Zo(e,t){var n=t[ji];void 0===n&&(n=t[ji]=new Set);var r=e+"__bubble";n.has(r)||(ri(t,e,2,!1),n.add(r))}function ei(e,t,n){var r=0;t&&(r|=4),ri(n,e,r,t)}var ti="_reactListening"+Math.random().toString(36).slice(2);function ni(e){if(!e[ti]){e[ti]=!0,ye.forEach((function(t){"selectionchange"!==t&&(Yo.has(t)||ei(t,!1,e),ei(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ti]||(t[ti]=!0,ei("selectionchange",!1,t))}}function ri(e,t,n,r){switch(ur(t)){case 1:var o=ir;break;case 4:o=ar;break;default:o=lr}n=o.bind(null,t,n,e),o=void 0,!Gt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function oi(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Ni(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Ut((function(){var r=i,o=Tt(n),a=[];e:{var l=Uo.get(e);if(void 0!==l){var s=kr,c=e;switch(e){case"keypress":if(0===gr(n))break e;case"keydown":case"keyup":s=zr;break;case"focusin":c="focus",s=jr;break;case"focusout":c="blur",s=jr;break;case"beforeblur":case"afterblur":s=jr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=Dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=$r;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Hr;break;case zo:case Bo:case Ho:s=Pr;break;case Wo:s=Wr;break;case"scroll":s=Er;break;case"wheel":s=Vr;break;case"copy":case"cut":case"paste":s=Nr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Br}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Vt(h,f))&&u.push(ii(h,g,p)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===It||!(c=n.relatedTarget||n.fromElement)||!Ni(c)&&!c[$i])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ni(c):null)&&(c!==(d=tn(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=Dr,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Br,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:Ti(s),p=null==c?l:Ti(c),(l=new u(g,h+"leave",s,n,o)).target=d,l.relatedTarget=p,g=null,Ni(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,g=u),d=g,s&&c)e:{for(f=c,h=0,p=u=s;p;p=li(p))h++;for(p=0,g=f;g;g=li(g))p++;for(;0<h-p;)u=li(u),h--;for(;0<p-h;)f=li(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=li(u),f=li(f)}u=null}else u=null;null!==s&&si(a,l,s,u,!1),null!==c&&null!==d&&si(a,d,c,u,!0)}if("select"===(s=(l=r?Ti(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=co;else if(ro(l))if(uo)m=wo;else{m=vo;var b=bo}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=yo);switch(m&&(m=m(e,r))?oo(a,m,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&pt(l,"number",l.value)),b=r?Ti(r):window,e){case"focusin":(ro(b)||"true"===b.contentEditable)&&(Po=b,_o=r,No=null);break;case"focusout":No=_o=Po=null;break;case"mousedown":Io=!0;break;case"contextmenu":case"mouseup":case"dragend":Io=!1,To(a,n,o);break;case"selectionchange":if(jo)break;case"keydown":case"keyup":To(a,n,o)}var v;if(qr)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else to?Zr(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Yr&&"ko"!==n.locale&&(to||"onCompositionStart"!==y?"onCompositionEnd"===y&&to&&(v=hr()):(fr="value"in(dr=o)?dr.value:dr.textContent,to=!0)),0<(b=ai(r,y)).length&&(y=new Ir(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=eo(n))&&(y.data=v))),(v=Kr?function(e,t){switch(e){case"compositionend":return eo(t);case"keypress":return 32!==t.which?null:(Jr=!0,Qr);case"textInput":return(e=t.data)===Qr&&Jr?null:e;default:return null}}(e,n):function(e,t){if(to)return"compositionend"===e||!qr&&Zr(e,t)?(e=hr(),pr=fr=dr=null,to=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yr&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=ai(r,"onBeforeInput")).length&&(o=new Ir("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}Jo(a,t)}))}function ii(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ai(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Vt(e,n))&&r.unshift(ii(e,i,o)),null!=(i=Vt(e,t))&&r.push(ii(e,i,o))),e=e.return}return r}function li(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function si(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Vt(n,i))&&a.unshift(ii(n,s,l)):o||null!=(s=Vt(n,i))&&a.push(ii(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ci=/\r\n?/g,ui=/\u0000|\uFFFD/g;function di(e){return("string"==typeof e?e:""+e).replace(ci,"\n").replace(ui,"")}function fi(e,t,n){if(t=di(t),di(e)!==t&&n)throw Error(ve(425))}function pi(){}var hi=null,gi=null;function mi(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bi="function"==typeof setTimeout?setTimeout:void 0,vi="function"==typeof clearTimeout?clearTimeout:void 0,yi="function"==typeof Promise?Promise:void 0,wi="function"==typeof queueMicrotask?queueMicrotask:void 0!==yi?function(e){return yi.resolve(null).then(e).catch(xi)}:bi;function xi(e){setTimeout((function(){throw e}))}function Si(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void nr(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);nr(t)}function ki(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Ei=Math.random().toString(36).slice(2),Oi="__reactFiber$"+Ei,Di="__reactProps$"+Ei,$i="__reactContainer$"+Ei,ji="__reactEvents$"+Ei,Pi="__reactListeners$"+Ei,_i="__reactHandles$"+Ei;function Ni(e){var t=e[Oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$i]||n[Oi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ci(e);null!==e;){if(n=e[Oi])return n;e=Ci(e)}return t}n=(e=n).parentNode}return null}function Ii(e){return!(e=e[Oi]||e[$i])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ve(33))}function Fi(e){return e[Di]||null}var Ai=[],Ri=-1;function Mi(e){return{current:e}}function Li(e){0>Ri||(e.current=Ai[Ri],Ai[Ri]=null,Ri--)}function zi(e,t){Ri++,Ai[Ri]=e.current,e.current=t}var Bi={},Hi=Mi(Bi),Wi=Mi(!1),Ui=Bi;function Vi(e,t){var n=e.type.contextTypes;if(!n)return Bi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Gi(e){return null!=(e=e.childContextTypes)}function qi(){Li(Wi),Li(Hi)}function Xi(e,t,n){if(Hi.current!==Bi)throw Error(ve(168));zi(Hi,t),zi(Wi,n)}function Ki(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(ve(108,nt(e)||"Unknown",o));return Ye({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bi,Ui=Hi.current,zi(Hi,e),zi(Wi,Wi.current),!0}function Qi(e,t,n){var r=e.stateNode;if(!r)throw Error(ve(169));n?(e=Ki(e,t,Ui),r.__reactInternalMemoizedMergedChildContext=e,Li(Wi),Li(Hi),zi(Hi,e)):Li(Wi),zi(Wi,n)}var Ji=null,Zi=!1,ea=!1;function ta(e){null===Ji?Ji=[e]:Ji.push(e)}function na(){if(!ea&&null!==Ji){ea=!0;var e=0,t=In;try{var n=Ji;for(In=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ji=null,Zi=!1}catch(GY){throw null!==Ji&&(Ji=Ji.slice(e+1)),ln(pn,na),GY}finally{In=t,ea=!1}}return null}var ra=[],oa=0,ia=null,aa=0,la=[],sa=0,ca=null,ua=1,da="";function fa(e,t){ra[oa++]=aa,ra[oa++]=ia,ia=e,aa=t}function pa(e,t,n){la[sa++]=ua,la[sa++]=da,la[sa++]=ca,ca=e;var r=ua;e=da;var o=32-wn(r)-1;r&=~(1<<o),n+=1;var i=32-wn(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,ua=1<<32-wn(t)+o|n<<o|r,da=i+e}else ua=1<<i|n<<o|r,da=e}function ha(e){null!==e.return&&(fa(e,1),pa(e,1,0))}function ga(e){for(;e===ia;)ia=ra[--oa],ra[oa]=null,aa=ra[--oa],ra[oa]=null;for(;e===ca;)ca=la[--sa],la[sa]=null,da=la[--sa],la[sa]=null,ua=la[--sa],la[sa]=null}var ma=null,ba=null,va=!1,ya=null;function wa(e,t){var n=Vu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function xa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ma=e,ba=ki(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ma=e,ba=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==ca?{id:ua,overflow:da}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Vu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ma=e,ba=null,!0);default:return!1}}function Sa(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ka(e){if(va){var t=ba;if(t){var n=t;if(!xa(e,t)){if(Sa(e))throw Error(ve(418));t=ki(n.nextSibling);var r=ma;t&&xa(e,t)?wa(r,n):(e.flags=-4097&e.flags|2,va=!1,ma=e)}}else{if(Sa(e))throw Error(ve(418));e.flags=-4097&e.flags|2,va=!1,ma=e}}}function Ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ma=e}function Ea(e){if(e!==ma)return!1;if(!va)return Ca(e),va=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!mi(e.type,e.memoizedProps)),t&&(t=ba)){if(Sa(e))throw Oa(),Error(ve(418));for(;t;)wa(e,t),t=ki(t.nextSibling)}if(Ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ve(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ba=ki(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ba=null}}else ba=ma?ki(e.stateNode.nextSibling):null;return!0}function Oa(){for(var e=ba;e;)e=ki(e.nextSibling)}function Da(){ba=ma=null,va=!1}function $a(e){null===ya?ya=[e]:ya.push(e)}var ja=Ie.ReactCurrentBatchConfig;function Pa(e,t){if(e&&e.defaultProps){for(var n in t=Ye({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var _a=Mi(null),Na=null,Ia=null,Ta=null;function Fa(){Ta=Ia=Na=null}function Aa(e){var t=_a.current;Li(_a),e._currentValue=t}function Ra(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ma(e,t){Na=e,Ta=Ia=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Is=!0),e.firstContext=null)}function La(e){var t=e._currentValue;if(Ta!==e)if(e={context:e,memoizedValue:t,next:null},null===Ia){if(null===Na)throw Error(ve(308));Ia=e,Na.dependencies={lanes:0,firstContext:e}}else Ia=Ia.next=e;return t}var za=null;function Ba(e){null===za?za=[e]:za.push(e)}function Ha(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ba(t)):(n.next=o.next,o.next=n),t.interleaved=n,Wa(e,r)}function Wa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ua=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ga(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Hc)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Wa(e,n)}return null===(o=r.interleaved)?(t.next=t,Ba(r)):(t.next=o.next,o.next=t),r.interleaved=t,Wa(e,n)}function Ka(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nn(e,n)}}function Ya(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qa(e,t,n,r){var o=e.updateQueue;Ua=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,g=l;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=g.payload)?h.call(p,d,f):h))break e;d=Ye({},d,f);break e;case 2:Ua=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Yc|=a,e.lanes=a,e.memoizedState=d}}function Ja(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(ve(191,o));o.call(r)}}}var Za=(new me.Component).refs;function el(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ye({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var tl={isMounted:function(e){return!!(e=e._reactInternals)&&tn(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),o=gu(e),i=qa(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Xa(e,i,o))&&(mu(t,e,o,r),Ka(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),o=gu(e),i=qa(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Xa(e,i,o))&&(mu(t,e,o,r),Ka(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=gu(e),o=qa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Xa(e,o,r))&&(mu(t,e,r,n),Ka(t,e,r))}};function nl(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!So(n,r)||!So(o,i))}function rl(e,t,n){var r=!1,o=Bi,i=t.contextType;return"object"==typeof i&&null!==i?i=La(i):(o=Gi(t)?Ui:Hi.current,i=(r=null!=(r=t.contextTypes))?Vi(e,o):Bi),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=tl,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ol(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&tl.enqueueReplaceState(t,t.state,null)}function il(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Za,Va(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=La(i):(i=Gi(t)?Ui:Hi.current,o.context=Vi(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(el(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&tl.enqueueReplaceState(o,o.state,null),Qa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function al(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(ve(309));var r=n.stateNode}if(!r)throw Error(ve(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;t===Za&&(t=o.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(ve(284));if(!n._owner)throw Error(ve(290,e))}return e}function ll(e,t){throw e=Object.prototype.toString.call(t),Error(ve(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sl(e){return(0,e._init)(e._payload)}function cl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=qu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Qu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===Ae?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ve&&sl(i)===t.type)?((r=o(t,n.props)).ref=al(e,t,n),r.return=e,r):((r=Xu(n.type,n.key,n.props,null,e.mode,r)).ref=al(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ju(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=Ku(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Qu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Te:return(n=Xu(t.type,t.key,t.props,null,e.mode,n)).ref=al(e,null,t),n.return=e,n;case Fe:return(t=Ju(t,e.mode,n)).return=e,t;case Ve:return d(e,(0,t._init)(t._payload),n)}if(ht(t)||Xe(t))return(t=Ku(t,e.mode,n,null)).return=e,t;ll(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Te:return n.key===o?s(e,t,n,r):null;case Fe:return n.key===o?c(e,t,n,r):null;case Ve:return f(e,t,(o=n._init)(n._payload),r)}if(ht(n)||Xe(n))return null!==o?null:u(e,t,n,r,null);ll(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Te:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Fe:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ve:return p(e,t,n,(0,r._init)(r._payload),o)}if(ht(r)||Xe(r))return u(t,e=e.get(n)||null,r,o,null);ll(t,r)}return null}return function l(s,c,u,h){if("object"==typeof u&&null!==u&&u.type===Ae&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case Te:e:{for(var g=u.key,m=c;null!==m;){if(m.key===g){if((g=u.type)===Ae){if(7===m.tag){n(s,m.sibling),(c=o(m,u.props.children)).return=s,s=c;break e}}else if(m.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===Ve&&sl(g)===m.type){n(s,m.sibling),(c=o(m,u.props)).ref=al(s,m,u),c.return=s,s=c;break e}n(s,m);break}t(s,m),m=m.sibling}u.type===Ae?((c=Ku(u.props.children,s.mode,h,u.key)).return=s,s=c):((h=Xu(u.type,u.key,u.props,null,s.mode,h)).ref=al(s,c,u),h.return=s,s=h)}return a(s);case Fe:e:{for(m=u.key;null!==c;){if(c.key===m){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(s,c.sibling),(c=o(c,u.children||[])).return=s,s=c;break e}n(s,c);break}t(s,c),c=c.sibling}(c=Ju(u,s.mode,h)).return=s,s=c}return a(s);case Ve:return l(s,c,(m=u._init)(u._payload),h)}if(ht(u))return function(o,a,l,s){for(var c=null,u=null,h=a,g=a=0,m=null;null!==h&&g<l.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var b=f(o,h,l[g],s);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,h=m}if(g===l.length)return n(o,h),va&&fa(o,g),c;if(null===h){for(;g<l.length;g++)null!==(h=d(o,l[g],s))&&(a=i(h,a,g),null===u?c=h:u.sibling=h,u=h);return va&&fa(o,g),c}for(h=r(o,h);g<l.length;g++)null!==(m=p(h,o,g,l[g],s))&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),a=i(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&h.forEach((function(e){return t(o,e)})),va&&fa(o,g),c}(s,c,u,h);if(Xe(u))return function(o,a,l,s){var c=Xe(l);if("function"!=typeof c)throw Error(ve(150));if(null==(l=c.call(l)))throw Error(ve(151));for(var u=c=null,h=a,g=a=0,m=null,b=l.next();null!==h&&!b.done;g++,b=l.next()){h.index>g?(m=h,h=null):m=h.sibling;var v=f(o,h,b.value,s);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,g),null===u?c=v:u.sibling=v,u=v,h=m}if(b.done)return n(o,h),va&&fa(o,g),c;if(null===h){for(;!b.done;g++,b=l.next())null!==(b=d(o,b.value,s))&&(a=i(b,a,g),null===u?c=b:u.sibling=b,u=b);return va&&fa(o,g),c}for(h=r(o,h);!b.done;g++,b=l.next())null!==(b=p(h,o,g,b.value,s))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b);return e&&h.forEach((function(e){return t(o,e)})),va&&fa(o,g),c}(s,c,u,h);ll(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(s,c.sibling),(c=o(c,u)).return=s,s=c):(n(s,c),(c=Qu(u,s.mode,h)).return=s,s=c),a(s)):n(s,c)}}var ul=cl(!0),dl=cl(!1),fl={},pl=Mi(fl),hl=Mi(fl),gl=Mi(fl);function ml(e){if(e===fl)throw Error(ve(174));return e}function bl(e,t){switch(zi(gl,t),zi(hl,e),zi(pl,fl),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xt(null,"");break;default:t=xt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Li(pl),zi(pl,t)}function vl(){Li(pl),Li(hl),Li(gl)}function yl(e){ml(gl.current);var t=ml(pl.current),n=xt(t,e.type);t!==n&&(zi(hl,e),zi(pl,n))}function wl(e){hl.current===e&&(Li(pl),Li(hl))}var xl=Mi(0);function Sl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kl=[];function Cl(){for(var e=0;e<kl.length;e++)kl[e]._workInProgressVersionPrimary=null;kl.length=0}var El=Ie.ReactCurrentDispatcher,Ol=Ie.ReactCurrentBatchConfig,Dl=0,$l=null,jl=null,Pl=null,_l=!1,Nl=!1,Il=0,Tl=0;function Fl(){throw Error(ve(321))}function Al(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xo(e[n],t[n]))return!1;return!0}function Rl(e,t,n,r,o,i){if(Dl=i,$l=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,El.current=null===e||null===e.memoizedState?ws:xs,e=n(r,o),Nl){i=0;do{if(Nl=!1,Il=0,25<=i)throw Error(ve(301));i+=1,Pl=jl=null,t.updateQueue=null,El.current=Ss,e=n(r,o)}while(Nl)}if(El.current=ys,t=null!==jl&&null!==jl.next,Dl=0,Pl=jl=$l=null,_l=!1,t)throw Error(ve(300));return e}function Ml(){var e=0!==Il;return Il=0,e}function Ll(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Pl?$l.memoizedState=Pl=e:Pl=Pl.next=e,Pl}function zl(){if(null===jl){var e=$l.alternate;e=null!==e?e.memoizedState:null}else e=jl.next;var t=null===Pl?$l.memoizedState:Pl.next;if(null!==t)Pl=t,jl=e;else{if(null===e)throw Error(ve(310));e={memoizedState:(jl=e).memoizedState,baseState:jl.baseState,baseQueue:jl.baseQueue,queue:jl.queue,next:null},null===Pl?$l.memoizedState=Pl=e:Pl=Pl.next=e}return Pl}function Bl(e,t){return"function"==typeof t?t(e):t}function Hl(e){var t=zl(),n=t.queue;if(null===n)throw Error(ve(311));n.lastRenderedReducer=e;var r=jl,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,c=i;do{var u=c.lane;if((Dl&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,$l.lanes|=u,Yc|=u}c=c.next}while(null!==c&&c!==i);null===s?a=r:s.next=l,xo(r,t.memoizedState)||(Is=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,$l.lanes|=i,Yc|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wl(e){var t=zl(),n=t.queue;if(null===n)throw Error(ve(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);xo(i,t.memoizedState)||(Is=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ul(){}function Vl(e,t){var n=$l,r=zl(),o=t(),i=!xo(r.memoizedState,o);if(i&&(r.memoizedState=o,Is=!0),r=r.queue,rs(Xl.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Pl&&1&Pl.memoizedState.tag){if(n.flags|=2048,Jl(9,ql.bind(null,n,r,o,t),void 0,null),null===Wc)throw Error(ve(349));0!=(30&Dl)||Gl(n,t,o)}return o}function Gl(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=$l.updateQueue)?(t={lastEffect:null,stores:null},$l.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ql(e,t,n,r){t.value=n,t.getSnapshot=r,Kl(t)&&Yl(e)}function Xl(e,t,n){return n((function(){Kl(t)&&Yl(e)}))}function Kl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xo(e,n)}catch(r){return!0}}function Yl(e){var t=Wa(e,1);null!==t&&mu(t,e,1,-1)}function Ql(e){var t=Ll();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bl,lastRenderedState:e},t.queue=e,e=e.dispatch=gs.bind(null,$l,e),[t.memoizedState,e]}function Jl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=$l.updateQueue)?(t={lastEffect:null,stores:null},$l.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Zl(){return zl().memoizedState}function es(e,t,n,r){var o=Ll();$l.flags|=e,o.memoizedState=Jl(1|t,n,void 0,void 0===r?null:r)}function ts(e,t,n,r){var o=zl();r=void 0===r?null:r;var i=void 0;if(null!==jl){var a=jl.memoizedState;if(i=a.destroy,null!==r&&Al(r,a.deps))return void(o.memoizedState=Jl(t,n,i,r))}$l.flags|=e,o.memoizedState=Jl(1|t,n,i,r)}function ns(e,t){return es(8390656,8,e,t)}function rs(e,t){return ts(2048,8,e,t)}function os(e,t){return ts(4,2,e,t)}function is(e,t){return ts(4,4,e,t)}function as(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ls(e,t,n){return n=null!=n?n.concat([e]):null,ts(4,4,as.bind(null,t,e),n)}function ss(){}function cs(e,t){var n=zl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Al(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function us(e,t){var n=zl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Al(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ds(e,t,n){return 0==(21&Dl)?(e.baseState&&(e.baseState=!1,Is=!0),e.memoizedState=n):(xo(n,t)||(n=jn(),$l.lanes|=n,Yc|=n,e.baseState=!0),t)}function fs(e,t){var n=In;In=0!==n&&4>n?n:4,e(!0);var r=Ol.transition;Ol.transition={};try{e(!1),t()}finally{In=n,Ol.transition=r}}function ps(){return zl().memoizedState}function hs(e,t,n){var r=gu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ms(e))bs(t,n);else if(null!==(n=Ha(e,t,n,r))){mu(n,e,r,hu()),vs(n,t,r)}}function gs(e,t,n){var r=gu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ms(e))bs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,xo(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ba(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ha(e,t,o,r))&&(mu(n,e,r,o=hu()),vs(n,t,r))}}function ms(e){var t=e.alternate;return e===$l||null!==t&&t===$l}function bs(e,t){Nl=_l=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vs(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nn(e,n)}}var ys={readContext:La,useCallback:Fl,useContext:Fl,useEffect:Fl,useImperativeHandle:Fl,useInsertionEffect:Fl,useLayoutEffect:Fl,useMemo:Fl,useReducer:Fl,useRef:Fl,useState:Fl,useDebugValue:Fl,useDeferredValue:Fl,useTransition:Fl,useMutableSource:Fl,useSyncExternalStore:Fl,useId:Fl,unstable_isNewReconciler:!1},ws={readContext:La,useCallback:function(e,t){return Ll().memoizedState=[e,void 0===t?null:t],e},useContext:La,useEffect:ns,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,es(4194308,4,as.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){return es(4,2,e,t)},useMemo:function(e,t){var n=Ll();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ll();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hs.bind(null,$l,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ll().memoizedState=e},useState:Ql,useDebugValue:ss,useDeferredValue:function(e){return Ll().memoizedState=e},useTransition:function(){var e=Ql(!1),t=e[0];return e=fs.bind(null,e[1]),Ll().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$l,o=Ll();if(va){if(void 0===n)throw Error(ve(407));n=n()}else{if(n=t(),null===Wc)throw Error(ve(349));0!=(30&Dl)||Gl(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ns(Xl.bind(null,r,i,e),[e]),r.flags|=2048,Jl(9,ql.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ll(),t=Wc.identifierPrefix;if(va){var n=da;t=":"+t+"R"+(n=(ua&~(1<<32-wn(ua)-1)).toString(32)+n),0<(n=Il++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Tl++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xs={readContext:La,useCallback:cs,useContext:La,useEffect:rs,useImperativeHandle:ls,useInsertionEffect:os,useLayoutEffect:is,useMemo:us,useReducer:Hl,useRef:Zl,useState:function(){return Hl(Bl)},useDebugValue:ss,useDeferredValue:function(e){return ds(zl(),jl.memoizedState,e)},useTransition:function(){return[Hl(Bl)[0],zl().memoizedState]},useMutableSource:Ul,useSyncExternalStore:Vl,useId:ps,unstable_isNewReconciler:!1},Ss={readContext:La,useCallback:cs,useContext:La,useEffect:rs,useImperativeHandle:ls,useInsertionEffect:os,useLayoutEffect:is,useMemo:us,useReducer:Wl,useRef:Zl,useState:function(){return Wl(Bl)},useDebugValue:ss,useDeferredValue:function(e){var t=zl();return null===jl?t.memoizedState=e:ds(t,jl.memoizedState,e)},useTransition:function(){return[Wl(Bl)[0],zl().memoizedState]},useMutableSource:Ul,useSyncExternalStore:Vl,useId:ps,unstable_isNewReconciler:!1};function ks(e,t){try{var n="",r=t;do{n+=et(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function Cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Es(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var Os="function"==typeof WeakMap?WeakMap:Map;function Ds(e,t,n){(n=qa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ou||(ou=!0,iu=r),Es(0,t)},n}function $s(e,t,n){(n=qa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Es(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Es(0,t),"function"!=typeof r&&(null===au?au=new Set([this]):au.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function js(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Os;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Lu.bind(null,e,t,n),t.then(e,e))}function Ps(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function _s(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=qa(-1,1)).tag=2,Xa(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Ns=Ie.ReactCurrentOwner,Is=!1;function Ts(e,t,n,r){t.child=null===e?dl(t,null,n,r):ul(t,e.child,n,r)}function Fs(e,t,n,r,o){n=n.render;var i=t.ref;return Ma(t,o),r=Rl(e,t,n,r,i,o),n=Ml(),null===e||Is?(va&&n&&ha(t),t.flags|=1,Ts(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,oc(e,t,o))}function As(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Gu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Rs(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:So)(a,r)&&e.ref===t.ref)return oc(e,t,o)}return t.flags|=1,(e=qu(i,r)).ref=t.ref,e.return=t,t.child=e}function Rs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(So(i,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,oc(e,t,o);0!=(131072&e.flags)&&(Is=!0)}}return zs(e,t,n,r,o)}function Ms(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},zi(qc,Gc),Gc|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,zi(qc,Gc),Gc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,zi(qc,Gc),Gc|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,zi(qc,Gc),Gc|=r;return Ts(e,t,o,n),t.child}function Ls(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zs(e,t,n,r,o){var i=Gi(n)?Ui:Hi.current;return i=Vi(t,i),Ma(t,o),n=Rl(e,t,n,r,i,o),r=Ml(),null===e||Is?(va&&r&&ha(t),t.flags|=1,Ts(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,oc(e,t,o))}function Bs(e,t,n,r,o){if(Gi(n)){var i=!0;Yi(t)}else i=!1;if(Ma(t,o),null===t.stateNode)rc(e,t),rl(t,n,r),il(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=La(c):c=Vi(t,c=Gi(n)?Ui:Hi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&ol(t,a,r,c),Ua=!1;var f=t.memoizedState;a.state=f,Qa(t,r,a,o),s=t.memoizedState,l!==r||f!==s||Wi.current||Ua?("function"==typeof u&&(el(t,n,u,r),s=t.memoizedState),(l=Ua||nl(t,n,l,r,f,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ga(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Pa(t.type,l),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=La(s):s=Vi(t,s=Gi(n)?Ui:Hi.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&ol(t,a,r,s),Ua=!1,f=t.memoizedState,a.state=f,Qa(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Wi.current||Ua?("function"==typeof p&&(el(t,n,p,r),h=t.memoizedState),(c=Ua||nl(t,n,c,r,f,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Hs(e,t,n,r,i,o)}function Hs(e,t,n,r,o,i){Ls(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Qi(t,n,!1),oc(e,t,i);r=t.stateNode,Ns.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ul(t,e.child,null,i),t.child=ul(t,null,l,i)):Ts(e,t,l,i),t.memoizedState=r.state,o&&Qi(t,n,!0),t.child}function Ws(e){var t=e.stateNode;t.pendingContext?Xi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Xi(0,t.context,!1),bl(e,t.containerInfo)}function Us(e,t,n,r,o){return Da(),$a(o),t.flags|=256,Ts(e,t,n,r),t.child}var Vs,Gs,qs,Xs,Ks={dehydrated:null,treeContext:null,retryLane:0};function Ys(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qs(e,t,n){var r,o=t.pendingProps,i=xl.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),zi(xl,1&i),null===e)return ka(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Yu(l,o,0,null),e=Ku(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ys(n),t.memoizedState=Ks,e):Js(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Zs(e,t,a,r=Cs(Error(ve(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Yu({mode:"visible",children:r.children},o,0,null),(i=Ku(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&ul(t,e.child,null,a),t.child.memoizedState=Ys(a),t.memoizedState=Ks,i);if(0==(1&t.mode))return Zs(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Zs(e,t,a,r=Cs(i=Error(ve(419)),r,void 0))}if(l=0!=(a&e.childLanes),Is||l){if(null!==(r=Wc)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Wa(e,o),mu(r,e,o,-1))}return ju(),Zs(e,t,a,r=Cs(Error(ve(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Bu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ba=ki(o.nextSibling),ma=t,va=!0,ya=null,null!==e&&(la[sa++]=ua,la[sa++]=da,la[sa++]=ca,ua=e.id,da=e.overflow,ca=t),t=Js(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=qu(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=qu(r,a):(a=Ku(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Ys(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ks,o}return e=(a=e.child).sibling,o=qu(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Js(e,t){return(t=Yu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Zs(e,t,n,r){return null!==r&&$a(r),ul(t,e.child,null,n),(e=Js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ec(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ra(e.return,t,n)}function tc(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function nc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ts(e,t,r.children,n),0!=(2&(r=xl.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ec(e,n,t);else if(19===e.tag)ec(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(zi(xl,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Sl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Sl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tc(t,!0,n,null,i);break;case"together":tc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rc(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function oc(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Yc|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ve(153));if(null!==t.child){for(n=qu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=qu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ic(e,t){if(!va)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ac(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function lc(e,t,n){var r=t.pendingProps;switch(ga(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ac(t),null;case 1:case 17:return Gi(t.type)&&qi(),ac(t),null;case 3:return r=t.stateNode,vl(),Li(Wi),Li(Hi),Cl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ea(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ya&&(wu(ya),ya=null))),Gs(e,t),ac(t),null;case 5:wl(t);var o=ml(gl.current);if(n=t.type,null!==e&&null!=t.stateNode)qs(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ve(166));return ac(t),null}if(e=ml(pl.current),Ea(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Oi]=t,r[Di]=i,e=0!=(1&t.mode),n){case"dialog":Zo("cancel",r),Zo("close",r);break;case"iframe":case"object":case"embed":Zo("load",r);break;case"video":case"audio":for(o=0;o<Ko.length;o++)Zo(Ko[o],r);break;case"source":Zo("error",r);break;case"img":case"image":case"link":Zo("error",r),Zo("load",r);break;case"details":Zo("toggle",r);break;case"input":ct(r,i),Zo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Zo("invalid",r);break;case"textarea":bt(r,i),Zo("invalid",r)}for(var a in _t(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&fi(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&fi(r.textContent,l,e),o=["children",""+l]):we.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Zo("scroll",r)}switch(n){case"input":it(r),ft(r,i,!0);break;case"textarea":it(r),yt(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=pi)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=wt(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Oi]=t,e[Di]=r,Vs(e,t,!1,!1),t.stateNode=e;e:{switch(a=Nt(n,r),n){case"dialog":Zo("cancel",e),Zo("close",e),o=r;break;case"iframe":case"object":case"embed":Zo("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ko.length;o++)Zo(Ko[o],e);o=r;break;case"source":Zo("error",e),o=r;break;case"img":case"image":case"link":Zo("error",e),Zo("load",e),o=r;break;case"details":Zo("toggle",e),o=r;break;case"input":ct(e,r),o=st(e,r),Zo("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ye({},r,{value:void 0}),Zo("invalid",e);break;case"textarea":bt(e,r),o=mt(e,r),Zo("invalid",e)}for(i in _t(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?jt(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&Ct(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&Et(e,s):"number"==typeof s&&Et(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(we.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Zo("scroll",e):null!=s&&Ne(e,i,s,a))}switch(n){case"input":it(e),ft(e,r,!1);break;case"textarea":it(e),yt(e);break;case"option":null!=r.value&&e.setAttribute("value",""+rt(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?gt(e,!!r.multiple,i,!1):null!=r.defaultValue&>(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=pi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ac(t),null;case 6:if(e&&null!=t.stateNode)Xs(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(ve(166));if(n=ml(gl.current),ml(pl.current),Ea(t)){if(r=t.stateNode,n=t.memoizedProps,r[Oi]=t,(i=r.nodeValue!==n)&&null!==(e=ma))switch(e.tag){case 3:fi(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&fi(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Oi]=t,t.stateNode=r}return ac(t),null;case 13:if(Li(xl),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(va&&null!==ba&&0!=(1&t.mode)&&0==(128&t.flags))Oa(),Da(),t.flags|=98560,i=!1;else if(i=Ea(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(ve(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(ve(317));i[Oi]=t}else Da(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ac(t),i=!1}else null!==ya&&(wu(ya),ya=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&xl.current)?0===Xc&&(Xc=3):ju())),null!==t.updateQueue&&(t.flags|=4),ac(t),null);case 4:return vl(),Gs(e,t),null===e&&ni(t.stateNode.containerInfo),ac(t),null;case 10:return Aa(t.type._context),ac(t),null;case 19:if(Li(xl),null===(i=t.memoizedState))return ac(t),null;if(r=0!=(128&t.flags),null===(a=i.rendering))if(r)ic(i,!1);else{if(0!==Xc||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Sl(e))){for(t.flags|=128,ic(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return zi(xl,1&xl.current|2),t.child}e=e.sibling}null!==i.tail&&dn()>nu&&(t.flags|=128,r=!0,ic(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Sl(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ic(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!va)return ac(t),null}else 2*dn()-i.renderingStartTime>nu&&1073741824!==n&&(t.flags|=128,r=!0,ic(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=dn(),t.sibling=null,n=xl.current,zi(xl,r?1&n|2:1&n),t):(ac(t),null);case 22:case 23:return Eu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Gc)&&(ac(t),6&t.subtreeFlags&&(t.flags|=8192)):ac(t),null;case 24:case 25:return null}throw Error(ve(156,t.tag))}function sc(e,t){switch(ga(t),t.tag){case 1:return Gi(t.type)&&qi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vl(),Li(Wi),Li(Hi),Cl(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return wl(t),null;case 13:if(Li(xl),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ve(340));Da()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Li(xl),null;case 4:return vl(),null;case 10:return Aa(t.type._context),null;case 22:case 23:return Eu(),null;default:return null}}Vs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Gs=function(){},qs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ml(pl.current);var i,a=null;switch(n){case"input":o=st(e,o),r=st(e,r),a=[];break;case"select":o=Ye({},o,{value:void 0}),r=Ye({},r,{value:void 0}),a=[];break;case"textarea":o=mt(e,o),r=mt(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=pi)}for(c in _t(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(we.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(we.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Zo("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Xs=function(e,t,n,r){n!==r&&(t.flags|=4)};var cc=!1,uc=!1,dc="function"==typeof WeakSet?WeakSet:Set,fc=null;function pc(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Mu(e,t,r)}else n.current=null}function hc(e,t,n){try{n()}catch(r){Mu(e,t,r)}}var gc=!1;function mc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&hc(t,n,i)}o=o.next}while(o!==r)}}function bc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function yc(e){var t=e.alternate;null!==t&&(e.alternate=null,yc(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Oi],delete t[Di],delete t[ji],delete t[Pi],delete t[_i])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wc(e){return 5===e.tag||3===e.tag||4===e.tag}function xc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=pi));else if(4!==r&&null!==(e=e.child))for(Sc(e,t,n),e=e.sibling;null!==e;)Sc(e,t,n),e=e.sibling}function kc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(kc(e,t,n),e=e.sibling;null!==e;)kc(e,t,n),e=e.sibling}var Cc=null,Ec=!1;function Oc(e,t,n){for(n=n.child;null!==n;)Dc(e,t,n),n=n.sibling}function Dc(e,t,n){if(yn&&"function"==typeof yn.onCommitFiberUnmount)try{yn.onCommitFiberUnmount(vn,n)}catch(l){}switch(n.tag){case 5:uc||pc(n,t);case 6:var r=Cc,o=Ec;Cc=null,Oc(e,t,n),Ec=o,null!==(Cc=r)&&(Ec?(e=Cc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Cc.removeChild(n.stateNode));break;case 18:null!==Cc&&(Ec?(e=Cc,n=n.stateNode,8===e.nodeType?Si(e.parentNode,n):1===e.nodeType&&Si(e,n),nr(e)):Si(Cc,n.stateNode));break;case 4:r=Cc,o=Ec,Cc=n.stateNode.containerInfo,Ec=!0,Oc(e,t,n),Cc=r,Ec=o;break;case 0:case 11:case 14:case 15:if(!uc&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&hc(n,t,a),o=o.next}while(o!==r)}Oc(e,t,n);break;case 1:if(!uc&&(pc(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Mu(n,t,l)}Oc(e,t,n);break;case 21:Oc(e,t,n);break;case 22:1&n.mode?(uc=(r=uc)||null!==n.memoizedState,Oc(e,t,n),uc=r):Oc(e,t,n);break;default:Oc(e,t,n)}}function $c(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new dc),t.forEach((function(t){var r=Hu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function jc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:Cc=l.stateNode,Ec=!1;break e;case 3:case 4:Cc=l.stateNode.containerInfo,Ec=!0;break e}l=l.return}if(null===Cc)throw Error(ve(160));Dc(i,a,o),Cc=null,Ec=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(c){Mu(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Pc(t,e),t=t.sibling}function Pc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jc(t,e),_c(e),4&r){try{mc(3,e,e.return),bc(3,e)}catch(qY){Mu(e,e.return,qY)}try{mc(5,e,e.return)}catch(qY){Mu(e,e.return,qY)}}break;case 1:jc(t,e),_c(e),512&r&&null!==n&&pc(n,n.return);break;case 5:if(jc(t,e),_c(e),512&r&&null!==n&&pc(n,n.return),32&e.flags){var o=e.stateNode;try{Et(o,"")}catch(qY){Mu(e,e.return,qY)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&ut(o,i),Nt(l,a);var c=Nt(l,i);for(a=0;a<s.length;a+=2){var u=s[a],d=s[a+1];"style"===u?jt(o,d):"dangerouslySetInnerHTML"===u?Ct(o,d):"children"===u?Et(o,d):Ne(o,u,d,c)}switch(l){case"input":dt(o,i);break;case"textarea":vt(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?gt(o,!!i.multiple,p,!1):f!==!!i.multiple&&(null!=i.defaultValue?gt(o,!!i.multiple,i.defaultValue,!0):gt(o,!!i.multiple,i.multiple?[]:"",!1))}o[Di]=i}catch(qY){Mu(e,e.return,qY)}}break;case 6:if(jc(t,e),_c(e),4&r){if(null===e.stateNode)throw Error(ve(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(qY){Mu(e,e.return,qY)}}break;case 3:if(jc(t,e),_c(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{nr(t.containerInfo)}catch(qY){Mu(e,e.return,qY)}break;case 4:default:jc(t,e),_c(e);break;case 13:jc(t,e),_c(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(tu=dn())),4&r&&$c(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(uc=(c=uc)||u,jc(t,e),uc=c):jc(t,e),_c(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(fc=e,u=e.child;null!==u;){for(d=fc=u;null!==fc;){switch(p=(f=fc).child,f.tag){case 0:case 11:case 14:case 15:mc(4,f,f.return);break;case 1:pc(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(qY){Mu(r,n,qY)}}break;case 5:pc(f,f.return);break;case 22:if(null!==f.memoizedState){Fc(d);continue}}null!==p?(p.return=f,fc=p):Fc(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=$t("display",a))}catch(qY){Mu(e,e.return,qY)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(qY){Mu(e,e.return,qY)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:jc(t,e),_c(e),4&r&&$c(e);case 21:}}function _c(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(wc(n)){var r=n;break e}n=n.return}throw Error(ve(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Et(o,""),r.flags&=-33),kc(e,xc(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Sc(e,xc(e),i);break;default:throw Error(ve(161))}}catch(a){Mu(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Nc(e,t,n){fc=e,Ic(e)}function Ic(e,t,n){for(var r=0!=(1&e.mode);null!==fc;){var o=fc,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||cc;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||uc;l=cc;var c=uc;if(cc=a,(uc=s)&&!c)for(fc=o;null!==fc;)s=(a=fc).child,22===a.tag&&null!==a.memoizedState?Ac(o):null!==s?(s.return=a,fc=s):Ac(o);for(;null!==i;)fc=i,Ic(i),i=i.sibling;fc=o,cc=l,uc=c}Tc(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,fc=i):Tc(e)}}function Tc(e){for(;null!==fc;){var t=fc;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:uc||bc(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!uc)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Pa(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ja(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ja(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&nr(d)}}}break;default:throw Error(ve(163))}uc||512&t.flags&&vc(t)}catch(f){Mu(t,t.return,f)}}if(t===e){fc=null;break}if(null!==(n=t.sibling)){n.return=t.return,fc=n;break}fc=t.return}}function Fc(e){for(;null!==fc;){var t=fc;if(t===e){fc=null;break}var n=t.sibling;if(null!==n){n.return=t.return,fc=n;break}fc=t.return}}function Ac(e){for(;null!==fc;){var t=fc;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bc(4,t)}catch(s){Mu(t,n,s)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(s){Mu(t,o,s)}}var i=t.return;try{vc(t)}catch(s){Mu(t,i,s)}break;case 5:var a=t.return;try{vc(t)}catch(s){Mu(t,a,s)}}}catch(s){Mu(t,t.return,s)}if(t===e){fc=null;break}var l=t.sibling;if(null!==l){l.return=t.return,fc=l;break}fc=t.return}}var Rc,Mc=Math.ceil,Lc=Ie.ReactCurrentDispatcher,zc=Ie.ReactCurrentOwner,Bc=Ie.ReactCurrentBatchConfig,Hc=0,Wc=null,Uc=null,Vc=0,Gc=0,qc=Mi(0),Xc=0,Kc=null,Yc=0,Qc=0,Jc=0,Zc=null,eu=null,tu=0,nu=1/0,ru=null,ou=!1,iu=null,au=null,lu=!1,su=null,cu=0,uu=0,du=null,fu=-1,pu=0;function hu(){return 0!=(6&Hc)?dn():-1!==fu?fu:fu=dn()}function gu(e){return 0==(1&e.mode)?1:0!=(2&Hc)&&0!==Vc?Vc&-Vc:null!==ja.transition?(0===pu&&(pu=jn()),pu):0!==(e=In)?e:e=void 0===(e=window.event)?16:ur(e.type)}function mu(e,t,n,r){if(50<uu)throw uu=0,du=null,Error(ve(185));_n(e,n,r),0!=(2&Hc)&&e===Wc||(e===Wc&&(0==(2&Hc)&&(Qc|=n),4===Xc&&xu(e,Vc)),bu(e,r),1===n&&0===Hc&&0==(1&t.mode)&&(nu=dn()+500,Zi&&na()))}function bu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-wn(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=Dn(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=On(e,e===Wc?Vc:0);if(0===r)null!==n&&sn(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&sn(n),1===t)0===e.tag?function(e){Zi=!0,ta(e)}(Su.bind(null,e)):ta(Su.bind(null,e)),wi((function(){0==(6&Hc)&&na()})),n=null;else{switch(Tn(r)){case 1:n=pn;break;case 4:n=hn;break;case 16:default:n=gn;break;case 536870912:n=bn}n=Wu(n,vu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function vu(e,t){if(fu=-1,pu=0,0!=(6&Hc))throw Error(ve(327));var n=e.callbackNode;if(Au()&&e.callbackNode!==n)return null;var r=On(e,e===Wc?Vc:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Pu(e,r);else{t=r;var o=Hc;Hc|=2;var i=$u();for(Wc===e&&Vc===t||(ru=null,nu=dn()+500,Ou(e,t));;)try{Nu();break}catch(l){Du(e,l)}Fa(),Lc.current=i,Hc=o,null!==Uc?t=0:(Wc=null,Vc=0,t=Xc)}if(0!==t){if(2===t&&(0!==(o=$n(e))&&(r=o,t=yu(e,o))),1===t)throw n=Kc,Ou(e,0),xu(e,r),bu(e,dn()),n;if(6===t)xu(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!xo(i(),o))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Pu(e,r))&&(0!==(i=$n(e))&&(r=i,t=yu(e,i))),1===t))throw n=Kc,Ou(e,0),xu(e,r),bu(e,dn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ve(345));case 2:case 5:Fu(e,eu,ru);break;case 3:if(xu(e,r),(130023424&r)===r&&10<(t=tu+500-dn())){if(0!==On(e,0))break;if(((o=e.suspendedLanes)&r)!==r){hu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=bi(Fu.bind(null,e,eu,ru),t);break}Fu(e,eu,ru);break;case 4:if(xu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-wn(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=dn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mc(r/1960))-r)){e.timeoutHandle=bi(Fu.bind(null,e,eu,ru),r);break}Fu(e,eu,ru);break;default:throw Error(ve(329))}}}return bu(e,dn()),e.callbackNode===n?vu.bind(null,e):null}function yu(e,t){var n=Zc;return e.current.memoizedState.isDehydrated&&(Ou(e,t).flags|=256),2!==(e=Pu(e,t))&&(t=eu,eu=n,null!==t&&wu(t)),e}function wu(e){null===eu?eu=e:eu.push.apply(eu,e)}function xu(e,t){for(t&=~Jc,t&=~Qc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wn(t),r=1<<n;e[n]=-1,t&=~r}}function Su(e){if(0!=(6&Hc))throw Error(ve(327));Au();var t=On(e,0);if(0==(1&t))return bu(e,dn()),null;var n=Pu(e,t);if(0!==e.tag&&2===n){var r=$n(e);0!==r&&(t=r,n=yu(e,r))}if(1===n)throw n=Kc,Ou(e,0),xu(e,t),bu(e,dn()),n;if(6===n)throw Error(ve(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fu(e,eu,ru),bu(e,dn()),null}function ku(e,t){var n=Hc;Hc|=1;try{return e(t)}finally{0===(Hc=n)&&(nu=dn()+500,Zi&&na())}}function Cu(e){null!==su&&0===su.tag&&0==(6&Hc)&&Au();var t=Hc;Hc|=1;var n=Bc.transition,r=In;try{if(Bc.transition=null,In=1,e)return e()}finally{In=r,Bc.transition=n,0==(6&(Hc=t))&&na()}}function Eu(){Gc=qc.current,Li(qc)}function Ou(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,vi(n)),null!==Uc)for(n=Uc.return;null!==n;){var r=n;switch(ga(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&qi();break;case 3:vl(),Li(Wi),Li(Hi),Cl();break;case 5:wl(r);break;case 4:vl();break;case 13:case 19:Li(xl);break;case 10:Aa(r.type._context);break;case 22:case 23:Eu()}n=n.return}if(Wc=e,Uc=e=qu(e.current,null),Vc=Gc=t,Xc=0,Kc=null,Jc=Qc=Yc=0,eu=Zc=null,null!==za){for(t=0;t<za.length;t++)if(null!==(r=(n=za[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}za=null}return e}function Du(e,t){for(;;){var n=Uc;try{if(Fa(),El.current=ys,_l){for(var r=$l.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}_l=!1}if(Dl=0,Pl=jl=$l=null,Nl=!1,Il=0,zc.current=null,null===n||null===n.return){Xc=1,Kc=t,Uc=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Vc,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,u=l,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=Ps(a);if(null!==p){p.flags&=-257,_s(p,a,l,0,t),1&p.mode&&js(i,c,t),s=c;var h=(t=p).updateQueue;if(null===h){var g=new Set;g.add(s),t.updateQueue=g}else h.add(s);break e}if(0==(1&t)){js(i,c,t),ju();break e}s=Error(ve(426))}else if(va&&1&l.mode){var m=Ps(a);if(null!==m){0==(65536&m.flags)&&(m.flags|=256),_s(m,a,l,0,t),$a(ks(s,l));break e}}i=s=ks(s,l),4!==Xc&&(Xc=2),null===Zc?Zc=[i]:Zc.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ya(i,Ds(0,s,t));break e;case 1:l=s;var b=i.type,v=i.stateNode;if(0==(128&i.flags)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===au||!au.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Ya(i,$s(i,l,t));break e}}i=i.return}while(null!==i)}Tu(n)}catch(y){t=y,Uc===n&&null!==n&&(Uc=n=n.return);continue}break}}function $u(){var e=Lc.current;return Lc.current=ys,null===e?ys:e}function ju(){0!==Xc&&3!==Xc&&2!==Xc||(Xc=4),null===Wc||0==(268435455&Yc)&&0==(268435455&Qc)||xu(Wc,Vc)}function Pu(e,t){var n=Hc;Hc|=2;var r=$u();for(Wc===e&&Vc===t||(ru=null,Ou(e,t));;)try{_u();break}catch(GY){Du(e,GY)}if(Fa(),Hc=n,Lc.current=r,null!==Uc)throw Error(ve(261));return Wc=null,Vc=0,Xc}function _u(){for(;null!==Uc;)Iu(Uc)}function Nu(){for(;null!==Uc&&!cn();)Iu(Uc)}function Iu(e){var t=Rc(e.alternate,e,Gc);e.memoizedProps=e.pendingProps,null===t?Tu(e):Uc=t,zc.current=null}function Tu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=lc(n,t,Gc)))return void(Uc=n)}else{if(null!==(n=sc(n,t)))return n.flags&=32767,void(Uc=n);if(null===e)return Xc=6,void(Uc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Uc=t);Uc=t=e}while(null!==t);0===Xc&&(Xc=5)}function Fu(e,t,n){var r=In,o=Bc.transition;try{Bc.transition=null,In=1,function(e,t,n,r){do{Au()}while(null!==su);if(0!=(6&Hc))throw Error(ve(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ve(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-wn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Wc&&(Uc=Wc=null,Vc=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||lu||(lu=!0,Wu(gn,(function(){return Au(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Bc.transition,Bc.transition=null;var a=In;In=1;var l=Hc;Hc|=4,zc.current=null,function(e,t){if(hi=or,Do(e=Oo())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var a=0,l=-1,s=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===o&&(l=a),f===i&&++u===r&&(s=a),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(gi={focusedElem:e,selectionRange:n},or=!1,fc=t;null!==fc;)if(e=(t=fc).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,fc=e;else for(;null!==fc;){t=fc;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,m=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:Pa(t.type,g),m);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(ve(163))}}catch(w){Mu(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,fc=e;break}fc=t.return}h=gc,gc=!1}(e,n),Pc(n,e),$o(gi),or=!!hi,gi=hi=null,e.current=n,Nc(n),un(),Hc=l,In=a,Bc.transition=i}else e.current=n;if(lu&&(lu=!1,su=e,cu=o),i=e.pendingLanes,0===i&&(au=null),function(e){if(yn&&"function"==typeof yn.onCommitFiberRoot)try{yn.onCommitFiberRoot(vn,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),bu(e,dn()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ou)throw ou=!1,e=iu,iu=null,e;0!=(1&cu)&&0!==e.tag&&Au(),i=e.pendingLanes,0!=(1&i)?e===du?uu++:(uu=0,du=e):uu=0,na()}(e,t,n,r)}finally{Bc.transition=o,In=r}return null}function Au(){if(null!==su){var e=Tn(cu),t=Bc.transition,n=In;try{if(Bc.transition=null,In=16>e?16:e,null===su)var r=!1;else{if(e=su,su=null,cu=0,0!=(6&Hc))throw Error(ve(331));var o=Hc;for(Hc|=4,fc=e.current;null!==fc;){var i=fc,a=i.child;if(0!=(16&fc.flags)){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(fc=c;null!==fc;){var u=fc;switch(u.tag){case 0:case 11:case 15:mc(8,u,i)}var d=u.child;if(null!==d)d.return=u,fc=d;else for(;null!==fc;){var f=(u=fc).sibling,p=u.return;if(yc(u),u===c){fc=null;break}if(null!==f){f.return=p,fc=f;break}fc=p}}}var h=i.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}fc=i}}if(0!=(2064&i.subtreeFlags)&&null!==a)a.return=i,fc=a;else e:for(;null!==fc;){if(0!=(2048&(i=fc).flags))switch(i.tag){case 0:case 11:case 15:mc(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,fc=b;break e}fc=i.return}}var v=e.current;for(fc=v;null!==fc;){var y=(a=fc).child;if(0!=(2064&a.subtreeFlags)&&null!==y)y.return=a,fc=y;else e:for(a=v;null!==fc;){if(0!=(2048&(l=fc).flags))try{switch(l.tag){case 0:case 11:case 15:bc(9,l)}}catch(x){Mu(l,l.return,x)}if(l===a){fc=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,fc=w;break e}fc=l.return}}if(Hc=o,na(),yn&&"function"==typeof yn.onPostCommitFiberRoot)try{yn.onPostCommitFiberRoot(vn,e)}catch(x){}r=!0}return r}finally{In=n,Bc.transition=t}}return!1}function Ru(e,t,n){e=Xa(e,t=Ds(0,t=ks(n,t),1),1),t=hu(),null!==e&&(_n(e,1,t),bu(e,t))}function Mu(e,t,n){if(3===e.tag)Ru(e,e,n);else for(;null!==t;){if(3===t.tag){Ru(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===au||!au.has(r))){t=Xa(t,e=$s(t,e=ks(n,e),1),1),e=hu(),null!==t&&(_n(t,1,e),bu(t,e));break}}t=t.return}}function Lu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=hu(),e.pingedLanes|=e.suspendedLanes&n,Wc===e&&(Vc&n)===n&&(4===Xc||3===Xc&&(130023424&Vc)===Vc&&500>dn()-tu?Ou(e,0):Jc|=n),bu(e,t)}function zu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Cn,0==(130023424&(Cn<<=1))&&(Cn=4194304)));var n=hu();null!==(e=Wa(e,t))&&(_n(e,t,n),bu(e,n))}function Bu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),zu(e,n)}function Hu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ve(314))}null!==r&&r.delete(t),zu(e,n)}function Wu(e,t){return ln(e,t)}function Uu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vu(e,t,n,r){return new Uu(e,t,n,r)}function Gu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function qu(e,t){var n=e.alternate;return null===n?((n=Vu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xu(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Gu(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Ae:return Ku(n.children,o,i,t);case Re:a=8,o|=8;break;case Me:return(e=Vu(12,n,t,2|o)).elementType=Me,e.lanes=i,e;case He:return(e=Vu(13,n,t,o)).elementType=He,e.lanes=i,e;case We:return(e=Vu(19,n,t,o)).elementType=We,e.lanes=i,e;case Ge:return Yu(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Le:a=10;break e;case ze:a=9;break e;case Be:a=11;break e;case Ue:a=14;break e;case Ve:a=16,r=null;break e}throw Error(ve(130,null==e?e:typeof e,""))}return(t=Vu(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ku(e,t,n,r){return(e=Vu(7,e,r,t)).lanes=n,e}function Yu(e,t,n,r){return(e=Vu(22,e,r,t)).elementType=Ge,e.lanes=n,e.stateNode={isHidden:!1},e}function Qu(e,t,n){return(e=Vu(6,e,null,t)).lanes=n,e}function Ju(e,t,n){return(t=Vu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pn(0),this.expirationTimes=Pn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ed(e,t,n,r,o,i,a,l,s){return e=new Zu(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Vu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Va(i),e}function td(e){if(!e)return Bi;e:{if(tn(e=e._reactInternals)!==e||1!==e.tag)throw Error(ve(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Gi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ve(171))}if(1===e.tag){var n=e.type;if(Gi(n))return Ki(e,n,t)}return t}function nd(e,t,n,r,o,i,a,l,s){return(e=ed(n,r,!0,e,0,i,0,l,s)).context=td(null),n=e.current,(i=qa(r=hu(),o=gu(n))).callback=null!=t?t:null,Xa(n,i,o),e.current.lanes=o,_n(e,o,r),bu(e,r),e}function rd(e,t,n,r){var o=t.current,i=hu(),a=gu(o);return n=td(n),null===t.context?t.context=n:t.pendingContext=n,(t=qa(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Xa(o,t,a))&&(mu(e,o,a,i),Ka(e,o,a)),a}function od(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function id(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ad(e,t){id(e,t),(e=e.alternate)&&id(e,t)}Rc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Wi.current)Is=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Is=!1,function(e,t,n){switch(t.tag){case 3:Ws(t),Da();break;case 5:yl(t);break;case 1:Gi(t.type)&&Yi(t);break;case 4:bl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;zi(_a,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(zi(xl,1&xl.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Qs(e,t,n):(zi(xl,1&xl.current),null!==(e=oc(e,t,n))?e.sibling:null);zi(xl,1&xl.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return nc(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),zi(xl,xl.current),r)break;return null;case 22:case 23:return t.lanes=0,Ms(e,t,n)}return oc(e,t,n)}(e,t,n);Is=0!=(131072&e.flags)}else Is=!1,va&&0!=(1048576&t.flags)&&pa(t,aa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rc(e,t),e=t.pendingProps;var o=Vi(t,Hi.current);Ma(t,n),o=Rl(null,t,r,e,o,n);var i=Ml();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Gi(r)?(i=!0,Yi(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Va(t),o.updater=tl,t.stateNode=o,o._reactInternals=t,il(t,r,e,n),t=Hs(null,t,r,!0,i,n)):(t.tag=0,va&&i&&ha(t),Ts(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rc(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Gu(e)?1:0;if(null!=e){if((e=e.$$typeof)===Be)return 11;if(e===Ue)return 14}return 2}(r),e=Pa(r,e),o){case 0:t=zs(null,t,r,e,n);break e;case 1:t=Bs(null,t,r,e,n);break e;case 11:t=Fs(null,t,r,e,n);break e;case 14:t=As(null,t,r,Pa(r.type,e),n);break e}throw Error(ve(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,zs(e,t,r,o=t.elementType===r?o:Pa(r,o),n);case 1:return r=t.type,o=t.pendingProps,Bs(e,t,r,o=t.elementType===r?o:Pa(r,o),n);case 3:e:{if(Ws(t),null===e)throw Error(ve(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ga(e,t),Qa(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Us(e,t,r,n,o=ks(Error(ve(423)),t));break e}if(r!==o){t=Us(e,t,r,n,o=ks(Error(ve(424)),t));break e}for(ba=ki(t.stateNode.containerInfo.firstChild),ma=t,va=!0,ya=null,n=dl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Da(),r===o){t=oc(e,t,n);break e}Ts(e,t,r,n)}t=t.child}return t;case 5:return yl(t),null===e&&ka(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,mi(r,o)?a=null:null!==i&&mi(r,i)&&(t.flags|=32),Ls(e,t),Ts(e,t,a,n),t.child;case 6:return null===e&&ka(t),null;case 13:return Qs(e,t,n);case 4:return bl(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ul(t,null,r,n):Ts(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Fs(e,t,r,o=t.elementType===r?o:Pa(r,o),n);case 7:return Ts(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ts(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,zi(_a,r._currentValue),r._currentValue=a,null!==i)if(xo(i.value,a)){if(i.children===o.children&&!Wi.current){t=oc(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=qa(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Ra(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(ve(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ra(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Ts(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ma(t,n),r=r(o=La(o)),t.flags|=1,Ts(e,t,r,n),t.child;case 14:return o=Pa(r=t.type,t.pendingProps),As(e,t,r,o=Pa(r.type,o),n);case 15:return Rs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pa(r,o),rc(e,t),t.tag=1,Gi(r)?(e=!0,Yi(t)):e=!1,Ma(t,n),rl(t,r,o),il(t,r,o,n),Hs(null,t,r,!0,e,n);case 19:return nc(e,t,n);case 22:return Ms(e,t,n)}throw Error(ve(156,t.tag))};var ld="function"==typeof reportError?reportError:function(e){console.error(e)};function sd(e){this._internalRoot=e}function cd(e){this._internalRoot=e}function ud(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function dd(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function fd(){}function pd(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=od(a);l.call(e)}}rd(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=od(a);i.call(e)}}var a=nd(t,r,e,0,null,!1,0,"",fd);return e._reactRootContainer=a,e[$i]=a.current,ni(8===e.nodeType?e.parentNode:e),Cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=od(s);l.call(e)}}var s=ed(e,0,!1,null,0,!1,0,"",fd);return e._reactRootContainer=s,e[$i]=s.current,ni(8===e.nodeType?e.parentNode:e),Cu((function(){rd(t,s,n,r)})),s}(n,t,e,o,r);return od(a)}cd.prototype.render=sd.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ve(409));rd(e,t,null,null)},cd.prototype.unmount=sd.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Cu((function(){rd(null,e,null,null)})),t[$i]=null}},cd.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qn.length&&0!==t&&t<qn[n].priority;n++);qn.splice(n,0,e),0===n&&Qn(e)}},Fn=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=En(t.pendingLanes);0!==n&&(Nn(t,1|n),bu(t,dn()),0==(6&Hc)&&(nu=dn()+500,na()))}break;case 13:Cu((function(){var t=Wa(e,1);if(null!==t){var n=hu();mu(t,e,1,n)}})),ad(e,1)}},An=function(e){if(13===e.tag){var t=Wa(e,134217728);if(null!==t)mu(t,e,134217728,hu());ad(e,134217728)}},Rn=function(e){if(13===e.tag){var t=gu(e),n=Wa(e,t);if(null!==n)mu(n,e,t,hu());ad(e,t)}},Mn=function(){return In},Ln=function(e,t){var n=In;try{return In=e,t()}finally{In=n}},Ft=function(e,t,n){switch(t){case"input":if(dt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Fi(r);if(!o)throw Error(ve(90));at(r),dt(r,o)}}}break;case"textarea":vt(e,n);break;case"select":null!=(t=n.value)&>(e,!!n.multiple,t,!1)}},Bt=ku,Ht=Cu;var hd={usingClientEntryPoint:!1,Events:[Ii,Ti,Fi,Lt,zt,ku]},gd={findFiberByHostInstance:Ni,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},md={bundleType:gd.bundleType,version:gd.version,rendererPackageName:gd.rendererPackageName,rendererConfig:gd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ie.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=on(e))?null:e.stateNode},findFiberByHostInstance:gd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var bd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bd.isDisabled&&bd.supportsFiber)try{vn=bd.inject(md),yn=bd}catch(kt){}}fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hd,fe.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ud(t))throw Error(ve(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Fe,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},fe.createRoot=function(e,t){if(!ud(e))throw Error(ve(299));var n=!1,r="",o=ld;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=ed(e,1,!1,null,0,n,0,r,o),e[$i]=t.current,ni(8===e.nodeType?e.parentNode:e),new sd(t)},fe.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(ve(188));throw e=Object.keys(e).join(","),Error(ve(268,e))}return e=null===(e=on(t))?null:e.stateNode},fe.flushSync=function(e){return Cu(e)},fe.hydrate=function(e,t,n){if(!dd(t))throw Error(ve(200));return pd(null,e,t,!0,n)},fe.hydrateRoot=function(e,t,n){if(!ud(e))throw Error(ve(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=ld;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=nd(t,null,e,1,null!=n?n:null,o,0,i,a),e[$i]=t.current,ni(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new cd(t)},fe.render=function(e,t,n){if(!dd(t))throw Error(ve(200));return pd(null,e,t,!1,n)},fe.unmountComponentAtNode=function(e){if(!dd(e))throw Error(ve(40));return!!e._reactRootContainer&&(Cu((function(){pd(null,null,e,!1,(function(){e._reactRootContainer=null,e[$i]=null}))})),!0)},fe.unstable_batchedUpdates=ku,fe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!dd(n))throw Error(ve(200));if(null==e||void 0===e._reactInternals)throw Error(ve(38));return pd(e,t,n,!1,r)},fe.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),de.exports=fe;var vd=de.exports;const yd=n(vd),wd=e({__proto__:null,default:yd},[vd]);var xd,Sd=vd;function kd(e){return(kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cd(e){var t=function(e,t){if("object"!==kd(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kd(t)?t:String(t)}function Ed(e,t,n){return(t=Cd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Od(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}
|
||
/**
|
||
* @license lucide-react v0.293.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/xd=Sd.createRoot,Sd.hydrateRoot;var Dd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
||
/**
|
||
* @license lucide-react v0.293.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $d=(e,t)=>{const n=B.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:a="",children:l,...s},c)=>{return B.createElement("svg",{ref:c,...Dd,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,a].join(" "),...s},[...t.map((([e,t])=>B.createElement(e,t))),...(Array.isArray(l)?l:[l])||[]]);var u}));return n.displayName=`${e}`,n},jd=$d("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Pd=$d("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),_d=$d("Brush",[["path",{d:"m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08",key:"1styjt"}],["path",{d:"M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z",key:"z0l1mu"}]]),Nd=$d("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),Id=$d("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Td=$d("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Fd=$d("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Ad=$d("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Rd=$d("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Md=$d("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Ld=$d("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),zd=$d("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]),Bd=$d("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]),Hd=$d("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),Wd=$d("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),Ud=$d("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Vd=$d("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),Gd=$d("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),qd=$d("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Xd=$d("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),Kd=$d("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),Yd=$d("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),Qd=$d("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),Jd=$d("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),Zd=$d("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),ef=$d("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),tf=$d("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}]]),nf=$d("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),rf=$d("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),of=$d("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]),af=$d("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),lf=$d("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),sf=$d("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),cf=$d("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),uf=$d("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),df=$d("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ff=$d("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),pf=$d("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function hf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function gf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cd(r.key),r)}}function bf(e,t,n){return t&&mf(e.prototype,t),n&&mf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var vf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(GY){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),yf="-ms-",wf="-moz-",xf="-webkit-",Sf="comm",kf="rule",Cf="decl",Ef="@keyframes",Of=Math.abs,Df=String.fromCharCode,$f=Object.assign;function jf(e){return e.trim()}function Pf(e,t,n){return e.replace(t,n)}function _f(e,t){return e.indexOf(t)}function Nf(e,t){return 0|e.charCodeAt(t)}function If(e,t,n){return e.slice(t,n)}function Tf(e){return e.length}function Ff(e){return e.length}function Af(e,t){return t.push(e),e}var Rf=1,Mf=1,Lf=0,zf=0,Bf=0,Hf="";function Wf(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Rf,column:Mf,length:a,return:""}}function Uf(e,t){return $f(Wf("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vf(){return Bf=zf<Lf?Nf(Hf,zf++):0,Mf++,10===Bf&&(Mf=1,Rf++),Bf}function Gf(){return Nf(Hf,zf)}function qf(){return zf}function Xf(e,t){return If(Hf,e,t)}function Kf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yf(e){return Rf=Mf=1,Lf=Tf(Hf=e),zf=0,[]}function Qf(e){return Hf="",e}function Jf(e){return jf(Xf(zf-1,tp(91===e?e+2:40===e?e+1:e)))}function Zf(e){for(;(Bf=Gf())&&Bf<33;)Vf();return Kf(e)>2||Kf(Bf)>3?"":" "}function ep(e,t){for(;--t&&Vf()&&!(Bf<48||Bf>102||Bf>57&&Bf<65||Bf>70&&Bf<97););return Xf(e,qf()+(t<6&&32==Gf()&&32==Vf()))}function tp(e){for(;Vf();)switch(Bf){case e:return zf;case 34:case 39:34!==e&&39!==e&&tp(Bf);break;case 40:41===e&&tp(e);break;case 92:Vf()}return zf}function np(e,t){for(;Vf()&&e+Bf!==57&&(e+Bf!==84||47!==Gf()););return"/*"+Xf(t,zf-1)+"*"+Df(47===e?e:Vf())}function rp(e){for(;!Kf(Gf());)Vf();return Xf(e,zf)}function op(e){return Qf(ip("",null,null,null,[""],e=Yf(e),0,[0],e))}function ip(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=i,S=r,k=y;m;)switch(h=v,v=Vf()){case 40:if(108!=h&&58==Nf(k,d-1)){-1!=_f(k+=Pf(Jf(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=Jf(v);break;case 9:case 10:case 13:case 32:k+=Zf(h);break;case 92:k+=ep(qf()-1,7);continue;case 47:switch(Gf()){case 42:case 47:Af(lp(np(Vf(),qf()),t,n),s);break;default:k+="/"}break;case 123*g:l[c++]=Tf(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=Pf(k,/\f/g,"")),p>0&&Tf(k)-d&&Af(p>32?sp(k+";",r,n,d-1):sp(Pf(k," ","")+";",r,n,d-2),s);break;case 59:k+=";";default:if(Af(S=ap(k,t,n,c,u,o,l,y,w=[],x=[],d),i),123===v)if(0===u)ip(k,t,S,S,w,i,d,l,x);else switch(99===f&&110===Nf(k,3)?100:f){case 100:case 108:case 109:case 115:ip(e,S,S,r&&Af(ap(e,S,S,0,0,o,l,y,o,w=[],d),x),o,x,d,l,r?w:x);break;default:ip(k,S,S,S,[""],x,0,l,x)}}c=u=p=0,g=b=1,y=k="",d=a;break;case 58:d=1+Tf(k),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(Bf=zf>0?Nf(Hf,--zf):0,Mf--,10===Bf&&(Mf=1,Rf--),Bf))continue;switch(k+=Df(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:l[c++]=(Tf(k)-1)*b,b=1;break;case 64:45===Gf()&&(k+=Jf(Vf())),f=Gf(),u=d=Tf(y=k+=rp(qf())),v++;break;case 45:45===h&&2==Tf(k)&&(g=0)}}return i}function ap(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,f=0===o?i:[""],p=Ff(f),h=0,g=0,m=0;h<r;++h)for(var b=0,v=If(e,d+1,d=Of(g=a[h])),y=e;b<p;++b)(y=jf(g>0?f[b]+" "+v:Pf(v,/&\f/g,f[b])))&&(s[m++]=y);return Wf(e,t,n,0===o?kf:l,s,c,u)}function lp(e,t,n){return Wf(e,t,n,Sf,Df(Bf),If(e,2,-2),0)}function sp(e,t,n,r){return Wf(e,t,n,Cf,If(e,0,r),If(e,r+1,-1),r)}function cp(e,t){for(var n="",r=Ff(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function up(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Cf:return e.return=e.return||e.value;case Sf:return"";case Ef:return e.return=e.value+"{"+cp(e.children,r)+"}";case kf:e.value=e.props.join(",")}return Tf(n=cp(e.children,r))?e.return=e.value+"{"+n+"}":""}var dp=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function fp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pp=function(e,t,n){for(var r=0,o=0;r=o,o=Gf(),38===r&&12===o&&(t[n]=1),!Kf(o);)Vf();return Xf(e,zf)},hp=function(e,t){return Qf(function(e,t){var n=-1,r=44;do{switch(Kf(r)){case 0:38===r&&12===Gf()&&(t[n]=1),e[n]+=pp(zf-1,t,n);break;case 2:e[n]+=Jf(r);break;case 4:if(44===r){e[++n]=58===Gf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Df(r)}}while(r=Vf());return e}(Yf(e),t))},gp=new WeakMap,mp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||gp.get(n))&&!r){gp.set(e,!0);for(var o=[],i=hp(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},bp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function vp(e,t){switch(function(e,t){return 45^Nf(e,0)?(((t<<2^Nf(e,0))<<2^Nf(e,1))<<2^Nf(e,2))<<2^Nf(e,3):0}(e,t)){case 5103:return xf+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xf+e+wf+e+yf+e+e;case 6828:case 4268:return xf+e+yf+e+e;case 6165:return xf+e+yf+"flex-"+e+e;case 5187:return xf+e+Pf(e,/(\w+).+(:[^]+)/,xf+"box-$1$2"+yf+"flex-$1$2")+e;case 5443:return xf+e+yf+"flex-item-"+Pf(e,/flex-|-self/,"")+e;case 4675:return xf+e+yf+"flex-line-pack"+Pf(e,/align-content|flex-|-self/,"")+e;case 5548:return xf+e+yf+Pf(e,"shrink","negative")+e;case 5292:return xf+e+yf+Pf(e,"basis","preferred-size")+e;case 6060:return xf+"box-"+Pf(e,"-grow","")+xf+e+yf+Pf(e,"grow","positive")+e;case 4554:return xf+Pf(e,/([^-])(transform)/g,"$1"+xf+"$2")+e;case 6187:return Pf(Pf(Pf(e,/(zoom-|grab)/,xf+"$1"),/(image-set)/,xf+"$1"),e,"")+e;case 5495:case 3959:return Pf(e,/(image-set\([^]*)/,xf+"$1$`$1");case 4968:return Pf(Pf(e,/(.+:)(flex-)?(.*)/,xf+"box-pack:$3"+yf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xf+e+e;case 4095:case 3583:case 4068:case 2532:return Pf(e,/(.+)-inline(.+)/,xf+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tf(e)-1-t>6)switch(Nf(e,t+1)){case 109:if(45!==Nf(e,t+4))break;case 102:return Pf(e,/(.+:)(.+)-([^]+)/,"$1"+xf+"$2-$3$1"+wf+(108==Nf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_f(e,"stretch")?vp(Pf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Nf(e,t+1))break;case 6444:switch(Nf(e,Tf(e)-3-(~_f(e,"!important")&&10))){case 107:return Pf(e,":",":"+xf)+e;case 101:return Pf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xf+(45===Nf(e,14)?"inline-":"")+"box$3$1"+xf+"$2$3$1"+yf+"$2box$3")+e}break;case 5936:switch(Nf(e,t+11)){case 114:return xf+e+yf+Pf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xf+e+yf+Pf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xf+e+yf+Pf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xf+e+yf+e+e}return e}var yp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Cf:e.return=vp(e.value,e.length);break;case Ef:return cp([Uf(e,{value:Pf(e.value,"@","@"+xf)})],r);case kf:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cp([Uf(e,{props:[Pf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cp([Uf(e,{props:[Pf(t,/:(plac\w+)/,":"+xf+"input-$1")]}),Uf(e,{props:[Pf(t,/:(plac\w+)/,":-moz-$1")]}),Uf(e,{props:[Pf(t,/:(plac\w+)/,yf+"input-$1")]})],r)}return""}))}}],wp=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||yp,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var s,c,u,d,f=[up,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[mp,bp].concat(i,f),u=Ff(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,cp(op(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new vf({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(l),h};var xp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Sp=/[A-Z]|^ms/g,kp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cp=function(e){return 45===e.charCodeAt(1)},Ep=function(e){return null!=e&&"boolean"!=typeof e},Op=fp((function(e){return Cp(e)?e:e.replace(Sp,"-$&").toLowerCase()})),Dp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kp,(function(e,t,n){return jp={name:t,styles:n,next:jp},t}))}return 1===xp[e]||Cp(e)||"number"!=typeof t||0===t?t:t+"px"};function $p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return jp={name:n.name,styles:n.styles,next:jp},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)jp={name:r.name,styles:r.styles,next:jp},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$p(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ep(a)&&(r+=Op(i)+":"+Dp(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=$p(e,t,a);switch(i){case"animation":case"animationName":r+=Op(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Ep(a[s])&&(r+=Op(i)+":"+Dp(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=jp,i=n(e);return jp=o,$p(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var jp,Pp=/label:\s*([^\s;\n{]+)\s*(;|$)/g,_p=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";jp=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=$p(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=$p(n,t,e[a]),r&&(o+=i[a]);Pp.lastIndex=0;for(var l,s="";null!==(l=Pp.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:jp}};function Np(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ip=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Tp=function(e,t,n){Ip(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function Fp(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Ap(e,t,n){var r=[],o=Np(e,r,n);return r.length<2?n:o+t(r)}var Rp=function(e){var t=wp(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=_p(n,t.registered,void 0);return Tp(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Ap(t.registered,n,Mp(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=_p(n,t.registered);Fp(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=_p(n,t.registered),i="animation-"+o.name;return Fp(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Np.bind(null,t.registered),merge:Ap.bind(null,t.registered,n)}},Mp=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},Lp=Rp({key:"css"});Lp.flush,Lp.hydrate;var zp=Lp.cx;Lp.merge,Lp.getRegisteredStyles,Lp.injectGlobal,Lp.keyframes;var Bp=Lp.css;Lp.sheet;var Hp=Lp.cache,Wp=function(){function e(){gf(this,e),Ed(this,"_cacheList",[Hp])}return bf(e,[{key:"add",value:function(e){var t=this.getCache(e.key);return t||(this._cacheList.push(e),e)}},{key:"delete",value:function(e){this._cacheList=this._cacheList.filter((function(t){return t.key!==e.key}))}},{key:"hasCache",value:function(e){return this._cacheList.some((function(t){return t.key===e.key}))}},{key:"getCache",value:function(e){return this._cacheList.find((function(t){return t.key===e}))}},{key:"getCacheList",value:function(){return this._cacheList}}]),e}(),Up="undefined"!=typeof document,Vp=function(e,t){return"".concat(e,"-").concat(t)},Gp=function(e){return"object"===kd(e)&&"styles"in e&&"name"in e&&"toString"in e},qp=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!==o){var i=void 0;switch(kd(o)){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},Xp=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=_p(r,e.registered,void 0);return function(e,t,n,r){var o=r.hashPriority||"high";Ip(e,t,n);var i=".".concat(Vp(e.key,t.name)),a="low"===o?":where(".concat(i,")"):i;if(void 0===e.inserted[t.name]){var l="",s=t;do{var c=e.insert(t===s?a:"",s,e.sheet,!0);Up||void 0===c||(l+=c),s=s.next}while(void 0!==s);if(!Up&&0!==l.length);}}(e,i,!1,t),Vp(e.key,i.name)}},Kp=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.map((function(e){return Gp(e)?t(e):e}));return function(e,t,n){var r=[],o=Np(e,r,n);return r.length<2?n:o+t(r)}(e.registered,t,qp(i))}},Yp=function(e,t){var n=Xp(e,{hashPriority:t.hashPriority||"high",label:t.label});return{css:n,cx:Kp(e,n)}},Qp=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _p(t)};function Jp(){return Jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jp.apply(this,arguments)}var Zp={exports:{}},eh={},th="function"==typeof Symbol&&Symbol.for,nh=th?Symbol.for("react.element"):60103,rh=th?Symbol.for("react.portal"):60106,oh=th?Symbol.for("react.fragment"):60107,ih=th?Symbol.for("react.strict_mode"):60108,ah=th?Symbol.for("react.profiler"):60114,lh=th?Symbol.for("react.provider"):60109,sh=th?Symbol.for("react.context"):60110,ch=th?Symbol.for("react.async_mode"):60111,uh=th?Symbol.for("react.concurrent_mode"):60111,dh=th?Symbol.for("react.forward_ref"):60112,fh=th?Symbol.for("react.suspense"):60113,ph=th?Symbol.for("react.suspense_list"):60120,hh=th?Symbol.for("react.memo"):60115,gh=th?Symbol.for("react.lazy"):60116,mh=th?Symbol.for("react.block"):60121,bh=th?Symbol.for("react.fundamental"):60117,vh=th?Symbol.for("react.responder"):60118,yh=th?Symbol.for("react.scope"):60119;function wh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case nh:switch(e=e.type){case ch:case uh:case oh:case ah:case ih:case fh:return e;default:switch(e=e&&e.$$typeof){case sh:case dh:case gh:case hh:case lh:return e;default:return t}}case rh:return t}}}function xh(e){return wh(e)===uh}eh.AsyncMode=ch,eh.ConcurrentMode=uh,eh.ContextConsumer=sh,eh.ContextProvider=lh,eh.Element=nh,eh.ForwardRef=dh,eh.Fragment=oh,eh.Lazy=gh,eh.Memo=hh,eh.Portal=rh,eh.Profiler=ah,eh.StrictMode=ih,eh.Suspense=fh,eh.isAsyncMode=function(e){return xh(e)||wh(e)===ch},eh.isConcurrentMode=xh,eh.isContextConsumer=function(e){return wh(e)===sh},eh.isContextProvider=function(e){return wh(e)===lh},eh.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===nh},eh.isForwardRef=function(e){return wh(e)===dh},eh.isFragment=function(e){return wh(e)===oh},eh.isLazy=function(e){return wh(e)===gh},eh.isMemo=function(e){return wh(e)===hh},eh.isPortal=function(e){return wh(e)===rh},eh.isProfiler=function(e){return wh(e)===ah},eh.isStrictMode=function(e){return wh(e)===ih},eh.isSuspense=function(e){return wh(e)===fh},eh.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===oh||e===uh||e===ah||e===ih||e===fh||e===ph||"object"==typeof e&&null!==e&&(e.$$typeof===gh||e.$$typeof===hh||e.$$typeof===lh||e.$$typeof===sh||e.$$typeof===dh||e.$$typeof===bh||e.$$typeof===vh||e.$$typeof===yh||e.$$typeof===mh)},eh.typeOf=wh,Zp.exports=eh;var Sh=Zp.exports,kh={};kh[Sh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kh[Sh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Ch=!!W.useInsertionEffect&&W.useInsertionEffect||B.useLayoutEffect,Eh=B.createContext("undefined"!=typeof HTMLElement?wp({key:"css"}):null);Eh.Provider;var Oh=function(e){return B.forwardRef((function(t,n){var r=B.useContext(Eh);return e(t,r,n)}))},Dh=B.createContext({}),$h=dp((function(e){return dp((function(t){return function(e,t){return"function"==typeof t?t(e):Jp({},e,t)}(e,t)}))})),jh=Oh((function(e,t){var n=e.styles,r=_p([n],void 0,B.useContext(Dh)),o=B.useRef();return Ch((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),o.current=[n,i],function(){n.flush()}}),[t]),Ch((function(){var e=o.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Tp(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ph(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ih(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Th(e,t){if(e){if("string"==typeof e)return Nh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nh(e,t):void 0}}function Fh(e){return function(e){if(Array.isArray(e))return Nh(e)}(e)||Ih(e)||Th(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ah(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ah(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ah(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mh(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function Lh(e,t,n){var r=B.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var zh={};function Bh(e,t){}function Hh(e,t){}function Wh(e,t,n){t||zh[n]||(e(!1,n),zh[n]=!0)}function Uh(e,t){Wh(Bh,e,t)}function Vh(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(Uh(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s<t.length;s++)if(!e(t[s],o[s],l))return!1;return!0}if(t&&o&&"object"===kd(t)&&"object"===kd(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}Uh.preMessage=function(e){},Uh.resetWarned=function(){zh={}},Uh.noteOnce=function(e,t){Wh(Hh,e,t)};var Gh=function(){function e(t){gf(this,e),Ed(this,"instanceId",void 0),Ed(this,"cache",new Map),this.instanceId=t}return bf(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),qh=["children"],Xh="data-token-hash",Kh="data-css-hash",Yh="__cssinjs_instance__";function Qh(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Kh,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Yh]=t[Yh]||e,t[Yh]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Kh,"]"))).forEach((function(t){var n,o=t.getAttribute(Kh);r[o]?t[Yh]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new Gh(e)}var Jh=B.createContext({hashPriority:"low",cache:Qh(),defaultCache:!0}),Zh=function(e){var t=e.children,n=Od(e,qh),r=B.useContext(Jh),o=Lh((function(){var e=Rh({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||Qh(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!Vh(e[0],t[0],!0)||!Vh(e[1],t[1],!0)}));return B.createElement(Jh.Provider,{value:o},t)};function eg(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function tg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var ng="data-rc-order",rg="data-rc-priority",og="rc-util-key",ig=new Map;function ag(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):og}function lg(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function sg(e){return Array.from((ig.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!eg())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,s=document.createElement("style");s.setAttribute(ng,a),l&&i&&s.setAttribute(rg,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var c=lg(t),u=c.firstChild;if(r){if(l){var d=sg(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ng)))return!1;var t=Number(e.getAttribute(rg)||0);return i>=t}));if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function ug(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sg(lg(t)).find((function(n){return n.getAttribute(ag(t))===e}))}function dg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ug(e,t);n&&lg(t).removeChild(n)}function fg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=ig.get(e);if(!n||!tg(document,n)){var r=cg("",t),o=r.parentNode;ig.set(e,o),e.removeChild(r)}}(lg(n),n);var r=ug(t,n);if(r){var o,i,a;if(null!==(o=n.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=n.csp)||void 0===i?void 0:i.nonce))r.nonce=null===(a=n.csp)||void 0===a?void 0:a.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var l=cg(e,n);return l.setAttribute(ag(n),t),l}function pg(e){if(Array.isArray(e))return e}function hg(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gg(e,t){return pg(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,o=u}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Th(e,t)||hg()}var mg=function(){function e(){gf(this,e),Ed(this,"cache",void 0),Ed(this,"keys",void 0),Ed(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return bf(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=gg(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=gg(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Ed(mg,"MAX_CACHE_SIZE",20),Ed(mg,"MAX_CACHE_OFFSET",5);var bg=0,vg=function(){function e(t){gf(this,e),Ed(this,"derivatives",void 0),Ed(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=bg,0===t.length&&t.length,bg+=1}return bf(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),yg=new mg;function wg(e){var t=Array.isArray(e)?e:[e];return yg.has(t)||yg.set(t,new vg(t)),yg.get(t)}var xg=new WeakMap,Sg={};var kg=new WeakMap;function Cg(e){var t=kg.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof vg?t+=r.id:r&&"object"===kd(r)?t+=Cg(r):t+=r})),kg.set(e,t)),t}var Eg="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Og="_bAmBoO_";var Dg=void 0;function $g(){return void 0===Dg&&(Dg=function(e,t,n){if(eg()){var r,o;fg(e,Eg);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(r=getComputedStyle(i).content)||void 0===r?void 0:r.includes(Og);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),dg(Eg),a}return!1}("@layer ".concat(Eg," { .").concat(Eg,' { content: "').concat(Og,'"!important; } }'),(function(e){e.className=Eg}))),Dg}var jg=eg()?B.useLayoutEffect:B.useEffect,Pg=function(e,t){var n=B.useRef(!0);jg((function(){return e(n.current)}),t),jg((function(){return n.current=!1,function(){n.current=!0}}),[])},_g=function(e,t){Pg((function(t){if(!t)return e()}),t)},Ng=Rh({},W).useInsertionEffect,Ig=Ng?function(e,t,n){return Ng((function(){return e(),t()}),n)}:function(e,t,n){B.useMemo(e,n),Pg((function(){return t(!0)}),n)},Tg=void 0!==Rh({},W).useInsertionEffect?function(e){var t=[],n=!1;return B.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function Fg(e,t,n,r,o){var i=B.useContext(Jh).cache,a=[e].concat(Fh(t)),l=a.join("_"),s=Tg([l]),c=function(e){i.update(a,(function(t){var r=gg(t||[],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};B.useMemo((function(){c()}),[l]);var u=i.get(a)[1];return Ig((function(){null==o||o(u)}),(function(e){return c((function(t){var n=gg(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(u)),[r+1,i]})),function(){i.update(a,(function(e){var t=gg(e||[],2),n=t[0],o=void 0===n?0:n,i=t[1];return 0===o-1?(s((function(){return null==r?void 0:r(i,!1)})),null):[o-1,i]}))}}),[l]),u}var Ag={},Rg="css",Mg=new Map;var Lg=0;function zg(e,t){Mg.set(e,(Mg.get(e)||0)-1);var n=Array.from(Mg.keys()),r=n.filter((function(e){return(Mg.get(e)||0)<=0}));n.length-r.length>Lg&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Xh,'="').concat(e,'"]')).forEach((function(e){var n;e[Yh]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Mg.delete(e)}))}var Bg=function(e,t,n,r){var o=Rh(Rh({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o};function Hg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B.useContext(Jh).cache.instanceId,o=n.salt,i=void 0===o?"":o,a=n.override,l=void 0===a?Ag:a,s=n.formatToken,c=n.getComputedToken,u=function(e,t){for(var n=xg,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Sg)||n.set(Sg,e()),n.get(Sg)}((function(){return Object.assign.apply(Object,[{}].concat(Fh(t)))}),t),d=Cg(u),f=Cg(l),p=Fg("token",[i,e.id,d,f],(function(){var t=c?c(u,l,e):Bg(u,l,e,s),n=function(e,t){return Mh("".concat(t,"_").concat(Cg(e)))}(t,i);t._tokenKey=n,function(e){Mg.set(e,(Mg.get(e)||0)+1)}(n);var r="".concat(Rg,"-").concat(Mh(n));return t._hashId=r,[t,r]}),(function(e){zg(e[0]._tokenKey,r)}));return p}var Wg={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ug="comm",Vg="rule",Gg="decl",qg="@import",Xg="@keyframes",Kg="@layer",Yg=Math.abs,Qg=String.fromCharCode;function Jg(e){return e.trim()}function Zg(e,t,n){return e.replace(t,n)}function em(e,t){return e.indexOf(t)}function tm(e,t){return 0|e.charCodeAt(t)}function nm(e,t,n){return e.slice(t,n)}function rm(e){return e.length}function om(e,t){return t.push(e),e}var im=1,am=1,lm=0,sm=0,cm=0,um="";function dm(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:im,column:am,length:a,return:"",siblings:l}}function fm(){return cm=sm<lm?tm(um,sm++):0,am++,10===cm&&(am=1,im++),cm}function pm(){return tm(um,sm)}function hm(){return sm}function gm(e,t){return nm(um,e,t)}function mm(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bm(e){return Jg(gm(sm-1,wm(91===e?e+2:40===e?e+1:e)))}function vm(e){for(;(cm=pm())&&cm<33;)fm();return mm(e)>2||mm(cm)>3?"":" "}function ym(e,t){for(;--t&&fm()&&!(cm<48||cm>102||cm>57&&cm<65||cm>70&&cm<97););return gm(e,hm()+(t<6&&32==pm()&&32==fm()))}function wm(e){for(;fm();)switch(cm){case e:return sm;case 34:case 39:34!==e&&39!==e&&wm(cm);break;case 40:41===e&&wm(e);break;case 92:fm()}return sm}function xm(e,t){for(;fm()&&e+cm!==57&&(e+cm!==84||47!==pm()););return"/*"+gm(t,sm-1)+"*"+Qg(47===e?e:fm())}function Sm(e){for(;!mm(pm());)fm();return gm(e,sm)}function km(e){return function(e){return um="",e}(Cm("",null,null,null,[""],e=function(e){return im=am=1,lm=rm(um=e),sm=0,[]}(e),0,[0],e))}function Cm(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=i,S=r,k=y;m;)switch(h=v,v=fm()){case 40:if(108!=h&&58==tm(k,d-1)){-1!=em(k+=Zg(bm(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=bm(v);break;case 9:case 10:case 13:case 32:k+=vm(h);break;case 92:k+=ym(hm()-1,7);continue;case 47:switch(pm()){case 42:case 47:om(Om(xm(fm(),hm()),t,n,s),s);break;default:k+="/"}break;case 123*g:l[c++]=rm(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=Zg(k,/\f/g,"")),p>0&&rm(k)-d&&om(p>32?Dm(k+";",r,n,d-1,s):Dm(Zg(k," ","")+";",r,n,d-2,s),s);break;case 59:k+=";";default:if(om(S=Em(k,t,n,c,u,o,l,y,w=[],x=[],d,i),i),123===v)if(0===u)Cm(k,t,S,S,w,i,d,l,x);else switch(99===f&&110===tm(k,3)?100:f){case 100:case 108:case 109:case 115:Cm(e,S,S,r&&om(Em(e,S,S,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Cm(k,S,S,S,[""],x,0,l,x)}}c=u=p=0,g=b=1,y=k="",d=a;break;case 58:d=1+rm(k),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(cm=sm>0?tm(um,--sm):0,am--,10===cm&&(am=1,im--),cm))continue;switch(k+=Qg(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:l[c++]=(rm(k)-1)*b,b=1;break;case 64:45===pm()&&(k+=bm(fm())),f=pm(),u=d=rm(y=k+=Sm(hm())),v++;break;case 45:45===h&&2==rm(k)&&(g=0)}}return i}function Em(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,m=0,b=0;g<r;++g)for(var v=0,y=nm(e,f+1,f=Yg(m=a[g])),w=e;v<h;++v)(w=Jg(m>0?p[v]+" "+y:Zg(y,/&\f/g,p[v])))&&(s[b++]=w);return dm(e,t,n,0===o?Vg:l,s,c,u,d)}function Om(e,t,n,r){return dm(e,t,n,Ug,Qg(cm),nm(e,2,-2),0,r)}function Dm(e,t,n,r,o){return dm(e,t,n,Gg,nm(e,0,r),nm(e,r+1,-1),r,o)}function $m(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function jm(e,t,n,r){switch(e.type){case Kg:if(e.children.length)break;case qg:case Gg:return e.return=e.return||e.value;case Ug:return"";case Xg:return e.return=e.value+"{"+$m(e.children,r)+"}";case Vg:if(!rm(e.value=e.props.join(",")))return""}return rm(n=$m(e.children,r))?e.return=e.value+"{"+n+"}":""}var Pm,_m="data-ant-cssinjs-cache-path",Nm="_FILE_STYLE__",Im=!0;function Tm(e){return function(){if(!Pm&&(Pm={},eg())){var e=document.createElement("div");e.className=_m,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=gg(e.split(":"),2),n=t[0],r=t[1];Pm[n]=r}));var n,r=document.querySelector("style[".concat(_m,"]"));r&&(Im=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Pm[e]}var Fm=eg(),Am="_multi_value_";function Rm(e){return $m(km(e),jm).replace(/\{%%%\:[^;];}/g,";")}var Mm=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=void 0===u?[]:u;n.linters;var f="",p={};function h(t){var r=t.getName(l);if(!p[r]){var o=gg(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(g.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)h(r);else{var s=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(s).forEach((function(t){var r=s[t];if("object"!==kd(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===kd(e)&&e&&("_skip_check_"in e||Am in e)}(r)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Wg[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")};var u,d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===kd(r)&&null!=r&&r[Am]&&Array.isArray(d)?d.forEach((function(n){e(t,n)})):e(t,d)}else{var g=!1,m=t.trim(),b=!1;(o||i)&&l?m.startsWith("@")?g=!0:m=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Fh(n.slice(1))).join(" ")})).join(",")}(t,l,c):!o||l||"&"!==m&&""!==m||(m="",b=!0);var v=gg(e(r,n,{root:b,injectHash:g,parentSelectors:[].concat(Fh(a),[m])}),2),y=v[0],w=v[1];p=Rh(Rh({},p),w),f+="".concat(m).concat(y)}}))}})),o){if(s&&$g()){var m=s.split(","),b=m[m.length-1].trim();f="@layer ".concat(b," {").concat(f,"}"),m.length>1&&(f="@layer ".concat(s,"{%%%:%}").concat(f))}}else f="{".concat(f,"}");return[f,p]};function Lm(){return null}function zm(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=void 0===s?0:s,u=B.useContext(Jh),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,v=u.cache,y=n._tokenKey,w=[y].concat(Fh(r)),x=Fm,S=Fg("style",w,(function(){var e=w.join("|");if(Tm(e)){var n=function(e){var t=Pm[e],n=null;if(t&&eg())if(Im)n=Nm;else{var r=document.querySelector("style[".concat(Kh,'="').concat(Pm[e],'"]'));r?n=r.innerHTML:delete Pm[e]}return[n,t]}(e),a=gg(n,2),s=a[0],u=a[1];if(s)return[s,y,u,{},l,c]}var d=t(),f=gg(Mm(d,{hashId:o,hashPriority:p,layer:i,path:r.join("-"),transformers:m,linters:b}),2),h=f[0],g=f[1],v=Rm(h),x=function(e,t){return Mh("".concat(e.join("%")).concat(t))}(w,v);return[v,y,x,g,l,c]}),(function(e,t){var n=gg(e,3)[2];(t||d)&&Fm&&dg(n,{mark:Kh})}),(function(e){var t=gg(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(x&&n!==Nm){var i={mark:Kh,prepend:"queue",attachTo:h,priority:c},l="function"==typeof a?a():a;l&&(i.csp={nonce:l});var s=fg(n,r,i);s[Yh]=v.instanceId,s.setAttribute(Xh,y),Object.keys(o).forEach((function(e){fg(Rm(o[e]),"_effect-".concat(e),i)}))}})),k=gg(S,3),C=k[0],E=k[1],O=k[2];return function(e){var t,n;g&&!x&&f?t=B.createElement("style",Jp({},(Ed(n={},Xh,E),Ed(n,Kh,O),n),{dangerouslySetInnerHTML:{__html:C}})):t=B.createElement(Lm,null);return B.createElement(B.Fragment,null,t,e)}}var Bm=function(){function e(t,n){gf(this,e),Ed(this,"name",void 0),Ed(this,"style",void 0),Ed(this,"_keyframe",!0),this.name=t,this.style=n}return bf(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Hm(e){return e.notSplit=!0,e}Hm(["borderTop","borderBottom"]),Hm(["borderTop"]),Hm(["borderBottom"]),Hm(["borderLeft","borderRight"]),Hm(["borderLeft"]),Hm(["borderRight"]);var Wm=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"];function Um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Um(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gm,qm={exports:{}};
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/
|
||
Gm=qm,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&n.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)e.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}Gm.exports?(t.default=t,Gm.exports=t):window.classNames=t}();var Xm=qm.exports;const Km=n(Xm);var Ym,Qm={exports:{}},Jm={},Zm=Symbol.for("react.element"),eb=Symbol.for("react.portal"),tb=Symbol.for("react.fragment"),nb=Symbol.for("react.strict_mode"),rb=Symbol.for("react.profiler"),ob=Symbol.for("react.provider"),ib=Symbol.for("react.context"),ab=Symbol.for("react.server_context"),lb=Symbol.for("react.forward_ref"),sb=Symbol.for("react.suspense"),cb=Symbol.for("react.suspense_list"),ub=Symbol.for("react.memo"),db=Symbol.for("react.lazy"),fb=Symbol.for("react.offscreen");function pb(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Zm:switch(e=e.type){case tb:case rb:case nb:case sb:case cb:return e;default:switch(e=e&&e.$$typeof){case ab:case ib:case lb:case db:case ub:case ob:return e;default:return t}}case eb:return t}}}Ym=Symbol.for("react.module.reference"),Jm.ContextConsumer=ib,Jm.ContextProvider=ob,Jm.Element=Zm,Jm.ForwardRef=lb,Jm.Fragment=tb,Jm.Lazy=db,Jm.Memo=ub,Jm.Portal=eb,Jm.Profiler=rb,Jm.StrictMode=nb,Jm.Suspense=sb,Jm.SuspenseList=cb,Jm.isAsyncMode=function(){return!1},Jm.isConcurrentMode=function(){return!1},Jm.isContextConsumer=function(e){return pb(e)===ib},Jm.isContextProvider=function(e){return pb(e)===ob},Jm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Zm},Jm.isForwardRef=function(e){return pb(e)===lb},Jm.isFragment=function(e){return pb(e)===tb},Jm.isLazy=function(e){return pb(e)===db},Jm.isMemo=function(e){return pb(e)===ub},Jm.isPortal=function(e){return pb(e)===eb},Jm.isProfiler=function(e){return pb(e)===rb},Jm.isStrictMode=function(e){return pb(e)===nb},Jm.isSuspense=function(e){return pb(e)===sb},Jm.isSuspenseList=function(e){return pb(e)===cb},Jm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===tb||e===rb||e===nb||e===sb||e===cb||e===fb||"object"==typeof e&&null!==e&&(e.$$typeof===db||e.$$typeof===ub||e.$$typeof===ob||e.$$typeof===ib||e.$$typeof===lb||e.$$typeof===Ym||void 0!==e.getModuleId)},Jm.typeOf=pb,Qm.exports=Jm;var hb=Qm.exports;function gb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return H.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(gb(e)):hb.isFragment(e)&&e.props?n=n.concat(gb(e.props.children,t)):n.push(e))})),n}function mb(e){return e instanceof HTMLElement||e instanceof SVGElement}function bb(e){return mb(e)?e:e instanceof H.Component?yd.findDOMNode(e):null}function vb(e,t){"function"==typeof e?e(t):"object"===kd(e)&&e&&"current"in e&&(e.current=t)}function yb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){vb(t,e)}))}}function wb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lh((function(){return yb.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function xb(e){var t,n,r=hb.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}var Sb=B.createContext(null);var kb=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Cb="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Eb="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ob="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Eb):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Db=["top","right","bottom","left","width","height","size","weight"],$b="undefined"!=typeof MutationObserver,jb=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Ob(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Cb&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$b?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Cb&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Db.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Pb=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},_b=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Eb},Nb=Mb(0,0,0,0);function Ib(e){return parseFloat(e)||0}function Tb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ib(e["border-"+n+"-width"])}),0)}function Fb(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Nb;var r=_b(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Ib(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Ib(r.width),s=Ib(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Tb(r,"left","right")+i),Math.round(s+a)!==n&&(s-=Tb(r,"top","bottom")+a)),!function(e){return e===_b(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return Mb(o.left,o.top,l,s)}var Ab="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof _b(e).SVGGraphicsElement}:function(e){return e instanceof _b(e).SVGElement&&"function"==typeof e.getBBox};function Rb(e){return Cb?Ab(e)?function(e){var t=e.getBBox();return Mb(0,0,t.width,t.height)}(e):Fb(e):Nb}function Mb(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Lb=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Mb(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Rb(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),zb=function(){return function(e,t){var n,r,o,i,a,l,s,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),Pb(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);Pb(this,{target:e,contentRect:c})}}(),Bb=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new kb,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof _b(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Lb(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof _b(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new zb(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Hb="undefined"!=typeof WeakMap?new WeakMap:new kb,Wb=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=jb.getInstance(),r=new Bb(t,n,this);Hb.set(this,r)}}();["observe","unobserve","disconnect"].forEach((function(e){Wb.prototype[e]=function(){var t;return(t=Hb.get(this))[e].apply(t,arguments)}}));var Ub=void 0!==Eb.ResizeObserver?Eb.ResizeObserver:Wb,Vb=new Map;var Gb=new Ub((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Vb.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function qb(e,t){return(qb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qb(e,t)}function Kb(e){return(Kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(GY){return!1}}function Qb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jb(e){var t=Yb();return function(){var n,r=Kb(e);if(t){var o=Kb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qb(e)}(this,n)}}var Zb=function(e){Xb(n,B.Component);var t=Jb(n);function n(){return gf(this,n),t.apply(this,arguments)}return bf(n,[{key:"render",value:function(){return this.props.children}}]),n}();function ev(e,t){var n=e.children,r=e.disabled,o=B.useRef(null),i=B.useRef(null),a=B.useContext(Sb),l="function"==typeof n,s=l?n(o):n,c=B.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&B.isValidElement(s)&&xb(s),d=wb(u?s.ref:null,o),f=function(){var e;return bb(o.current)||(o.current&&"object"===kd(o.current)?bb(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||bb(i.current)};B.useImperativeHandle(t,(function(){return f()}));var p=B.useRef(e);p.current=e;var h=B.useCallback((function(e){var t=p.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,s=e.offsetWidth,u=e.offsetHeight,d=Math.floor(i),f=Math.floor(l);if(c.current.width!==d||c.current.height!==f||c.current.offsetWidth!==s||c.current.offsetHeight!==u){var h={width:d,height:f,offsetWidth:s,offsetHeight:u};c.current=h;var g=s===Math.round(i)?i:s,m=u===Math.round(l)?l:u,b=Rh(Rh({},h),{},{offsetWidth:g,offsetHeight:m});null==a||a(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return B.useEffect((function(){var e,t,n=f();return n&&!r&&(e=n,t=h,Vb.has(e)||(Vb.set(e,new Set),Gb.observe(e)),Vb.get(e).add(t)),function(){return function(e,t){Vb.has(e)&&(Vb.get(e).delete(t),Vb.get(e).size||(Gb.unobserve(e),Vb.delete(e)))}(n,h)}}),[o.current,r]),B.createElement(Zb,{ref:i},u?B.cloneElement(s,{ref:d}):s)}var tv=B.forwardRef(ev);function nv(e,t){var n=e.children;return("function"==typeof n?[n]:gb(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return B.createElement(tv,Jp({},e,{key:o,ref:0===r?t:void 0}),n)}))}var rv=B.forwardRef(nv);function ov(e,t){var n=Rh({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}rv.Collection=function(e){var t=e.children,n=e.onBatchResize,r=B.useRef(0),o=B.useRef([]),i=B.useContext(Sb),a=B.useCallback((function(e,t,a){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){l===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return B.createElement(Sb.Provider,{value:a},t)};var iv=function(e){return+setTimeout(e,16)},av=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(iv=function(e){return window.requestAnimationFrame(e)},av=function(e){return window.cancelAnimationFrame(e)});var lv=0,sv=new Map;function cv(e){sv.delete(e)}var uv=function(e){var t=lv+=1;return function n(r){if(0===r)cv(t),e();else{var o=iv((function(){n(r-1)}));sv.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};uv.cancel=function(e){var t=sv.get(e);return cv(e),av(t)};const dv=B.createContext({});function fv(e){return pg(e)||Ih(e)||Th(e)||hg()}function pv(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function hv(e,t,n,r){if(!t.length)return n;var o,i=fv(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?Fh(e):Rh({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=hv(o[a],l,n,r),o}function gv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!pv(e,t.slice(0,-1))?e:hv(e,t,n,r)}function mv(e){return Array.isArray(e)?[]:{}}var bv="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function vv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=mv(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=pv(e,n),s=Array.isArray(l);if(s||"object"===kd(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var c=pv(r,n);s?r=gv(r,n,[]):c&&"object"===kd(c)||(r=gv(r,n,mv(l))),bv(l).forEach((function(e){t([].concat(Fh(n),[e]),a)}))}}else r=gv(r,n,l)}([])})),r}function yv(){}const wv=B.createContext({}),xv=()=>{const e=()=>{};return e.deprecated=yv,e},Sv=B.createContext(void 0);const kv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Cv={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},kv)},Ev="${label} is not a valid ${type}",Ov={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:Cv,TimePicker:kv,Calendar:Cv,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ev,method:Ev,array:Ev,object:Ev,number:Ev,date:Ev,boolean:Ev,integer:Ev,float:Ev,regexp:Ev,email:Ev,url:Ev,hex:Ev},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let Dv=Object.assign({},Ov.Modal),$v=[];const jv=()=>$v.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Ov.Modal);function Pv(){return Dv}const _v=B.createContext(void 0),Nv=(e,t)=>{const n=B.useContext(_v);return[B.useMemo((()=>{var r;const o=t||Ov[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),B.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Ov.locale:e}),[n])]},Iv=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;B.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return $v.push(t),Dv=jv(),()=>{$v=$v.filter((e=>e!==t)),Dv=jv()}}Dv=Object.assign({},Ov.Modal)}(t&&t.Modal);return e}),[t]);const o=B.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return B.createElement(_v.Provider,{value:o},n)};function Tv(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Fv(e){return Math.min(1,Math.max(0,e))}function Av(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Rv(e){return e<=1?"".concat(100*Number(e),"%"):e}function Mv(e){return 1===e.length?"0"+e:String(e)}function Lv(e,t,n){e=Tv(e,255),t=Tv(t,255),n=Tv(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:a,l:l}}function zv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Bv(e,t,n){e=Tv(e,255),t=Tv(t,255),n=Tv(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:s,v:a}}function Hv(e,t,n,r){var o=[Mv(Math.round(e).toString(16)),Mv(Math.round(t).toString(16)),Mv(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Wv(e){return Uv(e)/255}function Uv(e){return parseInt(e,16)}var Vv={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",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#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"};function Gv(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,s=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Vv[e])e=Vv[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Yv.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Yv.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Yv.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Yv.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Yv.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Yv.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Yv.hex8.exec(e),n)return{r:Uv(n[1]),g:Uv(n[2]),b:Uv(n[3]),a:Wv(n[4]),format:t?"name":"hex8"};if(n=Yv.hex6.exec(e),n)return{r:Uv(n[1]),g:Uv(n[2]),b:Uv(n[3]),format:t?"name":"hex"};if(n=Yv.hex4.exec(e),n)return{r:Uv(n[1]+n[1]),g:Uv(n[2]+n[2]),b:Uv(n[3]+n[3]),a:Wv(n[4]+n[4]),format:t?"name":"hex8"};if(n=Yv.hex3.exec(e),n)return{r:Uv(n[1]+n[1]),g:Uv(n[2]+n[2]),b:Uv(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Qv(e.r)&&Qv(e.g)&&Qv(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Tv(t,255),g:255*Tv(n,255),b:255*Tv(r,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Qv(e.h)&&Qv(e.s)&&Qv(e.v)?(a=Rv(e.s),l=Rv(e.v),o=function(e,t,n){e=6*Tv(e,360),t=Tv(t,100),n=Tv(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,a,l),c=!0,u="hsv"):Qv(e.h)&&Qv(e.s)&&Qv(e.l)&&(a=Rv(e.s),s=Rv(e.l),o=function(e,t,n){var r,o,i;if(e=Tv(e,360),t=Tv(t,100),n=Tv(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=zv(l,a,e+1/3),o=zv(l,a,e),i=zv(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,s),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Av(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var qv="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Xv="[\\s|\\(]+(".concat(qv,")[,|\\s]+(").concat(qv,")[,|\\s]+(").concat(qv,")\\s*\\)?"),Kv="[\\s|\\(]+(".concat(qv,")[,|\\s]+(").concat(qv,")[,|\\s]+(").concat(qv,")[,|\\s]+(").concat(qv,")\\s*\\)?"),Yv={CSS_UNIT:new RegExp(qv),rgb:new RegExp("rgb"+Xv),rgba:new RegExp("rgba"+Kv),hsl:new RegExp("hsl"+Xv),hsla:new RegExp("hsla"+Kv),hsv:new RegExp("hsv"+Xv),hsva:new RegExp("hsva"+Kv),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Qv(e){return Boolean(Yv.CSS_UNIT.exec(String(e)))}var Jv=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Gv(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Av(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Bv(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Bv(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Lv(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Lv(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Hv(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[Mv(Math.round(e).toString(16)),Mv(Math.round(t).toString(16)),Mv(Math.round(n).toString(16)),Mv((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Tv(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Tv(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Hv(this.r,this.g,this.b,!1),t=0,n=Object.entries(Vv);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Fv(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Fv(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Fv(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Fv(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Zv=2,ey=.16,ty=.05,ny=.05,ry=.15,oy=5,iy=4,ay=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ly(e){var t=Bv(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function sy(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Hv(t,n,r,!1))}function cy(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Zv*t:Math.round(e.h)+Zv*t:n?Math.round(e.h)+Zv*t:Math.round(e.h)-Zv*t)<0?r+=360:r>=360&&(r-=360),r}function uy(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-ey*t:t===iy?e.s+ey:e.s+ty*t)>1&&(r=1),n&&t===oy&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function dy(e,t,n){var r;return(r=n?e.v+ny*t:e.v-ry*t)>1&&(r=1),Number(r.toFixed(2))}function fy(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Gv(e),o=oy;o>0;o-=1){var i=ly(r),a=sy(Gv({h:cy(i,o,!0),s:uy(i,o,!0),v:dy(i,o,!0)}));n.push(a)}n.push(sy(r));for(var l=1;l<=iy;l+=1){var s=ly(r),c=sy(Gv({h:cy(s,l),s:uy(s,l),v:dy(s,l)}));n.push(c)}return"dark"===t.theme?ay.map((function(e){var r,o,i,a=e.index,l=e.opacity;return sy((r=Gv(t.backgroundColor||"#141414"),o=Gv(n[a]),i=100*l/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var py={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},hy={},gy={};Object.keys(py).forEach((function(e){hy[e]=fy(py[e]),hy[e].primary=hy[e][5],gy[e]=fy(py[e],{theme:"dark",backgroundColor:"#141414"}),gy[e].primary=gy[e][5]}));var my=hy.blue;const by=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const vy={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},yy=Object.assign(Object.assign({},vy),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function wy(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(o),p=n(i),h=n(a),g=n(l),m=r(c,u),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Jv("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const xy=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const Sy=(e,t)=>new Jv(e).setAlpha(t).toRgbString(),ky=(e,t)=>new Jv(e).darken(t).toHexString(),Cy=e=>{const t=fy(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Ey=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Sy(r,.88),colorTextSecondary:Sy(r,.65),colorTextTertiary:Sy(r,.45),colorTextQuaternary:Sy(r,.25),colorFill:Sy(r,.15),colorFillSecondary:Sy(r,.06),colorFillTertiary:Sy(r,.04),colorFillQuaternary:Sy(r,.02),colorBgLayout:ky(n,4),colorBgContainer:ky(n,0),colorBgElevated:ky(n,0),colorBgSpotlight:Sy(r,.85),colorBgBlur:"transparent",colorBorder:ky(n,15),colorBorderSecondary:ky(n,6)}};const Oy=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Dy(e){const t=Object.keys(vy).map((t=>{const n=fy(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),wy(e,{generateColorPalettes:Cy,generateNeutralColorPalettes:Ey})),Oy(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),by(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},xy(r))}(e))}const $y=wg(Dy),jy={token:yy,override:{override:yy},hashed:!0},Py=H.createContext(jy),_y="anticon",Ny=B.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:_y}),Iy=`-ant-${Date.now()}-${Math.random()}`;function Ty(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Jv(e),i=fy(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Jv(t.primaryColor),i=fy(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Jv(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);eg()&&fg(n,`${Iy}-dynamic-theme`)}const Fy=B.createContext(!1),Ay=e=>{let{children:t,disabled:n}=e;const r=B.useContext(Fy);return B.createElement(Fy.Provider,{value:null!=n?n:r},t)},Ry=Fy,My=B.createContext(void 0),Ly=e=>{let{children:t,size:n}=e;const r=B.useContext(My);return B.createElement(My.Provider,{value:n||r},t)},zy=My;const By=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Hy="5.11.4";function Wy(e){return e>=0&&e<=255}function Uy(e,t){const{r:n,g:r,b:o,a:i}=new Jv(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Jv(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-l*(1-c))/c),i=Math.round((o-s*(1-c))/c);if(Wy(e)&&Wy(t)&&Wy(i))return new Jv({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new Jv({r:n,g:r,b:o,a:1}).toRgbString()}var Vy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Gy(e){const{override:t}=e,n=Vy(e,["override"]),r=Object.assign({},t);Object.keys(yy).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Uy(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Uy(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Uy(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Uy(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Jv("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Jv("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Jv("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var qy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xy=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=qy(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Gy(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=qy(n,["theme"]);let i=o;r&&(i=Xy(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Ky(){const{token:e,hashed:t,theme:n,override:r}=H.useContext(Py),o=`${Hy}-${t||""}`,i=n||$y,[a,l]=Hg(i,[yy,e],{salt:o,override:r,getComputedToken:Xy,formatToken:Gy});return[i,a,t?l:""]}function Yy(e){var t=B.useRef();t.current=e;var n=B.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Qy(e){var t=B.useRef(!1),n=gg(B.useState(e),2),r=n[0],o=n[1];return B.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function Jy(e){return void 0!==e}function Zy(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=gg(Qy((function(){return Jy(o)?o:Jy(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),s=l[0],c=l[1],u=void 0!==o?o:s,d=a?a(u):u,f=Yy(i),p=gg(Qy([u]),2),h=p[0],g=p[1];return _g((function(){var e=h[0];s!==e&&f(s,e)}),[h]),_g((function(){Jy(o)||c(o)}),[o]),[d,Yy((function(e,t){c(e,t),g([u],t)}))]}const ew=(e,t,n,r,o)=>{const i=e/2,a=i,l=1*n/Math.sqrt(2),s=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,f=u,p=2*i-l,h=s,g=2*i-0,m=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),v=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${v}px 100%, 50% ${v}px, ${2*i-v}px 100%, ${v}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${l} ${s} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${f} L ${p} ${h} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},tw={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},nw=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},rw=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ow=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},iw=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),aw=e=>({"&:focus-visible":Object.assign({},iw(e))}),lw="undefined"!=typeof CSSINJS_STATISTIC;let sw=!0;function cw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!lw)return Object.assign.apply(Object,[{}].concat(t));sw=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),sw=!0,r}const uw={};function dw(){}const fw=(e,t)=>{const[n,r]=Ky();return zm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))};function pw(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return e=>{const[o,l,s]=Ky(),{getPrefixCls:c,iconPrefixCls:u,csp:d}=B.useContext(Ny),f=c(),p={theme:o,token:l,hashId:s,nonce:()=>null==d?void 0:d.nonce,clientOnly:r.clientOnly,order:r.order||-999};return zm(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",f]}),(()=>[{"&":rw(l)}])),fw(u,d),[zm(Object.assign(Object.assign({},p),{path:[a,e,u]}),(()=>{const{token:o,flush:a}=function(e){let t,n=e,r=dw;return lw&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(sw&&t.add(n),e[n])}),r=(e,n)=>{var r;uw[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=uw[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(l),c=Object.assign({},l[i]);if(r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==c?void 0:c[t])||(null==c?void 0:c[n]))&&(null!==(r=c[n])&&void 0!==r||(c[n]=null==c?void 0:c[t]))}))}const d="function"==typeof n?n(cw(o,null!=c?c:{})):n,p=Object.assign(Object.assign({},d),c),h=cw(o,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${u}`,antCls:`.${f}`},p),g=t(h,{hashId:s,prefixCls:e,rootPrefixCls:f,iconPrefixCls:u,overrideComponentToken:c});return a(i,p),[!1===r.resetStyle?null:ow(h,e),g]})),s]}}const hw=(e,t,n,r)=>{const o=pw(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}};function gw(e,t){return By.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}var mw=["children"],bw=B.createContext({});function vw(e){var t=e.children,n=Od(e,mw);return B.createElement(bw.Provider,{value:n},t)}var yw=function(e){Xb(n,B.Component);var t=Jb(n);function n(){return gf(this,n),t.apply(this,arguments)}return bf(n,[{key:"render",value:function(){return this.props.children}}]),n}(),ww="none",xw="appear",Sw="enter",kw="leave",Cw="none",Ew="prepare",Ow="start",Dw="active",$w="end",jw="prepared";function Pw(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var _w,Nw,Iw,Tw=(_w=eg(),Nw="undefined"!=typeof window?window:{},Iw={animationend:Pw("Animation","AnimationEnd"),transitionend:Pw("Transition","TransitionEnd")},_w&&("AnimationEvent"in Nw||delete Iw.animationend.animation,"TransitionEvent"in Nw||delete Iw.transitionend.transition),Iw),Fw={};if(eg()){var Aw=document.createElement("div");Fw=Aw.style}var Rw={};function Mw(e){if(Rw[e])return Rw[e];var t=Tw[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Fw)return Rw[e]=t[i],Rw[e]}return""}var Lw=Mw("animationend"),zw=Mw("transitionend"),Bw=!(!Lw||!zw),Hw=Lw||"animationend",Ww=zw||"transitionend";function Uw(e,t){return e?"object"===kd(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Vw=function(e){var t=B.useRef(),n=B.useRef(e);n.current=e;var r=B.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(Ww,r),e.removeEventListener(Hw,r))}return B.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(Ww,r),e.addEventListener(Hw,r),t.current=e)},o]};var Gw=eg()?B.useLayoutEffect:B.useEffect;var qw=[Ew,Ow,Dw,$w],Xw=[Ew,jw],Kw=!1,Yw=!0;function Qw(e){return e===Dw||e===$w}const Jw=function(e,t,n){var r=gg(Qy(Cw),2),o=r[0],i=r[1],a=function(){var e=B.useRef(null);function t(){uv.cancel(e.current)}return B.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=uv((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),l=gg(a,2),s=l[0],c=l[1];var u=t?Xw:qw;return Gw((function(){if(o!==Cw&&o!==$w){var e=u.indexOf(o),t=u[e+1],r=n(o);r===Kw?i(t,!0):t&&s((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),B.useEffect((function(){return function(){c()}}),[]),[function(){i(Ew,!0)},o]};const Zw=function(e){var t=e;"object"===kd(e)&&(t=e.transitionSupport);var n=B.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,l=e.forceRender,s=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,B.useContext(bw).motion),p=B.useRef(),h=B.useRef();var g=function(e,t,n,r){var o=r.motionEnter,i=void 0===o||o,a=r.motionAppear,l=void 0===a||a,s=r.motionLeave,c=void 0===s||s,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,v=r.onAppearActive,y=r.onEnterActive,w=r.onLeaveActive,x=r.onAppearEnd,S=r.onEnterEnd,k=r.onLeaveEnd,C=r.onVisibleChanged,E=gg(Qy(),2),O=E[0],D=E[1],$=gg(Qy(ww),2),j=$[0],P=$[1],_=gg(Qy(null),2),N=_[0],I=_[1],T=B.useRef(!1),F=B.useRef(null);function A(){return n()}var R=B.useRef(!1);function M(){P(ww,!0),I(null,!0)}function L(e){var t=A();if(!e||e.deadline||e.target===t){var n,r=R.current;j===xw&&r?n=null==x?void 0:x(t,e):j===Sw&&r?n=null==S?void 0:S(t,e):j===kw&&r&&(n=null==k?void 0:k(t,e)),j!==ww&&r&&!1!==n&&M()}}var z=gg(Vw(L),1)[0],H=function(e){var t,n,r;switch(e){case xw:return Ed(t={},Ew,f),Ed(t,Ow,g),Ed(t,Dw,v),t;case Sw:return Ed(n={},Ew,p),Ed(n,Ow,m),Ed(n,Dw,y),n;case kw:return Ed(r={},Ew,h),Ed(r,Ow,b),Ed(r,Dw,w),r;default:return{}}},W=B.useMemo((function(){return H(j)}),[j]),U=gg(Jw(j,!e,(function(e){if(e===Ew){var t=W[Ew];return t?t(A()):Kw}var n;return G in W&&I((null===(n=W[G])||void 0===n?void 0:n.call(W,A(),null))||null),G===Dw&&(z(A()),u>0&&(clearTimeout(F.current),F.current=setTimeout((function(){L({deadline:!0})}),u))),G===jw&&M(),Yw})),2),V=U[0],G=U[1],q=Qw(G);R.current=q,Gw((function(){D(t);var n,r=T.current;T.current=!0,!r&&t&&l&&(n=xw),r&&t&&i&&(n=Sw),(r&&!t&&c||!r&&d&&!t&&c)&&(n=kw);var o=H(n);n&&(e||o[Ew])?(P(n),V()):P(ww)}),[t]),B.useEffect((function(){(j===xw&&!l||j===Sw&&!i||j===kw&&!c)&&P(ww)}),[l,i,c]),B.useEffect((function(){return function(){T.current=!1,clearTimeout(F.current)}}),[]);var X=B.useRef(!1);B.useEffect((function(){O&&(X.current=!0),void 0!==O&&j===ww&&((X.current||O)&&(null==C||C(O)),X.current=!0)}),[O,j]);var K=N;return W[Ew]&&G===Ow&&(K=Rh({transition:"none"},K)),[j,G,K,null!=O?O:t]}(f,o,(function(){try{return p.current instanceof HTMLElement?p.current:bb(h.current)}catch(GY){return null}}),e),m=gg(g,4),b=m[0],v=m[1],y=m[2],w=m[3],x=B.useRef(w);w&&(x.current=!0);var S,k=B.useCallback((function(e){p.current=e,vb(n,e)}),[n]),C=Rh(Rh({},d),{},{visible:o});if(s)if(b===ww)S=w?s(Rh({},C),k):!a&&x.current&&u?s(Rh(Rh({},C),{},{className:u}),k):l||!a&&!u?s(Rh(Rh({},C),{},{style:{display:"none"}}),k):null;else{var E,O;v===Ew?O="prepare":Qw(v)?O="active":v===Ow&&(O="start");var D=Uw(c,"".concat(b,"-").concat(O));S=s(Rh(Rh({},C),{},{className:Km(Uw(c,b),(E={},Ed(E,D,D&&O),Ed(E,c,"string"==typeof c),E)),style:y}),k)}else S=null;B.isValidElement(S)&&xb(S)&&(S.ref||(S=B.cloneElement(S,{ref:k})));return B.createElement(yw,{ref:h},S)}));return n.displayName="CSSMotion",n}(Bw);var ex="add",tx="keep",nx="remove",rx="removed";function ox(e){var t;return Rh(Rh({},t=e&&"object"===kd(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function ix(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ox)}var ax=["component","children","onVisibleChanged","onAllRemoved"],lx=["status"],sx=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const cx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zw,n=function(e){Xb(r,B.Component);var n=Jb(r);function r(){var e;gf(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return Ed(Qb(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),Ed(Qb(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Rh(Rh({},e),{},{status:rx})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==rx})).length})),e}return bf(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,l=r.onAllRemoved,s=Od(r,ax),c=o||B.Fragment,u={};return sx.forEach((function(e){u[e]=s[e],delete s[e]})),delete s.keys,B.createElement(c,s,n.map((function(n,r){var o=n.status,s=Od(n,lx),c=o===ex||o===tx;return B.createElement(t,Jp({},u,{key:s.key,visible:c,eventProps:s,onVisibleChanged:function(t){(null==a||a(t,{key:s.key}),t)||0===e.removeKey(s.key)&&l&&l()}}),(function(e,t){return i(Rh(Rh({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=ix(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=ix(e),a=ix(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Rh(Rh({},e),{},{status:ex})}))),r=i),n.push(Rh(Rh({},l),{},{status:tx})),r+=1,t=!0;break}}t||n.push(Rh(Rh({},e),{},{status:nx}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Rh(Rh({},e),{},{status:ex})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==nx}))).forEach((function(t){t.key===e&&(t.status=tx)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==rx||e.status!==nx}))}}}]),r}();return Ed(n,"defaultProps",{component:"div"}),n}(Bw);function ux(e){const{children:t}=e,[,n]=Ky(),{motion:r}=n,o=B.useRef(!1);return o.current=o.current||!1===r,o.current?B.createElement(vw,{motion:r},t):t}const dx=()=>null;const fx=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];let px,hx,gx;function mx(){return px||"ant"}function bx(){return hx||_y}const vx=()=>({getPrefixCls:(e,t)=>t||(e?`${mx()}-${e}`:mx()),getIconPrefixCls:bx,getRootPrefixCls:()=>px||mx(),getTheme:()=>gx}),yx=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:g,parentContext:m,iconPrefixCls:b,theme:v,componentDisabled:y,segmented:w,statistic:x,spin:S,calendar:k,carousel:C,cascader:E,collapse:O,typography:D,checkbox:$,descriptions:j,divider:P,drawer:_,skeleton:N,steps:I,image:T,layout:F,list:A,mentions:R,modal:M,progress:L,result:z,slider:H,breadcrumb:W,menu:U,pagination:V,input:G,empty:q,badge:X,radio:K,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ie,timePicker:ae,upload:le,notification:se,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:ge,warning:me}=e,be=B.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||m.getPrefixCls("");return t?`${o}-${t}`:o}),[m.getPrefixCls,e.prefixCls]),ve=b||m.iconPrefixCls||_y,ye=n||m.csp;fw(ve,ye);const we=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:jy;return Lh((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Vh(e,t[n],!0)))))}(v,m.theme),xe={csp:ye,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=p?p:f,popupOverflow:h,getPrefixCls:be,iconPrefixCls:ve,theme:we,segmented:w,statistic:x,spin:S,calendar:k,carousel:C,cascader:E,collapse:O,typography:D,checkbox:$,descriptions:j,divider:P,drawer:_,skeleton:N,steps:I,image:T,input:G,layout:F,list:A,mentions:R,modal:M,progress:L,result:z,slider:H,breadcrumb:W,menu:U,pagination:V,empty:q,badge:X,radio:K,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ie,timePicker:ae,upload:le,notification:se,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:ge,warning:me},Se=Object.assign({},m);Object.keys(xe).forEach((e=>{void 0!==xe[e]&&(Se[e]=xe[e])})),fx.forEach((t=>{const n=e[t];n&&(Se[t]=n)}));const ke=Lh((()=>Se),Se,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ce=B.useMemo((()=>({prefixCls:ve,csp:ye})),[ve,ye]);let Ee=B.createElement(B.Fragment,null,B.createElement(dx,{dropdownMatchSelectWidth:f}),t);const Oe=B.useMemo((()=>{var e,t,n,r;return vv((null===(e=Ov.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=ke.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=ke.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[ke,null==a?void 0:a.validateMessages]);Object.keys(Oe).length>0&&(Ee=B.createElement(Sv.Provider,{value:Oe},Ee)),l&&(Ee=B.createElement(Iv,{locale:l,_ANT_MARK__:"internalMark"},Ee)),(ve||ye)&&(Ee=B.createElement(dv.Provider,{value:Ce},Ee)),s&&(Ee=B.createElement(Ly,{size:s},Ee)),Ee=B.createElement(ux,null,Ee);const De=B.useMemo((()=>{const e=we||{},{algorithm:t,token:n,components:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?wg(t):$y,a={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=wg(r.algorithm)),delete r.algorithm),a[t]=r}));const l=Object.assign(Object.assign({},yy),n);return Object.assign(Object.assign({},o),{theme:i,token:l,components:a,override:Object.assign({override:l},a)})}),[we]);return v&&(Ee=B.createElement(Py.Provider,{value:De},Ee)),ke.warning&&(Ee=B.createElement(wv.Provider,{value:ke.warning},Ee)),void 0!==y&&(Ee=B.createElement(Ay,{disabled:y},Ee)),B.createElement(Ny.Provider,{value:ke},Ee)},wx=e=>{const t=B.useContext(Ny),n=B.useContext(_v);return B.createElement(yx,Object.assign({parentContext:t,legacyLocale:n},e))};wx.ConfigContext=Ny,wx.SizeContext=zy,wx.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(px=t),void 0!==n&&(hx=n),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?gx=r:Ty(mx(),r))},wx.useConfig=function(){return{componentDisabled:B.useContext(Ry),componentSize:B.useContext(zy)}},Object.defineProperty(wx,"SizeContext",{get:()=>zy});const xx=wx;const Sx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function kx(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Cx(e){return function(e){return kx(e)instanceof ShadowRoot}(e)?kx(e):null}function Ex(e){return"object"===kd(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===kd(e.icon)||"function"==typeof e.icon)}function Ox(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function Dx(e,t,n){return n?H.createElement(e.tag,Rh(Rh({key:t},Ox(e.attrs)),n),(e.children||[]).map((function(n,r){return Dx(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):H.createElement(e.tag,Rh({key:t},Ox(e.attrs)),(e.children||[]).map((function(n,r){return Dx(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function $x(e){return fy(e)[0]}function jx(e){return e?Array.isArray(e)?e:[e]:[]}var Px=["icon","className","onClick","style","primaryColor","secondaryColor"],_x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Nx=function(e){var t,n,r,o,i,a,l,s=e.icon,c=e.className,u=e.onClick,d=e.style,f=e.primaryColor,p=e.secondaryColor,h=Od(e,Px),g=B.useRef(),m=_x;if(f&&(m={primaryColor:f,secondaryColor:p||$x(f)}),t=g,n=B.useContext(dv),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(i=i.replace(/anticon/g,o)),B.useEffect((function(){var e=Cx(t.current);fg(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),a=Ex(s),l="icon should be icon definiton, but got ".concat(s),Uh(a,"[@ant-design/icons] ".concat(l)),!Ex(s))return null;var b=s;return b&&"function"==typeof b.icon&&(b=Rh(Rh({},b),{},{icon:b.icon(m.primaryColor,m.secondaryColor)})),Dx(b.icon,"svg-".concat(b.name),Rh(Rh({className:c,onClick:u,style:d,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:g}))};Nx.displayName="IconReact",Nx.getTwoToneColors=function(){return Rh({},_x)},Nx.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;_x.primaryColor=t,_x.secondaryColor=n||$x(t),_x.calculated=!!n};const Ix=Nx;function Tx(e){var t=gg(jx(e),2),n=t[0],r=t[1];return Ix.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Fx=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Tx(my.primary);var Ax=B.forwardRef((function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=Od(e,Fx),d=B.useContext(dv),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,g=Km(h,p,(Ed(n={},"".concat(p,"-").concat(o.name),!!o.name),Ed(n,"".concat(p,"-spin"),!!i||"loading"===o.name),n),r),m=l;void 0===m&&s&&(m=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,v=gg(jx(c),2),y=v[0],w=v[1];return B.createElement("span",Jp({role:"img","aria-label":o.name},u,{ref:t,tabIndex:m,onClick:s,className:g}),B.createElement(Ix,{icon:o,primaryColor:y,secondaryColor:w,style:b}))}));Ax.displayName="AntdIcon",Ax.getTwoToneColor=function(){var e=Ix.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ax.setTwoToneColor=Tx;const Rx=Ax;var Mx=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:Sx}))};const Lx=B.forwardRef(Mx);const zx={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var Bx=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:zx}))};const Hx=B.forwardRef(Bx);const Wx={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var Ux=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:Wx}))};const Vx=B.forwardRef(Ux);const Gx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var qx=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:Gx}))};const Xx=B.forwardRef(qx);const Kx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var Yx=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:Kx}))};const Qx=B.forwardRef(Yx);var Jx="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),Zx="aria-",eS="data-";function tS(e,t){return 0===e.indexOf(t)}function nS(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Rh({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||tS(n,Zx))||t.data&&tS(n,eS)||t.attr&&Jx.includes(n))&&(r[n]=e[n])})),r}const{isValidElement:rS}=W;function oS(e){return e&&rS(e)&&e.type===B.Fragment}function iS(e,t,n){return rS(e)?B.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function aS(e,t){return iS(e,e,t)}const lS=(e,t,n,r,o)=>({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),sS=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},nw(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n padding-top ${n} ${c}, padding-bottom ${n} ${c},\n margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},cS=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":lS(o,r,n,e,t),"&-info":lS(p,f,d,e,t),"&-warning":lS(l,a,i,e,t),"&-error":Object.assign(Object.assign({},lS(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},uS=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},dS=e=>[sS(e),cS(e),uS(e)],fS=pw("Alert",(e=>[dS(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})));const pS={success:Lx,info:Qx,error:Hx,warning:Xx},hS=e=>{const{icon:t,prefixCls:n,type:r}=e,o=pS[r]||null;return t?iS(t,B.createElement("span",{className:`${n}-icon`},t),(()=>({className:Km(`${n}-icon`,{[t.props.className]:t.props.className})}))):B.createElement(o,{className:`${n}-icon`})},gS=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o}=e,i=!0===r||void 0===r?B.createElement(Vx,null):r;return t?B.createElement("button",{type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i):null},mS=e=>{const{description:t,prefixCls:n,message:r,banner:o,className:i,rootClassName:a,style:l,onMouseEnter:s,onMouseLeave:c,onClick:u,afterClose:d,showIcon:f,closable:p,closeText:h,closeIcon:g,action:m}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[v,y]=B.useState(!1),w=B.useRef(null),{getPrefixCls:x,direction:S,alert:k}=B.useContext(Ny),C=x("alert",n),[E,O]=fS(C),D=t=>{var n;y(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},$=B.useMemo((()=>void 0!==e.type?e.type:o?"warning":"info"),[e.type,o]),j=B.useMemo((()=>!!h||("boolean"==typeof p?p:!1!==g&&null!=g)),[h,g,p]),P=!(!o||void 0!==f)||f,_=Km(C,`${C}-${$}`,{[`${C}-with-description`]:!!t,[`${C}-no-icon`]:!P,[`${C}-banner`]:!!o,[`${C}-rtl`]:"rtl"===S},null==k?void 0:k.className,i,a,O),N=nS(b,{aria:!0,data:!0});return E(B.createElement(Zw,{visible:!v,motionName:`${C}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:d},(n=>{let{className:o,style:i}=n;return B.createElement("div",Object.assign({ref:w,"data-show":!v,className:Km(_,o),style:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.style),l),i),onMouseEnter:s,onMouseLeave:c,onClick:u,role:"alert"},N),P?B.createElement(hS,{description:t,icon:e.icon,prefixCls:C,type:$}):null,B.createElement("div",{className:`${C}-content`},r?B.createElement("div",{className:`${C}-message`},r):null,t?B.createElement("div",{className:`${C}-description`},t):null),m?B.createElement("div",{className:`${C}-action`},m):null,B.createElement(gS,{isClosable:j,prefixCls:C,closeIcon:h||g,handleClose:D}))})))};const bS=function(e){Xb(n,B.Component);var t=Jb(n);function n(){var e;return gf(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return bf(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,children:n}=this.props,{error:r,info:o}=this.state,i=o&&o.componentStack?o.componentStack:null,a=void 0===e?(r||"").toString():e,l=void 0===t?i:t;return r?B.createElement(mS,{type:"error",message:a,description:B.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},l)}):n}}]),n}(),vS=mS;vS.ErrorBoundary=bS;const yS=vS,wS=e=>"object"==typeof e&&null!=e&&1===e.nodeType,xS=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,SS=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return xS(n.overflowY,t)||xS(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},kS=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,CS=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},ES=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!wS(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;wS(h)&&d(h);){if(h=CS(h),h===f){p.push(h);break}null!=h&&h===document.body&&SS(h)&&!SS(document.documentElement)||null!=h&&SS(h,u)&&p.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:w,top:x,right:S,bottom:k,left:C}=e.getBoundingClientRect(),{top:E,right:O,bottom:D,left:$}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let j="start"===l||"nearest"===l?x-E:"end"===l?k+D:x+y/2-E+D,P="center"===s?C+w/2-$+O:"end"===s?S+O:C-$;const _=[];for(let N=0;N<p.length;N++){const e=p[N],{height:t,width:n,top:r,right:o,bottom:i,left:c}=e.getBoundingClientRect();if("if-needed"===a&&x>=0&&C>=0&&k<=m&&S<=g&&x>=r&&k<=i&&C>=c&&S<=o)return _;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),O=parseInt(u.borderBottomWidth,10);let D=0,$=0;const I="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-O:0,F="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,A="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(f===e)D="start"===l?j:"end"===l?j-m:"nearest"===l?kS(v,v+m,m,h,O,v+j,v+j+y,y):j-m/2,$="start"===s?P:"center"===s?P-g/2:"end"===s?P-g:kS(b,b+g,g,d,E,b+P,b+P+w,w),D=Math.max(0,D+v),$=Math.max(0,$+b);else{D="start"===l?j-r-h:"end"===l?j-i+O+T:"nearest"===l?kS(r,i,t,h,O+T,j,j+y,y):j-(r+t/2)+T/2,$="start"===s?P-c-d:"center"===s?P-(c+n/2)+I/2:"end"===s?P-o+E+I:kS(c,o,n,d,E+I,P,P+w,w);const{scrollLeft:a,scrollTop:u}=e;D=0===A?0:Math.max(0,Math.min(u+D/A,e.scrollHeight-t/A+T)),$=0===F?0:Math.max(0,Math.min(a+$/F,e.scrollWidth-n/F+I)),j+=u-D,P+=a-$}_.push({el:e,top:D,left:$})}return _},OS=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};var DS={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=DS.F1&&t<=DS.F12)return!1;switch(t){case DS.ALT:case DS.CAPS_LOCK:case DS.CONTEXT_MENU:case DS.CTRL:case DS.DOWN:case DS.END:case DS.ESC:case DS.HOME:case DS.INSERT:case DS.LEFT:case DS.MAC_FF_META:case DS.META:case DS.NUMLOCK:case DS.NUM_CENTER:case DS.PAGE_DOWN:case DS.PAGE_UP:case DS.PAUSE:case DS.PRINT_SCREEN:case DS.RIGHT:case DS.SHIFT:case DS.UP:case DS.WIN_KEY:case DS.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=DS.ZERO&&e<=DS.NINE)return!0;if(e>=DS.NUM_ZERO&&e<=DS.NUM_MULTIPLY)return!0;if(e>=DS.A&&e<=DS.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case DS.SPACE:case DS.QUESTION_MARK:case DS.NUM_PLUS:case DS.NUM_MINUS:case DS.NUM_PERIOD:case DS.NUM_DIVISION:case DS.SEMICOLON:case DS.DASH:case DS.EQUALS:case DS.COMMA:case DS.PERIOD:case DS.SLASH:case DS.APOSTROPHE:case DS.SINGLE_QUOTE:case DS.OPEN_SQUARE_BRACKET:case DS.BACKSLASH:case DS.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},$S=B.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,l=e.eventKey,s=e.content,c=e.closable,u=e.closeIcon,d=void 0===u?"x":u,f=e.props,p=e.onClick,h=e.onNoticeClose,g=e.times,m=e.hovering,b=gg(B.useState(!1),2),v=b[0],y=b[1],w=m||v,x=function(){h(l)};B.useEffect((function(){if(!w&&a>0){var e=setTimeout((function(){x()}),1e3*a);return function(){clearTimeout(e)}}}),[a,w,g]);var S="".concat(n,"-notice");return B.createElement("div",Jp({},f,{ref:t,className:Km(S,o,Ed({},"".concat(S,"-closable"),c)),style:r,onMouseEnter:function(e){var t;y(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;y(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:p}),B.createElement("div",{className:"".concat(S,"-content")},s),c&&B.createElement("a",{tabIndex:0,className:"".concat(S,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==DS.ENTER||x()},onClick:function(e){e.preventDefault(),e.stopPropagation(),x()}},d))})),jS=H.createContext({}),PS=function(e){var t=e.children,n=e.classNames;return H.createElement(jS.Provider,{value:{classNames:n}},t)},_S=["className","style","classNames","styles"],NS=function(e){var t,n,r,o,i,a,l=e.configList,s=e.placement,c=e.prefixCls,u=e.className,d=e.style,f=e.motion,p=e.onAllNoticeRemoved,h=e.onNoticeClose,g=e.stack,m=B.useContext(jS).classNames,b=B.useRef({}),v=gg(B.useState(null),2),y=v[0],w=v[1],x=gg(B.useState([]),2),S=x[0],k=x[1],C=l.map((function(e){return{config:e,key:String(e.key)}})),E=gg((a={offset:8,threshold:3,gap:16},(n=g)&&"object"===kd(n)&&(a.offset=null!==(r=n.offset)&&void 0!==r?r:8,a.threshold=null!==(o=n.threshold)&&void 0!==o?o:3,a.gap=null!==(i=n.gap)&&void 0!==i?i:16),[!!n,a]),2),O=E[0],D=E[1],$=D.offset,j=D.threshold,P=D.gap,_=O&&(S.length>0||C.length<=j),N="function"==typeof f?f(s):f;return B.useEffect((function(){O&&S.length>1&&k((function(e){return e.filter((function(e){return C.some((function(t){var n=t.key;return e===n}))}))}))}),[S,C,O]),B.useEffect((function(){var e,t;O&&b.current[null===(e=C[C.length-1])||void 0===e?void 0:e.key]&&w(b.current[null===(t=C[C.length-1])||void 0===t?void 0:t.key])}),[C,O]),H.createElement(cx,Jp({key:s,className:Km(c,"".concat(c,"-").concat(s),null==m?void 0:m.list,u,(t={},Ed(t,"".concat(c,"-stack"),!!O),Ed(t,"".concat(c,"-stack-expanded"),_),t)),style:d,keys:C,motionAppear:!0},N,{onAllRemoved:function(){p(s)}}),(function(e,t){var n=e.config,r=e.className,o=e.style,i=e.index,a=n,l=a.key,u=a.times,d=String(l),f=n,p=f.className,g=f.style,v=f.classNames,w=f.styles,x=Od(f,_S),E=C.findIndex((function(e){return e.key===d})),D={};if(O){var j=C.length-1-(E>-1?E:i-1),N="top"===s||"bottom"===s?"-50%":"0";if(j>0){var I,T,F;D.height=_?null===(I=b.current[d])||void 0===I?void 0:I.offsetHeight:null==y?void 0:y.offsetHeight;for(var A=0,R=0;R<j;R++){var M;A+=(null===(M=b.current[C[C.length-1-R].key])||void 0===M?void 0:M.offsetHeight)+P}var L=(_?A:j*$)*(s.startsWith("top")?1:-1),z=!_&&null!=y&&y.offsetWidth&&null!==(T=b.current[d])&&void 0!==T&&T.offsetWidth?((null==y?void 0:y.offsetWidth)-2*$*(j<3?j:3))/(null===(F=b.current[d])||void 0===F?void 0:F.offsetWidth):1;D.transform="translate3d(".concat(N,", ").concat(L,"px, 0) scaleX(").concat(z,")")}else D.transform="translate3d(".concat(N,", 0, 0)")}return H.createElement("div",{ref:t,className:Km("".concat(c,"-notice-wrapper"),r,null==v?void 0:v.wrapper),style:Rh(Rh(Rh({},o),D),null==w?void 0:w.wrapper),onMouseEnter:function(){return k((function(e){return e.includes(d)?e:[].concat(Fh(e),[d])}))},onMouseLeave:function(){return k((function(e){return e.filter((function(e){return e!==d}))}))}},H.createElement($S,Jp({},x,{ref:function(e){E>-1?b.current[d]=e:delete b.current[d]},prefixCls:c,classNames:v,styles:w,className:Km(p,null==m?void 0:m.notice),style:g,times:u,key:l,eventKey:l,onNoticeClose:h,hovering:O&&S.length>0})))}))},IS=B.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=gg(B.useState([]),2),p=f[0],h=f[1],g=function(e){var t,n=p.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),h((function(t){return t.filter((function(t){return t.key!==e}))}))};B.useImperativeHandle(t,(function(){return{open:function(e){h((function(t){var n,r=Fh(t),o=r.findIndex((function(t){return t.key===e.key})),i=Rh({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return a>0&&r.length>a&&(r=r.slice(-a)),r}))},close:function(e){g(e)},destroy:function(){h([])}}}));var m=gg(B.useState({}),2),b=m[0],v=m[1];B.useEffect((function(){var e={};p.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),v(e)}),[p]);var y=function(e){v((function(t){var n=Rh({},t);return(n[e]||[]).length||delete n[e],n}))},w=B.useRef(!1);if(B.useEffect((function(){Object.keys(b).length>0?w.current=!0:w.current&&(null==c||c(),w.current=!1)}),[b]),!o)return null;var x=Object.keys(b);return vd.createPortal(B.createElement(B.Fragment,null,x.map((function(e){var t=b[e],n=B.createElement(NS,{key:e,configList:t,placement:e,prefixCls:r,className:null==l?void 0:l(e),style:null==s?void 0:s(e),motion:i,onNoticeClose:g,onAllNoticeRemoved:y,stack:u});return d?d(n,{prefixCls:r,key:e}):n}))),o)})),TS=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],FS=function(){return document.body},AS=0;function RS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?FS:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=Od(e,TS),f=gg(B.useState(),2),p=f[0],h=f[1],g=B.useRef(),m=B.createElement(IS,{container:p,ref:g,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),b=gg(B.useState([]),2),v=b[0],y=b[1],w=B.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(AS),AS+=1),y((function(e){return[].concat(Fh(e),[{type:"open",config:t}])}))},close:function(e){y((function(t){return[].concat(Fh(t),[{type:"close",key:e}])}))},destroy:function(){y((function(e){return[].concat(Fh(e),[{type:"destroy"}])}))}}}),[]);return B.useEffect((function(){h(n())})),B.useEffect((function(){g.current&&v.length&&(v.forEach((function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}})),y((function(e){return e.filter((function(e){return!v.includes(e)}))})))}),[v]),[w,m]}const MS={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var LS=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:MS}))};const zS=B.forwardRef(LS),BS=H.createContext(void 0),HS=100,WS=1e3,US={Modal:HS,Drawer:HS,Popover:HS,Popconfirm:HS,Tooltip:HS,Tour:HS},VS={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function GS(e,t){const[,n]=Ky(),r=H.useContext(BS),o=e in US;if(void 0!==t)return[t,t];let i=null!=r?r:0;return o?(i+=(r?0:n.zIndexPopupBase)+US[e],i=Math.min(i,n.zIndexPopupBase+WS)):i+=VS[e],[void 0===r?t:i,i]}const qS=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,v=`${t}-notice`,y=new Bm("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new Bm("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${v}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},nw(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},XS=pw("Message",(e=>{const t=cw(e,{height:150});return[qS(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+WS+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));const KS={info:B.createElement(Qx,null),success:B.createElement(Lx,null),error:B.createElement(Hx,null),warning:B.createElement(Xx,null),loading:B.createElement(zS,null)},YS=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return B.createElement("div",{className:Km(`${t}-custom-content`,`${t}-${n}`)},r||KS[n],B.createElement("span",null,o))},QS=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=B.useContext(Ny),s=t||l("message"),[,c]=XS(s);return B.createElement($S,Object.assign({},a,{prefixCls:s,className:Km(n,c,`${s}-notice-pure-panel`),eventKey:"pure",duration:null,content:B.createElement(YS,{prefixCls:s,type:r,icon:o},i)}))};function JS(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var ZS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ek=3,tk=e=>{let{children:t,prefixCls:n}=e;const[,r]=XS(n);return B.createElement(PS,{classNames:{list:r,notice:r}},t)},nk=(e,t)=>{let{prefixCls:n,key:r}=t;return B.createElement(tk,{prefixCls:n,key:r},e)},rk=B.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=ek,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f}=B.useContext(Ny),p=r||u("message"),h=B.createElement("span",{className:`${p}-close-x`},B.createElement(Vx,{className:`${p}-close-icon`})),[g,m]=RS({prefixCls:p,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>Km({[`${p}-rtl`]:l}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(p,s),closable:!1,closeIcon:h,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:nk});return B.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:p,message:f}))),m}));let ok=0;function ik(e){const t=B.useRef(null);xv();return[B.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,a=`${o}-notice`,{content:l,icon:s,type:c,key:u,className:d,style:f,onClose:p}=n,h=ZS(n,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(ok+=1,g=`antd-message-${ok}`),JS((t=>(r(Object.assign(Object.assign({},h),{key:g,content:B.createElement(YS,{prefixCls:o,type:c,icon:s},l),placement:"top",className:Km(c&&`${a}-${c}`,d,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),f),onClose:()=>{null==p||p(),t()}})),()=>{e(g)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(a=r,l=o);const s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(s)}})),r}),[]),B.createElement(rk,Object.assign({key:"message-holder"},e,{ref:t}))]}function ak(e){return ik(e)}function lk(){lk=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(N){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function b(){}function v(){}function y(){}var w={};c(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(_([])));S&&S!==n&&r.call(S,a)&&(w=S);var k=y.prototype=b.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==kd(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=D(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?g:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function D(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function _(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(kd(t)+" is not iterable")}return v.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(E.prototype),c(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(k),c(k,s,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function sk(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function ck(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){sk(i,r,o,a,l,"next",e)}function l(e){sk(i,r,o,a,l,"throw",e)}a(void 0)}))}}var uk,dk=Rh({},wd),fk=dk.version,pk=dk.render,hk=dk.unmountComponentAtNode;try{Number((fk||"").split(".")[0])>=18&&(uk=dk.createRoot)}catch(GY){}function gk(e){var t=dk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===kd(t)&&(t.usingClientEntryPoint=e)}var mk="__rc_react_root__";function bk(e,t){uk?function(e,t){gk(!0);var n=t[mk]||uk(t);gk(!1),n.render(e),t[mk]=n}(e,t):function(e,t){pk(e,t)}(e,t)}function vk(e){return yk.apply(this,arguments)}function yk(){return(yk=ck(lk().mark((function e(t){return lk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[mk])||void 0===e||e.unmount(),delete t[mk]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wk(e){hk(e)}function xk(e){return Sk.apply(this,arguments)}function Sk(){return(Sk=ck(lk().mark((function e(t){return lk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===uk){e.next=2;break}return e.abrupt("return",vk(t));case 2:wk(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const kk=()=>({height:0,opacity:0}),Ck=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ek=e=>({height:e?e.offsetHeight:0}),Ok=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Dk=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:kk,onEnterStart:kk,onAppearActive:Ck,onEnterActive:Ck,onLeaveStart:Ek,onLeaveActive:kk,onAppearEnd:Ok,onEnterEnd:Ok,onLeaveEnd:Ok,motionDeadline:500}},$k=(e,t,n)=>void 0!==n?n:`${e}-${t}`,jk=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},Pk=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},_k=pw("Wave",(e=>[Pk(e)]));function Nk(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const Ik="ant-wave-target";function Tk(e){return Number.isNaN(e)?0:e}const Fk=e=>{const{className:t,target:n,component:r}=e,o=B.useRef(null),[i,a]=B.useState(null),[l,s]=B.useState([]),[c,u]=B.useState(0),[d,f]=B.useState(0),[p,h]=B.useState(0),[g,m]=B.useState(0),[b,v]=B.useState(!1),y={left:c,top:d,width:p,height:g,borderRadius:l.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Nk(t)?t:Nk(n)?n:Nk(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:Tk(-parseFloat(r))),f(t?n.offsetTop:Tk(-parseFloat(o))),h(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;s([i,l,d,c].map((e=>Tk(parseFloat(e)))))}if(i&&(y["--wave-color"]=i),B.useEffect((()=>{if(n){const e=uv((()=>{w(),v(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{uv.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(Ik));return B.createElement(Zw,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;xk(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return B.createElement("div",{ref:o,className:Km(t,{"wave-quick":x},n),style:y})}))},Ak=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),bk(B.createElement(Fk,Object.assign({},t,{target:e})),o)};const Rk=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=B.useContext(Ny),i=B.useRef(null),a=o("wave"),[,l]=_k(a),s=function(e,t,n){const{wave:r}=B.useContext(Ny),[,o,i]=Ky(),a=Yy((a=>{const l=e.current;if((null==r?void 0:r.disabled)||!l)return;const s=l.querySelector(`.${Ik}`)||l,{showEffect:c}=r||{};(c||Ak)(s,{className:t,token:o,component:n,event:a,hashId:i})})),l=B.useRef();return e=>{uv.cancel(l.current),l.current=uv((()=>{a(e)}))}}(i,Km(a,l),r);if(H.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!jk(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!H.isValidElement(t))return null!=t?t:null;return aS(t,{ref:xb(t)?yb(t.ref,i):i})},Mk=e=>{const t=H.useContext(zy);return H.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},Lk=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},zk=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},Bk=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Hk=pw("Space",(e=>{const t=cw(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[zk(t),Bk(t),Lk(t)]}),(()=>({})),{resetStyle:!1});var Wk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Uk=B.createContext(null),Vk=(e,t)=>{const n=B.useContext(Uk),r=B.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return Km(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},Gk=e=>{let{children:t}=e;return B.createElement(Uk.Provider,{value:null},t)},qk=e=>{var{children:t}=e,n=Wk(e,["children"]);return B.createElement(Uk.Provider,{value:n},t)},Xk=e=>{const{getPrefixCls:t,direction:n}=B.useContext(Ny),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:c}=e,u=Wk(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Mk((e=>null!=r?r:e)),f=t("space-compact",a),[p,h]=Hk(f),g=Km(f,h,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:i,[`${f}-vertical`]:"vertical"===o},l,s),m=B.useContext(Uk),b=gb(c),v=B.useMemo((()=>b.map(((e,t)=>{const n=e&&e.key||`${f}-item-${t}`;return B.createElement(qk,{key:n,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!m||(null==m?void 0:m.isFirstItem)),isLastItem:t===b.length-1&&(!m||(null==m?void 0:m.isLastItem))},e)}))),[r,b,m]);return 0===b.length?null:p(B.createElement("div",Object.assign({className:g},u),v))};const Kk=B.createContext(void 0),Yk=e=>{const{getPrefixCls:t,direction:n}=B.useContext(Ny),{prefixCls:r,size:o,className:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Ky();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=Km(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:"rtl"===n},i,s);return B.createElement(Kk.Provider,{value:o},B.createElement("div",Object.assign({},a,{className:u})))},Qk=/^[\u4e00-\u9fa5]{2}$/,Jk=Qk.test.bind(Qk);function Zk(e){return"danger"===e?{danger:!0}:{type:e}}function eC(e){return"string"==typeof e}function tC(e){return"text"===e||"link"===e}function nC(e,t){let n=!1;const r=[];return H.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),H.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&eC(e.type)&&Jk(e.props.children)?aS(e,{children:e.props.children.split("").join(n)}):eC(e)?Jk(e)?H.createElement("span",null,e.split("").join(n)):H.createElement("span",null,e):oS(e)?H.createElement("span",null,e):e}(e,t)))}const rC=B.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=Km(`${i}-icon`,n);return H.createElement("span",{ref:t,className:a,style:r},o)})),oC=B.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=Km(`${n}-loading-icon`,r);return H.createElement(rC,{prefixCls:n,className:a,style:o,ref:t},H.createElement(zS,{className:i}))})),iC=()=>({width:0,opacity:0,transform:"scale(0)"}),aC=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),lC=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?H.createElement(oC,{prefixCls:t,className:o,style:i}):H.createElement(Zw,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:iC,onAppearActive:aC,onEnterStart:iC,onEnterActive:aC,onLeaveStart:aC,onLeaveActive:iC},((e,n)=>{let{className:r,style:a}=e;return H.createElement(oC,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))},sC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),cC=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},sC(`${t}-primary`,o),sC(`${t}-danger`,i)]}},uC=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},aw(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},dC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),fC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),hC=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),gC=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},dC(e,Object.assign({backgroundColor:t},a),Object.assign({backgroundColor:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),mC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},hC(e))}),bC=e=>Object.assign({},mC(e)),vC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),yC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bC(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),dC(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),gC(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},dC(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),mC(e))}),wC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bC(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),dC(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),gC(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},dC(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),gC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mC(e))}),xC=e=>Object.assign(Object.assign({},yC(e)),{borderStyle:"dashed"}),SC=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},dC(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),vC(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},dC(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),vC(e))}),kC=e=>Object.assign(Object.assign(Object.assign({},dC(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),vC(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},vC(e)),dC(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),CC=e=>{const{componentCls:t}=e;return{[`${t}-default`]:yC(e),[`${t}-primary`]:wC(e),[`${t}-dashed`]:xC(e),[`${t}-link`]:SC(e),[`${t}-text`]:kC(e),[`${t}-ghost`]:gC(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},EC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c}=e;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${Math.max(0,(r-o*i)/2-a)}px ${s}px`,borderRadius:l,[`&${`${n}-icon-only`}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:fC(e)},{[`${n}${n}-round${t}`]:pC(e)}]},OC=e=>EC(cw(e,{fontSize:e.contentFontSize})),DC=e=>{const t=cw(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return EC(t,`${e.componentCls}-sm`)},$C=e=>{const t=cw(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return EC(t,`${e.componentCls}-lg`)},jC=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},PC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return cw(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},_C=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),NC=pw("Button",(e=>{const t=PC(e);return[uC(t),DC(t),OC(t),$C(t),jC(t),CC(t),cC(t)]}),_C);function IC(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function TC(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function FC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},IC(e,r,t)),TC(n,r,t))}}function AC(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function RC(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},AC(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const MC=hw(["Button","compact"],(e=>{const t=PC(e);return[FC(t),RC(t)]}),_C);const LC=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:s="default",size:c,styles:u,disabled:d,className:f,rootClassName:p,children:h,icon:g,ghost:m=!1,block:b=!1,htmlType:v="button",classNames:y,style:w={}}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:S,autoInsertSpaceInButton:k,direction:C,button:E}=B.useContext(Ny),O=S("btn",i),[D,$]=NC(O),j=B.useContext(Ry),P=null!=d?d:j,_=B.useContext(Kk),N=B.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o)),[o]),[I,T]=B.useState(N.loading),[F,A]=B.useState(!1),R=yb(t,B.createRef()),M=1===B.Children.count(h)&&!g&&!tC(a);B.useEffect((()=>{let e=null;return N.delay>0?e=setTimeout((()=>{e=null,T(!0)}),N.delay):T(N.loading),function(){e&&(clearTimeout(e),e=null)}}),[N]),B.useEffect((()=>{if(!R||!R.current||!1===k)return;const e=R.current.textContent;M&&Jk(e)?F||A(!0):F&&A(!1)}),[R]);const L=t=>{const{onClick:n}=e;I||P?t.preventDefault():null==n||n(t)},z=!1!==k,{compactSize:W,compactItemClassnames:U}=Vk(O,C),V=Mk((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:W)&&void 0!==t?t:_)&&void 0!==n?n:e})),G=V&&{large:"lg",small:"sm",middle:void 0}[V]||"",q=I?"loading":g,X=ov(x,["navigate"]),K=Km(O,$,{[`${O}-${s}`]:"default"!==s&&s,[`${O}-${a}`]:a,[`${O}-${G}`]:G,[`${O}-icon-only`]:!h&&0!==h&&!!q,[`${O}-background-ghost`]:m&&!tC(a),[`${O}-loading`]:I,[`${O}-two-chinese-chars`]:F&&z&&!I,[`${O}-block`]:b,[`${O}-dangerous`]:!!l,[`${O}-rtl`]:"rtl"===C},U,f,p,null==E?void 0:E.className),Y=Object.assign(Object.assign({},null==E?void 0:E.style),w),Q=Km(null==y?void 0:y.icon,null===(n=null==E?void 0:E.classNames)||void 0===n?void 0:n.icon),J=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==E?void 0:E.styles)||void 0===r?void 0:r.icon)||{}),Z=g&&!I?H.createElement(rC,{prefixCls:O,className:Q,style:J},g):H.createElement(lC,{existIcon:!!g,prefixCls:O,loading:!!I}),ee=h||0===h?nC(h,M&&z):null;if(void 0!==X.href)return D(H.createElement("a",Object.assign({},X,{className:Km(K,{[`${O}-disabled`]:P}),href:P?void 0:X.href,style:Y,onClick:L,ref:R,tabIndex:P?-1:0}),Z,ee));let te=H.createElement("button",Object.assign({},x,{type:v,className:K,style:Y,onClick:L,disabled:P,ref:R}),Z,ee,U&&H.createElement(MC,{key:"compact",prefixCls:O}));return tC(a)||(te=H.createElement(Rk,{component:"Button",disabled:!!I},te)),D(te)},zC=B.forwardRef(LC);zC.Group=Yk,zC.__ANT_BUTTON=!0;const BC=zC;function HC(e){return!(!e||!e.then)}const WC=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,d=B.useRef(!1),f=B.useRef(null),[p,h]=Qy(!1),g=function(){null==i||i.apply(void 0,arguments)};B.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return B.createElement(BC,Object.assign({},Zk(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(l){if(t=u(e),c&&!HC(t))return d.current=!1,void g(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!t)return void g();(e=>{HC(e)&&(h(!0),e.then((function(){h(!1,!0),g.apply(void 0,arguments),d.current=!1}),(e=>{if(h(!1,!0),d.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:p,prefixCls:r},o,{ref:f}),n)},UC=H.createContext({}),{Provider:VC}=UC,GC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=B.useContext(UC);return o?H.createElement(WC,{isSilent:r,actionFn:l,close:function(){null==a||a.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},qC=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=B.useContext(UC);return H.createElement(WC,{isSilent:n,type:a||"primary",actionFn:s,close:function(){null==t||t.apply(void 0,arguments),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)};var XC,KC=B.createContext(null),YC=[];function QC(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===XC){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),XC=o-i}return XC}():n}var JC="rc-util-locker-".concat(Date.now()),ZC=0;function eE(e){var t=!!e,n=gg(B.useState((function(){return ZC+=1,"".concat(JC,"_").concat(ZC)})),1)[0];Pg((function(){if(t){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:QC(n),height:QC(r)}}(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;fg("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else dg(n);return function(){dg(n)}}),[t,n])}var tE=!1;var nE=function(e){return!1!==e&&(eg()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},rE=B.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=void 0===i||i,l=e.children,s=gg(B.useState(n),2),c=s[0],u=s[1],d=c||n;B.useEffect((function(){(a||n)&&u(n)}),[n,a]);var f=gg(B.useState((function(){return nE(o)})),2),p=f[0],h=f[1];B.useEffect((function(){var e=nE(o);h(null!=e?e:null)}));var g=function(e,t){var n=gg(B.useState((function(){return eg()?document.createElement("div"):null})),1)[0],r=B.useRef(!1),o=B.useContext(KC),i=gg(B.useState(YC),2),a=i[0],l=i[1],s=o||(r.current?void 0:function(e){l((function(t){return[e].concat(Fh(t))}))});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Pg((function(){return e?o?o(c):c():u(),u}),[e]),Pg((function(){a.length&&(a.forEach((function(e){return e()})),l(YC))}),[a]),[n,s]}(d&&!p),m=gg(g,2),b=m[0],v=m[1],y=null!=p?p:b;eE(r&&n&&eg()&&(y===b||y===document.body));var w=null;l&&xb(l)&&t&&(w=l.ref);var x=wb(w,t);if(!d||!eg()||void 0===p)return null;var S,k=!1===y||("boolean"==typeof S&&(tE=S),tE),C=l;return t&&(C=B.cloneElement(l,{ref:x})),B.createElement(KC.Provider,{value:v},k?C:vd.createPortal(C,y))})),oE=B.createContext({});var iE=0,aE=Rh({},W).useId;const lE=aE?function(e){var t=aE();return e||t}:function(e){var t=gg(B.useState("ssr-id"),2),n=t[0],r=t[1];return B.useEffect((function(){var e=iE;iE+=1,r("rc_unique_".concat(e))}),[]),e||n};function sE(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function cE(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const uE=B.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var dE={width:0,height:0,overflow:"hidden",outline:"none"},fE=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,h=e.modalRender,g=e.onMouseDown,m=e.onMouseUp,b=e.holderRef,v=e.visible,y=e.forceRender,w=e.width,x=e.height,S=e.classNames,k=e.styles,C=wb(b,H.useContext(oE).panel),E=B.useRef(),O=B.useRef();H.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?E.current.focus():e||t!==E.current||O.current.focus()}}}));var D,$,j,P={};void 0!==w&&(P.width=w),void 0!==x&&(P.height=x),l&&(D=H.createElement("div",{className:Km("".concat(n,"-footer"),null==S?void 0:S.footer),style:Rh({},null==k?void 0:k.footer)},l)),i&&($=H.createElement("div",{className:Km("".concat(n,"-header"),null==S?void 0:S.header),style:Rh({},null==k?void 0:k.header)},H.createElement("div",{className:"".concat(n,"-title"),id:a},i))),s&&(j=H.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},c||H.createElement("span",{className:"".concat(n,"-close-x")})));var _=H.createElement("div",{className:Km("".concat(n,"-content"),null==S?void 0:S.content),style:null==k?void 0:k.content},j,$,H.createElement("div",Jp({className:Km("".concat(n,"-body"),null==S?void 0:S.body),style:Rh(Rh({},f),null==k?void 0:k.body)},p),d),D);return H.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:C,style:Rh(Rh({},o),P),className:Km(n,r),onMouseDown:g,onMouseUp:m},H.createElement("div",{tabIndex:0,ref:E,style:dE,"aria-hidden":"true"}),H.createElement(uE,{shouldUpdate:v||y},h?h(_):_),H.createElement("div",{tabIndex:0,ref:O,style:dE,"aria-hidden":"true"}))})),pE=B.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=B.useRef(),h=gg(B.useState(),2),g=h[0],m=h[1],b={};function v(){var e,t,n,r,o,i=(e=p.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=cE(o),n.top+=cE(o,!0),n);m(f?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}return g&&(b.transformOrigin=g),B.createElement(Zw,{visible:a,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:l,motionName:c,removeOnLeave:s,ref:p},(function(a,l){var s=a.className,c=a.style;return B.createElement(fE,Jp({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:l,style:Rh(Rh(Rh({},c),o),b),className:Km(i,s)}))}))}));function hE(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return B.createElement(Zw,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var i=e.className,l=e.style;return B.createElement("div",Jp({ref:r,style:Rh(Rh({},l),n),className:Km("".concat(t,"-mask"),i,a)},o))}))}function gE(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,a=e.keyboard,l=void 0===a||a,s=e.focusTriggerAfterClose,c=void 0===s||s,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,h=e.afterOpenChange,g=e.afterClose,m=e.transitionName,b=e.animation,v=e.closable,y=void 0===v||v,w=e.mask,x=void 0===w||w,S=e.maskTransitionName,k=e.maskAnimation,C=e.maskClosable,E=void 0===C||C,O=e.maskStyle,D=e.maskProps,$=e.rootClassName,j=e.classNames,P=e.styles,_=B.useRef(),N=B.useRef(),I=B.useRef(),T=gg(B.useState(i),2),F=T[0],A=T[1],R=lE();function M(e){null==p||p(e)}var L=B.useRef(!1),z=B.useRef(),H=null;return E&&(H=function(e){L.current?L.current=!1:N.current===e.target&&M(e)}),B.useEffect((function(){i&&(A(!0),tg(N.current,document.activeElement)||(_.current=document.activeElement))}),[i]),B.useEffect((function(){return function(){clearTimeout(z.current)}}),[]),B.createElement("div",Jp({className:Km("".concat(n,"-root"),$)},nS(e,{data:!0})),B.createElement(hE,{prefixCls:n,visible:x&&i,motionName:sE(n,S,k),style:Rh(Rh({zIndex:r},O),null==P?void 0:P.mask),maskProps:D,className:null==j?void 0:j.mask}),B.createElement("div",Jp({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===DS.ESC)return e.stopPropagation(),void M(e);i&&e.keyCode===DS.TAB&&I.current.changeActive(!e.shiftKey)},className:Km("".concat(n,"-wrap"),d,null==j?void 0:j.wrapper),ref:N,onClick:H,style:Rh(Rh(Rh({zIndex:r},u),null==P?void 0:P.wrapper),{},{display:F?null:"none"})},f),B.createElement(pE,Jp({},e,{onMouseDown:function(){clearTimeout(z.current),L.current=!0},onMouseUp:function(){z.current=setTimeout((function(){L.current=!1}))},ref:I,closable:y,ariaId:R,prefixCls:n,visible:i&&F,onClose:M,onVisibleChanged:function(e){if(e)tg(N.current,document.activeElement)||null===(t=I.current)||void 0===t||t.focus();else{if(A(!1),x&&_.current&&c){try{_.current.focus({preventScroll:!0})}catch(GY){}_.current=null}F&&(null==g||g())}var t;null==h||h(e)},motionName:sE(n,m,b)}))))}pE.displayName="Content";var mE=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,l=e.panelRef,s=gg(B.useState(t),2),c=s[0],u=s[1],d=B.useMemo((function(){return{panel:l}}),[l]);return B.useEffect((function(){t&&u(!0)}),[t]),r||!i||c?B.createElement(oE.Provider,{value:d},B.createElement(rE,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},B.createElement(gE,Jp({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null};function bE(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.createElement(Vx,null);const o=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4]);if(!o)return[!1,null];const i="boolean"==typeof t||null==t?r:t;return[!0,n?n(i):i]}mE.displayName="Dialog";var vE="RC_FORM_INTERNAL_HOOKS",yE=function(){Uh(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},wE=B.createContext({getFieldValue:yE,getFieldsValue:yE,getFieldError:yE,getFieldWarning:yE,getFieldsError:yE,isFieldsTouched:yE,isFieldTouched:yE,isFieldValidating:yE,isFieldsValidating:yE,resetFields:yE,setFields:yE,setFieldValue:yE,setFieldsValue:yE,validateFields:yE,submit:yE,getInternalHooks:function(){return yE(),{dispatch:yE,initEntityValue:yE,registerField:yE,useSubscribe:yE,setInitialValues:yE,destroyForm:yE,setCallbacks:yE,registerWatch:yE,getFields:yE,setValidateMessages:yE,setPreserve:yE,getInitialValue:yE}}}),xE=B.createContext(null);function SE(e){return null==e?[]:Array.isArray(e)?e:[e]}function kE(){return kE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kE.apply(this,arguments)}function CE(e){return(CE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function EE(e,t){return(EE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function OE(e,t,n){return OE=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(GY){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&EE(o,n.prototype),o},OE.apply(null,arguments)}function DE(e){var t="function"==typeof Map?new Map:void 0;return DE=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return OE(e,arguments,CE(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),EE(r,e)},DE(e)}var $E=/%[sdj%]/g,jE=function(){};function PE(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function _E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace($E,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function NE(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function IE(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}var TE=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,EE(t,n),r}(DE(Error));function FE(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);IE(a,n,(function(e){return r(e),e.length?i(new TE(e,PE(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new TE(u,PE(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?IE(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function AE(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function RE(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=kE({},e[n],r):e[n]=r}return e}var ME,LE=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!NE(t,i||e.type)||r.push(_E(o.messages.required,e.fullField))},zE=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,BE=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,HE={integer:function(e){return HE.number(e)&&parseInt(e,10)===e},float:function(e){return HE.number(e)&&!HE.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(GY){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!HE.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(zE)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(ME)return ME;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};s.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?l:new RegExp(""+t(e)+o+t(e),"g")};var c=s.v4().source,u=s.v6().source;return ME=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(BE)}},WE="enum",UE={required:LE,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(_E(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)LE(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?HE[i](t)||r.push(_E(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(_E(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(_E(o.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(_E(o.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(_E(o.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(_E(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[WE]=Array.isArray(e[WE])?e[WE]:[],-1===e[WE].indexOf(t)&&r.push(_E(o.messages[WE],e.fullField,e[WE].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(_E(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(_E(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},VE=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t,i)&&!e.required)return n();UE.required(e,t,r,a,o,i),NE(t,i)||UE.type(e,t,r,a,o)}n(a)},GE={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t,"string")&&!e.required)return n();UE.required(e,t,r,i,o,"string"),NE(t,"string")||(UE.type(e,t,r,i,o),UE.range(e,t,r,i,o),UE.pattern(e,t,r,i,o),!0===e.whitespace&&UE.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t)&&!e.required)return n();UE.required(e,t,r,i,o),void 0!==t&&UE.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),NE(t)&&!e.required)return n();UE.required(e,t,r,i,o),void 0!==t&&(UE.type(e,t,r,i,o),UE.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t)&&!e.required)return n();UE.required(e,t,r,i,o),void 0!==t&&UE.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t)&&!e.required)return n();UE.required(e,t,r,i,o),NE(t)||UE.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t)&&!e.required)return n();UE.required(e,t,r,i,o),void 0!==t&&(UE.type(e,t,r,i,o),UE.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t)&&!e.required)return n();UE.required(e,t,r,i,o),void 0!==t&&(UE.type(e,t,r,i,o),UE.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();UE.required(e,t,r,i,o,"array"),null!=t&&(UE.type(e,t,r,i,o),UE.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t)&&!e.required)return n();UE.required(e,t,r,i,o),void 0!==t&&UE.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t)&&!e.required)return n();UE.required(e,t,r,i,o),void 0!==t&&UE.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t,"string")&&!e.required)return n();UE.required(e,t,r,i,o),NE(t,"string")||UE.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t,"date")&&!e.required)return n();var a;if(UE.required(e,t,r,i,o),!NE(t,"date"))a=t instanceof Date?t:new Date(t),UE.type(e,a,r,i,o),a&&UE.range(e,a.getTime(),r,i,o)}n(i)},url:VE,hex:VE,email:VE,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;UE.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(NE(t)&&!e.required)return n();UE.required(e,t,r,i,o)}n(i)}};function qE(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var XE=qE(),KE=function(){function e(e){this.rules=null,this._messages=XE,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=RE(qE(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,l=r;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===XE&&(s=qE()),RE(s,a.messages),a.messages=s}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=kE({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:kE({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))}))}));var u={};return FE(c,a,(function(t,n){var r,o=t.rule,l=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function s(e,t){return kE({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var d=c.map(AE(o,i));if(a.first&&d.length)return u[o.field]=1,n(d);if(l){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(AE(o,i)):a.error&&(d=[a.error(o,_E(a.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=kE({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,a)}catch(d){null==console.error||console.error(d),a.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,r=[],o={},a=0;a<e.length;a++)t=e[a],n=void 0,Array.isArray(t)?r=(n=r).concat.apply(n,t):r.push(t);r.length?(o=PE(r),l(r,o)):l(null,i)}(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!GE.hasOwnProperty(e.type))throw new Error(_E("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?GE.required:GE[this.getType(e)]||void 0},e}();KE.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");GE[e]=t},KE.warning=jE,KE.messages=XE,KE.validators=GE;var YE="'${name}' is not a valid ${type}",QE={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:YE,method:YE,array:YE,object:YE,number:YE,date:YE,boolean:YE,integer:YE,float:YE,regexp:YE,email:YE,url:YE,hex:YE},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},JE=KE;function ZE(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var eO="CODE_LOGIC_ERROR";function tO(e,t,n,r,o){return nO.apply(this,arguments)}function nO(){return nO=ck(lk().mark((function e(t,n,r,o,i){var a,l,s,c,u,d,f,p,h;return lk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=Rh({},r)).ruleIndex,JE.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(eO)}}),s=null,a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new JE(Ed({},t,[a])),u=vv(QE,o.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(Ed({},t,n),Rh({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,r=n===eO?u.default:n;return B.isValidElement(r)?B.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(d.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return tO("".concat(t,".").concat(n),e,s,o,i)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(Fh(e),Fh(t))}),[]));case 23:return p=Rh(Rh({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=d.map((function(e){return"string"==typeof e?ZE(e,p):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),nO.apply(this,arguments)}function rO(e,t,n,r,o,i){var a,l=e.join("."),s=n.map((function(e,t){var n=e.validator,r=Rh(Rh({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){Uh(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));Uh(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=ck(lk().mark((function e(n,o){var a,c,u;return lk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return c=s[a],e.next=5,tO(l,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=s.map((function(e){return tO(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return iO.apply(this,arguments)}(c):function(e){return oO.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function oO(){return(oO=ck(lk().mark((function e(t){return lk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Fh(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function iO(){return(iO=ck(lk().mark((function e(t){var n;return lk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function aO(e){return SE(e)}function lO(e,t){var n={};return t.forEach((function(t){var r=pv(e,t);n=gv(n,t,r)})),n}function sO(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return cO(t,e,n)}))}function cO(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function uO(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===kd(t.target)&&e in t.target?t.target[e]:t}function dO(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Fh(e.slice(0,n)),[o],Fh(e.slice(n,t)),Fh(e.slice(t+1,r))):i<0?[].concat(Fh(e.slice(0,t)),Fh(e.slice(t+1,n+1)),[o],Fh(e.slice(n+1,r))):e}var fO=["name"],pO=[];function hO(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var gO=function(e){Xb(n,B.Component);var t=Jb(n);function n(e){var r;(gf(this,n),Ed(Qb(r=t.call(this,e)),"state",{resetCount:0}),Ed(Qb(r),"cancelRegisterFunc",null),Ed(Qb(r),"mounted",!1),Ed(Qb(r),"touched",!1),Ed(Qb(r),"dirty",!1),Ed(Qb(r),"validatePromise",void 0),Ed(Qb(r),"prevValidating",void 0),Ed(Qb(r),"errors",pO),Ed(Qb(r),"warnings",pO),Ed(Qb(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,aO(o)),r.cancelRegisterFunc=null})),Ed(Qb(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Fh(void 0===n?[]:n),Fh(t)):[]})),Ed(Qb(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),Ed(Qb(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Ed(Qb(r),"metaCache",null),Ed(Qb(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Rh(Rh({},r.getMeta()),{},{destroy:e});Vh(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Ed(Qb(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,s=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(c),p=t&&sO(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=pO,r.warnings=pO,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=pO,r.warnings=pO,r.triggerMetaEvent(),null==s||s(),void r.refresh();break;case"remove":if(i)return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||pO),"warnings"in h&&(r.warnings=h.warnings||pO),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&sO(t,u,!0))return void r.reRender();if(i&&!u.length&&hO(i,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(aO).some((function(e){return sO(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!l.length||u.length||i)&&hO(i,e,c,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),Ed(Qb(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=void 0!==a&&a,s=Promise.resolve().then(ck(lk().mark((function o(){var a,l,c,u,d,f,p;return lk().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,c=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||SE(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===s){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=rO(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pO;if(r.validatePromise===s){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?pO:r;t?o.push.apply(o,Fh(i)):n.push.apply(n,Fh(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return l||(r.validatePromise=s,r.dirty=!0,r.errors=pO,r.warnings=pO,r.triggerMetaEvent(),r.reRender()),s})),Ed(Qb(r),"isFieldValidating",(function(){return!!r.validatePromise})),Ed(Qb(r),"isFieldTouched",(function(){return r.touched})),Ed(Qb(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(vE).getInitialValue)(r.getNamePath())})),Ed(Qb(r),"getErrors",(function(){return r.errors})),Ed(Qb(r),"getWarnings",(function(){return r.warnings})),Ed(Qb(r),"isListField",(function(){return r.props.isListField})),Ed(Qb(r),"isList",(function(){return r.props.isList})),Ed(Qb(r),"isPreserve",(function(){return r.props.preserve})),Ed(Qb(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Ed(Qb(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Rh(Rh({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=gb(e);return 1===n.length&&B.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Ed(Qb(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return pv(e||t(!0),n)})),Ed(Qb(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,s=t.getValueProps,c=t.fieldContext,u=void 0!==o?o:c.validateTrigger,d=r.getNamePath(),f=c.getInternalHooks,p=c.getFieldsValue,h=f(vE).dispatch,g=r.getValue(),m=s||function(e){return Ed({},l,e)},b=e[n],v=Rh(Rh({},e),m(g));return v[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=i?i.apply(void 0,n):uO.apply(void 0,[l].concat(n)),a&&(e=a(e,g,p(!0))),h({type:"updateValue",namePath:d,value:e}),b&&b.apply(void 0,n)},SE(u||[]).forEach((function(e){var t=v[e];v[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&h({type:"validateField",namePath:d,triggerName:e})}})),v})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(vE).initEntityValue)(Qb(r));return r}return bf(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(vE).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:B.isValidElement(o)?e=B.cloneElement(o,this.getControlled(o.props)):(Uh(!o,"`children` of Field is not validate ReactElement."),e=o),B.createElement(B.Fragment,{key:t},e)}}]),n}();function mO(e){var t=e.name,n=Od(e,fO),r=B.useContext(wE),o=B.useContext(xE),i=void 0!==t?aO(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),B.createElement(gO,Jp({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function bO(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=B.useContext(wE),s=B.useContext(xE),c=B.useRef({keys:[],id:0}).current,u=B.useMemo((function(){var e=aO(l.prefixName)||[];return[].concat(Fh(e),Fh(aO(t)))}),[l.prefixName,t]),d=B.useMemo((function(){return Rh(Rh({},l),{},{prefixName:u})}),[l,u]),f=B.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}}),[u]);if("function"!=typeof r)return Uh(!1,"Form.List only accepts function as children."),null;return B.createElement(xE.Provider,{value:f},B.createElement(wE.Provider,{value:d},B.createElement(mO,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!s},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(u||[])||[]},d={add:function(e,t){var n=s();t>=0&&t<=n.length?(c.keys=[].concat(Fh(c.keys.slice(0,t)),[c.id],Fh(c.keys.slice(t))),i([].concat(Fh(n.slice(0,t)),[e],Fh(n.slice(t))))):(c.keys=[].concat(Fh(c.keys),[c.id]),i([].concat(Fh(n),[e]))),c.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(c.keys=dO(c.keys,e,t),i(dO(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),d,t)}))))}Ed(gO,"contextType",wE),Ed(gO,"defaultProps",{trigger:"onChange",valuePropName:"value"});var vO="__@field_split__";function yO(e){return e.map((function(e){return"".concat(kd(e),":").concat(e)})).join(vO)}var wO=function(){function e(){gf(this,e),Ed(this,"kvs",new Map)}return bf(e,[{key:"set",value:function(e,t){this.kvs.set(yO(e),t)}},{key:"get",value:function(e){return this.kvs.get(yO(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(yO(e))}},{key:"map",value:function(e){return Fh(this.kvs.entries()).map((function(t){var n=gg(t,2),r=n[0],o=n[1],i=r.split(vO);return e({key:i.map((function(e){var t=gg(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),xO=["name"],SO=bf((function e(t){var n=this;gf(this,e),Ed(this,"formHooked",!1),Ed(this,"forceRootUpdate",void 0),Ed(this,"subscribable",!0),Ed(this,"store",{}),Ed(this,"fieldEntities",[]),Ed(this,"initialValues",{}),Ed(this,"callbacks",{}),Ed(this,"validateMessages",null),Ed(this,"preserve",null),Ed(this,"lastValidatePromise",null),Ed(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),Ed(this,"getInternalHooks",(function(e){return e===vE?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Uh(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Ed(this,"useSubscribe",(function(e){n.subscribable=e})),Ed(this,"prevWithoutPreserves",null),Ed(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=vv(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=gv(o,n,pv(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Ed(this,"destroyForm",(function(){var e=new wO;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Ed(this,"getInitialValue",(function(e){var t=pv(n.initialValues,e);return e.length?vv(t):t})),Ed(this,"setCallbacks",(function(e){n.callbacks=e})),Ed(this,"setValidateMessages",(function(e){n.validateMessages=e})),Ed(this,"setPreserve",(function(e){n.preserve=e})),Ed(this,"watchList",[]),Ed(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Ed(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),Ed(this,"timeoutId",null),Ed(this,"warningUnhooked",(function(){})),Ed(this,"updateStore",(function(e){n.store=e})),Ed(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Ed(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new wO;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Ed(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=aO(e);return t.get(n)||{INVALIDATE_NAME_PATH:aO(e)}}))})),Ed(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===kd(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(c)}else l.push(c)})),lO(n.store,l.map(aO))})),Ed(this,"getFieldValue",(function(e){n.warningUnhooked();var t=aO(e);return pv(n.store,t)})),Ed(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:aO(e[n]),errors:[],warnings:[]}}))})),Ed(this,"getFieldError",(function(e){n.warningUnhooked();var t=aO(e);return n.getFieldsError([t])[0].errors})),Ed(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=aO(e);return n.getFieldsError([t])[0].warnings})),Ed(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(aO),l=!1):(o=null,l=i):(o=i.map(aO),l=a);var s=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return l?s.every(c):s.some(c);var u=new wO;o.forEach((function(e){u.set(e,[])})),s.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Fh(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),Ed(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Ed(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(aO);return t.some((function(e){var t=e.getNamePath();return sO(r,t)&&e.isFieldValidating()}))})),Ed(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Ed(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new wO,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Fh(Fh(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))Uh(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)Uh(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(gv(n.store,o,Fh(i)[0].value))}}}}))})),Ed(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(vv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(aO);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(gv(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Ed(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=Od(e,xO),a=aO(o);r.push(a),"value"in i&&n.updateStore(gv(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Ed(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Rh(Rh({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Ed(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===pv(n.store,r)&&n.updateStore(gv(n.store,r,t))}})),Ed(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Ed(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!cO(e.getNamePath(),t)}))){var l=n.store;n.updateStore(gv(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),Ed(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),Ed(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Rh(Rh({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Ed(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Fh(r))}),r})),Ed(this,"updateValue",(function(e,t){var r=aO(e),o=n.store;n.updateStore(gv(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(lO(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Fh(i)))})),Ed(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=vv(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Ed(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Ed(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new wO;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=aO(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),Ed(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new wO;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return sO(e,n)}));a.length&&r(a,o)}})),Ed(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(aO):[],l=[],s=String(Date.now()),c=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(s)),!i||sO(a,t,d)){var r=e.validateRules(Rh({validateMessages:Rh(Rh({},QE),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Fh(n)):r.push.apply(r,Fh(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(s))}));return n.triggerOnFieldsChange(g),h})),Ed(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function kO(e){var t=B.useRef(),n=gg(B.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new SO((function(){n({})}));t.current=r.getForm()}return[t.current]}var CO=B.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),EO=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=B.useContext(CO),a=B.useRef({});return B.createElement(CO.Provider,{value:Rh(Rh({},i),{},{validateMessages:Rh(Rh({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=Rh(Rh({},a.current),{},Ed({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Rh({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},OO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],DO=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,l=e.children,s=e.component,c=void 0===s?"form":s,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,p=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,b=Od(e,OO),v=B.useContext(CO),y=gg(kO(i),1)[0],w=y.getInternalHooks(vE),x=w.useSubscribe,S=w.setInitialValues,k=w.setCallbacks,C=w.setValidateMessages,E=w.setPreserve,O=w.destroyForm;B.useImperativeHandle(t,(function(){return y})),B.useEffect((function(){return v.registerForm(n,y),function(){v.unregisterForm(n)}}),[v,y,n]),C(Rh(Rh({},v.validateMessages),u)),k({onValuesChange:p,onFieldsChange:function(e){if(v.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];h.apply(void 0,[e].concat(r))}},onFinish:function(e){v.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:m}),E(a);var D,$=B.useRef(null);S(r,!$.current),$.current||($.current=!0),B.useEffect((function(){return O}),[]);var j="function"==typeof l;j?D=l(y.getFieldsValue(!0),y):D=l;x(!j);var P=B.useRef();B.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==kd(e)||"object"!==kd(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Fh(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(P.current||[],o||[])||y.setFields(o||[]),P.current=o}),[o,y]);var _=B.useMemo((function(){return Rh(Rh({},y),{},{validateTrigger:f})}),[y,f]),N=B.createElement(xE.Provider,{value:null},B.createElement(wE.Provider,{value:_},D));return!1===c?N:B.createElement(c,Jp({},b,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),y.submit()},onReset:function(e){var t;e.preventDefault(),y.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),N)};function $O(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function jO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=void 0===r?[]:r,i=t[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,s=l.form,c=gg(B.useState(),2),u=c[0],d=c[1],f=B.useMemo((function(){return $O(u)}),[u]),p=B.useRef(f);p.current=f;var h=B.useContext(wE),g=s||h,m=g&&g._init,b=aO(o),v=B.useRef(b);return v.current=b,B.useEffect((function(){if(m){var e=g.getFieldsValue,t=(0,(0,g.getInternalHooks)(vE).registerWatch)((function(e,t){var n=pv(l.preserve?t:e,v.current),r=$O(n);p.current!==r&&(p.current=r,d(n))})),n=pv(l.preserve?e(!0):e(),v.current);return u!==n&&d(n),t}}),[m]),u}var PO=B.forwardRef(DO);PO.FormProvider=EO,PO.Field=mO,PO.List=bO,PO.useForm=kO,PO.useWatch=jO;const _O=B.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),NO=B.createContext(null),IO=e=>{const t=ov(e,["prefixCls"]);return B.createElement(EO,Object.assign({},t))},TO=B.createContext({prefixCls:""}),FO=B.createContext({}),AO=e=>{let{children:t,status:n,override:r}=e;const o=B.useContext(FO),i=B.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return B.createElement(FO.Provider,{value:i},t)};function RO(){}const MO=B.createContext({add:RO,remove:RO});function LO(e){const t=B.useContext(MO),n=B.useRef();return Yy((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const zO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=B.useContext(UC);return H.createElement(BC,Object.assign({onClick:n},e),t)},BO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=B.useContext(UC);return H.createElement(BC,Object.assign({},Zk(n),{loading:e,onClick:o},t),r)};function HO(e,t){return H.createElement("span",{className:`${e}-close-x`},t||H.createElement(Vx,{className:`${e}-close-icon`}))}const WO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=Nv("Modal",Pv()),d={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:r||(null==u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},f=H.useMemo((()=>d),Fh(Object.values(d)));let p;return"function"==typeof c||void 0===c?(p=H.createElement(H.Fragment,null,H.createElement(zO,null),H.createElement(BO,null)),"function"==typeof c&&(p=c(p,{OkBtn:BO,CancelBtn:zO})),p=H.createElement(VC,{value:f},p)):p=c,H.createElement(Ay,{disabled:!1},p)},UO=e=>({animationDuration:e,animationFillMode:"both"}),VO=e=>({animationDuration:e,animationFillMode:"both"}),GO=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},UO(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},VO(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},qO=new Bm("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),XO=new Bm("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),KO=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[GO(r,qO,XO,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},YO=new Bm("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),QO=new Bm("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),JO=new Bm("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ZO=new Bm("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),eD=new Bm("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tD=new Bm("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),nD={"move-up":{inKeyframes:new Bm("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Bm("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:YO,outKeyframes:QO},"move-left":{inKeyframes:JO,outKeyframes:ZO},"move-right":{inKeyframes:eD,outKeyframes:tD}},rD=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=nD[t];return[GO(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},oD=new Bm("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),iD=new Bm("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),aD=new Bm("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),lD=new Bm("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),sD=new Bm("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),cD=new Bm("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),uD=new Bm("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),dD=new Bm("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),fD={"slide-up":{inKeyframes:oD,outKeyframes:iD},"slide-down":{inKeyframes:aD,outKeyframes:lD},"slide-left":{inKeyframes:sD,outKeyframes:cD},"slide-right":{inKeyframes:uD,outKeyframes:dD}},pD=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=fD[t];return[GO(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},hD=new Bm("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),gD=new Bm("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),mD=new Bm("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bD=new Bm("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),vD=new Bm("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),yD=new Bm("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),wD=new Bm("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),xD=new Bm("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),SD=new Bm("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),kD=new Bm("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),CD=new Bm("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ED=new Bm("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),OD={zoom:{inKeyframes:hD,outKeyframes:gD},"zoom-big":{inKeyframes:mD,outKeyframes:bD},"zoom-big-fast":{inKeyframes:mD,outKeyframes:bD},"zoom-left":{inKeyframes:wD,outKeyframes:xD},"zoom-right":{inKeyframes:SD,outKeyframes:kD},"zoom-up":{inKeyframes:vD,outKeyframes:yD},"zoom-down":{inKeyframes:CD,outKeyframes:ED}},DD=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=OD[t];return[GO(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$D=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});function jD(e){return{position:e,inset:0}}const PD=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},jD("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},jD("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:KO(e)}]},_D=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},nw(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},aw(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ND=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body > ${e.iconCls}`]:{marginInlineEnd:e.margin},[`${r}-btns`]:{marginTop:e.marginLG}}}},ID=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},TD=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return cw(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:r*n+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight})},FD=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}),AD=pw("Modal",(e=>{const t=TD(e);return[_D(t),ID(t),PD(t),e.wireframe&&ND(t),DD(t,"zoom")]}),FD);let RD;const MD=e=>{RD={x:e.pageX,y:e.pageY},setTimeout((()=>{RD=null}),100)};eg()&&window.document.documentElement&&document.documentElement.addEventListener("click",MD,!0);const LD=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=B.useContext(Ny),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:l,className:s,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:p,closeIcon:h,closable:g,focusTriggerAfterClose:m=!0,style:b,visible:v,width:y=520,footer:w,classNames:x,styles:S}=e,k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),C=r("modal",l),E=r(),[O,D]=AD(C),$=Km(d,{[`${C}-centered`]:!!f,[`${C}-wrap-rtl`]:"rtl"===o}),j=null!==w&&B.createElement(WO,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[P,_]=bE(g,h,(e=>HO(C,e)),B.createElement(Vx,{className:`${C}-close-icon`}),!0),N=LO(`.${C}-content`),[I,T]=GS("Modal",k.zIndex);return O(B.createElement(Gk,null,B.createElement(AO,{status:!0,override:!0},B.createElement(BS.Provider,{value:T},B.createElement(mE,Object.assign({width:y},k,{zIndex:I,getContainer:void 0===p?n:p,prefixCls:C,rootClassName:Km(D,c),footer:j,visible:null!=u?u:v,mousePosition:null!==(t=k.mousePosition)&&void 0!==t?t:RD,onClose:a,closable:P,closeIcon:_,focusTriggerAfterClose:m,transitionName:$k(E,"zoom",e.transitionName),maskTransitionName:$k(E,"fade",e.maskTransitionName),className:Km(D,s,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),b),classNames:Object.assign(Object.assign({wrapper:$},null==i?void 0:i.classNames),x),styles:Object.assign(Object.assign({},null==i?void 0:i.styles),S),panelRef:N}))))))},zD=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a}=e,l=`${t}-confirm`,s=Math.round(n*r),c=Math.round(i*a);return{[l]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${l}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${l}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.marginSM,marginTop:(c-o)/2},[`&-has-title > ${e.iconCls}`]:{marginTop:(s-o)/2}},[`${l}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`},[`${l}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${l}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${l}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${l}-error ${l}-body > ${e.iconCls}`]:{color:e.colorError},[`${l}-warning ${l}-body > ${e.iconCls},\n ${l}-confirm ${l}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${l}-info ${l}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${l}-success ${l}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},BD=hw(["Modal","confirm"],(e=>{const t=TD(e);return[zD(t)]}),FD,{order:-1e3});function HD(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(a){case"info":d=B.createElement(Qx,null);break;case"success":d=B.createElement(Lx,null);break;case"error":d=B.createElement(Hx,null);break;default:d=B.createElement(Xx,null)}const f=null!=l?l:"confirm"===a,p=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=Nv("Modal"),g=c||h,m=r||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=o||(null==g?void 0:g.cancelText),v=Object.assign({autoFocusButton:p,cancelTextLocale:b,okTextLocale:m,mergedOkCancel:f},u),y=B.useMemo((()=>v),Fh(Object.values(v))),w=B.createElement(B.Fragment,null,B.createElement(GC,null),B.createElement(qC,null)),x=void 0!==e.title&&null!==e.title,S=`${i}-body`;return B.createElement("div",{className:`${i}-body-wrapper`},B.createElement("div",{className:Km(S,{[`${S}-has-title`]:x})},d,B.createElement("div",{className:`${i}-paragraph`},x&&B.createElement("span",{className:`${i}-title`},e.title),B.createElement("div",{className:`${i}-content`},e.content))),void 0===s||"function"==typeof s?B.createElement(VC,{value:y},B.createElement("div",{className:`${i}-btns`},"function"==typeof s?s(w,{OkBtn:qC,CancelBtn:GC}):w)):s,B.createElement(BD,{prefixCls:t}))}const WD=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:l,maskStyle:s,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:f,bodyStyle:p,closable:h=!1,closeIcon:g,modalRender:m,focusTriggerAfterClose:b,onConfirm:v,styles:y}=e,w=`${u}-confirm`,x=e.width||416,S=e.style||{},k=void 0===e.mask||e.mask,C=void 0!==e.maskClosable&&e.maskClosable,E=Km(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===c},e.className),[,O]=Ky(),D=B.useMemo((()=>void 0!==n?n:O.zIndexPopupBase+WS),[n,O]);return B.createElement(LD,{prefixCls:u,className:E,wrapClassName:Km({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==v||v(!1)},open:o,title:"",footer:null,transitionName:$k(f||"","zoom",e.transitionName),maskTransitionName:$k(f||"","fade",e.maskTransitionName),mask:k,maskClosable:C,style:S,styles:Object.assign({body:p,mask:s},y),width:x,zIndex:D,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:h,closeIcon:g,modalRender:m,focusTriggerAfterClose:b},B.createElement(HD,Object.assign({},e,{confirmPrefixCls:w})))},UD=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return B.createElement(xx,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},B.createElement(WD,Object.assign({},e)))},VD=[];var GD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let qD="";function XD(e){const t=document.createDocumentFragment();let n,r=Object.assign(Object.assign({},e),{close:a,open:!0});function o(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=r.some((e=>e&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(Fh(r.slice(1))));for(let e=0;e<VD.length;e++){if(VD[e]===a){VD.splice(e,1);break}}xk(t)}function i(e){var{okText:r,cancelText:o,prefixCls:i,getContainer:a}=e,l=GD(e,["okText","cancelText","prefixCls","getContainer"]);clearTimeout(n),n=setTimeout((()=>{const e=Pv(),{getPrefixCls:n,getIconPrefixCls:s,getTheme:c}=vx(),u=n(void 0,qD),d=i||`${u}-modal`,f=s(),p=c();let h=a;!1===h&&(h=void 0),bk(B.createElement(UD,Object.assign({},l,{getContainer:h,prefixCls:d,rootPrefixCls:u,iconPrefixCls:f,okText:r,locale:e,theme:p,cancelText:o||e.cancelText})),t)}))}function a(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),o.apply(this,n)}}),r.visible&&delete r.visible,i(r)}return i(r),VD.push(a),{destroy:a,update:function(e){r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e),i(r)}}}function KD(e){return Object.assign(Object.assign({},e),{type:"warning"})}function YD(e){return Object.assign(Object.assign({},e),{type:"info"})}function QD(e){return Object.assign(Object.assign({},e),{type:"success"})}function JD(e){return Object.assign(Object.assign({},e),{type:"error"})}function ZD(e){return Object.assign(Object.assign({},e),{type:"confirm"})}const e$=(e,t)=>{var n,{afterClose:r,config:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["afterClose","config"]);const[a,l]=B.useState(!0),[s,c]=B.useState(o),{direction:u,getPrefixCls:d}=B.useContext(Ny),f=d("modal"),p=d(),h=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.some((e=>e&&e.triggerCancel));s.onCancel&&r&&s.onCancel.apply(s,[()=>{}].concat(Fh(t.slice(1))))};B.useImperativeHandle(t,(()=>({destroy:h,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[m]=Nv("Modal",Ov.Modal);return B.createElement(UD,Object.assign({prefixCls:f,rootPrefixCls:p},s,{close:h,open:a,afterClose:()=>{var e;r(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(g?null==m?void 0:m.okText:null==m?void 0:m.justOkText),direction:s.direction||u,cancelText:s.cancelText||(null==m?void 0:m.cancelText)},i))},t$=B.forwardRef(e$);let n$=0;const r$=B.memo(B.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=B.useState([]);return[e,B.useCallback((e=>(t((t=>[].concat(Fh(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return B.useImperativeHandle(t,(()=>({patchElement:r})),[]),B.createElement(B.Fragment,null,n)})));function o$(){const e=B.useRef(null),[t,n]=B.useState([]);B.useEffect((()=>{if(t.length){Fh(t).forEach((e=>{e()})),n([])}}),[t]);const r=B.useCallback((t=>function(r){var o;n$+=1;const i=B.createRef();let a;const l=new Promise((e=>{a=e}));let s,c=!1;const u=B.createElement(t$,{key:`modal-${n$}`,config:t(r),ref:i,afterClose:()=>{null==s||s()},isSilent:()=>c,onConfirm:e=>{a(e)}});s=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),s&&VD.push(s);return{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(Fh(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(Fh(e),[t])))},then:e=>(c=!0,l.then(e))}}),[]);return[B.useMemo((()=>({info:r(YD),success:r(QD),error:r(JD),warning:r(KD),confirm:r(ZD)})),[]),B.createElement(r$,{key:"modal-holder",ref:e})]}const i$=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Bm("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Bm("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Bm("antNotificationBottomFadeIn",{"0%":{bottom:-r,opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Bm("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},a$=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],l$={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},s$=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},c$=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},u$=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},s$(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},c$(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:-e.margin,background:"transparent",pointerEvents:"auto"}}}},a$.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[l$[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},d$=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:g,lineHeight:m,width:b,notificationIconSize:v,colorText:y}=e,w=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[w]:{padding:p,width:b,maxWidth:`calc(100vw - ${2*h}px)`,overflow:"hidden",lineHeight:m,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:g,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:g,color:y},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+v,fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.marginSM+v,fontSize:g},[`${w}-icon`]:{position:"absolute",fontSize:v,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},f$=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Bm("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},nw(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},d$(e))}}]},p$=e=>({zIndexPopup:e.zIndexPopupBase+WS+50,width:384}),h$=e=>{const t=e.paddingMD,n=e.paddingLG;return cw(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},g$=pw("Notification",(e=>{const t=h$(e);return[f$(t),i$(t),u$(t)]}),p$),m$=hw(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=h$(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},d$(n)),{width:n.width,maxWidth:`calc(100vw - ${2*n.notificationMarginEdge}px)`,margin:0})}}),p$);function b$(e,t){return null===t||!1===t?null:t||B.createElement("span",{className:`${e}-close-x`},B.createElement(Vx,{className:`${e}-close-icon`}))}const v$={success:Lx,info:Qx,error:Hx,warning:Xx},y$=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let s=null;return n?s=B.createElement("span",{className:`${t}-icon`},n):r&&(s=B.createElement(v$[r]||null,{className:Km(`${t}-icon`,`${t}-icon-${r}`)})),B.createElement("div",{className:Km({[`${t}-with-icon`]:s}),role:l},s,B.createElement("div",{className:`${t}-message`},o),B.createElement("div",{className:`${t}-description`},i),a&&B.createElement("div",{className:`${t}-btn`},a))};var w$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const x$="topRight",S$=e=>{let{children:t,prefixCls:n}=e;const[,r]=g$(n);return B.createElement(PS,{classNames:{list:r,notice:r}},t)},k$=(e,t)=>{let{prefixCls:n,key:r}=t;return B.createElement(S$,{prefixCls:n,key:r},e)},C$=B.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c}=e,{getPrefixCls:u,getPopupContainer:d,notification:f}=B.useContext(Ny),[,p]=Ky(),h=o||u("notification"),[g,m]=RS({prefixCls:h,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>Km({[`${h}-rtl`]:l}),motion:()=>function(e){return{motionName:`${e}-fade`}}(h),closable:!0,closeIcon:b$(h),duration:4.5,getContainer:()=>(null==i?void 0:i())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:s,renderNotifications:k$,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:p.margin}});return B.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:h,notification:f}))),m}));function E$(e){const t=B.useRef(null);xv();return[B.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,notification:a}=t.current,l=`${i}-notice`,{message:s,description:c,icon:u,type:d,btn:f,className:p,style:h,role:g="alert",closeIcon:m}=n,b=w$(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),v=b$(l,m);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:x$},b),{content:B.createElement(y$,{prefixCls:l,icon:u,type:d,message:s,description:c,btn:f,role:g}),className:Km(d&&`${l}-${d}`,p,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),closeIcon:v,closable:!!v}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]),B.createElement(C$,Object.assign({key:"notification-holder"},e,{ref:t}))]}function O$(e){return E$(e)}const D$=H.createContext({}),$$=H.createContext({message:{},notification:{},modal:{}}),j$=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},P$=pw("App",(e=>[j$(e)])),_$=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:l,component:s="div"}=e,{getPrefixCls:c}=B.useContext(Ny),u=c("app",t),[d,f]=P$(u),p=Km(f,u,r,o),h=B.useContext(D$),g=H.useMemo((()=>({message:Object.assign(Object.assign({},h.message),i),notification:Object.assign(Object.assign({},h.notification),a)})),[i,a,h.message,h.notification]),[m,b]=ak(g.message),[v,y]=O$(g.notification),[w,x]=o$(),S=H.useMemo((()=>({message:m,notification:v,modal:w})),[m,v,w]),k=!1===s?H.Fragment:s,C={className:p,style:l};return d(H.createElement($$.Provider,{value:S},H.createElement(D$.Provider,{value:g},H.createElement(k,Object.assign({},!1===s?void 0:C),x,b,y,n))))};_$.useApp=()=>H.useContext($$);const N$=_$;function I$(e){return function(t){return B.createElement(xx,{theme:{token:{motion:!1,zIndexPopupBase:0}}},B.createElement(e,Object.assign({},t)))}}const T$=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};var F$=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,a=e.onClick,l=e.children;return t="function"==typeof r?r(o):r,B.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:B.createElement("span",{className:Km(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},l))};var A$=B.createContext(null);function R$(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=B.useRef(null),n=B.useRef(null);return B.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var M$=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],L$=void 0;function z$(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,h=e.order,g=e.component,m=void 0===g?"div":g,b=Od(e,M$),v=a&&!p;function y(e){s(c,e)}B.useEffect((function(){return function(){y(null)}}),[]);var w,x=i&&o!==L$?i(o):f;r||(w={opacity:v?0:1,height:v?0:L$,overflowY:v?"hidden":L$,order:a?h:L$,pointerEvents:v?"none":L$,position:v?"absolute":L$});var S={};v&&(S["aria-hidden"]=!0);var k=B.createElement(m,Jp({className:Km(!r&&n,u),style:Rh(Rh({},w),d)},S,b,{ref:t}),x);return a&&(k=B.createElement(rv,{onResize:function(e){y(e.offsetWidth)},disabled:l},k)),k}var B$=B.forwardRef(z$);function H$(){var e=B.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)uv(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){vd.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function W$(e,t){var n=gg(B.useState(t),2),r=n[0],o=n[1];return[r,Yy((function(t){e((function(){o(t)}))}))]}B$.displayName="Item";var U$=H.createContext(null),V$=["component"],G$=["className"],q$=["className"],X$=function(e,t){var n=B.useContext(U$);if(!n){var r=e.component,o=void 0===r?"div":r,i=Od(e,V$);return B.createElement(o,Jp({},i,{ref:t}))}var a=n.className,l=Od(n,G$),s=e.className,c=Od(e,q$);return B.createElement(U$.Provider,{value:null},B.createElement(B$,Jp({ref:t,className:Km(a,s)},l,c)))},K$=B.forwardRef(X$);K$.displayName="RawItem";var Y$=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Q$="responsive",J$="invalidate";function Z$(e){return"+ ".concat(e.length," ...")}function ej(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,o=e.data,i=void 0===o?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,u=void 0===c?10:c,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.suffix,v=e.component,y=void 0===v?"div":v,w=e.itemComponent,x=e.onVisibleChange,S=Od(e,Y$),k="full"===d,C=H$(),E=gg(W$(C,null),2),O=E[0],D=E[1],$=O||0,j=gg(W$(C,new Map),2),P=j[0],_=j[1],N=gg(W$(C,0),2),I=N[0],T=N[1],F=gg(W$(C,0),2),A=F[0],R=F[1],M=gg(W$(C,0),2),L=M[0],z=M[1],H=gg(B.useState(null),2),W=H[0],U=H[1],V=gg(B.useState(null),2),G=V[0],q=V[1],X=B.useMemo((function(){return null===G&&k?Number.MAX_SAFE_INTEGER:G||0}),[G,O]),K=gg(B.useState(!1),2),Y=K[0],Q=K[1],J="".concat(r,"-item"),Z=Math.max(I,A),ee=h===Q$,te=i.length&&ee,ne=h===J$,re=te||"number"==typeof h&&i.length>h,oe=B.useMemo((function(){var e=i;return te?e=null===O&&k?i:i.slice(0,Math.min(i.length,$/u)):"number"==typeof h&&(e=i.slice(0,h)),e}),[i,u,O,h,te]),ie=B.useMemo((function(){return te?i.slice(X+1):i.slice(oe.length)}),[i,oe,te,X]),ae=B.useCallback((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),le=B.useCallback(a||function(e){return e},[a]);function se(e,t,n){(G!==e||void 0!==t&&t!==W)&&(q(e),n||(Q(e<i.length-1),null==x||x(e)),void 0!==t&&U(t))}function ce(e,t){_((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function ue(e){return P.get(ae(oe[e],e))}Pg((function(){if($&&"number"==typeof Z&&oe){var e=L,t=oe.length,n=t-1;if(!t)return void se(0,null);for(var r=0;r<t;r+=1){var o=ue(r);if(k&&(o=o||0),void 0===o){se(r-1,void 0,!0);break}if(e+=o,0===n&&e<=$||r===n-1&&e+ue(n)<=$){se(n,null);break}if(e+Z>$){se(r-1,e-o-L+A);break}}b&&ue(0)+L>$&&U(null)}}),[$,P,A,L,ae,oe]);var de=Y&&!!ie.length,fe={};null!==W&&te&&(fe={position:"absolute",left:W,top:0});var pe,he={prefixCls:J,responsive:te,component:w,invalidate:ne},ge=l?function(e,t){var n=ae(e,t);return B.createElement(U$.Provider,{key:n,value:Rh(Rh({},he),{},{order:t,item:e,itemKey:n,registerSize:ce,display:t<=X})},l(e,t))}:function(e,t){var n=ae(e,t);return B.createElement(B$,Jp({},he,{order:t,key:n,item:e,renderItem:le,itemKey:n,registerSize:ce,display:t<=X}))},me={order:de?X:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){R(t),T(A)},display:de};if(m)m&&(pe=B.createElement(U$.Provider,{value:Rh(Rh({},he),me)},m(ie)));else{var be=g||Z$;pe=B.createElement(B$,Jp({},he,me),"function"==typeof be?be(ie):be)}var ve=B.createElement(y,Jp({className:Km(!ne&&r,p),style:f,ref:t},S),oe.map(ge),re?pe:null,b&&B.createElement(B$,Jp({},he,{responsive:ee,responsiveDisabled:!te,order:X,className:"".concat(J,"-suffix"),registerSize:function(e,t){z(t)},display:!0,style:fe}),b));return ee&&(ve=B.createElement(rv,{onResize:function(e,t){D(t.clientWidth)},disabled:!te},ve)),ve}var tj=B.forwardRef(ej);tj.displayName="Overflow",tj.Item=K$,tj.RESPONSIVE=Q$,tj.INVALIDATE=J$;var nj=function(e,t){var n,r=e.prefixCls,o=e.id,i=e.inputElement,a=e.disabled,l=e.tabIndex,s=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,f=e.value,p=e.maxLength,h=e.onKeyDown,g=e.onMouseDown,m=e.onChange,b=e.onPaste,v=e.onCompositionStart,y=e.onCompositionEnd,w=e.open,x=e.attrs,S=i||B.createElement("input",null),k=S,C=k.ref,E=k.props,O=E.onKeyDown,D=E.onChange,$=E.onMouseDown,j=E.onCompositionStart,P=E.onCompositionEnd,_=E.style;return S.props,S=B.cloneElement(S,Rh(Rh(Rh({type:"search"},E),{},{id:o,ref:yb(t,C),disabled:a,tabIndex:l,autoComplete:c||"off",autoFocus:s,className:Km("".concat(r,"-selection-search-input"),null===(n=S)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?d:void 0},x),{},{value:u?f:"",maxLength:p,readOnly:!u,unselectable:u?null:"on",style:Rh(Rh({},_),{},{opacity:u?null:0}),onKeyDown:function(e){h(e),O&&O(e)},onMouseDown:function(e){g(e),$&&$(e)},onChange:function(e){m(e),D&&D(e)},onCompositionStart:function(e){v(e),j&&j(e)},onCompositionEnd:function(e){y(e),P&&P(e)},onPaste:b}))},rj=B.forwardRef(nj);function oj(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}rj.displayName="Input";var ij="undefined"!=typeof window&&window.document&&window.document.documentElement;function aj(e){return["string","number"].includes(kd(e))}function lj(e){var t=void 0;return e&&(aj(e.title)?t=e.title.toString():aj(e.label)&&(t=e.label.toString())),t}function sj(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var cj=function(e){e.preventDefault(),e.stopPropagation()},uj=function(e){var t,n,r=e.id,o=e.prefixCls,i=e.values,a=e.open,l=e.searchValue,s=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,p=e.showSearch,h=e.autoFocus,g=e.autoComplete,m=e.activeDescendantId,b=e.tabIndex,v=e.removeIcon,y=e.maxTagCount,w=e.maxTagTextLength,x=e.maxTagPlaceholder,S=void 0===x?function(e){return"+ ".concat(e.length," ...")}:x,k=e.tagRender,C=e.onToggleOpen,E=e.onRemove,O=e.onInputChange,D=e.onInputPaste,$=e.onInputKeyDown,j=e.onInputMouseDown,P=e.onInputCompositionStart,_=e.onInputCompositionEnd,N=B.useRef(null),I=gg(B.useState(0),2),T=I[0],F=I[1],A=gg(B.useState(!1),2),R=A[0],M=A[1],L="".concat(o,"-selection"),z=a||"multiple"===f&&!1===s||"tags"===f?l:"",H="tags"===f||"multiple"===f&&!1===s||p&&(a||R);function W(e,t,n,r,o){return B.createElement("span",{className:Km("".concat(L,"-item"),Ed({},"".concat(L,"-item-disabled"),n)),title:lj(e)},B.createElement("span",{className:"".concat(L,"-item-content")},t),r&&B.createElement(F$,{className:"".concat(L,"-item-remove"),onMouseDown:cj,onClick:o,customizeIcon:v},"×"))}t=function(){F(N.current.scrollWidth)},n=[z],ij?B.useLayoutEffect(t,n):B.useEffect(t,n);var U=B.createElement("div",{className:"".concat(L,"-search"),style:{width:T},onFocus:function(){M(!0)},onBlur:function(){M(!1)}},B.createElement(rj,{ref:c,open:a,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:H,activeDescendantId:m,value:z,onKeyDown:$,onMouseDown:j,onChange:O,onPaste:D,onCompositionStart:P,onCompositionEnd:_,tabIndex:b,attrs:nS(e,!0)}),B.createElement("span",{ref:N,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},z," ")),V=B.createElement(tj,{prefixCls:"".concat(L,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var l=String(i);l.length>w&&(i="".concat(l.slice(0,w),"..."))}var s=function(t){t&&t.stopPropagation(),E(e)};return"function"==typeof k?function(e,t,n,r,o){return B.createElement("span",{onMouseDown:function(e){cj(e),C(!a)}},k({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,i,t,o,s):W(e,i,t,o,s)},renderRest:function(e){var t="function"==typeof S?S(e):S;return W({title:t},t,!1)},suffix:U,itemKey:sj,maxCount:y});return B.createElement(B.Fragment,null,V,!i.length&&!z&&B.createElement("span",{className:"".concat(L,"-placeholder")},u))},dj=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,s=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,h=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,v=e.onInputKeyDown,y=e.onInputMouseDown,w=e.onInputChange,x=e.onInputPaste,S=e.onInputCompositionStart,k=e.onInputCompositionEnd,C=e.title,E=gg(B.useState(!1),2),O=E[0],D=E[1],$="combobox"===c,j=$||h,P=d[0],_=g||"";$&&m&&!O&&(_=m),B.useEffect((function(){$&&D(!1)}),[$,m]);var N=!("combobox"!==c&&!u&&!h)&&!!_,I=void 0===C?lj(P):C;return B.createElement(B.Fragment,null,B.createElement("span",{className:"".concat(n,"-selection-search")},B.createElement(rj,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:j,activeDescendantId:s,value:_,onKeyDown:v,onMouseDown:y,onChange:function(e){D(!0),w(e)},onPaste:x,onCompositionStart:S,onCompositionEnd:k,tabIndex:p,attrs:nS(e,!0),maxLength:$?b:void 0})),!$&&P?B.createElement("span",{className:"".concat(n,"-selection-item"),title:I,style:N?{visibility:"hidden"}:void 0},P.label):null,function(){if(P)return null;var e=N?{visibility:"hidden"}:void 0;return B.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},f)}())};var fj=function(e,t){var n=B.useRef(null),r=B.useRef(!1),o=e.prefixCls,i=e.open,a=e.mode,l=e.showSearch,s=e.tokenWithEnter,c=e.autoClearSearchValue,u=e.onSearch,d=e.onSearchSubmit,f=e.onToggleOpen,p=e.onInputKeyDown,h=e.domRef;B.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=gg(R$(0),2),m=g[0],b=g[1],v=B.useRef(null),y=function(e){!1!==u(e,!0,r.current)&&f(!0)},w={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==DS.UP&&n!==DS.DOWN||e.preventDefault(),p&&p(e),n!==DS.ENTER||"tags"!==a||r.current||i||null==d||d(e.target.value),t=n,[DS.ESC,DS.SHIFT,DS.BACKSPACE,DS.TAB,DS.WIN_KEY,DS.ALT,DS.META,DS.WIN_KEY_RIGHT,DS.CTRL,DS.SEMICOLON,DS.EQUALS,DS.CAPS_LOCK,DS.CONTEXT_MENU,DS.F1,DS.F2,DS.F3,DS.F4,DS.F5,DS.F6,DS.F7,DS.F8,DS.F9,DS.F10,DS.F11,DS.F12].includes(t)||f(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(s&&v.current&&/[\r\n]/.test(v.current)){var n=v.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,v.current)}v.current=null,y(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");v.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==a&&y(e.target.value)}},x="multiple"===a||"tags"===a?B.createElement(uj,Jp({},e,w)):B.createElement(dj,Jp({},e,w));return B.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=m();e.target===n.current||t||"combobox"===a||e.preventDefault(),("combobox"===a||l&&t)&&i||(i&&!1!==c&&u("",!0,!1),f())}},x)},pj=B.forwardRef(fj);function hj(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=void 0===s?0:s,u=o.y,d=void 0===u?0:u,f=B.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],m=h[0],b=h[1],v=g[0],y=g[1];m!==v&&["t","b"].includes(m)?"t"===m?p.top=0:p.bottom=0:p.top=d,b!==y&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=c}return B.createElement("div",{ref:f,className:Km("".concat(t,"-arrow"),a),style:p},l)}function gj(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?B.createElement(Zw,Jp({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return B.createElement("div",{style:{zIndex:r},className:Km("".concat(t,"-mask"),n)})})):null}pj.displayName="Selector";var mj=B.memo((function(e){return e.children}),(function(e,t){return t.cache})),bj=B.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,v=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,x=e.portal,S=e.zIndex,k=e.onMouseEnter,C=e.onMouseLeave,E=e.onPointerEnter,O=e.ready,D=e.offsetX,$=e.offsetY,j=e.offsetR,P=e.offsetB,_=e.onAlign,N=e.onPrepare,I=e.stretch,T=e.targetWidth,F=e.targetHeight,A="function"==typeof n?n():n,R=s||c,M=(null==y?void 0:y.length)>0,L=gg(B.useState(!y||!M),2),z=L[0],H=L[1];if(Pg((function(){!z&&M&&a&&H(!0)}),[z,M,a]),!z)return null;var W="auto",U={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(O||!s){var V,G=g.points,q=g.dynamicInset||(null===(V=g._experimental)||void 0===V?void 0:V.dynamicInset),X=q&&"r"===G[0][1],K=q&&"b"===G[0][0];X?(U.right=j,U.left=W):(U.left=D,U.right=W),K?(U.bottom=P,U.top=W):(U.top=$,U.bottom=W)}var Y={};return I&&(I.includes("height")&&F?Y.height=F:I.includes("minHeight")&&F&&(Y.minHeight=F),I.includes("width")&&T?Y.width=T:I.includes("minWidth")&&T&&(Y.minWidth=T)),s||(Y.pointerEvents="none"),B.createElement(x,{open:v||R,getContainer:y&&function(){return y(a)},autoDestroy:w},B.createElement(gj,{prefixCls:o,open:s,zIndex:S,mask:f,motion:b}),B.createElement(rv,{onResize:_,disabled:!s},(function(e){return B.createElement(Zw,Jp({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:N,onEnterPrepare:N,visible:s,onVisibleChanged:function(e){var t;null==m||null===(t=m.onVisibleChanged)||void 0===t||t.call(m,e),l(e)}}),(function(n,a){var l=n.className,c=n.style,f=Km(o,l,r);return B.createElement("div",{ref:yb(e,t,a),className:f,style:Rh(Rh(Rh(Rh({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},U),Y),c),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:k,onMouseLeave:C,onPointerEnter:E,onClick:d},p&&B.createElement(hj,{prefixCls:o,arrow:p,arrowPos:h,align:g}),B.createElement(mj,{cache:!s&&!u},A))}))})))})),vj=B.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=xb(n),i=wb(B.useCallback((function(e){vb(t,r?r(e):e)}),[r]),n.ref);return o?B.cloneElement(n,{ref:i}):n})),yj=B.createContext(null);function wj(e){return e?Array.isArray(e)?e:[e]:[]}function xj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Sj(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function kj(e){return e.ownerDocument.defaultView}function Cj(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=kj(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Ej(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Oj(e){return Ej(parseFloat(e),0)}function Dj(e,t){var n=Rh({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=kj(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=Oj(i),g=Oj(a),m=Oj(l),b=Oj(s),v=Ej(Math.round(c.width/f*1e3)/1e3),y=Ej(Math.round(c.height/u*1e3)/1e3),w=(f-p-m-b)*v,x=(u-d-h-g)*y,S=h*y,k=g*y,C=m*v,E=b*v,O=0,D=0;if("clip"===r){var $=Oj(o);O=$*v,D=$*y}var j=c.x+C-O,P=c.y+S-D,_=j+c.width+2*O-C-E-w,N=P+c.height+2*D-S-k-x;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,_),n.bottom=Math.min(n.bottom,N)}})),n}function $j(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function jj(e,t){var n=gg(t||[],2),r=n[0],o=n[1];return[$j(e.width,r),$j(e.height,o)]}function Pj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function _j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Nj(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var Ij=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Tj=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rE,t=B.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,l=void 0===a?"hover":a,s=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,m=void 0===g?.1:g,b=t.focusDelay,v=t.blurDelay,y=t.mask,w=t.maskClosable,x=void 0===w||w,S=t.getPopupContainer,k=t.forceRender,C=t.autoDestroy,E=t.destroyPopupOnHide,O=t.popup,D=t.popupClassName,$=t.popupStyle,j=t.popupPlacement,P=t.builtinPlacements,_=void 0===P?{}:P,N=t.popupAlign,I=t.zIndex,T=t.stretch,F=t.getPopupClassNameFromAlign,A=t.fresh,R=t.alignPoint,M=t.onPopupClick,L=t.onPopupAlign,z=t.arrow,H=t.popupMotion,W=t.maskMotion,U=t.popupTransitionName,V=t.popupAnimation,G=t.maskTransitionName,q=t.maskAnimation,X=t.className,K=t.getTriggerDOMNode,Y=Od(t,Ij),Q=C||E||!1,J=gg(B.useState(!1),2),Z=J[0],ee=J[1];Pg((function(){ee(T$())}),[]);var te=B.useRef({}),ne=B.useContext(yj),re=B.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=lE(),ie=gg(B.useState(null),2),ae=ie[0],le=ie[1],se=Yy((function(e){mb(e)&&ae!==e&&le(e),null==ne||ne.registerSubPopup(oe,e)})),ce=gg(B.useState(null),2),ue=ce[0],de=ce[1],fe=B.useRef(null),pe=Yy((function(e){mb(e)&&ue!==e&&(de(e),fe.current=e)})),he=B.Children.only(i),ge=(null==he?void 0:he.props)||{},me={},be=Yy((function(e){var t,n,r=ue;return(null==r?void 0:r.contains(e))||(null===(t=Cx(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=Cx(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ve=Sj(o,H,V,U),ye=Sj(o,W,q,G),we=gg(B.useState(d||!1),2),xe=we[0],Se=we[1],ke=null!=u?u:xe,Ce=Yy((function(e){void 0===u&&Se(e)}));Pg((function(){Se(u||!1)}),[u]);var Ee=B.useRef(ke);Ee.current=ke;var Oe=B.useRef([]);Oe.current=[];var De=Yy((function(e){var t;Ce(e),(null!==(t=Oe.current[Oe.current.length-1])&&void 0!==t?t:ke)!==e&&(Oe.current.push(e),null==f||f(e))})),$e=B.useRef(),je=function(){clearTimeout($e.current)},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;je(),0===t?De(e):$e.current=setTimeout((function(){De(e)}),1e3*t)};B.useEffect((function(){return je}),[]);var _e=gg(B.useState(!1),2),Ne=_e[0],Ie=_e[1];Pg((function(e){e&&!ke||Ie(!0)}),[ke]);var Te=gg(B.useState(null),2),Fe=Te[0],Ae=Te[1],Re=gg(B.useState([0,0]),2),Me=Re[0],Le=Re[1],ze=function(e){Le([e.clientX,e.clientY])},Be=function(e,t,n,r,o,i,a){var l=gg(B.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),s=l[0],c=l[1],u=B.useRef(0),d=B.useMemo((function(){return t?Cj(t):[]}),[t]),f=B.useRef({});e||(f.current={});var p=Yy((function(){if(t&&n&&e){let e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=D.x+e,o=D.y+t,i=r+A,a=o+F,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))},lt=function(){ae=D.y+ve,le=ae+F,se=D.x+be,ce=se+A};var l,s,u,p=t,h=p.ownerDocument,g=kj(p).getComputedStyle(p),m=g.width,b=g.height,v=g.position,y=p.style.left,w=p.style.top,x=p.style.right,S=p.style.bottom,k=p.style.overflow,C=Rh(Rh({},o[r]),i),E=h.createElement("div");if(null===(l=p.parentElement)||void 0===l||l.appendChild(E),E.style.left="".concat(p.offsetLeft,"px"),E.style.top="".concat(p.offsetTop,"px"),E.style.position=v,E.style.height="".concat(p.offsetHeight,"px"),E.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))u={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();u={x:O.x,y:O.y,width:O.width,height:O.height}}var D=p.getBoundingClientRect(),$=h.documentElement,j=$.clientWidth,P=$.clientHeight,_=$.scrollWidth,N=$.scrollHeight,I=$.scrollTop,T=$.scrollLeft,F=D.height,A=D.width,R=u.height,M=u.width,L={left:0,top:0,right:j,bottom:P},z={left:-T,top:-I,right:_-T,bottom:N-I},B=C.htmlRegion,H="visible",W="visibleFirst";"scroll"!==B&&B!==W&&(B=H);var U=B===W,V=Dj(z,d),G=Dj(L,d),q=B===H?G:V,X=U?G:q;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var K=p.getBoundingClientRect();p.style.left=y,p.style.top=w,p.style.right=x,p.style.bottom=S,p.style.overflow=k,null===(s=p.parentElement)||void 0===s||s.removeChild(E);var Y=Ej(Math.round(A/parseFloat(m)*1e3)/1e3),Q=Ej(Math.round(F/parseFloat(b)*1e3)/1e3);if(0===Y||0===Q||mb(n)&&!jk(n))return;var J=C.offset,Z=C.targetOffset,ee=gg(jj(D,J),2),te=ee[0],ne=ee[1],re=gg(jj(u,Z),2),oe=re[0],ie=re[1];u.x-=oe,u.y-=ie;var ae,le,se,ce,ue=gg(C.points||[],2),de=ue[0],fe=Pj(ue[1]),pe=Pj(de),he=_j(u,fe),ge=_j(D,pe),me=Rh({},C),be=he.x-ge.x+te,ve=he.y-ge.y+ne,ye=e(be,ve),we=e(be,ve,G),xe=_j(u,["t","l"]),Se=_j(D,["t","l"]),ke=_j(u,["b","r"]),Ce=_j(D,["b","r"]),Ee=C.overflow||{},Oe=Ee.adjustX,De=Ee.adjustY,$e=Ee.shiftX,je=Ee.shiftY,Pe=function(e){return"boolean"==typeof e?e:e>=0};lt();var _e=Pe(De),Ne=pe[0]===fe[0];if(_e&&"t"===pe[0]&&(le>X.bottom||f.current.bt)){var Ie=ve;Ne?Ie-=F-R:Ie=xe.y-Ce.y-ne;var Te=e(be,Ie),Fe=e(be,Ie,G);Te>ye||Te===ye&&(!U||Fe>=we)?(f.current.bt=!0,ve=Ie,ne=-ne,me.points=[Nj(pe,0),Nj(fe,0)]):f.current.bt=!1}if(_e&&"b"===pe[0]&&(ae<X.top||f.current.tb)){var Ae=ve;Ne?Ae+=F-R:Ae=ke.y-Se.y-ne;var Re=e(be,Ae),Me=e(be,Ae,G);Re>ye||Re===ye&&(!U||Me>=we)?(f.current.tb=!0,ve=Ae,ne=-ne,me.points=[Nj(pe,0),Nj(fe,0)]):f.current.tb=!1}var Le=Pe(Oe),ze=pe[1]===fe[1];if(Le&&"l"===pe[1]&&(ce>X.right||f.current.rl)){var Be=be;ze?Be-=A-M:Be=xe.x-Ce.x-te;var He=e(Be,ve),We=e(Be,ve,G);He>ye||He===ye&&(!U||We>=we)?(f.current.rl=!0,be=Be,te=-te,me.points=[Nj(pe,1),Nj(fe,1)]):f.current.rl=!1}if(Le&&"r"===pe[1]&&(se<X.left||f.current.lr)){var Ue=be;ze?Ue+=A-M:Ue=ke.x-Se.x-te;var Ve=e(Ue,ve),Ge=e(Ue,ve,G);Ve>ye||Ve===ye&&(!U||Ge>=we)?(f.current.lr=!0,be=Ue,te=-te,me.points=[Nj(pe,1),Nj(fe,1)]):f.current.lr=!1}lt();var qe=!0===$e?0:$e;"number"==typeof qe&&(se<G.left&&(be-=se-G.left-te,u.x+M<G.left+qe&&(be+=u.x-G.left+M-qe)),ce>G.right&&(be-=ce-G.right-te,u.x>G.right-qe&&(be+=u.x-G.right+qe)));var Xe=!0===je?0:je;"number"==typeof Xe&&(ae<G.top&&(ve-=ae-G.top-ne,u.y+R<G.top+Xe&&(ve+=u.y-G.top+R-Xe)),le>G.bottom&&(ve-=le-G.bottom-ne,u.y>G.bottom-Xe&&(ve+=u.y-G.bottom+Xe)));var Ke=D.x+be,Ye=Ke+A,Qe=D.y+ve,Je=Qe+F,Ze=u.x,et=Ze+M,tt=u.y,nt=tt+R,rt=(Math.max(Ke,Ze)+Math.min(Ye,et))/2-Ke,ot=(Math.max(Qe,tt)+Math.min(Je,nt))/2-Qe;null==a||a(t,me);var it=K.right-D.x-(be+D.width),at=K.bottom-D.y-(ve+D.height);c({ready:!0,offsetX:be/Y,offsetY:ve/Q,offsetR:it/Y,offsetB:at/Q,arrowX:rt/Y,arrowY:ot/Q,scaleX:Y,scaleY:Q,align:me})}})),h=function(){c((function(e){return Rh(Rh({},e),{},{ready:!1})}))};return Pg(h,[r]),Pg((function(){e||h()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&p()}))}]}(ke,ae,R?Me:ue,j,_,N,L),He=gg(Be,11),We=He[0],Ue=He[1],Ve=He[2],Ge=He[3],qe=He[4],Xe=He[5],Ke=He[6],Ye=He[7],Qe=He[8],Je=He[9],Ze=He[10],et=function(e,t,n,r){return B.useMemo((function(){var o=wj(null!=n?n:t),i=wj(null!=r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,r])}(Z,l,s,c),tt=gg(et,2),nt=tt[0],rt=tt[1],ot=nt.has("click"),it=rt.has("click")||rt.has("contextMenu"),at=Yy((function(){Ne||Ze()}));!function(e,t,n,r,o){Pg((function(){if(e&&t&&n){let e=function(){r(),o()};var i=n,a=Cj(t),l=Cj(i),s=kj(i),c=new Set([s].concat(Fh(a),Fh(l)));return c.forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),s.addEventListener("resize",e,{passive:!0}),r(),function(){c.forEach((function(t){t.removeEventListener("scroll",e),s.removeEventListener("resize",e)}))}}}),[e,t,n])}(ke,ue,ae,at,(function(){Ee.current&&R&&it&&Pe(!1)})),Pg((function(){at()}),[Me,j]),Pg((function(){!ke||null!=_&&_[j]||at()}),[JSON.stringify(N)]);var lt=B.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(xj(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(_,o,Je,R);return Km(e,null==F?void 0:F(Je))}),[Je,F,_,o,R]);B.useImperativeHandle(n,(function(){return{nativeElement:fe.current,forceAlign:at}}));var st=gg(B.useState(0),2),ct=st[0],ut=st[1],dt=gg(B.useState(0),2),ft=dt[0],pt=dt[1],ht=function(){if(T&&ue){var e=ue.getBoundingClientRect();ut(e.width),pt(e.height)}};function gt(e,t,n,r){me[e]=function(o){var i;null==r||r(o),Pe(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];null===(i=ge[e])||void 0===i||i.call.apply(i,[ge,o].concat(l))}}Pg((function(){Fe&&(Ze(),Fe(),Ae(null))}),[Fe]),(ot||it)&&(me.onClick=function(e){var t;Ee.current&&it?Pe(!1):!Ee.current&&ot&&(ze(e),Pe(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onClick)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),function(e,t,n,r,o,i,a,l){var s=B.useRef(e),c=B.useRef(!1);s.current!==e&&(c.current=!0,s.current=e),B.useEffect((function(){var e=uv((function(){c.current=!1}));return function(){uv.cancel(e)}}),[e]),B.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){var e=!1;return[function(t){var n=t.target;e=a(n)},function(t){var n=t.target;c.current||!s.current||e||a(n)||l(!1)}]},u=gg(e(),2),d=u[0],f=u[1],p=gg(e(),2),h=p[0],g=p[1],m=kj(r);m.addEventListener("mousedown",d,!0),m.addEventListener("click",f,!0),m.addEventListener("contextmenu",f,!0);var b=Cx(n);return b&&(b.addEventListener("mousedown",h,!0),b.addEventListener("click",g,!0),b.addEventListener("contextmenu",g,!0)),function(){m.removeEventListener("mousedown",d,!0),m.removeEventListener("click",f,!0),m.removeEventListener("contextmenu",f,!0),b&&(b.removeEventListener("mousedown",h,!0),b.removeEventListener("click",g,!0),b.removeEventListener("contextmenu",g,!0))}}}),[t,n,r,o,i])}(ke,it,ue,ae,y,x,be,Pe);var mt,bt,vt=nt.has("hover"),yt=rt.has("hover");vt&&(gt("onMouseEnter",!0,h,(function(e){ze(e)})),gt("onPointerEnter",!0,h,(function(e){ze(e)})),mt=function(){(ke||Ne)&&Pe(!0,h)},R&&(me.onMouseMove=function(e){var t;null===(t=ge.onMouseMove)||void 0===t||t.call(ge,e)})),yt&&(gt("onMouseLeave",!1,m),gt("onPointerLeave",!1,m),bt=function(){Pe(!1,m)}),nt.has("focus")&>("onFocus",!0,b),rt.has("focus")&>("onBlur",!1,v),nt.has("contextMenu")&&(me.onContextMenu=function(e){var t;Ee.current&&rt.has("contextMenu")?Pe(!1):(ze(e),Pe(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onContextMenu)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),X&&(me.className=Km(ge.className,X));var wt=Rh(Rh({},ge),me),xt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Y[e]&&(xt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=wt[e])||void 0===t||t.call.apply(t,[wt].concat(r)),Y[e].apply(Y,r)})}));var St=B.cloneElement(he,Rh(Rh({},wt),xt)),kt={x:Xe,y:Ke},Ct=z?Rh({},!0!==z?z:{}):null;return B.createElement(B.Fragment,null,B.createElement(rv,{disabled:!ke,ref:pe,onResize:function(){ht(),at()}},B.createElement(vj,{getTriggerDOMNode:K},St)),B.createElement(yj.Provider,{value:re},B.createElement(bj,{portal:e,ref:se,prefixCls:o,popup:O,className:Km(D,lt),style:$,target:ue,onMouseEnter:mt,onMouseLeave:bt,onPointerEnter:mt,zIndex:I,open:ke,keepDom:Ne,fresh:A,onClick:M,mask:y,motion:ve,maskMotion:ye,onVisibleChanged:function(e){Ie(!1),Ze(),null==p||p(e)},onPrepare:function(){return new Promise((function(e){ht(),Ae((function(){return e}))}))},forceRender:k,autoDestroy:Q,getPopupContainer:S,align:Je,arrow:Ct,arrowPos:kt,ready:We,offsetX:Ue,offsetY:Ve,offsetR:Ge,offsetB:qe,onAlign:at,stretch:T,targetWidth:ct/Ye,targetHeight:ft/Qe})))}));return t}(rE);var Fj=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Aj=function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,o=e.children,i=e.popupElement,a=e.animation,l=e.transitionName,s=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,d=void 0===u?"ltr":u,f=e.placement,p=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,b=e.getPopupContainer,v=e.empty,y=e.getTriggerDOMNode,w=e.onPopupVisibleChange,x=e.onPopupMouseEnter,S=Od(e,Fj),k="".concat(n,"-dropdown"),C=i;g&&(C=g(i));var E=B.useMemo((function(){return p||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(h)}),[p,h]),O=a?"".concat(k,"-").concat(a):l,D="number"==typeof h,$=B.useMemo((function(){return D?null:!1===h?"minWidth":"width"}),[h,D]),j=s;D&&(j=Rh(Rh({},j),{},{width:h}));var P=B.useRef(null);return B.useImperativeHandle(t,(function(){return{getPopupElement:function(){return P.current}}})),B.createElement(Tj,Jp({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:f||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:E,prefixCls:k,popupTransitionName:O,popup:B.createElement("div",{ref:P,onMouseEnter:x},C),stretch:$,popupAlign:m,popupVisible:r,getPopupContainer:b,popupClassName:Km(c,Ed({},"".concat(k,"-empty"),v)),popupStyle:j,getTriggerDOMNode:y,onPopupVisibleChange:w}),o)},Rj=B.forwardRef(Aj);function Mj(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function Lj(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function zj(e){var t=Rh({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Uh(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}Rj.displayName="SelectTrigger";var Bj=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Hj=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Wj(e){return"tags"===e||"multiple"===e}var Uj=B.forwardRef((function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,g=void 0===h?"Not Found":h,m=e.onClear,b=e.mode,v=e.disabled,y=e.loading,w=e.getInputElement,x=e.getRawInputElement,S=e.open,k=e.defaultOpen,C=e.onDropdownVisibleChange,E=e.activeValue,O=e.onActiveValueChange,D=e.activeDescendantId,$=e.searchValue,j=e.autoClearSearchValue,P=e.onSearch,_=e.onSearchSplit,N=e.tokenSeparators,I=e.allowClear,T=e.suffixIcon,F=e.clearIcon,A=e.OptionList,R=e.animation,M=e.transitionName,L=e.dropdownStyle,z=e.dropdownClassName,W=e.dropdownMatchSelectWidth,U=e.dropdownRender,V=e.dropdownAlign,G=e.placement,q=e.builtinPlacements,X=e.getPopupContainer,K=e.showAction,Y=void 0===K?[]:K,Q=e.onFocus,J=e.onBlur,Z=e.onKeyUp,ee=e.onKeyDown,te=e.onMouseDown,ne=Od(e,Bj),re=Wj(b),oe=(void 0!==l?l:re)||"combobox"===b,ie=Rh({},ne);Hj.forEach((function(e){delete ie[e]})),null==u||u.forEach((function(e){delete ie[e]}));var ae=gg(B.useState(!1),2),le=ae[0],se=ae[1];B.useEffect((function(){se(T$())}),[]);var ce=B.useRef(null),ue=B.useRef(null),de=B.useRef(null),fe=B.useRef(null),pe=B.useRef(null),he=B.useRef(!1),ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=gg(B.useState(!1),2),n=t[0],r=t[1],o=B.useRef(null),i=function(){window.clearTimeout(o.current)};return B.useEffect((function(){return i}),[]),[n,function(t,n){i(),o.current=window.setTimeout((function(){r(t),n&&n()}),e)},i]}(),me=gg(ge,3),be=me[0],ve=me[1],ye=me[2];B.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=fe.current)||void 0===e?void 0:e.focus,blur:null===(t=fe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=pe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var we=B.useMemo((function(){var e;if("combobox"!==b)return $;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[$,b,d]),xe="combobox"===b&&"function"==typeof w&&w()||null,Se="function"==typeof x&&x(),ke=wb(ue,null==Se||null===(n=Se.props)||void 0===n?void 0:n.ref),Ce=gg(B.useState(!1),2),Ee=Ce[0],Oe=Ce[1];Pg((function(){Oe(!0)}),[]);var De=gg(Zy(!1,{defaultValue:k,value:S}),2),$e=De[0],je=De[1],Pe=!!Ee&&$e,_e=!g&&p;(v||_e&&Pe&&"combobox"===b)&&(Pe=!1);var Ne=!_e&&Pe,Ie=B.useCallback((function(e){var t=void 0!==e?e:!Pe;v||(je(t),Pe!==t&&(null==C||C(t)))}),[v,Pe,je,C]),Te=B.useMemo((function(){return(N||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[N]),Fe=function(e,t,n){var r=!0,o=e;null==O||O(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=fv(r),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return n=n||l.length>1,l.reduce((function(t,n){return[].concat(Fh(t),Fh(e(n,a)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,N);return"combobox"!==b&&i&&(o="",null==_||_(i),Ie(!1),r=!1),P&&we!==o&&P(o,{source:t?"typing":"effect"}),r};B.useEffect((function(){Pe||re||"combobox"===b||Fe("",!1,!1)}),[Pe]),B.useEffect((function(){$e&&v&&je(!1),v&&!he.current&&ve(!1)}),[v]);var Ae=gg(R$(),2),Re=Ae[0],Me=Ae[1],Le=B.useRef(!1),ze=[];B.useEffect((function(){return function(){ze.forEach((function(e){return clearTimeout(e)})),ze.splice(0,ze.length)}}),[]);var Be,He=gg(B.useState({}),2)[1];Se&&(Be=function(e){Ie(e)}),function(e,t,n,r){var o=B.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},B.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ce.current,null===(e=de.current)||void 0===e?void 0:e.getPopupElement()]}),Ne,Ie,!!Se);var We,Ue=B.useMemo((function(){return Rh(Rh({},e),{},{notFoundContent:g,open:Pe,triggerOpen:Ne,id:o,showSearch:oe,multiple:re,toggleOpen:Ie})}),[e,g,Ne,Pe,o,oe,re,Ie]),Ve=!!T||y;Ve&&(We=B.createElement(F$,{className:Km("".concat(i,"-arrow"),Ed({},"".concat(i,"-arrow-loading"),y)),customizeIcon:T,customizeIconProps:{loading:y,searchValue:we,open:Pe,focused:be,showSearch:oe}}));var Ge,qe=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=H.useMemo((function(){return"object"===kd(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:H.useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===l&&""===a)}),[r,i,n.length,a,l]),clearIcon:H.createElement(F$,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(i,(function(){var e;null==m||m(),null===(e=fe.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),Fe("",!1,!1)}),d,I,F,v,we,b),Xe=qe.allowClear,Ke=qe.clearIcon,Ye=B.createElement(A,{ref:pe}),Qe=Km(i,a,(Ed(r={},"".concat(i,"-focused"),be),Ed(r,"".concat(i,"-multiple"),re),Ed(r,"".concat(i,"-single"),!re),Ed(r,"".concat(i,"-allow-clear"),I),Ed(r,"".concat(i,"-show-arrow"),Ve),Ed(r,"".concat(i,"-disabled"),v),Ed(r,"".concat(i,"-loading"),y),Ed(r,"".concat(i,"-open"),Pe),Ed(r,"".concat(i,"-customize-input"),xe),Ed(r,"".concat(i,"-show-search"),oe),r)),Je=B.createElement(Rj,{ref:de,disabled:v,prefixCls:i,visible:Ne,popupElement:Ye,animation:R,transitionName:M,dropdownStyle:L,dropdownClassName:z,direction:c,dropdownMatchSelectWidth:W,dropdownRender:U,dropdownAlign:V,placement:G,builtinPlacements:q,getPopupContainer:X,empty:p,getTriggerDOMNode:function(){return ue.current},onPopupVisibleChange:Be,onPopupMouseEnter:function(){He({})}},Se?B.cloneElement(Se,{ref:ke}):B.createElement(pj,Jp({},e,{domRef:ue,prefixCls:i,inputElement:xe,ref:fe,id:o,showSearch:oe,autoClearSearchValue:j,mode:b,activeDescendantId:D,tagRender:s,values:d,open:Pe,onToggleOpen:Ie,activeValue:E,searchValue:we,onSearch:Fe,onSearchSubmit:function(e){e&&e.trim()&&P(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:Te})));return Ge=Se?Je:B.createElement("div",Jp({className:Qe},ie,{ref:ce,onMouseDown:function(e){var t,n=e.target,r=null===(t=de.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=ze.indexOf(o);-1!==t&&ze.splice(t,1),ye(),le||r.contains(document.activeElement)||null===(e=fe.current)||void 0===e||e.focus()}));ze.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==te||te.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Re(),r=e.which;if(r===DS.ENTER&&("combobox"!==b&&e.preventDefault(),Pe||Ie(!0)),Me(!!we),r===DS.BACKSPACE&&!n&&re&&!we&&d.length){for(var o=Fh(d),i=null,a=o.length-1;a>=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&f(o,{type:"remove",values:[i]})}for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];Pe&&pe.current&&(t=pe.current).onKeyDown.apply(t,[e].concat(c)),null==ee||ee.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Pe&&pe.current&&(o=pe.current).onKeyUp.apply(o,[e].concat(n)),null==Z||Z.apply(void 0,[e].concat(n))},onFocus:function(){ve(!0),v||(Q&&!Le.current&&Q.apply(void 0,arguments),Y.includes("focus")&&Ie(!0)),Le.current=!0},onBlur:function(){he.current=!0,ve(!1,(function(){Le.current=!1,he.current=!1,Ie(!1)})),v||(we&&("tags"===b?P(we,{source:"submit"}):"multiple"===b&&P("",{source:"blur"})),J&&J.apply(void 0,arguments))}}),be&&!Pe&&B.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(kd(t))?t:n})).join(", "))),Je,We,Xe&&Ke),B.createElement(A$.Provider,{value:Ue},Ge)})),Vj=function(){return null};Vj.isSelectOptGroup=!0;var Gj=function(){return null};Gj.isSelectOption=!0;var qj=B.forwardRef((function(e,t){var n,r=e.height,o=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,s=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};void 0!==o&&(f={height:r,position:"relative",overflow:"hidden"},p=Rh(Rh({},p),{},(Ed(n={transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-i),Ed(n,"position","absolute"),Ed(n,"left",0),Ed(n,"right",0),Ed(n,"top",0),n)));return B.createElement("div",{style:f},B.createElement(rv,{onResize:function(e){e.offsetHeight&&s&&s()}},B.createElement("div",Jp({style:p,className:Km(Ed({},"".concat(l,"-holder-inner"),l)),ref:t},c),a,d)))}));function Xj(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}qj.displayName="Filler";var Kj=B.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,g=gg(B.useState(!1),2),m=g[0],b=g[1],v=gg(B.useState(null),2),y=v[0],w=v[1],x=gg(B.useState(null),2),S=x[0],k=x[1],C=!o,E=B.useRef(),O=B.useRef(),D=gg(B.useState(!1),2),$=D[0],j=D[1],P=B.useRef(),_=function(){clearTimeout(P.current),j(!0),P.current=setTimeout((function(){j(!1)}),3e3)},N=a-f||0,I=f-d||0,T=N>0,F=B.useMemo((function(){return 0===i||0===N?0:i/N*I}),[i,N,I]),A=B.useRef({top:F,dragging:m,pageY:y,startTop:S});A.current={top:F,dragging:m,pageY:y,startTop:S};var R=function(e){b(!0),w(Xj(e,u)),k(A.current.top),l(),e.stopPropagation(),e.preventDefault()};B.useEffect((function(){var e=function(e){e.preventDefault()},t=E.current,n=O.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",R),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",R)}}),[]);var M=B.useRef();M.current=N;var L=B.useRef();L.current=I,B.useEffect((function(){if(m){var e,t=function(t){var n=A.current,r=n.dragging,o=n.pageY,i=n.startTop;if(uv.cancel(e),r){var a=Xj(t,u)-o,l=i;!C&&u?l-=a:l+=a;var s=M.current,d=L.current,f=d?l/d:0,p=Math.ceil(f*s);p=Math.max(p,0),p=Math.min(p,s),e=uv((function(){c(p,u)}))}},n=function(){b(!1),s()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),uv.cancel(e)}}}),[m]),B.useEffect((function(){_()}),[i]),B.useImperativeHandle(t,(function(){return{delayHidden:_}}));var z="".concat(r,"-scrollbar"),H={position:"absolute",visibility:$&&T?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(H.height=8,H.left=0,H.right=0,H.bottom=0,W.height="100%",W.width=d,C?W.left=F:W.right=F):(H.width=8,H.top=0,H.bottom=0,C?H.right=0:H.left=0,W.width="100%",W.height=d,W.top=F),B.createElement("div",{ref:E,className:Km(z,(n={},Ed(n,"".concat(z,"-horizontal"),u),Ed(n,"".concat(z,"-vertical"),!u),Ed(n,"".concat(z,"-visible"),$),n)),style:Rh(Rh({},H),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:_},B.createElement("div",{ref:O,className:Km("".concat(z,"-thumb"),Ed({},"".concat(z,"-thumb-moving"),m)),style:Rh(Rh({},W),h),onMouseDown:R}))}));function Yj(e){var t=e.children,n=e.setRef,r=B.useCallback((function(e){n(e)}),[]);return B.cloneElement(t,{ref:r})}var Qj=function(){function e(){gf(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return bf(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var Jj=10;function Zj(e,t,n){var r=gg(B.useState(e),2),o=r[0],i=r[1],a=gg(B.useState(null),2),l=a[0],s=a[1];return B.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=s(r[d]);if(f!==s(o[d])){c=d,u=u||f!==s(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),s(e[r.index])),i(e)}),[e]),[l]}var eP="object"===("undefined"==typeof navigator?"undefined":kd(navigator))&&/Firefox/i.test(navigator.userAgent);const tP=function(e,t){var n=B.useRef(!1),r=B.useRef(null);var o=B.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&o.current.top||e>0&&o.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};function nP(e,t,n,r,o){var i=B.useRef(0),a=B.useRef(null),l=B.useRef(null),s=B.useRef(!1),c=tP(t,n);var u=B.useRef(null),d=B.useRef(null);return[function(t){if(e){uv.cancel(d.current),d.current=uv((function(){u.current=null}),2);var n=t.deltaX,f=t.deltaY,p=t.shiftKey,h=n,g=f;("sx"===u.current||!u.current&&p&&f&&!n)&&(h=f,g=0,u.current="sx");var m=Math.abs(h),b=Math.abs(g);null===u.current&&(u.current=r&&m>b?"x":"y"),"y"===u.current?function(e,t){uv.cancel(a.current),i.current+=t,l.current=t,c(t)||(eP||e.preventDefault(),a.current=uv((function(){var e=s.current?10:1;o(i.current*e),i.current=0})))}(t,g):function(e,t){o(t,!0),eP||e.preventDefault()}(t,h)}},function(t){e&&(s.current=t.detail===l.current)}]}var rP=14/15;var oP=20;function iP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,oP),t=Math.min(t,e/2),Math.floor(t)}var aP=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],lP=[],sP={overflowY:"auto",overflowAnchor:"none"};function cP(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=void 0===l||l,c=e.style,u=e.data,d=e.children,f=e.itemKey,p=e.virtual,h=e.direction,g=e.scrollWidth,m=e.component,b=void 0===m?"div":m,v=e.onScroll,y=e.onVirtualScroll,w=e.onVisibleChange,x=e.innerProps,S=e.extraRender,k=e.styles,C=Od(e,aP),E=!(!1===p||!i||!a),O=E&&u&&(a*u.length>i||!!g),D="rtl"===h,$=Km(r,Ed({},"".concat(r,"-rtl"),D),o),j=u||lP,P=B.useRef(),_=B.useRef(),N=gg(B.useState(0),2),I=N[0],T=N[1],F=gg(B.useState(0),2),A=F[0],R=F[1],M=gg(B.useState(!1),2),L=M[0],z=M[1],H=function(){z(!0)},W=function(){z(!1)},U=B.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),V={getKey:U};function G(e){T((function(t){var n=function(e){var t=e;Number.isNaN(ge.current)||(t=Math.min(t,ge.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return P.current.scrollTop=n,n}))}var q=B.useRef({start:0,end:j.length}),X=B.useRef(),K=gg(Zj(j,U),1)[0];X.current=K;var Y=function(e,t,n){var r=gg(B.useState(0),2),o=r[0],i=r[1],a=B.useRef(new Map),l=B.useRef(new Qj),s=B.useRef();function c(){uv.cancel(s.current)}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=bb(e),r=n.offsetHeight;l.current.get(t)!==r&&l.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():s.current=uv(t)}return B.useEffect((function(){return c}),[]),[function(r,o){var i=e(r),l=a.current.get(i);o?(a.current.set(i,o),u()):a.current.delete(i),!l!=!o&&(o?null==t||t(r):null==n||n(r))},u,l.current,o]}(U,null,null),Q=gg(Y,4),J=Q[0],Z=Q[1],ee=Q[2],te=Q[3],ne=B.useMemo((function(){if(!E)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};var e;if(!O)return{scrollHeight:(null===(e=_.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:j.length-1,offset:void 0};for(var t,n,r,o=0,l=j.length,s=0;s<l;s+=1){var c=j[s],u=U(c),d=ee.get(u),f=o+(void 0===d?a:d);f>=I&&void 0===t&&(t=s,n=o),f>I+i&&void 0===r&&(r=s),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(i/a)),void 0===r&&(r=j.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,j.length-1),offset:n}}),[O,E,I,j,te,i]),re=ne.scrollHeight,oe=ne.start,ie=ne.end,ae=ne.offset;q.current.start=oe,q.current.end=ie;var le=gg(B.useState({width:0,height:i}),2),se=le[0],ce=le[1],ue=B.useRef(),de=B.useRef(),fe=B.useMemo((function(){return iP(se.width,g)}),[se.width,g]),pe=B.useMemo((function(){return iP(se.height,re)}),[se.height,re]),he=re-i,ge=B.useRef(he);ge.current=he;var me=I<=0,be=I>=he,ve=tP(me,be),ye=function(){return{x:D?-A:A,y:I}},we=B.useRef(ye()),xe=Yy((function(){if(y){var e=ye();we.current.x===e.x&&we.current.y===e.y||(y(e),we.current=e)}}));function Se(e,t){var n=e;t?(vd.flushSync((function(){R(n)})),xe()):G(n)}var ke=function(e){var t=e,n=g-se.width;return t=Math.max(t,0),t=Math.min(t,n)},Ce=Yy((function(e,t){t?(vd.flushSync((function(){R((function(t){return ke(t+(D?-e:e))}))})),xe()):G((function(t){return t+e}))})),Ee=gg(nP(E,me,be,!!g,Ce),2),Oe=Ee[0],De=Ee[1];!function(e,t,n){var r,o=B.useRef(!1),i=B.useRef(0),a=B.useRef(null),l=B.useRef(null),s=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=i.current-t;i.current=t,n(r)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!n(r*=rP,!0)||Math.abs(r)<=.1)&&clearInterval(l.current)}),16)}},c=function(){o.current=!1,r()},u=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",s),a.current.addEventListener("touchend",c))};r=function(){a.current&&(a.current.removeEventListener("touchmove",s),a.current.removeEventListener("touchend",c))},Pg((function(){return e&&t.current.addEventListener("touchstart",u),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",u),r(),clearInterval(l.current)}}),[e])}(E,P,(function(e,t){return!ve(e,t)&&(Oe({preventDefault:function(){},deltaY:e}),!0)})),Pg((function(){function e(e){E&&e.preventDefault()}var t=P.current;return t.addEventListener("wheel",Oe),t.addEventListener("DOMMouseScroll",De),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Oe),t.removeEventListener("DOMMouseScroll",De),t.removeEventListener("MozMousePixelScroll",e)}}),[E]),Pg((function(){g&&R((function(e){return ke(e)}))}),[se.width,g]);var $e=function(){var e,t;null===(e=ue.current)||void 0===e||e.delayHidden(),null===(t=de.current)||void 0===t||t.delayHidden()},je=function(e,t,n,r,o,i,a,l){var s=B.useRef(),c=gg(B.useState(null),2),u=c[0],d=c[1];return Pg((function(){if(u&&u.times<Jj){if(!e.current)return void d((function(e){return Rh({},e)}));i();var l=u.targetAlign,s=u.originAlign,c=u.index,f=u.offset,p=e.current.clientHeight,h=!1,g=l,m=null;if(p){for(var b=l||s,v=0,y=0,w=0,x=Math.min(t.length-1,c),S=0;S<=x;S+=1){var k=o(t[S]);y=v;var C=n.get(k);v=w=y+(void 0===C?r:C)}for(var E="top"===b?f:p-f,O=x;O>=0;O-=1){var D=o(t[O]),$=n.get(D);if(void 0===$){h=!0;break}if((E-=$)<=0)break}switch(b){case"top":m=y-f;break;case"bottom":m=w-p+f;break;default:var j=e.current.scrollTop;y<j?g="top":w>j+p&&(g="bottom")}null!==m&&a(m),m!==u.lastTop&&(h=!0)}h&&d(Rh(Rh({},u),{},{times:u.times+1,targetAlign:g,lastTop:m}))}}),[u,e.current]),function(e){if(null!=e){if(uv.cancel(s.current),"number"==typeof e)a(e);else if(e&&"object"===kd(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key}));var i=e.offset;d({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else l()}}(P,j,ee,a,U,(function(){return Z(!0)}),G,$e);B.useImperativeHandle(t,(function(){return{getScrollInfo:ye,scrollTo:function(e){var t;(t=e)&&"object"===kd(t)&&("left"in t||"top"in t)?(void 0!==e.left&&R(ke(e.left)),je(e.top)):je(e)}}})),Pg((function(){if(w){var e=j.slice(oe,ie+1);w(e,j)}}),[oe,ie,j]);var Pe=function(e,t,n,r){var o=gg(B.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),i=o[0],a=o[1];return function(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,s=i.get(o),c=i.get(l);if(void 0===s||void 0===c)for(var u=e.length,d=a.length;d<u;d+=1){var f,p=e[d],h=t(p);i.set(h,d);var g=null!==(f=n.get(h))&&void 0!==f?f:r;if(a[d]=(a[d-1]||0)+g,h===o&&(s=d),h===l&&(c=d),void 0!==s&&void 0!==c)break}return{top:a[s-1]||0,bottom:a[c]}}}(j,U,ee,a),_e=null==S?void 0:S({start:oe,end:ie,virtual:O,offsetX:A,offsetY:ae,rtl:D,getSize:Pe}),Ne=function(e,t,n,r,o,i,a){var l=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=i(e,t+n,{style:{width:r}}),s=l(e);return B.createElement(Yj,{key:s,setRef:function(t){return o(e,t)}},a)}))}(j,oe,ie,g,J,d,V),Ie=null;i&&(Ie=Rh(Ed({},s?"height":"maxHeight",i),sP),E&&(Ie.overflowY="hidden",g&&(Ie.overflowX="hidden"),L&&(Ie.pointerEvents="none")));var Te={};return D&&(Te.dir="rtl"),B.createElement("div",Jp({style:Rh(Rh({},c),{},{position:"relative"}),className:$},Te,C),B.createElement(rv,{onResize:function(e){ce({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},B.createElement(b,{className:"".concat(r,"-holder"),style:Ie,ref:P,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==I&&G(t),null==v||v(e),xe()},onMouseEnter:$e},B.createElement(qj,{prefixCls:r,height:re,offsetX:A,offsetY:ae,scrollWidth:g,onInnerResize:Z,ref:_,innerProps:x,rtl:D,extra:_e},Ne))),O&&re>i&&B.createElement(Kj,{ref:ue,prefixCls:r,scrollOffset:I,scrollRange:re,rtl:D,onScroll:Se,onStartMove:H,onStopMove:W,spinSize:pe,containerSize:se.height,style:null==k?void 0:k.verticalScrollBar,thumbStyle:null==k?void 0:k.verticalScrollBarThumb}),O&&g&&B.createElement(Kj,{ref:de,prefixCls:r,scrollOffset:A,scrollRange:g,rtl:D,onScroll:Se,onStartMove:H,onStopMove:W,spinSize:fe,containerSize:se.width,horizontal:!0,style:null==k?void 0:k.horizontalScrollBar,thumbStyle:null==k?void 0:k.horizontalScrollBarThumb}))}var uP=B.forwardRef(cP);uP.displayName="List";var dP=B.createContext(null);var fP=["disabled","title","children","style","className"];function pP(e){return"string"==typeof e||"number"==typeof e}var hP=function(e,t){var n=B.useContext(A$),r=n.prefixCls,o=n.id,i=n.open,a=n.multiple,l=n.mode,s=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=B.useContext(dP),p=f.flattenOptions,h=f.onActiveValue,g=f.defaultActiveFirstOption,m=f.onSelect,b=f.menuItemSelectedIcon,v=f.rawValues,y=f.fieldNames,w=f.virtual,x=f.direction,S=f.listHeight,k=f.listItemHeight,C=f.optionRender,E="".concat(r,"-item"),O=Lh((function(){return p}),[i,p],(function(e,t){return t[0]&&e[1]!==t[1]})),D=B.useRef(null),$=function(e){e.preventDefault()},j=function(e){D.current&&D.current.scrollTo("number"==typeof e?{index:e}:e)},P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=O[o],a=i.group,l=i.data;if(!a&&!l.disabled)return o}return-1},_=gg(B.useState((function(){return P(0)})),2),N=_[0],I=_[1],T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];I(e);var n={source:t?"keyboard":"mouse"},r=O[e];r?h(r.value,e,n):h(null,-1,n)};B.useEffect((function(){T(!1!==g?P(0):-1)}),[O.length,s]);var F=B.useCallback((function(e){return v.has(e)&&"combobox"!==l}),[l,Fh(v).toString(),v.size]);B.useEffect((function(){var e,t=setTimeout((function(){if(!a&&i&&1===v.size){var e=Array.from(v)[0],t=O.findIndex((function(t){return t.data.value===e}));-1!==t&&(T(t),j(t))}}));i&&(null===(e=D.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[i,s]);var A=function(e){void 0!==e&&m(e,{selected:!v.has(e)}),a||c(!1)};if(B.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case DS.N:case DS.P:case DS.UP:case DS.DOWN:var r=0;if(t===DS.UP?r=-1:t===DS.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===DS.N?r=1:t===DS.P&&(r=-1)),0!==r){var o=P(N+r,r);j(o),T(o,!0)}break;case DS.ENTER:var a=O[N];a&&!a.data.disabled?A(a.value):A(void 0),i&&e.preventDefault();break;case DS.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===O.length)return B.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(E,"-empty"),onMouseDown:$},u);var R=Object.keys(y).map((function(e){return y[e]})),M=function(e){return e.label};function L(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var z=function(e){var t=O[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,i=nS(n,!0),a=M(t);return t?B.createElement("div",Jp({"aria-label":"string"!=typeof a||o?null:a},i,{key:e},L(t,e),{"aria-selected":F(r)}),r):null},H={role:"listbox",id:"".concat(o,"_list")};return B.createElement(B.Fragment,null,w&&B.createElement("div",Jp({},H,{style:{height:0,width:0,overflow:"hidden"}}),z(N-1),z(N),z(N+1)),B.createElement(uP,{itemKey:"key",ref:D,data:O,height:S,itemHeight:k,fullHeight:!1,onMouseDown:$,onScroll:d,virtual:w,direction:x,innerProps:w?null:H},(function(e,t){var n,r=e.group,o=e.groupOption,i=e.data,a=e.label,l=e.value,s=i.key;if(r){var c,u=null!==(c=i.title)&&void 0!==c?c:pP(a)?a.toString():void 0;return B.createElement("div",{className:Km(E,"".concat(E,"-group")),title:u},void 0!==a?a:s)}var d=i.disabled,f=i.title;i.children;var p=i.style,h=i.className,g=ov(Od(i,fP),R),m=F(l),v="".concat(E,"-option"),y=Km(E,v,h,(Ed(n={},"".concat(v,"-grouped"),o),Ed(n,"".concat(v,"-active"),N===t&&!d),Ed(n,"".concat(v,"-disabled"),d),Ed(n,"".concat(v,"-selected"),m),n)),x=M(e),S=!b||"function"==typeof b||m,k="number"==typeof x?x:x||l,O=pP(k)?k.toString():void 0;return void 0!==f&&(O=f),B.createElement("div",Jp({},nS(g),w?{}:L(e,t),{"aria-selected":m,className:y,title:O,onMouseMove:function(){N===t||d||T(t)},onClick:function(){d||A(l)},style:p}),B.createElement("div",{className:"".concat(v,"-content")},"function"==typeof C?C(e,{index:t}):k),B.isValidElement(b)||m,S&&B.createElement(F$,{className:"".concat(E,"-option-state"),customizeIcon:b,customizeIconProps:{value:l,disabled:d,isSelected:m}},m?"✓":null))})))},gP=B.forwardRef(hP);gP.displayName="OptionList";function mP(e,t){return oj(e).join("").toUpperCase().includes(t)}var bP=0,vP=eg();function yP(e){var t=gg(B.useState(),2),n=t[0],r=t[1];return B.useEffect((function(){var e;r("rc_select_".concat((vP?(e=bP,bP+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var wP=["children","value"],xP=["children"];function SP(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return gb(e).map((function(e,n){if(!B.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,a=r.props,l=a.children,s=Od(a,xP);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return Rh({key:n,value:void 0!==i?i:n,children:o},Od(r,wP))}(e):Rh(Rh({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:SP(l)})})).filter((function(e){return e}))}function kP(e){var t=B.useRef();t.current=e;var n=B.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var CP=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],EP=["inputValue"];var OP=B.forwardRef((function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=void 0===o?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,p=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,m=void 0===g||g,b=e.filterOption,v=e.filterSort,y=e.optionFilterProp,w=e.optionLabelProp,x=e.options,S=e.optionRender,k=e.children,C=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,O=e.virtual,D=e.direction,$=e.listHeight,j=void 0===$?200:$,P=e.listItemHeight,_=void 0===P?20:P,N=e.value,I=e.defaultValue,T=e.labelInValue,F=e.onChange,A=Od(e,CP),R=yP(n),M=Wj(r),L=!(x||!k),z=B.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),H=B.useMemo((function(){return Lj(l,L)}),[JSON.stringify(l),L]),W=gg(Zy("",{value:void 0!==c?c:s,postState:function(e){return e||""}}),2),U=W[0],V=W[1],G=function(e,t,n,r,o){return B.useMemo((function(){var i=e;!e&&(i=SP(t));var a=new Map,l=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||i?(a.set(u[n.value],u),s(l,u,n.label),s(l,u,r),s(l,u,o)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:l}}),[e,t,n,r,o])}(x,k,H,y,w),q=G.valueOptions,X=G.labelOptions,K=G.options,Y=B.useCallback((function(e){return oj(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==kd(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,s=q.get(t);s&&(void 0===n&&(n=null==s?void 0:s[w||H.label]),void 0===r&&(r=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),o=null==s?void 0:s.disabled,i=null==s?void 0:s.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[H,w,q]),Q=gg(Zy(I,{value:N}),2),J=Q[0],Z=Q[1],ee=B.useMemo((function(){var e,t=Y(J);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[J,Y,r]),te=function(e,t){var n=B.useRef({values:new Map,options:new Map});return[B.useMemo((function(){var r=n.current,o=r.values,i=r.options,a=e.map((function(e){var t;return void 0===e.label?Rh(Rh({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,s=new Map;return a.forEach((function(e){l.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=s,a}),[e,t]),B.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(ee,q),ne=gg(te,2),re=ne[0],oe=ne[1],ie=B.useMemo((function(){if(!r&&1===re.length){var e=re[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return re.map((function(e){var t;return Rh(Rh({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[r,re]),ae=B.useMemo((function(){return new Set(re.map((function(e){return e.value})))}),[re]);B.useEffect((function(){if("combobox"===r){var e,t=null===(e=re[0])||void 0===e?void 0:e.value;V(function(e){return null!=e}(t)?String(t):"")}}),[re]);var le=kP((function(e,t){var n,r=null!=t?t:e;return Ed(n={},H.value,e),Ed(n,H.label,r),n})),se=B.useMemo((function(){if("tags"!==r)return K;var e=Fh(K);return Fh(re).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return q.has(e)})(n)||e.push(le(n,t.label))})),e}),[le,K,q,re,r]),ce=function(e,t,n,r,o){return B.useMemo((function(){if(!n||!1===r)return e;var i=t.options,a=t.label,l=t.value,s=[],c="function"==typeof r,u=n.toUpperCase(),d=c?r:function(e,t){return o?mP(t[o],u):t[i]?mP(t["children"!==a?a:"label"],u):mP(t[l],u)},f=c?function(e){return zj(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,f(e)))s.push(e);else{var t=e[i].filter((function(e){return d(n,f(e))}));t.length&&s.push(Rh(Rh({},e),{},Ed({},i,t)))}else d(n,f(e))&&s.push(e)})),s}),[e,r,o,n,t])}(se,H,U,z,y),ue=B.useMemo((function(){return"tags"!==r||!U||ce.some((function(e){return e[y||"value"]===U}))||ce.some((function(e){return e[H.value]===U}))?ce:[le(U)].concat(Fh(ce))}),[le,y,r,ce,U,H]),de=B.useMemo((function(){return v?Fh(ue).sort((function(e,t){return v(e,t)})):ue}),[ue,v]),fe=B.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Lj(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,n){t.forEach((function(t){if(n||!(s in t)){var i=t[l];o.push({key:Mj(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:Mj(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}}))}(e,!1),o}(de,{fieldNames:H,childrenAsData:L})}),[de,H,L]),pe=function(e){var t=Y(e);if(Z(t),F&&(t.length!==re.length||t.some((function(e,t){var n;return(null===(n=re[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=T?t:t.map((function(e){return e.value})),r=t.map((function(e){return zj(oe(e.value))}));F(M?n:n[0],M?r:r[0])}},he=gg(B.useState(null),2),ge=he[0],me=he[1],be=gg(B.useState(0),2),ve=be[0],ye=be[1],we=void 0!==C?C:"combobox"!==r,xe=B.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;ye(t),a&&"combobox"===r&&null!==e&&"keyboard"===o&&me(String(e))}),[a,r]),Se=function(e,t,n){var r=function(){var t,n=oe(e);return[T?{label:null==n?void 0:n[H.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,zj(n)]};if(t&&p){var o=gg(r(),2),i=o[0],a=o[1];p(i,a)}else if(!t&&h&&"clear"!==n){var l=gg(r(),2),s=l[0],c=l[1];h(s,c)}},ke=kP((function(e,t){var n,o=!M||t.selected;n=o?M?[].concat(Fh(re),[e]):[e]:re.filter((function(t){return t.value!==e})),pe(n),Se(e,o),"combobox"===r?me(""):Wj&&!f||(V(""),me(""))})),Ce=B.useMemo((function(){var e=!1!==O&&!1!==m;return Rh(Rh({},G),{},{flattenOptions:fe,onActiveValue:xe,defaultActiveFirstOption:we,onSelect:ke,menuItemSelectedIcon:E,rawValues:ae,fieldNames:H,virtual:e,direction:D,listHeight:j,listItemHeight:_,childrenAsData:L,optionRender:S})}),[G,fe,xe,we,ke,E,ae,H,O,m,j,_,L,S]);return B.createElement(dP.Provider,{value:Ce},B.createElement(Uj,Jp({},A,{id:R,prefixCls:i,ref:t,omitDomProps:EP,mode:r,displayValues:ie,onDisplayValuesChange:function(e,t){pe(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Se(e.value,!1,n)}))},direction:D,searchValue:U,onSearch:function(e,t){if(V(e),me(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&pe(e),null==u||u(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Fh(ae),[n])));pe(o),Se(n,!0),V("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=X.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Fh(ae),Fh(t))));pe(n),n.forEach((function(e){Se(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:gP,emptyOptions:!fe.length,activeValue:ge,activeDescendantId:"".concat(R,"_list_").concat(ve)})))})),DP=OP;function $P(e,t,n){return Km({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}DP.Option=Gj,DP.OptGroup=Vj;const jP=(e,t)=>t||e,PP=()=>{const[,e]=Ky(),t=new Jv(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return B.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},B.createElement("g",{fill:"none",fillRule:"evenodd"},B.createElement("g",{transform:"translate(24 31.67)"},B.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),B.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),B.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),B.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),B.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),B.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),B.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},B.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),B.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},_P=()=>{const[,e]=Ky(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=B.useMemo((()=>({borderColor:new Jv(t).onBackground(o).toHexShortString(),shadowColor:new Jv(n).onBackground(o).toHexShortString(),contentColor:new Jv(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return B.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},B.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},B.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),B.createElement("g",{fillRule:"nonzero",stroke:i},B.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),B.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},NP=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},IP=pw("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=cw(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[NP(r)]}));const TP=B.createElement(PP,null),FP=B.createElement(_P,null),AP=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=TP,description:i,children:a,imageStyle:l,style:s}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=B.useContext(Ny),p=u("empty",r),[h,g]=IP(p),[m]=Nv("Empty"),b=void 0!==i?i:null==m?void 0:m.description,v="string"==typeof b?b:"empty";let y=null;return y="string"==typeof o?B.createElement("img",{alt:v,src:o}):o,h(B.createElement("div",Object.assign({className:Km(g,p,null==f?void 0:f.className,{[`${p}-normal`]:o===FP,[`${p}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),s)},c),B.createElement("div",{className:`${p}-image`,style:l},y),b&&B.createElement("div",{className:`${p}-description`},b),a&&B.createElement("div",{className:`${p}-footer`},a)))};AP.PRESENTED_IMAGE_DEFAULT=TP,AP.PRESENTED_IMAGE_SIMPLE=FP;const RP=AP,MP=e=>{const{componentName:t}=e,{getPrefixCls:n}=B.useContext(Ny),r=n("empty");switch(t){case"Table":case"List":return H.createElement(RP,{image:RP.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return H.createElement(RP,{image:RP.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return H.createElement(RP,null)}},LP=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},zP=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},nw(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:oD},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:aD},[`${a}${l}bottomLeft`]:{animationName:iD},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:lD},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},LP(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},tw),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},pD(e,"slide-up"),pD(e,"slide-down"),rD(e,"move-up"),rD(e,"move-down")]},BP=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function HP(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,[a]=BP(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const WP=e=>{const{componentCls:t}=e,n=cw(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=cw(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=BP(e);return[HP(e),HP(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},HP(r,"lg")]};function UP(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},nw(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function VP(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[UP(e),UP(cw(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},UP(cw(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const GP=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},qP=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,antCls:i,borderActiveColor:a,outlineColor:l,controlOutlineWidth:s}=t,c=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${s}px ${l}`,outline:0}})}}},XP=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},KP=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},nw(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},GP(e)),XP(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},tw),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},tw),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},YP=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},KP(e),VP(e),WP(e),zP(e),{[`${t}-rtl`]:{direction:"rtl"}},qP(t,cw(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),qP(`${t}-status-error`,cw(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),qP(`${t}-status-warning`,cw(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),FC(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},QP=pw("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=cw(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[YP(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:g}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}}));function JP(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const ZP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var e_=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:ZP}))};const t_=B.forwardRef(e_);const n_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var r_=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:n_}))};const o_=B.forwardRef(r_);const i_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a_=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:i_}))};const l_=B.forwardRef(a_);const s_="SECRET_COMBOBOX_MODE_DO_NOT_USE",c_=(e,t)=>{var n,r,{prefixCls:o,bordered:i=!0,className:a,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p=24,size:h,disabled:g,notFoundContent:m,status:b,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:S,allowClear:k}=e,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:E,getPrefixCls:O,renderEmpty:D,direction:$,virtual:j,popupMatchSelectWidth:P,popupOverflow:_,select:N}=B.useContext(Ny),I=O("select",o),T=O(),F=null!=x?x:$,{compactSize:A,compactItemClassnames:R}=Vk(I,F),[M,L]=QP(I),z=B.useMemo((()=>{const{mode:e}=C;if("combobox"!==e)return e===s_?"combobox":e}),[C.mode]),H="multiple"===z||"tags"===z,W=function(e,t){return void 0!==t?t:null!==e}(C.suffixIcon,C.showArrow),U=null!==(n=null!=w?w:y)&&void 0!==n?n:P,{status:V,hasFeedback:G,isFormItemInput:q,feedbackIcon:X}=B.useContext(FO),K=jP(V,b);let Y;Y=void 0!==m?m:"combobox"===z?null:(null==D?void 0:D("Select"))||B.createElement(MP,{componentName:"Select"});const{suffixIcon:Q,itemIcon:J,removeIcon:Z,clearIcon:ee}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const p=null!=n?n:B.createElement(Hx,null),h=e=>null!==t||l||d?B.createElement(B.Fragment,null,!1!==c&&e,l&&u):null;let g=null;if(void 0!==t)g=h(t);else if(i)g=h(B.createElement(zS,{spin:!0}));else{const e=`${s}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return h(n&&r?B.createElement(l_,{className:e}):B.createElement(o_,{className:e}))}}let m=null;m=void 0!==r?r:a?B.createElement(t_,null):null;let b=null;return b=void 0!==o?o:B.createElement(Vx,null),{clearIcon:p,suffixIcon:g,itemIcon:m,removeIcon:b}}(Object.assign(Object.assign({},C),{multiple:H,hasFeedback:G,feedbackIcon:X,showSuffixIcon:W,prefixCls:I,showArrow:C.showArrow,componentName:"Select"})),te=!0===k?{clearIcon:ee}:k,ne=ov(C,["suffixIcon","itemIcon"]),re=Km(c||u,{[`${I}-dropdown-${F}`]:"rtl"===F},l,L),oe=Mk((e=>{var t;return null!==(t=null!=h?h:A)&&void 0!==t?t:e})),ie=B.useContext(Ry),ae=null!=g?g:ie,le=Km({[`${I}-lg`]:"large"===oe,[`${I}-sm`]:"small"===oe,[`${I}-rtl`]:"rtl"===F,[`${I}-borderless`]:!i,[`${I}-in-form-item`]:q},$P(I,K,G),R,null==N?void 0:N.className,a,l,L),se=B.useMemo((()=>void 0!==f?f:"rtl"===F?"bottomRight":"bottomLeft"),[f,F]),ce=JP(v,_),[ue]=GS("SelectLike",null===(r=C.dropdownStyle)||void 0===r?void 0:r.zIndex);return M(B.createElement(DP,Object.assign({ref:t,virtual:j,showSearch:null==N?void 0:N.showSearch},ne,{style:Object.assign(Object.assign({},null==N?void 0:N.style),S),dropdownMatchSelectWidth:U,builtinPlacements:ce,transitionName:$k(T,"slide-up",C.transitionName),listHeight:d,listItemHeight:p,mode:z,prefixCls:I,placement:se,direction:F,suffixIcon:Q,menuItemSelectedIcon:J,removeIcon:Z,allowClear:te,notFoundContent:Y,className:le,getPopupContainer:s||E,dropdownClassName:re,disabled:ae,dropdownStyle:Object.assign(Object.assign({},null==C?void 0:C.dropdownStyle),{zIndex:ue})})))},u_=B.forwardRef(c_),d_=(f_=u_,I$((function(e){const{prefixCls:t,style:n}=e,r=B.useRef(null),[o,i]=B.useState(0),[a,l]=B.useState(0),[s,c]=Zy(!1,{value:e.open}),{getPrefixCls:u}=B.useContext(Ny),d=u(p_||"select",t);B.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),l(t.offsetWidth)})),t=setInterval((()=>{var n;const o=h_?`.${h_(d)}`:`.${d}-dropdown`,i=null===(n=r.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let f=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:s,visible:s,getPopupContainer:()=>r.current});return g_&&(f=g_(f)),B.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:a}},B.createElement(f_,Object.assign({},f)))})));var f_,p_,h_,g_;u_.SECRET_COMBOBOX_MODE_DO_NOT_USE=s_,u_.Option=Gj,u_.OptGroup=Vj,u_._InternalPanelDoNotUseOrYouWillBeFired=d_;const m_=u_,b_=["xxl","xl","lg","md","sm","xs"],v_=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),y_=e=>{const t=e,n=[].concat(b_).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e};function w_(){const[,e]=Ky(),t=v_(y_(e));return H.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}function x_(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=B.useRef({}),n=function(){const[,e]=B.useReducer((e=>e+1),0);return e}(),r=w_();return Pg((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current}const S_=B.createContext({}),k_=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:h,lineWidth:g,lineType:m}=e,b=(e,t,o)=>({width:e,height:e,lineHeight:e-2*g+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},nw(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${g}px ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,f)),{"&-lg":Object.assign({},b(l,u,p)),"&-sm":Object.assign({},b(s,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},C_=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},E_=pw("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=cw(e,{avatarBg:n,avatarColor:t});return[k_(r),C_(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}}));const O_=(e,t)=>{const[n,r]=B.useState(1),[o,i]=B.useState(!1),[a,l]=B.useState(!0),s=B.useRef(null),c=B.useRef(null),u=yb(t,s),{getPrefixCls:d,avatar:f}=B.useContext(Ny),p=B.useContext(S_),h=()=>{if(!c.current||!s.current)return;const t=c.current.offsetWidth,n=s.current.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o<n&&r(n-2*o<t?(n-2*o)/t:1)}};B.useEffect((()=>{i(!0)}),[]),B.useEffect((()=>{l(!0),r(1)}),[e.src]),B.useEffect(h,[e.gap]);const g=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&l(!1)},{prefixCls:m,shape:b,size:v,src:y,srcSet:w,icon:x,className:S,rootClassName:k,alt:C,draggable:E,children:O,crossOrigin:D}=e,$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),j=Mk((e=>{var t,n;return null!==(n=null!==(t=null!=v?v:null==p?void 0:p.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),P=x_(Object.keys("object"==typeof j&&j||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),_=B.useMemo((()=>{if("object"!=typeof j)return{};const e=b_.find((e=>P[e])),t=j[e];return t?{width:t,height:t,lineHeight:`${t}px`,fontSize:t&&(x||O)?t/2:18}:{}}),[P,j]),N=d("avatar",m),[I,T]=E_(N),F=Km({[`${N}-lg`]:"large"===j,[`${N}-sm`]:"small"===j}),A=B.isValidElement(y),R=b||(null==p?void 0:p.shape)||"circle",M=Km(N,F,null==f?void 0:f.className,`${N}-${R}`,{[`${N}-image`]:A||y&&a,[`${N}-icon`]:!!x},S,k,T),L="number"==typeof j?{width:j,height:j,lineHeight:`${j}px`,fontSize:x?j/2:18}:{};let z;if("string"==typeof y&&a)z=B.createElement("img",{src:y,draggable:E,srcSet:w,onError:g,alt:C,crossOrigin:D});else if(A)z=y;else if(x)z=x;else if(o||1!==n){const e=`scale(${n}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},r="number"==typeof j?{lineHeight:`${j}px`}:{};z=B.createElement(rv,{onResize:h},B.createElement("span",{className:`${N}-string`,ref:c,style:Object.assign(Object.assign({},r),t)},O))}else z=B.createElement("span",{className:`${N}-string`,style:{opacity:0},ref:c},O);return delete $.onError,delete $.gap,I(B.createElement("span",Object.assign({},$,{style:Object.assign(Object.assign(Object.assign(Object.assign({},L),_),null==f?void 0:f.style),$.style),className:M,ref:u}),z))},D_=B.forwardRef(O_),$_=e=>e?"function"==typeof e?e():e:null;function j_(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return B.createElement("div",{className:Km("".concat(n,"-content"),i),style:a},B.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var P_={shiftX:64,adjustY:1},__={adjustX:1,shiftY:!0},N_=[0,0],I_={left:{points:["cr","cl"],overflow:__,offset:[-4,0],targetOffset:N_},right:{points:["cl","cr"],overflow:__,offset:[4,0],targetOffset:N_},top:{points:["bc","tc"],overflow:P_,offset:[0,-4],targetOffset:N_},bottom:{points:["tc","bc"],overflow:P_,offset:[0,4],targetOffset:N_},topLeft:{points:["bl","tl"],overflow:P_,offset:[0,-4],targetOffset:N_},leftTop:{points:["tr","tl"],overflow:__,offset:[-4,0],targetOffset:N_},topRight:{points:["br","tr"],overflow:P_,offset:[0,-4],targetOffset:N_},rightTop:{points:["tl","tr"],overflow:__,offset:[4,0],targetOffset:N_},bottomRight:{points:["tr","br"],overflow:P_,offset:[0,4],targetOffset:N_},rightBottom:{points:["bl","br"],overflow:__,offset:[4,0],targetOffset:N_},bottomLeft:{points:["tl","bl"],overflow:P_,offset:[0,4],targetOffset:N_},leftBottom:{points:["br","bl"],overflow:__,offset:[-4,0],targetOffset:N_}},T_=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],F_=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,l=e.mouseLeaveDelay,s=void 0===l?.1:l,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,v=e.placement,y=void 0===v?"right":v,w=e.align,x=void 0===w?{}:w,S=e.destroyTooltipOnHide,k=void 0!==S&&S,C=e.defaultVisible,E=e.getTooltipContainer,O=e.overlayInnerStyle;e.arrowContent;var D=e.overlay,$=e.id,j=e.showArrow,P=void 0===j||j,_=Od(e,T_),N=B.useRef(null);B.useImperativeHandle(t,(function(){return N.current}));var I=Rh({},_);"visible"in e&&(I.popupVisible=e.visible);return B.createElement(Tj,Jp({popupClassName:n,prefixCls:d,popup:function(){return B.createElement(j_,{key:"content",prefixCls:d,id:$,overlayInnerStyle:O},D)},action:o,builtinPlacements:I_,popupPlacement:y,ref:N,popupAlign:x,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:C,autoDestroy:k,mouseLeaveDelay:s,popupStyle:c,mouseEnterDelay:a,arrow:P},I),f)};const A_=B.forwardRef(F_),R_=8;function M_(e){const t=R_,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function L_(e,t){return e?t:{}}function z_(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:s=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:p}=M_({contentRadius:s,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},ew(r,o,i,l,a)),{"&:before":{background:l}})]},L_(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),L_(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),L_(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),L_(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}const B_={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},H_={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},W_=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function U_(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(B_).forEach((e=>{const c=r&&H_[e]||B_[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,W_.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=M_({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-l;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),s}const V_=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nw(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,R_)}},[`${t}-content`]:{position:"relative"}}),gw(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},z_(cw(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},G_=(e,t)=>pw("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=cw(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[V_(a),DD(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),q_=By.map((e=>`${e}-inverse`)),X_=["success","processing","error","default","warning"];function K_(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Fh(q_),Fh(By)).includes(e):By.includes(e)}function Y_(e,t){const n=K_(t),r=Km({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const Q_=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=B.useContext(Ny),s=l("tooltip",t),[c,u]=G_(s,!0),d=Y_(s,i),f=d.arrowStyle,p=Object.assign(Object.assign({},a),d.overlayStyle),h=Km(u,s,`${s}-pure`,`${s}-placement-${r}`,n,d.className);return c(B.createElement("div",{className:h,style:f},B.createElement("div",{className:`${s}-arrow`}),B.createElement(j_,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:p}),o)))};const J_=B.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:v=!1,autoAdjustOverflow:y=!0}=e,w=!!h,[,x]=Ky(),{getPopupContainer:S,getPrefixCls:k,direction:C}=B.useContext(Ny),E=xv(),O=B.useRef(null),D=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};B.useImperativeHandle(t,(()=>({forceAlign:D,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),D()}})));const[$,j]=Zy(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),P=!g&&!m&&0!==g,_=B.useMemo((()=>{var e,t;let n=v;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:v),b||U_({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[v,h,b,x]),N=B.useMemo((()=>0===g?g:m||g||""),[m,g]),I=B.createElement(Gk,null,"function"==typeof N?N():N),{getPopupContainer:T,placement:F="top",mouseEnterDelay:A=.1,mouseLeaveDelay:R=.1,overlayStyle:M,rootClassName:L}=e,z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=k("tooltip",o),W=k(),U=e["data-popover-inject"];let V=$;"open"in e||"visible"in e||!P||(V=!1);const G=rS(u)&&!oS(u)?u:B.createElement("span",null,u),q=G.props,X=q.className&&"string"!=typeof q.className?q.className:Km(q.className,i||`${H}-open`),[K,Y]=G_(H,!U),Q=Y_(H,s),J=Q.arrowStyle,Z=Object.assign(Object.assign({},c),Q.overlayStyle),ee=Km(l,{[`${H}-rtl`]:"rtl"===C},Q.className,L,Y),[te,ne]=GS("Tooltip",z.zIndex),re=B.createElement(A_,Object.assign({},z,{zIndex:te,showArrow:w,placement:F,mouseEnterDelay:A,mouseLeaveDelay:R,prefixCls:H,overlayClassName:ee,overlayStyle:Object.assign(Object.assign({},J),M),getTooltipContainer:T||a||S,ref:O,builtinPlacements:_,overlay:I,visible:V,onVisibleChange:t=>{var n,r;j(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:Z,arrowContent:B.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:$k(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),V?aS(G,{className:X}):G);return K(B.createElement(BS.Provider,{value:ne},re))}));J_._InternalPanelDoNotUseOrYouWillBeFired=Q_;const Z_=J_,eN=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:f}=e;return[{[t]:Object.assign(Object.assign({},nw(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},z_(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},tN=e=>{const{componentCls:t}=e;return{[t]:By.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},nN=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:s,padding:c}=e,u=a-Math.round(l*s);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${c}px`}}}},rN=pw("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=cw(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[eN(o),tN(o),r&&nN(o),DD(o,"zoom-big")]}),(e=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const oN=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e;return B.createElement("div",{className:Km(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},B.createElement("div",{className:`${n}-arrow`}),B.createElement(j_,Object.assign({},e,{className:t,prefixCls:n}),s||((e,t,n)=>{if(t||n)return B.createElement(B.Fragment,null,t&&B.createElement("div",{className:`${e}-title`},$_(t)),B.createElement("div",{className:`${e}-inner-content`},$_(n)))})(n,a,l)))},iN=e=>{const{prefixCls:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls"]),{getPrefixCls:r}=B.useContext(Ny),o=r("popover",t),[i,a]=rN(o);return i(B.createElement(oN,Object.assign({},n,{prefixCls:o,hashId:a})))};const aN=e=>{let{title:t,content:n,prefixCls:r}=e;return B.createElement(B.Fragment,null,t&&B.createElement("div",{className:`${r}-title`},$_(t)),B.createElement("div",{className:`${r}-inner-content`},$_(n)))},lN=B.forwardRef(((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=B.useContext(Ny),p=f("popover",n),[h,g]=rN(p),m=f(),b=Km(i,g);return h(B.createElement(Z_,Object.assign({placement:a,trigger:l,mouseEnterDelay:s,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:p,overlayClassName:b,ref:t,overlay:r||o?B.createElement(aN,{prefixCls:p,title:r,content:o}):null,transitionName:$k(m,"zoom-big",d.transitionName),"data-popover-inject":!0})))}));lN._InternalPanelDoNotUseOrYouWillBeFired=iN;const sN=lN,cN=e=>{const{size:t,shape:n}=B.useContext(S_),r=B.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return B.createElement(S_.Provider,{value:r},e.children)},uN=e=>{const{getPrefixCls:t,direction:n}=B.useContext(Ny),{prefixCls:r,className:o,rootClassName:i,style:a,maxCount:l,maxStyle:s,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:f="hover",children:p}=e,h=t("avatar",r),g=`${h}-group`,[m,b]=E_(h),v=Km(g,{[`${g}-rtl`]:"rtl"===n},o,i,b),y=gb(p).map(((e,t)=>aS(e,{key:`avatar-key-${t}`}))),w=y.length;if(l&&l<w){const e=y.slice(0,l),t=y.slice(l,w);return e.push(B.createElement(sN,{key:"avatar-popover-key",content:t,trigger:f,placement:d,overlayClassName:`${g}-popover`},B.createElement(D_,{style:s},"+"+(w-l)))),m(B.createElement(cN,{shape:u,size:c},B.createElement("div",{className:v,style:a},e)))}return m(B.createElement(cN,{shape:u,size:c},B.createElement("div",{className:v,style:a},y)))},dN=D_;dN.Group=uN;const fN=dN;const pN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var hN=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:pN}))};const gN=B.forwardRef(hN);var mN=DS.ESC,bN=DS.TAB;var vN=B.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=B.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=yb(t,null==i?void 0:i.ref);return H.createElement(H.Fragment,null,r&&H.createElement("div",{className:"".concat(o,"-arrow")}),H.cloneElement(i,{ref:xb(i)?a:void 0}))})),yN={adjustX:1,adjustY:1},wN=[0,0],xN={topLeft:{points:["bl","tl"],overflow:yN,offset:[0,-4],targetOffset:wN},top:{points:["bc","tc"],overflow:yN,offset:[0,-4],targetOffset:wN},topRight:{points:["br","tr"],overflow:yN,offset:[0,-4],targetOffset:wN},bottomLeft:{points:["tl","bl"],overflow:yN,offset:[0,4],targetOffset:wN},bottom:{points:["tc","bc"],overflow:yN,offset:[0,4],targetOffset:wN},bottomRight:{points:["tr","br"],overflow:yN,offset:[0,4],targetOffset:wN}},SN=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function kN(e,t){var n,r=e.arrow,o=void 0!==r&&r,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,p=void 0===f?xN:f,h=e.getPopupContainer,g=e.showAction,m=e.hideAction,b=e.overlayClassName,v=e.overlayStyle,y=e.visible,w=e.trigger,x=void 0===w?["hover"]:w,S=e.autoFocus,k=e.overlay,C=e.children,E=e.onVisibleChange,O=Od(e,SN),D=gg(H.useState(),2),$=D[0],j=D[1],P="visible"in e?y:$,_=H.useRef(null),N=H.useRef(null),I=H.useRef(null);H.useImperativeHandle(t,(function(){return _.current}));var T=function(e){j(e),null==E||E(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=B.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},s=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case mN:l();break;case bN:var t=!1;a.current||(t=s()),t?e.preventDefault():l()}};B.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&uv(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:P,triggerRef:I,onVisibleChange:T,autoFocus:S,overlayRef:N});var F,A,R,M=function(){return H.createElement(vN,{ref:N,overlay:k,prefixCls:a,arrow:o})},L=H.cloneElement(C,{className:Km(null===(n=C.props)||void 0===n?void 0:n.className,P&&(F=e.openClassName,void 0!==F?F:"".concat(a,"-open"))),ref:xb(C)?yb(I,C.ref):void 0}),z=m;return z||-1===x.indexOf("contextMenu")||(z=["click"]),H.createElement(Tj,Jp({builtinPlacements:p},O,{prefixCls:a,ref:_,popupClassName:Km(b,Ed({},"".concat(a,"-show-arrow"),o)),popupStyle:v,action:x,showAction:g,hideAction:z,popupPlacement:d,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:P,stretch:(A=e.minOverlayWidthMatchTrigger,R=e.alignPoint,("minOverlayWidthMatchTrigger"in e?A:!R)?"minWidth":""),popup:"function"==typeof k?M:M(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;j(!1),n&&n(t)},getPopupContainer:h}),L)}const CN=H.forwardRef(kN);var EN=B.createContext(null);function ON(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function DN(e){return ON(B.useContext(EN),e)}var $N=["children","locked"],jN=B.createContext(null);function PN(e){var t=e.children,n=e.locked,r=Od(e,$N),o=B.useContext(jN),i=Lh((function(){return e=r,t=Rh({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&Vh(e[1],t[1],!0))}));return B.createElement(jN.Provider,{value:i},t)}var _N=[],NN=B.createContext(null);function IN(){return B.useContext(NN)}var TN=B.createContext(_N);function FN(e){var t=B.useContext(TN);return B.useMemo((function(){return void 0!==e?[].concat(Fh(t),[e]):t}),[t,e])}var AN=B.createContext(null),RN=B.createContext({});function MN(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(jk(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var LN=DS.LEFT,zN=DS.RIGHT,BN=DS.UP,HN=DS.DOWN,WN=DS.ENTER,UN=DS.ESC,VN=DS.HOME,GN=DS.END,qN=[BN,HN,LN,zN];function XN(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Fh(e.querySelectorAll("*")).filter((function(e){return MN(e,t)}));return MN(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function KN(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=XN(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}function YN(e,t,n,r,o,i,a,l,s,c){var u=B.useRef(),d=B.useRef();d.current=t;var f=function(){uv.cancel(u.current)};return B.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat(qN,[WN,UN,VN,GN]).includes(h)){var g,m,b,v=function(){return g=new Set,m=new Map,b=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(ON(r,e),"']"));t&&(g.add(t),b.set(t,e),m.set(e,t))})),g};v();var y=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(m.get(t),g),w=b.get(y),x=function(e,t,n,r){var o,i,a,l,s="prev",c="next",u="children",d="parent";if("inline"===e&&r===WN)return{inlineTrigger:!0};var f=(Ed(o={},BN,s),Ed(o,HN,c),o),p=(Ed(i={},LN,n?c:s),Ed(i,zN,n?s:c),Ed(i,HN,u),Ed(i,WN,u),i),h=(Ed(a={},BN,s),Ed(a,HN,c),Ed(a,WN,u),Ed(a,UN,d),Ed(a,LN,n?u:d),Ed(a,zN,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===a(w,!0).length,n,h);if(!x&&h!==VN&&h!==GN)return;(qN.includes(h)||[VN,GN].includes(h))&&p.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=b.get(e);l(r),f(),u.current=uv((function(){d.current===r&&t.focus()}))}};if([VN,GN].includes(h)||x.sibling||!y){var k,C,E=XN(k=y&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):o.current,g);C=h===VN?E[0]:h===GN?E[E.length-1]:KN(k,g,y,x.offset),S(C)}else if(x.inlineTrigger)s(w);else if(x.offset>0)s(w,!0),f(),u.current=uv((function(){v();var e=y.getAttribute("aria-controls"),t=KN(document.getElementById(e),g);S(t)}),5);else if(x.offset<0){var O=a(w,!0),D=O[O.length-2],$=m.get(D);s(D,!1),S($)}}null==c||c(p)}}var QN="__RC_UTIL_PATH_SPLIT__",JN=function(e){return e.join(QN)},ZN="rc-menu-more";function eI(){var e=gg(B.useState({}),2)[1],t=B.useRef(new Map),n=B.useRef(new Map),r=gg(B.useState([]),2),o=r[0],i=r[1],a=B.useRef(0),l=B.useRef(!1),s=B.useCallback((function(r,o){var i=JN(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;var s,c=a.current;s=function(){c===a.current&&(l.current||e({}))},Promise.resolve().then(s)}),[]),c=B.useCallback((function(e,r){var o=JN(r);n.current.delete(o),t.current.delete(e)}),[]),u=B.useCallback((function(e){i(e)}),[]),d=B.useCallback((function(e,n){var r=t.current.get(e)||"",i=r.split(QN);return n&&o.includes(i[0])&&i.unshift(ZN),i}),[o]),f=B.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),p=B.useCallback((function(e){var r="".concat(t.current.get(e)).concat(QN),o=new Set;return Fh(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return B.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:s,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=Fh(t.current.keys());return o.length&&e.push(ZN),e},getSubPathKeys:p}}function tI(e){var t=B.useRef(e);t.current=e;var n=B.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var nI=Math.random().toFixed(5).toString().slice(2),rI=0;function oI(e,t,n,r){var o=B.useContext(jN),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},s.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),s}function iI(e){var t=B.useContext(jN),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function aI(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=B.createElement(n,Rh({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var lI=["item"];function sI(e){var t=e.item,n=Od(e,lI);return Object.defineProperty(n,"item",{get:function(){return Uh(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var cI=["title","attribute","elementRef"],uI=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],dI=["active"],fI=function(e){Xb(n,B.Component);var t=Jb(n);function n(){return gf(this,n),t.apply(this,arguments)}return bf(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=ov(Od(e,cI),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Uh(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),B.createElement(tj.Item,Jp({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(),pI=B.forwardRef((function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,h=e.onFocus,g=Od(e,uI),m=DN(i),b=B.useContext(jN),v=b.prefixCls,y=b.onItemClick,w=b.disabled,x=b.overflowDisabled,S=b.itemIcon,k=b.selectedKeys,C=b.onActive,E=B.useContext(RN)._internalRenderMenuItem,O="".concat(v,"-item"),D=B.useRef(),$=B.useRef(),j=w||a,P=wb(t,$),_=FN(i),N=function(e){return{key:i,keyPath:Fh(_).reverse(),item:D.current,domEvent:e}},I=l||S,T=oI(i,j,u,d),F=T.active,A=Od(T,dI),R=k.includes(i),M=iI(_.length),L={};"option"===e.role&&(L["aria-selected"]=R);var z=B.createElement(fI,Jp({ref:D,elementRef:P,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":x&&m?null:m},g,A,L,{component:"li","aria-disabled":a,style:Rh(Rh({},M),r),className:Km(O,(n={},Ed(n,"".concat(O,"-active"),F),Ed(n,"".concat(O,"-selected"),R),Ed(n,"".concat(O,"-disabled"),j),n),o),onClick:function(e){if(!j){var t=N(e);null==f||f(sI(t)),y(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===DS.ENTER){var t=N(e);null==f||f(sI(t)),y(t)}},onFocus:function(e){C(i),null==h||h(e)}}),s,B.createElement(aI,{props:Rh(Rh({},e),{},{isSelected:R}),icon:I}));return E&&(z=E(z,e,{selected:R})),z}));function hI(e,t){var n=e.eventKey,r=IN(),o=FN(n);return B.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:B.createElement(pI,Jp({},e,{ref:t}))}const gI=B.forwardRef(hI);var mI=["className","children"],bI=function(e,t){var n=e.className,r=e.children,o=Od(e,mI),i=B.useContext(jN),a=i.prefixCls,l=i.mode,s=i.rtl;return B.createElement("ul",Jp({className:Km(a,s&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},vI=B.forwardRef(bI);function yI(e,t){return gb(e).map((function(e,n){if(B.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==a&&(a="tmp_key-".concat([].concat(Fh(t),[n]).join("-")));var l={key:a,eventKey:a};return B.cloneElement(e,l)}return e}))}vI.displayName="SubMenuList";var wI={adjustX:1,adjustY:1},xI={topLeft:{points:["bl","tl"],overflow:wI},topRight:{points:["br","tr"],overflow:wI},bottomLeft:{points:["tl","bl"],overflow:wI},bottomRight:{points:["tr","br"],overflow:wI},leftTop:{points:["tr","tl"],overflow:wI},leftBottom:{points:["br","bl"],overflow:wI},rightTop:{points:["tl","tr"],overflow:wI},rightBottom:{points:["bl","br"],overflow:wI}},SI={topLeft:{points:["bl","tl"],overflow:wI},topRight:{points:["br","tr"],overflow:wI},bottomLeft:{points:["tl","bl"],overflow:wI},bottomRight:{points:["tr","br"],overflow:wI},rightTop:{points:["tr","tl"],overflow:wI},rightBottom:{points:["br","bl"],overflow:wI},leftTop:{points:["tl","tr"],overflow:wI},leftBottom:{points:["bl","br"],overflow:wI}};function kI(e,t,n){return t||(n?n[e]||n.other:void 0)}var CI={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function EI(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,u=e.onVisibleChange,d=B.useContext(jN),f=d.getPopupContainer,p=d.rtl,h=d.subMenuOpenDelay,g=d.subMenuCloseDelay,m=d.builtinPlacements,b=d.triggerSubMenuAction,v=d.forceSubMenuRender,y=d.rootClassName,w=d.motion,x=d.defaultMotions,S=gg(B.useState(!1),2),k=S[0],C=S[1],E=Rh(Rh({},p?SI:xI),m),O=CI[c],D=kI(c,w,x),$=B.useRef(D);"inline"!==c&&($.current=D);var j=Rh(Rh({},$.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=B.useRef();return B.useEffect((function(){return P.current=uv((function(){C(n)})),function(){uv.cancel(P.current)}}),[n]),B.createElement(Tj,{prefixCls:t,popupClassName:Km("".concat(t,"-popup"),Ed({},"".concat(t,"-rtl"),p),a,y),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:f,builtinPlacements:E,popupPlacement:O,popupVisible:k,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[b],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:v,popupMotion:j,fresh:!0},r)}function OI(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=B.useContext(jN),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=B.useRef(!1);f.current=d===i;var p=gg(B.useState(!f.current),2),h=p[0],g=p[1],m=!!f.current&&n;B.useEffect((function(){f.current&&g(!1)}),[d]);var b=Rh({},kI(i,c,u));r.length>1&&(b.motionAppear=!1);var v=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||g(!0),null==v?void 0:v(e)},h?null:B.createElement(PN,{mode:i,locked:!f.current},B.createElement(Zw,Jp({visible:m},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return B.createElement(vI,{id:t,className:n,style:r},o)})))}var DI=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$I=["active"],jI=function(e){var t,n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.internalPopupClose,s=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,p=e.popupStyle,h=e.onClick,g=e.onMouseEnter,m=e.onMouseLeave,b=e.onTitleClick,v=e.onTitleMouseEnter,y=e.onTitleMouseLeave,w=Od(e,DI),x=DN(i),S=B.useContext(jN),k=S.prefixCls,C=S.mode,E=S.openKeys,O=S.disabled,D=S.overflowDisabled,$=S.activeKey,j=S.selectedKeys,P=S.itemIcon,_=S.expandIcon,N=S.onItemClick,I=S.onOpenChange,T=S.onActive,F=B.useContext(RN)._internalRenderSubMenuItem,A=B.useContext(AN).isSubPathKey,R=FN(),M="".concat(k,"-submenu"),L=O||a,z=B.useRef(),H=B.useRef(),W=null!=c?c:P,U=null!=u?u:_,V=E.includes(i),G=!D&&V,q=A(j,i),X=oI(i,L,v,y),K=X.active,Y=Od(X,$I),Q=gg(B.useState(!1),2),J=Q[0],Z=Q[1],ee=function(e){L||Z(e)},te=B.useMemo((function(){return K||"inline"!==C&&(J||A([$],i))}),[C,K,$,J,i,A]),ne=iI(R.length),re=tI((function(e){null==h||h(sI(e)),N(e)})),oe=x&&"".concat(x,"-popup"),ie=B.createElement("div",Jp({role:"menuitem",style:ne,className:"".concat(M,"-title"),tabIndex:L?null:-1,ref:z,title:"string"==typeof o?o:null,"data-menu-id":D&&x?null:x,"aria-expanded":G,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":L,onClick:function(e){L||(null==b||b({key:i,domEvent:e}),"inline"===C&&I(i,!V))},onFocus:function(){T(i)}},Y),o,B.createElement(aI,{icon:"horizontal"!==C?U:void 0,props:Rh(Rh({},e),{},{isOpen:G,isSubMenu:!0})},B.createElement("i",{className:"".concat(M,"-arrow")}))),ae=B.useRef(C);if("inline"!==C&&R.length>1?ae.current="vertical":ae.current=C,!D){var le=ae.current;ie=B.createElement(EI,{mode:le,prefixCls:M,visible:!l&&G&&"inline"!==C,popupClassName:d,popupOffset:f,popupStyle:p,popup:B.createElement(PN,{mode:"horizontal"===le?"vertical":le},B.createElement(vI,{id:oe,ref:H},s)),disabled:L,onVisibleChange:function(e){"inline"!==C&&I(i,e)}},ie)}var se=B.createElement(tj.Item,Jp({role:"none"},w,{component:"li",style:n,className:Km(M,"".concat(M,"-").concat(C),r,(t={},Ed(t,"".concat(M,"-open"),G),Ed(t,"".concat(M,"-active"),te),Ed(t,"".concat(M,"-selected"),q),Ed(t,"".concat(M,"-disabled"),L),t)),onMouseEnter:function(e){ee(!0),null==g||g({key:i,domEvent:e})},onMouseLeave:function(e){ee(!1),null==m||m({key:i,domEvent:e})}}),ie,!D&&B.createElement(OI,{id:oe,open:G,keyPath:R},s));return F&&(se=F(se,e,{selected:q,active:te,open:G,disabled:L})),B.createElement(PN,{onItemClick:re,mode:"horizontal"===C?"vertical":C,itemIcon:W,expandIcon:U},se)};function PI(e){var t,n=e.eventKey,r=e.children,o=FN(n),i=yI(r,o),a=IN();return B.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:B.createElement(jI,e,i),B.createElement(TN.Provider,{value:o},t)}var _I=["className","title","eventKey","children"],NI=["children"],II=function(e){var t=e.className,n=e.title;e.eventKey;var r=e.children,o=Od(e,_I),i=B.useContext(jN).prefixCls,a="".concat(i,"-item-group");return B.createElement("li",Jp({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:Km(a,t)}),B.createElement("div",{role:"presentation",className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),B.createElement("ul",{role:"group",className:"".concat(a,"-list")},r))};function TI(e){var t=e.children,n=Od(e,NI),r=yI(t,FN(n.eventKey));return IN()?r:B.createElement(II,ov(n,["warnKey"]),r)}function FI(e){var t=e.className,n=e.style,r=B.useContext(jN).prefixCls;return IN()?null:B.createElement("li",{role:"separator",className:Km("".concat(r,"-item-divider"),t),style:n})}var AI=["label","children","key","type"];function RI(e){return(e||[]).map((function(e,t){if(e&&"object"===kd(e)){var n=e,r=n.label,o=n.children,i=n.key,a=n.type,l=Od(n,AI),s=null!=i?i:"tmp-".concat(t);return o||"group"===a?"group"===a?B.createElement(TI,Jp({key:s},l,{title:r}),RI(o)):B.createElement(PI,Jp({key:s},l,{title:r}),RI(o)):"divider"===a?B.createElement(FI,Jp({key:s},l)):B.createElement(gI,Jp({key:s},l),r)}return null})).filter((function(e){return e}))}function MI(e,t,n){var r=e;return t&&(r=RI(t)),yI(r,n)}var LI=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],zI=[],BI=B.forwardRef((function(e,t){var n,r,o=e,i=o.prefixCls,a=void 0===i?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,h=o.direction,g=o.id,m=o.mode,b=void 0===m?"vertical":m,v=o.inlineCollapsed,y=o.disabled,w=o.disabledOverflow,x=o.subMenuOpenDelay,S=void 0===x?.1:x,k=o.subMenuCloseDelay,C=void 0===k?.1:k,E=o.forceSubMenuRender,O=o.defaultOpenKeys,D=o.openKeys,$=o.activeKey,j=o.defaultActiveFirst,P=o.selectable,_=void 0===P||P,N=o.multiple,I=void 0!==N&&N,T=o.defaultSelectedKeys,F=o.selectedKeys,A=o.onSelect,R=o.onDeselect,M=o.inlineIndent,L=void 0===M?24:M,z=o.motion,H=o.defaultMotions,W=o.triggerSubMenuAction,U=void 0===W?"hover":W,V=o.builtinPlacements,G=o.itemIcon,q=o.expandIcon,X=o.overflowedIndicator,K=void 0===X?"...":X,Y=o.overflowedIndicatorPopupClassName,Q=o.getPopupContainer,J=o.onClick,Z=o.onOpenChange,ee=o.onKeyDown;o.openAnimation,o.openTransitionName;var te=o._internalRenderMenuItem,ne=o._internalRenderSubMenuItem,re=Od(o,LI),oe=B.useMemo((function(){return MI(p,f,zI)}),[p,f]),ie=gg(B.useState(!1),2),ae=ie[0],le=ie[1],se=B.useRef(),ce=function(e){var t=gg(Zy(e,{value:e}),2),n=t[0],r=t[1];return B.useEffect((function(){rI+=1;var e="".concat(nI,"-").concat(rI);r("rc-menu-uuid-".concat(e))}),[]),n}(g),ue="rtl"===h,de=gg(Zy(O,{value:D,postState:function(e){return e||zI}}),2),fe=de[0],pe=de[1],he=function(e){function t(){pe(e),null==Z||Z(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?vd.flushSync(t):t()},ge=gg(B.useState(fe),2),me=ge[0],be=ge[1],ve=B.useRef(!1),ye=gg(B.useMemo((function(){return"inline"!==b&&"vertical"!==b||!v?[b,!1]:["vertical",v]}),[b,v]),2),we=ye[0],xe=ye[1],Se="inline"===we,ke=gg(B.useState(we),2),Ce=ke[0],Ee=ke[1],Oe=gg(B.useState(xe),2),De=Oe[0],$e=Oe[1];B.useEffect((function(){Ee(we),$e(xe),ve.current&&(Se?pe(me):he(zI))}),[we,xe]);var je=gg(B.useState(0),2),Pe=je[0],_e=je[1],Ne=Pe>=oe.length-1||"horizontal"!==Ce||w;B.useEffect((function(){Se&&be(fe)}),[fe]),B.useEffect((function(){return ve.current=!0,function(){ve.current=!1}}),[]);var Ie=eI(),Te=Ie.registerPath,Fe=Ie.unregisterPath,Ae=Ie.refreshOverflowKeys,Re=Ie.isSubPathKey,Me=Ie.getKeyPath,Le=Ie.getKeys,ze=Ie.getSubPathKeys,Be=B.useMemo((function(){return{registerPath:Te,unregisterPath:Fe}}),[Te,Fe]),He=B.useMemo((function(){return{isSubPathKey:Re}}),[Re]);B.useEffect((function(){Ae(Ne?zI:oe.slice(Pe+1).map((function(e){return e.key})))}),[Pe,Ne]);var We=gg(Zy($||j&&(null===(n=oe[0])||void 0===n?void 0:n.key),{value:$}),2),Ue=We[0],Ve=We[1],Ge=tI((function(e){Ve(e)})),qe=tI((function(){Ve(void 0)}));B.useImperativeHandle(t,(function(){return{list:se.current,focus:function(e){var t,n,r,o,i=null!=Ue?Ue:null===(t=oe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=se.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(ON(ce,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var Xe=gg(Zy(T||[],{value:F,postState:function(e){return Array.isArray(e)?e:null==e?zI:[e]}}),2),Ke=Xe[0],Ye=Xe[1],Qe=tI((function(e){null==J||J(sI(e)),function(e){if(_){var t,n=e.key,r=Ke.includes(n);t=I?r?Ke.filter((function(e){return e!==n})):[].concat(Fh(Ke),[n]):[n],Ye(t);var o=Rh(Rh({},e),{},{selectedKeys:t});r?null==R||R(o):null==A||A(o)}!I&&fe.length&&"inline"!==Ce&&he(zI)}(e)})),Je=tI((function(e,t){var n=fe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ce){var r=ze(e);n=n.filter((function(e){return!r.has(e)}))}Vh(fe,n,!0)||he(n,!0)})),Ze=YN(Ce,Ue,ue,ce,se,Le,Me,Ve,(function(e,t){var n=null!=t?t:!fe.includes(e);Je(e,n)}),ee);B.useEffect((function(){le(!0)}),[]);var et=B.useMemo((function(){return{_internalRenderMenuItem:te,_internalRenderSubMenuItem:ne}}),[te,ne]),tt="horizontal"!==Ce||w?oe:oe.map((function(e,t){return B.createElement(PN,{key:e.key,overflowDisabled:t>Pe},e)})),nt=B.createElement(tj,Jp({id:g,ref:se,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:gI,className:Km(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ce),c,(r={},Ed(r,"".concat(a,"-inline-collapsed"),De),Ed(r,"".concat(a,"-rtl"),ue),r),l),dir:h,style:s,role:"menu",tabIndex:d,data:tt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?oe.slice(-t):null;return B.createElement(PI,{eventKey:ZN,title:K,disabled:Ne,internalPopupClose:0===t,popupClassName:Y},n)},maxCount:"horizontal"!==Ce||w?tj.INVALIDATE:tj.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){_e(e)},onKeyDown:Ze},re));return B.createElement(RN.Provider,{value:et},B.createElement(EN.Provider,{value:ce},B.createElement(PN,{prefixCls:a,rootClassName:l,mode:Ce,openKeys:fe,rtl:ue,disabled:y,motion:ae?z:null,defaultMotions:ae?H:null,activeKey:Ue,onActive:Ge,onInactive:qe,selectedKeys:Ke,inlineIndent:L,subMenuOpenDelay:S,subMenuCloseDelay:C,forceSubMenuRender:E,builtinPlacements:V,triggerSubMenuAction:U,getPopupContainer:Q,itemIcon:G,expandIcon:q,onItemClick:Qe,onOpenChange:Je},B.createElement(AN.Provider,{value:He},nt),B.createElement("div",{style:{display:"none"},"aria-hidden":!0},B.createElement(NN.Provider,{value:Be},oe)))))}));BI.Item=gI,BI.SubMenu=PI,BI.ItemGroup=TI,BI.Divider=FI;const HI=B.createContext({});const WI=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=B.useContext(Ny),a=i("menu",t),l=Km({[`${a}-item-divider-dashed`]:!!r},n);return B.createElement(FI,Object.assign({className:l},o))},UI=B.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),VI=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=B.useContext(UI),{siderCollapsed:f}=B.useContext(HI);let p=i;void 0===i?p=s?r:"":!1===i&&(p="");const h={title:p};f||d||(h.title=null,h.open=!1);const g=gb(r).length;let m=B.createElement(gI,Object.assign({},ov(e,["title","icon","danger"]),{className:Km({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof i?i:void 0}),aS(o,{className:Km(rS(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=B.createElement("span",{className:`${l}-title-content`},r);return(!o||rS(r)&&"span"===r.type)&&r&&e&&s&&"string"==typeof r?B.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(m=B.createElement(Z_,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),m)),m},GI=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=B.useContext(UI),{prefixCls:l,inlineCollapsed:s,theme:c}=a,u=FN();let d;if(r){const e=rS(o)&&"span"===o.type;d=B.createElement(B.Fragment,null,aS(r,{className:Km(rS(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?o:B.createElement("span",{className:`${l}-title-content`},o))}else d=s&&!u.length&&o&&"string"==typeof o?B.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):B.createElement("span",{className:`${l}-title-content`},o);const f=B.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]),[p]=GS("Menu");return B.createElement(UI.Provider,{value:f},B.createElement(PI,Object.assign({},ov(e,["icon"]),{title:d,popupClassName:Km(l,n,`${l}-${i||c}`),popupStyle:{zIndex:p}})))};const qI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var XI=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:qI}))};const KI=B.forwardRef(XI);var YI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function QI(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,l=YI(n,["label","children","key","type"]),s=null!=i?i:`tmp-${t}`;return o||"group"===a?"group"===a?B.createElement(TI,Object.assign({key:s},l,{title:r}),QI(o)):B.createElement(GI,Object.assign({key:s},l,{title:r}),QI(o)):"divider"===a?B.createElement(WI,Object.assign({key:s},l)):B.createElement(VI,Object.assign({key:s},l),r)}return null})).filter((e=>e))}function JI(e){return B.useMemo((()=>e?QI(e):e),[e])}const ZI=B.createContext(null),eT=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},tT=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},nT=e=>Object.assign({},iw(e)),rT=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:S,dangerItemSelectedColor:k,dangerItemActiveBg:C,dangerItemSelectedBg:E,itemHoverBg:O,itemActiveBg:D,menuSubMenuBg:$,horizontalItemSelectedColor:j,horizontalItemSelectedBg:P,horizontalItemBorderRadius:_,horizontalItemHoverBg:N,popupBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},nT(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},nT(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:$},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(",")}}}}}},oT=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}},iT=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},oT(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},oT(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},tw),{paddingInline:p})}}]},aT=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},lT=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},sT=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:g,lineType:m,menuPanelMaskInset:b,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nw(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${s}px`,fontSize:y,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),aT(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${s}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},aT(e)),lT(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),lT(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*h}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};const cT=B.forwardRef(((e,t)=>{var n,r;const o=B.useContext(ZI),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=B.useContext(Ny),u=a(),{prefixCls:d,className:f,style:p,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:b,siderCollapsed:v,items:y,children:w,rootClassName:x,mode:S,selectable:k,onClick:C,overflowedIndicatorPopupClassName:E}=e,O=ov(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),D=JI(y)||w;null===(n=i.validator)||void 0===n||n.call(i,{mode:S});const $=Yy((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),j=i.mode||S,P=null!=k?k:i.selectable,_=B.useMemo((()=>void 0!==v?v:b),[b,v]),N={horizontal:{motionName:`${u}-slide-up`},inline:Dk(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),[T,F]=((e,t)=>pw("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:l,darkDangerItemColor:s,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:f,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:m,darkItemDisabledColor:b,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:w}=e,x=a/7*5,S=cw(e,{menuArrowSize:x,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*x+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),k=cw(S,{itemColor:l,itemHoverColor:m,groupTitleColor:g,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:f,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:s,dangerItemHoverColor:v,dangerItemSelectedColor:y,dangerItemActiveBg:w,dangerItemSelectedBg:p,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[sT(S),eT(S),iT(S),rT(S,"light"),rT(k,"dark"),tT(S),$D(S),pD(S,"slide-up"),pD(S,"slide-down"),DD(S,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:h,lineHeight:g,colorBgElevated:m,marginXXS:b,padding:v,fontSize:y,controlHeightSM:w,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:k}=e,C=new Jv(S).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:c,itemActiveBg:f,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:g,collapsedWidth:2*h,popupBg:m,itemMarginBlock:b,itemPaddingInline:v,horizontalLineHeight:1.15*h+"px",iconSize:y,iconMarginInlineEnd:w-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new Jv(S).setAlpha(.25).toRgbString(),darkItemColor:C,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:C,darkItemHoverColor:S,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e))(I,!o),A=Km(`${I}-${h}`,null==c?void 0:c.className,f);let R;if("function"==typeof g)R=g;else if(null===g||!1===g)R=null;else if(null===i.expandIcon||!1===i.expandIcon)R=null;else{const e=null!=g?g:i.expandIcon;R=aS(e,{className:Km(`${I}-submenu-expand-icon`,rS(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const M=B.useMemo((()=>({prefixCls:I,inlineCollapsed:_||!1,direction:s,firstLevel:!0,theme:h,mode:j,disableMenuItemTitleTooltip:m})),[I,_,s,m,h]);return T(B.createElement(ZI.Provider,{value:null},B.createElement(UI.Provider,{value:M},B.createElement(BI,Object.assign({getPopupContainer:l,overflowedIndicator:B.createElement(KI,null),overflowedIndicatorPopupClassName:Km(I,`${I}-${h}`,E),mode:j,selectable:P,onClick:$},O,{inlineCollapsed:_,style:Object.assign(Object.assign({},null==c?void 0:c.style),p),className:A,prefixCls:I,direction:s,defaultMotions:N,expandIcon:R,ref:t,rootClassName:Km(x,F)}),D))))})),uT=cT,dT=B.forwardRef(((e,t)=>{const n=B.useRef(null),r=B.useContext(HI);return B.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),B.createElement(uT,Object.assign({ref:n},e,r))}));dT.Item=VI,dT.SubMenu=GI,dT.Divider=WI,dT.ItemGroup=TI;const fT=dT;var pT={exports:{}};pT.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",s="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,m={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},b=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:b,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+b(r,2,"0")+":"+b(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:s,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=m;var x="$isDayjsObject",S=function(e){return e instanceof O||!(!e||!e[x])},k=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},C=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},E=v;E.l=k,E.i=S,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var b=m.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return E},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},b.isAfter=function(e,t){return C(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<C(e)},b.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,m):p(0,m+1);case s:var y=this.$locale().weekStart||0,w=(g<y?g+7:g)-y;return p(r?b-w:b+(6-w),m);case l:case f:return h(v+"Hours",0);case a:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case o:return h(v+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var n,s=E.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[s],h=s===l?this.$D+(t-this.$W):t;if(s===c||s===d){var g=this.clone().set(f,1);g.$d[p](h),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[E.p(e)]()},b.add=function(r,u){var f,p=this;r=Number(r);var h=E.p(u),g=function(e){var t=C(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return g(1);if(h===s)return g(7);var m=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,b=this.$d.getTime()+r*m;return E.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,l=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return E.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return l+1;case"MM":return E.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,c,3);case"MMMM":return d(c,l);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(r,f,p){var h,g=this,m=E.p(f),b=C(r),v=(b.utcOffset()-this.utcOffset())*t,y=this-b,w=function(){return E.m(g,b)};switch(m){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case s:h=(y-v)/6048e5;break;case l:h=(y-v)/864e5;break;case a:h=y/n;break;case i:h=y/t;break;case o:h=y/e;break;default:h=y}return p?h:E.a(h)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return w[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},b.clone=function(){return E.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()},m}(),D=O.prototype;return C.prototype=D,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",c],["$y",d],["$D",f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,O,C),e.$i=!0),C},C.locale=k,C.isDayjs=S,C.unix=function(e){return C(1e3*e)},C.en=w[y],C.Ls=w,C.p={},C}();var hT=pT.exports;const gT=n(hT),mT=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),bT=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),vT=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),yT=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},bT(cw(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),wT=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},xT=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),ST=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:i,warningActiveShadow:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},vT(cw(e,{activeBorderColor:r,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},vT(cw(e,{activeBorderColor:o,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},kT=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},mT(e.colorTextPlaceholder)),{"&:hover":Object.assign({},bT(e)),"&:focus, &:focus-within":Object.assign({},vT(e)),"&-disabled, &[disabled]":Object.assign({},yT(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},wT(e)),"&-sm":Object.assign({},xT(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),CT=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},wT(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},xT(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},ET=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nw(e)),kT(e)),ST(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},OT=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},DT=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kT(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),OT(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),ST(e,`${t}-affix-wrapper`))}},$T=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},nw(e)),CT(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},yT(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},jT=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},PT=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},_T=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function NT(e){return cw(e,{inputAffixPadding:e.paddingXXS})}const IT=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:b,colorWarningOutline:v}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${v}`,hoverBg:"",activeBg:""}},TT=pw("Input",(e=>{const t=cw(e,NT(e));return[ET(t),PT(t),DT(t),$T(t),jT(t),_T(t),FC(t)]}),IT),FT=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=Km({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=Km({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),s=B.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return B.createElement("span",{className:Km(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},AT=new Bm("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),RT=e=>({height:e,lineHeight:`${e}px`}),MT=e=>Object.assign({width:e},RT(e)),LT=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:AT,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),zT=e=>Object.assign({width:5*e,minWidth:5*e},RT(e)),BT=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},MT(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},MT(o)),[`${t}${t}-sm`]:Object.assign({},MT(i))}},HT=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},zT(t)),[`${r}-lg`]:Object.assign({},zT(o)),[`${r}-sm`]:Object.assign({},zT(i))}},WT=e=>Object.assign({width:e},RT(e)),UT=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},WT(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},WT(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},VT=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},GT=e=>Object.assign({width:2*e,minWidth:2*e},RT(e)),qT=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:2*r,minWidth:2*r},GT(r))},VT(e,r,n)),{[`${n}-lg`]:Object.assign({},GT(o))}),VT(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},GT(i))}),VT(e,i,`${n}-sm`))},XT=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:b,controlHeightXS:v,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},MT(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},MT(c)),[`${n}-sm`]:Object.assign({},MT(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},qT(e)),BT(e)),HT(e)),UT(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},LT(e))}}},KT=pw("Skeleton",(e=>{const{componentCls:t}=e,n=cw(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[XT(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),YT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=B.useContext(Ny),s=l("skeleton",t),[c,u]=KT(s),d=ov(e,["prefixCls","className"]),f=Km(s,`${s}-element`,{[`${s}-active`]:o},n,r,u);return c(B.createElement("div",{className:f},B.createElement(FT,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},d))))},QT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=B.useContext(Ny),s=l("skeleton",t),[c,u]=KT(s),d=ov(e,["prefixCls"]),f=Km(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u);return c(B.createElement("div",{className:f},B.createElement(FT,Object.assign({prefixCls:`${s}-button`,size:a},d))))},JT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=B.useContext(Ny),l=a("skeleton",t),[s,c]=KT(l),u=Km(l,`${l}-element`,{[`${l}-active`]:i},n,r,c);return s(B.createElement("div",{className:u},B.createElement("div",{className:Km(`${l}-image`,n),style:o},B.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},B.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},ZT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=B.useContext(Ny),s=l("skeleton",t),[c,u]=KT(s),d=ov(e,["prefixCls"]),f=Km(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u);return c(B.createElement("div",{className:f},B.createElement(FT,Object.assign({prefixCls:`${s}-input`,size:a},d))))};const eF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var tF=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:eF}))};const nF=B.forwardRef(tF),rF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=B.useContext(Ny),s=l("skeleton",t),[c,u]=KT(s),d=Km(s,`${s}-element`,{[`${s}-active`]:i},u,n,r),f=null!=a?a:B.createElement(nF,null);return c(B.createElement("div",{className:d},B.createElement("div",{className:Km(`${s}-image`,n),style:o},f)))},oF=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:i}=e,a=Fh(Array(i)).map(((e,n)=>B.createElement("li",{key:n,style:{width:t(n)}})));return B.createElement("ul",{className:Km(n,r),style:o},a)},iF=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return B.createElement("h3",{className:Km(t,n),style:Object.assign({width:r},o)})};function aF(e){return e&&"object"==typeof e?e:{}}const lF=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:p,skeleton:h}=B.useContext(Ny),g=f("skeleton",t),[m,b]=KT(g);if(n||!("loading"in e)){const e=!!l,t=!!s,n=!!c;let a,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),aF(l));a=B.createElement("div",{className:`${g}-header`},B.createElement(FT,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),aF(s));r=B.createElement(iF,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),aF(c));o=B.createElement(oF,Object.assign({},n))}f=B.createElement("div",{className:`${g}-content`},r,o)}const v=Km(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===p,[`${g}-round`]:d},null==h?void 0:h.className,r,o,b);return m(B.createElement("div",{className:v,style:Object.assign(Object.assign({},null==h?void 0:h.style),i)},a,f))}return void 0!==a?a:null};lF.Button=QT,lF.Avatar=YT,lF.Input=ZT,lF.Image=JT,lF.Node=rF;const sF=lF;const cF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var uF=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:cF}))};const dF=B.forwardRef(uF),fF=B.createContext(null);var pF=B.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return B.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:Km(n,a&&"".concat(n,"-active"),r),ref:t},s)})),hF=["key","forceRender","style","className","destroyInactiveTabPane"];function gF(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=B.useContext(fF),l=a.prefixCls,s=a.tabs,c=r.tabPane,u="".concat(l,"-tabpane");return B.createElement("div",{className:Km("".concat(l,"-content-holder"))},B.createElement("div",{className:Km("".concat(l,"-content"),"".concat(l,"-content-").concat(o),Ed({},"".concat(l,"-content-animated"),c))},s.map((function(e){var o=e.key,a=e.forceRender,l=e.style,s=e.className,d=e.destroyInactiveTabPane,f=Od(e,hF),p=o===n;return B.createElement(Zw,Jp({key:o,visible:p,forceRender:a,removeOnLeave:!(!i&&!d),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return B.createElement(pF,Jp({},f,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:Rh(Rh({},l),r),className:Km(s,i),ref:n}))}))}))))}var mF={width:0,height:0,left:0,top:0};function bF(e,t){var n=B.useRef(e),r=gg(B.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var vF=.1,yF=.01,wF=20,xF=Math.pow(.995,wF);function SF(e){var t=gg(B.useState(0),2),n=t[0],r=t[1],o=B.useRef(0),i=B.useRef();return i.current=e,_g((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var kF={width:0,height:0,left:0,top:0,right:0};function CF(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}var EF="TABS_DQ";function OF(e){return String(e).replace(/"/g,EF)}function DF(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function $F(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?B.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}const jF=B.forwardRef($F);var PF=B.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==kd(i)||B.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?B.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}));function _F(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.moreIcon,s=void 0===l?"More":l,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,m=e.onTabClick,b=e.getPopupContainer,v=e.popupClassName,y=gg(B.useState(!1),2),w=y[0],x=y[1],S=gg(B.useState(null),2),k=S[0],C=S[1],E="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),D=null!==k?"".concat(E,"-").concat(k):null,$=null==i?void 0:i.dropdownAriaLabel;var j=B.createElement(BI,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),x(!1)},prefixCls:"".concat(O,"-menu"),id:E,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[k],"aria-label":void 0!==$?$:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,l=DF(t,o,f,n);return B.createElement(gI,{key:i,id:"".concat(E,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},B.createElement("span",null,a),l&&B.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,i)}},o||f.removeIcon||"×"))})));function P(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,i=0;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void C(a.key)}}B.useEffect((function(){var e=document.getElementById(D);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),B.useEffect((function(){w||C(null)}),[w]);var _=Ed({},h?"marginRight":"marginLeft",p);o.length||(_.visibility="hidden",_.order=1);var N=Km(Ed({},"".concat(O,"-rtl"),h)),I=a?null:B.createElement(CN,{prefixCls:O,overlay:j,trigger:["hover"],visible:!!o.length&&w,transitionName:c,onVisibleChange:x,overlayClassName:Km(N,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},B.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:_,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":E,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case DS.UP:P(-1),e.preventDefault();break;case DS.DOWN:P(1),e.preventDefault();break;case DS.ESC:x(!1);break;case DS.SPACE:case DS.ENTER:null!==k&&m(k,e)}else[DS.DOWN,DS.SPACE,DS.ENTER].includes(t)&&(x(!0),e.preventDefault())}},s));return B.createElement("div",{className:Km("".concat(n,"-nav-operations"),d),style:u,ref:t},I,B.createElement(jF,{prefixCls:n,locale:i,editable:f}))}const NF=B.memo(B.forwardRef(_F),(function(e,t){return t.tabMoving}));function IF(e){var t,n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,s=i.disabled,c=i.closeIcon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,p=e.editable,h=e.onClick,g=e.onFocus,m=e.style,b="".concat(n,"-tab"),v=DF(u,c,p,s);function y(e){s||h(e)}var w=B.createElement("div",{key:a,"data-node-key":OF(a),className:Km(b,(t={},Ed(t,"".concat(b,"-with-remove"),v),Ed(t,"".concat(b,"-active"),o),Ed(t,"".concat(b,"-disabled"),s),t)),style:m,onClick:y},B.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:0,onClick:function(e){e.stopPropagation(),y(e)},onKeyDown:function(e){[DS.SPACE,DS.ENTER].includes(e.which)&&(e.preventDefault(),y(e))},onFocus:g},l),v&&B.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),p.onEdit("remove",{key:a,event:t})}},c||p.removeIcon||"×"));return d?d(w):w}var TF=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,s=a.height;if(Math.abs(l-r)<1)return[l,s]}return[r,i]},FF=function(e,t){return e[t?0:1]};function AF(e,t){var n,r,o,i,a,l,s=B.useContext(fF),c=s.prefixCls,u=s.tabs,d=e.className,f=e.style,p=e.id,h=e.animated,g=e.activeKey,m=e.rtl,b=e.extra,v=e.editable,y=e.locale,w=e.tabPosition,x=e.tabBarGutter,S=e.children,k=e.onTabClick,C=e.onTabScroll,E=e.indicatorSize,O=B.useRef(),D=B.useRef(),$=B.useRef(),j=B.useRef(),P=B.useRef(),_=B.useRef(),N=B.useRef(),I="top"===w||"bottom"===w,T=gg(bF(0,(function(e,t){I&&C&&C({direction:e>t?"left":"right"})})),2),F=T[0],A=T[1],R=gg(bF(0,(function(e,t){!I&&C&&C({direction:e>t?"top":"bottom"})})),2),M=R[0],L=R[1],z=gg(B.useState([0,0]),2),H=z[0],W=z[1],U=gg(B.useState([0,0]),2),V=U[0],G=U[1],q=gg(B.useState([0,0]),2),X=q[0],K=q[1],Y=gg(B.useState([0,0]),2),Q=Y[0],J=Y[1],Z=(r=new Map,o=B.useRef([]),i=gg(B.useState({}),2)[1],a=B.useRef("function"==typeof r?r():r),l=SF((function(){var e=a.current;o.current.forEach((function(t){e=t(e)})),o.current=[],a.current=e,i({})})),[a.current,function(e){o.current.push(e),l()}]),ee=gg(Z,2),te=ee[0],ne=ee[1],re=function(e,t,n){return B.useMemo((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||mF,i=o.left+o.width,a=0;a<e.length;a+=1){var l,s=e[a].key,c=t.get(s);c||(c=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||mF);var u=r.get(s)||Rh({},c);u.right=i-u.left-u.width,r.set(s,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(u,te,V[0]),oe=FF(H,I),ie=FF(V,I),ae=FF(X,I),le=FF(Q,I),se=oe<ie+ae,ce=se?oe-le:oe-ae,ue="".concat(c,"-nav-operations-hidden"),de=0,fe=0;function pe(e){return e<de?de:e>fe?fe:e}I&&m?(de=0,fe=Math.max(0,ie-ce)):(de=Math.min(0,ce-ie),fe=0);var he=B.useRef(),ge=gg(B.useState(),2),me=ge[0],be=ge[1];function ve(){be(Date.now())}function ye(){window.clearTimeout(he.current)}!function(e,t){var n=gg(B.useState(),2),r=n[0],o=n[1],i=gg(B.useState(0),2),a=i[0],l=i[1],s=gg(B.useState(0),2),c=s[0],u=s[1],d=gg(B.useState(),2),f=d[0],p=d[1],h=B.useRef(),g=B.useRef(),m=B.useRef(null);m.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],i=n.screenX,s=n.screenY;o({x:i,y:s});var c=i-r.x,d=s-r.y;t(c,d);var f=Date.now();l(f),u(f-a),p({x:c,y:d})}},onTouchEnd:function(){if(r&&(o(null),p(null),f)){var e=f.x/c,n=f.y/c,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<vF)return;var l=e,s=n;h.current=window.setInterval((function(){Math.abs(l)<yF&&Math.abs(s)<yF?window.clearInterval(h.current):t((l*=xF)*wF,(s*=xF)*wF)}),wF)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===g.current?n:r:i>a?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},B.useEffect((function(){function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){m.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){m.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(j,(function(e,t){function n(e,t){e((function(e){return pe(e+t)}))}return!!se&&(I?n(A,e):n(L,t),ye(),ve(),!0)})),B.useEffect((function(){return ye(),me&&(he.current=window.setTimeout((function(){be(0)}),100)),ye}),[me]);var we=function(e,t,n,r,o,i,a){var l,s,c,u=a.tabs,d=a.tabPosition,f=a.rtl;return["top","bottom"].includes(d)?(l="width",s=f?"right":"left",c=Math.abs(n)):(l="height",s="top",c=-n),B.useMemo((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;o<n;o+=1){var i=e.get(u[o].key)||kF;if(i[s]+i[l]>c+t){r=o-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||kF)[s]<c){a=d+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,c,d,u.map((function(e){return e.key})).join("_"),f])}(re,ce,I?F:M,ie,ae,le,Rh(Rh({},e),{},{tabs:u})),xe=gg(we,2),Se=xe[0],ke=xe[1],Ce=Yy((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(I){var n=F;m?t.right<F?n=t.right:t.right+t.width>F+ce&&(n=t.right+t.width-ce):t.left<-F?n=-t.left:t.left+t.width>-F+ce&&(n=-(t.left+t.width-ce)),L(0),A(pe(n))}else{var r=M;t.top<-M?r=-t.top:t.top+t.height>-M+ce&&(r=-(t.top+t.height-ce)),A(0),L(pe(r))}})),Ee={};"top"===w||"bottom"===w?Ee[m?"marginRight":"marginLeft"]=x:Ee.marginTop=x;var Oe=u.map((function(e,t){var n=e.key;return B.createElement(IF,{id:p,prefixCls:c,key:n,tab:e,style:0===t?void 0:Ee,closable:e.closable,editable:v,active:n===g,renderWrapper:S,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){k(n,e)},onFocus:function(){Ce(n),ve(),j.current&&(m||(j.current.scrollLeft=0),j.current.scrollTop=0)}})})),De=function(){return ne((function(){var e,t=new Map,n=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();return u.forEach((function(e){var r,o=e.key,i=null===(r=P.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(OF(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,s=a.height,c=a.x,u=a.y;return Math.abs(l-n)<1?[l,s,c-t.x,u-t.y]:[n,r,i,o]}(i,n),l=gg(a,4),s=l[0],c=l[1],u=l[2],d=l[3];t.set(o,{width:s,height:c,left:u,top:d})}})),t}))};B.useEffect((function(){De()}),[u.map((function(e){return e.key})).join("_")]);var $e=SF((function(){var e=TF(O),t=TF(D),n=TF($);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=TF(N);K(r);var o=TF(_);J(o);var i=TF(P);G([i[0]-r[0],i[1]-r[1]]),De()})),je=u.slice(0,Se),Pe=u.slice(ke+1),_e=[].concat(Fh(je),Fh(Pe)),Ne=re.get(g),Ie=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicatorSize,i=gg(B.useState(),2),a=i[0],l=i[1],s=B.useRef(),c=function(e){return"function"==typeof o?o(e):"number"==typeof o?o:e};function u(){uv.cancel(s.current)}return B.useEffect((function(){var e={};return t&&(n?(r?(e.right=t.right+t.width/2,e.transform="translateX(50%)"):(e.left=t.left+t.width/2,e.transform="translateX(-50%)"),e.width=c(t.width)):(e.top=t.top+t.height/2,e.transform="translateY(-50%)",e.height=c(t.height))),u(),s.current=uv((function(){l(e)})),u}),[t,n,r,o]),{style:a}}({activeTabOffset:Ne,horizontal:I,rtl:m,indicatorSize:E}),Te=Ie.style;B.useEffect((function(){Ce()}),[g,de,fe,CF(Ne),CF(re),I]),B.useEffect((function(){$e()}),[m]);var Fe,Ae,Re,Me,Le=!!_e.length,ze="".concat(c,"-nav-wrap");return I?m?(Ae=F>0,Fe=F!==fe):(Fe=F<0,Ae=F!==de):(Re=M<0,Me=M!==de),B.createElement(rv,{onResize:$e},B.createElement("div",{ref:wb(t,O),role:"tablist",className:Km("".concat(c,"-nav"),d),style:f,onKeyDown:function(){ve()}},B.createElement(PF,{ref:D,position:"left",extra:b,prefixCls:c}),B.createElement(rv,{onResize:$e},B.createElement("div",{className:Km(ze,(n={},Ed(n,"".concat(ze,"-ping-left"),Fe),Ed(n,"".concat(ze,"-ping-right"),Ae),Ed(n,"".concat(ze,"-ping-top"),Re),Ed(n,"".concat(ze,"-ping-bottom"),Me),n)),ref:j},B.createElement(rv,{onResize:$e},B.createElement("div",{ref:P,className:"".concat(c,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(M,"px)"),transition:me?"none":void 0}},Oe,B.createElement(jF,{ref:N,prefixCls:c,locale:y,editable:v,style:Rh(Rh({},0===Oe.length?void 0:Ee),{},{visibility:Le?"hidden":null})}),B.createElement("div",{className:Km("".concat(c,"-ink-bar"),Ed({},"".concat(c,"-ink-bar-animated"),h.inkBar)),style:Te}))))),B.createElement(NF,Jp({},e,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:_,prefixCls:c,tabs:_e,className:!Le&&ue,tabMoving:!!me})),B.createElement(PF,{ref:$,position:"right",extra:b,prefixCls:c})))}const RF=B.forwardRef(AF);var MF=["renderTabBar"],LF=["label","key"];function zF(e){var t=e.renderTabBar,n=Od(e,MF),r=B.useContext(fF).tabs;return t?t(Rh(Rh({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Od(e,LF);return B.createElement(pF,Jp({tab:t,key:n,tabKey:n},r))}))}),RF):B.createElement(RF,n)}var BF=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],HF=0;function WF(e,t){var n,r=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,a=e.className,l=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=void 0===p?"top":p,g=e.tabBarGutter,m=e.tabBarStyle,b=e.tabBarExtraContent,v=e.locale,y=e.moreIcon,w=e.moreTransitionName,x=e.destroyInactiveTabPane,S=e.renderTabBar,k=e.onChange,C=e.onTabClick,E=e.onTabScroll,O=e.getPopupContainer,D=e.popupClassName,$=e.indicatorSize,j=Od(e,BF),P=B.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===kd(e)&&"key"in e}))}),[l]),_="rtl"===s,N=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Rh({inkBar:!0},"object"===kd(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),I=gg(B.useState(!1),2),T=I[0],F=I[1];B.useEffect((function(){F(T$())}),[]);var A=gg(Zy((function(){var e;return null===(e=P[0])||void 0===e?void 0:e.key}),{value:c,defaultValue:u}),2),R=A[0],M=A[1],L=gg(B.useState((function(){return P.findIndex((function(e){return e.key===R}))})),2),z=L[0],H=L[1];B.useEffect((function(){var e,t=P.findIndex((function(e){return e.key===R}));-1===t&&(t=Math.max(0,Math.min(z,P.length-1)),M(null===(e=P[t])||void 0===e?void 0:e.key));H(t)}),[P.map((function(e){return e.key})).join("_"),R,z]);var W=gg(Zy(null,{value:r}),2),U=W[0],V=W[1];B.useEffect((function(){r||(V("rc-tabs-".concat(HF)),HF+=1)}),[]);var G={id:U,activeKey:R,animated:N,tabPosition:h,rtl:_,mobile:T},q=Rh(Rh({},G),{},{editable:d,locale:v,moreIcon:y,moreTransitionName:w,tabBarGutter:g,onTabClick:function(e,t){null==C||C(e,t);var n=e!==R;M(e),n&&(null==k||k(e))},onTabScroll:E,extra:b,style:m,panes:null,getPopupContainer:O,popupClassName:D,indicatorSize:$});return B.createElement(fF.Provider,{value:{tabs:P,prefixCls:i}},B.createElement("div",Jp({ref:t,id:r,className:Km(i,"".concat(i,"-").concat(h),(n={},Ed(n,"".concat(i,"-mobile"),T),Ed(n,"".concat(i,"-editable"),d),Ed(n,"".concat(i,"-rtl"),_),n),a)},j),B.createElement(zF,Jp({},q,{renderTabBar:S})),B.createElement(gF,Jp({destroyInactiveTabPane:x},G,{animated:N}))))}var UF=B.forwardRef(WF);const VF={motionAppear:!1,motionEnter:!0,motionLeave:!0};function GF(e,t){if(e)return e;return function(e){return e.filter((e=>e))}(gb(t).map((e=>{if(B.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}const qF=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[pD(e,"slide-up"),pD(e,"slide-down")]]},XF=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},KF=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},nw(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},tw),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},YF=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},QF=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},JF=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},aw(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},ZF=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},eA=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nw(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},aw(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),JF(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},tA=pw("Tabs",(e=>{const t=cw(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[QF(t),ZF(t),YF(t),KF(t),XF(t),eA(t),qF(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const nA=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:l,addIcon:s,popupClassName:c,children:u,items:d,animated:f,style:p,indicatorSize:h}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:m,moreIcon:b=B.createElement(KI,null)}=g,{direction:v,tabs:y,getPrefixCls:w,getPopupContainer:x}=B.useContext(Ny),S=w("tabs",m),[k,C]=tA(S);let E;"editable-card"===t&&(E={onEdit:(e,t)=>{let{key:n,event:r}=t;null==i||i("add"===e?r:n,e)},removeIcon:B.createElement(Vx,null),addIcon:s||B.createElement(dF,null),showAdd:!0!==a});const O=w(),D=GF(d,u),$=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},VF),{motionName:$k(e,"switch")})),t}(S,f),j=Mk(o),P=Object.assign(Object.assign({},null==y?void 0:y.style),p);return k(B.createElement(UF,Object.assign({direction:v,getPopupContainer:x,moreTransitionName:`${O}-slide-up`},g,{items:D,className:Km({[`${S}-${j}`]:j,[`${S}-card`]:["card","editable-card"].includes(t),[`${S}-editable-card`]:"editable-card"===t,[`${S}-centered`]:l},null==y?void 0:y.className,n,r,C),popupClassName:Km(c,C),style:P,editable:E,moreIcon:b,prefixCls:S,animated:$,indicatorSize:null!=h?h:null==y?void 0:y.indicatorSize})))};nA.TabPane=()=>null;const rA=nA,oA=B.createContext({}),iA=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},aA=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},lA=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)0===i?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/r*100}%`,maxWidth:i/r*100+"%"}],o[`${n}${t}-push-${i}`]={insetInlineStart:i/r*100+"%"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:i/r*100+"%"},o[`${n}${t}-offset-${i}`]={marginInlineStart:i/r*100+"%"},o[`${n}${t}-order-${i}`]={order:i});return o})(e,t),sA=pw("Grid",(e=>[iA(e)])),cA=pw("Grid",(e=>{const t=cw(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[aA(t),lA(t,""),lA(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},lA(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));const uA=["xs","sm","md","lg","xl","xxl"],dA=B.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=B.useContext(Ny),{gutter:o,wrap:i}=B.useContext(oA),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:d,className:f,children:p,flex:h,style:g}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[v,y]=cA(b);let w={};uA.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete m[t],w=Object.assign(Object.assign({},w),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${b}-rtl`]:"rtl"===r})}));const x=Km(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${s}`]:s,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},f,w,y),S={};if(o&&o[0]>0){const e=o[0]/2;S.paddingLeft=e,S.paddingRight=e}return h&&(S.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(h),!1!==i||S.minWidth||(S.minWidth=0)),v(B.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign({},S),g),className:x,ref:t}),p))})),fA=dA;function pA(e,t){const[n,r]=B.useState("string"==typeof e?e:"");return B.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<b_.length;n++){const o=b_[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}const hA=B.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=B.useContext(Ny),[p,h]=B.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,m]=B.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=pA(o,g),v=pA(r,g),y=B.useRef(s),w=w_();B.useEffect((()=>{const e=w.subscribe((e=>{m(e);const t=y.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>w.unsubscribe(e)}),[]);const x=d("row",n),[S,k]=sA(x),C=(()=>{const e=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r<b_.length;r++){const o=b_[r];if(p[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),E=Km(x,{[`${x}-no-wrap`]:!1===c,[`${x}-${v}`]:v,[`${x}-${b}`]:b,[`${x}-rtl`]:"rtl"===f},i,k),O={},D=null!=C[0]&&C[0]>0?C[0]/-2:void 0;D&&(O.marginLeft=D,O.marginRight=D),[,O.rowGap]=C;const[$,j]=C,P=B.useMemo((()=>({gutter:[$,j],wrap:c})),[$,j,c]);return S(B.createElement(oA.Provider,{value:P},B.createElement("div",Object.assign({},u,{className:E,style:Object.assign(Object.assign({},O),a),ref:t}),l)))})),gA=hA;const mA={useBreakpoint:function(){return x_()}};var bA=H.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,s=e.isActive,c=e.role,u=gg(H.useState(s||o),2),d=u[0],f=u[1];return H.useEffect((function(){(o||s)&&f(!0)}),[o,s]),d?H.createElement("div",{ref:t,className:Km("".concat(r,"-content"),(n={},Ed(n,"".concat(r,"-content-active"),s),Ed(n,"".concat(r,"-content-inactive"),!s),n),i),style:a,role:c},H.createElement("div",{className:"".concat(r,"-content-box")},l)):null}));bA.displayName="PanelContent";var vA=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],yA=H.forwardRef((function(e,t){var n,r,o=e.showArrow,i=void 0===o||o,a=e.headerClass,l=e.isActive,s=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,f=e.collapsible,p=e.accordion,h=e.panelKey,g=e.extra,m=e.header,b=e.expandIcon,v=e.openMotion,y=e.destroyInactivePanel,w=e.children,x=Od(e,vA),S="disabled"===f,k="header"===f,C="icon"===f,E=null!=g&&"boolean"!=typeof g,O=function(){null==s||s(h)},D="function"==typeof b?b(e):H.createElement("i",{className:"arrow"});D&&(D=H.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?O:void 0},D));var $=Km((Ed(n={},"".concat(d,"-item"),!0),Ed(n,"".concat(d,"-item-active"),l),Ed(n,"".concat(d,"-item-disabled"),S),n),u),j={className:Km(a,(Ed(r={},"".concat(d,"-header"),!0),Ed(r,"".concat(d,"-header-collapsible-only"),k),Ed(r,"".concat(d,"-icon-collapsible-only"),C),r)),"aria-expanded":l,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==DS.ENTER&&e.which!==DS.ENTER||O()}};return k||C||(j.onClick=O,j.role=p?"tab":"button",j.tabIndex=S?-1:0),H.createElement("div",Jp({},x,{ref:t,className:$}),H.createElement("div",j,i&&D,H.createElement("span",{className:"".concat(d,"-header-text"),onClick:"header"===f?O:void 0},m),E&&H.createElement("div",{className:"".concat(d,"-extra")},g)),H.createElement(Zw,Jp({visible:l,leavedClassName:"".concat(d,"-content-hidden")},v,{forceRender:c,removeOnLeave:y}),(function(e,t){var n=e.className,r=e.style;return H.createElement(bA,{ref:t,prefixCls:d,className:n,style:r,isActive:l,forceRender:c,role:p?"tabpanel":void 0},w)})))})),wA=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function xA(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,l=t.activeKey,s=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u=e.children,d=e.label,f=e.key,p=e.collapsible,h=e.onItemClick,g=e.destroyInactivePanel,m=Od(e,wA),b=String(null!=f?f:t),v=null!=p?p:o,y=null!=g?g:i,w=!1;return w=r?l[0]===b:l.indexOf(b)>-1,H.createElement(yA,Jp({},m,{prefixCls:n,key:b,panelKey:b,isActive:w,accordion:r,openMotion:s,expandIcon:c,header:d,collapsible:v,onItemClick:function(e){"disabled"!==v&&(a(e),null==h||h(e))},destroyInactivePanel:y}),u)}))}(e,n):gb(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,c=n.openMotion,u=n.expandIcon,d=e.key||String(t),f=e.props,p=f.header,h=f.headerClass,g=f.destroyInactivePanel,m=f.collapsible,b=f.onItemClick,v=!1;v=o?s[0]===d:s.indexOf(d)>-1;var y=null!=m?m:i,w={key:d,panelKey:d,header:p,headerClass:h,isActive:v,prefixCls:r,destroyInactivePanel:null!=g?g:a,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==y&&(l(e),null==b||b(e))},expandIcon:u,collapsible:y};return"string"==typeof e.type?e:(Object.keys(w).forEach((function(e){void 0===w[e]&&delete w[e]})),H.cloneElement(e,w))}(e,t,n)}))}function SA(e){var t=e;if(!Array.isArray(t)){var n=kd(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var kA=H.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,i=void 0!==o&&o,a=e.style,l=e.accordion,s=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,p=e.activeKey,h=e.defaultActiveKey,g=e.onChange,m=e.items,b=Km(r,s),v=gg(Zy([],{value:p,onChange:function(e){return null==g?void 0:g(e)},defaultValue:h,postState:SA}),2),y=v[0],w=v[1];Uh(!c,"`children` will be removed in next major version. Please use `items` instead.");var x=xA(m,c,{prefixCls:r,accordion:l,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:i,onItemClick:function(e){return w((function(){return l?y[0]===e?[]:[e]:y.indexOf(e)>-1?y.filter((function(t){return t!==e})):[].concat(Fh(y),[e])}))},activeKey:y});return H.createElement("div",{ref:t,className:b,style:a,role:l?"tablist":void 0},x)}));const CA=Object.assign(kA,{Panel:yA});CA.Panel;const EA=B.forwardRef(((e,t)=>{const{getPrefixCls:n}=B.useContext(Ny),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),l=Km({[`${a}-no-arrow`]:!i},o);return B.createElement(CA.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))})),OA=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSize:g,fontSizeLG:m,lineHeight:b,marginSM:v,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:S,fontSizeIcon:k,contentPadding:C}=e,E=`${c}px ${u} ${d}`;return{[t]:Object.assign(Object.assign({},nw(e)),{backgroundColor:o,border:E,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:b,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:k,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:C},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:y-x}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:m,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:m*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},DA=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},$A=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},jA=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},PA=pw("Collapse",(e=>{const t=cw(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[OA(t),$A(t),jA(t),DA(t),$D(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),_A=B.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=B.useContext(Ny),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:p,expandIcon:h}=e,g=Mk((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),m=n("collapse",i),b=n(),[v,y]=PA(m),w=B.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),x=Km(`${m}-icon-position-${w}`,{[`${m}-borderless`]:!c,[`${m}-rtl`]:"rtl"===r,[`${m}-ghost`]:!!u,[`${m}-${g}`]:"middle"!==g},null==o?void 0:o.className,a,l,y),S=Object.assign(Object.assign({},Dk(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),k=B.useMemo((()=>p?gb(p).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return aS(e,Object.assign(Object.assign({},ov(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[p]);return v(B.createElement(CA,Object.assign({ref:t,openMotion:S},ov(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=h?h(e):B.createElement(gN,{rotate:e.isActive?90:void 0});return aS(t,(()=>({className:Km(t.props.className,`${m}-arrow`)})))},prefixCls:m,className:x,style:Object.assign(Object.assign({},null==o?void 0:o.style),s)}),k))})),NA=Object.assign(_A,{Panel:EA}),IA=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},nw(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},TA=pw("Divider",(e=>{const t=cw(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[IA(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})));const FA=e=>{const{getPrefixCls:t,direction:n,divider:r}=B.useContext(Ny),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:c,children:u,dashed:d,plain:f,style:p}=e,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[m,b]=TA(g),v=a.length>0?`-${a}`:a,y=!!u,w="left"===a&&null!=l,x="right"===a&&null!=l,S=Km(g,null==r?void 0:r.className,b,`${g}-${i}`,{[`${g}-with-text`]:y,[`${g}-with-text${v}`]:y,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!f,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:w,[`${g}-no-default-orientation-margin-right`]:x},s,c),k=B.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),C=Object.assign(Object.assign({},w&&{marginLeft:k}),x&&{marginRight:k});return m(B.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==r?void 0:r.style),p)},h,{role:"separator"}),u&&"vertical"!==i&&B.createElement("span",{className:`${g}-inner-text`,style:C},u)))};const AA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var RA=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:AA}))};const MA=B.forwardRef(RA);function LA(){return"function"==typeof BigInt}function zA(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function BA(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function HA(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function WA(e){var t=String(e);if(HA(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&VA(t)?t.length-t.indexOf(".")-1:0}function UA(e){var t=String(e);if(HA(e)){if(e>Number.MAX_SAFE_INTEGER)return String(LA()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(LA()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(WA(t))}return BA(t).fullStr}function VA(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var GA=function(){function e(t){if(gf(this,e),Ed(this,"origin",""),Ed(this,"negative",void 0),Ed(this,"integer",void 0),Ed(this,"decimal",void 0),Ed(this,"decimalLen",void 0),Ed(this,"empty",void 0),Ed(this,"nan",void 0),zA(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(HA(n)&&(n=Number(n)),VA(n="string"==typeof n?n:UA(n))){var r=BA(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return bf(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=BA(i),s=l.negativeStr,c=l.trimStr,u="".concat(s).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":BA("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),qA=function(){function e(t){gf(this,e),Ed(this,"origin",""),Ed(this,"number",void 0),Ed(this,"empty",void 0),zA(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return bf(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(WA(this.number),WA(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(WA(this.number),WA(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":UA(this.number):this.origin}}]),e}();function XA(e){return LA()?new GA(e):new qA(e)}function KA(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=BA(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?KA(XA(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}function YA(e){return!(!e.addonBefore&&!e.addonAfter)}function QA(e){return!!(e.prefix||e.suffix||e.allowClear)}function JA(e,t,n,r){if(n){var o=t;if("click"===t.type){var i=e.cloneNode(!0);return o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),"file"!==e.type&&(e.value=r),void n(o);n(o)}}function ZA(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var eR=function(e){var t,n,r=e.inputElement,o=e.prefixCls,i=e.prefix,a=e.suffix,l=e.addonBefore,s=e.addonAfter,c=e.className,u=e.style,d=e.disabled,f=e.readOnly,p=e.focused,h=e.triggerFocus,g=e.allowClear,m=e.value,b=e.handleReset,v=e.hidden,y=e.classes,w=e.classNames,x=e.dataAttrs,S=e.styles,k=e.components,C=(null==k?void 0:k.affixWrapper)||"span",E=(null==k?void 0:k.groupWrapper)||"span",O=(null==k?void 0:k.wrapper)||"span",D=(null==k?void 0:k.groupAddon)||"span",$=B.useRef(null),j=B.cloneElement(r,{value:m,hidden:v,className:Km(null===(t=r.props)||void 0===t?void 0:t.className,!QA(e)&&!YA(e)&&c)||null,style:Rh(Rh({},null===(n=r.props)||void 0===n?void 0:n.style),QA(e)||YA(e)?{}:u)});if(QA(e)){var P,_="".concat(o,"-affix-wrapper"),N=Km(_,(Ed(P={},"".concat(_,"-disabled"),d),Ed(P,"".concat(_,"-focused"),p),Ed(P,"".concat(_,"-readonly"),f),Ed(P,"".concat(_,"-input-with-clear-btn"),a&&g&&m),P),!YA(e)&&c,null==y?void 0:y.affixWrapper,null==w?void 0:w.affixWrapper),I=(a||g)&&H.createElement("span",{className:Km("".concat(o,"-suffix"),null==w?void 0:w.suffix),style:null==S?void 0:S.suffix},function(){var e;if(!g)return null;var t=!d&&!f&&m,n="".concat(o,"-clear-icon"),r="object"===kd(g)&&null!=g&&g.clearIcon?g.clearIcon:"✖";return H.createElement("span",{onClick:b,onMouseDown:function(e){return e.preventDefault()},className:Km(n,(e={},Ed(e,"".concat(n,"-hidden"),!t),Ed(e,"".concat(n,"-has-suffix"),!!a),e)),role:"button",tabIndex:-1},r)}(),a);j=H.createElement(C,Jp({className:N,style:Rh(Rh({},YA(e)?void 0:u),null==S?void 0:S.affixWrapper),hidden:!YA(e)&&v,onClick:function(e){var t;null!==(t=$.current)&&void 0!==t&&t.contains(e.target)&&(null==h||h())}},null==x?void 0:x.affixWrapper,{ref:$}),i&&H.createElement("span",{className:Km("".concat(o,"-prefix"),null==w?void 0:w.prefix),style:null==S?void 0:S.prefix},i),B.cloneElement(r,{value:m,hidden:null}),I)}if(YA(e)){var T="".concat(o,"-group"),F="".concat(T,"-addon"),A=Km("".concat(o,"-wrapper"),T,null==y?void 0:y.wrapper),R=Km("".concat(o,"-group-wrapper"),c,null==y?void 0:y.group);return H.createElement(E,{className:R,style:u,hidden:v},H.createElement(O,{className:A},l&&H.createElement(D,{className:F},l),B.cloneElement(j,{hidden:null}),s&&H.createElement(D,{className:F},s)))}return j},tR=["show"];function nR(e,t){return B.useMemo((function(){var n={};t&&(n.show="object"===kd(t)&&t.formatter?t.formatter:!!t);var r=n=Rh(Rh({},n),e),o=r.show,i=Od(r,tR);return Rh(Rh({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var rR=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],oR=B.forwardRef((function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,c=void 0===s?"rc-input":s,u=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,g=e.showCount,m=e.count,b=e.type,v=void 0===b?"text":b,y=e.classes,w=e.classNames,x=e.styles,S=e.onCompositionStart,k=e.onCompositionEnd,C=Od(e,rR),E=gg(B.useState(!1),2),O=E[0],D=E[1],$=H.useRef(!1),j=B.useRef(null),P=function(e){j.current&&ZA(j.current,e)},_=gg(Zy(e.defaultValue,{value:e.value}),2),N=_[0],I=_[1],T=null==N?"":String(N),F=gg(H.useState(null),2),A=F[0],R=F[1],M=nR(m,g),L=M.max||p,z=M.strategy(T),W=!!L&&z>L;B.useImperativeHandle(t,(function(){return{focus:P,blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=j.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=j.current)||void 0===e||e.select()},input:j.current}})),B.useEffect((function(){D((function(e){return(!e||!u)&&e}))}),[u]);var U=function(e,t){var n,o,i=t;!$.current&&M.exceedFormatter&&M.max&&M.strategy(t)>M.max&&(t!==(i=M.exceedFormatter(t,{max:M.max}))&&R([(null===(n=j.current)||void 0===n?void 0:n.selectionStart)||0,(null===(o=j.current)||void 0===o?void 0:o.selectionEnd)||0]));I(i),j.current&&JA(j.current,e,r,i)};H.useEffect((function(){var e;A&&(null===(e=j.current)||void 0===e||e.setSelectionRange.apply(e,Fh(A)))}),[A]);var V,G=function(e){U(e,e.target.value)},q=function(e){$.current=!1,U(e,e.currentTarget.value),null==k||k(e)},X=function(e){a&&"Enter"===e.key&&a(e),null==l||l(e)},K=function(e){D(!0),null==o||o(e)},Y=function(e){D(!1),null==i||i(e)},Q=W&&"".concat(c,"-out-of-range");return H.createElement(eR,Jp({},C,{prefixCls:c,className:Km(f,Q),inputElement:(V=ov(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),H.createElement("input",Jp({autoComplete:n},V,{onChange:G,onFocus:K,onBlur:Y,onKeyDown:X,className:Km(c,Ed({},"".concat(c,"-disabled"),u),null==w?void 0:w.input),style:null==x?void 0:x.input,ref:j,size:d,type:v,onCompositionStart:function(e){$.current=!0,null==S||S(e)},onCompositionEnd:q}))),handleReset:function(e){I(""),P(),j.current&&JA(j.current,e,r)},value:T,focused:O,triggerFocus:P,suffix:function(){var e=Number(L)>0;if(h||M.show){var t=M.showFormatter?M.showFormatter({value:T,count:z,maxLength:L}):"".concat(z).concat(e?" / ".concat(L):"");return H.createElement(H.Fragment,null,M.show&&H.createElement("span",{className:Km("".concat(c,"-show-count-suffix"),Ed({},"".concat(c,"-show-count-has-suffix"),!!h),null==w?void 0:w.count),style:Rh({},null==x?void 0:x.count)},t),h)}return null}(),disabled:u,classes:y,classNames:w,styles:x}))}));function iR(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=B.useRef(),s=B.useRef([]),c=B.useRef();c.current=a;var u,d,f,p=function(){clearTimeout(l.current)},h=function(e,t){e.preventDefault(),p(),c.current(t),l.current=setTimeout((function e(){c.current(t),l.current=setTimeout(e,200)}),600)};if(B.useEffect((function(){return function(){p(),s.current.forEach((function(e){return uv.cancel(e)}))}}),[]),u=gg(B.useState(!1),2),d=u[0],f=u[1],Pg((function(){f(T$())}),[]),d)return null;var g="".concat(t,"-handler"),m=Km(g,"".concat(g,"-up"),Ed({},"".concat(g,"-up-disabled"),o)),b=Km(g,"".concat(g,"-down"),Ed({},"".concat(g,"-down-disabled"),i)),v=function(){return s.current.push(uv(p))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return B.createElement("div",{className:"".concat(g,"-wrap")},B.createElement("span",Jp({},y,{onMouseDown:function(e){h(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||B.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),B.createElement("span",Jp({},y,{onMouseDown:function(e){h(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:b}),r||B.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function aR(e){var t="number"==typeof e?UA(e):BA(e).fullStr;return t.includes(".")?BA(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var lR=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],sR=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],cR=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},uR=function(e){var t=XA(e);return t.isInvalidate()?null:t},dR=B.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-input-number":r,i=e.className,a=e.style,l=e.min,s=e.max,c=e.step,u=void 0===c?1:c,d=e.defaultValue,f=e.value,p=e.disabled,h=e.readOnly,g=e.upHandler,m=e.downHandler,b=e.keyboard,v=e.controls,y=void 0===v||v,w=e.classNames,x=e.stringMode,S=e.parser,k=e.formatter,C=e.precision,E=e.decimalSeparator,O=e.onChange,D=e.onInput,$=e.onPressEnter,j=e.onStep,P=e.changeOnBlur,_=void 0===P||P,N=Od(e,lR),I="".concat(o,"-input"),T=B.useRef(null),F=gg(B.useState(!1),2),A=F[0],R=F[1],M=B.useRef(!1),L=B.useRef(!1),z=B.useRef(!1),H=gg(B.useState((function(){return XA(null!=f?f:d)})),2),W=H[0],U=H[1];var V=B.useCallback((function(e,t){if(!t)return C>=0?C:Math.max(WA(e),WA(u))}),[C,u]),G=B.useCallback((function(e){var t=String(e);if(S)return S(t);var n=t;return E&&(n=n.replace(E,".")),n.replace(/[^\w.-]+/g,"")}),[S,E]),q=B.useRef(""),X=B.useCallback((function(e,t){if(k)return k(e,{userTyping:t,input:String(q.current)});var n="number"==typeof e?UA(e):e;if(!t){var r=V(n,t);if(VA(n)&&(E||r>=0))n=KA(n,E||".",r)}return n}),[k,V,E]),K=gg(B.useState((function(){var e=null!=d?d:f;return W.isInvalidate()&&["string","number"].includes(kd(e))?Number.isNaN(e)?"":e:X(W.toString(),!1)})),2),Y=K[0],Q=K[1];function J(e,t){Q(X(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}q.current=Y;var Z,ee,te,ne,re,oe=B.useMemo((function(){return uR(s)}),[s,C]),ie=B.useMemo((function(){return uR(l)}),[l,C]),ae=B.useMemo((function(){return!(!oe||!W||W.isInvalidate())&&oe.lessEquals(W)}),[oe,W]),le=B.useMemo((function(){return!(!ie||!W||W.isInvalidate())&&W.lessEquals(ie)}),[ie,W]),se=(Z=T.current,ee=A,te=B.useRef(null),[function(){try{var e=Z.selectionStart,t=Z.selectionEnd,n=Z.value,r=n.substring(0,e),o=n.substring(t);te.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(GY){}},function(){if(Z&&te.current&&ee)try{var e=Z.value,t=te.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-te.current.afterTxt.length;else if(e.startsWith(n))i=n.length;else{var a=n[o-1],l=e.indexOf(a,o-1);-1!==l&&(i=l+1)}Z.setSelectionRange(i,i)}catch(GY){Uh(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(GY.message))}}]),ce=gg(se,2),ue=ce[0],de=ce[1],fe=function(e){return oe&&!e.lessEquals(oe)?oe:ie&&!ie.lessEquals(e)?ie:null},pe=function(e){return!fe(e)},he=function(e,t){var n,r=e,o=pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=fe(r)||r,o=!0),!h&&!p&&o){var i=r.toString(),a=V(i,t);return a>=0&&(r=XA(KA(i,".",a)),pe(r)||(r=XA(KA(i,".",a,!0)))),r.equals(W)||(n=r,void 0===f&&U(n),null==O||O(r.isEmpty()?null:cR(x,r)),void 0===f&&J(r,t)),r}return W},ge=(ne=B.useRef(0),re=function(){uv.cancel(ne.current)},B.useEffect((function(){return re}),[]),function(e){re(),ne.current=uv((function(){e()}))}),me=function e(t){if(ue(),q.current=t,Q(t),!L.current){var n=XA(G(t));n.isNaN()||he(n,!0)}null==D||D(t),ge((function(){var n=t;S||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},be=function(e){var t;if(!(e&&ae||!e&&le)){M.current=!1;var n=XA(z.current?aR(u):u);e||(n=n.negate());var r=(W||XA(0)).add(n.toString()),o=he(r,!1);null==j||j(cR(x,o),{offset:z.current?aR(u):u,type:e?"up":"down"}),null===(t=T.current)||void 0===t||t.focus()}},ve=function(e){var t=XA(G(Y)),n=t;n=t.isNaN()?he(W,e):he(t,e),void 0!==f?J(W,!1):n.isNaN()||J(n,!1)};return _g((function(){W.isInvalidate()||J(W,!1)}),[C,k]),_g((function(){var e=XA(f);U(e);var t=XA(G(Y));e.equals(t)&&M.current&&!k||J(e,M.current)}),[f]),_g((function(){k&&de()}),[Y]),B.createElement("div",{className:Km(o,null==w?void 0:w.input,i,(n={},Ed(n,"".concat(o,"-focused"),A),Ed(n,"".concat(o,"-disabled"),p),Ed(n,"".concat(o,"-readonly"),h),Ed(n,"".concat(o,"-not-a-number"),W.isNaN()),Ed(n,"".concat(o,"-out-of-range"),!W.isInvalidate()&&!pe(W)),n)),style:a,onFocus:function(){R(!0)},onBlur:function(){_&&ve(!1),R(!1),M.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;M.current=!0,z.current=n,"Enter"===t&&(L.current||(M.current=!1),ve(!1),null==$||$(e)),!1!==b&&!L.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(be("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){M.current=!1,z.current=!1},onCompositionStart:function(){L.current=!0},onCompositionEnd:function(){L.current=!1,me(T.current.value)},onBeforeInput:function(){M.current=!0}},y&&B.createElement(iR,{prefixCls:o,upNode:g,downNode:m,upDisabled:ae,downDisabled:le,onStep:be}),B.createElement("div",{className:"".concat(I,"-wrap")},B.createElement("input",Jp({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},N,{ref:yb(T,t),className:I,value:Y,onChange:function(e){me(e.target.value)},disabled:p,readOnly:h}))))})),fR=B.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,l=e.suffix,s=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,f=e.classNames,p=Od(e,sR),h=B.useRef(null);return B.createElement(eR,{inputElement:B.createElement(dR,Jp({prefixCls:o,disabled:n,classNames:f,ref:yb(h,t)},p)),className:d,triggerFocus:function(e){h.current&&ZA(h.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:l,addonAfter:c,addonBefore:s,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}));fR.displayName="InputNumber";const pR=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},hR=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:f,handleHoverColor:p,paddingInline:h,paddingBlock:g,handleBg:m,handleActiveBg:b,colorTextDisabled:v,borderRadiusSM:y,borderRadiusLG:w,controlWidth:x,handleVisible:S,handleBorderColor:k}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nw(e)),kT(e)),ST(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:w,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:s-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},nw(e)),CT(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},yT(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},nw(e)),{width:"100%",padding:`${g}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),mT(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===S?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${k}`,transition:`all ${f} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${k}`,borderEndEndRadius:i}},pR(e,"lg")),pR(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:v}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},gR=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},kT(e)),ST(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},mR=pw("InputNumber",(e=>{const t=cw(e,NT(e));return[hR(t),gR(t),FC(t)]}),(e=>Object.assign(Object.assign({},IT(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder})));const bR=B.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=B.useContext(Ny),o=B.useRef(null);B.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:p=!0,readOnly:h,status:g,controls:m}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),v=n("input-number",c),[y,w]=mR(v),{compactSize:x,compactItemClassnames:S}=Vk(v,r);let k=B.createElement(MA,{className:`${v}-handler-up-inner`}),C=B.createElement(o_,{className:`${v}-handler-down-inner`});const E="boolean"==typeof m?m:void 0;"object"==typeof m&&(k=void 0===m.upIcon?k:B.createElement("span",{className:`${v}-handler-up-inner`},m.upIcon),C=void 0===m.downIcon?C:B.createElement("span",{className:`${v}-handler-down-inner`},m.downIcon));const{hasFeedback:O,status:D,isFormItemInput:$,feedbackIcon:j}=B.useContext(FO),P=jP(D,g),_=Mk((e=>{var t;return null!==(t=null!=l?l:x)&&void 0!==t?t:e})),N=B.useContext(Ry),I=null!=s?s:N,T=Km({[`${v}-lg`]:"large"===_,[`${v}-sm`]:"small"===_,[`${v}-rtl`]:"rtl"===r,[`${v}-borderless`]:!p,[`${v}-in-form-item`]:$},$P(v,P),w),F=`${v}-group`,A=O&&B.createElement(B.Fragment,null,j);return y(B.createElement(fR,Object.assign({ref:o,disabled:I,className:Km(i,a,S),upHandler:k,downHandler:C,prefixCls:v,readOnly:h,controls:E,prefix:f,suffix:A,addonAfter:d&&B.createElement(Gk,null,B.createElement(AO,{override:!0,status:!0},d)),addonBefore:u&&B.createElement(Gk,null,B.createElement(AO,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:Km($P(`${v}-affix-wrapper`,P,O),{[`${v}-affix-wrapper-sm`]:"small"===_,[`${v}-affix-wrapper-lg`]:"large"===_,[`${v}-affix-wrapper-rtl`]:"rtl"===r,[`${v}-affix-wrapper-borderless`]:!p},w),wrapper:Km({[`${F}-rtl`]:"rtl"===r,[`${v}-wrapper-disabled`]:I},w),group:Km({[`${v}-group-wrapper-sm`]:"small"===_,[`${v}-group-wrapper-lg`]:"large"===_,[`${v}-group-wrapper-rtl`]:"rtl"===r},$P(`${v}-group-wrapper`,P,O),w)}},b)))})),vR=bR;vR._InternalPanelDoNotUseOrYouWillBeFired=e=>B.createElement(xx,{theme:{components:{InputNumber:{handleVisible:!0}}}},B.createElement(bR,Object.assign({},e)));const yR=vR,wR=e=>{const{getPrefixCls:t,direction:n}=B.useContext(Ny),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=TT(a),c=Km(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},s,o),u=B.useContext(FO),d=B.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return l(B.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},B.createElement(FO.Provider,{value:d},e.children)))};function xR(e,t){const n=B.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return B.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}const SR=B.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:g,styles:m,rootClassName:b,onChange:v,classNames:y}=e,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:S,input:k}=H.useContext(Ny),C=x("input",r),E=B.useRef(null),[O,D]=TT(C),{compactSize:$,compactItemClassnames:j}=Vk(C,S),P=Mk((e=>{var t;return null!==(t=null!=a?a:$)&&void 0!==t?t:e})),_=H.useContext(Ry),N=null!=l?l:_,{status:I,hasFeedback:T,feedbackIcon:F}=B.useContext(FO),A=jP(I,i),R=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!T;B.useRef(R);const M=xR(E,!0),L=(T||u)&&H.createElement(H.Fragment,null,u,T&&F);let z;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?z=d:d&&(z={clearIcon:H.createElement(Hx,null)}),O(H.createElement(oR,Object.assign({ref:yb(t,E),prefixCls:C,autoComplete:null==k?void 0:k.autoComplete},w,{disabled:N,onBlur:e=>{M(),null==s||s(e)},onFocus:e=>{M(),null==c||c(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),g),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),m),suffix:L,allowClear:z,className:Km(h,b,j,null==k?void 0:k.className),onChange:e=>{M(),null==v||v(e)},addonAfter:f&&H.createElement(Gk,null,H.createElement(AO,{override:!0,status:!0},f)),addonBefore:p&&H.createElement(Gk,null,H.createElement(AO,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),null==k?void 0:k.classNames),{input:Km({[`${C}-sm`]:"small"===P,[`${C}-lg`]:"large"===P,[`${C}-rtl`]:"rtl"===S,[`${C}-borderless`]:!o},!R&&$P(C,A),null==y?void 0:y.input,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.input,D)}),classes:{affixWrapper:Km({[`${C}-affix-wrapper-sm`]:"small"===P,[`${C}-affix-wrapper-lg`]:"large"===P,[`${C}-affix-wrapper-rtl`]:"rtl"===S,[`${C}-affix-wrapper-borderless`]:!o},$P(`${C}-affix-wrapper`,A,T),D),wrapper:Km({[`${C}-group-rtl`]:"rtl"===S},D),group:Km({[`${C}-group-wrapper-sm`]:"small"===P,[`${C}-group-wrapper-lg`]:"large"===P,[`${C}-group-wrapper-rtl`]:"rtl"===S,[`${C}-group-wrapper-disabled`]:N},$P(`${C}-group-wrapper`,A,T),D)}})))})),kR=SR;const CR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var ER=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:CR}))};const OR=B.forwardRef(ER);const DR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var $R=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:DR}))};const jR=B.forwardRef($R);const PR=e=>e?B.createElement(jR,null):B.createElement(OR,null),_R={click:"onClick",hover:"onMouseOver"},NR=B.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=B.useState((()=>!!r&&n.visible)),a=B.useRef(null);B.useEffect((()=>{r&&i(n.visible)}),[r,n]);const l=xR(a),s=()=>{const{disabled:t}=e;t||(o&&l(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=B.useContext(Ny),g=h("input",d),m=h("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=PR}=e,i=_R[n]||"",a=r(o),l={[i]:s,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return B.cloneElement(B.isValidElement(a)?a:B.createElement("span",null,a),l)})(m),v=Km(m,c,{[`${m}-${f}`]:!!f}),y=Object.assign(Object.assign({},ov(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:v,prefixCls:g,suffix:b});return f&&(y.size=f),B.createElement(kR,Object.assign({ref:yb(t,a)},y))})),IR=NR;const TR=B.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:m,direction:b}=B.useContext(Ny),v=B.useRef(!1),y=m("input-search",n),w=m("input",r),{compactSize:x}=Vk(y,b),S=Mk((e=>{var t;return null!==(t=null!=i?i:x)&&void 0!==t?t:e})),k=B.useRef(null),C=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=e=>{var t,n;d&&d(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof l?B.createElement(l_,null):null,D=`${y}-button`;let $;const j=l||{},P=j.type&&!0===j.type.__ANT_BUTTON;$=P||"button"===j.type?aS(j,Object.assign({onMouseDown:C,onClick:e=>{var t,n;null===(n=null===(t=null==j?void 0:j.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),E(e)},key:"enterButton"},P?{className:D,size:S}:{})):B.createElement(BC,{className:D,type:l?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:C,onClick:E,loading:c,icon:O},l),s&&($=[$,aS(s,{key:"addonAfter"})]);const _=Km(y,{[`${y}-rtl`]:"rtl"===b,[`${y}-${S}`]:!!S,[`${y}-with-button`]:!!l},o);return B.createElement(kR,Object.assign({ref:yb(k,t),onPressEnter:e=>{v.current||c||E(e)}},g,{size:S,onCompositionStart:e=>{v.current=!0,null==p||p(e)},onCompositionEnd:e=>{v.current=!1,null==h||h(e)},prefixCls:w,addonAfter:$,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),f&&f(e)},className:_,disabled:u}))})),FR=TR;var AR,RR=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],MR={};function LR(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;AR||((AR=document.createElement("textarea")).setAttribute("tab-index","-1"),AR.setAttribute("aria-hidden","true"),document.body.appendChild(AR)),e.getAttribute("wrap")?AR.setAttribute("wrap",e.getAttribute("wrap")):AR.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&MR[n])return MR[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:RR.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(MR[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;AR.setAttribute("style","".concat(s,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),AR.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=AR.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){AR.value=" ";var p=AR.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var zR=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],BR=B.forwardRef((function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=Od(n,zR),p=gg(Zy(o,{value:i,postState:function(e){return null!=e?e:""}}),2),h=p[0],g=p[1],m=B.useRef();B.useImperativeHandle(t,(function(){return{textArea:m.current}}));var b=gg(B.useMemo((function(){return a&&"object"===kd(a)?[a.minRows,a.maxRows]:[]}),[a]),2),v=b[0],y=b[1],w=!!a,x=gg(B.useState(2),2),S=x[0],k=x[1],C=gg(B.useState(),2),E=C[0],O=C[1],D=function(){k(0)};Pg((function(){w&&D()}),[i,v,y,w]),Pg((function(){if(0===S)k(1);else if(1===S){var e=LR(m.current,!1,v,y);k(2),O(e)}else!function(){try{if(document.activeElement===m.current){var e=m.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;m.current.setSelectionRange(t,n),m.current.scrollTop=r}}catch(GY){}}()}),[S]);var $=B.useRef(),j=function(){uv.cancel($.current)};B.useEffect((function(){return j}),[]);var P=w?E:null,_=Rh(Rh({},c),P);return 0!==S&&1!==S||(_.overflowY="hidden",_.overflowX="hidden"),B.createElement(rv,{onResize:function(e){2===S&&(null==l||l(e),a&&(j(),$.current=uv((function(){D()}))))},disabled:!(a||l)},B.createElement("textarea",Jp({},f,{ref:m,style:_,className:Km(r,s,Ed({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:function(e){g(e.target.value),null==d||d(e)}})))})),HR=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],WR=H.forwardRef((function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,g=void 0===h?"rc-textarea":h,m=e.classes,b=e.showCount,v=e.count,y=e.className,w=e.style,x=e.disabled,S=e.hidden,k=e.classNames,C=e.styles,E=e.onResize,O=Od(e,HR),D=gg(Zy(o,{value:i,defaultValue:o}),2),$=D[0],j=D[1],P=null==$?"":String($),_=gg(H.useState(!1),2),N=_[0],I=_[1],T=H.useRef(!1),F=gg(H.useState(null),2),A=F[0],R=F[1],M=B.useRef(null),L=function(){var e;return null===(e=M.current)||void 0===e?void 0:e.textArea},z=function(){L().focus()};B.useImperativeHandle(t,(function(){return{resizableTextArea:M.current,focus:z,blur:function(){L().blur()}}})),B.useEffect((function(){I((function(e){return!x&&e}))}),[x]);var W=gg(H.useState(null),2),U=W[0],V=W[1];H.useEffect((function(){var e;U&&(e=L()).setSelectionRange.apply(e,Fh(U))}),[U]);var G,q=nR(v,b),X=null!==(n=q.max)&&void 0!==n?n:u,K=Number(X)>0,Y=q.strategy(P),Q=!!X&&Y>X,J=function(e,t){var n=t;!T.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max&&t!==(n=q.exceedFormatter(t,{max:q.max}))&&V([L().selectionStart||0,L().selectionEnd||0]),j(n),JA(e.currentTarget,e,s,n)},Z=p;q.show&&(G=q.showFormatter?q.showFormatter({value:P,count:Y,maxLength:X}):"".concat(Y).concat(K?" / ".concat(X):""),Z=H.createElement(H.Fragment,null,Z,H.createElement("span",{className:Km("".concat(g,"-data-count"),null==k?void 0:k.count),style:null==C?void 0:C.count},G)));var ee=!O.autoSize&&!b&&!c;return H.createElement(eR,{value:P,allowClear:c,handleReset:function(e){j(""),z(),JA(L(),e,s)},suffix:Z,prefixCls:g,classes:{affixWrapper:Km(null==m?void 0:m.affixWrapper,(r={},Ed(r,"".concat(g,"-show-count"),b),Ed(r,"".concat(g,"-textarea-allow-clear"),c),r))},disabled:x,focused:N,className:Km(y,Q&&"".concat(g,"-out-of-range")),style:Rh(Rh({},w),A&&!ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof G?G:void 0}},hidden:S,inputElement:H.createElement(BR,Jp({},O,{maxLength:u,onKeyDown:function(e){var t=O.onPressEnter,n=O.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){J(e,e.target.value)},onFocus:function(e){I(!0),null==a||a(e)},onBlur:function(e){I(!1),null==l||l(e)},onCompositionStart:function(e){T.current=!0,null==d||d(e)},onCompositionEnd:function(e){T.current=!1,J(e,e.currentTarget.value),null==f||f(e)},className:Km(null==k?void 0:k.textarea),style:Rh(Rh({},null==C?void 0:C.textarea),{},{resize:null==w?void 0:w.resize}),disabled:x,prefixCls:g,onResize:function(e){var t;null==E||E(e),null!==(t=L())&&void 0!==t&&t.style.height&&R(!0)},ref:M}))})}));const UR=B.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:u,className:d}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:p,direction:h}=B.useContext(Ny),g=Mk(i),m=B.useContext(Ry),b=null!=a?a:m,{status:v,hasFeedback:y,feedbackIcon:w}=B.useContext(FO),x=jP(v,l),S=B.useRef(null);B.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=S.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=S.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=S.current)||void 0===e?void 0:e.blur()}}}));const k=p("input",r);let C;"object"==typeof s&&(null==s?void 0:s.clearIcon)?C=s:s&&(C={clearIcon:B.createElement(Hx,null)});const[E,O]=TT(k);return E(B.createElement(WR,Object.assign({},f,{disabled:b,allowClear:C,className:Km(d,u),classes:{affixWrapper:Km(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===h,[`${k}-affix-wrapper-borderless`]:!o,[`${k}-affix-wrapper-sm`]:"small"===g,[`${k}-affix-wrapper-lg`]:"large"===g,[`${k}-textarea-show-count`]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},$P(`${k}-affix-wrapper`,x),O)},classNames:Object.assign(Object.assign({},c),{textarea:Km({[`${k}-borderless`]:!o,[`${k}-sm`]:"small"===g,[`${k}-lg`]:"large"===g},$P(k,x),O,null==c?void 0:c.textarea)}),prefixCls:k,suffix:y&&B.createElement("span",{className:`${k}-textarea-suffix`},w),ref:S})))})),VR=UR,GR=kR;GR.Group=wR,GR.Search=FR,GR.TextArea=VR,GR.Password=IR;const qR=GR;var XR=B.createContext(null),KR=B.createContext({}),YR=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.children,i=e.containerRef,a=e.id,l={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},s=wb(B.useContext(KR).panel,i);return B.createElement(B.Fragment,null,B.createElement("div",Jp({id:a,className:Km("".concat(t,"-content"),n),style:Rh({},r),"aria-modal":"true",role:"dialog",ref:s},l),o))};function QR(e){return"string"==typeof e&&String(Number(e))===e?(Uh(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var JR={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ZR(e,t){var n,r,o,i,a=e.prefixCls,l=e.open,s=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,g=e.rootClassName,m=e.rootStyle,b=e.zIndex,v=e.className,y=e.id,w=e.style,x=e.motion,S=e.width,k=e.height,C=e.children,E=e.contentWrapperStyle,O=e.mask,D=e.maskClosable,$=e.maskMotion,j=e.maskClassName,P=e.maskStyle,_=e.afterOpenChange,N=e.onClose,I=e.onMouseEnter,T=e.onMouseOver,F=e.onMouseLeave,A=e.onClick,R=e.onKeyDown,M=e.onKeyUp,L=e.styles,z=B.useRef(),H=B.useRef(),W=B.useRef();B.useImperativeHandle(t,(function(){return z.current}));B.useEffect((function(){var e;l&&f&&(null===(e=z.current)||void 0===e||e.focus({preventScroll:!0}))}),[l]);var U=gg(B.useState(!1),2),V=U[0],G=U[1],q=B.useContext(XR),X=null!==(n=null!==(r=null===(o=!1===u?{distance:0}:!0===u?{}:u||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==q?void 0:q.pushDistance)&&void 0!==n?n:180,K=B.useMemo((function(){return{pushDistance:X,push:function(){G(!0)},pull:function(){G(!1)}}}),[X]);B.useEffect((function(){var e,t;l?null==q||null===(e=q.push)||void 0===e||e.call(q):null==q||null===(t=q.pull)||void 0===t||t.call(q)}),[l]),B.useEffect((function(){return function(){var e;null==q||null===(e=q.pull)||void 0===e||e.call(q)}}),[]);var Y=O&&B.createElement(Zw,Jp({key:"mask"},$,{visible:l}),(function(e,t){var n=e.className,r=e.style;return B.createElement("div",{className:Km("".concat(a,"-mask"),n,null==h?void 0:h.mask,j),style:Rh(Rh(Rh({},r),P),null==L?void 0:L.mask),onClick:D&&l?N:void 0,ref:t})})),Q="function"==typeof x?x(s):x,J={};if(V&&X)switch(s){case"top":J.transform="translateY(".concat(X,"px)");break;case"bottom":J.transform="translateY(".concat(-X,"px)");break;case"left":J.transform="translateX(".concat(X,"px)");break;default:J.transform="translateX(".concat(-X,"px)")}"left"===s||"right"===s?J.width=QR(S):J.height=QR(k);var Z={onMouseEnter:I,onMouseOver:T,onMouseLeave:F,onClick:A,onKeyDown:R,onKeyUp:M},ee=B.createElement(Zw,Jp({key:"panel"},Q,{visible:l,forceRender:d,onVisibleChanged:function(e){null==_||_(e)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return B.createElement("div",Jp({className:Km("".concat(a,"-content-wrapper"),null==h?void 0:h.wrapper,r),style:Rh(Rh(Rh(Rh({},J),o),E),null==L?void 0:L.wrapper)},nS(e,{data:!0})),B.createElement(YR,Jp({id:y,containerRef:n,prefixCls:a,className:Km(v,null==h?void 0:h.content),style:Rh(Rh({},w),null==L?void 0:L.content)},Z),C))})),te=Rh({},m);return b&&(te.zIndex=b),B.createElement(XR.Provider,{value:K},B.createElement("div",{className:Km(a,"".concat(a,"-").concat(s),g,(i={},Ed(i,"".concat(a,"-open"),l),Ed(i,"".concat(a,"-inline"),c),i)),style:te,tabIndex:-1,ref:z,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case DS.TAB:var r;if(t===DS.TAB)if(n||document.activeElement!==W.current){if(n&&document.activeElement===H.current){var o;null===(o=W.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=H.current)||void 0===r||r.focus({preventScroll:!0});break;case DS.ESC:N&&p&&(e.stopPropagation(),N(e))}}},Y,B.createElement("div",{tabIndex:0,ref:H,style:JR,"aria-hidden":"true","data-sentinel":"start"}),ee,B.createElement("div",{tabIndex:0,ref:W,style:JR,"aria-hidden":"true","data-sentinel":"end"})))}var eM=B.forwardRef(ZR),tM=function(e){var t=e.open,n=void 0!==t&&t,r=e.prefixCls,o=void 0===r?"rc-drawer":r,i=e.placement,a=void 0===i?"right":i,l=e.autoFocus,s=void 0===l||l,c=e.keyboard,u=void 0===c||c,d=e.width,f=void 0===d?378:d,p=e.mask,h=void 0===p||p,g=e.maskClosable,m=void 0===g||g,b=e.getContainer,v=e.forceRender,y=e.afterOpenChange,w=e.destroyOnClose,x=e.onMouseEnter,S=e.onMouseOver,k=e.onMouseLeave,C=e.onClick,E=e.onKeyDown,O=e.onKeyUp,D=e.panelRef,$=gg(B.useState(!1),2),j=$[0],P=$[1],_=gg(B.useState(!1),2),N=_[0],I=_[1];Pg((function(){I(!0)}),[]);var T=!!N&&n,F=B.useRef(),A=B.useRef();Pg((function(){T&&(A.current=document.activeElement)}),[T]);var R=B.useMemo((function(){return{panel:D}}),[D]);if(!v&&!j&&!T&&w)return null;var M={onMouseEnter:x,onMouseOver:S,onMouseLeave:k,onClick:C,onKeyDown:E,onKeyUp:O},L=Rh(Rh({},e),{},{open:T,prefixCls:o,placement:a,autoFocus:s,keyboard:u,width:f,mask:h,maskClosable:m,inline:!1===b,afterOpenChange:function(e){var t,n;(P(e),null==y||y(e),e||!A.current||null!==(t=F.current)&&void 0!==t&&t.contains(A.current))||(null===(n=A.current)||void 0===n||n.focus({preventScroll:!0}))},ref:F},M);return B.createElement(KR.Provider,{value:R},B.createElement(rE,{open:T||v||j,autoDestroy:!1,getContainer:b,autoLock:h&&(T||j)},B.createElement(eM,L)))};const nM=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,closeIcon:l,closable:s,onClose:c,headerStyle:u,drawerStyle:d,bodyStyle:f,footerStyle:p,children:h,classNames:g,styles:m}=e,{drawer:b}=B.useContext(Ny),v=B.useCallback((e=>B.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},e)),[c]),[y,w]=bE(s,l,v,void 0,!0),x=B.useMemo((()=>{var e,t;return o||y?B.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==b?void 0:b.styles)||void 0===e?void 0:e.header),u),null==m?void 0:m.header),className:Km(`${r}-header`,{[`${r}-header-close-only`]:y&&!o&&!a},null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},B.createElement("div",{className:`${r}-header-title`},w,o&&B.createElement("div",{className:`${r}-title`},o)),a&&B.createElement("div",{className:`${r}-extra`},a)):null}),[y,w,a,u,r,o]),S=B.useMemo((()=>{var e,t;if(!i)return null;const n=`${r}-footer`;return B.createElement("div",{className:Km(n,null===(e=null==b?void 0:b.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==b?void 0:b.styles)||void 0===t?void 0:t.footer),p),null==m?void 0:m.footer)},i)}),[i,p,r]);return B.createElement("div",{className:`${r}-wrapper-body`,style:d},x,B.createElement("div",{className:Km(`${r}-body`,null==g?void 0:g.body,null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==b?void 0:b.styles)||void 0===n?void 0:n.body),f),null==m?void 0:m.body)},h),S)},rM=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},oM=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:a,padding:l,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:p,marginSM:h,colorIcon:g,colorIconHover:m,colorText:b,fontWeightStrong:v,footerPaddingBlock:y,footerPaddingInline:w}=e,x=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[x]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${x}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${x}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${x}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${x}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${l}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${f} ${p}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:g,fontWeight:v,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${w}px`,borderTop:`${d}px ${f} ${p}`},"&-rtl":{direction:"rtl"}}}},iM=pw("Drawer",(e=>{const t=cw(e,{});return[oM(t),rM(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var aM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lM={distance:180},sM=e=>{var t,n,r,o,i,a,l,s;const{rootClassName:c,width:u,height:d,size:f="default",mask:p=!0,push:h=lM,open:g,afterOpenChange:m,onClose:b,prefixCls:v,getContainer:y,style:w,className:x,visible:S,afterVisibleChange:k}=e,C=aM(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:E,getPrefixCls:O,direction:D,drawer:$}=B.useContext(Ny),j=O("drawer",v),[P,_]=iM(j),N=void 0===y&&E?()=>E(document.body):y,I=Km({"no-mask":!p,[`${j}-rtl`]:"rtl"===D},c,_),T=B.useMemo((()=>null!=u?u:"large"===f?736:378),[u,f]),F=B.useMemo((()=>null!=d?d:"large"===f?736:378),[d,f]),A={motionName:$k(j,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},R=LO(),[M,L]=GS("Drawer",C.zIndex);return P(B.createElement(Gk,null,B.createElement(AO,{status:!0,override:!0},B.createElement(BS.Provider,{value:L},B.createElement(tM,Object.assign({prefixCls:j,onClose:b,maskMotion:A,motion:e=>({motionName:$k(j,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},C,{classNames:{mask:Km(null===(t=C.classNames)||void 0===t?void 0:t.mask,null===(n=null==$?void 0:$.classNames)||void 0===n?void 0:n.mask),content:Km(null===(r=C.classNames)||void 0===r?void 0:r.content,null===(o=null==$?void 0:$.classNames)||void 0===o?void 0:o.content)},styles:{mask:Object.assign(Object.assign({},null===(i=C.styles)||void 0===i?void 0:i.mask),null===(a=null==$?void 0:$.styles)||void 0===a?void 0:a.mask),content:Object.assign(Object.assign({},null===(l=C.styles)||void 0===l?void 0:l.content),null===(s=null==$?void 0:$.styles)||void 0===s?void 0:s.content)},open:null!=g?g:S,mask:p,push:h,width:T,height:F,style:Object.assign(Object.assign({},null==$?void 0:$.style),w),className:Km(null==$?void 0:$.className,x),rootClassName:I,getContainer:N,afterOpenChange:null!=m?m:k,panelRef:R,zIndex:M}),B.createElement(nM,Object.assign({prefixCls:j},C,{onClose:b})))))))};sM._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=aM(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=B.useContext(Ny),l=a("drawer",t),[s,c]=iM(l),u=Km(l,`${l}-pure`,`${l}-${o}`,c,r);return s(B.createElement("div",{className:u,style:n},B.createElement(nM,Object.assign({prefixCls:l},i))))};const cM=sM;function uM(e){return["small","middle","large"].includes(e)}function dM(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const fM=H.createContext({latestIndex:0}),pM=fM.Provider,hM=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=B.useContext(fM);return null==r?null:B.createElement(B.Fragment,null,B.createElement("div",{className:t,style:i},r),n<a&&o&&B.createElement("span",{className:`${t}-split`},o))};const gM=B.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=B.useContext(Ny),{size:l=(null==i?void 0:i.size)||"small",align:s,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:p,split:h,style:g,wrap:m=!1,classNames:b,styles:v}=e,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(l)?l:[l,l],S=uM(x),k=uM(w),C=dM(x),E=dM(w),O=gb(d,{keepEmpty:!0}),D=void 0===s&&"horizontal"===f?"center":s,$=o("space",p),[j,P]=Hk($),_=Km($,null==i?void 0:i.className,P,`${$}-${f}`,{[`${$}-rtl`]:"rtl"===a,[`${$}-align-${D}`]:D,[`${$}-gap-row-${x}`]:S,[`${$}-gap-col-${w}`]:k},c,u),N=Km(`${$}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item);let I=0;const T=O.map(((e,t)=>{var n,r;null!=e&&(I=t);const o=e&&e.key||`${N}-${t}`;return B.createElement(hM,{className:N,key:o,index:t,split:h,style:null!==(n=null==v?void 0:v.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),F=B.useMemo((()=>({latestIndex:I})),[I]);if(0===O.length)return null;const A={};return m&&(A.flexWrap="wrap"),!k&&E&&(A.columnGap=w),!S&&C&&(A.rowGap=x),j(B.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},A),null==i?void 0:i.style),g)},y),B.createElement(pM,{value:F},T)))})),mM=gM;mM.Compact=Xk;const bM=mM;function vM(e){const[t,n]=B.useState(e);return B.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const yM=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},wM=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),xM=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},SM=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},nw(e)),wM(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},xM(e,e.controlHeightSM)),"&-large":Object.assign({},xM(e,e.controlHeightLG))})}},kM=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},nw(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:hD,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},CM=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},EM=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},OM=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),DM=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:OM(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},$M=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:OM(e),[`@media (max-width: ${e.screenXSMax}px)`]:[DM(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:OM(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:OM(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:OM(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:OM(e)}}}},jM=(e,t)=>cw(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),PM=pw("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=jM(e,n);return[SM(r),kM(r),yM(r),CM(r),EM(r),$M(r),$D(r),hD]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3}),_M=[];function NM(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const IM=e=>{let{help:t,helpStatus:n,errors:r=_M,warnings:o=_M,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=B.useContext(TO),c=`${s}-item-explain`,[,u]=PM(s),d=B.useMemo((()=>Dk(s)),[s]),f=vM(r),p=vM(o),h=B.useMemo((()=>null!=t?[NM(t,"help",n)]:[].concat(Fh(f.map(((e,t)=>NM(e,"error","error",t)))),Fh(p.map(((e,t)=>NM(e,"warning","warning",t)))))),[t,n,f,p]),g={};return a&&(g.id=`${a}_help`),B.createElement(Zw,{motionDeadline:d.motionDeadline,motionName:`${s}-show-help`,visible:!!h.length,onVisibleChanged:l},(e=>{const{className:t,style:n}=e;return B.createElement("div",Object.assign({},g,{className:Km(c,t,i,u),style:n,role:"alert"}),B.createElement(cx,Object.assign({keys:h},Dk(s),{motionName:`${s}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return B.createElement("div",{key:t,className:Km(o,{[`${c}-${r}`]:r}),style:i},n)})))}))},TM=["parentNode"],FM="form_item";function AM(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function RM(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return TM.includes(n)?`${FM}_${n}`:n}function MM(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function LM(e){return AM(e).join("_")}function zM(e){const[t]=kO(),n=B.useRef({}),r=B.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=LM(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=RM(AM(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(ES(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:i,top:a,left:l}of ES(e,OS(t))){const e=a-n.top+n.bottom,t=l-n.left+n.right;i.scroll({top:e,left:t,behavior:o})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=LM(e);return n.current[t]}})),[e,t]);return[r]}const BM=(e,t)=>{const n=B.useContext(Ry),{getPrefixCls:r,direction:o,form:i}=B.useContext(Ny),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:h,labelCol:g,wrapperCol:m,hideRequiredMark:b,layout:v="horizontal",scrollToFirstError:y,requiredMark:w,onFinishFailed:x,name:S,style:k,feedbackIcons:C}=e,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),O=Mk(c),D=B.useContext(Sv),$=B.useMemo((()=>void 0!==w?w:i&&void 0!==i.requiredMark?i.requiredMark:!b),[b,w,i]),j=null!=f?f:null==i?void 0:i.colon,P=r("form",a),[_,N]=PM(P),I=Km(P,`${P}-${v}`,{[`${P}-hide-required-mark`]:!1===$,[`${P}-rtl`]:"rtl"===o,[`${P}-${O}`]:O},N,null==i?void 0:i.className,l,s),[T]=zM(d),{__INTERNAL__:F}=T;F.name=S;const A=B.useMemo((()=>({name:S,labelAlign:p,labelCol:g,labelWrap:h,wrapperCol:m,vertical:"vertical"===v,colon:j,requiredMark:$,itemRef:F.itemRef,form:T,feedbackIcons:C})),[S,p,g,m,v,j,$,T,C]);B.useImperativeHandle(t,(()=>T));const R=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),T.scrollToField(t,n)}};return _(B.createElement(Ay,{disabled:u},B.createElement(zy.Provider,{value:O},B.createElement(IO,{validateMessages:D},B.createElement(_O.Provider,{value:A},B.createElement(PO,Object.assign({id:S},E,{name:S,onFinishFailed:e=>{if(null==x||x(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void R(y,t);i&&void 0!==i.scrollToFirstError&&R(i.scrollToFirstError,t)}},form:T,style:Object.assign(Object.assign({},null==i?void 0:i.style),k),className:I})))))))},HM=B.forwardRef(BM);const WM=()=>{const{status:e,errors:t=[],warnings:n=[]}=B.useContext(FO);return{status:e,errors:t,warnings:n}};WM.Context=FO;const UM=WM;const VM=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},GM=hw(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=jM(e,n);return[VM(r)]})),qM=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:s,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,h=B.useContext(_O),g=r||h.wrapperCol||{},m=Km(`${p}-control`,g.className),b=B.useMemo((()=>Object.assign({},h)),[h]);delete b.labelCol,delete b.wrapperCol;const v=B.createElement("div",{className:`${p}-control-input`},B.createElement("div",{className:`${p}-control-input-content`},o)),y=B.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||i.length||a.length?B.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},B.createElement(TO.Provider,{value:y},B.createElement(IM,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&B.createElement("div",{style:{width:0,height:d}})):null,x={};u&&(x.id=`${u}_extra`);const S=s?B.createElement("div",Object.assign({},x,{className:`${p}-extra`}),s):null,k=l&&"pro_table_render"===l.mark&&l.render?l.render(e,{input:v,errorList:w,extra:S}):B.createElement(B.Fragment,null,v,w,S);return B.createElement(_O.Provider,{value:b},B.createElement(fA,Object.assign({},g,{className:m}),k),B.createElement(GM,{prefixCls:t}))};const XM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var KM=function(e,t){return B.createElement(Rx,Jp({},e,{ref:t,icon:XM}))};const YM=B.forwardRef(KM);const QM=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:c}=e;var u;const[d]=Nv("Form"),{vertical:f,labelAlign:p,labelCol:h,labelWrap:g,colon:m}=B.useContext(_O);if(!n)return null;const b=o||h||{},v=`${t}-item-label`,y=Km(v,"left"===(i||p)&&`${v}-left`,b.className,{[`${v}-wrap`]:!!g});let w=n;const x=!0===a||!1!==m&&!1!==a;x&&!f&&"string"==typeof n&&""!==n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const S=function(e){return e?"object"!=typeof e||B.isValidElement(e)?{title:e}:e:null}(c);if(S){const{icon:e=B.createElement(YM,null)}=S,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(S,["icon"]),r=B.createElement(Z_,Object.assign({},n),B.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));w=B.createElement(B.Fragment,null,w,r)}const k="optional"===s,C="function"==typeof s;C?w=s(w,{required:!!l}):k&&!l&&(w=B.createElement(B.Fragment,null,w,B.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=Ov.Form)||void 0===u?void 0:u.optional))));const E=Km({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:k||C,[`${t}-item-no-colon`]:!x});return B.createElement(fA,Object.assign({},b,{className:y}),B.createElement("label",{htmlFor:r,className:E,title:"string"==typeof n?n:""},w))},JM={success:Lx,warning:Xx,error:Hx,validating:zS};function ZM(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s}=e;const c=`${a}-item`,{feedbackIcons:u}=B.useContext(_O),d=MM(n,r,l,null,!!o,i),{isFormItemInput:f,status:p,hasFeedback:h,feedbackIcon:g}=B.useContext(FO),m=B.useMemo((()=>{var e;let t;if(o){const i=!0!==o&&o.icons||u,a=d&&(null===(e=null==i?void 0:i({status:d,errors:n,warnings:r}))||void 0===e?void 0:e[d]),l=d&&JM[d];t=!1!==a&&l?B.createElement("span",{className:Km(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},a||B.createElement(l,null)):null}const i={status:d||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return s&&(i.status=(null!=d?d:p)||"",i.isFormItemInput=f,i.hasFeedback=!!(null!=o?o:h),i.feedbackIcon=void 0!==o?i.feedbackIcon:g),i}),[d,o,s,f,p]);return B.createElement(FO.Provider,{value:m},t)}var eL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function tL(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:u,hidden:d,children:f,fieldId:p,required:h,isRequired:g,onSubItemMetaChange:m}=e,b=eL(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),v=`${t}-item`,{requiredMark:y}=B.useContext(_O),w=B.useRef(null),x=vM(a),S=vM(l),k=null!=i,C=!!(k||a.length||l.length),E=!!w.current&&jk(w.current),[O,D]=B.useState(null);Pg((()=>{if(C&&w.current){const e=getComputedStyle(w.current);D(parseInt(e.marginBottom,10))}}),[C,E]);const $=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return MM(e?x:c.errors,e?S:c.warnings,c,"",!!u,s)}(),j=Km(v,n,r,{[`${v}-with-help`]:k||x.length||S.length,[`${v}-has-feedback`]:$&&u,[`${v}-has-success`]:"success"===$,[`${v}-has-warning`]:"warning"===$,[`${v}-has-error`]:"error"===$,[`${v}-is-validating`]:"validating"===$,[`${v}-hidden`]:d});return B.createElement("div",{className:j,style:o,ref:w},B.createElement(gA,Object.assign({className:`${v}-row`},ov(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),B.createElement(QM,Object.assign({htmlFor:p},e,{requiredMark:y,required:null!=h?h:g,prefixCls:t})),B.createElement(qM,Object.assign({},e,c,{errors:x,warnings:S,prefixCls:t,status:$,help:i,marginBottom:O,onErrorVisibleChanged:e=>{e||D(null)}}),B.createElement(NO.Provider,{value:m},B.createElement(ZM,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:$},f)))),!!O&&B.createElement("div",{className:`${v}-margin-offset`,style:{marginBottom:-O}}))}const nL=B.memo((e=>{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const rL=function(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:h,help:g}=e,{getPrefixCls:m}=B.useContext(Ny),{name:b}=B.useContext(_O),v=function(e){if("function"==typeof e)return e;const t=gb(e);return t.length<=1?t[0]:t}(s),y="function"==typeof v,w=B.useContext(NO),{validateTrigger:x}=B.useContext(wE),S=void 0!==p?p:x,k=!(null==t),C=m("form",i),[E,O]=PM(C);xv();const D=B.useContext(xE),$=B.useRef(),[j,P]=function(e){const[t,n]=B.useState(e),r=B.useRef(null),o=B.useRef([]),i=B.useRef(!1);return B.useEffect((()=>(i.current=!1,()=>{i.current=!0,uv.cancel(r.current),r.current=null})),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=uv((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[_,N]=Qy((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),I=(e,t)=>{P((n=>{const r=Object.assign({},n),o=[].concat(Fh(e.name.slice(0,-1)),Fh(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[T,F]=B.useMemo((()=>{const e=Fh(_.errors),t=Fh(_.warnings);return Object.values(j).forEach((n=>{e.push.apply(e,Fh(n.errors||[])),t.push.apply(t,Fh(n.warnings||[]))})),[e,t]}),[j,_.errors,_.warnings]),A=function(){const{itemRef:e}=B.useContext(_O),t=B.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=yb(e(n),o)),t.current.ref}}();function R(t,o,i){return n&&!h?B.createElement(ZM,{prefixCls:C,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:_,errors:T,warnings:F,noStyle:!0},t):B.createElement(tL,Object.assign({key:"row"},e,{className:Km(r,O),prefixCls:C,fieldId:o,isRequired:i,errors:T,warnings:F,meta:_,onSubItemMetaChange:I}),t)}if(!k&&!y&&!o)return E(R(v));let M={};return"string"==typeof u?M.label=u:t&&(M.label=String(t)),d&&(M=Object.assign(Object.assign({},M),d)),E(B.createElement(mO,Object.assign({},e,{messageVariables:M,trigger:f,validateTrigger:S,onMetaChange:e=>{const t=null==D?void 0:D.getKey(e.name);if(N(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==g&&w){let n=e.name;if(e.destroy)n=$.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(Fh(r)),$.current=n}w(e,n)}}}),((n,r,i)=>{const s=AM(t).length&&r?r.name:[],u=RM(s,b),d=void 0!==c?c:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),p=Object.assign({},n);let h=null;if(Array.isArray(v)&&k)h=v;else if(y&&(!a&&!o||k));else if(!o||y||k)if(rS(v)){const t=Object.assign(Object.assign({},v.props),p);if(t.id||(t.id=u),g||T.length>0||F.length>0||e.extra){const n=[];(g||T.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}T.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),xb(v)&&(t.ref=A(s,v));new Set([].concat(Fh(AM(f)),Fh(AM(S)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];null===(r=p[e])||void 0===r||(t=r).call.apply(t,[p].concat(l)),null===(i=(o=v.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(l))}}));const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];h=B.createElement(nL,{value:p[e.valuePropName||"value"],update:v,childProps:n},aS(v,t))}else h=y&&(a||o)&&!k?v(i):v;else;return R(h,u,d)})))};rL.useStatus=UM;const oL=rL;const iL=e=>{var{prefixCls:t,children:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","children"]);const{getPrefixCls:o}=B.useContext(Ny),i=o("form",t),a=B.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return B.createElement(bO,Object.assign({},r),((e,t,r)=>B.createElement(TO.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const aL=HM;aL.Item=oL,aL.List=iL,aL.ErrorList=IM,aL.useForm=zM,aL.useFormInstance=function(){const{form:e}=B.useContext(_O);return e},aL.useWatch=jO,aL.Provider=IO,aL.create=()=>{};const lL=aL;let sL=null,cL=e=>e(),uL=[],dL={};function fL(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=dL,a=null!=e?e:vx().getPrefixCls("message"),l=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>l,duration:n,rtl:r,maxCount:o,top:i}}const pL=B.forwardRef(((e,t)=>{const[n,r]=B.useState(fL),[o,i]=ik(n),a=vx(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(fL)};return B.useEffect(u,[]),B.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),B.createElement(xx,{prefixCls:l,iconPrefixCls:s,theme:c},i)}));function hL(){if(!sL){const e=document.createDocumentFragment(),t={fragment:e};return sL=t,void cL((()=>{bk(B.createElement(pL,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,hL())}))}}),e)}))}sL.instance&&(uL.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":cL((()=>{const t=sL.instance.open(Object.assign(Object.assign({},dL),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":cL((()=>{null==sL||sL.instance.destroy(e.key)}));break;default:cL((()=>{var n;const r=(n=sL.instance)[t].apply(n,Fh(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),uL=[])}const gL={open:function(e){const t=JS((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return uL.push(r),()=>{n?cL((()=>{n()})):r.skipped=!0}}));return hL(),t},destroy:function(e){uL.push({type:"destroy",key:e}),hL()},config:function(e){dL=Object.assign(Object.assign({},dL),e),cL((()=>{var e;null===(e=null==sL?void 0:sL.sync)||void 0===e||e.call(sL)}))},useMessage:ak,_InternalPanelDoNotUseOrYouWillBeFired:QS};["success","info","warning","error","loading"].forEach((e=>{gL[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){const n=JS((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return uL.push(o),()=>{r?cL((()=>{r()})):o.skipped=!0}}));return hL(),n}(e,n)}}));const mL=gL;const bL=I$((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:s}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=B.useContext(Ny),d=u(),f=t||u("modal"),[,p]=AD(f),h=`${f}-confirm`;let g={};return g=i?{closable:null!=o&&o,title:"",footer:"",children:B.createElement(HD,Object.assign({},e,{prefixCls:f,confirmPrefixCls:h,rootPrefixCls:d,content:l}))}:{closable:null==o||o,title:a,footer:null!==s&&B.createElement(WO,Object.assign({},e)),children:l},B.createElement(fE,Object.assign({prefixCls:f,className:Km(p,`${f}-pure-panel`,i&&h,i&&`${h}-${i}`,n)},c,{closeIcon:HO(f,r),closable:o},g))}));function vL(e){return XD(KD(e))}const yL=LD;yL.useModal=o$,yL.info=function(e){return XD(YD(e))},yL.success=function(e){return XD(QD(e))},yL.error=function(e){return XD(JD(e))},yL.warning=vL,yL.warn=vL,yL.confirm=function(e){return XD(ZD(e))},yL.destroyAll=function(){for(;VD.length;){const e=VD.pop();e&&e()}},yL.config=function(e){let{rootPrefixCls:t}=e;qD=t},yL._InternalPanelDoNotUseOrYouWillBeFired=bL;const wL=yL;let xL=null,SL=e=>e(),kL=[],CL={};function EL(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=CL,a=null!=e?e:vx().getPrefixCls("notification"),l=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>l,rtl:n,maxCount:r,top:o,bottom:i}}const OL=B.forwardRef(((e,t)=>{const[n,r]=B.useState(EL),[o,i]=E$(n),a=vx(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(EL)};return B.useEffect(u,[]),B.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),B.createElement(xx,{prefixCls:l,iconPrefixCls:s,theme:c},i)}));function DL(){if(!xL){const e=document.createDocumentFragment(),t={fragment:e};return xL=t,void SL((()=>{bk(B.createElement(OL,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,DL())}))}}),e)}))}xL.instance&&(kL.forEach((e=>{switch(e.type){case"open":SL((()=>{xL.instance.open(Object.assign(Object.assign({},CL),e.config))}));break;case"destroy":SL((()=>{null==xL||xL.instance.destroy(e.key)}))}})),kL=[])}function $L(e){kL.push({type:"open",config:e}),DL()}const jL={open:$L,destroy:function(e){kL.push({type:"destroy",key:e}),DL()},config:function(e){CL=Object.assign(Object.assign({},CL),e),SL((()=>{var e;null===(e=null==xL?void 0:xL.sync)||void 0===e||e.call(xL)}))},useNotification:O$,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:s=!0,closeIcon:c}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=B.useContext(Ny),f=t||d("notification"),p=`${f}-notice`,[,h]=g$(f);return B.createElement("div",{className:Km(`${p}-pure-panel`,h,n)},B.createElement(m$,{prefixCls:f}),B.createElement($S,Object.assign({},u,{prefixCls:f,eventKey:"pure",duration:null,closable:s,closeIcon:b$(f,c),content:B.createElement(y$,{prefixCls:p,icon:r,type:o,message:i,description:a,btn:l})})))}},PL=jL;["success","info","warning","error"].forEach((e=>{PL[e]=t=>$L(Object.assign(Object.assign({},t),{type:e}))}));const _L=PL,NL=pw("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});const IL=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=B.createElement(Xx,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:h}=e,{getPrefixCls:g}=B.useContext(Ny),[m]=Nv("Popconfirm",Ov.Popconfirm),b=$_(o),v=$_(i);return B.createElement("div",{className:`${t}-inner-content`,onClick:h},B.createElement("div",{className:`${t}-message`},c&&B.createElement("span",{className:`${t}-message-icon`},c),B.createElement("div",{className:`${t}-message-text`},b&&B.createElement("div",{className:Km(`${t}-title`)},b),v&&B.createElement("div",{className:`${t}-description`},v))),B.createElement("div",{className:`${t}-buttons`},u&&B.createElement(BC,Object.assign({onClick:p,size:"small"},r),null!=a?a:null==m?void 0:m.cancelText),B.createElement(WC,{buttonProps:Object.assign(Object.assign({size:"small"},Zk(s)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},null!=l?l:null==m?void 0:m.okText)))},TL=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=B.useContext(Ny),l=a("popconfirm",t),[s]=NL(l);return s(B.createElement(iN,{placement:n,className:Km(l,r),style:o,content:B.createElement(IL,Object.assign({prefixCls:l},i))}))};const FL=B.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:l="primary",icon:s=B.createElement(Xx,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=B.useContext(Ny),[g,m]=Zy(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),b=(e,t)=>{m(e,!0),null==f||f(e),null==d||d(e,t)},v=h("popconfirm",o),y=Km(v,u),[w]=NL(v);return w(B.createElement(sN,Object.assign({},ov(p,["title"]),{trigger:a,placement:i,onOpenChange:t=>{const{disabled:n=!1}=e;n||b(t)},open:g,ref:t,overlayClassName:y,content:B.createElement(IL,Object.assign({okType:l,icon:s},e,{prefixCls:v,close:e=>{b(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;b(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),aS(c,{onKeyDown:e=>{var t,n;B.isValidElement(c)&&(null===(n=null==c?void 0:(t=c.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===DS.ESC&&g&&b(!1,e)})(e)}})))}));FL._InternalPanelDoNotUseOrYouWillBeFired=TL;const AL=FL;var RL=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},ML=function(e){return void 0!==e?"".concat(e,"px"):void 0};function LL(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,i=e.motionName,a=e.onMotionStart,l=e.onMotionEnd,s=e.direction,c=B.useRef(null),u=gg(B.useState(r),2),d=u[0],f=u[1],p=function(e){var r,i=o(e),a=null===(r=n.current)||void 0===r?void 0:r.querySelectorAll(".".concat(t,"-item"))[i];return(null==a?void 0:a.offsetParent)&&a},h=gg(B.useState(null),2),g=h[0],m=h[1],b=gg(B.useState(null),2),v=b[0],y=b[1];Pg((function(){if(d!==r){var e=p(d),t=p(r),n=RL(e),o=RL(t);f(r),m(n),y(o),e&&t?a():l()}}),[r]);var w=B.useMemo((function(){return ML("rtl"===s?-(null==g?void 0:g.right):null==g?void 0:g.left)}),[s,g]),x=B.useMemo((function(){return ML("rtl"===s?-(null==v?void 0:v.right):null==v?void 0:v.left)}),[s,v]);return g&&v?B.createElement(Zw,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){m(null),y(null),l()}},(function(e,n){var r=e.className,o=Rh(Rh({},e.style),{},{"--thumb-start-left":w,"--thumb-start-width":ML(null==g?void 0:g.width),"--thumb-active-left":x,"--thumb-active-width":ML(null==v?void 0:v.width)}),i={ref:yb(c,n),style:o,className:Km("".concat(t,"-thumb"),r)};return B.createElement("div",i)})):null}var zL=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function BL(e){return e.map((function(e){if("object"===kd(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==kd(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Rh(Rh({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var HL=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,o=e.checked,i=e.label,a=e.title,l=e.value,s=e.onChange;return B.createElement("label",{className:Km(n,Ed({},"".concat(t,"-item-disabled"),r))},B.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:o,onChange:function(e){r||s(e,l)}}),B.createElement("div",{className:"".concat(t,"-item-label"),title:a},i))},WL=B.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,l=e.options,s=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,f=e.className,p=void 0===f?"":f,h=e.motionName,g=void 0===h?"thumb-motion":h,m=Od(e,zL),b=B.useRef(null),v=B.useMemo((function(){return yb(b,t)}),[b,t]),y=B.useMemo((function(){return BL(l)}),[l]),w=gg(Zy(null===(n=y[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),x=w[0],S=w[1],k=gg(B.useState(!1),2),C=k[0],E=k[1],O=function(e,t){s||(S(t),null==d||d(t))},D=ov(m,["children"]);return B.createElement("div",Jp({},D,{className:Km(i,(r={},Ed(r,"".concat(i,"-rtl"),"rtl"===a),Ed(r,"".concat(i,"-disabled"),s),r),p),ref:v}),B.createElement("div",{className:"".concat(i,"-group")},B.createElement(LL,{prefixCls:i,value:x,containerRef:b,motionName:"".concat(i,"-").concat(g),direction:a,getValueIndex:function(e){return y.findIndex((function(t){return t.value===e}))},onMotionStart:function(){E(!0)},onMotionEnd:function(){E(!1)}}),y.map((function(e){return B.createElement(HL,Jp({},e,{key:e.value,prefixCls:i,className:Km(e.className,"".concat(i,"-item"),Ed({},"".concat(i,"-item-selected"),e.value===x&&!C)),checked:e.value===x,onChange:O,disabled:!!s||!!e.disabled}))}))))}));function UL(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function VL(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}WL.displayName="Segmented",WL.defaultProps={options:[]};const GL=Object.assign({overflow:"hidden"},tw),qL=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nw(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},VL(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},GL),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},VL(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),UL(`&-disabled ${t}-item`,e)),UL(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},XL=pw("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=cw(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[qL(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}}));var KL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const YL=B.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,block:i,options:a=[],size:l="middle",style:s}=e,c=KL(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:f}=B.useContext(Ny),p=u("segmented",n),[h,g]=XL(p),m=Mk(l),b=B.useMemo((()=>a.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=KL(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:B.createElement(B.Fragment,null,B.createElement("span",{className:`${p}-item-icon`},t),n&&B.createElement("span",null,n))})}return e}))),[a,p]),v=Km(r,o,null==f?void 0:f.className,{[`${p}-block`]:i,[`${p}-sm`]:"small"===m,[`${p}-lg`]:"large"===m},g),y=Object.assign(Object.assign({},null==f?void 0:f.style),s);return h(B.createElement(WL,Object.assign({},c,{className:v,style:y,options:b,ref:t,prefixCls:p,direction:d})))}));var QL=B.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function JL(e,t,n){return(e-t)/(n-t)}function ZL(e,t,n,r){var o=JL(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function ez(e,t){return Array.isArray(e)?e[t]:e}var tz=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],nz=B.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,l=e.onStartMove,s=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,f=Od(e,tz),p=B.useContext(QL),h=p.min,g=p.max,m=p.direction,b=p.disabled,v=p.keyboard,y=p.range,w=p.tabIndex,x=p.ariaLabelForHandle,S=p.ariaLabelledByForHandle,k=p.ariaValueTextFormatterForHandle,C=p.styles,E=p.classNames,O="".concat(o,"-handle"),D=function(e){b||l(e,a)},$=ZL(m,i,h,g),j=B.createElement("div",Jp({ref:t,className:Km(O,(n={},Ed(n,"".concat(O,"-").concat(a+1),y),Ed(n,"".concat(O,"-dragging"),u),n),E.handle),style:Rh(Rh(Rh({},$),s),C.handle),onMouseDown:D,onTouchStart:D,onKeyDown:function(e){if(!b&&v){var t=null;switch(e.which||e.keyCode){case DS.LEFT:t="ltr"===m||"btt"===m?-1:1;break;case DS.RIGHT:t="ltr"===m||"btt"===m?1:-1;break;case DS.UP:t="ttb"!==m?1:-1;break;case DS.DOWN:t="ttb"!==m?-1:1;break;case DS.HOME:t="min";break;case DS.END:t="max";break;case DS.PAGE_UP:t=2;break;case DS.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,a))}},tabIndex:b?null:ez(w,a),role:"slider","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":ez(x,a),"aria-labelledby":ez(S,a),"aria-valuetext":null===(r=ez(k,a))||void 0===r?void 0:r(i),"aria-orientation":"ltr"===m||"rtl"===m?"horizontal":"vertical"},f));return c&&(j=c(j,{index:a,prefixCls:o,value:i,dragging:u})),j})),rz=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],oz=B.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,l=e.handleRender,s=e.draggingIndex,c=Od(e,rz),u=B.useRef({});return B.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),B.createElement(B.Fragment,null,a.map((function(e,t){return B.createElement(nz,Jp({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:s===t,prefixCls:n,style:ez(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:i,render:l},c))})))}));function iz(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function az(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=B.useContext(QL),l=a.min,s=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,f=a.included,p="".concat(t,"-text"),h=ZL(c,o,l,s);return B.createElement("span",{className:Km(p,Ed({},"".concat(p,"-active"),f&&u<=o&&o<=d)),style:Rh(Rh({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){i(o)}},r)}function lz(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?B.createElement("div",{className:o},n.map((function(e){var t=e.value,n=e.style,i=e.label;return B.createElement(az,{key:t,prefixCls:o,style:n,value:t,onClick:r},i)}))):null}function sz(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=B.useContext(QL),a=i.min,l=i.max,s=i.direction,c=i.included,u=i.includedStart,d=i.includedEnd,f="".concat(t,"-dot"),p=c&&u<=n&&n<=d,h=Rh(Rh({},ZL(s,n,a,l)),"function"==typeof r?r(n):r);return p&&(h=Rh(Rh({},h),"function"==typeof o?o(n):o)),B.createElement("span",{className:Km(f,Ed({},"".concat(f,"-active"),p)),style:h})}function cz(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=B.useContext(QL),l=a.min,s=a.max,c=a.step,u=B.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),r&&null!==c)for(var t=l;t<=s;)e.add(t),t+=c;return Array.from(e)}),[l,s,c,r,n]);return B.createElement("div",{className:"".concat(t,"-step")},u.map((function(e){return B.createElement(sz,{prefixCls:t,key:e,value:e,style:o,activeStyle:i})})))}function uz(e){var t,n=e.prefixCls,r=e.style,o=e.start,i=e.end,a=e.index,l=e.onStartMove,s=e.replaceCls,c=B.useContext(QL),u=c.direction,d=c.min,f=c.max,p=c.disabled,h=c.range,g=c.classNames,m="".concat(n,"-track"),b=JL(o,d,f),v=JL(i,d,f),y=function(e){!p&&l&&l(e,-1)},w={};switch(u){case"rtl":w.right="".concat(100*b,"%"),w.width="".concat(100*v-100*b,"%");break;case"btt":w.bottom="".concat(100*b,"%"),w.height="".concat(100*v-100*b,"%");break;case"ttb":w.top="".concat(100*b,"%"),w.height="".concat(100*v-100*b,"%");break;default:w.left="".concat(100*b,"%"),w.width="".concat(100*v-100*b,"%")}var x=s||Km(m,(Ed(t={},"".concat(m,"-").concat(a+1),null!==a&&h),Ed(t,"".concat(n,"-track-draggable"),l),t),g.track);return B.createElement("div",{className:x,style:Rh(Rh({},w),r),onMouseDown:y,onTouchStart:y})}function dz(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=B.useContext(QL),l=a.included,s=a.range,c=a.min,u=a.styles,d=a.classNames,f=B.useMemo((function(){if(!s){if(0===r.length)return[];var e=null!=o?o:c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],i=0;i<r.length-1;i+=1)n.push({start:r[i],end:r[i+1]});return n}),[r,s,o,c]),p=null;return(d.tracks||u.tracks)&&(p=B.createElement(uz,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:Km(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),l?B.createElement(B.Fragment,null,p,f.map((function(e,r){var o=e.start,a=e.end;return B.createElement(uz,{index:r,prefixCls:t,style:Rh(Rh({},ez(n,r)),u.track),start:o,end:a,key:r,onStartMove:i})}))):null}var fz=B.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-slider":r,i=e.className,a=e.style,l=e.classNames,s=e.styles,c=e.disabled,u=void 0!==c&&c,d=e.keyboard,f=void 0===d||d,p=e.autoFocus,h=e.onFocus,g=e.onBlur,m=e.min,b=void 0===m?0:m,v=e.max,y=void 0===v?100:v,w=e.step,x=void 0===w?1:w,S=e.value,k=e.defaultValue,C=e.range,E=e.count,O=e.onChange,D=e.onBeforeChange,$=e.onAfterChange,j=e.allowCross,P=void 0===j||j,_=e.pushable,N=void 0!==_&&_,I=e.draggableTrack,T=e.reverse,F=e.vertical,A=e.included,R=void 0===A||A,M=e.startPoint,L=e.trackStyle,z=e.handleStyle,H=e.railStyle,W=e.dotStyle,U=e.activeDotStyle,V=e.marks,G=e.dots,q=e.handleRender,X=e.tabIndex,K=void 0===X?0:X,Y=e.ariaLabelForHandle,Q=e.ariaLabelledByForHandle,J=e.ariaValueTextFormatterForHandle,Z=B.useRef(),ee=B.useRef(),te=B.useMemo((function(){return F?T?"ttb":"btt":T?"rtl":"ltr"}),[T,F]),ne=B.useMemo((function(){return isFinite(b)?b:0}),[b]),re=B.useMemo((function(){return isFinite(y)?y:100}),[y]),oe=B.useMemo((function(){return null!==x&&x<=0?1:x}),[x]),ie=B.useMemo((function(){return"boolean"==typeof N?!!N&&oe:N>=0&&N}),[N,oe]),ae=B.useMemo((function(){return Object.keys(V||{}).map((function(e){var t=V[e],n={value:Number(e)};return t&&"object"===kd(t)&&!B.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[V]),le=function(e,t,n,r,o,i){var a=B.useCallback((function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),Math.max(e,r)}),[e,t]),l=B.useCallback((function(r){if(null!==n){var o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},l=Math.max(i(n),i(t),i(e)),s=Number(o.toFixed(l));return e<=s&&s<=t?s:null}return null}),[n,e,t,a]),s=B.useCallback((function(o){var i=a(o),s=r.map((function(e){return e.value}));null!==n&&s.push(l(o)),s.push(e,t);var c=s[0],u=t-e;return s.forEach((function(e){var t=Math.abs(i-e);t<=u&&(c=e,u=t)})),c}),[e,t,r,n,a,l]),c=function o(i,a,s){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var u,d=i[s],f=d+a,p=[];r.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(l(d));var h=a>0?1:-1;"unit"===c?p.push(l(d+h*n)):p.push(l(f)),p=p.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===c&&(p=p.filter((function(e){return e!==d})));var g="unit"===c?d:f;u=p[0];var m=Math.abs(u-g);if(p.forEach((function(e){var t=Math.abs(e-g);t<m&&(u=e,m=t)})),void 0===u)return a<0?e:t;if("dist"===c)return u;if(Math.abs(a)>1){var b=Fh(i);return b[s]=u,o(b,a-h,s,c)}return u}return"min"===a?e:"max"===a?t:void 0},u=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=c(e,t,n,r);return{value:i,changed:i!==o}},d=function(e){return null===i&&0===e||"number"==typeof i&&e<i};return[s,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(s),l=a[n],f=c(a,t,n,r);if(a[n]=f,!1===o){var p=i||0;n>0&&a[n-1]!==l&&(a[n]=Math.max(a[n],a[n-1]+p)),n<a.length-1&&a[n+1]!==l&&(a[n]=Math.min(a[n],a[n+1]-p))}else if("number"==typeof i||null===i){for(var h=n+1;h<a.length;h+=1)for(var g=!0;d(a[h]-a[h-1])&&g;){var m=u(a,1,h);a[h]=m.value,g=m.changed}for(var b=n;b>0;b-=1)for(var v=!0;d(a[b]-a[b-1])&&v;){var y=u(a,-1,b-1);a[b-1]=y.value,v=y.changed}for(var w=a.length-1;w>0;w-=1)for(var x=!0;d(a[w]-a[w-1])&&x;){var S=u(a,-1,w-1);a[w-1]=S.value,x=S.changed}for(var k=0;k<a.length-1;k+=1)for(var C=!0;d(a[k+1]-a[k])&&C;){var E=u(a,1,k+1);a[k+1]=E.value,C=E.changed}}return{value:a[n],values:a}}]}(ne,re,oe,ae,P,ie),se=gg(le,2),ce=se[0],ue=se[1],de=gg(Zy(k,{value:S}),2),fe=de[0],pe=de[1],he=B.useMemo((function(){var e=null==fe?[]:Array.isArray(fe)?fe:[fe],t=gg(e,1)[0],n=null===fe?[]:[void 0===t?ne:t];if(C){if(n=Fh(e),E||void 0===fe){var r=E>=0?E+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:ne)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=ce(e)})),n}),[fe,C,ne,E,ce]),ge=B.useRef(he);ge.current=he;var me=function(e){return C?e:e[0]},be=function(e){var t=Fh(e).sort((function(e,t){return e-t}));O&&!Vh(t,ge.current,!0)&&O(me(t)),pe(t)},ve=function(e,t,n,r,o,i,a,l,s){var c=gg(B.useState(null),2),u=c[0],d=c[1],f=gg(B.useState(-1),2),p=f[0],h=f[1],g=gg(B.useState(n),2),m=g[0],b=g[1],v=gg(B.useState(n),2),y=v[0],w=v[1],x=B.useRef(null),S=B.useRef(null);B.useEffect((function(){-1===p&&b(n)}),[n,p]),B.useEffect((function(){return function(){document.removeEventListener("mousemove",x.current),document.removeEventListener("mouseup",S.current),document.removeEventListener("touchmove",x.current),document.removeEventListener("touchend",S.current)}}),[]);var k=function(e,t){m.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&d(t),b(e),a(e))},C=function(e,t){if(-1===e){var n=y[0],a=y[y.length-1],l=r-n,c=o-a,u=t*(o-r);u=Math.max(u,l),u=Math.min(u,c);var d=i(n+u);u=d-n;var f=y.map((function(e){return e+u}));k(f)}else{var p=(o-r)*t,h=Fh(m);h[e]=y[e];var g=s(h,p,e,"dist");k(g.values,g.value)}},E=B.useRef(C);E.current=C;var O=B.useMemo((function(){var e=Fh(n).sort((function(e,t){return e-t})),t=Fh(m).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?m:n}),[n,m]);return[p,u,O,function(r,o,i){r.stopPropagation();var a=i||n,s=a[o];h(o),d(s),w(a);var c=iz(r),u=c.pageX,f=c.pageY,p=function(n){n.preventDefault();var r,i=iz(n),a=i.pageX,l=i.pageY,s=a-u,c=l-f,d=e.current.getBoundingClientRect(),p=d.width,h=d.height;switch(t){case"btt":r=-c/h;break;case"ttb":r=c/h;break;case"rtl":r=-s/p;break;default:r=s/p}E.current(o,r)},g=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",p),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",p),x.current=null,S.current=null,h(-1),l()};document.addEventListener("mouseup",g),document.addEventListener("mousemove",p),document.addEventListener("touchend",g),document.addEventListener("touchmove",p),x.current=p,S.current=g}]}(ee,te,he,ne,re,ce,be,(function(){null==$||$(me(ge.current))}),ue),ye=gg(ve,4),we=ye[0],xe=ye[1],Se=ye[2],ke=ye[3],Ce=function(e,t){if(!u){var n=0,r=re-ne;he.forEach((function(t,o){var i=Math.abs(e-t);i<=r&&(r=i,n=o)}));var o=Fh(he);o[n]=e,C&&!he.length&&void 0===E&&o.push(e),null==D||D(me(o)),be(o),null==$||$(me(o)),t&&ke(t,n,o)}},Ee=gg(B.useState(null),2),Oe=Ee[0],De=Ee[1];B.useEffect((function(){if(null!==Oe){var e=he.indexOf(Oe);e>=0&&Z.current.focus(e)}De(null)}),[Oe]);var $e=B.useMemo((function(){return(!I||null!==oe)&&I}),[I,oe]),je=function(e,t){ke(e,t),null==D||D(me(ge.current))},Pe=-1!==we;B.useEffect((function(){if(!Pe){var e=he.lastIndexOf(xe);Z.current.focus(e)}}),[Pe]);var _e=B.useMemo((function(){return Fh(Se).sort((function(e,t){return e-t}))}),[Se]),Ne=gg(B.useMemo((function(){return C?[_e[0],_e[_e.length-1]]:[ne,_e[0]]}),[_e,C,ne]),2),Ie=Ne[0],Te=Ne[1];B.useImperativeHandle(t,(function(){return{focus:function(){Z.current.focus(0)},blur:function(){var e=document.activeElement;ee.current.contains(e)&&(null==e||e.blur())}}})),B.useEffect((function(){p&&Z.current.focus(0)}),[]);var Fe=B.useMemo((function(){return{min:ne,max:re,direction:te,disabled:u,keyboard:f,step:oe,included:R,includedStart:Ie,includedEnd:Te,range:C,tabIndex:K,ariaLabelForHandle:Y,ariaLabelledByForHandle:Q,ariaValueTextFormatterForHandle:J,styles:s||{},classNames:l||{}}}),[ne,re,te,u,f,oe,R,Ie,Te,C,K,Y,Q,J,s,l]);return B.createElement(QL.Provider,{value:Fe},B.createElement("div",{ref:ee,className:Km(o,i,(n={},Ed(n,"".concat(o,"-disabled"),u),Ed(n,"".concat(o,"-vertical"),F),Ed(n,"".concat(o,"-horizontal"),!F),Ed(n,"".concat(o,"-with-marks"),ae.length),n)),style:a,onMouseDown:function(e){e.preventDefault();var t,n=ee.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,l=n.bottom,s=n.right,c=e.clientX,u=e.clientY;switch(te){case"btt":t=(l-u)/o;break;case"ttb":t=(u-a)/o;break;case"rtl":t=(s-c)/r;break;default:t=(c-i)/r}Ce(ce(ne+t*(re-ne)),e)}},B.createElement("div",{className:Km("".concat(o,"-rail"),null==l?void 0:l.rail),style:Rh(Rh({},H),null==s?void 0:s.rail)}),B.createElement(dz,{prefixCls:o,style:L,values:_e,startPoint:M,onStartMove:$e?je:null}),B.createElement(cz,{prefixCls:o,marks:ae,dots:G,style:W,activeStyle:U}),B.createElement(oz,{ref:Z,prefixCls:o,style:z,values:Se,draggingIndex:we,onStartMove:je,onOffsetChange:function(e,t){if(!u){var n=ue(he,e,t);null==D||D(me(he)),be(n.values),null==$||$(me(n.values)),De(n.value)}},onFocus:h,onBlur:g,handleRender:q}),B.createElement(lz,{prefixCls:o,marks:ae,onClick:Ce})))}));const pz=B.forwardRef(((e,t)=>{const{open:n}=e,r=B.useRef(null),o=B.useRef(null);function i(){uv.cancel(o.current),o.current=null}return B.useEffect((()=>(n?o.current=uv((()=>{var e;null===(e=r.current)||void 0===e||e.forceAlign(),o.current=null})):i(),i)),[n,e.title]),B.createElement(Z_,Object.assign({ref:yb(r,t)},e))})),hz=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l}=e;return{[t]:Object.assign(Object.assign({},nw(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Jv(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},gz=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"width":"height",l=t?"height":"width",s=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart",u=(3*r-o)/2,d=(o-r)/2,f=t?{borderWidth:`${d}px 0`,transform:`translateY(-${d}px)`}:{borderWidth:`0 ${d}px`,transform:`translateX(-${d}px)`};return{[t?"paddingBlock":"paddingInline"]:r,[l]:3*r,[`${n}-rail`]:{[a]:"100%",[l]:r},[`${n}-track,${n}-tracks`]:{[l]:r},[`${n}-track-draggable`]:Object.assign({},f),[`${n}-handle`]:{[s]:u},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:3*r+(t?0:e.marginFull),[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[s]:(r-i)/2}}},mz=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},gz(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},bz=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},gz(e,!1)),{height:"100%"})}},vz=pw("Slider",(e=>{const t=cw(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[hz(t),mz(t),bz(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));const yz=H.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:g,getPrefixCls:m,getPopupContainer:b}=H.useContext(Ny),v=H.useContext(Ry),y=null!=l?l:v,[w,x]=H.useState({}),S=(e,t)=>{x((n=>Object.assign(Object.assign({},n),{[e]:t})))},k=(e,t)=>e||(t?"rtl"===h?"left":"right":"top"),C=m("slider",n),[E,O]=vz(C),D=Km(o,null==g?void 0:g.className,i,{[`${C}-rtl`]:"rtl"===h},O);"rtl"!==h||p.vertical||(p.reverse=!p.reverse);const[$,j]=H.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),P=Object.assign(Object.assign({},null==g?void 0:g.style),a);return E(H.createElement(fz,Object.assign({},p,{step:p.step,range:$,draggableTrack:j,className:D,style:P,disabled:y,ref:t,prefixCls:C,handleRender:(t,n)=>{var r;const{index:o,dragging:i}=n,{tooltip:a={},vertical:l}=e,h=Object.assign({},a),{open:g,placement:v,getPopupContainer:y,prefixCls:x,formatter:E}=h,O=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(E,c),D=!!O&&(w[o]||i),$=null!==(r=null!=g?g:u)&&void 0!==r?r:void 0===g&&D,j=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>S(o,!0),onMouseLeave:()=>S(o,!1),onFocus:e=>{var t;S(o,!0),null===(t=p.onFocus)||void 0===t||t.call(p,e)},onBlur:e=>{var t;S(o,!1),null===(t=p.onBlur)||void 0===t||t.call(p,e)}});return H.createElement(pz,Object.assign({},h,{prefixCls:m("tooltip",null!=x?x:s),title:O?O(n.value):"",open:$,placement:k(null!=v?v:f,l),key:o,overlayClassName:`${C}-tooltip`,getPopupContainer:y||d||b}),H.cloneElement(t,j))}})))})),wz=yz;var xz=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Sz=B.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,h=e.onKeyDown,g=Od(e,xz),m=gg(Zy(!1,{value:a,defaultValue:l}),2),b=m[0],v=m[1];function y(e,t){var n=b;return s||(v(n=e),null==p||p(n,t)),n}var w=Km(o,i,(Ed(n={},"".concat(o,"-checked"),b),Ed(n,"".concat(o,"-disabled"),s),n));return B.createElement("button",Jp({},g,{type:"button",role:"switch","aria-checked":b,disabled:s,className:w,ref:t,onKeyDown:function(e){e.which===DS.LEFT?y(!1,e):e.which===DS.RIGHT&&y(!0,e),null==h||h(e)},onClick:function(e){var t=y(!b,e);null==f||f(t,e)}}),c,B.createElement("span",{className:"".concat(o,"-inner")},B.createElement("span",{className:"".concat(o,"-inner-checked")},u),B.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))}));Sz.displayName="Switch";const kz=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l}=e,s=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${l+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${l+2*r}px + ${2*a}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:(l-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${l+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${l+2*r}px - ${2*a}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${l+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},Cz=e=>{const{componentCls:t,handleSize:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Ez=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:i,handleSize:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a/2,boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${a+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},Oz=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a}=e,l=`${t}-inner`;return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${a+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${a+2*r}px + ${2*i}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${a+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${a+2*r}px - ${2*i}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},Dz=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nw(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),aw(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},$z=pw("Switch",(e=>{const t=cw(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Dz(t),Oz(t),Ez(t),Cz(t),kz(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,s=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*s+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:s,handleShadow:`0 2px 4px 0 ${new Jv("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}}));const jz=B.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:s}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:f}=B.useContext(Ny),p=B.useContext(Ry),h=(null!=o?o:p)||i,g=u("switch",n),m=B.createElement("div",{className:`${g}-handle`},i&&B.createElement(zS,{className:`${g}-loading-icon`})),[b,v]=$z(g),y=Mk(r),w=Km(null==f?void 0:f.className,{[`${g}-small`]:"small"===y,[`${g}-loading`]:i,[`${g}-rtl`]:"rtl"===d},a,l,v),x=Object.assign(Object.assign({},null==f?void 0:f.style),s);return b(B.createElement(Rk,{component:"Switch"},B.createElement(Sz,Object.assign({},c,{prefixCls:g,className:w,style:x,disabled:h,ref:t,loadingIcon:m}))))}));jz.__ANT_SWITCH=!0;const Pz=jz;function _z(e){if(null==e)throw new TypeError("Cannot destructure "+e)}const Nz=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM;return cw(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},Iz=e=>({defaultBg:new Jv(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Tz=pw("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},nw(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(Nz(e))),Iz);const Fz=B.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=B.useContext(Ny),d=c("tag",n),[f,p]=Tz(d),h=Km(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},null==u?void 0:u.className,o,p);return f(B.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),null==u?void 0:u.style),className:h,onClick:e=>{null==a||a(!i),null==l||l(e)}})))})),Az=Fz,Rz=hw(["Tag","preset"],(e=>(e=>gw(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(Nz(e))),Iz);const Mz=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Lz=hw(["Tag","status"],(e=>{const t=Nz(e);return[Mz(t,"success","Success"),Mz(t,"processing","Info"),Mz(t,"error","Error"),Mz(t,"warning","Warning")]}),Iz);const zz=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:g,tag:m}=B.useContext(Ny),[b,v]=B.useState(!0);B.useEffect((()=>{"visible"in p&&v(p.visible)}),[p.visible]);const y=K_(s),w=function(e){return X_.includes(e)}(s),x=y||w,S=Object.assign(Object.assign({backgroundColor:s&&!x?s:void 0},null==m?void 0:m.style),i),k=h("tag",n),[C,E]=Tz(k),O=Km(k,null==m?void 0:m.className,{[`${k}-${s}`]:x,[`${k}-has-color`]:s&&!x,[`${k}-hidden`]:!b,[`${k}-rtl`]:"rtl"===g,[`${k}-borderless`]:!f},r,o,E),D=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||v(!1)},[,$]=bE(d,u,(e=>null===e?B.createElement(Vx,{className:`${k}-close-icon`,onClick:D}):B.createElement("span",{className:`${k}-close-icon`,onClick:D},e)),null,!1),j="function"==typeof p.onClick||a&&"a"===a.type,P=l||null,_=P?B.createElement(B.Fragment,null,P,a&&B.createElement("span",null,a)):a,N=B.createElement("span",Object.assign({},p,{ref:t,className:O,style:S}),_,$,y&&B.createElement(Rz,{key:"preset",prefixCls:k}),w&&B.createElement(Lz,{key:"status",prefixCls:k}));return C(j?B.createElement(Rk,{component:"Tag"},N):N)},Bz=B.forwardRef(zz);Bz.CheckableTag=Az;const Hz=Bz;const Wz=(e,t)=>{const n=null!=t?t:Dy(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),Oy(r)),{controlHeight:o}),by(Object.assign(Object.assign({},n),{controlHeight:o})))},Uz=(e,t)=>new Jv(e).setAlpha(t).toRgbString(),Vz=(e,t)=>new Jv(e).lighten(t).toHexString(),Gz=e=>{const t=fy(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},qz=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Uz(r,.85),colorTextSecondary:Uz(r,.65),colorTextTertiary:Uz(r,.45),colorTextQuaternary:Uz(r,.25),colorFill:Uz(r,.18),colorFillSecondary:Uz(r,.12),colorFillTertiary:Uz(r,.08),colorFillQuaternary:Uz(r,.04),colorBgElevated:Vz(n,12),colorBgContainer:Vz(n,8),colorBgLayout:Vz(n,0),colorBgSpotlight:Vz(n,26),colorBgBlur:Uz(r,.04),colorBorder:Vz(n,26),colorBorderSecondary:Vz(n,19)}},Xz=(e,t)=>{const n=Object.keys(vy).map((t=>{const n=fy(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:Dy(e);return Object.assign(Object.assign(Object.assign({},r),n),wy(e,{generateColorPalettes:Gz,generateNeutralColorPalettes:qz}))};const Kz={defaultConfig:jy,defaultSeed:jy.token,useToken:function(){const[e,t,n]=Ky();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Dy,darkAlgorithm:Xz,compactAlgorithm:Wz,getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?wg(e.algorithm):wg(Dy),n=Object.assign(Object.assign({},yy),null==e?void 0:e.token);return Bg(n,{override:null==e?void 0:e.token},t,Gy)}};var Yz=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}},Qz={"text/plain":"Text","text/html":"Url",default:"Text"};var Jz=function(e,t){var n,r,o,i,a,l,s=!1;t||(t={}),n=t.debug||!1;try{if(o=Yz(),i=document.createRange(),a=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=Qz[t.format]||Qz.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(u){n&&console.error("unable to copy using clipboardData: ",u),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return s};const Zz=n(Jz);var eB,tB=function(){return Kz.useToken().token},nB=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},rB=B.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(eB=nB("dark"))&&void 0!==eB&&eB.matches?"dark":"light"}),oB=function(){return B.useContext(rB)},iB=function(){var e=tB(),t=oB(),n=t.appearance,r=t.isDarkMode;return B.useMemo((function(){return t=function(e){var t=e.css,n=e.token;return{buttonDefaultHover:t({backgroundColor:n.colorBgContainer,border:"1px solid ".concat(n.colorBorder),cursor:"pointer",":hover":{color:n.colorPrimaryHover,borderColor:n.colorPrimaryHover},":active":{color:n.colorPrimaryActive,borderColor:n.colorPrimaryActive}})}}({token:e,css:Qp,appearance:n,isDarkMode:r}),Object.fromEntries(Object.entries(t).map((function(e){var t=gg(e,2);return[t[0],t[1].styles]})));var t}),[e,n,r])};function aB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aB(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sB=function(){var e=tB(),t=iB();return B.useMemo((function(){return lB(lB({},e),{},{stylish:t})}),[e,t])};function cB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cB(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dB=function(e){return uB(uB({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},fB=function(){var e=mA.useBreakpoint();return B.useMemo((function(){return dB(e)}),[e])},pB=["stylish","appearance","isDarkMode","prefixCls"],hB=["prefixCls"],gB=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var i=null==o?void 0:o.__BABEL_FILE_NAME__,a=!!i;return function(l){var s,c,u=n(),d=B.useContext(r).cache,f=Yp(d,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),p=f.cx,h=f.css,g=(s=tB(),c={xs:"@media (max-width: ".concat(s.screenXSMax,"px)"),sm:"@media (max-width: ".concat(s.screenSMMax,"px)"),md:"@media (max-width: ".concat(s.screenMDMax,"px)"),lg:"@media (max-width: ".concat(s.screenLGMax,"px)"),xl:"@media (max-width: ".concat(s.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(s.screenXXLMin,"px)")},B.useMemo((function(){return dB(c)}),[s])),m=B.useMemo((function(){var t;if(e instanceof Function){var n=u.stylish,r=u.appearance,o=u.isDarkMode,s=u.prefixCls,c=Od(u,pB),d=function(e){return t=e,n=g,Object.entries(t).map((function(e){var t=gg(e,2),r=t[0],o=t[1],i=o;return Gp(o)||(i=Qp(o)),n[r]?"".concat(n[r]," {").concat(i.styles,"}"):""})).join("");var t,n};Object.assign(d,g),t=e({token:c,stylish:n,appearance:r,isDarkMode:o,prefixCls:s,cx:p,css:Qp,responsive:d},l)}else t=e;return"object"===kd(t)&&(t=Gp(t)?h(t):Object.fromEntries(Object.entries(t).map((function(e){var t=gg(e,2),n=t[0],r=t[1],o=a?"".concat(i,"-").concat(n):void 0;return"object"===kd(r)?a?[n,h(r,"label:".concat(o))]:[n,h(r)]:[n,r]})))),t}),[l,u]);return B.useMemo((function(){var e=u.prefixCls,t=Od(u,hB);return{styles:m,cx:p,theme:t,prefixCls:e}}),[m,u])}}},mB=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return Q.jsx(t.Provider,{value:e.theme,children:e.children})}},bB=function(e){var t=B.useContext(Dh);return e.theme!==t&&(t=$h(t)(e.theme)),B.createElement(Dh.Provider,{value:t},e.children)},vB=Dh;function yB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yB(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const xB=B.memo((function(e){var t=e.children,n=e.theme,r=e.prefixCls,o=e.getStaticInstance,i=e.staticInstanceConfig,a=oB(),l=a.appearance,s=a.isDarkMode,c=gg(mL.useMessage(null==i?void 0:i.message),2),u=c[0],d=c[1],f=gg(_L.useNotification(null==i?void 0:i.notification),2),p=f[0],h=f[1],g=gg(wL.useModal(),2),m=g[0],b=g[1];B.useEffect((function(){null==o||o({message:u,modal:m,notification:p})}),[]);var v=B.useMemo((function(){var e=s?Kz.darkAlgorithm:Kz.defaultAlgorithm,t=n;if("function"==typeof n&&(t=n(l)),!t)return{algorithm:e};var r=t.algorithm?t.algorithm instanceof Array?t.algorithm:[t.algorithm]:[];return wB(wB({},t),{},{algorithm:t.algorithm?[e].concat(Fh(r)):e})}),[n,s]);return Q.jsxs(xx,{prefixCls:r,theme:v,children:[d,h,b,t]})}));function SB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,o=u}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kB(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CB(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=SB(H.useState((function(){return void 0!==o?o:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),s=l[0],c=l[1],u=void 0!==o?o:s;return a&&(u=a(u)),[u,function(e){c(e),u!==e&&i&&i(e,u)}]}var EB,OB=function(e){"function"==typeof B.startTransition?B.startTransition(e):e()},DB=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){OB((function(){nB("dark").matches?n("dark"):n("light")}))},i=function(){OB((function(){nB("dark").matches?r("dark"):r("light")}))};return B.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),EB||(EB=nB("dark")),EB.addEventListener("change",o),function(){EB.removeEventListener("change",o)};OB((function(){n(t)}))}),[t]),B.useLayoutEffect((function(){return EB||(EB=nB("dark")),EB.addEventListener("change",i),function(){EB.removeEventListener("change",i)}}),[]),null};const $B=B.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,l=e.defaultThemeMode,s=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,d=c.themeMode,f=gg(CB("light",{value:a,defaultValue:null!=l?l:d,onChange:function(e){return null==s?void 0:s(e)}}),2),p=f[0],h=f[1],g=gg(CB("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==i?void 0:i(e)}}),2),m=g[0],b=g[1],v=gg(B.useState(null!==(t=nB("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=v[0],w=v[1],x=gg(B.useState(!1),2),S=x[0],k=x[1];return B.useEffect((function(){OB((function(){k(!0)}))}),[]),Q.jsxs(rB.Provider,{value:{themeMode:p,setThemeMode:h,appearance:m,setAppearance:b,isDarkMode:"dark"===m,browserPrefers:y},children:[S&&Q.jsx(DB,{themeMode:p,setAppearance:b,setBrowserPrefers:w}),n]})}));var jB=["stylish"];function PB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PB(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const NB=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,i=e.prefixCls,a=void 0===i?"ant":i,l=e.StyledThemeProvider,s=oB(),c=s.appearance,u=s.isDarkMode,d=sB(),f=d.stylish,p=Od(d,jB),h=B.useMemo((function(){return r?r instanceof Function?r({token:p,appearance:c,isDarkMode:u}):r:{}}),[r,p,c]),g=B.useMemo((function(){return _B(_B({},h),n instanceof Function?n({token:p,appearance:c,isDarkMode:u}):n)}),[h,n,p,c]),m=B.useMemo((function(){return o?o({token:_B(_B({},p),g),stylish:f,appearance:c,isDarkMode:u,css:Qp}):{}}),[o,p,g,f,c]),b=B.useMemo((function(){return _B(_B({},m),f)}),[m,f]),v=_B(_B(_B(_B({},p),g),{},{stylish:b},s),{},{prefixCls:a});return Q.jsx(l,{theme:v,children:t})};function IB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IB(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FB(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var RB=new Wp;"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=RB);var MB,LB,zB=function(e){var t,n,r,o=AB(AB({},e),{},{key:null!==(t=e.key)&&void 0!==t?t:"zcss",speedy:null!==(n=e.speedy)&&void 0!==n&&n}),i=Rp({key:o.key,speedy:o.speedy,container:o.container}),a=function(e){return B.createContext(e)}(i),l=function(e){return B.memo((function(t){var n=t.children,r=t.prefix,o=t.speedy,i=t.getStyleManager,a=t.container,l=t.nonce,s=t.insertionPoint,c=t.stylisPlugins,u=t.linters,d=Od(t,Wm),f=B.useContext(e),p=null!=r?r:f.sheet.key,h=null!=a?a:f.sheet.container,g=null!=o?o:f.sheet.isSpeedy,m=B.useMemo((function(){var e=Rp({speedy:null!=g&&g,key:p,container:h,nonce:l,insertionPoint:s,stylisPlugins:c});if("undefined"!=typeof global){var t=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;t&&(e.cache=t.add(e.cache))}return e}),[p,g,h,l,s,c]);B.useEffect((function(){null==i||i(m)}),[m]);var b=Q.jsx(e.Provider,{value:m,children:n});return Boolean(Object.keys(d).length)||h?Q.jsx(Zh,Vm(Vm({linters:u,container:h},d),{},{children:b})):b}))}(a);i.cache=RB.add(i.cache);var s=B.createContext(o.customToken?o.customToken:{}),c=null===(r=o.styled)||void 0===r?void 0:r.ThemeContext,u=B.createContext({CustomThemeContext:s,StyledThemeContext:c,prefixCls:null==o?void 0:o.prefixCls}),d=function(e){return function(){var t=e.StyleEngineContext,n=B.useContext(t),r=n.StyledThemeContext,o=n.CustomThemeContext,i=n.prefixCls,a=sB(),l=oB(),s=B.useContext(o),c=B.useContext(null!=r?r:vB)||{},u=B.useMemo((function(){return TB(TB(TB(TB({},a),l),s),{},{prefixCls:i||"ant"})}),[a,l,i,s]);return c&&0!==Object.keys(c).length?c:u}}({StyleEngineContext:u}),f=gB({hashPriority:o.hashPriority,useTheme:d,EmotionContext:a}),p=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return B.memo((function(t){var r=e();return Q.jsx(jh,{styles:_p(n,void 0,_h(_h({},t),{},{theme:r}))})}))}}(d),h=function(e){return function(t){var n=e(t);return function(e){return n(e).styles}}}(f),g=function(e){var t=e.styledConfig?mB(e.styledConfig):void 0,n=e.StyleEngineContext;return B.memo((function(r){var o=r.children,i=r.customToken,a=r.customStylish,l=r.theme,s=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,d=r.appearance,f=r.defaultAppearance,p=r.onAppearanceChange,h=r.themeMode,g=r.defaultThemeMode,m=r.onThemeModeChange,b=r.styled,v=B.useContext(n),y=v.prefixCls,w=v.StyledThemeContext,x=v.CustomThemeContext,S=B.useContext(x),k=b?mB(b):t||bB,C=c||y;return Q.jsx(n.Provider,{value:{prefixCls:C,StyledThemeContext:(null==b?void 0:b.ThemeContext)||w||vB,CustomThemeContext:x},children:Q.jsx($B,{themeMode:h,defaultThemeMode:g,onThemeModeChange:m,defaultAppearance:f,appearance:d,onAppearanceChange:p,useTheme:e.useTheme,children:Q.jsx(xB,{prefixCls:C,staticInstanceConfig:u,theme:l,getStaticInstance:s,children:Q.jsx(NB,{prefixCls:C,customToken:i,defaultCustomToken:S,customStylish:a,StyledThemeProvider:k,children:o})})})})}))}({styledConfig:o.styled,StyleEngineContext:u,useTheme:d}),m=Yp(i.cache,{hashPriority:o.hashPriority}).cx,b=i.injectGlobal,v=i.keyframes;return{createStyles:f,createGlobalStyle:p,createStylish:h,css:Qp,cx:m,keyframes:v,injectGlobal:b,styleManager:i,useTheme:d,StyleProvider:l,ThemeProvider:g}}({key:"acss",speedy:!1}),BB=zB.createStyles,HB=zB.createGlobalStyle,WB=zB.css,UB=zB.cx,VB=zB.keyframes,GB=zB.ThemeProvider,qB=zB.StyleProvider,XB=zB.useTheme,KB=BB((function(e){var t=e.css,n=VB(MB||(MB=hf(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(LB||(LB=hf(["\n animation: "," 1s linear infinite;\n "])),n)}})),YB=["icon","size","color","fill","className","focusable","spin","fillRule","fillOpacity"],QB=["fontSize"];function JB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JB(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const eH=B.forwardRef((function(e,t){var n=e.icon,r=e.size,o=e.color,i=e.fill,a=void 0===i?"transparent":i,l=e.className,s=e.focusable,c=e.spin,u=e.fillRule,d=e.fillOpacity,f=Od(e,YB),p=KB(),h=p.styles,g=p.cx,m=n,b=B.useMemo((function(){return function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}}(r)}),[r]),v=b.fontSize,y=Od(b,QB);return Q.jsx("span",ZB(ZB({className:g("anticon",c&&h.spin,l),role:"img"},f),{},{children:Q.jsx(m,ZB({color:o,fill:a,fillOpacity:d,fillRule:u,focusable:s,height:v,ref:t,size:v,width:v},y))}))}));var tH,nH=BB((function(e,t){var n,r,o=e.css,i=e.token,a=e.isDarkMode,l=t.offset,s=t.outside,c=t.size,u=(null!==(n=null==l?void 0:l.x)&&void 0!==n?n:0)+"px",d=(null!==(r=null==l?void 0:l.y)&&void 0!==r?r:0)+"px",f=s?"0":".1",p=c+"px";return o(tH||(tH=hf(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),f,p,u,d,a?i.colorText:"#fff",a?"transparent":i.colorTextQuaternary)})),rH=["className","size"];function oH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var iH=B.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=Od(e,rH),i=function(){var e=gg(B.useState(),2),t=e[0],n=e[1],r=gg(B.useState(!0),2),o=r[0],i=r[1],a=B.useRef();return B.useEffect((function(){if(a.current&&a.current.parentElement){var e=a.current.parentElement,t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),i(!1)},r=function(){i(!0)};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}}),[]),[t,o,a]}(),a=gg(i,3),l=a[0],s=a[1],c=a[2],u=nH({offset:l,outside:s,size:r}),d=u.styles,f=u.cx;return Q.jsx("div",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oH(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:f(d,t),ref:c},o))}));const aH=iH;var lH,sH=BB((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{tooltip:t(lH||(lH=hf(["\n .","-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding: 4px 8px;\n\n color: ",";\n\n background-color: ",";\n border-radius: ","px;\n\n word-break: break-all;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: ",";\n }\n }\n "])),r,n.colorBgLayout,n.colorText,n.borderRadiusSM,r,n.colorText)}})),cH=["className","arrow"];function uH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var dH=B.memo((function(e){var t=e.className,n=e.arrow,r=void 0!==n&&n,o=Od(e,cH),i=sH(),a=i.styles,l=i.cx;return Q.jsx(Z_,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uH(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({arrow:r,overlayClassName:l(a.tooltip,t)},o))}));const fH=dH;var pH,hH,gH=BB((function(e,t){var n=e.css,r=e.token,o=e.stylish,i=e.cx,a=t.active;return{block:i(t.glass&&o.blur,n(pH||(pH=hf(["\n cursor: pointer;\n\n position: relative;\n\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n color: ",";\n\n background: ",";\n\n transition:\n color 600ms ",",\n scale 400ms ",",\n background-color 100ms ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n "])),a?r.colorText:r.colorTextTertiary,a?r.colorFillTertiary:"transparent",r.motionEaseOut,r.motionEaseOut,r.motionEaseOut,r.colorText,r.colorFillSecondary,r.colorText,r.colorFill)),icon:n(hH||(hH=hf(["\n transition: scale 400ms ",";\n\n &:active {\n scale: 0.8;\n }\n "])),r.motionEaseOut)}})),mH=["color","fill","className","active","icon","size","style","glass","title","placement","arrow","spotlight","onClick","children","loading","tooltipDelay","fillOpacity","fillRule","focusable"];function bH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bH(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yH=B.forwardRef((function(e,t){var n=e.color,r=e.fill,o=e.className,i=e.active,a=e.icon,l=e.size,s=void 0===l?"normal":l,c=e.style,u=e.glass,d=e.title,f=e.placement,p=e.arrow,h=void 0!==p&&p,g=e.spotlight,m=e.onClick,b=e.children,v=e.loading,y=e.tooltipDelay,w=void 0===y?.5:y,x=e.fillOpacity,S=e.fillRule,k=e.focusable,C=Od(e,mH),E=gH({active:Boolean(i),glass:Boolean(u)}),O=E.styles,D=E.cx,$=B.useMemo((function(){return function(e){var t,n;switch(e){case"large":t=44,n=8;break;case"normal":t=36,n=5;break;case"small":t=24,n=5;break;case"site":t=34,n=5;break;default:t=(null==e?void 0:e.blockSize)||36,n=(null==e?void 0:e.borderRadius)||5}return{blockSize:t,borderRadius:n}}(s)}),[s]),j=$.blockSize,P=$.borderRadius,_={color:n,fill:r,fillOpacity:x,fillRule:S,focusable:k,size:"site"===s?"normal":s},N=a&&Q.jsx(eH,vH({className:O.icon,icon:a},_)),I=Q.jsx(eH,vH(vH({icon:qd},_),{},{spin:!0})),T=Q.jsxs("div",vH(vH({className:D(O.block,o),onClick:v?void 0:m,ref:t,style:vH({borderRadius:P,height:j,width:j},c)},C),{},{children:[g&&Q.jsx(aH,{}),v?I:N,b]}));return d?Q.jsx(fH,{arrow:h,mouseEnterDelay:w,overlayStyle:{pointerEvents:"none"},placement:f,title:d,children:T}):T}));const wH="object"==typeof global&&global&&global.Object===Object&&global;var xH="object"==typeof self&&self&&self.Object===Object&&self;const SH=(wH||xH||Function("return this")()).Symbol;var kH=Object.prototype,CH=kH.hasOwnProperty,EH=kH.toString,OH=SH?SH.toStringTag:void 0;var DH=Object.prototype.toString;var $H="[object Null]",jH="[object Undefined]",PH=SH?SH.toStringTag:void 0;function _H(e){return null==e?void 0===e?jH:$H:PH&&PH in Object(e)?function(e){var t=CH.call(e,OH),n=e[OH];try{e[OH]=void 0;var r=!0}catch(GY){}var o=EH.call(e);return r&&(t?e[OH]=n:delete e[OH]),o}(e):function(e){return DH.call(e)}(e)}function NH(e){return null!=e&&"object"==typeof e}var IH="[object Symbol]";const TH=Array.isArray;var FH=1/0,AH=SH?SH.prototype:void 0,RH=AH?AH.toString:void 0;function MH(e){if("string"==typeof e)return e;if(TH(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,MH)+"";if(function(e){return"symbol"==typeof e||NH(e)&&_H(e)==IH}(e))return RH?RH.call(e):"";var t=e+"";return"0"==t&&1/e==-FH?"-0":t}function LH(e){return null==e?"":MH(e)}function zH(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}var BH=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function HH(e){return BH.test(e)}var WH,UH="\\ud800-\\udfff",VH="["+UH+"]",GH="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",qH="\\ud83c[\\udffb-\\udfff]",XH="[^"+UH+"]",KH="(?:\\ud83c[\\udde6-\\uddff]){2}",YH="[\\ud800-\\udbff][\\udc00-\\udfff]",QH="(?:"+GH+"|"+qH+")"+"?",JH="[\\ufe0e\\ufe0f]?",ZH=JH+QH+("(?:\\u200d(?:"+[XH,KH,YH].join("|")+")"+JH+QH+")*"),eW="(?:"+[XH+GH+"?",GH,KH,YH,VH].join("|")+")",tW=RegExp(qH+"(?="+qH+")|"+eW+ZH,"g");function nW(e){return HH(e)?function(e){return e.match(tW)||[]}(e):function(e){return e.split("")}(e)}const rW=(WH="toUpperCase",function(e){var t=HH(e=LH(e))?nW(e):void 0,n=t?t[0]:e.charAt(0),r=t?zH(t,1).join(""):e.slice(1);return n[WH]()+r});function oW(e){return rW(LH(e).toLowerCase())}var iW;const aW=(iW={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},function(e){return null==iW?void 0:iW[e]});var lW=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sW=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var cW=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var uW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var dW="\\ud800-\\udfff",fW="\\u2700-\\u27bf",pW="a-z\\xdf-\\xf6\\xf8-\\xff",hW="A-Z\\xc0-\\xd6\\xd8-\\xde",gW="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mW="["+gW+"]",bW="\\d+",vW="["+fW+"]",yW="["+pW+"]",wW="[^"+dW+gW+bW+fW+pW+hW+"]",xW="(?:\\ud83c[\\udde6-\\uddff]){2}",SW="[\\ud800-\\udbff][\\udc00-\\udfff]",kW="["+hW+"]",CW="(?:"+yW+"|"+wW+")",EW="(?:"+kW+"|"+wW+")",OW="(?:['’](?:d|ll|m|re|s|t|ve))?",DW="(?:['’](?:D|LL|M|RE|S|T|VE))?",$W="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",jW="[\\ufe0e\\ufe0f]?",PW=jW+$W+("(?:\\u200d(?:"+["[^"+dW+"]",xW,SW].join("|")+")"+jW+$W+")*"),_W="(?:"+[vW,xW,SW].join("|")+")"+PW,NW=RegExp([kW+"?"+yW+"+"+OW+"(?="+[mW,kW,"$"].join("|")+")",EW+"+"+DW+"(?="+[mW,kW+CW,"$"].join("|")+")",kW+"?"+CW+"+"+OW,kW+"+"+DW,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bW,_W].join("|"),"g");function IW(e,t,n){return e=LH(e),void 0===(t=n?void 0:t)?function(e){return uW.test(e)}(e)?function(e){return e.match(NW)||[]}(e):function(e){return e.match(cW)||[]}(e):e.match(t)||[]}var TW=RegExp("['’]","g");function FW(e){return function(t){return function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(IW(function(e){return(e=LH(e))&&e.replace(lW,aW).replace(sW,"")}(t).replace(TW,"")),e,"")}}const AW=FW((function(e,t,n){return t=t.toLowerCase(),e+(n?oW(t):t)}));const RW=FW((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));const MW=FW((function(e,t,n){return e+(n?" ":"")+rW(t)}));var LW,zW=function(e){return e||"layoutkit"},BW=function(e,t){if(t)return"row";switch(e){case"horizontal":return"row";case"horizontal-reverse":return"row-reverse";case"vertical":default:return"column";case"vertical-reverse":return"column-reverse"}},HW=function(e){return"number"==typeof e?"".concat(e,"px"):e},WW=["visible","flex","gap","direction","horizontal","align","justify","distribution","height","width","padding","paddingInline","paddingBlock","as","internalClassName","className","children"];function UW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UW(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const GW=B.forwardRef((function(e,t){var n=e.visible,r=e.flex,o=e.gap,i=e.direction,a=e.horizontal,l=e.align,s=e.justify,c=e.distribution,u=e.height,d=e.width,f=e.padding,p=e.paddingInline,h=e.paddingBlock,g=e.as,m=e.internalClassName,b=e.className,v=e.children,y=Od(e,WW),w=s||c,x=B.useMemo((function(){return function(e,t){return"row"===BW(e,t)}(i,a)&&!d&&function(e){if(e)return["space-between","space-around","space-evenly"].includes(e)}(w)?"100%":HW(d)}),[i,a,w,d]),S=B.useMemo((function(){return function(e){return B.forwardRef((function(t,n){return B.createElement(e,VW(VW({},t),{},{ref:n}))}))}(g||"div")}),[g]);return Q.jsx(S,VW(VW({ref:t},y),{},{className:zp(m,Bp(LW||(LW=hf(["\n // 是否显示\n display: ",";\n\n flex: ",";\n\n flex-direction: ",";\n justify-content: ",";\n align-items: ",";\n\n width: ",";\n height: ",";\n\n padding: ",";\n\n padding-inline: ",";\n padding-block: ",";\n\n gap: ",";\n "])),!1===n?"none":"flex",r,BW(i,a),w,l,x,HW(u),HW(f),HW(p),HW(h),HW(o)),b),children:v}))}));var qW=["children","className","prefixCls"];function XW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XW(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const YW=B.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.prefixCls,i=Od(e,qW);return Q.jsx(GW,KW(KW({ref:t,internalClassName:"".concat(zW(o),"-center"),className:r},i),{},{align:"center",justify:"center",children:n}))}));var QW=["className","prefixCls","children"];function JW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JW(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eU,tU,nU,rU,oU,iU,aU,lU,sU,cU,uU,dU,fU=B.forwardRef((function(e,t){var n=e.className,r=e.prefixCls,o=e.children,i=Od(e,QW);return Q.jsx(GW,ZW(ZW({ref:t},i),{},{internalClassName:"".concat(zW(r),"-flexbox"),className:n,children:o}))})),pU=BB((function(e,t){var n=e.cx,r=e.token,o=e.css,i=e.prefixCls,a=t.closable,l=t.hasTitle,s=t.showIcon,c=l?16:8,u=l?16:12;return{banner:o(eU||(eU=hf(["\n border: none;\n border-radius: 0;\n "]))),colorfulText:o(tU||(tU=hf(["\n .","-alert-message,.","-alert-description {\n color: inherit;\n }\n "])),i,i),container:n(o(nU||(nU=hf(["\n position: relative;\n\n display: flex;\n flex-direction: row;\n gap: ","px;\n align-items: flex-start;\n\n max-width: 100%;\n padding-right: ","px;\n padding-left: ","px;\n padding-block: ","px;\n\n .","-alert-message {\n font-weight: ",";\n line-height: 24px;\n word-break: break-all;\n }\n .","-alert-icon {\n display: flex;\n align-items: center;\n height: 24px;\n margin: 0;\n }\n .","-alert-close-icon {\n display: flex;\n align-items: center;\n height: 24px;\n margin: 0;\n }\n "])),l?12:8,a?u:1.5*u,s?u:1.5*u,c,i,l?600:400,i,i),l&&o(rU||(rU=hf(["\n .","-alert-description {\n line-height: 1.5;\n word-break: break-all;\n opacity: 0.75;\n }\n "])),i)),extra:o(oU||(oU=hf(["\n position: relative;\n\n overflow: hidden;\n\n max-width: 100%;\n\n border: 1px solid;\n border-top: none;\n border-bottom-right-radius: ","px;\n border-bottom-left-radius: ","px;\n "])),r.borderRadiusLG,r.borderRadiusLG),extraBody:o(iU||(iU=hf(["\n overflow-x: auto;\n width: 100%;\n padding-block: ","px;\n padding-inline: ","px;\n "])),c,u),extraHeader:o(aU||(aU=hf(["\n padding-block: ","px;\n padding-inline: ","px;\n border-top: 1px dashed;\n "])),.75*c,.75*u),hasExtra:o(lU||(lU=hf(["\n border-bottom: none;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n "]))),variantBlock:o(sU||(sU=hf(["\n border: none;\n "]))),variantGhost:o(cU||(cU=hf(["\n background: transparent !important;\n "]))),variantPure:o(uU||(uU=hf(["\n padding: 0 !important;\n background: transparent !important;\n border: none;\n "]))),variantPureExtraHeader:o(dU||(dU=hf(["\n margin-top: ","px;\n margin-left: ","px;\n padding-inline: 0;\n "])),c,.25*-u)}})),hU=["closeIcon","closable","description","showIcon","type","variant","icon","colorfulText","style","extra","classNames","text","extraDefaultExpand","extraIsolate","banner"];function gU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gU(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bU={error:uf,info:Ud,success:Id,warning:jd},vU=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e[AW(["color",t].concat(r).join("-"))]};const yU=B.memo((function(e){var t=e.closeIcon,n=e.closable,r=void 0!==n&&n,o=e.description,i=e.showIcon,a=void 0===i||i,l=e.type,s=void 0===l?"info":l,c=e.variant,u=e.icon,d=e.colorfulText,f=void 0===d||d,p=e.style,h=e.extra,g=e.classNames,m=e.text,b=e.extraDefaultExpand,v=void 0!==b&&b,y=e.extraIsolate,w=e.banner,x=Od(e,hU),S=gg(B.useState(v),2),k=S[0],C=S[1],E=pU({closable:!!r,hasTitle:!!o,showIcon:!!a}),O=E.theme,D=E.styles,$=E.cx,j=!y&&!!h,P=Q.jsx(yS,mU({banner:w,className:$(D.container,f&&D.colorfulText,!!j&&D.hasExtra,"block"===c&&D.variantBlock,"ghost"===c&&D.variantGhost,"pure"===c&&D.variantPure,null==g?void 0:g.alert,!j&&D.container),closable:r,closeIcon:t||Q.jsx(yH,{color:vU(O,s),icon:df,size:"small"}),description:o,icon:Q.jsx(eH,{icon:bU[s]||u,size:{fontSize:o?24:18}}),showIcon:a,style:mU({color:f?vU(O,s):void 0},p),type:s},x));return h?y?Q.jsxs(fU,{className:null==g?void 0:g.container,gap:8,children:[P,h]}):Q.jsxs(fU,{className:null==g?void 0:g.container,children:[P,Q.jsxs(fU,{className:$(D.extra,w&&D.banner,"block"===c&&D.variantBlock,"ghost"===c&&D.variantGhost,"pure"===c&&D.variantPure),style:{background:vU(O,s,"bg"),borderColor:vU(O,s,"border"),color:vU(O,s),fontSize:o?14:12},children:[Q.jsxs(fU,{align:"center",className:$(D.extraHeader,"pure"===c&&D.variantPureExtraHeader),gap:mL?6:10,horizontal:!0,style:{borderColor:vU(O,s,"border")},children:[Q.jsx(yH,{color:f?vU(O,s):void 0,icon:k?Td:Ad,onClick:function(){return C(!k)},size:{blockSize:24,fontSize:18}}),Q.jsx("div",{children:(null==m?void 0:m.detail)||"Show Details"})]}),k&&Q.jsx("div",{className:$(D.extraBody,"pure"===c&&D.variantPure),children:h})]})]}):P}));function wU(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=r<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var i=t.join("/"),a=(i=i.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}var xU=function(e){var t=e.pkg,n=e.version,r=void 0===n?"latest":n,o=e.path;return"unpkg"===e.proxy?wU("https://unpkg.com","".concat(t,"@").concat(r),o):wU("https://registry.npmmirror.com",t,r,"files",o)},SU=B.createContext(null),kU=function(e){var t=e.pkg,n=e.version,r=e.path;return xU({path:r,pkg:t,proxy:"aliyun",version:n})},CU=function(){var e=B.useContext(SU);return e?"custom"!==(null==e?void 0:e.proxy)?function(t){var n=t.pkg,r=t.version,o=t.path;return xU({path:o,pkg:n,proxy:e.proxy,version:r})}:(null==e?void 0:e.customCdnFn)||kU:kU};function EU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EU(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const DU=B.forwardRef((function(e,t){var n=B.useContext(SU),r=B.useMemo((function(){return e=(null==n?void 0:n.imgAs)||"img",B.forwardRef((function(t,n){return B.createElement(e,OU(OU({},t),{},{ref:n}))}));var e}),[n]);return Q.jsx(r,OU({ref:t},e))})),$U={"😀":"grinning-face","😃":"grinning-face-with-big-eyes","😄":"grinning-face-with-smiling-eyes","😁":"beaming-face-with-smiling-eyes","😆":"grinning-squinting-face","😅":"grinning-face-with-sweat","🤣":"rolling-on-the-floor-laughing","😂":"face-with-tears-of-joy","🙂":"slightly-smiling-face","🙃":"upside-down-face","🫠":"melting-face","😉":"winking-face","😊":"smiling-face-with-smiling-eyes","😇":"smiling-face-with-halo","🥰":"smiling-face-with-hearts","😍":"smiling-face-with-heart-eyes","🤩":"star-struck","😘":"face-blowing-a-kiss","😗":"kissing-face","☺️":"smiling-face","😚":"kissing-face-with-closed-eyes","😙":"kissing-face-with-smiling-eyes","🥲":"smiling-face-with-tear","😋":"face-savoring-food","😛":"face-with-tongue","😜":"winking-face-with-tongue","🤪":"zany-face","😝":"squinting-face-with-tongue","🤑":"money-mouth-face","🤗":"smiling-face-with-open-hands","🤭":"face-with-hand-over-mouth","🫢":"face-with-open-eyes-and-hand-over-mouth","🫣":"face-with-peeking-eye","🤫":"shushing-face","🤔":"thinking-face","🫡":"saluting-face","🤐":"zipper-mouth-face","🤨":"face-with-raised-eyebrow","😐":"neutral-face","😑":"expressionless-face","😶":"face-without-mouth","🫥":"dotted-line-face","😶🌫️":"face-in-clouds","😏":"smirking-face","😒":"unamused-face","🙄":"face-with-rolling-eyes","😬":"grimacing-face","😮💨":"face-exhaling","🤥":"lying-face","🫨":"shaking-face","😌":"relieved-face","😔":"pensive-face","😪":"sleepy-face","🤤":"drooling-face","😴":"sleeping-face","😷":"face-with-medical-mask","🤒":"face-with-thermometer","🤕":"face-with-head-bandage","🤢":"nauseated-face","🤮":"face-vomiting","🤧":"sneezing-face","🥵":"hot-face","🥶":"cold-face","🥴":"woozy-face","😵":"face-with-crossed-out-eyes","😵💫":"face-with-spiral-eyes","🤯":"exploding-head","🤠":"cowboy-hat-face","🥳":"partying-face","🥸":"disguised-face","😎":"smiling-face-with-sunglasses","🤓":"nerd-face","🧐":"face-with-monocle","😕":"confused-face","🫤":"face-with-diagonal-mouth","😟":"worried-face","🙁":"slightly-frowning-face","☹️":"frowning-face","😮":"face-with-open-mouth","😯":"hushed-face","😲":"astonished-face","😳":"flushed-face","🥺":"pleading-face","🥹":"face-holding-back-tears","😦":"frowning-face-with-open-mouth","😧":"anguished-face","😨":"fearful-face","😰":"anxious-face-with-sweat","😥":"sad-but-relieved-face","😢":"crying-face","😭":"loudly-crying-face","😱":"face-screaming-in-fear","😖":"confounded-face","😣":"persevering-face","😞":"disappointed-face","😓":"downcast-face-with-sweat","😩":"weary-face","😫":"tired-face","🥱":"yawning-face","😤":"face-with-steam-from-nose","😡":"enraged-face","😠":"angry-face","🤬":"face-with-symbols-on-mouth","😈":"smiling-face-with-horns","👿":"angry-face-with-horns","💀":"skull","☠️":"skull-and-crossbones","💩":"pile-of-poo","🤡":"clown-face","👹":"ogre","👺":"goblin","👻":"ghost","👽":"alien","👾":"alien-monster","🤖":"robot","😺":"grinning-cat","😸":"grinning-cat-with-smiling-eyes","😹":"cat-with-tears-of-joy","😻":"smiling-cat-with-heart-eyes","😼":"cat-with-wry-smile","😽":"kissing-cat","🙀":"weary-cat","😿":"crying-cat","😾":"pouting-cat","🙈":"see-no-evil-monkey","🙉":"hear-no-evil-monkey","🙊":"speak-no-evil-monkey","💌":"love-letter","💘":"heart-with-arrow","💝":"heart-with-ribbon","💖":"sparkling-heart","💗":"growing-heart","💓":"beating-heart","💞":"revolving-hearts","💕":"two-hearts","💟":"heart-decoration","❣️":"heart-exclamation","💔":"broken-heart","❤️🔥":"heart-on-fire","❤️🩹":"mending-heart","❤️":"red-heart","🩷":"pink-heart","🧡":"orange-heart","💛":"yellow-heart","💚":"green-heart","💙":"blue-heart","🩵":"light-blue-heart","💜":"purple-heart","🤎":"brown-heart","🖤":"black-heart","🩶":"grey-heart","🤍":"white-heart","💋":"kiss-mark","💯":"hundred-points","💢":"anger-symbol","💥":"collision","💫":"dizzy","💦":"sweat-droplets","💨":"dashing-away","🕳️":"hole","💬":"speech-balloon","👁️🗨️":"eye-in-speech-bubble","🗨️":"left-speech-bubble","🗯️":"right-anger-bubble","💭":"thought-balloon","💤":"zzz","👋":"waving-hand","🤚":"raised-back-of-hand","🖐️":"hand-with-fingers-splayed","✋":"raised-hand","🖖":"vulcan-salute","🫱":"rightwards-hand","🫲":"leftwards-hand","🫳":"palm-down-hand","🫴":"palm-up-hand","🫷":"leftwards-pushing-hand","🫸":"rightwards-pushing-hand","👌":"ok-hand","🤌":"pinched-fingers","🤏":"pinching-hand","✌️":"victory-hand","🤞":"crossed-fingers","🫰":"hand-with-index-finger-and-thumb-crossed","🤟":"love-you-gesture","🤘":"sign-of-the-horns","🤙":"call-me-hand","👈":"backhand-index-pointing-left","👉":"backhand-index-pointing-right","👆":"backhand-index-pointing-up","🖕":"middle-finger","👇":"backhand-index-pointing-down","☝️":"index-pointing-up","🫵":"index-pointing-at-the-viewer","👍":"thumbs-up","👎":"thumbs-down","✊":"raised-fist","👊":"oncoming-fist","🤛":"left-facing-fist","🤜":"right-facing-fist","👏":"clapping-hands","🙌":"raising-hands","🫶":"heart-hands","👐":"open-hands","🤲":"palms-up-together","🤝":"handshake","🙏":"folded-hands","✍️":"writing-hand","💅":"nail-polish","🤳":"selfie","💪":"flexed-biceps","🦾":"mechanical-arm","🦿":"mechanical-leg","🦵":"leg","🦶":"foot","👂":"ear","🦻":"ear-with-hearing-aid","👃":"nose","🧠":"brain","🫀":"anatomical-heart","🫁":"lungs","🦷":"tooth","🦴":"bone","👀":"eyes","👁️":"eye","👅":"tongue","👄":"mouth","🫦":"biting-lip","👶":"baby","🧒":"child","👦":"boy","👧":"girl","🧑":"person","👱":"person-blond-hair","👨":"man","🧔":"person-beard","🧔♂️":"man-beard","🧔♀️":"woman-beard","👨🦰":"man-red-hair","👨🦱":"man-curly-hair","👨🦳":"man-white-hair","👨🦲":"man-bald","👩":"woman","👩🦰":"woman-red-hair","🧑🦰":"person-red-hair","👩🦱":"woman-curly-hair","🧑🦱":"person-curly-hair","👩🦳":"woman-white-hair","🧑🦳":"person-white-hair","👩🦲":"woman-bald","🧑🦲":"person-bald","👱♀️":"woman-blond-hair","👱♂️":"man-blond-hair","🧓":"older-person","👴":"old-man","👵":"old-woman","🙍":"person-frowning","🙍♂️":"man-frowning","🙍♀️":"woman-frowning","🙎":"person-pouting","🙎♂️":"man-pouting","🙎♀️":"woman-pouting","🙅":"person-gesturing-no","🙅♂️":"man-gesturing-no","🙅♀️":"woman-gesturing-no","🙆":"person-gesturing-ok","🙆♂️":"man-gesturing-ok","🙆♀️":"woman-gesturing-ok","💁":"person-tipping-hand","💁♂️":"man-tipping-hand","💁♀️":"woman-tipping-hand","🙋":"person-raising-hand","🙋♂️":"man-raising-hand","🙋♀️":"woman-raising-hand","🧏":"deaf-person","🧏♂️":"deaf-man","🧏♀️":"deaf-woman","🙇":"person-bowing","🙇♂️":"man-bowing","🙇♀️":"woman-bowing","🤦":"person-facepalming","🤦♂️":"man-facepalming","🤦♀️":"woman-facepalming","🤷":"person-shrugging","🤷♂️":"man-shrugging","🤷♀️":"woman-shrugging","🧑⚕️":"health-worker","👨⚕️":"man-health-worker","👩⚕️":"woman-health-worker","🧑🎓":"student","👨🎓":"man-student","👩🎓":"woman-student","🧑🏫":"teacher","👨🏫":"man-teacher","👩🏫":"woman-teacher","🧑⚖️":"judge","👨⚖️":"man-judge","👩⚖️":"woman-judge","🧑🌾":"farmer","👨🌾":"man-farmer","👩🌾":"woman-farmer","🧑🍳":"cook","👨🍳":"man-cook","👩🍳":"woman-cook","🧑🔧":"mechanic","👨🔧":"man-mechanic","👩🔧":"woman-mechanic","🧑🏭":"factory-worker","👨🏭":"man-factory-worker","👩🏭":"woman-factory-worker","🧑💼":"office-worker","👨💼":"man-office-worker","👩💼":"woman-office-worker","🧑🔬":"scientist","👨🔬":"man-scientist","👩🔬":"woman-scientist","🧑💻":"technologist","👨💻":"man-technologist","👩💻":"woman-technologist","🧑🎤":"singer","👨🎤":"man-singer","👩🎤":"woman-singer","🧑🎨":"artist","👨🎨":"man-artist","👩🎨":"woman-artist","🧑✈️":"pilot","👨✈️":"man-pilot","👩✈️":"woman-pilot","🧑🚀":"astronaut","👨🚀":"man-astronaut","👩🚀":"woman-astronaut","🧑🚒":"firefighter","👨🚒":"man-firefighter","👩🚒":"woman-firefighter","👮":"police-officer","👮♂️":"man-police-officer","👮♀️":"woman-police-officer","🕵️":"detective","🕵️♂️":"man-detective","🕵️♀️":"woman-detective","💂":"guard","💂♂️":"man-guard","💂♀️":"woman-guard","🥷":"ninja","👷":"construction-worker","👷♂️":"man-construction-worker","👷♀️":"woman-construction-worker","🫅":"person-with-crown","🤴":"prince","👸":"princess","👳":"person-wearing-turban","👳♂️":"man-wearing-turban","👳♀️":"woman-wearing-turban","👲":"person-with-skullcap","🧕":"woman-with-headscarf","🤵":"person-in-tuxedo","🤵♂️":"man-in-tuxedo","🤵♀️":"woman-in-tuxedo","👰":"person-with-veil","👰♂️":"man-with-veil","👰♀️":"woman-with-veil","🤰":"pregnant-woman","🫃":"pregnant-man","🫄":"pregnant-person","🤱":"breast-feeding","👩🍼":"woman-feeding-baby","👨🍼":"man-feeding-baby","🧑🍼":"person-feeding-baby","👼":"baby-angel","🎅":"santa-claus","🤶":"mrs-claus","🧑🎄":"mx-claus","🦸":"superhero","🦸♂️":"man-superhero","🦸♀️":"woman-superhero","🦹":"supervillain","🦹♂️":"man-supervillain","🦹♀️":"woman-supervillain","🧙":"mage","🧙♂️":"man-mage","🧙♀️":"woman-mage","🧚":"fairy","🧚♂️":"man-fairy","🧚♀️":"woman-fairy","🧛":"vampire","🧛♂️":"man-vampire","🧛♀️":"woman-vampire","🧜":"merperson","🧜♂️":"merman","🧜♀️":"mermaid","🧝":"elf","🧝♂️":"man-elf","🧝♀️":"woman-elf","🧞":"genie","🧞♂️":"man-genie","🧞♀️":"woman-genie","🧟":"zombie","🧟♂️":"man-zombie","🧟♀️":"woman-zombie","🧌":"troll","💆":"person-getting-massage","💆♂️":"man-getting-massage","💆♀️":"woman-getting-massage","💇":"person-getting-haircut","💇♂️":"man-getting-haircut","💇♀️":"woman-getting-haircut","🚶":"person-walking","🚶♂️":"man-walking","🚶♀️":"woman-walking","🧍":"person-standing","🧍♂️":"man-standing","🧍♀️":"woman-standing","🧎":"person-kneeling","🧎♂️":"man-kneeling","🧎♀️":"woman-kneeling","🧑🦯":"person-with-white-cane","👨🦯":"man-with-white-cane","👩🦯":"woman-with-white-cane","🧑🦼":"person-in-motorized-wheelchair","👨🦼":"man-in-motorized-wheelchair","👩🦼":"woman-in-motorized-wheelchair","🧑🦽":"person-in-manual-wheelchair","👨🦽":"man-in-manual-wheelchair","👩🦽":"woman-in-manual-wheelchair","🏃":"person-running","🏃♂️":"man-running","🏃♀️":"woman-running","💃":"woman-dancing","🕺":"man-dancing","🕴️":"person-in-suit-levitating","👯":"people-with-bunny-ears","👯♂️":"men-with-bunny-ears","👯♀️":"women-with-bunny-ears","🧖":"person-in-steamy-room","🧖♂️":"man-in-steamy-room","🧖♀️":"woman-in-steamy-room","🧗":"person-climbing","🧗♂️":"man-climbing","🧗♀️":"woman-climbing","🤺":"person-fencing","🏇":"horse-racing","⛷️":"skier","🏂":"snowboarder","🏌️":"person-golfing","🏌️♂️":"man-golfing","🏌️♀️":"woman-golfing","🏄":"person-surfing","🏄♂️":"man-surfing","🏄♀️":"woman-surfing","🚣":"person-rowing-boat","🚣♂️":"man-rowing-boat","🚣♀️":"woman-rowing-boat","🏊":"person-swimming","🏊♂️":"man-swimming","🏊♀️":"woman-swimming","⛹️":"person-bouncing-ball","⛹️♂️":"man-bouncing-ball","⛹️♀️":"woman-bouncing-ball","🏋️":"person-lifting-weights","🏋️♂️":"man-lifting-weights","🏋️♀️":"woman-lifting-weights","🚴":"person-biking","🚴♂️":"man-biking","🚴♀️":"woman-biking","🚵":"person-mountain-biking","🚵♂️":"man-mountain-biking","🚵♀️":"woman-mountain-biking","🤸":"person-cartwheeling","🤸♂️":"man-cartwheeling","🤸♀️":"woman-cartwheeling","🤼":"people-wrestling","🤼♂️":"men-wrestling","🤼♀️":"women-wrestling","🤽":"person-playing-water-polo","🤽♂️":"man-playing-water-polo","🤽♀️":"woman-playing-water-polo","🤾":"person-playing-handball","🤾♂️":"man-playing-handball","🤾♀️":"woman-playing-handball","🤹":"person-juggling","🤹♂️":"man-juggling","🤹♀️":"woman-juggling","🧘":"person-in-lotus-position","🧘♂️":"man-in-lotus-position","🧘♀️":"woman-in-lotus-position","🛀":"person-taking-bath","🛌":"person-in-bed","🧑🤝🧑":"people-holding-hands","👭":"women-holding-hands","👫":"woman-and-man-holding-hands","👬":"men-holding-hands","💏":"kiss","👩❤️💋👨":"kiss-woman-man","👨❤️💋👨":"kiss-man-man","👩❤️💋👩":"kiss-woman-woman","💑":"couple-with-heart","👩❤️👨":"couple-with-heart-woman-man","👨❤️👨":"couple-with-heart-man-man","👩❤️👩":"couple-with-heart-woman-woman","👪":"family","👨👩👦":"family-man-woman-boy","👨👩👧":"family-man-woman-girl","👨👩👧👦":"family-man-woman-girl-boy","👨👩👦👦":"family-man-woman-boy-boy","👨👩👧👧":"family-man-woman-girl-girl","👨👨👦":"family-man-man-boy","👨👨👧":"family-man-man-girl","👨👨👧👦":"family-man-man-girl-boy","👨👨👦👦":"family-man-man-boy-boy","👨👨👧👧":"family-man-man-girl-girl","👩👩👦":"family-woman-woman-boy","👩👩👧":"family-woman-woman-girl","👩👩👧👦":"family-woman-woman-girl-boy","👩👩👦👦":"family-woman-woman-boy-boy","👩👩👧👧":"family-woman-woman-girl-girl","👨👦":"family-man-boy","👨👦👦":"family-man-boy-boy","👨👧":"family-man-girl","👨👧👦":"family-man-girl-boy","👨👧👧":"family-man-girl-girl","👩👦":"family-woman-boy","👩👦👦":"family-woman-boy-boy","👩👧":"family-woman-girl","👩👧👦":"family-woman-girl-boy","👩👧👧":"family-woman-girl-girl","🗣️":"speaking-head","👤":"bust-in-silhouette","👥":"busts-in-silhouette","🫂":"people-hugging","👣":"footprints","🐵":"monkey-face","🐒":"monkey","🦍":"gorilla","🦧":"orangutan","🐶":"dog-face","🐕":"dog","🦮":"guide-dog","🐕🦺":"service-dog","🐩":"poodle","🐺":"wolf","🦊":"fox","🦝":"raccoon","🐱":"cat-face","🐈":"cat","🐈⬛":"black-cat","🦁":"lion","🐯":"tiger-face","🐅":"tiger","🐆":"leopard","🐴":"horse-face","🫎":"moose","🫏":"donkey","🐎":"horse","🦄":"unicorn","🦓":"zebra","🦌":"deer","🦬":"bison","🐮":"cow-face","🐂":"ox","🐃":"water-buffalo","🐄":"cow","🐷":"pig-face","🐖":"pig","🐗":"boar","🐽":"pig-nose","🐏":"ram","🐑":"ewe","🐐":"goat","🐪":"camel","🐫":"two-hump-camel","🦙":"llama","🦒":"giraffe","🐘":"elephant","🦣":"mammoth","🦏":"rhinoceros","🦛":"hippopotamus","🐭":"mouse-face","🐁":"mouse","🐀":"rat","🐹":"hamster","🐰":"rabbit-face","🐇":"rabbit","🐿️":"chipmunk","🦫":"beaver","🦔":"hedgehog","🦇":"bat","🐻":"bear","🐻❄️":"polar-bear","🐨":"koala","🐼":"panda","🦥":"sloth","🦦":"otter","🦨":"skunk","🦘":"kangaroo","🦡":"badger","🐾":"paw-prints","🦃":"turkey","🐔":"chicken","🐓":"rooster","🐣":"hatching-chick","🐤":"baby-chick","🐥":"front-facing-baby-chick","🐦":"bird","🐧":"penguin","🕊️":"dove","🦅":"eagle","🦆":"duck","🦢":"swan","🦉":"owl","🦤":"dodo","🪶":"feather","🦩":"flamingo","🦚":"peacock","🦜":"parrot","🪽":"wing","🐦⬛":"black-bird","🪿":"goose","🐸":"frog","🐊":"crocodile","🐢":"turtle","🦎":"lizard","🐍":"snake","🐲":"dragon-face","🐉":"dragon","🦕":"sauropod","🦖":"t-rex","🐳":"spouting-whale","🐋":"whale","🐬":"dolphin","🦭":"seal","🐟":"fish","🐠":"tropical-fish","🐡":"blowfish","🦈":"shark","🐙":"octopus","🐚":"spiral-shell","🪸":"coral","🪼":"jellyfish","🐌":"snail","🦋":"butterfly","🐛":"bug","🐜":"ant","🐝":"honeybee","🪲":"beetle","🐞":"lady-beetle","🦗":"cricket","🪳":"cockroach","🕷️":"spider","🕸️":"spider-web","🦂":"scorpion","🦟":"mosquito","🪰":"fly","🪱":"worm","🦠":"microbe","💐":"bouquet","🌸":"cherry-blossom","💮":"white-flower","🪷":"lotus","🏵️":"rosette","🌹":"rose","🥀":"wilted-flower","🌺":"hibiscus","🌻":"sunflower","🌼":"blossom","🌷":"tulip","🪻":"hyacinth","🌱":"seedling","🪴":"potted-plant","🌲":"evergreen-tree","🌳":"deciduous-tree","🌴":"palm-tree","🌵":"cactus","🌾":"sheaf-of-rice","🌿":"herb","☘️":"shamrock","🍀":"four-leaf-clover","🍁":"maple-leaf","🍂":"fallen-leaf","🍃":"leaf-fluttering-in-wind","🪹":"empty-nest","🪺":"nest-with-eggs","🍄":"mushroom","🍇":"grapes","🍈":"melon","🍉":"watermelon","🍊":"tangerine","🍋":"lemon","🍌":"banana","🍍":"pineapple","🥭":"mango","🍎":"red-apple","🍏":"green-apple","🍐":"pear","🍑":"peach","🍒":"cherries","🍓":"strawberry","🫐":"blueberries","🥝":"kiwi-fruit","🍅":"tomato","🫒":"olive","🥥":"coconut","🥑":"avocado","🍆":"eggplant","🥔":"potato","🥕":"carrot","🌽":"ear-of-corn","🌶️":"hot-pepper","🫑":"bell-pepper","🥒":"cucumber","🥬":"leafy-green","🥦":"broccoli","🧄":"garlic","🧅":"onion","🥜":"peanuts","🫘":"beans","🌰":"chestnut","🫚":"ginger-root","🫛":"pea-pod","🍞":"bread","🥐":"croissant","🥖":"baguette-bread","🫓":"flatbread","🥨":"pretzel","🥯":"bagel","🥞":"pancakes","🧇":"waffle","🧀":"cheese-wedge","🍖":"meat-on-bone","🍗":"poultry-leg","🥩":"cut-of-meat","🥓":"bacon","🍔":"hamburger","🍟":"french-fries","🍕":"pizza","🌭":"hot-dog","🥪":"sandwich","🌮":"taco","🌯":"burrito","🫔":"tamale","🥙":"stuffed-flatbread","🧆":"falafel","🥚":"egg","🍳":"cooking","🥘":"shallow-pan-of-food","🍲":"pot-of-food","🫕":"fondue","🥣":"bowl-with-spoon","🥗":"green-salad","🍿":"popcorn","🧈":"butter","🧂":"salt","🥫":"canned-food","🍱":"bento-box","🍘":"rice-cracker","🍙":"rice-ball","🍚":"cooked-rice","🍛":"curry-rice","🍜":"steaming-bowl","🍝":"spaghetti","🍠":"roasted-sweet-potato","🍢":"oden","🍣":"sushi","🍤":"fried-shrimp","🍥":"fish-cake-with-swirl","🥮":"moon-cake","🍡":"dango","🥟":"dumpling","🥠":"fortune-cookie","🥡":"takeout-box","🦀":"crab","🦞":"lobster","🦐":"shrimp","🦑":"squid","🦪":"oyster","🍦":"soft-ice-cream","🍧":"shaved-ice","🍨":"ice-cream","🍩":"doughnut","🍪":"cookie","🎂":"birthday-cake","🍰":"shortcake","🧁":"cupcake","🥧":"pie","🍫":"chocolate-bar","🍬":"candy","🍭":"lollipop","🍮":"custard","🍯":"honey-pot","🍼":"baby-bottle","🥛":"glass-of-milk","☕":"hot-beverage","🫖":"teapot","🍵":"teacup-without-handle","🍶":"sake","🍾":"bottle-with-popping-cork","🍷":"wine-glass","🍸":"cocktail-glass","🍹":"tropical-drink","🍺":"beer-mug","🍻":"clinking-beer-mugs","🥂":"clinking-glasses","🥃":"tumbler-glass","🫗":"pouring-liquid","🥤":"cup-with-straw","🧋":"bubble-tea","🧃":"beverage-box","🧉":"mate","🧊":"ice","🥢":"chopsticks","🍽️":"fork-and-knife-with-plate","🍴":"fork-and-knife","🥄":"spoon","🔪":"kitchen-knife","🫙":"jar","🏺":"amphora","🌍":"globe-showing-europe-africa","🌎":"globe-showing-americas","🌏":"globe-showing-asia-australia","🌐":"globe-with-meridians","🗺️":"world-map","🗾":"map-of-japan","🧭":"compass","🏔️":"snow-capped-mountain","⛰️":"mountain","🌋":"volcano","🗻":"mount-fuji","🏕️":"camping","🏖️":"beach-with-umbrella","🏜️":"desert","🏝️":"desert-island","🏞️":"national-park","🏟️":"stadium","🏛️":"classical-building","🏗️":"building-construction","🧱":"brick","🪨":"rock","🪵":"wood","🛖":"hut","🏘️":"houses","🏚️":"derelict-house","🏠":"house","🏡":"house-with-garden","🏢":"office-building","🏣":"japanese-post-office","🏤":"post-office","🏥":"hospital","🏦":"bank","🏨":"hotel","🏩":"love-hotel","🏪":"convenience-store","🏫":"school","🏬":"department-store","🏭":"factory","🏯":"japanese-castle","🏰":"castle","💒":"wedding","🗼":"tokyo-tower","🗽":"statue-of-liberty","⛪":"church","🕌":"mosque","🛕":"hindu-temple","🕍":"synagogue","⛩️":"shinto-shrine","🕋":"kaaba","⛲":"fountain","⛺":"tent","🌁":"foggy","🌃":"night-with-stars","🏙️":"cityscape","🌄":"sunrise-over-mountains","🌅":"sunrise","🌆":"cityscape-at-dusk","🌇":"sunset","🌉":"bridge-at-night","♨️":"hot-springs","🎠":"carousel-horse","🛝":"playground-slide","🎡":"ferris-wheel","🎢":"roller-coaster","💈":"barber-pole","🎪":"circus-tent","🚂":"locomotive","🚃":"railway-car","🚄":"high-speed-train","🚅":"bullet-train","🚆":"train","🚇":"metro","🚈":"light-rail","🚉":"station","🚊":"tram","🚝":"monorail","🚞":"mountain-railway","🚋":"tram-car","🚌":"bus","🚍":"oncoming-bus","🚎":"trolleybus","🚐":"minibus","🚑":"ambulance","🚒":"fire-engine","🚓":"police-car","🚔":"oncoming-police-car","🚕":"taxi","🚖":"oncoming-taxi","🚗":"automobile","🚘":"oncoming-automobile","🚙":"sport-utility-vehicle","🛻":"pickup-truck","🚚":"delivery-truck","🚛":"articulated-lorry","🚜":"tractor","🏎️":"racing-car","🏍️":"motorcycle","🛵":"motor-scooter","🦽":"manual-wheelchair","🦼":"motorized-wheelchair","🛺":"auto-rickshaw","🚲":"bicycle","🛴":"kick-scooter","🛹":"skateboard","🛼":"roller-skate","🚏":"bus-stop","🛣️":"motorway","🛤️":"railway-track","🛢️":"oil-drum","⛽":"fuel-pump","🛞":"wheel","🚨":"police-car-light","🚥":"horizontal-traffic-light","🚦":"vertical-traffic-light","🛑":"stop-sign","🚧":"construction","⚓":"anchor","🛟":"ring-buoy","⛵":"sailboat","🛶":"canoe","🚤":"speedboat","🛳️":"passenger-ship","⛴️":"ferry","🛥️":"motor-boat","🚢":"ship","✈️":"airplane","🛩️":"small-airplane","🛫":"airplane-departure","🛬":"airplane-arrival","🪂":"parachute","💺":"seat","🚁":"helicopter","🚟":"suspension-railway","🚠":"mountain-cableway","🚡":"aerial-tramway","🛰️":"satellite","🚀":"rocket","🛸":"flying-saucer","🛎️":"bellhop-bell","🧳":"luggage","⌛":"hourglass-done","⏳":"hourglass-not-done","⌚":"watch","⏰":"alarm-clock","⏱️":"stopwatch","⏲️":"timer-clock","🕰️":"mantelpiece-clock","🕛":"twelve-o-clock","🕧":"twelve-thirty","🕐":"one-o-clock","🕜":"one-thirty","🕑":"two-o-clock","🕝":"two-thirty","🕒":"three-o-clock","🕞":"three-thirty","🕓":"four-o-clock","🕟":"four-thirty","🕔":"five-o-clock","🕠":"five-thirty","🕕":"six-o-clock","🕡":"six-thirty","🕖":"seven-o-clock","🕢":"seven-thirty","🕗":"eight-o-clock","🕣":"eight-thirty","🕘":"nine-o-clock","🕤":"nine-thirty","🕙":"ten-o-clock","🕥":"ten-thirty","🕚":"eleven-o-clock","🕦":"eleven-thirty","🌑":"new-moon","🌒":"waxing-crescent-moon","🌓":"first-quarter-moon","🌔":"waxing-gibbous-moon","🌕":"full-moon","🌖":"waning-gibbous-moon","🌗":"last-quarter-moon","🌘":"waning-crescent-moon","🌙":"crescent-moon","🌚":"new-moon-face","🌛":"first-quarter-moon-face","🌜":"last-quarter-moon-face","🌡️":"thermometer","☀️":"sun","🌝":"full-moon-face","🌞":"sun-with-face","🪐":"ringed-planet","⭐":"star","🌟":"glowing-star","🌠":"shooting-star","🌌":"milky-way","☁️":"cloud","⛅":"sun-behind-cloud","⛈️":"cloud-with-lightning-and-rain","🌤️":"sun-behind-small-cloud","🌥️":"sun-behind-large-cloud","🌦️":"sun-behind-rain-cloud","🌧️":"cloud-with-rain","🌨️":"cloud-with-snow","🌩️":"cloud-with-lightning","🌪️":"tornado","🌫️":"fog","🌬️":"wind-face","🌀":"cyclone","🌈":"rainbow","🌂":"closed-umbrella","☂️":"umbrella","☔":"umbrella-with-rain-drops","⛱️":"umbrella-on-ground","⚡":"high-voltage","❄️":"snowflake","☃️":"snowman","⛄":"snowman-without-snow","☄️":"comet","🔥":"fire","💧":"droplet","🌊":"water-wave","🎃":"jack-o-lantern","🎄":"christmas-tree","🎆":"fireworks","🎇":"sparkler","🧨":"firecracker","✨":"sparkles","🎈":"balloon","🎉":"party-popper","🎊":"confetti-ball","🎋":"tanabata-tree","🎍":"pine-decoration","🎎":"japanese-dolls","🎏":"carp-streamer","🎐":"wind-chime","🎑":"moon-viewing-ceremony","🧧":"red-envelope","🎀":"ribbon","🎁":"wrapped-gift","🎗️":"reminder-ribbon","🎟️":"admission-tickets","🎫":"ticket","🎖️":"military-medal","🏆":"trophy","🏅":"sports-medal","🥇":"1st-place-medal","🥈":"2nd-place-medal","🥉":"3rd-place-medal","⚽":"soccer-ball","⚾":"baseball","🥎":"softball","🏀":"basketball","🏐":"volleyball","🏈":"american-football","🏉":"rugby-football","🎾":"tennis","🥏":"flying-disc","🎳":"bowling","🏏":"cricket-game","🏑":"field-hockey","🏒":"ice-hockey","🥍":"lacrosse","🏓":"ping-pong","🏸":"badminton","🥊":"boxing-glove","🥋":"martial-arts-uniform","🥅":"goal-net","⛳":"flag-in-hole","⛸️":"ice-skate","🎣":"fishing-pole","🤿":"diving-mask","🎽":"running-shirt","🎿":"skis","🛷":"sled","🥌":"curling-stone","🎯":"bullseye","🪀":"yo-yo","🪁":"kite","🔫":"water-pistol","🎱":"pool-8-ball","🔮":"crystal-ball","🪄":"magic-wand","🎮":"video-game","🕹️":"joystick","🎰":"slot-machine","🎲":"game-die","🧩":"puzzle-piece","🧸":"teddy-bear","🪅":"pinata","🪩":"mirror-ball","🪆":"nesting-dolls","♠️":"spade-suit","♥️":"heart-suit","♦️":"diamond-suit","♣️":"club-suit","♟️":"chess-pawn","🃏":"joker","🀄":"mahjong-red-dragon","🎴":"flower-playing-cards","🎭":"performing-arts","🖼️":"framed-picture","🎨":"artist-palette","🧵":"thread","🪡":"sewing-needle","🧶":"yarn","🪢":"knot","👓":"glasses","🕶️":"sunglasses","🥽":"goggles","🥼":"lab-coat","🦺":"safety-vest","👔":"necktie","👕":"t-shirt","👖":"jeans","🧣":"scarf","🧤":"gloves","🧥":"coat","🧦":"socks","👗":"dress","👘":"kimono","🥻":"sari","🩱":"one-piece-swimsuit","🩲":"briefs","🩳":"shorts","👙":"bikini","👚":"woman-s-clothes","🪭":"folding-hand-fan","👛":"purse","👜":"handbag","👝":"clutch-bag","🛍️":"shopping-bags","🎒":"backpack","🩴":"thong-sandal","👞":"man-s-shoe","👟":"running-shoe","🥾":"hiking-boot","🥿":"flat-shoe","👠":"high-heeled-shoe","👡":"woman-s-sandal","🩰":"ballet-shoes","👢":"woman-s-boot","🪮":"hair-pick","👑":"crown","👒":"woman-s-hat","🎩":"top-hat","🎓":"graduation-cap","🧢":"billed-cap","🪖":"military-helmet","⛑️":"rescue-worker-s-helmet","📿":"prayer-beads","💄":"lipstick","💍":"ring","💎":"gem-stone","🔇":"muted-speaker","🔈":"speaker-low-volume","🔉":"speaker-medium-volume","🔊":"speaker-high-volume","📢":"loudspeaker","📣":"megaphone","📯":"postal-horn","🔔":"bell","🔕":"bell-with-slash","🎼":"musical-score","🎵":"musical-note","🎶":"musical-notes","🎙️":"studio-microphone","🎚️":"level-slider","🎛️":"control-knobs","🎤":"microphone","🎧":"headphone","📻":"radio","🎷":"saxophone","🪗":"accordion","🎸":"guitar","🎹":"musical-keyboard","🎺":"trumpet","🎻":"violin","🪕":"banjo","🥁":"drum","🪘":"long-drum","🪇":"maracas","🪈":"flute","📱":"mobile-phone","📲":"mobile-phone-with-arrow","☎️":"telephone","📞":"telephone-receiver","📟":"pager","📠":"fax-machine","🔋":"battery","🪫":"low-battery","🔌":"electric-plug","💻":"laptop","🖥️":"desktop-computer","🖨️":"printer","⌨️":"keyboard","🖱️":"computer-mouse","🖲️":"trackball","💽":"computer-disk","💾":"floppy-disk","💿":"optical-disk","📀":"dvd","🧮":"abacus","🎥":"movie-camera","🎞️":"film-frames","📽️":"film-projector","🎬":"clapper-board","📺":"television","📷":"camera","📸":"camera-with-flash","📹":"video-camera","📼":"videocassette","🔍":"magnifying-glass-tilted-left","🔎":"magnifying-glass-tilted-right","🕯️":"candle","💡":"light-bulb","🔦":"flashlight","🏮":"red-paper-lantern","🪔":"diya-lamp","📔":"notebook-with-decorative-cover","📕":"closed-book","📖":"open-book","📗":"green-book","📘":"blue-book","📙":"orange-book","📚":"books","📓":"notebook","📒":"ledger","📃":"page-with-curl","📜":"scroll","📄":"page-facing-up","📰":"newspaper","🗞️":"rolled-up-newspaper","📑":"bookmark-tabs","🔖":"bookmark","🏷️":"label","💰":"money-bag","🪙":"coin","💴":"yen-banknote","💵":"dollar-banknote","💶":"euro-banknote","💷":"pound-banknote","💸":"money-with-wings","💳":"credit-card","🧾":"receipt","💹":"chart-increasing-with-yen","✉️":"envelope","📧":"e-mail","📨":"incoming-envelope","📩":"envelope-with-arrow","📤":"outbox-tray","📥":"inbox-tray","📦":"package","📫":"closed-mailbox-with-raised-flag","📪":"closed-mailbox-with-lowered-flag","📬":"open-mailbox-with-raised-flag","📭":"open-mailbox-with-lowered-flag","📮":"postbox","🗳️":"ballot-box-with-ballot","✏️":"pencil","✒️":"black-nib","🖋️":"fountain-pen","🖊️":"pen","🖌️":"paintbrush","🖍️":"crayon","📝":"memo","💼":"briefcase","📁":"file-folder","📂":"open-file-folder","🗂️":"card-index-dividers","📅":"calendar","📆":"tear-off-calendar","🗒️":"spiral-notepad","🗓️":"spiral-calendar","📇":"card-index","📈":"chart-increasing","📉":"chart-decreasing","📊":"bar-chart","📋":"clipboard","📌":"pushpin","📍":"round-pushpin","📎":"paperclip","🖇️":"linked-paperclips","📏":"straight-ruler","📐":"triangular-ruler","✂️":"scissors","🗃️":"card-file-box","🗄️":"file-cabinet","🗑️":"wastebasket","🔒":"locked","🔓":"unlocked","🔏":"locked-with-pen","🔐":"locked-with-key","🔑":"key","🗝️":"old-key","🔨":"hammer","🪓":"axe","⛏️":"pick","⚒️":"hammer-and-pick","🛠️":"hammer-and-wrench","🗡️":"dagger","⚔️":"crossed-swords","💣":"bomb","🪃":"boomerang","🏹":"bow-and-arrow","🛡️":"shield","🪚":"carpentry-saw","🔧":"wrench","🪛":"screwdriver","🔩":"nut-and-bolt","⚙️":"gear","🗜️":"clamp","⚖️":"balance-scale","🦯":"white-cane","🔗":"link","⛓️":"chains","🪝":"hook","🧰":"toolbox","🧲":"magnet","🪜":"ladder","⚗️":"alembic","🧪":"test-tube","🧫":"petri-dish","🧬":"dna","🔬":"microscope","🔭":"telescope","📡":"satellite-antenna","💉":"syringe","🩸":"drop-of-blood","💊":"pill","🩹":"adhesive-bandage","🩼":"crutch","🩺":"stethoscope","🩻":"x-ray","🚪":"door","🛗":"elevator","🪞":"mirror","🪟":"window","🛏️":"bed","🛋️":"couch-and-lamp","🪑":"chair","🚽":"toilet","🪠":"plunger","🚿":"shower","🛁":"bathtub","🪤":"mouse-trap","🪒":"razor","🧴":"lotion-bottle","🧷":"safety-pin","🧹":"broom","🧺":"basket","🧻":"roll-of-paper","🪣":"bucket","🧼":"soap","🫧":"bubbles","🪥":"toothbrush","🧽":"sponge","🧯":"fire-extinguisher","🛒":"shopping-cart","🚬":"cigarette","⚰️":"coffin","🪦":"headstone","⚱️":"funeral-urn","🧿":"nazar-amulet","🪬":"hamsa","🗿":"moai","🪧":"placard","🪪":"identification-card","🏧":"atm-sign","🚮":"litter-in-bin-sign","🚰":"potable-water","♿":"wheelchair-symbol","🚹":"men-s-room","🚺":"women-s-room","🚻":"restroom","🚼":"baby-symbol","🚾":"water-closet","🛂":"passport-control","🛃":"customs","🛄":"baggage-claim","🛅":"left-luggage","⚠️":"warning","🚸":"children-crossing","⛔":"no-entry","🚫":"prohibited","🚳":"no-bicycles","🚭":"no-smoking","🚯":"no-littering","🚱":"non-potable-water","🚷":"no-pedestrians","📵":"no-mobile-phones","🔞":"no-one-under-eighteen","☢️":"radioactive","☣️":"biohazard","⬆️":"up-arrow","↗️":"up-right-arrow","➡️":"right-arrow","↘️":"down-right-arrow","⬇️":"down-arrow","↙️":"down-left-arrow","⬅️":"left-arrow","↖️":"up-left-arrow","↕️":"up-down-arrow","↔️":"left-right-arrow","↩️":"right-arrow-curving-left","↪️":"left-arrow-curving-right","⤴️":"right-arrow-curving-up","⤵️":"right-arrow-curving-down","🔃":"clockwise-vertical-arrows","🔄":"counterclockwise-arrows-button","🔙":"back-arrow","🔚":"end-arrow","🔛":"on-arrow","🔜":"soon-arrow","🔝":"top-arrow","🛐":"place-of-worship","⚛️":"atom-symbol","🕉️":"om","✡️":"star-of-david","☸️":"wheel-of-dharma","☯️":"yin-yang","✝️":"latin-cross","☦️":"orthodox-cross","☪️":"star-and-crescent","☮️":"peace-symbol","🕎":"menorah","🔯":"dotted-six-pointed-star","🪯":"khanda","♈":"aries","♉":"taurus","♊":"gemini","♋":"cancer","♌":"leo","♍":"virgo","♎":"libra","♏":"scorpio","♐":"sagittarius","♑":"capricorn","♒":"aquarius","♓":"pisces","⛎":"ophiuchus","🔀":"shuffle-tracks-button","🔁":"repeat-button","🔂":"repeat-single-button","▶️":"play-button","⏩":"fast-forward-button","⏭️":"next-track-button","⏯️":"play-or-pause-button","◀️":"reverse-button","⏪":"fast-reverse-button","⏮️":"last-track-button","🔼":"upwards-button","⏫":"fast-up-button","🔽":"downwards-button","⏬":"fast-down-button","⏸️":"pause-button","⏹️":"stop-button","⏺️":"record-button","⏏️":"eject-button","🎦":"cinema","🔅":"dim-button","🔆":"bright-button","📶":"antenna-bars","🛜":"wireless","📳":"vibration-mode","📴":"mobile-phone-off","♀️":"female-sign","♂️":"male-sign","⚧️":"transgender-symbol","✖️":"multiply","➕":"plus","➖":"minus","➗":"divide","🟰":"heavy-equals-sign","♾️":"infinity","‼️":"double-exclamation-mark","⁉️":"exclamation-question-mark","❓":"red-question-mark","❔":"white-question-mark","❕":"white-exclamation-mark","❗":"red-exclamation-mark","〰️":"wavy-dash","💱":"currency-exchange","💲":"heavy-dollar-sign","⚕️":"medical-symbol","♻️":"recycling-symbol","⚜️":"fleur-de-lis","🔱":"trident-emblem","📛":"name-badge","🔰":"japanese-symbol-for-beginner","⭕":"hollow-red-circle","✅":"check-mark-button","☑️":"check-box-with-check","✔️":"check-mark","❌":"cross-mark","❎":"cross-mark-button","➰":"curly-loop","➿":"double-curly-loop","〽️":"part-alternation-mark","✳️":"eight-spoked-asterisk","✴️":"eight-pointed-star","❇️":"sparkle","©️":"copyright","®️":"registered","™️":"trade-mark","#️⃣":"keycap-number-sign","*️⃣":"keycap-asterisk","0️⃣":"keycap-0","1️⃣":"keycap-1","2️⃣":"keycap-2","3️⃣":"keycap-3","4️⃣":"keycap-4","5️⃣":"keycap-5","6️⃣":"keycap-6","7️⃣":"keycap-7","8️⃣":"keycap-8","9️⃣":"keycap-9","🔟":"keycap-10","🔠":"input-latin-uppercase","🔡":"input-latin-lowercase","🔢":"input-numbers","🔣":"input-symbols","🔤":"input-latin-letters","🅰️":"a-button","🆎":"ab-button","🅱️":"b-button","🆑":"cl-button","🆒":"cool-button","🆓":"free-button","ℹ️":"information","🆔":"id-button","Ⓜ️":"circled-m","🆕":"new-button","🆖":"ng-button","🅾️":"o-button","🆗":"ok-button","🅿️":"p-button","🆘":"sos-button","🆙":"up-button","🆚":"vs-button","🈁":"japanese-here-button","🈂️":"japanese-service-charge-button","🈷️":"japanese-monthly-amount-button","🈶":"japanese-not-free-of-charge-button","🈯":"japanese-reserved-button","🉐":"japanese-bargain-button","🈹":"japanese-discount-button","🈚":"japanese-free-of-charge-button","🈲":"japanese-prohibited-button","🉑":"japanese-acceptable-button","🈸":"japanese-application-button","🈴":"japanese-passing-grade-button","🈳":"japanese-vacancy-button","㊗️":"japanese-congratulations-button","㊙️":"japanese-secret-button","🈺":"japanese-open-for-business-button","🈵":"japanese-no-vacancy-button","🔴":"red-circle","🟠":"orange-circle","🟡":"yellow-circle","🟢":"green-circle","🔵":"blue-circle","🟣":"purple-circle","🟤":"brown-circle","⚫":"black-circle","⚪":"white-circle","🟥":"red-square","🟧":"orange-square","🟨":"yellow-square","🟩":"green-square","🟦":"blue-square","🟪":"purple-square","🟫":"brown-square","⬛":"black-large-square","⬜":"white-large-square","◼️":"black-medium-square","◻️":"white-medium-square","◾":"black-medium-small-square","◽":"white-medium-small-square","▪️":"black-small-square","▫️":"white-small-square","🔶":"large-orange-diamond","🔷":"large-blue-diamond","🔸":"small-orange-diamond","🔹":"small-blue-diamond","🔺":"red-triangle-pointed-up","🔻":"red-triangle-pointed-down","💠":"diamond-with-a-dot","🔘":"radio-button","🔳":"white-square-button","🔲":"black-square-button","🏁":"chequered-flag","🚩":"triangular-flag","🎌":"crossed-flags","🏴":"black-flag","🏳️":"white-flag","🏳️🌈":"rainbow-flag","🏳️⚧️":"transgender-flag","🏴☠️":"pirate-flag","🇦🇨":"flag-ascension-island","🇦🇩":"flag-andorra","🇦🇪":"flag-united-arab-emirates","🇦🇫":"flag-afghanistan","🇦🇬":"flag-antigua-barbuda","🇦🇮":"flag-anguilla","🇦🇱":"flag-albania","🇦🇲":"flag-armenia","🇦🇴":"flag-angola","🇦🇶":"flag-antarctica","🇦🇷":"flag-argentina","🇦🇸":"flag-american-samoa","🇦🇹":"flag-austria","🇦🇺":"flag-australia","🇦🇼":"flag-aruba","🇦🇽":"flag-aland-islands","🇦🇿":"flag-azerbaijan","🇧🇦":"flag-bosnia-herzegovina","🇧🇧":"flag-barbados","🇧🇩":"flag-bangladesh","🇧🇪":"flag-belgium","🇧🇫":"flag-burkina-faso","🇧🇬":"flag-bulgaria","🇧🇭":"flag-bahrain","🇧🇮":"flag-burundi","🇧🇯":"flag-benin","🇧🇱":"flag-st-barthelemy","🇧🇲":"flag-bermuda","🇧🇳":"flag-brunei","🇧🇴":"flag-bolivia","🇧🇶":"flag-caribbean-netherlands","🇧🇷":"flag-brazil","🇧🇸":"flag-bahamas","🇧🇹":"flag-bhutan","🇧🇻":"flag-bouvet-island","🇧🇼":"flag-botswana","🇧🇾":"flag-belarus","🇧🇿":"flag-belize","🇨🇦":"flag-canada","🇨🇨":"flag-cocos-islands","🇨🇩":"flag-congo-kinshasa","🇨🇫":"flag-central-african-republic","🇨🇬":"flag-congo-brazzaville","🇨🇭":"flag-switzerland","🇨🇮":"flag-cote-d-ivoire","🇨🇰":"flag-cook-islands","🇨🇱":"flag-chile","🇨🇲":"flag-cameroon","🇨🇳":"flag-china","🇨🇴":"flag-colombia","🇨🇵":"flag-clipperton-island","🇨🇷":"flag-costa-rica","🇨🇺":"flag-cuba","🇨🇻":"flag-cape-verde","🇨🇼":"flag-curacao","🇨🇽":"flag-christmas-island","🇨🇾":"flag-cyprus","🇨🇿":"flag-czechia","🇩🇪":"flag-germany","🇩🇬":"flag-diego-garcia","🇩🇯":"flag-djibouti","🇩🇰":"flag-denmark","🇩🇲":"flag-dominica","🇩🇴":"flag-dominican-republic","🇩🇿":"flag-algeria","🇪🇦":"flag-ceuta-melilla","🇪🇨":"flag-ecuador","🇪🇪":"flag-estonia","🇪🇬":"flag-egypt","🇪🇭":"flag-western-sahara","🇪🇷":"flag-eritrea","🇪🇸":"flag-spain","🇪🇹":"flag-ethiopia","🇪🇺":"flag-european-union","🇫🇮":"flag-finland","🇫🇯":"flag-fiji","🇫🇰":"flag-falkland-islands","🇫🇲":"flag-micronesia","🇫🇴":"flag-faroe-islands","🇫🇷":"flag-france","🇬🇦":"flag-gabon","🇬🇧":"flag-united-kingdom","🇬🇩":"flag-grenada","🇬🇪":"flag-georgia","🇬🇫":"flag-french-guiana","🇬🇬":"flag-guernsey","🇬🇭":"flag-ghana","🇬🇮":"flag-gibraltar","🇬🇱":"flag-greenland","🇬🇲":"flag-gambia","🇬🇳":"flag-guinea","🇬🇵":"flag-guadeloupe","🇬🇶":"flag-equatorial-guinea","🇬🇷":"flag-greece","🇬🇸":"flag-south-georgia-south-sandwich-islands","🇬🇹":"flag-guatemala","🇬🇺":"flag-guam","🇬🇼":"flag-guinea-bissau","🇬🇾":"flag-guyana","🇭🇰":"flag-hong-kong-sar-china","🇭🇲":"flag-heard-mcdonald-islands","🇭🇳":"flag-honduras","🇭🇷":"flag-croatia","🇭🇹":"flag-haiti","🇭🇺":"flag-hungary","🇮🇨":"flag-canary-islands","🇮🇩":"flag-indonesia","🇮🇪":"flag-ireland","🇮🇱":"flag-israel","🇮🇲":"flag-isle-of-man","🇮🇳":"flag-india","🇮🇴":"flag-british-indian-ocean-territory","🇮🇶":"flag-iraq","🇮🇷":"flag-iran","🇮🇸":"flag-iceland","🇮🇹":"flag-italy","🇯🇪":"flag-jersey","🇯🇲":"flag-jamaica","🇯🇴":"flag-jordan","🇯🇵":"flag-japan","🇰🇪":"flag-kenya","🇰🇬":"flag-kyrgyzstan","🇰🇭":"flag-cambodia","🇰🇮":"flag-kiribati","🇰🇲":"flag-comoros","🇰🇳":"flag-st-kitts-nevis","🇰🇵":"flag-north-korea","🇰🇷":"flag-south-korea","🇰🇼":"flag-kuwait","🇰🇾":"flag-cayman-islands","🇰🇿":"flag-kazakhstan","🇱🇦":"flag-laos","🇱🇧":"flag-lebanon","🇱🇨":"flag-st-lucia","🇱🇮":"flag-liechtenstein","🇱🇰":"flag-sri-lanka","🇱🇷":"flag-liberia","🇱🇸":"flag-lesotho","🇱🇹":"flag-lithuania","🇱🇺":"flag-luxembourg","🇱🇻":"flag-latvia","🇱🇾":"flag-libya","🇲🇦":"flag-morocco","🇲🇨":"flag-monaco","🇲🇩":"flag-moldova","🇲🇪":"flag-montenegro","🇲🇫":"flag-st-martin","🇲🇬":"flag-madagascar","🇲🇭":"flag-marshall-islands","🇲🇰":"flag-north-macedonia","🇲🇱":"flag-mali","🇲🇲":"flag-myanmar","🇲🇳":"flag-mongolia","🇲🇴":"flag-macao-sar-china","🇲🇵":"flag-northern-mariana-islands","🇲🇶":"flag-martinique","🇲🇷":"flag-mauritania","🇲🇸":"flag-montserrat","🇲🇹":"flag-malta","🇲🇺":"flag-mauritius","🇲🇻":"flag-maldives","🇲🇼":"flag-malawi","🇲🇽":"flag-mexico","🇲🇾":"flag-malaysia","🇲🇿":"flag-mozambique","🇳🇦":"flag-namibia","🇳🇨":"flag-new-caledonia","🇳🇪":"flag-niger","🇳🇫":"flag-norfolk-island","🇳🇬":"flag-nigeria","🇳🇮":"flag-nicaragua","🇳🇱":"flag-netherlands","🇳🇴":"flag-norway","🇳🇵":"flag-nepal","🇳🇷":"flag-nauru","🇳🇺":"flag-niue","🇳🇿":"flag-new-zealand","🇴🇲":"flag-oman","🇵🇦":"flag-panama","🇵🇪":"flag-peru","🇵🇫":"flag-french-polynesia","🇵🇬":"flag-papua-new-guinea","🇵🇭":"flag-philippines","🇵🇰":"flag-pakistan","🇵🇱":"flag-poland","🇵🇲":"flag-st-pierre-miquelon","🇵🇳":"flag-pitcairn-islands","🇵🇷":"flag-puerto-rico","🇵🇸":"flag-palestinian-territories","🇵🇹":"flag-portugal","🇵🇼":"flag-palau","🇵🇾":"flag-paraguay","🇶🇦":"flag-qatar","🇷🇪":"flag-reunion","🇷🇴":"flag-romania","🇷🇸":"flag-serbia","🇷🇺":"flag-russia","🇷🇼":"flag-rwanda","🇸🇦":"flag-saudi-arabia","🇸🇧":"flag-solomon-islands","🇸🇨":"flag-seychelles","🇸🇩":"flag-sudan","🇸🇪":"flag-sweden","🇸🇬":"flag-singapore","🇸🇭":"flag-st-helena","🇸🇮":"flag-slovenia","🇸🇯":"flag-svalbard-jan-mayen","🇸🇰":"flag-slovakia","🇸🇱":"flag-sierra-leone","🇸🇲":"flag-san-marino","🇸🇳":"flag-senegal","🇸🇴":"flag-somalia","🇸🇷":"flag-suriname","🇸🇸":"flag-south-sudan","🇸🇹":"flag-sao-tome-principe","🇸🇻":"flag-el-salvador","🇸🇽":"flag-sint-maarten","🇸🇾":"flag-syria","🇸🇿":"flag-eswatini","🇹🇦":"flag-tristan-da-cunha","🇹🇨":"flag-turks-caicos-islands","🇹🇩":"flag-chad","🇹🇫":"flag-french-southern-territories","🇹🇬":"flag-togo","🇹🇭":"flag-thailand","🇹🇯":"flag-tajikistan","🇹🇰":"flag-tokelau","🇹🇱":"flag-timor-leste","🇹🇲":"flag-turkmenistan","🇹🇳":"flag-tunisia","🇹🇴":"flag-tonga","🇹🇷":"flag-turkey","🇹🇹":"flag-trinidad-tobago","🇹🇻":"flag-tuvalu","🇹🇼":"flag-taiwan","🇹🇿":"flag-tanzania","🇺🇦":"flag-ukraine","🇺🇬":"flag-uganda","🇺🇲":"flag-u-s-outlying-islands","🇺🇳":"flag-united-nations","🇺🇸":"flag-united-states","🇺🇾":"flag-uruguay","🇺🇿":"flag-uzbekistan","🇻🇦":"flag-vatican-city","🇻🇨":"flag-st-vincent-grenadines","🇻🇪":"flag-venezuela","🇻🇬":"flag-british-virgin-islands","🇻🇮":"flag-u-s-virgin-islands","🇻🇳":"flag-vietnam","🇻🇺":"flag-vanuatu","🇼🇫":"flag-wallis-futuna","🇼🇸":"flag-samoa","🇽🇰":"flag-kosovo","🇾🇪":"flag-yemen","🇾🇹":"flag-mayotte","🇿🇦":"flag-south-africa","🇿🇲":"flag-zambia","🇿🇼":"flag-zimbabwe","🏴":"flag-england","🏴":"flag-scotland","🏴":"flag-wales"};var jU,PU,_U=function(e){var t,n=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;return null===(t=e.match(n))||void 0===t?void 0:t[0]},NU=BB((function(e){var t=e.css,n=e.token;return{container:t(jU||(jU=hf(["\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n line-height: 1;\n text-align: center;\n "]))),loading:t(PU||(PU=hf(["\n position: absolute;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 100%;\n\n color: ",";\n "])),n.colorText)}}));function IU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IU(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const FU=B.memo((function(e){var t=e.emoji,n=e.className,r=e.style,o=e.type,i=void 0===o?"3d":o,a=e.size,l=void 0===a?40:a,s=CU(),c=gg(B.useState(!1),2),u=c[0],d=c[1],f=NU(),p=f.cx,h=f.styles,g=B.useMemo((function(){if("pure"!==i){var e=function(e){var t=_U(e);if(t)return null==$U?void 0:$U[t]}(t);if(e)switch(i){case"modern":case"flat":case"high-contrast":return s({path:"icons/".concat(i,"/").concat(RW(e),".svg"),pkg:"fluentui-emoji",version:"0.0.8"});case"anim":return s({path:"assets/".concat(e,".webp"),pkg:"@lobehub/assets-emoji-anim",version:"1.0.0"});case"3d":return s({path:"assets/".concat(e,".webp"),pkg:"@lobehub/assets-emoji",version:"1.3.0"})}}}),[i,t]);return"pure"===i||!g||u?Q.jsx("div",{className:p(h.container,n),style:TU({fontSize:.9*l,height:l,width:l},r),children:t}):Q.jsx("div",{className:p(h.container,n),style:TU({height:l,width:l},r),children:Q.jsx(DU,{alt:t,height:l,onError:function(){return d(!0)},src:g,width:l})})}));function AU(e,t,n){return AU=Yb()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&qb(o,n.prototype),o},AU.apply(null,arguments)}function RU(e){var t="function"==typeof Map?new Map:void 0;return RU=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(GY){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return AU(e,arguments,Kb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),qb(n,e)},RU(e)}var MU=function(e){var t,n;function r(t){return Qb(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,qb(t,n),r}(RU(Error));function LU(e){return Math.round(255*e)}function zU(e,t,n){return LU(e)+","+LU(t)+","+LU(n)}function BU(e,t,n,r){if(void 0===r&&(r=zU),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,s=0,c=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,c=a):o>=3&&o<4?(s=a,c=i):o>=4&&o<5?(l=a,c=i):o>=5&&o<6&&(l=i,c=a);var u=n-i/2;return r(l+u,s+u,c+u)}var HU={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",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",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var WU=/^#[a-fA-F0-9]{6}$/,UU=/^#[a-fA-F0-9]{8}$/,VU=/^#[a-fA-F0-9]{3}$/,GU=/^#[a-fA-F0-9]{4}$/,qU=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,XU=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,KU=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,YU=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function QU(e){if("string"!=typeof e)throw new MU(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return HU[t]?"#"+HU[t]:e}(e);if(t.match(WU))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(UU)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(VU))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(GU)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=qU.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=XU.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=KU.exec(t);if(a){var l="rgb("+BU(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=qU.exec(l);if(!s)throw new MU(4,t,l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=YU.exec(t.substring(0,50));if(c){var u="rgb("+BU(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=qU.exec(u);if(!d)throw new MU(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new MU(5)}function JU(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),l=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s=i-a,c=l>.5?s/(2-i-a):s/(i+a);switch(i){case n:t=(r-o)/s+(r<o?6:0);break;case r:t=(o-n)/s+2;break;default:t=(n-r)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:c,lightness:l,alpha:e.alpha}:{hue:t,saturation:c,lightness:l}}(QU(e))}var ZU=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function eV(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function tV(e){return eV(Math.round(255*e))}function nV(e,t,n){return ZU("#"+tV(e)+tV(t)+tV(n))}function rV(e,t,n){return BU(e,t,n,nV)}function oV(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return ZU("#"+eV(e)+eV(t)+eV(n));if("object"==typeof e&&void 0===t&&void 0===n)return ZU("#"+eV(e.red)+eV(e.green)+eV(e.blue));throw new MU(6)}function iV(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=QU(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?oV(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?oV(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new MU(7)}var aV=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},lV=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},sV=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},cV=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function uV(e){if("object"!=typeof e)throw new MU(8);if(lV(e))return iV(e);if(aV(e))return oV(e);if(cV(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?rV(e,t,n):"rgba("+BU(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?rV(e.hue,e.saturation,e.lightness):"rgba("+BU(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new MU(2)}(e);if(sV(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return rV(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return rV(e.hue,e.saturation,e.lightness);throw new MU(1)}(e);throw new MU(8)}function dV(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):dV(e,t,r)}}function fV(e){return dV(e,e.length,[])}function pV(e,t){if("transparent"===t)return t;var n=JU(t);return uV(Jp({},n,{hue:n.hue+parseFloat(e)}))}var hV=fV(pV);function gV(e){if("transparent"===e)return 0;var t=QU(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],i=n[2];return parseFloat((.2126*r+.7152*o+.0722*i).toFixed(3))}function mV(e,t){if("transparent"===t)return t;var n,r,o,i=JU(t);return uV(Jp({},i,{lightness:(n=0,r=1,o=i.lightness+parseFloat(e),Math.max(n,Math.min(r,o)))}))}var bV,vV=fV(mV),yV="#000",wV="#fff";function xV(e,t,n,r){void 0===t&&(t=yV),void 0===n&&(n=wV),void 0===r&&(r=!0);var o,i,a,l=gV(e)>.179,s=l?t:n;return!r||(o=s,i=gV(e),a=gV(o),parseFloat((i>a?(i+.05)/(a+.05):(a+.05)/(i+.05)).toFixed(2))>=4.5)?s:l?yV:wV}var SV=BB((function(e,t){var n=e.css,r=e.token,o=e.prefixCls,i=t.background,a=t.size,l=t.isEmoji,s=null!=i?i:r.colorBgContainer,c=xV(s);return{avatar:n(bV||(bV=hf(["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n background: ",";\n border: 1px solid ",";\n\n > .","-avatar-string {\n font-size: ","px;\n font-weight: 700;\n line-height: 1 !important;\n color: ",";\n }\n\n > * {\n cursor: pointer;\n }\n "])),s,i?"transparent":r.colorSplit,o,a*(l?.7:.5),c)}})),kV=["className","avatar","title","animation","size","shape","background","style"];function CV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CV(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const OV=B.memo((function(e){var t=e.className,n=e.avatar,r=e.title,o=e.animation,i=e.size,a=void 0===i?40:i,l=e.shape,s=void 0===l?"circle":l,c=e.background,u=void 0===c?"rgba(0,0,0,0)":c,d=e.style,f=Od(e,kV),p=Boolean(n&&["/","http","data:"].some((function(e){return n.startsWith(e)}))),h=B.useMemo((function(){return n&&!p&&_U(n)}),[n]),g=SV({background:u,isEmoji:Boolean(h),size:a}),m=g.styles,b=g.cx,v=String(p?r:n),y=EV({className:b(m.avatar,t),shape:s,size:a,style:null!=f&&f.onClick?d:EV({cursor:"default"},d)},f);return p?Q.jsx(fN,EV({src:n},y)):Q.jsx(fN,EV(EV({},y),{},{children:h?Q.jsx(FU,{emoji:h,size:.8*a,type:o?"anim":"3d"}):null==v?void 0:v.toUpperCase().slice(0,2)}))}));function DV(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var $V=function(e){return"function"==typeof e};function jV(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function PV(e){var t=B.useRef(e);return t.current=e,t}const _V=function(e){var t=PV(e);B.useEffect((function(){return function(){t.current()}}),[])};var NV=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},IV="object"==typeof t&&t&&t.Object===Object&&t,TV=IV,FV="object"==typeof self&&self&&self.Object===Object&&self,AV=TV||FV||Function("return this")(),RV=AV.Symbol,MV=RV,LV=Object.prototype,zV=LV.hasOwnProperty,BV=LV.toString,HV=MV?MV.toStringTag:void 0;var WV=function(e){var t=zV.call(e,HV),n=e[HV];try{e[HV]=void 0;var r=!0}catch(GY){}var o=BV.call(e);return r&&(t?e[HV]=n:delete e[HV]),o},UV=Object.prototype.toString;var VV=WV,GV=function(e){return UV.call(e)},qV=RV?RV.toStringTag:void 0;var XV=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":qV&&qV in Object(e)?VV(e):GV(e)};var KV=function(e){return null!=e&&"object"==typeof e},YV=XV,QV=KV;var JV=function(e){return"symbol"==typeof e||QV(e)&&"[object Symbol]"==YV(e)};const ZV=!("undefined"==typeof window||!window.document||!window.document.createElement);function eG(e){void 0===e&&(e=!1);var t=DV(function(e,t){void 0===e&&(e=!1);var n=DV(B.useState(e),2),r=n[0],o=n[1];return[r,B.useMemo((function(){var n=void 0===t?!e:t;return{toggle:function(){return o((function(t){return t===e?n:e}))},set:function(e){return o(e)},setLeft:function(){return o(e)},setRight:function(){return o(n)}}}),[])]}(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set;return[n,B.useMemo((function(){return{toggle:o,set:function(e){return i(!!e)},setTrue:function(){return i(!0)},setFalse:function(){return i(!1)}}}),[])]}function tG(e,t){if(ZV)return e?$V(e)?e():"current"in e?e.current:e:t}const nG=function(e){return function(t,n,r){var o=B.useRef(!1),i=B.useRef([]),a=B.useRef([]),l=B.useRef();e((function(){var e,s=(Array.isArray(r)?r:[r]).map((function(e){return tG(e)}));if(!o.current)return o.current=!0,i.current=s,a.current=n,void(l.current=t());s.length===i.current.length&&jV(s,i.current)&&jV(n,a.current)||(null===(e=l.current)||void 0===e||e.call(l),i.current=s,a.current=n,l.current=t())})),_V((function(){var e;null===(e=l.current)||void 0===e||e.call(l),o.current=!1}))}};const rG=nG(B.useEffect);var oG=function(){this.__data__=[],this.size=0};var iG=function(e,t){return e===t||e!=e&&t!=t},aG=iG;var lG=function(e,t){for(var n=e.length;n--;)if(aG(e[n][0],t))return n;return-1},sG=lG,cG=Array.prototype.splice;var uG=lG;var dG=lG;var fG=lG;var pG=oG,hG=function(e){var t=this.__data__,n=sG(t,e);return!(n<0)&&(n==t.length-1?t.pop():cG.call(t,n,1),--this.size,!0)},gG=function(e){var t=this.__data__,n=uG(t,e);return n<0?void 0:t[n][1]},mG=function(e){return dG(this.__data__,e)>-1},bG=function(e,t){var n=this.__data__,r=fG(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function vG(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vG.prototype.clear=pG,vG.prototype.delete=hG,vG.prototype.get=gG,vG.prototype.has=mG,vG.prototype.set=bG;var yG=vG,wG=yG;var xG=function(){this.__data__=new wG,this.size=0};var SG=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var kG=function(e){return this.__data__.get(e)};var CG=function(e){return this.__data__.has(e)},EG=XV,OG=NV;var DG,$G=function(e){if(!OG(e))return!1;var t=EG(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},jG=AV["__core-js_shared__"],PG=(DG=/[^.]+$/.exec(jG&&jG.keys&&jG.keys.IE_PROTO||""))?"Symbol(src)_1."+DG:"";var _G=function(e){return!!PG&&PG in e},NG=Function.prototype.toString;var IG=function(e){if(null!=e){try{return NG.call(e)}catch(GY){}try{return e+""}catch(GY){}}return""},TG=$G,FG=_G,AG=NV,RG=IG,MG=/^\[object .+?Constructor\]$/,LG=Function.prototype,zG=Object.prototype,BG=LG.toString,HG=zG.hasOwnProperty,WG=RegExp("^"+BG.call(HG).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var UG=function(e,t){return null==e?void 0:e[t]},VG=function(e){return!(!AG(e)||FG(e))&&(TG(e)?WG:MG).test(RG(e))},GG=UG;var qG=function(e,t){var n=GG(e,t);return VG(n)?n:void 0},XG=qG(AV,"Map"),KG=qG(Object,"create"),YG=KG;var QG=function(){this.__data__=YG?YG(null):{},this.size=0};var JG=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ZG=KG,eq=Object.prototype.hasOwnProperty;var tq=function(e){var t=this.__data__;if(ZG){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return eq.call(t,e)?t[e]:void 0},nq=KG,rq=Object.prototype.hasOwnProperty;var oq=KG;var iq=QG,aq=JG,lq=tq,sq=function(e){var t=this.__data__;return nq?void 0!==t[e]:rq.call(t,e)},cq=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=oq&&void 0===t?"__lodash_hash_undefined__":t,this};function uq(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}uq.prototype.clear=iq,uq.prototype.delete=aq,uq.prototype.get=lq,uq.prototype.has=sq,uq.prototype.set=cq;var dq=uq,fq=yG,pq=XG;var hq=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var gq=function(e,t){var n=e.__data__;return hq(t)?n["string"==typeof t?"string":"hash"]:n.map},mq=gq;var bq=gq;var vq=gq;var yq=gq;var wq=function(){this.size=0,this.__data__={hash:new dq,map:new(pq||fq),string:new dq}},xq=function(e){var t=mq(this,e).delete(e);return this.size-=t?1:0,t},Sq=function(e){return bq(this,e).get(e)},kq=function(e){return vq(this,e).has(e)},Cq=function(e,t){var n=yq(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Eq(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Eq.prototype.clear=wq,Eq.prototype.delete=xq,Eq.prototype.get=Sq,Eq.prototype.has=kq,Eq.prototype.set=Cq;var Oq=Eq,Dq=yG,$q=XG,jq=Oq;var Pq=yG,_q=xG,Nq=SG,Iq=kG,Tq=CG,Fq=function(e,t){var n=this.__data__;if(n instanceof Dq){var r=n.__data__;if(!$q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jq(r)}return n.set(e,t),this.size=n.size,this};function Aq(e){var t=this.__data__=new Pq(e);this.size=t.size}Aq.prototype.clear=_q,Aq.prototype.delete=Nq,Aq.prototype.get=Iq,Aq.prototype.has=Tq,Aq.prototype.set=Fq;var Rq=Aq;var Mq=Oq,Lq=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},zq=function(e){return this.__data__.has(e)};function Bq(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Mq;++t<n;)this.add(e[t])}Bq.prototype.add=Bq.prototype.push=Lq,Bq.prototype.has=zq;var Hq=Bq;var Wq=function(e,t){return e.has(t)},Uq=Hq,Vq=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Gq=Wq;var qq=function(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new Uq:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!Vq(t,(function(e,t){if(!Gq(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var Xq=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Kq=AV.Uint8Array,Yq=iG,Qq=qq,Jq=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Zq=Xq,eX=RV?RV.prototype:void 0,tX=eX?eX.valueOf:void 0;var nX=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Kq(e),new Kq(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Yq(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Jq;case"[object Set]":var s=1&r;if(l||(l=Zq),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Qq(l(e),l(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(tX)return tX.call(e)==tX.call(t)}return!1};var rX=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},oX=Array.isArray,iX=rX,aX=oX;var lX=function(e,t,n){var r=t(e);return aX(e)?r:iX(r,n(e))};var sX=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i},cX=function(){return[]},uX=Object.prototype.propertyIsEnumerable,dX=Object.getOwnPropertySymbols,fX=dX?function(e){return null==e?[]:(e=Object(e),sX(dX(e),(function(t){return uX.call(e,t)})))}:cX,pX=fX;var hX=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},gX=XV,mX=KV;var bX=function(e){return mX(e)&&"[object Arguments]"==gX(e)},vX=KV,yX=Object.prototype,wX=yX.hasOwnProperty,xX=yX.propertyIsEnumerable,SX=bX(function(){return arguments}())?bX:function(e){return vX(e)&&wX.call(e,"callee")&&!xX.call(e,"callee")},kX={exports:{}};var CX=function(){return!1};!function(e,t){var n=AV,r=CX,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}(kX,kX.exports);var EX=kX.exports,OX=/^(?:0|[1-9]\d*)$/;var DX=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&OX.test(e))&&e>-1&&e%1==0&&e<t};var $X=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},jX=XV,PX=$X,_X=KV,NX={};NX["[object Float32Array]"]=NX["[object Float64Array]"]=NX["[object Int8Array]"]=NX["[object Int16Array]"]=NX["[object Int32Array]"]=NX["[object Uint8Array]"]=NX["[object Uint8ClampedArray]"]=NX["[object Uint16Array]"]=NX["[object Uint32Array]"]=!0,NX["[object Arguments]"]=NX["[object Array]"]=NX["[object ArrayBuffer]"]=NX["[object Boolean]"]=NX["[object DataView]"]=NX["[object Date]"]=NX["[object Error]"]=NX["[object Function]"]=NX["[object Map]"]=NX["[object Number]"]=NX["[object Object]"]=NX["[object RegExp]"]=NX["[object Set]"]=NX["[object String]"]=NX["[object WeakMap]"]=!1;var IX=function(e){return _X(e)&&PX(e.length)&&!!NX[jX(e)]};var TX=function(e){return function(t){return e(t)}},FX={exports:{}};!function(e,t){var n=IV,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(GY){}}();e.exports=a}(FX,FX.exports);var AX=FX.exports,RX=IX,MX=TX,LX=AX&&AX.isTypedArray,zX=LX?MX(LX):RX,BX=hX,HX=SX,WX=oX,UX=EX,VX=DX,GX=zX,qX=Object.prototype.hasOwnProperty;var XX=function(e,t){var n=WX(e),r=!n&&HX(e),o=!n&&!r&&UX(e),i=!n&&!r&&!o&&GX(e),a=n||r||o||i,l=a?BX(e.length,String):[],s=l.length;for(var c in e)!t&&!qX.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||VX(c,s))||l.push(c);return l},KX=Object.prototype;var YX=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||KX)};var QX=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),JX=YX,ZX=QX,eK=Object.prototype.hasOwnProperty;var tK=function(e){if(!JX(e))return ZX(e);var t=[];for(var n in Object(e))eK.call(e,n)&&"constructor"!=n&&t.push(n);return t},nK=$G,rK=$X;var oK=XX,iK=tK,aK=function(e){return null!=e&&rK(e.length)&&!nK(e)};var lK=function(e){return aK(e)?oK(e):iK(e)},sK=lX,cK=pX,uK=lK;var dK=function(e){return sK(e,uK,cK)},fK=dK,pK=Object.prototype.hasOwnProperty;var hK=function(e,t,n,r,o,i){var a=1&n,l=fK(e),s=l.length;if(s!=fK(t).length&&!a)return!1;for(var c=s;c--;){var u=l[c];if(!(a?u in t:pK.call(t,u)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<s;){var g=e[u=l[c]],m=t[u];if(r)var b=a?r(m,g,u,t,e,i):r(g,m,u,e,t,i);if(!(void 0===b?g===m||o(g,m,n,r,i):b)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(p=!1)}return i.delete(e),i.delete(t),p},gK=qG(AV,"DataView"),mK=qG(AV,"Promise"),bK=qG(AV,"Set"),vK=gK,yK=XG,wK=mK,xK=bK,SK=qG(AV,"WeakMap"),kK=XV,CK=IG,EK="[object Map]",OK="[object Promise]",DK="[object Set]",$K="[object WeakMap]",jK="[object DataView]",PK=CK(vK),_K=CK(yK),NK=CK(wK),IK=CK(xK),TK=CK(SK),FK=kK;(vK&&FK(new vK(new ArrayBuffer(1)))!=jK||yK&&FK(new yK)!=EK||wK&&FK(wK.resolve())!=OK||xK&&FK(new xK)!=DK||SK&&FK(new SK)!=$K)&&(FK=function(e){var t=kK(e),n="[object Object]"==t?e.constructor:void 0,r=n?CK(n):"";if(r)switch(r){case PK:return jK;case _K:return EK;case NK:return OK;case IK:return DK;case TK:return $K}return t});var AK=Rq,RK=qq,MK=nX,LK=hK,zK=FK,BK=oX,HK=EX,WK=zX,UK="[object Arguments]",VK="[object Array]",GK="[object Object]",qK=Object.prototype.hasOwnProperty;var XK=function(e,t,n,r,o,i){var a=BK(e),l=BK(t),s=a?VK:zK(e),c=l?VK:zK(t),u=(s=s==UK?GK:s)==GK,d=(c=c==UK?GK:c)==GK,f=s==c;if(f&&HK(e)){if(!HK(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new AK),a||WK(e)?RK(e,t,n,r,o,i):MK(e,t,s,n,r,o,i);if(!(1&n)){var p=u&&qK.call(e,"__wrapped__"),h=d&&qK.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new AK),o(g,m,n,r,i)}}return!!f&&(i||(i=new AK),LK(e,t,n,r,o,i))},KK=XK,YK=KV;var QK=function e(t,n,r,o,i){return t===n||(null==t||null==n||!YK(t)&&!YK(n)?t!=t&&n!=n:KK(t,n,r,o,e,i))},JK=QK;var ZK=function(e,t){return JK(e,t)};function eY(e,t,n){void 0===n&&(n={});var r=PV(t);rG((function(){var t=tG(n.target,window);if(null==t?void 0:t.addEventListener){var o=function(e){return r.current(e)};return t.addEventListener(e,o,{capture:n.capture,once:n.once,passive:n.passive}),function(){t.removeEventListener(e,o,{capture:n.capture})}}}),[e,n.capture,n.once,n.passive],n.target)}function tY(e){var t=B.useRef(0),n=DV(B.useState(e),2),r=n[0],o=n[1],i=B.useCallback((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){o(e)}))}),[]);return _V((function(){cancelAnimationFrame(t.current)})),[r,i]}var nY=nG(B.useLayoutEffect);const rY=ZV?nY:rG;const oY=function(e,t){var n=function(e){var t=B.useRef(e);t.current=B.useMemo((function(){return e}),[e]);var n=B.useRef();return n.current||(n.current=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(this,e)}),n.current}(e),r=B.useRef(null),o=B.useCallback((function(){r.current&&clearTimeout(r.current)}),[]);return B.useEffect((function(){if(!("number"!=typeof t||t<0))return r.current=setTimeout(n,t),o}),[t]),o};var iY,aY,lY,sY,cY,uY=BB((function(e,t){var n=e.token,r=e.css,o=e.stylish,i=e.prefixCls;return{container:r(iY||(iY=hf(["\n cursor: pointer;\n width: ","px;\n height: ","px;\n border-radius: ","px;\n "])),n.controlHeight,n.controlHeight,n.borderRadius),drawer:r(aY||(aY=hf(["\n &.","-drawer-content {\n background: transparent;\n }\n\n .","-drawer-body {\n display: flex;\n flex-direction: column;\n }\n "])),i,i),drawerRoot:r(lY||(lY=hf(["\n top: ","px;\n\n :focus-visible {\n outline: none;\n }\n\n .","-drawer {\n &-mask {\n ",";\n background-color: ",";\n }\n\n &-content-wrapper {\n box-shadow: none;\n }\n }\n "])),t+1,i,o.blur,iV(n.colorBgLayout,.5)),fillRect:r(sY||(sY=hf(["\n flex: 1;\n width: 100%;\n border-top: none;\n "]))),menu:r(cY||(cY=hf(["\n background: transparent;\n border-inline-end: transparent !important;\n\n > .","-menu-item-only-child, .","-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .","-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .","-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .","-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .","-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .","-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .","-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),i,i,n.colorText,n.colorFill,i,i,n.colorText,i,n.colorFillSecondary,i,n.borderRadius,n.colorText,n.colorFillSecondary,i,n.colorFillSecondary,n.borderRadius,i,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),dY=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];function fY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fY(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const hY=B.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,i=e.setOpened,a=e.className,l=e.headerHeight,s=void 0===l?64:l,c=Od(e,dY),u=uY(s),d=u.cx,f=u.styles;return Q.jsxs(YW,pY(pY({className:d(f.container,a),onClick:function(){i(!o)}},c),{},{children:[Q.jsx(yH,{icon:o?df:Xd,size:"site"}),Q.jsxs(cM,{className:f.drawer,closeIcon:void 0,open:o,placement:"left",rootClassName:f.drawerRoot,styles:{body:{padding:0},header:{display:"none"}},width:"100vw",children:[Q.jsx(fT,{className:f.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),Q.jsx("div",{className:f.fillRect})]})]}))}));var gY={exports:{}};function mY(){}function bY(){}bY.resetWarningCache=mY;gY.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:bY,resetWarningCache:mY};return n.PropTypes=n,n}();var vY=gY.exports;const yY=n(vY);var wY=["content","className","placement","size"];function xY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xY(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const kY=B.memo((function(e){var t=e.content,n=e.className,r=e.placement,o=void 0===r?"right":r,i=e.size,a=void 0===i?"site":i,l=Od(e,wY),s=function(){var e=gg(B.useState(!1),2),t=e[0],n=e[1];B.useEffect((function(){if(t){var e=setTimeout((function(){n(!1)}),2e3);return function(){clearTimeout(e)}}}),[t]);var r=B.useCallback((function(){return n(!0)}),[]);return B.useMemo((function(){return{copied:t,setCopied:r}}),[t])}(),c=s.copied,u=s.setCopied;return Q.jsx(yH,SY(SY({},l),{},{className:n,glass:!0,icon:Md,onClick:function(){Zz(t),u()},placement:o,size:a,title:c?"✅ Success":"Copy"}))}));var CY,EY,OY=["icon","children","size"];function DY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DY(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jY=BB((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(CY||(CY=hf(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(EY||(EY=hf(["\n color: "," !important;\n background: ",";\n border: ","px;\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),r.colorTextSecondary,r.colorFillSecondary,r.borderRadius,r.colorText,r.colorFill))}}));const PY=B.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,i=Od(e,OY),a=jY(),l=a.styles,s=a.cx;return Q.jsx(Hz,$Y($Y({bordered:!1,className:s(l.tag,"small"===o&&l.small)},i),{},{children:Q.jsxs(fU,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))})),_Y={};let NY=null;async function IY(){return NY||(NY=function(e,t,n){if(!t||0===t.length)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map((e=>{if((e=function(e){return"/dev/"+e}(e))in _Y)return;_Y[e]=!0;const t=e.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(n)for(let n=r.length-1;n>=0;n--){const o=r[n];if(o.href===e&&(!t||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${e}"]${o}`))return;const i=document.createElement("link");return i.rel=t?"stylesheet":"modulepreload",t||(i.as="script",i.crossOrigin=""),i.href=e,document.head.appendChild(i),t?new Promise(((t,n)=>{i.addEventListener("load",t),i.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))}((()=>import("./onig.js")),__vite__mapDeps([])).then((e=>({data:e.default})))),NY}var TY={};var FY=Object.defineProperty,AY=(e,t,n)=>(((e,t,n)=>{t in e?FY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let RY=null;class MY{constructor(e){AY(this,"utf16Length"),AY(this,"utf8Length"),AY(this,"utf16Value"),AY(this,"utf8Value"),AY(this,"utf16OffsetToUtf8"),AY(this,"utf8OffsetToUtf16");const t=e.length,n=MY._utf8ByteLength(e),r=n!==t,o=r?new Uint32Array(t+1):null;r&&(o[t]=n);const i=r?new Uint32Array(n+1):null;r&&(i[n]=t);const a=new Uint8Array(n);let l=0;for(let s=0;s<t;s++){const n=e.charCodeAt(s);let c=n,u=!1;if(n>=55296&&n<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(o[s]=l,u&&(o[s+1]=l),c<=127?i[l+0]=s:c<=2047?(i[l+0]=s,i[l+1]=s):c<=65535?(i[l+0]=s,i[l+1]=s,i[l+2]=s):(i[l+0]=s,i[l+1]=s,i[l+2]=s,i[l+3]=s)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(1984&c)>>>6,a[l++]=128|(63&c)>>>0):c<=65535?(a[l++]=224|(61440&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0):(a[l++]=240|(1835008&c)>>>18,a[l++]=128|(258048&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const o=e.charCodeAt(n);let i=o,a=!1;if(o>=55296&&o<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(i=65536+(o-55296<<10)|t-56320,a=!0)}t+=i<=127?1:i<=2047?2:i<=65535?3:4,a&&n++}return t}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const LY=class e{constructor(t){if(AY(this,"id",++e.LAST_ID),AY(this,"_onigBinding"),AY(this,"content"),AY(this,"utf16Length"),AY(this,"utf8Length"),AY(this,"utf16OffsetToUtf8"),AY(this,"utf8OffsetToUtf16"),AY(this,"ptr"),!RY)throw new Error("Must invoke loadWasm first.");this._onigBinding=RY,this.content=t;const n=new MY(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=RY._omalloc(1e4)),e._sharedPtrInUse=!0,RY.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(RY)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}};AY(LY,"LAST_ID",0),AY(LY,"_sharedPtr",0),AY(LY,"_sharedPtrInUse",!1);let zY=LY;class BY{constructor(e){if(AY(this,"_onigBinding"),AY(this,"_ptr"),!RY)throw new Error("Must invoke loadWasm first.");const t=[],n=[];for(let a=0,l=e.length;a<l;a++){const r=new MY(e[a]);t[a]=r.createString(RY),n[a]=r.utf8Length}const r=RY._omalloc(4*e.length);RY.HEAPU32.set(t,r/4);const o=RY._omalloc(4*e.length);RY.HEAPU32.set(n,o/4);const i=RY._createOnigScanner(r,o,e.length);for(let a=0,l=e.length;a<l;a++)RY._ofree(t[a]);RY._ofree(o),RY._ofree(r),0===i&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(RY),this._onigBinding=RY,this._ptr=i}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=false,o=0;if("number"==typeof n?(8&n&&(r=!0),o=n):"boolean"==typeof n&&(r=n),"string"==typeof e){e=new zY(e);const n=this._findNextMatchSync(e,t,r,o);return e.dispose(),n}return this._findNextMatchSync(e,t,r,o)}_findNextMatchSync(e,t,n,r){const o=this._onigBinding;let i;if(i=n?o._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r):o._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r),0===i)return null;const a=o.HEAPU32;let l=i/4;const s=a[l++],c=a[l++],u=[];for(let d=0;d<c;d++){const t=e.convertUtf8OffsetToUtf16(a[l++]),n=e.convertUtf8OffsetToUtf16(a[l++]);u[d]={start:t,end:n,length:n-t}}return{index:s,captureIndices:u}}}async function HY(e,t){RY=await async function(e){let t,n,r;function o(t){n=t,e.HEAP8=new Int8Array(t),e.HEAP16=new Int16Array(t),e.HEAP32=new Int32Array(t),e.HEAPU8=r=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=new Uint32Array(t),e.HEAPF32=new Float32Array(t),e.HEAPF64=new Float64Array(t)}function i(e){try{return t.grow(e-n.byteLength+65535>>>16),o(t.buffer),1}catch(GY){}}const a={emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:function(e,t,n){r.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){const t=r.length,n=2147483648;if((e>>>=0)>n)return!1;for(let r=1;r<=4;r*=2){let l=t*(1+.2/r);if(l=Math.min(l,e+100663296),i(Math.min(n,(o=Math.max(e,l))+((a=65536)-o%a)%a)))return!0}var o,a;return!1},fd_write:()=>0};return await async function(){const n={env:a,wasi_snapshot_preview1:a},r=await e.instantiateWasm(n);return function(n){const r=n.exports;e.asm=r,t=e.asm.memory,o(t.buffer)}(r),r}(),e._omalloc=function(){return(e._omalloc=e.asm.omalloc).apply(null,arguments)},e._ofree=function(){return(e._ofree=e.asm.ofree).apply(null,arguments)},e._getLastOnigError=function(){return(e._getLastOnigError=e.asm.getLastOnigError).apply(null,arguments)},e._createOnigScanner=function(){return(e._createOnigScanner=e.asm.createOnigScanner).apply(null,arguments)},e._freeOnigScanner=function(){return(e._freeOnigScanner=e.asm.freeOnigScanner).apply(null,arguments)},e._findNextOnigScannerMatch=function(){return(e._findNextOnigScannerMatch=e.asm.findNextOnigScannerMatch).apply(null,arguments)},e._findNextOnigScannerMatchDbg=function(){return(e._findNextOnigScannerMatchDbg=e.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},e}({print:t,instantiateWasm:t=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>e.instance||e))}})}let WY=!1,UY=null;function VY(e){if(WY)return UY;let t,n;if(WY=!0,"function"==typeof e)t=e;else if(function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let r;!function(e){return void 0!==e.data}(e)?r=e:(r=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(r)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}return UY=HY(t,n),UY}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var GY,qY,XY={exports:{}};XY.exports=(GY={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!TY.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},442:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyStateStackDiff=t.diffStateStacksRefEq=void 0;const r=n(391);t.diffStateStacksRefEq=function(e,t){let n=0;const r=[];let o=e,i=t;for(;o!==i;)o&&(!i||o.depth>=i.depth)?(n++,o=o.parent):(r.push(i.toStateStackFrame()),i=i.parent);return{pops:n,newFrames:r.reverse()}},t.applyStateStackDiff=function(e,t){let n=e;for(let r=0;r<t.pops;r++)n=n.parent;for(const o of t.newFrames)n=r.StateStackImpl.pushFrame(n,o);return n}},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),r=n.getTokenType(e),o=n.getFontStyle(e),i=n.getForeground(e),a=n.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:o,foreground:i,background:a})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,o,i,a,l){let s=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,d=n.getFontStyle(e),f=n.getForeground(e),p=n.getBackground(e);return 0!==t&&(s=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==i&&(d=i),0!==a&&(f=a),0!==l&&(p=l),(s<<0|c<<8|u<<10|d<<11|f<<15|p<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class i{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new o(t,n)})),this._defaultAttributes=new o(e,8),this._embeddedLanguagesMatcher=new a(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?i._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(i.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=i,i._NULL_SCOPE_METADATA=new o(0,0),i.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class a{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStackImpl=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const r=n(350),o=n(36),i=n(736),a=n(44),l=n(792),s=n(583),c=n(878),u=n(996),d=n(47);function f(e,t,n,r,o){const a=i.createMatchers(t,p),s=l.RuleFactory.getCompiledRuleId(n,r,o.repository);for(const i of a)e.push({debugSelector:t,matcher:i.matcher,ruleId:s,grammar:o,priority:i.priority})}function p(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let r=n;r<t.length;r++)if(h(t[r],e))return n=r+1,!0;return!1}))}function h(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,r,o,i,a,l){return new g(e,t,n,r,o,i,a,l)};class g{constructor(e,t,n,r,o,a,l,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=m(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const c of Object.keys(o)){const e=i.createMatchers(c,p);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:o[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const r=n.injections;if(r)for(let t in r)f(e,t,r[t],this,n);const o=this._grammarRepository.injections(t);o&&o.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&f(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),r.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(` - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(l.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[l.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=m(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=l.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==v.NULL)i=!1,t.reset();else{i=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=o.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null);let l;l=a?b.createRootAndLookUpScopeName(a,r,this):b.createRoot("unknown",r),t=new v(null,this._rootId,-1,-1,!1,null,l,l)}e+="\n";const s=this.createOnigString(e),c=s.content.length,u=new y(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=d._tokenizeString(this,s,i,0,t,u,!0,r);return a.disposeOnigString(s),{lineLength:c,lineTokens:u,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}}function m(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(e,t){let n=e,r=(null==e?void 0:e.scopePath)??null;for(const o of t)r=s.ScopeStack.push(r,o.scopeNames),n=new b(n,r,o.encodedTokenAttributes);return n}static createRoot(e,t){return new b(null,new s.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new s.ScopeStack(null,e),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(t,r,i);return new b(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return b.equals(this,e)}static equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),o.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const o of n)r=b._pushAttributed(r,o,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),o=e.scopePath.push(t),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(e.tokenAttributes,r,i);return new b(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var t;const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined((null==(t=r.parent)?void 0:t.scopePath)??null)}),r=r.parent;return r===e?n.reverse():void 0}}t.AttributedScopeStack=b;class v{constructor(e,t,n,r,o,i,a,l){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&v._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&b.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){v._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,i,a){return new v(this,e,t,n,r,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,r;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${null==(n=this.nameScopesList)?void 0:n.toString()}, ${null==(r=this.contentNameScopesList)?void 0:r.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new v(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n;return{ruleId:l.ruleIdToNumber(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(null==(t=this.nameScopesList)?void 0:t.getExtensionIfDefined((null==(e=this.parent)?void 0:e.nameScopesList)??null))??[],contentNameScopesList:(null==(n=this.contentNameScopesList)?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=b.fromExtension((null==e?void 0:e.nameScopesList)??null,t.nameScopesList);return new v(e,l.ruleIdFromNumber(t.ruleId),t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,b.fromExtension(n,t.contentNameScopesList))}}t.StateStackImpl=v,v.NULL=new v(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):i.createMatchers(e,p).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>i.createMatchers(e,p).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class y{constructor(e,t,n,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,r.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=(null==e?void 0:e.tokenAttributes)??0,a=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=(null==e?void 0:e.getScopeNames())??[];for(const e of this._tokenTypeOverrides)e.matcher(t)&&(i=o.EncodedTokenAttributes.set(i,0,o.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(t))}if(a&&(i=o.EncodedTokenAttributes.set(i,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i)return void(this._lastTokenEndIndex=t);if(r.DebugFlags.InDebugMode){const n=(null==e?void 0:e.getScopeNames())??[];console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log(" * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),void(this._lastTokenEndIndex=t)}const i=(null==e?void 0:e.getScopeNames())??[];if(r.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<i.length;e++)console.log(" * "+i[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:i}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}}t.LineTokens=y},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const r=n(878);class o{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=o;class i{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=i;class a{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function l(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof o?c({baseGrammar:a,selfGrammar:i},r):s(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);const l=n.injections(e.scopeName);if(l)for(const s of l)r.add(new o(s))}function s(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const a of e){if(n.visitedRule.has(a))continue;n.visitedRule.add(a);const e=a.repository?r.mergeObjects({},t.repository,a.repository):t.repository;Array.isArray(a.patterns)&&u(a.patterns,{...t,repository:e},n);const l=a.include;if(!l)continue;const d=m(l);switch(d.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:s(d.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=d.scopeName===t.selfGrammar.scopeName?t.selfGrammar:d.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const o={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===d.kind?s(d.ruleName,o,n):c(o,n)}else 4===d.kind?n.add(new i(d.scopeName,d.ruleName)):n.add(new o(d.scopeName))}}}t.ExternalReferenceCollector=a,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new o(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new a;for(const n of e)l(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof o){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};class d{constructor(){this.kind=0}}t.BaseReference=d;class f{constructor(){this.kind=1}}t.SelfReference=f;class p{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=p;class h{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=h;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function m(e){if("$base"===e)return new d;if("$self"===e)return new f;const t=e.indexOf("#");if(-1===t)return new h(e);if(0===t)return new p(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new g(n,r)}}t.TopLevelRepositoryReference=g,t.parseInclude=m},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const r=n(350),o=n(44),i=n(792),a=n(878);class l{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function s(e,t,n,o,s,d,p,h){const g=t.content.length;let m=!1,b=-1;if(p){const a=function(e,t,n,o,a,l){let s=a.beginRuleCapturedEOL?0:-1;const c=[];for(let r=a;r;r=r.pop()){const t=r.getRule(e);t instanceof i.BeginWhileRule&&c.push({rule:t,stack:r})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:c,findOptions:p}=u(d.rule,e,d.stack.endRule,n,o===s),h=c.findNextMatchSync(t,o,p);if(r.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(c.toString())),!h){r.DebugFlags.InDebugMode&&console.log(" popping "+d.rule.debugName+" - "+d.rule.debugWhileRegExp),a=d.stack.pop();break}if(h.ruleId!==i.whileRuleId){a=d.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(l.produce(d.stack,h.captureIndices[0].start),f(e,t,n,d.stack,l,d.rule.whileCaptures,h.captureIndices),l.produce(d.stack,h.captureIndices[0].end),s=h.captureIndices[0].end,h.captureIndices[0].end>o&&(o=h.captureIndices[0].end,n=!1))}return{stack:a,linePos:o,anchorPosition:s,isFirstLine:n}}(e,t,n,o,s,d);s=a.stack,o=a.linePos,n=a.isFirstLine,b=a.anchorPosition}const v=Date.now();for(;!m;){if(0!==h&&Date.now()-v>h)return new l(s,!0);y()}return new l(s,!1);function y(){r.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${o}: |${t.content.substr(o).replace(/\n$/,"\\n")}|`));const l=function(e,t,n,o,i,l){const s=function(e,t,n,o,i,l){const s=i.getRule(e),{ruleScanner:u,findOptions:d}=c(s,e,i.endRule,n,o===l);let f=0;r.DebugFlags.InDebugMode&&(f=a.performanceNow());const p=u.findNextMatchSync(t,o,d);if(r.DebugFlags.InDebugMode){const e=a.performanceNow()-f;e>5&&console.warn(`Rule ${s.debugName} (${s.id}) matching took ${e} against '${t}'`),console.log(` scanning for (linePos: ${o}, anchorPosition: ${l})`),console.log(u.toString()),p&&console.log(`matched rule id: ${p.ruleId} from ${p.captureIndices[0].start} to ${p.captureIndices[0].end}`)}return p?{captureIndices:p.captureIndices,matchedRuleId:p.ruleId}:null}(e,t,n,o,i,l),u=e.getInjections();if(0===u.length)return s;const d=function(e,t,n,o,i,a,l){let s,u=Number.MAX_VALUE,d=null,f=0;const p=a.contentNameScopesList.getScopeNames();for(let h=0,g=e.length;h<g;h++){const a=e[h];if(!a.matcher(p))continue;const g=t.getRule(a.ruleId),{ruleScanner:m,findOptions:b}=c(g,t,null,o,i===l),v=m.findNextMatchSync(n,i,b);if(!v)continue;r.DebugFlags.InDebugMode&&(console.log(` matched injection: ${a.debugSelector}`),console.log(m.toString()));const y=v.captureIndices[0].start;if(!(y>=u)&&(u=y,d=v.captureIndices,s=v.ruleId,f=a.priority,u===i))break}return d?{priorityMatch:-1===f,captureIndices:d,matchedRuleId:s}:null}(u,e,t,n,o,i,l);if(!d)return s;if(!s)return d;const f=s.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:s}(e,t,n,o,s,b);if(!l)return r.DebugFlags.InDebugMode&&console.log(" no more matches."),d.produce(s,g),void(m=!0);const u=l.captureIndices,p=l.matchedRuleId,h=!!(u&&u.length>0)&&u[0].end>o;if(p===i.endRuleId){const i=s.getRule(e);r.DebugFlags.InDebugMode&&console.log(" popping "+i.debugName+" - "+i.debugEndRegExp),d.produce(s,u[0].start),s=s.withContentNameScopesList(s.nameScopesList),f(e,t,n,s,d,i.endCaptures,u),d.produce(s,u[0].end);const a=s;if(s=s.parent,b=a.getAnchorPos(),!h&&a.getEnterPos()===o)return r.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),s=a,d.produce(s,g),void(m=!0)}else{const a=e.getRule(p);d.produce(s,u[0].start);const l=s,c=a.getName(t.content,u),v=s.contentNameScopesList.pushAttributed(c,e);if(s=s.push(p,o,b,u[0].end===g,null,v,v),a instanceof i.BeginEndRule){const o=a;r.DebugFlags.InDebugMode&&console.log(" pushing "+o.debugName+" - "+o.debugBeginRegExp),f(e,t,n,s,d,o.beginCaptures,u),d.produce(s,u[0].end),b=u[0].end;const i=o.getContentName(t.content,u),c=v.pushAttributed(i,e);if(s=s.withContentNameScopesList(c),o.endHasBackReferences&&(s=s.withEndRule(o.getEndWithResolvedBackReferences(t.content,u))),!h&&l.hasSameRuleAs(s))return r.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),s=s.pop(),d.produce(s,g),void(m=!0)}else if(a instanceof i.BeginWhileRule){const o=a;r.DebugFlags.InDebugMode&&console.log(" pushing "+o.debugName),f(e,t,n,s,d,o.beginCaptures,u),d.produce(s,u[0].end),b=u[0].end;const i=o.getContentName(t.content,u),c=v.pushAttributed(i,e);if(s=s.withContentNameScopesList(c),o.whileHasBackReferences&&(s=s.withEndRule(o.getWhileWithResolvedBackReferences(t.content,u))),!h&&l.hasSameRuleAs(s))return r.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),s=s.pop(),d.produce(s,g),void(m=!0)}else{const o=a;if(r.DebugFlags.InDebugMode&&console.log(" matched "+o.debugName+" - "+o.debugMatchRegExp),f(e,t,n,s,d,o.captures,u),d.produce(s,u[0].end),s=s.pop(),!h)return r.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),s=s.safePop(),d.produce(s,g),void(m=!0)}}u[0].end>o&&(o=u[0].end,n=!1)}}function c(e,t,n,o,i){return r.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:d(o,i)}:{ruleScanner:e.compileAG(t,n,o,i),findOptions:0}}function u(e,t,n,o,i){return r.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:d(o,i)}:{ruleScanner:e.compileWhileAG(t,n,o,i),findOptions:0}}function d(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function f(e,t,n,r,i,a,l){if(0===a.length)return;const c=t.content,u=Math.min(a.length,l.length),d=[],f=l[0].end;for(let h=0;h<u;h++){const t=a[h];if(null===t)continue;const u=l[h];if(0===u.length)continue;if(u.start>f)break;for(;d.length>0&&d[d.length-1].endPos<=u.start;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?i.produceFromScopes(d[d.length-1].scopes,u.start):i.produce(r,u.start),t.retokenizeCapturedWithRuleId){const a=t.getName(c,l),d=r.contentNameScopesList.pushAttributed(a,e),f=t.getContentName(c,l),p=d.pushAttributed(f,e),h=r.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,d,p),g=e.createOnigString(c.substring(0,u.end));s(e,g,n&&0===u.start,u.start,h,i,!1,0),o.disposeOnigString(g);continue}const g=t.getName(c,l);if(null!==g){const t=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);d.push(new p(t,u.end))}}for(;d.length>0;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}t._tokenizeString=s;class p{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=p},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,a){let l=new r(e),s=new o,c=0,u=null,d=[],f=[];function p(){d.push(c),f.push(u)}function h(){c=d.pop(),u=f.pop()}function g(e){n(l,e)}for(;i(l,s);){if(0===c){if(null!==u&&g("too many constructs in root"),3===s.type){u={},a&&(u.$vscodeTextmateLocation=s.toLocation(t)),p(),c=1;continue}if(2===s.type){u=[],p(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===s.type){h();continue}if(7===s.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===s.type){h();continue}if(1===s.type){let e=s.value;if(i(l,s)&&6===s.type||g("expected colon"),i(l,s)||g("expected value"),c=2,1===s.type){u[e]=s.value;continue}if(8===s.type){u[e]=null;continue}if(9===s.type){u[e]=!0;continue}if(10===s.type){u[e]=!1;continue}if(11===s.type){u[e]=parseFloat(s.value);continue}if(2===s.type){let t=[];u[e]=t,p(),c=4,u=t;continue}if(3===s.type){let n={};a&&(n.$vscodeTextmateLocation=s.toLocation(t)),u[e]=n,p(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===s.type){h();continue}if(7===s.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===s.type){h();continue}if(c=5,1===s.type){u.push(s.value);continue}if(8===s.type){u.push(null);continue}if(9===s.type){u.push(!0);continue}if(10===s.type){u.push(!1);continue}if(11===s.type){u.push(parseFloat(s.value));continue}if(2===s.type){let e=[];u.push(e),p(),c=4,u=e;continue}if(3===s.type){let e={};a&&(e.$vscodeTextmateLocation=s.toLocation(t)),u.push(e),p(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==f.length&&g("unclosed constructs"),u};class r{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class o{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function i(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,o=e.source,i=e.pos,a=e.len,l=e.line,s=e.char;for(;;){if(i>=a)return!1;if(r=o.charCodeAt(i),32!==r&&9!==r&&13!==r){if(10!==r)break;i++,l++,s=0}else i++,s++}if(t.offset=i,t.line=l,t.char=s,34===r){for(t.type=1,i++,s++;;){if(i>=a)return!1;if(r=o.charCodeAt(i),i++,s++,92!==r){if(34===r)break}else i++,s++}t.value=o.substring(t.offset+1,i-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,i++,s++;else if(123===r)t.type=3,i++,s++;else if(93===r)t.type=4,i++,s++;else if(125===r)t.type=5,i++,s++;else if(58===r)t.type=6,i++,s++;else if(44===r)t.type=7,i++,s++;else if(110===r){if(t.type=8,i++,s++,r=o.charCodeAt(i),117!==r)return!1;if(i++,s++,r=o.charCodeAt(i),108!==r)return!1;if(i++,s++,r=o.charCodeAt(i),108!==r)return!1;i++,s++}else if(116===r){if(t.type=9,i++,s++,r=o.charCodeAt(i),114!==r)return!1;if(i++,s++,r=o.charCodeAt(i),117!==r)return!1;if(i++,s++,r=o.charCodeAt(i),101!==r)return!1;i++,s++}else if(102===r){if(t.type=10,i++,s++,r=o.charCodeAt(i),97!==r)return!1;if(i++,s++,r=o.charCodeAt(i),108!==r)return!1;if(i++,s++,r=o.charCodeAt(i),115!==r)return!1;if(i++,s++,r=o.charCodeAt(i),101!==r)return!1;i++,s++}else for(t.type=11;;){if(i>=a)return!1;if(r=o.charCodeAt(i),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;i++,s++}return t.len=i-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=i,e.line=l,e.char=s,!0}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.applyStateStackDiff=t.diffStateStacksRefEq=t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const i=n(391),a=n(50),l=n(652),s=n(583),c=n(965),u=n(442);Object.defineProperty(t,"applyStateStackDiff",{enumerable:!0,get:function(){return u.applyStateStackDiff}}),Object.defineProperty(t,"diffStateStacksRefEq",{enumerable:!0,get:function(){return u.diffStateStacksRefEq}}),o(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new l.SyncRegistry(s.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(s.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new i.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const i=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;i.Q.length>0;)await Promise.all(i.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),i.processQueue();return this._grammarForScopeName(e,t,n,r,o)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},t.INITIAL=i.StateStackImpl.NULL,t.parseRawGrammar=a.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const r=[],o=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let i=o.next();for(;null!==i;){let e=0;if(2===i.length&&":"===i.charAt(1)){switch(i.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=o.next()}let t=l();if(r.push({matcher:t,priority:e}),","!==i)break;i=o.next()}return r;function a(){if("-"===i){i=o.next();const e=a();return t=>!!e&&!e(t)}if("("===i){i=o.next();const e=function(){const e=[];let t=l();for(;t&&(e.push(t),"|"===i||","===i);){do{i=o.next()}while("|"===i||","===i);t=l()}return t=>e.some((e=>e(t)))}();return")"===i&&(i=o.next()),e}if(n(i)){const e=[];do{e.push(i),i=o.next()}while(n(i));return n=>t(e,n)}return null}function l(){const e=[];let t=a();for(;t;)e.push(t),t=a();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),o=n(350),i=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(l=e,s=t,o.DebugFlags.InDebugMode?i.parseJSON(l,s,!0):JSON.parse(l)):(n=e,a=t,o.DebugFlags.InDebugMode?r.parseWithLocation(n,a,"$vscodeTextmateLocation"):r.parsePLIST(n));var n,a,l,s}},69:(e,t)=>{function n(e,t,n){const r=e.length;let o=0,i=1,a=0;function l(t){if(null===n)o+=t;else for(;t>0;)10===e.charCodeAt(o)?(o++,i++,a=0):(o++,a++),t--}function s(e){null===n?o=e:l(e-o)}function c(){for(;o<r;){let t=e.charCodeAt(o);if(32!==t&&9!==t&&13!==t&&10!==t)break;l(1)}}function u(t){return e.substr(o,t.length)===t&&(l(t.length),!0)}function d(t){let n=e.indexOf(t,o);s(-1!==n?n+t.length:r)}function f(t){let n=e.indexOf(t,o);if(-1!==n){let r=e.substring(o,n);return s(n+t.length),r}{let t=e.substr(o);return s(r),t}}r>0&&65279===e.charCodeAt(0)&&(o=1);let p=0,h=null,g=[],m=[],b=null;function v(e,t){g.push(p),m.push(h),p=e,h=t}function y(){if(0===g.length)return w("illegal state stack");p=g.pop(),h=m.pop()}function w(t){throw new Error("Near offset "+o+": "+t+" ~~~"+e.substr(o,50)+"~~~")}const x=function(){if(null===b)return w("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:i,char:a}),h[b]=e,b=null,v(1,e)},S=function(){if(null===b)return w("missing <key>");let e=[];h[b]=e,b=null,v(2,e)},k=function(){let e={};null!==n&&(e[n]={filename:t,line:i,char:a}),h.push(e),v(1,e)},C=function(){let e=[];h.push(e),v(2,e)};function E(){if(1!==p)return w("unexpected </dict>");y()}function O(){return 1===p||2!==p?w("unexpected </array>"):void y()}function D(e){if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function $(e){if(isNaN(e))return w("cannot parse float");if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function j(e){if(isNaN(e))return w("cannot parse integer");if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function P(e){if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function _(e){if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function N(e){if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function I(){let e=f(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function T(e){if(e.isClosed)return"";let t=f("</");return d(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}for(;o<r&&(c(),!(o>=r));){const s=e.charCodeAt(o);if(l(1),60!==s)return w("expected <");if(o>=r)return w("unexpected end of input");const f=e.charCodeAt(o);if(63===f){l(1),d("?>");continue}if(33===f){if(l(1),u("--")){d("--\x3e");continue}d(">");continue}if(47===f){if(l(1),c(),u("plist")){d(">");continue}if(u("dict")){d(">"),E();continue}if(u("array")){d(">"),O();continue}return w("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===p?x():2===p?k():(h={},null!==n&&(h[n]={filename:t,line:i,char:a}),v(1,h)),g.isClosed&&E();continue;case"array":1===p?S():2===p?C():(h=[],v(2,h)),g.isClosed&&O();continue;case"key":F=T(g),1!==p?w("unexpected <key>"):null!==b?w("too many <key>"):b=F;continue;case"string":D(T(g));continue;case"real":$(parseFloat(T(g)));continue;case"integer":j(parseInt(T(g),10));continue;case"date":P(new Date(T(g)));continue;case"data":_(T(g));continue;case"true":T(g),N(!0);continue;case"false":T(g),N(!1);continue}if(!/^plist/.test(g.name))return w("unexpected opened tag "+g.name)}var F;return h}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const r=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,o,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,r.createGrammar(e,a,t,n,o,i,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const r=n(878),o=n(965),i=/\\(\d+)/,a=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class l{constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=r.RegexSource.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=r.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${r.basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?r.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?r.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=l;class s extends l{constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}}t.CaptureRule=s;class c extends l{constructor(e,t,n,r,o){super(e,t,n,null),this._match=new h(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends l{constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class d extends l{constructor(e,t,n,r,o,i,a,l,s,c){super(e,t,n,r),this._begin=new h(o,this.id),this.beginCaptures=i,this._end=new h(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=s||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=d;class f extends l{constructor(e,n,r,o,i,a,l,s,c){super(e,n,r,o),this._begin=new h(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new h(l,t.whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new g;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=f;class p{static createCaptureRule(e,t,n,r,o){return e.registerRule((e=>new s(t,e,n,r,o)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((o=>{if(e.id=o,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,p._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let o=e.patterns;return void 0===o&&e.include&&(o=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,p._compilePatterns(o,t,n))}return e.while?new f(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,p._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,p._compileCaptures(e.whileCaptures||e.captures,t,n),p._compilePatterns(e.patterns,t,n)):new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,p._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,p._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,p._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let o=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>o&&(o=e)}for(let e=0;e<=o;e++)r[e]=null;for(const i in e){if("$vscodeTextmateLocation"===i)continue;const o=parseInt(i,10);let a=0;e[i].patterns&&(a=p.getCompiledRuleId(e[i],t,n)),r[o]=p.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,a)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let i=0,a=e.length;i<a;i++){const a=e[i];let l=-1;if(a.include){const e=o.parseInclude(a.include);switch(e.kind){case 0:case 1:l=p.getCompiledRuleId(n[a.include],t,n);break;case 2:let r=n[e.ruleName];r&&(l=p.getCompiledRuleId(r,t,n));break;case 3:case 4:const o=e.scopeName,i=4===e.kind?e.ruleName:null,s=t.getExternalGrammar(o,n);if(s)if(i){let e=s.repository[i];e&&(l=p.getCompiledRuleId(e,t,s.repository))}else l=p.getCompiledRuleId(s.repository.$self,t,s.repository)}}else l=p.getCompiledRuleId(a,t,n);if(-1!==l){const e=t.getRule(l);let n=!1;if((e instanceof u||e instanceof d||e instanceof f)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;r.push(l)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}}t.RuleFactory=p;class h{constructor(e,t){if(e){const t=e.length;let n=0,r=[],o=!1;for(let i=0;i<t;i++)if("\\"===e.charAt(i)&&i+1<t){const t=e.charAt(i+1);"z"===t?(r.push(e.substring(n,i)),r.push("$(?!\\n)(?<!\\n)"),n=i+2):"A"!==t&&"G"!==t||(o=!0),i++}this.hasAnchor=o,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=i.test(this.source)}clone(){return new h(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return a.lastIndex=0,this.source.replace(a,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],i=[],a=[],l=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),o[e]=n,i[e]=n,a[e]=n,l[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(o[e+1]="",i[e+1]="",a[e+1]="A",l[e+1]="A"):"G"===r?(o[e+1]="",i[e+1]="G",a[e+1]="",l[e+1]="G"):(o[e+1]=r,i[e+1]=r,a[e+1]=r,l[e+1]=r),e++);return{A0_G0:o.join(""),A0_G1:i.join(""),A1_G0:a.join(""),A1_G1:l.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=h;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new m(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new m(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class m{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}t.CompiledRule=m},583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const r=n(878);class o{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new r.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(s(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=r.strcmp(e.scope,t.scope);return 0!==n?n:(n=r.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,i="#000000",a="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(a=t.background)}let s=new u(t),c=new l(n,s.getId(i),s.getId(a)),p=new f(new d(0,null,-1,0,0),[]);for(let r=0,o=e.length;r<o;r++){let t=e[r];p.insert(0,t.scope,t.parentScopes,t.fontStyle,s.getId(t.foreground),s.getId(t.background))}return new o(s,c,p)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,r=t[n];for(;e;){if(a(e.scopeName,r)){if(n++,n===t.length)return!0;r=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new l(n.fontStyle,n.foreground,n.background):null}}t.Theme=o;class i{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const n of t)e=new i(e,n);return e}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new i(t,e[n]);return t}push(e){return new i(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}}function a(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=i;class l{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function s(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let i=0,a=t.length;i<a;i++){let e,a=t[i];if(!a.settings)continue;if("string"==typeof a.scope){let t=a.scope;t=t.replace(/^[,]+/,""),t=t.replace(/[,]+$/,""),e=t.split(",")}else e=Array.isArray(a.scope)?a.scope:[""];let l=-1;if("string"==typeof a.settings.fontStyle){l=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":l|=1;break;case"bold":l|=2;break;case"underline":l|=4;break;case"strikethrough":l|=8}}let s=null;"string"==typeof a.settings.foreground&&r.isValidHexColor(a.settings.foreground)&&(s=a.settings.foreground);let u=null;"string"==typeof a.settings.background&&r.isValidHexColor(a.settings.background)&&(u=a.settings.background);for(let t=0,r=e.length;t<r;t++){let r=e[t].trim().split(" "),a=r[r.length-1],d=null;r.length>1&&(d=r.slice(0,r.length-1),d.reverse()),n[o++]=new c(a,d,i,l,s,u)}}return n}t.StyleAttributes=l,t.parseTheme=s;class c{constructor(e,t,n,r,o,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=i}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class d{constructor(e,t,n,r,o){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=r,this.background=o}clone(){return new d(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=d;class f{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let o=null===n?0:n.length,i=null===r?0:r.length;if(o===i)for(let e=0;e<o;e++){const t=n[e].length,o=r[e].length;if(t!==o)return o-t}return i-o}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return f._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,r=e.indexOf(".");return-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):f._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,r,o,i){if(""===t)return void this._doInsertHere(e,n,r,o,i);let a,l,s,c=t.indexOf(".");-1===c?(a=t,l=""):(a=t.substring(0,c),l=t.substring(c+1)),this._children.hasOwnProperty(a)?s=this._children[a]:(s=new f(this._mainRule.clone(),d.cloneArr(this._rulesWithParentScopes)),this._children[a]=s),s.insert(e+1,l,n,r,o,i)}_doInsertHere(e,t,n,o,i){if(null!==t){for(let a=0,l=this._rulesWithParentScopes.length;a<l;a++){let l=this._rulesWithParentScopes[a];if(0===r.strArrCmp(l.parentScopes,t))return void l.acceptOverwrite(e,n,o,i)}-1===n&&(n=this._mainRule.fontStyle),0===o&&(o=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new d(e,t,n,o,i))}else this._mainRule.acceptOverwrite(e,n,o,i)}}t.ThemeTrieElement=f},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=n(e[r]);return t}(e):"object"==typeof e?function(e){let t={};for(let r in e)t[r]=n(e[r]);return t}(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let r=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function o(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(r.lastIndex=0,r.test(e))}static replaceCaptures(e,t,n){return e.replace(r,((e,r,o,i)=>{let a=n[parseInt(r||o,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=o,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=o(e[r],t[r]);if(0!==n)return n}return 0}return n-r},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},qY={},function e(t){var n=qY[t];if(void 0!==n)return n.exports;var r=qY[t]={exports:{}};return GY[t].call(r.exports,r,r.exports,e),r.exports}(787));var KY=XY.exports;const YY={light:"#333333",dark:"#bbbbbb"},QY={light:"#fffffe",dark:"#1e1e1e"};function JY(e){var t,n,r,o;let i,a;const l=e.settings?e.settings:e.tokenColors,s=l?l.find((e=>!e.name&&!e.scope)):void 0;return(null==(t=null==s?void 0:s.settings)?void 0:t.foreground)&&(i=s.settings.foreground),(null==(n=null==s?void 0:s.settings)?void 0:n.background)&&(a=s.settings.background),!i&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(i=e.colors["editor.foreground"]),!a&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(a=e.colors["editor.background"]),i||(i="light"===e.type?YY.light:YY.dark),a||(a="light"===e.type?QY.light:QY.dark),{fg:i,bg:a}}var ZY=Object.defineProperty,eQ=(e,t,n)=>(((e,t,n)=>{t in e?ZY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class tQ extends KY.Registry{constructor(e,t,n){super(e),this._resolver=e,this._themes=t,this._langs=n,eQ(this,"themesPath","themes/"),eQ(this,"_resolvedThemes",{}),eQ(this,"_resolvedGrammars",{}),eQ(this,"_langMap",{}),eQ(this,"_langGraph",new Map),eQ(this,"alias",{}),t.forEach((e=>this.loadTheme(e))),n.forEach((e=>this.loadLanguage(e)))}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:this.loadTheme(e)}loadTheme(e){const t=function(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...JY(e)};return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),function(e){e.settings||(e.settings=[]),e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}(n),n}(e);return t.name&&(this._resolvedThemes[t.name]=t),t}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){if(this.alias[e]){const t=new Set([e]);for(;this.alias[e];){if(e=this.alias[e],t.has(e))throw new Error(`[shikiji] Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars[e]}async loadLanguage(e){var t;if(this.getGrammar(e.name))return;this._resolver.addLanguage(e);const n={embeddedLanguages:null==(t=e.embeddedLangs)?void 0:t.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.name]=r,e.aliases&&e.aliases.forEach((t=>{this.alias[t]=e.name}))}async init(){this._themes.map((e=>this.loadTheme(e))),await this.loadLanguages(this._langs)}async loadLanguages(e){for(const r of e)this.resolveEmbeddedLanguages(r);const t=Array.from(this._langGraph.entries()),n=t.filter((([e,t])=>!t));if(n.length){const e=t.filter((([e,t])=>{var r;return t&&(null==(r=t.embeddedLangs)?void 0:r.some((e=>n.map((([e])=>e)).includes(e))))})).filter((e=>!n.includes(e)));throw new Error(`[shikiji] Missing languages ${n.map((([e])=>`\`${e}\``)).join(", ")}, required by ${e.map((([e])=>`\`${e}\``)).join(", ")}`)}for(const[r,o]of t)this._resolver.addLanguage(o);for(const[r,o]of t)await this.loadLanguage(o)}getLoadedLanguages(){return Object.keys({...this._resolvedGrammars,...this.alias})}resolveEmbeddedLanguages(e){if(this._langMap[e.name]=e,this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}var nQ=Object.defineProperty,rQ=(e,t,n)=>(((e,t,n)=>{t in e?nQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class oQ{constructor(e,t,n){rQ(this,"languageMap",{}),rQ(this,"scopeToLangMap",{}),rQ(this,"_onigLibPromise"),rQ(this,"_onigLibName"),this._onigLibPromise=e,this._onigLibName=t,n.forEach((e=>this.addLanguage(e)))}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){return this.scopeToLangMap[e]}addLanguage(e){this.languageMap[e.name]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}async function iQ(e={}){async function t(e){return Promise.resolve("function"==typeof e?e():e).then((e=>e.default||e))}async function n(e){return Array.from(new Set((await Promise.all(e.map((async e=>await t(e).then((e=>Array.isArray(e)?e:[e])))))).flat()))}const[r,o]=await Promise.all([Promise.all((e.themes||[]).map(t)),n(e.langs||[]),"function"==typeof e.loadWasm?Promise.resolve(e.loadWasm()).then((e=>VY(e))):e.loadWasm?VY(e.loadWasm):void 0]),i=new oQ(Promise.resolve({createOnigScanner:e=>function(e){return new BY(e)}(e),createOnigString:e=>new zY(e)}),"vscode-oniguruma",o),a=new tQ(i,r,o);function l(e){const t=a.getTheme(e);if(!t)throw new Error(`[shikiji] Theme \`${e}\` not found, you may need to load it first`);return t}return Object.assign(a.alias,e.langAlias),await a.init(),{setTheme:function(e){const t=l(e);return a.setTheme(t),{theme:t,colorMap:a.getColorMap()}},getTheme:l,getLangGrammar:function(e){const t=a.getGrammar(e);if(!t)throw new Error(`[shikiji] Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return a.getLoadedThemes()},getLoadedLanguages:function(){return a.getLoadedLanguages()},getAlias:function(){return a.alias},updateAlias:function(e){Object.assign(a.alias,e)},loadLanguage:async function(...e){await a.loadLanguages(await n(e))},loadTheme:async function(...e){await Promise.all(e.map((async e=>a.loadTheme(await t(e)))))}}}const aQ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class lQ{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function sQ(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new lQ(n,r,t)}function cQ(e){return e.toLowerCase()}lQ.prototype.property={},lQ.prototype.normal={},lQ.prototype.space=null;class uQ{constructor(e,t){this.property=e,this.attribute=t}}uQ.prototype.space=null,uQ.prototype.boolean=!1,uQ.prototype.booleanish=!1,uQ.prototype.overloadedBoolean=!1,uQ.prototype.number=!1,uQ.prototype.commaSeparated=!1,uQ.prototype.spaceSeparated=!1,uQ.prototype.commaOrSpaceSeparated=!1,uQ.prototype.mustUseProperty=!1,uQ.prototype.defined=!1;let dQ=0;const fQ=yQ(),pQ=yQ(),hQ=yQ(),gQ=yQ(),mQ=yQ(),bQ=yQ(),vQ=yQ();function yQ(){return 2**++dQ}var wQ=Object.freeze({__proto__:null,boolean:fQ,booleanish:pQ,commaOrSpaceSeparated:vQ,commaSeparated:bQ,number:gQ,overloadedBoolean:hQ,spaceSeparated:mQ});const xQ=Object.keys(wQ);class SQ extends uQ{constructor(e,t,n,r){let o=-1;if(super(e,t),kQ(this,"space",r),"number"==typeof n)for(;++o<xQ.length;){const e=xQ[o];kQ(this,xQ[o],(n&wQ[e])===wQ[e])}}}function kQ(e,t,n){n&&(e[t]=n)}SQ.prototype.defined=!0;const CQ={}.hasOwnProperty;function EQ(e){const t={},n={};let r;for(r in e.properties)if(CQ.call(e.properties,r)){const o=e.properties[r],i=new SQ(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[cQ(r)]=r,n[cQ(i.attribute)]=r}return new lQ(t,n,e.space)}const OQ=EQ({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),DQ=EQ({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function $Q(e,t){return t in e?e[t]:t}function jQ(e,t){return $Q(e,t.toLowerCase())}const PQ=EQ({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:jQ,properties:{xmlns:null,xmlnsXLink:null}}),_Q=EQ({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:pQ,ariaAutoComplete:null,ariaBusy:pQ,ariaChecked:pQ,ariaColCount:gQ,ariaColIndex:gQ,ariaColSpan:gQ,ariaControls:mQ,ariaCurrent:null,ariaDescribedBy:mQ,ariaDetails:null,ariaDisabled:pQ,ariaDropEffect:mQ,ariaErrorMessage:null,ariaExpanded:pQ,ariaFlowTo:mQ,ariaGrabbed:pQ,ariaHasPopup:null,ariaHidden:pQ,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:mQ,ariaLevel:gQ,ariaLive:null,ariaModal:pQ,ariaMultiLine:pQ,ariaMultiSelectable:pQ,ariaOrientation:null,ariaOwns:mQ,ariaPlaceholder:null,ariaPosInSet:gQ,ariaPressed:pQ,ariaReadOnly:pQ,ariaRelevant:null,ariaRequired:pQ,ariaRoleDescription:mQ,ariaRowCount:gQ,ariaRowIndex:gQ,ariaRowSpan:gQ,ariaSelected:pQ,ariaSetSize:gQ,ariaSort:null,ariaValueMax:gQ,ariaValueMin:gQ,ariaValueNow:gQ,ariaValueText:null,role:null}}),NQ=EQ({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:jQ,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bQ,acceptCharset:mQ,accessKey:mQ,action:null,allow:null,allowFullScreen:fQ,allowPaymentRequest:fQ,allowUserMedia:fQ,alt:null,as:null,async:fQ,autoCapitalize:null,autoComplete:mQ,autoFocus:fQ,autoPlay:fQ,capture:fQ,charSet:null,checked:fQ,cite:null,className:mQ,cols:gQ,colSpan:null,content:null,contentEditable:pQ,controls:fQ,controlsList:mQ,coords:gQ|bQ,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fQ,defer:fQ,dir:null,dirName:null,disabled:fQ,download:hQ,draggable:pQ,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fQ,formTarget:null,headers:mQ,height:gQ,hidden:fQ,high:gQ,href:null,hrefLang:null,htmlFor:mQ,httpEquiv:mQ,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:fQ,itemId:null,itemProp:mQ,itemRef:mQ,itemScope:fQ,itemType:mQ,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fQ,low:gQ,manifest:null,max:null,maxLength:gQ,media:null,method:null,min:null,minLength:gQ,multiple:fQ,muted:fQ,name:null,nonce:null,noModule:fQ,noValidate:fQ,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:fQ,optimum:gQ,pattern:null,ping:mQ,placeholder:null,playsInline:fQ,poster:null,preload:null,readOnly:fQ,referrerPolicy:null,rel:mQ,required:fQ,reversed:fQ,rows:gQ,rowSpan:gQ,sandbox:mQ,scope:null,scoped:fQ,seamless:fQ,selected:fQ,shape:null,size:gQ,sizes:null,slot:null,span:gQ,spellCheck:pQ,src:null,srcDoc:null,srcLang:null,srcSet:null,start:gQ,step:null,style:null,tabIndex:gQ,target:null,title:null,translate:null,type:null,typeMustMatch:fQ,useMap:null,value:pQ,width:gQ,wrap:null,align:null,aLink:null,archive:mQ,axis:null,background:null,bgColor:null,border:gQ,borderColor:null,bottomMargin:gQ,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fQ,declare:fQ,event:null,face:null,frame:null,frameBorder:null,hSpace:gQ,leftMargin:gQ,link:null,longDesc:null,lowSrc:null,marginHeight:gQ,marginWidth:gQ,noResize:fQ,noHref:fQ,noShade:fQ,noWrap:fQ,object:null,profile:null,prompt:null,rev:null,rightMargin:gQ,rules:null,scheme:null,scrolling:pQ,standby:null,summary:null,text:null,topMargin:gQ,valueType:null,version:null,vAlign:null,vLink:null,vSpace:gQ,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:fQ,disableRemotePlayback:fQ,prefix:null,property:null,results:gQ,security:null,unselectable:null}}),IQ=EQ({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:$Q,properties:{about:vQ,accentHeight:gQ,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:gQ,amplitude:gQ,arabicForm:null,ascent:gQ,attributeName:null,attributeType:null,azimuth:gQ,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:gQ,by:null,calcMode:null,capHeight:gQ,className:mQ,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:gQ,diffuseConstant:gQ,direction:null,display:null,dur:null,divisor:gQ,dominantBaseline:null,download:fQ,dx:null,dy:null,edgeMode:null,editable:null,elevation:gQ,enableBackground:null,end:null,event:null,exponent:gQ,externalResourcesRequired:null,fill:null,fillOpacity:gQ,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:bQ,g2:bQ,glyphName:bQ,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:gQ,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:gQ,horizOriginX:gQ,horizOriginY:gQ,id:null,ideographic:gQ,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:gQ,k:gQ,k1:gQ,k2:gQ,k3:gQ,k4:gQ,kernelMatrix:vQ,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:gQ,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:gQ,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:gQ,overlineThickness:gQ,paintOrder:null,panose1:null,path:null,pathLength:gQ,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:mQ,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:gQ,pointsAtY:gQ,pointsAtZ:gQ,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vQ,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vQ,rev:vQ,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vQ,requiredFeatures:vQ,requiredFonts:vQ,requiredFormats:vQ,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:gQ,specularExponent:gQ,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:gQ,strikethroughThickness:gQ,string:null,stroke:null,strokeDashArray:vQ,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:gQ,strokeOpacity:gQ,strokeWidth:null,style:null,surfaceScale:gQ,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vQ,tabIndex:gQ,tableValues:null,target:null,targetX:gQ,targetY:gQ,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vQ,to:null,transform:null,u1:null,u2:null,underlinePosition:gQ,underlineThickness:gQ,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:gQ,values:null,vAlphabetic:gQ,vMathematical:gQ,vectorEffect:null,vHanging:gQ,vIdeographic:gQ,version:null,vertAdvY:gQ,vertOriginX:gQ,vertOriginY:gQ,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:gQ,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),TQ=/^data[-\w.:]+$/i,FQ=/-[a-z]/g,AQ=/[A-Z]/g;function RQ(e){return"-"+e.toLowerCase()}function MQ(e){return e.charAt(1).toUpperCase()}const LQ=sQ([DQ,OQ,PQ,_Q,NQ],"html"),zQ=sQ([DQ,OQ,PQ,_Q,IQ],"svg"),BQ={}.hasOwnProperty;function HQ(e,t){return e=e.replace(t.subset?function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const WQ=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],UQ={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},VQ=["cent","copy","divide","gt","lt","not","para","times"],GQ={}.hasOwnProperty,qQ={};let XQ;for(XQ in UQ)GQ.call(UQ,XQ)&&(qQ[UQ[XQ]]=XQ);function KQ(e,t,n){let r,o=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const o=String.fromCharCode(e);if(GQ.call(qQ,o)){const e=qQ[o],i="&"+e;return n&&WQ.includes(e)&&!VQ.includes(e)&&(!r||t&&61!==t&&/[^\da-z]/i.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return r&&(!n.useShortestReferences||r.length<o.length)?r:o}function YQ(e,t){return HQ(e,Object.assign({format:KQ},t))}function QQ(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function JQ(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function ZQ(e){return e.join(" ").trim()}const eJ=/[ \t\n\f\r]/g;function tJ(e){return"object"==typeof e?"text"===e.type&&nJ(e.value):nJ(e)}function nJ(e){return""===e.replace(eJ,"")}const rJ=aJ(1),oJ=aJ(-1),iJ=[];function aJ(e){return function(t,n,r){const o=t?t.children:iJ;let i=(n||0)+e,a=o[i];if(!r)for(;a&&tJ(a);)i+=e,a=o[i];return a}}const lJ={}.hasOwnProperty;function sJ(e){return function(t,n,r){return lJ.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const cJ=sJ({body:function(e,t,n){const r=rJ(n,t);return!r||"comment"!==r.type},caption:uJ,colgroup:uJ,dd:function(e,t,n){const r=rJ(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=rJ(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:uJ,html:function(e,t,n){const r=rJ(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=rJ(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=rJ(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=rJ(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=rJ(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:dJ,rt:dJ,tbody:function(e,t,n){const r=rJ(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:fJ,tfoot:function(e,t,n){return!rJ(n,t)},th:fJ,thead:function(e,t,n){const r=rJ(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=rJ(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function uJ(e,t,n){const r=rJ(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&tJ(r.value.charAt(0)))}function dJ(e,t,n){const r=rJ(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function fJ(e,t,n){const r=rJ(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const pJ=sJ({body:function(e){const t=rJ(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&tJ(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,n){const r=oJ(n,t),o=rJ(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&cJ(r,n.children.indexOf(r),n))return!1;return Boolean(o&&"element"===o.type&&"col"===o.tagName)},head:function(e){const t=e.children,n=[];let r=-1;for(;++r<t.length;){const e=t[r];if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){if(n.includes(e.tagName))return!1;n.push(e.tagName)}}return t.length>0},html:function(e){const t=rJ(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=oJ(n,t),o=rJ(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&cJ(r,n.children.indexOf(r),n))return!1;return Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const hJ={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function gJ(e,t,n){const r=function(e,t){const n=cQ(t);let r=t,o=uQ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&TQ.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(FQ,MQ);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!FQ.test(e)){let n=e.replace(AQ,RQ);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=SQ}return new o(r,t)}(e.schema,t),o=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,i=e.settings.allowDangerousCharacters?0:1;let a,l=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?(r.boolean||r.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const s=YQ(r.attribute,Object.assign({},e.settings.characterReferences,{subset:hJ.name[o][i]}));return!0===n?s:(n=Array.isArray(n)?(r.commaSeparated?JQ:ZQ)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?s:(e.settings.preferUnquoted&&(a=YQ(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:hJ.unquoted[o][i]}))),a!==n&&(e.settings.quoteSmart&&QQ(n,l)>QQ(n,e.alternative)&&(l=e.alternative),a=l+YQ(n,Object.assign({},e.settings.characterReferences,{subset:("'"===l?hJ.single:hJ.double)[o][i],attribute:!0}))+l),s+(a?"="+a:a)))}function mJ(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?YQ(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]})):e.value}const bJ=function(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&BQ.call(t,e)){const n=String(t[e]);o=BQ.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+YQ(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"\x3c!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,(function(e){return YQ(e,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}))+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const o=r.schema,i="svg"!==o.space&&r.settings.omitOptionalTags;let a="svg"===o.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let s;"html"===o.space&&"svg"===e.tagName&&(r.schema=zQ);const c=function(e,t){const n=[];let r,o=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const o=gJ(e,r,t[r]);o&&n.push(o)}for(;++o<n.length;){const t=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&'"'!==t&&"'"!==t&&(n[o]+=" ")}return n.join("")}(r,e.properties),u=r.all("html"===o.space&&"template"===e.tagName?e.content:e);return r.schema=o,u&&(a=!1),!c&&i&&pJ(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),a&&("svg"===o.space||r.settings.closeSelfClosing)&&(s=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===s||s&&'"'!==s&&"'"!==s)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),a||i&&cJ(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:mJ(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:mJ}});const vJ={},yJ={},wJ=[];function xJ(e,t,n){return bJ(e,t,n,this)}function SJ(e){const t=[],n=e&&e.children||wJ;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}var kJ=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(kJ||{});class CJ{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t=`0${t}`;return t}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,r,o,i){let a=CJ.getLanguageId(e),l=CJ.getTokenType(e),s=CJ.getFontStyle(e),c=CJ.getForeground(e),u=CJ.getBackground(e);return 0!==t&&(a=t),0!==n&&(l=8===n?0:n),-1!==r&&(s=r),0!==o&&(c=o),0!==i&&(u=i),(a<<0|l<<8|s<<11|(CJ.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}var EJ=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],OJ={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function DJ(e,t){const n=e.indexOf("[",t);if(-1!==n){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function $J(e,t){let n=1;const r=e[t+n++];let o;if("2"===r){const r=[e[t+n++],e[t+n++],e[t+n]].map((e=>Number.parseInt(e)));3!==r.length||r.some((e=>Number.isNaN(e)))||(o={type:"rgb",rgb:r})}else if("5"===r){const r=Number.parseInt(e[t+n]);Number.isNaN(r)||(o={type:"table",index:Number(r)})}return[n,o]}function jJ(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=Number.parseInt(r);if(!Number.isNaN(o))if(0===o)t.push({type:"resetAll"});else if(o<=9){OJ[o]&&t.push({type:"setDecoration",value:OJ[o]})}else if(o<=29){const e=OJ[o-20];e&&t.push({type:"resetDecoration",value:e})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:EJ[o-30]}});else if(38===o){const[r,o]=$J(e,n);o&&t.push({type:"setForegroundColor",value:o}),n+=r}else if(39===o)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:EJ[o-40]}});else if(48===o){const[r,o]=$J(e,n);o&&t.push({type:"setBackgroundColor",value:o}),n+=r}else 49===o?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:EJ[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:EJ[o-100+8]}})}return t}var PJ={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function _J(e=PJ){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;function o(e){return function(){if(r)return r;r=[];for(let n=0;n<EJ.length;n++)r.push(t(EJ[n]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let o=0;o<6;o++)for(let i=0;i<6;i++)r.push(n([e[t],e[o],e[i]]));let o=8;for(let t=0;t<24;t++,o+=10)r.push(n([o,o,o]));return r}()[e]}return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return o(e.index)}}}}function NJ(e,t){const n=t.split(/\r?\n/),r=_J(Object.fromEntries(EJ.map((t=>{var n;return[t,null==(n=e.colors)?void 0:n[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]})))),o=function(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const a=DJ(r,i),l=a.sequence?r.substring(i,a.startPosition):r.substring(i);if(l.length>0&&o.push({value:l,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const r=jJ(a.sequence);for(const o of r)"resetAll"===o.type?(e=null,t=null,n.clear()):"resetForegroundColor"===o.type?e=null:"resetBackgroundColor"===o.type?t=null:"resetDecoration"===o.type&&n.delete(o.value);for(const o of r)"setForegroundColor"===o.type?e=o.value:"setBackgroundColor"===o.type?t=o.value:"setDecoration"===o.type&&n.add(o.value)}i=a.position}while(i<r.length);return o}}}();return n.map((t=>o.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let o=kJ.None;return t.decorations.has("bold")&&(o|=kJ.Bold),t.decorations.has("italic")&&(o|=kJ.Italic),t.decorations.has("underline")&&(o|=kJ.Underline),{content:t.value,color:n,fontStyle:o}}))))}function IJ(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0],includeExplanation:i=!0}=n;if(function(e){return!e||["plaintext","txt","text","plain"].includes(e)}(r)){return[...t.split(/\r\n|\r|\n/).map((e=>[{content:e}]))]}const{theme:a,colorMap:l}=e.setTheme(o);if("ansi"===r)return NJ(a,t);return function(e,t,n,r,o){const i=e.split(/\r\n|\r|\n/);let a=KY.INITIAL,l=[];const s=[];for(let c=0,u=i.length;c<u;c++){const e=i[c];if(""===e){l=[],s.push([]);continue}let u,d,f;o.includeExplanation&&(u=t.tokenizeLine(e,a),d=u.tokens,f=0);const p=t.tokenizeLine2(e,a),h=p.tokens.length/2;for(let t=0;t<h;t++){const i=p.tokens[2*t],a=t+1<h?p.tokens[2*t+2]:e.length;if(i===a)continue;const s=p.tokens[2*t+1],c=r[CJ.getForeground(s)],u=CJ.getFontStyle(s),g={content:e.substring(i,a),color:c,fontStyle:u};if(o.includeExplanation){g.explanation=[];let t=0;for(;i+t<a;){const r=d[f],o=e.substring(r.startIndex,r.endIndex);t+=o.length,g.explanation.push({content:o,scopes:TJ(n,r.scopes)}),f+=1}}l.push(g)}s.push(l),l=[],a=p.ruleStack}return s}(t,e.getLangGrammar(r),a,l,{includeExplanation:i})}function TJ(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t.slice(0,r),i=t[r];n[r]={scopeName:i,themeMatches:RJ(e,i,o)}}return n}function FJ(e,t){const n=`${e}.`;return e===t||t.substring(0,n.length)===n}function AJ(e,t,n,r){if(!FJ(e,n))return!1;let o=t.length-1,i=r.length-1;for(;o>=0&&i>=0;)FJ(t[o],r[i])&&(o-=1),i-=1;return-1===o}function RJ(e,t,n){const r=[];let o=0;for(let i=0,a=e.settings.length;i<a;i++){const a=e.settings[i];let l;if("string"==typeof a.scope)l=a.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(a.scope))continue;l=a.scope}for(let e=0,i=l.length;e<i;e++){const s=l[e].split(/ /);AJ(s[s.length-1],s.slice(0,s.length-1),t,n)&&(r[o++]=a,e=i)}}return r}function MJ(e,t,n){const r=Object.entries(n.themes).filter((e=>e[1])),o=function(...e){const t=e.map((()=>[])),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map((e=>e[r])),i=t.map((()=>[]));t.forEach(((e,t)=>e.push(i[t])));const a=o.map((()=>0)),l=o.map((e=>e[0]));for(;l.every((e=>e));){const e=Math.min(...l.map((e=>e.content.length)));for(let t=0;t<n;t++){const n=l[t];n.content.length===e?(i[t].push(n),a[t]+=1,l[t]=o[t][a[t]]):(i[t].push({...n,content:n.content.slice(0,e)}),l[t]={...n,content:n.content.slice(e)})}}}return t}(...r.map((r=>IJ(e,t,{...n,theme:r[1],includeExplanation:!1}))));return r.map((([e,t],n)=>[e,t,o[n]]))}function LJ(e,t,n){let r,o,i,a,l;if("themes"in n){const{defaultColor:s="light",cssVariablePrefix:c="--shiki-"}=n;if(0===Object.entries(n.themes).filter((e=>e[1])).length)throw new Error("[shikiji] `themes` option must not be empty");const u=MJ(e,t,n).sort((e=>e[0]===s?-1:1));if(s&&!u.find((e=>e[0]===s)))throw new Error(`[shikiji] \`themes\` option must contain the defaultColor key \`${s}\``);const d=u.map((t=>e.getTheme(t[1]))),f=u.map((e=>e[2]));i=[];for(let e=0;e<f[0].length;e++){const t=f.map((t=>t[e])),n=[];i.push(n);for(let e=0;e<t[0].length;e++){const r=t.map((t=>t[e])),o=r.map((e=>zJ(e))),i=new Set(o.flatMap((e=>Object.keys(e)))),a=o.reduce(((e,t,n)=>{for(const r of i){const o=t[r]||"inherit";if(0===n&&s)e[r]=o;else{const t=c+u[n][0]+("color"===r?"":`-${r}`);e[r]?e[r]+=`;${t}:${o}`:e[r]=`${t}:${o}`}}return e}),{});n.push({...r[0],color:"",htmlStyle:s?BJ(a):Object.values(a).join(";")})}}o=u.map(((e,t)=>(0===t&&s?"":`${c+e[0]}:`)+d[t].fg)).join(";"),r=u.map(((e,t)=>(0===t&&s?"":`${c+e[0]}-bg:`)+d[t].bg)).join(";"),a=`shiki-themes ${d.map((e=>e.name)).join(" ")}`,l=s?void 0:[o,r].join(";")}else{if(!("theme"in n))throw new Error("[shikiji] Invalid options, either `theme` or `themes` must be provided");{i=IJ(e,t,{...n,includeExplanation:!1});const l=e.getTheme(n.theme);r=l.bg,o=l.fg,a=l.name}}return function(e,t){var n,r,o;const{mergeWhitespaces:i=!0,transformers:a=[]}=t;t.transforms&&(a.push(t.transforms),console.warn("[shikiji] `transforms` option is deprecated, use `transformers` instead"));i&&(e=function(e){return e.map((e=>{const t=[];let n="";return e.forEach(((r,o)=>{r.content.match(/^\s+$/)&&e[o+1]?n+=r.content:n?(t.push({...r,content:n+r.content}),n=""):t.push(r)})),t}))}(e));const l=[],s={type:"root",children:[]};let c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,tabindex:"0",...t.meta},children:[]},u={type:"element",tagName:"code",properties:{},children:l};const d={get tokens(){return e},get options(){return t},get root(){return s},get pre(){return c},get code(){return u}};e.forEach(((e,t)=>{var n,r;t&&l.push({type:"text",value:"\n"});let o={type:"element",tagName:"span",properties:{class:"line"},children:[]},i=0;for(const l of e){let e={type:"element",tagName:"span",properties:{},children:[{type:"text",value:l.content}]};const r=l.htmlStyle||BJ(zJ(l));r&&(e.properties.style=r);for(const l of a)e=(null==(n=null==l?void 0:l.token)?void 0:n.call(d,e,t+1,i,o))||e;o.children.push(e),i+=l.content.length}for(const l of a)o=(null==(r=null==l?void 0:l.line)?void 0:r.call(d,o,t+1))||o;l.push(o)}));for(const p of a)u=(null==(n=null==p?void 0:p.code)?void 0:n.call(d,u))||u;c.children.push(u);for(const p of a)c=(null==(r=null==p?void 0:p.pre)?void 0:r.call(d,c))||c;s.children.push(c);let f=s;for(const p of a)f=(null==(o=null==p?void 0:p.root)?void 0:o.call(d,f))||f;return f}(i,{...n,fg:o,bg:r,themeName:a,rootStyle:l})}function zJ(e){const t={};return e.color&&(t.color=e.color),e.fontStyle&&(e.fontStyle&kJ.Italic&&(t["font-style"]="italic"),e.fontStyle&kJ.Bold&&(t["font-weight"]="bold"),e.fontStyle&kJ.Underline&&(t["text-decoration"]="underline")),t}function BJ(e){return Object.entries(e).map((([e,t])=>`${e}:${t}`)).join(";")}function HJ(e,t,n){var r,o;let i=t;for(const l of n.transformers||[])i=(null==(r=l.preprocess)?void 0:r.call(l,i,n))||i;let a=function(e,t){const n=t||vJ,r=n.quote||'"',o='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:xJ,all:SJ,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||aQ,characterReferences:n.characterReferences||yJ,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?zQ:LQ,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(LJ(e,i,n));for(const l of n.transformers||[])a=(null==(o=l.postprocess)?void 0:o.call(l,a,n))||a;return a}var WJ={exports:{}},UJ={},VJ=B;var GJ="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},qJ=VJ.useState,XJ=VJ.useEffect,KJ=VJ.useLayoutEffect,YJ=VJ.useDebugValue;function QJ(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!GJ(e,n)}catch(r){return!0}}var JJ="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=qJ({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return KJ((function(){o.value=n,o.getSnapshot=t,QJ(o)&&i({inst:o})}),[e,n,t]),XJ((function(){return QJ(o)&&i({inst:o}),e((function(){QJ(o)&&i({inst:o})}))}),[e]),YJ(n),n};UJ.useSyncExternalStore=void 0!==VJ.useSyncExternalStore?VJ.useSyncExternalStore:JJ,WJ.exports=UJ;var ZJ=WJ.exports;const eZ=()=>{},tZ=eZ(),nZ=Object,rZ=e=>e===tZ,oZ=e=>"function"==typeof e,iZ=(e,t)=>({...e,...t}),aZ=new WeakMap;let lZ=0;const sZ=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(nZ(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=aZ.get(e),o)return o;if(o=++lZ+"~",aZ.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=sZ(e[i])+",";aZ.set(e,o)}if(n==nZ){o="#";const t=nZ.keys(e).sort();for(;!rZ(i=t.pop());)rZ(e[i])||(o+=i+":"+sZ(e[i])+",");aZ.set(e,o)}}return o},cZ=new WeakMap,uZ={},dZ={},fZ="undefined",pZ=typeof window!=fZ,hZ=typeof document!=fZ,gZ=(e,t)=>{const n=cZ.get(e);return[()=>!rZ(t)&&e.get(t)||uZ,r=>{if(!rZ(t)){const o=e.get(t);t in dZ||(dZ[t]=o),n[5](t,iZ(o,r),o||uZ)}},n[6],()=>!rZ(t)&&t in dZ?dZ[t]:!rZ(t)&&e.get(t)||uZ]};let mZ=!0;const[bZ,vZ]=pZ&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[eZ,eZ],yZ={isOnline:()=>mZ,isVisible:()=>{const e=hZ&&document.visibilityState;return rZ(e)||"hidden"!==e}},wZ={initFocus:e=>(hZ&&document.addEventListener("visibilitychange",e),bZ("focus",e),()=>{hZ&&document.removeEventListener("visibilitychange",e),vZ("focus",e)}),initReconnect:e=>{const t=()=>{mZ=!0,e()},n=()=>{mZ=!1};return bZ("online",t),bZ("offline",n),()=>{vZ("online",t),vZ("offline",n)}}},xZ=!H.useId,SZ=!pZ||"Deno"in window,kZ=e=>pZ&&typeof window.requestAnimationFrame!=fZ?window.requestAnimationFrame(e):setTimeout(e,1),CZ=SZ?B.useEffect:B.useLayoutEffect,EZ="undefined"!=typeof navigator&&navigator.connection,OZ=!SZ&&EZ&&(["slow-2g","2g"].includes(EZ.effectiveType)||EZ.saveData),DZ=e=>{if(oZ(e))try{e=e()}catch(n){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?sZ(e):"",t]};let $Z=0;const jZ=()=>++$Z;var PZ=3,_Z=0,NZ=2,IZ=1;async function TZ(...e){const[t,n,r,o]=e,i=iZ({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let a=i.populateCache;const l=i.rollbackOnError;let s=i.optimisticData;const c=!1!==i.revalidate,u=i.throwOnError;if(oZ(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(d))}return d(n);async function d(n){const[o]=DZ(n);if(!o)return;const[i,d]=gZ(t,o),[f,p,h,g]=cZ.get(t),m=()=>{const e=f[o];return c&&(delete h[o],delete g[o],e&&e[0])?e[0](2).then((()=>i().data)):i().data};if(e.length<3)return m();let b,v=r;const y=jZ();p[o]=[y,0];const w=!rZ(s),x=i(),S=x.data,k=x._c,C=rZ(k)?S:k;if(w&&(s=oZ(s)?s(C,S):s,d({data:s,_c:C})),oZ(v))try{v=v(C)}catch(E){b=E}if(v&&oZ(v.then)){if(v=await v.catch((e=>{b=e})),y!==p[o][0]){if(b)throw b;return v}b&&w&&(e=>"function"==typeof l?l(e):!1!==l)(b)&&(a=!0,d({data:C,_c:tZ}))}if(a&&!b)if(oZ(a)){const e=a(v,C);d({data:e,error:tZ,_c:tZ})}else d({data:v,error:tZ,_c:tZ});if(p[o][1]=jZ(),Promise.resolve(m()).then((()=>{d({_c:tZ})})),!b)return v;if(u)throw b}}const FZ=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},[AZ,RZ]=((e,t)=>{if(!cZ.has(e)){const n=iZ(wZ,t),r={},o=TZ.bind(tZ,e);let i=eZ;const a={},l=(e,t)=>{const n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},s=(t,n,r)=>{e.set(t,n);const o=a[t];if(o)for(const e of o)e(n,r)},c=()=>{if(!cZ.has(e)&&(cZ.set(e,[r,{},{},{},o,s,l]),!SZ)){const t=n.initFocus(setTimeout.bind(tZ,FZ.bind(tZ,r,0))),o=n.initReconnect(setTimeout.bind(tZ,FZ.bind(tZ,r,1)));i=()=>{t&&t(),o&&o(),cZ.delete(e)}}};return c(),[e,o,c,i]}return[e,cZ.get(e)[4]]})(new Map),MZ=iZ({onLoadingSlow:eZ,onSuccess:eZ,onError:eZ,onErrorRetry:(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!rZ(i)&&a>i||setTimeout(r,l,o)},onDiscarded:eZ,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:OZ?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:OZ?5e3:3e3,compare:(e,t)=>sZ(e)==sZ(t),isPaused:()=>!1,cache:AZ,mutate:RZ,fallback:{}},yZ),LZ=B.createContext({}),zZ=pZ&&window.__SWR_DEVTOOLS_USE__,BZ=zZ?window.__SWR_DEVTOOLS_USE__:[],HZ=BZ.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=DZ(t),[,,,o]=cZ.get(AZ);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return rZ(i)?n(...e):(delete o[r],i)}),r)));zZ&&(window.__SWR_DEVTOOLS_REACT__=H);const WZ=H.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),UZ={dedupe:!0},VZ=(GZ=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:l,revalidateIfStale:s,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[p,h,g,m]=cZ.get(r),[b,v]=DZ(e),y=B.useRef(!1),w=B.useRef(!1),x=B.useRef(b),S=B.useRef(t),k=B.useRef(n),C=()=>k.current,E=()=>C().isVisible()&&C().isOnline(),[O,D,$,j]=gZ(r,b),P=B.useRef({}).current,_=rZ(a)?n.fallback[b]:a,N=(e,t)=>{for(const n in P){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!rZ(e[r]))return!1;if(!o(H,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},I=B.useMemo((()=>{const e=!!b&&!!t&&(rZ(l)?!C().isPaused()&&!i&&(!!rZ(s)||s):l),n=t=>{const n=iZ(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=O(),o=j(),a=n(r),c=r===o?a:n(o);let u=a;return[()=>{const e=n(O());return N(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>c]}),[r,b]),T=ZJ.useSyncExternalStore(B.useCallback((e=>$(b,((t,n)=>{N(n,t)||e()}))),[r,b]),I[0],I[1]),F=!y.current,A=p[b]&&p[b].length>0,R=T.data,M=rZ(R)?_:R,L=T.error,z=B.useRef(M),H=f?rZ(R)?z.current:R:M,W=!(A&&!rZ(L))&&(F&&!rZ(l)?l:!C().isPaused()&&(i?!rZ(M)&&s:rZ(M)||s)),U=!!(b&&t&&F&&W),V=rZ(T.isValidating)?U:T.isValidating,G=rZ(T.isLoading)?U:T.isLoading,q=B.useCallback((async e=>{const t=S.current;if(!b||!t||w.current||C().isPaused())return!1;let r,i,a=!0;const l=e||{},s=!g[b]||!l.dedupe,c=()=>xZ?!w.current&&b===x.current&&y.current:b===x.current,u={isValidating:!1,isLoading:!1},d=()=>{D(u)},f=()=>{const e=g[b];e&&e[1]===i&&delete g[b]},m={isValidating:!0};rZ(O().data)&&(m.isLoading=!0);try{if(s&&(D(m),n.loadingTimeout&&rZ(O().data)&&setTimeout((()=>{a&&c()&&C().onLoadingSlow(b,n)}),n.loadingTimeout),g[b]=[t(v),jZ()]),[r,i]=g[b],r=await r,s&&setTimeout(f,n.dedupingInterval),!g[b]||g[b][1]!==i)return s&&c()&&C().onDiscarded(b),!1;u.error=tZ;const e=h[b];if(!rZ(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),s&&c()&&C().onDiscarded(b),!1;const l=O().data;u.data=o(l,r)?l:r,s&&c()&&C().onSuccess(r,b,n)}catch(k){f();const e=C(),{shouldRetryOnError:t}=e;e.isPaused()||(u.error=k,s&&c()&&(e.onError(k,b,e),(!0===t||oZ(t)&&t(k))&&E()&&e.onErrorRetry(k,b,e,(e=>{const t=p[b];t&&t[0]&&t[0](PZ,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return a=!1,d(),!0}),[b,r]),X=B.useCallback(((...e)=>TZ(r,x.current,...e)),[]);if(CZ((()=>{S.current=t,k.current=n,rZ(R)||(z.current=R)})),CZ((()=>{if(!b)return;const e=q.bind(tZ,UZ);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(b,p,((n,r={})=>{if(n==_Z){const n=Date.now();C().revalidateOnFocus&&n>t&&E()&&(t=n+C().focusThrottleInterval,e())}else if(n==IZ)C().revalidateOnReconnect&&E()&&e();else{if(n==NZ)return q();if(n==PZ)return q(r)}}));return w.current=!1,x.current=b,y.current=!0,D({_k:v}),W&&(rZ(M)||SZ?e():kZ(e)),()=>{w.current=!0,n()}}),[b]),CZ((()=>{let e;function t(){const t=oZ(c)?c(O().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){O().error||!u&&!C().isVisible()||!d&&!C().isOnline()?t():q(UZ).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,u,d,b]),B.useDebugValue(H),i&&rZ(M)&&b){if(!xZ&&SZ)throw new Error("Fallback data is required when using suspense in SSR.");S.current=t,k.current=n,w.current=!1;const e=m[b];if(!rZ(e)){const t=X(e);WZ(t)}if(!rZ(L))throw L;{const e=q(UZ);rZ(H)||(e.status="fulfilled",e.value=!0),WZ(e)}}return{mutate:X,get data(){return P.data=!0,H},get error(){return P.error=!0,L},get isValidating(){return P.isValidating=!0,V},get isLoading(){return P.isLoading=!0,G}}},function(...e){const t=iZ(MZ,B.useContext(LZ)),[n,r,o]=(e=>oZ(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(e),i=((e,t)=>{const n=iZ(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=iZ(o,a))}return n})(t,o);let a=GZ;const{use:l}=i,s=(l||[]).concat(HZ);for(let c=s.length;c--;)a=s[c](a);return a(n,r||i.fetcher||null,i)});var GZ,qZ,XZ,KZ={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},YZ=["children","title","className","wrapClassName","width","onCancel","open","destroyOnClose"];function QZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QZ(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ZZ=BB((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{content:t(qZ||(qZ=hf(["\n .","-modal-body {\n overflow: hidden;\n padding: 0 16px 16px;\n }\n .","-modal-footer {\n padding: 0 16px 16px;\n }\n .","-modal-header {\n display: flex;\n gap: 4px;\n align-items: center;\n justify-content: center;\n\n margin-bottom: 0;\n padding: 16px;\n }\n .","-modal-content {\n overflow: hidden;\n padding: 0;\n border: 1px solid ",";\n border-radius: ","px;\n }\n "])),r,r,r,r,n.colorSplit,n.borderRadiusLG),wrap:t(XZ||(XZ=hf(["\n overflow: hidden auto;\n backdrop-filter: blur(2px);\n "])))}}));const e0=B.memo((function(e){var t=e.children,n=e.title,r=e.className,o=e.wrapClassName,i=e.width,a=void 0===i?700:i,l=e.onCancel,s=e.open,c=e.destroyOnClose,u=Od(e,YZ),d=fB().mobile,f=ZZ(),p=f.styles,h=f.cx,g=f.theme;return d?Q.jsx(cM,{closeIcon:Q.jsx(yH,{icon:df,size:{blockSize:32,fontSize:20}}),destroyOnClose:c,drawerStyle:{background:"linear-gradient(to bottom, ".concat(g.colorBgContainer,", ").concat(g.colorBgLayout,")")},height:"75vh",maskClassName:h(p.wrap,o),onClose:l,open:s,placement:"bottom",styles:JZ({body:{padding:0},header:{padding:"8px 4px"}},u.styles),title:n,children:t}):Q.jsx(xx,{theme:{token:{colorBgElevated:vV(.005,g.colorBgContainer)}},children:Q.jsx(wL,JZ(JZ({className:h(p.content,r),closable:!0,closeIcon:Q.jsx(eH,{icon:df,size:{fontSize:20}}),destroyOnClose:c,maskClosable:!0,onCancel:l,open:s,title:n,width:a,wrapClassName:h(p.wrap,o)},u),{},{children:t}))})}));var t0,n0,r0,o0,i0,a0,l0,s0,c0,u0,d0,f0,p0,h0,g0,m0,b0,v0,y0,w0,x0=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S0=function(){return S0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},S0.apply(this,arguments)},k0={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},C0={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},E0={width:"20px",height:"20px",position:"absolute"},O0={top:S0(S0({},k0),{top:"-5px"}),right:S0(S0({},C0),{left:void 0,right:"-5px"}),bottom:S0(S0({},k0),{top:void 0,bottom:"-5px"}),left:S0(S0({},C0),{left:"-5px"}),topRight:S0(S0({},E0),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:S0(S0({},E0),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:S0(S0({},E0),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:S0(S0({},E0),{left:"-10px",top:"-10px",cursor:"nw-resize"})},D0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return x0(t,e),t.prototype.render=function(){return B.createElement("div",{className:this.props.className||"",style:S0(S0({position:"absolute",userSelect:"none"},O0[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(B.PureComponent),$0=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j0=function(){return j0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j0.apply(this,arguments)},P0={width:"auto",height:"auto"},_0=function(e,t,n){return Math.max(Math.min(e,n),t)},N0=function(e,t){return Math.round(e/t)*t},I0=function(e,t){return new RegExp(e,"i").test(t)},T0=function(e){return Boolean(e.touches&&e.touches.length)},F0=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},A0=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},R0=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},M0=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],L0="__resizable_base__",z0=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(L0):t.className+=L0,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return $0(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||P0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return A0(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?A0(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?A0(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&I0("left",i),l=o&&I0("top",i);if("parent"===this.props.bounds){var s=this.parentNode;s&&(n=a?this.resizableRight-this.parentLeft:s.offsetWidth+(this.parentLeft-this.resizableLeft),r=l?this.resizableBottom-this.parentTop:s.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,l=this.props,s=l.lockAspectRatio,c=l.lockAspectRatioExtraHeight,u=l.lockAspectRatioExtraWidth,d=a.width,f=a.height,p=c||0,h=u||0;return I0("right",i)&&(d=a.width+(e-a.x)*r/n,s&&(f=(d-h)/this.ratio+p)),I0("left",i)&&(d=a.width-(e-a.x)*r/n,s&&(f=(d-h)/this.ratio+p)),I0("bottom",i)&&(f=a.height+(t-a.y)*r/n,s&&(d=(f-p)*this.ratio+h)),I0("top",i)&&(f=a.height-(t-a.y)*r/n,s&&(d=(f-p)*this.ratio+h)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,l=o.lockAspectRatioExtraWidth,s=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=l||0;if(i){var h=(u-f)*this.ratio+p,g=(d-f)*this.ratio+p,m=(s-p)/this.ratio+f,b=(c-p)/this.ratio+f,v=Math.max(s,h),y=Math.min(c,g),w=Math.max(u,m),x=Math.min(d,b);e=_0(e,v,y),t=_0(t,w,x)}else e=_0(e,s,c),t=_0(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,l=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=l}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&T0(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var l=this.window.getComputedStyle(a).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var s={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:j0(j0({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(s)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&T0(e))try{e.preventDefault(),e.stopPropagation()}catch(GY){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,l=T0(e)?e.touches[0].clientX:e.clientX,s=T0(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,p=c.height,h=this.getParentSize(),g=function(e,t,n,r,o,i,a){return r=R0(r,e.width,t,n),o=R0(o,e.height,t,n),i=R0(i,e.width,t,n),a=R0(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(h,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=g.maxWidth,o=g.maxHeight,i=g.minWidth,a=g.minHeight;var m=this.calculateNewSizeFromDirection(l,s),b=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(v=F0(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(b=F0(b,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(v,b,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(v=w.newWidth,b=w.newHeight,this.props.grid){var x=N0(v,this.props.grid[0]),S=N0(b,this.props.grid[1]),k=this.props.snapGap||0;v=0===k||Math.abs(x-v)<=k?x:v,b=0===k||Math.abs(S-b)<=k?S:b}var C={width:v-d.width,height:b-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))v=v/h.width*100+"%";else if(f.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(p.endsWith("%"))b=b/h.height*100+"%";else if(p.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}var E={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(b,"height")};"row"===this.flexDir?E.flexBasis=E.width:"column"===this.flexDir&&(E.flexBasis=E.height),vd.flushSync((function(){t.setState(E)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:j0(j0({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var s=Object.keys(n).map((function(t){return!1!==n[t]?B.createElement(D0,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},l&&l[t]?l[t]:null):null}));return B.createElement("div",{className:a,style:i},s)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==M0.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=j0(j0(j0({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return B.createElement(r,j0({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&B.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(B.PureComponent),B0=16,H0="draggable-panel",W0=BB((function(e,t){var n=e.token,r=WB(t0||(t0=hf(["\n position: relative;\n\n &::before {\n content: '';\n position: absolute;\n z-index: 50;\n transition: all 0.2s ",";\n }\n\n &:hover,\n &:active {\n &::before {\n background: "," !important;\n }\n }\n "])),n.motionEaseOut,n.colorPrimary),o=WB(n0||(n0=hf(["\n position: absolute;\n z-index: 101;\n opacity: 0;\n transition: all 0.2s ",";\n\n &:hover {\n opacity: 1 !important;\n }\n\n &:active {\n opacity: 1 !important;\n }\n\n > div {\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),n.motionEaseOut,n.colorTextTertiary,n.colorFillTertiary,n.colorBorderSecondary,n.motionEaseOut,n.colorTextSecondary,n.colorFillSecondary,n.colorText,n.colorFill),i=WB(r0||(r0=hf(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:UB(i,WB(o0||(o0=hf(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:UB("".concat(H0,"-bottom-handle"),WB(i0||(i0=hf(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:UB(H0,WB(a0||(a0=hf(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,H0)),fixed:WB(l0||(l0=hf(["\n position: relative;\n "]))),fullscreen:WB(s0||(s0=hf(["\n position: absolute;\n inset: ","px 0 0 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),t,t,n.colorBgLayout),handlerIcon:WB(c0||(c0=hf(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:UB(i,WB(u0||(u0=hf(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:UB(WB(d0||(d0=hf(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(H0,"-left-handle")),panel:UB("".concat(H0,"-fixed"),WB(f0||(f0=hf(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:UB(i,WB(p0||(p0=hf(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:UB(WB(h0||(h0=hf(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(H0,"-right-handle")),toggleBottom:UB("".concat(H0,"-toggle"),"".concat(H0,"-toggle-bottom"),o,WB(g0||(g0=hf(["\n bottom: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: 16px;\n margin-left: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,B0,40)),toggleLeft:UB("".concat(H0,"-toggle"),"".concat(H0,"-toggle-left"),o,WB(m0||(m0=hf(["\n left: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,B0,B0,40)),toggleRight:UB("".concat(H0,"-toggle"),"".concat(H0,"-toggle-right"),o,WB(b0||(b0=hf(["\n right: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,B0,B0,40)),toggleTop:UB("".concat(H0,"-toggle"),"".concat(H0,"-toggle-top"),o,WB(v0||(v0=hf(["\n top: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: ","px;\n margin-left: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,B0,40,B0)),topFloat:UB(i,WB(y0||(y0=hf(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:UB("".concat(H0,"-top-handle"),WB(w0||(w0=hf(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),U0=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};function V0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V0(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const q0=B.memo((function(e){var t,n,r,o,i,a,l,s,c,u,d,f=e.headerHeight,p=void 0===f?0:f,h=e.fullscreen,g=e.maxHeight,m=e.pin,b=void 0===m||m,v=e.mode,y=void 0===v?"fixed":v,w=e.children,x=e.placement,S=void 0===x?"right":x,k=e.resize,C=e.style,E=e.size,O=e.defaultSize,D=e.minWidth,$=e.minHeight,j=e.maxWidth,P=e.onSizeChange,_=e.onSizeDragging,N=e.expandable,I=void 0===N||N,T=e.expand,F=e.defaultExpand,A=void 0===F||F,R=e.onExpandChange,M=e.className,L=e.showHandlerWhenUnexpand,z=e.destroyOnClose,H=e.hanlderStyle,W=e.classNames,U=void 0===W?{}:W,V=B.useRef(),G=(t=V,o=(r=n||{}).onEnter,i=r.onLeave,a=r.onChange,l=DV(eG(!1),2),s=l[0],c=l[1],u=c.setTrue,d=c.setFalse,eY("mouseenter",(function(){null==o||o(),u(),null==a||a(!0)}),{target:t}),eY("mouseleave",(function(){null==i||i(),d(),null==a||a(!1)}),{target:t}),s),q="top"===S||"bottom"===S,X=W0(p),K=X.styles,Y=X.cx,J=gg(CB(A,{onChange:R,value:T}),2),Z=J[0],ee=J[1];B.useEffect((function(){b||(G&&!Z?ee(!0):!G&&Z&&ee(!1))}),[b,G,Z]);var te=gg(B.useState(!0),2),ne=te[0],re=te[1],oe=gg(B.useState(!1),2),ie=oe[0],ae=oe[1],le=!1!==k&&Z,se=B.useMemo((function(){return le?Ed({},U0(S),K["".concat(U0(S),"Handle")]):{}}),[le,S]),ce=G0(Ed({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},U0(S),!0),k),ue=B.useMemo((function(){return G0(q?{height:180,width:"100%"}:{height:"100%",width:280},O)}),[q]),de=Z?{defaultSize:ue,maxHeight:"number"==typeof g?Math.max(g,0):g,maxWidth:"number"==typeof j?Math.max(j,0):j,minHeight:"number"==typeof $?Math.max($,0):$,minWidth:"number"==typeof D?Math.max(D,0):D,size:E}:q?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},fe=B.useMemo((function(){switch(S){case"top":return{Arrow:Td,className:"Bottom"};case"bottom":return{Arrow:Rd,className:"Top"};case"right":return{Arrow:Fd,className:"Left"};case"left":return{Arrow:Ad,className:"Right"}}}),[K,S]),pe=fe.Arrow,he=fe.className,ge=Q.jsx(YW,{className:Y(K["toggle".concat(he)],U.handle),style:{opacity:Z?b?void 0:0:L?1:0},children:Q.jsx(YW,{onClick:function(){ee(!Z)},style:H,children:Q.jsx("div",{className:K.handlerIcon,style:{transform:"rotate(".concat(Z?180:0,"deg)")},children:Q.jsx(pe,{size:16,strokeWidth:1.5})})})}),me=Q.jsx(z0,G0(G0({},de),{},{className:Y(K.panel,U.content),enable:le?ce:void 0,handleClasses:se,onResize:function(e,t,n,r){null==_||_(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){ae(!0),re(!1)},onResizeStop:function(e,t,n,r){ae(!1),re(!0),null==P||P(r,{height:n.style.height,width:n.style.width})},style:G0({transition:ie?"unset":void 0},C),children:w}));return h?Q.jsx("div",{className:Y(K.fullscreen,M),children:w}):Q.jsxs("aside",{className:Y(K.container,K["fixed"===y?"fixed":"".concat(S,"Float")],M),ref:V,style:Z?Ed({},"border".concat(he,"Width"),1):{},children:[I&&ne&&ge,z?Z&&me:me]})}));var X0,K0,Y0,Q0,J0=BB((function(e){var t=e.css,n=e.token;return{body:t(X0||(X0=hf(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(K0||(K0=hf(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(Y0||(Y0=hf(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n\n padding: 8px 16px;\n\n border-top: 1px solid ",";\n "])),n.colorBorderSecondary),header:t(Q0||(Q0=hf(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding: 8px 16px;\n\n font-weight: 500;\n\n border-bottom: 1px solid ",";\n "])),n.colorBorderSecondary)}})),Z0=["className","children"];function e1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e1(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const n1=B.memo((function(e){var t=e.className,n=e.children,r=Od(e,Z0),o=J0(),i=o.cx,a=o.styles;return Q.jsx("div",t1(t1({className:i(a.body,t)},r),{},{children:n}))}));var r1=["className","children"];function o1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o1(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const a1=B.memo((function(e){var t=e.className,n=e.children,r=Od(e,r1),o=J0(),i=o.cx,a=o.styles;return Q.jsx("div",i1(i1({className:i(a.container,t)},r),{},{children:n}))}));var l1=["className","children"];function s1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s1(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const u1=B.memo((function(e){var t=e.className,n=e.children,r=Od(e,l1),o=J0(),i=o.cx,a=o.styles;return Q.jsx("div",c1(c1({className:i(a.footer,t)},r),{},{children:n}))}));var d1=["pin","setPin","className","setExpand","title","position"];function f1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f1(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const h1=B.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,i=e.title,a=e.position,l=void 0===a?"left":a,s=Od(e,d1),c=J0(),u=c.cx,d=c.styles,f=Q.jsx(yH,{icon:Zd,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),p=Q.jsx(yH,{active:t,icon:t?rf:nf,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return Q.jsxs("div",p1(p1({className:u(d.header,r)},s),{},{children:["left"===l?f:p,i,"left"===l?p:f]}))}));var g1=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};const m1=n(g1);const b1=B.memo((function(e){var t=e.url,n=B.useRef(!1);return B.useEffect((function(){if(!n.current){n.current=!0;var e=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}(t);document.head.append(e)}}),[]),null}));var v1,y1,w1=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,i=void 0===o?[]:o,a=e.style,l=e.className;return H.createElement("div",{className:Km("".concat(t,"-column"),l),style:a},(r||n)&&H.createElement("h2",null,n&&H.createElement("span",{className:"".concat(t,"-column-icon")},n),r),i.map((function(e,n){var r=e.LinkComponent||"a";return H.createElement("div",{className:Km("".concat(t,"-item"),e.className),style:e.style,key:n},H.createElement(r,{href:e.url,to:"string"!=typeof r?e.url:void 0,target:e.openExternal?"_blank":void 0,rel:e.openExternal?"noopener noreferrer":void 0},e.icon&&H.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&H.createElement(H.Fragment,null,H.createElement("span",{className:"".concat(t,"-item-separator")},"-"),H.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},x1=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],S1=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,i=e.bottom,a=e.columns,l=e.maxColumnsPerRow,s=e.backgroundColor,c=e.columnLayout,u=e.theme,d=void 0===u?"dark":u,f=Od(e,x1),p=Km("".concat(n),r,Ed({},"".concat(n,"-").concat(d),!!d)),h="number"==typeof l&&l>0;return H.createElement("footer",Rh(Rh({},f),{},{className:p,style:Rh(Rh({},o),{},{backgroundColor:s})}),H.createElement("section",{className:"".concat(n,"-container")},a&&a.length>0&&H.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:h?"wrap":void 0}},a.map((function(e,t){var r=e.title,o=e.icon,i=e.style,a=e.className,s=e.items,c=void 0===s?[]:s,u=Rh({},i);return h&&(u.flex="0 0 ".concat(100/(l+1)+.1,"%")),H.createElement(w1,{key:t,prefixCls:n,title:r,icon:o,items:c,style:u,className:a})})))),i&&H.createElement("section",{className:"".concat(n,"-bottom")},H.createElement("div",{className:"".concat(n,"-bottom-container")},i)))},k1=BB((function(e,t){var n=e.css,r=e.responsive,o=e.token,i=t.isEmpty,a=t.contentMaxWidth,l="rc-footer";return{container:n(v1||(v1=hf(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-top: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,r.mobile),footer:n(y1||(y1=hf(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: left;\n\n h2 {\n position: relative;\n\n margin: 0 auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin: 12px 0;\n\n &-icon {\n position: relative;\n top: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin: 0 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin: 0 auto;\n padding: 16px 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-top-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding: 40px 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-bottom: 40px;\n text-align: center;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,l,o.colorTextTertiary,o.colorLinkHover,l,a,i?"0":"60px 0 20px",o.colorText,o.colorTextDescription,a,r.mobile,l)}}));const C1=B.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,i=void 0===o?960:o,a=!t||0===(null==t?void 0:t.length),l=k1({contentMaxWidth:i,isEmpty:a}).styles;return Q.jsx("section",{className:l.container,children:Q.jsx(S1,{bottom:n,className:l.footer,columns:t,theme:r})})}));var E1,O1,D1,$1,j1,P1,_1,N1,I1,T1,F1,A1,R1,M1=BB((function(e,t){var n,r=e.css,o=e.cx,i=e.token,a=e.isDarkMode,l=e.responsive,s=e.prefixCls;return{footer:r(E1||(E1=hf(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(O1||(O1=hf(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 6px;\n\n text-align: left;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .","-tag {\n font-family: ",";\n }\n "])),i.colorTextDescription,s,i.fontFamilyCode),group:o(a&&r(D1||(D1=hf(["\n .","-collapse-content {\n background: transparent;\n }\n\n .","-collapse-header {\n background: ",";\n }\n "])),s,s,i.colorFillTertiary),r($1||($1=hf(["\n .","-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .","-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n\n .","-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])),s,s,s)),icon:r(j1||(j1=hf(["\n transition: all 100ms ",";\n "])),i.motionEaseOut),item:r(P1||(P1=hf(["\n padding: 16px 0;\n\n .","-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n\n .","-form-item-required::before {\n align-self: flex-start;\n }\n\n ","\n\n "," {\n padding: 16px 0;\n\n ","\n }\n "])),s,s,t&&r(_1||(_1=hf(["\n .","-form-item-control {\n width: ",";\n }\n "])),s,(n=t,"number"==typeof n||NH(n)&&"[object Number]"==_H(n)?"".concat(t,"px"):t)),l.mobile,t?r(N1||(N1=hf(["\n .","-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .","-form-item-control {\n flex: 1;\n width: 100%;\n }\n "])),s,s):r(I1||(I1=hf(["\n .","-row {\n flex-wrap: wrap;\n gap: 4px;\n }\n "])),s)),itemNoDivider:r(T1||(T1=hf(["\n &:not(:first-child) {\n padding-top: 0;\n }\n "]))),mobileGroupBody:r(F1||(F1=hf(["\n padding: 0 16px;\n background: ",";\n "])),i.colorBgContainer),mobileGroupHeader:r(A1||(A1=hf(["\n padding: 16px;\n background: ",";\n "])),i.colorBgLayout),title:r(R1||(R1=hf(["\n display: flex;\n gap: 8px;\n align-items: center;\n\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n\n "," {\n font-size: 14px;\n font-weight: 400;\n opacity: 0.5;\n }\n "])),i.colorPrimary,l.mobile)}})),L1=["className","children"];function z1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z1(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const H1=B.memo((function(e){var t=e.className,n=e.children,r=Od(e,L1),o=M1(),i=o.cx,a=o.styles;return Q.jsx("div",B1(B1({className:i(a.footer,t)},r),{},{children:n}))}));var W1=["className","icon","title","children","extra"];function U1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var V1=B.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,i=e.extra,a=Od(e,W1),l=fB().mobile,s=M1(),c=s.cx,u=s.styles,d=Q.jsxs("div",{className:u.title,children:[n&&Q.jsx(eH,{icon:n}),r]});return l?Q.jsxs(fU,{className:t,children:[Q.jsxs(fU,{className:u.mobileGroupHeader,horizontal:!0,justify:"space-between",children:[d,i]}),Q.jsx("div",{className:u.mobileGroupBody,children:o})]}):Q.jsx(NA,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U1(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:c(u.group,t),defaultActiveKey:[1],expandIcon:function(e){var t=e.isActive;return Q.jsx(eH,{className:u.icon,icon:Td,size:{fontSize:16},style:t?{}:{rotate:"-90deg"}})},items:[{children:o,extra:i,key:1,label:d}]},a),1)}));const G1=V1;var q1=["style"];function X1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X1(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Y1=B.memo((function(e){var t=e.style,n=Od(e,q1);return Q.jsx(FA,K1({style:K1({margin:0,opacity:.5},t)},n))}));const Q1=B.memo((function(e){var t=e.className,n=e.tag,r=e.title,o=e.desc,i=e.avatar,a=M1(),l=a.cx,s=a.styles,c=Q.jsxs("div",{className:l(s.formTitle,t),children:[Q.jsxs(fU,{align:"center",direction:"horizontal",gap:8,children:[r,n&&Q.jsx(PY,{children:n})]}),o&&Q.jsx("small",{children:o})]});return i?Q.jsxs(fU,{align:"center",gap:8,horizontal:!0,children:[i,c]}):c}));var J1=["desc","tag","minWidth","avatar","className","label","children","divider"];function Z1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function e2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z1(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var t2=lL.Item;const n2=B.memo((function(e){var t=e.desc,n=e.tag,r=e.minWidth,o=e.avatar,i=e.className,a=e.label,l=e.children,s=e.divider,c=Od(e,J1),u=M1(r),d=u.cx,f=u.styles;return Q.jsxs(Q.Fragment,{children:[s&&Q.jsx(Y1,{}),Q.jsx(t2,e2(e2({className:d(f.item,!s&&f.itemNoDivider,i),label:Q.jsx(Q1,{avatar:o,desc:t,tag:n,title:a})},c),{},{children:l}))]})}));var r2,o2,i2=BB((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=e.responsive;return{footer:t(r2||(r2=hf(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),form:t(o2||(o2=hf(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n "," {\n gap: 0;\n }\n\n .","-form-item {\n margin: 0 !important;\n }\n\n .","-form-item .","-form-item-label > label {\n height: unset;\n }\n\n .","-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .","-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .","-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .","-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),o.mobile,r,r,r,r,r,r,r,n.borderRadius)}})),a2=["className","itemMinWidth","footer","form","items","children"];function l2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l2(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l2(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c2=B.forwardRef((function(e,t){var n=e.className,r=e.itemMinWidth,o=e.footer,i=e.form,a=e.items,l=e.children,s=Od(e,a2),c=i2(),u=c.cx,d=c.styles;return Q.jsxs(lL,s2(s2({className:u(d.form,n),colon:!1,form:i,layout:"horizontal",ref:t},s),{},{children:[null==a?void 0:a.map((function(e,t){return Q.jsx(G1,{extra:null==e?void 0:e.extra,icon:null==e?void 0:e.icon,title:e.title,children:e.children.filter((function(e){return!e.hidden})).map((function(e,t){return Q.jsx(n2,s2({divider:0!==t,minWidth:r},e),t)}))},t)})),l,o&&Q.jsx(H1,{children:o})]}))}));c2.Item=n2,c2.Group=G1;const u2=c2;var d2,f2={};function p2(){return d2||(d2=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});
|
||
/**
|
||
* @license
|
||
* Copyright 2019 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const t=window,n=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;let i=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(n&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=o.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&o.set(t,e))}return e}toString(){return this.cssText}};const a=n?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new i("string"==typeof e?e:e+"",void 0,r))(t)})(e):e
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/;var l;const s=window,c=s.trustedTypes,u=c?c.emptyScript:"",d=s.reactiveElementPolyfillSupport,f={toAttribute(e,t){switch(t){case Boolean:e=e?u:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},p=(e,t)=>t!==e&&(t==t||e==e),h={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:p},g="finalized";let m=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,n)=>{const r=this._$Ep(n,t);void 0!==r&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=h){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||h}static finalize(){if(this.hasOwnProperty(g))return!1;this[g]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(a(e))}else void 0!==e&&t.push(a(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const r=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,r)=>{n?e.adoptedStyleSheets=r.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):r.forEach((n=>{const r=document.createElement("style"),o=t.litNonce;void 0!==o&&r.setAttribute("nonce",o),r.textContent=n.cssText,e.appendChild(r)}))})(r,this.constructor.elementStyles),r}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=h){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:f).toAttribute(t,n.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:f;this._$El=o,this[o]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||p)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(GY){Promise.reject(GY)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(n)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var b;m[g]=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:m}),(null!==(l=s.reactiveElementVersions)&&void 0!==l?l:s.reactiveElementVersions=[]).push("1.6.2");const v=window,y=v.trustedTypes,w=y?y.createPolicy("lit-html",{createHTML:e=>e}):void 0,x="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,k="?"+S,C=`<${k}>`,E=document,O=()=>E.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,$=Array.isArray,j="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,N=/>/g,I=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,F=/"/g,A=/^(?:script|style|textarea|title)$/i,R=(H=1,(e,...t)=>({_$litType$:H,strings:e,values:t})),M=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),z=new WeakMap,B=E.createTreeWalker(E,129,null,!1);var H;class W{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const a=e.length-1,l=this.parts,[s,c]=((e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"<svg>":"",a=P;for(let s=0;s<n;s++){const t=e[s];let n,l,c=-1,u=0;for(;u<t.length&&(a.lastIndex=u,l=a.exec(t),null!==l);)u=a.lastIndex,a===P?"!--"===l[1]?a=_:void 0!==l[1]?a=N:void 0!==l[2]?(A.test(l[2])&&(o=RegExp("</"+l[2],"g")),a=I):void 0!==l[3]&&(a=I):a===I?">"===l[0]?(a=o??P,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,n=l[1],a=void 0===l[3]?I:'"'===l[3]?F:T):a===F||a===T?a=I:a===_||a===N?a=P:(a=I,o=void 0);const d=a===I&&e[s+1].startsWith("/>")?" ":"";i+=a===P?t+C:c>=0?(r.push(n),t.slice(0,c)+x+t.slice(c)+S+d):t+S+(-2===c?(r.push(void 0),s):d)}const l=i+(e[n]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(l):l,r]})(e,t);if(this.el=W.createElement(s,n),B.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=B.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const e=[];for(const t of r.getAttributeNames())if(t.endsWith(x)||t.startsWith(S)){const n=c[i++];if(e.push(t),void 0!==n){const e=r.getAttribute(n.toLowerCase()+x).split(S),t=/([.?@])?(.*)/.exec(n);l.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?X:"?"===t[1]?Y:"@"===t[1]?Q:q})}else l.push({type:6,index:o})}for(const t of e)r.removeAttribute(t)}if(A.test(r.tagName)){const e=r.textContent.split(S),t=e.length-1;if(t>0){r.textContent=y?y.emptyScript:"";for(let n=0;n<t;n++)r.append(e[n],O()),B.nextNode(),l.push({type:2,index:++o});r.append(e[t],O())}}}else if(8===r.nodeType)if(r.data===k)l.push({type:2,index:o});else{let e=-1;for(;-1!==(e=r.data.indexOf(S,e+1));)l.push({type:7,index:o}),e+=S.length-1}o++}}static createElement(e,t){const n=E.createElement("template");return n.innerHTML=e,n}}function U(e,t,n=e,r){var o,i,a,l;if(t===M)return t;let s=void 0!==r?null===(o=n._$Co)||void 0===o?void 0:o[r]:n._$Cl;const c=D(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==c&&(null===(i=null==s?void 0:s._$AO)||void 0===i||i.call(s,!1),void 0===c?s=void 0:(s=new c(e),s._$AT(e,n,r)),void 0!==r?(null!==(a=(l=n)._$Co)&&void 0!==a?a:l._$Co=[])[r]=s:n._$Cl=s),void 0!==s&&(t=U(e,s._$AS(e,t.values),s,r)),t}let V=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:E).importNode(n,!0);B.currentNode=o;let i=B.nextNode(),a=0,l=0,s=r[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new G(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new J(i,this,e)),this._$AV.push(t),s=r[++l]}a!==(null==s?void 0:s.index)&&(i=B.nextNode(),a++)}return B.currentNode=E,o}v(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}};class G{constructor(e,t,n,r){var o;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=U(this,e,t),D(e)?e===L||null==e||""===e?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==M&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>$(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==L&&D(this._$AH)?this._$AA.nextSibling.data=e:this.$(E.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=W.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{const e=new V(o,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=z.get(e.strings);return void 0===t&&z.set(e.strings,t=new W(e)),t}T(e){$(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new G(this.k(O()),this.k(O()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class q{constructor(e,t,n,r,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const o=this.strings;let i=!1;if(void 0===o)e=U(this,e,t,0),i=!D(e)||e!==this._$AH&&e!==M,i&&(this._$AH=e);else{const r=e;let a,l;for(e=o[0],a=0;a<o.length-1;a++)l=U(this,r[n+a],t,a),l===M&&(l=this._$AH[a]),i||(i=!D(l)||l!==this._$AH[a]),l===L?e=L:e!==L&&(e+=(l??"")+o[a+1]),this._$AH[a]=l}i&&!r&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class X extends q{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}}const K=y?y.emptyScript:"";class Y extends q{constructor(){super(...arguments),this.type=4}j(e){e&&e!==L?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class Q extends q{constructor(e,t,n,r,o){super(e,t,n,r,o),this.type=5}_$AI(e,t=this){var n;if((e=null!==(n=U(this,e,t,0))&&void 0!==n?n:L)===M)return;const r=this._$AH,o=e===L&&r!==L||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==L&&(r===L||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}class J{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){U(this,e)}}const Z=v.litHtmlPolyfillSupport;null==Z||Z(W,G),(null!==(b=v.litHtmlVersions)&&void 0!==b?b:v.litHtmlVersions=[]).push("2.7.4");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
var ee,te;let ne=class extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,n)=>{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let a=i._$litPart$;if(void 0===a){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new G(t.insertBefore(O(),e),e,void 0,n??{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return M}};ne.finalized=!0,ne._$litElement$=!0,null===(ee=globalThis.litElementHydrateSupport)||void 0===ee||ee.call(globalThis,{LitElement:ne});const re=globalThis.litElementPolyfillSupport;null==re||re({LitElement:ne}),(null!==(te=globalThis.litElementVersions)&&void 0!==te?te:globalThis.litElementVersions=[]).push("3.3.2");
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const oe=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/function ie(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):oe(e,t)}
|
||
/**
|
||
* @license
|
||
* Copyright 2021 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/var ae;null===(ae=window.HTMLSlotElement)||void 0===ae||ae.prototype.assignedElements;
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/
|
||
const le=2;
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/let se=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
|
||
/**
|
||
* @license
|
||
* Copyright 2017 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/const ce=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const i of o)null===(r=(n=i)._$AO)||void 0===r||r.call(n,t,!1),ce(i,t);return!0},ue=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},de=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),he(t)}};function fe(e){void 0!==this._$AN?(ue(this),this._$AM=e,de(this)):this._$AM=e}function pe(e,t=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let i=n;i<r.length;i++)ce(r[i],!1),ue(r[i]);else null!=r&&(ce(r,!1),ue(r));else ce(this,e)}const he=e=>{var t,n,r,o;e.type==le&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=pe),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=fe))};class ge extends se{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),de(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(ce(this,e),ue(this))}setValue(e){if((e=>void 0===e.strings)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}
|
||
/**
|
||
* @license
|
||
* Copyright 2020 Google LLC
|
||
* SPDX-License-Identifier: BSD-3-Clause
|
||
*/class me{}const be=new WeakMap,ve=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends ge{render(e){return L}update(e,[t]){var n;const r=t!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=null===(n=e.options)||void 0===n?void 0:n.host,this.ot(this.lt=e.element)),L}ot(e){var t;if("function"==typeof this.G){const n=null!==(t=this.ct)&&void 0!==t?t:globalThis;let r=be.get(n);void 0===r&&(r=new WeakMap,be.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,n;return"function"==typeof this.G?null===(t=be.get(null!==(e=this.ct)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var ye=Object.defineProperty,we=Object.getOwnPropertyDescriptor,xe=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?we(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&ye(t,n,i),i};e.GiscusWidget=class extends ne{constructor(){super(),this.GISCUS_SESSION_KEY="giscus-session",this.GISCUS_DEFAULT_HOST="https://giscus.app",this.ERROR_SUGGESTION="Please consider reporting this error at https://github.com/giscus/giscus/issues/new.",this.__session="",this._iframeRef=new me,this.messageEventHandler=this.handleMessageEvent.bind(this),this.hasLoaded=!1,this.host=this.GISCUS_DEFAULT_HOST,this.strict="0",this.reactionsEnabled="1",this.emitMetadata="0",this.inputPosition="bottom",this.theme="light",this.lang="en",this.loading="eager",this.setupSession(),window.addEventListener("message",this.messageEventHandler)}get iframeRef(){var e;return null==(e=this._iframeRef)?void 0:e.value}get _host(){try{return new URL(this.host),this.host}catch{return this.GISCUS_DEFAULT_HOST}}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.messageEventHandler)}_formatError(e){return`[giscus] An error occurred. Error message: "${e}".`}setupSession(){const e=location.href,t=new URL(e),n=localStorage.getItem(this.GISCUS_SESSION_KEY),r=t.searchParams.get("giscus")||"";if(this.__session="",r)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(r)),this.__session=r,t.searchParams.delete("giscus"),t.hash="",void history.replaceState(void 0,document.title,t.toString());if(n)try{this.__session=JSON.parse(n)}catch(o){localStorage.removeItem(this.GISCUS_SESSION_KEY),console.warn(`${this._formatError(null==o?void 0:o.message)} Session has been cleared.`)}}signOut(){localStorage.removeItem(this.GISCUS_SESSION_KEY),this.__session="",this.update(new Map)}handleMessageEvent(e){if(e.origin!==this._host)return;const{data:t}=e;if("object"!=typeof t||!t.giscus)return;if(this.iframeRef&&t.giscus.resizeHeight&&(this.iframeRef.style.height=`${t.giscus.resizeHeight}px`),t.giscus.signOut)return console.log("[giscus] User has logged out. Session has been cleared."),void this.signOut();if(!t.giscus.error)return;const n=t.giscus.error;if(n.includes("Bad credentials")||n.includes("Invalid state value")||n.includes("State has expired")){if(null!==localStorage.getItem(this.GISCUS_SESSION_KEY))return console.warn(`${this._formatError(n)} Session has been cleared.`),void this.signOut();console.error(`${this._formatError(n)} No session is stored initially. ${this.ERROR_SUGGESTION}`)}n.includes("Discussion not found")?console.warn(`[giscus] ${n}. A new discussion will be created if a comment/reaction is submitted.`):console.error(`${this._formatError(n)} ${this.ERROR_SUGGESTION}`)}sendMessage(e){!this.iframeRef||!this.iframeRef.contentWindow||!this.hasLoaded||(console.log({host:this.host,_host:this._host}),this.iframeRef.contentWindow.postMessage({giscus:e},this._host))}updateConfig(){const e={setConfig:{repo:this.repo,repoId:this.repoId,category:this.category,categoryId:this.categoryId,term:this.getTerm(),number:+this.getNumber(),strict:"1"===this.strict,reactionsEnabled:"1"===this.reactionsEnabled,emitMetadata:"1"===this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,lang:this.lang}};this.sendMessage(e)}firstUpdated(){var e;null==(e=this.iframeRef)||e.addEventListener("load",(()=>{var e;null==(e=this.iframeRef)||e.classList.remove("loading"),this.hasLoaded=!0,this.updateConfig()}))}requestUpdate(e,t,n){this.hasUpdated&&"host"!==e?this.updateConfig():super.requestUpdate(e,t,n)}getMetaContent(e,t=!1){const n=t?`meta[property='og:${e}'],`:"",r=document.querySelector(n+`meta[name='${e}']`);return r?r.content:""}_getCleanedUrl(){const e=new URL(location.href);return e.searchParams.delete("giscus"),e.hash="",e}getTerm(){switch(this.mapping){case"url":return`${this._getCleanedUrl()}`;case"title":return document.title;case"og:title":return this.getMetaContent("title",!0);case"specific":return this.term||"";case"number":return"";default:return location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}}getNumber(){return"number"===this.mapping&&this.term||""}getIframeSrc(){const e=this._getCleanedUrl().toString(),t=`${e}${this.id?"#"+this.id:""}`,n=this.getMetaContent("description",!0),r=this.getMetaContent("giscus:backlink")||e,o={origin:t,session:this.__session,repo:this.repo,repoId:this.repoId||"",category:this.category||"",categoryId:this.categoryId||"",term:this.getTerm(),number:this.getNumber(),strict:this.strict,reactionsEnabled:this.reactionsEnabled,emitMetadata:this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,description:n,backLink:r};return`${this._host}${this.lang?`/${this.lang}`:""}/widget?${new URLSearchParams(o)}`}render(){return R`
|
||
<iframe
|
||
title="Comments"
|
||
scrolling="no"
|
||
class="loading"
|
||
${ve(this._iframeRef)}
|
||
src=${this.getIframeSrc()}
|
||
loading=${this.loading}
|
||
allow="clipboard-write"
|
||
part="iframe"
|
||
></iframe>
|
||
`}},e.GiscusWidget.styles=((e,...t)=>{const n=1===e.length?e[0]:t.reduce(((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1]),e[0]);return new i(n,e,r)})`
|
||
:host,
|
||
iframe {
|
||
width: 100%;
|
||
border: none;
|
||
min-height: 150px;
|
||
color-scheme: light dark;
|
||
}
|
||
|
||
iframe.loading {
|
||
opacity: 0;
|
||
}
|
||
`,xe([ie({reflect:!0})],e.GiscusWidget.prototype,"host",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"repo",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"repoId",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"category",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"categoryId",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"mapping",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"term",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"strict",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"reactionsEnabled",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"emitMetadata",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"inputPosition",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"theme",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"lang",2),xe([ie({reflect:!0})],e.GiscusWidget.prototype,"loading",2),e.GiscusWidget=xe([function(e){return customElements.get(e)?e=>e:(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:n,elements:r}=t;return{kind:n,elements:r,finisher(t){customElements.define(e,t)}}})(e,t))(e)}("giscus-widget")],e.GiscusWidget)}(f2)),f2}const h2=Q,g2=B;var m2=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:i,mapping:a,term:l,strict:s,reactionsEnabled:c,emitMetadata:u,inputPosition:d,theme:f,lang:p,loading:h}){const[g,m]=g2.useState(!1);return g2.useEffect((()=>{g||(Promise.resolve().then((()=>p2())),m(!0))}),[]),g?h2.jsx("giscus-widget",{id:e,host:t,repo:n,repoid:r,category:o,categoryid:i,mapping:a,term:l,strict:s,reactionsenabled:c,emitmetadata:u,inputposition:d,theme:f,lang:p,loading:h}):null};const b2=n(m2);var v2,y2=function(e){return["zh_CN","zh_TW"].includes(e)?e.replace("_","-"):"zh_HK"===e?"zh-TW":e.split("_")[0]},w2=["style","className","reactionsEnabled","mapping","lang","inputPosition","id","loading","emitMetadata"];function x2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x2(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x2(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const k2=B.memo((function(e){var t=e.style,n=e.className,r=e.reactionsEnabled,o=void 0===r?"1":r,i=e.mapping,a=void 0===i?"title":i,l=e.lang,s=void 0===l?"en_US":l,c=e.inputPosition,u=void 0===c?"top":c,d=e.id,f=void 0===d?"giscus":d,p=e.loading,h=void 0===p?"lazy":p,g=e.emitMetadata,m=void 0===g?"0":g,b=Od(e,w2),v=XB(),y=oB().isDarkMode,w=B.useMemo((function(){return btoa(function(e,t){var n=t?"dark":"light",r=KZ.gray[n][11],o=KZ.gray[n][10],i=KZ.gray[n][7],a=t?KZ.red[n][9]:KZ.volcano[n][9],l=t?KZ.gold[n][9]:KZ.orange[n][9],s=t?KZ.lime[n][9]:KZ.green[n][9],c=t?KZ.blue[n][9]:KZ.geekblue[n][9],u=t?"https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg":"https://github.com/images/modules/pulls/progressive-disclosure-line.svg",d=t?"https://github.githubassets.com/images/mona-loading-dark.gif":"https://github.githubassets.com/images/mona-loading-default.gif";return WB(v2||(v2=hf(["\n main {\n --color-prettylights-syntax-comment: ",";\n --color-prettylights-syntax-constant: ",";\n --color-prettylights-syntax-entity: ",";\n --color-prettylights-syntax-storage-modifier-import: ",";\n --color-prettylights-syntax-entity-tag: ",";\n --color-prettylights-syntax-keyword: ",";\n --color-prettylights-syntax-string: ",";\n --color-prettylights-syntax-variable: ",";\n --color-prettylights-syntax-brackethighlighter-unmatched: ",";\n --color-prettylights-syntax-invalid-illegal-text: ",";\n --color-prettylights-syntax-invalid-illegal-bg: ",";\n --color-prettylights-syntax-carriage-return-text: ",";\n --color-prettylights-syntax-carriage-return-bg: ",";\n --color-prettylights-syntax-string-regexp: ",";\n --color-prettylights-syntax-markup-list: ",";\n --color-prettylights-syntax-markup-heading: ",";\n --color-prettylights-syntax-markup-italic: ",";\n --color-prettylights-syntax-markup-bold: ",";\n --color-prettylights-syntax-markup-deleted-text: ",";\n --color-prettylights-syntax-markup-deleted-bg: ",";\n --color-prettylights-syntax-markup-inserted-text: ",";\n --color-prettylights-syntax-markup-inserted-bg: ",";\n --color-prettylights-syntax-markup-changed-text: ",";\n --color-prettylights-syntax-markup-changed-bg: ",";\n --color-prettylights-syntax-markup-ignored-text: ",";\n --color-prettylights-syntax-markup-ignored-bg: ",";\n --color-prettylights-syntax-meta-diff-range: ",";\n --color-prettylights-syntax-brackethighlighter-angle: ",";\n --color-prettylights-syntax-sublimelinter-gutter-mark: ",";\n --color-prettylights-syntax-constant-other-reference-link: ",";\n --color-btn-text: ",";\n --color-btn-bg: ",";\n --color-btn-border: ",";\n --color-btn-shadow: 0 0 transparent;\n --color-btn-inset-shadow: 0 0 transparent;\n --color-btn-hover-bg: ",";\n --color-btn-hover-border: ",";\n --color-btn-active-bg: ",";\n --color-btn-active-border: ",";\n --color-btn-selected-bg: ",";\n --color-btn-primary-text: ",";\n --color-btn-primary-bg: ",";\n --color-btn-primary-border: ",";\n --color-btn-primary-shadow: 0 0 transparent;\n --color-btn-primary-inset-shadow: 0 0 transparent;\n --color-btn-primary-hover-bg: ",";\n --color-btn-primary-hover-border: ",";\n --color-btn-primary-selected-bg: ",";\n --color-btn-primary-selected-shadow: 0 0 transparent;\n --color-btn-primary-disabled-text: ",";\n --color-btn-primary-disabled-bg: ",";\n --color-btn-primary-disabled-border: ",";\n --color-action-list-item-default-hover-bg: ",";\n --color-segmented-control-bg: ",";\n --color-segmented-control-button-bg: transparent;\n --color-segmented-control-button-selected-border: ",";\n --color-fg-default: ",";\n --color-fg-muted: ",";\n --color-fg-subtle: ",";\n --color-canvas-default: transparent;\n --color-canvas-overlay: ",";\n --color-canvas-inset: transparent;\n --color-canvas-subtle: ",";\n --color-border-default: ",";\n --color-border-muted: ",";\n --color-neutral-muted: ",";\n --color-neutral-subtle: ",";\n --color-accent-fg: ",";\n --color-accent-emphasis: ",";\n --color-accent-muted: ",";\n --color-accent-subtle: ",";\n --color-success-fg: ",";\n --color-attention-fg: ",";\n --color-attention-muted: ",";\n --color-attention-subtle: ",";\n --color-danger-fg: ",";\n --color-danger-muted: ",";\n --color-danger-subtle: ",";\n --color-primer-shadow-inset: 0 0 transparent;\n --color-scale-gray-7: ",";\n --color-scale-blue-8: ",";\n --color-social-reaction-bg-hover: ",";\n --color-social-reaction-bg-reacted-hover: ",";\n\n .markdown pre {\n color: ",";\n }\n\n .pagination-loader-container {\n background-image: url(",");\n }\n\n .gsc-pagination-button {\n background-color: var(--color-btn-bg);\n }\n\n .gsc-reactions-popover {\n width: 170px;\n\n > .m-2 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n }\n }\n\n .gsc-emoji-button.has-reacted {\n border-color: ",";\n border-radius: ","px;\n }\n\n .gsc-loading-image {\n background-image: url(",");\n }\n }\n "])),i,s,l,a,c,c,s,a,a,o,iV(a,.4),o,iV(a,.6),s,l,c,o,o,o,iV(a,.2),s,iV(s,.2),l,iV(a,.2),o,iV(c,.2),l,o,i,c,e.colorText,e.colorFillTertiary,e.colorBorderSecondary,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,xV(e.colorPrimary),e.colorPrimary,e.colorPrimaryBorder,e.colorPrimaryHover,e.colorPrimaryBorderHover,e.colorPrimaryActive,iV(xV(e.colorPrimary),.5),iV(e.colorPrimary,.5),iV(e.colorPrimaryBorder,.5),e.colorFillQuaternary,e.colorFillTertiary,e.colorBorder,e.colorText,e.colorTextSecondary,e.colorTextQuaternary,e.colorBgElevated,e.colorFillQuaternary,e.colorBorder,e.colorBorderSecondary,e.colorFillQuaternary,e.colorFillTertiary,e.colorInfo,e.colorInfoBorderHover,e.colorInfoBorder,e.colorInfoBg,e.colorSuccess,e.colorWarning,e.colorWarningBorder,e.colorWarningBg,e.colorError,e.colorErrorBorder,e.colorErrorBg,e.colorBgContainer,e.colorInfoBg,e.colorFillSecondary,e.colorInfoBgHover,r,u,e.colorInfoBorderHover,e.borderRadius,d)}(v,y).styles)}),[y,v]);return Q.jsx("div",{className:n,style:t,children:Q.jsx(b2,S2({emitMetadata:m,id:f,inputPosition:u,lang:y2(s),loading:h,mapping:a,reactionsEnabled:o,theme:"data:text/css;base64,".concat(w)},b))})}));var C2,E2,O2=BB((function(e,t){var n,r=e.css,o=e.token,i=e.isDarkMode,a=e.stylish;switch(t){case"large":n=o.borderRadiusLG;break;case"middle":default:n=o.borderRadius;break;case"small":n=o.borderRadiusSM}return{button:r(C2||(C2=hf(["\n position: relative;\n z-index: 1;\n ","\n border: none;\n border-radius: ","px !important;\n\n &::before {\n content: '';\n\n position: absolute;\n z-index: -1;\n top: 1px;\n left: 1px;\n\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n\n background: ",";\n border-radius: ","px;\n }\n "])),a.gradientAnimation,n,o.colorBgLayout,n-1),glow:r(E2||(E2=hf(["\n ","\n position: absolute;\n z-index: -2;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: ",";\n filter: blur(","em);\n border-radius: inherit;\n "])),a.gradientAnimation,i?.5:.3,i?1.5:1)}})),D2=["glow","children","className","size"];function $2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$2(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$2(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const P2=B.memo((function(e){var t=e.glow,n=void 0===t||t,r=e.children,o=e.className,i=e.size,a=void 0===i?"large":i,l=Od(e,D2),s=O2(a),c=s.styles,u=s.cx;return Q.jsxs(BC,j2(j2({className:u(c.button,o),size:a},l),{},{children:[n&&Q.jsx("div",{className:c.glow}),r]}))}));var _2,N2,I2,T2,F2=BB((function(e){var t=e.css,n=e.responsive,r=e.token,o=e.cx;return{content:t(_2||(_2=hf(["\n height: 64px;\n padding: 0 24px;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n "," {\n padding: 0 12px;\n }\n "])),iV(r.colorBgLayout,.4),r.colorSplit,n.mobile),header:o(t(N2||(N2=hf(["\n grid-area: head;\n align-self: stretch;\n width: 100%;\n "])))),left:t(I2||(I2=hf(["\n z-index: 10;\n "]))),right:t(T2||(T2=hf(["\n z-index: 10;\n display: flex;\n flex: 1;\n justify-content: space-between;\n\n &-aside {\n display: flex;\n align-items: center;\n\n "," {\n justify-content: center;\n margin: 8px 16px;\n padding-top: 24px;\n border-top: 1px solid ",";\n }\n }\n "])),n.mobile,r.colorBorder)}})),A2=["actionsClassName","navClassName","logoClassName","nav","logo","actions","actionsStyle","logoStyle","navStyle","className"];function R2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R2(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const L2=B.memo((function(e){var t=e.actionsClassName,n=e.navClassName,r=e.logoClassName,o=e.nav,i=e.logo,a=e.actions,l=e.actionsStyle,s=e.logoStyle,c=e.navStyle,u=e.className,d=Od(e,A2),f=fB().mobile,p=F2(),h=p.cx,g=p.styles;return Q.jsx("section",M2(M2({className:h(g.header,u)},d),{},{children:Q.jsx(fU,{align:"center",className:g.content,distribution:"space-between",horizontal:!0,width:"auto",children:f?Q.jsxs(Q.Fragment,{children:[Q.jsx(fU,{className:t,style:M2({flex:0},c),children:o}),Q.jsx(fU,{className:h(g.left,r),horizontal:!0,style:M2({flex:1,overflow:"hidden"},s),children:i}),Q.jsx(fU,{className:t,style:M2({flex:0},l),children:a})]}):Q.jsxs(Q.Fragment,{children:[Q.jsx(fU,{className:h(g.left,r),horizontal:!0,style:M2({flex:0},s),children:i}),Q.jsx(fU,{className:n,style:M2({flex:1,marginLeft:48,overflow:"hidden"},c),children:o}),Q.jsxs("section",{className:h(g.right,t),style:l,children:[Q.jsx("div",{}),Q.jsx(fU,{align:"center",gap:8,horizontal:!0,children:a})]})]})})}))}));function z2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var B2=$d("Discord",[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",key:"18tl5t"}]]);const H2=function(e){return Q.jsx(B2,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z2(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z2(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({style:{overflow:"visible"}},e))};var W2,U2,V2,G2,q2,X2,K2,Y2,Q2,J2,Z2=BB((function(e,t){var n=e.css,r=e.stylish,o=e.responsive,i=n(W2||(W2=hf(["\n pointer-events: none;\n content: '';\n user-select: none;\n\n position: absolute;\n z-index: -1;\n inset: -1px 0 ",";\n "])),o.mobile?"-25%":"-50%");return{app:n(U2||(U2=hf(["\n overflow-x: hidden;\n overflow-y: auto;\n height: 100vh;\n "]))),aside:n(V2||(V2=hf(["\n position: sticky;\n z-index: 2;\n height: 100%;\n "]))),asideInner:n(G2||(G2=hf(["\n overflow-x: hidden;\n overflow-y: auto;\n width: 100%;\n height: calc(100vh - ","px);\n "])),t),content:n(q2||(q2=hf(["\n position: relative;\n flex: 1;\n max-width: 100%;\n "]))),footer:n(X2||(X2=hf(["\n position: relative;\n max-width: 100%;\n "]))),glass:n(K2||(K2=hf(["\n z-index: 0;\n\n &::before {\n ",";\n ",";\n mask-image: linear-gradient(to bottom, black ","px, transparent);\n }\n\n &::after {\n ",";\n }\n "])),r.blur,i,t,i),header:n(Y2||(Y2=hf(["\n position: sticky;\n z-index: 999;\n top: 0;\n max-width: 100%;\n "]))),main:n(Q2||(Q2=hf(["\n position: relative;\n display: flex;\n align-items: stretch;\n max-width: 100vw;\n "]))),toc:n(J2||(J2=hf([""])))}})),e5=["headerHeight","children","className","style"],t5=["children","className"],n5=["headerHeight","children","className","style"],r5=["headerHeight","children","className"];function o5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o5(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var a5,l5,s5,c5,u5,d5,f5,p5,h5,g5=B.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,i=Od(e,e5),a=Z2(t),l=a.cx,s=a.styles;return Q.jsxs("header",i5(i5({className:l(s.header,r),style:i5({height:t},o)},i),{},{children:[Q.jsx("div",{className:s.glass}),n]}))})),m5=B.memo((function(e){var t=e.children,n=e.className,r=Od(e,t5),o=Z2(),i=o.cx,a=o.styles;return Q.jsx("main",i5(i5({className:i(a.main,n)},r),{},{children:t}))})),b5=B.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,i=Od(e,n5),a=Z2(t),l=a.cx,s=a.styles;return Q.jsx("aside",i5(i5({className:l(s.aside,r),style:i5({top:t},o)},i),{},{children:n}))})),v5=B.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=Od(e,r5),i=Z2(t),a=i.cx,l=i.styles;return Q.jsx("div",i5(i5({className:a(l.asideInner,r)},o),{},{children:n}))})),y5=BB((function(e){var t=e.css,n=e.token;return{actions:t(a5||(a5=hf(["\n position: absolute;\n top: 50%;\n right: 16px;\n transform: translateY(-50%);\n "]))),active:t(l5||(l5=hf(["\n color: ",";\n background-color: ",";\n\n &:hover {\n background-color: ",";\n }\n "])),n.colorText,n.colorFillSecondary,n.colorFill),container:t(s5||(s5=hf(["\n cursor: pointer;\n color: ",";\n background: transparent;\n transition: background-color 200ms ",";\n\n &:active {\n background-color: ",";\n }\n\n &:hover {\n background-color: ",";\n }\n "])),n.colorTextTertiary,n.motionEaseOut,n.colorFillSecondary,n.colorFillTertiary),content:t(c5||(c5=hf(["\n position: relative;\n overflow: hidden;\n flex: 1;\n align-self: center;\n "]))),desc:t(u5||(u5=hf(["\n overflow: hidden;\n\n width: 100%;\n\n font-size: 12px;\n line-height: 1;\n color: ",";\n text-overflow: ellipsis;\n white-space: nowrap;\n "])),n.colorTextDescription),pin:t(d5||(d5=hf(["\n position: absolute;\n top: 6px;\n right: 6px;\n "]))),time:t(f5||(f5=hf(["\n font-size: 12px;\n color: ",";\n "])),n.colorTextPlaceholder),title:t(p5||(p5=hf(["\n overflow: hidden;\n\n width: 100%;\n\n font-size: 16px;\n line-height: 1;\n color: ",";\n text-overflow: ellipsis;\n white-space: nowrap;\n "])),n.colorText),triangle:t(h5||(h5=hf(["\n width: 10px;\n height: 10px;\n\n opacity: 0.5;\n background: ",";\n clip-path: polygon(0% 0%, 100% 0%, 100% 100%);\n border-radius: 2px;\n "])),n.colorPrimaryBorder)}}));!function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={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(e,t){return"W"===t?e+"周":e+"日"},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(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};n.default.locale(r,null,!0)}(hT),gT.locale("zh-cn");var w5=["active","avatar","loading","description","date","title","onHoverChange","actions","className","style","showAction","children","classNames","addon","pin"];function x5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x5(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k5=B.forwardRef((function(e,t){var n,r,o,i=e.active,a=e.avatar,l=e.loading,s=e.description,c=e.date,u=e.title,d=e.onHoverChange,f=e.actions,p=e.className,h=e.style,g=e.showAction,m=e.children,b=e.classNames,v=e.addon,y=e.pin,w=Od(e,w5),x=y5(),S=x.styles,k=x.cx;return Q.jsxs(fU,S5(S5({align:"flex-start",className:k(S.container,i&&S.active,p),distribution:"space-between",gap:8,horizontal:!0,onMouseEnter:function(){null==d||d(!0)},onMouseLeave:function(){null==d||d(!1)},padding:12,ref:t,style:h},w),{},{children:[y&&Q.jsx("div",{className:S.pin,children:Q.jsx("div",{className:S.triangle})}),null!=a?a:Q.jsx(eH,{icon:Kd,style:{marginTop:4}}),Q.jsxs(fU,{className:S.content,gap:8,children:[Q.jsx(fU,{distribution:"space-between",horizontal:!0,children:Q.jsx("div",{className:S.title,children:u})}),s&&Q.jsx("div",{className:S.desc,children:s}),v]}),l?Q.jsx(eH,{icon:qd,spin:!0}):Q.jsxs(Q.Fragment,{children:[g&&Q.jsx(fU,{className:S.actions,gap:4,horizontal:!0,onClick:function(e){e.preventDefault(),e.stopPropagation()},style:{display:g?void 0:"none"},children:f}),c&&Q.jsx("div",{className:k(S.time,null==b?void 0:b.time),style:g?{opacity:0}:{},children:(n=c,r=gT(n),o=gT().day()-r.day(),r.isSame(gT(),"day")?r.format("HH:mm"):1===o?"昨天":r.format("MM-DD"))})]}),m]}))}));const C5={Item:k5};function E5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E5(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const D5=B.memo((function(e){var t=Object.assign({},(_z(e),e));return Q.jsx("svg",O5(O5({fill:"none",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},t),{},{children:Q.jsx("path",{d:"M16.88 3.549L7.12 20.451"})}))}));function $5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$5(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const P5=B.memo((function(e){var t=Object.assign({},(_z(e),e));return Q.jsxs("svg",j5(j5({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 320 320"},t),{},{children:[Q.jsx("path",{d:"M25.401 140.14c3.71-5.453 8.81-9.628 15.313-12.838A23.89 23.89 0 0055 132.015a23.91 23.91 0 0016.053-6.159 48.924 48.924 0 0010.603-.294 56.54 56.54 0 006.809 6.555c-8.655 1.087-18.202 2.821-29.05 5.494-11.996 2.956-17.707 7.005-20.785 11.53-3.227 4.743-4.63 11.518-4.63 22.374 0 70.838 55.45 121.5 126 121.5 70.564 0 125.889-49.642 126-120.286-.751-13.724-2.613-20.518-5.764-24.763-3.023-4.073-8.262-7.153-19.898-10.42-9.615-2.7-20.317-4.252-31.506-5.103a48.977 48.977 0 006.306-6.763c2.995-1.106 6.948-.684 12.998.332l.321.054c2.498.421 5.641.95 8.543.95 5.214 0 10.234-.927 14.879-2.626 8.925 3.124 16.138 7.213 21.205 14.041 6.227 8.389 8.147 19.524 8.905 33.656l.011.214v.214c0 80.552-63.518 136.5-142 136.5-78.567 0-142-57.028-142-137.5 0-11.644 1.368-22.506 7.401-31.375z"}),Q.jsx("path",{d:"M195.5 145.016a50.53 50.53 0 0018.014-3.295C238.551 143.519 255 146.556 255 150c0 4.335-26.066 8.026-62.517 9.413-.201-5.525-.323-10.211-.316-14.505 1.102.071 2.214.108 3.333.108zM125 145.016a58.278 58.278 0 01-19.063-3.182C81.773 143.646 66 146.628 66 150c0 4.295 25.591 7.958 61.52 9.374.238-5.823.186-10.311-.246-14.402a59.24 59.24 0 01-2.274.044zM122.87 228c9.79-4.353 16.63-14.277 16.63-25.823 0-15.562-12.424-28.177-27.75-28.177S84 186.615 84 202.177c0 10.646 5.815 19.913 14.396 24.705 2.902-.349 5.839-.554 8.729-.554 5.259 0 10.673.678 15.745 1.672zM236 202.177c0 10.646-5.815 19.913-14.396 24.705-2.902-.349-5.839-.554-8.729-.554-5.259 0-10.673.678-15.745 1.672-9.79-4.353-16.63-14.277-16.63-25.823 0-15.562 12.424-28.177 27.75-28.177S236 186.615 236 202.177zM127 248.787S133.923 245 160 245c26.077 0 33 3.787 33 3.787S189.769 278 160 278s-33-29.213-33-29.213z"}),Q.jsx("path",{clipRule:"evenodd",d:"M173 19.016c-6.188 0-10.711-2.238-15.68-4.697-6.295-3.114-13.305-6.583-25.32-6.303-20.261 0-30.93 9.751-40.896 18.86-1.54 1.408-3.064 2.8-4.604 4.14-1.958 1.702-11.5 7-16 9-19.683 8.748-34.5 21.5-34.5 40.5 0 3.789.584 7.447 1.672 10.895A23.93 23.93 0 0155 84.016c13.255 0 24 10.745 24 24 0 3.552-.772 6.925-2.157 9.959a40.472 40.472 0 008.042-1.174c8.866 12.225 23.528 20.215 40.115 20.215 3.041 0 6.018-.269 8.906-.783 1.675 7.287 2.007 14.011 1.594 23.782h49c-.359-9.741-.486-17.161-.085-24.451a42.76 42.76 0 0011.085 1.452c14.294 0 26.9-7.006 34.364-17.668 6.059-3.498 13.291-2.284 19.597-1.225 2.746.461 5.317.893 7.539.893 18.778 0 34-14.551 34-32.5 0-8.333-3.281-15.934-8.675-21.686-4.31 5.012-10.697 8.186-17.825 8.186-12.979 0-23.5-10.522-23.5-23.5 0-12.98-30.137-31.5-45-31.5-5.31 0-10.313.325-14.617.604-3.249.21-6.099.396-8.383.396zM234.307 82.5c1.181 3.012-2.694 4.293-4.517 1.62l-.021-.03-.032-.047-.031-.043c-7.483-10.536-20.012-17.444-34.206-17.444a42.498 42.498 0 00-16.163 3.166c-6.41 2.63-14.55 1.24-19.499-3.61-8.882-8.704-21.21-14.096-34.838-14.096-17.152 0-32.245 8.542-41 21.478-1.966 2.365-5.65 1.323-4.535-1.543.06-.155.12-.305.182-.451C86.968 54.2 104.516 42.016 125 42.016c13.628 0 25.956 5.392 34.838 14.097 4.949 4.85 13.089 6.24 19.499 3.609a42.498 42.498 0 0116.163-3.166c17.73 0 32.863 10.778 38.807 25.944z"}),Q.jsx("path",{d:"M83 20.516a9.5 9.5 0 11-19 0 9.5 9.5 0 0119 0zM264.5 65.016c8.56 0 15.5-6.94 15.5-15.5 0-8.56-6.94-15.5-15.5-15.5-8.56 0-15.5 6.94-15.5 15.5 0 8.56 6.94 15.5 15.5 15.5zM55 124.016c8.837 0 16-7.164 16-16 0-8.837-7.163-16-16-16s-16 7.163-16 16c0 8.836 7.163 16 16 16z"})]}))}));function _5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_5(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const I5=B.memo((function(e){var t=Object.assign({},(_z(e),e));return Q.jsx("svg",N5(N5({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 940 320",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:Q.jsx("path",{d:"M15 240.035V87.172h39.24V205.75h66.192v34.285H15zM183.731 242c-11.759 0-22.196-2.621-31.313-7.862-9.116-5.241-16.317-12.447-21.601-21.619-5.153-9.317-7.729-19.945-7.729-31.883 0-11.937 2.576-22.492 7.729-31.664 5.164-8.963 12.159-15.98 20.982-21.05l.619-.351c9.117-5.241 19.554-7.861 31.313-7.861s22.196 2.62 31.313 7.861c9.248 5.096 16.449 12.229 21.601 21.401 5.153 9.172 7.729 19.727 7.729 31.664 0 11.938-2.576 22.566-7.729 31.883-5.152 9.172-12.353 16.378-21.601 21.619-9.117 5.241-19.554 7.862-31.313 7.862zm0-32.975c4.36 0 8.191-1.092 11.494-3.275 3.436-2.184 6.144-5.387 8.126-9.609 1.982-4.367 2.973-9.536 2.973-15.505 0-5.968-.991-10.991-2.973-15.067-1.906-4.06-4.483-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.134-3.276-11.494-3.276-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275zM295.508 78l-.001 54.042a34.071 34.071 0 016.541-5.781c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.557 7.424 7.872 4.835 14.105 11.684 18.7 20.546l.325.637c4.756 9.026 7.135 19.799 7.135 32.319 0 12.666-2.379 23.585-7.135 32.757-4.624 9.026-10.966 16.087-19.025 21.182-7.928 4.95-16.78 7.425-26.557 7.425-9.644 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.355-7.532-7.226l.001 11.812h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.494 3.276-3.303 2.184-6.012 5.387-8.126 9.609-1.982 4.076-2.972 9.099-2.972 15.067 0 5.969.99 11.138 2.972 15.505 2.114 4.222 4.823 7.425 8.126 9.609 3.435 2.183 7.266 3.275 11.494 3.275s7.994-1.092 11.297-3.275c3.435-2.184 6.143-5.387 8.125-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.483-7.177-7.732-9.352l-.393-.257c-3.303-2.184-7.069-3.276-11.297-3.276zm105.335 38.653l.084.337a27.857 27.857 0 002.057 5.559c2.246 4.222 5.417 7.498 9.513 9.827 4.096 2.184 8.984 3.276 14.665 3.276 5.285 0 9.777-.801 13.477-2.403 3.579-1.632 7.1-4.025 10.564-7.182l.732-.679 19.818 22.711c-5.153 6.26-11.494 11.064-19.025 14.413-7.531 3.203-16.449 4.804-26.755 4.804-12.683 0-23.782-2.621-33.294-7.862-9.381-5.386-16.713-12.665-21.998-21.837-5.153-9.317-7.729-19.872-7.729-31.665 0-11.792 2.51-22.274 7.53-31.446 5.036-9.105 11.902-16.195 20.596-21.268l.61-.351c8.984-5.241 19.091-7.861 30.322-7.861 10.311 0 19.743 2.286 28.294 6.859l.64.347c8.72 4.659 15.656 11.574 20.809 20.746 5.153 9.172 7.729 20.309 7.729 33.411 0 1.294-.052 2.761-.156 4.4l-.042.623-.17 2.353c-.075 1.01-.151 1.973-.227 2.888h-78.044zm21.365-42.147c-4.492 0-8.456 1.092-11.891 3.276-3.303 2.184-5.879 5.314-7.729 9.39a26.04 26.04 0 00-1.117 2.79 30.164 30.164 0 00-1.121 4.499l-.058.354h43.96l-.015-.106c-.401-2.638-1.122-5.055-2.163-7.252l-.246-.503c-1.776-3.774-4.282-6.742-7.519-8.906l-.409-.266c-3.303-2.184-7.2-3.276-11.692-3.276zm111.695-62.018l-.001 57.432h53.51V87.172h39.24v152.863h-39.24v-59.617H555.9l.001 59.617h-39.24V87.172h39.24zM715.766 242c-8.72 0-16.581-1.893-23.583-5.678-6.87-3.785-12.287-9.681-16.251-17.688-3.832-8.153-5.747-18.417-5.747-30.791v-66.168h37.654v59.398c0 9.172 1.519 15.723 4.558 19.654 3.171 3.931 7.597 5.896 13.278 5.896 3.7 0 7.069-.946 10.108-2.839 3.038-1.892 5.483-4.877 7.332-8.953 1.85-4.222 2.775-9.609 2.775-16.16v-56.996h37.654v118.36h-35.871l.004-12.38c-2.642 3.197-5.682 5.868-9.12 8.012-7.002 4.222-14.599 6.333-22.791 6.333zM841.489 78l-.001 54.041a34.1 34.1 0 016.541-5.78c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.556 7.424 7.873 4.835 14.106 11.684 18.701 20.546l.325.637c4.756 9.026 7.134 19.799 7.134 32.319 0 12.666-2.378 23.585-7.134 32.757-4.624 9.026-10.966 16.087-19.026 21.182-7.927 4.95-16.779 7.425-26.556 7.425-9.645 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.354-7.531-7.224v11.81h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275 4.228 0 7.993-1.092 11.296-3.275 3.435-2.184 6.144-5.387 8.126-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.484-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.068-3.276-11.296-3.276z"})}))}));var T5,F5={path:"assets/logo-3d.webp",pkg:"@lobehub/assets-logo",version:"1.1.0"},A5={path:"assets/logo-flat.svg",pkg:"@lobehub/assets-logo",version:"1.1.0"},R5=BB((function(e){return{extraTitle:(0,e.css)(T5||(T5=hf(["\n font-weight: 300;\n white-space: nowrap;\n "])))}})),M5=["type","size","style","extra","className"];function L5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L5(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const B5=B.memo((function(e){var t,n=e.type,r=void 0===n?"3d":n,o=e.size,i=void 0===o?32:o,a=e.style,l=e.extra,s=e.className,c=Od(e,M5),u=CU(),d=XB(),f=R5().styles;switch(r){case"3d":t=Q.jsx(DU,z5({alt:"lobehub",height:i,src:u(F5),style:a,width:i},c));break;case"flat":t=Q.jsx(DU,{alt:"lobehub",height:i,src:u(A5),style:a,width:i});break;case"high-contrast":t=Q.jsx(P5,z5({height:i,style:a,width:i},c));break;case"text":t=Q.jsx(I5,z5({className:s,height:i,style:a,width:2.9375*i},c));break;case"combine":t=Q.jsxs(Q.Fragment,{children:[Q.jsx(DU,{alt:"lobehub",height:i,src:u(F5),width:i}),Q.jsx(I5,{style:{height:i,marginLeft:Math.round(i/4),width:"auto"}})]})}if(!l)return t;var p=Math.round(i/3*1.9);return Q.jsxs(fU,z5(z5({align:"center",className:s,horizontal:!0,style:a},c),{},{children:[t,Q.jsx(D5,{style:{color:d.colorFill,height:p,width:p}}),Q.jsx("div",{className:f.extraTitle,style:{fontSize:p},children:l})]}))}));var H5,W5,U5,V5,G5,q5,X5,K5,Y5,Q5=function(e){var t,n=e.type,r=e.scale,o=e.appearance,i=oW(n),a="dark"===o;return Ed(t={},"color".concat(i,"Bg"),r[o][1]),Ed(t,"color".concat(i,"BgHover"),r[o][2]),Ed(t,"color".concat(i,"Border"),r[o][4]),Ed(t,"color".concat(i,"BorderHover"),r[o][a?5:3]),Ed(t,"color".concat(i,"Hover"),r[o][a?10:8]),Ed(t,"color".concat(i),r[o][9]),Ed(t,"color".concat(i,"Active"),r[o][a?7:10]),Ed(t,"color".concat(i,"TextHover"),r[o][a?10:8]),Ed(t,"color".concat(i,"Text"),r[o][9]),Ed(t,"color".concat(i,"TextActive"),r[o][a?7:10]),t},J5=function(e){var t=e.scale,n=e.appearance;return{colorBgContainer:"dark"===n?t[n][1]:t[n][0],colorBgElevated:"dark"===n?t[n][2]:t[n][0],colorBgLayout:"dark"===n?t[n][0]:t[n][1],colorBgMask:t.lightA[8],colorBgSpotlight:t[n][5],colorBorder:t[n][4],colorBorderSecondary:t[n][3],colorFill:t["".concat(n,"A")][3],colorFillQuaternary:t["".concat(n,"A")][0],colorFillSecondary:t["".concat(n,"A")][2],colorFillTertiary:t["".concat(n,"A")][1],colorText:t[n][12],colorTextQuaternary:t[n][6],colorTextSecondary:t[n][10],colorTextTertiary:t[n][8]}},Z5={mauve:{dark:["#1c1b1e","#252528","#2f2f32","#3a393d","#454448","#504f53","#5b5a5f","#67666a","#737177","#7f7d83","#bbb9bd","#fcf8fb","#ffffff"],darkA:["rgba(233, 225, 250, 0.12)","rgba(231, 231, 250, 0.16)","rgba(235, 235, 250, 0.2)","rgba(242, 237, 254, 0.24)","rgba(238, 234, 248, 0.29)","rgba(242, 239, 252, 0.33)","rgba(239, 237, 250, 0.38)","rgba(245, 243, 252, 0.42)","rgba(245, 240, 253, 0.47)","rgba(244, 240, 252, 0.52)","rgba(253, 250, 255, 0.74)","rgba(255, 251, 254, 0.99)","#ffffff"],light:["#fcf8fb","#edeaed","#dfdcdf","#d1ced2","#c2c0c4","#b4b2b7","#a7a4a9","#99979c","#8c8a90","#7f7d83","#4a494d","#1c1b1e","#111"],lightA:["rgba(155, 22, 122, 0.03)","rgba(55, 22, 55, 0.09)","rgba(26, 5, 26, 0.14)","rgba(25, 10, 30, 0.2)","rgba(11, 3, 19, 0.25)","rgba(13, 7, 23, 0.31)","rgba(11, 2, 16, 0.36)","rgba(6, 1, 14, 0.41)","rgba(5, 1, 14, 0.46)","rgba(4, 0, 12, 0.51)","rgba(4, 2, 8, 0.72)","rgba(3, 2, 5, 0.9)","#111"]},olive:{dark:["#1a1c1b","#232624","#2d302e","#383a38","#424542","#4d504d","#585c58","#646763","#70736e","#7c7f79","#b9bab5","#faf9f4","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 240, 0.15)","rgba(237, 253, 242, 0.19)","rgba(243, 252, 243, 0.23)","rgba(236, 246, 236, 0.28)","rgba(241, 250, 241, 0.32)","rgba(238, 249, 238, 0.37)","rgba(244, 251, 241, 0.41)","rgba(243, 250, 239, 0.46)","rgba(248, 254, 242, 0.5)","rgba(253, 255, 248, 0.73)","rgba(255, 254, 249, 0.98)","#ffffff"],light:["#faf9f4","#ecebe6","#ddddd7","#cfcfc9","#c0c1bb","#b2b4ae","#a4a6a0","#969993","#898c86","#7c7f79","#484b48","#1a1c1b","#111"],lightA:["rgba(155, 135, 35, 0.05)","rgba(65, 55, 5, 0.1)","rgba(43, 43, 5, 0.16)","rgba(37, 37, 10, 0.22)","rgba(22, 25, 3, 0.27)","rgba(14, 21, 2, 0.32)","rgba(16, 21, 5, 0.38)","rgba(11, 18, 4, 0.43)","rgba(9, 15, 3, 0.48)","rgba(8, 13, 2, 0.53)","rgba(1, 5, 1, 0.72)","rgba(1, 3, 2, 0.9)","#111"]},sage:{dark:["#1a1c1b","#232625","#2d302f","#373a39","#424543","#4d504e","#585c59","#636765","#6f7370","#7a7f7c","#b8bab7","#f9f9f7","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 247, 0.15)","rgba(237, 253, 247, 0.19)","rgba(239, 252, 248, 0.23)","rgba(236, 246, 239, 0.28)","rgba(241, 250, 244, 0.32)","rgba(238, 249, 241, 0.37)","rgba(241, 251, 246, 0.41)","rgba(241, 250, 243, 0.46)","rgba(244, 254, 248, 0.5)","rgba(252, 255, 251, 0.73)","rgba(254, 254, 252, 0.98)","#ffffff"],light:["#f9f9f7","#eaebe8","#dcddda","#cdcfcc","#bfc1be","#b1b4b0","#a3a6a3","#959996","#888c89","#7a7f7c","#474b49","#1a1c1b","#111"],lightA:["rgba(105, 105, 55, 0.04)","rgba(45, 55, 25, 0.1)","rgba(22, 28, 8, 0.15)","rgba(5, 15, 0, 0.2)","rgba(9, 17, 5, 0.26)","rgba(3, 13, 0, 0.31)","rgba(6, 14, 6, 0.37)","rgba(3, 12, 5, 0.42)","rgba(2, 10, 4, 0.47)","rgba(4, 13, 8, 0.53)","rgba(3, 8, 6, 0.73)","rgba(1, 3, 2, 0.9)","#111"]},sand:{dark:["#1c1c18","#262521","#30302b","#3a3a35","#45453f","#505049","#5c5b54","#67675f","#73726a","#7f7e76","#bcbab2","#fcf9f3","#ffffff"],darkA:["rgba(255, 255, 218, 0.11)","rgba(253, 247, 220, 0.15)","rgba(253, 253, 226, 0.19)","rgba(252, 252, 230, 0.23)","rgba(246, 246, 225, 0.28)","rgba(250, 250, 228, 0.32)","rgba(249, 246, 227, 0.37)","rgba(251, 251, 232, 0.41)","rgba(250, 248, 230, 0.46)","rgba(254, 252, 236, 0.5)","rgba(254, 251, 241, 0.74)","rgba(255, 252, 245, 0.99)","#ffffff"],light:["#fcf9f3","#edebe4","#dfddd5","#d1cfc7","#c3c1b9","#b5b3ab","#a7a69d","#999890","#8c8b83","#7f7e76","#4b4a44","#1c1c18","#111"],lightA:["rgba(195, 135, 15, 0.05)","rgba(91, 73, 10, 0.11)","rgba(67, 55, 8, 0.17)","rgba(46, 37, 0, 0.22)","rgba(41, 34, 5, 0.28)","rgba(31, 25, 0, 0.33)","rgba(29, 27, 4, 0.39)","rgba(23, 21, 3, 0.44)","rgba(20, 18, 2, 0.49)","rgba(18, 16, 1, 0.54)","rgba(12, 10, 2, 0.74)","rgba(6, 6, 1, 0.91)","#111"]},slate:{dark:["#1b1c1d","#242527","#2e2f32","#383a3c","#434547","#4e5052","#595b5e","#64676a","#707276","#7b7e82","#b8babc","#f9f9fa","#ffffff"],darkA:["rgba(225, 233, 242, 0.12)","rgba(225, 231, 244, 0.16)","rgba(230, 235, 250, 0.2)","rgba(233, 242, 250, 0.24)","rgba(239, 246, 254, 0.28)","rgba(236, 242, 248, 0.33)","rgba(241, 246, 254, 0.37)","rgba(238, 245, 252, 0.42)","rgba(238, 243, 251, 0.47)","rgba(241, 247, 255, 0.51)","rgba(249, 251, 254, 0.74)","rgba(254, 254, 255, 0.98)","#ffffff"],light:["#f9f9fa","#ebebec","#dcddde","#cecfd0","#bfc1c3","#b1b3b5","#a4a6a8","#96989b","#898b8e","#7b7e82","#484a4d","#1b1c1d","#111"],lightA:["rgba(55, 55, 88, 0.03)","rgba(5, 5, 17, 0.08)","rgba(5, 12, 19, 0.14)","rgba(10, 15, 20, 0.2)","rgba(9, 17, 24, 0.26)","rgba(3, 10, 16, 0.31)","rgba(2, 8, 13, 0.36)","rgba(5, 10, 17, 0.42)","rgba(4, 8, 15, 0.47)","rgba(1, 7, 15, 0.52)","rgba(1, 4, 8, 0.72)","rgba(2, 3, 4, 0.9)","#111"]}},e3={blue:KZ.blue.dark[9],cyan:KZ.cyan.dark[9],geekblue:KZ.geekblue.dark[9],gold:KZ.gold.dark[9],green:KZ.green.dark[9],lime:KZ.lime.dark[9],magenta:KZ.magenta.dark[9],orange:KZ.orange.dark[9],purple:KZ.purple.dark[9],red:KZ.red.dark[9],volcano:KZ.volcano.dark[9],yellow:KZ.yellow.dark[9]},t3=[e3.red,e3.orange,e3.gold,e3.yellow,e3.lime,e3.green,e3.cyan,e3.blue,e3.geekblue,e3.purple,e3.magenta,e3.volcano],n3={mauve:Z5.mauve.dark[9],olive:Z5.olive.dark[9],sage:Z5.sage.dark[9],sand:Z5.sand.dark[9],slate:Z5.slate.dark[9]},r3=[n3.mauve,n3.slate,n3.sage,n3.olive,n3.sand];function o3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o3(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a3(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l3(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function l3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s3,c3,u3=function(e){var t,n=e.name,r=e.scale,o=e.appearance,i={},a=a3(r[o].entries());try{for(a.s();!(t=a.n()).done;){var l=gg(t.value,2),s=l[0],c=l[1];0!==s&&12!==s&&(i["".concat(n).concat(s)]=c)}}catch(g){a.e(g)}finally{a.f()}var u,d=a3(r["".concat(o,"A")].entries());try{for(d.s();!(u=d.n()).done;){var f=gg(u.value,2),p=f[0],h=f[1];0!==p&&12!==p&&(i["".concat(n).concat(p,"A")]=h)}}catch(g){d.e(g)}finally{d.f()}return i3(i3({},i),function(e){var t,n=e.name,r=e.scale,o=e.appearance;return Ed(t={},"".concat(n,"Bg"),r["".concat(o,"A")][1]),Ed(t,"".concat(n,"BgHover"),r["".concat(o,"A")][2]),Ed(t,"".concat(n,"Border"),r[o][4]),Ed(t,"".concat(n,"BorderSecondary"),r[o][3]),Ed(t,"".concat(n,"BorderHover"),r[o][5]),Ed(t,"".concat(n,"Hover"),r[o][10]),Ed(t,"".concat(n),r[o][9]),Ed(t,"".concat(n,"Active"),r[o][7]),Ed(t,"".concat(n,"TextHover"),r["".concat(o,"A")][10]),Ed(t,"".concat(n,"Text"),r["".concat(o,"A")][9]),Ed(t,"".concat(n,"TextActive"),r["".concat(o,"A")][7]),t}({appearance:o,name:n,scale:r}))},d3=BB((function(e,t){var n=e.css,r=e.token;return{active:n(s3||(s3=hf(["\n box-shadow: 0 0 0 2px ",";\n "])),r.colorTextTertiary),container:n(c3||(c3=hf(["\n cursor: pointer;\n\n width: ","px;\n height: ","px;\n\n background: ",";\n border-radius: 50%;\n box-shadow: inset 0 0 0 2px ",";\n\n transition:\n scale 400ms ",",\n box-shadow 100ms ",";\n\n &:hover {\n box-shadow: 0 0 0 3px ",";\n }\n\n &:active {\n scale: 0.8;\n }\n "])),t,t,r.colorBgContainer,r.colorSplit,r.motionEaseOut,r.motionEaseOut,r.colorText)}}));const f3=B.memo((function(e){var t=e.colors,n=e.activeColor,r=e.onSelect,o=e.size,i=void 0===o?24:o,a=XB(),l=d3(i),s=l.cx,c=l.styles;return Q.jsxs(fU,{gap:8,horizontal:!0,style:{flexWrap:"wrap"},children:[Q.jsx(fU,{className:s(c.container,!n&&c.active),onClick:function(){null==r||r()},style:{background:a.colorBgContainer}}),t.map((function(e){var t=e===n;return Q.jsx(fU,{className:s(c.container,t&&c.active),onClick:function(){null==r||r(e)},style:{background:e}},e)}))]})}));var p3,h3=BB((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=".".concat(r,"-tabs");return{tabs:t(p3||(p3=hf(["\n ","-tab + ","-tab {\n margin: ","px 4px !important;\n padding: 0 12px !important;\n }\n\n ","-tab {\n color: ",";\n transition: background-color 100ms ease-out;\n\n &:first-child {\n margin: ","px 4px ","px 0;\n padding: ","px 12px !important;\n }\n\n &:hover {\n color: "," !important;\n background: ",";\n border-radius: ","px;\n }\n }\n\n ","-nav {\n margin-bottom: 0;\n\n &::before {\n display: none;\n }\n }\n "])),o,o,16,o,n.colorTextSecondary,16,16,6,n.colorText,n.colorFillTertiary,n.borderRadius,o)}})),g3=["className"];function m3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b3=B.memo((function(e){var t=e.className,n=Od(e,g3),r=h3(),o=r.styles,i=r.cx;return Q.jsx(rA,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m3(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:i(o.tabs,t)},n))}));const v3=b3;function y3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y3(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x3=Q5({appearance:"dark",scale:KZ.bnw,type:"Primary"}),S3=J5({appearance:"dark",scale:KZ.gray}),k3=Q5({appearance:"dark",scale:KZ.lime,type:"Success"}),C3=Q5({appearance:"dark",scale:KZ.gold,type:"Warning"}),E3=Q5({appearance:"dark",scale:KZ.red,type:"Error"}),O3=Q5({appearance:"dark",scale:KZ.blue,type:"Info"});const D3=w3(w3(w3(w3(w3(w3(w3({},x3),S3),k3),C3),E3),O3),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:O3.colorInfoText,colorLinkActive:O3.colorInfoTextActive,colorLinkHover:O3.colorInfoTextHover,colorTextLightSolid:S3.colorBgLayout});function $3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$3(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P3=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},i={},a=KZ[n];a&&(o=Q5({appearance:"dark",scale:a,type:"Primary"}));var l=Z5[r];return l&&(i=J5({appearance:"dark",scale:l})),j3(j3(j3(j3({},t),D3),o),i)};function _3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_3(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I3=Q5({appearance:"light",scale:KZ.bnw,type:"Primary"}),T3=J5({appearance:"light",scale:KZ.gray}),F3=Q5({appearance:"light",scale:KZ.green,type:"Success"}),A3=Q5({appearance:"light",scale:KZ.orange,type:"Warning"}),R3=Q5({appearance:"light",scale:KZ.volcano,type:"Error"}),M3=Q5({appearance:"light",scale:KZ.geekblue,type:"Info"});const L3=N3(N3(N3(N3(N3(N3(N3({},I3),T3),F3),A3),R3),M3),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:M3.colorInfoText,colorLinkActive:M3.colorInfoTextActive,colorLinkHover:M3.colorInfoTextHover,colorTextLightSolid:T3.colorBgLayout});function z3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z3(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var H3=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},i={},a=KZ[n];a&&(o=Q5({appearance:"light",scale:a,type:"Primary"}));var l=Z5[r];return l&&(i=J5({appearance:"light",scale:l})),B3(B3(B3(B3({},t),L3),o),i)},W3='"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',U3='"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif',V3={borderRadius:5,borderRadiusLG:8,borderRadiusSM:3,borderRadiusXS:3,controlHeight:36,fontFamily:['"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif',U3,W3].join(","),fontFamilyCode:["Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",U3,W3].join(",")};function G3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G3(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var X3;const K3=function(e){return WB(X3||(X3=hf(["\n .","-btn {\n box-shadow: none;\n }\n\n .","-btn-primary {\n color: "," !important;\n\n &:hover {\n color: "," !important;\n }\n\n &:active {\n color: "," !important;\n }\n }\n\n .","-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding: 4px 8px;\n\n color: "," !important;\n\n background-color: "," !important;\n border-radius: ","px !important;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: "," !important;\n }\n }\n\n .","-switch-handle::before {\n background: "," !important;\n }\n\n @media (max-width: 575px) {\n .","-tooltip {\n display: none !important;\n }\n }\n"])),e.prefixCls,e.prefixCls,xV(e.colorPrimary),xV(e.colorPrimary),xV(e.colorPrimaryActive),e.prefixCls,e.colorBgLayout,e.colorText,e.borderRadiusSM,e.prefixCls,e.colorText,e.prefixCls,e.colorBgContainer,e.prefixCls)};var Y3;const Q3=HB((function(e){var t,n=e.theme;return[(t=n,WB(Y3||(Y3=hf(["\n html,\n body {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n margin: 0;\n padding: 0;\n\n font-family: ",";\n font-size: ","px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n line-height: 1;\n color: ",";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n vertical-align: baseline;\n\n color-scheme: dark;\n background-color: ",";\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n body {\n overflow-x: hidden;\n height: 100vh;\n }\n\n #root {\n min-height: 100vh;\n }\n\n code {\n font-family: "," !important;\n\n span {\n font-family: "," !important;\n }\n }\n\n p {\n word-wrap: break-word;\n }\n\n ::selection {\n color: #000;\n background: ",";\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n box-sizing: border-box;\n vertical-align: baseline;\n }\n\n @media only screen and (min-width: 574px) {\n * {\n ::-webkit-scrollbar {\n cursor: pointer;\n width: 4px;\n height: 4px;\n background-color: transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n cursor: pointer;\n background-color: transparent;\n border-radius: 2px;\n transition: background-color 500ms ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n ::-webkit-scrollbar-corner {\n display: none;\n width: 0;\n height: 0;\n }\n\n &:hover {\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n }\n }\n }\n"])),t.fontFamily,t.fontSize,t.colorTextBase,t.colorBgLayout,t.fontFamilyCode,t.fontFamilyCode,t.yellow9,t.motionEaseOut,t.colorText,t.colorFill)),K3(n)]}));var J3=["children","customStylish","customToken","enableWebfonts","webfonts","customTheme"];function Z3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function e4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z3(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z3(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const t4=B.memo((function(e){var t=e.children,n=e.customStylish,r=e.customToken,o=e.enableWebfonts,i=void 0===o||o,a=e.webfonts,l=e.customTheme,s=void 0===l?{}:l,c=Od(e,J3),u=CU(),d=a||[u({path:"css/index.css",pkg:"@lobehub/webfont-mono",version:"1.0.0"}),u({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans",version:"1.0.0"}),u({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans-sc",version:"1.0.0"}),u({path:"dist/katex.min.css",pkg:"katex",version:"0.16.8"})],f=B.useCallback((function(e){return e4(e4({},function(e){var t=e.css,n=e.token,r=e.isDarkMode,o=VB(H5||(H5=hf(["\n 0% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0% 50%;\n }\n "]))),i=r?n.cyan9A:n.cyan11A,a=r?n.cyan2A:n.cyan6A;return{blur:t(W5||(W5=hf(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))),blurStrong:t(U5||(U5=hf(["\n backdrop-filter: blur(36px);\n "]))),bottomScrollbar:t(V5||(V5=hf(["\n ::-webkit-scrollbar {\n width: 0;\n height: 4px;\n background-color: transparent;\n\n &-thumb {\n background-color: ",";\n border-radius: 4px;\n transition: background-color 500ms ",";\n }\n\n &-corner {\n display: none;\n width: 0;\n height: 0;\n }\n }\n "])),n.colorFill,n.motionEaseOut),gradientAnimation:t(G5||(G5=hf(["\n background-image: linear-gradient(\n -45deg,\n ",",\n ",",\n ",",\n ","\n );\n background-size: 400% 400%;\n border-radius: inherit;\n animation: 5s "," 5s ease infinite;\n "])),n.gold,n.magenta,n.geekblue,n.cyan,o),markdown:t(q5||(q5=hf(["\n color: ",";\n\n h1,\n h2,\n h3,\n h4,\n h5 {\n font-weight: 600;\n }\n\n p {\n margin-block: 0 0;\n\n font-size: 14px;\n line-height: 2;\n color: ",";\n word-break: break-all;\n word-wrap: break-word;\n\n + * {\n margin-block-end: 1em;\n }\n\n &:not(:last-child) {\n margin-bottom: 1.5em;\n }\n }\n\n blockquote {\n margin: 16px 0;\n padding: 0 12px;\n\n p {\n font-style: italic;\n color: ",";\n }\n }\n\n a {\n color: ",";\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n }\n\n img {\n max-width: 100%;\n }\n\n pre,\n [data-code-type='highlighter'] {\n border: none;\n border-radius: ","px;\n\n > code {\n padding: 0 !important;\n border: none !important;\n }\n }\n\n > :not([data-code-type='highlighter']) code {\n padding: 2px 6px;\n\n font-size: ","px;\n color: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n }\n\n table {\n border-spacing: 0;\n\n width: 100%;\n margin-block: 1em 1em;\n margin-inline: 0 0;\n padding: 8px;\n\n border: 1px solid ",";\n border-radius: ","px;\n\n code {\n display: inline-flex;\n }\n }\n\n th,\n td {\n padding-block: 10px 10px;\n padding-inline: 16px 16px;\n }\n\n thead {\n tr {\n th {\n background: ",";\n\n &:first-child {\n border-top-left-radius: ","px;\n border-bottom-left-radius: ","px;\n }\n\n &:last-child {\n border-top-right-radius: ","px;\n border-bottom-right-radius: ","px;\n }\n }\n }\n }\n\n > ol > li::marker {\n color: "," !important;\n }\n\n > ul > li {\n line-height: 1.8;\n list-style-type: disc;\n\n &::marker {\n color: "," !important;\n }\n }\n\n ol,\n ul {\n > li::marker {\n color: ",";\n }\n }\n\n details {\n margin-bottom: 1em;\n padding: 12px 16px;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n\n transition: all 400ms ",";\n }\n\n details[open] {\n summary {\n padding-bottom: 12px;\n border-bottom: 1px solid ",";\n }\n }\n "])),n.colorText,n.colorText,n.colorTextDescription,n.colorLink,n.colorLinkHover,n.colorLinkActive,n.borderRadius,n.fontSizeSM,i,a,r?n.cyan1A:n.cyan6A,n.borderRadiusSM,n.colorBorderSecondary,n.borderRadius,n.colorFillTertiary,n.borderRadius,n.borderRadius,n.borderRadius,n.borderRadius,r?n.cyan9A:n.cyan10A,r?n.cyan9A:n.cyan10A,n.colorTextDescription,n.colorFillTertiary,n.colorBorderSecondary,n.borderRadiusLG,n.motionEaseOut,n.colorBorder),markdownInChat:t(X5||(X5=hf(["\n h1 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1.6em;\n }\n\n h2 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1.4em;\n }\n\n h3 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1.2em;\n }\n\n h4 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1.1em;\n }\n\n h5 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1em;\n }\n\n > *:last-child {\n margin-bottom: 0 !important;\n }\n\n p {\n line-height: 1.8 !important;\n\n + * {\n margin-block-end: 0.5em !important;\n }\n\n &:not(:last-child) {\n margin-bottom: 1em !important;\n }\n }\n "]))),noScrollbar:t(K5||(K5=hf(["\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n "]))),resetLinkColor:t(Y5||(Y5=hf(["\n cursor: pointer;\n color: ",";\n\n &:hover {\n color: ",";\n }\n "])),n.colorTextSecondary,n.colorText)}}(e)),null==n?void 0:n(e))}),[n]),p=B.useCallback((function(e){return e4(e4({},function(e){for(var t=e.isDarkMode,n={},r=0,o=Object.entries(KZ);r<o.length;r++){var i=gg(o[r],2),a=i[0],l=i[1];n=i3(i3({},n),u3({appearance:t?"dark":"light",name:AW(a),scale:l}))}return n}(e)),null==r?void 0:r(e))}),[r]),h=B.useCallback((function(e){return function(e){var t=e.neutralColor,n=e.appearance,r=e.primaryColor;return{algorithm:"dark"===n?P3:H3,token:q3(q3({},V3),{},{neutralColor:t,primaryColor:r})}}({appearance:e,neutralColor:s.neutralColor,primaryColor:s.primaryColor})}),[s.primaryColor,s.neutralColor]);return Q.jsxs(Q.Fragment,{children:[i&&(null==d?void 0:d.length)>0&&d.map((function(e){return Q.jsx(b1,{url:e},e)})),Q.jsx(qB,{speedy:!0,children:Q.jsxs(GB,e4(e4({customStylish:f,customToken:p},c),{},{theme:h,children:[Q.jsx(Q3,{}),Q.jsx(N$,{style:{minHeight:"inherit",width:"inherit"},children:t})]}))})]})})),n4={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class r4{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||n4,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new r4(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new r4(this.logger,e)}}var o4=new r4;class i4{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((e=>e!==t)):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){[].concat(this.observers[e]).forEach((e=>{e(...n)}))}if(this.observers["*"]){[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}}function a4(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function l4(e){return null==e?"":""+e}function s4(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function c4(e,t,n){const{obj:r,k:o}=s4(e,t,Object);r[o]=n}function u4(e,t){const{obj:n,k:r}=s4(e,t);if(n)return n[r]}function d4(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):d4(e[r],t[r],n):e[r]=t[r]);return e}function f4(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var p4={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function h4(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>p4[e])):e}const g4=[" ",",","?","!",";"];function m4(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){let e=2,a=r.slice(i,i+e).join(n),l=o[a];for(;void 0===l&&r.length>i+e;)e++,a=r.slice(i,i+e).join(n),l=o[a];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}const s=r.slice(i+e).join(n);return s?m4(l,s,n):void 0}o=o[r[i]]}return o}function b4(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class v4 extends i4{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));const l=u4(this.data,a);return l||!i||"string"!=typeof n?l:m4(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),c4(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=u4(this.data,a)||{};r?d4(l,n,o):l={...l,...n},c4(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var y4={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const w4={};class x4 extends i4{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=o4.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=g4.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=new RegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?p:f;for(const i in d)if(Object.prototype.hasOwnProperty.call(d,i)){const e=`${r}${o}${i}`;n[i]=this.translate(e,{...t,joinArrays:!1,ns:a}),n[i]===e&&(n[i]=d[i])}d=n}}else if(m&&"string"==typeof g&&"[object Array]"===h)d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,f=x4.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",g=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=g),this.isValidLookup(d)||(a=!0,d=i);const m=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,b=f&&g!==d&&this.options.updateMissing;if(a||r||b){if(this.logger.log(b?"updateKey":"missingKey",s,l,i,b?g:d),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const o=f&&r!==d?r:m;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,b,t),this.emit("missingKey",e,l,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{r([e],i+n,t[`defaultValue${n}`]||g)}))})):r(e,i,g))}d=this.extendTranslation(d,e,t,u,n),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l="string"==typeof a?[a]:a;return null!=e&&l&&l.length&&!1!==n.applyPostProcessor&&(e=y4.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(i=e,!w4[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(w4[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;o=n;const i=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(s+e),a.ordinal&&0===e.indexOf(r)&&i.push(s+e.replace(r,this.options.pluralSeparator)),d&&i.push(s+t)),f){const n=`${s}${this.options.contextSeparator}${a.context}`;i.push(n),u&&(i.push(n+e),a.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let l;for(;l=i.pop();)this.isValidLookup(t)||(r=l,t=this.getResource(n,e,l,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function S4(e){return e.charAt(0).toUpperCase()+e.slice(1)}class k4{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o4.create("languageUtils")}getScriptPartFromCode(e){if(!(e=b4(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=b4(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=S4(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=S4(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=S4(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))})),r}}let C4=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],E4={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const O4=["v1","v2","v3"],D4=["v4"],$4={zero:0,one:1,two:2,few:3,many:4,other:5};class j4{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=o4.create("pluralResolver"),this.options.compatibilityJSON&&!D4.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return C4.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:E4[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(b4(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>$4[e]-$4[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O4.includes(this.options.compatibilityJSON)}}function P4(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){const r=u4(e,n);return void 0!==r?r:u4(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&(i=m4(e,n,r),void 0===i&&(i=m4(t,n,r))),i}class _4{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o4.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:h4,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?f4(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?f4(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?f4(t.nestingPrefix):t.nestingPrefixEscaped||f4("$t("),this.nestingSuffix=t.nestingSuffix?f4(t.nestingSuffix):t.nestingSuffixEscaped||f4(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,"g")}interpolate(e,t,n,r){let o,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=P4(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(P4(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>s(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?s(this.escape(e)):s(e)}].forEach((t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(d){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=l4(i));const l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(GY){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,GY),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];o={...i},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),l=e,s=!0}if(r=t(a.call(this,n[1].trim(),o),o),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=l4(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),s&&(r=l.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function N4(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(b4(r),o),t[i]=a),a(n)}}class I4{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o4.create("formatter"),this.options=e,this.formats={number:N4(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:N4(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:N4(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:N4(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:N4(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=N4(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}}class T4 extends i4{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=o4.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},a={},l={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:o,k:i}=s4(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)}(n.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&l&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*o,i)}),o):i(a,l)},l=this.backend[n].bind(this.backend);if(2!==l.length)return l(e,t,a);try{const n=l(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(s){a(s)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)}))}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...i,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let o;o=5===c.length?c(e,t,n,r,s):c(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>a(null,e))).catch(a):a(null,o)}catch(l){a(l)}else c(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function F4(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function A4(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function R4(){}class M4 extends i4{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=A4(e),this.services={},this.logger=o4,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=F4();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...A4(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?o4.init(o(this.modules.logger),this.options):o4.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=I4);const n=new k4(this.options);this.store=new v4(this.options.resources,this.options);const i=this.services;i.logger=o4,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new j4(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new _4(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new T4(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new x4(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=R4),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const i=a4(),a=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R4;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=a4();return e||(e=this.languages),t||(t=this.options.ns),n||(n=R4),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&y4.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=a4();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{i(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([e,t].concat(l))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,i.keyPrefix=i.keyPrefix||n||o.keyPrefix;const c=r.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,r.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=a4();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=a4();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0));return o.length?(this.options.preload=r.concat(o),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new k4(F4());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new M4(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R4;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new M4(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new v4(this.store.data,r),o.services.resourceStore=o.store),o.translator=new x4(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit(e,...n)})),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const L4=M4.createInstance();function z4(e){return(z4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}L4.createInstance=M4.createInstance,L4.createInstance,L4.dir,L4.init,L4.loadResources,L4.reloadResources,L4.use,L4.changeLanguage,L4.getFixedT,L4.t,L4.exists,L4.setDefaultNamespace,L4.hasLoadedNamespace,L4.loadNamespaces,L4.loadLanguages;var B4=[],H4=B4.forEach,W4=B4.slice;function U4(e){return H4.call(W4.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function V4(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":z4(XMLHttpRequest))}function G4(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var q4,X4={exports:{}},K4={exports:{}};function Y4(){return q4||(q4=1,function(e,n){var r,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();r=i,function(e){var t=void 0!==r&&r||"undefined"!=typeof self&&self||void 0!==t&&t,n="URLSearchParams"in t,o="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(GY){return!1}}(),a="FormData"in t,l="ArrayBuffer"in t;if(l)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=u(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[u(e)]},p.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},p.prototype.set=function(e,t){this.map[u(e)]=d(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},o&&(p.prototype[Symbol.iterator]=p.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),y.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},v.call(w.prototype),v.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];S.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(E){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function C(n,r){return new Promise((function(o,a){var s=new w(n,r);if(s.signal&&s.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}c.onload=function(){var e,t,n={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout((function(){o(new S(r,n))}),0)},c.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},c.open(s.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(GY){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(i?c.responseType="blob":l&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof p?s.headers.forEach((function(e,t){c.setRequestHeader(t,e)})):Object.getOwnPropertyNames(r.headers).forEach((function(e){c.setRequestHeader(e,d(r.headers[e]))})),s.signal&&(s.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",u)}),c.send(void 0===s._bodyInit?null:s._bodyInit)}))}C.polyfill=!0,t.fetch||(t.fetch=C,t.Headers=p,t.Request=w,t.Response=S),e.Headers=p,e.Request=w,e.Response=S,e.fetch=C}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var a=o.fetch?o:i;(n=a.fetch).default=a.fetch,n.fetch=a.fetch,n.Headers=a.Headers,n.Request=a.Request,n.Response=a.Response,e.exports=n}(K4,K4.exports)),K4.exports}!function(e,n){var r;if("function"==typeof fetch&&(r=void 0!==t&&t.fetch?t.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),void 0!==G4&&("undefined"==typeof window||void 0===window.document)){var o=r||Y4();o.default&&(o=o.default),n.default=o,e.exports=n.default}}(X4,X4.exports);var Q4=X4.exports;const J4=n(Q4),Z4=e({__proto__:null,default:J4},[Q4]);function e6(e){return(e6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var t6,n6,r6;"function"==typeof fetch&&(t6="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),V4()&&("undefined"!=typeof global&&global.XMLHttpRequest?n6=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(n6=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?r6=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(r6=window.ActiveXObject)),t6||!Z4||n6||r6||(t6=J4||Z4),"function"!=typeof t6&&(t6=void 0);var o6=function(e,t){if(t&&"object"===e6(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},i6=function(e,t,n){var r=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then((function(t){n(null,{status:e.status,data:t})})).catch(n)};"function"==typeof fetch?fetch(e,t).then(r).catch(n):t6(e,t).then(r).catch(n)},a6=!1,l6=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},t6&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=o6(t,e.queryStringParams));var o=U4({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var i="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,a=U4({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},a6?{}:i);try{i6(t,a,r)}catch(GY){if(!i||0===Object.keys(i).length||!GY.message||GY.message.indexOf("not implemented")<0)return r(GY);try{Object.keys(i).forEach((function(e){delete a[e]})),i6(t,a,r),a6=!0}catch(l){r(l)}}}(e,t,n,r):V4()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===e6(n)&&(n=o6("",n).slice(1)),e.queryStringParams&&(t=o6(t,e.queryStringParams));try{var o;(o=n6?new n6:new r6("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=e.customHeaders;if(i="function"==typeof i?i():i)for(var a in i)o.setRequestHeader(a,i[a]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(GY){console&&console.log(GY)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function s6(e){return(s6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u6(r.key),r)}}function u6(e){var t=function(e,t){if("object"!==s6(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==s6(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s6(t)?t:String(t)}var d6=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return function(e,t,n){return(t=u6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n||"")},parseLoadPayload:function(e,t){},request:l6,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},f6=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}var t,n,r;return t=e,n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=U4(n,this.options||{},d6()),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var i,a=this,l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(e,n)),(l=function(e){return!!e&&"function"==typeof e.then}(i=l)?i:Promise.resolve(i)).then((function(i){if(!i)return o(null,{});var l=a.services.interpolator.interpolate(i,{lng:e.join("+"),ns:n.join("+")});a.loadUrl(l,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this,i="string"==typeof n?[n]:n,a="string"==typeof r?[r]:r,l=this.options.parseLoadPayload(i,a);this.options.request(this.options,e,l,(function(i,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&i&&i.message&&i.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+i.message,!0);if(i)return t(i,!1);var l,s;try{l="string"==typeof a.data?o.options.parse(a.data,n,r):a.data}catch(GY){s="failed parsing "+e+" to json"}if(s)return t(s,!1);t(null,l)}))}},{key:"create",value:function(e,t,n,r,o){var i=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r),l=0,s=[],c=[];e.forEach((function(n){var r=i.options.addPath;"function"==typeof i.options.addPath&&(r=i.options.addPath(n,t));var u=i.services.interpolator.interpolate(r,{lng:n,ns:t});i.options.request(i.options,u,a,(function(t,n){l+=1,s.push(t),c.push(n),l===e.length&&"function"==typeof o&&o(s,c)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,i=n.language;if(!i||"cimode"!==i.toLowerCase()){var a=[],l=function(e){r.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};l(i),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return l(e)})),a.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,i){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&i&&o.log("loaded namespace ".concat(e," for language ").concat(t),i),n.loaded("".concat(t,"|").concat(e),r,i)}))}))}))}}}],n&&c6(t.prototype,n),r&&c6(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();f6.type="backend";const p6={};function h6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&p6[t[0]]||("string"==typeof t[0]&&(p6[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))}const g6=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function m6(e,t,n){e.loadNamespaces(t,g6(e,n))}function b6(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,g6(e,r))}const v6=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,y6={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},w6=e=>y6[e];let x6,S6={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(v6,w6)};const k6={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S6={...S6,...e}}(e.options.react),function(e){x6=e}(e)}},C6=B.createContext();class E6{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function O6(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=B.useContext(C6)||{},i=n||r||x6;if(i&&!i.reportNamespaces&&(i.reportNamespaces=new E6),!i){h6("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react&&void 0!==i.options.react.wait&&h6("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...S6,...i.options.react,...t},{useSuspense:l,keyPrefix:s}=a;let c=e||o||i.options&&i.options.defaultNS;c="string"==typeof c?[c]:c||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}(e,t,n):(h6("i18n.languages were undefined or empty",t.languages),!0)}(e,i,a)));function d(){return i.getFixedT(t.lng||null,"fallback"===a.nsMode?c:c[0],s)}const[f,p]=B.useState(d);let h=c.join();t.lng&&(h=`${t.lng}${h}`);const g=((e,t)=>{const n=B.useRef();return B.useEffect((()=>{n.current=t?n.current:e}),[e,t]),n.current})(h),m=B.useRef(!0);B.useEffect((()=>{const{bindI18n:e,bindI18nStore:n}=a;function r(){m.current&&p(d)}return m.current=!0,u||l||(t.lng?b6(i,t.lng,c,(()=>{m.current&&p(d)})):m6(i,c,(()=>{m.current&&p(d)}))),u&&g&&g!==h&&m.current&&p(d),e&&i&&i.on(e,r),n&&i&&i.store.on(n,r),()=>{m.current=!1,e&&i&&e.split(" ").forEach((e=>i.off(e,r))),n&&i&&n.split(" ").forEach((e=>i.store.off(e,r)))}}),[i,h]);const b=B.useRef(!0);B.useEffect((()=>{m.current&&!b.current&&p(d),b.current=!1}),[i,s]);const v=[f,i,u];if(v.t=f,v.i18n=i,v.ready=u,u)return v;if(!u&&!l)return v;throw new Promise((e=>{t.lng?b6(i,t.lng,c,(()=>e())):m6(i,c,(()=>e()))}))}var D6={BASE_URL:"/dev",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const $6=new Map,j6=e=>{const t=$6.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},P6=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:l,...s}=t;let c;try{c=(null!=i?i:"production"!==(D6?"production":void 0))&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(GY){}if(!c)return"production"!==(D6?"production":void 0)&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=$6.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return $6.set(n.name,o),{type:"tracked",store:e,...o}})(l,c,s);let f=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!f)return c;const d=void 0===i?{type:a||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===l?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${l}/${d.type}`},{...j6(s.name),[l]:o.getState()}),c)};const p=(...e)=>{const t=f;f=!1,n(...e),f=t},h=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(h):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?h:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"production"===(D6?"production":void 0)||"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):_6(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===l)return void p(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[l];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&p(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(h),void 0===l?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(j6(s.name));case"COMMIT":return void 0===l?void(null==u||u.init(o.getState())):null==u?void 0:u.init(j6(s.name));case"ROLLBACK":return _6(e.state,(e=>{if(void 0===l)return p(e),void(null==u||u.init(o.getState()));p(e[l]),null==u||u.init(j6(s.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return _6(e.state,(e=>{void 0!==l?JSON.stringify(o.getState())!==JSON.stringify(e[l])&&p(e[l]):p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(void 0===l?r:r[l]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return f=!f}return}})),h},_6=(e,t)=>{let n;try{n=JSON.parse(e)}catch(GY){console.error("[zustand devtools middleware] Could not parse the received json",GY)}void 0!==n&&t(n)};var N6={exports:{}},I6={},T6=B,F6=ZJ;var A6="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},R6=F6.useSyncExternalStore,M6=T6.useRef,L6=T6.useEffect,z6=T6.useMemo,B6=T6.useDebugValue;I6.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=M6(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=z6((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return l=t}return l=e}if(t=l,A6(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,l=n)}var i,l,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var l=R6(e,i[0],i[1]);return L6((function(){a.hasValue=!0,a.value=l}),[l]),B6(l),l},N6.exports=I6;const H6=n(N6.exports);var W6={BASE_URL:"/dev",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const U6=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{"production"!==(W6?"production":void 0)&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,i),i},{useDebugValue:V6}=H,{useSyncExternalStoreWithSelector:G6}=H6;const q6=(e,t)=>{const n=(e=>e?U6(e):U6)(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=G6(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return V6(r),r}(n,e,r);return Object.assign(r,n),r};var X6={exports:{}};var K6={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Y6={};var Q6="object"==typeof process&&Y6&&Y6.NODE_DEBUG&&/\bsemver\b/i.test(Y6.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=K6,i=Q6,a=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,r]],p=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=u++;i(e,o,t),c[e]=o,s[o]=t,a[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${s[c.NUMERICIDENTIFIER]}|${s[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NUMERICIDENTIFIERLOOSE]}|${s[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),p("FULL",`^${s[c.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),p("LOOSE",`^${s[c.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),p("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),p("COERCERTL",s[c.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(X6,X6.exports);var J6=X6.exports;const Z6=Object.freeze({loose:!0}),e8=Object.freeze({});var t8=e=>e?"object"!=typeof e?Z6:e:e8;const n8=/^[0-9]+$/,r8=(e,t)=>{const n=n8.test(e),r=n8.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var o8={compareIdentifiers:r8,rcompareIdentifiers:(e,t)=>r8(t,e)};const i8=Q6,{MAX_LENGTH:a8,MAX_SAFE_INTEGER:l8}=K6,{safeRe:s8,t:c8}=J6,u8=t8,{compareIdentifiers:d8}=o8;var f8=class e{constructor(t,n){if(n=u8(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>a8)throw new TypeError(`version is longer than ${a8} characters`);i8("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?s8[c8.LOOSE]:s8[c8.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>l8||this.major<0)throw new TypeError("Invalid major version");if(this.minor>l8||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>l8||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<l8)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(i8("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),d8(this.major,t.major)||d8(this.minor,t.minor)||d8(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(i8("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return d8(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(i8("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return d8(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===d8(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const p8=f8;var h8=(e,t,n=!1)=>{if(e instanceof p8)return e;try{return new p8(e,t)}catch(r){if(!n)return null;throw r}};const g8=h8;var m8=(e,t)=>{const n=g8(e,t);return n?n.version:null};const b8=h8;var v8=(e,t)=>{const n=b8(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const y8=f8;var w8=(e,t,n,r,o)=>{"string"==typeof n&&(o=r,r=n,n=void 0);try{return new y8(e instanceof y8?e.version:e,n).inc(t,r,o).version}catch(i){return null}};const x8=h8;var S8=(e,t)=>{const n=x8(e,null,!0),r=x8(t,null,!0),o=n.compare(r);if(0===o)return null;const i=o>0,a=i?n:r,l=i?r:n,s=!!a.prerelease.length;if(!!l.prerelease.length&&!s)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=s?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const k8=f8;var C8=(e,t)=>new k8(e,t).major;const E8=f8;var O8=(e,t)=>new E8(e,t).minor;const D8=f8;var $8=(e,t)=>new D8(e,t).patch;const j8=h8;var P8=(e,t)=>{const n=j8(e,t);return n&&n.prerelease.length?n.prerelease:null};const _8=f8;var N8=(e,t,n)=>new _8(e,n).compare(new _8(t,n));const I8=N8;var T8=(e,t,n)=>I8(t,e,n);const F8=N8;var A8=(e,t)=>F8(e,t,!0);const R8=f8;var M8=(e,t,n)=>{const r=new R8(e,n),o=new R8(t,n);return r.compare(o)||r.compareBuild(o)};const L8=M8;var z8=(e,t)=>e.sort(((e,n)=>L8(e,n,t)));const B8=M8;var H8=(e,t)=>e.sort(((e,n)=>B8(n,e,t)));const W8=N8;var U8=(e,t,n)=>W8(e,t,n)>0;const V8=N8;var G8=(e,t,n)=>V8(e,t,n)<0;const q8=N8;var X8=(e,t,n)=>0===q8(e,t,n);const K8=N8;var Y8=(e,t,n)=>0!==K8(e,t,n);const Q8=N8;var J8=(e,t,n)=>Q8(e,t,n)>=0;const Z8=N8;var e7=(e,t,n)=>Z8(e,t,n)<=0;const t7=X8,n7=Y8,r7=U8,o7=J8,i7=G8,a7=e7;var l7=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return t7(e,n,r);case"!=":return n7(e,n,r);case">":return r7(e,n,r);case">=":return o7(e,n,r);case"<":return i7(e,n,r);case"<=":return a7(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const s7=f8,c7=h8,{safeRe:u7,t:d7}=J6;var f7,p7,h7=(e,t)=>{if(e instanceof s7)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=u7[d7.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),u7[d7.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;u7[d7.COERCERTL].lastIndex=-1}else n=e.match(u7[d7.COERCE]);return null===n?null:c7(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var g7=m7;function m7(e){var t=this;if(t instanceof m7||(t=new m7),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function b7(e,t,n){var r=t===e.head?new w7(n,null,t,e):new w7(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function v7(e,t){e.tail=new w7(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function y7(e,t){e.head=new w7(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function w7(e,t,n,r){if(!(this instanceof w7))return new w7(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}m7.Node=w7,m7.create=m7,m7.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},m7.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},m7.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},m7.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)v7(this,arguments[e]);return this.length},m7.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)y7(this,arguments[e]);return this.length},m7.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},m7.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},m7.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},m7.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},m7.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},m7.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},m7.prototype.map=function(e,t){t=t||this;for(var n=new m7,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},m7.prototype.mapReverse=function(e,t){t=t||this;for(var n=new m7,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},m7.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},m7.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},m7.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},m7.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},m7.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new m7;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},m7.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new m7;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},m7.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var i=[];for(r=0;o&&r<t;r++)i.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=b7(this,o,n[r]);return i},m7.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(p7?f7:(p7=1,f7=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(m7)}catch(Cue){}const x7=g7,S7=Symbol("max"),k7=Symbol("length"),C7=Symbol("lengthCalculator"),E7=Symbol("allowStale"),O7=Symbol("maxAge"),D7=Symbol("dispose"),$7=Symbol("noDisposeOnSet"),j7=Symbol("lruList"),P7=Symbol("cache"),_7=Symbol("updateAgeOnGet"),N7=()=>1;const I7=(e,t,n)=>{const r=e[P7].get(t);if(r){const t=r.value;if(T7(e,t)){if(A7(e,r),!e[E7])return}else n&&(e[_7]&&(r.value.now=Date.now()),e[j7].unshiftNode(r));return t.value}},T7=(e,t)=>{if(!t||!t.maxAge&&!e[O7])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[O7]&&n>e[O7]},F7=e=>{if(e[k7]>e[S7])for(let t=e[j7].tail;e[k7]>e[S7]&&null!==t;){const n=t.prev;A7(e,t),t=n}},A7=(e,t)=>{if(t){const n=t.value;e[D7]&&e[D7](n.key,n.value),e[k7]-=n.length,e[P7].delete(n.key),e[j7].removeNode(t)}};class R7{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const M7=(e,t,n,r)=>{let o=n.value;T7(e,o)&&(A7(e,n),e[E7]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var L7,z7,B7,H7,W7=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[S7]=e.max||1/0;const t=e.length||N7;if(this[C7]="function"!=typeof t?N7:t,this[E7]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[O7]=e.maxAge||0,this[D7]=e.dispose,this[$7]=e.noDisposeOnSet||!1,this[_7]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[S7]=e||1/0,F7(this)}get max(){return this[S7]}set allowStale(e){this[E7]=!!e}get allowStale(){return this[E7]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[O7]=e,F7(this)}get maxAge(){return this[O7]}set lengthCalculator(e){"function"!=typeof e&&(e=N7),e!==this[C7]&&(this[C7]=e,this[k7]=0,this[j7].forEach((e=>{e.length=this[C7](e.value,e.key),this[k7]+=e.length}))),F7(this)}get lengthCalculator(){return this[C7]}get length(){return this[k7]}get itemCount(){return this[j7].length}rforEach(e,t){t=t||this;for(let n=this[j7].tail;null!==n;){const r=n.prev;M7(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[j7].head;null!==n;){const r=n.next;M7(this,e,n,t),n=r}}keys(){return this[j7].toArray().map((e=>e.key))}values(){return this[j7].toArray().map((e=>e.value))}reset(){this[D7]&&this[j7]&&this[j7].length&&this[j7].forEach((e=>this[D7](e.key,e.value))),this[P7]=new Map,this[j7]=new x7,this[k7]=0}dump(){return this[j7].map((e=>!T7(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[j7]}set(e,t,n){if((n=n||this[O7])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[C7](t,e);if(this[P7].has(e)){if(o>this[S7])return A7(this,this[P7].get(e)),!1;const i=this[P7].get(e).value;return this[D7]&&(this[$7]||this[D7](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[k7]+=o-i.length,i.length=o,this.get(e),F7(this),!0}const i=new R7(e,t,o,r,n);return i.length>this[S7]?(this[D7]&&this[D7](e,t),!1):(this[k7]+=i.length,this[j7].unshift(i),this[P7].set(e,this[j7].head),F7(this),!0)}has(e){if(!this[P7].has(e))return!1;const t=this[P7].get(e).value;return!T7(this,t)}get(e){return I7(this,e,!0)}peek(e){return I7(this,e,!1)}pop(){const e=this[j7].tail;return e?(A7(this,e),e.value):null}del(e){A7(this,this[P7].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[P7].forEach(((e,t)=>I7(this,t,!1)))}};function U7(){if(z7)return L7;z7=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&h(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&f))+":"+e,i=t.get(n);if(i)return i;const h=this.options.loose,g=h?a[l.HYPHENRANGELOOSE]:a[l.HYPHENRANGE];e=e.replace(g,O(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[l.COMPARATORTRIM],s),o("comparator trim",e),e=e.replace(a[l.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[l.CARETTRIM],u),o("caret trim",e);let b=e.split(" ").map((e=>m(e,this.options))).join(" ").split(/\s+/).map((e=>E(e,this.options)));h&&(b=b.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[l.COMPARATORLOOSE]))))),o("range list",b);const v=new Map,y=b.map((e=>new r(e,this.options)));for(const t of y){if(p(t))return[t];v.set(t.value,t)}v.size>1&&v.has("")&&v.delete("");const w=[...v.values()];return t.set(n,w),w}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(Cue){return!1}for(let t=0;t<this.set.length;t++)if(D(this.set[t],e,this.options))return!0;return!1}}L7=e;const t=new W7({max:1e3}),n=t8,r=V7(),o=Q6,i=f8,{safeRe:a,t:l,comparatorTrimReplace:s,tildeTrimReplace:c,caretTrimReplace:u}=J6,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:f}=K6,p=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},m=(e,t)=>(o("comp",e,t),e=w(e,t),o("caret",e),e=v(e,t),o("tildes",e),e=S(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?a[l.TILDELOOSE]:a[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let l;return o("tilde",e,t,n,r,i,a),b(n)?l="":b(r)?l=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?l=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),l=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):l=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",l),l}))},w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{o("caret",e,t);const n=t.loose?a[l.CARETLOOSE]:a[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,l)=>{let s;return o("caret",e,t,n,i,a,l),b(n)?s="":b(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(a)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:l?(o("replaceCaret pr",l),s="0"===n?"0"===i?`>=${n}.${i}.${a}-${l} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${l} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${l} <${+n+1}.0.0-0`):(o("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",s),s}))},S=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?a[l.XRANGELOOSE]:a[l.XRANGE];return e.replace(n,((n,r,i,a,l,s)=>{o("xRange",e,n,r,i,a,l,s);const c=b(i),u=c||b(a),d=u||b(l),f=d;return"="===r&&f&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),l=0,">"===r?(r=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(s="-0"),n=`${r+i}.${a}.${l}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[l.STAR],"")),E=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),O=e=>(t,n,r,o,i,a,l,s,c,u,d,f,p)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${s=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${d}-${f}`:e?`<${c}.${u}.${+d+1}-0`:`<=${s}`}`.trim(),D=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return L7}function V7(){if(H7)return B7;H7=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new l(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(Cue){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}B7=t;const n=t8,{safeRe:r,t:o}=J6,i=l7,a=Q6,l=f8,s=U7();return B7}const G7=U7();var q7=(e,t,n)=>{try{t=new G7(t,n)}catch(Cue){return!1}return t.test(e)};const X7=U7();var K7=(e,t)=>new X7(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const Y7=f8,Q7=U7();var J7=(e,t,n)=>{let r=null,o=null,i=null;try{i=new Q7(t,n)}catch(Cue){return null}return e.forEach((e=>{i.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new Y7(r,n)))})),r};const Z7=f8,e9=U7();var t9=(e,t,n)=>{let r=null,o=null,i=null;try{i=new e9(t,n)}catch(Cue){return null}return e.forEach((e=>{i.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new Z7(r,n)))})),r};const n9=f8,r9=U7(),o9=U8;var i9=(e,t)=>{e=new r9(e,t);let n=new n9("0.0.0");if(e.test(n))return n;if(n=new n9("0.0.0-0"),e.test(n))return n;n=null;for(let r=0;r<e.set.length;++r){const t=e.set[r];let o=null;t.forEach((e=>{const t=new n9(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!o9(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||n&&!o9(n,o)||(n=o)}return n&&e.test(n)?n:null};const a9=U7();var l9=(e,t)=>{try{return new a9(e,t).range||"*"}catch(Cue){return null}};const s9=f8,c9=V7(),{ANY:u9}=c9,d9=U7(),f9=q7,p9=U8,h9=G8,g9=e7,m9=J8;var b9=(e,t,n,r)=>{let o,i,a,l,s;switch(e=new s9(e,r),t=new d9(t,r),n){case">":o=p9,i=g9,a=h9,l=">",s=">=";break;case"<":o=h9,i=m9,a=p9,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(f9(e,t,r))return!1;for(let c=0;c<t.set.length;++c){const n=t.set[c];let u=null,d=null;if(n.forEach((e=>{e.semver===u9&&(e=new c9(">=0.0.0")),u=u||e,d=d||e,o(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===l||u.operator===s)return!1;if((!d.operator||d.operator===l)&&i(e,d.semver))return!1;if(d.operator===s&&a(e,d.semver))return!1}return!0};const v9=b9;var y9=(e,t,n)=>v9(e,t,">",n);const w9=b9;var x9=(e,t,n)=>w9(e,t,"<",n);const S9=U7();var k9=(e,t,n)=>(e=new S9(e,n),t=new S9(t,n),e.intersects(t,n));const C9=q7,E9=N8;const O9=U7(),D9=V7(),{ANY:$9}=D9,j9=q7,P9=N8,_9=[new D9(">=0.0.0-0")],N9=[new D9(">=0.0.0")],I9=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===$9){if(1===t.length&&t[0].semver===$9)return!0;e=n.includePrerelease?_9:N9}if(1===t.length&&t[0].semver===$9){if(n.includePrerelease)return!0;t=N9}const r=new Set;let o,i,a,l,s,c,u;for(const p of e)">"===p.operator||">="===p.operator?o=T9(o,p,n):"<"===p.operator||"<="===p.operator?i=F9(i,p,n):r.add(p.semver);if(r.size>1)return null;if(o&&i){if(a=P9(o.semver,i.semver,n),a>0)return null;if(0===a&&(">="!==o.operator||"<="!==i.operator))return null}for(const p of r){if(o&&!j9(p,String(o),n))return null;if(i&&!j9(p,String(i),n))return null;for(const e of t)if(!j9(p,String(e),n))return!1;return!0}let d=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver,f=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===i.operator&&0===d.prerelease[0]&&(d=!1);for(const p of t){if(u=u||">"===p.operator||">="===p.operator,c=c||"<"===p.operator||"<="===p.operator,o)if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),">"===p.operator||">="===p.operator){if(l=T9(o,p,n),l===p&&l!==o)return!1}else if(">="===o.operator&&!j9(o.semver,String(p),n))return!1;if(i)if(d&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===d.major&&p.semver.minor===d.minor&&p.semver.patch===d.patch&&(d=!1),"<"===p.operator||"<="===p.operator){if(s=F9(i,p,n),s===p&&s!==i)return!1}else if("<="===i.operator&&!j9(i.semver,String(p),n))return!1;if(!p.operator&&(i||o)&&0!==a)return!1}return!(o&&c&&!i&&0!==a)&&(!(i&&u&&!o&&0!==a)&&(!f&&!d))},T9=(e,t,n)=>{if(!e)return t;const r=P9(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},F9=(e,t,n)=>{if(!e)return t;const r=P9(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var A9=(e,t,n={})=>{if(e===t)return!0;e=new O9(e,n),t=new O9(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=I9(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const R9=J6,M9=K6,L9=f8,z9=o8,B9=(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort(((e,t)=>E9(e,t,n)));for(const u of a){C9(u,t,n)?(i=u,o||(o=u)):(i&&r.push([o,i]),i=null,o=null)}o&&r.push([o,null]);const l=[];for(const[u,d]of r)u===d?l.push(u):d||u!==a[0]?d?u===a[0]?l.push(`<=${d}`):l.push(`${u} - ${d}`):l.push(`>=${u}`):l.push("*");const s=l.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return s.length<c.length?s:t};const H9=n({parse:h8,valid:m8,clean:v8,inc:w8,diff:S8,major:C8,minor:O8,patch:$8,prerelease:P8,compare:N8,rcompare:T8,compareLoose:A8,compareBuild:M8,sort:z8,rsort:H8,gt:U8,lt:G8,eq:X8,neq:Y8,gte:J8,lte:e7,cmp:l7,coerce:h7,Comparator:V7(),Range:U7(),satisfies:q7,toComparators:K7,maxSatisfying:J7,minSatisfying:t9,minVersion:i9,validRange:l9,outside:b9,gtr:y9,ltr:x9,intersects:k9,simplifyRange:B9,subset:A9,SemVer:L9,re:R9.re,src:R9.src,tokens:R9.t,SEMVER_SPEC_VERSION:M9.SEMVER_SPEC_VERSION,RELEASE_TYPES:M9.RELEASE_TYPES,compareIdentifiers:z9.compareIdentifiers,rcompareIdentifiers:z9.rcompareIdentifiers}),W9="sd-webui-lobe-theme",U9="3.2.2",V9="https://github.com/lobehub/sd-webui-lobe-theme",G9=V9,q9=U9,X9=[{label:"English",value:"en_US"},{label:"简体中文",value:"zh_CN"},{label:"繁體中文",value:"zh_HK"},{label:"日本語",value:"ja_JP"},{label:"한국어",value:"ko_KR"},{label:"Français",value:"fr_FR"},{label:"Deutsch",value:"de_DE"},{label:"Русский",value:"ru_RU"},{label:"Español",value:"es_ES"},{label:"Português",value:"pt_BR"}],K9=async e=>{await fetch("/lobe/config",{body:JSON.stringify(e),headers:{"Content-Type":"application/json"},method:"POST"})},Y9=async()=>{const e=await fetch("/lobe/prompt");return await e.json()},Q9={confirmPageUnload:!1,enableExtraNetworkSidebar:!0,enableHighlight:!1,enableImageInfo:!0,enableSidebar:!0,enableWebFont:!0,extraNetworkCardSize:86,extraNetworkFixedMode:"fixed",extraNetworkSidebarExpand:!0,extraNetworkSidebarWidth:340,i18n:"en_US",layoutHideFooter:!1,layoutSplitPreview:!1,liteAnimation:!1,logoCustomTitle:"",logoCustomUrl:"",logoType:"lobe",neutralColor:void 0,primaryColor:void 0,promptEditor:!1,promptTextareaType:"resizable",sidebarExpand:!0,sidebarFixedMode:"fixed",sidebarWidth:280,svgIcon:!0},J9={currentTab:"tab_txt2img",latestVersion:q9,loading:!0,localeOptions:X9,setting:Q9,themeMode:"dark",version:q9},Z9="SD-LOBE-SETTING",eee=(e,t)=>({onInit:async()=>{e((()=>({loading:!0})),!1,"onInit");const{onLoadSetting:n,onLoadVersion:r,onLoadLatestVersion:o,onLoadLocalOptions:i}=t();await i(),await r(),await o(),await n(),e((()=>({loading:!1})),!1,"onInit")},onLoadLatestVersion:async()=>{const t=await(async()=>{const e=await fetch(`https://api.github.com/repos/${V9.replace("https://github.com/","")}/releases/latest`),t=await e.json();return t&&t.tag_name&&H9.clean(t.tag_name)||q9})();e((()=>({latestVersion:t})),!1,"onLoadLatestVersion")},onLoadLocalOptions:async()=>{const t=await(async()=>{const e=await fetch("/lobe/locales/options"),t=await e.json();return t&&0!==(null==t?void 0:t.length)?t:X9})();e((()=>({localeOptions:t})),!1,"onLoadLocalOptions")},onLoadSetting:async()=>{let t;const n=await(async()=>{const e=await fetch("/lobe/config"),t=await e.json();if(t&&!(null==t?void 0:t.empty))return t})();if(n&&(ue.start("🤯 [setting] loaded webui setting"),t=n),!t){const e=localStorage.getItem(Z9);e&&(ue.info("🤯 [setting] loaded local setting"),t=JSON.parse(e))}if(!t){const e=localStorage.getItem("SD-KITCHEN-SETTING");e&&(ue.info("🤯 [setting] loaded fallback local setting"),t=JSON.parse(e))}t||(ue.info("🤯 [setting] loaded default setting"),t=Q9);const r={...Q9,...t};await K9(r),e((()=>({setting:r})),!1,"onLoadSetting"),ue.success("🤯 [setting] loaded"),console.table(r)},onLoadVersion:async()=>{const t=await(async()=>{const e=await fetch("/lobe/package"),t=await e.json();return t&&!t.empty&&t.version?t.version:q9})();e((()=>({version:t})),!1,"onLoadVersion")},onSetSetting:async n=>{const r={...t().setting,...n};localStorage.setItem(Z9,JSON.stringify(r)),await K9(r),e((()=>({setting:r})),!1,"onSetSetting")},onSetThemeMode:t=>{e((()=>({themeMode:t})),!1,"onSetThemeMode")},setCurrentTab:()=>{var n;const r=null==(n=get_uiCurrentTabContent())?void 0:n.id;ue.info("🤯 [tab] onChange",r),r&&r!==t().currentTab&&e({currentTab:r},!1,"setCurrentTab")}}),tee=e=>({...Q9,...e.setting}),nee=e=>tee(e).i18n,ree=tee,oee=e=>e.currentTab,iee=e=>e.themeMode,aee=(lee?q6(lee,see):q6)(P6(((...e)=>({...J9,...eee(...e)}))),(function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}));var lee,see;const cee=JSON.parse(localStorage.getItem(Z9));L4.use(k6).use(f6).init({backend:{loadPath:"/lobe/locales/{{lng}}"},debug:!1,fallbackLng:"en_US",lng:(null==cee?void 0:cee.i18n)||"en_US"});const uee={attributes:!0,characterData:!0,childList:!0,subtree:!0},dee=(e,{subSelector:t,valueProp:n="innerHTML"}={})=>{const[r,o]=B.useState("");return B.useEffect((()=>{const r=new MutationObserver((e=>{var r;for(const i of e)if("childList"===i.type||"characterData"===i.type)if(t){const e=i.target.querySelector(t);o(String(e[n]))}else o(String(null==(r=i.target)?void 0:r.innerHTML))})),i=gradioApp().querySelector(e);if(i){r.observe(i,uee);const e=t?i.querySelector(t):i;o(String(null==e?void 0:e[n]))}return()=>{r.disconnect()}}),[e,t,n]),String(r)},fee=BB((({css:e,token:t,isDarkMode:n})=>{const r=n?"dark":"light",o=n?KZ.lime[r][9]:KZ.green[r][10];return{configTitle:e`
|
||
color: ${t.colorTextSecondary};
|
||
`,configValue:e`
|
||
color: ${t.colorInfoText};
|
||
text-align: right;
|
||
`,container:e`
|
||
padding: 16px 10px 16px 24px;
|
||
|
||
font-family: ${t.fontFamilyCode};
|
||
font-size: 13px;
|
||
|
||
background: ${t.colorFillTertiary};
|
||
border-radius: ${t.borderRadius}px;
|
||
`,highlight:e`
|
||
pre {
|
||
font-family: ${t.fontFamilyCode} !important;
|
||
font-size: 13px !important;
|
||
line-height: 1.5 !important;
|
||
word-wrap: break-word !important;
|
||
white-space: pre-wrap !important;
|
||
vertical-align: bottom !important;
|
||
}
|
||
`,negative:e`
|
||
span[style='color:${o.toUpperCase()}'] {
|
||
color: ${t.colorErrorTextHover} !important;
|
||
}
|
||
`}})),pee=[{$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",fileTypes:["prompt"],name:"prompt",patterns:[{match:"[,]",name:"comma"},{match:"[:|]",name:"func"},{match:"AND",name:"and"},{match:"BREAK",name:"break"},{captures:{0:{name:"model-bracket"},1:{name:"model-type"},2:{name:"model-name"},3:{name:"number"}},match:"<([^:]+):([^:]+):([^>]+)>"},{match:"[<|>]",name:"model-bracket"},{match:"[(|)|\\[|\\]|{|}]",name:"bracket"},{match:"(?<!\\w)(\\d*\\.?\\d+|\\.\\d+)(?!\\w)",name:"number"},{match:"__.*__",name:"wildcards"}],scopeName:"source.prompt"}],hee=e=>{const t=e?"dark":"light",n=e?KZ.yellow[t][9]:KZ.gold[t][10],r=e?KZ.gold[t][9]:KZ.orange[t][10],o=e?KZ.volcano[t][10]:KZ.volcano[t][8],i=e?KZ.lime[t][9]:KZ.green[t][10],a=e?KZ.blue[t][9]:KZ.geekblue[t][9],l=e?KZ.purple[t][11]:KZ.purple[t][8];return{colors:{"editor.foreground":i},name:t,tokenColors:[{scope:"comma",settings:{foreground:KZ.gray[t][6]}},{scope:"func",settings:{foreground:l}},{scope:["and","break"],settings:{foreground:a}},{scope:"bracket",settings:{foreground:l}},{scope:"model-type",settings:{fontStyle:"italic",foreground:o}},{scope:"model-name",settings:{foreground:r}},{scope:"model-bracket",settings:{foreground:l}},{scope:"number",settings:{foreground:l}},{scope:"wildcards",settings:{foreground:n}}],type:t}};let gee;const mee=async()=>{let e=gee;return e||(e=await async function(e={}){const t=await iQ(e);return{codeToThemedTokens:(e,n)=>IJ(t,e,n),codeToTokensWithThemes:(e,n)=>MJ(t,e,n),codeToHast:(e,n)=>LJ(t,e,n),codeToHtml:(e,n)=>HJ(t,e,n),loadLanguage:t.loadLanguage,loadTheme:t.loadTheme,getTheme:t.getTheme,getLoadedThemes:t.getLoadedThemes,getLoadedLanguages:t.getLoadedLanguages}}({langs:[pee],loadWasm:IY,themes:[hee(!0),hee(!1)]}),gee=e,e)},bee=BB((({css:e,token:t,cx:n,stylish:r,prefixCls:o})=>{const i=`${o}-highlighter`;return{container:e`
|
||
pointer-events: none;
|
||
position: absolute;
|
||
overflow: hidden auto;
|
||
padding: calc(8px + var(--input-border-width));
|
||
|
||
pre {
|
||
font-family: ${t.fontFamilyCode} !important;
|
||
font-size: 13px !important;
|
||
line-height: 1.5 !important;
|
||
word-wrap: break-word !important;
|
||
white-space: pre-wrap !important;
|
||
vertical-align: bottom !important;
|
||
}
|
||
`,loading:n(r.blur,e`
|
||
position: absolute;
|
||
z-index: 10;
|
||
top: 0;
|
||
right: 0;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
height: 34px;
|
||
padding: 0 8px;
|
||
|
||
font-family: ${t.fontFamilyCode};
|
||
color: ${t.colorTextTertiary};
|
||
|
||
border-radius: ${t.borderRadius};
|
||
`),shiki:n(`${i}-shiki`,e`
|
||
margin: 0;
|
||
|
||
.shiki {
|
||
overflow-x: auto;
|
||
padding: 0;
|
||
background: none !important;
|
||
|
||
code,
|
||
code span {
|
||
font-family: ${t.fontFamilyCode} !important;
|
||
}
|
||
}
|
||
`)}})),vee=B.memo((({children:e})=>{const{styles:t}=bee(),{isDarkMode:n}=oB(),{data:r,isLoading:o}=((e,t)=>VZ([t?"dark":"light",e].join("-"),(async()=>{try{const n=await mee();return null==n?void 0:n.codeToHtml(e,{lang:"prompt",theme:t?"dark":"light"})}catch{return e}})))(e,n);return Q.jsxs(Q.Fragment,{children:[o?Q.jsx("code",{children:e}):Q.jsx("div",{className:t.shiki,dangerouslySetInnerHTML:{__html:r}}),o&&Q.jsxs(YW,{className:t.loading,gap:8,horizontal:!0,children:[Q.jsx(eH,{icon:qd,spin:!0}),"Highlighting..."]})]})})),yee=BB((({token:e,css:t,cx:n,prefixCls:r},o)=>{const i=`${r}-highlighter`,a=`${i}-hover-btn`,l=`${i}-hover-lang`,s=t`
|
||
background-color: ${"block"===o?e.colorFillTertiary:"transparent"};
|
||
border: 1px solid ${"block"===o?"transparent":e.colorBorder};
|
||
|
||
&:hover {
|
||
background-color: ${"block"===o?e.colorFillTertiary:e.colorFillQuaternary};
|
||
}
|
||
`;return{container:n(i,"pure"!==o&&s,t`
|
||
position: relative;
|
||
overflow: auto;
|
||
border-radius: ${e.borderRadius}px;
|
||
transition: background-color 100ms ${e.motionEaseOut};
|
||
|
||
&:hover {
|
||
.${a} {
|
||
opacity: 1;
|
||
}
|
||
|
||
.${l} {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
.prism-code {
|
||
background: none !important;
|
||
}
|
||
|
||
pre {
|
||
margin: 0 !important;
|
||
padding: ${"pure"===o?0:"16px 24px"} !important;
|
||
background: none !important;
|
||
}
|
||
|
||
code {
|
||
background: transparent !important;
|
||
}
|
||
`),header:t`
|
||
padding: 4px 8px;
|
||
background: ${e.colorFillQuaternary};
|
||
`,select:t`
|
||
.${r}-select-selection-item {
|
||
min-width: 100px;
|
||
padding-inline-end: 0 !important;
|
||
color: ${e.colorTextDescription};
|
||
text-align: center;
|
||
}
|
||
`}})),wee=B.memo((({children:e,title:t="Prompt",className:n,style:r,showCopy:o=!0,...i})=>{const[a,l]=B.useState(!0),{styles:s,cx:c}=yee("block"),u=c(s.container,n);return Q.jsxs("div",{className:u,"data-code-type":"highlighter",style:r,...i,children:[Q.jsxs(fU,{align:"center",className:s.header,horizontal:!0,justify:"space-between",children:[Q.jsx(yH,{icon:a?Td:Ad,onClick:()=>l(!a),size:{blockSize:24,fontSize:14,strokeWidth:3}}),Q.jsx(yH,{size:{blockSize:24},style:{width:"unset"},children:t}),o?Q.jsx(kY,{content:e,placement:"left",size:{blockSize:24,fontSize:14,strokeWidth:2}}):Q.jsx("div",{})]}),Q.jsx("div",{style:a?{}:{height:0,overflow:"hidden"},children:Q.jsx(vee,{children:e})})]})})),xee={addPromptButton(e){ue.info("🤯 [formatPrompt] inject",e);const t=gradioApp().querySelector(`#${e}_tools > div.form`),n=gradioApp().querySelector(`#${e}_formatconvert`);if(!t||n)return;const r=xee.createButton(`${e}_formatconvert`,"🪄",(()=>xee.onClickConvert(e)));t.append(r)},convert(e){const t=/\{|\[|\}|\]|[^{}[\]]+/gmu;let n=xee.convertStr(e);const r=xee.convertStr2Array(n);n=xee.convertArray2Str(r);let o=[];const i={"[":{multiplier:1/1.05,stack:[]},"{":{multiplier:1.05,stack:[]}};function a(e,t){for(let n=e;n<o.length;n++)o[n][1]=xee.round(o[n][1]*t)}for(const c of n.matchAll(t)){let e=c[0];if(e in i)i[e].stack.push(o.length);else if("}"===e||"]"===e){const t=i["}"===e?"{":"["];t.stack.length>0&&a(t.stack.pop(),t.multiplier)}else o.push([e,1])}for(const c of Object.keys(i))for(const e of i[c].stack)a(e,i[c].multiplier);0===o.length&&(o=[["",1]]);let l=0;for(;l+1<o.length;)o[l][1]===o[l+1][1]?(o[l][0]+=o[l+1][0],o.splice(l+1,1)):l+=1;let s="";for(const[c,u]of o)s+=1===u?c:`(${c}:${u.toString()})`;return s},convertArray2Str:e=>e.map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/,|\.\|。/g,",").replaceAll(/“|‘|”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return xee.convertStr2Array(t).join(", ")})).join(", "),convertStr:e=>e.replaceAll(":",":").replaceAll("(","(").replaceAll(")",")"),convertStr2Array(e){const t=/([()<>[\]])/g;return(e=>{let n=(e=>{const n=[];let r,o=0,i=0;for(;null!==(r=t.exec(e));)0===i&&r.index>o&&(n.push(e.slice(o,r.index)),o=r.index),"("===r[0]||"<"===r[0]||"["===r[0]?i++:")"!==r[0]&&">"!==r[0]&&"]"!==r[0]||i--,0===i&&(n.push(e.slice(o,r.index+1)),o=r.index+1);return o<e.length&&n.push(e.slice(Math.max(0,o))),n})(e);return n=n.flatMap((e=>(e=>{const n=[];let r=0,o=!1;for(let i=0;i<e.length;i++)","!==e[i]||o?t.test(e[i])&&(o=!o):(n.push(e.slice(r,i)),r=i+1);return n.push(e.slice(Math.max(0,r))),n})(e))),n.filter((e=>""!==e))})(e).filter((e=>!/^[\s,,]+$/.test(e))).filter(Boolean).sort(((e,t)=>e.includes("<")&&!t.includes("<")?1:t.includes("<")&&!e.includes("<")?-1:0))},createButton(e,t,n){const r=document.createElement("button");return r.id=e,r.type="button",r.innerHTML=t,r.title="Format prompt~🪄",r.className="lg secondary gradio-button tool svelte-cmf5ev",r.addEventListener("click",n),r},dispatchInputEvent(e){let t=new Event("input");Object.defineProperty(t,"target",{value:e}),e.dispatchEvent(t)},onClickConvert(e){const t=gradioApp().querySelector(`#${e}_prompt > label > textarea`),n=xee.convert(t.value);t.value=null===n.match(/^masterpiece, best quality,/)?""+n:n,xee.dispatchInputEvent(t);const r=gradioApp().querySelector(`#${e}_neg_prompt > label > textarea`),o=xee.convert(r.value);r.value=null===o.match(/^lowres,/)?0===o.length?"":""+o:o,xee.dispatchInputEvent(r)},round:e=>Math.round(1e4*e)/1e4},See=e=>{let t=e.replaceAll("<","<").replaceAll(">",">");return xee.convert(t)},kee=B.memo((({value:e,className:t,style:n,showCopy:r=!0,showConfig:o=!0,showNegative:i=!0})=>{const{styles:a,cx:l}=fee(),s=B.useMemo((()=>(e=>{if(!e||"undefined"===e)return;if(!e.includes("<br>"))return;const t=e.split("<br>").filter(Boolean),n=t[2]||t[1];if(!n.includes(","))return;const r=n.split(",").map((e=>e.trim())).filter(Boolean),o={};for(const l of r){const e=l.split(":");o[e[0].trim()]=e[1].trim()}let i=t[0],a=t[2]?t[1]:"";return i.includes("Negative prompt:")&&(a=i,i=""),i=See(i),a=See(a.split("Negative prompt: ")[1]),{config:o,negative:a,positive:i}})(e)),[e]);return e&&"undefined"!==e&&s?Q.jsxs(fU,{className:t,gap:4,style:n,children:[(null==s?void 0:s.positive)&&Q.jsx(wee,{className:a.highlight,showCopy:r,title:"Positive Prompt",children:s.positive}),i&&(null==s?void 0:s.negative)&&Q.jsx(wee,{className:l(a.highlight,a.negative),showCopy:r,title:"Negative Prompt",children:s.negative}),o&&(null==s?void 0:s.config)&&Q.jsx(fU,{className:a.container,style:r?{}:{paddingRight:24},children:Object.entries(s.config).map((([e,t])=>Q.jsxs(fU,{gap:4,horizontal:!0,justify:"space-between",children:[Q.jsxs(fU,{align:"center",className:a.configTitle,horizontal:!0,children:[e,":"]}),Q.jsxs(fU,{align:"center",className:a.configValue,gap:4,horizontal:!0,children:[t,r&&Q.jsx(kY,{content:t,size:"small"})]})]},e)))})]}):null})),Cee=B.memo((({parentId:e})=>{const t=dee(`${e} .infotext`,{subSelector:"p"});return B.useEffect((()=>{gradioApp().querySelector(`${e} .infotext`).style.display="none"}),[]),Q.jsx(kee,{value:t})})),Eee="%[a-f0-9]{2}",Oee=new RegExp("("+Eee+")|([^%]+?)","gi"),Dee=new RegExp("("+Eee+")+","gi");function $ee(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],$ee(n),$ee(r))}function jee(e){try{return decodeURIComponent(e)}catch{let t=e.match(Oee)||[];for(let n=1;n<t.length;n++)t=(e=$ee(t,n).join("")).match(Oee)||[];return e}}function Pee(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"<22><>","%FF%FE":"<22><>"};let n=Dee.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=jee(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Dee.exec(e)}t["%C2"]="<22>";const r=Object.keys(t);for(const o of r)e=e.replace(new RegExp(o,"g"),t[o]);return e}(e)}}function _ee(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function Nee(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);(null==t?void 0:t.enumerable)&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);if(o.enumerable){t(r,e[r],e)&&Object.defineProperty(n,r,o)}}return n}const Iee=e=>null==e,Tee=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),Fee=Symbol("encodeFragmentIdentifier");function Aee(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function Ree(e,t){return t.encode?t.strict?Tee(e):encodeURIComponent(e):e}function Mee(e,t){return t.decode?Pee(e):e}function Lee(e){return Array.isArray(e)?e.sort():"object"==typeof e?Lee(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function zee(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function Bee(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function Hee(e){const t=(e=zee(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function Wee(e,t){Aee((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&Mee(n,e).includes(e.arrayFormatSeparator);n=i?Mee(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>Mee(t,e))):null===n?n:Mee(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?Mee(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>Mee(t,e)));void 0!==r[t]?r[t]=[...r[t],...i]:r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[i,a]=_ee(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:Mee(a,t),n(Mee(i,t),a,r)}for(const[o,i]of Object.entries(r))if("object"==typeof i&&null!==i)for(const[e,n]of Object.entries(i))i[e]=Bee(n,t);else r[o]=Bee(i,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=Lee(n):e[t]=n,e}),Object.create(null))}function Uee(e,t){if(!e)return"";Aee((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&Iee(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[Ree(t,e),"[",o,"]"].join("")]:[...n,[Ree(t,e),"[",Ree(o,e),"]=",Ree(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[Ree(t,e),"[]"].join("")]:[...n,[Ree(t,e),"[]=",Ree(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[Ree(t,e),":list="].join("")]:[...n,[Ree(t,e),":list=",Ree(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[Ree(n,e),t,Ree(o,e)].join("")]:[[r,Ree(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,Ree(t,e)]:[...n,[Ree(t,e),"=",Ree(r,e)].join("")]}}(t),o={};for(const[a,l]of Object.entries(e))n(a)||(o[a]=l);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?Ree(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?Ree(n,t)+"[]":o.reduce(r(n),[]).join("&"):Ree(n,t)+"="+Ree(o,t)})).filter((e=>e.length>0)).join("&")}function Vee(e,t){var n;t={decode:!0,...t};let[r,o]=_ee(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:Wee(Hee(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:Mee(o,t)}:{}}}function Gee(e,t){t={encode:!0,strict:!0,[Fee]:!0,...t};const n=zee(e.url).split("?")[0]||"";let r=Uee({...Wee(Hee(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[Fee]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function qee(e,t,n){n={parseFragmentIdentifier:!0,[Fee]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=Vee(e,n);return Gee({url:r,query:Nee(o,t),fragmentIdentifier:i},n)}const Xee=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(e,t,n){return qee(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)},extract:Hee,parse:Wee,parseUrl:Vee,pick:qee,stringify:Uee,stringifyUrl:Gee},Symbol.toStringTag,{value:"Module"})),Kee=()=>{const[e,t]=B.useState((()=>{try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}})());return B.useEffect((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),n=e=>{t(e.matches)};return e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}}),[]),e},Yee={dark:{colorPrimary:"#007AFF",colorPrimaryActive:"#1554ad",colorPrimaryBg:"#111a2c",colorPrimaryBgHover:"#112545",colorPrimaryBorder:"#15325b",colorPrimaryBorderHover:"#15417e",colorPrimaryHover:"#3c89e8",colorPrimaryText:"#1668dc",colorPrimaryTextActive:"#1554ad",colorPrimaryTextHover:"#3c89e8"},light:{colorPrimary:"#007AFF",colorPrimaryActive:"#0958d9",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorPrimaryTextHover:"#4096ff"}},Qee={dark:{colorBgContainer:"#1f1f1f",colorBgElevated:"#222",colorBgLayout:"#181818",colorBgSpotlight:"#444",colorBorder:"#444",colorBorderSecondary:"#333",colorFill:"rgb(255 255 255 / 18%)",colorFillQuaternary:"rgb(255 255 255 / 4%)",colorFillSecondary:"rgb(255 255 255 / 12%)",colorFillTertiary:"rgb(255 255 255 / 8%)",colorNeutral:"#666",colorText:"rgb(255 255 255 / 85%)",colorTextQuaternary:"rgb(255 255 255 / 25%)",colorTextSecondary:"rgb(255 255 255 / 65%)",colorTextTertiary:"rgb(255 255 255 / 45%)"},light:{colorBgContainer:"#fff",colorBgElevated:"#fff",colorBgLayout:"#f7f7f7",colorBgSpotlight:"rgb(0 0 0 / 85%)",colorBorder:"#ddd",colorBorderSecondary:"#eee",colorFill:"rgb(0 0 0 / 15%)",colorFillQuaternary:"rgb(0 0 0 / 2%)",colorFillSecondary:"rgb(0 0 0 / 6%)",colorFillTertiary:"rgb(0 0 0 / 4%)",colorNeutral:"#666",colorText:"rgb(0 0 0 / 88%)",colorTextQuaternary:"rgb(0 0 0 / 25%)",colorTextSecondary:"rgb(0 0 0 / 65%)",colorTextTertiary:"rgb(0 0 0 / 45%)"}},Jee=B.memo((({children:e})=>{const{onSetThemeMode:t,themeMode:n}=aee((e=>({onInit:e.onInit,onSetThemeMode:e.onSetThemeMode,themeMode:e.themeMode}))),r=aee(ree,m1),o=Kee();B.useEffect((()=>{const e=String(Xee.parseUrl(window.location.href).query.__theme||"");e?(document.body.classList.add(e),t(e)):(document.body.classList.add(o?"dark":"light"),t(o?"dark":"light"))}),[o]);const i=B.useCallback((()=>{let e={},t={};if(r.primaryColor)if("kitchen"===r.primaryColor)e=Yee[n];else{const t=KZ[r.primaryColor];e=Q5({appearance:n,scale:t,type:"Primary"})}if(r.neutralColor)if("kitchen"===r.neutralColor)t=Qee[n];else{const e=Z5[r.neutralColor];t=J5({appearance:n,scale:e})}return{...e,...t}}),[r.primaryColor,r.neutralColor,n]);return r&&Q.jsx(t4,{customToken:i,enableWebfonts:r.enableWebFont,themeMode:n,children:e})})),Zee=B.memo((({children:e})=>{const t=aee((e=>e.loading));return Q.jsx(Jee,{children:!1===t&&e})})),ete=(e,t)=>{if(document.querySelector(t))return;const n=document.createElement("div");n.id=t.replace("#",""),gradioApp().querySelector(e).insertBefore(n,gradioApp().querySelector(e).firstChild),xd(n).render(Q.jsx(B.StrictMode,{children:Q.jsx(B.Suspense,{fallback:"loading...",children:Q.jsx(Zee,{children:Q.jsx(Cee,{parentId:e})})})}))},tte=B.memo((({parentId:e})=>{const t=B.useRef(null),[n,r]=B.useState(""),{styles:o,theme:i}=bee(),a=(e=>{const[t,n]=B.useState("");return B.useEffect((()=>{const t={attributes:!0,characterData:!0,childList:!0,subtree:!0},r=new MutationObserver((t=>{for(const r of t)if("attributes"===r.type){const t=document.querySelector(e);n(t.value)}})),o=document.querySelector(e);return o&&(r.observe(o,t),n(o.value)),()=>{r.disconnect()}}),[e]),t})(`${e} label textarea`),l=B.useMemo((()=>gradioApp().querySelector(`${e} label textarea`)),[e]),s=(c=l,u=DV(tY((function(){var e=tG(c);return e?{width:e.clientWidth,height:e.clientHeight}:void 0})),2),d=u[0],f=u[1],rY((function(){var e=tG(c);if(e){var t=new Ub((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,r=t.clientHeight;f({width:n,height:r})}))}));return t.observe(e),function(){t.disconnect()}}}),[],c),d);var c,u,d,f;const p=function(e,t){void 0===t&&(t=function(){return!0});var n=DV(tY(),2),r=n[0],o=n[1],i=PV(t);return rG((function(){var t=tG(e,document);if(t){var n=function(){var e;e=t===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:t.scrollLeft,top:t.scrollTop},i.current(e)&&o(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),r}(l),h=B.useCallback((e=>{r(e.target.value)}),[]),g=B.useCallback((()=>l.clientHeight<l.scrollHeight?void 0===(null==s?void 0:s.width)?"":(null==s?void 0:s.width)+6:void 0===(null==s?void 0:s.width)?"":(null==s?void 0:s.width)+2),[l.clientWidth]);return B.useEffect((()=>{t.current.scroll(0,(null==p?void 0:p.top)||0)}),[null==p?void 0:p.top]),B.useEffect((()=>(l.addEventListener("change",h),()=>{l.removeEventListener("change",h)})),[]),B.useEffect((()=>{i&&(l.style.color="transparent",l.style.caretColor=i.colorSuccess)}),[i]),B.useEffect((()=>{r(a)}),[a]),Q.jsx("div",{className:o.container,"data-code-type":"highlighter",ref:t,style:{height:null==s?void 0:s.height,width:g()},children:Q.jsx(vee,{children:n})})})),nte=B.memo((({children:e})=>{const t=aee((e=>e.loading));return Q.jsx(Jee,{children:!1===t&&e})})),rte=(e,t)=>{if(document.querySelector(t))return;const n=document.createElement("div");n.id=t.replace("#",""),gradioApp().querySelector(e).insertBefore(n,gradioApp().querySelector(e).firstChild),xd(n).render(Q.jsx(B.StrictMode,{children:Q.jsx(B.Suspense,{fallback:"loading...",children:Q.jsx(nte,{children:Q.jsx(tte,{parentId:e})})})}))};
|
||
/**
|
||
* @license lucide-static v0.293.0 - ISC
|
||
*/
|
||
var ote='<svg\n class="lucide lucide-arrow-right"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M5 12h14" />\n <path d="m12 5 7 7-7 7" />\n</svg>\n';
|
||
/**
|
||
* @license lucide-static v0.293.0 - ISC
|
||
*/const ite=(e,t,n,r)=>{var o;if((null==e?void 0:e.textContent)&&n)for(const i of t)(null==(o=null==e?void 0:e.textContent)?void 0:o.includes(i))&&(e.innerHTML=n.replace('width="24"',`width="${r}"`).replace('height="24"',`height="${r}"`))},ate=e=>WB`
|
||
html,
|
||
body,
|
||
#__next,
|
||
.ant-app {
|
||
position: relative;
|
||
overscroll-behavior: none;
|
||
height: 100% !important;
|
||
min-height: 100% !important;
|
||
|
||
::-webkit-scrollbar {
|
||
display: none;
|
||
width: 0;
|
||
height: 0;
|
||
}
|
||
}
|
||
|
||
.ant-slider-track,
|
||
.ant-tabs-ink-bar,
|
||
.ant-switch-checked {
|
||
background: ${e.colorPrimary} !important;
|
||
}
|
||
|
||
.ant-btn-primary:not(.ant-btn-dangerous) {
|
||
color: ${xV(e.colorPrimary)};
|
||
background: ${e.colorPrimary};
|
||
|
||
&:hover {
|
||
color: ${xV(e.colorPrimary)} !important;
|
||
background: ${e.colorPrimaryHover} !important;
|
||
}
|
||
|
||
&:active {
|
||
color: ${xV(e.colorPrimaryActive)} !important;
|
||
background: ${e.colorPrimaryActive} !important;
|
||
}
|
||
}
|
||
`,lte=e=>WB`
|
||
button {
|
||
cursor: pointer;
|
||
min-width: fit-content !important;
|
||
|
||
&.gradio-button {
|
||
&.tool:not(.hidden) {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
width: 36px;
|
||
min-width: 36px !important;
|
||
max-width: 36px !important;
|
||
height: var(--button-lg-tool-height);
|
||
min-height: var(--button-lg-tool-height) !important;
|
||
max-height: var(--button-lg-tool-height);
|
||
padding: 0;
|
||
|
||
font-size: var(--text-md);
|
||
line-height: 1;
|
||
|
||
background: ${e.colorFillSecondary};
|
||
border: 1px solid ${e.colorBorderSecondary};
|
||
border-radius: ${e.borderRadius}px;
|
||
|
||
&:hover {
|
||
background: ${e.colorFill};
|
||
}
|
||
|
||
&.secondary,
|
||
&.primary {
|
||
overflow: hidden;
|
||
flex: 1;
|
||
|
||
font-size: var(--text-md);
|
||
line-height: 1;
|
||
text-overflow: ellipsis;
|
||
|
||
&:active {
|
||
box-shadow: ${e.boxShadowSecondary};
|
||
}
|
||
}
|
||
}
|
||
|
||
&.secondary {
|
||
font-weight: 500;
|
||
background: ${e.colorFillTertiary};
|
||
border: 1px solid ${e.colorBorderSecondary};
|
||
border-radius: ${e.borderRadius}px !important;
|
||
|
||
&:hover {
|
||
color: ${e.colorText};
|
||
background: ${e.colorFill};
|
||
border-color: ${e.colorBorder};
|
||
}
|
||
}
|
||
|
||
&:not(.tool, .svelte-1p4r00v) {
|
||
&.primary,
|
||
&.secondary {
|
||
&.lg {
|
||
height: var(--button-lg-height) !important;
|
||
min-height: var(--button-lg-height) !important;
|
||
max-height: var(--button-lg-height) !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
&[id$='_generate'] {
|
||
height: var(--button-lg-height) !important;
|
||
min-height: var(--button-lg-height) !important;
|
||
max-height: var(--button-lg-height) !important;
|
||
}
|
||
|
||
&[id$='_interrupt'] {
|
||
min-width: 0;
|
||
|
||
color: var(--button-cancel-text-color) !important;
|
||
|
||
background: ${e.colorError} !important;
|
||
border: 1px solid ${e.colorError};
|
||
border-right: none !important;
|
||
border-radius: ${e.borderRadius}px 0 0 ${e.borderRadius}px !important;
|
||
|
||
&:hover,
|
||
&:active {
|
||
background: ${e.colorErrorHover} !important;
|
||
border: 1px solid ${e.colorErrorHover};
|
||
}
|
||
}
|
||
|
||
&[id$='_skip'] {
|
||
min-width: 0;
|
||
background: ${e.colorBorderSecondary} !important;
|
||
border-radius: 0 ${e.borderRadius}px ${e.borderRadius}px 0 !important;
|
||
|
||
&:hover,
|
||
&:active {
|
||
background: ${e.colorBorder} !important;
|
||
}
|
||
}
|
||
|
||
&#interrogate,
|
||
&#deepbooru {
|
||
height: auto !important;
|
||
max-height: fit-content !important;
|
||
|
||
font-size: 14px;
|
||
line-height: inherit;
|
||
white-space: break-spaces;
|
||
}
|
||
}
|
||
}
|
||
|
||
div[id^='image_buttons_'] {
|
||
flex-wrap: wrap;
|
||
|
||
button.gradio-button.tool {
|
||
flex: 1;
|
||
max-width: max(36px, 100%) !important;
|
||
font-size: var(--text-md) !important;
|
||
}
|
||
}
|
||
`,ste=e=>WB`
|
||
.label-wrap {
|
||
transition: padding 400ms ${e.motionEaseOut};
|
||
|
||
> span:not(.icon) {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
|
||
font-size: var(--text-md);
|
||
font-weight: 600;
|
||
line-height: 1;
|
||
|
||
transition: color 400ms ${e.motionEaseOut};
|
||
|
||
&::before {
|
||
content: '';
|
||
|
||
display: block;
|
||
|
||
width: 8px;
|
||
height: 8px;
|
||
|
||
background: ${e.colorPrimary};
|
||
border-radius: 4px;
|
||
}
|
||
}
|
||
|
||
&.open {
|
||
padding-bottom: 16px;
|
||
border-bottom: 1px dashed ${e.colorBorderSecondary};
|
||
|
||
span {
|
||
color: ${e.colorText};
|
||
}
|
||
}
|
||
}
|
||
`,cte=e=>WB`
|
||
.gradio-group,
|
||
.gradio-row {
|
||
gap: 12px !important;
|
||
}
|
||
|
||
&.gradio-box,
|
||
&.gradio-accordion {
|
||
&:not(.hidden):has(div) {
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
border: 1px solid ${e.colorBorderSecondary} !important;
|
||
}
|
||
}
|
||
|
||
.block.padded {
|
||
&.gradio-box:not(.gradio-accordion) {
|
||
padding: 16px !important;
|
||
}
|
||
}
|
||
|
||
.panel {
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
}
|
||
|
||
.compact,
|
||
.wrap {
|
||
gap: 12px !important;
|
||
}
|
||
|
||
#tabs > div {
|
||
padding: unset;
|
||
border: none;
|
||
}
|
||
|
||
#system_info {
|
||
align-items: flex-start;
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
#img2img_results,
|
||
#txt2img_results,
|
||
#extras_results {
|
||
position: sticky;
|
||
top: 80px !important;
|
||
}
|
||
|
||
#context-menu {
|
||
overflow: hidden;
|
||
|
||
color: ${e.colorText};
|
||
|
||
background: ${e.colorBgElevated} !important;
|
||
border: 1px solid ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadiusLG}px !important;
|
||
box-shadow: ${e.boxShadow} !important;
|
||
|
||
a {
|
||
padding: 8px;
|
||
font-weight: 400;
|
||
color: ${e.colorText};
|
||
|
||
&:hover {
|
||
font-weight: 600;
|
||
color: ${xV(e.colorPrimary)};
|
||
background: ${e.colorPrimary};
|
||
}
|
||
}
|
||
}
|
||
|
||
#tabs_extensions > .tabitem > .gap > .gradio-row {
|
||
overflow: auto;
|
||
}
|
||
`,ute=e=>WB`
|
||
#root {
|
||
/* sd-webui-prompt-all-in-one */
|
||
.physton-highlight-prompt {
|
||
color: ${e.colorPrimary} !important;
|
||
|
||
-webkit-text-fill-color: ${e.colorPrimary} !important;
|
||
}
|
||
|
||
/* openOutpaint */
|
||
#tab_openOutpaint {
|
||
position: relative;
|
||
height: 100vh;
|
||
padding: 0 !important;
|
||
|
||
#openoutpaint-iframe {
|
||
width: 100% !important;
|
||
}
|
||
}
|
||
|
||
/* autocomplete */
|
||
.autocompleteResults {
|
||
min-width: 400px;
|
||
|
||
font-family: ${e.fontFamilyCode};
|
||
font-size: 12px;
|
||
|
||
background: ${e.colorBgElevated} !important;
|
||
border-color: ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadius}px !important;
|
||
box-shadow: ${e.boxShadow};
|
||
|
||
ul {
|
||
padding: 0 !important;
|
||
}
|
||
|
||
li {
|
||
border-bottom: 1px solid ${e.colorBorder};
|
||
|
||
&:hover {
|
||
background: ${e.colorFillSecondary} !important;
|
||
}
|
||
|
||
&:nth-of-type(odd) {
|
||
background: transparent !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* ADetailer */
|
||
[id*='img_adetailer_ad_toprow_prompt'] {
|
||
margin-bottom: var(--spacing-lg);
|
||
}
|
||
|
||
[id*='_adetailer_ad_detection_accordion'].block.padded.gradio-accordion,
|
||
[id*='_adetailer_ad_mask_preprocessing_accordion'].block.padded.gradio-accordion,
|
||
[id*='_adetailer_ad_inpainting_accordion'].block.padded.gradio-accordion {
|
||
margin: var(--spacing-lg) 0 !important;
|
||
|
||
.label-wrap.open {
|
||
margin-bottom: 0;
|
||
padding-bottom: 8px;
|
||
}
|
||
}
|
||
|
||
/* ControlNet */
|
||
.cnet-badge.primary {
|
||
font-size: var(--text-xs);
|
||
line-height: 1.3;
|
||
color: var(--body-background-fill);
|
||
background-color: ${e.colorSuccess};
|
||
}
|
||
|
||
.tab-nav button {
|
||
&.cnet-unit-active,
|
||
&.selected.cnet-unit-active {
|
||
color: ${e.colorSuccess} !important;
|
||
}
|
||
}
|
||
|
||
/* Aspect Ratio selector */
|
||
[id$='2img_container_aspect_ratio'] {
|
||
padding: var(--block-padding);
|
||
border: 1px solid var(--block-border-color);
|
||
border-radius: 8px;
|
||
|
||
#arc_empty_space {
|
||
display: none;
|
||
}
|
||
|
||
button[id$='_calculator_button'] {
|
||
max-width: fit-content !important;
|
||
height: var(--button-lg-tool-height) !important;
|
||
min-height: var(--button-lg-tool-height) !important;
|
||
max-height: var(--button-lg-tool-height) !important;
|
||
padding: 0 1.25em !important;
|
||
|
||
font-size: var(--text-md);
|
||
font-weight: 500;
|
||
|
||
border: none;
|
||
border-radius: 0.5em;
|
||
}
|
||
|
||
#arc_panel {
|
||
.block.gradio-markdown.padded.hide-container {
|
||
.hide,
|
||
.pending {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.gradio-column:has([id$='_arc_tool_buttons']) {
|
||
justify-content: space-between;
|
||
}
|
||
}
|
||
}
|
||
|
||
[id$='2img_container_aspect_ratio'],
|
||
[id$='2img_row_resolutions'] {
|
||
gap: 0.5em !important;
|
||
}
|
||
|
||
/* Inpaint Anything */
|
||
#padding_btn {
|
||
margin-top: auto;
|
||
}
|
||
|
||
/* Model Toolkit */
|
||
#tab_checkpoint_toolkit {
|
||
button {
|
||
align-self: end;
|
||
}
|
||
}
|
||
}
|
||
`,dte=e=>{const t=WB`
|
||
background-color: ${e.colorBgContainer};
|
||
background-image: linear-gradient(45deg, ${e.colorFillTertiary} 25%, transparent 25%),
|
||
linear-gradient(-45deg, ${e.colorFillTertiary} 25%, transparent 25%),
|
||
linear-gradient(45deg, transparent 75%, ${e.colorFillTertiary} 75%),
|
||
linear-gradient(-45deg, transparent 75%, ${e.colorFillTertiary} 75%);
|
||
background-position:
|
||
0 0,
|
||
0 10px,
|
||
10px -10px,
|
||
-10px 0;
|
||
background-size: 20px 20px;
|
||
border: 2px solid ${e.colorBorderSecondary} !important;
|
||
border-radius: ${e.borderRadius}px !important;
|
||
`;return WB`
|
||
.livePreview,
|
||
.gradio-gallery,
|
||
.gradio-image,
|
||
.gradio-video,
|
||
.gradio-file {
|
||
${t}
|
||
}
|
||
|
||
div.block {
|
||
&.livePreview,
|
||
&.gradio-gallery,
|
||
&.gradio-image,
|
||
&.gradio-video,
|
||
&.gradio-file {
|
||
${t}
|
||
}
|
||
}
|
||
|
||
div.svelte-awbtu4 {
|
||
.livePreview,
|
||
.gradio-gallery,
|
||
.gradio-image,
|
||
.gradio-video,
|
||
.gradio-file {
|
||
${t}
|
||
}
|
||
}
|
||
|
||
.block.gradio-gallery {
|
||
.thumbnail-item {
|
||
position: unset;
|
||
background: ${e.colorBgContainer} !important;
|
||
box-shadow: none;
|
||
|
||
&.thumbnail-small {
|
||
transform: none;
|
||
border-radius: 4px;
|
||
transition: var(--button-transition);
|
||
}
|
||
|
||
&.thumbnail-lg {
|
||
border-radius: 5px;
|
||
transition: var(--button-transition);
|
||
}
|
||
|
||
&:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow:
|
||
0 0 0 1px ${e.colorBorder},
|
||
var(--thumbnail-shadow);
|
||
}
|
||
|
||
&.thumbnail-small:hover {
|
||
transform: none;
|
||
box-shadow: 0 0 0 1px ${e.colorBorder};
|
||
}
|
||
}
|
||
|
||
> .grid-wrap {
|
||
margin: -52px;
|
||
padding: 60px;
|
||
}
|
||
}
|
||
|
||
[id$='_gallery_container'] {
|
||
min-height: 470px;
|
||
|
||
> div:not([id$='_generate_box']) {
|
||
flex-grow: 1;
|
||
|
||
[id$='_gallery'] {
|
||
flex-grow: 1;
|
||
}
|
||
}
|
||
}
|
||
|
||
div[id^='img2img_'].block.gradio-image {
|
||
height: auto !important;
|
||
}
|
||
`},fte=e=>WB`
|
||
.block.gradio-checkbox {
|
||
margin: 0 !important;
|
||
}
|
||
|
||
label:has(input[type='radio']),
|
||
label:has(input[type='checkbox']) {
|
||
border-radius: ${e.borderRadius}px !important;
|
||
}
|
||
|
||
input {
|
||
&:not([type='range'], [type='checkbox'], [type='number'], [type='radio'], .border-none) {
|
||
resize: none;
|
||
|
||
overflow: hidden;
|
||
|
||
width: 100%;
|
||
height: var(--button-lg-tool-height) !important;
|
||
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
&[type='checkbox'],
|
||
&[type='radio'] {
|
||
cursor: pointer;
|
||
|
||
flex: 0;
|
||
|
||
width: ${e.fontSize}px;
|
||
min-width: ${e.fontSize}px;
|
||
max-width: ${e.fontSize}px;
|
||
height: ${e.fontSize}px;
|
||
min-height: ${e.fontSize}px;
|
||
max-height: ${e.fontSize}px;
|
||
|
||
appearance: none !important;
|
||
}
|
||
|
||
&[type='checkbox'] {
|
||
--ring-color: transparent;
|
||
|
||
position: relative;
|
||
|
||
line-height: var(--line-sm);
|
||
|
||
background-color: ${e.colorFillTertiary} !important;
|
||
border: 1px solid ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadiusSM}px !important;
|
||
|
||
&:checked {
|
||
background-color: ${e.colorPrimary} !important;
|
||
background-image: var(--checkbox-check) !important;
|
||
border-color: ${e.colorPrimaryBorder} !important;
|
||
}
|
||
}
|
||
|
||
&[type='number'] {
|
||
height: var(--button-lg-tool-height) !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
}
|
||
`,pte=e=>WB`
|
||
#lightboxModal {
|
||
background-color: var(--popup-overlay) !important;
|
||
backdrop-filter: saturate(120%) blur(80px);
|
||
outline: none;
|
||
|
||
> img:not(.modalImageFullscreen) {
|
||
box-shadow: var(--lightbox-img-shadow);
|
||
}
|
||
}
|
||
|
||
.modalControls {
|
||
transition: var(--button-transition) !important;
|
||
|
||
&:hover {
|
||
background-color: transparent !important;
|
||
}
|
||
|
||
.cursor {
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
justify-content: center !important;
|
||
|
||
width: 32px !important;
|
||
height: 32px !important;
|
||
|
||
background-color: ${e.colorFillTertiary};
|
||
backdrop-filter: saturate(120%) blur(80px);
|
||
border-radius: ${e.borderRadius}px;
|
||
|
||
> svg {
|
||
width: 20px !important;
|
||
height: 20px !important;
|
||
}
|
||
|
||
&:hover {
|
||
color: ${e.colorPrimary} !important;
|
||
background-color: ${e.colorFillSecondary} !important;
|
||
}
|
||
}
|
||
|
||
span {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
width: 32px !important;
|
||
|
||
font-size: 35px !important;
|
||
color: ${e.colorTextDescription} !important;
|
||
text-align: center;
|
||
text-shadow: none !important;
|
||
|
||
transition: var(--button-transition);
|
||
|
||
&:hover,
|
||
&:focus {
|
||
color: ${e.colorPrimary} !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
.modalPrev,
|
||
.modalNext {
|
||
top: 0 !important;
|
||
transform: translate(0, calc(50% + 63px)) !important;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
width: 44px !important;
|
||
height: 50%;
|
||
padding: 8px !important;
|
||
|
||
font-size: 20px !important;
|
||
font-weight: 600 !important;
|
||
color: ${e.colorTextDescription} !important;
|
||
|
||
background-color: ${e.colorFillTertiary};
|
||
border-radius: 0 ${e.borderRadius}px ${e.borderRadius}px 0 !important;
|
||
|
||
transition: var(--button-transition) !important;
|
||
|
||
svg {
|
||
width: 20px !important;
|
||
height: 20px !important;
|
||
}
|
||
}
|
||
|
||
.modalNext {
|
||
border-radius: ${e.borderRadius}px 0 0 ${e.borderRadius}px !important;
|
||
}
|
||
|
||
.modalPrev:hover,
|
||
.modalNext:hover {
|
||
color: ${e.colorPrimary} !important;
|
||
background-color: ${e.colorFillSecondary} !important;
|
||
}
|
||
`,hte=e=>WB`
|
||
.gradio-dropdown {
|
||
.wrap,
|
||
input {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.container .wrap {
|
||
.wrap-inner input {
|
||
font-size: var(--text-sm);
|
||
line-height: 0;
|
||
}
|
||
}
|
||
}
|
||
|
||
.dropdown-arrow {
|
||
margin: 0 !important;
|
||
}
|
||
|
||
ul.options {
|
||
display: block !important;
|
||
|
||
margin: 0 !important;
|
||
padding: 4px !important;
|
||
|
||
background: ${e.colorBgElevated} !important;
|
||
border: 1px solid ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadius}px !important;
|
||
box-shadow: ${e.boxShadow};
|
||
|
||
li {
|
||
overflow: hidden;
|
||
display: block !important;
|
||
|
||
padding: 4px 8px !important;
|
||
|
||
line-height: 1 !important;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
border-radius: ${e.borderRadiusSM}px !important;
|
||
|
||
&.selected {
|
||
color: ${e.colorText} !important;
|
||
background: ${e.colorFill} !important;
|
||
}
|
||
|
||
&.active:not(.selected) {
|
||
color: black !important;
|
||
background: ${e.yellow} !important;
|
||
}
|
||
|
||
&:hover {
|
||
color: ${e.colorText} !important;
|
||
background: ${e.colorFillSecondary} !important;
|
||
}
|
||
}
|
||
}
|
||
`,gte=e=>WB`
|
||
.global-popup {
|
||
backdrop-filter: saturate(120%) blur(4px) !important;
|
||
}
|
||
|
||
.global-popup-close {
|
||
position: relative;
|
||
top: 16px !important;
|
||
right: 16px !important;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
width: 32px;
|
||
height: 32px;
|
||
|
||
background-color: ${e.colorFillSecondary};
|
||
backdrop-filter: saturate(120%) blur(80px);
|
||
border-radius: ${e.borderRadius}px;
|
||
|
||
&::before {
|
||
font-size: 24px !important;
|
||
line-height: 24px !important;
|
||
}
|
||
|
||
&:hover {
|
||
color: ${e.colorPrimary} !important;
|
||
background-color: ${e.colorFillSecondary} !important;
|
||
}
|
||
}
|
||
|
||
.global-popup-inner {
|
||
max-width: 80%;
|
||
|
||
> div {
|
||
border-radius: ${e.borderRadiusLG}px !important;
|
||
box-shadow: ${e.boxShadow} !important;
|
||
}
|
||
|
||
.popup-metadata {
|
||
overflow: auto;
|
||
|
||
width: 75vw;
|
||
height: 75vh;
|
||
padding: 32px;
|
||
|
||
font-family: ${e.fontFamilyCode};
|
||
color: ${e.colorText};
|
||
word-break: break-word;
|
||
|
||
background: ${e.colorBgLayout};
|
||
border-radius: ${e.borderRadiusLG}px !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
box-shadow: ${e.boxShadow} !important;
|
||
}
|
||
|
||
.edit-user-metadata {
|
||
> div:not(.edit-user-metadata-buttons):not(:last-child) {
|
||
margin: 0 0 8px;
|
||
}
|
||
}
|
||
}
|
||
`,mte=VB`
|
||
0% {
|
||
background-position: 0 0;
|
||
}
|
||
100% {
|
||
background-position: 24px 24px;
|
||
}
|
||
`,bte=e=>WB`
|
||
.progress-container {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.eta-bar {
|
||
overflow: hidden;
|
||
|
||
opacity: 1 !important;
|
||
background: ${e.colorFillQuaternary} !important;
|
||
backdrop-filter: saturate(180%) blur(10px);
|
||
border: 1px solid ${e.colorBorder};
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
.wrap.svelte-j1gjts:has(div) {
|
||
overflow: hidden;
|
||
|
||
min-height: 36px;
|
||
|
||
background: ${e.colorBgContainer} !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
box-shadow: 0 0 0 2px ${e.colorBgContainer};
|
||
|
||
.meta-text,
|
||
.meta-text-center {
|
||
font-size: 12px;
|
||
color: ${e.colorTextDescription};
|
||
}
|
||
}
|
||
|
||
.progressDiv {
|
||
position: relative !important;
|
||
top: 0 !important;
|
||
overflow: hidden;
|
||
background: ${e.colorFillSecondary} !important;
|
||
|
||
> .progress {
|
||
position: relative;
|
||
|
||
overflow: hidden;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-start;
|
||
|
||
font-family: var(--font-mono);
|
||
font-size: var(--text-md);
|
||
font-weight: 600 !important;
|
||
text-shadow: 0 1px 4px rgb(0 0 0 / 80%);
|
||
|
||
&::before {
|
||
content: '';
|
||
|
||
position: absolute;
|
||
z-index: 1;
|
||
inset: 0;
|
||
|
||
overflow: hidden;
|
||
|
||
background-image: linear-gradient(
|
||
-45deg,
|
||
rgba(255, 255, 255, 20%) 25%,
|
||
transparent 25%,
|
||
transparent 50%,
|
||
rgba(255, 255, 255, 20%) 50%,
|
||
rgba(255, 255, 255, 20%) 75%,
|
||
transparent 75%,
|
||
transparent
|
||
);
|
||
background-size: 24px 24px;
|
||
|
||
animation: ${mte} 2s linear infinite;
|
||
}
|
||
|
||
&::after {
|
||
content: '';
|
||
|
||
position: absolute;
|
||
z-index: 1;
|
||
inset: 0;
|
||
|
||
overflow: hidden;
|
||
|
||
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 40%), transparent 50%);
|
||
}
|
||
}
|
||
}
|
||
`,vte=e=>WB`
|
||
input[type='range'] {
|
||
cursor: pointer;
|
||
|
||
height: 3px;
|
||
margin-top: 8px;
|
||
|
||
appearance: none;
|
||
background: ${e.colorTextQuaternary};
|
||
border-radius: ${e.borderRadiusXS}px;
|
||
outline: none;
|
||
|
||
transition: var(--button-transition);
|
||
|
||
&::-webkit-slider-thumb {
|
||
width: 12px;
|
||
height: 16px;
|
||
|
||
appearance: none;
|
||
background: ${e.colorPrimary};
|
||
border: 1px solid ${e.colorPrimary};
|
||
border-radius: ${e.borderRadiusSM}px;
|
||
|
||
transition: var(--button-transition);
|
||
|
||
&:hover,
|
||
&:active {
|
||
background: ${e.colorPrimaryHover};
|
||
border-color: ${e.colorPrimaryHover};
|
||
}
|
||
}
|
||
|
||
&:hover {
|
||
background: ${e.colorPrimaryHover};
|
||
}
|
||
|
||
&:active {
|
||
background: ${e.colorPrimaryHover};
|
||
}
|
||
}
|
||
`,yte=e=>WB`
|
||
table {
|
||
overflow: auto;
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
}
|
||
|
||
th,
|
||
td {
|
||
padding: 12px !important;
|
||
border: 1px solid ${e.colorBorderSecondary} !important;
|
||
}
|
||
|
||
th {
|
||
background: ${e.colorFillQuaternary};
|
||
border-bottom: 4px solid var(--color-border) !important;
|
||
}
|
||
|
||
tr {
|
||
&:nth-of-type(odd) td {
|
||
background: ${e.colorFillQuaternary};
|
||
}
|
||
|
||
&:hover td,
|
||
&:nth-of-type(odd):hover td {
|
||
background: ${e.colorFillSecondary};
|
||
}
|
||
}
|
||
`,wte=e=>WB`
|
||
.tabitem,
|
||
.gradio-tabitem {
|
||
padding: 16px !important;
|
||
background: ${e.colorBgContainer};
|
||
border: none !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
#tabs {
|
||
> .tabitem.gradio-tabitem {
|
||
background: transparent !important;
|
||
}
|
||
}
|
||
|
||
.tab-nav {
|
||
gap: 8px;
|
||
margin-bottom: 8px;
|
||
border: none !important;
|
||
|
||
button {
|
||
cursor: pointer;
|
||
|
||
display: block;
|
||
flex: 1 !important;
|
||
|
||
min-width: 100px;
|
||
padding: 8px !important;
|
||
|
||
font-size: var(--text-md);
|
||
color: ${e.colorTextTertiary} !important;
|
||
|
||
background: ${e.colorFillTertiary} !important;
|
||
border: none !important;
|
||
border-radius: 4px !important;
|
||
|
||
transition: var(--button-transition);
|
||
|
||
&:hover {
|
||
color: ${e.colorText} !important;
|
||
background: ${e.colorFill} !important;
|
||
border: none !important;
|
||
}
|
||
|
||
&.selected {
|
||
font-weight: 600;
|
||
color: ${e.colorText} !important;
|
||
|
||
background: ${e.colorFillSecondary} !important;
|
||
border: none !important;
|
||
border-bottom: 2px solid ${e.colorPrimary} !important;
|
||
border-bottom-right-radius: 0 !important;
|
||
border-bottom-left-radius: 0 !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
#tab_settings {
|
||
#settings .tab-nav {
|
||
width: 15%;
|
||
|
||
button {
|
||
width: 100%;
|
||
background: transparent !important;
|
||
|
||
&.selected {
|
||
background: transparent !important;
|
||
border: none !important;
|
||
border-radius: 0 !important;
|
||
}
|
||
}
|
||
|
||
#settings_show_all_pages {
|
||
width: auto;
|
||
background: ${e.colorFillTertiary} !important;
|
||
border: 1px solid ${e.colorBorderSecondary};
|
||
border-radius: ${e.borderRadius}px !important;
|
||
|
||
&:hover {
|
||
background: ${e.colorFill} !important;
|
||
border-color: ${e.colorBorder} !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
.tabitem {
|
||
margin-left: 15%;
|
||
}
|
||
|
||
#settings_search {
|
||
margin: 0 0 var(--spacing-xl);
|
||
}
|
||
}
|
||
`,xte=HB((({theme:e})=>{return[(t=e,WB`
|
||
:root,
|
||
.dark {
|
||
--primary-50: ${t.geekblue1};
|
||
--primary-100: ${t.geekblue2};
|
||
--primary-200: ${t.geekblue3};
|
||
--primary-300: ${t.geekblue4};
|
||
--primary-400: ${t.geekblue5};
|
||
--primary-500: ${t.geekblue6};
|
||
--primary-600: ${t.geekblue7};
|
||
--primary-700: ${t.geekblue8};
|
||
--primary-800: ${t.geekblue9};
|
||
--primary-900: ${t.geekblue10};
|
||
--primary-950: ${t.geekblue11};
|
||
--secondary-50: ${t.geekblue1};
|
||
--secondary-100: ${t.geekblue2};
|
||
--secondary-200: ${t.geekblue3};
|
||
--secondary-300: ${t.geekblue4};
|
||
--secondary-400: ${t.geekblue5};
|
||
--secondary-500: ${t.geekblue6};
|
||
--secondary-600: ${t.geekblue7};
|
||
--secondary-700: ${t.geekblue8};
|
||
--secondary-800: ${t.geekblue9};
|
||
--secondary-900: ${t.geekblue10};
|
||
--secondary-950: ${t.geekblue11};
|
||
--neutral-50: ${t.colorText};
|
||
--neutral-100: ${t.colorText};
|
||
--neutral-200: ${t.colorTextSecondary};
|
||
--neutral-300: ${t.colorTextTertiary};
|
||
--neutral-400: ${t.colorTextQuaternary};
|
||
--neutral-500: ${t.colorFill};
|
||
--neutral-600: ${t.colorFillSecondary};
|
||
--neutral-700: ${t.colorFillTertiary};
|
||
--neutral-800: ${t.colorFillQuaternary};
|
||
--neutral-900: ${t.colorBgElevated};
|
||
--neutral-950: ${t.colorBgContainer};
|
||
--spacing-xxs: ${t.paddingXXS/4}px;
|
||
--spacing-xs: ${t.paddingXS/4}px;
|
||
--spacing-sm: ${t.paddingSM/4}px;
|
||
--spacing-md: ${t.paddingMD/4}px;
|
||
--spacing-lg: ${t.paddingLG/4}px;
|
||
--spacing-xl: ${t.paddingXL/4}px;
|
||
--spacing-xxl: ${t.paddingXL/4}px;
|
||
--radius-xxs: ${t.borderRadiusXS}px;
|
||
--radius-xs: ${t.borderRadiusXS}px;
|
||
--radius-sm: ${t.borderRadiusSM}px;
|
||
--radius-md: ${t.borderRadius}px;
|
||
--radius-lg: ${t.borderRadius}px;
|
||
--radius-xl: ${t.borderRadiusLG}px;
|
||
--radius-xxl: ${t.borderRadiusLG}px;
|
||
--text-xxs: ${t.fontSizeSM}px;
|
||
--text-xs: ${t.fontSizeSM}px;
|
||
--text-sm: ${t.fontSize}px;
|
||
--text-md: ${t.fontSize}px;
|
||
--text-lg: ${t.fontSizeLG}px;
|
||
--text-xl: ${t.fontSizeXL}px;
|
||
--text-xxl: ${t.fontSizeXL}px;
|
||
--font: ${t.fontFamily};
|
||
--font-mono: ${t.fontFamilyCode};
|
||
--body-background-fill: ${t.colorBgLayout};
|
||
--body-text-color: ${t.colorText};
|
||
--body-text-size: var(--text-md);
|
||
--body-text-weight: 400;
|
||
--embed-radius: ${t.borderRadius}px;
|
||
--color-accent: ${t.colorPrimary};
|
||
--color-accent-soft: ${t.colorPrimaryHover};
|
||
--background-fill-primary: ${t.colorBgLayout};
|
||
--background-fill-secondary: ${t.colorBgContainer};
|
||
--border-color-accent: ${t.colorBorder};
|
||
--border-color-primary: ${t.colorBorderSecondary};
|
||
--link-text-color: ${t.colorInfoText};
|
||
--link-text-color-active: ${t.colorInfoTextActive};
|
||
--link-text-color-hover: ${t.colorInfoTextHover};
|
||
--link-text-color-visited: ${t.colorInfoText};
|
||
--body-text-color-subdued: ${t.colorTextDescription};
|
||
--shadow-drop: ${t.boxShadowSecondary};
|
||
--shadow-drop-lg: ${t.boxShadow};
|
||
--shadow-inset: ${t.boxShadowSecondary} inset;
|
||
--shadow-spread: 3px;
|
||
--block-background-fill: ${t.colorBgContainer};
|
||
--block-border-color: ${t.colorBorderSecondary};
|
||
--block-border-width: 1px;
|
||
--block-info-text-color: ${t.colorTextSecondary};
|
||
--block-info-text-size: var(--text-sm);
|
||
--block-info-text-weight: 400;
|
||
--block-label-background-fill: ${t.colorFillSecondary};
|
||
--block-label-border-color: ${t.colorBorderSecondary};
|
||
--block-label-border-width: 1px;
|
||
--block-label-shadow: ${t.boxShadowTertiary};
|
||
--block-label-text-color: ${t.colorText} --block-label-margin: 0;
|
||
--block-label-padding: var(--spacing-sm) var(--spacing-lg);
|
||
--block-label-radius: ${t.borderRadius}px;
|
||
--block-label-right-radius: ${t.borderRadius}px;
|
||
--block-label-text-size: var(--text-sm);
|
||
--block-label-text-weight: 400;
|
||
--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);
|
||
--block-radius: ${t.borderRadius}px;
|
||
--block-shadow: none;
|
||
--block-title-background-fill: none;
|
||
--block-title-border-color: none;
|
||
--block-title-border-width: 0;
|
||
--block-title-text-color: ${t.colorText};
|
||
--block-title-padding: 0;
|
||
--block-title-radius: none;
|
||
--block-title-text-size: var(--text-md);
|
||
--block-title-text-weight: 400;
|
||
--container-radius: ${t.borderRadiusLG}px;
|
||
--form-gap-width: 1px;
|
||
--layout-gap: var(--spacing-xxl);
|
||
--panel-background-fill: ${t.colorBgContainer};
|
||
--panel-border-color: ${t.colorBorderSecondary};
|
||
--panel-border-width: 0;
|
||
--section-header-text-size: var(--text-md);
|
||
--section-header-text-weight: 400;
|
||
--chatbot-code-background-color: ${t.colorBgContainer};
|
||
--checkbox-background-color: ${t.colorFillTertiary};
|
||
--checkbox-background-color-focus: ${t.colorFillSecondary};
|
||
--checkbox-background-color-hover: ${t.colorFillSecondary};
|
||
--checkbox-background-color-selected: ${t.colorPrimary};
|
||
--checkbox-border-color: ${t.colorBorderSecondary};
|
||
--checkbox-border-color-focus: ${t.colorBorder};
|
||
--checkbox-border-color-hover: ${t.colorBorder};
|
||
--checkbox-border-color-selected: ${t.colorPrimary};
|
||
--checkbox-border-radius: ${t.borderRadiusXS}px;
|
||
--checkbox-border-width: 1px;
|
||
--checkbox-label-background-fill: ${t.colorFillTertiary};
|
||
--checkbox-label-background-fill-hover: ${t.colorFillSecondary};
|
||
--checkbox-label-background-fill-selected: ${t.colorFillSecondary};
|
||
--checkbox-label-border-color: ${t.colorBorderSecondary};
|
||
--checkbox-label-border-color-hover: ${t.colorBorder};
|
||
--checkbox-label-border-width: 1px;
|
||
--checkbox-label-gap: var(--spacing-lg);
|
||
--checkbox-label-padding: var(--spacing-md) calc(2 * var(--spacing-md));
|
||
--checkbox-label-shadow: none;
|
||
--checkbox-label-text-size: var(--text-md);
|
||
--checkbox-label-text-weight: 400;
|
||
--checkbox-shadow: none;
|
||
--checkbox-label-text-color: ${t.colorText};
|
||
--checkbox-label-text-color-selected: ${t.colorText};
|
||
--error-background-fill: ${t.colorErrorBg};
|
||
--error-border-color: ${t.colorErrorBorder};
|
||
--error-border-width: 1px;
|
||
--error-text-color: ${t.colorErrorText};
|
||
--input-background-fill: ${t.colorFillTertiary};
|
||
--input-background-fill-focus: ${t.colorFillSecondary};
|
||
--input-background-fill-hover: ${t.colorFillSecondary};
|
||
--input-border-color: ${t.colorBorderSecondary};
|
||
--input-border-color-focus: ${t.colorBorder};
|
||
--input-border-color-hover: ${t.colorBorder};
|
||
--input-border-width: 1px;
|
||
--input-padding: var(--spacing-xl);
|
||
--input-placeholder-color: ${t.colorTextQuaternary};
|
||
--input-radius: ${t.borderRadius}px;
|
||
--input-shadow: none;
|
||
--input-shadow-focus: none;
|
||
--input-text-size: var(--text-md);
|
||
--input-text-weight: 400;
|
||
--loader-color: ${t.colorPrimary};
|
||
--prose-text-size: var(--text-md);
|
||
--prose-text-weight: 400;
|
||
--prose-header-text-weight: 600;
|
||
--slider-color: ${t.colorPrimary};
|
||
--stat-background-fill: ${t.geekblue4};
|
||
--table-border-color: ${t.colorBorderSecondary};
|
||
--table-even-background-fill: transparent;
|
||
--table-odd-background-fill: ${t.colorFillTertiary};
|
||
--table-radius: var(--radius-lg);
|
||
--table-row-focus: ${t.colorFillSecondary};
|
||
--button-border-width: 1px;
|
||
--button-cancel-background-fill: ${t.colorError};
|
||
--button-cancel-background-fill-hover: ${t.colorErrorHover};
|
||
--button-cancel-border-color: ${t.colorErrorBorder};
|
||
--button-cancel-border-color-hover: ${t.colorErrorBorderHover};
|
||
--button-cancel-text-color: ${xV(t.colorError)};
|
||
--button-cancel-text-color-hover: ${xV(t.colorError)};
|
||
--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));
|
||
--button-large-radius: ${t.borderRadius}px;
|
||
--button-large-text-size: var(--text-lg);
|
||
--button-large-text-weight: 600;
|
||
--button-primary-background-fill: ${t.colorPrimary};
|
||
--button-primary-background-fill-hover: ${t.colorPrimaryHover};
|
||
--button-primary-border-color: ${t.colorPrimaryBorder};
|
||
--button-primary-border-color-hover: ${t.colorPrimaryBorderHover};
|
||
--button-primary-text-color: ${xV(t.colorPrimary)};
|
||
--button-primary-text-color-hover: ${xV(t.colorPrimary)};
|
||
--button-secondary-background-fill: ${t.colorFillSecondary};
|
||
--button-secondary-background-fill-hover: ${t.colorFill};
|
||
--button-secondary-border-color: ${t.colorBorderSecondary};
|
||
--button-secondary-border-color-hover: ${t.colorBorder};
|
||
--button-secondary-text-color: ${t.colorTextSecondary};
|
||
--button-secondary-text-color-hover: ${t.colorText};
|
||
--button-shadow: none;
|
||
--button-shadow-active: none;
|
||
--button-shadow-hover: none;
|
||
--button-small-padding: var(--spacing-sm) calc(2 * var(--spacing-sm));
|
||
--button-small-radius: ${t.borderRadiusSM}px;
|
||
--button-small-text-size: var(--text-md);
|
||
--button-small-text-weight: 400;
|
||
--button-transition: all 0.12s ${t.motionEaseInOut};
|
||
--button-lg-height: 44px;
|
||
--button-lg-tool-height: 36px;
|
||
--popup-overlay: ${t.colorBgMask};
|
||
--thumbnail-shadow: ${t.boxShadow};
|
||
--lightbox-img-shadow: ${t.boxShadowSecondary};
|
||
--grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='turbulence' baseFrequency='2.5' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.2'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
.dark {
|
||
--checkbox-check: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
||
--radio-circle: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
||
}
|
||
`),ate(e),lte(e),cte(e),dte(e),fte(e),WB`
|
||
[id$='_settings'] {
|
||
label.svelte-1ojmf70 {
|
||
overflow: hidden;
|
||
display: block !important;
|
||
}
|
||
}
|
||
|
||
label {
|
||
position: relative;
|
||
min-width: 64px;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
&.svelte-1pie7s6 {
|
||
display: unset !important;
|
||
}
|
||
|
||
> span.svelte-1gfkn6j {
|
||
overflow: hidden;
|
||
width: 100%;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
}
|
||
`,ste(e),hte(e),bte(e),vte(e),yte(e),wte(e),gte(e),ute(e),pte(e)];var t})),Ste=B.memo((()=>(B.useEffect((()=>{try{const e=gradioApp().querySelector("#txt2img_toprow"),t=gradioApp().querySelector("#txt2img_settings"),n=gradioApp().querySelector("#txt2img_generate_box"),r=gradioApp().querySelector("#txt2img_gallery_container");e&&t&&n&&r&&(t.prepend(e),r.prepend(n));const o=gradioApp().querySelector("#img2img_toprow"),i=gradioApp().querySelector("#img2img_settings"),a=gradioApp().querySelector("#img2img_generate_box"),l=gradioApp().querySelector("#img2img_gallery_container");i&&o&&a&&l&&(i.prepend(o),l.prepend(a));const s=gradioApp().querySelector("#extras_generate"),c=gradioApp().querySelector("#extras_results");s&&c&&((null==c?void 0:c.parentNode).id="#extras_gallery_container",c.prepend(s)),ue.success("🤯 [layout] inject - Split Previewer")}catch(e){ue.error("🤯 [layout] inject - Split Previewer",e)}}),[]),null))),kte=BB((({css:e,token:t,stylish:n,isDarkMode:r,responsive:o},{isPromptResizable:i,layoutSplitPreview:a})=>({container:e`
|
||
position: relative;
|
||
flex: 1;
|
||
min-width: ${a?"200px":"0"};
|
||
|
||
.app {
|
||
padding: 0 !important;
|
||
}
|
||
|
||
.gap:has(#quicksettings):first-child {
|
||
gap: 0;
|
||
}
|
||
|
||
.float {
|
||
${n.blur};
|
||
border: none;
|
||
border-top-left-radius: 0;
|
||
border-top-right-radius: 0;
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
|
||
[id^='html_info_']:has(div.prose) {
|
||
p {
|
||
color: ${t.colorTextDescription} !important;
|
||
}
|
||
}
|
||
|
||
[id^='html_info_']:has(div.prose),
|
||
[id^='html_log_']:has(div.prose) {
|
||
.pending {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
#extras_generate {
|
||
border-radius: ${t.borderRadius}px !important;
|
||
}
|
||
|
||
[id$='img_styles_dialog'] {
|
||
label {
|
||
white-space: normal;
|
||
}
|
||
|
||
.gradio-row:not(:first-child) {
|
||
margin-top: 1em;
|
||
}
|
||
}
|
||
|
||
.block.border_focus {
|
||
border-color: ${t.colorPrimary} !important;
|
||
}
|
||
|
||
#txt2img_results,
|
||
#img2img_results,
|
||
#extras_results {
|
||
padding: 0 !important;
|
||
background: transparent !important;
|
||
}
|
||
|
||
#txt2img_render,
|
||
#img2img_render {
|
||
display: block !important;
|
||
margin-top: 16px;
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
}
|
||
|
||
.block.gradio-html:has(div.prose) {
|
||
display: block;
|
||
|
||
p {
|
||
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
|
||
|
||
b {
|
||
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
|
||
}
|
||
}
|
||
}
|
||
|
||
#tab_pnginfo {
|
||
#pnginfo_image {
|
||
height: auto !important;
|
||
}
|
||
|
||
.block.gradio-html:has(div.prose) p {
|
||
color: ${t.colorText};
|
||
}
|
||
}
|
||
|
||
[id$='_override_settings_row']:has(div.hidden) {
|
||
display: none;
|
||
}
|
||
|
||
.gradio-group:has(.gradio-group:has(div:empty)) {
|
||
display: none;
|
||
}
|
||
|
||
${o.mobile} {
|
||
.gradio-row:has([id$='2img_results'], [id$='2img_results']) {
|
||
flex-direction: column-reverse;
|
||
}
|
||
}
|
||
|
||
.extra-networks {
|
||
.tab-nav [id*='_extra_'] {
|
||
margin: 0;
|
||
}
|
||
|
||
.gradio-button {
|
||
&[id$='_extra_sortorder'],
|
||
&[id$='_extra_refresh'] {
|
||
align-self: center;
|
||
}
|
||
|
||
&.secondary.lg[id$='_extra_refresh'] {
|
||
max-width: fit-content;
|
||
height: var(--button-lg-tool-height) !important;
|
||
min-height: var(--button-lg-tool-height) !important;
|
||
max-height: var(--button-lg-tool-height) !important;
|
||
|
||
font-size: var(--text-md);
|
||
}
|
||
}
|
||
}
|
||
|
||
.extra-network-cards .card {
|
||
box-shadow: 0 0 0 3px ${t.colorFillSecondary};
|
||
transition: var(--button-transition);
|
||
|
||
&:hover {
|
||
box-shadow: 0 0 0 3px ${t.colorPrimary};
|
||
}
|
||
|
||
.actions {
|
||
background: rgb(0 0 0 / 30%);
|
||
backdrop-filter: saturate(120%) blur(4px);
|
||
box-shadow: none;
|
||
|
||
.name {
|
||
font-size: var(--text-lg);
|
||
word-break: break-word;
|
||
line-break: auto;
|
||
}
|
||
|
||
&:hover {
|
||
.description {
|
||
max-height: none;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,splitView:e`
|
||
#txt2img_toprow,
|
||
#img2img_toprow {
|
||
flex-direction: column !important;
|
||
padding: 0 !important;
|
||
background: transparent !important;
|
||
}
|
||
`,text2img:e`
|
||
button[id$='_generate'] {
|
||
height: var(--button-lg-height) !important;
|
||
min-height: var(--button-lg-height) !important;
|
||
max-height: var(--button-lg-height) !important;
|
||
}
|
||
|
||
[id$='img_settings'],
|
||
.gradio-column.compact {
|
||
display: flex !important;
|
||
flex-direction: column !important;
|
||
gap: 12px !important;
|
||
|
||
.gradio-column:has(#img2img_res_switch_btn, #txt2img_res_switch_btn) {
|
||
min-width: min(36px, 100%) !important;
|
||
}
|
||
|
||
> div:not([id$='_script_container'], .gradio-tabs):has(div),
|
||
> fieldset {
|
||
flex-flow: row wrap;
|
||
gap: 12px;
|
||
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
|
||
background-color: ${t.colorBgContainer}!important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
}
|
||
|
||
.gradio-tabitem:has(.gradio-image) {
|
||
background: ${t.colorFillTertiary} !important;
|
||
}
|
||
|
||
[id$='_script_container'] {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
|
||
* {
|
||
--layout-gap: 12px !important;
|
||
}
|
||
|
||
> div {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
|
||
> div.gr-group.gradio-group:has(.label-wrap) {
|
||
gap: 12px !important;
|
||
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
|
||
background-color: ${t.colorBgContainer}!important;
|
||
border: 1px solid ${t.colorBorderSecondary} !important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
}
|
||
}
|
||
|
||
.gradio-accordion:not(.hidden):has(div) {
|
||
padding: 0 !important;
|
||
border: none !important;
|
||
}
|
||
|
||
#script_list,
|
||
> .gradio-group:not(.hidden):has(div) {
|
||
display: flex;
|
||
flex-direction: column;
|
||
|
||
margin: 0;
|
||
padding: 16px;
|
||
|
||
background-color: ${t.colorBgContainer} !important;
|
||
border: 1px solid ${t.colorBorderSecondary} !important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
box-shadow: none;
|
||
|
||
> .gradio-accordion {
|
||
padding: 0 !important;
|
||
border: none !important;
|
||
}
|
||
}
|
||
|
||
#script_list {
|
||
padding: 8px 16px 12px !important;
|
||
}
|
||
|
||
#axis_options {
|
||
margin: 16px 0;
|
||
}
|
||
}
|
||
}
|
||
|
||
#txt2img_accordions,
|
||
#img2img_accordions {
|
||
flex-direction: column;
|
||
padding: 0 !important;
|
||
background: transparent !important;
|
||
|
||
> div {
|
||
background-color: ${t.colorBgContainer}!important;
|
||
}
|
||
}
|
||
|
||
#img2img_toprow .interrogate-col {
|
||
flex-direction: row !important;
|
||
min-width: 100% !important;
|
||
}
|
||
|
||
#img2img_column_batch {
|
||
min-width: 100% !important;
|
||
}
|
||
|
||
#tab_txt2img,
|
||
#tab_img2img {
|
||
[id$='_settings'] {
|
||
min-width: 0 !important;
|
||
|
||
[id^='img2img_tab_resize_'].tabitem.gradio-tabitem {
|
||
padding: 16px 0 !important;
|
||
}
|
||
|
||
[id$='img_seed_extras'],
|
||
#inpaint_controls {
|
||
div {
|
||
flex: 1;
|
||
}
|
||
}
|
||
}
|
||
|
||
#txt2img_gallery {
|
||
overflow: hidden !important;
|
||
border-radius: var(--border-radius) !important;
|
||
}
|
||
|
||
[id$='2img_tools'] > div {
|
||
display: flex;
|
||
justify-content: center;
|
||
|
||
button {
|
||
max-width: unset !important;
|
||
}
|
||
}
|
||
|
||
.gradio-html[id^='img2img_label_copy_to'] {
|
||
display: none;
|
||
}
|
||
|
||
.gradio-row[id^='img2img_copy_to'],
|
||
.gap.compact,
|
||
.image-buttons,
|
||
.image_buttons_extras {
|
||
gap: 8px !important;
|
||
}
|
||
}
|
||
|
||
#npw {
|
||
padding: 16px !important;
|
||
|
||
background-color: ${t.colorBgContainer} !important;
|
||
border: 1px solid ${t.colorBorderSecondary} !important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
box-shadow: none;
|
||
}
|
||
`,textares:e`
|
||
[id$='2img_prompt'],
|
||
[id$='2img_neg_prompt'] {
|
||
textarea {
|
||
resize: ${i?"vertical":"none"};
|
||
|
||
overflow-y: auto;
|
||
|
||
padding: 8px !important;
|
||
|
||
font-family: ${t.fontFamilyCode} !important;
|
||
font-size: 13px !important;
|
||
line-height: 1.5 !important;
|
||
word-wrap: break-word !important;
|
||
white-space: pre-wrap !important;
|
||
|
||
transition:
|
||
all 0.3s,
|
||
height 0s;
|
||
}
|
||
}
|
||
|
||
[id$='2img_prompt'] > label > textarea {
|
||
color: ${t.colorSuccessTextHover};
|
||
|
||
&:focus {
|
||
color: ${t.colorSuccessText};
|
||
}
|
||
}
|
||
|
||
[id$='2img_neg_prompt'] > label > textarea {
|
||
color: ${t.colorErrorTextHover};
|
||
|
||
&:focus {
|
||
color: ${t.colorError};
|
||
}
|
||
}
|
||
|
||
.block.token-counter {
|
||
z-index: 10 !important;
|
||
top: -14px;
|
||
right: 4px;
|
||
scale: 0.8;
|
||
|
||
background: ${t.colorBgContainer} !important;
|
||
border-radius: 0.4em !important;
|
||
|
||
> .translucent {
|
||
display: none;
|
||
}
|
||
|
||
span {
|
||
display: inline-block;
|
||
font-family: var(--font-mono);
|
||
border: 2px solid ${t.colorFillSecondary} !important;
|
||
}
|
||
|
||
span,
|
||
&.error span {
|
||
box-shadow: none;
|
||
}
|
||
}
|
||
|
||
#lobe_txt2img_prompt .prompt_editor {
|
||
min-height: ${74}px;
|
||
max-height: ${i?"unset":"74px"};
|
||
}
|
||
|
||
#lobe_img2img_prompt .prompt_editor {
|
||
min-height: ${98}px;
|
||
max-height: ${i?"unset":"98px"};
|
||
}
|
||
|
||
#text2img_prompt,
|
||
#text2img_neg_prompt {
|
||
textarea {
|
||
min-height: ${74}px;
|
||
max-height: ${i?"unset":"74px"};
|
||
}
|
||
}
|
||
|
||
#img2img_prompt,
|
||
#img2img_neg_prompt {
|
||
textarea {
|
||
min-height: ${98}px;
|
||
max-height: ${i?"unset":"98px"};
|
||
}
|
||
}
|
||
`}))),Cte=B.memo((({className:e,...t})=>{const n=B.useRef(null),{mobile:r}=fB(),o=aee(ree,m1),{cx:i,styles:a}=kte({isPromptResizable:"resizable"===o.promptTextareaType,layoutSplitPreview:o.layoutSplitPreview});return B.useEffect((()=>{var e;try{const t=gradioApp().querySelector(".app");t&&(null==(e=n.current)||e.append(t));const r=gradioApp().querySelectorAll('[id$="_prompt_container"] textarea');if(r)for(const e of r)e.classList.remove("scroll-hide"),e.style.height="auto";const o=gradioApp().querySelector("#img2img_toprow .interrogate-col"),i=gradioApp().querySelector("#img2img_actions_column");o&&i&&i.append(o),xee.addPromptButton("txt2img"),xee.addPromptButton("img2img"),ue.success("🤯 [formatPrompt] inject"),ue.success("🤯 [layout] inject - Content")}catch(t){ue.error("🤯 [layout] inject - Content",t)}}),[]),Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:i(a.container,a.textares,a.text2img,o.layoutSplitPreview&&a.splitView,e),ref:n,...t}),o.layoutSplitPreview&&!1===r&&Q.jsx(Ste,{})]})})),Ete=BB((({css:e,token:t},{headerHeight:n=64,size:r=86})=>({body:e`
|
||
.hide {
|
||
display: none;
|
||
}
|
||
|
||
#txt2img_extra_search,
|
||
#img2img_extra_search {
|
||
width: 100% !important;
|
||
max-width: unset !important;
|
||
}
|
||
|
||
#txt2img-extra-network-sidebar,
|
||
#img2img-extra-network-sidebar {
|
||
button.lg.secondary.gradio-button,
|
||
#txt2img_extra_sort,
|
||
#img2img_extra_sort {
|
||
height: 34px !important;
|
||
min-height: 34px !important;
|
||
}
|
||
|
||
.tabitem {
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
}
|
||
}
|
||
|
||
.extra-network-cards {
|
||
overflow: unset;
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(${r}px, 1fr));
|
||
gap: 8px;
|
||
|
||
height: unset;
|
||
min-height: unset;
|
||
|
||
.name {
|
||
background: unset !important;
|
||
}
|
||
|
||
.additional {
|
||
position: relative !important;
|
||
}
|
||
|
||
&:has(.nocards) {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
.extra-networks {
|
||
.tab-nav {
|
||
align-items: center;
|
||
|
||
> * {
|
||
height: 40px !important;
|
||
margin: 0 !important;
|
||
font-size: var(--text-md) !important;
|
||
}
|
||
|
||
> button {
|
||
&:first-child {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
.extra-network-subdirs {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
align-items: center;
|
||
|
||
margin-bottom: 12px;
|
||
padding: 0 !important;
|
||
|
||
> button {
|
||
cursor: pointer;
|
||
|
||
zoom: 0.8;
|
||
|
||
flex: 1;
|
||
|
||
min-width: 100px;
|
||
margin: 0;
|
||
}
|
||
}
|
||
|
||
.actions {
|
||
background: rgb(0 0 0 / 30%);
|
||
backdrop-filter: saturate(120%) blur(4px);
|
||
box-shadow: none !important;
|
||
|
||
.name {
|
||
overflow: hidden;
|
||
display: block;
|
||
|
||
font-weight: bold;
|
||
text-overflow: ellipsis;
|
||
text-shadow: 0 1px 1px rgb(0 0 0 / 90%);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.additional {
|
||
position: absolute;
|
||
display: none;
|
||
|
||
> ul {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
margin: 0;
|
||
padding: 0;
|
||
|
||
a {
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
|
||
font-size: var(--text-md) !important;
|
||
color: #fff;
|
||
text-overflow: ellipsis;
|
||
text-shadow: 1px 1px black;
|
||
white-space: nowrap;
|
||
}
|
||
}
|
||
}
|
||
|
||
.description {
|
||
a:hover {
|
||
color: var(--link-text-color-hover);
|
||
}
|
||
}
|
||
}
|
||
|
||
.card {
|
||
overflow: hidden;
|
||
|
||
width: 100% !important;
|
||
height: ${1.5*r}px !important;
|
||
margin: 0 !important;
|
||
|
||
background-size: cover;
|
||
border: 1px solid ${t.colorBorderSecondary};
|
||
border-radius: ${t.borderRadiusSM}px;
|
||
outline: none;
|
||
|
||
transition:
|
||
box-shadow 200ms ${t.motionEaseOut},
|
||
scale 400ms ${t.motionEaseOut};
|
||
|
||
.name {
|
||
font-size: var(--text-sm) !important;
|
||
}
|
||
|
||
&:hover {
|
||
border-color: ${t.colorPrimary};
|
||
box-shadow: 0 0 0 1px ${t.colorPrimary};
|
||
|
||
.additional {
|
||
display: flex !important;
|
||
}
|
||
|
||
.name {
|
||
word-break: break-word;
|
||
line-break: auto;
|
||
white-space: unset;
|
||
}
|
||
}
|
||
|
||
&:active {
|
||
scale: 0.9;
|
||
}
|
||
}
|
||
|
||
.button-row {
|
||
padding: 0 4px;
|
||
background: rgba(0, 0, 0, 50%);
|
||
border-bottom-left-radius: ${t.borderRadius}px;
|
||
|
||
> div {
|
||
font-size: var(--text-md) !important;
|
||
text-shadow: none !important;
|
||
}
|
||
}
|
||
|
||
.metadata-button {
|
||
&::before {
|
||
content: 'ℹ️' !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
div#txt2img_extra_networks,
|
||
div#img2img_extra_networks {
|
||
display: block !important;
|
||
|
||
.tabitem.gradio-tabitem.svelte-19hvt5v {
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
}
|
||
|
||
.search {
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
max-height: var(--button-lg-tool-height) !important;
|
||
padding: 8px;
|
||
}
|
||
|
||
button {
|
||
height: 32px !important;
|
||
}
|
||
}
|
||
|
||
textarea {
|
||
resize: none;
|
||
overflow-y: hidden !important;
|
||
font-family: ${t.fontFamily};
|
||
}
|
||
`,container:e`
|
||
height: calc(100vh - ${n}px);
|
||
`}))),Ote=["txt2img","img2img"],Dte=["textual_inversion","hypernetworks","checkpoints","lora","lycoris"],$te={checkpoints:"ckp",hypernetworks:"hyper",lora:"lora",lycoris:"lycoris",textual_inversion:"ti"},jte=new Set(["🌐","💡","🏷️"]),Pte="lobeDone",_te=(e,t)=>{t?(e.style.display="inline",e.style.fontSize="100%",e.style.position="static",e.style.backgroundImage="none"):(e.style.fontSize="15px",e.style.margin="0")};function Nte(e){return null==e}const Ite=()=>{let e,t,n=0;const r=()=>{setTimeout(t,2e3)};return t=()=>{let t=0;const o=setInterval((()=>{var i;ue.info("🤯 [civitai helper] update card for civitai");const a=document.querySelector("#txt2img_lora_cards");if(a||t>10){if(e!==a){n=0,e=a;for(const e of Ote){const t=document.querySelectorAll(`#${e}_extra_tabs .tab-nav button`);if(t)for(const e of t)e.removeEventListener("click",r),e.addEventListener("click",r)}}const l=null==(i=(()=>{var e;if(!document.querySelector("#tab_civitai_helper"))return;const t=getTranslation("replace preview")||"replace preview",n=document.querySelector("#ch_always_display_ckb input"),r=document.querySelector("#ch_show_btn_on_thumb_ckb input"),o=(null==n?void 0:n.checked)||!1,i=(null==r?void 0:r.checked)||!1;let a,l,s,c,u,d,f,p,h,g="",m=!1,b=!1;const v=[];for(const y of Ote)for(const n of Dte){if(p=$te[n],a=`${y}_${n}_cards`,l=document.querySelector(`#${a}`),Nte(l))continue;b=l.classList.contains("extra-network-thumbs"),h=l.querySelectorAll(".card");const r=!!document.querySelector(`#${a}_html .pending`);if((null==h?void 0:h.length)&&!r){v.push(n);for(const n of h){if("1"===n.dataset[Pte])break;if(n.dataset[Pte]="1",n.querySelectorAll(".actions .additional a").length>2)continue;if(s=n.querySelector(".metadata-button"),c=n.querySelector(".actions .additional"),d=n.querySelector(".actions .additional ul"),Nte(d)&&(d=document.createElement("ul"),c.append(d)),u=n.querySelector(".actions .additional a"),Nte(u)&&(u=document.createElement("a"),c.append(u)),null==(e=d.querySelector("br"))||e.remove(),b&&c){if(c.style.display=void 0,!i){d.style.background=void 0;const e=d.querySelectorAll("a");if(!(null==e?void 0:e.length))continue;for(const n of e)n.style.display=void 0,jte.has(n.innerHTML)?n.remove():(n.innerHTML=t,n.style.display=void 0,n.style.fontSize=void 0,n.style.position=void 0,n.style.backgroundImage=void 0);continue}d.style.background="rgba(0, 0, 0, 0.8)"}else c.style.display=o?"block":void 0;if("🖼️"!==u.innerHTML&&(m=!0,u.innerHTML="🖼️",_te(u,b)),!m)continue;if(f=n.querySelector(".actions .additional .search_term"),!f)return;if(g=f.innerHTML,!g)continue;const r=document.createElement("a");r.href="#",r.innerHTML="🌐",_te(r,b),r.title="Open this model's civitai url",r.setAttribute("onclick",`open_model_url(event, '${p}', '${g}')`);const a=document.createElement("a");a.href="#",a.innerHTML="💡",_te(a,b),a.title="Add trigger words to prompt",a.setAttribute("onclick",`add_trigger_words(event, '${p}', '${g}')`);const l=document.createElement("a");l.href="#",l.innerHTML="🏷️",_te(l,b),l.title="Use prompt from preview image",l.setAttribute("onclick",`use_preview_prompt(event, '${p}', '${g}')`),d.append(r),b&&s&&d.append(document.createElement("br")),d.append(a),d.append(l)}}else!r&&l.querySelector(".nocards")&&v.push(n)}return v})())?void 0:i.length;"number"==typeof l&&l<n&&(n=l),(t>10||!a||l>=Dte.length||l>n)&&(clearInterval(o),n=l??n)}t++}),2e3)},t()},Tte=B.memo((()=>{const e=B.useRef(null),t=B.useRef(null),[n,r]=B.useState(!0),o=aee(ree,m1),i=aee(oee),[a,l]=B.useState(o.extraNetworkCardSize||86),{styles:s}=Ete({size:a});return B.useEffect((()=>{var n,i;try{if(o.enableExtraNetworkSidebar){const o=gradioApp().querySelectorAll("#txt2img_extra_tabs > .tab-nav > button")[1],a=gradioApp().querySelectorAll("#img2img_extra_tabs > .tab-nav > button")[1];o&&o.click(),a&&a.click();const l=gradioApp().querySelector("div#tab_txt2img"),s=gradioApp().querySelector("div#txt2img_extra_tabs"),c=s.querySelectorAll("div.tabitem.gradio-tabitem")[0],u=gradioApp().querySelector("div#tab_img2img"),d=gradioApp().querySelector("div#img2img_extra_tabs"),f=d.querySelectorAll("div.tabitem.gradio-tabitem")[0];if(s&&d&&(null==(n=e.current)||n.append(s),c.id="txt2img_render",null==l||l.append(c),null==(i=t.current)||i.append(d),f.id="img2img_render",null==u||u.append(f)),document.querySelector(".extra-network-cards"))return Ite(),void r(!1)}ue.success("🤯 [layout] inject - ExtraNetworkSidebar")}catch(a){ue.error("🤯 [layout] inject - ExtraNetworkSidebar",a)}}),[]),oY((()=>{var e,t;try{const n=document.querySelector("#txt2img_extra_refresh"),o=document.querySelector("#img2img_extra_refresh");n.click(),o.click(),r(!1);if(!!document.querySelector("#txt2img_extra_refresh")){const n=null==(e=document.querySelector("#txt2img_extra_refresh"))?void 0:e.nextSibling;n&&(n.onclick=Ite);const r=null==(t=document.querySelector("#img2img_extra_refresh"))?void 0:t.nextSibling;r&&(r.onclick=Ite),Ite()}ue.success("🤯 [extranetwork] force reload")}catch(n){ue.error("🤯 [extranetwork] force reload",n)}}),2e3),Q.jsxs(Q.Fragment,{children:[Q.jsxs(n1,{className:s.body,children:[n&&Q.jsx(sF,{active:!0}),Q.jsxs("div",{style:n?{display:"none"}:{},children:[Q.jsx("div",{id:"txt2img-extra-network-sidebar",ref:e,style:"tab_img2img"===i?{display:"none"}:{}}),Q.jsx("div",{id:"img2img-extra-network-sidebar",ref:t,style:"tab_img2img"===i?{}:{display:"none"}})]})]}),Q.jsxs(u1,{children:[Q.jsx(yH,{icon:o.extraNetworkCardSize<a?pf:ff,onClick:()=>l(o.extraNetworkCardSize),size:{blockSize:24,fontSize:16}}),Q.jsx(wz,{defaultValue:a,max:256,min:64,onChange:l,step:8,style:{flex:1},value:a})]})]})})),Fte=B.memo((({headerHeight:e})=>{const{mobile:t}=fB(),n=aee(ree,m1),[r,o]=B.useState(!t&&n.extraNetworkSidebarExpand),[i,a]=B.useState("fixed"===n.extraNetworkFixedMode),{styles:l,theme:s}=Ete({headerHeight:e}),{t:c}=O6();B.useEffect((()=>{t&&o(!1)}),[t]);const u=t||i?"fixed":"float";return Q.jsx(q0,{defaultSize:{width:n.extraNetworkSidebarWidth},expand:r,minWidth:n.extraNetworkSidebarWidth,mode:u,onExpandChange:o,pin:i,placement:"right",children:Q.jsx(v5,{children:Q.jsxs(a1,{className:l.container,style:"float"===u?{background:s.colorBgContainer,minWidth:n.extraNetworkSidebarWidth}:{minWidth:n.extraNetworkSidebarWidth},children:[Q.jsx(h1,{pin:i,position:"right",setExpand:o,setPin:a,title:c("sidebar.extraNetwork")}),Q.jsx(Tte,{})]})})})})),Ate=Fte,Rte=[{description:"AUTOMATIC111",openExternal:!0,title:"Stable Diffusion Webui",url:"https://github.com/AUTOMATIC1111/stable-diffusion-webui"},{description:"WebUI extension",openExternal:!0,title:"Controlnet",url:"https://github.com/Mikubill/sd-webui-controlnet"},{description:"Art models",openExternal:!0,title:"Civitai",url:"https://civitai.com/"},{description:"Artist Inspired Styles",openExternal:!0,title:"Cheat Sheet",url:"https://supagruen.github.io/StableDiffusion-CheatSheet"},{description:"Image Resizing",openExternal:!0,title:"Birme",url:"https://www.birme.net/?target_width=512&target_height=512"}],Mte=[{icon:Q.jsx(eH,{icon:Nd,size:"small"}),openExternal:!0,title:"Report Bug",url:`${V9}/issues/new/choose`},{icon:Q.jsx(eH,{icon:Bd,size:"small"}),openExternal:!0,title:"Request Feature",url:`${V9}/issues/new/choose`}],Lte=[{icon:Q.jsx(eH,{icon:Hd,size:"small"}),openExternal:!0,title:"GitHub",url:V9},{icon:Q.jsx(eH,{icon:Ld,size:"small"}),openExternal:!0,title:"Changelog",url:`${V9}/blob/main/CHANGELOG.md`}],zte=[{description:"Minifier ExtraNetwrok Covers",openExternal:!0,title:"✂️ Cover Minifier",url:"https://github.com/canisminor1990/sd-webui-cover-minifier"},{description:"OpenAI Chat Bot",openExternal:!0,title:"🤖 Lobe Chat",url:"https://chat.lobehub.com"},{description:"AIGC Components",openExternal:!0,title:"🍭 Lobe UI",url:"https://ui.lobehub.com"},{description:"AI Commit CLI",openExternal:!0,title:"💌 Lobe Commit",url:"https://github.com/lobehub/lobe-commit"}],Bte=BB((({css:e})=>({footer:e`
|
||
footer {
|
||
display: block !important;
|
||
}
|
||
`}))),Hte=B.memo((({className:e,...t})=>{const n=aee(ree,m1),{cx:r,styles:o}=Bte(),{t:i}=O6(),a=B.useRef(null);return B.useEffect((()=>{var e;try{const t=gradioApp().querySelector("#footer");t&&(null==(e=a.current)||e.append(t)),n.confirmPageUnload&&window.addEventListener("beforeunload",(e=>{if(null==t?void 0:t.isConnected)return e.preventDefault(),e.returnValue=""})),ue.success("🤯 [layout] inject - Footer")}catch(t){ue.error("🤯 [layout] inject - Footer",t)}}),[]),Q.jsx("div",{className:r(o.footer,e),...t,children:Q.jsx(C1,{bottom:Q.jsx("div",{ref:a}),columns:n.layoutHideFooter?[]:[{items:Rte,title:i("footer.resources")},{items:Mte,title:i("footer.community")},{items:Lte,title:i("footer.help")},{items:zte,title:i("footer.moreProducts")}]})})})),Wte=Hte,Ute=B.memo((e=>{const{version:t,latestVersion:n}=aee((e=>({latestVersion:e.latestVersion,version:e.version}))),r=H9.gte(t,n);return Q.jsx("a",{href:V9,rel:"noreferrer",target:"_blank",children:r?Q.jsxs(Hz,{color:"success",...e,children:["v",t]}):Q.jsxs(Hz,{color:"warning",...e,children:["v",t," / latest v",n]})})})),Vte=V9.replace("https://github.com/",""),Gte=B.memo((({open:e,onCancel:t})=>{const n=aee(ree,m1),r=XB(),{t:o}=O6();return Q.jsx(e0,{footer:!1,onCancel:t,open:e,title:Q.jsxs(fU,{align:"center",gap:4,horizontal:!0,children:[o("modal.themeFeedback.title"),Q.jsx(Ute,{})]}),children:Q.jsxs(fU,{gap:32,children:[Q.jsxs(YW,{gap:16,horizontal:!0,style:{background:r.colorBgLayout,border:`1px solid ${r.colorBorderSecondary}`,borderRadius:r.borderRadiusLG,padding:"16px 0"},children:[Q.jsx("a",{href:"https://discord.gg/AYFPHvv2jT",rel:"noreferrer",target:"_blank",children:Q.jsx(BC,{icon:Q.jsx(eH,{icon:H2}),size:"large",children:"Join Discover"})}),Q.jsx("a",{href:V9,rel:"noreferrer",target:"_blank",children:Q.jsx(P2,{icon:Q.jsx(eH,{icon:Hd}),children:"LobeTheme Github"})})]}),Q.jsx(k2,{lang:n.i18n,mapping:"number",repo:Vte,repoId:"R_kgDOJCPcNg",term:"53"})]})})})),qte=Gte,Xte=B.memo((()=>{const{t:e}=O6();return Q.jsx(fU,{height:"100vh",width:"100%",children:Q.jsxs(YW,{flex:1,gap:12,width:"100%",children:[Q.jsx(B5,{extra:"SD",size:48,type:"combine"}),Q.jsxs(YW,{gap:16,horizontal:!0,children:[Q.jsx(eH,{icon:qd,spin:!0}),e("custom.initializing")]})]})})})),Kte=Xte,Yte=B.memo((({size:e=32,style:t,logoCustomUrl:n,logoCustomTitle:r})=>{let o=Q.jsx(B5,{size:e,style:t});if(n)if(n.includes("http")||n.includes("data"))o=Q.jsx("img",{alt:"logo",src:n,style:{height:e,...t}});else{const r=_U(n);r&&(o=Q.jsx(FU,{emoji:r,size:e,style:t}))}return Q.jsxs(bM,{align:"center",size:.3*e,children:[o,Q.jsx("b",{style:{fontSize:.6*e,whiteSpace:"nowrap"},children:r})]})})),Qte=B.memo((({size:e=32,style:t,themeMode:n})=>Q.jsx("img",{alt:"logo",src:"dark"===n?"https://gw.alipayobjects.com/zos/bmw-prod/9ecb2822-1592-4cb0-a087-ce0097fef2ca.svg":"https://gw.alipayobjects.com/zos/bmw-prod/e146116d-c65a-4306-a3d2-bb8d05e1c49b.svg",style:{height:e,...t}}))),Jte=B.memo((({size:e=32,style:t})=>{const n=aee(ree,m1),r=aee(iee);return"kitchen"===n.logoType?Q.jsx(Qte,{size:.75*e,style:t,themeMode:r}):"custom"===n.logoType?Q.jsx(Yte,{logoCustomTitle:n.logoCustomTitle,logoCustomUrl:n.logoCustomUrl,size:e,style:t}):Q.jsx(B5,{extra:"SD",size:e,style:t,type:"combine"})})),Zte=e=>{const t=e;return t.text.includes("<lora")?t.className="ReactTags__lora":t.text.includes("<hypernet")?t.className="ReactTags__hypernet":t.text.includes("<embedding")?t.className="ReactTags__embedding":t.className=void 0,t},ene=e=>{const t=xee.convertStr(e);return xee.convertStr2Array(t).map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/,|\.\|。/g,",").replaceAll(/“|‘|”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return xee.convertStr2Array(t).join(", ")})).map((e=>Zte({id:e.trim(),text:e.trim()})))},tne="[id$='2img_prompt'] textarea",nne=B.memo((()=>{const{data:e,isLoading:t}=VZ("prompt",Y9),[n,r]=B.useState([]),[o,i]=B.useState(),[a,l]=B.useState(),s=aee(nee),{t:c}=O6(),u="zh_CN"===s||"zh_HK"===s,d=B.useCallback((()=>{try{const e=get_uiCurrentTabContent().querySelector(tne),t=ene(e.value);return e&&r(t),t}catch(e){ue.error("🤯 [prompt]",e)}}),[]),f=B.useCallback((e=>{try{const t=e.map((e=>e.text)).join(", "),n=get_uiCurrentTabContent().querySelector(tne);n&&(n.value=t),updateInput(n)}catch(t){ue.error("🤯 [prompt]",t)}}),[]),p=B.useCallback((e=>{let t=d()||[];console.log(t);const n=t.some((t=>t.text.toLowerCase()===e.text.toLowerCase()||t.id===e.id));t=n?t.filter((t=>t.text.toLowerCase()!==e.text.toLowerCase()&&t.id!==e.id)):[...t,e].filter(Boolean),r(t),f(t)}),[]);return B.useEffect((()=>{if(d(),!e||o||a)return;const t=Object.keys(e)[0];i(t);const n=Object.keys(e[t].children)[0];l(n)}),[e,o,a]),t||!e?Q.jsx(sF,{active:!0}):Q.jsxs(Q.Fragment,{children:[Q.jsx("span",{style:{marginBottom:-10},children:c("prompt.area.object")}),Q.jsx(fU,{gap:4,horizontal:!0,style:{flexWrap:"wrap"},children:Object.entries(e).map((([t,n],r)=>{const a=u?n.langName:n.name,s=o?o===t:0===r;return Q.jsx(BC,{onClick:()=>{i(t),l(Object.keys(e[t].children)[0])},size:"small",style:{flex:1},type:s?"primary":"default",children:a},t)}))}),Q.jsx("span",{style:{marginBottom:-10},children:c("prompt.area.attribute")}),Q.jsx(fU,{gap:4,horizontal:!0,style:{flexWrap:"wrap"},children:o&&Object.entries(e[o].children).map((([e,t],n)=>{const r=u?t.langName:t.name,o=a?a===e:0===n;return Q.jsx(BC,{onClick:()=>l(e),size:"small",style:{flex:1},type:o?"primary":"default",children:r},e)}))}),Q.jsx("span",{style:{marginBottom:-10},children:c("prompt.area.tag")}),Q.jsx(fU,{gap:4,horizontal:!0,style:{flexWrap:"wrap"},children:o&&a&&Object.entries(e[o].children[a].children).map((([e,t])=>{const r=n.some((e=>e.text.toLowerCase()===t.name.toLowerCase()));return Q.jsx(BC,{onClick:()=>p({id:e,text:t.name}),size:"small",style:u?{flex:1,height:36}:{flex:1},type:r?"primary":"dashed",children:u?Q.jsxs(fU,{gap:2,children:[Q.jsx("div",{style:{fontSize:12,fontWeight:600,lineHeight:1},children:t.langName}),Q.jsx("div",{style:{fontSize:12,lineHeight:1,opacity:.75},children:t.name})]}):t.name},e)}))})]})}));var rne={};const one=B.createContext({dragDropManager:void 0});function ine(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ane="function"==typeof Symbol&&Symbol.observable||"@@observable",lne=function(){return Math.random().toString(36).substring(7).split("").join(".")},sne={INIT:"@@redux/INIT"+lne(),REPLACE:"@@redux/REPLACE"+lne(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+lne()}};function cne(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ine(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ine(1));return n(cne)(e,t)}if("function"!=typeof e)throw new Error(ine(2));var o=e,i=t,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function u(){if(s)throw new Error(ine(3));return i}function d(e){if("function"!=typeof e)throw new Error(ine(4));if(s)throw new Error(ine(5));var t=!0;return c(),l.push(e),function(){if(t){if(s)throw new Error(ine(6));t=!1,c();var n=l.indexOf(e);l.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ine(7));if(void 0===e.type)throw new Error(ine(8));if(s)throw new Error(ine(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:sne.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ine(10));o=e,f({type:sne.REPLACE})}})[ane]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ine(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[ane]=function(){return this},e},r}function une(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function dne(e){return"object"==typeof e}const fne="dnd-core/INIT_COORDS",pne="dnd-core/BEGIN_DRAG",hne="dnd-core/PUBLISH_DRAG_SOURCE",gne="dnd-core/HOVER",mne="dnd-core/DROP",bne="dnd-core/END_DRAG";function vne(e,t){return{type:fne,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const yne={type:fne,payload:{clientOffset:null,sourceClientOffset:null}};function wne(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),l=e.getRegistry();e.dispatch(vne(o)),function(e,t,n){une(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){une(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,l);const s=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==s)return void e.dispatch(yne);let c=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){une("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),c=i(s)}e.dispatch(vne(o,c));const u=l.getSource(s).beginDrag(a,s);if(null==u)return;!function(e){une(dne(e),"Item must be an object.")}(u),l.pinSource(s);const d=l.getSourceType(s);return{type:pne,payload:{itemType:d,item:u,sourceId:s,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function xne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xne(e,t,n[t])}))}return e}function kne(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){une(e.isDragging(),"Cannot call drop while not dragging."),une(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,i)=>{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;(function(e){une(void 0===e||dne(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),l={type:mne,payload:{dropResult:Sne({},t,a)}};e.dispatch(l)}))}}function Cne(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){une(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:bne}}}function Ene(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function One(e){return function(t,{clientOffset:n}={}){!function(e){une(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];Ene(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){une(t.isDragging(),"Cannot call hover while not dragging."),une(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];une(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");une(n.getTarget(t),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:gne,payload:{targetIds:r,clientOffset:n||null}}}}function Dne(e){return function(){if(e.getMonitor().isDragging())return{type:hne}}}class $ne{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:wne(e),publishDragSource:Dne(e),hover:One(e),drop:kne(e),endDrag:Cne(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function jne(e,t){return{x:e.x-t.x,y:e.y-t.y}}const Pne=[],_ne=[];Pne.__IS_NONE__=!0,_ne.__IS_ALL__=!0;class Nne{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;une("function"==typeof e,"listener must be a function."),une(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){if(e===Pne)return!1;if(e===_ne||void 0===t)return!0;const n=(r=e,t.filter((e=>r.indexOf(e)>-1)));var r;return n.length>0}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){une("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return une(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(une(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return Ene(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(une(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!Ene(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?jne(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?jne(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const Ine="undefined"!=typeof global?global:self,Tne=Ine.MutationObserver||Ine.WebKitMutationObserver;function Fne(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const Ane="function"==typeof Tne?function(e){let t=1;const n=new Tne(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Fne;class Rne{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Mne=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Ane(this.flush),this.requestErrorThrow=Fne((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},Lne=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new Rne(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Mne.registerPendingError);const zne="dnd-core/ADD_SOURCE",Bne="dnd-core/ADD_TARGET",Hne="dnd-core/REMOVE_SOURCE",Wne="dnd-core/REMOVE_TARGET";function Une(e,t){t&&Array.isArray(e)?e.forEach((e=>Une(e,!1))):une("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Vne,Gne;(Gne=Vne||(Vne={})).SOURCE="SOURCE",Gne.TARGET="TARGET";let qne=0;function Xne(e){const t=(qne++).toString();switch(e){case Vne.SOURCE:return`S${t}`;case Vne.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Kne(e){switch(e[0]){case"S":return Vne.SOURCE;case"T":return Vne.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Yne(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class Qne{addSource(e,t){Une(e),function(e){une("function"==typeof e.canDrag,"Expected canDrag to be a function."),une("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),une("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(Vne.SOURCE,e,t);return this.store.dispatch(function(e){return{type:zne,payload:{sourceId:e}}}(n)),n}addTarget(e,t){Une(e,!0),function(e){une("function"==typeof e.canDrop,"Expected canDrop to be a function."),une("function"==typeof e.hover,"Expected hover to be a function."),une("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(Vne.TARGET,e,t);return this.store.dispatch(function(e){return{type:Bne,payload:{targetId:e}}}(n)),n}containsHandler(e){return Yne(this.dragSources,e)||Yne(this.dropTargets,e)}getSource(e,t=!1){une(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return une(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return une(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return une(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Kne(e)===Vne.SOURCE}isTargetId(e){return Kne(e)===Vne.TARGET}removeSource(e){var t;une(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Hne,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Mne.enqueueTask(Lne.create(t))}removeTarget(e){une(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Wne,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);une(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){une(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=Xne(e);return this.types.set(r,t),e===Vne.SOURCE?this.dragSources.set(r,n):e===Vne.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Jne=(e,t)=>e===t;function Zne(e=Pne,t){switch(t.type){case gne:break;case zne:case Bne:case Wne:case Hne:return Pne;default:return _ne}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach(((e,t)=>{1===e&&o.push(t)})),o}(n,r),i=o.length>0||!function(e,t,n=Jne){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!i)return Pne;const a=r[r.length-1],l=n[n.length-1];return a!==l&&(a&&o.push(a),l&&o.push(l)),o}function ere(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tre={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function nre(e=tre,t){const{payload:n}=t;switch(t.type){case fne:case pne:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case gne:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ere(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case bne:case mne:return tre;default:return e}var r,o}function rre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ore(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rre(e,t,n[t])}))}return e}const ire={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function are(e=ire,t){const{payload:n}=t;switch(t.type){case pne:return ore({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case hne:return ore({},e,{isSourcePublic:!0});case gne:return ore({},e,{targetIds:n.targetIds});case Wne:return-1===e.targetIds.indexOf(n.targetId)?e:ore({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case mne:return ore({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case bne:return ore({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function lre(e=0,t){switch(t.type){case zne:case Bne:return e+1;case Hne:case Wne:return e-1;default:return e}}function sre(e=0){return e+1}function cre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ure(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cre(e,t,n[t])}))}return e}function dre(e={},t){return{dirtyHandlerIds:Zne(e.dirtyHandlerIds,{type:t.type,payload:ure({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:nre(e.dragOffset,t),refCount:lre(e.refCount,t),dragOperation:are(e.dragOperation,t),stateId:sre(e.stateId)};var n,r,o}function fre(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return cne(dre,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new Nne(o,new Qne(o)),a=new $ne(o,i),l=e(a,t,n);return a.receiveBackend(l),a}function pre(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let hre=0;const gre=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var mre=B.memo((function(e){var{children:t}=e,n=pre(e,["children"]);const[r,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=bre(),n,r){const o=t;o[gre]||(o[gre]={dragDropManager:fre(e,t,n,r)});return o[gre]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return B.useEffect((()=>{if(o){const e=bre();return++hre,()=>{0==--hre&&(e[gre]=null)}}}),[]),Q.jsx(one.Provider,{value:r,children:t})}));function bre(){return"undefined"!=typeof global?global:window}const vre=B.memo((function({connect:e,src:t}){return B.useEffect((()=>{if("undefined"==typeof Image)return;let n=!1;const r=new Image;return r.src=t,r.onload=()=>{e(r),n=!0},()=>{n&&e(null)}})),null})),yre="undefined"!=typeof window?B.useLayoutEffect:B.useEffect;function wre(e,t,n){const[r,o]=B.useState((()=>t(e))),i=B.useCallback((()=>{const i=t(e);m1(r,i)||(o(i),n&&n())}),[r,e,n]);return yre(i),[r,i]}function xre(e,t,n){return function(e,t,n){const[r,o]=wre(e,t,n);return yre((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})),(()=>n.reconnect()))}function Sre(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),B.useMemo((()=>"function"==typeof e?e():e),n)}function kre(e){return B.useMemo((()=>e.hooks.dragSource()),[e])}function Cre(e){return B.useMemo((()=>e.hooks.dragPreview()),[e])}let Ere=!1,Ore=!1;class Dre{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){une(!Ere,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ere=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ere=!1}}isDragging(){if(!this.sourceId)return!1;une(!Ore,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Ore=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Ore=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let $re=!1;class jre{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;une(!$re,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return $re=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{$re=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function Pre(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s<i.length;s++){const a=i[s];if(!l(a))return!1;const c=e[a],u=t[a];if(o=n?n.call(r,c,u,a):void 0,!1===o||void 0===o&&c!==u)return!1}return!0}function _re(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Nre(e){return(t=null,n=null)=>{if(!B.isValidElement(t)){const r=t;return e(r,n),r}const r=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(r);return function(e,t){const n=e.ref;return une("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?B.cloneElement(e,{ref:e=>{Tre(n,e),Tre(t,e)}}):B.cloneElement(e,{ref:t})}(r,n?t=>e(t,n):e)}}function Ire(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=Nre(r);t[n]=()=>e}})),t}function Tre(e,t){"function"==typeof e?e(t):e.current=t}class Fre{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Pre(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Pre(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Ire({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,_re(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,_re(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Are{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Pre(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Ire({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,_re(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Rre(){const{dragDropManager:e}=B.useContext(one);return une(null!=e,"Expected drag drop context"),e}class Mre{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function Lre(e,t,n){const r=Rre(),o=function(e,t,n){const r=B.useMemo((()=>new Mre(e,t,n)),[t,n]);return B.useEffect((()=>{r.spec=e}),[e]),r}(e,t,n),i=function(e){return B.useMemo((()=>{const t=e.type;return une(null!=t,"spec.type must be defined"),t}),[e])}(e);yre((function(){if(null!=i){const[e,a]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(i,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a}}),[r,t,n,o,i])}function zre(e){return B.useMemo((()=>e.hooks.dropTarget()),[e])}class Bre{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function Hre(e,t,n){const r=Rre(),o=function(e,t){const n=B.useMemo((()=>new Bre(e,t)),[t]);return B.useEffect((()=>{n.spec=e}),[e]),n}(e,t),i=function(e){const{accept:t}=e;return B.useMemo((()=>(une(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);yre((function(){const[e,a]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(i,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a}),[r,t,o,n,i.map((e=>e.toString())).join("|")])}const Wre=r(Object.freeze(Object.defineProperty({__proto__:null,DndContext:one,DndProvider:mre,DragPreviewImage:vre,useDrag:function(e,t){const n=Sre(e,t);une(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=Rre();return B.useMemo((()=>new Dre(e)),[e])}(),o=function(e,t){const n=Rre(),r=B.useMemo((()=>new Fre(n.getBackend())),[n]);return yre((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),yre((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return Lre(n,r,o),[xre(n.collect,r,o),kre(o),Cre(o)]},useDragDropManager:Rre,useDragLayer:function(e){const t=Rre().getMonitor(),[n,r]=wre(t,e);return B.useEffect((()=>t.subscribeToOffsetChange(r))),B.useEffect((()=>t.subscribeToStateChange(r))),n},useDrop:function(e,t){const n=Sre(e,t),r=function(){const e=Rre();return B.useMemo((()=>new jre(e)),[e])}(),o=function(e){const t=Rre(),n=B.useMemo((()=>new Are(t.getBackend())),[t]);return yre((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return Hre(n,r,o),[xre(n.collect,r,o),zre(o)]}},Symbol.toStringTag,{value:"Module"})));function Ure(e){let t=null;return()=>(null==t&&(t=e()),t)}class Vre{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach((e=>o.push(e))),o}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Gre{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const qre="__NATIVE_FILE__",Xre="__NATIVE_URL__",Kre="__NATIVE_TEXT__",Yre="__NATIVE_HTML__",Qre=Object.freeze(Object.defineProperty({__proto__:null,FILE:qre,HTML:Yre,TEXT:Kre,URL:Xre},Symbol.toStringTag,{value:"Module"}));function Jre(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const Zre={[qre]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Yre]:{exposeProperties:{html:(e,t)=>Jre(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Xre]:{exposeProperties:{urls:(e,t)=>Jre(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Kre]:{exposeProperties:{text:(e,t)=>Jre(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function eoe(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Zre).filter((e=>{const n=Zre[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const toe=Ure((()=>/firefox/i.test(navigator.userAgent))),noe=Ure((()=>Boolean(window.safari)));class roe{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let l,s=0,c=i.length-1;for(;s<=c;){l=Math.floor(.5*(s+c));const r=t[l];if(r<e)s=l+1;else{if(!(r>e))return n[l];c=l-1}}a=Math.max(0,c);const u=e-t[a],d=u*u;return n[a]+r[a]*u+o[a]*d+i[a]*u*d}constructor(e,t){const{length:n}=e,r=[];for(let f=0;f<n;f++)r.push(f);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],i=[];let a,l;for(let f=0;f<n-1;f++)a=e[f+1]-e[f],l=t[f+1]-t[f],o.push(a),i.push(l/a);const s=[i[0]];for(let f=0;f<o.length-1;f++){const e=i[f],t=i[f+1];if(e*t<=0)s.push(0);else{a=o[f];const n=o[f+1],r=a+n;s.push(3*r/((r+n)/e+(r+a)/t))}}s.push(i[i.length-1]);const c=[],u=[];let d;for(let f=0;f<s.length-1;f++){d=i[f];const e=s[f],t=1/o[f],n=e+s[f+1]-d-d;c.push((d-e-n)*t),u.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=s,this.c2s=c,this.c3s=u}}const ooe=1;function ioe(e){const t=e.nodeType===ooe?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function aoe(e){return{x:e.clientX,y:e.clientY}}function loe(e,t,n,r,o){const i="IMG"===(a=t).nodeName&&(toe()||!(null===(l=document.documentElement)||void 0===l?void 0:l.contains(a)));var a,l;const s=ioe(i?e:t),c={x:n.x-s.x,y:n.y-s.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:f,anchorY:p}=r,{dragPreviewWidth:h,dragPreviewHeight:g}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return noe()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,u,d),{offsetX:m,offsetY:b}=o,v=0===b||b;return{x:0===m||m?m:new roe([0,.5,1],[c.x,c.x/u*h,c.x+h-u]).interpolate(f),y:v?b:(()=>{let e=new roe([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(p);return noe()&&i&&(e+=(window.devicePixelRatio-1)*g),e})()}}class soe{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function coe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uoe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){coe(e,t,n[t])}))}return e}class doe{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return uoe({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return uoe({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Qre).some((t=>Qre[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Zre[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new Gre(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&ioe(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=aoe(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=eoe(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:l}=this.getCurrentSourcePreviewNodeOptions(),s=loe(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:l});r.setDragImage(o,s.x,s.y)}}try{null==r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=eoe(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:aoe(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=aoe(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):eoe(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:aoe(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new soe(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Vre(this.isNodeInDocument)}}let foe;const poe=r(Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:function(e,t,n){return new doe(e,t,n)},NativeTypes:Qre,getEmptyImage:function(){return foe||(foe=new Image,foe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),foe}},Symbol.toStringTag,{value:"Module"})));var hoe=function(){};var goe=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1},moe=function(e){return e!=e},boe=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var voe=function(e,t,n){return t==t?boe(e,t,n):goe(e,moe,n)};var yoe=function(e,t){return!!(null==e?0:e.length)&&voe(e,t,0)>-1};var woe=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},xoe=bK,Soe=hoe,koe=xoe&&1/Xq(new xoe([,-0]))[1]==1/0?function(e){return new xoe(e)}:Soe,Coe=Hq,Eoe=yoe,Ooe=woe,Doe=Wq,$oe=koe,joe=Xq;var Poe=function(e,t,n){var r=-1,o=Eoe,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=Ooe;else if(i>=200){var c=t?null:$oe(e);if(c)return joe(c);a=!1,o=Doe,s=new Coe}else s=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(u)}else o(s,d,n)||(s!==l&&s.push(d),l.push(u))}return l};var _oe=function(e){return e&&e.length?Poe(e):[]},Noe={};Object.defineProperty(Noe,"__esModule",{value:!0});var Ioe=Foe(B),Toe=Foe(vY);function Foe(e){return e&&e.__esModule?e:{default:e}}var Aoe=function(e){return Ioe.default.createElement("button",{className:e.classNames.clearAll,onClick:e.onClick},"Clear all")};Aoe.propTypes={classNames:Toe.default.object,onClick:Toe.default.func},Noe.default=Aoe;var Roe={};var Moe=function(e){return function(t){return null==e?void 0:e[t]}},Loe=Moe({"&":"&","<":"<",">":">",'"':""","'":"'"});var zoe=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Boe=oX,Hoe=JV,Woe=RV?RV.prototype:void 0,Uoe=Woe?Woe.toString:void 0;var Voe=function e(t){if("string"==typeof t)return t;if(Boe(t))return zoe(t,e)+"";if(Hoe(t))return Uoe?Uoe.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Goe=Voe;var qoe=function(e){return null==e?"":Goe(e)},Xoe=Loe,Koe=qoe,Yoe=/[&<>"']/g,Qoe=RegExp(Yoe.source);var Joe=function(e){return(e=Koe(e))&&Qoe.test(e)?e.replace(Yoe,Xoe):e};Object.defineProperty(Roe,"__esModule",{value:!0});var Zoe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),eie=B,tie=iie(eie),nie=iie(vY),rie=iie(ZK),oie=iie(Joe);function iie(e){return e&&e.__esModule?e:{default:e}}function aie(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var lie=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=aie(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e[r.props.labelField].replace(RegExp(n,"gi"),(function(e){return"<mark>"+(0,oie.default)(e)+"</mark>"}))}},r.shouldRenderSuggestions=function(e){var t=r.props,n=t.minQueryLength,o=t.isFocused;return e.length>=n&&o},r.renderSuggestion=function(e,t){var n=r.props.renderSuggestion;return"function"==typeof n?n(e,t):tie.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},aie(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,eie.Component),Zoe(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,rie.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,l=a.selectedIndex,s=a.classNames;if(this.suggestionsContainer&&e.selectedIndex!==l){var c=this.suggestionsContainer.querySelector("."+s.activeSuggestion);c&&(t=c,n=this.suggestionsContainer,r=n.offsetHeight,o=t.offsetHeight,(i=t.offsetTop-n.scrollTop)+o>=r?n.scrollTop+=i-r+o:i<0&&(n.scrollTop+=i))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions.map(function(e,n){return tie.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onTouchStart:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n===t.selectedIndex?t.classNames.activeSuggestion:""},this.renderSuggestion(e,t.query))}.bind(this)),r=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==n.length&&r(t.query)?tie.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},tie.default.createElement("ul",null," ",n," ")):null}}]),t}();lie.propTypes={query:nie.default.string.isRequired,selectedIndex:nie.default.number.isRequired,suggestions:nie.default.array.isRequired,handleClick:nie.default.func.isRequired,handleHover:nie.default.func.isRequired,minQueryLength:nie.default.number,shouldRenderSuggestions:nie.default.func,isFocused:nie.default.bool.isRequired,classNames:nie.default.object,labelField:nie.default.string.isRequired,renderSuggestion:nie.default.func},lie.defaultProps={minQueryLength:2},Roe.default=lie;var sie={},cie={},uie=qoe,die=/[\\^$.*+?()[\]{}|]/g,fie=RegExp(die.source);var pie=function(e){return(e=uie(e))&&fie.test(e)?e.replace(die,"\\$&"):e};Object.defineProperty(cie,"__esModule",{value:!0}),cie.buildRegExpFromDelimiters=function(e){var t=e.map((function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)})).join(""),n=(0,gie.default)(t);return new RegExp("["+n+"]+")},cie.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},cie.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var hie,gie=(hie=pie)&&hie.__esModule?hie:{default:hie};var mie={},bie={};Object.defineProperty(bie,"__esModule",{value:!0}),bie.KEYS={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},bie.DEFAULT_PLACEHOLDER="Press enter to add new tag",bie.DEFAULT_LABEL_FIELD="text",bie.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion",editTagInput:"ReactTags__editTagInput",editTagInputField:"ReactTags__editTagInputField",clearAll:"ReactTags__clearAll"},bie.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"},Object.defineProperty(mie,"__esModule",{value:!0});var vie=xie(B),yie=xie(vY),wie=bie;function xie(e){return e&&e.__esModule?e:{default:e}}var Sie=String.fromCharCode(215),kie=function(e){var t=e.readOnly,n=e.removeComponent,r=e.onRemove,o=e.className,i=e.tag,a=e.index,l=function(e){if(wie.KEYS.ENTER.includes(e.keyCode)||e.keyCode===wie.KEYS.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===wie.KEYS.BACKSPACE&&r(e)};if(t)return vie.default.createElement("span",null);var s="Tag at index "+a+" with value "+i.id+" focussed. Press backspace to remove";if(n){var c=n;return vie.default.createElement(c,{onRemove:r,onKeyDown:l,className:o,"aria-label":s,tag:i,index:a})}return vie.default.createElement("button",{onClick:r,onKeyDown:l,className:o,type:"button","aria-label":s},Sie)};kie.propTypes={className:yie.default.string,onRemove:yie.default.func.isRequired,readOnly:yie.default.bool,removeComponent:yie.default.func,tag:yie.default.shape({id:yie.default.string.isRequired,className:yie.default.string,key:yie.default.string}),index:yie.default.number.isRequired},mie.default=kie,Object.defineProperty(sie,"__esModule",{value:!0});var Cie=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Eie=B,Oie=Nie(Eie),Die=Wre,$ie=Nie(vY),jie=Nie(Xm),Pie=cie,_ie=Nie(mie);function Nie(e){return e&&e.__esModule?e:{default:e}}var Iie="tag",Tie=function(e){var t=(0,Eie.useRef)(null),n=e.readOnly,r=e.tag,o=e.classNames,i=e.index,a=(0,Die.useDrag)((function(){return{type:Iie,collect:function(e){return{isDragging:!!e.isDragging()}},item:e,canDrag:function(){return(0,Pie.canDrag)(e)}}})),l=Cie(a,2),s=l[0].isDragging,c=l[1],u=(0,Die.useDrop)((function(){return{accept:Iie,drop:function(t,n){var r=t.index,o=i;r!==o&&e.moveTag(r,o)},canDrop:function(e){return(0,Pie.canDrop)(e)}}}));c((0,Cie(u,2)[1])(t));var d=e.tag[e.labelField],f=r.className,p=void 0===f?"":f,h=s?0:1;return Oie.default.createElement("span",{ref:t,className:(0,jie.default)("tag-wrapper",o.tag,p),style:{opacity:h,cursor:(0,Pie.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onTouchStart:e.onTagClicked},d,Oie.default.createElement(_ie.default,{tag:e.tag,className:o.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:n,index:i}))};Tie.propTypes={labelField:$ie.default.string,onDelete:$ie.default.func.isRequired,tag:$ie.default.shape({id:$ie.default.string.isRequired,className:$ie.default.string,key:$ie.default.string}),moveTag:$ie.default.func,removeComponent:$ie.default.func,onTagClicked:$ie.default.func,classNames:$ie.default.object,readOnly:$ie.default.bool,index:$ie.default.number.isRequired},Tie.defaultProps={labelField:"text",readOnly:!1},sie.default=Tie,Object.defineProperty(rne,"__esModule",{value:!0}),rne.KEYS=rne.WithOutContext=rne.WithContext=void 0;var Fie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aie=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Rie=B,Mie=Qie(Rie),Lie=Wre,zie=poe,Bie=Qie(ZK),Hie=Qie(hoe),Wie=Qie(_oe),Uie=Qie(Noe),Vie=Qie(Roe),Gie=Qie(vY),qie=Qie(Xm),Xie=Qie(sie),Kie=cie,Yie=bie;function Qie(e){return e&&e.__esModule?e:{default:e}}function Jie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zie=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));eae.call(n),e.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var r=e.suggestions;return n.state={suggestions:r,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1,ariaLiveStatus:"",currentEditIndex:-1},n.reactTagsRef=(0,Rie.createRef)(),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.moveTag=n.moveTag.bind(n),n.handlePaste=n.handlePaste.bind(n),n.handleSuggestionHover=n.handleSuggestionHover.bind(n),n.handleSuggestionClick=n.handleSuggestionClick.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Rie.Component),Aie(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(e){(0,Bie.default)(e.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"handleDelete",value:function(e,t){t.preventDefault(),t.stopPropagation();var n=this.props.tags.slice();if(0!==n.length){var r="Tag at index "+e+" with value "+n[e].id+" deleted.";this.props.handleDelete(e,t);var o=this.reactTagsRef.current.querySelectorAll(".ReactTags__remove"),i=void 0,a=void 0,l=void 0;0===e&&n.length>1?(i=o[0],a=0,l=n[1]):(i=o[e-1],l=n[a=e-1]),i||(a=-1,i=this.textInput),r+=a>=0?" Tag at index "+a+" with value "+l.id+" focussed. Press backspace to remove":"Input focussed. Press enter to add a new tag",i.focus(),this.setState({ariaLiveStatus:r})}}},{key:"handleTagClick",value:function(e,t,n){var r=this,o=this.props,i=o.editable,a=o.handleTagClick,l=o.labelField;i&&this.setState({currentEditIndex:e,query:t[l]},(function(){r.tagInput.focus()})),a&&a(e,n)}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value);var t=e.target.value.trim();this.setState({query:t},this.updateSuggestions)}},{key:"handleFocus",value:function(e){var t=e.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(t),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1,currentEditIndex:-1})}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=t.selectedIndex,o=t.suggestions,i=t.selectionMode;if(e.keyCode===Yie.KEYS.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[],currentEditIndex:-1})),-1!==this.props.delimiters.indexOf(e.keyCode)&&!e.shiftKey){e.keyCode===Yie.KEYS.TAB&&""===n||e.preventDefault();var a=i&&-1!==r?o[r]:Jie({id:n},this.props.labelField,n);""!==a&&this.addTag(a)}e.keyCode===Yie.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===Yie.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?o.length-1:r-1,selectionMode:!0})),e.keyCode===Yie.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===o.length?-1:(r+1)%o.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;if(this.props.allowAdditionFromPaste){e.preventDefault();var n=e.clipboardData||window.clipboardData,r=n.getData("text"),o=this.props.maxLength,i=void 0===o?r.length:o,a=Math.min(i,r.length),l=n.getData("text").substr(0,a),s=(0,Kie.buildRegExpFromDelimiters)(this.props.delimiters),c=l.split(s);(0,Wie.default)(c).forEach((function(e){return t.addTag(Jie({id:e},t.props.labelField,e))}))}}},{key:"handleSuggestionClick",value:function(e){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags[e];this.props.handleDrag(n,e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),n=Fie({},Yie.DEFAULT_CLASSNAMES,this.props.classNames),r=this.state.query.trim(),o=this.state.selectedIndex,i=this.state.suggestions,a=this.props,l=a.placeholder,s=a.name,c=a.id,u=a.maxLength,d=a.inline,f=a.inputFieldPosition,p=a.inputValue,h=a.inputProps,g=a.clearAll,m=a.tags,b=d?f:Yie.INPUT_FIELD_POSITIONS.BOTTOM,v=this.props.readOnly?null:Mie.default.createElement("div",{className:n.tagInput},Mie.default.createElement("input",Fie({},h,{ref:function(t){e.textInput=t},className:n.tagInputField,type:"text",placeholder:l,"aria-label":l,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:s,id:c,maxLength:u,value:p,"data-automation":"input","data-testid":"input"})),Mie.default.createElement(Vie.default,{query:r,suggestions:i,labelField:this.props.labelField,selectedIndex:o,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:n,renderSuggestion:this.props.renderSuggestion}),g&&m.length>0&&Mie.default.createElement(Uie.default,{classNames:n,onClick:this.clearAll}));return Mie.default.createElement("div",{className:(0,qie.default)(n.tags,"react-tags-wrapper"),ref:this.reactTagsRef},Mie.default.createElement("p",{role:"alert",className:"sr-only",style:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",margin:"-1px",padding:0,width:"1px",height:"1px",border:0}},this.state.ariaLiveStatus),b===Yie.INPUT_FIELD_POSITIONS.TOP&&v,Mie.default.createElement("div",{className:n.selected},t,b===Yie.INPUT_FIELD_POSITIONS.INLINE&&v),b===Yie.INPUT_FIELD_POSITIONS.BOTTOM&&v)}}]),t}();Zie.propTypes={placeholder:Gie.default.string,labelField:Gie.default.string,suggestions:Gie.default.arrayOf(Gie.default.shape({id:Gie.default.string.isRequired})),delimiters:Gie.default.arrayOf(Gie.default.number),autofocus:Gie.default.bool,inline:Gie.default.bool,inputFieldPosition:Gie.default.oneOf([Yie.INPUT_FIELD_POSITIONS.INLINE,Yie.INPUT_FIELD_POSITIONS.TOP,Yie.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:Gie.default.func,handleAddition:Gie.default.func,onTagUpdate:Gie.default.func,handleDrag:Gie.default.func,handleFilterSuggestions:Gie.default.func,handleTagClick:Gie.default.func,allowDeleteFromEmptyInput:Gie.default.bool,allowAdditionFromPaste:Gie.default.bool,allowDragDrop:Gie.default.bool,handleInputChange:Gie.default.func,handleInputFocus:Gie.default.func,handleInputBlur:Gie.default.func,minQueryLength:Gie.default.number,shouldRenderSuggestions:Gie.default.func,removeComponent:Gie.default.func,autocomplete:Gie.default.oneOfType([Gie.default.bool,Gie.default.number]),readOnly:Gie.default.bool,classNames:Gie.default.object,name:Gie.default.string,id:Gie.default.string,maxLength:Gie.default.number,inputValue:Gie.default.string,tags:Gie.default.arrayOf(Gie.default.shape({id:Gie.default.string.isRequired,className:Gie.default.string})),allowUnique:Gie.default.bool,renderSuggestion:Gie.default.func,inputProps:Gie.default.object,editable:Gie.default.bool,clearAll:Gie.default.bool,onClearAll:Gie.default.func},Zie.defaultProps={placeholder:Yie.DEFAULT_PLACEHOLDER,labelField:Yie.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Yie.KEYS.ENTER),[Yie.KEYS.TAB]),autofocus:!0,inline:!0,inputFieldPosition:Yie.INPUT_FIELD_POSITIONS.INLINE,handleDelete:Hie.default,handleAddition:Hie.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[],inputProps:{},onTagUpdate:Hie.default,editable:!1,clearAll:!1,handleClearAll:Hie.default};var eae=function(){var e=this;this.filteredSuggestions=function(t){var n=e.props.suggestions;if(e.props.allowUnique){var r=e.props.tags.map((function(e){return e.id.toLowerCase()}));n=n.filter((function(e){return!r.includes(e.id.toLowerCase())}))}if(e.props.handleFilterSuggestions)return e.props.handleFilterSuggestions(t,n);var o=n.filter((function(n){return 0===e.getQueryIndex(t,n)})),i=n.filter((function(n){return e.getQueryIndex(t,n)>0}));return o.concat(i)},this.getQueryIndex=function(t,n){return n[e.props.labelField].toLowerCase().indexOf(t.toLowerCase())},this.resetAndFocusInput=function(){e.setState({query:""}),e.textInput&&(e.textInput.value="",e.textInput.focus())},this.updateSuggestions=function(){var t=e.state,n=t.query,r=t.selectedIndex,o=e.filteredSuggestions(n);e.setState({suggestions:o,selectedIndex:r>=o.length?o.length-1:r})},this.addTag=function(t){var n=e.props,r=n.tags,o=n.labelField,i=n.allowUnique,a=e.state.currentEditIndex;if(t.id&&t[o]){var l=r.map((function(e){return e.id.toLowerCase()}));if(!(i&&l.indexOf(t.id.toLowerCase())>=0)){if(e.props.autocomplete){var s=e.filteredSuggestions(t[o]);(1===e.props.autocomplete&&1===s.length||!0===e.props.autocomplete&&s.length)&&(t=s[0])}-1!==a&&e.props.onTagUpdate?e.props.onTagUpdate(a,t):e.props.handleAddition(t),e.setState({query:"",selectionMode:!1,selectedIndex:-1,currentEditIndex:-1}),e.resetAndFocusInput()}}},this.clearAll=function(){e.props.onClearAll&&e.props.onClearAll()},this.getTagItems=function(){var t=e.props,n=t.tags,r=t.labelField,o=t.removeComponent,i=t.readOnly,a=t.allowDragDrop,l=Fie({},Yie.DEFAULT_CLASSNAMES,e.props.classNames),s=e.state,c=s.currentEditIndex,u=s.query,d=a?e.moveTag:null;return n.map((function(t,n){return Mie.default.createElement(Mie.default.Fragment,{key:n},c===n?Mie.default.createElement("div",{className:l.editTagInput},Mie.default.createElement("input",{ref:function(t){e.tagInput=t},onFocus:e.handleFocus,value:u,onChange:e.handleChange,onKeyDown:e.handleKeyDown,onBlur:e.handleBlur,className:l.editTagInputField,onPaste:e.handlePaste,"data-testid":"tag-edit"})):Mie.default.createElement(Xie.default,{index:n,tag:t,labelField:r,onDelete:e.handleDelete.bind(e,n),moveTag:d,removeComponent:o,onTagClicked:e.handleTagClick.bind(e,n,t),readOnly:i,classNames:l,allowDragDrop:a}))}))}},tae=rne.WithContext=function(e){var t=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,[]);return Mie.default.createElement(Lie.DndProvider,{backend:zie.HTML5Backend},Mie.default.createElement(Zie,t))};rne.WithOutContext=Zie,rne.KEYS=Yie.KEYS;const nae=BB((({css:e,token:t},n)=>e`
|
||
.autocompleteResults {
|
||
left: 16px !important;
|
||
min-width: 200px !important;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
/* Styles for the input */
|
||
.ReactTags__editTagInput,
|
||
.ReactTags__tagInput {
|
||
display: inline-block;
|
||
width: 100%;
|
||
margin: 0;
|
||
|
||
input {
|
||
position: relative;
|
||
|
||
display: block;
|
||
|
||
width: 100%;
|
||
margin: 0;
|
||
padding: var(--input-padding);
|
||
|
||
color: ${"positive"===n?t.colorSuccessTextHover:t.colorErrorTextHover};
|
||
|
||
background: ${t.colorFillTertiary};
|
||
border: 1px solid ${t.colorBorderSecondary};
|
||
border-radius: ${t.borderRadius}px;
|
||
|
||
&:focus {
|
||
color: ${"positive"===n?t.colorSuccessText:t.colorErrorText};
|
||
background: ${t.colorFillSecondary};
|
||
border: 1px solid ${t.colorBorder};
|
||
outline: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Styles for selected tags */
|
||
.ReactTags__tags.react-tags-wrapper {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.ReactTags__selected {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
|
||
span.ReactTags__tag {
|
||
position: relative;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
|
||
padding: 6px 6px 6px 8px;
|
||
|
||
font-size: 13px;
|
||
color: ${"positive"===n?t.colorSuccessTextHover:t.colorErrorTextHover};
|
||
|
||
background: ${t.colorFillSecondary};
|
||
border: 1px solid ${t.colorBorderSecondary};
|
||
border-radius: ${t.borderRadius}px;
|
||
|
||
&:hover {
|
||
color: ${"positive"===n?t.colorSuccessText:t.colorErrorText};
|
||
background: ${t.colorFill};
|
||
border: 1px solid ${t.colorBorder};
|
||
}
|
||
}
|
||
|
||
a.ReactTags__remove {
|
||
cursor: pointer;
|
||
margin-left: 5px;
|
||
color: #aaa;
|
||
}
|
||
}
|
||
|
||
.ReactTags__remove {
|
||
cursor: pointer;
|
||
color: ${t.colorTextDescription};
|
||
background: none;
|
||
border: none;
|
||
|
||
&:hover {
|
||
color: ${t.colorText};
|
||
}
|
||
}
|
||
`)),rae=tae,oae=[188,13],iae=B.memo((({tags:e,setTags:t,type:n,setValue:r})=>{const o=`${n}_tag_editor`,[i,a]=B.useState(!1),{styles:l}=nae(n),s=B.useCallback((n=>{const o=e.filter(((e,t)=>t!==n));t(o),r(o)}),[e]),c=B.useCallback((n=>{const o=[...e,Zte(n)];t(o),r(o)}),[e]),u=B.useCallback(((n,o,i)=>{const a=[...e];a.splice(o,1),a.splice(i,0,Zte(n)),t(a),r(a)}),[e]),d=B.useCallback(((n,o)=>{const i=[...e];i[n]=Zte(o),t(i),r(i)}),[e]);return B.useEffect((()=>{try{if(!addAutocompleteToArea||i)return;let e=0;const t=setInterval((()=>{if(i||e>10){const e=document.querySelector(`#${o}`);e&&(a(!0),addAutocompleteToArea(e),clearInterval(t),ue.success("🤯 [promptTagEditor] inject"))}e++}),1e3)}catch(e){ue.error("🤯 [promptTagEditor]",e)}}),[i]),Q.jsx("div",{className:l,children:Q.jsx(rae,{delimiters:oae,editable:!0,handleAddition:c,handleDelete:s,handleDrag:u,id:o,inline:!0,inputFieldPosition:"bottom",onTagUpdate:d,tags:e})})})),aae=BB((({css:e})=>({promptView:e`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
`}))),lae=B.memo((({type:e})=>{const[t,n]=B.useState([]),{styles:r}=aae(),{t:o}=O6(),i="positive"===e?"[id$='2img_prompt'] textarea":"[id$='2img_neg_prompt'] textarea",a=B.useCallback((()=>{try{const e=get_uiCurrentTabContent().querySelector(i);e&&n(ene(e.value))}catch(e){ue.error("🤯 [prompt]",e)}}),[]),l=B.useCallback((()=>{try{const e=t.map((e=>e.text)).join(", "),n=get_uiCurrentTabContent().querySelector(i);n&&(n.value=e),updateInput(n)}catch(e){ue.error("🤯 [prompt]",e)}}),[t,e]),s=B.useCallback((e=>{try{const t=get_uiCurrentTabContent().querySelector(i);t&&(t.value=e.map((e=>e.text)).join(", ")),updateInput(t)}catch(t){ue.error("🤯 [prompt]",t)}}),[]);return Q.jsxs("div",{className:r.promptView,children:[Q.jsx(iae,{setTags:n,setValue:s,tags:t,type:e}),Q.jsxs(fU,{gap:8,horizontal:!0,children:[Q.jsx("button",{className:"secondary gradio-button",onClick:a,style:{flex:1,height:36},title:o("prompt.load"),type:"button",children:"🔄"}),Q.jsx("button",{className:"secondary gradio-button",onClick:l,style:{flex:1,height:36},title:o("prompt.set"),type:"button",children:"➡️"})]})]})})),sae=lae,cae=B.memo((()=>{const e=aee(ree,m1),{t:t}=O6();return Q.jsxs(fU,{gap:16,children:[e.promptEditor&&Q.jsxs(Q.Fragment,{children:[Q.jsx("span",{style:{marginBottom:-10},children:t("prompt.positive")}),Q.jsx(sae,{type:"positive"}),Q.jsx("span",{style:{marginBottom:-10},children:t("prompt.negative")}),Q.jsx(sae,{type:"negative"})]}),Q.jsx(nne,{})]})})),uae=cae,dae=B.memo((()=>{const{t:e}=O6(),t=aee((e=>e.onSetSetting)),n=B.useCallback((()=>{t(Q9),location.reload()}),[]);return Q.jsxs(Q.Fragment,{children:[Q.jsx(AL,{cancelText:e("cancel"),okText:e("confirm"),okType:"danger",onConfirm:n,title:e("setting.button.reset"),children:Q.jsx(BC,{danger:!0,style:{borderRadius:4},children:e("setting.button.reset")})}),Q.jsx(BC,{htmlType:"submit",style:{borderRadius:4},type:"primary",children:e("setting.button.submit")})]})})),fae=dae,pae={kitchen:Yee.dark.colorPrimary,...e3},hae=[pae.kitchen,...t3],gae={kitchen:Qee.dark.colorNeutral,...n3},mae=[gae.kitchen,...r3],bae=(e,t)=>{if(!t)return"";let n="primary"===e?pae:gae,r=Object.entries(n).find((e=>e[1]===t));return null==r?void 0:r[0]},vae=B.memo((()=>{const e=aee(ree,m1),{onSetSetting:t,localeOptions:n}=aee((e=>({localeOptions:e.localeOptions,onSetSetting:e.onSetSetting}))),[r,o]=B.useState(e),[i,a]=B.useState(e.primaryColor||void 0),[l,s]=B.useState(e.neutralColor||void 0),{t:c}=O6(),u=B.useCallback((e=>{t({...e,neutralColor:l,primaryColor:i}),location.reload()}),[i,l]),d=B.useMemo((()=>({children:[{children:Q.jsx(m_,{options:n}),desc:c("setting.language.desc"),label:c("setting.language.title"),name:"i18n"},{children:Q.jsx(Pz,{}),desc:c("setting.reduceAnimation.desc"),label:c("setting.reduceAnimation.title"),name:"liteAnimation",valuePropName:"checked"},{children:Q.jsx(f3,{activeColor:i?pae[i]:void 0,colors:hae,onSelect:e=>a(bae("primary",e))}),desc:c("setting.primaryColor.desc"),label:c("setting.primaryColor.title")},{children:Q.jsx(f3,{activeColor:l?gae[l]:void 0,colors:mae,onSelect:e=>s(bae("neutral",e))}),desc:c("setting.neutralColor.desc"),label:c("setting.neutralColor.title")},{children:Q.jsx(YL,{options:[{label:c("brand.lobe"),value:"lobe"},{label:c("brand.kitchen"),value:"kitchen"},{label:c("brand.custom"),value:"custom"}]}),desc:c("setting.logoType.desc"),label:c("setting.logoType.title"),name:"logoType"},{children:Q.jsx(qR,{}),desc:c("setting.customLogo.desc"),divider:!1,hidden:"custom"!==r.logoType,label:c("setting.customLogo.title"),name:"logoCustomUrl"},{children:Q.jsx(qR,{}),desc:c("setting.customTitle.desc"),divider:!1,hidden:"custom"!==r.logoType,label:c("setting.customTitle.title"),name:"logoCustomTitle"},{children:Q.jsx(Yte,{logoCustomTitle:r.logoCustomTitle,logoCustomUrl:r.logoCustomUrl}),divider:!1,hidden:"custom"!==r.logoType,label:c("setting.logoType.preview")},{children:Q.jsx(Pz,{}),desc:c("setting.svgIcons.desc"),label:c("setting.svgIcons.title"),name:"svgIcon",valuePropName:"checked"},{children:Q.jsx(Pz,{}),desc:c("setting.customFont.desc"),label:c("setting.customFont.title"),name:"enableWebFont",valuePropName:"checked"},{children:Q.jsx(Pz,{}),desc:c("setting.confirmPageUnload.desc"),label:c("setting.confirmPageUnload.title"),name:"confirmPageUnload",valuePropName:"checked"}],icon:Qd,title:c("setting.group.theme")})),[i,l,r.logoType,r.logoCustomTitle,r.logoCustomUrl]);return Q.jsx(u2,{footer:Q.jsx(fae,{}),initialValues:e,items:[d],onFinish:u,onValuesChange:(e,t)=>o(t),style:{flex:1}})})),yae=vae,wae=B.memo((()=>{const e=aee(ree,m1),t=aee((e=>e.onSetSetting)),{t:n}=O6(),r=B.useCallback((e=>{t(e),location.reload()}),[]),o=B.useMemo((()=>({children:[{children:Q.jsx(Pz,{}),desc:n("setting.imageInfo.desc"),label:n("setting.imageInfo.title"),name:"enableImageInfo",valuePropName:"checked"}],icon:of,title:n("setting.group.experimental")})),[]),i=B.useMemo((()=>({children:[{children:Q.jsx(Pz,{}),desc:n("setting.promptHighlight.desc"),label:n("setting.promptHighlight.title"),name:"enableHighlight",valuePropName:"checked"},{children:Q.jsx(Pz,{}),desc:n("setting.promptEditor.desc"),label:n("setting.promptEditor.title"),name:"promptEditor",valuePropName:"checked"}],icon:cf,title:n("setting.group.promptTextarea")})),[]);return Q.jsx(u2,{footer:Q.jsx(fae,{}),initialValues:e,items:[o,i],onFinish:r,style:{flex:1}})})),xae=wae,Sae=B.memo((()=>{const e=aee(ree,m1),t=aee((e=>e.onSetSetting)),{t:n}=O6(),r=B.useCallback((e=>{t(e),location.reload()}),[]),o=B.useMemo((()=>({children:[{children:Q.jsx(Pz,{}),desc:n("setting.splitPreviewer.desc"),label:n("setting.splitPreviewer.title"),name:"layoutSplitPreview",valuePropName:"checked"},{children:Q.jsx(Pz,{}),desc:n("setting.hideFooter.desc"),label:n("setting.hideFooter.title"),name:"layoutHideFooter",valuePropName:"checked"}],icon:Gd,title:n("setting.group.layout")})),[]),i=B.useMemo((()=>({children:[{children:Q.jsx(YL,{options:[{label:n("setting.promptDisplayMode.scroll"),value:"scroll"},{label:n("setting.promptDisplayMode.resizable"),value:"resizable"}]}),desc:n("setting.promptDisplayMode.desc"),label:n("setting.promptDisplayMode.title"),name:"promptTextareaType"}],icon:cf,title:n("setting.group.promptTextarea")})),[]);return Q.jsx(u2,{footer:Q.jsx(fae,{}),initialValues:e,items:[o,i],onFinish:r,style:{flex:1}})})),kae=Sae,Cae=B.memo((()=>{const e=aee(ree,m1),t=aee((e=>e.onSetSetting)),[n,r]=B.useState(e),{t:o}=O6(),i=B.useCallback((e=>{t(e),location.reload()}),[]),a=B.useMemo((()=>({children:[{children:Q.jsx(Pz,{}),desc:o("setting.quickSettingSidebar.enable.desc"),label:o("setting.quickSettingSidebar.enable.title"),name:"enableSidebar",valuePropName:"checked"},{children:Q.jsx(Pz,{}),desc:o("setting.quickSettingSidebar.defaultExpand.desc"),hidden:!n.enableSidebar,label:o("setting.quickSettingSidebar.defaultExpand.title"),name:"sidebarExpand",valuePropName:"checked"},{children:Q.jsx(YL,{options:[{label:o("sidebar.mode.fixed"),value:"fixed"},{label:o("sidebar.mode.float"),value:"float"}]}),desc:o("setting.quickSettingSidebar.displayMode.desc"),hidden:!n.enableSidebar,label:o("setting.quickSettingSidebar.displayMode.title"),name:"sidebarFixedMode"},{children:Q.jsx(yR,{}),desc:o("setting.quickSettingSidebar.defaultWidth.desc"),hidden:!n.enableSidebar,label:o("setting.quickSettingSidebar.defaultWidth.title"),name:"sidebarWidth"}],icon:Jd,title:o("setting.group.quickSettingSidebar")})),[n.enableSidebar]),l=B.useMemo((()=>({children:[{children:Q.jsx(Pz,{}),desc:o("setting.extraNetworkSidebar.enable.desc"),label:o("setting.extraNetworkSidebar.enable.title"),name:"enableExtraNetworkSidebar",valuePropName:"checked"},{children:Q.jsx(YL,{options:[{label:o("sidebar.mode.fixed"),value:"fixed"},{label:o("sidebar.mode.float"),value:"float"}]}),desc:o("setting.extraNetworkSidebar.displayMode.desc"),hidden:!n.enableExtraNetworkSidebar,label:o("setting.extraNetworkSidebar.displayMode.title"),name:"extraNetworkFixedMode"},{children:Q.jsx(Pz,{}),desc:o("setting.extraNetworkSidebar.defaultExpand.desc"),hidden:!n.enableExtraNetworkSidebar,label:o("setting.extraNetworkSidebar.defaultExpand.title"),name:"extraNetworkSidebarExpand",valuePropName:"checked"},{children:Q.jsx(yR,{}),desc:o("setting.extraNetworkSidebar.defaultWidth.desc"),hidden:!n.enableExtraNetworkSidebar,label:o("setting.extraNetworkSidebar.defaultWidth.title"),name:"extraNetworkSidebarWidth"},{children:Q.jsx(yR,{}),desc:o("setting.extraNetworkSidebar.defaultCardSize.desc"),hidden:!n.enableExtraNetworkSidebar,label:o("setting.extraNetworkSidebar.defaultCardSize.title"),name:"extraNetworkCardSize"}],icon:ef,title:o("setting.group.extraNetworkSidebar")})),[n.enableExtraNetworkSidebar]);return Q.jsx(u2,{footer:Q.jsx(fae,{}),initialValues:e,items:[a,l],onFinish:i,onValuesChange:(e,t)=>r(t),style:{flex:1}})})),Eae=Cae,{Item:Oae}=C5,Dae=BB((({css:e,token:t})=>({container:e`
|
||
position: relative;
|
||
padding: 16px;
|
||
border-radius: ${t.borderRadius}px;
|
||
|
||
div {
|
||
overflow: visible;
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
}
|
||
`}))),$ae=B.memo((({label:e,icon:t,active:n=!1,style:r,className:o,onClick:i})=>{const{cx:a,styles:l}=Dae();return Q.jsx(Oae,{active:n,avatar:Q.jsx(eH,{icon:t,size:{fontSize:16}}),className:a(l.container,o),onClick:i,style:r,title:e})}));var jae=(e=>(e.Appearance="appearance",e.Experimental="experimental",e.Layout="layout",e.Sidebar="sidebar",e))(jae||{});const Pae=B.memo((({tab:e,setTab:t})=>{const{t:n}=O6(),r=[{icon:_d,label:n("setting.tab.appearance"),value:"appearance"},{icon:Gd,label:n("setting.tab.layout"),value:"layout"},{icon:tf,label:n("setting.tab.sidebar"),value:"sidebar"},{icon:zd,label:n("setting.tab.experimental"),value:"experimental"}];return Q.jsx(fU,{gap:4,children:r.map((({value:n,icon:r,label:o})=>Q.jsx($ae,{active:e===n,icon:r,label:o,onClick:()=>t(n)},n)))})})),_ae=Pae,Nae=B.memo((({open:e,onCancel:t})=>{const[n,r]=B.useState(jae.Appearance),{t:o}=O6();return Q.jsx(e0,{footer:!1,onCancel:t,open:e,title:Q.jsx(fU,{align:"center",gap:4,children:Q.jsxs(fU,{align:"center",gap:4,horizontal:!0,children:[Q.jsx("a",{href:V9,rel:"noreferrer",target:"_blank",children:Q.jsx(yH,{icon:Pd,title:"Setting Documents"})}),o("modal.themeSetting.title"),Q.jsx(Ute,{})]})}),width:960,children:Q.jsxs(fU,{gap:16,horizontal:!0,children:[Q.jsx(_ae,{setTab:r,tab:n}),n===jae.Appearance&&Q.jsx(yae,{}),n===jae.Layout&&Q.jsx(kae,{}),n===jae.Sidebar&&Q.jsx(Eae,{}),n===jae.Experimental&&Q.jsx(xae,{})]})})})),Iae=({size:e})=>Q.jsx("svg",{fill:"currentColor",height:e,viewBox:"0 0 16 16",width:e,children:Q.jsx("path",{d:"M2 4.5L8 1l6 3.5v7L8 15l-6-3.5v-7zm6-1.194L3.976 5.653v4.694L8 12.694l4.024-2.347V5.653L8 3.306zm0 1.589l2.662 1.552v.824H9.25L8 6.54l-1.25.73v1.458L8 9.46l1.25-.73h1.412v.824L8 11.105 5.338 9.553V6.447L8 4.895z"})}),Tae=B.memo((()=>{const[e,t]=B.useState(!1),[n,r]=B.useState(!1),o=aee(iee),{mobile:i}=fB(),{t:a}=O6(),l=B.useCallback((()=>{const e="light"===o?"dark":"light",t=Xee.parseUrl(window.location.href);t.query.__theme=e,window.location.replace(Xee.stringifyUrl(t))}),[o]);return Q.jsxs(Q.Fragment,{children:[Q.jsxs(bM.Compact,{children:[!i&&Q.jsxs(Q.Fragment,{children:[Q.jsx("a",{href:"https://civitai.com/",rel:"noreferrer",target:"_blank",children:Q.jsx(yH,{icon:Iae,title:"Civitai"})}),Q.jsx("a",{href:"https://supagruen.github.io/StableDiffusion-CheatSheet/",rel:"noreferrer",target:"_blank",children:Q.jsx(yH,{icon:Vd,title:"Cheat Sheet"})}),Q.jsx(yH,{icon:Hd,onClick:()=>r(!0),title:a("header.feedback")})]}),Q.jsx(yH,{icon:"light"===o?sf:Yd,onClick:l,title:a("header.switchTheme")}),Q.jsx(yH,{icon:af,onClick:()=>t(!0),title:a("header.setting")})]}),Q.jsx(Nae,{onCancel:()=>t(!1),open:e}),Q.jsx(qte,{onCancel:()=>r(!1),open:n})]})})),Fae=Tae,Aae=()=>Array.prototype.slice.call(gradioApp().querySelectorAll("#tabs > .tab-nav:first-of-type button")),Rae=()=>{const e=Array.prototype.slice.call(gradioApp().querySelectorAll('#tabs > [id^="tab_"]')),t=Aae();return ue.debug("🤯 [nav] generate nav list"),t.map(((t,n)=>({id:e[n].id,index:n,label:MW(String(t.textContent))})))},Mae=B.memo((()=>{const e=aee(oee),{mobile:t}=fB(),[n,r]=B.useState(!1),[o,i]=B.useState([]),a=B.useMemo((()=>Rae()),[]),l=B.useCallback((e=>{var t;ue.debug("🤯 [nav] onClick",e);const n=(null==(t=a.find((t=>t.id===e)))?void 0:t.index)||0;Aae()[n].click()}),[a]);return B.useEffect((()=>{try{gradioApp().querySelector("#tabs > .tab-nav:first-of-type").style.display="none";const e=a.map((e=>({key:e.id,label:t?Q.jsx("div",{onClick:()=>l(e.id),children:e.label}):e.label})));i(e.filter(Boolean)),ue.success("🤯 [layout] inject - Header")}catch(e){ue.error("🤯 [layout] inject - Header",e)}}),[t]),t?Q.jsx(hY,{items:o,opened:n,setOpened:r}):Q.jsx(v3,{activeKey:e,items:o,onChange:l})})),Lae=B.memo((({children:e})=>{const{themeMode:t,version:n}=aee((e=>({themeMode:e.themeMode,version:e.version}))),r=XB();return Q.jsx(L2,{actions:Q.jsx(Fae,{themeMode:t}),actionsStyle:{flex:0},logo:Q.jsx("a",{href:`${V9}/releases`,rel:"noreferrer",style:{alignItems:"center",color:r.colorText,display:"flex"},target:"_blank",children:Q.jsx(fH,{title:`${W9} v${n}`,children:Q.jsx(Jte,{})})}),nav:Q.jsxs(Q.Fragment,{children:[Q.jsx(Mae,{}),e]})})})),zae=B.memo((()=>{const e=XB(),[t,n]=B.useState("setting"),r=B.useRef(null),{t:o}=O6();return B.useEffect((()=>{var e;try{const t=gradioApp().querySelector("#quicksettings");t&&(null==(e=r.current)||e.append(t)),ue.success("🤯 [layout] inject - QuickSettingSidebar")}catch(t){ue.error("🤯 [layout] inject - QuickSettingSidebar",t)}}),[]),Q.jsx(n1,{children:Q.jsxs(fU,{gap:16,children:[Q.jsx(YL,{block:!0,onChange:e=>n(e),options:[{label:o("sidebar.quickSetting"),value:"setting"},{label:o("setting.promptEditor.title"),value:"prompt"}],style:{background:e.colorBgContainer,width:"100%"},value:t}),Q.jsx("div",{ref:r,style:"setting"===t?{}:{display:"none"}}),"prompt"===t&&Q.jsx(uae,{})]})})})),Bae=zae,Hae=BB((({css:e},{headerHeight:t=64,width:n})=>({container:e`
|
||
height: calc(100vh - ${t}px);
|
||
|
||
ul.options {
|
||
> li {
|
||
max-width: ${n-48}px;
|
||
}
|
||
}
|
||
|
||
#quicksettings {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
justify-content: stretch;
|
||
|
||
width: 100%;
|
||
|
||
> * {
|
||
flex: 1;
|
||
|
||
width: 100% !important;
|
||
min-width: unset !important;
|
||
max-width: unset !important;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.head > label {
|
||
min-width: unset;
|
||
max-width: 60%;
|
||
margin-right: 12px;
|
||
}
|
||
|
||
input[type='color'] {
|
||
width: 100%;
|
||
}
|
||
|
||
input[type='number'],
|
||
textarea {
|
||
resize: none;
|
||
box-sizing: border-box;
|
||
height: 28px !important;
|
||
padding: 4px !important;
|
||
}
|
||
|
||
textarea {
|
||
width: 100%;
|
||
}
|
||
|
||
span {
|
||
overflow: hidden;
|
||
width: 100%;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.dropdown-arrow {
|
||
min-width: 16px;
|
||
min-height: 16px;
|
||
}
|
||
|
||
div.gradio-dropdown {
|
||
min-width: unset !important;
|
||
}
|
||
}
|
||
`}))),Wae=B.memo((({headerHeight:e})=>{const{mobile:t}=fB(),n=aee(ree,m1),[r,o]=B.useState(!t&&n.sidebarExpand),[i,a]=B.useState("fixed"===n.sidebarFixedMode),[l,s]=B.useState(n.sidebarWidth),{styles:c,theme:u}=Hae({headerHeight:e,width:l}),{t:d}=O6();B.useEffect((()=>{t&&o(!1)}),[t]);const f=t||i?"fixed":"float";return Q.jsx(q0,{defaultSize:{width:n.sidebarWidth},expand:r,minWidth:n.sidebarWidth,mode:f,onExpandChange:o,onSizeChange:(e,t)=>(null==t?void 0:t.width)&&s(Number.parseInt(String(t.width))),pin:i,placement:"left",style:{display:"flex",flexDirection:"column"},children:Q.jsx(v5,{children:Q.jsxs(a1,{className:c.container,style:"float"===f?{background:u.colorBgContainer,minWidth:n.sidebarWidth}:{minWidth:n.sidebarWidth},children:[Q.jsx(h1,{pin:i,position:"left",setExpand:o,setPin:a,title:d("sidebar.quickSetting")}),Q.jsx(Bae,{})]})})})})),Uae=Wae;var Vae={exports:{}};Vae.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",s="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,m={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},b=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:b,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+b(r,2,"0")+":"+b(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:s,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=m;var x="$isDayjsObject",S=function(e){return e instanceof O||!(!e||!e[x])},k=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},C=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},E=v;E.l=k,E.i=S,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var b=m.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return E},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},b.isAfter=function(e,t){return C(e)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<C(e)},b.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,m):p(0,m+1);case s:var y=this.$locale().weekStart||0,w=(g<y?g+7:g)-y;return p(r?b-w:b+(6-w),m);case l:case f:return h(v+"Hours",0);case a:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case o:return h(v+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var n,s=E.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[s],h=s===l?this.$D+(t-this.$W):t;if(s===c||s===d){var g=this.clone().set(f,1);g.$d[p](h),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[E.p(e)]()},b.add=function(r,u){var f,p=this;r=Number(r);var h=E.p(u),g=function(e){var t=C(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return g(1);if(h===s)return g(7);var m=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,b=this.$d.getTime()+r*m;return E.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,l=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return E.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return l+1;case"MM":return E.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,c,3);case"MMMM":return d(c,l);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(r,f,p){var h,g=this,m=E.p(f),b=C(r),v=(b.utcOffset()-this.utcOffset())*t,y=this-b,w=function(){return E.m(g,b)};switch(m){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case s:h=(y-v)/6048e5;break;case l:h=(y-v)/864e5;break;case a:h=y/n;break;case i:h=y/t;break;case o:h=y/e;break;default:h=y}return p?h:E.a(h)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return w[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},b.clone=function(){return E.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()},m}(),D=O.prototype;return C.prototype=D,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",c],["$y",d],["$D",f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,O,C),e.$i=!0),C},C.locale=k,C.isDayjs=S,C.unix=function(e){return C(1e3*e)},C.en=w[y],C.Ls=w,C.p={},C}();const Gae=n(Vae.exports);var qae=Object.defineProperty,Xae=Object.defineProperties,Kae=Object.getOwnPropertyDescriptors,Yae=Object.getOwnPropertySymbols,Qae=Object.prototype.hasOwnProperty,Jae=Object.prototype.propertyIsEnumerable,Zae=Math.pow,ele=(e,t,n)=>t in e?qae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tle=(e,t)=>{for(var n in t||(t={}))Qae.call(t,n)&&ele(e,n,t[n]);if(Yae)for(var n of Yae(t))Jae.call(t,n)&&ele(e,n,t[n]);return e},nle=(e,t)=>Xae(e,Kae(t)),rle=(e,t)=>{var n={};for(var r in e)Qae.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Yae)for(var r of Yae(e))t.indexOf(r)<0&&Jae.call(e,r)&&(n[r]=e[r]);return n},ole=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{l(n.next(e))}catch(t){o(t)}},a=e=>{try{l(n.throw(e))}catch(t){o(t)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);l((n=n.apply(e,t)).next())}));const ile="p".charCodeAt(0),ale="H".charCodeAt(0),lle="Y".charCodeAt(0),sle="s".charCodeAt(0);let cle;function ule(e){let t=-1;cle||(cle=function(){const e=new Int32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}());for(let n=0;n<e.length;n++)t=cle[255&(t^e[n])]^t>>>8;return-1^t}function dle(e,t,n=!1){const r=new Uint8Array(13);t*=39.3701,r[0]=ile,r[1]=ale,r[2]=lle,r[3]=sle,r[4]=t>>>24,r[5]=t>>>16,r[6]=t>>>8,r[7]=255&t,r[8]=r[4],r[9]=r[5],r[10]=r[6],r[11]=r[7],r[12]=1;const o=ule(r),i=new Uint8Array(4);if(i[0]=o>>>24,i[1]=o>>>16,i[2]=o>>>8,i[3]=255&o,n){const t=function(e){for(let t=e.length-1;t>=4;t--)if(9===e[t-4]&&e[t-3]===ile&&e[t-2]===ale&&e[t-1]===lle&&e[t]===sle)return t-3;return 0}(e);return e.set(r,t),e.set(i,t+13),e}{const t=new Uint8Array(4);t[0]=0,t[1]=0,t[2]=0,t[3]=9;const n=new Uint8Array(54);return n.set(e,0),n.set(t,33),n.set(r,37),n.set(i,50),n}}const fle="AAlwSFlz",ple="AAAJcEhZ",hle="AAAACXBI";const gle="[modern-screenshot]",mle="undefined"!=typeof window,ble=mle&&"Worker"in window,vle=mle&&"atob"in window,yle=mle&&"btoa"in window;var wle;const xle=mle?null==(wle=window.navigator)?void 0:wle.userAgent:"",Sle=xle.includes("Chrome"),kle=xle.includes("AppleWebKit")&&!Sle,Cle=xle.includes("Firefox"),Ele=e=>e&&"__CONTEXT__"in e,Ole=e=>"CSSFontFaceRule"===e.constructor.name,Dle=e=>"CSSImportRule"===e.constructor.name,$le=e=>1===e.nodeType,jle=e=>"object"==typeof e.className,Ple=e=>"image"===e.tagName,_le=e=>"use"===e.tagName,Nle=e=>$le(e)&&void 0!==e.style&&!jle(e),Ile=e=>8===e.nodeType,Tle=e=>3===e.nodeType,Fle=e=>"IMG"===e.tagName,Ale=e=>"VIDEO"===e.tagName,Rle=e=>"CANVAS"===e.tagName,Mle=e=>"TEXTAREA"===e.tagName,Lle=e=>"INPUT"===e.tagName,zle=e=>"STYLE"===e.tagName,Ble=e=>"SCRIPT"===e.tagName,Hle=e=>"SELECT"===e.tagName,Wle=e=>"SLOT"===e.tagName,Ule=e=>"IFRAME"===e.tagName,Vle=(...e)=>console.warn(gle,...e),Gle=e=>console.time(`${gle} ${e}`),qle=e=>console.timeEnd(`${gle} ${e}`),Xle=e=>{var t;const n=null==(t=null==e?void 0:e.createElement)?void 0:t.call(e,"canvas");return n&&(n.height=n.width=1),n&&"toDataURL"in n&&Boolean(n.toDataURL("image/webp").includes("image/webp"))},Kle=e=>e.startsWith("data:");function Yle(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(mle&&e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i)||!mle)return e;const n=Qle().implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}function Qle(e){var t;return null!=(t=e&&$le(e)?null==e?void 0:e.ownerDocument:e)?t:window.document}const Jle="http://www.w3.org/2000/svg";function Zle(e,t,n){const r=Qle(n).createElementNS(Jle,"svg");return r.setAttributeNS(null,"width",e.toString()),r.setAttributeNS(null,"height",t.toString()),r.setAttributeNS(null,"viewBox",`0 0 ${e} ${t}`),r}function ese(e,t){let n=(new XMLSerializer).serializeToString(e);return t&&(n=n.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`}const tse=e=>function(e,t){return new Promise(((n,r)=>{const o=new FileReader;o.onload=()=>n(o.result),o.onerror=()=>r(o.error),o.onabort=()=>r(new Error(`Failed read blob to ${t}`)),"dataUrl"===t?o.readAsDataURL(e):"arrayBuffer"===t&&o.readAsArrayBuffer(e)}))}(e,"dataUrl");function nse(e,t){const n=Qle(t).createElement("img");return n.decoding="sync",n.loading="eager",n.src=e,n}function rse(e,t){return new Promise((n=>{const{timeout:r,ownerDocument:o,onError:i}=null!=t?t:{},a="string"==typeof e?nse(e,Qle(o)):e;let l=null,s=null;function c(){n(a),l&&clearTimeout(l),null==s||s()}if(r&&(l=setTimeout(c,r)),Ale(a)){const e=a.currentSrc||a.src;if(!e)return a.poster?rse(a.poster,t).then(n):c();if(a.readyState>=2)return c();const r=c,o=t=>{Vle("Failed video load",e,t),null==i||i(t),c()};s=()=>{a.removeEventListener("loadeddata",r),a.removeEventListener("error",o)},a.addEventListener("loadeddata",r,{once:!0}),a.addEventListener("error",o,{once:!0})}else{const e=Ple(a)?a.href.baseVal:a.currentSrc||a.src;if(!e)return c();const t=()=>ole(this,null,(function*(){if(Fle(a)&&"decode"in a)try{yield a.decode()}catch(t){Vle("Failed to decode image, trying to render anyway",a.dataset.originalSrc||e,t)}c()})),n=t=>{Vle("Failed image load",a.dataset.originalSrc||e,t),c()};if(Fle(a)&&a.complete)return t();s=()=>{a.removeEventListener("load",t),a.removeEventListener("error",n)},a.addEventListener("load",t,{once:!0}),a.addEventListener("error",n,{once:!0})}}))}const ose=function(){let e=0;return()=>(e+=1,`u${`0000${(Math.random()*Zae(36,4)<<0).toString(36)}`.slice(-4)}${e}`)}();function ise(e){return null==e?void 0:e.split(",").map((e=>e.trim().replace(/"|'/g,"").toLowerCase())).filter(Boolean)}function ase(e){return{time:t=>e&&Gle(t),timeEnd:t=>e&&qle(t),warn:(...t)=>e&&Vle(...t)}}function lse(e){return{cache:e?"no-cache":"force-cache"}}function sse(e,t){return ole(this,null,(function*(){return Ele(e)?e:function(e,t){return ole(this,null,(function*(){var n,r,o,i,a;const{scale:l=1,workerUrl:s,workerNumber:c=1}=t||{},u=Boolean(null==t?void 0:t.debug),d=null==(n=null==t?void 0:t.features)||n,f=null!=(r=e.ownerDocument)?r:mle?window.document:void 0,p=null!=(i=null==(o=e.ownerDocument)?void 0:o.defaultView)?i:mle?window:void 0,h=new Map,g=nle(tle({width:0,height:0,quality:1,type:"image/png",scale:l,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:u,fetch:tle({requestInit:lse(null==(a=null==t?void 0:t.fetch)?void 0:a.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},null==t?void 0:t.fetch),font:{},drawImageInterval:100,workerUrl:null,workerNumber:c,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,autoDestruct:!1},t),{__CONTEXT__:!0,log:ase(u),node:e,ownerDocument:f,ownerWindow:p,dpi:1===l?null:96*l,svgStyleElement:cse(f),svgDefsElement:null==f?void 0:f.createElementNS(Jle,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...new Array(ble&&s&&c?c:0)].map((()=>{try{const e=new Worker(s);return e.onmessage=e=>ole(this,null,(function*(){var t,n,r,o;const{url:i,result:a}=e.data;a?null==(n=null==(t=h.get(i))?void 0:t.resolve)||n.call(t,a):null==(o=null==(r=h.get(i))?void 0:r.reject)||o.call(r,new Error(`Error receiving message from worker: ${i}`))})),e.onmessageerror=e=>{var t,n;const{url:r}=e.data;null==(n=null==(t=h.get(r))?void 0:t.reject)||n.call(t,new Error(`Error receiving message from worker: ${r}`))},e}catch(e){return Vle("Failed to new Worker",e),null}})).filter(Boolean),fontFamilies:new Set,fontCssTexts:new Map,acceptOfImage:`${[Xle(f)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:h,drawImageCount:0,tasks:[],features:d,isEnable:e=>{var t;return"boolean"==typeof d?d:null==(t=d[e])||t}});g.log.time("wait until load"),yield function(e,t){return ole(this,null,(function*(){Nle(e)&&(Fle(e)||Ale(e)?yield rse(e,{timeout:t}):yield Promise.all(["img","video"].flatMap((n=>Array.from(e.querySelectorAll(n)).map((e=>rse(e,{timeout:t})))))))}))}(e,g.timeout),g.log.timeEnd("wait until load");const{width:m,height:b}=function(e,t){let{width:n,height:r}=t;if($le(e)&&(!n||!r)){const t=e.getBoundingClientRect();n=n||t.width||Number(e.getAttribute("width"))||0,r=r||t.height||Number(e.getAttribute("height"))||0}return{width:n,height:r}}(e,g);return g.width=m,g.height=b,g}))}(e,nle(tle({},t),{autoDestruct:!0}))}))}function cse(e){if(!e)return;const t=e.createElement("style"),n=t.ownerDocument.createTextNode("\n.______background-clip--text {\n background-clip: text;\n -webkit-background-clip: text;\n}\n");return t.appendChild(n),t}function use(e,t){return ole(this,null,(function*(){const{log:n,timeout:r,drawImageCount:o,drawImageInterval:i}=t;n.time("image to canvas");const a=yield rse(e,{timeout:r}),{canvas:l,context2d:s}=function(e,t){const{width:n,height:r,scale:o,backgroundColor:i,maximumCanvasSize:a}=t,l=e.createElement("canvas");l.width=Math.floor(n*o),l.height=Math.floor(r*o),l.style.width=`${n}px`,l.style.height=`${r}px`,a&&(l.width>a||l.height>a)&&(l.width>a&&l.height>a?l.width>l.height?(l.height*=a/l.width,l.width=a):(l.width*=a/l.height,l.height=a):l.width>a?(l.height*=a/l.width,l.width=a):(l.width*=a/l.height,l.height=a));const s=l.getContext("2d");return s&&i&&(s.fillStyle=i,s.fillRect(0,0,l.width,l.height)),{canvas:l,context2d:s}}(e.ownerDocument,t),c=()=>{try{null==s||s.drawImage(a,0,0,l.width,l.height)}catch(e){Vle("Failed to drawImage",e)}};if(c(),t.isEnable("fixSvgXmlDecode"))for(let e=0;e<o;e++)yield new Promise((t=>{setTimeout((()=>{c(),t()}),e+i)}));return t.drawImageCount=0,n.timeEnd("image to canvas"),l}))}const dse=["width","height","-webkit-text-fill-color"],fse=["stroke","fill"];function pse(e,t,n){var r;const{defaultComputedStyles:o,ownerDocument:i}=n,a=e.nodeName.toLowerCase(),l=jle(e)&&"svg"!==a,s=l?fse.map((t=>[t,e.getAttribute(t)])).filter((([,e])=>null!==e)):[],c=[l&&"svg",a,s.map(((e,t)=>`${e}=${t}`)).join(","),t].filter(Boolean).join(":");if(o.has(c))return o.get(c);let u=n.sandbox;if(!u)try{i&&(u=i.createElement("iframe"),u.id=`__SANDBOX__-${ose()}`,u.width="0",u.height="0",u.style.visibility="hidden",u.style.position="fixed",i.body.appendChild(u),null==(r=u.contentWindow)||r.document.write('<!DOCTYPE html><meta charset="UTF-8"><title></title><body>'),n.sandbox=u)}catch(b){Vle("Failed to create iframe sandbox",b)}if(!u)return new Map;const d=u.contentWindow;if(!d)return new Map;const f=d.document;let p,h;l?(p=f.createElementNS(Jle,"svg"),h=p.ownerDocument.createElementNS(p.namespaceURI,a),s.forEach((([e,t])=>{h.setAttributeNS(null,e,t)})),p.appendChild(h)):p=h=f.createElement(a),h.textContent=" ",f.body.appendChild(p);const g=d.getComputedStyle(h,t),m=new Map;for(let v=g.length,y=0;y<v;y++){const e=g.item(y);dse.includes(e)||m.set(e,g.getPropertyValue(e))}return f.body.removeChild(p),o.set(c,m),m}function hse(e,t){var n;const r=new Map,o=[],i=new Map;for(let a=e.length,l=0;l<a;l++){const n=e.item(l),a=e.getPropertyValue(n),s=e.getPropertyPriority(n),c=n.lastIndexOf("-"),u=c>-1?n.substring(0,c):void 0;if(u){let e=i.get(u);e||(e=new Map,i.set(u,e)),e.set(n,[a,s])}t.get(n)===a&&!s||(u?o.push(u):r.set(n,[a,s]))}for(let a=o.length,l=0;l<a;l++)null==(n=i.get(o[l]))||n.forEach(((e,t)=>r.set(t,e)));return r}const gse=[":before",":after"],mse=[":-webkit-scrollbar",":-webkit-scrollbar-button",":-webkit-scrollbar-thumb",":-webkit-scrollbar-track",":-webkit-scrollbar-track-piece",":-webkit-scrollbar-corner",":-webkit-resizer"];function bse(e){if(e.ownerDocument)try{const t=e.toDataURL();if("data:,"!==t)return nse(t,e.ownerDocument)}catch(kt){}const t=e.cloneNode(!1),n=e.getContext("2d"),r=t.getContext("2d");try{return n&&r&&r.putImageData(n.getImageData(0,0,e.width,e.height),0,0),t}catch(kt){Vle("Failed to clone canvas",kt)}return t}function vse(e,t){return Rle(e)?bse(e):Ule(e)?function(e,t){var n;try{if(null!=(n=null==e?void 0:e.contentDocument)&&n.body)return Sse(e.contentDocument.body,t)}catch(r){Vle("Failed to clone iframe",r)}return e.cloneNode(!1)}(e,t):Fle(e)?function(e){const t=e.cloneNode(!1);return e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager"),t}(e):Ale(e)?function(e){return ole(this,null,(function*(){if(e.ownerDocument&&!e.currentSrc&&e.poster)return nse(e.poster,e.ownerDocument);const t=e.cloneNode(!1);t.crossOrigin="anonymous",e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc);const n=t.ownerDocument;if(n){let o=!0;if(yield rse(t,{onError:()=>o=!1}),!o)return e.poster?nse(e.poster,e.ownerDocument):t;t.currentTime=e.currentTime,yield new Promise((e=>{t.addEventListener("seeked",e,{once:!0})}));const i=n.createElement("canvas");i.width=e.offsetWidth,i.height=e.offsetHeight;try{const e=i.getContext("2d");e&&e.drawImage(t,0,0,i.width,i.height)}catch(r){return Vle("Failed to clone video",r),e.poster?nse(e.poster,e.ownerDocument):t}return bse(i)}return t}))}(e):e.cloneNode(!1)}function yse(e,t,n){return ole(this,null,(function*(){$le(t)&&(zle(t)||Ble(t))||n.filter&&!n.filter(t)||e.appendChild(yield Sse(t,n))}))}function wse(e,t,n){return ole(this,null,(function*(){var r,o;for(let i=null!=(o=$le(e)?null==(r=e.shadowRoot)?void 0:r.firstChild:void 0)?o:e.firstChild;i;i=i.nextSibling)if(!Ile(i))if($le(i)&&Wle(i)&&"function"==typeof i.assignedNodes){const e=i.assignedNodes();for(let r=0;r<e.length;r++)yield yse(t,e[r],n)}else yield yse(t,i,n)}))}const xse=/^[\w-:]+$/;function Sse(e,t,n=!1){return ole(this,null,(function*(){var r,o,i,a;const{ownerDocument:l,ownerWindow:s,fontFamilies:c}=t;if(l&&Tle(e))return l.createTextNode(e.data);if(l&&s&&$le(e)&&(Nle(e)||jle(e))){const l=yield vse(e,t);if(t.isEnable("removeAbnormalAttributes")){const e=l.getAttributeNames();for(let t=e.length,n=0;n<t;n++){const t=e[n];xse.test(t)||l.removeAttribute(t)}}const s=function(e,t,n,r){var o,i,a,l;const{ownerWindow:s}=r,c=t.style,u=hse(s.getComputedStyle(e),pse(e,null,r));return u.delete("transition-property"),u.delete("all"),u.delete("d"),u.delete("content"),n&&(u.delete("margin-top"),u.delete("margin-right"),u.delete("margin-bottom"),u.delete("margin-left"),u.delete("margin-block-start"),u.delete("margin-block-end"),u.delete("margin-inline-start"),u.delete("margin-inline-end"),u.set("box-sizing",["border-box",""])),"text"===(null==(o=u.get("background-clip"))?void 0:o[0])&&t.classList.add("______background-clip--text"),Sle&&(u.has("font-kerning")||u.set("font-kerning",["normal",""]),("hidden"===(null==(i=u.get("overflow-x"))?void 0:i[0])||"hidden"===(null==(a=u.get("overflow-y"))?void 0:a[0]))&&"ellipsis"===(null==(l=u.get("text-overflow"))?void 0:l[0])&&e.scrollWidth===e.clientWidth&&u.set("text-overflow",["clip",""])),u.forEach((([e,t],n)=>{c.setProperty(n,e,t)})),u}(e,l,n,t);n&&function(e,t){const{backgroundColor:n,width:r,height:o,style:i}=t,a=e.style;if(n&&a.setProperty("background-color",n,"important"),r&&a.setProperty("width",`${r}px`,"important"),o&&a.setProperty("height",`${o}px`,"important"),i)for(const l in i)a[l]=i[l]}(l,t);let u=!1;if(t.isEnable("copyScrollbar")){const t=[null==(r=s.get("overflow-x"))?void 0:r[0],null==(o=s.get("overflow-y"))?void 0:o[1]];u=t.includes("scroll")||(t.includes("auto")||t.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}return function(e,t,n,r){const{ownerWindow:o,svgStyleElement:i,svgStyles:a}=r;function l(n){var i;const l=o.getComputedStyle(e,n);let s=l.getPropertyValue("content");if(!s||"none"===s)return;s=s.replace(/(')|(")|(counter\(.+\))/g,"");const c=[ose()],u=pse(e,n,r),d=[`content: '${s}';`],f=hse(l,u);if(f.delete("content"),f.delete("-webkit-locale"),"text"===(null==(i=f.get("background-clip"))?void 0:i[0])&&t.classList.add("______background-clip--text"),f.forEach((([e,t],n)=>{d.push(`${n}: ${e}${t?" !important":""};`)})),1===d.length)return;try{t.className=[t.className,...c].join(" ")}catch(g){return}const p=d.join("\n ");let h=a.get(p);h||(h=[],a.set(p,h)),h.push(`.${c[0]}:${n}`)}i&&o&&(gse.forEach(l),n&&mse.forEach(l))}(e,l,u,t),function(e,t){Mle(e)&&(t.innerHTML=e.value),(Mle(e)||Lle(e)||Hle(e))&&t.setAttribute("value",e.value)}(e,l),null==(a=ise(null==(i=s.get("font-family"))?void 0:i[0]))||a.forEach((e=>c.add(e))),Ale(e)||(yield wse(e,l,t)),l}const u=e.cloneNode(!1);return yield wse(e,u,t),u}))}function kse(e,t){const{url:n,requestType:r="text",responseType:o="text",imageDom:i}=t;let a=n;const{timeout:l,acceptOfImage:s,requests:c,fetch:{requestInit:u,bypassingCache:d,placeholderImage:f},workers:p}=e;"image"===r&&(kle||Cle)&&e.drawImageCount++;let h=c.get(n);if(!h){d&&d instanceof RegExp&&d.test(a)&&(a+=(/\?/.test(a)?"&":"?")+(new Date).getTime());const e=tle({url:a,timeout:l,responseType:o,headers:"image"===r?{accept:s}:void 0},u);h={type:r,resolve:void 0,reject:void 0,response:null},h.response=(!kle&&n.startsWith("http")&&p.length?new Promise(((t,r)=>{p[c.size&p.length-1].postMessage(tle({rawUrl:n},e)),h.resolve=t,h.reject=r})):function(e){const t=e,{url:n,timeout:r,responseType:o}=t,i=rle(t,["url","timeout","responseType"]),a=new AbortController,l=r?setTimeout((()=>a.abort()),r):void 0;return fetch(n,tle({signal:a.signal},i)).then((e=>{if(!e.ok)throw new Error("Failed fetch, not 2xx response",{cause:e});return"dataUrl"===o?e.blob().then(tse):e.text()})).finally((()=>clearTimeout(l)))}(e)).catch((e=>{if(c.delete(n),"image"===r&&f)return Vle("Failed to fetch image base64, trying to use placeholder image",a),"string"==typeof f?f:f(i);throw e})),c.set(n,h)}return h.response}function Cse(e,t,n,r){return ole(this,null,(function*(){if(!Ese(e))return e;for(const[i,a]of function(e,t){const n=[];return e.replace(Ose,((e,r,o)=>(n.push([o,Yle(o,t)]),e))),n.filter((([e])=>!Kle(e)))}(e,t))try{const t=yield kse(n,{url:a,requestType:r?"image":"text",responseType:"dataUrl"});e=e.replace(Dse(i),`$1${t}$3`)}catch(o){Vle("Failed to fetch css data url",i,o)}return e}))}function Ese(e){return/url\((['"]?)([^'"]+?)\1\)/.test(e)}const Ose=/url\((['"]?)([^'"]+?)\1\)/g;function Dse(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function $se(e,t){return ole(this,null,(function*(){const{ownerDocument:e,svgStyleElement:n,fontFamilies:r,fontCssTexts:o,tasks:i,font:a}=t;if(e&&n&&r.size)if(a&&a.cssText){const r=Ise(a.cssText,t);n.appendChild(e.createTextNode(`${r}\n`))}else{const a=Array.from(e.styleSheets).filter((e=>{try{return"cssRules"in e&&Boolean(e.cssRules.length)}catch(t){return Vle(`Error while reading CSS rules from ${e.href}`,t),!1}}));yield Promise.all(a.flatMap((e=>Array.from(e.cssRules).map(((n,r)=>ole(this,null,(function*(){if(Dle(n)){let a=r+1;const l=n.href;let s="";try{s=yield kse(t,{url:l,requestType:"text",responseType:"text"})}catch(o){Vle(`Error fetch remote css import from ${l}`,o)}const c=s.replace(Ose,((e,t,n)=>e.replace(n,Yle(n,l))));for(const t of function(e){if(null==e)return[];const t=[];let n=e.replace(jse,"");for(;;){const e=Pse.exec(n);if(!e)break;t.push(e[0])}n=n.replace(Pse,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=r.exec(n);if(e)o.lastIndex=r.lastIndex;else{if(e=o.exec(n),!e)break;r.lastIndex=o.lastIndex}t.push(e[0])}return t}(c))try{e.insertRule(t,t.startsWith("@import")?a+=1:e.cssRules.length)}catch(i){Vle("Error inserting rule from remote css import",{rule:t,error:i})}}}))))))),a.flatMap((e=>Array.from(e.cssRules))).filter((e=>{var t;return Ole(e)&&Ese(e.style.getPropertyValue("src"))&&(null==(t=ise(e.style.getPropertyValue("font-family")))?void 0:t.some((e=>r.has(e))))})).forEach((r=>{const a=r,l=o.get(a.cssText);l?n.appendChild(e.createTextNode(`${l}\n`)):i.push(Cse(a.cssText,a.parentStyleSheet?a.parentStyleSheet.href:null,t).then((r=>{r=Ise(r,t),o.set(a.cssText,r),n.appendChild(e.createTextNode(`${r}\n`))})))}))}}))}const jse=/(\/\*[\s\S]*?\*\/)/gi,Pse=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;const _se=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Nse=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Ise(e,t){const{font:n}=t,r=n?null==n?void 0:n.preferredFormat:void 0;return r?e.replace(Nse,(e=>{for(;;){const[t,,n]=_se.exec(e)||[];if(!n)return"";if(n===r)return`src: ${t};`}})):e}const Tse=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function Fse(e,t){const{tasks:n}=t;$le(e)&&((Fle(e)||Ple(e))&&n.push(...function(e,t){if(Fle(e)){const n=e.currentSrc||e.src;if(!Kle(n))return[kse(t,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then((t=>{t&&(e.srcset="",e.dataset.originalSrc=n,e.src=t||"")}))];(kle||Cle)&&t.drawImageCount++}else if(jle(e)&&!Kle(e.href.baseVal)){const n=e.href.baseVal;return[kse(t,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then((t=>{t&&(e.dataset.originalSrc=n,e.href.baseVal=t||"")}))]}return[]}(e,t)),_le(e)&&n.push(...function(e,t){var n;const{ownerDocument:r,svgDefsElement:o}=t,i=null!=(n=e.getAttribute("href"))?n:e.getAttribute("xlink:href");if(!i)return[];const[a,l]=i.split("#");if(l){const n=`#${l}`,i=null==r?void 0:r.querySelector(`svg ${n}`);if(a&&e.setAttribute("href",n),null!=o&&o.querySelector(n))return[];if(i)return[Sse(i,t).then((e=>{null!=o&&o.querySelector(n)||null==o||o.appendChild(e)}))];if(a)return[kse(t,{url:a,responseType:"text"}).then((e=>{null==o||o.insertAdjacentHTML("beforeend",e)}))]}return[]}(e,t))),Nle(e)&&n.push(...function(e,t){return Tse.map((n=>{const r=e.getPropertyValue(n);return r&&"none"!==r?((kle||Cle)&&t.drawImageCount++,Cse(r,null,t,!0).then((t=>{!t||r===t||e.setProperty(n,t,e.getPropertyPriority(n))}))):null})).filter(Boolean)}(e.style,t)),e.childNodes.forEach((e=>{Fse(e,t)}))}function Ase(e,t){return ole(this,null,(function*(){const n=yield sse(e,t);if($le(n.node)&&jle(n.node))return n.node;const{ownerDocument:r,log:o,tasks:i,svgStyleElement:a,svgDefsElement:l,svgStyles:s,font:c,progress:u,autoDestruct:d,onCloneNode:f,onEmbedNode:p,onCreateForeignObjectSvg:h}=n;o.time("clone node");const g=yield Sse(n.node,n,!0);if(a&&r){let e="";s.forEach(((t,n)=>{e+=`${t.join(",\n")} {\n ${n}\n}\n`})),a.appendChild(r.createTextNode(e))}o.timeEnd("clone node"),null==f||f(g),!1!==c&&$le(g)&&(o.time("embed web font"),yield $se(0,n),o.timeEnd("embed web font")),o.time("embed node"),Fse(g,n);const m=i.length;let b=0;null==u||u(b,m),yield Promise.all([...Array(4)].map((()=>ole(this,null,(function*(){for(;;){const t=i.pop();if(!t)break;try{yield t}catch(e){Vle("Failed to run task",e)}null==u||u(++b,m)}}))))),o.timeEnd("embed node"),null==p||p(g);const v=function(e,t){const{width:n,height:r}=t,o=Zle(n,r,e.ownerDocument),i=o.ownerDocument.createElementNS(o.namespaceURI,"foreignObject");return i.setAttributeNS(null,"x","0%"),i.setAttributeNS(null,"y","0%"),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.append(e),o.appendChild(i),o}(g,n);return l&&v.insertBefore(l,v.children[0]),a&&v.insertBefore(a,v.children[0]),d&&function(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(t){}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[]}(n),null==h||h(v),v}))}function Rse(e,t){return ole(this,null,(function*(){const n=yield sse(e,t),{log:r,quality:o,type:i,dpi:a}=n,l=yield function(e,t){return ole(this,null,(function*(){var n;const r=yield sse(e,t),o=yield Ase(r),i=ese(o,r.isEnable("removeControlCharacter"));r.autoDestruct||(r.svgStyleElement=cse(r.ownerDocument),r.svgDefsElement=null==(n=r.ownerDocument)?void 0:n.createElementNS(Jle,"defs"),r.svgStyles.clear());const a=nse(i,o.ownerDocument);return yield use(a,r)}))}(n);r.time("canvas to data url");let s=l.toDataURL(i,o);if(["image/png","image/jpeg"].includes(i)&&a&&vle&&yle){const[e,t]=s.split(",");let n=0,r=!1;if("image/png"===i){const e=function(e){let t=e.indexOf(fle);return-1===t&&(t=e.indexOf(ple)),-1===t&&(t=e.indexOf(hle)),t}(t);e>=0?(n=4*Math.ceil((e+28)/3),r=!0):n=44}else"image/jpeg"===i&&(n=24);const o=t.substring(0,n),l=t.substring(n),c=window.atob(o),u=new Uint8Array(c.length);for(let i=0;i<u.length;i++)u[i]=c.charCodeAt(i);const d="image/png"===i?dle(u,a,r):function(e,t){return e[13]=1,e[14]=t>>8,e[15]=255&t,e[16]=t>>8,e[17]=255&t,e}(u,a);s=[e,",",window.btoa(String.fromCharCode(...d)),l].join("")}return r.timeEnd("canvas to data url"),s}))}function Mse(e,t){return ole(this,null,(function*(){const n=yield sse(e,t),{width:r,height:o,ownerDocument:i}=n,a=yield Rse(n),l=Zle(r,o,i),s=l.ownerDocument.createElementNS(l.namespaceURI,"image");return s.setAttributeNS(null,"href",a),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"width","100%"),l.appendChild(s),ese(l,n.isEnable("removeControlCharacter"))}))}function Lse(e,t){return ole(this,null,(function*(){return Rse(yield sse(e,nle(tle({},t),{type:"image/jpeg"})))}))}function zse(e,t){return ole(this,null,(function*(){return Rse(yield sse(e,nle(tle({},t),{type:"image/png"})))}))}function Bse(e,t){return ole(this,null,(function*(){return Rse(yield sse(e,nle(tle({},t),{type:"image/webp"})))}))}const Hse=BB((({css:e,token:t,stylish:n,cx:r},o)=>({background:e`
|
||
padding: 24px;
|
||
|
||
background-color: ${t.colorBgLayout};
|
||
background-image: url('https://gw.alipayobjects.com/zos/kitchen/o1ccl9hjoX/screenshot_background.webp');
|
||
background-position: center;
|
||
background-size: 120% 120%;
|
||
`,container:r(o&&e`
|
||
overflow: hidden;
|
||
border: 2px solid ${t.colorBorder};
|
||
border-radius: ${t.borderRadiusLG}px;
|
||
`,e`
|
||
background: ${t.colorBgLayout};
|
||
`),desc:e`
|
||
font-size: 12px;
|
||
color: ${t.colorTextDescription};
|
||
`,footer:e`
|
||
padding: 16px;
|
||
border-top: 1px solid ${t.colorBorder};
|
||
`,img:e`
|
||
border-radius: ${t.borderRadiusSM}px;
|
||
`,preview:r(n.noScrollbar,e`
|
||
overflow: hidden scroll;
|
||
|
||
width: 100%;
|
||
max-height: 40vh;
|
||
|
||
background: ${t.colorBgLayout};
|
||
border: 1px solid ${t.colorBorder};
|
||
border-radius: ${t.borderRadiusLG}px;
|
||
|
||
* {
|
||
pointer-events: none;
|
||
overflow: hidden;
|
||
|
||
::-webkit-scrollbar {
|
||
width: 0 !important;
|
||
height: 0 !important;
|
||
}
|
||
}
|
||
`),title:e`
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
`,url:e`
|
||
color: ${t.colorTextDescription};
|
||
`})));var Wse=(e=>(e.JPG="jpg",e.PNG="png",e.SVG="svg",e.WEBP="webp",e))(Wse||{});const Use=[{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"SVG",value:"svg"},{label:"WEBP",value:"webp"}],Vse=B.memo((({imageType:e,withBackground:t,withFooter:n,children:r})=>{const[o,i]=B.useState(!1),{t:a}=O6(),{styles:l}=Hse(t),s=B.useCallback((async()=>{i(!0);try{let t;switch(e){case"jpg":t=Lse;break;case"png":t=zse;break;case"svg":t=Mse;break;case"webp":t=Bse}const n=await t(document.querySelector("#preview"),{features:{removeControlCharacter:!1},scale:2}),r=document.createElement("a");r.download=`LobeTheme_${Gae().format("YYYY-MM-DD")}.${e}`,r.href=n,r.click(),i(!1)}catch(t){ue.error("🤯 Failed to download image",t),i(!1)}}),[e]);return Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:l.preview,children:Q.jsx("div",{className:t?l.background:void 0,id:"preview",children:Q.jsxs(fU,{className:l.container,gap:16,children:[r,n?Q.jsxs(fU,{align:"center",className:l.footer,gap:4,children:[Q.jsx(B5,{extra:"SD",type:"combine"}),Q.jsx("div",{className:l.url,children:G9})]}):Q.jsx("div",{})]})})}),Q.jsx(BC,{block:!0,loading:o,onClick:s,size:"large",type:"primary",children:a("shareModal.download")})]})})),Gse=Vse,qse={attributes:!0,characterData:!0,childList:!0,subtree:!0},Xse=B.memo((({type:e,showConfig:t,showNegative:n,title:r,showAllImages:o})=>{const{image:i,images:a}=(e=>{const[t,n]=B.useState(""),[r,o]=B.useState([]);return B.useEffect((()=>{const t=new MutationObserver((e=>{for(const t of e)if("childList"===t.type||"characterData"===t.type){const e=t.target.querySelector('img[data-testid="detailed-image"]'),r=t.target.querySelectorAll(".thumbnails button img"),i=Array.from(r).filter(Boolean).map((e=>e.src));n(String(e.src)),o(i)}})),r=gradioApp().querySelector(e);if(r){t.observe(r,qse);const e=r.querySelector('img[data-testid="detailed-image"]'),i=r.querySelectorAll(".thumbnails button img"),a=Array.from(i).filter(Boolean).map((e=>e.src));n(null==e?void 0:e.src),o(a)}return()=>{t.disconnect()}}),[e]),{image:t,images:r}})(`#${e}2img_gallery`),l=dee(`#html_info_${e}2img .infotext`,{subSelector:"p"}),{styles:s}=Hse(),{t:c}=O6();return i&&"undefined"!==i?Q.jsxs(fU,{gap:16,style:{padding:16},children:[r&&Q.jsxs(fU,{align:"center",gap:12,horizontal:!0,children:[Q.jsx(OV,{avatar:i}),Q.jsxs(fU,{children:[Q.jsx("div",{className:s.title,children:r}),Q.jsx("div",{className:s.desc,children:Gae().format("YYYY-MM-DD")})]})]}),o?null==a?void 0:a.map(((e,t)=>Q.jsx("img",{alt:"screenshot",className:s.img,src:e,width:"100%"},t))):Q.jsx("img",{alt:"screenshot",className:s.img,src:i,width:"100%"}),Q.jsx(kee,{showConfig:t,showCopy:!1,showNegative:n,value:l})]}):Q.jsx("div",{style:{padding:16},children:Q.jsx(yU,{message:c("shareModal.warn"),type:"warning"})})})),Kse=Xse,Yse=B.memo((({type:e})=>{const[t,n]=B.useState(""),[r,o]=B.useState(!0),[i,a]=B.useState(!0),[l,s]=B.useState(!0),[c,u]=B.useState(!0),[d,f]=B.useState(!1),[p,h]=B.useState(Wse.JPG),[g,m]=B.useState("info"),{t:b}=O6(),v=B.useMemo((()=>[{label:b("shareModal.tabs.info"),value:"info"},{label:b("shareModal.tabs.settings"),value:"settings"}]),[]),y=B.useMemo((()=>({children:[{children:Q.jsx(qR,{onChange:e=>n(e.target.value),value:t}),label:b("shareModal.title")},{children:Q.jsx(Pz,{checked:d,onChange:f}),label:b("shareModal.showAllImages"),minWidth:void 0},{children:Q.jsx(Pz,{checked:c,onChange:u}),label:b("shareModal.showNegative"),minWidth:void 0},{children:Q.jsx(Pz,{checked:l,onChange:s}),label:b("shareModal.showConfig"),minWidth:void 0}].filter(Boolean),icon:Wd,title:b("shareModal.info")})),[t,d,c,l]),w=B.useMemo((()=>({children:[{children:Q.jsx(Pz,{checked:r,onChange:o}),label:b("shareModal.withBackground"),minWidth:void 0},{children:Q.jsx(Pz,{checked:i,onChange:a}),label:b("shareModal.withFooter"),minWidth:void 0},{children:Q.jsx(YL,{onChange:e=>h(e),options:Use,value:p}),label:b("shareModal.imageType"),minWidth:void 0}].filter(Boolean),icon:lf,title:b("shareModal.settings")})),[r,i,p]);return Q.jsxs(fU,{gap:16,children:[Q.jsx(YL,{block:!0,onChange:e=>m(e),options:v,style:{width:"100%"},value:g}),"info"===g&&Q.jsx(u2,{items:[y]}),"settings"===g&&Q.jsx(u2,{items:[w]}),Q.jsx(Gse,{imageType:p,withBackground:r,withFooter:i,children:Q.jsx(Kse,{showAllImages:d,showConfig:l,showNegative:c,title:t,type:e})})]})})),Qse=Yse,Jse=(e,t)=>{const n=`lobe_share_${e}`;if(document.querySelector(`#${n}`))return;const r=document.querySelector(`#image_buttons_${e}2img > .form`);r&&r.append(((e,t)=>{const n=document.createElement("button");return n.id=e,n.type="button",n.innerHTML="💞",n.title="Share",n.className="lg secondary gradio-button tool svelte-cmf5ev",n.addEventListener("click",t),n})(n,t))},Zse=B.memo((({type:e})=>{const[t,n]=B.useState(!1),r=B.useCallback((()=>{n(!0)}),[]),{t:o}=O6();return B.useEffect((()=>{try{Jse(e,r),ue.success(`🤯 [layout] inject - Share ${e}`)}catch(t){ue.error(`🤯 [layout] inject - Share ${e}`,t)}}),[e]),Q.jsx(e0,{centered:!1,destroyOnClose:!0,footer:null,onCancel:()=>n(!1),open:t,title:o("share"),children:Q.jsx(Qse,{type:e})})})),ece=B.memo((()=>Q.jsxs(Q.Fragment,{children:[Q.jsx(Zse,{type:"txt"}),Q.jsx(Zse,{type:"img"})]}))),tce=BB((({cx:e,css:t,stylish:n,token:r,isDarkMode:o},{headerHeight:i,isPrimaryColor:a})=>({background:e(n.gradientAnimation,a&&t`
|
||
background-image: linear-gradient(
|
||
-45deg,
|
||
${r.colorPrimary},
|
||
${hV(45,r.colorPrimary)},
|
||
${r.colorPrimary},
|
||
${hV(-45,r.colorPrimary)}
|
||
);
|
||
`,t`
|
||
pointer-events: none;
|
||
|
||
position: absolute !important;
|
||
z-index: 0;
|
||
right: -20vw;
|
||
transform: rotate(4deg);
|
||
|
||
width: 60vw;
|
||
height: 200px;
|
||
|
||
opacity: 0.2;
|
||
filter: blur(100px);
|
||
`),backgroundLite:t`
|
||
pointer-events: none;
|
||
|
||
position: absolute !important;
|
||
top: -400px;
|
||
left: 0;
|
||
|
||
width: 100vw;
|
||
height: 100%;
|
||
|
||
opacity: ${a?o?.2:.05:o?.15:0};
|
||
background: radial-gradient(
|
||
circle 600px at calc(100% - 300px) 300px,
|
||
${r.colorPrimary},
|
||
transparent
|
||
);
|
||
`,panel:t`
|
||
.draggable-panel {
|
||
border-style: dashed;
|
||
}
|
||
`,quicksettings:t`
|
||
#quicksettings {
|
||
align-items: start;
|
||
padding: 16px !important;
|
||
}
|
||
`,sidebar:t`
|
||
height: calc(100vh - ${i}px);
|
||
`}))),nce=64,rce=B.memo((()=>{const e=aee(ree,m1),{cx:t,styles:n}=tce({headerHeight:nce,isPrimaryColor:Boolean(e.primaryColor)});return B.useEffect((()=>{e.enableHighlight&&(()=>{try{rte("#txt2img_prompt","#lobe_txt2img_prompt"),rte("#img2img_prompt","#lobe_img2img_prompt"),ue.success("🤯 [module] inject - PromptHighlight")}catch(e){ue.error("🤯 [module] inject - PromptHighlight",e)}})(),e.enableImageInfo&&(()=>{try{ete("#html_info_txt2img","#lobe_html_info_txt2img"),ete("#html_info_img2img","#lobe_html_info_img2img"),ue.success("🤯 [module] inject - ImageInfo")}catch(e){ue.error("🤯 [module] inject - ImageInfo",e)}})(),e.svgIcon&&(()=>{for(const e of document.querySelectorAll("button"))ite(e,["🖌️"],'<svg\n class="lucide lucide-pen-square"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />\n <path d="M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z" />\n</svg>\n',16),ite(e,["🗃️"],'<svg\n class="lucide lucide-file-archive"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M4 22V4c0-.5.2-1 .6-1.4C5 2.2 5.5 2 6 2h8.5L20 7.5V20c0 .5-.2 1-.6 1.4-.4.4-.9.6-1.4.6h-2" />\n <polyline points="14 2 14 8 20 8" />\n <circle cx="10" cy="20" r="2" />\n <path d="M10 7V6" />\n <path d="M10 12v-1" />\n <path d="M10 18v-2" />\n</svg>\n',16),ite(e,["🖼️"],'<svg\n class="lucide lucide-image"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />\n <circle cx="9" cy="9" r="2" />\n <path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />\n</svg>\n',16),ite(e,["🎨️"],'<svg\n class="lucide lucide-brush"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08" />\n <path d="M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z" />\n</svg>\n',16),ite(e,["📂"],'<svg\n class="lucide lucide-folder-closed"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" />\n <path d="M2 10h20" />\n</svg>\n',16),ite(e,["🔄","🔁","♻️"],'<svg\n class="lucide lucide-refresh-ccw"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />\n <path d="M3 3v5h5" />\n <path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16" />\n <path d="M16 16h5v5" />\n</svg>\n',16),ite(e,["↙️"],'<svg\n class="lucide lucide-arrow-down-left"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M17 7 7 17" />\n <path d="M17 17H7V7" />\n</svg>\n',16),ite(e,["⤴"],'<svg\n class="lucide lucide-corner-right-up"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <polyline points="10 9 15 4 20 9" />\n <path d="M4 20h7a4 4 0 0 0 4-4V4" />\n</svg>\n',16),ite(e,["↕️"],'<svg\n class="lucide lucide-arrow-down-wide-narrow"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m3 16 4 4 4-4" />\n <path d="M7 20V4" />\n <path d="M11 4h10" />\n <path d="M11 8h7" />\n <path d="M11 12h4" />\n</svg>\n',16),ite(e,["🗑️"],'<svg\n class="lucide lucide-trash"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M3 6h18" />\n <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" />\n <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" />\n</svg>\n',16),ite(e,["📋"],'<svg\n class="lucide lucide-clipboard-list"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="8" height="4" x="8" y="2" rx="1" ry="1" />\n <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />\n <path d="M12 11h4" />\n <path d="M12 16h4" />\n <path d="M8 11h.01" />\n <path d="M8 16h.01" />\n</svg>\n',16),ite(e,["💾"],'<svg\n class="lucide lucide-save"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" />\n <polyline points="17 21 17 13 7 13 7 21" />\n <polyline points="7 3 7 8 15 8" />\n</svg>\n',16),ite(e,["🎲️"],'<svg\n class="lucide lucide-dices"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="12" height="12" x="2" y="10" rx="2" ry="2" />\n <path d="m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6" />\n <path d="M6 18h.01" />\n <path d="M10 14h.01" />\n <path d="M15 6h.01" />\n <path d="M18 9h.01" />\n</svg>\n',16),ite(e,["🪄"],'<svg\n class="lucide lucide-wand-2"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z" />\n <path d="m14 7 3 3" />\n <path d="M5 6v4" />\n <path d="M19 14v4" />\n <path d="M10 2v2" />\n <path d="M7 8H3" />\n <path d="M21 16h-4" />\n <path d="M11 3H9" />\n</svg>\n',16),ite(e,["⚙️"],'<svg\n class="lucide lucide-settings"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />\n <circle cx="12" cy="12" r="3" />\n</svg>\n',16),ite(e,["➡️"],ote,16),ite(e,["⇅"],'<svg\n class="lucide lucide-arrow-up-down"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21 16-4 4-4-4" />\n <path d="M17 20V4" />\n <path d="m3 8 4-4 4 4" />\n <path d="M7 4v16" />\n</svg>\n',16),ite(e,["⇄"],'<svg\n class="lucide lucide-arrow-right-left"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m16 3 4 4-4 4" />\n <path d="M20 7H4" />\n <path d="m8 21-4-4 4-4" />\n <path d="M4 17h16" />\n</svg>\n',16),ite(e,["🎴"],'<svg\n class="lucide lucide-panel-right"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />\n <line x1="15" x2="15" y1="3" y2="21" />\n</svg>\n',16),ite(e,["🌀"],'<svg\n class="lucide lucide-archive-restore"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="20" height="5" x="2" y="3" rx="1" />\n <path d="M4 8v11a2 2 0 0 0 2 2h2" />\n <path d="M20 8v11a2 2 0 0 1-2 2h-2" />\n <path d="m9 15 3-3 3 3" />\n <path d="M12 12v9" />\n</svg>\n',16),ite(e,["💥"],'<svg\n class="lucide lucide-play"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <polygon points="5 3 19 12 5 21 5 3" />\n</svg>\n',16),ite(e,["📷"],'<svg\n class="lucide lucide-webcam"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <circle cx="12" cy="10" r="8" />\n <circle cx="12" cy="10" r="3" />\n <path d="M7 22h10" />\n <path d="M12 22v-4" />\n</svg>\n',16),ite(e,["📝"],'<svg\n class="lucide lucide-laptop-2"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="12" x="3" y="4" rx="2" ry="2" />\n <line x1="2" x2="22" y1="20" y2="20" />\n</svg>\n',16),ite(e,["📐"],'<svg\n class="lucide lucide-pencil-ruler"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m15 5 4 4" />\n <path d="M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13" />\n <path d="m8 6 2-2" />\n <path d="m2 22 5.5-1.5L21.17 6.83a2.82 2.82 0 0 0-4-4L3.5 16.5Z" />\n <path d="m18 16 2-2" />\n <path d="m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17" />\n</svg>\n',16),ite(e,["⬇️"],'<svg\n class="lucide lucide-arrow-down"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M12 5v14" />\n <path d="m19 12-7 7-7-7" />\n</svg>\n',16),ite(e,["↩"],'<svg\n class="lucide lucide-undo"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M3 7v6h6" />\n <path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" />\n</svg>\n',16),ite(e,["📒"],'<svg\n class="lucide lucide-book"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20" />\n</svg>\n',16),ite(e,["📎"],'<svg\n class="lucide lucide-paperclip"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48" />\n</svg>\n',16),ite(e,["📦"],'<svg\n class="lucide lucide-box"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" />\n <path d="m3.3 7 8.7 5 8.7-5" />\n <path d="M12 22V12" />\n</svg>\n',16),ite(e,["💞"],'<svg\n class="lucide lucide-share-2"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <circle cx="18" cy="5" r="3" />\n <circle cx="6" cy="12" r="3" />\n <circle cx="18" cy="19" r="3" />\n <line x1="8.59" x2="15.42" y1="13.51" y2="17.49" />\n <line x1="15.41" x2="8.59" y1="6.51" y2="10.49" />\n</svg>\n',16);for(const e of document.querySelectorAll("span"))ite(e,["⤡"],'<svg\n class="lucide lucide-maximize"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M8 3H5a2 2 0 0 0-2 2v3" />\n <path d="M21 8V5a2 2 0 0 0-2-2h-3" />\n <path d="M3 16v3a2 2 0 0 0 2 2h3" />\n <path d="M16 21h3a2 2 0 0 0 2-2v-3" />\n</svg>\n',36),ite(e,["⊞"],'<svg\n class="lucide lucide-grid-2x2"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" />\n <path d="M3 12h18" />\n <path d="M12 3v18" />\n</svg>\n',36),ite(e,["🖫"],'<svg\n class="lucide lucide-download"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />\n <polyline points="7 10 12 15 17 10" />\n <line x1="12" x2="12" y1="15" y2="3" />\n</svg>\n',36),ite(e,["×"],'<svg\n class="lucide lucide-x"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M18 6 6 18" />\n <path d="m6 6 12 12" />\n</svg>\n',36);for(const e of document.querySelectorAll("a"))ite(e,["❮"],'<svg\n class="lucide lucide-arrow-left"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m12 19-7-7 7-7" />\n <path d="M19 12H5" />\n</svg>\n',36),ite(e,["❯"],ote,36);ue.success("🤯 [svgIcon] replace")})()}),[]),Q.jsxs(Q.Fragment,{children:[Q.jsx(xte,{}),Q.jsx(g5,{headerHeight:nce,children:Q.jsx(Lae,{})}),Q.jsxs(m5,{children:[Q.jsx("div",{className:e.liteAnimation?n.backgroundLite:n.background}),e.enableSidebar&&Q.jsx(b5,{className:n.sidebar,headerHeight:nce,style:{flex:0,zIndex:50},children:Q.jsx(Uae,{headerHeight:nce})}),Q.jsx(Cte,{className:t(!e.enableSidebar&&n.quicksettings)}),Q.jsx(ece,{}),(null==e?void 0:e.enableExtraNetworkSidebar)&&Q.jsx(b5,{className:n.sidebar,headerHeight:nce,style:{flex:0,zIndex:50},children:Q.jsx(Ate,{headerHeight:nce})})]}),Q.jsx(Wte,{})]})})),oce=rce;var ice,ace=B,lce=(ice=ace)&&"object"==typeof ice&&"default"in ice?ice.default:ice;function sce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cce=!("undefined"==typeof window||!window.document||!window.document.createElement);const uce=n((function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,i=[];function a(){o=e(i.map((function(e){return e.props}))),l.canUseDOM?t(o):n&&(o=n(o))}var l=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,l.peek=function(){return o},l.rewind=function(){if(l.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=o;return o=void 0,i=[],e};var s=l.prototype;return s.UNSAFE_componentWillMount=function(){i.push(this),a()},s.componentDidUpdate=function(){a()},s.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},s.render=function(){return lce.createElement(r,this.props)},l}(ace.PureComponent);return sce(l,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),sce(l,"canUseDOM",cce),l}}));var dce="undefined"!=typeof Element,fce="function"==typeof Map,pce="function"==typeof Set,hce="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function gce(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!gce(e[r],t[r]))return!1;return!0}if(fce&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!gce(r.value[1],t.get(r.value[0])))return!1;return!0}if(pce&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(hce&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(dce&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!gce(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var mce=function(e,t){try{return gce(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const bce=n(mce);
|
||
/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var vce=Object.getOwnPropertySymbols,yce=Object.prototype.hasOwnProperty,wce=Object.prototype.propertyIsEnumerable;const xce=n(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))yce.call(n,a)&&(o[a]=n[a]);if(vce){r=vce(n);for(var l=0;l<r.length;l++)wce.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o});var Sce="bodyAttributes",kce="htmlAttributes",Cce="titleAttributes",Ece={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Ece).map((function(e){return Ece[e]}));var Oce,Dce="charset",$ce="cssText",jce="href",Pce="http-equiv",_ce="innerHTML",Nce="itemprop",Ice="name",Tce="property",Fce="rel",Ace="src",Rce="target",Mce={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Lce="defaultTitle",zce="defer",Bce="encodeSpecialCharacters",Hce="onChangeClientState",Wce="titleTemplate",Uce=Object.keys(Mce).reduce((function(e,t){return e[Mce[t]]=t,e}),{}),Vce=[Ece.NOSCRIPT,Ece.SCRIPT,Ece.STYLE],Gce="data-react-helmet",qce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xce=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Kce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yce=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Qce=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Jce=function(e){var t=rue(e,Ece.TITLE),n=rue(e,Wce);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=rue(e,Lce);return t||r||void 0},Zce=function(e){return rue(e,Hce)||function(){}},eue=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Kce({},e,t)}),{})},tue=function(e,t){return t.filter((function(e){return void 0!==e[Ece.BASE]})).map((function(e){return e[Ece.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},nue=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&sue("Helmet: "+e+' should be of type "Array". Instead found type "'+qce(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var l=i[a],s=l.toLowerCase();-1===t.indexOf(s)||n===Fce&&"canonical"===e[n].toLowerCase()||s===Fce&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(l)||l!==_ce&&l!==$ce&&l!==Nce||(n=l)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var l=i[a],s=xce({},r[l],o[l]);r[l]=s}return e}),[]).reverse()},rue=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},oue=(Oce=Date.now(),function(e){var t=Date.now();t-Oce>16?(Oce=t,e(t)):setTimeout((function(){oue(e)}),0)}),iue=function(e){return clearTimeout(e)},aue="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||oue:global.requestAnimationFrame||oue,lue="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||iue:global.cancelAnimationFrame||iue,sue=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},cue=null,uue=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,l=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,f=e.titleAttributes;pue(Ece.BODY,r),pue(Ece.HTML,o),fue(d,f);var p={baseTag:hue(Ece.BASE,n),linkTags:hue(Ece.LINK,i),metaTags:hue(Ece.META,a),noscriptTags:hue(Ece.NOSCRIPT,l),scriptTags:hue(Ece.SCRIPT,c),styleTags:hue(Ece.STYLE,u)},h={},g={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(g[e]=p[e].oldTags)})),t&&t(),s(e,h,g)},due=function(e){return Array.isArray(e)?e.join(""):e},fue=function(e,t){void 0!==e&&document.title!==e&&(document.title=due(e)),pue(Ece.TITLE,t)},pue=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Gce),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),l=0;l<a.length;l++){var s=a[l],c=t[s]||"";n.getAttribute(s)!==c&&n.setAttribute(s,c),-1===o.indexOf(s)&&o.push(s);var u=i.indexOf(s);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(Gce):n.getAttribute(Gce)!==a.join(",")&&n.setAttribute(Gce,a.join(","))}},hue=function(e,t){var n=document.head||document.querySelector(Ece.HEAD),r=n.querySelectorAll(e+"["+Gce+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===_ce)n.innerHTML=t.innerHTML;else if(r===$ce)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[r]?"":t[r];n.setAttribute(r,l)}n.setAttribute(Gce,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},gue=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},mue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Mce[n]||n]=e[n],t}),t)},bue=function(e,t,n){switch(e){case Ece.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Gce]=!0,o=mue(n,r),[H.createElement(Ece.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=gue(n),i=due(t);return o?"<"+e+" "+Gce+'="true" '+o+">"+Qce(i,r)+"</"+e+">":"<"+e+" "+Gce+'="true">'+Qce(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Sce:case kce:return{toComponent:function(){return mue(t)},toString:function(){return gue(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Gce]=!0,r);return Object.keys(t).forEach((function(e){var n=Mce[e]||e;if(n===_ce||n===$ce){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),H.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===_ce||e===$ce)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Qce(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===Vce.indexOf(e);return t+"<"+e+" "+Gce+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},vue=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,l=e.noscriptTags,s=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,f=e.titleAttributes;return{base:bue(Ece.BASE,t,r),bodyAttributes:bue(Sce,n,r),htmlAttributes:bue(kce,o,r),link:bue(Ece.LINK,i,r),meta:bue(Ece.META,a,r),noscript:bue(Ece.NOSCRIPT,l,r),script:bue(Ece.SCRIPT,s,r),style:bue(Ece.STYLE,c,r),title:bue(Ece.TITLE,{title:d,titleAttributes:f},r)}},yue=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!bce(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Ece.SCRIPT:case Ece.NOSCRIPT:return{innerHTML:t};case Ece.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return Kce({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Kce({},o,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Ece.TITLE:return Kce({},o,((t={})[r.type]=a,t.titleAttributes=Kce({},i),t));case Ece.BODY:return Kce({},o,{bodyAttributes:Kce({},i)});case Ece.HTML:return Kce({},o,{htmlAttributes:Kce({},i)})}return Kce({},o,((n={})[r.type]=Kce({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Kce({},t);return Object.keys(e).forEach((function(t){var r;n=Kce({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return H.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Uce[n]||n]=e[n],t}),t)}(Yce(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Ece.LINK:case Ece.META:case Ece.NOSCRIPT:case Ece.SCRIPT:case Ece.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=Yce(t,["children"]),o=Kce({},r);return n&&(o=this.mapChildrenToProps(n,o)),H.createElement(e,o)},Xce(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(H.Component),t.propTypes={base:yY.object,bodyAttributes:yY.object,children:yY.oneOfType([yY.arrayOf(yY.node),yY.node]),defaultTitle:yY.string,defer:yY.bool,encodeSpecialCharacters:yY.bool,htmlAttributes:yY.object,link:yY.arrayOf(yY.object),meta:yY.arrayOf(yY.object),noscript:yY.arrayOf(yY.object),onChangeClientState:yY.func,script:yY.arrayOf(yY.object),style:yY.arrayOf(yY.object),title:yY.string,titleAttributes:yY.object,titleTemplate:yY.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=vue({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(uce((function(e){return{baseTag:tue([jce,Rce],e),bodyAttributes:eue(Sce,e),defer:rue(e,zce),encode:rue(e,Bce),htmlAttributes:eue(kce,e),linkTags:nue(Ece.LINK,[Fce,jce],e),metaTags:nue(Ece.META,[Ice,Dce,Pce,Tce,Nce],e),noscriptTags:nue(Ece.NOSCRIPT,[_ce],e),onChangeClientState:Zce(e),scriptTags:nue(Ece.SCRIPT,[Ace,_ce],e),styleTags:nue(Ece.STYLE,[$ce],e),title:Jce(e),titleAttributes:eue(Cce,e)}}),(function(e){cue&&lue(cue),e.defer?cue=aue((function(){uue(e,(function(){cue=null}))})):(uue(e),cue=null)}),vue)((function(){return null})));yue.renderStatic=yue.rewind;const wue={background_color:"#000000",description:"The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.",display:"standalone",icons:[{sizes:"192x192",src:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-192x192.png",type:"image/png"},{sizes:"512x512",src:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-512x512.png",type:"image/png"}],id:"/",name:"Stable Diffusion",orientation:"portrait",scope:"/",short_name:"Stable Diffusion",splash_pages:null,start_url:location.origin,theme_color:"#000000"},xue=`data:application/manifest+json;base64,${btoa(JSON.stringify(wue))}`,Sue=B.memo((({children:e})=>{const[t,n]=B.useState(!0),{setCurrentTab:r,onInit:o,storeLoading:i}=aee((e=>({onInit:e.onInit,setCurrentTab:e.setCurrentTab,storeLoading:e.loading})));return B.useEffect((()=>{o(),onUiLoaded((()=>{n(!1),ue.success("🤯 Lobe Theme loading")})),onUiTabChange((()=>{r()}))}),[]),Q.jsxs(B.Suspense,{fallback:"loading...",children:[Q.jsxs(yue,{children:[Q.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),Q.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),Q.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),Q.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/site.webmanifest",rel:"manifest"}),Q.jsx("meta",{content:"Stable Diffusion · LobeHub",name:"apple-mobile-web-app-title"}),Q.jsx("meta",{content:"Stable Diffusion · LobeHub",name:"application-name"}),Q.jsx("meta",{content:"#000000",name:"msapplication-TileColor"}),Q.jsx("meta",{content:"#000000",name:"theme-color"}),Q.jsx("link",{href:xue,rel:"manifest"})]}),Q.jsx(Jee,{children:!1===i&&!1===t?e:Q.jsx(Kte,{})})]})})),kue=()=>Q.jsx(Sue,{children:Q.jsx(oce,{})});void 0===window.global&&(window.global=window);window.location.href.includes("dev")&&!0||document.addEventListener("DOMContentLoaded",(()=>{var e,t;ue.start("🤯 Lobe Theme load in production");const n=document.createElement("div");n.setAttribute("id","root");try{null==(e=gradioApp())||e.append(n)}catch{null==(t=document.querySelector("gradio-app"))||t.append(n)}xd(n).render(Q.jsx(kue,{}))}),{once:!0});
|
||
function __vite__mapDeps(indexes) {
|
||
if (!__vite__mapDeps.viteFileDeps) {
|
||
__vite__mapDeps.viteFileDeps = []
|
||
}
|
||
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
||
} |