onchain-uikit 3.9.4-alpha40 → 3.9.4-alpha41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/index.cjs.js +1 -708
  2. package/dist/index.es.js +9 -60316
  3. package/dist/index.umd.js +1 -812
  4. package/lib/src/app/main/model/context.d.ts +9 -7
  5. package/lib/src/components/PlmIcon/index.d.ts +30 -0
  6. package/lib/src/components/PlmIcon/index.stories.d.ts +15 -0
  7. package/lib/src/components/PlmLoading/PlmLoading.stories.d.ts +14 -0
  8. package/lib/src/components/PlmLoading/index.d.ts +7 -0
  9. package/lib/src/components/PlmLoadingSkCube/PlmLoadingSkCube.stories.d.ts +14 -0
  10. package/lib/src/components/PlmLoadingSkCube/index.d.ts +6 -0
  11. package/lib/src/components/PlmMarkdown/PlmLoading.stories.d.ts +14 -0
  12. package/lib/src/components/PlmMarkdown/index.d.ts +15 -0
  13. package/lib/src/components/PlmMosaic/index.d.ts +5 -0
  14. package/lib/src/components/PlmMosaic/index.stories.d.ts +14 -0
  15. package/lib/src/components/PlmSelect/index.d.ts +20 -0
  16. package/lib/src/components/PlmSelect/index.stories.d.ts +21 -0
  17. package/lib/src/extend/ButtonAuth.d.ts +11 -0
  18. package/lib/src/extend/Ti5ButtonAuth.d.ts +6 -0
  19. package/lib/src/index.d.ts +2 -80
  20. package/lib/src/language/translate.d.ts +3 -4
  21. package/lib/src/stories/Button.d.ts +14 -0
  22. package/lib/src/stories/Button.stories.d.ts +23 -0
  23. package/lib/src/stories/Header.d.ts +11 -0
  24. package/lib/src/stories/Header.stories.d.ts +18 -0
  25. package/lib/src/stories/OnChainProvider.d.ts +15 -0
  26. package/lib/src/stories/Page.d.ts +2 -0
  27. package/lib/src/stories/Page.stories.d.ts +12 -0
  28. package/lib/src/stories/PlmMosaic.stories.d.ts +14 -0
  29. package/lib/src/stories/PlmSelect/PlmSelect.stories.d.ts +21 -0
  30. package/lib/src/stories/PlmSelect/index.d.ts +20 -0
  31. package/lib/src/stories/XsButton.d.ts +22 -0
  32. package/lib/src/stories/XsButton.stories.d.ts +14 -0
  33. package/package.json +1 -1
  34. package/dist/onchain-uikit.css +0 -10
  35. package/dist/xlsx-C9f7-NIf.mjs +0 -24768
  36. package/dist/xlsx-DtQJwEPb.js +0 -105
  37. package/lib/src/components/PlmSearchSelect/index.d.ts +0 -18
package/dist/index.cjs.js CHANGED
@@ -1,708 +1 @@
1
- "use strict";var qj=Object.defineProperty;var Wj=(e,t,r)=>t in e?qj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Dr=(e,t,r)=>Wj(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react"),ue=require("antd"),lo=require("react-dom");function JO(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const P=JO(A),QO=JO(lo);var Mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yj(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var i0={exports:{}},Fc={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var fS;function Gj(){if(fS)return Fc;fS=1;var e=A,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,l){var h,d={},g=null,b=null;l!==void 0&&(g=""+l),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(b=u.ref);for(h in u)n.call(u,h)&&!i.hasOwnProperty(h)&&(d[h]=u[h]);if(s&&s.defaultProps)for(h in u=s.defaultProps,u)d[h]===void 0&&(d[h]=u[h]);return{$$typeof:t,type:s,key:g,ref:b,props:d,_owner:a.current}}return Fc.Fragment=r,Fc.jsx=o,Fc.jsxs=o,Fc}var jc={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var hS;function Kj(){return hS||(hS=1,process.env.NODE_ENV!=="production"&&function(){var e=A,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,w="@@iterator";function S(Z){if(Z===null||typeof Z!="object")return null;var Se=y&&Z[y]||Z[w];return typeof Se=="function"?Se:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(Z){{for(var Se=arguments.length,Ae=new Array(Se>1?Se-1:0),Ge=1;Ge<Se;Ge++)Ae[Ge-1]=arguments[Ge];C("error",Z,Ae)}}function C(Z,Se,Ae){{var Ge=E.ReactDebugCurrentFrame,at=Ge.getStackAddendum();at!==""&&(Se+="%s",Ae=Ae.concat([at]));var ht=Ae.map(function(it){return String(it)});ht.unshift("Warning: "+Se),Function.prototype.apply.call(console[Z],console,ht)}}var f=!1,p=!1,v=!1,x=!1,k=!1,O;O=Symbol.for("react.module.reference");function $(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===n||Z===i||k||Z===a||Z===l||Z===h||x||Z===b||f||p||v||typeof Z=="object"&&Z!==null&&(Z.$$typeof===g||Z.$$typeof===d||Z.$$typeof===o||Z.$$typeof===s||Z.$$typeof===u||Z.$$typeof===O||Z.getModuleId!==void 0))}function D(Z,Se,Ae){var Ge=Z.displayName;if(Ge)return Ge;var at=Se.displayName||Se.name||"";return at!==""?Ae+"("+at+")":Ae}function V(Z){return Z.displayName||"Context"}function I(Z){if(Z==null)return null;if(typeof Z.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Z=="function")return Z.displayName||Z.name||null;if(typeof Z=="string")return Z;switch(Z){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case l:return"Suspense";case h:return"SuspenseList"}if(typeof Z=="object")switch(Z.$$typeof){case s:var Se=Z;return V(Se)+".Consumer";case o:var Ae=Z;return V(Ae._context)+".Provider";case u:return D(Z,Z.render,"ForwardRef");case d:var Ge=Z.displayName||null;return Ge!==null?Ge:I(Z.type)||"Memo";case g:{var at=Z,ht=at._payload,it=at._init;try{return I(it(ht))}catch{return null}}}return null}var N=Object.assign,F=0,T,M,j,H,z,U,G;function X(){}X.__reactDisabledLog=!0;function K(){{if(F===0){T=console.log,M=console.info,j=console.warn,H=console.error,z=console.group,U=console.groupCollapsed,G=console.groupEnd;var Z={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:Z,log:Z,warn:Z,error:Z,group:Z,groupCollapsed:Z,groupEnd:Z})}F++}}function ne(){{if(F--,F===0){var Z={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},Z,{value:T}),info:N({},Z,{value:M}),warn:N({},Z,{value:j}),error:N({},Z,{value:H}),group:N({},Z,{value:z}),groupCollapsed:N({},Z,{value:U}),groupEnd:N({},Z,{value:G})})}F<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=E.ReactCurrentDispatcher,ie;function de(Z,Se,Ae){{if(ie===void 0)try{throw Error()}catch(at){var Ge=at.stack.trim().match(/\n( *(at )?)/);ie=Ge&&Ge[1]||""}return`
18
- `+ie+Z}}var pe=!1,be;{var me=typeof WeakMap=="function"?WeakMap:Map;be=new me}function ee(Z,Se){if(!Z||pe)return"";{var Ae=be.get(Z);if(Ae!==void 0)return Ae}var Ge;pe=!0;var at=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ht;ht=ae.current,ae.current=null,K();try{if(Se){var it=function(){throw Error()};if(Object.defineProperty(it.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(it,[])}catch(vt){Ge=vt}Reflect.construct(Z,[],it)}else{try{it.call()}catch(vt){Ge=vt}Z.call(it.prototype)}}else{try{throw Error()}catch(vt){Ge=vt}Z()}}catch(vt){if(vt&&Ge&&typeof vt.stack=="string"){for(var wt=vt.stack.split(`
19
- `),dr=Ge.stack.split(`
20
- `),Ft=wt.length-1,Lt=dr.length-1;Ft>=1&&Lt>=0&&wt[Ft]!==dr[Lt];)Lt--;for(;Ft>=1&&Lt>=0;Ft--,Lt--)if(wt[Ft]!==dr[Lt]){if(Ft!==1||Lt!==1)do if(Ft--,Lt--,Lt<0||wt[Ft]!==dr[Lt]){var Ie=`
21
- `+wt[Ft].replace(" at new "," at ");return Z.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",Z.displayName)),typeof Z=="function"&&be.set(Z,Ie),Ie}while(Ft>=1&&Lt>=0);break}}}finally{pe=!1,ae.current=ht,ne(),Error.prepareStackTrace=at}var We=Z?Z.displayName||Z.name:"",xt=We?de(We):"";return typeof Z=="function"&&be.set(Z,xt),xt}function ve(Z,Se,Ae){return ee(Z,!1)}function se(Z){var Se=Z.prototype;return!!(Se&&Se.isReactComponent)}function fe(Z,Se,Ae){if(Z==null)return"";if(typeof Z=="function")return ee(Z,se(Z));if(typeof Z=="string")return de(Z);switch(Z){case l:return de("Suspense");case h:return de("SuspenseList")}if(typeof Z=="object")switch(Z.$$typeof){case u:return ve(Z.render);case d:return fe(Z.type,Se,Ae);case g:{var Ge=Z,at=Ge._payload,ht=Ge._init;try{return fe(ht(at),Se,Ae)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,ke={},Te=E.ReactDebugCurrentFrame;function xe(Z){if(Z){var Se=Z._owner,Ae=fe(Z.type,Z._source,Se?Se.type:null);Te.setExtraStackFrame(Ae)}else Te.setExtraStackFrame(null)}function $e(Z,Se,Ae,Ge,at){{var ht=Function.call.bind(he);for(var it in Z)if(ht(Z,it)){var wt=void 0;try{if(typeof Z[it]!="function"){var dr=Error((Ge||"React class")+": "+Ae+" type `"+it+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof Z[it]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw dr.name="Invariant Violation",dr}wt=Z[it](Se,it,Ge,Ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ft){wt=Ft}wt&&!(wt instanceof Error)&&(xe(at),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ge||"React class",Ae,it,typeof wt),xe(null)),wt instanceof Error&&!(wt.message in ke)&&(ke[wt.message]=!0,xe(at),_("Failed %s type: %s",Ae,wt.message),xe(null))}}}var Pe=Array.isArray;function Ne(Z){return Pe(Z)}function Ee(Z){{var Se=typeof Symbol=="function"&&Symbol.toStringTag,Ae=Se&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return Ae}}function Fe(Z){try{return rt(Z),!1}catch{return!0}}function rt(Z){return""+Z}function dt(Z){if(Fe(Z))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee(Z)),rt(Z)}var ct=E.ReactCurrentOwner,bt={key:!0,ref:!0,__self:!0,__source:!0},gt,Qe;function _t(Z){if(he.call(Z,"ref")){var Se=Object.getOwnPropertyDescriptor(Z,"ref").get;if(Se&&Se.isReactWarning)return!1}return Z.ref!==void 0}function It(Z){if(he.call(Z,"key")){var Se=Object.getOwnPropertyDescriptor(Z,"key").get;if(Se&&Se.isReactWarning)return!1}return Z.key!==void 0}function ft(Z,Se){typeof Z.ref=="string"&&ct.current}function Be(Z,Se){{var Ae=function(){gt||(gt=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Se))};Ae.isReactWarning=!0,Object.defineProperty(Z,"key",{get:Ae,configurable:!0})}}function Ot(Z,Se){{var Ae=function(){Qe||(Qe=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Se))};Ae.isReactWarning=!0,Object.defineProperty(Z,"ref",{get:Ae,configurable:!0})}}var Ve=function(Z,Se,Ae,Ge,at,ht,it){var wt={$$typeof:t,type:Z,key:Se,ref:Ae,props:it,_owner:ht};return wt._store={},Object.defineProperty(wt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(wt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ge}),Object.defineProperty(wt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:at}),Object.freeze&&(Object.freeze(wt.props),Object.freeze(wt)),wt};function Ke(Z,Se,Ae,Ge,at){{var ht,it={},wt=null,dr=null;Ae!==void 0&&(dt(Ae),wt=""+Ae),It(Se)&&(dt(Se.key),wt=""+Se.key),_t(Se)&&(dr=Se.ref,ft(Se,at));for(ht in Se)he.call(Se,ht)&&!bt.hasOwnProperty(ht)&&(it[ht]=Se[ht]);if(Z&&Z.defaultProps){var Ft=Z.defaultProps;for(ht in Ft)it[ht]===void 0&&(it[ht]=Ft[ht])}if(wt||dr){var Lt=typeof Z=="function"?Z.displayName||Z.name||"Unknown":Z;wt&&Be(it,Lt),dr&&Ot(it,Lt)}return Ve(Z,wt,dr,at,Ge,ct.current,it)}}var Rt=E.ReactCurrentOwner,qt=E.ReactDebugCurrentFrame;function Pr(Z){if(Z){var Se=Z._owner,Ae=fe(Z.type,Z._source,Se?Se.type:null);qt.setExtraStackFrame(Ae)}else qt.setExtraStackFrame(null)}var gr;gr=!1;function Br(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function wr(){{if(Rt.current){var Z=I(Rt.current.type);if(Z)return`
22
-
23
- Check the render method of \``+Z+"`."}return""}}function cr(Z){return""}var kr={};function Vt(Z){{var Se=wr();if(!Se){var Ae=typeof Z=="string"?Z:Z.displayName||Z.name;Ae&&(Se=`
24
-
25
- Check the top-level render call using <`+Ae+">.")}return Se}}function nt(Z,Se){{if(!Z._store||Z._store.validated||Z.key!=null)return;Z._store.validated=!0;var Ae=Vt(Se);if(kr[Ae])return;kr[Ae]=!0;var Ge="";Z&&Z._owner&&Z._owner!==Rt.current&&(Ge=" It was passed a child from "+I(Z._owner.type)+"."),Pr(Z),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Ae,Ge),Pr(null)}}function Ye(Z,Se){{if(typeof Z!="object")return;if(Ne(Z))for(var Ae=0;Ae<Z.length;Ae++){var Ge=Z[Ae];Br(Ge)&&nt(Ge,Se)}else if(Br(Z))Z._store&&(Z._store.validated=!0);else if(Z){var at=S(Z);if(typeof at=="function"&&at!==Z.entries)for(var ht=at.call(Z),it;!(it=ht.next()).done;)Br(it.value)&&nt(it.value,Se)}}}function Ue(Z){{var Se=Z.type;if(Se==null||typeof Se=="string")return;var Ae;if(typeof Se=="function")Ae=Se.propTypes;else if(typeof Se=="object"&&(Se.$$typeof===u||Se.$$typeof===d))Ae=Se.propTypes;else return;if(Ae){var Ge=I(Se);$e(Ae,Z.props,"prop",Ge,Z)}else if(Se.PropTypes!==void 0&&!gr){gr=!0;var at=I(Se);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",at||"Unknown")}typeof Se.getDefaultProps=="function"&&!Se.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function zt(Z){{for(var Se=Object.keys(Z.props),Ae=0;Ae<Se.length;Ae++){var Ge=Se[Ae];if(Ge!=="children"&&Ge!=="key"){Pr(Z),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ge),Pr(null);break}}Z.ref!==null&&(Pr(Z),_("Invalid attribute `ref` supplied to `React.Fragment`."),Pr(null))}}var er={};function Ze(Z,Se,Ae,Ge,at,ht){{var it=$(Z);if(!it){var wt="";(Z===void 0||typeof Z=="object"&&Z!==null&&Object.keys(Z).length===0)&&(wt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var dr=cr();dr?wt+=dr:wt+=wr();var Ft;Z===null?Ft="null":Ne(Z)?Ft="array":Z!==void 0&&Z.$$typeof===t?(Ft="<"+(I(Z.type)||"Unknown")+" />",wt=" Did you accidentally export a JSX literal instead of a component?"):Ft=typeof Z,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ft,wt)}var Lt=Ke(Z,Se,Ae,at,ht);if(Lt==null)return Lt;if(it){var Ie=Se.children;if(Ie!==void 0)if(Ge)if(Ne(Ie)){for(var We=0;We<Ie.length;We++)Ye(Ie[We],Z);Object.freeze&&Object.freeze(Ie)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(Ie,Z)}if(he.call(Se,"key")){var xt=I(Z),vt=Object.keys(Se).filter(function(tn){return tn!=="key"}),ir=vt.length>0?"{key: someKey, "+vt.join(": ..., ")+": ...}":"{key: someKey}";if(!er[xt+ir]){var xn=vt.length>0?"{"+vt.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
26
- let props = %s;
27
- <%s {...props} />
28
- React keys must be passed directly to JSX without using spread:
29
- let props = %s;
30
- <%s key={someKey} {...props} />`,ir,xt,xn,xt),er[xt+ir]=!0}}return Z===n?zt(Lt):Ue(Lt),Lt}}function De(Z,Se,Ae){return Ze(Z,Se,Ae,!0)}function qe(Z,Se,Ae){return Ze(Z,Se,Ae,!1)}var et=qe,Je=De;jc.Fragment=n,jc.jsx=et,jc.jsxs=Je}()),jc}var pS;function Xj(){return pS||(pS=1,process.env.NODE_ENV==="production"?i0.exports=Gj():i0.exports=Kj()),i0.exports}var B=Xj();const Vf=A.createContext({});var Lc={},rv={exports:{}},mS;function Ls(){return mS||(mS=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rv)),rv.exports}var zc={},gS;function Zj(){if(gS)return zc;gS=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.default=void 0;var e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};return zc.default=e,zc}var Bc={},Hc={},Vc={},nv={exports:{}},av={exports:{}},iv={exports:{}},ov={exports:{}},vS;function e5(){return vS||(vS=1,function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ov)),ov.exports}var sv={exports:{}},bS;function Jj(){return bS||(bS=1,function(e){var t=e5().default;function r(n,a){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,a||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(sv)),sv.exports}var yS;function Qj(){return yS||(yS=1,function(e){var t=e5().default,r=Jj();function n(a){var i=r(a,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(iv)),iv.exports}var _S;function eL(){return _S||(_S=1,function(e){var t=Qj();function r(n,a,i){return(a=t(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(av)),av.exports}var wS;function t5(){return wS||(wS=1,function(e){var t=eL();function r(a,i){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);i&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),o.push.apply(o,s)}return o}function n(a){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){t(a,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(o,s))})}return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(nv)),nv.exports}var Uc={},xS;function r5(){return xS||(xS=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.commonLocale=void 0,Uc.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Uc}var SS;function tL(){if(SS)return Vc;SS=1;var e=Ls().default;Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.default=void 0;var t=e(t5()),r=r5(),n=(0,t.default)((0,t.default)({},r.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return Vc.default=n,Vc}var qc={},CS;function n5(){if(CS)return qc;CS=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.default=void 0;const e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return qc.default=e,qc}var ES;function a5(){if(ES)return Hc;ES=1;var e=Ls().default;Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.default=void 0;var t=e(tL()),r=e(n5());const n={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},t.default),timePickerLocale:Object.assign({},r.default)};return n.lang.ok="确定",Hc.default=n,Hc}var OS;function rL(){if(OS)return Bc;OS=1;var e=Ls().default;Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.default=void 0;var t=e(a5());return Bc.default=t.default,Bc}var RS;function i5(){if(RS)return Lc;RS=1;var e=Ls().default;Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.default=void 0;var t=e(Zj()),r=e(rL()),n=e(a5()),a=e(n5());const i="${label}不是一个有效的${type}",o={locale:"zh-cn",Pagination:t.default,DatePicker:n.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return Lc.default=o,Lc}var nL=i5();const aL=$n(nL);var Vd={exports:{}};/**
31
- * @license
32
- * Lodash <https://lodash.com/>
33
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
34
- * Released under MIT license <https://lodash.com/license>
35
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
36
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
37
- */var iL=Vd.exports,TS;function oL(){return TS||(TS=1,function(e,t){(function(){var r,n="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",l=500,h="__lodash_placeholder__",d=1,g=2,b=4,y=1,w=2,S=1,E=2,_=4,C=8,f=16,p=32,v=64,x=128,k=256,O=512,$=30,D="...",V=800,I=16,N=1,F=2,T=3,M=1/0,j=9007199254740991,H=17976931348623157e292,z=NaN,U=4294967295,G=U-1,X=U>>>1,K=[["ary",x],["bind",S],["bindKey",E],["curry",C],["curryRight",f],["flip",O],["partial",p],["partialRight",v],["rearg",k]],ne="[object Arguments]",ae="[object Array]",ie="[object AsyncFunction]",de="[object Boolean]",pe="[object Date]",be="[object DOMException]",me="[object Error]",ee="[object Function]",ve="[object GeneratorFunction]",se="[object Map]",fe="[object Number]",he="[object Null]",ke="[object Object]",Te="[object Promise]",xe="[object Proxy]",$e="[object RegExp]",Pe="[object Set]",Ne="[object String]",Ee="[object Symbol]",Fe="[object Undefined]",rt="[object WeakMap]",dt="[object WeakSet]",ct="[object ArrayBuffer]",bt="[object DataView]",gt="[object Float32Array]",Qe="[object Float64Array]",_t="[object Int8Array]",It="[object Int16Array]",ft="[object Int32Array]",Be="[object Uint8Array]",Ot="[object Uint8ClampedArray]",Ve="[object Uint16Array]",Ke="[object Uint32Array]",Rt=/\b__p \+= '';/g,qt=/\b(__p \+=) '' \+/g,Pr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gr=/&(?:amp|lt|gt|quot|#39);/g,Br=/[&<>"']/g,wr=RegExp(gr.source),cr=RegExp(Br.source),kr=/<%-([\s\S]+?)%>/g,Vt=/<%([\s\S]+?)%>/g,nt=/<%=([\s\S]+?)%>/g,Ye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ue=/^\w*$/,zt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,er=/[\\^$.*+?()[\]{}|]/g,Ze=RegExp(er.source),De=/^\s+/,qe=/\s/,et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Je=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,Se=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ae=/[()=,{}\[\]\/\s]/,Ge=/\\(\\)?/g,at=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,dr=/^\[object .+?Constructor\]$/,Ft=/^0o[0-7]+$/i,Lt=/^(?:0|[1-9]\d*)$/,Ie=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,We=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,vt="\\ud800-\\udfff",ir="\\u0300-\\u036f",xn="\\ufe20-\\ufe2f",tn="\\u20d0-\\u20ff",An=ir+xn+tn,Sn="\\u2700-\\u27bf",aa="a-z\\xdf-\\xf6\\xf8-\\xff",mt="\\xac\\xb1\\xd7\\xf7",jt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vr="\\u2000-\\u206f",Dn=" \\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",rn="A-Z\\xc0-\\xd6\\xd8-\\xde",Yn="\\ufe0e\\ufe0f",yi=mt+jt+vr+Dn,Za="['’]",pa="["+vt+"]",wo="["+yi+"]",Oa="["+An+"]",Wt="\\d+",Mt="["+Sn+"]",nn="["+aa+"]",an="[^"+vt+yi+Wt+Sn+aa+rn+"]",Fr="\\ud83c[\\udffb-\\udfff]",Yr="(?:"+Oa+"|"+Fr+")",Gn="[^"+vt+"]",Cn="(?:\\ud83c[\\udde6-\\uddff]){2}",Kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Mn="["+rn+"]",ma="\\u200d",Ra="(?:"+nn+"|"+an+")",Nn="(?:"+Mn+"|"+an+")",Lu="(?:"+Za+"(?:d|ll|m|re|s|t|ve))?",ia="(?:"+Za+"(?:D|LL|M|RE|S|T|VE))?",Bs=Yr+"?",xo="["+Yn+"]?",Yi="(?:"+ma+"(?:"+[Gn,Cn,Kn].join("|")+")"+xo+Bs+")*",Gi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vs=xo+Bs+Yi,bc="(?:"+[Mt,Cn,Kn].join("|")+")"+Vs,yc="(?:"+[Gn+Oa+"?",Oa,Cn,Kn,pa].join("|")+")",_c=RegExp(Za,"g"),ut=RegExp(Oa,"g"),Pt=RegExp(Fr+"(?="+Fr+")|"+yc+Vs,"g"),Lr=RegExp([Mn+"?"+nn+"+"+Lu+"(?="+[wo,Mn,"$"].join("|")+")",Nn+"+"+ia+"(?="+[wo,Mn+Ra,"$"].join("|")+")",Mn+"?"+Ra+"+"+Lu,Mn+"+"+ia,Hs,Gi,Wt,bc].join("|"),"g"),on=RegExp("["+ma+vt+An+Yn+"]"),Ur=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wc=-1,Ar={};Ar[gt]=Ar[Qe]=Ar[_t]=Ar[It]=Ar[ft]=Ar[Be]=Ar[Ot]=Ar[Ve]=Ar[Ke]=!0,Ar[ne]=Ar[ae]=Ar[ct]=Ar[de]=Ar[bt]=Ar[pe]=Ar[me]=Ar[ee]=Ar[se]=Ar[fe]=Ar[ke]=Ar[$e]=Ar[Pe]=Ar[Ne]=Ar[rt]=!1;var br={};br[ne]=br[ae]=br[ct]=br[bt]=br[de]=br[pe]=br[gt]=br[Qe]=br[_t]=br[It]=br[ft]=br[se]=br[fe]=br[ke]=br[$e]=br[Pe]=br[Ne]=br[Ee]=br[Be]=br[Ot]=br[Ve]=br[Ke]=!0,br[me]=br[ee]=br[rt]=!1;var s9={À:"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"},u9={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},l9={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},c9={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},d9=parseFloat,f9=parseInt,ix=typeof Mi=="object"&&Mi&&Mi.Object===Object&&Mi,h9=typeof self=="object"&&self&&self.Object===Object&&self,In=ix||h9||Function("return this")(),Zm=t&&!t.nodeType&&t,Us=Zm&&!0&&e&&!e.nodeType&&e,ox=Us&&Us.exports===Zm,Jm=ox&&ix.process,Ja=function(){try{var le=Us&&Us.require&&Us.require("util").types;return le||Jm&&Jm.binding&&Jm.binding("util")}catch{}}(),sx=Ja&&Ja.isArrayBuffer,ux=Ja&&Ja.isDate,lx=Ja&&Ja.isMap,cx=Ja&&Ja.isRegExp,dx=Ja&&Ja.isSet,fx=Ja&&Ja.isTypedArray;function Ta(le,Ce,ye){switch(ye.length){case 0:return le.call(Ce);case 1:return le.call(Ce,ye[0]);case 2:return le.call(Ce,ye[0],ye[1]);case 3:return le.call(Ce,ye[0],ye[1],ye[2])}return le.apply(Ce,ye)}function p9(le,Ce,ye,ot){for(var Bt=-1,yr=le==null?0:le.length;++Bt<yr;){var mn=le[Bt];Ce(ot,mn,ye(mn),le)}return ot}function Qa(le,Ce){for(var ye=-1,ot=le==null?0:le.length;++ye<ot&&Ce(le[ye],ye,le)!==!1;);return le}function m9(le,Ce){for(var ye=le==null?0:le.length;ye--&&Ce(le[ye],ye,le)!==!1;);return le}function hx(le,Ce){for(var ye=-1,ot=le==null?0:le.length;++ye<ot;)if(!Ce(le[ye],ye,le))return!1;return!0}function cs(le,Ce){for(var ye=-1,ot=le==null?0:le.length,Bt=0,yr=[];++ye<ot;){var mn=le[ye];Ce(mn,ye,le)&&(yr[Bt++]=mn)}return yr}function _h(le,Ce){var ye=le==null?0:le.length;return!!ye&&Bu(le,Ce,0)>-1}function Qm(le,Ce,ye){for(var ot=-1,Bt=le==null?0:le.length;++ot<Bt;)if(ye(Ce,le[ot]))return!0;return!1}function qr(le,Ce){for(var ye=-1,ot=le==null?0:le.length,Bt=Array(ot);++ye<ot;)Bt[ye]=Ce(le[ye],ye,le);return Bt}function ds(le,Ce){for(var ye=-1,ot=Ce.length,Bt=le.length;++ye<ot;)le[Bt+ye]=Ce[ye];return le}function eg(le,Ce,ye,ot){var Bt=-1,yr=le==null?0:le.length;for(ot&&yr&&(ye=le[++Bt]);++Bt<yr;)ye=Ce(ye,le[Bt],Bt,le);return ye}function g9(le,Ce,ye,ot){var Bt=le==null?0:le.length;for(ot&&Bt&&(ye=le[--Bt]);Bt--;)ye=Ce(ye,le[Bt],Bt,le);return ye}function tg(le,Ce){for(var ye=-1,ot=le==null?0:le.length;++ye<ot;)if(Ce(le[ye],ye,le))return!0;return!1}var v9=rg("length");function b9(le){return le.split("")}function y9(le){return le.match(Se)||[]}function px(le,Ce,ye){var ot;return ye(le,function(Bt,yr,mn){if(Ce(Bt,yr,mn))return ot=yr,!1}),ot}function wh(le,Ce,ye,ot){for(var Bt=le.length,yr=ye+(ot?1:-1);ot?yr--:++yr<Bt;)if(Ce(le[yr],yr,le))return yr;return-1}function Bu(le,Ce,ye){return Ce===Ce?$9(le,Ce,ye):wh(le,mx,ye)}function _9(le,Ce,ye,ot){for(var Bt=ye-1,yr=le.length;++Bt<yr;)if(ot(le[Bt],Ce))return Bt;return-1}function mx(le){return le!==le}function gx(le,Ce){var ye=le==null?0:le.length;return ye?ag(le,Ce)/ye:z}function rg(le){return function(Ce){return Ce==null?r:Ce[le]}}function ng(le){return function(Ce){return le==null?r:le[Ce]}}function vx(le,Ce,ye,ot,Bt){return Bt(le,function(yr,mn,jr){ye=ot?(ot=!1,yr):Ce(ye,yr,mn,jr)}),ye}function w9(le,Ce){var ye=le.length;for(le.sort(Ce);ye--;)le[ye]=le[ye].value;return le}function ag(le,Ce){for(var ye,ot=-1,Bt=le.length;++ot<Bt;){var yr=Ce(le[ot]);yr!==r&&(ye=ye===r?yr:ye+yr)}return ye}function ig(le,Ce){for(var ye=-1,ot=Array(le);++ye<le;)ot[ye]=Ce(ye);return ot}function x9(le,Ce){return qr(Ce,function(ye){return[ye,le[ye]]})}function bx(le){return le&&le.slice(0,xx(le)+1).replace(De,"")}function Pa(le){return function(Ce){return le(Ce)}}function og(le,Ce){return qr(Ce,function(ye){return le[ye]})}function xc(le,Ce){return le.has(Ce)}function yx(le,Ce){for(var ye=-1,ot=le.length;++ye<ot&&Bu(Ce,le[ye],0)>-1;);return ye}function _x(le,Ce){for(var ye=le.length;ye--&&Bu(Ce,le[ye],0)>-1;);return ye}function S9(le,Ce){for(var ye=le.length,ot=0;ye--;)le[ye]===Ce&&++ot;return ot}var C9=ng(s9),E9=ng(u9);function O9(le){return"\\"+c9[le]}function R9(le,Ce){return le==null?r:le[Ce]}function Hu(le){return on.test(le)}function T9(le){return Ur.test(le)}function P9(le){for(var Ce,ye=[];!(Ce=le.next()).done;)ye.push(Ce.value);return ye}function sg(le){var Ce=-1,ye=Array(le.size);return le.forEach(function(ot,Bt){ye[++Ce]=[Bt,ot]}),ye}function wx(le,Ce){return function(ye){return le(Ce(ye))}}function fs(le,Ce){for(var ye=-1,ot=le.length,Bt=0,yr=[];++ye<ot;){var mn=le[ye];(mn===Ce||mn===h)&&(le[ye]=h,yr[Bt++]=ye)}return yr}function xh(le){var Ce=-1,ye=Array(le.size);return le.forEach(function(ot){ye[++Ce]=ot}),ye}function k9(le){var Ce=-1,ye=Array(le.size);return le.forEach(function(ot){ye[++Ce]=[ot,ot]}),ye}function $9(le,Ce,ye){for(var ot=ye-1,Bt=le.length;++ot<Bt;)if(le[ot]===Ce)return ot;return-1}function A9(le,Ce,ye){for(var ot=ye+1;ot--;)if(le[ot]===Ce)return ot;return ot}function Vu(le){return Hu(le)?M9(le):v9(le)}function _i(le){return Hu(le)?N9(le):b9(le)}function xx(le){for(var Ce=le.length;Ce--&&qe.test(le.charAt(Ce)););return Ce}var D9=ng(l9);function M9(le){for(var Ce=Pt.lastIndex=0;Pt.test(le);)++Ce;return Ce}function N9(le){return le.match(Pt)||[]}function I9(le){return le.match(Lr)||[]}var F9=function le(Ce){Ce=Ce==null?In:Uu.defaults(In.Object(),Ce,Uu.pick(In,zu));var ye=Ce.Array,ot=Ce.Date,Bt=Ce.Error,yr=Ce.Function,mn=Ce.Math,jr=Ce.Object,ug=Ce.RegExp,j9=Ce.String,ei=Ce.TypeError,Sh=ye.prototype,L9=yr.prototype,qu=jr.prototype,Ch=Ce["__core-js_shared__"],Eh=L9.toString,$r=qu.hasOwnProperty,z9=0,Sx=function(){var c=/[^.]+$/.exec(Ch&&Ch.keys&&Ch.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Oh=qu.toString,B9=Eh.call(jr),H9=In._,V9=ug("^"+Eh.call($r).replace(er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rh=ox?Ce.Buffer:r,hs=Ce.Symbol,Th=Ce.Uint8Array,Cx=Rh?Rh.allocUnsafe:r,Ph=wx(jr.getPrototypeOf,jr),Ex=jr.create,Ox=qu.propertyIsEnumerable,kh=Sh.splice,Rx=hs?hs.isConcatSpreadable:r,Sc=hs?hs.iterator:r,qs=hs?hs.toStringTag:r,$h=function(){try{var c=Xs(jr,"defineProperty");return c({},"",{}),c}catch{}}(),U9=Ce.clearTimeout!==In.clearTimeout&&Ce.clearTimeout,q9=ot&&ot.now!==In.Date.now&&ot.now,W9=Ce.setTimeout!==In.setTimeout&&Ce.setTimeout,Ah=mn.ceil,Dh=mn.floor,lg=jr.getOwnPropertySymbols,Y9=Rh?Rh.isBuffer:r,Tx=Ce.isFinite,G9=Sh.join,K9=wx(jr.keys,jr),gn=mn.max,Xn=mn.min,X9=ot.now,Z9=Ce.parseInt,Px=mn.random,J9=Sh.reverse,cg=Xs(Ce,"DataView"),Cc=Xs(Ce,"Map"),dg=Xs(Ce,"Promise"),Wu=Xs(Ce,"Set"),Ec=Xs(Ce,"WeakMap"),Oc=Xs(jr,"create"),Mh=Ec&&new Ec,Yu={},Q9=Zs(cg),eD=Zs(Cc),tD=Zs(dg),rD=Zs(Wu),nD=Zs(Ec),Nh=hs?hs.prototype:r,Rc=Nh?Nh.valueOf:r,kx=Nh?Nh.toString:r;function W(c){if(Qr(c)&&!Ht(c)&&!(c instanceof tr)){if(c instanceof ti)return c;if($r.call(c,"__wrapped__"))return $3(c)}return new ti(c)}var Gu=function(){function c(){}return function(m){if(!Gr(m))return{};if(Ex)return Ex(m);c.prototype=m;var R=new c;return c.prototype=r,R}}();function Ih(){}function ti(c,m){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=r}W.templateSettings={escape:kr,evaluate:Vt,interpolate:nt,variable:"",imports:{_:W}},W.prototype=Ih.prototype,W.prototype.constructor=W,ti.prototype=Gu(Ih.prototype),ti.prototype.constructor=ti;function tr(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function aD(){var c=new tr(this.__wrapped__);return c.__actions__=ga(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=ga(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=ga(this.__views__),c}function iD(){if(this.__filtered__){var c=new tr(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function oD(){var c=this.__wrapped__.value(),m=this.__dir__,R=Ht(c),L=m<0,q=R?c.length:0,Y=bM(0,q,this.__views__),te=Y.start,oe=Y.end,ce=oe-te,Oe=L?oe:te-1,Re=this.__iteratees__,Me=Re.length,Xe=0,yt=Xn(ce,this.__takeCount__);if(!R||!L&&q==ce&&yt==ce)return e3(c,this.__actions__);var $t=[];e:for(;ce--&&Xe<yt;){Oe+=m;for(var Kt=-1,At=c[Oe];++Kt<Me;){var Jt=Re[Kt],or=Jt.iteratee,Aa=Jt.type,ua=or(At);if(Aa==F)At=ua;else if(!ua){if(Aa==N)continue e;break e}}$t[Xe++]=At}return $t}tr.prototype=Gu(Ih.prototype),tr.prototype.constructor=tr;function Ws(c){var m=-1,R=c==null?0:c.length;for(this.clear();++m<R;){var L=c[m];this.set(L[0],L[1])}}function sD(){this.__data__=Oc?Oc(null):{},this.size=0}function uD(c){var m=this.has(c)&&delete this.__data__[c];return this.size-=m?1:0,m}function lD(c){var m=this.__data__;if(Oc){var R=m[c];return R===u?r:R}return $r.call(m,c)?m[c]:r}function cD(c){var m=this.__data__;return Oc?m[c]!==r:$r.call(m,c)}function dD(c,m){var R=this.__data__;return this.size+=this.has(c)?0:1,R[c]=Oc&&m===r?u:m,this}Ws.prototype.clear=sD,Ws.prototype.delete=uD,Ws.prototype.get=lD,Ws.prototype.has=cD,Ws.prototype.set=dD;function So(c){var m=-1,R=c==null?0:c.length;for(this.clear();++m<R;){var L=c[m];this.set(L[0],L[1])}}function fD(){this.__data__=[],this.size=0}function hD(c){var m=this.__data__,R=Fh(m,c);if(R<0)return!1;var L=m.length-1;return R==L?m.pop():kh.call(m,R,1),--this.size,!0}function pD(c){var m=this.__data__,R=Fh(m,c);return R<0?r:m[R][1]}function mD(c){return Fh(this.__data__,c)>-1}function gD(c,m){var R=this.__data__,L=Fh(R,c);return L<0?(++this.size,R.push([c,m])):R[L][1]=m,this}So.prototype.clear=fD,So.prototype.delete=hD,So.prototype.get=pD,So.prototype.has=mD,So.prototype.set=gD;function Co(c){var m=-1,R=c==null?0:c.length;for(this.clear();++m<R;){var L=c[m];this.set(L[0],L[1])}}function vD(){this.size=0,this.__data__={hash:new Ws,map:new(Cc||So),string:new Ws}}function bD(c){var m=Kh(this,c).delete(c);return this.size-=m?1:0,m}function yD(c){return Kh(this,c).get(c)}function _D(c){return Kh(this,c).has(c)}function wD(c,m){var R=Kh(this,c),L=R.size;return R.set(c,m),this.size+=R.size==L?0:1,this}Co.prototype.clear=vD,Co.prototype.delete=bD,Co.prototype.get=yD,Co.prototype.has=_D,Co.prototype.set=wD;function Ys(c){var m=-1,R=c==null?0:c.length;for(this.__data__=new Co;++m<R;)this.add(c[m])}function xD(c){return this.__data__.set(c,u),this}function SD(c){return this.__data__.has(c)}Ys.prototype.add=Ys.prototype.push=xD,Ys.prototype.has=SD;function wi(c){var m=this.__data__=new So(c);this.size=m.size}function CD(){this.__data__=new So,this.size=0}function ED(c){var m=this.__data__,R=m.delete(c);return this.size=m.size,R}function OD(c){return this.__data__.get(c)}function RD(c){return this.__data__.has(c)}function TD(c,m){var R=this.__data__;if(R instanceof So){var L=R.__data__;if(!Cc||L.length<a-1)return L.push([c,m]),this.size=++R.size,this;R=this.__data__=new Co(L)}return R.set(c,m),this.size=R.size,this}wi.prototype.clear=CD,wi.prototype.delete=ED,wi.prototype.get=OD,wi.prototype.has=RD,wi.prototype.set=TD;function $x(c,m){var R=Ht(c),L=!R&&Js(c),q=!R&&!L&&bs(c),Y=!R&&!L&&!q&&Ju(c),te=R||L||q||Y,oe=te?ig(c.length,j9):[],ce=oe.length;for(var Oe in c)(m||$r.call(c,Oe))&&!(te&&(Oe=="length"||q&&(Oe=="offset"||Oe=="parent")||Y&&(Oe=="buffer"||Oe=="byteLength"||Oe=="byteOffset")||To(Oe,ce)))&&oe.push(Oe);return oe}function Ax(c){var m=c.length;return m?c[xg(0,m-1)]:r}function PD(c,m){return Xh(ga(c),Gs(m,0,c.length))}function kD(c){return Xh(ga(c))}function fg(c,m,R){(R!==r&&!xi(c[m],R)||R===r&&!(m in c))&&Eo(c,m,R)}function Tc(c,m,R){var L=c[m];(!($r.call(c,m)&&xi(L,R))||R===r&&!(m in c))&&Eo(c,m,R)}function Fh(c,m){for(var R=c.length;R--;)if(xi(c[R][0],m))return R;return-1}function $D(c,m,R,L){return ps(c,function(q,Y,te){m(L,q,R(q),te)}),L}function Dx(c,m){return c&&Xi(m,En(m),c)}function AD(c,m){return c&&Xi(m,ba(m),c)}function Eo(c,m,R){m=="__proto__"&&$h?$h(c,m,{configurable:!0,enumerable:!0,value:R,writable:!0}):c[m]=R}function hg(c,m){for(var R=-1,L=m.length,q=ye(L),Y=c==null;++R<L;)q[R]=Y?r:Yg(c,m[R]);return q}function Gs(c,m,R){return c===c&&(R!==r&&(c=c<=R?c:R),m!==r&&(c=c>=m?c:m)),c}function ri(c,m,R,L,q,Y){var te,oe=m&d,ce=m&g,Oe=m&b;if(R&&(te=q?R(c,L,q,Y):R(c)),te!==r)return te;if(!Gr(c))return c;var Re=Ht(c);if(Re){if(te=_M(c),!oe)return ga(c,te)}else{var Me=Zn(c),Xe=Me==ee||Me==ve;if(bs(c))return n3(c,oe);if(Me==ke||Me==ne||Xe&&!q){if(te=ce||Xe?{}:x3(c),!oe)return ce?lM(c,AD(te,c)):uM(c,Dx(te,c))}else{if(!br[Me])return q?c:{};te=wM(c,Me,oe)}}Y||(Y=new wi);var yt=Y.get(c);if(yt)return yt;Y.set(c,te),Z3(c)?c.forEach(function(At){te.add(ri(At,m,R,At,c,Y))}):K3(c)&&c.forEach(function(At,Jt){te.set(Jt,ri(At,m,R,Jt,c,Y))});var $t=Oe?ce?Dg:Ag:ce?ba:En,Kt=Re?r:$t(c);return Qa(Kt||c,function(At,Jt){Kt&&(Jt=At,At=c[Jt]),Tc(te,Jt,ri(At,m,R,Jt,c,Y))}),te}function DD(c){var m=En(c);return function(R){return Mx(R,c,m)}}function Mx(c,m,R){var L=R.length;if(c==null)return!L;for(c=jr(c);L--;){var q=R[L],Y=m[q],te=c[q];if(te===r&&!(q in c)||!Y(te))return!1}return!0}function Nx(c,m,R){if(typeof c!="function")throw new ei(o);return Nc(function(){c.apply(r,R)},m)}function Pc(c,m,R,L){var q=-1,Y=_h,te=!0,oe=c.length,ce=[],Oe=m.length;if(!oe)return ce;R&&(m=qr(m,Pa(R))),L?(Y=Qm,te=!1):m.length>=a&&(Y=xc,te=!1,m=new Ys(m));e:for(;++q<oe;){var Re=c[q],Me=R==null?Re:R(Re);if(Re=L||Re!==0?Re:0,te&&Me===Me){for(var Xe=Oe;Xe--;)if(m[Xe]===Me)continue e;ce.push(Re)}else Y(m,Me,L)||ce.push(Re)}return ce}var ps=u3(Ki),Ix=u3(mg,!0);function MD(c,m){var R=!0;return ps(c,function(L,q,Y){return R=!!m(L,q,Y),R}),R}function jh(c,m,R){for(var L=-1,q=c.length;++L<q;){var Y=c[L],te=m(Y);if(te!=null&&(oe===r?te===te&&!$a(te):R(te,oe)))var oe=te,ce=Y}return ce}function ND(c,m,R,L){var q=c.length;for(R=Yt(R),R<0&&(R=-R>q?0:q+R),L=L===r||L>q?q:Yt(L),L<0&&(L+=q),L=R>L?0:Q3(L);R<L;)c[R++]=m;return c}function Fx(c,m){var R=[];return ps(c,function(L,q,Y){m(L,q,Y)&&R.push(L)}),R}function Fn(c,m,R,L,q){var Y=-1,te=c.length;for(R||(R=SM),q||(q=[]);++Y<te;){var oe=c[Y];m>0&&R(oe)?m>1?Fn(oe,m-1,R,L,q):ds(q,oe):L||(q[q.length]=oe)}return q}var pg=l3(),jx=l3(!0);function Ki(c,m){return c&&pg(c,m,En)}function mg(c,m){return c&&jx(c,m,En)}function Lh(c,m){return cs(m,function(R){return Po(c[R])})}function Ks(c,m){m=gs(m,c);for(var R=0,L=m.length;c!=null&&R<L;)c=c[Zi(m[R++])];return R&&R==L?c:r}function Lx(c,m,R){var L=m(c);return Ht(c)?L:ds(L,R(c))}function oa(c){return c==null?c===r?Fe:he:qs&&qs in jr(c)?vM(c):kM(c)}function gg(c,m){return c>m}function ID(c,m){return c!=null&&$r.call(c,m)}function FD(c,m){return c!=null&&m in jr(c)}function jD(c,m,R){return c>=Xn(m,R)&&c<gn(m,R)}function vg(c,m,R){for(var L=R?Qm:_h,q=c[0].length,Y=c.length,te=Y,oe=ye(Y),ce=1/0,Oe=[];te--;){var Re=c[te];te&&m&&(Re=qr(Re,Pa(m))),ce=Xn(Re.length,ce),oe[te]=!R&&(m||q>=120&&Re.length>=120)?new Ys(te&&Re):r}Re=c[0];var Me=-1,Xe=oe[0];e:for(;++Me<q&&Oe.length<ce;){var yt=Re[Me],$t=m?m(yt):yt;if(yt=R||yt!==0?yt:0,!(Xe?xc(Xe,$t):L(Oe,$t,R))){for(te=Y;--te;){var Kt=oe[te];if(!(Kt?xc(Kt,$t):L(c[te],$t,R)))continue e}Xe&&Xe.push($t),Oe.push(yt)}}return Oe}function LD(c,m,R,L){return Ki(c,function(q,Y,te){m(L,R(q),Y,te)}),L}function kc(c,m,R){m=gs(m,c),c=O3(c,m);var L=c==null?c:c[Zi(ai(m))];return L==null?r:Ta(L,c,R)}function zx(c){return Qr(c)&&oa(c)==ne}function zD(c){return Qr(c)&&oa(c)==ct}function BD(c){return Qr(c)&&oa(c)==pe}function $c(c,m,R,L,q){return c===m?!0:c==null||m==null||!Qr(c)&&!Qr(m)?c!==c&&m!==m:HD(c,m,R,L,$c,q)}function HD(c,m,R,L,q,Y){var te=Ht(c),oe=Ht(m),ce=te?ae:Zn(c),Oe=oe?ae:Zn(m);ce=ce==ne?ke:ce,Oe=Oe==ne?ke:Oe;var Re=ce==ke,Me=Oe==ke,Xe=ce==Oe;if(Xe&&bs(c)){if(!bs(m))return!1;te=!0,Re=!1}if(Xe&&!Re)return Y||(Y=new wi),te||Ju(c)?y3(c,m,R,L,q,Y):mM(c,m,ce,R,L,q,Y);if(!(R&y)){var yt=Re&&$r.call(c,"__wrapped__"),$t=Me&&$r.call(m,"__wrapped__");if(yt||$t){var Kt=yt?c.value():c,At=$t?m.value():m;return Y||(Y=new wi),q(Kt,At,R,L,Y)}}return Xe?(Y||(Y=new wi),gM(c,m,R,L,q,Y)):!1}function VD(c){return Qr(c)&&Zn(c)==se}function bg(c,m,R,L){var q=R.length,Y=q,te=!L;if(c==null)return!Y;for(c=jr(c);q--;){var oe=R[q];if(te&&oe[2]?oe[1]!==c[oe[0]]:!(oe[0]in c))return!1}for(;++q<Y;){oe=R[q];var ce=oe[0],Oe=c[ce],Re=oe[1];if(te&&oe[2]){if(Oe===r&&!(ce in c))return!1}else{var Me=new wi;if(L)var Xe=L(Oe,Re,ce,c,m,Me);if(!(Xe===r?$c(Re,Oe,y|w,L,Me):Xe))return!1}}return!0}function Bx(c){if(!Gr(c)||EM(c))return!1;var m=Po(c)?V9:dr;return m.test(Zs(c))}function UD(c){return Qr(c)&&oa(c)==$e}function qD(c){return Qr(c)&&Zn(c)==Pe}function WD(c){return Qr(c)&&r0(c.length)&&!!Ar[oa(c)]}function Hx(c){return typeof c=="function"?c:c==null?ya:typeof c=="object"?Ht(c)?qx(c[0],c[1]):Ux(c):cS(c)}function yg(c){if(!Mc(c))return K9(c);var m=[];for(var R in jr(c))$r.call(c,R)&&R!="constructor"&&m.push(R);return m}function YD(c){if(!Gr(c))return PM(c);var m=Mc(c),R=[];for(var L in c)L=="constructor"&&(m||!$r.call(c,L))||R.push(L);return R}function _g(c,m){return c<m}function Vx(c,m){var R=-1,L=va(c)?ye(c.length):[];return ps(c,function(q,Y,te){L[++R]=m(q,Y,te)}),L}function Ux(c){var m=Ng(c);return m.length==1&&m[0][2]?C3(m[0][0],m[0][1]):function(R){return R===c||bg(R,c,m)}}function qx(c,m){return Fg(c)&&S3(m)?C3(Zi(c),m):function(R){var L=Yg(R,c);return L===r&&L===m?Gg(R,c):$c(m,L,y|w)}}function zh(c,m,R,L,q){c!==m&&pg(m,function(Y,te){if(q||(q=new wi),Gr(Y))GD(c,m,te,R,zh,L,q);else{var oe=L?L(Lg(c,te),Y,te+"",c,m,q):r;oe===r&&(oe=Y),fg(c,te,oe)}},ba)}function GD(c,m,R,L,q,Y,te){var oe=Lg(c,R),ce=Lg(m,R),Oe=te.get(ce);if(Oe){fg(c,R,Oe);return}var Re=Y?Y(oe,ce,R+"",c,m,te):r,Me=Re===r;if(Me){var Xe=Ht(ce),yt=!Xe&&bs(ce),$t=!Xe&&!yt&&Ju(ce);Re=ce,Xe||yt||$t?Ht(oe)?Re=oe:sn(oe)?Re=ga(oe):yt?(Me=!1,Re=n3(ce,!0)):$t?(Me=!1,Re=a3(ce,!0)):Re=[]:Ic(ce)||Js(ce)?(Re=oe,Js(oe)?Re=eS(oe):(!Gr(oe)||Po(oe))&&(Re=x3(ce))):Me=!1}Me&&(te.set(ce,Re),q(Re,ce,L,Y,te),te.delete(ce)),fg(c,R,Re)}function Wx(c,m){var R=c.length;if(R)return m+=m<0?R:0,To(m,R)?c[m]:r}function Yx(c,m,R){m.length?m=qr(m,function(Y){return Ht(Y)?function(te){return Ks(te,Y.length===1?Y[0]:Y)}:Y}):m=[ya];var L=-1;m=qr(m,Pa(kt()));var q=Vx(c,function(Y,te,oe){var ce=qr(m,function(Oe){return Oe(Y)});return{criteria:ce,index:++L,value:Y}});return w9(q,function(Y,te){return sM(Y,te,R)})}function KD(c,m){return Gx(c,m,function(R,L){return Gg(c,L)})}function Gx(c,m,R){for(var L=-1,q=m.length,Y={};++L<q;){var te=m[L],oe=Ks(c,te);R(oe,te)&&Ac(Y,gs(te,c),oe)}return Y}function XD(c){return function(m){return Ks(m,c)}}function wg(c,m,R,L){var q=L?_9:Bu,Y=-1,te=m.length,oe=c;for(c===m&&(m=ga(m)),R&&(oe=qr(c,Pa(R)));++Y<te;)for(var ce=0,Oe=m[Y],Re=R?R(Oe):Oe;(ce=q(oe,Re,ce,L))>-1;)oe!==c&&kh.call(oe,ce,1),kh.call(c,ce,1);return c}function Kx(c,m){for(var R=c?m.length:0,L=R-1;R--;){var q=m[R];if(R==L||q!==Y){var Y=q;To(q)?kh.call(c,q,1):Eg(c,q)}}return c}function xg(c,m){return c+Dh(Px()*(m-c+1))}function ZD(c,m,R,L){for(var q=-1,Y=gn(Ah((m-c)/(R||1)),0),te=ye(Y);Y--;)te[L?Y:++q]=c,c+=R;return te}function Sg(c,m){var R="";if(!c||m<1||m>j)return R;do m%2&&(R+=c),m=Dh(m/2),m&&(c+=c);while(m);return R}function Xt(c,m){return zg(E3(c,m,ya),c+"")}function JD(c){return Ax(Qu(c))}function QD(c,m){var R=Qu(c);return Xh(R,Gs(m,0,R.length))}function Ac(c,m,R,L){if(!Gr(c))return c;m=gs(m,c);for(var q=-1,Y=m.length,te=Y-1,oe=c;oe!=null&&++q<Y;){var ce=Zi(m[q]),Oe=R;if(ce==="__proto__"||ce==="constructor"||ce==="prototype")return c;if(q!=te){var Re=oe[ce];Oe=L?L(Re,ce,oe):r,Oe===r&&(Oe=Gr(Re)?Re:To(m[q+1])?[]:{})}Tc(oe,ce,Oe),oe=oe[ce]}return c}var Xx=Mh?function(c,m){return Mh.set(c,m),c}:ya,eM=$h?function(c,m){return $h(c,"toString",{configurable:!0,enumerable:!1,value:Xg(m),writable:!0})}:ya;function tM(c){return Xh(Qu(c))}function ni(c,m,R){var L=-1,q=c.length;m<0&&(m=-m>q?0:q+m),R=R>q?q:R,R<0&&(R+=q),q=m>R?0:R-m>>>0,m>>>=0;for(var Y=ye(q);++L<q;)Y[L]=c[L+m];return Y}function rM(c,m){var R;return ps(c,function(L,q,Y){return R=m(L,q,Y),!R}),!!R}function Bh(c,m,R){var L=0,q=c==null?L:c.length;if(typeof m=="number"&&m===m&&q<=X){for(;L<q;){var Y=L+q>>>1,te=c[Y];te!==null&&!$a(te)&&(R?te<=m:te<m)?L=Y+1:q=Y}return q}return Cg(c,m,ya,R)}function Cg(c,m,R,L){var q=0,Y=c==null?0:c.length;if(Y===0)return 0;m=R(m);for(var te=m!==m,oe=m===null,ce=$a(m),Oe=m===r;q<Y;){var Re=Dh((q+Y)/2),Me=R(c[Re]),Xe=Me!==r,yt=Me===null,$t=Me===Me,Kt=$a(Me);if(te)var At=L||$t;else Oe?At=$t&&(L||Xe):oe?At=$t&&Xe&&(L||!yt):ce?At=$t&&Xe&&!yt&&(L||!Kt):yt||Kt?At=!1:At=L?Me<=m:Me<m;At?q=Re+1:Y=Re}return Xn(Y,G)}function Zx(c,m){for(var R=-1,L=c.length,q=0,Y=[];++R<L;){var te=c[R],oe=m?m(te):te;if(!R||!xi(oe,ce)){var ce=oe;Y[q++]=te===0?0:te}}return Y}function Jx(c){return typeof c=="number"?c:$a(c)?z:+c}function ka(c){if(typeof c=="string")return c;if(Ht(c))return qr(c,ka)+"";if($a(c))return kx?kx.call(c):"";var m=c+"";return m=="0"&&1/c==-1/0?"-0":m}function ms(c,m,R){var L=-1,q=_h,Y=c.length,te=!0,oe=[],ce=oe;if(R)te=!1,q=Qm;else if(Y>=a){var Oe=m?null:hM(c);if(Oe)return xh(Oe);te=!1,q=xc,ce=new Ys}else ce=m?[]:oe;e:for(;++L<Y;){var Re=c[L],Me=m?m(Re):Re;if(Re=R||Re!==0?Re:0,te&&Me===Me){for(var Xe=ce.length;Xe--;)if(ce[Xe]===Me)continue e;m&&ce.push(Me),oe.push(Re)}else q(ce,Me,R)||(ce!==oe&&ce.push(Me),oe.push(Re))}return oe}function Eg(c,m){return m=gs(m,c),c=O3(c,m),c==null||delete c[Zi(ai(m))]}function Qx(c,m,R,L){return Ac(c,m,R(Ks(c,m)),L)}function Hh(c,m,R,L){for(var q=c.length,Y=L?q:-1;(L?Y--:++Y<q)&&m(c[Y],Y,c););return R?ni(c,L?0:Y,L?Y+1:q):ni(c,L?Y+1:0,L?q:Y)}function e3(c,m){var R=c;return R instanceof tr&&(R=R.value()),eg(m,function(L,q){return q.func.apply(q.thisArg,ds([L],q.args))},R)}function Og(c,m,R){var L=c.length;if(L<2)return L?ms(c[0]):[];for(var q=-1,Y=ye(L);++q<L;)for(var te=c[q],oe=-1;++oe<L;)oe!=q&&(Y[q]=Pc(Y[q]||te,c[oe],m,R));return ms(Fn(Y,1),m,R)}function t3(c,m,R){for(var L=-1,q=c.length,Y=m.length,te={};++L<q;){var oe=L<Y?m[L]:r;R(te,c[L],oe)}return te}function Rg(c){return sn(c)?c:[]}function Tg(c){return typeof c=="function"?c:ya}function gs(c,m){return Ht(c)?c:Fg(c,m)?[c]:k3(xr(c))}var nM=Xt;function vs(c,m,R){var L=c.length;return R=R===r?L:R,!m&&R>=L?c:ni(c,m,R)}var r3=U9||function(c){return In.clearTimeout(c)};function n3(c,m){if(m)return c.slice();var R=c.length,L=Cx?Cx(R):new c.constructor(R);return c.copy(L),L}function Pg(c){var m=new c.constructor(c.byteLength);return new Th(m).set(new Th(c)),m}function aM(c,m){var R=m?Pg(c.buffer):c.buffer;return new c.constructor(R,c.byteOffset,c.byteLength)}function iM(c){var m=new c.constructor(c.source,ht.exec(c));return m.lastIndex=c.lastIndex,m}function oM(c){return Rc?jr(Rc.call(c)):{}}function a3(c,m){var R=m?Pg(c.buffer):c.buffer;return new c.constructor(R,c.byteOffset,c.length)}function i3(c,m){if(c!==m){var R=c!==r,L=c===null,q=c===c,Y=$a(c),te=m!==r,oe=m===null,ce=m===m,Oe=$a(m);if(!oe&&!Oe&&!Y&&c>m||Y&&te&&ce&&!oe&&!Oe||L&&te&&ce||!R&&ce||!q)return 1;if(!L&&!Y&&!Oe&&c<m||Oe&&R&&q&&!L&&!Y||oe&&R&&q||!te&&q||!ce)return-1}return 0}function sM(c,m,R){for(var L=-1,q=c.criteria,Y=m.criteria,te=q.length,oe=R.length;++L<te;){var ce=i3(q[L],Y[L]);if(ce){if(L>=oe)return ce;var Oe=R[L];return ce*(Oe=="desc"?-1:1)}}return c.index-m.index}function o3(c,m,R,L){for(var q=-1,Y=c.length,te=R.length,oe=-1,ce=m.length,Oe=gn(Y-te,0),Re=ye(ce+Oe),Me=!L;++oe<ce;)Re[oe]=m[oe];for(;++q<te;)(Me||q<Y)&&(Re[R[q]]=c[q]);for(;Oe--;)Re[oe++]=c[q++];return Re}function s3(c,m,R,L){for(var q=-1,Y=c.length,te=-1,oe=R.length,ce=-1,Oe=m.length,Re=gn(Y-oe,0),Me=ye(Re+Oe),Xe=!L;++q<Re;)Me[q]=c[q];for(var yt=q;++ce<Oe;)Me[yt+ce]=m[ce];for(;++te<oe;)(Xe||q<Y)&&(Me[yt+R[te]]=c[q++]);return Me}function ga(c,m){var R=-1,L=c.length;for(m||(m=ye(L));++R<L;)m[R]=c[R];return m}function Xi(c,m,R,L){var q=!R;R||(R={});for(var Y=-1,te=m.length;++Y<te;){var oe=m[Y],ce=L?L(R[oe],c[oe],oe,R,c):r;ce===r&&(ce=c[oe]),q?Eo(R,oe,ce):Tc(R,oe,ce)}return R}function uM(c,m){return Xi(c,Ig(c),m)}function lM(c,m){return Xi(c,_3(c),m)}function Vh(c,m){return function(R,L){var q=Ht(R)?p9:$D,Y=m?m():{};return q(R,c,kt(L,2),Y)}}function Ku(c){return Xt(function(m,R){var L=-1,q=R.length,Y=q>1?R[q-1]:r,te=q>2?R[2]:r;for(Y=c.length>3&&typeof Y=="function"?(q--,Y):r,te&&sa(R[0],R[1],te)&&(Y=q<3?r:Y,q=1),m=jr(m);++L<q;){var oe=R[L];oe&&c(m,oe,L,Y)}return m})}function u3(c,m){return function(R,L){if(R==null)return R;if(!va(R))return c(R,L);for(var q=R.length,Y=m?q:-1,te=jr(R);(m?Y--:++Y<q)&&L(te[Y],Y,te)!==!1;);return R}}function l3(c){return function(m,R,L){for(var q=-1,Y=jr(m),te=L(m),oe=te.length;oe--;){var ce=te[c?oe:++q];if(R(Y[ce],ce,Y)===!1)break}return m}}function cM(c,m,R){var L=m&S,q=Dc(c);function Y(){var te=this&&this!==In&&this instanceof Y?q:c;return te.apply(L?R:this,arguments)}return Y}function c3(c){return function(m){m=xr(m);var R=Hu(m)?_i(m):r,L=R?R[0]:m.charAt(0),q=R?vs(R,1).join(""):m.slice(1);return L[c]()+q}}function Xu(c){return function(m){return eg(uS(sS(m).replace(_c,"")),c,"")}}function Dc(c){return function(){var m=arguments;switch(m.length){case 0:return new c;case 1:return new c(m[0]);case 2:return new c(m[0],m[1]);case 3:return new c(m[0],m[1],m[2]);case 4:return new c(m[0],m[1],m[2],m[3]);case 5:return new c(m[0],m[1],m[2],m[3],m[4]);case 6:return new c(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new c(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var R=Gu(c.prototype),L=c.apply(R,m);return Gr(L)?L:R}}function dM(c,m,R){var L=Dc(c);function q(){for(var Y=arguments.length,te=ye(Y),oe=Y,ce=Zu(q);oe--;)te[oe]=arguments[oe];var Oe=Y<3&&te[0]!==ce&&te[Y-1]!==ce?[]:fs(te,ce);if(Y-=Oe.length,Y<R)return m3(c,m,Uh,q.placeholder,r,te,Oe,r,r,R-Y);var Re=this&&this!==In&&this instanceof q?L:c;return Ta(Re,this,te)}return q}function d3(c){return function(m,R,L){var q=jr(m);if(!va(m)){var Y=kt(R,3);m=En(m),R=function(oe){return Y(q[oe],oe,q)}}var te=c(m,R,L);return te>-1?q[Y?m[te]:te]:r}}function f3(c){return Ro(function(m){var R=m.length,L=R,q=ti.prototype.thru;for(c&&m.reverse();L--;){var Y=m[L];if(typeof Y!="function")throw new ei(o);if(q&&!te&&Gh(Y)=="wrapper")var te=new ti([],!0)}for(L=te?L:R;++L<R;){Y=m[L];var oe=Gh(Y),ce=oe=="wrapper"?Mg(Y):r;ce&&jg(ce[0])&&ce[1]==(x|C|p|k)&&!ce[4].length&&ce[9]==1?te=te[Gh(ce[0])].apply(te,ce[3]):te=Y.length==1&&jg(Y)?te[oe]():te.thru(Y)}return function(){var Oe=arguments,Re=Oe[0];if(te&&Oe.length==1&&Ht(Re))return te.plant(Re).value();for(var Me=0,Xe=R?m[Me].apply(this,Oe):Re;++Me<R;)Xe=m[Me].call(this,Xe);return Xe}})}function Uh(c,m,R,L,q,Y,te,oe,ce,Oe){var Re=m&x,Me=m&S,Xe=m&E,yt=m&(C|f),$t=m&O,Kt=Xe?r:Dc(c);function At(){for(var Jt=arguments.length,or=ye(Jt),Aa=Jt;Aa--;)or[Aa]=arguments[Aa];if(yt)var ua=Zu(At),Da=S9(or,ua);if(L&&(or=o3(or,L,q,yt)),Y&&(or=s3(or,Y,te,yt)),Jt-=Da,yt&&Jt<Oe){var un=fs(or,ua);return m3(c,m,Uh,At.placeholder,R,or,un,oe,ce,Oe-Jt)}var Si=Me?R:this,$o=Xe?Si[c]:c;return Jt=or.length,oe?or=$M(or,oe):$t&&Jt>1&&or.reverse(),Re&&ce<Jt&&(or.length=ce),this&&this!==In&&this instanceof At&&($o=Kt||Dc($o)),$o.apply(Si,or)}return At}function h3(c,m){return function(R,L){return LD(R,c,m(L),{})}}function qh(c,m){return function(R,L){var q;if(R===r&&L===r)return m;if(R!==r&&(q=R),L!==r){if(q===r)return L;typeof R=="string"||typeof L=="string"?(R=ka(R),L=ka(L)):(R=Jx(R),L=Jx(L)),q=c(R,L)}return q}}function kg(c){return Ro(function(m){return m=qr(m,Pa(kt())),Xt(function(R){var L=this;return c(m,function(q){return Ta(q,L,R)})})})}function Wh(c,m){m=m===r?" ":ka(m);var R=m.length;if(R<2)return R?Sg(m,c):m;var L=Sg(m,Ah(c/Vu(m)));return Hu(m)?vs(_i(L),0,c).join(""):L.slice(0,c)}function fM(c,m,R,L){var q=m&S,Y=Dc(c);function te(){for(var oe=-1,ce=arguments.length,Oe=-1,Re=L.length,Me=ye(Re+ce),Xe=this&&this!==In&&this instanceof te?Y:c;++Oe<Re;)Me[Oe]=L[Oe];for(;ce--;)Me[Oe++]=arguments[++oe];return Ta(Xe,q?R:this,Me)}return te}function p3(c){return function(m,R,L){return L&&typeof L!="number"&&sa(m,R,L)&&(R=L=r),m=ko(m),R===r?(R=m,m=0):R=ko(R),L=L===r?m<R?1:-1:ko(L),ZD(m,R,L,c)}}function Yh(c){return function(m,R){return typeof m=="string"&&typeof R=="string"||(m=ii(m),R=ii(R)),c(m,R)}}function m3(c,m,R,L,q,Y,te,oe,ce,Oe){var Re=m&C,Me=Re?te:r,Xe=Re?r:te,yt=Re?Y:r,$t=Re?r:Y;m|=Re?p:v,m&=~(Re?v:p),m&_||(m&=-4);var Kt=[c,m,q,yt,Me,$t,Xe,oe,ce,Oe],At=R.apply(r,Kt);return jg(c)&&R3(At,Kt),At.placeholder=L,T3(At,c,m)}function $g(c){var m=mn[c];return function(R,L){if(R=ii(R),L=L==null?0:Xn(Yt(L),292),L&&Tx(R)){var q=(xr(R)+"e").split("e"),Y=m(q[0]+"e"+(+q[1]+L));return q=(xr(Y)+"e").split("e"),+(q[0]+"e"+(+q[1]-L))}return m(R)}}var hM=Wu&&1/xh(new Wu([,-0]))[1]==M?function(c){return new Wu(c)}:Qg;function g3(c){return function(m){var R=Zn(m);return R==se?sg(m):R==Pe?k9(m):x9(m,c(m))}}function Oo(c,m,R,L,q,Y,te,oe){var ce=m&E;if(!ce&&typeof c!="function")throw new ei(o);var Oe=L?L.length:0;if(Oe||(m&=-97,L=q=r),te=te===r?te:gn(Yt(te),0),oe=oe===r?oe:Yt(oe),Oe-=q?q.length:0,m&v){var Re=L,Me=q;L=q=r}var Xe=ce?r:Mg(c),yt=[c,m,R,L,q,Re,Me,Y,te,oe];if(Xe&&TM(yt,Xe),c=yt[0],m=yt[1],R=yt[2],L=yt[3],q=yt[4],oe=yt[9]=yt[9]===r?ce?0:c.length:gn(yt[9]-Oe,0),!oe&&m&(C|f)&&(m&=-25),!m||m==S)var $t=cM(c,m,R);else m==C||m==f?$t=dM(c,m,oe):(m==p||m==(S|p))&&!q.length?$t=fM(c,m,R,L):$t=Uh.apply(r,yt);var Kt=Xe?Xx:R3;return T3(Kt($t,yt),c,m)}function v3(c,m,R,L){return c===r||xi(c,qu[R])&&!$r.call(L,R)?m:c}function b3(c,m,R,L,q,Y){return Gr(c)&&Gr(m)&&(Y.set(m,c),zh(c,m,r,b3,Y),Y.delete(m)),c}function pM(c){return Ic(c)?r:c}function y3(c,m,R,L,q,Y){var te=R&y,oe=c.length,ce=m.length;if(oe!=ce&&!(te&&ce>oe))return!1;var Oe=Y.get(c),Re=Y.get(m);if(Oe&&Re)return Oe==m&&Re==c;var Me=-1,Xe=!0,yt=R&w?new Ys:r;for(Y.set(c,m),Y.set(m,c);++Me<oe;){var $t=c[Me],Kt=m[Me];if(L)var At=te?L(Kt,$t,Me,m,c,Y):L($t,Kt,Me,c,m,Y);if(At!==r){if(At)continue;Xe=!1;break}if(yt){if(!tg(m,function(Jt,or){if(!xc(yt,or)&&($t===Jt||q($t,Jt,R,L,Y)))return yt.push(or)})){Xe=!1;break}}else if(!($t===Kt||q($t,Kt,R,L,Y))){Xe=!1;break}}return Y.delete(c),Y.delete(m),Xe}function mM(c,m,R,L,q,Y,te){switch(R){case bt:if(c.byteLength!=m.byteLength||c.byteOffset!=m.byteOffset)return!1;c=c.buffer,m=m.buffer;case ct:return!(c.byteLength!=m.byteLength||!Y(new Th(c),new Th(m)));case de:case pe:case fe:return xi(+c,+m);case me:return c.name==m.name&&c.message==m.message;case $e:case Ne:return c==m+"";case se:var oe=sg;case Pe:var ce=L&y;if(oe||(oe=xh),c.size!=m.size&&!ce)return!1;var Oe=te.get(c);if(Oe)return Oe==m;L|=w,te.set(c,m);var Re=y3(oe(c),oe(m),L,q,Y,te);return te.delete(c),Re;case Ee:if(Rc)return Rc.call(c)==Rc.call(m)}return!1}function gM(c,m,R,L,q,Y){var te=R&y,oe=Ag(c),ce=oe.length,Oe=Ag(m),Re=Oe.length;if(ce!=Re&&!te)return!1;for(var Me=ce;Me--;){var Xe=oe[Me];if(!(te?Xe in m:$r.call(m,Xe)))return!1}var yt=Y.get(c),$t=Y.get(m);if(yt&&$t)return yt==m&&$t==c;var Kt=!0;Y.set(c,m),Y.set(m,c);for(var At=te;++Me<ce;){Xe=oe[Me];var Jt=c[Xe],or=m[Xe];if(L)var Aa=te?L(or,Jt,Xe,m,c,Y):L(Jt,or,Xe,c,m,Y);if(!(Aa===r?Jt===or||q(Jt,or,R,L,Y):Aa)){Kt=!1;break}At||(At=Xe=="constructor")}if(Kt&&!At){var ua=c.constructor,Da=m.constructor;ua!=Da&&"constructor"in c&&"constructor"in m&&!(typeof ua=="function"&&ua instanceof ua&&typeof Da=="function"&&Da instanceof Da)&&(Kt=!1)}return Y.delete(c),Y.delete(m),Kt}function Ro(c){return zg(E3(c,r,M3),c+"")}function Ag(c){return Lx(c,En,Ig)}function Dg(c){return Lx(c,ba,_3)}var Mg=Mh?function(c){return Mh.get(c)}:Qg;function Gh(c){for(var m=c.name+"",R=Yu[m],L=$r.call(Yu,m)?R.length:0;L--;){var q=R[L],Y=q.func;if(Y==null||Y==c)return q.name}return m}function Zu(c){var m=$r.call(W,"placeholder")?W:c;return m.placeholder}function kt(){var c=W.iteratee||Zg;return c=c===Zg?Hx:c,arguments.length?c(arguments[0],arguments[1]):c}function Kh(c,m){var R=c.__data__;return CM(m)?R[typeof m=="string"?"string":"hash"]:R.map}function Ng(c){for(var m=En(c),R=m.length;R--;){var L=m[R],q=c[L];m[R]=[L,q,S3(q)]}return m}function Xs(c,m){var R=R9(c,m);return Bx(R)?R:r}function vM(c){var m=$r.call(c,qs),R=c[qs];try{c[qs]=r;var L=!0}catch{}var q=Oh.call(c);return L&&(m?c[qs]=R:delete c[qs]),q}var Ig=lg?function(c){return c==null?[]:(c=jr(c),cs(lg(c),function(m){return Ox.call(c,m)}))}:ev,_3=lg?function(c){for(var m=[];c;)ds(m,Ig(c)),c=Ph(c);return m}:ev,Zn=oa;(cg&&Zn(new cg(new ArrayBuffer(1)))!=bt||Cc&&Zn(new Cc)!=se||dg&&Zn(dg.resolve())!=Te||Wu&&Zn(new Wu)!=Pe||Ec&&Zn(new Ec)!=rt)&&(Zn=function(c){var m=oa(c),R=m==ke?c.constructor:r,L=R?Zs(R):"";if(L)switch(L){case Q9:return bt;case eD:return se;case tD:return Te;case rD:return Pe;case nD:return rt}return m});function bM(c,m,R){for(var L=-1,q=R.length;++L<q;){var Y=R[L],te=Y.size;switch(Y.type){case"drop":c+=te;break;case"dropRight":m-=te;break;case"take":m=Xn(m,c+te);break;case"takeRight":c=gn(c,m-te);break}}return{start:c,end:m}}function yM(c){var m=c.match(Je);return m?m[1].split(Z):[]}function w3(c,m,R){m=gs(m,c);for(var L=-1,q=m.length,Y=!1;++L<q;){var te=Zi(m[L]);if(!(Y=c!=null&&R(c,te)))break;c=c[te]}return Y||++L!=q?Y:(q=c==null?0:c.length,!!q&&r0(q)&&To(te,q)&&(Ht(c)||Js(c)))}function _M(c){var m=c.length,R=new c.constructor(m);return m&&typeof c[0]=="string"&&$r.call(c,"index")&&(R.index=c.index,R.input=c.input),R}function x3(c){return typeof c.constructor=="function"&&!Mc(c)?Gu(Ph(c)):{}}function wM(c,m,R){var L=c.constructor;switch(m){case ct:return Pg(c);case de:case pe:return new L(+c);case bt:return aM(c,R);case gt:case Qe:case _t:case It:case ft:case Be:case Ot:case Ve:case Ke:return a3(c,R);case se:return new L;case fe:case Ne:return new L(c);case $e:return iM(c);case Pe:return new L;case Ee:return oM(c)}}function xM(c,m){var R=m.length;if(!R)return c;var L=R-1;return m[L]=(R>1?"& ":"")+m[L],m=m.join(R>2?", ":" "),c.replace(et,`{
38
- /* [wrapped with `+m+`] */
39
- `)}function SM(c){return Ht(c)||Js(c)||!!(Rx&&c&&c[Rx])}function To(c,m){var R=typeof c;return m=m??j,!!m&&(R=="number"||R!="symbol"&&Lt.test(c))&&c>-1&&c%1==0&&c<m}function sa(c,m,R){if(!Gr(R))return!1;var L=typeof m;return(L=="number"?va(R)&&To(m,R.length):L=="string"&&m in R)?xi(R[m],c):!1}function Fg(c,m){if(Ht(c))return!1;var R=typeof c;return R=="number"||R=="symbol"||R=="boolean"||c==null||$a(c)?!0:Ue.test(c)||!Ye.test(c)||m!=null&&c in jr(m)}function CM(c){var m=typeof c;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?c!=="__proto__":c===null}function jg(c){var m=Gh(c),R=W[m];if(typeof R!="function"||!(m in tr.prototype))return!1;if(c===R)return!0;var L=Mg(R);return!!L&&c===L[0]}function EM(c){return!!Sx&&Sx in c}var OM=Ch?Po:tv;function Mc(c){var m=c&&c.constructor,R=typeof m=="function"&&m.prototype||qu;return c===R}function S3(c){return c===c&&!Gr(c)}function C3(c,m){return function(R){return R==null?!1:R[c]===m&&(m!==r||c in jr(R))}}function RM(c){var m=e0(c,function(L){return R.size===l&&R.clear(),L}),R=m.cache;return m}function TM(c,m){var R=c[1],L=m[1],q=R|L,Y=q<(S|E|x),te=L==x&&R==C||L==x&&R==k&&c[7].length<=m[8]||L==(x|k)&&m[7].length<=m[8]&&R==C;if(!(Y||te))return c;L&S&&(c[2]=m[2],q|=R&S?0:_);var oe=m[3];if(oe){var ce=c[3];c[3]=ce?o3(ce,oe,m[4]):oe,c[4]=ce?fs(c[3],h):m[4]}return oe=m[5],oe&&(ce=c[5],c[5]=ce?s3(ce,oe,m[6]):oe,c[6]=ce?fs(c[5],h):m[6]),oe=m[7],oe&&(c[7]=oe),L&x&&(c[8]=c[8]==null?m[8]:Xn(c[8],m[8])),c[9]==null&&(c[9]=m[9]),c[0]=m[0],c[1]=q,c}function PM(c){var m=[];if(c!=null)for(var R in jr(c))m.push(R);return m}function kM(c){return Oh.call(c)}function E3(c,m,R){return m=gn(m===r?c.length-1:m,0),function(){for(var L=arguments,q=-1,Y=gn(L.length-m,0),te=ye(Y);++q<Y;)te[q]=L[m+q];q=-1;for(var oe=ye(m+1);++q<m;)oe[q]=L[q];return oe[m]=R(te),Ta(c,this,oe)}}function O3(c,m){return m.length<2?c:Ks(c,ni(m,0,-1))}function $M(c,m){for(var R=c.length,L=Xn(m.length,R),q=ga(c);L--;){var Y=m[L];c[L]=To(Y,R)?q[Y]:r}return c}function Lg(c,m){if(!(m==="constructor"&&typeof c[m]=="function")&&m!="__proto__")return c[m]}var R3=P3(Xx),Nc=W9||function(c,m){return In.setTimeout(c,m)},zg=P3(eM);function T3(c,m,R){var L=m+"";return zg(c,xM(L,AM(yM(L),R)))}function P3(c){var m=0,R=0;return function(){var L=X9(),q=I-(L-R);if(R=L,q>0){if(++m>=V)return arguments[0]}else m=0;return c.apply(r,arguments)}}function Xh(c,m){var R=-1,L=c.length,q=L-1;for(m=m===r?L:m;++R<m;){var Y=xg(R,q),te=c[Y];c[Y]=c[R],c[R]=te}return c.length=m,c}var k3=RM(function(c){var m=[];return c.charCodeAt(0)===46&&m.push(""),c.replace(zt,function(R,L,q,Y){m.push(q?Y.replace(Ge,"$1"):L||R)}),m});function Zi(c){if(typeof c=="string"||$a(c))return c;var m=c+"";return m=="0"&&1/c==-1/0?"-0":m}function Zs(c){if(c!=null){try{return Eh.call(c)}catch{}try{return c+""}catch{}}return""}function AM(c,m){return Qa(K,function(R){var L="_."+R[0];m&R[1]&&!_h(c,L)&&c.push(L)}),c.sort()}function $3(c){if(c instanceof tr)return c.clone();var m=new ti(c.__wrapped__,c.__chain__);return m.__actions__=ga(c.__actions__),m.__index__=c.__index__,m.__values__=c.__values__,m}function DM(c,m,R){(R?sa(c,m,R):m===r)?m=1:m=gn(Yt(m),0);var L=c==null?0:c.length;if(!L||m<1)return[];for(var q=0,Y=0,te=ye(Ah(L/m));q<L;)te[Y++]=ni(c,q,q+=m);return te}function MM(c){for(var m=-1,R=c==null?0:c.length,L=0,q=[];++m<R;){var Y=c[m];Y&&(q[L++]=Y)}return q}function NM(){var c=arguments.length;if(!c)return[];for(var m=ye(c-1),R=arguments[0],L=c;L--;)m[L-1]=arguments[L];return ds(Ht(R)?ga(R):[R],Fn(m,1))}var IM=Xt(function(c,m){return sn(c)?Pc(c,Fn(m,1,sn,!0)):[]}),FM=Xt(function(c,m){var R=ai(m);return sn(R)&&(R=r),sn(c)?Pc(c,Fn(m,1,sn,!0),kt(R,2)):[]}),jM=Xt(function(c,m){var R=ai(m);return sn(R)&&(R=r),sn(c)?Pc(c,Fn(m,1,sn,!0),r,R):[]});function LM(c,m,R){var L=c==null?0:c.length;return L?(m=R||m===r?1:Yt(m),ni(c,m<0?0:m,L)):[]}function zM(c,m,R){var L=c==null?0:c.length;return L?(m=R||m===r?1:Yt(m),m=L-m,ni(c,0,m<0?0:m)):[]}function BM(c,m){return c&&c.length?Hh(c,kt(m,3),!0,!0):[]}function HM(c,m){return c&&c.length?Hh(c,kt(m,3),!0):[]}function VM(c,m,R,L){var q=c==null?0:c.length;return q?(R&&typeof R!="number"&&sa(c,m,R)&&(R=0,L=q),ND(c,m,R,L)):[]}function A3(c,m,R){var L=c==null?0:c.length;if(!L)return-1;var q=R==null?0:Yt(R);return q<0&&(q=gn(L+q,0)),wh(c,kt(m,3),q)}function D3(c,m,R){var L=c==null?0:c.length;if(!L)return-1;var q=L-1;return R!==r&&(q=Yt(R),q=R<0?gn(L+q,0):Xn(q,L-1)),wh(c,kt(m,3),q,!0)}function M3(c){var m=c==null?0:c.length;return m?Fn(c,1):[]}function UM(c){var m=c==null?0:c.length;return m?Fn(c,M):[]}function qM(c,m){var R=c==null?0:c.length;return R?(m=m===r?1:Yt(m),Fn(c,m)):[]}function WM(c){for(var m=-1,R=c==null?0:c.length,L={};++m<R;){var q=c[m];L[q[0]]=q[1]}return L}function N3(c){return c&&c.length?c[0]:r}function YM(c,m,R){var L=c==null?0:c.length;if(!L)return-1;var q=R==null?0:Yt(R);return q<0&&(q=gn(L+q,0)),Bu(c,m,q)}function GM(c){var m=c==null?0:c.length;return m?ni(c,0,-1):[]}var KM=Xt(function(c){var m=qr(c,Rg);return m.length&&m[0]===c[0]?vg(m):[]}),XM=Xt(function(c){var m=ai(c),R=qr(c,Rg);return m===ai(R)?m=r:R.pop(),R.length&&R[0]===c[0]?vg(R,kt(m,2)):[]}),ZM=Xt(function(c){var m=ai(c),R=qr(c,Rg);return m=typeof m=="function"?m:r,m&&R.pop(),R.length&&R[0]===c[0]?vg(R,r,m):[]});function JM(c,m){return c==null?"":G9.call(c,m)}function ai(c){var m=c==null?0:c.length;return m?c[m-1]:r}function QM(c,m,R){var L=c==null?0:c.length;if(!L)return-1;var q=L;return R!==r&&(q=Yt(R),q=q<0?gn(L+q,0):Xn(q,L-1)),m===m?A9(c,m,q):wh(c,mx,q,!0)}function eN(c,m){return c&&c.length?Wx(c,Yt(m)):r}var tN=Xt(I3);function I3(c,m){return c&&c.length&&m&&m.length?wg(c,m):c}function rN(c,m,R){return c&&c.length&&m&&m.length?wg(c,m,kt(R,2)):c}function nN(c,m,R){return c&&c.length&&m&&m.length?wg(c,m,r,R):c}var aN=Ro(function(c,m){var R=c==null?0:c.length,L=hg(c,m);return Kx(c,qr(m,function(q){return To(q,R)?+q:q}).sort(i3)),L});function iN(c,m){var R=[];if(!(c&&c.length))return R;var L=-1,q=[],Y=c.length;for(m=kt(m,3);++L<Y;){var te=c[L];m(te,L,c)&&(R.push(te),q.push(L))}return Kx(c,q),R}function Bg(c){return c==null?c:J9.call(c)}function oN(c,m,R){var L=c==null?0:c.length;return L?(R&&typeof R!="number"&&sa(c,m,R)?(m=0,R=L):(m=m==null?0:Yt(m),R=R===r?L:Yt(R)),ni(c,m,R)):[]}function sN(c,m){return Bh(c,m)}function uN(c,m,R){return Cg(c,m,kt(R,2))}function lN(c,m){var R=c==null?0:c.length;if(R){var L=Bh(c,m);if(L<R&&xi(c[L],m))return L}return-1}function cN(c,m){return Bh(c,m,!0)}function dN(c,m,R){return Cg(c,m,kt(R,2),!0)}function fN(c,m){var R=c==null?0:c.length;if(R){var L=Bh(c,m,!0)-1;if(xi(c[L],m))return L}return-1}function hN(c){return c&&c.length?Zx(c):[]}function pN(c,m){return c&&c.length?Zx(c,kt(m,2)):[]}function mN(c){var m=c==null?0:c.length;return m?ni(c,1,m):[]}function gN(c,m,R){return c&&c.length?(m=R||m===r?1:Yt(m),ni(c,0,m<0?0:m)):[]}function vN(c,m,R){var L=c==null?0:c.length;return L?(m=R||m===r?1:Yt(m),m=L-m,ni(c,m<0?0:m,L)):[]}function bN(c,m){return c&&c.length?Hh(c,kt(m,3),!1,!0):[]}function yN(c,m){return c&&c.length?Hh(c,kt(m,3)):[]}var _N=Xt(function(c){return ms(Fn(c,1,sn,!0))}),wN=Xt(function(c){var m=ai(c);return sn(m)&&(m=r),ms(Fn(c,1,sn,!0),kt(m,2))}),xN=Xt(function(c){var m=ai(c);return m=typeof m=="function"?m:r,ms(Fn(c,1,sn,!0),r,m)});function SN(c){return c&&c.length?ms(c):[]}function CN(c,m){return c&&c.length?ms(c,kt(m,2)):[]}function EN(c,m){return m=typeof m=="function"?m:r,c&&c.length?ms(c,r,m):[]}function Hg(c){if(!(c&&c.length))return[];var m=0;return c=cs(c,function(R){if(sn(R))return m=gn(R.length,m),!0}),ig(m,function(R){return qr(c,rg(R))})}function F3(c,m){if(!(c&&c.length))return[];var R=Hg(c);return m==null?R:qr(R,function(L){return Ta(m,r,L)})}var ON=Xt(function(c,m){return sn(c)?Pc(c,m):[]}),RN=Xt(function(c){return Og(cs(c,sn))}),TN=Xt(function(c){var m=ai(c);return sn(m)&&(m=r),Og(cs(c,sn),kt(m,2))}),PN=Xt(function(c){var m=ai(c);return m=typeof m=="function"?m:r,Og(cs(c,sn),r,m)}),kN=Xt(Hg);function $N(c,m){return t3(c||[],m||[],Tc)}function AN(c,m){return t3(c||[],m||[],Ac)}var DN=Xt(function(c){var m=c.length,R=m>1?c[m-1]:r;return R=typeof R=="function"?(c.pop(),R):r,F3(c,R)});function j3(c){var m=W(c);return m.__chain__=!0,m}function MN(c,m){return m(c),c}function Zh(c,m){return m(c)}var NN=Ro(function(c){var m=c.length,R=m?c[0]:0,L=this.__wrapped__,q=function(Y){return hg(Y,c)};return m>1||this.__actions__.length||!(L instanceof tr)||!To(R)?this.thru(q):(L=L.slice(R,+R+(m?1:0)),L.__actions__.push({func:Zh,args:[q],thisArg:r}),new ti(L,this.__chain__).thru(function(Y){return m&&!Y.length&&Y.push(r),Y}))});function IN(){return j3(this)}function FN(){return new ti(this.value(),this.__chain__)}function jN(){this.__values__===r&&(this.__values__=J3(this.value()));var c=this.__index__>=this.__values__.length,m=c?r:this.__values__[this.__index__++];return{done:c,value:m}}function LN(){return this}function zN(c){for(var m,R=this;R instanceof Ih;){var L=$3(R);L.__index__=0,L.__values__=r,m?q.__wrapped__=L:m=L;var q=L;R=R.__wrapped__}return q.__wrapped__=c,m}function BN(){var c=this.__wrapped__;if(c instanceof tr){var m=c;return this.__actions__.length&&(m=new tr(this)),m=m.reverse(),m.__actions__.push({func:Zh,args:[Bg],thisArg:r}),new ti(m,this.__chain__)}return this.thru(Bg)}function HN(){return e3(this.__wrapped__,this.__actions__)}var VN=Vh(function(c,m,R){$r.call(c,R)?++c[R]:Eo(c,R,1)});function UN(c,m,R){var L=Ht(c)?hx:MD;return R&&sa(c,m,R)&&(m=r),L(c,kt(m,3))}function qN(c,m){var R=Ht(c)?cs:Fx;return R(c,kt(m,3))}var WN=d3(A3),YN=d3(D3);function GN(c,m){return Fn(Jh(c,m),1)}function KN(c,m){return Fn(Jh(c,m),M)}function XN(c,m,R){return R=R===r?1:Yt(R),Fn(Jh(c,m),R)}function L3(c,m){var R=Ht(c)?Qa:ps;return R(c,kt(m,3))}function z3(c,m){var R=Ht(c)?m9:Ix;return R(c,kt(m,3))}var ZN=Vh(function(c,m,R){$r.call(c,R)?c[R].push(m):Eo(c,R,[m])});function JN(c,m,R,L){c=va(c)?c:Qu(c),R=R&&!L?Yt(R):0;var q=c.length;return R<0&&(R=gn(q+R,0)),n0(c)?R<=q&&c.indexOf(m,R)>-1:!!q&&Bu(c,m,R)>-1}var QN=Xt(function(c,m,R){var L=-1,q=typeof m=="function",Y=va(c)?ye(c.length):[];return ps(c,function(te){Y[++L]=q?Ta(m,te,R):kc(te,m,R)}),Y}),eI=Vh(function(c,m,R){Eo(c,R,m)});function Jh(c,m){var R=Ht(c)?qr:Vx;return R(c,kt(m,3))}function tI(c,m,R,L){return c==null?[]:(Ht(m)||(m=m==null?[]:[m]),R=L?r:R,Ht(R)||(R=R==null?[]:[R]),Yx(c,m,R))}var rI=Vh(function(c,m,R){c[R?0:1].push(m)},function(){return[[],[]]});function nI(c,m,R){var L=Ht(c)?eg:vx,q=arguments.length<3;return L(c,kt(m,4),R,q,ps)}function aI(c,m,R){var L=Ht(c)?g9:vx,q=arguments.length<3;return L(c,kt(m,4),R,q,Ix)}function iI(c,m){var R=Ht(c)?cs:Fx;return R(c,t0(kt(m,3)))}function oI(c){var m=Ht(c)?Ax:JD;return m(c)}function sI(c,m,R){(R?sa(c,m,R):m===r)?m=1:m=Yt(m);var L=Ht(c)?PD:QD;return L(c,m)}function uI(c){var m=Ht(c)?kD:tM;return m(c)}function lI(c){if(c==null)return 0;if(va(c))return n0(c)?Vu(c):c.length;var m=Zn(c);return m==se||m==Pe?c.size:yg(c).length}function cI(c,m,R){var L=Ht(c)?tg:rM;return R&&sa(c,m,R)&&(m=r),L(c,kt(m,3))}var dI=Xt(function(c,m){if(c==null)return[];var R=m.length;return R>1&&sa(c,m[0],m[1])?m=[]:R>2&&sa(m[0],m[1],m[2])&&(m=[m[0]]),Yx(c,Fn(m,1),[])}),Qh=q9||function(){return In.Date.now()};function fI(c,m){if(typeof m!="function")throw new ei(o);return c=Yt(c),function(){if(--c<1)return m.apply(this,arguments)}}function B3(c,m,R){return m=R?r:m,m=c&&m==null?c.length:m,Oo(c,x,r,r,r,r,m)}function H3(c,m){var R;if(typeof m!="function")throw new ei(o);return c=Yt(c),function(){return--c>0&&(R=m.apply(this,arguments)),c<=1&&(m=r),R}}var Vg=Xt(function(c,m,R){var L=S;if(R.length){var q=fs(R,Zu(Vg));L|=p}return Oo(c,L,m,R,q)}),V3=Xt(function(c,m,R){var L=S|E;if(R.length){var q=fs(R,Zu(V3));L|=p}return Oo(m,L,c,R,q)});function U3(c,m,R){m=R?r:m;var L=Oo(c,C,r,r,r,r,r,m);return L.placeholder=U3.placeholder,L}function q3(c,m,R){m=R?r:m;var L=Oo(c,f,r,r,r,r,r,m);return L.placeholder=q3.placeholder,L}function W3(c,m,R){var L,q,Y,te,oe,ce,Oe=0,Re=!1,Me=!1,Xe=!0;if(typeof c!="function")throw new ei(o);m=ii(m)||0,Gr(R)&&(Re=!!R.leading,Me="maxWait"in R,Y=Me?gn(ii(R.maxWait)||0,m):Y,Xe="trailing"in R?!!R.trailing:Xe);function yt(un){var Si=L,$o=q;return L=q=r,Oe=un,te=c.apply($o,Si),te}function $t(un){return Oe=un,oe=Nc(Jt,m),Re?yt(un):te}function Kt(un){var Si=un-ce,$o=un-Oe,dS=m-Si;return Me?Xn(dS,Y-$o):dS}function At(un){var Si=un-ce,$o=un-Oe;return ce===r||Si>=m||Si<0||Me&&$o>=Y}function Jt(){var un=Qh();if(At(un))return or(un);oe=Nc(Jt,Kt(un))}function or(un){return oe=r,Xe&&L?yt(un):(L=q=r,te)}function Aa(){oe!==r&&r3(oe),Oe=0,L=ce=q=oe=r}function ua(){return oe===r?te:or(Qh())}function Da(){var un=Qh(),Si=At(un);if(L=arguments,q=this,ce=un,Si){if(oe===r)return $t(ce);if(Me)return r3(oe),oe=Nc(Jt,m),yt(ce)}return oe===r&&(oe=Nc(Jt,m)),te}return Da.cancel=Aa,Da.flush=ua,Da}var hI=Xt(function(c,m){return Nx(c,1,m)}),pI=Xt(function(c,m,R){return Nx(c,ii(m)||0,R)});function mI(c){return Oo(c,O)}function e0(c,m){if(typeof c!="function"||m!=null&&typeof m!="function")throw new ei(o);var R=function(){var L=arguments,q=m?m.apply(this,L):L[0],Y=R.cache;if(Y.has(q))return Y.get(q);var te=c.apply(this,L);return R.cache=Y.set(q,te)||Y,te};return R.cache=new(e0.Cache||Co),R}e0.Cache=Co;function t0(c){if(typeof c!="function")throw new ei(o);return function(){var m=arguments;switch(m.length){case 0:return!c.call(this);case 1:return!c.call(this,m[0]);case 2:return!c.call(this,m[0],m[1]);case 3:return!c.call(this,m[0],m[1],m[2])}return!c.apply(this,m)}}function gI(c){return H3(2,c)}var vI=nM(function(c,m){m=m.length==1&&Ht(m[0])?qr(m[0],Pa(kt())):qr(Fn(m,1),Pa(kt()));var R=m.length;return Xt(function(L){for(var q=-1,Y=Xn(L.length,R);++q<Y;)L[q]=m[q].call(this,L[q]);return Ta(c,this,L)})}),Ug=Xt(function(c,m){var R=fs(m,Zu(Ug));return Oo(c,p,r,m,R)}),Y3=Xt(function(c,m){var R=fs(m,Zu(Y3));return Oo(c,v,r,m,R)}),bI=Ro(function(c,m){return Oo(c,k,r,r,r,m)});function yI(c,m){if(typeof c!="function")throw new ei(o);return m=m===r?m:Yt(m),Xt(c,m)}function _I(c,m){if(typeof c!="function")throw new ei(o);return m=m==null?0:gn(Yt(m),0),Xt(function(R){var L=R[m],q=vs(R,0,m);return L&&ds(q,L),Ta(c,this,q)})}function wI(c,m,R){var L=!0,q=!0;if(typeof c!="function")throw new ei(o);return Gr(R)&&(L="leading"in R?!!R.leading:L,q="trailing"in R?!!R.trailing:q),W3(c,m,{leading:L,maxWait:m,trailing:q})}function xI(c){return B3(c,1)}function SI(c,m){return Ug(Tg(m),c)}function CI(){if(!arguments.length)return[];var c=arguments[0];return Ht(c)?c:[c]}function EI(c){return ri(c,b)}function OI(c,m){return m=typeof m=="function"?m:r,ri(c,b,m)}function RI(c){return ri(c,d|b)}function TI(c,m){return m=typeof m=="function"?m:r,ri(c,d|b,m)}function PI(c,m){return m==null||Mx(c,m,En(m))}function xi(c,m){return c===m||c!==c&&m!==m}var kI=Yh(gg),$I=Yh(function(c,m){return c>=m}),Js=zx(function(){return arguments}())?zx:function(c){return Qr(c)&&$r.call(c,"callee")&&!Ox.call(c,"callee")},Ht=ye.isArray,AI=sx?Pa(sx):zD;function va(c){return c!=null&&r0(c.length)&&!Po(c)}function sn(c){return Qr(c)&&va(c)}function DI(c){return c===!0||c===!1||Qr(c)&&oa(c)==de}var bs=Y9||tv,MI=ux?Pa(ux):BD;function NI(c){return Qr(c)&&c.nodeType===1&&!Ic(c)}function II(c){if(c==null)return!0;if(va(c)&&(Ht(c)||typeof c=="string"||typeof c.splice=="function"||bs(c)||Ju(c)||Js(c)))return!c.length;var m=Zn(c);if(m==se||m==Pe)return!c.size;if(Mc(c))return!yg(c).length;for(var R in c)if($r.call(c,R))return!1;return!0}function FI(c,m){return $c(c,m)}function jI(c,m,R){R=typeof R=="function"?R:r;var L=R?R(c,m):r;return L===r?$c(c,m,r,R):!!L}function qg(c){if(!Qr(c))return!1;var m=oa(c);return m==me||m==be||typeof c.message=="string"&&typeof c.name=="string"&&!Ic(c)}function LI(c){return typeof c=="number"&&Tx(c)}function Po(c){if(!Gr(c))return!1;var m=oa(c);return m==ee||m==ve||m==ie||m==xe}function G3(c){return typeof c=="number"&&c==Yt(c)}function r0(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=j}function Gr(c){var m=typeof c;return c!=null&&(m=="object"||m=="function")}function Qr(c){return c!=null&&typeof c=="object"}var K3=lx?Pa(lx):VD;function zI(c,m){return c===m||bg(c,m,Ng(m))}function BI(c,m,R){return R=typeof R=="function"?R:r,bg(c,m,Ng(m),R)}function HI(c){return X3(c)&&c!=+c}function VI(c){if(OM(c))throw new Bt(i);return Bx(c)}function UI(c){return c===null}function qI(c){return c==null}function X3(c){return typeof c=="number"||Qr(c)&&oa(c)==fe}function Ic(c){if(!Qr(c)||oa(c)!=ke)return!1;var m=Ph(c);if(m===null)return!0;var R=$r.call(m,"constructor")&&m.constructor;return typeof R=="function"&&R instanceof R&&Eh.call(R)==B9}var Wg=cx?Pa(cx):UD;function WI(c){return G3(c)&&c>=-9007199254740991&&c<=j}var Z3=dx?Pa(dx):qD;function n0(c){return typeof c=="string"||!Ht(c)&&Qr(c)&&oa(c)==Ne}function $a(c){return typeof c=="symbol"||Qr(c)&&oa(c)==Ee}var Ju=fx?Pa(fx):WD;function YI(c){return c===r}function GI(c){return Qr(c)&&Zn(c)==rt}function KI(c){return Qr(c)&&oa(c)==dt}var XI=Yh(_g),ZI=Yh(function(c,m){return c<=m});function J3(c){if(!c)return[];if(va(c))return n0(c)?_i(c):ga(c);if(Sc&&c[Sc])return P9(c[Sc]());var m=Zn(c),R=m==se?sg:m==Pe?xh:Qu;return R(c)}function ko(c){if(!c)return c===0?c:0;if(c=ii(c),c===M||c===-1/0){var m=c<0?-1:1;return m*H}return c===c?c:0}function Yt(c){var m=ko(c),R=m%1;return m===m?R?m-R:m:0}function Q3(c){return c?Gs(Yt(c),0,U):0}function ii(c){if(typeof c=="number")return c;if($a(c))return z;if(Gr(c)){var m=typeof c.valueOf=="function"?c.valueOf():c;c=Gr(m)?m+"":m}if(typeof c!="string")return c===0?c:+c;c=bx(c);var R=wt.test(c);return R||Ft.test(c)?f9(c.slice(2),R?2:8):it.test(c)?z:+c}function eS(c){return Xi(c,ba(c))}function JI(c){return c?Gs(Yt(c),-9007199254740991,j):c===0?c:0}function xr(c){return c==null?"":ka(c)}var QI=Ku(function(c,m){if(Mc(m)||va(m)){Xi(m,En(m),c);return}for(var R in m)$r.call(m,R)&&Tc(c,R,m[R])}),tS=Ku(function(c,m){Xi(m,ba(m),c)}),a0=Ku(function(c,m,R,L){Xi(m,ba(m),c,L)}),eF=Ku(function(c,m,R,L){Xi(m,En(m),c,L)}),tF=Ro(hg);function rF(c,m){var R=Gu(c);return m==null?R:Dx(R,m)}var nF=Xt(function(c,m){c=jr(c);var R=-1,L=m.length,q=L>2?m[2]:r;for(q&&sa(m[0],m[1],q)&&(L=1);++R<L;)for(var Y=m[R],te=ba(Y),oe=-1,ce=te.length;++oe<ce;){var Oe=te[oe],Re=c[Oe];(Re===r||xi(Re,qu[Oe])&&!$r.call(c,Oe))&&(c[Oe]=Y[Oe])}return c}),aF=Xt(function(c){return c.push(r,b3),Ta(rS,r,c)});function iF(c,m){return px(c,kt(m,3),Ki)}function oF(c,m){return px(c,kt(m,3),mg)}function sF(c,m){return c==null?c:pg(c,kt(m,3),ba)}function uF(c,m){return c==null?c:jx(c,kt(m,3),ba)}function lF(c,m){return c&&Ki(c,kt(m,3))}function cF(c,m){return c&&mg(c,kt(m,3))}function dF(c){return c==null?[]:Lh(c,En(c))}function fF(c){return c==null?[]:Lh(c,ba(c))}function Yg(c,m,R){var L=c==null?r:Ks(c,m);return L===r?R:L}function hF(c,m){return c!=null&&w3(c,m,ID)}function Gg(c,m){return c!=null&&w3(c,m,FD)}var pF=h3(function(c,m,R){m!=null&&typeof m.toString!="function"&&(m=Oh.call(m)),c[m]=R},Xg(ya)),mF=h3(function(c,m,R){m!=null&&typeof m.toString!="function"&&(m=Oh.call(m)),$r.call(c,m)?c[m].push(R):c[m]=[R]},kt),gF=Xt(kc);function En(c){return va(c)?$x(c):yg(c)}function ba(c){return va(c)?$x(c,!0):YD(c)}function vF(c,m){var R={};return m=kt(m,3),Ki(c,function(L,q,Y){Eo(R,m(L,q,Y),L)}),R}function bF(c,m){var R={};return m=kt(m,3),Ki(c,function(L,q,Y){Eo(R,q,m(L,q,Y))}),R}var yF=Ku(function(c,m,R){zh(c,m,R)}),rS=Ku(function(c,m,R,L){zh(c,m,R,L)}),_F=Ro(function(c,m){var R={};if(c==null)return R;var L=!1;m=qr(m,function(Y){return Y=gs(Y,c),L||(L=Y.length>1),Y}),Xi(c,Dg(c),R),L&&(R=ri(R,d|g|b,pM));for(var q=m.length;q--;)Eg(R,m[q]);return R});function wF(c,m){return nS(c,t0(kt(m)))}var xF=Ro(function(c,m){return c==null?{}:KD(c,m)});function nS(c,m){if(c==null)return{};var R=qr(Dg(c),function(L){return[L]});return m=kt(m),Gx(c,R,function(L,q){return m(L,q[0])})}function SF(c,m,R){m=gs(m,c);var L=-1,q=m.length;for(q||(q=1,c=r);++L<q;){var Y=c==null?r:c[Zi(m[L])];Y===r&&(L=q,Y=R),c=Po(Y)?Y.call(c):Y}return c}function CF(c,m,R){return c==null?c:Ac(c,m,R)}function EF(c,m,R,L){return L=typeof L=="function"?L:r,c==null?c:Ac(c,m,R,L)}var aS=g3(En),iS=g3(ba);function OF(c,m,R){var L=Ht(c),q=L||bs(c)||Ju(c);if(m=kt(m,4),R==null){var Y=c&&c.constructor;q?R=L?new Y:[]:Gr(c)?R=Po(Y)?Gu(Ph(c)):{}:R={}}return(q?Qa:Ki)(c,function(te,oe,ce){return m(R,te,oe,ce)}),R}function RF(c,m){return c==null?!0:Eg(c,m)}function TF(c,m,R){return c==null?c:Qx(c,m,Tg(R))}function PF(c,m,R,L){return L=typeof L=="function"?L:r,c==null?c:Qx(c,m,Tg(R),L)}function Qu(c){return c==null?[]:og(c,En(c))}function kF(c){return c==null?[]:og(c,ba(c))}function $F(c,m,R){return R===r&&(R=m,m=r),R!==r&&(R=ii(R),R=R===R?R:0),m!==r&&(m=ii(m),m=m===m?m:0),Gs(ii(c),m,R)}function AF(c,m,R){return m=ko(m),R===r?(R=m,m=0):R=ko(R),c=ii(c),jD(c,m,R)}function DF(c,m,R){if(R&&typeof R!="boolean"&&sa(c,m,R)&&(m=R=r),R===r&&(typeof m=="boolean"?(R=m,m=r):typeof c=="boolean"&&(R=c,c=r)),c===r&&m===r?(c=0,m=1):(c=ko(c),m===r?(m=c,c=0):m=ko(m)),c>m){var L=c;c=m,m=L}if(R||c%1||m%1){var q=Px();return Xn(c+q*(m-c+d9("1e-"+((q+"").length-1))),m)}return xg(c,m)}var MF=Xu(function(c,m,R){return m=m.toLowerCase(),c+(R?oS(m):m)});function oS(c){return Kg(xr(c).toLowerCase())}function sS(c){return c=xr(c),c&&c.replace(Ie,C9).replace(ut,"")}function NF(c,m,R){c=xr(c),m=ka(m);var L=c.length;R=R===r?L:Gs(Yt(R),0,L);var q=R;return R-=m.length,R>=0&&c.slice(R,q)==m}function IF(c){return c=xr(c),c&&cr.test(c)?c.replace(Br,E9):c}function FF(c){return c=xr(c),c&&Ze.test(c)?c.replace(er,"\\$&"):c}var jF=Xu(function(c,m,R){return c+(R?"-":"")+m.toLowerCase()}),LF=Xu(function(c,m,R){return c+(R?" ":"")+m.toLowerCase()}),zF=c3("toLowerCase");function BF(c,m,R){c=xr(c),m=Yt(m);var L=m?Vu(c):0;if(!m||L>=m)return c;var q=(m-L)/2;return Wh(Dh(q),R)+c+Wh(Ah(q),R)}function HF(c,m,R){c=xr(c),m=Yt(m);var L=m?Vu(c):0;return m&&L<m?c+Wh(m-L,R):c}function VF(c,m,R){c=xr(c),m=Yt(m);var L=m?Vu(c):0;return m&&L<m?Wh(m-L,R)+c:c}function UF(c,m,R){return R||m==null?m=0:m&&(m=+m),Z9(xr(c).replace(De,""),m||0)}function qF(c,m,R){return(R?sa(c,m,R):m===r)?m=1:m=Yt(m),Sg(xr(c),m)}function WF(){var c=arguments,m=xr(c[0]);return c.length<3?m:m.replace(c[1],c[2])}var YF=Xu(function(c,m,R){return c+(R?"_":"")+m.toLowerCase()});function GF(c,m,R){return R&&typeof R!="number"&&sa(c,m,R)&&(m=R=r),R=R===r?U:R>>>0,R?(c=xr(c),c&&(typeof m=="string"||m!=null&&!Wg(m))&&(m=ka(m),!m&&Hu(c))?vs(_i(c),0,R):c.split(m,R)):[]}var KF=Xu(function(c,m,R){return c+(R?" ":"")+Kg(m)});function XF(c,m,R){return c=xr(c),R=R==null?0:Gs(Yt(R),0,c.length),m=ka(m),c.slice(R,R+m.length)==m}function ZF(c,m,R){var L=W.templateSettings;R&&sa(c,m,R)&&(m=r),c=xr(c),m=a0({},m,L,v3);var q=a0({},m.imports,L.imports,v3),Y=En(q),te=og(q,Y),oe,ce,Oe=0,Re=m.interpolate||We,Me="__p += '",Xe=ug((m.escape||We).source+"|"+Re.source+"|"+(Re===nt?at:We).source+"|"+(m.evaluate||We).source+"|$","g"),yt="//# sourceURL="+($r.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wc+"]")+`
40
- `;c.replace(Xe,function(At,Jt,or,Aa,ua,Da){return or||(or=Aa),Me+=c.slice(Oe,Da).replace(xt,O9),Jt&&(oe=!0,Me+=`' +
41
- __e(`+Jt+`) +
42
- '`),ua&&(ce=!0,Me+=`';
43
- `+ua+`;
44
- __p += '`),or&&(Me+=`' +
45
- ((__t = (`+or+`)) == null ? '' : __t) +
46
- '`),Oe=Da+At.length,At}),Me+=`';
47
- `;var $t=$r.call(m,"variable")&&m.variable;if(!$t)Me=`with (obj) {
48
- `+Me+`
49
- }
50
- `;else if(Ae.test($t))throw new Bt(s);Me=(ce?Me.replace(Rt,""):Me).replace(qt,"$1").replace(Pr,"$1;"),Me="function("+($t||"obj")+`) {
51
- `+($t?"":`obj || (obj = {});
52
- `)+"var __t, __p = ''"+(oe?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
53
- function print() { __p += __j.call(arguments, '') }
54
- `:`;
55
- `)+Me+`return __p
56
- }`;var Kt=lS(function(){return yr(Y,yt+"return "+Me).apply(r,te)});if(Kt.source=Me,qg(Kt))throw Kt;return Kt}function JF(c){return xr(c).toLowerCase()}function QF(c){return xr(c).toUpperCase()}function ej(c,m,R){if(c=xr(c),c&&(R||m===r))return bx(c);if(!c||!(m=ka(m)))return c;var L=_i(c),q=_i(m),Y=yx(L,q),te=_x(L,q)+1;return vs(L,Y,te).join("")}function tj(c,m,R){if(c=xr(c),c&&(R||m===r))return c.slice(0,xx(c)+1);if(!c||!(m=ka(m)))return c;var L=_i(c),q=_x(L,_i(m))+1;return vs(L,0,q).join("")}function rj(c,m,R){if(c=xr(c),c&&(R||m===r))return c.replace(De,"");if(!c||!(m=ka(m)))return c;var L=_i(c),q=yx(L,_i(m));return vs(L,q).join("")}function nj(c,m){var R=$,L=D;if(Gr(m)){var q="separator"in m?m.separator:q;R="length"in m?Yt(m.length):R,L="omission"in m?ka(m.omission):L}c=xr(c);var Y=c.length;if(Hu(c)){var te=_i(c);Y=te.length}if(R>=Y)return c;var oe=R-Vu(L);if(oe<1)return L;var ce=te?vs(te,0,oe).join(""):c.slice(0,oe);if(q===r)return ce+L;if(te&&(oe+=ce.length-oe),Wg(q)){if(c.slice(oe).search(q)){var Oe,Re=ce;for(q.global||(q=ug(q.source,xr(ht.exec(q))+"g")),q.lastIndex=0;Oe=q.exec(Re);)var Me=Oe.index;ce=ce.slice(0,Me===r?oe:Me)}}else if(c.indexOf(ka(q),oe)!=oe){var Xe=ce.lastIndexOf(q);Xe>-1&&(ce=ce.slice(0,Xe))}return ce+L}function aj(c){return c=xr(c),c&&wr.test(c)?c.replace(gr,D9):c}var ij=Xu(function(c,m,R){return c+(R?" ":"")+m.toUpperCase()}),Kg=c3("toUpperCase");function uS(c,m,R){return c=xr(c),m=R?r:m,m===r?T9(c)?I9(c):y9(c):c.match(m)||[]}var lS=Xt(function(c,m){try{return Ta(c,r,m)}catch(R){return qg(R)?R:new Bt(R)}}),oj=Ro(function(c,m){return Qa(m,function(R){R=Zi(R),Eo(c,R,Vg(c[R],c))}),c});function sj(c){var m=c==null?0:c.length,R=kt();return c=m?qr(c,function(L){if(typeof L[1]!="function")throw new ei(o);return[R(L[0]),L[1]]}):[],Xt(function(L){for(var q=-1;++q<m;){var Y=c[q];if(Ta(Y[0],this,L))return Ta(Y[1],this,L)}})}function uj(c){return DD(ri(c,d))}function Xg(c){return function(){return c}}function lj(c,m){return c==null||c!==c?m:c}var cj=f3(),dj=f3(!0);function ya(c){return c}function Zg(c){return Hx(typeof c=="function"?c:ri(c,d))}function fj(c){return Ux(ri(c,d))}function hj(c,m){return qx(c,ri(m,d))}var pj=Xt(function(c,m){return function(R){return kc(R,c,m)}}),mj=Xt(function(c,m){return function(R){return kc(c,R,m)}});function Jg(c,m,R){var L=En(m),q=Lh(m,L);R==null&&!(Gr(m)&&(q.length||!L.length))&&(R=m,m=c,c=this,q=Lh(m,En(m)));var Y=!(Gr(R)&&"chain"in R)||!!R.chain,te=Po(c);return Qa(q,function(oe){var ce=m[oe];c[oe]=ce,te&&(c.prototype[oe]=function(){var Oe=this.__chain__;if(Y||Oe){var Re=c(this.__wrapped__),Me=Re.__actions__=ga(this.__actions__);return Me.push({func:ce,args:arguments,thisArg:c}),Re.__chain__=Oe,Re}return ce.apply(c,ds([this.value()],arguments))})}),c}function gj(){return In._===this&&(In._=H9),this}function Qg(){}function vj(c){return c=Yt(c),Xt(function(m){return Wx(m,c)})}var bj=kg(qr),yj=kg(hx),_j=kg(tg);function cS(c){return Fg(c)?rg(Zi(c)):XD(c)}function wj(c){return function(m){return c==null?r:Ks(c,m)}}var xj=p3(),Sj=p3(!0);function ev(){return[]}function tv(){return!1}function Cj(){return{}}function Ej(){return""}function Oj(){return!0}function Rj(c,m){if(c=Yt(c),c<1||c>j)return[];var R=U,L=Xn(c,U);m=kt(m),c-=U;for(var q=ig(L,m);++R<c;)m(R);return q}function Tj(c){return Ht(c)?qr(c,Zi):$a(c)?[c]:ga(k3(xr(c)))}function Pj(c){var m=++z9;return xr(c)+m}var kj=qh(function(c,m){return c+m},0),$j=$g("ceil"),Aj=qh(function(c,m){return c/m},1),Dj=$g("floor");function Mj(c){return c&&c.length?jh(c,ya,gg):r}function Nj(c,m){return c&&c.length?jh(c,kt(m,2),gg):r}function Ij(c){return gx(c,ya)}function Fj(c,m){return gx(c,kt(m,2))}function jj(c){return c&&c.length?jh(c,ya,_g):r}function Lj(c,m){return c&&c.length?jh(c,kt(m,2),_g):r}var zj=qh(function(c,m){return c*m},1),Bj=$g("round"),Hj=qh(function(c,m){return c-m},0);function Vj(c){return c&&c.length?ag(c,ya):0}function Uj(c,m){return c&&c.length?ag(c,kt(m,2)):0}return W.after=fI,W.ary=B3,W.assign=QI,W.assignIn=tS,W.assignInWith=a0,W.assignWith=eF,W.at=tF,W.before=H3,W.bind=Vg,W.bindAll=oj,W.bindKey=V3,W.castArray=CI,W.chain=j3,W.chunk=DM,W.compact=MM,W.concat=NM,W.cond=sj,W.conforms=uj,W.constant=Xg,W.countBy=VN,W.create=rF,W.curry=U3,W.curryRight=q3,W.debounce=W3,W.defaults=nF,W.defaultsDeep=aF,W.defer=hI,W.delay=pI,W.difference=IM,W.differenceBy=FM,W.differenceWith=jM,W.drop=LM,W.dropRight=zM,W.dropRightWhile=BM,W.dropWhile=HM,W.fill=VM,W.filter=qN,W.flatMap=GN,W.flatMapDeep=KN,W.flatMapDepth=XN,W.flatten=M3,W.flattenDeep=UM,W.flattenDepth=qM,W.flip=mI,W.flow=cj,W.flowRight=dj,W.fromPairs=WM,W.functions=dF,W.functionsIn=fF,W.groupBy=ZN,W.initial=GM,W.intersection=KM,W.intersectionBy=XM,W.intersectionWith=ZM,W.invert=pF,W.invertBy=mF,W.invokeMap=QN,W.iteratee=Zg,W.keyBy=eI,W.keys=En,W.keysIn=ba,W.map=Jh,W.mapKeys=vF,W.mapValues=bF,W.matches=fj,W.matchesProperty=hj,W.memoize=e0,W.merge=yF,W.mergeWith=rS,W.method=pj,W.methodOf=mj,W.mixin=Jg,W.negate=t0,W.nthArg=vj,W.omit=_F,W.omitBy=wF,W.once=gI,W.orderBy=tI,W.over=bj,W.overArgs=vI,W.overEvery=yj,W.overSome=_j,W.partial=Ug,W.partialRight=Y3,W.partition=rI,W.pick=xF,W.pickBy=nS,W.property=cS,W.propertyOf=wj,W.pull=tN,W.pullAll=I3,W.pullAllBy=rN,W.pullAllWith=nN,W.pullAt=aN,W.range=xj,W.rangeRight=Sj,W.rearg=bI,W.reject=iI,W.remove=iN,W.rest=yI,W.reverse=Bg,W.sampleSize=sI,W.set=CF,W.setWith=EF,W.shuffle=uI,W.slice=oN,W.sortBy=dI,W.sortedUniq=hN,W.sortedUniqBy=pN,W.split=GF,W.spread=_I,W.tail=mN,W.take=gN,W.takeRight=vN,W.takeRightWhile=bN,W.takeWhile=yN,W.tap=MN,W.throttle=wI,W.thru=Zh,W.toArray=J3,W.toPairs=aS,W.toPairsIn=iS,W.toPath=Tj,W.toPlainObject=eS,W.transform=OF,W.unary=xI,W.union=_N,W.unionBy=wN,W.unionWith=xN,W.uniq=SN,W.uniqBy=CN,W.uniqWith=EN,W.unset=RF,W.unzip=Hg,W.unzipWith=F3,W.update=TF,W.updateWith=PF,W.values=Qu,W.valuesIn=kF,W.without=ON,W.words=uS,W.wrap=SI,W.xor=RN,W.xorBy=TN,W.xorWith=PN,W.zip=kN,W.zipObject=$N,W.zipObjectDeep=AN,W.zipWith=DN,W.entries=aS,W.entriesIn=iS,W.extend=tS,W.extendWith=a0,Jg(W,W),W.add=kj,W.attempt=lS,W.camelCase=MF,W.capitalize=oS,W.ceil=$j,W.clamp=$F,W.clone=EI,W.cloneDeep=RI,W.cloneDeepWith=TI,W.cloneWith=OI,W.conformsTo=PI,W.deburr=sS,W.defaultTo=lj,W.divide=Aj,W.endsWith=NF,W.eq=xi,W.escape=IF,W.escapeRegExp=FF,W.every=UN,W.find=WN,W.findIndex=A3,W.findKey=iF,W.findLast=YN,W.findLastIndex=D3,W.findLastKey=oF,W.floor=Dj,W.forEach=L3,W.forEachRight=z3,W.forIn=sF,W.forInRight=uF,W.forOwn=lF,W.forOwnRight=cF,W.get=Yg,W.gt=kI,W.gte=$I,W.has=hF,W.hasIn=Gg,W.head=N3,W.identity=ya,W.includes=JN,W.indexOf=YM,W.inRange=AF,W.invoke=gF,W.isArguments=Js,W.isArray=Ht,W.isArrayBuffer=AI,W.isArrayLike=va,W.isArrayLikeObject=sn,W.isBoolean=DI,W.isBuffer=bs,W.isDate=MI,W.isElement=NI,W.isEmpty=II,W.isEqual=FI,W.isEqualWith=jI,W.isError=qg,W.isFinite=LI,W.isFunction=Po,W.isInteger=G3,W.isLength=r0,W.isMap=K3,W.isMatch=zI,W.isMatchWith=BI,W.isNaN=HI,W.isNative=VI,W.isNil=qI,W.isNull=UI,W.isNumber=X3,W.isObject=Gr,W.isObjectLike=Qr,W.isPlainObject=Ic,W.isRegExp=Wg,W.isSafeInteger=WI,W.isSet=Z3,W.isString=n0,W.isSymbol=$a,W.isTypedArray=Ju,W.isUndefined=YI,W.isWeakMap=GI,W.isWeakSet=KI,W.join=JM,W.kebabCase=jF,W.last=ai,W.lastIndexOf=QM,W.lowerCase=LF,W.lowerFirst=zF,W.lt=XI,W.lte=ZI,W.max=Mj,W.maxBy=Nj,W.mean=Ij,W.meanBy=Fj,W.min=jj,W.minBy=Lj,W.stubArray=ev,W.stubFalse=tv,W.stubObject=Cj,W.stubString=Ej,W.stubTrue=Oj,W.multiply=zj,W.nth=eN,W.noConflict=gj,W.noop=Qg,W.now=Qh,W.pad=BF,W.padEnd=HF,W.padStart=VF,W.parseInt=UF,W.random=DF,W.reduce=nI,W.reduceRight=aI,W.repeat=qF,W.replace=WF,W.result=SF,W.round=Bj,W.runInContext=le,W.sample=oI,W.size=lI,W.snakeCase=YF,W.some=cI,W.sortedIndex=sN,W.sortedIndexBy=uN,W.sortedIndexOf=lN,W.sortedLastIndex=cN,W.sortedLastIndexBy=dN,W.sortedLastIndexOf=fN,W.startCase=KF,W.startsWith=XF,W.subtract=Hj,W.sum=Vj,W.sumBy=Uj,W.template=ZF,W.times=Rj,W.toFinite=ko,W.toInteger=Yt,W.toLength=Q3,W.toLower=JF,W.toNumber=ii,W.toSafeInteger=JI,W.toString=xr,W.toUpper=QF,W.trim=ej,W.trimEnd=tj,W.trimStart=rj,W.truncate=nj,W.unescape=aj,W.uniqueId=Pj,W.upperCase=ij,W.upperFirst=Kg,W.each=L3,W.eachRight=z3,W.first=N3,Jg(W,function(){var c={};return Ki(W,function(m,R){$r.call(W.prototype,R)||(c[R]=m)}),c}(),{chain:!1}),W.VERSION=n,Qa(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){W[c].placeholder=W}),Qa(["drop","take"],function(c,m){tr.prototype[c]=function(R){R=R===r?1:gn(Yt(R),0);var L=this.__filtered__&&!m?new tr(this):this.clone();return L.__filtered__?L.__takeCount__=Xn(R,L.__takeCount__):L.__views__.push({size:Xn(R,U),type:c+(L.__dir__<0?"Right":"")}),L},tr.prototype[c+"Right"]=function(R){return this.reverse()[c](R).reverse()}}),Qa(["filter","map","takeWhile"],function(c,m){var R=m+1,L=R==N||R==T;tr.prototype[c]=function(q){var Y=this.clone();return Y.__iteratees__.push({iteratee:kt(q,3),type:R}),Y.__filtered__=Y.__filtered__||L,Y}}),Qa(["head","last"],function(c,m){var R="take"+(m?"Right":"");tr.prototype[c]=function(){return this[R](1).value()[0]}}),Qa(["initial","tail"],function(c,m){var R="drop"+(m?"":"Right");tr.prototype[c]=function(){return this.__filtered__?new tr(this):this[R](1)}}),tr.prototype.compact=function(){return this.filter(ya)},tr.prototype.find=function(c){return this.filter(c).head()},tr.prototype.findLast=function(c){return this.reverse().find(c)},tr.prototype.invokeMap=Xt(function(c,m){return typeof c=="function"?new tr(this):this.map(function(R){return kc(R,c,m)})}),tr.prototype.reject=function(c){return this.filter(t0(kt(c)))},tr.prototype.slice=function(c,m){c=Yt(c);var R=this;return R.__filtered__&&(c>0||m<0)?new tr(R):(c<0?R=R.takeRight(-c):c&&(R=R.drop(c)),m!==r&&(m=Yt(m),R=m<0?R.dropRight(-m):R.take(m-c)),R)},tr.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},tr.prototype.toArray=function(){return this.take(U)},Ki(tr.prototype,function(c,m){var R=/^(?:filter|find|map|reject)|While$/.test(m),L=/^(?:head|last)$/.test(m),q=W[L?"take"+(m=="last"?"Right":""):m],Y=L||/^find/.test(m);q&&(W.prototype[m]=function(){var te=this.__wrapped__,oe=L?[1]:arguments,ce=te instanceof tr,Oe=oe[0],Re=ce||Ht(te),Me=function(Jt){var or=q.apply(W,ds([Jt],oe));return L&&Xe?or[0]:or};Re&&R&&typeof Oe=="function"&&Oe.length!=1&&(ce=Re=!1);var Xe=this.__chain__,yt=!!this.__actions__.length,$t=Y&&!Xe,Kt=ce&&!yt;if(!Y&&Re){te=Kt?te:new tr(this);var At=c.apply(te,oe);return At.__actions__.push({func:Zh,args:[Me],thisArg:r}),new ti(At,Xe)}return $t&&Kt?c.apply(this,oe):(At=this.thru(Me),$t?L?At.value()[0]:At.value():At)})}),Qa(["pop","push","shift","sort","splice","unshift"],function(c){var m=Sh[c],R=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",L=/^(?:pop|shift)$/.test(c);W.prototype[c]=function(){var q=arguments;if(L&&!this.__chain__){var Y=this.value();return m.apply(Ht(Y)?Y:[],q)}return this[R](function(te){return m.apply(Ht(te)?te:[],q)})}}),Ki(tr.prototype,function(c,m){var R=W[m];if(R){var L=R.name+"";$r.call(Yu,L)||(Yu[L]=[]),Yu[L].push({name:m,func:R})}}),Yu[Uh(r,E).name]=[{name:"wrapper",func:r}],tr.prototype.clone=aD,tr.prototype.reverse=iD,tr.prototype.value=oD,W.prototype.at=NN,W.prototype.chain=IN,W.prototype.commit=FN,W.prototype.next=jN,W.prototype.plant=zN,W.prototype.reverse=BN,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=HN,W.prototype.first=W.prototype.head,Sc&&(W.prototype[Sc]=LN),W},Uu=F9();Us?((Us.exports=Uu)._=Uu,Zm._=Uu):In._=Uu}).call(iL)}(Vd,Vd.exports)),Vd.exports}var _e=oL();const sL=({prefixCls:e="frontend",...t},r)=>{ue.ConfigProvider.config({prefixCls:e});const n=A.createElement(ue.ConfigProvider,{prefixCls:e,locale:aL,input:{autoComplete:"off"},autoInsertSpaceInButton:!1},t.children);return B.jsx(Vf.Provider,{value:t.contextData,children:B.jsx(ue.ConfigProvider,{theme:{token:{colorPrimary:"#0563B2",colorText:"#2c3652",fontSize:12},..._e.omit(t,"children")},children:n})})};var uv={exports:{}};/*!
57
- Copyright (c) 2018 Jed Watson.
58
- Licensed under the MIT License (MIT), see
59
- http://jedwatson.github.io/classnames
60
- */var PS;function uL(){return PS||(PS=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(uv)),uv.exports}var lL=uL();const ge=$n(lL),cL="_main_5bucb_1",lv={main:cL};var cv={exports:{}},kS;function dL(){return kS||(kS=1,function(e){e.exports=function(t){var r={};function n(a){if(r[a])return r[a].exports;var i=r[a]={exports:{},id:a,loaded:!1};return t[a].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=r,n.p="",n(0)}([function(t,r,n){t.exports=n(1)},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});function a(s){return s&&s.__esModule?s:{default:s}}var i=n(2),o=a(i);r.default=o.default,t.exports=r.default},function(t,r,n){Object.defineProperty(r,"__esModule",{value:!0});var a=Object.assign||function(g){for(var b=1;b<arguments.length;b++){var y=arguments[b];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(g[w]=y[w])}return g};r.default=d;function i(g){return g&&g.__esModule?g:{default:g}}function o(g,b){var y={};for(var w in g)b.indexOf(w)>=0||Object.prototype.hasOwnProperty.call(g,w)&&(y[w]=g[w]);return y}var s=n(3),u=n(4),l=n(5),h=i(l);function d(g){var b=g.activeClassName,y=b===void 0?"":b,w=g.activeIndex,S=w===void 0?-1:w,E=g.activeStyle,_=g.autoEscape,C=g.caseSensitive,f=C===void 0?!1:C,p=g.className,v=g.findChunks,x=g.highlightClassName,k=x===void 0?"":x,O=g.highlightStyle,$=O===void 0?{}:O,D=g.highlightTag,V=D===void 0?"mark":D,I=g.sanitize,N=g.searchWords,F=g.textToHighlight,T=g.unhighlightTag,M=T===void 0?"span":T,j=g.unhighlightClassName,H=j===void 0?"":j,z=g.unhighlightStyle,U=o(g,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),G=(0,s.findAll)({autoEscape:_,caseSensitive:f,findChunks:v,sanitize:I,searchWords:N,textToHighlight:F}),X=V,K=-1,ne="",ae=void 0,ie=function(be){var me={};for(var ee in be)me[ee.toLowerCase()]=be[ee];return me},de=(0,h.default)(ie);return(0,u.createElement)("span",a({className:p},U,{children:G.map(function(pe,be){var me=F.substr(pe.start,pe.end-pe.start);if(pe.highlight){K++;var ee=void 0;typeof k=="object"?f?ee=k[me]:(k=de(k),ee=k[me.toLowerCase()]):ee=k;var ve=K===+S;ne=ee+" "+(ve?y:""),ae=ve===!0&&E!=null?Object.assign({},$,E):$;var se={children:me,className:ne,key:be,style:ae};return typeof X!="string"&&(se.highlightIndex=K),(0,u.createElement)(X,se)}else return(0,u.createElement)(M,{children:me,className:H,key:be,style:z})})}))}t.exports=r.default},function(t,r){t.exports=function(n){var a={};function i(o){if(a[o])return a[o].exports;var s=a[o]={exports:{},id:o,loaded:!1};return n[o].call(s.exports,s,s.exports,i),s.loaded=!0,s.exports}return i.m=n,i.c=a,i.p="",i(0)}([function(n,a,i){n.exports=i(1)},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var o=i(2);Object.defineProperty(a,"combineChunks",{enumerable:!0,get:function(){return o.combineChunks}}),Object.defineProperty(a,"fillInChunks",{enumerable:!0,get:function(){return o.fillInChunks}}),Object.defineProperty(a,"findAll",{enumerable:!0,get:function(){return o.findAll}}),Object.defineProperty(a,"findChunks",{enumerable:!0,get:function(){return o.findChunks}})},function(n,a){Object.defineProperty(a,"__esModule",{value:!0}),a.findAll=function(d){var g=d.autoEscape,b=d.caseSensitive,y=b===void 0?!1:b,w=d.findChunks,S=w===void 0?o:w,E=d.sanitize,_=d.searchWords,C=d.textToHighlight;return s({chunksToHighlight:i({chunks:S({autoEscape:g,caseSensitive:y,sanitize:E,searchWords:_,textToHighlight:C})}),totalLength:C?C.length:0})};var i=a.combineChunks=function(d){var g=d.chunks;return g=g.sort(function(b,y){return b.start-y.start}).reduce(function(b,y){if(b.length===0)return[y];var w=b.pop();if(y.start<=w.end){var S=Math.max(w.end,y.end);b.push({start:w.start,end:S})}else b.push(w,y);return b},[]),g},o=function(d){var g=d.autoEscape,b=d.caseSensitive,y=d.sanitize,w=y===void 0?u:y,S=d.searchWords,E=d.textToHighlight;return E=w(E),S.filter(function(_){return _}).reduce(function(_,C){C=w(C),g&&(C=l(C));for(var f=new RegExp(C,b?"g":"gi"),p=void 0;p=f.exec(E);){var v=p.index,x=f.lastIndex;x>v&&_.push({start:v,end:x}),p.index==f.lastIndex&&f.lastIndex++}return _},[])};a.findChunks=o;var s=a.fillInChunks=function(d){var g=d.chunksToHighlight,b=d.totalLength,y=[],w=function(_,C,f){C-_>0&&y.push({start:_,end:C,highlight:f})};if(g.length===0)w(0,b,!1);else{var S=0;g.forEach(function(E){w(S,E.start,!1),w(E.start,E.end,!0),S=E.end}),w(S,b,!1)}return y};function u(h){return h}function l(h){return h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(t,r){t.exports=A},function(t,r){var n=function(o,s){return o===s};function a(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,s=void 0,u=[],l=void 0,h=!1,d=function(y,w){return o(y,u[w])},g=function(){for(var y=arguments.length,w=Array(y),S=0;S<y;S++)w[S]=arguments[S];return h&&s===this&&w.length===u.length&&w.every(d)||(h=!0,s=this,u=w,l=i.apply(this,w)),l};return g}t.exports=a}])}(cv)),cv.exports}var fL=dL();const tm=$n(fL),hL="_mosaic_1jpg5_1",pL={mosaic:hL},co=e=>B.jsx("span",{className:pL.mosaic,style:{display:e.inLine?"inline-block":"block"}}),Tl=class Tl{readPermission(t){return!["1999-09-09 09:09:09",Tl.mosaic,"1999-09-09 09:09:9"].includes(t)}handlingError(t){return t=="1970-01-01 08:00:00"?"":t}hasAuthority(t,r){return this.readPermission(t[r])&&t[r]!==void 0}isMosaic(t){return t===Tl.mosaic}mosaicBlank(t){return t==Tl.mosaic?"":t||""}};Dr(Tl,"mosaic","~#~");let ey=Tl;class mL extends ey{constructor(){super(...arguments);Dr(this,"mosaic","~#~")}displayData(r,n=!0){return this.readPermission(r)?this.handlingError(r):B.jsx(co,{inLine:n})}renderIsMosaic(r,n,a=!0){return this.readPermission(r)?n:B.jsx(co,{inLine:a})}}const fi=new mL,gu=e=>{var o;const{Option:t}=ue.Select,r={...e},[n,a]=A.useState(""),i=(s,u)=>B.jsx(tm,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[u?u.toString():""],autoEscape:!0,textToHighlight:s?s.toString():""});return r.loading?B.jsx(ue.Select,{value:"",open:!1,loading:!0}):B.jsx(ue.Select,{style:{...r.style,width:"100%"},className:ge(lv.main,r.className,{rrrrr:!0,[lv.pane]:e.pane}),..._e.omit(r,["options"]),onSearch:s=>{a(s)},filterOption:(s,u)=>u.label&&u.label.indexOf(s)>=0,dropdownClassName:lv.plm_select_dropdown,showSearch:!0,allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",children:(o=e.options)==null?void 0:o.map(s=>fi.isMosaic(s.label)?B.jsx(t,{disabled:!0,children:B.jsx(co,{})}):A.createElement(t,{...s,value:s.value,disabled:s.disabled,key:s.value,label:s.label},B.jsx("div",{title:s.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:i(s.label,n)})))})},gL="_AliIconFont_v828e_1",vL="_iconText_v828e_2",bL="_disabled_v828e_9",yL="_placementColor_v828e_28",_L="_classNameDisabled_v828e_33",wL="_placementIcon_v828e_37",xL="_btn_convider_v828e_40",SL="_btn_icon_v828e_40",CL="_omitPoint_v828e_57",EL="_holdDeleteIconDiv_v828e_68",OL="_holdDeleteIcon_v828e_68",Jn={AliIconFont:gL,iconText:vL,disabled:bL,placementColor:yL,classNameDisabled:_L,placementIcon:wL,btn_convider:xL,btn_icon:SL,omitPoint:CL,holdDeleteIconDiv:EL,holdDeleteIcon:OL};var rw=A.createContext({});function pt(e){"@babel/helpers - typeof";return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pt(e)}function RL(e,t){if(pt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o5(e){var t=RL(e,"string");return pt(t)=="symbol"?t:t+""}function re(e,t,r){return(t=o5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$S(Object(r),!0).forEach(function(n){re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$S(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s5(e){if(Array.isArray(e))return e}function TL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(h){l=!0,a=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}function ty(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function nw(e,t){if(e){if(typeof e=="string")return ty(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ty(e,t):void 0}}function u5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we(e,t){return s5(e)||TL(e,t)||nw(e,t)||u5()}function PL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function sr(e,t){if(e==null)return{};var r,n,a=PL(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function hi(e,t){kL(e)&&(e="100%");var r=$L(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function kL(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $L(e){return typeof e=="string"&&e.indexOf("%")!==-1}function AL(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function o0(e){return e<=1?"".concat(Number(e)*100,"%"):e}function dv(e){return e.length===1?"0"+e:String(e)}function DL(e,t,r){return{r:hi(e,255)*255,g:hi(t,255)*255,b:hi(r,255)*255}}function fv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ML(e,t,r){var n,a,i;if(e=hi(e,360),t=hi(t,100),r=hi(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=fv(s,o,e+1/3),a=fv(s,o,e),i=fv(s,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function NL(e,t,r){e=hi(e,255),t=hi(t,255),r=hi(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,s=n-a,u=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,v:o}}function IL(e,t,r){e=hi(e,360)*6,t=hi(t,100),r=hi(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),u=n%6,l=[r,o,i,i,s,r][u],h=[s,r,r,o,i,i][u],d=[i,i,s,r,r,o][u];return{r:l*255,g:h*255,b:d*255}}function FL(e,t,r,n){var a=[dv(Math.round(e).toString(16)),dv(Math.round(t).toString(16)),dv(Math.round(r).toString(16))];return a.join("")}function AS(e){return za(e)/255}function za(e){return parseInt(e,16)}var DS={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 Wc(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=zL(e)),typeof e=="object"&&(Ao(e.r)&&Ao(e.g)&&Ao(e.b)?(t=DL(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ao(e.h)&&Ao(e.s)&&Ao(e.v)?(n=o0(e.s),a=o0(e.v),t=IL(e.h,n,a),o=!0,s="hsv"):Ao(e.h)&&Ao(e.s)&&Ao(e.l)&&(n=o0(e.s),i=o0(e.l),t=ML(e.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=AL(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var jL="[-\\+]?\\d+%?",LL="[-\\+]?\\d*\\.\\d+%?",ks="(?:".concat(LL,")|(?:").concat(jL,")"),hv="[\\s|\\(]+(".concat(ks,")[,|\\s]+(").concat(ks,")[,|\\s]+(").concat(ks,")\\s*\\)?"),pv="[\\s|\\(]+(".concat(ks,")[,|\\s]+(").concat(ks,")[,|\\s]+(").concat(ks,")[,|\\s]+(").concat(ks,")\\s*\\)?"),Ei={CSS_UNIT:new RegExp(ks),rgb:new RegExp("rgb"+hv),rgba:new RegExp("rgba"+pv),hsl:new RegExp("hsl"+hv),hsla:new RegExp("hsla"+pv),hsv:new RegExp("hsv"+hv),hsva:new RegExp("hsva"+pv),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 zL(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(DS[e])e=DS[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Ei.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Ei.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Ei.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Ei.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Ei.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Ei.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Ei.hex8.exec(e),r?{r:za(r[1]),g:za(r[2]),b:za(r[3]),a:AS(r[4]),format:t?"name":"hex8"}:(r=Ei.hex6.exec(e),r?{r:za(r[1]),g:za(r[2]),b:za(r[3]),format:t?"name":"hex"}:(r=Ei.hex4.exec(e),r?{r:za(r[1]+r[1]),g:za(r[2]+r[2]),b:za(r[3]+r[3]),a:AS(r[4]+r[4]),format:t?"name":"hex8"}:(r=Ei.hex3.exec(e),r?{r:za(r[1]+r[1]),g:za(r[2]+r[2]),b:za(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Ao(e){return!!Ei.CSS_UNIT.exec(String(e))}var s0=2,MS=.16,BL=.05,HL=.05,VL=.15,l5=5,c5=4,UL=[{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 NS(e){var t=e.r,r=e.g,n=e.b,a=NL(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function u0(e){var t=e.r,r=e.g,n=e.b;return"#".concat(FL(t,r,n))}function qL(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function IS(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-s0*t:Math.round(e.h)+s0*t:n=r?Math.round(e.h)+s0*t:Math.round(e.h)-s0*t,n<0?n+=360:n>=360&&(n-=360),n}function FS(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-MS*t:t===c5?n=e.s+MS:n=e.s+BL*t,n>1&&(n=1),r&&t===l5&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function jS(e,t,r){var n;return r?n=e.v+HL*t:n=e.v-VL*t,n>1&&(n=1),Number(n.toFixed(2))}function ry(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Wc(e),a=l5;a>0;a-=1){var i=NS(n),o=u0(Wc({h:IS(i,a,!0),s:FS(i,a,!0),v:jS(i,a,!0)}));r.push(o)}r.push(u0(n));for(var s=1;s<=c5;s+=1){var u=NS(n),l=u0(Wc({h:IS(u,s),s:FS(u,s),v:jS(u,s)}));r.push(l)}return t.theme==="dark"?UL.map(function(h){var d=h.index,g=h.opacity,b=u0(qL(Wc(t.backgroundColor||"#141414"),Wc(r[d]),g*100));return b}):r}var mv={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},gv={},vv={};Object.keys(mv).forEach(function(e){gv[e]=ry(mv[e]),gv[e].primary=gv[e][5],vv[e]=ry(mv[e],{theme:"dark",backgroundColor:"#141414"}),vv[e].primary=vv[e][5]});var ny={},aw=[],WL=function(t){aw.push(t)};function Eu(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=aw.reduce(function(n,a){return a(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function YL(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=aw.reduce(function(n,a){return a(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function d5(){ny={}}function f5(e,t,r){!t&&!ny[r]&&(e(!1,r),ny[r]=!0)}function Ut(e,t){f5(Eu,e,t)}function ay(e,t){f5(YL,e,t)}Ut.preMessage=WL;Ut.resetWarned=d5;Ut.noteOnce=ay;function ea(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function GL(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var LS="data-rc-order",zS="data-rc-priority",KL="rc-util-key",iy=new Map;function h5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):KL}function rm(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function XL(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function iw(e){return Array.from((iy.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function p5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ea())return null;var r=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,o=XL(n),s=o==="prependQueue",u=document.createElement("style");u.setAttribute(LS,o),s&&i&&u.setAttribute(zS,"".concat(i)),r!=null&&r.nonce&&(u.nonce=r==null?void 0:r.nonce),u.innerHTML=e;var l=rm(t),h=l.firstChild;if(n){if(s){var d=(t.styles||iw(l)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(LS)))return!1;var b=Number(g.getAttribute(zS)||0);return i>=b});if(d.length)return l.insertBefore(u,d[d.length-1].nextSibling),u}l.insertBefore(u,h)}else l.appendChild(u);return u}function m5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=rm(t);return(t.styles||iw(r)).find(function(n){return n.getAttribute(h5(t))===e})}function hf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=m5(e,t);if(r){var n=rm(t);n.removeChild(r)}}function ZL(e,t){var r=iy.get(e);if(!r||!GL(document,r)){var n=p5("",t),a=n.parentNode;iy.set(e,a),e.removeChild(n)}}function Li(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=rm(r),a=iw(n),i=Q(Q({},r),{},{styles:a});ZL(n,i);var o=m5(t,i);if(o){var s,u;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var l;o.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var h=p5(e,i);return h.setAttribute(h5(i),t),h}var bv,BS;function JL(){if(BS)return bv;BS=1;var e=typeof Mi=="object"&&Mi&&Mi.Object===Object&&Mi;return bv=e,bv}var yv,HS;function g5(){if(HS)return yv;HS=1;var e=JL(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return yv=r,yv}var _v,VS;function ow(){if(VS)return _v;VS=1;var e=g5(),t=e.Symbol;return _v=t,_v}var wv,US;function QL(){if(US)return wv;US=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return wv=e,wv}var xv,qS;function ez(){if(qS)return xv;qS=1;var e=Array.isArray;return xv=e,xv}var Sv,WS;function tz(){if(WS)return Sv;WS=1;var e=ow(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(o){var s=r.call(o,a),u=o[a];try{o[a]=void 0;var l=!0}catch{}var h=n.call(o);return l&&(s?o[a]=u:delete o[a]),h}return Sv=i,Sv}var Cv,YS;function rz(){if(YS)return Cv;YS=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Cv=r,Cv}var Ev,GS;function v5(){if(GS)return Ev;GS=1;var e=ow(),t=tz(),r=rz(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?t(s):r(s)}return Ev=o,Ev}var Ov,KS;function b5(){if(KS)return Ov;KS=1;function e(t){return t!=null&&typeof t=="object"}return Ov=e,Ov}var Rv,XS;function y5(){if(XS)return Rv;XS=1;var e=v5(),t=b5(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Rv=n,Rv}var Tv,ZS;function nz(){if(ZS)return Tv;ZS=1;var e=ow(),t=QL(),r=ez(),n=y5(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return i?i.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return Tv=o,Tv}var Pv,JS;function nm(){if(JS)return Pv;JS=1;var e=nz();function t(r){return r==null?"":e(r)}return Pv=t,Pv}var kv,QS;function az(){if(QS)return kv;QS=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(i);++a<i;)o[a]=t[a+r];return o}return kv=e,kv}var $v,eC;function iz(){if(eC)return $v;eC=1;var e=az();function t(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:e(r,n,a)}return $v=t,$v}var Av,tC;function _5(){if(tC)return Av;tC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+a+i+"]");function u(l){return s.test(l)}return Av=u,Av}var Dv,rC;function oz(){if(rC)return Dv;rC=1;function e(t){return t.split("")}return Dv=e,Dv}var Mv,nC;function sz(){if(nC)return Mv;nC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="["+e+"]",s="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+u+")",h="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",y=l+"?",w="["+i+"]?",S="(?:"+b+"(?:"+[h,d,g].join("|")+")"+w+y+")*",E=w+y+S,_="(?:"+[h+s+"?",s,d,g,o].join("|")+")",C=RegExp(u+"(?="+u+")|"+_+E,"g");function f(p){return p.match(C)||[]}return Mv=f,Mv}var Nv,aC;function uz(){if(aC)return Nv;aC=1;var e=oz(),t=_5(),r=sz();function n(a){return t(a)?r(a):e(a)}return Nv=n,Nv}var Iv,iC;function lz(){if(iC)return Iv;iC=1;var e=iz(),t=_5(),r=uz(),n=nm();function a(i){return function(o){o=n(o);var s=t(o)?r(o):void 0,u=s?s[0]:o.charAt(0),l=s?e(s,1).join(""):o.slice(1);return u[i]()+l}}return Iv=a,Iv}var Fv,oC;function cz(){if(oC)return Fv;oC=1;var e=lz(),t=e("toUpperCase");return Fv=t,Fv}var jv,sC;function dz(){if(sC)return jv;sC=1;var e=nm(),t=cz();function r(n){return t(e(n).toLowerCase())}return jv=r,jv}var Lv,uC;function fz(){if(uC)return Lv;uC=1;function e(t,r,n,a){var i=-1,o=t==null?0:t.length;for(a&&o&&(n=t[++i]);++i<o;)n=r(n,t[i],i,t);return n}return Lv=e,Lv}var zv,lC;function hz(){if(lC)return zv;lC=1;function e(t){return function(r){return t==null?void 0:t[r]}}return zv=e,zv}var Bv,cC;function pz(){if(cC)return Bv;cC=1;var e=hz(),t={À:"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"},r=e(t);return Bv=r,Bv}var Hv,dC;function mz(){if(dC)return Hv;dC=1;var e=pz(),t=nm(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=n+a+i,s="["+o+"]",u=RegExp(s,"g");function l(h){return h=t(h),h&&h.replace(r,e).replace(u,"")}return Hv=l,Hv}var Vv,fC;function gz(){if(fC)return Vv;fC=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return Vv=t,Vv}var Uv,hC;function vz(){if(hC)return Uv;hC=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return Uv=t,Uv}var qv,pC;function bz(){if(pC)return qv;pC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",s="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",l="\\u2000-\\u206f",h=" \\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",d="A-Z\\xc0-\\xd6\\xd8-\\xde",g="\\ufe0e\\ufe0f",b=s+u+l+h,y="['’]",w="["+b+"]",S="["+a+"]",E="\\d+",_="["+i+"]",C="["+o+"]",f="[^"+e+b+E+i+o+d+"]",p="\\ud83c[\\udffb-\\udfff]",v="(?:"+S+"|"+p+")",x="[^"+e+"]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",$="["+d+"]",D="\\u200d",V="(?:"+C+"|"+f+")",I="(?:"+$+"|"+f+")",N="(?:"+y+"(?:d|ll|m|re|s|t|ve))?",F="(?:"+y+"(?:D|LL|M|RE|S|T|VE))?",T=v+"?",M="["+g+"]?",j="(?:"+D+"(?:"+[x,k,O].join("|")+")"+M+T+")*",H="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",z="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",U=M+T+j,G="(?:"+[_,k,O].join("|")+")"+U,X=RegExp([$+"?"+C+"+"+N+"(?="+[w,$,"$"].join("|")+")",I+"+"+F+"(?="+[w,$+V,"$"].join("|")+")",$+"?"+V+"+"+N,$+"+"+F,z,H,E,G].join("|"),"g");function K(ne){return ne.match(X)||[]}return qv=K,qv}var Wv,mC;function yz(){if(mC)return Wv;mC=1;var e=gz(),t=vz(),r=nm(),n=bz();function a(i,o,s){return i=r(i),o=s?void 0:o,o===void 0?t(i)?n(i):e(i):i.match(o)||[]}return Wv=a,Wv}var Yv,gC;function _z(){if(gC)return Yv;gC=1;var e=fz(),t=mz(),r=yz(),n="['’]",a=RegExp(n,"g");function i(o){return function(s){return e(r(t(s).replace(a,"")),o,"")}}return Yv=i,Yv}var Gv,vC;function wz(){if(vC)return Gv;vC=1;var e=dz(),t=_z(),r=t(function(n,a,i){return a=a.toLowerCase(),n+(i?e(a):a)});return Gv=r,Gv}var xz=wz();const Sz=$n(xz);function oy(e,t){Ut(e,"[@ant-design/icons] ".concat(t))}function bC(e){return pt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(pt(e.icon)==="object"||typeof e.icon=="function")}function yC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Sz(r)]=n}return t},{})}function sy(e,t,r){return r?A.createElement(e.tag,Q(Q({key:t},yC(e.attrs)),r),(e.children||[]).map(function(n,a){return sy(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):A.createElement(e.tag,Q({key:t},yC(e.attrs)),(e.children||[]).map(function(n,a){return sy(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function w5(e){return ry(e)[0]}function x5(e){return e?Array.isArray(e)?e:[e]:[]}var Cz={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Ez=`
62
- .anticon {
63
- display: inline-flex;
64
- alignItems: center;
65
- color: inherit;
66
- font-style: normal;
67
- line-height: 0;
68
- text-align: center;
69
- text-transform: none;
70
- vertical-align: -0.125em;
71
- text-rendering: optimizeLegibility;
72
- -webkit-font-smoothing: antialiased;
73
- -moz-osx-font-smoothing: grayscale;
74
- }
75
-
76
- .anticon > * {
77
- line-height: 1;
78
- }
79
-
80
- .anticon svg {
81
- display: inline-block;
82
- }
83
-
84
- .anticon::before {
85
- display: none;
86
- }
87
-
88
- .anticon .anticon-icon {
89
- display: block;
90
- }
91
-
92
- .anticon[tabindex] {
93
- cursor: pointer;
94
- }
95
-
96
- .anticon-spin::before,
97
- .anticon-spin {
98
- display: inline-block;
99
- -webkit-animation: loadingCircle 1s infinite linear;
100
- animation: loadingCircle 1s infinite linear;
101
- }
102
-
103
- @-webkit-keyframes loadingCircle {
104
- 100% {
105
- -webkit-transform: rotate(360deg);
106
- transform: rotate(360deg);
107
- }
108
- }
109
-
110
- @keyframes loadingCircle {
111
- 100% {
112
- -webkit-transform: rotate(360deg);
113
- transform: rotate(360deg);
114
- }
115
- }
116
- `,S5=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ez,r=A.useContext(rw),n=r.csp;A.useEffect(function(){Li(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},Oz=["icon","className","onClick","style","primaryColor","secondaryColor"],Qd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Rz(e){var t=e.primaryColor,r=e.secondaryColor;Qd.primaryColor=t,Qd.secondaryColor=r||w5(t),Qd.calculated=!!r}function Tz(){return Q({},Qd)}var Ql=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,u=sr(t,Oz),l=Qd;if(o&&(l={primaryColor:o,secondaryColor:s||w5(o)}),S5(),oy(bC(r),"icon should be icon definiton, but got ".concat(r)),!bC(r))return null;var h=r;return h&&typeof h.icon=="function"&&(h=Q(Q({},h),{},{icon:h.icon(l.primaryColor,l.secondaryColor)})),sy(h.icon,"svg-".concat(h.name),Q({className:n,onClick:a,style:i,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u))};Ql.displayName="IconReact";Ql.getTwoToneColors=Tz;Ql.setTwoToneColors=Rz;function C5(e){var t=x5(e),r=we(t,2),n=r[0],a=r[1];return Ql.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Pz(){var e=Ql.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var kz=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];C5("#1890ff");var Vn=P.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,u=e.twoToneColor,l=sr(e,kz),h=P.useContext(rw),d=h.prefixCls,g=d===void 0?"anticon":d,b=h.rootClassName,y=ge(b,g,re(re({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),w=o;w===void 0&&s&&(w=-1);var S=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,E=x5(u),_=we(E,2),C=_[0],f=_[1];return P.createElement("span",Q(Q({role:"img","aria-label":n.name},l),{},{ref:t,tabIndex:w,onClick:s,className:y}),P.createElement(Ql,{icon:n,primaryColor:C,secondaryColor:f,style:S}))});Vn.displayName="AntdIcon";Vn.getTwoToneColor=Pz;Vn.setTwoToneColor=C5;var $z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},Az={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"},Dz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},Mz={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Nz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:Mz}))},E5=P.forwardRef(Nz);process.env.NODE_ENV!=="production"&&(E5.displayName="CaretDownOutlined");var Iz={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},Fz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:Iz}))},O5=P.forwardRef(Fz);process.env.NODE_ENV!=="production"&&(O5.displayName="CaretRightOutlined");var R5={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"},jz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:R5}))},T5=P.forwardRef(jz);process.env.NODE_ENV!=="production"&&(T5.displayName="CheckOutlined");var Lz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},P5={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"},sw={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"},zz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:sw}))},k5=P.forwardRef(zz);process.env.NODE_ENV!=="production"&&(k5.displayName="CloseOutlined");var Bz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},Hz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:Bz}))},$5=P.forwardRef(Hz);process.env.NODE_ENV!=="production"&&($5.displayName="CloudUploadOutlined");var Vz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Uz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},qz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Wz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},A5={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"},Yz=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:A5}))},D5=P.forwardRef(Yz);process.env.NODE_ENV!=="production"&&(D5.displayName="DownOutlined");var Gz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Kz={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"},Xz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Zz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},Jz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"},Qz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"},eB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"},tB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"},rB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},nB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"},aB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"},uw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},iB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:uw}))},M5=P.forwardRef(iB);process.env.NODE_ENV!=="production"&&(M5.displayName="LeftOutlined");var N5={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"},oB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:N5}))},Uf=P.forwardRef(oB);process.env.NODE_ENV!=="production"&&(Uf.displayName="LoadingOutlined");var sB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},uB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:sB}))},I5=P.forwardRef(uB);process.env.NODE_ENV!=="production"&&(I5.displayName="MinusOutlined");var lB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},cB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:lB}))},F5=P.forwardRef(cB);process.env.NODE_ENV!=="production"&&(F5.displayName="PaperClipOutlined");var j5={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"},dB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:j5}))},lw=P.forwardRef(dB);process.env.NODE_ENV!=="production"&&(lw.displayName="PlusOutlined");var cw={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"},fB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:cw}))},L5=P.forwardRef(fB);process.env.NODE_ENV!=="production"&&(L5.displayName="RightOutlined");var z5={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"},hB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:z5}))},kl=P.forwardRef(hB);process.env.NODE_ENV!=="production"&&(kl.displayName="SearchOutlined");var pB={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"},mB=function(t,r){return P.createElement(Vn,Q(Q({},t),{},{ref:r,icon:pB}))},B5=P.forwardRef(mB);process.env.NODE_ENV!=="production"&&(B5.displayName="UpOutlined");var gB=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],H5=P.forwardRef(function(e,t){var r=e.className,n=e.component,a=e.viewBox,i=e.spin,o=e.rotate,s=e.tabIndex,u=e.onClick,l=e.children,h=sr(e,gB);oy(!!(n||l),"Should have `component` prop or `children`."),S5();var d=P.useContext(rw),g=d.prefixCls,b=g===void 0?"anticon":g,y=d.rootClassName,w=ge(y,b,r),S=ge(re({},"".concat(b,"-spin"),!!i)),E=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,_=Q(Q({},Cz),{},{className:S,style:E,viewBox:a});a||delete _.viewBox;var C=function(){return n?P.createElement(n,Q({},_),l):l?(oy(!!a||P.Children.count(l)===1&&P.isValidElement(l)&&P.Children.only(l).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),P.createElement("svg",Q(Q({},_),{},{viewBox:a}),l)):null},f=s;return f===void 0&&u&&(f=-1),P.createElement("span",Q(Q({role:"img"},h),{},{ref:t,tabIndex:f,onClick:u,className:w}),C())});H5.displayName="AntdIcon";var vB=["type","children"],V5=new Set;function bB(e){return!!(typeof e=="string"&&e.length&&!V5.has(e))}function xp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[t];if(bB(r)){var n=document.createElement("script");n.setAttribute("src",r),n.setAttribute("data-namespace",r),e.length>t+1&&(n.onload=function(){xp(e,t+1)},n.onerror=function(){xp(e,t+1)}),V5.add(r),document.body.appendChild(n)}}function U5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,r=e.extraCommonProps,n=r===void 0?{}:r;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?xp(t.reverse()):xp([t]));var a=P.forwardRef(function(i,o){var s=i.type,u=i.children,l=sr(i,vB),h=null;return i.type&&(h=P.createElement("use",{xlinkHref:"#".concat(s)})),u&&(h=u),P.createElement(H5,Q(Q(Q({},n),l),{},{ref:o}),h)});return a.displayName="Iconfont",a}const yB=(e="/font/iconfont.js")=>U5({scriptUrl:e}),Dt=({...e})=>{var y;const t=A.useContext(Vf),r=U5({scriptUrl:t==null?void 0:t.iconScriptUrl}),[n,a]=A.useState(!1),[i,o]=A.useState(null),s=()=>{const w=setTimeout(()=>{a(!0)},e.isMouseHoldShowDeleteMode||1e3);o(w)},u=()=>{i&&(clearTimeout(i),o(null)),a(!1)},l=A.useMemo(()=>e.languageApicode,[e.languageApicode]),h=A.useMemo(()=>l&&["English"].includes(l)?"10px":"12px",[l]),d=A.useMemo(()=>l&&["English"].includes(l)?"12px":"14px",[l]),g=A.useMemo(()=>typeof e.children=="string"&&/[ \t\n\r]/.test(e.children)?"2":"1",[e.children]),b=e.placement?B.jsxs("div",{className:ge(e.className,Jn.placementColor,e.disabled&&Jn.classNameDisabled),style:{textAlign:"center",cursor:"pointer",display:"flex",alignItems:"center",background:e.backgroundColor||"",position:"relative",...e.divStyle},onClick:w=>{e.disabled||e.onDivClick&&e.onDivClick(w)},onMouseEnter:w=>{var S;e.isMouseHoldShowDeleteMode&&s(),(S=e.onMouseEnter)==null||S.call(e,w)},onMouseLeave:w=>{var S;e.isMouseHoldShowDeleteMode&&u(),(S=e.onMouseLeave)==null||S.call(e,w)},children:[B.jsx(ue.Badge,{size:"small",count:e.number&&e.number>9?B.jsx("div",{className:Jn.omitPoint,children:"..."}):e.number,children:B.jsx(r,{className:ge(Jn.AliIconFont,{[Jn.disabled]:e.disabled,disabled:e.disabled},e.placement!="bottom"&&Jn.placementIcon),style:{..._e.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button||e.placement?"pointer":"default"},e.style)},onClick:w=>{e.disabled||e.onClick&&e.onClick(w)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`})}),e.isMouseHoldShowDeleteMode&&n&&B.jsx("div",{className:Jn.holdDeleteIconDiv,onClick:w=>{var S;(S=e.onClickHoldDelete)==null||S.call(e),w.stopPropagation()},children:B.jsx(Dt,{className:Jn.holdDeleteIcon,type:"cleanup",style:{fontSize:"10px",cursor:"pointer",marginLeft:"10px",color:"rgba(216,216,216,0.8)"}})}),e.placement=="bottom"?B.jsx("div",{style:{..._e.merge({textAlign:"center",color:e.color?`${e.color}`:"#fff",fontSize:"12px",marginTop:e.marginTop?`${e.marginTop}`:"5px"})},children:B.jsx("span",{className:ge(Jn.iconText,{[Jn.disabled]:e.disabled,disabled:e.disabled}),style:{width:(Number((y=e.children)==null?void 0:y.length)%2==0,"initial"),fontSize:h,lineHeight:d,WebkitLineClamp:g},children:e.children})}):B.jsx("span",{className:ge(Jn.iconText,{[Jn.disabled]:e.disabled,disabled:e.disabled}),children:e.children})]}):B.jsx(r,{className:ge(Jn.AliIconFont,{[Jn.disabled]:e.disabled,disabled:e.disabled},e.className),style:{..._e.merge({fontSize:"16px",color:`${e.color}`||"",cursor:e.onClick||e.button?"pointer":"default"},e.style)},onClick:w=>{e.disabled||e.onClick&&e.onClick(w)},type:t!=null&&t.isOnlyPrefixIcon?`icon-${e.type}`:e.isBackend?`icon-${e.type}`:`icon-front-${e.type}`});return e.tooltip?B.jsx(ue.Tooltip,{...e.tooltip,children:b}):e.popover?B.jsx(ue.Popover,{placement:"left",trigger:"click",...e.popover,children:b}):e.button?B.jsx("span",{className:Jn.btn_convider,children:B.jsx(ue.Button,{className:Jn.btn_icon,icon:b,children:e.children})}):b},_B="_badge_16esh_1",wB={badge:_B};var Ud=(e=>(e.Healthy="Healthy",e.Warning="Warning",e.Delay="Delay",e.Failure="Failure",e))(Ud||{});const uy=e=>B.jsx(ue.Badge,{...e,className:`${wB.badge} ${(e==null?void 0:e.className)??""}`});var q5=(e=>(e.LightGreen="LightGreen",e.Pink="Pink",e.Blue="blue",e.BlackBlue="BlackBlue",e.Gray="Gray",e))(q5||{});const ly={[Ud.Delay]:"#eb5d52",[Ud.Healthy]:"#1b8413",LightGreen:"#02CCCC",[Ud.Warning]:"#fca400",[Ud.Failure]:"#d0d0d0",blue:"#1371c1",Pink:"#f9a5c6",BlackBlue:"#2B4C7E",Gray:"#B0B1B5"},Pl=class Pl{constructor(){Dr(this,"cached",{});if(Pl.instance)return Pl.instance;Pl.instance=this}setCached(t,r){return this.cached[t]=r,r}};Dr(Pl,"instance");let cy=Pl;const xB=({healthStatus:e,healthList:t,healthId:r})=>{if(e)return B.jsx(uy,{color:ly[e]});if(t&&r){const n=new cy,a=n.cached[r]||n.setCached(r,t.find(i=>(i.id||i.value)==r));return a?B.jsx(uy,{color:ly[a.apicode]}):null}else return B.jsx(B.Fragment,{})},rs=e=>fi.isMosaic(e.value)?B.jsx(co,{}):_e.isNil(e.value)?B.jsx(B.Fragment,{}):typeof e.value!="string"&&typeof e.value!="number"?e.value?e.value:B.jsx(B.Fragment,{}):B.jsx(tm,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:0},searchWords:e.highlight||[],autoEscape:!0,textToHighlight:String(e.value)}),J0=e=>{const t=A.useRef(null);return A.useEffect(()=>{e.isFocus&&t.current&&t.current.focus()},[e.isFocus]),B.jsx(ue.Input,{title:e.value==="~#~"?"":e.value,ref:t,...e})},ec=({loadingSize:e=32,...t})=>{const r=B.jsx(Uf,{style:{fontSize:e},spin:!0});return t.children?B.jsx(ue.Spin,{...t,indicator:r,children:t.children}):B.jsx("div",{style:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:B.jsx(ue.Spin,{spinning:!0,indicator:r})})},SB=e=>B.jsxs("div",{className:"sk-cube-container loading-hidden",children:[B.jsxs("div",{className:"sk-cube-grid",children:[B.jsx("div",{className:"sk-cube sk-cube1"}),B.jsx("div",{className:"sk-cube sk-cube2"}),B.jsx("div",{className:"sk-cube sk-cube3"}),B.jsx("div",{className:"sk-cube sk-cube4"}),B.jsx("div",{className:"sk-cube sk-cube5"}),B.jsx("div",{className:"sk-cube sk-cube6"}),B.jsx("div",{className:"sk-cube sk-cube7"}),B.jsx("div",{className:"sk-cube sk-cube8"}),B.jsx("div",{className:"sk-cube sk-cube9"})]}),B.jsx("div",{className:"sk-cube10",children:e.children||"loading..."})]}),CB="_modal_wrapper_loading_1tlvq_1",EB="_global_spin_1tlvq_15",_C={modal_wrapper_loading:CB,global_spin:EB},OB=e=>e.isSpinning?B.jsx("div",{className:_C.modal_wrapper_loading,children:B.jsx(ue.Spin,{spinning:e.isSpinning,className:_C.global_spin,indicator:B.jsx(Uf,{style:{fontSize:48},spin:!0})})}):void 0;var Kv={},Ci={},wC;function Ui(){if(wC)return Ci;wC=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.getBreaksNeededForEmptyLineAfter=Ci.getBreaksNeededForEmptyLineBefore=Ci.selectWord=Ci.getSurroundingWord=void 0;function e(a,i){if(!a)throw Error("Argument 'text' should be truthy");for(var o=function(h){return h===" "||h.charCodeAt(0)===10},s=0,u=a.length,l=i;l-1>-1;l--)if(o(a[l-1])){s=l;break}for(var l=i;l<a.length;l++)if(o(a[l])){u=l;break}return{start:s,end:u}}Ci.getSurroundingWord=e;function t(a){var i=a.text,o=a.selection;return i&&i.length&&o.start===o.end?e(i,o.start):o}Ci.selectWord=t;function r(a,i){if(a===void 0&&(a=""),i===0)return 0;for(var o=2,s=!0,u=i-1;u>=0&&o>=0;u--)switch(a.charCodeAt(u)){case 32:continue;case 10:o--,s=!1;break;default:return o}return s?0:o}Ci.getBreaksNeededForEmptyLineBefore=r;function n(a,i){if(a===void 0&&(a=""),i===a.length-1)return 0;for(var o=2,s=!0,u=i;u<a.length&&o>=0;u++)switch(a.charCodeAt(u)){case 32:continue;case 10:{o--,s=!1;break}default:return o}return s?0:o}return Ci.getBreaksNeededForEmptyLineAfter=n,Ci}var Qs={},Yc={},Gc={},xC;function tc(){if(xC)return Gc;xC=1;/*!
117
- Copyright (c) 2018 Jed Watson.
118
- Licensed under the MIT License (MIT), see
119
- http://jedwatson.github.io/classnames
120
- */Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.classNames=void 0;function e(a){return typeof a=="string"}function t(a){return Array.isArray(a)&&a.length>0}function r(a){return typeof a=="object"}function n(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];for(var o=[],s=0;s<a.length;s++){var u=a[s];if(u){if(e(u))o.push(u);else if(t(u)){var l=n.apply(null,u);l&&o.push(l)}else if(r(u))for(var h in u)u.hasOwnProperty(h)&&u[h]&&o.push(h)}}return o.join(" ")}return Gc.classNames=n,Gc}var SC;function W5(){if(SC)return Yc;SC=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.ToolbarButtonGroup=void 0;var e=A,t=tc(),r=function(n){return e.createElement("ul",{className:t.classNames("mde-header-group",{hidden:n.hidden})},n.children)};return Yc.ToolbarButtonGroup=r,Yc}var eu={},CC;function Y5(){if(CC)return eu;CC=1;var e=eu&&eu.__assign||function(){return e=Object.assign||function(a){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=i[u])}return a},e.apply(this,arguments)};Object.defineProperty(eu,"__esModule",{value:!0}),eu.ToolbarButton=void 0;var t=A,r={tabIndex:-1},n=function(a){var i=a.buttonComponentClass,o=a.buttonContent,s=a.buttonProps,u=a.onClick,l=a.readOnly,h=a.name,d=e(e({},r),s||{}),g=i||"button";return t.createElement("li",{className:"mde-header-item"},t.createElement(g,e(e({"data-name":h},d),{onClick:u,disabled:l,type:"button"}),o))};return eu.ToolbarButton=n,eu}var Kc={},EC;function G5(){if(EC)return Kc;EC=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.MdeFontAwesomeIcon=void 0;var e=A,t=function(r){var n=r.icon,a=n;switch(n){case"header":a="heading";break;case"quote":a="quote-right";break;case"unordered-list":a="tasks";break;case"ordered-list":a="list-ol";break;case"checked-list":a="tasks";break;default:a=n}return e.createElement("i",{className:"fas fa-"+a,"aria-hidden":"true"})};return Kc.MdeFontAwesomeIcon=t,Kc}var tu={},OC;function RB(){if(OC)return tu;OC=1;var e=tu&&tu.__extends||function(){var a=function(i,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s[l]=u[l])},a(i,o)};return function(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(i,o);function s(){this.constructor=i}i.prototype=o===null?Object.create(o):(s.prototype=o.prototype,new s)}}();Object.defineProperty(tu,"__esModule",{value:!0}),tu.Preview=void 0;var t=A,r=tc(),n=function(a){e(i,a);function i(o){var s=a.call(this,o)||this;return s.state={loading:!0},s}return i.prototype.componentDidMount=function(){this.generatePreview()},i.prototype.componentDidUpdate=function(o,s){this.props.markdown!==o.markdown&&this.generatePreview()},i.prototype.generatePreview=function(){var o=this,s=this.props,u=s.markdown,l=s.generateMarkdownPreview;l(u).then(function(h){o.setState({preview:h,loading:!1})})},i.prototype.render=function(){var o=this.props,s=o.classes,u=o.minHeight,l=o.loadingPreview,h=o.refObject,d=o.heightUnits,g=this.state,b=g.preview,y=g.loading,w=y?l:b,S;typeof w=="string"?S=t.createElement("div",{className:"mde-preview-content",dangerouslySetInnerHTML:{__html:w||"<p>&nbsp;</p>"},ref:h}):S=t.createElement("div",{className:"mde-preview-content"},w);var E=u&&d?u+10+d:u+10;return t.createElement("div",{className:r.classNames("mde-preview",s,{loading:y}),style:{minHeight:E},"data-testid":"mde-preview"},S)},i}(t.Component);return tu.Preview=n,tu}var Do={},Xc={},RC;function TB(){if(RC)return Xc;RC=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.getCaretCoordinates=void 0;var e=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],t=typeof window<"u",r=t&&window.mozInnerScreenX!=null;function n(a,i){if(!t)throw new Error("getCaretCoordinates should only be called in a browser");var o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);var s=o.style,u=window.getComputedStyle?window.getComputedStyle(a):a.currentStyle;s.whiteSpace="pre-wrap",s.wordWrap="break-word",s.position="absolute",s.visibility="hidden",e.forEach(function(d){s[d]=u[d]}),r?a.scrollHeight>parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",o.textContent=a.value.substring(0,a.selectionStart),i&&(o.textContent+=i);var l=document.createElement("span");l.textContent=a.value.substring(a.selectionEnd)||".",o.appendChild(l);var h={top:l.offsetTop+parseInt(u.borderTopWidth),left:l.offsetLeft+parseInt(u.borderLeftWidth),lineHeight:parseInt(u.lineHeight)};return document.body.removeChild(o),h}return Xc.getCaretCoordinates=n,Xc}var Zc={},TC;function K5(){if(TC)return Zc;TC=1;/*!
121
- * The MIT License
122
- Copyright (c) 2018 Dmitriy Kubyshkin
123
- Copied from https://github.com/grassator/insert-text-at-cursor
124
- */Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.insertText=void 0;function e(r,n){if(r.focus(),document.selection){var a=document.selection.createRange();a.text=n,a.collapse(!1),a.select();return}var i=document.execCommand("insertText",!1,n);if(!i){var o=r.selectionStart,s=r.selectionEnd;if(typeof r.setRangeText=="function")r.setRangeText(n);else if(t(r)){var u=document.createTextNode(n),l=r.firstChild;if(!l)r.appendChild(u);else{for(var h=0,d=null,g=null,b=document.createRange();l&&(d===null||g===null);){var y=l.nodeValue.length;o>=h&&o<=h+y&&b.setStart(d=l,o-h),s>=h&&s<=h+y&&b.setEnd(g=l,s-h),h+=y,l=l.nextSibling}o!==s&&b.deleteContents(),b.insertNode(u)}}else{var w=r.value;r.value=w.slice(0,o)+n+w.slice(s)}r.setSelectionRange(o+n.length,o+n.length);var S=document.createEvent("UIEvent");S.initEvent("input",!0,!1),r.dispatchEvent(S)}}Zc.insertText=e;function t(r){if(r.nodeName!=="TEXTAREA")return!1;var n;if(typeof n>"u"){var a=document.createElement("textarea");a.value="1",n=!!a.firstChild}return n}return Zc}var Jc={},PC;function PB(){if(PC)return Jc;PC=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.mod=void 0;function e(t,r){return(t%r+r)%r}return Jc.mod=e,Jc}var Qc={},kC;function X5(){if(kC)return Qc;kC=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.SuggestionsDropdown=void 0;var e=A,t=tc(),r=function(n){var a=n.classes,i=n.suggestions,o=n.caret,s=n.onSuggestionSelected,u=n.suggestionsAutoplace,l=n.focusIndex,h=n.textAreaRef,d=function(_){_.preventDefault();var C=parseInt(_.currentTarget.attributes["data-index"].value);s(C)},g=function(_){return _.preventDefault()},b=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),y=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),w=o.left-h.current.scrollLeft,S=o.top-h.current.scrollTop,E={};return u&&S+h.current.getBoundingClientRect().top>y/2?E.bottom=h.current.offsetHeight-S:E.top=S,u&&w+h.current.getBoundingClientRect().left>b/2?E.right=h.current.offsetWidth-w:E.left=w,e.createElement("ul",{className:t.classNames("mde-suggestions",a),style:E},i.map(function(_,C){return e.createElement("li",{onClick:d,onMouseDown:g,key:C,"aria-selected":l===C?"true":"false","data-index":""+C},_.preview)}))};return Qc.SuggestionsDropdown=r,Qc}var $C;function kB(){if($C)return Do;$C=1;var e=Do&&Do.__extends||function(){var l=function(h,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(g[y]=b[y])},l(h,d)};return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");l(h,d);function g(){this.constructor=h}h.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),t=Do&&Do.__assign||function(){return t=Object.assign||function(l){for(var h,d=1,g=arguments.length;d<g;d++){h=arguments[d];for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(l[b]=h[b])}return l},t.apply(this,arguments)};Object.defineProperty(Do,"__esModule",{value:!0}),Do.TextArea=void 0;var r=A,n=tc(),a=TB(),i=K5(),o=PB(),s=X5(),u=function(l){e(h,l);function h(d){var g=l.call(this,d)||this;return g.currentLoadSuggestionsPromise=Promise.resolve(void 0),g.suggestionsPromiseIndex=0,g.getTextArea=function(){return g.props.refObject.current},g.handleOnChange=function(b){var y=g.props.onChange;y(b.target.value)},g.handleBlur=function(){var b=g.state.mention;b&&g.setState({mention:{status:"inactive",suggestions:[]}})},g.startLoadingSuggestions=function(b){var y=++g.suggestionsPromiseIndex,w=g.props.loadSuggestions;g.currentLoadSuggestionsPromise=g.currentLoadSuggestionsPromise.then(function(){return w(b,g.state.mention.triggeredBy)}).then(function(S){if(g.state.mention.status!=="inactive")return g.suggestionsPromiseIndex===y&&(!S||!S.length?g.setState({mention:{status:"inactive",suggestions:[]}}):g.setState({mention:t(t({},g.state.mention),{status:"active",suggestions:S,focusIndex:0})}),g.suggestionsPromiseIndex=0),Promise.resolve()})},g.loadEmptySuggestion=function(b,y){var w=a.getCaretCoordinates(b,y);g.startLoadingSuggestions(""),g.setState({mention:{status:"loading",startPosition:b.selectionStart+1,caret:w,suggestions:[],triggeredBy:y}})},g.handleSuggestionSelected=function(b){var y=g.state.mention;g.getTextArea().selectionStart=y.startPosition-1,g.props.value.substr(g.getTextArea().selectionStart,g.getTextArea().selectionEnd-g.getTextArea().selectionStart),i.insertText(g.getTextArea(),y.suggestions[b].value+" "),g.setState({mention:{status:"inactive",suggestions:[]}})},g.handleKeyDown=function(b){if(g.props.onPossibleKeyCommand){var y=g.props.onPossibleKeyCommand(b);if(y){b.preventDefault(),g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});return}}if(g.suggestionsEnabled()){var w=b.key,S=b.shiftKey,E=b.currentTarget,_=E.selectionStart,C=g.state.mention;switch(C.status){case"loading":case"active":if(w==="Escape"||w==="Backspace"&&_<=g.state.mention.startPosition)g.suggestionsPromiseIndex=0,g.setState({mention:{status:"inactive",suggestions:[]}});else if(C.status==="active"&&(w==="ArrowUp"||w==="ArrowDown")&&!S){b.preventDefault();var f=w==="ArrowUp"?-1:1;g.setState({mention:t(t({},C),{focusIndex:o.mod(C.focusIndex+f,C.suggestions.length)})})}else w==="Enter"&&C.status==="active"&&C.suggestions.length&&(b.preventDefault(),g.handleSuggestionSelected(C.focusIndex));break}}},g.handleKeyUp=function(b){var y=b.key,w=g.state.mention,S=g.props,E=S.suggestionTriggerCharacters,_=S.value;switch(w.status){case"loading":case"active":if(y==="Backspace"){var C=_.substr(w.startPosition,g.getTextArea().selectionStart-w.startPosition);g.startLoadingSuggestions(C),w.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})})}break;case"inactive":if(y==="Backspace"){var f=_.charAt(g.getTextArea().selectionStart-1),p=E.includes(_.charAt(g.getTextArea().selectionStart-1));p&&g.loadEmptySuggestion(b.currentTarget,f)}break}},g.handleKeyPress=function(b){var y=g.props,w=y.suggestionTriggerCharacters,S=y.value,E=g.state.mention,_=b.key;switch(E.status){case"loading":case"active":if(_===" "){g.setState({mention:t(t({},g.state.mention),{status:"inactive"})});return}var C=S.substr(E.startPosition,g.getTextArea().selectionStart-E.startPosition)+_;g.startLoadingSuggestions(C),E.status!=="loading"&&g.setState({mention:t(t({},g.state.mention),{status:"loading"})});break;case"inactive":if(w.indexOf(b.key)===-1||!/\s|\(|\[|^.{0}$/.test(S.charAt(g.getTextArea().selectionStart-1)))return;g.loadEmptySuggestion(b.currentTarget,b.key);break}},g.state={mention:{status:"inactive",suggestions:[]}},g}return h.prototype.suggestionsEnabled=function(){return this.props.suggestionTriggerCharacters&&this.props.suggestionTriggerCharacters.length&&this.props.loadSuggestions},h.prototype.render=function(){var d=this,g=this.props,b=g.classes,y=g.readOnly,w=g.textAreaProps,S=g.height,E=g.heightUnits,_=g.value,C=g.suggestionTriggerCharacters,f=g.loadSuggestions,p=g.suggestionsDropdownClasses,v=g.textAreaComponent,x=g.onPaste,k=g.onDrop,O=C&&C.length&&f,$=this.state.mention,D=v||"textarea",V=S&&E?S+E:S;return r.createElement("div",{className:"mde-textarea-wrapper"},r.createElement(D,t({className:n.classNames("mde-text",b),style:{height:V},ref:this.props.refObject,readOnly:y,value:_,"data-testid":"text-area"},w,{onChange:function(I){var N;(N=w==null?void 0:w.onChange)===null||N===void 0||N.call(w,I),d.handleOnChange(I)},onBlur:function(I){var N;(N=w==null?void 0:w.onBlur)===null||N===void 0||N.call(w,I),O&&d.handleBlur()},onKeyDown:function(I){var N;(N=w==null?void 0:w.onKeyDown)===null||N===void 0||N.call(w,I),d.handleKeyDown(I)},onKeyUp:function(I){var N;(N=w==null?void 0:w.onKeyUp)===null||N===void 0||N.call(w,I),O&&d.handleKeyUp(I)},onKeyPress:function(I){var N;(N=w==null?void 0:w.onKeyPress)===null||N===void 0||N.call(w,I),O&&d.handleKeyPress(I)},onPaste:function(I){var N;(N=w==null?void 0:w.onPaste)===null||N===void 0||N.call(w,I),x(I)},onDragOver:function(I){I.preventDefault(),I.stopPropagation()},onDrop:function(I){var N;(N=w==null?void 0:w.onDrop)===null||N===void 0||N.call(w,I),k(I),I.preventDefault()}})),$.status==="active"&&$.suggestions.length&&r.createElement(s.SuggestionsDropdown,{classes:p,caret:$.caret,suggestions:$.suggestions,onSuggestionSelected:this.handleSuggestionSelected,suggestionsAutoplace:this.props.suggestionsAutoplace,focusIndex:$.focusIndex,textAreaRef:this.props.refObject}))},h}(r.Component);return Do.TextArea=u,Do}var Mo={},AC;function $B(){if(AC)return Mo;AC=1;var e=Mo&&Mo.__extends||function(){var s=function(u,l){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(h[g]=d[g])},s(u,l)};return function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");s(u,l);function h(){this.constructor=u}u.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}(),t=Mo&&Mo.__assign||function(){return t=Object.assign||function(s){for(var u,l=1,h=arguments.length;l<h;l++){u=arguments[l];for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(s[d]=u[d])}return s},t.apply(this,arguments)};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.Toolbar=void 0;var r=A,n=tc(),a=W5(),i=Y5(),o=function(s){e(u,s);function u(){var l=s!==null&&s.apply(this,arguments)||this;return l.handleTabChange=function(h){var d=l.props.onTabChange;d(h)},l}return u.prototype.render=function(){var l=this,h=this.props.l18n,d=this.props,g=d.classes,b=d.children,y=d.buttons,w=d.onCommand,S=d.readOnly,E=d.disablePreview,_=d.writeButtonProps,C=d.previewButtonProps,f=d.buttonProps;if((!y||y.length===0)&&!b)return null;var p=r.createElement("div",{className:"mde-tabs"},r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="write"}),onClick:function(){return l.handleTabChange("write")}},_),h.write),r.createElement("button",t({type:"button",className:n.classNames({selected:this.props.tab==="preview"}),onClick:function(){return l.handleTabChange("preview")}},C),h.preview));return r.createElement("div",{className:n.classNames("mde-header",g)},!E&&p,y.map(function(v,x){return r.createElement(a.ToolbarButtonGroup,{key:x,hidden:l.props.tab==="preview"},v.map(function(k,O){return r.createElement(i.ToolbarButton,{key:O,name:k.commandName,buttonContent:k.buttonContent,buttonProps:t(t({},f||{}),k.buttonProps),onClick:function(){return w(k.commandName)},readOnly:S,buttonComponentClass:k.buttonComponentClass})}))}))},u}(r.Component);return Mo.Toolbar=o,Mo}var Ma={},No={},ed={},DC;function AB(){if(DC)return ed;DC=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.headerCommand=void 0;var e=Ui();function t(r,n,a){var i=e.selectWord({text:r.text,selection:r.selection}),o=n.setSelectionRange(i),s=n.replaceSelection(""+a+o.selectedText);n.setSelectionRange({start:s.selection.end-o.selectedText.length,end:s.selection.end})}return ed.headerCommand={buttonProps:{"aria-label":"Add header"},execute:function(r){var n=r.initialState,a=r.textApi;t(n,a,"### ")}},ed}var td={},MC;function DB(){if(MC)return td;MC=1,Object.defineProperty(td,"__esModule",{value:!0}),td.boldCommand=void 0;var e=Ui();return td.boldCommand={buttonProps:{"aria-label":"Add bold text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("**"+i.selectedText+"**");n.setSelectionRange({start:o.selection.end-2-i.selectedText.length,end:o.selection.end-2})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="b"}},td}var rd={},NC;function MB(){if(NC)return rd;NC=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.italicCommand=void 0;var e=Ui();return rd.italicCommand={buttonProps:{"aria-label":"Add italic text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("*"+i.selectedText+"*");n.setSelectionRange({start:o.selection.end-1-i.selectedText.length,end:o.selection.end-1})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="i"}},rd}var nd={},IC;function NB(){if(IC)return nd;IC=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.strikeThroughCommand=void 0;var e=Ui();return nd.strikeThroughCommand={buttonProps:{"aria-label":"Add strikethrough text"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("~~"+i.selectedText+"~~");n.setSelectionRange({start:o.selection.end-2-i.selectedText.length,end:o.selection.end-2})}},nd}var ad={},FC;function IB(){if(FC)return ad;FC=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.linkCommand=void 0;var e=Ui();return ad.linkCommand={buttonProps:{"aria-label":"Add a link"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=n.replaceSelection("["+i.selectedText+"](url)");n.setSelectionRange({start:o.selection.end-6-i.selectedText.length,end:o.selection.end-6})},handleKeyCommand:function(t){return(t.ctrlKey||t.metaKey)&&t.key=="k"}},ad}var id={},jC;function FB(){if(jC)return id;jC=1,Object.defineProperty(id,"__esModule",{value:!0}),id.quoteCommand=void 0;var e=Ui();return id.quoteCommand={buttonProps:{"aria-label":"Insert a quote"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a),o=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),s=Array(o+1).join(`
125
- `),u=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),l=Array(u+1).join(`
126
- `);n.replaceSelection(s+"> "+i.selectedText+l);var h=i.selection.start+o+2,d=h+i.selectedText.length;n.setSelectionRange({start:h,end:d})}},id}var od={},LC;function jB(){if(LC)return od;LC=1,Object.defineProperty(od,"__esModule",{value:!0}),od.codeCommand=void 0;var e=Ui();return od.codeCommand={buttonProps:{"aria-label":"Insert code"},execute:function(t){var r=t.initialState,n=t.textApi,a=e.selectWord({text:r.text,selection:r.selection}),i=n.setSelectionRange(a);if(i.selectedText.indexOf(`
127
- `)===-1){n.replaceSelection("`"+i.selectedText+"`");var o=i.selection.start+1,s=o+i.selectedText.length;n.setSelectionRange({start:o,end:s});return}var u=e.getBreaksNeededForEmptyLineBefore(i.text,i.selection.start),l=Array(u+1).join(`
128
- `),h=e.getBreaksNeededForEmptyLineAfter(i.text,i.selection.end),d=Array(h+1).join(`
129
- `);n.replaceSelection(l+"```\n"+i.selectedText+"\n```"+d);var g=i.selection.start+u+4,b=g+i.selectedText.length;n.setSelectionRange({start:g,end:b})}},od}var Xv={},zC;function LB(){return zC||(zC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkedListCommand=e.orderedListCommand=e.unorderedListCommand=e.makeList=e.insertBeforeEachLine=void 0;var t=Ui();function r(a,i){var o=a.split(/\n/),s=0,u=o.map(function(l,h){if(typeof i=="string")return s+=i.length,i+l;if(typeof i=="function"){var d=i(l,h);return s+=d.length,i(l,h)+l}throw Error("insertion is expected to be either a string or a function")}).join(`
130
- `);return{modifiedText:u,insertionLength:s}}e.insertBeforeEachLine=r;var n=function(a,i,o){var s=t.selectWord({text:a.text,selection:a.selection}),u=i.setSelectionRange(s),l=t.getBreaksNeededForEmptyLineBefore(u.text,u.selection.start),h=Array(l+1).join(`
131
- `),d=t.getBreaksNeededForEmptyLineAfter(u.text,u.selection.end),g=Array(d+1).join(`
132
- `),b=r(u.selectedText,o);i.replaceSelection(""+h+b.modifiedText+g);var y=u.selectedText.indexOf(`
133
- `)===-1?b.insertionLength:0,w=u.selection.start+l+y,S=w+b.modifiedText.length-y;i.setSelectionRange({start:w,end:S})};e.makeList=n,e.unorderedListCommand={buttonProps:{"aria-label":"Add unordered list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,"- ")}},e.orderedListCommand={buttonProps:{"aria-label":"Add ordered list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,function(s,u){return u+1+". "})}},e.checkedListCommand={buttonProps:{"aria-label":"Add checked list"},execute:function(a){var i=a.initialState,o=a.textApi;e.makeList(i,o,function(s,u){return"- [ ] "})}}}(Xv)),Xv}var sd={},BC;function zB(){if(BC)return sd;BC=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.imageCommand=void 0;var e=Ui();return sd.imageCommand={buttonProps:{"aria-label":"Add image"},execute:function(t){var r=t.initialState,n=t.textApi,a=n.setSelectionRange(e.selectWord({text:r.text,selection:r.selection})),i=a.selectedText||"https://example.com/your-image.png";n.replaceSelection("![]("+i+")"),n.setSelectionRange({start:a.selection.start+4,end:a.selection.start+4+i.length})}},sd}var Io={},Fo={},HC;function BB(){if(HC)return Fo;HC=1;var e=Fo&&Fo.__awaiter||function(n,a,i,o){function s(u){return u instanceof i?u:new i(function(l){l(u)})}return new(i||(i=Promise))(function(u,l){function h(b){try{g(o.next(b))}catch(y){l(y)}}function d(b){try{g(o.throw(b))}catch(y){l(y)}}function g(b){b.done?u(b.value):s(b.value).then(h,d)}g((o=o.apply(n,a||[])).next())})},t=Fo&&Fo.__generator||function(n,a){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},o,s,u,l;return l={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function h(g){return function(b){return d([g,b])}}function d(g){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(u=g[0]&2?s.return:g[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,g[1])).done)return u;switch(s=0,u&&(g=[g[0]&2,u.value]),g[0]){case 0:case 1:u=g;break;case 4:return i.label++,{value:g[1],done:!1};case 5:i.label++,s=g[1],g=[0];continue;case 7:g=i.ops.pop(),i.trys.pop();continue;default:if(u=i.trys,!(u=u.length>0&&u[u.length-1])&&(g[0]===6||g[0]===2)){i=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]<u[3])){i.label=g[1];break}if(g[0]===6&&i.label<u[1]){i.label=u[1],u=g;break}if(u&&i.label<u[2]){i.label=u[2],i.ops.push(g);break}u[2]&&i.ops.pop(),i.trys.pop();continue}g=a.call(n,i)}catch(b){g=[6,b],s=0}finally{o=u=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}};Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.readFileAsync=void 0;function r(n){return e(this,void 0,void 0,function(){return t(this,function(a){return[2,new Promise(function(i,o){var s=new FileReader;s.onload=function(){if(typeof s.result=="string")throw new Error("reader.result is expected to be an ArrayBuffer");i(s.result)},s.onerror=o,s.readAsArrayBuffer(n)})]})})}return Fo.readFileAsync=r,Fo}var VC;function HB(){if(VC)return Io;VC=1;var e=Io&&Io.__awaiter||function(l,h,d,g){function b(y){return y instanceof d?y:new d(function(w){w(y)})}return new(d||(d=Promise))(function(y,w){function S(C){try{_(g.next(C))}catch(f){w(f)}}function E(C){try{_(g.throw(C))}catch(f){w(f)}}function _(C){C.done?y(C.value):b(C.value).then(S,E)}_((g=g.apply(l,h||[])).next())})},t=Io&&Io.__generator||function(l,h){var d={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},g,b,y,w;return w={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function S(_){return function(C){return E([_,C])}}function E(_){if(g)throw new TypeError("Generator is already executing.");for(;d;)try{if(g=1,b&&(y=_[0]&2?b.return:_[0]?b.throw||((y=b.return)&&y.call(b),0):b.next)&&!(y=y.call(b,_[1])).done)return y;switch(b=0,y&&(_=[_[0]&2,y.value]),_[0]){case 0:case 1:y=_;break;case 4:return d.label++,{value:_[1],done:!1};case 5:d.label++,b=_[1],_=[0];continue;case 7:_=d.ops.pop(),d.trys.pop();continue;default:if(y=d.trys,!(y=y.length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){d=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){d.label=_[1];break}if(_[0]===6&&d.label<y[1]){d.label=y[1],y=_;break}if(y&&d.label<y[2]){d.label=y[2],d.ops.push(_);break}y[2]&&d.ops.pop(),d.trys.pop();continue}_=h.call(l,d)}catch(C){_=[6,C],b=0}finally{g=y=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}};Object.defineProperty(Io,"__esModule",{value:!0}),Io.saveImageCommand=void 0;var r=BB(),n=Ui();function a(l){var h=[];for(var d in l){var g=l[d];g.kind==="file"&&h.push(g.getAsFile())}return h}function i(l){for(var h=[],d=0;d<l.length;d++)h.push(l[0]);return h}function o(l,h){var d=h.multiple,g=h.accept,b=l;if(d||(b=b.slice(0,1)),g){var y=g.split(","),w=new Set(y.filter(function(_){return/^\.\w+/.test(_)}).map(function(_){return _.split(".")[1]})),S=new Set(y.filter(function(_){return/^[-\w.]+\/[-\w.]+$/.test(_)})),E=new Set(y.filter(function(_){return/(audio|video|image)\/\*/.test(_)}).map(function(_){return _.split("/")[0]}));b=b.filter(function(_){return w.has(_.name.split(".")[1])||S.has(_.type)||E.has(_.type.split("/")[0])})}return b}Io.saveImageCommand={execute:function(l){l.initialState;var h=l.textApi,d=l.context,g=l.l18n;return e(this,void 0,void 0,function(){var b,y,w,S,E,_,C,f,p,v,x,k,O,$,D,V,I,N,F,T,M,j,H,z;return t(this,function(U){switch(U.label){case 0:if(!d)throw new Error("wrong context");b=d,y=b.event,w=b.pasteOptions,S=w.saveImage,E=w.multiple,_=w.accept,C=s(d)?a(y.clipboardData.items):u(d)?a(y.dataTransfer.items):i(y.target.files),f=o(C,{multiple:E,accept:_}),p=[];for(v in f)p.push(v);x=0,U.label=1;case 1:return x<p.length?(k=p[x],O=h.getState(),$=n.getBreaksNeededForEmptyLineBefore(O.text,O.selection.start),D=Array($+1).join(`
134
- `),V=D+"!["+g.uploadingImage+"]()",h.replaceSelection(V),I=C[k],[4,r.readFileAsync(I)]):[3,5];case 2:return N=U.sent(),F=S(N,I),[4,F.next()];case 3:T=U.sent().value,M=h.getState(),j=M.text.substr(O.selection.start,V.length),j===V&&(h.setSelectionRange({start:O.selection.start,end:O.selection.start+V.length}),H=T?D+"![image]("+T+")":"",z=H.length-V.length,h.replaceSelection(H),h.setSelectionRange({start:M.selection.start+z,end:M.selection.end+z})),U.label=4;case 4:return x++,[3,1];case 5:return[2]}})})}};function s(l){return l.event.clipboardData!==void 0}function u(l){return l.event.dataTransfer!==void 0}return Io}var UC;function dw(){if(UC)return No;UC=1,Object.defineProperty(No,"__esModule",{value:!0}),No.getDefaultSaveImageCommandName=No.getDefaultCommandMap=No.getDefaultToolbarCommands=void 0;var e=AB(),t=DB(),r=MB(),n=NB(),a=IB(),i=FB(),o=jB(),s=LB(),u=zB(),l=HB();function h(){return[["header","bold","italic","strikethrough"],["link","quote","code","image"],["unordered-list","ordered-list","checked-list"]]}No.getDefaultToolbarCommands=h;function d(){return{header:e.headerCommand,bold:t.boldCommand,italic:r.italicCommand,strikethrough:n.strikeThroughCommand,link:a.linkCommand,quote:i.quoteCommand,code:o.codeCommand,image:u.imageCommand,"unordered-list":s.unorderedListCommand,"ordered-list":s.orderedListCommand,"checked-list":s.checkedListCommand,"save-image":l.saveImageCommand}}No.getDefaultCommandMap=d;function g(){return"save-image"}return No.getDefaultSaveImageCommandName=g,No}var ud={},qC;function VB(){return qC||(qC=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.enL18n=void 0,ud.enL18n={write:"Write",preview:"Preview",uploadingImage:"Uploading image...",pasteDropSelect:"Attach files by dragging & dropping, selecting or pasting them."}),ud}var ru={},ld={},WC;function UB(){if(WC)return ld;WC=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.SvgIcon=void 0;var e=A,t=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"tasks",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})),r=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ol",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),n=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"list-ul",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})),a=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"image",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"})),i=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"code",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})),o=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M512 80v128c0 137.018-63.772 236.324-193.827 271.172-15.225 4.08-30.173-7.437-30.173-23.199v-33.895c0-10.057 6.228-19.133 15.687-22.55C369.684 375.688 408 330.054 408 256h-72c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h128c26.51 0 48 21.49 48 48zM176 32H48C21.49 32 0 53.49 0 80v128c0 26.51 21.49 48 48 48h72c0 74.054-38.316 119.688-104.313 143.528C6.228 402.945 0 412.021 0 422.078v33.895c0 15.762 14.948 27.279 30.173 23.199C160.228 444.324 224 345.018 224 208V80c0-26.51-21.49-48-48-48z"})),s=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"link",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"})),u=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"strikethrough",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})),l=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"italic",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})),h=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"heading",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"})),d=e.createElement("svg",{className:"svg-icon","aria-hidden":"true","data-prefix":"fas","data-icon":"bold",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512","data-fa-i2svg":""},e.createElement("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})),g=function(b){var y=b.icon;switch(y){case"header":return h;case"bold":return d;case"italic":return l;case"strikethrough":return u;case"link":return s;case"quote":return o;case"code":return i;case"image":return a;case"unordered-list":return n;case"ordered-list":return r;case"checked-list":return t;default:return null}};return ld.SvgIcon=g,ld}var YC;function Z5(){return YC||(YC=1,function(e){var t=ru&&ru.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=ru&&ru.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(G5(),e),r(UB(),e)}(ru)),ru}var la={},cd={},GC;function qB(){if(GC)return cd;GC=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.extractKeyActivatedCommands=void 0;function e(t){var r=[];for(var n in t)t.hasOwnProperty(n)&&t[n].handleKeyCommand&&r.push(n);return r}return cd.extractKeyActivatedCommands=e,cd}var KC;function WB(){if(KC)return la;KC=1;var e=la&&la.__assign||function(){return e=Object.assign||function(h){for(var d,g=1,b=arguments.length;g<b;g++){d=arguments[g];for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(h[y]=d[y])}return h},e.apply(this,arguments)},t=la&&la.__awaiter||function(h,d,g,b){function y(w){return w instanceof g?w:new g(function(S){S(w)})}return new(g||(g=Promise))(function(w,S){function E(f){try{C(b.next(f))}catch(p){S(p)}}function _(f){try{C(b.throw(f))}catch(p){S(p)}}function C(f){f.done?w(f.value):y(f.value).then(E,_)}C((b=b.apply(h,d||[])).next())})},r=la&&la.__generator||function(h,d){var g={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},b,y,w,S;return S={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function E(C){return function(f){return _([C,f])}}function _(C){if(b)throw new TypeError("Generator is already executing.");for(;g;)try{if(b=1,y&&(w=C[0]&2?y.return:C[0]?y.throw||((w=y.return)&&w.call(y),0):y.next)&&!(w=w.call(y,C[1])).done)return w;switch(y=0,w&&(C=[C[0]&2,w.value]),C[0]){case 0:case 1:w=C;break;case 4:return g.label++,{value:C[1],done:!1};case 5:g.label++,y=C[1],C=[0];continue;case 7:C=g.ops.pop(),g.trys.pop();continue;default:if(w=g.trys,!(w=w.length>0&&w[w.length-1])&&(C[0]===6||C[0]===2)){g=0;continue}if(C[0]===3&&(!w||C[1]>w[0]&&C[1]<w[3])){g.label=C[1];break}if(C[0]===6&&g.label<w[1]){g.label=w[1],w=C;break}if(w&&g.label<w[2]){g.label=w[2],g.ops.push(C);break}w[2]&&g.ops.pop(),g.trys.pop();continue}C=d.call(h,g)}catch(f){C=[6,f],y=0}finally{b=w=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}};Object.defineProperty(la,"__esModule",{value:!0}),la.CommandOrchestrator=la.getStateFromTextArea=la.TextAreaTextApi=void 0;var n=Q5(),a=K5(),i=qB(),o=dw(),s=function(){function h(d){this.textAreaRef=d}return h.prototype.replaceSelection=function(d){var g=this.textAreaRef.current;return a.insertText(g,d),u(g)},h.prototype.setSelectionRange=function(d){var g=this.textAreaRef.current;return g.focus(),g.selectionStart=d.start,g.selectionEnd=d.end,u(g)},h.prototype.getState=function(){var d=this.textAreaRef.current;return u(d)},h}();la.TextAreaTextApi=s;function u(h){return{selection:{start:h.selectionStart,end:h.selectionEnd},text:h.value,selectedText:h.value.slice(h.selectionStart,h.selectionEnd)}}la.getStateFromTextArea=u;var l=function(){function h(d,g,b,y){var w=this;if(this.getCommand=function(S){var E=w.commandMap[S];if(!E)throw new Error("Cannot execute command. Command not found: "+S);return E},this.handlePossibleKeyCommand=function(S){for(var E=0,_=w.keyActivatedCommands;E<_.length;E++){var C=_[E];if(w.getCommand(C).handleKeyCommand(S))return w.executeCommand(C).then(function(f){}),!0}return!1},y&&!y.saveImage)throw new Error("paste options are incomplete. saveImage are required ");this.commandMap=e(e({},n.getDefaultCommandMap()),d||{}),this.pasteOptions=y,this.keyActivatedCommands=i.extractKeyActivatedCommands(d),this.textAreaRef=g,this.textApi=new s(g),this.l18n=b}return h.prototype.executeCommand=function(d,g){return t(this,void 0,void 0,function(){var b,y;return r(this,function(w){switch(w.label){case 0:return this.isExecuting?[2]:(this.isExecuting=!0,b=this.commandMap[d],y=b.execute({initialState:u(this.textAreaRef.current),textApi:this.textApi,l18n:this.l18n,context:g}),[4,y]);case 1:return w.sent(),this.isExecuting=!1,[2]}})})},h.prototype.executePasteCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},h.prototype.executeDropCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},h.prototype.executeSelectImageCommand=function(d){return t(this,void 0,void 0,function(){return r(this,function(g){return this.pasteOptions?[2,this.executeCommand(this.pasteOptions.command||o.getDefaultSaveImageCommandName(),{pasteOptions:this.pasteOptions,event:d})]:[2]})})},h.prototype.getCommandByName=function(d){return this.commandMap[d]},h}();return la.CommandOrchestrator=l,la}var XC;function YB(){if(XC)return Ma;XC=1;var e=Ma&&Ma.__extends||function(){var b=function(y,w){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,E){S.__proto__=E}||function(S,E){for(var _ in E)Object.prototype.hasOwnProperty.call(E,_)&&(S[_]=E[_])},b(y,w)};return function(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");b(y,w);function S(){this.constructor=y}y.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),t=Ma&&Ma.__assign||function(){return t=Object.assign||function(b){for(var y,w=1,S=arguments.length;w<S;w++){y=arguments[w];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(b[E]=y[E])}return b},t.apply(this,arguments)},r=Ma&&Ma.__awaiter||function(b,y,w,S){function E(_){return _ instanceof w?_:new w(function(C){C(_)})}return new(w||(w=Promise))(function(_,C){function f(x){try{v(S.next(x))}catch(k){C(k)}}function p(x){try{v(S.throw(x))}catch(k){C(k)}}function v(x){x.done?_(x.value):E(x.value).then(f,p)}v((S=S.apply(b,y||[])).next())})},n=Ma&&Ma.__generator||function(b,y){var w={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},S,E,_,C;return C={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function f(v){return function(x){return p([v,x])}}function p(v){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,E&&(_=v[0]&2?E.return:v[0]?E.throw||((_=E.return)&&_.call(E),0):E.next)&&!(_=_.call(E,v[1])).done)return _;switch(E=0,_&&(v=[v[0]&2,_.value]),v[0]){case 0:case 1:_=v;break;case 4:return w.label++,{value:v[1],done:!1};case 5:w.label++,E=v[1],v=[0];continue;case 7:v=w.ops.pop(),w.trys.pop();continue;default:if(_=w.trys,!(_=_.length>0&&_[_.length-1])&&(v[0]===6||v[0]===2)){w=0;continue}if(v[0]===3&&(!_||v[1]>_[0]&&v[1]<_[3])){w.label=v[1];break}if(v[0]===6&&w.label<_[1]){w.label=_[1],_=v;break}if(_&&w.label<_[2]){w.label=_[2],w.ops.push(v);break}_[2]&&w.ops.pop(),w.trys.pop();continue}v=y.call(b,w)}catch(x){v=[6,x],E=0}finally{S=_=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.ReactMde=void 0;var a=A,i=J5(),o=dw(),s=VB(),u=Z5(),l=tc(),h=WB(),d={accept:"image/*",multiple:!1},g=function(b){e(y,b);function y(w){var S,E=b.call(this,w)||this;E.handleTextChange=function(C){var f=E.props.onChange;f(C)},E.handlePaste=function(C){return r(E,void 0,void 0,function(){var f;return n(this,function(p){switch(p.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executePasteCommand(C)];case 1:return p.sent(),[2]}})})},E.handleDrop=function(C){return r(E,void 0,void 0,function(){var f;return n(this,function(p){switch(p.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executeDropCommand(C)];case 1:return p.sent(),[2]}})})},E.handleImageSelection=function(C){return r(E,void 0,void 0,function(){var f;return n(this,function(p){switch(p.label){case 0:return f=this.props.paste,!f||!f.saveImage?[2]:[4,this.commandOrchestrator.executeSelectImageCommand(C)];case 1:return p.sent(),[2]}})})},E.handleTabChange=function(C){var f=E.props.onTabChange;f(C)},E.handleCommand=function(C){return r(E,void 0,void 0,function(){return n(this,function(f){switch(f.label){case 0:return[4,this.commandOrchestrator.executeCommand(C)];case 1:return f.sent(),[2]}})})},E.finalRefs=t({},w.refs||{}),E.finalRefs.textarea||(E.finalRefs.textarea=a.createRef()),E.finalRefs.preview||(E.finalRefs.preview=a.createRef()),E.commandOrchestrator=new h.CommandOrchestrator(E.props.commands,E.finalRefs.textarea,E.props.l18n,E.props.paste?t(t({},d),E.props.paste):void 0);var _=Math.min(w.maxEditorHeight,w.minEditorHeight);return E.state={editorHeight:(S=w.initialEditorHeight)!==null&&S!==void 0?S:_},E}return y.prototype.render=function(){var w=this,S,E,_=this.props,C=_.getIcon,f=_.toolbarCommands,p=_.classes,v=_.loadingPreview,x=_.readOnly,k=_.disablePreview,O=_.value,$=_.l18n,D=_.minPreviewHeight,V=_.heightUnits,I=_.childProps,N=_.selectedTab,F=_.generateMarkdownPreview,T=_.loadSuggestions,M=_.suggestionTriggerCharacters,j=_.textAreaComponent,H=I||{},z=f.map(function(U){return U.map(function(G){var X=w.commandOrchestrator.getCommand(G);return{commandName:G,buttonContent:X.icon?X.icon(C):C(G),buttonProps:X.buttonProps,buttonComponentClass:X.buttonComponentClass}})});return a.createElement("div",{className:l.classNames("react-mde","react-mde-tabbed-layout",p==null?void 0:p.reactMde)},a.createElement(i.Toolbar,{classes:p==null?void 0:p.toolbar,buttons:z,onCommand:this.handleCommand,onTabChange:this.handleTabChange,tab:N,readOnly:x,disablePreview:k,l18n:$,buttonProps:H.commandButtons,writeButtonProps:H.writeButton,previewButtonProps:H.previewButton}),a.createElement("div",{className:l.classNames({invisible:N!=="write"})},a.createElement(i.TextArea,{classes:p==null?void 0:p.textArea,suggestionsDropdownClasses:p==null?void 0:p.suggestionsDropdown,suggestionsAutoplace:this.props.suggestionsAutoplace,refObject:this.finalRefs.textarea,onChange:this.handleTextChange,onPaste:this.handlePaste,onDrop:this.handleDrop,readOnly:x,textAreaComponent:j,textAreaProps:I&&I.textArea,height:this.state.editorHeight,heightUnits:this.props.heightUnits,value:O,suggestionTriggerCharacters:M,loadSuggestions:T,onPossibleKeyCommand:this.commandOrchestrator.handlePossibleKeyCommand}),this.props.paste&&a.createElement("label",{className:l.classNames("image-tip")},a.createElement("input",{className:l.classNames("image-input"),type:"file",accept:(S=this.props.paste.accept)!==null&&S!==void 0?S:d.accept,multiple:(E=this.props.paste.multiple)!==null&&E!==void 0?E:d.multiple,onChange:this.handleImageSelection}),a.createElement("span",null,$.pasteDropSelect))),N!=="write"&&a.createElement(i.Preview,{classes:p==null?void 0:p.preview,refObject:this.finalRefs.preview,loadingPreview:v,minHeight:D,heightUnits:V,generateMarkdownPreview:F,markdown:O}))},y.defaultProps={commands:o.getDefaultCommandMap(),toolbarCommands:o.getDefaultToolbarCommands(),getIcon:function(w){return a.createElement(u.SvgIcon,{icon:w})},readOnly:!1,l18n:s.enL18n,minEditorHeight:200,maxEditorHeight:500,minPreviewHeight:200,heightUnits:"px",selectedTab:"write",disablePreview:!1,suggestionTriggerCharacters:["@"],suggestionsAutoplace:!1},y}(a.Component);return Ma.ReactMde=g,Ma}var ZC;function J5(){return ZC||(ZC=1,function(e){var t=Qs&&Qs.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[i]}})}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=Qs&&Qs.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,n,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(W5(),e),r(Y5(),e),r(G5(),e),r(RB(),e),r(kB(),e),r($B(),e),r(YB(),e),r(X5(),e)}(Qs)),Qs}var JC;function Q5(){return JC||(JC=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultToolbarCommands=e.getDefaultCommandMap=e.MdeFontAwesomeIcon=e.SvgIcon=e.MarkdownUtil=e.ToolbarButtonGroup=e.Toolbar=e.Preview=e.SuggestionsDropdown=e.TextArea=void 0;var t=Ui();e.MarkdownUtil=t;var r=J5();Object.defineProperty(e,"TextArea",{enumerable:!0,get:function(){return r.TextArea}}),Object.defineProperty(e,"SuggestionsDropdown",{enumerable:!0,get:function(){return r.SuggestionsDropdown}}),Object.defineProperty(e,"Preview",{enumerable:!0,get:function(){return r.Preview}}),Object.defineProperty(e,"Toolbar",{enumerable:!0,get:function(){return r.Toolbar}}),Object.defineProperty(e,"ToolbarButtonGroup",{enumerable:!0,get:function(){return r.ToolbarButtonGroup}});var n=Z5();Object.defineProperty(e,"SvgIcon",{enumerable:!0,get:function(){return n.SvgIcon}}),Object.defineProperty(e,"MdeFontAwesomeIcon",{enumerable:!0,get:function(){return n.MdeFontAwesomeIcon}});var a=dw();Object.defineProperty(e,"getDefaultCommandMap",{enumerable:!0,get:function(){return a.getDefaultCommandMap}}),Object.defineProperty(e,"getDefaultToolbarCommands",{enumerable:!0,get:function(){return a.getDefaultToolbarCommands}}),e.default=r.ReactMde}(Kv)),Kv}var GB=Q5();const KB=$n(GB),XB="_main_qf7bi_1",ZB="_markIcon_qf7bi_1",JB="_mdePreview_qf7bi_6",QB="_mdebordershow_qf7bi_80",eH="_mdeborderhide_qf7bi_83",tH="_fullscreen_qf7bi_90",en={main:XB,markIcon:ZB,mdePreview:JB,mdebordershow:QB,mdeborderhide:eH,fullscreen:tH};function rH(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(h){try{l(n.next(h))}catch(d){o(d)}}function u(h){try{l(n.throw(h))}catch(d){o(d)}}function l(h){h.done?i(h.value):a(h.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function nH(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(h){return u([l,h])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function qf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function aH(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var rc=function(e){return typeof e=="function"},iH=function(e){return typeof e=="boolean"},am=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function xu(e){am&&(rc(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=A.useRef(e);t.current=A.useMemo(function(){return e},[e]);var r=A.useRef();return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current}function dy(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function oH(e,t){var r=A.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!dy(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function di(e){var t=A.useRef(e);return t.current=e,t}var im=function(e){am&&(rc(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=di(e);A.useEffect(function(){return function(){t.current()}},[])},Zv,QC;function fw(){if(QC)return Zv;QC=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Zv=e,Zv}var Jv,e6;function sH(){if(e6)return Jv;e6=1;var e=g5(),t=function(){return e.Date.now()};return Jv=t,Jv}var Qv,t6;function uH(){if(t6)return Qv;t6=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Qv=t,Qv}var e1,r6;function lH(){if(r6)return e1;r6=1;var e=uH(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return e1=r,e1}var t1,n6;function cH(){if(n6)return t1;n6=1;var e=lH(),t=fw(),r=y5(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var h=typeof l.valueOf=="function"?l.valueOf():l;l=t(h)?h+"":h}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=i.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):a.test(l)?n:+l}return t1=u,t1}var r1,a6;function eR(){if(a6)return r1;a6=1;var e=fw(),t=sH(),r=cH(),n="Expected a function",a=Math.max,i=Math.min;function o(s,u,l){var h,d,g,b,y,w,S=0,E=!1,_=!1,C=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(E=!!l.leading,_="maxWait"in l,g=_?a(r(l.maxWait)||0,u):g,C="trailing"in l?!!l.trailing:C);function f(I){var N=h,F=d;return h=d=void 0,S=I,b=s.apply(F,N),b}function p(I){return S=I,y=setTimeout(k,u),E?f(I):b}function v(I){var N=I-w,F=I-S,T=u-N;return _?i(T,g-F):T}function x(I){var N=I-w,F=I-S;return w===void 0||N>=u||N<0||_&&F>=g}function k(){var I=t();if(x(I))return O(I);y=setTimeout(k,v(I))}function O(I){return y=void 0,C&&h?f(I):(h=d=void 0,b)}function $(){y!==void 0&&clearTimeout(y),S=0,h=w=d=y=void 0}function D(){return y===void 0?b:O(t())}function V(){var I=t(),N=x(I);if(h=arguments,d=this,w=I,N){if(y===void 0)return p(w);if(_)return clearTimeout(y),y=setTimeout(k,u),f(w)}return y===void 0&&(y=setTimeout(k,u)),b}return V.cancel=$,V.flush=D,V}return r1=o,r1}var dH=eR();const fH=$n(dH);var tR=!!(typeof window<"u"&&window.document&&window.document.createElement),n1,i6;function hH(){if(i6)return n1;i6=1;var e=eR(),t=fw(),r="Expected a function";function n(a,i,o){var s=!0,u=!0;if(typeof a!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),e(a,i,{leading:s,maxWait:i,trailing:u})}return n1=n,n1}var pH=hH();const mH=$n(pH);var Wf=function(e){am&&(rc(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),A.useEffect(function(){e==null||e()},[])},gH=function(){var e=qf(A.useState({}),2),t=e[1];return A.useCallback(function(){return t({})},[])};function vH(e){return rc(e[Symbol.asyncIterator])}function bH(e,t){A.useEffect(function(){var r=e(),n=!1;function a(){return rH(this,void 0,void 0,function(){var i;return nH(this,function(o){switch(o.label){case 0:if(!vH(r))return[3,4];o.label=1;case 1:return[4,r.next()];case 2:return i=o.sent(),i.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:o.sent(),o.label=6;case 6:return[2]}})})}return a(),function(){n=!0}},t)}function ao(e,t){if(tR){if(!e)return t;var r;return rc(e)?r=e():"current"in e?r=e.current:r=e,r}}var yH=function(e){return e.every(function(t){var r=ao(t);return r?r.getRootNode()instanceof ShadowRoot:!1})},_H=function(e){return e?e.getRootNode():document},wH=function(e){if(!e||!document.getRootNode)return document;var t=Array.isArray(e)?e:[e];return yH(t)?_H(ao(t[0])):document},rR=function(e){var t=function(r,n,a){var i=A.useRef(!1),o=A.useRef([]),s=A.useRef([]),u=A.useRef();e(function(){var l,h=Array.isArray(a)?a:[a],d=h.map(function(g){return ao(g)});if(!i.current){i.current=!0,o.current=d,s.current=n,u.current=r();return}(d.length!==o.current.length||!dy(o.current,d)||!dy(s.current,n))&&((l=u.current)===null||l===void 0||l.call(u),o.current=d,s.current=n,u.current=r())}),im(function(){var l;(l=u.current)===null||l===void 0||l.call(u),i.current=!1})};return t},nR=rR(A.useEffect);function xH(e,t,r){r===void 0&&(r="click");var n=di(e);nR(function(){var a=function(s){var u=Array.isArray(t)?t:[t];u.some(function(l){var h=ao(l);return!h||h.contains(s.target)})||n.current(s)},i=wH(t),o=Array.isArray(r)?r:[r];return o.forEach(function(s){return i.addEventListener(s,a)}),function(){o.forEach(function(s){return i.removeEventListener(s,a)})}},Array.isArray(r)?r:[r],t)}function SH(){var e=(typeof global>"u"?"undefined":typeof global)=="object"&&global&&global.Object===Object&&global,t=typeof self=="object"&&self&&self.Object===Object&&self;return e||t}SH()||(global.Date=Date);function CH(e,t){var r;am&&(rc(e)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e)));var n=di(e),a=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,i=A.useMemo(function(){return fH(function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return n.current.apply(n,aH([],qf(o),!1))},a,t)},[]);return im(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}var a1={exports:{}};/*!
135
- * screenfull
136
- * v5.2.0 - 2021-11-03
137
- * (c) Sindre Sorhus; MIT License
138
- */var o6;function EH(){return o6||(o6=1,function(e){(function(){var t=typeof window<"u"&&typeof window.document<"u"?window.document:{},r=e.exports,n=function(){for(var o,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],u=0,l=s.length,h={};u<l;u++)if(o=s[u],o&&o[1]in t){for(u=0;u<o.length;u++)h[s[0][u]]=o[u];return h}return!1}(),a={change:n.fullscreenchange,error:n.fullscreenerror},i={request:function(o,s){return new Promise((function(u,l){var h=(function(){this.off("change",h),u()}).bind(this);this.on("change",h),o=o||t.documentElement;var d=o[n.requestFullscreen](s);d instanceof Promise&&d.then(h).catch(l)}).bind(this))},exit:function(){return new Promise((function(o,s){if(!this.isFullscreen){o();return}var u=(function(){this.off("change",u),o()}).bind(this);this.on("change",u);var l=t[n.exitFullscreen]();l instanceof Promise&&l.then(u).catch(s)}).bind(this))},toggle:function(o,s){return this.isFullscreen?this.exit():this.request(o,s)},onchange:function(o){this.on("change",o)},onerror:function(o){this.on("error",o)},on:function(o,s){var u=a[o];u&&t.addEventListener(u,s,!1)},off:function(o,s){var u=a[o];u&&t.removeEventListener(u,s,!1)},raw:n};if(!n){r?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(i,{isFullscreen:{get:function(){return!!t[n.fullscreenElement]}},element:{enumerable:!0,get:function(){return t[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!t[n.fullscreenEnabled]}}}),r?e.exports=i:window.screenfull=i})()}(a1)),a1.exports}var OH=EH();const oi=$n(OH);var aR=function(e,t){var r=t||{},n=r.onExit,a=r.onEnter,i=r.pageFullscreen,o=i===void 0?!1:i,s=iH(o)||!o?{}:o,u=s.className,l=u===void 0?"ahooks-page-fullscreen":u,h=s.zIndex,d=h===void 0?999999:h,g=di(n),b=di(a),y=qf(A.useState(_),2),w=y[0],S=y[1],E=A.useRef(_());function _(){return oi.isEnabled&&!!oi.element&&oi.element===ao(e)}var C=function($){var D,V;$?(D=b.current)===null||D===void 0||D.call(b):(V=g.current)===null||V===void 0||V.call(g)},f=function($){E.current!==$&&(C($),S($),E.current=$)},p=function(){var $=_();f($)},v=function($){var D=ao(e);if(D){var V=document.getElementById(l);$?(D.classList.add(l),V||(V=document.createElement("style"),V.setAttribute("id",l),V.textContent=`
139
- .`.concat(l,` {
140
- position: fixed; left: 0; top: 0; right: 0; bottom: 0;
141
- width: 100% !important; height: 100% !important;
142
- z-index: `).concat(d,`;
143
- }`),D.appendChild(V))):(D.classList.remove(l),V&&V.remove()),f($)}},x=function(){var $=ao(e);if($){if(o){v(!0);return}if(oi.isEnabled)try{oi.request($)}catch(D){console.error(D)}}},k=function(){var $=ao(e);if($){if(o){v(!1);return}oi.isEnabled&&oi.element===$&&oi.exit()}},O=function(){w?k():x()};return A.useEffect(function(){if(!(!oi.isEnabled||o))return oi.on("change",p),function(){oi.off("change",p)}},[]),[w,{enterFullscreen:xu(x),exitFullscreen:xu(k),toggleFullscreen:xu(O),isEnabled:oi.isEnabled}]};function RH(e){var t=A.useRef(0),r=qf(A.useState(e),2),n=r[0],a=r[1],i=A.useCallback(function(o){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){a(o)})},[]);return im(function(){cancelAnimationFrame(t.current)}),[n,i]}var i1,s6;function TH(){if(s6)return i1;s6=1;function e(t,r){return function(n){return t(r(n))}}return i1=e,i1}var o1,u6;function PH(){if(u6)return o1;u6=1;var e=TH(),t=e(Object.getPrototypeOf,Object);return o1=t,o1}var s1,l6;function kH(){if(l6)return s1;l6=1;var e=v5(),t=PH(),r=b5(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,u=o.call(Object);function l(h){if(!r(h)||e(h)!=n)return!1;var d=t(h);if(d===null)return!0;var g=s.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&o.call(g)==u}return s1=l,s1}var $H=kH();const AH=$n($H);var c6=new WeakMap,d6=new WeakMap;function iR(e,t){var r=c6.get(e);if(r)return r;if(d6.has(e))return e;var n=new Proxy(e,{get:function(a,i,o){var s=Reflect.get(a,i,o),u=Reflect.getOwnPropertyDescriptor(a,i);return!(u!=null&&u.configurable)&&!(u!=null&&u.writable)?s:AH(s)||Array.isArray(s)?iR(s,t):s},set:function(a,i,o){var s=Reflect.set(a,i,o);return t(),s},deleteProperty:function(a,i){var o=Reflect.deleteProperty(a,i);return t(),o}});return c6.set(e,n),d6.set(n,e),n}function Sa(e){var t=gH(),r=A.useRef(e),n=oH(function(){return iR(r.current,function(){t()})},[]);return n}var oR=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),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(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var o=i[a];r.call(n,o[1],o[0])}},t}()}(),fy=typeof window<"u"&&typeof document<"u"&&window.document===document,Sp=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),DH=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Sp):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),MH=2;function NH(e,t){var r=!1,n=!1,a=0;function i(){r&&(r=!1,e()),n&&s()}function o(){DH(i)}function s(){var u=Date.now();if(r){if(u-a<MH)return;n=!0}else r=!0,n=!1,setTimeout(o,t);a=u}return s}var IH=20,FH=["top","right","bottom","left","width","height","size","weight"],jH=typeof MutationObserver<"u",LH=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=NH(this.refresh.bind(this),IH)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!fy||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),jH?(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(){!fy||!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(t){var r=t.propertyName,n=r===void 0?"":r,a=FH.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),sR=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Hl=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Sp},uR=om(0,0,0,0);function Cp(e){return parseFloat(e)||0}function f6(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var i=e["border-"+a+"-width"];return n+Cp(i)},0)}function zH(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var i=a[n],o=e["padding-"+i];r[i]=Cp(o)}return r}function BH(e){var t=e.getBBox();return om(0,0,t.width,t.height)}function HH(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return uR;var n=Hl(e).getComputedStyle(e),a=zH(n),i=a.left+a.right,o=a.top+a.bottom,s=Cp(n.width),u=Cp(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=f6(n,"left","right")+i),Math.round(u+o)!==r&&(u-=f6(n,"top","bottom")+o)),!UH(e)){var l=Math.round(s+i)-t,h=Math.round(u+o)-r;Math.abs(l)!==1&&(s-=l),Math.abs(h)!==1&&(u-=h)}return om(a.left,a.top,s,u)}var VH=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Hl(e).SVGGraphicsElement}:function(e){return e instanceof Hl(e).SVGElement&&typeof e.getBBox=="function"}}();function UH(e){return e===Hl(e).document.documentElement}function qH(e){return fy?VH(e)?BH(e):HH(e):uR}function WH(e){var t=e.x,r=e.y,n=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(i.prototype);return sR(o,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),o}function om(e,t,r,n){return{x:e,y:t,width:r,height:n}}var YH=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=om(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=qH(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),GH=function(){function e(t,r){var n=WH(r);sR(this,{target:t,contentRect:n})}return e}(),KH=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new oR,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Hl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new YH(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Hl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new GH(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),lR=typeof WeakMap<"u"?new WeakMap:new oR,cR=function(){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 r=LH.getInstance(),n=new KH(t,r,this);lR.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){cR.prototype[e]=function(){var t;return(t=lR.get(this))[e].apply(t,arguments)}});var dR=function(){return typeof Sp.ResizeObserver<"u"?Sp.ResizeObserver:cR}(),XH=rR(A.useLayoutEffect),ZH=tR?XH:nR;function JH(e){var t=qf(RH(function(){var a=ao(e);return a?{width:a.clientWidth,height:a.clientHeight}:void 0}),2),r=t[0],n=t[1];return ZH(function(){var a=ao(e);if(a){var i=new dR(function(o){o.forEach(function(s){var u=s.target,l=u.clientWidth,h=u.clientHeight;n({width:l,height:h})})});return i.observe(a),function(){i.disconnect()}}},[],e),r}var Q0={exports:{}},QH=Q0.exports,h6;function eV(){return h6||(h6=1,function(e){(function(){function t(f){var p={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(f===!1)return JSON.parse(JSON.stringify(p));var v={};for(var x in p)p.hasOwnProperty(x)&&(v[x]=p[x].defaultValue);return v}function r(){var f=t(!0),p={};for(var v in f)f.hasOwnProperty(v)&&(p[v]=!0);return p}var n={},a={},i={},o=t(!0),s="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:r()};n.helper={},n.extensions={},n.setOption=function(f,p){return o[f]=p,this},n.getOption=function(f){return o[f]},n.getOptions=function(){return o},n.resetOptions=function(){o=t(!0)},n.setFlavor=function(f){if(!u.hasOwnProperty(f))throw Error(f+" flavor was not found");n.resetOptions();var p=u[f];s=f;for(var v in p)p.hasOwnProperty(v)&&(o[v]=p[v])},n.getFlavor=function(){return s},n.getFlavorOptions=function(f){if(u.hasOwnProperty(f))return u[f]},n.getDefaultOptions=function(f){return t(f)},n.subParser=function(f,p){if(n.helper.isString(f))if(typeof p<"u")a[f]=p;else{if(a.hasOwnProperty(f))return a[f];throw Error("SubParser named "+f+" not registered!")}},n.extension=function(f,p){if(!n.helper.isString(f))throw Error("Extension 'name' must be a string");if(f=n.helper.stdExtName(f),n.helper.isUndefined(p)){if(!i.hasOwnProperty(f))throw Error("Extension named "+f+" is not registered!");return i[f]}else{typeof p=="function"&&(p=p()),n.helper.isArray(p)||(p=[p]);var v=l(p,f);if(v.valid)i[f]=p;else throw Error(v.error)}},n.getAllExtensions=function(){return i},n.removeExtension=function(f){delete i[f]},n.resetExtensions=function(){i={}};function l(f,p){var v=p?"Error in "+p+" extension->":"Error in unnamed extension",x={valid:!0,error:""};n.helper.isArray(f)||(f=[f]);for(var k=0;k<f.length;++k){var O=v+" sub-extension "+k+": ",$=f[k];if(typeof $!="object")return x.valid=!1,x.error=O+"must be an object, but "+typeof $+" given",x;if(!n.helper.isString($.type))return x.valid=!1,x.error=O+'property "type" must be a string, but '+typeof $.type+" given",x;var D=$.type=$.type.toLowerCase();if(D==="language"&&(D=$.type="lang"),D==="html"&&(D=$.type="output"),D!=="lang"&&D!=="output"&&D!=="listener")return x.valid=!1,x.error=O+"type "+D+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',x;if(D==="listener"){if(n.helper.isUndefined($.listeners))return x.valid=!1,x.error=O+'. Extensions of type "listener" must have a property called "listeners"',x}else if(n.helper.isUndefined($.filter)&&n.helper.isUndefined($.regex))return x.valid=!1,x.error=O+D+' extensions must define either a "regex" property or a "filter" method',x;if($.listeners){if(typeof $.listeners!="object")return x.valid=!1,x.error=O+'"listeners" property must be an object but '+typeof $.listeners+" given",x;for(var V in $.listeners)if($.listeners.hasOwnProperty(V)&&typeof $.listeners[V]!="function")return x.valid=!1,x.error=O+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+V+" must be a function but "+typeof $.listeners[V]+" given",x}if($.filter){if(typeof $.filter!="function")return x.valid=!1,x.error=O+'"filter" must be a function, but '+typeof $.filter+" given",x}else if($.regex){if(n.helper.isString($.regex)&&($.regex=new RegExp($.regex,"g")),!($.regex instanceof RegExp))return x.valid=!1,x.error=O+'"regex" property must either be a string or a RegExp object, but '+typeof $.regex+" given",x;if(n.helper.isUndefined($.replace))return x.valid=!1,x.error=O+'"regex" extensions must implement a replace string or function',x}}return x}n.validateExtension=function(f){var p=l(f,null);return p.valid?!0:(console.warn(p.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(f){return typeof f=="string"||f instanceof String},n.helper.isFunction=function(f){var p={};return f&&p.toString.call(f)==="[object Function]"},n.helper.isArray=function(f){return Array.isArray(f)},n.helper.isUndefined=function(f){return typeof f>"u"},n.helper.forEach=function(f,p){if(n.helper.isUndefined(f))throw new Error("obj param is required");if(n.helper.isUndefined(p))throw new Error("callback param is required");if(!n.helper.isFunction(p))throw new Error("callback param must be a function/closure");if(typeof f.forEach=="function")f.forEach(p);else if(n.helper.isArray(f))for(var v=0;v<f.length;v++)p(f[v],v,f);else if(typeof f=="object")for(var x in f)f.hasOwnProperty(x)&&p(f[x],x,f);else throw new Error("obj does not seem to be an array or an iterable object")},n.helper.stdExtName=function(f){return f.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function h(f,p){var v=p.charCodeAt(0);return"¨E"+v+"E"}n.helper.escapeCharactersCallback=h,n.helper.escapeCharacters=function(f,p,v){var x="(["+p.replace(/([\[\]\\])/g,"\\$1")+"])";v&&(x="\\\\"+x);var k=new RegExp(x,"g");return f=f.replace(k,h),f},n.helper.unescapeHTMLEntities=function(f){return f.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var d=function(f,p,v,x){var k=x||"",O=k.indexOf("g")>-1,$=new RegExp(p+"|"+v,"g"+k.replace(/g/g,"")),D=new RegExp(p,k.replace(/g/g,"")),V=[],I,N,F,T,M;do for(I=0;F=$.exec(f);)if(D.test(F[0]))I++||(N=$.lastIndex,T=N-F[0].length);else if(I&&!--I){M=F.index+F[0].length;var j={left:{start:T,end:N},match:{start:N,end:F.index},right:{start:F.index,end:M},wholeMatch:{start:T,end:M}};if(V.push(j),!O)return V}while(I&&($.lastIndex=N));return V};n.helper.matchRecursiveRegExp=function(f,p,v,x){for(var k=d(f,p,v,x),O=[],$=0;$<k.length;++$)O.push([f.slice(k[$].wholeMatch.start,k[$].wholeMatch.end),f.slice(k[$].match.start,k[$].match.end),f.slice(k[$].left.start,k[$].left.end),f.slice(k[$].right.start,k[$].right.end)]);return O},n.helper.replaceRecursiveRegExp=function(f,p,v,x,k){if(!n.helper.isFunction(p)){var O=p;p=function(){return O}}var $=d(f,v,x,k),D=f,V=$.length;if(V>0){var I=[];$[0].wholeMatch.start!==0&&I.push(f.slice(0,$[0].wholeMatch.start));for(var N=0;N<V;++N)I.push(p(f.slice($[N].wholeMatch.start,$[N].wholeMatch.end),f.slice($[N].match.start,$[N].match.end),f.slice($[N].left.start,$[N].left.end),f.slice($[N].right.start,$[N].right.end))),N<V-1&&I.push(f.slice($[N].wholeMatch.end,$[N+1].wholeMatch.start));$[V-1].wholeMatch.end<f.length&&I.push(f.slice($[V-1].wholeMatch.end)),D=I.join("")}return D},n.helper.regexIndexOf=function(f,p,v){if(!n.helper.isString(f))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(p instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var x=f.substring(v||0).search(p);return x>=0?x+(v||0):x},n.helper.splitAtIndex=function(f,p){if(!n.helper.isString(f))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[f.substring(0,p),f.substring(p)]},n.helper.encodeEmailAddress=function(f){var p=[function(v){return"&#"+v.charCodeAt(0)+";"},function(v){return"&#x"+v.charCodeAt(0).toString(16)+";"},function(v){return v}];return f=f.replace(/./g,function(v){if(v==="@")v=p[Math.floor(Math.random()*2)](v);else{var x=Math.random();v=x>.9?p[2](v):x>.45?p[1](v):p[0](v)}return v}),f},n.helper.padEnd=function(p,v,x){return v=v>>0,x=String(x||" "),p.length>v?String(p):(v=v-p.length,v>x.length&&(x+=x.repeat(v/x.length)),String(p)+x.slice(0,v))},typeof console>"u"&&(console={warn:function(f){alert(f)},log:function(f){alert(f)},error:function(f){throw f}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:`<span style="font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>`},n.Converter=function(f){var p={},v=[],x=[],k={},O=s,$={parsed:{},raw:"",format:""};D();function D(){f=f||{};for(var T in o)o.hasOwnProperty(T)&&(p[T]=o[T]);if(typeof f=="object")for(var M in f)f.hasOwnProperty(M)&&(p[M]=f[M]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof f+" was passed instead.");p.extensions&&n.helper.forEach(p.extensions,V)}function V(T,M){if(M=M||null,n.helper.isString(T))if(T=n.helper.stdExtName(T),M=T,n.extensions[T]){console.warn("DEPRECATION WARNING: "+T+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),I(n.extensions[T],T);return}else if(!n.helper.isUndefined(i[T]))T=i[T];else throw Error('Extension "'+T+'" could not be loaded. It was either not found or is not a valid extension.');typeof T=="function"&&(T=T()),n.helper.isArray(T)||(T=[T]);var j=l(T,M);if(!j.valid)throw Error(j.error);for(var H=0;H<T.length;++H){switch(T[H].type){case"lang":v.push(T[H]);break;case"output":x.push(T[H]);break}if(T[H].hasOwnProperty("listeners"))for(var z in T[H].listeners)T[H].listeners.hasOwnProperty(z)&&N(z,T[H].listeners[z])}}function I(T,M){typeof T=="function"&&(T=T(new n.Converter)),n.helper.isArray(T)||(T=[T]);var j=l(T,M);if(!j.valid)throw Error(j.error);for(var H=0;H<T.length;++H)switch(T[H].type){case"lang":v.push(T[H]);break;case"output":x.push(T[H]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}function N(T,M){if(!n.helper.isString(T))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof T+" given");if(typeof M!="function")throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof M+" given");k.hasOwnProperty(T)||(k[T]=[]),k[T].push(M)}function F(T){var M=T.match(/^\s*/)[0].length,j=new RegExp("^\\s{0,"+M+"}","gm");return T.replace(j,"")}this._dispatch=function(M,j,H,z){if(k.hasOwnProperty(M))for(var U=0;U<k[M].length;++U){var G=k[M][U](M,j,this,H,z);G&&typeof G<"u"&&(j=G)}return j},this.listen=function(T,M){return N(T,M),this},this.makeHtml=function(T){if(!T)return T;var M={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:v,outputModifiers:x,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return T=T.replace(/¨/g,"¨T"),T=T.replace(/\$/g,"¨D"),T=T.replace(/\r\n/g,`
144
- `),T=T.replace(/\r/g,`
145
- `),T=T.replace(/\u00A0/g,"&nbsp;"),p.smartIndentationFix&&(T=F(T)),T=`
146
-
147
- `+T+`
148
-
149
- `,T=n.subParser("detab")(T,p,M),T=T.replace(/^[ \t]+$/mg,""),n.helper.forEach(v,function(j){T=n.subParser("runExtension")(j,T,p,M)}),T=n.subParser("metadata")(T,p,M),T=n.subParser("hashPreCodeTags")(T,p,M),T=n.subParser("githubCodeBlocks")(T,p,M),T=n.subParser("hashHTMLBlocks")(T,p,M),T=n.subParser("hashCodeTags")(T,p,M),T=n.subParser("stripLinkDefinitions")(T,p,M),T=n.subParser("blockGamut")(T,p,M),T=n.subParser("unhashHTMLSpans")(T,p,M),T=n.subParser("unescapeSpecialChars")(T,p,M),T=T.replace(/¨D/g,"$$"),T=T.replace(/¨T/g,"¨"),T=n.subParser("completeHTMLDocument")(T,p,M),n.helper.forEach(x,function(j){T=n.subParser("runExtension")(j,T,p,M)}),$=M.metadata,T},this.makeMarkdown=this.makeMd=function(T,M){if(T=T.replace(/\r\n/g,`
150
- `),T=T.replace(/\r/g,`
151
- `),T=T.replace(/>[ \t]+</,">¨NBSP;<"),!M)if(window&&window.document)M=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var j=M.createElement("div");j.innerHTML=T;var H={preList:K(j)};X(j);for(var z=j.childNodes,U="",G=0;G<z.length;G++)U+=n.subParser("makeMarkdown.node")(z[G],H);function X(ne){for(var ae=0;ae<ne.childNodes.length;++ae){var ie=ne.childNodes[ae];ie.nodeType===3?!/\S/.test(ie.nodeValue)&&!/^[ ]+$/.test(ie.nodeValue)?(ne.removeChild(ie),--ae):(ie.nodeValue=ie.nodeValue.split(`
152
- `).join(" "),ie.nodeValue=ie.nodeValue.replace(/(\s)+/g,"$1")):ie.nodeType===1&&X(ie)}}function K(ne){for(var ae=ne.querySelectorAll("pre"),ie=[],de=0;de<ae.length;++de)if(ae[de].childElementCount===1&&ae[de].firstChild.tagName.toLowerCase()==="code"){var pe=ae[de].firstChild.innerHTML.trim(),be=ae[de].firstChild.getAttribute("data-language")||"";if(be==="")for(var me=ae[de].firstChild.className.split(" "),ee=0;ee<me.length;++ee){var ve=me[ee].match(/^language-(.+)$/);if(ve!==null){be=ve[1];break}}pe=n.helper.unescapeHTMLEntities(pe),ie.push(pe),ae[de].outerHTML='<precode language="'+be+'" precodenum="'+de.toString()+'"></precode>'}else ie.push(ae[de].innerHTML),ae[de].innerHTML="",ae[de].setAttribute("prenum",de.toString());return ie}return U},this.setOption=function(T,M){p[T]=M},this.getOption=function(T){return p[T]},this.getOptions=function(){return p},this.addExtension=function(T,M){M=M||null,V(T,M)},this.useExtension=function(T){V(T)},this.setFlavor=function(T){if(!u.hasOwnProperty(T))throw Error(T+" flavor was not found");var M=u[T];O=T;for(var j in M)M.hasOwnProperty(j)&&(p[j]=M[j])},this.getFlavor=function(){return O},this.removeExtension=function(T){n.helper.isArray(T)||(T=[T]);for(var M=0;M<T.length;++M){for(var j=T[M],H=0;H<v.length;++H)v[H]===j&&v.splice(H,1);for(var z=0;z<x.length;++z)x[z]===j&&x.splice(z,1)}},this.getAllExtensions=function(){return{language:v,output:x}},this.getMetadata=function(T){return T?$.raw:$.parsed},this.getMetadataFormat=function(){return $.format},this._setMetadataPair=function(T,M){$.parsed[T]=M},this._setMetadataFormat=function(T){$.format=T},this._setMetadataRaw=function(T){$.raw=T}},n.subParser("anchors",function(f,p,v){f=v.converter._dispatch("anchors.before",f,p,v);var x=function(k,O,$,D,V,I,N){if(n.helper.isUndefined(N)&&(N=""),$=$.toLowerCase(),k.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)D="";else if(!D)if($||($=O.toLowerCase().replace(/ ?\n/g," ")),D="#"+$,!n.helper.isUndefined(v.gUrls[$]))D=v.gUrls[$],n.helper.isUndefined(v.gTitles[$])||(N=v.gTitles[$]);else return k;D=D.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var F='<a href="'+D+'"';return N!==""&&N!==null&&(N=N.replace(/"/g,"&quot;"),N=N.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),F+=' title="'+N+'"'),p.openLinksInNewWindow&&!/^#/.test(D)&&(F+=' rel="noopener noreferrer" target="¨E95Eblank"'),F+=">"+O+"</a>",F};return f=f.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,x),f=f.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,x),f=f.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,x),f=f.replace(/\[([^\[\]]+)]()()()()()/g,x),p.ghMentions&&(f=f.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(k,O,$,D,V){if($==="\\")return O+D;if(!n.helper.isString(p.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var I=p.ghMentionsLink.replace(/\{u}/g,V),N="";return p.openLinksInNewWindow&&(N=' rel="noopener noreferrer" target="¨E95Eblank"'),O+'<a href="'+I+'"'+N+">"+D+"</a>"})),f=v.converter._dispatch("anchors.after",f,p,v),f});var g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,b=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,y=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,w=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,S=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,E=function(f){return function(p,v,x,k,O,$,D){x=x.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var V=x,I="",N="",F=v||"",T=D||"";return/^www\./i.test(x)&&(x=x.replace(/^www\./i,"http://www.")),f.excludeTrailingPunctuationFromURLs&&$&&(I=$),f.openLinksInNewWindow&&(N=' rel="noopener noreferrer" target="¨E95Eblank"'),F+'<a href="'+x+'"'+N+">"+V+"</a>"+I+T}},_=function(f,p){return function(v,x,k){var O="mailto:";return x=x||"",k=n.subParser("unescapeSpecialChars")(k,f,p),f.encodeEmails?(O=n.helper.encodeEmailAddress(O+k),k=n.helper.encodeEmailAddress(k)):O=O+k,x+'<a href="'+O+'">'+k+"</a>"}};n.subParser("autoLinks",function(f,p,v){return f=v.converter._dispatch("autoLinks.before",f,p,v),f=f.replace(y,E(p)),f=f.replace(S,_(p,v)),f=v.converter._dispatch("autoLinks.after",f,p,v),f}),n.subParser("simplifiedAutoLinks",function(f,p,v){return p.simplifiedAutoLink&&(f=v.converter._dispatch("simplifiedAutoLinks.before",f,p,v),p.excludeTrailingPunctuationFromURLs?f=f.replace(b,E(p)):f=f.replace(g,E(p)),f=f.replace(w,_(p,v)),f=v.converter._dispatch("simplifiedAutoLinks.after",f,p,v)),f}),n.subParser("blockGamut",function(f,p,v){return f=v.converter._dispatch("blockGamut.before",f,p,v),f=n.subParser("blockQuotes")(f,p,v),f=n.subParser("headers")(f,p,v),f=n.subParser("horizontalRule")(f,p,v),f=n.subParser("lists")(f,p,v),f=n.subParser("codeBlocks")(f,p,v),f=n.subParser("tables")(f,p,v),f=n.subParser("hashHTMLBlocks")(f,p,v),f=n.subParser("paragraphs")(f,p,v),f=v.converter._dispatch("blockGamut.after",f,p,v),f}),n.subParser("blockQuotes",function(f,p,v){f=v.converter._dispatch("blockQuotes.before",f,p,v),f=f+`
153
-
154
- `;var x=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return p.splitAdjacentBlockquotes&&(x=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),f=f.replace(x,function(k){return k=k.replace(/^[ \t]*>[ \t]?/gm,""),k=k.replace(/¨0/g,""),k=k.replace(/^[ \t]+$/gm,""),k=n.subParser("githubCodeBlocks")(k,p,v),k=n.subParser("blockGamut")(k,p,v),k=k.replace(/(^|\n)/g,"$1 "),k=k.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(O,$){var D=$;return D=D.replace(/^ /mg,"¨0"),D=D.replace(/¨0/g,""),D}),n.subParser("hashBlock")(`<blockquote>
155
- `+k+`
156
- </blockquote>`,p,v)}),f=v.converter._dispatch("blockQuotes.after",f,p,v),f}),n.subParser("codeBlocks",function(f,p,v){f=v.converter._dispatch("codeBlocks.before",f,p,v),f+="¨0";var x=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return f=f.replace(x,function(k,O,$){var D=O,V=$,I=`
157
- `;return D=n.subParser("outdent")(D,p,v),D=n.subParser("encodeCode")(D,p,v),D=n.subParser("detab")(D,p,v),D=D.replace(/^\n+/g,""),D=D.replace(/\n+$/g,""),p.omitExtraWLInCodeBlocks&&(I=""),D="<pre><code>"+D+I+"</code></pre>",n.subParser("hashBlock")(D,p,v)+V}),f=f.replace(/¨0/,""),f=v.converter._dispatch("codeBlocks.after",f,p,v),f}),n.subParser("codeSpans",function(f,p,v){return f=v.converter._dispatch("codeSpans.before",f,p,v),typeof f>"u"&&(f=""),f=f.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(x,k,O,$){var D=$;return D=D.replace(/^([ \t]*)/g,""),D=D.replace(/[ \t]*$/g,""),D=n.subParser("encodeCode")(D,p,v),D=k+"<code>"+D+"</code>",D=n.subParser("hashHTMLSpans")(D,p,v),D}),f=v.converter._dispatch("codeSpans.after",f,p,v),f}),n.subParser("completeHTMLDocument",function(f,p,v){if(!p.completeHTMLDocument)return f;f=v.converter._dispatch("completeHTMLDocument.before",f,p,v);var x="html",k=`<!DOCTYPE HTML>
158
- `,O="",$=`<meta charset="utf-8">
159
- `,D="",V="";typeof v.metadata.parsed.doctype<"u"&&(k="<!DOCTYPE "+v.metadata.parsed.doctype+`>
160
- `,x=v.metadata.parsed.doctype.toString().toLowerCase(),(x==="html"||x==="html5")&&($='<meta charset="utf-8">'));for(var I in v.metadata.parsed)if(v.metadata.parsed.hasOwnProperty(I))switch(I.toLowerCase()){case"doctype":break;case"title":O="<title>"+v.metadata.parsed.title+`</title>
161
- `;break;case"charset":x==="html"||x==="html5"?$='<meta charset="'+v.metadata.parsed.charset+`">
162
- `:$='<meta name="charset" content="'+v.metadata.parsed.charset+`">
163
- `;break;case"language":case"lang":D=' lang="'+v.metadata.parsed[I]+'"',V+='<meta name="'+I+'" content="'+v.metadata.parsed[I]+`">
164
- `;break;default:V+='<meta name="'+I+'" content="'+v.metadata.parsed[I]+`">
165
- `}return f=k+"<html"+D+`>
166
- <head>
167
- `+O+$+V+`</head>
168
- <body>
169
- `+f.trim()+`
170
- </body>
171
- </html>`,f=v.converter._dispatch("completeHTMLDocument.after",f,p,v),f}),n.subParser("detab",function(f,p,v){return f=v.converter._dispatch("detab.before",f,p,v),f=f.replace(/\t(?=\t)/g," "),f=f.replace(/\t/g,"¨A¨B"),f=f.replace(/¨B(.+?)¨A/g,function(x,k){for(var O=k,$=4-O.length%4,D=0;D<$;D++)O+=" ";return O}),f=f.replace(/¨A/g," "),f=f.replace(/¨B/g,""),f=v.converter._dispatch("detab.after",f,p,v),f}),n.subParser("ellipsis",function(f,p,v){return p.ellipsis&&(f=v.converter._dispatch("ellipsis.before",f,p,v),f=f.replace(/\.\.\./g,"…"),f=v.converter._dispatch("ellipsis.after",f,p,v)),f}),n.subParser("emoji",function(f,p,v){if(!p.emoji)return f;f=v.converter._dispatch("emoji.before",f,p,v);var x=/:([\S]+?):/g;return f=f.replace(x,function(k,O){return n.helper.emojis.hasOwnProperty(O)?n.helper.emojis[O]:k}),f=v.converter._dispatch("emoji.after",f,p,v),f}),n.subParser("encodeAmpsAndAngles",function(f,p,v){return f=v.converter._dispatch("encodeAmpsAndAngles.before",f,p,v),f=f.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),f=f.replace(/<(?![a-z\/?$!])/gi,"&lt;"),f=f.replace(/</g,"&lt;"),f=f.replace(/>/g,"&gt;"),f=v.converter._dispatch("encodeAmpsAndAngles.after",f,p,v),f}),n.subParser("encodeBackslashEscapes",function(f,p,v){return f=v.converter._dispatch("encodeBackslashEscapes.before",f,p,v),f=f.replace(/\\(\\)/g,n.helper.escapeCharactersCallback),f=f.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,n.helper.escapeCharactersCallback),f=v.converter._dispatch("encodeBackslashEscapes.after",f,p,v),f}),n.subParser("encodeCode",function(f,p,v){return f=v.converter._dispatch("encodeCode.before",f,p,v),f=f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),f=v.converter._dispatch("encodeCode.after",f,p,v),f}),n.subParser("escapeSpecialCharsWithinTagAttributes",function(f,p,v){f=v.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",f,p,v);var x=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,k=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return f=f.replace(x,function(O){return O.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),f=f.replace(k,function(O){return O.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),f=v.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",f,p,v),f}),n.subParser("githubCodeBlocks",function(f,p,v){return p.ghCodeBlocks?(f=v.converter._dispatch("githubCodeBlocks.before",f,p,v),f+="¨0",f=f.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(x,k,O,$){var D=p.omitExtraWLInCodeBlocks?"":`
172
- `;return $=n.subParser("encodeCode")($,p,v),$=n.subParser("detab")($,p,v),$=$.replace(/^\n+/g,""),$=$.replace(/\n+$/g,""),$="<pre><code"+(O?' class="'+O+" language-"+O+'"':"")+">"+$+D+"</code></pre>",$=n.subParser("hashBlock")($,p,v),`
173
-
174
- ¨G`+(v.ghCodeBlocks.push({text:x,codeblock:$})-1)+`G
175
-
176
- `}),f=f.replace(/¨0/,""),v.converter._dispatch("githubCodeBlocks.after",f,p,v)):f}),n.subParser("hashBlock",function(f,p,v){return f=v.converter._dispatch("hashBlock.before",f,p,v),f=f.replace(/(^\n+|\n+$)/g,""),f=`
177
-
178
- ¨K`+(v.gHtmlBlocks.push(f)-1)+`K
179
-
180
- `,f=v.converter._dispatch("hashBlock.after",f,p,v),f}),n.subParser("hashCodeTags",function(f,p,v){f=v.converter._dispatch("hashCodeTags.before",f,p,v);var x=function(k,O,$,D){var V=$+n.subParser("encodeCode")(O,p,v)+D;return"¨C"+(v.gHtmlSpans.push(V)-1)+"C"};return f=n.helper.replaceRecursiveRegExp(f,x,"<code\\b[^>]*>","</code>","gim"),f=v.converter._dispatch("hashCodeTags.after",f,p,v),f}),n.subParser("hashElement",function(f,p,v){return function(x,k){var O=k;return O=O.replace(/\n\n/g,`
181
- `),O=O.replace(/^\n/,""),O=O.replace(/\n+$/g,""),O=`
182
-
183
- ¨K`+(v.gHtmlBlocks.push(O)-1)+`K
184
-
185
- `,O}}),n.subParser("hashHTMLBlocks",function(f,p,v){f=v.converter._dispatch("hashHTMLBlocks.before",f,p,v);var x=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],k=function(T,M,j,H){var z=T;return j.search(/\bmarkdown\b/)!==-1&&(z=j+v.converter.makeHtml(M)+H),`
186
-
187
- ¨K`+(v.gHtmlBlocks.push(z)-1)+`K
188
-
189
- `};p.backslashEscapesHTMLTags&&(f=f.replace(/\\<(\/?[^>]+?)>/g,function(T,M){return"&lt;"+M+"&gt;"}));for(var O=0;O<x.length;++O)for(var $,D=new RegExp("^ {0,3}(<"+x[O]+"\\b[^>]*>)","im"),V="<"+x[O]+"\\b[^>]*>",I="</"+x[O]+">";($=n.helper.regexIndexOf(f,D))!==-1;){var N=n.helper.splitAtIndex(f,$),F=n.helper.replaceRecursiveRegExp(N[1],k,V,I,"im");if(F===N[1])break;f=N[0].concat(F)}return f=f.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(f,p,v)),f=n.helper.replaceRecursiveRegExp(f,function(T){return`
190
-
191
- ¨K`+(v.gHtmlBlocks.push(T)-1)+`K
192
-
193
- `},"^ {0,3}<!--","-->","gm"),f=f.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(f,p,v)),f=v.converter._dispatch("hashHTMLBlocks.after",f,p,v),f}),n.subParser("hashHTMLSpans",function(f,p,v){f=v.converter._dispatch("hashHTMLSpans.before",f,p,v);function x(k){return"¨C"+(v.gHtmlSpans.push(k)-1)+"C"}return f=f.replace(/<[^>]+?\/>/gi,function(k){return x(k)}),f=f.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(k){return x(k)}),f=f.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(k){return x(k)}),f=f.replace(/<[^>]+?>/gi,function(k){return x(k)}),f=v.converter._dispatch("hashHTMLSpans.after",f,p,v),f}),n.subParser("unhashHTMLSpans",function(f,p,v){f=v.converter._dispatch("unhashHTMLSpans.before",f,p,v);for(var x=0;x<v.gHtmlSpans.length;++x){for(var k=v.gHtmlSpans[x],O=0;/¨C(\d+)C/.test(k);){var $=RegExp.$1;if(k=k.replace("¨C"+$+"C",v.gHtmlSpans[$]),O===10){console.error("maximum nesting of 10 spans reached!!!");break}++O}f=f.replace("¨C"+x+"C",k)}return f=v.converter._dispatch("unhashHTMLSpans.after",f,p,v),f}),n.subParser("hashPreCodeTags",function(f,p,v){f=v.converter._dispatch("hashPreCodeTags.before",f,p,v);var x=function(k,O,$,D){var V=$+n.subParser("encodeCode")(O,p,v)+D;return`
194
-
195
- ¨G`+(v.ghCodeBlocks.push({text:k,codeblock:V})-1)+`G
196
-
197
- `};return f=n.helper.replaceRecursiveRegExp(f,x,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),f=v.converter._dispatch("hashPreCodeTags.after",f,p,v),f}),n.subParser("headers",function(f,p,v){f=v.converter._dispatch("headers.before",f,p,v);var x=isNaN(parseInt(p.headerLevelStart))?1:parseInt(p.headerLevelStart),k=p.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,O=p.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;f=f.replace(k,function(V,I){var N=n.subParser("spanGamut")(I,p,v),F=p.noHeaderId?"":' id="'+D(I)+'"',T=x,M="<h"+T+F+">"+N+"</h"+T+">";return n.subParser("hashBlock")(M,p,v)}),f=f.replace(O,function(V,I){var N=n.subParser("spanGamut")(I,p,v),F=p.noHeaderId?"":' id="'+D(I)+'"',T=x+1,M="<h"+T+F+">"+N+"</h"+T+">";return n.subParser("hashBlock")(M,p,v)});var $=p.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;f=f.replace($,function(V,I,N){var F=N;p.customizedHeaderId&&(F=N.replace(/\s?\{([^{]+?)}\s*$/,""));var T=n.subParser("spanGamut")(F,p,v),M=p.noHeaderId?"":' id="'+D(N)+'"',j=x-1+I.length,H="<h"+j+M+">"+T+"</h"+j+">";return n.subParser("hashBlock")(H,p,v)});function D(V){var I,N;if(p.customizedHeaderId){var F=V.match(/\{([^{]+?)}\s*$/);F&&F[1]&&(V=F[1])}return I=V,n.helper.isString(p.prefixHeaderId)?N=p.prefixHeaderId:p.prefixHeaderId===!0?N="section-":N="",p.rawPrefixHeaderId||(I=N+I),p.ghCompatibleHeaderId?I=I.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():p.rawHeaderId?I=I.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():I=I.replace(/[^\w]/g,"").toLowerCase(),p.rawPrefixHeaderId&&(I=N+I),v.hashLinkCounts[I]?I=I+"-"+v.hashLinkCounts[I]++:v.hashLinkCounts[I]=1,I}return f=v.converter._dispatch("headers.after",f,p,v),f}),n.subParser("horizontalRule",function(f,p,v){f=v.converter._dispatch("horizontalRule.before",f,p,v);var x=n.subParser("hashBlock")("<hr />",p,v);return f=f.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,x),f=f.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,x),f=f.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,x),f=v.converter._dispatch("horizontalRule.after",f,p,v),f}),n.subParser("images",function(f,p,v){f=v.converter._dispatch("images.before",f,p,v);var x=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,k=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,O=/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,$=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,D=/!\[([^\[\]]+)]()()()()()/g;function V(N,F,T,M,j,H,z,U){return M=M.replace(/\s/g,""),I(N,F,T,M,j,H,z,U)}function I(N,F,T,M,j,H,z,U){var G=v.gUrls,X=v.gTitles,K=v.gDimensions;if(T=T.toLowerCase(),U||(U=""),N.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)M="";else if(M===""||M===null)if((T===""||T===null)&&(T=F.toLowerCase().replace(/ ?\n/g," ")),M="#"+T,!n.helper.isUndefined(G[T]))M=G[T],n.helper.isUndefined(X[T])||(U=X[T]),n.helper.isUndefined(K[T])||(j=K[T].width,H=K[T].height);else return N;F=F.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),M=M.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var ne='<img src="'+M+'" alt="'+F+'"';return U&&n.helper.isString(U)&&(U=U.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),ne+=' title="'+U+'"'),j&&H&&(j=j==="*"?"auto":j,H=H==="*"?"auto":H,ne+=' width="'+j+'"',ne+=' height="'+H+'"'),ne+=" />",ne}return f=f.replace($,I),f=f.replace(O,V),f=f.replace(k,I),f=f.replace(x,I),f=f.replace(D,I),f=v.converter._dispatch("images.after",f,p,v),f}),n.subParser("italicsAndBold",function(f,p,v){f=v.converter._dispatch("italicsAndBold.before",f,p,v);function x(k,O,$){return O+k+$}return p.literalMidWordUnderscores?(f=f.replace(/\b___(\S[\s\S]*?)___\b/g,function(k,O){return x(O,"<strong><em>","</em></strong>")}),f=f.replace(/\b__(\S[\s\S]*?)__\b/g,function(k,O){return x(O,"<strong>","</strong>")}),f=f.replace(/\b_(\S[\s\S]*?)_\b/g,function(k,O){return x(O,"<em>","</em>")})):(f=f.replace(/___(\S[\s\S]*?)___/g,function(k,O){return/\S$/.test(O)?x(O,"<strong><em>","</em></strong>"):k}),f=f.replace(/__(\S[\s\S]*?)__/g,function(k,O){return/\S$/.test(O)?x(O,"<strong>","</strong>"):k}),f=f.replace(/_([^\s_][\s\S]*?)_/g,function(k,O){return/\S$/.test(O)?x(O,"<em>","</em>"):k})),p.literalMidWordAsterisks?(f=f.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(k,O,$){return x($,O+"<strong><em>","</em></strong>")}),f=f.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(k,O,$){return x($,O+"<strong>","</strong>")}),f=f.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(k,O,$){return x($,O+"<em>","</em>")})):(f=f.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(k,O){return/\S$/.test(O)?x(O,"<strong><em>","</em></strong>"):k}),f=f.replace(/\*\*(\S[\s\S]*?)\*\*/g,function(k,O){return/\S$/.test(O)?x(O,"<strong>","</strong>"):k}),f=f.replace(/\*([^\s*][\s\S]*?)\*/g,function(k,O){return/\S$/.test(O)?x(O,"<em>","</em>"):k})),f=v.converter._dispatch("italicsAndBold.after",f,p,v),f}),n.subParser("lists",function(f,p,v){function x($,D){v.gListLevel++,$=$.replace(/\n{2,}$/,`
198
- `),$+="¨0";var V=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,I=/\n[ \t]*\n(?!¨0)/.test($);return p.disableForced4SpacesIndentedSublists&&(V=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),$=$.replace(V,function(N,F,T,M,j,H,z){z=z&&z.trim()!=="";var U=n.subParser("outdent")(j,p,v),G="";return H&&p.tasklists&&(G=' class="task-list-item" style="list-style-type: none;"',U=U.replace(/^[ \t]*\[(x|X| )?]/m,function(){var X='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return z&&(X+=" checked"),X+=">",X})),U=U.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(X){return"¨A"+X}),F||U.search(/\n{2,}/)>-1?(U=n.subParser("githubCodeBlocks")(U,p,v),U=n.subParser("blockGamut")(U,p,v)):(U=n.subParser("lists")(U,p,v),U=U.replace(/\n$/,""),U=n.subParser("hashHTMLBlocks")(U,p,v),U=U.replace(/\n\n+/g,`
199
-
200
- `),I?U=n.subParser("paragraphs")(U,p,v):U=n.subParser("spanGamut")(U,p,v)),U=U.replace("¨A",""),U="<li"+G+">"+U+`</li>
201
- `,U}),$=$.replace(/¨0/g,""),v.gListLevel--,D&&($=$.replace(/\s+$/,"")),$}function k($,D){if(D==="ol"){var V=$.match(/^ *(\d+)\./);if(V&&V[1]!=="1")return' start="'+V[1]+'"'}return""}function O($,D,V){var I=p.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,N=p.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,F=D==="ul"?I:N,T="";if($.search(F)!==-1)(function j(H){var z=H.search(F),U=k($,D);z!==-1?(T+=`
202
-
203
- <`+D+U+`>
204
- `+x(H.slice(0,z),!!V)+"</"+D+`>
205
- `,D=D==="ul"?"ol":"ul",F=D==="ul"?I:N,j(H.slice(z))):T+=`
206
-
207
- <`+D+U+`>
208
- `+x(H,!!V)+"</"+D+`>
209
- `})($);else{var M=k($,D);T=`
210
-
211
- <`+D+M+`>
212
- `+x($,!!V)+"</"+D+`>
213
- `}return T}return f=v.converter._dispatch("lists.before",f,p,v),f+="¨0",v.gListLevel?f=f.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function($,D,V){var I=V.search(/[*+-]/g)>-1?"ul":"ol";return O(D,I,!0)}):f=f.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function($,D,V,I){var N=I.search(/[*+-]/g)>-1?"ul":"ol";return O(V,N,!1)}),f=f.replace(/¨0/,""),f=v.converter._dispatch("lists.after",f,p,v),f}),n.subParser("metadata",function(f,p,v){if(!p.metadata)return f;f=v.converter._dispatch("metadata.before",f,p,v);function x(k){v.metadata.raw=k,k=k.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),k=k.replace(/\n {4}/g," "),k.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(O,$,D){return v.metadata.parsed[$]=D,""})}return f=f.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(k,O,$){return x($),"¨M"}),f=f.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(k,O,$){return O&&(v.metadata.format=O),x($),"¨M"}),f=f.replace(/¨M/g,""),f=v.converter._dispatch("metadata.after",f,p,v),f}),n.subParser("outdent",function(f,p,v){return f=v.converter._dispatch("outdent.before",f,p,v),f=f.replace(/^(\t|[ ]{1,4})/gm,"¨0"),f=f.replace(/¨0/g,""),f=v.converter._dispatch("outdent.after",f,p,v),f}),n.subParser("paragraphs",function(f,p,v){f=v.converter._dispatch("paragraphs.before",f,p,v),f=f.replace(/^\n+/g,""),f=f.replace(/\n+$/g,"");for(var x=f.split(/\n{2,}/g),k=[],O=x.length,$=0;$<O;$++){var D=x[$];D.search(/¨(K|G)(\d+)\1/g)>=0?k.push(D):D.search(/\S/)>=0&&(D=n.subParser("spanGamut")(D,p,v),D=D.replace(/^([ \t]*)/g,"<p>"),D+="</p>",k.push(D))}for(O=k.length,$=0;$<O;$++){for(var V="",I=k[$],N=!1;/¨(K|G)(\d+)\1/.test(I);){var F=RegExp.$1,T=RegExp.$2;F==="K"?V=v.gHtmlBlocks[T]:N?V=n.subParser("encodeCode")(v.ghCodeBlocks[T].text,p,v):V=v.ghCodeBlocks[T].codeblock,V=V.replace(/\$/g,"$$$$"),I=I.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,V),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(I)&&(N=!0)}k[$]=I}return f=k.join(`
214
- `),f=f.replace(/^\n+/g,""),f=f.replace(/\n+$/g,""),v.converter._dispatch("paragraphs.after",f,p,v)}),n.subParser("runExtension",function(f,p,v,x){if(f.filter)p=f.filter(p,x.converter,v);else if(f.regex){var k=f.regex;k instanceof RegExp||(k=new RegExp(k,"g")),p=p.replace(k,f.replace)}return p}),n.subParser("spanGamut",function(f,p,v){return f=v.converter._dispatch("spanGamut.before",f,p,v),f=n.subParser("codeSpans")(f,p,v),f=n.subParser("escapeSpecialCharsWithinTagAttributes")(f,p,v),f=n.subParser("encodeBackslashEscapes")(f,p,v),f=n.subParser("images")(f,p,v),f=n.subParser("anchors")(f,p,v),f=n.subParser("autoLinks")(f,p,v),f=n.subParser("simplifiedAutoLinks")(f,p,v),f=n.subParser("emoji")(f,p,v),f=n.subParser("underline")(f,p,v),f=n.subParser("italicsAndBold")(f,p,v),f=n.subParser("strikethrough")(f,p,v),f=n.subParser("ellipsis")(f,p,v),f=n.subParser("hashHTMLSpans")(f,p,v),f=n.subParser("encodeAmpsAndAngles")(f,p,v),p.simpleLineBreaks?/\n\n¨K/.test(f)||(f=f.replace(/\n+/g,`<br />
215
- `)):f=f.replace(/ +\n/g,`<br />
216
- `),f=v.converter._dispatch("spanGamut.after",f,p,v),f}),n.subParser("strikethrough",function(f,p,v){function x(k){return p.simplifiedAutoLink&&(k=n.subParser("simplifiedAutoLinks")(k,p,v)),"<del>"+k+"</del>"}return p.strikethrough&&(f=v.converter._dispatch("strikethrough.before",f,p,v),f=f.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(k,O){return x(O)}),f=v.converter._dispatch("strikethrough.after",f,p,v)),f}),n.subParser("stripLinkDefinitions",function(f,p,v){var x=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,k=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;f+="¨0";var O=function($,D,V,I,N,F,T){return D=D.toLowerCase(),f.toLowerCase().split(D).length-1<2?$:(V.match(/^data:.+?\/.+?;base64,/)?v.gUrls[D]=V.replace(/\s/g,""):v.gUrls[D]=n.subParser("encodeAmpsAndAngles")(V,p,v),F?F+T:(T&&(v.gTitles[D]=T.replace(/"|'/g,"&quot;")),p.parseImgDimensions&&I&&N&&(v.gDimensions[D]={width:I,height:N}),""))};return f=f.replace(k,O),f=f.replace(x,O),f=f.replace(/¨0/,""),f}),n.subParser("tables",function(f,p,v){if(!p.tables)return f;var x=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,k=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function O(N){return/^:[ \t]*--*$/.test(N)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(N)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(N)?' style="text-align:center;"':""}function $(N,F){var T="";return N=N.trim(),(p.tablesHeaderId||p.tableHeaderId)&&(T=' id="'+N.replace(/ /g,"_").toLowerCase()+'"'),N=n.subParser("spanGamut")(N,p,v),"<th"+T+F+">"+N+`</th>
217
- `}function D(N,F){var T=n.subParser("spanGamut")(N,p,v);return"<td"+F+">"+T+`</td>
218
- `}function V(N,F){for(var T=`<table>
219
- <thead>
220
- <tr>
221
- `,M=N.length,j=0;j<M;++j)T+=N[j];for(T+=`</tr>
222
- </thead>
223
- <tbody>
224
- `,j=0;j<F.length;++j){T+=`<tr>
225
- `;for(var H=0;H<M;++H)T+=F[j][H];T+=`</tr>
226
- `}return T+=`</tbody>
227
- </table>
228
- `,T}function I(N){var F,T=N.split(`
229
- `);for(F=0;F<T.length;++F)/^ {0,3}\|/.test(T[F])&&(T[F]=T[F].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(T[F])&&(T[F]=T[F].replace(/\|[ \t]*$/,"")),T[F]=n.subParser("codeSpans")(T[F],p,v);var M=T[0].split("|").map(function(ne){return ne.trim()}),j=T[1].split("|").map(function(ne){return ne.trim()}),H=[],z=[],U=[],G=[];for(T.shift(),T.shift(),F=0;F<T.length;++F)T[F].trim()!==""&&H.push(T[F].split("|").map(function(ne){return ne.trim()}));if(M.length<j.length)return N;for(F=0;F<j.length;++F)U.push(O(j[F]));for(F=0;F<M.length;++F)n.helper.isUndefined(U[F])&&(U[F]=""),z.push($(M[F],U[F]));for(F=0;F<H.length;++F){for(var X=[],K=0;K<z.length;++K)n.helper.isUndefined(H[F][K]),X.push(D(H[F][K],U[K]));G.push(X)}return V(z,G)}return f=v.converter._dispatch("tables.before",f,p,v),f=f.replace(/\\(\|)/g,n.helper.escapeCharactersCallback),f=f.replace(x,I),f=f.replace(k,I),f=v.converter._dispatch("tables.after",f,p,v),f}),n.subParser("underline",function(f,p,v){return p.underline&&(f=v.converter._dispatch("underline.before",f,p,v),p.literalMidWordUnderscores?(f=f.replace(/\b___(\S[\s\S]*?)___\b/g,function(x,k){return"<u>"+k+"</u>"}),f=f.replace(/\b__(\S[\s\S]*?)__\b/g,function(x,k){return"<u>"+k+"</u>"})):(f=f.replace(/___(\S[\s\S]*?)___/g,function(x,k){return/\S$/.test(k)?"<u>"+k+"</u>":x}),f=f.replace(/__(\S[\s\S]*?)__/g,function(x,k){return/\S$/.test(k)?"<u>"+k+"</u>":x})),f=f.replace(/(_)/g,n.helper.escapeCharactersCallback),f=v.converter._dispatch("underline.after",f,p,v)),f}),n.subParser("unescapeSpecialChars",function(f,p,v){return f=v.converter._dispatch("unescapeSpecialChars.before",f,p,v),f=f.replace(/¨E(\d+)E/g,function(x,k){var O=parseInt(k);return String.fromCharCode(O)}),f=v.converter._dispatch("unescapeSpecialChars.after",f,p,v),f}),n.subParser("makeMarkdown.blockquote",function(f,p){var v="";if(f.hasChildNodes())for(var x=f.childNodes,k=x.length,O=0;O<k;++O){var $=n.subParser("makeMarkdown.node")(x[O],p);$!==""&&(v+=$)}return v=v.trim(),v="> "+v.split(`
230
- `).join(`
231
- > `),v}),n.subParser("makeMarkdown.codeBlock",function(f,p){var v=f.getAttribute("language"),x=f.getAttribute("precodenum");return"```"+v+`
232
- `+p.preList[x]+"\n```"}),n.subParser("makeMarkdown.codeSpan",function(f){return"`"+f.innerHTML+"`"}),n.subParser("makeMarkdown.emphasis",function(f,p){var v="";if(f.hasChildNodes()){v+="*";for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p);v+="*"}return v}),n.subParser("makeMarkdown.header",function(f,p,v){var x=new Array(v+1).join("#"),k="";if(f.hasChildNodes()){k=x+" ";for(var O=f.childNodes,$=O.length,D=0;D<$;++D)k+=n.subParser("makeMarkdown.node")(O[D],p)}return k}),n.subParser("makeMarkdown.hr",function(){return"---"}),n.subParser("makeMarkdown.image",function(f){var p="";return f.hasAttribute("src")&&(p+="!["+f.getAttribute("alt")+"](",p+="<"+f.getAttribute("src")+">",f.hasAttribute("width")&&f.hasAttribute("height")&&(p+=" ="+f.getAttribute("width")+"x"+f.getAttribute("height")),f.hasAttribute("title")&&(p+=' "'+f.getAttribute("title")+'"'),p+=")"),p}),n.subParser("makeMarkdown.links",function(f,p){var v="";if(f.hasChildNodes()&&f.hasAttribute("href")){var x=f.childNodes,k=x.length;v="[";for(var O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p);v+="](",v+="<"+f.getAttribute("href")+">",f.hasAttribute("title")&&(v+=' "'+f.getAttribute("title")+'"'),v+=")"}return v}),n.subParser("makeMarkdown.list",function(f,p,v){var x="";if(!f.hasChildNodes())return"";for(var k=f.childNodes,O=k.length,$=f.getAttribute("start")||1,D=0;D<O;++D)if(!(typeof k[D].tagName>"u"||k[D].tagName.toLowerCase()!=="li")){var V="";v==="ol"?V=$.toString()+". ":V="- ",x+=V+n.subParser("makeMarkdown.listItem")(k[D],p),++$}return x+=`
233
- <!-- -->
234
- `,x.trim()}),n.subParser("makeMarkdown.listItem",function(f,p){for(var v="",x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p);return/\n$/.test(v)?v=v.split(`
235
- `).join(`
236
- `).replace(/^ {4}$/gm,"").replace(/\n\n+/g,`
237
-
238
- `):v+=`
239
- `,v}),n.subParser("makeMarkdown.node",function(f,p,v){v=v||!1;var x="";if(f.nodeType===3)return n.subParser("makeMarkdown.txt")(f,p);if(f.nodeType===8)return"<!--"+f.data+`-->
240
-
241
- `;if(f.nodeType!==1)return"";var k=f.tagName.toLowerCase();switch(k){case"h1":v||(x=n.subParser("makeMarkdown.header")(f,p,1)+`
242
-
243
- `);break;case"h2":v||(x=n.subParser("makeMarkdown.header")(f,p,2)+`
244
-
245
- `);break;case"h3":v||(x=n.subParser("makeMarkdown.header")(f,p,3)+`
246
-
247
- `);break;case"h4":v||(x=n.subParser("makeMarkdown.header")(f,p,4)+`
248
-
249
- `);break;case"h5":v||(x=n.subParser("makeMarkdown.header")(f,p,5)+`
250
-
251
- `);break;case"h6":v||(x=n.subParser("makeMarkdown.header")(f,p,6)+`
252
-
253
- `);break;case"p":v||(x=n.subParser("makeMarkdown.paragraph")(f,p)+`
254
-
255
- `);break;case"blockquote":v||(x=n.subParser("makeMarkdown.blockquote")(f,p)+`
256
-
257
- `);break;case"hr":v||(x=n.subParser("makeMarkdown.hr")(f,p)+`
258
-
259
- `);break;case"ol":v||(x=n.subParser("makeMarkdown.list")(f,p,"ol")+`
260
-
261
- `);break;case"ul":v||(x=n.subParser("makeMarkdown.list")(f,p,"ul")+`
262
-
263
- `);break;case"precode":v||(x=n.subParser("makeMarkdown.codeBlock")(f,p)+`
264
-
265
- `);break;case"pre":v||(x=n.subParser("makeMarkdown.pre")(f,p)+`
266
-
267
- `);break;case"table":v||(x=n.subParser("makeMarkdown.table")(f,p)+`
268
-
269
- `);break;case"code":x=n.subParser("makeMarkdown.codeSpan")(f,p);break;case"em":case"i":x=n.subParser("makeMarkdown.emphasis")(f,p);break;case"strong":case"b":x=n.subParser("makeMarkdown.strong")(f,p);break;case"del":x=n.subParser("makeMarkdown.strikethrough")(f,p);break;case"a":x=n.subParser("makeMarkdown.links")(f,p);break;case"img":x=n.subParser("makeMarkdown.image")(f,p);break;default:x=f.outerHTML+`
270
-
271
- `}return x}),n.subParser("makeMarkdown.paragraph",function(f,p){var v="";if(f.hasChildNodes())for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p);return v=v.trim(),v}),n.subParser("makeMarkdown.pre",function(f,p){var v=f.getAttribute("prenum");return"<pre>"+p.preList[v]+"</pre>"}),n.subParser("makeMarkdown.strikethrough",function(f,p){var v="";if(f.hasChildNodes()){v+="~~";for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p);v+="~~"}return v}),n.subParser("makeMarkdown.strong",function(f,p){var v="";if(f.hasChildNodes()){v+="**";for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p);v+="**"}return v}),n.subParser("makeMarkdown.table",function(f,p){var v="",x=[[],[]],k=f.querySelectorAll("thead>tr>th"),O=f.querySelectorAll("tbody>tr"),$,D;for($=0;$<k.length;++$){var V=n.subParser("makeMarkdown.tableCell")(k[$],p),I="---";if(k[$].hasAttribute("style")){var N=k[$].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(N){case"text-align:left;":I=":---";break;case"text-align:right;":I="---:";break;case"text-align:center;":I=":---:";break}}x[0][$]=V.trim(),x[1][$]=I}for($=0;$<O.length;++$){var F=x.push([])-1,T=O[$].getElementsByTagName("td");for(D=0;D<k.length;++D){var M=" ";typeof T[D]<"u"&&(M=n.subParser("makeMarkdown.tableCell")(T[D],p)),x[F].push(M)}}var j=3;for($=0;$<x.length;++$)for(D=0;D<x[$].length;++D){var H=x[$][D].length;H>j&&(j=H)}for($=0;$<x.length;++$){for(D=0;D<x[$].length;++D)$===1?x[$][D].slice(-1)===":"?x[$][D]=n.helper.padEnd(x[$][D].slice(-1),j-1,"-")+":":x[$][D]=n.helper.padEnd(x[$][D],j,"-"):x[$][D]=n.helper.padEnd(x[$][D],j);v+="| "+x[$].join(" | ")+` |
272
- `}return v.trim()}),n.subParser("makeMarkdown.tableCell",function(f,p){var v="";if(!f.hasChildNodes())return"";for(var x=f.childNodes,k=x.length,O=0;O<k;++O)v+=n.subParser("makeMarkdown.node")(x[O],p,!0);return v.trim()}),n.subParser("makeMarkdown.txt",function(f){var p=f.nodeValue;return p=p.replace(/ +/g," "),p=p.replace(/¨NBSP;/g," "),p=n.helper.unescapeHTMLEntities(p),p=p.replace(/([*_~|`])/g,"\\$1"),p=p.replace(/^(\s*)>/g,"\\$1>"),p=p.replace(/^#/gm,"\\#"),p=p.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),p=p.replace(/^( {0,3}\d+)\./gm,"$1\\."),p=p.replace(/^( {0,3})([+-])/gm,"$1\\$2"),p=p.replace(/]([\s]*)\(/g,"\\]$1\\("),p=p.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),p});var C=this;e.exports?e.exports=n:C.showdown=n}).call(QH)}(Q0)),Q0.exports}var tV=eV();function l0(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rV=0;function fR(e){return"__private_"+rV+++"_"+e}function nV(e,t,r){const n=[];return e.forEach(a=>typeof a!="string"?n.push(a):t[Symbol.split](a).forEach((i,o,s)=>{i!==""&&n.push(i),o<s.length-1&&n.push(r)})),n}/**
273
- * Takes a string with placeholder variables like `%{smart_count} file selected`
274
- * and replaces it with values from options `{smart_count: 5}`
275
- *
276
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
277
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
278
- *
279
- * @param phrase that needs interpolation, with placeholders
280
- * @param options with values that will be used to replace placeholders
281
- */function p6(e,t){const r=/\$/g,n="$$$$";let a=[e];if(t==null)return a;for(const i of Object.keys(t))if(i!=="_"){let o=t[i];typeof o=="string"&&(o=r[Symbol.replace](o,n)),a=nV(a,new RegExp(`%\\{${i}\\}`,"g"),o)}return a}const aV=e=>{throw new Error(`missing string: ${e}`)};var dd=fR("onMissingKey"),fd=fR("apply");class hR{constructor(t,r){let{onMissingKey:n=aV}=r===void 0?{}:r;Object.defineProperty(this,fd,{value:iV}),Object.defineProperty(this,dd,{writable:!0,value:void 0}),this.locale={strings:{},pluralize(a){return a===1?0:1}},Array.isArray(t)?t.forEach(l0(this,fd)[fd],this):l0(this,fd)[fd](t),l0(this,dd)[dd]=n}translate(t,r){return this.translateArray(t,r).join("")}translateArray(t,r){let n=this.locale.strings[t];if(n==null&&(l0(this,dd)[dd](t),n=t),typeof n=="object"){if(r&&typeof r.smart_count<"u"){const i=this.locale.pluralize(r.smart_count);return p6(n[i],r)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof n!="string")throw new Error("string was not a string");return p6(n,r)}}function iV(e){if(!(e!=null&&e.strings))return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}class oV{constructor(t,r){this.uppy=t,this.opts=r??{}}getPluginState(){const{plugins:t}=this.uppy.getState();return(t==null?void 0:t[this.id])||{}}setPluginState(t){const{plugins:r}=this.uppy.getState();this.uppy.setState({plugins:{...r,[this.id]:{...r[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const t=new hR([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState(void 0)}addTarget(t){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(t){}afterUpdate(){}}const pR="3.7.7",sV=pR,nc=typeof Buffer=="function",m6=typeof TextDecoder=="function"?new TextDecoder:void 0,g6=typeof TextEncoder=="function"?new TextEncoder:void 0,uV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",qd=Array.prototype.slice.call(uV),c0=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(qd),lV=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Bn=String.fromCharCode.bind(String),v6=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),mR=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),gR=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),vR=e=>{let t,r,n,a,i="";const o=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(a=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|a,i+=qd[t>>18&63]+qd[t>>12&63]+qd[t>>6&63]+qd[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},hw=typeof btoa=="function"?e=>btoa(e):nc?e=>Buffer.from(e,"binary").toString("base64"):vR,hy=nc?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,a=e.length;n<a;n+=4096)r.push(Bn.apply(null,e.subarray(n,n+4096)));return hw(r.join(""))},ep=(e,t=!1)=>t?mR(hy(e)):hy(e),cV=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Bn(192|t>>>6)+Bn(128|t&63):Bn(224|t>>>12&15)+Bn(128|t>>>6&63)+Bn(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Bn(240|t>>>18&7)+Bn(128|t>>>12&63)+Bn(128|t>>>6&63)+Bn(128|t&63)}},dV=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,bR=e=>e.replace(dV,cV),b6=nc?e=>Buffer.from(e,"utf8").toString("base64"):g6?e=>hy(g6.encode(e)):e=>hw(bR(e)),$l=(e,t=!1)=>t?mR(b6(e)):b6(e),y6=e=>$l(e,!0),fV=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,hV=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return Bn((r>>>10)+55296)+Bn((r&1023)+56320);case 3:return Bn((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Bn((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},yR=e=>e.replace(fV,hV),_R=e=>{if(e=e.replace(/\s+/g,""),!lV.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,a;for(let i=0;i<e.length;)t=c0[e.charAt(i++)]<<18|c0[e.charAt(i++)]<<12|(n=c0[e.charAt(i++)])<<6|(a=c0[e.charAt(i++)]),r+=n===64?Bn(t>>16&255):a===64?Bn(t>>16&255,t>>8&255):Bn(t>>16&255,t>>8&255,t&255);return r},pw=typeof atob=="function"?e=>atob(gR(e)):nc?e=>Buffer.from(e,"base64").toString("binary"):_R,wR=nc?e=>v6(Buffer.from(e,"base64")):e=>v6(pw(e).split("").map(t=>t.charCodeAt(0))),xR=e=>wR(SR(e)),pV=nc?e=>Buffer.from(e,"base64").toString("utf8"):m6?e=>m6.decode(wR(e)):e=>yR(pw(e)),SR=e=>gR(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),py=e=>pV(SR(e)),mV=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},CR=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),ER=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,CR(r));e("fromBase64",function(){return py(this)}),e("toBase64",function(t){return $l(this,t)}),e("toBase64URI",function(){return $l(this,!0)}),e("toBase64URL",function(){return $l(this,!0)}),e("toUint8Array",function(){return xR(this)})},OR=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,CR(r));e("toBase64",function(t){return ep(this,t)}),e("toBase64URI",function(){return ep(this,!0)}),e("toBase64URL",function(){return ep(this,!0)})},gV=()=>{ER(),OR()},vV={version:pR,VERSION:sV,atob:pw,atobPolyfill:_R,btoa:hw,btoaPolyfill:vR,fromBase64:py,toBase64:$l,encode:$l,encodeURI:y6,encodeURL:y6,utob:bR,btou:yR,decode:py,isValid:mV,fromUint8Array:ep,toUint8Array:xR,extendString:ER,extendUint8Array:OR,extendBuiltins:gV};var u1,_6;function bV(){return _6||(_6=1,u1=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),u1}var d0={},w6;function yV(){if(w6)return d0;w6=1;var e=Object.prototype.hasOwnProperty,t;function r(o){try{return decodeURIComponent(o.replace(/\+/g," "))}catch{return null}}function n(o){try{return encodeURIComponent(o)}catch{return null}}function a(o){for(var s=/([^=?#&]+)=?([^&]*)/g,u={},l;l=s.exec(o);){var h=r(l[1]),d=r(l[2]);h===null||d===null||h in u||(u[h]=d)}return u}function i(o,s){s=s||"";var u=[],l,h;typeof s!="string"&&(s="?");for(h in o)if(e.call(o,h)){if(l=o[h],!l&&(l===null||l===t||isNaN(l))&&(l=""),h=n(h),l=n(l),h===null||l===null)continue;u.push(h+"="+l)}return u.length?s+u.join("&"):""}return d0.stringify=i,d0.parse=a,d0}var l1,x6;function _V(){if(x6)return l1;x6=1;var e=bV(),t=yV(),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function u(_){return(_||"").toString().replace(r,"")}var l=[["#","hash"],["?","query"],function(C,f){return g(f.protocol)?C.replace(/\\/g,"/"):C},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],h={hash:1,query:1};function d(_){var C;typeof window<"u"?C=window:typeof Mi<"u"?C=Mi:typeof self<"u"?C=self:C={};var f=C.location||{};_=_||f;var p={},v=typeof _,x;if(_.protocol==="blob:")p=new w(unescape(_.pathname),{});else if(v==="string"){p=new w(_,{});for(x in h)delete p[x]}else if(v==="object"){for(x in _)x in h||(p[x]=_[x]);p.slashes===void 0&&(p.slashes=a.test(_.href))}return p}function g(_){return _==="file:"||_==="ftp:"||_==="http:"||_==="https:"||_==="ws:"||_==="wss:"}function b(_,C){_=u(_),_=_.replace(n,""),C=C||{};var f=o.exec(_),p=f[1]?f[1].toLowerCase():"",v=!!f[2],x=!!f[3],k=0,O;return v?x?(O=f[2]+f[3]+f[4],k=f[2].length+f[3].length):(O=f[2]+f[4],k=f[2].length):x?(O=f[3]+f[4],k=f[3].length):O=f[4],p==="file:"?k>=2&&(O=O.slice(2)):g(p)?O=f[4]:p?v&&(O=O.slice(2)):k>=2&&g(C.protocol)&&(O=f[4]),{protocol:p,slashes:v||g(p),slashesCount:k,rest:O}}function y(_,C){if(_==="")return C;for(var f=(C||"/").split("/").slice(0,-1).concat(_.split("/")),p=f.length,v=f[p-1],x=!1,k=0;p--;)f[p]==="."?f.splice(p,1):f[p]===".."?(f.splice(p,1),k++):k&&(p===0&&(x=!0),f.splice(p,1),k--);return x&&f.unshift(""),(v==="."||v==="..")&&f.push(""),f.join("/")}function w(_,C,f){if(_=u(_),_=_.replace(n,""),!(this instanceof w))return new w(_,C,f);var p,v,x,k,O,$,D=l.slice(),V=typeof C,I=this,N=0;for(V!=="object"&&V!=="string"&&(f=C,C=null),f&&typeof f!="function"&&(f=t.parse),C=d(C),v=b(_||"",C),p=!v.protocol&&!v.slashes,I.slashes=v.slashes||p&&C.slashes,I.protocol=v.protocol||C.protocol||"",_=v.rest,(v.protocol==="file:"&&(v.slashesCount!==2||s.test(_))||!v.slashes&&(v.protocol||v.slashesCount<2||!g(I.protocol)))&&(D[3]=[/(.*)/,"pathname"]);N<D.length;N++){if(k=D[N],typeof k=="function"){_=k(_,I);continue}x=k[0],$=k[1],x!==x?I[$]=_:typeof x=="string"?(O=x==="@"?_.lastIndexOf(x):_.indexOf(x),~O&&(typeof k[2]=="number"?(I[$]=_.slice(0,O),_=_.slice(O+k[2])):(I[$]=_.slice(O),_=_.slice(0,O)))):(O=x.exec(_))&&(I[$]=O[1],_=_.slice(0,O.index)),I[$]=I[$]||p&&k[3]&&C[$]||"",k[4]&&(I[$]=I[$].toLowerCase())}f&&(I.query=f(I.query)),p&&C.slashes&&I.pathname.charAt(0)!=="/"&&(I.pathname!==""||C.pathname!=="")&&(I.pathname=y(I.pathname,C.pathname)),I.pathname.charAt(0)!=="/"&&g(I.protocol)&&(I.pathname="/"+I.pathname),e(I.port,I.protocol)||(I.host=I.hostname,I.port=""),I.username=I.password="",I.auth&&(O=I.auth.indexOf(":"),~O?(I.username=I.auth.slice(0,O),I.username=encodeURIComponent(decodeURIComponent(I.username)),I.password=I.auth.slice(O+1),I.password=encodeURIComponent(decodeURIComponent(I.password))):I.username=encodeURIComponent(decodeURIComponent(I.auth)),I.auth=I.password?I.username+":"+I.password:I.username),I.origin=I.protocol!=="file:"&&g(I.protocol)&&I.host?I.protocol+"//"+I.host:"null",I.href=I.toString()}function S(_,C,f){var p=this;switch(_){case"query":typeof C=="string"&&C.length&&(C=(f||t.parse)(C)),p[_]=C;break;case"port":p[_]=C,e(C,p.protocol)?C&&(p.host=p.hostname+":"+C):(p.host=p.hostname,p[_]="");break;case"hostname":p[_]=C,p.port&&(C+=":"+p.port),p.host=C;break;case"host":p[_]=C,i.test(C)?(C=C.split(":"),p.port=C.pop(),p.hostname=C.join(":")):(p.hostname=C,p.port="");break;case"protocol":p.protocol=C.toLowerCase(),p.slashes=!f;break;case"pathname":case"hash":if(C){var v=_==="pathname"?"/":"#";p[_]=C.charAt(0)!==v?v+C:C}else p[_]=C;break;case"username":case"password":p[_]=encodeURIComponent(C);break;case"auth":var x=C.indexOf(":");~x?(p.username=C.slice(0,x),p.username=encodeURIComponent(decodeURIComponent(p.username)),p.password=C.slice(x+1),p.password=encodeURIComponent(decodeURIComponent(p.password))):p.username=encodeURIComponent(decodeURIComponent(C))}for(var k=0;k<l.length;k++){var O=l[k];O[4]&&(p[O[1]]=p[O[1]].toLowerCase())}return p.auth=p.password?p.username+":"+p.password:p.username,p.origin=p.protocol!=="file:"&&g(p.protocol)&&p.host?p.protocol+"//"+p.host:"null",p.href=p.toString(),p}function E(_){(!_||typeof _!="function")&&(_=t.stringify);var C,f=this,p=f.host,v=f.protocol;v&&v.charAt(v.length-1)!==":"&&(v+=":");var x=v+(f.protocol&&f.slashes||g(f.protocol)?"//":"");return f.username?(x+=f.username,f.password&&(x+=":"+f.password),x+="@"):f.password?(x+=":"+f.password,x+="@"):f.protocol!=="file:"&&g(f.protocol)&&!p&&f.pathname!=="/"&&(x+="@"),(p[p.length-1]===":"||i.test(f.hostname)&&!f.port)&&(p+=":"),x+=p+f.pathname,C=typeof f.query=="object"?_(f.query):f.query,C&&(x+=C.charAt(0)!=="?"?"?"+C:C),f.hash&&(x+=f.hash),x}return w.prototype={set:S,toString:E},w.extractProtocol=b,w.location=d,w.trimLeft=u,w.qs=t,l1=w,l1}var wV=_V();const xV=$n(wV);function my(e){"@babel/helpers - typeof";return my=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},my(e)}function SV(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function CV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EV(e,t){if(typeof t!="function"&&t!==null)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&&pf(e,t)}function OV(e){var t=RR();return function(){var n=mf(e),a;if(t){var i=mf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return RV(this,a)}}function RV(e,t){if(t&&(my(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TV(e)}function TV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gy(e){var t=typeof Map=="function"?new Map:void 0;return gy=function(n){if(n===null||!PV(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return tp(n,arguments,mf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),pf(a,n)},gy(e)}function tp(e,t,r){return RR()?tp=Reflect.construct.bind():tp=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),l=new u;return o&&pf(l,o.prototype),l},tp.apply(null,arguments)}function RR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function PV(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},pf(e,t)}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mf(e)}var f0=function(e){EV(r,e);var t=OV(r);function r(n){var a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(CV(this,r),a=t.call(this,n),a.originalRequest=o,a.originalResponse=s,a.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),o!=null){var u=o.getHeader("X-Request-ID")||"n/a",l=o.getMethod(),h=o.getURL(),d=s?s.getStatus():"n/a",g=s?s.getBody()||"":"n/a";n+=", originated from request (method: ".concat(l,", url: ").concat(h,", response code: ").concat(d,", response text: ").concat(g,", request id: ").concat(u,")")}return a.message=n,a}return SV(r)}(gy(Error));function kV(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e==="x"?t:t&3|8;return r.toString(16)})}function vy(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */vy=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,M,j){T[M]=j.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(T,M,j){return Object.defineProperty(T,M,{value:j,enumerable:!0,configurable:!0,writable:!0}),T[M]}try{l({},"")}catch{l=function(j,H,z){return j[H]=z}}function h(T,M,j,H){var z=M&&M.prototype instanceof E?M:E,U=Object.create(z.prototype),G=new N(H||[]);return a(U,"_invoke",{value:$(T,j,G)}),U}function d(T,M,j){try{return{type:"normal",arg:T.call(M,j)}}catch(H){return{type:"throw",arg:H}}}t.wrap=h;var g="suspendedStart",b="suspendedYield",y="executing",w="completed",S={};function E(){}function _(){}function C(){}var f={};l(f,o,function(){return this});var p=Object.getPrototypeOf,v=p&&p(p(F([])));v&&v!==r&&n.call(v,o)&&(f=v);var x=C.prototype=E.prototype=Object.create(f);function k(T){["next","throw","return"].forEach(function(M){l(T,M,function(j){return this._invoke(M,j)})})}function O(T,M){function j(z,U,G,X){var K=d(T[z],T,U);if(K.type!=="throw"){var ne=K.arg,ae=ne.value;return ae&&Ou(ae)=="object"&&n.call(ae,"__await")?M.resolve(ae.__await).then(function(ie){j("next",ie,G,X)},function(ie){j("throw",ie,G,X)}):M.resolve(ae).then(function(ie){ne.value=ie,G(ne)},function(ie){return j("throw",ie,G,X)})}X(K.arg)}var H;a(this,"_invoke",{value:function(U,G){function X(){return new M(function(K,ne){j(U,G,K,ne)})}return H=H?H.then(X,X):X()}})}function $(T,M,j){var H=g;return function(z,U){if(H===y)throw new Error("Generator is already running");if(H===w){if(z==="throw")throw U;return{value:e,done:!0}}for(j.method=z,j.arg=U;;){var G=j.delegate;if(G){var X=D(G,j);if(X){if(X===S)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(H===g)throw H=w,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);H=y;var K=d(T,M,j);if(K.type==="normal"){if(H=j.done?w:b,K.arg===S)continue;return{value:K.arg,done:j.done}}K.type==="throw"&&(H=w,j.method="throw",j.arg=K.arg)}}}function D(T,M){var j=M.method,H=T.iterator[j];if(H===e)return M.delegate=null,j==="throw"&&T.iterator.return&&(M.method="return",M.arg=e,D(T,M),M.method==="throw")||j!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+j+"' method")),S;var z=d(H,T.iterator,M.arg);if(z.type==="throw")return M.method="throw",M.arg=z.arg,M.delegate=null,S;var U=z.arg;return U?U.done?(M[T.resultName]=U.value,M.next=T.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,S):U:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,S)}function V(T){var M={tryLoc:T[0]};1 in T&&(M.catchLoc=T[1]),2 in T&&(M.finallyLoc=T[2],M.afterLoc=T[3]),this.tryEntries.push(M)}function I(T){var M=T.completion||{};M.type="normal",delete M.arg,T.completion=M}function N(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(V,this),this.reset(!0)}function F(T){if(T||T===""){var M=T[o];if(M)return M.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var j=-1,H=function z(){for(;++j<T.length;)if(n.call(T,j))return z.value=T[j],z.done=!1,z;return z.value=e,z.done=!0,z};return H.next=H}}throw new TypeError(Ou(T)+" is not iterable")}return _.prototype=C,a(x,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:_,configurable:!0}),_.displayName=l(C,u,"GeneratorFunction"),t.isGeneratorFunction=function(T){var M=typeof T=="function"&&T.constructor;return!!M&&(M===_||(M.displayName||M.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,l(T,u,"GeneratorFunction")),T.prototype=Object.create(x),T},t.awrap=function(T){return{__await:T}},k(O.prototype),l(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(T,M,j,H,z){z===void 0&&(z=Promise);var U=new O(h(T,M,j,H),z);return t.isGeneratorFunction(M)?U:U.next().then(function(G){return G.done?G.value:U.next()})},k(x),l(x,u,"Generator"),l(x,o,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(T){var M=Object(T),j=[];for(var H in M)j.push(H);return j.reverse(),function z(){for(;j.length;){var U=j.pop();if(U in M)return z.value=U,z.done=!1,z}return z.done=!0,z}},t.values=F,N.prototype={constructor:N,reset:function(M){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(I),!M)for(var j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=e)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var j=this;function H(ne,ae){return G.type="throw",G.arg=M,j.next=ne,ae&&(j.method="next",j.arg=e),!!ae}for(var z=this.tryEntries.length-1;z>=0;--z){var U=this.tryEntries[z],G=U.completion;if(U.tryLoc==="root")return H("end");if(U.tryLoc<=this.prev){var X=n.call(U,"catchLoc"),K=n.call(U,"finallyLoc");if(X&&K){if(this.prev<U.catchLoc)return H(U.catchLoc,!0);if(this.prev<U.finallyLoc)return H(U.finallyLoc)}else if(X){if(this.prev<U.catchLoc)return H(U.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return H(U.finallyLoc)}}}},abrupt:function(M,j){for(var H=this.tryEntries.length-1;H>=0;--H){var z=this.tryEntries[H];if(z.tryLoc<=this.prev&&n.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var U=z;break}}U&&(M==="break"||M==="continue")&&U.tryLoc<=j&&j<=U.finallyLoc&&(U=null);var G=U?U.completion:{};return G.type=M,G.arg=j,U?(this.method="next",this.next=U.finallyLoc,S):this.complete(G)},complete:function(M,j){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&j&&(this.next=j),S},finish:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.finallyLoc===M)return this.complete(H.completion,H.afterLoc),I(H),S}},catch:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.tryLoc===M){var z=H.completion;if(z.type==="throw"){var U=z.arg;I(H)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(M,j,H){return this.delegate={iterator:F(M),resultName:j,nextLoc:H},this.method==="next"&&(this.arg=e),S}},t}function S6(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(l){r(l);return}s.done?t(u):Promise.resolve(u).then(n,a)}function $V(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){S6(i,n,a,o,s,"next",u)}function s(u){S6(i,n,a,o,s,"throw",u)}o(void 0)})}}function TR(e,t){return NV(e)||MV(e,t)||DV(e,t)||AV()}function AV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
282
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DV(e,t){if(e){if(typeof e=="string")return C6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C6(e,t)}}function C6(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(h){l=!0,a=h}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}function NV(e){if(Array.isArray(e))return e}function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function E6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function el(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E6(Object(r),!0).forEach(function(n){IV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IV(e,t,r){return t=PR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PR(n.key),n)}}function jV(e,t,r){return t&&O6(e.prototype,t),r&&O6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PR(e){var t=LV(e,"string");return Ou(t)==="symbol"?t:String(t)}function LV(e,t){if(Ou(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ou(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zV={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:kR,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Ep=function(){function e(t,r){FV(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return jV(e,[{key:"findPreviousUploads",value:function(){var r=this;return this.options.fingerprint(this.file,this.options).then(function(n){return r._urlStorage.findUploadsByFingerprint(n)})}},{key:"resumeFromPreviousUpload",value:function(r){this.url=r.uploadUrl||null,this._parallelUploadUrls=r.parallelUploadUrls||null,this._urlStorageKey=r.urlStorageKey}},{key:"start",value:function(){var r=this,n=this.file;if(!n){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var a=this.options.retryDelays;if(a!=null&&Object.prototype.toString.call(a)!=="[object Array]"){this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var i=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];i<o.length;i++){var s=o[i];if(this.options[s]){this._emitError(new Error("tus: cannot use the ".concat(s," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(n,this.options).then(function(u){return r._fingerprint=u,r._source?r._source:r.options.fileReader.openFile(n,r.options.chunkSize)}).then(function(u){if(r._source=u,r.options.uploadLengthDeferred)r._size=null;else if(r.options.uploadSize!=null){if(r._size=Number(r.options.uploadSize),Number.isNaN(r._size)){r._emitError(new Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(r._size=r._source.size,r._size==null){r._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}r.options.parallelUploads>1||r._parallelUploadUrls!=null?r._startParallelUpload():r._startSingleUpload()}).catch(function(u){r._emitError(u)})}},{key:"_startParallelUpload",value:function(){var r,n=this,a=this._size,i=0;this._parallelUploads=[];var o=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,s=(r=this.options.parallelUploadBoundaries)!==null&&r!==void 0?r:HV(this._source.size,o);this._parallelUploadUrls&&s.forEach(function(h,d){h.uploadUrl=n._parallelUploadUrls[d]||null}),this._parallelUploadUrls=new Array(s.length);var u=s.map(function(h,d){var g=0;return n._source.slice(h.start,h.end).then(function(b){var y=b.value;return new Promise(function(w,S){var E=el(el({},n.options),{},{uploadUrl:h.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:el(el({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:w,onError:S,onProgress:function(f){i=i-g+f,g=f,n._emitProgress(i,a)},onUploadUrlAvailable:function(){n._parallelUploadUrls[d]=_.url,n._parallelUploadUrls.filter(function(f){return!!f}).length===s.length&&n._saveUploadInUrlStorage()}}),_=new e(y,E);_.start(),n._parallelUploads.push(_)})})}),l;Promise.all(u).then(function(){l=n._openRequest("POST",n.options.endpoint),l.setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var h=R6(n.options.metadata);return h!==""&&l.setHeader("Upload-Metadata",h),n._sendRequest(l,null)}).then(function(h){if(!gl(h.getStatus(),200)){n._emitHttpError(l,h,"tus: unexpected response while creating upload");return}var d=h.getHeader("Location");if(d==null){n._emitHttpError(l,h,"tus: invalid or missing Location header");return}n.url=$6(n.options.endpoint,d),"Created upload at ".concat(n.url),n._emitSuccess()}).catch(function(h){n._emitError(h)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(r){var n=this;return this._parallelUploads!=null&&this._parallelUploads.forEach(function(a){a.abort(r)}),this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!r||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return n._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(r,n,a,i){this._emitError(new f0(a,i,r,n))}},{key:"_emitError",value:function(r){var n=this;if(!this._aborted){if(this.options.retryDelays!=null){var a=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(a&&(this._retryAttempt=0),k6(r,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){n.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(r);else throw r}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess()}},{key:"_emitProgress",value:function(r,n){typeof this.options.onProgress=="function"&&this.options.onProgress(r,n)}},{key:"_emitChunkComplete",value:function(r,n,a){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(r,n,a)}},{key:"_createUpload",value:function(){var r=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var n=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?n.setHeader("Upload-Defer-Length",1):n.setHeader("Upload-Length",this._size);var a=R6(this.options.metadata);a!==""&&n.setHeader("Upload-Metadata",a);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(n)):i=this._sendRequest(n,null),i.then(function(o){if(!gl(o.getStatus(),200)){r._emitHttpError(n,o,"tus: unexpected response while creating upload");return}var s=o.getHeader("Location");if(s==null){r._emitHttpError(n,o,"tus: invalid or missing Location header");return}if(r.url=$6(r.options.endpoint,s),"Created upload at ".concat(r.url),typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._size===0){r._emitSuccess(),r._source.close();return}r._saveUploadInUrlStorage().then(function(){r.options.uploadDataDuringCreation?r._handleUploadResponse(n,o):(r._offset=0,r._performUpload())})}).catch(function(o){r._emitHttpError(n,null,"tus: failed to create upload",o)})}},{key:"_resumeUpload",value:function(){var r=this,n=this._openRequest("HEAD",this.url),a=this._sendRequest(n,null);a.then(function(i){var o=i.getStatus();if(!gl(o,200)){if(o===423){r._emitHttpError(n,i,"tus: upload is currently locked; retry later");return}if(gl(o,400)&&r._removeFromUrlStorage(),!r.options.endpoint){r._emitHttpError(n,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}r.url=null,r._createUpload();return}var s=parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(s)){r._emitHttpError(n,i,"tus: invalid or missing offset value");return}var u=parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(u)&&!r.options.uploadLengthDeferred){r._emitHttpError(n,i,"tus: invalid or missing length value");return}typeof r.options.onUploadUrlAvailable=="function"&&r.options.onUploadUrlAvailable(),r._saveUploadInUrlStorage().then(function(){if(s===u){r._emitProgress(u,u),r._emitSuccess();return}r._offset=s,r._performUpload()})}).catch(function(i){r._emitHttpError(n,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var r=this;if(!this._aborted){var n;this.options.overridePatchMethod?(n=this._openRequest("POST",this.url),n.setHeader("X-HTTP-Method-Override","PATCH")):n=this._openRequest("PATCH",this.url),n.setHeader("Upload-Offset",this._offset);var a=this._addChunkToRequest(n);a.then(function(i){if(!gl(i.getStatus(),200)){r._emitHttpError(n,i,"tus: unexpected response while uploading chunk");return}r._handleUploadResponse(n,i)}).catch(function(i){r._aborted||r._emitHttpError(n,null,"tus: failed to upload chunk at offset ".concat(r._offset),i)})}}},{key:"_addChunkToRequest",value:function(r){var n=this,a=this._offset,i=this._offset+this.options.chunkSize;return r.setProgressHandler(function(o){n._emitProgress(a+o,n._size)}),r.setHeader("Content-Type","application/offset+octet-stream"),(i===1/0||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(a,i).then(function(o){var s=o.value,u=o.done,l=s&&s.size?s.size:0;n.options.uploadLengthDeferred&&u&&(n._size=n._offset+l,r.setHeader("Upload-Length",n._size));var h=n._offset+l;return!n.options.uploadLengthDeferred&&u&&h!==n._size?Promise.reject(new Error("upload was configured with a size of ".concat(n._size," bytes, but the source is done after ").concat(h," bytes"))):s===null?n._sendRequest(r):(n._emitProgress(n._offset,n._size),n._sendRequest(r,s))})}},{key:"_handleUploadResponse",value:function(r,n){var a=parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){this._emitHttpError(r,n,"tus: invalid or missing offset value");return}if(this._emitProgress(a,this._size),this._emitChunkComplete(a-this._offset,a,this._size),this._offset=a,a===this._size){this._emitSuccess(),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(r,n){var a=T6(r,n,this.options);return this._req=a,a}},{key:"_removeFromUrlStorage",value:function(){var r=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(n){r._emitError(n)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var r=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var n={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?n.parallelUploadUrls=this._parallelUploadUrls:n.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,n).then(function(a){r._urlStorageKey=a})}},{key:"_sendRequest",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return P6(r,n,this.options)}}],[{key:"terminate",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=T6("DELETE",r,n);return P6(a,null,n).then(function(i){if(i.getStatus()!==204)throw new f0("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof f0||(i=new f0("tus: failed to terminate upload",i,a,null)),!k6(i,0,n))throw i;var o=n.retryDelays[0],s=n.retryDelays.slice(1),u=el(el({},n),{},{retryDelays:s});return new Promise(function(l){return setTimeout(l,o)}).then(function(){return e.terminate(r,u)})})}}]),e}();function R6(e){return Object.entries(e).map(function(t){var r=TR(t,2),n=r[0],a=r[1];return"".concat(n," ").concat(vV.encode(String(a)))}).join(",")}function gl(e,t){return e>=t&&e<t+100}function T6(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var a=r.headers||{};if(Object.entries(a).forEach(function(o){var s=TR(o,2),u=s[0],l=s[1];n.setHeader(u,l)}),r.addRequestId){var i=kV();n.setHeader("X-Request-ID",i)}return n}function P6(e,t,r){return by.apply(this,arguments)}function by(){return by=$V(vy().mark(function e(t,r,n){var a;return vy().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(typeof n.onBeforeRequest!="function"){o.next=3;break}return o.next=3,n.onBeforeRequest(t);case 3:return o.next=5,t.send(r);case 5:if(a=o.sent,typeof n.onAfterResponse!="function"){o.next=9;break}return o.next=9,n.onAfterResponse(t,a);case 9:return o.abrupt("return",a);case 10:case"end":return o.stop()}},e)})),by.apply(this,arguments)}function BV(){var e=!0;return typeof window<"u"&&"navigator"in window&&window.navigator.onLine===!1&&(e=!1),e}function k6(e,t,r){return r.retryDelays==null||t>=r.retryDelays.length||e.originalRequest==null?!1:r&&typeof r.onShouldRetry=="function"?r.onShouldRetry(e,t,r):kR(e)}function kR(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!gl(t,400)||t===409||t===423)&&BV()}function $6(e,t){return new xV(t,e).toString()}function HV(e,t){for(var r=Math.floor(e/t),n=[],a=0;a<t;a++)n.push({start:r*a,end:r*(a+1)});return n[t-1].end=e,n}Ep.defaultOptions=zV;function gf(e){"@babel/helpers - typeof";return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gf(e)}function VV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WV(n.key),n)}}function qV(e,t,r){return t&&UV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WV(e){var t=YV(e,"string");return gf(t)==="symbol"?t:String(t)}function YV(e,t){if(gf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var GV=function(){function e(){VV(this,e)}return qV(e,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(r){return Promise.resolve([])}},{key:"removeUpload",value:function(r){return Promise.resolve()}},{key:"addUpload",value:function(r,n){return Promise.resolve(null)}}]),e}();function vf(e){"@babel/helpers - typeof";return vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vf(e)}function KV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JV(n.key),n)}}function ZV(e,t,r){return t&&XV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JV(e){var t=QV(e,"string");return vf(t)==="symbol"?t:String(t)}function QV(e,t){if(vf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yy=!1;try{yy="localStorage"in window;var c1="tusSupport",A6=localStorage.getItem(c1);localStorage.setItem(c1,A6),A6===null&&localStorage.removeItem(c1)}catch(e){if(e.code===e.SECURITY_ERR||e.code===e.QUOTA_EXCEEDED_ERR)yy=!1;else throw e}var eU=yy,tU=function(){function e(){KV(this,e)}return ZV(e,[{key:"findAllUploads",value:function(){var r=this._findEntries("tus::");return Promise.resolve(r)}},{key:"findUploadsByFingerprint",value:function(r){var n=this._findEntries("tus::".concat(r,"::"));return Promise.resolve(n)}},{key:"removeUpload",value:function(r){return localStorage.removeItem(r),Promise.resolve()}},{key:"addUpload",value:function(r,n){var a=Math.round(Math.random()*1e12),i="tus::".concat(r,"::").concat(a);return localStorage.setItem(i,JSON.stringify(n)),Promise.resolve(i)}},{key:"_findEntries",value:function(r){for(var n=[],a=0;a<localStorage.length;a++){var i=localStorage.key(a);if(i.indexOf(r)===0)try{var o=JSON.parse(localStorage.getItem(i));o.urlStorageKey=i,n.push(o)}catch{}}return n}}]),e}();function bf(e){"@babel/helpers - typeof";return bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bf(e)}function mw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nU(n.key),n)}}function gw(e,t,r){return t&&rU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nU(e){var t=aU(e,"string");return bf(t)==="symbol"?t:String(t)}function aU(e,t){if(bf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iU=function(){function e(){mw(this,e)}return gw(e,[{key:"createRequest",value:function(r,n){return new oU(r,n)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),oU=function(){function e(t,r){mw(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return gw(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(r,n){this._xhr.setRequestHeader(r,n),this._headers[r]=n}},{key:"getHeader",value:function(r){return this._headers[r]}},{key:"setProgressHandler",value:function(r){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(n){n.lengthComputable&&r(n.loaded)})}},{key:"send",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(a,i){r._xhr.onload=function(){a(new sU(r._xhr))},r._xhr.onerror=function(o){i(o)},r._xhr.send(n)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),sU=function(){function e(t){mw(this,e),this._xhr=t}return gw(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(r){return this._xhr.getResponseHeader(r)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),$R=function(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"};function uU(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var a=n.response;t(a)},n.onerror=function(a){r(a)},n.open("GET",e),n.send()})}var lU=function(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")};function cU(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(){var a=new Uint8Array(n.result);t({value:a})},n.onerror=function(a){r(a)},n.readAsArrayBuffer(e)})}function yf(e){"@babel/helpers - typeof";return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yf(e)}function dU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pU(n.key),n)}}function hU(e,t,r){return t&&fU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pU(e){var t=mU(e,"string");return yf(t)==="symbol"?t:String(t)}function mU(e,t){if(yf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var D6=function(){function e(t){dU(this,e),this._file=t,this.size=t.size}return hU(e,[{key:"slice",value:function(r,n){if(lU())return cU(this._file.slice(r,n));var a=this._file.slice(r,n),i=n>=this.size;return Promise.resolve({value:a,done:i})}},{key:"close",value:function(){}}]),e}();function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(e)}function gU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yU(n.key),n)}}function bU(e,t,r){return t&&vU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yU(e){var t=_U(e,"string");return _f(t)==="symbol"?t:String(t)}function _U(e,t){if(_f(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_f(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function M6(e){return e===void 0?0:e.size!==void 0?e.size:e.length}function wU(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}var xU=function(){function e(t){gU(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return bU(e,[{key:"slice",value:function(r,n){return r<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(r,n)}},{key:"_readUntilEnoughDataOrDone",value:function(r,n){var a=this,i=n<=this._bufferOffset+M6(this._buffer);if(this._done||i){var o=this._getDataFromBuffer(r,n),s=o==null?this._done:!1;return Promise.resolve({value:o,done:s})}return this._reader.read().then(function(u){var l=u.value,h=u.done;return h?a._done=!0:a._buffer===void 0?a._buffer=l:a._buffer=wU(a._buffer,l),a._readUntilEnoughDataOrDone(r,n)})}},{key:"_getDataFromBuffer",value:function(r,n){r>this._bufferOffset&&(this._buffer=this._buffer.slice(r-this._bufferOffset),this._bufferOffset=r);var a=M6(this._buffer)===0;return this._done&&a?null:this._buffer.slice(0,n-r)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function Ru(e){"@babel/helpers - typeof";return Ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ru(e)}function _y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_y=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,M,j){T[M]=j.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(T,M,j){return Object.defineProperty(T,M,{value:j,enumerable:!0,configurable:!0,writable:!0}),T[M]}try{l({},"")}catch{l=function(j,H,z){return j[H]=z}}function h(T,M,j,H){var z=M&&M.prototype instanceof E?M:E,U=Object.create(z.prototype),G=new N(H||[]);return a(U,"_invoke",{value:$(T,j,G)}),U}function d(T,M,j){try{return{type:"normal",arg:T.call(M,j)}}catch(H){return{type:"throw",arg:H}}}t.wrap=h;var g="suspendedStart",b="suspendedYield",y="executing",w="completed",S={};function E(){}function _(){}function C(){}var f={};l(f,o,function(){return this});var p=Object.getPrototypeOf,v=p&&p(p(F([])));v&&v!==r&&n.call(v,o)&&(f=v);var x=C.prototype=E.prototype=Object.create(f);function k(T){["next","throw","return"].forEach(function(M){l(T,M,function(j){return this._invoke(M,j)})})}function O(T,M){function j(z,U,G,X){var K=d(T[z],T,U);if(K.type!=="throw"){var ne=K.arg,ae=ne.value;return ae&&Ru(ae)=="object"&&n.call(ae,"__await")?M.resolve(ae.__await).then(function(ie){j("next",ie,G,X)},function(ie){j("throw",ie,G,X)}):M.resolve(ae).then(function(ie){ne.value=ie,G(ne)},function(ie){return j("throw",ie,G,X)})}X(K.arg)}var H;a(this,"_invoke",{value:function(U,G){function X(){return new M(function(K,ne){j(U,G,K,ne)})}return H=H?H.then(X,X):X()}})}function $(T,M,j){var H=g;return function(z,U){if(H===y)throw new Error("Generator is already running");if(H===w){if(z==="throw")throw U;return{value:e,done:!0}}for(j.method=z,j.arg=U;;){var G=j.delegate;if(G){var X=D(G,j);if(X){if(X===S)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(H===g)throw H=w,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);H=y;var K=d(T,M,j);if(K.type==="normal"){if(H=j.done?w:b,K.arg===S)continue;return{value:K.arg,done:j.done}}K.type==="throw"&&(H=w,j.method="throw",j.arg=K.arg)}}}function D(T,M){var j=M.method,H=T.iterator[j];if(H===e)return M.delegate=null,j==="throw"&&T.iterator.return&&(M.method="return",M.arg=e,D(T,M),M.method==="throw")||j!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+j+"' method")),S;var z=d(H,T.iterator,M.arg);if(z.type==="throw")return M.method="throw",M.arg=z.arg,M.delegate=null,S;var U=z.arg;return U?U.done?(M[T.resultName]=U.value,M.next=T.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,S):U:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,S)}function V(T){var M={tryLoc:T[0]};1 in T&&(M.catchLoc=T[1]),2 in T&&(M.finallyLoc=T[2],M.afterLoc=T[3]),this.tryEntries.push(M)}function I(T){var M=T.completion||{};M.type="normal",delete M.arg,T.completion=M}function N(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(V,this),this.reset(!0)}function F(T){if(T||T===""){var M=T[o];if(M)return M.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var j=-1,H=function z(){for(;++j<T.length;)if(n.call(T,j))return z.value=T[j],z.done=!1,z;return z.value=e,z.done=!0,z};return H.next=H}}throw new TypeError(Ru(T)+" is not iterable")}return _.prototype=C,a(x,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:_,configurable:!0}),_.displayName=l(C,u,"GeneratorFunction"),t.isGeneratorFunction=function(T){var M=typeof T=="function"&&T.constructor;return!!M&&(M===_||(M.displayName||M.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,l(T,u,"GeneratorFunction")),T.prototype=Object.create(x),T},t.awrap=function(T){return{__await:T}},k(O.prototype),l(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(T,M,j,H,z){z===void 0&&(z=Promise);var U=new O(h(T,M,j,H),z);return t.isGeneratorFunction(M)?U:U.next().then(function(G){return G.done?G.value:U.next()})},k(x),l(x,u,"Generator"),l(x,o,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(T){var M=Object(T),j=[];for(var H in M)j.push(H);return j.reverse(),function z(){for(;j.length;){var U=j.pop();if(U in M)return z.value=U,z.done=!1,z}return z.done=!0,z}},t.values=F,N.prototype={constructor:N,reset:function(M){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(I),!M)for(var j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=e)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var j=this;function H(ne,ae){return G.type="throw",G.arg=M,j.next=ne,ae&&(j.method="next",j.arg=e),!!ae}for(var z=this.tryEntries.length-1;z>=0;--z){var U=this.tryEntries[z],G=U.completion;if(U.tryLoc==="root")return H("end");if(U.tryLoc<=this.prev){var X=n.call(U,"catchLoc"),K=n.call(U,"finallyLoc");if(X&&K){if(this.prev<U.catchLoc)return H(U.catchLoc,!0);if(this.prev<U.finallyLoc)return H(U.finallyLoc)}else if(X){if(this.prev<U.catchLoc)return H(U.catchLoc,!0)}else{if(!K)throw new Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return H(U.finallyLoc)}}}},abrupt:function(M,j){for(var H=this.tryEntries.length-1;H>=0;--H){var z=this.tryEntries[H];if(z.tryLoc<=this.prev&&n.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var U=z;break}}U&&(M==="break"||M==="continue")&&U.tryLoc<=j&&j<=U.finallyLoc&&(U=null);var G=U?U.completion:{};return G.type=M,G.arg=j,U?(this.method="next",this.next=U.finallyLoc,S):this.complete(G)},complete:function(M,j){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&j&&(this.next=j),S},finish:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.finallyLoc===M)return this.complete(H.completion,H.afterLoc),I(H),S}},catch:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.tryLoc===M){var z=H.completion;if(z.type==="throw"){var U=z.arg;I(H)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(M,j,H){return this.delegate={iterator:F(M),resultName:j,nextLoc:H},this.method==="next"&&(this.arg=e),S}},t}function N6(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(l){r(l);return}s.done?t(u):Promise.resolve(u).then(n,a)}function SU(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){N6(i,n,a,o,s,"next",u)}function s(u){N6(i,n,a,o,s,"throw",u)}o(void 0)})}}function CU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RU(n.key),n)}}function OU(e,t,r){return t&&EU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RU(e){var t=TU(e,"string");return Ru(t)==="symbol"?t:String(t)}function TU(e,t){if(Ru(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ru(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PU=function(){function e(){CU(this,e)}return OU(e,[{key:"openFile",value:function(){var t=SU(_y().mark(function n(a,i){var o;return _y().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!($R()&&a&&typeof a.uri<"u")){u.next=11;break}return u.prev=1,u.next=4,uU(a.uri);case 4:return o=u.sent,u.abrupt("return",new D6(o));case 8:throw u.prev=8,u.t0=u.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(u.t0));case 11:if(!(typeof a.slice=="function"&&typeof a.size<"u")){u.next=13;break}return u.abrupt("return",Promise.resolve(new D6(a)));case 13:if(typeof a.read!="function"){u.next=18;break}if(i=Number(i),Number.isFinite(i)){u.next=17;break}return u.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return u.abrupt("return",Promise.resolve(new xU(a,i)));case 18:return u.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return u.stop()}},n,null,[[1,8]])}));function r(n,a){return t.apply(this,arguments)}return r}()}]),e}();function kU(e,t){return $R()?Promise.resolve($U(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}function $U(e,t){var r=e.exif?AU(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}function AU(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t&=t}return t}function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function DU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AR(n.key),n)}}function NU(e,t,r){return r&&MU(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IU(e,t){if(typeof t!="function"&&t!==null)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&&wy(e,t)}function wy(e,t){return wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},wy(e,t)}function FU(e){var t=zU();return function(){var n=Op(e),a;if(t){var i=Op(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return jU(this,a)}}function jU(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LU(e)}function LU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Op(e){return Op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Op(e)}function I6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I6(Object(r),!0).forEach(function(n){BU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BU(e,t,r){return t=AR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AR(e){var t=HU(e,"string");return Vl(t)==="symbol"?t:String(t)}function HU(e,t){if(Vl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xy=xl(xl({},Ep.defaultOptions),{},{httpStack:new iU,fileReader:new PU,urlStorage:eU?new tU:new GV,fingerprint:kU}),VU=function(e){IU(r,e);var t=FU(r);function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return DU(this,r),a=xl(xl({},xy),a),t.call(this,n,a)}return NU(r,null,[{key:"terminate",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=xl(xl({},xy),i),Ep.terminate(a,i)}}]),r}(Ep);function jo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var UU=0;function DR(e){return"__private_"+UU+++"_"+e}var ca=DR("uppy"),hd=DR("events");class qU{constructor(t){Object.defineProperty(this,ca,{writable:!0,value:void 0}),Object.defineProperty(this,hd,{writable:!0,value:[]}),jo(this,ca)[ca]=t}on(t,r){return jo(this,hd)[hd].push([t,r]),jo(this,ca)[ca].on(t,r)}remove(){for(const[t,r]of jo(this,hd)[hd].splice(0))jo(this,ca)[ca].off(t,r)}onFilePause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onFileRemove(t,r){this.on("file-removed",n=>{t===n.id&&r(n.id)})}onPause(t,r){this.on("upload-pause",(n,a)=>{t===n&&r(a)})}onRetry(t,r){this.on("upload-retry",n=>{t===n&&r()})}onRetryAll(t,r){this.on("retry-all",()=>{jo(this,ca)[ca].getFile(t)&&r()})}onPauseAll(t,r){this.on("pause-all",()=>{jo(this,ca)[ca].getFile(t)&&r()})}onCancelAll(t,r){var n=this;this.on("cancel-all",function(){jo(n,ca)[ca].getFile(t)&&r(...arguments)})}onResumeAll(t,r){this.on("resume-all",()=>{jo(this,ca)[ca].getFile(t)&&r()})}}class WU extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}function YU(e){return e?e.readyState!==0&&e.readyState!==4||e.status===0:!1}function Nt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var GU=0;function Ea(e){return"__private_"+GU+++"_"+e}function KU(e){return new Error("Cancelled",{cause:e})}function F6(e){if(e!=null){var t;const r=()=>this.abort(e.reason);e.addEventListener("abort",r,{once:!0});const n=()=>{e.removeEventListener("abort",r)};(t=this.then)==null||t.call(this,n,n)}return this}var Ua=Ea("activeRequests"),fa=Ea("queuedHandlers"),Ha=Ea("paused"),nu=Ea("pauseTimer"),da=Ea("downLimit"),au=Ea("upperLimit"),Lo=Ea("rateLimitingTimer"),ef=Ea("call"),Xo=Ea("queueNext"),Sy=Ea("next"),d1=Ea("queue"),Cy=Ea("dequeue"),f1=Ea("resume"),iu=Ea("increaseLimit");class XU{constructor(t){Object.defineProperty(this,Cy,{value:tq}),Object.defineProperty(this,d1,{value:eq}),Object.defineProperty(this,Sy,{value:QU}),Object.defineProperty(this,Xo,{value:JU}),Object.defineProperty(this,ef,{value:ZU}),Object.defineProperty(this,Ua,{writable:!0,value:0}),Object.defineProperty(this,fa,{writable:!0,value:[]}),Object.defineProperty(this,Ha,{writable:!0,value:!1}),Object.defineProperty(this,nu,{writable:!0,value:void 0}),Object.defineProperty(this,da,{writable:!0,value:1}),Object.defineProperty(this,au,{writable:!0,value:void 0}),Object.defineProperty(this,Lo,{writable:!0,value:void 0}),Object.defineProperty(this,f1,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,iu,{writable:!0,value:()=>{if(Nt(this,Ha)[Ha]){Nt(this,Lo)[Lo]=setTimeout(Nt(this,iu)[iu],0);return}Nt(this,da)[da]=this.limit,this.limit=Math.ceil((Nt(this,au)[au]+Nt(this,da)[da])/2);for(let r=Nt(this,da)[da];r<=this.limit;r++)Nt(this,Xo)[Xo]();Nt(this,au)[au]-Nt(this,da)[da]>3?Nt(this,Lo)[Lo]=setTimeout(Nt(this,iu)[iu],2e3):Nt(this,da)[da]=Math.floor(Nt(this,da)[da]/2)}}),typeof t!="number"||t===0?this.limit=1/0:this.limit=t}run(t,r){return!Nt(this,Ha)[Ha]&&Nt(this,Ua)[Ua]<this.limit?Nt(this,ef)[ef](t):Nt(this,d1)[d1](t,r)}wrapSyncFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];const s=n.run(()=>(t(...i),queueMicrotask(()=>s.done()),()=>{}),r);return{abortOn:F6,abort(){s.abort()}}}}wrapPromiseFunction(t,r){var n=this;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];let s;const u=new Promise((l,h)=>{s=n.run(()=>{let d,g;try{g=Promise.resolve(t(...i))}catch(b){g=Promise.reject(b)}return g.then(b=>{d?h(d):(s.done(),l(b))},b=>{d?h(d):(s.done(),h(b))}),b=>{d=KU(b)}},r)});return u.abort=l=>{s.abort(l)},u.abortOn=F6,u}}resume(){Nt(this,Ha)[Ha]=!1,clearTimeout(Nt(this,nu)[nu]);for(let t=0;t<this.limit;t++)Nt(this,Xo)[Xo]()}pause(t){t===void 0&&(t=null),Nt(this,Ha)[Ha]=!0,clearTimeout(Nt(this,nu)[nu]),t!=null&&(Nt(this,nu)[nu]=setTimeout(Nt(this,f1)[f1],t))}rateLimit(t){clearTimeout(Nt(this,Lo)[Lo]),this.pause(t),this.limit>1&&Number.isFinite(this.limit)&&(Nt(this,au)[au]=this.limit-1,this.limit=Nt(this,da)[da],Nt(this,Lo)[Lo]=setTimeout(Nt(this,iu)[iu],t))}get isPaused(){return Nt(this,Ha)[Ha]}}function ZU(e){Nt(this,Ua)[Ua]+=1;let t=!1,r;try{r=e()}catch(n){throw Nt(this,Ua)[Ua]-=1,n}return{abort:n=>{t||(t=!0,Nt(this,Ua)[Ua]-=1,r==null||r(n),Nt(this,Xo)[Xo]())},done:()=>{t||(t=!0,Nt(this,Ua)[Ua]-=1,Nt(this,Xo)[Xo]())}}}function JU(){queueMicrotask(()=>Nt(this,Sy)[Sy]())}function QU(){if(Nt(this,Ha)[Ha]||Nt(this,Ua)[Ua]>=this.limit||Nt(this,fa)[fa].length===0)return;const e=Nt(this,fa)[fa].shift();if(e==null)throw new Error("Invariant violation: next is null");const t=Nt(this,ef)[ef](e.fn);e.abort=t.abort,e.done=t.done}function eq(e,t){const r={fn:e,priority:(t==null?void 0:t.priority)||0,abort:()=>{Nt(this,Cy)[Cy](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Nt(this,fa)[fa].findIndex(a=>r.priority>a.priority);return n===-1?Nt(this,fa)[fa].push(r):Nt(this,fa)[fa].splice(n,0,r),r}function tq(e){const t=Nt(this,fa)[fa].indexOf(e);t!==-1&&Nt(this,fa)[fa].splice(t,1)}function h1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rq(e){const t=r=>"error"in r&&!!r.error;return e.filter(r=>!t(r))}function nq(e){return e.filter(t=>{var r;return!((r=t.progress)!=null&&r.uploadStarted)||!t.isRestored})}function aq(){return typeof window<"u"&&(typeof window.PhoneGap<"u"||typeof window.Cordova<"u"||typeof window.cordova<"u")}function iq(){return typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative"}function oq(e){return(t,r)=>{if(aq()||iq())return xy.fingerprint(t,r);const n=["tus",e.id,r.endpoint].join("-");return Promise.resolve(n)}}function vu(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sq=0;function Yf(e){return"__private_"+sq+++"_"+e}const uq={version:"3.5.5"},MR={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},lq={limit:20,retryDelays:MR.retryDelays,withCredentials:!1};var tf=Yf("retryDelayIterator"),Ey=Yf("uploadLocalFile"),Oy=Yf("getCompanionClientArgs"),p1=Yf("uploadFiles"),pd=Yf("handleUpload");class NR extends oV{constructor(t,r){var n,a;if(super(t,{...lq,...r}),Object.defineProperty(this,p1,{value:fq}),Object.defineProperty(this,Oy,{value:dq}),Object.defineProperty(this,Ey,{value:cq}),Object.defineProperty(this,tf,{writable:!0,value:void 0}),Object.defineProperty(this,pd,{writable:!0,value:async i=>{if(i.length===0){this.uppy.log("[Tus] No files to upload");return}this.opts.limit===0&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const o=this.uppy.getFilesByIds(i);await vu(this,p1)[p1](o)}}),this.type="uploader",this.id=this.opts.id||"Tus",(r==null?void 0:r.allowedMetaFields)===void 0&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in r)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=(n=this.opts.rateLimitedQueue)!=null?n:new XU(this.opts.limit),vu(this,tf)[tf]=(a=this.opts.retryDelays)==null?void 0:a.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const t={...this.uppy.getState().files};Object.keys(t).forEach(r=>{var n;if((n=t[r])!=null&&(n=n.tus)!=null&&n.uploadUrl){const a={...t[r].tus};delete a.uploadUrl,t[r]={...t[r],tus:a}}}),this.uppy.setState({files:t})}resetUploaderReferences(t,r){const n=this.uploaders[t];n&&(n.abort(),r!=null&&r.abort&&n.abort(!0),this.uploaders[t]=null),this.uploaderEvents[t]&&(this.uploaderEvents[t].remove(),this.uploaderEvents[t]=null)}onReceiveUploadUrl(t,r){const n=this.uppy.getFile(t.id);n&&(!n.tus||n.tus.uploadUrl!==r)&&(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(n.id,{tus:{...n.tus,uploadUrl:r}}))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(vu(this,pd)[pd]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(vu(this,pd)[pd])}}function cq(e){var t=this;return this.resetUploaderReferences(e.id),new Promise((r,n)=>{let a,i,o;const s={...this.opts,...e.tus||{}};typeof s.headers=="function"&&(s.headers=s.headers(e));const{onShouldRetry:u,onBeforeRequest:l,...h}=s,d={...MR,...h};d.fingerprint=oq(e),d.onBeforeRequest=async E=>{const _=E.getUnderlyingObject();_.withCredentials=!!s.withCredentials;let C;if(typeof l=="function"&&(C=l(E,e)),h1(a,"shouldBeRequeued")){if(!a.shouldBeRequeued)return Promise.reject();let f;const p=new Promise(v=>{f=v});a=this.requests.run(()=>(e.isPaused&&a.abort(),f(),()=>{})),await Promise.all([p,C]);return}return C},d.onError=E=>{var _;this.uppy.log(E);const C=E.originalRequest!=null?E.originalRequest.getUnderlyingObject():null;YU(C)&&(E=new WU(E,C)),this.resetUploaderReferences(e.id),(_=a)==null||_.abort(),this.uppy.emit("upload-error",e,E),typeof s.onError=="function"&&s.onError(E),n(E)},d.onProgress=(E,_)=>{this.onReceiveUploadUrl(e,o.url),typeof s.onProgress=="function"&&s.onProgress(E,_),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:E,bytesTotal:_})},d.onSuccess=()=>{var E;const _={uploadURL:(E=o.url)!=null?E:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),a.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),_),o.url){const{name:C}=o.file;this.uppy.log(`Download ${C} from ${o.url}`)}typeof s.onSuccess=="function"&&s.onSuccess(),r(o)};const g=E=>{var _;const C=E==null||(_=E.originalResponse)==null?void 0:_.getStatus();if(C===429){if(!this.requests.isPaused){var f;const p=(f=vu(this,tf)[tf])==null?void 0:f.next();if(p==null||p.done)return!1;this.requests.rateLimit(p.value)}}else{if(C!=null&&C>400&&C<500&&C!==409&&C!==423)return!1;typeof navigator<"u"&&navigator.onLine===!1&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",()=>{this.requests.resume()},{once:!0})))}return a.abort(),a={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};u!=null?d.onShouldRetry=(E,_)=>u(E,_,s,g):d.onShouldRetry=g;const b=(E,_,C)=>{h1(E,_)&&!h1(E,C)&&(E[C]=E[_])},y={};(Array.isArray(s.allowedMetaFields)?s.allowedMetaFields:Object.keys(e.meta)).forEach(E=>{y[E]=String(e.meta[E])}),b(y,"type","filetype"),b(y,"name","filename"),d.metadata=y,o=new VU(e.data,d),this.uploaders[e.id]=o;const S=new qU(this.uppy);this.uploaderEvents[e.id]=S,i=()=>(e.isPaused||o.start(),()=>{}),o.findPreviousUploads().then(E=>{const _=E[0];_&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${_.creationTime}`),o.resumeFromPreviousUpload(_))}),a=this.requests.run(i),S.onFileRemove(e.id,E=>{a.abort(),this.resetUploaderReferences(e.id,{abort:!!o.url}),r(`upload ${E} was removed`)}),S.onPause(e.id,E=>{a.abort(),E?o.abort():a=this.requests.run(i)}),S.onPauseAll(e.id,()=>{a.abort(),o.abort()}),S.onCancelAll(e.id,function(E){let{reason:_}=E===void 0?{}:E;_==="user"&&(a.abort(),t.resetUploaderReferences(e.id,{abort:!!o.url})),r(`upload ${e.id} was canceled`)}),S.onResumeAll(e.id,()=>{a.abort(),e.error&&o.abort(),a=this.requests.run(i)})}).catch(r=>{throw this.uppy.emit("upload-error",e,r),r})}function dq(e){var t;const r={...this.opts};return e.tus&&Object.assign(r,e.tus),typeof r.headers=="function"&&(r.headers=r.headers(e)),{...(t=e.remote)==null?void 0:t.body,endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:e.data.size,headers:r.headers,metadata:e.meta}}async function fq(e){const t=rq(e),r=nq(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map(n=>{if(n.isRemote){const a=()=>this.requests,i=new AbortController,o=u=>{u.id===n.id&&i.abort()};this.uppy.on("file-removed",o);const s=this.uppy.getRequestClientForFile(n).uploadRemoteFile(n,vu(this,Oy)[Oy](n),{signal:i.signal,getQueue:a});return this.requests.wrapSyncFunction(()=>{this.uppy.off("file-removed",o)},{priority:-1})(),s}return vu(this,Ey)[Ey](n)}))}NR.VERSION=uq.version;var m1,j6;function hq(){return j6||(j6=1,m1=function(){var t={},r=t._fns={};t.emit=function(o,s,u,l,h,d,g){var b=n(o);b.length&&a(o,b,[s,u,l,h,d,g])},t.on=function(o,s){r[o]||(r[o]=[]),r[o].push(s)},t.once=function(o,s){function u(){s.apply(this,arguments),t.off(o,u)}this.on(o,u)},t.off=function(o,s){var u=[];if(o&&s){var l=this._fns[o],h=0,d=l?l.length:0;for(h;h<d;h++)l[h]!==s&&u.push(l[h])}u.length?this._fns[o]=u:delete this._fns[o]};function n(i){var o=r[i]?r[i]:[],s=i.indexOf(":"),u=s===-1?[i]:[i.substring(0,s),i.substring(s+1)],l=Object.keys(r),h=0,d=l.length;for(h;h<d;h++){var g=l[h];if(g==="*"&&(o=o.concat(r[g])),u.length===2&&u[0]===g){o=o.concat(r[g]);break}}return o}function a(i,o,s){var u=0,l=o.length;for(u;u<l&&o[u];u++)o[u].event=i,o[u].apply(o[u],s)}return t}),m1}var pq=hq();const mq=$n(pq);let gq="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",vq=(e=21)=>{let t="",r=e;for(;r--;)t+=gq[Math.random()*64|0];return t};function rp(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var bq=0;function IR(e){return"__private_"+bq+++"_"+e}const yq={version:"3.2.2"};var cu=IR("callbacks"),g1=IR("publish");class FR{constructor(){Object.defineProperty(this,g1,{value:_q}),this.state={},Object.defineProperty(this,cu,{writable:!0,value:new Set})}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,rp(this,g1)[g1](r,n,t)}subscribe(t){return rp(this,cu)[cu].add(t),()=>{rp(this,cu)[cu].delete(t)}}}function _q(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];rp(this,cu)[cu].forEach(n=>{n(...t)})}FR.VERSION=yq.version;function jR(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const L6={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function LR(e){var t;if(e.type)return e.type;const r=e.name?(t=jR(e.name).extension)==null?void 0:t.toLowerCase():null;return r&&r in L6?L6[r]:"application/octet-stream"}function wq(e){return e.charCodeAt(0).toString(32)}function z6(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${wq(r)}`,"/"))+t}function xq(e,t){let r=t||"uppy";return typeof e.name=="string"&&(r+=`-${z6(e.name.toLowerCase())}`),e.type!==void 0&&(r+=`-${e.type}`),e.meta&&typeof e.meta.relativePath=="string"&&(r+=`-${z6(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(r+=`-${e.data.size}`),e.data.lastModified!==void 0&&(r+=`-${e.data.lastModified}`),r}function Sq(e){return!e.isRemote||!e.remote?!1:new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}function Cq(e,t){if(Sq(e))return e.id;const r=LR(e);return xq({...e,type:r},t)}function Eq(e){if(e==null&&typeof navigator<"u"&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1].split(".",2),a=parseInt(n[0],10),i=parseInt(n[1],10);return a<15||a===15&&i<15063||a>18||a===18&&i>=18218}function Oq(e,t){return t.name?t.name:e.split("/")[0]==="image"?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}function v1(e){return e<10?`0${e}`:e.toString()}function np(){const e=new Date,t=v1(e.getHours()),r=v1(e.getMinutes()),n=v1(e.getSeconds());return`${t}:${r}:${n}`}const Rq={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${np()}]`,...t)}},Tq={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${np()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${np()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${np()}]`,...t)}};var b1,B6;function Pq(){return B6||(B6=1,b1=function(t){if(typeof t!="number"||Number.isNaN(t))throw new TypeError(`Expected a number, got ${typeof t}`);const r=t<0;let n=Math.abs(t);if(r&&(n=-n),n===0)return"0 B";const a=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.min(Math.floor(Math.log(n)/Math.log(1024)),a.length-1),o=Number(n/1024**i),s=a[i];return`${o>=10||o%1===0?Math.round(o):o.toFixed(1)} ${s}`}),b1}var kq=Pq();const h0=$n(kq);var y1,H6;function $q(){if(H6)return y1;H6=1;function e(t,r){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=r,this.parts=t.split(r)}return e.prototype.match=function(t){var r=!0,n=this.parts,a,i=n.length,o;if(typeof t=="string"||t instanceof String)if(!this.hasWild&&this.text!=t)r=!1;else{for(o=(t||"").split(this.separator),a=0;r&&a<i;a++)n[a]!=="*"&&(a<o.length?r=n[a]===o[a]:r=!1);r=r&&o}else if(typeof t.splice=="function")for(r=[],a=t.length;a--;)this.match(t[a])&&(r[r.length]=t[a]);else if(typeof t=="object"){r={};for(var s in t)this.match(s)&&(r[s]=t[s])}return r},y1=function(t,r,n){var a=new e(t,n||/[\/\.]/);return typeof r<"u"?a.match(r):a},y1}var _1,V6;function Aq(){if(V6)return _1;V6=1;var e=$q(),t=/[\/\+\.]/;return _1=function(r,n){function a(i){var o=e(i,r,t);return o&&o.length>=2}return n?a(n.split(";")[0]):a},_1}var Dq=Aq();const Mq=$n(Dq),Nq={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Pi extends Error{constructor(t,r){var n;super(t),this.isRestriction=!0,this.isUserFacing=(n=r==null?void 0:r.isUserFacing)!=null?n:!0,r!=null&&r.file&&(this.file=r.file)}}class Iq{constructor(t,r){this.getI18n=r,this.getOpts=()=>{var n;const a=t();if(((n=a.restrictions)==null?void 0:n.allowedFileTypes)!=null&&!Array.isArray(a.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return a}}validateAggregateRestrictions(t,r){const{maxTotalFileSize:n,maxNumberOfFiles:a}=this.getOpts().restrictions;if(a&&t.filter(o=>!o.isGhost).length+r.length>a)throw new Pi(`${this.getI18n()("youCanOnlyUploadX",{smart_count:a})}`);if(n){const i=[...t,...r].reduce((o,s)=>{var u;return o+((u=s.size)!=null?u:0)},0);if(i>n)throw new Pi(this.getI18n()("aggregateExceedsSize",{sizeAllowed:h0(n),size:h0(i)}))}}validateSingleFile(t){const{maxFileSize:r,minFileSize:n,allowedFileTypes:a}=this.getOpts().restrictions;if(a&&!a.some(o=>o.includes("/")?t.type?Mq(t.type.replace(/;.*?$/,""),o):!1:o[0]==="."&&t.extension?t.extension.toLowerCase()===o.slice(1).toLowerCase():!1)){const o=a.join(", ");throw new Pi(this.getI18n()("youCanOnlyUploadFileTypes",{types:o}),{file:t})}if(r&&t.size!=null&&t.size>r)throw new Pi(this.getI18n()("exceedsSize",{size:h0(r),file:t.name}),{file:t});if(n&&t.size!=null&&t.size<n)throw new Pi(this.getI18n()("inferiorSize",{size:h0(n)}),{file:t})}validate(t,r){r.forEach(n=>{this.validateSingleFile(n)}),this.validateAggregateRestrictions(t,r)}validateMinNumberOfFiles(t){const{minNumberOfFiles:r}=this.getOpts().restrictions;if(r&&Object.keys(t).length<r)throw new Pi(this.getI18n()("youHaveToAtLeastSelectX",{smart_count:r}))}getMissingRequiredMetaFields(t){const r=new Pi(this.getI18n()("missingRequiredMetaFieldOnFile",{fileName:t.name})),{requiredMetaFields:n}=this.getOpts().restrictions,a=[];for(const i of n)(!Object.hasOwn(t.meta,i)||t.meta[i]==="")&&a.push(i);return{missingFields:a,error:r}}}const Fq={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},aggregateExceedsSize:"You selected %{size} of files, but maximum allowed size is %{sizeAllowed}",exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled",unnamed:"Unnamed"}};let zR,BR;function lt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jq=0;function fn(e){return"__private_"+jq+++"_"+e}const Lq={version:"3.13.1"},p0={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var jn=fn("plugins"),qa=fn("restricter"),md=fn("storeUnsubscribe"),zo=fn("emitter"),du=fn("preProcessors"),fu=fn("uploaders"),Zo=fn("postProcessors"),Wa=fn("informAndEmit"),wf=fn("checkRequiredMetaFieldsOnFile"),w1=fn("checkRequiredMetaFields"),gd=fn("assertNewUploadAllowed"),Ry=fn("transformFile"),vd=fn("startIfAutoProceed"),bd=fn("checkAndUpdateFileState"),x1=fn("addListeners"),Di=fn("updateOnlineStatus"),yd=fn("requestClientById"),Bo=fn("createUpload"),S1=fn("getUpload"),bu=fn("removeUpload"),Ho=fn("runUpload");zR=Symbol.for("uppy test: getPlugins");BR=Symbol.for("uppy test: createUpload");class sm{constructor(t){Object.defineProperty(this,Ho,{value:Zq}),Object.defineProperty(this,bu,{value:Xq}),Object.defineProperty(this,S1,{value:Kq}),Object.defineProperty(this,Bo,{value:Gq}),Object.defineProperty(this,x1,{value:Yq}),Object.defineProperty(this,bd,{value:Wq}),Object.defineProperty(this,vd,{value:qq}),Object.defineProperty(this,Ry,{value:Uq}),Object.defineProperty(this,gd,{value:Vq}),Object.defineProperty(this,w1,{value:Hq}),Object.defineProperty(this,wf,{value:Bq}),Object.defineProperty(this,Wa,{value:zq}),Object.defineProperty(this,jn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,qa,{writable:!0,value:void 0}),Object.defineProperty(this,md,{writable:!0,value:void 0}),Object.defineProperty(this,zo,{writable:!0,value:mq()}),Object.defineProperty(this,du,{writable:!0,value:new Set}),Object.defineProperty(this,fu,{writable:!0,value:new Set}),Object.defineProperty(this,Zo,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=mH((a,i)=>{const o=this.getFile(a==null?void 0:a.id);if(a==null||!o){this.log(`Not setting progress for a file that has been removed: ${a==null?void 0:a.id}`);return}if(o.progress.percentage===100){this.log(`Not setting progress for a file that has been already uploaded: ${a.id}`);return}const s=Number.isFinite(i.bytesTotal)&&i.bytesTotal>0;this.setFileState(a.id,{progress:{...o.progress,bytesUploaded:i.bytesUploaded,bytesTotal:i.bytesTotal,percentage:s?Math.round(i.bytesUploaded/i.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,Di,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,yd,{writable:!0,value:new Map}),this.defaultLocale=Fq;const r={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:Nq,meta:{},onBeforeFileAdded:(a,i)=>!Object.hasOwn(i,a.id),onBeforeUpload:a=>a,store:new FR,logger:Rq,infoTimeout:5e3},n={...r,...t};this.opts={...n,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=Tq),this.log(`Using Core v${sm.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...p0,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:Eq(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),lt(this,qa)[qa]=new Iq(()=>this.opts,()=>this.i18n),lt(this,md)[md]=this.store.subscribe((a,i,o)=>{this.emit("state-update",a,i,o),this.updateAll(i)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),lt(this,x1)[x1]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];lt(this,zo)[zo].emit(t,...n)}on(t,r){return lt(this,zo)[zo].on(t,r),this}once(t,r){return lt(this,zo)[zo].once(t,r),this}off(t,r){return lt(this,zo)[zo].off(t,r),this}updateAll(t){this.iteratePlugins(r=>{r.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}patchFilesState(t){const r=this.getState().files;this.setState({files:{...r,...Object.fromEntries(Object.entries(t).map(n=>{let[a,i]=n;return[a,{...r[a],...i}]}))}})}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.patchFilesState({[t]:r})}i18nInit(){const t=n=>this.log(`Missing i18n string: ${n}`,"error"),r=new hR([this.defaultLocale,this.opts.locale],{onMissingKey:t});this.i18n=r.translate.bind(r),this.i18nArray=r.translateArray.bind(r),this.locale=r.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t==null?void 0:t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(r=>{r.setOptions(t)}),this.setState(void 0)}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(a=>{n[a]={...r[a],progress:{...r[a].progress,...t}}}),this.setState({files:n,...p0}),this.emit("reset-progress")}clearUploadedFiles(){const{capabilities:t,currentUploads:r}=this.getState();if(Object.keys(r).length>0&&!t.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");this.setState({...p0,files:{}})}addPreProcessor(t){lt(this,du)[du].add(t)}removePreProcessor(t){return lt(this,du)[du].delete(t)}addPostProcessor(t){lt(this,Zo)[Zo].add(t)}removePostProcessor(t){return lt(this,Zo)[Zo].delete(t)}addUploader(t){lt(this,fu)[fu].add(t)}removeUploader(t){return lt(this,fu)[fu].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(a=>{n[a]={...n[a],meta:{...n[a].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t]){this.log("Was trying to set metadata for a file that has been removed: ",t);return}const a={...n[t].meta,...r};n[t]={...n[t],meta:a},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getFilesByIds(t){return t.map(r=>this.getFile(r))}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),a=Object.values(t),i=[],o=[],s=[],u=[],l=[],h=[],d=[],g=[],b=[];for(const y of a){const{progress:w}=y;!w.uploadComplete&&w.uploadStarted&&(i.push(y),y.isPaused||g.push(y)),w.uploadStarted||o.push(y),(w.uploadStarted||w.preprocess||w.postprocess)&&s.push(y),w.uploadStarted&&u.push(y),y.isPaused&&l.push(y),w.uploadComplete&&h.push(y),y.error&&d.push(y),(w.preprocess||w.postprocess)&&b.push(y)}return{newFiles:o,startedFiles:s,uploadStartedFiles:u,pausedFiles:l,completeFiles:h,erroredFiles:d,inProgressFiles:i,inProgressNotPausedFiles:g,processingFiles:b,isUploadStarted:u.length>0,isAllComplete:r===100&&h.length===a.length&&b.length===0,isAllErrored:!!n&&d.length===a.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:a.some(y=>y.isGhost)}}validateRestrictions(t,r){r===void 0&&(r=this.getFiles());try{lt(this,qa)[qa].validate(r,[t])}catch(n){return n}return null}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!!(r[t]&&!r[t].isGhost)}addFile(t){lt(this,gd)[gd](t);const{nextFilesState:r,validFilesToAdd:n,errors:a}=lt(this,bd)[bd]([t]),i=a.filter(s=>s.isRestriction);if(lt(this,Wa)[Wa](i),a.length>0)throw a[0];this.setState({files:r});const[o]=n;return this.emit("file-added",o),this.emit("files-added",n),this.log(`Added file: ${o.name}, ${o.id}, mime type: ${o.type}`),lt(this,vd)[vd](),o.id}addFiles(t){lt(this,gd)[gd]();const{nextFilesState:r,validFilesToAdd:n,errors:a}=lt(this,bd)[bd](t),i=a.filter(s=>s.isRestriction);lt(this,Wa)[Wa](i);const o=a.filter(s=>!s.isRestriction);if(o.length>0){let s=`Multiple errors occurred while adding files:
283
- `;if(o.forEach(u=>{s+=`
284
- * ${u.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:s},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,s);{const u=new Error(s);throw u.errors=o,u}}this.setState({files:r}),n.forEach(s=>{this.emit("file-added",s)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.values(n).forEach(s=>{this.log(`Added file: ${s.name}
285
- id: ${s.id}
286
- type: ${s.type}`)}),n.length>0&&lt(this,vd)[vd]()}removeFiles(t,r){const{files:n,currentUploads:a}=this.getState(),i={...n},o={...a},s=Object.create(null);t.forEach(d=>{n[d]&&(s[d]=n[d],delete i[d])});function u(d){return s[d]===void 0}Object.keys(o).forEach(d=>{const g=a[d].fileIDs.filter(u);if(g.length===0){delete o[d];return}const{capabilities:b}=this.getState();if(g.length!==a[d].fileIDs.length&&!b.individualCancellation)throw new Error("The installed uploader plugin does not allow removing files during an upload.");o[d]={...a[d],fileIDs:g}});const l={currentUploads:o,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const h=Object.keys(s);h.forEach(d=>{this.emit("file-removed",s[d],r)}),h.length>5?this.log(`Removed ${h.length} files`):this.log(`Removed files: ${h.join(", ")}`)}removeFile(t,r){this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).progress.uploadComplete)return;const n=!(this.getFile(t).isPaused||!1);return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!0};t[n]=a}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const a={...t[n],isPaused:!1,error:null};t[n]=a}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(a=>t[a].error);if(r.forEach(a=>{const i={...t[a],isPaused:!1,error:null};t[a]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=lt(this,Bo)[Bo](r,{forceAllowNewUpload:!0});return lt(this,Ho)[Ho](n)}cancelAll(t){let{reason:r="user"}=t===void 0?{}:t;if(this.emit("cancel-all",{reason:r}),r==="user"){const{files:n}=this.getState(),a=Object.keys(n);a.length&&this.removeFiles(a,"cancel-all"),this.setState(p0)}}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=lt(this,Bo)[Bo]([t],{forceAllowNewUpload:!0});return lt(this,Ho)[Ho](r)}logout(){this.iteratePlugins(t=>{var r;(r=t.provider)==null||r.logout==null||r.logout()})}calculateTotalProgress(){const r=this.getFiles().filter(l=>l.progress.uploadStarted||l.progress.preprocess||l.progress.postprocess);if(r.length===0){this.emit("progress",0),this.setState({totalProgress:0});return}const n=r.filter(l=>l.progress.bytesTotal!=null),a=r.filter(l=>l.progress.bytesTotal==null);if(n.length===0){const l=r.length*100,h=a.reduce((g,b)=>g+b.progress.percentage,0),d=Math.round(h/l*100);this.setState({totalProgress:d});return}let i=n.reduce((l,h)=>{var d;return l+((d=h.progress.bytesTotal)!=null?d:0)},0);const o=i/n.length;i+=o*a.length;let s=0;n.forEach(l=>{s+=l.progress.bytesUploaded}),a.forEach(l=>{s+=o*(l.progress.percentage||0)/100});let u=i===0?0:Math.round(s/i*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){var t;((t=window.navigator.onLine)!=null?t:!0)?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function"){const o=`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`;throw new TypeError(o)}const n=new t(this,r),a=n.id;if(!a)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(a);if(i){const o=`Already found a plugin named '${i.id}'. Tried to use: '${a}'.
287
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(o)}return t.VERSION&&this.log(`Using ${a} v${t.VERSION}`),n.type in lt(this,jn)[jn]?lt(this,jn)[jn][n.type].push(n):lt(this,jn)[jn][n.type]=[n],n.install(),this.emit("plugin-added",n),this}getPlugin(t){for(const r of Object.values(lt(this,jn)[jn])){const n=r.find(a=>a.id===t);if(n!=null)return n}}[zR](t){return lt(this,jn)[jn][t]}iteratePlugins(t){Object.values(lt(this,jn)[jn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=lt(this,jn)[jn][t.type],n=r.findIndex(o=>o.id===t.id);n!==-1&&r.splice(n,1);const i={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(i)}close(t){let{reason:r}=t===void 0?{}:t;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:r}),lt(this,md)[md](),this.iteratePlugins(n=>{this.removePlugin(n)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",lt(this,Di)[Di]),window.removeEventListener("offline",lt(this,Di)[Di]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const a=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:a?t.message:t,details:a?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t);break}}registerRequestClient(t,r){lt(this,yd)[yd].set(t,r)}getRequestClientForFile(t){if(!t.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${t.id}`);const r=lt(this,yd)[yd].get(t.remote.requestClientId);if(r==null)throw new Error(`requestClientId "${t.remote.requestClientId}" not registered for file "${t.id}"`);return r}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?lt(this,Ho)[Ho](t):(lt(this,bu)[bu](t),Promise.reject(new Error("Nonexistent upload")))}[BR](){return lt(this,Bo)[Bo](...arguments)}addResultData(t,r){if(!lt(this,S1)[S1](t)){this.log(`Not setting result for an upload that has been removed: ${t}`);return}const{currentUploads:n}=this.getState(),a={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:a}})}upload(){var t;(t=lt(this,jn)[jn].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>lt(this,qa)[qa].validateMinNumberOfFiles(r)).catch(a=>{throw lt(this,Wa)[Wa]([a]),a}).then(()=>{if(!lt(this,w1)[w1](r))throw new Pi(this.i18n("missingRequiredMetaField"))}).catch(a=>{throw a}).then(()=>{const{currentUploads:a}=this.getState(),i=Object.values(a).flatMap(u=>u.fileIDs),o=[];Object.keys(r).forEach(u=>{const l=this.getFile(u);!l.progress.uploadStarted&&i.indexOf(u)===-1&&o.push(l.id)});const s=lt(this,Bo)[Bo](o);return lt(this,Ho)[Ho](s)}).catch(a=>{throw this.emit("error",a),this.log(a,"error"),a}))}}function zq(e){for(const i of e)i.isRestriction?this.emit("restriction-failed",i.file,i):this.emit("error",i,i.file),this.log(i,"warning");const t=e.filter(i=>i.isUserFacing),r=4,n=t.slice(0,r),a=t.slice(r);n.forEach(i=>{let{message:o,details:s=""}=i;this.info({message:o,details:s},"error",this.opts.infoTimeout)}),a.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:a.length})})}function Bq(e){const{missingFields:t,error:r}=lt(this,qa)[qa].getMissingRequiredMetaFields(e);return t.length>0?(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),!1):!0}function Hq(e){let t=!0;for(const r of Object.values(e))lt(this,wf)[wf](r)||(t=!1);return t}function Vq(e){const{allowNewUpload:t}=this.getState();if(t===!1){const r=new Pi(this.i18n("noMoreFilesAllowed"),{file:e});throw lt(this,Wa)[Wa]([r]),r}}function Uq(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=LR(t),n=Oq(r,t),a=jR(n).extension,i=Cq(t,this.getID()),o=t.meta||{};o.name=n,o.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:a||"",meta:{...this.getState().meta,...o},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function qq(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function Wq(e){const{files:t}=this.getState(),r={...t},n=[],a=[];for(const o of e)try{var i;let s=lt(this,Ry)[Ry](o);const u=(i=t[s.id])==null?void 0:i.isGhost;u&&(s={...t[s.id],isGhost:!1,data:o.data},this.log(`Replaced the blob in the restored ghost file: ${s.name}, ${s.id}`));const l=this.opts.onBeforeFileAdded(s,r);if(!l&&this.checkIfFileAlreadyExists(s.id))throw new Pi(this.i18n("noDuplicates",{fileName:s.name}),{file:o});if(l===!1&&!u)throw new Pi("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:o});typeof l=="object"&&l!==null&&(s=l),lt(this,qa)[qa].validateSingleFile(s),r[s.id]=s,n.push(s)}catch(s){a.push(s)}try{lt(this,qa)[qa].validateAggregateRestrictions(Object.values(t),n)}catch(o){return a.push(o),{nextFilesState:t,validFilesToAdd:[],errors:a}}return{nextFilesState:r,validFilesToAdd:n,errors:a}}function Yq(){const e=(n,a,i)=>{let o=n.message||"Unknown error";n.details&&(o+=` ${n.details}`),this.setState({error:o}),a!=null&&a.id in this.getState().files&&this.setFileState(a.id,{error:o,response:i})};this.on("error",e),this.on("upload-error",(n,a,i)=>{if(e(a,n,i),typeof a=="object"&&a.message){var o;this.log(a.message,"error");const s=new Error(this.i18n("failedToUpload",{file:(o=n==null?void 0:n.name)!=null?o:""}));s.isUserFacing=!0,s.details=a.message,a.details&&(s.details+=` ${a.details}`),lt(this,Wa)[Wa]([s])}else lt(this,Wa)[Wa]([a])});let t=null;this.on("upload-stalled",(n,a)=>{const{message:i}=n,o=a.map(s=>s.meta.name).join(", ");t||(this.info({message:i,details:o},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${i} ${o}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const r=n=>{const a=n.filter(o=>{const s=o!=null&&this.getFile(o.id);return s||this.log(`Not setting progress for a file that has been removed: ${o==null?void 0:o.id}`),s}),i=Object.fromEntries(a.map(o=>[o.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:o.size}}]));this.patchFilesState(i)};this.on("upload-start",n=>{n.forEach(a=>{this.emit("upload-started",a)}),r(n)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const i=this.getFile(n.id).progress;this.setFileState(n.id,{progress:{...i,postprocess:lt(this,Zo)[Zo].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:i.bytesTotal},response:a,uploadURL:a.uploadURL,isPaused:!1}),n.size==null&&this.setFileState(n.id,{size:a.bytesUploaded||i.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getFile(n.id).progress,preprocess:a}})}),this.on("preprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.preprocess,this.setState({files:a})}),this.on("postprocess-progress",(n,a)=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}this.setFileState(n.id,{progress:{...this.getState().files[n.id].progress,postprocess:a}})}),this.on("postprocess-complete",n=>{if(n==null||!this.getFile(n.id)){this.log(`Not setting progress for a file that has been removed: ${n==null?void 0:n.id}`);return}const a={...this.getState().files};a[n.id]={...a[n.id],progress:{...a[n.id].progress}},delete a[n.id].progress.postprocess,this.setState({files:a})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",n=>{n&&lt(this,wf)[wf](n)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",lt(this,Di)[Di]),window.addEventListener("offline",lt(this,Di)[Di]),setTimeout(lt(this,Di)[Di],3e3))}function Gq(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:a}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=vq();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...a,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Kq(e){const{currentUploads:t}=this.getState();return t[e]}function Xq(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Zq(e){const t=()=>{const{currentUploads:i}=this.getState();return i[e]};let r=t();const n=[...lt(this,du)[du],...lt(this,fu)[fu],...lt(this,Zo)[Zo]];try{for(let i=r.step||0;i<n.length&&r;i++){const o=n[i];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:i}}});const{fileIDs:s}=r;await o(s,e),r=t()}}catch(i){throw lt(this,bu)[bu](e),i}if(r){r.fileIDs.forEach(u=>{const l=this.getFile(u);l&&l.progress.postprocess&&this.emit("postprocess-complete",l)});const i=r.fileIDs.map(u=>this.getFile(u)),o=i.filter(u=>!u.error),s=i.filter(u=>u.error);this.addResultData(e,{successful:o,failed:s,uploadID:e}),r=t()}let a;return r&&(a=r.result,this.emit("complete",a),lt(this,bu)[bu](e)),a==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),a}sm.VERSION=Lq.version;function Jq(e,t){if(!t)return e;for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=new RegExp(`{(${r})+}`,"g");e=e.replace(n,t[r])}return e}const Qq=(e,t={},r)=>Jq(t.placeholder||"",t.variate),J=(e,t,r)=>Qq(e,t),HR=A.forwardRef((e,t)=>{const[r,n]=A.useState("write"),a=A.useRef(null),[i,{toggleFullscreen:o}]=aR(a),s=new tV.Converter({tables:!0,simplifiedAutoLink:!0,strikethrough:!0,tasklists:!0}),u={name:"full",icon:()=>B.jsx(Dt,{onClick:()=>{},className:en.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:b=>{o()}},l={name:"paste",icon:()=>B.jsx(Dt,{onClick:()=>{},className:en.markIcon,style:{fontSize:"13px"},type:"fangda"}),execute:b=>{}},h={name:"min",icon:()=>B.jsx(Dt,{onClick:()=>{},className:en.markIcon,style:{fontSize:"13px"},type:"suoxiao"}),execute:b=>{o()}},d={name:"table",icon:()=>B.jsx(Dt,{className:en.markIcon,style:{fontSize:"13px"},type:"charubiaoge"}),execute:b=>{b.textApi.replaceSelection(`${J("sys.columnHeader",{placeholder:"列头"})}1 | ${J("sys.columnHeader",{placeholder:"列头"})}2 | ${J("sys.columnHeader",{placeholder:"列头"})}3
288
- :----------- | :-----------: | -----------:
289
- ${J("sys.align.left",{placeholder:"居左"})}|${J("sys.align.center",{placeholder:"居中"})}|${J("sys.align.right",{placeholder:"居右"})}`)}},g=async function*(b,y){const w=new sm({meta:{},debug:!1,autoProceed:!0});w.use(NR,{endpoint:`${e.OSS_URL}`,headers:{Authorization:`${e.token}`},chunkSize:1*1024*1024,overridePatchMethod:!1,allowedMetaFields:null}).on("upload-success",(E,_)=>{e.toPostFileRecord&&e.toPostFileRecord({file:E,response:_,type:"0"})}),w.addFile({name:y.name,type:y.type,data:y,source:"Local",isRemote:!1});const S=await w.upload();return S.successful[0]?S.successful[0].uploadURL:J("sys.fileServerError.fileServerError",{placeholder:"文件服务器错误"})};return A.useEffect(()=>{n("write")},[e.readOnly]),B.jsxs("div",{className:ge(en.main,e.value?en.mdebordershow:en.mdeborderhide,i?en.fullscreen:{},r==="preview"?en.mdePreview:{}),children:[B.jsx("div",{ref:a,style:{background:"white",height:"100%",width:"100%"},children:B.jsx(KB,{value:e.value,onChange:b=>{e.onChange&&e.onChange(b)},minPreviewHeight:e.height&&e.height>10?e.height-10:100,minEditorHeight:e.height||76,maxEditorHeight:e.height||76,getIcon:b=>b==="header"?B.jsx(Dt,{tooltip:{title:J("sys.title",{placeholder:"标题"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"H"}):b==="bold"?B.jsx(Dt,{tooltip:{title:J("sys.bold.bold",{placeholder:"加粗"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"jiacu"}):b==="italic"?B.jsx(Dt,{tooltip:{title:J("sys.italic.italic",{placeholder:"倾斜"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"qingxie"}):b==="strikethrough"?B.jsx(Dt,{tooltip:{title:J("sys.strikethrough.strikethrough",{placeholder:"划线"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"huaxian"}):b==="link"?B.jsx(Dt,{tooltip:{title:J("sys.link.link",{placeholder:"链接"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"lianjie"}):b==="quote"?B.jsx(Dt,{tooltip:{title:J("sys.quote.quote",{placeholder:"引用"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"yinyong"}):b==="code"?B.jsx(Dt,{tooltip:{title:J("sys.code.code",{placeholder:"代码"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"code"}):b==="image"?B.jsx(Dt,{tooltip:{title:J("sys.label.image",{placeholder:"图片"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"charutupian"}):b==="unordered-list"?B.jsx(Dt,{tooltip:{title:J("sys.unorderedList.unorderedList",{placeholder:"无序列表"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"dian"}):b==="ordered-list"?B.jsx(Dt,{tooltip:{title:J("sys.orderedList.orderedList",{placeholder:"有序列表"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"shuzi"}):b==="checked-list"?B.jsx(Dt,{tooltip:{title:J("sys.checkedList.checkedList",{placeholder:"勾选列表"})},onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"gou"}):B.jsx(Dt,{onClick:()=>{},style:{fontSize:"13px"},className:en.markIcon,type:"chakanxiangqing"}),toolbarCommands:i?[["header","bold","italic","strikethrough","link","code","table","image","ordered-list","checked-list","min"]]:[["header","bold","italic","link","code","table","image","ordered-list","checked-list","full"]],l18n:{uploadingImage:J("sys.uploadingImage.uploadingImage",{placeholder:"正在上传图片"}),write:J("individuality.column.operate.edit",{placeholder:"编辑"}),preview:J("sys.action.preview",{placeholder:"预览"}),pasteDropSelect:J("sys.label.uploadImage",{placeholder:"上传图片"})},commands:{full:u,table:d,min:h,paste:l},selectedTab:e.readOnly?"preview":r,readOnly:e.readOnly,onTabChange:b=>{n(b)},generateMarkdownPreview:b=>Promise.resolve(s.makeHtml(b)),childProps:{writeButton:{tabIndex:-1}},paste:{saveImage:g,accept:"text/plain,image/png,image/jpeg"}})}),r==="preview"||e.readOnly?B.jsx("div",{style:{position:"absolute",top:"9px",left:"110px"},children:B.jsx(Dt,{onClick:()=>{o()},className:en.markIcon,style:{fontSize:"13px"},type:"fangda"})}):B.jsx(B.Fragment,{})]})}),eW="_confirmModal_1ejcp_1",tW="_wrapClassName_1ejcp_20",rW="_notBtnIcon_1ejcp_28",nW="_qprogress_1ejcp_34",aW="_styleUnify_1ejcp_39",rf={confirmModal:eW,wrapClassName:tW,notBtnIcon:rW,qprogress:nW,styleUnify:aW};var ap={exports:{}},iW=ap.exports,U6;function oW(){return U6||(U6=1,function(e,t){(function(r,n){e.exports=n()})(iW,function(){/*! *****************************************************************************
290
- Copyright (c) Microsoft Corporation. All rights reserved.
291
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
292
- this file except in compliance with the License. You may obtain a copy of the
293
- License at http://www.apache.org/licenses/LICENSE-2.0
294
-
295
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
296
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
297
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
298
- MERCHANTABLITY OR NON-INFRINGEMENT.
299
-
300
- See the Apache Version 2.0 License for specific language governing permissions
301
- and limitations under the License.
302
- ***************************************************************************** */var r=function(){return(r=Object.assign||function(d){for(var g,b=1,y=arguments.length;b<y;b++)for(var w in g=arguments[b])Object.prototype.hasOwnProperty.call(g,w)&&(d[w]=g[w]);return d}).apply(this,arguments)};function n(d,g,b){return d<g?g:d>b?b:d}function a(d,g){var b=i(d),y=b+g;o(b,g)||(d.className=y.substring(1))}function i(d){return(" "+(d&&d.className||"")+" ").replace(/\s+/gi," ")}function o(d,g){return d.indexOf(" "+g+" ")>=0}function s(d){return String(100*(-1+d))}var u=function(){var d=["Webkit","O","Moz","ms"],g={};function b(w){return w=w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(S,E){return E.toUpperCase()}),g[w]||(g[w]=function(S){var E=document.body.style;if(S in E)return S;for(var _,C=d.length,f=S.charAt(0).toUpperCase()+S.slice(1);C--;)if((_=d[C]+f)in E)return _;return S}(w))}function y(w,S,E){S=b(S),w.style[S]=E}return function(w,S){var E,_,C=arguments;if(C.length===2)for(E in S)_=S[E],S.hasOwnProperty(E)&&y(w,E,_);else y(w,C[1],C[2])}}(),l=function(){var d=[];function g(){var b=d.shift();b&&b(g)}return function(b){d.push(b),d.length===1&&g()}}();function h(d,g){var b=i(d),y="";o(b,g)&&(y=b.replace(" "+g+" "," "),d.className=y.substring(1,y.length-1))}return function(d,g){g===void 0&&(g={});var b=g.insertAt;if(typeof document<"u"){var y=document.head||document.getElementsByTagName("head")[0],w=document.createElement("style");w.type="text/css",b==="top"&&y.firstChild?y.insertBefore(w,y.firstChild):y.appendChild(w),w.styleSheet?w.styleSheet.cssText=d:w.appendChild(document.createTextNode(d))}}("#qprogress{pointer-events:none}#qprogress .bar{position:fixed;z-index:999999;top:0;left:0;width:100%;height:2px}#qprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;opacity:1;-webkit-transform:rotate(3deg) translateY(-4px);transform:rotate(3deg) translateY(-4px)}.qprogress-custom-parent{overflow:hidden;position:relative}.qprogress-custom-parent #qprogress .bar{position:absolute}#qprogress .colorful-bar{background:-webkit-gradient(linear,left top,right top,from(#1890ff),color-stop(#13c2c2),color-stop(#52c41a),color-stop(#fa8c16),color-stop(#fa541c),color-stop(#f5222d),to(#1890ff));background:linear-gradient(90deg,#1890ff,#13c2c2,#52c41a,#fa8c16,#fa541c,#f5222d,#1890ff);-webkit-animation:ins 2s linear infinite;animation:ins 2s linear infinite;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;-webkit-transform-origin:left;transform-origin:left;background-size:500%}@-webkit-keyframes ins{0%{background-position:0 0}to{background-position:125% 0}}@keyframes ins{0%{background-position:0 0}to{background-position:125% 0}}"),function(){function d(g){this.status=null,this.config=r({minimum:.12,height:2,color:"#1890ff",colorful:!0,easing:"ease",speed:400,positionUsing:"",trickle:!0,trickleSpeed:400,parentNode:"body",barSelector:'[role="bar"]',pegSelector:'[role="peg"]',template:'<div class="bar" role="bar"><div class="peg" role="peg"></div></div>'},g)}return d.prototype.set=function(g){var b=this.isStarted();g=n(g,this.config.minimum,1),this.status=g===1?null:g;var y=this.config,w=y.barSelector,S=y.speed,E=y.easing,_=y.parentNode,C=this.config.positionUsing,f=this.render(!b),p=f.querySelector(w),v=S,x=E;f.offsetWidth,l(function(k){var O,$;C===""&&(O=document.body.style,C=($="webkitTransform"in O?"webkit":"mozTransform"in O?"moz":"msTransform"in O?"ms":"oTransform"in O?"o":"")+"Perspective"in O?"translate3d":$+"Transform"in O?"translate":"margin"),u(p,function(D,V,I,N){var F;return(F=N==="translate3d"?{transform:"translate3d("+s(D)+"%, 0, 0)"}:N==="translate"?{transform:"translate("+s(D)+"%, 0)"}:{"margin-left":s(D)+"%"}).transition="all "+V+"ms "+I,F}(g,v,x,C)),g===1?(u(f,{transition:"none",opacity:1}),f.offsetWidth,setTimeout(function(){u(f,{transition:"all "+v+"ms linear",opacity:0}),setTimeout(function(){(function(D){h(document.documentElement,"qprogress-busy"),typeof D=="string"&&D.length!==0?h(document.querySelector(D),"qprogress-custom-parent"):h(D,"qprogress-custom-parent");var V,I=document.getElementById("qprogress");I&&(V=I)&&V.parentNode&&V.parentNode.removeChild(V)})(_),k()},v)},v)):setTimeout(k,v)})},d.prototype.isStarted=function(){return typeof this.status=="number"},d.prototype.start=function(){var g=this,b=this.config,y=b.trickle,w=b.trickleSpeed;this.status||this.set(0);var S=function(){setTimeout(function(){g.status&&(g.trickle(),S())},w)};y&&S()},d.prototype.finish=function(g){(g||this.status)&&(this.inc(.3+.5*Math.random()),this.set(1))},d.prototype.trickle=function(){this.inc()},d.prototype.inc=function(g){var b=this.status;return b?b>1?void 0:(typeof g!="number"&&(g=b>=0&&b<.2?.1:b>=.2&&b<.5?.04:b>=.5&&b<.8?.02:b>=.8&&b<.99?.005:0),b=n(b+g,0,.994),this.set(b)):this.start()},d.prototype.isRendered=function(){return!!document.getElementById("qprogress")},d.prototype.render=function(g){if(this.isRendered())return document.getElementById("qprogress");a(document.documentElement,"qprogress-busy");var b=this.config,y=b.template,w=b.barSelector,S=b.pegSelector,E=b.parentNode,_=b.height,C=b.color,f=b.colorful,p=document.createElement("div");p.id="qprogress",p.innerHTML=y;var v=p.querySelector(w),x=v.querySelector(S),k=g?"-100":s(this.status||0),O=typeof E=="string"?document.querySelector(E):E;return u(v,{height:_+"px",backgroundColor:C,transition:"all 0 linear",transform:"translate3d("+k+"%, 0, 0)"}),f?v&&a(v,"colorful-bar"):u(x,{boxShadow:"0 0 10px "+C+", 0 0 5px "+C}),O!==document.body&&a(O,"qprogress-custom-parent"),O.appendChild(p),p},d}()})}(ap)),ap.exports}var sW=oW();const uW=$n(sW);var _d={exports:{}},C1={},m0={exports:{}},g0={exports:{}},Sr={};/** @license React v16.13.1
303
- * react-is.production.min.js
304
- *
305
- * Copyright (c) Facebook, Inc. and its affiliates.
306
- *
307
- * This source code is licensed under the MIT license found in the
308
- * LICENSE file in the root directory of this source tree.
309
- */var q6;function lW(){if(q6)return Sr;q6=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function C(p){if(typeof p=="object"&&p!==null){var v=p.$$typeof;switch(v){case t:switch(p=p.type,p){case u:case l:case n:case i:case a:case d:return p;default:switch(p=p&&p.$$typeof,p){case s:case h:case y:case b:case o:return p;default:return v}}case r:return v}}}function f(p){return C(p)===l}return Sr.AsyncMode=u,Sr.ConcurrentMode=l,Sr.ContextConsumer=s,Sr.ContextProvider=o,Sr.Element=t,Sr.ForwardRef=h,Sr.Fragment=n,Sr.Lazy=y,Sr.Memo=b,Sr.Portal=r,Sr.Profiler=i,Sr.StrictMode=a,Sr.Suspense=d,Sr.isAsyncMode=function(p){return f(p)||C(p)===u},Sr.isConcurrentMode=f,Sr.isContextConsumer=function(p){return C(p)===s},Sr.isContextProvider=function(p){return C(p)===o},Sr.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},Sr.isForwardRef=function(p){return C(p)===h},Sr.isFragment=function(p){return C(p)===n},Sr.isLazy=function(p){return C(p)===y},Sr.isMemo=function(p){return C(p)===b},Sr.isPortal=function(p){return C(p)===r},Sr.isProfiler=function(p){return C(p)===i},Sr.isStrictMode=function(p){return C(p)===a},Sr.isSuspense=function(p){return C(p)===d},Sr.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===l||p===i||p===a||p===d||p===g||typeof p=="object"&&p!==null&&(p.$$typeof===y||p.$$typeof===b||p.$$typeof===o||p.$$typeof===s||p.$$typeof===h||p.$$typeof===S||p.$$typeof===E||p.$$typeof===_||p.$$typeof===w)},Sr.typeOf=C,Sr}var Cr={};/** @license React v16.13.1
310
- * react-is.development.js
311
- *
312
- * Copyright (c) Facebook, Inc. and its affiliates.
313
- *
314
- * This source code is licensed under the MIT license found in the
315
- * LICENSE file in the root directory of this source tree.
316
- */var W6;function cW(){return W6||(W6=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function C(ee){return typeof ee=="string"||typeof ee=="function"||ee===n||ee===l||ee===i||ee===a||ee===d||ee===g||typeof ee=="object"&&ee!==null&&(ee.$$typeof===y||ee.$$typeof===b||ee.$$typeof===o||ee.$$typeof===s||ee.$$typeof===h||ee.$$typeof===S||ee.$$typeof===E||ee.$$typeof===_||ee.$$typeof===w)}function f(ee){if(typeof ee=="object"&&ee!==null){var ve=ee.$$typeof;switch(ve){case t:var se=ee.type;switch(se){case u:case l:case n:case i:case a:case d:return se;default:var fe=se&&se.$$typeof;switch(fe){case s:case h:case y:case b:case o:return fe;default:return ve}}case r:return ve}}}var p=u,v=l,x=s,k=o,O=t,$=h,D=n,V=y,I=b,N=r,F=i,T=a,M=d,j=!1;function H(ee){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(ee)||f(ee)===u}function z(ee){return f(ee)===l}function U(ee){return f(ee)===s}function G(ee){return f(ee)===o}function X(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===t}function K(ee){return f(ee)===h}function ne(ee){return f(ee)===n}function ae(ee){return f(ee)===y}function ie(ee){return f(ee)===b}function de(ee){return f(ee)===r}function pe(ee){return f(ee)===i}function be(ee){return f(ee)===a}function me(ee){return f(ee)===d}Cr.AsyncMode=p,Cr.ConcurrentMode=v,Cr.ContextConsumer=x,Cr.ContextProvider=k,Cr.Element=O,Cr.ForwardRef=$,Cr.Fragment=D,Cr.Lazy=V,Cr.Memo=I,Cr.Portal=N,Cr.Profiler=F,Cr.StrictMode=T,Cr.Suspense=M,Cr.isAsyncMode=H,Cr.isConcurrentMode=z,Cr.isContextConsumer=U,Cr.isContextProvider=G,Cr.isElement=X,Cr.isForwardRef=K,Cr.isFragment=ne,Cr.isLazy=ae,Cr.isMemo=ie,Cr.isPortal=de,Cr.isProfiler=pe,Cr.isStrictMode=be,Cr.isSuspense=me,Cr.isValidElementType=C,Cr.typeOf=f}()),Cr}var Y6;function VR(){return Y6||(Y6=1,process.env.NODE_ENV==="production"?g0.exports=lW():g0.exports=cW()),g0.exports}/*
317
- object-assign
318
- (c) Sindre Sorhus
319
- @license MIT
320
- */var E1,G6;function dW(){if(G6)return E1;G6=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return E1=a()?Object.assign:function(i,o){for(var s,u=n(i),l,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){l=e(s);for(var g=0;g<l.length;g++)r.call(s,l[g])&&(u[l[g]]=s[l[g]])}}return u},E1}var O1,K6;function vw(){if(K6)return O1;K6=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return O1=e,O1}var R1,X6;function UR(){return X6||(X6=1,R1=Function.call.bind(Object.prototype.hasOwnProperty)),R1}var T1,Z6;function fW(){if(Z6)return T1;Z6=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=vw(),r={},n=UR();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var d;try{if(typeof i[h]!="function"){var g=Error((u||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}d=i[h](o,h,u,s,null,t)}catch(y){d=y}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var b=l?l():"";e("Failed "+s+" type: "+d.message+(b??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},T1=a,T1}var P1,J6;function hW(){if(J6)return P1;J6=1;var e=VR(),t=dW(),r=vw(),n=UR(),a=fW(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return P1=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function d(z){var U=z&&(l&&z[l]||z[h]);if(typeof U=="function")return U}var g="<<anonymous>>",b={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:_(),arrayOf:C,element:f(),elementType:p(),instanceOf:v,node:$(),objectOf:k,oneOf:x,oneOfType:O,shape:V,exact:I};function y(z,U){return z===U?z!==0||1/z===1/U:z!==z&&U!==U}function w(z,U){this.message=z,this.data=U&&typeof U=="object"?U:{},this.stack=""}w.prototype=Error.prototype;function S(z){if(process.env.NODE_ENV!=="production")var U={},G=0;function X(ne,ae,ie,de,pe,be,me){if(de=de||g,be=be||ie,me!==r){if(u){var ee=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 ee.name="Invariant Violation",ee}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ve=de+":"+ie;!U[ve]&&G<3&&(i("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[ve]=!0,G++)}}return ae[ie]==null?ne?ae[ie]===null?new w("The "+pe+" `"+be+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new w("The "+pe+" `"+be+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:z(ae,ie,de,pe,be)}var K=X.bind(null,!1);return K.isRequired=X.bind(null,!0),K}function E(z){function U(G,X,K,ne,ae,ie){var de=G[X],pe=T(de);if(pe!==z){var be=M(de);return new w("Invalid "+ne+" `"+ae+"` of type "+("`"+be+"` supplied to `"+K+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return S(U)}function _(){return S(o)}function C(z){function U(G,X,K,ne,ae){if(typeof z!="function")return new w("Property `"+ae+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var ie=G[X];if(!Array.isArray(ie)){var de=T(ie);return new w("Invalid "+ne+" `"+ae+"` of type "+("`"+de+"` supplied to `"+K+"`, expected an array."))}for(var pe=0;pe<ie.length;pe++){var be=z(ie,pe,K,ne,ae+"["+pe+"]",r);if(be instanceof Error)return be}return null}return S(U)}function f(){function z(U,G,X,K,ne){var ae=U[G];if(!s(ae)){var ie=T(ae);return new w("Invalid "+K+" `"+ne+"` of type "+("`"+ie+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return S(z)}function p(){function z(U,G,X,K,ne){var ae=U[G];if(!e.isValidElementType(ae)){var ie=T(ae);return new w("Invalid "+K+" `"+ne+"` of type "+("`"+ie+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return S(z)}function v(z){function U(G,X,K,ne,ae){if(!(G[X]instanceof z)){var ie=z.name||g,de=H(G[X]);return new w("Invalid "+ne+" `"+ae+"` of type "+("`"+de+"` supplied to `"+K+"`, expected ")+("instance of `"+ie+"`."))}return null}return S(U)}function x(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function U(G,X,K,ne,ae){for(var ie=G[X],de=0;de<z.length;de++)if(y(ie,z[de]))return null;var pe=JSON.stringify(z,function(me,ee){var ve=M(ee);return ve==="symbol"?String(ee):ee});return new w("Invalid "+ne+" `"+ae+"` of value `"+String(ie)+"` "+("supplied to `"+K+"`, expected one of "+pe+"."))}return S(U)}function k(z){function U(G,X,K,ne,ae){if(typeof z!="function")return new w("Property `"+ae+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var ie=G[X],de=T(ie);if(de!=="object")return new w("Invalid "+ne+" `"+ae+"` of type "+("`"+de+"` supplied to `"+K+"`, expected an object."));for(var pe in ie)if(n(ie,pe)){var be=z(ie,pe,K,ne,ae+"."+pe,r);if(be instanceof Error)return be}return null}return S(U)}function O(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var U=0;U<z.length;U++){var G=z[U];if(typeof G!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(G)+" at index "+U+"."),o}function X(K,ne,ae,ie,de){for(var pe=[],be=0;be<z.length;be++){var me=z[be],ee=me(K,ne,ae,ie,de,r);if(ee==null)return null;ee.data&&n(ee.data,"expectedType")&&pe.push(ee.data.expectedType)}var ve=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new w("Invalid "+ie+" `"+de+"` supplied to "+("`"+ae+"`"+ve+"."))}return S(X)}function $(){function z(U,G,X,K,ne){return N(U[G])?null:new w("Invalid "+K+" `"+ne+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return S(z)}function D(z,U,G,X,K){return new w((z||"React class")+": "+U+" type `"+G+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function V(z){function U(G,X,K,ne,ae){var ie=G[X],de=T(ie);if(de!=="object")return new w("Invalid "+ne+" `"+ae+"` of type `"+de+"` "+("supplied to `"+K+"`, expected `object`."));for(var pe in z){var be=z[pe];if(typeof be!="function")return D(K,ne,ae,pe,M(be));var me=be(ie,pe,K,ne,ae+"."+pe,r);if(me)return me}return null}return S(U)}function I(z){function U(G,X,K,ne,ae){var ie=G[X],de=T(ie);if(de!=="object")return new w("Invalid "+ne+" `"+ae+"` of type `"+de+"` "+("supplied to `"+K+"`, expected `object`."));var pe=t({},G[X],z);for(var be in pe){var me=z[be];if(n(z,be)&&typeof me!="function")return D(K,ne,ae,be,M(me));if(!me)return new w("Invalid "+ne+" `"+ae+"` key `"+be+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(G[X],null," ")+`
321
- Valid keys: `+JSON.stringify(Object.keys(z),null," "));var ee=me(ie,be,K,ne,ae+"."+be,r);if(ee)return ee}return null}return S(U)}function N(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(N);if(z===null||s(z))return!0;var U=d(z);if(U){var G=U.call(z),X;if(U!==z.entries){for(;!(X=G.next()).done;)if(!N(X.value))return!1}else for(;!(X=G.next()).done;){var K=X.value;if(K&&!N(K[1]))return!1}}else return!1;return!0;default:return!1}}function F(z,U){return z==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function T(z){var U=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":F(U,z)?"symbol":U}function M(z){if(typeof z>"u"||z===null)return""+z;var U=T(z);if(U==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return U}function j(z){var U=M(z);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function H(z){return!z.constructor||!z.constructor.name?g:z.constructor.name}return b.checkPropTypes=a,b.resetWarningCache=a.resetWarningCache,b.PropTypes=b,b},P1}var k1,Q6;function pW(){if(Q6)return k1;Q6=1;var e=vw();function t(){}function r(){}return r.resetWarningCache=t,k1=function(){function n(o,s,u,l,h,d){if(d!==e){var g=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 g.name="Invariant Violation",g}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},k1}var eE;function Gf(){if(eE)return m0.exports;if(eE=1,process.env.NODE_ENV!=="production"){var e=VR(),t=!0;m0.exports=hW()(e.isElement,t)}else m0.exports=pW()();return m0.exports}function qR(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=qR(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Al(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=qR(e))&&(n&&(n+=" "),n+=t);return n}const mW=Object.freeze(Object.defineProperty({__proto__:null,clsx:Al,default:Al},Symbol.toStringTag,{value:"Module"})),gW=Yj(mW);var ln={},ys={},tE;function um(){if(tE)return ys;tE=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.dontSetMe=a,ys.findInArray=e,ys.int=n,ys.isFunction=t,ys.isNum=r;function e(i,o){for(let s=0,u=i.length;s<u;s++)if(o.apply(o,[i[s],s,i]))return i[s]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function r(i){return typeof i=="number"&&!isNaN(i)}function n(i){return parseInt(i,10)}function a(i,o,s){if(i[o])return new Error("Invalid prop ".concat(o," passed to ").concat(s," - do not set this, set it on the child."))}return ys}var _s={},rE;function vW(){if(rE)return _s;rE=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.browserPrefixToKey=r,_s.browserPrefixToStyle=n,_s.default=void 0,_s.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var i;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const s=(i=window.document)===null||i===void 0||(i=i.documentElement)===null||i===void 0?void 0:i.style;if(!s||o in s)return"";for(let u=0;u<e.length;u++)if(r(o,e[u])in s)return e[u];return""}function r(i,o){return o?"".concat(o).concat(a(i)):i}function n(i,o){return o?"-".concat(o.toLowerCase(),"-").concat(i):i}function a(i){let o="",s=!0;for(let u=0;u<i.length;u++)s?(o+=i[u].toUpperCase(),s=!1):i[u]==="-"?s=!0:o+=i[u];return o}return _s.default=t(),_s}var nE;function bw(){if(nE)return ln;nE=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.addClassName=p,ln.addEvent=s,ln.addUserSelectStyles=C,ln.createCSSTransform=y,ln.createSVGTransform=w,ln.getTouch=E,ln.getTouchIdentifier=_,ln.getTranslation=S,ln.innerHeight=d,ln.innerWidth=g,ln.matchesSelector=i,ln.matchesSelectorAndParentsTo=o,ln.offsetXYFromParent=b,ln.outerHeight=l,ln.outerWidth=h,ln.removeClassName=v,ln.removeEvent=u,ln.removeUserSelectStyles=f;var e=um(),t=n(vW());function r(x){if(typeof WeakMap!="function")return null;var k=new WeakMap,O=new WeakMap;return(r=function($){return $?O:k})(x)}function n(x,k){if(x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var O=r(k);if(O&&O.has(x))return O.get(x);var $={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in x)if(V!=="default"&&Object.prototype.hasOwnProperty.call(x,V)){var I=D?Object.getOwnPropertyDescriptor(x,V):null;I&&(I.get||I.set)?Object.defineProperty($,V,I):$[V]=x[V]}return $.default=x,O&&O.set(x,$),$}let a="";function i(x,k){return a||(a=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(O){return(0,e.isFunction)(x[O])})),(0,e.isFunction)(x[a])?x[a](k):!1}function o(x,k,O){let $=x;do{if(i($,k))return!0;if($===O)return!1;$=$.parentNode}while($);return!1}function s(x,k,O,$){if(!x)return;const D={capture:!0,...$};x.addEventListener?x.addEventListener(k,O,D):x.attachEvent?x.attachEvent("on"+k,O):x["on"+k]=O}function u(x,k,O,$){if(!x)return;const D={capture:!0,...$};x.removeEventListener?x.removeEventListener(k,O,D):x.detachEvent?x.detachEvent("on"+k,O):x["on"+k]=null}function l(x){let k=x.clientHeight;const O=x.ownerDocument.defaultView.getComputedStyle(x);return k+=(0,e.int)(O.borderTopWidth),k+=(0,e.int)(O.borderBottomWidth),k}function h(x){let k=x.clientWidth;const O=x.ownerDocument.defaultView.getComputedStyle(x);return k+=(0,e.int)(O.borderLeftWidth),k+=(0,e.int)(O.borderRightWidth),k}function d(x){let k=x.clientHeight;const O=x.ownerDocument.defaultView.getComputedStyle(x);return k-=(0,e.int)(O.paddingTop),k-=(0,e.int)(O.paddingBottom),k}function g(x){let k=x.clientWidth;const O=x.ownerDocument.defaultView.getComputedStyle(x);return k-=(0,e.int)(O.paddingLeft),k-=(0,e.int)(O.paddingRight),k}function b(x,k,O){const D=k===k.ownerDocument.body?{left:0,top:0}:k.getBoundingClientRect(),V=(x.clientX+k.scrollLeft-D.left)/O,I=(x.clientY+k.scrollTop-D.top)/O;return{x:V,y:I}}function y(x,k){const O=S(x,k,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:O}}function w(x,k){return S(x,k,"")}function S(x,k,O){let{x:$,y:D}=x,V="translate(".concat($).concat(O,",").concat(D).concat(O,")");if(k){const I="".concat(typeof k.x=="string"?k.x:k.x+O),N="".concat(typeof k.y=="string"?k.y:k.y+O);V="translate(".concat(I,", ").concat(N,")")+V}return V}function E(x,k){return x.targetTouches&&(0,e.findInArray)(x.targetTouches,O=>k===O.identifier)||x.changedTouches&&(0,e.findInArray)(x.changedTouches,O=>k===O.identifier)}function _(x){if(x.targetTouches&&x.targetTouches[0])return x.targetTouches[0].identifier;if(x.changedTouches&&x.changedTouches[0])return x.changedTouches[0].identifier}function C(x){if(!x)return;let k=x.getElementById("react-draggable-style-el");k||(k=x.createElement("style"),k.type="text/css",k.id="react-draggable-style-el",k.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
322
- `,k.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
323
- `,x.getElementsByTagName("head")[0].appendChild(k)),x.body&&p(x.body,"react-draggable-transparent-selection")}function f(x){if(x)try{if(x.body&&v(x.body,"react-draggable-transparent-selection"),x.selection)x.selection.empty();else{const k=(x.defaultView||window).getSelection();k&&k.type!=="Caret"&&k.removeAllRanges()}}catch{}}function p(x,k){x.classList?x.classList.add(k):x.className.match(new RegExp("(?:^|\\s)".concat(k,"(?!\\S)")))||(x.className+=" ".concat(k))}function v(x,k){x.classList?x.classList.remove(k):x.className=x.className.replace(new RegExp("(?:^|\\s)".concat(k,"(?!\\S)"),"g"),"")}return ln}var Ji={},aE;function WR(){if(aE)return Ji;aE=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.canDragX=a,Ji.canDragY=i,Ji.createCoreData=s,Ji.createDraggableData=u,Ji.getBoundPosition=r,Ji.getControlPosition=o,Ji.snapToGrid=n;var e=um(),t=bw();function r(d,g,b){if(!d.props.bounds)return[g,b];let{bounds:y}=d.props;y=typeof y=="string"?y:l(y);const w=h(d);if(typeof y=="string"){const{ownerDocument:S}=w,E=S.defaultView;let _;if(y==="parent"?_=w.parentNode:_=S.querySelector(y),!(_ instanceof E.HTMLElement))throw new Error('Bounds selector "'+y+'" could not find an element.');const C=_,f=E.getComputedStyle(w),p=E.getComputedStyle(C);y={left:-w.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(f.marginLeft),top:-w.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(f.marginTop),right:(0,t.innerWidth)(C)-(0,t.outerWidth)(w)-w.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(f.marginRight),bottom:(0,t.innerHeight)(C)-(0,t.outerHeight)(w)-w.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(f.marginBottom)}}return(0,e.isNum)(y.right)&&(g=Math.min(g,y.right)),(0,e.isNum)(y.bottom)&&(b=Math.min(b,y.bottom)),(0,e.isNum)(y.left)&&(g=Math.max(g,y.left)),(0,e.isNum)(y.top)&&(b=Math.max(b,y.top)),[g,b]}function n(d,g,b){const y=Math.round(g/d[0])*d[0],w=Math.round(b/d[1])*d[1];return[y,w]}function a(d){return d.props.axis==="both"||d.props.axis==="x"}function i(d){return d.props.axis==="both"||d.props.axis==="y"}function o(d,g,b){const y=typeof g=="number"?(0,t.getTouch)(d,g):null;if(typeof g=="number"&&!y)return null;const w=h(b),S=b.props.offsetParent||w.offsetParent||w.ownerDocument.body;return(0,t.offsetXYFromParent)(y||d,S,b.props.scale)}function s(d,g,b){const y=!(0,e.isNum)(d.lastX),w=h(d);return y?{node:w,deltaX:0,deltaY:0,lastX:g,lastY:b,x:g,y:b}:{node:w,deltaX:g-d.lastX,deltaY:b-d.lastY,lastX:d.lastX,lastY:d.lastY,x:g,y:b}}function u(d,g){const b=d.props.scale;return{node:g.node,x:d.state.x+g.deltaX/b,y:d.state.y+g.deltaY/b,deltaX:g.deltaX/b,deltaY:g.deltaY/b,lastX:d.state.x,lastY:d.state.y}}function l(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function h(d){const g=d.findDOMNode();if(!g)throw new Error("<DraggableCore>: Unmounted during event!");return g}return Ji}var wd={},v0={},iE;function YR(){if(iE)return v0;iE=1,Object.defineProperty(v0,"__esModule",{value:!0}),v0.default=e;function e(){}return v0}var oE;function bW(){if(oE)return wd;oE=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.default=void 0;var e=l(A),t=s(Gf()),r=s(lo),n=bw(),a=WR(),i=um(),o=s(YR());function s(S){return S&&S.__esModule?S:{default:S}}function u(S){if(typeof WeakMap!="function")return null;var E=new WeakMap,_=new WeakMap;return(u=function(C){return C?_:E})(S)}function l(S,E){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var _=u(E);if(_&&_.has(S))return _.get(S);var C={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in S)if(p!=="default"&&Object.prototype.hasOwnProperty.call(S,p)){var v=f?Object.getOwnPropertyDescriptor(S,p):null;v&&(v.get||v.set)?Object.defineProperty(C,p,v):C[p]=S[p]}return C.default=S,_&&_.set(S,C),C}function h(S,E,_){return E=d(E),E in S?Object.defineProperty(S,E,{value:_,enumerable:!0,configurable:!0,writable:!0}):S[E]=_,S}function d(S){var E=g(S,"string");return typeof E=="symbol"?E:String(E)}function g(S,E){if(typeof S!="object"||S===null)return S;var _=S[Symbol.toPrimitive];if(_!==void 0){var C=_.call(S,E);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(S)}const b={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let y=b.mouse,w=class extends e.Component{constructor(){super(...arguments),h(this,"dragging",!1),h(this,"lastX",NaN),h(this,"lastY",NaN),h(this,"touchIdentifier",null),h(this,"mounted",!1),h(this,"handleDragStart",E=>{if(this.props.onMouseDown(E),!this.props.allowAnyClick&&typeof E.button=="number"&&E.button!==0)return!1;const _=this.findDOMNode();if(!_||!_.ownerDocument||!_.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:C}=_;if(this.props.disabled||!(E.target instanceof C.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(E.target,this.props.handle,_)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(E.target,this.props.cancel,_))return;E.type==="touchstart"&&E.preventDefault();const f=(0,n.getTouchIdentifier)(E);this.touchIdentifier=f;const p=(0,a.getControlPosition)(E,f,this);if(p==null)return;const{x:v,y:x}=p,k=(0,a.createCoreData)(this,v,x);(0,o.default)("DraggableCore: handleDragStart: %j",k),(0,o.default)("calling",this.props.onStart),!(this.props.onStart(E,k)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(C),this.dragging=!0,this.lastX=v,this.lastY=x,(0,n.addEvent)(C,y.move,this.handleDrag),(0,n.addEvent)(C,y.stop,this.handleDragStop))}),h(this,"handleDrag",E=>{const _=(0,a.getControlPosition)(E,this.touchIdentifier,this);if(_==null)return;let{x:C,y:f}=_;if(Array.isArray(this.props.grid)){let x=C-this.lastX,k=f-this.lastY;if([x,k]=(0,a.snapToGrid)(this.props.grid,x,k),!x&&!k)return;C=this.lastX+x,f=this.lastY+k}const p=(0,a.createCoreData)(this,C,f);if((0,o.default)("DraggableCore: handleDrag: %j",p),this.props.onDrag(E,p)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const k=document.createEvent("MouseEvents");k.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(k)}return}this.lastX=C,this.lastY=f}),h(this,"handleDragStop",E=>{if(!this.dragging)return;const _=(0,a.getControlPosition)(E,this.touchIdentifier,this);if(_==null)return;let{x:C,y:f}=_;if(Array.isArray(this.props.grid)){let k=C-this.lastX||0,O=f-this.lastY||0;[k,O]=(0,a.snapToGrid)(this.props.grid,k,O),C=this.lastX+k,f=this.lastY+O}const p=(0,a.createCoreData)(this,C,f);if(this.props.onStop(E,p)===!1||this.mounted===!1)return!1;const x=this.findDOMNode();x&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(x.ownerDocument),(0,o.default)("DraggableCore: handleDragStop: %j",p),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,x&&((0,o.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(x.ownerDocument,y.move,this.handleDrag),(0,n.removeEvent)(x.ownerDocument,y.stop,this.handleDragStop))}),h(this,"onMouseDown",E=>(y=b.mouse,this.handleDragStart(E))),h(this,"onMouseUp",E=>(y=b.mouse,this.handleDragStop(E))),h(this,"onTouchStart",E=>(y=b.touch,this.handleDragStart(E))),h(this,"onTouchEnd",E=>(y=b.touch,this.handleDragStop(E)))}componentDidMount(){this.mounted=!0;const E=this.findDOMNode();E&&(0,n.addEvent)(E,b.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const E=this.findDOMNode();if(E){const{ownerDocument:_}=E;(0,n.removeEvent)(_,b.mouse.move,this.handleDrag),(0,n.removeEvent)(_,b.touch.move,this.handleDrag),(0,n.removeEvent)(_,b.mouse.stop,this.handleDragStop),(0,n.removeEvent)(_,b.touch.stop,this.handleDragStop),(0,n.removeEvent)(E,b.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(_)}}findDOMNode(){var E,_;return(E=this.props)!==null&&E!==void 0&&E.nodeRef?(_=this.props)===null||_===void 0||(_=_.nodeRef)===null||_===void 0?void 0:_.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return wd.default=w,h(w,"displayName","DraggableCore"),h(w,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(S,E){if(S[E]&&S[E].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),h(w,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),wd}var sE;function yW(){return sE||(sE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=g(A),r=h(Gf()),n=h(lo),a=h(gW),i=bw(),o=WR(),s=um(),u=h(bW()),l=h(YR());function h(_){return _&&_.__esModule?_:{default:_}}function d(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,f=new WeakMap;return(d=function(p){return p?f:C})(_)}function g(_,C){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var f=d(C);if(f&&f.has(_))return f.get(_);var p={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in _)if(x!=="default"&&Object.prototype.hasOwnProperty.call(_,x)){var k=v?Object.getOwnPropertyDescriptor(_,x):null;k&&(k.get||k.set)?Object.defineProperty(p,x,k):p[x]=_[x]}return p.default=_,f&&f.set(_,p),p}function b(){return b=Object.assign?Object.assign.bind():function(_){for(var C=1;C<arguments.length;C++){var f=arguments[C];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(_[p]=f[p])}return _},b.apply(this,arguments)}function y(_,C,f){return C=w(C),C in _?Object.defineProperty(_,C,{value:f,enumerable:!0,configurable:!0,writable:!0}):_[C]=f,_}function w(_){var C=S(_,"string");return typeof C=="symbol"?C:String(C)}function S(_,C){if(typeof _!="object"||_===null)return _;var f=_[Symbol.toPrimitive];if(f!==void 0){var p=f.call(_,C);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(_)}class E extends t.Component{static getDerivedStateFromProps(C,f){let{position:p}=C,{prevPropsPosition:v}=f;return p&&(!v||p.x!==v.x||p.y!==v.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:p,prevPropsPosition:v}),{x:p.x,y:p.y,prevPropsPosition:{...p}}):null}constructor(C){super(C),y(this,"onDragStart",(f,p)=>{if((0,l.default)("Draggable: onDragStart: %j",p),this.props.onStart(f,(0,o.createDraggableData)(this,p))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(f,p)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",p);const v=(0,o.createDraggableData)(this,p),x={x:v.x,y:v.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:$}=x;x.x+=this.state.slackX,x.y+=this.state.slackY;const[D,V]=(0,o.getBoundPosition)(this,x.x,x.y);x.x=D,x.y=V,x.slackX=this.state.slackX+(O-x.x),x.slackY=this.state.slackY+($-x.y),v.x=x.x,v.y=x.y,v.deltaX=x.x-this.state.x,v.deltaY=x.y-this.state.y}if(this.props.onDrag(f,v)===!1)return!1;this.setState(x)}),y(this,"onDragStop",(f,p)=>{if(!this.state.dragging||this.props.onStop(f,(0,o.createDraggableData)(this,p))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",p);const x={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:$}=this.props.position;x.x=O,x.y=$}this.setState(x)}),this.state={dragging:!1,dragged:!1,x:C.position?C.position.x:C.defaultPosition.x,y:C.position?C.position.y:C.defaultPosition.y,prevPropsPosition:{...C.position},slackX:0,slackY:0,isElementSVG:!1},C.position&&!(C.onDrag||C.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var C,f;return(C=(f=this.props)===null||f===void 0||(f=f.nodeRef)===null||f===void 0?void 0:f.current)!==null&&C!==void 0?C:n.default.findDOMNode(this)}render(){const{axis:C,bounds:f,children:p,defaultPosition:v,defaultClassName:x,defaultClassNameDragging:k,defaultClassNameDragged:O,position:$,positionOffset:D,scale:V,...I}=this.props;let N={},F=null;const M=!!!$||this.state.dragging,j=$||v,H={x:(0,o.canDragX)(this)&&M?this.state.x:j.x,y:(0,o.canDragY)(this)&&M?this.state.y:j.y};this.state.isElementSVG?F=(0,i.createSVGTransform)(H,D):N=(0,i.createCSSTransform)(H,D);const z=(0,a.default)(p.props.className||"",x,{[k]:this.state.dragging,[O]:this.state.dragged});return t.createElement(u.default,b({},I,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(p),{className:z,style:{...p.props.style,...N},transform:F}))}}e.default=E,y(E,"displayName","Draggable"),y(E,"propTypes",{...u.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),y(E,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(C1)),C1}var uE;function yw(){if(uE)return _d.exports;uE=1;const{default:e,DraggableCore:t}=yW();return _d.exports=e,_d.exports.default=e,_d.exports.DraggableCore=t,_d.exports}var _W=yw();const wW=$n(_W),{confirm:xW}=ue.Modal;function GR(e){const{title:t,content:r,onOk:n,onCancel:a,isShowBtnIcon:i=!0}=e;return{...e,title:B.jsx("div",{title:_e.isString(t)?t:"",children:t}),content:B.jsx("div",{title:_e.isString(r)?r:"",children:r}),mask:!1,wrapClassName:"twiceaffirm",className:`${i?"":rf.notBtnIcon} ${rf.confirmModal}`,width:"480px",bodyStyle:{padding:"12px"},icon:B.jsx(Dt,{type:"uploadFail",style:{fontSize:"18px",color:"#ffb200",marginRight:"6px",marginTop:"2px"}}),okButtonProps:{icon:B.jsx(Dt,{type:"pop-upconfirm",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"0 !important",boxShadow:"none"}},cancelButtonProps:{icon:B.jsx(Dt,{type:"pop-close",style:{cursor:"pointer",fontSize:"13px"}}),className:"modelok",style:{color:"#000",background:"#fff",height:"22px",border:"none",boxShadow:"none"}},onOk:n,onCancel:()=>{a==null||a()}}}const $u=e=>{const[t,r]=A.useState(null),[n,a]=A.useState(!0),[i,o]=A.useState({left:0,right:0,top:0,bottom:0}),s=A.useRef(),u=!!e.styleUnify;Wf(()=>{const h=document.getElementById("qprogressElement");if(h&&!t){const d=new uW({minimum:.02,height:4,parentNode:h});r(d)}}),im(()=>{t&&(t.finish(),r(null))}),A.useEffect(()=>{e.progressPercent&&t&&(1>e.progressPercent?t.set(e.progressPercent):t.finish())},[e.progressPercent]);const l=(h,d)=>{var w;const{clientWidth:g,clientHeight:b}=window.document.documentElement,y=(w=s.current)==null?void 0:w.getBoundingClientRect();y&&o({left:-y.left+d.x,right:g-(y.right-d.x),top:-y.top+d.y,bottom:b-(y.bottom-d.y)})};return B.jsxs(ue.Modal,{destroyOnClose:!0,okText:e.okText||J("sys.label.confirm",{placeholder:"确定"}),okButtonProps:{style:{height:"30px",minWidth:"72px"}},cancelButtonProps:{style:{minWidth:"72px",height:"30px"}},getContainer:()=>document.getElementById("ria-frontend")||document.body,title:B.jsx("div",{style:{width:"100%",display:"flex",cursor:"move"},onMouseOver:()=>{n&&a(!1)},onMouseOut:()=>{a(!0)},onFocus:()=>{},onBlur:()=>{},children:e.modalTitle}),modalRender:h=>B.jsx(wW,{disabled:n,bounds:i,onStart:(d,g)=>l(d,g),children:B.jsx("div",{ref:s,children:h})}),..._e.omit(e,"visible"),wrapClassName:`modalClassName ${rf.wrapClassName} ${e.wrapClassName??""}`,className:`${u?rf.styleUnify:""} ${e.className??""}`,visible:e.visible,children:[B.jsx("div",{className:rf.qprogress,id:"qprogressElement"}),B.jsx("div",{onDoubleClick:h=>h.stopPropagation(),children:e.children})]})},SW="_main_104mn_1",CW={main:SW};var $1={},A1={},xd={exports:{}},lu={exports:{}},EW=lu.exports,lE;function OW(){return lE||(lE=1,(function(){var e,t,r,n,a,i;typeof performance<"u"&&performance!==null&&performance.now?lu.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(lu.exports=function(){return(e()-a)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),i=process.uptime()*1e9,a=n-i):Date.now?(lu.exports=function(){return Date.now()-r},r=Date.now()):(lu.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(EW)),lu.exports}var cE;function RW(){if(cE)return xd.exports;cE=1;for(var e=OW(),t=typeof window>"u"?Mi:window,r=["moz","webkit"],n="AnimationFrame",a=t["request"+n],i=t["cancel"+n]||t["cancelRequest"+n],o=0;!a&&o<r.length;o++)a=t[r[o]+"Request"+n],i=t[r[o]+"Cancel"+n]||t[r[o]+"CancelRequest"+n];if(!a||!i){var s=0,u=0,l=[],h=1e3/60;a=function(d){if(l.length===0){var g=e(),b=Math.max(0,h-(g-s));s=b+g,setTimeout(function(){var y=l.slice(0);l.length=0;for(var w=0;w<y.length;w++)if(!y[w].cancelled)try{y[w].callback(s)}catch(S){setTimeout(function(){throw S},0)}},Math.round(b))}return l.push({handle:++u,callback:d,cancelled:!1}),u},i=function(d){for(var g=0;g<l.length;g++)l[g].handle===d&&(l[g].cancelled=!0)}}return xd.exports=function(d){return a.call(t,d)},xd.exports.cancel=function(){i.apply(t,arguments)},xd.exports.polyfill=function(d){d||(d=t),d.requestAnimationFrame=a,d.cancelAnimationFrame=i},xd.exports}var Sd={exports:{}},D1,dE;function TW(){if(dE)return D1;dE=1;var e=null,t=["Webkit","Moz","O","ms"];return D1=function(n){e||(e=document.createElement("div"));var a=e.style;if(n in a)return n;for(var i=n.charAt(0).toUpperCase()+n.slice(1),o=t.length;o>=0;o--){var s=t[o]+i;if(s in a)return s}return!1},D1}var M1,fE;function PW(){if(fE)return M1;fE=1,M1=n;var e=/\s/,t=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;function n(u){return e.test(u)?u.toLowerCase():t.test(u)?(i(u)||u).toLowerCase():r.test(u)?s(u).toLowerCase():u.toLowerCase()}var a=/[\W_]+(.|$)/g;function i(u){return u.replace(a,function(l,h){return h?" "+h:""})}var o=/(.)([A-Z]+)/g;function s(u){return u.replace(o,function(l,h,d){return h+" "+d.toLowerCase().split("").join(" ")})}return M1}var N1,hE;function kW(){if(hE)return N1;hE=1;var e=PW();N1=t;function t(r){return e(r).replace(/[\W_]+(.|$)/g,function(n,a){return a?" "+a:""}).trim()}return N1}var I1,pE;function $W(){if(pE)return I1;pE=1;var e=kW();I1=t;function t(r){return e(r).replace(/\s(\w)/g,function(n,a){return a.toUpperCase()})}return I1}var F1,mE;function AW(){if(mE)return F1;mE=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return F1=function(t,r){return typeof r=="number"&&!e[t]?r+"px":r},F1}var gE;function KR(){if(gE)return Sd.exports;gE=1;var e=TW(),t=$W(),r={float:"cssFloat"},n=AW();function a(u,l,h){var d=r[l];if(typeof d>"u"&&(d=o(l)),d){if(h===void 0)return u.style[d];u.style[d]=n(d,h)}}function i(u,l){for(var h in l)l.hasOwnProperty(h)&&a(u,h,l[h])}function o(u){var l=t(u),h=e(l);return r[l]=r[u]=r[h]=h,h}function s(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):a(arguments[0],arguments[1],arguments[2])}return Sd.exports=s,Sd.exports.set=s,Sd.exports.get=function(u,l){return Array.isArray(l)?l.reduce(function(h,d){return h[d]=a(u,d||""),h},{}):a(u,l||"")},Sd.exports}var j1={},vE;function DW(){return vE||(vE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return typeof r=="string"}}(j1)),j1}var L1={},bE;function MW(){return bE||(bE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=KR(),r=n(t);function n(o){return o&&o.__esModule?o:{default:o}}var a=!1;function i(){if(a!==!1)return a;if(typeof document<"u"){var o=document.createElement("div");(0,r.default)(o,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(o),a=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}else a=0;return a||0}}(L1)),L1}var z1={},yE;function NW(){return yE||(yE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(z1)),z1}var B1={},_E;function IW(){return _E||(_E=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientWidth,a=getComputedStyle(r),i=a.paddingLeft,o=a.paddingRight;return n-parseFloat(i)-parseFloat(o)}}(B1)),B1}var H1={},wE;function FW(){return wE||(wE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var n=r.clientHeight,a=getComputedStyle(r),i=a.paddingTop,o=a.paddingBottom;return n-parseFloat(i)-parseFloat(o)}}(H1)),H1}var _a={},xE;function jW(){return xE||(xE=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},_a.containerStyleAutoHeight={height:"auto"},_a.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},_a.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},_a.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},_a.trackHorizontalStyleDefault={position:"absolute",height:6},_a.trackVerticalStyleDefault={position:"absolute",width:6},_a.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},_a.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},_a.disableSelectStyle={userSelect:"none"},_a.disableSelectStyleReset={userSelect:""}),_a}var ws={},SE;function LW(){if(SE)return ws;SE=1,Object.defineProperty(ws,"__esModule",{value:!0});var e=Object.assign||function(h){for(var d=1;d<arguments.length;d++){var g=arguments[d];for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(h[b]=g[b])}return h};ws.renderViewDefault=i,ws.renderTrackHorizontalDefault=o,ws.renderTrackVerticalDefault=s,ws.renderThumbHorizontalDefault=u,ws.renderThumbVerticalDefault=l;var t=A,r=n(t);function n(h){return h&&h.__esModule?h:{default:h}}function a(h,d){var g={};for(var b in h)d.indexOf(b)>=0||Object.prototype.hasOwnProperty.call(h,b)&&(g[b]=h[b]);return g}function i(h){return r.default.createElement("div",h)}function o(h){var d=h.style,g=a(h,["style"]),b=e({},d,{right:2,bottom:2,left:2,borderRadius:3});return r.default.createElement("div",e({style:b},g))}function s(h){var d=h.style,g=a(h,["style"]),b=e({},d,{right:2,bottom:2,top:2,borderRadius:3});return r.default.createElement("div",e({style:b},g))}function u(h){var d=h.style,g=a(h,["style"]),b=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:b},g))}function l(h){var d=h.style,g=a(h,["style"]),b=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return r.default.createElement("div",e({style:b},g))}return ws}var CE;function zW(){return CE||(CE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(V){for(var I=1;I<arguments.length;I++){var N=arguments[I];for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(V[F]=N[F])}return V},r=function(){function V(I,N){for(var F=0;F<N.length;F++){var T=N[F];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(I,T.key,T)}}return function(I,N,F){return N&&V(I.prototype,N),F&&V(I,F),I}}(),n=RW(),a=v(n),i=KR(),o=v(i),s=A,u=Gf(),l=v(u),h=DW(),d=v(h),g=MW(),b=v(g),y=NW(),w=v(y),S=IW(),E=v(S),_=FW(),C=v(_),f=jW(),p=LW();function v(V){return V&&V.__esModule?V:{default:V}}function x(V,I){var N={};for(var F in V)I.indexOf(F)>=0||Object.prototype.hasOwnProperty.call(V,F)&&(N[F]=V[F]);return N}function k(V,I){if(!(V instanceof I))throw new TypeError("Cannot call a class as a function")}function O(V,I){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:V}function $(V,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);V.prototype=Object.create(I&&I.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(V,I):V.__proto__=I)}var D=function(V){$(I,V);function I(N){var F;k(this,I);for(var T=arguments.length,M=Array(T>1?T-1:0),j=1;j<T;j++)M[j-1]=arguments[j];var H=O(this,(F=I.__proto__||Object.getPrototypeOf(I)).call.apply(F,[this,N].concat(M)));return H.getScrollLeft=H.getScrollLeft.bind(H),H.getScrollTop=H.getScrollTop.bind(H),H.getScrollWidth=H.getScrollWidth.bind(H),H.getScrollHeight=H.getScrollHeight.bind(H),H.getClientWidth=H.getClientWidth.bind(H),H.getClientHeight=H.getClientHeight.bind(H),H.getValues=H.getValues.bind(H),H.getThumbHorizontalWidth=H.getThumbHorizontalWidth.bind(H),H.getThumbVerticalHeight=H.getThumbVerticalHeight.bind(H),H.getScrollLeftForOffset=H.getScrollLeftForOffset.bind(H),H.getScrollTopForOffset=H.getScrollTopForOffset.bind(H),H.scrollLeft=H.scrollLeft.bind(H),H.scrollTop=H.scrollTop.bind(H),H.scrollToLeft=H.scrollToLeft.bind(H),H.scrollToTop=H.scrollToTop.bind(H),H.scrollToRight=H.scrollToRight.bind(H),H.scrollToBottom=H.scrollToBottom.bind(H),H.handleTrackMouseEnter=H.handleTrackMouseEnter.bind(H),H.handleTrackMouseLeave=H.handleTrackMouseLeave.bind(H),H.handleHorizontalTrackMouseDown=H.handleHorizontalTrackMouseDown.bind(H),H.handleVerticalTrackMouseDown=H.handleVerticalTrackMouseDown.bind(H),H.handleHorizontalThumbMouseDown=H.handleHorizontalThumbMouseDown.bind(H),H.handleVerticalThumbMouseDown=H.handleVerticalThumbMouseDown.bind(H),H.handleWindowResize=H.handleWindowResize.bind(H),H.handleScroll=H.handleScroll.bind(H),H.handleDrag=H.handleDrag.bind(H),H.handleDragEnd=H.handleDragEnd.bind(H),H.state={didMountUniversal:!1},H}return r(I,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var F=this.props.universal;F&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,n.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var F=this.view||{},T=F.scrollLeft,M=T===void 0?0:T,j=F.scrollTop,H=j===void 0?0:j,z=F.scrollWidth,U=z===void 0?0:z,G=F.scrollHeight,X=G===void 0?0:G,K=F.clientWidth,ne=K===void 0?0:K,ae=F.clientHeight,ie=ae===void 0?0:ae;return{left:M/(U-ne)||0,top:H/(X-ie)||0,scrollLeft:M,scrollTop:H,scrollWidth:U,scrollHeight:X,clientWidth:ne,clientHeight:ie}}},{key:"getThumbHorizontalWidth",value:function(){var F=this.props,T=F.thumbSize,M=F.thumbMinSize,j=this.view,H=j.scrollWidth,z=j.clientWidth,U=(0,E.default)(this.trackHorizontal),G=Math.ceil(z/H*U);return U===G?0:T||Math.max(G,M)}},{key:"getThumbVerticalHeight",value:function(){var F=this.props,T=F.thumbSize,M=F.thumbMinSize,j=this.view,H=j.scrollHeight,z=j.clientHeight,U=(0,C.default)(this.trackVertical),G=Math.ceil(z/H*U);return U===G?0:T||Math.max(G,M)}},{key:"getScrollLeftForOffset",value:function(F){var T=this.view,M=T.scrollWidth,j=T.clientWidth,H=(0,E.default)(this.trackHorizontal),z=this.getThumbHorizontalWidth();return F/(H-z)*(M-j)}},{key:"getScrollTopForOffset",value:function(F){var T=this.view,M=T.scrollHeight,j=T.clientHeight,H=(0,C.default)(this.trackVertical),z=this.getThumbVerticalHeight();return F/(H-z)*(M-j)}},{key:"scrollLeft",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=F)}},{key:"scrollTop",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=F)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var F=this.view,T=this.trackHorizontal,M=this.trackVertical,j=this.thumbHorizontal,H=this.thumbVertical;F.addEventListener("scroll",this.handleScroll),(0,b.default)()&&(T.addEventListener("mouseenter",this.handleTrackMouseEnter),T.addEventListener("mouseleave",this.handleTrackMouseLeave),T.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),M.addEventListener("mouseenter",this.handleTrackMouseEnter),M.addEventListener("mouseleave",this.handleTrackMouseLeave),M.addEventListener("mousedown",this.handleVerticalTrackMouseDown),j.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),H.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var F=this.view,T=this.trackHorizontal,M=this.trackVertical,j=this.thumbHorizontal,H=this.thumbVertical;F.removeEventListener("scroll",this.handleScroll),(0,b.default)()&&(T.removeEventListener("mouseenter",this.handleTrackMouseEnter),T.removeEventListener("mouseleave",this.handleTrackMouseLeave),T.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),M.removeEventListener("mouseenter",this.handleTrackMouseEnter),M.removeEventListener("mouseleave",this.handleTrackMouseLeave),M.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),j.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),H.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(F){var T=this,M=this.props,j=M.onScroll,H=M.onScrollFrame;j&&j(F),this.update(function(z){var U=z.scrollLeft,G=z.scrollTop;T.viewScrollLeft=U,T.viewScrollTop=G,H&&H(z)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var F=this.props.onScrollStart;F&&F(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var F=this.props.autoHide;F&&this.showTracks()}},{key:"handleScrollStop",value:function(){var F=this.props.onScrollStop;F&&F(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(F){F.preventDefault();var T=F.target,M=F.clientX,j=T.getBoundingClientRect(),H=j.left,z=this.getThumbHorizontalWidth(),U=Math.abs(H-M)-z/2;this.view.scrollLeft=this.getScrollLeftForOffset(U)}},{key:"handleVerticalTrackMouseDown",value:function(F){F.preventDefault();var T=F.target,M=F.clientY,j=T.getBoundingClientRect(),H=j.top,z=this.getThumbVerticalHeight(),U=Math.abs(H-M)-z/2;this.view.scrollTop=this.getScrollTopForOffset(U)}},{key:"handleHorizontalThumbMouseDown",value:function(F){F.preventDefault(),this.handleDragStart(F);var T=F.target,M=F.clientX,j=T.offsetWidth,H=T.getBoundingClientRect(),z=H.left;this.prevPageX=j-(M-z)}},{key:"handleVerticalThumbMouseDown",value:function(F){F.preventDefault(),this.handleDragStart(F);var T=F.target,M=F.clientY,j=T.offsetHeight,H=T.getBoundingClientRect(),z=H.top;this.prevPageY=j-(M-z)}},{key:"setupDragging",value:function(){(0,o.default)(document.body,f.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=w.default}},{key:"teardownDragging",value:function(){(0,o.default)(document.body,f.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(F){this.dragging=!0,F.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(F){if(this.prevPageX){var T=F.clientX,M=this.trackHorizontal.getBoundingClientRect(),j=M.left,H=this.getThumbHorizontalWidth(),z=H-this.prevPageX,U=-j+T-z;this.view.scrollLeft=this.getScrollLeftForOffset(U)}if(this.prevPageY){var G=F.clientY,X=this.trackVertical.getBoundingClientRect(),K=X.top,ne=this.getThumbVerticalHeight(),ae=ne-this.prevPageY,ie=-K+G-ae;this.view.scrollTop=this.getScrollTopForOffset(ie)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var F=this.props.autoHide;F&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var F=this.props.autoHide;F&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,o.default)(this.trackHorizontal,{opacity:1}),(0,o.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var F=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var T=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,o.default)(F.trackHorizontal,{opacity:0}),(0,o.default)(F.trackVertical,{opacity:0})},T)}}},{key:"detectScrolling",value:function(){var F=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){F.lastViewScrollLeft===F.viewScrollLeft&&F.lastViewScrollTop===F.viewScrollTop&&(clearInterval(F.detectScrollingInterval),F.scrolling=!1,F.handleScrollStop()),F.lastViewScrollLeft=F.viewScrollLeft,F.lastViewScrollTop=F.viewScrollTop},100))}},{key:"raf",value:function(F){var T=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)(function(){T.requestFrame=void 0,F()})}},{key:"update",value:function(F){var T=this;this.raf(function(){return T._update(F)})}},{key:"_update",value:function(F){var T=this.props,M=T.onUpdate,j=T.hideTracksWhenNotNeeded,H=this.getValues();if((0,b.default)()){var z=H.scrollLeft,U=H.clientWidth,G=H.scrollWidth,X=(0,E.default)(this.trackHorizontal),K=this.getThumbHorizontalWidth(),ne=z/(G-U)*(X-K),ae={width:K,transform:"translateX("+ne+"px)"},ie=H.scrollTop,de=H.clientHeight,pe=H.scrollHeight,be=(0,C.default)(this.trackVertical),me=this.getThumbVerticalHeight(),ee=ie/(pe-de)*(be-me),ve={height:me,transform:"translateY("+ee+"px)"};if(j){var se={visibility:G>U?"visible":"hidden"},fe={visibility:pe>de?"visible":"hidden"};(0,o.default)(this.trackHorizontal,se),(0,o.default)(this.trackVertical,fe)}(0,o.default)(this.thumbHorizontal,ae),(0,o.default)(this.thumbVertical,ve)}M&&M(H),typeof F=="function"&&F(H)}},{key:"render",value:function(){var F=this,T=(0,b.default)(),M=this.props;M.onScroll,M.onScrollFrame,M.onScrollStart,M.onScrollStop,M.onUpdate;var j=M.renderView,H=M.renderTrackHorizontal,z=M.renderTrackVertical,U=M.renderThumbHorizontal,G=M.renderThumbVertical,X=M.tagName;M.hideTracksWhenNotNeeded;var K=M.autoHide;M.autoHideTimeout;var ne=M.autoHideDuration;M.thumbSize,M.thumbMinSize;var ae=M.universal,ie=M.autoHeight,de=M.autoHeightMin,pe=M.autoHeightMax,be=M.style,me=M.children,ee=x(M,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),ve=this.state.didMountUniversal,se=t({},f.containerStyleDefault,ie&&t({},f.containerStyleAutoHeight,{minHeight:de,maxHeight:pe}),be),fe=t({},f.viewStyleDefault,{marginRight:T?-T:0,marginBottom:T?-T:0},ie&&t({},f.viewStyleAutoHeight,{minHeight:(0,d.default)(de)?"calc("+de+" + "+T+"px)":de+T,maxHeight:(0,d.default)(pe)?"calc("+pe+" + "+T+"px)":pe+T}),ie&&ae&&!ve&&{minHeight:de,maxHeight:pe},ae&&!ve&&f.viewStyleUniversalInitial),he={transition:"opacity "+ne+"ms",opacity:0},ke=t({},f.trackHorizontalStyleDefault,K&&he,(!T||ae&&!ve)&&{display:"none"}),Te=t({},f.trackVerticalStyleDefault,K&&he,(!T||ae&&!ve)&&{display:"none"});return(0,s.createElement)(X,t({},ee,{style:se,ref:function($e){F.container=$e}}),[(0,s.cloneElement)(j({style:fe}),{key:"view",ref:function($e){F.view=$e}},me),(0,s.cloneElement)(H({style:ke}),{key:"trackHorizontal",ref:function($e){F.trackHorizontal=$e}},(0,s.cloneElement)(U({style:f.thumbHorizontalStyleDefault}),{ref:function($e){F.thumbHorizontal=$e}})),(0,s.cloneElement)(z({style:Te}),{key:"trackVertical",ref:function($e){F.trackVertical=$e}},(0,s.cloneElement)(G({style:f.thumbVerticalStyleDefault}),{ref:function($e){F.thumbVertical=$e}}))])}}]),I}(s.Component);e.default=D,D.propTypes={onScroll:l.default.func,onScrollFrame:l.default.func,onScrollStart:l.default.func,onScrollStop:l.default.func,onUpdate:l.default.func,renderView:l.default.func,renderTrackHorizontal:l.default.func,renderTrackVertical:l.default.func,renderThumbHorizontal:l.default.func,renderThumbVertical:l.default.func,tagName:l.default.string,thumbSize:l.default.number,thumbMinSize:l.default.number,hideTracksWhenNotNeeded:l.default.bool,autoHide:l.default.bool,autoHideTimeout:l.default.number,autoHideDuration:l.default.number,autoHeight:l.default.bool,autoHeightMin:l.default.oneOfType([l.default.number,l.default.string]),autoHeightMax:l.default.oneOfType([l.default.number,l.default.string]),universal:l.default.bool,style:l.default.object,children:l.default.node},D.defaultProps={renderView:p.renderViewDefault,renderTrackHorizontal:p.renderTrackHorizontalDefault,renderTrackVertical:p.renderTrackVerticalDefault,renderThumbHorizontal:p.renderThumbHorizontalDefault,renderThumbVertical:p.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(A1)),A1}var EE;function BW(){return EE||(EE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=zW(),r=n(t);function n(a){return a&&a.__esModule?a:{default:a}}e.default=r.default,e.Scrollbars=r.default}($1)),$1}var HW=BW();const VW=e=>B.jsx(HW.Scrollbars,{autoHide:!0,style:{..._e.merge({overflow:"auto",height:"100%"},e.style)},...e,className:ge(CW.main,e.className),renderThumbVertical:({style:t,...r})=>{const n={borderRadius:"0px",background:"#e0e0e0"};return B.jsx("div",{style:{...t,...n},...r})},children:e.children}),b0={"error-box":"_error-box_1uv1u_1","err-color":"_err-color_1uv1u_12","err-box-list":"_err-box-list_1uv1u_16","custom-button":"_custom-button_1uv1u_22"},UW=e=>B.jsx("div",{className:b0["error-box"],children:B.jsxs("div",{className:b0["err-box-list"],children:[B.jsx("div",{children:B.jsx(Dt,{style:{fontSize:"45px"},isBackend:!0,type:"a-front-previewerror",className:b0["err-color"]})}),B.jsx("div",{style:{marginTop:"20px",color:"#6c81b1",fontSize:"14px"},children:e.children||J("sys.error.loading",{placeholder:"加载错误"})}),B.jsx("div",{style:{marginTop:"30px"},children:B.jsx("div",{className:b0["custom-button"],onClick:()=>{location.reload()},children:J("sys.action.refresh",{placeholder:"刷新"})})})]})}),qW="_main_1jot0_1",WW={main:qW},YW=e=>{const t=async(n,a)=>{const i=e.menu.items[a];if(i.request){i.request.middleware&&await i.request.middleware();let o=await e.request(i.request.url,i.request.options);ue.message.success(o.message),i.request.onSuccess&&i.request.onSuccess()}e.menu.onClick&&e.menu.onClick({...n,key:a.toString()})},r=B.jsx(ue.Menu,{..._e.omit(e.menu,["items"]),onClick:()=>{},children:e.menu.items.map((n,a)=>n.confirm?B.jsx(ue.Popconfirm,{disabled:e.disabled,okText:J("sys.action.confirm",{placeholder:"确认"}),cancelText:J("sys.action.cancel",{placeholder:"取消"}),onConfirm:()=>{t(n,a)},...n.confirm,children:B.jsx(ue.Menu.Item,{onClick:()=>{},...n},a)},n.key||a):B.jsx(ue.Menu.Item,{onClick:()=>{t(n,a)},...n},n.key||a))});return B.jsx(ue.Dropdown,{overlayStyle:{...e.style},overlayClassName:e.className,className:ge(WW.main),overlay:r,..._e.omit(e,["menu"])})},Kf=({valueType:e="12",...t})=>{const r=Sa({defaultValue1:"",defaultValue2:""});return xH(()=>{t.onBlur&&t.onBlur()},()=>document.getElementById("use-click-away-button")),A.useEffect(()=>{t.value?(r.defaultValue1=t.value.split("~%~")[0]||"",r.defaultValue2=t.value.split("~%~")[1]||""):(r.defaultValue1="",r.defaultValue2="")},[t.value]),B.jsx("div",{id:"use-click-away-button",children:B.jsxs(ue.Space.Compact,{style:{width:"100%"},children:[e=="12"&&B.jsx(ue.Input,{...t,disabled:t.readOnly,value:r.defaultValue1,size:t.size,style:{width:"calc(100% - 100px)"},onChange:n=>{var i,o;let a;r.defaultValue1=((i=n.target)==null?void 0:i.value)||"",r.defaultValue1?a=`${((o=n.target)==null?void 0:o.value)||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),e=="13"&&B.jsx(ue.InputNumber,{...t,disabled:t.readOnly,value:r.defaultValue1,style:{width:"calc(100% - 100px)"},size:t.size,maxLength:void 0,onChange:n=>{let a;r.defaultValue1=n||"",r.defaultValue1?a=`${n||""}~%~${r.defaultValue2||""}`:r.defaultValue2&&(a=`~%~${r.defaultValue2||""}`),t.onChange&&t.onChange(a)},onBlur:n=>{n.stopPropagation()}}),B.jsx(ue.Select,{allowClear:!0,value:r.defaultValue2,disabled:t.readOnly,options:t.options,style:{width:"100px"},size:t.size,onChange:n=>{r.defaultValue2=n||"";let a="";(r.defaultValue1||n)&&(a=`${r.defaultValue1||""}~%~${n||""}`),t.onChange&&t.onChange(a)}})]})})},GW=e=>{const[t,r]=A.useState(!1);bH(async()=>{const a=["/filePreview/plugin.js","/filePreview/luckyexcel.umd.js","/filePreview/luckysheet.umd.js"],i=s=>new Promise((u,l)=>{const h=document.createElement("script");h.src=`${s}`,h.onload=u,h.onerror=l,document.head.appendChild(h)});await(async()=>{for(const s of a)await i(s)})(),n()},[]);const n=()=>{function a(i){const o=new XMLHttpRequest;o.open("GET",i,!0),o.onerror=()=>{},o.responseType="blob",o.onload=()=>{if(o.status===200){var s=new File([o.response],"",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",lastModified:Date.now()});window.LuckyExcel.transformExcelToLucky(s,function(u){u.sheets==null||u.sheets.length==0||(window.luckysheet.create({container:"luckysheet",showinfobar:!1,data:u.sheets,title:u.info.name,enableAddRow:!1,allowCopy:!1,loading:{},showtoolbar:!1,allowEdit:!1,enableAddCol:!1,userInfo:!1,showRowBar:!1,showColumnBar:!1,sheetFormulaBar:!1,enableAddBackTop:!1,showsheetbarConfig:{add:!1,menu:!1,sheet:!0}}),document.addEventListener("copy",l=>{window.luckysheet.enterEditMode(),window.luckysheet.exitEditMode()}),r(!0))})}},o.send()}a(e.url)};return B.jsx("div",{id:"luckysheet",style:{visibility:t?"visible":"hidden",margin:"0px",padding:"0px",position:"absolute",width:"100%",left:"0px",top:"0px",bottom:"0px",outline:"none"}})},KW={},XR=A.forwardRef((e,t)=>{const[r]=ue.Form.useForm();return A.useImperativeHandle(t,()=>({...r})),B.jsx("div",{className:ge(KW.main,e.className),style:e.style,children:B.jsx(ue.Form,{form:r,layout:"vertical",...e,children:e.children})})}),XW="_main_1rp4h_1",ZW={main:XW};class Ul{static getAttributesMapId(t,r){return Ul.isQuoteMultipleTypesAttr(t)?r?t[r]:t.id:Ul.isCustomAttr(t)?t.id:t.dataFromId}static isCustomAttr(t){return t.dataFrom==="0"}static isQuoteAttr(t){return t.dataFrom==="1"}static isQuoteMultipleTypesAttr(t){return t.dataFrom==="2"}static hasAttr(t,r){return t&&Object.keys(t).includes(r)}}var Cs=(e=>(e.material="10001001",e.document="10001002",e.changeRequest="10001003",e.changeInstruction="10001004",e.engineeringChange="10001005",e.file="10001006",e.problemReport="10001007",e.manufacturerChange="10001008",e.statusChange="10001009",e.applicationProcess="10001010",e.supplierRequest="10001011",e.manufacturer="10001012",e.manufacturerParts="10001013",e.supplier="10001014",e.projectStartChange="10001015",e.dailyNewspaper="10001019",e.projectBaselineChange="10001030",e.project="10001016",e.workReport="10001019",e.user="10001017",e.userGroup="10001018",e.manufactChange="10001020",e.technology="10001021",e.factory="10001022",e.resource="10001023",e.factoryPublish="10001024",e.resourcePublish="10001025",e.risk="10001028",e.technologyPublish="10001029",e.inspectItem="10001031",e.option="10001032",e.custom="10001033",e.TechSpecial="10001034",e.ControlPlan="10001035",e.TechSpecialPublish="10001036",e.ControlPlanPublish="10001037",e))(Cs||{});class Is{static isMaterial(t){return t=="10001001"}static isDocument(t){return t=="10001002"}static isChangeRequest(t){return t=="10001003"}static isChangeInstruction(t){return t=="10001004"}static isEngineeringChange(t){return t=="10001005"}static isFile(t){return t=="10001006"}static isProblemReport(t){return t=="10001007"}static isManufacturerChange(t){return t=="10001008"}static isStatusChange(t){return t=="10001009"}static isApplicationProcess(t){return t=="10001010"}static isSupplierRequest(t){return t=="10001011"}static isManufacturer(t){return t=="10001012"}static isManufacturerParts(t){return t=="10001013"}static isManufactChange(t){return t=="10001020"}static isSupplier(t){return t=="10001014"}static isProjectStartChange(t){return t=="10001015"}static isDailyNewspaper(t){return t=="10001019"}static isProjectBaselineChange(t){return t=="10001030"}static isProjectChange(t){return Is.isProjectStartChange(t)||Is.isProjectBaselineChange(t)}static isProject(t){return t=="10001016"}static isWorkReport(t){return t=="10001019"}static isUser(t){return t=="10001017"}static isUserGroup(t){return t=="10001018"}static isTechnology(t){return t=="10001021"}static isFactory(t){return t=="10001022"}static isResource(t){return t=="10001023"}static isTechnologyPublish(t){return t=="10001029"}static isFactoryPublish(t){return t=="10001024"}static isResoucePublish(t){return t=="10001025"}static isRisk(t){return t=="10001028"}static isInspectItem(t){return t=="10001031"}static isOption(t){return t=="10001032"}static isCustom(t){return t=="10001033"}static isControlPublish(t){return t=="10001037"}static isTechSpecialPublish(t){return t=="10001036"}static isControlPlan(t){return t=="10001035"}static isTechSpecial(t){return t=="10001034"}}//! moment.js
324
- //! version : 2.30.1
325
- //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
326
- //! license : MIT
327
- //! momentjs.com
328
- var ZR;function Le(){return ZR.apply(null,arguments)}function JW(e){ZR=e}function Hi(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Su(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function hr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _w(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(hr(e,t))return!1;return!0}function xa(e){return e===void 0}function is(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Xf(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function JR(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function $s(e,t){for(var r in t)hr(t,r)&&(e[r]=t[r]);return hr(t,"toString")&&(e.toString=t.toString),hr(t,"valueOf")&&(e.valueOf=t.valueOf),e}function go(e,t,r,n){return wT(e,t,r,n,!0).utc()}function QW(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Gt(e){return e._pf==null&&(e._pf=QW()),e._pf}var Ty;Array.prototype.some?Ty=Array.prototype.some:Ty=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function ww(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=Gt(e),r=Ty.call(t.parsedDateParts,function(a){return a!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function lm(e){var t=go(NaN);return e!=null?$s(Gt(t),e):Gt(t).userInvalidated=!0,t}var OE=Le.momentProperties=[],V1=!1;function xw(e,t){var r,n,a,i=OE.length;if(xa(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),xa(t._i)||(e._i=t._i),xa(t._f)||(e._f=t._f),xa(t._l)||(e._l=t._l),xa(t._strict)||(e._strict=t._strict),xa(t._tzm)||(e._tzm=t._tzm),xa(t._isUTC)||(e._isUTC=t._isUTC),xa(t._offset)||(e._offset=t._offset),xa(t._pf)||(e._pf=Gt(t)),xa(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=OE[r],a=t[n],xa(a)||(e[n]=a);return e}function Zf(e){xw(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),V1===!1&&(V1=!0,Le.updateOffset(this),V1=!1)}function Vi(e){return e instanceof Zf||e!=null&&e._isAMomentObject!=null}function QR(e){Le.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function gi(e,t){var r=!0;return $s(function(){if(Le.deprecationHandler!=null&&Le.deprecationHandler(null,e),r){var n=[],a,i,o,s=arguments.length;for(i=0;i<s;i++){if(a="",typeof arguments[i]=="object"){a+=`
329
- [`+i+"] ";for(o in arguments[0])hr(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}QR(e+`
330
- Arguments: `+Array.prototype.slice.call(n).join("")+`
331
- `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var RE={};function eT(e,t){Le.deprecationHandler!=null&&Le.deprecationHandler(e,t),RE[e]||(QR(t),RE[e]=!0)}Le.suppressDeprecationWarnings=!1;Le.deprecationHandler=null;function vo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function eY(e){var t,r;for(r in e)hr(e,r)&&(t=e[r],vo(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Py(e,t){var r=$s({},e),n;for(n in t)hr(t,n)&&(Su(e[n])&&Su(t[n])?(r[n]={},$s(r[n],e[n]),$s(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)hr(e,n)&&!hr(t,n)&&Su(e[n])&&(r[n]=$s({},r[n]));return r}function Sw(e){e!=null&&this.set(e)}var ky;Object.keys?ky=Object.keys:ky=function(e){var t,r=[];for(t in e)hr(e,t)&&r.push(t);return r};var tY={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function rY(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return vo(n)?n.call(t,r):n}function fo(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var Cw=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,y0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U1={},Dl={};function Et(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(Dl[e]=a),t&&(Dl[t[0]]=function(){return fo(a.apply(this,arguments),t[1],t[2])}),r&&(Dl[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function nY(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function aY(e){var t=e.match(Cw),r,n;for(r=0,n=t.length;r<n;r++)Dl[t[r]]?t[r]=Dl[t[r]]:t[r]=nY(t[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=vo(t[o])?t[o].call(a,e):t[o];return i}}function ip(e,t){return e.isValid()?(t=tT(t,e.localeData()),U1[t]=U1[t]||aY(t),U1[t](e)):e.localeData().invalidDate()}function tT(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(y0.lastIndex=0;r>=0&&y0.test(e);)e=e.replace(y0,n),y0.lastIndex=0,r-=1;return e}var iY={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function oY(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Cw).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var sY="Invalid date";function uY(){return this._invalidDate}var lY="%d",cY=/\d{1,2}/;function dY(e){return this._ordinal.replace("%d",e)}var fY={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function hY(e,t,r,n){var a=this._relativeTime[r];return vo(a)?a(e,t,r,n):a.replace(/%d/i,e)}function pY(e,t){var r=this._relativeTime[e>0?"future":"past"];return vo(r)?r(t):r.replace(/%s/i,t)}var TE={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function vi(e){return typeof e=="string"?TE[e]||TE[e.toLowerCase()]:void 0}function Ew(e){var t={},r,n;for(n in e)hr(e,n)&&(r=vi(n),r&&(t[r]=e[n]));return t}var mY={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function gY(e){var t=[],r;for(r in e)hr(e,r)&&t.push({unit:r,priority:mY[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var rT=/\d/,Ka=/\d\d/,nT=/\d{3}/,Ow=/\d{4}/,cm=/[+-]?\d{6}/,Vr=/\d\d?/,aT=/\d\d\d\d?/,iT=/\d\d\d\d\d\d?/,dm=/\d{1,3}/,Rw=/\d{1,4}/,fm=/[+-]?\d{1,6}/,ac=/\d+/,hm=/[+-]?\d+/,vY=/Z|[+-]\d\d:?\d\d/gi,pm=/Z|[+-]\d\d(?::?\d\d)?/gi,bY=/[+-]?\d+(\.\d{1,3})?/,Jf=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ic=/^[1-9]\d?/,Tw=/^([1-9]\d|\d)/,Rp;Rp={};function st(e,t,r){Rp[e]=vo(t)?t:function(n,a){return n&&r?r:t}}function yY(e,t){return hr(Rp,e)?Rp[e](t._strict,t._locale):new RegExp(_Y(e))}function _Y(e){return ns(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function ns(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ci(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function nr(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=ci(t)),r}var $y={};function Ir(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),is(t)&&(n=function(i,o){o[t]=nr(i)}),a=e.length,r=0;r<a;r++)$y[e[r]]=n}function Qf(e,t){Ir(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function wY(e,t,r){t!=null&&hr($y,e)&&$y[e](t,r._a,r,e)}function mm(e){return e%4===0&&e%100!==0||e%400===0}var ta=0,Qo=1,no=2,yn=3,Ni=4,es=5,yu=6,xY=7,SY=8;Et("Y",0,0,function(){var e=this.year();return e<=9999?fo(e,4):"+"+e});Et(0,["YY",2],0,function(){return this.year()%100});Et(0,["YYYY",4],0,"year");Et(0,["YYYYY",5],0,"year");Et(0,["YYYYYY",6,!0],0,"year");st("Y",hm);st("YY",Vr,Ka);st("YYYY",Rw,Ow);st("YYYYY",fm,cm);st("YYYYYY",fm,cm);Ir(["YYYYY","YYYYYY"],ta);Ir("YYYY",function(e,t){t[ta]=e.length===2?Le.parseTwoDigitYear(e):nr(e)});Ir("YY",function(e,t){t[ta]=Le.parseTwoDigitYear(e)});Ir("Y",function(e,t){t[ta]=parseInt(e,10)});function nf(e){return mm(e)?366:365}Le.parseTwoDigitYear=function(e){return nr(e)+(nr(e)>68?1900:2e3)};var oT=oc("FullYear",!0);function CY(){return mm(this.year())}function oc(e,t){return function(r){return r!=null?(sT(this,e,r),Le.updateOffset(this,t),this):xf(this,e)}}function xf(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function sT(e,t,r){var n,a,i,o,s;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,o=e.month(),s=e.date(),s=s===29&&o===1&&!mm(i)?28:s,a?n.setUTCFullYear(i,o,s):n.setFullYear(i,o,s)}}function EY(e){return e=vi(e),vo(this[e])?this[e]():this}function OY(e,t){if(typeof e=="object"){e=Ew(e);var r=gY(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=vi(e),vo(this[e]))return this[e](t);return this}function RY(e,t){return(e%t+t)%t}var dn;Array.prototype.indexOf?dn=Array.prototype.indexOf:dn=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Pw(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=RY(t,12);return e+=(t-r)/12,r===1?mm(e)?29:28:31-r%7%2}Et("M",["MM",2],"Mo",function(){return this.month()+1});Et("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Et("MMMM",0,0,function(e){return this.localeData().months(this,e)});st("M",Vr,ic);st("MM",Vr,Ka);st("MMM",function(e,t){return t.monthsShortRegex(e)});st("MMMM",function(e,t){return t.monthsRegex(e)});Ir(["M","MM"],function(e,t){t[Qo]=nr(e)-1});Ir(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Qo]=a:Gt(r).invalidMonth=e});var TY="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),uT="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),lT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,PY=Jf,kY=Jf;function $Y(e,t){return e?Hi(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||lT).test(t)?"format":"standalone"][e.month()]:Hi(this._months)?this._months:this._months.standalone}function AY(e,t){return e?Hi(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[lT.test(t)?"format":"standalone"][e.month()]:Hi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function DY(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=go([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=dn.call(this._shortMonthsParse,o),a!==-1?a:null):(a=dn.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=dn.call(this._shortMonthsParse,o),a!==-1?a:(a=dn.call(this._longMonthsParse,o),a!==-1?a:null)):(a=dn.call(this._longMonthsParse,o),a!==-1?a:(a=dn.call(this._shortMonthsParse,o),a!==-1?a:null))}function MY(e,t,r){var n,a,i;if(this._monthsParseExact)return DY.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=go([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function cT(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=nr(t);else if(t=e.localeData().monthsParse(t),!is(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,Pw(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function dT(e){return e!=null?(cT(this,e),Le.updateOffset(this,!0),this):xf(this,"Month")}function NY(){return Pw(this.year(),this.month())}function IY(e){return this._monthsParseExact?(hr(this,"_monthsRegex")||fT.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(hr(this,"_monthsShortRegex")||(this._monthsShortRegex=PY),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function FY(e){return this._monthsParseExact?(hr(this,"_monthsRegex")||fT.call(this),e?this._monthsStrictRegex:this._monthsRegex):(hr(this,"_monthsRegex")||(this._monthsRegex=kY),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fT(){function e(u,l){return l.length-u.length}var t=[],r=[],n=[],a,i,o,s;for(a=0;a<12;a++)i=go([2e3,a]),o=ns(this.monthsShort(i,"")),s=ns(this.months(i,"")),t.push(o),r.push(s),n.push(s),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function jY(e,t,r,n,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,a,i,o),s}function Sf(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Tp(e,t,r){var n=7+t-r,a=(7+Sf(e,0,n).getUTCDay()-t)%7;return-a+n-1}function hT(e,t,r,n,a){var i=(7+r-n)%7,o=Tp(e,n,a),s=1+7*(t-1)+i+o,u,l;return s<=0?(u=e-1,l=nf(u)+s):s>nf(e)?(u=e+1,l=s-nf(e)):(u=e,l=s),{year:u,dayOfYear:l}}function Cf(e,t,r){var n=Tp(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+as(o,t,r)):a>as(e.year(),t,r)?(i=a-as(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function as(e,t,r){var n=Tp(e,t,r),a=Tp(e+1,t,r);return(nf(e)-n+a)/7}Et("w",["ww",2],"wo","week");Et("W",["WW",2],"Wo","isoWeek");st("w",Vr,ic);st("ww",Vr,Ka);st("W",Vr,ic);st("WW",Vr,Ka);Qf(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=nr(e)});function LY(e){return Cf(e,this._week.dow,this._week.doy).week}var zY={dow:0,doy:6};function BY(){return this._week.dow}function HY(){return this._week.doy}function VY(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function UY(e){var t=Cf(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Et("d",0,"do","day");Et("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Et("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Et("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Et("e",0,0,"weekday");Et("E",0,0,"isoWeekday");st("d",Vr);st("e",Vr);st("E",Vr);st("dd",function(e,t){return t.weekdaysMinRegex(e)});st("ddd",function(e,t){return t.weekdaysShortRegex(e)});st("dddd",function(e,t){return t.weekdaysRegex(e)});Qf(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:Gt(r).invalidWeekday=e});Qf(["d","e","E"],function(e,t,r,n){t[n]=nr(e)});function qY(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function WY(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kw(e,t){return e.slice(t,7).concat(e.slice(0,t))}var YY="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pT="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),GY="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),KY=Jf,XY=Jf,ZY=Jf;function JY(e,t){var r=Hi(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?kw(r,this._week.dow):e?r[e.day()]:r}function QY(e){return e===!0?kw(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function eG(e){return e===!0?kw(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function tG(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=go([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=dn.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=dn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=dn.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=dn.call(this._weekdaysParse,o),a!==-1||(a=dn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=dn.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=dn.call(this._shortWeekdaysParse,o),a!==-1||(a=dn.call(this._weekdaysParse,o),a!==-1)?a:(a=dn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=dn.call(this._minWeekdaysParse,o),a!==-1||(a=dn.call(this._weekdaysParse,o),a!==-1)?a:(a=dn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function rG(e,t,r){var n,a,i;if(this._weekdaysParseExact)return tG.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=go([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function nG(e){if(!this.isValid())return e!=null?this:NaN;var t=xf(this,"Day");return e!=null?(e=qY(e,this.localeData()),this.add(e-t,"d")):t}function aG(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function iG(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=WY(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function oG(e){return this._weekdaysParseExact?(hr(this,"_weekdaysRegex")||$w.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(hr(this,"_weekdaysRegex")||(this._weekdaysRegex=KY),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function sG(e){return this._weekdaysParseExact?(hr(this,"_weekdaysRegex")||$w.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=XY),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function uG(e){return this._weekdaysParseExact?(hr(this,"_weekdaysRegex")||$w.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ZY),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $w(){function e(h,d){return d.length-h.length}var t=[],r=[],n=[],a=[],i,o,s,u,l;for(i=0;i<7;i++)o=go([2e3,1]).day(i),s=ns(this.weekdaysMin(o,"")),u=ns(this.weekdaysShort(o,"")),l=ns(this.weekdays(o,"")),t.push(s),r.push(u),n.push(l),a.push(s),a.push(u),a.push(l);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Aw(){return this.hours()%12||12}function lG(){return this.hours()||24}Et("H",["HH",2],0,"hour");Et("h",["hh",2],0,Aw);Et("k",["kk",2],0,lG);Et("hmm",0,0,function(){return""+Aw.apply(this)+fo(this.minutes(),2)});Et("hmmss",0,0,function(){return""+Aw.apply(this)+fo(this.minutes(),2)+fo(this.seconds(),2)});Et("Hmm",0,0,function(){return""+this.hours()+fo(this.minutes(),2)});Et("Hmmss",0,0,function(){return""+this.hours()+fo(this.minutes(),2)+fo(this.seconds(),2)});function mT(e,t){Et(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}mT("a",!0);mT("A",!1);function gT(e,t){return t._meridiemParse}st("a",gT);st("A",gT);st("H",Vr,Tw);st("h",Vr,ic);st("k",Vr,ic);st("HH",Vr,Ka);st("hh",Vr,Ka);st("kk",Vr,Ka);st("hmm",aT);st("hmmss",iT);st("Hmm",aT);st("Hmmss",iT);Ir(["H","HH"],yn);Ir(["k","kk"],function(e,t,r){var n=nr(e);t[yn]=n===24?0:n});Ir(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ir(["h","hh"],function(e,t,r){t[yn]=nr(e),Gt(r).bigHour=!0});Ir("hmm",function(e,t,r){var n=e.length-2;t[yn]=nr(e.substr(0,n)),t[Ni]=nr(e.substr(n)),Gt(r).bigHour=!0});Ir("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[yn]=nr(e.substr(0,n)),t[Ni]=nr(e.substr(n,2)),t[es]=nr(e.substr(a)),Gt(r).bigHour=!0});Ir("Hmm",function(e,t,r){var n=e.length-2;t[yn]=nr(e.substr(0,n)),t[Ni]=nr(e.substr(n))});Ir("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[yn]=nr(e.substr(0,n)),t[Ni]=nr(e.substr(n,2)),t[es]=nr(e.substr(a))});function cG(e){return(e+"").toLowerCase().charAt(0)==="p"}var dG=/[ap]\.?m?\.?/i,fG=oc("Hours",!0);function hG(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var vT={calendar:tY,longDateFormat:iY,invalidDate:sY,ordinal:lY,dayOfMonthOrdinalParse:cY,relativeTime:fY,months:TY,monthsShort:uT,week:zY,weekdays:YY,weekdaysMin:GY,weekdaysShort:pT,meridiemParse:dG},Wr={},Cd={},Ef;function pG(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function PE(e){return e&&e.toLowerCase().replace("_","-")}function mG(e){for(var t=0,r,n,a,i;t<e.length;){for(i=PE(e[t]).split("-"),r=i.length,n=PE(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=gm(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&pG(i,n)>=r-1)break;r--}t++}return Ef}function gG(e){return!!(e&&e.match("^[^/\\\\]*$"))}function gm(e){var t=null,r;if(Wr[e]===void 0&&typeof module<"u"&&module&&module.exports&&gG(e))try{t=Ef._abbr,r=require,r("./locale/"+e),Fs(t)}catch{Wr[e]=null}return Wr[e]}function Fs(e,t){var r;return e&&(xa(t)?r=os(e):r=Dw(e,t),r?Ef=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ef._abbr}function Dw(e,t){if(t!==null){var r,n=vT;if(t.abbr=e,Wr[e]!=null)eT("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Wr[e]._config;else if(t.parentLocale!=null)if(Wr[t.parentLocale]!=null)n=Wr[t.parentLocale]._config;else if(r=gm(t.parentLocale),r!=null)n=r._config;else return Cd[t.parentLocale]||(Cd[t.parentLocale]=[]),Cd[t.parentLocale].push({name:e,config:t}),null;return Wr[e]=new Sw(Py(n,t)),Cd[e]&&Cd[e].forEach(function(a){Dw(a.name,a.config)}),Fs(e),Wr[e]}else return delete Wr[e],null}function vG(e,t){if(t!=null){var r,n,a=vT;Wr[e]!=null&&Wr[e].parentLocale!=null?Wr[e].set(Py(Wr[e]._config,t)):(n=gm(e),n!=null&&(a=n._config),t=Py(a,t),n==null&&(t.abbr=e),r=new Sw(t),r.parentLocale=Wr[e],Wr[e]=r),Fs(e)}else Wr[e]!=null&&(Wr[e].parentLocale!=null?(Wr[e]=Wr[e].parentLocale,e===Fs()&&Fs(e)):Wr[e]!=null&&delete Wr[e]);return Wr[e]}function os(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ef;if(!Hi(e)){if(t=gm(e),t)return t;e=[e]}return mG(e)}function bG(){return ky(Wr)}function Mw(e){var t,r=e._a;return r&&Gt(e).overflow===-2&&(t=r[Qo]<0||r[Qo]>11?Qo:r[no]<1||r[no]>Pw(r[ta],r[Qo])?no:r[yn]<0||r[yn]>24||r[yn]===24&&(r[Ni]!==0||r[es]!==0||r[yu]!==0)?yn:r[Ni]<0||r[Ni]>59?Ni:r[es]<0||r[es]>59?es:r[yu]<0||r[yu]>999?yu:-1,Gt(e)._overflowDayOfYear&&(t<ta||t>no)&&(t=no),Gt(e)._overflowWeeks&&t===-1&&(t=xY),Gt(e)._overflowWeekday&&t===-1&&(t=SY),Gt(e).overflow=t),e}var yG=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_G=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wG=/Z|[+-]\d\d(?::?\d\d)?/,_0=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],q1=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xG=/^\/?Date\((-?\d+)/i,SG=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,CG={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function bT(e){var t,r,n=e._i,a=yG.exec(n)||_G.exec(n),i,o,s,u,l=_0.length,h=q1.length;if(a){for(Gt(e).iso=!0,t=0,r=l;t<r;t++)if(_0[t][1].exec(a[1])){o=_0[t][0],i=_0[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,r=h;t<r;t++)if(q1[t][1].exec(a[3])){s=(a[2]||" ")+q1[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(a[4])if(wG.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(u||""),Iw(e)}else e._isValid=!1}function EG(e,t,r,n,a,i){var o=[OG(e),uT.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function OG(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function RG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function TG(e,t,r){if(e){var n=pT.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return Gt(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function PG(e,t,r){if(e)return CG[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function yT(e){var t=SG.exec(RG(e._i)),r;if(t){if(r=EG(t[4],t[3],t[2],t[5],t[6],t[7]),!TG(t[1],r,e))return;e._a=r,e._tzm=PG(t[8],t[9],t[10]),e._d=Sf.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Gt(e).rfc2822=!0}else e._isValid=!1}function kG(e){var t=xG.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(bT(e),e._isValid===!1)delete e._isValid;else return;if(yT(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Le.createFromInputFallback(e)}Le.createFromInputFallback=gi("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function vl(e,t,r){return e??t??r}function $G(e){var t=new Date(Le.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Nw(e){var t,r,n=[],a,i,o;if(!e._d){for(a=$G(e),e._w&&e._a[no]==null&&e._a[Qo]==null&&AG(e),e._dayOfYear!=null&&(o=vl(e._a[ta],a[ta]),(e._dayOfYear>nf(o)||e._dayOfYear===0)&&(Gt(e)._overflowDayOfYear=!0),r=Sf(o,0,e._dayOfYear),e._a[Qo]=r.getUTCMonth(),e._a[no]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[yn]===24&&e._a[Ni]===0&&e._a[es]===0&&e._a[yu]===0&&(e._nextDay=!0,e._a[yn]=0),e._d=(e._useUTC?Sf:jY).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[yn]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Gt(e).weekdayMismatch=!0)}}function AG(e){var t,r,n,a,i,o,s,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=vl(t.GG,e._a[ta],Cf(Hr(),1,4).year),n=vl(t.W,1),a=vl(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,l=Cf(Hr(),i,o),r=vl(t.gg,e._a[ta],l.year),n=vl(t.w,l.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),n<1||n>as(r,i,o)?Gt(e)._overflowWeeks=!0:u!=null?Gt(e)._overflowWeekday=!0:(s=hT(r,n,a,i,o),e._a[ta]=s.year,e._dayOfYear=s.dayOfYear)}Le.ISO_8601=function(){};Le.RFC_2822=function(){};function Iw(e){if(e._f===Le.ISO_8601){bT(e);return}if(e._f===Le.RFC_2822){yT(e);return}e._a=[],Gt(e).empty=!0;var t=""+e._i,r,n,a,i,o,s=t.length,u=0,l,h;for(a=tT(e._f,e._locale).match(Cw)||[],h=a.length,r=0;r<h;r++)i=a[r],n=(t.match(yY(i,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&Gt(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),u+=n.length),Dl[i]?(n?Gt(e).empty=!1:Gt(e).unusedTokens.push(i),wY(i,n,e)):e._strict&&!n&&Gt(e).unusedTokens.push(i);Gt(e).charsLeftOver=s-u,t.length>0&&Gt(e).unusedInput.push(t),e._a[yn]<=12&&Gt(e).bigHour===!0&&e._a[yn]>0&&(Gt(e).bigHour=void 0),Gt(e).parsedDateParts=e._a.slice(0),Gt(e).meridiem=e._meridiem,e._a[yn]=DG(e._locale,e._a[yn],e._meridiem),l=Gt(e).era,l!==null&&(e._a[ta]=e._locale.erasConvertYear(l,e._a[ta])),Nw(e),Mw(e)}function DG(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function MG(e){var t,r,n,a,i,o,s=!1,u=e._f.length;if(u===0){Gt(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,o=!1,t=xw({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],Iw(t),ww(t)&&(o=!0),i+=Gt(t).charsLeftOver,i+=Gt(t).unusedTokens.length*10,Gt(t).score=i,s?i<n&&(n=i,r=t):(n==null||i<n||o)&&(n=i,r=t,o&&(s=!0));$s(e,r||t)}function NG(e){if(!e._d){var t=Ew(e._i),r=t.day===void 0?t.date:t.day;e._a=JR([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Nw(e)}}function IG(e){var t=new Zf(Mw(_T(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function _T(e){var t=e._i,r=e._f;return e._locale=e._locale||os(e._l),t===null||r===void 0&&t===""?lm({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Vi(t)?new Zf(Mw(t)):(Xf(t)?e._d=t:Hi(r)?MG(e):r?Iw(e):FG(e),ww(e)||(e._d=null),e))}function FG(e){var t=e._i;xa(t)?e._d=new Date(Le.now()):Xf(t)?e._d=new Date(t.valueOf()):typeof t=="string"?kG(e):Hi(t)?(e._a=JR(t.slice(0),function(r){return parseInt(r,10)}),Nw(e)):Su(t)?NG(e):is(t)?e._d=new Date(t):Le.createFromInputFallback(e)}function wT(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Su(e)&&_w(e)||Hi(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,IG(i)}function Hr(e,t,r,n){return wT(e,t,r,n,!1)}var jG=gi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Hr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:lm()}),LG=gi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Hr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:lm()});function xT(e,t){var r,n;if(t.length===1&&Hi(t[0])&&(t=t[0]),!t.length)return Hr();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function zG(){var e=[].slice.call(arguments,0);return xT("isBefore",e)}function BG(){var e=[].slice.call(arguments,0);return xT("isAfter",e)}var HG=function(){return Date.now?Date.now():+new Date},Ed=["year","quarter","month","week","day","hour","minute","second","millisecond"];function VG(e){var t,r=!1,n,a=Ed.length;for(t in e)if(hr(e,t)&&!(dn.call(Ed,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[Ed[n]]){if(r)return!1;parseFloat(e[Ed[n]])!==nr(e[Ed[n]])&&(r=!0)}return!0}function UG(){return this._isValid}function qG(){return qi(NaN)}function vm(e){var t=Ew(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=VG(t),this._milliseconds=+h+l*1e3+u*6e4+s*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=os(),this._bubble()}function op(e){return e instanceof vm}function Ay(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function WG(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++)nr(e[o])!==nr(t[o])&&i++;return i+a}function ST(e,t){Et(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+fo(~~(r/60),2)+t+fo(~~r%60,2)})}ST("Z",":");ST("ZZ","");st("Z",pm);st("ZZ",pm);Ir(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Fw(pm,e)});var YG=/([\+\-]|\d\d)/gi;function Fw(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(YG)||["-",0,0],i=+(a[1]*60)+nr(a[2]),i===0?0:a[0]==="+"?i:-i)}function jw(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(Vi(e)||Xf(e)?e.valueOf():Hr(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),Le.updateOffset(r,!1),r):Hr(e).local()}function Dy(e){return-Math.round(e._d.getTimezoneOffset())}Le.updateOffset=function(){};function GG(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Fw(pm,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=Dy(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?OT(this,qi(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Le.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Dy(this)}function KG(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function XG(e){return this.utcOffset(0,e)}function ZG(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dy(this),"m")),this}function JG(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Fw(vY,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function QG(e){return this.isValid()?(e=e?Hr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function eK(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function tK(){if(!xa(this._isDSTShifted))return this._isDSTShifted;var e={},t;return xw(e,this),e=_T(e),e._a?(t=e._isUTC?go(e._a):Hr(e._a),this._isDSTShifted=this.isValid()&&WG(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function rK(){return this.isValid()?!this._isUTC:!1}function nK(){return this.isValid()?this._isUTC:!1}function CT(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aK=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,iK=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qi(e,t){var r=e,n=null,a,i,o;return op(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:is(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=aK.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:nr(n[no])*a,h:nr(n[yn])*a,m:nr(n[Ni])*a,s:nr(n[es])*a,ms:nr(Ay(n[yu]*1e3))*a}):(n=iK.exec(e))?(a=n[1]==="-"?-1:1,r={y:ou(n[2],a),M:ou(n[3],a),w:ou(n[4],a),d:ou(n[5],a),h:ou(n[6],a),m:ou(n[7],a),s:ou(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=oK(Hr(r.from),Hr(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new vm(r),op(e)&&hr(e,"_locale")&&(i._locale=e._locale),op(e)&&hr(e,"_isValid")&&(i._isValid=e._isValid),i}qi.fn=vm.prototype;qi.invalid=qG;function ou(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function kE(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function oK(e,t){var r;return e.isValid()&&t.isValid()?(t=jw(t,e),e.isBefore(t)?r=kE(e,t):(r=kE(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function ET(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&(eT(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=qi(r,n),OT(this,a,e),this}}function OT(e,t,r,n){var a=t._milliseconds,i=Ay(t._days),o=Ay(t._months);e.isValid()&&(n=n??!0,o&&cT(e,xf(e,"Month")+o*r),i&&sT(e,"Date",xf(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&Le.updateOffset(e,i||o))}var sK=ET(1,"add"),uK=ET(-1,"subtract");function RT(e){return typeof e=="string"||e instanceof String}function lK(e){return Vi(e)||Xf(e)||RT(e)||is(e)||dK(e)||cK(e)||e===null||e===void 0}function cK(e){var t=Su(e)&&!_w(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||hr(e,i);return t&&r}function dK(e){var t=Hi(e),r=!1;return t&&(r=e.filter(function(n){return!is(n)&&RT(e)}).length===0),t&&r}function fK(e){var t=Su(e)&&!_w(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||hr(e,i);return t&&r}function hK(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function pK(e,t){arguments.length===1&&(arguments[0]?lK(arguments[0])?(e=arguments[0],t=void 0):fK(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Hr(),n=jw(r,this).startOf("day"),a=Le.calendarFormat(this,n)||"sameElse",i=t&&(vo(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,Hr(r)))}function mK(){return new Zf(this)}function gK(e,t){var r=Vi(e)?e:Hr(e);return this.isValid()&&r.isValid()?(t=vi(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function vK(e,t){var r=Vi(e)?e:Hr(e);return this.isValid()&&r.isValid()?(t=vi(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function bK(e,t,r,n){var a=Vi(e)?e:Hr(e),i=Vi(t)?t:Hr(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function yK(e,t){var r=Vi(e)?e:Hr(e),n;return this.isValid()&&r.isValid()?(t=vi(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function _K(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function wK(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function xK(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=jw(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=vi(t),t){case"year":i=sp(this,n)/12;break;case"month":i=sp(this,n);break;case"quarter":i=sp(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:ci(i)}function sp(e,t){if(e.date()<t.date())return-sp(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}Le.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Le.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function SK(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function CK(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?ip(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):vo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ip(r,"Z")):ip(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function EK(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function OK(e){e||(e=this.isUtc()?Le.defaultFormatUtc:Le.defaultFormat);var t=ip(this,e);return this.localeData().postformat(t)}function RK(e,t){return this.isValid()&&(Vi(e)&&e.isValid()||Hr(e).isValid())?qi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function TK(e){return this.from(Hr(),e)}function PK(e,t){return this.isValid()&&(Vi(e)&&e.isValid()||Hr(e).isValid())?qi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kK(e){return this.to(Hr(),e)}function TT(e){var t;return e===void 0?this._locale._abbr:(t=os(e),t!=null&&(this._locale=t),this)}var PT=gi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function kT(){return this._locale}var Pp=1e3,Ml=60*Pp,kp=60*Ml,$T=(365*400+97)*24*kp;function Nl(e,t){return(e%t+t)%t}function AT(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-$T:new Date(e,t,r).valueOf()}function DT(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-$T:Date.UTC(e,t,r)}function $K(e){var t,r;if(e=vi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?DT:AT,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Nl(t+(this._isUTC?0:this.utcOffset()*Ml),kp);break;case"minute":t=this._d.valueOf(),t-=Nl(t,Ml);break;case"second":t=this._d.valueOf(),t-=Nl(t,Pp);break}return this._d.setTime(t),Le.updateOffset(this,!0),this}function AK(e){var t,r;if(e=vi(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?DT:AT,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=kp-Nl(t+(this._isUTC?0:this.utcOffset()*Ml),kp)-1;break;case"minute":t=this._d.valueOf(),t+=Ml-Nl(t,Ml)-1;break;case"second":t=this._d.valueOf(),t+=Pp-Nl(t,Pp)-1;break}return this._d.setTime(t),Le.updateOffset(this,!0),this}function DK(){return this._d.valueOf()-(this._offset||0)*6e4}function MK(){return Math.floor(this.valueOf()/1e3)}function NK(){return new Date(this.valueOf())}function IK(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function FK(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function jK(){return this.isValid()?this.toISOString():null}function LK(){return ww(this)}function zK(){return $s({},Gt(this))}function BK(){return Gt(this).overflow}function HK(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Et("N",0,0,"eraAbbr");Et("NN",0,0,"eraAbbr");Et("NNN",0,0,"eraAbbr");Et("NNNN",0,0,"eraName");Et("NNNNN",0,0,"eraNarrow");Et("y",["y",1],"yo","eraYear");Et("y",["yy",2],0,"eraYear");Et("y",["yyy",3],0,"eraYear");Et("y",["yyyy",4],0,"eraYear");st("N",Lw);st("NN",Lw);st("NNN",Lw);st("NNNN",QK);st("NNNNN",eX);Ir(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?Gt(r).era=a:Gt(r).invalidEra=e});st("y",ac);st("yy",ac);st("yyy",ac);st("yyyy",ac);st("yo",tX);Ir(["y","yy","yyy","yyyy"],ta);Ir(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[ta]=r._locale.eraYearOrdinalParse(e,a):t[ta]=parseInt(e,10)});function VK(e,t){var r,n,a,i=this._eras||os("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=Le(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=Le(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function UK(e,t,r){var n,a,i=this.eras(),o,s,u;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),s=i[n].abbr.toUpperCase(),u=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[n];break;case"NNNN":if(o===e)return i[n];break;case"NNNNN":if(u===e)return i[n];break}else if([o,s,u].indexOf(e)>=0)return i[n]}function qK(e,t){var r=e.since<=e.until?1:-1;return t===void 0?Le(e.since).year():Le(e.since).year()+(t-e.offset)*r}function WK(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function YK(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function GK(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function KK(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-Le(a[e].since).year())*r+a[e].offset;return this.year()}function XK(e){return hr(this,"_erasNameRegex")||zw.call(this),e?this._erasNameRegex:this._erasRegex}function ZK(e){return hr(this,"_erasAbbrRegex")||zw.call(this),e?this._erasAbbrRegex:this._erasRegex}function JK(e){return hr(this,"_erasNarrowRegex")||zw.call(this),e?this._erasNarrowRegex:this._erasRegex}function Lw(e,t){return t.erasAbbrRegex(e)}function QK(e,t){return t.erasNameRegex(e)}function eX(e,t){return t.erasNarrowRegex(e)}function tX(e,t){return t._eraYearOrdinalRegex||ac}function zw(){var e=[],t=[],r=[],n=[],a,i,o,s,u,l=this.eras();for(a=0,i=l.length;a<i;++a)o=ns(l[a].name),s=ns(l[a].abbr),u=ns(l[a].narrow),t.push(o),e.push(s),r.push(u),n.push(o),n.push(s),n.push(u);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Et(0,["gg",2],0,function(){return this.weekYear()%100});Et(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bm(e,t){Et(0,[e,e.length],0,t)}bm("gggg","weekYear");bm("ggggg","weekYear");bm("GGGG","isoWeekYear");bm("GGGGG","isoWeekYear");st("G",hm);st("g",hm);st("GG",Vr,Ka);st("gg",Vr,Ka);st("GGGG",Rw,Ow);st("gggg",Rw,Ow);st("GGGGG",fm,cm);st("ggggg",fm,cm);Qf(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=nr(e)});Qf(["gg","GG"],function(e,t,r,n){t[n]=Le.parseTwoDigitYear(e)});function rX(e){return MT.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function nX(e){return MT.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function aX(){return as(this.year(),1,4)}function iX(){return as(this.isoWeekYear(),1,4)}function oX(){var e=this.localeData()._week;return as(this.year(),e.dow,e.doy)}function sX(){var e=this.localeData()._week;return as(this.weekYear(),e.dow,e.doy)}function MT(e,t,r,n,a){var i;return e==null?Cf(this,n,a).year:(i=as(e,n,a),t>i&&(t=i),uX.call(this,e,t,r,n,a))}function uX(e,t,r,n,a){var i=hT(e,t,r,n,a),o=Sf(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Et("Q",0,"Qo","quarter");st("Q",rT);Ir("Q",function(e,t){t[Qo]=(nr(e)-1)*3});function lX(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Et("D",["DD",2],"Do","date");st("D",Vr,ic);st("DD",Vr,Ka);st("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ir(["D","DD"],no);Ir("Do",function(e,t){t[no]=nr(e.match(Vr)[0])});var NT=oc("Date",!0);Et("DDD",["DDDD",3],"DDDo","dayOfYear");st("DDD",dm);st("DDDD",nT);Ir(["DDD","DDDD"],function(e,t,r){r._dayOfYear=nr(e)});function cX(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Et("m",["mm",2],0,"minute");st("m",Vr,Tw);st("mm",Vr,Ka);Ir(["m","mm"],Ni);var dX=oc("Minutes",!1);Et("s",["ss",2],0,"second");st("s",Vr,Tw);st("ss",Vr,Ka);Ir(["s","ss"],es);var fX=oc("Seconds",!1);Et("S",0,0,function(){return~~(this.millisecond()/100)});Et(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Et(0,["SSS",3],0,"millisecond");Et(0,["SSSS",4],0,function(){return this.millisecond()*10});Et(0,["SSSSS",5],0,function(){return this.millisecond()*100});Et(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Et(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Et(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Et(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});st("S",dm,rT);st("SS",dm,Ka);st("SSS",dm,nT);var As,IT;for(As="SSSS";As.length<=9;As+="S")st(As,ac);function hX(e,t){t[yu]=nr(("0."+e)*1e3)}for(As="S";As.length<=9;As+="S")Ir(As,hX);IT=oc("Milliseconds",!1);Et("z",0,0,"zoneAbbr");Et("zz",0,0,"zoneName");function pX(){return this._isUTC?"UTC":""}function mX(){return this._isUTC?"Coordinated Universal Time":""}var ze=Zf.prototype;ze.add=sK;ze.calendar=pK;ze.clone=mK;ze.diff=xK;ze.endOf=AK;ze.format=OK;ze.from=RK;ze.fromNow=TK;ze.to=PK;ze.toNow=kK;ze.get=EY;ze.invalidAt=BK;ze.isAfter=gK;ze.isBefore=vK;ze.isBetween=bK;ze.isSame=yK;ze.isSameOrAfter=_K;ze.isSameOrBefore=wK;ze.isValid=LK;ze.lang=PT;ze.locale=TT;ze.localeData=kT;ze.max=LG;ze.min=jG;ze.parsingFlags=zK;ze.set=OY;ze.startOf=$K;ze.subtract=uK;ze.toArray=IK;ze.toObject=FK;ze.toDate=NK;ze.toISOString=CK;ze.inspect=EK;typeof Symbol<"u"&&Symbol.for!=null&&(ze[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ze.toJSON=jK;ze.toString=SK;ze.unix=MK;ze.valueOf=DK;ze.creationData=HK;ze.eraName=WK;ze.eraNarrow=YK;ze.eraAbbr=GK;ze.eraYear=KK;ze.year=oT;ze.isLeapYear=CY;ze.weekYear=rX;ze.isoWeekYear=nX;ze.quarter=ze.quarters=lX;ze.month=dT;ze.daysInMonth=NY;ze.week=ze.weeks=VY;ze.isoWeek=ze.isoWeeks=UY;ze.weeksInYear=oX;ze.weeksInWeekYear=sX;ze.isoWeeksInYear=aX;ze.isoWeeksInISOWeekYear=iX;ze.date=NT;ze.day=ze.days=nG;ze.weekday=aG;ze.isoWeekday=iG;ze.dayOfYear=cX;ze.hour=ze.hours=fG;ze.minute=ze.minutes=dX;ze.second=ze.seconds=fX;ze.millisecond=ze.milliseconds=IT;ze.utcOffset=GG;ze.utc=XG;ze.local=ZG;ze.parseZone=JG;ze.hasAlignedHourOffset=QG;ze.isDST=eK;ze.isLocal=rK;ze.isUtcOffset=nK;ze.isUtc=CT;ze.isUTC=CT;ze.zoneAbbr=pX;ze.zoneName=mX;ze.dates=gi("dates accessor is deprecated. Use date instead.",NT);ze.months=gi("months accessor is deprecated. Use month instead",dT);ze.years=gi("years accessor is deprecated. Use year instead",oT);ze.zone=gi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",KG);ze.isDSTShifted=gi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",tK);function gX(e){return Hr(e*1e3)}function vX(){return Hr.apply(null,arguments).parseZone()}function FT(e){return e}var pr=Sw.prototype;pr.calendar=rY;pr.longDateFormat=oY;pr.invalidDate=uY;pr.ordinal=dY;pr.preparse=FT;pr.postformat=FT;pr.relativeTime=hY;pr.pastFuture=pY;pr.set=eY;pr.eras=VK;pr.erasParse=UK;pr.erasConvertYear=qK;pr.erasAbbrRegex=ZK;pr.erasNameRegex=XK;pr.erasNarrowRegex=JK;pr.months=$Y;pr.monthsShort=AY;pr.monthsParse=MY;pr.monthsRegex=FY;pr.monthsShortRegex=IY;pr.week=LY;pr.firstDayOfYear=HY;pr.firstDayOfWeek=BY;pr.weekdays=JY;pr.weekdaysMin=eG;pr.weekdaysShort=QY;pr.weekdaysParse=rG;pr.weekdaysRegex=oG;pr.weekdaysShortRegex=sG;pr.weekdaysMinRegex=uG;pr.isPM=cG;pr.meridiem=hG;function $p(e,t,r,n){var a=os(),i=go().set(n,t);return a[r](i,e)}function jT(e,t,r){if(is(e)&&(t=e,e=void 0),e=e||"",t!=null)return $p(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=$p(e,n,r,"month");return a}function Bw(e,t,r,n){typeof e=="boolean"?(is(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,is(t)&&(r=t,t=void 0),t=t||"");var a=os(),i=e?a._week.dow:0,o,s=[];if(r!=null)return $p(t,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=$p(t,(o+i)%7,n,"day");return s}function bX(e,t){return jT(e,t,"months")}function yX(e,t){return jT(e,t,"monthsShort")}function _X(e,t,r){return Bw(e,t,r,"weekdays")}function wX(e,t,r){return Bw(e,t,r,"weekdaysShort")}function xX(e,t,r){return Bw(e,t,r,"weekdaysMin")}Fs("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=nr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});Le.lang=gi("moment.lang is deprecated. Use moment.locale instead.",Fs);Le.langData=gi("moment.langData is deprecated. Use moment.localeData instead.",os);var Vo=Math.abs;function SX(){var e=this._data;return this._milliseconds=Vo(this._milliseconds),this._days=Vo(this._days),this._months=Vo(this._months),e.milliseconds=Vo(e.milliseconds),e.seconds=Vo(e.seconds),e.minutes=Vo(e.minutes),e.hours=Vo(e.hours),e.months=Vo(e.months),e.years=Vo(e.years),this}function LT(e,t,r,n){var a=qi(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function CX(e,t){return LT(this,e,t,1)}function EX(e,t){return LT(this,e,t,-1)}function $E(e){return e<0?Math.floor(e):Math.ceil(e)}function OX(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,s,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=$E(My(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=ci(e/1e3),n.seconds=a%60,i=ci(a/60),n.minutes=i%60,o=ci(i/60),n.hours=o%24,t+=ci(o/24),u=ci(zT(t)),r+=u,t-=$E(My(u)),s=ci(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function zT(e){return e*4800/146097}function My(e){return e*146097/4800}function RX(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=vi(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+zT(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(My(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function ss(e){return function(){return this.as(e)}}var BT=ss("ms"),TX=ss("s"),PX=ss("m"),kX=ss("h"),$X=ss("d"),AX=ss("w"),DX=ss("M"),MX=ss("Q"),NX=ss("y"),IX=BT;function FX(){return qi(this)}function jX(e){return e=vi(e),this.isValid()?this[e+"s"]():NaN}function Au(e){return function(){return this.isValid()?this._data[e]:NaN}}var LX=Au("milliseconds"),zX=Au("seconds"),BX=Au("minutes"),HX=Au("hours"),VX=Au("days"),UX=Au("months"),qX=Au("years");function WX(){return ci(this.days()/7)}var Go=Math.round,Sl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function YX(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function GX(e,t,r,n){var a=qi(e).abs(),i=Go(a.as("s")),o=Go(a.as("m")),s=Go(a.as("h")),u=Go(a.as("d")),l=Go(a.as("M")),h=Go(a.as("w")),d=Go(a.as("y")),g=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(g=g||h<=1&&["w"]||h<r.w&&["ww",h]),g=g||l<=1&&["M"]||l<r.M&&["MM",l]||d<=1&&["y"]||["yy",d],g[2]=t,g[3]=+e>0,g[4]=n,YX.apply(null,g)}function KX(e){return e===void 0?Go:typeof e=="function"?(Go=e,!0):!1}function XX(e,t){return Sl[e]===void 0?!1:t===void 0?Sl[e]:(Sl[e]=t,e==="s"&&(Sl.ss=t-1),!0)}function ZX(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Sl,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Sl,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=GX(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var W1=Math.abs;function tl(e){return(e>0)-(e<0)||+e}function ym(){if(!this.isValid())return this.localeData().invalidDate();var e=W1(this._milliseconds)/1e3,t=W1(this._days),r=W1(this._months),n,a,i,o,s=this.asSeconds(),u,l,h,d;return s?(n=ci(e/60),a=ci(n/60),e%=60,n%=60,i=ci(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=s<0?"-":"",l=tl(this._months)!==tl(s)?"-":"",h=tl(this._days)!==tl(s)?"-":"",d=tl(this._milliseconds)!==tl(s)?"-":"",u+"P"+(i?l+i+"Y":"")+(r?l+r+"M":"")+(t?h+t+"D":"")+(a||n||e?"T":"")+(a?d+a+"H":"")+(n?d+n+"M":"")+(e?d+o+"S":"")):"P0D"}var lr=vm.prototype;lr.isValid=UG;lr.abs=SX;lr.add=CX;lr.subtract=EX;lr.as=RX;lr.asMilliseconds=BT;lr.asSeconds=TX;lr.asMinutes=PX;lr.asHours=kX;lr.asDays=$X;lr.asWeeks=AX;lr.asMonths=DX;lr.asQuarters=MX;lr.asYears=NX;lr.valueOf=IX;lr._bubble=OX;lr.clone=FX;lr.get=jX;lr.milliseconds=LX;lr.seconds=zX;lr.minutes=BX;lr.hours=HX;lr.days=VX;lr.weeks=WX;lr.months=UX;lr.years=qX;lr.humanize=ZX;lr.toISOString=ym;lr.toString=ym;lr.toJSON=ym;lr.locale=TT;lr.localeData=kT;lr.toIsoString=gi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ym);lr.lang=PT;Et("X",0,0,"unix");Et("x",0,0,"valueOf");st("x",hm);st("X",bY);Ir("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ir("x",function(e,t,r){r._d=new Date(nr(e))});//! moment.js
332
- Le.version="2.30.1";JW(Hr);Le.fn=ze;Le.min=zG;Le.max=BG;Le.now=HG;Le.utc=go;Le.unix=gX;Le.months=bX;Le.isDate=Xf;Le.locale=Fs;Le.invalid=lm;Le.duration=qi;Le.isMoment=Vi;Le.weekdays=_X;Le.parseZone=vX;Le.localeData=os;Le.isDuration=op;Le.monthsShort=yX;Le.weekdaysMin=xX;Le.defineLocale=Dw;Le.updateLocale=vG;Le.locales=bG;Le.weekdaysShort=wX;Le.normalizeUnits=vi;Le.relativeTimeRounding=KX;Le.relativeTimeThreshold=XX;Le.calendarFormat=hK;Le.prototype=ze;Le.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Rs=class Rs{static getAttrOf(t,r){return t.find(n=>(n.apicode||n.apiCode)==r)}static avoid0TypeConvert(t){return t===0?String(t):t}static generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random()*16|0,n=t=="x"?r:r&3|8;return n.toString(16)})}static momentToRawData(t){if(Le.isMoment(t)){const r=t.creationData();return r==null?void 0:r.input}else return t}static tableRowHasChange(t){return t.dataType=="add"||t.dataType=="del"||Rs.tableRowHasNewValue(t)}static tableRowHasNewValue(t){return!!t.newVal&&!!Object.values(t.newVal).length}static isAddTableRow(t){return t.dataType=="add"}static isDelTableRow(t){return t.dataType=="del"}static setTableRowAttrValue(t,r){t.newVal?Object.assign(t.newVal,r):t.newVal=r}static isMac(){return/macintosh|mac os x/i.test(navigator.userAgent)}static makeDestructurable(t,r){if(typeof Symbol<"u"){const n={...t};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let a=0;return{next:()=>({value:r[a++],done:a>r.length})}}}),n}else return Object.assign([...r],t)}static ArrayAttributeFlat(t,r="children",n){const a=[...t],i=[];for(;a.length;){const o=a.shift(),s=o[r];if(n==null||n(o),i.push(o),s!=null&&s.length)for(let u=s.length-1;u>=0;u--)a.unshift(s[u])}return i}static getTreeRelationNoRecursion({data:t,lookup:r,childrenKey:n="children"}){var h;const a=new Set;let i={parent:void 0,self:void 0,beforeSibling:[],afterSibling:[],index:void 0,stack:Array.from(a)};const o=new Map,s=new Map,u=new Map,l=[...t];for(;l.length;){const d=l.shift(),g=o.get(d)??t.findIndex(E=>E==d),b=s.get(d);b?a.add(b):a.clear();const y=b==null?void 0:b[n],w=r(d,g),S=d[n];if(w){i={parent:b,self:d,beforeSibling:(y||t).slice(0,g),afterSibling:(y||t).slice(g+1),index:g,stack:Array.from(a)};break}else if(S!=null&&S.length)for(let E=S.length-1;E>=0;E--){const _=S[E];l.unshift(S[E]),o.set(_,E),s.set(_,d),E==S.length-1&&u.set(_,()=>{var C;(C=u.get(d))==null||C(),a.delete(d)})}else(h=u.get(d))==null||h()}return i}static judgeParentIcon(t,r){if(t=="10001001")return"bluecube";if(t=="10001002")return"document-cube";if(t=="10001006")return"file-cube";if(Is.isProject(t))return r||"icon"}static generateCacheFn(t){const r=(...n)=>(r._value||(r._value=t(...n)),r._value);return r.clearCache=()=>{r._value=null},r}static generateSnowId(){function t(){return((1+Math.random())*65536|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};Dr(Rs,"getLabelInOptions",t=>{const{value:r,options:n,adaptor:a}=t,i=Object.prototype.toString.call(r);if(!(l=>l!==""&&l!==void 0&&l!==null)(r))return"";let s="";i==="[object Array]"&&(s=[]);const u=l=>{for(let h=0;h<(l||[]).length;h++){const d=l[h][a?a.label:"label"],g=l[h][a?a.value:"value"];i==="[object Array]"?r.includes(g)&&s.push(d):r===g&&(s=d),l[h].children&&l[h].children.length&&u(l[h].children)}};return u(n),s}),Dr(Rs,"transformArrayToMap",(t,r,n,a)=>{function i(o,s){return o=="autoGetId"&&(a!=null&&a.useAutoGetId)?Ul.isCustomAttr(s)?"id":"dataFromId":o}return t==null?void 0:t.reduce((o,s)=>{const u=i(r,s),l=i(n,s);return l?o[s[u]]=s[l]:o[s[u]]=s,o},{})}),Dr(Rs,"autoTableHeight",(t=270)=>{var r=0;return window.innerHeight?r=window.innerHeight:document.body&&document.body.clientHeight&&(r=document.body.clientHeight),document.documentElement&&document.documentElement.clientHeight&&(r=document.documentElement.clientHeight),r-t}),Dr(Rs,"renderBomTag",t=>{const r=o=>{const s=o.match(/\d+(\.\d+)?/g);return s?s[s.length-1]:""},n=o=>{let s=0;const u=l=>{var h=l.split("");return h.reverse()};for(let l=0;l<u(o).length&&u(o)[l].match(/\d/);l++)s=s+1;return o.substring(0,o.length-s)},a=o=>_e.sortBy(_e.uniq(o.split(",")),s=>Number(r(s))),i=Object.keys(_e.groupBy(a(t),o=>n(o))).map(o=>(u=>{var l=[],h=0;const d=u.sort((g,b)=>Number(r(g))-Number(r(b)));return d.forEach((g,b)=>{b===0?l[0]=[g]:Number(r(g))-Number(r(d[b-1]))===1?l[h].push(g):l[++h]=[g]}),l})(_e.groupBy(a(t),u=>n(u))[o]).map(u=>{if(u.length>1){const l=u.map(h=>Number(r(h)));return`${o}${_e.min(l)}-${_e.max(l)}`}else return u[0]}));return _e.flatten(i).join(",")}),Dr(Rs,"tidyBomTag",(t,r)=>{t=t&&t.replace(/,/g,",");const n=t.split(",").map(u=>u.replace(/([^\d]+)(\d+)-\1(\d+)/,"$1$2-$3")).map(u=>{if(u.match(/^\S+\d+-\d+$/)){const l=u.substring(0,u.match(/\d+-\d+$/).index),h=[],d=Number(u.split(l)[1].split("-")[1]),g=d<1e3?d:1e3;for(let b=Number(u.split(l)[1].split("-")[0]);b<=g;b++)h.push(`${l}${b}`);return h.join(",")}else if(u.match(/^\S+\d+-\S+\d+$/)){const l=u.split("-")[0].substring(0,u.match(/\d/).index).toUpperCase(),h=u.split("-")[0].substring(u.match(/\d/).index,u.split("-")[0].length),d=u.split("-")[1].substring(0,u.match(/\d/).index).toUpperCase(),g=u.split("-")[1].substring(u.match(/\d/).index,u.split("-")[0].length);if(l!=d)return u;{const b=[],y=Number(g),w=y<1e3?y:1e3;for(let S=Number(h);S<=w;S++)b.push(`${l}${S}`);return b.join(",")}}else return u}).join(","),a=u=>{const l=u.match(/\d+(\.\d+)?/g);return l?l[l.length-1]:""},i=u=>{let l=0;const h=d=>{var g=d.split("");return g.reverse()};for(let d=0;d<h(u).length&&h(u)[d].match(/\d/);d++)l=l+1;return u.substring(0,u.length-l)},o=u=>_e.sortBy(_e.uniq(u.split(",")),l=>Number(a(l))),s=Object.values(_e.groupBy(o(n.toLocaleUpperCase()),u=>i(u))).map(u=>u.join(","));return s.length>1e3&&(r==null||r()),s.length>1e3?s.slice(0,1e3).join(","):s.join(",")});let _r=Rs;const JX="_tableSelection_1jw00_1",QX="_sideBox_1jw00_28",eZ="_tableFrame_1jw00_43",Y1={tableSelection:JX,sideBox:QX,tableFrame:eZ},tZ="_sider_item_container_wnrm0_1",rl={sider_item_container:tZ},{TreeNode:AE}=ue.Tree,HT=e=>{const[t,r]=A.useState([]),[n,a]=A.useState([]),[i,o]=A.useState([]);Wf(()=>{s()});const s=async()=>{var l;if(e.getInstanceMenu){const{records:h}=await e.getInstanceMenu();a(h||[])}if(e.getAttributeByTab){const h=await e.getAttributeByTab();if(h){const d=(l=h.records)==null?void 0:l.filter(g=>["Number","Note","LifeCyclePhase","Category"].includes(g.apicode));e.onGetTreeFields&&e.onGetTreeFields(d)}}};A.useEffect(()=>{e.outIsSelected&&r([])},[e.outIsSelected]);const u=l=>l.map(d=>(d.title=B.jsxs("div",{className:rl.treeListBox,children:[B.jsxs("div",{className:rl.titleBox,style:{display:"flex",alignItems:"center"},children:[B.jsx(Dt,{type:d.icon=="leftbar-folder"?d.children&&d.children.length>0&&_e.includes(i,d.id)?"content-open2":"content-fold":d.icon,style:{fontSize:"16px",color:"#333"}}),B.jsx("div",{className:rl.name,style:{marginLeft:"2px",whiteSpace:"nowrap"},title:d.name,children:B.jsx("span",{children:d.name})})]}),B.jsx("div",{className:ge(rl.btnBox,rl.onHover)})]},d.id),d.children?B.jsx(AE,{title:d.title,dataRef:d,children:u(d.children)},d.id):B.jsx(AE,{title:d.title},d.id)));return B.jsx("div",{className:rl.sider_item_container,children:B.jsx(ue.Tree,{switcherIcon:B.jsx(Dt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),expandedKeys:i,selectedKeys:t,onExpand:l=>{o(l)},onSelect:(l,h)=>{h.selected&&(r(l),e.onSelected&&e.onSelected(h.node.dataRef))},children:u(n)})})},rZ="_main_bg911_1",nZ="_edit_cell_bg911_23",aZ="_update_style_bg911_28",iZ="_updated_style_bg911_42",oZ="_updated_redline_style_bg911_61",sZ="_table_footer_bg911_352",uZ="_loading_bg911_364",ki={main:rZ,edit_cell:nZ,update_style:aZ,updated_style:iZ,updated_redline_style:oZ,table_footer:sZ,loading:uZ},lZ=0,G1=1,K1=2,VT=8,nl=64,w0=0,UT=1,Ny=typeof Symbol=="function"?Symbol.for("idx"):"$$idx";function cZ(){return{vt_state:1,possible_hight_per_tr:-1,computed_h:0,re_computed:0,row_height:[],row_count:0,prev_row_count:0,_offset_top:0,_offset_head:0,_offset_tail:1,WH:0,top:0,left:0,evt:lZ,end:!1,final_top:0,f_final_top:UT,update_count:0}}function dZ(e){Object.prototype.hasOwnProperty.call(e,"CLICK~__DIAGNOSIS__")||Object.defineProperty(e,"CLICK~__DIAGNOSIS__",{get(){console.debug("OoOoOoO DIAGNOSIS OoOoOoO");let t=0;for(let a=0;a<e.row_count;++a)t+=e.row_height[a];let r,n;t>e.computed_h?(r="color:rgb(15, 179, 9)",n="lower than expected"):t<e.computed_h?(r="color:rgb(202, 61, 81)",n="higher than expected"):(r="color:rgba(0, 0, 0, 0.85)",n="normal"),console.debug(`%c%d(%d)(${n})`,r,t,e.computed_h-t),console.debug("OoOoOoOoOoOoOOoOoOoOoOoOo")},configurable:!1,enumerable:!1})}function bl(e,t){if(e.debug){const r=new Date,n=`${r.toLocaleTimeString()}.${r.getMilliseconds()}`;console.debug(`%c[${e.id}][${n}][${t}]`,"color:#a00",e)}}function fZ(e){const t=e.target;return{target:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},end:t.scrollHeight-t.clientHeight===Math.round(t.scrollTop),flag:VT}}const hZ=P.forwardRef(function(t,r){return B.jsx("table",{ref:r,...t})});function pZ(e){return B.jsx("tbody",{...e})}const mZ=P.forwardRef(function(t,r){const[n,a]=A.useState(!1);return B.jsx("tr",{ref:r,...t})});function gZ(e,t){const{row_height:r,row_count:n,overscanRowCount:a}=e;e._scroll_y=e.scroll.y,typeof e._scroll_y=="number"?e._y=e._scroll_y:(typeof e._scroll_y=="string"||console.assert(!1,"VT: did you forget to set `scroll.y`?"),e._y=e.wrap_inst.current.parentElement.offsetHeight),console.assert(e._y>=0);let i=0,o=0,s=0,u=0;if(t===-1&&n>0){for(o=n;o>0&&u<e._y;)u+=r[--o];return[0|o,0|n,0|e.computed_h-u]}for(;o<n&&i<t;++o)i+=r[o];for(s=o;s<n&&u<e._y;++s)u+=r[s];let l=a<0?0:a;for(;o>0&&l--;)i-=r[--o];return s+=a,s>n&&(s=n),[0|o,0|s,0|i]}function qT(e,t,r,n){e._offset_top=0|t,e._offset_head=0|r,e._offset_tail=0|n}function vZ(e,t,r,n,a){e.top=t,e.left=r,e.evt=n,e.end=a}function bZ(e,t){if(e.WH===t)return;e.WH=t;const r=e.wrap_inst.current.style;r.height=t?(r.maxHeight=t+"px",r.maxHeight):(r.maxHeight="unset",r.maxHeight),e.on_update_wrap_style()}function DE(e,t,r){if(!e.wrap_inst.current)return;const n=e.wrap_inst.current.parentElement;n.scrollTop=t,n.scrollLeft=Math.max(r,n.scrollLeft)}function WT(e,t){const r=()=>{bl(e,"REPAINTING"),e.vt_state===4&&e.wrap_inst.current&&bZ(e,e.computed_h),e.HND_PAINT=0};return t<0?window.requestAnimationFrame(r):window.setTimeout(r,t)}function X1(e){e.HND_PAINT>0||(e.HND_PAINT=WT(e,-1))}function YT(e,t,r,n){const a=t-r,i=new Array(a).fill(n);e.row_height=e.row_height.concat(i),e.computed_h+=a*n}function yZ(e,t,r){if(t===0){e.computed_h=0,e.row_height.length=0,e.top=0;return}const n=e.row_height;let a=0;for(let i=t;i<r;++i)a+=n[i];e.computed_h-=a}function _Z(e,t){e.re_computed=t-e.row_count,e.prev_row_count=e.row_count,e.row_count=t}const wZ=(e,t)=>{const{style:r,context:n,...a}=e,i=A.useState(0),o=A.useRef(()=>{}),s=A.useMemo(()=>P.createRef(),[]),u=A.useContext(n);A.useMemo(()=>{Object.assign(u,cZ()),u.wrap_inst&&u.wrap_inst.current&&(u.wrap_inst.current.parentElement.onscroll=null),u.wrap_inst=s,u.top=u.initTop,u.on_update_wrap_style=()=>{u._y===0&&`${u._scroll_y}`.length&&g({flag:nl,target:{scrollTop:u.top,scrollLeft:u.left}})},process.env.NODE_ENV==="development"&&dZ(u)},[]);const l=A.useRef([]).current,h=A.useRef(0);let d;const g=A.useCallback(_=>{if(u.vt_state===4){if(_&&(l.push(_),u.f_final_top===w0))return _.flag=nl,d(0);l.length&&(h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(d))}},[]),b=A.useCallback(_=>{g(fZ(_))},[]);d=A.useCallback(_=>{if(u.vt_state!==4)return;const C=l;let f;if(!C.length)return;f=C.pop();let p=f.target.scrollTop,v=f.target.scrollLeft;const x=f.flag;bl(u,`raf top: ${p}, left: ${v}`);const k=gZ(u,u.f_final_top===w0?u.final_top:p),O=k[0],$=k[1],D=k[2],V=u._offset_head,I=u._offset_tail,N=u._offset_top;let F;switch(x){case G1:bl(u,"SCROLLEVT_INIT"),F=!1;break;case nl:bl(u,"SCROLLEVT_BY_HOOK"),O===V&&$===I&&D===N?(u.f_final_top=UT,u.final_top===-1&&(p=u.computed_h-u._y),F=!0):(u.final_top===-1&&(p=D),F=!1);break;case K1:if(bl(u,"SCROLLEVT_RECOMPUTE"),O===V&&$===I&&D===N){h.current=0,C.length&&g(null);return}F=!1;break;case VT:if(bl(u,"SCROLLEVT_NATIVE"),h.current=0,C.length=0,u.onScroll&&u.onScroll({top:p,left:v,isEnd:f.end}),O===V&&$===I&&D===N)return;F=f.end;break}qT(u,D,O,$),vZ(u,p,v,x,F),i[1](++u.update_count)},[]),A.useImperativeHandle(t,()=>{const _=C=>{u.f_final_top=w0,u.final_top=C,g({target:{scrollTop:C,scrollLeft:-1},flag:nl})};return{scrollTo:C=>{o.current=()=>_(C),o.current()},scrollToIndex:C=>{o.current=()=>{C>u.row_count-1&&(C=u.row_count-1),C<0&&(C=0);let f=0;for(let p=0;p<C;++p)f+=u.row_height[p];_(f)},o.current()}}},[]),A.useEffect(()=>{u.wrap_inst.current.parentElement.onscroll=b},[s]),A.useEffect(()=>{g({flag:nl,target:{scrollLeft:u.left,scrollTop:u.top}})},[u.scroll.y]),A.useEffect(()=>{switch(u.evt){case nl:u.f_final_top===w0?o.current():DE(u,u.top,u.left);break;case G1:case K1:DE(u,u.top,u.left),l.length&&d(0);break}},[i[0]]),A.useEffect(()=>{switch(u.vt_state){case 1:break;case 2:u.vt_state=4,g({target:{scrollTop:u.top,scrollLeft:0},flag:G1});break;case 4:u.re_computed!==0&&(u.re_computed=0,g({target:{scrollTop:u.top,scrollLeft:u.left},flag:K1}));break}}),r.position="relative",r.top=u._offset_top;const{width:y,...w}=r,S=A.useMemo(()=>({width:y,minWidth:"100%",position:"relative",transform:"matrix(1, 0, 0, 1, 0, 0)"}),[y]),E=u.components.table;return B.jsx("div",{ref:s,style:S,children:B.jsx(n.Provider,{value:{...u},children:B.jsx(E,{...a,style:w})})})},xZ=e=>{const{children:t,ctx:r,...n}=e,a=t[0],i=t[1],o=r.components.body.wrapper;let s=Array.isArray(i)?i.length:0,{_offset_head:u,_offset_tail:l}=r,h=[];switch(r.vt_state){case 1:s>=0&&(console.assert(u===0),console.assert(l===1),Array.isArray(i)?(h=i.slice(u,l),h[0].props.record[Ny]=0):h=i,r.re_computed=s,r.prev_row_count=s,r.row_count=s);break;case 4:{if(l>s){const g=l-s;l-=g,u-=g,u<0&&(u=0),l<0&&(l=0),qT(r,r._offset_top,u,l)}r.row_count!==s&&_Z(r,s),s=r.row_count;const d=r.prev_row_count;if(s<d)yZ(r,s,d);else if(s>d){const g=r.row_height;s-g.length>0?YT(r,s,g.length,r.possible_hight_per_tr):(g.fill(r.possible_hight_per_tr,d,s),r.computed_h+=r.possible_hight_per_tr*(s-d))}if(s){let g=u;h=i.slice(g,l),h.forEach(b=>b.props.record[Ny]=g++)}else h=i;r.prev_row_count=r.row_count}break;case 2:console.assert(!1);break}return B.jsxs(o,{...n,children:[a,h]})},SZ=e=>{const t=P.createRef(),{ctx:r,...n}=e,a=e.children,i=r.components.body.row;if(!Array.isArray(a))return B.jsx(i,{...n,children:a});const o=a[0].props,s=o.record[Ny],u=A.useRef(s),l=A.useMemo(()=>`.${o.prefixCls}-expanded-row`,[o.prefixCls]);return A.useEffect(()=>(r.vt_state===4?X1(r):(console.assert(r.vt_state===1),r.vt_state=2,r.possible_hight_per_tr=t.current.offsetHeight,YT(r,r.row_count,0,r.possible_hight_per_tr),WT(r,16)),()=>X1(r)),[]),A.useEffect(()=>{const h=t.current;let d=h.offsetHeight,g=h.nextSibling;for(;g&&g.matches(l);)d+=g.offsetHeight,g=g.nextSibling;const b=r.row_height[s],y=r.row_height[u.current];r.computed_h-=b,r.computed_h+=y,r.computed_h+=d-y,r.row_height[s]=d,X1(r)}),B.jsx(i,{...n,ref:t})};function GT(e,t){const{table:r,body:n,header:a}=t;e.components.body={...e.components.body,...n},n&&n.cell&&(e._vtcomponents.body.cell=n.cell),a&&(e.components.header=a,e._vtcomponents.header=a),r&&(e.components.table=r)}function CZ(e,t){const r=A.useRef(P.createContext({})).current,n=A.useContext(r),a=A.useRef({scrollTo:i=>{},scrollToIndex:i=>{}});return A.useMemo(()=>Object.assign(n,{id:(+new Date).toString(36).slice(4),initTop:0,overscanRowCount:20,debug:!1,ref:a},e()),t),A.useMemo(()=>{const i=P.forwardRef(wZ);n._vtcomponents={table:o=>B.jsx(i,{...o,context:r,ref:n.ref}),body:{wrapper:o=>B.jsx(r.Consumer,{children:()=>B.jsx(xZ,{...o,ctx:n})}),row:o=>B.jsx(SZ,{...o,ctx:n})}},n.components={},GT(n,{table:hZ,body:{wrapper:pZ,row:mZ}}),n.vt_state=1},[]),n}const ME=1,EZ=2;(function(){if((typeof window=="object"&&window instanceof Window?ME:EZ)&ME&&!Object.hasOwnProperty.call(window,"requestAnimationFrame")&&!window.requestAnimationFrame)throw new Error("Please using the modern browers or appropriate polyfill!")})();function OZ(e,t){const r=CZ(e,t||[]);return[r._vtcomponents,n=>GT(r,n),r.ref]}const RZ=({hideFooter:e,contentRef:t,tableRef:r,scroll:n,fullScreenMinusHeight:a,scrollUpdate:i,onTableHeightChange:o},s)=>{const[u,l]=A.useState(0),h=di(n);return A.useEffect(()=>{const d=()=>{var y,w,S;const b=(E=>{for(var _=E.offsetTop,C=E.offsetParent;C!==null;)_+=C.offsetTop,C=C.offsetParent;return _})(t.current);if(r.current){const E=t.current.querySelectorAll(".frontend-table-body")[0].getElementsByTagName("div")[0],_=t.current.querySelectorAll(".frontend-table-body")[0],C=34+(e?0:15);if(E){const f=_r.autoTableHeight(s?C:b+C),p=f-(a||0);n!=null&&n.y?i?i==null||i(s,p):(l(s?p:Number((y=h.current)==null?void 0:y.y)),E.style.minHeight=(s?p:Number((w=h.current)==null?void 0:w.y))-10+"px",_.style.minHeight=(s?p:Number((S=h.current)==null?void 0:S.y))+"px"):(l(s?p:f),E.style.minHeight=(s?p:f)-10+"px",_.style.minHeight=(s?p:f)+"px")}}};return d(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)}},[s,n]),A.useEffect(()=>{o==null||o(u)},[u]),u};var Od={exports:{}},Rd={},x0={},NE;function TZ(){if(NE)return x0;NE=1,x0.__esModule=!0,x0.cloneElement=s;var e=t(A);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,l){var h=Object.keys(u);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(u);l&&(d=d.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),h.push.apply(h,d)}return h}function n(u){for(var l=1;l<arguments.length;l++){var h=arguments[l]!=null?arguments[l]:{};l%2?r(Object(h),!0).forEach(function(d){a(u,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(h)):r(Object(h)).forEach(function(d){Object.defineProperty(u,d,Object.getOwnPropertyDescriptor(h,d))})}return u}function a(u,l,h){return l=i(l),l in u?Object.defineProperty(u,l,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[l]=h,u}function i(u){var l=o(u,"string");return typeof l=="symbol"?l:String(l)}function o(u,l){if(typeof u!="object"||u===null)return u;var h=u[Symbol.toPrimitive];if(h!==void 0){var d=h.call(u,l);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(u)}function s(u,l){return l.style&&u.props.style&&(l.style=n(n({},u.props.style),l.style)),l.className&&u.props.className&&(l.className=u.props.className+" "+l.className),e.default.cloneElement(u,l)}return x0}var Td={},IE;function KT(){if(IE)return Td;IE=1,Td.__esModule=!0,Td.resizableProps=void 0;var e=t(Gf());yw();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return Td.resizableProps=r,Td}var FE;function XT(){if(FE)return Rd;FE=1,Rd.__esModule=!0,Rd.default=void 0;var e=o(A),t=yw(),r=TZ(),n=KT(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(E){if(typeof WeakMap!="function")return null;var _=new WeakMap,C=new WeakMap;return(i=function(p){return p?C:_})(E)}function o(E,_){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var C=i(_);if(C&&C.has(E))return C.get(E);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in E)if(v!=="default"&&Object.prototype.hasOwnProperty.call(E,v)){var x=p?Object.getOwnPropertyDescriptor(E,v):null;x&&(x.get||x.set)?Object.defineProperty(f,v,x):f[v]=E[v]}return f.default=E,C&&C.set(E,f),f}function s(){return s=Object.assign?Object.assign.bind():function(E){for(var _=1;_<arguments.length;_++){var C=arguments[_];for(var f in C)Object.prototype.hasOwnProperty.call(C,f)&&(E[f]=C[f])}return E},s.apply(this,arguments)}function u(E,_){if(E==null)return{};var C={},f=Object.keys(E),p,v;for(v=0;v<f.length;v++)p=f[v],!(_.indexOf(p)>=0)&&(C[p]=E[p]);return C}function l(E,_){var C=Object.keys(E);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(E);_&&(f=f.filter(function(p){return Object.getOwnPropertyDescriptor(E,p).enumerable})),C.push.apply(C,f)}return C}function h(E){for(var _=1;_<arguments.length;_++){var C=arguments[_]!=null?arguments[_]:{};_%2?l(Object(C),!0).forEach(function(f){d(E,f,C[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(C)):l(Object(C)).forEach(function(f){Object.defineProperty(E,f,Object.getOwnPropertyDescriptor(C,f))})}return E}function d(E,_,C){return _=g(_),_ in E?Object.defineProperty(E,_,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[_]=C,E}function g(E){var _=b(E,"string");return typeof _=="symbol"?_:String(_)}function b(E,_){if(typeof E!="object"||E===null)return E;var C=E[Symbol.toPrimitive];if(C!==void 0){var f=C.call(E,_);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(E)}function y(E,_){E.prototype=Object.create(_.prototype),E.prototype.constructor=E,w(E,_)}function w(E,_){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,p){return f.__proto__=p,f},w(E,_)}var S=function(E){y(_,E);function _(){for(var f,p=arguments.length,v=new Array(p),x=0;x<p;x++)v[x]=arguments[x];return f=E.call.apply(E,[this].concat(v))||this,f.handleRefs={},f.lastHandleRect=null,f.slack=null,f}var C=_.prototype;return C.componentWillUnmount=function(){this.resetData()},C.resetData=function(){this.lastHandleRect=this.slack=null},C.runConstraints=function(p,v){var x=this.props,k=x.minConstraints,O=x.maxConstraints,$=x.lockAspectRatio;if(!k&&!O&&!$)return[p,v];if($){var D=this.props.width/this.props.height,V=p-this.props.width,I=v-this.props.height;Math.abs(V)>Math.abs(I*D)?v=p/D:p=v*D}var N=p,F=v,T=this.slack||[0,0],M=T[0],j=T[1];return p+=M,v+=j,k&&(p=Math.max(k[0],p),v=Math.max(k[1],v)),O&&(p=Math.min(O[0],p),v=Math.min(O[1],v)),this.slack=[M+(N-p),j+(F-v)],[p,v]},C.resizeHandler=function(p,v){var x=this;return function(k,O){var $=O.node,D=O.deltaX,V=O.deltaY;p==="onResizeStart"&&x.resetData();var I=(x.props.axis==="both"||x.props.axis==="x")&&v!=="n"&&v!=="s",N=(x.props.axis==="both"||x.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!I&&!N)){var F=v[0],T=v[v.length-1],M=$.getBoundingClientRect();if(x.lastHandleRect!=null){if(T==="w"){var j=M.left-x.lastHandleRect.left;D+=j}if(F==="n"){var H=M.top-x.lastHandleRect.top;V+=H}}x.lastHandleRect=M,T==="w"&&(D=-D),F==="n"&&(V=-V);var z=x.props.width+(I?D/x.props.transformScale:0),U=x.props.height+(N?V/x.props.transformScale:0),G=x.runConstraints(z,U);z=G[0],U=G[1];var X=z!==x.props.width||U!==x.props.height,K=typeof x.props[p]=="function"?x.props[p]:null,ne=p==="onResize"&&!X;K&&!ne&&(k.persist==null||k.persist(),K(k,{node:$,size:{width:z,height:U},handle:v})),p==="onResizeStop"&&x.resetData()}}},C.renderResizeHandle=function(p,v){var x=this.props.handle;if(!x)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+p,ref:v});if(typeof x=="function")return x(p,v);var k=typeof x.type=="string",O=h({ref:v},k?{}:{handleAxis:p});return e.cloneElement(x,O)},C.render=function(){var p=this,v=this.props,x=v.children,k=v.className,O=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var $=v.resizeHandles;v.transformScale;var D=u(v,a);return(0,r.cloneElement)(x,h(h({},D),{},{className:(k?k+" ":"")+"react-resizable",children:[].concat(x.props.children,$.map(function(V){var I,N=(I=p.handleRefs[V])!=null?I:p.handleRefs[V]=e.createRef();return e.createElement(t.DraggableCore,s({},O,{nodeRef:N,key:"resizableHandle-"+V,onStop:p.resizeHandler("onResizeStop",V),onStart:p.resizeHandler("onResizeStart",V),onDrag:p.resizeHandler("onResize",V)}),p.renderResizeHandle(V,N))}))}))},_}(e.Component);return Rd.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Rd}var Pd={},jE;function PZ(){if(jE)return Pd;jE=1,Pd.__esModule=!0,Pd.default=void 0;var e=s(A),t=i(Gf()),r=i(XT()),n=KT(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(_){return _&&_.__esModule?_:{default:_}}function o(_){if(typeof WeakMap!="function")return null;var C=new WeakMap,f=new WeakMap;return(o=function(v){return v?f:C})(_)}function s(_,C){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var f=o(C);if(f&&f.has(_))return f.get(_);var p={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in _)if(x!=="default"&&Object.prototype.hasOwnProperty.call(_,x)){var k=v?Object.getOwnPropertyDescriptor(_,x):null;k&&(k.get||k.set)?Object.defineProperty(p,x,k):p[x]=_[x]}return p.default=_,f&&f.set(_,p),p}function u(){return u=Object.assign?Object.assign.bind():function(_){for(var C=1;C<arguments.length;C++){var f=arguments[C];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(_[p]=f[p])}return _},u.apply(this,arguments)}function l(_,C){var f=Object.keys(_);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(_);C&&(p=p.filter(function(v){return Object.getOwnPropertyDescriptor(_,v).enumerable})),f.push.apply(f,p)}return f}function h(_){for(var C=1;C<arguments.length;C++){var f=arguments[C]!=null?arguments[C]:{};C%2?l(Object(f),!0).forEach(function(p){d(_,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(f)):l(Object(f)).forEach(function(p){Object.defineProperty(_,p,Object.getOwnPropertyDescriptor(f,p))})}return _}function d(_,C,f){return C=g(C),C in _?Object.defineProperty(_,C,{value:f,enumerable:!0,configurable:!0,writable:!0}):_[C]=f,_}function g(_){var C=b(_,"string");return typeof C=="symbol"?C:String(C)}function b(_,C){if(typeof _!="object"||_===null)return _;var f=_[Symbol.toPrimitive];if(f!==void 0){var p=f.call(_,C);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(_)}function y(_,C){if(_==null)return{};var f={},p=Object.keys(_),v,x;for(x=0;x<p.length;x++)v=p[x],!(C.indexOf(v)>=0)&&(f[v]=_[v]);return f}function w(_,C){_.prototype=Object.create(C.prototype),_.prototype.constructor=_,S(_,C)}function S(_,C){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,v){return p.__proto__=v,p},S(_,C)}var E=function(_){w(C,_);function C(){for(var p,v=arguments.length,x=new Array(v),k=0;k<v;k++)x[k]=arguments[k];return p=_.call.apply(_,[this].concat(x))||this,p.state={width:p.props.width,height:p.props.height,propsWidth:p.props.width,propsHeight:p.props.height},p.onResize=function(O,$){var D=$.size;p.props.onResize?(O.persist==null||O.persist(),p.setState(D,function(){return p.props.onResize&&p.props.onResize(O,$)})):p.setState(D)},p}C.getDerivedStateFromProps=function(v,x){return x.propsWidth!==v.width||x.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var f=C.prototype;return f.render=function(){var v=this.props,x=v.handle,k=v.handleSize;v.onResize;var O=v.onResizeStart,$=v.onResizeStop,D=v.draggableOpts,V=v.minConstraints,I=v.maxConstraints,N=v.lockAspectRatio,F=v.axis;v.width,v.height;var T=v.resizeHandles,M=v.style,j=v.transformScale,H=y(v,a);return e.createElement(r.default,{axis:F,draggableOpts:D,handle:x,handleSize:k,height:this.state.height,lockAspectRatio:N,maxConstraints:I,minConstraints:V,onResizeStart:O,onResize:this.onResize,onResizeStop:$,resizeHandles:T,transformScale:j,width:this.state.width},e.createElement("div",u({},H,{style:h(h({},M),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},C}(e.Component);return Pd.default=E,E.propTypes=h(h({},n.resizableProps),{},{children:t.default.element}),Pd}var LE;function kZ(){return LE||(LE=1,Od.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Od.exports.Resizable=XT().default,Od.exports.ResizableBox=PZ().default),Od.exports}var $Z=kZ();const AZ=e=>{const{onResizeOver:t,onResizeStop:r,trulyHeight:n,onResize:a,width:i,onClick:o,required:s,editable:u,formitem:l,dataIndex:h,...d}=e,g=A.useRef(),b=()=>{const C=u?l&&l.props&&l.props.disabled:!0;if(!C&&s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&s)return{fontWeight:"400"};if(!C&&!s)return{fontStyle:"italic",fontWeight:"400",color:"#000000"};if(C&&!s)return{fontWeight:"400"}},y=Sa({resizing:!1}),[w,S]=A.useState(0);A.useEffect(()=>{document.querySelectorAll(".react-resizable .react-resizable-handle").forEach(f=>f.addEventListener("click",p=>!1))},[]);const[E,_]=A.useState(0);return!i||h==="id"?B.jsx("th",{...d,onClick:o,style:{...d.style,...b()},onKeyDown:()=>{},className:`${d.className} ${s?"frontend-table-column-required":""}`}):B.jsx($Z.Resizable,{axis:"x",width:i+E,height:0,handle:B.jsx("span",{onClick:C=>{C.stopPropagation(),C.preventDefault()},className:ge(["react-resizable-handle",E&&"active"])}),onResize:(C,{size:f,...p})=>{const v=document.getElementById("table-resize-handle");if(v){const x=document.getElementById(`table_key_${e.tableKey}`);C.pageX>x.getBoundingClientRect().left+x.getBoundingClientRect().width||C.pageX<x.getBoundingClientRect().left?v.style.width="0px":(v.style.width="1px",v.style.background="#0563B2",v.style.zIndex="9999",v.style.top=`${p.node.getBoundingClientRect().top}px`,v.style.position="fixed",v.style.height=`${n}px`,v.style.left=`${C.pageX}px`)}t(C),y.resizing=!0,_(f.width-i)},onResizeStop:(...C)=>{var f;C[0].stopPropagation(),(f=document.getElementById("table-resize-handle"))==null||f.remove(),r(),_(0),a(...C),setTimeout(()=>{y.resizing=!1})},onResizeStart:C=>{document.getElementById(`table_key_${e.tableKey}`);const f=document.createElement("div");f.id="table-resize-handle",document.body.appendChild(f),y.resizing=!0,C.stopPropagation()},draggableOpts:{enableUserSelectHack:!1},children:B.jsx("th",{ref:g,onClick:(...C)=>{!y.resizing&&o&&o(...C)},...d,style:{...d.style,...b()},onKeyDown:()=>{},className:`${d.className} ${s?"frontend-table-column-required":""}`})})};function Of(){return Of=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Of.apply(this,arguments)}function ZT(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var JT=A.createContext({});function DZ(){return A.useContext(JT)}var MZ=function(t){return A.createElement(JT.Provider,{value:t.refTracker},t.children)};function NZ(){var e=new Map;return{on:function(r,n){var a;return e.has(r)?(a=e.get(r))==null||a.add(n):e.set(r,new Set([n])),this},off:function(r,n){return n?e.get(r).delete(n):e.delete(r),this},emit:function(r,n){if(process.env.NODE!=="production"){var a=r;!e.has(r)&&a!==0&&console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+r)}return e.has(r)&&e.get(r).forEach(function(i){i(n)}),this}}}var Ap=NZ();function IZ(e){var t=A.useRef();return A.useEffect(function(){t.current=e},[e]),t.current}function FZ(){return A.useRef(new Map).current}var zE={show:function(t){var r=t.id,n=t.event,a=t.props,i=t.position;n.preventDefault&&n.preventDefault(),Ap.emit(0).emit(r,{event:n.nativeEvent||n,props:a,position:i})},hideAll:function(){Ap.emit(0)}};function jZ(e){return{show:function(r,n){process.env.NODE_ENV==="development"&&!(e!=null&&e.id)&&!(n!=null&&n.id)&&console.error("You need to provide an id when initializing the hook `useContextMenu({ id: 'your id' })` or when you display the menu `show(e, { id: 'your id' })`. The later is used to override the one defined during initialization."),zE.show({id:(n==null?void 0:n.id)||(e==null?void 0:e.id),props:(n==null?void 0:n.props)||(e==null?void 0:e.props),event:r,position:n==null?void 0:n.position})},hideAll:function(){zE.hideAll()}}}function LZ(){var e=new Map,t,r,n,a,i=!1;function o(w){a=w,t=-1,n=!0}function s(){a[t].node.focus()}function u(){return t>=0&&a[t].isSubmenu}function l(){return Array.from(a[t].submenuRefTracker.values())}function h(){return t===-1?(d(),!1):!0}function d(){t+1<a.length?t++:t+1===a.length&&(t=0),i&&y(),s()}function g(){t===-1||t===0?t=a.length-1:t-1<a.length&&t--,i&&y(),s()}function b(){if(h()&&u()){var w=l(),S=a[t].node;return e.set(S,{isRoot:n,focusedIndex:t,parentNode:r||S,items:a}),S.classList.add("react-contexify__submenu--is-open"),r=S,w.length>0?(t=0,a=w):i=!0,n=!1,s(),!0}return!1}function y(){if(h()&&!n){var w=e.get(r),S=w.isRoot,E=w.items,_=w.focusedIndex,C=w.parentNode;r.classList.remove("react-contexify__submenu--is-open"),a=E,r=C,S&&(n=!0,e.clear()),i||(t=_,s())}}return{init:o,moveDown:d,moveUp:g,openSubmenu:b,closeSubmenu:y}}var Iy=function(){};function QT(e){return typeof e=="function"}function eP(e){return typeof e=="string"}function zZ(e){return e.type==="touchend"}function BZ(e,t){return A.Children.map(A.Children.toArray(e).filter(Boolean),function(r){return A.cloneElement(r,t)})}function HZ(e){var t={x:0,y:0};return zZ(e)&&e.changedTouches&&e.changedTouches.length>0?(t.x=e.changedTouches[0].clientX,t.y=e.changedTouches[0].clientY):(t.x=e.clientX,t.y=e.clientY),(!t.x||t.x<0)&&(t.x=0),(!t.y||t.y<0)&&(t.y=0),t}function BE(e,t){return QT(e)?e(t):e}function VZ(e){return!!(e&&(eP(e)||"exit"in e&&e.exit))}function UZ(e,t){return QT(t)?Of({},e,t(e)):Of({},e,t)}var qZ=function(t){var r,n=t.id,a=t.theme,i=t.style,o=t.className,s=t.children,u=t.animation,l=u===void 0?"scale":u,h=t.onHidden,d=h===void 0?Iy:h,g=t.onShown,b=g===void 0?Iy:g,y=ZT(t,["id","theme","style","className","children","animation","onHidden","onShown"]),w=A.useReducer(UZ,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),S=w[0],E=w[1],_=A.useRef(null),C=A.useRef(!1),f=IZ(S.visible),p=FZ(),v=A.useState(function(){return LZ()}),x=v[0];A.useEffect(function(){return C.current=!0,Ap.on(n,k).on(0,O),function(){Ap.off(n,k).off(0,O)}},[n]),A.useEffect(function(){C.current&&S.visible!==f&&(S.visible?b():d())},[S.visible,d,b]),A.useEffect(function(){S.visible?x.init(Array.from(p.values())):p.clear()},[S.visible,x,p]),A.useEffect(function(){if(S.visible){var z=window,U=z.innerWidth,G=z.innerHeight,X=_.current,K=X.offsetWidth,ne=X.offsetHeight,ae=S.x,ie=S.y;ae+K>U&&(ae-=ae+K-U),ie+ne>G&&(ie-=ie+ne-G),E({x:ae,y:ie})}},[S.visible]),A.useEffect(function(){function z(U){switch(U.preventDefault(),U.key){case"Enter":x.openSubmenu()||O();break;case"Escape":O();break;case"ArrowUp":x.moveUp();break;case"ArrowDown":x.moveDown();break;case"ArrowRight":x.openSubmenu();break;case"ArrowLeft":x.closeSubmenu();break}}return S.visible&&(window.addEventListener("resize",O),window.addEventListener("contextmenu",O),window.addEventListener("click",O),window.addEventListener("scroll",O),window.addEventListener("keydown",z),process.env.NODE_ENV!=="development"&&window.addEventListener("blur",O)),function(){window.removeEventListener("resize",O),window.removeEventListener("contextmenu",O),window.removeEventListener("click",O),window.removeEventListener("scroll",O),window.removeEventListener("keydown",z),process.env.NODE_ENV!=="development"&&window.removeEventListener("blur",O)}},[S.visible,x]);function k(z){var U=z.event,G=z.props,X=z.position;U.stopPropagation();var K=X||HZ(U),ne=K.x,ae=K.y;setTimeout(function(){E({visible:!0,willLeave:!1,x:ne,y:ae,triggerEvent:U,propsFromTrigger:G})},0)}function O(z){var U=z;typeof U<"u"&&(U.button===2||U.ctrlKey===!0)&&U.type!=="contextmenu"||(VZ(l)?E(function(G){return{willLeave:G.visible}}):E(function(G){return{visible:G.visible?!1:G.visible}}))}function $(){S.willLeave&&S.visible&&E({visible:!1,willLeave:!1})}function D(){if(!l)return null;if(eP(l)){var z;return Al((z={},z["react-contexify__will-enter--"+l]=l&&V&&!M,z["react-contexify__will-leave--"+l+" react-contexify__will-leave--'disabled'"]=l&&V&&M,z))}else if("enter"in l&&"exit"in l){var U;return Al((U={},U["react-contexify__will-enter--"+l.enter]=l.enter&&V&&!M,U["react-contexify__will-leave--"+l.exit+" react-contexify__will-leave--'disabled'"]=l.exit&&V&&M,U))}return null}var V=S.visible,I=S.triggerEvent,N=S.propsFromTrigger,F=S.x,T=S.y,M=S.willLeave,j=Al("react-contexify",o,(r={},r["react-contexify__theme--"+a]=a,r),D()),H=Of({},i,{left:F,top:T,opacity:1});return A.createElement(MZ,{refTracker:p},V&&A.createElement("div",Object.assign({},y,{className:j,onAnimationEnd:$,style:H,ref:_,role:"menu"}),BZ(s,{propsFromTrigger:N,triggerEvent:I})))},HE=function(t){var r,n=t.children,a=t.className,i=t.style,o=t.triggerEvent,s=t.data,u=t.propsFromTrigger,l=t.onClick,h=l===void 0?Iy:l,d=t.disabled,g=d===void 0?!1:d,b=t.hidden,y=b===void 0?!1:b,w=ZT(t,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),S=DZ(),E={data:s,triggerEvent:o,props:u},_=BE(g,E),C=BE(y,E);function f(k){E.event=k,_?k.stopPropagation():h(E)}function p(k){k&&!_&&S.set(k,{node:k,isSubmenu:!1})}function v(k){k.key==="Enter"&&(E.event=k,h(E))}if(C)return null;var x=Al("react-contexify__item",a,(r={},r["react-contexify__item--disabled"]=_,r));return A.createElement("div",Object.assign({},w,{className:x,style:i,onClick:f,onKeyDown:v,ref:p,tabIndex:-1,role:"menuitem","aria-disabled":_}),A.createElement("div",{className:"react-contexify__item__content"},n))};const WZ="_box_1ybrt_2",YZ="_transferSearch_1ybrt_2",GZ="_searchBtn_1ybrt_10",KZ="_shuttle_box_1ybrt_40",XZ="_leftSearch_1ybrt_54",ZZ="_noBeforeAfter_1ybrt_58",JZ="_rightSearch_1ybrt_74",QZ="_transfer_1ybrt_2",Uo={box:WZ,transferSearch:YZ,searchBtn:GZ,shuttle_box:KZ,leftSearch:XZ,noBeforeAfter:ZZ,rightSearch:JZ,transfer:QZ},eJ="_content_1tmh1_1",tJ={content:eJ},tP=A.forwardRef((e,t)=>{const{panes:r,loading:n,defaultActiveKey:a,onTabClick:i}=e,[o,s]=A.useState(a),{TabPane:u}=ue.Tabs;return n?B.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:B.jsx(ec,{})}):(A.useImperativeHandle(t,()=>({active:l=>{(i==null?void 0:i(l))!==!1&&s(l)}}),[o]),B.jsx("div",{className:`${tJ.content} ${e.className??""}`,children:n?B.jsx("div",{style:{padding:"10px"}}):r.length?B.jsx(ue.Tabs,{animated:!1,activeKey:o,destroyInactiveTabPane:!0,tabBarGutter:30,onTabClick:l=>{(i==null?void 0:i(l))!==!1&&s(l)},children:(r||[]).map((l,h)=>B.jsx(u,{tab:B.jsxs("div",{style:{display:"flex",alignItems:"center",paddingBottom:"2px"},children:[l.icon&&B.jsx(Dt,{style:{marginRight:"5px",fontSize:"16px"},type:`${l.icon}`}),B.jsx("div",{style:{fontSize:"12px",lineHeight:"18px"},children:l.tab})]}),children:B.jsx("div",{style:{padding:"0px"},children:A.Children.map(e.children,d=>{var g;return((g=d==null?void 0:d.props)==null?void 0:g["data-key"])==l.tabKey?d:null})})},`${l.tabKey}`))}):B.jsx(B.Fragment,{})}))}),rJ=A.forwardRef((e,t)=>{var H;const r=e.defaultValue?Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue]:[],n=e.defaultActiveKey||"",[a,i]=A.useState(!1),[o,s]=A.useState(),[u,l]=A.useState(r),[h,d]=A.useState([]),[g,b]=A.useState(n),[y,w]=A.useState({[n]:{left:1,right:1}}),[S,E]=A.useState({[n]:{left:0,right:0}}),[_,C]=A.useState(""),[f,p]=A.useState({right:"",left:""}),[v,x]=A.useState(!1),[k,O]=A.useState({});A.useEffect(()=>{l(r),b(n),w({[n]:{left:1,right:1}})},[e.defaultActiveKey,e.defaultValue]),A.useEffect(()=>{a?F():(l(r),s(void 0),b(n),w({[n]:{left:1,right:1}}),C(""),p({right:"",left:""}),O({}))},[a]);const $=di(f),D=di(y),V=di(g),I=di(S),N=A.useMemo(()=>{const z=()=>{var U;return o||((U=e.allListOptions)==null?void 0:U[V.current])||[]};return _e.uniqBy([...z(),...h],"id")},[V,g,e.allListOptions,o,h]),F=async z=>{x(!0),await e.getListCodeItem(Object.assign({search:$.current,tabKey:V.current,pageNo:D},_e.omit(z||{},"isPaging"))).then(U=>{U&&(z!=null&&z.isPaging?s([...N,...U]):s([...U]),E(Object.assign({},I.current,{[V.current]:{left:U.total||U.length,right:0}})))}).finally(()=>{x(!1)})};A.useEffect(()=>{d(N.filter(z=>u.includes(z.id)))},[u]);const T=async()=>{var z,U;if(e.mandatory&&!u.length)return ue.message.error(`${J("sys.mustSelect.mustSelect",{placeholder:"必须选择"})}${(z=e.attr)==null?void 0:z.name}`);(U=k.ok)==null||U.call(k,[...u],g,h),i(!1)};A.useImperativeHandle(t,()=>({open(z){O(()=>z),i(!0)},submit:T,dataSource:N,targetKeys:u,loading:v}),[N,u,v]);const M=z=>{z=="left"?F():C($.current.right)},j=A.useMemo(()=>{var z;return Array.isArray(e.columns)?e.columns:((z=e.columns)==null?void 0:z[g])||[]},[e.columns,g]);return B.jsx($u,{className:Uo.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:e.modalWidth||650,visible:a,mask:!1,onOk:T,onCancel:()=>{var z;(z=k.cancel)==null||z.call(k),i(!1)},children:B.jsx("div",{className:Uo.transferBox,children:B.jsx(ec,{spinning:v,children:B.jsx(ue.Transfer,{...e.transfer||{},className:`${Uo.transfer} ${((H=e.transfer)==null?void 0:H.className)??""}`,dataSource:N,targetKeys:u,onChange:(z,U,G)=>{U=="right"?l([...e.isRadio?G:z]):l([...z])},rowKey:z=>z.id,children:z=>{var me,ee,ve,se,fe,he,ke,Te;const{direction:U,filteredItems:G,onItemSelectAll:X,onItemSelect:K,selectedKeys:ne,showSearch:ae}=z,ie=U=="left",de=!ie,pe={onSelectAll(xe,$e){if(e.isRadio)return;const Pe=$e.filter(Ee=>!Ee.disabled).map(({id:Ee})=>Ee),Ne=xe?_e.difference(Pe,ne):_e.difference(ne,Pe);X(Ne,xe)},onSelect({id:xe},$e){e.isRadio&&ne.splice(0,1),K(xe,$e)},getCheckboxProps:xe=>({disabled:xe.Number&&!fi.readPermission(xe.Number)?!0:ie?xe.disabled:!1}),selectedRowKeys:ne,columnWidth:13};(me=e==null?void 0:e.pager)!=null&&me[g];const be=()=>ie?G:G.filter(xe=>xe.label.includes(_)||xe.Description.includes(_));return B.jsxs("div",{className:Uo.box,style:e.scroll?{width:"360px"}:{},children:[ie&&e.panes&&((ee=e.panes)==null?void 0:ee.length)!=1?B.jsx(tP,{panes:e.panes,defaultActiveKey:g,onTabClick:xe=>{var Pe;b(xe),(Pe=e.onTabsChange)==null||Pe.call(e,xe);const $e={...f,[U]:""};p($e),D.current[xe]||w(Object.assign({},D.current,{[xe]:{left:1,right:1}})),F({tabKey:xe,search:$e})}}):null,ae?B.jsx("div",{style:e.scroll?{padding:"12px",borderLeft:"1px solid #E0E0E0",borderTop:"1px solid #E0E0E0",borderRight:"1px solid #E0E0E0"}:{padding:"0px"},children:B.jsx("div",{className:`${e.scroll?Uo.noBeforeAfter:""} ${Uo.transferSearch} ${ie&&((ve=e.panes)!=null&&ve.length)?Uo.leftSearch:(se=e.panes)!=null&&se.length?Uo.rightSearch:""}`,style:e.scroll?{margin:"0px"}:{},children:B.jsx(ue.Input.Search,{placeholder:e.placeholder||J("sys.nameOrDescription.enterNameOrDescription",{placeholder:"请输入名称或描述"}),enterButton:null,value:f[U],onChange:xe=>{xe.persist();const $e=xe.target.value;p({...f,[U]:$e}),de&&($e||C(""))},onSearch:M.bind(null,U),suffix:B.jsx("div",{className:Uo.searchBtn,onClick:M.bind(null,U),children:B.jsx(Dt,{type:"homesearch"})})})})}):null,B.jsx(wm,{rowSelection:{type:"checkbox",fixed:!0,...pe},columns:j,showSorterTooltip:!1,hideFooter:!0,pagination:!1,dataSource:be(),scroll:{x:((fe=e.scroll)==null?void 0:fe.x)||300,y:((he=e.scroll)==null?void 0:he.y)||(ie&&((ke=e.panes)!=null&&ke.length)?270:316)},style:{height:"100%"},pageNo:y[g][U],pageSize:ie?20:void 0,total:ie?(Te=S==null?void 0:S[g])==null?void 0:Te[U]:void 0,size:"small",onScroll:xe=>{const $e={...y,[g]:{...y[g],[U]:xe}};w($e),ie&&F({pageNo:$e[g],isPaging:!0})},onRow:({id:xe,disabled:$e,...Pe})=>({onClick:()=>{if(!$e&&ie){if(e.isRadio&&ne.splice(0,1),!fi.readPermission(Pe.Number))return;K(xe,!ne.includes(xe))}},onDoubleClick:()=>{if(fi.readPermission(Pe.Number)){if(ie)$e||(e.isRadio?l([xe]):l([xe,...u]));else{for(let Ne=0;Ne<u.length;Ne++)if(u[Ne]==xe){u.splice(Ne,1);break}l([...u])}X([],!1)}}})}),e.showFooter?B.jsxs("div",{style:{marginTop:"4px"},children:[B.jsx("span",{style:{color:"#999999"},children:J("sys.selected",{placeholder:"已选"})})," ",B.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:ne.length})," ",B.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})}),",",B.jsx("span",{style:{color:"#999999"},children:J("project.tab.plan.criticalPath.window.total",{placeholder:"共"})})," ",B.jsx("span",{style:{margin:"0px 2px",color:"#333333"},children:de?u.length:S[g][U]}),B.jsxs("span",{style:{color:"#999999"},children:[" ",J("project.tab.plan.criticalPath.window.item",{placeholder:"条"})]})]}):B.jsx(B.Fragment,{})]})}})})})})}),rP=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{var y,w;const i=A.useRef(null),{attr:o,allListOptions:s,popoverTransfer:u}=e,l=xu(()=>{var S;(S=i.current)==null||S.open({ok:(E,_,C)=>{var f,p;["multiple","tags"].includes(e.mode)?r==null||r(E):r==null||r(E[0]),(f=u==null?void 0:u.onSubmit)==null||f.call(u,E,_,v=>d({newVal:E,allOptions:v}),C),(p=e.onBlur)==null||p.call(e)},cancel:()=>{var E;(E=e.onBlur)==null||E.call(e)}})});A.useImperativeHandle(a,()=>({focus:l}),[]);const h=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[String(o==null?void 0:o.listCode)];return Object.entries(s||{}).map(([_,C])=>S.includes(_)?C:[]).flat(1)},[o,s,u==null?void 0:u.panes]),d=xu(({allOptions:S,newVal:E})=>{var f;const _=((f=u==null?void 0:u.panes)==null?void 0:f.map(p=>p.tabKey))||[o==null?void 0:o.listCode];let C=[];return Object.entries(S||s||{}).some(([p,v])=>{if(_.includes(p))return v.some(x=>{if(E&&(E==null?void 0:E.length)>1)return E.includes(x.value)&&!C.includes(p)&&C.push(p),!1;{const k=x.value==((E==null?void 0:E[0])||t);return k&&(C=[p]),k}})}),C.filter(Boolean).join(",")}),g=A.useMemo(()=>{var E;const S=((E=u==null?void 0:u.panes)==null?void 0:E.map(_=>_.tabKey))||[o==null?void 0:o.listCode];return S.length==1?S[0]:d({}).split(",")[0]},[t,s,u==null?void 0:u.panes]),b=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return B.jsxs("div",{children:[B.jsx(gu,{...e,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:b,filterOption:(S,E)=>E.label&&E.label.indexOf(S)>=0,showSearch:!0,disabled:n,options:h.map(S=>({...S,label:fi.readPermission(S.label)?S.label:J("sys.noPermission",{placeholder:"无权限"})})),allowClear:!0,optionLabelProp:"label",open:!1,onChange:S=>{["multiple","tags"].includes(e.mode)?r==null||r(S):S&&S instanceof Array?r==null||r(S[0]):r==null||r("")},tagRender:({label:S})=>fi.readPermission(S)?B.jsx(ue.Tag,{color:"#0563B2",children:S}):B.jsx(co,{}),onDropdownVisibleChange:l,onClear:()=>{["multiple","tags"].includes(e.mode)?r==null||r(""):r==null||r([])}}),B.jsx(rJ,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,defaultActiveKey:g||((w=(y=u==null?void 0:u.panes)==null?void 0:y[0])==null?void 0:w.tabKey)||"",defaultValue:b,allListOptions:s})]})}),nJ="_shuttle_box_1962p_1",aJ="_box_1962p_5",iJ="_search_1962p_8",S0={shuttle_box:nJ,box:aJ,search:iJ};function VE(e){const t=A.useRef(!1),r=A.useRef({}),n=u=>{if(typeof e=="function"){const l=e();return!u&&(r.current=l),Object.assign(Object.create(null),l)}else{const l=e;return!u&&(r.current=l),Object.assign(Object.create(null),e)}},[a,i]=A.useState(n(!0));A.useEffect(()=>(typeof e=="function"?r.current=e():r.current=e,t.current=!1,()=>{t.current=!0}),[]);const o=u=>{if(!t.current)if(typeof u=="function"){const l=Object.assign(Object.create(null),u(a)||a);r.current=l,i(l)}else{const l=Object.assign(Object.create(null),r.current,u);r.current=l,i(l)}},s=()=>i(n());return _r.makeDestructurable({store:a,setStore:o,resetStore:s,latestStore:r},[a,o,s,r])}const nP=A.forwardRef((e,t)=>{var S,E,_,C;e.defaultValue&&(Array.isArray(e.defaultValue)?e.defaultValue:e.defaultValue);const r=e.rowKey||"id",n=!((S=e.attr)!=null&&S.allowMultiple),a=!!((E=e.attr)!=null&&E.required),{store:i,setStore:o,resetStore:s,latestStore:u}=VE(()=>({visible:!1,search:"",sorters:"",filters:"",loading:!1,dataSource:[],selectedRows:[],callback:()=>{}})),l=VE(()=>({pageNo:1,pageSize:50,total:0})),h=async f=>{o({loading:!0});try{const{data:p,total:v}=await e.getDataSource({search:u.current.search,sorters:u.current.sorters,filters:u.current.filters,...l.latestStore.current,record:e.record});o(f?{dataSource:[...i.dataSource,...p]}:{dataSource:p}),l.setStore({total:v})}catch(p){console.log(p)}finally{o({loading:!1})}},d=A.useMemo(()=>i.selectedRows.map(f=>f[r]),[i.selectedRows]);A.useEffect(()=>{i.visible?h().finally(()=>{}):(s(),l.resetStore())},[i.visible]);const g=xu(async f=>{var p,v,x;if(a&&!f&&!i.selectedRows.length){ue.message.error(J("project.attr.edit.roleOrOwner.msg",{placeholder:"请选择{name}",variate:{name:(p=e.attr)==null?void 0:p.name}}));return}(x=(v=u.current.callback).ok)==null||x.call(v,f?[f[r]]:d),o({visible:!1})});A.useImperativeHandle(t,()=>({open(f){o({callback:f,visible:!0})},submit:g,dataSource:i.dataSource,loading:i.loading}),[i.dataSource,i.loading]);const b=()=>{h()},y={onSelectAll(f,p){n||o({selectedRows:p})},onSelect(f,p){n?p?o({selectedRows:[f]}):a||o({selectedRows:[]}):o(p?{selectedRows:[...i.selectedRows,f]}:{selectedRows:i.selectedRows.filter(v=>v[r]!=f[r])})},getCheckboxProps:f=>({disabled:!1}),selectedRowKeys:d,columnWidth:13},w=A.useMemo(()=>e.generateColumns(u),[e.generateColumns]);return A.useEffect(()=>{const f=_e.debounce(p=>{(p.keyCode||p.which)==13&&u.current.visible&&p.target.dataset.search!="true"&&g()},200);return window.addEventListener("keyup",f),()=>{window.removeEventListener("keyup",f)}},[]),B.jsx($u,{className:S0.shuttle_box,modalTitle:e.title,maskClosable:!1,destroyOnClose:!0,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),styleUnify:!0,width:e.modalWidth||660,visible:i.visible,mask:!1,onOk:g,onCancel:()=>{var f,p;o({visible:!1}),(p=(f=u.current.callback).cancel)==null||p.call(f)},footer:null,children:B.jsx("div",{onScroll:f=>f.stopPropagation(),onScrollCapture:f=>f.stopPropagation(),children:B.jsx(ec,{spinning:i.loading,children:B.jsxs("div",{className:S0.box,children:[B.jsx("div",{children:B.jsx("div",{className:`${S0.search}`,children:B.jsx(ue.Input.Search,{placeholder:J("sys.prompt.enterName",{placeholder:"请输入姓名"}),enterButton:null,"data-search":!0,...e.searchProps,suffix:B.jsx("div",{className:S0.searchBtn,onClick:b,children:B.jsx(Dt,{type:"homesearch"})}),value:i.search,onChange:f=>o({search:f.target.value}),onSearch:b})})}),B.jsx(wm,{rowSelection:{type:"checkbox",fixed:!0,...y},columns:w,showSorterTooltip:!1,dataSource:i.dataSource,scroll:{x:(_=e.scroll)==null?void 0:_.x,y:((C=e.scroll)==null?void 0:C.y)||300},style:{height:"100%"},...l.store,size:"small",onScroll:f=>{l.setStore({pageNo:f}),h(!0)},onFilterAndSorter:(f,p)=>{o({sorters:f,filters:p}),h()},onRow:(f,...p)=>({onClick:()=>{console.log(f,p,"FFFFFFFFFFFF")},onDoubleClick:()=>{g(f)}})})]})})})})}),aP=A.forwardRef(({selectProps:e,value:t,onChange:r,readOnly:n},a)=>{const i=A.useRef(null),{attr:o,allListOptions:s,selectPopupProps:u,record:l}=e,h=xu(()=>{var b;(b=i.current)==null||b.open({ok:y=>{var w,S,E;["multiple","tags"].includes(e.mode)?(r==null||r(y),(w=e.onChange)==null||w.call(e,y,s[o.listCode]||[])):((S=e.onChange)==null||S.call(e,y[0],s[o.listCode]||[]),r==null||r(y[0])),(E=e.onBlur)==null||E.call(e)},cancel:()=>{var y;(y=e.onBlur)==null||y.call(e)}})});A.useImperativeHandle(a,()=>({focus:h}),[]);const d=A.useMemo(()=>_e.omit(e,["popoverProps","attr","allListOptions"]),[e]),g=A.useMemo(()=>typeof t=="string"?t.split(","):t,[t]);return B.jsxs("div",{children:[B.jsx(gu,{...d,style:Object.assign({},e.style||{},{width:"100%"}),className:` ${e.className}`,value:g,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,disabled:n,options:s[o.listCode]||[],allowClear:e.allowClear==null?!0:e.allowClear,optionLabelProp:"label",open:!1,loading:e.loading,onDropdownVisibleChange:h}),B.jsx(nP,{title:`${J("project.tab.plan.transfer.title",{placeholder:"选择"})}${o.name}`,...Object.assign(Object.create(null),u),ref:i,attr:o,record:l,defaultValue:g})]})}),Z1=[null,(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()<e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()<=e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 23:59:59`),t.valueOf()>e.valueOf()),(e,t)=>(e=Le(`${e.format("YYYY-MM-DD")} 00:00:00`),t.valueOf()>=e.valueOf()),(e,t)=>t.valueOf()==e.valueOf()];function oJ(e,t){const r=n=>{var i;if(!n.date||!n.type)return n.isWorkTime?!n.isWorkTime({date:new Date(t.valueOf())}):!1;const a=Le(n.date);return((i=Z1[n.type])==null?void 0:i.call(Z1,a,Le(t)))||(n==null?void 0:n.isWorkTime)&&!n.isWorkTime({date:new Date(t.valueOf())})};return Array.isArray(e)?e.map(a=>r(a)).some(a=>a):r(e)}const UE={dem:"3Shape DCM (*.dcm)",sat:"ACIS (*.sat;*.asat;*.sab;*.asab)",sab:"ACIS (*.sat;*.asat;*.sab;*.asab)",asab:"ACIS (*.sat;*.asat;*.sab;*.asab)",pd:"Cadds (_pd;*._pd)",zip:"zip",model:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",dlv3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",exp:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",CATDrawing:"Catia V5 2D (*.CATDrawing)",CATPart:"Catia V5 3D (*.CATPart;*.CATProduct)",CATProduct:"Catia V5 3D (*.CATPart;*.CATProduct)","3dxml":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",art:"Cercon (*.art)",sdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cdt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",idt:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",cgr:"CGR (*.cgr)",ol:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",ed:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",edz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvz:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",pvs:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",dwg:"DWG 2D (*.dwg)",dxf:"DWG/DXF 3D (*.dwg;*.dxf)",fbx:"FBX (*.fbx)",f3d:"Fusion 360 (*.f3d)",ifc:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifexml:"IFC (*.ifc;*.ifcxml;*.ifczip)",ifezip:"IFC (*.ifc;*.ifcxml;*.ifczip)",igs:"IGES 3D (*.igs;*.iges)",iges:"IGES 3D (*.igs;*.iges)",jt:"JT (*.jt)",nwd:"Navisworks (*.nwd)",obj:"OBJ (*.obj)",xmt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_t:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",x_b:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_txt:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",xmt_bin:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",plmxml:"PLM XML (*.plmxml)","03s":"Procera (*.c3s)",drw:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",xpr:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",asm:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",xas:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",rvt:"Revit (*.rvt;*.rfa)",rfa:"Revit (*.rvt;*.rfa)","3dm":"Rhino (*.3dm)",rf:"Robface (*.rf)",smg:"SMG (*.smg;*.smggeom)",smggeom:"SMG (*.smg;*.smggeom)",dft:"Solid Edge 2D (*.dft)",par:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",psm:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",pwd:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",slddrw:"SolidWorks 2D (*.slddrw)",sldprt:"SolidWorks 3D (*.sldprt;*.sldasm)",sldasm:"SolidWorks 3D (*.sldprt;*.sldasm)",step:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stp:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpx:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpxz:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stpnc:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",stl:"STL (*.stl)",prt:"UG NX 3D (*.prt)",vda:"VDAFS (*.vda)","03S":"Procera (*.c3s)","3DM":"Rhino (*.3dm)","3DXML":"Catia V6/3DEXPERIENCE 3D (*.3dxml)",ART:"Cercon (*.art)",ASAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",ASM:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",CATDRAWING:"Catia V5 2D (*.CATDrawing)",CATPART:"Catia V5 3D (*.CATPart;*.CATProduct)",CATPRODUCT:"Catia V5 3D (*.CATPart;*.CATProduct)",CDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",CGR:"CGR (*.cgr)",DEM:"3Shape DCM (*.dcm)",DFT:"Solid Edge 2D (*.dft)",DLV:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DLV3:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",DRW:"ProE/Creo Parametric 2D (*.drw;*.drw.*)",DWG:"DWG 2D (*.dwg)",DXF:"DWG/DXF 3D (*.dwg;*.dxf)",ED:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EDZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",EXP:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",F3D:"Fusion 360 (*.f3d)",FBX:"FBX (*.fbx)",IDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",IFC:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEXML:"IFC (*.ifc;*.ifcxml;*.ifczip)",IFEZIP:"IFC (*.ifc;*.ifcxml;*.ifczip)",IGES:"IGES 3D (*.igs;*.iges)",IGS:"IGES 3D (*.igs;*.iges)",JT:"JT (*.jt)",MODEL:"Catia V4 2D (*.model;*.dlv;*.dlv3;*.exp)",NWD:"Navisworks (*.nwd)",OBJ:"OBJ (*.obj)",OL:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PAR:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PD:"Cadds (_pd;*._pd)",PLMXML:"PLM XML (*.plmxml)",PRT:"UG NX 3D (*.prt)",PSM:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",PVS:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PVZ:"Creo View (*.ol;*.ed;*.edz;*.pvz;*.pvs)",PWD:"Solid Edge 3D (*.par;*.psm;*.asm;*.pwd)",RF:"Robface (*.rf)",RFA:"Revit (*.rvt;*.rfa)",RVT:"Revit (*.rvt;*.rfa)",SAB:"ACIS (*.sat;*.asat;*.sab;*.asab)",SAT:"ACIS (*.sat;*.asat;*.sab;*.asab)",SDT:"Cerec - Sirona (*.sdt;*.cdt;*.idt)",SLDASM:"SolidWorks 3D (*.sldprt;*.sldasm)",SLDDRW:"SolidWorks 2D (*.slddrw)",SLDPRT:"SolidWorks 3D (*.sldprt;*.sldasm)",SMG:"SMG (*.smg;*.smggeom)",SMGGEOM:"SMG (*.smg;*.smggeom)",STL:"STL (*.stl)",STEP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STP:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPNC:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPX:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPXZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",STPZ:"STEP (*.step;*.stp;*.stpz;*.stpx;*.stpxz;*.stpnc)",VDA:"VDAFS (*.vda)",XAS:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)",XMT:"PARASOLID (*.x_t;*.x_b;*.xmt_txt;*.xmt_bin)",XPR:"ProE/Creo Parametric 3D (*.prt;*.prt.*;*.xpr;*.asm;*.asm.*;*.xas)"},sJ=A.forwardRef((e,t)=>{const r=A.useRef(),n=["Input","Input.TextArea","Number","CompositeForm"],a=["Select","Date","Cascader","TreeSelect","DatePicker.RangePicker","Image","File"],i=e.formprops.type;A.useImperativeHandle(t,()=>({focusFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.focus())},blurFormItem:()=>{var u;i!=="File"&&i!=="Image"&&((u=r.current)==null||u.blur())}}));const o=A.useMemo(()=>{var h,d;const u=g=>(g==null?void 0:g.closest(_m))||document.body||document.documentElement;(h=e==null?void 0:e.formprops)!=null&&h.props&&!e.formprops.props.getPopupContainer&&(e.formprops.props.getPopupContainer=u);let l={getPopupContainer:u};return n.includes(i)?l={...e.formprops.props,size:"small",onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()}}:a.includes(i)&&(l={...e.formprops.props,size:"small",onChange:((d=e.formprops)==null?void 0:d.props.mode)==="multiple"||e.formprops.props.treeCheckable?void 0:e.onSave,onBlur:e.onRemove,onClick:g=>{g.stopPropagation()}}),e.formprops.formatFormProps?e.formprops.formatFormProps(l,e.record,e.apicode):l},[e.record,e.formprops,e.onSave]),s=()=>{var l;let u={...o};if(e.apicode==="NewVersion")return u.options&&u.options[e.record.insId][0]&&!((l=u.options[e.record.insId][0])!=null&&l.value)||u.options&&!u.options[e.record.insId][0]?(u={...u,onPressEnter:()=>{e.onSave&&e.onSave()},onBlur:()=>{e.onSave&&e.onSave()},onChange:void 0},B.jsx(ue.Input,{ref:r,...u})):B.jsx(ue.Select,{ref:r,filterOption:(h,d)=>d.label&&d.label.indexOf(h)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(h=>({label:h.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:h.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})});switch(i){case"Input":return B.jsx(ue.Input,{ref:r,...u});case"DatePicker.RangePicker":return B.jsx(ue.DatePicker.RangePicker,{...u});case"Select":if(e.apicode==="exchanger"||e.apicode==="NewLifePhase"||e.apicode==="NewVersion"||e.apicode==="ProblemVersion"){if(e.apicode==="NewLifePhase"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>!g.noShow).map(g=>Is.isChangeInstruction(g.itemcode)?{...g,disabled:g.sort<e.record.lifecycle.sort&&!["10007010","10007006","10007014"].includes(String(e.record.lifecycle.code))||!g.status}:Is.isStatusChange(g.itemcode)?Is.isFile(e.record.itemCode)?{...g,disabled:!g.status}:{...g,disabled:g.sort<=e.record.lifecycle.sort&&e.record.lifecycle.apicode!=="Obsolete"||!g.status||e.record.lifecycle.apicode==="Obsolete"&&g.apicode=="Obsolete"}:{...g,disabled:!g.status||g.code==10007022})),e.apicode==="ProblemVersion"&&u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value!="Draft").map(g=>({...g}))),e.apicode==="exchanger"&&u.options&&u.options[UE[e.record.extension]]){const g=u.options[UE[e.record.extension]].map(b=>({label:b,value:b}));return B.jsx(ue.Select,{ref:r,filterOption:(b,y)=>y.label&&y.label.indexOf(b)>=0,showSearch:!0,allowClear:!0,...u,options:g})}return B.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:_e.uniqBy(u.options?u.options[e.record.insId]:[],"value").length===1?_e.uniqBy(u.options[e.record.insId],"value").map(g=>({label:g.label.replace(J("sys.majorVersion",{placeholder:"大版本"}),"").replace(J("sys.minorVersion",{placeholder:"小版本"}),""),value:g.value})):_e.uniqBy(u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[],"value")})})}else{if(e.apicode==="AffectRevision")return u.options&&u.options[e.record.insId]&&(u.options[e.record.insId]=u.options[e.record.insId].filter(g=>g.value.indexOf("(")==-1).map(g=>({...g}))),B.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,..._e.assign(u,{options:u.options&&u.options[e.record.insId]?u.options[e.record.insId]:[]})});if(e.apicode==="NewStatus")return u.options.forEach(g=>{var b;!((b=e==null?void 0:e.record)!=null&&b.publishTime)&&(g.apicode==="Disable"||g.apicode==="Scrap")?g.disabled=!0:g.disabled=!1,(g.apicode==="Initial"||g.apicode==="Draft")&&(g.disabled=!0)}),B.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});if(u!=null&&u.selectPopupProps)return B.jsx(aP,{ref:r,selectProps:{...u,record:e.record}});if(u!=null&&u.popoverTransfer||u!=null&&u.popoverTable)return B.jsx(rP,{ref:r,selectProps:u})}return B.jsx(ue.Select,{ref:r,filterOption:(g,b)=>b.label&&b.label.indexOf(g)>=0,showSearch:!0,allowClear:!0,...u});case"Cascader":return B.jsx(ue.Cascader,{ref:r,showSearch:{filter:(g,b)=>b.some(y=>y.label&&y.label.toLowerCase().indexOf(g.toLowerCase())>-1),matchInputWidth:!1},...u});case"Date":const h=e.record.forbiddenTime,d=h&&h[e.name];return B.jsx(ue.DatePicker,{ref:r,...u,disabledDate:d?g=>oJ(h[e.name],g):void 0});case"Number":return B.jsx(ue.InputNumber,{ref:r,...u});case"Input.TextArea":return B.jsx(ue.Input.TextArea,{ref:r,...u});case"TreeSelect":return B.jsx(ue.TreeSelect,{ref:r,...u});case"CompositeForm":return B.jsx(Kf,{...u});default:return B.jsx(ue.Input,{ref:r,...u})}};return B.jsx(ue.Form.Item,{noStyle:!0,name:e.name,children:s()})}),uJ="_imgOuter_16ygq_1",lJ="_imgInner_16ygq_9",qE={imgOuter:uJ,imgInner:lJ},cJ=e=>B.jsx("img",{...e,src:e.src}),iP=e=>B.jsx(ue.Image,{...e,src:e.src}),Fy=e=>B.jsx("div",{className:qE.imgOuter,children:B.jsx(iP,{preview:!1,src:e.src,className:qE.imgInner,placeholder:B.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:B.jsx(Dt,{className:"rotate",style:{cursor:"pointer",color:"#0563b2"},type:"loading"})})})}),Qt=class Qt{static avoid0TypeConvert(t){return _r.avoid0TypeConvert(t)}static isEqual(t,r){function n(a){return Le.isMoment(a)?_r.momentToRawData(a):a??""}return t=n(t),r=n(r),_e.isNil(t)&&_e.isNil(r)||_e.isNaN(t)&&_e.isNaN(r)?!0:t instanceof Object?_e.isEqual(t,r):this.avoid0TypeConvert(t)==this.avoid0TypeConvert(r)}static getCellSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess&&!_e.isNil(t.inProcess[r])&&!_e.isNil(t.inProcess)&&Qt.isEqual(t.inProcess[r],t[r]),i=t.newVal&&!_e.isNil(t.newVal[r])&&!_e.isNil(t.newVal)&&Qt.isEqual(t.newVal[r],t[r]);return{hasOptType:n,hasInProcess:a,hasNewValue:i}}static getRowSignState(t,r){const n=t.optType==="update"||t.optType==="replace",a=t.inProcess?Object.keys(t.inProcess):[],i=t.newVal?Object.keys(t.newVal):[],o=a.map(u=>{const l=t.inProcess[u],h=t[u],d=Qt.isEqual(l,h);return r==null||r("inProcess",u,d,l,h),d}).some(u=>!u),s=i.map(u=>{const l=t.newVal[u],h=t[u],d=Qt.isEqual(l,h);return r==null||r("newVal",u,d,l,h),d}).some(u=>!u);return{hasOptType:n,hasInProcess:o,hasNewValue:s}}static isEmptyValue(t){return typeof t=="number"?!1:_e.isEmpty(t)}static sortAndFilterTable(t){const{tableColumns:r,originTableColumns:n,sortersField:a,tabInfo:i={}}=t;let{sorters:o,filters:s}=t;const u=Is.isUser(i.itemCode||""),l=i.tab==="Delegate";if(u&&l&&s){const h=r.filter(g=>["ChangeCategory"].includes(g.apicode)).map(g=>g.dataIndex),d=_e.map(s.split("~!~"),g=>_e.split(g,"-")[0]);_e.includes(d,h[0])?s.split("~!~").map(g=>{if(h.includes(g.split("-")[0])){const b=g.split("-")[1].split(",");b&&Array.isArray(b)&&(_e.remove(b,y=>y==""||y==null),r.map(y=>(y.apicode==="Category"&&_e.forEach(y.formitem.props.options,w=>{_e.includes(b,w.itemCode)?w.isHidden=!1:w.isHidden=!0,b.length==0&&(w.isHidden=!1)}),y)))}}):r.map(g=>(g.apicode==="Category"&&_e.forEach(g.formitem.props.options,b=>{b.isHidden=!1}),g))}if(i.tab!=="History"){const h=r.filter(g=>g.dataFrom==="1").map(g=>g.dataIndex),d=r.filter(g=>g.dataFrom==="0"||g.dataFrom==="2").map(g=>g.dataIndex);if(o&&Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(o.split("-")[0])){const g=Qt.getFixAttrFilterOrSortInfo({filterOrSort:o,attrs:n||r.map(b=>b.attr)});o=(g==null?void 0:g.value)||o}else h.includes(o.split("-")[0])?o=o?`attributes.${o}`:"":d.includes(o.split("-")[0])&&(o=o?`current.${o}`:"");if(s){const g=r.filter(b=>["OldVersion"].includes(b.apicode)).map(b=>b.dataIndex);s=s.split("~!~").map(b=>{if(console.log(b,"item"),g.includes(b.split("-")[0]))return`current.${b.split("-")[0]}-${b.split("-")[1]===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${b.split("-")[1]} `}`;if(Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(b.split("-")[0])){const y=Qt.getFixAttrFilterOrSortInfo({filterOrSort:b,attrs:n||r.map(w=>w.attr)});return(y==null?void 0:y.value)||s}if(h.includes(b.split("-")[0]))return b?`attributes.${b}`:"";if(d.includes(b.split("-")[0]))return b?`current.${b}`:""}).join("~!~")}}if(i.tab==="VersionRecord"&&n){const h=_r.transformArrayToMap(n,"apicode","id");o=o.replace("insVersionOrder",`attributes.${h.Revision}`),s=s.replace("insVersionOrder",`attributes.${h.Revision}`)}return{sorters:o,filters:s,sortersField:a}}static monitoringCol(t,r){var u;const n=()=>{};if(!t)return n;const a=(u=t.querySelector(".frontend-table-header"))==null?void 0:u.querySelector("colgroup");if(!a)return n;const i=a.querySelector(".frontend-table-selection-col"),o=t.querySelector(".frontend-table-body").querySelector("colgroup");let s=null;return i&&(s=new MutationObserver(async(l,h)=>{const[d]=l;if(d.type=="attributes"&&d.attributeName=="style"&&!i.inhibit&&!_e.isNil(r)){i.inhibit=!0;const g=r;if(g!=i.offsetWidth){const b=Number(g)-i.offsetWidth,y=a.children.length-2,w=_e.round(b/y,2);Array.from(a.children,(S,E)=>{const _=o.children[E];if(S==i)S.setAttribute("style",`width:${g}px;max-width:${g}px;`),_.setAttribute("style",`width:${g}px;max-width:${g}px;`);else if(E!=a.children.length-1){const C=S.style.width.replace("px","");S.setAttribute("style",`width:${Number(C)+w}px;`),_.setAttribute("style",`width:${Number(C)}px;`)}})}}else i.inhibit=!1}),s.observe(i,{attributeFilter:["style"]})),()=>{s==null||s.disconnect(),s=null}}static getFixAttrFilterOrSortInfo({filterOrSort:t,attrs:r}){let n,a;const i=t.indexOf("-");if(i!==-1?(n=t.substring(0,i),a=t.substring(i+1)):(n=t,a=""),Object.values(FIX_INS_TAbTABLE_COLUMNMAP).includes(n)){const[o]=Object.entries(FIX_INS_TAbTABLE_COLUMNMAP).find(([s,u])=>n==u)||[];if(o){const s=_r.getAttrOf(r,o);if(s){s.apicode==="Version"&&(a=a===J("sys.label.draft",{placeholder:"草稿"})?"Draft":`${a} `);const u=Ul.getAttributesMapId(s),l=Ul.isQuoteAttr(s)?"attributes":"current";return{apicode:o,id:u,attr:s,filterOrSortValue:a,prefix:l,value:`${l}.${u}-${a}`}}}}}};Dr(Qt,"getTrulyHighlight",({formitem:t,highlight:r})=>{const n=["Input","Input.TextArea","Select","SelectTransfer","Date","Cascader","TreeSelect","Number"],i=(()=>{var s;return r&&r[0]?_e.isArray(r[0])&&t?(s=t.props)!=null&&s.treeCheckable||t.props.mode==="multiple"?Qt.renderReadonlyItem({value:r[0],formitem:t}).split(","):Qt.renderReadonlyItem({value:r[0],formitem:t}):Le.isMoment(r[0])?[Le(r[0]).format("YYYY-MM-DD")]:r:[]})()||[],o=n.includes(t==null?void 0:t.type)||!t;return{trulyHighlight:o?i:r||[],needTransform:o}}),Dr(Qt,"wrapperHighLight",({highlight:t,formitem:r,value:n,originValue:a})=>{if(fi.isMosaic(a))return B.jsx(co,{});const{trulyHighlight:i,needTransform:o}=Qt.getTrulyHighlight({highlight:t,formitem:r});return o?B.jsx(rs,{highlight:i,value:n}):n}),Dr(Qt,"renderCacheCell",(t,r,n,a,i)=>{if(t.optType==="update"||t.optType==="replace"){if(t.newVal&&(t.newVal[r]||!_e.isNil(t.newVal[r])))if(Qt.isEqual(t.newVal[r],t[r])){if(Qt.isEqual(t.newVal[r],t[r]))return B.jsx("div",{style:{width:"100%"},children:B.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})})}else return B.jsxs("div",{style:{width:"100%"},children:[B.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),B.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]});if(t.inProcess&&t.inProcess[r]!==void 0&&t.inProcess!==null&&!Qt.isEqual(t.inProcess[r],t[r]))return B.jsxs("div",{style:{width:"100%"},children:[B.jsx("div",{className:ki.updated_redline_style,children:a?a({value:t.inProcess[r],formitem:n,row:t.inProcess}):Qt.wrapperHighLight({originValue:t.inProcess[r],value:Qt.renderReadonlyItem({value:t.inProcess[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),B.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]})}return t.newVal&&t.newVal[r]!==void 0&&t.newVal!==null&&!Qt.isEqual(t.newVal[r],t[r])?B.jsxs("div",{style:{width:"100%"},children:[B.jsx("div",{className:ki.updated_style,children:a?a({value:t.newVal[r],formitem:n,row:t.newVal}):Qt.wrapperHighLight({originValue:t.newVal[r],value:Qt.renderReadonlyItem({value:t.newVal[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})}),B.jsx("div",{className:ki.update_style,children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})]}):B.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:a?a({value:t[r],formitem:n,row:t}):Qt.wrapperHighLight({originValue:t[r],value:Qt.renderReadonlyItem({value:t[r],formitem:n}),formitem:n,highlight:i==null?void 0:i.highlight})})}),Dr(Qt,"renderReadonlyItem",({apicode:t,formitem:r,value:n,record:a})=>{var i,o,s,u,l,h;if(!r)return n;if(!r.type)return"";if(["Select","Cascader"].includes(r.type))return r.props.mode==="multiple"?_e.isArray(n)&&n instanceof Array?n.map(d=>_r.getLabelInOptions({value:d,options:(r==null?void 0:r.props.options)||[]})).join(","):n&&typeof n=="string"?n.split(",").map(d=>_r.getLabelInOptions({value:d,options:(r==null?void 0:r.props.options)||[]})).join(","):"":_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.options)||[]});if(["TreeSelect"].includes(r.type))return(i=r.props)!=null&&i.treeCheckable&&_e.isArray(n)&&n instanceof Array?n.map(d=>_r.getLabelInOptions({value:typeof d!="string"?d.value:d,options:(r==null?void 0:r.props.treeData)||[]})).join(","):_r.getLabelInOptions({value:n,options:(r==null?void 0:r.props.treeData)||[]});if(["Date"].includes(r.type))if(n)if(Le.isMoment(n)){const g=n.creationData();return n.format(((o=r==null?void 0:r.props)==null?void 0:o.format)??g.format)}else return Le(n).format(((s=r==null?void 0:r.props)==null?void 0:s.format)??"YYYY-MM-DD HH:mm:ss");else return"";else return["Image"].includes(r.type)?n&&!_e.isArray(n)?B.jsx(ue.Popover,{placement:"right",content:B.jsx("div",{style:{height:"60px",width:"60px"},children:n?B.jsx(Fy,{src:`/api${n}`}):B.jsx(B.Fragment,{})}),trigger:"hover",children:B.jsx("div",{style:{height:"26px",width:"26px"},children:n?B.jsx(Fy,{src:`/api${n}`}):B.jsx(B.Fragment,{})})}):"":["CompositeForm"].includes(r.type)?n&&typeof n=="string"?(u=String(n))!=null&&u.includes("~%~")?`${n.split("~%~")[0]||""}${((h=_e.find((l=r.props)==null?void 0:l.options,{id:n.split("~%~")[1]}))==null?void 0:h.name)||""}`:n:"":r.isbomtag&&!_e.isArray(n)&&!(n instanceof Array)?n?_r.renderBomTag(n):"":_e.isArray(n)&&n instanceof Array?n.join(","):n??""}),Dr(Qt,"renderRowClassName",t=>{const r=[];let n="";return t.shear&&r.push("shear-row"),t.optType==="add"?n="add-redline-row":t.optType==="del"&&(n="del-row"),t.dataType==="add"?n="add-row":t.dataType==="del"&&(n="del-row"),`${r.join(" ")} ${n}`}),Dr(Qt,"renderVersionColumn",(t,r)=>fi.isMosaic(t)?B.jsx(co,{}):t==="Draft"||_e.isString(t)&&t.split(" ")[0]==="Draft"?B.jsx(rs,{highlight:r||[],value:J("sys.label.draft",{placeholder:"草稿"})}):B.jsx(rs,{highlight:r||[],value:_e.isString(t)?t.replace(/[()]/g,"").split(" ")[0]:""}));let Jo=Qt;const dJ=({title:e,editable:t,children:r,dataIndex:n,record:a,handleSave:i,handleCellSelected:o,handleFill:s,handleDoubleClick:u,renderCacheCell:l,loading:h,required:d,formitem:g,rowKey:b,render:y,tableKey:w,menuId:S,highlight:E,isVersion:_,isUser:C,preRender:f,apicode:p,canselectcell:v,selectedCell:x,fillContextMenu:k,setInitialState:O,...$})=>{var me,ee,ve;const D=A.useContext(Vf),[V,I]=A.useState(!1),N=A.useContext(Hw),F=A.useRef(null),T=["Input","Input.TextArea","Number"];v&&x&&(x==null?void 0:x.dataIndex)===n&&(x==null?void 0:x.record[b])==a[b]&&(x==null?void 0:x.tableKey)==w&&($.style={...$.style,background:"#ddeffe"}),A.useEffect(()=>{var se,fe;V?(se=F.current)==null||se.focusFormItem():(fe=F.current)==null||fe.blurFormItem()},[V]);const M=se=>{for(;se&&se.nodeName!=="TR";)se=se.parentNode;return se},j=async(se,fe)=>{var Te,xe,$e;const he=()=>{if(!(!e&&!n)&&fe){const Pe=new MouseEvent("dblclick",{bubbles:!0,cancelable:!1});M(fe==null?void 0:fe.target)&&M(fe==null?void 0:fe.target).dispatchEvent(Pe)}};if(g&&g.props&&g.props.disabled||!g||g.props&&!g.props){he();return}if(se?u&&await u(a):!0){if(await N.validateFields(),se){let Pe=a.newVal&&!_e.isNil(a.newVal[n])?a.newVal[n]:a.inProcess&&!_e.isNil(a.inProcess[n])?a.inProcess[n]:a[n];if((g==null?void 0:g.type)==="Date"){const Ne=(Te=g.props)==null?void 0:Te.format;Pe=Pe?Le(Pe,typeof Ne=="string"?Ne:"YYYY-MM-DD HH:mm:ss"):null}((g==null?void 0:g.type)==="TreeSelect"&&((xe=g==null?void 0:g.props)!=null&&xe.treeCheckable)||(g==null?void 0:g.type)==="Select"&&(($e=g==null?void 0:g.props)==null?void 0:$e.mode)==="multiple")&&(Pe==""?Pe=[]:typeof Pe=="string"&&(Pe=Pe.split(","))),N.setFieldsValue({[n]:Pe})}I(!V)}else he()},H=async()=>{try{const se=await N.validateFields();j(),Object.keys(se).forEach(fe=>{(se[fe]===null||se[fe]===void 0)&&(se[fe]=""),typeof se[fe]=="string"&&(se[fe]=se[fe].trim())}),i({...a,...se})}catch{}},z=(se,fe)=>l||B.jsx("div",{className:ki.edit_cell,children:B.jsx(rs,{value:Jo.renderReadonlyItem({value:se[fe],formitem:g}),highlight:ie})}),{show:U}=jZ({id:S}),G=()=>{v&&(o(),O&&O(se=>({...se,selectedCell:{dataIndex:n,record:a,tableKey:w}})))},X=se=>{if(n){if(G(),se.preventDefault(),g&&g.props&&g.props.disabled||!g||g.props&&!g.props)return;U(se,{props:{key:{dataIndex:n,record:a}}})}};let K=r;const ne=a?a[n]:"",ae=A.Children.map(r,se=>{var fe;if(A.isValidElement(se)){const he=(fe=se==null?void 0:se.props)==null?void 0:fe.children;return!he||!Array.isArray(he)?null:he.some(Te=>{const xe=Te==null?void 0:Te.props;return xe&&typeof xe.className=="string"?xe.className.includes("frontend-table-row-indent"):!1})?he:null}else return null});if(!fi.readPermission(ne))return B.jsxs("td",{...$,children:[ae,B.jsx(co,{inLine:!0})]});const{trulyHighlight:ie}=Jo.getTrulyHighlight({highlight:E,formitem:g});if(C){const se=(D==null?void 0:D.overrideLinkCom)||"a";K=B.jsx(se,{userId:a[n],id:a[n],record:a,content:Jo.renderReadonlyItem({value:a[n],formitem:g}),highlight:ie})}else if(t){if(g.type==="Date"){const se=(me=g.props)==null?void 0:me.format,fe=typeof se=="string";let he,ke;if(Le.isMoment(a[n])){const Te=a[n].creationData();he=Te==null?void 0:Te.input,ke=Te==null?void 0:Te.format}a[n]=a[n]?Le(he||a[n],fe?se:ke||"YYYY-MM-DD HH:mm:ss"):null}if(((ee=g.props)!=null&&ee.treeCheckable||((ve=g.props)==null?void 0:ve.mode)==="multiple")&&typeof a[n]=="string"&&(a[n]=a[n]?a[n].split(","):[]),V)K=B.jsx("div",{onDoubleClick:se=>{se.stopPropagation()},children:B.jsx(ue.Form.Item,{validateTrigger:T.includes(g.type)?"blur":"onChange",style:{margin:0},name:n,children:B.jsx(sJ,{name:n,ref:F,onSave:()=>H(),formprops:g,record:a,apicode:p,onRemove:()=>{setTimeout(()=>{I(!1)},200)}})})});else if(!y){let se=z(a,n);K=B.jsxs("div",{onContextMenu:k===!1?void 0:X,title:a.newVal?Jo.renderReadonlyItem({value:a.newVal[n],formitem:g}):Jo.renderReadonlyItem({value:a[n],formitem:g}),className:"editable-cell-value-wrap",style:{paddingRight:24},children:[ae,se]})}}else if(n&&!y)return _?B.jsx("td",{...$,title:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",onClick:G,children:B.jsx(rs,{value:a&&a[n]?a[n]==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):a[n]:"",highlight:ie})}):B.jsx("td",{...$,title:a&&a[n]?a[n]:"",onClick:G,children:B.jsx(rs,{value:a?_e.isNil(a[n])?"":a[n]:"",highlight:ie})});const de=K==null?void 0:K.toString(),pe=Array.isArray(K)&&K[0]===void 0,be=de!=null&&de.includes("[object ")?void 0:pe?de==null?void 0:de.replace(/^\,/,""):de;return B.jsx("td",{...$,onDoubleClick:se=>{se.stopPropagation(),j(!0,se)},onClick:()=>{n&&G()},children:B.jsx("div",{title:be,style:{width:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:K})})},fJ=()=>{function e(){return((1+Math.random())*65536|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},hJ=e=>B.jsxs(qZ,{id:e.menuId,children:[B.jsx(HE,{onClick:t=>{e.onFill&&e.onFill("up",t.props.key)},children:J("sys.prompt.fillUp",{placeholder:"向上填充"})}),B.jsx(HE,{onClick:t=>{e.onFill&&e.onFill("down",t.props.key)},children:J("sys.prompt.fillDown",{placeholder:"向下填充"})})]}),pJ=e=>{const[t,r]=A.useState({}),[n,a]=A.useState({}),i=A.useRef(null),{Option:o}=ue.Select,s=(g,b)=>{r(g),a(b)};return{getColumnSearchProps:A.useCallback((g,b)=>{const y=()=>{var _,C;return typeof(b==null?void 0:b.title)=="string"?b==null?void 0:b.title:(C=(_=b==null?void 0:b.search)==null?void 0:_.props)==null?void 0:C.placeholder},w=(_,C,f)=>{C()},S=(_,C)=>{_(),C()},E=(_,C,f)=>{var x,k;const p={size:"small",onChange:O=>{O&&O.target?_(O.target.value?[O.target.value]:[]):_(O?[O]:[])},style:{marginBottom:8,display:"block"}},v=B.jsx(ue.Input,{size:"small",ref:i,placeholder:J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:y()}}),value:C[0],onPressEnter:()=>w(C,f),..._e.omit(p,["size"])});if(b.search)switch(b.search.type){case"Input":return v;case"Select":let O=(k=(x=b==null?void 0:b.search)==null?void 0:x.props)==null?void 0:k.options;return b.apicode==="ProblemVersion"&&(O=_e.uniqBy(_e.flatten(Object.values(O||{})),"value")||[],O=O.map($=>({label:$.label==="Draft"?J("sys.label.draft",{placeholder:"草稿"}):$.label,value:$.value}))),O=(O||[]).filter($=>fi.readPermission($.label)),B.jsx(ue.Select,{size:"small",onKeyUp:$=>{($.keyCode===13||$.charCode==13)&&w(C,f)},ref:i,mode:"multiple",placeholder:`${J("sys.label.selectOption",{placeholder:"请选择"})} ${y()}`,value:C[0],filterOption:($,D)=>D.label&&D.label.indexOf($)>=0,..._e.omit(p,["size"]),children:(O||[]).map($=>{if(!$.isHidden)return A.createElement(o,{...$,value:$.value,disabled:$.disabled,key:$.value,label:$.label},B.jsx("div",{title:$.label,style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis"},children:$.label}))})});case"Date":return B.jsx(ue.DatePicker,{size:"small",value:C[0],..._e.omit(p,["size"])});case"CompositeForm":return B.jsx("div",{className:"compositeFormClass",children:B.jsx(Kf,{...b.formitem.props,valueType:b.valueType,value:C[0],size:"small",..._e.omit(p,["size"])})})}else return v};return b.search?{filterIcon:_=>B.jsx(kl,{style:{color:_?"#0563B2":void 0}}),filterDropdown:({setSelectedKeys:_,selectedKeys:C,confirm:f,clearFilters:p})=>B.jsxs("div",{style:{padding:8},children:[B.jsx("div",{style:{marginBottom:"5px"},children:E(_,C,f)}),B.jsxs(ue.Space,{children:[B.jsx(ue.Button,{type:"primary",onClick:()=>w(C,f),icon:B.jsx(kl,{}),size:"small",style:{width:90},children:J("sys.filter",{placeholder:"筛选"})}),B.jsx(ue.Button,{onClick:()=>S(p,f),size:"small",style:{width:90},children:J("sys.action.reset",{placeholder:"重置"})})]})]}),onFilterDropdownVisibleChange:_=>{_&&(b.search.type==="Input"||b.search.type==="Select")&&setTimeout(()=>{var C;return(C=i==null?void 0:i.current)==null?void 0:C.focus()},100)}}:{}},[]),setTableFiltered:g=>{s(g.sort(t),g.screen(n))},clearFilters:g=>{s({},{}),e&&e("","","",{},{isFooterRefresh:g==null?void 0:g.isFooterRefresh})},onFiltersChange:(g,b,y,w)=>{a(b),r(y),s(y,b);let S="",E="";_e.isArray(y)?y&&y.length&&(S=y.map(C=>`${C.field}-${C.order}`).join(",")):y.field&&y.order&&(S=`${y.field}-${y.order==="ascend"?"asc":"desc"}`);const _=C=>C.map(f=>Array.isArray(f)?f.join(","):Le.isMoment(f)?f.format("YYYY-MM-DD"):f);E=_e.remove(Object.keys(b).map(C=>b[C]&&typeof b[C][0]=="string"||typeof b[C]!="string"&&b[C]&&b[C][0]?`${C}-${_(b[C]||[]).join(",")}`:null),C=>C!==null).join("~!~"),e&&e(S,E,y.field,b)},sortInfo:t,filterInfo:n}},mJ=e=>{var o,s;const t=((o=e.dataSource)==null?void 0:o.length)||0,r=e.total||0,n=e.rowSelection&&e.rowSelection.selectedRowKeys?(s=e.rowSelection.selectedRowKeys)==null?void 0:s.length:0,a={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},i=B.jsx(Dt,{type:"update",isBackend:!0,style:{fontSize:"12px",marginLeft:"8px",color:"#999999"},onClick:()=>{e.clearFilters&&e.clearFilters({isFooterRefresh:!0})}});return e.hideFooter?B.jsx(B.Fragment,{}):B.jsxs("div",{className:`${ki.table_footer} ${e.className||""}`,children:[e.hideTableCount?B.jsx("div",{}):e.customRender?e.customRender({tableDataLen:t,total:r,selectedLen:n,boxStyles:a,refreshNode:i}):B.jsxs("div",{style:a,children:[J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),B.jsxs("span",{children:[" ",t,"/",r," "]}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),","," ",J("sys.selected",{placeholder:"已选"}),B.jsx("span",{children:` ${n} `}),J("project.tab.plan.quantityDisplay.select",{placeholder:"条"}),i]}),e.enterFullscreen&&B.jsx("div",{children:B.jsx(Dt,{type:"a-front-fitscreen",style:{fontSize:"12px",color:"#999999"},isBackend:!0,onClick:()=>{e.enterFullscreen&&e.enterFullscreen()}})})]})},gJ=(e,t,r,n,a,i,o)=>{var f;const[s,u]=A.useState(!1),[l,h]=A.useState(0),[d,g]=A.useState(e.columns||[]),[b,y]=A.useState(null),[w,S]=A.useState(null),E=p=>(v,{size:x})=>{v.stopImmediatePropagation();const k=[...d];k[p]={...k[p],width:x.width},g(k)};A.useEffect(()=>{g(e.columns)},[e.columns]);const _=Number(((f=e==null?void 0:e.scroll)==null?void 0:f.y)||i)+24;return{renderColumns:d?d.filter(p=>p).map((p,v)=>_e.extend({...p,sorter:p.sorter?{}:!1,required:p.editable?p.required:!1,sortOrder:t.field===p.dataIndex&&t.order,filteredValue:r?r[p.dataIndex]||[]:[],onHeaderCell:x=>({dataIndex:p.dataIndex,width:x.width,required:p.required,editable:p.editable,trulyHeight:_,tableKey:e.tableKey,formitem:p.formitem,onResize:E(v),onResizeOver:k=>{h(k.screenX),u(!0)},onResizeStop:k=>{console.log(k),u(!1)}}),onCell:x=>{var $,D;const k=(($=p==null?void 0:p.onCell)==null?void 0:$.call(p,x))||{},O=(typeof e.rowKey=="string"?e.rowKey:(D=e.rowKey)==null?void 0:D.call(e,x))||"id";return{record:x,className:`${p.className??""} ${p.dataIndex==w&&x[O]==b?ki.loading:""}`,editable:p.editable,isVersion:p.isVersion,isUser:p.isUser,apicode:p.apicode,dataIndex:p.dataIndex,title:p.title,formitem:p.formitem,required:p.required,canselectcell:e.canselectcell,rowKey:e.rowKey||"id",tableKey:e.tableKey,menuId:n,render:p.render,highlight:r[p.dataIndex],fillContextMenu:e.fillContextMenu,selectedCell:o,renderCacheCell:Jo.renderCacheCell(x,p.dataIndex,p.formitem,void 0,{highlight:r[p.dataIndex]}),handleCellSelected:()=>{e.onSelectCell&&e.onSelectCell()},handleDoubleClick:V=>{if(e.onDoubleClick){const I=e.onDoubleClick(p,V);return I instanceof Promise&&(y(x[O]),S(p.dataIndex),I.finally(()=>{y(null),S(null)})),I}else return!0},handleSave:V=>{e.onSubmit&&e.onSubmit(V,p)},...k}}},a(p.dataIndex,p))):[]}},oP="INPUT_NAMESPACE",vJ=(e,t,r,n)=>{const[a,i]=A.useState();function o(s){const u=s.toString(),l=u.indexOf(".");return l===-1?0:u.slice(l+1).length}return A.useEffect(()=>{async function s(u){var b,y,w,S,E,_,C,f,p,v;if(u.target instanceof HTMLInputElement&&((y=(b=u.target)==null?void 0:b.dataset)==null?void 0:y.type)!=oP||u.target instanceof HTMLTextAreaElement||!u.target.closest(`.${_m}`)){console.log("is Input or TextArea or not Table");return}u.preventDefault();let l=(w=u.clipboardData)==null?void 0:w.getData("text");const h=await Promise.resolve().then(()=>require("./xlsx-DtQJwEPb.js"));if(l&&r&&n){var d=h.read(l,{type:"binary"}),g=d.SheetNames;const x=h.utils.sheet_to_json(d.Sheets[g[0]],{header:1,raw:!1,defval:"",blankrows:!0}),k=n.findIndex(D=>{var V,I,N;return D.dataIndex==r.dataIndex&&D.editable&&(((V=D.formitem)==null?void 0:V.type)=="Input"||((I=D.formitem)==null?void 0:I.type)=="Input.TextArea"||((N=D.formitem)==null?void 0:N.type)=="Number")});let O=n.findIndex((D,V)=>{var I,N,F;return V>k&&(!D.editable||!(((I=D.formitem)==null?void 0:I.type)=="Input"||((N=D.formitem)==null?void 0:N.type)=="Input.TextArea"||((F=D.formitem)==null?void 0:F.type)=="Number"))});O==-1&&(O=n.length);const $=n.slice(k,O);if($.length>0){const D=x.map(V=>V.filter(I=>V.indexOf(I)<$.length))||[];for(let V=0;V<D.length;V++){const I=D[V]||[];for(let N=0;N<I.length;N++){const F=I[N],T=((S=$[N].formitem)==null?void 0:S.type)=="Number",M=(_=(E=$[N].formitem)==null?void 0:E.props)==null?void 0:_.precision,j=(f=(C=$[N].formitem)==null?void 0:C.props)==null?void 0:f.min,H=(v=(p=$[N].formitem)==null?void 0:p.props)==null?void 0:v.max;if(T){const z=_e.toNumber(F),U=z&&(j?z>=j:!0)&&(H?z<=H:!0)&&(_e.isNumber(M)&&M>0?o(z)<=M:!0);I[N]=U?z:void 0}}}i(D)}}}return document.addEventListener("paste",s),()=>{document.removeEventListener("paste",s)}},[r,n]),{pasteData:a}},bJ=e=>`${e}Key`,J1=e=>e.keyCode==17?"ctrl":e.keyCode==18?"alt":e.keyCode==91?"meta":e.keyCode==16?"shift":e.key,yJ=(e,{shortcuts:t,namespace:r})=>{const n="+",a=(...s)=>`${e}+${s.join(n)}`,i=di(t),o=di(_e.fromPairs(i.current.map(([s,u])=>[a(...s),u])));A.useEffect(()=>{console.log("初始化 useShortcutKey");const s=()=>i.current.map(([b])=>b).flat(1),u=b=>{var y,w,S;(!r||((y=b.target)==null?void 0:y.id)==r)&&(l.push(J1(b)),(S=(w=o.current)[l.join(n)])==null||S.call(w,b))},l=[],h={},d=b=>{var y;if(!r||((y=b.target)==null?void 0:y.id)==r){const w=J1(b);b[bJ(e)]&&!h[w]&&(h[w]=!0,s().includes(b.key)&&l.includes(e)&&b.preventDefault(),u(b))}},g=b=>{const y=J1(b);h[y]=!1,l.pop()};return window.addEventListener("keyup",g),window.addEventListener("keydown",d),()=>{window.removeEventListener("keyup",g),window.removeEventListener("keydown",d)}},[])},_J=(e,t)=>{const[r,n]=A.useState(!0),{clipboard:a,dataSource:i=[],rowSelection:o}=e,{selectedRowKeys:s=[]}=o||{},{childKeyName:u="children",isMark:l=!0,initialState:h,setInitialState:d}=a||{},g=String(e.rowKey||"id"),[b,y]=A.useState(!1),w=()=>b&&s.length,S=p=>v=>{w()&&p(v)},E=async(p,v)=>{var k;const x=[];x.type="shear",x.namespace=t,v.forEach(O=>{_r.isDelTableRow(O)||x.push({...O,toShear:()=>O.shear=!0})}),_r.ArrayAttributeFlat(x,u,O=>{O.toShear||(O.shear=!0)}),(!p.onBeforeShear||await p.onBeforeShear(x))&&(x.forEach(O=>{O.toShear(),delete O.toShear}),console.log("剪切",x),d&&d(O=>({...O,clipboard:x})),p.setDataSource("shear",i),(k=p.onAfterShear)==null||k.call(p,x),x.length&&(x.onPasteCallback=async O=>{var I;const $=O==t,D=[...i],V=()=>{d&&d(N=>({...N,clipboard:[]})),[...x].reverse().forEach(N=>{const F=_r.getTreeRelationNoRecursion({data:D,lookup:T=>T[g]==N[g],childrenKey:u});l&&F.self.dataType!=="add"?(F.self.shear=!1,F.self.dataType="del",_r.ArrayAttributeFlat(F.self[u],u,T=>{T.toShear||(T.shear=!1,T.dataType="del")})):F.parent?F.parent[u].splice(F.index,1):D.splice(F.index,1)}),p.setDataSource("shear",D)};return!p.onBeforeDeleteShear||await p.onBeforeDeleteShear({isSameSpace:$,deletes:x})?(V(),(I=p.onAfterDeleteShear)==null||I.call(p,{isSameSpace:$,deletes:x}),Promise.resolve(D)):Promise.reject(J("sys.operation.cutFailed",{placeholder:"剪切失败"}))}))},_=async(p,v)=>{var k;const x=[];x.type="copy",x.namespace=t,v.forEach(O=>{_r.isDelTableRow(O)||(O.shear=!1,_r.ArrayAttributeFlat(O[u],u,$=>{$.shear=!1}),x.push({...O}))}),(!p.onBeforeCopy||await p.onBeforeCopy(x))&&(console.log("复制",x),d&&d(O=>({...O,clipboard:x})),p.setDataSource("paste",i),(k=p.onAfterCopy)==null||k.call(p,x))},C=async(p,{pasteData:v,pasteTarget:x})=>{var O,$;const k=_r.ArrayAttributeFlat(v,u).every(D=>!x.includes(D[g]));if(console.log({isNonSelf:k}),x.length==1&&v.length&&k){const V=_r.ArrayAttributeFlat(i,u).find(N=>N[g]==x[0]),I=p.pasteInto||"child";if(!p.onBeforePaste||await p.onBeforePaste({target:V,rows:v,type:I}))try{const N=await((O=v.onPasteCallback)==null?void 0:O.call(v,t))||[...i],F=_r.getTreeRelationNoRecursion({data:N,lookup:T=>T[g]==V[g],childrenKey:u});if(l){const T=M=>M.map(j=>Object.assign({...j,shear:!1,dataType:"add",[g]:_r.generateUUID(),primitiveInsId:j.primitiveInsId||j[g]},j[u]?{[u]:T(j[u].filter(H=>!M.some(z=>z[g]==H[g]))||[])}:{}));v=T(v)}if(I=="child"){const T=F.self[u];F.self[u]=[...T,...v]}else F.parent?F.parent[u].splice(F.index+1,0,...v):N.splice(F.index+1,0,...v);p.setDataSource("paste",N),($=p.onAfterPaste)==null||$.call(p,{target:V,type:I})}catch(N){console.error(N)}}};a&&yJ(_r.isMac()?"meta":"ctrl",{shortcuts:[[["x"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({shearList:p}),E(a,p)})],[["c"],S(async()=>{const p=_r.ArrayAttributeFlat(i,u).filter(v=>s.includes(v[g]));console.log({copyList:p}),_(a,p)})],[["v"],S(async()=>{const p=(h==null?void 0:h.clipboard)||[];C(a,{pasteData:p,pasteTarget:s})})]],namespace:t});const f=A.useRef(null);return A.useEffect(()=>{var p;r||((p=f.current)==null||p.focus(),y(!0))},[s.length,s[0]]),A.useEffect(()=>{n(!1)},[]),{namespace:t,isGainFocus:b,focus:()=>{var v;const p=document.querySelector(":focus");p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement||(v=f.current)==null||v.focus()},shear:E,copy:_,paste:C,FocusDom:B.jsx("input",{ref:f,"data-type":oP,type:"text",id:t,onFocus:()=>y(!0),onBlur:()=>y(!1),readOnly:!0,style:{opacity:0,position:"fixed",left:"-100%",top:"-100%",zIndex:"-10"}})}},wJ=(e,t,r,n)=>{const[a,i]=A.useState();return A.useEffect(()=>{async function o(s){if(r){const u=s.clipboardData,l=r.dataIndex,h=r.record;let d=null;if(h.newVal&&Object.hasOwn(h.newVal,l)?d=h.newVal[l]:d=h[l]||null,d)try{u.setData("text/plain",d),i(d),s.preventDefault()}catch(g){console.error("Failed to write to clipboard: ",g)}}}return document.addEventListener("copy",o),()=>{document.removeEventListener("copy",o)}},[r,n]),{copyData:a}},Hw=A.createContext(null),_m="tableTopBox",wm=A.forwardRef((e,t)=>{var D;A.useImperativeHandle(t,()=>({scrollTo:V=>{i.current.scrollTo(V)},scrollXTo:V=>{if(a.current){const I=a.current.querySelector(".frontend-table-body");I&&(I.scrollLeft=V)}},clearFilters:h,setTableFiltered:b,clipboard:$}));const[r]=A.useState(_r.generateUUID()),n=A.useRef(null),a=A.useRef(null),i=A.useRef(null),[o]=ue.Form.useForm(),s=fJ(),{sortInfo:u,filterInfo:l,clearFilters:h,getColumnSearchProps:d,onFiltersChange:g,setTableFiltered:b}=pJ(e.onFilterAndSorter),[y,{toggleFullscreen:w,exitFullscreen:S}]=aR(a,{pageFullscreen:{zIndex:500}}),E=e.tableKey||r;A.useEffect(()=>{const V=I=>{I.key=="Escape"&&y&&S()};return addEventListener("keydown",V),()=>{removeEventListener("keydown",V)}});const _=RZ({hideFooter:!!e.hideFooter,contentRef:n,tableRef:a,scroll:e.scroll,fullScreenMinusHeight:e.fullScreenMinusHeight||0,scrollUpdate:e.scrollUpdate,onTableHeightChange:e==null?void 0:e.onTableHeightChange},!!e.isFullscreen||y),[C,f]=OZ(()=>({scroll:{y:1e3},ref:i}),[]),p={header:{cell:AZ},body:{cell:dJ}};A.useMemo(()=>f(p),[f]);const{renderColumns:v}=gJ({...e,tableKey:E},u,l,s,d,_,e.selectedCell),{pasteData:x}=vJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{var V;if(x&&e.selectedCell){const I=e.dataSource||[],N=String(e.rowKey)||"id",F=I.findIndex(G=>{var X;return G[N]==((X=e.selectedCell)==null?void 0:X.record[N])}),T=e.columns.findIndex(G=>{var X;return G.dataIndex==((X=e.selectedCell)==null?void 0:X.dataIndex)});let M=((V=x[0])==null?void 0:V.length)||0,j=(x==null?void 0:x.length)||0;const H=e.columns.slice(T,T+M),z=I.slice(F,F+j);let U=[];x.forEach((G,X)=>{if(z.length>X){const K={};G.forEach((ne,ae)=>{H.length>ae&&(K[H[ae].dataIndex]=ne,K[N]=z[X][N])}),U.push(K)}}),e.onPaste&&e.onPaste(_r.transformArrayToMap(U,N))}},[x]);const{copyData:k}=wJ(a,e.dataSource,e.selectedCell,e.columns);A.useEffect(()=>{k&&e.selectedCell&&e.onCopy&&e.onCopy(k)},[k]);const{run:O}=CH(async V=>{const I=e.pageNo||1,N=e.pageSize||10,F=e.total||0;Math.abs(parseInt(V.target.scrollTop+V.target.clientHeight)-V.target.scrollHeight)<1.5&&!e.loading&&I*N<F&&e.onScroll&&e.onScroll(I+1)},{wait:400}),$=_J(e,r);return B.jsxs("div",{ref:n,id:`table_key_${E}`,className:`${ki.main} ${_m}`,style:{position:"relative",overflow:"hidden"},onClick:V=>$.focus(),onScrollCapture:V=>{V.target.scrollHeight!==24&&V.target.className==="frontend-table-body"&&(e.onBeforeScroll?e.onBeforeScroll()&&O(V):O(V))},children:[B.jsx(hJ,{menuId:s,..._e.pick(e,["onFill"])}),$.FocusDom,B.jsxs(ue.Form,{form:o,component:!1,children:[B.jsx(Hw.Provider,{value:o,children:B.jsx(ue.Table,{className:ge(e.showcheckbox?void 0:"table-checkbox"),ref:a,rowKey:e.rowKey||"id",style:{borderBottom:"1px solid #e4e4e4",borderRight:"1px solid #e4e4e4",background:"#fff"},pagination:!1,components:C,bordered:!0,..._e.omit(e,["columns","scroll","expandable","tableKey","onScroll"]),tableKey:E,loading:{indicator:B.jsx(Uf,{style:{fontSize:32},spin:!0}),spinning:!!e.loading},showSorterTooltip:!1,expandable:{indentSize:18,expandIcon:({expanded:V,onExpand:I,record:N,expandable:F})=>N.children&&N.children.length||N.hasChildren?V?B.jsx(E5,{className:"expand",onClick:T=>{I(N,T)}}):B.jsx(O5,{className:"expand",onClick:T=>{I(N,T)}}):(e.isTree||F!==void 0)&&B.jsx("span",{style:{float:"left",width:"15px",height:"1px"}}),...e.expandable},scroll:{y:_,scrollToFirstRowOnChange:!0,..._e.merge(e.scroll,{x:(D=e.scroll)==null?void 0:D.x})},columns:v,onChange:g})}),B.jsx(mJ,{...e,className:e.tableFooterClassName,clearFilters:h,enterFullscreen:e==null?void 0:e.toggleFullscreen,customRender:e.tableFooterDateRender})]})]})}),{Option:al}=ue.Select,sP=A.forwardRef((e,t)=>{const r=A.useRef("1848553711328477186"),[n,a]=A.useState([]),[i,o]=A.useState([]),[s,u]=A.useState([]),l=Sa({pageNo:1,pageSize:50,total:0}),h=Sa({sorter:"",filters:"",itemCodes:`${Cs.material},${Cs.document},${Cs.file}`,initialItemCodes:""}),d=Sa({loading:!1,searchValue:"",focus:!1,excludeIds:"",objectIds:"",columns:[{title:J("sys.label.nameRe",{placeholder:"姓名"}),ellipsis:!0,dataIndex:"Name",sorter:!0,width:155},{title:J("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),ellipsis:!0,dataIndex:"Email",sorter:!0,width:155},{title:J("sys.label.employeeID",{placeholder:"工号"}),ellipsis:!0,dataIndex:"EmpNo",sorter:!0,width:155}],conditionObject:[],sideChoice:0,columnsHighlight:[]});Wf(()=>{var _;let E=[];for(let C of e.columns||d.columns)E.push({...C,render:!C.render&&((_=e.placeholderCode)!=null&&_.includes(C.dataIndex))?f=>B.jsx(rs,{value:f,highlight:g.numberHighLight||[]}):C.render});d.columnsHighlight=E,e.isSelect&&e.allCategories?e.getItems().then(C=>{if(C.code==200){let f=[];for(let v of C.result)v.code!=10001019&&v.code!=10001017&&v.code!=10001018&&f.push({label:v.name,value:v.code});d.conditionObject=f;let p=_e.map(f,"value").join(",");h.itemCodes=p,h.initialItemCodes=_e.cloneDeep(p),y(!0)}}):y(!0)}),A.useEffect(()=>(e.enter&&!d.focus&&s.length>0?b():document.onkeydown=null,()=>{document.onkeydown=null}),[s,d.focus]),A.useImperativeHandle(t,()=>({getLoading:E=>{d.loading=E},backfill:E=>{u(E)}}));const g=Sa({numberHighLight:[]}),b=()=>{document.onkeydown=function(E){var _=window.event||E,C=_.keyCode||_.which;if(C==13&&!d.loading){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ue.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}let f=s.length?_e.map(s,"id").join(","):"";e.onChange&&e.onChange(f),e.handleSubmit&&e.handleSubmit(s)}}},y=async(E=!1,_)=>{d.loading=!0;const{pageNo:C,pageSize:f}=l,{filters:p,sorter:v,itemCodes:x}=h;let k={...e.params};if(d.searchValue&&(e.formate=="1"||e.formate=="2"?k.orQuery=e.params.columns.split(",").map(I=>I+"-"+d.searchValue).join("~!~"):k.keyword=d.searchValue),!e.getUrlData){a([]),l.total=0,d.loading=!1;return}const{records:O,total:$,columns:D}=await e.getUrlData({pageNo:C,pageSize:f,filters:p,sorter:v,itemCodes:x,refreshSize:_,searchValue:d.searchValue,sideChoice:d.sideChoice,params:k});D&&(d.columns=D),d.loading=!1;const V=O||[];l.total=$,E?(a(V),o(_e.cloneDeep(V)),e.onInit&&e.onInit(V)):(a([...n,...V]),o(_e.cloneDeep([...n,...V])))},w=E=>{E=="0"?h.itemCodes=h.initialItemCodes:h.itemCodes=E,a([]),u([]),l.pageNo=1,d.searchValue="",y(!0,l.pageSize)},S=E=>{u([]),e.searchChange&&e.searchChange(E),d.searchValue=E,g.numberHighLight=E?[E]:[],l.pageNo=1,y(!0)};return B.jsx($u,{width:e.width,forceRender:!0,className:Y1.tableSelection,modalTitle:e.title,mask:!1,visible:e.visible,maskClosable:!1,onCancel:()=>{e.onCancel&&e.onCancel()},footer:null,destroyOnClose:!0,onOk:async()=>{e.handleSubmit&&e.handleSubmit(s)},children:B.jsxs("div",{style:e.isBroadside?{display:"flex"}:{},children:[e.isBroadside&&B.jsx("div",{className:Y1.sideBox,style:{paddingRight:e.isLibrary?"12px":"0px",minWidth:e.isLibrary?"110px":void 0,overflow:"hidden"},children:e.isLibrary?B.jsx(HT,{itemCode:Cs.technology,onGetTreeFields:E=>{},onSelected:E=>{r.current=E.id,l.pageNo=1,y(!0)},outIsSelected:!1,getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab()}):[J("sys.myCreated",{placeholder:"我创建的"}),J("sys.label.all",{placeholder:"全部"})].map((E,_)=>B.jsx("div",{onClick:()=>{d.sideChoice=_,l.pageNo=1,y(!0)},style:{marginBottom:"12px",cursor:"pointer",color:_==d.sideChoice?"#0563b2":""},children:E},_))}),B.jsxs("div",{style:{width:(e.isBroadside,"100%"),overflow:"hidden"},children:[!e.noSearch&&B.jsx(ue.Form.Item,{rules:[{required:!1}],children:B.jsxs("div",{style:{display:"flex"},children:[e.isSelect&&B.jsxs(B.Fragment,{children:[e.allCategories&&d.conditionObject.length>0&&B.jsxs(ue.Select,{disabled:d.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[B.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),"(",d.conditionObject.map(E=>B.jsx(al,{value:E.value,children:E.label})),")"]}),!e.allCategories&&B.jsxs(ue.Select,{disabled:d.loading,defaultValue:"0",style:{width:120,marginRight:"10px"},onChange:E=>{w(E)},children:[B.jsx(al,{value:"0",children:J("sys.label.all",{placeholder:"全部"})}),B.jsx(al,{value:Cs.material,children:J("sys.label.material",{placeholder:"物料"})}),B.jsx(al,{value:Cs.document,children:J("sys.document.document",{placeholder:"文档"})}),B.jsx(al,{value:Cs.file,children:J("sys.label.file",{placeholder:"文件"})})]})]}),B.jsx(ue.Input,{style:{width:240},onBlur:()=>{d.focus=!1},onFocus:()=>{d.focus=!0},allowClear:!0,value:d.searchValue,placeholder:e.placeholder||J("sys.enterSearch",{placeholder:"请输入搜索内容"}),suffix:B.jsx(Dt,{type:"content-search",style:{color:"#BABABA"},onClick:()=>{S(d.searchValue)}}),onChange:E=>{d.searchValue=E.target.value,E.target.value||(u([]),e.searchChange&&e.searchChange(""),l.pageNo=1,g.numberHighLight=[],y(!0))},onPressEnter:E=>{S(E.target.value)}})]})}),e.isDownload&&B.jsxs("div",{style:{display:"flex",marginBottom:"12px"},children:[B.jsx(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"1")},children:J("sys.label.download",{placeholder:"下载"})}),B.jsx("span",{style:{marginRight:"24px"}}),B.jsxs(Dt,{disabled:!s.length,placement:!0,type:"rightbar-download",style:{marginRight:"5px",fontSize:"15px"},onDivClick:()=>{e.handleSubmit&&e.handleSubmit(s,"2")},children:[J("sys.label.download",{placeholder:"下载"}),"PDF"]})]}),B.jsx("div",{className:Y1.tableFrame,style:{display:"flex"},children:B.jsx(wm,{onSelectCell:()=>{u([])},expandable:{expandIconColumnIndex:e.isLibrary?2:void 0},rowSelection:{columnWidth:15,fixed:"left",hideSelectAll:!e.isCheckbox,selectedRowKeys:s.map(E=>E.id),onChange:(E,_)=>{e.isCheckbox?u(_):_.length?u([_.pop()]):u([])},getCheckboxProps:E=>({disabled:E.number==="~#~"||!!(e.convertFun&&_e.includes(E.unique,"-"))})},onRow:E=>({onDoubleClick:()=>{if(E.number!=="~#~")if(s.length>1){if(e.maxSelect&&s.length+(e.value||[]).length>e.maxSelect){ue.message.error(J("sys.maxSelect",{placeholder:"至多选择{maxSelect}个",variate:{maxSelect:e.maxSelect}}));return}e.onChange&&e.onChange(_e.map(s,"id").join(",")),e.handleSubmit&&e.handleSubmit(s)}else u([E]),e.onChange&&e.onChange(E.id),e.handleSubmit&&e.handleSubmit([E])}}),loading:d.loading,dataSource:n,columns:d.columnsHighlight,...l,scroll:{y:e.height||200},onScroll:E=>{l.pageNo=E,y()},onFilterAndSorter:(E,_,C)=>{if(u([]),e.isBuiltInSort)if(E){let f=_e.orderBy(n,[E.split("-")[0]],[E.split("-")[1]]);a(f)}else a(i);else{if(e.isUseRuleSort){const f=Jo.sortAndFilterTable({sorters:E,filters:_,sortersField:C,tableColumns:e.columns});h.sorter=f.sorters,h.filters=f.filters}else h.sorter=E,h.filters=_;l.pageNo=1,y(!0)}}})})]})]})})}),xJ="_selectFrameBox_mktv5_1",SJ={selectFrameBox:xJ},uP=A.forwardRef((e,t)=>{const[r,n]=A.useState(e.value),a=A.useContext(Vf),i=a==null?void 0:a.linkInstanceCom;A.useEffect(()=>{n(e.value)},[e.value]);const o=Sa({visible:!1,options:[],enter:!1});A.useEffect(()=>{e.options&&e.options.length&&(o.options=e.options)},[e.options]);const s=()=>{var g;const l=(g=e.params)==null?void 0:g.ids,h=l?l.join(","):"",d=e.isCheckbox?r&&r.join(","):r;return`${h}${d!=null&&d.length&&h?",":""}${d??""}`},u=()=>{var l,h;if(i){const d=i;return B.jsx(d,{userId:r,id:r,content:(l=_e.filter(e.options,g=>g.id==r)[0])==null?void 0:l.Name})}return B.jsx("div",{children:(h=_e.filter(e.options,d=>d.id==r)[0])==null?void 0:h.Name})};return B.jsxs("div",{className:SJ.selectFrameBox,style:e.width?{width:e.width}:void 0,children:[e.disabled&&e.userLink?u():B.jsxs("div",{style:{display:"flex",gap:"5px"},children:[B.jsx(ue.Select,{style:{minWidth:"85px"},mode:"multiple",allowClear:!0,open:!1,showSearch:!1,disabled:e.disabled,value:r||void 0,options:o.options,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"},placeholder:e.placeholder||J("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{e.disabled||(o.visible=!0,o.enter=!0)},onChange:l=>{e.onChange&&e.onChange(l)},tagRender:l=>fi.readPermission(l.label)?B.jsx(ue.Tag,{color:"blue",closable:!0,style:{borderRadius:"0",border:"none",fontSize:"12px",padding:"2px 7px"},closeIcon:B.jsx(Dt,{type:"close",style:{fontSize:"12px",cursor:"pointer"},onClick:h=>{h.stopPropagation();const d=r.filter(g=>g!==l.value);n(d),e.onChange&&e.onChange(d)}}),children:l.label},l.value):B.jsx(co,{})}),e.showButton?B.jsx(ue.Button,{onClick:()=>{o.visible=!0,o.enter=!0},style:{display:"flex",height:"32px",width:"32px",background:"#fafafa",alignItems:"center",justifyContent:"center"},children:B.jsx(Dt,{type:"content-search",style:{fontSize:"16px"}})}):B.jsx(B.Fragment,{})]}),o.visible&&B.jsx(sP,{visible:o.visible,title:e.title||J("sys.label.selectOption",{placeholder:"请选择"}),width:e.modalWidth,value:e.value,formate:e.formate,noSearch:e.noSearch,isUseRuleSort:e.isUseRuleSort,getUrlData:async l=>{const{records:h,total:d}=await e.getUrlData(l);return{records:h,total:d}},getItems:()=>e.getItems&&e.getItems()||[],params:{...e.params,ids:s()},getInstanceMenu:()=>e.getInstanceMenu&&e.getInstanceMenu(),getAttributeByTab:()=>e.getAttributeByTab&&e.getAttributeByTab(),isLibrary:e.isLibrary,isBroadside:e.isBroadside,height:e.height,enter:o.enter,placeholder:e.searchPlaceholder||J("sys.enterKeyword.enterKeyword",{placeholder:"请输入关键字"}),placeholderCode:e.placeholderCode||"",columns:e.columns,isCheckbox:e.isCheckbox,maxSelect:e.maxSelect,onChange:l=>{if(e.isCheckbox){let h=_e.compact(_e.concat(r,l.split(",")));e.onChange&&e.onChange(l?h:void 0)}else e.onChange&&e.onChange(l)},handleSubmit:l=>{e.isCheckbox?o.options=_e.concat(o.options,l):o.options=l,e.onSubmit&&e.onSubmit(o.options),o.visible=!1,o.enter=!1},onInit:l=>{o.options=l},onCancel:()=>{o.visible=!1,o.enter=!1}})]})}),CJ="_searchTextTips_daoe4_1",EJ={searchTextTips:CJ};function OJ({fetchOptions:e,debounceTimeout:t=500,...r}){const[n,a]=A.useState(!1),[i,o]=A.useState([]),s=A.useRef(0);A.useEffect(()=>{o(r.options)},[r.options]);const u=A.useMemo(()=>{const l=h=>{s.current+=1;const d=s.current;o([]),a(!0),e(h,r).then(g=>{d===s.current&&(o(g),a(!1))})};return _e.debounce(l,t)},[e,t]);return B.jsx(ue.Select,{...r,labelInValue:!0,showArrow:!0,filterOption:!1,onSearch:u,notFoundContent:n?B.jsx("div",{style:{textAlign:"center"},children:B.jsx(ue.Spin,{size:"small"})}):B.jsx(ue.Empty,{image:ue.Empty.PRESENTED_IMAGE_SIMPLE}),options:i,onBlur:()=>{o(r.options)},url:void 0,ischeckbox:void 0,dropdownRender:l=>B.jsxs(B.Fragment,{children:[l,B.jsx(ue.Divider,{style:{margin:"8px 0"}}),B.jsx("div",{className:EJ.searchTextTips,children:`${J("sys.resultDisplayLimit",{placeholder:"结果只显示前{count}条",variate:{count:100}})},${J("sys.input.enterExactQuery",{placeholder:"请输入参数精确查询"})}`})]})})}async function WE(e,t){var i,o;let r,n={pageNo:1,pageSize:100,...t.params};e&&(n.andQuery=`${t.params.andQuery}~!~${t.fieldNames.label}-${e}`),typeof t.url=="function"?r=await t.url(n):r=await t.getPageList(t.url,n,_e.includes(t.url,"opendata"));let a;return(i=t.fieldNames)!=null&&i.label?a=_e.reject((o=r.result)==null?void 0:o.records,s=>{var u;return s[(u=t.fieldNames)==null?void 0:u.label]==="~#~"}):a=r.result.records,a}const RJ=A.forwardRef((e,t)=>{const[r,n]=A.useState(e.value),[a,i]=A.useState([]);return Wf(async()=>{i(await WE("",e))}),B.jsx(OJ,{...e,showSearch:!0,mode:e.ischeckbox?"multiple":void 0,value:r,fetchOptions:WE,style:{width:"100%"},options:a,fieldNames:e.fieldNames?e.fieldNames:{label:"label",value:"value"}})}),TJ=e=>B.jsx(B.Fragment,{}),up=e=>B.jsx(ue.TreeSelect,{...e,showSearch:!0,treeNodeFilterProp:"label",getPopupContainer:t=>t.parentNode||document.body}),lP=A.forwardRef((e,t)=>{const r=A.useContext(Vf),n=(r==null?void 0:r.formItemCom)||{},a=A.useCallback((s,u)=>{var g,b;const{type:l,cannotread:h,props:d}=s;if(h!=="0"){let y=!1;if(typeof e.readOnly=="boolean"?y=e.readOnly:typeof e.readOnly=="function"&&(y=e.readOnly()),l==="Input")return y?B.jsx(J0,{...d,placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):B.jsx(J0,{...d});if(l==="Select")return d!=null&&d.loading?(u="",B.jsx(ue.Form.Item,{noStyle:!0,children:B.jsx(gu,{...d,options:[],loading:!0,value:((b=(g=e==null?void 0:e.content)==null?void 0:g.props)==null?void 0:b.mode)==="multiple"?[]:"",disabled:y||(d==null?void 0:d.disabled)})})):d!=null&&d.options&&d.options.length?typeof u=="string"&&u.split(",").length>1&&(d==null?void 0:d.mode)!=="multiple"?e.readOnly?B.jsx("span",{style:{paddingLeft:"5px"},children:u.split(",").map(w=>B.jsx(ue.Tag,{children:_r.getLabelInOptions({value:w,options:(d==null?void 0:d.options)||[]})},w))}):(d.options=[...d==null?void 0:d.options,{label:u.split(",").map(w=>_r.getLabelInOptions({value:w,options:(d==null?void 0:d.options)||[]})).join(","),disabled:!0,value:u}],B.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...d,showSearch:!0,disabled:y||(d==null?void 0:d.disabled)})):B.jsx(gu,{filterOption:(w,S)=>S.label&&S.label.indexOf(w)>=0,...d,showSearch:!0,disabled:y||(d==null?void 0:d.disabled)}):B.jsx(gu,{...d,showSearch:!0,options:[],disabled:y||(d==null?void 0:d.disabled)});if(l==="PopupSelect")return d.options===void 0||d.options.length>0?B.jsx(uP,{...d,title:e.label,disabled:y||(d==null?void 0:d.disabled)},e.name):"";if(l==="SearchSelect")return B.jsx(RJ,{...d},e.name);if(l==="Checkbox")return B.jsx(ue.Checkbox,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Checkbox.Group")return B.jsx(ue.Checkbox.Group,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Input.TextArea")return y?B.jsx(ue.Input.TextArea,{...d,disabled:!0}):B.jsx(ue.Input.TextArea,{...d});if(l==="Input.Password")return y?B.jsx(ue.Input.Password,{...d,disabled:!0}):B.jsx(ue.Input.Password,{...d});if(l==="Date")return y?B.jsx(ue.DatePicker,{...d,size:"middle",placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):B.jsx(ue.DatePicker,{...d});if(l==="DatePicker.RangePicker")return y?B.jsx(ue.DatePicker.RangePicker,{...d,disabled:y||(d==null?void 0:d.disabled),placeholder:["",""],separator:""}):B.jsx(ue.DatePicker.RangePicker,{...d});if(l==="TimePicker.RangePicker")return y?B.jsx(ue.TimePicker.RangePicker,{...d,disabled:y||(d==null?void 0:d.disabled)}):B.jsx(ue.TimePicker.RangePicker,{...d});if(l==="Switch")return B.jsx(ue.Switch,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Number")return(d==null?void 0:d.apicode)==="FileSize"?B.jsx(J0,{...d,disabled:y||(d==null?void 0:d.disabled)},d.id):y?B.jsx(ue.InputNumber,{...d,placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):B.jsx(ue.InputNumber,{...d});if(l==="Cascader")return y?B.jsx(ue.Cascader,{...d,placeholder:"",disabled:y||(d==null?void 0:d.disabled)}):B.jsx(ue.Cascader,{showSearch:{filter:(w,S)=>S.some(E=>E.label&&E.label.toLowerCase().indexOf(w.toLowerCase())>-1),matchInputWidth:!1},...d});if(l==="TreeSelect")return d.treeData&&d.treeData.length?y?B.jsx(up,{...d,disabled:y||(d==null?void 0:d.disabled),showSearch:!0,treeNodeFilterProp:"label"}):B.jsx(up,{...d,showSearch:!0,treeNodeFilterProp:"label"}):B.jsx(up,{disabled:y||(d==null?void 0:d.disabled)});if(l==="Radio")return y?B.jsx(ue.Radio,{...d,disabled:y||(d==null?void 0:d.disabled)}):B.jsx(ue.Radio,{...d});if(l==="Radio.Group")return y?B.jsx(ue.Radio.Group,{...d,disabled:y||(d==null?void 0:d.disabled)}):B.jsx(ue.Radio.Group,{...d});if(l==="Slider")return B.jsx(ue.Slider,{...d,disabled:y||(d==null?void 0:d.disabled)});if(l==="Markdown")return B.jsx(HR,{...d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="SelectPopup")return B.jsx(aP,{selectProps:d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="SelectTransfer")return B.jsx(rP,{selectProps:d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="CompositeForm")return B.jsx(Kf,{...d,readOnly:y||(d==null?void 0:d.disabled)});if(l==="Title")return B.jsx(TJ,{...d,readOnly:y||(d==null?void 0:d.disabled)});if(n[l]){const w=n[l];return B.jsx(w,{type:l,...d,name:e.name,disabled:y||(d==null?void 0:d.disabled)},e.name)}return B.jsx("span",{children:u})}else return B.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}})},[e.readOnly]),i=A.useMemo(()=>e.ignoreNoWhiteSpaceStart?e.rules:e.content.type==="Input"||e.content.type==="Input.TextArea"?_e.concat(e.NoWhiteSpaceStart,e.rules||[]):e.rules,[e.rules,e.ignoreNoWhiteSpaceStart]),o=e.content.type=="Title";return B.jsx(ue.Form.Item,{colon:!1,..._e.omit(e,["readOnly","content","ignoreNoWhiteSpaceStart"]),className:ge(ZW.main,e.className,o?GLOBAL_ATTR_TITLE:"",{readOnly:e.readOnly}),"data-type":e.content.type,validateFirst:!0,validateTrigger:["onBlur","onChange"],rules:i,children:a(e.content,e.name)})}),PJ="_itemsCreated_ow91h_1",kJ="_rowBox_ow91h_4",$J="_labelLength_ow91h_8",il={itemsCreated:PJ,rowBox:kJ,labelLength:$J},AJ="_advanced_search_content_775l0_1",DJ="_disableBg_775l0_1",MJ="_checkboxWidth_775l0_15",NJ="_radioWidth_775l0_18",IJ="_conditions_head_775l0_21",FJ="_head1_775l0_29",jJ="_head2_775l0_32",LJ="_head3_775l0_35",zJ="_head4_775l0_38",BJ="_properties_box_775l0_41",HJ="_className_tips_775l0_44",VJ="_groupHeader_775l0_49",UJ="_iconBtn_775l0_52",qJ="_properties_item_775l0_61",WJ="_left_tips_775l0_84",YJ="_state_type_775l0_87",GJ="_verification_775l0_100",KJ="_verificationBorder_775l0_121",Tt={advanced_search_content:AJ,disableBg:DJ,checkboxWidth:MJ,radioWidth:NJ,conditions_head:IJ,head1:FJ,head2:jJ,head3:LJ,head4:zJ,properties_box:BJ,className_tips:HJ,groupHeader:VJ,iconBtn:UJ,properties_item:qJ,left_tips:WJ,state_type:YJ,verification:GJ,verificationBorder:KJ},XJ="_shuttle_box_tufhg_1",ZJ="_transferBox_tufhg_4",JJ="_selectNum_tufhg_7",C0={shuttle_box:XJ,transferBox:ZJ,selectNum:JJ},QJ=e=>{const t=Sa({dataSource:[],targetKeys:[],columns:[]}),r=s=>s&&_e.isString(s)&&s.includes("~#~")?B.jsx("div",{style:{width:"28px",height:"10px",backgroundColor:"#d9d9d9"}}):s;A.useEffect(()=>{t.dataSource=e.dataSource,t.targetKeys=e.targetKeys;let s=[];for(let u of e.columns)s.push({...u,ellipsis:!0,sorter:(l,h)=>{const d=u.dataIndex||"";return l[d]!=null&&h[d]!=null?_e.isString(l[d])&&_e.isString(h[d])?l[d].localeCompare(h[d]):_e.isNumber(l[d])&&_e.isNumber(h[d])?l[d]-h[d]:0:0},render:u.render?u.render:r});t.columns=s},[e.dataSource,e.targetKeys]);const n=({...s})=>B.jsx(ue.Transfer,{...s,rowKey:u=>u.id,children:({direction:u,filteredItems:l,onItemSelectAll:h,onItemSelect:d,selectedKeys:g})=>{const b={onSelectAll(y,w){const S=w.filter(_=>!_.disabled).map(({id:_})=>_),E=y?_e.difference(S,g):_e.difference(g,S);h(E,y)},onSelect({id:y},w){e.isRadio&&g.splice(0,1),d(y,w)},getCheckboxProps:y=>({disabled:y.name=="~#~"||y.number=="~#~"||y.empNo=="~#~"?!0:u=="left"?y.disabled:!1}),selectedRowKeys:g};return B.jsxs(B.Fragment,{children:[B.jsx(ue.Table,{rowSelection:{type:e.isRadio?"radio":"checkbox",...b},columns:t.columns,showSorterTooltip:!1,pagination:!1,dataSource:l,scroll:{y:301},style:{height:"338px"},size:"small",onRow:y=>({onClick:()=>{y.name=="~#~"||y.empNo=="~#~"||!y.disabled&&u==="left"&&(e.isRadio&&g.splice(0,1),d(y.id,!g.includes(y.id)))},onDoubleClick:()=>{if(!(y.name=="~#~"||y.empNo=="~#~")){if(u==="left")y.disabled||(e.isRadio&&(t.targetKeys=[]),t.targetKeys.unshift(y.id));else for(let w=0;w<t.targetKeys.length;w++)if(t.targetKeys[w]==y.id){t.targetKeys.splice(w,1);break}}}})}),u==="left"?B.jsxs("div",{className:C0.selectNum,children:[e.defaultPageSize!==50?`${J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}})}`:J("sys.maxDisplay50",{placeholder:"最多显示50条"})," ",", ",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),l.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]}):B.jsxs("div",{className:C0.selectNum,children:[J("sys.label.selected",{placeholder:"已选{count}条",variate:{count:g.length}}),",",J("project.tab.plan.criticalPath.window.total",{placeholder:"共"}),l.length,J("project.tab.plan.quantityDisplay.select",{placeholder:"条"})]})]})}}),a=s=>{e.isRadio?t.targetKeys=[s[0]]:t.targetKeys=s},i=async()=>{let s=[];for(let u=0;u<t.targetKeys.length;u++)for(let l=0;l<t.dataSource.length;l++)if(t.targetKeys[u]==t.dataSource[l].id){s.push(t.dataSource[l]);break}e.onSubmit&&e.onSubmit(s)},o=()=>{if(e.columns.length>0){let s=[J("project.workflow.status",{placeholder:"状态"}),J("sys.import.category",{placeholder:"分类"})];return J("project.create.attr.verify.scheduledDate.input",{placeholder:"请输入{content}",variate:{content:_e.without(_e.map(e.columns,"title"),...s).join("、")}})}return J("sys.enterSearch",{placeholder:"请输入搜索内容"})};return B.jsx($u,{className:C0.shuttle_box,modalTitle:e.title,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),width:850,visible:e.visible,onOk:()=>{i()},onCancel:()=>{e.onCancel&&e.onCancel()},children:B.jsx("div",{className:C0.transferBox,children:B.jsx(ec,{spinning:e.loading,children:B.jsx(n,{dataSource:t.dataSource,targetKeys:t.targetKeys,showSearch:!0,locale:{searchPlaceholder:e.searchPlaceholder||o()},showSelectAll:!1,onChange:a,filterOption:(s,u)=>u.Name&&u.Name.indexOf(s)!==-1||u.EmpNo&&u.EmpNo.indexOf(s)!==-1||u.empNo&&u.empNo.indexOf(s)!==-1||u.email&&u.email.indexOf(s)!==-1||u.name&&u.name.indexOf(s)!==-1||u.workflowName&&u.workflowName.indexOf(s)!==-1||u.code&&String(u.code).indexOf(s)!==-1||u.description&&u.description.indexOf(s)!==-1})})})})},{RangePicker:YE}=ue.DatePicker,{Option:Q1}=ue.Select,{TreeNode:GE}=ue.Tree,{confirm:Gpe}=ue.Modal,eQ=[{value:"and",label:J("sys.query.builder.condit.and",{placeholder:"与"})},{value:"or",label:J("sys.query.builder.condit.or",{placeholder:"或"})}],cP=A.forwardRef((e,t)=>{A.useRef();const r=A.useRef(null),n=A.useRef(null),a="YYYY-MM-DD HH:mm:ss",i={10002011:10001001,10002021:10001002,10002035:10001006,10002053:10001021,10002054:10001023,10002055:10001022},o=Sa({1:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],2:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],3:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],4:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],5:[[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"in",label:J("sys.condition.in",{placeholder:"在"})},{value:"!in",label:J("sys.condition.notIn",{placeholder:"不在"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]],6:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"between",label:J("sys.condition.in",{placeholder:"在"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],7:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})}],8:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],9:[{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],10:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],12:[{value:"contain",label:J("sys.condition.contains",{placeholder:"包含"})},{value:"!contain",label:J("sys.condition.notContains",{placeholder:"不包含"})},{value:"start",label:J("sys.condition.startsWith",{placeholder:"开始于"})},{value:"!start",label:J("sys.condition.notStartsWith",{placeholder:"不开始于"})},{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}],13:[{value:"eq",label:J("sys.condition.equals",{placeholder:"等于"})},{value:"ne",label:J("sys.condition.notEquals",{placeholder:"不等于"})},{value:"gt",label:J("sys.condition.greaterThan",{placeholder:"大于"})},{value:"ge",label:J("sys.condition.greaterThanOrEquals",{placeholder:"大于等于"})},{value:"lt",label:J("sys.condition.lessThan",{placeholder:"小于"})},{value:"le",label:J("sys.condition.lessThanOrEquals",{placeholder:"小于等于"})},{value:"null",label:J("sys.condition.isEmpty",{placeholder:"为空"})},{value:"!null",label:J("sys.condition.isNotEmpty",{placeholder:"不为空"})}]}),s=["ProductRoleList","CategoryList","VersionList","ProductList","LifePhaseList","WorkflowList","WorkflowNodeList"],u=Sa({verification:!1,useThrottle:!0,treeChoice:"",verifyRoute:!1,formCofing:{base_item_id:"",base_item_name:"",object_id:"",object_name:"",relations:[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}),l=Sa({routineData:[],treeData:[],treeDefine:[],treeDefineKey:[],treeIndex1:null,treeIndex2:null,treeLoading:!1,treeVisible:!1,treeCheckable:!1,titleName:"",dataSource:[],loading:!1,visibleTransfer:!1,targetKeys:[],isRadio:!1,isUserCode:"",department:!1,saveSearchVisible:!1,selectedKeys:""});A.useImperativeHandle(t,()=>({getValue:()=>u.formCofing,onVerification:O=>{u.verification=O},setCondition:(O,$)=>{$==0?(u.formCofing.base_item_id=O.value,u.formCofing.base_item_name=O.label):(u.formCofing.object_id=(O==null?void 0:O.value)||"",u.formCofing.object_name=(O==null?void 0:O.label)||"")},emptyCondition:O=>{O&&(u.formCofing.base_item_id="",u.formCofing.base_item_name="",u.formCofing.object_id="",u.formCofing.object_name=""),u.verification=!1,u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]},setConditionValue:O=>{u.formCofing=O},searchBtn:()=>{h()},defaultValue:()=>{var $;const O=($=e.typeData[0])==null?void 0:$.children.filter(D=>D.apicode==="Number"||D.apicode==="Name"||D.apicode==="Description")[0];u.formCofing.relations=[{join:"and",isGroup:!1,relation:[{attribute:{id:[e.typeData[0].value,O.id],name:`${e.typeData[0].label}/${O.name}`,lastSelected:O,type:O.valueType||"",rawType:O.valueType||"",tab_code:e.typeData[0].value,dataFrom:O.dataFrom||"",dataFromId:O.dataFromId||"",apicode:O.apicode,operator:"contain",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}]}}));const h=O=>{if(u.verification=!1,!u.formCofing.base_item_id){ue.message.warning(J("sys.import.selectCategory",{placeholder:"请选择分类"}));return}let $=_e.cloneDeep(u.formCofing.relations);$.length==1&&(y($),$=_e.compact($));for(let[D,V]of $.entries())for(let I of V.relation){if(!I.attribute.name||!I.attribute.operator||I.attribute.operator!="null"&&I.attribute.operator!="!null"&&!I.attribute.value){u.verification=!0;return}D!=0&&(V.join=$[D-1].relation[$[D-1].relation.length-1].attribute.attr_join)}{let D={base_item_id:u.formCofing.base_item_id,base_item_name:u.formCofing.base_item_name,object_id:u.formCofing.object_id,object_name:u.formCofing.object_name,relations:$};e.searchTable&&e.searchTable(D)}},d=(O,$)=>O=="5"&&$?$.listCode==10005213?o[O][2]:!$.allowMultiple||$.apicode=="LifeCyclePhase"||$.apicode=="Category"?o[O][0]:$.listType=="0"?o[O][1]:$.listType=="2"?o[O][2]:o[O][3]:o[O],g=()=>{u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.value=l.treeDefine.join(","),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.valueTreeKey=l.treeDefineKey,l.titleName="",l.treeVisible=!1},b=(O,$)=>$.some(D=>D.label&&D.label.toLowerCase().indexOf(O.toLowerCase())>-1),y=O=>O.map(($,D)=>($.relation.forEach((V,I)=>{let N=V.attribute;!N.name&&!N.operator&&!N.value&&delete $.relation[I]}),$.relation=_e.compact($.relation),$.relation.length==0&&delete O[D],$)),w=O=>{let $=[];if(O)for(let D of O)$.push({label:D.showName||D.name,value:D.id,disabled:!D.status});return $},S=O=>O.map($=>$.children?B.jsx(GE,{title:l.department?$.title:$.name,children:S($.children)},$.id):B.jsx(GE,{title:l.department?$.title:$.name},$.id)),E=(O,$)=>B.jsx(tm,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},searchWords:[$?$.toString():""],textToHighlight:O?O.toString():""}),_=()=>{n.current&&setTimeout(()=>{n.current.scroll({top:n.current.scrollTop+38,behavior:"smooth"})},100)},C=(O,$,D,V)=>{!D||D&&O.relation.length>1&&V==O.relation.length-1?u.formCofing.relations.splice($+1,0,{join:"and",isGroup:!1,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}):u.formCofing.relations[$].relation.splice(V+1,0,{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}),x(O),_()},f=O=>{u.formCofing.relations.splice(O+1,0,{join:"and",isGroup:!0,relation:[{attribute:{id:"",name:"",type:"",tab_code:"",operator:"",value:"",valueKey:[],valueTreeKey:[],attr_join:"and",routineData:[],forbidden:!0}}]}),_()},p=O=>{u.formCofing.relations.splice(O,1)},v=(O,$,D,V)=>{D&&O.relation.length>1?(O.relation.splice(V,1),x(O)):u.formCofing.relations.splice($,1)},x=O=>{for(let $=0;$<O.relation.length;$++)O.relation[$].attribute.forbidden=!0,O.relation.length>1&&O.relation.length-1!=$&&(O.relation[$].attribute.forbidden=!1)},k=(O,$,D,V,I)=>{if(D&&(D.apicode=="OrgName"||D.apicode=="CreateUserDepartment"))return B.jsx(ue.Select,{className:`
333
- ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
334
- ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
335
- ${Tt.radioWidth}
336
- `,value:O.attribute.value&&O.attribute.value.split(",")||void 0,disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,open:!1,suffixIcon:B.jsx(kl,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:J("sys.label.selectOption",{placeholder:"请选择"})}),onClick:()=>{O.attribute.operator!="null"&&O.attribute.operator!="!null"&&!e.readOnly&&(l.treeLoading=!0,l.treeVisible=!0,l.treeIndex1=V,l.treeIndex2=I,l.titleName=J("sys.selection.chooseDepartment",{placeholder:J("sys.selection.chooseDepartment",{placeholder:"选择部门"})}),l.treeDefine=O.attribute.value.split(","),l.treeDefineKey=O.attribute.valueTreeKey,l.treeCheckable=D.allowMultiple,l.department=!0,e.treeList().then(N=>{l.treeData=N.result,setTimeout(()=>{l.treeLoading=!1},200)}).catch(()=>{l.treeLoading=!1}))},onChange:N=>{l.treeDefine=N,O.attribute.value=N.join(",")}});if($=="4")return B.jsx(ue.InputNumber,{placeholder:J("sys.input.number",{placeholder:"请输入数字"}),className:`
337
- ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
338
- ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
339
- `,value:O.attribute.value,disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,style:{width:"100%",lineHeight:"28px"},onChange:N=>{O.attribute.value=N}});if($=="5")return D&&(D.listType=="1"||D.listType=="3"&&D.listCode!==10005222)?B.jsx(ue.Tooltip,{placement:"left",title:_e.map(O.attribute.valueKey,"label").join(","),children:B.jsx(ue.Select,{className:`
340
- ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
341
- ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
342
- ${D.allowMultiple?Tt.checkboxWidth:Tt.radioWidth}
343
- `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,open:!1,showArrow:!0,suffixIcon:B.jsx(kl,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{if(O.attribute.operator!="null"&&O.attribute.operator!="!null"&&!e.readOnly){if(l.loading=!0,D.apicode=="OldLifePhase"||D.apicode=="NewLifePhase"){l.isUserCode=D.apicode,l.visibleTransfer=!0,l.treeIndex1=V,l.treeIndex2=I,l.isRadio=!D.allowMultiple,e.getLifecycles(i[D.tabCode]).then(F=>{for(let T of F.result.records||[])T.id=String(T.code);l.dataSource=F.result.records||[],l.targetKeys=O.attribute.value.split(","),l.loading=!1});return}let N=D.apicode=="Category"&&O.attribute.tab_code!="10002001"?D.itemCode:u.formCofing.base_item_id;e.getListbycode(D.listCode).then(F=>{let T="",M;F.result.apicode=="CategoryList"?(T=`item_code=${N}`,M=1):F.result.apicode=="VersionList"||F.result.apicode=="ProductList"||(F.result.apicode=="LifePhaseList"||F.result.apicode=="WorkflowList"||F.result.apicode=="WorkflowNodeList")&&(F.result.apicode=="LifePhaseList"&&D.valueType=="10"?T=`item_code=${D.itemCode}`:F.result.apicode=="LifePhaseList"&&D.itemCode==10001006&&u.formCofing.base_item_id==10001001?T="item_code=10001006":F.result.apicode=="LifePhaseList"&&D.itemCode==10001001&&(u.formCofing.base_item_id==10001014||u.formCofing.base_item_id==10001006)?T="item_code=10001001":(F.result.apicode=="WorkflowList"||F.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001014?T="item_code=10001011":(F.result.apicode=="WorkflowList"||F.result.apicode=="WorkflowNodeList")&&u.formCofing.base_item_id==10001012?T="item_code=10001020":F.result.apicode=="LifePhaseList"&&O.attribute.tab_code=="10002024"&&(u.formCofing.base_item_id==10001003||u.formCofing.base_item_id==10001004||u.formCofing.base_item_id==10001005)?T="item_code=10001001":F.result.apicode=="WorkflowList"||F.result.apicode=="LifePhaseList"?T=`item_code=${D.itemCode}`:T=u.formCofing.object_id?`item_code=${N} and object_id=${u.formCofing.object_id}`:`item_code=${u.formCofing.base_item_id}`),D.listType=="1"?F.result.apicode=="WorkflowNodeList"?(l.isUserCode="WorkflowNodeList",l.visibleTransfer=!0,l.treeIndex1=V,l.treeIndex2=I,l.isRadio=!D.allowMultiple,e.getTreeList(F.result.code,T).then(j=>{if(j.code==200){let H=[];for(let z of j.result||[])H.push({name:z,id:z});l.dataSource=H,l.targetKeys=O.attribute.value.split(","),l.loading=!1}})):F.result.apicode=="CategoryList"?(l.isUserCode="CategoryList",l.visibleTransfer=!0,l.treeIndex1=V,l.treeIndex2=I,l.isRadio=!D.allowMultiple,e.getTreeList(F.result.code,T).then(j=>{if(j.code==200){for(let H of j.result||[])H.statusText=H.status?J("sys.label.enable",{placeholder:"启用"}):J("sys.disable.disable",{placeholder:"禁用"});l.dataSource=j.result||[],l.targetKeys=O.attribute.value.split(","),l.loading=!1}})):e.getOverview(F.result.conditionId).then(j=>{j.result.itemCode=="10001017"?l.isUserCode="10001017":j.result.itemCode=="10001018"?l.isUserCode="10001018":l.isUserCode=j.result.apicode,l.visibleTransfer=!0,l.treeIndex1=V,l.treeIndex2=I,l.isRadio=!D.allowMultiple,e.getInstanceParams({itemCodes:[j.result.itemCode],baseItemId:u.formCofing.base_item_id}).then(H=>{for(let z of H.result)j.result.itemCode=="10001017"?(z.name=z.number,z.email=z.insDesc):(z.code=z.number,z.name=z.number,z.description=z.insDesc);l.dataSource=H.result,l.targetKeys=O.attribute.value.split(","),j.result.itemCode=="10001017"&&(l.dataSource=_e.concat({name:"$USER",id:"$USER",email:""},l.dataSource)),l.loading=!1})}):(D.tabCode===10002005?T="item_code<>10001018 and item_code <>10001017":D.tabCode===10002004?T=`item_code in (${O.attribute.routineData.map(j=>j.code).join(",")})`:D.listCode===10005250&&(T=`change_instance_item_code=${u.formCofing.base_item_id}`),(u.formCofing.base_item_id==10001004||u.formCofing.base_item_id==10001005)&&D.tabCode==10002024&&D.apicode=="LifeCyclePhase"&&(T="whereData=10001001"),F.result.code==10005256?l.isUserCode=F.result.code:l.isUserCode=F.result.apicode,l.visibleTransfer=!0,l.treeIndex1=V,l.treeIndex2=I,l.isRadio=!D.allowMultiple,e.getTreeList(D.listCode,T,M).then(j=>{if(j.code==200){if(j.result&&j.result.length&&j.result[0].nodes){let H=[],z={1:J("sys.label.start",{placeholder:"开始"}),2:J("sys.label.review",{placeholder:"审核"}),3:J("sys.label.publish",{placeholder:"发布"}),4:J("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),5:J("sys.label.end",{placeholder:"结束"})};for(let U of j.result)for(let G of U.nodes||[])H.push({name:U.wfName+"."+G.name,id:U.wfId+"."+G.id,type:z[G.type]});l.dataSource=H}else{if(l.isUserCode=="LifePhaseList")for(let H of j.result||[])H.id=String(H.code);if(F.result.code==10005250)for(let H of j.result||[])H.code=H.changeInstanceNo,H.description=H.changeInstanceDesc;if(F.result.code==10005173&&(D.apicode=="Product"?j.result=j.result.filter(H=>H.productType=="product"):j.result=j.result.filter(H=>H.productType=="library")),D.tabCode===10002005||D.tabCode===10002004)for(let H of j.result||[])H.name=H.itemName?H.itemName+"."+H.name:H.name;l.dataSource=j.result||[],D.apicode=="Product"&&(l.dataSource=_e.concat({name:"$MYPRODUCTS",id:"$MYPRODUCTS",description:""},l.dataSource)),D.listCode==10005256&&(l.dataSource=_e.concat({id:"$USER",name:"$USER"},l.dataSource))}l.targetKeys=O.attribute.value.split(","),l.loading=!1}}))})}},value:O.attribute.value&&O.attribute.value.split(",")||void 0,onChange:(N,F)=>{O.attribute.value=N.join(","),O.attribute.valueKey=F.map(T=>({label:T.key,value:T.value}))},children:O.attribute.routineData.map(N=>B.jsx(Q1,{value:N.value,children:N.label},N.label))})}):D&&(D.listType=="2"||D.listCode===10005222)?B.jsx(ue.Tooltip,{title:O.attribute.value,children:B.jsx(ue.Select,{className:`
344
- ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
345
- ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
346
- ${D.allowMultiple?Tt.checkboxWidth:Tt.radioWidth}
347
- `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",value:O.attribute.value&&O.attribute.value.split(",")||void 0,disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,open:!1,clearIcon:!1,showArrow:!0,suffixIcon:B.jsx(kl,{style:{color:"#B6B9CF"}}),style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),onClick:()=>{O.attribute.operator!="null"&&O.attribute.operator!="!null"&&!e.readOnly&&(l.treeLoading=!0,l.treeVisible=!0,l.treeIndex1=V,l.treeIndex2=I,l.treeDefine=O.attribute.value.split(","),l.treeDefineKey=O.attribute.valueTreeKey,l.treeCheckable=D.allowMultiple,l.department=!1,e.getTreeList(D.listCode).then(N=>{N.code==200&&(l.treeData=N.result,D.apicode=="ProductModel"&&(l.treeData=_e.concat({name:"$MYPRODUCTMODELS",id:"$MYPRODUCTMODELS"},l.treeData)),setTimeout(()=>{l.treeLoading=!1},200))}).catch(()=>{l.treeLoading=!1}))},onChange:N=>{l.treeDefine=N,O.attribute.valueTreeKey.shift(),O.attribute.value=N.join(",")}})}):O.attribute.tab_code==10002004||O.attribute.tab_code==10002005?B.jsx(ue.Cascader,{className:`
348
- ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
349
- ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
350
- `,value:O.attribute.value||void 0,dropdownClassName:"cascaderPopup",style:{width:"158px"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,options:O.attribute.routineData,showSearch:{filter:b,matchInputWidth:!1},onChange:N=>{O.attribute.value=N.map(String)}}):D&&D.allowMultiple?B.jsx(ue.Tooltip,{title:_e.compact(_e.map(O.attribute.routineData,N=>{for(let F of O.attribute.value.split(","))if(F==N.value)return N.label})).join(","),children:B.jsx(ue.Select,{className:`
351
- ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
352
- ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
353
- ${Tt.checkboxWidth}
354
- `,mode:"multiple",maxTagCount:1,maxTagPlaceholder:"...",showArrow:!0,value:O.attribute.value&&O.attribute.value.split(",")||void 0,disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,optionFilterProp:"label",style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),open:l["open"+V+I],onFocus:()=>{l["open"+V+I]=!0},onChange:N=>{O.attribute.value=N.join(",")},onSearch:N=>{O.attribute.LighHeight=N},onBlur:()=>{O.attribute.LighHeight="",l["open"+V+I]=!1},filterOption:(N,F)=>F.key.toLowerCase().indexOf(N.toLowerCase())>=0,children:O.attribute.routineData.map(N=>B.jsx(Q1,{value:N.value,disabled:N.disabled,children:E(N.label,O.attribute.LighHeight)},N.label))})}):B.jsx(ue.Tooltip,{title:_e.compact(_e.map(O.attribute.routineData,N=>{if(O.attribute.value==N.value)return N.label})).join(","),children:B.jsx(ue.Select,{ref:r,className:`
355
- ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
356
- ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
357
- ${Tt.radioWidth}
358
- `,value:O.attribute.value||void 0,showSearch:!0,optionFilterProp:"label",disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),onChange:N=>{O.attribute.value=N,r==null||r.current.blur()},onSearch:N=>{O.attribute.LighHeight=N},open:l["open"+V+I],onFocus:()=>{l["open"+V+I]=!0},onBlur:()=>{O.attribute.LighHeight="",l["open"+V+I]=!1},filterOption:(N,F)=>F.key.toLowerCase().indexOf(N.toLowerCase())>=0,children:O.attribute.routineData.map(N=>B.jsx(Q1,{value:N.value,disabled:N.disabled,children:E(N.label,O.attribute.LighHeight)},N.label))})});if($=="6")return O.attribute.operator=="between"?B.jsx(ue.Tooltip,{title:O.attribute.value.split(",")[0]&&O.attribute.value.split(",")[0]+" ~ "+O.attribute.value.split(",")[1],children:B.jsx(YE,{className:u.verification&&!O.attribute.value&&Tt.verification,showTime:!0,style:{width:"100%"},value:O.attribute.value.split(",")[0]?[Le(O.attribute.value.split(",")[0],a),Le(O.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,onChange:(N,F)=>{F[0]?O.attribute.value=F.join(","):O.attribute.value=""}})}):B.jsx(ue.DatePicker,{className:`
359
- ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
360
- ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
361
- `,showTime:!0,style:{width:"100%",borderRadius:0},value:O.attribute.value?Le(O.attribute.value,a):void 0,format:a,disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||O.attribute.operator=="between"||e.readOnly,onChange:(N,F)=>{O.attribute.value=F}});if($=="7")return B.jsx(ue.Tooltip,{title:O.attribute.value.split(",")[0]&&O.attribute.value.split(",")[0]+" ~ "+O.attribute.value.split(",")[1],children:B.jsx(YE,{className:u.verification&&!O.attribute.value&&Tt.verification,showTime:!0,style:{width:"100%"},value:O.attribute.value.split(",")[0]?[Le(O.attribute.value.split(",")[0],a),Le(O.attribute.value.split(",")[1],a)]:void 0,format:a,disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,onChange:(N,F)=>{O.attribute.value=F.join(",")}})});if($=="12"||$=="13"){let N=O.attribute.lastSelected;return B.jsx("div",{className:u.verification&&!O.attribute.value&&Tt.verificationBorder,children:B.jsx(Kf,{value:O.attribute.value,min:N==null?void 0:N.minValue,max:N==null?void 0:N.maxValue,maxLength:N==null?void 0:N.maxLength,precision:N==null?void 0:N.precision,valueType:N==null?void 0:N.valueType,options:O.attribute.routineData,readOnly:!1,onChange:F=>{O.attribute.value=F}})})}else return B.jsx(ue.Input,{className:`
362
- ${u.verification&&!O.attribute.value&&O.attribute.operator!="null"&&O.attribute.operator!="!null"&&Tt.verification}
363
- ${(O.attribute.operator=="null"||O.attribute.operator=="!null")&&Tt.disableBg}
364
- `,placeholder:J("sys.input.text",{placeholder:"请输入文本"}),value:O.attribute.value,disabled:O.attribute.operator=="null"||O.attribute.operator=="!null"||e.readOnly,style:{padding:"5px 11px"},onChange:N=>{O.attribute.value=N.target.value}})};return B.jsxs("div",{className:Tt.advanced_search_content,style:{minWidth:e.horizontalStyle?"900px":"700px"},children:[!e.horizontalStyle&&B.jsxs("div",{className:Tt.conditions_head,children:[B.jsx("div",{className:Tt.head1,children:J("sys.property",{placeholder:"属性"})}),B.jsx("div",{className:Tt.head2,children:J("sys.operator",{placeholder:"运算符"})}),B.jsx("div",{className:Tt.head3,children:J("sys.value",{placeholder:"值"})}),B.jsx("div",{className:Tt.head4,children:J("sys.connector",{placeholder:"连接符"})})]}),B.jsxs("div",{ref:n,className:Tt.properties_box,style:{background:e.horizontalStyle?"#fff":"#f8f9f9",height:e.horizontalStyle?"147px":"240px"},children:[B.jsxs("div",{className:Tt.className_tips,children:[B.jsxs("span",{style:{width:160,marginLeft:"12px"},className:Tt.left_tips,children:[J("sys.property",{placeholder:"属性"}),":"]}),B.jsxs("span",{style:{width:92,marginLeft:"3px"},className:Tt.left_tips,children:[J("sys.operator",{placeholder:"运算符"}),":"]}),B.jsxs("span",{style:{flex:1,marginLeft:"5px"},className:Tt.left_tips,children:[J("sys.valueRe",{placeholder:"数值"}),":"]}),B.jsxs("span",{style:{width:145},className:Tt.left_tips,children:[J("sys.connector",{placeholder:"连接符"}),":"]})]}),u.formCofing.relations.map((O,$)=>B.jsxs("div",{children:[O.isGroup&&B.jsx("div",{className:Tt.groupHeader,children:B.jsxs(ue.Row,{justify:"space-between",align:"middle",children:[B.jsx(ue.Col,{className:Tt.optSelect,children:B.jsx(ue.Select,{value:O.join,style:{width:70},disabled:e.readOnly,options:eQ,onChange:D=>{O.join=D}})}),B.jsx(ue.Col,{style:{marginRight:"8px"},children:B.jsx(Dt,{isBackend:!0,className:Tt.iconBtn,tooltip:{title:J("sys.query.builder.condit.deleteGroup",{placeholder:"删除组"})},type:"delete",onClick:()=>{p($)}})})]})}),O.relation.map((D,V)=>{var I;return B.jsxs("div",{className:Tt.properties_item,children:[B.jsx(ue.Cascader,{style:{width:160},className:u.verification&&!D.attribute.name&&Tt.verification,showSearch:{filter:b,matchInputWidth:!1},value:((I=e.typeData)==null?void 0:I.length)>0&&D.attribute.id||void 0,options:e.typeData,placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:B.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),dropdownClassName:"cascaderPopup",onChange:async(N,F)=>{D.attribute.value="",D.attribute.routineData=[],D.attribute.valueKey=[],D.attribute.valueTreeKey=[],l.treeDefine=[],D.attribute.id=N,D.attribute.name=_e.map(F,"label").join("/"),D.attribute.lastSelected=await _e.last(F);const T=await _e.last(F);D.attribute.type=T&&T.valueType||"",D.attribute.rawType=(D.attribute.type=="10"?T&&T.rawType:D.attribute.type)||"",D.attribute.type=="10"&&(N[2]&&(N[2]=N[2].split("-")[1],D.attribute.id=N),D.attribute.inputType=T.inputType,D.attribute.referenceApicode=T.referenceApicode,D.attribute.referenceAttrId=T.referenceAttrId),D.attribute.tab_code=F&&(F[0].value.includes("-")?F[0].value.split("-")[0]:F[0].value)||"",D.attribute.dataFrom=T&&T.dataFrom||"",D.attribute.dataFromId=T&&T.dataFromId||"",D.attribute.apicode=T&&T.apicode||"",D.attribute.whereData=F&&(F[0].value.includes("-")?F[0].value.split("-")[1]=="1"?"published":"notPublished":"")||"",D.attribute.type==""?D.attribute.operator="":D.attribute.type=="5"?T.listCode==10005213?D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][2][0].value:!T.allowMultiple||T.apicode=="LifeCyclePhase"||T.apicode=="Category"?D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][0][0].value:T.listType=="0"?D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][1][0].value:T.listType=="2"?D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][2][0].value:D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][3][0].value:D.attribute.operator=o[D.attribute.type]&&o[D.attribute.type][0].value,T&&T.apicode=="LifeCyclePhase"?u.formCofing.object_id?e.getLifecyclesNopage(u.formCofing.object_id,T&&T.itemCode).then(M=>{M.code==200&&(D.attribute.routineData=w(M.result))}):e.getLifecycles(T&&T.itemCode).then(M=>{M.code==200&&(D.attribute.routineData=w(M.result.records))}):T&&(T.apicode=="Category"||T.apicode=="Workflow")?N&&N[0]==10002004?e.getHistory().then(M=>{if(M.code==200){for(let j of M.result)j.label=j.name,j.value=String(j.code),j.children&&j.children.forEach(H=>{H.label=H.name,H.value=H.id});D.attribute.routineData=M.result}}):N&&N[0]==10002005?e.getRelation().then(M=>{if(M.code==200){for(let j of M.result)j.label=j.name,j.value=String(j.code),j.children&&j.children.forEach(H=>{H.label=H.name,H.value=H.id});D.attribute.routineData=M.result}}):u.formCofing.object_id?(D.attribute.routineData=e.subcategory,D.attribute.value=u.formCofing.object_id):e.getObjects(T&&T.itemCode).then(M=>{M.code==200&&(D.attribute.routineData=w(M.result.records))}):T&&(T.apicode=="ProductRoles"||T.apicode=="ApproveRole")&&e.getRoles().then(M=>{M.code==200&&(D.attribute.routineData=w(M.result.records))}),T&&T.listType=="0"&&e.getTreeList(T.listCode).then(M=>{M.code==200&&(D.attribute.routineData=w(M.result))})}}),B.jsx(ue.Select,{style:{width:92,margin:"0 5px"},className:u.verification&&!D.attribute.operator&&Tt.verification,placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),disabled:e.readOnly,suffixIcon:B.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),value:D.attribute.operator||void 0,options:D.attribute.type&&d(D.attribute.type,D.attribute.lastSelected),onChange:N=>{D.attribute.operator=N,D.attribute.value="",D.attribute.valueTreeKey=[],D.attribute.valueKey=[],l.treeDefine=[]}}),B.jsx("div",{className:Tt.state_type,children:k(D,D.attribute.rawType,D.attribute.lastSelected,$,V)}),B.jsx(ue.Select,{style:{width:60},disabled:e.readOnly,value:D.attribute.attr_join,options:[{value:"and",label:J("sys.condition.and",{placeholder:"与"})},{value:"or",label:J("sys.condition.or",{placeholder:"或"})}],suffixIcon:B.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:N=>{D.attribute.attr_join=N}}),B.jsx(Dt,{isBackend:!0,className:Tt.iconBtn,type:"add",onClick:()=>{C(O,$,O.isGroup,V)}}),B.jsx(Dt,{isBackend:!0,disabled:!O.isGroup&&$==0,className:Tt.iconBtn,type:"delete",onClick:()=>{v(O,$,O.isGroup,V)}}),O.isGroup&&V<O.relation.length-1?B.jsx("div",{style:{width:"26px"}}):B.jsx(Dt,{isBackend:!0,className:Tt.iconBtn,type:"addGroups",onClick:()=>{f($)}})]},V)})]},$))]}),B.jsx($u,{modalTitle:l.titleName||J("sys.selection.chooseRange",{placeholder:"选择范围"}),visible:l.treeVisible,width:500,destroyOnClose:!0,onCancel:()=>{l.titleName="",l.treeVisible=!1},onOk:()=>{g()},children:B.jsx(ec,{spinning:l.treeLoading,style:{minHeight:"455px"},children:B.jsxs("div",{style:{minHeight:"455px"},className:`
365
- ${Tt.TreeModalStyle} ${l.titleName==J("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&Tt.TreeDepartmentHeight}
366
- `,children:[l.titleName==J("sys.selection.chooseDepartment",{placeholder:"选择部门"})&&B.jsx(ue.Checkbox.Group,{className:Tt.TreeDepartmentCheckbox,value:l.treeDefine,options:["$DEPARTMENT"],onChange:O=>{l.treeDefine=O,l.treeDefineKey=O}}),l.treeData&&l.treeData.length>0&&!l.treeLoading&&B.jsx(ue.Tree,{defaultExpandAll:!0,height:435,checkable:!0,blockNode:!0,selectable:!1,checkedKeys:l.treeDefineKey||[],checkStrictly:!0,onCheck:(O,{checkedNodes:$})=>{let D=_e.map($,"title");l.treeCheckable?(l.treeDefineKey=O.checked,l.treeDefine=D):(l.treeDefineKey=O.checked.length===0?[]:[O.checked[O.checked.length-1]],l.treeDefine=D.length===0?[]:[D[D.length-1]])},children:S(l.treeData)})]})})}),l.visibleTransfer&&B.jsx(QJ,{title:J("sys.addValue",{placeholder:"添加值"}),visible:l.visibleTransfer,dataSource:l.dataSource,targetKeys:l.targetKeys,loading:l.loading,isRadio:l.isRadio,columns:l.isUserCode=="10001017"||l.isUserCode=="10005256"?[{title:J("sys.label.nameRe",{placeholder:"姓名"}),dataIndex:"name"},{title:J("project.attr.owner.edit.window.email",{placeholder:"邮箱"}),dataIndex:"email"}]:l.isUserCode=="10001018"||l.isUserCode=="LifeCyclePhase"||l.isUserCode=="ProductList"||l.isUserCode=="StatusList"||l.isUserCode=="Category"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="AllProjectsList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"insDesc"}]:l.isUserCode=="OldLifePhase"||l.isUserCode=="NewLifePhase"||l.isUserCode=="LifePhaseList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"showName"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="AllEnableManufactures"||l.isUserCode=="AllSupplier"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"number"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}]:l.isUserCode=="CategoryList"||l.isUserCode=="ClassifyList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"},{title:J("project.workflow.status",{placeholder:"状态"}),dataIndex:"status",render:O=>O?J("sys.label.enable",{placeholder:"启用"}):J("sys.disable.disable",{placeholder:"禁用"})}]:l.isUserCode=="WorkflowNodeList"||l.isUserCode=="AllCalendars"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"name"}]:l.isUserCode=="WorkflowList"?[{title:J("sys.label.name",{placeholder:"名称"}),dataIndex:"workflowName"},{title:J("sys.import.category",{placeholder:"分类"}),dataIndex:"changeObject"}]:[{title:J("sys.label.number",{placeholder:"编号"}),dataIndex:"code"},{title:J("project.attr.owner.edit.window.describe",{placeholder:"描述"}),dataIndex:"description"}],onCancel:()=>{l.isUserCode="",l.visibleTransfer=!1},onSubmit:O=>{let $=[],D=[],V=["10001017","10005256","10001018","LifeCyclePhase","Category","CategoryList","ClassifyList","StatusList","WorkflowNodeList","AllCalendars","AllProjectsList"];for(let I of O)V.includes(l.isUserCode)||s.includes(l.isUserCode)?I.name=="$USER"?(D.push(I.name),$.push({label:I.name,value:I.name})):l.isUserCode=="WorkflowList"?(D.push(I.id),$.push({label:I.workflowName,value:I.id})):l.isUserCode=="LifePhaseList"?(D.push(I.id),$.push({label:I.showName,value:I.id})):(D.push(I.id),$.push({label:I.name,value:I.id})):l.isUserCode=="OldLifePhase"||l.isUserCode=="NewLifePhase"?(D.push(I.id),$.push({label:I.showName,value:I.id})):l.isUserCode=="AllEnableManufactures"||l.isUserCode=="AllSupplier"?(D.push(I.id),$.push({label:I.number,value:I.id})):(D.push(I.id),$.push({label:I.code,value:I.id}));console.log(D),console.log($),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.value=D.join(","),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.valueKey=$,console.log(u),u.formCofing.relations[l.treeIndex1].relation[l.treeIndex2].attribute.routineData=$,l.isUserCode="",l.visibleTransfer=!1}})]})}),{Option:KE}=ue.Select,tQ=A.forwardRef((e,t)=>{var l,h;const[r]=ue.Form.useForm(),n=A.useRef(null),[a,i]=A.useState(""),o=Sa({type1:void 0,type2:void 0});A.useImperativeHandle(t,()=>({searchBtn:()=>{var d;(d=n.current)==null||d.searchBtn()}}));const s=(d,g)=>B.jsx(tm,{highlightStyle:{color:"#F5325C",backgroundColor:"rgb(0, 0, 0, 0)",padding:"0"},caseSensitive:!0,searchWords:[g?g.toString():""],textToHighlight:d?d.toString():""}),u=()=>{var d;o.type1=void 0,o.type2=void 0,(d=n.current)==null||d.emptyCondition(!0),r.setFieldsValue({type1:void 0})};return B.jsxs("div",{className:il.itemsCreated,children:[B.jsx("div",{className:il.classifyBox,children:B.jsxs(ue.Row,{gutter:8,className:il.rowBox,children:[B.jsxs(ue.Col,{span:12,className:il.labelLength,children:[J("sys.import.category",{placeholder:"分类"}),":"]}),B.jsxs(ue.Col,{span:12,className:il.labelLength,children:[J("sys.import.subCategory",{placeholder:"子分类"}),":"]}),B.jsx(ue.Col,{span:12,children:B.jsx(ue.Form,{form:r,children:B.jsx(ue.Form.Item,{name:"type1",children:B.jsx(ue.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:o.type1||void 0,style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:B.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(d,g)=>{var b,y,w;o.type1=d,o.type2=void 0,e.rightEmpty(!0,g),(b=n.current)==null||b.emptyCondition(!0),d?((y=n.current)==null||y.setCondition(g,0),e.getInterface(d,"",!0)):(w=n.current)==null||w.setCondition(g)},onSearch:d=>{i(d)},onBlur:()=>{i("")},filterOption:(d,g)=>g.label.toLowerCase().indexOf(d.toLowerCase())>=0,children:(l=e.advancedSearchClassify)==null?void 0:l.map(d=>B.jsx(KE,{label:d.label,value:d.value,disabled:d.disabled,children:s(d.label,a)},d.value))})})})}),B.jsx(ue.Col,{span:12,children:B.jsx(ue.Select,{allowClear:!0,showSearch:!0,optionFilterProp:"label",value:o.type2||void 0,style:{width:"100%"},placeholder:J("sys.label.selectOption",{placeholder:"请选择"}),suffixIcon:B.jsx(Dt,{type:"xia-mian",style:{color:"#333",pointerEvents:"none"}}),onChange:(d,g)=>{var b,y,w;o.type2=d,o.subcategoryApicode=(g==null?void 0:g.apicode)||"",(b=n.current)==null||b.emptyCondition(),d?((y=n.current)==null||y.setCondition(g,1),e.getAttribute(o.type1,d,!0)):((w=n.current)==null||w.setCondition("",1),e.getAttribute(o.type1))},onSearch:d=>{i(d)},onBlur:()=>{i("")},filterOption:(d,g)=>g.label.toLowerCase().indexOf(d.toLowerCase())>=0,children:(h=e.subcategory)==null?void 0:h.map(d=>B.jsx(KE,{label:d.label,value:d.value,apicode:d.apicode,disabled:d.disabled,children:s(d.label,a)},d.value))})})]})}),B.jsx("div",{className:il.materialCondition,children:B.jsx(cP,{ref:n,horizontalStyle:!0,typeData:e.typeData,subcategory:e.subcategory,searchTree:e.treeData,cleanUpBtn:e.conditionObj&&!e.conditionObj.canDel&&e.conditionObj.searchType=="private",conditionObj:e.conditionObj,eliminateSearch:()=>{u(),e.rightEmpty()},storageCondition:d=>e.storageCondition&&e.storageCondition(d),conditionEdit:d=>e.conditionEdit&&e.conditionEdit(d),getTreeList:(d,g,b)=>e.getTreeList&&e.getTreeList(d,g,b),treeList:()=>e.treeList&&e.treeList(),getLifecycles:d=>e.getLifecycles&&e.getLifecycles(d),getListbycode:d=>e.getListbycode&&e.getListbycode(d),getOverview:d=>e.getOverview&&e.getOverview(d),getLifecyclesNopage:(d,g)=>e.getLifecyclesNopage&&e.getLifecyclesNopage(d,g),getHistory:()=>e.getHistory&&e.getHistory(),getRelation:()=>e.getRelation&&e.getRelation(),getObjects:d=>e.getObjects&&e.getObjects(d),getRoles:()=>e.getRoles&&e.getRoles(),getInstanceParams:d=>e.getInstanceParams&&e.getInstanceParams(d),searchTable:d=>e.searchTable&&e.searchTable(d)})})]})}),rQ="_scrollBarAssembly_1gh57_1",nQ="_buttonChangeTop_1gh57_6",aQ="_iconBox_1gh57_22",iQ="_topButton_1gh57_28",oQ="_buttonChange_1gh57_6",sQ="_rightButton_1gh57_56",Na={scrollBarAssembly:rQ,buttonChangeTop:nQ,iconBox:aQ,topButton:iQ,buttonChange:oQ,rightButton:sQ},uQ=e=>{var a;const t=A.useRef(null),r=JH(t),n=Sa({scrollLeft:0,clientWidth:0,scrollWidth:0,scrollTop:0,clientHeight:0,scrollHeight:0});return A.useEffect(()=>{const i=()=>{var o,s,u,l,h,d;e.direction?(n.scrollTop=(o=t.current)==null?void 0:o.scrollTop,n.clientHeight=(s=t.current)==null?void 0:s.clientHeight,n.scrollHeight=(u=t.current)==null?void 0:u.scrollHeight):(n.scrollLeft=(l=t.current)==null?void 0:l.scrollLeft,n.clientWidth=(h=t.current)==null?void 0:h.clientWidth,n.scrollWidth=(d=t.current)==null?void 0:d.scrollWidth)};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[(a=e.dataList)==null?void 0:a.length,r,e.resetButton]),B.jsxs("div",{className:Na.scrollBarAssembly,ref:t,style:{...e.style},onScroll:i=>{e.direction?(n.scrollTop=i.target.scrollTop,n.clientHeight=i.target.clientHeight,n.scrollHeight=i.target.scrollHeight):(n.scrollLeft=i.target.scrollLeft,n.clientWidth=i.target.clientWidth,n.scrollWidth=i.target.scrollWidth)},onWheel:i=>{_e.includes(i.target.className,"frontend-select-dropdown")||_e.includes(i.target.className,"frontend-select-item")||_e.includes(i.target.className,"frontend-select-item-option-content")||(e.direction?i.currentTarget.scrollTop+=i.deltaY:i.currentTarget.scrollLeft+=i.deltaY)},children:[!e.loading&&(e.direction?n.scrollTop!=0:n.scrollLeft!=0)&&B.jsx("div",{className:ge(Na.columnBox,{[Na.buttonChangeTop]:e.direction,[Na.buttonChange]:!e.direction,[e.class]:e.class}),onClick:i=>{var o,s;i.stopPropagation(),e.direction?(o=t.current)==null||o.scrollTo({top:n.scrollTop-n.clientHeight,behavior:"smooth"}):(s=t.current)==null||s.scrollTo({left:n.scrollLeft-n.clientWidth,behavior:"smooth"})},children:e.direction?B.jsx(B5,{className:Na.iconBox}):B.jsx(M5,{className:Na.iconBox})}),e.children,!e.loading&&(e.direction?n.clientHeight+n.scrollTop+1<n.scrollHeight:n.clientWidth+n.scrollLeft<n.scrollWidth)&&B.jsx("div",{className:ge(Na.columnBox,{[Na.buttonChangeTop]:e.direction,[Na.topButton]:e.direction,[Na.buttonChange]:!e.direction,[Na.rightButton]:!e.direction,[e.class]:e.class}),onClick:i=>{var o,s;i.stopPropagation(),e.direction?(o=t.current)==null||o.scrollTo({top:n.scrollTop+n.clientHeight,behavior:"smooth"}):(s=t.current)==null||s.scrollTo({left:n.scrollLeft+n.clientWidth,behavior:"smooth"})},children:e.direction?B.jsx(D5,{className:Na.iconBox}):B.jsx(L5,{className:Na.iconBox})})]})},lQ="_plmPublicTree_14kqh_1",cQ="_treeListBox_14kqh_1",dQ="_onDisable_14kqh_8",fQ="_onHover_14kqh_11",hQ="_titleBox_14kqh_17",pQ="_name_14kqh_21",mQ="_btnBox_14kqh_27",gQ="_hoverStyle_14kqh_35",Ln={plmPublicTree:lQ,treeListBox:cQ,onDisable:dQ,onHover:fQ,titleBox:hQ,name:pQ,btnBox:mQ,hoverStyle:gQ},{TreeNode:XE}=ue.Tree,{confirm:vQ}=ue.Modal,bQ=e=>{const t=A.useRef(),[r,n]=A.useState([]),[a,i]=A.useState([]),[o,s]=A.useState([]),u=Sa({startDragObj:{}});A.useEffect(()=>(u.addVisible?l():document.onkeydown=null,()=>{document.onkeydown=null}),[u.addVisible]);const l=()=>{document.onkeydown=function(C){var f=window.event||C,p=f.keyCode||f.which;p==13&&!e.confirmLoading&&h()}};Wf(()=>{let C=[];for(let f of e.treeCrumbs||[])C.push(f.id);i(C)});const h=async()=>{var p;const C=await((p=t.current)==null?void 0:p.validateFields()),f=await e.addRun({canDel:!0,folderType:u.treeObj.folderType,level:u.treeObj.level+1,name:C.name,parentId:u.treeObj.id,sort:u.treeObj.children&&u.treeObj.children.length.length>0?u.treeObj.children.length.length+1:1});f.warning?ue.message.warning(f.result):ue.message.success(f.result),u.addVisible=!1,e.getTreeList&&e.getTreeList()},d=(C,f="id")=>{var p=[];const v=x=>{for(var k=0,O=x.length;k<O;k++){const $=x[k];if($.children&&$.children.length||$.conditionList&&!e.closeCondition){let D=[];$.conditionList&&!e.closeCondition?D=_e.concat($.children||[],$.conditionList):D=$.children,p.push($[f]),v(D)}}};return v(C),p},g=C=>{b(C,e.treeData),n(e.treeData.slice())},b=(C,f)=>f.forEach(p=>{p.id===C?p.isEditable=!0:p.isEditable=!1,p.name=p.defaultValue,p.children&&b(C,p.children),p.conditionList&&b(C,p.conditionList)}),y=(C,f)=>{w(f,C.target.value,e.treeData),n(e.treeData.slice())},w=(C,f,p)=>p.forEach(v=>{v.id===C&&(v.name=f),v.children&&w(C,f,v.children),v.conditionList&&w(C,f,v.conditionList)}),S=(C,f)=>{E(C,f,e.treeData),n(e.treeData.slice())},E=(C,f,p)=>p.forEach(v=>{v.isEditable=!1,v.id===C&&(v.name=f),v.children&&E(C,f,v.children),v.conditionList&&E(C,f,v.conditionList)}),_=C=>C==null?void 0:C.map(p=>{if(p.isEditable?p.title=B.jsxs("div",{className:Ln.treeListBox,children:[B.jsxs("div",{className:Ln.titleBox,children:[B.jsx(Dt,{type:p.content?"homesearch":_e.includes(a,p.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),B.jsx(ue.Input,{size:"small",maxLength:16,value:p.name,onChange:v=>{y(v,p.id)}})]}),B.jsxs("div",{className:Ln.btnBox,children:[B.jsx(k5,{style:{marginRight:"5px"},className:Ln.hoverStyle,onClick:v=>{v.stopPropagation(),S(p.id,p.defaultValue)}}),e.editLoading||e.editConditioLoading?B.jsx(Uf,{spin:!0}):B.jsx(T5,{className:Ln.hoverStyle,onClick:async v=>{v.stopPropagation(),p.name===u.treeName?S(p.id,p.defaultValue):(p.content?await e.conditionEdit({id:p.id,searchFolderId:p.searchFolderId,searchType:p.searchType,itemCode:p.itemCode,conditionName:p.name,conditionObject:p.conditionObject,content:p.content,sort:p.sort,canDel:p.canDel}):await e.editRun({id:p.id,parentId:p.parentId,name:p.name,folderType:p.folderType,sort:p.sort,canDel:p.canDel,level:p.level}),e.getTreeList&&e.getTreeList())}})]})]},p.id):p.title=B.jsxs("div",{className:Ln.treeListBox,children:[B.jsxs("div",{className:Ln.titleBox,children:[B.jsx(Dt,{type:p.content||p.searchType=="change"?"homesearch":_e.includes(a,p.id)?"content-open2":"content-fold",style:{cursor:"pointer",fontSize:"16px",color:"#333",padding:"3px",borderRadius:"1px"}}),B.jsx("div",{className:Ln.name,title:p.name,children:B.jsx("span",{children:p.name})})]}),B.jsxs("div",{className:ge({[Ln.btnBox]:!0,[Ln.onHover]:!e.readOnly,[Ln.onDisable]:e.readOnly}),children:[p.level<4&&p.isAuth&&B.jsx(lw,{className:Ln.hoverStyle,onClick:v=>{v.preventDefault(),u.treeObj=p,u.addVisible=!0}}),p.level==1&&B.jsx("div",{onClick:v=>{v.stopPropagation()},children:B.jsx(Dt,{className:Ln.hoverStyle,type:_e.intersection(d([p]),a).length==d([p]).length?"content-openmode":"content-open",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"13px",marginLeft:"5px"},onClick:()=>{_e.intersection(d([p]),a).length==d([p]).length?i(_e.difference(a,d([p]))):i(_e.uniq(_e.concat(a,d([p]))))}})}),p.level!=1&&p.canDel&&B.jsx(I5,{className:Ln.hoverStyle,style:{marginLeft:"5px"},onClick:v=>{v.stopPropagation(),vQ(GR({title:J("project.tab.plan.delete.tips.title.confirm",{placeholder:"确认"}),content:`${J("sys.label.deleteConfirmation",{placeholder:"删除后将不可恢复"})},${J("sys.label.confirmDelete",{placeholder:"请确认是否删除"})}?`,onOk(){return new Promise(async(x,k)=>{p.content?e.conditionDelete({id:p.id}).then(O=>{O.warning?ue.message.warning(O.message):ue.message.success(O.message),x(!0),e.getTreeList&&e.getTreeList(p.id)}).catch(()=>{x(!0)}):e.deleteFolder({id:p.id}).then(O=>{O.warning?ue.message.warning(O.message):ue.message.success(O.message),x(!0),e.getTreeList&&e.getTreeList()}).catch(()=>{x(!0)})})}}))}}),p.level!=1&&(p.itemCode?p.isConditionNameAuth:p.isAuth)&&B.jsx(Dt,{className:Ln.hoverStyle,type:"content-edit",style:{color:"#3C3C3C",cursor:"pointer",fontSize:"12px",marginLeft:"5px"},onClick:v=>{v.stopPropagation(),u.treeName=p.name,g(p.id)}})]})]},p.id),p.children||p.conditionList&&!e.closeCondition){let v=[];return p.conditionList&&!e.closeCondition?v=_e.concat(p.children||[],p.conditionList):v=p.children,B.jsx(XE,{title:p.title,dataRef:p,children:_(v)},p.id)}return B.jsx(XE,{title:p.title,dataRef:p},p.id)});return B.jsxs("div",{className:Ln.plmPublicTree,children:[B.jsx(ue.Tree,{switcherIcon:B.jsx(Dt,{type:"xia-mian",style:{color:"#3C3C3C",cursor:"pointer"}}),draggable:e.closeDrag?!1:{icon:!1},expandedKeys:a,selectedKeys:e.selectedKeys,onExpand:C=>{i(C)},onSelect:(C,f)=>{var p,v,x;if(e.closeCondition){if(((p=f.node.dataRef)==null?void 0:p.folderType)==="change")return}else if(!((v=f.node.dataRef)!=null&&v.content)&&((x=f.node.dataRef)==null?void 0:x.searchType)!=="change")return;e.onSelect&&e.onSelect(C,f)},allowDrop:e.closeDrag?void 0:({dropNode:C,dropPosition:f})=>f!=-1&&u.startDragObj.folderType==C.dataRef.folderType&&(u.startDragObj.id.length>C.key.length&&f==0&&u.startDragObj.level-C.dataRef.level==1||u.startDragObj.id.length==C.key.length&&f!=0),onDragStart:e.closeDrag?void 0:C=>{u.startDragObj=C.node.dataRef},children:_(e.treeData)}),B.jsx($u,{modalTitle:J("sys.label.createFolder",{placeholder:"新建文件夹"}),mask:!1,width:400,visible:u.addVisible,maskClosable:!1,okText:J("project.tab.plan.details.window.save",{placeholder:"保存"}),onCancel:()=>{u.addVisible=!1},style:{top:"25vh"},className:Ln.container,destroyOnClose:!0,onOk:async()=>{h()},confirmLoading:e.confirmLoading,children:B.jsx(XR,{ref:t,size:"middle",labelAlign:"left",labelCol:{style:{width:80}},children:B.jsx(lP,{name:"name",label:J("sys.label.name",{placeholder:"名称"}),content:{type:"Input",props:{maxLength:16,placeholder:J("sys.name.enterName",{placeholder:"请输入名称"})}},rules:[{required:!0,message:J("sys.category.nameEmpty",{placeholder:"名称不能为空"})}]})})})]})},yQ="1.0.5",_Q=A.createContext({}),wQ={classNames:{},styles:{},className:"",style:{}},sc=e=>{const t=A.useContext(_Q);return A.useMemo(()=>({...wQ,...t[e]}),[t[e]])};function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(null,arguments)}function ho(){const{getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n,theme:a}=A.useContext(ue.ConfigProvider.ConfigContext);return{theme:a,getPrefixCls:e,direction:t,csp:r,iconPrefixCls:n}}process.env.NODE_ENV;function Xr(e){var t=P.useRef();t.current=e;var r=P.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var ZE=process.env.NODE_ENV!=="test"&&ea()?P.useLayoutEffect:P.useEffect,fr=function(t,r){var n=P.useRef(!0);ZE(function(){return t(n.current)},r),ZE(function(){return n.current=!1,function(){n.current=!0}},[])},JE=function(t,r){fr(function(n){if(!n)return t()},r)};function Rf(e){var t=P.useRef(!1),r=P.useState(e),n=we(r,2),a=n[0],i=n[1];P.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,u){u&&t.current||i(s)}return[a,o]}function eb(e){return e!==void 0}function _n(e,t){var r=t||{},n=r.defaultValue,a=r.value,i=r.onChange,o=r.postState,s=Rf(function(){return eb(a)?a:eb(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),u=we(s,2),l=u[0],h=u[1],d=a!==void 0?a:l,g=o?o(d):d,b=Xr(i),y=Rf([d]),w=we(y,2),S=w[0],E=w[1];JE(function(){var C=S[0];l!==C&&b(l,C)},[S]),JE(function(){eb(a)||h(a)},[a]);var _=Xr(function(C,f){h(C,f),E([d],f)});return[g,_]}var E0={exports:{}},Er={};/**
367
- * @license React
368
- * react-is.production.min.js
369
- *
370
- * Copyright (c) Facebook, Inc. and its affiliates.
371
- *
372
- * This source code is licensed under the MIT license found in the
373
- * LICENSE file in the root directory of this source tree.
374
- */var QE;function xQ(){if(QE)return Er;QE=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function w(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case e:switch(S=S.type,S){case r:case a:case n:case l:case h:return S;default:switch(S=S&&S.$$typeof,S){case s:case o:case u:case g:case d:case i:return S;default:return E}}case t:return E}}}return Er.ContextConsumer=o,Er.ContextProvider=i,Er.Element=e,Er.ForwardRef=u,Er.Fragment=r,Er.Lazy=g,Er.Memo=d,Er.Portal=t,Er.Profiler=a,Er.StrictMode=n,Er.Suspense=l,Er.SuspenseList=h,Er.isAsyncMode=function(){return!1},Er.isConcurrentMode=function(){return!1},Er.isContextConsumer=function(S){return w(S)===o},Er.isContextProvider=function(S){return w(S)===i},Er.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Er.isForwardRef=function(S){return w(S)===u},Er.isFragment=function(S){return w(S)===r},Er.isLazy=function(S){return w(S)===g},Er.isMemo=function(S){return w(S)===d},Er.isPortal=function(S){return w(S)===t},Er.isProfiler=function(S){return w(S)===a},Er.isStrictMode=function(S){return w(S)===n},Er.isSuspense=function(S){return w(S)===l},Er.isSuspenseList=function(S){return w(S)===h},Er.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===a||S===n||S===l||S===h||S===b||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===d||S.$$typeof===i||S.$$typeof===o||S.$$typeof===u||S.$$typeof===y||S.getModuleId!==void 0)},Er.typeOf=w,Er}var Or={};/**
375
- * @license React
376
- * react-is.development.js
377
- *
378
- * Copyright (c) Facebook, Inc. and its affiliates.
379
- *
380
- * This source code is licensed under the MIT license found in the
381
- * LICENSE file in the root directory of this source tree.
382
- */var e8;function SQ(){return e8||(e8=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,w=!1,S=!1,E=!1,_=!1,C;C=Symbol.for("react.module.reference");function f(se){return!!(typeof se=="string"||typeof se=="function"||se===r||se===a||_||se===n||se===l||se===h||E||se===b||y||w||S||typeof se=="object"&&se!==null&&(se.$$typeof===g||se.$$typeof===d||se.$$typeof===i||se.$$typeof===o||se.$$typeof===u||se.$$typeof===C||se.getModuleId!==void 0))}function p(se){if(typeof se=="object"&&se!==null){var fe=se.$$typeof;switch(fe){case e:var he=se.type;switch(he){case r:case a:case n:case l:case h:return he;default:var ke=he&&he.$$typeof;switch(ke){case s:case o:case u:case g:case d:case i:return ke;default:return fe}}case t:return fe}}}var v=o,x=i,k=e,O=u,$=r,D=g,V=d,I=t,N=a,F=n,T=l,M=h,j=!1,H=!1;function z(se){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(se){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(se){return p(se)===o}function X(se){return p(se)===i}function K(se){return typeof se=="object"&&se!==null&&se.$$typeof===e}function ne(se){return p(se)===u}function ae(se){return p(se)===r}function ie(se){return p(se)===g}function de(se){return p(se)===d}function pe(se){return p(se)===t}function be(se){return p(se)===a}function me(se){return p(se)===n}function ee(se){return p(se)===l}function ve(se){return p(se)===h}Or.ContextConsumer=v,Or.ContextProvider=x,Or.Element=k,Or.ForwardRef=O,Or.Fragment=$,Or.Lazy=D,Or.Memo=V,Or.Portal=I,Or.Profiler=N,Or.StrictMode=F,Or.Suspense=T,Or.SuspenseList=M,Or.isAsyncMode=z,Or.isConcurrentMode=U,Or.isContextConsumer=G,Or.isContextProvider=X,Or.isElement=K,Or.isForwardRef=ne,Or.isFragment=ae,Or.isLazy=ie,Or.isMemo=de,Or.isPortal=pe,Or.isProfiler=be,Or.isStrictMode=me,Or.isSuspense=ee,Or.isSuspenseList=ve,Or.isValidElementType=f,Or.typeOf=p}()),Or}var t8;function CQ(){return t8||(t8=1,process.env.NODE_ENV==="production"?E0.exports=xQ():E0.exports=SQ()),E0.exports}var tb=CQ();function xm(e,t,r){var n=P.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var EQ=Symbol.for("react.element"),OQ=Symbol.for("react.transitional.element"),RQ=Symbol.for("react.fragment");function dP(e){return e&&pt(e)==="object"&&(e.$$typeof===EQ||e.$$typeof===OQ)&&e.type===RQ}var TQ=Number(A.version.split(".")[0]),Vw=function(t,r){typeof t=="function"?t(r):pt(t)==="object"&&t&&"current"in t&&(t.current=r)},us=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(i){r.forEach(function(o){Vw(o,i)})}},Sm=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return xm(function(){return us.apply(void 0,r)},r,function(a,i){return a.length!==i.length||a.every(function(o,s){return o!==i[s]})})},eh=function(t){var r,n;if(!t)return!1;if(fP(t)&&TQ>=19)return!0;var a=tb.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==tb.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==tb.ForwardRef)};function fP(e){return A.isValidElement(e)&&!dP(e)}var Cm=function(t){if(t&&fP(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};function Ii(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function PQ(e){if(Array.isArray(e))return ty(e)}function hP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
383
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tt(e){return PQ(e)||hP(e)||nw(e)||kQ()}function pP(e){return s5(e)||hP(e)||nw(e)||u5()}function mP(e,t,r,n){if(!t.length)return r;var a=pP(t),i=a[0],o=a.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=tt(e):s=Q({},e),n&&r===void 0&&o.length===1?delete s[i][o[0]]:s[i]=mP(s[i],o,r,n),s}function $i(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Ii(e,t.slice(0,-1))?e:mP(e,t,r,n)}function $Q(e){return pt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function r8(e){return Array.isArray(e)?[]:{}}var AQ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Cl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=r8(t[0]);return t.forEach(function(a){function i(o,s){var u=new Set(s),l=Ii(a,o),h=Array.isArray(l);if(h||$Q(l)){if(!u.has(l)){u.add(l);var d=Ii(n,o);h?n=$i(n,o,[]):(!d||pt(d)!=="object")&&(n=$i(n,o,r8(l))),AQ(l).forEach(function(g){i([].concat(tt(o),[g]),u)})}}else n=$i(n,o,l)}i([])}),n}const th=A.createContext(null);function n8(e){const{getDropContainer:t,className:r,prefixCls:n,children:a}=e,{disabled:i}=A.useContext(th),[o,s]=A.useState(),[u,l]=A.useState(null);if(A.useEffect(()=>{const g=t==null?void 0:t();o!==g&&s(g)},[t]),A.useEffect(()=>{if(o){const g=()=>{l(!0)},b=S=>{S.preventDefault()},y=S=>{S.relatedTarget||l(!1)},w=S=>{l(!1),S.preventDefault()};return document.addEventListener("dragenter",g),document.addEventListener("dragover",b),document.addEventListener("dragleave",y),document.addEventListener("drop",w),()=>{document.removeEventListener("dragenter",g),document.removeEventListener("dragover",b),document.removeEventListener("dragleave",y),document.removeEventListener("drop",w)}}},[!!o]),!(t&&o&&!i))return null;const d=`${n}-drop-area`;return lo.createPortal(A.createElement("div",{className:ge(d,r,{[`${d}-on-body`]:o.tagName==="BODY"}),style:{display:u?"block":"none"}},a),o)}var gP=A.createContext({});const On=Math.round;function rb(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)n[a]=t(n[a]||0,r[a]||"",a);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const a8=(e,t,r)=>r===0?e:e/100;function kd(e,t){const r=t||255;return e>r?r:e<0?0:e}class Rr{constructor(t){re(this,"isValid",!0),re(this,"r",0),re(this,"g",0),re(this,"b",0),re(this,"a",1),re(this,"_h",void 0),re(this,"_s",void 0),re(this,"_l",void 0),re(this,"_v",void 0),re(this,"_max",void 0),re(this,"_min",void 0),re(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let a=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):a("rgb")?this.fromRgbString(n):a("hsl")?this.fromHslString(n):(a("hsv")||a("hsb"))&&this.fromHsvString(n)}else if(t instanceof Rr)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=kd(t.r),this.g=kd(t.g),this.b=kd(t.b),this.a=typeof t.a=="number"?kd(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),a=t(this.b);return .2126*r+.7152*n+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=On(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:r,s:n,l:a,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:r,s:n,l:a,a:this.a})}mix(t,r=50){const n=this._c(t),a=r/100,i=s=>(n[s]-this[s])*a+this[s],o={r:On(i("r")),g:On(i("g")),b:On(i("b")),a:On(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),a=i=>On((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=On(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=On(this.getSaturation()*100),n=On(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const a=this.clone();return a[t]=kd(r,n),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(a,i){return parseInt(r[a]+r[i||a],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof a=="number"?a:1,r<=0){const g=On(n*255);this.r=g,this.g=g,this.b=g}let i=0,o=0,s=0;const u=t/60,l=(1-Math.abs(2*n-1))*r,h=l*(1-Math.abs(u%2-1));u>=0&&u<1?(i=l,o=h):u>=1&&u<2?(i=h,o=l):u>=2&&u<3?(o=l,s=h):u>=3&&u<4?(o=h,s=l):u>=4&&u<5?(i=h,s=l):u>=5&&u<6&&(i=l,s=h);const d=n-l/2;this.r=On((i+d)*255),this.g=On((o+d)*255),this.b=On((s+d)*255)}fromHsv({h:t,s:r,v:n,a}){this._h=t%360,this._s=r,this._v=n,this.a=typeof a=="number"?a:1;const i=On(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const o=t/60,s=Math.floor(o),u=o-s,l=On(n*(1-r)*255),h=On(n*(1-r*u)*255),d=On(n*(1-r*(1-u))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=h,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=h;break;case 4:this.r=d,this.g=l;break;case 5:default:this.g=l,this.b=h;break}}fromHsvString(t){const r=rb(t,a8);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=rb(t,a8);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=rb(t,(n,a)=>a.includes("%")?On(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var O0=2,i8=.16,DQ=.05,MQ=.05,NQ=.15,vP=5,bP=4,IQ=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function o8(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-O0*t:Math.round(e.h)+O0*t:n=r?Math.round(e.h)+O0*t:Math.round(e.h)-O0*t,n<0?n+=360:n>=360&&(n-=360),n}function s8(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-i8*t:t===bP?n=e.s+i8:n=e.s+DQ*t,n>1&&(n=1),r&&t===vP&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function u8(e,t,r){var n;return r?n=e.v+MQ*t:n=e.v-NQ*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function FQ(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new Rr(e),a=n.toHsv(),i=vP;i>0;i-=1){var o=new Rr({h:o8(a,i,!0),s:s8(a,i,!0),v:u8(a,i,!0)});r.push(o)}r.push(n);for(var s=1;s<=bP;s+=1){var u=new Rr({h:o8(a,s),s:s8(a,s),v:u8(a,s)});r.push(u)}return t.theme==="dark"?IQ.map(function(l){var h=l.index,d=l.amount;return new Rr(t.backgroundColor||"#141414").mix(r[h],d).toHexString()}):r.map(function(l){return l.toHexString()})}var jy=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];jy.primary=jy[5];function yP(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function jQ(e){return yP(e)instanceof ShadowRoot}function Tf(e){return jQ(e)?yP(e):null}function LQ(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function zQ(e,t){Ut(e,"[@ant-design/icons] ".concat(t))}function l8(e){return pt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(pt(e.icon)==="object"||typeof e.icon=="function")}function c8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[LQ(r)]=n}return t},{})}function Ly(e,t,r){return r?A.createElement(e.tag,Q(Q({key:t},c8(e.attrs)),r),(e.children||[]).map(function(n,a){return Ly(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):A.createElement(e.tag,Q({key:t},c8(e.attrs)),(e.children||[]).map(function(n,a){return Ly(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function _P(e){return FQ(e)[0]}function wP(e){return e?Array.isArray(e)?e:[e]:[]}var BQ=`
384
- .anticon {
385
- display: inline-flex;
386
- align-items: center;
387
- color: inherit;
388
- font-style: normal;
389
- line-height: 0;
390
- text-align: center;
391
- text-transform: none;
392
- vertical-align: -0.125em;
393
- text-rendering: optimizeLegibility;
394
- -webkit-font-smoothing: antialiased;
395
- -moz-osx-font-smoothing: grayscale;
396
- }
397
-
398
- .anticon > * {
399
- line-height: 1;
400
- }
401
-
402
- .anticon svg {
403
- display: inline-block;
404
- }
405
-
406
- .anticon::before {
407
- display: none;
408
- }
409
-
410
- .anticon .anticon-icon {
411
- display: block;
412
- }
413
-
414
- .anticon[tabindex] {
415
- cursor: pointer;
416
- }
417
-
418
- .anticon-spin::before,
419
- .anticon-spin {
420
- display: inline-block;
421
- -webkit-animation: loadingCircle 1s infinite linear;
422
- animation: loadingCircle 1s infinite linear;
423
- }
424
-
425
- @-webkit-keyframes loadingCircle {
426
- 100% {
427
- -webkit-transform: rotate(360deg);
428
- transform: rotate(360deg);
429
- }
430
- }
431
-
432
- @keyframes loadingCircle {
433
- 100% {
434
- -webkit-transform: rotate(360deg);
435
- transform: rotate(360deg);
436
- }
437
- }
438
- `,HQ=function(t){var r=A.useContext(gP),n=r.csp,a=r.prefixCls,i=r.layer,o=BQ;a&&(o=o.replace(/anticon/g,a)),i&&(o="@layer ".concat(i,` {
439
- `).concat(o,`
440
- }`)),A.useEffect(function(){var s=t.current,u=Tf(s);Li(o,"@ant-design-icons",{prepend:!i,csp:n,attachTo:u})},[])},VQ=["icon","className","onClick","style","primaryColor","secondaryColor"],af={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function UQ(e){var t=e.primaryColor,r=e.secondaryColor;af.primaryColor=t,af.secondaryColor=r||_P(t),af.calculated=!!r}function qQ(){return Q({},af)}var uc=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,u=sr(t,VQ),l=P.useRef(),h=af;if(o&&(h={primaryColor:o,secondaryColor:s||_P(o)}),HQ(l),zQ(l8(r),"icon should be icon definiton, but got ".concat(r)),!l8(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=Q(Q({},d),{},{icon:d.icon(h.primaryColor,h.secondaryColor)})),Ly(d.icon,"svg-".concat(d.name),Q(Q({className:n,onClick:a,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:l}))};uc.displayName="IconReact";uc.getTwoToneColors=qQ;uc.setTwoToneColors=UQ;function xP(e){var t=wP(e),r=we(t,2),n=r[0],a=r[1];return uc.setTwoToneColors({primaryColor:n,secondaryColor:a})}function WQ(){var e=uc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var YQ=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xP(jy.primary);var hn=P.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,u=e.twoToneColor,l=sr(e,YQ),h=P.useContext(gP),d=h.prefixCls,g=d===void 0?"anticon":d,b=h.rootClassName,y=ge(b,g,re(re({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),w=o;w===void 0&&s&&(w=-1);var S=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,E=wP(u),_=we(E,2),C=_[0],f=_[1];return P.createElement("span",je({role:"img","aria-label":n.name},l,{ref:t,tabIndex:w,onClick:s,className:y}),P.createElement(uc,{icon:n,primaryColor:C,secondaryColor:f,style:S}))});hn.displayName="AntdIcon";hn.getTwoToneColor=WQ;hn.setTwoToneColor=xP;var GQ=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:$z}))},SP=P.forwardRef(GQ);process.env.NODE_ENV!=="production"&&(SP.displayName="ArrowUpOutlined");var KQ=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:Az}))},CP=P.forwardRef(KQ);process.env.NODE_ENV!=="production"&&(CP.displayName="AudioMutedOutlined");var XQ=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:Dz}))},EP=P.forwardRef(XQ);process.env.NODE_ENV!=="production"&&(EP.displayName="AudioOutlined");var ZQ=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:Lz}))},OP=P.forwardRef(ZQ);process.env.NODE_ENV!=="production"&&(OP.displayName="ClearOutlined");var JQ=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:P5}))},RP=P.forwardRef(JQ);process.env.NODE_ENV!=="production"&&(RP.displayName="CloseCircleFilled");var QQ=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:sw}))},TP=P.forwardRef(QQ);process.env.NODE_ENV!=="production"&&(TP.displayName="CloseOutlined");var eee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:Kz}))},PP=P.forwardRef(eee);process.env.NODE_ENV!=="production"&&(PP.displayName="EllipsisOutlined");var tee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:Zz}))},kP=P.forwardRef(tee);process.env.NODE_ENV!=="production"&&(kP.displayName="FileExcelFilled");var ree=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:Jz}))},$P=P.forwardRef(ree);process.env.NODE_ENV!=="production"&&($P.displayName="FileImageFilled");var nee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:Qz}))},AP=P.forwardRef(nee);process.env.NODE_ENV!=="production"&&(AP.displayName="FileMarkdownFilled");var aee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:eB}))},DP=P.forwardRef(aee);process.env.NODE_ENV!=="production"&&(DP.displayName="FilePdfFilled");var iee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:tB}))},MP=P.forwardRef(iee);process.env.NODE_ENV!=="production"&&(MP.displayName="FilePptFilled");var oee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:rB}))},NP=P.forwardRef(oee);process.env.NODE_ENV!=="production"&&(NP.displayName="FileTextFilled");var see=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:nB}))},IP=P.forwardRef(see);process.env.NODE_ENV!=="production"&&(IP.displayName="FileWordFilled");var uee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:aB}))},FP=P.forwardRef(uee);process.env.NODE_ENV!=="production"&&(FP.displayName="FileZipFilled");var lee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:uw}))},jP=P.forwardRef(lee);process.env.NODE_ENV!=="production"&&(jP.displayName="LeftOutlined");var cee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:j5}))},LP=P.forwardRef(cee);process.env.NODE_ENV!=="production"&&(LP.displayName="PlusOutlined");var dee=function(t,r){return P.createElement(hn,je({},t,{ref:r,icon:cw}))},zP=P.forwardRef(dee);process.env.NODE_ENV!=="production"&&(zP.displayName="RightOutlined");function Pf(e){return e instanceof HTMLElement||e instanceof SVGElement}function fee(e){return e&&pt(e)==="object"&&Pf(e.nativeElement)?e.nativeElement:Pf(e)?e:null}function of(e){var t=fee(e);if(t)return t;if(e instanceof A.Component){var r;return(r=lo.findDOMNode)===null||r===void 0?void 0:r.call(lo,e)}return null}var hee=["children"],BP=P.createContext({});function pee(e){var t=e.children,r=sr(e,hee);return P.createElement(BP.Provider,{value:r},t)}function Un(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d8(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o5(n.key),n)}}function qn(e,t,r){return t&&d8(e.prototype,t),r&&d8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},kf(e,t)}function Du(e,t){if(typeof t!="function"&&t!==null)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&&kf(e,t)}function $f(e){return $f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$f(e)}function Uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uw=function(){return!!e})()}function Zt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mee(e,t){if(t&&(pt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zt(e)}function Mu(e){var t=Uw();return function(){var r,n=$f(e);if(t){var a=$f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return mee(this,r)}}var gee=function(e){Du(r,e);var t=Mu(r);function r(){return Un(this,r),t.apply(this,arguments)}return qn(r,[{key:"render",value:function(){return this.props.children}}]),r}(P.Component);function vee(e){var t=P.useReducer(function(s){return s+1},0),r=we(t,2),n=r[1],a=P.useRef(e),i=Xr(function(){return a.current}),o=Xr(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[i,o]}var Es="none",R0="appear",T0="enter",P0="leave",f8="none",Ai="prepare",El="start",Ol="active",qw="end",HP="prepared";function h8(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function bee(e,t){var r={animationend:h8("Animation","AnimationEnd"),transitionend:h8("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var yee=bee(ea(),typeof window<"u"?window:{}),VP={};if(ea()){var _ee=document.createElement("div");VP=_ee.style}var k0={};function UP(e){if(k0[e])return k0[e];var t=yee[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var i=r[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in VP)return k0[e]=t[i],k0[e]}return""}var qP=UP("animationend"),WP=UP("transitionend"),YP=!!(qP&&WP),p8=qP||"animationend",m8=WP||"transitionend";function g8(e,t){if(!e)return null;if(pt(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const wee=function(e){var t=A.useRef();function r(a){a&&(a.removeEventListener(m8,e),a.removeEventListener(p8,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(m8,e),a.addEventListener(p8,e),t.current=a)}return P.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var GP=ea()?A.useLayoutEffect:A.useEffect,KP=function(t){return+setTimeout(t,16)},XP=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(KP=function(t){return window.requestAnimationFrame(t)},XP=function(t){return window.cancelAnimationFrame(t)});var v8=0,Em=new Map;function ZP(e){Em.delete(e)}var Zr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;v8+=1;var n=v8;function a(i){if(i===0)ZP(n),t();else{var o=KP(function(){a(i-1)});Em.set(n,o)}}return a(r),n};Zr.cancel=function(e){var t=Em.get(e);return ZP(e),XP(t)};process.env.NODE_ENV!=="production"&&(Zr.ids=function(){return Em});const xee=function(){var e=P.useRef(null);function t(){Zr.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Zr(function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)});e.current=i}return P.useEffect(function(){return function(){t()}},[]),[r,t]};var See=[Ai,El,Ol,qw],Cee=[Ai,HP],JP=!1,Eee=!0;function QP(e){return e===Ol||e===qw}const Oee=function(e,t,r){var n=Rf(f8),a=we(n,2),i=a[0],o=a[1],s=xee(),u=we(s,2),l=u[0],h=u[1];function d(){o(Ai,!0)}var g=t?Cee:See;return GP(function(){if(i!==f8&&i!==qw){var b=g.indexOf(i),y=g[b+1],w=r(i);w===JP?o(y,!0):y&&l(function(S){function E(){S.isCanceled()||o(y,!0)}w===!0?E():Promise.resolve(w).then(E)})}},[e,i]),P.useEffect(function(){return function(){h()}},[]),[d,i]};function Ree(e,t,r,n){var a=n.motionEnter,i=a===void 0?!0:a,o=n.motionAppear,s=o===void 0?!0:o,u=n.motionLeave,l=u===void 0?!0:u,h=n.motionDeadline,d=n.motionLeaveImmediately,g=n.onAppearPrepare,b=n.onEnterPrepare,y=n.onLeavePrepare,w=n.onAppearStart,S=n.onEnterStart,E=n.onLeaveStart,_=n.onAppearActive,C=n.onEnterActive,f=n.onLeaveActive,p=n.onAppearEnd,v=n.onEnterEnd,x=n.onLeaveEnd,k=n.onVisibleChanged,O=Rf(),$=we(O,2),D=$[0],V=$[1],I=vee(Es),N=we(I,2),F=N[0],T=N[1],M=Rf(null),j=we(M,2),H=j[0],z=j[1],U=F(),G=A.useRef(!1),X=A.useRef(null);function K(){return r()}var ne=A.useRef(!1);function ae(){T(Es),z(null,!0)}var ie=Xr(function(Pe){var Ne=F();if(Ne!==Es){var Ee=K();if(!(Pe&&!Pe.deadline&&Pe.target!==Ee)){var Fe=ne.current,rt;Ne===R0&&Fe?rt=p==null?void 0:p(Ee,Pe):Ne===T0&&Fe?rt=v==null?void 0:v(Ee,Pe):Ne===P0&&Fe&&(rt=x==null?void 0:x(Ee,Pe)),Fe&&rt!==!1&&ae()}}}),de=wee(ie),pe=we(de,1),be=pe[0],me=function(Ne){switch(Ne){case R0:return re(re(re({},Ai,g),El,w),Ol,_);case T0:return re(re(re({},Ai,b),El,S),Ol,C);case P0:return re(re(re({},Ai,y),El,E),Ol,f);default:return{}}},ee=P.useMemo(function(){return me(U)},[U]),ve=Oee(U,!e,function(Pe){if(Pe===Ai){var Ne=ee[Ai];return Ne?Ne(K()):JP}if(he in ee){var Ee;z(((Ee=ee[he])===null||Ee===void 0?void 0:Ee.call(ee,K(),null))||null)}return he===Ol&&U!==Es&&(be(K()),h>0&&(clearTimeout(X.current),X.current=setTimeout(function(){ie({deadline:!0})},h))),he===HP&&ae(),Eee}),se=we(ve,2),fe=se[0],he=se[1],ke=QP(he);ne.current=ke;var Te=A.useRef(null);GP(function(){if(!(G.current&&Te.current===t)){V(t);var Pe=G.current;G.current=!0;var Ne;!Pe&&t&&s&&(Ne=R0),Pe&&t&&i&&(Ne=T0),(Pe&&!t&&l||!Pe&&d&&!t&&l)&&(Ne=P0);var Ee=me(Ne);Ne&&(e||Ee[Ai])?(T(Ne),fe()):T(Es),Te.current=t}},[t]),A.useEffect(function(){(U===R0&&!s||U===T0&&!i||U===P0&&!l)&&T(Es)},[s,i,l]),A.useEffect(function(){return function(){G.current=!1,clearTimeout(X.current)}},[]);var xe=P.useRef(!1);A.useEffect(function(){D&&(xe.current=!0),D!==void 0&&U===Es&&((xe.current||D)&&(k==null||k(D)),xe.current=!0)},[D,U]);var $e=H;return ee[Ai]&&he===El&&($e=Q({transition:"none"},$e)),[U,he,$e,D??t]}function Tee(e){var t=e;pt(e)==="object"&&(t=e.transitionSupport);function r(a,i){return!!(a.motionName&&t&&i!==!1)}var n=P.forwardRef(function(a,i){var o=a.visible,s=o===void 0?!0:o,u=a.removeOnLeave,l=u===void 0?!0:u,h=a.forceRender,d=a.children,g=a.motionName,b=a.leavedClassName,y=a.eventProps,w=P.useContext(BP),S=w.motion,E=r(a,S),_=A.useRef(),C=A.useRef();function f(){try{return _.current instanceof HTMLElement?_.current:of(C.current)}catch{return null}}var p=Ree(E,s,f,a),v=we(p,4),x=v[0],k=v[1],O=v[2],$=v[3],D=P.useRef($);$&&(D.current=!0);var V=P.useCallback(function(j){_.current=j,Vw(i,j)},[i]),I,N=Q(Q({},y),{},{visible:s});if(!d)I=null;else if(x===Es)$?I=d(Q({},N),V):!l&&D.current&&b?I=d(Q(Q({},N),{},{className:b}),V):h||!l&&!b?I=d(Q(Q({},N),{},{style:{display:"none"}}),V):I=null;else{var F;k===Ai?F="prepare":QP(k)?F="active":k===El&&(F="start");var T=g8(g,"".concat(x,"-").concat(F));I=d(Q(Q({},N),{},{className:ge(g8(g,x),re(re({},T,T&&F),g,typeof g=="string")),style:O}),V)}if(P.isValidElement(I)&&eh(I)){var M=Cm(I);M||(I=P.cloneElement(I,{ref:V}))}return P.createElement(gee,{ref:C},I)});return n.displayName="CSSMotion",n}const lc=Tee(YP);var zy="add",By="keep",Hy="remove",nb="removed";function Pee(e){var t;return e&&pt(e)==="object"&&"key"in e?t=e:t={key:e},Q(Q({},t),{},{key:String(t.key)})}function Vy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Pee)}function kee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,i=Vy(e),o=Vy(t);i.forEach(function(l){for(var h=!1,d=n;d<a;d+=1){var g=o[d];if(g.key===l.key){n<d&&(r=r.concat(o.slice(n,d).map(function(b){return Q(Q({},b),{},{status:zy})})),n=d),r.push(Q(Q({},g),{},{status:By})),n+=1,h=!0;break}}h||r.push(Q(Q({},l),{},{status:Hy}))}),n<a&&(r=r.concat(o.slice(n).map(function(l){return Q(Q({},l),{},{status:zy})})));var s={};r.forEach(function(l){var h=l.key;s[h]=(s[h]||0)+1});var u=Object.keys(s).filter(function(l){return s[l]>1});return u.forEach(function(l){r=r.filter(function(h){var d=h.key,g=h.status;return d!==l||g!==Hy}),r.forEach(function(h){h.key===l&&(h.status=By)})}),r}var $ee=["component","children","onVisibleChanged","onAllRemoved"],Aee=["status"],Dee=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Mee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lc,r=function(n){Du(i,n);var a=Mu(i);function i(){var o;Un(this,i);for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];return o=a.call.apply(a,[this].concat(u)),re(Zt(o),"state",{keyEntities:[]}),re(Zt(o),"removeKey",function(h){o.setState(function(d){var g=d.keyEntities.map(function(b){return b.key!==h?b:Q(Q({},b),{},{status:nb})});return{keyEntities:g}},function(){var d=o.state.keyEntities,g=d.filter(function(b){var y=b.status;return y!==nb}).length;g===0&&o.props.onAllRemoved&&o.props.onAllRemoved()})}),o}return qn(i,[{key:"render",value:function(){var s=this,u=this.state.keyEntities,l=this.props,h=l.component,d=l.children,g=l.onVisibleChanged;l.onAllRemoved;var b=sr(l,$ee),y=h||P.Fragment,w={};return Dee.forEach(function(S){w[S]=b[S],delete b[S]}),delete b.keys,P.createElement(y,b,u.map(function(S,E){var _=S.status,C=sr(S,Aee),f=_===zy||_===By;return P.createElement(t,je({},w,{key:C.key,visible:f,eventProps:C,onVisibleChanged:function(v){g==null||g(v,{key:C.key}),v||s.removeKey(C.key)}}),function(p,v){return d(Q(Q({},p),{},{index:E}),v)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,u){var l=s.keys,h=u.keyEntities,d=Vy(l),g=kee(h,d);return{keyEntities:g.filter(function(b){var y=h.find(function(w){var S=w.key;return b.key===S});return!(y&&y.status===nb&&b.status===Hy)})}}}]),i}(P.Component);return re(r,"defaultProps",{component:"div"}),r}const Nee=Mee(YP);function Iee(e,t){const{children:r,upload:n,rootClassName:a}=e,i=A.useRef(null);return A.useImperativeHandle(t,()=>i.current),A.createElement(ue.Upload,je({},n,{showUploadList:!1,rootClassName:a,ref:i}),r)}const ek=A.forwardRef(Iee);function Af(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Uy(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=n.has(i);if(Ut(!u,"Warning: There may be circular references"),u)return!1;if(i===o)return!0;if(r&&s>1)return!1;n.add(i);var l=s+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var h=0;h<i.length;h++)if(!a(i[h],o[h],l))return!1;return!0}if(i&&o&&pt(i)==="object"&&pt(o)==="object"){var d=Object.keys(i);return d.length!==Object.keys(o).length?!1:d.every(function(g){return a(i[g],o[g],l)})}return!1}return a(e,t)}var Fee="%";function qy(e){return e.join(Fee)}var jee=function(){function e(t){Un(this,e),re(this,"instanceId",void 0),re(this,"cache",new Map),this.instanceId=t}return qn(e,[{key:"get",value:function(r){return this.opGet(qy(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(qy(r),n)}},{key:"opUpdate",value:function(r,n){var a=this.cache.get(r),i=n(a);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),ql="data-token-hash",zi="data-css-hash",Lee="data-cache-path",Ds="__cssinjs_instance__";function zee(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(zi,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(a){a[Ds]=a[Ds]||e,a[Ds]===e&&document.head.insertBefore(a,r)});var n={};Array.from(document.querySelectorAll("style[".concat(zi,"]"))).forEach(function(a){var i=a.getAttribute(zi);if(n[i]){if(a[Ds]===e){var o;(o=a.parentNode)===null||o===void 0||o.removeChild(a)}}else n[i]=!0})}return new jee(e)}var rh=P.createContext({hashPriority:"low",cache:zee(),defaultCache:!0});function Bee(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ww=function(){function e(){Un(this,e),re(this,"cache",void 0),re(this,"keys",void 0),re(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return qn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return r.forEach(function(s){if(!o)o=void 0;else{var u;o=(u=o)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(s)}}),(n=o)!==null&&n!==void 0&&n.value&&i&&(o.value[1]=this.cacheCallTimes++),(a=o)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(l,h){var d=we(l,2),g=d[1];return a.internalGet(h)[1]<g?[h,a.internalGet(h)[1]]:l},[this.keys[0],this.cacheCallTimes]),o=we(i,1),s=o[0];this.delete(s)}this.keys.push(r)}var u=this.cache;r.forEach(function(l,h){if(h===r.length-1)u.set(l,{value:[n,a.cacheCallTimes++]});else{var d=u.get(l);d?d.map||(d.map=new Map):u.set(l,{map:new Map}),u=u.get(l).map}})}},{key:"deleteByPath",value:function(r,n){var a=r.get(n[0]);if(n.length===1){var i;return a.map?r.set(n[0],{map:a.map}):r.delete(n[0]),(i=a.value)===null||i===void 0?void 0:i[0]}var o=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&r.delete(n[0]),o}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Bee(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();re(Ww,"MAX_CACHE_SIZE",20);re(Ww,"MAX_CACHE_OFFSET",5);var b8=0,tk=function(){function e(t){Un(this,e),re(this,"derivatives",void 0),re(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=b8,t.length===0&&Eu(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),b8+=1}return qn(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),ab=new Ww;function Dp(e){var t=Array.isArray(e)?e:[e];return ab.has(t)||ab.set(t,new tk(t)),ab.get(t)}var Hee=new WeakMap,ib={};function Vee(e,t){for(var r=Hee,n=0;n<t.length;n+=1){var a=t[n];r.has(a)||r.set(a,new WeakMap),r=r.get(a)}return r.has(ib)||r.set(ib,e()),r.get(ib)}var y8=new WeakMap;function sf(e){var t=y8.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof tk?t+=n.id:n&&pt(n)==="object"?t+=sf(n):t+=n}),t=Af(t),y8.set(e,t)),t}function _8(e,t){return Af("".concat(t,"_").concat(sf(e)))}var Wy=ea();function He(e){return typeof e=="number"?"".concat(e,"px"):e}function Mp(e,t,r){var n,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=Q(Q({},a),{},(n={},re(n,ql,t),re(n,zi,r),n)),s=Object.keys(o).map(function(u){var l=o[u];return l?"".concat(u,'="').concat(l,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var lp=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Uee=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var i=we(a,2),o=i[0],s=i[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},rk=function(t,r,n){var a={},i={};return Object.entries(t).forEach(function(o){var s,u,l=we(o,2),h=l[0],d=l[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[h])i[h]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(u=n.ignore)!==null&&u!==void 0&&u[h])){var g,b=lp(h,n==null?void 0:n.prefix);a[b]=typeof d=="number"&&!(n!=null&&(g=n.unitless)!==null&&g!==void 0&&g[h])?"".concat(d,"px"):String(d),i[h]="var(".concat(b,")")}}),[i,Uee(a,r,{scope:n==null?void 0:n.scope})]},qee=Q({},P),w8=qee.useInsertionEffect,Wee=function(t,r,n){P.useMemo(t,n),fr(function(){return r(!0)},n)},Yee=w8?function(e,t,r){return w8(function(){return e(),t()},r)}:Wee,Gee=Q({},P),Kee=Gee.useInsertionEffect,Xee=function(t){var r=[],n=!1;function a(i){if(n){process.env.NODE_ENV!=="production"&&Eu(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return P.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),a},Zee=function(){return function(t){t()}},Jee=typeof Kee<"u"?Xee:Zee;function Qee(){return!1}var Yy=!1;function ete(){return Yy}const tte=process.env.NODE_ENV==="production"?Qee:ete;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var $0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if($0&&typeof $0.webpackHotUpdate=="function"){var rte=$0.webpackHotUpdate;$0.webpackHotUpdate=function(){return Yy=!0,setTimeout(function(){Yy=!1},0),rte.apply(void 0,arguments)}}}function Yw(e,t,r,n,a){var i=P.useContext(rh),o=i.cache,s=[e].concat(tt(t)),u=qy(s),l=Jee([u]),h=tte(),d=function(w){o.opUpdate(u,function(S){var E=S||[void 0,void 0],_=we(E,2),C=_[0],f=C===void 0?0:C,p=_[1],v=p;process.env.NODE_ENV!=="production"&&p&&h&&(n==null||n(v,h),v=null);var x=v||r(),k=[f,x];return w?w(k):k})};P.useMemo(function(){d()},[u]);var g=o.opGet(u);process.env.NODE_ENV!=="production"&&!g&&(d(),g=o.opGet(u));var b=g[1];return Yee(function(){a==null||a(b)},function(y){return d(function(w){var S=we(w,2),E=S[0],_=S[1];return y&&E===0&&(a==null||a(b)),[E+1,_]}),function(){o.opUpdate(u,function(w){var S=w||[],E=we(S,2),_=E[0],C=_===void 0?0:_,f=E[1],p=C-1;return p===0?(l(function(){(y||!o.opGet(u))&&(n==null||n(f,!1))}),null):[C-1,f]})}},[u]),b}var nte={},ate=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",hu=new Map;function ite(e){hu.set(e,(hu.get(e)||0)+1)}function ote(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(ql,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ds]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var ste=0;function ute(e,t){hu.set(e,(hu.get(e)||0)-1);var r=Array.from(hu.keys()),n=r.filter(function(a){var i=hu.get(a)||0;return i<=0});r.length-n.length>ste&&n.forEach(function(a){ote(a,t),hu.delete(a)})}var lte=function(t,r,n,a){var i=n.getDerivativeToken(t),o=Q(Q({},i),r);return a&&(o=a(o)),o},nk="token";function ak(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=A.useContext(rh),a=n.cache.instanceId,i=n.container,o=r.salt,s=o===void 0?"":o,u=r.override,l=u===void 0?nte:u,h=r.formatToken,d=r.getComputedToken,g=r.cssVar,b=Vee(function(){return Object.assign.apply(Object,[{}].concat(tt(t)))},t),y=sf(b),w=sf(l),S=g?sf(g):"",E=Yw(nk,[s,e.id,y,w,S],function(){var _,C=d?d(b,l,e):lte(b,l,e,h),f=Q({},C),p="";if(g){var v=rk(C,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),x=we(v,2);C=x[0],p=x[1]}var k=_8(C,s);C._tokenKey=k,f._tokenKey=_8(f,s);var O=(_=g==null?void 0:g.key)!==null&&_!==void 0?_:k;C._themeKey=O,ite(O);var $="".concat(ate,"-").concat(Af(k));return C._hashId=$,[C,$,f,p,(g==null?void 0:g.key)||""]},function(_){ute(_[0]._themeKey,a)},function(_){var C=we(_,4),f=C[0],p=C[3];if(g&&p){var v=Li(p,Af("css-variables-".concat(f._themeKey)),{mark:zi,prepend:"queue",attachTo:i,priority:-999});v[Ds]=a,v.setAttribute(ql,f._themeKey)}});return E}var cte=function(t,r,n){var a=we(t,5),i=a[2],o=a[3],s=a[4],u=n||{},l=u.plain;if(!o)return null;var h=i._tokenKey,d=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},b=Mp(o,s,h,g,l);return[d,h,b]},dte={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},ik="comm",ok="rule",sk="decl",fte="@import",hte="@namespace",pte="@keyframes",mte="@layer",uk=Math.abs,Gw=String.fromCharCode;function lk(e){return e.trim()}function cp(e,t,r){return e.replace(t,r)}function gte(e,t,r){return e.indexOf(t,r)}function Il(e,t){return e.charCodeAt(t)|0}function Wl(e,t,r){return e.slice(t,r)}function eo(e){return e.length}function vte(e){return e.length}function A0(e,t){return t.push(e),e}var Om=1,Yl=1,ck=0,pi=0,pn=0,cc="";function Kw(e,t,r,n,a,i,o,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Om,column:Yl,length:o,return:"",siblings:s}}function bte(){return pn}function yte(){return pn=pi>0?Il(cc,--pi):0,Yl--,pn===10&&(Yl=1,Om--),pn}function Bi(){return pn=pi<ck?Il(cc,pi++):0,Yl++,pn===10&&(Yl=1,Om++),pn}function Ms(){return Il(cc,pi)}function dp(){return pi}function Rm(e,t){return Wl(cc,e,t)}function Df(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 _te(e){return Om=Yl=1,ck=eo(cc=e),pi=0,[]}function wte(e){return cc="",e}function ob(e){return lk(Rm(pi-1,Gy(e===91?e+2:e===40?e+1:e)))}function xte(e){for(;(pn=Ms())&&pn<33;)Bi();return Df(e)>2||Df(pn)>3?"":" "}function Ste(e,t){for(;--t&&Bi()&&!(pn<48||pn>102||pn>57&&pn<65||pn>70&&pn<97););return Rm(e,dp()+(t<6&&Ms()==32&&Bi()==32))}function Gy(e){for(;Bi();)switch(pn){case e:return pi;case 34:case 39:e!==34&&e!==39&&Gy(pn);break;case 40:e===41&&Gy(e);break;case 92:Bi();break}return pi}function Cte(e,t){for(;Bi()&&e+pn!==57;)if(e+pn===84&&Ms()===47)break;return"/*"+Rm(t,pi-1)+"*"+Gw(e===47?e:Bi())}function Ete(e){for(;!Df(Ms());)Bi();return Rm(e,pi)}function Ote(e){return wte(fp("",null,null,null,[""],e=_te(e),0,[0],e))}function fp(e,t,r,n,a,i,o,s,u){for(var l=0,h=0,d=o,g=0,b=0,y=0,w=1,S=1,E=1,_=0,C="",f=a,p=i,v=n,x=C;S;)switch(y=_,_=Bi()){case 40:if(y!=108&&Il(x,d-1)==58){gte(x+=cp(ob(_),"&","&\f"),"&\f",uk(l?s[l-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:x+=ob(_);break;case 9:case 10:case 13:case 32:x+=xte(y);break;case 92:x+=Ste(dp()-1,7);continue;case 47:switch(Ms()){case 42:case 47:A0(Rte(Cte(Bi(),dp()),t,r,u),u),(Df(y||1)==5||Df(Ms()||1)==5)&&eo(x)&&Wl(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*w:s[l++]=eo(x)*E;case 125*w:case 59:case 0:switch(_){case 0:case 125:S=0;case 59+h:E==-1&&(x=cp(x,/\f/g,"")),b>0&&(eo(x)-d||w===0&&y===47)&&A0(b>32?S8(x+";",n,r,d-1,u):S8(cp(x," ","")+";",n,r,d-2,u),u);break;case 59:x+=";";default:if(A0(v=x8(x,t,r,l,h,a,s,C,f=[],p=[],d,i),i),_===123)if(h===0)fp(x,t,v,v,f,i,d,s,p);else{switch(g){case 99:if(Il(x,3)===110)break;case 108:if(Il(x,2)===97)break;default:h=0;case 100:case 109:case 115:}h?fp(e,v,v,n&&A0(x8(e,v,v,0,0,a,s,C,a,f=[],d,p),p),a,p,d,s,n?f:p):fp(x,v,v,v,[""],p,0,s,p)}}l=h=b=0,w=E=1,C=x="",d=o;break;case 58:d=1+eo(x),b=y;default:if(w<1){if(_==123)--w;else if(_==125&&w++==0&&yte()==125)continue}switch(x+=Gw(_),_*w){case 38:E=h>0?1:(x+="\f",-1);break;case 44:s[l++]=(eo(x)-1)*E,E=1;break;case 64:Ms()===45&&(x+=ob(Bi())),g=Ms(),h=d=eo(C=x+=Ete(dp())),_++;break;case 45:y===45&&eo(x)==2&&(w=0)}}return i}function x8(e,t,r,n,a,i,o,s,u,l,h,d){for(var g=a-1,b=a===0?i:[""],y=vte(b),w=0,S=0,E=0;w<n;++w)for(var _=0,C=Wl(e,g+1,g=uk(S=o[w])),f=e;_<y;++_)(f=lk(S>0?b[_]+" "+C:cp(C,/&\f/g,b[_])))&&(u[E++]=f);return Kw(e,t,r,a===0?ok:s,u,l,h,d)}function Rte(e,t,r,n){return Kw(e,t,r,ik,Gw(bte()),Wl(e,2,-2),0,n)}function S8(e,t,r,n,a){return Kw(e,t,r,sk,Wl(e,0,n),Wl(e,n+1,-1),n,a)}function Ky(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Tte(e,t,r,n){switch(e.type){case mte:if(e.children.length)break;case fte:case hte:case sk:return e.return=e.return||e.value;case ik:return"";case pte:return e.return=e.value+"{"+Ky(e.children,n)+"}";case ok:if(!eo(e.value=e.props.join(",")))return""}return eo(r=Ky(e.children,n))?e.return=e.value+"{"+r+"}":""}function dk(e,t){var r=t.path,n=t.parentSelectors;Ut(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Pte=function(t,r,n){if(t==="content"){var a=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!a.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&dk("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},kte=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&dk("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},C8="data-ant-cssinjs-cache-path",fk="_FILE_STYLE__",Cu,hk=!0;function $te(){if(!Cu&&(Cu={},ea())){var e=document.createElement("div");e.className=C8,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(/"$/,""),t.split(";").forEach(function(a){var i=a.split(":"),o=we(i,2),s=o[0],u=o[1];Cu[s]=u});var r=document.querySelector("style[".concat(C8,"]"));if(r){var n;hk=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Ate(e){return $te(),!!Cu[e]}function Dte(e){var t=Cu[e],r=null;if(t&&ea())if(hk)r=fk;else{var n=document.querySelector("style[".concat(zi,'="').concat(Cu[e],'"]'));n?r=n.innerHTML:delete Cu[e]}return[r,t]}var pk="_skip_check_",mk="_multi_value_";function hp(e){var t=Ky(Ote(e),Tte);return t.replace(/\{%%%\:[^;];}/g,";")}function Mte(e){return pt(e)==="object"&&e&&(pk in e||mk in e)}function E8(e,t,r){if(!t)return e;var n=".".concat(t),a=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(o){var s,u=o.trim().split(/\s+/),l=u[0]||"",h=((s=l.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return l="".concat(h).concat(a).concat(l.slice(h.length)),[l].concat(tt(u.slice(1))).join(" ")});return i.join(",")}var Nte=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,i=n.injectHash,o=n.parentSelectors,s=r.hashId,u=r.layer,l=r.path,h=r.hashPriority,d=r.transformers,g=d===void 0?[]:d,b=r.linters,y=b===void 0?[]:b,w="",S={};function E(f){var p=f.getName(s);if(!S[p]){var v=e(f.style,r,{root:!1,parentSelectors:o}),x=we(v,1),k=x[0];S[p]="@keyframes ".concat(f.getName(s)).concat(k)}}function _(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return f.forEach(function(v){Array.isArray(v)?_(v,p):v&&p.push(v)}),p}var C=_(Array.isArray(t)?t:[t]);return C.forEach(function(f){var p=typeof f=="string"&&!a?{}:f;if(typeof p=="string")w+="".concat(p,`
441
- `);else if(p._keyframe)E(p);else{var v=g.reduce(function(x,k){var O;return(k==null||(O=k.visit)===null||O===void 0?void 0:O.call(k,x))||x},p);Object.keys(v).forEach(function(x){var k=v[x];if(pt(k)==="object"&&k&&(x!=="animationName"||!k._keyframe)&&!Mte(k)){var O=!1,$=x.trim(),D=!1;(a||i)&&s?$.startsWith("@")?O=!0:$==="&"?$=E8("",s,h):$=E8(x,s,h):a&&!s&&($==="&"||$==="")&&($="",D=!0);var V=e(k,r,{root:D,injectHash:O,parentSelectors:[].concat(tt(o),[$])}),I=we(V,2),N=I[0],F=I[1];S=Q(Q({},S),F),w+="".concat($).concat(N)}else{let j=function(H,z){process.env.NODE_ENV!=="production"&&(pt(k)!=="object"||!(k!=null&&k[pk]))&&[Pte,kte].concat(tt(y)).forEach(function(X){return X(H,z,{path:l,hashId:s,parentSelectors:o})});var U=H.replace(/[A-Z]/g,function(X){return"-".concat(X.toLowerCase())}),G=z;!dte[H]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),H==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(E(z),G=z.getName(s)),w+="".concat(U,":").concat(G,";")};var T,M=(T=k==null?void 0:k.value)!==null&&T!==void 0?T:k;pt(k)==="object"&&k!==null&&k!==void 0&&k[mk]&&Array.isArray(M)?M.forEach(function(H){j(x,H)}):j(x,M)}})}}),a?u&&(w&&(w="@layer ".concat(u.name," {").concat(w,"}")),u.dependencies&&(S["@layer ".concat(u.name)]=u.dependencies.map(function(f){return"@layer ".concat(f,", ").concat(u.name,";")}).join(`
442
- `))):w="{".concat(w,"}"),[w,S]};function gk(e,t){return Af("".concat(e.join("%")).concat(t))}function Ite(){return null}var vk="style";function Xy(e,t){var r=e.token,n=e.path,a=e.hashId,i=e.layer,o=e.nonce,s=e.clientOnly,u=e.order,l=u===void 0?0:u,h=P.useContext(rh),d=h.autoClear,g=h.mock,b=h.defaultCache,y=h.hashPriority,w=h.container,S=h.ssrInline,E=h.transformers,_=h.linters,C=h.cache,f=h.layer,p=r._tokenKey,v=[p];f&&v.push("layer"),v.push.apply(v,tt(n));var x=Wy;process.env.NODE_ENV!=="production"&&g!==void 0&&(x=g==="client");var k=Yw(vk,v,function(){var I=v.join("|");if(Ate(I)){var N=Dte(I),F=we(N,2),T=F[0],M=F[1];if(T)return[T,p,M,{},s,l]}var j=t(),H=Nte(j,{hashId:a,hashPriority:y,layer:f?i:void 0,path:n.join("-"),transformers:E,linters:_}),z=we(H,2),U=z[0],G=z[1],X=hp(U),K=gk(v,X);return[X,p,K,G,s,l]},function(I,N){var F=we(I,3),T=F[2];(N||d)&&Wy&&hf(T,{mark:zi})},function(I){var N=we(I,4),F=N[0];N[1];var T=N[2],M=N[3];if(x&&F!==fk){var j={mark:zi,prepend:f?!1:"queue",attachTo:w,priority:l},H=typeof o=="function"?o():o;H&&(j.csp={nonce:H});var z=[],U=[];Object.keys(M).forEach(function(X){X.startsWith("@layer")?z.push(X):U.push(X)}),z.forEach(function(X){Li(hp(M[X]),"_layer-".concat(X),Q(Q({},j),{},{prepend:!0}))});var G=Li(F,T,j);G[Ds]=C.instanceId,G.setAttribute(ql,p),process.env.NODE_ENV!=="production"&&G.setAttribute(Lee,v.join("|")),U.forEach(function(X){Li(hp(M[X]),"_effect-".concat(X),j)})}}),O=we(k,3),$=O[0],D=O[1],V=O[2];return function(I){var N;if(!S||x||!b)N=P.createElement(Ite,null);else{var F;N=P.createElement("style",je({},(F={},re(F,ql,D),re(F,zi,V),F),{dangerouslySetInnerHTML:{__html:$}}))}return P.createElement(P.Fragment,null,N,I)}}var Fte=function(t,r,n){var a=we(t,6),i=a[0],o=a[1],s=a[2],u=a[3],l=a[4],h=a[5],d=n||{},g=d.plain;if(l)return null;var b=i,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)};return b=Mp(i,o,s,y,g),u&&Object.keys(u).forEach(function(w){if(!r[w]){r[w]=!0;var S=hp(u[w]),E=Mp(S,o,"_effect-".concat(w),y,g);w.startsWith("@layer")?b=E+b:b+=E}}),[h,s,b]},bk="cssVar",jte=function(t,r){var n=t.key,a=t.prefix,i=t.unitless,o=t.ignore,s=t.token,u=t.scope,l=u===void 0?"":u,h=A.useContext(rh),d=h.cache.instanceId,g=h.container,b=s._tokenKey,y=[].concat(tt(t.path),[n,l,b]),w=Yw(bk,y,function(){var S=r(),E=rk(S,n,{prefix:a,unitless:i,ignore:o,scope:l}),_=we(E,2),C=_[0],f=_[1],p=gk(y,f);return[C,f,p,n]},function(S){var E=we(S,3),_=E[2];Wy&&hf(_,{mark:zi})},function(S){var E=we(S,3),_=E[1],C=E[2];if(_){var f=Li(_,C,{mark:zi,prepend:"queue",attachTo:g,priority:-999});f[Ds]=d,f.setAttribute(ql,n)}});return w},Lte=function(t,r,n){var a=we(t,4),i=a[1],o=a[2],s=a[3],u=n||{},l=u.plain;if(!i)return null;var h=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},g=Mp(i,s,o,d,l);return[h,o,g]},$d;$d={},re($d,vk,Fte),re($d,nk,cte),re($d,bk,Lte);var Tr=function(){function e(t,r){Un(this,e),re(this,"name",void 0),re(this,"style",void 0),re(this,"_keyframe",!0),this.name=t,this.style=r}return qn(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function ol(e){return e.notSplit=!0,e}ol(["borderTop","borderBottom"]),ol(["borderTop"]),ol(["borderBottom"]),ol(["borderLeft","borderRight"]),ol(["borderLeft"]),ol(["borderRight"]);var yk=qn(function e(){Un(this,e)}),_k="CALC_UNIT",zte=new RegExp(_k,"g");function sb(e){return typeof e=="number"?"".concat(e).concat(_k):e}var Bte=function(e){Du(r,e);var t=Mu(r);function r(n,a){var i;Un(this,r),i=t.call(this),re(Zt(i),"result",""),re(Zt(i),"unitlessCssVar",void 0),re(Zt(i),"lowPriority",void 0);var o=pt(n);return i.unitlessCssVar=a,n instanceof r?i.result="(".concat(n.result,")"):o==="number"?i.result=sb(n):o==="string"&&(i.result=n),i}return qn(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(sb(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(sb(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var i=this,o=a||{},s=o.unit,u=!0;return typeof s=="boolean"?u=s:Array.from(this.unitlessCssVar).some(function(l){return i.result.includes(l)})&&(u=!1),this.result=this.result.replace(zte,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(yk),Hte=function(e){Du(r,e);var t=Mu(r);function r(n){var a;return Un(this,r),a=t.call(this),re(Zt(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return qn(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(yk),Vte=function(t,r){var n=t==="css"?Bte:Hte;return function(a){return new n(a,r)}},O8=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function R8(e,t,r,n){var a=Q({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(s){var u=we(s,2),l=u[0],h=u[1];if(process.env.NODE_ENV!=="production"&&Ut(!(a!=null&&a[l]),"Component Token `".concat(String(l),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(h),"` instead.")),a!=null&&a[l]||a!=null&&a[h]){var d;(d=a[h])!==null&&d!==void 0||(a[h]=a==null?void 0:a[l])}})}var o=Q(Q({},r),a);return Object.keys(o).forEach(function(s){o[s]===t[s]&&delete o[s]}),o}var wk=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Zy=!0;function Jr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!wk)return Object.assign.apply(Object,[{}].concat(t));Zy=!1;var n={};return t.forEach(function(a){if(pt(a)==="object"){var i=Object.keys(a);i.forEach(function(o){Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get:function(){return a[o]}})})}}),Zy=!0,n}var T8={};function Ute(){}var qte=function(t){var r,n=t,a=Ute;return wk&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(o,s){if(Zy){var u;(u=r)===null||u===void 0||u.add(s)}return o[s]}}),a=function(o,s){var u;T8[o]={global:Array.from(r),component:Q(Q({},(u=T8[o])===null||u===void 0?void 0:u.component),s)}}),{token:n,keys:r,flush:a}};function P8(e,t,r){if(typeof r=="function"){var n;return r(Jr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Wte(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"max(".concat(n.map(function(i){return He(i)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return"min(".concat(n.map(function(i){return He(i)}).join(","),")")}}}var Yte=1e3*60*10,Gte=function(){function e(){Un(this,e),re(this,"map",new Map),re(this,"objectIDMap",new WeakMap),re(this,"nextID",0),re(this,"lastAccessBeat",new Map),re(this,"accessBeat",0)}return qn(e,[{key:"set",value:function(r,n){this.clear();var a=this.getCompositeKey(r);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(r){var n=this,a=r.map(function(i){return i&&pt(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(pt(i),"_").concat(i)});return a.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,i){n-a>Yte&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),k8=new Gte;function Kte(e,t){return A.useMemo(function(){var r=k8.get(t);if(r)return r;var n=e();return k8.set(t,n),n},t)}var Xte=function(){return{}};function xk(e){var t=e.useCSP,r=t===void 0?Xte:t,n=e.useToken,a=e.usePrefix,i=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function u(g,b,y,w){var S=Array.isArray(g)?g[0]:g;function E(k){return"".concat(String(S)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var _=(w==null?void 0:w.unitless)||{},C=typeof s=="function"?s(g):{},f=Q(Q({},C),{},re({},E("zIndexPopup"),!0));Object.keys(_).forEach(function(k){f[E(k)]=_[k]});var p=Q(Q({},w),{},{unitless:f,prefixToken:E}),v=h(g,b,y,p),x=l(S,y,p);return function(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,$=v(k,O),D=we($,2),V=D[1],I=x(O),N=we(I,2),F=N[0],T=N[1];return[F,V,T]}}function l(g,b,y){var w=y.unitless,S=y.injectStyle,E=S===void 0?!0:S,_=y.prefixToken,C=y.ignore,f=function(x){var k=x.rootCls,O=x.cssVar,$=O===void 0?{}:O,D=n(),V=D.realToken;return jte({path:[g],prefix:$.prefix,key:$.key,unitless:w,ignore:C,token:V,scope:k},function(){var I=P8(g,V,b),N=R8(g,V,I,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return Object.keys(I).forEach(function(F){N[_(F)]=N[F],delete N[F]}),N}),null},p=function(x){var k=n(),O=k.cssVar;return[function($){return E&&O?A.createElement(A.Fragment,null,A.createElement(f,{rootCls:x,cssVar:O,component:g}),$):$},O==null?void 0:O.key]};return p}function h(g,b,y){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(g)?g:[g,g],E=we(S,1),_=E[0],C=S.join("-"),f=e.layer||{name:"antd"};return function(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,x=n(),k=x.theme,O=x.realToken,$=x.hashId,D=x.token,V=x.cssVar,I=a(),N=I.rootPrefixCls,F=I.iconPrefixCls,T=r(),M=V?"css":"js",j=Kte(function(){var K=new Set;return V&&Object.keys(w.unitless||{}).forEach(function(ne){K.add(lp(ne,V.prefix)),K.add(lp(ne,O8(_,V.prefix)))}),Vte(M,K)},[M,_,V==null?void 0:V.prefix]),H=Wte(M),z=H.max,U=H.min,G={theme:k,token:D,hashId:$,nonce:function(){return T.nonce},clientOnly:w.clientOnly,layer:f,order:w.order||-999};typeof i=="function"&&Xy(Q(Q({},G),{},{clientOnly:!1,path:["Shared",N]}),function(){return i(D,{prefix:{rootPrefixCls:N,iconPrefixCls:F},csp:T})});var X=Xy(Q(Q({},G),{},{path:[C,p,F]}),function(){if(w.injectStyle===!1)return[];var K=qte(D),ne=K.token,ae=K.flush,ie=P8(_,O,y),de=".".concat(p),pe=R8(_,O,ie,{deprecatedTokens:w.deprecatedTokens});V&&ie&&pt(ie)==="object"&&Object.keys(ie).forEach(function(ve){ie[ve]="var(".concat(lp(ve,O8(_,V.prefix)),")")});var be=Jr(ne,{componentCls:de,prefixCls:p,iconCls:".".concat(F),antCls:".".concat(N),calc:j,max:z,min:U},V?ie:pe),me=b(be,{hashId:$,prefixCls:p,rootPrefixCls:N,iconPrefixCls:F});ae(_,pe);var ee=typeof o=="function"?o(be,p,v,w.resetFont):null;return[w.resetStyle===!1?null:ee,me]});return[X,$]}}function d(g,b,y){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=h(g,b,y,Q({resetStyle:!1,order:-998},w)),E=function(C){var f=C.prefixCls,p=C.rootCls,v=p===void 0?f:p;return S(f,v),null};return process.env.NODE_ENV!=="production"&&(E.displayName="SubStyle_".concat(String(Array.isArray(g)?g.join("."):g))),E}return{genStyleHooks:u,genSubStyleComponent:d,genComponentStyleHook:h}}const Zte="5.24.1",Sk={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"},Mf=Object.assign(Object.assign({},Sk),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
443
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
444
- '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});var D0=2,$8=.16,Jte=.05,Qte=.05,ere=.15,Ck=5,Ek=4,tre=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function A8(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-D0*t:Math.round(e.h)+D0*t:n=r?Math.round(e.h)+D0*t:Math.round(e.h)-D0*t,n<0?n+=360:n>=360&&(n-=360),n}function D8(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-$8*t:t===Ek?n=e.s+$8:n=e.s+Jte*t,n>1&&(n=1),r&&t===Ck&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function M8(e,t,r){var n;return r?n=e.v+Qte*t:n=e.v-ere*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Nf(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new Rr(e),a=n.toHsv(),i=Ck;i>0;i-=1){var o=new Rr({h:A8(a,i,!0),s:D8(a,i,!0),v:M8(a,i,!0)});r.push(o)}r.push(n);for(var s=1;s<=Ek;s+=1){var u=new Rr({h:A8(a,s),s:D8(a,s),v:M8(a,s)});r.push(u)}return t.theme==="dark"?tre.map(function(l){var h=l.index,d=l.amount;return new Rr(t.backgroundColor||"#141414").mix(r[h],d).toHexString()}):r.map(function(l){return l.toHexString()})}var ub={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"},Jy=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Jy.primary=Jy[5];var Qy=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Qy.primary=Qy[5];var e_=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];e_.primary=e_[5];var Np=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Np.primary=Np[5];var t_=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];t_.primary=t_[5];var r_=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];r_.primary=r_[5];var n_=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];n_.primary=n_[5];var a_=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];a_.primary=a_[5];var Ip=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ip.primary=Ip[5];var i_=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];i_.primary=i_[5];var o_=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];o_.primary=o_[5];var s_=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];s_.primary=s_[5];var u_=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];u_.primary=u_[5];var lb={red:Jy,volcano:Qy,orange:e_,gold:Np,yellow:t_,lime:r_,green:n_,cyan:a_,blue:Ip,geekblue:i_,purple:o_,magenta:s_,grey:u_};function rre(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:a,colorWarning:i,colorError:o,colorInfo:s,colorPrimary:u,colorBgBase:l,colorTextBase:h}=e,d=r(u),g=r(a),b=r(i),y=r(o),w=r(s),S=n(l,h),E=e.colorLink||e.colorInfo,_=r(E),C=new Rr(y[1]).mix(new Rr(y[3]),50).toHexString();return Object.assign(Object.assign({},S),{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:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:C,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:w[1],colorInfoBgHover:w[2],colorInfoBorder:w[3],colorInfoBorderHover:w[4],colorInfoHover:w[4],colorInfo:w[6],colorInfoActive:w[7],colorInfoTextHover:w[8],colorInfoText:w[9],colorInfoTextActive:w[10],colorLinkHover:_[4],colorLink:_[6],colorLinkActive:_[7],colorBgMask:new Rr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const nre=e=>{let t=e,r=e,n=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:a}};function are(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:a+1},nre(n))}const ire=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ore(e){return(e+8)/e}function sre(e){const t=Array.from({length:10}).map((r,n)=>{const a=n-1,i=e*Math.pow(Math.E,a/5),o=n>1?Math.floor(i):Math.ceil(i);return Math.floor(o/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:ore(r)}))}const ure=e=>{const t=sre(e),r=t.map(h=>h.size),n=t.map(h=>h.lineHeight),a=r[1],i=r[0],o=r[2],s=n[1],u=n[0],l=n[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:o,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:l,lineHeightSM:u,fontHeight:Math.round(s*a),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(u*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function lre(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const si=(e,t)=>new Rr(e).setA(t).toRgbString(),Ad=(e,t)=>new Rr(e).darken(t).toHexString(),cre=e=>{const t=Nf(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]}},dre=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:si(n,.88),colorTextSecondary:si(n,.65),colorTextTertiary:si(n,.45),colorTextQuaternary:si(n,.25),colorFill:si(n,.15),colorFillSecondary:si(n,.06),colorFillTertiary:si(n,.04),colorFillQuaternary:si(n,.02),colorBgSolid:si(n,1),colorBgSolidHover:si(n,.75),colorBgSolidActive:si(n,.95),colorBgLayout:Ad(r,4),colorBgContainer:Ad(r,0),colorBgElevated:Ad(r,0),colorBgSpotlight:si(n,.85),colorBgBlur:"transparent",colorBorder:Ad(r,15),colorBorderSecondary:Ad(r,6)}};function fre(e){ub.pink=ub.magenta,lb.pink=lb.magenta;const t=Object.keys(Sk).map(r=>{const n=e[r]===ub[r]?lb[r]:Nf(e[r]);return Array.from({length:10},()=>1).reduce((a,i,o)=>(a[`${r}-${o+1}`]=n[o],a[`${r}${o+1}`]=n[o],a),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),rre(e,{generateColorPalettes:cre,generateNeutralColorPalettes:dre})),ure(e.fontSize)),lre(e)),ire(e)),are(e))}const Ok=Dp(fre),l_={token:Mf,override:{override:Mf},hashed:!0},Rk=A.createContext(l_);function cb(e){return e>=0&&e<=255}function M0(e,t){const{r,g:n,b:a,a:i}=new Rr(e).toRgb();if(i<1)return e;const{r:o,g:s,b:u}=new Rr(t).toRgb();for(let l=.01;l<=1;l+=.01){const h=Math.round((r-o*(1-l))/l),d=Math.round((n-s*(1-l))/l),g=Math.round((a-u*(1-l))/l);if(cb(h)&&cb(d)&&cb(g))return new Rr({r:h,g:d,b:g,a:Math.round(l*100)/100}).toRgbString()}return new Rr({r,g:n,b:a,a:1}).toRgbString()}var hre=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Xw(e){const{override:t}=e,r=hre(e,["override"]),n=Object.assign({},t);Object.keys(Mf).forEach(g=>{delete n[g]});const a=Object.assign(Object.assign({},r),n),i=480,o=576,s=768,u=992,l=1200,h=1600;if(a.motion===!1){const g="0s";a.motionDurationFast=g,a.motionDurationMid=g,a.motionDurationSlow=g}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:M0(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:M0(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:M0(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:M0(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:`
445
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
446
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
447
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
448
- `,boxShadowSecondary:`
449
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
450
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
451
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
452
- `,boxShadowTertiary:`
453
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
454
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
455
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
456
- `,screenXS:i,screenXSMin:i,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:h-1,screenXXL:h,screenXXLMin:h,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
457
- 0 1px 2px -2px ${new Rr("rgba(0, 0, 0, 0.16)").toRgbString()},
458
- 0 3px 6px 0 ${new Rr("rgba(0, 0, 0, 0.12)").toRgbString()},
459
- 0 5px 12px 4px ${new Rr("rgba(0, 0, 0, 0.09)").toRgbString()}
460
- `,boxShadowDrawerRight:`
461
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
462
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
463
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
464
- `,boxShadowDrawerLeft:`
465
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
466
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
467
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
468
- `,boxShadowDrawerUp:`
469
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
470
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
471
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
472
- `,boxShadowDrawerDown:`
473
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
474
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
475
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
476
- `,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)"}),n)}var N8=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Zw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Tk={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},pre={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Pk=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a}=t,i=N8(t,["override"]);let o=Object.assign(Object.assign({},n),{override:a});return o=Xw(o),i&&Object.entries(i).forEach(s=>{let[u,l]=s;const{theme:h}=l,d=N8(l,["theme"]);let g=d;h&&(g=Pk(Object.assign(Object.assign({},o),d),{override:d},h)),o[u]=g}),o};function bi(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=A.useContext(Rk),i=`${Zte}-${t||""}`,o=r||Ok,[s,u,l]=ak(o,[Mf,e],{salt:i,override:n,getComputedToken:Pk,formatToken:Xw,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Zw,ignore:Tk,preserve:pre}});return[o,l,t?u:"",s,a]}const mre=Dp(ue.theme.defaultAlgorithm),gre={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},kk=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:a,...i}=t;let o={...n,override:a};return o=Xw(o),i&&Object.entries(i).forEach(([s,u])=>{const{theme:l,...h}=u;let d=h;l&&(d=kk({...o,...h},{override:h},l)),o[s]=d}),o};function vre(){const{token:e,hashed:t,theme:r=mre,override:n,cssVar:a}=A.useContext(ue.theme._internalContext),[i,o,s]=ak(r,[ue.theme.defaultSeed,e],{salt:`${yQ}-${t||""}`,override:n,getComputedToken:kk,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:Zw,ignore:Tk,preserve:gre}});return[r,s,t?o:"",i,a]}const{genStyleHooks:dc}=xk({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=ho();return{iconPrefixCls:t,rootPrefixCls:e()}},useToken:()=>{const[e,t,r,n,a]=vre();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e}=ho();return e??{}},layer:{name:"antdx",dependencies:["antd"]}}),bre=e=>{const{componentCls:t,calc:r}=e,n=`${t}-list-card`,a=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[n]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${n}-name,${n}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${n}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${n}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:r(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:r(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${n}-icon`]:{fontSize:r(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:r(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${n}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${n}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:a,height:a,lineHeight:1,[`&:not(${n}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${n}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${n}-status-error`]:{[`img, ${n}-img-mask`]:{borderRadius:r(e.borderRadius).sub(e.lineWidth).equal()},[`${n}-desc`]:{paddingInline:e.paddingXXS}},[`${n}-progress`]:{}},[`${n}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${n}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${n}-desc`]:{color:e.colorError}},"&-motion":{transition:["opacity","width","margin","padding"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:r(e.paddingSM).mul(-1).equal()}}}}},c_={"&, *":{boxSizing:"border-box"}},yre=e=>{const{componentCls:t,calc:r,antCls:n}=e,a=`${t}-drop-area`,i=`${t}-placeholder`;return{[a]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...c_,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",background:e.colorBgPlaceholderHover,...c_,[`${n}-upload-wrapper ${n}-upload${n}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:r(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},_re=e=>{const{componentCls:t,calc:r}=e,n=`${t}-list`,a=r(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...c_,[n]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:r(a).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:a,height:a,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${n}-overflow-ping-start ${n}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${n}-overflow-ping-end ${n}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${n}-overflow-ping-end ${n}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${n}-overflow-ping-start ${n}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},wre=e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new Rr(t).setA(.85).toRgbString()}},$k=dc("Attachments",e=>{const t=Jr(e,{});return[yre(t),_re(t),bre(t)]},wre),xre=e=>e.indexOf("image/")===0,N0=200;function Sre(e){return new Promise(t=>{if(!e||!e.type||!xre(e.type)){t("");return}const r=new Image;if(r.onload=()=>{const{width:n,height:a}=r,i=n/a,o=i>1?N0:N0*i,s=i>1?N0/i:N0,u=document.createElement("canvas");u.width=o,u.height=s,u.style.cssText=`position: fixed; left: 0; top: 0; width: ${o}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(u),u.getContext("2d").drawImage(r,0,0,o,s);const h=u.toDataURL();document.body.removeChild(u),window.URL.revokeObjectURL(r.src),t(h)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const n=new FileReader;n.onload=()=>{n.result&&typeof n.result=="string"&&(r.src=n.result)},n.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}function Cre(){return A.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},A.createElement("title",null,"audio"),A.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},A.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})))}function Ere(e){const{percent:t}=e,{token:r}=ue.theme.useToken();return A.createElement(ue.Progress,{type:"circle",percent:t,size:r.fontSizeHeading2*2,strokeColor:"#FFF",trailColor:"rgba(255, 255, 255, 0.3)",format:n=>A.createElement("span",{style:{color:"#FFF"}},(n||0).toFixed(0),"%")})}function Ore(){return A.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},A.createElement("title",null,"video"),A.createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},A.createElement("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})))}const db=" ",d_="#8c8c8c",Ak=["png","jpg","jpeg","gif","bmp","webp","svg"],Rre=[{icon:A.createElement(kP,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:A.createElement($P,null),color:d_,ext:Ak},{icon:A.createElement(AP,null),color:d_,ext:["md","mdx"]},{icon:A.createElement(DP,null),color:"#ff4d4f",ext:["pdf"]},{icon:A.createElement(MP,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:A.createElement(IP,null),color:"#1677ff",ext:["doc","docx"]},{icon:A.createElement(FP,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:A.createElement(Ore,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:A.createElement(Cre,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function I8(e,t){return t.some(r=>e.toLowerCase()===`.${r}`)}function Tre(e){let t=e;const r=["B","KB","MB","GB","TB","PB","EB"];let n=0;for(;t>=1024&&n<r.length-1;)t/=1024,n++;return`${t.toFixed(0)} ${r[n]}`}function Pre(e,t){const{prefixCls:r,item:n,onRemove:a,className:i,style:o}=e,s=A.useContext(th),{disabled:u}=s||{},{name:l,size:h,percent:d,status:g="done",description:b}=n,{getPrefixCls:y}=ho(),w=y("attachment",r),S=`${w}-list-card`,[E,_,C]=$k(w),[f,p]=A.useMemo(()=>{const F=l||"",T=F.match(/^(.*)\.[^.]+$/);return T?[T[1],F.slice(T[1].length)]:[F,""]},[l]),v=A.useMemo(()=>I8(p,Ak),[p]),x=A.useMemo(()=>b||(g==="uploading"?`${d||0}%`:g==="error"?n.response||db:h?Tre(h):db),[g,d]),[k,O]=A.useMemo(()=>{for(const{ext:F,icon:T,color:M}of Rre)if(I8(p,F))return[T,M];return[A.createElement(NP,{key:"defaultIcon"}),d_]},[p]),[$,D]=A.useState();A.useEffect(()=>{if(n.originFileObj){let F=!0;return Sre(n.originFileObj).then(T=>{F&&D(T)}),()=>{F=!1}}D(void 0)},[n.originFileObj]);let V=null;const I=n.thumbUrl||n.url||$,N=v&&(n.originFileObj||I);return N?V=A.createElement(A.Fragment,null,A.createElement("img",{alt:"preview",src:I}),g!=="done"&&A.createElement("div",{className:`${S}-img-mask`},g==="uploading"&&d!==void 0&&A.createElement(Ere,{percent:d,prefixCls:S}),g==="error"&&A.createElement("div",{className:`${S}-desc`},A.createElement("div",{className:`${S}-ellipsis-prefix`},x)))):V=A.createElement(A.Fragment,null,A.createElement("div",{className:`${S}-icon`,style:{color:O}},k),A.createElement("div",{className:`${S}-content`},A.createElement("div",{className:`${S}-name`},A.createElement("div",{className:`${S}-ellipsis-prefix`},f??db),A.createElement("div",{className:`${S}-ellipsis-suffix`},p)),A.createElement("div",{className:`${S}-desc`},A.createElement("div",{className:`${S}-ellipsis-prefix`},x)))),E(A.createElement("div",{className:ge(S,{[`${S}-status-${g}`]:g,[`${S}-type-preview`]:N,[`${S}-type-overview`]:!N},i,_,C),style:o,ref:t},V,!u&&a&&A.createElement("button",{type:"button",className:`${S}-remove`,onClick:()=>{a(n)}},A.createElement(RP,null))))}const Dk=A.forwardRef(Pre),F8=1;function kre(e){const{prefixCls:t,items:r,onRemove:n,overflow:a,upload:i,listClassName:o,listStyle:s,itemClassName:u,itemStyle:l}=e,h=`${t}-list`,d=A.useRef(null),[g,b]=A.useState(!1),{disabled:y}=A.useContext(th);A.useEffect(()=>(b(!0),()=>{b(!1)}),[]);const[w,S]=A.useState(!1),[E,_]=A.useState(!1),C=()=>{const x=d.current;x&&(a==="scrollX"?(S(Math.abs(x.scrollLeft)>=F8),_(x.scrollWidth-x.clientWidth-Math.abs(x.scrollLeft)>=F8)):a==="scrollY"&&(S(x.scrollTop!==0),_(x.scrollHeight-x.clientHeight!==x.scrollTop)))};A.useEffect(()=>{C()},[a]);const f=x=>{const k=d.current;k&&k.scrollTo({left:k.scrollLeft+x*k.clientWidth,behavior:"smooth"})},p=()=>{f(-1)},v=()=>{f(1)};return A.createElement("div",{className:ge(h,{[`${h}-overflow-${e.overflow}`]:a,[`${h}-overflow-ping-start`]:w,[`${h}-overflow-ping-end`]:E},o),ref:d,onScroll:C,style:s},A.createElement(Nee,{keys:r.map(x=>({key:x.uid,item:x})),motionName:`${h}-card-motion`,component:!1,motionAppear:g,motionLeave:!0,motionEnter:!0},({key:x,item:k,className:O,style:$})=>A.createElement(Dk,{key:x,prefixCls:t,item:k,onRemove:n,className:ge(O,u),style:{...$,...l}})),!y&&A.createElement(ek,{upload:i},A.createElement(ue.Button,{className:`${h}-upload-btn`,type:"dashed"},A.createElement(LP,{className:`${h}-upload-btn-icon`}))),a==="scrollX"&&A.createElement(A.Fragment,null,A.createElement(ue.Button,{size:"small",shape:"circle",className:`${h}-prev-btn`,icon:A.createElement(jP,null),onClick:p}),A.createElement(ue.Button,{size:"small",shape:"circle",className:`${h}-next-btn`,icon:A.createElement(zP,null),onClick:v})))}function $re(e,t){const{prefixCls:r,placeholder:n={},upload:a,className:i,style:o}=e,s=`${r}-placeholder`,u=n||{},{disabled:l}=A.useContext(th),[h,d]=A.useState(!1),g=()=>{d(!0)},b=S=>{S.currentTarget.contains(S.relatedTarget)||d(!1)},y=()=>{d(!1)},w=A.isValidElement(n)?n:A.createElement(ue.Flex,{align:"center",justify:"center",vertical:!0,className:`${s}-inner`},A.createElement(ue.Typography.Text,{className:`${s}-icon`},u.icon),A.createElement(ue.Typography.Title,{className:`${s}-title`,level:5},u.title),A.createElement(ue.Typography.Text,{className:`${s}-description`,type:"secondary"},u.description));return A.createElement("div",{className:ge(s,{[`${s}-drag-in`]:h,[`${s}-disabled`]:l},i),onDragEnter:g,onDragLeave:b,onDrop:y,"aria-hidden":l,style:o},A.createElement(ue.Upload.Dragger,je({showUploadList:!1},a,{ref:t,style:{padding:0,border:0,background:"transparent"}}),w))}const Are=A.forwardRef($re);function Dre(e,t){const{prefixCls:r,rootClassName:n,rootStyle:a,className:i,style:o,items:s,children:u,getDropContainer:l,placeholder:h,onChange:d,overflow:g,disabled:b,classNames:y={},styles:w={},...S}=e,{getPrefixCls:E,direction:_}=ho(),C=E("attachment",r),f=sc("attachments"),{classNames:p,styles:v}=f,x=A.useRef(null),k=A.useRef(null);A.useImperativeHandle(t,()=>({nativeElement:x.current,upload:z=>{var G,X;const U=(X=(G=k.current)==null?void 0:G.nativeElement)==null?void 0:X.querySelector('input[type="file"]');if(U){const K=new DataTransfer;K.items.add(z),U.files=K.files,U.dispatchEvent(new Event("change",{bubbles:!0}))}}}));const[O,$,D]=$k(C),V=ge($,D),[I,N]=_n([],{value:s}),F=Xr(z=>{N(z.fileList),d==null||d(z)}),T={...S,fileList:I,onChange:F},M=z=>{const U=I.filter(G=>G.uid!==z.uid);F({file:z,fileList:U})};let j;const H=(z,U,G)=>{const X=typeof h=="function"?h(z):h;return A.createElement(Are,{placeholder:X,upload:T,prefixCls:C,className:ge(p.placeholder,y.placeholder),style:{...v.placeholder,...w.placeholder,...U==null?void 0:U.style},ref:G})};if(u)j=A.createElement(A.Fragment,null,A.createElement(ek,{upload:T,rootClassName:n,ref:k},u),A.createElement(n8,{getDropContainer:l,prefixCls:C,className:ge(V,n)},H("drop")));else{const z=I.length>0;j=A.createElement("div",{className:ge(C,V,{[`${C}-rtl`]:_==="rtl"},i,n),style:{...a,...o},dir:_||"ltr",ref:x},A.createElement(kre,{prefixCls:C,items:I,onRemove:M,overflow:g,upload:T,listClassName:ge(p.list,y.list),listStyle:{...v.list,...w.list,...!z&&{display:"none"}},itemClassName:ge(p.item,y.item),itemStyle:{...v.item,...w.item}}),H("inline",z?{style:{display:"none"}}:{},k),A.createElement(n8,{getDropContainer:l||(()=>x.current),prefixCls:C,className:V},H("drop")))}return O(A.createElement(th.Provider,{value:{disabled:b}},j))}const Jw=A.forwardRef(Dre);process.env.NODE_ENV!=="production"&&(Jw.displayName="Attachments");Jw.FileCard=Dk;var Mre=`accept acceptCharset accessKey action allowFullScreen allowTransparency
477
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
478
- charSet checked classID className colSpan cols content contentEditable contextMenu
479
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
480
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
481
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
482
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
483
- mediaGroup method min minLength multiple muted name noValidate nonce open
484
- optimum pattern placeholder poster preload radioGroup readOnly rel required
485
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
486
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
487
- summary tabIndex target title type useMap value width wmode wrap`,Nre=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
488
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
489
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
490
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
491
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
492
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
493
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ire="".concat(Mre," ").concat(Nre).split(/[\s\n]+/),Fre="aria-",jre="data-";function j8(e,t){return e.indexOf(t)===0}function po(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=Q({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||j8(a,Fre))||r.data&&j8(a,jre)||r.attr&&Ire.includes(a))&&(n[a]=e[a])}),n}function Lre(e,t){return A.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return new Proxy(n,{get(a,i){return r[i]?r[i]:Reflect.get(a,i)}})})}const Mk=P.createContext({}),L8=()=>({height:0}),z8=e=>({height:e.scrollHeight});function zre(e){const{title:t,onOpenChange:r,open:n,children:a,className:i,style:o,classNames:s={},styles:u={},closable:l,forceRender:h}=e,{prefixCls:d}=P.useContext(Mk),g=`${d}-header`;return P.createElement(lc,{motionEnter:!0,motionLeave:!0,motionName:`${g}-motion`,leavedClassName:`${g}-motion-hidden`,onEnterStart:L8,onEnterActive:z8,onLeaveStart:z8,onLeaveActive:L8,visible:n,forceRender:h},({className:b,style:y})=>P.createElement("div",{className:ge(g,b,i),style:{...y,...o}},(l!==!1||t)&&P.createElement("div",{className:ge(`${g}-header`,s.header),style:{...u.header}},P.createElement("div",{className:`${g}-title`},t),l!==!1&&P.createElement("div",{className:`${g}-close`},P.createElement(ue.Button,{type:"text",icon:P.createElement(TP,null),size:"small",onClick:()=>{r==null||r(!n)}}))),a&&P.createElement("div",{className:ge(`${g}-content`,s.content),style:{...u.content}},a)))}const Tm=P.createContext(null);function Bre(e,t){const{className:r,action:n,onClick:a,...i}=e,o=P.useContext(Tm),{prefixCls:s,disabled:u}=o,l=o[n],h=u??i.disabled??o[`${n}Disabled`];return P.createElement(ue.Button,je({type:"text"},i,{ref:t,onClick:d=>{h||(l&&l(),a&&a(d))},className:ge(s,r,{[`${s}-disabled`]:h})}))}const Pm=P.forwardRef(Bre);function Hre(e,t){return P.createElement(Pm,je({icon:P.createElement(OP,null)},e,{action:"onClear",ref:t}))}const Vre=P.forwardRef(Hre),Ure=A.memo(e=>{const{className:t}=e;return A.createElement("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:t},A.createElement("title",null,"Stop Loading"),A.createElement("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"}),A.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",opacity:"0.45"}),A.createElement("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor",strokeWidth:"100",strokeDasharray:"600 9999999"},A.createElement("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"})))});function qre(e,t){const{prefixCls:r}=P.useContext(Tm),{className:n}=e;return P.createElement(Pm,je({icon:null,color:"primary",variant:"text",shape:"circle"},e,{className:ge(n,`${r}-loading-button`),action:"onCancel",ref:t}),P.createElement(Ure,{className:`${r}-loading-icon`}))}const B8=P.forwardRef(qre);function Wre(e,t){return P.createElement(Pm,je({icon:P.createElement(SP,null),type:"primary",shape:"circle"},e,{action:"onSend",ref:t}))}const H8=P.forwardRef(Wre),Dd=1e3,Md=4,pp=140,V8=pp/2,I0=250,U8=500,F0=.8;function Yre({className:e}){return A.createElement("svg",{color:"currentColor",viewBox:`0 0 ${Dd} ${Dd}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:e},A.createElement("title",null,"Speech Recording"),Array.from({length:Md}).map((t,r)=>{const n=(Dd-pp*Md)/(Md-1),a=r*(n+pp),i=Dd/2-I0/2,o=Dd/2-U8/2;return A.createElement("rect",{fill:"currentColor",rx:V8,ry:V8,height:I0,width:pp,x:a,y:i,key:r},A.createElement("animate",{attributeName:"height",values:`${I0}; ${U8}; ${I0}`,keyTimes:"0; 0.5; 1",dur:`${F0}s`,begin:`${F0/Md*r}s`,repeatCount:"indefinite"}),A.createElement("animate",{attributeName:"y",values:`${i}; ${o}; ${i}`,keyTimes:"0; 0.5; 1",dur:`${F0}s`,begin:`${F0/Md*r}s`,repeatCount:"indefinite"}))}))}function Gre(e,t){const{speechRecording:r,onSpeechDisabled:n,prefixCls:a}=P.useContext(Tm);let i=null;return r?i=P.createElement(Yre,{className:`${a}-recording-icon`}):n?i=P.createElement(CP,null):i=P.createElement(EP,null),P.createElement(Pm,je({icon:i,color:"primary",variant:"text"},e,{action:"onSpeech",ref:t}))}const Kre=P.forwardRef(Gre),Xre=e=>{const{componentCls:t,calc:r}=e,n=`${t}-header`;return{[t]:{[n]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:r(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",[`${n}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},Zre=e=>{const{componentCls:t,padding:r,paddingSM:n,paddingXS:a,lineWidth:i,lineWidthBold:o,calc:s}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:s(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:o}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:a,width:"100%",paddingBlock:n,paddingInlineStart:r,paddingInlineEnd:n,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},Jre=()=>({}),Qre=dc("Sender",e=>{const{paddingXS:t,calc:r}=e,n=Jr(e,{SenderContentMaxWidth:`calc(100% - ${He(r(t).add(32).equal())})`});return[Zre(n),Xre(n)]},Jre);let Fp;!Fp&&typeof window<"u"&&(Fp=window.SpeechRecognition||window.webkitSpeechRecognition);function ene(e,t){const r=Xr(e),[n,a,i]=A.useMemo(()=>typeof t=="object"?[t.recording,t.onRecordingChange,typeof t.recording=="boolean"]:[void 0,void 0,!1],[t]),[o,s]=A.useState(null);A.useEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let w=null;return navigator.permissions.query({name:"microphone"}).then(S=>{s(S.state),S.onchange=function(){s(this.state)},w=S}),()=>{w&&(w.onchange=null)}}},[]);const u=Fp&&o!=="denied",l=A.useRef(null),[h,d]=_n(!1,{value:n}),g=A.useRef(!1),b=()=>{if(u&&!l.current){const w=new Fp;w.onstart=()=>{d(!0)},w.onend=()=>{d(!1)},w.onresult=S=>{var E,_,C;if(!g.current){const f=(C=(_=(E=S.results)==null?void 0:E[0])==null?void 0:_[0])==null?void 0:C.transcript;r(f)}g.current=!1},l.current=w}},y=Xr(w=>{w&&!h||(g.current=w,i?a==null||a(!h):(b(),l.current&&(h?(l.current.stop(),a==null||a(!1)):(l.current.start(),a==null||a(!0)))))});return[u,y,h]}function tne(e,t,r){return Ii(e,t)||r}const rne=A.forwardRef((e,t)=>{const{prefixCls:r,styles:n={},classNames:a={},className:i,rootClassName:o,style:s,defaultValue:u,value:l,readOnly:h,submitType:d="enter",onSubmit:g,loading:b,components:y,onCancel:w,onChange:S,actions:E,onKeyPress:_,onKeyDown:C,disabled:f,allowSpeech:p,prefix:v,header:x,onPaste:k,onPasteFile:O,...$}=e,{direction:D,getPrefixCls:V}=ho(),I=V("sender",r),N=A.useRef(null),F=A.useRef(null);Lre(t,()=>{var Ne,Ee;return{nativeElement:N.current,focus:(Ne=F.current)==null?void 0:Ne.focus,blur:(Ee=F.current)==null?void 0:Ee.blur}});const T=sc("sender"),M=`${I}-input`,[j,H,z]=Qre(I),U=ge(I,T.className,i,o,H,z,{[`${I}-rtl`]:D==="rtl",[`${I}-disabled`]:f}),G=`${I}-actions-btn`,X=`${I}-actions-list`,[K,ne]=_n(u||"",{value:l}),ae=(Ne,Ee)=>{ne(Ne),S&&S(Ne,Ee)},[ie,de,pe]=ene(Ne=>{ae(`${K} ${Ne}`)},p),be=tne(y,["input"],ue.Input.TextArea),ee={...po($,{attr:!0,aria:!0,data:!0}),ref:F},ve=()=>{K&&g&&!b&&g(K)},se=()=>{ae("")},fe=A.useRef(!1),he=()=>{fe.current=!0},ke=()=>{fe.current=!1},Te=Ne=>{const Ee=Ne.key==="Enter"&&!fe.current;switch(d){case"enter":Ee&&!Ne.shiftKey&&(Ne.preventDefault(),ve());break;case"shiftEnter":Ee&&Ne.shiftKey&&(Ne.preventDefault(),ve());break}_&&_(Ne)},xe=Ne=>{var Fe;const Ee=(Fe=Ne.clipboardData)==null?void 0:Fe.files[0];Ee&&O&&(O(Ee),Ne.preventDefault()),k==null||k(Ne)},$e=Ne=>{var Ee,Fe;Ne.target!==((Ee=N.current)==null?void 0:Ee.querySelector(`.${M}`))&&Ne.preventDefault(),(Fe=F.current)==null||Fe.focus()};let Pe=A.createElement(ue.Flex,{className:`${X}-presets`},p&&A.createElement(Kre,null),b?A.createElement(B8,null):A.createElement(H8,null));return typeof E=="function"?Pe=E(Pe,{components:{SendButton:H8,ClearButton:Vre,LoadingButton:B8}}):E&&(Pe=E),j(A.createElement("div",{ref:N,className:U,style:{...T.style,...s}},x&&A.createElement(Mk.Provider,{value:{prefixCls:I}},x),A.createElement("div",{className:`${I}-content`,onMouseDown:$e},v&&A.createElement("div",{className:ge(`${I}-prefix`,T.classNames.prefix,a.prefix),style:{...T.styles.prefix,...n.prefix}},v),A.createElement(be,je({},ee,{disabled:f,style:{...T.styles.input,...n.input},className:ge(M,T.classNames.input,a.input),autoSize:{maxRows:8},value:K,onChange:Ne=>{ae(Ne.target.value,Ne),de(!0)},onPressEnter:Te,onCompositionStart:he,onCompositionEnd:ke,onKeyDown:C,onPaste:xe,variant:"borderless",readOnly:h})),A.createElement("div",{className:ge(X,T.classNames.actions,a.actions),style:{...T.styles.actions,...n.actions}},A.createElement(Tm.Provider,{value:{prefixCls:G,onSend:ve,onSendDisabled:!K,onClear:se,onClearDisabled:!K,onCancel:w,onCancelDisabled:!b,onSpeech:()=>de(!1),onSpeechDisabled:!ie,speechRecording:pe,disabled:f}},Pe)))))}),jp=rne;process.env.NODE_ENV!=="production"&&(jp.displayName="Sender");jp.Header=zre;function j0(e){return typeof e=="string"}const nne=(e,t,r,n)=>{const[a,i]=P.useState(""),[o,s]=P.useState(1),u=t&&j0(e);return fr(()=>{i(e),!u&&j0(e)?s(e.length):j0(e)&&j0(a)&&e.indexOf(a)!==0&&s(1)},[e]),P.useEffect(()=>{if(u&&o<e.length){const h=setTimeout(()=>{s(d=>d+r)},n);return()=>{clearTimeout(h)}}},[o,t,e]),[u?e.slice(0,o):e,u&&o<e.length]};function ane(e){return P.useMemo(()=>{if(!e)return[!1,0,0,null];let t={step:1,interval:50,suffix:null};return typeof e=="object"&&(t={...t,...e}),[!0,t.step,t.interval,t.suffix]},[e])}const ine=({prefixCls:e})=>A.createElement("span",{className:`${e}-dot`},A.createElement("i",{className:`${e}-dot-item`,key:"item-1"}),A.createElement("i",{className:`${e}-dot-item`,key:"item-2"}),A.createElement("i",{className:`${e}-dot-item`,key:"item-3"})),one=e=>{const{componentCls:t,paddingSM:r,padding:n}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${He(r)} ${He(n)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},sne=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,padding:i,calc:o}=e,s=o(r).mul(n).div(2).add(a).equal(),u=`${t}-content`;return{[t]:{[u]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:o(i).mul(1.25).equal()}},[`&-start ${u}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${u}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},une=e=>{const{componentCls:t,padding:r}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:r,overflowY:"auto"}}},lne=new Tr("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),cne=new Tr("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),dne=e=>{const{componentCls:t,fontSize:r,lineHeight:n,paddingSM:a,colorText:i,calc:o}=e;return{[t]:{display:"flex",columnGap:a,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:cne,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:r,lineHeight:n,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:a},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:o(a).mul(2).add(o(n).mul(r)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${He(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:lne,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},fne=()=>({}),Nk=dc("Bubble",e=>{const t=Jr(e,{});return[dne(t),une(t),one(t),sne(t)]},fne),Ik=A.createContext({}),hne=(e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:i,classNames:o={},styles:s={},avatar:u,placement:l="start",loading:h=!1,loadingRender:d,typing:g,content:b="",messageRender:y,variant:w="filled",shape:S,onTypingComplete:E,header:_,footer:C,...f}=e,{onUpdate:p}=A.useContext(Ik),v=A.useRef(null);A.useImperativeHandle(t,()=>({nativeElement:v.current}));const{direction:x,getPrefixCls:k}=ho(),O=k("bubble",r),$=sc("bubble"),[D,V,I,N]=ane(g),[F,T]=nne(b,D,V,I);A.useEffect(()=>{p==null||p()},[F]);const M=A.useRef(!1);A.useEffect(()=>{!T&&!h?M.current||(M.current=!0,E==null||E()):M.current=!1},[T,h]);const[j,H,z]=Nk(O),U=ge(O,a,$.className,n,H,z,`${O}-${l}`,{[`${O}-rtl`]:x==="rtl",[`${O}-typing`]:T&&!h&&!y&&!N}),G=A.isValidElement(u)?u:A.createElement(ue.Avatar,u),X=y?y(F):F;let K;h?K=d?d():A.createElement(ine,{prefixCls:O}):K=A.createElement(A.Fragment,null,X,T&&N);let ne=A.createElement("div",{style:{...$.styles.content,...s.content},className:ge(`${O}-content`,`${O}-content-${w}`,S&&`${O}-content-${S}`,$.classNames.content,o.content)},K);return(_||C)&&(ne=A.createElement("div",{className:`${O}-content-wrapper`},_&&A.createElement("div",{className:ge(`${O}-header`,$.classNames.header,o.header),style:{...$.styles.header,...s.header}},_),ne,C&&A.createElement("div",{className:ge(`${O}-footer`,$.classNames.footer,o.footer),style:{...$.styles.footer,...s.footer}},C))),j(A.createElement("div",je({style:{...$.style,...i},className:U},f,{ref:v}),u&&A.createElement("div",{style:{...$.styles.avatar,...s.avatar},className:ge(`${O}-avatar`,$.classNames.avatar,o.avatar)},G),ne))},km=A.forwardRef(hne);process.env.NODE_ENV!=="production"&&(km.displayName="Bubble");function pne(e){const[t,r]=A.useState(e.length),n=A.useMemo(()=>e.slice(0,t),[e,t]),a=A.useMemo(()=>{const o=n[n.length-1];return o?o.key:null},[n]);A.useEffect(()=>{var o;if(!(n.length&&n.every((s,u)=>{var l;return s.key===((l=e[u])==null?void 0:l.key)}))){if(n.length===0)r(1);else for(let s=0;s<n.length;s+=1)if(n[s].key!==((o=e[s])==null?void 0:o.key)){r(s);break}}},[e]);const i=Xr(o=>{o===a&&r(t+1)});return[n,i]}function mne(e,t){const r=P.useCallback(n=>typeof t=="function"?t(n):t?t[n.role]||{}:{},[t]);return P.useMemo(()=>(e||[]).map((n,a)=>{const i=n.key??`preset_${a}`;return{...r(n),...n,key:i}}),[e,r])}const gne=1,vne=(e,t)=>{const{prefixCls:r,rootClassName:n,className:a,items:i,autoScroll:o=!0,roles:s,...u}=e,l=po(u,{attr:!0,aria:!0}),h=P.useRef(null),d=P.useRef({}),{getPrefixCls:g}=ho(),b=g("bubble",r),y=`${b}-list`,[w,S,E]=Nk(b),[_,C]=P.useState(!1);P.useEffect(()=>(C(!0),()=>{C(!1)}),[]);const f=mne(i,s),[p,v]=pne(f),[x,k]=P.useState(!0),[O,$]=P.useState(0),D=N=>{const F=N.target;k(F.scrollHeight-Math.abs(F.scrollTop)-F.clientHeight<=gne)};P.useEffect(()=>{o&&h.current&&x&&h.current.scrollTo({top:h.current.scrollHeight})},[O]),P.useEffect(()=>{var N;if(o){const F=(N=p[p.length-2])==null?void 0:N.key,T=d.current[F];if(T){const{nativeElement:M}=T,{top:j,bottom:H}=M.getBoundingClientRect(),{top:z,bottom:U}=h.current.getBoundingClientRect();j<U&&H>z&&($(X=>X+1),k(!0))}}},[p.length]),P.useImperativeHandle(t,()=>({nativeElement:h.current,scrollTo:({key:N,offset:F,behavior:T="smooth",block:M})=>{if(typeof F=="number")h.current.scrollTo({top:F,behavior:T});else if(N!==void 0){const j=d.current[N];if(j){const H=p.findIndex(z=>z.key===N);k(H===p.length-1),j.nativeElement.scrollIntoView({behavior:T,block:M})}}}}));const V=Xr(()=>{o&&$(N=>N+1)}),I=P.useMemo(()=>({onUpdate:V}),[]);return w(P.createElement(Ik.Provider,{value:I},P.createElement("div",je({},l,{className:ge(y,n,a,S,E,{[`${y}-reach-end`]:x}),ref:h,onScroll:D}),p.map(({key:N,...F})=>P.createElement(km,je({},F,{key:N,ref:T=>{T?d.current[N]=T:delete d.current[N]},typing:_?F.typing:!1,onTypingComplete:()=>{var T;(T=F.onTypingComplete)==null||T.call(F),v(N)}}))))))},Fk=P.forwardRef(vne);process.env.NODE_ENV!=="production"&&(Fk.displayName="BubbleList");km.List=Fk;const jk=A.createContext(null),q8=({children:e})=>{const{prefixCls:t}=A.useContext(jk);return A.createElement("div",{className:ge(`${t}-group-title`)},e&&A.createElement(ue.Typography.Text,null,e))},bne=e=>{e.stopPropagation()},yne=e=>{const{prefixCls:t,info:r,className:n,direction:a,onClick:i,active:o,menu:s,...u}=e,l=po(u,{aria:!0,data:!0,attr:!0}),{disabled:h}=r,[d,g]=A.useState(!1),[b,y]=A.useState(!1),w=ge(n,`${t}-item`,{[`${t}-item-active`]:o&&!h},{[`${t}-item-disabled`]:h}),S=()=>{!h&&i&&i(r)},E=_=>{_&&y(!_)};return A.createElement(ue.Tooltip,{title:r.label,open:d&&b,onOpenChange:y,placement:a==="rtl"?"left":"right"},A.createElement("li",je({},l,{className:w,onClick:S}),r.icon&&A.createElement("div",{className:`${t}-icon`},r.icon),A.createElement(ue.Typography.Text,{className:`${t}-label`,ellipsis:{onEllipsis:g}},r.label),s&&!h&&A.createElement(ue.Dropdown,{menu:s,placement:a==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:h,onOpenChange:E},A.createElement(PP,{onClick:bne,disabled:h,className:`${t}-menu-icon`}))))},fb="__ungrouped",_ne=(e,t=[])=>{const[r,n,a]=A.useMemo(()=>{if(!e)return[!1,void 0,void 0];let i={sort:void 0,title:void 0};return typeof e=="object"&&(i={...i,...e}),[!0,i.sort,i.title]},[e]);return A.useMemo(()=>{if(!r)return[[{name:fb,data:t,title:void 0}],r];const i=t.reduce((u,l)=>{const h=l.group||fb;return u[h]||(u[h]=[]),u[h].push(l),u},{});return[(n?Object.keys(i).sort(n):Object.keys(i)).map(u=>({name:u===fb?void 0:u,title:a,data:i[u]})),r]},[t,e])},wne=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${He(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${He(e.paddingXS)}`}}}},xne=()=>({}),Sne=dc("Conversations",e=>{const t=Jr(e,{});return wne(t)},xne),Lk=e=>{const{prefixCls:t,rootClassName:r,items:n,activeKey:a,defaultActiveKey:i,onActiveChange:o,menu:s,styles:u={},classNames:l={},groupable:h,className:d,style:g,...b}=e,y=po(b,{attr:!0,aria:!0,data:!0}),[w,S]=_n(i,{value:a}),[E,_]=_ne(h,n),{getPrefixCls:C,direction:f}=ho(),p=C("conversations",t),v=sc("conversations"),[x,k,O]=Sne(p),$=ge(p,v.className,d,r,k,O,{[`${p}-rtl`]:f==="rtl"}),D=V=>{S(V.key),o&&o(V.key)};return x(A.createElement("ul",je({},y,{style:{...v.style,...g},className:$}),E.map((V,I)=>{var F;const N=V.data.map((T,M)=>A.createElement(yne,{key:T.key||`key-${M}`,info:T,prefixCls:p,direction:f,className:ge(l.item,v.classNames.item),style:{...v.styles.item,...u.item},menu:typeof s=="function"?s(T):s,active:w===T.key,onClick:D}));return _?A.createElement("li",{key:V.name||`key-${I}`},A.createElement(jk.Provider,{value:{prefixCls:p}},((F=V.title)==null?void 0:F.call(V,V.name,{components:{GroupTitle:q8}}))||A.createElement(q8,{key:V.name},V.name)),A.createElement("ul",{className:`${p}-list`},N)):N})))};process.env.NODE_ENV!=="production"&&(Lk.displayName="Conversations");const Cne=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(r=>`${r} ${e.motionDurationSlow}`).join(","),border:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},Ene=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},One=()=>({}),Rne=dc("Prompts",e=>{const t=Jr(e,{});return[Cne(t),Ene(t)]},One),$m=e=>{const{prefixCls:t,title:r,className:n,items:a,onItemClick:i,vertical:o,wrap:s,rootClassName:u,styles:l={},classNames:h={},style:d,...g}=e,{getPrefixCls:b,direction:y}=ho(),w=b("prompts",t),S=sc("prompts"),[E,_,C]=Rne(w),f=ge(w,S.className,n,u,_,C,{[`${w}-rtl`]:y==="rtl"}),p=ge(`${w}-list`,S.classNames.list,h.list,{[`${w}-list-wrap`]:s},{[`${w}-list-vertical`]:o});return E(A.createElement("div",je({},g,{className:f,style:{...d,...S.style}}),r&&A.createElement(ue.Typography.Title,{level:5,className:ge(`${w}-title`,S.classNames.title,h.title),style:{...S.styles.title,...l.title}},r),A.createElement("div",{className:p,style:{...S.styles.list,...l.list}},a==null?void 0:a.map((v,x)=>{const k=v.children&&v.children.length>0;return A.createElement("div",{key:v.key||`key_${x}`,style:{...S.styles.item,...l.item},className:ge(`${w}-item`,S.classNames.item,h.item,{[`${w}-item-disabled`]:v.disabled,[`${w}-item-has-nest`]:k}),onClick:()=>{!k&&i&&i({data:v})}},v.icon&&A.createElement("div",{className:`${w}-icon`},v.icon),A.createElement("div",{className:ge(`${w}-content`,S.classNames.itemContent,h.itemContent),style:{...S.styles.itemContent,...l.itemContent}},v.label&&A.createElement("h6",{className:`${w}-label`},v.label),v.description&&A.createElement("p",{className:`${w}-desc`},v.description),k&&A.createElement($m,{className:`${w}-nested`,items:v.children,vertical:!0,onItemClick:i,classNames:{list:h.subList,item:h.subItem},styles:{list:l.subList,item:l.subItem}})))}))))};process.env.NODE_ENV!=="production"&&($m.displayName="Prompts");const Tne=e=>({animationDuration:e,animationFillMode:"both"}),Pne=e=>({animationDuration:e,animationFillMode:"both"}),Qw=function(e,t,r,n){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
494
- ${i}${e}-enter,
495
- ${i}${e}-appear
496
- `]:Object.assign(Object.assign({},Tne(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Pne(n)),{animationPlayState:"paused"}),[`
497
- ${i}${e}-enter${e}-enter-active,
498
- ${i}${e}-appear${e}-appear-active
499
- `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},kne=new Tr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),$ne=new Tr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Ane=new Tr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Dne=new Tr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Mne=new Tr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Nne=new Tr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ine=new Tr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fne=new Tr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),jne={"move-up":{inKeyframes:Ine,outKeyframes:Fne},"move-down":{inKeyframes:kne,outKeyframes:$ne},"move-left":{inKeyframes:Ane,outKeyframes:Dne},"move-right":{inKeyframes:Mne,outKeyframes:Nne}},W8=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=jne[t];return[Qw(n,a,i,e.motionDurationMid),{[`
500
- ${n}-enter,
501
- ${n}-appear
502
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},zk=new Tr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Bk=new Tr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hk=new Tr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Vk=new Tr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Lne=new Tr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),zne=new Tr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Bne=new Tr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Hne=new Tr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Vne={"slide-up":{inKeyframes:zk,outKeyframes:Bk},"slide-down":{inKeyframes:Hk,outKeyframes:Vk},"slide-left":{inKeyframes:Lne,outKeyframes:zne},"slide-right":{inKeyframes:Bne,outKeyframes:Hne}},Y8=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=Vne[t];return[Qw(n,a,i,e.motionDurationMid),{[`
503
- ${n}-enter,
504
- ${n}-appear
505
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Une=new Tr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qne=new Tr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),G8=new Tr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),K8=new Tr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Wne=new Tr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Yne=new Tr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Gne=new Tr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Kne=new Tr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Xne=new Tr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Zne=new Tr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Jne=new Tr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Qne=new Tr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),eae={zoom:{inKeyframes:Une,outKeyframes:qne},"zoom-big":{inKeyframes:G8,outKeyframes:K8},"zoom-big-fast":{inKeyframes:G8,outKeyframes:K8},"zoom-left":{inKeyframes:Gne,outKeyframes:Kne},"zoom-right":{inKeyframes:Xne,outKeyframes:Zne},"zoom-up":{inKeyframes:Wne,outKeyframes:Yne},"zoom-down":{inKeyframes:Jne,outKeyframes:Qne}},tae=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=eae[t];return[Qw(n,a,i,e.motionDurationFast),{[`
506
- ${n}-enter,
507
- ${n}-appear
508
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},rae=e=>{const{componentCls:t,calc:r}=e,n=r(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),a=r(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:r(n).add(a).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},nae=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},aae=()=>({}),iae=dc("Welcome",e=>{const t=Jr(e,{});return[rae(t),nae(t)]},aae);function oae(e,t){const{prefixCls:r,rootClassName:n,className:a,style:i,variant:o="filled",classNames:s={},styles:u={},icon:l,title:h,description:d,extra:g}=e,{direction:b,getPrefixCls:y}=ho(),w=y("welcome",r),S=sc("welcome"),[E,_,C]=iae(w),f=A.useMemo(()=>{if(!l)return null;let x=l;return typeof l=="string"&&l.startsWith("http")&&(x=A.createElement("img",{src:l,alt:"icon"})),A.createElement("div",{className:ge(`${w}-icon`,S.classNames.icon,s.icon),style:u.icon},x)},[l]),p=A.useMemo(()=>h?A.createElement(ue.Typography.Title,{level:4,className:ge(`${w}-title`,S.classNames.title,s.title),style:u.title},h):null,[h]),v=A.useMemo(()=>g?A.createElement("div",{className:ge(`${w}-extra`,S.classNames.extra,s.extra),style:u.extra},g):null,[g]);return E(A.createElement(ue.Flex,{ref:t,className:ge(w,S.className,a,n,_,C,`${w}-${o}`,{[`${w}-rtl`]:b==="rtl"}),style:i},f,A.createElement(ue.Flex,{vertical:!0,className:`${w}-content-wrapper`},g?A.createElement(ue.Flex,{align:"flex-start",className:`${w}-title-wrapper`},p,v):p,d&&A.createElement(ue.Typography.Text,{className:ge(`${w}-description`,S.classNames.description,s.description),style:u.description},d))))}const Uk=A.forwardRef(oae);process.env.NODE_ENV!=="production"&&(Uk.displayName="Welcome");function sae(e){const[,t]=A.useState(0),r=A.useRef(typeof e=="function"?e():e),n=A.useCallback(i=>{r.current=typeof i=="function"?i(r.current):i,t(o=>o+1)},[]),a=A.useCallback(()=>r.current,[]);return[r.current,n,a]}function uae(e){return Array.isArray(e)?e:[e]}function lae(e){const{defaultMessages:t,agent:r,requestFallback:n,requestPlaceholder:a,parser:i}=e,o=A.useRef(0),[s,u,l]=sae(()=>(t||[]).map((w,S)=>({id:`default_${S}`,status:"local",...w}))),h=(w,S)=>{const E={id:`msg_${o.current}`,message:w,status:S};return o.current+=1,E},d=A.useMemo(()=>{const w=[];return s.forEach(S=>{const E=i?i(S.message):S.message,_=uae(E);_.forEach((C,f)=>{let p=S.id;_.length>1&&(p=`${p}_${f}`),w.push({id:p,message:C,status:S.status})})}),w},[s]),g=w=>w.filter(S=>S.status!=="loading"&&S.status!=="error").map(S=>S.message),b=()=>g(l());return{onRequest:Xr(w=>{if(!r)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let S=null;u(C=>{let f=[...C,h(w,"local")];if(a){let p;typeof a=="function"?p=a(w,{messages:g(f)}):p=a;const v=h(p,"loading");S=v.id,f=[...f,v]}return f});let E=null;const _=(C,f)=>{let p=l().find(v=>v.id===E);return p?u(v=>v.map(x=>x.id===E?{...x,message:C,status:f}:x)):(p=h(C,f),u(v=>[...v.filter(k=>k.id!==S),p]),E=p.id),p};r.request({message:w,messages:b()},{onUpdate:C=>{_(C,"loading")},onSuccess:C=>{_(C,"success")},onError:async C=>{if(n){let f;typeof n=="function"?f=await n(w,{error:C,messages:b()}):f=n,u(p=>[...p.filter(v=>v.id!==S&&v.id!==E),h(f,"error")])}else u(f=>f.filter(p=>p.id!==S&&p.id!==E))}})}),messages:s,parsedMessages:d,setMessages:u}}const cae=`
509
-
510
- `,dae=`
511
- `,X8=":",f_=e=>(e??"").trim()!=="";function fae(){let e="";return new TransformStream({transform(t,r){e+=t;const n=e.split(cae);n.slice(0,-1).forEach(a=>{f_(a)&&r.enqueue(a)}),e=n[n.length-1]},flush(t){f_(e)&&t.enqueue(e)}})}function hae(){return new TransformStream({transform(e,t){const n=e.split(dae).reduce((a,i)=>{const o=i.indexOf(X8);if(o===-1)throw new Error(`The key-value separator "${X8}" is not found in the sse line chunk!`);const s=i.slice(0,o);if(!f_(s))return a;const u=i.slice(o+1);return{...a,[s]:u}},{});Object.keys(n).length!==0&&t.enqueue(n)}})}function Z8(e){const{readableStream:t,transformStream:r}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const n=new TextDecoderStream,a=r?t.pipeThrough(n).pipeThrough(r):t.pipeThrough(n).pipeThrough(fae()).pipeThrough(hae());return a[Symbol.asyncIterator]=async function*(){const i=this.getReader();for(;;){const{done:o,value:s}=await i.read();if(o)break;s&&(yield s)}},a}const pae=async(e,t={})=>{const{fetch:r=globalThis.fetch,middlewares:n={},...a}=t;if(typeof r!="function")throw new Error("The options.fetch must be a typeof fetch function!");let i=[e,a];typeof n.onRequest=="function"&&(i=await n.onRequest(...i));let o=await r(...i);if(typeof n.onResponse=="function"){const s=await n.onResponse(o);if(!(s instanceof Response))throw new Error("The options.onResponse must return a Response instance!");o=s}if(!o.ok)throw new Error(`Fetch failed with status ${o.status}`);if(!o.body)throw new Error("The response body is empty.");return o},mu=class mu{constructor(t){Dr(this,"baseURL");Dr(this,"model");Dr(this,"defaultHeaders");Dr(this,"customOptions");Dr(this,"create",async(t,r,n)=>{var i;const a={method:"POST",body:JSON.stringify({model:this.model,...t}),headers:this.defaultHeaders};try{const o=await pae(this.baseURL,{fetch:this.customOptions.fetch,...a});if(n){await this.customResponseHandler(o,r,n);return}const s=o.headers.get("content-type")||"";switch(s.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(o,r);break;case"application/json":await this.jsonResponseHandler(o,r);break;default:throw new Error(`The response content-type: ${s} is not support!`)}}catch(o){const s=o instanceof Error?o:new Error("Unknown error!");throw(i=r==null?void 0:r.onError)==null||i.call(r,s),s}});Dr(this,"customResponseHandler",async(t,r,n)=>{var i,o;const a=[];for await(const s of Z8({readableStream:t.body,transformStream:n}))a.push(s),(i=r==null?void 0:r.onUpdate)==null||i.call(r,s);(o=r==null?void 0:r.onSuccess)==null||o.call(r,a)});Dr(this,"sseResponseHandler",async(t,r)=>{var a,i;const n=[];for await(const o of Z8({readableStream:t.body}))n.push(o),(a=r==null?void 0:r.onUpdate)==null||a.call(r,o);(i=r==null?void 0:r.onSuccess)==null||i.call(r,n)});Dr(this,"jsonResponseHandler",async(t,r)=>{var a,i;const n=await t.json();(a=r==null?void 0:r.onUpdate)==null||a.call(r,n),(i=r==null?void 0:r.onSuccess)==null||i.call(r,[n])});const{baseURL:r,model:n,dangerouslyApiKey:a,...i}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=i}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");const r=t.fetch||t.baseURL;return mu.instanceBuffer.has(r)||mu.instanceBuffer.set(r,new mu(t)),mu.instanceBuffer.get(r)}};Dr(mu,"instanceBuffer",new Map);let h_=mu;const mae=h_.init;let J8=0;class gae{constructor(t){Dr(this,"config");Dr(this,"requestingMap",{});Dr(this,"request",(t,r)=>{const{request:n}=this.config,{onUpdate:a,onSuccess:i,onError:o}=r,s=J8;J8+=1,this.requestingMap[s]=!0,n==null||n(t,{onUpdate:u=>{this.requestingMap[s]&&a(u)},onSuccess:u=>{this.requestingMap[s]&&(i(u),this.finishRequest(s))},onError:u=>{this.requestingMap[s]&&(o(u),this.finishRequest(s))}})});this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function vae(e){const{request:t,...r}=e;return A.useMemo(()=>[new gae({request:t||mae({baseURL:r.baseURL,model:r.model,dangerouslyApiKey:r.dangerouslyApiKey}).create,...r})],[])}const bae="_layout_1c061_1",yae="_top_header_1c061_13",_ae="_person_1c061_22",wae="_menu_1c061_35",xae="_conversations_1c061_42",Sae="_chat_1c061_47",Cae="_messages_1c061_64",Eae="_placeholder_1c061_67",Oae="_sender_1c061_72",Rae="_logo_1c061_75",Tae="_addBtn_1c061_95",Oi={layout:bae,top_header:yae,person:_ae,menu:wae,conversations:xae,chat:Sae,messages:Cae,placeholder:Eae,sender:Oae,logo:Rae,addBtn:Tae},p_="RFC3986",m_={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:e=>String(e)},Pae="RFC1738",kae=Array.isArray,Qi=(()=>{const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),hb=1024,$ae=(e,t,r,n,a)=>{if(e.length===0)return e;let i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),r==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(s){return"%26%23"+parseInt(s.slice(2),16)+"%3B"});let o="";for(let s=0;s<i.length;s+=hb){const u=i.length>=hb?i.slice(s,s+hb):i,l=[];for(let h=0;h<u.length;++h){let d=u.charCodeAt(h);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===Pae&&(d===40||d===41)){l[l.length]=u.charAt(h);continue}if(d<128){l[l.length]=Qi[d];continue}if(d<2048){l[l.length]=Qi[192|d>>6]+Qi[128|d&63];continue}if(d<55296||d>=57344){l[l.length]=Qi[224|d>>12]+Qi[128|d>>6&63]+Qi[128|d&63];continue}h+=1,d=65536+((d&1023)<<10|u.charCodeAt(h)&1023),l[l.length]=Qi[240|d>>18]+Qi[128|d>>12&63]+Qi[128|d>>6&63]+Qi[128|d&63]}o+=l.join("")}return o};function Aae(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function Q8(e,t){if(kae(e)){const r=[];for(let n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)}const Dae=Object.prototype.hasOwnProperty,qk={brackets(e){return String(e)+"[]"},comma:"comma",indices(e,t){return String(e)+"["+t+"]"},repeat(e){return String(e)}},to=Array.isArray,Mae=Array.prototype.push,Wk=function(e,t){Mae.apply(e,to(t)?t:[t])},Nae=Date.prototype.toISOString,bn={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:$ae,encodeValuesOnly:!1,format:p_,formatter:m_[p_],indices:!1,serializeDate(e){return Nae.call(e)},skipNulls:!1,strictNullHandling:!1};function Iae(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"}const pb={};function Yk(e,t,r,n,a,i,o,s,u,l,h,d,g,b,y,w,S,E){let _=e,C=E,f=0,p=!1;for(;(C=C.get(pb))!==void 0&&!p;){const $=C.get(e);if(f+=1,typeof $<"u"){if($===f)throw new RangeError("Cyclic object value");p=!0}typeof C.get(pb)>"u"&&(f=0)}if(typeof l=="function"?_=l(t,_):_ instanceof Date?_=g==null?void 0:g(_):r==="comma"&&to(_)&&(_=Q8(_,function($){return $ instanceof Date?g==null?void 0:g($):$})),_===null){if(i)return u&&!w?u(t,bn.encoder,S,"key",b):t;_=""}if(Iae(_)||Aae(_)){if(u){const $=w?t:u(t,bn.encoder,S,"key",b);return[(y==null?void 0:y($))+"="+(y==null?void 0:y(u(_,bn.encoder,S,"value",b)))]}return[(y==null?void 0:y(t))+"="+(y==null?void 0:y(String(_)))]}const v=[];if(typeof _>"u")return v;let x;if(r==="comma"&&to(_))w&&u&&(_=Q8(_,u)),x=[{value:_.length>0?_.join(",")||null:void 0}];else if(to(l))x=l;else{const $=Object.keys(_);x=h?$.sort(h):$}const k=s?String(t).replace(/\./g,"%2E"):String(t),O=n&&to(_)&&_.length===1?k+"[]":k;if(a&&to(_)&&_.length===0)return O+"[]";for(let $=0;$<x.length;++$){const D=x[$],V=typeof D=="object"&&typeof D.value<"u"?D.value:_[D];if(o&&V===null)continue;const I=d&&s?D.replace(/\./g,"%2E"):D,N=to(_)?typeof r=="function"?r(O,I):O:O+(d?"."+I:"["+I+"]");E.set(e,f);const F=new WeakMap;F.set(pb,E),Wk(v,Yk(V,N,r,n,a,i,o,s,r==="comma"&&w&&to(_)?null:u,l,h,d,g,b,y,w,S,F))}return v}function Fae(e=bn){if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");const t=e.charset||bn.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let r=p_;if(typeof e.format<"u"){if(!Dae.call(m_,e.format))throw new TypeError("Unknown format option provided.");r=e.format}const n=m_[r];let a=bn.filter;(typeof e.filter=="function"||to(e.filter))&&(a=e.filter);let i;if(e.arrayFormat&&e.arrayFormat in qk?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=bn.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const o=typeof e.allowDots>"u"?e.encodeDotInKeys?!0:bn.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:bn.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:bn.allowEmptyArrays,arrayFormat:i,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:bn.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?bn.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:bn.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:bn.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:bn.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:bn.encodeValuesOnly,filter:a,format:r,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:bn.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:bn.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:bn.strictNullHandling}}function jae(e,t={}){let r=e;const n=Fae(t);let a,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):to(n.filter)&&(i=n.filter,a=i);const o=[];if(typeof r!="object"||r===null)return"";const s=qk[n.arrayFormat],u=s==="comma"&&n.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);const l=new WeakMap;for(let g=0;g<a.length;++g){const b=a[g];n.skipNulls&&r[b]===null||Wk(o,Yk(r[b],b,s,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}const h=o.join(n.delimiter);let d=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),h.length>0?d+h:""}const yl="4.85.4";let e4=!1,uf,Gk,Kk,g_,Xk,Zk,Jk,Qk,e$;function Lae(e,t={auto:!1}){if(e4)throw new Error(`you must \`import 'openai/shims/${e.kind}'\` before importing anything else from openai`);if(uf)throw new Error(`can't \`import 'openai/shims/${e.kind}'\` after \`import 'openai/shims/${uf}'\``);e4=t.auto,uf=e.kind,Gk=e.fetch,Kk=e.FormData,g_=e.File,Xk=e.ReadableStream,Zk=e.getMultipartRequestOptions,Jk=e.getDefaultAgent,Qk=e.fileFromPath,e$=e.isFsReadStream}class zae{constructor(t){this.body=t}get[Symbol.toStringTag](){return"MultipartBody"}}function Bae({manuallyImported:e}={}){const t=e?"You may need to use polyfills":"Add one of these imports before your first `import … from 'openai'`:\n- `import 'openai/shims/node'` (if you're running on Node)\n- `import 'openai/shims/web'` (otherwise)\n";let r,n,a,i;try{r=fetch,n=Request,a=Response,i=Headers}catch(o){throw new Error(`this environment is missing the following Web Fetch API type: ${o.message}. ${t}`)}return{kind:"web",fetch:r,Request:n,Response:a,Headers:i,FormData:typeof FormData<"u"?FormData:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'FormData' is undefined. ${t}`)}},Blob:typeof Blob<"u"?Blob:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'Blob' is undefined. ${t}`)}},File:typeof File<"u"?File:class{constructor(){throw new Error(`file uploads aren't supported in this environment yet as 'File' is undefined. ${t}`)}},ReadableStream:typeof ReadableStream<"u"?ReadableStream:class{constructor(){throw new Error(`streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ${t}`)}},getMultipartRequestOptions:async(o,s)=>({...s,body:new zae(o)}),getDefaultAgent:o=>{},fileFromPath:()=>{throw new Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:o=>!1}}uf||Lae(Bae(),{auto:!0});class rr extends Error{}class Hn extends rr{constructor(t,r,n,a){super(`${Hn.makeMessage(t,r,n)}`),this.status=t,this.headers=a,this.request_id=a==null?void 0:a["x-request-id"],this.error=r;const i=r;this.code=i==null?void 0:i.code,this.param=i==null?void 0:i.param,this.type=i==null?void 0:i.type}static makeMessage(t,r,n){const a=r!=null&&r.message?typeof r.message=="string"?r.message:JSON.stringify(r.message):r?JSON.stringify(r):n;return t&&a?`${t} ${a}`:t?`${t} status code (no body)`:a||"(no status code or body)"}static generate(t,r,n,a){if(!t||!a)return new Am({message:n,cause:b_(r)});const i=r==null?void 0:r.error;return t===400?new t$(t,i,n,a):t===401?new r$(t,i,n,a):t===403?new n$(t,i,n,a):t===404?new a$(t,i,n,a):t===409?new i$(t,i,n,a):t===422?new o$(t,i,n,a):t===429?new s$(t,i,n,a):t>=500?new u$(t,i,n,a):new Hn(t,i,n,a)}}class Fi extends Hn{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class Am extends Hn{constructor({message:t,cause:r}){super(void 0,void 0,t||"Connection error.",void 0),r&&(this.cause=r)}}class e2 extends Am{constructor({message:t}={}){super({message:t??"Request timed out."})}}class t$ extends Hn{}class r$ extends Hn{}class n$ extends Hn{}class a$ extends Hn{}class i$ extends Hn{}class o$ extends Hn{}class s$ extends Hn{}class u$ extends Hn{}class l$ extends rr{constructor(){super("Could not parse response content as the length limit was reached")}}class c$ extends rr{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}var L0=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},su=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ba;class Dm{constructor(){Ba.set(this,void 0),this.buffer=new Uint8Array,L0(this,Ba,null,"f")}decode(t){if(t==null)return[];const r=t instanceof ArrayBuffer?new Uint8Array(t):typeof t=="string"?new TextEncoder().encode(t):t;let n=new Uint8Array(this.buffer.length+r.length);n.set(this.buffer),n.set(r,this.buffer.length),this.buffer=n;const a=[];let i;for(;(i=Hae(this.buffer,su(this,Ba,"f")))!=null;){if(i.carriage&&su(this,Ba,"f")==null){L0(this,Ba,i.index,"f");continue}if(su(this,Ba,"f")!=null&&(i.index!==su(this,Ba,"f")+1||i.carriage)){a.push(this.decodeText(this.buffer.slice(0,su(this,Ba,"f")-1))),this.buffer=this.buffer.slice(su(this,Ba,"f")),L0(this,Ba,null,"f");continue}const o=su(this,Ba,"f")!==null?i.preceding-1:i.preceding,s=this.decodeText(this.buffer.slice(0,o));a.push(s),this.buffer=this.buffer.slice(i.index),L0(this,Ba,null,"f")}return a}decodeText(t){if(t==null)return"";if(typeof t=="string")return t;if(typeof Buffer<"u"){if(t instanceof Buffer)return t.toString();if(t instanceof Uint8Array)return Buffer.from(t).toString();throw new rr(`Unexpected: received non-Uint8Array (${t.constructor.name}) stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.`)}if(typeof TextDecoder<"u"){if(t instanceof Uint8Array||t instanceof ArrayBuffer)return this.textDecoder??(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(t);throw new rr(`Unexpected: received non-Uint8Array/ArrayBuffer (${t.constructor.name}) in a web platform. Please report this error.`)}throw new rr("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){return this.buffer.length?this.decode(`
512
- `):[]}}Ba=new WeakMap;Dm.NEWLINE_CHARS=new Set([`
513
- `,"\r"]);Dm.NEWLINE_REGEXP=/\r\n|[\n\r]/g;function Hae(e,t){for(let a=t??0;a<e.length;a++){if(e[a]===10)return{preceding:a,index:a+1,carriage:!1};if(e[a]===13)return{preceding:a,index:a+1,carriage:!0}}return null}function Vae(e){for(let n=0;n<e.length-1;n++){if(e[n]===10&&e[n+1]===10||e[n]===13&&e[n+1]===13)return n+2;if(e[n]===13&&e[n+1]===10&&n+3<e.length&&e[n+2]===13&&e[n+3]===10)return n+4}return-1}function d$(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{async next(){try{const r=await t.read();return r!=null&&r.done&&t.releaseLock(),r}catch(r){throw t.releaseLock(),r}},async return(){const r=t.cancel();return t.releaseLock(),await r,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}class io{constructor(t,r){this.iterator=t,this.controller=r}static fromSSEResponse(t,r){let n=!1;async function*a(){if(n)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let i=!1;try{for await(const o of Uae(t,r))if(!i){if(o.data.startsWith("[DONE]")){i=!0;continue}if(o.event===null){let s;try{s=JSON.parse(o.data)}catch(u){throw console.error("Could not parse message into JSON:",o.data),console.error("From chunk:",o.raw),u}if(s&&s.error)throw new Hn(void 0,s.error,void 0,void 0);yield s}else{let s;try{s=JSON.parse(o.data)}catch(u){throw console.error("Could not parse message into JSON:",o.data),console.error("From chunk:",o.raw),u}if(o.event=="error")throw new Hn(void 0,s.error,s.message,void 0);yield{event:o.event,data:s}}}i=!0}catch(o){if(o instanceof Error&&o.name==="AbortError")return;throw o}finally{i||r.abort()}}return new io(a,r)}static fromReadableStream(t,r){let n=!1;async function*a(){const o=new Dm,s=d$(t);for await(const u of s)for(const l of o.decode(u))yield l;for(const u of o.flush())yield u}async function*i(){if(n)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let o=!1;try{for await(const s of a())o||s&&(yield JSON.parse(s));o=!0}catch(s){if(s instanceof Error&&s.name==="AbortError")return;throw s}finally{o||r.abort()}}return new io(i,r)}[Symbol.asyncIterator](){return this.iterator()}tee(){const t=[],r=[],n=this.iterator(),a=i=>({next:()=>{if(i.length===0){const o=n.next();t.push(o),r.push(o)}return i.shift()}});return[new io(()=>a(t),this.controller),new io(()=>a(r),this.controller)]}toReadableStream(){const t=this;let r;const n=new TextEncoder;return new Xk({async start(){r=t[Symbol.asyncIterator]()},async pull(a){try{const{value:i,done:o}=await r.next();if(o)return a.close();const s=n.encode(JSON.stringify(i)+`
514
- `);a.enqueue(s)}catch(i){a.error(i)}},async cancel(){var a;await((a=r.return)==null?void 0:a.call(r))}})}}async function*Uae(e,t){if(!e.body)throw t.abort(),new rr("Attempted to iterate over a response with no body");const r=new Wae,n=new Dm,a=d$(e.body);for await(const i of qae(a))for(const o of n.decode(i)){const s=r.decode(o);s&&(yield s)}for(const i of n.flush()){const o=r.decode(i);o&&(yield o)}}async function*qae(e){let t=new Uint8Array;for await(const r of e){if(r==null)continue;const n=r instanceof ArrayBuffer?new Uint8Array(r):typeof r=="string"?new TextEncoder().encode(r):r;let a=new Uint8Array(t.length+n.length);a.set(t),a.set(n,t.length),t=a;let i;for(;(i=Vae(t))!==-1;)yield t.slice(0,i),t=t.slice(i)}t.length>0&&(yield t)}class Wae{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(t){if(t.endsWith("\r")&&(t=t.substring(0,t.length-1)),!t){if(!this.event&&!this.data.length)return null;const i={event:this.event,data:this.data.join(`
515
- `),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],i}if(this.chunks.push(t),t.startsWith(":"))return null;let[r,n,a]=Yae(t,":");return a.startsWith(" ")&&(a=a.substring(1)),r==="event"?this.event=a:r==="data"&&this.data.push(a),null}}function Yae(e,t){const r=e.indexOf(t);return r!==-1?[e.substring(0,r),t,e.substring(r+t.length)]:[e,"",""]}const f$=e=>e!=null&&typeof e=="object"&&typeof e.url=="string"&&typeof e.blob=="function",h$=e=>e!=null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.lastModified=="number"&&Mm(e),Mm=e=>e!=null&&typeof e=="object"&&typeof e.size=="number"&&typeof e.type=="string"&&typeof e.text=="function"&&typeof e.slice=="function"&&typeof e.arrayBuffer=="function",Gae=e=>h$(e)||f$(e)||e$(e);async function p$(e,t,r){var a;if(e=await e,h$(e))return e;if(f$(e)){const i=await e.blob();t||(t=new URL(e.url).pathname.split(/[\\/]/).pop()??"unknown_file");const o=Mm(i)?[await i.arrayBuffer()]:[i];return new g_(o,t,r)}const n=await Kae(e);if(t||(t=Zae(e)??"unknown_file"),!(r!=null&&r.type)){const i=(a=n[0])==null?void 0:a.type;typeof i=="string"&&(r={...r,type:i})}return new g_(n,t,r)}async function Kae(e){var r;let t=[];if(typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(Mm(e))t.push(await e.arrayBuffer());else if(Jae(e))for await(const n of e)t.push(n);else throw new Error(`Unexpected data type: ${typeof e}; constructor: ${(r=e==null?void 0:e.constructor)==null?void 0:r.name}; props: ${Xae(e)}`);return t}function Xae(e){return`[${Object.getOwnPropertyNames(e).map(r=>`"${r}"`).join(", ")}]`}function Zae(e){var t;return mb(e.name)||mb(e.filename)||((t=mb(e.path))==null?void 0:t.split(/[\\/]/).pop())}const mb=e=>{if(typeof e=="string")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return String(e)},Jae=e=>e!=null&&typeof e=="object"&&typeof e[Symbol.asyncIterator]=="function",t4=e=>e&&typeof e=="object"&&e.body&&e[Symbol.toStringTag]==="MultipartBody",Gl=async e=>{const t=await Qae(e.body);return Zk(t,e)},Qae=async e=>{const t=new Kk;return await Promise.all(Object.entries(e||{}).map(([r,n])=>v_(t,r,n))),t},v_=async(e,t,r)=>{if(r!==void 0){if(r==null)throw new TypeError(`Received null for "${t}"; to pass null in FormData, you must use the string 'null'`);if(typeof r=="string"||typeof r=="number"||typeof r=="boolean")e.append(t,String(r));else if(Gae(r)){const n=await p$(r);e.append(t,n)}else if(Array.isArray(r))await Promise.all(r.map(n=>v_(e,t+"[]",n)));else if(typeof r=="object")await Promise.all(Object.entries(r).map(([n,a])=>v_(e,`${t}[${n}]`,a)));else throw new TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${r} instead`)}};var eie=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},tie=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},z0;async function m$(e){const{response:t}=e;if(e.options.stream)return Fl("response",t.status,t.url,t.headers,t.body),e.options.__streamClass?e.options.__streamClass.fromSSEResponse(t,e.controller):io.fromSSEResponse(t,e.controller);if(t.status===204)return null;if(e.options.__binaryResponse)return t;const r=t.headers.get("content-type");if((r==null?void 0:r.includes("application/json"))||(r==null?void 0:r.includes("application/vnd.api+json"))){const i=await t.json();return Fl("response",t.status,t.url,t.headers,i),g$(i,t)}const a=await t.text();return Fl("response",t.status,t.url,t.headers,a),a}function g$(e,t){return!e||typeof e!="object"||Array.isArray(e)?e:Object.defineProperty(e,"_request_id",{value:t.headers.get("x-request-id"),enumerable:!1})}class Nm extends Promise{constructor(t,r=m$){super(n=>{n(null)}),this.responsePromise=t,this.parseResponse=r}_thenUnwrap(t){return new Nm(this.responsePromise,async r=>g$(t(await this.parseResponse(r),r),r.response))}asResponse(){return this.responsePromise.then(t=>t.response)}async withResponse(){const[t,r]=await Promise.all([this.parse(),this.asResponse()]);return{data:t,response:r,request_id:r.headers.get("x-request-id")}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(this.parseResponse)),this.parsedPromise}then(t,r){return this.parse().then(t,r)}catch(t){return this.parse().catch(t)}finally(t){return this.parse().finally(t)}}class rie{constructor({baseURL:t,maxRetries:r=2,timeout:n=6e5,httpAgent:a,fetch:i}){this.baseURL=t,this.maxRetries=gb("maxRetries",r),this.timeout=gb("timeout",n),this.httpAgent=a,this.fetch=i??Gk}authHeaders(t){return{}}defaultHeaders(t){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),...uie(),...this.authHeaders(t)}}validateHeaders(t,r){}defaultIdempotencyKey(){return`stainless-node-retry-${fie()}`}get(t,r){return this.methodRequest("get",t,r)}post(t,r){return this.methodRequest("post",t,r)}patch(t,r){return this.methodRequest("patch",t,r)}put(t,r){return this.methodRequest("put",t,r)}delete(t,r){return this.methodRequest("delete",t,r)}methodRequest(t,r,n){return this.request(Promise.resolve(n).then(async a=>{const i=a&&Mm(a==null?void 0:a.body)?new DataView(await a.body.arrayBuffer()):(a==null?void 0:a.body)instanceof DataView?a.body:(a==null?void 0:a.body)instanceof ArrayBuffer?new DataView(a.body):a&&ArrayBuffer.isView(a==null?void 0:a.body)?new DataView(a.body.buffer):a==null?void 0:a.body;return{method:t,path:r,...a,body:i}}))}getAPIList(t,r,n){return this.requestAPIList(r,{method:"get",path:t,...n})}calculateContentLength(t){if(typeof t=="string"){if(typeof Buffer<"u")return Buffer.byteLength(t,"utf8").toString();if(typeof TextEncoder<"u")return new TextEncoder().encode(t).length.toString()}else if(ArrayBuffer.isView(t))return t.byteLength.toString();return null}buildRequest(t,{retryCount:r=0}={}){var y;t={...t};const{method:n,path:a,query:i,headers:o={}}=t,s=ArrayBuffer.isView(t.body)||t.__binaryRequest&&typeof t.body=="string"?t.body:t4(t.body)?t.body.body:t.body?JSON.stringify(t.body,null,2):null,u=this.calculateContentLength(s),l=this.buildURL(a,i);"timeout"in t&&gb("timeout",t.timeout),t.timeout=t.timeout??this.timeout;const h=t.httpAgent??this.httpAgent??Jk(l),d=t.timeout+1e3;typeof((y=h==null?void 0:h.options)==null?void 0:y.timeout)=="number"&&d>(h.options.timeout??0)&&(h.options.timeout=d),this.idempotencyHeader&&n!=="get"&&(t.idempotencyKey||(t.idempotencyKey=this.defaultIdempotencyKey()),o[this.idempotencyHeader]=t.idempotencyKey);const g=this.buildHeaders({options:t,headers:o,contentLength:u,retryCount:r});return{req:{method:n,...s&&{body:s},headers:g,...h&&{agent:h},signal:t.signal??null},url:l,timeout:t.timeout}}buildHeaders({options:t,headers:r,contentLength:n,retryCount:a}){const i={};n&&(i["content-length"]=n);const o=this.defaultHeaders(t);return i4(i,o),i4(i,r),t4(t.body)&&uf!=="node"&&delete i["content-type"],H0(o,"x-stainless-retry-count")===void 0&&H0(r,"x-stainless-retry-count")===void 0&&(i["x-stainless-retry-count"]=String(a)),H0(o,"x-stainless-timeout")===void 0&&H0(r,"x-stainless-timeout")===void 0&&t.timeout&&(i["x-stainless-timeout"]=String(t.timeout)),this.validateHeaders(i,r),i}async prepareOptions(t){}async prepareRequest(t,{url:r,options:n}){}parseHeaders(t){return t?Symbol.iterator in t?Object.fromEntries(Array.from(t).map(r=>[...r])):{...t}:{}}makeStatusError(t,r,n,a){return Hn.generate(t,r,n,a)}request(t,r=null){return new Nm(this.makeRequest(t,r))}async makeRequest(t,r){var d,g;const n=await t,a=n.maxRetries??this.maxRetries;r==null&&(r=a),await this.prepareOptions(n);const{req:i,url:o,timeout:s}=this.buildRequest(n,{retryCount:a-r});if(await this.prepareRequest(i,{url:o,options:n}),Fl("request",o,n,i.headers),(d=n.signal)!=null&&d.aborted)throw new Fi;const u=new AbortController,l=await this.fetchWithTimeout(o,i,s,u).catch(b_);if(l instanceof Error){if((g=n.signal)!=null&&g.aborted)throw new Fi;if(r)return this.retryRequest(n,r);throw l.name==="AbortError"?new e2:new Am({cause:l})}const h=aie(l.headers);if(!l.ok){if(r&&this.shouldRetry(l)){const _=`retrying, ${r} attempts remaining`;return Fl(`response (error; ${_})`,l.status,o,h),this.retryRequest(n,r,h)}const b=await l.text().catch(_=>b_(_).message),y=lie(b),w=y?void 0:b;throw Fl(`response (error; ${r?"(error; no more retries left)":"(error; not retryable)"})`,l.status,o,h,w),this.makeStatusError(l.status,y,w,h)}return{response:l,options:n,controller:u}}requestAPIList(t,r){const n=this.makeRequest(r,null);return new nie(this,n,t)}buildURL(t,r){const n=die(t)?new URL(t):new URL(this.baseURL+(this.baseURL.endsWith("/")&&t.startsWith("/")?t.slice(1):t)),a=this.defaultQuery();return b$(a)||(r={...a,...r}),typeof r=="object"&&r&&!Array.isArray(r)&&(n.search=this.stringifyQuery(r)),n.toString()}stringifyQuery(t){return Object.entries(t).filter(([r,n])=>typeof n<"u").map(([r,n])=>{if(typeof n=="string"||typeof n=="number"||typeof n=="boolean")return`${encodeURIComponent(r)}=${encodeURIComponent(n)}`;if(n===null)return`${encodeURIComponent(r)}=`;throw new rr(`Cannot stringify type ${typeof n}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}async fetchWithTimeout(t,r,n,a){const{signal:i,...o}=r||{};i&&i.addEventListener("abort",()=>a.abort());const s=setTimeout(()=>a.abort(),n),u={signal:a.signal,...o};return u.method&&(u.method=u.method.toUpperCase()),this.fetch.call(void 0,t,u).finally(()=>{clearTimeout(s)})}shouldRetry(t){const r=t.headers.get("x-should-retry");return r==="true"?!0:r==="false"?!1:t.status===408||t.status===409||t.status===429||t.status>=500}async retryRequest(t,r,n){let a;const i=n==null?void 0:n["retry-after-ms"];if(i){const s=parseFloat(i);Number.isNaN(s)||(a=s)}const o=n==null?void 0:n["retry-after"];if(o&&!a){const s=parseFloat(o);Number.isNaN(s)?a=Date.parse(o)-Date.now():a=s*1e3}if(!(a&&0<=a&&a<60*1e3)){const s=t.maxRetries??this.maxRetries;a=this.calculateDefaultRetryTimeoutMillis(r,s)}return await nh(a),this.makeRequest(t,r-1)}calculateDefaultRetryTimeoutMillis(t,r){const i=r-t,o=Math.min(.5*Math.pow(2,i),8),s=1-Math.random()*.25;return o*s*1e3}getUserAgent(){return`${this.constructor.name}/JS ${yl}`}}class v${constructor(t,r,n,a){z0.set(this,void 0),eie(this,z0,t,"f"),this.options=a,this.response=r,this.body=n}hasNextPage(){return this.getPaginatedItems().length?this.nextPageInfo()!=null:!1}async getNextPage(){const t=this.nextPageInfo();if(!t)throw new rr("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");const r={...this.options};if("params"in t&&typeof r.query=="object")r.query={...r.query,...t.params};else if("url"in t){const n=[...Object.entries(r.query||{}),...t.url.searchParams.entries()];for(const[a,i]of n)t.url.searchParams.set(a,i);r.query=void 0,r.path=t.url.toString()}return await tie(this,z0,"f").requestAPIList(this.constructor,r)}async*iterPages(){let t=this;for(yield t;t.hasNextPage();)t=await t.getNextPage(),yield t}async*[(z0=new WeakMap,Symbol.asyncIterator)](){for await(const t of this.iterPages())for(const r of t.getPaginatedItems())yield r}}class nie extends Nm{constructor(t,r,n){super(r,async a=>new n(t,a.response,await m$(a),a.options))}async*[Symbol.asyncIterator](){const t=await this;for await(const r of t)yield r}}const aie=e=>new Proxy(Object.fromEntries(e.entries()),{get(t,r){const n=r.toString();return t[n.toLowerCase()]||t[n]}}),iie={method:!0,path:!0,query:!0,body:!0,headers:!0,maxRetries:!0,stream:!0,timeout:!0,httpAgent:!0,signal:!0,idempotencyKey:!0,__metadata:!0,__binaryRequest:!0,__binaryResponse:!0,__streamClass:!0},ra=e=>typeof e=="object"&&e!==null&&!b$(e)&&Object.keys(e).every(t=>y$(iie,t)),oie=()=>{var t;if(typeof Deno<"u"&&Deno.build!=null)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":yl,"X-Stainless-OS":n4(Deno.build.os),"X-Stainless-Arch":r4(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version=="string"?Deno.version:((t=Deno.version)==null?void 0:t.deno)??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":yl,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":process.version};if(Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":yl,"X-Stainless-OS":n4(process.platform),"X-Stainless-Arch":r4(process.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":process.version};const e=sie();return e?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":yl,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${e.browser}`,"X-Stainless-Runtime-Version":e.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":yl,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function sie(){if(typeof navigator>"u"||!navigator)return null;const e=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const{key:t,pattern:r}of e){const n=r.exec(navigator.userAgent);if(n){const a=n[1]||0,i=n[2]||0,o=n[3]||0;return{browser:t,version:`${a}.${i}.${o}`}}}return null}const r4=e=>e==="x32"?"x32":e==="x86_64"||e==="x64"?"x64":e==="arm"?"arm":e==="aarch64"||e==="arm64"?"arm64":e?`other:${e}`:"unknown",n4=e=>(e=e.toLowerCase(),e.includes("ios")?"iOS":e==="android"?"Android":e==="darwin"?"MacOS":e==="win32"?"Windows":e==="freebsd"?"FreeBSD":e==="openbsd"?"OpenBSD":e==="linux"?"Linux":e?`Other:${e}`:"Unknown");let a4;const uie=()=>a4??(a4=oie()),lie=e=>{try{return JSON.parse(e)}catch{return}},cie=/^[a-z][a-z0-9+.-]*:/i,die=e=>cie.test(e),nh=e=>new Promise(t=>setTimeout(t,e)),gb=(e,t)=>{if(typeof t!="number"||!Number.isInteger(t))throw new rr(`${e} must be an integer`);if(t<0)throw new rr(`${e} must be a positive integer`);return t},b_=e=>{if(e instanceof Error)return e;if(typeof e=="object"&&e!==null)try{return new Error(JSON.stringify(e))}catch{}return new Error(e)},B0=e=>{var t,r,n,a,i;if(typeof process<"u")return((r=(t=process.env)==null?void 0:t[e])==null?void 0:r.trim())??void 0;if(typeof Deno<"u")return(i=(a=(n=Deno.env)==null?void 0:n.get)==null?void 0:a.call(n,e))==null?void 0:i.trim()};function b$(e){if(!e)return!0;for(const t in e)return!1;return!0}function y$(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i4(e,t){for(const r in t){if(!y$(t,r))continue;const n=r.toLowerCase();if(!n)continue;const a=t[r];a===null?delete e[n]:a!==void 0&&(e[n]=a)}}const o4=new Set(["authorization","api-key"]);function Fl(e,...t){var r;if(typeof process<"u"&&((r=process==null?void 0:process.env)==null?void 0:r.DEBUG)==="true"){const n=t.map(a=>{if(!a)return a;if(a.headers){const o={...a,headers:{...a.headers}};for(const s in a.headers)o4.has(s.toLowerCase())&&(o.headers[s]="REDACTED");return o}let i=null;for(const o in a)o4.has(o.toLowerCase())&&(i??(i={...a}),i[o]="REDACTED");return i??a});console.log(`OpenAI:DEBUG:${e}`,...n)}}const fie=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),hie=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u",pie=e=>typeof(e==null?void 0:e.get)=="function",H0=(e,t)=>{var n;const r=t.toLowerCase();if(pie(e)){const a=((n=t[0])==null?void 0:n.toUpperCase())+t.substring(1).replace(/([^\w])(\w)/g,(i,o,s)=>o+s.toUpperCase());for(const i of[t,r,t.toUpperCase(),a]){const o=e.get(i);if(o)return o}}for(const[a,i]of Object.entries(e))if(a.toLowerCase()===r)return Array.isArray(i)?(i.length<=1||console.warn(`Received ${i.length} entries for the ${t} header, using the first entry.`),i[0]):i};function vb(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}class mie extends v${constructor(t,r,n,a){super(t,r,n,a),this.data=n.data||[],this.object=n.object}getPaginatedItems(){return this.data??[]}nextPageParams(){return null}nextPageInfo(){return null}}class Xa extends v${constructor(t,r,n,a){super(t,r,n,a),this.data=n.data||[],this.has_more=n.has_more||!1}getPaginatedItems(){return this.data??[]}hasNextPage(){return this.has_more===!1?!1:super.hasNextPage()}nextPageParams(){const t=this.nextPageInfo();if(!t)return null;if("params"in t)return t.params;const r=Object.fromEntries(t.url.searchParams);return Object.keys(r).length?r:null}nextPageInfo(){var n;const t=this.getPaginatedItems();if(!t.length)return null;const r=(n=t[t.length-1])==null?void 0:n.id;return r?{params:{after:r}}:null}}class mr{constructor(t){this._client=t}}let _$=class extends mr{list(t,r={},n){return ra(r)?this.list(t,{},r):this._client.getAPIList(`/chat/completions/${t}/messages`,gie,{query:r,...n})}},Im=class extends mr{constructor(){super(...arguments),this.messages=new _$(this._client)}create(t,r){return this._client.post("/chat/completions",{body:t,...r,stream:t.stream??!1})}retrieve(t,r){return this._client.get(`/chat/completions/${t}`,r)}update(t,r,n){return this._client.post(`/chat/completions/${t}`,{body:r,...n})}list(t={},r){return ra(t)?this.list({},t):this._client.getAPIList("/chat/completions",Fm,{query:t,...r})}del(t,r){return this._client.delete(`/chat/completions/${t}`,r)}};class Fm extends Xa{}class gie extends Xa{}Im.ChatCompletionsPage=Fm;Im.Messages=_$;let jm=class extends mr{constructor(){super(...arguments),this.completions=new Im(this._client)}};jm.Completions=Im;jm.ChatCompletionsPage=Fm;class w$ extends mr{create(t,r){return this._client.post("/audio/speech",{body:t,...r,headers:{Accept:"application/octet-stream",...r==null?void 0:r.headers},__binaryResponse:!0})}}class x$ extends mr{create(t,r){return this._client.post("/audio/transcriptions",Gl({body:t,...r,__metadata:{model:t.model}}))}}class S$ extends mr{create(t,r){return this._client.post("/audio/translations",Gl({body:t,...r,__metadata:{model:t.model}}))}}class ah extends mr{constructor(){super(...arguments),this.transcriptions=new x$(this._client),this.translations=new S$(this._client),this.speech=new w$(this._client)}}ah.Transcriptions=x$;ah.Translations=S$;ah.Speech=w$;class t2 extends mr{create(t,r){return this._client.post("/batches",{body:t,...r})}retrieve(t,r){return this._client.get(`/batches/${t}`,r)}list(t={},r){return ra(t)?this.list({},t):this._client.getAPIList("/batches",r2,{query:t,...r})}cancel(t,r){return this._client.post(`/batches/${t}/cancel`,r)}}class r2 extends Xa{}t2.BatchesPage=r2;class n2 extends mr{create(t,r){return this._client.post("/assistants",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}retrieve(t,r){return this._client.get(`/assistants/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}update(t,r,n){return this._client.post(`/assistants/${t}`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}list(t={},r){return ra(t)?this.list({},t):this._client.getAPIList("/assistants",a2,{query:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}del(t,r){return this._client.delete(`/assistants/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}}class a2 extends Xa{}n2.AssistantsPage=a2;function s4(e){return typeof e.parse=="function"}const jl=e=>(e==null?void 0:e.role)==="assistant",C$=e=>(e==null?void 0:e.role)==="function",E$=e=>(e==null?void 0:e.role)==="tool";var Ri=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},Kr=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},y_,mp,gp,Wd,Yd,vp,Gd,Wo,Kd,Lp,zp,_l,O$;class R${constructor(){y_.add(this),this.controller=new AbortController,mp.set(this,void 0),gp.set(this,()=>{}),Wd.set(this,()=>{}),Yd.set(this,void 0),vp.set(this,()=>{}),Gd.set(this,()=>{}),Wo.set(this,{}),Kd.set(this,!1),Lp.set(this,!1),zp.set(this,!1),_l.set(this,!1),Ri(this,mp,new Promise((t,r)=>{Ri(this,gp,t,"f"),Ri(this,Wd,r,"f")}),"f"),Ri(this,Yd,new Promise((t,r)=>{Ri(this,vp,t,"f"),Ri(this,Gd,r,"f")}),"f"),Kr(this,mp,"f").catch(()=>{}),Kr(this,Yd,"f").catch(()=>{})}_run(t){setTimeout(()=>{t().then(()=>{this._emitFinal(),this._emit("end")},Kr(this,y_,"m",O$).bind(this))},0)}_connected(){this.ended||(Kr(this,gp,"f").call(this),this._emit("connect"))}get ended(){return Kr(this,Kd,"f")}get errored(){return Kr(this,Lp,"f")}get aborted(){return Kr(this,zp,"f")}abort(){this.controller.abort()}on(t,r){return(Kr(this,Wo,"f")[t]||(Kr(this,Wo,"f")[t]=[])).push({listener:r}),this}off(t,r){const n=Kr(this,Wo,"f")[t];if(!n)return this;const a=n.findIndex(i=>i.listener===r);return a>=0&&n.splice(a,1),this}once(t,r){return(Kr(this,Wo,"f")[t]||(Kr(this,Wo,"f")[t]=[])).push({listener:r,once:!0}),this}emitted(t){return new Promise((r,n)=>{Ri(this,_l,!0,"f"),t!=="error"&&this.once("error",n),this.once(t,r)})}async done(){Ri(this,_l,!0,"f"),await Kr(this,Yd,"f")}_emit(t,...r){if(Kr(this,Kd,"f"))return;t==="end"&&(Ri(this,Kd,!0,"f"),Kr(this,vp,"f").call(this));const n=Kr(this,Wo,"f")[t];if(n&&(Kr(this,Wo,"f")[t]=n.filter(a=>!a.once),n.forEach(({listener:a})=>a(...r))),t==="abort"){const a=r[0];!Kr(this,_l,"f")&&!(n!=null&&n.length)&&Promise.reject(a),Kr(this,Wd,"f").call(this,a),Kr(this,Gd,"f").call(this,a),this._emit("end");return}if(t==="error"){const a=r[0];!Kr(this,_l,"f")&&!(n!=null&&n.length)&&Promise.reject(a),Kr(this,Wd,"f").call(this,a),Kr(this,Gd,"f").call(this,a),this._emit("end")}}_emitFinal(){}}mp=new WeakMap,gp=new WeakMap,Wd=new WeakMap,Yd=new WeakMap,vp=new WeakMap,Gd=new WeakMap,Wo=new WeakMap,Kd=new WeakMap,Lp=new WeakMap,zp=new WeakMap,_l=new WeakMap,y_=new WeakSet,O$=function(t){if(Ri(this,Lp,!0,"f"),t instanceof Error&&t.name==="AbortError"&&(t=new Fi),t instanceof Fi)return Ri(this,zp,!0,"f"),this._emit("abort",t);if(t instanceof rr)return this._emit("error",t);if(t instanceof Error){const r=new rr(t.message);return r.cause=t,this._emit("error",r)}return this._emit("error",new rr(String(t)))};function T$(e){return(e==null?void 0:e.$brand)==="auto-parseable-response-format"}function ih(e){return(e==null?void 0:e.$brand)==="auto-parseable-tool"}function vie(e,t){return!t||!P$(t)?{...e,choices:e.choices.map(r=>({...r,message:{...r.message,parsed:null,...r.message.tool_calls?{tool_calls:r.message.tool_calls}:void 0}}))}:i2(e,t)}function i2(e,t){const r=e.choices.map(n=>{var a;if(n.finish_reason==="length")throw new l$;if(n.finish_reason==="content_filter")throw new c$;return{...n,message:{...n.message,...n.message.tool_calls?{tool_calls:((a=n.message.tool_calls)==null?void 0:a.map(i=>yie(t,i)))??void 0}:void 0,parsed:n.message.content&&!n.message.refusal?bie(t,n.message.content):null}}});return{...e,choices:r}}function bie(e,t){var r,n;return((r=e.response_format)==null?void 0:r.type)!=="json_schema"?null:((n=e.response_format)==null?void 0:n.type)==="json_schema"?"$parseRaw"in e.response_format?e.response_format.$parseRaw(t):JSON.parse(t):null}function yie(e,t){var n;const r=(n=e.tools)==null?void 0:n.find(a=>{var i;return((i=a.function)==null?void 0:i.name)===t.function.name});return{...t,function:{...t.function,parsed_arguments:ih(r)?r.$parseRaw(t.function.arguments):r!=null&&r.function.strict?JSON.parse(t.function.arguments):null}}}function _ie(e,t){var n;if(!e)return!1;const r=(n=e.tools)==null?void 0:n.find(a=>{var i;return((i=a.function)==null?void 0:i.name)===t.function.name});return ih(r)||(r==null?void 0:r.function.strict)||!1}function P$(e){var t;return T$(e.response_format)?!0:((t=e.tools)==null?void 0:t.some(r=>ih(r)||r.type==="function"&&r.function.strict===!0))??!1}function wie(e){for(const t of e??[]){if(t.type!=="function")throw new rr(`Currently only \`function\` tool types support auto-parsing; Received \`${t.type}\``);if(t.function.strict!==!0)throw new rr(`The \`${t.function.name}\` tool is not marked with \`strict: true\`. Only strict function tools can be auto-parsed`)}}var wa=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Qn,__,Bp,w_,x_,S_,k$,C_;const u4=10;class $$ extends R${constructor(){super(...arguments),Qn.add(this),this._chatCompletions=[],this.messages=[]}_addChatCompletion(t){var n;this._chatCompletions.push(t),this._emit("chatCompletion",t);const r=(n=t.choices[0])==null?void 0:n.message;return r&&this._addMessage(r),t}_addMessage(t,r=!0){if("content"in t||(t.content=null),this.messages.push(t),r){if(this._emit("message",t),(C$(t)||E$(t))&&t.content)this._emit("functionCallResult",t.content);else if(jl(t)&&t.function_call)this._emit("functionCall",t.function_call);else if(jl(t)&&t.tool_calls)for(const n of t.tool_calls)n.type==="function"&&this._emit("functionCall",n.function)}}async finalChatCompletion(){await this.done();const t=this._chatCompletions[this._chatCompletions.length-1];if(!t)throw new rr("stream ended without producing a ChatCompletion");return t}async finalContent(){return await this.done(),wa(this,Qn,"m",__).call(this)}async finalMessage(){return await this.done(),wa(this,Qn,"m",Bp).call(this)}async finalFunctionCall(){return await this.done(),wa(this,Qn,"m",w_).call(this)}async finalFunctionCallResult(){return await this.done(),wa(this,Qn,"m",x_).call(this)}async totalUsage(){return await this.done(),wa(this,Qn,"m",S_).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emitFinal(){const t=this._chatCompletions[this._chatCompletions.length-1];t&&this._emit("finalChatCompletion",t);const r=wa(this,Qn,"m",Bp).call(this);r&&this._emit("finalMessage",r);const n=wa(this,Qn,"m",__).call(this);n&&this._emit("finalContent",n);const a=wa(this,Qn,"m",w_).call(this);a&&this._emit("finalFunctionCall",a);const i=wa(this,Qn,"m",x_).call(this);i!=null&&this._emit("finalFunctionCallResult",i),this._chatCompletions.some(o=>o.usage)&&this._emit("totalUsage",wa(this,Qn,"m",S_).call(this))}async _createChatCompletion(t,r,n){const a=n==null?void 0:n.signal;a&&(a.aborted&&this.controller.abort(),a.addEventListener("abort",()=>this.controller.abort())),wa(this,Qn,"m",k$).call(this,r);const i=await t.chat.completions.create({...r,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addChatCompletion(i2(i,r))}async _runChatCompletion(t,r,n){for(const a of r.messages)this._addMessage(a,!1);return await this._createChatCompletion(t,r,n)}async _runFunctions(t,r,n){var g;const a="function",{function_call:i="auto",stream:o,...s}=r,u=typeof i!="string"&&(i==null?void 0:i.name),{maxChatCompletions:l=u4}=n||{},h={};for(const b of r.functions)h[b.name||b.function.name]=b;const d=r.functions.map(b=>({name:b.name||b.function.name,parameters:b.parameters,description:b.description}));for(const b of r.messages)this._addMessage(b,!1);for(let b=0;b<l;++b){const w=(g=(await this._createChatCompletion(t,{...s,function_call:i,functions:d,messages:[...this.messages]},n)).choices[0])==null?void 0:g.message;if(!w)throw new rr("missing message in ChatCompletion response");if(!w.function_call)return;const{name:S,arguments:E}=w.function_call,_=h[S];if(_){if(u&&u!==S){const v=`Invalid function_call: ${JSON.stringify(S)}. ${JSON.stringify(u)} requested. Please try again`;this._addMessage({role:a,name:S,content:v});continue}}else{const v=`Invalid function_call: ${JSON.stringify(S)}. Available options are: ${d.map(x=>JSON.stringify(x.name)).join(", ")}. Please try again`;this._addMessage({role:a,name:S,content:v});continue}let C;try{C=s4(_)?await _.parse(E):E}catch(v){this._addMessage({role:a,name:S,content:v instanceof Error?v.message:String(v)});continue}const f=await _.function(C,this),p=wa(this,Qn,"m",C_).call(this,f);if(this._addMessage({role:a,name:S,content:p}),u)return}}async _runTools(t,r,n){var b,y,w;const a="tool",{tool_choice:i="auto",stream:o,...s}=r,u=typeof i!="string"&&((b=i==null?void 0:i.function)==null?void 0:b.name),{maxChatCompletions:l=u4}=n||{},h=r.tools.map(S=>{if(ih(S)){if(!S.$callback)throw new rr("Tool given to `.runTools()` that does not have an associated function");return{type:"function",function:{function:S.$callback,name:S.function.name,description:S.function.description||"",parameters:S.function.parameters,parse:S.$parseRaw,strict:!0}}}return S}),d={};for(const S of h)S.type==="function"&&(d[S.function.name||S.function.function.name]=S.function);const g="tools"in r?h.map(S=>S.type==="function"?{type:"function",function:{name:S.function.name||S.function.function.name,parameters:S.function.parameters,description:S.function.description,strict:S.function.strict}}:S):void 0;for(const S of r.messages)this._addMessage(S,!1);for(let S=0;S<l;++S){const _=(y=(await this._createChatCompletion(t,{...s,tool_choice:i,tools:g,messages:[...this.messages]},n)).choices[0])==null?void 0:y.message;if(!_)throw new rr("missing message in ChatCompletion response");if(!((w=_.tool_calls)!=null&&w.length))return;for(const C of _.tool_calls){if(C.type!=="function")continue;const f=C.id,{name:p,arguments:v}=C.function,x=d[p];if(x){if(u&&u!==p){const D=`Invalid tool_call: ${JSON.stringify(p)}. ${JSON.stringify(u)} requested. Please try again`;this._addMessage({role:a,tool_call_id:f,content:D});continue}}else{const D=`Invalid tool_call: ${JSON.stringify(p)}. Available options are: ${Object.keys(d).map(V=>JSON.stringify(V)).join(", ")}. Please try again`;this._addMessage({role:a,tool_call_id:f,content:D});continue}let k;try{k=s4(x)?await x.parse(v):v}catch(D){const V=D instanceof Error?D.message:String(D);this._addMessage({role:a,tool_call_id:f,content:V});continue}const O=await x.function(k,this),$=wa(this,Qn,"m",C_).call(this,O);if(this._addMessage({role:a,tool_call_id:f,content:$}),u)return}}}}Qn=new WeakSet,__=function(){return wa(this,Qn,"m",Bp).call(this).content??null},Bp=function(){let t=this.messages.length;for(;t-- >0;){const r=this.messages[t];if(jl(r)){const{function_call:n,...a}=r,i={...a,content:r.content??null,refusal:r.refusal??null};return n&&(i.function_call=n),i}}throw new rr("stream ended without producing a ChatCompletionMessage with role=assistant")},w_=function(){var t,r;for(let n=this.messages.length-1;n>=0;n--){const a=this.messages[n];if(jl(a)&&(a!=null&&a.function_call))return a.function_call;if(jl(a)&&((t=a==null?void 0:a.tool_calls)!=null&&t.length))return(r=a.tool_calls.at(-1))==null?void 0:r.function}},x_=function(){for(let t=this.messages.length-1;t>=0;t--){const r=this.messages[t];if(C$(r)&&r.content!=null||E$(r)&&r.content!=null&&typeof r.content=="string"&&this.messages.some(n=>{var a;return n.role==="assistant"&&((a=n.tool_calls)==null?void 0:a.some(i=>i.type==="function"&&i.id===r.tool_call_id))}))return r.content}},S_=function(){const t={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(const{usage:r}of this._chatCompletions)r&&(t.completion_tokens+=r.completion_tokens,t.prompt_tokens+=r.prompt_tokens,t.total_tokens+=r.total_tokens);return t},k$=function(t){if(t.n!=null&&t.n>1)throw new rr("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},C_=function(t){return typeof t=="string"?t:t===void 0?"undefined":JSON.stringify(t)};class If extends $${static runFunctions(t,r,n){const a=new If,i={...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return a._run(()=>a._runFunctions(t,r,i)),a}static runTools(t,r,n){const a=new If,i={...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return a._run(()=>a._runTools(t,r,i)),a}_addMessage(t,r=!0){super._addMessage(t,r),jl(t)&&t.content&&this._emit("content",t.content)}}const A$=1,D$=2,M$=4,N$=8,I$=16,F$=32,j$=64,L$=128,z$=256,xie=L$|z$,Sie=I$|F$|xie|j$,Cie=A$|D$|Sie,Eie=M$|N$,Oie=Cie|Eie,Tn={STR:A$,NUM:D$,ARR:M$,OBJ:N$,NULL:I$,BOOL:F$,NAN:j$,INFINITY:L$,MINUS_INFINITY:z$,ALL:Oie};class Rie extends Error{}class Tie extends Error{}function Pie(e,t=Tn.ALL){if(typeof e!="string")throw new TypeError(`expecting str, got ${typeof e}`);if(!e.trim())throw new Error(`${e} is empty`);return kie(e.trim(),t)}const kie=(e,t)=>{const r=e.length;let n=0;const a=g=>{throw new Rie(`${g} at position ${n}`)},i=g=>{throw new Tie(`${g} at position ${n}`)},o=()=>(d(),n>=r&&a("Unexpected end of input"),e[n]==='"'?s():e[n]==="{"?u():e[n]==="["?l():e.substring(n,n+4)==="null"||Tn.NULL&t&&r-n<4&&"null".startsWith(e.substring(n))?(n+=4,null):e.substring(n,n+4)==="true"||Tn.BOOL&t&&r-n<4&&"true".startsWith(e.substring(n))?(n+=4,!0):e.substring(n,n+5)==="false"||Tn.BOOL&t&&r-n<5&&"false".startsWith(e.substring(n))?(n+=5,!1):e.substring(n,n+8)==="Infinity"||Tn.INFINITY&t&&r-n<8&&"Infinity".startsWith(e.substring(n))?(n+=8,1/0):e.substring(n,n+9)==="-Infinity"||Tn.MINUS_INFINITY&t&&1<r-n&&r-n<9&&"-Infinity".startsWith(e.substring(n))?(n+=9,-1/0):e.substring(n,n+3)==="NaN"||Tn.NAN&t&&r-n<3&&"NaN".startsWith(e.substring(n))?(n+=3,NaN):h()),s=()=>{const g=n;let b=!1;for(n++;n<r&&(e[n]!=='"'||b&&e[n-1]==="\\");)b=e[n]==="\\"?!b:!1,n++;if(e.charAt(n)=='"')try{return JSON.parse(e.substring(g,++n-Number(b)))}catch(y){i(String(y))}else if(Tn.STR&t)try{return JSON.parse(e.substring(g,n-Number(b))+'"')}catch{return JSON.parse(e.substring(g,e.lastIndexOf("\\"))+'"')}a("Unterminated string literal")},u=()=>{n++,d();const g={};try{for(;e[n]!=="}";){if(d(),n>=r&&Tn.OBJ&t)return g;const b=s();d(),n++;try{const y=o();Object.defineProperty(g,b,{value:y,writable:!0,enumerable:!0,configurable:!0})}catch(y){if(Tn.OBJ&t)return g;throw y}d(),e[n]===","&&n++}}catch{if(Tn.OBJ&t)return g;a("Expected '}' at end of object")}return n++,g},l=()=>{n++;const g=[];try{for(;e[n]!=="]";)g.push(o()),d(),e[n]===","&&n++}catch{if(Tn.ARR&t)return g;a("Expected ']' at end of array")}return n++,g},h=()=>{if(n===0){e==="-"&&Tn.NUM&t&&a("Not sure what '-' is");try{return JSON.parse(e)}catch(b){if(Tn.NUM&t)try{return e[e.length-1]==="."?JSON.parse(e.substring(0,e.lastIndexOf("."))):JSON.parse(e.substring(0,e.lastIndexOf("e")))}catch{}i(String(b))}}const g=n;for(e[n]==="-"&&n++;e[n]&&!",]}".includes(e[n]);)n++;n==r&&!(Tn.NUM&t)&&a("Unterminated number literal");try{return JSON.parse(e.substring(g,n))}catch{e.substring(g,n)==="-"&&Tn.NUM&t&&a("Not sure what '-' is");try{return JSON.parse(e.substring(g,e.lastIndexOf("e")))}catch(y){i(String(y))}}},d=()=>{for(;n<r&&`
516
- \r `.includes(e[n]);)n++};return o()},l4=e=>Pie(e,Tn.ALL^Tn.NUM);var sl=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},Mr=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},vn,qo,ul,xs,bb,V0,yb,_b,wb,U0,xb,c4;class Ff extends $${constructor(t){super(),vn.add(this),qo.set(this,void 0),ul.set(this,void 0),xs.set(this,void 0),sl(this,qo,t,"f"),sl(this,ul,[],"f")}get currentChatCompletionSnapshot(){return Mr(this,xs,"f")}static fromReadableStream(t){const r=new Ff(null);return r._run(()=>r._fromReadableStream(t)),r}static createChatCompletion(t,r,n){const a=new Ff(r);return a._run(()=>a._runChatCompletion(t,{...r,stream:!0},{...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}})),a}async _createChatCompletion(t,r,n){var o;super._createChatCompletion;const a=n==null?void 0:n.signal;a&&(a.aborted&&this.controller.abort(),a.addEventListener("abort",()=>this.controller.abort())),Mr(this,vn,"m",bb).call(this);const i=await t.chat.completions.create({...r,stream:!0},{...n,signal:this.controller.signal});this._connected();for await(const s of i)Mr(this,vn,"m",yb).call(this,s);if((o=i.controller.signal)!=null&&o.aborted)throw new Fi;return this._addChatCompletion(Mr(this,vn,"m",U0).call(this))}async _fromReadableStream(t,r){var o;const n=r==null?void 0:r.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),Mr(this,vn,"m",bb).call(this),this._connected();const a=io.fromReadableStream(t,this.controller);let i;for await(const s of a)i&&i!==s.id&&this._addChatCompletion(Mr(this,vn,"m",U0).call(this)),Mr(this,vn,"m",yb).call(this,s),i=s.id;if((o=a.controller.signal)!=null&&o.aborted)throw new Fi;return this._addChatCompletion(Mr(this,vn,"m",U0).call(this))}[(qo=new WeakMap,ul=new WeakMap,xs=new WeakMap,vn=new WeakSet,bb=function(){this.ended||sl(this,xs,void 0,"f")},V0=function(r){let n=Mr(this,ul,"f")[r.index];return n||(n={content_done:!1,refusal_done:!1,logprobs_content_done:!1,logprobs_refusal_done:!1,done_tool_calls:new Set,current_tool_call_index:null},Mr(this,ul,"f")[r.index]=n,n)},yb=function(r){var a,i,o,s,u,l,h,d,g,b,y,w,S,E,_;if(this.ended)return;const n=Mr(this,vn,"m",c4).call(this,r);this._emit("chunk",r,n);for(const C of r.choices){const f=n.choices[C.index];C.delta.content!=null&&((a=f.message)==null?void 0:a.role)==="assistant"&&((i=f.message)!=null&&i.content)&&(this._emit("content",C.delta.content,f.message.content),this._emit("content.delta",{delta:C.delta.content,snapshot:f.message.content,parsed:f.message.parsed})),C.delta.refusal!=null&&((o=f.message)==null?void 0:o.role)==="assistant"&&((s=f.message)!=null&&s.refusal)&&this._emit("refusal.delta",{delta:C.delta.refusal,snapshot:f.message.refusal}),((u=C.logprobs)==null?void 0:u.content)!=null&&((l=f.message)==null?void 0:l.role)==="assistant"&&this._emit("logprobs.content.delta",{content:(h=C.logprobs)==null?void 0:h.content,snapshot:((d=f.logprobs)==null?void 0:d.content)??[]}),((g=C.logprobs)==null?void 0:g.refusal)!=null&&((b=f.message)==null?void 0:b.role)==="assistant"&&this._emit("logprobs.refusal.delta",{refusal:(y=C.logprobs)==null?void 0:y.refusal,snapshot:((w=f.logprobs)==null?void 0:w.refusal)??[]});const p=Mr(this,vn,"m",V0).call(this,f);f.finish_reason&&(Mr(this,vn,"m",wb).call(this,f),p.current_tool_call_index!=null&&Mr(this,vn,"m",_b).call(this,f,p.current_tool_call_index));for(const v of C.delta.tool_calls??[])p.current_tool_call_index!==v.index&&(Mr(this,vn,"m",wb).call(this,f),p.current_tool_call_index!=null&&Mr(this,vn,"m",_b).call(this,f,p.current_tool_call_index)),p.current_tool_call_index=v.index;for(const v of C.delta.tool_calls??[]){const x=(S=f.message.tool_calls)==null?void 0:S[v.index];x!=null&&x.type&&((x==null?void 0:x.type)==="function"?this._emit("tool_calls.function.arguments.delta",{name:(E=x.function)==null?void 0:E.name,index:v.index,arguments:x.function.arguments,parsed_arguments:x.function.parsed_arguments,arguments_delta:((_=v.function)==null?void 0:_.arguments)??""}):(x==null||x.type,void 0))}}},_b=function(r,n){var o,s,u;if(Mr(this,vn,"m",V0).call(this,r).done_tool_calls.has(n))return;const i=(o=r.message.tool_calls)==null?void 0:o[n];if(!i)throw new Error("no tool call snapshot");if(!i.type)throw new Error("tool call snapshot missing `type`");if(i.type==="function"){const l=(u=(s=Mr(this,qo,"f"))==null?void 0:s.tools)==null?void 0:u.find(h=>h.type==="function"&&h.function.name===i.function.name);this._emit("tool_calls.function.arguments.done",{name:i.function.name,index:n,arguments:i.function.arguments,parsed_arguments:ih(l)?l.$parseRaw(i.function.arguments):l!=null&&l.function.strict?JSON.parse(i.function.arguments):null})}else i.type},wb=function(r){var a,i;const n=Mr(this,vn,"m",V0).call(this,r);if(r.message.content&&!n.content_done){n.content_done=!0;const o=Mr(this,vn,"m",xb).call(this);this._emit("content.done",{content:r.message.content,parsed:o?o.$parseRaw(r.message.content):null})}r.message.refusal&&!n.refusal_done&&(n.refusal_done=!0,this._emit("refusal.done",{refusal:r.message.refusal})),(a=r.logprobs)!=null&&a.content&&!n.logprobs_content_done&&(n.logprobs_content_done=!0,this._emit("logprobs.content.done",{content:r.logprobs.content})),(i=r.logprobs)!=null&&i.refusal&&!n.logprobs_refusal_done&&(n.logprobs_refusal_done=!0,this._emit("logprobs.refusal.done",{refusal:r.logprobs.refusal}))},U0=function(){if(this.ended)throw new rr("stream has ended, this shouldn't happen");const r=Mr(this,xs,"f");if(!r)throw new rr("request ended without sending any chunks");return sl(this,xs,void 0,"f"),sl(this,ul,[],"f"),$ie(r,Mr(this,qo,"f"))},xb=function(){var n;const r=(n=Mr(this,qo,"f"))==null?void 0:n.response_format;return T$(r)?r:null},c4=function(r){var n,a,i,o;let s=Mr(this,xs,"f");const{choices:u,...l}=r;s?Object.assign(s,l):s=sl(this,xs,{...l,choices:[]},"f");for(const{delta:h,finish_reason:d,index:g,logprobs:b=null,...y}of r.choices){let w=s.choices[g];if(w||(w=s.choices[g]={finish_reason:d,index:g,message:{},logprobs:b,...y}),b)if(!w.logprobs)w.logprobs=Object.assign({},b);else{const{content:v,refusal:x,...k}=b;Object.assign(w.logprobs,k),v&&((n=w.logprobs).content??(n.content=[]),w.logprobs.content.push(...v)),x&&((a=w.logprobs).refusal??(a.refusal=[]),w.logprobs.refusal.push(...x))}if(d&&(w.finish_reason=d,Mr(this,qo,"f")&&P$(Mr(this,qo,"f")))){if(d==="length")throw new l$;if(d==="content_filter")throw new c$}if(Object.assign(w,y),!h)continue;const{content:S,refusal:E,function_call:_,role:C,tool_calls:f,...p}=h;if(Object.assign(w.message,p),E&&(w.message.refusal=(w.message.refusal||"")+E),C&&(w.message.role=C),_&&(w.message.function_call?(_.name&&(w.message.function_call.name=_.name),_.arguments&&((i=w.message.function_call).arguments??(i.arguments=""),w.message.function_call.arguments+=_.arguments)):w.message.function_call=_),S&&(w.message.content=(w.message.content||"")+S,!w.message.refusal&&Mr(this,vn,"m",xb).call(this)&&(w.message.parsed=l4(w.message.content))),f){w.message.tool_calls||(w.message.tool_calls=[]);for(const{index:v,id:x,type:k,function:O,...$}of f){const D=(o=w.message.tool_calls)[v]??(o[v]={});Object.assign(D,$),x&&(D.id=x),k&&(D.type=k),O&&(D.function??(D.function={name:O.name??"",arguments:""})),O!=null&&O.name&&(D.function.name=O.name),O!=null&&O.arguments&&(D.function.arguments+=O.arguments,_ie(Mr(this,qo,"f"),D)&&(D.function.parsed_arguments=l4(D.function.arguments)))}}}return s},Symbol.asyncIterator)](){const t=[],r=[];let n=!1;return this.on("chunk",a=>{const i=r.shift();i?i.resolve(a):t.push(a)}),this.on("end",()=>{n=!0;for(const a of r)a.resolve(void 0);r.length=0}),this.on("abort",a=>{n=!0;for(const i of r)i.reject(a);r.length=0}),this.on("error",a=>{n=!0;for(const i of r)i.reject(a);r.length=0}),{next:async()=>t.length?{value:t.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise((i,o)=>r.push({resolve:i,reject:o})).then(i=>i?{value:i,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}toReadableStream(){return new io(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}function $ie(e,t){const{id:r,choices:n,created:a,model:i,system_fingerprint:o,...s}=e,u={...s,id:r,choices:n.map(({message:l,finish_reason:h,index:d,logprobs:g,...b})=>{if(!h)throw new rr(`missing finish_reason for choice ${d}`);const{content:y=null,function_call:w,tool_calls:S,...E}=l,_=l.role;if(!_)throw new rr(`missing role for choice ${d}`);if(w){const{arguments:C,name:f}=w;if(C==null)throw new rr(`missing function_call.arguments for choice ${d}`);if(!f)throw new rr(`missing function_call.name for choice ${d}`);return{...b,message:{content:y,function_call:{arguments:C,name:f},role:_,refusal:l.refusal??null},finish_reason:h,index:d,logprobs:g}}return S?{...b,index:d,finish_reason:h,logprobs:g,message:{...E,role:_,content:y,refusal:l.refusal??null,tool_calls:S.map((C,f)=>{const{function:p,type:v,id:x,...k}=C,{arguments:O,name:$,...D}=p||{};if(x==null)throw new rr(`missing choices[${d}].tool_calls[${f}].id
517
- ${q0(e)}`);if(v==null)throw new rr(`missing choices[${d}].tool_calls[${f}].type
518
- ${q0(e)}`);if($==null)throw new rr(`missing choices[${d}].tool_calls[${f}].function.name
519
- ${q0(e)}`);if(O==null)throw new rr(`missing choices[${d}].tool_calls[${f}].function.arguments
520
- ${q0(e)}`);return{...k,id:x,type:v,function:{...D,name:$,arguments:O}}})}}:{...b,message:{...E,content:y,role:_,refusal:l.refusal??null},finish_reason:h,index:d,logprobs:g}}),created:a,model:i,object:"chat.completion",...o?{system_fingerprint:o}:{}};return vie(u,t)}function q0(e){return JSON.stringify(e)}class Ll extends Ff{static fromReadableStream(t){const r=new Ll(null);return r._run(()=>r._fromReadableStream(t)),r}static runFunctions(t,r,n){const a=new Ll(null),i={...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return a._run(()=>a._runFunctions(t,r,i)),a}static runTools(t,r,n){const a=new Ll(r),i={...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return a._run(()=>a._runTools(t,r,i)),a}}let B$=class extends mr{parse(t,r){return wie(t.tools),this._client.chat.completions.create(t,{...r,headers:{...r==null?void 0:r.headers,"X-Stainless-Helper-Method":"beta.chat.completions.parse"}})._thenUnwrap(n=>i2(n,t))}runFunctions(t,r){return t.stream?Ll.runFunctions(this._client,t,r):If.runFunctions(this._client,t,r)}runTools(t,r){return t.stream?Ll.runTools(this._client,t,r):If.runTools(this._client,t,r)}stream(t,r){return Ff.createChatCompletion(this._client,t,r)}};class E_ extends mr{constructor(){super(...arguments),this.completions=new B$(this._client)}}(function(e){e.Completions=B$})(E_||(E_={}));class H$ extends mr{create(t,r){return this._client.post("/realtime/sessions",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}}class o2 extends mr{constructor(){super(...arguments),this.sessions=new H$(this._client)}}o2.Sessions=H$;var St=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},Ia=function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r},zn,O_,ro,bp,Ti,_u,Rl,pu,Hp,Va,yp,_p,lf,Xd,Zd,d4,f4,h4,p4,m4,g4,v4;class ji extends R${constructor(){super(...arguments),zn.add(this),O_.set(this,[]),ro.set(this,{}),bp.set(this,{}),Ti.set(this,void 0),_u.set(this,void 0),Rl.set(this,void 0),pu.set(this,void 0),Hp.set(this,void 0),Va.set(this,void 0),yp.set(this,void 0),_p.set(this,void 0),lf.set(this,void 0)}[(O_=new WeakMap,ro=new WeakMap,bp=new WeakMap,Ti=new WeakMap,_u=new WeakMap,Rl=new WeakMap,pu=new WeakMap,Hp=new WeakMap,Va=new WeakMap,yp=new WeakMap,_p=new WeakMap,lf=new WeakMap,zn=new WeakSet,Symbol.asyncIterator)](){const t=[],r=[];let n=!1;return this.on("event",a=>{const i=r.shift();i?i.resolve(a):t.push(a)}),this.on("end",()=>{n=!0;for(const a of r)a.resolve(void 0);r.length=0}),this.on("abort",a=>{n=!0;for(const i of r)i.reject(a);r.length=0}),this.on("error",a=>{n=!0;for(const i of r)i.reject(a);r.length=0}),{next:async()=>t.length?{value:t.shift(),done:!1}:n?{value:void 0,done:!0}:new Promise((i,o)=>r.push({resolve:i,reject:o})).then(i=>i?{value:i,done:!1}:{value:void 0,done:!0}),return:async()=>(this.abort(),{value:void 0,done:!0})}}static fromReadableStream(t){const r=new ji;return r._run(()=>r._fromReadableStream(t)),r}async _fromReadableStream(t,r){var i;const n=r==null?void 0:r.signal;n&&(n.aborted&&this.controller.abort(),n.addEventListener("abort",()=>this.controller.abort())),this._connected();const a=io.fromReadableStream(t,this.controller);for await(const o of a)St(this,zn,"m",Xd).call(this,o);if((i=a.controller.signal)!=null&&i.aborted)throw new Fi;return this._addRun(St(this,zn,"m",Zd).call(this))}toReadableStream(){return new io(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}static createToolAssistantStream(t,r,n,a,i){const o=new ji;return o._run(()=>o._runToolAssistantStream(t,r,n,a,{...i,headers:{...i==null?void 0:i.headers,"X-Stainless-Helper-Method":"stream"}})),o}async _createToolAssistantStream(t,r,n,a,i){var l;const o=i==null?void 0:i.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",()=>this.controller.abort()));const s={...a,stream:!0},u=await t.submitToolOutputs(r,n,s,{...i,signal:this.controller.signal});this._connected();for await(const h of u)St(this,zn,"m",Xd).call(this,h);if((l=u.controller.signal)!=null&&l.aborted)throw new Fi;return this._addRun(St(this,zn,"m",Zd).call(this))}static createThreadAssistantStream(t,r,n){const a=new ji;return a._run(()=>a._threadAssistantStream(t,r,{...n,headers:{...n==null?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}})),a}static createAssistantStream(t,r,n,a){const i=new ji;return i._run(()=>i._runAssistantStream(t,r,n,{...a,headers:{...a==null?void 0:a.headers,"X-Stainless-Helper-Method":"stream"}})),i}currentEvent(){return St(this,yp,"f")}currentRun(){return St(this,_p,"f")}currentMessageSnapshot(){return St(this,Ti,"f")}currentRunStepSnapshot(){return St(this,lf,"f")}async finalRunSteps(){return await this.done(),Object.values(St(this,ro,"f"))}async finalMessages(){return await this.done(),Object.values(St(this,bp,"f"))}async finalRun(){if(await this.done(),!St(this,_u,"f"))throw Error("Final run was not received.");return St(this,_u,"f")}async _createThreadAssistantStream(t,r,n){var s;const a=n==null?void 0:n.signal;a&&(a.aborted&&this.controller.abort(),a.addEventListener("abort",()=>this.controller.abort()));const i={...r,stream:!0},o=await t.createAndRun(i,{...n,signal:this.controller.signal});this._connected();for await(const u of o)St(this,zn,"m",Xd).call(this,u);if((s=o.controller.signal)!=null&&s.aborted)throw new Fi;return this._addRun(St(this,zn,"m",Zd).call(this))}async _createAssistantStream(t,r,n,a){var u;const i=a==null?void 0:a.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",()=>this.controller.abort()));const o={...n,stream:!0},s=await t.create(r,o,{...a,signal:this.controller.signal});this._connected();for await(const l of s)St(this,zn,"m",Xd).call(this,l);if((u=s.controller.signal)!=null&&u.aborted)throw new Fi;return this._addRun(St(this,zn,"m",Zd).call(this))}static accumulateDelta(t,r){for(const[n,a]of Object.entries(r)){if(!t.hasOwnProperty(n)){t[n]=a;continue}let i=t[n];if(i==null){t[n]=a;continue}if(n==="index"||n==="type"){t[n]=a;continue}if(typeof i=="string"&&typeof a=="string")i+=a;else if(typeof i=="number"&&typeof a=="number")i+=a;else if(vb(i)&&vb(a))i=this.accumulateDelta(i,a);else if(Array.isArray(i)&&Array.isArray(a)){if(i.every(o=>typeof o=="string"||typeof o=="number")){i.push(...a);continue}for(const o of a){if(!vb(o))throw new Error(`Expected array delta entry to be an object but got: ${o}`);const s=o.index;if(s==null)throw console.error(o),new Error("Expected array delta entry to have an `index` property");if(typeof s!="number")throw new Error(`Expected array delta entry \`index\` property to be a number but got ${s}`);const u=i[s];u==null?i.push(o):i[s]=this.accumulateDelta(u,o)}continue}else throw Error(`Unhandled record type: ${n}, deltaValue: ${a}, accValue: ${i}`);t[n]=i}return t}_addRun(t){return t}async _threadAssistantStream(t,r,n){return await this._createThreadAssistantStream(r,t,n)}async _runAssistantStream(t,r,n,a){return await this._createAssistantStream(r,t,n,a)}async _runToolAssistantStream(t,r,n,a,i){return await this._createToolAssistantStream(n,t,r,a,i)}}Xd=function(t){if(!this.ended)switch(Ia(this,yp,t,"f"),St(this,zn,"m",h4).call(this,t),t.event){case"thread.created":break;case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":case"thread.run.requires_action":case"thread.run.completed":case"thread.run.incomplete":case"thread.run.failed":case"thread.run.cancelling":case"thread.run.cancelled":case"thread.run.expired":St(this,zn,"m",v4).call(this,t);break;case"thread.run.step.created":case"thread.run.step.in_progress":case"thread.run.step.delta":case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":St(this,zn,"m",f4).call(this,t);break;case"thread.message.created":case"thread.message.in_progress":case"thread.message.delta":case"thread.message.completed":case"thread.message.incomplete":St(this,zn,"m",d4).call(this,t);break;case"error":throw new Error("Encountered an error event in event processing - errors should be processed earlier")}},Zd=function(){if(this.ended)throw new rr("stream has ended, this shouldn't happen");if(!St(this,_u,"f"))throw Error("Final run has not been received");return St(this,_u,"f")},d4=function(t){const[r,n]=St(this,zn,"m",m4).call(this,t,St(this,Ti,"f"));Ia(this,Ti,r,"f"),St(this,bp,"f")[r.id]=r;for(const a of n){const i=r.content[a.index];(i==null?void 0:i.type)=="text"&&this._emit("textCreated",i.text)}switch(t.event){case"thread.message.created":this._emit("messageCreated",t.data);break;case"thread.message.in_progress":break;case"thread.message.delta":if(this._emit("messageDelta",t.data.delta,r),t.data.delta.content)for(const a of t.data.delta.content){if(a.type=="text"&&a.text){let i=a.text,o=r.content[a.index];if(o&&o.type=="text")this._emit("textDelta",i,o.text);else throw Error("The snapshot associated with this text delta is not text or missing")}if(a.index!=St(this,Rl,"f")){if(St(this,pu,"f"))switch(St(this,pu,"f").type){case"text":this._emit("textDone",St(this,pu,"f").text,St(this,Ti,"f"));break;case"image_file":this._emit("imageFileDone",St(this,pu,"f").image_file,St(this,Ti,"f"));break}Ia(this,Rl,a.index,"f")}Ia(this,pu,r.content[a.index],"f")}break;case"thread.message.completed":case"thread.message.incomplete":if(St(this,Rl,"f")!==void 0){const a=t.data.content[St(this,Rl,"f")];if(a)switch(a.type){case"image_file":this._emit("imageFileDone",a.image_file,St(this,Ti,"f"));break;case"text":this._emit("textDone",a.text,St(this,Ti,"f"));break}}St(this,Ti,"f")&&this._emit("messageDone",t.data),Ia(this,Ti,void 0,"f")}},f4=function(t){const r=St(this,zn,"m",p4).call(this,t);switch(Ia(this,lf,r,"f"),t.event){case"thread.run.step.created":this._emit("runStepCreated",t.data);break;case"thread.run.step.delta":const n=t.data.delta;if(n.step_details&&n.step_details.type=="tool_calls"&&n.step_details.tool_calls&&r.step_details.type=="tool_calls")for(const i of n.step_details.tool_calls)i.index==St(this,Hp,"f")?this._emit("toolCallDelta",i,r.step_details.tool_calls[i.index]):(St(this,Va,"f")&&this._emit("toolCallDone",St(this,Va,"f")),Ia(this,Hp,i.index,"f"),Ia(this,Va,r.step_details.tool_calls[i.index],"f"),St(this,Va,"f")&&this._emit("toolCallCreated",St(this,Va,"f")));this._emit("runStepDelta",t.data.delta,r);break;case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":Ia(this,lf,void 0,"f"),t.data.step_details.type=="tool_calls"&&St(this,Va,"f")&&(this._emit("toolCallDone",St(this,Va,"f")),Ia(this,Va,void 0,"f")),this._emit("runStepDone",t.data,r);break}},h4=function(t){St(this,O_,"f").push(t),this._emit("event",t)},p4=function(t){switch(t.event){case"thread.run.step.created":return St(this,ro,"f")[t.data.id]=t.data,t.data;case"thread.run.step.delta":let r=St(this,ro,"f")[t.data.id];if(!r)throw Error("Received a RunStepDelta before creation of a snapshot");let n=t.data;if(n.delta){const a=ji.accumulateDelta(r,n.delta);St(this,ro,"f")[t.data.id]=a}return St(this,ro,"f")[t.data.id];case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":case"thread.run.step.in_progress":St(this,ro,"f")[t.data.id]=t.data;break}if(St(this,ro,"f")[t.data.id])return St(this,ro,"f")[t.data.id];throw new Error("No snapshot available")},m4=function(t,r){let n=[];switch(t.event){case"thread.message.created":return[t.data,n];case"thread.message.delta":if(!r)throw Error("Received a delta with no existing snapshot (there should be one from message creation)");let a=t.data;if(a.delta.content)for(const i of a.delta.content)if(i.index in r.content){let o=r.content[i.index];r.content[i.index]=St(this,zn,"m",g4).call(this,i,o)}else r.content[i.index]=i,n.push(i);return[r,n];case"thread.message.in_progress":case"thread.message.completed":case"thread.message.incomplete":if(r)return[r,n];throw Error("Received thread message event with no existing snapshot")}throw Error("Tried to accumulate a non-message event")},g4=function(t,r){return ji.accumulateDelta(r,t)},v4=function(t){switch(Ia(this,_p,t.data,"f"),t.event){case"thread.run.created":break;case"thread.run.queued":break;case"thread.run.in_progress":break;case"thread.run.requires_action":case"thread.run.cancelled":case"thread.run.failed":case"thread.run.completed":case"thread.run.expired":Ia(this,_u,t.data,"f"),St(this,Va,"f")&&(this._emit("toolCallDone",St(this,Va,"f")),Ia(this,Va,void 0,"f"));break}};class s2 extends mr{create(t,r,n){return this._client.post(`/threads/${t}/messages`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}retrieve(t,r,n){return this._client.get(`/threads/${t}/messages/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}update(t,r,n,a){return this._client.post(`/threads/${t}/messages/${r}`,{body:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers}})}list(t,r={},n){return ra(r)?this.list(t,{},r):this._client.getAPIList(`/threads/${t}/messages`,u2,{query:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}del(t,r,n){return this._client.delete(`/threads/${t}/messages/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}}class u2 extends Xa{}s2.MessagesPage=u2;class l2 extends mr{retrieve(t,r,n,a={},i){return ra(a)?this.retrieve(t,r,n,{},a):this._client.get(`/threads/${t}/runs/${r}/steps/${n}`,{query:a,...i,headers:{"OpenAI-Beta":"assistants=v2",...i==null?void 0:i.headers}})}list(t,r,n={},a){return ra(n)?this.list(t,r,{},n):this._client.getAPIList(`/threads/${t}/runs/${r}/steps`,c2,{query:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers}})}}class c2 extends Xa{}l2.RunStepsPage=c2;class oh extends mr{constructor(){super(...arguments),this.steps=new l2(this._client)}create(t,r,n){const{include:a,...i}=r;return this._client.post(`/threads/${t}/runs`,{query:{include:a},body:i,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers},stream:r.stream??!1})}retrieve(t,r,n){return this._client.get(`/threads/${t}/runs/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}update(t,r,n,a){return this._client.post(`/threads/${t}/runs/${r}`,{body:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers}})}list(t,r={},n){return ra(r)?this.list(t,{},r):this._client.getAPIList(`/threads/${t}/runs`,d2,{query:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}cancel(t,r,n){return this._client.post(`/threads/${t}/runs/${r}/cancel`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}async createAndPoll(t,r,n){const a=await this.create(t,r,n);return await this.poll(t,a.id,n)}createAndStream(t,r,n){return ji.createAssistantStream(t,this._client.beta.threads.runs,r,n)}async poll(t,r,n){const a={...n==null?void 0:n.headers,"X-Stainless-Poll-Helper":"true"};for(n!=null&&n.pollIntervalMs&&(a["X-Stainless-Custom-Poll-Interval"]=n.pollIntervalMs.toString());;){const{data:i,response:o}=await this.retrieve(t,r,{...n,headers:{...n==null?void 0:n.headers,...a}}).withResponse();switch(i.status){case"queued":case"in_progress":case"cancelling":let s=5e3;if(n!=null&&n.pollIntervalMs)s=n.pollIntervalMs;else{const u=o.headers.get("openai-poll-after-ms");if(u){const l=parseInt(u);isNaN(l)||(s=l)}}await nh(s);break;case"requires_action":case"incomplete":case"cancelled":case"completed":case"failed":case"expired":return i}}}stream(t,r,n){return ji.createAssistantStream(t,this._client.beta.threads.runs,r,n)}submitToolOutputs(t,r,n,a){return this._client.post(`/threads/${t}/runs/${r}/submit_tool_outputs`,{body:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers},stream:n.stream??!1})}async submitToolOutputsAndPoll(t,r,n,a){const i=await this.submitToolOutputs(t,r,n,a);return await this.poll(t,i.id,a)}submitToolOutputsStream(t,r,n,a){return ji.createToolAssistantStream(t,r,this._client.beta.threads.runs,n,a)}}class d2 extends Xa{}oh.RunsPage=d2;oh.Steps=l2;oh.RunStepsPage=c2;class fc extends mr{constructor(){super(...arguments),this.runs=new oh(this._client),this.messages=new s2(this._client)}create(t={},r){return ra(t)?this.create({},t):this._client.post("/threads",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}retrieve(t,r){return this._client.get(`/threads/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}update(t,r,n){return this._client.post(`/threads/${t}`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}del(t,r){return this._client.delete(`/threads/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}createAndRun(t,r){return this._client.post("/threads/runs",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers},stream:t.stream??!1})}async createAndRunPoll(t,r){const n=await this.createAndRun(t,r);return await this.runs.poll(n.thread_id,n.id,r)}createAndRunStream(t,r){return ji.createThreadAssistantStream(t,this._client.beta.threads,r)}}fc.Runs=oh;fc.RunsPage=d2;fc.Messages=s2;fc.MessagesPage=u2;const Aie=async e=>{const t=await Promise.allSettled(e),r=t.filter(a=>a.status==="rejected");if(r.length){for(const a of r)console.error(a.reason);throw new Error(`${r.length} promise(s) failed - see the above errors`)}const n=[];for(const a of t)a.status==="fulfilled"&&n.push(a.value);return n};let f2=class extends mr{create(t,r,n){return this._client.post(`/vector_stores/${t}/files`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}retrieve(t,r,n){return this._client.get(`/vector_stores/${t}/files/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}list(t,r={},n){return ra(r)?this.list(t,{},r):this._client.getAPIList(`/vector_stores/${t}/files`,Lm,{query:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}del(t,r,n){return this._client.delete(`/vector_stores/${t}/files/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}async createAndPoll(t,r,n){const a=await this.create(t,r,n);return await this.poll(t,a.id,n)}async poll(t,r,n){const a={...n==null?void 0:n.headers,"X-Stainless-Poll-Helper":"true"};for(n!=null&&n.pollIntervalMs&&(a["X-Stainless-Custom-Poll-Interval"]=n.pollIntervalMs.toString());;){const i=await this.retrieve(t,r,{...n,headers:a}).withResponse(),o=i.data;switch(o.status){case"in_progress":let s=5e3;if(n!=null&&n.pollIntervalMs)s=n.pollIntervalMs;else{const u=i.response.headers.get("openai-poll-after-ms");if(u){const l=parseInt(u);isNaN(l)||(s=l)}}await nh(s);break;case"failed":case"completed":return o}}}async upload(t,r,n){const a=await this._client.files.create({file:r,purpose:"assistants"},n);return this.create(t,{file_id:a.id},n)}async uploadAndPoll(t,r,n){const a=await this.upload(t,r,n);return await this.poll(t,a.id,n)}};class Lm extends Xa{}f2.VectorStoreFilesPage=Lm;class V$ extends mr{create(t,r,n){return this._client.post(`/vector_stores/${t}/file_batches`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}retrieve(t,r,n){return this._client.get(`/vector_stores/${t}/file_batches/${r}`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}cancel(t,r,n){return this._client.post(`/vector_stores/${t}/file_batches/${r}/cancel`,{...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}async createAndPoll(t,r,n){const a=await this.create(t,r);return await this.poll(t,a.id,n)}listFiles(t,r,n={},a){return ra(n)?this.listFiles(t,r,{},n):this._client.getAPIList(`/vector_stores/${t}/file_batches/${r}/files`,Lm,{query:n,...a,headers:{"OpenAI-Beta":"assistants=v2",...a==null?void 0:a.headers}})}async poll(t,r,n){const a={...n==null?void 0:n.headers,"X-Stainless-Poll-Helper":"true"};for(n!=null&&n.pollIntervalMs&&(a["X-Stainless-Custom-Poll-Interval"]=n.pollIntervalMs.toString());;){const{data:i,response:o}=await this.retrieve(t,r,{...n,headers:a}).withResponse();switch(i.status){case"in_progress":let s=5e3;if(n!=null&&n.pollIntervalMs)s=n.pollIntervalMs;else{const u=o.headers.get("openai-poll-after-ms");if(u){const l=parseInt(u);isNaN(l)||(s=l)}}await nh(s);break;case"failed":case"cancelled":case"completed":return i}}}async uploadAndPoll(t,{files:r,fileIds:n=[]},a){if(r==null||r.length==0)throw new Error("No `files` provided to process. If you've already uploaded files you should use `.createAndPoll()` instead");const i=(a==null?void 0:a.maxConcurrency)??5,o=Math.min(i,r.length),s=this._client,u=r.values(),l=[...n];async function h(g){for(let b of g){const y=await s.files.create({file:b,purpose:"assistants"},a);l.push(y.id)}}const d=Array(o).fill(u).map(h);return await Aie(d),await this.createAndPoll(t,{file_ids:l})}}class hc extends mr{constructor(){super(...arguments),this.files=new f2(this._client),this.fileBatches=new V$(this._client)}create(t,r){return this._client.post("/vector_stores",{body:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}retrieve(t,r){return this._client.get(`/vector_stores/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}update(t,r,n){return this._client.post(`/vector_stores/${t}`,{body:r,...n,headers:{"OpenAI-Beta":"assistants=v2",...n==null?void 0:n.headers}})}list(t={},r){return ra(t)?this.list({},t):this._client.getAPIList("/vector_stores",h2,{query:t,...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}del(t,r){return this._client.delete(`/vector_stores/${t}`,{...r,headers:{"OpenAI-Beta":"assistants=v2",...r==null?void 0:r.headers}})}}class h2 extends Xa{}hc.VectorStoresPage=h2;hc.Files=f2;hc.VectorStoreFilesPage=Lm;hc.FileBatches=V$;class zs extends mr{constructor(){super(...arguments),this.realtime=new o2(this._client),this.vectorStores=new hc(this._client),this.chat=new E_(this._client),this.assistants=new n2(this._client),this.threads=new fc(this._client)}}zs.Realtime=o2;zs.VectorStores=hc;zs.VectorStoresPage=h2;zs.Assistants=n2;zs.AssistantsPage=a2;zs.Threads=fc;class U$ extends mr{create(t,r){return this._client.post("/completions",{body:t,...r,stream:t.stream??!1})}}class q$ extends mr{create(t,r){return this._client.post("/embeddings",{body:t,...r})}}class p2 extends mr{create(t,r){return this._client.post("/files",Gl({body:t,...r}))}retrieve(t,r){return this._client.get(`/files/${t}`,r)}list(t={},r){return ra(t)?this.list({},t):this._client.getAPIList("/files",m2,{query:t,...r})}del(t,r){return this._client.delete(`/files/${t}`,r)}content(t,r){return this._client.get(`/files/${t}/content`,{...r,headers:{Accept:"application/binary",...r==null?void 0:r.headers},__binaryResponse:!0})}retrieveContent(t,r){return this._client.get(`/files/${t}/content`,r)}async waitForProcessing(t,{pollInterval:r=5e3,maxWait:n=30*60*1e3}={}){const a=new Set(["processed","error","deleted"]),i=Date.now();let o=await this.retrieve(t);for(;!o.status||!a.has(o.status);)if(await nh(r),o=await this.retrieve(t),Date.now()-i>n)throw new e2({message:`Giving up on waiting for file ${t} to finish processing after ${n} milliseconds.`});return o}}class m2 extends Xa{}p2.FileObjectsPage=m2;class g2 extends mr{list(t,r={},n){return ra(r)?this.list(t,{},r):this._client.getAPIList(`/fine_tuning/jobs/${t}/checkpoints`,v2,{query:r,...n})}}class v2 extends Xa{}g2.FineTuningJobCheckpointsPage=v2;class pc extends mr{constructor(){super(...arguments),this.checkpoints=new g2(this._client)}create(t,r){return this._client.post("/fine_tuning/jobs",{body:t,...r})}retrieve(t,r){return this._client.get(`/fine_tuning/jobs/${t}`,r)}list(t={},r){return ra(t)?this.list({},t):this._client.getAPIList("/fine_tuning/jobs",b2,{query:t,...r})}cancel(t,r){return this._client.post(`/fine_tuning/jobs/${t}/cancel`,r)}listEvents(t,r={},n){return ra(r)?this.listEvents(t,{},r):this._client.getAPIList(`/fine_tuning/jobs/${t}/events`,y2,{query:r,...n})}}class b2 extends Xa{}class y2 extends Xa{}pc.FineTuningJobsPage=b2;pc.FineTuningJobEventsPage=y2;pc.Checkpoints=g2;pc.FineTuningJobCheckpointsPage=v2;class sh extends mr{constructor(){super(...arguments),this.jobs=new pc(this._client)}}sh.Jobs=pc;sh.FineTuningJobsPage=b2;sh.FineTuningJobEventsPage=y2;class W$ extends mr{createVariation(t,r){return this._client.post("/images/variations",Gl({body:t,...r}))}edit(t,r){return this._client.post("/images/edits",Gl({body:t,...r}))}generate(t,r){return this._client.post("/images/generations",{body:t,...r})}}class _2 extends mr{retrieve(t,r){return this._client.get(`/models/${t}`,r)}list(t){return this._client.getAPIList("/models",w2,t)}del(t,r){return this._client.delete(`/models/${t}`,r)}}class w2 extends mie{}_2.ModelsPage=w2;class Y$ extends mr{create(t,r){return this._client.post("/moderations",{body:t,...r})}}class G$ extends mr{create(t,r,n){return this._client.post(`/uploads/${t}/parts`,Gl({body:r,...n}))}}class x2 extends mr{constructor(){super(...arguments),this.parts=new G$(this._client)}create(t,r){return this._client.post("/uploads",{body:t,...r})}cancel(t,r){return this._client.post(`/uploads/${t}/cancel`,r)}complete(t,r,n){return this._client.post(`/uploads/${t}/complete`,{body:r,...n})}}x2.Parts=G$;var K$;class ur extends rie{constructor({baseURL:t=B0("OPENAI_BASE_URL"),apiKey:r=B0("OPENAI_API_KEY"),organization:n=B0("OPENAI_ORG_ID")??null,project:a=B0("OPENAI_PROJECT_ID")??null,...i}={}){if(r===void 0)throw new rr("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");const o={apiKey:r,organization:n,project:a,...i,baseURL:t||"https://api.openai.com/v1"};if(!o.dangerouslyAllowBrowser&&hie())throw new rr(`It looks like you're running in a browser-like environment.
521
-
522
- This is disabled by default, as it risks exposing your secret API credentials to attackers.
523
- If you understand the risks and have appropriate mitigations in place,
524
- you can set the \`dangerouslyAllowBrowser\` option to \`true\`, e.g.,
525
-
526
- new OpenAI({ apiKey, dangerouslyAllowBrowser: true });
527
-
528
- https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
529
- `);super({baseURL:o.baseURL,timeout:o.timeout??6e5,httpAgent:o.httpAgent,maxRetries:o.maxRetries,fetch:o.fetch}),this.completions=new U$(this),this.chat=new jm(this),this.embeddings=new q$(this),this.files=new p2(this),this.images=new W$(this),this.audio=new ah(this),this.moderations=new Y$(this),this.models=new _2(this),this.fineTuning=new sh(this),this.beta=new zs(this),this.batches=new t2(this),this.uploads=new x2(this),this._options=o,this.apiKey=r,this.organization=n,this.project=a}defaultQuery(){return this._options.defaultQuery}defaultHeaders(t){return{...super.defaultHeaders(t),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project,...this._options.defaultHeaders}}authHeaders(t){return{Authorization:`Bearer ${this.apiKey}`}}stringifyQuery(t){return jae(t,{arrayFormat:"brackets"})}}K$=ur;ur.OpenAI=K$;ur.DEFAULT_TIMEOUT=6e5;ur.OpenAIError=rr;ur.APIError=Hn;ur.APIConnectionError=Am;ur.APIConnectionTimeoutError=e2;ur.APIUserAbortError=Fi;ur.NotFoundError=a$;ur.ConflictError=i$;ur.RateLimitError=s$;ur.BadRequestError=t$;ur.AuthenticationError=r$;ur.InternalServerError=u$;ur.PermissionDeniedError=n$;ur.UnprocessableEntityError=o$;ur.toFile=p$;ur.fileFromPath=Qk;ur.Completions=U$;ur.Chat=jm;ur.ChatCompletionsPage=Fm;ur.Embeddings=q$;ur.Files=p2;ur.FileObjectsPage=m2;ur.Images=W$;ur.Audio=ah;ur.Moderations=Y$;ur.Models=_2;ur.ModelsPage=w2;ur.FineTuning=sh;ur.Beta=zs;ur.Batches=t2;ur.BatchesPage=r2;ur.Uploads=x2;const Die=[{key:"1",label:"热点",description:"What are you interested in?",children:[{key:"1-1",description:"创建物料?"}]},{key:"2",label:"引导",description:"How to design a good product?",children:[{key:"2-1",description:"查询知识库"}]},{key:"3",label:"引导",description:"How to design a good product?",children:[{key:"2-1",description:"查询知识库"}]},{key:"4",label:"引导",description:"How to design ?",children:[{key:"2-1",description:"查询知识库"}]}],Mie=({onPromptsItemClick:e})=>B.jsxs(ue.Space,{direction:"vertical",size:16,className:Oi.placeholder,children:[B.jsx(Uk,{variant:"borderless",title:"Hello, I'm OnChain Assistant",description:"How can I help you today?",extra:B.jsx(ue.Space,{})}),B.jsx("div",{children:B.jsx($m,{title:"Suggested?",items:Die,styles:{list:{width:"100%"},item:{flex:1}},onItemClick:e})})]}),b4={};function Nie(e){let t=b4[e];if(t)return t;t=b4[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);t.push(n)}for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function Kl(e,t){typeof t!="string"&&(t=Kl.defaultChars);const r=Nie(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let a="";for(let i=0,o=n.length;i<o;i+=3){const s=parseInt(n.slice(i+1,i+3),16);if(s<128){a+=r[s];continue}if((s&224)===192&&i+3<o){const u=parseInt(n.slice(i+4,i+6),16);if((u&192)===128){const l=s<<6&1984|u&63;l<128?a+="��":a+=String.fromCharCode(l),i+=3;continue}}if((s&240)===224&&i+6<o){const u=parseInt(n.slice(i+4,i+6),16),l=parseInt(n.slice(i+7,i+9),16);if((u&192)===128&&(l&192)===128){const h=s<<12&61440|u<<6&4032|l&63;h<2048||h>=55296&&h<=57343?a+="���":a+=String.fromCharCode(h),i+=6;continue}}if((s&248)===240&&i+9<o){const u=parseInt(n.slice(i+4,i+6),16),l=parseInt(n.slice(i+7,i+9),16),h=parseInt(n.slice(i+10,i+12),16);if((u&192)===128&&(l&192)===128&&(h&192)===128){let d=s<<18&1835008|u<<12&258048|l<<6&4032|h&63;d<65536||d>1114111?a+="����":(d-=65536,a+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}a+="�"}return a})}Kl.defaultChars=";/?:@&=+$,#";Kl.componentChars="";const y4={};function Iie(e){let t=y4[e];if(t)return t;t=y4[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function uh(e,t,r){typeof t!="string"&&(r=t,t=uh.defaultChars),typeof r>"u"&&(r=!0);const n=Iie(t);let a="";for(let i=0,o=e.length;i<o;i++){const s=e.charCodeAt(i);if(r&&s===37&&i+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){a+=e.slice(i,i+3),i+=2;continue}if(s<128){a+=n[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<o){const u=e.charCodeAt(i+1);if(u>=56320&&u<=57343){a+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}a+="%EF%BF%BD";continue}a+=encodeURIComponent(e[i])}return a}uh.defaultChars=";/?:@&=+$,-_.!~*'()#";uh.componentChars="-_.!~*'()";function S2(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Vp(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Fie=/^([a-z0-9.+-]+:)/i,jie=/:[0-9]*$/,Lie=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,zie=["<",">",'"',"`"," ","\r",`
530
- `," "],Bie=["{","}","|","\\","^","`"].concat(zie),Hie=["'"].concat(Bie),_4=["%","/","?",";","#"].concat(Hie),w4=["/","?","#"],Vie=255,x4=/^[+a-z0-9A-Z_-]{0,63}$/,Uie=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S4={javascript:!0,"javascript:":!0},C4={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function C2(e,t){if(e&&e instanceof Vp)return e;const r=new Vp;return r.parse(e,t),r}Vp.prototype.parse=function(e,t){let r,n,a,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const l=Lie.exec(i);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let o=Fie.exec(i);if(o&&(o=o[0],r=o.toLowerCase(),this.protocol=o,i=i.substr(o.length)),(t||o||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=i.substr(0,2)==="//",a&&!(o&&S4[o])&&(i=i.substr(2),this.slashes=!0)),!S4[o]&&(a||o&&!C4[o])){let l=-1;for(let y=0;y<w4.length;y++)n=i.indexOf(w4[y]),n!==-1&&(l===-1||n<l)&&(l=n);let h,d;l===-1?d=i.lastIndexOf("@"):d=i.lastIndexOf("@",l),d!==-1&&(h=i.slice(0,d),i=i.slice(d+1),this.auth=h),l=-1;for(let y=0;y<_4.length;y++)n=i.indexOf(_4[y]),n!==-1&&(l===-1||n<l)&&(l=n);l===-1&&(l=i.length),i[l-1]===":"&&l--;const g=i.slice(0,l);i=i.slice(l),this.parseHost(g),this.hostname=this.hostname||"";const b=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!b){const y=this.hostname.split(/\./);for(let w=0,S=y.length;w<S;w++){const E=y[w];if(E&&!E.match(x4)){let _="";for(let C=0,f=E.length;C<f;C++)E.charCodeAt(C)>127?_+="x":_+=E[C];if(!_.match(x4)){const C=y.slice(0,w),f=y.slice(w+1),p=E.match(Uie);p&&(C.push(p[1]),f.unshift(p[2])),f.length&&(i=f.join(".")+i),this.hostname=C.join(".");break}}}}this.hostname.length>Vie&&(this.hostname=""),b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=i.indexOf("#");s!==-1&&(this.hash=i.substr(s),i=i.slice(0,s));const u=i.indexOf("?");return u!==-1&&(this.search=i.substr(u),i=i.slice(0,u)),i&&(this.pathname=i),C4[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Vp.prototype.parseHost=function(e){let t=jie.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const qie=Object.freeze(Object.defineProperty({__proto__:null,decode:Kl,encode:uh,format:S2,parse:C2},Symbol.toStringTag,{value:"Module"})),X$=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Z$=/[\0-\x1F\x7F-\x9F]/,Wie=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,E2=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,J$=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Q$=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Yie=Object.freeze(Object.defineProperty({__proto__:null,Any:X$,Cc:Z$,Cf:Wie,P:E2,S:J$,Z:Q$},Symbol.toStringTag,{value:"Module"})),Gie=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Kie=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Sb;const Xie=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Zie=(Sb=String.fromCodePoint)!==null&&Sb!==void 0?Sb:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Jie(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Xie.get(e))!==null&&t!==void 0?t:e}var Pn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Pn||(Pn={}));const Qie=32;var Ns;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ns||(Ns={}));function R_(e){return e>=Pn.ZERO&&e<=Pn.NINE}function eoe(e){return e>=Pn.UPPER_A&&e<=Pn.UPPER_F||e>=Pn.LOWER_A&&e<=Pn.LOWER_F}function toe(e){return e>=Pn.UPPER_A&&e<=Pn.UPPER_Z||e>=Pn.LOWER_A&&e<=Pn.LOWER_Z||R_(e)}function roe(e){return e===Pn.EQUALS||toe(e)}var Rn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Rn||(Rn={}));var Ts;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ts||(Ts={}));class noe{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Rn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ts.Strict}startEntity(t){this.decodeMode=t,this.state=Rn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Rn.EntityStart:return t.charCodeAt(r)===Pn.NUM?(this.state=Rn.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Rn.NamedEntity,this.stateNamedEntity(t,r));case Rn.NumericStart:return this.stateNumericStart(t,r);case Rn.NumericDecimal:return this.stateNumericDecimal(t,r);case Rn.NumericHex:return this.stateNumericHex(t,r);case Rn.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|Qie)===Pn.LOWER_X?(this.state=Rn.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Rn.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,a){if(r!==n){const i=n-r;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(r,i),a),this.consumed+=i}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(R_(a)||eoe(a))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(R_(a))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Pn.SEMI)this.consumed+=1;else if(this.decodeMode===Ts.Strict)return 0;return this.emitCodePoint(Jie(this.result),this.consumed),this.errors&&(t!==Pn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let a=n[this.treeIndex],i=(a&Ns.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const o=t.charCodeAt(r);if(this.treeIndex=aoe(n,a,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===Ts.Attribute&&(i===0||roe(o))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],i=(a&Ns.VALUE_LENGTH)>>14,i!==0){if(o===Pn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ts.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,a=(n[r]&Ns.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[t]&~Ns.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case Rn.NamedEntity:return this.result!==0&&(this.decodeMode!==Ts.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Rn.NumericDecimal:return this.emitNumericEntity(0,2);case Rn.NumericHex:return this.emitNumericEntity(0,3);case Rn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Rn.EntityStart:return 0}}}function eA(e){let t="";const r=new noe(e,n=>t+=Zie(n));return function(a,i){let o=0,s=0;for(;(s=a.indexOf("&",s))>=0;){t+=a.slice(o,s),r.startEntity(i);const l=r.write(a,s+1);if(l<0){o=s+r.end();break}o=s+l,s=l===0?o+1:o}const u=t+a.slice(o);return t="",u}}function aoe(e,t,r,n){const a=(t&Ns.BRANCH_LENGTH)>>7,i=t&Ns.JUMP_TABLE;if(a===0)return i!==0&&n===i?r:-1;if(i){const u=n-i;return u<0||u>=a?-1:e[r+u]-1}let o=r,s=o+a-1;for(;o<=s;){const u=o+s>>>1,l=e[u];if(l<n)o=u+1;else if(l>n)s=u-1;else return e[u+a]}return-1}const ioe=eA(Gie);eA(Kie);function tA(e,t=Ts.Legacy){return ioe(e,t)}function ooe(e){return Object.prototype.toString.call(e)}function O2(e){return ooe(e)==="[object String]"}const soe=Object.prototype.hasOwnProperty;function uoe(e,t){return soe.call(e,t)}function zm(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function rA(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function R2(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Up(e){if(e>65535){e-=65536;const t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}const nA=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,loe=/&([a-z#][a-z0-9]{1,31});/gi,coe=new RegExp(nA.source+"|"+loe.source,"gi"),doe=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function foe(e,t){if(t.charCodeAt(0)===35&&doe.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return R2(n)?Up(n):e}const r=tA(e);return r!==e?r:e}function hoe(e){return e.indexOf("\\")<0?e:e.replace(nA,"$1")}function Xl(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(coe,function(t,r,n){return r||foe(t,n)})}const poe=/[&<>"]/,moe=/[&<>"]/g,goe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function voe(e){return goe[e]}function js(e){return poe.test(e)?e.replace(moe,voe):e}const boe=/[.?*+^$[\]\\(){}|-]/g;function yoe(e){return e.replace(boe,"\\$&")}function zr(e){switch(e){case 9:case 32:return!0}return!1}function jf(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Lf(e){return E2.test(e)||J$.test(e)}function zf(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Bm(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const _oe={mdurl:qie,ucmicro:Yie},woe=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:rA,assign:zm,escapeHtml:js,escapeRE:yoe,fromCodePoint:Up,has:uoe,isMdAsciiPunct:zf,isPunctChar:Lf,isSpace:zr,isString:O2,isValidEntityCode:R2,isWhiteSpace:jf,lib:_oe,normalizeReference:Bm,unescapeAll:Xl,unescapeMd:hoe},Symbol.toStringTag,{value:"Module"}));function xoe(e,t,r){let n,a,i,o;const s=e.posMax,u=e.pos;for(e.pos=t+1,n=1;e.pos<s;){if(i=e.src.charCodeAt(e.pos),i===93&&(n--,n===0)){a=!0;break}if(o=e.pos,e.md.inline.skipToken(e),i===91){if(o===e.pos-1)n++;else if(r)return e.pos=u,-1}}let l=-1;return a&&(l=e.pos),e.pos=u,l}function Soe(e,t,r){let n,a=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<r;){if(n=e.charCodeAt(a),n===10||n===60)return i;if(n===62)return i.pos=a+1,i.str=Xl(e.slice(t+1,a)),i.ok=!0,i;if(n===92&&a+1<r){a+=2;continue}a++}return i}let o=0;for(;a<r&&(n=e.charCodeAt(a),!(n===32||n<32||n===127));){if(n===92&&a+1<r){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(n===40&&(o++,o>32))return i;if(n===41){if(o===0)break;o--}a++}return t===a||o!==0||(i.str=Xl(e.slice(t,a)),i.pos=a,i.ok=!0),i}function Coe(e,t,r,n){let a,i=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(i>=r)return o;let s=e.charCodeAt(i);if(s!==34&&s!==39&&s!==40)return o;t++,i++,s===40&&(s=41),o.marker=s}for(;i<r;){if(a=e.charCodeAt(i),a===o.marker)return o.pos=i+1,o.str+=Xl(e.slice(t,i)),o.ok=!0,o;if(a===40&&o.marker===41)return o;a===92&&i+1<r&&i++,i++}return o.can_continue=!0,o.str+=Xl(e.slice(t,i)),o}const Eoe=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Soe,parseLinkLabel:xoe,parseLinkTitle:Coe},Symbol.toStringTag,{value:"Module"})),bo={};bo.code_inline=function(e,t,r,n,a){const i=e[t];return"<code"+a.renderAttrs(i)+">"+js(i.content)+"</code>"};bo.code_block=function(e,t,r,n,a){const i=e[t];return"<pre"+a.renderAttrs(i)+"><code>"+js(e[t].content)+`</code></pre>
531
- `};bo.fence=function(e,t,r,n,a){const i=e[t],o=i.info?Xl(i.info).trim():"";let s="",u="";if(o){const h=o.split(/(\s+)/g);s=h[0],u=h.slice(2).join("")}let l;if(r.highlight?l=r.highlight(i.content,s,u)||js(i.content):l=js(i.content),l.indexOf("<pre")===0)return l+`
532
- `;if(o){const h=i.attrIndex("class"),d=i.attrs?i.attrs.slice():[];h<0?d.push(["class",r.langPrefix+s]):(d[h]=d[h].slice(),d[h][1]+=" "+r.langPrefix+s);const g={attrs:d};return`<pre><code${a.renderAttrs(g)}>${l}</code></pre>
533
- `}return`<pre><code${a.renderAttrs(i)}>${l}</code></pre>
534
- `};bo.image=function(e,t,r,n,a){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=a.renderInlineAsText(i.children,r,n),a.renderToken(e,t,r)};bo.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
535
- `:`<br>
536
- `};bo.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
537
- `:`<br>
538
- `:`
539
- `};bo.text=function(e,t){return js(e[t].content)};bo.html_block=function(e,t){return e[t].content};bo.html_inline=function(e,t){return e[t].content};function mc(){this.rules=zm({},bo)}mc.prototype.renderAttrs=function(t){let r,n,a;if(!t.attrs)return"";for(a="",r=0,n=t.attrs.length;r<n;r++)a+=" "+js(t.attrs[r][0])+'="'+js(t.attrs[r][1])+'"';return a};mc.prototype.renderToken=function(t,r,n){const a=t[r];let i="";if(a.hidden)return"";a.block&&a.nesting!==-1&&r&&t[r-1].hidden&&(i+=`
540
- `),i+=(a.nesting===-1?"</":"<")+a.tag,i+=this.renderAttrs(a),a.nesting===0&&n.xhtmlOut&&(i+=" /");let o=!1;if(a.block&&(o=!0,a.nesting===1&&r+1<t.length)){const s=t[r+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===a.tag)&&(o=!1)}return i+=o?`>
541
- `:">",i};mc.prototype.renderInline=function(e,t,r){let n="";const a=this.rules;for(let i=0,o=e.length;i<o;i++){const s=e[i].type;typeof a[s]<"u"?n+=a[s](e,i,t,r,this):n+=this.renderToken(e,i,t)}return n};mc.prototype.renderInlineAsText=function(e,t,r){let n="";for(let a=0,i=e.length;a<i;a++)switch(e[a].type){case"text":n+=e[a].content;break;case"image":n+=this.renderInlineAsText(e[a].children,t,r);break;case"html_inline":case"html_block":n+=e[a].content;break;case"softbreak":case"hardbreak":n+=`
542
- `;break}return n};mc.prototype.render=function(e,t,r){let n="";const a=this.rules;for(let i=0,o=e.length;i<o;i++){const s=e[i].type;s==="inline"?n+=this.renderInline(e[i].children,t,r):typeof a[s]<"u"?n+=a[s](e,i,t,r,this):n+=this.renderToken(e,i,t,r)}return n};function Ca(){this.__rules__=[],this.__cache__=null}Ca.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ca.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})};Ca.prototype.at=function(e,t,r){const n=this.__find__(e),a=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=a.alt||[],this.__cache__=null};Ca.prototype.before=function(e,t,r,n){const a=this.__find__(e),i=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};Ca.prototype.after=function(e,t,r,n){const a=this.__find__(e),i=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};Ca.prototype.push=function(e,t,r){const n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Ca.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!0,r.push(n)},this),this.__cache__=null,r};Ca.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)};Ca.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!1,r.push(n)},this),this.__cache__=null,r};Ca.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Wi(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Wi.prototype.attrIndex=function(t){if(!this.attrs)return-1;const r=this.attrs;for(let n=0,a=r.length;n<a;n++)if(r[n][0]===t)return n;return-1};Wi.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Wi.prototype.attrSet=function(t,r){const n=this.attrIndex(t),a=[t,r];n<0?this.attrPush(a):this.attrs[n]=a};Wi.prototype.attrGet=function(t){const r=this.attrIndex(t);let n=null;return r>=0&&(n=this.attrs[r][1]),n};Wi.prototype.attrJoin=function(t,r){const n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};function aA(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}aA.prototype.Token=Wi;const Ooe=/\r\n?|\n/g,Roe=/\0/g;function Toe(e){let t;t=e.src.replace(Ooe,`
543
- `),t=t.replace(Roe,"�"),e.src=t}function Poe(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function koe(e){const t=e.tokens;for(let r=0,n=t.length;r<n;r++){const a=t[r];a.type==="inline"&&e.md.inline.parse(a.content,e.md,e.env,a.children)}}function $oe(e){return/^<a[>\s]/i.test(e)}function Aoe(e){return/^<\/a\s*>/i.test(e)}function Doe(e){const t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r<n;r++){if(t[r].type!=="inline"||!e.md.linkify.pretest(t[r].content))continue;let a=t[r].children,i=0;for(let o=a.length-1;o>=0;o--){const s=a[o];if(s.type==="link_close"){for(o--;a[o].level!==s.level&&a[o].type!=="link_open";)o--;continue}if(s.type==="html_inline"&&($oe(s.content)&&i>0&&i--,Aoe(s.content)&&i++),!(i>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const u=s.content;let l=e.md.linkify.match(u);const h=[];let d=s.level,g=0;l.length>0&&l[0].index===0&&o>0&&a[o-1].type==="text_special"&&(l=l.slice(1));for(let b=0;b<l.length;b++){const y=l[b].url,w=e.md.normalizeLink(y);if(!e.md.validateLink(w))continue;let S=l[b].text;l[b].schema?l[b].schema==="mailto:"&&!/^mailto:/i.test(S)?S=e.md.normalizeLinkText("mailto:"+S).replace(/^mailto:/,""):S=e.md.normalizeLinkText(S):S=e.md.normalizeLinkText("http://"+S).replace(/^http:\/\//,"");const E=l[b].index;if(E>g){const p=new e.Token("text","",0);p.content=u.slice(g,E),p.level=d,h.push(p)}const _=new e.Token("link_open","a",1);_.attrs=[["href",w]],_.level=d++,_.markup="linkify",_.info="auto",h.push(_);const C=new e.Token("text","",0);C.content=S,C.level=d,h.push(C);const f=new e.Token("link_close","a",-1);f.level=--d,f.markup="linkify",f.info="auto",h.push(f),g=l[b].lastIndex}if(g<u.length){const b=new e.Token("text","",0);b.content=u.slice(g),b.level=d,h.push(b)}t[r].children=a=rA(a,o,h)}}}}const iA=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Moe=/\((c|tm|r)\)/i,Noe=/\((c|tm|r)\)/ig,Ioe={c:"©",r:"®",tm:"™"};function Foe(e,t){return Ioe[t.toLowerCase()]}function joe(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&(n.content=n.content.replace(Noe,Foe)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function Loe(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&iA.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function zoe(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Moe.test(e.tokens[t].content)&&joe(e.tokens[t].children),iA.test(e.tokens[t].content)&&Loe(e.tokens[t].children))}const Boe=/['"]/,E4=/['"]/g,O4="’";function W0(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function Hoe(e,t){let r;const n=[];for(let a=0;a<e.length;a++){const i=e[a],o=e[a].level;for(r=n.length-1;r>=0&&!(n[r].level<=o);r--);if(n.length=r+1,i.type!=="text")continue;let s=i.content,u=0,l=s.length;e:for(;u<l;){E4.lastIndex=u;const h=E4.exec(s);if(!h)break;let d=!0,g=!0;u=h.index+1;const b=h[0]==="'";let y=32;if(h.index-1>=0)y=s.charCodeAt(h.index-1);else for(r=a-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){y=e[r].content.charCodeAt(e[r].content.length-1);break}let w=32;if(u<l)w=s.charCodeAt(u);else for(r=a+1;r<e.length&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r++)if(e[r].content){w=e[r].content.charCodeAt(0);break}const S=zf(y)||Lf(String.fromCharCode(y)),E=zf(w)||Lf(String.fromCharCode(w)),_=jf(y),C=jf(w);if(C?d=!1:E&&(_||S||(d=!1)),_?g=!1:S&&(C||E||(g=!1)),w===34&&h[0]==='"'&&y>=48&&y<=57&&(g=d=!1),d&&g&&(d=S,g=E),!d&&!g){b&&(i.content=W0(i.content,h.index,O4));continue}if(g)for(r=n.length-1;r>=0;r--){let f=n[r];if(n[r].level<o)break;if(f.single===b&&n[r].level===o){f=n[r];let p,v;b?(p=t.md.options.quotes[2],v=t.md.options.quotes[3]):(p=t.md.options.quotes[0],v=t.md.options.quotes[1]),i.content=W0(i.content,h.index,v),e[f.token].content=W0(e[f.token].content,f.pos,p),u+=v.length-1,f.token===a&&(u+=p.length-1),s=i.content,l=s.length,n.length=r;continue e}}d?n.push({token:a,pos:h.index,single:b,level:o}):g&&b&&(i.content=W0(i.content,h.index,O4))}}}function Voe(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Boe.test(e.tokens[t].content)||Hoe(e.tokens[t].children,e)}function Uoe(e){let t,r;const n=e.tokens,a=n.length;for(let i=0;i<a;i++){if(n[i].type!=="inline")continue;const o=n[i].children,s=o.length;for(t=0;t<s;t++)o[t].type==="text_special"&&(o[t].type="text");for(t=r=0;t<s;t++)o[t].type==="text"&&t+1<s&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==r&&(o[r]=o[t]),r++);t!==r&&(o.length=r)}}const Cb=[["normalize",Toe],["block",Poe],["inline",koe],["linkify",Doe],["replacements",zoe],["smartquotes",Voe],["text_join",Uoe]];function T2(){this.ruler=new Ca;for(let e=0;e<Cb.length;e++)this.ruler.push(Cb[e][0],Cb[e][1])}T2.prototype.process=function(e){const t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)};T2.prototype.State=aA;function yo(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const a=this.src;for(let i=0,o=0,s=0,u=0,l=a.length,h=!1;o<l;o++){const d=a.charCodeAt(o);if(!h)if(zr(d)){s++,d===9?u+=4-u%4:u++;continue}else h=!0;(d===10||o===l-1)&&(d!==10&&o++,this.bMarks.push(i),this.eMarks.push(o),this.tShift.push(s),this.sCount.push(u),this.bsCount.push(0),h=!1,s=0,u=0,i=o+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}yo.prototype.push=function(e,t,r){const n=new Wi(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n};yo.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};yo.prototype.skipEmptyLines=function(t){for(let r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};yo.prototype.skipSpaces=function(t){for(let r=this.src.length;t<r;t++){const n=this.src.charCodeAt(t);if(!zr(n))break}return t};yo.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!zr(this.src.charCodeAt(--t)))return t+1;return t};yo.prototype.skipChars=function(t,r){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};yo.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t};yo.prototype.getLines=function(t,r,n,a){if(t>=r)return"";const i=new Array(r-t);for(let o=0,s=t;s<r;s++,o++){let u=0;const l=this.bMarks[s];let h=l,d;for(s+1<r||a?d=this.eMarks[s]+1:d=this.eMarks[s];h<d&&u<n;){const g=this.src.charCodeAt(h);if(zr(g))g===9?u+=4-(u+this.bsCount[s])%4:u++;else if(h-l<this.tShift[s])u++;else break;h++}u>n?i[o]=new Array(u-n+1).join(" ")+this.src.slice(h,d):i[o]=this.src.slice(h,d)}return i.join("")};yo.prototype.Token=Wi;const qoe=65536;function Eb(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function R4(e){const t=[],r=e.length;let n=0,a=e.charCodeAt(n),i=!1,o=0,s="";for(;n<r;)a===124&&(i?(s+=e.substring(o,n-1),o=n):(t.push(s+e.substring(o,n)),s="",o=n+1)),i=a===92,n++,a=e.charCodeAt(n);return t.push(s+e.substring(o)),t}function Woe(e,t,r,n){if(t+2>r)return!1;let a=t+1;if(e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)return!1;let i=e.bMarks[a]+e.tShift[a];if(i>=e.eMarks[a])return!1;const o=e.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58||i>=e.eMarks[a])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58&&!zr(s)||o===45&&zr(s))return!1;for(;i<e.eMarks[a];){const f=e.src.charCodeAt(i);if(f!==124&&f!==45&&f!==58&&!zr(f))return!1;i++}let u=Eb(e,t+1),l=u.split("|");const h=[];for(let f=0;f<l.length;f++){const p=l[f].trim();if(!p){if(f===0||f===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(p))return!1;p.charCodeAt(p.length-1)===58?h.push(p.charCodeAt(0)===58?"center":"right"):p.charCodeAt(0)===58?h.push("left"):h.push("")}if(u=Eb(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=R4(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const d=l.length;if(d===0||d!==h.length)return!1;if(n)return!0;const g=e.parentType;e.parentType="table";const b=e.md.block.ruler.getRules("blockquote"),y=e.push("table_open","table",1),w=[t,0];y.map=w;const S=e.push("thead_open","thead",1);S.map=[t,t+1];const E=e.push("tr_open","tr",1);E.map=[t,t+1];for(let f=0;f<l.length;f++){const p=e.push("th_open","th",1);h[f]&&(p.attrs=[["style","text-align:"+h[f]]]);const v=e.push("inline","",0);v.content=l[f].trim(),v.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let _,C=0;for(a=t+2;a<r&&!(e.sCount[a]<e.blkIndent);a++){let f=!1;for(let v=0,x=b.length;v<x;v++)if(b[v](e,a,r,!0)){f=!0;break}if(f||(u=Eb(e,a).trim(),!u)||e.sCount[a]-e.blkIndent>=4||(l=R4(u),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),C+=d-l.length,C>qoe))break;if(a===t+2){const v=e.push("tbody_open","tbody",1);v.map=_=[t+2,0]}const p=e.push("tr_open","tr",1);p.map=[a,a+1];for(let v=0;v<d;v++){const x=e.push("td_open","td",1);h[v]&&(x.attrs=[["style","text-align:"+h[v]]]);const k=e.push("inline","",0);k.content=l[v]?l[v].trim():"",k.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return _&&(e.push("tbody_close","tbody",-1),_[1]=a),e.push("table_close","table",-1),w[1]=a,e.parentType=g,e.line=a,!0}function Yoe(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,a=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,a=n;continue}break}e.line=a;const i=e.push("code_block","code",0);return i.content=e.getLines(t,a,4+e.blkIndent,!1)+`
544
- `,i.map=[t,e.line],!0}function Goe(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||a+3>i)return!1;const o=e.src.charCodeAt(a);if(o!==126&&o!==96)return!1;let s=a;a=e.skipChars(a,o);let u=a-s;if(u<3)return!1;const l=e.src.slice(s,a),h=e.src.slice(a,i);if(o===96&&h.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let d=t,g=!1;for(;d++,!(d>=r||(a=s=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],a<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(a)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(a=e.skipChars(a,o),!(a-s<u)&&(a=e.skipSpaces(a),!(a<i)))){g=!0;break}u=e.sCount[t],e.line=d+(g?1:0);const b=e.push("fence","code",0);return b.info=h,b.content=e.getLines(t+1,d,u,!0),b.markup=l,b.map=[t,e.line],!0}function Koe(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==62)return!1;if(n)return!0;const s=[],u=[],l=[],h=[],d=e.md.block.ruler.getRules("blockquote"),g=e.parentType;e.parentType="blockquote";let b=!1,y;for(y=t;y<r;y++){const C=e.sCount[y]<e.blkIndent;if(a=e.bMarks[y]+e.tShift[y],i=e.eMarks[y],a>=i)break;if(e.src.charCodeAt(a++)===62&&!C){let p=e.sCount[y]+1,v,x;e.src.charCodeAt(a)===32?(a++,p++,x=!1,v=!0):e.src.charCodeAt(a)===9?(v=!0,(e.bsCount[y]+p)%4===3?(a++,p++,x=!1):x=!0):v=!1;let k=p;for(s.push(e.bMarks[y]),e.bMarks[y]=a;a<i;){const O=e.src.charCodeAt(a);if(zr(O))O===9?k+=4-(k+e.bsCount[y]+(x?1:0))%4:k++;else break;a++}b=a>=i,u.push(e.bsCount[y]),e.bsCount[y]=e.sCount[y]+1+(v?1:0),l.push(e.sCount[y]),e.sCount[y]=k-p,h.push(e.tShift[y]),e.tShift[y]=a-e.bMarks[y];continue}if(b)break;let f=!1;for(let p=0,v=d.length;p<v;p++)if(d[p](e,y,r,!0)){f=!0;break}if(f){e.lineMax=y,e.blkIndent!==0&&(s.push(e.bMarks[y]),u.push(e.bsCount[y]),h.push(e.tShift[y]),l.push(e.sCount[y]),e.sCount[y]-=e.blkIndent);break}s.push(e.bMarks[y]),u.push(e.bsCount[y]),h.push(e.tShift[y]),l.push(e.sCount[y]),e.sCount[y]=-1}const w=e.blkIndent;e.blkIndent=0;const S=e.push("blockquote_open","blockquote",1);S.markup=">";const E=[t,0];S.map=E,e.md.block.tokenize(e,t,y);const _=e.push("blockquote_close","blockquote",-1);_.markup=">",e.lineMax=o,e.parentType=g,E[1]=e.line;for(let C=0;C<h.length;C++)e.bMarks[C+t]=s[C],e.tShift[C+t]=h[C],e.sCount[C+t]=l[C],e.bsCount[C+t]=u[C];return e.blkIndent=w,!0}function Xoe(e,t,r,n){const a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(i++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;i<a;){const l=e.src.charCodeAt(i++);if(l!==o&&!zr(l))return!1;l===o&&s++}if(s<3)return!1;if(n)return!0;e.line=t+1;const u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=Array(s+1).join(String.fromCharCode(o)),!0}function T4(e,t){const r=e.eMarks[t];let n=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(n++);if(a!==42&&a!==45&&a!==43)return-1;if(n<r){const i=e.src.charCodeAt(n);if(!zr(i))return-1}return n}function P4(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];let a=r;if(a+1>=n)return-1;let i=e.src.charCodeAt(a++);if(i<48||i>57)return-1;for(;;){if(a>=n)return-1;if(i=e.src.charCodeAt(a++),i>=48&&i<=57){if(a-r>=10)return-1;continue}if(i===41||i===46)break;return-1}return a<n&&(i=e.src.charCodeAt(a),!zr(i))?-1:a}function Zoe(e,t){const r=e.level+2;for(let n=t+2,a=e.tokens.length-2;n<a;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function Joe(e,t,r,n){let a,i,o,s,u=t,l=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let h=!1;n&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(h=!0);let d,g,b;if((b=P4(e,u))>=0){if(d=!0,o=e.bMarks[u]+e.tShift[u],g=Number(e.src.slice(o,b-1)),h&&g!==1)return!1}else if((b=T4(e,u))>=0)d=!1;else return!1;if(h&&e.skipSpaces(b)>=e.eMarks[u])return!1;if(n)return!0;const y=e.src.charCodeAt(b-1),w=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),g!==1&&(s.attrs=[["start",g]])):s=e.push("bullet_list_open","ul",1);const S=[u,0];s.map=S,s.markup=String.fromCharCode(y);let E=!1;const _=e.md.block.ruler.getRules("list"),C=e.parentType;for(e.parentType="list";u<r;){i=b,a=e.eMarks[u];const f=e.sCount[u]+b-(e.bMarks[u]+e.tShift[u]);let p=f;for(;i<a;){const F=e.src.charCodeAt(i);if(F===9)p+=4-(p+e.bsCount[u])%4;else if(F===32)p++;else break;i++}const v=i;let x;v>=a?x=1:x=p-f,x>4&&(x=1);const k=f+x;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(y);const O=[u,0];s.map=O,d&&(s.info=e.src.slice(o,b-1));const $=e.tight,D=e.tShift[u],V=e.sCount[u],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=k,e.tight=!0,e.tShift[u]=v-e.bMarks[u],e.sCount[u]=p,v>=a&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,u,r,!0),(!e.tight||E)&&(l=!1),E=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=I,e.tShift[u]=D,e.sCount[u]=V,e.tight=$,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(y),u=e.line,O[1]=u,u>=r||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let N=!1;for(let F=0,T=_.length;F<T;F++)if(_[F](e,u,r,!0)){N=!0;break}if(N)break;if(d){if(b=P4(e,u),b<0)break;o=e.bMarks[u]+e.tShift[u]}else if(b=T4(e,u),b<0)break;if(y!==e.src.charCodeAt(b-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(y),S[1]=u,e.line=u,e.parentType=C,l&&Zoe(e,w),!0}function Qoe(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(a)!==91)return!1;function s(_){const C=e.lineMax;if(_>=C||e.isEmpty(_))return null;let f=!1;if(e.sCount[_]-e.blkIndent>3&&(f=!0),e.sCount[_]<0&&(f=!0),!f){const x=e.md.block.ruler.getRules("reference"),k=e.parentType;e.parentType="reference";let O=!1;for(let $=0,D=x.length;$<D;$++)if(x[$](e,_,C,!0)){O=!0;break}if(e.parentType=k,O)return null}const p=e.bMarks[_]+e.tShift[_],v=e.eMarks[_];return e.src.slice(p,v+1)}let u=e.src.slice(a,i+1);i=u.length;let l=-1;for(a=1;a<i;a++){const _=u.charCodeAt(a);if(_===91)return!1;if(_===93){l=a;break}else if(_===10){const C=s(o);C!==null&&(u+=C,i=u.length,o++)}else if(_===92&&(a++,a<i&&u.charCodeAt(a)===10)){const C=s(o);C!==null&&(u+=C,i=u.length,o++)}}if(l<0||u.charCodeAt(l+1)!==58)return!1;for(a=l+2;a<i;a++){const _=u.charCodeAt(a);if(_===10){const C=s(o);C!==null&&(u+=C,i=u.length,o++)}else if(!zr(_))break}const h=e.md.helpers.parseLinkDestination(u,a,i);if(!h.ok)return!1;const d=e.md.normalizeLink(h.str);if(!e.md.validateLink(d))return!1;a=h.pos;const g=a,b=o,y=a;for(;a<i;a++){const _=u.charCodeAt(a);if(_===10){const C=s(o);C!==null&&(u+=C,i=u.length,o++)}else if(!zr(_))break}let w=e.md.helpers.parseLinkTitle(u,a,i);for(;w.can_continue;){const _=s(o);if(_===null)break;u+=_,a=i,i=u.length,o++,w=e.md.helpers.parseLinkTitle(u,a,i,w)}let S;for(a<i&&y!==a&&w.ok?(S=w.str,a=w.pos):(S="",a=g,o=b);a<i;){const _=u.charCodeAt(a);if(!zr(_))break;a++}if(a<i&&u.charCodeAt(a)!==10&&S)for(S="",a=g,o=b;a<i;){const _=u.charCodeAt(a);if(!zr(_))break;a++}if(a<i&&u.charCodeAt(a)!==10)return!1;const E=Bm(u.slice(1,l));return E?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[E]>"u"&&(e.env.references[E]={title:S,href:d}),e.line=o),!0):!1}const ese=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tse="[a-zA-Z_:][a-zA-Z0-9:._-]*",rse="[^\"'=<>`\\x00-\\x20]+",nse="'[^']*'",ase='"[^"]*"',ise="(?:"+rse+"|"+nse+"|"+ase+")",ose="(?:\\s+"+tse+"(?:\\s*=\\s*"+ise+")?)",oA="<[A-Za-z][A-Za-z0-9\\-]*"+ose+"*\\s*\\/?>",sA="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",sse="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",use="<[?][\\s\\S]*?[?]>",lse="<![A-Za-z][^>]*>",cse="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",dse=new RegExp("^(?:"+oA+"|"+sA+"|"+sse+"|"+use+"|"+lse+"|"+cse+")"),fse=new RegExp("^(?:"+oA+"|"+sA+")"),ll=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+ese.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(fse.source+"\\s*$"),/^$/,!1]];function hse(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(a)!==60)return!1;let o=e.src.slice(a,i),s=0;for(;s<ll.length&&!ll[s][0].test(o);s++);if(s===ll.length)return!1;if(n)return ll[s][2];let u=t+1;if(!ll[s][1].test(o)){for(;u<r&&!(e.sCount[u]<e.blkIndent);u++)if(a=e.bMarks[u]+e.tShift[u],i=e.eMarks[u],o=e.src.slice(a,i),ll[s][1].test(o)){o.length!==0&&u++;break}}e.line=u;const l=e.push("html_block","",0);return l.map=[t,u],l.content=e.getLines(t,u,e.blkIndent,!0),!0}function pse(e,t,r,n){let a=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(a);if(o!==35||a>=i)return!1;let s=1;for(o=e.src.charCodeAt(++a);o===35&&a<i&&s<=6;)s++,o=e.src.charCodeAt(++a);if(s>6||a<i&&!zr(o))return!1;if(n)return!0;i=e.skipSpacesBack(i,a);const u=e.skipCharsBack(i,35,a);u>a&&zr(e.src.charCodeAt(u-1))&&(i=u),e.line=t+1;const l=e.push("heading_open","h"+String(s),1);l.markup="########".slice(0,s),l.map=[t,e.line];const h=e.push("inline","",0);h.content=e.src.slice(a,i).trim(),h.map=[t,e.line],h.children=[];const d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function mse(e,t,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const a=e.parentType;e.parentType="paragraph";let i=0,o,s=t+1;for(;s<r&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let b=e.bMarks[s]+e.tShift[s];const y=e.eMarks[s];if(b<y&&(o=e.src.charCodeAt(b),(o===45||o===61)&&(b=e.skipChars(b,o),b=e.skipSpaces(b),b>=y))){i=o===61?1:2;break}}if(e.sCount[s]<0)continue;let g=!1;for(let b=0,y=n.length;b<y;b++)if(n[b](e,s,r,!0)){g=!0;break}if(g)break}if(!i)return!1;const u=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const l=e.push("heading_open","h"+String(i),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];const h=e.push("inline","",0);h.content=u,h.map=[t,e.line-1],h.children=[];const d=e.push("heading_close","h"+String(i),-1);return d.markup=String.fromCharCode(o),e.parentType=a,!0}function gse(e,t,r){const n=e.md.block.ruler.getRules("paragraph"),a=e.parentType;let i=t+1;for(e.parentType="paragraph";i<r&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let l=!1;for(let h=0,d=n.length;h<d;h++)if(n[h](e,i,r,!0)){l=!0;break}if(l)break}const o=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const u=e.push("inline","",0);return u.content=o,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=a,!0}const Y0=[["table",Woe,["paragraph","reference"]],["code",Yoe],["fence",Goe,["paragraph","reference","blockquote","list"]],["blockquote",Koe,["paragraph","reference","blockquote","list"]],["hr",Xoe,["paragraph","reference","blockquote","list"]],["list",Joe,["paragraph","reference","blockquote"]],["reference",Qoe],["html_block",hse,["paragraph","reference","blockquote"]],["heading",pse,["paragraph","reference","blockquote"]],["lheading",mse],["paragraph",gse]];function Hm(){this.ruler=new Ca;for(let e=0;e<Y0.length;e++)this.ruler.push(Y0[e][0],Y0[e][1],{alt:(Y0[e][2]||[]).slice()})}Hm.prototype.tokenize=function(e,t,r){const n=this.ruler.getRules(""),a=n.length,i=e.md.options.maxNesting;let o=t,s=!1;for(;o<r&&(e.line=o=e.skipEmptyLines(o),!(o>=r||e.sCount[o]<e.blkIndent));){if(e.level>=i){e.line=r;break}const u=e.line;let l=!1;for(let h=0;h<a;h++)if(l=n[h](e,o,r,!1),l){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<r&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}};Hm.prototype.parse=function(e,t,r,n){if(!e)return;const a=new this.State(e,t,r,n);this.tokenize(a,a.line,a.lineMax)};Hm.prototype.State=yo;function lh(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}lh.prototype.pushPending=function(){const e=new Wi("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};lh.prototype.push=function(e,t,r){this.pending&&this.pushPending();const n=new Wi(e,t,r);let a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(a),n};lh.prototype.scanDelims=function(e,t){const r=this.posMax,n=this.src.charCodeAt(e),a=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i<r&&this.src.charCodeAt(i)===n;)i++;const o=i-e,s=i<r?this.src.charCodeAt(i):32,u=zf(a)||Lf(String.fromCharCode(a)),l=zf(s)||Lf(String.fromCharCode(s)),h=jf(a),d=jf(s),g=!d&&(!l||h||u),b=!h&&(!u||d||l);return{can_open:g&&(t||!b||u),can_close:b&&(t||!g||l),length:o}};lh.prototype.Token=Wi;function vse(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function bse(e,t){let r=e.pos;for(;r<e.posMax&&!vse(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}const yse=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function _se(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;const a=e.pending.match(yse);if(!a)return!1;const i=a[1],o=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!o)return!1;let s=o.url;if(s.length<=i.length)return!1;s=s.replace(/\*+$/,"");const u=e.md.normalizeLink(s);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const l=e.push("link_open","a",1);l.attrs=[["href",u]],l.markup="linkify",l.info="auto";const h=e.push("text","",0);h.content=e.md.normalizeLinkText(s);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=s.length-i.length,!0}function wse(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;const n=e.pending.length-1,a=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let i=n-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<a&&zr(e.src.charCodeAt(r));)r++;return e.pos=r,!0}const P2=[];for(let e=0;e<256;e++)P2.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){P2[e.charCodeAt(0)]=1});function xse(e,t){let r=e.pos;const n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let a=e.src.charCodeAt(r);if(a===10){for(t||e.push("hardbreak","br",0),r++;r<n&&(a=e.src.charCodeAt(r),!!zr(a));)r++;return e.pos=r,!0}let i=e.src[r];if(a>=55296&&a<=56319&&r+1<n){const s=e.src.charCodeAt(r+1);s>=56320&&s<=57343&&(i+=e.src[r+1],r++)}const o="\\"+i;if(!t){const s=e.push("text_special","",0);a<256&&P2[a]!==0?s.content=i:s.content=o,s.markup=o,s.info="escape"}return e.pos=r+1,!0}function Sse(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;const a=r;r++;const i=e.posMax;for(;r<i&&e.src.charCodeAt(r)===96;)r++;const o=e.src.slice(a,r),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=a)return t||(e.pending+=o),e.pos+=s,!0;let u=r,l;for(;(l=e.src.indexOf("`",u))!==-1;){for(u=l+1;u<i&&e.src.charCodeAt(u)===96;)u++;const h=u-l;if(h===s){if(!t){const d=e.push("code_inline","code",0);d.markup=o,d.content=e.src.slice(r,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[h]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}function Cse(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==126)return!1;const a=e.scanDelims(e.pos,!0);let i=a.length;const o=String.fromCharCode(n);if(i<2)return!1;let s;i%2&&(s=e.push("text","",0),s.content=o,i--);for(let u=0;u<i;u+=2)s=e.push("text","",0),s.content=o+o,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return e.pos+=a.length,!0}function k4(e,t){let r;const n=[],a=t.length;for(let i=0;i<a;i++){const o=t[i];if(o.marker!==126||o.end===-1)continue;const s=t[o.end];r=e.tokens[o.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[s.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&n.push(s.token-1)}for(;n.length;){const i=n.pop();let o=i+1;for(;o<e.tokens.length&&e.tokens[o].type==="s_close";)o++;o--,i!==o&&(r=e.tokens[o],e.tokens[o]=e.tokens[i],e.tokens[i]=r)}}function Ese(e){const t=e.tokens_meta,r=e.tokens_meta.length;k4(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&k4(e,t[n].delimiters)}const uA={tokenize:Cse,postProcess:Ese};function Ose(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==95&&n!==42)return!1;const a=e.scanDelims(e.pos,n===42);for(let i=0;i<a.length;i++){const o=e.push("text","",0);o.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:a.length,token:e.tokens.length-1,end:-1,open:a.can_open,close:a.can_close})}return e.pos+=a.length,!0}function $4(e,t){const r=t.length;for(let n=r-1;n>=0;n--){const a=t[n];if(a.marker!==95&&a.marker!==42||a.end===-1)continue;const i=t[a.end],o=n>0&&t[n-1].end===a.end+1&&t[n-1].marker===a.marker&&t[n-1].token===a.token-1&&t[a.end+1].token===i.token+1,s=String.fromCharCode(a.marker),u=e.tokens[a.token];u.type=o?"strong_open":"em_open",u.tag=o?"strong":"em",u.nesting=1,u.markup=o?s+s:s,u.content="";const l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?s+s:s,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[a.end+1].token].content="",n--)}}function Rse(e){const t=e.tokens_meta,r=e.tokens_meta.length;$4(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&$4(e,t[n].delimiters)}const lA={tokenize:Ose,postProcess:Rse};function Tse(e,t){let r,n,a,i,o="",s="",u=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const h=e.pos,d=e.posMax,g=e.pos+1,b=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(b<0)return!1;let y=b+1;if(y<d&&e.src.charCodeAt(y)===40){for(l=!1,y++;y<d&&(r=e.src.charCodeAt(y),!(!zr(r)&&r!==10));y++);if(y>=d)return!1;if(u=y,a=e.md.helpers.parseLinkDestination(e.src,y,e.posMax),a.ok){for(o=e.md.normalizeLink(a.str),e.md.validateLink(o)?y=a.pos:o="",u=y;y<d&&(r=e.src.charCodeAt(y),!(!zr(r)&&r!==10));y++);if(a=e.md.helpers.parseLinkTitle(e.src,y,e.posMax),y<d&&u!==y&&a.ok)for(s=a.str,y=a.pos;y<d&&(r=e.src.charCodeAt(y),!(!zr(r)&&r!==10));y++);}(y>=d||e.src.charCodeAt(y)!==41)&&(l=!0),y++}if(l){if(typeof e.env.references>"u")return!1;if(y<d&&e.src.charCodeAt(y)===91?(u=y+1,y=e.md.helpers.parseLinkLabel(e,y),y>=0?n=e.src.slice(u,y++):y=b+1):y=b+1,n||(n=e.src.slice(g,b)),i=e.env.references[Bm(n)],!i)return e.pos=h,!1;o=i.href,s=i.title}if(!t){e.pos=g,e.posMax=b;const w=e.push("link_open","a",1),S=[["href",o]];w.attrs=S,s&&S.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=y,e.posMax=d,!0}function Pse(e,t){let r,n,a,i,o,s,u,l,h="";const d=e.pos,g=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const b=e.pos+2,y=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(y<0)return!1;if(i=y+1,i<g&&e.src.charCodeAt(i)===40){for(i++;i<g&&(r=e.src.charCodeAt(i),!(!zr(r)&&r!==10));i++);if(i>=g)return!1;for(l=i,s=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),s.ok&&(h=e.md.normalizeLink(s.str),e.md.validateLink(h)?i=s.pos:h=""),l=i;i<g&&(r=e.src.charCodeAt(i),!(!zr(r)&&r!==10));i++);if(s=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<g&&l!==i&&s.ok)for(u=s.str,i=s.pos;i<g&&(r=e.src.charCodeAt(i),!(!zr(r)&&r!==10));i++);else u="";if(i>=g||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<g&&e.src.charCodeAt(i)===91?(l=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?a=e.src.slice(l,i++):i=y+1):i=y+1,a||(a=e.src.slice(b,y)),o=e.env.references[Bm(a)],!o)return e.pos=d,!1;h=o.href,u=o.title}if(!t){n=e.src.slice(b,y);const w=[];e.md.inline.parse(n,e.md,e.env,w);const S=e.push("image","img",0),E=[["src",h],["alt",""]];S.attrs=E,S.children=w,S.content=n,u&&E.push(["title",u])}return e.pos=i,e.posMax=g,!0}const kse=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,$se=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Ase(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;const n=e.pos,a=e.posMax;for(;;){if(++r>=a)return!1;const o=e.src.charCodeAt(r);if(o===60)return!1;if(o===62)break}const i=e.src.slice(n+1,r);if($se.test(i)){const o=e.md.normalizeLink(i);if(!e.md.validateLink(o))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}if(kse.test(i)){const o=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(o))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}return!1}function Dse(e){return/^<a[>\s]/i.test(e)}function Mse(e){return/^<\/a\s*>/i.test(e)}function Nse(e){const t=e|32;return t>=97&&t<=122}function Ise(e,t){if(!e.md.options.html)return!1;const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;const a=e.src.charCodeAt(n+1);if(a!==33&&a!==63&&a!==47&&!Nse(a))return!1;const i=e.src.slice(n).match(dse);if(!i)return!1;if(!t){const o=e.push("html_inline","",0);o.content=i[0],Dse(o.content)&&e.linkLevel++,Mse(o.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const Fse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,jse=/^&([a-z][a-z0-9]{1,31});/i;function Lse(e,t){const r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){const i=e.src.slice(r).match(Fse);if(i){if(!t){const o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=e.push("text_special","",0);s.content=R2(o)?Up(o):Up(65533),s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(r).match(jse);if(i){const o=tA(i[0]);if(o!==i[0]){if(!t){const s=e.push("text_special","",0);s.content=o,s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function A4(e){const t={},r=e.length;if(!r)return;let n=0,a=-2;const i=[];for(let o=0;o<r;o++){const s=e[o];if(i.push(0),(e[n].marker!==s.marker||a!==s.token-1)&&(n=o),a=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[s.marker][(s.open?3:0)+s.length%3];let l=n-i[n]-1,h=l;for(;l>u;l-=i[l]+1){const d=e[l];if(d.marker===s.marker&&d.open&&d.end<0){let g=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(g=!0),!g){const b=l>0&&!e[l-1].open?i[l-1]+1:0;i[o]=o-l+b,i[l]=b,s.open=!1,d.end=o,d.close=!1,h=-1,a=-2;break}}}h!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=h)}}function zse(e){const t=e.tokens_meta,r=e.tokens_meta.length;A4(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&A4(t[n].delimiters)}function Bse(e){let t,r,n=0;const a=e.tokens,i=e.tokens.length;for(t=r=0;t<i;t++)a[t].nesting<0&&n--,a[t].level=n,a[t].nesting>0&&n++,a[t].type==="text"&&t+1<i&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==r&&(a[r]=a[t]),r++);t!==r&&(a.length=r)}const Ob=[["text",bse],["linkify",_se],["newline",wse],["escape",xse],["backticks",Sse],["strikethrough",uA.tokenize],["emphasis",lA.tokenize],["link",Tse],["image",Pse],["autolink",Ase],["html_inline",Ise],["entity",Lse]],Rb=[["balance_pairs",zse],["strikethrough",uA.postProcess],["emphasis",lA.postProcess],["fragments_join",Bse]];function ch(){this.ruler=new Ca;for(let e=0;e<Ob.length;e++)this.ruler.push(Ob[e][0],Ob[e][1]);this.ruler2=new Ca;for(let e=0;e<Rb.length;e++)this.ruler2.push(Rb[e][0],Rb[e][1])}ch.prototype.skipToken=function(e){const t=e.pos,r=this.ruler.getRules(""),n=r.length,a=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let o=!1;if(e.level<a){for(let s=0;s<n;s++)if(e.level++,o=r[s](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,i[t]=e.pos};ch.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,n=e.posMax,a=e.md.options.maxNesting;for(;e.pos<n;){const i=e.pos;let o=!1;if(e.level<a){for(let s=0;s<r;s++)if(o=t[s](e,!1),o){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ch.prototype.parse=function(e,t,r,n){const a=new this.State(e,t,r,n);this.tokenize(a);const i=this.ruler2.getRules(""),o=i.length;for(let s=0;s<o;s++)i[s](a)};ch.prototype.State=lh;function Hse(e){const t={};e=e||{},t.src_Any=X$.source,t.src_Cc=Z$.source,t.src_Z=Q$.source,t.src_P=E2.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function T_(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function Vm(e){return Object.prototype.toString.call(e)}function Vse(e){return Vm(e)==="[object String]"}function Use(e){return Vm(e)==="[object Object]"}function qse(e){return Vm(e)==="[object RegExp]"}function D4(e){return Vm(e)==="[object Function]"}function Wse(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const cA={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Yse(e){return Object.keys(e||{}).reduce(function(t,r){return t||cA.hasOwnProperty(r)},!1)}const Gse={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},Kse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Xse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Zse(e){e.__index__=-1,e.__text_cache__=""}function Jse(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function M4(){return function(e,t){t.normalize(e)}}function qp(e){const t=e.re=Hse(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(Kse),r.push(t.src_xn),t.src_tlds=r.join("|");function n(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const a=[];e.__compiled__={};function i(s,u){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+u)}Object.keys(e.__schemas__).forEach(function(s){const u=e.__schemas__[s];if(u===null)return;const l={validate:null,link:null};if(e.__compiled__[s]=l,Use(u)){qse(u.validate)?l.validate=Jse(u.validate):D4(u.validate)?l.validate=u.validate:i(s,u),D4(u.normalize)?l.normalize=u.normalize:u.normalize?i(s,u):l.normalize=M4();return}if(Vse(u)){a.push(s);return}i(s,u)}),a.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:M4()};const o=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(Wse).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Zse(e)}function Qse(e,t){const r=e.__index__,n=e.__last_index__,a=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=a,this.text=a,this.url=a}function P_(e,t){const r=new Qse(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Ga(e,t){if(!(this instanceof Ga))return new Ga(e,t);t||Yse(e)&&(t=e,e={}),this.__opts__=T_({},cA,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=T_({},Gse,e),this.__compiled__={},this.__tlds__=Xse,this.__tlds_replaced__=!1,this.re={},qp(this)}Ga.prototype.add=function(t,r){return this.__schemas__[t]=r,qp(this),this};Ga.prototype.set=function(t){return this.__opts__=T_(this.__opts__,t),this};Ga.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let r,n,a,i,o,s,u,l,h;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(r=u.exec(t))!==null;)if(i=this.testSchemaAt(t,r[2],u.lastIndex),i){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=t.indexOf("@"),h>=0&&(a=t.match(this.re.email_fuzzy))!==null&&(o=a.index+a[1].length,s=a.index+a[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s))),this.__index__>=0};Ga.prototype.pretest=function(t){return this.re.pretest.test(t)};Ga.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};Ga.prototype.match=function(t){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(r.push(P_(this,n)),n=this.__last_index__);let a=n?t.slice(n):t;for(;this.test(a);)r.push(P_(this,n)),a=a.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};Ga.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const r=this.re.schema_at_start.exec(t);if(!r)return null;const n=this.testSchemaAt(t,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,P_(this,0)):null};Ga.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,a,i){return n!==i[a-1]}).reverse(),qp(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,qp(this),this)};Ga.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Ga.prototype.onCompile=function(){};const zl=2147483647,oo=36,k2=1,Bf=26,eue=38,tue=700,dA=72,fA=128,hA="-",rue=/^xn--/,nue=/[^\0-\x7F]/,aue=/[\x2E\u3002\uFF0E\uFF61]/g,iue={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Tb=oo-k2,so=Math.floor,Pb=String.fromCharCode;function Os(e){throw new RangeError(iue[e])}function oue(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}function pA(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(aue,".");const a=e.split("."),i=oue(a,t).join(".");return n+i}function sue(e){const t=[];let r=0;const n=e.length;for(;r<n;){const a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){const i=e.charCodeAt(r++);(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),r--)}else t.push(a)}return t}const uue=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:oo},N4=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},mA=function(e,t,r){let n=0;for(e=r?so(e/tue):e>>1,e+=so(e/t);e>Tb*Bf>>1;n+=oo)e=so(e/Tb);return so(n+(Tb+1)*e/(e+eue))},lue=function(e){const t=[],r=e.length;let n=0,a=fA,i=dA,o=e.lastIndexOf(hA);o<0&&(o=0);for(let s=0;s<o;++s)e.charCodeAt(s)>=128&&Os("not-basic"),t.push(e.charCodeAt(s));for(let s=o>0?o+1:0;s<r;){const u=n;for(let h=1,d=oo;;d+=oo){s>=r&&Os("invalid-input");const g=uue(e.charCodeAt(s++));g>=oo&&Os("invalid-input"),g>so((zl-n)/h)&&Os("overflow"),n+=g*h;const b=d<=i?k2:d>=i+Bf?Bf:d-i;if(g<b)break;const y=oo-b;h>so(zl/y)&&Os("overflow"),h*=y}const l=t.length+1;i=mA(n-u,l,u==0),so(n/l)>zl-a&&Os("overflow"),a+=so(n/l),n%=l,t.splice(n++,0,a)}return String.fromCodePoint(...t)},cue=function(e){const t=[];e=sue(e);const r=e.length;let n=fA,a=0,i=dA;for(const u of e)u<128&&t.push(Pb(u));const o=t.length;let s=o;for(o&&t.push(hA);s<r;){let u=zl;for(const h of e)h>=n&&h<u&&(u=h);const l=s+1;u-n>so((zl-a)/l)&&Os("overflow"),a+=(u-n)*l,n=u;for(const h of e)if(h<n&&++a>zl&&Os("overflow"),h===n){let d=a;for(let g=oo;;g+=oo){const b=g<=i?k2:g>=i+Bf?Bf:g-i;if(d<b)break;const y=d-b,w=oo-b;t.push(Pb(N4(b+y%w,0))),d=so(y/w)}t.push(Pb(N4(d,0))),i=mA(a,l,s===o),a=0,++s}++a,++n}return t.join("")},due=function(e){return pA(e,function(t){return rue.test(t)?lue(t.slice(4).toLowerCase()):t})},fue=function(e){return pA(e,function(t){return nue.test(t)?"xn--"+cue(t):t})},gA={toASCII:fue,toUnicode:due},hue={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},pue={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},mue={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},gue={default:hue,zero:pue,commonmark:mue},vue=/^(vbscript|javascript|file|data):/,bue=/^data:image\/(gif|png|jpeg|webp);/;function yue(e){const t=e.trim().toLowerCase();return vue.test(t)?bue.test(t):!0}const vA=["http:","https:","mailto:"];function _ue(e){const t=C2(e,!0);if(t.hostname&&(!t.protocol||vA.indexOf(t.protocol)>=0))try{t.hostname=gA.toASCII(t.hostname)}catch{}return uh(S2(t))}function wue(e){const t=C2(e,!0);if(t.hostname&&(!t.protocol||vA.indexOf(t.protocol)>=0))try{t.hostname=gA.toUnicode(t.hostname)}catch{}return Kl(S2(t),Kl.defaultChars+"%")}function mi(e,t){if(!(this instanceof mi))return new mi(e,t);t||O2(e)||(t=e||{},e="default"),this.inline=new ch,this.block=new Hm,this.core=new T2,this.renderer=new mc,this.linkify=new Ga,this.validateLink=yue,this.normalizeLink=_ue,this.normalizeLinkText=wue,this.utils=woe,this.helpers=zm({},Eoe),this.options={},this.configure(e),t&&this.set(t)}mi.prototype.set=function(e){return zm(this.options,e),this};mi.prototype.configure=function(e){const t=this;if(O2(e)){const r=e;if(e=gue[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this};mi.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};mi.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};mi.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};mi.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};mi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};mi.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};mi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const xue=mi({html:!0,breaks:!0}),I4=[{key:"0",label:"What?"}],Sue=e=>{if(!e)return null;const t=xue.render(e.replace("<think>","").replace("</think>","")).replace("<p>&lt;think</p>","");return t?(console.log(t,"renderedContent"),B.jsx("div",{dangerouslySetInnerHTML:{__html:t}})):null},Cue=[{key:"1",description:"Hot Topics"},{key:"2",description:"Design Guide"}],Eue={ai:{placement:"start",avatar:B.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:B.jsx("img",{width:32,src:"/vite.svg",draggable:!1,alt:"logo"})}),styles:{content:{borderRadius:4,background:"#fff",padding:"4px 10px",display:"flex",alignItems:"center",fontSize:"13px"}}},local:{placement:"end",variant:"shadow",avatar:B.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:B.jsx("img",{width:32,src:"/vite.svg",draggable:!1,alt:"logo"})}),styles:{content:{borderRadius:4,padding:"4px 10px",background:"#fff",display:"flex",alignItems:"center",fontSize:"13px"}}}},Oue=new ur({baseURL:"https://xiaoai.plus/v1",apiKey:"sk-0ZHLSTsMOiX1YwwBvz8Kwtl3ZXlDVX4zpDgplbOYdImZuJQ9",dangerouslyAllowBrowser:!0}),Rue=()=>{const[e,t]=A.useState(!1),[r,n]=A.useState(""),[a,i]=A.useState(!1),[o,s]=A.useState(I4),[u,l]=A.useState(I4[0].key),[h,d]=A.useState([]),g="deepseek-r1",[b]=vae({request:async($,D)=>{var H;const{messages:V,message:I}=$,{onSuccess:N,onUpdate:F,onError:T}=D;let M="",j="";try{i(!0);const z=await Oue.chat.completions.create({model:g,messages:[{role:"user",content:I}],stream:!0});i(!1);for await(const U of z){const{reasoning_content:G,content:X}=((H=U.choices[0])==null?void 0:H.delta)||{};G&&(j+=G),X&&(M+=X),F(M)}N(M)}catch{}}}),{onRequest:y,messages:w,setMessages:S}=lae({agent:b});A.useEffect(()=>{const $=w.map(D=>({...D,loading:a}));S($)},[a,w.length]),A.useEffect(()=>{u!==void 0&&S([])},[u]);const E=$=>{$&&(y($),n(""))},_=$=>{y($.data.description)},C=()=>{s([...o,{key:`${o.length}`,label:`New Conversation ${o.length}`}]),l(`${o.length}`)},f=$=>{l($)},p=$=>d($.fileList),v=w.map(({id:$,message:D,status:V})=>({key:$,loading:!1,role:V==="local"?"local":"ai",content:D,messageRender:Sue})),x=B.jsx(ue.Badge,{dot:h.length>0&&!e,children:B.jsx(ue.Button,{type:"text",icon:B.jsx(F5,{}),onClick:()=>t(!e)})}),k=B.jsx(jp.Header,{title:"Attachments",open:e,onOpenChange:t,styles:{content:{padding:0}},children:B.jsx(Jw,{beforeUpload:()=>!1,items:h,onChange:p,placeholder:$=>$==="drop"?{title:"Drop file here"}:{icon:B.jsx($5,{}),title:"Upload files",description:"Click or drag files to this area to upload"}})}),O=B.jsx("div",{className:Oi.logo,children:B.jsx("span",{children:"OnChain Assistant"})});return B.jsxs("div",{className:Oi.layout,children:[B.jsxs("div",{className:Oi.menu,children:[O,B.jsx(ue.Button,{onClick:C,type:"link",className:Oi.addBtn,icon:B.jsx(lw,{}),children:"New Conversation"}),B.jsx(Lk,{items:o,className:Oi.conversations,activeKey:u,onActiveChange:f})]}),B.jsxs("div",{className:Oi.chat,children:[B.jsxs("div",{className:Oi.top_header,children:[B.jsx("div",{style:{fontWeight:"bold"},children:"Llama3:latest"}),B.jsx("div",{children:B.jsx("div",{className:Oi.person,children:"李明"})})]}),B.jsx("div",{style:{height:"calc(100% - 265px)",padding:"0px 16px 16px 16px",display:"flex",justifyContent:"center",margin:"0 auto",maxWidth:"70%",width:"100%"},children:v.length?B.jsx(km.List,{items:v,roles:Eue,className:Oi.messages}):B.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:B.jsx(Mie,{onPromptsItemClick:_})})}),B.jsx($m,{items:Cue,onItemClick:_,style:{padding:"0px 16px"}}),B.jsx(jp,{value:r,header:k,onSubmit:E,onChange:n,prefix:x,loading:b.isRequesting(),className:Oi.sender,style:{margin:"0px 16px 16px 16px",width:"auto"}})]})]})},Tue="_progress_1kku4_1",Pue={progress:Tue},kue=e=>B.jsx(ue.Progress,{strokeColor:"#0563b2",...e,className:`${e.className??""} ${Pue.progress}`,format:t=>(t=t??0,e!=null&&e.highlight?B.jsx(rs,{highlight:e.highlight,value:`${String(t)||""}%`}):`${t}%`)});var $2=A.createContext({});function $ue(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Aue(e,t){Ut(e,"[@ant-design/icons] ".concat(t))}function F4(e){return pt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(pt(e.icon)==="object"||typeof e.icon=="function")}function j4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[$ue(r)]=n}return t},{})}function k_(e,t,r){return r?A.createElement(e.tag,Q(Q({key:t},j4(e.attrs)),r),(e.children||[]).map(function(n,a){return k_(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):A.createElement(e.tag,Q({key:t},j4(e.attrs)),(e.children||[]).map(function(n,a){return k_(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function bA(e){return Nf(e)[0]}function yA(e){return e?Array.isArray(e)?e:[e]:[]}var Due=`
545
- .anticon {
546
- display: inline-flex;
547
- align-items: center;
548
- color: inherit;
549
- font-style: normal;
550
- line-height: 0;
551
- text-align: center;
552
- text-transform: none;
553
- vertical-align: -0.125em;
554
- text-rendering: optimizeLegibility;
555
- -webkit-font-smoothing: antialiased;
556
- -moz-osx-font-smoothing: grayscale;
557
- }
558
-
559
- .anticon > * {
560
- line-height: 1;
561
- }
562
-
563
- .anticon svg {
564
- display: inline-block;
565
- }
566
-
567
- .anticon::before {
568
- display: none;
569
- }
570
-
571
- .anticon .anticon-icon {
572
- display: block;
573
- }
574
-
575
- .anticon[tabindex] {
576
- cursor: pointer;
577
- }
578
-
579
- .anticon-spin::before,
580
- .anticon-spin {
581
- display: inline-block;
582
- -webkit-animation: loadingCircle 1s infinite linear;
583
- animation: loadingCircle 1s infinite linear;
584
- }
585
-
586
- @-webkit-keyframes loadingCircle {
587
- 100% {
588
- -webkit-transform: rotate(360deg);
589
- transform: rotate(360deg);
590
- }
591
- }
592
-
593
- @keyframes loadingCircle {
594
- 100% {
595
- -webkit-transform: rotate(360deg);
596
- transform: rotate(360deg);
597
- }
598
- }
599
- `,Mue=function(t){var r=A.useContext($2),n=r.csp,a=r.prefixCls,i=r.layer,o=Due;a&&(o=o.replace(/anticon/g,a)),i&&(o="@layer ".concat(i,` {
600
- `).concat(o,`
601
- }`)),A.useEffect(function(){var s=t.current,u=Tf(s);Li(o,"@ant-design-icons",{prepend:!i,csp:n,attachTo:u})},[])},Nue=["icon","className","onClick","style","primaryColor","secondaryColor"],cf={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Iue(e){var t=e.primaryColor,r=e.secondaryColor;cf.primaryColor=t,cf.secondaryColor=r||bA(t),cf.calculated=!!r}function Fue(){return Q({},cf)}var gc=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,u=sr(t,Nue),l=P.useRef(),h=cf;if(o&&(h={primaryColor:o,secondaryColor:s||bA(o)}),Mue(l),Aue(F4(r),"icon should be icon definiton, but got ".concat(r)),!F4(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=Q(Q({},d),{},{icon:d.icon(h.primaryColor,h.secondaryColor)})),k_(d.icon,"svg-".concat(d.name),Q(Q({className:n,onClick:a,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:l}))};gc.displayName="IconReact";gc.getTwoToneColors=Fue;gc.setTwoToneColors=Iue;function _A(e){var t=yA(e),r=we(t,2),n=r[0],a=r[1];return gc.setTwoToneColors({primaryColor:n,secondaryColor:a})}function jue(){var e=gc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Lue=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];_A(Ip.primary);var Wn=P.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,u=e.twoToneColor,l=sr(e,Lue),h=P.useContext($2),d=h.prefixCls,g=d===void 0?"anticon":d,b=h.rootClassName,y=ge(b,g,re(re({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!a||n.name==="loading"),r),w=o;w===void 0&&s&&(w=-1);var S=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,E=yA(u),_=we(E,2),C=_[0],f=_[1];return P.createElement("span",je({role:"img","aria-label":n.name},l,{ref:t,tabIndex:w,onClick:s,className:y}),P.createElement(gc,{icon:n,primaryColor:C,secondaryColor:f,style:S}))});Wn.displayName="AntdIcon";Wn.getTwoToneColor=jue;Wn.setTwoToneColor=_A;var zue=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:Gz}))},wA=P.forwardRef(zue);process.env.NODE_ENV!=="production"&&(wA.displayName="EditOutlined");function mo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return A.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(mo(n)):dP(n)&&n.props?r=r.concat(mo(n.props.children,t)):r.push(n))}),r}var $_=P.createContext(null);function Bue(e){var t=e.children,r=e.onBatchResize,n=P.useRef(0),a=P.useRef([]),i=P.useContext($_),o=P.useCallback(function(s,u,l){n.current+=1;var h=n.current;a.current.push({size:s,element:u,data:l}),Promise.resolve().then(function(){h===n.current&&(r==null||r(a.current),a.current=[])}),i==null||i(s,u,l)},[r,i]);return P.createElement($_.Provider,{value:o},t)}var ts=new Map;function xA(e){e.forEach(function(t){var r,n=t.target;(r=ts.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var SA=new dR(xA);process.env.NODE_ENV;process.env.NODE_ENV;function Hue(e,t){ts.has(e)||(ts.set(e,new Set),SA.observe(e)),ts.get(e).add(t)}function Vue(e,t){ts.has(e)&&(ts.get(e).delete(t),ts.get(e).size||(SA.unobserve(e),ts.delete(e)))}var Uue=function(e){Du(r,e);var t=Mu(r);function r(){return Un(this,r),t.apply(this,arguments)}return qn(r,[{key:"render",value:function(){return this.props.children}}]),r}(P.Component);function que(e,t){var r=e.children,n=e.disabled,a=P.useRef(null),i=P.useRef(null),o=P.useContext($_),s=typeof r=="function",u=s?r(a):r,l=P.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!s&&P.isValidElement(u)&&eh(u),d=h?Cm(u):null,g=Sm(d,a),b=function(){var E;return of(a.current)||(a.current&&pt(a.current)==="object"?of((E=a.current)===null||E===void 0?void 0:E.nativeElement):null)||of(i.current)};P.useImperativeHandle(t,function(){return b()});var y=P.useRef(e);y.current=e;var w=P.useCallback(function(S){var E=y.current,_=E.onResize,C=E.data,f=S.getBoundingClientRect(),p=f.width,v=f.height,x=S.offsetWidth,k=S.offsetHeight,O=Math.floor(p),$=Math.floor(v);if(l.current.width!==O||l.current.height!==$||l.current.offsetWidth!==x||l.current.offsetHeight!==k){var D={width:O,height:$,offsetWidth:x,offsetHeight:k};l.current=D;var V=x===Math.round(p)?p:x,I=k===Math.round(v)?v:k,N=Q(Q({},D),{},{offsetWidth:V,offsetHeight:I});o==null||o(N,S,C),_&&Promise.resolve().then(function(){_(N,S)})}},[]);return P.useEffect(function(){var S=b();return S&&!n&&Hue(S,w),function(){return Vue(S,w)}},[a.current,n]),P.createElement(Uue,{ref:i},h?P.cloneElement(u,{ref:g}):u)}var CA=P.forwardRef(que);process.env.NODE_ENV!=="production"&&(CA.displayName="SingleObserver");var Wue="rc-observer-key";function Yue(e,t){var r=e.children,n=typeof r=="function"?[r]:mo(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Eu(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Eu(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(a,i){var o=(a==null?void 0:a.key)||"".concat(Wue,"-").concat(i);return P.createElement(CA,je({},e,{key:o,ref:i===0?t:void 0}),a)})}var _o=P.forwardRef(Yue);process.env.NODE_ENV!=="production"&&(_o.displayName="ResizeObserver");_o.Collection=Bue;function dh(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Gue=function(t){if(ea()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1};function L4(e,t){return Gue(e)}function EA(){}let Yo=null;function Kue(){Yo=null,d5()}let A2=EA;process.env.NODE_ENV!=="production"&&(A2=(e,t,r)=>{Ut(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Kue()});const OA=P.createContext({}),na=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=P.useContext(OA),r=(n,a,i)=>{if(!n)if(t===!1&&a==="deprecated"){const o=Yo;Yo||(Yo={}),Yo[e]=Yo[e]||[],Yo[e].includes(i||"")||Yo[e].push(i||""),o||console.warn("[antd] There exists deprecated usage in your code:",Yo)}else process.env.NODE_ENV!=="production"&&A2(n,e,i)};return r.deprecated=(n,a,i,o)=>{r(n,"deprecated",`\`${a}\` is deprecated. Please use \`${i}\` instead.${o?` ${o}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=EA,e},fh=A2,Xue=A.createContext(void 0);var RA={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"},Zue={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Jue=Q(Q({},Zue),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});const TA={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},z4={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"]},Jue),timePickerLocale:Object.assign({},TA)},Fa="${label} is not a valid ${type}",Tu={locale:"en",Pagination:RA,DatePicker:z4,TimePicker:TA,Calendar:z4,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:Fa,method:Fa,array:Fa,object:Fa,number:Fa,date:Fa,boolean:Fa,integer:Fa,float:Fa,regexp:Fa,email:Fa,url:Fa,hex:Fa},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Tu.Modal);let wp=[];const B4=()=>wp.reduce((e,t)=>Object.assign(Object.assign({},e),t),Tu.Modal);function Que(e){if(e){const t=Object.assign({},e);return wp.push(t),B4(),()=>{wp=wp.filter(r=>r!==t),B4()}}Object.assign({},Tu.Modal)}const D2=A.createContext(void 0),vc=(e,t)=>{const r=P.useContext(D2),n=P.useMemo(()=>{var i;const o=t||Tu[e],s=(i=r==null?void 0:r[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,r]),a=P.useMemo(()=>{const i=r==null?void 0:r.locale;return r!=null&&r.exist&&!i?Tu.locale:i},[r]);return[n,a]},PA="internalMark",kA=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=na("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===PA,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}P.useEffect(()=>Que(t==null?void 0:t.Modal),[t]);const a=P.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return P.createElement(D2.Provider,{value:a},r)};process.env.NODE_ENV!=="production"&&(kA.displayName="LocaleProvider");const Wp="ant",M2="anticon",ele=["outlined","borderless","filled","underlined"],tle=(e,t)=>t||(e?`${Wp}-${e}`:Wp),kn=P.createContext({getPrefixCls:tle,iconPrefixCls:M2}),{Consumer:ame}=kn,H4={};function Nu(e){const t=P.useContext(kn),{getPrefixCls:r,direction:n,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:H4,styles:H4},i),{getPrefixCls:r,direction:n,getPopupContainer:a})}const rle=`-ant-${Date.now()}-${Math.random()}`;function nle(e,t){const r={},n=(o,s)=>{let u=o.clone();return u=(s==null?void 0:s(u))||u,u.toRgbString()},a=(o,s)=>{const u=new Rr(o),l=Nf(u.toRgbString());r[`${s}-color`]=n(u),r[`${s}-color-disabled`]=l[1],r[`${s}-color-hover`]=l[4],r[`${s}-color-active`]=l[6],r[`${s}-color-outline`]=u.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=l[0],r[`${s}-color-deprecated-border`]=l[2]};if(t.primaryColor){a(t.primaryColor,"primary");const o=new Rr(t.primaryColor),s=Nf(o.toRgbString());s.forEach((l,h)=>{r[`primary-${h+1}`]=l}),r["primary-color-deprecated-l-35"]=n(o,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=n(o,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=n(o,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=n(o,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=n(o,l=>l.setA(l.a*.12));const u=new Rr(s[0]);r["primary-color-active-deprecated-f-30"]=n(u,l=>l.setA(l.a*.3)),r["primary-color-active-deprecated-d-02"]=n(u,l=>l.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
602
- :root {
603
- ${Object.keys(r).map(o=>`--${e}-${o}: ${r[o]};`).join(`
604
- `)}
605
- }
606
- `.trim()}function ale(e,t){const r=nle(e,t);ea()?Li(r,`${rle}-dynamic-theme`):process.env.NODE_ENV!=="production"&&fh(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Pu=P.createContext(!1),ile=e=>{let{children:t,disabled:r}=e;const n=P.useContext(Pu);return P.createElement(Pu.Provider,{value:r??n},t)},Zl=P.createContext(void 0),ole=e=>{let{children:t,size:r}=e;const n=P.useContext(Zl);return P.createElement(Zl.Provider,{value:r||n},t)};function sle(){const e=A.useContext(Pu),t=A.useContext(Zl);return{componentDisabled:e,componentSize:t}}const Yp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],A_={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},uo=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!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}},N2=()=>({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"}}),ule=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),lle=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),cle=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:a,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),o),{[a]:o})}},Gp=(e,t)=>({outline:`${He(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),$A=(e,t)=>({"&:focus-visible":Object.assign({},Gp(e,t))}),AA=e=>({[`.${e}`]:Object.assign(Object.assign({},N2()),{[`.${e} .${e}-icon`]:{display:"block"}})}),DA=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},$A(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:ls,genComponentStyleHook:dle,genSubStyleComponent:fle}=xk({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=A.useContext(kn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=bi();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e}=A.useContext(kn);return e??{}},getResetStyles:(e,t)=>{var r;return[{"&":lle(e)},AA((r=t==null?void 0:t.prefix.iconPrefixCls)!==null&&r!==void 0?r:M2)]},getCommonStyle:cle,getCompUnitless:()=>Zw});function hle(e,t){return Yp.reduce((r,n)=>{const a=e[`${n}1`],i=e[`${n}3`],o=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:i,darkColor:o,textColor:s}))},{})}const ple=(e,t)=>{const[r,n]=bi();return Xy({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[AA(e)])},mle=Object.assign({},P),{useId:V4}=mle,gle=()=>"",vle=typeof V4>"u"?gle:V4;function ble(e,t,r){var n,a;const i=na("ConfigProvider"),o=e||{},s=o.inherit===!1||!t?Object.assign(Object.assign({},l_),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:l_.hashed,cssVar:t==null?void 0:t.cssVar}):t,u=vle();if(process.env.NODE_ENV!=="production"){const l=o.cssVar||s.cssVar,h=!!(typeof o.cssVar=="object"&&(!((a=o.cssVar)===null||a===void 0)&&a.key)||u);process.env.NODE_ENV!=="production"&&i(!l||h,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return xm(()=>{var l,h;if(!e)return t;const d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(y=>{d[y]=Object.assign(Object.assign({},d[y]),e.components[y])});const g=`css-var-${u.replace(/:/g,"")}`,b=((l=o.cssVar)!==null&&l!==void 0?l:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((h=o.cssVar)===null||h===void 0?void 0:h.key)||g});return Object.assign(Object.assign(Object.assign({},s),o),{token:Object.assign(Object.assign({},s.token),o.token),components:d,cssVar:b})},[o,s],(l,h)=>l.some((d,g)=>{const b=h[g];return!Uy(d,b,!0)}))}function yle(e){const{children:t}=e,[,r]=bi(),{motion:n}=r,a=P.useRef(!1);return a.current=a.current||n===!1,a.current?P.createElement(pee,{motion:n},t):t}const MA=P.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return na("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(MA.displayName="PropWarning");const _le=process.env.NODE_ENV!=="production"?MA:()=>null;var wle=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};let D_=!1;process.env.NODE_ENV;const xle=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let NA;function Sle(){return NA||Wp}function Cle(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Ele=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(NA=t),n&&Cle(n)&&(process.env.NODE_ENV!=="production"&&fh(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),ale(Sle(),n))},Ole=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:i,form:o,locale:s,componentSize:u,direction:l,space:h,splitter:d,virtual:g,dropdownMatchSelectWidth:b,popupMatchSelectWidth:y,popupOverflow:w,legacyLocale:S,parentContext:E,iconPrefixCls:_,theme:C,componentDisabled:f,segmented:p,statistic:v,spin:x,calendar:k,carousel:O,cascader:$,collapse:D,typography:V,checkbox:I,descriptions:N,divider:F,drawer:T,skeleton:M,steps:j,image:H,layout:z,list:U,mentions:G,modal:X,progress:K,result:ne,slider:ae,breadcrumb:ie,menu:de,pagination:pe,input:be,textArea:me,empty:ee,badge:ve,radio:se,rate:fe,switch:he,transfer:ke,avatar:Te,message:xe,tag:$e,table:Pe,card:Ne,tabs:Ee,timeline:Fe,timePicker:rt,upload:dt,notification:ct,tree:bt,colorPicker:gt,datePicker:Qe,rangePicker:_t,flex:It,wave:ft,dropdown:Be,warning:Ot,tour:Ve,tooltip:Ke,popover:Rt,popconfirm:qt,floatButtonGroup:Pr,variant:gr,inputNumber:Br,treeSelect:wr}=e,cr=P.useCallback((Je,Z)=>{const{prefixCls:Se}=e;if(Z)return Z;const Ae=Se||E.getPrefixCls("");return Je?`${Ae}-${Je}`:Ae},[E.getPrefixCls,e.prefixCls]),kr=_||E.iconPrefixCls||M2,Vt=r||E.csp;ple(kr,Vt);const nt=ble(C,E.theme,{prefixCls:cr("")});process.env.NODE_ENV!=="production"&&(D_=D_||!!nt);const Ye={csp:Vt,autoInsertSpaceInButton:n,alert:a,anchor:i,locale:s||S,direction:l,space:h,splitter:d,virtual:g,popupMatchSelectWidth:y??b,popupOverflow:w,getPrefixCls:cr,iconPrefixCls:kr,theme:nt,segmented:p,statistic:v,spin:x,calendar:k,carousel:O,cascader:$,collapse:D,typography:V,checkbox:I,descriptions:N,divider:F,drawer:T,skeleton:M,steps:j,image:H,input:be,textArea:me,layout:z,list:U,mentions:G,modal:X,progress:K,result:ne,slider:ae,breadcrumb:ie,menu:de,pagination:pe,empty:ee,badge:ve,radio:se,rate:fe,switch:he,transfer:ke,avatar:Te,message:xe,tag:$e,table:Pe,card:Ne,tabs:Ee,timeline:Fe,timePicker:rt,upload:dt,notification:ct,tree:bt,colorPicker:gt,datePicker:Qe,rangePicker:_t,flex:It,wave:ft,dropdown:Be,warning:Ot,tour:Ve,tooltip:Ke,popover:Rt,popconfirm:qt,floatButtonGroup:Pr,variant:gr,inputNumber:Br,treeSelect:wr};process.env.NODE_ENV!=="production"&&na("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Ue=Object.assign({},E);Object.keys(Ye).forEach(Je=>{Ye[Je]!==void 0&&(Ue[Je]=Ye[Je])}),xle.forEach(Je=>{const Z=e[Je];Z&&(Ue[Je]=Z)}),typeof n<"u"&&(Ue.button=Object.assign({autoInsertSpace:n},Ue.button));const zt=xm(()=>Ue,Ue,(Je,Z)=>{const Se=Object.keys(Je),Ae=Object.keys(Z);return Se.length!==Ae.length||Se.some(Ge=>Je[Ge]!==Z[Ge])}),{layer:er}=P.useContext(rh),Ze=P.useMemo(()=>({prefixCls:kr,csp:Vt,layer:er?"antd":void 0}),[kr,Vt,er]);let De=P.createElement(P.Fragment,null,P.createElement(_le,{dropdownMatchSelectWidth:b}),t);const qe=P.useMemo(()=>{var Je,Z,Se,Ae;return Cl(((Je=Tu.Form)===null||Je===void 0?void 0:Je.defaultValidateMessages)||{},((Se=(Z=zt.locale)===null||Z===void 0?void 0:Z.Form)===null||Se===void 0?void 0:Se.defaultValidateMessages)||{},((Ae=zt.form)===null||Ae===void 0?void 0:Ae.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[zt,o==null?void 0:o.validateMessages]);Object.keys(qe).length>0&&(De=P.createElement(Xue.Provider,{value:qe},De)),s&&(De=P.createElement(kA,{locale:s,_ANT_MARK__:PA},De)),De=P.createElement($2.Provider,{value:Ze},De),u&&(De=P.createElement(ole,{size:u},De)),De=P.createElement(yle,null,De);const et=P.useMemo(()=>{const Je=nt||{},{algorithm:Z,token:Se,components:Ae,cssVar:Ge}=Je,at=wle(Je,["algorithm","token","components","cssVar"]),ht=Z&&(!Array.isArray(Z)||Z.length>0)?Dp(Z):Ok,it={};Object.entries(Ae||{}).forEach(dr=>{let[Ft,Lt]=dr;const Ie=Object.assign({},Lt);"algorithm"in Ie&&(Ie.algorithm===!0?Ie.theme=ht:(Array.isArray(Ie.algorithm)||typeof Ie.algorithm=="function")&&(Ie.theme=Dp(Ie.algorithm)),delete Ie.algorithm),it[Ft]=Ie});const wt=Object.assign(Object.assign({},Mf),Se);return Object.assign(Object.assign({},at),{theme:ht,token:wt,components:it,override:Object.assign({override:wt},it),cssVar:Ge})},[nt]);return C&&(De=P.createElement(Rk.Provider,{value:et},De)),zt.warning&&(De=P.createElement(OA.Provider,{value:zt.warning},De)),f!==void 0&&(De=P.createElement(ile,{disabled:f},De)),P.createElement(kn.Provider,{value:zt},De)},Iu=e=>{const t=P.useContext(kn),r=P.useContext(D2);return P.createElement(Ole,Object.assign({parentContext:t,legacyLocale:r},e))};Iu.ConfigContext=kn;Iu.SizeContext=Zl;Iu.config=Ele;Iu.useConfig=sle;Object.defineProperty(Iu,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&fh(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Zl)});process.env.NODE_ENV!=="production"&&(Iu.displayName="ConfigProvider");function IA(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,i=e.bodyClassName,o=e.className,s=e.style;return P.createElement("div",{className:ge("".concat(r,"-content"),o),style:s},P.createElement("div",{className:ge("".concat(r,"-inner"),i),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var FA=P.createContext(null),U4=[];function Rle(e,t){var r=P.useState(function(){if(!ea())return null;var y=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&y.setAttribute("data-debug",t),y}),n=we(r,1),a=n[0],i=P.useRef(!1),o=P.useContext(FA),s=P.useState(U4),u=we(s,2),l=u[0],h=u[1],d=o||(i.current?void 0:function(y){h(function(w){var S=[y].concat(tt(w));return S})});function g(){a.parentElement||document.body.appendChild(a),i.current=!0}function b(){var y;(y=a.parentElement)===null||y===void 0||y.removeChild(a),i.current=!1}return fr(function(){return e?o?o(g):g():b(),b},[e]),fr(function(){l.length&&(l.forEach(function(y){return y()}),h(U4))},[l]),[a,d]}function Tle(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,i;if(e){var o=getComputedStyle(e);n.scrollbarColor=o.scrollbarColor,n.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(s.width,10),l=parseInt(s.height,10);try{var h=u?"width: ".concat(s.width,";"):"",d=l?"height: ".concat(s.height,";"):"";Li(`
607
- #`.concat(t,`::-webkit-scrollbar {
608
- `).concat(h,`
609
- `).concat(d,`
610
- }`),t)}catch(y){console.error(y),a=u,i=l}}document.body.appendChild(r);var g=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,b=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),hf(t),{width:g,height:b}}function Ple(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Tle(e)}function kle(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var $le="rc-util-locker-".concat(Date.now()),q4=0;function Ale(e){var t=!!e,r=P.useState(function(){return q4+=1,"".concat($le,"_").concat(q4)}),n=we(r,1),a=n[0];fr(function(){if(t){var i=Ple(document.body).width,o=kle();Li(`
611
- html body {
612
- overflow-y: hidden;
613
- `.concat(o?"width: calc(100% - ".concat(i,"px);"):"",`
614
- }`),a)}else hf(a);return function(){hf(a)}},[t,a])}var Dle=!1;function Mle(e){return Dle}var W4=function(t){return t===!1?!1:!ea()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},I2=P.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer,i=e.debug,o=e.autoDestroy,s=o===void 0?!0:o,u=e.children,l=P.useState(r),h=we(l,2),d=h[0],g=h[1],b=d||r;process.env.NODE_ENV!=="production"&&Ut(ea()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),P.useEffect(function(){(s||r)&&g(r)},[r,s]);var y=P.useState(function(){return W4(a)}),w=we(y,2),S=w[0],E=w[1];P.useEffect(function(){var V=W4(a);E(V??null)});var _=Rle(b&&!S,i),C=we(_,2),f=C[0],p=C[1],v=S??f;Ale(n&&r&&ea()&&(v===f||v===document.body));var x=null;if(u&&eh(u)&&t){var k=u;x=k.ref}var O=Sm(x,t);if(!b||!ea()||S===void 0)return null;var $=v===!1||Mle(),D=u;return t&&(D=P.cloneElement(u,{ref:O})),P.createElement(FA.Provider,{value:p},$?D:lo.createPortal(D,v))});process.env.NODE_ENV!=="production"&&(I2.displayName="Portal");function Nle(){var e=Q({},P);return e.useId}var Y4=0,G4=Nle();const jA=G4?function(t){var r=G4();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=P.useState("ssr-id"),n=we(r,2),a=n[0],i=n[1];return P.useEffect(function(){var o=Y4;Y4+=1,i("rc_unique_".concat(o))},[]),t||(process.env.NODE_ENV==="test"?"test-id":a)},LA=function(){if(typeof navigator>"u"||typeof window>"u")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(e==null?void 0:e.substr(0,4))};function Ile(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,i=n||{},o=i.className,s=i.content,u=a.x,l=u===void 0?0:u,h=a.y,d=h===void 0?0:h,g=P.useRef();if(!r||!r.points)return null;var b={position:"absolute"};if(r.autoArrow!==!1){var y=r.points[0],w=r.points[1],S=y[0],E=y[1],_=w[0],C=w[1];S===_||!["t","b"].includes(S)?b.top=d:S==="t"?b.top=0:b.bottom=0,E===C||!["l","r"].includes(E)?b.left=l:E==="l"?b.left=0:b.right=0}return P.createElement("div",{ref:g,className:ge("".concat(t,"-arrow"),o),style:b},s)}function Fle(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,i=e.motion;return a?P.createElement(lc,je({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(o){var s=o.className;return P.createElement("div",{style:{zIndex:n},className:ge("".concat(t,"-mask"),s)})}):null}var zA=P.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(zA.displayName="PopupContent");var BA=P.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,i=e.style,o=e.target,s=e.onVisibleChanged,u=e.open,l=e.keepDom,h=e.fresh,d=e.onClick,g=e.mask,b=e.arrow,y=e.arrowPos,w=e.align,S=e.motion,E=e.maskMotion,_=e.forceRender,C=e.getPopupContainer,f=e.autoDestroy,p=e.portal,v=e.zIndex,x=e.onMouseEnter,k=e.onMouseLeave,O=e.onPointerEnter,$=e.onPointerDownCapture,D=e.ready,V=e.offsetX,I=e.offsetY,N=e.offsetR,F=e.offsetB,T=e.onAlign,M=e.onPrepare,j=e.stretch,H=e.targetWidth,z=e.targetHeight,U=typeof r=="function"?r():r,G=u||l,X=(C==null?void 0:C.length)>0,K=P.useState(!C||!X),ne=we(K,2),ae=ne[0],ie=ne[1];if(fr(function(){!ae&&X&&o&&ie(!0)},[ae,X,o]),!ae)return null;var de="auto",pe={left:"-1000vw",top:"-1000vh",right:de,bottom:de};if(D||!u){var be,me=w.points,ee=w.dynamicInset||((be=w._experimental)===null||be===void 0?void 0:be.dynamicInset),ve=ee&&me[0][1]==="r",se=ee&&me[0][0]==="b";ve?(pe.right=N,pe.left=de):(pe.left=V,pe.right=de),se?(pe.bottom=F,pe.top=de):(pe.top=I,pe.bottom=de)}var fe={};return j&&(j.includes("height")&&z?fe.height=z:j.includes("minHeight")&&z&&(fe.minHeight=z),j.includes("width")&&H?fe.width=H:j.includes("minWidth")&&H&&(fe.minWidth=H)),u||(fe.pointerEvents="none"),P.createElement(p,{open:_||G,getContainer:C&&function(){return C(o)},autoDestroy:f},P.createElement(Fle,{prefixCls:a,open:u,zIndex:v,mask:g,motion:E}),P.createElement(_o,{onResize:T,disabled:!u},function(he){return P.createElement(lc,je({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(a,"-hidden")},S,{onAppearPrepare:M,onEnterPrepare:M,visible:u,onVisibleChanged:function(Te){var xe;S==null||(xe=S.onVisibleChanged)===null||xe===void 0||xe.call(S,Te),s(Te)}}),function(ke,Te){var xe=ke.className,$e=ke.style,Pe=ge(a,xe,n);return P.createElement("div",{ref:us(he,t,Te),className:Pe,style:Q(Q(Q(Q({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},pe),fe),$e),{},{boxSizing:"border-box",zIndex:v},i),onMouseEnter:x,onMouseLeave:k,onPointerEnter:O,onClick:d,onPointerDownCapture:$},b&&P.createElement(Ile,{prefixCls:a,arrow:b,arrowPos:y,align:w}),P.createElement(zA,{cache:!u&&!h},U))})}))});process.env.NODE_ENV!=="production"&&(BA.displayName="Popup");var HA=P.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=eh(r),i=P.useCallback(function(s){Vw(t,n?n(s):s)},[n]),o=Sm(i,Cm(r));return a?P.cloneElement(r,{ref:o}):r});process.env.NODE_ENV!=="production"&&(HA.displayName="TriggerWrapper");var K4=P.createContext(null);function X4(e){return e?Array.isArray(e)?e:[e]:[]}function jle(e,t,r,n){return P.useMemo(function(){var a=X4(r??t),i=X4(n??t),o=new Set(a),s=new Set(i);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,r,n])}const VA=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),i=a.width,o=a.height;if(i||o)return!0}}return!1};function Lle(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function zle(e,t,r,n){for(var a=r.points,i=Object.keys(e),o=0;o<i.length;o+=1){var s,u=i[o];if(Lle((s=e[u])===null||s===void 0?void 0:s.points,a,n))return"".concat(t,"-placement-").concat(u)}return""}function Z4(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function hh(e){return e.ownerDocument.defaultView}function M_(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var a=hh(r).getComputedStyle(r),i=a.overflowX,o=a.overflowY,s=a.overflow;[i,o,s].some(function(u){return n.includes(u)})&&t.push(r),r=r.parentElement}return t}function Hf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Nd(e){return Hf(parseFloat(e),0)}function J4(e,t){var r=Q({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=hh(n).getComputedStyle(n),i=a.overflow,o=a.overflowClipMargin,s=a.borderTopWidth,u=a.borderBottomWidth,l=a.borderLeftWidth,h=a.borderRightWidth,d=n.getBoundingClientRect(),g=n.offsetHeight,b=n.clientHeight,y=n.offsetWidth,w=n.clientWidth,S=Nd(s),E=Nd(u),_=Nd(l),C=Nd(h),f=Hf(Math.round(d.width/y*1e3)/1e3),p=Hf(Math.round(d.height/g*1e3)/1e3),v=(y-w-_-C)*f,x=(g-b-S-E)*p,k=S*p,O=E*p,$=_*f,D=C*f,V=0,I=0;if(i==="clip"){var N=Nd(o);V=N*f,I=N*p}var F=d.x+$-V,T=d.y+k-I,M=F+d.width+2*V-$-D-v,j=T+d.height+2*I-k-O-x;r.left=Math.max(r.left,F),r.top=Math.max(r.top,T),r.right=Math.min(r.right,M),r.bottom=Math.min(r.bottom,j)}}),r}function Q4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function eO(e,t){var r=t||[],n=we(r,2),a=n[0],i=n[1];return[Q4(e.width,a),Q4(e.height,i)]}function tO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function cl(e,t){var r=t[0],n=t[1],a,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:i}}function Ss(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function Ble(e,t,r,n,a,i,o){var s=P.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),u=we(s,2),l=u[0],h=u[1],d=P.useRef(0),g=P.useMemo(function(){return t?M_(t):[]},[t]),b=P.useRef({}),y=function(){b.current={}};e||y();var w=Xr(function(){if(t&&r&&e){let ia=function(xo,Yi){var Gi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe,Hs=K.x+xo,Vs=K.y+Yi,bc=Hs+ve,yc=Vs+ee,_c=Math.max(Hs,Gi.left),ut=Math.max(Vs,Gi.top),Pt=Math.min(bc,Gi.right),Lr=Math.min(yc,Gi.bottom);return Math.max(0,(Pt-_c)*(Lr-ut))},Bs=function(){ht=K.y+Ue,it=ht+ee,wt=K.x+Ye,dr=wt+ve};var _,C,f,p,v=t,x=v.ownerDocument,k=hh(v),O=k.getComputedStyle(v),$=O.width,D=O.height,V=O.position,I=v.style.left,N=v.style.top,F=v.style.right,T=v.style.bottom,M=v.style.overflow,j=Q(Q({},a[n]),i),H=x.createElement("div");(_=v.parentElement)===null||_===void 0||_.appendChild(H),H.style.left="".concat(v.offsetLeft,"px"),H.style.top="".concat(v.offsetTop,"px"),H.style.position=V,H.style.height="".concat(v.offsetHeight,"px"),H.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden";var z;if(Array.isArray(r))z={x:r[0],y:r[1],width:0,height:0};else{var U,G,X=r.getBoundingClientRect();X.x=(U=X.x)!==null&&U!==void 0?U:X.left,X.y=(G=X.y)!==null&&G!==void 0?G:X.top,z={x:X.x,y:X.y,width:X.width,height:X.height}}var K=v.getBoundingClientRect();K.x=(C=K.x)!==null&&C!==void 0?C:K.left,K.y=(f=K.y)!==null&&f!==void 0?f:K.top;var ne=x.documentElement,ae=ne.clientWidth,ie=ne.clientHeight,de=ne.scrollWidth,pe=ne.scrollHeight,be=ne.scrollTop,me=ne.scrollLeft,ee=K.height,ve=K.width,se=z.height,fe=z.width,he={left:0,top:0,right:ae,bottom:ie},ke={left:-me,top:-be,right:de-me,bottom:pe-be},Te=j.htmlRegion,xe="visible",$e="visibleFirst";Te!=="scroll"&&Te!==$e&&(Te=xe);var Pe=Te===$e,Ne=J4(ke,g),Ee=J4(he,g),Fe=Te===xe?Ee:Ne,rt=Pe?Ee:Fe;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var dt=v.getBoundingClientRect();v.style.left=I,v.style.top=N,v.style.right=F,v.style.bottom=T,v.style.overflow=M,(p=v.parentElement)===null||p===void 0||p.removeChild(H);var ct=Hf(Math.round(ve/parseFloat($)*1e3)/1e3),bt=Hf(Math.round(ee/parseFloat(D)*1e3)/1e3);if(ct===0||bt===0||Pf(r)&&!VA(r))return;var gt=j.offset,Qe=j.targetOffset,_t=eO(K,gt),It=we(_t,2),ft=It[0],Be=It[1],Ot=eO(z,Qe),Ve=we(Ot,2),Ke=Ve[0],Rt=Ve[1];z.x-=Ke,z.y-=Rt;var qt=j.points||[],Pr=we(qt,2),gr=Pr[0],Br=Pr[1],wr=tO(Br),cr=tO(gr),kr=cl(z,wr),Vt=cl(K,cr),nt=Q({},j),Ye=kr.x-Vt.x+ft,Ue=kr.y-Vt.y+Be,zt=ia(Ye,Ue),er=ia(Ye,Ue,Ee),Ze=cl(z,["t","l"]),De=cl(K,["t","l"]),qe=cl(z,["b","r"]),et=cl(K,["b","r"]),Je=j.overflow||{},Z=Je.adjustX,Se=Je.adjustY,Ae=Je.shiftX,Ge=Je.shiftY,at=function(Yi){return typeof Yi=="boolean"?Yi:Yi>=0},ht,it,wt,dr;Bs();var Ft=at(Se),Lt=cr[0]===wr[0];if(Ft&&cr[0]==="t"&&(it>rt.bottom||b.current.bt)){var Ie=Ue;Lt?Ie-=ee-se:Ie=Ze.y-et.y-Be;var We=ia(Ye,Ie),xt=ia(Ye,Ie,Ee);We>zt||We===zt&&(!Pe||xt>=er)?(b.current.bt=!0,Ue=Ie,Be=-Be,nt.points=[Ss(cr,0),Ss(wr,0)]):b.current.bt=!1}if(Ft&&cr[0]==="b"&&(ht<rt.top||b.current.tb)){var vt=Ue;Lt?vt+=ee-se:vt=qe.y-De.y-Be;var ir=ia(Ye,vt),xn=ia(Ye,vt,Ee);ir>zt||ir===zt&&(!Pe||xn>=er)?(b.current.tb=!0,Ue=vt,Be=-Be,nt.points=[Ss(cr,0),Ss(wr,0)]):b.current.tb=!1}var tn=at(Z),An=cr[1]===wr[1];if(tn&&cr[1]==="l"&&(dr>rt.right||b.current.rl)){var Sn=Ye;An?Sn-=ve-fe:Sn=Ze.x-et.x-ft;var aa=ia(Sn,Ue),mt=ia(Sn,Ue,Ee);aa>zt||aa===zt&&(!Pe||mt>=er)?(b.current.rl=!0,Ye=Sn,ft=-ft,nt.points=[Ss(cr,1),Ss(wr,1)]):b.current.rl=!1}if(tn&&cr[1]==="r"&&(wt<rt.left||b.current.lr)){var jt=Ye;An?jt+=ve-fe:jt=qe.x-De.x-ft;var vr=ia(jt,Ue),Dn=ia(jt,Ue,Ee);vr>zt||vr===zt&&(!Pe||Dn>=er)?(b.current.lr=!0,Ye=jt,ft=-ft,nt.points=[Ss(cr,1),Ss(wr,1)]):b.current.lr=!1}Bs();var rn=Ae===!0?0:Ae;typeof rn=="number"&&(wt<Ee.left&&(Ye-=wt-Ee.left-ft,z.x+fe<Ee.left+rn&&(Ye+=z.x-Ee.left+fe-rn)),dr>Ee.right&&(Ye-=dr-Ee.right-ft,z.x>Ee.right-rn&&(Ye+=z.x-Ee.right+rn)));var Yn=Ge===!0?0:Ge;typeof Yn=="number"&&(ht<Ee.top&&(Ue-=ht-Ee.top-Be,z.y+se<Ee.top+Yn&&(Ue+=z.y-Ee.top+se-Yn)),it>Ee.bottom&&(Ue-=it-Ee.bottom-Be,z.y>Ee.bottom-Yn&&(Ue+=z.y-Ee.bottom+Yn)));var yi=K.x+Ye,Za=yi+ve,pa=K.y+Ue,wo=pa+ee,Oa=z.x,Wt=Oa+fe,Mt=z.y,nn=Mt+se,an=Math.max(yi,Oa),Fr=Math.min(Za,Wt),Yr=(an+Fr)/2,Gn=Yr-yi,Cn=Math.max(pa,Mt),Kn=Math.min(wo,nn),Mn=(Cn+Kn)/2,ma=Mn-pa;o==null||o(t,nt);var Ra=dt.right-K.x-(Ye+K.width),Nn=dt.bottom-K.y-(Ue+K.height);ct===1&&(Ye=Math.round(Ye),Ra=Math.round(Ra)),bt===1&&(Ue=Math.round(Ue),Nn=Math.round(Nn));var Lu={ready:!0,offsetX:Ye/ct,offsetY:Ue/bt,offsetR:Ra/ct,offsetB:Nn/bt,arrowX:Gn/ct,arrowY:ma/bt,scaleX:ct,scaleY:bt,align:nt};h(Lu)}}),S=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&w()})},E=function(){h(function(C){return Q(Q({},C),{},{ready:!1})})};return fr(E,[n]),fr(function(){e||E()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,S]}function Hle(e,t,r,n,a){fr(function(){if(e&&t&&r){let d=function(){n(),a()};var i=t,o=r,s=M_(i),u=M_(o),l=hh(o),h=new Set([l].concat(tt(s),tt(u)));return h.forEach(function(g){g.addEventListener("scroll",d,{passive:!0})}),l.addEventListener("resize",d,{passive:!0}),n(),function(){h.forEach(function(g){g.removeEventListener("scroll",d),l.removeEventListener("resize",d)})}}},[e,t,r])}function Vle(e,t,r,n,a,i,o,s){var u=P.useRef(e);u.current=e;var l=P.useRef(!1);P.useEffect(function(){if(t&&n&&(!a||i)){var d=function(){l.current=!1},g=function(f){var p;u.current&&!o(((p=f.composedPath)===null||p===void 0||(p=p.call(f))===null||p===void 0?void 0:p[0])||f.target)&&!l.current&&s(!1)},b=hh(n);b.addEventListener("pointerdown",d,!0),b.addEventListener("mousedown",g,!0),b.addEventListener("contextmenu",g,!0);var y=Tf(r);if(y&&(y.addEventListener("mousedown",g,!0),y.addEventListener("contextmenu",g,!0)),process.env.NODE_ENV!=="production"){var w,S,E=r==null||(w=r.getRootNode)===null||w===void 0?void 0:w.call(r),_=(S=n.getRootNode)===null||S===void 0?void 0:S.call(n);Eu(E===_,"trigger element and popup element should in same shadow root.")}return function(){b.removeEventListener("pointerdown",d,!0),b.removeEventListener("mousedown",g,!0),b.removeEventListener("contextmenu",g,!0),y&&(y.removeEventListener("mousedown",g,!0),y.removeEventListener("contextmenu",g,!0))}}},[t,r,n,a,i]);function h(){l.current=!0}return h}var Ule=["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"];function qle(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I2,t=P.forwardRef(function(r,n){var a=r.prefixCls,i=a===void 0?"rc-trigger-popup":a,o=r.children,s=r.action,u=s===void 0?"hover":s,l=r.showAction,h=r.hideAction,d=r.popupVisible,g=r.defaultPopupVisible,b=r.onPopupVisibleChange,y=r.afterPopupVisibleChange,w=r.mouseEnterDelay,S=r.mouseLeaveDelay,E=S===void 0?.1:S,_=r.focusDelay,C=r.blurDelay,f=r.mask,p=r.maskClosable,v=p===void 0?!0:p,x=r.getPopupContainer,k=r.forceRender,O=r.autoDestroy,$=r.destroyPopupOnHide,D=r.popup,V=r.popupClassName,I=r.popupStyle,N=r.popupPlacement,F=r.builtinPlacements,T=F===void 0?{}:F,M=r.popupAlign,j=r.zIndex,H=r.stretch,z=r.getPopupClassNameFromAlign,U=r.fresh,G=r.alignPoint,X=r.onPopupClick,K=r.onPopupAlign,ne=r.arrow,ae=r.popupMotion,ie=r.maskMotion,de=r.popupTransitionName,pe=r.popupAnimation,be=r.maskTransitionName,me=r.maskAnimation,ee=r.className,ve=r.getTriggerDOMNode,se=sr(r,Ule),fe=O||$||!1,he=P.useState(!1),ke=we(he,2),Te=ke[0],xe=ke[1];fr(function(){xe(LA())},[]);var $e=P.useRef({}),Pe=P.useContext(K4),Ne=P.useMemo(function(){return{registerSubPopup:function(Pt,Lr){$e.current[Pt]=Lr,Pe==null||Pe.registerSubPopup(Pt,Lr)}}},[Pe]),Ee=jA(),Fe=P.useState(null),rt=we(Fe,2),dt=rt[0],ct=rt[1],bt=P.useRef(null),gt=Xr(function(ut){bt.current=ut,Pf(ut)&&dt!==ut&&ct(ut),Pe==null||Pe.registerSubPopup(Ee,ut)}),Qe=P.useState(null),_t=we(Qe,2),It=_t[0],ft=_t[1],Be=P.useRef(null),Ot=Xr(function(ut){Pf(ut)&&It!==ut&&(ft(ut),Be.current=ut)}),Ve=P.Children.only(o),Ke=(Ve==null?void 0:Ve.props)||{},Rt={},qt=Xr(function(ut){var Pt,Lr,on=It;return(on==null?void 0:on.contains(ut))||((Pt=Tf(on))===null||Pt===void 0?void 0:Pt.host)===ut||ut===on||(dt==null?void 0:dt.contains(ut))||((Lr=Tf(dt))===null||Lr===void 0?void 0:Lr.host)===ut||ut===dt||Object.values($e.current).some(function(Ur){return(Ur==null?void 0:Ur.contains(ut))||ut===Ur})}),Pr=Z4(i,ae,pe,de),gr=Z4(i,ie,me,be),Br=P.useState(g||!1),wr=we(Br,2),cr=wr[0],kr=wr[1],Vt=d??cr,nt=Xr(function(ut){d===void 0&&kr(ut)});fr(function(){kr(d||!1)},[d]);var Ye=P.useRef(Vt);Ye.current=Vt;var Ue=P.useRef([]);Ue.current=[];var zt=Xr(function(ut){var Pt;nt(ut),((Pt=Ue.current[Ue.current.length-1])!==null&&Pt!==void 0?Pt:Vt)!==ut&&(Ue.current.push(ut),b==null||b(ut))}),er=P.useRef(),Ze=function(){clearTimeout(er.current)},De=function(Pt){var Lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ze(),Lr===0?zt(Pt):er.current=setTimeout(function(){zt(Pt)},Lr*1e3)};P.useEffect(function(){return Ze},[]);var qe=P.useState(!1),et=we(qe,2),Je=et[0],Z=et[1];fr(function(ut){(!ut||Vt)&&Z(!0)},[Vt]);var Se=P.useState(null),Ae=we(Se,2),Ge=Ae[0],at=Ae[1],ht=P.useState(null),it=we(ht,2),wt=it[0],dr=it[1],Ft=function(Pt){dr([Pt.clientX,Pt.clientY])},Lt=Ble(Vt,dt,G&&wt!==null?wt:It,N,T,M,K),Ie=we(Lt,11),We=Ie[0],xt=Ie[1],vt=Ie[2],ir=Ie[3],xn=Ie[4],tn=Ie[5],An=Ie[6],Sn=Ie[7],aa=Ie[8],mt=Ie[9],jt=Ie[10],vr=jle(Te,u,l,h),Dn=we(vr,2),rn=Dn[0],Yn=Dn[1],yi=rn.has("click"),Za=Yn.has("click")||Yn.has("contextMenu"),pa=Xr(function(){Je||jt()}),wo=function(){Ye.current&&G&&Za&&De(!1)};Hle(Vt,It,dt,pa,wo),fr(function(){pa()},[wt,N]),fr(function(){Vt&&!(T!=null&&T[N])&&pa()},[JSON.stringify(M)]);var Oa=P.useMemo(function(){var ut=zle(T,i,mt,G);return ge(ut,z==null?void 0:z(mt))},[mt,z,T,i,G]);P.useImperativeHandle(n,function(){return{nativeElement:Be.current,popupElement:bt.current,forceAlign:pa}});var Wt=P.useState(0),Mt=we(Wt,2),nn=Mt[0],an=Mt[1],Fr=P.useState(0),Yr=we(Fr,2),Gn=Yr[0],Cn=Yr[1],Kn=function(){if(H&&It){var Pt=It.getBoundingClientRect();an(Pt.width),Cn(Pt.height)}},Mn=function(){Kn(),pa()},ma=function(Pt){Z(!1),jt(),y==null||y(Pt)},Ra=function(){return new Promise(function(Pt){Kn(),at(function(){return Pt})})};fr(function(){Ge&&(jt(),Ge(),at(null))},[Ge]);function Nn(ut,Pt,Lr,on){Rt[ut]=function(Ur){var zu;on==null||on(Ur),De(Pt,Lr);for(var wc=arguments.length,Ar=new Array(wc>1?wc-1:0),br=1;br<wc;br++)Ar[br-1]=arguments[br];(zu=Ke[ut])===null||zu===void 0||zu.call.apply(zu,[Ke,Ur].concat(Ar))}}(yi||Za)&&(Rt.onClick=function(ut){var Pt;Ye.current&&Za?De(!1):!Ye.current&&yi&&(Ft(ut),De(!0));for(var Lr=arguments.length,on=new Array(Lr>1?Lr-1:0),Ur=1;Ur<Lr;Ur++)on[Ur-1]=arguments[Ur];(Pt=Ke.onClick)===null||Pt===void 0||Pt.call.apply(Pt,[Ke,ut].concat(on))});var Lu=Vle(Vt,Za,It,dt,f,v,qt,De),ia=rn.has("hover"),Bs=Yn.has("hover"),xo,Yi;ia&&(Nn("onMouseEnter",!0,w,function(ut){Ft(ut)}),Nn("onPointerEnter",!0,w,function(ut){Ft(ut)}),xo=function(Pt){(Vt||Je)&&dt!==null&&dt!==void 0&&dt.contains(Pt.target)&&De(!0,w)},G&&(Rt.onMouseMove=function(ut){var Pt;(Pt=Ke.onMouseMove)===null||Pt===void 0||Pt.call(Ke,ut)})),Bs&&(Nn("onMouseLeave",!1,E),Nn("onPointerLeave",!1,E),Yi=function(){De(!1,E)}),rn.has("focus")&&Nn("onFocus",!0,_),Yn.has("focus")&&Nn("onBlur",!1,C),rn.has("contextMenu")&&(Rt.onContextMenu=function(ut){var Pt;Ye.current&&Yn.has("contextMenu")?De(!1):(Ft(ut),De(!0)),ut.preventDefault();for(var Lr=arguments.length,on=new Array(Lr>1?Lr-1:0),Ur=1;Ur<Lr;Ur++)on[Ur-1]=arguments[Ur];(Pt=Ke.onContextMenu)===null||Pt===void 0||Pt.call.apply(Pt,[Ke,ut].concat(on))}),ee&&(Rt.className=ge(Ke.className,ee));var Gi=Q(Q({},Ke),Rt),Hs={},Vs=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Vs.forEach(function(ut){se[ut]&&(Hs[ut]=function(){for(var Pt,Lr=arguments.length,on=new Array(Lr),Ur=0;Ur<Lr;Ur++)on[Ur]=arguments[Ur];(Pt=Gi[ut])===null||Pt===void 0||Pt.call.apply(Pt,[Gi].concat(on)),se[ut].apply(se,on)})});var bc=P.cloneElement(Ve,Q(Q({},Gi),Hs)),yc={x:tn,y:An},_c=ne?Q({},ne!==!0?ne:{}):null;return P.createElement(P.Fragment,null,P.createElement(_o,{disabled:!Vt,ref:Ot,onResize:Mn},P.createElement(HA,{getTriggerDOMNode:ve},bc)),P.createElement(K4.Provider,{value:Ne},P.createElement(BA,{portal:e,ref:gt,prefixCls:i,popup:D,className:ge(V,Oa),style:I,target:It,onMouseEnter:xo,onMouseLeave:Yi,onPointerEnter:xo,zIndex:j,open:Vt,keepDom:Je,fresh:U,onClick:X,onPointerDownCapture:Lu,mask:f,motion:Pr,maskMotion:gr,onVisibleChanged:ma,onPrepare:Ra,forceRender:k,autoDestroy:fe,getPopupContainer:x,align:mt,arrow:_c,arrowPos:yc,ready:We,offsetX:xt,offsetY:vt,offsetR:ir,offsetB:xn,onAlign:pa,stretch:H,targetWidth:nn/Sn,targetHeight:Gn/aa})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const UA=qle(I2);var dl={shiftX:64,adjustY:1},fl={adjustX:1,shiftY:!0},ui=[0,0],Wle={left:{points:["cr","cl"],overflow:fl,offset:[-4,0],targetOffset:ui},right:{points:["cl","cr"],overflow:fl,offset:[4,0],targetOffset:ui},top:{points:["bc","tc"],overflow:dl,offset:[0,-4],targetOffset:ui},bottom:{points:["tc","bc"],overflow:dl,offset:[0,4],targetOffset:ui},topLeft:{points:["bl","tl"],overflow:dl,offset:[0,-4],targetOffset:ui},leftTop:{points:["tr","tl"],overflow:fl,offset:[-4,0],targetOffset:ui},topRight:{points:["br","tr"],overflow:dl,offset:[0,-4],targetOffset:ui},rightTop:{points:["tl","tr"],overflow:fl,offset:[4,0],targetOffset:ui},bottomRight:{points:["tr","br"],overflow:dl,offset:[0,4],targetOffset:ui},rightBottom:{points:["bl","br"],overflow:fl,offset:[4,0],targetOffset:ui},bottomLeft:{points:["tl","bl"],overflow:dl,offset:[0,4],targetOffset:ui},leftBottom:{points:["br","bl"],overflow:fl,offset:[-4,0],targetOffset:ui}},Yle=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Gle=function(t,r){var n=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,o=t.mouseEnterDelay,s=o===void 0?0:o,u=t.mouseLeaveDelay,l=u===void 0?.1:u,h=t.overlayStyle,d=t.prefixCls,g=d===void 0?"rc-tooltip":d,b=t.children,y=t.onVisibleChange,w=t.afterVisibleChange,S=t.transitionName,E=t.animation,_=t.motion,C=t.placement,f=C===void 0?"right":C,p=t.align,v=p===void 0?{}:p,x=t.destroyTooltipOnHide,k=x===void 0?!1:x,O=t.defaultVisible,$=t.getTooltipContainer,D=t.overlayInnerStyle;t.arrowContent;var V=t.overlay,I=t.id,N=t.showArrow,F=N===void 0?!0:N,T=t.classNames,M=t.styles,j=sr(t,Yle),H=jA(I),z=A.useRef(null);A.useImperativeHandle(r,function(){return z.current});var U=Q({},j);"visible"in t&&(U.popupVisible=t.visible);var G=function(){return P.createElement(IA,{key:"content",prefixCls:g,id:H,bodyClassName:T==null?void 0:T.body,overlayInnerStyle:Q(Q({},D),M==null?void 0:M.body)},V)},X=function(){var ne=P.Children.only(b),ae=(ne==null?void 0:ne.props)||{},ie=Q(Q({},ae),{},{"aria-describedby":V?H:null});return P.cloneElement(b,ie)};return P.createElement(UA,je({popupClassName:ge(n,T==null?void 0:T.root),prefixCls:g,popup:G,action:i,builtinPlacements:Wle,popupPlacement:f,ref:z,popupAlign:v,getPopupContainer:$,onPopupVisibleChange:y,afterPopupVisibleChange:w,popupTransitionName:S,popupAnimation:E,popupMotion:_,defaultPopupVisible:O,autoDestroy:k,mouseLeaveDelay:l,popupStyle:Q(Q({},h),M==null?void 0:M.root),mouseEnterDelay:s,arrow:F},U),X())};const Kle=A.forwardRef(Gle);function ha(){ha=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(T,M,j){T[M]=j.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(T,M,j){return Object.defineProperty(T,M,{value:j,enumerable:!0,configurable:!0,writable:!0}),T[M]}try{l({},"")}catch{l=function(j,H,z){return j[H]=z}}function h(T,M,j,H){var z=M&&M.prototype instanceof E?M:E,U=Object.create(z.prototype),G=new N(H||[]);return a(U,"_invoke",{value:$(T,j,G)}),U}function d(T,M,j){try{return{type:"normal",arg:T.call(M,j)}}catch(H){return{type:"throw",arg:H}}}t.wrap=h;var g="suspendedStart",b="suspendedYield",y="executing",w="completed",S={};function E(){}function _(){}function C(){}var f={};l(f,o,function(){return this});var p=Object.getPrototypeOf,v=p&&p(p(F([])));v&&v!==r&&n.call(v,o)&&(f=v);var x=C.prototype=E.prototype=Object.create(f);function k(T){["next","throw","return"].forEach(function(M){l(T,M,function(j){return this._invoke(M,j)})})}function O(T,M){function j(z,U,G,X){var K=d(T[z],T,U);if(K.type!=="throw"){var ne=K.arg,ae=ne.value;return ae&&pt(ae)=="object"&&n.call(ae,"__await")?M.resolve(ae.__await).then(function(ie){j("next",ie,G,X)},function(ie){j("throw",ie,G,X)}):M.resolve(ae).then(function(ie){ne.value=ie,G(ne)},function(ie){return j("throw",ie,G,X)})}X(K.arg)}var H;a(this,"_invoke",{value:function(U,G){function X(){return new M(function(K,ne){j(U,G,K,ne)})}return H=H?H.then(X,X):X()}})}function $(T,M,j){var H=g;return function(z,U){if(H===y)throw Error("Generator is already running");if(H===w){if(z==="throw")throw U;return{value:e,done:!0}}for(j.method=z,j.arg=U;;){var G=j.delegate;if(G){var X=D(G,j);if(X){if(X===S)continue;return X}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(H===g)throw H=w,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);H=y;var K=d(T,M,j);if(K.type==="normal"){if(H=j.done?w:b,K.arg===S)continue;return{value:K.arg,done:j.done}}K.type==="throw"&&(H=w,j.method="throw",j.arg=K.arg)}}}function D(T,M){var j=M.method,H=T.iterator[j];if(H===e)return M.delegate=null,j==="throw"&&T.iterator.return&&(M.method="return",M.arg=e,D(T,M),M.method==="throw")||j!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+j+"' method")),S;var z=d(H,T.iterator,M.arg);if(z.type==="throw")return M.method="throw",M.arg=z.arg,M.delegate=null,S;var U=z.arg;return U?U.done?(M[T.resultName]=U.value,M.next=T.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,S):U:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,S)}function V(T){var M={tryLoc:T[0]};1 in T&&(M.catchLoc=T[1]),2 in T&&(M.finallyLoc=T[2],M.afterLoc=T[3]),this.tryEntries.push(M)}function I(T){var M=T.completion||{};M.type="normal",delete M.arg,T.completion=M}function N(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(V,this),this.reset(!0)}function F(T){if(T||T===""){var M=T[o];if(M)return M.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var j=-1,H=function z(){for(;++j<T.length;)if(n.call(T,j))return z.value=T[j],z.done=!1,z;return z.value=e,z.done=!0,z};return H.next=H}}throw new TypeError(pt(T)+" is not iterable")}return _.prototype=C,a(x,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:_,configurable:!0}),_.displayName=l(C,u,"GeneratorFunction"),t.isGeneratorFunction=function(T){var M=typeof T=="function"&&T.constructor;return!!M&&(M===_||(M.displayName||M.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,l(T,u,"GeneratorFunction")),T.prototype=Object.create(x),T},t.awrap=function(T){return{__await:T}},k(O.prototype),l(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(T,M,j,H,z){z===void 0&&(z=Promise);var U=new O(h(T,M,j,H),z);return t.isGeneratorFunction(M)?U:U.next().then(function(G){return G.done?G.value:U.next()})},k(x),l(x,u,"Generator"),l(x,o,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),t.keys=function(T){var M=Object(T),j=[];for(var H in M)j.push(H);return j.reverse(),function z(){for(;j.length;){var U=j.pop();if(U in M)return z.value=U,z.done=!1,z}return z.done=!0,z}},t.values=F,N.prototype={constructor:N,reset:function(M){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(I),!M)for(var j in this)j.charAt(0)==="t"&&n.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=e)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var j=this;function H(ne,ae){return G.type="throw",G.arg=M,j.next=ne,ae&&(j.method="next",j.arg=e),!!ae}for(var z=this.tryEntries.length-1;z>=0;--z){var U=this.tryEntries[z],G=U.completion;if(U.tryLoc==="root")return H("end");if(U.tryLoc<=this.prev){var X=n.call(U,"catchLoc"),K=n.call(U,"finallyLoc");if(X&&K){if(this.prev<U.catchLoc)return H(U.catchLoc,!0);if(this.prev<U.finallyLoc)return H(U.finallyLoc)}else if(X){if(this.prev<U.catchLoc)return H(U.catchLoc,!0)}else{if(!K)throw Error("try statement without catch or finally");if(this.prev<U.finallyLoc)return H(U.finallyLoc)}}}},abrupt:function(M,j){for(var H=this.tryEntries.length-1;H>=0;--H){var z=this.tryEntries[H];if(z.tryLoc<=this.prev&&n.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var U=z;break}}U&&(M==="break"||M==="continue")&&U.tryLoc<=j&&j<=U.finallyLoc&&(U=null);var G=U?U.completion:{};return G.type=M,G.arg=j,U?(this.method="next",this.next=U.finallyLoc,S):this.complete(G)},complete:function(M,j){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&j&&(this.next=j),S},finish:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.finallyLoc===M)return this.complete(H.completion,H.afterLoc),I(H),S}},catch:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var H=this.tryEntries[j];if(H.tryLoc===M){var z=H.completion;if(z.type==="throw"){var U=z.arg;I(H)}return U}}throw Error("illegal catch attempt")},delegateYield:function(M,j,H){return this.delegate={iterator:F(M),resultName:j,nextLoc:H},this.method==="next"&&(this.arg=e),S}},t}function rO(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(l){return void r(l)}s.done?t(u):Promise.resolve(u).then(n,a)}function Fu(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){rO(i,n,a,o,s,"next",u)}function s(u){rO(i,n,a,o,s,"throw",u)}o(void 0)})}}var wu="RC_FORM_INTERNAL_HOOKS",Nr=function(){Ut(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Jl=P.createContext({getFieldValue:Nr,getFieldsValue:Nr,getFieldError:Nr,getFieldWarning:Nr,getFieldsError:Nr,isFieldsTouched:Nr,isFieldTouched:Nr,isFieldValidating:Nr,isFieldsValidating:Nr,resetFields:Nr,setFields:Nr,setFieldValue:Nr,setFieldsValue:Nr,validateFields:Nr,submit:Nr,getInternalHooks:function(){return Nr(),{dispatch:Nr,initEntityValue:Nr,registerField:Nr,useSubscribe:Nr,setInitialValues:Nr,destroyForm:Nr,setCallbacks:Nr,registerWatch:Nr,getFields:Nr,setValidateMessages:Nr,setPreserve:Nr,getInitialValue:Nr}}}),Kp=P.createContext(null);function N_(e){return e==null?[]:Array.isArray(e)?e:[e]}function Xle(e){return e&&!!e._init}function I_(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var F_=I_();function Zle(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Jle(e,t,r){if(Uw())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&kf(a,r.prototype),a}function j_(e){var t=typeof Map=="function"?new Map:void 0;return j_=function(n){if(n===null||!Zle(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Jle(n,arguments,$f(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),kf(a,n)},j_(e)}var Qle=/%[sdj%]/g,qA=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(qA=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function L_(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Ya(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(Qle,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function ece(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function wn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ece(t)&&typeof e=="string"&&!e)}function tce(e,t,r){var n=[],a=0,i=e.length;function o(s){n.push.apply(n,tt(s||[])),a++,a===i&&r(n)}e.forEach(function(s){t(s,o)})}function nO(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<a?t(e[s],i):r([])}i([])}function rce(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,tt(e[r]||[]))}),t}var aO=function(e){Du(r,e);var t=Mu(r);function r(n,a){var i;return Un(this,r),i=t.call(this,"Async Validation Error"),re(Zt(i),"errors",void 0),re(Zt(i),"fields",void 0),i.errors=n,i.fields=a,i}return qn(r)}(j_(Error));function nce(e,t,r,n,a){if(t.first){var i=new Promise(function(g,b){var y=function(E){return n(E),E.length?b(new aO(E,L_(E))):g(a)},w=rce(e);nO(w,r,y)});return i.catch(function(g){return g}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),u=s.length,l=0,h=[],d=new Promise(function(g,b){var y=function(S){if(h.push.apply(h,S),l++,l===u)return n(h),h.length?b(new aO(h,L_(h))):g(a)};s.length||(n(h),g(a)),s.forEach(function(w){var S=e[w];o.indexOf(w)!==-1?nO(S,r,y):tce(S,r,y)})});return d.catch(function(g){return g}),d}function ace(e){return!!(e&&e.message!==void 0)}function ice(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function iO(e,t){return function(r){var n;return e.fullFields?n=ice(t,e.fullFields):n=t[r.field||e.fullField],ace(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function oO(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];pt(n)==="object"&&pt(e[r])==="object"?e[r]=Q(Q({},e[r]),n):e[r]=n}}return e}var hl="enum",oce=function(t,r,n,a,i){t[hl]=Array.isArray(t[hl])?t[hl]:[],t[hl].indexOf(r)===-1&&a.push(Ya(i.messages[hl],t.fullField,t[hl].join(", ")))},sce=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(Ya(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(Ya(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},uce=function(t,r,n,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=r,d=null,g=typeof r=="number",b=typeof r=="string",y=Array.isArray(r);if(g?d="number":b?d="string":y&&(d="array"),!d)return!1;y&&(h=r.length),b&&(h=r.replace(l,"_").length),o?h!==t.len&&a.push(Ya(i.messages[d].len,t.fullField,t.len)):s&&!u&&h<t.min?a.push(Ya(i.messages[d].min,t.fullField,t.min)):u&&!s&&h>t.max?a.push(Ya(i.messages[d].max,t.fullField,t.max)):s&&u&&(h<t.min||h>t.max)&&a.push(Ya(i.messages[d].range,t.fullField,t.min,t.max))},WA=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||wn(r,o||t.type))&&a.push(Ya(i.messages.required,t.fullField))},G0;const lce=function(){if(G0)return G0;var e="[a-fA-F\\d:]",t=function(v){return v&&v.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(a.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(o,"$)")),u=new RegExp("^".concat(r,"$")),l=new RegExp("^".concat(o,"$")),h=function(v){return v&&v.exact?s:new RegExp("(?:".concat(t(v)).concat(r).concat(t(v),")|(?:").concat(t(v)).concat(o).concat(t(v),")"),"g")};h.v4=function(p){return p&&p.exact?u:new RegExp("".concat(t(p)).concat(r).concat(t(p)),"g")},h.v6=function(p){return p&&p.exact?l:new RegExp("".concat(t(p)).concat(o).concat(t(p)),"g")};var d="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",b=h.v4().source,y=h.v6().source,w="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",E="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",_="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',f="(?:".concat(d,"|www\\.)").concat(g,"(?:localhost|").concat(b,"|").concat(y,"|").concat(w).concat(S).concat(E,")").concat(_).concat(C);return G0=new RegExp("(?:^".concat(f,"$)"),"i"),G0};var sO={email:/^(([^<>()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Jd={integer:function(t){return Jd.number(t)&&parseInt(t,10)===t},float:function(t){return Jd.number(t)&&!Jd.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return pt(t)==="object"&&!Jd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(sO.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(lce())},hex:function(t){return typeof t=="string"&&!!t.match(sO.hex)}},cce=function(t,r,n,a,i){if(t.required&&r===void 0){WA(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?Jd[s](r)||a.push(Ya(i.messages.types[s],t.fullField,t.type)):s&&pt(r)!==t.type&&a.push(Ya(i.messages.types[s],t.fullField,t.type))},dce=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(Ya(i.messages.whitespace,t.fullField))};const ar={required:WA,whitespace:dce,type:cce,range:uce,enum:oce,pattern:sce};var fce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r)&&!t.required)return n();ar.required(t,r,a,o,i)}n(o)},hce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();ar.required(t,r,a,o,i,"array"),r!=null&&(ar.type(t,r,a,o,i),ar.range(t,r,a,o,i))}n(o)},pce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r)&&!t.required)return n();ar.required(t,r,a,o,i),r!==void 0&&ar.type(t,r,a,o,i)}n(o)},mce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r,"date")&&!t.required)return n();if(ar.required(t,r,a,o,i),!wn(r,"date")){var u;r instanceof Date?u=r:u=new Date(r),ar.type(t,u,a,o,i),u&&ar.range(t,u.getTime(),a,o,i)}}n(o)},gce="enum",vce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r)&&!t.required)return n();ar.required(t,r,a,o,i),r!==void 0&&ar[gce](t,r,a,o,i)}n(o)},bce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r)&&!t.required)return n();ar.required(t,r,a,o,i),r!==void 0&&(ar.type(t,r,a,o,i),ar.range(t,r,a,o,i))}n(o)},yce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r)&&!t.required)return n();ar.required(t,r,a,o,i),r!==void 0&&(ar.type(t,r,a,o,i),ar.range(t,r,a,o,i))}n(o)},_ce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r)&&!t.required)return n();ar.required(t,r,a,o,i),r!==void 0&&ar.type(t,r,a,o,i)}n(o)},wce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),wn(r)&&!t.required)return n();ar.required(t,r,a,o,i),r!==void 0&&(ar.type(t,r,a,o,i),ar.range(t,r,a,o,i))}n(o)},xce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r)&&!t.required)return n();ar.required(t,r,a,o,i),r!==void 0&&ar.type(t,r,a,o,i)}n(o)},Sce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r,"string")&&!t.required)return n();ar.required(t,r,a,o,i),wn(r,"string")||ar.pattern(t,r,a,o,i)}n(o)},Cce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r)&&!t.required)return n();ar.required(t,r,a,o,i),wn(r)||ar.type(t,r,a,o,i)}n(o)},Ece=function(t,r,n,a,i){var o=[],s=Array.isArray(r)?"array":pt(r);ar.required(t,r,a,o,i,s),n(o)},Oce=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(wn(r,"string")&&!t.required)return n();ar.required(t,r,a,o,i,"string"),wn(r,"string")||(ar.type(t,r,a,o,i),ar.range(t,r,a,o,i),ar.pattern(t,r,a,o,i),t.whitespace===!0&&ar.whitespace(t,r,a,o,i))}n(o)},kb=function(t,r,n,a,i){var o=t.type,s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(wn(r,o)&&!t.required)return n();ar.required(t,r,a,s,i,o),wn(r,o)||ar.type(t,r,a,s,i)}n(s)};const df={string:Oce,method:_ce,number:wce,boolean:pce,regexp:Cce,integer:yce,float:bce,array:hce,object:xce,enum:vce,pattern:Sce,date:mce,url:kb,hex:kb,email:kb,required:Ece,any:fce};var ph=function(){function e(t){Un(this,e),re(this,"rules",null),re(this,"_messages",F_),this.define(t)}return qn(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(pt(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];n.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=oO(I_(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=r,s=a,u=i;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,o),Promise.resolve(o);function l(y){var w=[],S={};function E(C){if(Array.isArray(C)){var f;w=(f=w).concat.apply(f,tt(C))}else w.push(C)}for(var _=0;_<y.length;_++)E(y[_]);w.length?(S=L_(w),u(w,S)):u(null,o)}if(s.messages){var h=this.messages();h===F_&&(h=I_()),oO(h,s.messages),s.messages=h}else s.messages=this.messages();var d={},g=s.keys||Object.keys(this.rules);g.forEach(function(y){var w=n.rules[y],S=o[y];w.forEach(function(E){var _=E;typeof _.transform=="function"&&(o===r&&(o=Q({},o)),S=o[y]=_.transform(S),S!=null&&(_.type=_.type||(Array.isArray(S)?"array":pt(S)))),typeof _=="function"?_={validator:_}:_=Q({},_),_.validator=n.getValidationMethod(_),_.validator&&(_.field=y,_.fullField=_.fullField||y,_.type=n.getType(_),d[y]=d[y]||[],d[y].push({rule:_,value:S,source:o,field:y}))})});var b={};return nce(d,s,function(y,w){var S=y.rule,E=(S.type==="object"||S.type==="array")&&(pt(S.fields)==="object"||pt(S.defaultField)==="object");E=E&&(S.required||!S.required&&y.value),S.field=y.field;function _(x,k){return Q(Q({},k),{},{fullField:"".concat(S.fullField,".").concat(x),fullFields:S.fullFields?[].concat(tt(S.fullFields),[x]):[x]})}function C(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(x)?x:[x];!s.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&S.message!==void 0&&(k=[].concat(S.message));var O=k.map(iO(S,o));if(s.first&&O.length)return b[S.field]=1,w(O);if(!E)w(O);else{if(S.required&&!y.value)return S.message!==void 0?O=[].concat(S.message).map(iO(S,o)):s.error&&(O=[s.error(S,Ya(s.messages.required,S.field))]),w(O);var $={};S.defaultField&&Object.keys(y.value).map(function(I){$[I]=S.defaultField}),$=Q(Q({},$),y.rule.fields);var D={};Object.keys($).forEach(function(I){var N=$[I],F=Array.isArray(N)?N:[N];D[I]=F.map(_.bind(null,I))});var V=new e(D);V.messages(s.messages),y.rule.options&&(y.rule.options.messages=s.messages,y.rule.options.error=s.error),V.validate(y.value,y.rule.options||s,function(I){var N=[];O&&O.length&&N.push.apply(N,tt(O)),I&&I.length&&N.push.apply(N,tt(I)),w(N.length?N:null)})}}var f;if(S.asyncValidator)f=S.asyncValidator(S,y.value,C,y.source,s);else if(S.validator){try{f=S.validator(S,y.value,C,y.source,s)}catch(x){var p,v;(p=(v=console).error)===null||p===void 0||p.call(v,x),s.suppressValidatorError||setTimeout(function(){throw x},0),C(x.message)}f===!0?C():f===!1?C(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):f instanceof Array?C(f):f instanceof Error&&C(f.message)}f&&f.then&&f.then(function(){return C()},function(x){return C(x)})},function(y){l(y)},o)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!df.hasOwnProperty(r.type))throw new Error(Ya("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?df.required:df[this.getType(r)]||void 0}}]),e}();re(ph,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");df[t]=r});re(ph,"warning",qA);re(ph,"messages",F_);re(ph,"validators",df);var ja="'${name}' is not a valid ${type}",YA={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:ja,method:ja,array:ja,object:ja,number:ja,date:ja,boolean:ja,integer:ja,float:ja,regexp:ja,email:ja,url:ja,hex:ja},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}"}},uO=ph;function Rce(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var lO="CODE_LOGIC_ERROR";function z_(e,t,r,n,a){return B_.apply(this,arguments)}function B_(){return B_=Fu(ha().mark(function e(t,r,n,a,i){var o,s,u,l,h,d,g,b,y;return ha().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return o=Q({},n),delete o.ruleIndex,uO.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(E){return console.error(E),Promise.reject(lO)}}),u=null,o&&o.type==="array"&&o.defaultField&&(u=o.defaultField,delete o.defaultField),l=new uO(re({},t,[o])),h=Cl(YA,a.validateMessages),l.messages(h),d=[],S.prev=10,S.next=13,Promise.resolve(l.validate(re({},t,r),Q({},a)));case 13:S.next=18;break;case 15:S.prev=15,S.t0=S.catch(10),S.t0.errors&&(d=S.t0.errors.map(function(E,_){var C=E.message,f=C===lO?h.default:C;return P.isValidElement(f)?P.cloneElement(f,{key:"error_".concat(_)}):f}));case 18:if(!(!d.length&&u)){S.next=23;break}return S.next=21,Promise.all(r.map(function(E,_){return z_("".concat(t,".").concat(_),E,u,a,i)}));case 21:return g=S.sent,S.abrupt("return",g.reduce(function(E,_){return[].concat(tt(E),tt(_))},[]));case 23:return b=Q(Q({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),y=d.map(function(E){return typeof E=="string"?Rce(E,b):E}),S.abrupt("return",y);case 26:case"end":return S.stop()}},e,null,[[10,15]])})),B_.apply(this,arguments)}function Tce(e,t,r,n,a,i){var o=e.join("."),s=r.map(function(h,d){var g=h.validator,b=Q(Q({},h),{},{ruleIndex:d});return g&&(b.validator=function(y,w,S){var E=!1,_=function(){for(var p=arguments.length,v=new Array(p),x=0;x<p;x++)v[x]=arguments[x];Promise.resolve().then(function(){Ut(!E,"Your validator function has already return a promise. `callback` will be ignored."),E||S.apply(void 0,v)})},C=g(y,w,_);E=C&&typeof C.then=="function"&&typeof C.catch=="function",Ut(E,"`callback` is deprecated. Please return a promise instead."),E&&C.then(function(){S()}).catch(function(f){S(f||" ")})}),b}).sort(function(h,d){var g=h.warningOnly,b=h.ruleIndex,y=d.warningOnly,w=d.ruleIndex;return!!g==!!y?b-w:g?1:-1}),u;if(a===!0)u=new Promise(function(){var h=Fu(ha().mark(function d(g,b){var y,w,S;return ha().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:y=0;case 1:if(!(y<s.length)){_.next=12;break}return w=s[y],_.next=5,z_(o,t,w,n,i);case 5:if(S=_.sent,!S.length){_.next=9;break}return b([{errors:S,rule:w}]),_.abrupt("return");case 9:y+=1,_.next=1;break;case 12:g([]);case 13:case"end":return _.stop()}},d)}));return function(d,g){return h.apply(this,arguments)}}());else{var l=s.map(function(h){return z_(o,t,h,n,i).then(function(d){return{errors:d,rule:h}})});u=(a?kce(l):Pce(l)).then(function(h){return Promise.reject(h)})}return u.catch(function(h){return h}),u}function Pce(e){return H_.apply(this,arguments)}function H_(){return H_=Fu(ha().mark(function e(t){return ha().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var i,o=(i=[]).concat.apply(i,tt(a));return o}));case 1:case"end":return n.stop()}},e)})),H_.apply(this,arguments)}function kce(e){return V_.apply(this,arguments)}function V_(){return V_=Fu(ha().mark(function e(t){var r;return ha().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(i){t.forEach(function(o){o.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return a.stop()}},e)})),V_.apply(this,arguments)}function cn(e){return N_(e)}function cO(e,t){var r={};return t.forEach(function(n){var a=Ii(e,n);r=$i(r,n,a)}),r}function Bl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return GA(t,n,r)})}function GA(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function $ce(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||pt(e)!=="object"||pt(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return tt(a).every(function(i){var o=e[i],s=t[i];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function Ace(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&pt(t.target)==="object"&&e in t.target?t.target[e]:t}function dO(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],i=t-r;return i>0?[].concat(tt(e.slice(0,r)),[a],tt(e.slice(r,t)),tt(e.slice(t+1,n))):i<0?[].concat(tt(e.slice(0,t)),tt(e.slice(t+1,r+1)),[a],tt(e.slice(r+1,n))):e}var Dce=["name"],li=[];function $b(e,t,r,n,a,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==a}var F2=function(e){Du(r,e);var t=Mu(r);function r(n){var a;if(Un(this,r),a=t.call(this,n),re(Zt(a),"state",{resetCount:0}),re(Zt(a),"cancelRegisterFunc",null),re(Zt(a),"mounted",!1),re(Zt(a),"touched",!1),re(Zt(a),"dirty",!1),re(Zt(a),"validatePromise",void 0),re(Zt(a),"prevValidating",void 0),re(Zt(a),"errors",li),re(Zt(a),"warnings",li),re(Zt(a),"cancelRegister",function(){var u=a.props,l=u.preserve,h=u.isListField,d=u.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(h,l,cn(d)),a.cancelRegisterFunc=null}),re(Zt(a),"getNamePath",function(){var u=a.props,l=u.name,h=u.fieldContext,d=h.prefixName,g=d===void 0?[]:d;return l!==void 0?[].concat(tt(g),tt(l)):[]}),re(Zt(a),"getRules",function(){var u=a.props,l=u.rules,h=l===void 0?[]:l,d=u.fieldContext;return h.map(function(g){return typeof g=="function"?g(d):g})}),re(Zt(a),"refresh",function(){a.mounted&&a.setState(function(u){var l=u.resetCount;return{resetCount:l+1}})}),re(Zt(a),"metaCache",null),re(Zt(a),"triggerMetaEvent",function(u){var l=a.props.onMetaChange;if(l){var h=Q(Q({},a.getMeta()),{},{destroy:u});Uy(a.metaCache,h)||l(h),a.metaCache=h}else a.metaCache=null}),re(Zt(a),"onStoreChange",function(u,l,h){var d=a.props,g=d.shouldUpdate,b=d.dependencies,y=b===void 0?[]:b,w=d.onReset,S=h.store,E=a.getNamePath(),_=a.getValue(u),C=a.getValue(S),f=l&&Bl(l,E);switch(h.type==="valueUpdate"&&h.source==="external"&&!Uy(_,C)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=li,a.warnings=li,a.triggerMetaEvent()),h.type){case"reset":if(!l||f){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=li,a.warnings=li,a.triggerMetaEvent(),w==null||w(),a.refresh();return}break;case"remove":{if(g&&$b(g,u,S,_,C,h)){a.reRender();return}break}case"setField":{var p=h.data;if(f){"touched"in p&&(a.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(a.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(a.errors=p.errors||li),"warnings"in p&&(a.warnings=p.warnings||li),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in p&&Bl(l,E,!0)){a.reRender();return}if(g&&!E.length&&$b(g,u,S,_,C,h)){a.reRender();return}break}case"dependenciesUpdate":{var v=y.map(cn);if(v.some(function(x){return Bl(h.relatedFields,x)})){a.reRender();return}break}default:if(f||(!y.length||E.length||g)&&$b(g,u,S,_,C,h)){a.reRender();return}break}g===!0&&a.reRender()}),re(Zt(a),"validateRules",function(u){var l=a.getNamePath(),h=a.getValue(),d=u||{},g=d.triggerName,b=d.validateOnly,y=b===void 0?!1:b,w=Promise.resolve().then(Fu(ha().mark(function S(){var E,_,C,f,p,v,x;return ha().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(a.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(E=a.props,_=E.validateFirst,C=_===void 0?!1:_,f=E.messageVariables,p=E.validateDebounce,v=a.getRules(),g&&(v=v.filter(function($){return $}).filter(function($){var D=$.validateTrigger;if(!D)return!0;var V=N_(D);return V.includes(g)})),!(p&&g)){O.next=10;break}return O.next=8,new Promise(function($){setTimeout($,p)});case 8:if(a.validatePromise===w){O.next=10;break}return O.abrupt("return",[]);case 10:return x=Tce(l,h,v,u,C,f),x.catch(function($){return $}).then(function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:li;if(a.validatePromise===w){var D;a.validatePromise=null;var V=[],I=[];(D=$.forEach)===null||D===void 0||D.call($,function(N){var F=N.rule.warningOnly,T=N.errors,M=T===void 0?li:T;F?I.push.apply(I,tt(M)):V.push.apply(V,tt(M))}),a.errors=V,a.warnings=I,a.triggerMetaEvent(),a.reRender()}}),O.abrupt("return",x);case 13:case"end":return O.stop()}},S)})));return y||(a.validatePromise=w,a.dirty=!0,a.errors=li,a.warnings=li,a.triggerMetaEvent(),a.reRender()),w}),re(Zt(a),"isFieldValidating",function(){return!!a.validatePromise}),re(Zt(a),"isFieldTouched",function(){return a.touched}),re(Zt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var u=a.props.fieldContext,l=u.getInternalHooks(wu),h=l.getInitialValue;return h(a.getNamePath())!==void 0}),re(Zt(a),"getErrors",function(){return a.errors}),re(Zt(a),"getWarnings",function(){return a.warnings}),re(Zt(a),"isListField",function(){return a.props.isListField}),re(Zt(a),"isList",function(){return a.props.isList}),re(Zt(a),"isPreserve",function(){return a.props.preserve}),re(Zt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var u={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return u}),re(Zt(a),"getOnlyChild",function(u){if(typeof u=="function"){var l=a.getMeta();return Q(Q({},a.getOnlyChild(u(a.getControlled(),l,a.props.fieldContext))),{},{isFunction:!0})}var h=mo(u);return h.length!==1||!P.isValidElement(h[0])?{child:h,isFunction:!1}:{child:h[0],isFunction:!1}}),re(Zt(a),"getValue",function(u){var l=a.props.fieldContext.getFieldsValue,h=a.getNamePath();return Ii(u||l(!0),h)}),re(Zt(a),"getControlled",function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=a.props,h=l.name,d=l.trigger,g=l.validateTrigger,b=l.getValueFromEvent,y=l.normalize,w=l.valuePropName,S=l.getValueProps,E=l.fieldContext,_=g!==void 0?g:E.validateTrigger,C=a.getNamePath(),f=E.getInternalHooks,p=E.getFieldsValue,v=f(wu),x=v.dispatch,k=a.getValue(),O=S||function(N){return re({},w,N)},$=u[d],D=h!==void 0?O(k):{};process.env.NODE_ENV!=="production"&&D&&Object.keys(D).forEach(function(N){Ut(typeof D[N]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(N,")"))});var V=Q(Q({},u),D);V[d]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var N,F=arguments.length,T=new Array(F),M=0;M<F;M++)T[M]=arguments[M];b?N=b.apply(void 0,T):N=Ace.apply(void 0,[w].concat(T)),y&&(N=y(N,k,p(!0))),N!==k&&x({type:"updateValue",namePath:C,value:N}),$&&$.apply(void 0,T)};var I=N_(_||[]);return I.forEach(function(N){var F=V[N];V[N]=function(){F&&F.apply(void 0,arguments);var T=a.props.rules;T&&T.length&&x({type:"validateField",namePath:C,triggerName:N})}}),V}),n.fieldContext){var i=n.fieldContext.getInternalHooks,o=i(wu),s=o.initEntityValue;s(Zt(a))}return a}return qn(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.shouldUpdate,o=a.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,u=s(wu),l=u.registerField;this.cancelRegisterFunc=l(this)}i===!0&&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 a=this.state.resetCount,i=this.props.children,o=this.getOnlyChild(i),s=o.child,u=o.isFunction,l;return u?l=s:P.isValidElement(s)?l=P.cloneElement(s,this.getControlled(s.props)):(Ut(!s,"`children` of Field is not validate ReactElement."),l=s),P.createElement(P.Fragment,{key:a},l)}}]),r}(P.Component);re(F2,"contextType",Jl);re(F2,"defaultProps",{trigger:"onChange",valuePropName:"value"});function KA(e){var t,r=e.name,n=sr(e,Dce),a=P.useContext(Jl),i=P.useContext(Kp),o=r!==void 0?cn(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!i,u="keep";return s||(u="_".concat((o||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&s&&o.length<=1&&Ut(!1,"`preserve` should not apply on Form.List fields."),P.createElement(F2,je({key:u,name:o,isListField:s},n,{fieldContext:a}))}function Mce(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,i=e.validateTrigger,o=e.isListField,s=P.useContext(Jl),u=P.useContext(Kp),l=P.useRef({keys:[],id:0}),h=l.current,d=P.useMemo(function(){var w=cn(s.prefixName)||[];return[].concat(tt(w),tt(cn(t)))},[s.prefixName,t]),g=P.useMemo(function(){return Q(Q({},s),{},{prefixName:d})},[s,d]),b=P.useMemo(function(){return{getKey:function(S){var E=d.length,_=S[E];return[h.keys[_],S.slice(E+1)]}}},[d]);if(typeof n!="function")return Ut(!1,"Form.List only accepts function as children."),null;var y=function(S,E,_){var C=_.source;return C==="internal"?!1:S!==E};return P.createElement(Kp.Provider,{value:b},P.createElement(Jl.Provider,{value:g},P.createElement(KA,{name:[],shouldUpdate:y,rules:a,validateTrigger:i,initialValue:r,isList:!0,isListField:o??!!u},function(w,S){var E=w.value,_=E===void 0?[]:E,C=w.onChange,f=s.getFieldValue,p=function(){var O=f(d||[]);return O||[]},v={add:function(O,$){var D=p();$>=0&&$<=D.length?(h.keys=[].concat(tt(h.keys.slice(0,$)),[h.id],tt(h.keys.slice($))),C([].concat(tt(D.slice(0,$)),[O],tt(D.slice($))))):(process.env.NODE_ENV!=="production"&&($<0||$>D.length)&&Ut(!1,"The second parameter of the add function should be a valid positive number."),h.keys=[].concat(tt(h.keys),[h.id]),C([].concat(tt(D),[O]))),h.id+=1},remove:function(O){var $=p(),D=new Set(Array.isArray(O)?O:[O]);D.size<=0||(h.keys=h.keys.filter(function(V,I){return!D.has(I)}),C($.filter(function(V,I){return!D.has(I)})))},move:function(O,$){if(O!==$){var D=p();O<0||O>=D.length||$<0||$>=D.length||(h.keys=dO(h.keys,O,$),C(dO(D,O,$)))}}},x=_||[];return Array.isArray(x)||(x=[],process.env.NODE_ENV!=="production"&&Ut(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),n(x.map(function(k,O){var $=h.keys[O];return $===void 0&&(h.keys[O]=h.id,$=h.keys[O],h.id+=1),{name:O,key:$,isListField:!0}}),v,S)})))}function Nce(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,i){e.forEach(function(o,s){o.catch(function(u){return t=!0,u}).then(function(u){r-=1,n[s]=u,!(r>0)&&(t&&i(n),a(n))})})}):Promise.resolve([])}var XA="__@field_split__";function Ab(e){return e.map(function(t){return"".concat(pt(t),":").concat(t)}).join(XA)}var pl=function(){function e(){Un(this,e),re(this,"kvs",new Map)}return qn(e,[{key:"set",value:function(r,n){this.kvs.set(Ab(r),n)}},{key:"get",value:function(r){return this.kvs.get(Ab(r))}},{key:"update",value:function(r,n){var a=this.get(r),i=n(a);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Ab(r))}},{key:"map",value:function(r){return tt(this.kvs.entries()).map(function(n){var a=we(n,2),i=a[0],o=a[1],s=i.split(XA);return r({key:s.map(function(u){var l=u.match(/^([^:]*):(.*)$/),h=we(l,3),d=h[1],g=h[2];return d==="number"?Number(g):g}),value:o})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,i=n.value;return r[a.join(".")]=i,null}),r}}]),e}(),Ice=["name"],Fce=qn(function e(t){var r=this;Un(this,e),re(this,"formHooked",!1),re(this,"forceRootUpdate",void 0),re(this,"subscribable",!0),re(this,"store",{}),re(this,"fieldEntities",[]),re(this,"initialValues",{}),re(this,"callbacks",{}),re(this,"validateMessages",null),re(this,"preserve",null),re(this,"lastValidatePromise",null),re(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),re(this,"getInternalHooks",function(n){return n===wu?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Ut(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),re(this,"useSubscribe",function(n){r.subscribable=n}),re(this,"prevWithoutPreserves",null),re(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var i,o=Cl(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var u=s.key;o=$i(o,u,Ii(n,u))}),r.prevWithoutPreserves=null,r.updateStore(o)}}),re(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new pl;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||a.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),re(this,"getInitialValue",function(n){var a=Ii(r.initialValues,n);return n.length?Cl(a):a}),re(this,"setCallbacks",function(n){r.callbacks=n}),re(this,"setValidateMessages",function(n){r.validateMessages=n}),re(this,"setPreserve",function(n){r.preserve=n}),re(this,"watchList",[]),re(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),re(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(o){o(a,i,n)})}}),re(this,"timeoutId",null),re(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||Ut(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),re(this,"updateStore",function(n){r.store=n}),re(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),re(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new pl;return r.getFieldEntities(n).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),re(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(i){var o=cn(i);return a.get(o)||{INVALIDATE_NAME_PATH:cn(i)}})}),re(this,"getFieldsValue",function(n,a){r.warningUnhooked();var i,o,s;if(n===!0||Array.isArray(n)?(i=n,o=a):n&&pt(n)==="object"&&(s=n.strict,o=n.filter),i===!0&&!o)return r.store;var u=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),l=[];return u.forEach(function(h){var d,g,b="INVALIDATE_NAME_PATH"in h?h.INVALIDATE_NAME_PATH:h.getNamePath();if(s){var y,w;if((y=(w=h).isList)!==null&&y!==void 0&&y.call(w))return}else if(!i&&(d=(g=h).isListField)!==null&&d!==void 0&&d.call(g))return;if(!o)l.push(b);else{var S="getMeta"in h?h.getMeta():null;o(S)&&l.push(b)}}),cO(r.store,l.map(cn))}),re(this,"getFieldValue",function(n){r.warningUnhooked();var a=cn(n);return Ii(r.store,a)}),re(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:cn(n[o]),errors:[],warnings:[]}})}),re(this,"getFieldError",function(n){r.warningUnhooked();var a=cn(n),i=r.getFieldsError([a])[0];return i.errors}),re(this,"getFieldWarning",function(n){r.warningUnhooked();var a=cn(n),i=r.getFieldsError([a])[0];return i.warnings}),re(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a[0],s=a[1],u,l=!1;a.length===0?u=null:a.length===1?Array.isArray(o)?(u=o.map(cn),l=!1):(u=null,l=o):(u=o.map(cn),l=s);var h=r.getFieldEntities(!0),d=function(S){return S.isFieldTouched()};if(!u)return l?h.every(function(w){return d(w)||w.isList()}):h.some(d);var g=new pl;u.forEach(function(w){g.set(w,[])}),h.forEach(function(w){var S=w.getNamePath();u.forEach(function(E){E.every(function(_,C){return S[C]===_})&&g.update(E,function(_){return[].concat(tt(_),[w])})})});var b=function(S){return S.some(d)},y=g.map(function(w){var S=w.value;return S});return l?y.every(b):y.some(b)}),re(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),re(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(o){return o.isFieldValidating()});var i=n.map(cn);return a.some(function(o){var s=o.getNamePath();return Bl(i,s)&&o.isFieldValidating()})}),re(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),re(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new pl,i=r.getFieldEntities(!0);i.forEach(function(u){var l=u.props.initialValue,h=u.getNamePath();if(l!==void 0){var d=a.get(h)||new Set;d.add({entity:u,value:l}),a.set(h,d)}});var o=function(l){l.forEach(function(h){var d=h.props.initialValue;if(d!==void 0){var g=h.getNamePath(),b=r.getInitialValue(g);if(b!==void 0)Ut(!1,"Form already set 'initialValues' with path '".concat(g.join("."),"'. Field can not overwrite it."));else{var y=a.get(g);if(y&&y.size>1)Ut(!1,"Multiple Field with path '".concat(g.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var w=r.getFieldValue(g),S=h.isListField();!S&&(!n.skipExist||w===void 0)&&r.updateStore($i(r.store,g,tt(y)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(u){var l=a.get(u);if(l){var h;(h=s).push.apply(h,tt(tt(l).map(function(d){return d.entity})))}})):s=i,o(s)}),re(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(Cl(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(cn);i.forEach(function(o){var s=r.getInitialValue(o);r.updateStore($i(r.store,o,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(a,i,{type:"reset"}),r.notifyWatch(i)}),re(this,"setFields",function(n){r.warningUnhooked();var a=r.store,i=[];n.forEach(function(o){var s=o.name,u=sr(o,Ice),l=cn(s);i.push(l),"value"in u&&r.updateStore($i(r.store,l,u.value)),r.notifyObservers(a,[l],{type:"setField",data:o})}),r.notifyWatch(i)}),re(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(i){var o=i.getNamePath(),s=i.getMeta(),u=Q(Q({},s),{},{name:o,value:r.getFieldValue(o)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return a}),re(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var i=n.getNamePath(),o=Ii(r.store,i);o===void 0&&r.updateStore($i(r.store,i,a))}}),re(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),re(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!o||u.length>1)){var l=o?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==l&&r.fieldEntities.every(function(d){return!GA(d.getNamePath(),a)})){var h=r.store;r.updateStore($i(h,a,l,!0)),r.notifyObservers(h,[a],{type:"remove"}),r.triggerDependenciesUpdate(h,a)}}r.notifyWatch([a])}}),re(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,i=n.value;r.updateValue(a,i);break}case"validateField":{var o=n.namePath,s=n.triggerName;r.validateFields([o],{triggerName:s});break}}}),re(this,"notifyObservers",function(n,a,i){if(r.subscribable){var o=Q(Q({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var u=s.onStoreChange;u(n,a,o)})}else r.forceRootUpdate()}),re(this,"triggerDependenciesUpdate",function(n,a){var i=r.getDependencyChildrenFields(a);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[a].concat(tt(i))}),i}),re(this,"updateValue",function(n,a){var i=cn(n),o=r.store;r.updateStore($i(r.store,i,a)),r.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(o,i),u=r.callbacks.onValuesChange;if(u){var l=cO(r.store,[i]);u(l,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(tt(s)))}),re(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var i=Cl(r.store,n);r.updateStore(i)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),re(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a,errors:[],warnings:[]}])}),re(this,"getDependencyChildrenFields",function(n){var a=new Set,i=[],o=new pl;r.getFieldEntities().forEach(function(u){var l=u.props.dependencies;(l||[]).forEach(function(h){var d=cn(h);o.update(d,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(u),g})})});var s=function u(l){var h=o.get(l)||new Set;h.forEach(function(d){if(!a.has(d)){a.add(d);var g=d.getNamePath();d.isFieldDirty()&&g.length&&(i.push(g),u(g))}})};return s(n),i}),re(this,"triggerOnFieldsChange",function(n,a){var i=r.callbacks.onFieldsChange;if(i){var o=r.getFields();if(a){var s=new pl;a.forEach(function(l){var h=l.name,d=l.errors;s.set(h,d)}),o.forEach(function(l){l.errors=s.get(l.name)||l.errors})}var u=o.filter(function(l){var h=l.name;return Bl(n,h)});u.length&&i(u,o)}}),re(this,"validateFields",function(n,a){r.warningUnhooked();var i,o;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(i=n,o=a):o=n;var s=!!i,u=s?i.map(cn):[],l=[],h=String(Date.now()),d=new Set,g=o||{},b=g.recursive,y=g.dirty;r.getFieldEntities(!0).forEach(function(_){if(s||u.push(_.getNamePath()),!(!_.props.rules||!_.props.rules.length)&&!(y&&!_.isFieldDirty())){var C=_.getNamePath();if(d.add(C.join(h)),!s||Bl(u,C,b)){var f=_.validateRules(Q({validateMessages:Q(Q({},YA),r.validateMessages)},o));l.push(f.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(p){var v,x=[],k=[];return(v=p.forEach)===null||v===void 0||v.call(p,function(O){var $=O.rule.warningOnly,D=O.errors;$?k.push.apply(k,tt(D)):x.push.apply(x,tt(D))}),x.length?Promise.reject({name:C,errors:x,warnings:k}):{name:C,errors:x,warnings:k}}))}}});var w=Nce(l);r.lastValidatePromise=w,w.catch(function(_){return _}).then(function(_){var C=_.map(function(f){var p=f.name;return p});r.notifyObservers(r.store,C,{type:"validateFinish"}),r.triggerOnFieldsChange(C,_)});var S=w.then(function(){return r.lastValidatePromise===w?Promise.resolve(r.getFieldsValue(u)):Promise.reject([])}).catch(function(_){var C=_.filter(function(f){return f&&f.errors.length});return Promise.reject({values:r.getFieldsValue(u),errorFields:C,outOfDate:r.lastValidatePromise!==w})});S.catch(function(_){return _});var E=u.filter(function(_){return d.has(_.join(h))});return r.triggerOnFieldsChange(E),S}),re(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(i){console.error(i)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function ZA(e){var t=P.useRef(),r=P.useState({}),n=we(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},o=new Fce(i);t.current=o.getForm()}return[t.current]}var U_=P.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),jce=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,i=t.children,o=P.useContext(U_),s=P.useRef({});return P.createElement(U_.Provider,{value:Q(Q({},o),{},{validateMessages:Q(Q({},o.validateMessages),r),triggerFormChange:function(l,h){n&&n(l,{changedFields:h,forms:s.current}),o.triggerFormChange(l,h)},triggerFormFinish:function(l,h){a&&a(l,{values:h,forms:s.current}),o.triggerFormFinish(l,h)},registerForm:function(l,h){l&&(s.current=Q(Q({},s.current),{},re({},l,h))),o.registerForm(l,h)},unregisterForm:function(l){var h=Q({},s.current);delete h[l],s.current=h,o.unregisterForm(l)}})},i)},Lce=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],zce=function(t,r){var n=t.name,a=t.initialValues,i=t.fields,o=t.form,s=t.preserve,u=t.children,l=t.component,h=l===void 0?"form":l,d=t.validateMessages,g=t.validateTrigger,b=g===void 0?"onChange":g,y=t.onValuesChange,w=t.onFieldsChange,S=t.onFinish,E=t.onFinishFailed,_=t.clearOnDestroy,C=sr(t,Lce),f=P.useRef(null),p=P.useContext(U_),v=ZA(o),x=we(v,1),k=x[0],O=k.getInternalHooks(wu),$=O.useSubscribe,D=O.setInitialValues,V=O.setCallbacks,I=O.setValidateMessages,N=O.setPreserve,F=O.destroyForm;P.useImperativeHandle(r,function(){return Q(Q({},k),{},{nativeElement:f.current})}),P.useEffect(function(){return p.registerForm(n,k),function(){p.unregisterForm(n)}},[p,k,n]),I(Q(Q({},p.validateMessages),d)),V({onValuesChange:y,onFieldsChange:function(K){if(p.triggerFormChange(n,K),w){for(var ne=arguments.length,ae=new Array(ne>1?ne-1:0),ie=1;ie<ne;ie++)ae[ie-1]=arguments[ie];w.apply(void 0,[K].concat(ae))}},onFinish:function(K){p.triggerFormFinish(n,K),S&&S(K)},onFinishFailed:E}),N(s);var T=P.useRef(null);D(a,!T.current),T.current||(T.current=!0),P.useEffect(function(){return function(){return F(_)}},[]);var M,j=typeof u=="function";if(j){var H=k.getFieldsValue(!0);M=u(H,k)}else M=u;$(!j);var z=P.useRef();P.useEffect(function(){$ce(z.current||[],i||[])||k.setFields(i||[]),z.current=i},[i,k]);var U=P.useMemo(function(){return Q(Q({},k),{},{validateTrigger:b})},[k,b]),G=P.createElement(Kp.Provider,{value:null},P.createElement(Jl.Provider,{value:U},M));return h===!1?G:P.createElement(h,je({},C,{ref:f,onSubmit:function(K){K.preventDefault(),K.stopPropagation(),k.submit()},onReset:function(K){var ne;K.preventDefault(),k.resetFields(),(ne=C.onReset)===null||ne===void 0||ne.call(C,K)}}),G)};function fO(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Bce=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=A.useRef(t);Ut(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Hce(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=t[1],i=a===void 0?{}:a,o=Xle(i)?{form:i}:i,s=o.form,u=A.useState(),l=we(u,2),h=l[0],d=l[1],g=A.useMemo(function(){return fO(h)},[h]),b=A.useRef(g);b.current=g;var y=A.useContext(Jl),w=s||y,S=w&&w._init;process.env.NODE_ENV!=="production"&&Ut(t.length===2?s?S:!0:S,"useWatch requires a form instance since it can not auto detect from context.");var E=cn(n),_=A.useRef(E);return _.current=E,Bce(E),A.useEffect(function(){if(S){var C=w.getFieldsValue,f=w.getInternalHooks,p=f(wu),v=p.registerWatch,x=function(D,V){var I=o.preserve?V:D;return typeof n=="function"?n(I):Ii(I,_.current)},k=v(function($,D){var V=x($,D),I=fO(V);b.current!==I&&(b.current=I,d(V))}),O=x(C(),C(!0));return h!==O&&d(O),k}},[S]),h}var Vce=P.forwardRef(zce),mh=Vce;mh.FormProvider=jce;mh.Field=KA;mh.List=Mce;mh.useForm=ZA;mh.useWatch=Hce;const ku=P.createContext({});process.env.NODE_ENV!=="production"&&(ku.displayName="FormItemInputContext");const Uce=e=>{let{children:t,status:r,override:n}=e;const a=P.useContext(ku),i=P.useMemo(()=>{const o=Object.assign({},a);return n&&delete o.isFormItemInput,r&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[r,n,a]);return P.createElement(ku.Provider,{value:i},t)},qce=P.createContext(void 0),Um=e=>{const t=A.useContext(Zl);return A.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},JA=P.createContext(null),j2=(e,t)=>{const r=P.useContext(JA),n=P.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:i,isLastItem:o}=r,s=a==="vertical"?"-vertical-":"-";return ge(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},Wce=e=>{const{children:t}=e;return P.createElement(JA.Provider,{value:null},t)},q_=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=A.createElement(Uce,{override:!0,status:!0},a)),t&&(a=A.createElement(Wce,null,a)),a},L2=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(L2.displayName="zIndexContext");const Ko=100,Yce=10,Gce=Ko*Yce,Kce=Gce+Ko,QA={Modal:Ko,Drawer:Ko,Popover:Ko,Popconfirm:Ko,Tooltip:Ko,Tour:Ko,FloatButton:Ko},Xce={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Zce(e){return e in QA}const e7=(e,t)=>{const[,r]=bi(),n=A.useContext(L2),a=Zce(e);let i;if(t!==void 0)i=[t,t];else{let o=n??0;a?o+=(n?0:r.zIndexPopupBase)+QA[e]:o+=Xce[e],i=[n===void 0?t:o,o]}if(process.env.NODE_ENV!=="production"){const o=na(e),s=r.zIndexPopupBase+Kce,u=i[0]||0;process.env.NODE_ENV!=="production"&&o(t!==void 0||u<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i},t7=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Jce(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,i=0,o=a,s=n*1/Math.sqrt(2),u=a-n*(1-1/Math.sqrt(2)),l=a-r*(1/Math.sqrt(2)),h=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*a-l,g=h,b=2*a-s,y=u,w=2*a-i,S=o,E=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),_=n*(Math.sqrt(2)-1),C=`polygon(${_}px 100%, 50% ${_}px, ${2*a-_}px 100%, ${_}px 100%)`,f=`path('M ${i} ${o} A ${n} ${n} 0 0 0 ${s} ${u} L ${l} ${h} A ${r} ${r} 0 0 1 ${d} ${g} L ${b} ${y} A ${n} ${n} 0 0 0 ${w} ${S} Z')`;return{arrowShadowWidth:E,arrowPath:f,arrowPolygon:C}}const Qce=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:i,arrowShadowWidth:o,borderRadiusXS:s,calc:u}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:u(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${He(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},r7=8;function n7(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?r7:n}}function K0(e,t){return e?t:{}}function ede(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:i,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Qce(e,t,a)),{"&:before":{background:t}})]},K0(!!u.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${He(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),K0(!!u.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${He(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),K0(!!u.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),K0(!!u.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function tde(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const o=Object.assign(Object.assign({},i),a);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const hO={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"]}},rde={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"]}},nde=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ade(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:i}=e,o=t/2,s={};return Object.keys(hO).forEach(u=>{const l=n&&rde[u]||hO[u],h=Object.assign(Object.assign({},l),{offset:[0,0],dynamicInset:!0});switch(s[u]=h,nde.has(u)&&(h.autoArrow=!1),u){case"top":case"topLeft":case"topRight":h.offset[1]=-o-a;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=o+a;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-o-a;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=o+a;break}const d=n7({contentRadius:i,limitVerticalRadius:!0});if(n)switch(u){case"topLeft":case"bottomLeft":h.offset[0]=-d.arrowOffsetHorizontal-o;break;case"topRight":case"bottomRight":h.offset[0]=d.arrowOffsetHorizontal+o;break;case"leftTop":case"rightTop":h.offset[1]=-d.arrowOffsetHorizontal*2+o;break;case"leftBottom":case"rightBottom":h.offset[1]=d.arrowOffsetHorizontal*2-o;break}h.overflow=tde(u,d,t,r),h.htmlRegion="visibleFirst"}),s}function ide(e){return e&&A.isValidElement(e)&&e.type===A.Fragment}const ode=(e,t,r)=>A.isValidElement(e)?A.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function z2(e,t){return ode(e,e,t)}const sde=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:a,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:u,boxShadowSecondary:l,paddingSM:h,paddingXS:d,arrowOffsetHorizontal:g,sizePopupArrow:b}=e,y=t(o).add(b).add(g).equal(),w=t(o).mul(2).add(b).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},uo(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:w,minHeight:u,padding:`${He(e.calc(h).div(2).equal())} ${He(d)}`,color:a,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(o,r7)}},[`${r}-content`]:{position:"relative"}}),hle(e,(S,E)=>{let{darkColor:_}=E;return{[`&${r}-${S}`]:{[`${r}-inner`]:{backgroundColor:_},[`${r}-arrow`]:{"--antd-arrow-background-color":_}}}})),{"&-rtl":{direction:"rtl"}})},ede(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ude=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},n7({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Jce(Jr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),a7=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ls("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:i,colorBgSpotlight:o}=n,s=Jr(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:a,tooltipBg:o});return[sde(s),tae(n,"zoom-big-fast")]},ude,{resetStyle:!1,injectStyle:t})(e)},lde=Yp.map(e=>`${e}-inverse`);function cde(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(tt(lde),tt(Yp)).includes(e):Yp.includes(e)}function i7(e,t){const r=cde(t),n=ge({[`${e}-${t}`]:t&&r}),a={},i={};return t&&!r&&(a.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:i}}const dde=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:i,overlayInnerStyle:o}=e,{getPrefixCls:s}=P.useContext(kn),u=s("tooltip",t),[l,h,d]=a7(u),g=i7(u,i),b=g.arrowStyle,y=Object.assign(Object.assign({},o),g.overlayStyle),w=ge(h,d,u,`${u}-pure`,`${u}-placement-${n}`,r,g.className);return l(P.createElement("div",{className:w,style:b},P.createElement("div",{className:`${u}-arrow`}),P.createElement(IA,Object.assign({},e,{className:h,prefixCls:u,overlayInnerStyle:y}),a)))};var fde=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const hde=P.forwardRef((e,t)=>{var r,n;const{prefixCls:a,openClassName:i,getTooltipContainer:o,color:s,overlayInnerStyle:u,children:l,afterOpenChange:h,afterVisibleChange:d,destroyTooltipOnHide:g,arrow:b=!0,title:y,overlay:w,builtinPlacements:S,arrowPointAtCenter:E=!1,autoAdjustOverflow:_=!0,motion:C,getPopupContainer:f,placement:p="top",mouseEnterDelay:v=.1,mouseLeaveDelay:x=.1,overlayStyle:k,rootClassName:O,overlayClassName:$,styles:D,classNames:V}=e,I=fde(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),N=!!b,[,F]=bi(),{getPopupContainer:T,getPrefixCls:M,direction:j,className:H,style:z,classNames:U,styles:G}=Nu("tooltip"),X=na("Tooltip"),K=P.useRef(null),ne=()=>{var Qe;(Qe=K.current)===null||Qe===void 0||Qe.forceAlign()};P.useImperativeHandle(t,()=>{var Qe,_t;return{forceAlign:ne,forcePopupAlign:()=>{X.deprecated(!1,"forcePopupAlign","forceAlign"),ne()},nativeElement:(Qe=K.current)===null||Qe===void 0?void 0:Qe.nativeElement,popupElement:(_t=K.current)===null||_t===void 0?void 0:_t.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(Qe=>{let[_t,It]=Qe;X.deprecated(!(_t in e),_t,It)}),process.env.NODE_ENV!=="production"&&X(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&X(!b||typeof b=="boolean"||!("arrowPointAtCenter"in b),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[ae,ie]=_n(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),de=!y&&!w&&y!==0,pe=Qe=>{var _t,It;ie(de?!1:Qe),de||((_t=e.onOpenChange)===null||_t===void 0||_t.call(e,Qe),(It=e.onVisibleChange)===null||It===void 0||It.call(e,Qe))},be=P.useMemo(()=>{var Qe,_t;let It=E;return typeof b=="object"&&(It=(_t=(Qe=b.pointAtCenter)!==null&&Qe!==void 0?Qe:b.arrowPointAtCenter)!==null&&_t!==void 0?_t:E),S||ade({arrowPointAtCenter:It,autoAdjustOverflow:_,arrowWidth:N?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS})},[E,b,S,F]),me=P.useMemo(()=>y===0?y:w||y||"",[w,y]),ee=P.createElement(q_,{space:!0},typeof me=="function"?me():me),ve=M("tooltip",a),se=M(),fe=e["data-popover-inject"];let he=ae;!("open"in e)&&!("visible"in e)&&de&&(he=!1);const ke=P.isValidElement(l)&&!ide(l)?l:P.createElement("span",null,l),Te=ke.props,xe=!Te.className||typeof Te.className=="string"?ge(Te.className,i||`${ve}-open`):Te.className,[$e,Pe,Ne]=a7(ve,!fe),Ee=i7(ve,s),Fe=Ee.arrowStyle,rt=ge($,{[`${ve}-rtl`]:j==="rtl"},Ee.className,O,Pe,Ne,H,U.root,V==null?void 0:V.root),dt=ge(U.body,V==null?void 0:V.body),[ct,bt]=e7("Tooltip",I.zIndex),gt=P.createElement(Kle,Object.assign({},I,{zIndex:ct,showArrow:N,placement:p,mouseEnterDelay:v,mouseLeaveDelay:x,prefixCls:ve,classNames:{root:rt,body:dt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fe),G.root),z),k),D==null?void 0:D.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},G.body),u),D==null?void 0:D.body),Ee.overlayStyle)},getTooltipContainer:f||o||T,ref:K,builtinPlacements:be,overlay:ee,visible:he,onVisibleChange:pe,afterVisibleChange:h??d,arrowContent:P.createElement("span",{className:`${ve}-arrow-content`}),motion:{motionName:t7(se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),he?z2(ke,{className:xe}):ke);return $e(P.createElement(L2.Provider,{value:bt},gt))}),gh=hde;process.env.NODE_ENV!=="production"&&(gh.displayName="Tooltip");gh._InternalPanelDoNotUseOrYouWillBeFired=dde;var pde=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:Xz}))},o7=P.forwardRef(pde);process.env.NODE_ENV!=="production"&&(o7.displayName="EnterOutlined");var Ct={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function mde(e){return!!(e.addonBefore||e.addonAfter)}function gde(e){return!!(e.prefix||e.suffix||e.allowClear)}function pO(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Xp(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=pO(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=pO(t,e,n),r(a);return}r(a)}}function s7(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var u7=A.forwardRef(function(e,t){var r,n,a,i=e.inputElement,o=e.children,s=e.prefixCls,u=e.prefix,l=e.suffix,h=e.addonBefore,d=e.addonAfter,g=e.className,b=e.style,y=e.disabled,w=e.readOnly,S=e.focused,E=e.triggerFocus,_=e.allowClear,C=e.value,f=e.handleReset,p=e.hidden,v=e.classes,x=e.classNames,k=e.dataAttrs,O=e.styles,$=e.components,D=e.onClear,V=o??i,I=($==null?void 0:$.affixWrapper)||"span",N=($==null?void 0:$.groupWrapper)||"span",F=($==null?void 0:$.wrapper)||"span",T=($==null?void 0:$.groupAddon)||"span",M=A.useRef(null),j=function(fe){var he;(he=M.current)!==null&&he!==void 0&&he.contains(fe.target)&&(E==null||E())},H=gde(e),z=A.cloneElement(V,{value:C,className:ge((r=V.props)===null||r===void 0?void 0:r.className,!H&&(x==null?void 0:x.variant))||null}),U=A.useRef(null);if(A.useImperativeHandle(t,function(){return{nativeElement:U.current||M.current}}),H){var G=null;if(_){var X=!y&&!w&&C,K="".concat(s,"-clear-icon"),ne=pt(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"✖";G=A.createElement("button",{type:"button",onClick:function(fe){f==null||f(fe),D==null||D()},onMouseDown:function(fe){return fe.preventDefault()},className:ge(K,re(re({},"".concat(K,"-hidden"),!X),"".concat(K,"-has-suffix"),!!l))},ne)}var ae="".concat(s,"-affix-wrapper"),ie=ge(ae,re(re(re(re(re({},"".concat(s,"-disabled"),y),"".concat(ae,"-disabled"),y),"".concat(ae,"-focused"),S),"".concat(ae,"-readonly"),w),"".concat(ae,"-input-with-clear-btn"),l&&_&&C),v==null?void 0:v.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),de=(l||_)&&A.createElement("span",{className:ge("".concat(s,"-suffix"),x==null?void 0:x.suffix),style:O==null?void 0:O.suffix},G,l);z=A.createElement(I,je({className:ie,style:O==null?void 0:O.affixWrapper,onClick:j},k==null?void 0:k.affixWrapper,{ref:M}),u&&A.createElement("span",{className:ge("".concat(s,"-prefix"),x==null?void 0:x.prefix),style:O==null?void 0:O.prefix},u),z,de)}if(mde(e)){var pe="".concat(s,"-group"),be="".concat(pe,"-addon"),me="".concat(pe,"-wrapper"),ee=ge("".concat(s,"-wrapper"),pe,v==null?void 0:v.wrapper,x==null?void 0:x.wrapper),ve=ge(me,re({},"".concat(me,"-disabled"),y),v==null?void 0:v.group,x==null?void 0:x.groupWrapper);z=A.createElement(N,{className:ve,ref:U},A.createElement(F,{className:ee},h&&A.createElement(T,{className:be},h),z,d&&A.createElement(T,{className:be},d)))}return A.cloneElement(z,{className:ge((n=z.props)===null||n===void 0?void 0:n.className,g)||null,style:Q(Q({},(a=z.props)===null||a===void 0?void 0:a.style),b),hidden:p})}),vde=["show"];function l7(e,t){return P.useMemo(function(){var r={};t&&(r.show=pt(t)==="object"&&t.formatter?t.formatter:!!t),r=Q(Q({},r),e);var n=r,a=n.show,i=sr(n,vde);return Q(Q({},i),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:i.strategy||function(o){return o.length}})},[e,t])}var bde=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],yde=A.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,i=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,u=e.onKeyUp,l=e.prefixCls,h=l===void 0?"rc-input":l,d=e.disabled,g=e.htmlSize,b=e.className,y=e.maxLength,w=e.suffix,S=e.showCount,E=e.count,_=e.type,C=_===void 0?"text":_,f=e.classes,p=e.classNames,v=e.styles,x=e.onCompositionStart,k=e.onCompositionEnd,O=sr(e,bde),$=A.useState(!1),D=we($,2),V=D[0],I=D[1],N=A.useRef(!1),F=A.useRef(!1),T=A.useRef(null),M=A.useRef(null),j=function(Fe){T.current&&s7(T.current,Fe)},H=_n(e.defaultValue,{value:e.value}),z=we(H,2),U=z[0],G=z[1],X=U==null?"":String(U),K=A.useState(null),ne=we(K,2),ae=ne[0],ie=ne[1],de=l7(E,S),pe=de.max||y,be=de.strategy(X),me=!!pe&&be>pe;A.useImperativeHandle(t,function(){var Ee;return{focus:j,blur:function(){var rt;(rt=T.current)===null||rt===void 0||rt.blur()},setSelectionRange:function(rt,dt,ct){var bt;(bt=T.current)===null||bt===void 0||bt.setSelectionRange(rt,dt,ct)},select:function(){var rt;(rt=T.current)===null||rt===void 0||rt.select()},input:T.current,nativeElement:((Ee=M.current)===null||Ee===void 0?void 0:Ee.nativeElement)||T.current}}),A.useEffect(function(){F.current&&(F.current=!1),I(function(Ee){return Ee&&d?!1:Ee})},[d]);var ee=function(Fe,rt,dt){var ct=rt;if(!N.current&&de.exceedFormatter&&de.max&&de.strategy(rt)>de.max){if(ct=de.exceedFormatter(rt,{max:de.max}),rt!==ct){var bt,gt;ie([((bt=T.current)===null||bt===void 0?void 0:bt.selectionStart)||0,((gt=T.current)===null||gt===void 0?void 0:gt.selectionEnd)||0])}}else if(dt.source==="compositionEnd")return;G(ct),T.current&&Xp(T.current,Fe,n,ct)};A.useEffect(function(){if(ae){var Ee;(Ee=T.current)===null||Ee===void 0||Ee.setSelectionRange.apply(Ee,tt(ae))}},[ae]);var ve=function(Fe){ee(Fe,Fe.target.value,{source:"change"})},se=function(Fe){N.current=!1,ee(Fe,Fe.currentTarget.value,{source:"compositionEnd"}),k==null||k(Fe)},fe=function(Fe){o&&Fe.key==="Enter"&&!F.current&&(F.current=!0,o(Fe)),s==null||s(Fe)},he=function(Fe){Fe.key==="Enter"&&(F.current=!1),u==null||u(Fe)},ke=function(Fe){I(!0),a==null||a(Fe)},Te=function(Fe){F.current&&(F.current=!1),I(!1),i==null||i(Fe)},xe=function(Fe){G(""),j(),T.current&&Xp(T.current,Fe,n)},$e=me&&"".concat(h,"-out-of-range"),Pe=function(){var Fe=dh(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return A.createElement("input",je({autoComplete:r},Fe,{onChange:ve,onFocus:ke,onBlur:Te,onKeyDown:fe,onKeyUp:he,className:ge(h,re({},"".concat(h,"-disabled"),d),p==null?void 0:p.input),style:v==null?void 0:v.input,ref:T,size:g,type:C,onCompositionStart:function(dt){N.current=!0,x==null||x(dt)},onCompositionEnd:se}))},Ne=function(){var Fe=Number(pe)>0;if(w||de.show){var rt=de.showFormatter?de.showFormatter({value:X,count:be,maxLength:pe}):"".concat(be).concat(Fe?" / ".concat(pe):"");return A.createElement(A.Fragment,null,de.show&&A.createElement("span",{className:ge("".concat(h,"-show-count-suffix"),re({},"".concat(h,"-show-count-has-suffix"),!!w),p==null?void 0:p.count),style:Q({},v==null?void 0:v.count)},rt),w)}return null};return A.createElement(u7,je({},O,{prefixCls:h,className:ge(b,$e),handleReset:xe,value:X,focused:V,triggerFocus:j,suffix:Ne(),disabled:d,classes:f,classNames:p,styles:v}),Pe())}),_de=`
615
- min-height:0 !important;
616
- max-height:none !important;
617
- height:0 !important;
618
- visibility:hidden !important;
619
- overflow:hidden !important;
620
- position:absolute !important;
621
- z-index:-1000 !important;
622
- top:0 !important;
623
- right:0 !important;
624
- pointer-events: none !important;
625
- `,wde=["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"],Db={},La;function xde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Db[r])return Db[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),o=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=wde.map(function(l){return"".concat(l,":").concat(n.getPropertyValue(l))}).join(";"),u={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return t&&r&&(Db[r]=u),u}function Sde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;La||(La=document.createElement("textarea"),La.setAttribute("tab-index","-1"),La.setAttribute("aria-hidden","true"),La.setAttribute("name","hiddenTextarea"),document.body.appendChild(La)),e.getAttribute("wrap")?La.setAttribute("wrap",e.getAttribute("wrap")):La.removeAttribute("wrap");var a=xde(e,t),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,u=a.sizingStyle;La.setAttribute("style","".concat(u,";").concat(_de)),La.value=e.value||e.placeholder||"";var l=void 0,h=void 0,d,g=La.scrollHeight;if(s==="border-box"?g+=o:s==="content-box"&&(g-=i),r!==null||n!==null){La.value=" ";var b=La.scrollHeight-i;r!==null&&(l=b*r,s==="border-box"&&(l=l+i+o),g=Math.max(l,g)),n!==null&&(h=b*n,s==="border-box"&&(h=h+i+o),d=g>h?"":"hidden",g=Math.min(h,g))}var y={height:g,overflowY:d,resize:"none"};return l&&(y.minHeight=l),h&&(y.maxHeight=h),y}var Cde=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Mb=0,Nb=1,Ib=2,Ede=P.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,i=r.value,o=r.autoSize,s=r.onResize,u=r.className,l=r.style,h=r.disabled,d=r.onChange,g=r.onInternalAutoSize,b=sr(r,Cde),y=_n(a,{value:i,postState:function(ne){return ne??""}}),w=we(y,2),S=w[0],E=w[1],_=function(ne){E(ne.target.value),d==null||d(ne)},C=P.useRef();P.useImperativeHandle(t,function(){return{textArea:C.current}});var f=P.useMemo(function(){return o&&pt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),p=we(f,2),v=p[0],x=p[1],k=!!o,O=function(){try{if(document.activeElement===C.current){var ne=C.current,ae=ne.selectionStart,ie=ne.selectionEnd,de=ne.scrollTop;C.current.setSelectionRange(ae,ie),C.current.scrollTop=de}}catch{}},$=P.useState(Ib),D=we($,2),V=D[0],I=D[1],N=P.useState(),F=we(N,2),T=F[0],M=F[1],j=function(){I(Mb),process.env.NODE_ENV==="test"&&(g==null||g())};fr(function(){k&&j()},[i,v,x,k]),fr(function(){if(V===Mb)I(Nb);else if(V===Nb){var K=Sde(C.current,!1,v,x);I(Ib),M(K)}else O()},[V]);var H=P.useRef(),z=function(){Zr.cancel(H.current)},U=function(ne){V===Ib&&(s==null||s(ne),o&&(z(),H.current=Zr(function(){j()})))};P.useEffect(function(){return z},[]);var G=k?T:null,X=Q(Q({},l),G);return(V===Mb||V===Nb)&&(X.overflowY="hidden",X.overflowX="hidden"),P.createElement(_o,{onResize:U,disabled:!(o||s)},P.createElement("textarea",je({},b,{ref:C,style:X,className:ge(n,u,re({},"".concat(n,"-disabled"),h)),disabled:h,value:S,onChange:_})))}),Ode=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Rde=A.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,i=e.onFocus,o=e.onBlur,s=e.onChange,u=e.allowClear,l=e.maxLength,h=e.onCompositionStart,d=e.onCompositionEnd,g=e.suffix,b=e.prefixCls,y=b===void 0?"rc-textarea":b,w=e.showCount,S=e.count,E=e.className,_=e.style,C=e.disabled,f=e.hidden,p=e.classNames,v=e.styles,x=e.onResize,k=e.onClear,O=e.onPressEnter,$=e.readOnly,D=e.autoSize,V=e.onKeyDown,I=sr(e,Ode),N=_n(n,{value:a,defaultValue:n}),F=we(N,2),T=F[0],M=F[1],j=T==null?"":String(T),H=A.useState(!1),z=we(H,2),U=z[0],G=z[1],X=A.useRef(!1),K=A.useState(null),ne=we(K,2),ae=ne[0],ie=ne[1],de=A.useRef(null),pe=A.useRef(null),be=function(){var Be;return(Be=pe.current)===null||Be===void 0?void 0:Be.textArea},me=function(){be().focus()};A.useImperativeHandle(t,function(){var ft;return{resizableTextArea:pe.current,focus:me,blur:function(){be().blur()},nativeElement:((ft=de.current)===null||ft===void 0?void 0:ft.nativeElement)||be()}}),A.useEffect(function(){G(function(ft){return!C&&ft})},[C]);var ee=A.useState(null),ve=we(ee,2),se=ve[0],fe=ve[1];A.useEffect(function(){if(se){var ft;(ft=be()).setSelectionRange.apply(ft,tt(se))}},[se]);var he=l7(S,w),ke=(r=he.max)!==null&&r!==void 0?r:l,Te=Number(ke)>0,xe=he.strategy(j),$e=!!ke&&xe>ke,Pe=function(Be,Ot){var Ve=Ot;!X.current&&he.exceedFormatter&&he.max&&he.strategy(Ot)>he.max&&(Ve=he.exceedFormatter(Ot,{max:he.max}),Ot!==Ve&&fe([be().selectionStart||0,be().selectionEnd||0])),M(Ve),Xp(Be.currentTarget,Be,s,Ve)},Ne=function(Be){X.current=!0,h==null||h(Be)},Ee=function(Be){X.current=!1,Pe(Be,Be.currentTarget.value),d==null||d(Be)},Fe=function(Be){Pe(Be,Be.target.value)},rt=function(Be){Be.key==="Enter"&&O&&O(Be),V==null||V(Be)},dt=function(Be){G(!0),i==null||i(Be)},ct=function(Be){G(!1),o==null||o(Be)},bt=function(Be){M(""),me(),Xp(be(),Be,s)},gt=g,Qe;he.show&&(he.showFormatter?Qe=he.showFormatter({value:j,count:xe,maxLength:ke}):Qe="".concat(xe).concat(Te?" / ".concat(ke):""),gt=A.createElement(A.Fragment,null,gt,A.createElement("span",{className:ge("".concat(y,"-data-count"),p==null?void 0:p.count),style:v==null?void 0:v.count},Qe)));var _t=function(Be){var Ot;x==null||x(Be),(Ot=be())!==null&&Ot!==void 0&&Ot.style.height&&ie(!0)},It=!D&&!w&&!u;return A.createElement(u7,{ref:de,value:j,allowClear:u,handleReset:bt,suffix:gt,prefixCls:y,classNames:Q(Q({},p),{},{affixWrapper:ge(p==null?void 0:p.affixWrapper,re(re({},"".concat(y,"-show-count"),w),"".concat(y,"-textarea-allow-clear"),u))}),disabled:C,focused:U,className:ge(E,$e&&"".concat(y,"-out-of-range")),style:Q(Q({},_),ae&&!It?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Qe=="string"?Qe:void 0}},hidden:f,readOnly:$,onClear:k},A.createElement(Ede,je({},I,{autoSize:D,maxLength:l,onKeyDown:rt,onChange:Fe,onFocus:dt,onBlur:ct,onCompositionStart:Ne,onCompositionEnd:Ee,className:ge(p==null?void 0:p.textarea),style:Q(Q({},v==null?void 0:v.textarea),{},{resize:_==null?void 0:_.resize}),disabled:C,prefixCls:y,onResize:_t,ref:pe,readOnly:$})))}),Tde=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:P5}))},B2=P.forwardRef(Tde);process.env.NODE_ENV!=="production"&&(B2.displayName="CloseCircleFilled");const c7=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:A.createElement(B2,null)}),t};function Zp(e,t,r){return ge({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const H2=(e,t)=>t||e,vh=e=>{const[,,,,t]=bi();return t?`${e}-css-var`:""},V2=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var n,a;const{variant:i,[e]:o}=P.useContext(kn),s=P.useContext(qce),u=o==null?void 0:o.variant;let l;typeof t<"u"?l=t:r===!1?l="borderless":l=(a=(n=s??u)!==null&&n!==void 0?n:i)!==null&&a!==void 0?a:"outlined";const h=ele.includes(l);return[l,h]};function Pde(e,t){const r=A.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,i,o,s;!((a=e.current)===null||a===void 0)&&a.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return A.useEffect(()=>(n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function kde(e,t,r){const{focusElCls:n,focus:a,borderElCls:i}=r,o=i?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function $de(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function d7(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},kde(e,n,t)),$de(r,n,t))}}function qm(e){return Jr(e,{inputAffixPadding:e.paddingXXS})}const Wm=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:i,controlHeightLG:o,fontSizeLG:s,lineHeightLG:u,paddingSM:l,controlPaddingHorizontalSM:h,controlPaddingHorizontal:d,colorFillAlter:g,colorPrimaryHover:b,colorPrimary:y,controlOutlineWidth:w,controlOutline:S,colorErrorOutline:E,colorWarningOutline:_,colorBgContainer:C}=e;return{paddingBlock:Math.max(Math.round((t-r*n)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((i-r*n)/2*10)/10-a,0),paddingBlockLG:Math.ceil((o-s*u)/2*10)/10-a,paddingInline:l-a,paddingInlineSM:h-a,paddingInlineLG:d-a,addonBg:g,activeBorderColor:y,hoverBorderColor:b,activeShadow:`0 0 0 ${w}px ${S}`,errorActiveShadow:`0 0 0 ${w}px ${E}`,warningActiveShadow:`0 0 0 ${w}px ${_}`,hoverBg:C,activeBg:C,inputFontSize:r,inputFontSizeLG:s,inputFontSizeSM:r}},Ade=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ym=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Ade(Jr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),U2=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),mO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},U2(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Dde=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},U2(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ym(e))}),mO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),mO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),gO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Mde=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},gO(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),gO(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ym(e))}})}),Nde=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},f7=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),vO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},f7(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Ide=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f7(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ym(e))}),vO(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),vO(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),bO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Fde=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${He(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${He(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},bO(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),bO(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),h7=(e,t)=>({background:e.colorBgContainer,borderWidth:`0 0 ${He(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,borderRadius:0,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,outline:0,backgroundColor:e.activeBg}}),yO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},h7(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),jde=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},h7(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:e.colorBorder}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),yO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),yO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Lde=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),p7=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${He(t)} ${He(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},q2=e=>({padding:`${He(e.paddingBlockSM)} ${He(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),W2=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${He(e.paddingBlock)} ${He(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Lde(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},p7(e)),"&-sm":Object.assign({},q2(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),zde=e=>{const{componentCls:t,antCls:r}=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({},p7(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},q2(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-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 ${He(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${He(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${He(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${He(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${He(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},ule()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
626
- & > ${t}-affix-wrapper,
627
- & > ${t}-number-affix-wrapper,
628
- & > ${r}-picker-range
629
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
630
- & > ${r}-select-auto-complete ${t},
631
- & > ${r}-cascader-picker ${t},
632
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
633
- & > ${r}-select:first-child > ${r}-select-selector,
634
- & > ${r}-select-auto-complete:first-child ${t},
635
- & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
636
- & > ${r}-select:last-child > ${r}-select-selector,
637
- & > ${r}-cascader-picker:last-child ${t},
638
- & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${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}}}})}},Bde=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,o=a(r).sub(a(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uo(e)),W2(e)),Dde(e)),Ide(e)),Nde(e)),jde(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Hde=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${He(e.inputAffixPadding)}`}}}},Vde=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:a,colorIcon:i,colorIconHover:o,iconCls:s}=e,u=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[u]:Object.assign(Object.assign(Object.assign(Object.assign({},W2(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-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:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),Hde(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:o}}}),[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},Ude=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},uo(e)),zde(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},Mde(e)),Fde(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}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},qde=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
639
- > ${t},
640
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Wde=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},m7=ls(["Input","Shared"],e=>{const t=Jr(e,qm(e));return[Bde(t),Vde(t)]},Wm,{resetFont:!1}),Yde=ls(["Input","Component"],e=>{const t=Jr(e,qm(e));return[Ude(t),qde(t),Wde(t),d7(t)]},Wm,{resetFont:!1});function Gde(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Kde=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Xde=A.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:a,size:i,disabled:o,onBlur:s,onFocus:u,suffix:l,allowClear:h,addonAfter:d,addonBefore:g,className:b,style:y,styles:w,rootClassName:S,onChange:E,classNames:_,variant:C}=e,f=Kde(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:xe}=na("Input");xe(!("bordered"in e),"bordered","variant")}const{getPrefixCls:p,direction:v,allowClear:x,autoComplete:k,className:O,style:$,classNames:D,styles:V}=Nu("input"),I=p("input",r),N=A.useRef(null),F=vh(I),[T,M,j]=m7(I,S),[H]=Yde(I,F),{compactSize:z,compactItemClassnames:U}=j2(I,v),G=Um(xe=>{var $e;return($e=i??z)!==null&&$e!==void 0?$e:xe}),X=A.useContext(Pu),K=o??X,{status:ne,hasFeedback:ae,feedbackIcon:ie}=A.useContext(ku),de=H2(ne,a),pe=Gde(e)||!!ae,be=A.useRef(pe);if(process.env.NODE_ENV!=="production"){const xe=na("Input");A.useEffect(()=>{var $e;pe&&!be.current&&process.env.NODE_ENV!=="production"&&xe(document.activeElement===(($e=N.current)===null||$e===void 0?void 0:$e.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),be.current=pe},[pe])}const me=Pde(N),ee=xe=>{me(),s==null||s(xe)},ve=xe=>{me(),u==null||u(xe)},se=xe=>{me(),E==null||E(xe)},fe=(ae||l)&&A.createElement(A.Fragment,null,l,ae&&ie),he=c7(h??x),[ke,Te]=V2("input",C,n);return T(H(A.createElement(yde,Object.assign({ref:us(t,N),prefixCls:I,autoComplete:k},f,{disabled:K,onBlur:ee,onFocus:ve,style:Object.assign(Object.assign({},$),y),styles:Object.assign(Object.assign({},V),w),suffix:fe,allowClear:he,className:ge(b,S,j,F,U,O),onChange:se,addonBefore:g&&A.createElement(q_,{form:!0,space:!0},g),addonAfter:d&&A.createElement(q_,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},_),D),{input:ge({[`${I}-sm`]:G==="small",[`${I}-lg`]:G==="large",[`${I}-rtl`]:v==="rtl"},_==null?void 0:_.input,D.input,M),variant:ge({[`${I}-${ke}`]:Te},Zp(I,de)),affixWrapper:ge({[`${I}-affix-wrapper-sm`]:G==="small",[`${I}-affix-wrapper-lg`]:G==="large",[`${I}-affix-wrapper-rtl`]:v==="rtl"},M),wrapper:ge({[`${I}-group-rtl`]:v==="rtl"},M),groupWrapper:ge({[`${I}-group-wrapper-sm`]:G==="small",[`${I}-group-wrapper-lg`]:G==="large",[`${I}-group-wrapper-rtl`]:v==="rtl",[`${I}-group-wrapper-${ke}`]:Te},Zp(`${I}-group-wrapper`,de,ae),M)})}))))});process.env.NODE_ENV!=="production"&&(Xde.displayName="Input");const Zde=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
641
- &-allow-clear > ${t},
642
- &-affix-wrapper${n}-has-feedback ${t}
643
- `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Jde=ls(["Input","TextArea"],e=>{const t=Jr(e,qm(e));return[Zde(t)]},Wm,{resetFont:!1});var Qde=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const efe=A.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:a=!0,size:i,disabled:o,status:s,allowClear:u,classNames:l,rootClassName:h,className:d,style:g,styles:b,variant:y}=e,w=Qde(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:ie}=na("TextArea");ie(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:E,allowClear:_,autoComplete:C,className:f,style:p,classNames:v,styles:x}=Nu("textArea"),k=P.useContext(Pu),O=o??k,{status:$,hasFeedback:D,feedbackIcon:V}=P.useContext(ku),I=H2($,s),N=P.useRef(null);P.useImperativeHandle(t,()=>{var ie;return{resizableTextArea:(ie=N.current)===null||ie===void 0?void 0:ie.resizableTextArea,focus:de=>{var pe,be;s7((be=(pe=N.current)===null||pe===void 0?void 0:pe.resizableTextArea)===null||be===void 0?void 0:be.textArea,de)},blur:()=>{var de;return(de=N.current)===null||de===void 0?void 0:de.blur()}}});const F=S("input",n),T=vh(F),[M,j,H]=m7(F,h),[z]=Jde(F,T),{compactSize:U,compactItemClassnames:G}=j2(F,E),X=Um(ie=>{var de;return(de=i??U)!==null&&de!==void 0?de:ie}),[K,ne]=V2("textArea",y,a),ae=c7(u??_);return M(z(P.createElement(Rde,Object.assign({autoComplete:C},w,{style:Object.assign(Object.assign({},p),g),styles:Object.assign(Object.assign({},x),b),disabled:O,allowClear:ae,className:ge(H,T,d,h,G,f),classNames:Object.assign(Object.assign(Object.assign({},l),v),{textarea:ge({[`${F}-sm`]:X==="small",[`${F}-lg`]:X==="large"},j,l==null?void 0:l.textarea,v.textarea),variant:ge({[`${F}-${K}`]:ne},Zp(F,I)),affixWrapper:ge(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:E==="rtl",[`${F}-affix-wrapper-sm`]:X==="small",[`${F}-affix-wrapper-lg`]:X==="large",[`${F}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},j)}),prefixCls:F,suffix:D&&P.createElement("span",{className:`${F}-textarea-suffix`},V),ref:N}))))}),tfe=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:i}=n;return{marginBottom:a,color:r,fontWeight:i,fontSize:e,lineHeight:t}},rfe=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
644
- h${n}&,
645
- div&-h${n},
646
- div&-h${n} > textarea,
647
- h${n}
648
- `]=tfe(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},nfe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},DA(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},afe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Np[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ife=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${He(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},ofe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),sfe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),ufe=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},rfe(e)),{[`
649
- & + h1${t},
650
- & + h2${t},
651
- & + h3${t},
652
- & + h4${t},
653
- & + h5${t}
654
- `]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),afe(e)),nfe(e)),{[`
655
- ${t}-expand,
656
- ${t}-collapse,
657
- ${t}-edit,
658
- ${t}-copy
659
- `]:Object.assign(Object.assign({},DA(e)),{marginInlineStart:e.marginXXS})}),ife(e)),ofe(e)),sfe()),{"&-rtl":{direction:"rtl"}})}},lfe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),g7=ls("Typography",e=>[ufe(e)],lfe),cfe=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:i,maxLength:o,autoSize:s=!0,value:u,onSave:l,onCancel:h,onEnd:d,component:g,enterIcon:b=P.createElement(o7,null)}=e,y=P.useRef(null),w=P.useRef(!1),S=P.useRef(null),[E,_]=P.useState(u);P.useEffect(()=>{_(u)},[u]),P.useEffect(()=>{var N;if(!((N=y.current)===null||N===void 0)&&N.resizableTextArea){const{textArea:F}=y.current.resizableTextArea;F.focus();const{length:T}=F.value;F.setSelectionRange(T,T)}},[]);const C=N=>{let{target:F}=N;_(F.value.replace(/[\n\r]/g,""))},f=()=>{w.current=!0},p=()=>{w.current=!1},v=N=>{let{keyCode:F}=N;w.current||(S.current=F)},x=()=>{l(E.trim())},k=N=>{let{keyCode:F,ctrlKey:T,altKey:M,metaKey:j,shiftKey:H}=N;S.current!==F||w.current||T||M||j||H||(F===Ct.ENTER?(x(),d==null||d()):F===Ct.ESC&&h())},O=()=>{x()},[$,D,V]=g7(t),I=ge(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${g}`]:!!g},n,D,V);return $(P.createElement("div",{className:I,style:a},P.createElement(efe,{ref:y,maxLength:o,value:E,onChange:C,onKeyDown:v,onKeyUp:k,onCompositionStart:f,onCompositionEnd:p,onBlur:O,"aria-label":r,rows:1,autoSize:s}),b!==null?z2(b,{className:`${t}-edit-content-confirm`}):null))};var Fb,_O;function dfe(){return _O||(_O=1,Fb=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}}),Fb}var jb,wO;function ffe(){if(wO)return jb;wO=1;var e=dfe(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,o)}function a(i,o){var s,u,l,h,d,g,b=!1;o||(o={}),s=o.debug||!1;try{l=e(),h=document.createRange(),d=document.getSelection(),g=document.createElement("span"),g.textContent=i,g.ariaHidden="true",g.style.all="unset",g.style.position="fixed",g.style.top=0,g.style.clip="rect(0, 0, 0, 0)",g.style.whiteSpace="pre",g.style.webkitUserSelect="text",g.style.MozUserSelect="text",g.style.msUserSelect="text",g.style.userSelect="text",g.addEventListener("copy",function(w){if(w.stopPropagation(),o.format)if(w.preventDefault(),typeof w.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var S=t[o.format]||t.default;window.clipboardData.setData(S,i)}else w.clipboardData.clearData(),w.clipboardData.setData(o.format,i);o.onCopy&&(w.preventDefault(),o.onCopy(w.clipboardData))}),document.body.appendChild(g),h.selectNodeContents(g),d.addRange(h);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");b=!0}catch(w){s&&console.error("unable to copy using execCommand: ",w),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",i),o.onCopy&&o.onCopy(window.clipboardData),b=!0}catch(S){s&&console.error("unable to copy using clipboardData: ",S),s&&console.error("falling back to prompt"),u=n("message"in o?o.message:r),window.prompt(u,i)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(h):d.removeAllRanges()),g&&document.body.removeChild(g),l()}return b}return jb=a,jb}var hfe=ffe();const pfe=$n(hfe);function mfe(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var gfe=function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(h){try{l(n.next(h))}catch(d){o(d)}}function u(h){try{l(n.throw(h))}catch(d){o(d)}}function l(h){h.done?i(h.value):a(h.value).then(s,u)}l((n=n.apply(e,t||[])).next())})};const vfe=e=>{let{copyConfig:t,children:r}=e;const[n,a]=P.useState(!1),[i,o]=P.useState(!1),s=P.useRef(null),u=()=>{s.current&&clearTimeout(s.current)},l={};t.format&&(l.format=t.format),P.useEffect(()=>u,[]);const h=Xr(d=>gfe(void 0,void 0,void 0,function*(){var g;d==null||d.preventDefault(),d==null||d.stopPropagation(),o(!0);try{const b=typeof t.text=="function"?yield t.text():t.text;pfe(b||mfe(r,!0).join("")||"",l),o(!1),a(!0),u(),s.current=setTimeout(()=>{a(!1)},3e3),(g=t.onCopy)===null||g===void 0||g.call(t,d)}catch(b){throw o(!1),b}}));return{copied:n,copyLoading:i,onClick:h}};function Lb(e,t){return P.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const bfe=e=>{const t=A.useRef(void 0);return A.useEffect(()=>{t.current=e}),t.current},yfe=(e,t,r)=>A.useMemo(()=>e===!0?{title:t??r}:A.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var _fe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const v7=P.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:a,rootClassName:i,setContentRef:o,children:s,direction:u,style:l}=e,h=_fe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:g,className:b,style:y}=Nu("typography"),w=u??g,S=o?us(t,o):t,E=d("typography",r);process.env.NODE_ENV!=="production"&&na("Typography").deprecated(!o,"setContentRef","ref");const[_,C,f]=g7(E),p=ge(E,b,{[`${E}-rtl`]:w==="rtl"},a,i,C,f),v=Object.assign(Object.assign({},y),l);return _(P.createElement(n,Object.assign({className:p,style:v,ref:S},h),s))});process.env.NODE_ENV!=="production"&&(v7.displayName="Typography");var wfe=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:R5}))},Y2=P.forwardRef(wfe);process.env.NODE_ENV!=="production"&&(Y2.displayName="CheckOutlined");var xfe=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:Vz}))},b7=P.forwardRef(xfe);process.env.NODE_ENV!=="production"&&(b7.displayName="CopyOutlined");var Sfe=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:N5}))},G2=P.forwardRef(Sfe);process.env.NODE_ENV!=="production"&&(G2.displayName="LoadingOutlined");function xO(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function zb(e,t,r){return e===!0||e===void 0?t:e||r&&t}function Cfe(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const K2=e=>["string","number"].includes(typeof e),Efe=e=>{let{prefixCls:t,copied:r,locale:n,iconOnly:a,tooltips:i,icon:o,tabIndex:s,onCopy:u,loading:l}=e;const h=xO(i),d=xO(o),{copied:g,copy:b}=n??{},y=r?g:b,w=zb(h[r?1:0],y),S=typeof w=="string"?w:y;return P.createElement(gh,{title:w},P.createElement("button",{type:"button",className:ge(`${t}-copy`,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),onClick:u,"aria-label":S,tabIndex:s},r?zb(d[1],P.createElement(Y2,null),!0):zb(d[0],l?P.createElement(G2,null):P.createElement(b7,null),!0)))},X0=P.forwardRef((e,t)=>{let{style:r,children:n}=e;const a=P.useRef(null);return P.useImperativeHandle(t,()=>({isExceed:()=>{const i=a.current;return i.scrollHeight>i.clientHeight},getHeight:()=>a.current.clientHeight})),P.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},n)}),Ofe=e=>e.reduce((t,r)=>t+(K2(r)?String(r).length:1),0);function SO(e,t){let r=0;const n=[];for(let a=0;a<e.length;a+=1){if(r===t)return n;const i=e[a],s=K2(i)?String(i).length:1,u=r+s;if(u>t){const l=t-r;return n.push(String(i).slice(0,l)),n}n.push(i),r=u}return e}const Bb=0,Hb=1,Vb=2,Ub=3,CO=4,Z0={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Rfe(e){const{enableMeasure:t,width:r,text:n,children:a,rows:i,expanded:o,miscDeps:s,onEllipsis:u}=e,l=P.useMemo(()=>mo(n),[n]),h=P.useMemo(()=>Ofe(l),[n]),d=P.useMemo(()=>a(l,!1),[n]),[g,b]=P.useState(null),y=P.useRef(null),w=P.useRef(null),S=P.useRef(null),E=P.useRef(null),_=P.useRef(null),[C,f]=P.useState(!1),[p,v]=P.useState(Bb),[x,k]=P.useState(0),[O,$]=P.useState(null);fr(()=>{v(t&&r&&h?Hb:Bb)},[r,n,i,t,l]),fr(()=>{var N,F,T,M;if(p===Hb){v(Vb);const j=w.current&&getComputedStyle(w.current).whiteSpace;$(j)}else if(p===Vb){const j=!!(!((N=S.current)===null||N===void 0)&&N.isExceed());v(j?Ub:CO),b(j?[0,h]:null),f(j);const H=((F=S.current)===null||F===void 0?void 0:F.getHeight())||0,z=i===1?0:((T=E.current)===null||T===void 0?void 0:T.getHeight())||0,U=((M=_.current)===null||M===void 0?void 0:M.getHeight())||0,G=Math.max(H,z+U);k(G+1),u(j)}},[p]);const D=g?Math.ceil((g[0]+g[1])/2):0;fr(()=>{var N;const[F,T]=g||[0,0];if(F!==T){const j=(((N=y.current)===null||N===void 0?void 0:N.getHeight())||0)>x;let H=D;T-F===1&&(H=j?F:T),b(j?[F,H]:[H,T])}},[g,D]);const V=P.useMemo(()=>{if(!t)return a(l,!1);if(p!==Ub||!g||g[0]!==g[1]){const N=a(l,!1);return[CO,Bb].includes(p)?N:P.createElement("span",{style:Object.assign(Object.assign({},Z0),{WebkitLineClamp:i})},N)}return a(o?l:SO(l,g[0]),C)},[o,p,g,l].concat(tt(s))),I={width:r,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return P.createElement(P.Fragment,null,V,p===Vb&&P.createElement(P.Fragment,null,P.createElement(X0,{style:Object.assign(Object.assign(Object.assign({},I),Z0),{WebkitLineClamp:i}),ref:S},d),P.createElement(X0,{style:Object.assign(Object.assign(Object.assign({},I),Z0),{WebkitLineClamp:i-1}),ref:E},d),P.createElement(X0,{style:Object.assign(Object.assign(Object.assign({},I),Z0),{WebkitLineClamp:1}),ref:_},a([],!0))),p===Ub&&g&&g[0]!==g[1]&&P.createElement(X0,{style:Object.assign(Object.assign({},I),{top:400}),ref:y},a(SO(l,D),!0)),p===Hb&&P.createElement("span",{style:{whiteSpace:"inherit"},ref:w}))}const y7=e=>{let{enableEllipsis:t,isEllipsis:r,children:n,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?n:P.createElement(gh,Object.assign({open:r?void 0:!1},a),n)};process.env.NODE_ENV!=="production"&&(y7.displayName="EllipsisTooltip");var Tfe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Pfe(e,t){let{mark:r,code:n,underline:a,delete:i,strong:o,keyboard:s,italic:u}=e,l=t;function h(d,g){g&&(l=P.createElement(d,{},l))}return h("strong",o),h("u",a),h("del",i),h("code",n),h("mark",r),h("kbd",s),h("i",u),l}const kfe="...",$fe=P.forwardRef((e,t)=>{var r;const{prefixCls:n,className:a,style:i,type:o,disabled:s,children:u,ellipsis:l,editable:h,copyable:d,component:g,title:b}=e,y=Tfe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:w,direction:S}=P.useContext(kn),[E]=vc("Text"),_=P.useRef(null),C=P.useRef(null),f=w("typography",n),p=dh(y,["mark","code","delete","underline","strong","keyboard","italic"]),[v,x]=Lb(h),[k,O]=_n(!1,{value:x.editing}),{triggerType:$=["icon"]}=x,D=Ve=>{var Ke;Ve&&((Ke=x.onStart)===null||Ke===void 0||Ke.call(x)),O(Ve)},V=bfe(k);fr(()=>{var Ve;!k&&V&&((Ve=C.current)===null||Ve===void 0||Ve.focus())},[k]);const I=Ve=>{Ve==null||Ve.preventDefault(),D(!0)},N=Ve=>{var Ke;(Ke=x.onChange)===null||Ke===void 0||Ke.call(x,Ve),D(!1)},F=()=>{var Ve;(Ve=x.onCancel)===null||Ve===void 0||Ve.call(x),D(!1)},[T,M]=Lb(d),{copied:j,copyLoading:H,onClick:z}=vfe({copyConfig:M,children:u}),[U,G]=P.useState(!1),[X,K]=P.useState(!1),[ne,ae]=P.useState(!1),[ie,de]=P.useState(!1),[pe,be]=P.useState(!0),[me,ee]=Lb(l,{expandable:!1,symbol:Ve=>Ve?E==null?void 0:E.collapse:E==null?void 0:E.expand}),[ve,se]=_n(ee.defaultExpanded||!1,{value:ee.expanded}),fe=me&&(!ve||ee.expandable==="collapsible"),{rows:he=1}=ee,ke=P.useMemo(()=>fe&&(ee.suffix!==void 0||ee.onEllipsis||ee.expandable||v||T),[fe,ee,v,T]);fr(()=>{me&&!ke&&(G(L4("webkitLineClamp")),K(L4("textOverflow")))},[ke,me]);const[Te,xe]=P.useState(fe),$e=P.useMemo(()=>ke?!1:he===1?X:U,[ke,X,U]);fr(()=>{xe($e&&fe)},[$e,fe]);const Pe=fe&&(Te?ie:ne),Ne=fe&&he===1&&Te,Ee=fe&&he>1&&Te,Fe=(Ve,Ke)=>{var Rt;se(Ke.expanded),(Rt=ee.onExpand)===null||Rt===void 0||Rt.call(ee,Ve,Ke)},[rt,dt]=P.useState(0),ct=Ve=>{let{offsetWidth:Ke}=Ve;dt(Ke)},bt=Ve=>{var Ke;ae(Ve),ne!==Ve&&((Ke=ee.onEllipsis)===null||Ke===void 0||Ke.call(ee,Ve))};P.useEffect(()=>{const Ve=_.current;if(me&&Te&&Ve){const Ke=Cfe(Ve);ie!==Ke&&de(Ke)}},[me,Te,u,Ee,pe,rt]),P.useEffect(()=>{const Ve=_.current;if(typeof IntersectionObserver>"u"||!Ve||!Te||!fe)return;const Ke=new IntersectionObserver(()=>{be(!!Ve.offsetParent)});return Ke.observe(Ve),()=>{Ke.disconnect()}},[Te,fe]);const gt=yfe(ee.tooltip,x.text,u),Qe=P.useMemo(()=>{if(!(!me||Te))return[x.text,u,b,gt.title].find(K2)},[me,Te,b,gt.title,Pe]);if(k)return P.createElement(cfe,{value:(r=x.text)!==null&&r!==void 0?r:typeof u=="string"?u:"",onSave:N,onCancel:F,onEnd:x.onEnd,prefixCls:f,className:a,style:i,direction:S,component:g,maxLength:x.maxLength,autoSize:x.autoSize,enterIcon:x.enterIcon});const _t=()=>{const{expandable:Ve,symbol:Ke}=ee;return Ve?P.createElement("button",{type:"button",key:"expand",className:`${f}-${ve?"collapse":"expand"}`,onClick:Rt=>Fe(Rt,{expanded:!ve}),"aria-label":ve?E.collapse:E==null?void 0:E.expand},typeof Ke=="function"?Ke(ve):Ke):null},It=()=>{if(!v)return;const{icon:Ve,tooltip:Ke,tabIndex:Rt}=x,qt=mo(Ke)[0]||(E==null?void 0:E.edit),Pr=typeof qt=="string"?qt:"";return $.includes("icon")?P.createElement(gh,{key:"edit",title:Ke===!1?"":qt},P.createElement("button",{type:"button",ref:C,className:`${f}-edit`,onClick:I,"aria-label":Pr,tabIndex:Rt},Ve||P.createElement(wA,{role:"button"}))):null},ft=()=>T?P.createElement(Efe,Object.assign({key:"copy"},M,{prefixCls:f,copied:j,locale:E,onCopy:z,loading:H,iconOnly:u==null})):null,Be=Ve=>[Ve&&_t(),It(),ft()],Ot=Ve=>[Ve&&!ve&&P.createElement("span",{"aria-hidden":!0,key:"ellipsis"},kfe),ee.suffix,Be(Ve)];return P.createElement(_o,{onResize:ct,disabled:!fe},Ve=>P.createElement(y7,{tooltipProps:gt,enableEllipsis:fe,isEllipsis:Pe},P.createElement(v7,Object.assign({className:ge({[`${f}-${o}`]:o,[`${f}-disabled`]:s,[`${f}-ellipsis`]:me,[`${f}-ellipsis-single-line`]:Ne,[`${f}-ellipsis-multiple-line`]:Ee},a),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:Ee?he:void 0}),component:g,ref:us(Ve,_,t),direction:S,onClick:$.includes("text")?I:void 0,"aria-label":Qe==null?void 0:Qe.toString(),title:b},p),P.createElement(Rfe,{enableMeasure:fe&&!Te,text:u,rows:he,width:rt,onEllipsis:bt,expanded:ve,miscDeps:[j,ve,H,v,T,E]},(Ke,Rt)=>Pfe(e,P.createElement(P.Fragment,null,Ke.length>0&&Rt&&!ve&&Qe?P.createElement("span",{key:"show-content","aria-hidden":!0},Ke):Ke,Ot(Rt)))))))}),Afe=P.forwardRef((e,t)=>P.createElement($fe,Object.assign({ref:t},e,{component:"div"})));var Dfe=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:qz}))},W_=P.forwardRef(Dfe);process.env.NODE_ENV!=="production"&&(W_.displayName="DoubleLeftOutlined");var Mfe=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:Wz}))},Y_=P.forwardRef(Mfe);process.env.NODE_ENV!=="production"&&(Y_.displayName="DoubleRightOutlined");var Nfe=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:uw}))},G_=P.forwardRef(Nfe);process.env.NODE_ENV!=="production"&&(G_.displayName="LeftOutlined");var Ife=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:cw}))},K_=P.forwardRef(Ife);process.env.NODE_ENV!=="production"&&(K_.displayName="RightOutlined");var Ffe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},jfe=[10,20,50,100],_7=function(t){var r=t.pageSizeOptions,n=r===void 0?jfe:r,a=t.locale,i=t.changeSize,o=t.pageSize,s=t.goButton,u=t.quickGo,l=t.rootPrefixCls,h=t.disabled,d=t.buildOptionText,g=t.showSizeChanger,b=t.sizeChangerRender,y=A.useState(""),w=we(y,2),S=w[0],E=w[1],_=function(){return!S||Number.isNaN(S)?void 0:Number(S)},C=typeof d=="function"?d:function(V){return"".concat(V," ").concat(a.items_per_page)},f=function(I){E(I.target.value)},p=function(I){s||S===""||(E(""),!(I.relatedTarget&&(I.relatedTarget.className.indexOf("".concat(l,"-item-link"))>=0||I.relatedTarget.className.indexOf("".concat(l,"-item"))>=0))&&(u==null||u(_())))},v=function(I){S!==""&&(I.keyCode===Ct.ENTER||I.type==="click")&&(E(""),u==null||u(_()))},x=function(){return n.some(function(I){return I.toString()===o.toString()})?n:n.concat([o]).sort(function(I,N){var F=Number.isNaN(Number(I))?0:Number(I),T=Number.isNaN(Number(N))?0:Number(N);return F-T})},k="".concat(l,"-options");if(!g&&!u)return null;var O=null,$=null,D=null;return g&&b&&(O=b({disabled:h,size:o,onSizeChange:function(I){i==null||i(Number(I))},"aria-label":a.page_size,className:"".concat(k,"-size-changer"),options:x().map(function(V){return{label:C(V),value:V}})})),u&&(s&&(D=typeof s=="boolean"?A.createElement("button",{type:"button",onClick:v,onKeyUp:v,disabled:h,className:"".concat(k,"-quick-jumper-button")},a.jump_to_confirm):A.createElement("span",{onClick:v,onKeyUp:v},s)),$=A.createElement("div",{className:"".concat(k,"-quick-jumper")},a.jump_to,A.createElement("input",{disabled:h,type:"text",value:S,onChange:f,onKeyUp:v,onBlur:p,"aria-label":a.page}),a.page,D)),A.createElement("li",{className:k},O,$)};process.env.NODE_ENV!=="production"&&(_7.displayName="Options");var wl=function(t){var r=t.rootPrefixCls,n=t.page,a=t.active,i=t.className,o=t.showTitle,s=t.onClick,u=t.onKeyPress,l=t.itemRender,h="".concat(r,"-item"),d=ge(h,"".concat(h,"-").concat(n),re(re({},"".concat(h,"-active"),a),"".concat(h,"-disabled"),!n),i),g=function(){s(n)},b=function(S){u(S,s,n)},y=l(n,"page",A.createElement("a",{rel:"nofollow"},n));return y?A.createElement("li",{title:o?String(n):null,className:d,onClick:g,onKeyDown:b,tabIndex:0},y):null};process.env.NODE_ENV!=="production"&&(wl.displayName="Pager");var Lfe=function(t,r,n){return n};function qb(){}function EO(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function uu(e,t,r){var n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}var w7=function(t){var r=t.prefixCls,n=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,o=t.className,s=t.current,u=t.defaultCurrent,l=u===void 0?1:u,h=t.total,d=h===void 0?0:h,g=t.pageSize,b=t.defaultPageSize,y=b===void 0?10:b,w=t.onChange,S=w===void 0?qb:w,E=t.hideOnSinglePage,_=t.align,C=t.showPrevNextJumpers,f=C===void 0?!0:C,p=t.showQuickJumper,v=t.showLessItems,x=t.showTitle,k=x===void 0?!0:x,O=t.onShowSizeChange,$=O===void 0?qb:O,D=t.locale,V=D===void 0?Ffe:D,I=t.style,N=t.totalBoundaryShowSizeChanger,F=N===void 0?50:N,T=t.disabled,M=t.simple,j=t.showTotal,H=t.showSizeChanger,z=H===void 0?d>F:H,U=t.sizeChangerRender,G=t.pageSizeOptions,X=t.itemRender,K=X===void 0?Lfe:X,ne=t.jumpPrevIcon,ae=t.jumpNextIcon,ie=t.prevIcon,de=t.nextIcon,pe=A.useRef(null),be=_n(10,{value:g,defaultValue:y}),me=we(be,2),ee=me[0],ve=me[1],se=_n(1,{value:s,defaultValue:l,postState:function(jt){return Math.max(1,Math.min(jt,uu(void 0,ee,d)))}}),fe=we(se,2),he=fe[0],ke=fe[1],Te=A.useState(he),xe=we(Te,2),$e=xe[0],Pe=xe[1];A.useEffect(function(){Pe(he)},[he]);var Ne=S!==qb,Ee="current"in t;process.env.NODE_ENV!=="production"&&Ut(Ee?Ne:!0,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Fe=Math.max(1,he-(v?3:5)),rt=Math.min(uu(void 0,ee,d),he+(v?3:5));function dt(mt,jt){var vr=mt||A.createElement("button",{type:"button","aria-label":jt,className:"".concat(n,"-item-link")});return typeof mt=="function"&&(vr=A.createElement(mt,Q({},t))),vr}function ct(mt){var jt=mt.target.value,vr=uu(void 0,ee,d),Dn;return jt===""?Dn=jt:Number.isNaN(Number(jt))?Dn=$e:jt>=vr?Dn=vr:Dn=Number(jt),Dn}function bt(mt){return EO(mt)&&mt!==he&&EO(d)&&d>0}var gt=d>ee?p:!1;function Qe(mt){(mt.keyCode===Ct.UP||mt.keyCode===Ct.DOWN)&&mt.preventDefault()}function _t(mt){var jt=ct(mt);switch(jt!==$e&&Pe(jt),mt.keyCode){case Ct.ENTER:Be(jt);break;case Ct.UP:Be(jt-1);break;case Ct.DOWN:Be(jt+1);break}}function It(mt){Be(ct(mt))}function ft(mt){var jt=uu(mt,ee,d),vr=he>jt&&jt!==0?jt:he;ve(mt),Pe(vr),$==null||$(he,mt),ke(vr),S==null||S(vr,mt)}function Be(mt){if(bt(mt)&&!T){var jt=uu(void 0,ee,d),vr=mt;return mt>jt?vr=jt:mt<1&&(vr=1),vr!==$e&&Pe(vr),ke(vr),S==null||S(vr,ee),vr}return he}var Ot=he>1,Ve=he<uu(void 0,ee,d);function Ke(){Ot&&Be(he-1)}function Rt(){Ve&&Be(he+1)}function qt(){Be(Fe)}function Pr(){Be(rt)}function gr(mt,jt){if(mt.key==="Enter"||mt.charCode===Ct.ENTER||mt.keyCode===Ct.ENTER){for(var vr=arguments.length,Dn=new Array(vr>2?vr-2:0),rn=2;rn<vr;rn++)Dn[rn-2]=arguments[rn];jt.apply(void 0,Dn)}}function Br(mt){gr(mt,Ke)}function wr(mt){gr(mt,Rt)}function cr(mt){gr(mt,qt)}function kr(mt){gr(mt,Pr)}function Vt(mt){var jt=K(mt,"prev",dt(ie,"prev page"));return A.isValidElement(jt)?A.cloneElement(jt,{disabled:!Ot}):jt}function nt(mt){var jt=K(mt,"next",dt(de,"next page"));return A.isValidElement(jt)?A.cloneElement(jt,{disabled:!Ve}):jt}function Ye(mt){(mt.type==="click"||mt.keyCode===Ct.ENTER)&&Be($e)}var Ue=null,zt=po(t,{aria:!0,data:!0}),er=j&&A.createElement("li",{className:"".concat(n,"-total-text")},j(d,[d===0?0:(he-1)*ee+1,he*ee>d?d:he*ee])),Ze=null,De=uu(void 0,ee,d);if(E&&d<=ee)return null;var qe=[],et={rootPrefixCls:n,onClick:Be,onKeyPress:gr,showTitle:k,itemRender:K,page:-1},Je=he-1>0?he-1:0,Z=he+1<De?he+1:De,Se=p&&p.goButton,Ae=pt(M)==="object"?M.readOnly:!M,Ge=Se,at=null;M&&(Se&&(typeof Se=="boolean"?Ge=A.createElement("button",{type:"button",onClick:Ye,onKeyUp:Ye},V.jump_to_confirm):Ge=A.createElement("span",{onClick:Ye,onKeyUp:Ye},Se),Ge=A.createElement("li",{title:k?"".concat(V.jump_to).concat(he,"/").concat(De):null,className:"".concat(n,"-simple-pager")},Ge)),at=A.createElement("li",{title:k?"".concat(he,"/").concat(De):null,className:"".concat(n,"-simple-pager")},Ae?$e:A.createElement("input",{type:"text","aria-label":V.jump_to,value:$e,disabled:T,onKeyDown:Qe,onKeyUp:_t,onChange:_t,onBlur:It,size:3}),A.createElement("span",{className:"".concat(n,"-slash")},"/"),De));var ht=v?1:2;if(De<=3+ht*2){De||qe.push(A.createElement(wl,je({},et,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var it=1;it<=De;it+=1)qe.push(A.createElement(wl,je({},et,{key:it,page:it,active:he===it})))}else{var wt=v?V.prev_3:V.prev_5,dr=v?V.next_3:V.next_5,Ft=K(Fe,"jump-prev",dt(ne,"prev page")),Lt=K(rt,"jump-next",dt(ae,"next page"));f&&(Ue=Ft?A.createElement("li",{title:k?wt:null,key:"prev",onClick:qt,tabIndex:0,onKeyDown:cr,className:ge("".concat(n,"-jump-prev"),re({},"".concat(n,"-jump-prev-custom-icon"),!!ne))},Ft):null,Ze=Lt?A.createElement("li",{title:k?dr:null,key:"next",onClick:Pr,tabIndex:0,onKeyDown:kr,className:ge("".concat(n,"-jump-next"),re({},"".concat(n,"-jump-next-custom-icon"),!!ae))},Lt):null);var Ie=Math.max(1,he-ht),We=Math.min(he+ht,De);he-1<=ht&&(We=1+ht*2),De-he<=ht&&(Ie=De-ht*2);for(var xt=Ie;xt<=We;xt+=1)qe.push(A.createElement(wl,je({},et,{key:xt,page:xt,active:he===xt})));if(he-1>=ht*2&&he!==3&&(qe[0]=A.cloneElement(qe[0],{className:ge("".concat(n,"-item-after-jump-prev"),qe[0].props.className)}),qe.unshift(Ue)),De-he>=ht*2&&he!==De-2){var vt=qe[qe.length-1];qe[qe.length-1]=A.cloneElement(vt,{className:ge("".concat(n,"-item-before-jump-next"),vt.props.className)}),qe.push(Ze)}Ie!==1&&qe.unshift(A.createElement(wl,je({},et,{key:1,page:1}))),We!==De&&qe.push(A.createElement(wl,je({},et,{key:De,page:De})))}var ir=Vt(Je);if(ir){var xn=!Ot||!De;ir=A.createElement("li",{title:k?V.prev_page:null,onClick:Ke,tabIndex:xn?null:0,onKeyDown:Br,className:ge("".concat(n,"-prev"),re({},"".concat(n,"-disabled"),xn)),"aria-disabled":xn},ir)}var tn=nt(Z);if(tn){var An,Sn;M?(An=!Ve,Sn=Ot?0:null):(An=!Ve||!De,Sn=An?null:0),tn=A.createElement("li",{title:k?V.next_page:null,onClick:Rt,tabIndex:Sn,onKeyDown:wr,className:ge("".concat(n,"-next"),re({},"".concat(n,"-disabled"),An)),"aria-disabled":An},tn)}var aa=ge(n,o,re(re(re(re(re({},"".concat(n,"-start"),_==="start"),"".concat(n,"-center"),_==="center"),"".concat(n,"-end"),_==="end"),"".concat(n,"-simple"),M),"".concat(n,"-disabled"),T));return A.createElement("ul",je({className:aa,style:I,ref:pe},zt),er,ir,M?at:qe,tn,A.createElement(_7,{locale:V,rootPrefixCls:n,disabled:T,selectPrefixCls:i,changeSize:ft,pageSize:ee,pageSizeOptions:G,quickGo:gt?Be:null,goButton:Ge,showSizeChanger:z,sizeChangerRender:U}))};process.env.NODE_ENV!=="production"&&(w7.displayName="Pagination");function zfe(){const[,e]=P.useReducer(t=>t+1,0);return e}const Bfe=["xxl","xl","lg","md","sm","xs"],Hfe=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)`}),Vfe=e=>{const t=e,r=[].concat(Bfe).reverse();return r.forEach((n,a)=>{const i=n.toUpperCase(),o=`screen${i}Min`,s=`screen${i}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(a<r.length-1){const u=`screen${i}Max`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`);const h=`screen${r[a+1].toUpperCase()}Min`;if(!(t[u]<=t[h]))throw new Error(`${u}<=${h} fails : !(${t[u]}<=${t[h]})`)}}),e};function Ufe(){const[,e]=bi(),t=Hfe(Vfe(e));return A.useMemo(()=>{const r=new Map;let n=-1,a={};return{matchHandlers:{},dispatch(i){return a=i,r.forEach(o=>o(a)),r.size>=1},subscribe(i){return r.size||this.register(),n+=1,r.set(n,i),i(a),n},unsubscribe(i){r.delete(i),r.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const o=t[i],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(i=>{const o=t[i],s=l=>{let{matches:h}=l;this.dispatch(Object.assign(Object.assign({},a),{[i]:h}))},u=window.matchMedia(o);u.addListener(s),this.matchHandlers[o]={mql:u,listener:s},s(u)})},responsiveMap:t}},[e])}function qfe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=A.useRef({}),r=zfe(),n=Ufe();return fr(()=>{const a=n.subscribe(i=>{t.current=i,e&&r()});return()=>n.unsubscribe(a)},[]),t.current}var Gm=function(t){var r=t.className,n=t.customizeIcon,a=t.customizeIconProps,i=t.children,o=t.onMouseDown,s=t.onClick,u=typeof n=="function"?n(a):n;return P.createElement("span",{className:r,onMouseDown:function(h){h.preventDefault(),o==null||o(h)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},u!==void 0?u:P.createElement("span",{className:ge(r.split(/\s+/).map(function(l){return"".concat(l,"-icon")}))},i))},Wfe=function(t,r,n,a,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,l=A.useMemo(function(){if(pt(a)==="object")return a.clearIcon;if(i)return i},[a,i]),h=A.useMemo(function(){return!!(!o&&a&&(n.length||s)&&!(u==="combobox"&&s===""))},[a,o,n.length,s,u]);return{allowClear:h,clearIcon:A.createElement(Gm,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:l},"×")}},x7=P.createContext(null);function Yfe(){return P.useContext(x7)}function Gfe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=P.useState(!1),r=we(t,2),n=r[0],a=r[1],i=P.useRef(null),o=function(){window.clearTimeout(i.current)};P.useEffect(function(){return o},[]);var s=function(l,h){o(),i.current=window.setTimeout(function(){a(l),h&&h()},e)};return[n,s,o]}function S7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=P.useRef(null),r=P.useRef(null);P.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function Kfe(e,t,r,n){var a=P.useRef(null);a.current={open:t,triggerOpen:r,customizedTrigger:n},P.useEffect(function(){function i(o){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var u=o.target;u.shadowRoot&&o.composed&&(u=o.composedPath()[0]||u),a.current.open&&e().filter(function(l){return l}).every(function(l){return!l.contains(u)&&l!==u})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function Xfe(e){return e&&![Ct.ESC,Ct.SHIFT,Ct.BACKSPACE,Ct.TAB,Ct.WIN_KEY,Ct.ALT,Ct.META,Ct.WIN_KEY_RIGHT,Ct.CTRL,Ct.SEMICOLON,Ct.EQUALS,Ct.CAPS_LOCK,Ct.CONTEXT_MENU,Ct.F1,Ct.F2,Ct.F3,Ct.F4,Ct.F5,Ct.F6,Ct.F7,Ct.F8,Ct.F9,Ct.F10,Ct.F11,Ct.F12].includes(e)}var Zfe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ml=void 0;function Jfe(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,i=e.renderItem,o=e.responsive,s=e.responsiveDisabled,u=e.registerSize,l=e.itemKey,h=e.className,d=e.style,g=e.children,b=e.display,y=e.order,w=e.component,S=w===void 0?"div":w,E=sr(e,Zfe),_=o&&!b;function C(k){u(l,k)}P.useEffect(function(){return function(){C(null)}},[]);var f=i&&a!==ml?i(a,{index:y}):g,p;n||(p={opacity:_?0:1,height:_?0:ml,overflowY:_?"hidden":ml,order:o?y:ml,pointerEvents:_?"none":ml,position:_?"absolute":ml});var v={};_&&(v["aria-hidden"]=!0);var x=P.createElement(S,je({className:ge(!n&&r,h),style:Q(Q({},p),d)},v,E,{ref:t}),f);return o&&(x=P.createElement(_o,{onResize:function(O){var $=O.offsetWidth;C($)},disabled:s},x)),x}var ff=P.forwardRef(Jfe);ff.displayName="Item";function Qfe(e){if(typeof MessageChannel>"u")Zr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function ehe(){var e=P.useRef(null),t=function(n){e.current||(e.current=[],Qfe(function(){lo.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function Id(e,t){var r=P.useState(t),n=we(r,2),a=n[0],i=n[1],o=Xr(function(s){e(function(){i(s)})});return[a,o]}var Jp=A.createContext(null),the=["component"],rhe=["className"],nhe=["className"],ahe=function(t,r){var n=P.useContext(Jp);if(!n){var a=t.component,i=a===void 0?"div":a,o=sr(t,the);return P.createElement(i,je({},o,{ref:r}))}var s=n.className,u=sr(n,rhe),l=t.className,h=sr(t,nhe);return P.createElement(Jp.Provider,{value:null},P.createElement(ff,je({ref:r,className:ge(s,l)},u,h)))},C7=P.forwardRef(ahe);C7.displayName="RawItem";var ihe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],E7="responsive",O7="invalidate";function ohe(e){return"+ ".concat(e.length," ...")}function she(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,i=a===void 0?[]:a,o=e.renderItem,s=e.renderRawItem,u=e.itemKey,l=e.itemWidth,h=l===void 0?10:l,d=e.ssr,g=e.style,b=e.className,y=e.maxCount,w=e.renderRest,S=e.renderRawRest,E=e.suffix,_=e.component,C=_===void 0?"div":_,f=e.itemComponent,p=e.onVisibleChange,v=sr(e,ihe),x=d==="full",k=ehe(),O=Id(k,null),$=we(O,2),D=$[0],V=$[1],I=D||0,N=Id(k,new Map),F=we(N,2),T=F[0],M=F[1],j=Id(k,0),H=we(j,2),z=H[0],U=H[1],G=Id(k,0),X=we(G,2),K=X[0],ne=X[1],ae=Id(k,0),ie=we(ae,2),de=ie[0],pe=ie[1],be=A.useState(null),me=we(be,2),ee=me[0],ve=me[1],se=A.useState(null),fe=we(se,2),he=fe[0],ke=fe[1],Te=P.useMemo(function(){return he===null&&x?Number.MAX_SAFE_INTEGER:he||0},[he,D]),xe=A.useState(!1),$e=we(xe,2),Pe=$e[0],Ne=$e[1],Ee="".concat(n,"-item"),Fe=Math.max(z,K),rt=y===E7,dt=i.length&&rt,ct=y===O7,bt=dt||typeof y=="number"&&i.length>y,gt=A.useMemo(function(){var nt=i;return dt?D===null&&x?nt=i:nt=i.slice(0,Math.min(i.length,I/h)):typeof y=="number"&&(nt=i.slice(0,y)),nt},[i,h,D,y,dt]),Qe=A.useMemo(function(){return dt?i.slice(Te+1):i.slice(gt.length)},[i,gt,dt,Te]),_t=A.useCallback(function(nt,Ye){var Ue;return typeof u=="function"?u(nt):(Ue=u&&(nt==null?void 0:nt[u]))!==null&&Ue!==void 0?Ue:Ye},[u]),It=A.useCallback(o||function(nt){return nt},[o]);function ft(nt,Ye,Ue){he===nt&&(Ye===void 0||Ye===ee)||(ke(nt),Ue||(Ne(nt<i.length-1),p==null||p(nt)),Ye!==void 0&&ve(Ye))}function Be(nt,Ye){V(Ye.clientWidth)}function Ot(nt,Ye){M(function(Ue){var zt=new Map(Ue);return Ye===null?zt.delete(nt):zt.set(nt,Ye),zt})}function Ve(nt,Ye){ne(Ye),U(K)}function Ke(nt,Ye){pe(Ye)}function Rt(nt){return T.get(_t(gt[nt],nt))}fr(function(){if(I&&typeof Fe=="number"&&gt){var nt=de,Ye=gt.length,Ue=Ye-1;if(!Ye){ft(0,null);return}for(var zt=0;zt<Ye;zt+=1){var er=Rt(zt);if(x&&(er=er||0),er===void 0){ft(zt-1,void 0,!0);break}if(nt+=er,Ue===0&&nt<=I||zt===Ue-1&&nt+Rt(Ue)<=I){ft(Ue,null);break}else if(nt+Fe>I){ft(zt-1,nt-er-de+K);break}}E&&Rt(0)+de>I&&ve(null)}},[I,T,K,de,_t,gt]);var qt=Pe&&!!Qe.length,Pr={};ee!==null&&dt&&(Pr={position:"absolute",left:ee,top:0});var gr={prefixCls:Ee,responsive:dt,component:f,invalidate:ct},Br=s?function(nt,Ye){var Ue=_t(nt,Ye);return P.createElement(Jp.Provider,{key:Ue,value:Q(Q({},gr),{},{order:Ye,item:nt,itemKey:Ue,registerSize:Ot,display:Ye<=Te})},s(nt,Ye))}:function(nt,Ye){var Ue=_t(nt,Ye);return P.createElement(ff,je({},gr,{order:Ye,key:Ue,item:nt,renderItem:It,itemKey:Ue,registerSize:Ot,display:Ye<=Te}))},wr={order:qt?Te:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:Ve,display:qt},cr=w||ohe,kr=S?P.createElement(Jp.Provider,{value:Q(Q({},gr),wr)},S(Qe)):P.createElement(ff,je({},gr,wr),typeof cr=="function"?cr(Qe):cr),Vt=P.createElement(C,je({className:ge(!ct&&n,b),style:g,ref:t},v),gt.map(Br),bt?kr:null,E&&P.createElement(ff,je({},gr,{responsive:rt,responsiveDisabled:!dt,order:Te,className:"".concat(Ee,"-suffix"),registerSize:Ke,display:!0,style:Pr}),E));return rt?P.createElement(_o,{onResize:Be,disabled:!dt},Vt):Vt}var bh=P.forwardRef(she);bh.displayName="Overflow";bh.Item=C7;bh.RESPONSIVE=E7;bh.INVALIDATE=O7;var uhe=function(t,r){var n,a=t.prefixCls,i=t.id,o=t.inputElement,s=t.disabled,u=t.tabIndex,l=t.autoFocus,h=t.autoComplete,d=t.editable,g=t.activeDescendantId,b=t.value,y=t.maxLength,w=t.onKeyDown,S=t.onMouseDown,E=t.onChange,_=t.onPaste,C=t.onCompositionStart,f=t.onCompositionEnd,p=t.onBlur,v=t.open,x=t.attrs,k=o||P.createElement("input",null),O=k,$=O.ref,D=O.props,V=D.onKeyDown,I=D.onChange,N=D.onMouseDown,F=D.onCompositionStart,T=D.onCompositionEnd,M=D.onBlur,j=D.style;return Eu(!("maxLength"in k.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),k=P.cloneElement(k,Q(Q(Q({type:"search"},D),{},{id:i,ref:us(r,$),disabled:s,tabIndex:u,autoComplete:h||"off",autoFocus:l,className:ge("".concat(a,"-selection-search-input"),(n=k)===null||n===void 0||(n=n.props)===null||n===void 0?void 0:n.className),role:"combobox","aria-expanded":v||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":v?g:void 0},x),{},{value:d?b:"",maxLength:y,readOnly:!d,unselectable:d?null:"on",style:Q(Q({},j),{},{opacity:d?null:0}),onKeyDown:function(z){w(z),V&&V(z)},onMouseDown:function(z){S(z),N&&N(z)},onChange:function(z){E(z),I&&I(z)},onCompositionStart:function(z){C(z),F&&F(z)},onCompositionEnd:function(z){f(z),T&&T(z)},onPaste:_,onBlur:function(z){p(z),M&&M(z)}})),k},X2=P.forwardRef(uhe);process.env.NODE_ENV!=="production"&&(X2.displayName="Input");function Z2(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var lhe=typeof window<"u"&&window.document&&window.document.documentElement,che=process.env.NODE_ENV!=="test"&&lhe;function dhe(e){return e!=null}function fhe(e){return!e&&e!==0}function OO(e){return["string","number"].includes(pt(e))}function R7(e){var t=void 0;return e&&(OO(e.title)?t=e.title.toString():OO(e.label)&&(t=e.label.toString())),t}function hhe(e,t){che?P.useLayoutEffect(e,t):P.useEffect(e,t)}function phe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var RO=function(t){t.preventDefault(),t.stopPropagation()},mhe=function(t){var r=t.id,n=t.prefixCls,a=t.values,i=t.open,o=t.searchValue,s=t.autoClearSearchValue,u=t.inputRef,l=t.placeholder,h=t.disabled,d=t.mode,g=t.showSearch,b=t.autoFocus,y=t.autoComplete,w=t.activeDescendantId,S=t.tabIndex,E=t.removeIcon,_=t.maxTagCount,C=t.maxTagTextLength,f=t.maxTagPlaceholder,p=f===void 0?function(se){return"+ ".concat(se.length," ...")}:f,v=t.tagRender,x=t.onToggleOpen,k=t.onRemove,O=t.onInputChange,$=t.onInputPaste,D=t.onInputKeyDown,V=t.onInputMouseDown,I=t.onInputCompositionStart,N=t.onInputCompositionEnd,F=t.onInputBlur,T=P.useRef(null),M=A.useState(0),j=we(M,2),H=j[0],z=j[1],U=A.useState(!1),G=we(U,2),X=G[0],K=G[1],ne="".concat(n,"-selection"),ae=i||d==="multiple"&&s===!1||d==="tags"?o:"",ie=d==="tags"||d==="multiple"&&s===!1||g&&(i||X);hhe(function(){z(T.current.scrollWidth)},[ae]);var de=function(fe,he,ke,Te,xe){return P.createElement("span",{title:R7(fe),className:ge("".concat(ne,"-item"),re({},"".concat(ne,"-item-disabled"),ke))},P.createElement("span",{className:"".concat(ne,"-item-content")},he),Te&&P.createElement(Gm,{className:"".concat(ne,"-item-remove"),onMouseDown:RO,onClick:xe,customizeIcon:E},"×"))},pe=function(fe,he,ke,Te,xe,$e){var Pe=function(Ee){RO(Ee),x(!i)};return P.createElement("span",{onMouseDown:Pe},v({label:he,value:fe,disabled:ke,closable:Te,onClose:xe,isMaxTag:!!$e}))},be=function(fe){var he=fe.disabled,ke=fe.label,Te=fe.value,xe=!h&&!he,$e=ke;if(typeof C=="number"&&(typeof ke=="string"||typeof ke=="number")){var Pe=String($e);Pe.length>C&&($e="".concat(Pe.slice(0,C),"..."))}var Ne=function(Fe){Fe&&Fe.stopPropagation(),k(fe)};return typeof v=="function"?pe(Te,$e,he,xe,Ne):de(fe,$e,he,xe,Ne)},me=function(fe){if(!a.length)return null;var he=typeof p=="function"?p(fe):p;return typeof v=="function"?pe(void 0,he,!1,!1,void 0,!0):de({title:he},he,!1)},ee=P.createElement("div",{className:"".concat(ne,"-search"),style:{width:H},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},P.createElement(X2,{ref:u,open:i,prefixCls:n,id:r,inputElement:null,disabled:h,autoFocus:b,autoComplete:y,editable:ie,activeDescendantId:w,value:ae,onKeyDown:D,onMouseDown:V,onChange:O,onPaste:$,onCompositionStart:I,onCompositionEnd:N,onBlur:F,tabIndex:S,attrs:po(t,!0)}),P.createElement("span",{ref:T,className:"".concat(ne,"-search-mirror"),"aria-hidden":!0},ae," ")),ve=P.createElement(bh,{prefixCls:"".concat(ne,"-overflow"),data:a,renderItem:be,renderRest:me,suffix:ee,itemKey:phe,maxCount:_});return P.createElement("span",{className:"".concat(ne,"-wrap")},ve,!a.length&&!ae&&P.createElement("span",{className:"".concat(ne,"-placeholder")},l))},ghe=function(t){var r=t.inputElement,n=t.prefixCls,a=t.id,i=t.inputRef,o=t.disabled,s=t.autoFocus,u=t.autoComplete,l=t.activeDescendantId,h=t.mode,d=t.open,g=t.values,b=t.placeholder,y=t.tabIndex,w=t.showSearch,S=t.searchValue,E=t.activeValue,_=t.maxLength,C=t.onInputKeyDown,f=t.onInputMouseDown,p=t.onInputChange,v=t.onInputPaste,x=t.onInputCompositionStart,k=t.onInputCompositionEnd,O=t.onInputBlur,$=t.title,D=P.useState(!1),V=we(D,2),I=V[0],N=V[1],F=h==="combobox",T=F||w,M=g[0],j=S||"";F&&E&&!I&&(j=E),P.useEffect(function(){F&&N(!1)},[F,E]);var H=h!=="combobox"&&!d&&!w?!1:!!j,z=$===void 0?R7(M):$,U=P.useMemo(function(){return M?null:P.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:H?{visibility:"hidden"}:void 0},b)},[M,H,b,n]);return P.createElement("span",{className:"".concat(n,"-selection-wrap")},P.createElement("span",{className:"".concat(n,"-selection-search")},P.createElement(X2,{ref:i,prefixCls:n,id:a,open:d,inputElement:r,disabled:o,autoFocus:s,autoComplete:u,editable:T,activeDescendantId:l,value:j,onKeyDown:C,onMouseDown:f,onChange:function(X){N(!0),p(X)},onPaste:v,onCompositionStart:x,onCompositionEnd:k,onBlur:O,tabIndex:y,attrs:po(t,!0),maxLength:F?_:void 0})),!F&&M?P.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:H?{visibility:"hidden"}:void 0},M.label):null,U)},vhe=function(t,r){var n=A.useRef(null),a=A.useRef(!1),i=t.prefixCls,o=t.open,s=t.mode,u=t.showSearch,l=t.tokenWithEnter,h=t.disabled,d=t.prefix,g=t.autoClearSearchValue,b=t.onSearch,y=t.onSearchSubmit,w=t.onToggleOpen,S=t.onInputKeyDown,E=t.onInputBlur,_=t.domRef;P.useImperativeHandle(r,function(){return{focus:function(z){n.current.focus(z)},blur:function(){n.current.blur()}}});var C=S7(0),f=we(C,2),p=f[0],v=f[1],x=function(z){var U=z.which,G=n.current instanceof HTMLTextAreaElement;!G&&o&&(U===Ct.UP||U===Ct.DOWN)&&z.preventDefault(),S&&S(z),U===Ct.ENTER&&s==="tags"&&!a.current&&!o&&(y==null||y(z.target.value)),!(G&&!o&&~[Ct.UP,Ct.DOWN,Ct.LEFT,Ct.RIGHT].indexOf(U))&&Xfe(U)&&w(!0)},k=function(){v(!0)},O=A.useRef(null),$=function(z){b(z,!0,a.current)!==!1&&w(!0)},D=function(){a.current=!0},V=function(z){a.current=!1,s!=="combobox"&&$(z.target.value)},I=function(z){var U=z.target.value;if(l&&O.current&&/[\r\n]/.test(O.current)){var G=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");U=U.replace(G,O.current)}O.current=null,$(U)},N=function(z){var U=z.clipboardData,G=U==null?void 0:U.getData("text");O.current=G||""},F=function(z){var U=z.target;if(U!==n.current){var G=document.body.style.msTouchAction!==void 0;G?setTimeout(function(){n.current.focus()}):n.current.focus()}},T=function(z){var U=p();z.target!==n.current&&!U&&!(s==="combobox"&&h)&&z.preventDefault(),(s!=="combobox"&&(!u||!U)||!o)&&(o&&g!==!1&&b("",!0,!1),w())},M={inputRef:n,onInputKeyDown:x,onInputMouseDown:k,onInputChange:I,onInputPaste:N,onInputCompositionStart:D,onInputCompositionEnd:V,onInputBlur:E},j=s==="multiple"||s==="tags"?P.createElement(mhe,je({},t,M)):P.createElement(ghe,je({},t,M));return P.createElement("div",{ref:_,className:"".concat(i,"-selector"),onClick:F,onMouseDown:T},d&&P.createElement("div",{className:"".concat(i,"-prefix")},d),j)},T7=P.forwardRef(vhe);process.env.NODE_ENV!=="production"&&(T7.displayName="Selector");var bhe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],yhe=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},_he=function(t,r){var n=t.prefixCls;t.disabled;var a=t.visible,i=t.children,o=t.popupElement,s=t.animation,u=t.transitionName,l=t.dropdownStyle,h=t.dropdownClassName,d=t.direction,g=d===void 0?"ltr":d,b=t.placement,y=t.builtinPlacements,w=t.dropdownMatchSelectWidth,S=t.dropdownRender,E=t.dropdownAlign,_=t.getPopupContainer,C=t.empty,f=t.getTriggerDOMNode,p=t.onPopupVisibleChange,v=t.onPopupMouseEnter,x=sr(t,bhe),k="".concat(n,"-dropdown"),O=o;S&&(O=S(o));var $=P.useMemo(function(){return y||yhe(w)},[y,w]),D=s?"".concat(k,"-").concat(s):u,V=typeof w=="number",I=P.useMemo(function(){return V?null:w===!1?"minWidth":"width"},[w,V]),N=l;V&&(N=Q(Q({},N),{},{width:w}));var F=P.useRef(null);return P.useImperativeHandle(r,function(){return{getPopupElement:function(){var M;return(M=F.current)===null||M===void 0?void 0:M.popupElement}}}),P.createElement(UA,je({},x,{showAction:p?["click"]:[],hideAction:p?["click"]:[],popupPlacement:b||(g==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:$,prefixCls:k,popupTransitionName:D,popup:P.createElement("div",{onMouseEnter:v},O),ref:F,stretch:I,popupAlign:E,popupVisible:a,getPopupContainer:_,popupClassName:ge(h,re({},"".concat(k,"-empty"),C)),popupStyle:N,getTriggerDOMNode:f,onPopupVisibleChange:p}),i)},P7=P.forwardRef(_he);process.env.NODE_ENV!=="production"&&(P7.displayName="SelectTrigger");function TO(e,t){var r=e.key,n;return"value"in e&&(n=e.value),r??(n!==void 0?n:"rc-index-key-".concat(t))}function X_(e){return typeof e<"u"&&!Number.isNaN(e)}function k7(e,t){var r=e||{},n=r.label,a=r.value,i=r.options,o=r.groupLabel,s=n||(t?"children":"label");return{label:s,value:a||"value",options:i||"options",groupLabel:o||s}}function whe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,a=[],i=k7(r,!1),o=i.label,s=i.value,u=i.options,l=i.groupLabel;function h(d,g){Array.isArray(d)&&d.forEach(function(b){if(g||!(u in b)){var y=b[s];a.push({key:TO(b,a.length),groupOption:g,data:b,label:b[o],value:y})}else{var w=b[l];w===void 0&&n&&(w=b.label),a.push({key:TO(b,a.length),group:!0,data:b,label:w}),h(b[u],!0)}})}return h(e,!1),a}function Z_(e){var t=Q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ut(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var xhe=function(t,r,n){if(!r||!r.length)return null;var a=!1,i=function s(u,l){var h=pP(l),d=h[0],g=h.slice(1);if(!d)return[u];var b=u.split(d);return a=a||b.length>1,b.reduce(function(y,w){return[].concat(tt(y),tt(s(w,g)))},[]).filter(Boolean)},o=i(t,r);return a?typeof n<"u"?o.slice(0,n):o:null},J2=P.createContext(null);function She(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return P.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(a){var i=a.label,o=a.value;return["number","string"].includes(pt(i))?i:o}).join(", ")),r.length>n?", ...":null)}var Che=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ehe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Qp=function(t){return t==="tags"||t==="multiple"},$7=P.forwardRef(function(e,t){var r,n=e.id,a=e.prefixCls,i=e.className,o=e.showSearch,s=e.tagRender,u=e.direction,l=e.omitDomProps,h=e.displayValues,d=e.onDisplayValuesChange,g=e.emptyOptions,b=e.notFoundContent,y=b===void 0?"Not Found":b,w=e.onClear,S=e.mode,E=e.disabled,_=e.loading,C=e.getInputElement,f=e.getRawInputElement,p=e.open,v=e.defaultOpen,x=e.onDropdownVisibleChange,k=e.activeValue,O=e.onActiveValueChange,$=e.activeDescendantId,D=e.searchValue,V=e.autoClearSearchValue,I=e.onSearch,N=e.onSearchSplit,F=e.tokenSeparators,T=e.allowClear,M=e.prefix,j=e.suffixIcon,H=e.clearIcon,z=e.OptionList,U=e.animation,G=e.transitionName,X=e.dropdownStyle,K=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,ae=e.dropdownRender,ie=e.dropdownAlign,de=e.placement,pe=e.builtinPlacements,be=e.getPopupContainer,me=e.showAction,ee=me===void 0?[]:me,ve=e.onFocus,se=e.onBlur,fe=e.onKeyUp,he=e.onKeyDown,ke=e.onMouseDown,Te=sr(e,Che),xe=Qp(S),$e=(o!==void 0?o:xe)||S==="combobox",Pe=Q({},Te);Ehe.forEach(function(Wt){delete Pe[Wt]}),l==null||l.forEach(function(Wt){delete Pe[Wt]});var Ne=P.useState(!1),Ee=we(Ne,2),Fe=Ee[0],rt=Ee[1];P.useEffect(function(){rt(LA())},[]);var dt=P.useRef(null),ct=P.useRef(null),bt=P.useRef(null),gt=P.useRef(null),Qe=P.useRef(null),_t=P.useRef(!1),It=Gfe(),ft=we(It,3),Be=ft[0],Ot=ft[1],Ve=ft[2];P.useImperativeHandle(t,function(){var Wt,Mt;return{focus:(Wt=gt.current)===null||Wt===void 0?void 0:Wt.focus,blur:(Mt=gt.current)===null||Mt===void 0?void 0:Mt.blur,scrollTo:function(an){var Fr;return(Fr=Qe.current)===null||Fr===void 0?void 0:Fr.scrollTo(an)},nativeElement:dt.current||ct.current}});var Ke=P.useMemo(function(){var Wt;if(S!=="combobox")return D;var Mt=(Wt=h[0])===null||Wt===void 0?void 0:Wt.value;return typeof Mt=="string"||typeof Mt=="number"?String(Mt):""},[D,S,h]),Rt=S==="combobox"&&typeof C=="function"&&C()||null,qt=typeof f=="function"&&f(),Pr=Sm(ct,qt==null||(r=qt.props)===null||r===void 0?void 0:r.ref),gr=P.useState(!1),Br=we(gr,2),wr=Br[0],cr=Br[1];fr(function(){cr(!0)},[]);var kr=_n(!1,{defaultValue:v,value:p}),Vt=we(kr,2),nt=Vt[0],Ye=Vt[1],Ue=wr?nt:!1,zt=!y&&g;(E||zt&&Ue&&S==="combobox")&&(Ue=!1);var er=zt?!1:Ue,Ze=P.useCallback(function(Wt){var Mt=Wt!==void 0?Wt:!Ue;E||(Ye(Mt),Ue!==Mt&&(x==null||x(Mt)))},[E,Ue,Ye,x]),De=P.useMemo(function(){return(F||[]).some(function(Wt){return[`
660
- `,`\r
661
- `].includes(Wt)})},[F]),qe=P.useContext(J2)||{},et=qe.maxCount,Je=qe.rawValues,Z=function(Mt,nn,an){if(!(xe&&X_(et)&&(Je==null?void 0:Je.size)>=et)){var Fr=!0,Yr=Mt;O==null||O(null);var Gn=xhe(Mt,F,X_(et)?et-Je.size:void 0),Cn=an?null:Gn;return S!=="combobox"&&Cn&&(Yr="",N==null||N(Cn),Ze(!1),Fr=!1),I&&Ke!==Yr&&I(Yr,{source:nn?"typing":"effect"}),Fr}},Se=function(Mt){!Mt||!Mt.trim()||I(Mt,{source:"submit"})};P.useEffect(function(){!Ue&&!xe&&S!=="combobox"&&Z("",!1,!1)},[Ue]),P.useEffect(function(){nt&&E&&Ye(!1),E&&!_t.current&&Ot(!1)},[E]);var Ae=S7(),Ge=we(Ae,2),at=Ge[0],ht=Ge[1],it=P.useRef(!1),wt=function(Mt){var nn=at(),an=Mt.key,Fr=an==="Enter";if(Fr&&(S!=="combobox"&&Mt.preventDefault(),Ue||Ze(!0)),ht(!!Ke),an==="Backspace"&&!nn&&xe&&!Ke&&h.length){for(var Yr=tt(h),Gn=null,Cn=Yr.length-1;Cn>=0;Cn-=1){var Kn=Yr[Cn];if(!Kn.disabled){Yr.splice(Cn,1),Gn=Kn;break}}Gn&&d(Yr,{type:"remove",values:[Gn]})}for(var Mn=arguments.length,ma=new Array(Mn>1?Mn-1:0),Ra=1;Ra<Mn;Ra++)ma[Ra-1]=arguments[Ra];if(Ue&&(!Fr||!it.current)){var Nn;Fr&&(it.current=!0),(Nn=Qe.current)===null||Nn===void 0||Nn.onKeyDown.apply(Nn,[Mt].concat(ma))}he==null||he.apply(void 0,[Mt].concat(ma))},dr=function(Mt){for(var nn=arguments.length,an=new Array(nn>1?nn-1:0),Fr=1;Fr<nn;Fr++)an[Fr-1]=arguments[Fr];if(Ue){var Yr;(Yr=Qe.current)===null||Yr===void 0||Yr.onKeyUp.apply(Yr,[Mt].concat(an))}Mt.key==="Enter"&&(it.current=!1),fe==null||fe.apply(void 0,[Mt].concat(an))},Ft=function(Mt){var nn=h.filter(function(an){return an!==Mt});d(nn,{type:"remove",values:[Mt]})},Lt=function(){it.current=!1},Ie=P.useRef(!1),We=function(){Ot(!0),E||(ve&&!Ie.current&&ve.apply(void 0,arguments),ee.includes("focus")&&Ze(!0)),Ie.current=!0},xt=function(){_t.current=!0,Ot(!1,function(){Ie.current=!1,_t.current=!1,Ze(!1)}),!E&&(Ke&&(S==="tags"?I(Ke,{source:"submit"}):S==="multiple"&&I("",{source:"blur"})),se&&se.apply(void 0,arguments))},vt=[];P.useEffect(function(){return function(){vt.forEach(function(Wt){return clearTimeout(Wt)}),vt.splice(0,vt.length)}},[]);var ir=function(Mt){var nn,an=Mt.target,Fr=(nn=bt.current)===null||nn===void 0?void 0:nn.getPopupElement();if(Fr&&Fr.contains(an)){var Yr=setTimeout(function(){var Mn=vt.indexOf(Yr);if(Mn!==-1&&vt.splice(Mn,1),Ve(),!Fe&&!Fr.contains(document.activeElement)){var ma;(ma=gt.current)===null||ma===void 0||ma.focus()}});vt.push(Yr)}for(var Gn=arguments.length,Cn=new Array(Gn>1?Gn-1:0),Kn=1;Kn<Gn;Kn++)Cn[Kn-1]=arguments[Kn];ke==null||ke.apply(void 0,[Mt].concat(Cn))},xn=P.useState({}),tn=we(xn,2),An=tn[1];function Sn(){An({})}var aa;qt&&(aa=function(Mt){Ze(Mt)}),Kfe(function(){var Wt;return[dt.current,(Wt=bt.current)===null||Wt===void 0?void 0:Wt.getPopupElement()]},er,Ze,!!qt);var mt=P.useMemo(function(){return Q(Q({},e),{},{notFoundContent:y,open:Ue,triggerOpen:er,id:n,showSearch:$e,multiple:xe,toggleOpen:Ze})},[e,y,er,Ue,n,$e,xe,Ze]),jt=!!j||_,vr;jt&&(vr=P.createElement(Gm,{className:ge("".concat(a,"-arrow"),re({},"".concat(a,"-arrow-loading"),_)),customizeIcon:j,customizeIconProps:{loading:_,searchValue:Ke,open:Ue,focused:Be,showSearch:$e}}));var Dn=function(){var Mt;w==null||w(),(Mt=gt.current)===null||Mt===void 0||Mt.focus(),d([],{type:"clear",values:h}),Z("",!1,!1)},rn=Wfe(a,Dn,h,T,H,E,Ke,S),Yn=rn.allowClear,yi=rn.clearIcon,Za=P.createElement(z,{ref:Qe}),pa=ge(a,i,re(re(re(re(re(re(re(re(re(re({},"".concat(a,"-focused"),Be),"".concat(a,"-multiple"),xe),"".concat(a,"-single"),!xe),"".concat(a,"-allow-clear"),T),"".concat(a,"-show-arrow"),jt),"".concat(a,"-disabled"),E),"".concat(a,"-loading"),_),"".concat(a,"-open"),Ue),"".concat(a,"-customize-input"),Rt),"".concat(a,"-show-search"),$e)),wo=P.createElement(P7,{ref:bt,disabled:E,prefixCls:a,visible:er,popupElement:Za,animation:U,transitionName:G,dropdownStyle:X,dropdownClassName:K,direction:u,dropdownMatchSelectWidth:ne,dropdownRender:ae,dropdownAlign:ie,placement:de,builtinPlacements:pe,getPopupContainer:be,empty:g,getTriggerDOMNode:function(Mt){return ct.current||Mt},onPopupVisibleChange:aa,onPopupMouseEnter:Sn},qt?P.cloneElement(qt,{ref:Pr}):P.createElement(T7,je({},e,{domRef:ct,prefixCls:a,inputElement:Rt,ref:gt,id:n,prefix:M,showSearch:$e,autoClearSearchValue:V,mode:S,activeDescendantId:$,tagRender:s,values:h,open:Ue,onToggleOpen:Ze,activeValue:k,searchValue:Ke,onSearch:Z,onSearchSubmit:Se,onRemove:Ft,tokenWithEnter:De,onInputBlur:Lt}))),Oa;return qt?Oa=wo:Oa=P.createElement("div",je({className:pa},Pe,{ref:dt,onMouseDown:ir,onKeyDown:wt,onKeyUp:dr,onFocus:We,onBlur:xt}),P.createElement(She,{visible:Be&&!Ue,values:h}),wo,vr,Yn&&yi),P.createElement(x7.Provider,{value:mt},Oa)});process.env.NODE_ENV!=="production"&&($7.displayName="BaseSelect");var Q2=function(){return null};Q2.isSelectOptGroup=!0;var ex=function(){return null};ex.isSelectOption=!0;var A7=P.forwardRef(function(e,t){var r=e.height,n=e.offsetY,a=e.offsetX,i=e.children,o=e.prefixCls,s=e.onInnerResize,u=e.innerProps,l=e.rtl,h=e.extra,d={},g={display:"flex",flexDirection:"column"};return n!==void 0&&(d={height:r,position:"relative",overflow:"hidden"},g=Q(Q({},g),{},re(re(re(re(re({transform:"translateY(".concat(n,"px)")},l?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),P.createElement("div",{style:d},P.createElement(_o,{onResize:function(y){var w=y.offsetHeight;w&&s&&s()}},P.createElement("div",je({style:g,className:ge(re({},"".concat(o,"-holder-inner"),o)),ref:t},u),i,h)))});A7.displayName="Filler";function Ohe(e){var t=e.children,r=e.setRef,n=P.useCallback(function(a){r(a)},[]);return P.cloneElement(t,{ref:n})}function Rhe(e,t,r,n,a,i,o,s){var u=s.getKey;return e.slice(t,r+1).map(function(l,h){var d=t+h,g=o(l,d,{style:{width:n},offsetX:a}),b=u(l);return P.createElement(Ohe,{key:b,setRef:function(w){return i(l,w)}},g)})}function The(e,t,r){var n=e.length,a=t.length,i,o;if(n===0&&a===0)return null;n<a?(i=e,o=t):(i=t,o=e);var s={__EMPTY_ITEM__:!0};function u(y){return y!==void 0?r(y):s}for(var l=null,h=Math.abs(n-a)!==1,d=0;d<o.length;d+=1){var g=u(i[d]),b=u(o[d]);if(g!==b){l=d,h=h||g!==u(o[d+1]);break}}return l===null?null:{index:l,multiple:h}}function Phe(e,t,r){var n=P.useState(e),a=we(n,2),i=a[0],o=a[1],s=P.useState(null),u=we(s,2),l=u[0],h=u[1];return P.useEffect(function(){var d=The(i||[],e||[],t);(d==null?void 0:d.index)!==void 0&&h(e[d.index]),o(e)},[e]),[l]}var PO=(typeof navigator>"u"?"undefined":pt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const D7=function(e,t,r,n){var a=A.useRef(!1),i=A.useRef(null);function o(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var s=A.useRef({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(u,l){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=u?l<0&&s.current.left||l>0&&s.current.right:l<0&&s.current.top||l>0&&s.current.bottom;return h&&d?(clearTimeout(i.current),a.current=!1):(!d||a.current)&&o(),!a.current&&d}};function khe(e,t,r,n,a,i,o){var s=A.useRef(0),u=A.useRef(null),l=A.useRef(null),h=A.useRef(!1),d=D7(t,r,n,a);function g(_,C){if(Zr.cancel(u.current),!d(!1,C)){var f=_;if(!f._virtualHandled)f._virtualHandled=!0;else return;s.current+=C,l.current=C,PO||f.preventDefault(),u.current=Zr(function(){var p=h.current?10:1;o(s.current*p,!1),s.current=0})}}function b(_,C){o(C,!0),PO||_.preventDefault()}var y=A.useRef(null),w=A.useRef(null);function S(_){if(e){Zr.cancel(w.current),w.current=Zr(function(){y.current=null},2);var C=_.deltaX,f=_.deltaY,p=_.shiftKey,v=C,x=f;(y.current==="sx"||!y.current&&p&&f&&!C)&&(v=f,x=0,y.current="sx");var k=Math.abs(v),O=Math.abs(x);y.current===null&&(y.current=i&&k>O?"x":"y"),y.current==="y"?g(_,x):b(_,v)}}function E(_){e&&(h.current=_.detail===l.current)}return[S,E]}function $he(e,t,r,n){var a=P.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=we(a,2),o=i[0],s=i[1],u=function(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h,g=o.get(h),b=o.get(d);if(g===void 0||b===void 0)for(var y=e.length,w=s.length;w<y;w+=1){var S,E=e[w],_=t(E);o.set(_,w);var C=(S=r.get(_))!==null&&S!==void 0?S:n;if(s[w]=(s[w-1]||0)+C,_===h&&(g=w),_===d&&(b=w),g!==void 0&&b!==void 0)break}return{top:s[g-1]||0,bottom:s[b]}};return u}var Ahe=function(){function e(){Un(this,e),re(this,"maps",void 0),re(this,"id",0),re(this,"diffKeys",new Set),this.maps=Object.create(null)}return qn(e,[{key:"set",value:function(r,n){this.maps[r]=n,this.id+=1,this.diffKeys.add(r)}},{key:"get",value:function(r){return this.maps[r]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),e}();function kO(e){var t=parseFloat(e);return isNaN(t)?0:t}function Dhe(e,t,r){var n=P.useState(0),a=we(n,2),i=a[0],o=a[1],s=A.useRef(new Map),u=A.useRef(new Ahe),l=A.useRef(0);function h(){l.current+=1}function d(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;h();var y=function(){var E=!1;s.current.forEach(function(_,C){if(_&&_.offsetParent){var f=of(_),p=f.offsetHeight,v=getComputedStyle(f),x=v.marginTop,k=v.marginBottom,O=kO(x),$=kO(k),D=p+O+$;u.current.get(C)!==D&&(u.current.set(C,D),E=!0)}}),E&&o(function(_){return _+1})};if(b)y();else{l.current+=1;var w=l.current;Promise.resolve().then(function(){w===l.current&&y()})}}function g(b,y){var w=e(b);s.current.get(w),y?(s.current.set(w,y),d()):s.current.delete(w)}return A.useEffect(function(){return h},[]),[g,d,u.current,i]}var $O=14/15;function Mhe(e,t,r){var n=A.useRef(!1),a=A.useRef(0),i=A.useRef(0),o=A.useRef(null),s=A.useRef(null),u,l=function(b){if(n.current){var y=Math.ceil(b.touches[0].pageX),w=Math.ceil(b.touches[0].pageY),S=a.current-y,E=i.current-w,_=Math.abs(S)>Math.abs(E);_?a.current=y:i.current=w;var C=r(_,_?S:E,!1,b);C&&b.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){_?S*=$O:E*=$O;var f=Math.floor(_?S:E);(!r(_,f,!0)||Math.abs(f)<=.1)&&clearInterval(s.current)},16))}},h=function(){n.current=!1,u()},d=function(b){u(),b.touches.length===1&&!n.current&&(n.current=!0,a.current=Math.ceil(b.touches[0].pageX),i.current=Math.ceil(b.touches[0].pageY),o.current=b.target,o.current.addEventListener("touchmove",l,{passive:!1}),o.current.addEventListener("touchend",h,{passive:!0}))};u=function(){o.current&&(o.current.removeEventListener("touchmove",l),o.current.removeEventListener("touchend",h))},fr(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var g;(g=t.current)===null||g===void 0||g.removeEventListener("touchstart",d),u(),clearInterval(s.current)}},[e])}function AO(e){return Math.floor(Math.pow(e,.5))}function J_(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Nhe(e,t,r){P.useEffect(function(){var n=t.current;if(e&&n){var a=!1,i,o,s=function(){Zr.cancel(i)},u=function g(){s(),i=Zr(function(){r(o),g()})},l=function(b){if(!b.target.draggable){var y=b;y._virtualHandled||(y._virtualHandled=!0,a=!0)}},h=function(){a=!1,s()},d=function(b){if(a){var y=J_(b,!1),w=n.getBoundingClientRect(),S=w.top,E=w.bottom;if(y<=S){var _=S-y;o=-AO(_),u()}else if(y>=E){var C=y-E;o=AO(C),u()}else s()}};return n.addEventListener("mousedown",l),n.ownerDocument.addEventListener("mouseup",h),n.ownerDocument.addEventListener("mousemove",d),function(){n.removeEventListener("mousedown",l),n.ownerDocument.removeEventListener("mouseup",h),n.ownerDocument.removeEventListener("mousemove",d),s()}}},[e])}var DO=10;function Ihe(e,t,r,n,a,i,o,s){var u=P.useRef(),l=P.useState(null),h=we(l,2),d=h[0],g=h[1];return fr(function(){if(d&&d.times<DO){if(!e.current){g(function(H){return Q({},H)});return}i();var b=d.targetAlign,y=d.originAlign,w=d.index,S=d.offset,E=e.current.clientHeight,_=!1,C=b,f=null;if(E){for(var p=b||y,v=0,x=0,k=0,O=Math.min(t.length-1,w),$=0;$<=O;$+=1){var D=a(t[$]);x=v;var V=r.get(D);k=x+(V===void 0?n:V),v=k}for(var I=p==="top"?S:E-S,N=O;N>=0;N-=1){var F=a(t[N]),T=r.get(F);if(T===void 0){_=!0;break}if(I-=T,I<=0)break}switch(p){case"top":f=x-S;break;case"bottom":f=k-E+S;break;default:{var M=e.current.scrollTop,j=M+E;x<M?C="top":k>j&&(C="bottom")}}f!==null&&o(f),f!==d.lastTop&&(_=!0)}_&&g(Q(Q({},d),{},{times:d.times+1,targetAlign:C,lastTop:f}))}else process.env.NODE_ENV!=="production"&&(d==null?void 0:d.times)===DO&&Ut(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[d,e.current]),function(b){if(b==null){s();return}if(Zr.cancel(u.current),typeof b=="number")o(b);else if(b&&pt(b)==="object"){var y,w=b.align;"index"in b?y=b.index:y=t.findIndex(function(_){return a(_)===b.key});var S=b.offset,E=S===void 0?0:S;g({times:0,index:y,offset:E,originAlign:w})}}}var Q_=P.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,a=e.scrollOffset,i=e.scrollRange,o=e.onStartMove,s=e.onStopMove,u=e.onScroll,l=e.horizontal,h=e.spinSize,d=e.containerSize,g=e.style,b=e.thumbStyle,y=e.showScrollBar,w=P.useState(!1),S=we(w,2),E=S[0],_=S[1],C=P.useState(null),f=we(C,2),p=f[0],v=f[1],x=P.useState(null),k=we(x,2),O=k[0],$=k[1],D=!n,V=P.useRef(),I=P.useRef(),N=P.useState(y),F=we(N,2),T=F[0],M=F[1],j=P.useRef(),H=function(){y===!0||y===!1||(clearTimeout(j.current),M(!0),j.current=setTimeout(function(){M(!1)},3e3))},z=i-d||0,U=d-h||0,G=P.useMemo(function(){if(a===0||z===0)return 0;var me=a/z;return me*U},[a,z,U]),X=function(ee){ee.stopPropagation(),ee.preventDefault()},K=P.useRef({top:G,dragging:E,pageY:p,startTop:O});K.current={top:G,dragging:E,pageY:p,startTop:O};var ne=function(ee){_(!0),v(J_(ee,l)),$(K.current.top),o(),ee.stopPropagation(),ee.preventDefault()};P.useEffect(function(){var me=function(fe){fe.preventDefault()},ee=V.current,ve=I.current;return ee.addEventListener("touchstart",me,{passive:!1}),ve.addEventListener("touchstart",ne,{passive:!1}),function(){ee.removeEventListener("touchstart",me),ve.removeEventListener("touchstart",ne)}},[]);var ae=P.useRef();ae.current=z;var ie=P.useRef();ie.current=U,P.useEffect(function(){if(E){var me,ee=function(fe){var he=K.current,ke=he.dragging,Te=he.pageY,xe=he.startTop;Zr.cancel(me);var $e=V.current.getBoundingClientRect(),Pe=d/(l?$e.width:$e.height);if(ke){var Ne=(J_(fe,l)-Te)*Pe,Ee=xe;!D&&l?Ee-=Ne:Ee+=Ne;var Fe=ae.current,rt=ie.current,dt=rt?Ee/rt:0,ct=Math.ceil(dt*Fe);ct=Math.max(ct,0),ct=Math.min(ct,Fe),me=Zr(function(){u(ct,l)})}},ve=function(){_(!1),s()};return window.addEventListener("mousemove",ee,{passive:!0}),window.addEventListener("touchmove",ee,{passive:!0}),window.addEventListener("mouseup",ve,{passive:!0}),window.addEventListener("touchend",ve,{passive:!0}),function(){window.removeEventListener("mousemove",ee),window.removeEventListener("touchmove",ee),window.removeEventListener("mouseup",ve),window.removeEventListener("touchend",ve),Zr.cancel(me)}}},[E]),P.useEffect(function(){return H(),function(){clearTimeout(j.current)}},[a]),P.useImperativeHandle(t,function(){return{delayHidden:H}});var de="".concat(r,"-scrollbar"),pe={position:"absolute",visibility:T?null:"hidden"},be={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return l?(pe.height=8,pe.left=0,pe.right=0,pe.bottom=0,be.height="100%",be.width=h,D?be.left=G:be.right=G):(pe.width=8,pe.top=0,pe.bottom=0,D?pe.right=0:pe.left=0,be.width="100%",be.height=h,be.top=G),P.createElement("div",{ref:V,className:ge(de,re(re(re({},"".concat(de,"-horizontal"),l),"".concat(de,"-vertical"),!l),"".concat(de,"-visible"),T)),style:Q(Q({},pe),g),onMouseDown:X,onMouseMove:H},P.createElement("div",{ref:I,className:ge("".concat(de,"-thumb"),re({},"".concat(de,"-thumb-moving"),E)),style:Q(Q({},be),b),onMouseDown:ne}))});process.env.NODE_ENV!=="production"&&(Q_.displayName="ScrollBar");var Fhe=20;function MO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,Fhe),Math.floor(r)}var jhe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Lhe=[],zhe={overflowY:"auto",overflowAnchor:"none"};function Bhe(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,a=e.className,i=e.height,o=e.itemHeight,s=e.fullHeight,u=s===void 0?!0:s,l=e.style,h=e.data,d=e.children,g=e.itemKey,b=e.virtual,y=e.direction,w=e.scrollWidth,S=e.component,E=S===void 0?"div":S,_=e.onScroll,C=e.onVirtualScroll,f=e.onVisibleChange,p=e.innerProps,v=e.extraRender,x=e.styles,k=e.showScrollBar,O=k===void 0?"optional":k,$=sr(e,jhe),D=P.useCallback(function(Ie){return typeof g=="function"?g(Ie):Ie==null?void 0:Ie[g]},[g]),V=Dhe(D),I=we(V,4),N=I[0],F=I[1],T=I[2],M=I[3],j=!!(b!==!1&&i&&o),H=P.useMemo(function(){return Object.values(T.maps).reduce(function(Ie,We){return Ie+We},0)},[T.id,T.maps]),z=j&&h&&(Math.max(o*h.length,H)>i||!!w),U=y==="rtl",G=ge(n,re({},"".concat(n,"-rtl"),U),a),X=h||Lhe,K=A.useRef(),ne=A.useRef(),ae=A.useRef(),ie=A.useState(0),de=we(ie,2),pe=de[0],be=de[1],me=A.useState(0),ee=we(me,2),ve=ee[0],se=ee[1],fe=A.useState(!1),he=we(fe,2),ke=he[0],Te=he[1],xe=function(){Te(!0)},$e=function(){Te(!1)},Pe={getKey:D};function Ne(Ie){be(function(We){var xt;typeof Ie=="function"?xt=Ie(We):xt=Ie;var vt=cr(xt);return K.current.scrollTop=vt,vt})}var Ee=A.useRef({start:0,end:X.length}),Fe=A.useRef(),rt=Phe(X,D),dt=we(rt,1),ct=dt[0];Fe.current=ct;var bt=P.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:X.length-1,offset:void 0};if(!z){var Ie;return{scrollHeight:((Ie=ne.current)===null||Ie===void 0?void 0:Ie.offsetHeight)||0,start:0,end:X.length-1,offset:void 0}}for(var We=0,xt,vt,ir,xn=X.length,tn=0;tn<xn;tn+=1){var An=X[tn],Sn=D(An),aa=T.get(Sn),mt=We+(aa===void 0?o:aa);mt>=pe&&xt===void 0&&(xt=tn,vt=We),mt>pe+i&&ir===void 0&&(ir=tn),We=mt}return xt===void 0&&(xt=0,vt=0,ir=Math.ceil(i/o)),ir===void 0&&(ir=X.length-1),ir=Math.min(ir+1,X.length-1),{scrollHeight:We,start:xt,end:ir,offset:vt}},[z,j,pe,X,M,i]),gt=bt.scrollHeight,Qe=bt.start,_t=bt.end,It=bt.offset;Ee.current.start=Qe,Ee.current.end=_t,P.useLayoutEffect(function(){var Ie=T.getRecord();if(Ie.size===1){var We=Array.from(Ie)[0],xt=D(X[Qe]);if(xt===We){var vt=T.get(We),ir=vt-o;Ne(function(xn){return xn+ir})}}T.resetRecord()},[gt]);var ft=P.useState({width:0,height:i}),Be=we(ft,2),Ot=Be[0],Ve=Be[1],Ke=function(We){Ve({width:We.offsetWidth,height:We.offsetHeight})},Rt=A.useRef(),qt=A.useRef(),Pr=P.useMemo(function(){return MO(Ot.width,w)},[Ot.width,w]),gr=P.useMemo(function(){return MO(Ot.height,gt)},[Ot.height,gt]),Br=gt-i,wr=A.useRef(Br);wr.current=Br;function cr(Ie){var We=Ie;return Number.isNaN(wr.current)||(We=Math.min(We,wr.current)),We=Math.max(We,0),We}var kr=pe<=0,Vt=pe>=Br,nt=ve<=0,Ye=ve>=w,Ue=D7(kr,Vt,nt,Ye),zt=function(){return{x:U?-ve:ve,y:pe}},er=A.useRef(zt()),Ze=Xr(function(Ie){if(C){var We=Q(Q({},zt()),Ie);(er.current.x!==We.x||er.current.y!==We.y)&&(C(We),er.current=We)}});function De(Ie,We){var xt=Ie;We?(lo.flushSync(function(){se(xt)}),Ze()):Ne(xt)}function qe(Ie){var We=Ie.currentTarget.scrollTop;We!==pe&&Ne(We),_==null||_(Ie),Ze()}var et=function(We){var xt=We,vt=w?w-Ot.width:0;return xt=Math.max(xt,0),xt=Math.min(xt,vt),xt},Je=Xr(function(Ie,We){We?(lo.flushSync(function(){se(function(xt){var vt=xt+(U?-Ie:Ie);return et(vt)})}),Ze()):Ne(function(xt){var vt=xt+Ie;return vt})}),Z=khe(j,kr,Vt,nt,Ye,!!w,Je),Se=we(Z,2),Ae=Se[0],Ge=Se[1];Mhe(j,K,function(Ie,We,xt,vt){var ir=vt;return Ue(Ie,We,xt)?!1:!ir||!ir._virtualHandled?(ir&&(ir._virtualHandled=!0),Ae({preventDefault:function(){},deltaX:Ie?We:0,deltaY:Ie?0:We}),!0):!1}),Nhe(z,K,function(Ie){Ne(function(We){return We+Ie})}),fr(function(){function Ie(xt){var vt=kr&&xt.detail<0,ir=Vt&&xt.detail>0;j&&!vt&&!ir&&xt.preventDefault()}var We=K.current;return We.addEventListener("wheel",Ae,{passive:!1}),We.addEventListener("DOMMouseScroll",Ge,{passive:!0}),We.addEventListener("MozMousePixelScroll",Ie,{passive:!1}),function(){We.removeEventListener("wheel",Ae),We.removeEventListener("DOMMouseScroll",Ge),We.removeEventListener("MozMousePixelScroll",Ie)}},[j,kr,Vt]),fr(function(){if(w){var Ie=et(ve);se(Ie),Ze({x:Ie})}},[Ot.width,w]);var at=function(){var We,xt;(We=Rt.current)===null||We===void 0||We.delayHidden(),(xt=qt.current)===null||xt===void 0||xt.delayHidden()},ht=Ihe(K,X,T,o,D,function(){return F(!0)},Ne,at);P.useImperativeHandle(t,function(){return{nativeElement:ae.current,getScrollInfo:zt,scrollTo:function(We){function xt(vt){return vt&&pt(vt)==="object"&&("left"in vt||"top"in vt)}xt(We)?(We.left!==void 0&&se(et(We.left)),ht(We.top)):ht(We)}}}),fr(function(){if(f){var Ie=X.slice(Qe,_t+1);f(Ie,X)}},[Qe,_t,X]);var it=$he(X,D,T,o),wt=v==null?void 0:v({start:Qe,end:_t,virtual:z,offsetX:ve,offsetY:It,rtl:U,getSize:it}),dr=Rhe(X,Qe,_t,w,ve,N,d,Pe),Ft=null;i&&(Ft=Q(re({},u?"height":"maxHeight",i),zhe),j&&(Ft.overflowY="hidden",w&&(Ft.overflowX="hidden"),ke&&(Ft.pointerEvents="none")));var Lt={};return U&&(Lt.dir="rtl"),P.createElement("div",je({ref:ae,style:Q(Q({},l),{},{position:"relative"}),className:G},Lt,$),P.createElement(_o,{onResize:Ke},P.createElement(E,{className:"".concat(n,"-holder"),style:Ft,ref:K,onScroll:qe,onMouseEnter:at},P.createElement(A7,{prefixCls:n,height:gt,offsetX:ve,offsetY:It,scrollWidth:w,onInnerResize:F,ref:ne,innerProps:p,rtl:U,extra:wt},dr))),z&&gt>i&&P.createElement(Q_,{ref:Rt,prefixCls:n,scrollOffset:pe,scrollRange:gt,rtl:U,onScroll:De,onStartMove:xe,onStopMove:$e,spinSize:gr,containerSize:Ot.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb,showScrollBar:O}),z&&w>Ot.width&&P.createElement(Q_,{ref:qt,prefixCls:n,scrollOffset:ve,scrollRange:w,rtl:U,onScroll:De,onStartMove:xe,onStopMove:$e,spinSize:Pr,containerSize:Ot.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb,showScrollBar:O}))}var M7=P.forwardRef(Bhe);M7.displayName="List";function Hhe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Vhe=["disabled","title","children","style","className"];function NO(e){return typeof e=="string"||typeof e=="number"}var Uhe=function(t,r){var n=Yfe(),a=n.prefixCls,i=n.id,o=n.open,s=n.multiple,u=n.mode,l=n.searchValue,h=n.toggleOpen,d=n.notFoundContent,g=n.onPopupScroll,b=P.useContext(J2),y=b.maxCount,w=b.flattenOptions,S=b.onActiveValue,E=b.defaultActiveFirstOption,_=b.onSelect,C=b.menuItemSelectedIcon,f=b.rawValues,p=b.fieldNames,v=b.virtual,x=b.direction,k=b.listHeight,O=b.listItemHeight,$=b.optionRender,D="".concat(a,"-item"),V=xm(function(){return w},[o,w],function(me,ee){return ee[0]&&me[1]!==ee[1]}),I=P.useRef(null),N=P.useMemo(function(){return s&&X_(y)&&(f==null?void 0:f.size)>=y},[s,y,f==null?void 0:f.size]),F=function(ee){ee.preventDefault()},T=function(ee){var ve;(ve=I.current)===null||ve===void 0||ve.scrollTo(typeof ee=="number"?{index:ee}:ee)},M=P.useCallback(function(me){return u==="combobox"?!1:f.has(me)},[u,tt(f).toString(),f.size]),j=function(ee){for(var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,se=V.length,fe=0;fe<se;fe+=1){var he=(ee+fe*ve+se)%se,ke=V[he]||{},Te=ke.group,xe=ke.data;if(!Te&&!(xe!=null&&xe.disabled)&&(M(xe.value)||!N))return he}return-1},H=P.useState(function(){return j(0)}),z=we(H,2),U=z[0],G=z[1],X=function(ee){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;G(ee);var se={source:ve?"keyboard":"mouse"},fe=V[ee];if(!fe){S(null,-1,se);return}S(fe.value,ee,se)};A.useEffect(function(){X(E!==!1?j(0):-1)},[V.length,l]);var K=P.useCallback(function(me){return u==="combobox"?String(me).toLowerCase()===l.toLowerCase():f.has(me)},[u,l,tt(f).toString(),f.size]);A.useEffect(function(){var me=setTimeout(function(){if(!s&&o&&f.size===1){var ve=Array.from(f)[0],se=V.findIndex(function(fe){var he=fe.data;return he.value===ve});se!==-1&&(X(se),T(se))}});if(o){var ee;(ee=I.current)===null||ee===void 0||ee.scrollTo(void 0)}return function(){return clearTimeout(me)}},[o,l]);var ne=function(ee){ee!==void 0&&_(ee,{selected:!f.has(ee)}),s||h(!1)};if(P.useImperativeHandle(r,function(){return{onKeyDown:function(ee){var ve=ee.which,se=ee.ctrlKey;switch(ve){case Ct.N:case Ct.P:case Ct.UP:case Ct.DOWN:{var fe=0;if(ve===Ct.UP?fe=-1:ve===Ct.DOWN?fe=1:Hhe()&&se&&(ve===Ct.N?fe=1:ve===Ct.P&&(fe=-1)),fe!==0){var he=j(U+fe,fe);T(he),X(he,!0)}break}case Ct.TAB:case Ct.ENTER:{var ke,Te=V[U];Te&&!(Te!=null&&(ke=Te.data)!==null&&ke!==void 0&&ke.disabled)&&!N?ne(Te.value):ne(void 0),o&&ee.preventDefault();break}case Ct.ESC:h(!1),o&&ee.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ee){T(ee)}}}),V.length===0)return P.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(D,"-empty"),onMouseDown:F},d);var ae=Object.keys(p).map(function(me){return p[me]}),ie=function(ee){return ee.label};function de(me,ee){var ve=me.group;return{role:ve?"presentation":"option",id:"".concat(i,"_list_").concat(ee)}}var pe=function(ee){var ve=V[ee];if(!ve)return null;var se=ve.data||{},fe=se.value,he=ve.group,ke=po(se,!0),Te=ie(ve);return ve?P.createElement("div",je({"aria-label":typeof Te=="string"&&!he?Te:null},ke,{key:ee},de(ve,ee),{"aria-selected":K(fe)}),fe):null},be={role:"listbox",id:"".concat(i,"_list")};return P.createElement(P.Fragment,null,v&&P.createElement("div",je({},be,{style:{height:0,width:0,overflow:"hidden"}}),pe(U-1),pe(U),pe(U+1)),P.createElement(M7,{itemKey:"key",ref:I,data:V,height:k,itemHeight:O,fullHeight:!1,onMouseDown:F,onScroll:g,virtual:v,direction:x,innerProps:v?null:be},function(me,ee){var ve=me.group,se=me.groupOption,fe=me.data,he=me.label,ke=me.value,Te=fe.key;if(ve){var xe,$e=(xe=fe.title)!==null&&xe!==void 0?xe:NO(he)?he.toString():void 0;return P.createElement("div",{className:ge(D,"".concat(D,"-group"),fe.className),title:$e},he!==void 0?he:Te)}var Pe=fe.disabled,Ne=fe.title;fe.children;var Ee=fe.style,Fe=fe.className,rt=sr(fe,Vhe),dt=dh(rt,ae),ct=M(ke),bt=Pe||!ct&&N,gt="".concat(D,"-option"),Qe=ge(D,gt,Fe,re(re(re(re({},"".concat(gt,"-grouped"),se),"".concat(gt,"-active"),U===ee&&!bt),"".concat(gt,"-disabled"),bt),"".concat(gt,"-selected"),ct)),_t=ie(me),It=!C||typeof C=="function"||ct,ft=typeof _t=="number"?_t:_t||ke,Be=NO(ft)?ft.toString():void 0;return Ne!==void 0&&(Be=Ne),P.createElement("div",je({},po(dt),v?{}:de(me,ee),{"aria-selected":K(ke),className:Qe,title:Be,onMouseMove:function(){U===ee||bt||X(ee)},onClick:function(){bt||ne(ke)},style:Ee}),P.createElement("div",{className:"".concat(gt,"-content")},typeof $=="function"?$(me,{index:ee}):ft),P.isValidElement(C)||ct,It&&P.createElement(Gm,{className:"".concat(D,"-option-state"),customizeIcon:C,customizeIconProps:{value:ke,disabled:bt,isSelected:ct}},ct?"✓":null))}))},N7=P.forwardRef(Uhe);process.env.NODE_ENV!=="production"&&(N7.displayName="OptionList");const qhe=function(e,t){var r=P.useRef({values:new Map,options:new Map}),n=P.useMemo(function(){var i=r.current,o=i.values,s=i.options,u=e.map(function(d){if(d.label===void 0){var g;return Q(Q({},d),{},{label:(g=o.get(d.value))===null||g===void 0?void 0:g.label})}return d}),l=new Map,h=new Map;return u.forEach(function(d){l.set(d.value,d),h.set(d.value,t.get(d.value)||s.get(d.value))}),r.current.values=l,r.current.options=h,u},[e,t]),a=P.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,a]};function Wb(e,t){return Z2(e).join("").toUpperCase().includes(t)}const Whe=function(e,t,r,n,a){return P.useMemo(function(){if(!r||n===!1)return e;var i=t.options,o=t.label,s=t.value,u=[],l=typeof n=="function",h=r.toUpperCase(),d=l?n:function(b,y){return a?Wb(y[a],h):y[i]?Wb(y[o!=="children"?o:"label"],h):Wb(y[s],h)},g=l?function(b){return Z_(b)}:function(b){return b};return e.forEach(function(b){if(b[i]){var y=d(r,g(b));if(y)u.push(b);else{var w=b[i].filter(function(S){return d(r,g(S))});w.length&&u.push(Q(Q({},b),{},re({},i,w)))}return}d(r,g(b))&&u.push(b)}),u},[e,n,a,r,t])};var IO=0,Yhe=process.env.NODE_ENV!=="test"&&ea();function Ghe(){var e;return Yhe?(e=IO,IO+=1):e="TEST_OR_SSR",e}function Khe(e){var t=P.useState(),r=we(t,2),n=r[0],a=r[1];return P.useEffect(function(){a("rc_select_".concat(Ghe()))},[]),e||n}var Xhe=["children","value"],Zhe=["children"];function Jhe(e){var t=e,r=t.key,n=t.props,a=n.children,i=n.value,o=sr(n,Xhe);return Q({key:r,value:i!==void 0?i:r,children:a},o)}function tx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return mo(e).map(function(r,n){if(!P.isValidElement(r)||!r.type)return null;var a=r,i=a.type.isSelectOptGroup,o=a.key,s=a.props,u=s.children,l=sr(s,Zhe);return t||!i?Jhe(r):Q(Q({key:"__RC_SELECT_GRP__".concat(o===null?n:o,"__"),label:o},l),{},{options:tx(u)})}).filter(function(r){return r})}var Qhe=function(t,r,n,a,i){return P.useMemo(function(){var o=t,s=!t;s&&(o=tx(r));var u=new Map,l=new Map,h=function(b,y,w){w&&typeof w=="string"&&b.set(y[w],y)},d=function g(b){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=0;w<b.length;w+=1){var S=b[w];!S[n.options]||y?(u.set(S[n.value],S),h(l,S,n.label),h(l,S,a),h(l,S,i)):g(S[n.options],!0)}};return d(o),{options:o,valueOptions:u,labelOptions:l}},[t,r,n,a,i])};function FO(e){var t=P.useRef();t.current=e;var r=P.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}function e0e(e){var t=e.mode,r=e.options,n=e.children,a=e.backfill,i=e.allowClear,o=e.placeholder,s=e.getInputElement,u=e.showSearch,l=e.onSearch,h=e.defaultOpen,d=e.autoFocus,g=e.labelInValue,b=e.value,y=e.inputValue,w=e.optionLabelProp,S=Qp(t),E=u!==void 0?u:S||t==="combobox",_=r||tx(n);if(Ut(t!=="tags"||_.every(function(v){return!v.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var C=_.some(function(v){return v.options?v.options.some(function(x){return typeof("value"in x?x.value:x.key)=="number"}):typeof("value"in v?v.value:v.key)=="number"});Ut(!C,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Ut(t!=="combobox"||!w,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Ut(t==="combobox"||!a,"`backfill` only works with `combobox` mode."),Ut(t==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),ay(t!=="combobox"||!s||!i||!o,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),l&&!E&&t!=="combobox"&&t!=="tags"&&Ut(!1,"`onSearch` should work with `showSearch` instead of use alone."),ay(!h||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),b!=null){var f=Z2(b);Ut(!g||f.every(function(v){return pt(v)==="object"&&("key"in v||"value"in v)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Ut(!S||Array.isArray(b),"`value` should be array when `mode` is `multiple` or `tags`")}if(n){var p=null;mo(n).some(function(v){if(!P.isValidElement(v)||!v.type)return!1;var x=v,k=x.type;if(k.isSelectOption)return!1;if(k.isSelectOptGroup){var O=mo(v.props.children).every(function($){return!P.isValidElement($)||!v.type||$.type.isSelectOption?!0:(p=$.type,!1)});return!O}return p=k,!0}),p&&Ut(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(p.displayName||p.name||p,"`.")),Ut(y===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function t0e(e,t){if(e){var r=function n(a){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=0;o<a.length;o++){var s=a[o];if(s[t==null?void 0:t.value]===null)return Ut(!1,"`value` in Select options should not be `null`."),!0;if(!i&&Array.isArray(s[t==null?void 0:t.options])&&n(s[t==null?void 0:t.options],!0))break}};r(e)}}var r0e=["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","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],n0e=["inputValue"];function a0e(e){return!e||pt(e)!=="object"}var I7=P.forwardRef(function(e,t){var r=e.id,n=e.mode,a=e.prefixCls,i=a===void 0?"rc-select":a,o=e.backfill,s=e.fieldNames,u=e.inputValue,l=e.searchValue,h=e.onSearch,d=e.autoClearSearchValue,g=d===void 0?!0:d,b=e.onSelect,y=e.onDeselect,w=e.dropdownMatchSelectWidth,S=w===void 0?!0:w,E=e.filterOption,_=e.filterSort,C=e.optionFilterProp,f=e.optionLabelProp,p=e.options,v=e.optionRender,x=e.children,k=e.defaultActiveFirstOption,O=e.menuItemSelectedIcon,$=e.virtual,D=e.direction,V=e.listHeight,I=V===void 0?200:V,N=e.listItemHeight,F=N===void 0?20:N,T=e.labelRender,M=e.value,j=e.defaultValue,H=e.labelInValue,z=e.onChange,U=e.maxCount,G=sr(e,r0e),X=Khe(r),K=Qp(n),ne=!!(!p&&x),ae=P.useMemo(function(){return E===void 0&&n==="combobox"?!1:E},[E,n]),ie=P.useMemo(function(){return k7(s,ne)},[JSON.stringify(s),ne]),de=_n("",{value:l!==void 0?l:u,postState:function(De){return De||""}}),pe=we(de,2),be=pe[0],me=pe[1],ee=Qhe(p,x,ie,C,f),ve=ee.valueOptions,se=ee.labelOptions,fe=ee.options,he=P.useCallback(function(Ze){var De=Z2(Ze);return De.map(function(qe){var et,Je,Z,Se,Ae;if(a0e(qe))et=qe;else{var Ge;Z=qe.key,Je=qe.label,et=(Ge=qe.value)!==null&&Ge!==void 0?Ge:Z}var at=ve.get(et);if(at){var ht;if(Je===void 0&&(Je=at==null?void 0:at[f||ie.label]),Z===void 0&&(Z=(ht=at==null?void 0:at.key)!==null&&ht!==void 0?ht:et),Se=at==null?void 0:at.disabled,Ae=at==null?void 0:at.title,process.env.NODE_ENV!=="production"&&!f){var it=at==null?void 0:at[ie.label];it!==void 0&&!P.isValidElement(it)&&!P.isValidElement(Je)&&it!==Je&&Ut(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:Je,value:et,key:Z,disabled:Se,title:Ae}})},[ie,f,ve]),ke=_n(j,{value:M}),Te=we(ke,2),xe=Te[0],$e=Te[1],Pe=P.useMemo(function(){var Ze,De=K&&xe===null?[]:xe,qe=he(De);return n==="combobox"&&fhe((Ze=qe[0])===null||Ze===void 0?void 0:Ze.value)?[]:qe},[xe,he,n,K]),Ne=qhe(Pe,ve),Ee=we(Ne,2),Fe=Ee[0],rt=Ee[1],dt=P.useMemo(function(){if(!n&&Fe.length===1){var Ze=Fe[0];if(Ze.value===null&&(Ze.label===null||Ze.label===void 0))return[]}return Fe.map(function(De){var qe;return Q(Q({},De),{},{label:(qe=typeof T=="function"?T(De):De.label)!==null&&qe!==void 0?qe:De.value})})},[n,Fe,T]),ct=P.useMemo(function(){return new Set(Fe.map(function(Ze){return Ze.value}))},[Fe]);P.useEffect(function(){if(n==="combobox"){var Ze,De=(Ze=Fe[0])===null||Ze===void 0?void 0:Ze.value;me(dhe(De)?String(De):"")}},[Fe]);var bt=FO(function(Ze,De){var qe=De??Ze;return re(re({},ie.value,Ze),ie.label,qe)}),gt=P.useMemo(function(){if(n!=="tags")return fe;var Ze=tt(fe),De=function(et){return ve.has(et)};return tt(Fe).sort(function(qe,et){return qe.value<et.value?-1:1}).forEach(function(qe){var et=qe.value;De(et)||Ze.push(bt(et,qe.label))}),Ze},[bt,fe,ve,Fe,n]),Qe=Whe(gt,ie,be,ae,C),_t=P.useMemo(function(){return n!=="tags"||!be||Qe.some(function(Ze){return Ze[C||"value"]===be})||Qe.some(function(Ze){return Ze[ie.value]===be})?Qe:[bt(be)].concat(tt(Qe))},[bt,C,n,Qe,be,ie]),It=function Ze(De){var qe=tt(De).sort(function(et,Je){return _(et,Je,{searchValue:be})});return qe.map(function(et){return Array.isArray(et.options)?Q(Q({},et),{},{options:et.options.length>0?Ze(et.options):et.options}):et})},ft=P.useMemo(function(){return _?It(_t):_t},[_t,_,be]),Be=P.useMemo(function(){return whe(ft,{fieldNames:ie,childrenAsData:ne})},[ft,ie,ne]),Ot=function(De){var qe=he(De);if($e(qe),z&&(qe.length!==Fe.length||qe.some(function(Z,Se){var Ae;return((Ae=Fe[Se])===null||Ae===void 0?void 0:Ae.value)!==(Z==null?void 0:Z.value)}))){var et=H?qe:qe.map(function(Z){return Z.value}),Je=qe.map(function(Z){return Z_(rt(Z.value))});z(K?et:et[0],K?Je:Je[0])}},Ve=P.useState(null),Ke=we(Ve,2),Rt=Ke[0],qt=Ke[1],Pr=P.useState(0),gr=we(Pr,2),Br=gr[0],wr=gr[1],cr=k!==void 0?k:n!=="combobox",kr=P.useCallback(function(Ze,De){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},et=qe.source,Je=et===void 0?"keyboard":et;wr(De),o&&n==="combobox"&&Ze!==null&&Je==="keyboard"&&qt(String(Ze))},[o,n]),Vt=function(De,qe,et){var Je=function(){var Ft,Lt=rt(De);return[H?{label:Lt==null?void 0:Lt[ie.label],value:De,key:(Ft=Lt==null?void 0:Lt.key)!==null&&Ft!==void 0?Ft:De}:De,Z_(Lt)]};if(qe&&b){var Z=Je(),Se=we(Z,2),Ae=Se[0],Ge=Se[1];b(Ae,Ge)}else if(!qe&&y&&et!=="clear"){var at=Je(),ht=we(at,2),it=ht[0],wt=ht[1];y(it,wt)}},nt=FO(function(Ze,De){var qe,et=K?De.selected:!0;et?qe=K?[].concat(tt(Fe),[Ze]):[Ze]:qe=Fe.filter(function(Je){return Je.value!==Ze}),Ot(qe),Vt(Ze,et),n==="combobox"?qt(""):(!Qp||g)&&(me(""),qt(""))}),Ye=function(De,qe){Ot(De);var et=qe.type,Je=qe.values;(et==="remove"||et==="clear")&&Je.forEach(function(Z){Vt(Z.value,!1,et)})},Ue=function(De,qe){if(me(De),qt(null),qe.source==="submit"){var et=(De||"").trim();if(et){var Je=Array.from(new Set([].concat(tt(ct),[et])));Ot(Je),Vt(et,!0),me("")}return}qe.source!=="blur"&&(n==="combobox"&&Ot(De),h==null||h(De))},zt=function(De){var qe=De;n!=="tags"&&(qe=De.map(function(Je){var Z=se.get(Je);return Z==null?void 0:Z.value}).filter(function(Je){return Je!==void 0}));var et=Array.from(new Set([].concat(tt(ct),tt(qe))));Ot(et),et.forEach(function(Je){Vt(Je,!0)})},er=P.useMemo(function(){var Ze=$!==!1&&S!==!1;return Q(Q({},ee),{},{flattenOptions:Be,onActiveValue:kr,defaultActiveFirstOption:cr,onSelect:nt,menuItemSelectedIcon:O,rawValues:ct,fieldNames:ie,virtual:Ze,direction:D,listHeight:I,listItemHeight:F,childrenAsData:ne,maxCount:U,optionRender:v})},[U,ee,Be,kr,cr,nt,O,ct,ie,$,S,D,I,F,ne,v]);return process.env.NODE_ENV!=="production"&&(e0e(e),t0e(fe,ie)),P.createElement(J2.Provider,{value:er},P.createElement($7,je({},G,{id:X,prefixCls:i,ref:t,omitDomProps:n0e,mode:n,displayValues:dt,onDisplayValuesChange:Ye,direction:D,searchValue:be,onSearch:Ue,autoClearSearchValue:g,onSearchSplit:zt,dropdownMatchSelectWidth:S,OptionList:N7,emptyOptions:!Be.length,activeValue:Rt,activeDescendantId:"".concat(X,"_list_").concat(Br)})))});process.env.NODE_ENV!=="production"&&(I7.displayName="Select");var rx=I7;rx.Option=ex;rx.OptGroup=Q2;function i0e(e){return t=>P.createElement(Iu,{theme:{token:{motion:!1,zIndexPopupBase:0}}},P.createElement(e,Object.assign({},t)))}const o0e=(e,t,r,n,a)=>i0e(o=>{const{prefixCls:s,style:u}=o,l=P.useRef(null),[h,d]=P.useState(0),[g,b]=P.useState(0),[y,w]=_n(!1,{value:o.open}),{getPrefixCls:S}=P.useContext(kn),E=S("select",s);P.useEffect(()=>{if(w(!0),typeof ResizeObserver<"u"){const f=new ResizeObserver(v=>{const x=v[0].target;d(x.offsetHeight+8),b(x.offsetWidth)}),p=setInterval(()=>{var v;const x=`.${E}-dropdown`,k=(v=l.current)===null||v===void 0?void 0:v.querySelector(x);k&&(clearInterval(p),f.observe(k))},10);return()=>{clearInterval(p),f.disconnect()}}},[]);let _=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},u),{margin:0}),open:y,visible:y,getPopupContainer:()=>l.current});Object.assign(_,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:h,position:"relative",minWidth:g};return P.createElement("div",{ref:l,style:C},P.createElement(e,Object.assign({},_)))}),F7=()=>{const[,e]=bi(),[t]=vc("Empty"),n=new Rr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return P.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},P.createElement("title",null,(t==null?void 0:t.description)||"Empty"),P.createElement("g",{fill:"none",fillRule:"evenodd"},P.createElement("g",{transform:"translate(24 31.67)"},P.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),P.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"}),P.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)"}),P.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"}),P.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"})),P.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"}),P.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},P.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),P.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(F7.displayName="EmptyImage");const j7=()=>{const[,e]=bi(),[t]=vc("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:o,shadowColor:s,contentColor:u}=A.useMemo(()=>({borderColor:new Rr(r).onBackground(i).toHexString(),shadowColor:new Rr(n).onBackground(i).toHexString(),contentColor:new Rr(a).onBackground(i).toHexString()}),[r,n,a,i]);return P.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},P.createElement("title",null,(t==null?void 0:t.description)||"Empty"),P.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},P.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),P.createElement("g",{fillRule:"nonzero",stroke:o},P.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"}),P.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:u}))))};process.env.NODE_ENV!=="production"&&(j7.displayName="SimpleImage");const s0e=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:a,fontSize:i,lineHeight:o}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},u0e=ls("Empty",e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,a=Jr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return[s0e(a)]});var l0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const L7=P.createElement(F7,null),z7=P.createElement(j7,null),Ps=e=>{const{className:t,rootClassName:r,prefixCls:n,image:a=L7,description:i,children:o,imageStyle:s,style:u,classNames:l,styles:h}=e,d=l0e(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:g,direction:b,className:y,style:w,classNames:S,styles:E}=Nu("empty"),_=g("empty",n),[C,f,p]=u0e(_),[v]=vc("Empty"),x=typeof i<"u"?i:v==null?void 0:v.description,k=typeof x=="string"?x:"empty";let O=null;if(typeof a=="string"?O=P.createElement("img",{alt:k,src:a}):O=a,process.env.NODE_ENV!=="production"){const $=na("Empty");[["imageStyle","styles: { image: {} }"]].forEach(D=>{let[V,I]=D;$.deprecated(!(V in e),V,I)})}return C(P.createElement("div",Object.assign({className:ge(f,p,_,y,{[`${_}-normal`]:a===z7,[`${_}-rtl`]:b==="rtl"},t,r,S.root,l==null?void 0:l.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),w),h==null?void 0:h.root),u)},d),P.createElement("div",{className:ge(`${_}-image`,S.image,l==null?void 0:l.image),style:Object.assign(Object.assign(Object.assign({},s),E.image),h==null?void 0:h.image)},O),x&&P.createElement("div",{className:ge(`${_}-description`,S.description,l==null?void 0:l.description),style:Object.assign(Object.assign({},E.description),h==null?void 0:h.description)},x),o&&P.createElement("div",{className:ge(`${_}-footer`,S.footer,l==null?void 0:l.footer),style:Object.assign(Object.assign({},E.footer),h==null?void 0:h.footer)},o)))};Ps.PRESENTED_IMAGE_DEFAULT=L7;Ps.PRESENTED_IMAGE_SIMPLE=z7;process.env.NODE_ENV!=="production"&&(Ps.displayName="Empty");const c0e=e=>{const{componentName:t}=e,{getPrefixCls:r}=A.useContext(kn),n=r("empty");switch(t){case"Table":case"List":return A.createElement(Ps,{image:Ps.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return A.createElement(Ps,{image:Ps.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return A.createElement(Ps,null)}},d0e=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function f0e(e,t){return e||d0e(t)}const jO=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},h0e=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`,u=`${n}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},uo(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,[`
662
- ${a}${s}bottomLeft,
663
- ${i}${s}bottomLeft
664
- `]:{animationName:zk},[`
665
- ${a}${s}topLeft,
666
- ${i}${s}topLeft,
667
- ${a}${s}topRight,
668
- ${i}${s}topRight
669
- `]:{animationName:Hk},[`${o}${s}bottomLeft`]:{animationName:Bk},[`
670
- ${o}${s}topLeft,
671
- ${o}${s}topRight
672
- `]:{animationName:Vk},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},jO(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"},A_),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},jO(e)),{color:e.colorTextDisabled})}),[`${u}:has(+ ${u})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Y8(e,"slide-up"),Y8(e,"slide-down"),W8(e,"move-up"),W8(e,"move-down")]},p0e=e=>{const{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:a}=e,i=e.max(e.calc(r).sub(n).equal(),0),o=e.max(e.calc(i).sub(a).equal(),0);return{basePadding:i,containerPadding:o,itemHeight:He(t),itemLineHeight:He(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},m0e=e=>{const{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},g0e=e=>{const{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:a,paddingXS:i,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:u,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:h}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:h,borderRadius:n,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(h).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},N2()),{display:"inline-flex",alignItems:"center",color:u,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:l}})}}}},v0e=(e,t)=>{const{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,a=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,o=m0e(e),s=t?`${r}-${t}`:"",u=p0e(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},g0e(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:u.basePadding,paddingBlock:u.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${He(n)} 0`,lineHeight:He(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:u.itemHeight,lineHeight:He(u.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:He(i),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal()},[`${a}-item + ${a}-item,
673
- ${r}-prefix + ${r}-selection-wrap
674
- `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:u.itemHeight,marginBlock:n},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:He(i),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"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Yb(e,t){const{componentCls:r}=e,n=t?`${r}-${t}`:"",a={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[`
675
- &${r}-show-arrow ${r}-selector,
676
- &${r}-allow-clear ${r}-selector
677
- `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[v0e(e,t),a]}const b0e=e=>{const{componentCls:t}=e,r=Jr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=Jr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Yb(e),Yb(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Yb(n,"lg")]};function Gb(e,t){const{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:a}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${r}-${t}`:"";return{[`${r}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},uo(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
678
- ${r}-selection-item,
679
- ${r}-selection-placeholder
680
- `]:{display:"block",padding:0,lineHeight:He(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
681
- &${r}-show-arrow ${r}-selection-item,
682
- &${r}-show-arrow ${r}-selection-search,
683
- &${r}-show-arrow ${r}-selection-placeholder
684
- `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${He(n)}`,[`${r}-selection-search-input`]:{height:i},"&:after":{lineHeight:He(i)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${He(n)}`,"&:after":{display:"none"}}}}}}}function y0e(e){const{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Gb(e),Gb(Jr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${He(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
685
- &${t}-show-arrow ${t}-selection-item,
686
- &${t}-show-arrow ${t}-selection-placeholder
687
- `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Gb(Jr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const _0e=e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:a,controlHeightSM:i,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:u,zIndexPopupBase:l,colorText:h,fontWeightStrong:d,controlItemBgActive:g,controlItemBgHover:b,colorBgContainer:y,colorFillSecondary:w,colorBgContainerDisabled:S,colorTextDisabled:E,colorPrimaryHover:_,colorPrimary:C,controlOutline:f}=e,p=s*2,v=n*2,x=Math.min(a-p,a-v),k=Math.min(i-p,i-v),O=Math.min(o-p,o-v);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:h,optionSelectedFontWeight:d,optionSelectedBg:g,optionActiveBg:b,optionPadding:`${(a-t*r)/2}px ${u}px`,optionFontSize:t,optionLineHeight:r,optionHeight:a,selectorBg:y,clearBg:y,singleItemHeightLG:o,multipleItemBg:w,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:k,multipleItemHeightLG:O,multipleSelectorBgDisabled:S,multipleItemColorDisabled:E,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:_,activeBorderColor:C,activeOutlineColor:f,selectAffixPadding:s}},B7=(e,t)=>{const{componentCls:r,antCls:n,controlOutlineWidth:a}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${He(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${He(a)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},LO=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},B7(e,t))}),w0e=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},B7(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),LO(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),LO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${He(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),H7=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${He(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},zO=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},H7(e,t))}),x0e=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},H7(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),zO(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),zO(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${He(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),S0e=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${He(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${He(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),V7=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${He(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${r}-prefix`]:{color:t.color}}}},BO=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},V7(e,t))}),C0e=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},V7(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),BO(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),BO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${He(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),E0e=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},w0e(e)),x0e(e)),S0e(e)),C0e(e))}),O0e=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},R0e=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"}}}},T0e=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:a}=e;return{[r]:Object.assign(Object.assign({},uo(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},O0e(e)),R0e(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},A_),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},A_),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},N2()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},P0e=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},T0e(e),y0e(e),b0e(e),h0e(e),{[`${t}-rtl`]:{direction:"rtl"}},d7(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},k0e=ls("Select",(e,t)=>{let{rootPrefixCls:r}=t;const n=Jr(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[P0e(n),E0e(n)]},_0e,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var $0e=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:sw}))},U7=P.forwardRef($0e);process.env.NODE_ENV!=="production"&&(U7.displayName="CloseOutlined");var A0e=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:A5}))},q7=P.forwardRef(A0e);process.env.NODE_ENV!=="production"&&(q7.displayName="DownOutlined");var D0e=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:z5}))},W7=P.forwardRef(D0e);process.env.NODE_ENV!=="production"&&(W7.displayName="SearchOutlined");function M0e(e){let{suffixIcon:t,clearIcon:r,menuItemSelectedIcon:n,removeIcon:a,loading:i,multiple:o,hasFeedback:s,prefixCls:u,showSuffixIcon:l,feedbackIcon:h,showArrow:d,componentName:g}=e;process.env.NODE_ENV!=="production"&&na(g).deprecated(!r,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const b=r??P.createElement(B2,null),y=_=>t===null&&!s&&!d?null:P.createElement(P.Fragment,null,l!==!1&&_,s&&h);let w=null;if(t!==void 0)w=y(t);else if(i)w=y(P.createElement(G2,{spin:!0}));else{const _=`${u}-suffix`;w=C=>{let{open:f,showSearch:p}=C;return y(f&&p?P.createElement(W7,{className:_}):P.createElement(q7,{className:_}))}}let S=null;n!==void 0?S=n:o?S=P.createElement(Y2,null):S=null;let E=null;return a!==void 0?E=a:E=P.createElement(U7,null),{clearIcon:b,suffixIcon:w,itemIcon:S,removeIcon:E}}function N0e(e,t){return t!==void 0?t:e!==null}var I0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Y7="SECRET_COMBOBOX_MODE_DO_NOT_USE",G7=(e,t)=>{var r;const{prefixCls:n,bordered:a,className:i,rootClassName:o,getPopupContainer:s,popupClassName:u,dropdownClassName:l,listHeight:h=256,placement:d,listItemHeight:g,size:b,disabled:y,notFoundContent:w,status:S,builtinPlacements:E,dropdownMatchSelectWidth:_,popupMatchSelectWidth:C,direction:f,style:p,allowClear:v,variant:x,dropdownStyle:k,transitionName:O,tagRender:$,maxCount:D,prefix:V}=e,I=I0e(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:N,getPrefixCls:F,renderEmpty:T,direction:M,virtual:j,popupMatchSelectWidth:H,popupOverflow:z}=P.useContext(kn),U=Nu("select"),[,G]=bi(),X=g??(G==null?void 0:G.controlHeight),K=F("select",n),ne=F(),ae=f??M,{compactSize:ie,compactItemClassnames:de}=j2(K,ae),[pe,be]=V2("select",x,a),me=vh(K),[ee,ve,se]=k0e(K,me),fe=P.useMemo(()=>{const{mode:Rt}=e;if(Rt!=="combobox")return Rt===Y7?"combobox":Rt},[e.mode]),he=fe==="multiple"||fe==="tags",ke=N0e(e.suffixIcon,e.showArrow),Te=(r=C??_)!==null&&r!==void 0?r:H,{status:xe,hasFeedback:$e,isFormItemInput:Pe,feedbackIcon:Ne}=P.useContext(ku),Ee=H2(xe,S);let Fe;w!==void 0?Fe=w:fe==="combobox"?Fe=null:Fe=(T==null?void 0:T("Select"))||P.createElement(c0e,{componentName:"Select"});const{suffixIcon:rt,itemIcon:dt,removeIcon:ct,clearIcon:bt}=M0e(Object.assign(Object.assign({},I),{multiple:he,hasFeedback:$e,feedbackIcon:Ne,showSuffixIcon:ke,prefixCls:K,componentName:"Select"})),gt=v===!0?{clearIcon:bt}:v,Qe=dh(I,["suffixIcon","itemIcon"]),_t=ge(u||l,{[`${K}-dropdown-${ae}`]:ae==="rtl"},o,se,me,ve),It=Um(Rt=>{var qt;return(qt=b??ie)!==null&&qt!==void 0?qt:Rt}),ft=P.useContext(Pu),Be=y??ft,Ot=ge({[`${K}-lg`]:It==="large",[`${K}-sm`]:It==="small",[`${K}-rtl`]:ae==="rtl",[`${K}-${pe}`]:be,[`${K}-in-form-item`]:Pe},Zp(K,Ee,$e),de,U.className,i,o,se,me,ve),Ve=P.useMemo(()=>d!==void 0?d:ae==="rtl"?"bottomRight":"bottomLeft",[d,ae]);if(process.env.NODE_ENV!=="production"){const Rt=na("Select");Rt.deprecated(!l,"dropdownClassName","popupClassName"),Rt.deprecated(_===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&Rt(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),Rt.deprecated(!("bordered"in e),"bordered","variant"),process.env.NODE_ENV!=="production"&&Rt(!(typeof D<"u"&&!he),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[Ke]=e7("SelectLike",k==null?void 0:k.zIndex);return ee(P.createElement(rx,Object.assign({ref:t,virtual:j,showSearch:U.showSearch},Qe,{style:Object.assign(Object.assign({},U.style),p),dropdownMatchSelectWidth:Te,transitionName:t7(ne,"slide-up",O),builtinPlacements:f0e(E,z),listHeight:h,listItemHeight:X,mode:fe,prefixCls:K,placement:Ve,direction:ae,prefix:V,suffixIcon:rt,menuItemSelectedIcon:dt,removeIcon:ct,allowClear:gt,notFoundContent:Fe,className:Ot,getPopupContainer:s||N,dropdownClassName:_t,disabled:Be,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:Ke}),maxCount:he?D:void 0,tagRender:he?$:void 0})))};process.env.NODE_ENV!=="production"&&(G7.displayName="Select");const ju=P.forwardRef(G7),F0e=o0e(ju,"dropdownAlign");ju.SECRET_COMBOBOX_MODE_DO_NOT_USE=Y7;ju.Option=ex;ju.OptGroup=Q2;ju._InternalPanelDoNotUseOrYouWillBeFired=F0e;process.env.NODE_ENV!=="production"&&(ju.displayName="Select");const j0e=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},L0e=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:He(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:He(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:He(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
688
- &${t}-mini ${t}-prev ${t}-item-link,
689
- &${t}-mini ${t}-next ${t}-item-link
690
- `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:He(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:He(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:He(e.itemSizeSM),input:Object.assign(Object.assign({},q2(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},z0e=e=>{const{componentCls:t}=e;return{[`
691
- &${t}-simple ${t}-prev,
692
- &${t}-simple ${t}-next
693
- `]:{height:e.itemSizeSM,lineHeight:He(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:He(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${He(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${He(e.inputOutlineOffset)} 0 ${He(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},B0e=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
694
- ${t}-prev,
695
- ${t}-jump-prev,
696
- ${t}-jump-next
697
- `]:{marginInlineEnd:e.marginXS},[`
698
- ${t}-prev,
699
- ${t}-next,
700
- ${t}-jump-prev,
701
- ${t}-jump-next
702
- `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:He(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${He(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:He(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},W2(e)),U2(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Ym(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},H0e=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:He(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${He(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${He(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},V0e=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uo(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:He(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),H0e(e)),B0e(e)),z0e(e)),L0e(e)),j0e(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},U0e=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},$A(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Gp(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Gp(e))}}}},K7=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Wm(e)),X7=e=>Jr(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},qm(e)),q0e=ls("Pagination",e=>{const t=X7(e);return[V0e(t),U0e(t)]},K7),W0e=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Y0e=fle(["Pagination","bordered"],e=>{const t=X7(e);return[W0e(t)]},K7);function HO(e){return A.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var G0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Z7=e=>{const{align:t,prefixCls:r,selectPrefixCls:n,className:a,rootClassName:i,style:o,size:s,locale:u,responsive:l,showSizeChanger:h,selectComponentClass:d,pageSizeOptions:g}=e,b=G0e(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:y}=qfe(l),[,w]=bi(),{getPrefixCls:S,direction:E,showSizeChanger:_,className:C,style:f}=Nu("pagination"),p=S("pagination",r),[v,x,k]=q0e(p),O=Um(s),$=O==="small"||!!(y&&!O&&l),[D]=vc("Pagination",RA),V=Object.assign(Object.assign({},D),u),[I,N]=HO(h),[F,T]=HO(_),M=I??F,j=N??T,H=d||ju,z=P.useMemo(()=>g?g.map(ae=>Number(ae)):void 0,[g]),U=ae=>{var ie;const{disabled:de,size:pe,onSizeChange:be,"aria-label":me,className:ee,options:ve}=ae,{className:se,onChange:fe}=j||{},he=(ie=ve.find(ke=>String(ke.value)===String(pe)))===null||ie===void 0?void 0:ie.value;return P.createElement(H,Object.assign({disabled:de,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ke=>ke.parentNode,"aria-label":me,options:ve},j,{value:he,onChange:(ke,Te)=>{be==null||be(ke),fe==null||fe(ke,Te)},size:$?"small":"middle",className:ge(ee,se)}))};if(process.env.NODE_ENV!=="production"){const ae=na("Pagination");process.env.NODE_ENV!=="production"&&ae(!d,"usage","`selectComponentClass` is not official api which will be removed.")}const G=P.useMemo(()=>{const ae=P.createElement("span",{className:`${p}-item-ellipsis`},"•••"),ie=P.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},E==="rtl"?P.createElement(K_,null):P.createElement(G_,null)),de=P.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},E==="rtl"?P.createElement(G_,null):P.createElement(K_,null)),pe=P.createElement("a",{className:`${p}-item-link`},P.createElement("div",{className:`${p}-item-container`},E==="rtl"?P.createElement(Y_,{className:`${p}-item-link-icon`}):P.createElement(W_,{className:`${p}-item-link-icon`}),ae)),be=P.createElement("a",{className:`${p}-item-link`},P.createElement("div",{className:`${p}-item-container`},E==="rtl"?P.createElement(W_,{className:`${p}-item-link-icon`}):P.createElement(Y_,{className:`${p}-item-link-icon`}),ae));return{prevIcon:ie,nextIcon:de,jumpPrevIcon:pe,jumpNextIcon:be}},[E,p]),X=S("select",n),K=ge({[`${p}-${t}`]:!!t,[`${p}-mini`]:$,[`${p}-rtl`]:E==="rtl",[`${p}-bordered`]:w.wireframe},C,a,i,x,k),ne=Object.assign(Object.assign({},f),o);return v(P.createElement(P.Fragment,null,w.wireframe&&P.createElement(Y0e,{prefixCls:p}),P.createElement(w7,Object.assign({},G,b,{style:ne,prefixCls:p,selectPrefixCls:X,className:K,locale:V,pageSizeOptions:z,showSizeChanger:M,sizeChangerRender:U}))))};process.env.NODE_ENV!=="production"&&(Z7.displayName="Pagination");var K0e=function(t,r){return P.createElement(Wn,je({},t,{ref:r,icon:Uz}))},J7=P.forwardRef(K0e);process.env.NODE_ENV!=="production"&&(J7.displayName="DeleteOutlined");var X0e=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Z0e=A.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,a=e.className,i=e.style,o=e.checked,s=e.disabled,u=e.defaultChecked,l=u===void 0?!1:u,h=e.type,d=h===void 0?"checkbox":h,g=e.title,b=e.onChange,y=sr(e,X0e),w=A.useRef(null),S=A.useRef(null),E=_n(l,{value:o}),_=we(E,2),C=_[0],f=_[1];A.useImperativeHandle(t,function(){return{focus:function(k){var O;(O=w.current)===null||O===void 0||O.focus(k)},blur:function(){var k;(k=w.current)===null||k===void 0||k.blur()},input:w.current,nativeElement:S.current}});var p=ge(n,a,re(re({},"".concat(n,"-checked"),C),"".concat(n,"-disabled"),s)),v=function(k){s||("checked"in e||f(k.target.checked),b==null||b({target:Q(Q({},e),{},{type:d,checked:k.target.checked}),stopPropagation:function(){k.stopPropagation()},preventDefault:function(){k.preventDefault()},nativeEvent:k.nativeEvent}))};return P.createElement("span",{className:p,title:g,style:i,ref:S},P.createElement("input",je({},y,{className:"".concat(n,"-input"),ref:w,onChange:v,disabled:s,checked:!!C,type:d})),P.createElement("span",{className:"".concat(n,"-inner")}))});const J0e=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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 ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Q0e=dle("Wave",e=>[J0e(e)]),nx=`${Wp}-wave-target`;var yh=Q({},QO),epe=yh.version,Kb=yh.render,tpe=yh.unmountComponentAtNode,Km;try{var rpe=Number((epe||"").split(".")[0]);rpe>=18&&(Km=yh.createRoot)}catch{}function VO(e){var t=yh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&pt(t)==="object"&&(t.usingClientEntryPoint=e)}var em="__rc_react_root__";function npe(e,t){VO(!0);var r=t[em]||Km(t);VO(!1),r.render(e),t[em]=r}function ape(e,t){Kb==null||Kb(e,t)}function ipe(e,t){if(Km){npe(e,t);return}ape(e,t)}function ope(e){return ew.apply(this,arguments)}function ew(){return ew=Fu(ha().mark(function e(t){return ha().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[em])===null||a===void 0||a.unmount(),delete t[em]}));case 1:case"end":return n.stop()}},e)})),ew.apply(this,arguments)}function spe(e){tpe(e)}function upe(e){return tw.apply(this,arguments)}function tw(){return tw=Fu(ha().mark(function e(t){return ha().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Km===void 0){n.next=2;break}return n.abrupt("return",ope(t));case 2:spe(t);case 3:case"end":return n.stop()}},e)})),tw.apply(this,arguments)}const lpe=(e,t)=>{if(process.env.NODE_ENV!=="production"){const r=parseInt(P.version.split(".")[0],10),n=Object.keys(QO);process.env.NODE_ENV!=="production"&&fh(r<19||n.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return ipe(e,t),()=>upe(t)};let cpe=lpe;function dpe(){return cpe}function Xb(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function fpe(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Xb(t)?t:Xb(r)?r:Xb(n)?n:null}function Zb(e){return Number.isNaN(e)?0:e}const hpe=e=>{const{className:t,target:r,component:n,registerUnmount:a}=e,i=P.useRef(null),o=P.useRef(null);P.useEffect(()=>{o.current=a()},[]);const[s,u]=P.useState(null),[l,h]=P.useState([]),[d,g]=P.useState(0),[b,y]=P.useState(0),[w,S]=P.useState(0),[E,_]=P.useState(0),[C,f]=P.useState(!1),p={left:d,top:b,width:w,height:E,borderRadius:l.map(k=>`${k}px`).join(" ")};s&&(p["--wave-color"]=s);function v(){const k=getComputedStyle(r);u(fpe(r));const O=k.position==="static",{borderLeftWidth:$,borderTopWidth:D}=k;g(O?r.offsetLeft:Zb(-parseFloat($))),y(O?r.offsetTop:Zb(-parseFloat(D))),S(r.offsetWidth),_(r.offsetHeight);const{borderTopLeftRadius:V,borderTopRightRadius:I,borderBottomLeftRadius:N,borderBottomRightRadius:F}=k;h([V,I,F,N].map(T=>Zb(parseFloat(T))))}if(P.useEffect(()=>{if(r){const k=Zr(()=>{v(),f(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(v),O.observe(r)),()=>{Zr.cancel(k),O==null||O.disconnect()}}},[]),!C)return null;const x=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(nx));return P.createElement(lc,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(k,O)=>{var $,D;if(O.deadline||O.propertyName==="opacity"){const V=($=i.current)===null||$===void 0?void 0:$.parentElement;(D=o.current)===null||D===void 0||D.call(o).then(()=>{V==null||V.remove()})}return!1}},(k,O)=>{let{className:$}=k;return P.createElement("div",{ref:us(i,O),className:ge(t,$,{"wave-quick":x}),style:p})})},ppe=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const i=dpe();let o=null;function s(){return o}o=i(P.createElement(hpe,Object.assign({},t,{target:e,registerUnmount:s})),a)},mpe=(e,t,r)=>{const{wave:n}=P.useContext(kn),[,a,i]=bi(),o=Xr(l=>{const h=e.current;if(n!=null&&n.disabled||!h)return;const d=h.querySelector(`.${nx}`)||h,{showEffect:g}=n||{};(g||ppe)(d,{className:t,token:a,component:r,event:l,hashId:i})}),s=P.useRef(null);return l=>{Zr.cancel(s.current),s.current=Zr(()=>{o(l)})}},Q7=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=A.useContext(kn),i=A.useRef(null),o=a("wave"),[,s]=Q0e(o),u=mpe(i,ge(o,s),n);if(A.useEffect(()=>{const h=i.current;if(!h||h.nodeType!==1||r)return;const d=g=>{!VA(g.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")||h.className.includes("-leave")||u(g)};return h.addEventListener("click",d,!0),()=>{h.removeEventListener("click",d,!0)}},[r]),!A.isValidElement(t))return t??null;const l=eh(t)?us(Cm(t),i):i;return z2(t,{ref:l})};process.env.NODE_ENV!=="production"&&(Q7.displayName="Wave");const e9=A.createContext(null),gpe=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},uo(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},uo(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},uo(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Gp(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${He(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${He(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
703
- ${r}:not(${r}-disabled),
704
- ${t}:not(${t}-disabled)
705
- `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
706
- ${r}-checked:not(${r}-disabled),
707
- ${t}-checked:not(${t}-disabled)
708
- `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function vpe(e,t){const r=Jr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[gpe(r)]}const t9=ls("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[vpe(r,e)]});function bpe(e){const t=A.useRef(null),r=()=>{Zr.cancel(t.current),t.current=null};return[()=>{r(),t.current=Zr(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e==null||e(i)}]}var ype=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const _pe=(e,t)=>{var r;const{prefixCls:n,className:a,rootClassName:i,children:o,indeterminate:s=!1,style:u,onMouseEnter:l,onMouseLeave:h,skipGroup:d=!1,disabled:g}=e,b=ype(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:y,direction:w,checkbox:S}=P.useContext(kn),E=P.useContext(e9),{isFormItemInput:_}=P.useContext(ku),C=P.useContext(Pu),f=(r=(E==null?void 0:E.disabled)||g)!==null&&r!==void 0?r:C,p=P.useRef(b.value),v=P.useRef(null),x=us(t,v);if(process.env.NODE_ENV!=="production"){const j=na("Checkbox");process.env.NODE_ENV!=="production"&&j("checked"in b||!!E||!("value"in b),"usage","`value` is not a valid prop, do you mean `checked`?")}P.useEffect(()=>{E==null||E.registerValue(b.value)},[]),P.useEffect(()=>{if(!d)return b.value!==p.current&&(E==null||E.cancelValue(p.current),E==null||E.registerValue(b.value),p.current=b.value),()=>E==null?void 0:E.cancelValue(b.value)},[b.value]),P.useEffect(()=>{var j;!((j=v.current)===null||j===void 0)&&j.input&&(v.current.input.indeterminate=s)},[s]);const k=y("checkbox",n),O=vh(k),[$,D,V]=t9(k,O),I=Object.assign({},b);E&&!d&&(I.onChange=function(){b.onChange&&b.onChange.apply(b,arguments),E.toggleOption&&E.toggleOption({label:o,value:b.value})},I.name=E.name,I.checked=E.value.includes(b.value));const N=ge(`${k}-wrapper`,{[`${k}-rtl`]:w==="rtl",[`${k}-wrapper-checked`]:I.checked,[`${k}-wrapper-disabled`]:f,[`${k}-wrapper-in-form-item`]:_},S==null?void 0:S.className,a,i,V,O,D),F=ge({[`${k}-indeterminate`]:s},nx,D),[T,M]=bpe(I.onClick);return $(P.createElement(Q7,{component:"Checkbox",disabled:f},P.createElement("label",{className:N,style:Object.assign(Object.assign({},S==null?void 0:S.style),u),onMouseEnter:l,onMouseLeave:h,onClick:T},P.createElement(Z0e,Object.assign({},I,{onClick:M,prefixCls:k,className:F,disabled:f,ref:x})),o!==void 0&&P.createElement("span",{className:`${k}-label`},o))))},ax=P.forwardRef(_pe);process.env.NODE_ENV!=="production"&&(ax.displayName="Checkbox");var wpe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const xpe=P.forwardRef((e,t)=>{const{defaultValue:r,children:n,options:a=[],prefixCls:i,className:o,rootClassName:s,style:u,onChange:l}=e,h=wpe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:g}=P.useContext(kn),[b,y]=P.useState(h.value||r||[]),[w,S]=P.useState([]);P.useEffect(()=>{"value"in h&&y(h.value||[])},[h.value]);const E=P.useMemo(()=>a.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[a]),_=F=>{S(T=>T.filter(M=>M!==F))},C=F=>{S(T=>[].concat(tt(T),[F]))},f=F=>{const T=b.indexOf(F.value),M=tt(b);T===-1?M.push(F.value):M.splice(T,1),"value"in h||y(M),l==null||l(M.filter(j=>w.includes(j)).sort((j,H)=>{const z=E.findIndex(G=>G.value===j),U=E.findIndex(G=>G.value===H);return z-U}))},p=d("checkbox",i),v=`${p}-group`,x=vh(p),[k,O,$]=t9(p,x),D=dh(h,["value","disabled"]),V=a.length?E.map(F=>P.createElement(ax,{prefixCls:p,key:F.value.toString(),disabled:"disabled"in F?F.disabled:h.disabled,value:F.value,checked:b.includes(F.value),onChange:F.onChange,className:`${v}-item`,style:F.style,title:F.title,id:F.id,required:F.required},F.label)):n,I={toggleOption:f,value:b,disabled:h.disabled,name:h.name,registerValue:C,cancelValue:_},N=ge(v,{[`${v}-rtl`]:g==="rtl"},o,s,$,x,O);return k(P.createElement("div",Object.assign({className:N,style:u},D,{ref:t}),P.createElement(e9.Provider,{value:I},V)))}),Xm=ax;Xm.Group=xpe;Xm.__ANT_CHECKBOX=!0;process.env.NODE_ENV!=="production"&&(Xm.displayName="Checkbox");const Spe=e=>{const{renderedText:t,renderedEl:r,item:n,checked:a,disabled:i,prefixCls:o,onClick:s,onRemove:u,showRemove:l}=e,h=ge(`${o}-content-item`,{[`${o}-content-item-disabled`]:i||n.disabled,[`${o}-content-item-checked`]:a&&!n.disabled});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[g]=vc("Transfer",Tu.Transfer),b={className:h,title:d},y=P.createElement("span",{className:`${o}-content-item-text`},r);return l?P.createElement("li",Object.assign({},b),y,P.createElement("button",{type:"button",disabled:i||n.disabled,className:`${o}-content-item-remove`,"aria-label":g==null?void 0:g.remove,onClick:()=>u==null?void 0:u(n)},P.createElement(J7,null))):(b.onClick=i||n.disabled?void 0:w=>s(n,w),P.createElement("li",Object.assign({},b),P.createElement(Xm,{className:`${o}-checkbox`,checked:a,disabled:i||n.disabled}),y))},Cpe=P.memo(Spe),Epe=["handleFilter","handleClear","checkedKeys"],Ope=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),Rpe=(e,t)=>{const{prefixCls:r,filteredRenderItems:n,selectedKeys:a,disabled:i,showRemove:o,pagination:s,onScroll:u,onItemSelect:l,onItemRemove:h}=e,[d,g]=P.useState(1),b=P.useMemo(()=>s?Ope(typeof s=="object"?s:{}):null,[s]),[y,w]=_n(10,{value:b==null?void 0:b.pageSize});P.useEffect(()=>{if(b){const x=Math.ceil(n.length/y);g(Math.min(d,x))}},[n,b,y]);const S=(x,k)=>{l(x.key,!a.includes(x.key),k)},E=x=>{h==null||h([x.key])},_=x=>{g(x)},C=(x,k)=>{g(x),w(k)},f=P.useMemo(()=>b?n.slice((d-1)*y,d*y):n,[d,n,b,y]);P.useImperativeHandle(t,()=>({items:f}));const p=b?P.createElement(Z7,{size:"small",disabled:i,simple:b.simple,pageSize:y,showLessItems:b.showLessItems,showSizeChanger:b.showSizeChanger,className:`${r}-pagination`,total:n.length,current:d,onChange:_,onShowSizeChange:C}):null,v=ge(`${r}-content`,{[`${r}-content-show-remove`]:o});return P.createElement(P.Fragment,null,P.createElement("ul",{className:v,onScroll:u},(f||[]).map(x=>{let{renderedEl:k,renderedText:O,item:$}=x;return P.createElement(Cpe,{key:$.key,item:$,renderedText:O,renderedEl:k,prefixCls:r,showRemove:o,onClick:S,onRemove:E,checked:a.includes($.key),disabled:i||$.disabled})})),p)};process.env.NODE_ENV!=="production"&&(Rpe.displayName="TransferListBody");var r9=A.forwardRef(function(e,t){var r=e.prefixCls,n=e.forceRender,a=e.className,i=e.style,o=e.children,s=e.isActive,u=e.role,l=e.classNames,h=e.styles,d=A.useState(s||n),g=we(d,2),b=g[0],y=g[1];return A.useEffect(function(){(n||s)&&y(!0)},[n,s]),b?A.createElement("div",{ref:t,className:ge("".concat(r,"-content"),re(re({},"".concat(r,"-content-active"),s),"".concat(r,"-content-inactive"),!s),a),style:i,role:u},A.createElement("div",{className:ge("".concat(r,"-content-box"),l==null?void 0:l.body),style:h==null?void 0:h.body},o)):null});r9.displayName="PanelContent";var Tpe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],n9=A.forwardRef(function(e,t){var r=e.showArrow,n=r===void 0?!0:r,a=e.headerClass,i=e.isActive,o=e.onItemClick,s=e.forceRender,u=e.className,l=e.classNames,h=l===void 0?{}:l,d=e.styles,g=d===void 0?{}:d,b=e.prefixCls,y=e.collapsible,w=e.accordion,S=e.panelKey,E=e.extra,_=e.header,C=e.expandIcon,f=e.openMotion,p=e.destroyInactivePanel,v=e.children,x=sr(e,Tpe),k=y==="disabled",O=E!=null&&typeof E!="boolean",$=re(re(re({onClick:function(){o==null||o(S)},onKeyDown:function(M){(M.key==="Enter"||M.keyCode===Ct.ENTER||M.which===Ct.ENTER)&&(o==null||o(S))},role:w?"tab":"button"},"aria-expanded",i),"aria-disabled",k),"tabIndex",k?-1:0),D=typeof C=="function"?C(e):A.createElement("i",{className:"arrow"}),V=D&&A.createElement("div",je({className:"".concat(b,"-expand-icon")},["header","icon"].includes(y)?$:{}),D),I=ge("".concat(b,"-item"),re(re({},"".concat(b,"-item-active"),i),"".concat(b,"-item-disabled"),k),u),N=ge(a,"".concat(b,"-header"),re({},"".concat(b,"-collapsible-").concat(y),!!y),h.header),F=Q({className:N,style:g.header},["header","icon"].includes(y)?{}:$);return A.createElement("div",je({},x,{ref:t,className:I}),A.createElement("div",F,n&&V,A.createElement("span",je({className:"".concat(b,"-header-text")},y==="header"?$:{}),_),O&&A.createElement("div",{className:"".concat(b,"-extra")},E)),A.createElement(lc,je({visible:i,leavedClassName:"".concat(b,"-content-hidden")},f,{forceRender:s,removeOnLeave:p}),function(T,M){var j=T.className,H=T.style;return A.createElement(r9,{ref:M,prefixCls:b,className:j,classNames:h,style:H,styles:g,isActive:i,forceRender:s,role:w?"tabpanel":void 0},v)}))}),Ppe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],kpe=function(t,r){var n=r.prefixCls,a=r.accordion,i=r.collapsible,o=r.destroyInactivePanel,s=r.onItemClick,u=r.activeKey,l=r.openMotion,h=r.expandIcon;return t.map(function(d,g){var b=d.children,y=d.label,w=d.key,S=d.collapsible,E=d.onItemClick,_=d.destroyInactivePanel,C=sr(d,Ppe),f=String(w??g),p=S??i,v=_??o,x=function($){p!=="disabled"&&(s($),E==null||E($))},k=!1;return a?k=u[0]===f:k=u.indexOf(f)>-1,A.createElement(n9,je({},C,{prefixCls:n,key:f,panelKey:f,isActive:k,accordion:a,openMotion:l,expandIcon:h,header:y,collapsible:p,onItemClick:x,destroyInactivePanel:v}),b)})},$pe=function(t,r,n){if(!t)return null;var a=n.prefixCls,i=n.accordion,o=n.collapsible,s=n.destroyInactivePanel,u=n.onItemClick,l=n.activeKey,h=n.openMotion,d=n.expandIcon,g=t.key||String(r),b=t.props,y=b.header,w=b.headerClass,S=b.destroyInactivePanel,E=b.collapsible,_=b.onItemClick,C=!1;i?C=l[0]===g:C=l.indexOf(g)>-1;var f=E??o,p=function(k){f!=="disabled"&&(u(k),_==null||_(k))},v={key:g,panelKey:g,header:y,headerClass:w,isActive:C,prefixCls:a,destroyInactivePanel:S??s,openMotion:h,accordion:i,children:t.props.children,onItemClick:p,expandIcon:d,collapsible:f};return typeof t.type=="string"?t:(Object.keys(v).forEach(function(x){typeof v[x]>"u"&&delete v[x]}),A.cloneElement(t,v))};function Ape(e,t,r){return Array.isArray(e)?kpe(e,r):mo(t).map(function(n,a){return $pe(n,a,r)})}function Dpe(e){var t=e;if(!Array.isArray(t)){var r=pt(t);t=r==="number"||r==="string"?[t]:[]}return t.map(function(n){return String(n)})}var Mpe=A.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-collapse":r,a=e.destroyInactivePanel,i=a===void 0?!1:a,o=e.style,s=e.accordion,u=e.className,l=e.children,h=e.collapsible,d=e.openMotion,g=e.expandIcon,b=e.activeKey,y=e.defaultActiveKey,w=e.onChange,S=e.items,E=ge(n,u),_=_n([],{value:b,onChange:function(O){return w==null?void 0:w(O)},defaultValue:y,postState:Dpe}),C=we(_,2),f=C[0],p=C[1],v=function(O){return p(function(){if(s)return f[0]===O?[]:[O];var $=f.indexOf(O),D=$>-1;return D?f.filter(function(V){return V!==O}):[].concat(tt(f),[O])})};Ut(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=Ape(S,l,{prefixCls:n,accordion:s,openMotion:d,expandIcon:g,collapsible:h,destroyInactivePanel:i,onItemClick:v,activeKey:f});return A.createElement("div",je({ref:t,className:E,style:o,role:s?"tablist":void 0},po(e,{aria:!0,data:!0})),x)});const a9=Object.assign(Mpe,{Panel:n9});a9.Panel;const Npe=P.forwardRef((e,t)=>{process.env.NODE_ENV!=="production"&&na("Collapse.Panel").deprecated(!("disabled"in e),"disabled",'collapsible="disabled"');const{getPrefixCls:r}=P.useContext(kn),{prefixCls:n,className:a,showArrow:i=!0}=e,o=r("collapse",n),s=ge({[`${o}-no-arrow`]:!i},a);return P.createElement(a9.Panel,Object.assign({ref:t},e,{prefixCls:o,className:s}))});var Jb,UO;function Ipe(){return UO||(UO=1,Jb=i5()),Jb}var Fpe=Ipe();const jpe=$n(Fpe);var Fd={},jd={},qO;function Lpe(){if(qO)return jd;qO=1,Object.defineProperty(jd,"__esModule",{value:!0}),jd.default=void 0;var e={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"};return jd.default=e,jd}var Ld={},zd={},Bd={},WO;function zpe(){if(WO)return Bd;WO=1;var e=Ls().default;Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.default=void 0;var t=e(t5()),r=r5(),n=(0,t.default)((0,t.default)({},r.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});return Bd.default=n,Bd}var Hd={},YO;function i9(){if(YO)return Hd;YO=1,Object.defineProperty(Hd,"__esModule",{value:!0}),Hd.default=void 0;const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};return Hd.default=e,Hd}var GO;function o9(){if(GO)return zd;GO=1;var e=Ls().default;Object.defineProperty(zd,"__esModule",{value:!0}),zd.default=void 0;var t=e(zpe()),r=e(i9());const n={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"]},t.default),timePickerLocale:Object.assign({},r.default)};return zd.default=n,zd}var KO;function Bpe(){if(KO)return Ld;KO=1;var e=Ls().default;Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.default=void 0;var t=e(o9());return Ld.default=t.default,Ld}var XO;function Hpe(){if(XO)return Fd;XO=1;var e=Ls().default;Object.defineProperty(Fd,"__esModule",{value:!0}),Fd.default=void 0;var t=e(Lpe()),r=e(Bpe()),n=e(o9()),a=e(i9());const i="${label} is not a valid ${type}",o={locale:"en",Pagination:t.default,DatePicker:n.default,TimePicker:a.default,Calendar:r.default,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};return Fd.default=o,Fd}var Qb,ZO;function Vpe(){return ZO||(ZO=1,Qb=Hpe()),Qb}var Upe=Vpe();const qpe=$n(Upe);exports.AliIconFontFn=yB;exports.CollapsePanel=Npe;exports.Color=q5;exports.EditableContext=Hw;exports.GLOBAL_TABLE_TOP_CLASS=_m;exports.HealthStateComponent=xB;exports.OmitProps=Epe;exports.OnChainAI=Rue;exports.OnChainAdvancedSearch=tQ;exports.OnChainBadge=uy;exports.OnChainCompositeForm=Kf;exports.OnChainDropMenu=YW;exports.OnChainExcelViewer=GW;exports.OnChainForm=XR;exports.OnChainFormItem=lP;exports.OnChainGenAntImage=iP;exports.OnChainGenImage=cJ;exports.OnChainGlobalLoading=OB;exports.OnChainHighLightWords=rs;exports.OnChainIcon=Dt;exports.OnChainImage=Fy;exports.OnChainInput=J0;exports.OnChainLoading=ec;exports.OnChainLoadingSkCube=SB;exports.OnChainMarkdown=HR;exports.OnChainModal=$u;exports.OnChainMosaic=co;exports.OnChainPopupSelect=uP;exports.OnChainProgress=kue;exports.OnChainProvider=sL;exports.OnChainPublicTree=bQ;exports.OnChainQueryBuilder=cP;exports.OnChainResourceTree=HT;exports.OnChainScrollBar=VW;exports.OnChainScrollBarAssembly=uQ;exports.OnChainSelect=gu;exports.OnChainSelectPopupForm=nP;exports.OnChainTable=wm;exports.OnChainTableSelection=sP;exports.OnChainTabs=tP;exports.OnChainTreeSelect=up;exports.OnChainViewerError=UW;exports.Paragraph=Afe;exports.StatusColors=ly;exports.confirm=xW;exports.confirmModalConfig=GR;exports.en_US=qpe;exports.zhCN=jpe;Object.keys(ue).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>ue[e]})});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var u=(r=>(r.material="10001001",r.document="10001002",r.changeRequest="10001003",r.changeInstruction="10001004",r.engineeringChange="10001005",r.file="10001006",r.problemReport="10001007",r.manufacturerChange="10001008",r.statusChange="10001009",r.applicationProcess="10001010",r.supplierRequest="10001011",r.manufacturer="10001012",r.manufacturerParts="10001013",r.supplier="10001014",r.projectStartChange="10001015",r.dailyNewspaper="10001019",r.projectBaselineChange="10001030",r.project="10001016",r.workReport="10001019",r.user="10001017",r.userGroup="10001018",r.manufactChange="10001020",r.technology="10001021",r.factory="10001022",r.resource="10001023",r.factoryPublish="10001024",r.resourcePublish="10001025",r.risk="10001028",r.technologyPublish="10001029",r.inspectItem="10001031",r.option="10001032",r.custom="10001033",r.TechSpecial="10001034",r.ControlPlan="10001035",r.TechSpecialPublish="10001036",r.ControlPlanPublish="10001037",r))(u||{});class n{constructor(){}prefixClickAuth(t){return!0}}class e extends n{constructor(){super()}prefixClickAuth(t){return console.log(t.userAuth.user.otherRoleApicodes.split(","),'body.userAuth.user.otherRoleApicodes.split(",")'),!(t.instanceInfo.itemCode==u.material&&t.button=="tab_downloadDesignFile"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("DownloadDesignFile")||t.instanceInfo.itemCode==u.material&&t.button=="tab_exportAttachment"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("ExportBOMAttachment")||t.instanceInfo.itemCode==u.material&&t.button=="tab_export"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("ExportBOM")||t.instanceInfo.itemCode==u.material&&t.button=="transformOSTEP"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("Ti5YF")||t.instanceInfo.itemCode==u.material&&t.button=="transformSTEP"&&!t.userAuth.user.otherRoleApicodes.split(",").includes("Ti5YF"))}}exports.ti5ButtonAuth=e;