@gientech/modual 2.2.22 → 2.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/GientechStreamReader-Bmx4xCIT.js +151 -0
- package/assets/{circle-plus-P1B4Xn23.js → circle-plus-2ioHM-Sb.js} +1 -1
- package/assets/index-B2xoLI6Z.js +535 -0
- package/assets/index-D6NvYrzT.js +157 -0
- package/assets/{x-cAgrXVQW.js → loader-circle-B52xZ7Tn.js} +2 -2
- package/assets/{plus-Dksaa79Q.js → plus-Cok3acFd.js} +1 -1
- package/assets/{search-DPX4n-TM.js → search-BfgWf2Me.js} +1 -1
- package/assets/style-DFnDZLUF.js +332 -0
- package/assets/style4.css +1 -1
- package/assets/{triangle-alert-DwIOmwma.js → triangle-alert-Dm0U8aST.js} +1 -1
- package/assets/x-CX-iE6EL.js +26 -0
- package/assistantConfig.js +1 -152
- package/chat.js +1 -1
- package/chatCompare.js +1 -1
- package/database.js +2 -2
- package/databaseId.js +16 -1
- package/databaseTable.js +2 -2
- package/index.js +1 -1
- package/modelManage.js +2 -2
- package/package.json +17 -1
- package/sensitive.js +30 -50
- package/sensitiveWords.js +1 -1
- package/streamFilesReader.js +1 -1
- package/assets/GientechStreamReader-CCAVgoU7.js +0 -449
- package/assets/LeftOutlined-6ZZOHHzZ.js +0 -1
- package/assets/index-AbRL5gZq.js +0 -27
- package/assets/index-BVGi9GLj.js +0 -6
- package/assets/index-CshF4ZrU.js +0 -1519
- package/assets/index-Cxdo0VA9.js +0 -16
- package/assets/index-DBBlFPQ7.js +0 -13
- package/assets/index-DBcQE2Ji.js +0 -1
- package/assets/index-DSsXFuyz.js +0 -943
- package/assets/index-DXFiVEll.js +0 -2177
- package/assets/index-D_Hj7QNz.js +0 -285
- package/assets/index-DgYjqte0.js +0 -745
- package/assets/index-VLFjDTvh.js +0 -1
- package/assets/style-403S9iLe.js +0 -196
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import{jsx as M,jsxs as ne,Fragment as Mn}from"react/jsx-runtime";import*as L from"react";import xe,{createElement as gi,PureComponent as ef,useState as fe,useMemo as Ve,createContext as Nn,Children as tf,cloneElement as rf,Component as nf,useRef as He,useEffect as _e,useContext as rr,version as af,isValidElement as of,useLayoutEffect as sf,useCallback as Un}from"react";import _t from"axios";import{AiChat as cf,validateFileUpload as uf,showValidationErrors as lf}from"@mxmweb/aichat";import{mergeLiveChunkToNodes as ff,ChatMessageAdapter as ws}from"@mxmweb/rtext";import{Dropdown as df,Input as Vc,Popover as hf,message as mt,Skeleton as Wn,Button as sn,ConfigProvider as ai,Modal as qc,Form as Bs,Table as pf,Pagination as vf,Empty as xf,Tooltip as Sn,Drawer as Uc}from"antd";import{u as dr}from"./index-CpW6Dhpp.js";import{Icon as gf,defaultTheme as qo,useTheme as mf,deepMergeTheme as Ss}from"@mxmweb/zui";import{d as _s,g as Uo,f as yf,r as Cf,a as bf,c as Ff,B as Ef,z as Af,b as Wc,e as Gc,h as Kc,i as Hi,j as Wo,k as Vi,D as wf,l as Bf,T as qi,m as mi,n as Sf,o as _f,G as Df,p as kf,W as Pf,q as Tf,s as If,t as Xc,u as Rf,v as Of,w as Mf,F as Nf,x as Ds,y as yi,A as Lf,E as $f,H as zf,I as jf,J as Hf,K as Vf,L as Ci}from"./index-B2xoLI6Z.js";import{c as hn,X as Yc}from"./x-CX-iE6EL.js";import{P as qf}from"./plus-Cok3acFd.js";import{S as Ui}from"./search-BfgWf2Me.js";import*as Uf from"react-dom";import ks,{createPortal as Wf}from"react-dom";import{a as Gf,C as Kf,G as Qc}from"./GientechStreamReader-Bmx4xCIT.js";/* empty css *//* empty css */import"@mxmweb/fviewer";import"../database.js";import"../databaseId.js";import"../databaseTable.js";import"../modelManage.js";import"../sensitive.js";import"./index-D6NvYrzT.js";/**
|
|
2
|
+
* @license lucide-react v0.456.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const Xf=hn("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
7
|
+
* @license lucide-react v0.456.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const Yf=hn("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
12
|
+
* @license lucide-react v0.456.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const Qf=hn("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
17
|
+
* @license lucide-react v0.456.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const Zf=hn("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
|
|
22
|
+
* @license lucide-react v0.456.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const Zc=hn("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
27
|
+
* @license lucide-react v0.456.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const Jf=hn("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),ed=r=>L.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r},L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14.6666C11.6819 14.6666 14.6667 11.6819 14.6667 7.99998C14.6667 4.31808 11.6819 1.33331 8 1.33331C4.3181 1.33331 1.33334 4.31808 1.33334 7.99998C1.33334 11.6819 4.3181 14.6666 8 14.6666Z",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("path",{d:"M1.33334 8H14.6667",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 14.6666C9.47277 14.6666 10.6667 11.6819 10.6667 7.99998C10.6667 4.31808 9.47277 1.33331 8 1.33331C6.52724 1.33331 5.33334 4.31808 5.33334 7.99998C5.33334 11.6819 6.52724 14.6666 8 14.6666Z",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("path",{d:"M3.28597 3.38068C4.4924 4.58711 6.15907 5.33331 8 5.33331C9.84097 5.33331 11.5076 4.58711 12.7141 3.38068",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("path",{d:"M12.7141 12.6193C11.5076 11.4129 9.84097 10.6667 8 10.6667C6.15907 10.6667 4.4924 11.4129 3.28597 12.6193",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),td=r=>L.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r},L.createElement("path",{d:"M1.73633 1.57642C2.53848 0.774265 3.74473 0.714862 4.87207 1.03052C6.02182 1.35245 7.24885 2.09683 8.3125 3.1604C9.37624 4.22414 10.1204 5.45195 10.4424 6.60181C10.758 7.72909 10.6986 8.93446 9.89648 9.73657C9.09439 10.5387 7.88901 10.5981 6.76172 10.2825C5.61186 9.96051 4.38405 9.21632 3.32031 8.15259C2.25674 7.08894 1.51236 5.86191 1.19043 4.71216C0.874775 3.58481 0.934176 2.37857 1.73633 1.57642Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("path",{d:"M6.76172 5.41479C7.88883 5.09929 9.09442 5.15888 9.89648 5.96069C10.6986 6.76284 10.758 7.96909 10.4424 9.09644C10.1204 10.2462 9.37617 11.4732 8.3125 12.5369C7.24882 13.6005 6.02187 14.3448 4.87207 14.6667C3.74472 14.9824 2.53848 14.923 1.73633 14.1208C0.934528 13.3188 0.874922 12.1132 1.19043 10.9861C1.51239 9.83623 2.25659 8.60841 3.32031 7.54468C4.38405 6.48096 5.61186 5.73675 6.76172 5.41479Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("path",{d:"M11.1282 1.03052C12.2553 0.715012 13.4609 0.774612 14.263 1.57642C15.0651 2.37857 15.1246 3.58481 14.8089 4.71216C14.4869 5.86196 13.7427 7.08892 12.679 8.15259C11.6153 9.21627 10.3884 9.96048 9.23859 10.2825C8.11124 10.5981 6.90499 10.5387 6.10284 9.73657C5.30106 8.9345 5.24144 7.72892 5.55695 6.60181C5.8789 5.45195 6.62311 4.22414 7.68683 3.1604C8.75056 2.09668 9.97838 1.35248 11.1282 1.03052Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("path",{d:"M6.10284 5.96069C6.90499 5.15855 8.11124 5.09914 9.23859 5.41479C10.3883 5.73673 11.6154 6.48111 12.679 7.54468C13.7427 8.60841 14.4869 9.83623 14.8089 10.9861C15.1245 12.1134 15.0651 13.3188 14.263 14.1208C13.4609 14.9229 12.2555 14.9823 11.1282 14.6667C9.97838 14.3448 8.75055 13.6006 7.68683 12.5369C6.62325 11.4732 5.87888 10.2462 5.55695 9.09644C5.24129 7.96909 5.3007 6.76284 6.10284 5.96069Z",stroke:"#4E6EF2",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),Wr={actions:[{name:"upload",icon:M(gf,{type:"wenda/shangchuanwenjian",color:"#000",size:20}),tip:"\u6587\u4EF6\u4E0A\u4F20"}],switchs:[{label:"\u8054\u7F51\u641C\u7D22",name:"netSearch",type:"switch",defaultValue:!1,enabled:!0,icon:M(ed,{width:16,height:16,className:"aichat-netsearch-icon",style:{color:"#4B8CF7"}})},{label:"\u6DF1\u5EA6\u601D\u8003",name:"reasoning",type:"switch",defaultValue:!0,enabled:!0,icon:M(td,{width:16,height:16})}]},Go={sidebar:{newChat:"\u65B0\u5EFA\u5BF9\u8BDD",newConversation:"\u65B0\u5EFA\u4F1A\u8BDD",unnamedSession:"\u672A\u547D\u540D\u4F1A\u8BDD",noAssistant:"\u672A\u9009\u62E9\u52A9\u624B",searchPlaceholder:"\u641C\u7D22\u5386\u53F2\u8BB0\u5F55",search:"\u641C\u7D22",rename:"\u91CD\u547D\u540D",delete:"\u5220\u9664"},welcome:{defaultPrologue:"\u60A8\u597D\uFF0C\u6B22\u8FCE\u4F7F\u7528\u5C0F\u9CB8\u667A\u80FD\u95EE\u7B54",selectAssistant:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B",searchAssistant:"\u641C\u7D22\u52A9\u624B\u540D\u79F0"},sender:{netSearch:"\u8054\u7F51\u641C\u7D22",deepThinking:"\u6DF1\u5EA6\u601D\u8003",fileUpload:"\u6587\u4EF6\u4E0A\u4F20"},chatHeader:{newConversation:"\u65B0\u5BF9\u8BDD"},disclaimer:"\u5185\u5BB9\u7531AI\u751F\u6210\uFF0C\u4EC5\u4F9B\u53C2\u8003\uFF0C\u4E0D\u4EE3\u8868\u672C\u516C\u53F8\u89C2\u70B9\u3002"},rd={sidebar:{newChat:"New chat",newConversation:"New conversation",unnamedSession:"Unnamed",noAssistant:"No assistant",searchPlaceholder:"Search history",search:"Search",rename:"Rename",delete:"Delete"},welcome:{defaultPrologue:"Hello, welcome to Smart Q&A",selectAssistant:"Please select an assistant",searchAssistant:"Search assistants"},sender:{netSearch:"Web search",deepThinking:"Deep thinking",fileUpload:"Upload file"},chatHeader:{newConversation:"New conversation"},disclaimer:"Content is AI-generated and for reference only."},nd={sidebar:{newChat:"\u65B0\u898F\u4F1A\u8A71",newConversation:"\u65B0\u898F\u4F1A\u8A71",unnamedSession:"\u540D\u524D\u306A\u3057",noAssistant:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u672A\u9078\u629E",searchPlaceholder:"\u5C65\u6B74\u3092\u691C\u7D22",search:"\u691C\u7D22",rename:"\u540D\u524D\u3092\u5909\u66F4",delete:"\u524A\u9664"},welcome:{defaultPrologue:"\u3053\u3093\u306B\u3061\u306F\u3001\u30B9\u30DE\u30FC\u30C8Q&A\u3078\u3088\u3046\u3053\u305D",selectAssistant:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",searchAssistant:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u3092\u691C\u7D22"},sender:{netSearch:"\u30CD\u30C3\u30C8\u691C\u7D22",deepThinking:"\u6DF1\u304F\u8003\u3048\u308B",fileUpload:"\u30D5\u30A1\u30A4\u30EB\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9"},chatHeader:{newConversation:"\u65B0\u898F\u4F1A\u8A71"},disclaimer:"AI\u306B\u3088\u308A\u751F\u6210\u3055\u308C\u305F\u5185\u5BB9\u3067\u3059\u3002\u53C2\u8003\u3068\u3057\u3066\u3054\u5229\u7528\u304F\u3060\u3055\u3044\u3002"},ad={zh:Go,en:rd,ja:nd};function Jc(r){return ad[r]??Go}const eu=xe.createContext({locale:"zh",messages:Go});function ii(){return xe.useContext(eu)}function id({locale:r,children:t}){const e=xe.useMemo(()=>({locale:r,messages:Jc(r)}),[r]);return xe.createElement(eu.Provider,{value:e},t)}function pt(){return pt=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)({}).hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},pt.apply(null,arguments)}function Ee(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function cn(r,t){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},cn(r,t)}function od(r,t){r.prototype=Object.create(t.prototype),r.prototype.constructor=r,cn(r,t)}var Ps=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function sd(r,t){return!!(r===t||Ps(r)&&Ps(t))}function cd(r,t){if(r.length!==t.length)return!1;for(var e=0;e<r.length;e++)if(!sd(r[e],t[e]))return!1;return!0}function bi(r,t){t===void 0&&(t=cd);var e,n=[],a,i=!1;function o(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i&&e===this&&t(s,n)||(a=r.apply(this,s),i=!0,e=this,n=s),a}return o}function ud(r,t){if(r==null)return{};var e={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(t.indexOf(n)!==-1)continue;e[n]=r[n]}return e}var ld=typeof performance=="object"&&typeof performance.now=="function",Ts=ld?function(){return performance.now()}:function(){return Date.now()};function Is(r){cancelAnimationFrame(r.id)}function fd(r,t){var e=Ts();function n(){Ts()-e>=t?r.call(null):a.id=requestAnimationFrame(n)}var a={id:requestAnimationFrame(n)};return a}var Fi=-1;function Rs(r){if(r===void 0&&(r=!1),Fi===-1||r){var t=document.createElement("div"),e=t.style;e.width="50px",e.height="50px",e.overflow="scroll",document.body.appendChild(t),Fi=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Fi}var Gr=null;function Os(r){if(r===void 0&&(r=!1),Gr===null||r){var t=document.createElement("div"),e=t.style;e.width="50px",e.height="50px",e.overflow="scroll",e.direction="rtl";var n=document.createElement("div"),a=n.style;return a.width="100px",a.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Gr="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Gr="negative":Gr="positive-ascending"),document.body.removeChild(t),Gr}return Gr}var dd=150,hd=function(t,e){return t};function pd(r){var t,e=r.getItemOffset,n=r.getEstimatedTotalSize,a=r.getItemSize,i=r.getOffsetForIndexAndAlignment,o=r.getStartIndexForOffset,s=r.getStopIndexForStartIndex,l=r.initInstanceProps,c=r.shouldResetStyleCacheOnItemSizeChange,u=r.validateProps;return t=(function(p){od(d,p);function d(x){var h;return h=p.call(this,x)||this,h._instanceProps=l(h.props,Ee(h)),h._outerRef=void 0,h._resetIsScrollingTimeoutId=null,h.state={instance:Ee(h),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof h.props.initialScrollOffset=="number"?h.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},h._callOnItemsRendered=void 0,h._callOnItemsRendered=bi(function(f,m,v,y){return h.props.onItemsRendered({overscanStartIndex:f,overscanStopIndex:m,visibleStartIndex:v,visibleStopIndex:y})}),h._callOnScroll=void 0,h._callOnScroll=bi(function(f,m,v){return h.props.onScroll({scrollDirection:f,scrollOffset:m,scrollUpdateWasRequested:v})}),h._getItemStyle=void 0,h._getItemStyle=function(f){var m=h.props,v=m.direction,y=m.itemSize,F=m.layout,E=h._getItemStyleCache(c&&y,c&&F,c&&v),C;if(E.hasOwnProperty(f))C=E[f];else{var A=e(h.props,f,h._instanceProps),b=a(h.props,f,h._instanceProps),B=v==="horizontal"||F==="horizontal",w=v==="rtl",S=B?A:0;E[f]=C={position:"absolute",left:w?void 0:S,right:w?S:void 0,top:B?0:A,height:B?"100%":b,width:B?b:"100%"}}return C},h._getItemStyleCache=void 0,h._getItemStyleCache=bi(function(f,m,v){return{}}),h._onScrollHorizontal=function(f){var m=f.currentTarget,v=m.clientWidth,y=m.scrollLeft,F=m.scrollWidth;h.setState(function(E){if(E.scrollOffset===y)return null;var C=h.props.direction,A=y;if(C==="rtl")switch(Os()){case"negative":A=-y;break;case"positive-descending":A=F-v-y;break}return A=Math.max(0,Math.min(A,F-v)),{isScrolling:!0,scrollDirection:E.scrollOffset<A?"forward":"backward",scrollOffset:A,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._onScrollVertical=function(f){var m=f.currentTarget,v=m.clientHeight,y=m.scrollHeight,F=m.scrollTop;h.setState(function(E){if(E.scrollOffset===F)return null;var C=Math.max(0,Math.min(F,y-v));return{isScrolling:!0,scrollDirection:E.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!1}},h._resetIsScrollingDebounced)},h._outerRefSetter=function(f){var m=h.props.outerRef;h._outerRef=f,typeof m=="function"?m(f):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=f)},h._resetIsScrollingDebounced=function(){h._resetIsScrollingTimeoutId!==null&&Is(h._resetIsScrollingTimeoutId),h._resetIsScrollingTimeoutId=fd(h._resetIsScrolling,dd)},h._resetIsScrolling=function(){h._resetIsScrollingTimeoutId=null,h.setState({isScrolling:!1},function(){h._getItemStyleCache(-1,null)})},h}d.getDerivedStateFromProps=function(h,f){return vd(h,f),u(h),null};var g=d.prototype;return g.scrollTo=function(h){h=Math.max(0,h),this.setState(function(f){return f.scrollOffset===h?null:{scrollDirection:f.scrollOffset<h?"forward":"backward",scrollOffset:h,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},g.scrollToItem=function(h,f){f===void 0&&(f="auto");var m=this.props,v=m.itemCount,y=m.layout,F=this.state.scrollOffset;h=Math.max(0,Math.min(h,v-1));var E=0;if(this._outerRef){var C=this._outerRef;y==="vertical"?E=C.scrollWidth>C.clientWidth?Rs():0:E=C.scrollHeight>C.clientHeight?Rs():0}this.scrollTo(i(this.props,h,f,F,this._instanceProps,E))},g.componentDidMount=function(){var h=this.props,f=h.direction,m=h.initialScrollOffset,v=h.layout;if(typeof m=="number"&&this._outerRef!=null){var y=this._outerRef;f==="horizontal"||v==="horizontal"?y.scrollLeft=m:y.scrollTop=m}this._callPropsCallbacks()},g.componentDidUpdate=function(){var h=this.props,f=h.direction,m=h.layout,v=this.state,y=v.scrollOffset,F=v.scrollUpdateWasRequested;if(F&&this._outerRef!=null){var E=this._outerRef;if(f==="horizontal"||m==="horizontal")if(f==="rtl")switch(Os()){case"negative":E.scrollLeft=-y;break;case"positive-ascending":E.scrollLeft=y;break;default:var C=E.clientWidth,A=E.scrollWidth;E.scrollLeft=A-C-y;break}else E.scrollLeft=y;else E.scrollTop=y}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Is(this._resetIsScrollingTimeoutId)},g.render=function(){var h=this.props,f=h.children,m=h.className,v=h.direction,y=h.height,F=h.innerRef,E=h.innerElementType,C=h.innerTagName,A=h.itemCount,b=h.itemData,B=h.itemKey,w=B===void 0?hd:B,S=h.layout,_=h.outerElementType,P=h.outerTagName,I=h.style,$=h.useIsScrolling,j=h.width,H=this.state.isScrolling,V=v==="horizontal"||S==="horizontal",G=V?this._onScrollHorizontal:this._onScrollVertical,X=this._getRangeToRender(),O=X[0],N=X[1],R=[];if(A>0)for(var T=O;T<=N;T++)R.push(gi(f,{data:b,key:w(T,b),index:T,isScrolling:$?H:void 0,style:this._getItemStyle(T)}));var U=n(this.props,this._instanceProps);return gi(_||P||"div",{className:m,onScroll:G,ref:this._outerRefSetter,style:pt({position:"relative",height:y,width:j,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:v},I)},gi(E||C||"div",{children:R,ref:F,style:{height:V?"100%":U,pointerEvents:H?"none":void 0,width:V?U:"100%"}}))},g._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var h=this.props.itemCount;if(h>0){var f=this._getRangeToRender(),m=f[0],v=f[1],y=f[2],F=f[3];this._callOnItemsRendered(m,v,y,F)}}if(typeof this.props.onScroll=="function"){var E=this.state,C=E.scrollDirection,A=E.scrollOffset,b=E.scrollUpdateWasRequested;this._callOnScroll(C,A,b)}},g._getRangeToRender=function(){var h=this.props,f=h.itemCount,m=h.overscanCount,v=this.state,y=v.isScrolling,F=v.scrollDirection,E=v.scrollOffset;if(f===0)return[0,0,0,0];var C=o(this.props,E,this._instanceProps),A=s(this.props,C,E,this._instanceProps),b=!y||F==="backward"?Math.max(1,m):1,B=!y||F==="forward"?Math.max(1,m):1;return[Math.max(0,C-b),Math.max(0,Math.min(f-1,A+B)),C,A]},d})(ef),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var vd=function(t,e){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,e.instance},xd=50,Jr=function(t,e,n){var a=t,i=a.itemSize,o=n.itemMetadataMap,s=n.lastMeasuredIndex;if(e>s){var l=0;if(s>=0){var c=o[s];l=c.offset+c.size}for(var u=s+1;u<=e;u++){var p=i(u);o[u]={offset:l,size:p},l+=p}n.lastMeasuredIndex=e}return o[e]},gd=function(t,e,n){var a=e.itemMetadataMap,i=e.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=n?tu(t,e,i,0,n):md(t,e,Math.max(0,i),n)},tu=function(t,e,n,a,i){for(;a<=n;){var o=a+Math.floor((n-a)/2),s=Jr(t,o,e).offset;if(s===i)return o;s<i?a=o+1:s>i&&(n=o-1)}return a>0?a-1:0},md=function(t,e,n,a){for(var i=t.itemCount,o=1;n<i&&Jr(t,n,e).offset<a;)n+=o,o*=2;return tu(t,e,Math.min(n,i-1),Math.floor(n/2),a)},Ms=function(t,e){var n=t.itemCount,a=e.itemMetadataMap,i=e.estimatedItemSize,o=e.lastMeasuredIndex,s=0;if(o>=n&&(o=n-1),o>=0){var l=a[o];s=l.offset+l.size}var c=n-o-1,u=c*i;return s+u},yd=pd({getItemOffset:function(t,e,n){return Jr(t,e,n).offset},getItemSize:function(t,e,n){return n.itemMetadataMap[e].size},getEstimatedTotalSize:Ms,getOffsetForIndexAndAlignment:function(t,e,n,a,i,o){var s=t.direction,l=t.height,c=t.layout,u=t.width,p=s==="horizontal"||c==="horizontal",d=p?u:l,g=Jr(t,e,i),x=Ms(t,i),h=Math.max(0,Math.min(x-d,g.offset)),f=Math.max(0,g.offset-d+g.size+o);switch(n==="smart"&&(a>=f-d&&a<=h+d?n="auto":n="center"),n){case"start":return h;case"end":return f;case"center":return Math.round(f+(h-f)/2);case"auto":default:return a>=f&&a<=h?a:a<f?f:h}},getStartIndexForOffset:function(t,e,n){return gd(t,n,e)},getStopIndexForStartIndex:function(t,e,n,a){for(var i=t.direction,o=t.height,s=t.itemCount,l=t.layout,c=t.width,u=i==="horizontal"||l==="horizontal",p=u?c:o,d=Jr(t,e,a),g=n+p,x=d.offset+d.size,h=e;h<s-1&&x<g;)h++,x+=Jr(t,h,a).size;return h},initInstanceProps:function(t,e){var n=t,a=n.estimatedItemSize,i={itemMetadataMap:{},estimatedItemSize:a||xd,lastMeasuredIndex:-1};return e.resetAfterIndex=function(o,s){s===void 0&&(s=!0),i.lastMeasuredIndex=Math.min(i.lastMeasuredIndex,o-1),e._getItemStyleCache(-1),s&&e.forceUpdate()},i},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}});function Cd({isActive:r,isNew:t,isDisabled:e,data:n,eventsEmit:a,styles:i={},assistantList:o=[]}){const{messages:s}=ii(),[l,c]=fe(!1),u=(i==null?void 0:i.colors)||{},p=Ve(()=>{const m=n==null?void 0:n.configId;if(!m||!o||o.length===0)return s.sidebar.noAssistant;const v=o.find(y=>String(y==null?void 0:y.id)===String(m));if(!v)return s.sidebar.noAssistant;if(v!=null&&v.name)return v.name;try{const y=typeof v.configJson=="string"?JSON.parse(v.configJson):v.configJson;return(y==null?void 0:y.config_name)||s.sidebar.noAssistant}catch{return s.sidebar.noAssistant}},[o,n==null?void 0:n.configId,s.sidebar.noAssistant]),d=[{key:"rename",icon:M(Zf,{size:12}),label:s.sidebar.rename,onClick:m=>{m.domEvent.stopPropagation(),a&&a("conversations:rename_icon_clicked",n)}},{key:"delete",icon:M(Jf,{size:12}),label:s.sidebar.delete,danger:!0,onClick:m=>{m.domEvent.stopPropagation(),a&&a("conversations:delete_icon_clicked",n)}}],g=r?u.activeItemBg||"#f0f4ff":l?u.itemHoverBg||"#f5f7fa":u.itemBg||"transparent",x=r?u.activeItemText||u.primary||"#0122ff":u.itemText||"#333",h=r?u.activeItemBorder||u.primary||"#0122ff":"transparent",f=m=>{const v=_s(),y=_s(m);return v.isSame(y,"day")?y.format("HH:mm"):y.format("MM-DD HH:mm")};return ne("div",{className:"flex relative items-center justify-between mb-2 px-4 py-3 rounded-md transition-colors cursor-pointer select-none",onClick:()=>!e&&a&&a("conversation:item_click",n),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),style:{minHeight:48,background:g,color:x,border:`1px solid ${h}`,...i.item,opacity:e?.5:1},children:[ne("div",{className:"flex flex-col gap-y-2 flex-1 min-w-0",children:[M("span",{className:"truncate text-sm max-w-[160px] font-medium",title:n.label||s.sidebar.unnamedSession,style:{color:x,fontSize:"14px",lineHeight:"1.4"},children:n.label||s.sidebar.unnamedSession}),ne("div",{className:"flex items-center justify-between gap-2",children:[M("span",{className:"text-xs truncate flex-1",style:{color:r?u.activeItemTextSecondary||"#666":u.itemTextSecondary||"#666",fontSize:"12px",lineHeight:"1.3"},children:p}),n.gmtModified&&M("span",{className:"text-xs flex-shrink-0",style:{color:r?u.activeItemTextSecondary||"#999":u.itemTextSecondary||"#999",fontSize:"12px",lineHeight:"1.3"},children:f(n.gmtModified)})]})]}),!e&&l&&!t&&M("div",{className:"absolute top-2 right-3",children:M(df,{menu:{items:d},trigger:["click"],placement:"bottomRight",children:M(Xf,{size:16,className:"text-gray-600 hover:text-gray-800",style:{cursor:"pointer",color:r?u.activeItemTextSecondary||"#999":u.itemTextSecondary||"#999"},onClick:m=>m.stopPropagation()})})})]})}function bd(r,t=[{label:"\u5F53\u5929",dayPeriod:1}]){const e=new Date,n={other:[]};return r.forEach(a=>{const i=new Date(a.gmtModified),o=Math.floor((+e-+i)/(1e3*60*60*24));let s=!1;for(const l of t)if(o<=l.dayPeriod){n[l.label]||(n[l.label]=[]),n[l.label].push(a),s=!0;break}s||n.other.push(a)}),n}/*! @license Rematrix v0.2.2
|
|
32
|
+
|
|
33
|
+
Copyright 2018 Fisssion LLC.
|
|
34
|
+
|
|
35
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
37
|
+
in the Software without restriction, including without limitation the rights
|
|
38
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
39
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
40
|
+
furnished to do so, subject to the following conditions:
|
|
41
|
+
|
|
42
|
+
The above copyright notice and this permission notice shall be included in
|
|
43
|
+
all copies or substantial portions of the Software.
|
|
44
|
+
|
|
45
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
46
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
47
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
48
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
49
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
50
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
51
|
+
THE SOFTWARE.
|
|
52
|
+
*/function Wi(r){if(r.constructor!==Array)throw new TypeError("Expected array.");if(r.length===16)return r;if(r.length===6){var t=pn();return t[0]=r[0],t[1]=r[1],t[4]=r[2],t[5]=r[3],t[12]=r[4],t[13]=r[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function pn(){for(var r=[],t=0;t<16;t++)t%5==0?r.push(1):r.push(0);return r}function Fd(r,t){for(var e=Wi(r),n=Wi(t),a=[],i=0;i<4;i++)for(var o=[e[i],e[i+4],e[i+8],e[i+12]],s=0;s<4;s++){var l=s*4,c=[n[l],n[l+1],n[l+2],n[l+3]],u=o[0]*c[0]+o[1]*c[1]+o[2]*c[2]+o[3]*c[3];a[i+l]=u}return a}function Ed(r){if(typeof r=="string"){var t=r.match(/matrix(3d)?\(([^)]+)\)/);if(t){var e=t[2].split(", ").map(parseFloat);return Wi(e)}}return pn()}function Ad(r){var t=pn();return t[0]=r,t}function wd(r){var t=pn();return t[5]=r,t}function Bd(r){var t=pn();return t[12]=r,t}function Sd(r){var t=pn();return t[13]=r,t}var aa=function(r){return typeof r=="number"},ru=function(r){return typeof r=="function"},nu=function(r){return Object.prototype.toString.call(r)==="[object Object]"},nn=function(r){return Array.prototype.slice.apply(r)},au=function(r){var t=r.reduce(function(e,n){return e[n]=(e[n]||0)+1,e},{});return Object.keys(t).filter(function(e){return t[e]>1})};function wr(r){return[].slice.call(arguments,1).forEach(function(t){if(t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}),r}var Gi,Ki=function(r,t,e){return r+(t-r)*e},iu={__proto__:null,isNumber:aa,isFunction:ru,isObject:nu,toArray:nn,getDuplicateValsAsStrings:au,assign:wr,tweenProp:Ki},Ko="data-flip-id",Xo="data-inverse-flip-id",Yo="data-portal-key",_d="data-exit-container",Gn={__proto__:null,DATA_FLIP_ID:Ko,DATA_INVERSE_FLIP_ID:Xo,DATA_FLIP_CONFIG:"data-flip-config",DATA_PORTAL_KEY:Yo},Xi={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},Ns=function(r){return nu(r)?r:Object.keys(Xi).indexOf(r)>-1?Xi[r]:{}};typeof window<"u"&&(Gi=window.requestAnimationFrame);var Dd=Gi=Gi||function(r){window.setTimeout(r,1e3/60)},kd=Date.now(),Pd=typeof performance=="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()-kd};function ou(r,t){var e=r.indexOf(t);e!==-1&&r.splice(e,1)}var Td=(function(){function r(){}return r.prototype.run=function(){var t=this;Dd(function(){t.springSystem.loop(Pd())})},r})(),Ei=function(){this.position=0,this.velocity=0},Id=0,jt=.001,Rd=(function(){function r(e){this._id="s"+Id++,this._springSystem=e,this.listeners=[],this._startValue=0,this._currentState=new Ei,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new Ei,this._restSpeedThreshold=.001,this._tempState=new Ei,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=r.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(e){return this._springConfig=e,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(e){return Math.abs(this._endValue-e.position)},t.setEndValue=function(e){if(e===this._endValue)return this;if(this.prevEndValue=e,this._endValue===e&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=e,this._springSystem.activateSpring(this.getId());for(var n=0,a=this.listeners.length;n<a;n++){var i=this.listeners[n].onSpringEndStateChange;i&&i(this)}return this},t.setVelocity=function(e){return e===this._currentState.velocity||(this._currentState.velocity=e,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(e){this._startValue=e,this._currentState.position=e;for(var n=0,a=this.listeners.length;n<a;n++){var i=this.listeners[n];i.onSpringUpdate&&i.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(e){return this._overshootClampingEnabled=e,this},t.isOvershooting=function(){var e=this._startValue,n=this._endValue;return this._springConfig.tension>0&&(e<n&&this.getCurrentValue()>n||e>n&&this.getCurrentValue()<n)},t.advance=function(e,n){var a=this.isAtRest();if(!a||!this._wasAtRest){var i=n;n>.064&&(i=.064),this._timeAccumulator+=i;for(var o,s,l,c,u,p,d=this._springConfig.tension,g=this._springConfig.friction,x=this._currentState.position,h=this._currentState.velocity,f=this._tempState.position,m=this._tempState.velocity;this._timeAccumulator>=jt;)this._timeAccumulator-=jt,this._timeAccumulator<jt&&(this._previousState.position=x,this._previousState.velocity=h),s=d*(this._endValue-f)-g*h,c=d*(this._endValue-(f=x+(o=h)*jt*.5))-g*(m=h+s*jt*.5),p=d*(this._endValue-(f=x+(l=m)*jt*.5))-g*(m=h+c*jt*.5),f=x+(u=m)*jt,x+=1/6*(o+2*(l+u)+(m=h+p*jt))*jt,h+=1/6*(s+2*(c+p)+(d*(this._endValue-f)-g*m))*jt;this._tempState.position=f,this._tempState.velocity=m,this._currentState.position=x,this._currentState.velocity=h,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/jt),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),a=!0);var v=!1;this._wasAtRest&&(this._wasAtRest=!1,v=!0);var y=!1;a&&(this._wasAtRest=!0,y=!0),this.notifyPositionUpdated(v,y)}},t.notifyPositionUpdated=function(e,n){var a=this;this.listeners.filter(Boolean).forEach(function(i){e&&i.onSpringActivate&&!a._onActivateCalled&&(i.onSpringActivate(a),a._onActivateCalled=!0),i.onSpringUpdate&&i.onSpringUpdate(a),n&&i.onSpringAtRest&&i.onSpringAtRest(a)})},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||this._springConfig.tension===0)},t._interpolate=function(e){this._currentState.position=this._currentState.position*e+this._previousState.position*(1-e),this._currentState.velocity=this._currentState.velocity*e+this._previousState.velocity*(1-e)},t.addListener=function(e){return this.listeners.push(e),this},t.addOneTimeListener=function(e){var n=this;return Object.keys(e).forEach(function(a){var i;e[a]=(i=e[a],function(){i.apply(void 0,[].slice.call(arguments)),n.removeListener(e)})}),this.listeners.push(e),this},t.removeListener=function(e){return ou(this.listeners,e),this},r})(),su=(function(){function r(e){this.looper=e||new Td,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=r.prototype;return t.createSpring=function(e,n){return this.createSpringWithConfig({tension:e,friction:n})},t.createSpringWithConfig=function(e){var n=new Rd(this);return this.registerSpring(n),n.setSpringConfig(e),n},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(e){this._springRegistry[e.getId()]=e},t.deregisterSpring=function(e){ou(this._activeSprings,e),delete this._springRegistry[e.getId()]},t.advance=function(e,n){for(var a=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach(function(o){o.systemShouldAdvance()?o.advance(e/1e3,n/1e3):a._idleSpringIndices.push(a._activeSprings.indexOf(o))});this._idleSpringIndices.length>0;){var i=this._idleSpringIndices.pop();i>=0&&this._activeSprings.splice(i,1)}},t.loop=function(e){var n;this._lastTimeMillis===-1&&(this._lastTimeMillis=e-1);var a=e-this._lastTimeMillis;this._lastTimeMillis=e;var i=0,o=this.listeners.length;for(i=0;i<o;i++)(n=this.listeners[i]).onBeforeIntegrate&&n.onBeforeIntegrate(this);for(this.advance(e,a),this._activeSprings.length===0&&(this._isIdle=!0,this._lastTimeMillis=-1),i=0;i<o;i++)(n=this.listeners[i]).onAfterIntegrate&&n.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(e){var n=this._springRegistry[e];this._activeSprings.indexOf(n)===-1&&this._activeSprings.push(n),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},r})(),Od=new su,cu=function(r){var t=r.springConfig,e=t.overshootClamping,n=r.getOnUpdateFunc,a=r.onAnimationEnd,i=r.onSpringActivate,o=Od.createSpring(t.stiffness,t.damping);o.setOvershootClampingEnabled(!!e);var s={onSpringActivate:i,onSpringAtRest:function(){o.destroy(),a()},onSpringUpdate:n({spring:o,onAnimationEnd:a})};return o.addListener(s),o},Ls=function(r){var t=cu(r);return t.setEndValue(1),t},$s=function(r,t){if(t===void 0&&(t={}),r&&r.length){t.reverse&&r.reverse();var e,n=typeof(e=t.speed)!="number"?1.1:1+Math.min(Math.max(5*e,0),5),a=1/Math.max(Math.min(r.length,100),10),i=r.map(function(o,s){var l=o.getOnUpdateFunc;return o.getOnUpdateFunc=function(c){var u=l(c);return function(p){var d=p.getCurrentValue();(d=d<.01?0:d>.99?1:d)>=a&&i[s+1]&&i[s+1](Math.max(Math.min(d*n,1),0)),u(p)}},o}).map(function(o){var s=cu(o);if(s)return s.setEndValue.bind(s)}).filter(Boolean);i[0]&&i[0](1)}},zs=function(r){return[0,1,4,5,12,13].map(function(t){return r[t]})},js=function(r){return r.top<window.innerHeight&&r.bottom>0&&r.left<window.innerWidth&&r.right>0};function Hs(r){return JSON.parse(r.dataset.flipConfig||"{}")}var uu=function(r,t){var e;return wr(r,((e={})[t[0]]=t[1],e))},lu=function(r,t){return nn(t?document.querySelectorAll("["+Yo+'="'+t+'"]'):r.querySelectorAll("["+Ko+"]"))},fu=function(r){return r.map(function(t){return[t,t.getBoundingClientRect()]})},Md=function(r){var t=r.cachedOrderedFlipIds,e=t===void 0?[]:t,n=r.inProgressAnimations,a=n===void 0?{}:n,i=r.flippedElementPositionsBeforeUpdate,o=i===void 0?{}:i,s=r.flipCallbacks,l=s===void 0?{}:s,c=r.containerEl,u=r.applyTransformOrigin,p=r.spring,d=r.debug,g=r.portalKey,x=r.staggerConfig,h=x===void 0?{}:x,f=r.decisionData,m=f===void 0?{}:f,v=r.handleEnterUpdateDelete,y=r.onComplete,F=r.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var E,C=fu(lu((E={element:c,portalKey:g}).element,E.portalKey)).map(function(V){var G=V[0],X=V[1],O=window.getComputedStyle(G);return[G.dataset.flipId,{element:G,rect:X,opacity:parseFloat(O.opacity),transform:O.transform}]}).reduce(uu,{}),A=(function(V){var G=V.containerEl,X=V.portalKey;return X?(function(O){return function(N){return nn(document.querySelectorAll("["+Yo+'="'+O+'"]'+N))}})(X):G?(function(O){var N=Math.random().toFixed(5);return O.dataset.flipperId=N,function(R){return nn(O.querySelectorAll('[data-flipper-id="'+N+'"] '+R))}})(G):function(){return[]}})({containerEl:c,portalKey:g}),b=(function(V){return function(G){return V("["+Ko+'="'+G+'"]')[0]}})(A),B=function(V){return o[V]&&C[V]},w=Object.keys(o).concat(Object.keys(C)).filter(function(V){return!B(V)}),S={flipCallbacks:l,getElement:b,flippedElementPositionsBeforeUpdate:o,flippedElementPositionsAfterUpdate:C,inProgressAnimations:a,decisionData:m},_=(function(V){var G,X=V.unflippedIds,O=V.flipCallbacks,N=V.getElement,R=V.flippedElementPositionsBeforeUpdate,T=V.flippedElementPositionsAfterUpdate,U=V.inProgressAnimations,K=V.decisionData,Z=X.filter(function(oe){return T[oe]}).filter(function(oe){return O[oe]&&O[oe].onAppear}),Q=X.filter(function(oe){return R[oe]&&O[oe]&&O[oe].onExit}),J=new Promise(function(oe){G=oe}),pe=[],ke=0,Ae=Q.map(function(oe,Fe){var Re=R[oe].domDataForExitAnimations,ve=Re.element,Ze=Re.parent,Ge=Re.childPosition,Ke=Ge.top,et=Ge.left,be=Ge.width,me=Ge.height;getComputedStyle(Ze).position==="static"&&(Ze.style.position="relative"),ve.style.transform="matrix(1, 0, 0, 1, 0, 0)",ve.style.position="absolute",ve.style.top=Ke+"px",ve.style.left=et+"px",ve.style.height=me+"px",ve.style.width=be+"px";var De=pe.filter(function(Ne){return Ne[0]===Ze})[0];De||(De=[Ze,document.createDocumentFragment()],pe.push(De)),De[1].appendChild(ve),ke+=1;var Oe=function(){try{Ze.removeChild(ve)}catch{}finally{(ke-=1)==0&&G()}};return U[oe]={stop:Oe},function(){return O[oe].onExit(ve,Fe,Oe,K)}});return pe.forEach(function(oe){oe[0].appendChild(oe[1])}),Ae.length||G(),{hideEnteringElements:function(){Z.forEach(function(oe){var Fe=N(oe);Fe&&(Fe.style.opacity="0")})},animateEnteringElements:function(){Z.forEach(function(oe,Fe){var Re=N(oe);Re&&O[oe].onAppear(Re,Fe,K)})},animateExitingElements:function(){return Ae.forEach(function(oe){return oe()}),J}}})(wr({},S,{unflippedIds:w})),P=_.hideEnteringElements,I=_.animateEnteringElements,$=_.animateExitingElements,j=wr({},S,{containerEl:c,flippedIds:e.filter(B),applyTransformOrigin:u,spring:p,debug:d,staggerConfig:h,scopedSelector:A,onComplete:y});F&&F(c,m);var H=(function(V){var G,X=V.flippedIds,O=V.flipCallbacks,N=V.inProgressAnimations,R=V.flippedElementPositionsBeforeUpdate,T=V.flippedElementPositionsAfterUpdate,U=V.applyTransformOrigin,K=V.spring,Z=V.getElement,Q=V.debug,J=V.staggerConfig,pe=J===void 0?{}:J,ke=V.decisionData,Ae=ke===void 0?{}:ke,oe=V.onComplete,Fe=V.containerEl,Re=new Promise(function(ee){G=ee});if(oe&&Re.then(function(){return oe(Fe,Ae)}),!X.length)return function(){return G([]),Re};var ve=[],Ze=Z(X[0]),Ge=Ze?Ze.ownerDocument.querySelector("body"):document.querySelector("body");au(X);var Ke=X.map(function(ee){var ye=R[ee].rect,Je=T[ee].rect,bt=R[ee].opacity,Ft=T[ee].opacity,Dt=Je.width<1||Je.height<1,Te=T[ee].element;if(!js(ye)&&!js(Je)||!Te)return!1;var kt,nr,yr,Et=Hs(Te),pr=(yr=(nr=(kt={flipperSpring:K,flippedSpring:Et.spring})===void 0?{}:kt).flippedSpring,wr({},Xi.noWobble,Ns(nr.flipperSpring),Ns(yr))),ar=Et.stagger===!0?"default":Et.stagger,Dr={element:Te,id:ee,stagger:ar,springConfig:pr};if(O[ee]&&O[ee].shouldFlip&&!O[ee].shouldFlip(Ae.previous,Ae.current))return!1;var ir=Math.abs(ye.left-Je.left)+Math.abs(ye.top-Je.top),kr=Math.abs(ye.width-Je.width)+Math.abs(ye.height-Je.height),Cr=Math.abs(Ft-bt);if(ye.height===0&&Je.height===0||ye.width===0&&Je.width===0||ir<.5&&kr<.5&&Cr<.01)return!1;var Pr=Ed(T[ee].transform),Pt={matrix:Pr},xt={matrix:[]},At=[Pr];Et.translate&&(At.push(Bd(ye.left-Je.left)),At.push(Sd(ye.top-Je.top))),Et.scale&&(At.push(Ad(Math.max(ye.width,1)/Math.max(Je.width,1))),At.push(wd(Math.max(ye.height,1)/Math.max(Je.height,1)))),Et.opacity&&(xt.opacity=bt,Pt.opacity=Ft);var Tt=[];if(!O[ee]||!O[ee].shouldInvert||O[ee].shouldInvert(Ae.previous,Ae.current)){var Wt=(function(Ce,Ye){return nn(Ce.querySelectorAll("["+Xo+'="'+Ye+'"]'))})(Te,ee);Tt=Wt.map(function(Ce){return[Ce,Hs(Ce)]})}xt.matrix=zs(At.reduce(Fd)),Pt.matrix=zs(Pt.matrix);var $t,We=(function(Ce){var Ye=Ce.element,Gt=Ce.invertedChildren,Ie=Ce.body;return function(Le){var it=Le.matrix,lt=Le.opacity,Kt=Le.forceMinVals;if(aa(lt)&&(Ye.style.opacity=lt+""),Kt&&(Ye.style.minHeight="1px",Ye.style.minWidth="1px"),it){var jr=(function(It){return"matrix("+It.join(", ")+")"})(it);Ye.style.transform=jr,Gt&&(function(It){var or=It.matrix,Hr=It.body;It.invertedChildren.forEach(function(Vr){var qr=Vr[0],St=Vr[1];if(Hr.contains(qr)){var Hn=or[0],Vn=or[3],xi=or[5],sr={translateX:0,translateY:0,scaleX:1,scaleY:1},br="";St.translate&&(sr.translateX=-or[4]/Hn,sr.translateY=-xi/Vn,br+="translate("+sr.translateX+"px, "+sr.translateY+"px)"),St.scale&&(sr.scaleX=1/Hn,sr.scaleY=1/Vn,br+=" scale("+sr.scaleX+", "+sr.scaleY+")"),qr.style.transform=br}})})({invertedChildren:Gt,matrix:it,body:Ie})}}})({element:Te,invertedChildren:Tt,body:Ge});if(O[ee]&&O[ee].onComplete){var le=O[ee].onComplete;$t=function(){return le(Te,Ae)}}var Xe=aa(xt.opacity)&&aa(Pt.opacity)&&xt.opacity!==Pt.opacity,gt=!1;return wr({},Dr,{stagger:ar,springConfig:pr,getOnUpdateFunc:function(Ce){var Ye=Ce.spring,Gt=Ce.onAnimationEnd;return N[ee]={destroy:Ye.destroy.bind(Ye),onAnimationEnd:Gt},function(Ie){O[ee]&&O[ee].onSpringUpdate&&O[ee].onSpringUpdate(Ie.getCurrentValue()),gt||(gt=!0,O[ee]&&O[ee].onStart&&O[ee].onStart(Te,Ae));var Le=Ie.getCurrentValue();if(Ge.contains(Te)){var it={matrix:[]};it.matrix=xt.matrix.map(function(lt,Kt){return Ki(lt,Pt.matrix[Kt],Le)}),Xe&&(it.opacity=Ki(xt.opacity,Pt.opacity,Le)),We(it)}else Ie.destroy()}},initializeFlip:function(){We({matrix:xt.matrix,opacity:Xe?xt.opacity:void 0,forceMinVals:Dt}),O[ee]&&O[ee].onStartImmediate&&O[ee].onStartImmediate(Te,Ae),Et.transformOrigin?Te.style.transformOrigin=Et.transformOrigin:U&&(Te.style.transformOrigin="0 0"),Tt.forEach(function(Ce){var Ye=Ce[0],Gt=Ce[1];Gt.transformOrigin?Ye.style.transformOrigin=Gt.transformOrigin:U&&(Ye.style.transformOrigin="0 0")})},onAnimationEnd:function(Ce){delete N[ee],ru($t)&&$t(),Te.style.transform="",Tt.forEach(function(Ye){Ye[0].style.transform=""}),Dt&&Te&&(Te.style.minHeight="",Te.style.minWidth=""),Ce||(ve.push(ee),ve.length>=Ke.length&&G(ve))},delayUntil:Et.delayUntil})}).filter(Boolean);if(Ke.forEach(function(ee){return(0,ee.initializeFlip)()}),Q)return function(){};var et=Ke.filter(function(ee){return ee.delayUntil&&(ye=ee.delayUntil,Ke.filter(function(Je){return Je.id===ye}).length);var ye}),be={},me={},De={};et.forEach(function(ee){ee.stagger?(De[ee.stagger]=!0,me[ee.delayUntil]?me[ee.delayUntil].push(ee.stagger):me[ee.delayUntil]=[ee.stagger]):be[ee.delayUntil]?be[ee.delayUntil].push(ee):be[ee.delayUntil]=[ee]});var Oe=Ke.filter(function(ee){return ee.stagger}).reduce(function(ee,ye){return ee[ye.stagger]?ee[ye.stagger].push(ye):ee[ye.stagger]=[ye],ee},{}),Ne=Ke.filter(function(ee){return et.indexOf(ee)===-1});return Ne.forEach(function(ee){ee.onSpringActivate=function(){be[ee.id]&&be[ee.id].forEach(Ls),me[ee.id]&&Object.keys(me[ee.id].reduce(function(ye,Je){var bt;return wr(ye,((bt={})[Je]=!0,bt))},{})).forEach(function(ye){$s(Oe[ye],pe[ye])})}}),function(){return Ke.length||G([]),Ne.filter(function(ee){return!ee.stagger}).forEach(Ls),Object.keys(Oe).forEach(function(ee){De[ee]||$s(Oe[ee],pe[ee])}),Re}})(j);v?v({hideEnteringElements:P,animateEnteringElements:I,animateExitingElements:$,animateFlippedElements:H}):(P(),$().then(I),H())}},Nd=function(r){var t=r.element,e=r.flipCallbacks,n=e===void 0?{}:e,a=r.inProgressAnimations,i=a===void 0?{}:a,o=lu(t,r.portalKey),s=nn(t.querySelectorAll("["+Xo+"]")),l={},c=[],u={};o.filter(function(g){return n&&n[g.dataset.flipId]&&n[g.dataset.flipId].onExit}).forEach(function(g){var x=g.parentNode;if(g.closest){var h=g.closest("["+_d+"]");h&&(x=h)}var f=c.findIndex(function(m){return m[0]===x});f===-1&&(c.push([x,x.getBoundingClientRect()]),f=c.length-1),l[g.dataset.flipId]=c[f][1],u[g.dataset.flipId]=x});var p=fu(o),d=p.map(function(g){var x=g[0],h=g[1],f={};if(n&&n[x.dataset.flipId]&&n[x.dataset.flipId].onExit){var m=l[x.dataset.flipId];wr(f,{element:x,parent:u[x.dataset.flipId],childPosition:{top:h.top-m.top,left:h.left-m.left,width:h.width,height:h.height}})}return[x.dataset.flipId,{rect:h,opacity:parseFloat(window.getComputedStyle(x).opacity||"1"),domDataForExitAnimations:f}]}).reduce(uu,{});return(function(g,x){Object.keys(g).forEach(function(h){g[h].destroy&&g[h].destroy(),g[h].onAnimationEnd&&g[h].onAnimationEnd(!0),delete g[h]}),x.forEach(function(h){h.style.transform="",h.style.opacity=""})})(i,o.concat(s)),{flippedElementPositions:d,cachedOrderedFlipIds:p.map(function(g){return g[0].dataset.flipId})}};new su;function Ya(){return Ya=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},Ya.apply(this,arguments)}function Yi(r,t){return Yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Yi(r,t)}function du(r,t){if(r==null)return{};var e,n,a={},i=Object.keys(r);for(n=0;n<i.length;n++)t.indexOf(e=i[n])>=0||(a[e]=r[e]);return a}var hu=Nn({}),pu=Nn("portal"),vu=(function(r){var t,e;function n(){for(var i,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return(i=r.call.apply(r,[this].concat(s))||this).inProgressAnimations={},i.flipCallbacks={},i.el=void 0,i}e=r,(t=n).prototype=Object.create(e.prototype),t.prototype.constructor=t,Yi(t,e);var a=n.prototype;return a.getSnapshotBeforeUpdate=function(i){return i.flipKey!==this.props.flipKey&&this.el?Nd({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},a.componentDidUpdate=function(i,o,s){this.props.flipKey!==i.flipKey&&this.el&&Md({flippedElementPositionsBeforeUpdate:s.flippedElementPositions,cachedOrderedFlipIds:s.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:i.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},a.render=function(){var i=this,o=this.props,s=o.portalKey,l=xe.createElement(hu.Provider,{value:this.flipCallbacks},xe.createElement(o.element,{className:o.className,ref:function(c){return i.el=c}},this.props.children));return s&&(l=xe.createElement(pu.Provider,{value:s},l)),l},n})(nf);vu.defaultProps={applyTransformOrigin:!0,element:"div"};var Ld=["children","flipId","inverseFlipId","portalKey"],$d=["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"],Vs=function(r){var t,e=r.children,n=r.flipId,a=r.inverseFlipId,i=r.portalKey,o=du(r,Ld),s=e,l=(function(u){return typeof u=="function"})(s);if(!l)try{s=tf.only(e)}catch{throw new Error("Each Flipped component must wrap a single child")}o.scale||o.translate||o.opacity||iu.assign(o,{translate:!0,scale:!0,opacity:!0});var c=((t={})[Gn.DATA_FLIP_CONFIG]=JSON.stringify(o),t);return n!==void 0?c[Gn.DATA_FLIP_ID]=String(n):a&&(c[Gn.DATA_INVERSE_FLIP_ID]=String(a)),i!==void 0&&(c[Gn.DATA_PORTAL_KEY]=i),l?s(c):rf(s,c)},xu=function(r){var t=r.children,e=r.flipId,n=r.shouldFlip,a=r.shouldInvert,i=r.onAppear,o=r.onStart,s=r.onStartImmediate,l=r.onComplete,c=r.onExit,u=r.onSpringUpdate,p=du(r,$d);return t?p.inverseFlipId?xe.createElement(Vs,Ya({},p),t):xe.createElement(pu.Consumer,null,function(d){return xe.createElement(hu.Consumer,null,function(g){return iu.isObject(g)&&e&&(g[e]={shouldFlip:n,shouldInvert:a,onAppear:i,onStart:o,onStartImmediate:s,onComplete:l,onExit:c,onSpringUpdate:u}),xe.createElement(Vs,Ya({flipId:e},p,{portalKey:d}),t)})}):null};xu.displayName="Flipped";function zd(r){const{data:t,activedItem:e,onChange:n,onDelete:a,sortRules:i=[{label:"\u5F53\u5929",dayPeriod:1}],eventsEmit:o,assistantList:s,height:l=400,styles:c={},hasMore:u=!1,loadingMore:p=!1}=r,d=t.map(B=>B.sessionId+"-"+B.gmtModified).join(","),g=Ve(()=>{const B=i.length>0?i:[{label:"\u5F53\u5929",dayPeriod:1}],w=bd(t,B),S=B.every(P=>!w[P.label]||w[P.label].length===0),_=[];return B.forEach(P=>{w[P.label]&&w[P.label].length>0&&(_.push({type:"group",label:P.label}),w[P.label].forEach(I=>_.push({type:"item",data:I})))}),w.other.length>0&&!S&&(_.push({type:"group",label:"\u5176\u4ED6"}),w.other.forEach(P=>_.push({type:"item",data:P}))),S&&w.other.length>0&&w.other.forEach(P=>_.push({type:"item",data:P})),_},[t,i,d]),x=Ve(()=>g.map(B=>B.type==="group"?`g:${B.label}`:`i:${B.data.sessionId}`).join("|"),[g]),h=56,f=14,m=36,v=B=>B===g.length?m:g[B].type==="group"?32:h+f,y=He(null),F=Ve(()=>g.findIndex(B=>{var w;return B.type==="item"&&((w=B.data)==null?void 0:w.sessionId)===e}),[g,e]),E=Ve(()=>g.findIndex(B=>B.type==="item"),[g]),C=He(void 0);_e(()=>{const B=C.current;e!==B&&F>-1&&F===E&&y.current&&y.current.scrollToItem(F,"start"),C.current=e},[e,F,E]);const A=He(0);if(_e(()=>{if(y.current){const B=A.current,w=g.length;if(A.current=w,w!==B){const _=(B>0?Math.abs(w-B)/B:1)>.5||B<10&&w>20;y.current.resetAfterIndex(0,_)}}},[g.length]),_e(()=>{y.current&&y.current.resetAfterIndex(0,!0)},[x]),g.length===0)return M("div",{className:"text-center text-zinc-400 py-8",children:"\u6682\u65E0\u4F1A\u8BDD"});const b=(c==null?void 0:c.colors)||{};return M(vu,{flipKey:d,spring:{stiffness:180,damping:18},children:M(yd,{ref:y,height:l,width:"100%",itemCount:g.length+1,itemSize:v,itemKey:B=>{if(B===g.length)return"footer";const w=g[B];return w.type==="item"?w.data.sessionId:`group-${w.label}`},onItemsRendered:({visibleStopIndex:B})=>{u&&!p&&B>=g.length-1-3&&typeof o=="function"&&o("conversations:load_more")},style:{overflowX:"hidden"},children:({index:B,style:w})=>{if(B===g.length){const _=(c==null?void 0:c.colors)||{};return M("div",{style:{...w,height:m,lineHeight:`${m}px`,textAlign:"center",fontSize:"10px",color:_.textMuted||"#9ca3af",background:_.groupBg||"white"},children:p?"\u52A0\u8F7D\u4E2D...":u?"":"\u6CA1\u6709\u66F4\u591A\u4E86"})}const S=g[B];return S.type==="group"?M("div",{style:{...w,background:b.groupBg||"white",zIndex:1},className:"pt-2 pb-1 px-[28px] py-[2px] text-xs text-gray-400",children:S.label}):M(xu,{flipId:S.data.sessionId,children:M("div",{style:w,className:"px-[12px] py-[2px]",children:M(Cd,{isActive:e===S.data.sessionId,isDisabled:!1,isNew:S.data.isNew,data:S.data,eventsEmit:o,assistantList:s,styles:c})})},S.data.sessionId)}})})}const jd=({value:r,eventsEmit:t,setSearch:e,style:n,styles:a={}})=>{const{messages:i}=ii(),o=a.colors||{},s=a.radius||"12px",l=o.border||"#e5e7eb",c=o.primary||"#2563eb",u=a.headerBg||o.sidebarBg||o.background||"#fff",[p,d]=xe.useState(!1),g=xe.useRef(null);xe.useEffect(()=>{p&&g.current&&g.current.focus()},[p]);const x=()=>{d(!1),e("")};return ne("div",{className:"flex items-center gap-2 px-4 py-3 sticky top-0 z-10 min-w-0",style:{...n,background:u,borderTopLeftRadius:s,borderTopRightRadius:s},children:[M("button",{className:"border-none flex items-center justify-center",onClick:()=>{d(!1),t&&t("conversation:create")},title:i.sidebar.newConversation,style:{height:42,borderRadius:"90px",background:c,color:o.buttonText||"#fff",fontWeight:600,boxShadow:a.shadow||"0 2px 8px 0 rgba(0,0,0,0.04)",padding:p?"0 0":"0 14px",minWidth:p?0:180,width:p?0:void 0,opacity:p?0:1,overflow:"hidden",flexShrink:0,transition:"width .22s ease, min-width .22s ease, padding .22s ease, opacity .18s ease",pointerEvents:p?"none":"auto"},children:ne("div",{className:"flex items-center gap-2",children:[M(qf,{size:18}),M("span",{className:"text-sm",children:i.sidebar.newChat})]})}),p?ne("div",{className:"flex-1 min-w-0 relative",children:[M("input",{ref:g,className:"w-full px-3 py-2 pr-10 text-sm transition-all",placeholder:i.sidebar.searchPlaceholder,value:r,onChange:h=>e(h.target.value),onKeyDown:h=>{h.key==="Escape"&&x()},style:{minWidth:0,width:"100%",borderRadius:s,background:o.inputBg||"#f4f4f5",border:`1px solid ${l}`,color:o.text||"#222",outline:"none",paddingRight:40}}),M("button",{className:"absolute right-3 flex items-center justify-center transition-colors hover:bg-gray-200 rounded-full",style:{width:20,height:20,color:o.text||"#666",flexShrink:0,position:"absolute",right:"12px",top:"9px"},onClick:x,title:"\u5173\u95ED\u641C\u7D22",onMouseDown:h=>h.preventDefault(),children:M(Yc,{size:16})})]}):M("button",{className:"ml-auto flex items-center justify-center transition-colors hover:bg-gray-50",style:{width:36,height:36,borderRadius:"90px",border:`1px solid ${l}`,color:c,flexShrink:0},onClick:()=>d(!0),title:i.sidebar.search,children:M(Ui,{size:18})})]})};function Hd(r){const{data:t,sortRules:e,activedItem:n,eventsEmit:a,assistantList:i,styles:o={},hasMore:s=!1,loadingMore:l=!1}=r,{messages:c}=ii(),[u,p]=fe(""),d=Ve(()=>u?t.filter(C=>(C.label||c.sidebar.unnamedSession).toLowerCase().includes(u.toLowerCase())):t,[t,u,c.sidebar.unnamedSession]),g=Ve(()=>[...d].sort((C,A)=>new Date(A.gmtModified).getTime()-new Date(C.gmtModified).getTime()),[d]),x=He(null),[h,f]=fe(400);_e(()=>{function C(){x.current&&f(x.current.clientHeight)}return C(),window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[]);const m=(o==null?void 0:o.colors)||{};o!=null&&o.radius;const v=(o==null?void 0:o.shadow)||"0 4px 24px 0 rgba(0,0,0,0.06)",y=m.border||"#e5e7eb",F=m.sidebarBg||m.background||"#EAEEFF",E=m.text||"#222";return ne("div",{className:"h-full flex flex-col overflow-y-hidden",style:{background:F,color:E,boxShadow:v,border:`1px solid ${y}`,...o.container},children:[M(jd,{value:u,setSearch:p,eventsEmit:a,style:o.header,styles:o}),ne("div",{className:"flex-1 min-h-0 relative",ref:x,style:o.list,children:[M(zd,{eventsEmit:a,data:g,assistantList:i,activedItem:n,sortRules:e,height:h,styles:o,hasMore:s,loadingMore:l}),M("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-3 z-20",style:{background:`linear-gradient(to bottom, ${F}cc, transparent)`}})]})]})}function Qi(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=Array(t);e<t;e++)n[e]=r[e];return n}function Vd(r){if(Array.isArray(r))return Qi(r)}function gu(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Qo(r,t){if(r){if(typeof r=="string")return Qi(r,t);var e={}.toString.call(r).slice(8,-1);return e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set"?Array.from(r):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Qi(r,t):void 0}}function qd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
53
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function de(r){return Vd(r)||gu(r)||Qo(r)||qd()}const Ud=xe.createContext({});function mu(r){if(Array.isArray(r))return r}function Wd(r,t){var e=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(e=e.call(r)).next,t===0){if(Object(e)!==e)return;l=!1}else for(;!(l=(n=i.call(e)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&e.return!=null&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function yu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
54
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(r,t){return mu(r)||Wd(r,t)||Qo(r,t)||yu()}function ge(r){"@babel/helpers - typeof";return ge=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},ge(r)}function Gd(r,t){if(ge(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var n=e.call(r,t);if(ge(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function Cu(r){var t=Gd(r,"string");return ge(t)=="symbol"?t:t+""}function z(r,t,e){return(t=Cu(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function qs(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),e.push.apply(e,n)}return e}function Y(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?qs(Object(e),!0).forEach(function(n){z(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):qs(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function _n(r){for(var t=0,e,n=0,a=r.length;a>=4;++n,a-=4)e=r.charCodeAt(n)&255|(r.charCodeAt(++n)&255)<<8|(r.charCodeAt(++n)&255)<<16|(r.charCodeAt(++n)&255)<<24,e=(e&65535)*1540483477+((e>>>16)*59797<<16),e^=e>>>24,t=(e&65535)*1540483477+((e>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(r.charCodeAt(n+2)&255)<<16;case 2:t^=(r.charCodeAt(n+1)&255)<<8;case 1:t^=r.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 gr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Kd(r,t){if(!r)return!1;if(r.contains)return r.contains(t);for(var e=t;e;){if(e===r)return!0;e=e.parentNode}return!1}var Us="data-rc-order",Ws="data-rc-priority",Xd="rc-util-key",Zi=new Map;function bu(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Xd}function oi(r){if(r.attachTo)return r.attachTo;var t=document.querySelector("head");return t||document.body}function Yd(r){return r==="queue"?"prependQueue":r?"prepend":"append"}function Zo(r){return Array.from((Zi.get(r)||r).children).filter(function(t){return t.tagName==="STYLE"})}function Fu(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!gr())return null;var e=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,o=Yd(n),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(Us,o),s&&i&&l.setAttribute(Ws,"".concat(i)),e!=null&&e.nonce&&(l.nonce=e==null?void 0:e.nonce),l.innerHTML=r;var c=oi(t),u=c.firstChild;if(n){if(s){var p=(t.styles||Zo(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(Us)))return!1;var g=Number(d.getAttribute(Ws)||0);return i>=g});if(p.length)return c.insertBefore(l,p[p.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Eu(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=oi(t);return(t.styles||Zo(e)).find(function(n){return n.getAttribute(bu(t))===r})}function Au(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=Eu(r,t);if(e){var n=oi(t);n.removeChild(e)}}function Qd(r,t){var e=Zi.get(r);if(!e||!Kd(document,e)){var n=Fu("",t),a=n.parentNode;Zi.set(r,a),r.removeChild(n)}}function Mr(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=oi(e),a=Zo(n),i=Y(Y({},e),{},{styles:a});Qd(n,i);var o=Eu(t,i);if(o){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==r&&(o.innerHTML=r),o}var u=Fu(r,i);return u.setAttribute(bu(i),t),u}function hr(r,t){if(r==null)return{};var e,n,a=ud(r,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)e=i[n],t.indexOf(e)===-1&&{}.propertyIsEnumerable.call(r,e)&&(a[e]=r[e])}return a}function wu(r,t,e){var n=L.useRef({});return(!("value"in n.current)||e(n.current.condition,t))&&(n.current.value=r(),n.current.condition=t),n.current.value}var Ji={},Zd=function(t){};function Jd(r,t){}function eh(r,t){}function th(){Ji={}}function Bu(r,t,e){!t&&!Ji[e]&&(r(!1,e),Ji[e]=!0)}function Lt(r,t){Bu(Jd,r,t)}function rh(r,t){Bu(eh,r,t)}Lt.preMessage=Zd;Lt.resetWarned=th;Lt.noteOnce=rh;function eo(r,t){var e=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,l=n.has(i);if(Lt(!l,"Warning: There may be circular references"),l)return!1;if(i===o)return!0;if(e&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var u=0;u<i.length;u++)if(!a(i[u],o[u],c))return!1;return!0}if(i&&o&&ge(i)==="object"&&ge(o)==="object"){var p=Object.keys(i);return p.length!==Object.keys(o).length?!1:p.every(function(d){return a(i[d],o[d],c)})}return!1}return a(r,t)}function wt(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Gs(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Cu(n.key),n)}}function Bt(r,t,e){return t&&Gs(r.prototype,t),e&&Gs(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}var nh="%";function to(r){return r.join(nh)}var ah=(function(){function r(t){wt(this,r),z(this,"instanceId",void 0),z(this,"cache",new Map),z(this,"extracted",new Set),this.instanceId=t}return Bt(r,[{key:"get",value:function(e){return this.opGet(to(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,n){return this.opUpdate(to(e),n)}},{key:"opUpdate",value:function(e,n){var a=this.cache.get(e),i=n(a);i===null?this.cache.delete(e):this.cache.set(e,i)}}]),r})(),un="data-token-hash",Jt="data-css-hash",Br="__cssinjs_instance__";function ih(){var r=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Jt,"]"))||[],e=document.head.firstChild;Array.from(t).forEach(function(a){a[Br]=a[Br]||r,a[Br]===r&&document.head.insertBefore(a,e)});var n={};Array.from(document.querySelectorAll("style[".concat(Jt,"]"))).forEach(function(a){var i=a.getAttribute(Jt);if(n[i]){if(a[Br]===r){var o;(o=a.parentNode)===null||o===void 0||o.removeChild(a)}}else n[i]=!0})}return new ah(r)}var Ln=L.createContext({hashPriority:"low",cache:ih(),defaultCache:!0});function vn(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&cn(r,t)}function Dn(r){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dn(r)}function Jo(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jo=function(){return!!r})()}function oh(r,t){if(t&&(ge(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(r)}function xn(r){var t=Jo();return function(){var e,n=Dn(r);if(t){var a=Dn(this).constructor;e=Reflect.construct(n,arguments,a)}else e=n.apply(this,arguments);return oh(this,e)}}function sh(r,t){if(r.length!==t.length)return!1;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!1;return!0}var es=(function(){function r(){wt(this,r),z(this,"cache",void 0),z(this,"keys",void 0),z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Bt(r,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var n,a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return e.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.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(e){var n;return(n=this.internalGet(e,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(e,n){var a=this;if(!this.has(e)){if(this.size()+1>r.MAX_CACHE_SIZE+r.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var p=ce(c,2),d=p[1];return a.internalGet(u)[1]<d?[u,a.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),o=ce(i,1),s=o[0];this.delete(s)}this.keys.push(e)}var l=this.cache;e.forEach(function(c,u){if(u===e.length-1)l.set(c,{value:[n,a.cacheCallTimes++]});else{var p=l.get(c);p?p.map||(p.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(e,n){var a=e.get(n[0]);if(n.length===1){var i;return a.map?e.set(n[0],{map:a.map}):e.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&&e.delete(n[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(n){return!sh(n,e)}),this.deleteByPath(this.cache,e)}}]),r})();z(es,"MAX_CACHE_SIZE",20);z(es,"MAX_CACHE_OFFSET",5);var Ks=0,Su=(function(){function r(t){wt(this,r),z(this,"derivatives",void 0),z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ks,t.length===0&&(t.length>0,void 0),Ks+=1}return Bt(r,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(n,a){return a(e,n)},void 0)}}]),r})(),Ai=new es;function ro(r){var t=Array.isArray(r)?r:[r];return Ai.has(t)||Ai.set(t,new Su(t)),Ai.get(t)}var ch=new WeakMap,wi={};function uh(r,t){for(var e=ch,n=0;n<t.length;n+=1){var a=t[n];e.has(a)||e.set(a,new WeakMap),e=e.get(a)}return e.has(wi)||e.set(wi,r()),e.get(wi)}var Xs=new WeakMap;function An(r){var t=Xs.get(r)||"";return t||(Object.keys(r).forEach(function(e){var n=r[e];t+=e,n instanceof Su?t+=n.id:n&&ge(n)==="object"?t+=An(n):t+=n}),t=_n(t),Xs.set(r,t)),t}function Ys(r,t){return _n("".concat(t,"_").concat(An(r)))}var no=gr();function Qs(r){return typeof r=="number"?"".concat(r,"px"):r}function Qa(r,t,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return r;var i=Y(Y({},n),{},z(z({},un,t),Jt,e)),o=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(o,">").concat(r,"</style>")}var ia=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(e?"".concat(e,"-"):"").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()},lh=function(t,e,n){return Object.keys(t).length?".".concat(e).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var i=ce(a,2),o=i[0],s=i[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},_u=function(t,e,n){var a={},i={};return Object.entries(t).forEach(function(o){var s,l,c=ce(o,2),u=c[0],p=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=p;else if((typeof p=="string"||typeof p=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var d,g=ia(u,n==null?void 0:n.prefix);a[g]=typeof p=="number"&&!(n!=null&&(d=n.unitless)!==null&&d!==void 0&&d[u])?"".concat(p,"px"):String(p),i[u]="var(".concat(g,")")}}),[i,lh(a,e,{scope:n==null?void 0:n.scope})]},Zs=gr()?L.useLayoutEffect:L.useEffect,fh=function(t,e){var n=L.useRef(!0);Zs(function(){return t(n.current)},e),Zs(function(){return n.current=!1,function(){n.current=!0}},[])},dh=Y({},L),Js=dh.useInsertionEffect,hh=function(t,e,n){L.useMemo(t,n),fh(function(){return e(!0)},n)},ph=Js?function(r,t,e){return Js(function(){return r(),t()},e)}:hh,vh=Y({},L),xh=vh.useInsertionEffect,gh=function(t){var e=[],n=!1;function a(i){n||e.push(i)}return L.useEffect(function(){return n=!1,function(){n=!0,e.length&&e.forEach(function(i){return i()})}},t),a},mh=function(){return function(t){t()}},yh=typeof xh<"u"?gh:mh;function ts(r,t,e,n,a){var i=L.useContext(Ln),o=i.cache,s=[r].concat(de(t)),l=to(s),c=yh([l]),u=function(x){o.opUpdate(l,function(h){var f=h||[void 0,void 0],m=ce(f,2),v=m[0],y=v===void 0?0:v,F=m[1],E=F,C=E||e(),A=[y,C];return x?x(A):A})};L.useMemo(function(){u()},[l]);var p=o.opGet(l),d=p[1];return ph(function(){a==null||a(d)},function(g){return u(function(x){var h=ce(x,2),f=h[0],m=h[1];return g&&f===0&&(a==null||a(d)),[f+1,m]}),function(){o.opUpdate(l,function(x){var h=x||[],f=ce(h,2),m=f[0],v=m===void 0?0:m,y=f[1],F=v-1;return F===0?(c(function(){(g||!o.opGet(l))&&(n==null||n(y,!1))}),null):[v-1,y]})}},[l]),d}var Ch={},bh="css",Ir=new Map;function Fh(r){Ir.set(r,(Ir.get(r)||0)+1)}function Eh(r,t){if(typeof document<"u"){var e=document.querySelectorAll("style[".concat(un,'="').concat(r,'"]'));e.forEach(function(n){if(n[Br]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Ah=0;function wh(r,t){Ir.set(r,(Ir.get(r)||0)-1);var e=new Set;Ir.forEach(function(n,a){n<=0&&e.add(a)}),Ir.size-e.size>Ah&&e.forEach(function(n){Eh(n,t),Ir.delete(n)})}var Bh=function(t,e,n,a){var i=n.getDerivativeToken(t),o=Y(Y({},i),e);return a&&(o=a(o)),o},Du="token";function Sh(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=rr(Ln),a=n.cache.instanceId,i=n.container,o=e.salt,s=o===void 0?"":o,l=e.override,c=l===void 0?Ch:l,u=e.formatToken,p=e.getComputedToken,d=e.cssVar,g=uh(function(){return Object.assign.apply(Object,[{}].concat(de(t)))},t),x=An(g),h=An(c),f=d?An(d):"",m=ts(Du,[s,r.id,x,h,f],function(){var v,y=p?p(g,c,r):Bh(g,c,r,u),F=Y({},y),E="";if(d){var C=_u(y,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),A=ce(C,2);y=A[0],E=A[1]}var b=Ys(y,s);y._tokenKey=b,F._tokenKey=Ys(F,s);var B=(v=d==null?void 0:d.key)!==null&&v!==void 0?v:b;y._themeKey=B,Fh(B);var w="".concat(bh,"-").concat(_n(b));return y._hashId=w,[y,w,F,E,(d==null?void 0:d.key)||""]},function(v){wh(v[0]._themeKey,a)},function(v){var y=ce(v,4),F=y[0],E=y[3];if(d&&E){var C=Mr(E,_n("css-variables-".concat(F._themeKey)),{mark:Jt,prepend:"queue",attachTo:i,priority:-999});C[Br]=a,C.setAttribute(un,F._themeKey)}});return m}var _h=function(t,e,n){var a=ce(t,5),i=a[2],o=a[3],s=a[4],l=n||{},c=l.plain;if(!o)return null;var u=i._tokenKey,p=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},g=Qa(o,s,u,d,c);return[p,u,g]},Dh={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},ku="comm",Pu="rule",Tu="decl",kh="@import",Ph="@namespace",Th="@keyframes",Ih="@layer",Iu=Math.abs,rs=String.fromCharCode;function Ru(r){return r.trim()}function oa(r,t,e){return r.replace(t,e)}function Rh(r,t,e){return r.indexOf(t,e)}function an(r,t){return r.charCodeAt(t)|0}function ln(r,t,e){return r.slice(t,e)}function lr(r){return r.length}function Oh(r){return r.length}function Kn(r,t){return t.push(r),r}var si=1,fn=1,Ou=0,Ut=0,ut=0,gn="";function ns(r,t,e,n,a,i,o,s){return{value:r,root:t,parent:e,type:n,props:a,children:i,line:si,column:fn,length:o,return:"",siblings:s}}function Mh(){return ut}function Nh(){return ut=Ut>0?an(gn,--Ut):0,fn--,ut===10&&(fn=1,si--),ut}function er(){return ut=Ut<Ou?an(gn,Ut++):0,fn++,ut===10&&(fn=1,si++),ut}function Sr(){return an(gn,Ut)}function sa(){return Ut}function ci(r,t){return ln(gn,r,t)}function kn(r){switch(r){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 Lh(r){return si=fn=1,Ou=lr(gn=r),Ut=0,[]}function $h(r){return gn="",r}function Bi(r){return Ru(ci(Ut-1,ao(r===91?r+2:r===40?r+1:r)))}function zh(r){for(;(ut=Sr())&&ut<33;)er();return kn(r)>2||kn(ut)>3?"":" "}function jh(r,t){for(;--t&&er()&&!(ut<48||ut>102||ut>57&&ut<65||ut>70&&ut<97););return ci(r,sa()+(t<6&&Sr()==32&&er()==32))}function ao(r){for(;er();)switch(ut){case r:return Ut;case 34:case 39:r!==34&&r!==39&&ao(ut);break;case 40:r===41&&ao(r);break;case 92:er();break}return Ut}function Hh(r,t){for(;er()&&r+ut!==57;)if(r+ut===84&&Sr()===47)break;return"/*"+ci(t,Ut-1)+"*"+rs(r===47?r:er())}function Vh(r){for(;!kn(Sr());)er();return ci(r,Ut)}function qh(r){return $h(ca("",null,null,null,[""],r=Lh(r),0,[0],r))}function ca(r,t,e,n,a,i,o,s,l){for(var c=0,u=0,p=o,d=0,g=0,x=0,h=1,f=1,m=1,v=0,y="",F=a,E=i,C=n,A=y;f;)switch(x=v,v=er()){case 40:if(x!=108&&an(A,p-1)==58){Rh(A+=oa(Bi(v),"&","&\f"),"&\f",Iu(c?s[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:A+=Bi(v);break;case 9:case 10:case 13:case 32:A+=zh(x);break;case 92:A+=jh(sa()-1,7);continue;case 47:switch(Sr()){case 42:case 47:Kn(Uh(Hh(er(),sa()),t,e,l),l),(kn(x||1)==5||kn(Sr()||1)==5)&&lr(A)&&ln(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*h:s[c++]=lr(A)*m;case 125*h:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+u:m==-1&&(A=oa(A,/\f/g,"")),g>0&&(lr(A)-p||h===0&&x===47)&&Kn(g>32?t0(A+";",n,e,p-1,l):t0(oa(A," ","")+";",n,e,p-2,l),l);break;case 59:A+=";";default:if(Kn(C=e0(A,t,e,c,u,a,s,y,F=[],E=[],p,i),i),v===123)if(u===0)ca(A,t,C,C,F,i,p,s,E);else{switch(d){case 99:if(an(A,3)===110)break;case 108:if(an(A,2)===97)break;default:u=0;case 100:case 109:case 115:}u?ca(r,C,C,n&&Kn(e0(r,C,C,0,0,a,s,y,a,F=[],p,E),E),a,E,p,s,n?F:E):ca(A,C,C,C,[""],E,0,s,E)}}c=u=g=0,h=m=1,y=A="",p=o;break;case 58:p=1+lr(A),g=x;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Nh()==125)continue}switch(A+=rs(v),v*h){case 38:m=u>0?1:(A+="\f",-1);break;case 44:s[c++]=(lr(A)-1)*m,m=1;break;case 64:Sr()===45&&(A+=Bi(er())),d=Sr(),u=p=lr(y=A+=Vh(sa())),v++;break;case 45:x===45&&lr(A)==2&&(h=0)}}return i}function e0(r,t,e,n,a,i,o,s,l,c,u,p){for(var d=a-1,g=a===0?i:[""],x=Oh(g),h=0,f=0,m=0;h<n;++h)for(var v=0,y=ln(r,d+1,d=Iu(f=o[h])),F=r;v<x;++v)(F=Ru(f>0?g[v]+" "+y:oa(y,/&\f/g,g[v])))&&(l[m++]=F);return ns(r,t,e,a===0?Pu:s,l,c,u,p)}function Uh(r,t,e,n){return ns(r,t,e,ku,rs(Mh()),ln(r,2,-2),0,n)}function t0(r,t,e,n,a){return ns(r,t,e,Tu,ln(r,0,n),ln(r,n+1,-1),n,a)}function io(r,t){for(var e="",n=0;n<r.length;n++)e+=t(r[n],n,r,t)||"";return e}function Wh(r,t,e,n){switch(r.type){case Ih:if(r.children.length)break;case kh:case Ph:case Tu:return r.return=r.return||r.value;case ku:return"";case Th:return r.return=r.value+"{"+io(r.children,n)+"}";case Pu:if(!lr(r.value=r.props.join(",")))return""}return lr(e=io(r.children,n))?r.return=r.value+"{"+e+"}":""}var r0="data-ant-cssinjs-cache-path",Mu="_FILE_STYLE__",Nr,Nu=!0;function Gh(){if(!Nr&&(Nr={},gr())){var r=document.createElement("div");r.className=r0,r.style.position="fixed",r.style.visibility="hidden",r.style.top="-9999px",document.body.appendChild(r);var t=getComputedStyle(r).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var i=a.split(":"),o=ce(i,2),s=o[0],l=o[1];Nr[s]=l});var e=document.querySelector("style[".concat(r0,"]"));if(e){var n;Nu=!1,(n=e.parentNode)===null||n===void 0||n.removeChild(e)}document.body.removeChild(r)}}function Kh(r){return Gh(),!!Nr[r]}function Xh(r){var t=Nr[r],e=null;if(t&&gr())if(Nu)e=Mu;else{var n=document.querySelector("style[".concat(Jt,'="').concat(Nr[r],'"]'));n?e=n.innerHTML:delete Nr[r]}return[e,t]}var Yh="_skip_check_",Lu="_multi_value_";function ua(r){var t=io(qh(r),Wh);return t.replace(/\{%%%\:[^;];}/g,";")}function Qh(r){return ge(r)==="object"&&r&&(Yh in r||Lu in r)}function n0(r,t,e){if(!t)return r;var n=".".concat(t),a=e==="low"?":where(".concat(n,")"):n,i=r.split(",").map(function(o){var s,l=o.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(a).concat(c.slice(u.length)),[c].concat(de(l.slice(1))).join(" ")});return i.join(",")}var Zh=function r(t){var e=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=e.hashId,l=e.layer;e.path;var c=e.hashPriority,u=e.transformers,p=u===void 0?[]:u;e.linters;var d="",g={};function x(m){var v=m.getName(s);if(!g[v]){var y=r(m.style,e,{root:!1,parentSelectors:o}),F=ce(y,1),E=F[0];g[v]="@keyframes ".concat(m.getName(s)).concat(E)}}function h(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(function(y){Array.isArray(y)?h(y,v):y&&v.push(y)}),v}var f=h(Array.isArray(t)?t:[t]);return f.forEach(function(m){var v=typeof m=="string"&&!a?{}:m;if(typeof v=="string")d+="".concat(v,`
|
|
55
|
+
`);else if(v._keyframe)x(v);else{var y=p.reduce(function(F,E){var C;return(E==null||(C=E.visit)===null||C===void 0?void 0:C.call(E,F))||F},v);Object.keys(y).forEach(function(F){var E=y[F];if(ge(E)==="object"&&E&&(F!=="animationName"||!E._keyframe)&&!Qh(E)){var C=!1,A=F.trim(),b=!1;(a||i)&&s?A.startsWith("@")?C=!0:A==="&"?A=n0("",s,c):A=n0(F,s,c):a&&!s&&(A==="&"||A==="")&&(A="",b=!0);var B=r(E,e,{root:b,injectHash:C,parentSelectors:[].concat(de(o),[A])}),w=ce(B,2),S=w[0],_=w[1];g=Y(Y({},g),_),d+="".concat(A).concat(S)}else{let $=function(j,H){var V=j.replace(/[A-Z]/g,function(X){return"-".concat(X.toLowerCase())}),G=H;!Dh[j]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),j==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(x(H),G=H.getName(s)),d+="".concat(V,":").concat(G,";")};var P,I=(P=E==null?void 0:E.value)!==null&&P!==void 0?P:E;ge(E)==="object"&&E!==null&&E!==void 0&&E[Lu]&&Array.isArray(I)?I.forEach(function(j){$(F,j)}):$(F,I)}})}}),a?l&&(d&&(d="@layer ".concat(l.name," {").concat(d,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(m){return"@layer ".concat(m,", ").concat(l.name,";")}).join(`
|
|
56
|
+
`))):d="{".concat(d,"}"),[d,g]};function $u(r,t){return _n("".concat(r.join("%")).concat(t))}function Jh(){return null}var zu="style";function oo(r,t){var e=r.token,n=r.path,a=r.hashId,i=r.layer,o=r.nonce,s=r.clientOnly,l=r.order,c=l===void 0?0:l,u=L.useContext(Ln),p=u.autoClear;u.mock;var d=u.defaultCache,g=u.hashPriority,x=u.container,h=u.ssrInline,f=u.transformers,m=u.linters,v=u.cache,y=u.layer,F=e._tokenKey,E=[F];y&&E.push("layer"),E.push.apply(E,de(n));var C=no,A=ts(zu,E,function(){var _=E.join("|");if(Kh(_)){var P=Xh(_),I=ce(P,2),$=I[0],j=I[1];if($)return[$,F,j,{},s,c]}var H=t(),V=Zh(H,{hashId:a,hashPriority:g,layer:y?i:void 0,path:n.join("-"),transformers:f,linters:m}),G=ce(V,2),X=G[0],O=G[1],N=ua(X),R=$u(E,N);return[N,F,R,O,s,c]},function(_,P){var I=ce(_,3),$=I[2];(P||p)&&no&&Au($,{mark:Jt,attachTo:x})},function(_){var P=ce(_,4),I=P[0];P[1];var $=P[2],j=P[3];if(C&&I!==Mu){var H={mark:Jt,prepend:y?!1:"queue",attachTo:x,priority:c},V=typeof o=="function"?o():o;V&&(H.csp={nonce:V});var G=[],X=[];Object.keys(j).forEach(function(N){N.startsWith("@layer")?G.push(N):X.push(N)}),G.forEach(function(N){Mr(ua(j[N]),"_layer-".concat(N),Y(Y({},H),{},{prepend:!0}))});var O=Mr(I,$,H);O[Br]=v.instanceId,O.setAttribute(un,F),X.forEach(function(N){Mr(ua(j[N]),"_effect-".concat(N),H)})}}),b=ce(A,3),B=b[0],w=b[1],S=b[2];return function(_){var P;return!h||C||!d?P=L.createElement(Jh,null):P=L.createElement("style",pt({},z(z({},un,w),Jt,S),{dangerouslySetInnerHTML:{__html:B}})),L.createElement(L.Fragment,null,P,_)}}var ep=function(t,e,n){var a=ce(t,6),i=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],p=n||{},d=p.plain;if(c)return null;var g=i,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=Qa(i,o,s,x,d),l&&Object.keys(l).forEach(function(h){if(!e[h]){e[h]=!0;var f=ua(l[h]),m=Qa(f,o,"_effect-".concat(h),x,d);h.startsWith("@layer")?g=m+g:g+=m}}),[u,s,g]},ju="cssVar",tp=function(t,e){var n=t.key,a=t.prefix,i=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=rr(Ln),p=u.cache.instanceId,d=u.container,g=s._tokenKey,x=[].concat(de(t.path),[n,c,g]),h=ts(ju,x,function(){var f=e(),m=_u(f,n,{prefix:a,unitless:i,ignore:o,scope:c}),v=ce(m,2),y=v[0],F=v[1],E=$u(x,F);return[y,F,E,n]},function(f){var m=ce(f,3),v=m[2];no&&Au(v,{mark:Jt,attachTo:d})},function(f){var m=ce(f,3),v=m[1],y=m[2];if(v){var F=Mr(v,y,{mark:Jt,prepend:"queue",attachTo:d,priority:-999});F[Br]=p,F.setAttribute(un,n)}});return h},rp=function(t,e,n){var a=ce(t,4),i=a[1],o=a[2],s=a[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Qa(i,s,o,p,c);return[u,o,d]};z(z(z({},zu,ep),Du,_h),ju,rp);var a0=(function(){function r(t,e){wt(this,r),z(this,"name",void 0),z(this,"style",void 0),z(this,"_keyframe",!0),this.name=t,this.style=e}return Bt(r,[{key:"getName",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),r})();function Kr(r){return r.notSplit=!0,r}Kr(["borderTop","borderBottom"]),Kr(["borderTop"]),Kr(["borderBottom"]),Kr(["borderLeft","borderRight"]),Kr(["borderLeft"]),Kr(["borderRight"]);var as=Nn({});function np(r){return mu(r)||gu(r)||Qo(r)||yu()}function fr(r,t){for(var e=r,n=0;n<t.length;n+=1){if(e==null)return;e=e[t[n]]}return e}function Hu(r,t,e,n){if(!t.length)return e;var a=np(t),i=a[0],o=a.slice(1),s;return!r&&typeof i=="number"?s=[]:Array.isArray(r)?s=de(r):s=Y({},r),n&&e===void 0&&o.length===1?delete s[i][o[0]]:s[i]=Hu(s[i],o,e,n),s}function Qt(r,t,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&e===void 0&&!fr(r,t.slice(0,-1))?r:Hu(r,t,e,n)}function ap(r){return ge(r)==="object"&&r!==null&&Object.getPrototypeOf(r)===Object.prototype}function i0(r){return Array.isArray(r)?[]:{}}var ip=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function en(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];var n=i0(t[0]);return t.forEach(function(a){function i(o,s){var l=new Set(s),c=fr(a,o),u=Array.isArray(c);if(u||ap(c)){if(!l.has(c)){l.add(c);var p=fr(n,o);u?n=Qt(n,o,[]):(!p||ge(p)!=="object")&&(n=Qt(n,o,i0(c))),ip(c).forEach(function(d){i([].concat(de(o),[d]),l)})}}else n=Qt(n,o,c)}i([])}),n}const op=L.createContext({}),sp=Nn(void 0),Ot="${label} is not a valid ${type}",ui={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},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:Ot,method:Ot,array:Ot,object:Ot,number:Ot,date:Ot,boolean:Ot,integer:Ot,float:Ot,regexp:Ot,email:Ot,url:Ot,hex:Ot},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}"}}}};Object.assign({},ui.Modal);let la=[];const o0=()=>la.reduce((r,t)=>Object.assign(Object.assign({},r),t),ui.Modal);function cp(r){if(r){const t=Object.assign({},r);return la.push(t),o0(),()=>{la=la.filter(e=>e!==t),o0()}}Object.assign({},ui.Modal)}const Vu=Nn(void 0),up="internalMark",lp=r=>{const{locale:t={},children:e,_ANT_MARK__:n}=r;L.useEffect(()=>cp(t==null?void 0:t.Modal),[t]);const a=L.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return L.createElement(Vu.Provider,{value:a},e)},qu={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"},Pn=Object.assign(Object.assign({},qu),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
57
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
58
|
+
'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}),ht=Math.round;function Si(r,t){const e=r.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=e.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)n[a]=t(n[a]||0,e[a]||"",a);return e[3]?n[3]=e[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const s0=(r,t,e)=>e===0?r:r/100;function bn(r,t){const e=t||255;return r>e?e:r<0?0:r}class at{constructor(t){z(this,"isValid",!0),z(this,"r",0),z(this,"g",0),z(this,"b",0),z(this,"a",1),z(this,"_h",void 0),z(this,"_s",void 0),z(this,"_l",void 0),z(this,"_v",void 0),z(this,"_max",void 0),z(this,"_min",void 0),z(this,"_brightness",void 0);function e(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 at)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(e("rgb"))this.r=bn(t.r),this.g=bn(t.g),this.b=bn(t.b),this.a=typeof t.a=="number"?bn(t.a,1):1;else if(e("hsl"))this.fromHsl(t);else if(e("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 e=this.toHsv();return e.h=t,this._c(e)}getLuminance(){function t(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const e=t(this.r),n=t(this.g),a=t(this.b);return .2126*e+.7152*n+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ht(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 e=this.getHue(),n=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:e,s:n,l:a,a:this.a})}lighten(t=10){const e=this.getHue(),n=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:e,s:n,l:a,a:this.a})}mix(t,e=50){const n=this._c(t),a=e/100,i=s=>(n[s]-this[s])*a+this[s],o={r:ht(i("r")),g:ht(i("g")),b:ht(i("b")),a:ht(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 e=this._c(t),n=this.a+e.a*(1-this.a),a=i=>ht((this[i]*this.a+e[i]*e.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 e=(this.r||0).toString(16);t+=e.length===2?e:"0"+e;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=ht(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(),e=ht(this.getSaturation()*100),n=ht(this.getLightness()*100);return this.a!==1?`hsla(${t},${e}%,${n}%,${this.a})`:`hsl(${t},${e}%,${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,e,n){const a=this.clone();return a[t]=bn(e,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 e=t.replace("#","");function n(a,i){return parseInt(e[a]+e[i||a],16)}e.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=e[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=e[6]?n(6,7)/255:1)}fromHsl({h:t,s:e,l:n,a}){if(this._h=t%360,this._s=e,this._l=n,this.a=typeof a=="number"?a:1,e<=0){const d=ht(n*255);this.r=d,this.g=d,this.b=d}let i=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*e,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,o=u):l>=1&&l<2?(i=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const p=n-c/2;this.r=ht((i+p)*255),this.g=ht((o+p)*255),this.b=ht((s+p)*255)}fromHsv({h:t,s:e,v:n,a}){this._h=t%360,this._s=e,this._v=n,this.a=typeof a=="number"?a:1;const i=ht(n*255);if(this.r=i,this.g=i,this.b=i,e<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=ht(n*(1-e)*255),u=ht(n*(1-e*l)*255),p=ht(n*(1-e*(1-l))*255);switch(s){case 0:this.g=p,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=p;break;case 3:this.r=c,this.g=u;break;case 4:this.r=p,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const e=Si(t,s0);this.fromHsv({h:e[0],s:e[1],v:e[2],a:e[3]})}fromHslString(t){const e=Si(t,s0);this.fromHsl({h:e[0],s:e[1],l:e[2],a:e[3]})}fromRgbString(t){const e=Si(t,(n,a)=>a.includes("%")?ht(n/100*255):n);this.r=e[0],this.g=e[1],this.b=e[2],this.a=e[3]}}var Xn=2,c0=.16,fp=.05,dp=.05,hp=.15,Uu=5,Wu=4,pp=[{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 u0(r,t,e){var n;return Math.round(r.h)>=60&&Math.round(r.h)<=240?n=e?Math.round(r.h)-Xn*t:Math.round(r.h)+Xn*t:n=e?Math.round(r.h)+Xn*t:Math.round(r.h)-Xn*t,n<0?n+=360:n>=360&&(n-=360),n}function l0(r,t,e){if(r.h===0&&r.s===0)return r.s;var n;return e?n=r.s-c0*t:t===Wu?n=r.s+c0:n=r.s+fp*t,n>1&&(n=1),e&&t===Uu&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function f0(r,t,e){var n;return e?n=r.v+dp*t:n=r.v-hp*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Tn(r){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=[],n=new at(r),a=n.toHsv(),i=Uu;i>0;i-=1){var o=new at({h:u0(a,i,!0),s:l0(a,i,!0),v:f0(a,i,!0)});e.push(o)}e.push(n);for(var s=1;s<=Wu;s+=1){var l=new at({h:u0(a,s),s:l0(a,s),v:f0(a,s)});e.push(l)}return t.theme==="dark"?pp.map(function(c){var u=c.index,p=c.amount;return new at(t.backgroundColor||"#141414").mix(e[u],p).toHexString()}):e.map(function(c){return c.toHexString()})}var _i={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"},so=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];so.primary=so[5];var co=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];co.primary=co[5];var uo=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];uo.primary=uo[5];var lo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];lo.primary=lo[5];var fo=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];fo.primary=fo[5];var ho=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ho.primary=ho[5];var po=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];po.primary=po[5];var vo=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];vo.primary=vo[5];var Za=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Za.primary=Za[5];var xo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];xo.primary=xo[5];var go=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];go.primary=go[5];var mo=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];mo.primary=mo[5];var yo=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];yo.primary=yo[5];var Di={red:so,volcano:co,orange:uo,gold:lo,yellow:fo,lime:ho,green:po,cyan:vo,blue:Za,geekblue:xo,purple:go,magenta:mo,grey:yo};function vp(r,{generateColorPalettes:t,generateNeutralColorPalettes:e}){const{colorSuccess:n,colorWarning:a,colorError:i,colorInfo:o,colorPrimary:s,colorBgBase:l,colorTextBase:c}=r,u=t(s),p=t(n),d=t(a),g=t(i),x=t(o),h=e(l,c),f=r.colorLink||r.colorInfo,m=t(f),v=new at(g[1]).mix(new at(g[3]),50).toHexString();return Object.assign(Object.assign({},h),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:v,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new at("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const xp=r=>{let t=r,e=r,n=r,a=r;return r<6&&r>=5?t=r+1:r<16&&r>=6?t=r+2:r>=16&&(t=16),r<7&&r>=5?e=4:r<8&&r>=7?e=5:r<14&&r>=8?e=6:r<16&&r>=14?e=7:r>=16&&(e=8),r<6&&r>=2?n=1:r>=6&&(n=2),r>4&&r<8?a=4:r>=8&&(a=6),{borderRadius:r,borderRadiusXS:n,borderRadiusSM:e,borderRadiusLG:t,borderRadiusOuter:a}};function gp(r){const{motionUnit:t,motionBase:e,borderRadius:n,lineWidth:a}=r;return Object.assign({motionDurationFast:`${(e+t).toFixed(1)}s`,motionDurationMid:`${(e+t*2).toFixed(1)}s`,motionDurationSlow:`${(e+t*3).toFixed(1)}s`,lineWidthBold:a+1},xp(n))}const mp=r=>{const{controlHeight:t}=r;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function yp(r){return(r+8)/r}function Cp(r){const t=Array.from({length:10}).map((e,n)=>{const a=n-1,i=r*Math.pow(Math.E,a/5),o=n>1?Math.floor(i):Math.ceil(i);return Math.floor(o/2)*2});return t[1]=r,t.map(e=>({size:e,lineHeight:yp(e)}))}const bp=r=>{const t=Cp(r),e=t.map(u=>u.size),n=t.map(u=>u.lineHeight),a=e[1],i=e[0],o=e[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:o,fontSizeXL:e[3],fontSizeHeading1:e[6],fontSizeHeading2:e[5],fontSizeHeading3:e[4],fontSizeHeading4:e[3],fontSizeHeading5:e[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function Fp(r){const{sizeUnit:t,sizeStep:e}=r;return{sizeXXL:t*(e+8),sizeXL:t*(e+4),sizeLG:t*(e+2),sizeMD:t*(e+1),sizeMS:t*e,size:t*e,sizeSM:t*(e-1),sizeXS:t*(e-2),sizeXXS:t*(e-3)}}const Ht=(r,t)=>new at(r).setA(t).toRgbString(),Fn=(r,t)=>new at(r).darken(t).toHexString(),Ep=r=>{const t=Tn(r);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]}},Ap=(r,t)=>{const e=r||"#fff",n=t||"#000";return{colorBgBase:e,colorTextBase:n,colorText:Ht(n,.88),colorTextSecondary:Ht(n,.65),colorTextTertiary:Ht(n,.45),colorTextQuaternary:Ht(n,.25),colorFill:Ht(n,.15),colorFillSecondary:Ht(n,.06),colorFillTertiary:Ht(n,.04),colorFillQuaternary:Ht(n,.02),colorBgSolid:Ht(n,1),colorBgSolidHover:Ht(n,.75),colorBgSolidActive:Ht(n,.95),colorBgLayout:Fn(e,4),colorBgContainer:Fn(e,0),colorBgElevated:Fn(e,0),colorBgSpotlight:Ht(n,.85),colorBgBlur:"transparent",colorBorder:Fn(e,15),colorBorderSecondary:Fn(e,6)}};function wp(r){_i.pink=_i.magenta,Di.pink=Di.magenta;const t=Object.keys(qu).map(e=>{const n=r[e]===_i[e]?Di[e]:Tn(r[e]);return Array.from({length:10},()=>1).reduce((a,i,o)=>(a[`${e}-${o+1}`]=n[o],a[`${e}${o+1}`]=n[o],a),{})}).reduce((e,n)=>(e=Object.assign(Object.assign({},e),n),e),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),t),vp(r,{generateColorPalettes:Ep,generateNeutralColorPalettes:Ap})),bp(r.fontSize)),Fp(r)),mp(r)),gp(r))}const Gu=ro(wp),Co={token:Pn,override:{override:Pn},hashed:!0},Ku=xe.createContext(Co),bo="ant",li="anticon",Bp=(r,t)=>t||(r?`${bo}-${r}`:bo),xr=L.createContext({getPrefixCls:Bp,iconPrefixCls:li}),{Consumer:V2}=xr,Sp=`-ant-${Date.now()}-${Math.random()}`;function _p(r,t){const e={},n=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(o,s)=>{const l=new at(o),c=Tn(l.toRgbString());e[`${s}-color`]=n(l),e[`${s}-color-disabled`]=c[1],e[`${s}-color-hover`]=c[4],e[`${s}-color-active`]=c[6],e[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),e[`${s}-color-deprecated-bg`]=c[0],e[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){a(t.primaryColor,"primary");const o=new at(t.primaryColor),s=Tn(o.toRgbString());s.forEach((c,u)=>{e[`primary-${u+1}`]=c}),e["primary-color-deprecated-l-35"]=n(o,c=>c.lighten(35)),e["primary-color-deprecated-l-20"]=n(o,c=>c.lighten(20)),e["primary-color-deprecated-t-20"]=n(o,c=>c.tint(20)),e["primary-color-deprecated-t-50"]=n(o,c=>c.tint(50)),e["primary-color-deprecated-f-12"]=n(o,c=>c.setA(c.a*.12));const l=new at(s[0]);e["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),e["primary-color-active-deprecated-d-02"]=n(l,c=>c.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"),`
|
|
59
|
+
:root {
|
|
60
|
+
${Object.keys(e).map(o=>`--${r}-${o}: ${e[o]};`).join(`
|
|
61
|
+
`)}
|
|
62
|
+
}
|
|
63
|
+
`.trim()}function Dp(r,t){const e=_p(r,t);gr()&&Mr(e,`${Sp}-dynamic-theme`)}const Fo=L.createContext(!1),kp=({children:r,disabled:t})=>{const e=L.useContext(Fo);return L.createElement(Fo.Provider,{value:t??e},r)},In=L.createContext(void 0),Pp=({children:r,size:t})=>{const e=L.useContext(In);return L.createElement(In.Provider,{value:t||e},r)};function Tp(){const r=rr(Fo),t=rr(In);return{componentDisabled:r,componentSize:t}}var Xu=Bt(function r(){wt(this,r)}),Yu="CALC_UNIT",Ip=new RegExp(Yu,"g");function ki(r){return typeof r=="number"?"".concat(r).concat(Yu):r}var Rp=(function(r){vn(e,r);var t=xn(e);function e(n,a){var i;wt(this,e),i=t.call(this),z(Ee(i),"result",""),z(Ee(i),"unitlessCssVar",void 0),z(Ee(i),"lowPriority",void 0);var o=ge(n);return i.unitlessCssVar=a,n instanceof e?i.result="(".concat(n.result,")"):o==="number"?i.result=ki(n):o==="string"&&(i.result=n),i}return Bt(e,[{key:"add",value:function(a){return a instanceof e?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(ki(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof e?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(ki(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof e?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 e?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,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(Ip,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),e})(Xu),Op=(function(r){vn(e,r);var t=xn(e);function e(n){var a;return wt(this,e),a=t.call(this),z(Ee(a),"result",0),n instanceof e?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Bt(e,[{key:"add",value:function(a){return a instanceof e?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof e?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof e?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof e?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),e})(Xu),Mp=function(t,e){var n=t==="css"?Rp:Op;return function(a){return new n(a,e)}},d0=function(t,e){return"".concat([e,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ja(r){var t=L.useRef();t.current=r;var e=L.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 e}function Eo(r){var t=L.useRef(!1),e=L.useState(r),n=ce(e,2),a=n[0],i=n[1];L.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,l){l&&t.current||i(s)}return[a,o]}var Pi={exports:{}},Me={};/**
|
|
64
|
+
* @license React
|
|
65
|
+
* react-is.production.min.js
|
|
66
|
+
*
|
|
67
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the MIT license found in the
|
|
70
|
+
* LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/var h0;function Np(){if(h0)return Me;h0=1;var r=Symbol.for("react.element"),t=Symbol.for("react.portal"),e=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function h(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case r:switch(f=f.type,f){case e:case a:case n:case c:case u:return f;default:switch(f=f&&f.$$typeof,f){case s:case o:case l:case d:case p:case i:return f;default:return m}}case t:return m}}}return Me.ContextConsumer=o,Me.ContextProvider=i,Me.Element=r,Me.ForwardRef=l,Me.Fragment=e,Me.Lazy=d,Me.Memo=p,Me.Portal=t,Me.Profiler=a,Me.StrictMode=n,Me.Suspense=c,Me.SuspenseList=u,Me.isAsyncMode=function(){return!1},Me.isConcurrentMode=function(){return!1},Me.isContextConsumer=function(f){return h(f)===o},Me.isContextProvider=function(f){return h(f)===i},Me.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===r},Me.isForwardRef=function(f){return h(f)===l},Me.isFragment=function(f){return h(f)===e},Me.isLazy=function(f){return h(f)===d},Me.isMemo=function(f){return h(f)===p},Me.isPortal=function(f){return h(f)===t},Me.isProfiler=function(f){return h(f)===a},Me.isStrictMode=function(f){return h(f)===n},Me.isSuspense=function(f){return h(f)===c},Me.isSuspenseList=function(f){return h(f)===u},Me.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===e||f===a||f===n||f===c||f===u||f===g||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===p||f.$$typeof===i||f.$$typeof===o||f.$$typeof===l||f.$$typeof===x||f.getModuleId!==void 0)},Me.typeOf=h,Me}var p0;function Lp(){return p0||(p0=1,Pi.exports=Np()),Pi.exports}var Ti=Lp(),$p=Symbol.for("react.element"),zp=Symbol.for("react.transitional.element"),jp=Symbol.for("react.fragment");function Qu(r){return r&&ge(r)==="object"&&(r.$$typeof===$p||r.$$typeof===zp)&&r.type===jp}var Hp=Number(af.split(".")[0]),Vp=function(t,e){typeof t=="function"?t(e):ge(t)==="object"&&t&&"current"in t&&(t.current=e)},qp=function(t){var e,n;if(!t)return!1;if(Zu(t)&&Hp>=19)return!0;var a=Ti.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((e=a.prototype)!==null&&e!==void 0&&e.render)&&a.$$typeof!==Ti.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==Ti.ForwardRef)};function Zu(r){return of(r)&&!Qu(r)}var Up=function(t){if(t&&Zu(t)){var e=t;return e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref}return null};function v0(r,t,e,n){var a=Y({},t[r]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(s){var l=ce(s,2),c=l[0],u=l[1];if(a!=null&&a[c]||a!=null&&a[u]){var p;(p=a[u])!==null&&p!==void 0||(a[u]=a==null?void 0:a[c])}})}var o=Y(Y({},e),a);return Object.keys(o).forEach(function(s){o[s]===t[s]&&delete o[s]}),o}var Ju=typeof CSSINJS_STATISTIC<"u",Ao=!0;function is(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];if(!Ju)return Object.assign.apply(Object,[{}].concat(t));Ao=!1;var n={};return t.forEach(function(a){if(ge(a)==="object"){var i=Object.keys(a);i.forEach(function(o){Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get:function(){return a[o]}})})}}),Ao=!0,n}var x0={};function Wp(){}var Gp=function(t){var e,n=t,a=Wp;return Ju&&typeof Proxy<"u"&&(e=new Set,n=new Proxy(t,{get:function(o,s){if(Ao){var l;(l=e)===null||l===void 0||l.add(s)}return o[s]}}),a=function(o,s){var l;x0[o]={global:Array.from(e),component:Y(Y({},(l=x0[o])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:e,flush:a}};function g0(r,t,e){if(typeof e=="function"){var n;return e(is(t,(n=t[r])!==null&&n!==void 0?n:{}))}return e??{}}function Kp(r){return r==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return"max(".concat(n.map(function(i){return Qs(i)}).join(","),")")},min:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return"min(".concat(n.map(function(i){return Qs(i)}).join(","),")")}}}var Xp=1e3*60*10,Yp=(function(){function r(){wt(this,r),z(this,"map",new Map),z(this,"objectIDMap",new WeakMap),z(this,"nextID",0),z(this,"lastAccessBeat",new Map),z(this,"accessBeat",0)}return Bt(r,[{key:"set",value:function(e,n){this.clear();var a=this.getCompositeKey(e);this.map.set(a,n),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(e){var n=this.getCompositeKey(e),a=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(e){var n=this,a=e.map(function(i){return i&&ge(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(ge(i),"_").concat(i)});return a.join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var n=this.nextID;return this.objectIDMap.set(e,n),this.nextID+=1,n}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,i){n-a>Xp&&(e.map.delete(i),e.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),r})(),m0=new Yp;function Qp(r,t){return xe.useMemo(function(){var e=m0.get(t);if(e)return e;var n=r();return m0.set(t,n),n},t)}var Zp=function(){return{}};function Jp(r){var t=r.useCSP,e=t===void 0?Zp:t,n=r.useToken,a=r.usePrefix,i=r.getResetStyles,o=r.getCommonStyle,s=r.getCompUnitless;function l(d,g,x,h){var f=Array.isArray(d)?d[0]:d;function m(b){return"".concat(String(f)).concat(b.slice(0,1).toUpperCase()).concat(b.slice(1))}var v=(h==null?void 0:h.unitless)||{},y=typeof s=="function"?s(d):{},F=Y(Y({},y),{},z({},m("zIndexPopup"),!0));Object.keys(v).forEach(function(b){F[m(b)]=v[b]});var E=Y(Y({},h),{},{unitless:F,prefixToken:m}),C=u(d,g,x,E),A=c(f,x,E);return function(b){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,w=C(b,B),S=ce(w,2),_=S[1],P=A(B),I=ce(P,2),$=I[0],j=I[1];return[$,_,j]}}function c(d,g,x){var h=x.unitless,f=x.injectStyle,m=f===void 0?!0:f,v=x.prefixToken,y=x.ignore,F=function(A){var b=A.rootCls,B=A.cssVar,w=B===void 0?{}:B,S=n(),_=S.realToken;return tp({path:[d],prefix:w.prefix,key:w.key,unitless:h,ignore:y,token:_,scope:b},function(){var P=g0(d,_,g),I=v0(d,_,P,{deprecatedTokens:x==null?void 0:x.deprecatedTokens});return Object.keys(P).forEach(function($){I[v($)]=I[$],delete I[$]}),I}),null},E=function(A){var b=n(),B=b.cssVar;return[function(w){return m&&B?xe.createElement(xe.Fragment,null,xe.createElement(F,{rootCls:A,cssVar:B,component:d}),w):w},B==null?void 0:B.key]};return E}function u(d,g,x){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=Array.isArray(d)?d:[d,d],m=ce(f,1),v=m[0],y=f.join("-"),F=r.layer||{name:"antd"};return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,A=n(),b=A.theme,B=A.realToken,w=A.hashId,S=A.token,_=A.cssVar,P=a(),I=P.rootPrefixCls,$=P.iconPrefixCls,j=e(),H=_?"css":"js",V=Qp(function(){var T=new Set;return _&&Object.keys(h.unitless||{}).forEach(function(U){T.add(ia(U,_.prefix)),T.add(ia(U,d0(v,_.prefix)))}),Mp(H,T)},[H,v,_==null?void 0:_.prefix]),G=Kp(H),X=G.max,O=G.min,N={theme:b,token:S,hashId:w,nonce:function(){return j.nonce},clientOnly:h.clientOnly,layer:F,order:h.order||-999};typeof i=="function"&&oo(Y(Y({},N),{},{clientOnly:!1,path:["Shared",I]}),function(){return i(S,{prefix:{rootPrefixCls:I,iconPrefixCls:$},csp:j})});var R=oo(Y(Y({},N),{},{path:[y,E,$]}),function(){if(h.injectStyle===!1)return[];var T=Gp(S),U=T.token,K=T.flush,Z=g0(v,B,x),Q=".".concat(E),J=v0(v,B,Z,{deprecatedTokens:h.deprecatedTokens});_&&Z&&ge(Z)==="object"&&Object.keys(Z).forEach(function(oe){Z[oe]="var(".concat(ia(oe,d0(v,_.prefix)),")")});var pe=is(U,{componentCls:Q,prefixCls:E,iconCls:".".concat($),antCls:".".concat(I),calc:V,max:X,min:O},_?Z:J),ke=g(pe,{hashId:w,prefixCls:E,rootPrefixCls:I,iconPrefixCls:$});K(v,J);var Ae=typeof o=="function"?o(pe,E,C,h.resetFont):null;return[h.resetStyle===!1?null:Ae,ke]});return[R,w]}}function p(d,g,x){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=u(d,g,x,Y({resetStyle:!1,order:-998},h)),m=function(y){var F=y.prefixCls,E=y.rootCls,C=E===void 0?F:E;return f(F,C),null};return m}return{genStyleHooks:l,genSubStyleComponent:p,genComponentStyleHook:u}}const ev="5.28.0";function Ii(r){return r>=0&&r<=255}function Yn(r,t){const{r:e,g:n,b:a,a:i}=new at(r).toRgb();if(i<1)return r;const{r:o,g:s,b:l}=new at(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((e-o*(1-c))/c),p=Math.round((n-s*(1-c))/c),d=Math.round((a-l*(1-c))/c);if(Ii(u)&&Ii(p)&&Ii(d))return new at({r:u,g:p,b:d,a:Math.round(c*100)/100}).toRgbString()}return new at({r:e,g:n,b:a,a:1}).toRgbString()}var tv=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(r);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(r,n[a])&&(e[n[a]]=r[n[a]]);return e};function el(r){const{override:t}=r,e=tv(r,["override"]),n=Object.assign({},t);Object.keys(Pn).forEach(d=>{delete n[d]});const a=Object.assign(Object.assign({},e),n),i=480,o=576,s=768,l=992,c=1200,u=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Yn(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:Yn(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Yn(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:Yn(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:`
|
|
72
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
73
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
74
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
75
|
+
`,boxShadowSecondary:`
|
|
76
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
77
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
78
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
79
|
+
`,boxShadowTertiary:`
|
|
80
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
81
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
82
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
83
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
84
|
+
0 1px 2px -2px ${new at("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
85
|
+
0 3px 6px 0 ${new at("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
86
|
+
0 5px 12px 4px ${new at("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
87
|
+
`,boxShadowDrawerRight:`
|
|
88
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
89
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
90
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
91
|
+
`,boxShadowDrawerLeft:`
|
|
92
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
93
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
94
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
95
|
+
`,boxShadowDrawerUp:`
|
|
96
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
97
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
98
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
99
|
+
`,boxShadowDrawerDown:`
|
|
100
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
101
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
102
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
103
|
+
`,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 y0=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(r);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(r,n[a])&&(e[n[a]]=r[n[a]]);return e};const tl={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},rv={motionBase:!0,motionUnit:!0},nv={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},rl=(r,t,e)=>{const n=e.getDerivativeToken(r),{override:a}=t,i=y0(t,["override"]);let o=Object.assign(Object.assign({},n),{override:a});return o=el(o),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=y0(l,["theme"]);let p=u;c&&(p=rl(Object.assign(Object.assign({},o),u),{override:u},c)),o[s]=p}),o};function fi(){const{token:r,hashed:t,theme:e,override:n,cssVar:a}=xe.useContext(Ku),i=`${ev}-${t||""}`,o=e||Gu,[s,l,c]=Sh(o,[Pn,r],{salt:i,override:n,getComputedToken:rl,formatToken:el,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:tl,ignore:rv,preserve:nv}});return[o,c,t?l:"",s,a]}const av=(r,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:r.colorText,fontSize:r.fontSize,lineHeight:r.lineHeight,listStyle:"none",fontFamily:t?"inherit":r.fontFamily}),iv=()=>({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"}}),ov=r=>({a:{color:r.colorLink,textDecoration:r.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${r.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:r.colorLinkHover},"&:active":{color:r.colorLinkActive},"&:active, &:hover":{textDecoration:r.linkHoverDecoration,outline:0},"&:focus":{textDecoration:r.linkFocusDecoration,outline:0},"&[disabled]":{color:r.colorTextDisabled,cursor:"not-allowed"}}}),sv=(r,t,e,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,i=e?`.${e}`:a,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:r.fontFamily,fontSize:r.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),o),{[a]:o})}},nl=r=>({[`.${r}`]:Object.assign(Object.assign({},iv()),{[`.${r} .${r}-icon`]:{display:"block"}})}),{genStyleHooks:cv}=Jp({usePrefix:()=>{const{getPrefixCls:r,iconPrefixCls:t}=rr(xr);return{rootPrefixCls:r(),iconPrefixCls:t}},useToken:()=>{const[r,t,e,n,a]=fi();return{theme:r,realToken:t,hashId:e,token:n,cssVar:a}},useCSP:()=>{const{csp:r}=rr(xr);return r??{}},getResetStyles:(r,t)=>{var e;const n=ov(r);return[n,{"&":n},nl((e=t==null?void 0:t.prefix.iconPrefixCls)!==null&&e!==void 0?e:li)]},getCommonStyle:sv,getCompUnitless:()=>tl}),uv=(r,t)=>{const[e,n]=fi();return oo({token:n,hashId:"",path:["ant-design-icons",r],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>nl(r))},lv=Object.assign({},L),{useId:C0}=lv,fv=()=>"",dv=typeof C0>"u"?fv:C0;function hv(r,t,e){var n;const a=r||{},i=a.inherit===!1||!t?Object.assign(Object.assign({},Co),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:Co.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=dv();return wu(()=>{var s,l;if(!r)return t;const c=Object.assign({},i.components);Object.keys(r.components||{}).forEach(d=>{c[d]=Object.assign(Object.assign({},c[d]),r.components[d])});const u=`css-var-${o.replace(/:/g,"")}`,p=((s=a.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:e==null?void 0:e.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((l=a.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),a),{token:Object.assign(Object.assign({},i.token),a.token),components:c,cssVar:p})},[a,i],(s,l)=>s.some((c,u)=>{const p=l[u];return!eo(c,p,!0)}))}var Ri={exports:{}};/*!
|
|
104
|
+
Copyright (c) 2018 Jed Watson.
|
|
105
|
+
Licensed under the MIT License (MIT), see
|
|
106
|
+
http://jedwatson.github.io/classnames
|
|
107
|
+
*/var b0;function pv(){return b0||(b0=1,(function(r){(function(){var t={}.hasOwnProperty;function e(){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 e.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}r.exports?(e.default=e,r.exports=e):window.classNames=e})()})(Ri)),Ri.exports}var vv=pv();const tr=Uo(vv);function F0(r){return r instanceof HTMLElement||r instanceof SVGElement}function al(r){return r&&ge(r)==="object"&&F0(r.nativeElement)?r.nativeElement:F0(r)?r:null}function xv(r){var t=al(r);if(t)return t;if(r instanceof xe.Component){var e;return(e=ks.findDOMNode)===null||e===void 0?void 0:e.call(ks,r)}return null}var gv=["children"],il=L.createContext({});function mv(r){var t=r.children,e=hr(r,gv);return L.createElement(il.Provider,{value:e},t)}var yv=(function(r){vn(e,r);var t=xn(e);function e(){return wt(this,e),t.apply(this,arguments)}return Bt(e,[{key:"render",value:function(){return this.props.children}}]),e})(L.Component);function Cv(r){var t=L.useReducer(function(s){return s+1},0),e=ce(t,2),n=e[1],a=L.useRef(r),i=Ja(function(){return a.current}),o=Ja(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[i,o]}var Ar="none",Qn="appear",Zn="enter",Jn="leave",E0="none",Zt="prepare",tn="start",rn="active",os="end",ol="prepared";function A0(r,t){var e={};return e[r.toLowerCase()]=t.toLowerCase(),e["Webkit".concat(r)]="webkit".concat(t),e["Moz".concat(r)]="moz".concat(t),e["ms".concat(r)]="MS".concat(t),e["O".concat(r)]="o".concat(t.toLowerCase()),e}function bv(r,t){var e={animationend:A0("Animation","AnimationEnd"),transitionend:A0("Transition","TransitionEnd")};return r&&("AnimationEvent"in t||delete e.animationend.animation,"TransitionEvent"in t||delete e.transitionend.transition),e}var Fv=bv(gr(),typeof window<"u"?window:{}),sl={};if(gr()){var Ev=document.createElement("div");sl=Ev.style}var ea={};function cl(r){if(ea[r])return ea[r];var t=Fv[r];if(t)for(var e=Object.keys(t),n=e.length,a=0;a<n;a+=1){var i=e[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in sl)return ea[r]=t[i],ea[r]}return""}var ul=cl("animationend"),ll=cl("transitionend"),fl=!!(ul&&ll),w0=ul||"animationend",B0=ll||"transitionend";function S0(r,t){if(!r)return null;if(ge(r)==="object"){var e=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return r[e]}return"".concat(r,"-").concat(t)}const Av=(function(r){var t=He();function e(a){a&&(a.removeEventListener(B0,r),a.removeEventListener(w0,r))}function n(a){t.current&&t.current!==a&&e(t.current),a&&a!==t.current&&(a.addEventListener(B0,r),a.addEventListener(w0,r),t.current=a)}return L.useEffect(function(){return function(){e(t.current)}},[]),[n,e]});var dl=gr()?sf:_e,hl=function(t){return+setTimeout(t,16)},pl=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(hl=function(t){return window.requestAnimationFrame(t)},pl=function(t){return window.cancelAnimationFrame(t)});var _0=0,ss=new Map;function vl(r){ss.delete(r)}var wo=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_0+=1;var n=_0;function a(i){if(i===0)vl(n),t();else{var o=hl(function(){a(i-1)});ss.set(n,o)}}return a(e),n};wo.cancel=function(r){var t=ss.get(r);return vl(r),pl(t)};const wv=(function(){var r=L.useRef(null);function t(){wo.cancel(r.current)}function e(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=wo(function(){a<=1?n({isCanceled:function(){return i!==r.current}}):e(n,a-1)});r.current=i}return L.useEffect(function(){return function(){t()}},[]),[e,t]});var Bv=[Zt,tn,rn,os],Sv=[Zt,ol],xl=!1,_v=!0;function gl(r){return r===rn||r===os}const Dv=(function(r,t,e){var n=Eo(E0),a=ce(n,2),i=a[0],o=a[1],s=wv(),l=ce(s,2),c=l[0],u=l[1];function p(){o(Zt,!0)}var d=t?Sv:Bv;return dl(function(){if(i!==E0&&i!==os){var g=d.indexOf(i),x=d[g+1],h=e(i);h===xl?o(x,!0):x&&c(function(f){function m(){f.isCanceled()||o(x,!0)}h===!0?m():Promise.resolve(h).then(m)})}},[r,i]),L.useEffect(function(){return function(){u()}},[]),[p,i]});function kv(r,t,e,n){var a=n.motionEnter,i=a===void 0?!0:a,o=n.motionAppear,s=o===void 0?!0:o,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,p=n.motionLeaveImmediately,d=n.onAppearPrepare,g=n.onEnterPrepare,x=n.onLeavePrepare,h=n.onAppearStart,f=n.onEnterStart,m=n.onLeaveStart,v=n.onAppearActive,y=n.onEnterActive,F=n.onLeaveActive,E=n.onAppearEnd,C=n.onEnterEnd,A=n.onLeaveEnd,b=n.onVisibleChanged,B=Eo(),w=ce(B,2),S=w[0],_=w[1],P=Cv(Ar),I=ce(P,2),$=I[0],j=I[1],H=Eo(null),V=ce(H,2),G=V[0],X=V[1],O=$(),N=He(!1),R=He(null);function T(){return e()}var U=He(!1);function K(){j(Ar),X(null,!0)}var Z=Ja(function(be){var me=$();if(me!==Ar){var De=T();if(!(be&&!be.deadline&&be.target!==De)){var Oe=U.current,Ne;me===Qn&&Oe?Ne=E==null?void 0:E(De,be):me===Zn&&Oe?Ne=C==null?void 0:C(De,be):me===Jn&&Oe&&(Ne=A==null?void 0:A(De,be)),Oe&&Ne!==!1&&K()}}}),Q=Av(Z),J=ce(Q,1),pe=J[0],ke=function(me){switch(me){case Qn:return z(z(z({},Zt,d),tn,h),rn,v);case Zn:return z(z(z({},Zt,g),tn,f),rn,y);case Jn:return z(z(z({},Zt,x),tn,m),rn,F);default:return{}}},Ae=L.useMemo(function(){return ke(O)},[O]),oe=Dv(O,!r,function(be){if(be===Zt){var me=Ae[Zt];return me?me(T()):xl}if(ve in Ae){var De;X(((De=Ae[ve])===null||De===void 0?void 0:De.call(Ae,T(),null))||null)}return ve===rn&&O!==Ar&&(pe(T()),u>0&&(clearTimeout(R.current),R.current=setTimeout(function(){Z({deadline:!0})},u))),ve===ol&&K(),_v}),Fe=ce(oe,2),Re=Fe[0],ve=Fe[1],Ze=gl(ve);U.current=Ze;var Ge=He(null);dl(function(){if(!(N.current&&Ge.current===t)){_(t);var be=N.current;N.current=!0;var me;!be&&t&&s&&(me=Qn),be&&t&&i&&(me=Zn),(be&&!t&&c||!be&&p&&!t&&c)&&(me=Jn);var De=ke(me);me&&(r||De[Zt])?(j(me),Re()):j(Ar),Ge.current=t}},[t]),_e(function(){(O===Qn&&!s||O===Zn&&!i||O===Jn&&!c)&&j(Ar)},[s,i,c]),_e(function(){return function(){N.current=!1,clearTimeout(R.current)}},[]);var Ke=L.useRef(!1);_e(function(){S&&(Ke.current=!0),S!==void 0&&O===Ar&&((Ke.current||S)&&(b==null||b(S)),Ke.current=!0)},[S,O]);var et=G;return Ae[Zt]&&ve===tn&&(et=Y({transition:"none"},et)),[O,ve,et,S??t]}function Pv(r){var t=r;ge(r)==="object"&&(t=r.transitionSupport);function e(a,i){return!!(a.motionName&&t&&i!==!1)}var n=L.forwardRef(function(a,i){var o=a.visible,s=o===void 0?!0:o,l=a.removeOnLeave,c=l===void 0?!0:l,u=a.forceRender,p=a.children,d=a.motionName,g=a.leavedClassName,x=a.eventProps,h=L.useContext(il),f=h.motion,m=e(a,f),v=He(),y=He();function F(){try{return v.current instanceof HTMLElement?v.current:xv(y.current)}catch{return null}}var E=kv(m,s,F,a),C=ce(E,4),A=C[0],b=C[1],B=C[2],w=C[3],S=L.useRef(w);w&&(S.current=!0);var _=L.useCallback(function(V){v.current=V,Vp(i,V)},[i]),P,I=Y(Y({},x),{},{visible:s});if(!p)P=null;else if(A===Ar)w?P=p(Y({},I),_):!c&&S.current&&g?P=p(Y(Y({},I),{},{className:g}),_):u||!c&&!g?P=p(Y(Y({},I),{},{style:{display:"none"}}),_):P=null;else{var $;b===Zt?$="prepare":gl(b)?$="active":b===tn&&($="start");var j=S0(d,"".concat(A,"-").concat($));P=p(Y(Y({},I),{},{className:tr(S0(d,A),z(z({},j,j&&$),d,typeof d=="string")),style:B}),_)}if(L.isValidElement(P)&&qp(P)){var H=Up(P);H||(P=L.cloneElement(P,{ref:_}))}return L.createElement(yv,{ref:y},P)});return n.displayName="CSSMotion",n}const Tv=Pv(fl);var Bo="add",So="keep",_o="remove",Oi="removed";function Iv(r){var t;return r&&ge(r)==="object"&&"key"in r?t=r:t={key:r},Y(Y({},t),{},{key:String(t.key)})}function Do(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return r.map(Iv)}function Rv(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=[],n=0,a=t.length,i=Do(r),o=Do(t);i.forEach(function(c){for(var u=!1,p=n;p<a;p+=1){var d=o[p];if(d.key===c.key){n<p&&(e=e.concat(o.slice(n,p).map(function(g){return Y(Y({},g),{},{status:Bo})})),n=p),e.push(Y(Y({},d),{},{status:So})),n+=1,u=!0;break}}u||e.push(Y(Y({},c),{},{status:_o}))}),n<a&&(e=e.concat(o.slice(n).map(function(c){return Y(Y({},c),{},{status:Bo})})));var s={};e.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){e=e.filter(function(u){var p=u.key,d=u.status;return p!==c||d!==_o}),e.forEach(function(u){u.key===c&&(u.status=So)})}),e}var Ov=["component","children","onVisibleChanged","onAllRemoved"],Mv=["status"],Nv=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Lv(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tv,e=(function(n){vn(i,n);var a=xn(i);function i(){var o;wt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=a.call.apply(a,[this].concat(l)),z(Ee(o),"state",{keyEntities:[]}),z(Ee(o),"removeKey",function(u){o.setState(function(p){var d=p.keyEntities.map(function(g){return g.key!==u?g:Y(Y({},g),{},{status:Oi})});return{keyEntities:d}},function(){var p=o.state.keyEntities,d=p.filter(function(g){var x=g.status;return x!==Oi}).length;d===0&&o.props.onAllRemoved&&o.props.onAllRemoved()})}),o}return Bt(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,p=c.children,d=c.onVisibleChanged;c.onAllRemoved;var g=hr(c,Ov),x=u||L.Fragment,h={};return Nv.forEach(function(f){h[f]=g[f],delete g[f]}),delete g.keys,L.createElement(x,g,l.map(function(f,m){var v=f.status,y=hr(f,Mv),F=v===Bo||v===So;return L.createElement(t,pt({},h,{key:y.key,visible:F,eventProps:y,onVisibleChanged:function(C){d==null||d(C,{key:y.key}),C||s.removeKey(y.key)}}),function(E,C){return p(Y(Y({},E),{},{index:m}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,p=Do(c),d=Rv(u,p);return{keyEntities:d.filter(function(g){var x=u.find(function(h){var f=h.key;return g.key===f});return!(x&&x.status===Oi&&g.status===_o)})}}}]),i})(L.Component);return z(e,"defaultProps",{component:"div"}),e}const $v=Lv(fl),D0=L.createContext(!0);function zv(r){const t=L.useContext(D0),{children:e}=r,[,n]=fi(),{motion:a}=n,i=L.useRef(!1);return i.current||(i.current=t!==a),i.current?L.createElement(D0.Provider,{value:a},L.createElement(mv,{motion:a},e)):e}const jv=()=>null;var Hv=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(r);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(r,n[a])&&(e[n[a]]=r[n[a]]);return e};const Vv=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ei,ml,yl,Cl;function fa(){return ei||bo}function qv(){return ml||li}function Uv(r){return Object.keys(r).some(t=>t.endsWith("Color"))}const Wv=r=>{const{prefixCls:t,iconPrefixCls:e,theme:n,holderRender:a}=r;t!==void 0&&(ei=t),e!==void 0&&(ml=e),"holderRender"in r&&(Cl=a),n&&(Uv(n)?Dp(fa(),n):yl=n)},Gv=()=>({getPrefixCls:(r,t)=>t||(r?`${fa()}-${r}`:fa()),getIconPrefixCls:qv,getRootPrefixCls:()=>ei||fa(),getTheme:()=>yl,holderRender:Cl}),Kv=r=>{const{children:t,csp:e,autoInsertSpaceInButton:n,alert:a,anchor:i,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:p,virtual:d,dropdownMatchSelectWidth:g,popupMatchSelectWidth:x,popupOverflow:h,legacyLocale:f,parentContext:m,iconPrefixCls:v,theme:y,componentDisabled:F,segmented:E,statistic:C,spin:A,calendar:b,carousel:B,cascader:w,collapse:S,typography:_,checkbox:P,descriptions:I,divider:$,drawer:j,skeleton:H,steps:V,image:G,layout:X,list:O,mentions:N,modal:R,progress:T,result:U,slider:K,breadcrumb:Z,menu:Q,pagination:J,input:pe,textArea:ke,empty:Ae,badge:oe,radio:Fe,rate:Re,switch:ve,transfer:Ze,avatar:Ge,message:Ke,tag:et,table:be,card:me,tabs:De,timeline:Oe,timePicker:Ne,upload:ee,notification:ye,tree:Je,colorPicker:bt,datePicker:Ft,rangePicker:Dt,flex:Te,wave:kt,dropdown:nr,warning:yr,tour:Et,tooltip:pr,popover:ar,popconfirm:Dr,floatButton:ir,floatButtonGroup:kr,variant:Cr,inputNumber:Pr,treeSelect:Pt}=r,xt=L.useCallback((Ie,Le)=>{const{prefixCls:it}=r;if(Le)return Le;const lt=it||m.getPrefixCls("");return Ie?`${lt}-${Ie}`:lt},[m.getPrefixCls,r.prefixCls]),At=v||m.iconPrefixCls||li,Tt=e||m.csp;uv(At,Tt);const Wt=hv(y,m.theme,{prefixCls:xt("")}),$t={csp:Tt,autoInsertSpaceInButton:n,alert:a,anchor:i,locale:s||f,direction:c,space:u,splitter:p,virtual:d,popupMatchSelectWidth:x??g,popupOverflow:h,getPrefixCls:xt,iconPrefixCls:At,theme:Wt,segmented:E,statistic:C,spin:A,calendar:b,carousel:B,cascader:w,collapse:S,typography:_,checkbox:P,descriptions:I,divider:$,drawer:j,skeleton:H,steps:V,image:G,input:pe,textArea:ke,layout:X,list:O,mentions:N,modal:R,progress:T,result:U,slider:K,breadcrumb:Z,menu:Q,pagination:J,empty:Ae,badge:oe,radio:Fe,rate:Re,switch:ve,transfer:Ze,avatar:Ge,message:Ke,tag:et,table:be,card:me,tabs:De,timeline:Oe,timePicker:Ne,upload:ee,notification:ye,tree:Je,colorPicker:bt,datePicker:Ft,rangePicker:Dt,flex:Te,wave:kt,dropdown:nr,warning:yr,tour:Et,tooltip:pr,popover:ar,popconfirm:Dr,floatButton:ir,floatButtonGroup:kr,variant:Cr,inputNumber:Pr,treeSelect:Pt},We=Object.assign({},m);Object.keys($t).forEach(Ie=>{$t[Ie]!==void 0&&(We[Ie]=$t[Ie])}),Vv.forEach(Ie=>{const Le=r[Ie];Le&&(We[Ie]=Le)}),typeof n<"u"&&(We.button=Object.assign({autoInsertSpace:n},We.button));const le=wu(()=>We,We,(Ie,Le)=>{const it=Object.keys(Ie),lt=Object.keys(Le);return it.length!==lt.length||it.some(Kt=>Ie[Kt]!==Le[Kt])}),{layer:Xe}=L.useContext(Ln),gt=L.useMemo(()=>({prefixCls:At,csp:Tt,layer:Xe?"antd":void 0}),[At,Tt,Xe]);let Ce=L.createElement(L.Fragment,null,L.createElement(jv,{dropdownMatchSelectWidth:g}),t);const Ye=L.useMemo(()=>{var Ie,Le,it,lt;return en(((Ie=ui.Form)===null||Ie===void 0?void 0:Ie.defaultValidateMessages)||{},((it=(Le=le.locale)===null||Le===void 0?void 0:Le.Form)===null||it===void 0?void 0:it.defaultValidateMessages)||{},((lt=le.form)===null||lt===void 0?void 0:lt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[le,o==null?void 0:o.validateMessages]);Object.keys(Ye).length>0&&(Ce=L.createElement(sp.Provider,{value:Ye},Ce)),s&&(Ce=L.createElement(lp,{locale:s,_ANT_MARK__:up},Ce)),Ce=L.createElement(as.Provider,{value:gt},Ce),l&&(Ce=L.createElement(Pp,{size:l},Ce)),Ce=L.createElement(zv,null,Ce);const Gt=L.useMemo(()=>{const Ie=Wt||{},{algorithm:Le,token:it,components:lt,cssVar:Kt}=Ie,jr=Hv(Ie,["algorithm","token","components","cssVar"]),It=Le&&(!Array.isArray(Le)||Le.length>0)?ro(Le):Gu,or={};Object.entries(lt||{}).forEach(([Vr,qr])=>{const St=Object.assign({},qr);"algorithm"in St&&(St.algorithm===!0?St.theme=It:(Array.isArray(St.algorithm)||typeof St.algorithm=="function")&&(St.theme=ro(St.algorithm)),delete St.algorithm),or[Vr]=St});const Hr=Object.assign(Object.assign({},Pn),it);return Object.assign(Object.assign({},jr),{theme:It,token:Hr,components:or,override:Object.assign({override:Hr},or),cssVar:Kt})},[Wt]);return y&&(Ce=L.createElement(Ku.Provider,{value:Gt},Ce)),le.warning&&(Ce=L.createElement(op.Provider,{value:le.warning},Ce)),F!==void 0&&(Ce=L.createElement(kp,{disabled:F},Ce)),L.createElement(xr.Provider,{value:le},Ce)},mn=r=>{const t=L.useContext(xr),e=L.useContext(Vu);return L.createElement(Kv,Object.assign({parentContext:t,legacyLocale:e},r))};mn.ConfigContext=xr;mn.SizeContext=In;mn.config=Wv;mn.useConfig=Tp;Object.defineProperty(mn,"SizeContext",{get:()=>In});function bl(r,t){this.v=r,this.k=t}function yt(r,t,e,n){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}yt=function(o,s,l,c){function u(p,d){yt(o,p,function(g){return this._invoke(p,d,g)})}s?a?a(o,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):o[s]=l:(u("next",0),u("throw",1),u("return",2))},yt(r,t,e,n)}function cs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var r,t,e=typeof Symbol=="function"?Symbol:{},n=e.iterator||"@@iterator",a=e.toStringTag||"@@toStringTag";function i(g,x,h,f){var m=x&&x.prototype instanceof s?x:s,v=Object.create(m.prototype);return yt(v,"_invoke",(function(y,F,E){var C,A,b,B=0,w=E||[],S=!1,_={p:0,n:0,v:r,a:P,f:P.bind(r,4),d:function($,j){return C=$,A=0,b=r,_.n=j,o}};function P(I,$){for(A=I,b=$,t=0;!S&&B&&!j&&t<w.length;t++){var j,H=w[t],V=_.p,G=H[2];I>3?(j=G===$)&&(b=H[(A=H[4])?5:(A=3,3)],H[4]=H[5]=r):H[0]<=V&&((j=I<2&&V<H[1])?(A=0,_.v=$,_.n=H[1]):V<G&&(j=I<3||H[0]>$||$>G)&&(H[4]=I,H[5]=$,_.n=G,A=0))}if(j||I>1)return o;throw S=!0,$}return function(I,$,j){if(B>1)throw TypeError("Generator is already running");for(S&&$===1&&P($,j),A=$,b=j;(t=A<2?r:b)||!S;){C||(A?A<3?(A>1&&(_.n=-1),P(A,b)):_.n=b:_.v=b);try{if(B=2,C){if(A||(I="next"),t=C[I]){if(!(t=t.call(C,b)))throw TypeError("iterator result is not an object");if(!t.done)return t;b=t.value,A<2&&(A=0)}else A===1&&(t=C.return)&&t.call(C),A<2&&(b=TypeError("The iterator does not provide a '"+I+"' method"),A=1);C=r}else if((t=(S=_.n<0)?b:y.call(F,_))!==o)break}catch(H){C=r,A=1,b=H}finally{B=1}}return{value:t,done:S}}})(g,h,f),!0),v}var o={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),p=c.prototype=s.prototype=Object.create(u);function d(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,yt(g,a,"GeneratorFunction")),g.prototype=Object.create(p),g}return l.prototype=c,yt(p,"constructor",c),yt(c,"constructor",l),l.displayName="GeneratorFunction",yt(c,a,"GeneratorFunction"),yt(p),yt(p,a,"Generator"),yt(p,n,function(){return this}),yt(p,"toString",function(){return"[object Generator]"}),(cs=function(){return{w:i,m:d}})()}function ti(r,t){function e(a,i,o,s){try{var l=r[a](i),c=l.value;return c instanceof bl?t.resolve(c.v).then(function(u){e("next",u,o,s)},function(u){e("throw",u,o,s)}):t.resolve(c).then(function(u){l.value=u,o(l)},function(u){return e("throw",u,o,s)})}catch(u){s(u)}}var n;this.next||(yt(ti.prototype),yt(ti.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),yt(this,"_invoke",function(a,i,o){function s(){return new t(function(l,c){e(a,o,l,c)})}return n=n?n.then(s,s):s()},!0)}function Fl(r,t,e,n,a){return new ti(cs().w(r,t,e,n),a||Promise)}function Xv(r,t,e,n,a){var i=Fl(r,t,e,n,a);return i.next().then(function(o){return o.done?o.value:i.next()})}function Yv(r){var t=Object(r),e=[];for(var n in t)e.unshift(n);return function a(){for(;e.length;)if((n=e.pop())in t)return a.value=n,a.done=!1,a;return a.done=!0,a}}function k0(r){if(r!=null){var t=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],e=0;if(t)return t.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}}}throw new TypeError(ge(r)+" is not iterable")}function Ct(){var r=cs(),t=r.m(Ct),e=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(o){var s=typeof o=="function"&&o.constructor;return!!s&&(s===e||(s.displayName||s.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function i(o){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(p,d){return l(c.a,a[p],d)},delegateYield:function(p,d,g){return s.resultName=d,l(c.d,k0(p),g)},finish:function(p){return l(c.f,p)}},l=function(p,d,g){c.p=s.prev,c.n=s.next;try{return p(d,g)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return o.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Ct=function(){return{wrap:function(l,c,u,p){return r.w(i(l),c,u,p&&p.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function(l,c){return new bl(l,c)},AsyncIterator:ti,async:function(l,c,u,p,d){return(n(c)?Fl:Xv)(i(l),c,u,p,d)},keys:Yv,values:k0}})()}function P0(r,t,e,n,a,i,o){try{var s=r[i](o),l=s.value}catch(c){return void e(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function Lr(r){return function(){var t=this,e=arguments;return new Promise(function(n,a){var i=r.apply(t,e);function o(l){P0(i,n,a,o,s,"next",l)}function s(l){P0(i,n,a,o,s,"throw",l)}o(void 0)})}}var $n=Y({},Uf),Qv=$n.version,Mi=$n.render,Zv=$n.unmountComponentAtNode,di;try{var Jv=Number((Qv||"").split(".")[0]);Jv>=18&&(di=$n.createRoot)}catch{}function T0(r){var t=$n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ge(t)==="object"&&(t.usingClientEntryPoint=r)}var ri="__rc_react_root__";function ex(r,t){T0(!0);var e=t[ri]||di(t);T0(!1),e.render(r),t[ri]=e}function tx(r,t){Mi==null||Mi(r,t)}function rx(r,t){if(di){ex(r,t);return}tx(r,t)}function nx(r){return ko.apply(this,arguments)}function ko(){return ko=Lr(Ct().mark(function r(t){return Ct().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[ri])===null||a===void 0||a.unmount(),delete t[ri]}));case 1:case"end":return n.stop()}},r)})),ko.apply(this,arguments)}function ax(r){Zv(r)}function ix(r){return Po.apply(this,arguments)}function Po(){return Po=Lr(Ct().mark(function r(t){return Ct().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(di===void 0){n.next=2;break}return n.abrupt("return",nx(t));case 2:ax(t);case 3:case"end":return n.stop()}},r)})),Po.apply(this,arguments)}const ox=(r,t)=>(rx(r,t),()=>ix(t));let sx=ox;function cx(r){return sx}var ux={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function El(r){var t;return r==null||(t=r.getRootNode)===null||t===void 0?void 0:t.call(r)}function lx(r){return El(r)instanceof ShadowRoot}function fx(r){return lx(r)?El(r):null}function dx(r){return r.replace(/-(.)/g,function(t,e){return e.toUpperCase()})}function hx(r,t){Lt(r,"[@ant-design/icons] ".concat(t))}function I0(r){return ge(r)==="object"&&typeof r.name=="string"&&typeof r.theme=="string"&&(ge(r.icon)==="object"||typeof r.icon=="function")}function R0(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(r).reduce(function(t,e){var n=r[e];switch(e){case"class":t.className=n,delete t.class;break;default:delete t[e],t[dx(e)]=n}return t},{})}function To(r,t,e){return e?xe.createElement(r.tag,Y(Y({key:t},R0(r.attrs)),e),(r.children||[]).map(function(n,a){return To(n,"".concat(t,"-").concat(r.tag,"-").concat(a))})):xe.createElement(r.tag,Y({key:t},R0(r.attrs)),(r.children||[]).map(function(n,a){return To(n,"".concat(t,"-").concat(r.tag,"-").concat(a))}))}function Al(r){return Tn(r)[0]}function wl(r){return r?Array.isArray(r)?r:[r]:[]}var px=`
|
|
108
|
+
.anticon {
|
|
109
|
+
display: inline-flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
color: inherit;
|
|
112
|
+
font-style: normal;
|
|
113
|
+
line-height: 0;
|
|
114
|
+
text-align: center;
|
|
115
|
+
text-transform: none;
|
|
116
|
+
vertical-align: -0.125em;
|
|
117
|
+
text-rendering: optimizeLegibility;
|
|
118
|
+
-webkit-font-smoothing: antialiased;
|
|
119
|
+
-moz-osx-font-smoothing: grayscale;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.anticon > * {
|
|
123
|
+
line-height: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.anticon svg {
|
|
127
|
+
display: inline-block;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.anticon::before {
|
|
131
|
+
display: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.anticon .anticon-icon {
|
|
135
|
+
display: block;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.anticon[tabindex] {
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.anticon-spin::before,
|
|
143
|
+
.anticon-spin {
|
|
144
|
+
display: inline-block;
|
|
145
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
146
|
+
animation: loadingCircle 1s infinite linear;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@-webkit-keyframes loadingCircle {
|
|
150
|
+
100% {
|
|
151
|
+
-webkit-transform: rotate(360deg);
|
|
152
|
+
transform: rotate(360deg);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@keyframes loadingCircle {
|
|
157
|
+
100% {
|
|
158
|
+
-webkit-transform: rotate(360deg);
|
|
159
|
+
transform: rotate(360deg);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
`,vx=function(t){var e=rr(as),n=e.csp,a=e.prefixCls,i=e.layer,o=px;a&&(o=o.replace(/anticon/g,a)),i&&(o="@layer ".concat(i,` {
|
|
163
|
+
`).concat(o,`
|
|
164
|
+
}`)),_e(function(){var s=t.current,l=fx(s);Mr(o,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])},xx=["icon","className","onClick","style","primaryColor","secondaryColor"],wn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function gx(r){var t=r.primaryColor,e=r.secondaryColor;wn.primaryColor=t,wn.secondaryColor=e||Al(t),wn.calculated=!!e}function mx(){return Y({},wn)}var yn=function(t){var e=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,l=hr(t,xx),c=L.useRef(),u=wn;if(o&&(u={primaryColor:o,secondaryColor:s||Al(o)}),vx(c),hx(I0(e),"icon should be icon definiton, but got ".concat(e)),!I0(e))return null;var p=e;return p&&typeof p.icon=="function"&&(p=Y(Y({},p),{},{icon:p.icon(u.primaryColor,u.secondaryColor)})),To(p.icon,"svg-".concat(p.name),Y(Y({className:n,onClick:a,style:i,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};yn.displayName="IconReact";yn.getTwoToneColors=mx;yn.setTwoToneColors=gx;function Bl(r){var t=wl(r),e=ce(t,2),n=e[0],a=e[1];return yn.setTwoToneColors({primaryColor:n,secondaryColor:a})}function yx(){var r=yn.getTwoToneColors();return r.calculated?[r.primaryColor,r.secondaryColor]:r.primaryColor}var Cx=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Bl(Za.primary);var mr=L.forwardRef(function(r,t){var e=r.className,n=r.icon,a=r.spin,i=r.rotate,o=r.tabIndex,s=r.onClick,l=r.twoToneColor,c=hr(r,Cx),u=L.useContext(as),p=u.prefixCls,d=p===void 0?"anticon":p,g=u.rootClassName,x=tr(g,d,z(z({},"".concat(d,"-").concat(n.name),!!n.name),"".concat(d,"-spin"),!!a||n.name==="loading"),e),h=o;h===void 0&&s&&(h=-1);var f=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,m=wl(l),v=ce(m,2),y=v[0],F=v[1];return L.createElement("span",pt({role:"img","aria-label":n.name},c,{ref:t,tabIndex:h,onClick:s,className:x}),L.createElement(yn,{icon:n,primaryColor:y,secondaryColor:F,style:f}))});mr.displayName="AntdIcon";mr.getTwoToneColor=yx;mr.setTwoToneColor=Bl;var bx=function(t,e){return L.createElement(mr,pt({},t,{ref:e,icon:ux}))},Fx=L.forwardRef(bx),Ex={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"},Ax=function(t,e){return L.createElement(mr,pt({},t,{ref:e,icon:Ex}))},wx=L.forwardRef(Ax),Bx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Sx=function(t,e){return L.createElement(mr,pt({},t,{ref:e,icon:Bx}))},_x=L.forwardRef(Sx),Dx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},kx=function(t,e){return L.createElement(mr,pt({},t,{ref:e,icon:Dx}))},Px=L.forwardRef(kx),Tx={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"},Ix=function(t,e){return L.createElement(mr,pt({},t,{ref:e,icon:Tx}))},Rx=L.forwardRef(Ix),Ox={ENTER:13},Mx=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
165
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
166
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
167
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
168
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
169
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
170
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
171
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
172
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
173
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
174
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
175
|
+
summary tabIndex target title type useMap value width wmode wrap`,Nx=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
176
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
177
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
178
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
179
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
180
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
181
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Lx="".concat(Mx," ").concat(Nx).split(/[\s\n]+/),$x="aria-",zx="data-";function O0(r,t){return r.indexOf(t)===0}function jx(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e;t===!1?e={aria:!0,data:!0,attr:!0}:t===!0?e={aria:!0}:e=Y({},t);var n={};return Object.keys(r).forEach(function(a){(e.aria&&(a==="role"||O0(a,$x))||e.data&&O0(a,zx)||e.attr&&Lx.includes(a))&&(n[a]=r[a])}),n}var Sl=L.forwardRef(function(r,t){var e=r.prefixCls,n=r.style,a=r.className,i=r.duration,o=i===void 0?4.5:i,s=r.showProgress,l=r.pauseOnHover,c=l===void 0?!0:l,u=r.eventKey,p=r.content,d=r.closable,g=r.closeIcon,x=g===void 0?"x":g,h=r.props,f=r.onClick,m=r.onNoticeClose,v=r.times,y=r.hovering,F=L.useState(!1),E=ce(F,2),C=E[0],A=E[1],b=L.useState(0),B=ce(b,2),w=B[0],S=B[1],_=L.useState(0),P=ce(_,2),I=P[0],$=P[1],j=y||C,H=o>0&&s,V=function(){m(u)},G=function(U){(U.key==="Enter"||U.code==="Enter"||U.keyCode===Ox.ENTER)&&V()};L.useEffect(function(){if(!j&&o>0){var T=Date.now()-I,U=setTimeout(function(){V()},o*1e3-I);return function(){c&&clearTimeout(U),$(Date.now()-T)}}},[o,j,v]),L.useEffect(function(){if(!j&&H&&(c||I===0)){var T=performance.now(),U,K=function Z(){cancelAnimationFrame(U),U=requestAnimationFrame(function(Q){var J=Q+I-T,pe=Math.min(J/(o*1e3),1);S(pe*100),pe<1&&Z()})};return K(),function(){c&&cancelAnimationFrame(U)}}},[o,I,j,H,v]);var X=L.useMemo(function(){return ge(d)==="object"&&d!==null?d:d?{closeIcon:x}:{}},[d,x]),O=jx(X,!0),N=100-(!w||w<0?0:w>100?100:w),R="".concat(e,"-notice");return L.createElement("div",pt({},h,{ref:t,className:tr(R,a,z({},"".concat(R,"-closable"),d)),style:n,onMouseEnter:function(U){var K;A(!0),h==null||(K=h.onMouseEnter)===null||K===void 0||K.call(h,U)},onMouseLeave:function(U){var K;A(!1),h==null||(K=h.onMouseLeave)===null||K===void 0||K.call(h,U)},onClick:f}),L.createElement("div",{className:"".concat(R,"-content")},p),d&&L.createElement("a",pt({tabIndex:0,className:"".concat(R,"-close"),onKeyDown:G,"aria-label":"Close"},O,{onClick:function(U){U.preventDefault(),U.stopPropagation(),V()}}),X.closeIcon),H&&L.createElement("progress",{className:"".concat(R,"-progress"),max:"100",value:N},N+"%"))}),_l=xe.createContext({}),Hx=function(t){var e=t.children,n=t.classNames;return xe.createElement(_l.Provider,{value:{classNames:n}},e)},M0=8,N0=3,L0=16,Vx=function(t){var e={offset:M0,threshold:N0,gap:L0};if(t&&ge(t)==="object"){var n,a,i;e.offset=(n=t.offset)!==null&&n!==void 0?n:M0,e.threshold=(a=t.threshold)!==null&&a!==void 0?a:N0,e.gap=(i=t.gap)!==null&&i!==void 0?i:L0}return[!!t,e]},qx=["className","style","classNames","styles"],Ux=function(t){var e=t.configList,n=t.placement,a=t.prefixCls,i=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,p=rr(_l),d=p.classNames,g=He({}),x=fe(null),h=ce(x,2),f=h[0],m=h[1],v=fe([]),y=ce(v,2),F=y[0],E=y[1],C=e.map(function(j){return{config:j,key:String(j.key)}}),A=Vx(u),b=ce(A,2),B=b[0],w=b[1],S=w.offset,_=w.threshold,P=w.gap,I=B&&(F.length>0||C.length<=_),$=typeof s=="function"?s(n):s;return _e(function(){B&&F.length>1&&E(function(j){return j.filter(function(H){return C.some(function(V){var G=V.key;return H===G})})})},[F,C,B]),_e(function(){var j;if(B&&g.current[(j=C[C.length-1])===null||j===void 0?void 0:j.key]){var H;m(g.current[(H=C[C.length-1])===null||H===void 0?void 0:H.key])}},[C,B]),xe.createElement($v,pt({key:n,className:tr(a,"".concat(a,"-").concat(n),d==null?void 0:d.list,i,z(z({},"".concat(a,"-stack"),!!B),"".concat(a,"-stack-expanded"),I)),style:o,keys:C,motionAppear:!0},$,{onAllRemoved:function(){l(n)}}),function(j,H){var V=j.config,G=j.className,X=j.style,O=j.index,N=V,R=N.key,T=N.times,U=String(R),K=V,Z=K.className,Q=K.style,J=K.classNames,pe=K.styles,ke=hr(K,qx),Ae=C.findIndex(function(Oe){return Oe.key===U}),oe={};if(B){var Fe=C.length-1-(Ae>-1?Ae:O-1),Re=n==="top"||n==="bottom"?"-50%":"0";if(Fe>0){var ve,Ze,Ge;oe.height=I?(ve=g.current[U])===null||ve===void 0?void 0:ve.offsetHeight:f==null?void 0:f.offsetHeight;for(var Ke=0,et=0;et<Fe;et++){var be;Ke+=((be=g.current[C[C.length-1-et].key])===null||be===void 0?void 0:be.offsetHeight)+P}var me=(I?Ke:Fe*S)*(n.startsWith("top")?1:-1),De=!I&&f!==null&&f!==void 0&&f.offsetWidth&&(Ze=g.current[U])!==null&&Ze!==void 0&&Ze.offsetWidth?((f==null?void 0:f.offsetWidth)-S*2*(Fe<3?Fe:3))/((Ge=g.current[U])===null||Ge===void 0?void 0:Ge.offsetWidth):1;oe.transform="translate3d(".concat(Re,", ").concat(me,"px, 0) scaleX(").concat(De,")")}else oe.transform="translate3d(".concat(Re,", 0, 0)")}return xe.createElement("div",{ref:H,className:tr("".concat(a,"-notice-wrapper"),G,J==null?void 0:J.wrapper),style:Y(Y(Y({},X),oe),pe==null?void 0:pe.wrapper),onMouseEnter:function(){return E(function(Ne){return Ne.includes(U)?Ne:[].concat(de(Ne),[U])})},onMouseLeave:function(){return E(function(Ne){return Ne.filter(function(ee){return ee!==U})})}},xe.createElement(Sl,pt({},ke,{ref:function(Ne){Ae>-1?g.current[U]=Ne:delete g.current[U]},prefixCls:a,classNames:J,styles:pe,className:tr(Z,d==null?void 0:d.notice),style:Q,times:T,key:R,eventKey:R,onNoticeClose:c,hovering:B&&F.length>0})))})},Wx=L.forwardRef(function(r,t){var e=r.prefixCls,n=e===void 0?"rc-notification":e,a=r.container,i=r.motion,o=r.maxCount,s=r.className,l=r.style,c=r.onAllRemoved,u=r.stack,p=r.renderNotifications,d=L.useState([]),g=ce(d,2),x=g[0],h=g[1],f=function(B){var w,S=x.find(function(_){return _.key===B});S==null||(w=S.onClose)===null||w===void 0||w.call(S),h(function(_){return _.filter(function(P){return P.key!==B})})};L.useImperativeHandle(t,function(){return{open:function(B){h(function(w){var S=de(w),_=S.findIndex(function($){return $.key===B.key}),P=Y({},B);if(_>=0){var I;P.times=(((I=w[_])===null||I===void 0?void 0:I.times)||0)+1,S[_]=P}else P.times=0,S.push(P);return o>0&&S.length>o&&(S=S.slice(-o)),S})},close:function(B){f(B)},destroy:function(){h([])}}});var m=L.useState({}),v=ce(m,2),y=v[0],F=v[1];L.useEffect(function(){var b={};x.forEach(function(B){var w=B.placement,S=w===void 0?"topRight":w;S&&(b[S]=b[S]||[],b[S].push(B))}),Object.keys(y).forEach(function(B){b[B]=b[B]||[]}),F(b)},[x]);var E=function(B){F(function(w){var S=Y({},w),_=S[B]||[];return _.length||delete S[B],S})},C=L.useRef(!1);if(L.useEffect(function(){Object.keys(y).length>0?C.current=!0:C.current&&(c==null||c(),C.current=!1)},[y]),!a)return null;var A=Object.keys(y);return Wf(L.createElement(L.Fragment,null,A.map(function(b){var B=y[b],w=L.createElement(Ux,{key:b,configList:B,placement:b,prefixCls:n,className:s==null?void 0:s(b),style:l==null?void 0:l(b),motion:i,onNoticeClose:f,onAllNoticeRemoved:E,stack:u});return p?p(w,{prefixCls:n,key:b}):w})),a)}),Gx=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Kx=function(){return document.body},$0=0;function Xx(){for(var r={},t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.forEach(function(a){a&&Object.keys(a).forEach(function(i){var o=a[i];o!==void 0&&(r[i]=o)})}),r}function Yx(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.getContainer,e=t===void 0?Kx:t,n=r.motion,a=r.prefixCls,i=r.maxCount,o=r.className,s=r.style,l=r.onAllRemoved,c=r.stack,u=r.renderNotifications,p=hr(r,Gx),d=L.useState(),g=ce(d,2),x=g[0],h=g[1],f=L.useRef(),m=L.createElement(Wx,{container:x,ref:f,prefixCls:a,motion:n,maxCount:i,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),v=L.useState([]),y=ce(v,2),F=y[0],E=y[1],C=Ja(function(b){var B=Xx(p,b);(B.key===null||B.key===void 0)&&(B.key="rc-notification-".concat($0),$0+=1),E(function(w){return[].concat(de(w),[{type:"open",config:B}])})}),A=L.useMemo(function(){return{open:C,close:function(B){E(function(w){return[].concat(de(w),[{type:"close",key:B}])})},destroy:function(){E(function(B){return[].concat(de(B),[{type:"destroy"}])})}}},[]);return L.useEffect(function(){h(e())}),L.useEffect(function(){if(f.current&&F.length){F.forEach(function(w){switch(w.type){case"open":f.current.open(w.config);break;case"close":f.current.close(w.key);break;case"destroy":f.current.destroy();break}});var b,B;E(function(w){return(b!==w||!B)&&(b=w,B=w.filter(function(S){return!F.includes(S)})),B})}},[F]),[A,m]}const Dl=r=>{const[,,,,t]=fi();return t?`${r}-css-var`:""};var Qx={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"},Zx=function(t,e){return L.createElement(mr,pt({},t,{ref:e,icon:Qx}))},Jx=L.forwardRef(Zx);const e1=100,t1=10,r1=e1*t1,n1=r=>{const{componentCls:t,iconCls:e,boxShadow:n,colorText:a,colorSuccess:i,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:p,marginXS:d,paddingXS:g,borderRadiusLG:x,zIndexPopup:h,contentPadding:f,contentBg:m}=r,v=`${t}-notice`,y=new a0("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),F=new a0("MessageMoveOut",{"0%":{maxHeight:r.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${e}`]:{marginInlineEnd:d,fontSize:c},[`${v}-content`]:{display:"inline-block",padding:f,background:m,borderRadius:x,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${e}`]:{color:i},[`${t}-error > ${e}`]:{color:o},[`${t}-warning > ${e}`]:{color:s},[`${t}-info > ${e},
|
|
182
|
+
${t}-loading > ${e}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},av(r)),{color:a,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
183
|
+
${t}-move-up-appear,
|
|
184
|
+
${t}-move-up-enter
|
|
185
|
+
`]:{animationName:y,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`
|
|
186
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
187
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
188
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:F,animationDuration:p,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]},a1=r=>({zIndexPopup:r.zIndexPopupBase+r1+10,contentBg:r.colorBgElevated,contentPadding:`${(r.controlHeightLG-r.fontSize*r.lineHeight)/2}px ${r.paddingSM}px`}),kl=cv("Message",r=>{const t=is(r,{height:150});return n1(t)},a1);var i1=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(r);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(r,n[a])&&(e[n[a]]=r[n[a]]);return e};const o1={info:L.createElement(Px,null),success:L.createElement(Fx,null),error:L.createElement(wx,null),warning:L.createElement(_x,null),loading:L.createElement(Rx,null)},Pl=({prefixCls:r,type:t,icon:e,children:n})=>L.createElement("div",{className:tr(`${r}-custom-content`,`${r}-${t}`)},e||o1[t],L.createElement("span",null,n)),s1=r=>{const{prefixCls:t,className:e,type:n,icon:a,content:i}=r,o=i1(r,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=L.useContext(xr),l=t||s("message"),c=Dl(l),[u,p,d]=kl(l,c);return u(L.createElement(Sl,Object.assign({},o,{prefixCls:l,className:tr(e,p,`${l}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:L.createElement(Pl,{prefixCls:l,type:n,icon:a},i)})))};function c1(r,t){return{motionName:t??`${r}-move-up`}}function us(r){let t;const e=new Promise(a=>{t=r(()=>{a(!0)})}),n=()=>{t==null||t()};return n.then=(a,i)=>e.then(a,i),n.promise=e,n}var u1=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(r);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(r,n[a])&&(e[n[a]]=r[n[a]]);return e};const l1=8,f1=3,d1=({children:r,prefixCls:t})=>{const e=Dl(t),[n,a,i]=kl(t,e);return n(L.createElement(Hx,{classNames:{list:tr(a,i,e)}},r))},h1=(r,{prefixCls:t,key:e})=>L.createElement(d1,{prefixCls:t,key:e},r),p1=L.forwardRef((r,t)=>{const{top:e,prefixCls:n,getContainer:a,maxCount:i,duration:o=f1,rtl:s,transitionName:l,onAllRemoved:c}=r,{getPrefixCls:u,getPopupContainer:p,message:d,direction:g}=L.useContext(xr),x=n||u("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:e??l1}),f=()=>tr({[`${x}-rtl`]:s??g==="rtl"}),m=()=>c1(x,l),v=L.createElement("span",{className:`${x}-close-x`},L.createElement(Jx,{className:`${x}-close-icon`})),[y,F]=Yx({prefixCls:x,style:h,className:f,motion:m,closable:!1,closeIcon:v,duration:o,getContainer:()=>(a==null?void 0:a())||(p==null?void 0:p())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:h1});return L.useImperativeHandle(t,()=>Object.assign(Object.assign({},y),{prefixCls:x,message:d})),F});let z0=0;function Tl(r){const t=L.useRef(null);return[L.useMemo(()=>{const n=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},a=l=>{if(!t.current){const C=()=>{};return C.then=()=>{},C}const{open:c,prefixCls:u,message:p}=t.current,d=`${u}-notice`,{content:g,icon:x,type:h,key:f,className:m,style:v,onClose:y}=l,F=u1(l,["content","icon","type","key","className","style","onClose"]);let E=f;return E==null&&(z0+=1,E=`antd-message-${z0}`),us(C=>(c(Object.assign(Object.assign({},F),{key:E,content:L.createElement(Pl,{prefixCls:u,type:h,icon:x},g),placement:"top",className:tr(h&&`${d}-${h}`,m,p==null?void 0:p.className),style:Object.assign(Object.assign({},p==null?void 0:p.style),v),onClose:()=>{y==null||y(),C()}})),()=>{n(E)}))},o={open:a,destroy:l=>{var c;l!==void 0?n(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,p,d)=>{let g;u&&typeof u=="object"&&"content"in u?g=u:g={content:u};let x,h;typeof p=="function"?h=p:(x=p,h=d);const f=Object.assign(Object.assign({onClose:h,duration:x},g),{type:l});return a(f)};o[l]=c}),o},[]),L.createElement(p1,Object.assign({key:"message-holder"},r,{ref:t}))]}function v1(r){return Tl(r)}let qt=null,Rr=r=>r(),Rn=[],On={};function j0(){const{getContainer:r,duration:t,rtl:e,maxCount:n,top:a}=On,i=(r==null?void 0:r())||document.body;return{getContainer:()=>i,duration:t,rtl:e,maxCount:n,top:a}}const x1=xe.forwardRef((r,t)=>{const{messageConfig:e,sync:n}=r,{getPrefixCls:a}=rr(xr),i=On.prefixCls||a("message"),o=rr(Ud),[s,l]=Tl(Object.assign(Object.assign(Object.assign({},e),{prefixCls:i}),o.message));return xe.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...p)=>(n(),s[u].apply(s,p))}),{instance:c,sync:n}}),l}),g1=xe.forwardRef((r,t)=>{const[e,n]=xe.useState(j0),a=()=>{n(j0)};xe.useEffect(a,[]);const i=Gv(),o=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=xe.createElement(x1,{ref:t,sync:a,messageConfig:e});return xe.createElement(mn,{prefixCls:o,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}),hi=()=>{if(!qt){const r=document.createDocumentFragment(),t={fragment:r};qt=t,Rr(()=>{cx()(xe.createElement(g1,{ref:n=>{const{instance:a,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=i,hi())})}}),r)});return}qt.instance&&(Rn.forEach(r=>{const{type:t,skipped:e}=r;if(!e)switch(t){case"open":{Rr(()=>{const n=qt.instance.open(Object.assign(Object.assign({},On),r.config));n==null||n.then(r.resolve),r.setCloseFn(n)});break}case"destroy":Rr(()=>{qt==null||qt.instance.destroy(r.key)});break;default:Rr(()=>{var n;const a=(n=qt.instance)[t].apply(n,de(r.args));a==null||a.then(r.resolve),r.setCloseFn(a)})}}),Rn=[])};function m1(r){On=Object.assign(Object.assign({},On),r),Rr(()=>{var t;(t=qt==null?void 0:qt.sync)===null||t===void 0||t.call(qt)})}function y1(r){const t=us(e=>{let n;const a={type:"open",config:r,resolve:e,setCloseFn:i=>{n=i}};return Rn.push(a),()=>{n?Rr(()=>{n()}):a.skipped=!0}});return hi(),t}function C1(r,t){const e=us(n=>{let a;const i={type:r,args:t,resolve:n,setCloseFn:o=>{a=o}};return Rn.push(i),()=>{a?Rr(()=>{a()}):i.skipped=!0}});return hi(),e}const b1=r=>{Rn.push({type:"destroy",key:r}),hi()},F1=["success","info","warning","error","loading"],E1={open:y1,destroy:b1,config:m1,useMessage:v1,_InternalPanelDoNotUseOrYouWillBeFired:s1},da=E1;F1.forEach(r=>{da[r]=(...t)=>C1(r,t)});var ha={exports:{}};/*!
|
|
189
|
+
* clipboard.js v2.0.11
|
|
190
|
+
* https://clipboardjs.com/
|
|
191
|
+
*
|
|
192
|
+
* Licensed MIT © Zeno Rocha
|
|
193
|
+
*/var A1=ha.exports,H0;function w1(){return H0||(H0=1,(function(r,t){(function(n,a){r.exports=a()})(A1,function(){return(function(){var e={686:(function(i,o,s){s.d(o,{default:function(){return O}});var l=s(279),c=s.n(l),u=s(370),p=s.n(u),d=s(817),g=s.n(d);function x(N){try{return document.execCommand(N)}catch{return!1}}var h=function(R){var T=g()(R);return x("cut"),T},f=h;function m(N){var R=document.documentElement.getAttribute("dir")==="rtl",T=document.createElement("textarea");T.style.fontSize="12pt",T.style.border="0",T.style.padding="0",T.style.margin="0",T.style.position="absolute",T.style[R?"right":"left"]="-9999px";var U=window.pageYOffset||document.documentElement.scrollTop;return T.style.top="".concat(U,"px"),T.setAttribute("readonly",""),T.value=N,T}var v=function(R,T){var U=m(R);T.container.appendChild(U);var K=g()(U);return x("copy"),U.remove(),K},y=function(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},U="";return typeof R=="string"?U=v(R,T):R instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(R==null?void 0:R.type)?U=v(R.value,T):(U=g()(R),x("copy")),U},F=y;function E(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(T){return typeof T}:E=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},E(N)}var C=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=R.action,U=T===void 0?"copy":T,K=R.container,Z=R.target,Q=R.text;if(U!=="copy"&&U!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Z!==void 0)if(Z&&E(Z)==="object"&&Z.nodeType===1){if(U==="copy"&&Z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(U==="cut"&&(Z.hasAttribute("readonly")||Z.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Q)return F(Q,{container:K});if(Z)return U==="cut"?f(Z):F(Z,{container:K})},A=C;function b(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(T){return typeof T}:b=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},b(N)}function B(N,R){if(!(N instanceof R))throw new TypeError("Cannot call a class as a function")}function w(N,R){for(var T=0;T<R.length;T++){var U=R[T];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(N,U.key,U)}}function S(N,R,T){return R&&w(N.prototype,R),T&&w(N,T),N}function _(N,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(R&&R.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),R&&P(N,R)}function P(N,R){return P=Object.setPrototypeOf||function(U,K){return U.__proto__=K,U},P(N,R)}function I(N){var R=H();return function(){var U=V(N),K;if(R){var Z=V(this).constructor;K=Reflect.construct(U,arguments,Z)}else K=U.apply(this,arguments);return $(this,K)}}function $(N,R){return R&&(b(R)==="object"||typeof R=="function")?R:j(N)}function j(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function V(N){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)},V(N)}function G(N,R){var T="data-clipboard-".concat(N);if(R.hasAttribute(T))return R.getAttribute(T)}var X=(function(N){_(T,N);var R=I(T);function T(U,K){var Z;return B(this,T),Z=R.call(this),Z.resolveOptions(K),Z.listenClick(U),Z}return S(T,[{key:"resolveOptions",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof K.action=="function"?K.action:this.defaultAction,this.target=typeof K.target=="function"?K.target:this.defaultTarget,this.text=typeof K.text=="function"?K.text:this.defaultText,this.container=b(K.container)==="object"?K.container:document.body}},{key:"listenClick",value:function(K){var Z=this;this.listener=p()(K,"click",function(Q){return Z.onClick(Q)})}},{key:"onClick",value:function(K){var Z=K.delegateTarget||K.currentTarget,Q=this.action(Z)||"copy",J=A({action:Q,container:this.container,target:this.target(Z),text:this.text(Z)});this.emit(J?"success":"error",{action:Q,text:J,trigger:Z,clearSelection:function(){Z&&Z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(K){return G("action",K)}},{key:"defaultTarget",value:function(K){var Z=G("target",K);if(Z)return document.querySelector(Z)}},{key:"defaultText",value:function(K){return G("text",K)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(K){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return F(K,Z)}},{key:"cut",value:function(K){return f(K)}},{key:"isSupported",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Z=typeof K=="string"?[K]:K,Q=!!document.queryCommandSupported;return Z.forEach(function(J){Q=Q&&!!document.queryCommandSupported(J)}),Q}}]),T})(c()),O=X}),828:(function(i){var o=9;if(typeof Element<"u"&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==o;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l}),438:(function(i,o,s){var l=s(828);function c(d,g,x,h,f){var m=p.apply(this,arguments);return d.addEventListener(x,m,f),{destroy:function(){d.removeEventListener(x,m,f)}}}function u(d,g,x,h,f){return typeof d.addEventListener=="function"?c.apply(null,arguments):typeof x=="function"?c.bind(null,document).apply(null,arguments):(typeof d=="string"&&(d=document.querySelectorAll(d)),Array.prototype.map.call(d,function(m){return c(m,g,x,h,f)}))}function p(d,g,x,h){return function(f){f.delegateTarget=l(f.target,g),f.delegateTarget&&h.call(d,f)}}i.exports=u}),879:(function(i,o){o.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},o.nodeList=function(s){var l=Object.prototype.toString.call(s);return s!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in s&&(s.length===0||o.node(s[0]))},o.string=function(s){return typeof s=="string"||s instanceof String},o.fn=function(s){var l=Object.prototype.toString.call(s);return l==="[object Function]"}}),370:(function(i,o,s){var l=s(879),c=s(438);function u(x,h,f){if(!x&&!h&&!f)throw new Error("Missing required arguments");if(!l.string(h))throw new TypeError("Second argument must be a String");if(!l.fn(f))throw new TypeError("Third argument must be a Function");if(l.node(x))return p(x,h,f);if(l.nodeList(x))return d(x,h,f);if(l.string(x))return g(x,h,f);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function p(x,h,f){return x.addEventListener(h,f),{destroy:function(){x.removeEventListener(h,f)}}}function d(x,h,f){return Array.prototype.forEach.call(x,function(m){m.addEventListener(h,f)}),{destroy:function(){Array.prototype.forEach.call(x,function(m){m.removeEventListener(h,f)})}}}function g(x,h,f){return c(document.body,x,h,f)}i.exports=u}),817:(function(i){function o(s){var l;if(s.nodeName==="SELECT")s.focus(),l=s.value;else if(s.nodeName==="INPUT"||s.nodeName==="TEXTAREA"){var c=s.hasAttribute("readonly");c||s.setAttribute("readonly",""),s.select(),s.setSelectionRange(0,s.value.length),c||s.removeAttribute("readonly"),l=s.value}else{s.hasAttribute("contenteditable")&&s.focus();var u=window.getSelection(),p=document.createRange();p.selectNodeContents(s),u.removeAllRanges(),u.addRange(p),l=u.toString()}return l}i.exports=o}),279:(function(i){function o(){}o.prototype={on:function(s,l,c){var u=this.e||(this.e={});return(u[s]||(u[s]=[])).push({fn:l,ctx:c}),this},once:function(s,l,c){var u=this;function p(){u.off(s,p),l.apply(c,arguments)}return p._=l,this.on(s,p,c)},emit:function(s){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[s]||[]).slice(),u=0,p=c.length;for(u;u<p;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(s,l){var c=this.e||(this.e={}),u=c[s],p=[];if(u&&l)for(var d=0,g=u.length;d<g;d++)u[d].fn!==l&&u[d].fn._!==l&&p.push(u[d]);return p.length?c[s]=p:delete c[s],this}},i.exports=o,i.exports.TinyEmitter=o})},n={};function a(i){if(n[i])return n[i].exports;var o=n[i]={exports:{}};return e[i](o,o.exports,a),o.exports}return(function(){a.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(o,{a:o}),o}})(),(function(){a.d=function(i,o){for(var s in o)a.o(o,s)&&!a.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})}})(),(function(){a.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)}})(),a(686)})().default})})(ha)),ha.exports}var B1=w1();const S1=Uo(B1),_1=(r,t)=>{let e=r&&r.replace(/<think>[\s\S]*?<\/think>/g,"");e=e.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),e=e.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",e);const n=new S1(t.currentTarget||t.target,{text:()=>e});try{n.on("success",()=>{da.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),n.destroy()}),n.on("error",a=>{da.error("\u590D\u5236\u5931\u8D25",2),n.destroy()}),n.onClick(t)}catch(a){n.destroy(),da.error("\u590D\u5236\u5931\u8D25: "+a,2)}};function D1(r){const t=[];for(const e of r){if(e.query){const n=e.query.queryId||e.query.id||e.queryId||e.id||dr(32);t.push({istype:"user",content:e.query.content,time:e.query.gmtCreate,queryId:n,clientSideId:n+"-user",...e.query})}if(e.reply){const n=e.reply.queryId||e.reply.id||e.queryId||e.id||dr(32);t.push({istype:"ai",content:e.reply.content,isDefault:e.reply.isDefault,time:e.time||e.gmtCreate||Date.now(),queryId:n,clientSideId:n+"-ai",...e.reply})}}return t}const k1=""+new URL("defaultWeLogo.svg",import.meta.url).href,P1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOkSURBVHgBxZRbTBxlFMd/c2EvXBbZLbsCVhcKaAyh2BKTWrX12RhNmxa1IVp98FEJVGNMY2KItSZtqGjaROMlaDSVxiZeqiRa0FBpIlSkhgK15WoLu7AL3V1md25+7CpUojzYB7/km5OZc+Z35pzz/wb+l3X7PotNL9tvd1yIc8OrYp9pWXZ6JXXdfLOtbdNa4fJazoZdu9xVNUE5petIVS9h/npRfkDKefg/A+OaJuUGvIz3DzD14R6uHv/WCmzbcuNlj7S+3z7+5Xepno7TLeJWWiv2n5zyTcEaT/TJlrfwljxCTm42lgHRmIHDqaIqIsTE43NS7FHCBXKkIzw4eGKkYcdnwmGvBspSy+DpxlrffXtqC6WeqM3+CZ3wnAZLOyXAlsXfOjU7D6EYHLw7zVKvgykcG+r98YmKjdG5BK3nw7w7YQuATdAJWR4IJ2UiswKoiC39+S0+4QjNL0NWgDU7y57ZVlLd2n+FO/Kd7BxxcPOpMKGrCSxNTNm2kVUZ2e1g+5YCxh4q4IW+cAactYTZLi6dxgqw4dUjj+UgfXpSJRAaY9Lt4dZAkoW5YWSXyKwo6ZYbhsFCciPe9hgHtDiB+kqe6huF6jknv2As9/Dj3mv2se4Yh5RhEr4SbD2FpMjomkZ0eoaunl5yxXwqKsspKwsiOVzYqST143k8Xe7gvaN17tHOTi0D/D6U3DqhO7oNNxOlU6heD0cOH2frg/dSU1ywMgRhRmMpvvjoG55t3I0RWWDvuST9iy5q64qtr2/LV9Ill/aNOsb9fnC48a+zGYzF6R/opefsGU59sl88d6V5tpagqekNFg2LgeHN3F/pJS9rET2l4v15Ruav1PHLEdsUJYpXcNjXKA54iCd11gf9ONUkLqeVtu4ciQUjwcCF3wjc4sUlJbhouyjOVek6O2kvT3kGV3e9P/uetlmhi4VpCsU0Wz5o5i6/kIehY8UjyHlLpVt8daKZc1d0qt3zaV2ex09LjYvnhsx3rj8pEq90N1QU+Q+9WJVgbzBPpFIzIrZNsYWVlYyVhJXVtFys6UHWf76O36NDu3nt0fbVJ0Wm6Sedomx5hzPCwYpJygvdkOMVQhbKFjrEFG2JRQjPTHH4Uh4HoptFfy2T5+9clt/qo6fS9MMYilqEL1dCyCQtQsnKhC51yUyCkBLz4qeT77Np3KCme/EvwJVndUcfl0qr6uzKwAb8biemqTCjmYS0RUKhM1zuep2TzZfIpFlefwDISXe8s31UTQAAAABJRU5ErkJggg==",T1=(r,t)=>{const e={...qo.colors,...r};return`
|
|
194
|
+
.g-welcome-${t} .g-welcome-title {
|
|
195
|
+
background-image: linear-gradient(90deg, #3262FA 0%, #6C18FF 100%);
|
|
196
|
+
-webkit-background-clip: text;
|
|
197
|
+
background-clip: text;
|
|
198
|
+
color: transparent;
|
|
199
|
+
-webkit-text-fill-color: transparent;
|
|
200
|
+
}
|
|
201
|
+
.g-welcome-${t} .g-welcome-subtitle {
|
|
202
|
+
color: ${e.disabled};
|
|
203
|
+
}
|
|
204
|
+
.g-welcome-${t} .g-welcome-btn {
|
|
205
|
+
background-color: #ffffff;
|
|
206
|
+
border-color: ${e.border};
|
|
207
|
+
color: ${e.text};
|
|
208
|
+
height: 36px;
|
|
209
|
+
border-width: 1px;
|
|
210
|
+
box-shadow: 0 1px 2px rgba(31,35,41,0.04);
|
|
211
|
+
}
|
|
212
|
+
.g-welcome-${t} .g-welcome-btn:hover {
|
|
213
|
+
border-color: ${e.primary};
|
|
214
|
+
color: ${e.primary};
|
|
215
|
+
background-color: #ffffff;
|
|
216
|
+
box-shadow: 0 2px 6px rgba(31,35,41,0.08);
|
|
217
|
+
}
|
|
218
|
+
.g-welcome-${t} .g-welcome-btn.active {
|
|
219
|
+
background-image: linear-gradient(90deg, #F1F8FF 0%, #F9F4FF 100%);
|
|
220
|
+
border-color: ${e.primary};
|
|
221
|
+
box-shadow: 0 4px 10px rgba(24, 144, 255, 0.25);
|
|
222
|
+
}
|
|
223
|
+
.g-welcome-${t} .g-welcome-btn .icon-badge {
|
|
224
|
+
width: 24px;
|
|
225
|
+
height: 24px;
|
|
226
|
+
border-radius: 9999px;
|
|
227
|
+
display: inline-flex;
|
|
228
|
+
align-items: center;
|
|
229
|
+
justify-content: center;
|
|
230
|
+
background: radial-gradient(100% 100% at 50% 0%, #F2F3F5 0%, #FFFFFF 100%);
|
|
231
|
+
box-shadow: inset 0 0 0 1px ${e.border};
|
|
232
|
+
}
|
|
233
|
+
.g-welcome-${t} .g-welcome-pagination-btn {
|
|
234
|
+
background: transparent;
|
|
235
|
+
border: none;
|
|
236
|
+
color: ${e.disabled};
|
|
237
|
+
padding: 6px 10px;
|
|
238
|
+
border-radius: 9999px;
|
|
239
|
+
transition: all 0.2s;
|
|
240
|
+
font-size: 14px;
|
|
241
|
+
line-height: 1;
|
|
242
|
+
min-width: 32px;
|
|
243
|
+
height: 32px;
|
|
244
|
+
display: inline-flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
justify-content: center;
|
|
247
|
+
}
|
|
248
|
+
.g-welcome-${t} .g-welcome-pagination-btn:hover:not(:disabled) {
|
|
249
|
+
color: ${e.text};
|
|
250
|
+
background-color: ${e.border}33;
|
|
251
|
+
}
|
|
252
|
+
.g-welcome-${t} .g-welcome-pagination-btn.active {
|
|
253
|
+
color: ${e.primary};
|
|
254
|
+
background: radial-gradient(100% 100% at 50% 50%, ${e.primary}10 0%, ${e.primary}08 100%);
|
|
255
|
+
box-shadow: 0 2px 10px ${e.primary}12, inset 0 0 0 1px ${e.primary}1A;
|
|
256
|
+
}
|
|
257
|
+
.g-welcome-${t} .g-welcome-pagination-btn:disabled {
|
|
258
|
+
color: ${e.disabled};
|
|
259
|
+
cursor: not-allowed;
|
|
260
|
+
background: transparent;
|
|
261
|
+
}
|
|
262
|
+
.g-welcome-${t} .g-welcome-pagination-text {
|
|
263
|
+
color: ${e.disabled};
|
|
264
|
+
font-size: 14px;
|
|
265
|
+
padding: 0 8px;
|
|
266
|
+
}
|
|
267
|
+
.g-welcome-${t} .g-welcome-pagination-dot {
|
|
268
|
+
width: 6px;
|
|
269
|
+
height: 6px;
|
|
270
|
+
border-radius: 50%;
|
|
271
|
+
background-color: ${e.border};
|
|
272
|
+
transition: all 0.2s;
|
|
273
|
+
}
|
|
274
|
+
.g-welcome-${t} .g-welcome-pagination-dot.active {
|
|
275
|
+
background-color: ${e.primary};
|
|
276
|
+
width: 20px;
|
|
277
|
+
border-radius: 3px;
|
|
278
|
+
}
|
|
279
|
+
.g-welcome-${t} .g-welcome-search-btn {
|
|
280
|
+
background-color: #ffffff;
|
|
281
|
+
border: 1px solid ${e.border};
|
|
282
|
+
color: ${e.text};
|
|
283
|
+
padding: 8px 8px;
|
|
284
|
+
border-radius: 100%;
|
|
285
|
+
cursor: pointer;
|
|
286
|
+
transition: all 0.2s;
|
|
287
|
+
display: flex;
|
|
288
|
+
align-items: center;
|
|
289
|
+
gap: 6px;
|
|
290
|
+
font-size: 14px;
|
|
291
|
+
box-shadow: 0 1px 2px rgba(31,35,41,0.04);
|
|
292
|
+
}
|
|
293
|
+
.g-welcome-${t} .g-welcome-search-btn:hover {
|
|
294
|
+
border-color: ${e.primary};
|
|
295
|
+
color: ${e.primary};
|
|
296
|
+
box-shadow: 0 2px 6px rgba(31,35,41,0.08);
|
|
297
|
+
}
|
|
298
|
+
.g-welcome-${t} .g-welcome-search-input {
|
|
299
|
+
border: 1px solid ${e.border};
|
|
300
|
+
border-radius: 9999px;
|
|
301
|
+
transition: all 0.2s;
|
|
302
|
+
height: 40px;
|
|
303
|
+
padding: 0 14px;
|
|
304
|
+
}
|
|
305
|
+
.g-welcome-${t} .g-welcome-search-input:focus,
|
|
306
|
+
.g-welcome-${t} .g-welcome-search-input:hover {
|
|
307
|
+
border-color: ${e.primary};
|
|
308
|
+
box-shadow: 0 0 0 2px ${e.primary}1A;
|
|
309
|
+
}
|
|
310
|
+
`};function I1({config:r,styles:t}){if(!r)return null;const e=JSON.parse(r.configJson),n=Ve(()=>{var a;return{...qo.colors,...(a=t==null?void 0:t.theme)==null?void 0:a.colors}},[t]);return ne("div",{className:"w-[340px] rounded-xl p-4 animate-fade-in bg-white",children:[ne("div",{className:"flex items-center mb-2",children:[M("span",{className:"text-md font-bold truncate mr-2",style:{color:n.primary},children:e.config_name||"\u52A9\u624B\u914D\u7F6E"}),M("span",{className:"text-xs truncate rounded px-2 py-0.5",style:{backgroundColor:`${n.primary}1A`,color:n.disabled},children:e.model_name})]}),M("div",{className:"border-b my-2",style:{borderColor:n.border}}),ne("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-gray-700 mb-2",style:{color:n.text},children:[ne("div",{children:["\u4E0A\u4E0B\u6587\u6700\u5927\u8F6E\u6570\uFF1A",M("span",{className:"font-semibold",children:e.max_round})]}),ne("div",{children:["\u6700\u5927\u4EE4\u724C\u6570\uFF1A",M("span",{className:"font-semibold",children:e.max_tokens})]}),ne("div",{children:["\u6E29\u5EA6\uFF1A",M("span",{className:"font-semibold",children:e.temperature})]}),ne("div",{children:["\u53EC\u56DE\u6570\uFF1A",M("span",{className:"font-semibold",children:e.top_k})]}),ne("div",{children:["\u591A\u6837\u6027\uFF1A",M("span",{className:"font-semibold",children:e.top_p})]}),ne("div",{children:["\u76F8\u4F3C\u5EA6\u9608\u503C\uFF1A",M("span",{className:"font-semibold",children:e.score_threshold})]})]}),ne("div",{className:"mb-2",children:[M("div",{className:"text-xs text-gray-400 mb-1",style:{color:n.disabled},children:"\u5173\u8054\u77E5\u8BC6\u5E93\uFF1A"}),M("div",{className:"flex flex-wrap gap-1",children:e.knowledge_base_name?e.knowledge_base_name.split(";").map((a,i)=>M("span",{className:"px-2 py-0.5 rounded-full text-xs",style:{backgroundColor:`${n.primary}1A`,color:n.primary},children:a},i)):M("span",{className:"text-gray-300",style:{color:n.disabled},children:"\u65E0"})})]}),ne("div",{className:"mb-2",children:[M("div",{className:"text-xs text-gray-400 mb-1",style:{color:n.disabled},children:"\u5F00\u542F\u529F\u80FD:"}),ne("div",{className:"flex flex-wrap gap-2 text-xs mt-2",children:[!!e.enabled_faq&&M("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${n.success}1A`,color:n.success},children:"FAQ"}),!!e.enabled_graph&&M("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${n.success}1A`,color:n.success},children:"\u56FE\u8C31"}),!!e.dependOnKb&&M("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${n.success}1A`,color:n.success},children:"\u5F3A\u77E5\u8BC6\u4F9D\u8D56"}),!!e.enabled_table_select&&M("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${n.success}1A`,color:n.success},children:"\u8868\u683C\u7B5B\u9009"}),!!e.enabled_rerank&&M("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${n.success}1A`,color:n.success},children:"\u7CBE\u6392\u6A21\u5F0F"}),!!e.need_trace_source&&M("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${n.success}1A`,color:n.success},children:"\u6EAF\u6E90"}),!!e.is_download&&M("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${n.success}1A`,color:n.success},children:"\u4E0B\u8F7D\u6EAF\u6E90"})]})]})]})}function R1(r,t=[],e=60){const[n,a]=fe("");return _e(()=>{if(a(""),!r)return;let i=0;const o=setInterval(()=>{a(s=>i>=r.length?(clearInterval(o),s):(i++,r.slice(0,i)))},e);return()=>clearInterval(o)},[r,...t]),n}function O1(r){const{assistantList:t,eventsEmit:e,styles:n,selectedId:a,onSelectAssistant:i,productLogo:o}=r,{messages:s}=ii(),[l,c]=fe(1),[u,p]=fe(!1),[d,g]=fe(""),x=u||d.trim()?6:12,h=He(),f=He(!1),m=He(null),v=He(null),y=He("");_e(()=>{a&&h.current!==a&&(e==null||e("conversation:new_assistant_change",{assistantId:a}),h.current=a)},[a,e]);const F=Ve(()=>dr(),[]);_e(()=>{var _;if((_=n==null?void 0:n.theme)!=null&&_.colors){const P=document.createElement("style");return P.innerHTML=T1(n.theme.colors,F),P.id=`g-welcome-styles-${F}`,document.head.appendChild(P),()=>{const I=document.getElementById(P.id);I&&I.remove()}}},[n,F]);const E=Ve(()=>t.find(_=>_.id===a),[t,a]),C=Ve(()=>JSON.parse((E==null?void 0:E.configJson)||"{}"),[E]),A=Ve(()=>{if(!d.trim())return t||[];const _=d.toLowerCase().trim();return(t||[]).filter(P=>{var $,j;const I=(($=P.name)==null?void 0:$.toLowerCase())||"";try{const V=((j=JSON.parse(P.configJson||"{}").config_name)==null?void 0:j.toLowerCase())||"";return I.includes(_)||V.includes(_)}catch{return I.includes(_)}})},[t,d]),b=Math.ceil(((A==null?void 0:A.length)||0)/x),B=(A==null?void 0:A.slice((l-1)*x,l*x))||[];_e(()=>{if(a&&a!==v.current){if(f.current&&m.current!==null){v.current=a;return}const _=d.trim()?A:t;if(_&&_.length>0){const P=_.findIndex(I=>I.id===a);if(P!==-1){const I=Math.floor(P/x)+1;c(I),v.current=a}}}},[a,t,A,x,d]),_e(()=>{if(d!==y.current){if(f.current&&m.current!==null){c(m.current),f.current=!1,m.current=null,y.current=d;return}if(v.current===a){y.current=d;return}f.current||(d.trim()&&(v.current=null),c(1)),y.current=d}},[d,a]),_e(()=>{b>0&&l>b&&c(b)},[b,l]);const w=C.prologue||s.welcome.defaultPrologue,S=R1(w,[a],30);return ne("div",{className:`flex flex-col relative items-center justify-center h-full w-full g-welcome-${F}`,children:[M("img",{src:o||k1,alt:"logo",className:"mb-4",style:{width:68,height:68}}),M("div",{className:"text-3xl font-bold mb-2 g-welcome-title",children:S}),!a&&M("div",{className:"flex mb-2 g-welcome-subtitle",children:s.welcome.selectAssistant}),ne("div",{style:{maxWidth:"1200px"},className:`flex mt-8 flex-wrap gap-3
|
|
311
|
+
max-w-[1200px] px-8 w-full mx-auto justify-center mb-4`,children:[u?M("div",{className:"flex items-center gap-2 px-5 w-full",style:{flexBasis:"100%"},children:M(Vc,{className:"g-welcome-search-input w-full",placeholder:s.welcome.searchAssistant,prefix:M(Ui,{size:16}),suffix:M("button",{type:"button",onClick:()=>{p(!1),g("")},style:{background:"transparent",border:"none",cursor:"pointer"},children:M(Yc,{size:14})}),value:d,onChange:_=>g(_.target.value),autoFocus:!0})}):M("button",{type:"button",className:"g-welcome-search-btn",onClick:()=>p(!0),children:M(Ui,{size:16})}),B&&B.length>0?M(Mn,{children:B.map(_=>{const P=a===_.id;let I=_.icon;try{const $=JSON.parse(_.configJson||"{}");I=I||$.icon||$.avatar||$.logo}catch{}return I=I||P1,M(hf,{content:()=>M(I1,{config:t.find($=>$.id===_.id),styles:n}),trigger:"hover",placement:"bottom",children:ne("button",{type:"button",className:`g-welcome-btn px-3 cursor-pointer rounded-full border font-medium min-w-[160px] text-sm transition-all flex items-center gap-2 ${P?"active":""}`,onClick:()=>{i==null||i(_.id);const $=u||d.trim(),H=($?t:d.trim()?A:t).findIndex(V=>V.id===_.id);if(H!==-1){const G=Math.floor(H/($?12:x))+1;c(G),v.current=_.id,$&&(m.current=G,f.current=!0,setTimeout(()=>{g(""),p(!1)},100))}},title:_.name,children:[M("span",{className:"icon-badge",children:M("img",{src:I,alt:"icon",style:{width:16,height:16,borderRadius:4}})}),M("span",{className:"truncate max-w-[180px]",children:_.name})]})},_.id)})}):M("div",{className:"g-welcome-subtitle",children:"\u6682\u65E0\u53EF\u7528\u52A9\u624B"})]}),b>1&&ne("div",{className:"flex items-center gap-2",children:[M("button",{type:"button",className:"g-welcome-pagination-btn",onClick:()=>c(_=>Math.max(1,_-1)),disabled:l===1,children:M(Gf,{size:16})}),M("div",{className:"flex items-center gap-1",children:(()=>{const _=[];if(b<=7)for(let I=1;I<=b;I++)_.push(I);else if(_.push(1),l<=4){for(let I=2;I<=5;I++)_.push(I);_.push("..."),_.push(b)}else if(l>=b-3){_.push("...");for(let I=b-4;I<=b;I++)_.push(I)}else{_.push("...");for(let I=l-1;I<=l+1;I++)_.push(I);_.push("..."),_.push(b)}return _.map((I,$)=>{if(I==="...")return M("span",{className:"g-welcome-pagination-text px-1",children:"..."},`ellipsis-${$}`);const j=I;return M("button",{type:"button",className:`g-welcome-pagination-btn ${l===j?"active":""}`,onClick:()=>c(j),children:j},j)})})()}),M("button",{type:"button",className:"g-welcome-pagination-btn",onClick:()=>c(_=>Math.min(b,_+1)),disabled:l===b,children:M(Kf,{size:16})})]})]})}class Ni extends Error{}let ur=null,vr=null,Yt=null,ze=[],Xr,Yr,Li=new Map;const M1=({baseUrl:r,token:t,CSRFToken:e,setChatData:n,activeSessionId:a,setAppStatus:i,setConversationList:o})=>{const s=f=>{if(!f)return!1;if(typeof f=="string"){const m=f.trim();return m!==""&&m!=="[]"&&m!=="null"}return!0},l=({content:f,status:m,respTime:v,filePaths:y,reference:F,webReference:E,knowledgeBases:C,graphReference:A,databaseReference:b,llmType:B,resultType:w,queryId:S,tokens:_,chain:P,thoughtChainNodes:I,enableCot:$,chainRespTime:j})=>{n(H=>{var J;if(!H[0])return H;const V=H[0],G=V.messages||[],X=G.length-1;if(X<0)return H;const O=G[X];if(O.istype!=="ai")return H;let N=G.slice();if(y!=null&&y.length){const pe=G.length-2;if(pe>=0&&((J=G[pe])==null?void 0:J.istype)==="user"){const ke={...G[pe],filePaths:y};N[pe]=ke}}const R=S&&S!==O.queryId,T=m===1&&O.status===2,U=R||T?s(A)?A:null:A!==void 0&&s(A)?A:O.graphReference;m===2&&A!==void 0&&console.log("[AichatUseController] reset_chat status=2 \u65F6\u7684 graphReference:",{graphReference:A,isValid:s(A),lastMessageGraphReference:O.graphReference,finalGraphReference:U,isNewQuery:R,isRestart:T});let K;R?K=f:T?K="":m===4||m===2&&!f?K=O.content||"":K=(O.content||"")+f;const Z={...O,content:K,status:m,respTime:v,filePaths:y,reference:R||T?F||"[]":F,webReference:R||T?E||"[]":E,knowledgeBases:R||T?C||"[]":C,graphReference:U,databaseReference:R||T?b!==void 0?b:null:b!==void 0?b:O.databaseReference,resultType:w,llmType:B,tokens:_,queryId:S||O.queryId||dr(32),chain:R||T?P!==void 0?P:void 0:P!==void 0?P:O.chain,thoughtChainNodes:R||T?I!==void 0?I:void 0:I!==void 0?I:O.thoughtChainNodes,enableCot:$!==void 0?$:O.enableCot,chainRespTime:j!==void 0?j:O.chainRespTime};return Z.clientSideId=Z.clientSideId||Z.queryId+"-ai",N[X]=Z,[{...V,isNew:!1,messages:N},...H.slice(1)]})},c=f=>{if(f instanceof Ni)throw i(m=>({...m,display:"error",sender:"ready"})),ur&&(ur.abort(),ur=null),vr=null,Yt=null,f};return{updateUserFilesMessage:({currentFiles:f})=>{n(m=>{if(!m[0])return m;const v=m[0],y=v.messages||[];if(!y.length)return m;const F=y.length-2;if(F<0||y[F].istype!=="user")return m;const C=y.slice();return C[F]={...y[F],currentFiles:f},[{...v,messages:C},...m.slice(1)]})},api_startChat_re:(f,m)=>{ur&&ur.abort(),ur=new AbortController,vr=f.sessionId,Yt=f.queryId,ze=[],Xr=void 0,Yr=void 0,Li=new Map;const v=`${r}/qa/ai/question_re`;console.log("data",f);const y={...f};yf(v,{method:"post",signal:ur.signal,headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:t||"","X-CSRF-TOKEN-IN":e||""},openWhenHidden:!0,body:JSON.stringify(y),onopen:async F=>{if(F.status===500)throw new Ni("Internal Server Error");if(!F.ok)throw new Ni(`HTTP error: ${F.status}`)},onmessage:F=>{var T,U,K,Z;const E=JSON.parse(F.data);if(vr!==E.sessionId){console.log("[AichatUseController] \u6D41\u5F0F\u8BF7\u6C42\u7684 sessionId \u5DF2\u4E0D\u5339\u914D\uFF0C\u5FFD\u7565\u6570\u636E",{currentStreamSessionId:vr,receivedSessionId:E.sessionId,activeSessionId:a});return}if(a!==E.sessionId)return;const{reply:C,resultType:A,respTime:b,reference:B,webReference:w,graphReference:S,knowledgeBases:_,filePaths:P,status:I,docs:$,llmType:j,databaseReference:H,businessType:V,nodeStatus:G,enableCot:X,chainRespTime:O}=E;if(I===4&&V){G===2&&typeof O=="number"&&O>0&&Li.set(V,O);const Q=G===2&&typeof O=="number"&&O>0?O:void 0;ze=ff(ze,{businessType:V,nodeStatus:G,reply:C,respTime:Q,chainRespTime:Q}),console.log("[AichatUseController] status=4 \u805A\u5408\u601D\u7EF4\u94FE\u6570\u636E:",{businessType:V,nodeStatus:G,content:(T=C==null?void 0:C.content)==null?void 0:T.substring(0,50),currentThoughtNodesCount:ze.length,chainRespTime:G===2?O:void 0})}else I===1&&V&&console.log("[AichatUseController] status=1 \u8DF3\u8FC7\u601D\u7EF4\u94FE\u805A\u5408:",{businessType:V,content:(U=C==null?void 0:C.content)==null?void 0:U.substring(0,50),note:"status=1 \u7684\u5185\u5BB9\u5E94\u8BE5\u53BB\u6B63\u6587\uFF0C\u4E0D\u662F\u601D\u7EF4\u94FE"});if(typeof X=="number"&&(Xr=X),I===1||I===2){const Q=Array.from(Li.values()).reduce((J,pe)=>J+pe,0);Q>0&&(Yr=Q)}const N=P?JSON.parse(P):[];I===2&&C&&C.content&&(C.content.includes("\u6A21\u578B\u6682\u65E0\u6CD5\u8FD4\u56DE")||C.content.includes("\u5931\u8D25")||C.content.includes("\u9519\u8BEF")||C.content.includes("\u8BF7\u7A0D\u540E\u518D\u8BD5"))&&i(Q=>({...Q,display:"ready",sender:"ready"}));const R=s(S)?S:void 0;if(I===2&&console.log("[AichatUseController] status=2 \u65F6\u7684 graphReference:",{graphReference:S,type:typeof S,isValid:s(S),finalGraphReference:R}),I===4){const Q=ze.length>0?ze.map(J=>({businessType:J.businessType,nodeStatus:J.nodeStatus,content:J.content})):void 0;console.log("[AichatUseController] status=4 \u66F4\u65B0\u601D\u7EF4\u94FE:",{businessType:V,chainLength:(Q==null?void 0:Q.length)||0,replyContentLength:((K=C==null?void 0:C.content)==null?void 0:K.length)||0,note:"status=4 \u65F6\uFF0Creply.content \u5E94\u8BE5\u805A\u5408\u5230\u601D\u7EF4\u94FE\uFF0C\u4E0D\u66F4\u65B0\u6B63\u6587"}),l({content:"",status:I,respTime:b,filePaths:N,reference:B||$||"",webReference:w||"",knowledgeBases:_||"",graphReference:R,databaseReference:H,llmType:j,resultType:A,queryId:E.queryId,tokens:E.tokens,chain:Q,thoughtChainNodes:ze.length>0?[...ze]:void 0,enableCot:Xr,chainRespTime:Yr})}else if(I===1){ze.length>0&&(ze=ze.map(J=>({...J,nodeStatus:2}))),console.log("[AichatUseController] status=1 \u66F4\u65B0\u6B63\u6587:",{businessType:V,content:(Z=C==null?void 0:C.content)==null?void 0:Z.substring(0,50),thoughtNodesCount:ze.length,note:"status=1 \u65F6\uFF0Creply.content \u5E94\u8BE5\u53BB\u6B63\u6587\uFF0C\u601D\u7EF4\u94FE\u8282\u70B9\u72B6\u6001\u66F4\u65B0\u4E3A\u5B8C\u6210"});const Q=ze.length>0?ze.map(J=>({businessType:J.businessType,nodeStatus:J.nodeStatus,content:J.content})):void 0;l({content:C.content||"",status:I,respTime:b,filePaths:N,reference:B||$||"",webReference:w||"",graphReference:R,knowledgeBases:_||"",databaseReference:H??null,llmType:j,resultType:A,queryId:E.queryId,tokens:E.tokens,chain:Q??void 0,thoughtChainNodes:ze.length>0?[...ze]:void 0,enableCot:Xr,chainRespTime:Yr})}else if(I===2){ze.length>0&&(ze=ze.map(J=>({...J,nodeStatus:2})));const Q=ze.length>0?ze.map(J=>({businessType:J.businessType,nodeStatus:J.nodeStatus,content:J.content})):void 0;if(l({content:C.content||"",status:2,respTime:b,filePaths:N,reference:B||$||"",webReference:w||"",knowledgeBases:_||"",graphReference:R,databaseReference:H,llmType:j,resultType:A,queryId:E.queryId,tokens:E.tokens,chain:Q,thoughtChainNodes:ze.length>0?[...ze]:void 0,enableCot:Xr,chainRespTime:Yr}),ze=[],i(J=>({...J,display:"ready",sender:"ready"})),m){const J=b||Date.now();console.log("[AichatUseController] \u6D88\u606F\u53D1\u9001\u6210\u529F\uFF0CgmtModified:",J),m(J)}}else{const Q=ze.length>0?ze.map(J=>({businessType:J.businessType,nodeStatus:J.nodeStatus,content:J.content,respTime:J.respTime,chainRespTime:J.respTime})):void 0;l({content:C.content||"",status:I,respTime:b,filePaths:N,reference:B||$||"",knowledgeBases:_||"",webReference:w||"",graphReference:R,databaseReference:H,llmType:j,resultType:A,queryId:E.queryId,tokens:E.tokens,chain:Q,thoughtChainNodes:ze.length>0?[...ze]:void 0,enableCot:Xr,chainRespTime:Yr})}},onerror:c,onclose:()=>{vr===f.sessionId&&(vr=null,Yt=null)}})},addEmptyMessage:({queryId:f,content:m,filePaths:v,currentFiles:y})=>{n(F=>{const E=new Date().toISOString(),C=f||dr(32),A={istype:"user",content:m,time:E,queryId:C,clientSideId:C+"-user",filePaths:v||"",currentFiles:y||[]},b={istype:"ai",content:"",time:new Date(Date.now()+1).toISOString(),streaming:!0,status:0,queryId:C,clientSideId:C+"-ai"},B=F.find(w=>w.id===a);return B?B.messages.push(A,b):console.warn("addEmptyMessage called without an active session."),[...F]})},setLastEmptyMessage:({now:f})=>{n(m=>{if(!m[0])return m;const v=m[0],y=v.messages||[];if(!y.length)return m;const F=y.length-1;if(F<0)return m;const E=y[F];if(E.istype!=="ai")return m;const C=y.slice();return C[F]={...E,istype:"ai",content:"",time:f,streaming:!0,status:0},[{...v,messages:C},...m.slice(1)]})},stopStream:async()=>{if(Yt)try{await _t.delete(`${r}/qa/ai/abortStream?queryId=${Yt}`,{headers:{Authorization:t||"","X-CSRF-TOKEN-IN":e||""}}),console.log("[AichatUseController] \u5DF2\u8C03\u7528\u540E\u7AEF\u63A5\u53E3\u505C\u6B62\u6D41\u5F0F\u8BF7\u6C42",Yt)}catch(f){console.error("[AichatUseController] \u8C03\u7528\u505C\u6B62\u63A5\u53E3\u5931\u8D25",f)}else console.warn("[AichatUseController] \u505C\u6B62\u6D41\u5F0F\u8BF7\u6C42\u65F6\u672A\u627E\u5230 queryId");ur=null,vr=null,Yt=null,i(f=>({...f,display:"ready",sender:"ready"}))},cancelStreamBySessionId:async f=>{if(ur&&vr===f){if(console.log("[AichatUseController] \u5207\u6362\u4F1A\u8BDD\uFF0C\u53D6\u6D88\u6B63\u5728\u8FDB\u884C\u7684\u6D41\u5F0F\u8BF7\u6C42",f),Yt)try{await _t.delete(`${r}/qa/ai/abortStream?queryId=${Yt}`,{headers:{Authorization:t||"","X-CSRF-TOKEN-IN":e||""}}),console.log("[AichatUseController] \u5207\u6362\u4F1A\u8BDD\u65F6\u5DF2\u8C03\u7528\u540E\u7AEF\u63A5\u53E3\u505C\u6B62\u6D41\u5F0F\u8BF7\u6C42",Yt)}catch(m){console.error("[AichatUseController] \u5207\u6362\u4F1A\u8BDD\u65F6\u8C03\u7528\u505C\u6B62\u63A5\u53E3\u5931\u8D25",m)}else console.warn("[AichatUseController] \u5207\u6362\u4F1A\u8BDD\u65F6\u672A\u627E\u5230 queryId");return ur=null,vr=null,Yt=null,i(m=>({...m,display:"ready",sender:"ready"})),!0}return!1}}},N1=1e3,L1=3e3;function $1({url:r,token:t,CSRFToken:e,onError:n,activeSessionId:a}){const[i,o]=fe([]),[s,l]=fe(()=>({uploadedFiles:[]})),c=He(!1),u=async h=>{var f,m;if(!h)return null;try{const v=await _t.get(`${r}/index/knowledgeBase/file/getFilesBysessionId?sessionId=${h}`,{headers:{Authorization:t}});console.log("[DEBUG] \u83B7\u53D6\u4E34\u65F6\u6587\u4EF6\u5217\u8868 res:",(f=v==null?void 0:v.data)==null?void 0:f.data),l({uploadedFiles:((m=v==null?void 0:v.data)==null?void 0:m.data)||[]})}catch(v){throw console.error("\u83B7\u53D6\u4E34\u65F6\u6587\u4EF6\u5217\u8868\u5931\u8D25:",v),v}},p=Un((h,f)=>{const m=h.join(",");let v=0,y=null;y=()=>{c.current=!0};const F=async()=>{if(!c.current){if(v>=N1){c.current||f.onFail("\u6587\u4EF6\u89E3\u6790\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");return}v++;try{const E=await _t.get(`${r}/index/knowledgeBase/file/getFileStatusByUids?uids=${m}`,{headers:{Authorization:t}});if(c.current)return;if(E.data.success){const C=E.data.data;c.current||f.onStatusUpdate(C),C.every(b=>{const B=b.fileParseStatus??b.status;return B===3||B===4})?c.current||f.onComplete():c.current||setTimeout(F,L1)}else c.current||f.onFail(E.data.errorMsg||"\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u5931\u8D25")}catch(E){if(n==null||n(E),c.current)return;f.onFail("\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u65F6\u53D1\u751F\u7F51\u7EDC\u9519\u8BEF")}}};return F(),y},[r,t,n]),d=Un(async(h,f)=>{if(!h){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6");return}Cf({url:r,token:t,CSRFToken:e},{uid:h,queryId:f},(m,v)=>{m?(mt.success("\u6587\u4EF6\u5DF2\u4ECE\u4E34\u65F6\u77E5\u8BC6\u5E93\u79FB\u9664"),u(a)):(console.log("[DEBUG] removeFilefromTempUpload \u56DE\u8C03 false\uFF0Cres:",v),mt.error("\u6587\u4EF6\u79FB\u9664\u5931\u8D25"))})},[r,t,e,a]),g=Un(()=>{c.current=!1},[]),x=Un(()=>{c.current=!0},[]);return{fileManagerData:s,fileStatuses:i,setFileManagerData:l,setFileStatuses:o,pollFileStatus:p,handleRemoveFromTemp:d,resetStopFlag:g,setStopFlag:x,stoppedRef:c,getTempFileList:u}}function z1({title:r,subtitle:t}){const[e,n]=fe(0);return _e(()=>{let a;return e<98?a=setTimeout(()=>{n(i=>i+Math.random()*6+1)},80):e<100&&(a=setTimeout(()=>n(100),400)),()=>clearTimeout(a)},[e]),ne("div",{className:"flex flex-col justify-center items-center min-h-screen bg-gradient-to-br from-[#EEF4FF] via-white to-[#F5F8FF]",children:[ne("div",{className:"mb-8 flex flex-col items-center",children:[M("div",{className:"mt-6 text-2xl font-semibold text-[#222222] tracking-wide",children:r||"\u5C0F\u9CB8\u667A\u80FD\u4F1A\u8BDD\u52A9\u624B"}),M("div",{className:"mt-2 text-sm text-[#555555]",children:t||"\u8BA9\u667A\u80FD\u5BF9\u8BDD\u66F4\u7B80\u5355"})]}),ne("div",{className:"relative w-80 max-w-sm",children:[M("div",{className:"w-full h-2 bg-[#EEF4FF] rounded-full overflow-hidden shadow-inner",children:M("div",{className:"h-full bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] transition-all duration-300 ease-out",style:{width:`${Math.min(e,100)}%`}})}),ne("div",{className:"absolute -right-2 top-5 text-sm text-[#555555]",children:[Math.min(Math.round(e),100),"%"]})]}),ne("div",{className:"mt-8 flex flex-col items-center gap-2",children:[M("div",{className:"text-sm text-[#555555] animate-pulse",children:"\u6B63\u5728\u521D\u59CB\u5316\u5E94\u7528"}),M("div",{className:"text-xs text-[#888888]",children:"\u9996\u6B21\u52A0\u8F7D\u53EF\u80FD\u9700\u8981\u4E00\u4E9B\u65F6\u95F4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"})]})]})}const Il=document.createElement("style");Il.textContent=`
|
|
312
|
+
.animate-bounce-slow {
|
|
313
|
+
animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
314
|
+
}
|
|
315
|
+
@keyframes bounce {
|
|
316
|
+
0%, 100% { transform: translateY(0); }
|
|
317
|
+
50% { transform: translateY(-12px); }
|
|
318
|
+
}
|
|
319
|
+
`;document.head.appendChild(Il);function j1(){return ne("div",{className:"flex flex-col gap-8 p-4 w-full mx-auto",children:[ne("div",{className:"flex items-start gap-4",children:[M("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),M("div",{className:"flex-1",children:M(Wn,{active:!0,paragraph:{rows:1}})})]}),ne("div",{className:"flex items-start gap-4",children:[M("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),M("div",{className:"flex-1",children:M(Wn,{active:!0,paragraph:{rows:3}})})]}),ne("div",{className:"flex items-start gap-4",children:[M("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),M("div",{className:"flex-1",children:M(Wn,{active:!0,paragraph:{rows:1}})})]}),ne("div",{className:"flex items-start gap-4",children:[M("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),M("div",{className:"flex-1",children:M(Wn,{active:!0,paragraph:{rows:2}})})]})]})}function H1({msg:r,subMsg:t}){return ne("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-white/80 backdrop-blur-sm",children:[M("div",{className:"mb-6 animate-bounce",children:M(Qf,{size:64,className:"text-[#d70016]"})}),M("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:r||"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25"}),M("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:t||"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),M(sn,{type:"primary",icon:M(Zc,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}function V1(){return ne("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-transparent! backdrop-blur-sm",children:[M("div",{className:"mb-6 animate-bounce",children:M(bf,{size:64,className:"text-[#d70016]"})}),M("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:"\u62B1\u6B49\uFF0C\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898"}),M("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"}),M(sn,{type:"primary",icon:M(Zc,{className:"w-4 h-4"}),onClick:()=>window.location.reload(),className:"flex items-center gap-2 bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] border-none hover:opacity-90",children:"\u91CD\u65B0\u52A0\u8F7D"})]})}function Io(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=[];return xe.Children.forEach(r,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?e=e.concat(Io(n)):Qu(n)&&n.props?e=e.concat(Io(n.props.children,t)):e.push(n))}),e}var Or="RC_FORM_INTERNAL_HOOKS",je=function(){Lt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},dn=L.createContext({getFieldValue:je,getFieldsValue:je,getFieldError:je,getFieldWarning:je,getFieldsError:je,isFieldsTouched:je,isFieldTouched:je,isFieldValidating:je,isFieldsValidating:je,resetFields:je,setFields:je,setFieldValue:je,setFieldsValue:je,validateFields:je,submit:je,getInternalHooks:function(){return je(),{dispatch:je,initEntityValue:je,registerField:je,useSubscribe:je,setInitialValues:je,destroyForm:je,setCallbacks:je,registerWatch:je,getFields:je,setValidateMessages:je,setPreserve:je,getInitialValue:je}}}),ni=L.createContext(null);function Ro(r){return r==null?[]:Array.isArray(r)?r:[r]}function q1(r){return r&&!!r._init}function Oo(){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 Mo=Oo();function U1(r){try{return Function.toString.call(r).indexOf("[native code]")!==-1}catch{return typeof r=="function"}}function W1(r,t,e){if(Jo())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(r.bind.apply(r,n));return e&&cn(a,e.prototype),a}function No(r){var t=typeof Map=="function"?new Map:void 0;return No=function(n){if(n===null||!U1(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 W1(n,arguments,Dn(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),cn(a,n)},No(r)}var G1=/%[sdj%]/g,K1=function(){};function Lo(r){if(!r||!r.length)return null;var t={};return r.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Nt(r){for(var t=arguments.length,e=new Array(t>1?t-1:0),n=1;n<t;n++)e[n-1]=arguments[n];var a=0,i=e.length;if(typeof r=="function")return r.apply(null,e);if(typeof r=="string"){var o=r.replace(G1,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(e[a++]);case"%d":return Number(e[a++]);case"%j":try{return JSON.stringify(e[a++])}catch{return"[Circular]"}break;default:return s}});return o}return r}function X1(r){return r==="string"||r==="url"||r==="hex"||r==="email"||r==="date"||r==="pattern"}function dt(r,t){return!!(r==null||t==="array"&&Array.isArray(r)&&!r.length||X1(t)&&typeof r=="string"&&!r)}function Y1(r,t,e){var n=[],a=0,i=r.length;function o(s){n.push.apply(n,de(s||[])),a++,a===i&&e(n)}r.forEach(function(s){t(s,o)})}function V0(r,t,e){var n=0,a=r.length;function i(o){if(o&&o.length){e(o);return}var s=n;n=n+1,s<a?t(r[s],i):e([])}i([])}function Q1(r){var t=[];return Object.keys(r).forEach(function(e){t.push.apply(t,de(r[e]||[]))}),t}var q0=(function(r){vn(e,r);var t=xn(e);function e(n,a){var i;return wt(this,e),i=t.call(this,"Async Validation Error"),z(Ee(i),"errors",void 0),z(Ee(i),"fields",void 0),i.errors=n,i.fields=a,i}return Bt(e)})(No(Error));function Z1(r,t,e,n,a){if(t.first){var i=new Promise(function(d,g){var x=function(m){return n(m),m.length?g(new q0(m,Lo(m))):d(a)},h=Q1(r);V0(h,e,x)});return i.catch(function(d){return d}),i}var o=t.firstFields===!0?Object.keys(r):t.firstFields||[],s=Object.keys(r),l=s.length,c=0,u=[],p=new Promise(function(d,g){var x=function(f){if(u.push.apply(u,f),c++,c===l)return n(u),u.length?g(new q0(u,Lo(u))):d(a)};s.length||(n(u),d(a)),s.forEach(function(h){var f=r[h];o.indexOf(h)!==-1?V0(f,e,x):Y1(f,e,x)})});return p.catch(function(d){return d}),p}function J1(r){return!!(r&&r.message!==void 0)}function eg(r,t){for(var e=r,n=0;n<t.length;n++){if(e==null)return e;e=e[t[n]]}return e}function U0(r,t){return function(e){var n;return r.fullFields?n=eg(t,r.fullFields):n=t[e.field||r.fullField],J1(e)?(e.field=e.field||r.fullField,e.fieldValue=n,e):{message:typeof e=="function"?e():e,fieldValue:n,field:e.field||r.fullField}}}function W0(r,t){if(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];ge(n)==="object"&&ge(r[e])==="object"?r[e]=Y(Y({},r[e]),n):r[e]=n}}return r}var Qr="enum",tg=function(t,e,n,a,i){t[Qr]=Array.isArray(t[Qr])?t[Qr]:[],t[Qr].indexOf(e)===-1&&a.push(Nt(i.messages[Qr],t.fullField,t[Qr].join(", ")))},rg=function(t,e,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||a.push(Nt(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(e)||a.push(Nt(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}},ng=function(t,e,n,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,p=null,d=typeof e=="number",g=typeof e=="string",x=Array.isArray(e);if(d?p="number":g?p="string":x&&(p="array"),!p)return!1;x&&(u=e.length),g&&(u=e.replace(c,"_").length),o?u!==t.len&&a.push(Nt(i.messages[p].len,t.fullField,t.len)):s&&!l&&u<t.min?a.push(Nt(i.messages[p].min,t.fullField,t.min)):l&&!s&&u>t.max?a.push(Nt(i.messages[p].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&a.push(Nt(i.messages[p].range,t.fullField,t.min,t.max))},Rl=function(t,e,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||dt(e,o||t.type))&&a.push(Nt(i.messages.required,t.fullField))},ta;const ag=(function(){if(ta)return ta;var r="[a-fA-F\\d:]",t=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(r,")|(?<=").concat(r,")(?=\\s|$))"):""},e="(?: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(e,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(e,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(e,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(e,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(e,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(e,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(e,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(a.join("|"),")").concat(i),s=new RegExp("(?:^".concat(e,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(e,"$")),c=new RegExp("^".concat(o,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(e).concat(t(C),")|(?:").concat(t(C)).concat(o).concat(t(C),")"),"g")};u.v4=function(E){return E&&E.exact?l:new RegExp("".concat(t(E)).concat(e).concat(t(E)),"g")},u.v6=function(E){return E&&E.exact?c:new RegExp("".concat(t(E)).concat(o).concat(t(E)),"g")};var p="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,x=u.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",f="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',F="(?:".concat(p,"|www\\.)").concat(d,"(?:localhost|").concat(g,"|").concat(x,"|").concat(h).concat(f).concat(m,")").concat(v).concat(y);return ta=new RegExp("(?:^".concat(F,"$)"),"i"),ta});var G0={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},En={integer:function(t){return En.number(t)&&parseInt(t,10)===t},float:function(t){return En.number(t)&&!En.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 ge(t)==="object"&&!En.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(G0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ag())},hex:function(t){return typeof t=="string"&&!!t.match(G0.hex)}},ig=function(t,e,n,a,i){if(t.required&&e===void 0){Rl(t,e,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?En[s](e)||a.push(Nt(i.messages.types[s],t.fullField,t.type)):s&&ge(e)!==t.type&&a.push(Nt(i.messages.types[s],t.fullField,t.type))},og=function(t,e,n,a,i){(/^\s+$/.test(e)||e==="")&&a.push(Nt(i.messages.whitespace,t.fullField))};const we={required:Rl,whitespace:og,type:ig,range:ng,enum:tg,pattern:rg};var sg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e)&&!t.required)return n();we.required(t,e,a,o,i)}n(o)},cg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(e==null&&!t.required)return n();we.required(t,e,a,o,i,"array"),e!=null&&(we.type(t,e,a,o,i),we.range(t,e,a,o,i))}n(o)},ug=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e)&&!t.required)return n();we.required(t,e,a,o,i),e!==void 0&&we.type(t,e,a,o,i)}n(o)},lg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e,"date")&&!t.required)return n();if(we.required(t,e,a,o,i),!dt(e,"date")){var l;e instanceof Date?l=e:l=new Date(e),we.type(t,l,a,o,i),l&&we.range(t,l.getTime(),a,o,i)}}n(o)},fg="enum",dg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e)&&!t.required)return n();we.required(t,e,a,o,i),e!==void 0&&we[fg](t,e,a,o,i)}n(o)},hg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e)&&!t.required)return n();we.required(t,e,a,o,i),e!==void 0&&(we.type(t,e,a,o,i),we.range(t,e,a,o,i))}n(o)},pg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e)&&!t.required)return n();we.required(t,e,a,o,i),e!==void 0&&(we.type(t,e,a,o,i),we.range(t,e,a,o,i))}n(o)},vg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e)&&!t.required)return n();we.required(t,e,a,o,i),e!==void 0&&we.type(t,e,a,o,i)}n(o)},xg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(e===""&&(e=void 0),dt(e)&&!t.required)return n();we.required(t,e,a,o,i),e!==void 0&&(we.type(t,e,a,o,i),we.range(t,e,a,o,i))}n(o)},gg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e)&&!t.required)return n();we.required(t,e,a,o,i),e!==void 0&&we.type(t,e,a,o,i)}n(o)},mg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e,"string")&&!t.required)return n();we.required(t,e,a,o,i),dt(e,"string")||we.pattern(t,e,a,o,i)}n(o)},yg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e)&&!t.required)return n();we.required(t,e,a,o,i),dt(e)||we.type(t,e,a,o,i)}n(o)},Cg=function(t,e,n,a,i){var o=[],s=Array.isArray(e)?"array":ge(e);we.required(t,e,a,o,i,s),n(o)},bg=function(t,e,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(dt(e,"string")&&!t.required)return n();we.required(t,e,a,o,i,"string"),dt(e,"string")||(we.type(t,e,a,o,i),we.range(t,e,a,o,i),we.pattern(t,e,a,o,i),t.whitespace===!0&&we.whitespace(t,e,a,o,i))}n(o)},$i=function(t,e,n,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(dt(e,o)&&!t.required)return n();we.required(t,e,a,s,i,o),dt(e,o)||we.type(t,e,a,s,i)}n(s)};const Bn={string:bg,method:vg,number:xg,boolean:ug,regexp:yg,integer:pg,float:hg,array:cg,object:gg,enum:dg,pattern:mg,date:lg,url:$i,hex:$i,email:$i,required:Cg,any:sg};var zn=(function(){function r(t){wt(this,r),z(this,"rules",null),z(this,"_messages",Mo),this.define(t)}return Bt(r,[{key:"define",value:function(e){var n=this;if(!e)throw new Error("Cannot configure a schema with no rules");if(ge(e)!=="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(a){var i=e[a];n.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(e){return e&&(this._messages=W0(Oo(),e)),this._messages}},{key:"validate",value:function(e){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=e,s=a,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(x){var h=[],f={};function m(y){if(Array.isArray(y)){var F;h=(F=h).concat.apply(F,de(y))}else h.push(y)}for(var v=0;v<x.length;v++)m(x[v]);h.length?(f=Lo(h),l(h,f)):l(null,o)}if(s.messages){var u=this.messages();u===Mo&&(u=Oo()),W0(u,s.messages),s.messages=u}else s.messages=this.messages();var p={},d=s.keys||Object.keys(this.rules);d.forEach(function(x){var h=n.rules[x],f=o[x];h.forEach(function(m){var v=m;typeof v.transform=="function"&&(o===e&&(o=Y({},o)),f=o[x]=v.transform(f),f!=null&&(v.type=v.type||(Array.isArray(f)?"array":ge(f)))),typeof v=="function"?v={validator:v}:v=Y({},v),v.validator=n.getValidationMethod(v),v.validator&&(v.field=x,v.fullField=v.fullField||x,v.type=n.getType(v),p[x]=p[x]||[],p[x].push({rule:v,value:f,source:o,field:x}))})});var g={};return Z1(p,s,function(x,h){var f=x.rule,m=(f.type==="object"||f.type==="array")&&(ge(f.fields)==="object"||ge(f.defaultField)==="object");m=m&&(f.required||!f.required&&x.value),f.field=x.field;function v(A,b){return Y(Y({},b),{},{fullField:"".concat(f.fullField,".").concat(A),fullFields:f.fullFields?[].concat(de(f.fullFields),[A]):[A]})}function y(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=Array.isArray(A)?A:[A];!s.suppressWarning&&b.length&&r.warning("async-validator:",b),b.length&&f.message!==void 0&&(b=[].concat(f.message));var B=b.map(U0(f,o));if(s.first&&B.length)return g[f.field]=1,h(B);if(!m)h(B);else{if(f.required&&!x.value)return f.message!==void 0?B=[].concat(f.message).map(U0(f,o)):s.error&&(B=[s.error(f,Nt(s.messages.required,f.field))]),h(B);var w={};f.defaultField&&Object.keys(x.value).map(function(P){w[P]=f.defaultField}),w=Y(Y({},w),x.rule.fields);var S={};Object.keys(w).forEach(function(P){var I=w[P],$=Array.isArray(I)?I:[I];S[P]=$.map(v.bind(null,P))});var _=new r(S);_.messages(s.messages),x.rule.options&&(x.rule.options.messages=s.messages,x.rule.options.error=s.error),_.validate(x.value,x.rule.options||s,function(P){var I=[];B&&B.length&&I.push.apply(I,de(B)),P&&P.length&&I.push.apply(I,de(P)),h(I.length?I:null)})}}var F;if(f.asyncValidator)F=f.asyncValidator(f,x.value,y,x.source,s);else if(f.validator){try{F=f.validator(f,x.value,y,x.source,s)}catch(A){var E,C;(E=(C=console).error)===null||E===void 0||E.call(C,A),s.suppressValidatorError||setTimeout(function(){throw A},0),y(A.message)}F===!0?y():F===!1?y(typeof f.message=="function"?f.message(f.fullField||f.field):f.message||"".concat(f.fullField||f.field," fails")):F instanceof Array?y(F):F instanceof Error&&y(F.message)}F&&F.then&&F.then(function(){return y()},function(A){return y(A)})},function(x){c(x)},o)}},{key:"getType",value:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type="pattern"),typeof e.validator!="function"&&e.type&&!Bn.hasOwnProperty(e.type))throw new Error(Nt("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if(typeof e.validator=="function")return e.validator;var n=Object.keys(e),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?Bn.required:Bn[this.getType(e)]||void 0}}]),r})();z(zn,"register",function(t,e){if(typeof e!="function")throw new Error("Cannot register a validator by type, validator is not a function");Bn[t]=e});z(zn,"warning",K1);z(zn,"messages",Mo);z(zn,"validators",Bn);var Mt="'${name}' is not a valid ${type}",Ol={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:Mt,method:Mt,array:Mt,object:Mt,number:Mt,date:Mt,boolean:Mt,integer:Mt,float:Mt,regexp:Mt,email:Mt,url:Mt,hex:Mt},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}"}},K0=zn;function Fg(r,t){return r.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var X0="CODE_LOGIC_ERROR";function $o(r,t,e,n,a){return zo.apply(this,arguments)}function zo(){return zo=Lr(Ct().mark(function r(t,e,n,a,i){var o,s,l,c,u,p,d,g,x;return Ct().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return o=Y({},n),delete o.ruleIndex,K0.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(X0)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new K0(z({},t,[o])),u=en(Ol,a.validateMessages),c.messages(u),p=[],f.prev=10,f.next=13,Promise.resolve(c.validate(z({},t,e),Y({},a)));case 13:f.next=18;break;case 15:f.prev=15,f.t0=f.catch(10),f.t0.errors&&(p=f.t0.errors.map(function(m,v){var y=m.message,F=y===X0?u.default:y;return L.isValidElement(F)?L.cloneElement(F,{key:"error_".concat(v)}):F}));case 18:if(!(!p.length&&l&&Array.isArray(e)&&e.length>0)){f.next=23;break}return f.next=21,Promise.all(e.map(function(m,v){return $o("".concat(t,".").concat(v),m,l,a,i)}));case 21:return d=f.sent,f.abrupt("return",d.reduce(function(m,v){return[].concat(de(m),de(v))},[]));case 23:return g=Y(Y({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),x=p.map(function(m){return typeof m=="string"?Fg(m,g):m}),f.abrupt("return",x);case 26:case"end":return f.stop()}},r,null,[[10,15]])})),zo.apply(this,arguments)}function Eg(r,t,e,n,a,i){var o=r.join("."),s=e.map(function(u,p){var d=u.validator,g=Y(Y({},u),{},{ruleIndex:p});return d&&(g.validator=function(x,h,f){var m=!1,v=function(){for(var E=arguments.length,C=new Array(E),A=0;A<E;A++)C[A]=arguments[A];Promise.resolve().then(function(){Lt(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||f.apply(void 0,C)})},y=d(x,h,v);m=y&&typeof y.then=="function"&&typeof y.catch=="function",Lt(m,"`callback` is deprecated. Please return a promise instead."),m&&y.then(function(){f()}).catch(function(F){f(F||" ")})}),g}).sort(function(u,p){var d=u.warningOnly,g=u.ruleIndex,x=p.warningOnly,h=p.ruleIndex;return!!d==!!x?g-h:d?1:-1}),l;if(a===!0)l=new Promise((function(){var u=Lr(Ct().mark(function p(d,g){var x,h,f;return Ct().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:x=0;case 1:if(!(x<s.length)){v.next=12;break}return h=s[x],v.next=5,$o(o,t,h,n,i);case 5:if(f=v.sent,!f.length){v.next=9;break}return g([{errors:f,rule:h}]),v.abrupt("return");case 9:x+=1,v.next=1;break;case 12:d([]);case 13:case"end":return v.stop()}},p)}));return function(p,d){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return $o(o,t,u,n,i).then(function(p){return{errors:p,rule:u}})});l=(a?wg(c):Ag(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function Ag(r){return jo.apply(this,arguments)}function jo(){return jo=Lr(Ct().mark(function r(t){return Ct().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,de(a));return o}));case 1:case"end":return n.stop()}},r)})),jo.apply(this,arguments)}function wg(r){return Ho.apply(this,arguments)}function Ho(){return Ho=Lr(Ct().mark(function r(t){var e;return Ct().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e=0,a.abrupt("return",new Promise(function(i){t.forEach(function(o){o.then(function(s){s.errors.length&&i([s]),e+=1,e===t.length&&i([])})})}));case 2:case"end":return a.stop()}},r)})),Ho.apply(this,arguments)}function nt(r){return Ro(r)}function Y0(r,t){var e={};return t.forEach(function(n){var a=fr(r,n);e=Qt(e,n,a)}),e}function on(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return r&&r.some(function(n){return Ml(t,n,e)})}function Ml(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!r||!t||!e&&r.length!==t.length?!1:t.every(function(n,a){return r[a]===n})}function Bg(r,t){if(r===t)return!0;if(!r&&t||r&&!t||!r||!t||ge(r)!=="object"||ge(t)!=="object")return!1;var e=Object.keys(r),n=Object.keys(t),a=new Set([].concat(e,n));return de(a).every(function(i){var o=r[i],s=t[i];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function Sg(r){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ge(t.target)==="object"&&r in t.target?t.target[r]:t}function Q0(r,t,e){var n=r.length;if(t<0||t>=n||e<0||e>=n)return r;var a=r[t],i=t-e;return i>0?[].concat(de(r.slice(0,e)),[a],de(r.slice(e,t)),de(r.slice(t+1,n))):i<0?[].concat(de(r.slice(0,t)),de(r.slice(t+1,e+1)),[a],de(r.slice(e+1,n))):r}var _g=["name"],Vt=[];function zi(r,t,e,n,a,i){return typeof r=="function"?r(t,e,"source"in i?{source:i.source}:{}):n!==a}var ls=(function(r){vn(e,r);var t=xn(e);function e(n){var a;if(wt(this,e),a=t.call(this,n),z(Ee(a),"state",{resetCount:0}),z(Ee(a),"cancelRegisterFunc",null),z(Ee(a),"mounted",!1),z(Ee(a),"touched",!1),z(Ee(a),"dirty",!1),z(Ee(a),"validatePromise",void 0),z(Ee(a),"prevValidating",void 0),z(Ee(a),"errors",Vt),z(Ee(a),"warnings",Vt),z(Ee(a),"cancelRegister",function(){var l=a.props,c=l.preserve,u=l.isListField,p=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,c,nt(p)),a.cancelRegisterFunc=null}),z(Ee(a),"getNamePath",function(){var l=a.props,c=l.name,u=l.fieldContext,p=u.prefixName,d=p===void 0?[]:p;return c!==void 0?[].concat(de(d),de(c)):[]}),z(Ee(a),"getRules",function(){var l=a.props,c=l.rules,u=c===void 0?[]:c,p=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(p):d})}),z(Ee(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),z(Ee(a),"metaCache",null),z(Ee(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var u=Y(Y({},a.getMeta()),{},{destroy:l});eo(a.metaCache,u)||c(u),a.metaCache=u}else a.metaCache=null}),z(Ee(a),"onStoreChange",function(l,c,u){var p=a.props,d=p.shouldUpdate,g=p.dependencies,x=g===void 0?[]:g,h=p.onReset,f=u.store,m=a.getNamePath(),v=a.getValue(l),y=a.getValue(f),F=c&&on(c,m);switch(u.type==="valueUpdate"&&u.source==="external"&&!eo(v,y)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Vt,a.warnings=Vt,a.triggerMetaEvent()),u.type){case"reset":if(!c||F){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Vt,a.warnings=Vt,a.triggerMetaEvent(),h==null||h(),a.refresh();return}break;case"remove":{if(d&&zi(d,l,f,v,y,u)){a.reRender();return}break}case"setField":{var E=u.data;if(F){"touched"in E&&(a.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(a.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(a.errors=E.errors||Vt),"warnings"in E&&(a.warnings=E.warnings||Vt),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in E&&on(c,m,!0)){a.reRender();return}if(d&&!m.length&&zi(d,l,f,v,y,u)){a.reRender();return}break}case"dependenciesUpdate":{var C=x.map(nt);if(C.some(function(A){return on(u.relatedFields,A)})){a.reRender();return}break}default:if(F||(!x.length||m.length||d)&&zi(d,l,f,v,y,u)){a.reRender();return}break}d===!0&&a.reRender()}),z(Ee(a),"validateRules",function(l){var c=a.getNamePath(),u=a.getValue(),p=l||{},d=p.triggerName,g=p.validateOnly,x=g===void 0?!1:g,h=Promise.resolve().then(Lr(Ct().mark(function f(){var m,v,y,F,E,C,A;return Ct().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:if(a.mounted){B.next=2;break}return B.abrupt("return",[]);case 2:if(m=a.props,v=m.validateFirst,y=v===void 0?!1:v,F=m.messageVariables,E=m.validateDebounce,C=a.getRules(),d&&(C=C.filter(function(w){return w}).filter(function(w){var S=w.validateTrigger;if(!S)return!0;var _=Ro(S);return _.includes(d)})),!(E&&d)){B.next=10;break}return B.next=8,new Promise(function(w){setTimeout(w,E)});case 8:if(a.validatePromise===h){B.next=10;break}return B.abrupt("return",[]);case 10:return A=Eg(c,u,C,l,y,F),A.catch(function(w){return w}).then(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vt;if(a.validatePromise===h){var S;a.validatePromise=null;var _=[],P=[];(S=w.forEach)===null||S===void 0||S.call(w,function(I){var $=I.rule.warningOnly,j=I.errors,H=j===void 0?Vt:j;$?P.push.apply(P,de(H)):_.push.apply(_,de(H))}),a.errors=_,a.warnings=P,a.triggerMetaEvent(),a.reRender()}}),B.abrupt("return",A);case 13:case"end":return B.stop()}},f)})));return x||(a.validatePromise=h,a.dirty=!0,a.errors=Vt,a.warnings=Vt,a.triggerMetaEvent(),a.reRender()),h}),z(Ee(a),"isFieldValidating",function(){return!!a.validatePromise}),z(Ee(a),"isFieldTouched",function(){return a.touched}),z(Ee(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(Or),u=c.getInitialValue;return u(a.getNamePath())!==void 0}),z(Ee(a),"getErrors",function(){return a.errors}),z(Ee(a),"getWarnings",function(){return a.warnings}),z(Ee(a),"isListField",function(){return a.props.isListField}),z(Ee(a),"isList",function(){return a.props.isList}),z(Ee(a),"isPreserve",function(){return a.props.preserve}),z(Ee(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),z(Ee(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return Y(Y({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var u=Io(l);return u.length!==1||!L.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),z(Ee(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return fr(l||c(!0),u)}),z(Ee(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,u=c.name,p=c.trigger,d=c.validateTrigger,g=c.getValueFromEvent,x=c.normalize,h=c.valuePropName,f=c.getValueProps,m=c.fieldContext,v=d!==void 0?d:m.validateTrigger,y=a.getNamePath(),F=m.getInternalHooks,E=m.getFieldsValue,C=F(Or),A=C.dispatch,b=a.getValue(),B=f||function(I){return z({},h,I)},w=l[p],S=u!==void 0?B(b):{},_=Y(Y({},l),S);_[p]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var I,$=arguments.length,j=new Array($),H=0;H<$;H++)j[H]=arguments[H];g?I=g.apply(void 0,j):I=Sg.apply(void 0,[h].concat(j)),x&&(I=x(I,b,E(!0))),I!==b&&A({type:"updateValue",namePath:y,value:I}),w&&w.apply(void 0,j)};var P=Ro(v||[]);return P.forEach(function(I){var $=_[I];_[I]=function(){$&&$.apply(void 0,arguments);var j=a.props.rules;j&&j.length&&A({type:"validateField",namePath:y,triggerName:I})}}),_}),n.fieldContext){var i=n.fieldContext.getInternalHooks,o=i(Or),s=o.initEntityValue;s(Ee(a))}return a}return Bt(e,[{key:"componentDidMount",value:function(){var a=this.props,i=a.shouldUpdate,o=a.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,l=s(Or),c=l.registerField;this.cancelRegisterFunc=c(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,l=o.isFunction,c;return l?c=s:L.isValidElement(s)?c=L.cloneElement(s,this.getControlled(s.props)):(Lt(!s,"`children` of Field is not validate ReactElement."),c=s),L.createElement(L.Fragment,{key:a},c)}}]),e})(L.Component);z(ls,"contextType",dn);z(ls,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Nl(r){var t,e=r.name,n=hr(r,_g),a=L.useContext(dn),i=L.useContext(ni),o=e!==void 0?nt(e):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((o||[]).join("_"))),L.createElement(ls,pt({key:l,name:o,isListField:s},n,{fieldContext:a}))}function Dg(r){var t=r.name,e=r.initialValue,n=r.children,a=r.rules,i=r.validateTrigger,o=r.isListField,s=L.useContext(dn),l=L.useContext(ni),c=L.useRef({keys:[],id:0}),u=c.current,p=L.useMemo(function(){var h=nt(s.prefixName)||[];return[].concat(de(h),de(nt(t)))},[s.prefixName,t]),d=L.useMemo(function(){return Y(Y({},s),{},{prefixName:p})},[s,p]),g=L.useMemo(function(){return{getKey:function(f){var m=p.length,v=f[m];return[u.keys[v],f.slice(m+1)]}}},[p]);if(typeof n!="function")return Lt(!1,"Form.List only accepts function as children."),null;var x=function(f,m,v){var y=v.source;return y==="internal"?!1:f!==m};return L.createElement(ni.Provider,{value:g},L.createElement(dn.Provider,{value:d},L.createElement(Nl,{name:[],shouldUpdate:x,rules:a,validateTrigger:i,initialValue:e,isList:!0,isListField:o??!!l},function(h,f){var m=h.value,v=m===void 0?[]:m,y=h.onChange,F=s.getFieldValue,E=function(){var B=F(p||[]);return B||[]},C={add:function(B,w){var S=E();w>=0&&w<=S.length?(u.keys=[].concat(de(u.keys.slice(0,w)),[u.id],de(u.keys.slice(w))),y([].concat(de(S.slice(0,w)),[B],de(S.slice(w))))):(u.keys=[].concat(de(u.keys),[u.id]),y([].concat(de(S),[B]))),u.id+=1},remove:function(B){var w=E(),S=new Set(Array.isArray(B)?B:[B]);S.size<=0||(u.keys=u.keys.filter(function(_,P){return!S.has(P)}),y(w.filter(function(_,P){return!S.has(P)})))},move:function(B,w){if(B!==w){var S=E();B<0||B>=S.length||w<0||w>=S.length||(u.keys=Q0(u.keys,B,w),y(Q0(S,B,w)))}}},A=v||[];return Array.isArray(A)||(A=[]),n(A.map(function(b,B){var w=u.keys[B];return w===void 0&&(u.keys[B]=u.id,w=u.keys[B],u.id+=1),{name:B,key:w,isListField:!0}}),C,f)})))}function kg(r){var t=!1,e=r.length,n=[];return r.length?new Promise(function(a,i){r.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){e-=1,n[s]=l,!(e>0)&&(t&&i(n),a(n))})})}):Promise.resolve([])}var Ll="__@field_split__";function ji(r){return r.map(function(t){return"".concat(ge(t),":").concat(t)}).join(Ll)}var Zr=(function(){function r(){wt(this,r),z(this,"kvs",new Map)}return Bt(r,[{key:"set",value:function(e,n){this.kvs.set(ji(e),n)}},{key:"get",value:function(e){return this.kvs.get(ji(e))}},{key:"update",value:function(e,n){var a=this.get(e),i=n(a);i?this.set(e,i):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(ji(e))}},{key:"map",value:function(e){return de(this.kvs.entries()).map(function(n){var a=ce(n,2),i=a[0],o=a[1],s=i.split(Ll);return e({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=ce(c,3),p=u[1],d=u[2];return p==="number"?Number(d):d}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(n){var a=n.key,i=n.value;return e[a.join(".")]=i,null}),e}}]),r})(),Pg=["name"],Tg=Bt(function r(t){var e=this;wt(this,r),z(this,"formHooked",!1),z(this,"forceRootUpdate",void 0),z(this,"subscribable",!0),z(this,"store",{}),z(this,"fieldEntities",[]),z(this,"initialValues",{}),z(this,"callbacks",{}),z(this,"validateMessages",null),z(this,"preserve",null),z(this,"lastValidatePromise",null),z(this,"getForm",function(){return{getFieldValue:e.getFieldValue,getFieldsValue:e.getFieldsValue,getFieldError:e.getFieldError,getFieldWarning:e.getFieldWarning,getFieldsError:e.getFieldsError,isFieldsTouched:e.isFieldsTouched,isFieldTouched:e.isFieldTouched,isFieldValidating:e.isFieldValidating,isFieldsValidating:e.isFieldsValidating,resetFields:e.resetFields,setFields:e.setFields,setFieldValue:e.setFieldValue,setFieldsValue:e.setFieldsValue,validateFields:e.validateFields,submit:e.submit,_init:!0,getInternalHooks:e.getInternalHooks}}),z(this,"getInternalHooks",function(n){return n===Or?(e.formHooked=!0,{dispatch:e.dispatch,initEntityValue:e.initEntityValue,registerField:e.registerField,useSubscribe:e.useSubscribe,setInitialValues:e.setInitialValues,destroyForm:e.destroyForm,setCallbacks:e.setCallbacks,setValidateMessages:e.setValidateMessages,getFields:e.getFields,setPreserve:e.setPreserve,getInitialValue:e.getInitialValue,registerWatch:e.registerWatch}):(Lt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),z(this,"useSubscribe",function(n){e.subscribable=n}),z(this,"prevWithoutPreserves",null),z(this,"setInitialValues",function(n,a){if(e.initialValues=n||{},a){var i,o=en(n,e.store);(i=e.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;o=Qt(o,l,fr(n,l))}),e.prevWithoutPreserves=null,e.updateStore(o)}}),z(this,"destroyForm",function(n){if(n)e.updateStore({});else{var a=new Zr;e.getFieldEntities(!0).forEach(function(i){e.isMergedPreserve(i.isPreserve())||a.set(i.getNamePath(),!0)}),e.prevWithoutPreserves=a}}),z(this,"getInitialValue",function(n){var a=fr(e.initialValues,n);return n.length?en(a):a}),z(this,"setCallbacks",function(n){e.callbacks=n}),z(this,"setValidateMessages",function(n){e.validateMessages=n}),z(this,"setPreserve",function(n){e.preserve=n}),z(this,"watchList",[]),z(this,"registerWatch",function(n){return e.watchList.push(n),function(){e.watchList=e.watchList.filter(function(a){return a!==n})}}),z(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(e.watchList.length){var a=e.getFieldsValue(),i=e.getFieldsValue(!0);e.watchList.forEach(function(o){o(a,i,n)})}}),z(this,"timeoutId",null),z(this,"warningUnhooked",function(){}),z(this,"updateStore",function(n){e.store=n}),z(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?e.fieldEntities.filter(function(a){return a.getNamePath().length}):e.fieldEntities}),z(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Zr;return e.getFieldEntities(n).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),z(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return e.getFieldEntities(!0);var a=e.getFieldsMap(!0);return n.map(function(i){var o=nt(i);return a.get(o)||{INVALIDATE_NAME_PATH:nt(i)}})}),z(this,"getFieldsValue",function(n,a){e.warningUnhooked();var i,o,s;if(n===!0||Array.isArray(n)?(i=n,o=a):n&&ge(n)==="object"&&(s=n.strict,o=n.filter),i===!0&&!o)return e.store;var l=e.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var p,d,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var x,h;if((x=(h=u).isList)!==null&&x!==void 0&&x.call(h))return}else if(!i&&(p=(d=u).isListField)!==null&&p!==void 0&&p.call(d))return;if(!o)c.push(g);else{var f="getMeta"in u?u.getMeta():null;o(f)&&c.push(g)}}),Y0(e.store,c.map(nt))}),z(this,"getFieldValue",function(n){e.warningUnhooked();var a=nt(n);return fr(e.store,a)}),z(this,"getFieldsError",function(n){e.warningUnhooked();var a=e.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:nt(n[o]),errors:[],warnings:[]}})}),z(this,"getFieldError",function(n){e.warningUnhooked();var a=nt(n),i=e.getFieldsError([a])[0];return i.errors}),z(this,"getFieldWarning",function(n){e.warningUnhooked();var a=nt(n),i=e.getFieldsError([a])[0];return i.warnings}),z(this,"isFieldsTouched",function(){e.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],l,c=!1;a.length===0?l=null:a.length===1?Array.isArray(o)?(l=o.map(nt),c=!1):(l=null,c=o):(l=o.map(nt),c=s);var u=e.getFieldEntities(!0),p=function(f){return f.isFieldTouched()};if(!l)return c?u.every(function(h){return p(h)||h.isList()}):u.some(p);var d=new Zr;l.forEach(function(h){d.set(h,[])}),u.forEach(function(h){var f=h.getNamePath();l.forEach(function(m){m.every(function(v,y){return f[y]===v})&&d.update(m,function(v){return[].concat(de(v),[h])})})});var g=function(f){return f.some(p)},x=d.map(function(h){var f=h.value;return f});return c?x.every(g):x.some(g)}),z(this,"isFieldTouched",function(n){return e.warningUnhooked(),e.isFieldsTouched([n])}),z(this,"isFieldsValidating",function(n){e.warningUnhooked();var a=e.getFieldEntities();if(!n)return a.some(function(o){return o.isFieldValidating()});var i=n.map(nt);return a.some(function(o){var s=o.getNamePath();return on(i,s)&&o.isFieldValidating()})}),z(this,"isFieldValidating",function(n){return e.warningUnhooked(),e.isFieldsValidating([n])}),z(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new Zr,i=e.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var p=a.get(u)||new Set;p.add({entity:l,value:c}),a.set(u,p)}});var o=function(c){c.forEach(function(u){var p=u.props.initialValue;if(p!==void 0){var d=u.getNamePath(),g=e.getInitialValue(d);if(g!==void 0)Lt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var x=a.get(d);if(x&&x.size>1)Lt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(x){var h=e.getFieldValue(d),f=u.isListField();!f&&(!n.skipExist||h===void 0)&&e.updateStore(Qt(e.store,d,de(x)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=a.get(l);if(c){var u;(u=s).push.apply(u,de(de(c).map(function(p){return p.entity})))}})):s=i,o(s)}),z(this,"resetFields",function(n){e.warningUnhooked();var a=e.store;if(!n){e.updateStore(en(e.initialValues)),e.resetWithFieldInitialValue(),e.notifyObservers(a,null,{type:"reset"}),e.notifyWatch();return}var i=n.map(nt);i.forEach(function(o){var s=e.getInitialValue(o);e.updateStore(Qt(e.store,o,s))}),e.resetWithFieldInitialValue({namePathList:i}),e.notifyObservers(a,i,{type:"reset"}),e.notifyWatch(i)}),z(this,"setFields",function(n){e.warningUnhooked();var a=e.store,i=[];n.forEach(function(o){var s=o.name,l=hr(o,Pg),c=nt(s);i.push(c),"value"in l&&e.updateStore(Qt(e.store,c,l.value)),e.notifyObservers(a,[c],{type:"setField",data:o})}),e.notifyWatch(i)}),z(this,"getFields",function(){var n=e.getFieldEntities(!0),a=n.map(function(i){var o=i.getNamePath(),s=i.getMeta(),l=Y(Y({},s),{},{name:o,value:e.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),z(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var i=n.getNamePath(),o=fr(e.store,i);o===void 0&&e.updateStore(Qt(e.store,i,a))}}),z(this,"isMergedPreserve",function(n){var a=n!==void 0?n:e.preserve;return a??!0}),z(this,"registerField",function(n){e.fieldEntities.push(n);var a=n.getNamePath();if(e.notifyWatch([a]),n.props.initialValue!==void 0){var i=e.store;e.resetWithFieldInitialValue({entities:[n],skipExist:!0}),e.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e.fieldEntities=e.fieldEntities.filter(function(p){return p!==n}),!e.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:e.getInitialValue(a);if(a.length&&e.getFieldValue(a)!==c&&e.fieldEntities.every(function(p){return!Ml(p.getNamePath(),a)})){var u=e.store;e.updateStore(Qt(u,a,c,!0)),e.notifyObservers(u,[a],{type:"remove"}),e.triggerDependenciesUpdate(u,a)}}e.notifyWatch([a])}}),z(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,i=n.value;e.updateValue(a,i);break}case"validateField":{var o=n.namePath,s=n.triggerName;e.validateFields([o],{triggerName:s});break}}}),z(this,"notifyObservers",function(n,a,i){if(e.subscribable){var o=Y(Y({},i),{},{store:e.getFieldsValue(!0)});e.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,o)})}else e.forceRootUpdate()}),z(this,"triggerDependenciesUpdate",function(n,a){var i=e.getDependencyChildrenFields(a);return i.length&&e.validateFields(i),e.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[a].concat(de(i))}),i}),z(this,"updateValue",function(n,a){var i=nt(n),o=e.store;e.updateStore(Qt(e.store,i,a)),e.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),e.notifyWatch([i]);var s=e.triggerDependenciesUpdate(o,i),l=e.callbacks.onValuesChange;if(l){var c=Y0(e.store,[i]);l(c,e.getFieldsValue())}e.triggerOnFieldsChange([i].concat(de(s)))}),z(this,"setFieldsValue",function(n){e.warningUnhooked();var a=e.store;if(n){var i=en(e.store,n);e.updateStore(i)}e.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),e.notifyWatch()}),z(this,"setFieldValue",function(n,a){e.setFields([{name:n,value:a,errors:[],warnings:[]}])}),z(this,"getDependencyChildrenFields",function(n){var a=new Set,i=[],o=new Zr;e.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var p=nt(u);o.update(p,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(p){if(!a.has(p)){a.add(p);var d=p.getNamePath();p.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(n),i}),z(this,"triggerOnFieldsChange",function(n,a){var i=e.callbacks.onFieldsChange;if(i){var o=e.getFields();if(a){var s=new Zr;a.forEach(function(c){var u=c.name,p=c.errors;s.set(u,p)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return on(n,u)});l.length&&i(l,o)}}),z(this,"validateFields",function(n,a){e.warningUnhooked();var i,o;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(i=n,o=a):o=n;var s=!!i,l=s?i.map(nt):[],c=[],u=String(Date.now()),p=new Set,d=o||{},g=d.recursive,x=d.dirty;e.getFieldEntities(!0).forEach(function(v){if(s||l.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)&&!(x&&!v.isFieldDirty())){var y=v.getNamePath();if(p.add(y.join(u)),!s||on(l,y,g)){var F=v.validateRules(Y({validateMessages:Y(Y({},Ol),e.validateMessages)},o));c.push(F.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(E){var C,A=[],b=[];return(C=E.forEach)===null||C===void 0||C.call(E,function(B){var w=B.rule.warningOnly,S=B.errors;w?b.push.apply(b,de(S)):A.push.apply(A,de(S))}),A.length?Promise.reject({name:y,errors:A,warnings:b}):{name:y,errors:A,warnings:b}}))}}});var h=kg(c);e.lastValidatePromise=h,h.catch(function(v){return v}).then(function(v){var y=v.map(function(F){var E=F.name;return E});e.notifyObservers(e.store,y,{type:"validateFinish"}),e.triggerOnFieldsChange(y,v)});var f=h.then(function(){return e.lastValidatePromise===h?Promise.resolve(e.getFieldsValue(l)):Promise.reject([])}).catch(function(v){var y=v.filter(function(F){return F&&F.errors.length});return Promise.reject({values:e.getFieldsValue(l),errorFields:y,outOfDate:e.lastValidatePromise!==h})});f.catch(function(v){return v});var m=l.filter(function(v){return p.has(v.join(u))});return e.triggerOnFieldsChange(m),f}),z(this,"submit",function(){e.warningUnhooked(),e.validateFields().then(function(n){var a=e.callbacks.onFinish;if(a)try{a(n)}catch(i){console.error(i)}}).catch(function(n){var a=e.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function fs(r){var t=L.useRef(),e=L.useState({}),n=ce(e,2),a=n[1];if(!t.current)if(r)t.current=r;else{var i=function(){a({})},o=new Tg(i);t.current=o.getForm()}return[t.current]}var Vo=L.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ig=function(t){var e=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,i=t.children,o=L.useContext(Vo),s=L.useRef({});return L.createElement(Vo.Provider,{value:Y(Y({},o),{},{validateMessages:Y(Y({},o.validateMessages),e),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){a&&a(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=Y(Y({},s.current),{},z({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=Y({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},i)},Rg=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Og=function(t,e){var n=t.name,a=t.initialValues,i=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,p=t.validateMessages,d=t.validateTrigger,g=d===void 0?"onChange":d,x=t.onValuesChange,h=t.onFieldsChange,f=t.onFinish,m=t.onFinishFailed,v=t.clearOnDestroy,y=hr(t,Rg),F=L.useRef(null),E=L.useContext(Vo),C=fs(o),A=ce(C,1),b=A[0],B=b.getInternalHooks(Or),w=B.useSubscribe,S=B.setInitialValues,_=B.setCallbacks,P=B.setValidateMessages,I=B.setPreserve,$=B.destroyForm;L.useImperativeHandle(e,function(){return Y(Y({},b),{},{nativeElement:F.current})}),L.useEffect(function(){return E.registerForm(n,b),function(){E.unregisterForm(n)}},[E,b,n]),P(Y(Y({},E.validateMessages),p)),_({onValuesChange:x,onFieldsChange:function(T){if(E.triggerFormChange(n,T),h){for(var U=arguments.length,K=new Array(U>1?U-1:0),Z=1;Z<U;Z++)K[Z-1]=arguments[Z];h.apply(void 0,[T].concat(K))}},onFinish:function(T){E.triggerFormFinish(n,T),f&&f(T)},onFinishFailed:m}),I(s);var j=L.useRef(null);S(a,!j.current),j.current||(j.current=!0),L.useEffect(function(){return function(){return $(v)}},[]);var H,V=typeof l=="function";if(V){var G=b.getFieldsValue(!0);H=l(G,b)}else H=l;w(!V);var X=L.useRef();L.useEffect(function(){Bg(X.current||[],i||[])||b.setFields(i||[]),X.current=i},[i,b]);var O=L.useMemo(function(){return Y(Y({},b),{},{validateTrigger:g})},[b,g]),N=L.createElement(ni.Provider,{value:null},L.createElement(dn.Provider,{value:O},H));return u===!1?N:L.createElement(u,pt({},y,{ref:F,onSubmit:function(T){T.preventDefault(),T.stopPropagation(),b.submit()},onReset:function(T){var U;T.preventDefault(),b.resetFields(),(U=y.onReset)===null||U===void 0||U.call(y,T)}}),N)};function Z0(r){try{return JSON.stringify(r)}catch{return Math.random()}}function Mg(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];var n=t[0],a=t[1],i=a===void 0?{}:a,o=q1(i)?{form:i}:i,s=o.form,l=fe(),c=ce(l,2),u=c[0],p=c[1],d=Ve(function(){return Z0(u)},[u]),g=He(d);g.current=d;var x=rr(dn),h=s||x,f=h&&h._init,m=nt(n),v=He(m);return v.current=m,_e(function(){if(f){var y=h.getFieldsValue,F=h.getInternalHooks,E=F(Or),C=E.registerWatch,A=function(S,_){var P=o.preserve?_:S;return typeof n=="function"?n(P):fr(P,v.current)},b=C(function(w,S){var _=A(w,S),P=Z0(_);g.current!==P&&(g.current=P,p(_))}),B=A(y(),y(!0));return u!==B&&p(B),b}},[f]),u}var Ng=L.forwardRef(Og),jn=Ng;jn.FormProvider=Ig;jn.Field=Nl;jn.List=Dg;jn.useForm=fs;jn.useWatch=Mg;const J0=r=>typeof r=="object"&&r!=null&&r.nodeType===1,ec=(r,t)=>(!t||r!=="hidden")&&r!=="visible"&&r!=="clip",ra=(r,t)=>{if(r.clientHeight<r.scrollHeight||r.clientWidth<r.scrollWidth){const e=getComputedStyle(r,null);return ec(e.overflowY,t)||ec(e.overflowX,t)||(n=>{const a=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!a&&(a.clientHeight<n.scrollHeight||a.clientWidth<n.scrollWidth)})(r)}return!1},na=(r,t,e,n,a,i,o,s)=>i<r&&o>t||i>r&&o<t?0:i<=r&&s<=e||o>=t&&s>=e?i-r-n:o>t&&s<e||i<r&&s>e?o-t+a:0,Lg=r=>{const t=r.parentElement;return t??(r.getRootNode().host||null)},tc=(r,t)=>{var e,n,a,i;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,p=typeof c=="function"?c:j=>j!==c;if(!J0(r))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,g=[];let x=r;for(;J0(x)&&p(x);){if(x=Lg(x),x===d){g.push(x);break}x!=null&&x===document.body&&ra(x)&&!ra(document.documentElement)||x!=null&&ra(x,u)&&g.push(x)}const h=(n=(e=window.visualViewport)==null?void 0:e.width)!=null?n:innerWidth,f=(i=(a=window.visualViewport)==null?void 0:a.height)!=null?i:innerHeight,{scrollX:m,scrollY:v}=window,{height:y,width:F,top:E,right:C,bottom:A,left:b}=r.getBoundingClientRect(),{top:B,right:w,bottom:S,left:_}=(j=>{const H=window.getComputedStyle(j);return{top:parseFloat(H.scrollMarginTop)||0,right:parseFloat(H.scrollMarginRight)||0,bottom:parseFloat(H.scrollMarginBottom)||0,left:parseFloat(H.scrollMarginLeft)||0}})(r);let P=s==="start"||s==="nearest"?E-B:s==="end"?A+S:E+y/2-B+S,I=l==="center"?b+F/2-_+w:l==="end"?C+w:b-_;const $=[];for(let j=0;j<g.length;j++){const H=g[j],{height:V,width:G,top:X,right:O,bottom:N,left:R}=H.getBoundingClientRect();if(o==="if-needed"&&E>=0&&b>=0&&A<=f&&C<=h&&(H===d&&!ra(H)||E>=X&&A<=N&&b>=R&&C<=O))return $;const T=getComputedStyle(H),U=parseInt(T.borderLeftWidth,10),K=parseInt(T.borderTopWidth,10),Z=parseInt(T.borderRightWidth,10),Q=parseInt(T.borderBottomWidth,10);let J=0,pe=0;const ke="offsetWidth"in H?H.offsetWidth-H.clientWidth-U-Z:0,Ae="offsetHeight"in H?H.offsetHeight-H.clientHeight-K-Q:0,oe="offsetWidth"in H?H.offsetWidth===0?0:G/H.offsetWidth:0,Fe="offsetHeight"in H?H.offsetHeight===0?0:V/H.offsetHeight:0;if(d===H)J=s==="start"?P:s==="end"?P-f:s==="nearest"?na(v,v+f,f,K,Q,v+P,v+P+y,y):P-f/2,pe=l==="start"?I:l==="center"?I-h/2:l==="end"?I-h:na(m,m+h,h,U,Z,m+I,m+I+F,F),J=Math.max(0,J+v),pe=Math.max(0,pe+m);else{J=s==="start"?P-X-K:s==="end"?P-N+Q+Ae:s==="nearest"?na(X,N,V,K,Q+Ae,P,P+y,y):P-(X+V/2)+Ae/2,pe=l==="start"?I-R-U:l==="center"?I-(R+G/2)+ke/2:l==="end"?I-O+Z+ke:na(R,O,G,U,Z+ke,I,I+F,F);const{scrollLeft:Re,scrollTop:ve}=H;J=Fe===0?0:Math.max(0,Math.min(ve+J/Fe,H.scrollHeight-V/Fe+Ae)),pe=oe===0?0:Math.max(0,Math.min(Re+pe/oe,H.scrollWidth-G/oe+ke)),P+=ve-J,I+=Re-pe}$.push({el:H,top:J,left:pe})}return $},$g=r=>r===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(r)?r:{block:"start",inline:"nearest"};function zg(r,t){if(!r.isConnected||!(a=>{let i=a;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(r))return;const e=(a=>{const i=window.getComputedStyle(a);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(r);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(tc(r,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:i,left:o}of tc(r,$g(t))){const s=i-e.top+e.bottom,l=o-e.left+e.right;a.scroll({top:s,left:l,behavior:n})}}const jg=["parentNode"],Hg="form_item";function $l(r){return r===void 0||r===!1?[]:Array.isArray(r)?r:[r]}function Vg(r,t){if(!r.length)return;const e=r.join("_");return t?`${t}_${e}`:jg.includes(e)?`${Hg}_${e}`:e}var qg=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(r);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(r,n[a])&&(e[n[a]]=r[n[a]]);return e};function rc(r){return $l(r).join("_")}function nc(r,t){const e=t.getFieldInstance(r),n=al(e);if(n)return n;const a=Vg($l(r),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function zl(r){const[t]=fs(),e=L.useRef({}),n=L.useMemo(()=>Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>i=>{const o=rc(a);i?e.current[o]=i:delete e.current[o]}},scrollToField:(a,i={})=>{const{focus:o}=i,s=qg(i,["focus"]),l=nc(a,n);l&&(zg(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),o&&n.focusField(a))},focusField:a=>{var i,o;const s=n.getFieldInstance(a);typeof(s==null?void 0:s.focus)=="function"?s.focus():(o=(i=nc(a,n))===null||i===void 0?void 0:i.focus)===null||o===void 0||o.call(i)},getFieldInstance:a=>{const i=rc(a);return e.current[i]}}),[r,t]);return[n]}const Ug=({isModalOpen:r,handleOk:t,handleCancel:e,data:n})=>{const a={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[i]=zl();return _e(()=>{if(!r){i.resetFields();return}i.setFieldValue("new_name",n==null?void 0:n.label)},[n,r]),M(ai,{modal:{styles:a},children:M(qc,{title:M("div",{className:"text-[16px]",children:"\u7F16\u8F91\u4F1A\u8BDD\u540D\u79F0"}),closeIcon:null,open:r,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:ne("div",{className:"mt-[16px] flex justify-end",children:[M(sn,{children:"\u53D6\u6D88",onClick:e,className:"mr-[8px]"}),M(sn,{children:"\u786E\u8BA4",onClick:async()=>{try{const o=await i.validateFields();t("ok_rename",o)}catch(o){console.log(o);return}},type:"primary",className:"border-none"})]}),children:M(Bs,{form:i,children:M(Bs.Item,{name:"new_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"},{max:100,message:"\u6700\u5927\u5B57\u6570\u9650\u5236100"}],children:M(Vc,{})})})})})},Wg=({isModalOpen:r,handleOk:t,handleCancel:e,data:n})=>{const a={header:{height:"60px",borderBottom:"1px solid #F0F0F0",display:"flex",paddingLeft:"24px",alignItems:"center",marginBottom:"16px"},title:{fontSize:"16px"},body:{padding:"0 24px"},mask:{},footer:{marginTop:"0px",padding:"0 24px 16px 24px"},content:{padding:0}},[i]=zl();return _e(()=>{if(!r){i.resetFields();return}i.setFieldValue("new_name",n==null?void 0:n.label)},[n,r]),M(ai,{modal:{styles:a},children:M(qc,{title:M("div",{className:"text-[16px]",children:"\u5220\u9664\u4F1A\u8BDD"}),closeIcon:null,open:r,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:ne("div",{className:"mt-[16px] flex justify-end",children:[M(sn,{children:"\u53D6\u6D88",onClick:e,className:"mr-[8px]"}),M(sn,{children:"\u786E\u8BA4",onClick:async()=>{try{const o=await i.validateFields();t("ok_remove",o)}catch(o){console.log(o);return}},type:"primary",className:"border-none"})]}),children:M("div",{children:`\u786E\u5B9A\u8981\u5220\u9664\u4F1A\u8BDD\u300C${n.label}\u300D\u5417\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\u3002`})})})},Gg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFQSURBVHgBpVMxTsNQDLWTiIYBFG7Q3iCcgLIxQJWxZSpbOxFO0HICOhE2shGxEFCGbvQGcAPCCahgIJHoN/5RaEOUBAJPsmTZ3/aT/T4Co23ZxoYeWVACEjj/UOhx6l2E+RzudQfNNcR79ptQjfD1vbE98yfzbFDTEE1ZrBC1/IIJEhYPEYhPKUs3m1OQyJBOWfFPOQX+CQ1qQu6sATBaCLwNrh2/NgOdjQC2FBVu5PW+MTjoDvrccSdfJNILqQCzdB9WpzckudQlg87hYISIl7I7G2YNAZ75SrtFy1wxIBwLwtPAc8ZQA5qq676II5MAw8A7n+z3hpLW2d2V0/pVA99NlGV/BRJdIDbltqcV91++zwesvm2IOH6AEmkTkfsW6Seb6/EL+0dY9EhKl1mYi1Slq3HCQFCP2WHWZJY2qEL6L5LPJ/gy8BfIJmxt6X8C+32HILvaN+0AAAAASUVORK5CYII=",pi=({title:r,setOpen:t})=>ne("div",{style:{width:"100%",height:"60px",borderBottom:"1px solid #EBEBEB",padding:"20px",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"16px",fontWeight:600},children:[M("div",{children:r}),M("img",{src:Ff,style:{width:"16px",height:"16px",cursor:"pointer"},onClick:()=>t(!1)})]});Ef();const Kg=({curFileInfo:r,onClose:t,token:e})=>{var s;const n={title:"",subtitle:"",backgroundColor:"#f8f9fa",showGrid:!1,showLegend:!1,showTooltip:!1,showFullscreen:!1,showMinimap:!1},[a,i]=fe({nodeList:[],edgeList:[]});_e(()=>{console.log("curFileInfo",r)},[r]);const o=async l=>{if(!(!(l!=null&&l.id)||!(l!=null&&l.cyphers)||!(l!=null&&l.fetchUrl)))try{const{cyphers:c,fetchUrl:u,id:p}=l||{};console.log("getGraphData params",c,u,p);const d=await _t.post(u,{cyphers:c,ontologyId:p},{headers:{Authorization:e}});console.log("getGraphData res",d),i((d==null?void 0:d.data)||{})}catch(c){console.log("error",c)}};return _e(()=>{o(r)},[r]),ne("div",{children:[M(pi,{title:r==null?void 0:r.graphName,setOpen:t}),M("div",{style:{width:"100%",height:"calc(100vh - 60px)"},children:M(Af,{centerNode:{vid:(s=r==null?void 0:r.traceNode)==null?void 0:s.vid},data:a,layout:{type:"force",linkDistance:190},title:n.title,subtitle:n.subtitle,backgroundColor:n.backgroundColor,showGrid:n.showGrid,showLegend:n.showLegend,showTooltip:n.showTooltip,showFullscreen:n.showFullscreen,showMinimap:n.showMinimap,customPlugins:{},onReady:l=>{console.log("KnowledgeGraphPreview ready:",l)}})})]})},Xg=({content:r,onClose:t,token:e})=>{const n=o=>{if(!(o!=null&&o.metadata))return;const s=Hi(o,""),{page_number:l,page_size:c,position:u,offset:p,chunk_type:d}=o.metadata;if(s==="markdown_table")return p!=null&&p.length?{annotations:[{id:dr(),offsets:p}],initialPage:1}:{};{if(!c||!u)return console.log("%c\u7F3A\u5C11\u6587\u4EF6size\u6216\u8005\u6587\u4EF6\u5750\u6807","color: red"),{};const g=Array.isArray(c)?c:JSON.parse(c);if(!g.length)return console.log("%c\u7F3A\u5C11\u6587\u4EF6size","color: red"),{};const x=Array.isArray(u)?u:JSON.parse(u);return!x.length||!l?(console.log("%c\u7F3A\u5C11\u6587\u4EF6\u5750\u6807\u6216\u8005\u6587\u4EF6\u9875\u6570","color: red"),{}):{annotations:x.map((f,m)=>({id:dr(),pageNumber:l[m],x:+(f[0][0]/g[0][0]).toFixed(4),y:+(f[0][1]/g[0][1]).toFixed(4),width:+((f[1][0]-f[0][0])/g[0][0]).toFixed(4),height:+((f[2][1]-f[0][1])/g[0][1]).toFixed(4),content:"",color:d==="image"?"#60f74f":"#4FC3F7"})),initialPage:l[0]}}},a=Ve(()=>{var o,s;if(console.log("content88888888888",r),r&&e){console.log("content999",r);const{annotations:l,initialPage:c}=n(r),u={...r,metadata:{source:((o=r==null?void 0:r.metadata)==null?void 0:o.source)||r.parse_url||r.url,page_size:(s=r==null?void 0:r.metadata)==null?void 0:s.page_size}},p=Wc(Gc(u));return{filePath:p,fileName:Wo(u),fileType:Hi(u,p),totalPages:u.pdfPages||0,token:e,annotations:l,initialPage:c,initialZoom:Kc(598,u)}}else return{}},[r]),i=Ve(()=>a.filePath?(console.log("curData",a),M(Qc,{initialZoom:a.initialZoom||100,convertedFilePath:a.filePath,fileName:a.fileName,fileType:a.fileType,initialPage:a.initialPage,totalPages:a.totalPages,authorization:a.token,annotations:a.annotations,streamApiUrl:"/proxy/index/knowledgeBase/file/stream",eventsEmit:o=>{switch(o){case"viewer:close":t();break}},tools:{close:!0}})):M(Mn,{}),[a]);return M("div",{style:{fontFamily:"Source Han Sans CN",fontSize:"12px"},className:"h-full w-full",children:i})},jl=({curFileInfo:r,onClose:t,token:e})=>{const n=Ve(()=>{var i,o,s;if(r&&e){console.log("content999",r);const l={file_source:r.parse_url||r.parsedFilePath||r.url,file_type:r.file_type,metadata:{source:r.filePath||r.url||((i=r==null?void 0:r.metadata)==null?void 0:i.source)||"",page_size:(o=r==null?void 0:r.metadata)==null?void 0:o.page_size},pdfPages:r.pdfPages},c=Wc(Gc(l));return{filePath:c,fileName:Wo(l),fileType:Hi(l,c),totalPages:l.pdfPages||0,token:e,initialZoom:Kc(((s=document.getElementById("pdfBox"))==null?void 0:s.clientWidth)||0,l)}}else return{}},[r]),a=Ve(()=>(console.log("curData",n),n.filePath?M(Qc,{initialZoom:n.initialZoom||100,convertedFilePath:n.filePath,fileName:n.fileName,fileType:n.fileType,initialPage:1,totalPages:n.totalPages,authorization:n.token,streamApiUrl:"/proxy/index/knowledgeBase/file/stream",eventsEmit:i=>{switch(i){case"viewer:close":t();break}},tools:{close:!0}}):M(Mn,{})),[n]);return M("div",{id:"pdfBox",className:"h-full overflow-y-auto",children:a})},Yg=({curFileInfo:r,token:t,onClose:e})=>{const[n,a]=fe(1),[i,o]=fe(10),[s,l]=fe([]),[c,u]=fe([]),[p,d]=fe(0);_e(()=>{var m;const f=((m=r==null?void 0:r.metadata)==null?void 0:m.fetchUrl)||(r==null?void 0:r.fetchUrl);f&&x(f)},[r,n,i]);const g=async({url:f,params:m})=>{var v;try{const y=await _t.get(`${Vi()}${f}?${new URLSearchParams(m).toString()}`,{headers:{Authorization:t}}),F=(v=y==null?void 0:y.data)==null?void 0:v.data;if(F){const{columns:E,dataList:C,totalData:A}=F;l(((E==null?void 0:E.slice(1))||[]).map(b=>({title:b.businessName,dataIndex:b.physicalName,key:b.physicalName}))),u(C||[]),d(A||[])}}catch(y){console.log("error",y)}},x=async f=>{g({url:`${f}`,params:{pageNo:n,pageSize:i}})},h=Ve(()=>{const{databaseName:f,businessTableName:m,tableName:v}=r;return`${f} - ${v||m}`},[r]);return ne("div",{children:[M(pi,{title:h,setOpen:e}),(s==null?void 0:s.length)>0?ne("div",{children:[M("div",{className:"p-4 overflow-auto h-[calc(100vh-120px)]",children:M(pf,{columns:s,dataSource:c,pagination:!1,scroll:{x:"max-content"},rowKey:"id"})}),M("div",{className:"flex justify-end px-[18px]",children:M(vf,{current:n,pageSize:i,responsive:!0,simple:!0,total:p,showSizeChanger:!0,showQuickJumper:!0,onChange:(f,m)=>{a(f),o(m||10)},onShowSizeChange:(f,m)=>{a(1),o(m)}})})]}):M(xf,{})]})},ac=({i:r,item:t,j:e,clickTag:n})=>(console.log("j in tag",e),console.log("i in tag",r),console.log("item in tag",t),M("div",{style:{minWidth:"16px",height:"16px",backgroundColor:Qg[t.key],margin:"0 4px",color:Zg[t.key],display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"2px",fontSize:"12px",cursor:"pointer"},onClick:()=>n&&n(r,e,t),children:e.index},e.id)),Qg={knowledgeList:"#EAF4FD",searchList:"#E8F7F0",databaseList:"#FFF4E5",graphList:"#E7F8FB"},Zg={knowledgeList:"#2072F0",searchList:"#39B83F",databaseList:"#F48C14",graphList:"#10BBD9"},ic=[{key:"knowledgeList",name:"\u77E5\u8BC6\u5E93\u6587\u6863"},{key:"searchList",name:"\u8054\u7F51\u641C\u7D22",hideBtns:!0},{key:"databaseList",name:"\u6570\u636E\u5E93",hideBtns:!0},{key:"graphList",name:"\u77E5\u8BC6\u56FE\u8C31",hideBtns:!0}],oc=({type:r,data:t,token:e,eventsEmit:n,is_download:a})=>{const[i,o]=fe(ic),[s,l]=fe("mark"),[c,u]=fe(!1),[p,d]=fe({}),[g,x]=fe("knowledgeList"),[h,f]=fe({knowledgeList:[],searchList:[],databaseList:[],graphList:[]}),m=Ve(()=>{const C=4-i.length,A=Array(C).fill(null).map((B,w)=>({name:"",key:100+w})),b=[...i,...A];return console.log("rrrrrr",b),b},[i]),v=C=>isNaN(C)?"":(+C).toFixed(2),y=(C,A)=>{switch(C){case"knowledgeList":return Tf(A);case"searchList":return Pf;case"databaseList":return kf;case"graphList":return Df}},F=(C,A)=>C==="graphList"?A.map(b=>({...b,name:b.graphName})).sort((b,B)=>(B.score||0)-(b.score||0)):C==="knowledgeList"?A.map(b=>{const B=b.type==="faq"?b.file_name:b.sourceFileName||Sf(b.source)||b.file_name;return{...b,file_type:_f(b.source)||b.file_type,name:B,score:b.rrf_score}}).sort((b,B)=>(B.score||0)-(b.score||0)):C==="searchList"?A.map(b=>({...b,name:b.sourceFileName||b.file_name})).sort((b,B)=>(B.score||0)-(b.score||0)):C==="databaseList"?A.map(b=>{const B=b.tableName?`${b.databaseName||"\u6570\u636E\u5E93"} - ${b.tableName}`:b.databaseName||b.name||"\u6570\u636E\u5E93";return{...b,name:B,file_name:B,file_type:"database"}}).sort((b,B)=>(B.score||0)-(b.score||0)):A,E=(C,A,b)=>{var B;switch(b.key){case"knowledgeList":const{pdfPages:w,parsedFilePath:S,order_num:_,tags:P}=C||{},I=A.id||_||"Unknown ID",$=(P||[]).find(N=>N.id===I);if(C.type==="faq"){d(C),l("faq"),u(!0),n==null||n("retrive_tag:click",{tagInfo:{id:A.id,index:A.index,image_urls:A.image_urls||[]},fromtype:"10",leaf:{id:A.id,fromtype:"10"},referenceDoc:C});return}if(C.type==="video")return console.log("sdgasdgag",{file:{...C,...$}}),n==null?void 0:n("retrive_tag:click",{file:{...C,...$}});if(console.log("click knowledge tag",C,A),!C||!$)return;const{metadata:j}=$,H=j.source.split("/"),V=H[H.length-1]||"",G=V.split("."),X=G.slice(0,-1).join(".")||"Unknown Label",O=G[G.length-1]||"Unknown Type";d({id:I,title:X,file_name:V,file_type:O,file_source:If(O)?`${qi}${j.source}`:S,metadata:j,pdfPages:w}),l("mark"),u(!0);break;case"searchList":console.log("click search tag",C,A);break;case"databaseList":console.log("click database tag",C,A),l("database"),d({...C,metadata:C.metadata||{},fetchUrl:C.fetchUrl||((B=C.metadata)==null?void 0:B.fetchUrl)||""}),u(!0);break;case"graphList":console.log("click graph tag",C,A),l("graphPreview"),d({...C,traceNode:((t==null?void 0:t.traceNode)||[]).find(N=>N.id===A.id)}),u(!0);break}};return _e(()=>{if(r!==Hl.REFERENCELIST||(console.log("data in reference drawer",t),!t))return;const{graphRefs:C,knowledgeRefs:A,webRefs:b,databaseRefs:B}=t;C!=null&&C.length&&(h.graphList=F("graphList",C)),A!=null&&A.length&&(h.knowledgeList=F("knowledgeList",A)),b!=null&&b.length&&(h.searchList=F("searchList",b)),B!=null&&B.length&&(h.databaseList=F("databaseList",B));const w=ic.filter(S=>{var _;return(_=h[S.key])==null?void 0:_.length}).sort((S,_)=>{var P,I;return(((P=h[_.key])==null?void 0:P.length)||0)-(((I=h[S.key])==null?void 0:I.length)||0)});o(w),w!=null&&w.length&&x(w[0].key),f({...h})},[t]),ne(Mn,{children:[ne("div",{className:"listWrap w-full h-full",children:[M(pi,{title:"\u77E5\u8BC6\u6EAF\u6E90",setOpen:()=>{const C=new CustomEvent("aichat:right_set",{detail:{collapsed:!0}});window.dispatchEvent(C)}}),ne("div",{style:{height:"calc(100% - 60px)"},children:[M("div",{className:"tabs",style:{display:"flex",justifyContent:"space-between",padding:"12px 20px"},children:m.map(C=>M("div",{className:"tab-item",style:{padding:"5.5px 12px",backgroundColor:C.name?g===C.key?"#4E6EF2":"#F5F6F9":"transparent",cursor:"pointer",borderRadius:"4px",color:g===C.key?"#FFFFFF":"#4E5969",fontSize:"14px",minWidth:"80px",display:"flex",justifyContent:"center"},onClick:()=>{C.name&&x(C.key)},children:C.name},C.key))}),M("div",{className:"listBox",style:{height:"calc(100% - 66px)",overflowY:"auto",display:"flex",flexDirection:"column",alignItems:"center",willChange:"scroll-position",transform:"translateZ(0)"},children:i.map(C=>{let A=h[C.key]||[];return g!==C.key?null:M("div",{children:A.map(b=>{var B,w,S,_,P,I;return ne("div",{style:{width:"360px",padding:"4px 8px",borderRadius:"4px",margin:"6px 0",cursor:"pointer"},className:"listItemBox",onClick:()=>{C.key==="searchList"&&window.open(b.link,"_blank")},children:[ne("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[ne("div",{style:{width:C.hideBtns?"339px":"288px",fontSize:"14px",color:"#1D2129",fontWeight:"700",display:"flex",alignItems:"center"},children:[M("img",{src:y(C.key,b.file_type),style:{width:"16px",height:"16px",marginRight:"2px"}}),M(Sn,{placement:"topLeft",title:((B=b==null?void 0:b.name)==null?void 0:B.length)>17?b.name:"",children:M("div",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:C.hideBtns?"322px":"258px"},onClick:()=>{var $,j;if(C.key==="knowledgeList"){if(b.type==="faq"){d(b),l("faq"),u(!0),n==null||n("retrive_tag:click",{tagInfo:{id:b.pk,index:($=(b.tags||[])[0])==null?void 0:$.index,image_urls:[]},fromtype:"10",leaf:{id:b.pk,fromtype:"10"},referenceDoc:b});return}n==null||n("knowledge_referenceFile_title:click",{data:{...b,file_type:b.file_type,file_name:b.file_name,metadata:b.metadata,parsedFilePath:b.parsedFilePath}})}else C.key==="databaseList"&&(l("database"),d({...b,metadata:b.metadata||{},fetchUrl:b.fetchUrl||((j=b.metadata)==null?void 0:j.fetchUrl)||""}),u(!0))},children:b.name})})]}),ne("div",{style:{width:"52px",justifyContent:"space-between",alignItems:"center",marginRight:"8px",display:C.hideBtns||b.type==="video"?"none":"flex"},children:[M("img",{src:Gg,style:{width:"16px",height:"16px",cursor:"pointer"},onClick:()=>{n==null||n("referenceFile_filechat",{data:{...b,file_type:b.file_type,file_name:b.file_name,metadata:b.metadata,parsedFilePath:b.parsedFilePath}})}}),M("div",{style:{borderRight:"1px solid #E5E6EB",height:"14px"}}),M("img",{src:wf,style:{width:"16px",height:"16px",cursor:a?"pointer":"not-allowed"},onClick:()=>{var j,H,V;if(!((j=b==null?void 0:b.tags)!=null&&j.length)&&!((H=b==null?void 0:b.metadata)!=null&&H.source)||!a)return;const $=((V=((b==null?void 0:b.tags)||[])[0])==null?void 0:V.metadata)||(b==null?void 0:b.metadata);Bf({filePath:`${qi}${$.source}`,fileName:Wo({metadata:$}),token:e})}})]})]}),!!(typeof b.score=="string"||typeof b.score=="number"||(w=b==null?void 0:b.tags)!=null&&w.length&&b.tags.length>0&&b.tags.length<=10)&&ne("div",{style:{display:"flex",justifyContent:"space-between",height:"18px",marginTop:"4px"},children:[(typeof b.score=="string"||typeof b.score=="number")&&ne("div",{style:{backgroundColor:"#F2F2FB",borderRadius:"4px",padding:"2px 3px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px"},children:[M("span",{style:{color:"#4E5969",marginRight:"6px"},children:"\u5206\u6570:"}),M("span",{style:{color:"#1D2129"},children:v(b.score)})]}),M("div",{style:{flex:1,display:"flex",justifyContent:"flex-end"},children:((S=b==null?void 0:b.tags)!=null&&S.length&&b.tags.length>0&&b.tags.length<=10?b.tags:[]).map($=>M(ac,{i:b,item:C,j:$,clickTag:E},$.id))})]}),M("div",{style:{flex:1,display:"flex",justifyContent:"flex-start",marginTop:"4px"},children:((_=b==null?void 0:b.tags)!=null&&_.length&&b.tags.length>10?b.tags:[]).map($=>M(ac,{i:b,item:C,j:$,clickTag:E},$.id))}),b.type==="faq"&&(b.faq_question||b.faq_answer)&&ne("div",{style:{marginTop:"8px",padding:"8px 10px",background:"#EAF4FD",borderRadius:"4px",fontSize:"12px",color:"#1D2129",lineHeight:1.5},children:[b.faq_question&&ne("div",{style:{marginBottom:"4px"},children:[M("span",{style:{color:"#4E5969"},children:"Q: "}),M("span",{style:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:b.faq_question})]}),b.faq_answer&&ne("div",{children:[M("span",{style:{color:"#4E5969"},children:"A: "}),M("span",{style:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:b.faq_answer})]})]}),!!((P=b==null?void 0:b.main_source)!=null&&P.length)&&ne("div",{style:{flex:1,display:"flex",alignItems:"flex-start",marginTop:"4px"},children:[M("div",{style:{fontSize:"12px",color:"#4E5969",width:"60px"},children:"\u5173\u8054\u6587\u6863:"}),M(Sn,{placement:"topLeft",title:((I=mi(b.main_source[0]))==null?void 0:I.length)>22?mi(b.main_source[0]):"",children:M("div",{style:{fontSize:"12px",color:"#4E5969",width:"289px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:mi(b.main_source[0])})})]})]},b.id)})},C.key)})})]})]}),M(ai,{drawer:{styles:{body:{padding:0},header:{display:"none"}}},children:ne(Uc,{autoFocus:!1,onClose:()=>u(!1),open:c,width:g==="graphList"?"100%":720,className:"overflow-x-hidden",destroyOnClose:!0,afterOpenChange:C=>{C||d(null)},children:[s==="graphPreview"&&M(Kg,{curFileInfo:p,onClose:u,token:e}),s==="mark"&&M(Xg,{content:p,onClose:u,token:e}),s==="preview"&&M(jl,{curFileInfo:p,onClose:u,token:e}),s==="database"&&M(Yg,{curFileInfo:p,onClose:u,token:e}),s==="faq"&&p&&ne("div",{className:"p-4",children:[M("div",{className:"text-sm text-gray-500 mb-2",children:"Q:"}),M("div",{className:"text-base font-medium mb-4",children:p.faq_question}),M("div",{className:"text-sm text-gray-500 mb-2",children:"A:"}),M("div",{className:"text-base",children:p.faq_answer})]})]})})]})},Jg=({fileData:r,token:t})=>{const[e,n]=fe([]);_e(()=>{var l;const o=r==null?void 0:r.knowledgeBases;if(!(o!=null&&o.length))return;const s=((l=o[0])==null?void 0:l.treeData)||[];s!=null&&s.length&&n(s)},[r]);const a=He(new Map),i=async(o,s)=>{var l,c;if(!a.current.get(o==null?void 0:o.fetchUrl))try{const u=e[s];u.loading=!0;const p=[...e];n(p);const d=await _t.get(`${Rf()}/${o.fetchUrl}`,{headers:{Authorization:t}}),g=(c=(l=d==null?void 0:d.data)==null?void 0:l.data)==null?void 0:c.records;if(g){const x=e[s];x.loading=!1,x.children=g;const h=[...e];h[s]=x,n(h),a.current.set(o==null?void 0:o.fetchUrl,!0)}else{const x=e[s];x.loading=!1;const h=[...e];n(h)}}catch{const p=e[s];p.loading=!1;const d=[...e];n(d)}};return ne(Mn,{children:[M(pi,{title:"\u77E5\u8BC6\u5E93\u6587\u6863\u76EE\u5F55",setOpen:()=>{const o=new CustomEvent("aichat:right_set",{detail:{collapsed:!0}});window.dispatchEvent(o)}}),M("div",{style:{height:"calc(100% - 60px)",overflowY:"auto",padding:"16px"},children:e.map((o,s)=>{var l;return o.type==="file"?ne("div",{className:"flex",style:{marginTop:"8px"},children:[Xc(o),M(Sn,{placement:"top",title:((l=o.name)==null?void 0:l.length)>23?o.name:"",children:M("div",{style:{paddingLeft:"6px",width:"346px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"default",fontSize:"14px"},children:o.name})})]}):M(em,{item:o,index:s,clickFileItem:i},s)})})]})},em=({item:r,index:t,clickFileItem:e})=>{var i;const[n,a]=fe(!1);return ne("div",{style:{marginTop:"8px"},children:[ne("div",{className:"flex cursor-pointer",onClick:()=>{a(!n),!n&&e(r,t)},children:[Xc(r),M(Sn,{placement:"top",title:((i=r.name)==null?void 0:i.length)>23?r.name:"",children:ne("div",{style:{paddingLeft:"6px",width:"346px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px"},children:[r.name," (",r.fileCount||0,")"]})})]},t),M("div",{style:{padding:"2px 0 2px 14px",margin:"8px 0 0 7px",borderLeft:"2px solid #E5E6EB",display:n?"block":"none"},children:(r.children||[]).map((o,s)=>{var l;return ne("div",{className:"flex items-center",children:[M("div",{style:{width:"4px",height:"4px",borderRadius:"2px",background:"black"}}),M(Sn,{placement:"top",title:((l=o.name)==null?void 0:l.length)>26?o.name:"",children:M("div",{style:{paddingLeft:"6px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",width:"336px"},children:o.fileName})})]},s)})})]})};var Hl=(r=>(r.REFERENCELIST="referencelist",r.ALLFILELIST="allFileList",r))(Hl||{});function q2(r=cf){return function({token:e,url:n="http://localhost:8888",styles:a,CSRFToken:i,eventsEmit:o,scrollOld:s,locale:l="zh",messages:c,...u}){const p=mf(),d=Ve(()=>{const D=Ss({theme:qo,mode:"light"},p||{});return Ss(D,a||{})},[p,a]),[g,x]=fe(!1),[h,f]=fe(!1),[m,v]=fe(null),[y,F]=fe(!1),[E,C]=fe("mark"),[A,b]=fe({url:"",parse_url:"",file_type:"",file_name:""}),[B,w]=fe([]),[S,_]=fe(1),[P]=fe(16),[I,$]=fe(0),[j,H]=fe(!1),[V,G]=fe([]),[X,O]=fe(void 0),[N,R]=fe([]),[T,U]=fe([]),[K,Z]=fe(void 0),[Q,J]=fe({display:"ready",sender:"ready",app:"initializing"});function pe(k,D){if(!D)return k;const q=Array.isArray(k)?[...k]:{...k};for(const W in D)if(D[W]!==void 0&&D[W]!==null&&Object.prototype.hasOwnProperty.call(D,W))if(W==="actions"&&Array.isArray(k[W])&&Array.isArray(D[W])){const te=new Map;k[W].forEach(ie=>{ie.name&&te.set(ie.name,ie)}),D[W].forEach(ie=>{ie.name&&te.set(ie.name,ie)}),q[W]=Array.from(te.values())}else typeof k[W]=="object"&&k[W]!==null&&!Array.isArray(k[W])&&typeof D[W]=="object"&&D[W]!==null&&!Array.isArray(D[W])?q[W]=pe(k[W],D[W]):q[W]=D[W];return q}const ke=Ve(()=>Jc(l),[l]),Ae=Ve(()=>{const k=ke;return{...Wr,placeholder:k.sender.placeholder,switchs:(Wr.switchs??[]).map(q=>({...q,label:q.name==="netSearch"?k.sender.netSearch:k.sender.deepThinking})),actions:(Wr.actions??[]).map(q=>({...q,tip:q.name==="upload"?k.sender.fileUpload:q.tip}))}},[l,ke]),[oe,Fe]=fe(()=>pe(Ae,u.senderConfig));_e(()=>{const k=ke,D={...Wr,placeholder:k.sender.placeholder,switchs:(Wr.switchs??[]).map(q=>({...q,label:q.name==="netSearch"?k.sender.netSearch:k.sender.deepThinking})),actions:(Wr.actions??[]).map(q=>({...q,tip:q.name==="upload"?k.sender.fileUpload:q.tip}))};Fe(q=>{const W=pe(D,u.senderConfig);return Array.isArray(q.actions)&&Array.isArray(W.actions)&&(W.actions=W.actions.map((te,ie)=>{var se;const ue=(se=q.actions)==null?void 0:se[ie];return ue&&ue.name===te.name&&ue.badgeCount!==void 0?{...te,badgeCount:ue.badgeCount}:te})),W})},[l,u.senderConfig,ke]);const{fileStatuses:Re,setFileStatuses:ve,pollFileStatus:Ze,handleRemoveFromTemp:Ge,resetStopFlag:Ke,setStopFlag:et,stoppedRef:be,getTempFileList:me,setFileManagerData:De,fileManagerData:Oe}=$1({url:n,token:e,CSRFToken:i,activeSessionId:X}),[Ne,ee]=xe.useState(()=>{var D;if(!T||T.length===0)return;const k=T.find(q=>q.isDefault);return k?k.id:(D=T[0])==null?void 0:D.id});xe.useEffect(()=>{if(!T||T.length===0)return;const k=T.some(D=>D.id===Ne);if(!Ne||!k){const D=T.find(q=>q.isDefault);ee(D?D.id:T[0].id)}},[T]);const[ye,Je]=fe({}),bt=He(void 0),Ft=He(void 0),Dt=He(void 0),Te=He(null),kt=He(void 0),nr=He([]),[yr,Et]=fe([]),[pr,ar]=fe({}),[Dr,ir]=fe(!1),[kr,Cr]=fe([]),[Pr,Pt]=fe(!1),{api_startChat_re:xt,addEmptyMessage:At,setLastEmptyMessage:Tt,stopStream:Wt,cancelStreamBySessionId:$t}=M1({baseUrl:n,CSRFToken:i,token:e,setChatData:G,activeSessionId:X,setAppStatus:J,setConversationList:w}),We=Ve(()=>{const k={};return(T||[]).forEach(D=>{k[D.id]=D}),k},[T]),le=Ve(()=>{const k=V.find(q=>q.id===X)||{id:X,messages:[]},D=k.configId?We[k.configId]:null;return{...k,assistantInfo:D}},[V,X,We]);_e(()=>{console.log("currentChatData",le)},[le]);const Xe=Ve(()=>{if(le.configId&&We){const k=We[le.configId];return k!=null&&k.configJson?JSON.parse(k.configJson).is_download:!1}else return!1},[le.configId,We]);Ve(()=>{if((le.configId||K)&&We){const k=We[le.configId];if(k!=null&&k.configJson){const D=JSON.parse(k.configJson);return console.log("is_enableThinking",le.configId,We,K),!!D.thinking}else if(K){const D=We[K];if(D!=null&&D.configJson)return!!JSON.parse(D.configJson).thinking}}return!1},[le.configId,We,K]),_e(()=>{if(bt.current&&bt.current!==X){const D=bt.current,q=B.find(ie=>ie.sessionId===D&&ie.isNew),W=V.find(ie=>ie.id===D&&ie.isNew),te=W&&W.messages&&W.messages.length>0;q&&!te&&(w(ie=>ie.filter(ue=>ue.sessionId!==D)),G(ie=>ie.filter(ue=>ue.id!==D)))}bt.current=X;const k=le.messages&&le.messages.length>0?le.messages[le.messages.length-1].recommendQuestion:[];R(k)},[X,B,V,le.messages]);const gt=async k=>{var D,q,W,te;if(!j){H(!0);try{const ie=await _t.get(`${n}/qa/dialogue/list?pageNo=${k}&pageSize=${P}&sysType=INT_SESSION`,{headers:{Authorization:e}}),ue=((q=(D=ie==null?void 0:ie.data)==null?void 0:D.data)==null?void 0:q.records)||[],se=((te=(W=ie==null?void 0:ie.data)==null?void 0:W.data)==null?void 0:te.total)||0;$(se),w(qe=>{const Ue=new Map;return[...qe,...ue].forEach(ot=>{Ue.set(ot.sessionId,ot)}),Array.from(Ue.values())}),_(k)}catch{}finally{H(!1)}}};_e(()=>{J(k=>({...k,app:"initializing"})),_t.get(`${n}/qa/search/config/helper/list?pageNo=1&pageSize=3000`,{headers:{Authorization:e}}).then(k=>{U(k.data.data||[])}).catch(()=>{}),gt(1).then(()=>{X||It(),J(k=>({...k,app:"ready"}))}).catch(()=>{J(k=>({...k,app:"error"}))})},[]),_e(()=>{X&&(J(k=>({...k,display:"loading"})),me(X),_t.get(`${n}/qa/dialogue/getDialogBySessionId?sessionId=${X}`,{headers:{Authorization:e}}).then(k=>{var st;if(!k.data.data){J(ae=>({...ae,display:"ready"}));return}const D=((st=k.data.data)==null?void 0:st.queryReplyPairList)||[],q=D1(D),{sessionId:W,searchConfigDTO:te,filePath:ie,configId:ue,reference:se,webReference:qe,uploadedFiles:Ue,fileList:ot,currentFiles:rt}=k.data.data;if(q.length>0){const ae=q.length-1-[...q].reverse().findIndex(Se=>Se.istype==="ai");ae>=0&&ae<q.length&&q[ae].istype==="ai"&&(se&&(q[ae].reference=se),qe&&(q[ae].webReference=qe))}const Pe=rt||ot||Ue;if(Pe&&q.length>0){const ae=[...q].reverse().findIndex(Se=>Se.istype==="user");ae!==-1&&(console.log(q[q.length-1-ae].currentFiles,"filesData"),q[q.length-1-ae].currentFiles=Pe)}B.find(ae=>ae.sessionId===W)&&w(ae=>ae.map(Se=>Se.sessionId===W?{...Se,searchConfigDTO:te,filePath:ie,configId:ue}:Se));const re={configId:k.data.data.configId,filePath:k.data.data.filePath,searchConfigDTO:k.data.data.searchConfigDTO||{},sessionId:k.data.data.sessionId,label:k.data.data.label,kbId:k.data.data.kbId};G(ae=>{const Se=ae.filter(Rt=>Rt.id!==X);return[{id:X,messages:q,...re},...Se]}),J(ae=>({...ae,display:"ready"}))}).catch(k=>{console.error("\u83B7\u53D6\u804A\u5929\u6570\u636E\u5931\u8D25:",k),k.response&&k.response.status===404&&It(),J(D=>({...D,display:"error"}))}))},[X,n,e]),_e(()=>{const k=Oe.uploadedFiles.length;Fe(D=>{const q=Array.isArray(D.actions)?D.actions:[];return{...D,actions:q.map(te=>te.name==="history"?{...te,badgeCount:k}:te)}})},[Oe.uploadedFiles]),_e(()=>{Of({url:n,token:e},k=>{Cr(k)})},[]),xe.useEffect(()=>{Re.length&&G(k=>{if(!k[0])return k;const{messages:D}=k[0];for(let q=D.length-1;q>=0;q--)if(D[q].istype==="user"){const W=D[q].currentFiles||[];D[q].currentFiles=Re.map(te=>{var ue,se,qe;const ie=W.find(Ue=>Ue.uid===te.uid);return{name:((ue=te.file)==null?void 0:ue.name)||te.name,size:((se=te.file)==null?void 0:se.size)||te.size,type:((qe=te.file)==null?void 0:qe.type)||te.type,status:te.status,uid:te.uid,url:te.url||(ie==null?void 0:ie.url)||""}});break}return[...k]})},[Re]);let Ce=null,Ye=null;const Gt=(k,D,q,W)=>{Ye=Ze(k,{onStatusUpdate:D,onComplete:q,onFail:W})},Ie=(k,D)=>{G(q=>{const W=[...q];return W[0]&&(W[0]={...W[0],messages:W[0].messages.map(te=>te.queryId===k?{...te,feedbackResult:D}:te)}),W})},Le=async k=>{var D,q;if(k)try{const W=(le==null?void 0:le.configId)||((D=We==null?void 0:We[(le==null?void 0:le.configId)||""])==null?void 0:D.id)||"",te=await _t.get(`${n}/qa/ai/recommendQuestion?queryId=${k}&configId=${W||""}`.replace(/\?&/,"?"),{headers:{Authorization:e}});R(((q=te.data)==null?void 0:q.data)||[])}catch{R([])}};function it(k){const{content:D,audioUrl:q,filePaths:W,queryId:te}=k;if(!X||!te)return;const ie=(le==null?void 0:le.messages)||[],ue=ie.findIndex(he=>(he==null?void 0:he.queryId)===te&&((he==null?void 0:he.istype)==="ai"||(he==null?void 0:he.isUser)===!1));let se;if(ue>0)for(let he=ue-1;he>=0;he-=1){const re=ie[he];if((re==null?void 0:re.istype)==="user"||(re==null?void 0:re.isUser)===!0){se=re;break}}const qe=(se==null?void 0:se.content)??D;if(!qe)return;const Ue=(se==null?void 0:se.filePaths)??W,ot=(typeof Ue=="string"&&Ue?JSON.parse(Ue):Ue||[]).map(he=>he.uid),rt=Date.now();Tt({now:rt}),J(he=>({...he,display:"processing",sender:"processing"}));const Pe="query-"+dr(32);ue>=0&&ie[ue]&&G(he=>{if(!he[0])return he;const re=he[0],st=re.messages||[];if(ue>=st.length)return he;const ae=st.slice();return ae[ue]={...ae[ue],queryId:Pe,content:ae[ue].content,reference:"[]",webReference:"[]",graphReference:null,databaseReference:null,status:2,chain:void 0},[{...re,messages:ae},...he.slice(1)]}),k.clearFn&&k.clearFn(),w(he=>he.map(re=>re.sessionId===X?{...re,gmtModified:rt}:re)),xt({configId:le.configId,content:qe,fileUids:ot,lastDate:rt,name:le.label||"",queryId:Pe,sessionId:String(X||""),type:(se==null?void 0:se.audioUrl)??q?"audioUrl":"text",audioUrl:((se==null?void 0:se.audioUrl)??q)||"",enableThinking:!!ye.reasoning,enableWebsearch:!!ye.netSearch,qaChannel:ye.qaChannel,tempKnowledgeBaseCheck:qn.current},he=>{Le(Pe)})}async function lt(k,D){if(Q.sender!=="ready"){mt.warning("\u5F53\u524D\u5BF9\u8BDD\u6B63\u5728\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u518D\u53D1\u9001\u65B0\u7684\u95EE\u9898");return}if(!X)return;const q=new CustomEvent("aichat:right_set",{detail:{collapsed:!0}});window.dispatchEvent(q);const W=B.find(te=>te.sessionId===X);if(W&&W.isNew){let te=!1;const ie=K||W.configId,ue=k&&k.content?k.content.slice(0,20):W.label||"\u672A\u547D\u540D\u4F1A\u8BDD";if(await new Promise((se,qe)=>{Lf({url:n,token:e,CSRFToken:i},{label:ue,sessionId:W.sessionId,sysType:"INT_SESSION",configId:ie},Ue=>{Ue&&Ue.data&&Ue.data.sessionId?(w(ot=>ot.map(rt=>rt.sessionId===W.sessionId?{...rt,isNew:!1,configId:ie,label:ue}:rt)),G(ot=>ot.map(rt=>rt.id===W.sessionId?{...rt,isNew:!1,configId:ie,label:ue}:rt)),te=!0,se()):(mt.error("\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),qe())})}),!te)return;Kt(X,k,D,ie);return}Kt(X,k,D)}function Kt(k,D,q,W){const te="query-"+dr(32),ie=B.find(Pe=>Pe.sessionId===k),ue=W||(ie==null?void 0:ie.configId)||le.configId;console.log("\u52A9\u624B\u914D\u7F6E\u8BE6\u60C5",ue);const se=D.content||D.text||"",qe=typeof se=="string"?se:String(se),Ue=qe?qe.slice(0,20):"\u672A\u547D\u540D\u4F1A\u8BDD";let ot;if(D.files&&D.files.length>0&&(ot=D.files.map(Pe=>({name:Pe.file.name,size:Pe.file.size,type:Pe.file.type,filePath:Pe.filePath||"",convertedFilePath:Pe.convertedFilePath||"",uid:Pe.uid||""}))),console.log("\u672C\u5730\u6587\u4EF6\u4E0A\u4F20",D.files),At({content:qe,queryId:te,currentFiles:ot,filePaths:ot?JSON.stringify(ot):void 0}),w(Pe=>Pe.map(he=>he.sessionId===k&&he.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&he.isNew?{...he,label:Ue,gmtModified:Date.now(),isNew:!1}:he)),G(Pe=>Pe.map(he=>he.id===k&&he.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&he.isNew?{...he,label:Ue,isNew:!1}:he)),D.files&&D.files.length>0){J(ae=>({...ae,sender:"uploading",display:"uploading"})),Ce=new AbortController,Ke();const Pe=D.files.map(()=>`rc-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`),he=D.files.map((ae,Se)=>({...ae,uid:Pe[Se],status:"uploading"}));ve(he);const re=new FormData;D.files.forEach(ae=>{re.append("files",ae.file)});const st=String(k||"");re.append("sessionId",st),re.append("uids",Pe.join(",")),_t.post(`${n}/index/knowledgeBase/file/uploadFiles`,re,{headers:{Authorization:e,"Content-Type":"multipart/form-data"},signal:Ce.signal}).then(ae=>{var Xt,Tr,gs,ms,ys,Cs,bs,Fs,Es,As;if(console.log("\u6587\u4EF6\u4E0A\u4F20\u7684\u6253\u5370\u7ED3\u679C",ae),console.log("\u6587\u4EF6\u4E0A\u4F20\u54CD\u5E94\u8BE6\u60C5:",{status:ae.status,success:(Xt=ae.data)==null?void 0:Xt.success,dataType:Array.isArray((Tr=ae.data)==null?void 0:Tr.data)?"array":typeof((gs=ae.data)==null?void 0:gs.data),dataLength:Array.isArray((ms=ae.data)==null?void 0:ms.data)?ae.data.data.length:"N/A",errorMsg:(ys=ae.data)==null?void 0:ys.errorMsg,errorCode:(Cs=ae.data)==null?void 0:Cs.errorCode,fullResponse:ae.data}),be.current)return;const Se=(bs=ae.data)==null?void 0:bs.data,ft=((Fs=ae.data)==null?void 0:Fs.success)===!0,Rt=Array.isArray(Se)&&Se.length>0;if(ft&&Rt){const zt=Se,Ur=zt.map(tt=>tt.uid);ve(tt=>tt.map(ct=>{const Qe=Se.find($e=>$e.uid===ct.uid);return Qe?{...ct,...Qe}:ct})),J(tt=>({...tt,sender:"processing",display:"analyzing"})),ve(tt=>tt.map(ct=>({...ct,status:"parsing"}))),Gt(Ur,tt=>{if(!tt||!Array.isArray(tt)){console.warn("pollFileStatus \u56DE\u8C03\u8FD4\u56DE\u7684 serverStatuses \u65E0\u6548:",tt);return}if(ve(Qe=>Qe.map($e=>{const Er=tt.find(cr=>cr&&cr.uid===$e.uid);if(Er)switch(Er.fileParseStatus??Er.status){case 3:return{...$e,status:"done"};case 4:return{...$e,status:"error"};case 1:case 2:default:return{...$e,status:"parsing"}}return $e})),Array.isArray(tt)&&tt.length>0&&tt.every(Qe=>{if(!Qe)return!1;const $e=Qe.fileParseStatus??Qe.status;return $e===3||$e===4})){ve([]);const Qe=new Map;(tt||[]).forEach($e=>{Qe.set($e.id,$e)}),De($e=>({uploadedFiles:Hf($e.uploadedFiles,zt).map(cr=>{var Cn;return{...cr,pdfPages:((Cn=Qe.get(cr.id))==null?void 0:Cn.pdfPages)||0}})}))}},()=>{q==null||q(),J(ct=>({...ct,sender:"processing",display:"processing"})),ve(ct=>ct.map(Qe=>{const $e=zt.find(Er=>Er.uid===Qe.uid);return $e?{...Qe,...$e,url:$e.filePath,filePath:$e.filePath,name:$e.fileName||Qe.name,convertedFilePath:$e.convertedFilePath||Qe.convertedFilePath}:Qe})),G(ct=>{if(!ct[0])return ct;const{messages:Qe}=ct[0];for(let $e=Qe.length-1;$e>=0;$e--)if(Qe[$e].istype==="user"){const Er=Qe[$e].currentFiles||[];Qe[$e].currentFiles=Er.map(cr=>{const Cn=zt.find(Jl=>Jl.uid===cr.uid);return Cn?{...cr,...Cn}:cr});break}return[...ct]});const tt=Date.now();xt({configId:ue,content:qe,fileUids:Ur,lastDate:tt,name:Ue,queryId:te,sessionId:String(k||""),type:"text",audioUrl:"",enableThinking:!!ye.reasoning,enableWebsearch:!!ye.netSearch,qaChannel:ye.qaChannel,tempKnowledgeBaseCheck:qn.current},ct=>{Le(te)})},tt=>{J(ct=>({...ct,display:"ready",sender:"ready"})),ve(ct=>ct.map(Qe=>({...Qe,status:"error",message:tt})))})}else{let zt="\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25";(Es=ae.data)!=null&&Es.errorMsg?zt=ae.data.errorMsg:ft?Rt||(Array.isArray(Se)?Se.length===0&&(zt="\u4E0A\u4F20\u5931\u8D25: \u8FD4\u56DE\u6570\u636E\u4E3A\u7A7A"):zt=`\u4E0A\u4F20\u5931\u8D25: \u8FD4\u56DE\u6570\u636E\u683C\u5F0F\u9519\u8BEF\uFF0C\u671F\u671B\u6570\u7EC4\uFF0C\u5B9E\u9645\u4E3A ${typeof Se}`):zt=`\u4E0A\u4F20\u5931\u8D25: success=${(As=ae.data)==null?void 0:As.success}`,console.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\u8BE6\u60C5:",{errorMsg:zt,response:ae.data,isSuccess:ft,isValidData:Rt}),mt.error(zt),J(Ur=>({...Ur,display:"error",sender:"ready"})),ve(Ur=>Ur.map(tt=>({...tt,status:"error",message:zt})))}}).catch(ae=>{var Se,ft;((Se=ae==null?void 0:ae.response)==null?void 0:Se.status)===413?(ft=ae==null?void 0:ae.response)!=null&&ft.statusText.includes("Request Entity Too Large")&&mt.error("\u6587\u4EF6\u8D85\u8FC7\u6700\u5927\u53EF\u4E0A\u4F20\u9650\u5236"):mt.error("\u7F51\u7EDC\u9519\u8BEF"),J(Rt=>({...Rt,display:"error",sender:"ready"})),ve(Rt=>Rt.map(Xt=>({...Xt,status:"error",message:"\u7F51\u7EDC\u9519\u8BEF"})))});return}J(Pe=>({...Pe,display:"processing",sender:"processing"}));const rt=Date.now();w(Pe=>Pe.map(he=>he.sessionId===k?{...he,gmtModified:rt}:he)),q==null||q(),xt({configId:ue,content:qe,fileUids:[],lastDate:rt,name:Ue,queryId:te,sessionId:String(k||""),type:"text",audioUrl:"",enableThinking:!!ye.reasoning,enableWebsearch:!!ye.netSearch,qaChannel:ye.qaChannel,tempKnowledgeBaseCheck:qn.current},Pe=>{Le(te)})}function jr(k){k.restult==1?yi({url:n,token:e,CSRFToken:i},{queryId:k.queryId},()=>{Ie(k.queryId,null)}):Ds({url:n,token:e,CSRFToken:i},{restult:1,queryId:k.queryId},()=>{Ie(k.queryId,1)})}function It(k){const D=dr(32),q={sessionId:D,label:"\u672A\u547D\u540D\u4F1A\u8BDD",gmtModified:Date.now(),searchConfigDTO:{},filePath:"",configId:"",isNew:!0};w(W=>[{...q,messages:[]},...W]),G(W=>[{id:D,messages:[],...q},...W]),O(D)}function or(k){if(k!=null&&k.sessionId&&k.sessionId!==X){X&&$t(X),O(k.sessionId),J(q=>({...q,sender:"ready"}));const D=V.find(q=>q.id===k.sessionId);if(D&&D.messages&&D.messages.length>0){const q=[...D.messages].reverse().find(W=>W.istype==="ai");q&&q.recommendQuestion?R(q.recommendQuestion):R([])}else R([])}}const Hr=async k=>new Promise((D,q)=>{$f({url:n,token:e,CSRFToken:i},{sessionId:k},W=>{W?(mt.success("\u5220\u9664\u6210\u529F!"),D(W)):(mt.error("\u5220\u9664\u5931\u8D25!"),q(W))})}),Vr=async()=>{try{return w([]),$(0),await gt(1),[]}catch(k){throw mt.error("\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u5931\u8D25"),k}},qr=async(k,D)=>new Promise((q,W)=>{zf({url:n,token:e,CSRFToken:i},{label:D,sessionId:k},te=>{if(te){const ie=Date.now();w(ue=>ue.map(se=>se.sessionId===k?{...se,label:D,gmtModified:ie}:se)),G(ue=>ue.map(se=>se.id===k?{...se,label:D}:se)),mt.success("\u91CD\u547D\u540D\u6210\u529F!"),q(te)}else mt.error("\u91CD\u547D\u540D\u5931\u8D25"),W(te)})}),St=k=>{w(D=>{const q=D.filter(W=>W.sessionId!==k);return X===k&&(q.length>0?O(q[0].sessionId):It()),q})},Hn=(k,D)=>{const q=Date.now();w(W=>W.map(te=>te.sessionId===k?{...te,label:D,gmtModified:q}:te)),G(W=>W.map(te=>te.id===k?{...te,label:D}:te))},Vn=k=>{Ds({url:n,token:e,CSRFToken:i},{...k,...pr,restult:0},()=>{Ie(pr.queryId,0)})},xi=k=>{const D=k.new_name,q=m.data.label;D&&D!==q?m.async_renameConversation(D).then(()=>{m.fn_renameItemInList(D),x(!1)}).catch(()=>{}):x(!1)},sr=k=>{m.async_deleteConversation().then(()=>{m.fn_removeItemFromList(),f(!1)}).catch(()=>{})},br=(k,D)=>{switch(console.log(k,D),k){case"close_remove":f(!1);break;case"close_rename":x(!1);break;case"ok_rename":xi(D);break;case"ok_remove":sr();break}},Gl=async({url:k,params:D,replacePredataFunction:q})=>{var W,te;try{const ie=await _t.post(k,D,{headers:{Authorization:e}}),ue=(te=(W=ie==null?void 0:ie.data)==null?void 0:W.data)==null?void 0:te.data;ue&&q(ue)}catch(ie){console.log("error",ie)}},Kl=async k=>{var D;try{const q=await _t.get(`${Vi()}/index/knowledgeBase/file/getFileStatusByUids?uids=${k.data.uids}`,{headers:{Authorization:e}});return console.log("resslkdjgalsg",q),(D=q==null?void 0:q.data)==null?void 0:D.data}catch{}},vs=async k=>{var D;if(jf.includes(k.file_type)){const q=(D=k.metadata)!=null&&D.source?`${qi}${k.metadata.source}`:k.url||k.convertedFilePath||k.filePath;b({...k,parse_url:q}),C("preview"),F(!0);return}try{const q=await Kl({data:{uids:k.uid},config:{url:Vi(),token:e,enableMock:!1}});if(q!=null&&q.length){const W=q[0];b({...k,parse_url:W.convertedFilePath}),C("preview"),F(!0)}}catch{}},qn=He(!1),Fr=(k,D)=>{var q,W,te,ie,ue,se,qe;switch(console.log(`[Event] ${k}`,D),k){case"TempKnowledgeBase":qn.current=D;break;case"reference_file:click":if(D.file_type==="image")return;if(!D.parse_url){if(!D.uid)return D.references?void 0:mt.warning("\u6587\u4EF6\u8FD8\u672A\u89E3\u6790\u5B8C\u6210,\u8BF7\u7A0D\u540E\u9884\u89C8");vs(D);return}b({...D,file_type:D.type,file_name:D.file}),C("preview"),F(!0);break;case"conversations:load_more":{B.length<I&&!j&>(S+1);break}case"retrieve-sql-data:pagingation_click":const{page:Ue,pageSize:ot,fetchUrl:rt,source:Pe,replacePredataFunction:he}=D;Gl({url:`${n}${rt}`,replacePredataFunction:he,params:{pageNo:Ue,pageSize:ot,convertedFilePath:Pe,stream:!1}});break;case"web_referenceFile_title:click":if(!((q=D==null?void 0:D.data)!=null&&q.link))return console.error("\u6CA1\u6709\u7F51\u9875\u5730\u5740");window.open(D.data.link,"_blank");break;case"conversation:item_click":or(D);break;case"files:finished_animation_complete":ve([]);break;case"conversation:create":It();break;case"conversation:new_assistant_change":Z(D.assistantId);break;case"conversations:rename_icon_clicked":v({data:D,async_renameConversation:re=>qr(D.sessionId,re),fn_renameItemInList:re=>Hn(D.sessionId,re)}),x(!0);break;case"conversations:delete_icon_clicked":v({data:D,async_deleteConversation:()=>Hr(D.sessionId),async_refreshConversationList:Vr,fn_removeItemFromList:()=>St(D.sessionId)}),f(!0);break;case"sender:send":lt(D,D.clearFn);break;case"sender:send_recommandQuestion":{const re=((D==null?void 0:D.content)??"").toString();if(!re)break;lt({content:re},()=>{});break}case"chatbox:follow_up_question_click":{const re=((D==null?void 0:D.question)??(D==null?void 0:D.content)??"").toString();if(!re)break;lt({content:re},()=>{});break}case"sender:stop":et(),Ce&&(Ce.abort(),Ce=null),Ye&&(Ye(),Ye=null),J(re=>({...re,display:"ready",sender:"ready"})),ve([]),Wt==null||Wt();break;case"sender:clear":(W=D.clearFn)==null||W.call(D);break;case"sender:configChange":D&&D.all&&Je(D.all);break;case"sender:action_upload":Te.current&&Te.current.click();break;case"sender:action_history":Pt(!0);break;case"uploaded_file:item_click":break;case"action_copy:click":D&&_1(D.content,D.event);break;case"chatbox:copy":{let re=(D==null?void 0:D.content)||"";if(!re)break;re=re.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,"");const st=async Se=>{try{return await navigator.clipboard.writeText(Se),mt.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F"),!0}catch{return!1}},ae=Se=>{const ft=document.createElement("textarea");ft.value=Se,ft.style.position="fixed",ft.style.opacity="0",document.body.appendChild(ft),ft.focus(),ft.select();try{document.execCommand("copy"),mt.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}catch{mt.error("\u590D\u5236\u5931\u8D25")}document.body.removeChild(ft)};st(re).then(Se=>{Se||ae(re)});break}case"chatbox:repeat":console.log(D,"sdkflskdjflksdjfklsdjlfkjsdklfjsdklfjlks"),it(D);break;case"action_thumbsup":jr(D);break;case"chatbox:like":jr({queryId:D==null?void 0:D.queryId,restult:D==null?void 0:D.result});break;case"action_thumbsdown":D.restult===0?yi({url:n,token:e,CSRFToken:i},{queryId:D.queryId},()=>{Ie(D.queryId,null)}):(ar(D),ir(!0));break;case"chatbox:dislike":(D==null?void 0:D.result)===0?yi({url:n,token:e,CSRFToken:i},{queryId:D.queryId},()=>{Ie(D.queryId,null)}):(ar({queryId:D==null?void 0:D.queryId}),ir(!0));break;case"action_retrive_tag":o==null||o("action_retrive_tag",D);break;case"referenceFile_view":o==null||o("referenceFile_view",D);break;case"referenceFile_question":console.log(D,"zhezhhzhzh"),vs(D.data||D),o==null||o("referenceFile_question",D);break;case"referenceFile_download":o==null||o("referenceFile_download",D);break;case"references:click":case"knowledge_base_view_all:click":{const re=()=>k==="references:click"?M(oc,{type:"referencelist",data:D,token:e,eventsEmit:o,is_download:Xe}):M(Jg,{fileData:D,token:e}),st=new CustomEvent("aichat:right_set_content",{detail:{content:M(re,{})}});window.dispatchEvent(st);const ae=new CustomEvent("aichat:right_set",{detail:{collapsed:!1}});window.dispatchEvent(ae);break}case"retrive_tag:click":{if((D==null?void 0:D.fromtype)==="10"&&(D!=null&&D.referencesPayloadSingle)){const re=new CustomEvent("aichat:right_set_content",{detail:{content:M(oc,{type:"referencelist",data:D.referencesPayloadSingle,token:e,eventsEmit:o,is_download:Xe})}});window.dispatchEvent(re);const st=new CustomEvent("aichat:right_set",{detail:{collapsed:!1}});window.dispatchEvent(st)}o==null||o("retrive_tag:click",D);break}case"fileManager:change":{typeof(D==null?void 0:D.setUploadedFiles)=="function"&&(Ft.current=D.setUploadedFiles,Dt.current=D.removeFile,kt.current=D==null?void 0:D.senderConfig,nr.current=Array.isArray(D==null?void 0:D.uploadedFiles)?D.uploadedFiles:[],Array.isArray(D==null?void 0:D.uploadedFiles)&&Et(D.uploadedFiles),console.log("[DEBUG] fileManager:change \u4E8B\u4EF6\u89E6\u53D1\uFF0CsetUploadedFilesRef \u5DF2\u8BBE\u7F6E",{hasSetUploadedFiles:!!Ft.current,uploadedFilesCount:((te=D==null?void 0:D.uploadedFiles)==null?void 0:te.length)||0,pendingFilesCount:((ie=D==null?void 0:D.uploadedFiles)==null?void 0:ie.length)||0,hasSenderConfig:!!(D!=null&&D.senderConfig),senderConfig:D==null?void 0:D.senderConfig,upload_number_limit:(ue=D==null?void 0:D.senderConfig)==null?void 0:ue.upload_number_limit,upload_size_limit:(se=D==null?void 0:D.senderConfig)==null?void 0:se.upload_size_limit}));break}case"uploaded_file:removeFromTemp":{console.log("[DEBUG] mergedEventsEmit uploaded_file:removeFromTemp \u4E8B\u4EF6",D);const re=(qe=D==null?void 0:D.file)==null?void 0:qe.uid;if(!re){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6",D);break}const st=[...(le==null?void 0:le.messages)||[]].reverse().find(Se=>Se.istype==="user"),ae=st==null?void 0:st.queryId;Ge(re,ae);break}case"uploaded_file:remove_batch":break;default:o==null||o(k,D)}},Xl=[{key:"conversations",type:"custom",label:"\u5BF9\u8BDD\u5386\u53F2",icon:M(Yf,{size:16}),enabled:!0,component:M(Hd,{data:B,assistantList:T,activedItem:X||"",hasMore:B.length<I,loadingMore:j,sortRules:[{label:"\u5F53\u5929",dayPeriod:1},{label:"3\u5929",dayPeriod:3},{label:"7\u5929",dayPeriod:7},{label:"30\u5929",dayPeriod:30}],eventsEmit:Fr,styles:d.theme})}],xs=xe.useCallback(()=>M(O1,{eventsEmit:Fr,assistantList:T,styles:d,selectedId:Ne,onSelectAssistant:ee,productLogo:u==null?void 0:u.productLogo}),[Fr,T,d,Ne,u==null?void 0:u.productLogo]),Yl={...xe.useMemo(()=>({AiChatBox:(k,D)=>{var ot,rt,Pe,he;const q=D===(((ot=le==null?void 0:le.messages)==null?void 0:ot.length)||0)-1;let W="ready";if(q)if(k.status!==void 0)switch(k.status){case 0:W="thinking";break;case 1:W="processing";break;case 2:W="ready";break;case 3:W="error";break;case 4:W="thinking";break;default:W=Q.display}else W=Q.display;let te=[];if(Array.isArray(N))te=N;else if(typeof N=="string")try{te=JSON.parse(N)||[]}catch{te=[]}const ie=(()=>{const re=k==null?void 0:k.reference;if(!re)return"[]";if(typeof re=="string")try{return JSON.parse(re),re}catch{return"[]"}try{return JSON.stringify(re)}catch{return"[]"}})(),ue=(()=>{const re=k==null?void 0:k.webReference;if(!re)return"[]";if(typeof re=="string")try{return JSON.parse(re),re}catch{return"[]"}try{return JSON.stringify(re)}catch{return"[]"}})(),se=(()=>{const re=k==null?void 0:k.graphReference;if(!re)return"[]";if(typeof re=="string")try{return JSON.parse(re),re}catch{return"[]"}try{return JSON.stringify(re)}catch{return"[]"}})(),qe=k==null?void 0:k.databaseReference,Ue=(()=>{var st,ae,Se;if(k!=null&&k.chainRespTime||(st=k==null?void 0:k.reply)!=null&&st.chainRespTime)return(k==null?void 0:k.chainRespTime)??((ae=k==null?void 0:k.reply)==null?void 0:ae.chainRespTime);const re=(k==null?void 0:k.chain)||((Se=k==null?void 0:k.reply)==null?void 0:Se.chain);if(Array.isArray(re)&&re.length>0){const ft=re.reduce((Rt,Xt)=>{const Tr=(Xt==null?void 0:Xt.chainRespTime)??(Xt==null?void 0:Xt.respTime);return Tr!=null&&Tr>0?Rt+Tr:Rt},0);return ft>0?ft:void 0}})();return M(ws,{...k,enablePrism:!1,token:e,streamUrl:"/proxy/index/knowledgeBase/file/stream",referenceMode:"button",reference:ie,webReference:ue,graphReference:se,faqReference:(k==null?void 0:k.faqReference)??((rt=k==null?void 0:k.reply)==null?void 0:rt.faqReference),databaseReference:qe,contentType:"stream",displayStatus:W,eventsEmit:Fr,isLast:q&&(k==null?void 0:k.istype)==="ai",followUpQuestions:q&&(k==null?void 0:k.istype)==="ai"?te:[],defaultAnswer:((Pe=le==null?void 0:le.searchConfigDTO)==null?void 0:Pe.defaultAnswer)||"\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u6211\u4EEC\u6CA1\u80FD\u67E5\u5230\u4F60\u8981\u7684\u95EE\u9898*-*",is_download:Xe,styles:d,enableThoughtChain:!0,chain:k==null?void 0:k.chain,thoughtChainNodes:k==null?void 0:k.thoughtChainNodes,thoughtChainStatus:k==null?void 0:k.status,enableCot:(k==null?void 0:k.enableCot)??((he=k==null?void 0:k.reply)==null?void 0:he.enableCot),chainRespTime:Ue},`${(k==null?void 0:k.queryId)||(k==null?void 0:k.id)||D}-${(k==null?void 0:k.istype)||"unknown"}`)},LogoBox:k=>k&&k.LogoBox===null?null:k&&typeof k.LogoBox=="function"?M(k.LogoBox,{}):M("div",{className:"text-2xl w-full text-center font-bold",children:"\u5C0F\u9CB8\u667A\u80FD\u52A9\u624B"}),DisplayLoading:()=>M(j1,{}),DisplayError:()=>M(V1,{}),AppError:()=>M(H1,{msg:"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25",subMsg:"\u65E0\u6CD5\u5B8C\u6210\u5E94\u7528\u521D\u59CB\u5316\uFF0C\u8FD9\u53EF\u80FD\u662F\u7531\u4E8E\u7F51\u7EDC\u8FDE\u63A5\u95EE\u9898\u6216\u670D\u52A1\u914D\u7F6E\u9519\u8BEF\u5BFC\u81F4\u7684\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8FDE\u63A5\u5E76\u91CD\u8BD5\u3002"}),AppLoading:()=>{var k,D;return M(z1,{title:(k=u==null?void 0:u.appLoadingConfig)==null?void 0:k.title,subtitle:((D=u==null?void 0:u.appLoadingConfig)==null?void 0:D.subtitle)||""})},UserChatBox:(k,D)=>M(ws,{enablePrism:!1,token:e,streamUrl:"/proxy/index/knowledgeBase/file/stream",...k,referenceMode:"button",contentType:"plainText",isUser:!0,displayStatus:"ready",eventsEmit:Fr,styles:d,fileManagerData:Oe,currentFiles:k==null?void 0:k.currentFiles},`${(k==null?void 0:k.queryId)||(k==null?void 0:k.id)||D}-user`),WelcomeComponent:xs}),[xs,le,Q.display,Fr,d,Xe,Oe]),...u.CustomComponents||{}};_e(()=>{Fe(k=>{const D=Array.isArray(k.switchs)?k.switchs.map(q=>q.name==="reasoning"?{...q,enabled:!0}:q):[];return{...k,switchs:D}})},[]);const Ql=Ve(()=>Oe.uploadedFiles||[],[Oe]),{FileDisplayTools:Zl}=Mf({fileManagerData:{uploadedFiles:Ql},styles:d,eventsEmit:Fr});return M(id,{locale:l,children:ne("div",{style:{height:"100%",minWidth:"1116px",overflow:"hidden"},children:[M("input",{ref:Te,type:"file",multiple:!0,accept:"image/*,.pdf,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.txt,.md,.json,.csv,.zip,.rar,.7z",style:{display:"none"},onChange:k=>{const D=k.target.files;if(D&&D.length>0){console.log("[DEBUG] handleFileSelect \u89E6\u53D1",{filesCount:D.length,hasSetUploadedFilesRef:!!Ft.current,hasSenderConfig:!!kt.current,dynamicSenderConfig:oe,dynamicSenderConfigKeys:oe?Object.keys(oe):[],senderConfigRef:kt.current,senderConfigRefKeys:kt.current?Object.keys(kt.current):[]});const q=Array.from(D);let W=kt.current;(!W||W.upload_size_limit===void 0&&W.upload_number_limit===void 0&&(!W.upload_file_type_limit||W.upload_file_type_limit.length===0))&&(W=oe);const te=nr.current||[];console.log("[DEBUG] \u9A8C\u8BC1\u914D\u7F6E\u68C0\u67E5",{configSource:W,upload_number_limit:W==null?void 0:W.upload_number_limit,upload_size_limit:W==null?void 0:W.upload_size_limit,existingFilesCount:te.length,newFilesCount:q.length});const ie=W&&(W.upload_size_limit!==void 0||W.upload_number_limit!==void 0&&W.upload_number_limit>0||W.upload_file_type_limit&&W.upload_file_type_limit.length>0);if(console.log("[DEBUG] \u914D\u7F6E\u68C0\u67E5\u7ED3\u679C",{hasUploadLimitConfig:ie,upload_number_limit:W==null?void 0:W.upload_number_limit,upload_size_limit:W==null?void 0:W.upload_size_limit,upload_file_type_limit:W==null?void 0:W.upload_file_type_limit}),ie){const ue={upload_size_limit:W.upload_size_limit,upload_number_limit:W.upload_number_limit,upload_file_type_limit:W.upload_file_type_limit,upload_limit_message:W.upload_limit_message};console.log("[DEBUG] \u6267\u884C\u6587\u4EF6\u9A8C\u8BC1",{uploadConfig:ue,existingFilesCount:te.length,newFilesCount:q.length,totalCount:te.length+q.length});const se=uf(q,te,ue);if(console.log("[DEBUG] \u9A8C\u8BC1\u7ED3\u679C",{valid:se.valid,errors:se.errors,rejectedFilesCount:se.rejectedFiles.length}),!se.valid){lf(se);const qe=q.filter(Ue=>!se.rejectedFiles.includes(Ue));if(qe.length===0){Te.current&&(Te.current.value="");return}q.splice(0,q.length,...qe)}}if(Ft.current){const ue=q.map(se=>({file:se,type:se.type.startsWith("image/")?"image":"document",status:"pending",name:se.name}));console.log("[DEBUG] \u901A\u8FC7 setUploadedFilesRef \u8BBE\u7F6E\u6587\u4EF6",ue),Ft.current(ue)}else console.warn("[DEBUG] setUploadedFilesRef \u672A\u8BBE\u7F6E\uFF0C\u5EF6\u8FDF\u91CD\u8BD5"),setTimeout(()=>{if(Ft.current){const ue=q.map(se=>({file:se,type:se.type.startsWith("image/")?"image":"document",status:"pending",name:se.name}));console.log("[DEBUG] \u5EF6\u8FDF\u540E\u901A\u8FC7 setUploadedFilesRef \u8BBE\u7F6E\u6587\u4EF6",ue),Ft.current(ue)}else console.error("[DEBUG] \u5EF6\u8FDF\u540E setUploadedFilesRef \u4ECD\u672A\u8BBE\u7F6E")},100)}Te.current&&(Te.current.value="")}}),M(r,{...u,status:Q,chatData:le,sidebar:Xl,recommandQuestions:[],eventsEmit:Fr,styles:d,senderConfig:oe,fileUploadStatus:Re,CustomComponents:Yl,activeSessionId:X,scrollOld:s,rightbarWidth:"400px",locale:l,messages:c,disclaimer:u.disclaimer??ke.disclaimer,chatHeader:{title:(le==null?void 0:le.label)||ke.chatHeader.newConversation,tools:Zl}}),M(Nf,{open:Dr,feedBackList:kr,setOpen:ir,handleConfirm:Vn}),M(Ug,{isModalOpen:g,handleOk:br,handleCancel:()=>br("close_rename"),data:(m==null?void 0:m.data)||{}}),M(Wg,{isModalOpen:h,handleOk:br,handleCancel:()=>br("close_remove"),data:(m==null?void 0:m.data)||{}}),M(ai,{drawer:{styles:{body:{padding:0},header:{display:"none"}}},children:M(Uc,{autoFocus:!1,onClose:()=>F(!1),open:y,width:E==="graphPreview"?"100%":720,className:"overflow-x-hidden",destroyOnClose:!0,children:E==="preview"&&M(jl,{curFileInfo:A,onClose:F,token:e})})})]})})}}var pa={exports:{}};function tm(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var va={exports:{}};const rm={},nm=Object.freeze(Object.defineProperty({__proto__:null,default:rm},Symbol.toStringTag,{value:"Module"})),am=Vf(nm);var im=va.exports,sc;function Be(){return sc||(sc=1,(function(r,t){(function(e,n){r.exports=n()})(im,function(){var e=e||(function(n,a){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Ci<"u"&&Ci.crypto&&(i=Ci.crypto),!i&&typeof tm=="function")try{i=am}catch{}var o=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||(function(){function v(){}return function(y){var F;return v.prototype=y,F=new v,v.prototype=null,F}})(),l={},c=l.lib={},u=c.Base=(function(){return{extend:function(v){var y=s(this);return v&&y.mixIn(v),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var y in v)v.hasOwnProperty(y)&&(this[y]=v[y]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),p=c.WordArray=u.extend({init:function(v,y){v=this.words=v||[],y!=a?this.sigBytes=y:this.sigBytes=v.length*4},toString:function(v){return(v||g).stringify(this)},concat:function(v){var y=this.words,F=v.words,E=this.sigBytes,C=v.sigBytes;if(this.clamp(),E%4)for(var A=0;A<C;A++){var b=F[A>>>2]>>>24-A%4*8&255;y[E+A>>>2]|=b<<24-(E+A)%4*8}else for(var B=0;B<C;B+=4)y[E+B>>>2]=F[B>>>2];return this.sigBytes+=C,this},clamp:function(){var v=this.words,y=this.sigBytes;v[y>>>2]&=4294967295<<32-y%4*8,v.length=n.ceil(y/4)},clone:function(){var v=u.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var y=[],F=0;F<v;F+=4)y.push(o());return new p.init(y,v)}}),d=l.enc={},g=d.Hex={stringify:function(v){for(var y=v.words,F=v.sigBytes,E=[],C=0;C<F;C++){var A=y[C>>>2]>>>24-C%4*8&255;E.push((A>>>4).toString(16)),E.push((A&15).toString(16))}return E.join("")},parse:function(v){for(var y=v.length,F=[],E=0;E<y;E+=2)F[E>>>3]|=parseInt(v.substr(E,2),16)<<24-E%8*4;return new p.init(F,y/2)}},x=d.Latin1={stringify:function(v){for(var y=v.words,F=v.sigBytes,E=[],C=0;C<F;C++){var A=y[C>>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(A))}return E.join("")},parse:function(v){for(var y=v.length,F=[],E=0;E<y;E++)F[E>>>2]|=(v.charCodeAt(E)&255)<<24-E%4*8;return new p.init(F,y)}},h=d.Utf8={stringify:function(v){try{return decodeURIComponent(escape(x.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return x.parse(unescape(encodeURIComponent(v)))}},f=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=h.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var y,F=this._data,E=F.words,C=F.sigBytes,A=this.blockSize,b=A*4,B=C/b;v?B=n.ceil(B):B=n.max((B|0)-this._minBufferSize,0);var w=B*A,S=n.min(w*4,C);if(w){for(var _=0;_<w;_+=A)this._doProcessBlock(E,_);y=E.splice(0,w),F.sigBytes-=S}return new p.init(y,S)},clone:function(){var v=u.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=f.extend({cfg:u.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(v){return function(y,F){return new v.init(F).finalize(y)}},_createHmacHelper:function(v){return function(y,F){return new m.HMAC.init(v,F).finalize(y)}}});var m=l.algo={};return l})(Math);return e})})(va)),va.exports}var xa={exports:{}},om=xa.exports,cc;function vi(){return cc||(cc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(om,function(e){return(function(n){var a=e,i=a.lib,o=i.Base,s=i.WordArray,l=a.x64={};l.Word=o.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=o.extend({init:function(c,u){c=this.words=c||[],u!=n?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,p=[],d=0;d<u;d++){var g=c[d];p.push(g.high),p.push(g.low)}return s.create(p,this.sigBytes)},clone:function(){for(var c=o.clone.call(this),u=c.words=this.words.slice(0),p=u.length,d=0;d<p;d++)u[d]=u[d].clone();return c}})})(),e})})(xa)),xa.exports}var ga={exports:{}},sm=ga.exports,uc;function cm(){return uc||(uc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(sm,function(e){return(function(){if(typeof ArrayBuffer=="function"){var n=e,a=n.lib,i=a.WordArray,o=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],p=0;p<c;p++)u[p>>>2]|=l[p]<<24-p%4*8;o.call(this,u,c)}else o.apply(this,arguments)};s.prototype=i}})(),e.lib.WordArray})})(ga)),ga.exports}var ma={exports:{}},um=ma.exports,lc;function lm(){return lc||(lc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(um,function(e){return(function(){var n=e,a=n.lib,i=a.WordArray,o=n.enc;o.Utf16=o.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,p=[],d=0;d<u;d+=2){var g=c[d>>>2]>>>16-d%4*8&65535;p.push(String.fromCharCode(g))}return p.join("")},parse:function(l){for(var c=l.length,u=[],p=0;p<c;p++)u[p>>>1]|=l.charCodeAt(p)<<16-p%2*16;return i.create(u,c*2)}},o.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,p=[],d=0;d<u;d+=2){var g=s(c[d>>>2]>>>16-d%4*8&65535);p.push(String.fromCharCode(g))}return p.join("")},parse:function(l){for(var c=l.length,u=[],p=0;p<c;p++)u[p>>>1]|=s(l.charCodeAt(p)<<16-p%2*16);return i.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}})(),e.enc.Utf16})})(ma)),ma.exports}var ya={exports:{}},fm=ya.exports,fc;function $r(){return fc||(fc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(fm,function(e){return(function(){var n=e,a=n.lib,i=a.WordArray,o=n.enc;o.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,p=this._map;l.clamp();for(var d=[],g=0;g<u;g+=3)for(var x=c[g>>>2]>>>24-g%4*8&255,h=c[g+1>>>2]>>>24-(g+1)%4*8&255,f=c[g+2>>>2]>>>24-(g+2)%4*8&255,m=x<<16|h<<8|f,v=0;v<4&&g+v*.75<u;v++)d.push(p.charAt(m>>>6*(3-v)&63));var y=p.charAt(64);if(y)for(;d.length%4;)d.push(y);return d.join("")},parse:function(l){var c=l.length,u=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var d=0;d<u.length;d++)p[u.charCodeAt(d)]=d}var g=u.charAt(64);if(g){var x=l.indexOf(g);x!==-1&&(c=x)}return s(l,c,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var p=[],d=0,g=0;g<c;g++)if(g%4){var x=u[l.charCodeAt(g-1)]<<g%4*2,h=u[l.charCodeAt(g)]>>>6-g%4*2,f=x|h;p[d>>>2]|=f<<24-d%4*8,d++}return i.create(p,d)}})(),e.enc.Base64})})(ya)),ya.exports}var Ca={exports:{}},dm=Ca.exports,dc;function hm(){return dc||(dc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(dm,function(e){return(function(){var n=e,a=n.lib,i=a.WordArray,o=n.enc;o.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,p=l.sigBytes,d=c?this._safe_map:this._map;l.clamp();for(var g=[],x=0;x<p;x+=3)for(var h=u[x>>>2]>>>24-x%4*8&255,f=u[x+1>>>2]>>>24-(x+1)%4*8&255,m=u[x+2>>>2]>>>24-(x+2)%4*8&255,v=h<<16|f<<8|m,y=0;y<4&&x+y*.75<p;y++)g.push(d.charAt(v>>>6*(3-y)&63));var F=d.charAt(64);if(F)for(;g.length%4;)g.push(F);return g.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,p=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var g=0;g<p.length;g++)d[p.charCodeAt(g)]=g}var x=p.charAt(64);if(x){var h=l.indexOf(x);h!==-1&&(u=h)}return s(l,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,u){for(var p=[],d=0,g=0;g<c;g++)if(g%4){var x=u[l.charCodeAt(g-1)]<<g%4*2,h=u[l.charCodeAt(g)]>>>6-g%4*2,f=x|h;p[d>>>2]|=f<<24-d%4*8,d++}return i.create(p,d)}})(),e.enc.Base64url})})(Ca)),Ca.exports}var ba={exports:{}},pm=ba.exports,hc;function zr(){return hc||(hc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(pm,function(e){return(function(n){var a=e,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=n.abs(n.sin(h+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,f){for(var m=0;m<16;m++){var v=f+m,y=h[v];h[v]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var F=this._hash.words,E=h[f+0],C=h[f+1],A=h[f+2],b=h[f+3],B=h[f+4],w=h[f+5],S=h[f+6],_=h[f+7],P=h[f+8],I=h[f+9],$=h[f+10],j=h[f+11],H=h[f+12],V=h[f+13],G=h[f+14],X=h[f+15],O=F[0],N=F[1],R=F[2],T=F[3];O=p(O,N,R,T,E,7,c[0]),T=p(T,O,N,R,C,12,c[1]),R=p(R,T,O,N,A,17,c[2]),N=p(N,R,T,O,b,22,c[3]),O=p(O,N,R,T,B,7,c[4]),T=p(T,O,N,R,w,12,c[5]),R=p(R,T,O,N,S,17,c[6]),N=p(N,R,T,O,_,22,c[7]),O=p(O,N,R,T,P,7,c[8]),T=p(T,O,N,R,I,12,c[9]),R=p(R,T,O,N,$,17,c[10]),N=p(N,R,T,O,j,22,c[11]),O=p(O,N,R,T,H,7,c[12]),T=p(T,O,N,R,V,12,c[13]),R=p(R,T,O,N,G,17,c[14]),N=p(N,R,T,O,X,22,c[15]),O=d(O,N,R,T,C,5,c[16]),T=d(T,O,N,R,S,9,c[17]),R=d(R,T,O,N,j,14,c[18]),N=d(N,R,T,O,E,20,c[19]),O=d(O,N,R,T,w,5,c[20]),T=d(T,O,N,R,$,9,c[21]),R=d(R,T,O,N,X,14,c[22]),N=d(N,R,T,O,B,20,c[23]),O=d(O,N,R,T,I,5,c[24]),T=d(T,O,N,R,G,9,c[25]),R=d(R,T,O,N,b,14,c[26]),N=d(N,R,T,O,P,20,c[27]),O=d(O,N,R,T,V,5,c[28]),T=d(T,O,N,R,A,9,c[29]),R=d(R,T,O,N,_,14,c[30]),N=d(N,R,T,O,H,20,c[31]),O=g(O,N,R,T,w,4,c[32]),T=g(T,O,N,R,P,11,c[33]),R=g(R,T,O,N,j,16,c[34]),N=g(N,R,T,O,G,23,c[35]),O=g(O,N,R,T,C,4,c[36]),T=g(T,O,N,R,B,11,c[37]),R=g(R,T,O,N,_,16,c[38]),N=g(N,R,T,O,$,23,c[39]),O=g(O,N,R,T,V,4,c[40]),T=g(T,O,N,R,E,11,c[41]),R=g(R,T,O,N,b,16,c[42]),N=g(N,R,T,O,S,23,c[43]),O=g(O,N,R,T,I,4,c[44]),T=g(T,O,N,R,H,11,c[45]),R=g(R,T,O,N,X,16,c[46]),N=g(N,R,T,O,A,23,c[47]),O=x(O,N,R,T,E,6,c[48]),T=x(T,O,N,R,_,10,c[49]),R=x(R,T,O,N,G,15,c[50]),N=x(N,R,T,O,w,21,c[51]),O=x(O,N,R,T,H,6,c[52]),T=x(T,O,N,R,b,10,c[53]),R=x(R,T,O,N,$,15,c[54]),N=x(N,R,T,O,C,21,c[55]),O=x(O,N,R,T,P,6,c[56]),T=x(T,O,N,R,X,10,c[57]),R=x(R,T,O,N,S,15,c[58]),N=x(N,R,T,O,V,21,c[59]),O=x(O,N,R,T,B,6,c[60]),T=x(T,O,N,R,j,10,c[61]),R=x(R,T,O,N,A,15,c[62]),N=x(N,R,T,O,I,21,c[63]),F[0]=F[0]+O|0,F[1]=F[1]+N|0,F[2]=F[2]+R|0,F[3]=F[3]+T|0},_doFinalize:function(){var h=this._data,f=h.words,m=this._nDataBytes*8,v=h.sigBytes*8;f[v>>>5]|=128<<24-v%32;var y=n.floor(m/4294967296),F=m;f[(v+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,f[(v+64>>>9<<4)+14]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,h.sigBytes=(f.length+1)*4,this._process();for(var E=this._hash,C=E.words,A=0;A<4;A++){var b=C[A];C[A]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}return E},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});function p(h,f,m,v,y,F,E){var C=h+(f&m|~f&v)+y+E;return(C<<F|C>>>32-F)+f}function d(h,f,m,v,y,F,E){var C=h+(f&v|m&~v)+y+E;return(C<<F|C>>>32-F)+f}function g(h,f,m,v,y,F,E){var C=h+(f^m^v)+y+E;return(C<<F|C>>>32-F)+f}function x(h,f,m,v,y,F,E){var C=h+(m^(f|~v))+y+E;return(C<<F|C>>>32-F)+f}a.MD5=s._createHelper(u),a.HmacMD5=s._createHmacHelper(u)})(Math),e.MD5})})(ba)),ba.exports}var Fa={exports:{}},vm=Fa.exports,pc;function Vl(){return pc||(pc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(vm,function(e){return(function(){var n=e,a=n.lib,i=a.WordArray,o=a.Hasher,s=n.algo,l=[],c=s.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,p){for(var d=this._hash.words,g=d[0],x=d[1],h=d[2],f=d[3],m=d[4],v=0;v<80;v++){if(v<16)l[v]=u[p+v]|0;else{var y=l[v-3]^l[v-8]^l[v-14]^l[v-16];l[v]=y<<1|y>>>31}var F=(g<<5|g>>>27)+m+l[v];v<20?F+=(x&h|~x&f)+1518500249:v<40?F+=(x^h^f)+1859775393:v<60?F+=(x&h|x&f|h&f)-1894007588:F+=(x^h^f)-899497514,m=f,f=h,h=x<<30|x>>>2,x=g,g=F}d[0]=d[0]+g|0,d[1]=d[1]+x|0,d[2]=d[2]+h|0,d[3]=d[3]+f|0,d[4]=d[4]+m|0},_doFinalize:function(){var u=this._data,p=u.words,d=this._nDataBytes*8,g=u.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=Math.floor(d/4294967296),p[(g+64>>>9<<4)+15]=d,u.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=o._createHelper(c),n.HmacSHA1=o._createHmacHelper(c)})(),e.SHA1})})(Fa)),Fa.exports}var Ea={exports:{}},xm=Ea.exports,vc;function ds(){return vc||(vc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(xm,function(e){return(function(n){var a=e,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=[],u=[];(function(){function g(m){for(var v=n.sqrt(m),y=2;y<=v;y++)if(!(m%y))return!1;return!0}function x(m){return(m-(m|0))*4294967296|0}for(var h=2,f=0;f<64;)g(h)&&(f<8&&(c[f]=x(n.pow(h,1/2))),u[f]=x(n.pow(h,1/3)),f++),h++})();var p=[],d=l.SHA256=s.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(g,x){for(var h=this._hash.words,f=h[0],m=h[1],v=h[2],y=h[3],F=h[4],E=h[5],C=h[6],A=h[7],b=0;b<64;b++){if(b<16)p[b]=g[x+b]|0;else{var B=p[b-15],w=(B<<25|B>>>7)^(B<<14|B>>>18)^B>>>3,S=p[b-2],_=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;p[b]=w+p[b-7]+_+p[b-16]}var P=F&E^~F&C,I=f&m^f&v^m&v,$=(f<<30|f>>>2)^(f<<19|f>>>13)^(f<<10|f>>>22),j=(F<<26|F>>>6)^(F<<21|F>>>11)^(F<<7|F>>>25),H=A+j+P+u[b]+p[b],V=$+I;A=C,C=E,E=F,F=y+H|0,y=v,v=m,m=f,f=H+V|0}h[0]=h[0]+f|0,h[1]=h[1]+m|0,h[2]=h[2]+v|0,h[3]=h[3]+y|0,h[4]=h[4]+F|0,h[5]=h[5]+E|0,h[6]=h[6]+C|0,h[7]=h[7]+A|0},_doFinalize:function(){var g=this._data,x=g.words,h=this._nDataBytes*8,f=g.sigBytes*8;return x[f>>>5]|=128<<24-f%32,x[(f+64>>>9<<4)+14]=n.floor(h/4294967296),x[(f+64>>>9<<4)+15]=h,g.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA256=s._createHelper(d),a.HmacSHA256=s._createHmacHelper(d)})(Math),e.SHA256})})(Ea)),Ea.exports}var Aa={exports:{}},gm=Aa.exports,xc;function mm(){return xc||(xc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),ds())})(gm,function(e){return(function(){var n=e,a=n.lib,i=a.WordArray,o=n.algo,s=o.SHA256,l=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)})(),e.SHA224})})(Aa)),Aa.exports}var wa={exports:{}},ym=wa.exports,gc;function ql(){return gc||(gc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vi())})(ym,function(e){return(function(){var n=e,a=n.lib,i=a.Hasher,o=n.x64,s=o.Word,l=o.WordArray,c=n.algo;function u(){return s.create.apply(s,arguments)}var p=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var x=0;x<80;x++)d[x]=u()})();var g=c.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(x,h){for(var f=this._hash.words,m=f[0],v=f[1],y=f[2],F=f[3],E=f[4],C=f[5],A=f[6],b=f[7],B=m.high,w=m.low,S=v.high,_=v.low,P=y.high,I=y.low,$=F.high,j=F.low,H=E.high,V=E.low,G=C.high,X=C.low,O=A.high,N=A.low,R=b.high,T=b.low,U=B,K=w,Z=S,Q=_,J=P,pe=I,ke=$,Ae=j,oe=H,Fe=V,Re=G,ve=X,Ze=O,Ge=N,Ke=R,et=T,be=0;be<80;be++){var me,De,Oe=d[be];if(be<16)De=Oe.high=x[h+be*2]|0,me=Oe.low=x[h+be*2+1]|0;else{var Ne=d[be-15],ee=Ne.high,ye=Ne.low,Je=(ee>>>1|ye<<31)^(ee>>>8|ye<<24)^ee>>>7,bt=(ye>>>1|ee<<31)^(ye>>>8|ee<<24)^(ye>>>7|ee<<25),Ft=d[be-2],Dt=Ft.high,Te=Ft.low,kt=(Dt>>>19|Te<<13)^(Dt<<3|Te>>>29)^Dt>>>6,nr=(Te>>>19|Dt<<13)^(Te<<3|Dt>>>29)^(Te>>>6|Dt<<26),yr=d[be-7],Et=yr.high,pr=yr.low,ar=d[be-16],Dr=ar.high,ir=ar.low;me=bt+pr,De=Je+Et+(me>>>0<bt>>>0?1:0),me=me+nr,De=De+kt+(me>>>0<nr>>>0?1:0),me=me+ir,De=De+Dr+(me>>>0<ir>>>0?1:0),Oe.high=De,Oe.low=me}var kr=oe&Re^~oe&Ze,Cr=Fe&ve^~Fe&Ge,Pr=U&Z^U&J^Z&J,Pt=K&Q^K&pe^Q&pe,xt=(U>>>28|K<<4)^(U<<30|K>>>2)^(U<<25|K>>>7),At=(K>>>28|U<<4)^(K<<30|U>>>2)^(K<<25|U>>>7),Tt=(oe>>>14|Fe<<18)^(oe>>>18|Fe<<14)^(oe<<23|Fe>>>9),Wt=(Fe>>>14|oe<<18)^(Fe>>>18|oe<<14)^(Fe<<23|oe>>>9),$t=p[be],We=$t.high,le=$t.low,Xe=et+Wt,gt=Ke+Tt+(Xe>>>0<et>>>0?1:0),Xe=Xe+Cr,gt=gt+kr+(Xe>>>0<Cr>>>0?1:0),Xe=Xe+le,gt=gt+We+(Xe>>>0<le>>>0?1:0),Xe=Xe+me,gt=gt+De+(Xe>>>0<me>>>0?1:0),Ce=At+Pt,Ye=xt+Pr+(Ce>>>0<At>>>0?1:0);Ke=Ze,et=Ge,Ze=Re,Ge=ve,Re=oe,ve=Fe,Fe=Ae+Xe|0,oe=ke+gt+(Fe>>>0<Ae>>>0?1:0)|0,ke=J,Ae=pe,J=Z,pe=Q,Z=U,Q=K,K=Xe+Ce|0,U=gt+Ye+(K>>>0<Xe>>>0?1:0)|0}w=m.low=w+K,m.high=B+U+(w>>>0<K>>>0?1:0),_=v.low=_+Q,v.high=S+Z+(_>>>0<Q>>>0?1:0),I=y.low=I+pe,y.high=P+J+(I>>>0<pe>>>0?1:0),j=F.low=j+Ae,F.high=$+ke+(j>>>0<Ae>>>0?1:0),V=E.low=V+Fe,E.high=H+oe+(V>>>0<Fe>>>0?1:0),X=C.low=X+ve,C.high=G+Re+(X>>>0<ve>>>0?1:0),N=A.low=N+Ge,A.high=O+Ze+(N>>>0<Ge>>>0?1:0),T=b.low=T+et,b.high=R+Ke+(T>>>0<et>>>0?1:0)},_doFinalize:function(){var x=this._data,h=x.words,f=this._nDataBytes*8,m=x.sigBytes*8;h[m>>>5]|=128<<24-m%32,h[(m+128>>>10<<5)+30]=Math.floor(f/4294967296),h[(m+128>>>10<<5)+31]=f,x.sigBytes=h.length*4,this._process();var v=this._hash.toX32();return v},clone:function(){var x=i.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:1024/32});n.SHA512=i._createHelper(g),n.HmacSHA512=i._createHmacHelper(g)})(),e.SHA512})})(wa)),wa.exports}var Ba={exports:{}},Cm=Ba.exports,mc;function bm(){return mc||(mc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vi(),ql())})(Cm,function(e){return(function(){var n=e,a=n.x64,i=a.Word,o=a.WordArray,s=n.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new o.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c)})(),e.SHA384})})(Ba)),Ba.exports}var Sa={exports:{}},Fm=Sa.exports,yc;function Em(){return yc||(yc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vi())})(Fm,function(e){return(function(n){var a=e,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.x64,c=l.Word,u=a.algo,p=[],d=[],g=[];(function(){for(var f=1,m=0,v=0;v<24;v++){p[f+5*m]=(v+1)*(v+2)/2%64;var y=m%5,F=(2*f+3*m)%5;f=y,m=F}for(var f=0;f<5;f++)for(var m=0;m<5;m++)d[f+5*m]=m+(2*f+3*m)%5*5;for(var E=1,C=0;C<24;C++){for(var A=0,b=0,B=0;B<7;B++){if(E&1){var w=(1<<B)-1;w<32?b^=1<<w:A^=1<<w-32}E&128?E=E<<1^113:E<<=1}g[C]=c.create(A,b)}})();var x=[];(function(){for(var f=0;f<25;f++)x[f]=c.create()})();var h=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var f=this._state=[],m=0;m<25;m++)f[m]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(f,m){for(var v=this._state,y=this.blockSize/2,F=0;F<y;F++){var E=f[m+2*F],C=f[m+2*F+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var A=v[F];A.high^=C,A.low^=E}for(var b=0;b<24;b++){for(var B=0;B<5;B++){for(var w=0,S=0,_=0;_<5;_++){var A=v[B+5*_];w^=A.high,S^=A.low}var P=x[B];P.high=w,P.low=S}for(var B=0;B<5;B++)for(var I=x[(B+4)%5],$=x[(B+1)%5],j=$.high,H=$.low,w=I.high^(j<<1|H>>>31),S=I.low^(H<<1|j>>>31),_=0;_<5;_++){var A=v[B+5*_];A.high^=w,A.low^=S}for(var V=1;V<25;V++){var w,S,A=v[V],G=A.high,X=A.low,O=p[V];O<32?(w=G<<O|X>>>32-O,S=X<<O|G>>>32-O):(w=X<<O-32|G>>>64-O,S=G<<O-32|X>>>64-O);var N=x[d[V]];N.high=w,N.low=S}var R=x[0],T=v[0];R.high=T.high,R.low=T.low;for(var B=0;B<5;B++)for(var _=0;_<5;_++){var V=B+5*_,A=v[V],U=x[V],K=x[(B+1)%5+5*_],Z=x[(B+2)%5+5*_];A.high=U.high^~K.high&Z.high,A.low=U.low^~K.low&Z.low}var A=v[0],Q=g[b];A.high^=Q.high,A.low^=Q.low}},_doFinalize:function(){var f=this._data,m=f.words;this._nDataBytes*8;var v=f.sigBytes*8,y=this.blockSize*32;m[v>>>5]|=1<<24-v%32,m[(n.ceil((v+1)/y)*y>>>5)-1]|=128,f.sigBytes=m.length*4,this._process();for(var F=this._state,E=this.cfg.outputLength/8,C=E/8,A=[],b=0;b<C;b++){var B=F[b],w=B.high,S=B.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,A.push(S),A.push(w)}return new o.init(A,E)},clone:function(){for(var f=s.clone.call(this),m=f._state=this._state.slice(0),v=0;v<25;v++)m[v]=m[v].clone();return f}});a.SHA3=s._createHelper(h),a.HmacSHA3=s._createHmacHelper(h)})(Math),e.SHA3})})(Sa)),Sa.exports}var _a={exports:{}},Am=_a.exports,Cc;function wm(){return Cc||(Cc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(Am,function(e){/** @preserve
|
|
320
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
321
|
+
|
|
322
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
323
|
+
|
|
324
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
325
|
+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
326
|
+
|
|
327
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
328
|
+
*/return(function(n){var a=e,i=a.lib,o=i.WordArray,s=i.Hasher,l=a.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=o.create([0,1518500249,1859775393,2400959708,2840853838]),x=o.create([1352829926,1548603684,1836072691,2053994217,0]),h=l.RIPEMD160=s.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,A){for(var b=0;b<16;b++){var B=A+b,w=C[B];C[B]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var S=this._hash.words,_=g.words,P=x.words,I=c.words,$=u.words,j=p.words,H=d.words,V,G,X,O,N,R,T,U,K,Z;R=V=S[0],T=G=S[1],U=X=S[2],K=O=S[3],Z=N=S[4];for(var Q,b=0;b<80;b+=1)Q=V+C[A+I[b]]|0,b<16?Q+=f(G,X,O)+_[0]:b<32?Q+=m(G,X,O)+_[1]:b<48?Q+=v(G,X,O)+_[2]:b<64?Q+=y(G,X,O)+_[3]:Q+=F(G,X,O)+_[4],Q=Q|0,Q=E(Q,j[b]),Q=Q+N|0,V=N,N=O,O=E(X,10),X=G,G=Q,Q=R+C[A+$[b]]|0,b<16?Q+=F(T,U,K)+P[0]:b<32?Q+=y(T,U,K)+P[1]:b<48?Q+=v(T,U,K)+P[2]:b<64?Q+=m(T,U,K)+P[3]:Q+=f(T,U,K)+P[4],Q=Q|0,Q=E(Q,H[b]),Q=Q+Z|0,R=Z,Z=K,K=E(U,10),U=T,T=Q;Q=S[1]+X+K|0,S[1]=S[2]+O+Z|0,S[2]=S[3]+N+R|0,S[3]=S[4]+V+T|0,S[4]=S[0]+G+U|0,S[0]=Q},_doFinalize:function(){var C=this._data,A=C.words,b=this._nDataBytes*8,B=C.sigBytes*8;A[B>>>5]|=128<<24-B%32,A[(B+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,C.sigBytes=(A.length+1)*4,this._process();for(var w=this._hash,S=w.words,_=0;_<5;_++){var P=S[_];S[_]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return w},clone:function(){var C=s.clone.call(this);return C._hash=this._hash.clone(),C}});function f(C,A,b){return C^A^b}function m(C,A,b){return C&A|~C&b}function v(C,A,b){return(C|~A)^b}function y(C,A,b){return C&b|A&~b}function F(C,A,b){return C^(A|~b)}function E(C,A){return C<<A|C>>>32-A}a.RIPEMD160=s._createHelper(h),a.HmacRIPEMD160=s._createHmacHelper(h)})(),e.RIPEMD160})})(_a)),_a.exports}var Da={exports:{}},Bm=Da.exports,bc;function hs(){return bc||(bc=1,(function(r,t){(function(e,n){r.exports=n(Be())})(Bm,function(e){(function(){var n=e,a=n.lib,i=a.Base,o=n.enc,s=o.Utf8,l=n.algo;l.HMAC=i.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var p=c.blockSize,d=p*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var g=this._oKey=u.clone(),x=this._iKey=u.clone(),h=g.words,f=x.words,m=0;m<p;m++)h[m]^=1549556828,f[m]^=909522486;g.sigBytes=x.sigBytes=d,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,p=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(p));return d}})})()})})(Da)),Da.exports}var ka={exports:{}},Sm=ka.exports,Fc;function _m(){return Fc||(Fc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),ds(),hs())})(Sm,function(e){return(function(){var n=e,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.SHA256,c=s.HMAC,u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,d){for(var g=this.cfg,x=c.create(g.hasher,p),h=o.create(),f=o.create([1]),m=h.words,v=f.words,y=g.keySize,F=g.iterations;m.length<y;){var E=x.update(d).finalize(f);x.reset();for(var C=E.words,A=C.length,b=E,B=1;B<F;B++){b=x.finalize(b),x.reset();for(var w=b.words,S=0;S<A;S++)C[S]^=w[S]}h.concat(E),v[0]++}return h.sigBytes=y*4,h}});n.PBKDF2=function(p,d,g){return u.create(g).compute(p,d)}})(),e.PBKDF2})})(ka)),ka.exports}var Pa={exports:{}},Dm=Pa.exports,Ec;function _r(){return Ec||(Ec=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),Vl(),hs())})(Dm,function(e){return(function(){var n=e,a=n.lib,i=a.Base,o=a.WordArray,s=n.algo,l=s.MD5,c=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,p){for(var d,g=this.cfg,x=g.hasher.create(),h=o.create(),f=h.words,m=g.keySize,v=g.iterations;f.length<m;){d&&x.update(d),d=x.update(u).finalize(p),x.reset();for(var y=1;y<v;y++)d=x.finalize(d),x.reset();h.concat(d)}return h.sigBytes=m*4,h}});n.EvpKDF=function(u,p,d){return c.create(d).compute(u,p)}})(),e.EvpKDF})})(Pa)),Pa.exports}var Ta={exports:{}},km=Ta.exports,Ac;function vt(){return Ac||(Ac=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),_r())})(km,function(e){e.lib.Cipher||(function(n){var a=e,i=a.lib,o=i.Base,s=i.WordArray,l=i.BufferedBlockAlgorithm,c=a.enc;c.Utf8;var u=c.Base64,p=a.algo,d=p.EvpKDF,g=i.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(w,S){return this.create(this._ENC_XFORM_MODE,w,S)},createDecryptor:function(w,S){return this.create(this._DEC_XFORM_MODE,w,S)},init:function(w,S,_){this.cfg=this.cfg.extend(_),this._xformMode=w,this._key=S,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var S=this._doFinalize();return S},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function w(S){return typeof S=="string"?B:C}return function(S){return{encrypt:function(_,P,I){return w(P).encrypt(S,_,P,I)},decrypt:function(_,P,I){return w(P).decrypt(S,_,P,I)}}}})()});i.StreamCipher=g.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var x=a.mode={},h=i.BlockCipherMode=o.extend({createEncryptor:function(w,S){return this.Encryptor.create(w,S)},createDecryptor:function(w,S){return this.Decryptor.create(w,S)},init:function(w,S){this._cipher=w,this._iv=S}}),f=x.CBC=(function(){var w=h.extend();w.Encryptor=w.extend({processBlock:function(_,P){var I=this._cipher,$=I.blockSize;S.call(this,_,P,$),I.encryptBlock(_,P),this._prevBlock=_.slice(P,P+$)}}),w.Decryptor=w.extend({processBlock:function(_,P){var I=this._cipher,$=I.blockSize,j=_.slice(P,P+$);I.decryptBlock(_,P),S.call(this,_,P,$),this._prevBlock=j}});function S(_,P,I){var $,j=this._iv;j?($=j,this._iv=n):$=this._prevBlock;for(var H=0;H<I;H++)_[P+H]^=$[H]}return w})(),m=a.pad={},v=m.Pkcs7={pad:function(w,S){for(var _=S*4,P=_-w.sigBytes%_,I=P<<24|P<<16|P<<8|P,$=[],j=0;j<P;j+=4)$.push(I);var H=s.create($,P);w.concat(H)},unpad:function(w){var S=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=S}};i.BlockCipher=g.extend({cfg:g.cfg.extend({mode:f,padding:v}),reset:function(){var w;g.reset.call(this);var S=this.cfg,_=S.iv,P=S.mode;this._xformMode==this._ENC_XFORM_MODE?w=P.createEncryptor:(w=P.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,_&&_.words):(this._mode=w.call(P,this,_&&_.words),this._mode.__creator=w)},_doProcessBlock:function(w,S){this._mode.processBlock(w,S)},_doFinalize:function(){var w,S=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(S.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),S.unpad(w)),w},blockSize:128/32});var y=i.CipherParams=o.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),F=a.format={},E=F.OpenSSL={stringify:function(w){var S,_=w.ciphertext,P=w.salt;return P?S=s.create([1398893684,1701076831]).concat(P).concat(_):S=_,S.toString(u)},parse:function(w){var S,_=u.parse(w),P=_.words;return P[0]==1398893684&&P[1]==1701076831&&(S=s.create(P.slice(2,4)),P.splice(0,4),_.sigBytes-=16),y.create({ciphertext:_,salt:S})}},C=i.SerializableCipher=o.extend({cfg:o.extend({format:E}),encrypt:function(w,S,_,P){P=this.cfg.extend(P);var I=w.createEncryptor(_,P),$=I.finalize(S),j=I.cfg;return y.create({ciphertext:$,key:_,iv:j.iv,algorithm:w,mode:j.mode,padding:j.padding,blockSize:w.blockSize,formatter:P.format})},decrypt:function(w,S,_,P){P=this.cfg.extend(P),S=this._parse(S,P.format);var I=w.createDecryptor(_,P).finalize(S.ciphertext);return I},_parse:function(w,S){return typeof w=="string"?S.parse(w,this):w}}),A=a.kdf={},b=A.OpenSSL={execute:function(w,S,_,P,I){if(P||(P=s.random(64/8)),I)var $=d.create({keySize:S+_,hasher:I}).compute(w,P);else var $=d.create({keySize:S+_}).compute(w,P);var j=s.create($.words.slice(S),_*4);return $.sigBytes=S*4,y.create({key:$,iv:j,salt:P})}},B=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:b}),encrypt:function(w,S,_,P){P=this.cfg.extend(P);var I=P.kdf.execute(_,w.keySize,w.ivSize,P.salt,P.hasher);P.iv=I.iv;var $=C.encrypt.call(this,w,S,I.key,P);return $.mixIn(I),$},decrypt:function(w,S,_,P){P=this.cfg.extend(P),S=this._parse(S,P.format);var I=P.kdf.execute(_,w.keySize,w.ivSize,S.salt,P.hasher);P.iv=I.iv;var $=C.decrypt.call(this,w,S,I.key,P);return $}})})()})})(Ta)),Ta.exports}var Ia={exports:{}},Pm=Ia.exports,wc;function Tm(){return wc||(wc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(Pm,function(e){return e.mode.CFB=(function(){var n=e.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize;a.call(this,i,o,l,s),this._prevBlock=i.slice(o,o+l)}}),n.Decryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,c=i.slice(o,o+l);a.call(this,i,o,l,s),this._prevBlock=c}});function a(i,o,s,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var p=0;p<s;p++)i[o+p]^=c[p]}return n})(),e.mode.CFB})})(Ia)),Ia.exports}var Ra={exports:{}},Im=Ra.exports,Bc;function Rm(){return Bc||(Bc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(Im,function(e){return e.mode.CTR=(function(){var n=e.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var p=u.slice(0);s.encryptBlock(p,0),u[l-1]=u[l-1]+1|0;for(var d=0;d<l;d++)i[o+d]^=p[d]}});return n.Decryptor=a,n})(),e.mode.CTR})})(Ra)),Ra.exports}var Oa={exports:{}},Om=Oa.exports,Sc;function Mm(){return Sc||(Sc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(Om,function(e){/** @preserve
|
|
329
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
330
|
+
* derived from CryptoJS.mode.CTR
|
|
331
|
+
* Jan Hruby jhruby.web@gmail.com
|
|
332
|
+
*/return e.mode.CTRGladman=(function(){var n=e.lib.BlockCipherMode.extend();function a(s){if((s>>24&255)===255){var l=s>>16&255,c=s>>8&255,u=s&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,s=0,s+=l<<16,s+=c<<8,s+=u}else s+=1<<24;return s}function i(s){return(s[0]=a(s[0]))===0&&(s[1]=a(s[1])),s}var o=n.Encryptor=n.extend({processBlock:function(s,l){var c=this._cipher,u=c.blockSize,p=this._iv,d=this._counter;p&&(d=this._counter=p.slice(0),this._iv=void 0),i(d);var g=d.slice(0);c.encryptBlock(g,0);for(var x=0;x<u;x++)s[l+x]^=g[x]}});return n.Decryptor=o,n})(),e.mode.CTRGladman})})(Oa)),Oa.exports}var Ma={exports:{}},Nm=Ma.exports,_c;function Lm(){return _c||(_c=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(Nm,function(e){return e.mode.OFB=(function(){var n=e.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(i,o){var s=this._cipher,l=s.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),s.encryptBlock(u,0);for(var p=0;p<l;p++)i[o+p]^=u[p]}});return n.Decryptor=a,n})(),e.mode.OFB})})(Ma)),Ma.exports}var Na={exports:{}},$m=Na.exports,Dc;function zm(){return Dc||(Dc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})($m,function(e){return e.mode.ECB=(function(){var n=e.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(a,i){this._cipher.encryptBlock(a,i)}}),n.Decryptor=n.extend({processBlock:function(a,i){this._cipher.decryptBlock(a,i)}}),n})(),e.mode.ECB})})(Na)),Na.exports}var La={exports:{}},jm=La.exports,kc;function Hm(){return kc||(kc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(jm,function(e){return e.pad.AnsiX923={pad:function(n,a){var i=n.sigBytes,o=a*4,s=o-i%o,l=i+s-1;n.clamp(),n.words[l>>>2]|=s<<24-l%4*8,n.sigBytes+=s},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},e.pad.Ansix923})})(La)),La.exports}var $a={exports:{}},Vm=$a.exports,Pc;function qm(){return Pc||(Pc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(Vm,function(e){return e.pad.Iso10126={pad:function(n,a){var i=a*4,o=i-n.sigBytes%i;n.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},e.pad.Iso10126})})($a)),$a.exports}var za={exports:{}},Um=za.exports,Tc;function Wm(){return Tc||(Tc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(Um,function(e){return e.pad.Iso97971={pad:function(n,a){n.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(n,a)},unpad:function(n){e.pad.ZeroPadding.unpad(n),n.sigBytes--}},e.pad.Iso97971})})(za)),za.exports}var ja={exports:{}},Gm=ja.exports,Ic;function Km(){return Ic||(Ic=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(Gm,function(e){return e.pad.ZeroPadding={pad:function(n,a){var i=a*4;n.clamp(),n.sigBytes+=i-(n.sigBytes%i||i)},unpad:function(n){for(var a=n.words,i=n.sigBytes-1,i=n.sigBytes-1;i>=0;i--)if(a[i>>>2]>>>24-i%4*8&255){n.sigBytes=i+1;break}}},e.pad.ZeroPadding})})(ja)),ja.exports}var Ha={exports:{}},Xm=Ha.exports,Rc;function Ym(){return Rc||(Rc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(Xm,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})})(Ha)),Ha.exports}var Va={exports:{}},Qm=Va.exports,Oc;function Zm(){return Oc||(Oc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vt())})(Qm,function(e){return(function(n){var a=e,i=a.lib,o=i.CipherParams,s=a.enc,l=s.Hex,c=a.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var p=l.parse(u);return o.create({ciphertext:p})}}})(),e.format.Hex})})(Va)),Va.exports}var qa={exports:{}},Jm=qa.exports,Mc;function e2(){return Mc||(Mc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),$r(),zr(),_r(),vt())})(Jm,function(e){return(function(){var n=e,a=n.lib,i=a.BlockCipher,o=n.algo,s=[],l=[],c=[],u=[],p=[],d=[],g=[],x=[],h=[],f=[];(function(){for(var y=[],F=0;F<256;F++)F<128?y[F]=F<<1:y[F]=F<<1^283;for(var E=0,C=0,F=0;F<256;F++){var A=C^C<<1^C<<2^C<<3^C<<4;A=A>>>8^A&255^99,s[E]=A,l[A]=E;var b=y[E],B=y[b],w=y[B],S=y[A]*257^A*16843008;c[E]=S<<24|S>>>8,u[E]=S<<16|S>>>16,p[E]=S<<8|S>>>24,d[E]=S;var S=w*16843009^B*65537^b*257^E*16843008;g[A]=S<<24|S>>>8,x[A]=S<<16|S>>>16,h[A]=S<<8|S>>>24,f[A]=S,E?(E=b^y[y[y[w^b]]],C^=y[y[C]]):E=C=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],v=o.AES=i.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var F=this._keyPriorReset=this._key,E=F.words,C=F.sigBytes/4,A=this._nRounds=C+6,b=(A+1)*4,B=this._keySchedule=[],w=0;w<b;w++)w<C?B[w]=E[w]:(y=B[w-1],w%C?C>6&&w%C==4&&(y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255]):(y=y<<8|y>>>24,y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255],y^=m[w/C|0]<<24),B[w]=B[w-C]^y);for(var S=this._invKeySchedule=[],_=0;_<b;_++){var w=b-_;if(_%4)var y=B[w];else var y=B[w-4];_<4||w<=4?S[_]=y:S[_]=g[s[y>>>24]]^x[s[y>>>16&255]]^h[s[y>>>8&255]]^f[s[y&255]]}}},encryptBlock:function(y,F){this._doCryptBlock(y,F,this._keySchedule,c,u,p,d,s)},decryptBlock:function(y,F){var E=y[F+1];y[F+1]=y[F+3],y[F+3]=E,this._doCryptBlock(y,F,this._invKeySchedule,g,x,h,f,l);var E=y[F+1];y[F+1]=y[F+3],y[F+3]=E},_doCryptBlock:function(y,F,E,C,A,b,B,w){for(var S=this._nRounds,_=y[F]^E[0],P=y[F+1]^E[1],I=y[F+2]^E[2],$=y[F+3]^E[3],j=4,H=1;H<S;H++){var V=C[_>>>24]^A[P>>>16&255]^b[I>>>8&255]^B[$&255]^E[j++],G=C[P>>>24]^A[I>>>16&255]^b[$>>>8&255]^B[_&255]^E[j++],X=C[I>>>24]^A[$>>>16&255]^b[_>>>8&255]^B[P&255]^E[j++],O=C[$>>>24]^A[_>>>16&255]^b[P>>>8&255]^B[I&255]^E[j++];_=V,P=G,I=X,$=O}var V=(w[_>>>24]<<24|w[P>>>16&255]<<16|w[I>>>8&255]<<8|w[$&255])^E[j++],G=(w[P>>>24]<<24|w[I>>>16&255]<<16|w[$>>>8&255]<<8|w[_&255])^E[j++],X=(w[I>>>24]<<24|w[$>>>16&255]<<16|w[_>>>8&255]<<8|w[P&255])^E[j++],O=(w[$>>>24]<<24|w[_>>>16&255]<<16|w[P>>>8&255]<<8|w[I&255])^E[j++];y[F]=V,y[F+1]=G,y[F+2]=X,y[F+3]=O},keySize:256/32});n.AES=i._createHelper(v)})(),e.AES})})(qa)),qa.exports}var Ua={exports:{}},t2=Ua.exports,Nc;function r2(){return Nc||(Nc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),$r(),zr(),_r(),vt())})(t2,function(e){return(function(){var n=e,a=n.lib,i=a.WordArray,o=a.BlockCipher,s=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=s.DES=o.extend({_doReset:function(){for(var m=this._key,v=m.words,y=[],F=0;F<56;F++){var E=l[F]-1;y[F]=v[E>>>5]>>>31-E%32&1}for(var C=this._subKeys=[],A=0;A<16;A++){for(var b=C[A]=[],B=u[A],F=0;F<24;F++)b[F/6|0]|=y[(c[F]-1+B)%28]<<31-F%6,b[4+(F/6|0)]|=y[28+(c[F+24]-1+B)%28]<<31-F%6;b[0]=b[0]<<1|b[0]>>>31;for(var F=1;F<7;F++)b[F]=b[F]>>>(F-1)*4+3;b[7]=b[7]<<5|b[7]>>>27}for(var w=this._invSubKeys=[],F=0;F<16;F++)w[F]=C[15-F]},encryptBlock:function(m,v){this._doCryptBlock(m,v,this._subKeys)},decryptBlock:function(m,v){this._doCryptBlock(m,v,this._invSubKeys)},_doCryptBlock:function(m,v,y){this._lBlock=m[v],this._rBlock=m[v+1],x.call(this,4,252645135),x.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),x.call(this,1,1431655765);for(var F=0;F<16;F++){for(var E=y[F],C=this._lBlock,A=this._rBlock,b=0,B=0;B<8;B++)b|=p[B][((A^E[B])&d[B])>>>0];this._lBlock=A,this._rBlock=C^b}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,x.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),m[v]=this._lBlock,m[v+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function x(m,v){var y=(this._lBlock>>>m^this._rBlock)&v;this._rBlock^=y,this._lBlock^=y<<m}function h(m,v){var y=(this._rBlock>>>m^this._lBlock)&v;this._lBlock^=y,this._rBlock^=y<<m}n.DES=o._createHelper(g);var f=s.TripleDES=o.extend({_doReset:function(){var m=this._key,v=m.words;if(v.length!==2&&v.length!==4&&v.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=v.slice(0,2),F=v.length<4?v.slice(0,2):v.slice(2,4),E=v.length<6?v.slice(0,2):v.slice(4,6);this._des1=g.createEncryptor(i.create(y)),this._des2=g.createEncryptor(i.create(F)),this._des3=g.createEncryptor(i.create(E))},encryptBlock:function(m,v){this._des1.encryptBlock(m,v),this._des2.decryptBlock(m,v),this._des3.encryptBlock(m,v)},decryptBlock:function(m,v){this._des3.decryptBlock(m,v),this._des2.encryptBlock(m,v),this._des1.decryptBlock(m,v)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=o._createHelper(f)})(),e.TripleDES})})(Ua)),Ua.exports}var Wa={exports:{}},n2=Wa.exports,Lc;function a2(){return Lc||(Lc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),$r(),zr(),_r(),vt())})(n2,function(e){return(function(){var n=e,a=n.lib,i=a.StreamCipher,o=n.algo,s=o.RC4=i.extend({_doReset:function(){for(var u=this._key,p=u.words,d=u.sigBytes,g=this._S=[],x=0;x<256;x++)g[x]=x;for(var x=0,h=0;x<256;x++){var f=x%d,m=p[f>>>2]>>>24-f%4*8&255;h=(h+g[x]+m)%256;var v=g[x];g[x]=g[h],g[h]=v}this._i=this._j=0},_doProcessBlock:function(u,p){u[p]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,p=this._i,d=this._j,g=0,x=0;x<4;x++){p=(p+1)%256,d=(d+u[p])%256;var h=u[p];u[p]=u[d],u[d]=h,g|=u[(u[p]+u[d])%256]<<24-x*8}return this._i=p,this._j=d,g}n.RC4=i._createHelper(s);var c=o.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});n.RC4Drop=i._createHelper(c)})(),e.RC4})})(Wa)),Wa.exports}var Ga={exports:{}},i2=Ga.exports,$c;function o2(){return $c||($c=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),$r(),zr(),_r(),vt())})(i2,function(e){return(function(){var n=e,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],c=[],u=o.Rabbit=i.extend({_doReset:function(){for(var d=this._key.words,g=this.cfg.iv,x=0;x<4;x++)d[x]=(d[x]<<8|d[x]>>>24)&16711935|(d[x]<<24|d[x]>>>8)&4278255360;var h=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],f=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var x=0;x<4;x++)p.call(this);for(var x=0;x<8;x++)f[x]^=h[x+4&7];if(g){var m=g.words,v=m[0],y=m[1],F=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,C=F>>>16|E&4294901760,A=E<<16|F&65535;f[0]^=F,f[1]^=C,f[2]^=E,f[3]^=A,f[4]^=F,f[5]^=C,f[6]^=E,f[7]^=A;for(var x=0;x<4;x++)p.call(this)}},_doProcessBlock:function(d,g){var x=this._X;p.call(this),s[0]=x[0]^x[5]>>>16^x[3]<<16,s[1]=x[2]^x[7]>>>16^x[5]<<16,s[2]=x[4]^x[1]>>>16^x[7]<<16,s[3]=x[6]^x[3]>>>16^x[1]<<16;for(var h=0;h<4;h++)s[h]=(s[h]<<8|s[h]>>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360,d[g+h]^=s[h]},blockSize:128/32,ivSize:64/32});function p(){for(var d=this._X,g=this._C,x=0;x<8;x++)l[x]=g[x];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<l[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<l[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<l[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<l[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<l[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<l[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<l[6]>>>0?1:0)|0,this._b=g[7]>>>0<l[7]>>>0?1:0;for(var x=0;x<8;x++){var h=d[x]+g[x],f=h&65535,m=h>>>16,v=((f*f>>>17)+f*m>>>15)+m*m,y=((h&4294901760)*h|0)+((h&65535)*h|0);c[x]=v^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=i._createHelper(u)})(),e.Rabbit})})(Ga)),Ga.exports}var Ka={exports:{}},s2=Ka.exports,zc;function c2(){return zc||(zc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),$r(),zr(),_r(),vt())})(s2,function(e){return(function(){var n=e,a=n.lib,i=a.StreamCipher,o=n.algo,s=[],l=[],c=[],u=o.RabbitLegacy=i.extend({_doReset:function(){var d=this._key.words,g=this.cfg.iv,x=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],h=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var f=0;f<4;f++)p.call(this);for(var f=0;f<8;f++)h[f]^=x[f+4&7];if(g){var m=g.words,v=m[0],y=m[1],F=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,C=F>>>16|E&4294901760,A=E<<16|F&65535;h[0]^=F,h[1]^=C,h[2]^=E,h[3]^=A,h[4]^=F,h[5]^=C,h[6]^=E,h[7]^=A;for(var f=0;f<4;f++)p.call(this)}},_doProcessBlock:function(d,g){var x=this._X;p.call(this),s[0]=x[0]^x[5]>>>16^x[3]<<16,s[1]=x[2]^x[7]>>>16^x[5]<<16,s[2]=x[4]^x[1]>>>16^x[7]<<16,s[3]=x[6]^x[3]>>>16^x[1]<<16;for(var h=0;h<4;h++)s[h]=(s[h]<<8|s[h]>>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360,d[g+h]^=s[h]},blockSize:128/32,ivSize:64/32});function p(){for(var d=this._X,g=this._C,x=0;x<8;x++)l[x]=g[x];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<l[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<l[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<l[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<l[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<l[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<l[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<l[6]>>>0?1:0)|0,this._b=g[7]>>>0<l[7]>>>0?1:0;for(var x=0;x<8;x++){var h=d[x]+g[x],f=h&65535,m=h>>>16,v=((f*f>>>17)+f*m>>>15)+m*m,y=((h&4294901760)*h|0)+((h&65535)*h|0);c[x]=v^y}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=i._createHelper(u)})(),e.RabbitLegacy})})(Ka)),Ka.exports}var Xa={exports:{}},u2=Xa.exports,jc;function l2(){return jc||(jc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),$r(),zr(),_r(),vt())})(u2,function(e){return(function(){var n=e,a=n.lib,i=a.BlockCipher,o=n.algo;const s=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function p(f,m){let v=m>>24&255,y=m>>16&255,F=m>>8&255,E=m&255,C=f.sbox[0][v]+f.sbox[1][y];return C=C^f.sbox[2][F],C=C+f.sbox[3][E],C}function d(f,m,v){let y=m,F=v,E;for(let C=0;C<s;++C)y=y^f.pbox[C],F=p(f,y)^F,E=y,y=F,F=E;return E=y,y=F,F=E,F=F^f.pbox[s],y=y^f.pbox[s+1],{left:y,right:F}}function g(f,m,v){let y=m,F=v,E;for(let C=s+1;C>1;--C)y=y^f.pbox[C],F=p(f,y)^F,E=y,y=F,F=E;return E=y,y=F,F=E,F=F^f.pbox[1],y=y^f.pbox[0],{left:y,right:F}}function x(f,m,v){for(let A=0;A<4;A++){f.sbox[A]=[];for(let b=0;b<256;b++)f.sbox[A][b]=c[A][b]}let y=0;for(let A=0;A<s+2;A++)f.pbox[A]=l[A]^m[y],y++,y>=v&&(y=0);let F=0,E=0,C=0;for(let A=0;A<s+2;A+=2)C=d(f,F,E),F=C.left,E=C.right,f.pbox[A]=F,f.pbox[A+1]=E;for(let A=0;A<4;A++)for(let b=0;b<256;b+=2)C=d(f,F,E),F=C.left,E=C.right,f.sbox[A][b]=F,f.sbox[A][b+1]=E;return!0}var h=o.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var f=this._keyPriorReset=this._key,m=f.words,v=f.sigBytes/4;x(u,m,v)}},encryptBlock:function(f,m){var v=d(u,f[m],f[m+1]);f[m]=v.left,f[m+1]=v.right},decryptBlock:function(f,m){var v=g(u,f[m],f[m+1]);f[m]=v.left,f[m+1]=v.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=i._createHelper(h)})(),e.Blowfish})})(Xa)),Xa.exports}var f2=pa.exports,Hc;function d2(){return Hc||(Hc=1,(function(r,t){(function(e,n,a){r.exports=n(Be(),vi(),cm(),lm(),$r(),hm(),zr(),Vl(),ds(),mm(),ql(),bm(),Em(),wm(),hs(),_m(),_r(),vt(),Tm(),Rm(),Mm(),Lm(),zm(),Hm(),qm(),Wm(),Km(),Ym(),Zm(),e2(),r2(),a2(),o2(),c2(),l2())})(f2,function(e){return e})})(pa)),pa.exports}var h2=d2();const Ul=Uo(h2);Ul.enc.Utf8.parse("1234567890123456");Ul.enc.Utf8.parse("1234567890123456");const ps={login:{usernamePlaceholder:"\u8F93\u5165\u7528\u6237\u540D\u5B57",passwordPlaceholder:"\u8F93\u5165\u5BC6\u7801",verifyCodePlaceholder:"\u8F93\u5165\u9A8C\u8BC1\u7801",usernameRequired:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u5B57",passwordRequired:"\u8BF7\u8F93\u5165\u5BC6\u7801",verifyCodeRequired:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",submit:"\u767B\u5F55",errorFallback:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"},register:{labels:{username:"\u7528\u6237\u540D",phone:"\u624B\u673A\u53F7",email:"\u90AE\u7BB1",password:"\u5BC6\u7801",confirmPassword:"\u786E\u8BA4\u5BC6\u7801",verifyCode:"\u9A8C\u8BC1\u7801"},placeholders:{username:"\u8F93\u5165\u7528\u6237\u540D\u5B57",phone:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",email:"\u8F93\u5165\u90AE\u7BB1",password:"\u8BF7\u8F93\u5165\u5BC6\u7801",confirmPassword:"\u8BF7\u786E\u8BA4\u65B0\u5BC6\u7801",verifyCode:"\u8F93\u5165\u9A8C\u8BC1\u7801"},required:{username:"\u8BF7\u8F93\u5165\u540D\u79F0",phone:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",email:"\u8BF7\u8F93\u5165\u90AE\u7BB1",password:"\u8BF7\u8F93\u5165\u5BC6\u7801",confirmPassword:"\u8BF7\u786E\u8BA4\u65B0\u5BC6\u7801",verifyCode:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},cancel:"\u53D6\u6D88",submit:"\u6CE8\u518C",passwordConfirmMismatch:"\u4E24\u6B21\u5BC6\u7801\u4E0D\u4E00\u81F4!"}},p2={login:{usernamePlaceholder:"Enter username",passwordPlaceholder:"Enter password",verifyCodePlaceholder:"Enter verification code",usernameRequired:"Please enter username",passwordRequired:"Please enter password",verifyCodeRequired:"Please enter verification code",submit:"Sign in",errorFallback:"Login failed, please try again later."},register:{labels:{username:"Username",phone:"Phone",email:"Email",password:"Password",confirmPassword:"Confirm password",verifyCode:"Verification code"},placeholders:{username:"Enter username",phone:"Enter phone number",email:"Enter email",password:"Enter password",confirmPassword:"Confirm password",verifyCode:"Enter verification code"},required:{username:"Please enter username",phone:"Please enter phone number",email:"Please enter email",password:"Please enter password",confirmPassword:"Please confirm password",verifyCode:"Please enter verification code"},cancel:"Cancel",submit:"Register",passwordConfirmMismatch:"Passwords do not match."}},v2={login:{usernamePlaceholder:"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B",passwordPlaceholder:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B",verifyCodePlaceholder:"\u8A8D\u8A3C\u30B3\u30FC\u30C9\u3092\u5165\u529B",usernameRequired:"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",passwordRequired:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",verifyCodeRequired:"\u8A8D\u8A3C\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",submit:"\u30ED\u30B0\u30A4\u30F3",errorFallback:"\u30ED\u30B0\u30A4\u30F3\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},register:{labels:{username:"\u30E6\u30FC\u30B6\u30FC\u540D",phone:"\u96FB\u8A71\u756A\u53F7",email:"\u30E1\u30FC\u30EB",password:"\u30D1\u30B9\u30EF\u30FC\u30C9",confirmPassword:"\u30D1\u30B9\u30EF\u30FC\u30C9\u78BA\u8A8D",verifyCode:"\u8A8D\u8A3C\u30B3\u30FC\u30C9"},placeholders:{username:"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B",phone:"\u96FB\u8A71\u756A\u53F7\u3092\u5165\u529B",email:"\u30E1\u30FC\u30EB\u3092\u5165\u529B",password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B",confirmPassword:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u78BA\u8A8D",verifyCode:"\u8A8D\u8A3C\u30B3\u30FC\u30C9\u3092\u5165\u529B"},required:{username:"\u30E6\u30FC\u30B6\u30FC\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",phone:"\u96FB\u8A71\u756A\u53F7\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",email:"\u30E1\u30FC\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",password:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",confirmPassword:"\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",verifyCode:"\u8A8D\u8A3C\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"},cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",submit:"\u767B\u9332",passwordConfirmMismatch:"\u30D1\u30B9\u30EF\u30FC\u30C9\u304C\u4E00\u81F4\u3057\u307E\u305B\u3093\u3002"}},x2={zh:ps,en:p2,ja:v2};function g2(r,t){const e=x2[r]??ps;return t?{...e,...t}:e}const Wl=xe.createContext({locale:"zh",messages:ps});function U2(){return xe.useContext(Wl)}function W2({locale:r,messages:t,children:e}){const n=xe.useMemo(()=>({locale:r,messages:g2(r,t)}),[r,t]);return xe.createElement(Wl.Provider,{value:n},e)}export{Hl as D,W2 as L,Wl as a,g2 as g,U2 as u,q2 as w};
|