@gientech/modual 2.1.39 → 2.2.0
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/README.md +761 -761
- package/assets/{GientechStreamReader-BYPlltUh.js → GientechStreamReader-C5jijqVw.js} +57 -57
- package/assets/LeftOutlined-9XTSYGbi.js +1 -0
- package/assets/database.svg +11 -11
- package/assets/database_add.svg +53 -53
- package/assets/database_connect.svg +66 -66
- package/assets/database_upload.svg +29 -29
- package/assets/databse.svg +6 -6
- package/assets/defaultWeLogo.svg +14 -14
- package/assets/graph.svg +4 -4
- package/assets/iconAi.svg +9 -9
- package/assets/{index-TcKs3T8h.js → index-B64Nj5uU.js} +2 -2
- package/assets/{index-B-AFa3n1.js → index-B872BsjL.js} +1 -1
- package/assets/{index-CS-Rgw_E.js → index-BIrUv1JE.js} +1 -1
- package/assets/index-Bk-pRt65.js +27 -0
- package/assets/{index-8h59dJlj.js → index-BvpN2hYX.js} +1 -1
- package/assets/{index-BdNcL3V6.js → index-BxR_BLxA.js} +1 -1
- package/assets/index-CkVpaVb6.js +1 -0
- package/assets/{index-DoUk2Ei_.js → index-D3Z0MZbL.js} +4 -4
- package/assets/{index-C6WKbL3A.js → index-DaM9Fbys.js} +3 -3
- package/assets/{index-CVis9Agw.js → index-SbYeytsI.js} +1 -1
- package/assets/index-hDlFWjNU.js +1969 -0
- package/assets/{index-ON3wgCdz.js → index-sWqCalkt.js} +144 -192
- package/assets/knowledge.svg +4 -4
- package/assets/mysql.svg +14 -14
- package/assets/{plus-CnVxGdOo.js → plus-DDbDO7lA.js} +1 -1
- package/assets/search-BoBdGjgo.js +6 -0
- package/assets/sensitive.svg +5 -5
- package/assets/style-DwfpZJI9.js +196 -0
- package/assets/style4.css +1 -1
- package/assets/{triangle-alert-BycMPaz2.js → triangle-alert-DF53kXdm.js} +1 -1
- package/assets/{x-CmbLQ9dc.js → x-DfdS1_QC.js} +1 -1
- package/assistantConfig.js +152 -1
- package/chat.d.ts +11 -1
- package/chat.js +1 -196
- package/chatCompare.js +1 -1
- package/database.js +2 -2
- package/databaseId.js +1 -1
- package/databaseTable.js +2 -2
- package/index.d.ts +301 -0
- package/index.js +1 -1
- package/modelManage.d.ts +124 -0
- package/modelManage.js +1 -1
- package/package.json +6 -6
- package/sensitive.d.ts +134 -2
- package/sensitive.js +205 -1
- package/streamFilesReader.js +1 -1
- package/worker/pdf.worker.min.js +21 -21
- package/assets/index-BN3yu4iN.js +0 -1
- package/assets/index-CMlRkGxa.js +0 -1995
- package/assets/index-Cbz7IFQk.js +0 -157
package/chat.js
CHANGED
|
@@ -1,196 +1 @@
|
|
|
1
|
-
import
|
|
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 ya=X0("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 Ca=X0("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 Fa=X0("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 Ea=X0("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 Jn=X0("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 Ba=X0("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"}]]),Aa=n=>x0.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},x0.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"}),x0.createElement("path",{d:"M1.33334 8H14.6667",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"}),x0.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"}),x0.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"}),x0.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"})),ba=n=>x0.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},x0.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"}),x0.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"}),x0.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"}),x0.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"})),qr={actions:[{name:"upload",icon:S(ua,{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:S(Aa,{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:S(ba,{width:16,height:16})}]};function Da(n,s){n.prototype=Object.create(s.prototype),n.prototype.constructor=n,Ii(n,s)}var Hr=Number.isNaN||function(s){return typeof s=="number"&&s!==s};function _a(n,s){return!!(n===s||Hr(n)&&Hr(s))}function wa(n,s){if(n.length!==s.length)return!1;for(var t=0;t<n.length;t++)if(!_a(n[t],s[t]))return!1;return!0}function ar(n,s){s===void 0&&(s=wa);var t,e=[],f,c=!1;function p(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];return c&&t===this&&s(o,e)||(f=n.apply(this,o),c=!0,t=this,e=o),f}return p}var Sa=typeof performance=="object"&&typeof performance.now=="function",$r=Sa?function(){return performance.now()}:function(){return Date.now()};function Wr(n){cancelAnimationFrame(n.id)}function ka(n,s){var t=$r();function e(){$r()-t>=s?n.call(null):f.id=requestAnimationFrame(e)}var f={id:requestAnimationFrame(e)};return f}var or=-1;function jr(n){if(n===void 0&&(n=!1),or===-1||n){var s=document.createElement("div"),t=s.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(s),or=s.offsetWidth-s.clientWidth,document.body.removeChild(s)}return or}var $0=null;function Vr(n){if(n===void 0&&(n=!1),$0===null||n){var s=document.createElement("div"),t=s.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var e=document.createElement("div"),f=e.style;return f.width="100px",f.height="100px",s.appendChild(e),document.body.appendChild(s),s.scrollLeft>0?$0="positive-descending":(s.scrollLeft=1,s.scrollLeft===0?$0="negative":$0="positive-ascending"),document.body.removeChild(s),$0}return $0}var Ia=150,Na=function(s,t){return s};function Ra(n){var s,t=n.getItemOffset,e=n.getEstimatedTotalSize,f=n.getItemSize,c=n.getOffsetForIndexAndAlignment,p=n.getStartIndexForOffset,o=n.getStopIndexForStartIndex,u=n.initInstanceProps,r=n.shouldResetStyleCacheOnItemSizeChange,l=n.validateProps;return s=(function(E){Da(x,E);function x(h){var a;return a=E.call(this,h)||this,a._instanceProps=u(a.props,Pr(a)),a._outerRef=void 0,a._resetIsScrollingTimeoutId=null,a.state={instance:Pr(a),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof a.props.initialScrollOffset=="number"?a.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},a._callOnItemsRendered=void 0,a._callOnItemsRendered=ar(function(i,m,d,g){return a.props.onItemsRendered({overscanStartIndex:i,overscanStopIndex:m,visibleStartIndex:d,visibleStopIndex:g})}),a._callOnScroll=void 0,a._callOnScroll=ar(function(i,m,d){return a.props.onScroll({scrollDirection:i,scrollOffset:m,scrollUpdateWasRequested:d})}),a._getItemStyle=void 0,a._getItemStyle=function(i){var m=a.props,d=m.direction,g=m.itemSize,C=m.layout,D=a._getItemStyleCache(r&&g,r&&C,r&&d),y;if(D.hasOwnProperty(i))y=D[i];else{var b=t(a.props,i,a._instanceProps),F=f(a.props,i,a._instanceProps),T=d==="horizontal"||C==="horizontal",_=d==="rtl",w=T?b:0;D[i]=y={position:"absolute",left:_?void 0:w,right:_?w:void 0,top:T?0:b,height:T?"100%":F,width:T?F:"100%"}}return y},a._getItemStyleCache=void 0,a._getItemStyleCache=ar(function(i,m,d){return{}}),a._onScrollHorizontal=function(i){var m=i.currentTarget,d=m.clientWidth,g=m.scrollLeft,C=m.scrollWidth;a.setState(function(D){if(D.scrollOffset===g)return null;var y=a.props.direction,b=g;if(y==="rtl")switch(Vr()){case"negative":b=-g;break;case"positive-descending":b=C-d-g;break}return b=Math.max(0,Math.min(b,C-d)),{isScrolling:!0,scrollDirection:D.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(i){var m=i.currentTarget,d=m.clientHeight,g=m.scrollHeight,C=m.scrollTop;a.setState(function(D){if(D.scrollOffset===C)return null;var y=Math.max(0,Math.min(C,g-d));return{isScrolling:!0,scrollDirection:D.scrollOffset<y?"forward":"backward",scrollOffset:y,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(i){var m=a.props.outerRef;a._outerRef=i,typeof m=="function"?m(i):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=i)},a._resetIsScrollingDebounced=function(){a._resetIsScrollingTimeoutId!==null&&Wr(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=ka(a._resetIsScrolling,Ia)},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},function(){a._getItemStyleCache(-1,null)})},a}x.getDerivedStateFromProps=function(a,i){return Ta(a,i),l(a),null};var v=x.prototype;return v.scrollTo=function(a){a=Math.max(0,a),this.setState(function(i){return i.scrollOffset===a?null:{scrollDirection:i.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(a,i){i===void 0&&(i="auto");var m=this.props,d=m.itemCount,g=m.layout,C=this.state.scrollOffset;a=Math.max(0,Math.min(a,d-1));var D=0;if(this._outerRef){var y=this._outerRef;g==="vertical"?D=y.scrollWidth>y.clientWidth?jr():0:D=y.scrollHeight>y.clientHeight?jr():0}this.scrollTo(c(this.props,a,i,C,this._instanceProps,D))},v.componentDidMount=function(){var a=this.props,i=a.direction,m=a.initialScrollOffset,d=a.layout;if(typeof m=="number"&&this._outerRef!=null){var g=this._outerRef;i==="horizontal"||d==="horizontal"?g.scrollLeft=m:g.scrollTop=m}this._callPropsCallbacks()},v.componentDidUpdate=function(){var a=this.props,i=a.direction,m=a.layout,d=this.state,g=d.scrollOffset,C=d.scrollUpdateWasRequested;if(C&&this._outerRef!=null){var D=this._outerRef;if(i==="horizontal"||m==="horizontal")if(i==="rtl")switch(Vr()){case"negative":D.scrollLeft=-g;break;case"positive-ascending":D.scrollLeft=g;break;default:var y=D.clientWidth,b=D.scrollWidth;D.scrollLeft=b-y-g;break}else D.scrollLeft=g;else D.scrollTop=g}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wr(this._resetIsScrollingTimeoutId)},v.render=function(){var a=this.props,i=a.children,m=a.className,d=a.direction,g=a.height,C=a.innerRef,D=a.innerElementType,y=a.innerTagName,b=a.itemCount,F=a.itemData,T=a.itemKey,_=T===void 0?Na:T,w=a.layout,P=a.outerElementType,R=a.outerTagName,M=a.style,H=a.useIsScrolling,K=a.width,W=this.state.isScrolling,q=d==="horizontal"||w==="horizontal",X=q?this._onScrollHorizontal:this._onScrollVertical,Q=this._getRangeToRender(),k=Q[0],z=Q[1],N=[];if(b>0)for(var I=k;I<=z;I++)N.push(tr(i,{data:F,key:_(I,F),index:I,isScrolling:H?W:void 0,style:this._getItemStyle(I)}));var $=e(this.props,this._instanceProps);return tr(P||R||"div",{className:m,onScroll:X,ref:this._outerRefSetter,style:Ni({position:"relative",height:g,width:K,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:d},M)},tr(D||y||"div",{children:N,ref:C,style:{height:q?"100%":$,pointerEvents:W?"none":void 0,width:q?$:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var i=this._getRangeToRender(),m=i[0],d=i[1],g=i[2],C=i[3];this._callOnItemsRendered(m,d,g,C)}}if(typeof this.props.onScroll=="function"){var D=this.state,y=D.scrollDirection,b=D.scrollOffset,F=D.scrollUpdateWasRequested;this._callOnScroll(y,b,F)}},v._getRangeToRender=function(){var a=this.props,i=a.itemCount,m=a.overscanCount,d=this.state,g=d.isScrolling,C=d.scrollDirection,D=d.scrollOffset;if(i===0)return[0,0,0,0];var y=p(this.props,D,this._instanceProps),b=o(this.props,y,D,this._instanceProps),F=!g||C==="backward"?Math.max(1,m):1,T=!g||C==="forward"?Math.max(1,m):1;return[Math.max(0,y-F),Math.max(0,Math.min(i-1,b+T)),y,b]},x})(_i),s.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},s}var Ta=function(s,t){s.children,s.direction,s.height,s.layout,s.innerTagName,s.outerTagName,s.width,t.instance},za=50,V0=function(s,t,e){var f=s,c=f.itemSize,p=e.itemMetadataMap,o=e.lastMeasuredIndex;if(t>o){var u=0;if(o>=0){var r=p[o];u=r.offset+r.size}for(var l=o+1;l<=t;l++){var E=c(l);p[l]={offset:u,size:E},u+=E}e.lastMeasuredIndex=t}return p[t]},Pa=function(s,t,e){var f=t.itemMetadataMap,c=t.lastMeasuredIndex,p=c>0?f[c].offset:0;return p>=e?ei(s,t,c,0,e):La(s,t,Math.max(0,c),e)},ei=function(s,t,e,f,c){for(;f<=e;){var p=f+Math.floor((e-f)/2),o=V0(s,p,t).offset;if(o===c)return p;o<c?f=p+1:o>c&&(e=p-1)}return f>0?f-1:0},La=function(s,t,e,f){for(var c=s.itemCount,p=1;e<c&&V0(s,e,t).offset<f;)e+=p,p*=2;return ei(s,t,Math.min(e,c-1),Math.floor(e/2),f)},Kr=function(s,t){var e=s.itemCount,f=t.itemMetadataMap,c=t.estimatedItemSize,p=t.lastMeasuredIndex,o=0;if(p>=e&&(p=e-1),p>=0){var u=f[p];o=u.offset+u.size}var r=e-p-1,l=r*c;return o+l},Oa=Ra({getItemOffset:function(s,t,e){return V0(s,t,e).offset},getItemSize:function(s,t,e){return e.itemMetadataMap[t].size},getEstimatedTotalSize:Kr,getOffsetForIndexAndAlignment:function(s,t,e,f,c,p){var o=s.direction,u=s.height,r=s.layout,l=s.width,E=o==="horizontal"||r==="horizontal",x=E?l:u,v=V0(s,t,c),h=Kr(s,c),a=Math.max(0,Math.min(h-x,v.offset)),i=Math.max(0,v.offset-x+v.size+p);switch(e==="smart"&&(f>=i-x&&f<=a+x?e="auto":e="center"),e){case"start":return a;case"end":return i;case"center":return Math.round(i+(a-i)/2);case"auto":default:return f>=i&&f<=a?f:f<i?i:a}},getStartIndexForOffset:function(s,t,e){return Pa(s,e,t)},getStopIndexForStartIndex:function(s,t,e,f){for(var c=s.direction,p=s.height,o=s.itemCount,u=s.layout,r=s.width,l=c==="horizontal"||u==="horizontal",E=l?r:p,x=V0(s,t,f),v=e+E,h=x.offset+x.size,a=t;a<o-1&&h<v;)a++,h+=V0(s,a,f).size;return a},initInstanceProps:function(s,t){var e=s,f=e.estimatedItemSize,c={itemMetadataMap:{},estimatedItemSize:f||za,lastMeasuredIndex:-1};return t.resetAfterIndex=function(p,o){o===void 0&&(o=!0),c.lastMeasuredIndex=Math.min(c.lastMeasuredIndex,p-1),t._getItemStyleCache(-1),o&&t.forceUpdate()},c},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(s){s.itemSize}});function Ma({isActive:n,isNew:s,isDisabled:t,data:e,eventsEmit:f,styles:c={},assistantList:p=[]}){const[o,u]=se(!1),r=(c==null?void 0:c.colors)||{},l=be(()=>{const i=e==null?void 0:e.configId;if(!i||!p||p.length===0)return"\u672A\u9009\u62E9\u52A9\u624B";const m=p.find(d=>String(d==null?void 0:d.id)===String(i));if(!m)return"\u672A\u9009\u62E9\u52A9\u624B";if(m!=null&&m.name)return m.name;try{const d=typeof m.configJson=="string"?JSON.parse(m.configJson):m.configJson;return(d==null?void 0:d.config_name)||"\u672A\u9009\u62E9\u52A9\u624B"}catch{return"\u672A\u9009\u62E9\u52A9\u624B"}},[p,e==null?void 0:e.configId]),E=[{key:"rename",icon:S(Ea,{size:12}),label:"\u91CD\u547D\u540D",onClick:i=>{i.domEvent.stopPropagation(),f&&f("conversations:rename_icon_clicked",e)}},{key:"delete",icon:S(Ba,{size:12}),label:"\u5220\u9664",danger:!0,onClick:i=>{i.domEvent.stopPropagation(),f&&f("conversations:delete_icon_clicked",e)}}],x=n?r.activeItemBg||"#f0f4ff":o?r.itemHoverBg||"#f5f7fa":r.itemBg||"transparent",v=n?r.activeItemText||r.primary||"#0122ff":r.itemText||"#333",h=n?r.activeItemBorder||r.primary||"#0122ff":"transparent",a=i=>{const m=Ur(),d=Ur(i);return m.isSame(d,"day")?d.format("HH:mm"):d.format("MM-DD HH:mm")};return J("div",{className:"flex relative items-center justify-between mb-2 px-4 py-3 rounded-md transition-colors cursor-pointer select-none",onClick:()=>!t&&f&&f("conversation:item_click",e),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:{minHeight:48,background:x,color:v,border:`1px solid ${h}`,...c.item,opacity:t?.5:1},children:[J("div",{className:"flex flex-col gap-y-2 flex-1 min-w-0",children:[S("span",{className:"truncate text-sm max-w-[160px] font-medium",title:e.label||"\u672A\u547D\u540D\u4F1A\u8BDD",style:{color:v,fontSize:"14px",lineHeight:"1.4"},children:e.label||"\u672A\u547D\u540D\u4F1A\u8BDD"}),J("div",{className:"flex items-center justify-between gap-2",children:[S("span",{className:"text-xs truncate flex-1",style:{color:n?r.activeItemTextSecondary||"#666":r.itemTextSecondary||"#666",fontSize:"12px",lineHeight:"1.3"},children:l}),e.gmtModified&&S("span",{className:"text-xs flex-shrink-0",style:{color:n?r.activeItemTextSecondary||"#999":r.itemTextSecondary||"#999",fontSize:"12px",lineHeight:"1.3"},children:a(e.gmtModified)})]})]}),!t&&o&&!s&&S("div",{className:"absolute top-2 right-3",children:S(sa,{menu:{items:E},trigger:["click"],placement:"bottomRight",children:S(ya,{size:16,className:"text-gray-600 hover:text-gray-800",style:{cursor:"pointer",color:n?r.activeItemTextSecondary||"#999":r.itemTextSecondary||"#999"},onClick:i=>i.stopPropagation()})})})]})}function Ua(n,s=[{label:"\u5F53\u5929",dayPeriod:1}]){const t=new Date,e={other:[]};return n.forEach(f=>{const c=new Date(f.gmtModified),p=Math.floor((+t-+c)/(1e3*60*60*24));let o=!1;for(const u of s)if(p<=u.dayPeriod){e[u.label]||(e[u.label]=[]),e[u.label].push(f),o=!0;break}o||e.other.push(f)}),e}/*! @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 pr(n){if(n.constructor!==Array)throw new TypeError("Expected array.");if(n.length===16)return n;if(n.length===6){var s=Y0();return s[0]=n[0],s[1]=n[1],s[4]=n[2],s[5]=n[3],s[12]=n[4],s[13]=n[5],s}throw new RangeError("Expected array with either 6 or 16 values.")}function Y0(){for(var n=[],s=0;s<16;s++)s%5==0?n.push(1):n.push(0);return n}function qa(n,s){for(var t=pr(n),e=pr(s),f=[],c=0;c<4;c++)for(var p=[t[c],t[c+4],t[c+8],t[c+12]],o=0;o<4;o++){var u=o*4,r=[e[u],e[u+1],e[u+2],e[u+3]],l=p[0]*r[0]+p[1]*r[1]+p[2]*r[2]+p[3]*r[3];f[c+u]=l}return f}function Ha(n){if(typeof n=="string"){var s=n.match(/matrix(3d)?\(([^)]+)\)/);if(s){var t=s[2].split(", ").map(parseFloat);return pr(t)}}return Y0()}function $a(n){var s=Y0();return s[0]=n,s}function Wa(n){var s=Y0();return s[5]=n,s}function ja(n){var s=Y0();return s[12]=n,s}function Va(n){var s=Y0();return s[13]=n,s}var xt=function(n){return typeof n=="number"},ti=function(n){return typeof n=="function"},ri=function(n){return Object.prototype.toString.call(n)==="[object Object]"},K0=function(n){return Array.prototype.slice.apply(n)},ni=function(n){var s=n.reduce(function(t,e){return t[e]=(t[e]||0)+1,t},{});return Object.keys(s).filter(function(t){return s[t]>1})};function D0(n){return[].slice.call(arguments,1).forEach(function(s){if(s)for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(n[t]=s[t])}),n}var hr,vr=function(n,s,t){return n+(s-n)*t},ii={__proto__:null,isNumber:xt,isFunction:ti,isObject:ri,toArray:K0,getDuplicateValsAsStrings:ni,assign:D0,tweenProp:vr},Fr="data-flip-id",Er="data-inverse-flip-id",Br="data-portal-key",Ka="data-exit-container",ut={__proto__:null,DATA_FLIP_ID:Fr,DATA_INVERSE_FLIP_ID:Er,DATA_FLIP_CONFIG:"data-flip-config",DATA_PORTAL_KEY:Br},gr={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}},Gr=function(n){return ri(n)?n:Object.keys(gr).indexOf(n)>-1?gr[n]:{}};typeof window<"u"&&(hr=window.requestAnimationFrame);var Ga=hr=hr||function(n){window.setTimeout(n,1e3/60)},Xa=Date.now(),Ya=typeof performance=="object"&&typeof performance.now=="function"?function(){return performance.now()}:function(){return Date.now()-Xa};function ai(n,s){var t=n.indexOf(s);t!==-1&&n.splice(t,1)}var Qa=(function(){function n(){}return n.prototype.run=function(){var s=this;Ga(function(){s.springSystem.loop(Ya())})},n})(),sr=function(){this.position=0,this.velocity=0},Za=0,a0=.001,Ja=(function(){function n(t){this._id="s"+Za++,this._springSystem=t,this.listeners=[],this._startValue=0,this._currentState=new sr,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new sr,this._restSpeedThreshold=.001,this._tempState=new sr,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var s=n.prototype;return s.getId=function(){return this._id},s.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},s.setSpringConfig=function(t){return this._springConfig=t,this},s.getCurrentValue=function(){return this._currentState.position},s.getDisplacementDistanceForState=function(t){return Math.abs(this._endValue-t.position)},s.setEndValue=function(t){if(t===this._endValue)return this;if(this.prevEndValue=t,this._endValue===t&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=t,this._springSystem.activateSpring(this.getId());for(var e=0,f=this.listeners.length;e<f;e++){var c=this.listeners[e].onSpringEndStateChange;c&&c(this)}return this},s.setVelocity=function(t){return t===this._currentState.velocity||(this._currentState.velocity=t,this._springSystem.activateSpring(this.getId())),this},s.setCurrentValue=function(t){this._startValue=t,this._currentState.position=t;for(var e=0,f=this.listeners.length;e<f;e++){var c=this.listeners[e];c.onSpringUpdate&&c.onSpringUpdate(this)}return this},s.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},s.setOvershootClampingEnabled=function(t){return this._overshootClampingEnabled=t,this},s.isOvershooting=function(){var t=this._startValue,e=this._endValue;return this._springConfig.tension>0&&(t<e&&this.getCurrentValue()>e||t>e&&this.getCurrentValue()<e)},s.advance=function(t,e){var f=this.isAtRest();if(!f||!this._wasAtRest){var c=e;e>.064&&(c=.064),this._timeAccumulator+=c;for(var p,o,u,r,l,E,x=this._springConfig.tension,v=this._springConfig.friction,h=this._currentState.position,a=this._currentState.velocity,i=this._tempState.position,m=this._tempState.velocity;this._timeAccumulator>=a0;)this._timeAccumulator-=a0,this._timeAccumulator<a0&&(this._previousState.position=h,this._previousState.velocity=a),o=x*(this._endValue-i)-v*a,r=x*(this._endValue-(i=h+(p=a)*a0*.5))-v*(m=a+o*a0*.5),E=x*(this._endValue-(i=h+(u=m)*a0*.5))-v*(m=a+r*a0*.5),i=h+(l=m)*a0,h+=1/6*(p+2*(u+l)+(m=a+E*a0))*a0,a+=1/6*(o+2*(r+E)+(x*(this._endValue-i)-v*m))*a0;this._tempState.position=i,this._tempState.velocity=m,this._currentState.position=h,this._currentState.velocity=a,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/a0),(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),f=!0);var d=!1;this._wasAtRest&&(this._wasAtRest=!1,d=!0);var g=!1;f&&(this._wasAtRest=!0,g=!0),this.notifyPositionUpdated(d,g)}},s.notifyPositionUpdated=function(t,e){var f=this;this.listeners.filter(Boolean).forEach(function(c){t&&c.onSpringActivate&&!f._onActivateCalled&&(c.onSpringActivate(f),f._onActivateCalled=!0),c.onSpringUpdate&&c.onSpringUpdate(f),e&&c.onSpringAtRest&&c.onSpringAtRest(f)})},s.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},s.wasAtRest=function(){return this._wasAtRest},s.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||this._springConfig.tension===0)},s._interpolate=function(t){this._currentState.position=this._currentState.position*t+this._previousState.position*(1-t),this._currentState.velocity=this._currentState.velocity*t+this._previousState.velocity*(1-t)},s.addListener=function(t){return this.listeners.push(t),this},s.addOneTimeListener=function(t){var e=this;return Object.keys(t).forEach(function(f){var c;t[f]=(c=t[f],function(){c.apply(void 0,[].slice.call(arguments)),e.removeListener(t)})}),this.listeners.push(t),this},s.removeListener=function(t){return ai(this.listeners,t),this},n})(),oi=(function(){function n(t){this.looper=t||new Qa,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var s=n.prototype;return s.createSpring=function(t,e){return this.createSpringWithConfig({tension:t,friction:e})},s.createSpringWithConfig=function(t){var e=new Ja(this);return this.registerSpring(e),e.setSpringConfig(t),e},s.getIsIdle=function(){return this._isIdle},s.registerSpring=function(t){this._springRegistry[t.getId()]=t},s.deregisterSpring=function(t){ai(this._activeSprings,t),delete this._springRegistry[t.getId()]},s.advance=function(t,e){for(var f=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach(function(p){p.systemShouldAdvance()?p.advance(t/1e3,e/1e3):f._idleSpringIndices.push(f._activeSprings.indexOf(p))});this._idleSpringIndices.length>0;){var c=this._idleSpringIndices.pop();c>=0&&this._activeSprings.splice(c,1)}},s.loop=function(t){var e;this._lastTimeMillis===-1&&(this._lastTimeMillis=t-1);var f=t-this._lastTimeMillis;this._lastTimeMillis=t;var c=0,p=this.listeners.length;for(c=0;c<p;c++)(e=this.listeners[c]).onBeforeIntegrate&&e.onBeforeIntegrate(this);for(this.advance(t,f),this._activeSprings.length===0&&(this._isIdle=!0,this._lastTimeMillis=-1),c=0;c<p;c++)(e=this.listeners[c]).onAfterIntegrate&&e.onAfterIntegrate(this);this._isIdle||this.looper.run()},s.activateSpring=function(t){var e=this._springRegistry[t];this._activeSprings.indexOf(e)===-1&&this._activeSprings.push(e),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},n})(),eo=new oi,si=function(n){var s=n.springConfig,t=s.overshootClamping,e=n.getOnUpdateFunc,f=n.onAnimationEnd,c=n.onSpringActivate,p=eo.createSpring(s.stiffness,s.damping);p.setOvershootClampingEnabled(!!t);var o={onSpringActivate:c,onSpringAtRest:function(){p.destroy(),f()},onSpringUpdate:e({spring:p,onAnimationEnd:f})};return p.addListener(o),p},Xr=function(n){var s=si(n);return s.setEndValue(1),s},Yr=function(n,s){if(s===void 0&&(s={}),n&&n.length){s.reverse&&n.reverse();var t,e=typeof(t=s.speed)!="number"?1.1:1+Math.min(Math.max(5*t,0),5),f=1/Math.max(Math.min(n.length,100),10),c=n.map(function(p,o){var u=p.getOnUpdateFunc;return p.getOnUpdateFunc=function(r){var l=u(r);return function(E){var x=E.getCurrentValue();(x=x<.01?0:x>.99?1:x)>=f&&c[o+1]&&c[o+1](Math.max(Math.min(x*e,1),0)),l(E)}},p}).map(function(p){var o=si(p);if(o)return o.setEndValue.bind(o)}).filter(Boolean);c[0]&&c[0](1)}},Qr=function(n){return[0,1,4,5,12,13].map(function(s){return n[s]})},Zr=function(n){return n.top<window.innerHeight&&n.bottom>0&&n.left<window.innerWidth&&n.right>0};function Jr(n){return JSON.parse(n.dataset.flipConfig||"{}")}var ci=function(n,s){var t;return D0(n,((t={})[s[0]]=s[1],t))},li=function(n,s){return K0(s?document.querySelectorAll("["+Br+'="'+s+'"]'):n.querySelectorAll("["+Fr+"]"))},ui=function(n){return n.map(function(s){return[s,s.getBoundingClientRect()]})},to=function(n){var s=n.cachedOrderedFlipIds,t=s===void 0?[]:s,e=n.inProgressAnimations,f=e===void 0?{}:e,c=n.flippedElementPositionsBeforeUpdate,p=c===void 0?{}:c,o=n.flipCallbacks,u=o===void 0?{}:o,r=n.containerEl,l=n.applyTransformOrigin,E=n.spring,x=n.debug,v=n.portalKey,h=n.staggerConfig,a=h===void 0?{}:h,i=n.decisionData,m=i===void 0?{}:i,d=n.handleEnterUpdateDelete,g=n.onComplete,C=n.onStart;if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var D,y=ui(li((D={element:r,portalKey:v}).element,D.portalKey)).map(function(q){var X=q[0],Q=q[1],k=window.getComputedStyle(X);return[X.dataset.flipId,{element:X,rect:Q,opacity:parseFloat(k.opacity),transform:k.transform}]}).reduce(ci,{}),b=(function(q){var X=q.containerEl,Q=q.portalKey;return Q?(function(k){return function(z){return K0(document.querySelectorAll("["+Br+'="'+k+'"]'+z))}})(Q):X?(function(k){var z=Math.random().toFixed(5);return k.dataset.flipperId=z,function(N){return K0(k.querySelectorAll('[data-flipper-id="'+z+'"] '+N))}})(X):function(){return[]}})({containerEl:r,portalKey:v}),F=(function(q){return function(X){return q("["+Fr+'="'+X+'"]')[0]}})(b),T=function(q){return p[q]&&y[q]},_=Object.keys(p).concat(Object.keys(y)).filter(function(q){return!T(q)}),w={flipCallbacks:u,getElement:F,flippedElementPositionsBeforeUpdate:p,flippedElementPositionsAfterUpdate:y,inProgressAnimations:f,decisionData:m},P=(function(q){var X,Q=q.unflippedIds,k=q.flipCallbacks,z=q.getElement,N=q.flippedElementPositionsBeforeUpdate,I=q.flippedElementPositionsAfterUpdate,$=q.inProgressAnimations,U=q.decisionData,Y=Q.filter(function(ce){return I[ce]}).filter(function(ce){return k[ce]&&k[ce].onAppear}),j=Q.filter(function(ce){return N[ce]&&k[ce]&&k[ce].onExit}),ie=new Promise(function(ce){X=ce}),ve=[],De=0,Oe=j.map(function(ce,Fe){var We=N[ce].domDataForExitAnimations,ke=We.element,Ge=We.parent,Xe=We.childPosition,Re=Xe.top,Ye=Xe.left,_e=Xe.width,fe=Xe.height;getComputedStyle(Ge).position==="static"&&(Ge.style.position="relative"),ke.style.transform="matrix(1, 0, 0, 1, 0, 0)",ke.style.position="absolute",ke.style.top=Re+"px",ke.style.left=Ye+"px",ke.style.height=fe+"px",ke.style.width=_e+"px";var qe=ve.filter(function(Ke){return Ke[0]===Ge})[0];qe||(qe=[Ge,document.createDocumentFragment()],ve.push(qe)),qe[1].appendChild(ke),De+=1;var Ve=function(){try{Ge.removeChild(ke)}catch{}finally{(De-=1)==0&&X()}};return $[ce]={stop:Ve},function(){return k[ce].onExit(ke,Fe,Ve,U)}});return ve.forEach(function(ce){ce[0].appendChild(ce[1])}),Oe.length||X(),{hideEnteringElements:function(){Y.forEach(function(ce){var Fe=z(ce);Fe&&(Fe.style.opacity="0")})},animateEnteringElements:function(){Y.forEach(function(ce,Fe){var We=z(ce);We&&k[ce].onAppear(We,Fe,U)})},animateExitingElements:function(){return Oe.forEach(function(ce){return ce()}),ie}}})(D0({},w,{unflippedIds:_})),R=P.hideEnteringElements,M=P.animateEnteringElements,H=P.animateExitingElements,K=D0({},w,{containerEl:r,flippedIds:t.filter(T),applyTransformOrigin:l,spring:E,debug:x,staggerConfig:a,scopedSelector:b,onComplete:g});C&&C(r,m);var W=(function(q){var X,Q=q.flippedIds,k=q.flipCallbacks,z=q.inProgressAnimations,N=q.flippedElementPositionsBeforeUpdate,I=q.flippedElementPositionsAfterUpdate,$=q.applyTransformOrigin,U=q.spring,Y=q.getElement,j=q.debug,ie=q.staggerConfig,ve=ie===void 0?{}:ie,De=q.decisionData,Oe=De===void 0?{}:De,ce=q.onComplete,Fe=q.containerEl,We=new Promise(function(V){X=V});if(ce&&We.then(function(){return ce(Fe,Oe)}),!Q.length)return function(){return X([]),We};var ke=[],Ge=Y(Q[0]),Xe=Ge?Ge.ownerDocument.querySelector("body"):document.querySelector("body");ni(Q);var Re=Q.map(function(V){var le=N[V].rect,ge=I[V].rect,o0=N[V].opacity,z0=I[V].opacity,s0=ge.width<1||ge.height<1,Ee=I[V].element;if(!Zr(le)&&!Zr(ge)||!Ee)return!1;var w0,S0,v0,e0=Jr(Ee),P0=(v0=(S0=(w0={flipperSpring:U,flippedSpring:e0.spring})===void 0?{}:w0).flippedSpring,D0({},gr.noWobble,Gr(S0.flipperSpring),Gr(v0))),L0=e0.stagger===!0?"default":e0.stagger,Q0={element:Ee,id:V,stagger:L0,springConfig:P0};if(k[V]&&k[V].shouldFlip&&!k[V].shouldFlip(Oe.previous,Oe.current))return!1;var E0=Math.abs(le.left-ge.left)+Math.abs(le.top-ge.top),Z0=Math.abs(le.width-ge.width)+Math.abs(le.height-ge.height),O0=Math.abs(z0-o0);if(le.height===0&&ge.height===0||le.width===0&&ge.width===0||E0<.5&&Z0<.5&&O0<.01)return!1;var B0=Ha(I[V].transform),c0={matrix:B0},Be={matrix:[]},ae=[B0];e0.translate&&(ae.push(ja(le.left-ge.left)),ae.push(Va(le.top-ge.top))),e0.scale&&(ae.push($a(Math.max(le.width,1)/Math.max(ge.width,1))),ae.push(Wa(Math.max(le.height,1)/Math.max(ge.height,1)))),e0.opacity&&(Be.opacity=o0,c0.opacity=z0);var d0=[];if(!k[V]||!k[V].shouldInvert||k[V].shouldInvert(Oe.previous,Oe.current)){var k0=(function(Ie,Te){return K0(Ie.querySelectorAll("["+Er+'="'+Te+'"]'))})(Ee,V);d0=k0.map(function(Ie){return[Ie,Jr(Ie)]})}Be.matrix=Qr(ae.reduce(qa)),c0.matrix=Qr(c0.matrix);var r0,g0=(function(Ie){var Te=Ie.element,f0=Ie.invertedChildren,A0=Ie.body;return function(l0){var m0=l0.matrix,U0=l0.opacity,J0=l0.forceMinVals;if(xt(U0)&&(Te.style.opacity=U0+""),J0&&(Te.style.minHeight="1px",Te.style.minWidth="1px"),m0){var Jt=(function(I0){return"matrix("+I0.join(", ")+")"})(m0);Te.style.transform=Jt,f0&&(function(I0){var q0=I0.matrix,er=I0.body;I0.invertedChildren.forEach(function(nt){var it=nt[0],N0=nt[1];if(er.contains(it)){var at=q0[0],ot=q0[3],st=q0[5],t0={translateX:0,translateY:0,scaleX:1,scaleY:1},n0="";N0.translate&&(t0.translateX=-q0[4]/at,t0.translateY=-st/ot,n0+="translate("+t0.translateX+"px, "+t0.translateY+"px)"),N0.scale&&(t0.scaleX=1/at,t0.scaleY=1/ot,n0+=" scale("+t0.scaleX+", "+t0.scaleY+")"),it.style.transform=n0}})})({invertedChildren:f0,matrix:m0,body:A0})}}})({element:Ee,invertedChildren:d0,body:Xe});if(k[V]&&k[V].onComplete){var M0=k[V].onComplete;r0=function(){return M0(Ee,Oe)}}var we=xt(Be.opacity)&&xt(c0.opacity)&&Be.opacity!==c0.opacity,Qe=!1;return D0({},Q0,{stagger:L0,springConfig:P0,getOnUpdateFunc:function(Ie){var Te=Ie.spring,f0=Ie.onAnimationEnd;return z[V]={destroy:Te.destroy.bind(Te),onAnimationEnd:f0},function(A0){k[V]&&k[V].onSpringUpdate&&k[V].onSpringUpdate(A0.getCurrentValue()),Qe||(Qe=!0,k[V]&&k[V].onStart&&k[V].onStart(Ee,Oe));var l0=A0.getCurrentValue();if(Xe.contains(Ee)){var m0={matrix:[]};m0.matrix=Be.matrix.map(function(U0,J0){return vr(U0,c0.matrix[J0],l0)}),we&&(m0.opacity=vr(Be.opacity,c0.opacity,l0)),g0(m0)}else A0.destroy()}},initializeFlip:function(){g0({matrix:Be.matrix,opacity:we?Be.opacity:void 0,forceMinVals:s0}),k[V]&&k[V].onStartImmediate&&k[V].onStartImmediate(Ee,Oe),e0.transformOrigin?Ee.style.transformOrigin=e0.transformOrigin:$&&(Ee.style.transformOrigin="0 0"),d0.forEach(function(Ie){var Te=Ie[0],f0=Ie[1];f0.transformOrigin?Te.style.transformOrigin=f0.transformOrigin:$&&(Te.style.transformOrigin="0 0")})},onAnimationEnd:function(Ie){delete z[V],ti(r0)&&r0(),Ee.style.transform="",d0.forEach(function(Te){Te[0].style.transform=""}),s0&&Ee&&(Ee.style.minHeight="",Ee.style.minWidth=""),Ie||(ke.push(V),ke.length>=Re.length&&X(ke))},delayUntil:e0.delayUntil})}).filter(Boolean);if(Re.forEach(function(V){return(0,V.initializeFlip)()}),j)return function(){};var Ye=Re.filter(function(V){return V.delayUntil&&(le=V.delayUntil,Re.filter(function(ge){return ge.id===le}).length);var le}),_e={},fe={},qe={};Ye.forEach(function(V){V.stagger?(qe[V.stagger]=!0,fe[V.delayUntil]?fe[V.delayUntil].push(V.stagger):fe[V.delayUntil]=[V.stagger]):_e[V.delayUntil]?_e[V.delayUntil].push(V):_e[V.delayUntil]=[V]});var Ve=Re.filter(function(V){return V.stagger}).reduce(function(V,le){return V[le.stagger]?V[le.stagger].push(le):V[le.stagger]=[le],V},{}),Ke=Re.filter(function(V){return Ye.indexOf(V)===-1});return Ke.forEach(function(V){V.onSpringActivate=function(){_e[V.id]&&_e[V.id].forEach(Xr),fe[V.id]&&Object.keys(fe[V.id].reduce(function(le,ge){var o0;return D0(le,((o0={})[ge]=!0,o0))},{})).forEach(function(le){Yr(Ve[le],ve[le])})}}),function(){return Re.length||X([]),Ke.filter(function(V){return!V.stagger}).forEach(Xr),Object.keys(Ve).forEach(function(V){qe[V]||Yr(Ve[V],ve[V])}),We}})(K);d?d({hideEnteringElements:R,animateEnteringElements:M,animateExitingElements:H,animateFlippedElements:W}):(R(),H().then(M),W())}},ro=function(n){var s=n.element,t=n.flipCallbacks,e=t===void 0?{}:t,f=n.inProgressAnimations,c=f===void 0?{}:f,p=li(s,n.portalKey),o=K0(s.querySelectorAll("["+Er+"]")),u={},r=[],l={};p.filter(function(v){return e&&e[v.dataset.flipId]&&e[v.dataset.flipId].onExit}).forEach(function(v){var h=v.parentNode;if(v.closest){var a=v.closest("["+Ka+"]");a&&(h=a)}var i=r.findIndex(function(m){return m[0]===h});i===-1&&(r.push([h,h.getBoundingClientRect()]),i=r.length-1),u[v.dataset.flipId]=r[i][1],l[v.dataset.flipId]=h});var E=ui(p),x=E.map(function(v){var h=v[0],a=v[1],i={};if(e&&e[h.dataset.flipId]&&e[h.dataset.flipId].onExit){var m=u[h.dataset.flipId];D0(i,{element:h,parent:l[h.dataset.flipId],childPosition:{top:a.top-m.top,left:a.left-m.left,width:a.width,height:a.height}})}return[h.dataset.flipId,{rect:a,opacity:parseFloat(window.getComputedStyle(h).opacity||"1"),domDataForExitAnimations:i}]}).reduce(ci,{});return(function(v,h){Object.keys(v).forEach(function(a){v[a].destroy&&v[a].destroy(),v[a].onAnimationEnd&&v[a].onAnimationEnd(!0),delete v[a]}),h.forEach(function(a){a.style.transform="",a.style.opacity=""})})(c,p.concat(o)),{flippedElementPositions:x,cachedOrderedFlipIds:E.map(function(v){return v[0].dataset.flipId})}};new oi;function Xt(){return Xt=Object.assign?Object.assign.bind():function(n){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},Xt.apply(this,arguments)}function mr(n,s){return mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mr(n,s)}function xi(n,s){if(n==null)return{};var t,e,f={},c=Object.keys(n);for(e=0;e<c.length;e++)s.indexOf(t=c[e])>=0||(f[t]=n[t]);return f}var di=qn({}),fi=qn("portal"),pi=(function(n){var s,t;function e(){for(var c,p=arguments.length,o=new Array(p),u=0;u<p;u++)o[u]=arguments[u];return(c=n.call.apply(n,[this].concat(o))||this).inProgressAnimations={},c.flipCallbacks={},c.el=void 0,c}t=n,(s=e).prototype=Object.create(t.prototype),s.prototype.constructor=s,mr(s,t);var f=e.prototype;return f.getSnapshotBeforeUpdate=function(c){return c.flipKey!==this.props.flipKey&&this.el?ro({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},f.componentDidUpdate=function(c,p,o){this.props.flipKey!==c.flipKey&&this.el&&to({flippedElementPositionsBeforeUpdate:o.flippedElementPositions,cachedOrderedFlipIds:o.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:c.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},f.render=function(){var c=this,p=this.props,o=p.portalKey,u=Ze.createElement(di.Provider,{value:this.flipCallbacks},Ze.createElement(p.element,{className:p.className,ref:function(r){return c.el=r}},this.props.children));return o&&(u=Ze.createElement(fi.Provider,{value:o},u)),u},e})(ki);pi.defaultProps={applyTransformOrigin:!0,element:"div"};var no=["children","flipId","inverseFlipId","portalKey"],io=["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"],en=function(n){var s,t=n.children,e=n.flipId,f=n.inverseFlipId,c=n.portalKey,p=xi(n,no),o=t,u=(function(l){return typeof l=="function"})(o);if(!u)try{o=wi.only(t)}catch{throw new Error("Each Flipped component must wrap a single child")}p.scale||p.translate||p.opacity||ii.assign(p,{translate:!0,scale:!0,opacity:!0});var r=((s={})[ut.DATA_FLIP_CONFIG]=JSON.stringify(p),s);return e!==void 0?r[ut.DATA_FLIP_ID]=String(e):f&&(r[ut.DATA_INVERSE_FLIP_ID]=String(f)),c!==void 0&&(r[ut.DATA_PORTAL_KEY]=c),u?o(r):Si(o,r)},hi=function(n){var s=n.children,t=n.flipId,e=n.shouldFlip,f=n.shouldInvert,c=n.onAppear,p=n.onStart,o=n.onStartImmediate,u=n.onComplete,r=n.onExit,l=n.onSpringUpdate,E=xi(n,io);return s?E.inverseFlipId?Ze.createElement(en,Xt({},E),s):Ze.createElement(fi.Consumer,null,function(x){return Ze.createElement(di.Consumer,null,function(v){return ii.isObject(v)&&t&&(v[t]={shouldFlip:e,shouldInvert:f,onAppear:c,onStart:p,onStartImmediate:o,onComplete:u,onExit:r,onSpringUpdate:l}),Ze.createElement(en,Xt({flipId:t},E,{portalKey:x}),s)})}):null};hi.displayName="Flipped";function ao(n){const{data:s,activedItem:t,onChange:e,onDelete:f,sortRules:c=[{label:"\u5F53\u5929",dayPeriod:1}],eventsEmit:p,assistantList:o,height:u=400,styles:r={},hasMore:l=!1,loadingMore:E=!1}=n,x=s.map(T=>T.sessionId+"-"+T.gmtModified).join(","),v=be(()=>{const T=c.length>0?c:[{label:"\u5F53\u5929",dayPeriod:1}],_=Ua(s,T),w=T.every(R=>!_[R.label]||_[R.label].length===0),P=[];return T.forEach(R=>{_[R.label]&&_[R.label].length>0&&(P.push({type:"group",label:R.label}),_[R.label].forEach(M=>P.push({type:"item",data:M})))}),_.other.length>0&&!w&&(P.push({type:"group",label:"\u5176\u4ED6"}),_.other.forEach(R=>P.push({type:"item",data:R}))),w&&_.other.length>0&&_.other.forEach(R=>P.push({type:"item",data:R})),P},[s,c,x]),h=be(()=>v.map(T=>T.type==="group"?`g:${T.label}`:`i:${T.data.sessionId}`).join("|"),[v]),a=56,i=14,m=36,d=T=>T===v.length?m:v[T].type==="group"?32:a+i,g=He(null),C=be(()=>v.findIndex(T=>{var _;return T.type==="item"&&((_=T.data)==null?void 0:_.sessionId)===t}),[v,t]),D=be(()=>v.findIndex(T=>T.type==="item"),[v]),y=He(void 0);Ce(()=>{const T=y.current;t!==T&&C>-1&&C===D&&g.current&&g.current.scrollToItem(C,"start"),y.current=t},[t,C,D]);const b=He(0);if(Ce(()=>{if(g.current){const T=b.current,_=v.length;if(b.current=_,_!==T){const P=(T>0?Math.abs(_-T)/T:1)>.5||T<10&&_>20;g.current.resetAfterIndex(0,P)}}},[v.length]),Ce(()=>{g.current&&g.current.resetAfterIndex(0,!0)},[h]),v.length===0)return S("div",{className:"text-center text-zinc-400 py-8",children:"\u6682\u65E0\u4F1A\u8BDD"});const F=(r==null?void 0:r.colors)||{};return S(pi,{flipKey:x,spring:{stiffness:180,damping:18},children:S(Oa,{ref:g,height:u,width:"100%",itemCount:v.length+1,itemSize:d,itemKey:T=>{if(T===v.length)return"footer";const _=v[T];return _.type==="item"?_.data.sessionId:`group-${_.label}`},onItemsRendered:({visibleStopIndex:T})=>{l&&!E&&T>=v.length-1-3&&typeof p=="function"&&p("conversations:load_more")},style:{overflowX:"hidden"},children:({index:T,style:_})=>{if(T===v.length){const P=(r==null?void 0:r.colors)||{};return S("div",{style:{..._,height:m,lineHeight:`${m}px`,textAlign:"center",fontSize:"10px",color:P.textMuted||"#9ca3af",background:P.groupBg||"white"},children:E?"\u52A0\u8F7D\u4E2D...":l?"":"\u6CA1\u6709\u66F4\u591A\u4E86"})}const w=v[T];return w.type==="group"?S("div",{style:{..._,background:F.groupBg||"white",zIndex:1},className:"pt-2 pb-1 px-[28px] py-[2px] text-xs text-gray-400",children:w.label}):S(hi,{flipId:w.data.sessionId,children:S("div",{style:_,className:"px-[12px] py-[2px]",children:S(Ma,{isActive:t===w.data.sessionId,isDisabled:!1,isNew:w.data.isNew,data:w.data,eventsEmit:p,assistantList:o,styles:r})})},w.data.sessionId)}})})}const oo=({value:n,eventsEmit:s,setSearch:t,style:e,styles:f={}})=>{const c=f.colors||{},p=f.radius||"12px",o=c.border||"#e5e7eb",u=c.primary||"#2563eb",r=f.headerBg||c.sidebarBg||c.background||"#fff",[l,E]=Ze.useState(!1),x=Ze.useRef(null);Ze.useEffect(()=>{l&&x.current&&x.current.focus()},[l]);const v=()=>{E(!1),t("")};return J("div",{className:"flex items-center gap-2 px-4 py-3 sticky top-0 z-10 min-w-0",style:{...e,background:r,borderTopLeftRadius:p,borderTopRightRadius:p},children:[S("button",{className:"border-none flex items-center justify-center",onClick:()=>{E(!1),s&&s("conversation:create")},title:"\u65B0\u5EFA\u4F1A\u8BDD",style:{height:42,borderRadius:"90px",background:u,color:c.buttonText||"#fff",fontWeight:600,boxShadow:f.shadow||"0 2px 8px 0 rgba(0,0,0,0.04)",padding:l?"0 0":"0 14px",minWidth:l?0:180,width:l?0:void 0,opacity:l?0:1,overflow:"hidden",flexShrink:0,transition:"width .22s ease, min-width .22s ease, padding .22s ease, opacity .18s ease",pointerEvents:l?"none":"auto"},children:J("div",{className:"flex items-center gap-2",children:[S(fa,{size:18}),S("span",{className:"text-sm",children:"\u65B0\u5EFA\u5BF9\u8BDD"})]})}),l?J("div",{className:"flex-1 min-w-0 relative",children:[S("input",{ref:x,className:"w-full px-3 py-2 pr-10 text-sm transition-all",placeholder:"\u641C\u7D22\u5386\u53F2\u8BB0\u5F55",value:n,onChange:h=>t(h.target.value),onKeyDown:h=>{h.key==="Escape"&&v()},style:{minWidth:0,width:"100%",borderRadius:p,background:c.inputBg||"#f4f4f5",border:`1px solid ${o}`,color:c.text||"#222",outline:"none",paddingRight:40}}),S("button",{className:"absolute right-3 flex items-center justify-center transition-colors hover:bg-gray-200 rounded-full",style:{width:20,height:20,color:c.text||"#666",flexShrink:0,position:"absolute",right:"12px",top:"9px"},onClick:v,title:"\u5173\u95ED\u641C\u7D22",onMouseDown:h=>h.preventDefault(),children:S(Xn,{size:16})})]}):S("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 ${o}`,color:u,flexShrink:0},onClick:()=>E(!0),title:"\u641C\u7D22",children:S(fr,{size:18})})]})};function so(n){const{data:s,sortRules:t,activedItem:e,eventsEmit:f,assistantList:c,styles:p={},hasMore:o=!1,loadingMore:u=!1}=n,[r,l]=se(""),E=be(()=>r?s.filter(D=>(D.label||"\u672A\u547D\u540D\u4F1A\u8BDD").toLowerCase().includes(r.toLowerCase())):s,[s,r]),x=be(()=>[...E].sort((D,y)=>new Date(y.gmtModified).getTime()-new Date(D.gmtModified).getTime()),[E]),v=He(null),[h,a]=se(400);Ce(()=>{function D(){v.current&&a(v.current.clientHeight)}return D(),window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]);const i=(p==null?void 0:p.colors)||{};p!=null&&p.radius;const m=(p==null?void 0:p.shadow)||"0 4px 24px 0 rgba(0,0,0,0.06)",d=i.border||"#e5e7eb",g=i.sidebarBg||i.background||"#EAEEFF",C=i.text||"#222";return J("div",{className:"h-full flex flex-col overflow-y-hidden",style:{background:g,color:C,boxShadow:m,border:`1px solid ${d}`,...p.container},children:[S(oo,{value:r,setSearch:l,eventsEmit:f,style:p.header,styles:p}),J("div",{className:"flex-1 min-h-0 relative",ref:v,style:p.list,children:[S(ao,{eventsEmit:f,data:x,assistantList:c,activedItem:e,sortRules:t,height:h,styles:p,hasMore:o,loadingMore:u}),S("div",{className:"pointer-events-none absolute left-0 right-0 top-0 h-3 z-20",style:{background:`linear-gradient(to bottom, ${g}cc, transparent)`}})]})]})}var dt={exports:{}};/*!
|
|
53
|
-
* clipboard.js v2.0.11
|
|
54
|
-
* https://clipboardjs.com/
|
|
55
|
-
*
|
|
56
|
-
* Licensed MIT © Zeno Rocha
|
|
57
|
-
*/var co=dt.exports,tn;function lo(){return tn||(tn=1,(function(n,s){(function(e,f){n.exports=f()})(co,function(){return(function(){var t={686:(function(c,p,o){o.d(p,{default:function(){return k}});var u=o(279),r=o.n(u),l=o(370),E=o.n(l),x=o(817),v=o.n(x);function h(z){try{return document.execCommand(z)}catch{return!1}}var a=function(N){var I=v()(N);return h("cut"),I},i=a;function m(z){var N=document.documentElement.getAttribute("dir")==="rtl",I=document.createElement("textarea");I.style.fontSize="12pt",I.style.border="0",I.style.padding="0",I.style.margin="0",I.style.position="absolute",I.style[N?"right":"left"]="-9999px";var $=window.pageYOffset||document.documentElement.scrollTop;return I.style.top="".concat($,"px"),I.setAttribute("readonly",""),I.value=z,I}var d=function(N,I){var $=m(N);I.container.appendChild($);var U=v()($);return h("copy"),$.remove(),U},g=function(N){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},$="";return typeof N=="string"?$=d(N,I):N instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(N==null?void 0:N.type)?$=d(N.value,I):($=v()(N),h("copy")),$},C=g;function D(z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D=function(I){return typeof I}:D=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},D(z)}var y=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=N.action,$=I===void 0?"copy":I,U=N.container,Y=N.target,j=N.text;if($!=="copy"&&$!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Y!==void 0)if(Y&&D(Y)==="object"&&Y.nodeType===1){if($==="copy"&&Y.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if($==="cut"&&(Y.hasAttribute("readonly")||Y.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(j)return C(j,{container:U});if(Y)return $==="cut"?i(Y):C(Y,{container:U})},b=y;function F(z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(I){return typeof I}:F=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},F(z)}function T(z,N){if(!(z instanceof N))throw new TypeError("Cannot call a class as a function")}function _(z,N){for(var I=0;I<N.length;I++){var $=N[I];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(z,$.key,$)}}function w(z,N,I){return N&&_(z.prototype,N),I&&_(z,I),z}function P(z,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(N&&N.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),N&&R(z,N)}function R(z,N){return R=Object.setPrototypeOf||function($,U){return $.__proto__=U,$},R(z,N)}function M(z){var N=W();return function(){var $=q(z),U;if(N){var Y=q(this).constructor;U=Reflect.construct($,arguments,Y)}else U=$.apply(this,arguments);return H(this,U)}}function H(z,N){return N&&(F(N)==="object"||typeof N=="function")?N:K(z)}function K(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function W(){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 q(z){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},q(z)}function X(z,N){var I="data-clipboard-".concat(z);if(N.hasAttribute(I))return N.getAttribute(I)}var Q=(function(z){P(I,z);var N=M(I);function I($,U){var Y;return T(this,I),Y=N.call(this),Y.resolveOptions(U),Y.listenClick($),Y}return w(I,[{key:"resolveOptions",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof U.action=="function"?U.action:this.defaultAction,this.target=typeof U.target=="function"?U.target:this.defaultTarget,this.text=typeof U.text=="function"?U.text:this.defaultText,this.container=F(U.container)==="object"?U.container:document.body}},{key:"listenClick",value:function(U){var Y=this;this.listener=E()(U,"click",function(j){return Y.onClick(j)})}},{key:"onClick",value:function(U){var Y=U.delegateTarget||U.currentTarget,j=this.action(Y)||"copy",ie=b({action:j,container:this.container,target:this.target(Y),text:this.text(Y)});this.emit(ie?"success":"error",{action:j,text:ie,trigger:Y,clearSelection:function(){Y&&Y.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(U){return X("action",U)}},{key:"defaultTarget",value:function(U){var Y=X("target",U);if(Y)return document.querySelector(Y)}},{key:"defaultText",value:function(U){return X("text",U)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(U){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return C(U,Y)}},{key:"cut",value:function(U){return i(U)}},{key:"isSupported",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Y=typeof U=="string"?[U]:U,j=!!document.queryCommandSupported;return Y.forEach(function(ie){j=j&&!!document.queryCommandSupported(ie)}),j}}]),I})(r()),k=Q}),828:(function(c){var p=9;if(typeof Element<"u"&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}function u(r,l){for(;r&&r.nodeType!==p;){if(typeof r.matches=="function"&&r.matches(l))return r;r=r.parentNode}}c.exports=u}),438:(function(c,p,o){var u=o(828);function r(x,v,h,a,i){var m=E.apply(this,arguments);return x.addEventListener(h,m,i),{destroy:function(){x.removeEventListener(h,m,i)}}}function l(x,v,h,a,i){return typeof x.addEventListener=="function"?r.apply(null,arguments):typeof h=="function"?r.bind(null,document).apply(null,arguments):(typeof x=="string"&&(x=document.querySelectorAll(x)),Array.prototype.map.call(x,function(m){return r(m,v,h,a,i)}))}function E(x,v,h,a){return function(i){i.delegateTarget=u(i.target,v),i.delegateTarget&&a.call(x,i)}}c.exports=l}),879:(function(c,p){p.node=function(o){return o!==void 0&&o instanceof HTMLElement&&o.nodeType===1},p.nodeList=function(o){var u=Object.prototype.toString.call(o);return o!==void 0&&(u==="[object NodeList]"||u==="[object HTMLCollection]")&&"length"in o&&(o.length===0||p.node(o[0]))},p.string=function(o){return typeof o=="string"||o instanceof String},p.fn=function(o){var u=Object.prototype.toString.call(o);return u==="[object Function]"}}),370:(function(c,p,o){var u=o(879),r=o(438);function l(h,a,i){if(!h&&!a&&!i)throw new Error("Missing required arguments");if(!u.string(a))throw new TypeError("Second argument must be a String");if(!u.fn(i))throw new TypeError("Third argument must be a Function");if(u.node(h))return E(h,a,i);if(u.nodeList(h))return x(h,a,i);if(u.string(h))return v(h,a,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function E(h,a,i){return h.addEventListener(a,i),{destroy:function(){h.removeEventListener(a,i)}}}function x(h,a,i){return Array.prototype.forEach.call(h,function(m){m.addEventListener(a,i)}),{destroy:function(){Array.prototype.forEach.call(h,function(m){m.removeEventListener(a,i)})}}}function v(h,a,i){return r(document.body,h,a,i)}c.exports=l}),817:(function(c){function p(o){var u;if(o.nodeName==="SELECT")o.focus(),u=o.value;else if(o.nodeName==="INPUT"||o.nodeName==="TEXTAREA"){var r=o.hasAttribute("readonly");r||o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,o.value.length),r||o.removeAttribute("readonly"),u=o.value}else{o.hasAttribute("contenteditable")&&o.focus();var l=window.getSelection(),E=document.createRange();E.selectNodeContents(o),l.removeAllRanges(),l.addRange(E),u=l.toString()}return u}c.exports=p}),279:(function(c){function p(){}p.prototype={on:function(o,u,r){var l=this.e||(this.e={});return(l[o]||(l[o]=[])).push({fn:u,ctx:r}),this},once:function(o,u,r){var l=this;function E(){l.off(o,E),u.apply(r,arguments)}return E._=u,this.on(o,E,r)},emit:function(o){var u=[].slice.call(arguments,1),r=((this.e||(this.e={}))[o]||[]).slice(),l=0,E=r.length;for(l;l<E;l++)r[l].fn.apply(r[l].ctx,u);return this},off:function(o,u){var r=this.e||(this.e={}),l=r[o],E=[];if(l&&u)for(var x=0,v=l.length;x<v;x++)l[x].fn!==u&&l[x].fn._!==u&&E.push(l[x]);return E.length?r[o]=E:delete r[o],this}},c.exports=p,c.exports.TinyEmitter=p})},e={};function f(c){if(e[c])return e[c].exports;var p=e[c]={exports:{}};return t[c](p,p.exports,f),p.exports}return(function(){f.n=function(c){var p=c&&c.__esModule?function(){return c.default}:function(){return c};return f.d(p,{a:p}),p}})(),(function(){f.d=function(c,p){for(var o in p)f.o(p,o)&&!f.o(c,o)&&Object.defineProperty(c,o,{enumerable:!0,get:p[o]})}})(),(function(){f.o=function(c,p){return Object.prototype.hasOwnProperty.call(c,p)}})(),f(686)})().default})})(dt)),dt.exports}var uo=lo();const xo=Hn(uo),fo=(n,s)=>{let t=n&&n.replace(/<think>[\s\S]*?<\/think>/g,"");t=t.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,""),t=t.replace(/<a\s+[^>]*>(.*?)<\/a>/g,""),console.log("_content",t);const e=new xo(s.currentTarget||s.target,{text:()=>t});try{e.on("success",()=>{Ue.success("\u6587\u672C\u590D\u5236\u6210\u529F",2),e.destroy()}),e.on("error",f=>{Ue.error("\u590D\u5236\u5931\u8D25",2),e.destroy()}),e.onClick(s)}catch(f){e.destroy(),Ue.error("\u590D\u5236\u5931\u8D25: "+f,2)}};function po(n){const s=[];for(const t of n){if(t.query){const e=t.query.queryId||t.query.id||t.queryId||t.id||F0(32);s.push({istype:"user",content:t.query.content,time:t.query.gmtCreate,queryId:e,clientSideId:e+"-user",...t.query})}if(t.reply){const e=t.reply.queryId||t.reply.id||t.queryId||t.id||F0(32);s.push({istype:"ai",content:t.reply.content,isDefault:t.reply.isDefault,time:t.time||t.gmtCreate||Date.now(),queryId:e,clientSideId:e+"-ai",...t.reply})}}return s}const ho=""+new URL("assets/defaultWeLogo.svg",import.meta.url).href,vo="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==",go=(n,s)=>{const t={...yr.colors,...n};return`
|
|
58
|
-
.g-welcome-${s} .g-welcome-title {
|
|
59
|
-
background-image: linear-gradient(90deg, #3262FA 0%, #6C18FF 100%);
|
|
60
|
-
-webkit-background-clip: text;
|
|
61
|
-
background-clip: text;
|
|
62
|
-
color: transparent;
|
|
63
|
-
-webkit-text-fill-color: transparent;
|
|
64
|
-
}
|
|
65
|
-
.g-welcome-${s} .g-welcome-subtitle {
|
|
66
|
-
color: ${t.disabled};
|
|
67
|
-
}
|
|
68
|
-
.g-welcome-${s} .g-welcome-btn {
|
|
69
|
-
background-color: #ffffff;
|
|
70
|
-
border-color: ${t.border};
|
|
71
|
-
color: ${t.text};
|
|
72
|
-
height: 36px;
|
|
73
|
-
border-width: 1px;
|
|
74
|
-
box-shadow: 0 1px 2px rgba(31,35,41,0.04);
|
|
75
|
-
}
|
|
76
|
-
.g-welcome-${s} .g-welcome-btn:hover {
|
|
77
|
-
border-color: ${t.primary};
|
|
78
|
-
color: ${t.primary};
|
|
79
|
-
background-color: #ffffff;
|
|
80
|
-
box-shadow: 0 2px 6px rgba(31,35,41,0.08);
|
|
81
|
-
}
|
|
82
|
-
.g-welcome-${s} .g-welcome-btn.active {
|
|
83
|
-
background-image: linear-gradient(90deg, #F1F8FF 0%, #F9F4FF 100%);
|
|
84
|
-
border-color: ${t.primary};
|
|
85
|
-
box-shadow: 0 4px 10px rgba(24, 144, 255, 0.25);
|
|
86
|
-
}
|
|
87
|
-
.g-welcome-${s} .g-welcome-btn .icon-badge {
|
|
88
|
-
width: 24px;
|
|
89
|
-
height: 24px;
|
|
90
|
-
border-radius: 9999px;
|
|
91
|
-
display: inline-flex;
|
|
92
|
-
align-items: center;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
background: radial-gradient(100% 100% at 50% 0%, #F2F3F5 0%, #FFFFFF 100%);
|
|
95
|
-
box-shadow: inset 0 0 0 1px ${t.border};
|
|
96
|
-
}
|
|
97
|
-
.g-welcome-${s} .g-welcome-pagination-btn {
|
|
98
|
-
background: transparent;
|
|
99
|
-
border: none;
|
|
100
|
-
color: ${t.disabled};
|
|
101
|
-
padding: 6px 10px;
|
|
102
|
-
border-radius: 9999px;
|
|
103
|
-
transition: all 0.2s;
|
|
104
|
-
font-size: 14px;
|
|
105
|
-
line-height: 1;
|
|
106
|
-
min-width: 32px;
|
|
107
|
-
height: 32px;
|
|
108
|
-
display: inline-flex;
|
|
109
|
-
align-items: center;
|
|
110
|
-
justify-content: center;
|
|
111
|
-
}
|
|
112
|
-
.g-welcome-${s} .g-welcome-pagination-btn:hover:not(:disabled) {
|
|
113
|
-
color: ${t.text};
|
|
114
|
-
background-color: ${t.border}33;
|
|
115
|
-
}
|
|
116
|
-
.g-welcome-${s} .g-welcome-pagination-btn.active {
|
|
117
|
-
color: ${t.primary};
|
|
118
|
-
background: radial-gradient(100% 100% at 50% 50%, ${t.primary}10 0%, ${t.primary}08 100%);
|
|
119
|
-
box-shadow: 0 2px 10px ${t.primary}12, inset 0 0 0 1px ${t.primary}1A;
|
|
120
|
-
}
|
|
121
|
-
.g-welcome-${s} .g-welcome-pagination-btn:disabled {
|
|
122
|
-
color: ${t.disabled};
|
|
123
|
-
cursor: not-allowed;
|
|
124
|
-
background: transparent;
|
|
125
|
-
}
|
|
126
|
-
.g-welcome-${s} .g-welcome-pagination-text {
|
|
127
|
-
color: ${t.disabled};
|
|
128
|
-
font-size: 14px;
|
|
129
|
-
padding: 0 8px;
|
|
130
|
-
}
|
|
131
|
-
.g-welcome-${s} .g-welcome-pagination-dot {
|
|
132
|
-
width: 6px;
|
|
133
|
-
height: 6px;
|
|
134
|
-
border-radius: 50%;
|
|
135
|
-
background-color: ${t.border};
|
|
136
|
-
transition: all 0.2s;
|
|
137
|
-
}
|
|
138
|
-
.g-welcome-${s} .g-welcome-pagination-dot.active {
|
|
139
|
-
background-color: ${t.primary};
|
|
140
|
-
width: 20px;
|
|
141
|
-
border-radius: 3px;
|
|
142
|
-
}
|
|
143
|
-
.g-welcome-${s} .g-welcome-search-btn {
|
|
144
|
-
background-color: #ffffff;
|
|
145
|
-
border: 1px solid ${t.border};
|
|
146
|
-
color: ${t.text};
|
|
147
|
-
padding: 8px 8px;
|
|
148
|
-
border-radius: 100%;
|
|
149
|
-
cursor: pointer;
|
|
150
|
-
transition: all 0.2s;
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
gap: 6px;
|
|
154
|
-
font-size: 14px;
|
|
155
|
-
box-shadow: 0 1px 2px rgba(31,35,41,0.04);
|
|
156
|
-
}
|
|
157
|
-
.g-welcome-${s} .g-welcome-search-btn:hover {
|
|
158
|
-
border-color: ${t.primary};
|
|
159
|
-
color: ${t.primary};
|
|
160
|
-
box-shadow: 0 2px 6px rgba(31,35,41,0.08);
|
|
161
|
-
}
|
|
162
|
-
.g-welcome-${s} .g-welcome-search-input {
|
|
163
|
-
border: 1px solid ${t.border};
|
|
164
|
-
border-radius: 9999px;
|
|
165
|
-
transition: all 0.2s;
|
|
166
|
-
height: 40px;
|
|
167
|
-
padding: 0 14px;
|
|
168
|
-
}
|
|
169
|
-
.g-welcome-${s} .g-welcome-search-input:focus,
|
|
170
|
-
.g-welcome-${s} .g-welcome-search-input:hover {
|
|
171
|
-
border-color: ${t.primary};
|
|
172
|
-
box-shadow: 0 0 0 2px ${t.primary}1A;
|
|
173
|
-
}
|
|
174
|
-
`};function mo({config:n,styles:s}){if(!n)return null;const t=JSON.parse(n.configJson),e=be(()=>{var f;return{...yr.colors,...(f=s==null?void 0:s.theme)==null?void 0:f.colors}},[s]);return J("div",{className:"w-[340px] rounded-xl p-4 animate-fade-in bg-white",children:[J("div",{className:"flex items-center mb-2",children:[S("span",{className:"text-md font-bold truncate mr-2",style:{color:e.primary},children:t.config_name||"\u52A9\u624B\u914D\u7F6E"}),S("span",{className:"text-xs truncate rounded px-2 py-0.5",style:{backgroundColor:`${e.primary}1A`,color:e.disabled},children:t.model_name})]}),S("div",{className:"border-b my-2",style:{borderColor:e.border}}),J("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-gray-700 mb-2",style:{color:e.text},children:[J("div",{children:["\u4E0A\u4E0B\u6587\u6700\u5927\u8F6E\u6570\uFF1A",S("span",{className:"font-semibold",children:t.max_round})]}),J("div",{children:["\u6700\u5927\u4EE4\u724C\u6570\uFF1A",S("span",{className:"font-semibold",children:t.max_tokens})]}),J("div",{children:["\u6E29\u5EA6\uFF1A",S("span",{className:"font-semibold",children:t.temperature})]}),J("div",{children:["\u53EC\u56DE\u6570\uFF1A",S("span",{className:"font-semibold",children:t.top_k})]}),J("div",{children:["\u591A\u6837\u6027\uFF1A",S("span",{className:"font-semibold",children:t.top_p})]}),J("div",{children:["\u76F8\u4F3C\u5EA6\u9608\u503C\uFF1A",S("span",{className:"font-semibold",children:t.score_threshold})]})]}),J("div",{className:"mb-2",children:[S("div",{className:"text-xs text-gray-400 mb-1",style:{color:e.disabled},children:"\u5173\u8054\u77E5\u8BC6\u5E93\uFF1A"}),S("div",{className:"flex flex-wrap gap-1",children:t.knowledge_base_name?t.knowledge_base_name.split(";").map((f,c)=>S("span",{className:"px-2 py-0.5 rounded-full text-xs",style:{backgroundColor:`${e.primary}1A`,color:e.primary},children:f},c)):S("span",{className:"text-gray-300",style:{color:e.disabled},children:"\u65E0"})})]}),J("div",{className:"mb-2",children:[S("div",{className:"text-xs text-gray-400 mb-1",style:{color:e.disabled},children:"\u5F00\u542F\u529F\u80FD:"}),J("div",{className:"flex flex-wrap gap-2 text-xs mt-2",children:[!!t.enabled_faq&&S("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${e.success}1A`,color:e.success},children:"FAQ"}),!!t.enabled_graph&&S("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${e.success}1A`,color:e.success},children:"\u56FE\u8C31"}),!!t.dependOnKb&&S("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${e.success}1A`,color:e.success},children:"\u5F3A\u77E5\u8BC6\u4F9D\u8D56"}),!!t.enabled_table_select&&S("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${e.success}1A`,color:e.success},children:"\u8868\u683C\u7B5B\u9009"}),!!t.enabled_rerank&&S("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${e.success}1A`,color:e.success},children:"\u7CBE\u6392\u6A21\u5F0F"}),!!t.need_trace_source&&S("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${e.success}1A`,color:e.success},children:"\u6EAF\u6E90"}),!!t.is_download&&S("span",{className:"px-2 py-0.5 rounded",style:{backgroundColor:`${e.success}1A`,color:e.success},children:"\u4E0B\u8F7D\u6EAF\u6E90"})]})]})]})}function yo(n,s=[],t=60){const[e,f]=se("");return Ce(()=>{f("");let c=0;const p=setInterval(()=>{f(o=>c>=n.length?(clearInterval(p),o):(c++,n.slice(0,c)))},t);return()=>clearInterval(p)},[n,...s]),e}function Co(n){const{assistantList:s,eventsEmit:t,styles:e,selectedId:f,onSelectAssistant:c,productLogo:p}=n,[o,u]=se(1),[r,l]=se(!1),[E,x]=se(""),v=r||E.trim()?6:12,h=He(),a=He(!1),i=He(null),m=He(null),d=He("");Ce(()=>{f&&h.current!==f&&(t==null||t("conversation:new_assistant_change",{assistantId:f}),h.current=f)},[f,t]);const g=be(()=>F0(),[]);Ce(()=>{var w;if((w=e==null?void 0:e.theme)!=null&&w.colors){const P=document.createElement("style");return P.innerHTML=go(e.theme.colors,g),P.id=`g-welcome-styles-${g}`,document.head.appendChild(P),()=>{const R=document.getElementById(P.id);R&&R.remove()}}},[e,g]);const C=be(()=>s.find(w=>w.id===f),[s,f]),D=be(()=>JSON.parse((C==null?void 0:C.configJson)||"{}"),[C]),y=be(()=>{if(!E.trim())return s||[];const w=E.toLowerCase().trim();return(s||[]).filter(P=>{var M,H;const R=((M=P.name)==null?void 0:M.toLowerCase())||"";try{const W=((H=JSON.parse(P.configJson||"{}").config_name)==null?void 0:H.toLowerCase())||"";return R.includes(w)||W.includes(w)}catch{return R.includes(w)}})},[s,E]),b=Math.ceil(((y==null?void 0:y.length)||0)/v),F=(y==null?void 0:y.slice((o-1)*v,o*v))||[];Ce(()=>{if(f&&f!==m.current){if(a.current&&i.current!==null){m.current=f;return}const w=E.trim()?y:s;if(w&&w.length>0){const P=w.findIndex(R=>R.id===f);if(P!==-1){const R=Math.floor(P/v)+1;u(R),m.current=f}}}},[f,s,y,v,E]),Ce(()=>{if(E!==d.current){if(a.current&&i.current!==null){u(i.current),a.current=!1,i.current=null,d.current=E;return}if(m.current===f){d.current=E;return}a.current||(E.trim()&&(m.current=null),u(1)),d.current=E}},[E,f]),Ce(()=>{b>0&&o>b&&u(b)},[b,o]);const T=D.prologue||"\u60A8\u597D\uFF0C\u6B22\u8FCE\u4F7F\u7528\u5C0F\u9CB8\u667A\u80FD\u95EE\u7B54",_=yo(T,[f],30);return J("div",{className:`flex flex-col relative items-center justify-center h-full w-full g-welcome-${g}`,children:[S("img",{src:p||ho,alt:"logo",className:"mb-4",style:{width:68,height:68}}),S("div",{className:"text-3xl font-bold mb-2 g-welcome-title",children:_}),!f&&S("div",{className:"flex mb-2 g-welcome-subtitle",children:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u667A\u80FD\u52A9\u624B"}),J("div",{style:{maxWidth:"1200px"},className:`flex mt-8 flex-wrap gap-3
|
|
175
|
-
max-w-[1200px] px-8 w-full mx-auto justify-center mb-4`,children:[r?S("div",{className:"flex items-center gap-2 px-5 w-full",style:{flexBasis:"100%"},children:S($n,{className:"g-welcome-search-input w-full",placeholder:"\u641C\u7D22\u52A9\u624B\u540D\u79F0",prefix:S(fr,{size:16}),suffix:S("button",{type:"button",onClick:()=>{l(!1),x("")},style:{background:"transparent",border:"none",cursor:"pointer"},children:S(Xn,{size:14})}),value:E,onChange:w=>x(w.target.value),autoFocus:!0})}):S("button",{type:"button",className:"g-welcome-search-btn",onClick:()=>l(!0),children:S(fr,{size:16})}),F&&F.length>0?S(rt,{children:F.map(w=>{const P=f===w.id;let R=w.icon;try{const M=JSON.parse(w.configJson||"{}");R=R||M.icon||M.avatar||M.logo}catch{}return R=R||vo,S(pa,{content:()=>S(mo,{config:s.find(M=>M.id===w.id),styles:e}),trigger:"hover",placement:"bottom",children:J("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:()=>{c==null||c(w.id);const M=r||E.trim(),K=(M?s:E.trim()?y:s).findIndex(W=>W.id===w.id);if(K!==-1){const q=Math.floor(K/(M?12:v))+1;u(q),m.current=w.id,M&&(i.current=q,a.current=!0,setTimeout(()=>{x(""),l(!1)},100))}},title:w.name,children:[S("span",{className:"icon-badge",children:S("img",{src:R,alt:"icon",style:{width:16,height:16,borderRadius:4}})}),S("span",{className:"truncate max-w-[180px]",children:w.name})]})},w.id)})}):S("div",{className:"g-welcome-subtitle",children:"\u6682\u65E0\u53EF\u7528\u52A9\u624B"})]}),b>1&&J("div",{className:"flex items-center gap-2",children:[S("button",{type:"button",className:"g-welcome-pagination-btn",onClick:()=>u(w=>Math.max(1,w-1)),disabled:o===1,children:S(ha,{size:16})}),S("div",{className:"flex items-center gap-1",children:(()=>{const w=[];if(b<=7)for(let R=1;R<=b;R++)w.push(R);else if(w.push(1),o<=4){for(let R=2;R<=5;R++)w.push(R);w.push("..."),w.push(b)}else if(o>=b-3){w.push("...");for(let R=b-4;R<=b;R++)w.push(R)}else{w.push("...");for(let R=o-1;R<=o+1;R++)w.push(R);w.push("..."),w.push(b)}return w.map((R,M)=>{if(R==="...")return S("span",{className:"g-welcome-pagination-text px-1",children:"..."},`ellipsis-${M}`);const H=R;return S("button",{type:"button",className:`g-welcome-pagination-btn ${o===H?"active":""}`,onClick:()=>u(H),children:H},H)})})()}),S("button",{type:"button",className:"g-welcome-pagination-btn",onClick:()=>u(w=>Math.min(b,w+1)),disabled:o===b,children:S(xa,{size:16})})]})]})}class cr extends Error{}let h0=null,C0=null,u0=null,he=[],W0,j0,lr=new Map;const Fo=({baseUrl:n,token:s,CSRFToken:t,setChatData:e,activeSessionId:f,setAppStatus:c,setConversationList:p})=>{const o=i=>{if(!i)return!1;if(typeof i=="string"){const m=i.trim();return m!==""&&m!=="[]"&&m!=="null"}return!0},u=({content:i,status:m,respTime:d,filePaths:g,reference:C,webReference:D,knowledgeBases:y,graphReference:b,databaseReference:F,llmType:T,resultType:_,queryId:w,tokens:P,chain:R,thoughtChainNodes:M,enableCot:H,chainRespTime:K})=>{e(W=>{var ie;if(!W[0])return W;const q=W[0],X=q.messages||[],Q=X.length-1;if(Q<0)return W;const k=X[Q];if(k.istype!=="ai")return W;let z=X.slice();if(g!=null&&g.length){const ve=X.length-2;if(ve>=0&&((ie=X[ve])==null?void 0:ie.istype)==="user"){const De={...X[ve],filePaths:g};z[ve]=De}}const N=w&&w!==k.queryId,I=m===1&&k.status===2,$=N||I?o(b)?b:null:b!==void 0&&o(b)?b:k.graphReference;m===2&&b!==void 0&&console.log("[AichatUseController] reset_chat status=2 \u65F6\u7684 graphReference:",{graphReference:b,isValid:o(b),lastMessageGraphReference:k.graphReference,finalGraphReference:$,isNewQuery:N,isRestart:I});let U;N?U=i:I?U="":m===4||m===2&&!i?U=k.content||"":U=(k.content||"")+i;const Y={...k,content:U,status:m,respTime:d,filePaths:g,reference:N||I?C||"[]":C,webReference:N||I?D||"[]":D,knowledgeBases:N||I?y||"[]":y,graphReference:$,databaseReference:N||I?F!==void 0?F:null:F!==void 0?F:k.databaseReference,resultType:_,llmType:T,tokens:P,queryId:w||k.queryId||F0(32),chain:N||I?R!==void 0?R:void 0:R!==void 0?R:k.chain,thoughtChainNodes:N||I?M!==void 0?M:void 0:M!==void 0?M:k.thoughtChainNodes,enableCot:H!==void 0?H:k.enableCot,chainRespTime:K!==void 0?K:k.chainRespTime};return Y.clientSideId=Y.clientSideId||Y.queryId+"-ai",z[Q]=Y,[{...q,isNew:!1,messages:z},...W.slice(1)]})},r=i=>{if(i instanceof cr)throw c(m=>({...m,display:"error",sender:"ready"})),h0&&(h0.abort(),h0=null),C0=null,u0=null,i};return{updateUserFilesMessage:({currentFiles:i})=>{e(m=>{if(!m[0])return m;const d=m[0],g=d.messages||[];if(!g.length)return m;const C=g.length-2;if(C<0||g[C].istype!=="user")return m;const y=g.slice();return y[C]={...g[C],currentFiles:i},[{...d,messages:y},...m.slice(1)]})},api_startChat_re:(i,m)=>{h0&&h0.abort(),h0=new AbortController,C0=i.sessionId,u0=i.queryId,he=[],W0=void 0,j0=void 0,lr=new Map;const d=`${n}/qa/ai/question_re`;console.log("data",i);const g={...i};zi(d,{method:"post",signal:h0.signal,headers:{"Content-Type":"application/json",Accept:"text/event-stream",Authorization:s||"","X-CSRF-TOKEN-IN":t||""},openWhenHidden:!0,body:JSON.stringify(g),onopen:async C=>{if(C.status===500)throw new cr("Internal Server Error");if(!C.ok)throw new cr(`HTTP error: ${C.status}`)},onmessage:C=>{var I,$,U,Y;const D=JSON.parse(C.data);if(C0!==D.sessionId){console.log("[AichatUseController] \u6D41\u5F0F\u8BF7\u6C42\u7684 sessionId \u5DF2\u4E0D\u5339\u914D\uFF0C\u5FFD\u7565\u6570\u636E",{currentStreamSessionId:C0,receivedSessionId:D.sessionId,activeSessionId:f});return}if(f!==D.sessionId)return;const{reply:y,resultType:b,respTime:F,reference:T,webReference:_,graphReference:w,knowledgeBases:P,filePaths:R,status:M,docs:H,llmType:K,databaseReference:W,businessType:q,nodeStatus:X,enableCot:Q,chainRespTime:k}=D;if(M===4&&q){X===2&&typeof k=="number"&&k>0&&lr.set(q,k);const j=X===2&&typeof k=="number"&&k>0?k:void 0;he=ca(he,{businessType:q,nodeStatus:X,reply:y,respTime:j,chainRespTime:j}),console.log("[AichatUseController] status=4 \u805A\u5408\u601D\u7EF4\u94FE\u6570\u636E:",{businessType:q,nodeStatus:X,content:(I=y==null?void 0:y.content)==null?void 0:I.substring(0,50),currentThoughtNodesCount:he.length,chainRespTime:X===2?k:void 0})}else M===1&&q&&console.log("[AichatUseController] status=1 \u8DF3\u8FC7\u601D\u7EF4\u94FE\u805A\u5408:",{businessType:q,content:($=y==null?void 0:y.content)==null?void 0:$.substring(0,50),note:"status=1 \u7684\u5185\u5BB9\u5E94\u8BE5\u53BB\u6B63\u6587\uFF0C\u4E0D\u662F\u601D\u7EF4\u94FE"});if(typeof Q=="number"&&(W0=Q),M===1||M===2){const j=Array.from(lr.values()).reduce((ie,ve)=>ie+ve,0);j>0&&(j0=j)}const z=R?JSON.parse(R):[];M===2&&y&&y.content&&(y.content.includes("\u6A21\u578B\u6682\u65E0\u6CD5\u8FD4\u56DE")||y.content.includes("\u5931\u8D25")||y.content.includes("\u9519\u8BEF")||y.content.includes("\u8BF7\u7A0D\u540E\u518D\u8BD5"))&&c(j=>({...j,display:"ready",sender:"ready"}));const N=o(w)?w:void 0;if(M===2&&console.log("[AichatUseController] status=2 \u65F6\u7684 graphReference:",{graphReference:w,type:typeof w,isValid:o(w),finalGraphReference:N}),M===4){const j=he.length>0?he.map(ie=>({businessType:ie.businessType,nodeStatus:ie.nodeStatus,content:ie.content})):void 0;console.log("[AichatUseController] status=4 \u66F4\u65B0\u601D\u7EF4\u94FE:",{businessType:q,chainLength:(j==null?void 0:j.length)||0,replyContentLength:((U=y==null?void 0:y.content)==null?void 0:U.length)||0,note:"status=4 \u65F6\uFF0Creply.content \u5E94\u8BE5\u805A\u5408\u5230\u601D\u7EF4\u94FE\uFF0C\u4E0D\u66F4\u65B0\u6B63\u6587"}),u({content:"",status:M,respTime:F,filePaths:z,reference:T||H||"",webReference:_||"",knowledgeBases:P||"",graphReference:N,databaseReference:W,llmType:K,resultType:b,queryId:D.queryId,tokens:D.tokens,chain:j,thoughtChainNodes:he.length>0?[...he]:void 0,enableCot:W0,chainRespTime:j0})}else if(M===1){he.length>0&&(he=he.map(ie=>({...ie,nodeStatus:2}))),console.log("[AichatUseController] status=1 \u66F4\u65B0\u6B63\u6587:",{businessType:q,content:(Y=y==null?void 0:y.content)==null?void 0:Y.substring(0,50),thoughtNodesCount:he.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 j=he.length>0?he.map(ie=>({businessType:ie.businessType,nodeStatus:ie.nodeStatus,content:ie.content})):void 0;u({content:y.content||"",status:M,respTime:F,filePaths:z,reference:T||H||"",webReference:_||"",graphReference:N,knowledgeBases:P||"",databaseReference:W??null,llmType:K,resultType:b,queryId:D.queryId,tokens:D.tokens,chain:j??void 0,thoughtChainNodes:he.length>0?[...he]:void 0,enableCot:W0,chainRespTime:j0})}else if(M===2){he.length>0&&(he=he.map(ie=>({...ie,nodeStatus:2})));const j=he.length>0?he.map(ie=>({businessType:ie.businessType,nodeStatus:ie.nodeStatus,content:ie.content})):void 0;if(u({content:y.content||"",status:2,respTime:F,filePaths:z,reference:T||H||"",webReference:_||"",knowledgeBases:P||"",graphReference:N,databaseReference:W,llmType:K,resultType:b,queryId:D.queryId,tokens:D.tokens,chain:j,thoughtChainNodes:he.length>0?[...he]:void 0,enableCot:W0,chainRespTime:j0}),he=[],c(ie=>({...ie,display:"ready",sender:"ready"})),m){const ie=F||Date.now();console.log("[AichatUseController] \u6D88\u606F\u53D1\u9001\u6210\u529F\uFF0CgmtModified:",ie),m(ie)}}else{const j=he.length>0?he.map(ie=>({businessType:ie.businessType,nodeStatus:ie.nodeStatus,content:ie.content,respTime:ie.respTime,chainRespTime:ie.respTime})):void 0;u({content:y.content||"",status:M,respTime:F,filePaths:z,reference:T||H||"",knowledgeBases:P||"",webReference:_||"",graphReference:N,databaseReference:W,llmType:K,resultType:b,queryId:D.queryId,tokens:D.tokens,chain:j,thoughtChainNodes:he.length>0?[...he]:void 0,enableCot:W0,chainRespTime:j0})}},onerror:r,onclose:()=>{C0===i.sessionId&&(C0=null,u0=null)}})},addEmptyMessage:({queryId:i,content:m,filePaths:d,currentFiles:g})=>{e(C=>{const D=new Date().toISOString(),y=i||F0(32),b={istype:"user",content:m,time:D,queryId:y,clientSideId:y+"-user",filePaths:d||"",currentFiles:g||[]},F={istype:"ai",content:"",time:new Date(Date.now()+1).toISOString(),streaming:!0,status:0,queryId:y,clientSideId:y+"-ai"},T=C.find(_=>_.id===f);return T?T.messages.push(b,F):console.warn("addEmptyMessage called without an active session."),[...C]})},setLastEmptyMessage:({now:i})=>{e(m=>{if(!m[0])return m;const d=m[0],g=d.messages||[];if(!g.length)return m;const C=g.length-1;if(C<0)return m;const D=g[C];if(D.istype!=="ai")return m;const y=g.slice();return y[C]={...D,istype:"ai",content:"",time:i,streaming:!0,status:0},[{...d,messages:y},...m.slice(1)]})},stopStream:async()=>{if(u0)try{await Je.delete(`${n}/qa/ai/abortStream?queryId=${u0}`,{headers:{Authorization:s||"","X-CSRF-TOKEN-IN":t||""}}),console.log("[AichatUseController] \u5DF2\u8C03\u7528\u540E\u7AEF\u63A5\u53E3\u505C\u6B62\u6D41\u5F0F\u8BF7\u6C42",u0)}catch(i){console.error("[AichatUseController] \u8C03\u7528\u505C\u6B62\u63A5\u53E3\u5931\u8D25",i)}else console.warn("[AichatUseController] \u505C\u6B62\u6D41\u5F0F\u8BF7\u6C42\u65F6\u672A\u627E\u5230 queryId");h0=null,C0=null,u0=null,c(i=>({...i,display:"ready",sender:"ready"}))},cancelStreamBySessionId:async i=>{if(h0&&C0===i){if(console.log("[AichatUseController] \u5207\u6362\u4F1A\u8BDD\uFF0C\u53D6\u6D88\u6B63\u5728\u8FDB\u884C\u7684\u6D41\u5F0F\u8BF7\u6C42",i),u0)try{await Je.delete(`${n}/qa/ai/abortStream?queryId=${u0}`,{headers:{Authorization:s||"","X-CSRF-TOKEN-IN":t||""}}),console.log("[AichatUseController] \u5207\u6362\u4F1A\u8BDD\u65F6\u5DF2\u8C03\u7528\u540E\u7AEF\u63A5\u53E3\u505C\u6B62\u6D41\u5F0F\u8BF7\u6C42",u0)}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 h0=null,C0=null,u0=null,c(m=>({...m,display:"ready",sender:"ready"})),!0}return!1}}},Eo=1e3,Bo=3e3;function Ao({url:n,token:s,CSRFToken:t,onError:e,activeSessionId:f}){const[c,p]=se([]),[o,u]=se(()=>({uploadedFiles:[]})),r=He(!1),l=async a=>{var i,m;if(!a)return null;try{const d=await Je.get(`${n}/index/knowledgeBase/file/getFilesBysessionId?sessionId=${a}`,{headers:{Authorization:s}});console.log("[DEBUG] \u83B7\u53D6\u4E34\u65F6\u6587\u4EF6\u5217\u8868 res:",(i=d==null?void 0:d.data)==null?void 0:i.data),u({uploadedFiles:((m=d==null?void 0:d.data)==null?void 0:m.data)||[]})}catch(d){throw console.error("\u83B7\u53D6\u4E34\u65F6\u6587\u4EF6\u5217\u8868\u5931\u8D25:",d),d}},E=ct((a,i)=>{const m=a.join(",");let d=0,g=null;g=()=>{r.current=!0};const C=async()=>{if(!r.current){if(d>=Eo){r.current||i.onFail("\u6587\u4EF6\u89E3\u6790\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");return}d++;try{const D=await Je.get(`${n}/index/knowledgeBase/file/getFileStatusByUids?uids=${m}`,{headers:{Authorization:s}});if(r.current)return;if(D.data.success){const y=D.data.data;r.current||i.onStatusUpdate(y),y.every(F=>{const T=F.fileParseStatus??F.status;return T===3||T===4})?r.current||i.onComplete():r.current||setTimeout(C,Bo)}else r.current||i.onFail(D.data.errorMsg||"\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u5931\u8D25")}catch(D){if(e==null||e(D),r.current)return;i.onFail("\u67E5\u8BE2\u6587\u4EF6\u72B6\u6001\u65F6\u53D1\u751F\u7F51\u7EDC\u9519\u8BEF")}}};return C(),g},[n,s,e]),x=ct(async(a,i)=>{if(!a){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6");return}Pi({url:n,token:s,CSRFToken:t},{uid:a,queryId:i},(m,d)=>{m?(Ue.success("\u6587\u4EF6\u5DF2\u4ECE\u4E34\u65F6\u77E5\u8BC6\u5E93\u79FB\u9664"),l(f)):(console.log("[DEBUG] removeFilefromTempUpload \u56DE\u8C03 false\uFF0Cres:",d),Ue.error("\u6587\u4EF6\u79FB\u9664\u5931\u8D25"))})},[n,s,t,f]),v=ct(()=>{r.current=!1},[]),h=ct(()=>{r.current=!0},[]);return{fileManagerData:o,fileStatuses:c,setFileManagerData:u,setFileStatuses:p,pollFileStatus:E,handleRemoveFromTemp:x,resetStopFlag:v,setStopFlag:h,stoppedRef:r,getTempFileList:l}}function bo({title:n,subtitle:s}){const[t,e]=se(0);return Ce(()=>{let f;return t<98?f=setTimeout(()=>{e(c=>c+Math.random()*6+1)},80):t<100&&(f=setTimeout(()=>e(100),400)),()=>clearTimeout(f)},[t]),J("div",{className:"flex flex-col justify-center items-center min-h-screen bg-gradient-to-br from-[#EEF4FF] via-white to-[#F5F8FF]",children:[J("div",{className:"mb-8 flex flex-col items-center",children:[S("div",{className:"mt-6 text-2xl font-semibold text-[#222222] tracking-wide",children:n||"\u5C0F\u9CB8\u667A\u80FD\u4F1A\u8BDD\u52A9\u624B"}),S("div",{className:"mt-2 text-sm text-[#555555]",children:s||"\u8BA9\u667A\u80FD\u5BF9\u8BDD\u66F4\u7B80\u5355"})]}),J("div",{className:"relative w-80 max-w-sm",children:[S("div",{className:"w-full h-2 bg-[#EEF4FF] rounded-full overflow-hidden shadow-inner",children:S("div",{className:"h-full bg-gradient-to-r from-[#2B69FF] to-[#8F91FF] transition-all duration-300 ease-out",style:{width:`${Math.min(t,100)}%`}})}),J("div",{className:"absolute -right-2 top-5 text-sm text-[#555555]",children:[Math.min(Math.round(t),100),"%"]})]}),J("div",{className:"mt-8 flex flex-col items-center gap-2",children:[S("div",{className:"text-sm text-[#555555] animate-pulse",children:"\u6B63\u5728\u521D\u59CB\u5316\u5E94\u7528"}),S("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 vi=document.createElement("style");vi.textContent=`
|
|
176
|
-
.animate-bounce-slow {
|
|
177
|
-
animation: bounce 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
178
|
-
}
|
|
179
|
-
@keyframes bounce {
|
|
180
|
-
0%, 100% { transform: translateY(0); }
|
|
181
|
-
50% { transform: translateY(-12px); }
|
|
182
|
-
}
|
|
183
|
-
`;document.head.appendChild(vi);function Do(){return J("div",{className:"flex flex-col gap-8 p-4 w-full mx-auto",children:[J("div",{className:"flex items-start gap-4",children:[S("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),S("div",{className:"flex-1",children:S(lt,{active:!0,paragraph:{rows:1}})})]}),J("div",{className:"flex items-start gap-4",children:[S("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),S("div",{className:"flex-1",children:S(lt,{active:!0,paragraph:{rows:3}})})]}),J("div",{className:"flex items-start gap-4",children:[S("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),S("div",{className:"flex-1",children:S(lt,{active:!0,paragraph:{rows:1}})})]}),J("div",{className:"flex items-start gap-4",children:[S("div",{className:"w-10 h-10 rounded-full bg-muted/80 animate-pulse"}),S("div",{className:"flex-1",children:S(lt,{active:!0,paragraph:{rows:2}})})]})]})}function _o({msg:n,subMsg:s}){return J("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-white/80 backdrop-blur-sm",children:[S("div",{className:"mb-6 animate-bounce",children:S(Fa,{size:64,className:"text-[#d70016]"})}),S("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:n||"\u5E94\u7528\u521D\u59CB\u5316\u5931\u8D25"}),S("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:s||"\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"}),S(G0,{type:"primary",icon:S(Jn,{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 wo(){return J("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center bg-transparent! backdrop-blur-sm",children:[S("div",{className:"mb-6 animate-bounce",children:S(da,{size:64,className:"text-[#d70016]"})}),S("h2",{className:"text-[20px] font-medium text-[#222222] mb-3",children:"\u62B1\u6B49\uFF0C\u9047\u5230\u4E86\u4E00\u4E9B\u95EE\u9898"}),S("p",{className:"text-[14px] text-[#555555] mb-8 max-w-[400px]",children:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"}),S(G0,{type:"primary",icon:S(Jn,{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"})]})}const So=({isModalOpen:n,handleOk:s,handleCancel:t,data:e})=>{const f={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}},[c]=Wn();return Ce(()=>{if(!n){c.resetFields();return}c.setFieldValue("new_name",e==null?void 0:e.label)},[e,n]),S(Yt,{modal:{styles:f},children:S(Yn,{title:S("div",{className:"text-[16px]",children:"\u7F16\u8F91\u4F1A\u8BDD\u540D\u79F0"}),closeIcon:null,open:n,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:J("div",{className:"mt-[16px] flex justify-end",children:[S(G0,{children:"\u53D6\u6D88",onClick:t,className:"mr-[8px]"}),S(G0,{children:"\u786E\u8BA4",onClick:async()=>{try{const p=await c.validateFields();s("ok_rename",p)}catch(p){console.log(p);return}},type:"primary",className:"border-none"})]}),children:S(Lr,{form:c,children:S(Lr.Item,{name:"new_name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"},{max:100,message:"\u6700\u5927\u5B57\u6570\u9650\u5236100"}],children:S($n,{})})})})})},ko=({isModalOpen:n,handleOk:s,handleCancel:t,data:e})=>{const f={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}},[c]=Wn();return Ce(()=>{if(!n){c.resetFields();return}c.setFieldValue("new_name",e==null?void 0:e.label)},[e,n]),S(Yt,{modal:{styles:f},children:S(Yn,{title:S("div",{className:"text-[16px]",children:"\u5220\u9664\u4F1A\u8BDD"}),closeIcon:null,open:n,width:520,centered:!0,className:"[&:[.ant-modal-content]]:bg-red",footer:J("div",{className:"mt-[16px] flex justify-end",children:[S(G0,{children:"\u53D6\u6D88",onClick:t,className:"mr-[8px]"}),S(G0,{children:"\u786E\u8BA4",onClick:async()=>{try{const p=await c.validateFields();s("ok_remove",p)}catch(p){console.log(p);return}},type:"primary",className:"border-none"})]}),children:S("div",{children:`\u786E\u5B9A\u8981\u5220\u9664\u4F1A\u8BDD\u300C${e.label}\u300D\u5417\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D\u3002`})})})},Io="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFQSURBVHgBpVMxTsNQDLWTiIYBFG7Q3iCcgLIxQJWxZSpbOxFO0HICOhE2shGxEFCGbvQGcAPCCahgIJHoN/5RaEOUBAJPsmTZ3/aT/T4Co23ZxoYeWVACEjj/UOhx6l2E+RzudQfNNcR79ptQjfD1vbE98yfzbFDTEE1ZrBC1/IIJEhYPEYhPKUs3m1OQyJBOWfFPOQX+CQ1qQu6sATBaCLwNrh2/NgOdjQC2FBVu5PW+MTjoDvrccSdfJNILqQCzdB9WpzckudQlg87hYISIl7I7G2YNAZ75SrtFy1wxIBwLwtPAc8ZQA5qq676II5MAw8A7n+z3hpLW2d2V0/pVA99NlGV/BRJdIDbltqcV91++zwesvm2IOH6AEmkTkfsW6Seb6/EL+0dY9EhKl1mYi1Slq3HCQFCP2WHWZJY2qEL6L5LPJ/gy8BfIJmxt6X8C+32HILvaN+0AAAAASUVORK5CYII=",Qt=({title:n,setOpen:s})=>J("div",{style:{width:"100%",height:"60px",borderBottom:"1px solid #EBEBEB",padding:"20px",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"16px",fontWeight:600},children:[S("div",{children:n}),S("img",{src:Li,style:{width:"16px",height:"16px",cursor:"pointer"},onClick:()=>s(!1)})]});Oi();const No=({curFileInfo:n,onClose:s,token:t})=>{var o;const e={title:"",subtitle:"",backgroundColor:"#f8f9fa",showGrid:!1,showLegend:!1,showTooltip:!1,showFullscreen:!1,showMinimap:!1},[f,c]=se({nodeList:[],edgeList:[]});Ce(()=>{console.log("curFileInfo",n)},[n]);const p=async u=>{if(!(!(u!=null&&u.id)||!(u!=null&&u.cyphers)||!(u!=null&&u.fetchUrl)))try{const{cyphers:r,fetchUrl:l,id:E}=u||{};console.log("getGraphData params",r,l,E);const x=await Je.post(l,{cyphers:r,ontologyId:E},{headers:{Authorization:t}});console.log("getGraphData res",x),c((x==null?void 0:x.data)||{})}catch(r){console.log("error",r)}};return Ce(()=>{p(n)},[n]),J("div",{children:[S(Qt,{title:n==null?void 0:n.graphName,setOpen:s}),S("div",{style:{width:"100%",height:"calc(100vh - 60px)"},children:S(Mi,{centerNode:{vid:(o=n==null?void 0:n.traceNode)==null?void 0:o.vid},data:f,layout:{type:"force",linkDistance:190},title:e.title,subtitle:e.subtitle,backgroundColor:e.backgroundColor,showGrid:e.showGrid,showLegend:e.showLegend,showTooltip:e.showTooltip,showFullscreen:e.showFullscreen,showMinimap:e.showMinimap,customPlugins:{},onReady:u=>{console.log("KnowledgeGraphPreview ready:",u)}})})]})},Ro=({content:n,onClose:s,token:t})=>{const e=p=>{if(!(p!=null&&p.metadata))return;const o=ur(p,""),{page_number:u,page_size:r,position:l,offset:E,chunk_type:x}=p.metadata;if(o==="markdown_table")return E!=null&&E.length?{annotations:[{id:F0(),offsets:E}],initialPage:1}:{};{if(!r||!l)return console.log("%c\u7F3A\u5C11\u6587\u4EF6size\u6216\u8005\u6587\u4EF6\u5750\u6807","color: red"),{};const v=Array.isArray(r)?r:JSON.parse(r);if(!v.length)return console.log("%c\u7F3A\u5C11\u6587\u4EF6size","color: red"),{};const h=Array.isArray(l)?l:JSON.parse(l);return!h.length||!u?(console.log("%c\u7F3A\u5C11\u6587\u4EF6\u5750\u6807\u6216\u8005\u6587\u4EF6\u9875\u6570","color: red"),{}):{annotations:h.map((i,m)=>({id:F0(),pageNumber:u[m],x:+(i[0][0]/v[0][0]).toFixed(4),y:+(i[0][1]/v[0][1]).toFixed(4),width:+((i[1][0]-i[0][0])/v[0][0]).toFixed(4),height:+((i[2][1]-i[0][1])/v[0][1]).toFixed(4),content:"",color:x==="image"?"#60f74f":"#4FC3F7"})),initialPage:u[0]}}},f=be(()=>{var p,o;if(console.log("content88888888888",n),n&&t){console.log("content999",n);const{annotations:u,initialPage:r}=e(n),l={...n,metadata:{source:((p=n==null?void 0:n.metadata)==null?void 0:p.source)||n.parse_url||n.url,page_size:(o=n==null?void 0:n.metadata)==null?void 0:o.page_size}},E=jn(Vn(l));return{filePath:E,fileName:Cr(l),fileType:ur(l,E),totalPages:l.pdfPages||0,token:t,annotations:u,initialPage:r,initialZoom:Kn(598,l)}}else return{}},[n]),c=be(()=>f.filePath?(console.log("curData",f),S(Qn,{initialZoom:f.initialZoom||100,convertedFilePath:f.filePath,fileName:f.fileName,fileType:f.fileType,initialPage:f.initialPage,totalPages:f.totalPages,authorization:f.token,annotations:f.annotations,streamApiUrl:"/proxy/index/knowledgeBase/file/stream",eventsEmit:p=>{switch(p){case"viewer:close":s();break}},tools:{close:!0}})):S(rt,{}),[f]);return S("div",{style:{fontFamily:"Source Han Sans CN",fontSize:"12px"},className:"h-full w-full",children:c})},gi=({curFileInfo:n,onClose:s,token:t})=>{const e=be(()=>{var c,p,o;if(n&&t){console.log("content999",n);const u={file_source:n.parse_url||n.parsedFilePath||n.url,file_type:n.file_type,metadata:{source:n.filePath||n.url||((c=n==null?void 0:n.metadata)==null?void 0:c.source)||"",page_size:(p=n==null?void 0:n.metadata)==null?void 0:p.page_size},pdfPages:n.pdfPages},r=jn(Vn(u));return{filePath:r,fileName:Cr(u),fileType:ur(u,r),totalPages:u.pdfPages||0,token:t,initialZoom:Kn(((o=document.getElementById("pdfBox"))==null?void 0:o.clientWidth)||0,u)}}else return{}},[n]),f=be(()=>(console.log("curData",e),e.filePath?S(Qn,{initialZoom:e.initialZoom||100,convertedFilePath:e.filePath,fileName:e.fileName,fileType:e.fileType,initialPage:1,totalPages:e.totalPages,authorization:e.token,streamApiUrl:"/proxy/index/knowledgeBase/file/stream",eventsEmit:c=>{switch(c){case"viewer:close":s();break}},tools:{close:!0}}):S(rt,{})),[e]);return S("div",{id:"pdfBox",className:"h-full overflow-y-auto",children:f})},To=({curFileInfo:n,token:s,onClose:t})=>{const[e,f]=se(1),[c,p]=se(10),[o,u]=se([]),[r,l]=se([]),[E,x]=se(0);Ce(()=>{var m;const i=((m=n==null?void 0:n.metadata)==null?void 0:m.fetchUrl)||(n==null?void 0:n.fetchUrl);i&&h(i)},[n,e,c]);const v=async({url:i,params:m})=>{var d;try{const g=await Je.get(`${xr()}${i}?${new URLSearchParams(m).toString()}`,{headers:{Authorization:s}}),C=(d=g==null?void 0:g.data)==null?void 0:d.data;if(C){const{columns:D,dataList:y,totalData:b}=C;u(((D==null?void 0:D.slice(1))||[]).map(F=>({title:F.businessName,dataIndex:F.physicalName,key:F.physicalName}))),l(y||[]),x(b||[])}}catch(g){console.log("error",g)}},h=async i=>{v({url:`${i}`,params:{pageNo:e,pageSize:c}})},a=be(()=>{const{databaseName:i,businessTableName:m,tableName:d}=n;return`${i} - ${d||m}`},[n]);return J("div",{children:[S(Qt,{title:a,setOpen:t}),(o==null?void 0:o.length)>0?J("div",{children:[S("div",{className:"p-4 overflow-auto h-[calc(100vh-120px)]",children:S(la,{columns:o,dataSource:r,pagination:!1,scroll:{x:"max-content"},rowKey:"id"})}),S("div",{className:"flex justify-end px-[18px]",children:S(ma,{current:e,pageSize:c,responsive:!0,simple:!0,total:E,showSizeChanger:!0,showQuickJumper:!0,onChange:(i,m)=>{f(i),p(m||10)},onShowSizeChange:(i,m)=>{f(1),p(m)}})})]}):S(Ri,{})]})},rn=({i:n,item:s,j:t,clickTag:e})=>(console.log("j in tag",t),console.log("i in tag",n),console.log("item in tag",s),S("div",{style:{minWidth:"16px",height:"16px",backgroundColor:zo[s.key],margin:"0 4px",color:Po[s.key],display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"2px",fontSize:"12px",cursor:"pointer"},onClick:()=>e&&e(n,t,s),children:t.index},t.id)),zo={knowledgeList:"#EAF4FD",searchList:"#E8F7F0",databaseList:"#FFF4E5",graphList:"#E7F8FB"},Po={knowledgeList:"#2072F0",searchList:"#39B83F",databaseList:"#F48C14",graphList:"#10BBD9"},nn=[{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}],Lo=({type:n,data:s,token:t,eventsEmit:e,is_download:f})=>{const[c,p]=se(nn),[o,u]=se("mark"),[r,l]=se(!1),[E,x]=se({}),[v,h]=se("knowledgeList"),[a,i]=se({knowledgeList:[],searchList:[],databaseList:[],graphList:[]}),m=be(()=>{const y=4-c.length,b=Array(y).fill(null).map((T,_)=>({name:"",key:100+_})),F=[...c,...b];return console.log("rrrrrr",F),F},[c]),d=y=>isNaN(y)?"":(+y).toFixed(2),g=(y,b)=>{switch(y){case"knowledgeList":return Ki(b);case"searchList":return Vi;case"databaseList":return ji;case"graphList":return Wi}},C=(y,b)=>y==="graphList"?b.map(F=>({...F,name:F.graphName})).sort((F,T)=>(T.score||0)-(F.score||0)):y==="knowledgeList"?b.map(F=>({...F,file_type:$i(F.source)||F.file_type,name:F.sourceFileName||Hi(F.source)||F.file_name,score:F.rrf_score})).sort((F,T)=>(T.score||0)-(F.score||0)):y==="searchList"?b.map(F=>({...F,name:F.sourceFileName||F.file_name})).sort((F,T)=>(T.score||0)-(F.score||0)):y==="databaseList"?b.map(F=>{const T=F.tableName?`${F.databaseName||"\u6570\u636E\u5E93"} - ${F.tableName}`:F.databaseName||F.name||"\u6570\u636E\u5E93";return{...F,name:T,file_name:T,file_type:"database"}}).sort((F,T)=>(T.score||0)-(F.score||0)):b,D=(y,b,F)=>{var T;switch(F.key){case"knowledgeList":const{pdfPages:_,parsedFilePath:w,order_num:P,tags:R}=y||{},M=b.id||P||"Unknown ID",H=(R||[]).find(z=>z.id===M);if(y.type==="video")return console.log("sdgasdgag",{file:{...y,...H}}),e==null?void 0:e("retrive_tag:click",{file:{...y,...H}});if(console.log("click knowledge tag",y,b),!y||!H)return;const{metadata:K}=H,W=K.source.split("/"),q=W[W.length-1]||"",X=q.split("."),Q=X.slice(0,-1).join(".")||"Unknown Label",k=X[X.length-1]||"Unknown Type";x({id:M,title:Q,file_name:q,file_type:k,file_source:Gi(k)?`${dr}${K.source}`:w,metadata:K,pdfPages:_}),u("mark"),l(!0);break;case"searchList":console.log("click search tag",y,b);break;case"databaseList":console.log("click database tag",y,b),u("database"),x({...y,metadata:y.metadata||{},fetchUrl:y.fetchUrl||((T=y.metadata)==null?void 0:T.fetchUrl)||""}),l(!0);break;case"graphList":console.log("click graph tag",y,b),u("graphPreview"),x({...y,traceNode:((s==null?void 0:s.traceNode)||[]).find(z=>z.id===b.id)}),l(!0);break}};return Ce(()=>{if(n!==mi.REFERENCELIST||(console.log("data in reference drawer",s),!s))return;const{graphRefs:y,knowledgeRefs:b,webRefs:F,databaseRefs:T}=s;y!=null&&y.length&&(a.graphList=C("graphList",y)),b!=null&&b.length&&(a.knowledgeList=C("knowledgeList",b)),F!=null&&F.length&&(a.searchList=C("searchList",F)),T!=null&&T.length&&(a.databaseList=C("databaseList",T));const _=nn.filter(w=>{var P;return(P=a[w.key])==null?void 0:P.length}).sort((w,P)=>{var R,M;return(((R=a[P.key])==null?void 0:R.length)||0)-(((M=a[w.key])==null?void 0:M.length)||0)});p(_),_!=null&&_.length&&h(_[0].key),i({...a})},[s]),J(rt,{children:[J("div",{className:"listWrap w-full h-full",children:[S(Qt,{title:"\u77E5\u8BC6\u6EAF\u6E90",setOpen:()=>{const y=new CustomEvent("aichat:right_set",{detail:{collapsed:!0}});window.dispatchEvent(y)}}),J("div",{style:{height:"calc(100% - 60px)"},children:[S("div",{className:"tabs",style:{display:"flex",justifyContent:"space-between",padding:"12px 20px"},children:m.map(y=>S("div",{className:"tab-item",style:{padding:"5.5px 12px",backgroundColor:y.name?v===y.key?"#4E6EF2":"#F5F6F9":"transparent",cursor:"pointer",borderRadius:"4px",color:v===y.key?"#FFFFFF":"#4E5969",fontSize:"14px",minWidth:"80px",display:"flex",justifyContent:"center"},onClick:()=>{y.name&&h(y.key)},children:y.name},y.key))}),S("div",{className:"listBox",style:{height:"calc(100% - 66px)",overflowY:"auto",display:"flex",flexDirection:"column",alignItems:"center",willChange:"scroll-position",transform:"translateZ(0)"},children:c.map(y=>{let b=a[y.key]||[];return v!==y.key?null:S("div",{children:b.map(F=>{var T,_,w,P,R,M;return J("div",{style:{width:"360px",padding:"4px 8px",borderRadius:"4px",margin:"6px 0",cursor:"pointer"},className:"listItemBox",onClick:()=>{y.key==="searchList"&&window.open(F.link,"_blank")},children:[J("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[J("div",{style:{width:y.hideBtns?"339px":"288px",fontSize:"14px",color:"#1D2129",fontWeight:"700",display:"flex",alignItems:"center"},children:[S("img",{src:g(y.key,F.file_type),style:{width:"16px",height:"16px",marginRight:"2px"}}),S(tt,{placement:"topLeft",title:((T=F==null?void 0:F.name)==null?void 0:T.length)>17?F.name:"",children:S("div",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:y.hideBtns?"322px":"258px"},onClick:()=>{var H;y.key==="knowledgeList"?e==null||e("knowledge_referenceFile_title:click",{data:{...F,file_type:F.file_type,file_name:F.file_name,metadata:F.metadata,parsedFilePath:F.parsedFilePath}}):y.key==="databaseList"&&(u("database"),x({...F,metadata:F.metadata||{},fetchUrl:F.fetchUrl||((H=F.metadata)==null?void 0:H.fetchUrl)||""}),l(!0))},children:F.name})})]}),J("div",{style:{width:"52px",justifyContent:"space-between",alignItems:"center",marginRight:"8px",display:y.hideBtns||F.type==="video"?"none":"flex"},children:[S("img",{src:Io,style:{width:"16px",height:"16px",cursor:"pointer"},onClick:()=>{e==null||e("referenceFile_filechat",{data:{...F,file_type:F.file_type,file_name:F.file_name,metadata:F.metadata,parsedFilePath:F.parsedFilePath}})}}),S("div",{style:{borderRight:"1px solid #E5E6EB",height:"14px"}}),S("img",{src:Ui,style:{width:"16px",height:"16px",cursor:f?"pointer":"not-allowed"},onClick:()=>{var K,W,q;if(!((K=F==null?void 0:F.tags)!=null&&K.length)&&!((W=F==null?void 0:F.metadata)!=null&&W.source)||!f)return;const H=((q=((F==null?void 0:F.tags)||[])[0])==null?void 0:q.metadata)||(F==null?void 0:F.metadata);qi({filePath:`${dr}${H.source}`,fileName:Cr({metadata:H}),token:t})}})]})]}),!!(typeof F.score=="string"||typeof F.score=="number"||(_=F==null?void 0:F.tags)!=null&&_.length&&F.tags.length>0&&F.tags.length<=10)&&J("div",{style:{display:"flex",justifyContent:"space-between",height:"18px",marginTop:"4px"},children:[(typeof F.score=="string"||typeof F.score=="number")&&J("div",{style:{backgroundColor:"#F2F2FB",borderRadius:"4px",padding:"2px 3px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px"},children:[S("span",{style:{color:"#4E5969",marginRight:"6px"},children:"\u5206\u6570:"}),S("span",{style:{color:"#1D2129"},children:d(F.score)})]}),S("div",{style:{flex:1,display:"flex",justifyContent:"flex-end"},children:((w=F==null?void 0:F.tags)!=null&&w.length&&F.tags.length>0&&F.tags.length<=10?F.tags:[]).map(H=>S(rn,{i:F,item:y,j:H,clickTag:D},H.id))})]}),S("div",{style:{flex:1,display:"flex",justifyContent:"flex-start",marginTop:"4px"},children:((P=F==null?void 0:F.tags)!=null&&P.length&&F.tags.length>10?F.tags:[]).map(H=>S(rn,{i:F,item:y,j:H,clickTag:D},H.id))}),!!((R=F==null?void 0:F.main_source)!=null&&R.length)&&J("div",{style:{flex:1,display:"flex",alignItems:"flex-start",marginTop:"4px"},children:[S("div",{style:{fontSize:"12px",color:"#4E5969",width:"60px"},children:"\u5173\u8054\u6587\u6863:"}),S(tt,{placement:"topLeft",title:((M=nr(F.main_source[0]))==null?void 0:M.length)>22?nr(F.main_source[0]):"",children:S("div",{style:{fontSize:"12px",color:"#4E5969",width:"289px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:nr(F.main_source[0])})})]})]},F.id)})},y.key)})})]})]}),S(Yt,{drawer:{styles:{body:{padding:0},header:{display:"none"}}},children:J(Zn,{autoFocus:!1,onClose:()=>l(!1),open:r,width:v==="graphList"?"100%":720,className:"overflow-x-hidden",destroyOnClose:!0,afterOpenChange:y=>{y||x(null)},children:[o==="graphPreview"&&S(No,{curFileInfo:E,onClose:l,token:t}),o==="mark"&&S(Ro,{content:E,onClose:l,token:t}),o==="preview"&&S(gi,{curFileInfo:E,onClose:l,token:t}),o==="database"&&S(To,{curFileInfo:E,onClose:l,token:t})]})})]})},Oo=({fileData:n,token:s})=>{const[t,e]=se([]);Ce(()=>{var u;const p=n==null?void 0:n.knowledgeBases;if(!(p!=null&&p.length))return;const o=((u=p[0])==null?void 0:u.treeData)||[];o!=null&&o.length&&e(o)},[n]);const f=He(new Map),c=async(p,o)=>{var u,r;if(!f.current.get(p==null?void 0:p.fetchUrl))try{const l=t[o];l.loading=!0;const E=[...t];e(E);const x=await Je.get(`${Xi()}/${p.fetchUrl}`,{headers:{Authorization:s}}),v=(r=(u=x==null?void 0:x.data)==null?void 0:u.data)==null?void 0:r.records;if(v){const h=t[o];h.loading=!1,h.children=v;const a=[...t];a[o]=h,e(a),f.current.set(p==null?void 0:p.fetchUrl,!0)}else{const h=t[o];h.loading=!1;const a=[...t];e(a)}}catch{const E=t[o];E.loading=!1;const x=[...t];e(x)}};return J(rt,{children:[S(Qt,{title:"\u77E5\u8BC6\u5E93\u6587\u6863\u76EE\u5F55",setOpen:()=>{const p=new CustomEvent("aichat:right_set",{detail:{collapsed:!0}});window.dispatchEvent(p)}}),S("div",{style:{height:"calc(100% - 60px)",overflowY:"auto",padding:"16px"},children:t.map((p,o)=>{var u;return p.type==="file"?J("div",{className:"flex",style:{marginTop:"8px"},children:[Gn(p),S(tt,{placement:"top",title:((u=p.name)==null?void 0:u.length)>23?p.name:"",children:S("div",{style:{paddingLeft:"6px",width:"346px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"default",fontSize:"14px"},children:p.name})})]}):S(Mo,{item:p,index:o,clickFileItem:c},o)})})]})},Mo=({item:n,index:s,clickFileItem:t})=>{var c;const[e,f]=se(!1);return J("div",{style:{marginTop:"8px"},children:[J("div",{className:"flex cursor-pointer",onClick:()=>{f(!e),!e&&t(n,s)},children:[Gn(n),S(tt,{placement:"top",title:((c=n.name)==null?void 0:c.length)>23?n.name:"",children:J("div",{style:{paddingLeft:"6px",width:"346px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"14px"},children:[n.name," (",n.fileCount||0,")"]})})]},s),S("div",{style:{padding:"2px 0 2px 14px",margin:"8px 0 0 7px",borderLeft:"2px solid #E5E6EB",display:e?"block":"none"},children:(n.children||[]).map((p,o)=>{var u;return J("div",{className:"flex items-center",children:[S("div",{style:{width:"4px",height:"4px",borderRadius:"2px",background:"black"}}),S(tt,{placement:"top",title:((u=p.name)==null?void 0:u.length)>26?p.name:"",children:S("div",{style:{paddingLeft:"6px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",width:"336px"},children:p.fileName})})]},o)})})]})};var mi=(n=>(n.REFERENCELIST="referencelist",n.ALLFILELIST="allFileList",n))(mi||{});function Ac(n=Yi){return function({token:t,url:e="http://localhost:8888",styles:f,CSRFToken:c,eventsEmit:p,scrollOld:o,...u}){const r=be(()=>Ti({theme:yr,mode:"light"},f),[f]),[l,E]=se(!1),[x,v]=se(!1),[h,a]=se(null),[i,m]=se(!1),[d,g]=se("mark"),[C,D]=se({url:"",parse_url:"",file_type:"",file_name:""}),[y,b]=se([]),[F,T]=se(1),[_]=se(16),[w,P]=se(0),[R,M]=se(!1),[H,K]=se([]),[W,q]=se(void 0),[X,Q]=se([]),[k,z]=se([]),[N,I]=se(void 0),[$,U]=se({display:"ready",sender:"ready",app:"initializing"});function Y(A,B){if(!B)return A;const O=Array.isArray(A)?[...A]:{...A};for(const L in B)if(B[L]!==void 0&&B[L]!==null&&Object.prototype.hasOwnProperty.call(B,L))if(L==="actions"&&Array.isArray(A[L])&&Array.isArray(B[L])){const G=new Map;A[L].forEach(Z=>{Z.name&&G.set(Z.name,Z)}),B[L].forEach(Z=>{Z.name&&G.set(Z.name,Z)}),O[L]=Array.from(G.values())}else typeof A[L]=="object"&&A[L]!==null&&!Array.isArray(A[L])&&typeof B[L]=="object"&&B[L]!==null&&!Array.isArray(B[L])?O[L]=Y(A[L],B[L]):O[L]=B[L];return O}const[j,ie]=se(()=>Y(qr,u.senderConfig));Ce(()=>{if(u.senderConfig){const A=Y(qr,u.senderConfig);ie(A)}},[u.senderConfig]);const{fileStatuses:ve,setFileStatuses:De,pollFileStatus:Oe,handleRemoveFromTemp:ce,resetStopFlag:Fe,setStopFlag:We,stoppedRef:ke,getTempFileList:Ge,setFileManagerData:Xe,fileManagerData:Re}=Ao({url:e,token:t,CSRFToken:c,activeSessionId:W}),[Ye,_e]=Ze.useState(()=>{var B;if(!k||k.length===0)return;const A=k.find(O=>O.isDefault);return A?A.id:(B=k[0])==null?void 0:B.id});Ze.useEffect(()=>{if(!k||k.length===0)return;const A=k.some(B=>B.id===Ye);if(!Ye||!A){const B=k.find(O=>O.isDefault);_e(B?B.id:k[0].id)}},[k]);const[fe,qe]=se({}),Ve=He(void 0),Ke=He(void 0),V=He(void 0),le=He(null),ge=He(void 0),o0=He([]),[z0,s0]=se([]),[Ee,w0]=se({}),[S0,v0]=se(!1),[e0,P0]=se([]),[L0,Q0]=se(!1),{api_startChat_re:E0,addEmptyMessage:Z0,setLastEmptyMessage:O0,stopStream:B0,cancelStreamBySessionId:c0}=Fo({baseUrl:e,CSRFToken:c,token:t,setChatData:K,activeSessionId:W,setAppStatus:U,setConversationList:b}),Be=be(()=>{const A={};return(k||[]).forEach(B=>{A[B.id]=B}),A},[k]),ae=be(()=>{const A=H.find(O=>O.id===W)||{id:W,messages:[]},B=A.configId?Be[A.configId]:null;return{...A,assistantInfo:B}},[H,W,Be]);Ce(()=>{console.log("currentChatData",ae)},[ae]);const d0=be(()=>{if(ae.configId&&Be){const A=Be[ae.configId];return A!=null&&A.configJson?JSON.parse(A.configJson).is_download:!1}else return!1},[ae.configId,Be]);be(()=>{if((ae.configId||N)&&Be){const A=Be[ae.configId];if(A!=null&&A.configJson){const B=JSON.parse(A.configJson);return console.log("is_enableThinking",ae.configId,Be,N),!!B.thinking}else if(N){const B=Be[N];if(B!=null&&B.configJson)return!!JSON.parse(B.configJson).thinking}}return!1},[ae.configId,Be,N]),Ce(()=>{if(Ve.current&&Ve.current!==W){const B=Ve.current,O=y.find(Z=>Z.sessionId===B&&Z.isNew),L=H.find(Z=>Z.id===B&&Z.isNew),G=L&&L.messages&&L.messages.length>0;O&&!G&&(b(Z=>Z.filter(oe=>oe.sessionId!==B)),K(Z=>Z.filter(oe=>oe.id!==B)))}Ve.current=W;const A=ae.messages&&ae.messages.length>0?ae.messages[ae.messages.length-1].recommendQuestion:[];Q(A)},[W,y,H,ae.messages]);const k0=async A=>{var B,O,L,G;if(!R){M(!0);try{const Z=await Je.get(`${e}/qa/dialogue/list?pageNo=${A}&pageSize=${_}&sysType=INT_SESSION`,{headers:{Authorization:t}}),oe=((O=(B=Z==null?void 0:Z.data)==null?void 0:B.data)==null?void 0:O.records)||[],re=((G=(L=Z==null?void 0:Z.data)==null?void 0:L.data)==null?void 0:G.total)||0;P(re),b(me=>{const ye=new Map;return[...me,...oe].forEach(ze=>{ye.set(ze.sessionId,ze)}),Array.from(ye.values())}),T(A)}catch{}finally{M(!1)}}};Ce(()=>{U(A=>({...A,app:"initializing"})),Je.get(`${e}/qa/search/config/helper/list?pageNo=1&pageSize=3000`,{headers:{Authorization:t}}).then(A=>{z(A.data.data||[])}).catch(()=>{}),k0(1).then(()=>{W||l0(),U(A=>({...A,app:"ready"}))}).catch(()=>{U(A=>({...A,app:"error"}))})},[]),Ce(()=>{W&&(U(A=>({...A,display:"loading"})),Ge(W),Je.get(`${e}/qa/dialogue/getDialogBySessionId?sessionId=${W}`,{headers:{Authorization:t}}).then(A=>{var Pe;if(!A.data.data){U(ee=>({...ee,display:"ready"}));return}const B=((Pe=A.data.data)==null?void 0:Pe.queryReplyPairList)||[],O=po(B),{sessionId:L,searchConfigDTO:G,filePath:Z,configId:oe,reference:re,webReference:me,uploadedFiles:ye,fileList:ze,currentFiles:Ne}=A.data.data;if(O.length>0){const ee=O.length-1-[...O].reverse().findIndex(de=>de.istype==="ai");ee>=0&&ee<O.length&&O[ee].istype==="ai"&&(re&&(O[ee].reference=re),me&&(O[ee].webReference=me))}const ne=Ne||ze||ye;if(ne&&O.length>0){const ee=[...O].reverse().findIndex(de=>de.istype==="user");ee!==-1&&(console.log(O[O.length-1-ee].currentFiles,"filesData"),O[O.length-1-ee].currentFiles=ne)}y.find(ee=>ee.sessionId===L)&&b(ee=>ee.map(de=>de.sessionId===L?{...de,searchConfigDTO:G,filePath:Z,configId:oe}:de));const ue={configId:A.data.data.configId,filePath:A.data.data.filePath,searchConfigDTO:A.data.data.searchConfigDTO||{},sessionId:A.data.data.sessionId,label:A.data.data.label,kbId:A.data.data.kbId};K(ee=>{const de=ee.filter(je=>je.id!==W);return[{id:W,messages:O,...ue},...de]}),U(ee=>({...ee,display:"ready"}))}).catch(A=>{console.error("\u83B7\u53D6\u804A\u5929\u6570\u636E\u5931\u8D25:",A),A.response&&A.response.status===404&&l0(),U(B=>({...B,display:"error"}))}))},[W,e,t]),Ce(()=>{const A=Re.uploadedFiles.length;ie(B=>{const O=Array.isArray(B.actions)?B.actions:[];return{...B,actions:O.map(G=>G.name==="history"?{...G,badgeCount:A}:G)}})},[Re.uploadedFiles]),Ce(()=>{Qi({url:e,token:t},A=>{P0(A)})},[]),Ze.useEffect(()=>{ve.length&&K(A=>{if(!A[0])return A;const{messages:B}=A[0];for(let O=B.length-1;O>=0;O--)if(B[O].istype==="user"){const L=B[O].currentFiles||[];B[O].currentFiles=ve.map(G=>{var oe,re,me;const Z=L.find(ye=>ye.uid===G.uid);return{name:((oe=G.file)==null?void 0:oe.name)||G.name,size:((re=G.file)==null?void 0:re.size)||G.size,type:((me=G.file)==null?void 0:me.type)||G.type,status:G.status,uid:G.uid,url:G.url||(Z==null?void 0:Z.url)||""}});break}return[...A]})},[ve]);let r0=null,g0=null;const M0=(A,B,O,L)=>{g0=Oe(A,{onStatusUpdate:B,onComplete:O,onFail:L})},we=(A,B)=>{K(O=>{const L=[...O];return L[0]&&(L[0]={...L[0],messages:L[0].messages.map(G=>G.queryId===A?{...G,feedbackResult:B}:G)}),L})},Qe=async A=>{var B,O;if(A)try{const L=(ae==null?void 0:ae.configId)||((B=Be==null?void 0:Be[(ae==null?void 0:ae.configId)||""])==null?void 0:B.id)||"",G=await Je.get(`${e}/qa/ai/recommendQuestion?queryId=${A}&configId=${L||""}`.replace(/\?&/,"?"),{headers:{Authorization:t}});Q(((O=G.data)==null?void 0:O.data)||[])}catch{Q([])}};function Ie(A){const{content:B,audioUrl:O,filePaths:L,queryId:G}=A;if(!W||!G)return;const Z=(ae==null?void 0:ae.messages)||[],oe=Z.findIndex(ne=>(ne==null?void 0:ne.queryId)===G&&((ne==null?void 0:ne.istype)==="ai"||(ne==null?void 0:ne.isUser)===!1));let re;if(oe>0)for(let ne=oe-1;ne>=0;ne-=1){const te=Z[ne];if((te==null?void 0:te.istype)==="user"||(te==null?void 0:te.isUser)===!0){re=te;break}}const me=(re==null?void 0:re.content)??B;if(!me)return;const ye=(re==null?void 0:re.filePaths)??L,ze=(typeof ye=="string"&&ye?JSON.parse(ye):ye||[]).map(ne=>ne.uid),Ne=Date.now();O0({now:Ne}),U(ne=>({...ne,display:"processing",sender:"processing"})),oe>=0&&Z[oe]&&K(ne=>{if(!ne[0])return ne;const te=ne[0],ue=te.messages||[];if(oe>=ue.length)return ne;const Pe=ue.slice();return Pe[oe]={...Pe[oe],content:Pe[oe].content,reference:"[]",webReference:"[]",graphReference:null,databaseReference:null,status:2,chain:void 0},[{...te,messages:Pe},...ne.slice(1)]}),A.clearFn&&A.clearFn(),b(ne=>ne.map(te=>te.sessionId===W?{...te,gmtModified:Ne}:te)),E0({configId:ae.configId,content:me,fileUids:ze,lastDate:Ne,name:ae.label||"",queryId:G,sessionId:String(W||""),type:(re==null?void 0:re.audioUrl)??O?"audioUrl":"text",audioUrl:((re==null?void 0:re.audioUrl)??O)||"",enableThinking:!!fe.reasoning,enableWebsearch:!!fe.netSearch,qaChannel:fe.qaChannel,tempKnowledgeBaseCheck:t0.current},ne=>{Qe(G)})}async function Te(A,B){if($.sender!=="ready"){Ue.warning("\u5F53\u524D\u5BF9\u8BDD\u6B63\u5728\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u518D\u53D1\u9001\u65B0\u7684\u95EE\u9898");return}if(!W)return;const O=new CustomEvent("aichat:right_set",{detail:{collapsed:!0}});window.dispatchEvent(O);const L=y.find(G=>G.sessionId===W);if(L&&L.isNew){let G=!1;const Z=N||L.configId,oe=A&&A.content?A.content.slice(0,20):L.label||"\u672A\u547D\u540D\u4F1A\u8BDD";if(await new Promise((re,me)=>{ra({url:e,token:t,CSRFToken:c},{label:oe,sessionId:L.sessionId,sysType:"INT_SESSION",configId:Z},ye=>{ye&&ye.data&&ye.data.sessionId?(b(ze=>ze.map(Ne=>Ne.sessionId===L.sessionId?{...Ne,isNew:!1,configId:Z,label:oe}:Ne)),K(ze=>ze.map(Ne=>Ne.id===L.sessionId?{...Ne,isNew:!1,configId:Z,label:oe}:Ne)),G=!0,re()):(Ue.error("\u521B\u5EFA\u4F1A\u8BDD\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),me())})}),!G)return;f0(W,A,B,Z);return}f0(W,A,B)}function f0(A,B,O,L){const G="query-"+F0(32),Z=y.find(ne=>ne.sessionId===A),oe=L||(Z==null?void 0:Z.configId)||ae.configId;console.log("\u52A9\u624B\u914D\u7F6E\u8BE6\u60C5",oe);const re=B.content||B.text||"",me=typeof re=="string"?re:String(re),ye=me?me.slice(0,20):"\u672A\u547D\u540D\u4F1A\u8BDD";let ze;if(B.files&&B.files.length>0&&(ze=B.files.map(ne=>({name:ne.file.name,size:ne.file.size,type:ne.file.type,filePath:ne.filePath||"",convertedFilePath:ne.convertedFilePath||"",uid:ne.uid||""}))),console.log("\u672C\u5730\u6587\u4EF6\u4E0A\u4F20",B.files),Z0({content:me,queryId:G,currentFiles:ze,filePaths:ze?JSON.stringify(ze):void 0}),b(ne=>ne.map(te=>te.sessionId===A&&te.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&te.isNew?{...te,label:ye,gmtModified:Date.now(),isNew:!1}:te)),K(ne=>ne.map(te=>te.id===A&&te.label==="\u672A\u547D\u540D\u4F1A\u8BDD"&&te.isNew?{...te,label:ye,isNew:!1}:te)),B.files&&B.files.length>0){U(ee=>({...ee,sender:"uploading",display:"uploading"})),r0=new AbortController,Fe();const ne=B.files.map(()=>`rc-upload-${Date.now()}-${Math.random().toString(36).slice(2)}`),te=B.files.map((ee,de)=>({...ee,uid:ne[de],status:"uploading"}));De(te);const ue=new FormData;B.files.forEach(ee=>{ue.append("files",ee.file)});const Pe=String(A||"");ue.append("sessionId",Pe),ue.append("uids",ne.join(",")),Je.post(`${e}/index/knowledgeBase/file/uploadFiles`,ue,{headers:{Authorization:t,"Content-Type":"multipart/form-data"},signal:r0.signal}).then(ee=>{var y0,_r,wr,Sr,kr,Ir,Nr,Rr,Tr,zr;if(console.log("\u6587\u4EF6\u4E0A\u4F20\u7684\u6253\u5370\u7ED3\u679C",ee),console.log("\u6587\u4EF6\u4E0A\u4F20\u54CD\u5E94\u8BE6\u60C5:",{status:ee.status,success:(y0=ee.data)==null?void 0:y0.success,dataType:Array.isArray((_r=ee.data)==null?void 0:_r.data)?"array":typeof((wr=ee.data)==null?void 0:wr.data),dataLength:Array.isArray((Sr=ee.data)==null?void 0:Sr.data)?ee.data.data.length:"N/A",errorMsg:(kr=ee.data)==null?void 0:kr.errorMsg,errorCode:(Ir=ee.data)==null?void 0:Ir.errorCode,fullResponse:ee.data}),ke.current)return;const de=(Nr=ee.data)==null?void 0:Nr.data,Me=((Rr=ee.data)==null?void 0:Rr.success)===!0,je=Array.isArray(de)&&de.length>0;if(Me&&je){const i0=de,H0=i0.map(Se=>Se.uid);De(Se=>Se.map(Le=>{const Ae=de.find(pe=>pe.uid===Le.uid);return Ae?{...Le,...Ae}:Le})),U(Se=>({...Se,sender:"processing",display:"analyzing"})),De(Se=>Se.map(Le=>({...Le,status:"parsing"}))),M0(H0,Se=>{if(!Se||!Array.isArray(Se)){console.warn("pollFileStatus \u56DE\u8C03\u8FD4\u56DE\u7684 serverStatuses \u65E0\u6548:",Se);return}if(De(Ae=>Ae.map(pe=>{const b0=Se.find(p0=>p0&&p0.uid===pe.uid);if(b0)switch(b0.fileParseStatus??b0.status){case 3:return{...pe,status:"done"};case 4:return{...pe,status:"error"};case 1:case 2:default:return{...pe,status:"parsing"}}return pe})),Array.isArray(Se)&&Se.length>0&&Se.every(Ae=>{if(!Ae)return!1;const pe=Ae.fileParseStatus??Ae.status;return pe===3||pe===4})){De([]);const Ae=new Map;(Se||[]).forEach(pe=>{Ae.set(pe.id,pe)}),Xe(pe=>({uploadedFiles:oa(pe.uploadedFiles,i0).map(p0=>{var et;return{...p0,pdfPages:((et=Ae.get(p0.id))==null?void 0:et.pdfPages)||0}})}))}},()=>{O==null||O(),U(Le=>({...Le,sender:"processing",display:"processing"})),De(Le=>Le.map(Ae=>{const pe=i0.find(b0=>b0.uid===Ae.uid);return pe?{...Ae,...pe,url:pe.filePath,filePath:pe.filePath,name:pe.fileName||Ae.name,convertedFilePath:pe.convertedFilePath||Ae.convertedFilePath}:Ae})),K(Le=>{if(!Le[0])return Le;const{messages:Ae}=Le[0];for(let pe=Ae.length-1;pe>=0;pe--)if(Ae[pe].istype==="user"){const b0=Ae[pe].currentFiles||[];Ae[pe].currentFiles=b0.map(p0=>{const et=i0.find(Di=>Di.uid===p0.uid);return et?{...p0,...et}:p0});break}return[...Le]});const Se=Date.now();E0({configId:oe,content:me,fileUids:H0,lastDate:Se,name:ye,queryId:G,sessionId:String(A||""),type:"text",audioUrl:"",enableThinking:!!fe.reasoning,enableWebsearch:!!fe.netSearch,qaChannel:fe.qaChannel,tempKnowledgeBaseCheck:t0.current},Le=>{Qe(G)})},Se=>{U(Le=>({...Le,display:"ready",sender:"ready"})),De(Le=>Le.map(Ae=>({...Ae,status:"error",message:Se})))})}else{let i0="\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25";(Tr=ee.data)!=null&&Tr.errorMsg?i0=ee.data.errorMsg:Me?je||(Array.isArray(de)?de.length===0&&(i0="\u4E0A\u4F20\u5931\u8D25: \u8FD4\u56DE\u6570\u636E\u4E3A\u7A7A"):i0=`\u4E0A\u4F20\u5931\u8D25: \u8FD4\u56DE\u6570\u636E\u683C\u5F0F\u9519\u8BEF\uFF0C\u671F\u671B\u6570\u7EC4\uFF0C\u5B9E\u9645\u4E3A ${typeof de}`):i0=`\u4E0A\u4F20\u5931\u8D25: success=${(zr=ee.data)==null?void 0:zr.success}`,console.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\u8BE6\u60C5:",{errorMsg:i0,response:ee.data,isSuccess:Me,isValidData:je}),Ue.error(i0),U(H0=>({...H0,display:"error",sender:"ready"})),De(H0=>H0.map(Se=>({...Se,status:"error",message:i0})))}}).catch(ee=>{var de,Me;((de=ee==null?void 0:ee.response)==null?void 0:de.status)===413?(Me=ee==null?void 0:ee.response)!=null&&Me.statusText.includes("Request Entity Too Large")&&Ue.error("\u6587\u4EF6\u8D85\u8FC7\u6700\u5927\u53EF\u4E0A\u4F20\u9650\u5236"):Ue.error("\u7F51\u7EDC\u9519\u8BEF"),U(je=>({...je,display:"error",sender:"ready"})),De(je=>je.map(y0=>({...y0,status:"error",message:"\u7F51\u7EDC\u9519\u8BEF"})))});return}U(ne=>({...ne,display:"processing",sender:"processing"}));const Ne=Date.now();b(ne=>ne.map(te=>te.sessionId===A?{...te,gmtModified:Ne}:te)),O==null||O(),E0({configId:oe,content:me,fileUids:[],lastDate:Ne,name:ye,queryId:G,sessionId:String(A||""),type:"text",audioUrl:"",enableThinking:!!fe.reasoning,enableWebsearch:!!fe.netSearch,qaChannel:fe.qaChannel,tempKnowledgeBaseCheck:t0.current},ne=>{Qe(G)})}function A0(A){A.restult==1?ir({url:e,token:t,CSRFToken:c},{queryId:A.queryId},()=>{we(A.queryId,null)}):Or({url:e,token:t,CSRFToken:c},{restult:1,queryId:A.queryId},()=>{we(A.queryId,1)})}function l0(A){const B=F0(32),O={sessionId:B,label:"\u672A\u547D\u540D\u4F1A\u8BDD",gmtModified:Date.now(),searchConfigDTO:{},filePath:"",configId:"",isNew:!0};b(L=>[{...O,messages:[]},...L]),K(L=>[{id:B,messages:[],...O},...L]),q(B)}function m0(A){if(A!=null&&A.sessionId&&A.sessionId!==W){W&&c0(W),q(A.sessionId),U(O=>({...O,sender:"ready"}));const B=H.find(O=>O.id===A.sessionId);if(B&&B.messages&&B.messages.length>0){const O=[...B.messages].reverse().find(L=>L.istype==="ai");O&&O.recommendQuestion?Q(O.recommendQuestion):Q([])}else Q([])}}const U0=async A=>new Promise((B,O)=>{na({url:e,token:t,CSRFToken:c},{sessionId:A},L=>{L?(Ue.success("\u5220\u9664\u6210\u529F!"),B(L)):(Ue.error("\u5220\u9664\u5931\u8D25!"),O(L))})}),J0=async()=>{try{return b([]),P(0),await k0(1),[]}catch(A){throw Ue.error("\u5237\u65B0\u4F1A\u8BDD\u5217\u8868\u5931\u8D25"),A}},Jt=async(A,B)=>new Promise((O,L)=>{ia({url:e,token:t,CSRFToken:c},{label:B,sessionId:A},G=>{if(G){const Z=Date.now();b(oe=>oe.map(re=>re.sessionId===A?{...re,label:B,gmtModified:Z}:re)),K(oe=>oe.map(re=>re.id===A?{...re,label:B}:re)),Ue.success("\u91CD\u547D\u540D\u6210\u529F!"),O(G)}else Ue.error("\u91CD\u547D\u540D\u5931\u8D25"),L(G)})}),I0=A=>{b(B=>{const O=B.filter(L=>L.sessionId!==A);return W===A&&(O.length>0?q(O[0].sessionId):l0()),O})},q0=(A,B)=>{const O=Date.now();b(L=>L.map(G=>G.sessionId===A?{...G,label:B,gmtModified:O}:G)),K(L=>L.map(G=>G.id===A?{...G,label:B}:G))},er=A=>{Or({url:e,token:t,CSRFToken:c},{...A,...Ee,restult:0},()=>{we(Ee.queryId,0)})},nt=A=>{const B=A.new_name,O=h.data.label;B&&B!==O?h.async_renameConversation(B).then(()=>{h.fn_renameItemInList(B),E(!1)}).catch(()=>{}):E(!1)},it=A=>{h.async_deleteConversation().then(()=>{h.fn_removeItemFromList(),v(!1)}).catch(()=>{})},N0=(A,B)=>{switch(console.log(A,B),A){case"close_remove":v(!1);break;case"close_rename":E(!1);break;case"ok_rename":nt(B);break;case"ok_remove":it();break}},at=async({url:A,params:B,replacePredataFunction:O})=>{var L,G;try{const Z=await Je.post(A,B,{headers:{Authorization:t}}),oe=(G=(L=Z==null?void 0:Z.data)==null?void 0:L.data)==null?void 0:G.data;oe&&O(oe)}catch(Z){console.log("error",Z)}},ot=async A=>{var B;try{const O=await Je.get(`${xr()}/index/knowledgeBase/file/getFileStatusByUids?uids=${A.data.uids}`,{headers:{Authorization:t}});return console.log("resslkdjgalsg",O),(B=O==null?void 0:O.data)==null?void 0:B.data}catch{}},st=async A=>{var B;if(aa.includes(A.file_type)){const O=(B=A.metadata)!=null&&B.source?`${dr}${A.metadata.source}`:A.url||A.convertedFilePath||A.filePath;D({...A,parse_url:O}),g("preview"),m(!0);return}try{const O=await ot({data:{uids:A.uid},config:{url:xr(),token:t,enableMock:!1}});if(O!=null&&O.length){const L=O[0];D({...A,parse_url:L.convertedFilePath}),g("preview"),m(!0)}}catch{}},t0=He(!1),n0=(A,B)=>{var O,L,G,Z,oe,re,me;switch(console.log(`[Event] ${A}`,B),A){case"TempKnowledgeBase":t0.current=B;break;case"reference_file:click":if(B.file_type==="image")return;if(!B.parse_url){if(!B.uid)return B.references?void 0:Ue.warning("\u6587\u4EF6\u8FD8\u672A\u89E3\u6790\u5B8C\u6210,\u8BF7\u7A0D\u540E\u9884\u89C8");st(B);return}D({...B,file_type:B.type,file_name:B.file}),g("preview"),m(!0);break;case"conversations:load_more":{y.length<w&&!R&&k0(F+1);break}case"retrieve-sql-data:pagingation_click":const{page:ye,pageSize:ze,fetchUrl:Ne,source:ne,replacePredataFunction:te}=B;at({url:`${e}${Ne}`,replacePredataFunction:te,params:{pageNo:ye,pageSize:ze,convertedFilePath:ne,stream:!1}});break;case"web_referenceFile_title:click":if(!((O=B==null?void 0:B.data)!=null&&O.link))return console.error("\u6CA1\u6709\u7F51\u9875\u5730\u5740");window.open(B.data.link,"_blank");break;case"conversation:item_click":m0(B);break;case"files:finished_animation_complete":De([]);break;case"conversation:create":l0();break;case"conversation:new_assistant_change":I(B.assistantId);break;case"conversations:rename_icon_clicked":a({data:B,async_renameConversation:ue=>Jt(B.sessionId,ue),fn_renameItemInList:ue=>q0(B.sessionId,ue)}),E(!0);break;case"conversations:delete_icon_clicked":a({data:B,async_deleteConversation:()=>U0(B.sessionId),async_refreshConversationList:J0,fn_removeItemFromList:()=>I0(B.sessionId)}),v(!0);break;case"sender:send":Te(B,B.clearFn);break;case"sender:send_recommandQuestion":{const ue=((B==null?void 0:B.content)??"").toString();if(!ue)break;Te({content:ue},()=>{});break}case"chatbox:follow_up_question_click":{const ue=((B==null?void 0:B.question)??(B==null?void 0:B.content)??"").toString();if(!ue)break;Te({content:ue},()=>{});break}case"sender:stop":We(),r0&&(r0.abort(),r0=null),g0&&(g0(),g0=null),U(ue=>({...ue,display:"ready",sender:"ready"})),De([]),B0==null||B0();break;case"sender:clear":(L=B.clearFn)==null||L.call(B);break;case"sender:configChange":B&&B.all&&qe(B.all);break;case"sender:action_upload":le.current&&le.current.click();break;case"sender:action_history":Q0(!0);break;case"uploaded_file:item_click":break;case"action_copy:click":B&&fo(B.content,B.event);break;case"chatbox:copy":{let ue=(B==null?void 0:B.content)||"";if(!ue)break;ue=ue.replace(/\[retrive-tag[^\]]*\][\s\S]*?\[\/retrive-tag\]/g,"");const Pe=async de=>{try{return await navigator.clipboard.writeText(de),Ue.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F"),!0}catch{return!1}},ee=de=>{const Me=document.createElement("textarea");Me.value=de,Me.style.position="fixed",Me.style.opacity="0",document.body.appendChild(Me),Me.focus(),Me.select();try{document.execCommand("copy"),Ue.success("\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F")}catch{Ue.error("\u590D\u5236\u5931\u8D25")}document.body.removeChild(Me)};Pe(ue).then(de=>{de||ee(ue)});break}case"chatbox:repeat":console.log(B,"sdkflskdjflksdjfklsdjlfkjsdklfjsdklfjlks"),Ie(B);break;case"action_thumbsup":A0(B);break;case"chatbox:like":A0({queryId:B==null?void 0:B.queryId,restult:B==null?void 0:B.result});break;case"action_thumbsdown":B.restult===0?ir({url:e,token:t,CSRFToken:c},{queryId:B.queryId},()=>{we(B.queryId,null)}):(w0(B),v0(!0));break;case"chatbox:dislike":(B==null?void 0:B.result)===0?ir({url:e,token:t,CSRFToken:c},{queryId:B.queryId},()=>{we(B.queryId,null)}):(w0({queryId:B==null?void 0:B.queryId}),v0(!0));break;case"action_retrive_tag":p==null||p("action_retrive_tag",B);break;case"referenceFile_view":p==null||p("referenceFile_view",B);break;case"referenceFile_question":console.log(B,"zhezhhzhzh"),st(B.data||B),p==null||p("referenceFile_question",B);break;case"referenceFile_download":p==null||p("referenceFile_download",B);break;case"references:click":case"knowledge_base_view_all:click":{const ue=()=>A==="references:click"?S(Lo,{type:"referencelist",data:B,token:t,eventsEmit:p,is_download:d0}):S(Oo,{fileData:B,token:t}),Pe=new CustomEvent("aichat:right_set_content",{detail:{content:S(ue,{})}});window.dispatchEvent(Pe);const ee=new CustomEvent("aichat:right_set",{detail:{collapsed:!1}});window.dispatchEvent(ee);break}case"retrive_tag:click":p==null||p("retrive_tag:click",B);break;case"fileManager:change":{typeof(B==null?void 0:B.setUploadedFiles)=="function"&&(Ke.current=B.setUploadedFiles,V.current=B.removeFile,ge.current=B==null?void 0:B.senderConfig,o0.current=Array.isArray(B==null?void 0:B.uploadedFiles)?B.uploadedFiles:[],Array.isArray(B==null?void 0:B.uploadedFiles)&&s0(B.uploadedFiles),console.log("[DEBUG] fileManager:change \u4E8B\u4EF6\u89E6\u53D1\uFF0CsetUploadedFilesRef \u5DF2\u8BBE\u7F6E",{hasSetUploadedFiles:!!Ke.current,uploadedFilesCount:((G=B==null?void 0:B.uploadedFiles)==null?void 0:G.length)||0,pendingFilesCount:((Z=B==null?void 0:B.uploadedFiles)==null?void 0:Z.length)||0,hasSenderConfig:!!(B!=null&&B.senderConfig),senderConfig:B==null?void 0:B.senderConfig,upload_number_limit:(oe=B==null?void 0:B.senderConfig)==null?void 0:oe.upload_number_limit,upload_size_limit:(re=B==null?void 0:B.senderConfig)==null?void 0:re.upload_size_limit}));break}case"uploaded_file:removeFromTemp":{console.log("[DEBUG] mergedEventsEmit uploaded_file:removeFromTemp \u4E8B\u4EF6",B);const ue=(me=B==null?void 0:B.file)==null?void 0:me.uid;if(!ue){console.warn("[DEBUG] \u7F3A\u5C11uid\uFF0C\u65E0\u6CD5\u5220\u9664\u4E34\u65F6\u6587\u4EF6",B);break}const Pe=[...(ae==null?void 0:ae.messages)||[]].reverse().find(de=>de.istype==="user"),ee=Pe==null?void 0:Pe.queryId;ce(ue,ee);break}case"uploaded_file:remove_batch":break;default:p==null||p(A,B)}},Ei=[{key:"conversations",type:"custom",label:"\u5BF9\u8BDD\u5386\u53F2",icon:S(Ca,{size:16}),enabled:!0,component:S(so,{data:y,assistantList:k,activedItem:W||"",hasMore:y.length<w,loadingMore:R,sortRules:[{label:"\u5F53\u5929",dayPeriod:1},{label:"3\u5929",dayPeriod:3},{label:"7\u5929",dayPeriod:7},{label:"30\u5929",dayPeriod:30}],eventsEmit:n0,styles:r.theme})}],Dr=Ze.useCallback(()=>S(Co,{eventsEmit:n0,assistantList:k,styles:r,selectedId:Ye,onSelectAssistant:_e,productLogo:u==null?void 0:u.productLogo}),[n0,k,r,Ye,u==null?void 0:u.productLogo]),Bi={...Ze.useMemo(()=>({AiChatBox:(A,B)=>{var ze,Ne,ne;const O=B===(((ze=ae==null?void 0:ae.messages)==null?void 0:ze.length)||0)-1;let L="ready";if(O)if(A.status!==void 0)switch(A.status){case 0:L="thinking";break;case 1:L="processing";break;case 2:L="ready";break;case 3:L="error";break;case 4:L="thinking";break;default:L=$.display}else L=$.display;let G=[];if(Array.isArray(X))G=X;else if(typeof X=="string")try{G=JSON.parse(X)||[]}catch{G=[]}const Z=(()=>{const te=A==null?void 0:A.reference;if(!te)return"[]";if(typeof te=="string")try{return JSON.parse(te),te}catch{return"[]"}try{return JSON.stringify(te)}catch{return"[]"}})(),oe=(()=>{const te=A==null?void 0:A.webReference;if(!te)return"[]";if(typeof te=="string")try{return JSON.parse(te),te}catch{return"[]"}try{return JSON.stringify(te)}catch{return"[]"}})(),re=(()=>{const te=A==null?void 0:A.graphReference;if(!te)return"[]";if(typeof te=="string")try{return JSON.parse(te),te}catch{return"[]"}try{return JSON.stringify(te)}catch{return"[]"}})(),me=A==null?void 0:A.databaseReference,ye=(()=>{var ue,Pe,ee;if(A!=null&&A.chainRespTime||(ue=A==null?void 0:A.reply)!=null&&ue.chainRespTime)return(A==null?void 0:A.chainRespTime)??((Pe=A==null?void 0:A.reply)==null?void 0:Pe.chainRespTime);const te=(A==null?void 0:A.chain)||((ee=A==null?void 0:A.reply)==null?void 0:ee.chain);if(Array.isArray(te)&&te.length>0){const de=te.reduce((Me,je)=>{const y0=(je==null?void 0:je.chainRespTime)??(je==null?void 0:je.respTime);return y0!=null&&y0>0?Me+y0:Me},0);return de>0?de:void 0}})();return S(Mr,{...A,token:t,streamUrl:"/proxy/index/knowledgeBase/file/stream",referenceMode:"button",reference:Z,webReference:oe,graphReference:re,databaseReference:me,contentType:"stream",displayStatus:L,eventsEmit:n0,isLast:O&&(A==null?void 0:A.istype)==="ai",followUpQuestions:O&&(A==null?void 0:A.istype)==="ai"?G:[],defaultAnswer:((Ne=ae==null?void 0:ae.searchConfigDTO)==null?void 0:Ne.defaultAnswer)||"\u4E0D\u77E5\u9053\u4EC0\u4E48\u539F\u56E0\u6211\u4EEC\u6CA1\u80FD\u67E5\u5230\u4F60\u8981\u7684\u95EE\u9898*-*",is_download:d0,styles:r,enableThoughtChain:!0,chain:A==null?void 0:A.chain,thoughtChainNodes:A==null?void 0:A.thoughtChainNodes,thoughtChainStatus:A==null?void 0:A.status,enableCot:(A==null?void 0:A.enableCot)??((ne=A==null?void 0:A.reply)==null?void 0:ne.enableCot),chainRespTime:ye},`${(A==null?void 0:A.queryId)||(A==null?void 0:A.id)||B}-${(A==null?void 0:A.istype)||"unknown"}`)},LogoBox:A=>A&&A.LogoBox===null?null:A&&typeof A.LogoBox=="function"?S(A.LogoBox,{}):S("div",{className:"text-2xl w-full text-center font-bold",children:"\u5C0F\u9CB8\u667A\u80FD\u52A9\u624B"}),DisplayLoading:()=>S(Do,{}),DisplayError:()=>S(wo,{}),AppError:()=>S(_o,{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 A,B;return S(bo,{title:(A=u==null?void 0:u.appLoadingConfig)==null?void 0:A.title,subtitle:((B=u==null?void 0:u.appLoadingConfig)==null?void 0:B.subtitle)||""})},UserChatBox:(A,B)=>S(Mr,{token:t,streamUrl:"/proxy/index/knowledgeBase/file/stream",...A,referenceMode:"button",contentType:"plainText",isUser:!0,displayStatus:"ready",eventsEmit:n0,styles:r,fileManagerData:Re,currentFiles:A==null?void 0:A.currentFiles},`${(A==null?void 0:A.queryId)||(A==null?void 0:A.id)||B}-user`),WelcomeComponent:Dr}),[Dr,ae,$.display,n0,r,d0,Re]),...u.CustomComponents||{}};Ce(()=>{ie(A=>{const B=Array.isArray(A.switchs)?A.switchs.map(O=>O.name==="reasoning"?{...O,enabled:!0}:O):[];return{...A,switchs:B}})},[]);const Ai=be(()=>Re.uploadedFiles||[],[Re]),{FileDisplayTools:bi}=Zi({fileManagerData:{uploadedFiles:Ai},styles:r,eventsEmit:n0});return J("div",{style:{height:"100%",minWidth:"1116px",overflow:"hidden"},children:[S("input",{ref:le,type:"file",multiple:!0,accept:"image/*,.pdf,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.txt,.md,.json,.csv,.zip,.rar,.7z",style:{display:"none"},onChange:A=>{const B=A.target.files;if(B&&B.length>0){console.log("[DEBUG] handleFileSelect \u89E6\u53D1",{filesCount:B.length,hasSetUploadedFilesRef:!!Ke.current,hasSenderConfig:!!ge.current,dynamicSenderConfig:j,dynamicSenderConfigKeys:j?Object.keys(j):[],senderConfigRef:ge.current,senderConfigRefKeys:ge.current?Object.keys(ge.current):[]});const O=Array.from(B);let L=ge.current;(!L||L.upload_size_limit===void 0&&L.upload_number_limit===void 0&&(!L.upload_file_type_limit||L.upload_file_type_limit.length===0))&&(L=j);const G=o0.current||[];console.log("[DEBUG] \u9A8C\u8BC1\u914D\u7F6E\u68C0\u67E5",{configSource:L,upload_number_limit:L==null?void 0:L.upload_number_limit,upload_size_limit:L==null?void 0:L.upload_size_limit,existingFilesCount:G.length,newFilesCount:O.length});const Z=L&&(L.upload_size_limit!==void 0||L.upload_number_limit!==void 0&&L.upload_number_limit>0||L.upload_file_type_limit&&L.upload_file_type_limit.length>0);if(console.log("[DEBUG] \u914D\u7F6E\u68C0\u67E5\u7ED3\u679C",{hasUploadLimitConfig:Z,upload_number_limit:L==null?void 0:L.upload_number_limit,upload_size_limit:L==null?void 0:L.upload_size_limit,upload_file_type_limit:L==null?void 0:L.upload_file_type_limit}),Z){const oe={upload_size_limit:L.upload_size_limit,upload_number_limit:L.upload_number_limit,upload_file_type_limit:L.upload_file_type_limit,upload_limit_message:L.upload_limit_message};console.log("[DEBUG] \u6267\u884C\u6587\u4EF6\u9A8C\u8BC1",{uploadConfig:oe,existingFilesCount:G.length,newFilesCount:O.length,totalCount:G.length+O.length});const re=ea(O,G,oe);if(console.log("[DEBUG] \u9A8C\u8BC1\u7ED3\u679C",{valid:re.valid,errors:re.errors,rejectedFilesCount:re.rejectedFiles.length}),!re.valid){ta(re);const me=O.filter(ye=>!re.rejectedFiles.includes(ye));if(me.length===0){le.current&&(le.current.value="");return}O.splice(0,O.length,...me)}}if(Ke.current){const oe=O.map(re=>({file:re,type:re.type.startsWith("image/")?"image":"document",status:"pending",name:re.name}));console.log("[DEBUG] \u901A\u8FC7 setUploadedFilesRef \u8BBE\u7F6E\u6587\u4EF6",oe),Ke.current(oe)}else console.warn("[DEBUG] setUploadedFilesRef \u672A\u8BBE\u7F6E\uFF0C\u5EF6\u8FDF\u91CD\u8BD5"),setTimeout(()=>{if(Ke.current){const oe=O.map(re=>({file:re,type:re.type.startsWith("image/")?"image":"document",status:"pending",name:re.name}));console.log("[DEBUG] \u5EF6\u8FDF\u540E\u901A\u8FC7 setUploadedFilesRef \u8BBE\u7F6E\u6587\u4EF6",oe),Ke.current(oe)}else console.error("[DEBUG] \u5EF6\u8FDF\u540E setUploadedFilesRef \u4ECD\u672A\u8BBE\u7F6E")},100)}le.current&&(le.current.value="")}}),S(n,{...u,status:$,chatData:ae,sidebar:Ei,recommandQuestions:[],eventsEmit:n0,styles:r,senderConfig:j,fileUploadStatus:ve,CustomComponents:Bi,activeSessionId:W,scrollOld:o,rightbarWidth:"400px",chatHeader:{title:(ae==null?void 0:ae.label)||"\u65B0\u5BF9\u8BDD",tools:bi}}),S(Ji,{open:S0,feedBackList:e0,setOpen:v0,handleConfirm:er}),S(So,{isModalOpen:l,handleOk:N0,handleCancel:()=>N0("close_rename"),data:(h==null?void 0:h.data)||{}}),S(ko,{isModalOpen:x,handleOk:N0,handleCancel:()=>N0("close_remove"),data:(h==null?void 0:h.data)||{}}),S(Yt,{drawer:{styles:{body:{padding:0},header:{display:"none"}}},children:S(Zn,{autoFocus:!1,onClose:()=>m(!1),open:i,width:d==="graphPreview"?"100%":720,className:"overflow-x-hidden",destroyOnClose:!0,children:d==="preview"&&S(gi,{curFileInfo:C,onClose:m,token:t})})})]})}}var ft={exports:{}},pt={exports:{}},Uo=pt.exports,an;function xe(){return an||(an=1,(function(n,s){(function(t,e){n.exports=e()})(Uo,function(){var t=t||(function(e,f){var c;if(typeof window<"u"&&window.crypto&&(c=window.crypto),typeof self<"u"&&self.crypto&&(c=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(c=globalThis.crypto),!c&&typeof window<"u"&&window.msCrypto&&(c=window.msCrypto),!c&&typeof rr<"u"&&rr.crypto&&(c=rr.crypto),!c&&typeof va=="function")try{c=ga}catch{}var p=function(){if(c){if(typeof c.getRandomValues=="function")try{return c.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof c.randomBytes=="function")try{return c.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||(function(){function d(){}return function(g){var C;return d.prototype=g,C=new d,d.prototype=null,C}})(),u={},r=u.lib={},l=r.Base=(function(){return{extend:function(d){var g=o(this);return d&&g.mixIn(d),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var d=this.extend();return d.init.apply(d,arguments),d},init:function(){},mixIn:function(d){for(var g in d)d.hasOwnProperty(g)&&(this[g]=d[g]);d.hasOwnProperty("toString")&&(this.toString=d.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),E=r.WordArray=l.extend({init:function(d,g){d=this.words=d||[],g!=f?this.sigBytes=g:this.sigBytes=d.length*4},toString:function(d){return(d||v).stringify(this)},concat:function(d){var g=this.words,C=d.words,D=this.sigBytes,y=d.sigBytes;if(this.clamp(),D%4)for(var b=0;b<y;b++){var F=C[b>>>2]>>>24-b%4*8&255;g[D+b>>>2]|=F<<24-(D+b)%4*8}else for(var T=0;T<y;T+=4)g[D+T>>>2]=C[T>>>2];return this.sigBytes+=y,this},clamp:function(){var d=this.words,g=this.sigBytes;d[g>>>2]&=4294967295<<32-g%4*8,d.length=e.ceil(g/4)},clone:function(){var d=l.clone.call(this);return d.words=this.words.slice(0),d},random:function(d){for(var g=[],C=0;C<d;C+=4)g.push(p());return new E.init(g,d)}}),x=u.enc={},v=x.Hex={stringify:function(d){for(var g=d.words,C=d.sigBytes,D=[],y=0;y<C;y++){var b=g[y>>>2]>>>24-y%4*8&255;D.push((b>>>4).toString(16)),D.push((b&15).toString(16))}return D.join("")},parse:function(d){for(var g=d.length,C=[],D=0;D<g;D+=2)C[D>>>3]|=parseInt(d.substr(D,2),16)<<24-D%8*4;return new E.init(C,g/2)}},h=x.Latin1={stringify:function(d){for(var g=d.words,C=d.sigBytes,D=[],y=0;y<C;y++){var b=g[y>>>2]>>>24-y%4*8&255;D.push(String.fromCharCode(b))}return D.join("")},parse:function(d){for(var g=d.length,C=[],D=0;D<g;D++)C[D>>>2]|=(d.charCodeAt(D)&255)<<24-D%4*8;return new E.init(C,g)}},a=x.Utf8={stringify:function(d){try{return decodeURIComponent(escape(h.stringify(d)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(d){return h.parse(unescape(encodeURIComponent(d)))}},i=r.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new E.init,this._nDataBytes=0},_append:function(d){typeof d=="string"&&(d=a.parse(d)),this._data.concat(d),this._nDataBytes+=d.sigBytes},_process:function(d){var g,C=this._data,D=C.words,y=C.sigBytes,b=this.blockSize,F=b*4,T=y/F;d?T=e.ceil(T):T=e.max((T|0)-this._minBufferSize,0);var _=T*b,w=e.min(_*4,y);if(_){for(var P=0;P<_;P+=b)this._doProcessBlock(D,P);g=D.splice(0,_),C.sigBytes-=w}return new E.init(g,w)},clone:function(){var d=l.clone.call(this);return d._data=this._data.clone(),d},_minBufferSize:0});r.Hasher=i.extend({cfg:l.extend(),init:function(d){this.cfg=this.cfg.extend(d),this.reset()},reset:function(){i.reset.call(this),this._doReset()},update:function(d){return this._append(d),this._process(),this},finalize:function(d){d&&this._append(d);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(d){return function(g,C){return new d.init(C).finalize(g)}},_createHmacHelper:function(d){return function(g,C){return new m.HMAC.init(d,C).finalize(g)}}});var m=u.algo={};return u})(Math);return t})})(pt)),pt.exports}var ht={exports:{}},qo=ht.exports,on;function Zt(){return on||(on=1,(function(n,s){(function(t,e){n.exports=e(xe())})(qo,function(t){return(function(e){var f=t,c=f.lib,p=c.Base,o=c.WordArray,u=f.x64={};u.Word=p.extend({init:function(r,l){this.high=r,this.low=l}}),u.WordArray=p.extend({init:function(r,l){r=this.words=r||[],l!=e?this.sigBytes=l:this.sigBytes=r.length*8},toX32:function(){for(var r=this.words,l=r.length,E=[],x=0;x<l;x++){var v=r[x];E.push(v.high),E.push(v.low)}return o.create(E,this.sigBytes)},clone:function(){for(var r=p.clone.call(this),l=r.words=this.words.slice(0),E=l.length,x=0;x<E;x++)l[x]=l[x].clone();return r}})})(),t})})(ht)),ht.exports}var vt={exports:{}},Ho=vt.exports,sn;function $o(){return sn||(sn=1,(function(n,s){(function(t,e){n.exports=e(xe())})(Ho,function(t){return(function(){if(typeof ArrayBuffer=="function"){var e=t,f=e.lib,c=f.WordArray,p=c.init,o=c.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray<"u"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var r=u.byteLength,l=[],E=0;E<r;E++)l[E>>>2]|=u[E]<<24-E%4*8;p.call(this,l,r)}else p.apply(this,arguments)};o.prototype=c}})(),t.lib.WordArray})})(vt)),vt.exports}var gt={exports:{}},Wo=gt.exports,cn;function jo(){return cn||(cn=1,(function(n,s){(function(t,e){n.exports=e(xe())})(Wo,function(t){return(function(){var e=t,f=e.lib,c=f.WordArray,p=e.enc;p.Utf16=p.Utf16BE={stringify:function(u){for(var r=u.words,l=u.sigBytes,E=[],x=0;x<l;x+=2){var v=r[x>>>2]>>>16-x%4*8&65535;E.push(String.fromCharCode(v))}return E.join("")},parse:function(u){for(var r=u.length,l=[],E=0;E<r;E++)l[E>>>1]|=u.charCodeAt(E)<<16-E%2*16;return c.create(l,r*2)}},p.Utf16LE={stringify:function(u){for(var r=u.words,l=u.sigBytes,E=[],x=0;x<l;x+=2){var v=o(r[x>>>2]>>>16-x%4*8&65535);E.push(String.fromCharCode(v))}return E.join("")},parse:function(u){for(var r=u.length,l=[],E=0;E<r;E++)l[E>>>1]|=o(u.charCodeAt(E)<<16-E%2*16);return c.create(l,r*2)}};function o(u){return u<<8&4278255360|u>>>8&16711935}})(),t.enc.Utf16})})(gt)),gt.exports}var mt={exports:{}},Vo=mt.exports,ln;function R0(){return ln||(ln=1,(function(n,s){(function(t,e){n.exports=e(xe())})(Vo,function(t){return(function(){var e=t,f=e.lib,c=f.WordArray,p=e.enc;p.Base64={stringify:function(u){var r=u.words,l=u.sigBytes,E=this._map;u.clamp();for(var x=[],v=0;v<l;v+=3)for(var h=r[v>>>2]>>>24-v%4*8&255,a=r[v+1>>>2]>>>24-(v+1)%4*8&255,i=r[v+2>>>2]>>>24-(v+2)%4*8&255,m=h<<16|a<<8|i,d=0;d<4&&v+d*.75<l;d++)x.push(E.charAt(m>>>6*(3-d)&63));var g=E.charAt(64);if(g)for(;x.length%4;)x.push(g);return x.join("")},parse:function(u){var r=u.length,l=this._map,E=this._reverseMap;if(!E){E=this._reverseMap=[];for(var x=0;x<l.length;x++)E[l.charCodeAt(x)]=x}var v=l.charAt(64);if(v){var h=u.indexOf(v);h!==-1&&(r=h)}return o(u,r,E)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(u,r,l){for(var E=[],x=0,v=0;v<r;v++)if(v%4){var h=l[u.charCodeAt(v-1)]<<v%4*2,a=l[u.charCodeAt(v)]>>>6-v%4*2,i=h|a;E[x>>>2]|=i<<24-x%4*8,x++}return c.create(E,x)}})(),t.enc.Base64})})(mt)),mt.exports}var yt={exports:{}},Ko=yt.exports,un;function Go(){return un||(un=1,(function(n,s){(function(t,e){n.exports=e(xe())})(Ko,function(t){return(function(){var e=t,f=e.lib,c=f.WordArray,p=e.enc;p.Base64url={stringify:function(u,r){r===void 0&&(r=!0);var l=u.words,E=u.sigBytes,x=r?this._safe_map:this._map;u.clamp();for(var v=[],h=0;h<E;h+=3)for(var a=l[h>>>2]>>>24-h%4*8&255,i=l[h+1>>>2]>>>24-(h+1)%4*8&255,m=l[h+2>>>2]>>>24-(h+2)%4*8&255,d=a<<16|i<<8|m,g=0;g<4&&h+g*.75<E;g++)v.push(x.charAt(d>>>6*(3-g)&63));var C=x.charAt(64);if(C)for(;v.length%4;)v.push(C);return v.join("")},parse:function(u,r){r===void 0&&(r=!0);var l=u.length,E=r?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var v=0;v<E.length;v++)x[E.charCodeAt(v)]=v}var h=E.charAt(64);if(h){var a=u.indexOf(h);a!==-1&&(l=a)}return o(u,l,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(u,r,l){for(var E=[],x=0,v=0;v<r;v++)if(v%4){var h=l[u.charCodeAt(v-1)]<<v%4*2,a=l[u.charCodeAt(v)]>>>6-v%4*2,i=h|a;E[x>>>2]|=i<<24-x%4*8,x++}return c.create(E,x)}})(),t.enc.Base64url})})(yt)),yt.exports}var Ct={exports:{}},Xo=Ct.exports,xn;function T0(){return xn||(xn=1,(function(n,s){(function(t,e){n.exports=e(xe())})(Xo,function(t){return(function(e){var f=t,c=f.lib,p=c.WordArray,o=c.Hasher,u=f.algo,r=[];(function(){for(var a=0;a<64;a++)r[a]=e.abs(e.sin(a+1))*4294967296|0})();var l=u.MD5=o.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(a,i){for(var m=0;m<16;m++){var d=i+m,g=a[d];a[d]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var C=this._hash.words,D=a[i+0],y=a[i+1],b=a[i+2],F=a[i+3],T=a[i+4],_=a[i+5],w=a[i+6],P=a[i+7],R=a[i+8],M=a[i+9],H=a[i+10],K=a[i+11],W=a[i+12],q=a[i+13],X=a[i+14],Q=a[i+15],k=C[0],z=C[1],N=C[2],I=C[3];k=E(k,z,N,I,D,7,r[0]),I=E(I,k,z,N,y,12,r[1]),N=E(N,I,k,z,b,17,r[2]),z=E(z,N,I,k,F,22,r[3]),k=E(k,z,N,I,T,7,r[4]),I=E(I,k,z,N,_,12,r[5]),N=E(N,I,k,z,w,17,r[6]),z=E(z,N,I,k,P,22,r[7]),k=E(k,z,N,I,R,7,r[8]),I=E(I,k,z,N,M,12,r[9]),N=E(N,I,k,z,H,17,r[10]),z=E(z,N,I,k,K,22,r[11]),k=E(k,z,N,I,W,7,r[12]),I=E(I,k,z,N,q,12,r[13]),N=E(N,I,k,z,X,17,r[14]),z=E(z,N,I,k,Q,22,r[15]),k=x(k,z,N,I,y,5,r[16]),I=x(I,k,z,N,w,9,r[17]),N=x(N,I,k,z,K,14,r[18]),z=x(z,N,I,k,D,20,r[19]),k=x(k,z,N,I,_,5,r[20]),I=x(I,k,z,N,H,9,r[21]),N=x(N,I,k,z,Q,14,r[22]),z=x(z,N,I,k,T,20,r[23]),k=x(k,z,N,I,M,5,r[24]),I=x(I,k,z,N,X,9,r[25]),N=x(N,I,k,z,F,14,r[26]),z=x(z,N,I,k,R,20,r[27]),k=x(k,z,N,I,q,5,r[28]),I=x(I,k,z,N,b,9,r[29]),N=x(N,I,k,z,P,14,r[30]),z=x(z,N,I,k,W,20,r[31]),k=v(k,z,N,I,_,4,r[32]),I=v(I,k,z,N,R,11,r[33]),N=v(N,I,k,z,K,16,r[34]),z=v(z,N,I,k,X,23,r[35]),k=v(k,z,N,I,y,4,r[36]),I=v(I,k,z,N,T,11,r[37]),N=v(N,I,k,z,P,16,r[38]),z=v(z,N,I,k,H,23,r[39]),k=v(k,z,N,I,q,4,r[40]),I=v(I,k,z,N,D,11,r[41]),N=v(N,I,k,z,F,16,r[42]),z=v(z,N,I,k,w,23,r[43]),k=v(k,z,N,I,M,4,r[44]),I=v(I,k,z,N,W,11,r[45]),N=v(N,I,k,z,Q,16,r[46]),z=v(z,N,I,k,b,23,r[47]),k=h(k,z,N,I,D,6,r[48]),I=h(I,k,z,N,P,10,r[49]),N=h(N,I,k,z,X,15,r[50]),z=h(z,N,I,k,_,21,r[51]),k=h(k,z,N,I,W,6,r[52]),I=h(I,k,z,N,F,10,r[53]),N=h(N,I,k,z,H,15,r[54]),z=h(z,N,I,k,y,21,r[55]),k=h(k,z,N,I,R,6,r[56]),I=h(I,k,z,N,Q,10,r[57]),N=h(N,I,k,z,w,15,r[58]),z=h(z,N,I,k,q,21,r[59]),k=h(k,z,N,I,T,6,r[60]),I=h(I,k,z,N,K,10,r[61]),N=h(N,I,k,z,b,15,r[62]),z=h(z,N,I,k,M,21,r[63]),C[0]=C[0]+k|0,C[1]=C[1]+z|0,C[2]=C[2]+N|0,C[3]=C[3]+I|0},_doFinalize:function(){var a=this._data,i=a.words,m=this._nDataBytes*8,d=a.sigBytes*8;i[d>>>5]|=128<<24-d%32;var g=e.floor(m/4294967296),C=m;i[(d+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,i[(d+64>>>9<<4)+14]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,a.sigBytes=(i.length+1)*4,this._process();for(var D=this._hash,y=D.words,b=0;b<4;b++){var F=y[b];y[b]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360}return D},clone:function(){var a=o.clone.call(this);return a._hash=this._hash.clone(),a}});function E(a,i,m,d,g,C,D){var y=a+(i&m|~i&d)+g+D;return(y<<C|y>>>32-C)+i}function x(a,i,m,d,g,C,D){var y=a+(i&d|m&~d)+g+D;return(y<<C|y>>>32-C)+i}function v(a,i,m,d,g,C,D){var y=a+(i^m^d)+g+D;return(y<<C|y>>>32-C)+i}function h(a,i,m,d,g,C,D){var y=a+(m^(i|~d))+g+D;return(y<<C|y>>>32-C)+i}f.MD5=o._createHelper(l),f.HmacMD5=o._createHmacHelper(l)})(Math),t.MD5})})(Ct)),Ct.exports}var Ft={exports:{}},Yo=Ft.exports,dn;function yi(){return dn||(dn=1,(function(n,s){(function(t,e){n.exports=e(xe())})(Yo,function(t){return(function(){var e=t,f=e.lib,c=f.WordArray,p=f.Hasher,o=e.algo,u=[],r=o.SHA1=p.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,E){for(var x=this._hash.words,v=x[0],h=x[1],a=x[2],i=x[3],m=x[4],d=0;d<80;d++){if(d<16)u[d]=l[E+d]|0;else{var g=u[d-3]^u[d-8]^u[d-14]^u[d-16];u[d]=g<<1|g>>>31}var C=(v<<5|v>>>27)+m+u[d];d<20?C+=(h&a|~h&i)+1518500249:d<40?C+=(h^a^i)+1859775393:d<60?C+=(h&a|h&i|a&i)-1894007588:C+=(h^a^i)-899497514,m=i,i=a,a=h<<30|h>>>2,h=v,v=C}x[0]=x[0]+v|0,x[1]=x[1]+h|0,x[2]=x[2]+a|0,x[3]=x[3]+i|0,x[4]=x[4]+m|0},_doFinalize:function(){var l=this._data,E=l.words,x=this._nDataBytes*8,v=l.sigBytes*8;return E[v>>>5]|=128<<24-v%32,E[(v+64>>>9<<4)+14]=Math.floor(x/4294967296),E[(v+64>>>9<<4)+15]=x,l.sigBytes=E.length*4,this._process(),this._hash},clone:function(){var l=p.clone.call(this);return l._hash=this._hash.clone(),l}});e.SHA1=p._createHelper(r),e.HmacSHA1=p._createHmacHelper(r)})(),t.SHA1})})(Ft)),Ft.exports}var Et={exports:{}},Qo=Et.exports,fn;function Ar(){return fn||(fn=1,(function(n,s){(function(t,e){n.exports=e(xe())})(Qo,function(t){return(function(e){var f=t,c=f.lib,p=c.WordArray,o=c.Hasher,u=f.algo,r=[],l=[];(function(){function v(m){for(var d=e.sqrt(m),g=2;g<=d;g++)if(!(m%g))return!1;return!0}function h(m){return(m-(m|0))*4294967296|0}for(var a=2,i=0;i<64;)v(a)&&(i<8&&(r[i]=h(e.pow(a,1/2))),l[i]=h(e.pow(a,1/3)),i++),a++})();var E=[],x=u.SHA256=o.extend({_doReset:function(){this._hash=new p.init(r.slice(0))},_doProcessBlock:function(v,h){for(var a=this._hash.words,i=a[0],m=a[1],d=a[2],g=a[3],C=a[4],D=a[5],y=a[6],b=a[7],F=0;F<64;F++){if(F<16)E[F]=v[h+F]|0;else{var T=E[F-15],_=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,w=E[F-2],P=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;E[F]=_+E[F-7]+P+E[F-16]}var R=C&D^~C&y,M=i&m^i&d^m&d,H=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),K=(C<<26|C>>>6)^(C<<21|C>>>11)^(C<<7|C>>>25),W=b+K+R+l[F]+E[F],q=H+M;b=y,y=D,D=C,C=g+W|0,g=d,d=m,m=i,i=W+q|0}a[0]=a[0]+i|0,a[1]=a[1]+m|0,a[2]=a[2]+d|0,a[3]=a[3]+g|0,a[4]=a[4]+C|0,a[5]=a[5]+D|0,a[6]=a[6]+y|0,a[7]=a[7]+b|0},_doFinalize:function(){var v=this._data,h=v.words,a=this._nDataBytes*8,i=v.sigBytes*8;return h[i>>>5]|=128<<24-i%32,h[(i+64>>>9<<4)+14]=e.floor(a/4294967296),h[(i+64>>>9<<4)+15]=a,v.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var v=o.clone.call(this);return v._hash=this._hash.clone(),v}});f.SHA256=o._createHelper(x),f.HmacSHA256=o._createHmacHelper(x)})(Math),t.SHA256})})(Et)),Et.exports}var Bt={exports:{}},Zo=Bt.exports,pn;function Jo(){return pn||(pn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),Ar())})(Zo,function(t){return(function(){var e=t,f=e.lib,c=f.WordArray,p=e.algo,o=p.SHA256,u=p.SHA224=o.extend({_doReset:function(){this._hash=new c.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var r=o._doFinalize.call(this);return r.sigBytes-=4,r}});e.SHA224=o._createHelper(u),e.HmacSHA224=o._createHmacHelper(u)})(),t.SHA224})})(Bt)),Bt.exports}var At={exports:{}},es=At.exports,hn;function Ci(){return hn||(hn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),Zt())})(es,function(t){return(function(){var e=t,f=e.lib,c=f.Hasher,p=e.x64,o=p.Word,u=p.WordArray,r=e.algo;function l(){return o.create.apply(o,arguments)}var E=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],x=[];(function(){for(var h=0;h<80;h++)x[h]=l()})();var v=r.SHA512=c.extend({_doReset:function(){this._hash=new u.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(h,a){for(var i=this._hash.words,m=i[0],d=i[1],g=i[2],C=i[3],D=i[4],y=i[5],b=i[6],F=i[7],T=m.high,_=m.low,w=d.high,P=d.low,R=g.high,M=g.low,H=C.high,K=C.low,W=D.high,q=D.low,X=y.high,Q=y.low,k=b.high,z=b.low,N=F.high,I=F.low,$=T,U=_,Y=w,j=P,ie=R,ve=M,De=H,Oe=K,ce=W,Fe=q,We=X,ke=Q,Ge=k,Xe=z,Re=N,Ye=I,_e=0;_e<80;_e++){var fe,qe,Ve=x[_e];if(_e<16)qe=Ve.high=h[a+_e*2]|0,fe=Ve.low=h[a+_e*2+1]|0;else{var Ke=x[_e-15],V=Ke.high,le=Ke.low,ge=(V>>>1|le<<31)^(V>>>8|le<<24)^V>>>7,o0=(le>>>1|V<<31)^(le>>>8|V<<24)^(le>>>7|V<<25),z0=x[_e-2],s0=z0.high,Ee=z0.low,w0=(s0>>>19|Ee<<13)^(s0<<3|Ee>>>29)^s0>>>6,S0=(Ee>>>19|s0<<13)^(Ee<<3|s0>>>29)^(Ee>>>6|s0<<26),v0=x[_e-7],e0=v0.high,P0=v0.low,L0=x[_e-16],Q0=L0.high,E0=L0.low;fe=o0+P0,qe=ge+e0+(fe>>>0<o0>>>0?1:0),fe=fe+S0,qe=qe+w0+(fe>>>0<S0>>>0?1:0),fe=fe+E0,qe=qe+Q0+(fe>>>0<E0>>>0?1:0),Ve.high=qe,Ve.low=fe}var Z0=ce&We^~ce&Ge,O0=Fe&ke^~Fe&Xe,B0=$&Y^$&ie^Y&ie,c0=U&j^U&ve^j&ve,Be=($>>>28|U<<4)^($<<30|U>>>2)^($<<25|U>>>7),ae=(U>>>28|$<<4)^(U<<30|$>>>2)^(U<<25|$>>>7),d0=(ce>>>14|Fe<<18)^(ce>>>18|Fe<<14)^(ce<<23|Fe>>>9),k0=(Fe>>>14|ce<<18)^(Fe>>>18|ce<<14)^(Fe<<23|ce>>>9),r0=E[_e],g0=r0.high,M0=r0.low,we=Ye+k0,Qe=Re+d0+(we>>>0<Ye>>>0?1:0),we=we+O0,Qe=Qe+Z0+(we>>>0<O0>>>0?1:0),we=we+M0,Qe=Qe+g0+(we>>>0<M0>>>0?1:0),we=we+fe,Qe=Qe+qe+(we>>>0<fe>>>0?1:0),Ie=ae+c0,Te=Be+B0+(Ie>>>0<ae>>>0?1:0);Re=Ge,Ye=Xe,Ge=We,Xe=ke,We=ce,ke=Fe,Fe=Oe+we|0,ce=De+Qe+(Fe>>>0<Oe>>>0?1:0)|0,De=ie,Oe=ve,ie=Y,ve=j,Y=$,j=U,U=we+Ie|0,$=Qe+Te+(U>>>0<we>>>0?1:0)|0}_=m.low=_+U,m.high=T+$+(_>>>0<U>>>0?1:0),P=d.low=P+j,d.high=w+Y+(P>>>0<j>>>0?1:0),M=g.low=M+ve,g.high=R+ie+(M>>>0<ve>>>0?1:0),K=C.low=K+Oe,C.high=H+De+(K>>>0<Oe>>>0?1:0),q=D.low=q+Fe,D.high=W+ce+(q>>>0<Fe>>>0?1:0),Q=y.low=Q+ke,y.high=X+We+(Q>>>0<ke>>>0?1:0),z=b.low=z+Xe,b.high=k+Ge+(z>>>0<Xe>>>0?1:0),I=F.low=I+Ye,F.high=N+Re+(I>>>0<Ye>>>0?1:0)},_doFinalize:function(){var h=this._data,a=h.words,i=this._nDataBytes*8,m=h.sigBytes*8;a[m>>>5]|=128<<24-m%32,a[(m+128>>>10<<5)+30]=Math.floor(i/4294967296),a[(m+128>>>10<<5)+31]=i,h.sigBytes=a.length*4,this._process();var d=this._hash.toX32();return d},clone:function(){var h=c.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});e.SHA512=c._createHelper(v),e.HmacSHA512=c._createHmacHelper(v)})(),t.SHA512})})(At)),At.exports}var bt={exports:{}},ts=bt.exports,vn;function rs(){return vn||(vn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),Zt(),Ci())})(ts,function(t){return(function(){var e=t,f=e.x64,c=f.Word,p=f.WordArray,o=e.algo,u=o.SHA512,r=o.SHA384=u.extend({_doReset:function(){this._hash=new p.init([new c.init(3418070365,3238371032),new c.init(1654270250,914150663),new c.init(2438529370,812702999),new c.init(355462360,4144912697),new c.init(1731405415,4290775857),new c.init(2394180231,1750603025),new c.init(3675008525,1694076839),new c.init(1203062813,3204075428)])},_doFinalize:function(){var l=u._doFinalize.call(this);return l.sigBytes-=16,l}});e.SHA384=u._createHelper(r),e.HmacSHA384=u._createHmacHelper(r)})(),t.SHA384})})(bt)),bt.exports}var Dt={exports:{}},ns=Dt.exports,gn;function is(){return gn||(gn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),Zt())})(ns,function(t){return(function(e){var f=t,c=f.lib,p=c.WordArray,o=c.Hasher,u=f.x64,r=u.Word,l=f.algo,E=[],x=[],v=[];(function(){for(var i=1,m=0,d=0;d<24;d++){E[i+5*m]=(d+1)*(d+2)/2%64;var g=m%5,C=(2*i+3*m)%5;i=g,m=C}for(var i=0;i<5;i++)for(var m=0;m<5;m++)x[i+5*m]=m+(2*i+3*m)%5*5;for(var D=1,y=0;y<24;y++){for(var b=0,F=0,T=0;T<7;T++){if(D&1){var _=(1<<T)-1;_<32?F^=1<<_:b^=1<<_-32}D&128?D=D<<1^113:D<<=1}v[y]=r.create(b,F)}})();var h=[];(function(){for(var i=0;i<25;i++)h[i]=r.create()})();var a=l.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var i=this._state=[],m=0;m<25;m++)i[m]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(i,m){for(var d=this._state,g=this.blockSize/2,C=0;C<g;C++){var D=i[m+2*C],y=i[m+2*C+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,y=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360;var b=d[C];b.high^=y,b.low^=D}for(var F=0;F<24;F++){for(var T=0;T<5;T++){for(var _=0,w=0,P=0;P<5;P++){var b=d[T+5*P];_^=b.high,w^=b.low}var R=h[T];R.high=_,R.low=w}for(var T=0;T<5;T++)for(var M=h[(T+4)%5],H=h[(T+1)%5],K=H.high,W=H.low,_=M.high^(K<<1|W>>>31),w=M.low^(W<<1|K>>>31),P=0;P<5;P++){var b=d[T+5*P];b.high^=_,b.low^=w}for(var q=1;q<25;q++){var _,w,b=d[q],X=b.high,Q=b.low,k=E[q];k<32?(_=X<<k|Q>>>32-k,w=Q<<k|X>>>32-k):(_=Q<<k-32|X>>>64-k,w=X<<k-32|Q>>>64-k);var z=h[x[q]];z.high=_,z.low=w}var N=h[0],I=d[0];N.high=I.high,N.low=I.low;for(var T=0;T<5;T++)for(var P=0;P<5;P++){var q=T+5*P,b=d[q],$=h[q],U=h[(T+1)%5+5*P],Y=h[(T+2)%5+5*P];b.high=$.high^~U.high&Y.high,b.low=$.low^~U.low&Y.low}var b=d[0],j=v[F];b.high^=j.high,b.low^=j.low}},_doFinalize:function(){var i=this._data,m=i.words;this._nDataBytes*8;var d=i.sigBytes*8,g=this.blockSize*32;m[d>>>5]|=1<<24-d%32,m[(e.ceil((d+1)/g)*g>>>5)-1]|=128,i.sigBytes=m.length*4,this._process();for(var C=this._state,D=this.cfg.outputLength/8,y=D/8,b=[],F=0;F<y;F++){var T=C[F],_=T.high,w=T.low;_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,b.push(w),b.push(_)}return new p.init(b,D)},clone:function(){for(var i=o.clone.call(this),m=i._state=this._state.slice(0),d=0;d<25;d++)m[d]=m[d].clone();return i}});f.SHA3=o._createHelper(a),f.HmacSHA3=o._createHmacHelper(a)})(Math),t.SHA3})})(Dt)),Dt.exports}var _t={exports:{}},as=_t.exports,mn;function os(){return mn||(mn=1,(function(n,s){(function(t,e){n.exports=e(xe())})(as,function(t){/** @preserve
|
|
184
|
-
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
185
|
-
|
|
186
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
187
|
-
|
|
188
|
-
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
189
|
-
- 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.
|
|
190
|
-
|
|
191
|
-
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.
|
|
192
|
-
*/return(function(e){var f=t,c=f.lib,p=c.WordArray,o=c.Hasher,u=f.algo,r=p.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]),l=p.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]),E=p.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]),x=p.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]),v=p.create([0,1518500249,1859775393,2400959708,2840853838]),h=p.create([1352829926,1548603684,1836072691,2053994217,0]),a=u.RIPEMD160=o.extend({_doReset:function(){this._hash=p.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(y,b){for(var F=0;F<16;F++){var T=b+F,_=y[T];y[T]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var w=this._hash.words,P=v.words,R=h.words,M=r.words,H=l.words,K=E.words,W=x.words,q,X,Q,k,z,N,I,$,U,Y;N=q=w[0],I=X=w[1],$=Q=w[2],U=k=w[3],Y=z=w[4];for(var j,F=0;F<80;F+=1)j=q+y[b+M[F]]|0,F<16?j+=i(X,Q,k)+P[0]:F<32?j+=m(X,Q,k)+P[1]:F<48?j+=d(X,Q,k)+P[2]:F<64?j+=g(X,Q,k)+P[3]:j+=C(X,Q,k)+P[4],j=j|0,j=D(j,K[F]),j=j+z|0,q=z,z=k,k=D(Q,10),Q=X,X=j,j=N+y[b+H[F]]|0,F<16?j+=C(I,$,U)+R[0]:F<32?j+=g(I,$,U)+R[1]:F<48?j+=d(I,$,U)+R[2]:F<64?j+=m(I,$,U)+R[3]:j+=i(I,$,U)+R[4],j=j|0,j=D(j,W[F]),j=j+Y|0,N=Y,Y=U,U=D($,10),$=I,I=j;j=w[1]+Q+U|0,w[1]=w[2]+k+Y|0,w[2]=w[3]+z+N|0,w[3]=w[4]+q+I|0,w[4]=w[0]+X+$|0,w[0]=j},_doFinalize:function(){var y=this._data,b=y.words,F=this._nDataBytes*8,T=y.sigBytes*8;b[T>>>5]|=128<<24-T%32,b[(T+64>>>9<<4)+14]=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,y.sigBytes=(b.length+1)*4,this._process();for(var _=this._hash,w=_.words,P=0;P<5;P++){var R=w[P];w[P]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return _},clone:function(){var y=o.clone.call(this);return y._hash=this._hash.clone(),y}});function i(y,b,F){return y^b^F}function m(y,b,F){return y&b|~y&F}function d(y,b,F){return(y|~b)^F}function g(y,b,F){return y&F|b&~F}function C(y,b,F){return y^(b|~F)}function D(y,b){return y<<b|y>>>32-b}f.RIPEMD160=o._createHelper(a),f.HmacRIPEMD160=o._createHmacHelper(a)})(),t.RIPEMD160})})(_t)),_t.exports}var wt={exports:{}},ss=wt.exports,yn;function br(){return yn||(yn=1,(function(n,s){(function(t,e){n.exports=e(xe())})(ss,function(t){(function(){var e=t,f=e.lib,c=f.Base,p=e.enc,o=p.Utf8,u=e.algo;u.HMAC=c.extend({init:function(r,l){r=this._hasher=new r.init,typeof l=="string"&&(l=o.parse(l));var E=r.blockSize,x=E*4;l.sigBytes>x&&(l=r.finalize(l)),l.clamp();for(var v=this._oKey=l.clone(),h=this._iKey=l.clone(),a=v.words,i=h.words,m=0;m<E;m++)a[m]^=1549556828,i[m]^=909522486;v.sigBytes=h.sigBytes=x,this.reset()},reset:function(){var r=this._hasher;r.reset(),r.update(this._iKey)},update:function(r){return this._hasher.update(r),this},finalize:function(r){var l=this._hasher,E=l.finalize(r);l.reset();var x=l.finalize(this._oKey.clone().concat(E));return x}})})()})})(wt)),wt.exports}var St={exports:{}},cs=St.exports,Cn;function ls(){return Cn||(Cn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),Ar(),br())})(cs,function(t){return(function(){var e=t,f=e.lib,c=f.Base,p=f.WordArray,o=e.algo,u=o.SHA256,r=o.HMAC,l=o.PBKDF2=c.extend({cfg:c.extend({keySize:128/32,hasher:u,iterations:25e4}),init:function(E){this.cfg=this.cfg.extend(E)},compute:function(E,x){for(var v=this.cfg,h=r.create(v.hasher,E),a=p.create(),i=p.create([1]),m=a.words,d=i.words,g=v.keySize,C=v.iterations;m.length<g;){var D=h.update(x).finalize(i);h.reset();for(var y=D.words,b=y.length,F=D,T=1;T<C;T++){F=h.finalize(F),h.reset();for(var _=F.words,w=0;w<b;w++)y[w]^=_[w]}a.concat(D),d[0]++}return a.sigBytes=g*4,a}});e.PBKDF2=function(E,x,v){return l.create(v).compute(E,x)}})(),t.PBKDF2})})(St)),St.exports}var kt={exports:{}},us=kt.exports,Fn;function _0(){return Fn||(Fn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),yi(),br())})(us,function(t){return(function(){var e=t,f=e.lib,c=f.Base,p=f.WordArray,o=e.algo,u=o.MD5,r=o.EvpKDF=c.extend({cfg:c.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,E){for(var x,v=this.cfg,h=v.hasher.create(),a=p.create(),i=a.words,m=v.keySize,d=v.iterations;i.length<m;){x&&h.update(x),x=h.update(l).finalize(E),h.reset();for(var g=1;g<d;g++)x=h.finalize(x),h.reset();a.concat(x)}return a.sigBytes=m*4,a}});e.EvpKDF=function(l,E,x){return r.create(x).compute(l,E)}})(),t.EvpKDF})})(kt)),kt.exports}var It={exports:{}},xs=It.exports,En;function $e(){return En||(En=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),_0())})(xs,function(t){t.lib.Cipher||(function(e){var f=t,c=f.lib,p=c.Base,o=c.WordArray,u=c.BufferedBlockAlgorithm,r=f.enc;r.Utf8;var l=r.Base64,E=f.algo,x=E.EvpKDF,v=c.Cipher=u.extend({cfg:p.extend(),createEncryptor:function(_,w){return this.create(this._ENC_XFORM_MODE,_,w)},createDecryptor:function(_,w){return this.create(this._DEC_XFORM_MODE,_,w)},init:function(_,w,P){this.cfg=this.cfg.extend(P),this._xformMode=_,this._key=w,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(_){return this._append(_),this._process()},finalize:function(_){_&&this._append(_);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function _(w){return typeof w=="string"?T:y}return function(w){return{encrypt:function(P,R,M){return _(R).encrypt(w,P,R,M)},decrypt:function(P,R,M){return _(R).decrypt(w,P,R,M)}}}})()});c.StreamCipher=v.extend({_doFinalize:function(){var _=this._process(!0);return _},blockSize:1});var h=f.mode={},a=c.BlockCipherMode=p.extend({createEncryptor:function(_,w){return this.Encryptor.create(_,w)},createDecryptor:function(_,w){return this.Decryptor.create(_,w)},init:function(_,w){this._cipher=_,this._iv=w}}),i=h.CBC=(function(){var _=a.extend();_.Encryptor=_.extend({processBlock:function(P,R){var M=this._cipher,H=M.blockSize;w.call(this,P,R,H),M.encryptBlock(P,R),this._prevBlock=P.slice(R,R+H)}}),_.Decryptor=_.extend({processBlock:function(P,R){var M=this._cipher,H=M.blockSize,K=P.slice(R,R+H);M.decryptBlock(P,R),w.call(this,P,R,H),this._prevBlock=K}});function w(P,R,M){var H,K=this._iv;K?(H=K,this._iv=e):H=this._prevBlock;for(var W=0;W<M;W++)P[R+W]^=H[W]}return _})(),m=f.pad={},d=m.Pkcs7={pad:function(_,w){for(var P=w*4,R=P-_.sigBytes%P,M=R<<24|R<<16|R<<8|R,H=[],K=0;K<R;K+=4)H.push(M);var W=o.create(H,R);_.concat(W)},unpad:function(_){var w=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=w}};c.BlockCipher=v.extend({cfg:v.cfg.extend({mode:i,padding:d}),reset:function(){var _;v.reset.call(this);var w=this.cfg,P=w.iv,R=w.mode;this._xformMode==this._ENC_XFORM_MODE?_=R.createEncryptor:(_=R.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,P&&P.words):(this._mode=_.call(R,this,P&&P.words),this._mode.__creator=_)},_doProcessBlock:function(_,w){this._mode.processBlock(_,w)},_doFinalize:function(){var _,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),_=this._process(!0)):(_=this._process(!0),w.unpad(_)),_},blockSize:128/32});var g=c.CipherParams=p.extend({init:function(_){this.mixIn(_)},toString:function(_){return(_||this.formatter).stringify(this)}}),C=f.format={},D=C.OpenSSL={stringify:function(_){var w,P=_.ciphertext,R=_.salt;return R?w=o.create([1398893684,1701076831]).concat(R).concat(P):w=P,w.toString(l)},parse:function(_){var w,P=l.parse(_),R=P.words;return R[0]==1398893684&&R[1]==1701076831&&(w=o.create(R.slice(2,4)),R.splice(0,4),P.sigBytes-=16),g.create({ciphertext:P,salt:w})}},y=c.SerializableCipher=p.extend({cfg:p.extend({format:D}),encrypt:function(_,w,P,R){R=this.cfg.extend(R);var M=_.createEncryptor(P,R),H=M.finalize(w),K=M.cfg;return g.create({ciphertext:H,key:P,iv:K.iv,algorithm:_,mode:K.mode,padding:K.padding,blockSize:_.blockSize,formatter:R.format})},decrypt:function(_,w,P,R){R=this.cfg.extend(R),w=this._parse(w,R.format);var M=_.createDecryptor(P,R).finalize(w.ciphertext);return M},_parse:function(_,w){return typeof _=="string"?w.parse(_,this):_}}),b=f.kdf={},F=b.OpenSSL={execute:function(_,w,P,R,M){if(R||(R=o.random(64/8)),M)var H=x.create({keySize:w+P,hasher:M}).compute(_,R);else var H=x.create({keySize:w+P}).compute(_,R);var K=o.create(H.words.slice(w),P*4);return H.sigBytes=w*4,g.create({key:H,iv:K,salt:R})}},T=c.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:F}),encrypt:function(_,w,P,R){R=this.cfg.extend(R);var M=R.kdf.execute(P,_.keySize,_.ivSize,R.salt,R.hasher);R.iv=M.iv;var H=y.encrypt.call(this,_,w,M.key,R);return H.mixIn(M),H},decrypt:function(_,w,P,R){R=this.cfg.extend(R),w=this._parse(w,R.format);var M=R.kdf.execute(P,_.keySize,_.ivSize,w.salt,R.hasher);R.iv=M.iv;var H=y.decrypt.call(this,_,w,M.key,R);return H}})})()})})(It)),It.exports}var Nt={exports:{}},ds=Nt.exports,Bn;function fs(){return Bn||(Bn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(ds,function(t){return t.mode.CFB=(function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(c,p){var o=this._cipher,u=o.blockSize;f.call(this,c,p,u,o),this._prevBlock=c.slice(p,p+u)}}),e.Decryptor=e.extend({processBlock:function(c,p){var o=this._cipher,u=o.blockSize,r=c.slice(p,p+u);f.call(this,c,p,u,o),this._prevBlock=r}});function f(c,p,o,u){var r,l=this._iv;l?(r=l.slice(0),this._iv=void 0):r=this._prevBlock,u.encryptBlock(r,0);for(var E=0;E<o;E++)c[p+E]^=r[E]}return e})(),t.mode.CFB})})(Nt)),Nt.exports}var Rt={exports:{}},ps=Rt.exports,An;function hs(){return An||(An=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(ps,function(t){return t.mode.CTR=(function(){var e=t.lib.BlockCipherMode.extend(),f=e.Encryptor=e.extend({processBlock:function(c,p){var o=this._cipher,u=o.blockSize,r=this._iv,l=this._counter;r&&(l=this._counter=r.slice(0),this._iv=void 0);var E=l.slice(0);o.encryptBlock(E,0),l[u-1]=l[u-1]+1|0;for(var x=0;x<u;x++)c[p+x]^=E[x]}});return e.Decryptor=f,e})(),t.mode.CTR})})(Rt)),Rt.exports}var Tt={exports:{}},vs=Tt.exports,bn;function gs(){return bn||(bn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(vs,function(t){/** @preserve
|
|
193
|
-
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
194
|
-
* derived from CryptoJS.mode.CTR
|
|
195
|
-
* Jan Hruby jhruby.web@gmail.com
|
|
196
|
-
*/return t.mode.CTRGladman=(function(){var e=t.lib.BlockCipherMode.extend();function f(o){if((o>>24&255)===255){var u=o>>16&255,r=o>>8&255,l=o&255;u===255?(u=0,r===255?(r=0,l===255?l=0:++l):++r):++u,o=0,o+=u<<16,o+=r<<8,o+=l}else o+=1<<24;return o}function c(o){return(o[0]=f(o[0]))===0&&(o[1]=f(o[1])),o}var p=e.Encryptor=e.extend({processBlock:function(o,u){var r=this._cipher,l=r.blockSize,E=this._iv,x=this._counter;E&&(x=this._counter=E.slice(0),this._iv=void 0),c(x);var v=x.slice(0);r.encryptBlock(v,0);for(var h=0;h<l;h++)o[u+h]^=v[h]}});return e.Decryptor=p,e})(),t.mode.CTRGladman})})(Tt)),Tt.exports}var zt={exports:{}},ms=zt.exports,Dn;function ys(){return Dn||(Dn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(ms,function(t){return t.mode.OFB=(function(){var e=t.lib.BlockCipherMode.extend(),f=e.Encryptor=e.extend({processBlock:function(c,p){var o=this._cipher,u=o.blockSize,r=this._iv,l=this._keystream;r&&(l=this._keystream=r.slice(0),this._iv=void 0),o.encryptBlock(l,0);for(var E=0;E<u;E++)c[p+E]^=l[E]}});return e.Decryptor=f,e})(),t.mode.OFB})})(zt)),zt.exports}var Pt={exports:{}},Cs=Pt.exports,_n;function Fs(){return _n||(_n=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(Cs,function(t){return t.mode.ECB=(function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(f,c){this._cipher.encryptBlock(f,c)}}),e.Decryptor=e.extend({processBlock:function(f,c){this._cipher.decryptBlock(f,c)}}),e})(),t.mode.ECB})})(Pt)),Pt.exports}var Lt={exports:{}},Es=Lt.exports,wn;function Bs(){return wn||(wn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(Es,function(t){return t.pad.AnsiX923={pad:function(e,f){var c=e.sigBytes,p=f*4,o=p-c%p,u=c+o-1;e.clamp(),e.words[u>>>2]|=o<<24-u%4*8,e.sigBytes+=o},unpad:function(e){var f=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=f}},t.pad.Ansix923})})(Lt)),Lt.exports}var Ot={exports:{}},As=Ot.exports,Sn;function bs(){return Sn||(Sn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(As,function(t){return t.pad.Iso10126={pad:function(e,f){var c=f*4,p=c-e.sigBytes%c;e.concat(t.lib.WordArray.random(p-1)).concat(t.lib.WordArray.create([p<<24],1))},unpad:function(e){var f=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=f}},t.pad.Iso10126})})(Ot)),Ot.exports}var Mt={exports:{}},Ds=Mt.exports,kn;function _s(){return kn||(kn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(Ds,function(t){return t.pad.Iso97971={pad:function(e,f){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,f)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971})})(Mt)),Mt.exports}var Ut={exports:{}},ws=Ut.exports,In;function Ss(){return In||(In=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(ws,function(t){return t.pad.ZeroPadding={pad:function(e,f){var c=f*4;e.clamp(),e.sigBytes+=c-(e.sigBytes%c||c)},unpad:function(e){for(var f=e.words,c=e.sigBytes-1,c=e.sigBytes-1;c>=0;c--)if(f[c>>>2]>>>24-c%4*8&255){e.sigBytes=c+1;break}}},t.pad.ZeroPadding})})(Ut)),Ut.exports}var qt={exports:{}},ks=qt.exports,Nn;function Is(){return Nn||(Nn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(ks,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})})(qt)),qt.exports}var Ht={exports:{}},Ns=Ht.exports,Rn;function Rs(){return Rn||(Rn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),$e())})(Ns,function(t){return(function(e){var f=t,c=f.lib,p=c.CipherParams,o=f.enc,u=o.Hex,r=f.format;r.Hex={stringify:function(l){return l.ciphertext.toString(u)},parse:function(l){var E=u.parse(l);return p.create({ciphertext:E})}}})(),t.format.Hex})})(Ht)),Ht.exports}var $t={exports:{}},Ts=$t.exports,Tn;function zs(){return Tn||(Tn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),R0(),T0(),_0(),$e())})(Ts,function(t){return(function(){var e=t,f=e.lib,c=f.BlockCipher,p=e.algo,o=[],u=[],r=[],l=[],E=[],x=[],v=[],h=[],a=[],i=[];(function(){for(var g=[],C=0;C<256;C++)C<128?g[C]=C<<1:g[C]=C<<1^283;for(var D=0,y=0,C=0;C<256;C++){var b=y^y<<1^y<<2^y<<3^y<<4;b=b>>>8^b&255^99,o[D]=b,u[b]=D;var F=g[D],T=g[F],_=g[T],w=g[b]*257^b*16843008;r[D]=w<<24|w>>>8,l[D]=w<<16|w>>>16,E[D]=w<<8|w>>>24,x[D]=w;var w=_*16843009^T*65537^F*257^D*16843008;v[b]=w<<24|w>>>8,h[b]=w<<16|w>>>16,a[b]=w<<8|w>>>24,i[b]=w,D?(D=F^g[g[g[_^F]]],y^=g[g[y]]):D=y=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],d=p.AES=c.extend({_doReset:function(){var g;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var C=this._keyPriorReset=this._key,D=C.words,y=C.sigBytes/4,b=this._nRounds=y+6,F=(b+1)*4,T=this._keySchedule=[],_=0;_<F;_++)_<y?T[_]=D[_]:(g=T[_-1],_%y?y>6&&_%y==4&&(g=o[g>>>24]<<24|o[g>>>16&255]<<16|o[g>>>8&255]<<8|o[g&255]):(g=g<<8|g>>>24,g=o[g>>>24]<<24|o[g>>>16&255]<<16|o[g>>>8&255]<<8|o[g&255],g^=m[_/y|0]<<24),T[_]=T[_-y]^g);for(var w=this._invKeySchedule=[],P=0;P<F;P++){var _=F-P;if(P%4)var g=T[_];else var g=T[_-4];P<4||_<=4?w[P]=g:w[P]=v[o[g>>>24]]^h[o[g>>>16&255]]^a[o[g>>>8&255]]^i[o[g&255]]}}},encryptBlock:function(g,C){this._doCryptBlock(g,C,this._keySchedule,r,l,E,x,o)},decryptBlock:function(g,C){var D=g[C+1];g[C+1]=g[C+3],g[C+3]=D,this._doCryptBlock(g,C,this._invKeySchedule,v,h,a,i,u);var D=g[C+1];g[C+1]=g[C+3],g[C+3]=D},_doCryptBlock:function(g,C,D,y,b,F,T,_){for(var w=this._nRounds,P=g[C]^D[0],R=g[C+1]^D[1],M=g[C+2]^D[2],H=g[C+3]^D[3],K=4,W=1;W<w;W++){var q=y[P>>>24]^b[R>>>16&255]^F[M>>>8&255]^T[H&255]^D[K++],X=y[R>>>24]^b[M>>>16&255]^F[H>>>8&255]^T[P&255]^D[K++],Q=y[M>>>24]^b[H>>>16&255]^F[P>>>8&255]^T[R&255]^D[K++],k=y[H>>>24]^b[P>>>16&255]^F[R>>>8&255]^T[M&255]^D[K++];P=q,R=X,M=Q,H=k}var q=(_[P>>>24]<<24|_[R>>>16&255]<<16|_[M>>>8&255]<<8|_[H&255])^D[K++],X=(_[R>>>24]<<24|_[M>>>16&255]<<16|_[H>>>8&255]<<8|_[P&255])^D[K++],Q=(_[M>>>24]<<24|_[H>>>16&255]<<16|_[P>>>8&255]<<8|_[R&255])^D[K++],k=(_[H>>>24]<<24|_[P>>>16&255]<<16|_[R>>>8&255]<<8|_[M&255])^D[K++];g[C]=q,g[C+1]=X,g[C+2]=Q,g[C+3]=k},keySize:256/32});e.AES=c._createHelper(d)})(),t.AES})})($t)),$t.exports}var Wt={exports:{}},Ps=Wt.exports,zn;function Ls(){return zn||(zn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),R0(),T0(),_0(),$e())})(Ps,function(t){return(function(){var e=t,f=e.lib,c=f.WordArray,p=f.BlockCipher,o=e.algo,u=[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],r=[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],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],E=[{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}],x=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=o.DES=p.extend({_doReset:function(){for(var m=this._key,d=m.words,g=[],C=0;C<56;C++){var D=u[C]-1;g[C]=d[D>>>5]>>>31-D%32&1}for(var y=this._subKeys=[],b=0;b<16;b++){for(var F=y[b]=[],T=l[b],C=0;C<24;C++)F[C/6|0]|=g[(r[C]-1+T)%28]<<31-C%6,F[4+(C/6|0)]|=g[28+(r[C+24]-1+T)%28]<<31-C%6;F[0]=F[0]<<1|F[0]>>>31;for(var C=1;C<7;C++)F[C]=F[C]>>>(C-1)*4+3;F[7]=F[7]<<5|F[7]>>>27}for(var _=this._invSubKeys=[],C=0;C<16;C++)_[C]=y[15-C]},encryptBlock:function(m,d){this._doCryptBlock(m,d,this._subKeys)},decryptBlock:function(m,d){this._doCryptBlock(m,d,this._invSubKeys)},_doCryptBlock:function(m,d,g){this._lBlock=m[d],this._rBlock=m[d+1],h.call(this,4,252645135),h.call(this,16,65535),a.call(this,2,858993459),a.call(this,8,16711935),h.call(this,1,1431655765);for(var C=0;C<16;C++){for(var D=g[C],y=this._lBlock,b=this._rBlock,F=0,T=0;T<8;T++)F|=E[T][((b^D[T])&x[T])>>>0];this._lBlock=b,this._rBlock=y^F}var _=this._lBlock;this._lBlock=this._rBlock,this._rBlock=_,h.call(this,1,1431655765),a.call(this,8,16711935),a.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),m[d]=this._lBlock,m[d+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(m,d){var g=(this._lBlock>>>m^this._rBlock)&d;this._rBlock^=g,this._lBlock^=g<<m}function a(m,d){var g=(this._rBlock>>>m^this._lBlock)&d;this._lBlock^=g,this._rBlock^=g<<m}e.DES=p._createHelper(v);var i=o.TripleDES=p.extend({_doReset:function(){var m=this._key,d=m.words;if(d.length!==2&&d.length!==4&&d.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=d.slice(0,2),C=d.length<4?d.slice(0,2):d.slice(2,4),D=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=v.createEncryptor(c.create(g)),this._des2=v.createEncryptor(c.create(C)),this._des3=v.createEncryptor(c.create(D))},encryptBlock:function(m,d){this._des1.encryptBlock(m,d),this._des2.decryptBlock(m,d),this._des3.encryptBlock(m,d)},decryptBlock:function(m,d){this._des3.decryptBlock(m,d),this._des2.encryptBlock(m,d),this._des1.decryptBlock(m,d)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=p._createHelper(i)})(),t.TripleDES})})(Wt)),Wt.exports}var jt={exports:{}},Os=jt.exports,Pn;function Ms(){return Pn||(Pn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),R0(),T0(),_0(),$e())})(Os,function(t){return(function(){var e=t,f=e.lib,c=f.StreamCipher,p=e.algo,o=p.RC4=c.extend({_doReset:function(){for(var l=this._key,E=l.words,x=l.sigBytes,v=this._S=[],h=0;h<256;h++)v[h]=h;for(var h=0,a=0;h<256;h++){var i=h%x,m=E[i>>>2]>>>24-i%4*8&255;a=(a+v[h]+m)%256;var d=v[h];v[h]=v[a],v[a]=d}this._i=this._j=0},_doProcessBlock:function(l,E){l[E]^=u.call(this)},keySize:256/32,ivSize:0});function u(){for(var l=this._S,E=this._i,x=this._j,v=0,h=0;h<4;h++){E=(E+1)%256,x=(x+l[E])%256;var a=l[E];l[E]=l[x],l[x]=a,v|=l[(l[E]+l[x])%256]<<24-h*8}return this._i=E,this._j=x,v}e.RC4=c._createHelper(o);var r=p.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)u.call(this)}});e.RC4Drop=c._createHelper(r)})(),t.RC4})})(jt)),jt.exports}var Vt={exports:{}},Us=Vt.exports,Ln;function qs(){return Ln||(Ln=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),R0(),T0(),_0(),$e())})(Us,function(t){return(function(){var e=t,f=e.lib,c=f.StreamCipher,p=e.algo,o=[],u=[],r=[],l=p.Rabbit=c.extend({_doReset:function(){for(var x=this._key.words,v=this.cfg.iv,h=0;h<4;h++)x[h]=(x[h]<<8|x[h]>>>24)&16711935|(x[h]<<24|x[h]>>>8)&4278255360;var a=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],i=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var h=0;h<4;h++)E.call(this);for(var h=0;h<8;h++)i[h]^=a[h+4&7];if(v){var m=v.words,d=m[0],g=m[1],C=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,D=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,y=C>>>16|D&4294901760,b=D<<16|C&65535;i[0]^=C,i[1]^=y,i[2]^=D,i[3]^=b,i[4]^=C,i[5]^=y,i[6]^=D,i[7]^=b;for(var h=0;h<4;h++)E.call(this)}},_doProcessBlock:function(x,v){var h=this._X;E.call(this),o[0]=h[0]^h[5]>>>16^h[3]<<16,o[1]=h[2]^h[7]>>>16^h[5]<<16,o[2]=h[4]^h[1]>>>16^h[7]<<16,o[3]=h[6]^h[3]>>>16^h[1]<<16;for(var a=0;a<4;a++)o[a]=(o[a]<<8|o[a]>>>24)&16711935|(o[a]<<24|o[a]>>>8)&4278255360,x[v+a]^=o[a]},blockSize:128/32,ivSize:64/32});function E(){for(var x=this._X,v=this._C,h=0;h<8;h++)u[h]=v[h];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<u[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<u[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<u[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<u[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<u[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<u[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<u[6]>>>0?1:0)|0,this._b=v[7]>>>0<u[7]>>>0?1:0;for(var h=0;h<8;h++){var a=x[h]+v[h],i=a&65535,m=a>>>16,d=((i*i>>>17)+i*m>>>15)+m*m,g=((a&4294901760)*a|0)+((a&65535)*a|0);r[h]=d^g}x[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,x[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,x[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,x[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,x[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,x[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,x[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,x[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.Rabbit=c._createHelper(l)})(),t.Rabbit})})(Vt)),Vt.exports}var Kt={exports:{}},Hs=Kt.exports,On;function $s(){return On||(On=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),R0(),T0(),_0(),$e())})(Hs,function(t){return(function(){var e=t,f=e.lib,c=f.StreamCipher,p=e.algo,o=[],u=[],r=[],l=p.RabbitLegacy=c.extend({_doReset:function(){var x=this._key.words,v=this.cfg.iv,h=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],a=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var i=0;i<4;i++)E.call(this);for(var i=0;i<8;i++)a[i]^=h[i+4&7];if(v){var m=v.words,d=m[0],g=m[1],C=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,D=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,y=C>>>16|D&4294901760,b=D<<16|C&65535;a[0]^=C,a[1]^=y,a[2]^=D,a[3]^=b,a[4]^=C,a[5]^=y,a[6]^=D,a[7]^=b;for(var i=0;i<4;i++)E.call(this)}},_doProcessBlock:function(x,v){var h=this._X;E.call(this),o[0]=h[0]^h[5]>>>16^h[3]<<16,o[1]=h[2]^h[7]>>>16^h[5]<<16,o[2]=h[4]^h[1]>>>16^h[7]<<16,o[3]=h[6]^h[3]>>>16^h[1]<<16;for(var a=0;a<4;a++)o[a]=(o[a]<<8|o[a]>>>24)&16711935|(o[a]<<24|o[a]>>>8)&4278255360,x[v+a]^=o[a]},blockSize:128/32,ivSize:64/32});function E(){for(var x=this._X,v=this._C,h=0;h<8;h++)u[h]=v[h];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<u[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<u[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<u[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<u[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<u[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<u[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<u[6]>>>0?1:0)|0,this._b=v[7]>>>0<u[7]>>>0?1:0;for(var h=0;h<8;h++){var a=x[h]+v[h],i=a&65535,m=a>>>16,d=((i*i>>>17)+i*m>>>15)+m*m,g=((a&4294901760)*a|0)+((a&65535)*a|0);r[h]=d^g}x[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,x[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,x[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,x[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,x[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,x[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,x[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,x[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.RabbitLegacy=c._createHelper(l)})(),t.RabbitLegacy})})(Kt)),Kt.exports}var Gt={exports:{}},Ws=Gt.exports,Mn;function js(){return Mn||(Mn=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),R0(),T0(),_0(),$e())})(Ws,function(t){return(function(){var e=t,f=e.lib,c=f.BlockCipher,p=e.algo;const o=16,u=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],r=[[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 l={pbox:[],sbox:[]};function E(i,m){let d=m>>24&255,g=m>>16&255,C=m>>8&255,D=m&255,y=i.sbox[0][d]+i.sbox[1][g];return y=y^i.sbox[2][C],y=y+i.sbox[3][D],y}function x(i,m,d){let g=m,C=d,D;for(let y=0;y<o;++y)g=g^i.pbox[y],C=E(i,g)^C,D=g,g=C,C=D;return D=g,g=C,C=D,C=C^i.pbox[o],g=g^i.pbox[o+1],{left:g,right:C}}function v(i,m,d){let g=m,C=d,D;for(let y=o+1;y>1;--y)g=g^i.pbox[y],C=E(i,g)^C,D=g,g=C,C=D;return D=g,g=C,C=D,C=C^i.pbox[1],g=g^i.pbox[0],{left:g,right:C}}function h(i,m,d){for(let b=0;b<4;b++){i.sbox[b]=[];for(let F=0;F<256;F++)i.sbox[b][F]=r[b][F]}let g=0;for(let b=0;b<o+2;b++)i.pbox[b]=u[b]^m[g],g++,g>=d&&(g=0);let C=0,D=0,y=0;for(let b=0;b<o+2;b+=2)y=x(i,C,D),C=y.left,D=y.right,i.pbox[b]=C,i.pbox[b+1]=D;for(let b=0;b<4;b++)for(let F=0;F<256;F+=2)y=x(i,C,D),C=y.left,D=y.right,i.sbox[b][F]=C,i.sbox[b][F+1]=D;return!0}var a=p.Blowfish=c.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var i=this._keyPriorReset=this._key,m=i.words,d=i.sigBytes/4;h(l,m,d)}},encryptBlock:function(i,m){var d=x(l,i[m],i[m+1]);i[m]=d.left,i[m+1]=d.right},decryptBlock:function(i,m){var d=v(l,i[m],i[m+1]);i[m]=d.left,i[m+1]=d.right},blockSize:64/32,keySize:128/32,ivSize:64/32});e.Blowfish=c._createHelper(a)})(),t.Blowfish})})(Gt)),Gt.exports}var Vs=ft.exports,Un;function Ks(){return Un||(Un=1,(function(n,s){(function(t,e,f){n.exports=e(xe(),Zt(),$o(),jo(),R0(),Go(),T0(),yi(),Ar(),Jo(),Ci(),rs(),is(),os(),br(),ls(),_0(),$e(),fs(),hs(),gs(),ys(),Fs(),Bs(),bs(),_s(),Ss(),Is(),Rs(),zs(),Ls(),Ms(),qs(),$s(),js())})(Vs,function(t){return t})})(ft)),ft.exports}var Gs=Ks();const Fi=Hn(Gs);Fi.enc.Utf8.parse("1234567890123456");Fi.enc.Utf8.parse("1234567890123456");export{mi as DrawerType,Ac as default,_c as registerPDFWorker};
|
|
1
|
+
import"react/jsx-runtime";import"react";import"./assets/index-BvpN2hYX.js";import"./assets/index-B64Nj5uU.js";import"./assets/index-hDlFWjNU.js";import"./assets/index-CpW6Dhpp.js";import"./assets/index-sWqCalkt.js";import{D as z,w as A}from"./assets/style-DwfpZJI9.js";/* empty css *//* empty css */import{B as E}from"./assets/GientechStreamReader-C5jijqVw.js";import"./assets/index-CkVpaVb6.js";import"./assets/index-D3Z0MZbL.js";import"react-dom";import"./assets/index-DaM9Fbys.js";import"./assets/LeftOutlined-9XTSYGbi.js";import"./assets/index-SbYeytsI.js";import"./assets/index-B872BsjL.js";import"./assets/x-DfdS1_QC.js";import"./assets/index-BxR_BLxA.js";import"./assets/index-Bk-pRt65.js";import"./assets/plus-DDbDO7lA.js";import"./assets/search-BoBdGjgo.js";import"./database.js";import"./assets/index-BIrUv1JE.js";import"./databaseId.js";import"./assets/triangle-alert-DF53kXdm.js";import"./databaseTable.js";import"./modelManage.js";import"./sensitive.js";import"./assistantConfig.js";export{z as DrawerType,A as default,E as registerPDFWorker};
|