@gientech/modual 1.8.3 → 1.8.5
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 +643 -643
- package/assets/{GientechStreamReader-COjGWi_s.js → GientechStreamReader-C7an1QrK.js} +1 -1
- package/assets/{mysql.svg → MySQL.svg} +14 -14
- 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/{index-NBU1h9MU.js → index-6Ox5f3GI.js} +1 -1
- package/assets/index-8usKJjKH.js +157 -0
- package/assets/{index-BQWU6aA6.js → index-B0fJUyM7.js} +1 -1
- package/assets/{index-CTXs951x.js → index-BmVOh6oe.js} +1 -1
- package/assets/{index-6rZwr24p.js → index-CFqsgVcx.js} +1 -1
- package/assets/index-D4NnOWbo.js +576 -0
- package/assets/{index-BtzZe0dg.js → index-DhczpnL_.js} +256 -115
- package/assets/{index-B16gaAst.js → index-Di5Ga230.js} +2 -2
- package/assets/{index-C0f77Ai0.js → index-OjluyvX1.js} +2 -2
- package/assets/index-tplNfcnA.js +11 -0
- package/assets/knowledge.svg +4 -4
- package/assets/{plus-CrrWzgTO.js → plus-Dbo_i_9Z.js} +1 -1
- package/assets/sensitive.svg +5 -5
- package/assets/{index-D1PtBLCr.js → style-bUXwVVWZ.js} +1 -1
- package/assets/style.css +1 -1
- package/assets/style3.css +1 -1
- package/assets/style4.css +1 -0
- package/assets/{x-B50yFeY5.js → x-C7NWGGXn.js} +1 -1
- package/assistantConfig.js +1 -1
- package/chat.js +6 -6
- package/database.js +2 -2
- package/databaseId.d.ts +1 -0
- package/databaseId.js +1 -1
- package/databaseTable.js +2 -2
- package/index.js +1 -1
- package/modelManage.js +1 -1
- package/package.json +6 -6
- package/sensitive.js +1 -1
- package/streamFilesReader.js +1 -1
- package/worker/pdf.worker.min.js +21 -21
- package/assets/index-BU3ahTSx.js +0 -157
- package/assets/index-Cqand6Yl.js +0 -585
- package/assets/index-DNf62wMu.js +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as a from"react";import c,{useEffect as Kt,useMemo as Vt}from"react";import{ac as je,x as G,A as Pe,H as Y,d as E,G as X,a3 as nt,y as Gt,ad as Jt,E as Ft,g as vt,m as ft,ae as Ut,r as ht,f as $,af as at,N as Qt,ag as Yt,ah as Zt,ai as kt,aj as ei,ak as ti,al as ii,q as ni,am as ai,u as St,o as ri,an as oi,ao as li,a9 as ci,J as si,k as ui,K as bt}from"./index-C0f77Ai0.js";var di={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},mi=function(t,n){return a.createElement(je,G({},t,{ref:n,icon:di}))},rt=a.forwardRef(mi),gi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},pi=function(t,n){return a.createElement(je,G({},t,{ref:n,icon:gi}))},ot=a.forwardRef(pi);function vi(e,t,n){var i=n||{},r=i.noTrailing,g=r===void 0?!1:r,f=i.noLeading,h=f===void 0?!1:f,m=i.debounceMode,y=m===void 0?void 0:m,S,d=!1,x=0;function O(){S&&clearTimeout(S)}function _(v){var N=v||{},I=N.upcomingOnly,R=I===void 0?!1:I;O(),d=!R}function j(){for(var v=arguments.length,N=new Array(v),I=0;I<v;I++)N[I]=arguments[I];var R=this,W=Date.now()-x;if(d)return;function l(){x=Date.now(),t.apply(R,N)}function z(){S=void 0}!h&&y&&!S&&l(),O(),y===void 0&&W>e?h?(x=Date.now(),g||(S=setTimeout(y?z:l,e))):l():g!==!0&&(S=setTimeout(y?z:l,y===void 0?e-W:e))}return j.cancel=_,j}function fi(e,t,n){var i={},r=i.atBegin,g=r===void 0?!1:r;return vi(e,t,{debounceMode:g!==!1})}var hi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Si=function(t,n){return a.createElement(je,G({},t,{ref:n,icon:hi}))},lt=a.forwardRef(Si),bi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},$i=function(t,n){return a.createElement(je,G({},t,{ref:n,icon:bi}))},ct=a.forwardRef($i),Ci={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},yi=[10,20,50,100],xi=function(t){var n=t.pageSizeOptions,i=n===void 0?yi:n,r=t.locale,g=t.changeSize,f=t.pageSize,h=t.goButton,m=t.quickGo,y=t.rootPrefixCls,S=t.disabled,d=t.buildOptionText,x=t.showSizeChanger,O=t.sizeChangerRender,_=c.useState(""),j=Pe(_,2),v=j[0],N=j[1],I=function(){return!v||Number.isNaN(v)?void 0:Number(v)},R=typeof d=="function"?d:function(p){return"".concat(p," ").concat(r.items_per_page)},W=function(b){N(b.target.value)},l=function(b){h||v===""||(N(""),!(b.relatedTarget&&(b.relatedTarget.className.indexOf("".concat(y,"-item-link"))>=0||b.relatedTarget.className.indexOf("".concat(y,"-item"))>=0))&&(m==null||m(I())))},z=function(b){v!==""&&(b.keyCode===Y.ENTER||b.type==="click")&&(N(""),m==null||m(I()))},K=function(){return i.some(function(b){return b.toString()===f.toString()})?i:i.concat([f]).sort(function(b,L){var ee=Number.isNaN(Number(b))?0:Number(b),V=Number.isNaN(Number(L))?0:Number(L);return ee-V})},w="".concat(y,"-options");if(!x&&!m)return null;var M=null,H=null,J=null;return x&&O&&(M=O({disabled:S,size:f,onSizeChange:function(b){g==null||g(Number(b))},"aria-label":r.page_size,className:"".concat(w,"-size-changer"),options:K().map(function(p){return{label:R(p),value:p}})})),m&&(h&&(J=typeof h=="boolean"?c.createElement("button",{type:"button",onClick:z,onKeyUp:z,disabled:S,className:"".concat(w,"-quick-jumper-button")},r.jump_to_confirm):c.createElement("span",{onClick:z,onKeyUp:z},h)),H=c.createElement("div",{className:"".concat(w,"-quick-jumper")},r.jump_to,c.createElement("input",{disabled:S,type:"text",value:v,onChange:W,onKeyUp:z,onBlur:l,"aria-label":r.page}),r.page,J)),c.createElement("li",{className:w},M,H)},ve=function(t){var n=t.rootPrefixCls,i=t.page,r=t.active,g=t.className,f=t.showTitle,h=t.onClick,m=t.onKeyPress,y=t.itemRender,S="".concat(n,"-item"),d=E(S,"".concat(S,"-").concat(i),X(X({},"".concat(S,"-active"),r),"".concat(S,"-disabled"),!i),g),x=function(){h(i)},O=function(v){m(v,h,i)},_=y(i,"page",c.createElement("a",{rel:"nofollow"},i));return _?c.createElement("li",{title:f?String(i):null,className:d,onClick:x,onKeyDown:O,tabIndex:0},_):null},zi=function(t,n,i){return i};function st(){}function ut(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ae(e,t,n){var i=typeof e>"u"?t:e;return Math.floor((n-1)/i)+1}var Ni=function(t){var n=t.prefixCls,i=n===void 0?"rc-pagination":n,r=t.selectPrefixCls,g=r===void 0?"rc-select":r,f=t.className,h=t.current,m=t.defaultCurrent,y=m===void 0?1:m,S=t.total,d=S===void 0?0:S,x=t.pageSize,O=t.defaultPageSize,_=O===void 0?10:O,j=t.onChange,v=j===void 0?st:j,N=t.hideOnSinglePage,I=t.align,R=t.showPrevNextJumpers,W=R===void 0?!0:R,l=t.showQuickJumper,z=t.showLessItems,K=t.showTitle,w=K===void 0?!0:K,M=t.onShowSizeChange,H=M===void 0?st:M,J=t.locale,p=J===void 0?Ci:J,b=t.style,L=t.totalBoundaryShowSizeChanger,ee=L===void 0?50:L,V=t.disabled,D=t.simple,A=t.showTotal,Z=t.showSizeChanger,Be=Z===void 0?d>ee:Z,Me=t.sizeChangerRender,Te=t.pageSizeOptions,fe=t.itemRender,te=fe===void 0?zi:fe,he=t.jumpPrevIcon,F=t.jumpNextIcon,ie=t.prevIcon,le=t.nextIcon,ce=c.useRef(null),ne=nt(10,{value:x,defaultValue:_}),Se=Pe(ne,2),B=Se[0],be=Se[1],De=nt(1,{value:h,defaultValue:y,postState:function(u){return Math.max(1,Math.min(u,ae(void 0,B,d)))}}),re=Pe(De,2),s=re[0],U=re[1],_e=c.useState(s),Xe=Pe(_e,2),oe=Xe[0],$e=Xe[1];Kt(function(){$e(s)},[s]);var We=Math.max(1,s-(z?3:5)),Ke=Math.min(ae(void 0,B,d),s+(z?3:5));function Ce(o,u){var C=o||c.createElement("button",{type:"button","aria-label":u,className:"".concat(i,"-item-link")});return typeof o=="function"&&(C=c.createElement(o,Ft({},t))),C}function Ve(o){var u=o.target.value,C=ae(void 0,B,d),k;return u===""?k=u:Number.isNaN(Number(u))?k=oe:u>=C?k=C:k=Number(u),k}function Nt(o){return ut(o)&&o!==s&&ut(d)&&d>0}var Et=d>B?l:!1;function It(o){(o.keyCode===Y.UP||o.keyCode===Y.DOWN)&&o.preventDefault()}function Ge(o){var u=Ve(o);switch(u!==oe&&$e(u),o.keyCode){case Y.ENTER:q(u);break;case Y.UP:q(u-1);break;case Y.DOWN:q(u+1);break}}function wt(o){q(Ve(o))}function Pt(o){var u=ae(o,B,d),C=s>u&&u!==0?u:s;be(o),$e(C),H==null||H(s,o),U(C),v==null||v(C,o)}function q(o){if(Nt(o)&&!V){var u=ae(void 0,B,d),C=o;return o>u?C=u:o<1&&(C=1),C!==oe&&$e(C),U(C),v==null||v(C,B),C}return s}var ye=s>1,xe=s<ae(void 0,B,d);function Je(){ye&&q(s-1)}function Fe(){xe&&q(s+1)}function Ue(){q(We)}function Qe(){q(Ke)}function se(o,u){if(o.key==="Enter"||o.charCode===Y.ENTER||o.keyCode===Y.ENTER){for(var C=arguments.length,k=new Array(C>2?C-2:0),we=2;we<C;we++)k[we-2]=arguments[we];u.apply(void 0,k)}}function Ot(o){se(o,Je)}function jt(o){se(o,Fe)}function Bt(o){se(o,Ue)}function Mt(o){se(o,Qe)}function Tt(o){var u=te(o,"prev",Ce(ie,"prev page"));return c.isValidElement(u)?c.cloneElement(u,{disabled:!ye}):u}function Dt(o){var u=te(o,"next",Ce(le,"next page"));return c.isValidElement(u)?c.cloneElement(u,{disabled:!xe}):u}function ze(o){(o.type==="click"||o.keyCode===Y.ENTER)&&q(oe)}var Ye=null,_t=Gt(t,{aria:!0,data:!0}),Rt=A&&c.createElement("li",{className:"".concat(i,"-total-text")},A(d,[d===0?0:(s-1)*B+1,s*B>d?d:s*B])),Ze=null,P=ae(void 0,B,d);if(N&&d<=B)return null;var T=[],ue={rootPrefixCls:i,onClick:q,onKeyPress:se,showTitle:w,itemRender:te,page:-1},Ht=s-1>0?s-1:0,Lt=s+1<P?s+1:P,Ne=l&&l.goButton,At=Jt(D)==="object"?D.readOnly:!D,de=Ne,ke=null;D&&(Ne&&(typeof Ne=="boolean"?de=c.createElement("button",{type:"button",onClick:ze,onKeyUp:ze},p.jump_to_confirm):de=c.createElement("span",{onClick:ze,onKeyUp:ze},Ne),de=c.createElement("li",{title:w?"".concat(p.jump_to).concat(s,"/").concat(P):null,className:"".concat(i,"-simple-pager")},de)),ke=c.createElement("li",{title:w?"".concat(s,"/").concat(P):null,className:"".concat(i,"-simple-pager")},At?oe:c.createElement("input",{type:"text","aria-label":p.jump_to,value:oe,disabled:V,onKeyDown:It,onKeyUp:Ge,onChange:Ge,onBlur:wt,size:3}),c.createElement("span",{className:"".concat(i,"-slash")},"/"),P));var Q=z?1:2;if(P<=3+Q*2){P||T.push(c.createElement(ve,G({},ue,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var me=1;me<=P;me+=1)T.push(c.createElement(ve,G({},ue,{key:me,page:me,active:s===me})))}else{var qt=z?p.prev_3:p.prev_5,Xt=z?p.next_3:p.next_5,et=te(We,"jump-prev",Ce(he,"prev page")),tt=te(Ke,"jump-next",Ce(F,"next page"));W&&(Ye=et?c.createElement("li",{title:w?qt:null,key:"prev",onClick:Ue,tabIndex:0,onKeyDown:Bt,className:E("".concat(i,"-jump-prev"),X({},"".concat(i,"-jump-prev-custom-icon"),!!he))},et):null,Ze=tt?c.createElement("li",{title:w?Xt:null,key:"next",onClick:Qe,tabIndex:0,onKeyDown:Mt,className:E("".concat(i,"-jump-next"),X({},"".concat(i,"-jump-next-custom-icon"),!!F))},tt):null);var Re=Math.max(1,s-Q),He=Math.min(s+Q,P);s-1<=Q&&(He=1+Q*2),P-s<=Q&&(Re=P-Q*2);for(var ge=Re;ge<=He;ge+=1)T.push(c.createElement(ve,G({},ue,{key:ge,page:ge,active:s===ge})));if(s-1>=Q*2&&s!==3&&(T[0]=c.cloneElement(T[0],{className:E("".concat(i,"-item-after-jump-prev"),T[0].props.className)}),T.unshift(Ye)),P-s>=Q*2&&s!==P-2){var it=T[T.length-1];T[T.length-1]=c.cloneElement(it,{className:E("".concat(i,"-item-before-jump-next"),it.props.className)}),T.push(Ze)}Re!==1&&T.unshift(c.createElement(ve,G({},ue,{key:1,page:1}))),He!==P&&T.push(c.createElement(ve,G({},ue,{key:P,page:P})))}var Ee=Tt(Ht);if(Ee){var Le=!ye||!P;Ee=c.createElement("li",{title:w?p.prev_page:null,onClick:Je,tabIndex:Le?null:0,onKeyDown:Ot,className:E("".concat(i,"-prev"),X({},"".concat(i,"-disabled"),Le)),"aria-disabled":Le},Ee)}var Ie=Dt(Lt);if(Ie){var pe,Ae;D?(pe=!xe,Ae=ye?0:null):(pe=!xe||!P,Ae=pe?null:0),Ie=c.createElement("li",{title:w?p.next_page:null,onClick:Fe,tabIndex:Ae,onKeyDown:jt,className:E("".concat(i,"-next"),X({},"".concat(i,"-disabled"),pe)),"aria-disabled":pe},Ie)}var Wt=E(i,f,X(X(X(X(X({},"".concat(i,"-start"),I==="start"),"".concat(i,"-center"),I==="center"),"".concat(i,"-end"),I==="end"),"".concat(i,"-simple"),D),"".concat(i,"-disabled"),V));return c.createElement("ul",G({className:Wt,style:b,ref:ce},_t),Rt,Ee,D?ke:T,Ie,c.createElement(xi,{locale:p,rootPrefixCls:i,disabled:V,selectPrefixCls:g,changeSize:Pt,pageSize:B,pageSizeOptions:Te,quickGo:Et?q:null,goButton:de,showSizeChanger:Be,sizeChangerRender:Me}))};const Ei=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Ii=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
1
|
+
import*as a from"react";import c,{useEffect as Kt,useMemo as Vt}from"react";import{ac as je,y as G,E as Pe,J as Y,e as E,H as X,a3 as nt,z as Gt,ad as Jt,G as Ft,g as vt,m as ht,ae as Ut,r as ft,h as $,af as at,O as Qt,ag as Yt,ah as Zt,ai as kt,aj as ei,ak as ti,al as ii,s as ni,am as ai,u as St,p as ri,an as oi,ao as li,a9 as ci,L as si,l as ui,K as bt}from"./index-OjluyvX1.js";var di={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},mi=function(t,n){return a.createElement(je,G({},t,{ref:n,icon:di}))},rt=a.forwardRef(mi),gi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},pi=function(t,n){return a.createElement(je,G({},t,{ref:n,icon:gi}))},ot=a.forwardRef(pi);function vi(e,t,n){var i=n||{},r=i.noTrailing,g=r===void 0?!1:r,h=i.noLeading,f=h===void 0?!1:h,m=i.debounceMode,y=m===void 0?void 0:m,S,d=!1,x=0;function O(){S&&clearTimeout(S)}function _(v){var N=v||{},I=N.upcomingOnly,R=I===void 0?!1:I;O(),d=!R}function j(){for(var v=arguments.length,N=new Array(v),I=0;I<v;I++)N[I]=arguments[I];var R=this,W=Date.now()-x;if(d)return;function l(){x=Date.now(),t.apply(R,N)}function z(){S=void 0}!f&&y&&!S&&l(),O(),y===void 0&&W>e?f?(x=Date.now(),g||(S=setTimeout(y?z:l,e))):l():g!==!0&&(S=setTimeout(y?z:l,y===void 0?e-W:e))}return j.cancel=_,j}function hi(e,t,n){var i={},r=i.atBegin,g=r===void 0?!1:r;return vi(e,t,{debounceMode:g!==!1})}var fi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Si=function(t,n){return a.createElement(je,G({},t,{ref:n,icon:fi}))},lt=a.forwardRef(Si),bi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},$i=function(t,n){return a.createElement(je,G({},t,{ref:n,icon:bi}))},ct=a.forwardRef($i),Ci={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},yi=[10,20,50,100],xi=function(t){var n=t.pageSizeOptions,i=n===void 0?yi:n,r=t.locale,g=t.changeSize,h=t.pageSize,f=t.goButton,m=t.quickGo,y=t.rootPrefixCls,S=t.disabled,d=t.buildOptionText,x=t.showSizeChanger,O=t.sizeChangerRender,_=c.useState(""),j=Pe(_,2),v=j[0],N=j[1],I=function(){return!v||Number.isNaN(v)?void 0:Number(v)},R=typeof d=="function"?d:function(p){return"".concat(p," ").concat(r.items_per_page)},W=function(b){N(b.target.value)},l=function(b){f||v===""||(N(""),!(b.relatedTarget&&(b.relatedTarget.className.indexOf("".concat(y,"-item-link"))>=0||b.relatedTarget.className.indexOf("".concat(y,"-item"))>=0))&&(m==null||m(I())))},z=function(b){v!==""&&(b.keyCode===Y.ENTER||b.type==="click")&&(N(""),m==null||m(I()))},K=function(){return i.some(function(b){return b.toString()===h.toString()})?i:i.concat([h]).sort(function(b,L){var ee=Number.isNaN(Number(b))?0:Number(b),V=Number.isNaN(Number(L))?0:Number(L);return ee-V})},w="".concat(y,"-options");if(!x&&!m)return null;var M=null,H=null,J=null;return x&&O&&(M=O({disabled:S,size:h,onSizeChange:function(b){g==null||g(Number(b))},"aria-label":r.page_size,className:"".concat(w,"-size-changer"),options:K().map(function(p){return{label:R(p),value:p}})})),m&&(f&&(J=typeof f=="boolean"?c.createElement("button",{type:"button",onClick:z,onKeyUp:z,disabled:S,className:"".concat(w,"-quick-jumper-button")},r.jump_to_confirm):c.createElement("span",{onClick:z,onKeyUp:z},f)),H=c.createElement("div",{className:"".concat(w,"-quick-jumper")},r.jump_to,c.createElement("input",{disabled:S,type:"text",value:v,onChange:W,onKeyUp:z,onBlur:l,"aria-label":r.page}),r.page,J)),c.createElement("li",{className:w},M,H)},ve=function(t){var n=t.rootPrefixCls,i=t.page,r=t.active,g=t.className,h=t.showTitle,f=t.onClick,m=t.onKeyPress,y=t.itemRender,S="".concat(n,"-item"),d=E(S,"".concat(S,"-").concat(i),X(X({},"".concat(S,"-active"),r),"".concat(S,"-disabled"),!i),g),x=function(){f(i)},O=function(v){m(v,f,i)},_=y(i,"page",c.createElement("a",{rel:"nofollow"},i));return _?c.createElement("li",{title:h?String(i):null,className:d,onClick:x,onKeyDown:O,tabIndex:0},_):null},zi=function(t,n,i){return i};function st(){}function ut(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ae(e,t,n){var i=typeof e>"u"?t:e;return Math.floor((n-1)/i)+1}var Ni=function(t){var n=t.prefixCls,i=n===void 0?"rc-pagination":n,r=t.selectPrefixCls,g=r===void 0?"rc-select":r,h=t.className,f=t.current,m=t.defaultCurrent,y=m===void 0?1:m,S=t.total,d=S===void 0?0:S,x=t.pageSize,O=t.defaultPageSize,_=O===void 0?10:O,j=t.onChange,v=j===void 0?st:j,N=t.hideOnSinglePage,I=t.align,R=t.showPrevNextJumpers,W=R===void 0?!0:R,l=t.showQuickJumper,z=t.showLessItems,K=t.showTitle,w=K===void 0?!0:K,M=t.onShowSizeChange,H=M===void 0?st:M,J=t.locale,p=J===void 0?Ci:J,b=t.style,L=t.totalBoundaryShowSizeChanger,ee=L===void 0?50:L,V=t.disabled,D=t.simple,A=t.showTotal,Z=t.showSizeChanger,Be=Z===void 0?d>ee:Z,Me=t.sizeChangerRender,Te=t.pageSizeOptions,he=t.itemRender,te=he===void 0?zi:he,fe=t.jumpPrevIcon,F=t.jumpNextIcon,ie=t.prevIcon,le=t.nextIcon,ce=c.useRef(null),ne=nt(10,{value:x,defaultValue:_}),Se=Pe(ne,2),B=Se[0],be=Se[1],De=nt(1,{value:f,defaultValue:y,postState:function(u){return Math.max(1,Math.min(u,ae(void 0,B,d)))}}),re=Pe(De,2),s=re[0],U=re[1],_e=c.useState(s),Xe=Pe(_e,2),oe=Xe[0],$e=Xe[1];Kt(function(){$e(s)},[s]);var We=Math.max(1,s-(z?3:5)),Ke=Math.min(ae(void 0,B,d),s+(z?3:5));function Ce(o,u){var C=o||c.createElement("button",{type:"button","aria-label":u,className:"".concat(i,"-item-link")});return typeof o=="function"&&(C=c.createElement(o,Ft({},t))),C}function Ve(o){var u=o.target.value,C=ae(void 0,B,d),k;return u===""?k=u:Number.isNaN(Number(u))?k=oe:u>=C?k=C:k=Number(u),k}function Nt(o){return ut(o)&&o!==s&&ut(d)&&d>0}var Et=d>B?l:!1;function It(o){(o.keyCode===Y.UP||o.keyCode===Y.DOWN)&&o.preventDefault()}function Ge(o){var u=Ve(o);switch(u!==oe&&$e(u),o.keyCode){case Y.ENTER:q(u);break;case Y.UP:q(u-1);break;case Y.DOWN:q(u+1);break}}function wt(o){q(Ve(o))}function Pt(o){var u=ae(o,B,d),C=s>u&&u!==0?u:s;be(o),$e(C),H==null||H(s,o),U(C),v==null||v(C,o)}function q(o){if(Nt(o)&&!V){var u=ae(void 0,B,d),C=o;return o>u?C=u:o<1&&(C=1),C!==oe&&$e(C),U(C),v==null||v(C,B),C}return s}var ye=s>1,xe=s<ae(void 0,B,d);function Je(){ye&&q(s-1)}function Fe(){xe&&q(s+1)}function Ue(){q(We)}function Qe(){q(Ke)}function se(o,u){if(o.key==="Enter"||o.charCode===Y.ENTER||o.keyCode===Y.ENTER){for(var C=arguments.length,k=new Array(C>2?C-2:0),we=2;we<C;we++)k[we-2]=arguments[we];u.apply(void 0,k)}}function Ot(o){se(o,Je)}function jt(o){se(o,Fe)}function Bt(o){se(o,Ue)}function Mt(o){se(o,Qe)}function Tt(o){var u=te(o,"prev",Ce(ie,"prev page"));return c.isValidElement(u)?c.cloneElement(u,{disabled:!ye}):u}function Dt(o){var u=te(o,"next",Ce(le,"next page"));return c.isValidElement(u)?c.cloneElement(u,{disabled:!xe}):u}function ze(o){(o.type==="click"||o.keyCode===Y.ENTER)&&q(oe)}var Ye=null,_t=Gt(t,{aria:!0,data:!0}),Rt=A&&c.createElement("li",{className:"".concat(i,"-total-text")},A(d,[d===0?0:(s-1)*B+1,s*B>d?d:s*B])),Ze=null,P=ae(void 0,B,d);if(N&&d<=B)return null;var T=[],ue={rootPrefixCls:i,onClick:q,onKeyPress:se,showTitle:w,itemRender:te,page:-1},Ht=s-1>0?s-1:0,Lt=s+1<P?s+1:P,Ne=l&&l.goButton,At=Jt(D)==="object"?D.readOnly:!D,de=Ne,ke=null;D&&(Ne&&(typeof Ne=="boolean"?de=c.createElement("button",{type:"button",onClick:ze,onKeyUp:ze},p.jump_to_confirm):de=c.createElement("span",{onClick:ze,onKeyUp:ze},Ne),de=c.createElement("li",{title:w?"".concat(p.jump_to).concat(s,"/").concat(P):null,className:"".concat(i,"-simple-pager")},de)),ke=c.createElement("li",{title:w?"".concat(s,"/").concat(P):null,className:"".concat(i,"-simple-pager")},At?oe:c.createElement("input",{type:"text","aria-label":p.jump_to,value:oe,disabled:V,onKeyDown:It,onKeyUp:Ge,onChange:Ge,onBlur:wt,size:3}),c.createElement("span",{className:"".concat(i,"-slash")},"/"),P));var Q=z?1:2;if(P<=3+Q*2){P||T.push(c.createElement(ve,G({},ue,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var me=1;me<=P;me+=1)T.push(c.createElement(ve,G({},ue,{key:me,page:me,active:s===me})))}else{var qt=z?p.prev_3:p.prev_5,Xt=z?p.next_3:p.next_5,et=te(We,"jump-prev",Ce(fe,"prev page")),tt=te(Ke,"jump-next",Ce(F,"next page"));W&&(Ye=et?c.createElement("li",{title:w?qt:null,key:"prev",onClick:Ue,tabIndex:0,onKeyDown:Bt,className:E("".concat(i,"-jump-prev"),X({},"".concat(i,"-jump-prev-custom-icon"),!!fe))},et):null,Ze=tt?c.createElement("li",{title:w?Xt:null,key:"next",onClick:Qe,tabIndex:0,onKeyDown:Mt,className:E("".concat(i,"-jump-next"),X({},"".concat(i,"-jump-next-custom-icon"),!!F))},tt):null);var Re=Math.max(1,s-Q),He=Math.min(s+Q,P);s-1<=Q&&(He=1+Q*2),P-s<=Q&&(Re=P-Q*2);for(var ge=Re;ge<=He;ge+=1)T.push(c.createElement(ve,G({},ue,{key:ge,page:ge,active:s===ge})));if(s-1>=Q*2&&s!==3&&(T[0]=c.cloneElement(T[0],{className:E("".concat(i,"-item-after-jump-prev"),T[0].props.className)}),T.unshift(Ye)),P-s>=Q*2&&s!==P-2){var it=T[T.length-1];T[T.length-1]=c.cloneElement(it,{className:E("".concat(i,"-item-before-jump-next"),it.props.className)}),T.push(Ze)}Re!==1&&T.unshift(c.createElement(ve,G({},ue,{key:1,page:1}))),He!==P&&T.push(c.createElement(ve,G({},ue,{key:P,page:P})))}var Ee=Tt(Ht);if(Ee){var Le=!ye||!P;Ee=c.createElement("li",{title:w?p.prev_page:null,onClick:Je,tabIndex:Le?null:0,onKeyDown:Ot,className:E("".concat(i,"-prev"),X({},"".concat(i,"-disabled"),Le)),"aria-disabled":Le},Ee)}var Ie=Dt(Lt);if(Ie){var pe,Ae;D?(pe=!xe,Ae=ye?0:null):(pe=!xe||!P,Ae=pe?null:0),Ie=c.createElement("li",{title:w?p.next_page:null,onClick:Fe,tabIndex:Ae,onKeyDown:jt,className:E("".concat(i,"-next"),X({},"".concat(i,"-disabled"),pe)),"aria-disabled":pe},Ie)}var Wt=E(i,h,X(X(X(X(X({},"".concat(i,"-start"),I==="start"),"".concat(i,"-center"),I==="center"),"".concat(i,"-end"),I==="end"),"".concat(i,"-simple"),D),"".concat(i,"-disabled"),V));return c.createElement("ul",G({className:Wt,style:b,ref:ce},_t),Rt,Ee,D?ke:T,Ie,c.createElement(xi,{locale:p,rootPrefixCls:i,disabled:V,selectPrefixCls:g,changeSize:Pt,pageSize:B,pageSizeOptions:Te,quickGo:Et?q:null,goButton:de,showSizeChanger:Be,sizeChangerRender:Me}))};const Ei=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Ii=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
2
2
|
&${t}-mini ${t}-prev ${t}-item-link,
|
|
3
3
|
&${t}-mini ${t}-next ${t}-item-link
|
|
4
4
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:$(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM),input:Object.assign(Object.assign({},ti(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},wi=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:$(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:$(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${$(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${$(e.inputOutlineOffset)} 0 ${$(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Pi=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
@@ -10,4 +10,4 @@ import*as a from"react";import c,{useEffect as Kt,useMemo as Vt}from"react";impo
|
|
|
10
10
|
${t}-next,
|
|
11
11
|
${t}-jump-prev,
|
|
12
12
|
${t}-jump-next
|
|
13
|
-
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:$(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${$(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:$(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Zt(e)),kt(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},ei(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Oi=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:$(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${$(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${$(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},ji=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ht(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:$(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Oi(e)),Pi(e)),wi(e)),Ii(e)),Ei(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Bi=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Qt(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},at(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:at(e)}}}},$t=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Yt(e)),Ct=e=>ft(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ut(e)),Mi=vt("Pagination",e=>{const t=Ct(e);return[ji(t),Bi(t)]},$t),Ti=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Di=ii(["Pagination","bordered"],e=>{const t=Ct(e);return Ti(t)},$t);function dt(e){return Vt(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var _i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};const Zi=e=>{const{align:t,prefixCls:n,selectPrefixCls:i,className:r,rootClassName:g,style:f,size:h,locale:m,responsive:y,showSizeChanger:S,selectComponentClass:d,pageSizeOptions:x}=e,O=_i(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:_}=ni(y),[,j]=ai(),{getPrefixCls:v,direction:N,showSizeChanger:I,className:R,style:W}=St("pagination"),l=v("pagination",n),[z,K,w]=Mi(l),M=ri(h),H=M==="small"||!!(_&&!M&&y),[J]=oi("Pagination",li),p=Object.assign(Object.assign({},J),m),[b,L]=dt(S),[ee,V]=dt(I),D=b??ee,A=L??V,Z=d||ci,Be=a.useMemo(()=>x?x.map(F=>Number(F)):void 0,[x]),Me=F=>{var ie;const{disabled:le,size:ce,onSizeChange:ne,"aria-label":Se,className:B,options:be}=F,{className:De,onChange:re}=A||{},s=(ie=be.find(U=>String(U.value)===String(ce)))===null||ie===void 0?void 0:ie.value;return a.createElement(Z,Object.assign({disabled:le,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:U=>U.parentNode,"aria-label":Se,options:be},A,{value:s,onChange:(U,_e)=>{ne==null||ne(U),re==null||re(U,_e)},size:H?"small":"middle",className:E(B,De)}))},Te=a.useMemo(()=>{const F=a.createElement("span",{className:`${l}-item-ellipsis`},"\u2022\u2022\u2022"),ie=a.createElement("button",{className:`${l}-item-link`,type:"button",tabIndex:-1},N==="rtl"?a.createElement(rt,null):a.createElement(ot,null)),le=a.createElement("button",{className:`${l}-item-link`,type:"button",tabIndex:-1},N==="rtl"?a.createElement(ot,null):a.createElement(rt,null)),ce=a.createElement("a",{className:`${l}-item-link`},a.createElement("div",{className:`${l}-item-container`},N==="rtl"?a.createElement(ct,{className:`${l}-item-link-icon`}):a.createElement(lt,{className:`${l}-item-link-icon`}),F)),ne=a.createElement("a",{className:`${l}-item-link`},a.createElement("div",{className:`${l}-item-container`},N==="rtl"?a.createElement(lt,{className:`${l}-item-link-icon`}):a.createElement(ct,{className:`${l}-item-link-icon`}),F));return{prevIcon:ie,nextIcon:le,jumpPrevIcon:ce,jumpNextIcon:ne}},[N,l]),fe=v("select",i),te=E({[`${l}-${t}`]:!!t,[`${l}-mini`]:H,[`${l}-rtl`]:N==="rtl",[`${l}-bordered`]:j.wireframe},R,r,g,K,w),he=Object.assign(Object.assign({},W),f);return z(a.createElement(a.Fragment,null,j.wireframe&&a.createElement(Di,{prefixCls:l}),a.createElement(Ni,Object.assign({},Te,O,{style:he,prefixCls:l,selectPrefixCls:fe,className:te,locale:p,pageSizeOptions:Be,showSizeChanger:D,sizeChangerRender:Me}))))},Oe=100,yt=Oe/5,xt=Oe/2-yt/2,qe=xt*2*Math.PI,mt=50,gt=e=>{const{dotClassName:t,style:n,hasCircleCls:i}=e;return a.createElement("circle",{className:E(`${t}-circle`,{[`${t}-circle-bg`]:i}),r:xt,cx:mt,cy:mt,strokeWidth:yt,style:n})},Ri=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,i=`${n}-holder`,r=`${i}-hidden`,[g,f]=a.useState(!1);si(()=>{e!==0&&f(!0)},[e!==0]);const h=Math.max(Math.min(e,100),0);if(!g)return null;const m={strokeDashoffset:`${qe/4}`,strokeDasharray:`${qe*h/100} ${qe*(100-h)/100}`};return a.createElement("span",{className:E(i,`${n}-progress`,h<=0&&r)},a.createElement("svg",{viewBox:`0 0 ${Oe} ${Oe}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h},a.createElement(gt,{dotClassName:n,hasCircleCls:!0}),a.createElement(gt,{dotClassName:n,style:m})))};function Hi(e){const{prefixCls:t,percent:n=0}=e,i=`${t}-dot`,r=`${i}-holder`,g=`${r}-hidden`;return a.createElement(a.Fragment,null,a.createElement("span",{className:E(r,n>0&&g)},a.createElement("span",{className:E(i,`${t}-dot-spin`)},[1,2,3,4].map(f=>a.createElement("i",{className:`${t}-dot-item`,key:f})))),a.createElement(Ri,{prefixCls:t,percent:n}))}function Li(e){var t;const{prefixCls:n,indicator:i,percent:r}=e,g=`${n}-dot`;return i&&a.isValidElement(i)?ui(i,{className:E((t=i.props)===null||t===void 0?void 0:t.className,g),percent:r}):a.createElement(Hi,{prefixCls:n,percent:r})}const Ai=new bt("antSpinMove",{to:{opacity:1}}),qi=new bt("antRotate",{to:{transform:"rotate(405deg)"}}),Xi=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ht(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Ai,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:qi,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(i=>`${i} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Wi=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Ki=vt("Spin",e=>{const t=ft(e,{spinDotDefault:e.colorTextDescription});return Xi(t)},Wi),Vi=200,pt=[[30,.05],[70,.03],[96,.01]];function Gi(e,t){const[n,i]=a.useState(0),r=a.useRef(null),g=t==="auto";return a.useEffect(()=>(g&&e&&(i(0),r.current=setInterval(()=>{i(f=>{const h=100-f;for(let m=0;m<pt.length;m+=1){const[y,S]=pt[m];if(f<=y)return f+h*S}return f})},Vi)),()=>{r.current&&(clearInterval(r.current),r.current=null)}),[g,e]),g?n:t}var Ji=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let zt;function Fi(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Ui=e=>{var t;const{prefixCls:n,spinning:i=!0,delay:r=0,className:g,rootClassName:f,size:h="default",tip:m,wrapperClassName:y,style:S,children:d,fullscreen:x=!1,indicator:O,percent:_}=e,j=Ji(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:N,className:I,style:R,indicator:W}=St("spin"),l=v("spin",n),[z,K,w]=Ki(l),[M,H]=a.useState(()=>i&&!Fi(i,r)),J=Gi(M,_);a.useEffect(()=>{if(i){const A=fi(r,()=>{H(!0)});return A(),()=>{var Z;(Z=A==null?void 0:A.cancel)===null||Z===void 0||Z.call(A)}}H(!1)},[r,i]);const p=a.useMemo(()=>typeof d<"u"&&!x,[d,x]),b=E(l,I,{[`${l}-sm`]:h==="small",[`${l}-lg`]:h==="large",[`${l}-spinning`]:M,[`${l}-show-text`]:!!m,[`${l}-rtl`]:N==="rtl"},g,!x&&f,K,w),L=E(`${l}-container`,{[`${l}-blur`]:M}),ee=(t=O??W)!==null&&t!==void 0?t:zt,V=Object.assign(Object.assign({},R),S),D=a.createElement("div",Object.assign({},j,{style:V,className:b,"aria-live":"polite","aria-busy":M}),a.createElement(Li,{prefixCls:l,indicator:ee,percent:J}),m&&(p||x)?a.createElement("div",{className:`${l}-text`},m):null);return z(p?a.createElement("div",Object.assign({},j,{className:E(`${l}-nested-loading`,y,K,w)}),M&&a.createElement("div",{key:"loading"},D),a.createElement("div",{className:L,key:"container"},d)):x?a.createElement("div",{className:E(`${l}-fullscreen`,{[`${l}-fullscreen-show`]:M},f,K,w)},D):D)};Ui.setDefaultIndicator=e=>{zt=e};export{Zi as P,ot as R,Ui as S,rt as a};
|
|
13
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:$(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${$(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:$(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Zt(e)),kt(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},ei(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Oi=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:$(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${$(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${$(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},ji=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ft(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:$(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Oi(e)),Pi(e)),wi(e)),Ii(e)),Ei(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Bi=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Qt(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},at(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:at(e)}}}},$t=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Yt(e)),Ct=e=>ht(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ut(e)),Mi=vt("Pagination",e=>{const t=Ct(e);return[ji(t),Bi(t)]},$t),Ti=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Di=ii(["Pagination","bordered"],e=>{const t=Ct(e);return Ti(t)},$t);function dt(e){return Vt(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var _i=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};const Zi=e=>{const{align:t,prefixCls:n,selectPrefixCls:i,className:r,rootClassName:g,style:h,size:f,locale:m,responsive:y,showSizeChanger:S,selectComponentClass:d,pageSizeOptions:x}=e,O=_i(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:_}=ni(y),[,j]=ai(),{getPrefixCls:v,direction:N,showSizeChanger:I,className:R,style:W}=St("pagination"),l=v("pagination",n),[z,K,w]=Mi(l),M=ri(f),H=M==="small"||!!(_&&!M&&y),[J]=oi("Pagination",li),p=Object.assign(Object.assign({},J),m),[b,L]=dt(S),[ee,V]=dt(I),D=b??ee,A=L??V,Z=d||ci,Be=a.useMemo(()=>x?x.map(F=>Number(F)):void 0,[x]),Me=F=>{var ie;const{disabled:le,size:ce,onSizeChange:ne,"aria-label":Se,className:B,options:be}=F,{className:De,onChange:re}=A||{},s=(ie=be.find(U=>String(U.value)===String(ce)))===null||ie===void 0?void 0:ie.value;return a.createElement(Z,Object.assign({disabled:le,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:U=>U.parentNode,"aria-label":Se,options:be},A,{value:s,onChange:(U,_e)=>{ne==null||ne(U),re==null||re(U,_e)},size:H?"small":"middle",className:E(B,De)}))},Te=a.useMemo(()=>{const F=a.createElement("span",{className:`${l}-item-ellipsis`},"\u2022\u2022\u2022"),ie=a.createElement("button",{className:`${l}-item-link`,type:"button",tabIndex:-1},N==="rtl"?a.createElement(rt,null):a.createElement(ot,null)),le=a.createElement("button",{className:`${l}-item-link`,type:"button",tabIndex:-1},N==="rtl"?a.createElement(ot,null):a.createElement(rt,null)),ce=a.createElement("a",{className:`${l}-item-link`},a.createElement("div",{className:`${l}-item-container`},N==="rtl"?a.createElement(ct,{className:`${l}-item-link-icon`}):a.createElement(lt,{className:`${l}-item-link-icon`}),F)),ne=a.createElement("a",{className:`${l}-item-link`},a.createElement("div",{className:`${l}-item-container`},N==="rtl"?a.createElement(lt,{className:`${l}-item-link-icon`}):a.createElement(ct,{className:`${l}-item-link-icon`}),F));return{prevIcon:ie,nextIcon:le,jumpPrevIcon:ce,jumpNextIcon:ne}},[N,l]),he=v("select",i),te=E({[`${l}-${t}`]:!!t,[`${l}-mini`]:H,[`${l}-rtl`]:N==="rtl",[`${l}-bordered`]:j.wireframe},R,r,g,K,w),fe=Object.assign(Object.assign({},W),h);return z(a.createElement(a.Fragment,null,j.wireframe&&a.createElement(Di,{prefixCls:l}),a.createElement(Ni,Object.assign({},Te,O,{style:fe,prefixCls:l,selectPrefixCls:he,className:te,locale:p,pageSizeOptions:Be,showSizeChanger:D,sizeChangerRender:Me}))))},Oe=100,yt=Oe/5,xt=Oe/2-yt/2,qe=xt*2*Math.PI,mt=50,gt=e=>{const{dotClassName:t,style:n,hasCircleCls:i}=e;return a.createElement("circle",{className:E(`${t}-circle`,{[`${t}-circle-bg`]:i}),r:xt,cx:mt,cy:mt,strokeWidth:yt,style:n})},Ri=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,i=`${n}-holder`,r=`${i}-hidden`,[g,h]=a.useState(!1);si(()=>{e!==0&&h(!0)},[e!==0]);const f=Math.max(Math.min(e,100),0);if(!g)return null;const m={strokeDashoffset:`${qe/4}`,strokeDasharray:`${qe*f/100} ${qe*(100-f)/100}`};return a.createElement("span",{className:E(i,`${n}-progress`,f<=0&&r)},a.createElement("svg",{viewBox:`0 0 ${Oe} ${Oe}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":f},a.createElement(gt,{dotClassName:n,hasCircleCls:!0}),a.createElement(gt,{dotClassName:n,style:m})))};function Hi(e){const{prefixCls:t,percent:n=0}=e,i=`${t}-dot`,r=`${i}-holder`,g=`${r}-hidden`;return a.createElement(a.Fragment,null,a.createElement("span",{className:E(r,n>0&&g)},a.createElement("span",{className:E(i,`${t}-dot-spin`)},[1,2,3,4].map(h=>a.createElement("i",{className:`${t}-dot-item`,key:h})))),a.createElement(Ri,{prefixCls:t,percent:n}))}function Li(e){var t;const{prefixCls:n,indicator:i,percent:r}=e,g=`${n}-dot`;return i&&a.isValidElement(i)?ui(i,{className:E((t=i.props)===null||t===void 0?void 0:t.className,g),percent:r}):a.createElement(Hi,{prefixCls:n,percent:r})}const Ai=new bt("antSpinMove",{to:{opacity:1}}),qi=new bt("antRotate",{to:{transform:"rotate(405deg)"}}),Xi=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ft(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Ai,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:qi,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(i=>`${i} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},Wi=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Ki=vt("Spin",e=>{const t=ht(e,{spinDotDefault:e.colorTextDescription});return Xi(t)},Wi),Vi=200,pt=[[30,.05],[70,.03],[96,.01]];function Gi(e,t){const[n,i]=a.useState(0),r=a.useRef(null),g=t==="auto";return a.useEffect(()=>(g&&e&&(i(0),r.current=setInterval(()=>{i(h=>{const f=100-h;for(let m=0;m<pt.length;m+=1){const[y,S]=pt[m];if(h<=y)return h+f*S}return h})},Vi)),()=>{r.current&&(clearInterval(r.current),r.current=null)}),[g,e]),g?n:t}var Ji=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let zt;function Fi(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Ui=e=>{var t;const{prefixCls:n,spinning:i=!0,delay:r=0,className:g,rootClassName:h,size:f="default",tip:m,wrapperClassName:y,style:S,children:d,fullscreen:x=!1,indicator:O,percent:_}=e,j=Ji(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:N,className:I,style:R,indicator:W}=St("spin"),l=v("spin",n),[z,K,w]=Ki(l),[M,H]=a.useState(()=>i&&!Fi(i,r)),J=Gi(M,_);a.useEffect(()=>{if(i){const A=hi(r,()=>{H(!0)});return A(),()=>{var Z;(Z=A==null?void 0:A.cancel)===null||Z===void 0||Z.call(A)}}H(!1)},[r,i]);const p=a.useMemo(()=>typeof d<"u"&&!x,[d,x]),b=E(l,I,{[`${l}-sm`]:f==="small",[`${l}-lg`]:f==="large",[`${l}-spinning`]:M,[`${l}-show-text`]:!!m,[`${l}-rtl`]:N==="rtl"},g,!x&&h,K,w),L=E(`${l}-container`,{[`${l}-blur`]:M}),ee=(t=O??W)!==null&&t!==void 0?t:zt,V=Object.assign(Object.assign({},R),S),D=a.createElement("div",Object.assign({},j,{style:V,className:b,"aria-live":"polite","aria-busy":M}),a.createElement(Li,{prefixCls:l,indicator:ee,percent:J}),m&&(p||x)?a.createElement("div",{className:`${l}-text`},m):null);return z(p?a.createElement("div",Object.assign({},j,{className:E(`${l}-nested-loading`,y,K,w)}),M&&a.createElement("div",{key:"loading"},D),a.createElement("div",{className:L,key:"container"},d)):x?a.createElement("div",{className:E(`${l}-fullscreen`,{[`${l}-fullscreen-show`]:M},h,K,w)},D):D)};Ui.setDefaultIndicator=e=>{zt=e};export{Zi as P,ot as R,Ui as S,rt as a};
|
|
@@ -4,7 +4,7 @@ import*as d from"react";import ae,{useContext as or,createElement as yi,createCo
|
|
|
4
4
|
`+i.map(Au).join(`
|
|
5
5
|
`):" "+Au(i[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const Nm={getAdapter:W0,adapters:Ec};function xs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _o(null,e)}function ju(e){return xs(e),e.headers=wr.from(e.headers),e.data=ws.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nm.getAdapter(e.adapter||Ca.adapter,e)(e).then(function(n){return xs(e),n.data=ws.call(e,e.transformResponse,n),n.headers=wr.from(n.headers),n},function(n){return Rm(n)||(xs(e),n&&n.response&&(n.response.data=ws.call(e,e.transformResponse,n.response),n.response.headers=wr.from(n.response.headers))),Promise.reject(n)})}const Fm="1.13.1",Vi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Vi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Du={};Vi.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Fm+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new tt(o(i," has been removed"+(r?" in "+r:"")),tt.ERR_DEPRECATED);return r&&!Du[i]&&(Du[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}};Vi.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function k0(e,t,r){if(typeof e!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new tt("option "+a+" must be "+l,tt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new tt("Unknown option "+a,tt.ERR_BAD_OPTION)}}const ri={assertOptions:k0,validators:Vi},en=ri.validators;let zn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Eu,response:new Eu}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
6
|
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=kn(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&ri.assertOptions(n,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),o!=null&&(Y.isFunction(o)?r.paramsSerializer={serialize:o}:ri.assertOptions(o,{encode:en.function,serialize:en.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ri.assertOptions(r,{baseUrl:en.spelling("baseURL"),withXsrfToken:en.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&Y.merge(a.common,a[r.method]);a&&Y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),r.headers=wr.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,f=0,g;if(!l){const v=[ju.bind(this),void 0];for(v.unshift(...s),v.push(...c),g=v.length,u=Promise.resolve(r);f<g;)u=u.then(v[f++],v[f++]);return u}g=s.length;let h=r;for(;f<g;){const v=s[f++],p=s[f++];try{h=v(h)}catch(m){p.call(this,m);break}}try{u=ju.call(this,h)}catch(v){return Promise.reject(v)}for(f=0,g=c.length;f<g;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=kn(this.defaults,t);const r=Pm(t.baseURL,t.url,t.allowAbsoluteUrls);return $m(r,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){zn.prototype[t]=function(r,n){return this.request(kn(n||{},{method:t,url:r,data:(n||{}).data}))}});Y.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,s){return this.request(kn(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}zn.prototype[t]=r(),zn.prototype[t+"Form"]=r(!0)});let q0=class _m{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new _o(a,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new _m(function(o){t=o}),cancel:t}}};function U0(e){return function(r){return e.apply(null,r)}}function G0(e){return Y.isObject(e)&&e.isAxiosError===!0}const fl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(fl).forEach(([e,t])=>{fl[t]=e});function Am(e){const t=new zn(e),r=fm(zn.prototype.request,t);return Y.extend(r,zn.prototype,t,{allOwnKeys:!0}),Y.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Am(kn(e,o))},r}const Ut=Am(Ca);Ut.Axios=zn;Ut.CanceledError=_o;Ut.CancelToken=q0;Ut.isCancel=Rm;Ut.VERSION=Fm;Ut.toFormData=Hi;Ut.AxiosError=tt;Ut.Cancel=Ut.CanceledError;Ut.all=function(t){return Promise.all(t)};Ut.spread=U0;Ut.isAxiosError=G0;Ut.mergeConfig=kn;Ut.AxiosHeaders=wr;Ut.formToJSON=e=>Om(Y.isHTMLForm(e)?new FormData(e):e);Ut.getAdapter=Nm.getAdapter;Ut.HttpStatusCode=fl;Ut.default=Ut;const{Axios:QP,AxiosError:JP,CanceledError:ZP,isCancel:eM,CancelToken:tM,VERSION:rM,all:nM,Cancel:oM,isAxiosError:aM,spread:iM,toFormData:sM,AxiosHeaders:lM,HttpStatusCode:cM,formToJSON:uM,getAdapter:dM,mergeConfig:fM}=Ut;var ur=function(){return ur=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ur.apply(this,arguments)};function na(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var mM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vM(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var It="-ms-",Qo="-moz-",St="-webkit-",jm="comm",Wi="rule",Oc="decl",X0="@import",Dm="@keyframes",Y0="@layer",Lm=Math.abs,Rc=String.fromCharCode,ml=Object.assign;function Q0(e,t){return er(e,0)^45?(((t<<2^er(e,0))<<2^er(e,1))<<2^er(e,2))<<2^er(e,3):0}function Bm(e){return e.trim()}function sn(e,t){return(e=t.exec(e))?e[0]:e}function rt(e,t,r){return e.replace(t,r)}function ni(e,t,r){return e.indexOf(t,r)}function er(e,t){return e.charCodeAt(t)|0}function bo(e,t,r){return e.slice(t,r)}function rn(e){return e.length}function zm(e){return e.length}function Ko(e,t){return t.push(e),e}function J0(e,t){return e.map(t).join("")}function Lu(e,t){return e.filter(function(r){return!sn(r,t)})}var ki=1,yo=1,Hm=0,Lr=0,kt=0,Ao="";function qi(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ki,column:yo,length:i,return:"",siblings:s}}function hn(e,t){return ml(qi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function eo(e){for(;e.root;)e=hn(e.root,{children:[e]});Ko(e,e.siblings)}function Z0(){return kt}function eb(){return kt=Lr>0?er(Ao,--Lr):0,yo--,kt===10&&(yo=1,ki--),kt}function Ur(){return kt=Lr<Hm?er(Ao,Lr++):0,yo++,kt===10&&(yo=1,ki++),kt}function Hn(){return er(Ao,Lr)}function oi(){return Lr}function Ui(e,t){return bo(Ao,e,t)}function vl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tb(e){return ki=yo=1,Hm=rn(Ao=e),Lr=0,[]}function rb(e){return Ao="",e}function $s(e){return Bm(Ui(Lr-1,gl(e===91?e+2:e===40?e+1:e)))}function nb(e){for(;(kt=Hn())&&kt<33;)Ur();return vl(e)>2||vl(kt)>3?"":" "}function ob(e,t){for(;--t&&Ur()&&!(kt<48||kt>102||kt>57&&kt<65||kt>70&&kt<97););return Ui(e,oi()+(t<6&&Hn()==32&&Ur()==32))}function gl(e){for(;Ur();)switch(kt){case e:return Lr;case 34:case 39:e!==34&&e!==39&&gl(kt);break;case 40:e===41&&gl(e);break;case 92:Ur();break}return Lr}function ab(e,t){for(;Ur()&&e+kt!==57;)if(e+kt===84&&Hn()===47)break;return"/*"+Ui(t,Lr-1)+"*"+Rc(e===47?e:Ur())}function ib(e){for(;!vl(Hn());)Ur();return Ui(e,Lr)}function sb(e){return rb(ai("",null,null,null,[""],e=tb(e),0,[0],e))}function ai(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,f=i,g=0,h=0,v=0,p=1,m=1,b=1,y=0,S="",C=o,x=a,$=n,w=S;m;)switch(v=y,y=Ur()){case 40:if(v!=108&&er(w,f-1)==58){ni(w+=rt($s(y),"&","&\f"),"&\f",Lm(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:w+=$s(y);break;case 9:case 10:case 13:case 32:w+=nb(v);break;case 92:w+=ob(oi()-1,7);continue;case 47:switch(Hn()){case 42:case 47:Ko(lb(ab(Ur(),oi()),t,r,l),l);break;default:w+="/"}break;case 123*p:s[c++]=rn(w)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:b==-1&&(w=rt(w,/\f/g,"")),h>0&&rn(w)-f&&Ko(h>32?zu(w+";",n,r,f-1,l):zu(rt(w," ","")+";",n,r,f-2,l),l);break;case 59:w+=";";default:if(Ko($=Bu(w,t,r,c,u,o,s,S,C=[],x=[],f,a),a),y===123)if(u===0)ai(w,t,$,$,C,a,f,s,x);else switch(g===99&&er(w,3)===110?100:g){case 100:case 108:case 109:case 115:ai(e,$,$,n&&Ko(Bu(e,$,$,0,0,o,s,S,o,C=[],f,x),x),o,x,f,s,n?C:x);break;default:ai(w,$,$,$,[""],x,0,s,x)}}c=u=h=0,p=b=1,S=w="",f=i;break;case 58:f=1+rn(w),h=v;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&eb()==125)continue}switch(w+=Rc(y),y*p){case 38:b=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(rn(w)-1)*b,b=1;break;case 64:Hn()===45&&(w+=$s(Ur())),g=Hn(),u=f=rn(S=w+=ib(oi())),y++;break;case 45:v===45&&rn(w)==2&&(p=0)}}return a}function Bu(e,t,r,n,o,a,i,s,l,c,u,f){for(var g=o-1,h=o===0?a:[""],v=zm(h),p=0,m=0,b=0;p<n;++p)for(var y=0,S=bo(e,g+1,g=Lm(m=i[p])),C=e;y<v;++y)(C=Bm(m>0?h[y]+" "+S:rt(S,/&\f/g,h[y])))&&(l[b++]=C);return qi(e,t,r,o===0?Wi:s,l,c,u,f)}function lb(e,t,r,n){return qi(e,t,r,jm,Rc(Z0()),bo(e,2,-2),0,n)}function zu(e,t,r,n,o){return qi(e,t,r,Oc,bo(e,0,n),bo(e,n+1,-1),n,o)}function Vm(e,t,r){switch(Q0(e,t)){case 5103:return St+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return St+e+e;case 4789:return Qo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Qo+e+It+e+e;case 5936:switch(er(e,t+11)){case 114:return St+e+It+rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+It+rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+It+rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+It+e+e;case 6165:return St+e+It+"flex-"+e+e;case 5187:return St+e+rt(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+It+"flex-$1$2")+e;case 5443:return St+e+It+"flex-item-"+rt(e,/flex-|-self/g,"")+(sn(e,/flex-|baseline/)?"":It+"grid-row-"+rt(e,/flex-|-self/g,""))+e;case 4675:return St+e+It+"flex-line-pack"+rt(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+It+rt(e,"shrink","negative")+e;case 5292:return St+e+It+rt(e,"basis","preferred-size")+e;case 6060:return St+"box-"+rt(e,"-grow","")+St+e+It+rt(e,"grow","positive")+e;case 4554:return St+rt(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return rt(rt(rt(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return rt(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return rt(rt(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+It+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4200:if(!sn(e,/flex-|baseline/))return It+"grid-column-align"+bo(e,t)+e;break;case 2592:case 3360:return It+rt(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,sn(n.props,/grid-\w+-end/)})?~ni(e+(r=r[t].value),"span",0)?e:It+rt(e,"-start","")+e+It+"grid-row-span:"+(~ni(r,"span",0)?sn(r,/\d+/):+sn(r,/\d+/)-+sn(e,/\d+/))+";":It+rt(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return sn(n.props,/grid-\w+-start/)})?e:It+rt(rt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rt(e,/(.+)-inline(.+)/,St+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(rn(e)-1-t>6)switch(er(e,t+1)){case 109:if(er(e,t+4)!==45)break;case 102:return rt(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Qo+(er(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ni(e,"stretch",0)?Vm(rt(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return rt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,a,i,s,l,c){return It+o+":"+a+c+(i?It+o+"-span:"+(s?l:+l-+a)+c:"")+e});case 4949:if(er(e,t+6)===121)return rt(e,":",":"+St)+e;break;case 6444:switch(er(e,er(e,14)===45?18:11)){case 120:return rt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(er(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+It+"$2box$3")+e;case 100:return rt(e,":",":"+It)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rt(e,"scroll-","scroll-snap-")+e}return e}function Ci(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function cb(e,t,r,n){switch(e.type){case Y0:if(e.children.length)break;case X0:case Oc:return e.return=e.return||e.value;case jm:return"";case Dm:return e.return=e.value+"{"+Ci(e.children,n)+"}";case Wi:if(!rn(e.value=e.props.join(",")))return""}return rn(r=Ci(e.children,n))?e.return=e.value+"{"+r+"}":""}function ub(e){var t=zm(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}function db(e){return function(t){t.root||(t=t.return)&&e(t)}}function fb(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Oc:e.return=Vm(e.value,e.length,r);return;case Dm:return Ci([hn(e,{value:rt(e.value,"@","@"+St)})],n);case Wi:if(e.length)return J0(r=e.props,function(o){switch(sn(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":eo(hn(e,{props:[rt(o,/:(read-\w+)/,":"+Qo+"$1")]})),eo(hn(e,{props:[o]})),ml(e,{props:Lu(r,n)});break;case"::placeholder":eo(hn(e,{props:[rt(o,/:(plac\w+)/,":"+St+"input-$1")]})),eo(hn(e,{props:[rt(o,/:(plac\w+)/,":"+Qo+"$1")]})),eo(hn(e,{props:[rt(o,/:(plac\w+)/,It+"input-$1")]})),eo(hn(e,{props:[o]})),ml(e,{props:Lu(r,n)});break}return""})}}var mb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ir={},So=typeof process<"u"&&Ir!==void 0&&(Ir.REACT_APP_SC_ATTR||Ir.SC_ATTR)||"data-styled",Wm="active",km="data-styled-version",Gi="6.1.19",Ic=`/*!sc*/
|
|
7
|
-
`,wi=typeof window<"u"&&typeof document<"u",vb=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==""?Ir.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ir.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.SC_DISABLE_SPEEDY!==void 0&&Ir.SC_DISABLE_SPEEDY!==""&&Ir.SC_DISABLE_SPEEDY!=="false"&&Ir.SC_DISABLE_SPEEDY),gb={},Ki=Object.freeze([]),Co=Object.freeze({});function qm(e,t,r){return r===void 0&&(r=Co),e.theme!==r.theme&&e.theme||t||r.theme}var Um=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),hb=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pb=/(^-|-$)/g;function Hu(e){return e.replace(hb,"-").replace(pb,"")}var bb=/(a)(d)/gi,Ha=52,Vu=function(e){return String.fromCharCode(e+(e>25?39:97))};function hl(e){var t,r="";for(t=Math.abs(e);t>Ha;t=t/Ha|0)r=Vu(t%Ha)+r;return(Vu(t%Ha)+r).replace(bb,"$1-$2")}var Es,Gm=5381,co=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Km=function(e){return co(Gm,e)};function Xm(e){return hl(Km(e)>>>0)}function yb(e){return e.displayName||e.name||"Component"}function Os(e){return typeof e=="string"&&!0}var Ym=typeof Symbol=="function"&&Symbol.for,Qm=Ym?Symbol.for("react.memo"):60115,Sb=Ym?Symbol.for("react.forward_ref"):60112,Cb={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xb=((Es={})[Sb]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Es[Qm]=Jm,Es);function Wu(e){return("type"in(t=e)&&t.type.$$typeof)===Qm?Jm:"$$typeof"in e?xb[e.$$typeof]:Cb;var t}var $b=Object.defineProperty,Eb=Object.getOwnPropertyNames,ku=Object.getOwnPropertySymbols,Ob=Object.getOwnPropertyDescriptor,Rb=Object.getPrototypeOf,qu=Object.prototype;function Zm(e,t,r){if(typeof t!="string"){if(qu){var n=Rb(t);n&&n!==qu&&Zm(e,n,r)}var o=Eb(t);ku&&(o=o.concat(ku(t)));for(var a=Wu(e),i=Wu(t),s=0;s<o.length;++s){var l=o[s];if(!(l in wb||r&&r[l]||i&&l in i||a&&l in a)){var c=Ob(t,l);try{$b(e,l,c)}catch{}}}}return e}function wo(e){return typeof e=="function"}function Pc(e){return typeof e=="object"&&"styledComponentId"in e}function Dn(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function pl(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function oa(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function bl(e,t,r){if(r===void 0&&(r=!1),!r&&!oa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=bl(e[n],t[n]);else if(oa(t))for(var n in t)e[n]=bl(e[n],t[n]);return e}function Mc(e,t){Object.defineProperty(e,"toString",{value:t})}function wa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ib=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw wa(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=o;i<a;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(t+1),l=(i=0,r.length);i<l;i++)this.tag.insertRule(s,r[i])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,i=o;i<a;i++)r+="".concat(this.tag.getRule(i)).concat(Ic);return r},e})(),ii=new Map,xi=new Map,si=1,Va=function(e){if(ii.has(e))return ii.get(e);for(;xi.has(si);)si++;var t=si++;return ii.set(e,t),xi.set(t,e),t},Pb=function(e,t){si=t+1,ii.set(e,t),xi.set(t,e)},Mb="style[".concat(So,"][").concat(km,'="').concat(Gi,'"]'),Tb=new RegExp("^".concat(So,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Nb=function(e,t,r){for(var n,o=r.split(","),a=0,i=o.length;a<i;a++)(n=o[a])&&e.registerName(t,n)},Fb=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ic),o=[],a=0,i=n.length;a<i;a++){var s=n[a].trim();if(s){var l=s.match(Tb);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(Pb(u,c),Nb(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},Uu=function(e){for(var t=document.querySelectorAll(Mb),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(So)!==Wm&&(Fb(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function _b(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ev=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(s){var l=Array.from(s.querySelectorAll("style[".concat(So,"]")));return l[l.length-1]})(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(So,Wm),n.setAttribute(km,Gi);var i=_b();return i&&n.setAttribute("nonce",i),r.insertBefore(n,a),n},Ab=(function(){function e(t){this.element=ev(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var i=n[o];if(i.ownerNode===r)return i}throw wa(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),jb=(function(){function e(t){this.element=ev(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Db=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Gu=wi,Lb={isServer:!wi,useCSSOMInjection:!vb},$i=(function(){function e(t,r,n){t===void 0&&(t=Co),r===void 0&&(r={});var o=this;this.options=ur(ur({},Lb),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&wi&&Gu&&(Gu=!1,Uu(this)),Mc(this,function(){return(function(a){for(var i=a.getTag(),s=i.length,l="",c=function(f){var g=(function(b){return xi.get(b)})(f);if(g===void 0)return"continue";var h=a.names.get(g),v=i.getGroup(f);if(h===void 0||!h.size||v.length===0)return"continue";var p="".concat(So,".g").concat(f,'[id="').concat(g,'"]'),m="";h!==void 0&&h.forEach(function(b){b.length>0&&(m+="".concat(b,","))}),l+="".concat(v).concat(p,'{content:"').concat(m,'"}').concat(Ic)},u=0;u<s;u++)c(u);return l})(o)})}return e.registerId=function(t){return Va(t)},e.prototype.rehydrate=function(){!this.server&&wi&&Uu(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(ur(ur({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new Db(o):n?new Ab(o):new jb(o)})(this.options),new Ib(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Va(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Va(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Va(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Bb=/&/g,zb=/^\s*\/\/.*$/gm;function tv(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=tv(r.children,t)),r})}function Hb(e){var t,r,n,o=Co,a=o.options,i=a===void 0?Co:a,s=o.plugins,l=s===void 0?Ki:s,c=function(g,h,v){return v.startsWith(r)&&v.endsWith(r)&&v.replaceAll(r,"").length>0?".".concat(t):g},u=l.slice();u.push(function(g){g.type===Wi&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Bb,r).replace(n,c))}),i.prefix&&u.push(fb),u.push(cb);var f=function(g,h,v,p){h===void 0&&(h=""),v===void 0&&(v=""),p===void 0&&(p="&"),t=p,r=h,n=new RegExp("\\".concat(r,"\\b"),"g");var m=g.replace(zb,""),b=sb(v||h?"".concat(v," ").concat(h," { ").concat(m," }"):m);i.namespace&&(b=tv(b,i.namespace));var y=[];return Ci(b,ub(u.concat(db(function(S){return y.push(S)})))),y};return f.hash=l.length?l.reduce(function(g,h){return h.name||wa(15),co(g,h.name)},Gm).toString():"",f}var Vb=new $i,yl=Hb(),rv=ae.createContext({shouldForwardProp:void 0,styleSheet:Vb,stylis:yl});rv.Consumer;ae.createContext(void 0);function Sl(){return or(rv)}var Wb=(function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=yl);var i=n.name+a.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,a(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Mc(this,function(){throw wa(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=yl),this.name+t.hash},e})(),kb=function(e){return e>="A"&&e<="Z"};function Ku(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;kb(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var nv=function(e){return e==null||e===!1||e===""},ov=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!nv(a)&&(Array.isArray(a)&&a.isCss||wo(a)?n.push("".concat(Ku(o),":"),a,";"):oa(a)?n.push.apply(n,na(na(["".concat(o," {")],ov(a),!1),["}"],!1)):n.push("".concat(Ku(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in mb||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function wn(e,t,r,n){if(nv(e))return[];if(Pc(e))return[".".concat(e.styledComponentId)];if(wo(e)){if(!wo(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return wn(o,t,r,n)}var a;return e instanceof Wb?r?(e.inject(r,n),[e.getName(n)]):[e]:oa(e)?ov(e):Array.isArray(e)?Array.prototype.concat.apply(Ki,e.map(function(i){return wn(i,t,r,n)})):[e.toString()]}function av(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(wo(r)&&!Pc(r))return!1}return!0}var qb=Km(Gi),Ub=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&av(t),this.componentId=r,this.baseHash=co(qb,r),this.baseStyle=n,$i.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Dn(o,this.staticRulesId);else{var a=pl(wn(this.rules,t,r,n)),i=hl(co(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,i)){var s=n(a,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,s)}o=Dn(o,i),this.staticRulesId=i}else{for(var l=co(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var f=this.rules[u];if(typeof f=="string")c+=f;else if(f){var g=pl(wn(f,t,r,n));l=co(l,g+u),c+=g}}if(c){var h=hl(l>>>0);r.hasNameForId(this.componentId,h)||r.insertRules(this.componentId,h,n(c,".".concat(h),void 0,this.componentId)),o=Dn(o,h)}}return o},e})(),Tc=ae.createContext(void 0);Tc.Consumer;var Rs={};function Gb(e,t,r){var n=Pc(e),o=e,a=!Os(e),i=t.attrs,s=i===void 0?Ki:i,l=t.componentId,c=l===void 0?(function(C,x){var $=typeof C!="string"?"sc":Hu(C);Rs[$]=(Rs[$]||0)+1;var w="".concat($,"-").concat(Xm(Gi+$+Rs[$]));return x?"".concat(x,"-").concat(w):w})(t.displayName,t.parentComponentId):l,u=t.displayName,f=u===void 0?(function(C){return Os(C)?"styled.".concat(C):"Styled(".concat(yb(C),")")})(e):u,g=t.displayName&&t.componentId?"".concat(Hu(t.displayName),"-").concat(t.componentId):t.componentId||c,h=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,v=t.shouldForwardProp;if(n&&o.shouldForwardProp){var p=o.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;v=function(C,x){return p(C,x)&&m(C,x)}}else v=p}var b=new Ub(r,g,n?o.componentStyle:void 0);function y(C,x){return(function($,w,E){var O=$.attrs,R=$.componentStyle,I=$.defaultProps,P=$.foldedComponentIds,M=$.styledComponentId,_=$.target,F=ae.useContext(Tc),A=Sl(),N=$.shouldForwardProp||A.shouldForwardProp,D=qm(w,F,I)||Co,W=(function(B,H,Z){for(var k,J=ur(ur({},H),{className:void 0,theme:Z}),oe=0;oe<B.length;oe+=1){var K=wo(k=B[oe])?k(J):k;for(var U in K)J[U]=U==="className"?Dn(J[U],K[U]):U==="style"?ur(ur({},J[U]),K[U]):K[U]}return H.className&&(J.className=Dn(J.className,H.className)),J})(O,w,D),G=W.as||_,z={};for(var L in W)W[L]===void 0||L[0]==="$"||L==="as"||L==="theme"&&W.theme===D||(L==="forwardedAs"?z.as=W.forwardedAs:N&&!N(L,G)||(z[L]=W[L]));var q=(function(B,H){var Z=Sl(),k=B.generateAndInjectStyles(H,Z.styleSheet,Z.stylis);return k})(R,W),V=Dn(P,M);return q&&(V+=" "+q),W.className&&(V+=" "+W.className),z[Os(G)&&!Um.has(G)?"class":"className"]=V,E&&(z.ref=E),yi(G,z)})(S,C,x)}y.displayName=f;var S=ae.forwardRef(y);return S.attrs=h,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=v,S.foldedComponentIds=n?Dn(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=g,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=n?(function(x){for(var $=[],w=1;w<arguments.length;w++)$[w-1]=arguments[w];for(var E=0,O=$;E<O.length;E++)bl(x,O[E],!0);return x})({},o.defaultProps,C):C}}),Mc(S,function(){return".".concat(S.styledComponentId)}),a&&Zm(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Xu(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Yu=function(e){return Object.assign(e,{isCss:!0})};function iv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(wo(e)||oa(e))return Yu(wn(Xu(Ki,na([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?wn(n):Yu(wn(Xu(n,t)))}function Cl(e,t,r){if(r===void 0&&(r=Co),!t)throw wa(1,t);var n=function(o){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return e(t,r,iv.apply(void 0,na([o],a,!1)))};return n.attrs=function(o){return Cl(e,t,ur(ur({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return Cl(e,t,ur(ur({},r),o))},n}var sv=function(e){return Cl(Gb,e)},Kb=sv;Um.forEach(function(e){Kb[e]=sv(e)});var Xb=(function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=av(t),$i.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,n,o){var a=o(pl(wn(this.rules,r,n,o)),""),i=this.componentId+t;n.insertRules(i,i,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,n,o){t>2&&$i.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)},e})();function gM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=iv.apply(void 0,na([e],t,!1)),o="sc-global-".concat(Xm(JSON.stringify(n))),a=new Xb(n,o),i=function(l){var c=Sl(),u=ae.useContext(Tc),f=ae.useRef(c.styleSheet.allocateGSInstance(o)).current;return c.styleSheet.server&&s(f,l,c.styleSheet,u,c.stylis),ae.useLayoutEffect(function(){if(!c.styleSheet.server)return s(f,l,c.styleSheet,u,c.stylis),function(){return a.removeStyles(f,c.styleSheet)}},[f,l,c.styleSheet,u,c.stylis]),null};function s(l,c,u,f,g){if(a.isStatic)a.renderStyles(l,gb,u,g);else{var h=ur(ur({},c),{theme:qm(c,f,i.defaultProps)});a.renderStyles(l,h,u,g)}}return ae.memo(i)}const Yb={colors:{primary:"#4E6EF2",secondary:"#6D86F5",success:"#52C41A",warning:"#FAAD14",error:"#F5222D",info:"#1890FF",background:"#F7F8FA",appBackground:"transparent",listBackground:"#F2F3F5",dashboardBackground:"#FFFFFF",text:"#1D2129",textSecondary:"#4E5969",textTertiary:"#86909C",textInverse:"#FFFFFF",border:"#DDE0E5",borderWeak:"#E5E6EB",disabled:"#C9CDD4",disabledBackground:"#F5F7FA",disabledText:"#C9CDD4",shadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",primaryHover:"#6D86F5",primaryActive:"#2D4BE0",surfaceSubtle:"#F2F3F5",surfaceSelected:"#EEF3FE",btnPrimaryBg:"#4E6EF2",btnPrimaryBgHover:"#6D86F5",btnPrimaryBgActive:"#2D4BE0",btnPrimaryBgDisabled:"#F5F7FA",btnPrimaryText:"#FFFFFF",btnPrimaryTextDisabled:"#C9CDD4",btnSecondaryText:"#4E6EF2",btnSecondaryTextHover:"#4E6EF2",btnSecondaryTextActive:"#2D4BE0",btnSecondaryTextDisabled:"#C9CDD4",btnSecondaryBg:"#FFFFFF",btnSecondaryBgHover:"#EEF3FE",btnSecondaryBgActive:"#EEF3FE",btnSecondaryBgDisabled:"#F5F7FA",btnSecondaryBorder:"#4E6EF2",btnSecondaryBorderHover:"#6D86F5",btnSecondaryBorderActive:"#2D4BE0",btnSecondaryBorderDisabled:"#E5E6EB",btnTextText:"#4E6EF2",btnTextTextHover:"#6D86F5",btnTextTextActive:"#2D4BE0",btnTextTextDisabled:"#C9CDD4"},space:{sidebar:"260px",size:"12px",radius:"4px",padding:"8px",margin:"8px",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.5"},fonts:{body:{size:"14px",weight:"normal",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},heading:{size:"16px",weight:"600",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"}},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}};function hM(e,t){if(!t)return e;const r={...e,...t};return t.theme&&e.theme&&(r.theme={...e.theme,...t.theme,colors:{...e.theme.colors,...t.theme.colors},space:{...e.theme.space,...t.theme.space},icons:{...e.theme.icons,...t.theme.icons},fonts:{...e.theme.fonts,...t.theme.fonts},others:{...e.theme.others,...t.theme.others}}),r}const Qb=No({theme:Yb,mode:"light"}),pM=()=>or(Qb);/**
|
|
7
|
+
`,wi=typeof window<"u"&&typeof document<"u",vb=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ir.REACT_APP_SC_DISABLE_SPEEDY!==""?Ir.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ir.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ir!==void 0&&Ir.SC_DISABLE_SPEEDY!==void 0&&Ir.SC_DISABLE_SPEEDY!==""&&Ir.SC_DISABLE_SPEEDY!=="false"&&Ir.SC_DISABLE_SPEEDY),gb={},Ki=Object.freeze([]),Co=Object.freeze({});function qm(e,t,r){return r===void 0&&(r=Co),e.theme!==r.theme&&e.theme||t||r.theme}var Um=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),hb=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pb=/(^-|-$)/g;function Hu(e){return e.replace(hb,"-").replace(pb,"")}var bb=/(a)(d)/gi,Ha=52,Vu=function(e){return String.fromCharCode(e+(e>25?39:97))};function hl(e){var t,r="";for(t=Math.abs(e);t>Ha;t=t/Ha|0)r=Vu(t%Ha)+r;return(Vu(t%Ha)+r).replace(bb,"$1-$2")}var Es,Gm=5381,co=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Km=function(e){return co(Gm,e)};function Xm(e){return hl(Km(e)>>>0)}function yb(e){return e.displayName||e.name||"Component"}function Os(e){return typeof e=="string"&&!0}var Ym=typeof Symbol=="function"&&Symbol.for,Qm=Ym?Symbol.for("react.memo"):60115,Sb=Ym?Symbol.for("react.forward_ref"):60112,Cb={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xb=((Es={})[Sb]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Es[Qm]=Jm,Es);function Wu(e){return("type"in(t=e)&&t.type.$$typeof)===Qm?Jm:"$$typeof"in e?xb[e.$$typeof]:Cb;var t}var $b=Object.defineProperty,Eb=Object.getOwnPropertyNames,ku=Object.getOwnPropertySymbols,Ob=Object.getOwnPropertyDescriptor,Rb=Object.getPrototypeOf,qu=Object.prototype;function Zm(e,t,r){if(typeof t!="string"){if(qu){var n=Rb(t);n&&n!==qu&&Zm(e,n,r)}var o=Eb(t);ku&&(o=o.concat(ku(t)));for(var a=Wu(e),i=Wu(t),s=0;s<o.length;++s){var l=o[s];if(!(l in wb||r&&r[l]||i&&l in i||a&&l in a)){var c=Ob(t,l);try{$b(e,l,c)}catch{}}}}return e}function wo(e){return typeof e=="function"}function Pc(e){return typeof e=="object"&&"styledComponentId"in e}function Dn(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function pl(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function oa(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function bl(e,t,r){if(r===void 0&&(r=!1),!r&&!oa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=bl(e[n],t[n]);else if(oa(t))for(var n in t)e[n]=bl(e[n],t[n]);return e}function Mc(e,t){Object.defineProperty(e,"toString",{value:t})}function wa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ib=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;t>=a;)if((a<<=1)<0)throw wa(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var i=o;i<a;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(t+1),l=(i=0,r.length);i<l;i++)this.tag.insertRule(s,r[i])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),a=o+n,i=o;i<a;i++)r+="".concat(this.tag.getRule(i)).concat(Ic);return r},e})(),ii=new Map,xi=new Map,si=1,Va=function(e){if(ii.has(e))return ii.get(e);for(;xi.has(si);)si++;var t=si++;return ii.set(e,t),xi.set(t,e),t},Pb=function(e,t){si=t+1,ii.set(e,t),xi.set(t,e)},Mb="style[".concat(So,"][").concat(km,'="').concat(Gi,'"]'),Tb=new RegExp("^".concat(So,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Nb=function(e,t,r){for(var n,o=r.split(","),a=0,i=o.length;a<i;a++)(n=o[a])&&e.registerName(t,n)},Fb=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ic),o=[],a=0,i=n.length;a<i;a++){var s=n[a].trim();if(s){var l=s.match(Tb);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(Pb(u,c),Nb(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},Uu=function(e){for(var t=document.querySelectorAll(Mb),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(So)!==Wm&&(Fb(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function _b(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ev=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(s){var l=Array.from(s.querySelectorAll("style[".concat(So,"]")));return l[l.length-1]})(r),a=o!==void 0?o.nextSibling:null;n.setAttribute(So,Wm),n.setAttribute(km,Gi);var i=_b();return i&&n.setAttribute("nonce",i),r.insertBefore(n,a),n},Ab=(function(){function e(t){this.element=ev(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,a=n.length;o<a;o++){var i=n[o];if(i.ownerNode===r)return i}throw wa(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),jb=(function(){function e(t){this.element=ev(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Db=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Gu=wi,Lb={isServer:!wi,useCSSOMInjection:!vb},$i=(function(){function e(t,r,n){t===void 0&&(t=Co),r===void 0&&(r={});var o=this;this.options=ur(ur({},Lb),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&wi&&Gu&&(Gu=!1,Uu(this)),Mc(this,function(){return(function(a){for(var i=a.getTag(),s=i.length,l="",c=function(f){var g=(function(b){return xi.get(b)})(f);if(g===void 0)return"continue";var h=a.names.get(g),v=i.getGroup(f);if(h===void 0||!h.size||v.length===0)return"continue";var p="".concat(So,".g").concat(f,'[id="').concat(g,'"]'),m="";h!==void 0&&h.forEach(function(b){b.length>0&&(m+="".concat(b,","))}),l+="".concat(v).concat(p,'{content:"').concat(m,'"}').concat(Ic)},u=0;u<s;u++)c(u);return l})(o)})}return e.registerId=function(t){return Va(t)},e.prototype.rehydrate=function(){!this.server&&wi&&Uu(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(ur(ur({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new Db(o):n?new Ab(o):new jb(o)})(this.options),new Ib(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Va(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Va(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Va(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Bb=/&/g,zb=/^\s*\/\/.*$/gm;function tv(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=tv(r.children,t)),r})}function Hb(e){var t,r,n,o=Co,a=o.options,i=a===void 0?Co:a,s=o.plugins,l=s===void 0?Ki:s,c=function(g,h,v){return v.startsWith(r)&&v.endsWith(r)&&v.replaceAll(r,"").length>0?".".concat(t):g},u=l.slice();u.push(function(g){g.type===Wi&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Bb,r).replace(n,c))}),i.prefix&&u.push(fb),u.push(cb);var f=function(g,h,v,p){h===void 0&&(h=""),v===void 0&&(v=""),p===void 0&&(p="&"),t=p,r=h,n=new RegExp("\\".concat(r,"\\b"),"g");var m=g.replace(zb,""),b=sb(v||h?"".concat(v," ").concat(h," { ").concat(m," }"):m);i.namespace&&(b=tv(b,i.namespace));var y=[];return Ci(b,ub(u.concat(db(function(S){return y.push(S)})))),y};return f.hash=l.length?l.reduce(function(g,h){return h.name||wa(15),co(g,h.name)},Gm).toString():"",f}var Vb=new $i,yl=Hb(),rv=ae.createContext({shouldForwardProp:void 0,styleSheet:Vb,stylis:yl});rv.Consumer;ae.createContext(void 0);function Sl(){return or(rv)}var Wb=(function(){function e(t,r){var n=this;this.inject=function(o,a){a===void 0&&(a=yl);var i=n.name+a.hash;o.hasNameForId(n.id,i)||o.insertRules(n.id,i,a(n.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Mc(this,function(){throw wa(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=yl),this.name+t.hash},e})(),kb=function(e){return e>="A"&&e<="Z"};function Ku(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;kb(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var nv=function(e){return e==null||e===!1||e===""},ov=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!nv(a)&&(Array.isArray(a)&&a.isCss||wo(a)?n.push("".concat(Ku(o),":"),a,";"):oa(a)?n.push.apply(n,na(na(["".concat(o," {")],ov(a),!1),["}"],!1)):n.push("".concat(Ku(o),": ").concat((t=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in mb||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function wn(e,t,r,n){if(nv(e))return[];if(Pc(e))return[".".concat(e.styledComponentId)];if(wo(e)){if(!wo(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return wn(o,t,r,n)}var a;return e instanceof Wb?r?(e.inject(r,n),[e.getName(n)]):[e]:oa(e)?ov(e):Array.isArray(e)?Array.prototype.concat.apply(Ki,e.map(function(i){return wn(i,t,r,n)})):[e.toString()]}function av(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(wo(r)&&!Pc(r))return!1}return!0}var qb=Km(Gi),Ub=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=(n===void 0||n.isStatic)&&av(t),this.componentId=r,this.baseHash=co(qb,r),this.baseStyle=n,$i.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=Dn(o,this.staticRulesId);else{var a=pl(wn(this.rules,t,r,n)),i=hl(co(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,i)){var s=n(a,".".concat(i),void 0,this.componentId);r.insertRules(this.componentId,i,s)}o=Dn(o,i),this.staticRulesId=i}else{for(var l=co(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var f=this.rules[u];if(typeof f=="string")c+=f;else if(f){var g=pl(wn(f,t,r,n));l=co(l,g+u),c+=g}}if(c){var h=hl(l>>>0);r.hasNameForId(this.componentId,h)||r.insertRules(this.componentId,h,n(c,".".concat(h),void 0,this.componentId)),o=Dn(o,h)}}return o},e})(),Tc=ae.createContext(void 0);Tc.Consumer;var Rs={};function Gb(e,t,r){var n=Pc(e),o=e,a=!Os(e),i=t.attrs,s=i===void 0?Ki:i,l=t.componentId,c=l===void 0?(function(C,x){var $=typeof C!="string"?"sc":Hu(C);Rs[$]=(Rs[$]||0)+1;var w="".concat($,"-").concat(Xm(Gi+$+Rs[$]));return x?"".concat(x,"-").concat(w):w})(t.displayName,t.parentComponentId):l,u=t.displayName,f=u===void 0?(function(C){return Os(C)?"styled.".concat(C):"Styled(".concat(yb(C),")")})(e):u,g=t.displayName&&t.componentId?"".concat(Hu(t.displayName),"-").concat(t.componentId):t.componentId||c,h=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,v=t.shouldForwardProp;if(n&&o.shouldForwardProp){var p=o.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;v=function(C,x){return p(C,x)&&m(C,x)}}else v=p}var b=new Ub(r,g,n?o.componentStyle:void 0);function y(C,x){return(function($,w,E){var O=$.attrs,R=$.componentStyle,I=$.defaultProps,P=$.foldedComponentIds,M=$.styledComponentId,_=$.target,F=ae.useContext(Tc),A=Sl(),N=$.shouldForwardProp||A.shouldForwardProp,D=qm(w,F,I)||Co,W=(function(B,H,Z){for(var k,J=ur(ur({},H),{className:void 0,theme:Z}),oe=0;oe<B.length;oe+=1){var K=wo(k=B[oe])?k(J):k;for(var U in K)J[U]=U==="className"?Dn(J[U],K[U]):U==="style"?ur(ur({},J[U]),K[U]):K[U]}return H.className&&(J.className=Dn(J.className,H.className)),J})(O,w,D),G=W.as||_,z={};for(var L in W)W[L]===void 0||L[0]==="$"||L==="as"||L==="theme"&&W.theme===D||(L==="forwardedAs"?z.as=W.forwardedAs:N&&!N(L,G)||(z[L]=W[L]));var q=(function(B,H){var Z=Sl(),k=B.generateAndInjectStyles(H,Z.styleSheet,Z.stylis);return k})(R,W),V=Dn(P,M);return q&&(V+=" "+q),W.className&&(V+=" "+W.className),z[Os(G)&&!Um.has(G)?"class":"className"]=V,E&&(z.ref=E),yi(G,z)})(S,C,x)}y.displayName=f;var S=ae.forwardRef(y);return S.attrs=h,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=v,S.foldedComponentIds=n?Dn(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=g,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=n?(function(x){for(var $=[],w=1;w<arguments.length;w++)$[w-1]=arguments[w];for(var E=0,O=$;E<O.length;E++)bl(x,O[E],!0);return x})({},o.defaultProps,C):C}}),Mc(S,function(){return".".concat(S.styledComponentId)}),a&&Zm(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Xu(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Yu=function(e){return Object.assign(e,{isCss:!0})};function iv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(wo(e)||oa(e))return Yu(wn(Xu(Ki,na([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?wn(n):Yu(wn(Xu(n,t)))}function Cl(e,t,r){if(r===void 0&&(r=Co),!t)throw wa(1,t);var n=function(o){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return e(t,r,iv.apply(void 0,na([o],a,!1)))};return n.attrs=function(o){return Cl(e,t,ur(ur({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return Cl(e,t,ur(ur({},r),o))},n}var sv=function(e){return Cl(Gb,e)},Kb=sv;Um.forEach(function(e){Kb[e]=sv(e)});var Xb=(function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=av(t),$i.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,n,o){var a=o(pl(wn(this.rules,r,n,o)),""),i=this.componentId+t;n.insertRules(i,i,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,n,o){t>2&&$i.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)},e})();function gM(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=iv.apply(void 0,na([e],t,!1)),o="sc-global-".concat(Xm(JSON.stringify(n))),a=new Xb(n,o),i=function(l){var c=Sl(),u=ae.useContext(Tc),f=ae.useRef(c.styleSheet.allocateGSInstance(o)).current;return c.styleSheet.server&&s(f,l,c.styleSheet,u,c.stylis),ae.useLayoutEffect(function(){if(!c.styleSheet.server)return s(f,l,c.styleSheet,u,c.stylis),function(){return a.removeStyles(f,c.styleSheet)}},[f,l,c.styleSheet,u,c.stylis]),null};function s(l,c,u,f,g){if(a.isStatic)a.renderStyles(l,gb,u,g);else{var h=ur(ur({},c),{theme:qm(c,f,i.defaultProps)});a.renderStyles(l,h,u,g)}}return ae.memo(i)}const Yb={colors:{primary:"#4E6EF2",secondary:"#6D86F5",success:"#52C41A",warning:"#FAAD14",error:"#F5222D",info:"#1890FF",background:"#F7F8FA",appBackground:"transparent",listBackground:"#F2F3F5",dashboardBackground:"#FFFFFF",text:"#1D2129",textSecondary:"#4E5969",textTertiary:"#86909C",textInverse:"#FFFFFF",border:"#DDE0E5",borderWeak:"#E5E6EB",disabled:"#C9CDD4",disabledBackground:"#F5F7FA",disabledText:"#C9CDD4",shadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",primaryHover:"#6D86F5",primaryActive:"#2D4BE0",surfaceSubtle:"#F2F3F5",surfaceSelected:"#EEF3FE",btnPrimaryBg:"#4E6EF2",btnPrimaryBgHover:"#6D86F5",btnPrimaryBgActive:"#2D4BE0",btnPrimaryBgDisabled:"#F5F7FA",btnPrimaryText:"#FFFFFF",btnPrimaryTextDisabled:"#C9CDD4",btnSecondaryText:"#4E6EF2",btnSecondaryTextHover:"#4E6EF2",btnSecondaryTextActive:"#2D4BE0",btnSecondaryTextDisabled:"#C9CDD4",btnSecondaryBg:"#FFFFFF",btnSecondaryBgHover:"#EEF3FE",btnSecondaryBgActive:"#EEF3FE",btnSecondaryBgDisabled:"#F5F7FA",btnSecondaryBorder:"#4E6EF2",btnSecondaryBorderHover:"#6D86F5",btnSecondaryBorderActive:"#2D4BE0",btnSecondaryBorderDisabled:"#E5E6EB",btnTextText:"#4E6EF2",btnTextTextHover:"#6D86F5",btnTextTextActive:"#2D4BE0",btnTextTextDisabled:"#C9CDD4",tableBackground:"#FFFFFF",tableHeaderText:"#1D2129",tableFirstColumnBg:"#F7F9FC",tableLastColumnBg:"#F7F9FC"},space:{sidebar:"260px",size:"12px",radius:"4px",padding:"8px",margin:"8px",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.5"},fonts:{body:{size:"14px",weight:"normal",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},heading:{size:"16px",weight:"600",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"}},icons:{aiAvatar:"http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",userAvatar:"http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",pdf:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",word:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",image:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",video:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",audio:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",excel:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/excel-icon.png",ppt:"https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"},others:{baseFontWeight:"normal"}};function hM(e,t){if(!t)return e;const r={...e,...t};return t.theme&&e.theme&&(r.theme={...e.theme,...t.theme,colors:{...e.theme.colors,...t.theme.colors},space:{...e.theme.space,...t.theme.space},icons:{...e.theme.icons,...t.theme.icons},fonts:{...e.theme.fonts,...t.theme.fonts},others:{...e.theme.others,...t.theme.others}}),r}const Qb=No({theme:Yb,mode:"light"}),pM=()=>or(Qb);/**
|
|
8
8
|
* @license lucide-react v0.456.0 - ISC
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the ISC license.
|
|
@@ -277,4 +277,4 @@ html body {
|
|
|
277
277
|
`,$P=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ol={},Rr;function EP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ol[r])return ol[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=$P.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&r&&(ol[r]=l),l}function OP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Rr||(Rr=document.createElement("textarea"),Rr.setAttribute("tab-index","-1"),Rr.setAttribute("aria-hidden","true"),Rr.setAttribute("name","hiddenTextarea"),document.body.appendChild(Rr)),e.getAttribute("wrap")?Rr.setAttribute("wrap",e.getAttribute("wrap")):Rr.removeAttribute("wrap");var o=EP(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Rr.setAttribute("style","".concat(l,";").concat(xP)),Rr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,g=Rr.scrollHeight;if(s==="border-box"?g+=i:s==="content-box"&&(g-=a),r!==null||n!==null){Rr.value=" ";var h=Rr.scrollHeight-a;r!==null&&(c=h*r,s==="border-box"&&(c=c+a+i),g=Math.max(c,g)),n!==null&&(u=h*n,s==="border-box"&&(u=u+a+i),f=g>u?"":"hidden",g=Math.min(u,g))}var v={height:g,overflowY:f,resize:"none"};return c&&(v.minHeight=c),u&&(v.maxHeight=u),v}var RP=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],al=0,il=1,sl=2,IP=d.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,a=r.value,i=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange;r.onInternalAutoSize;var g=ft(r,RP),h=zr(o,{value:a,postState:function(q){return q??""}}),v=X(h,2),p=v[0],m=v[1],b=function(q){m(q.target.value),f==null||f(q)},y=d.useRef();d.useImperativeHandle(t,function(){return{textArea:y.current}});var S=d.useMemo(function(){return i&&Ue(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=X(S,2),x=C[0],$=C[1],w=!!i,E=d.useState(sl),O=X(E,2),R=O[0],I=O[1],P=d.useState(),M=X(P,2),_=M[0],F=M[1],A=function(){I(al)};Ct(function(){w&&A()},[a,x,$,w]),Ct(function(){if(R===al)I(il);else if(R===il){var L=OP(y.current,!1,x,$);I(sl),F(L)}},[R]);var N=d.useRef(),D=function(){mt.cancel(N.current)},W=function(q){R===sl&&(s==null||s(q),i&&(D(),N.current=mt(function(){A()})))};d.useEffect(function(){return D},[]);var G=w?_:null,z=j(j({},c),G);return(R===al||R===il)&&(z.overflowY="hidden",z.overflowX="hidden"),d.createElement(Rn,{onResize:W,disabled:!(i||s)},d.createElement("textarea",Ge({},g,{ref:y,style:z,className:ne(n,l,T({},"".concat(n,"-disabled"),u)),disabled:u,value:p,onChange:b})))}),PP=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],MP=ae.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,g=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,p=e.showCount,m=e.count,b=e.className,y=e.style,S=e.disabled,C=e.hidden,x=e.classNames,$=e.styles,w=e.onResize,E=e.onClear,O=e.onPressEnter,R=e.readOnly,I=e.autoSize,P=e.onKeyDown,M=ft(e,PP),_=zr(n,{value:o,defaultValue:n}),F=X(_,2),A=F[0],N=F[1],D=A==null?"":String(A),W=ae.useState(!1),G=X(W,2),z=G[0],L=G[1],q=ae.useRef(!1),V=ae.useState(null),B=X(V,2),H=B[0],Z=B[1],k=He(null),J=He(null),oe=function(){var Ce;return(Ce=J.current)===null||Ce===void 0?void 0:Ce.textArea},K=function(){oe().focus()};Di(t,function(){var Oe;return{resizableTextArea:J.current,focus:K,blur:function(){oe().blur()},nativeElement:((Oe=k.current)===null||Oe===void 0?void 0:Oe.nativeElement)||oe()}}),dr(function(){L(function(Oe){return!S&&Oe})},[S]);var U=ae.useState(null),te=X(U,2),ie=te[0],Q=te[1];ae.useEffect(function(){if(ie){var Oe;(Oe=oe()).setSelectionRange.apply(Oe,ve(ie))}},[ie]);var re=tp(m,p),de=(r=re.max)!==null&&r!==void 0?r:c,se=Number(de)>0,ue=re.strategy(D),we=!!de&&ue>de,be=function(Ce,ze){var Ze=ze;!q.current&&re.exceedFormatter&&re.max&&re.strategy(ze)>re.max&&(Ze=re.exceedFormatter(ze,{max:re.max}),ze!==Ze&&Q([oe().selectionStart||0,oe().selectionEnd||0])),N(Ze),Ai(Ce.currentTarget,Ce,s,Ze)},Se=function(Ce){q.current=!0,u==null||u(Ce)},me=function(Ce){q.current=!1,be(Ce,Ce.currentTarget.value),f==null||f(Ce)},ee=function(Ce){be(Ce,Ce.target.value)},xe=function(Ce){Ce.key==="Enter"&&O&&O(Ce),P==null||P(Ce)},Le=function(Ce){L(!0),a==null||a(Ce)},Fe=function(Ce){L(!1),i==null||i(Ce)},Me=function(Ce){N(""),K(),Ai(oe(),Ce,s)},Ee=g,Be;re.show&&(re.showFormatter?Be=re.showFormatter({value:D,count:ue,maxLength:de}):Be="".concat(ue).concat(se?" / ".concat(de):""),Ee=ae.createElement(ae.Fragment,null,Ee,ae.createElement("span",{className:ne("".concat(v,"-data-count"),x==null?void 0:x.count),style:$==null?void 0:$.count},Be)));var Te=function(Ce){var ze;w==null||w(Ce),(ze=oe())!==null&&ze!==void 0&&ze.style.height&&Z(!0)},je=!I&&!p&&!l;return ae.createElement(hu,{ref:k,value:D,allowClear:l,handleReset:Me,suffix:Ee,prefixCls:v,classNames:j(j({},x),{},{affixWrapper:ne(x==null?void 0:x.affixWrapper,T(T({},"".concat(v,"-show-count"),p),"".concat(v,"-textarea-allow-clear"),l))}),disabled:S,focused:z,className:ne(b,we&&"".concat(v,"-out-of-range")),style:j(j({},y),H&&!je?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Be=="string"?Be:void 0}},hidden:C,readOnly:R,onClear:E},ae.createElement(IP,Ge({},M,{autoSize:I,maxLength:c,onKeyDown:xe,onChange:ee,onFocus:Le,onBlur:Fe,onCompositionStart:Se,onCompositionEnd:me,className:ne(x==null?void 0:x.textarea),style:j(j({},$==null?void 0:$.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:v,onResize:Te,ref:J,readOnly:R})))});const TP=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
278
278
|
&-allow-clear > ${t},
|
|
279
279
|
&-affix-wrapper${n}-has-feedback ${t}
|
|
280
|
-
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},NP=vr(["Input","TextArea"],e=>{const t=Ot(e,_a(e));return TP(t)},Aa,{resetFont:!1});var FP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const _P=un((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:g,styles:h,variant:v,showCount:p,onMouseDown:m,onResize:b}=e,y=FP(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:x,autoComplete:$,className:w,style:E,classNames:O,styles:R}=In("textArea"),I=d.useContext(Mr),P=i??I,{status:M,hasFeedback:_,feedbackIcon:F}=d.useContext(pr),A=Na(M,s),N=d.useRef(null);d.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=N.current)===null||re===void 0?void 0:re.resizableTextArea,focus:de=>{var se,ue;gu((ue=(se=N.current)===null||se===void 0?void 0:se.resizableTextArea)===null||ue===void 0?void 0:ue.textArea,de)},blur:()=>{var de;return(de=N.current)===null||de===void 0?void 0:de.blur()}}});const D=S("input",n),W=dn(D),[G,z,L]=Uh(D,u),[q]=NP(D,W),{compactSize:V,compactItemClassnames:B}=Bo(D,C),H=on(re=>{var de;return(de=a??V)!==null&&de!==void 0?de:re}),[Z,k]=fs("textArea",v,o),J=np(l??x),[oe,K]=d.useState(!1),[U,te]=d.useState(!1),ie=re=>{K(!0),m==null||m(re);const de=()=>{K(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},Q=re=>{var de,se;if(b==null||b(re),oe&&typeof getComputedStyle=="function"){const ue=(se=(de=N.current)===null||de===void 0?void 0:de.nativeElement)===null||se===void 0?void 0:se.querySelector("textarea");ue&&getComputedStyle(ue).resize==="both"&&te(!0)}};return G(q(d.createElement(MP,Object.assign({autoComplete:$},y,{style:Object.assign(Object.assign({},E),g),styles:Object.assign(Object.assign({},R),h),disabled:P,allowClear:J,className:ne(L,W,f,u,B,w,U&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:ne({[`${D}-sm`]:H==="small",[`${D}-lg`]:H==="large"},z,c==null?void 0:c.textarea,O.textarea,oe&&`${D}-mouse-active`),variant:ne({[`${D}-${Z}`]:k},To(D,A)),affixWrapper:ne(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:C==="rtl",[`${D}-affix-wrapper-sm`]:H==="small",[`${D}-affix-wrapper-lg`]:H==="large",[`${D}-textarea-show-count`]:p||((r=e.count)===null||r===void 0?void 0:r.show)},z)}),prefixCls:D,suffix:_&&d.createElement("span",{className:`${D}-textarea-suffix`},F),showCount:p,ref:N,onResize:Q,onMouseDown:ie}))))}),ja=gs;ja.Group=iP;ja.Search=wP;ja.TextArea=_P;ja.Password=SP;ja.OTP=mP;var AP=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],dp=d.forwardRef(function(e,t){var r,n=e.prefixCls,o=n===void 0?"rc-switch":n,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,g=e.onClick,h=e.onChange,v=e.onKeyDown,p=ft(e,AP),m=zr(!1,{value:i,defaultValue:s}),b=X(m,2),y=b[0],S=b[1];function C(E,O){var R=y;return l||(R=E,S(R),h==null||h(R,O)),R}function x(E){E.which===De.LEFT?C(!1,E):E.which===De.RIGHT&&C(!0,E),v==null||v(E)}function $(E){var O=C(!y,E);g==null||g(O,E)}var w=ne(o,a,(r={},T(r,"".concat(o,"-checked"),y),T(r,"".concat(o,"-disabled"),l),r));return d.createElement("button",Ge({},p,{type:"button",role:"switch","aria-checked":y,disabled:l,className:w,ref:t,onKeyDown:x,onClick:$}),c,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},u),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});dp.displayName="Switch";const jP=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=fe(l(s).add(l(n).mul(2)).equal()),f=fe(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:r,lineHeight:fe(r),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${fe(l(s).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},DP=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},LP=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${fe(i(a).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},BP=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l=`${t}-inner`,c=fe(s(i).add(s(n).mul(2)).equal()),u=fe(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:r},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}},zP=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:fe(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),qc(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},HP=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:o}=e,a=t*r,i=n/2,s=2,l=a-s*2,c=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new bt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},VP=vr("Switch",e=>{const t=Ot(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[zP(t),BP(t),LP(t),DP(t),jP(t)]},HP);var WP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const kP=d.forwardRef((e,t)=>{const{prefixCls:r,size:n,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:g,onChange:h}=e,v=WP(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[p,m]=zr(!1,{value:c??u,defaultValue:f??g}),{getPrefixCls:b,direction:y,switch:S}=d.useContext(wt),C=d.useContext(Mr),x=(o??C)||a,$=b("switch",r),w=d.createElement("div",{className:`${$}-handle`},a&&d.createElement(ts,{className:`${$}-loading-icon`})),[E,O,R]=VP($),I=on(n),P=ne(S==null?void 0:S.className,{[`${$}-small`]:I==="small",[`${$}-loading`]:a,[`${$}-rtl`]:y==="rtl"},i,s,O,R),M=Object.assign(Object.assign({},S==null?void 0:S.style),l),_=(...F)=>{m(F[0]),h==null||h.apply(void 0,F)};return E(d.createElement(Qc,{component:"Switch",disabled:x},d.createElement(dp,Object.assign({},v,{checked:p,onChange:_,prefixCls:$,className:P,style:M,disabled:x,ref:t,loadingIcon:w}))))}),qP=kP;qP.__ANT_SWITCH=!0;export{Gn as $,X as A,tu as B,RM as C,KO as D,j as E,Mn as F,T as G,De as H,ja as I,Ct as J,$t as K,EM as L,$M as M,qc as N,Hr as O,kg as P,Pg as Q,wI as R,Mo as S,du as T,Rg as U,Ng as V,Kb as W,vM as X,$x as Y,zR as Z,ve as _,Ut as a,Qc as a$,LR as a0,Rh as a1,Eh as a2,zr as a3,qP as a4,bM as a5,pM as a6,hM as a7,Qh as a8,Fa as a9,Ro as aA,IM as aB,qg as aC,Gy as aD,xr as aE,Pn as aF,SM as aG,Jv as aH,sE as aI,WC as aJ,Yn as aK,xM as aL,$w as aM,$n as aN,cE as aO,K0 as aP,dh as aQ,mt as aR,Zo as aS,Xc as aT,Rn as aU,Wt as aV,Vt as aW,Ma as aX,pr as aY,Mr as aZ,tI as a_,TM as aa,XI as ab,br as ac,Ue as ad,_a as ae,ag as af,Aa as ag,ms as ah,Fh as ai,fu as aj,kh as ak,sg as al,Vr as am,Oa as an,eC as ao,S1 as ap,Lt as aq,OM as ar,dn as as,ts as at,K1 as au,Gc as av,H1 as aw,Wc as ax,Eg as ay,Jc as az,jw as b,mM as b$,eI as b0,Yc as b1,kf as b2,eR as b3,JO as b4,bt as b5,_h as b6,Hh as b7,Lh as b8,jh as b9,On as bA,yM as bB,Qw as bC,Ra as bD,Xd as bE,kR as bF,Dr as bG,Nc as bH,fv as bI,PM as bJ,r$ as bK,gh as bL,wh as bM,at as bN,mI as bO,gs as bP,xh as bQ,Fn as bR,wM as bS,As as bT,pR as bU,Qn as bV,mr as bW,Pi as bX,aP as bY,ia as bZ,Nh as b_,us as ba,tf as bb,ef as bc,jg as bd,Lg as be,Ag as bf,Dg as bg,Gl as bh,BR as bi,Vh as bj,wR as bk,Bo as bl,fs as bm,To as bn,Na as bo,hd as bp,uE as bq,MM as br,ew as bs,gM as bt,sw as bu,$a as bv,Xn as bw,Xi as bx,Ri as by,En as bz,ty as c,ne as d,GC as e,fe as f,vr as g,wt as h,Yb as i,XR as j,Po as k,Do as l,Ot as m,Zh as n,on as o,Wd as p,FR as q,fr as r,pa as s,qn as t,In as u,ft as v,xa as w,Ge as x,Io as y,nr as z};
|
|
280
|
+
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},NP=vr(["Input","TextArea"],e=>{const t=Ot(e,_a(e));return TP(t)},Aa,{resetFont:!1});var FP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const _P=un((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:g,styles:h,variant:v,showCount:p,onMouseDown:m,onResize:b}=e,y=FP(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:x,autoComplete:$,className:w,style:E,classNames:O,styles:R}=In("textArea"),I=d.useContext(Mr),P=i??I,{status:M,hasFeedback:_,feedbackIcon:F}=d.useContext(pr),A=Na(M,s),N=d.useRef(null);d.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=N.current)===null||re===void 0?void 0:re.resizableTextArea,focus:de=>{var se,ue;gu((ue=(se=N.current)===null||se===void 0?void 0:se.resizableTextArea)===null||ue===void 0?void 0:ue.textArea,de)},blur:()=>{var de;return(de=N.current)===null||de===void 0?void 0:de.blur()}}});const D=S("input",n),W=dn(D),[G,z,L]=Uh(D,u),[q]=NP(D,W),{compactSize:V,compactItemClassnames:B}=Bo(D,C),H=on(re=>{var de;return(de=a??V)!==null&&de!==void 0?de:re}),[Z,k]=fs("textArea",v,o),J=np(l??x),[oe,K]=d.useState(!1),[U,te]=d.useState(!1),ie=re=>{K(!0),m==null||m(re);const de=()=>{K(!1),document.removeEventListener("mouseup",de)};document.addEventListener("mouseup",de)},Q=re=>{var de,se;if(b==null||b(re),oe&&typeof getComputedStyle=="function"){const ue=(se=(de=N.current)===null||de===void 0?void 0:de.nativeElement)===null||se===void 0?void 0:se.querySelector("textarea");ue&&getComputedStyle(ue).resize==="both"&&te(!0)}};return G(q(d.createElement(MP,Object.assign({autoComplete:$},y,{style:Object.assign(Object.assign({},E),g),styles:Object.assign(Object.assign({},R),h),disabled:P,allowClear:J,className:ne(L,W,f,u,B,w,U&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),O),{textarea:ne({[`${D}-sm`]:H==="small",[`${D}-lg`]:H==="large"},z,c==null?void 0:c.textarea,O.textarea,oe&&`${D}-mouse-active`),variant:ne({[`${D}-${Z}`]:k},To(D,A)),affixWrapper:ne(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:C==="rtl",[`${D}-affix-wrapper-sm`]:H==="small",[`${D}-affix-wrapper-lg`]:H==="large",[`${D}-textarea-show-count`]:p||((r=e.count)===null||r===void 0?void 0:r.show)},z)}),prefixCls:D,suffix:_&&d.createElement("span",{className:`${D}-textarea-suffix`},F),showCount:p,ref:N,onResize:Q,onMouseDown:ie}))))}),ja=gs;ja.Group=iP;ja.Search=wP;ja.TextArea=_P;ja.Password=SP;ja.OTP=mP;var AP=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],dp=d.forwardRef(function(e,t){var r,n=e.prefixCls,o=n===void 0?"rc-switch":n,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,g=e.onClick,h=e.onChange,v=e.onKeyDown,p=ft(e,AP),m=zr(!1,{value:i,defaultValue:s}),b=X(m,2),y=b[0],S=b[1];function C(E,O){var R=y;return l||(R=E,S(R),h==null||h(R,O)),R}function x(E){E.which===De.LEFT?C(!1,E):E.which===De.RIGHT&&C(!0,E),v==null||v(E)}function $(E){var O=C(!y,E);g==null||g(O,E)}var w=ne(o,a,(r={},T(r,"".concat(o,"-checked"),y),T(r,"".concat(o,"-disabled"),l),r));return d.createElement("button",Ge({},p,{type:"button",role:"switch","aria-checked":y,disabled:l,className:w,ref:t,onKeyDown:x,onClick:$}),c,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},u),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});dp.displayName="Switch";const jP=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=fe(l(s).add(l(n).mul(2)).equal()),f=fe(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:r,lineHeight:fe(r),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${fe(l(s).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},DP=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},LP=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${fe(i(a).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},BP=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:s}=e,l=`${t}-inner`,c=fe(s(i).add(s(n).mul(2)).equal()),u=fe(s(a).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:r},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}},zP=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:fe(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),qc(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},HP=e=>{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:o}=e,a=t*r,i=n/2,s=2,l=a-s*2,c=i-s*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new bt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},VP=vr("Switch",e=>{const t=Ot(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[zP(t),BP(t),LP(t),DP(t),jP(t)]},HP);var WP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const kP=d.forwardRef((e,t)=>{const{prefixCls:r,size:n,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:g,onChange:h}=e,v=WP(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[p,m]=zr(!1,{value:c??u,defaultValue:f??g}),{getPrefixCls:b,direction:y,switch:S}=d.useContext(wt),C=d.useContext(Mr),x=(o??C)||a,$=b("switch",r),w=d.createElement("div",{className:`${$}-handle`},a&&d.createElement(ts,{className:`${$}-loading-icon`})),[E,O,R]=VP($),I=on(n),P=ne(S==null?void 0:S.className,{[`${$}-small`]:I==="small",[`${$}-loading`]:a,[`${$}-rtl`]:y==="rtl"},i,s,O,R),M=Object.assign(Object.assign({},S==null?void 0:S.style),l),_=(...F)=>{m(F[0]),h==null||h.apply(void 0,F)};return E(d.createElement(Qc,{component:"Switch",disabled:x},d.createElement(dp,Object.assign({},v,{checked:p,onChange:_,prefixCls:$,className:P,style:M,disabled:x,ref:t,loadingIcon:w}))))}),qP=kP;qP.__ANT_SWITCH=!0;export{Gn as $,nr as A,tu as B,RM as C,KO as D,X as E,Mn as F,j as G,T as H,ja as I,De as J,$t as K,Ct as L,EM as M,$M as N,qc as O,kg as P,Hr as Q,wI as R,Pg as S,du as T,Mo as U,Rg as V,Ng as W,vM as X,$x as Y,zR as Z,ve as _,Ut as a,Qc as a$,LR as a0,Rh as a1,Eh as a2,zr as a3,qP as a4,hM as a5,bM as a6,pM as a7,Qh as a8,Fa as a9,Ro as aA,IM as aB,qg as aC,Gy as aD,xr as aE,Pn as aF,SM as aG,Jv as aH,sE as aI,WC as aJ,Yn as aK,xM as aL,$w as aM,$n as aN,cE as aO,K0 as aP,dh as aQ,mt as aR,Zo as aS,Xc as aT,Rn as aU,Wt as aV,Vt as aW,Ma as aX,pr as aY,Mr as aZ,tI as a_,TM as aa,XI as ab,br as ac,Ue as ad,_a as ae,ag as af,Aa as ag,ms as ah,Fh as ai,fu as aj,kh as ak,sg as al,Vr as am,Oa as an,eC as ao,S1 as ap,Lt as aq,OM as ar,dn as as,ts as at,K1 as au,Gc as av,H1 as aw,Wc as ax,Eg as ay,Jc as az,jw as b,mM as b$,eI as b0,Yc as b1,kf as b2,eR as b3,JO as b4,bt as b5,_h as b6,Hh as b7,Lh as b8,jh as b9,On as bA,yM as bB,Qw as bC,Ra as bD,Xd as bE,kR as bF,Dr as bG,Nc as bH,fv as bI,PM as bJ,r$ as bK,gh as bL,wh as bM,at as bN,mI as bO,gs as bP,xh as bQ,Fn as bR,wM as bS,As as bT,pR as bU,Qn as bV,mr as bW,Pi as bX,aP as bY,ia as bZ,Nh as b_,us as ba,tf as bb,ef as bc,jg as bd,Lg as be,Ag as bf,Dg as bg,Gl as bh,BR as bi,Vh as bj,wR as bk,Bo as bl,fs as bm,To as bn,Na as bo,hd as bp,uE as bq,MM as br,ew as bs,gM as bt,sw as bu,$a as bv,Xn as bw,Xi as bx,Ri as by,En as bz,ty as c,Kb as d,ne as e,GC as f,vr as g,fe as h,Yb as i,wt as j,XR as k,Po as l,Ot as m,Do as n,Zh as o,on as p,Wd as q,fr as r,FR as s,qn as t,In as u,pa as v,ft as w,xa as x,Ge as y,Io as z};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{jsx as u,jsxs as O,Fragment as Be}from"react/jsx-runtime";import*as W from"react";import{isValidElement as Re,useMemo as oe,useState as h,useRef as Ee,useCallback as ae,useEffect as ke}from"react";import{u as je}from"./index-CpW6Dhpp.js";import{F as We,J as K,a as Ue,T as He,U as Ge,m as Ze}from"./index-DhczpnL_.js";import{c as Ie,g as qe,m as Ye,Y as Ke,Z as Xe,r as Je,$ as Qe,a0 as et,a1 as tt,j as ut,e as de,a2 as at,u as st,a3 as ot,T as pe,W as nt,l as rt,J as it,a as lt,a4 as ct,a5 as dt,i as fe}from"./index-OjluyvX1.js";import{E as Te}from"./index-D4NnOWbo.js";/* empty css */import{s as Y,M as De}from"./style-bUXwVVWZ.js";import{U as Se}from"./index-CFqsgVcx.js";import{D as Me}from"./index-6Ox5f3GI.js";import{X as he}from"./x-C7NWGGXn.js";import"react-dom";import{B as Ae}from"./index-BmVOh6oe.js";/**
|
|
2
|
+
* @license lucide-react v0.456.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const pt=Ie("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
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 ze=Ie("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),me=e=>e?typeof e=="function"?e():e:null,mt=e=>{const{componentCls:i,popoverColor:o,titleMinWidth:a,fontWeightStrong:l,innerPadding:d,boxShadowSecondary:k,colorTextHeading:V,borderRadiusLG:m,zIndexPopup:D,titleMarginBottom:I,colorBgElevated:P,popoverBg:x,titleBorderBottom:y,innerContentPadding:F,titlePadding:v}=e;return[{[i]:Object.assign(Object.assign({},Je(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:D,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":P,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${i}-content`]:{position:"relative"},[`${i}-inner`]:{backgroundColor:x,backgroundClip:"padding-box",borderRadius:m,boxShadow:k,padding:d},[`${i}-title`]:{minWidth:a,marginBottom:I,color:V,fontWeight:l,borderBottom:y,padding:v},[`${i}-inner-content`]:{color:o,padding:F}})},Xe(e,"var(--antd-arrow-background-color)"),{[`${i}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${i}-content`]:{display:"inline-block"}}}]},Ft=e=>{const{componentCls:i}=e;return{[i]:Qe.map(o=>{const a=e[`${o}6`];return{[`&${i}-${o}`]:{"--antd-arrow-background-color":a,[`${i}-inner`]:{backgroundColor:a},[`${i}-arrow`]:{background:"transparent"}}}})}},ft=e=>{const{lineWidth:i,controlHeight:o,fontHeight:a,padding:l,wireframe:d,zIndexPopupBase:k,borderRadiusLG:V,marginXS:m,lineType:D,colorSplit:I,paddingSM:P}=e,x=o-a,y=x/2,F=x/2-i,v=l;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:k+30},et(e)),tt({contentRadius:V,limitVerticalRadius:!0})),{innerPadding:d?0:12,titleMarginBottom:d?0:m,titlePadding:d?`${y}px ${v}px ${F}px`:0,titleBorderBottom:d?`${i}px ${D} ${I}`:"none",innerContentPadding:d?`${P}px ${v}px`:0})},Ne=qe("Popover",e=>{const{colorBgElevated:i,colorText:o}=e,a=Ye(e,{popoverBg:i,popoverColor:o});return[mt(a),Ft(a),Ke(a,"zoom-big")]},ft,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Ct=function(e,i){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)i.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(o[a[l]]=e[a[l]]);return o};const _e=({title:e,content:i,prefixCls:o})=>!e&&!i?null:W.createElement(W.Fragment,null,e&&W.createElement("div",{className:`${o}-title`},e),i&&W.createElement("div",{className:`${o}-inner-content`},i)),gt=e=>{const{hashId:i,prefixCls:o,className:a,style:l,placement:d="top",title:k,content:V,children:m}=e,D=me(k),I=me(V),P=de(i,o,`${o}-pure`,`${o}-placement-${d}`,a);return W.createElement("div",{className:P,style:l},W.createElement("div",{className:`${o}-arrow`}),W.createElement(at,Object.assign({},e,{className:i,prefixCls:o}),m||W.createElement(_e,{prefixCls:o,title:D,content:I})))},yt=e=>{const{prefixCls:i,className:o}=e,a=Ct(e,["prefixCls","className"]),{getPrefixCls:l}=W.useContext(ut),d=l("popover",i),[k,V,m]=Ne(d);return k(W.createElement(gt,Object.assign({},a,{prefixCls:d,hashId:V,className:de(o,m)})))};var Et=function(e,i){var o={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)i.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(o[a[l]]=e[a[l]]);return o};const ht=W.forwardRef((e,i)=>{var o,a;const{prefixCls:l,title:d,content:k,overlayClassName:V,placement:m="top",trigger:D="hover",children:I,mouseEnterDelay:P=.1,mouseLeaveDelay:x=.1,onOpenChange:y,overlayStyle:F={},styles:v,classNames:S}=e,s=Et(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:n,className:r,style:c,classNames:B,styles:E}=st("popover"),L=n("popover",l),[C,b,H]=Ne(L),q=n(),G=de(V,b,H,r,B.root,S==null?void 0:S.root),ne=de(B.body,S==null?void 0:S.body),[re,ie]=ot(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),X=(R,J)=>{ie(R,!0),y==null||y(R,J)},le=R=>{R.keyCode===it.ESC&&X(!1,R)},se=R=>{X(R)},ee=me(d),te=me(k);return C(W.createElement(pe,Object.assign({placement:m,trigger:D,mouseEnterDelay:P,mouseLeaveDelay:x},s,{prefixCls:L,classNames:{root:G,body:ne},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),c),F),v==null?void 0:v.root),body:Object.assign(Object.assign({},E.body),v==null?void 0:v.body)},ref:i,open:re,onOpenChange:se,overlay:ee||te?W.createElement(_e,{prefixCls:L,title:ee,content:te}):null,transitionName:nt(q,"zoom-big",s.transitionName),"data-popover-inject":!0}),rt(I,{onKeyDown:R=>{var J,ue;Re(I)&&((ue=I==null?void 0:(J=I.props).onKeyDown)===null||ue===void 0||ue.call(J,R)),le(R)}})))}),Oe=ht;Oe._InternalPanelDoNotUseOrYouWillBeFired=yt;const bt="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%201C13.4997%201.50025%2013.25%201.99975%2013.25%202.5C13.25%203.00025%2013.4997%203.49975%2014%204C13.4997%203.49975%2013.0003%203.25%2012.5%203.25C11.9997%203.25%2011.5003%203.49975%2011%204C11.5003%203.49975%2011.75%203.00025%2011.75%202.5C11.75%201.99975%2011.5003%201.50025%2011%201C11.5003%201.50025%2011.9997%201.75%2012.5%201.75C13.0003%201.75%2013.4997%201.50025%2014%201Z'%20fill='%23055AFF'/%3e%3cpath%20d='M13%206.28571V13C13%2013.5523%2012.5523%2014%2012%2014H4C3.44772%2014%203%2013.5523%203%2013V3C3%202.44772%203.44772%202%204%202H9.25'%20stroke='%23055AFF'%20stroke-width='1.3'%20stroke-linecap='round'/%3e%3cline%20x1='5.65'%20y1='6.35'%20x2='10.35'%20y2='6.35'%20stroke='%23055AFF'%20stroke-width='1.3'%20stroke-linecap='round'/%3e%3cline%20x1='5.65'%20y1='9.35'%20x2='8.35'%20y2='9.35'%20stroke='%23055AFF'%20stroke-width='1.3'%20stroke-linecap='round'/%3e%3c/svg%3e",Dt="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42%2022C43.1046%2022%2044%2022.8954%2044%2024V42C44%2043.1046%2043.1046%2044%2042%2044H6C4.89543%2044%204%2043.1046%204%2042V24.0088C4%2022.9042%204.89543%2022.0078%206%2022.0078C7.10457%2022.0078%208%2022.9042%208%2024.0088V40H40V24C40%2022.8954%2040.8954%2022%2042%2022ZM24.0293%204.00195C24.0808%204.00272%2024.1322%204.00504%2024.1836%204.00977C24.1904%204.01042%2024.1973%204.011%2024.2041%204.01172C24.2673%204.01819%2024.3301%204.02757%2024.3926%204.04004C24.3939%204.04031%2024.3952%204.04075%2024.3965%204.04102C24.7693%204.11623%2025.125%204.29691%2025.4141%204.58594L34.4141%2013.5859C35.1951%2014.367%2035.1951%2015.633%2034.4141%2016.4141C33.633%2017.1951%2032.367%2017.1951%2031.5859%2016.4141L25.9922%2010.8203V32C25.9922%2033.1046%2025.0968%2034%2023.9922%2034C22.8876%2034%2021.9922%2033.1046%2021.9922%2032V10.8359L16.4141%2016.4141C15.633%2017.1951%2014.367%2017.1951%2013.5859%2016.4141C12.8049%2015.633%2012.8049%2014.367%2013.5859%2013.5859L22.498%204.67285C22.8016%204.33138%2023.2194%204.09559%2023.6924%204.02441C23.7122%204.02135%2023.732%204.01809%2023.752%204.01562C23.7862%204.01152%2023.8207%204.00919%2023.8555%204.00684C23.8887%204.00446%2023.9218%204.00268%2023.9551%204.00195C23.9674%204.00173%2023.9798%204%2023.9922%204C24.0046%204%2024.0169%204.00173%2024.0293%204.00195Z'%20fill='url(%23paint0_linear_4072_34663)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_4072_34663'%20x1='4'%20y1='-7.25'%20x2='54.4707'%20y2='1.556'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%232B69FF'/%3e%3cstop%20offset='1'%20stop-color='%238F91FF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Le=({url:e,token:i,role:o,eventsEmit:a})=>{const l=lt.create({baseURL:e,timeout:1e6});return l.interceptors.request.use(s=>{let n=i;return!n&&!["user/login","user/kaptcha","user/regist"].some(c=>s.url.includes(c))?(a&&a("request:error_auth",{errorMsg:"\u672A\u767B\u5F55\u6216token\u5DF2\u8FC7\u671F",redirect:"/login"}),Promise.reject(new Error("\u672A\u767B\u5F55\u6216token\u5DF2\u8FC7\u671F"))):(s.headers.Authorization=n||"",s.headers.userName=o==="\u672A\u767B\u5F55\u7528\u6237"?"":o,s)}),l.interceptors.response.use(s=>{const n=["user/kaptcha"],r=s.data;if(n.some(L=>s.config.url&&s.config.url.includes(L))||r.size&&r.type)return r;const{success:c,errorMsg:B,errorCode:E}=r;if(c)return r;a&&a("request:error_business",{errorCode:E,errorMsg:B||"\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",response:r})},s=>{var n,r,c,B,E,L,C,b,H;if(s.message==="canceled")return Promise.reject(s);if(a){let q="request:error_network",G={errorMsg:"\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25",error:s};((n=s==null?void 0:s.response)==null?void 0:n.status)===401?(q="request:error_auth",G={errorMsg:"\u6CA1\u6709\u8DB3\u591F\u6743\u9650",error:s,redirect:"/login"}):(((c=(r=s==null?void 0:s.response)==null?void 0:r.data)==null?void 0:c.errorCode)==="30013"||((E=(B=s==null?void 0:s.response)==null?void 0:B.data)==null?void 0:E.errorCode)==="30023")&&(q="request:error_business",G={errorCode:(C=(L=s==null?void 0:s.response)==null?void 0:L.data)==null?void 0:C.errorCode,errorMsg:((H=(b=s==null?void 0:s.response)==null?void 0:b.data)==null?void 0:H.errorMsg)||"\u8BF7\u6C42\u51FA\u9519\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",error:s}),a(q,G)}return Promise.reject(s)}),{getTableList:async s=>{try{const n=await l.get(`/directDB/queryTableList/${s}`),{success:r,data:c}=n;if(r)return c}catch(n){console.log("getTableList error:",n)}},getTableTreeList:async s=>{try{const n=await l.get(`/dataTable/queryTableFileTreeList/${s}`),{success:r,data:c}=n;if(r)return c}catch(n){console.log("getTableTreeList error:",n)}},getDBDetailById:async(s,n)=>{const r=ve(n);try{const c=await l.get(`/${r}/queryDBInfo/${s}`),{success:B,data:E}=c;if(B)return E}catch(c){console.log("getDBDetailById error:",c)}},delTableById:async(s,n)=>{const r=ve(n);try{const c=await l.delete(`/${r}/deleteTable/${s}`),{success:B,data:E}=c;if(B)return E}catch(c){console.log("delTableById error:",c)}},delFileById:async s=>{try{const n=await l.delete(`/dataTable/deleteTableFileData/${s}`),{success:r,data:c}=n;if(r)return c}catch(n){console.log("delFileById",n)}},parseFiles:async({fileIds:s,isGenDescription:n,tableDescriptionMap:r})=>{try{const c=await l.post("/dataTable/parseFiles",{fileIds:s,isGenDescription:n,tableDescriptionMap:r}),{success:B,data:E}=c;if(B)return E}catch(c){console.log("parseFiles error:",c)}},reParseFile:async s=>{try{const n=await l.post(`/dataTable/reParseFile/${s}`),{success:r,data:c}=n;if(r)return c}catch(n){console.log("reParseFile error:",n)}},parseAppendFile:async({fileIds:s,tableId:n})=>{try{const r=await l.post("/dataTable/parseAppendFiles",{fileIds:s,tableId:n}),{success:c,data:B}=r;if(c)return B}catch(r){console.log("parseAppendFile error:",r)}},deleteUploadedFiles:async s=>{try{const n=await l.post("/dataTable/cancelUploadFile",{fileIds:s}),{success:r,data:c}=n;if(r)return c}catch(n){console.log("deleteUploadedFiles error:",n)}},getTableInfoById:async s=>{try{const n=await l.get(`/dataTable/queryTableMeta/${s}`),{success:r,data:c}=n;if(r)return c}catch(n){console.log("getTableInfoById error:",n)}},updateTableInfo:async({tableId:s,description:n,businessName:r})=>{try{const c=await l.post("/dataTable/updateTableInfo",{tableId:s,businessName:r,description:n}),{success:B,data:E}=c;if(B)return E}catch(c){console.log("updateTableInfo error:",c)}},optimizeDesc:async s=>{try{const n=await l.get(`/genTableDescription/${s}`),{success:r,data:c}=n;if(r)return c}catch(n){console.log("optimizeDesc error:",n)}}}},ve=e=>e=="DataTable"?"dataTable":"directDB",Ce='<template key="type" placeholder="\u8F93\u5165\u8868\u683C\u7C7B\u578B"></template>\u8868\u683C\u4E3B\u8981\u5C55\u793A\u4E86<template key="scene" placeholder="\u8F93\u5165\u573A\u666F\u540D\u79F0"></template>\u573A\u666F\u7684\u6570\u636E,\u5305\u542B<template key="primary_key" placeholder="\u4E3B\u8981\u5B57\u6BB5(\u53EF\u5199\u591A\u4E2A,\u7528\u987F\u53F7\u5206\u9694)"></template>\u7B49\u4E3B\u8981\u5B57\u6BB5,\u652F\u6301\u7528\u6237\u67E5\u8BE2<template key="search_direction" placeholder="\u5927\u6982\u4ECB\u7ECD\u9700\u8981\u67E5\u8BE2\u7684\u65B9\u5411"></template>\u95EE\u9898,\u5982\u679C\u8BBE\u8BA1\u591A\u8868\u5173\u8054\u67E5\u8BE2,\u6700\u597D\u8BF4\u660E\u6B64\u8868\u683C\u901A\u8FC7<template key="key_name" placeholder="\u5B57\u6BB5\u540D\u79F0"></template>\u5B57\u6BB5\u53EF\u4EE5\u5173\u8054\u53E6\u4E00\u4E2A<template key="table_name" placeholder="\u8868\u683C\u540D\u79F0"></template>\u8868\u683C\u3002',Bt={colors:{background:"#ffffff",border:"#e5e7eb",appBackground:"#ffffff",listBackground:"#ffffff",dashboardBackground:"#ffffff"},space:{padding:"0",margin:"md",shadow:"none"}},At=({drawerTitle:e,drawerVisible:i,uploadUrl:o,handleDrawerClose:a,dbId:l,tableInfo:d,token:k,url:V,role:m})=>{const D=oe(()=>({id:"upload",layout:"vertical",formWidth:"670px",fields:[{id:"fileIds",name:"fileIds",type:"uploader",required:!1,defaultValue:"",uploaderConfig:{multiple:!d,accept:".csv,.xlsx,.xls",maxFiles:d?1:20,url:o,autoUpload:!0,headers:{Authorization:k},queryParams:{databaseId:l,...d&&{tableId:d.tableId}},placeholder:O("div",{children:[u("div",{className:"text-lg font-bold",children:"\u70B9\u51FB\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64\u5904\u4E0A\u4F20"}),O("div",{className:"flex flex-col gap-1.8 mt-[12px]",children:[u("div",{className:"text-[#888888] font-[12px]",children:"\u6570\u91CF\uFF1A\u226420 \u6587\u4EF6\uFF08\u5F53\u524D 0/20\uFF09"}),u("div",{className:"text-[#888888] font-[12px]",style:{width:"580px"},children:"\u683C\u5F0F\uFF1A.xlsx / .xls / .csv /\uFF08\u7B2C\u4E00\u884C\u662F\u8868\u5934\uFF0C\u5176\u4ED6\u884C\u662F\u6570\u636E\uFF1BCSV \u652F\u6301 UTF-8/GBK/GB2312\u2026\uFF09"}),u("div",{className:"text-[#888888] font-[12px]",children:"\u5355\u6587\u4EF6\u9650\u5236\uFF1A \u226410\u4E07\u884C\uFF0C\u226460\u5217\uFF08\u8D85\u51FA\u81EA\u52A8\u5FFD\u7565\uFF09\uFF1B \u6BCF\u6587\u4EF6 \u22641\u4E2ASheet"}),u("div",{className:"text-[#888888] font-[12px]",children:"\u4E0A\u4F20\u7684\u6587\u4EF6\uFF0C\u5982\u679C\u6709\u4E0D\u7B26\u5408\u6587\u672C\u683C\u5F0F\u7684\u6570\u636E\u7CFB\u7EDF\u81EA\u52A8\u5FFD\u7565"})]})]}),listName:d?"\u8FFD\u52A0\u6587\u4EF6":"\u4E0A\u4F20\u6587\u4EF6\u5217\u8868",icons:{dragUpload:u("img",{src:Dt,width:40}),itemStatus:{pending:u("span",{style:{fontSize:"12px",color:"#6b7280"}}),uploading:u("span",{style:{fontSize:"12px",color:"#007bff"}}),success:u("span",{style:{fontSize:"12px",color:"#10b981"}}),error:u("span",{style:{fontSize:"12px",color:"#ef4444"},children:"\u5931\u8D25"})},fileType:{default:u(We,{size:20,style:{color:"#6b7280"}})}},...!d&&{buttons:[{label:"\u4F7F\u7528\u6A21\u7248",icon:u("img",{src:bt}),mode:"text",onClick:()=>{c(!0)}}]},...!d&&{itemForm:[{type:"textarea",name:"description",counter:150,placeholder:"\u4E3A\u4E86\u63D0\u9AD8\u95EE\u7B54\u51C6\u786E\u7387\uFF0C\u8BF7\u8F93\u5165\u63CF\u8FF0"}]}}}]}),[d]),[I,P]=h(!1),[x,y]=h({}),F=Ee(null),[v,S]=h(!1),[s,n]=h([]),[r,c]=h(!1),[B,E]=h(Ce),[L,C]=h(null),[b,H]=h(Ce),[q,G]=h(0),{parseFiles:ne,parseAppendFile:re,deleteUploadedFiles:ie}=Le({url:V,token:k,role:m}),X=ae(async(g,f,$)=>{var M;switch(console.log("[DynamicFormAdopter] \u4E8B\u4EF6:",g,f),g){case"form:ready":f.formRef?F.current=f.formRef:console.log("\u274C data.formRef \u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u4FDD\u5B58\u8868\u5355\u5F15\u7528");break;case"form:submit":se();break;case"form_field_change":y(z=>({...z,[f.fieldId]:f.value}));break;case"uploader:error":(M=f.item)!=null&&M.id?n(z=>[{id:f.item.id,status:f.item.status},...z]):Y.error(f==null?void 0:f.message);break;case"uploader:success":n(z=>[{id:f.item.id,status:f.item.status},...z]);break;case"uploader:remove":const U=f.item.status;n(z=>z.filter(Q=>Q.id!==f.item.id)),U=="success"&&await te([f.item.uploadApiRes]);break;default:console.log("\u672A\u5904\u7406\u7684\u4E8B\u4EF6:",g)}},[]),le=oe(()=>({label:"\u52A8\u6001\u8868\u5355\u793A\u4F8B",defaultActiveId:"form-view",model:null,views:[{label:"\u7528\u6237\u6CE8\u518C\u8868\u5355",id:"form-view",type:"form",size:"md",formWidth:D.formWidth,formConfig:{layout:D.layout,showReset:!1,showSubmit:!1,formWidth:D.formWidth,getFormData:()=>({...x,timestamp:new Date().toISOString(),formId:D.id}),onFieldChange:(g,f)=>{X("form_field_change",{fieldId:g,value:f},void 0)},onValidationError:g=>{X("form_validation_error",g,void 0)}}}],dataSource:[{id:D.id,fields:D.fields,defaultValues:{}}],eventsEmit:X,styles:{theme:Bt}}),[d,D]),se=async()=>{var g;try{P(!0);const f=await F.current.getAllData();if(f.isValid){const $=(g=f.fields.find(M=>M.name=="fileIds"))==null?void 0:g.value;if(Array.isArray($)&&($==null?void 0:$.length)>0){let M;if(d)M=await re({fileIds:$.map(U=>U.uploadApiRes),tableId:d.id});else{const U={fileIds:$.map(z=>z.uploadApiRes),tableDescriptionMap:$.reduce((z,Q)=>(z[Q.uploadApiRes]=Q.formData.description,z),{}),isGenDescription:v};M=await ne(U)}M&&a("refresh")}}}catch(f){console.error("\u8868\u5355\u6570\u636E\u5931\u8D25:",f)}finally{a(),P(!1),S(!1)}},ee=async g=>{var f;try{const $=await F.current.getAllData();if($.isValid){const M=(f=$.fields.find(U=>U.name=="fileIds"))==null?void 0:f.value;if(M&&Array.isArray(M)&&(M==null?void 0:M.length)>0){const U=M.map(Q=>Q.uploadApiRes),z=await te(U)}}}catch($){console.error("\u8868\u5355\u6570\u636E\u5931\u8D25:",$)}finally{a(),S(!1)}},te=async g=>{try{const f=await ie(g);if(f)return f}catch(f){console.error("\u5220\u9664\u6587\u4EF6\u6570\u636E\u5931\u8D25:",f)}},R=g=>{S(g)},J=ae(g=>{E(g),console.log("\u6A21\u7248\u5185\u5BB9\u53D8\u5316:",g)},[]),ue=ae(g=>{C(()=>g),console.log("getData\u51FD\u6570\u5DF2\u8BBE\u7F6E")},[]),Fe=ae(async()=>{try{if(!L){console.error("getData\u51FD\u6570\u5C1A\u672A\u51C6\u5907\u597D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}const g=L("pure_string");await navigator.clipboard.writeText(g),Y.success("\u5DF2\u590D\u5236",1)}catch(g){console.error("\u590D\u5236\u5931\u8D25:",g)}finally{c(!1)}},[L]);return O(Me,{title:e,className:"database-upload-drawer",placement:"right",width:720,closeIcon:!1,extra:u(he,{size:20,color:"#888888",onClick:()=>ee(),className:"cursor-pointer"}),open:i,destroyOnHidden:!0,footer:O("div",{className:"flex items-center",style:{justifyContent:d?"end":"space-between"},children:[!d&&O("div",{className:"flex gap-2 items-center",children:[u("span",{children:"\u81EA\u52A8\u751F\u6210\u6570\u636E\u8868\u63CF\u8FF0"})," ",u(pe,{title:"\u81EA\u52A8\u751F\u6210\u5F00\u542F\u65F6\u5C06\u57FA\u4E8E\u6570\u636E\u667A\u80FD\u751F\u6210\u63CF\u8FF0\uFF1B\u82E5\u5F00\u542F\u6B64\u529F\u80FD\u5E76\u624B\u52A8\u586B\u5199\u63CF\u8FF0\uFF0C\u5C06\u4F18\u5148\u91C7\u7528\u7528\u6237\u586B\u5199\u7684\u5185\u5BB9\u3002",children:u(Ue,{size:14})}),u(ct,{onChange:R})]}),O("div",{className:"flex self-end gap-3",children:[u(K,{mode:"default",style:{marginRight:10},label:"\u53D6\u6D88",onClick:ee}),u(K,{mode:"primary",label:"\u786E\u8BA4\u5BFC\u5165",loading:I,disabled:s.some(g=>g.status=="error"),onClick:async()=>{await se()}})]})]}),children:[u(Te,{...le},"upload-file"),u(De,{title:O("div",{children:["\u6A21\u7248",u("span",{className:"text-[12px] text-[#888888] ml-[8px]",children:"\u5B8C\u6210\u7F16\u8F91\u540E\uFF0C\u53EF\u5C06\u6587\u672C\u590D\u5236\u7C98\u8D34\u5230\u76F8\u5E94\u63CF\u8FF0\u6846\u4E2D\u3002"})]}),width:672,destroyOnHidden:!0,open:r,onCancel:()=>c(!1),footer:O("div",{className:"flex justify-end items-center gap-3",children:[u(K,{mode:"default",label:"\u91CD\u7F6E",onClick:()=>{H(Ce),G(g=>g+1)}}),u(K,{mode:"primary",label:"\u590D\u5236",onClick:Fe})]}),children:u(Se,{data:b,onChange:J,onGetData:ue,styles:{theme:{colors:{primary:"#0969da",secondary:"#6b7280",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#3b82f6",background:"#ffffff",text:"#1f2937",border:"#e5e7eb",disabled:"#9ca3af",disabledBackground:"#f3f4f6",disabledText:"#6b7280",shadow:"0 1px 3px rgba(0, 0, 0, 0.1)",appBackground:"transparent",listBackground:"#f9fafb",dashboardBackground:"#ffffff",textSecondary:"#6b7280"},space:{sidebar:"260px",size:"12px",radius:"8px",padding:"1rem",margin:"1rem",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.8"},icons:{},fonts:{body:{size:"14px",weight:"normal",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},heading:{size:"14px",weight:"600",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"}},others:{baseFontWeight:"normal"}},templateField:{backgroundColor:"#E5EEFF",borderColor:"#84ADFF",borderRadius:"6px",padding:"6px 12px",margin:"2px",fontSize:"14px",fontWeight:"500",minWidth:"80px",textColor:"#84ADFF"}}},q)})]})},vt="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%201C13.4997%201.50025%2013.25%201.99975%2013.25%202.5C13.25%203.00025%2013.4997%203.49975%2014%204C13.4997%203.49975%2013.0003%203.25%2012.5%203.25C11.9997%203.25%2011.5003%203.49975%2011%204C11.5003%203.49975%2011.75%203.00025%2011.75%202.5C11.75%201.99975%2011.5003%201.50025%2011%201C11.5003%201.50025%2011.9997%201.75%2012.5%201.75C13.0003%201.75%2013.4997%201.50025%2014%201Z'%20fill='%23055AFF'/%3e%3cpath%20d='M13%206.28571V13C13%2013.5523%2012.5523%2014%2012%2014H4C3.44772%2014%203%2013.5523%203%2013V3C3%202.44772%203.44772%202%204%202H9.25'%20stroke='%23055AFF'%20stroke-width='1.3'%20stroke-linecap='round'/%3e%3cline%20x1='5.65'%20y1='6.35'%20x2='10.35'%20y2='6.35'%20stroke='%23055AFF'%20stroke-width='1.3'%20stroke-linecap='round'/%3e%3cline%20x1='5.65'%20y1='9.35'%20x2='8.35'%20y2='9.35'%20stroke='%23055AFF'%20stroke-width='1.3'%20stroke-linecap='round'/%3e%3c/svg%3e",xt="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_4199_8826)'%3e%3cpath%20d='M15.5554%2012.4444C14.9626%2013.0373%2014.6666%2013.6293%2014.6666%2014.2222C14.6666%2014.8151%2014.9626%2015.4071%2015.5554%2016C14.9626%2015.4071%2014.3706%2015.1111%2013.7777%2015.1111C13.1848%2015.1111%2012.5928%2015.4071%2011.9999%2016C12.5928%2015.4071%2012.8888%2014.8151%2012.8888%2014.2222C12.8888%2013.6293%2012.5928%2013.0373%2011.9999%2012.4444C12.5928%2013.0373%2013.1848%2013.3333%2013.7777%2013.3333C14.3706%2013.3333%2014.9626%2013.0373%2015.5554%2012.4444ZM14.6488%204.01778C15.1905%204.55954%2015.4948%205.29431%2015.4948%206.06044C15.4948%206.82658%2015.1905%207.56135%2014.6488%208.10311L7.735%2015.0169C7.46766%2015.2892%207.14901%2015.5058%206.79746%2015.6543C6.44592%2015.8028%206.06844%2015.8801%205.68684%2015.8819C5.30523%2015.8836%204.92706%2015.8097%204.57417%2015.6645C4.22127%2015.5193%203.90065%2015.3056%203.63081%2015.0357C3.36097%2014.7659%203.14727%2014.4453%203.00205%2014.0924C2.85682%2013.7395%202.78295%2013.3613%202.7847%2012.9797C2.78646%2012.5981%202.8638%2012.2206%203.01226%2011.8691C3.16072%2011.5176%203.37736%2011.1989%203.64967%2010.9316L3.95545%2010.6249L3.85145%2010.5244C3.30922%2010.0267%202.76522%209.77778%202.22211%209.77778C1.62923%209.77778%201.03722%2010.0738%200.444336%2010.6667C1.03722%2010.0738%201.33322%209.48178%201.33322%208.88889C1.33322%208.296%201.03722%207.704%200.444336%207.11111C1.03722%207.704%201.62923%208%202.22211%208C2.815%208%203.407%207.704%203.99989%207.11111C3.407%207.704%203.111%208.296%203.111%208.88889C3.111%209.46667%203.39278%2010.0444%203.95545%2010.6222L10.5634%204.01778C11.1052%203.47606%2011.84%203.17173%2012.6061%203.17173C13.3723%203.17173%2014.107%203.47606%2014.6488%204.01778ZM9.55189%206.91378L4.59189%2011.8738C4.30004%2012.1655%204.13603%2012.5612%204.13594%2012.9739C4.1359%2013.1782%204.17611%2013.3806%204.25426%2013.5694C4.33242%2013.7582%204.44699%2013.9297%204.59145%2014.0742C4.7359%2014.2187%204.9074%2014.3334%205.09617%2014.4116C5.28493%2014.4898%205.48725%2014.5301%205.69158%2014.5302C6.10424%2014.5303%206.50004%2014.3664%206.79189%2014.0747L11.7519%209.11378L9.55189%206.91378ZM11.5066%204.96089L10.495%205.97156L12.695%208.17156L13.7057%207.16C13.9846%206.86582%2014.1377%206.47437%2014.1323%206.069C14.1269%205.66364%2013.9635%205.27639%2013.6768%204.98973C13.3902%204.70306%2013.0029%204.53964%2012.5976%204.53425C12.1922%204.52887%2011.8007%204.68194%2011.5066%204.96089ZM9.59545%200C8.85589%200.740444%208.48434%201.48178%208.48434%202.22222C8.48434%202.96267%208.85589%203.704%209.59545%204.44444C8.85589%203.704%208.11456%203.33333%207.37322%203.33333C6.63367%203.33333%205.89234%203.704%205.151%204.44444C5.89234%203.704%206.26211%202.96267%206.26211%202.22222C6.26211%201.48178%205.89322%200.740444%205.15189%200C5.89322%200.740444%206.63456%201.11111%207.37411%201.11111C8.11545%201.11111%208.85678%200.740444%209.59634%200H9.59545Z'%20fill='%23055AFF'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_4199_8826'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",{confirm:wt}=De,kt='<template key="type" placeholder="\u8F93\u5165\u8868\u683C\u7C7B\u578B"></template>\u8868\u683C\u4E3B\u8981\u5C55\u793A\u4E86<template key="scene" placeholder="\u8F93\u5165\u573A\u666F\u540D\u79F0"></template>\u573A\u666F\u7684\u6570\u636E,\u5305\u542B<template key="primary_key" placeholder="\u4E3B\u8981\u5B57\u6BB5(\u53EF\u5199\u591A\u4E2A,\u7528\u987F\u53F7\u5206\u9694)"></template>\u7B49\u4E3B\u8981\u5B57\u6BB5,\u652F\u6301\u7528\u6237\u67E5\u8BE2<template key="search_direction" placeholder="\u5927\u6982\u4ECB\u7ECD\u9700\u8981\u67E5\u8BE2\u7684\u65B9\u5411"></template>\u95EE\u9898,\u5982\u679C\u8BBE\u8BA1\u591A\u8868\u5173\u8054\u67E5\u8BE2,\u6700\u597D\u8BF4\u660E\u6B64\u8868\u683C\u901A\u8FC7<template key="key_name" placeholder="\u5B57\u6BB5\u540D\u79F0"></template>\u5B57\u6BB5\u53EF\u4EE5\u5173\u8054\u53E6\u4E00\u4E2A<template key="table_name" placeholder="\u8868\u683C\u540D\u79F0"></template>\u8868\u683C\u3002',It=({drawerTitle:e,drawerVisible:i,tableInfo:o,handleDrawerClose:a,optimizeDesc:l,eventsEmit:d})=>{const k=oe(()=>(o==null?void 0:o.data.find(C=>C.columnId=="name").value)||"-",[o]),[V,m]=h(""),[D,I]=h(null),[P,x]=h(""),[y,F]=h(0),[v,S]=h(!1),[s,n]=h(!1);ke(()=>{const C=(o==null?void 0:o.data.find(b=>b.columnId=="description").value)||"-";x(C)},[o]);const r=()=>{wt({title:"\u4F60\u786E\u5B9A\u8981\u4F7F\u7528\u6A21\u677F\u5417\uFF1F",content:"\u8FD9\u5C06\u66FF\u6362\u4F60\u5F53\u524D\u5DF2\u586B\u5199\u7684\u5185\u5BB9\uFF0C\u4E14\u65E0\u6CD5\u64A4\u9500\u3002",okText:"\u786E\u8BA4\u66FF\u6362",cancelText:"\u53D6\u6D88",onOk(){x(kt),F(C=>C+1)},onCancel(){console.log("Cancel")}})},c=ae(C=>{m(C),console.log("\u6A21\u7248\u5185\u5BB9\u53D8\u5316:",C)},[]),B=ae(C=>{I(()=>C),console.log("getData\u51FD\u6570\u5DF2\u8BBE\u7F6E")},[]),E=async()=>{try{S(!0);const C=await l(o.tableId);C&&(x(C),F(b=>b+1),S(!1))}catch{Y.error("AI \u4F18\u5316\u5931\u8D25")}},L=ae(()=>{if(!D){console.error("getData\u51FD\u6570\u5C1A\u672A\u51C6\u5907\u597D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5");return}const C=D("pure_string");d("table_info:update",C)},[D,d]);return O(Me,{title:e,placement:"right",width:720,onClose:a,closeIcon:!1,extra:u(he,{size:20,color:"#888888",onClick:a,className:"cursor-pointer"}),open:i,destroyOnHidden:!0,footer:u("div",{className:"flex items-center",style:{justifyContent:"end"},children:O("div",{className:"flex self-end gap-3",children:[u(K,{mode:"default",style:{marginRight:10},label:"\u53D6\u6D88",onClick:a}),u(K,{mode:"primary",label:"\u786E\u8BA4",onClick:()=>L(),disabled:v})]})}),children:[u("div",{className:"mb-[10px] font-bold",children:k}),O("div",{className:"mb-[10px]",children:[u("span",{style:{color:"#FF3B30",marginRight:"4px"},children:"*"}),u("span",{children:"\u6570\u636E\u8868\u63CF\u8FF0"}),u("span",{className:"text-[#888888] ml-[4px]",children:"(\u8BF7\u51C6\u786E\u586B\u5199\u8868\u683C\u7684\u5E94\u7528\u573A\u666F\u63CF\u8FF0\uFF0C\u5927\u6A21\u578B\u5C06\u4F9D\u8D56\u6B64\u4FE1\u606F\u8BC6\u522B\u5E76\u6B63\u786E\u8C03\u7528\u8BE5\u6570\u636E\u8868\u3002)"})]}),u(Se,{data:P,onChange:c,onGetData:B,styles:{theme:{colors:{primary:"#0969da",secondary:"#6b7280",success:"#10b981",warning:"#f59e0b",error:"#ef4444",info:"#3b82f6",background:"#ffffff",text:"#1f2937",border:"#e5e7eb",disabled:"#9ca3af",disabledBackground:"#f3f4f6",disabledText:"#6b7280",shadow:"0 1px 3px rgba(0, 0, 0, 0.1)",appBackground:"transparent",listBackground:"#f9fafb",dashboardBackground:"#ffffff",textSecondary:"#6b7280"},space:{sidebar:"260px",size:"12px",radius:"8px",padding:"1rem",margin:"1rem",shadow:"0 2px 8px rgba(0,0,0,0.1)",lineHeight:"1.8"},icons:{},fonts:{body:{size:"14px",weight:"normal",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"},heading:{size:"14px",weight:"600",family:"PingFang SC, Microsoft YaHei, Arial, sans-serif"}},others:{baseFontWeight:"normal"}},templateField:{backgroundColor:"#E5EEFF",borderColor:"#84ADFF",borderRadius:"6px",padding:"6px 12px",margin:"2px",fontSize:"14px",fontWeight:"500",minWidth:"80px",textColor:"#84ADFF"}}},y),O("div",{children:[u(Oe,{open:s,onOpenChange:C=>n(!!C),content:u("div",{style:{width:"600px",margin:"10px",padding:"10px"},onClick:r,className:"hover:bg-gray-100 h-[80px] cursor-pointer rounded",children:"______\u8868\u683C\u4E3B\u8981\u5C55\u793A\u4E86______\u573A\u666F\u7684\u6570\u636E\uFF0C\u5305\u542B______\u3001______\u3001______\u7B49\u4E3B\u8981\u5B57\u6BB5\uFF0C\u652F\u6301\u7528\u6237\u67E5\u8BE2______\u95EE\u9898(\u5927\u6982\u4ECB\u7ECD)\u5982\u679C\u6D89\u53CA\u591A\u8868\u5173\u8054\u67E5\u8BE2\uFF0C\u6700\u597D\u8BF4\u660E\u6B64\u8868\u683C\u901A\u8FC7______\u5B57\u6BB5\u53EF\u4EE5\u5173\u8054\u53E6\u4E00\u4E2A______\u8868\u683C\u3002"}),title:O("div",{className:"flex justify-between items-center",style:{margin:"10px"},children:[u("div",{className:"text-[16px]",children:"\u6A21\u7248"}),u(he,{size:20,color:"#888888",onClick:()=>n(!1),className:"cursor-pointer"})]}),trigger:"click",destroyOnHidden:!0,placement:"bottomRight",getPopupContainer:C=>C,children:u("span",{children:u(K,{mode:"text",icon:u("img",{src:vt}),children:"\u4F7F\u7528\u6A21\u7248"})})}),u(K,{onClick:E,mode:"text",icon:u("img",{src:xt}),loading:v,children:"AI\u4F18\u5316"})]})]})},Tt=""+new URL("empty.png",import.meta.url).href;var Z=(e=>(e[e.DATE=0]="DATE",e[e.VIEW=1]="VIEW",e[e.ERROR=2]="ERROR",e[e.AUTHORIZE=3]="AUTHORIZE",e[e.DELETE=4]="DELETE",e[e.ANALYSIS_OR_EXTRACT=5]="ANALYSIS_OR_EXTRACT",e[e.DOWNLOAD=6]="DOWNLOAD",e[e.EDIT=7]="EDIT",e[e.ADD=8]="ADD",e[e.ANALYSIS_CONFIG=9]="ANALYSIS_CONFIG",e[e.AUTHORIZE_CONFIG=10]="AUTHORIZE_CONFIG",e))(Z||{}),be=(e=>(e.GENERATING="generating",e.SUCCESS="success",e.FAIL="fail",e))(be||{});const ge={success:"green",error:"red",warning:"orange",processing:"blue",info:"cyan",default:"default"},St=e=>typeof e=="string"&&e in ge?ge[e]:ge.default,ye=e=>{const{value:i,cell:o}=e;switch(o.columnId){case"importstatus":return i?u(pe,{title:"\u6709\u8FFD\u52A0\u5931\u8D25\u7684\u6587\u4EF6\uFF0C\u8BF7\u53CA\u65F6\u5904\u7406",children:u(He,{color:"red",bordered:!1,children:"\u8FFD\u52A0\u5931\u8D25"})}):u(Be,{});case"status":const a=St(e.cell.statusType);return i=="\u5BFC\u5165\u5931\u8D25"?u(pe,{title:o.errorMsg,children:O("div",{className:"flex items-center gap-2",children:[u(Ae,{color:a,text:i}),u(ze,{size:14,color:"red"})]})}):u(Ae,{color:a,text:i});default:return u(Be,{})}},xe=[{statusType:"success",value:"\u5BFC\u5165\u6210\u529F",status:"30"},{statusType:"error",value:"\u5BFC\u5165\u5931\u8D25",status:"00"},{statusType:"default",value:"\u5F85\u5BFC\u5165",status:"10"},{statusType:"processing",value:"\u5BFC\u5165\u4E2D",status:"20"},{statusType:"processing",value:"\u5BFC\u5165\u4E2D",status:"11"}],Mt=e=>{var a,l;const{cell:i,value:o}=e;return typeof o=="string"?u("div",{title:o,style:{maxWidth:240,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}):(a=i.tableMeta)!=null&&a.isGenDescription&&((l=i.tableMeta)==null?void 0:l.generateDescriptionStatus)=="generating"?O("div",{className:"flex items-center gap-1 text-[#84ADFF]",style:{color:"#84ADFF"},children:[u("span",{children:"\u751F\u6210\u4E2D"}),u(pt,{size:14})]}):"-"},zt=({dbInfo:e,setDrawerTitle:i,setDrawerVisible:o,getBtnDisabled:a})=>O("div",{className:"flex flex-col items-center justify-center h-full",children:[u("div",{className:"text-xl font-semibold mb-3",children:u("img",{src:Tt,width:120})}),u("div",{className:"text-base mb-2",style:{color:"#888888"},children:"\u6682\u65E0\u6570\u636E\u6587\u4EF6"}),u("div",{className:"flex gap-3",children:u(K,{mode:"primary",label:"\u4E0A\u4F20\u6570\u636E\u6587\u4EF6",disabled:a&&a(8,e==null?void 0:e.permission),onClick:()=>{i("\u4E0A\u4F20\u6570\u636E\u6587\u4EF6"),o(!0)}})})]}),{confirm:we}=De,Zt=e=>{const{url:i,token:o,role:a,id:l,dbType:d,styles:k,CustomComponents:V,getBtnDisabled:m,uploadUrl:D}=e,I=oe(()=>dt({theme:fe,mode:"light"},k),[k]),[P,x]=h({container:"ready",content:"ready"}),y=Ee(null),F=Ee(null),[v,S]=h(),[s,n]=h({}),[r,c]=h(),[B,E]=h(!1),[L,C]=h(""),[b,H]=h(),[q,G]=h(!1),[ne,re]=h(""),{getTableList:ie,delTableById:X,delFileById:le,updateTableInfo:se,optimizeDesc:ee,getTableTreeList:te,reParseFile:R,getDBDetailById:J}=Le({url:i,token:o,role:a,eventsEmit:e.eventsEmit});ke(()=>(l&&d&&(x(p=>({...p,container:"loading"})),ue()),()=>{F.current&&(clearTimeout(F.current),F.current=null)}),[l,d]);const ue=async()=>{try{const p=await J(l,d);p&&(c(p),x(t=>({...t,container:"ready",content:"loading"})))}catch(p){console.log("[TableApiError] getDBInfo:",p)}await ce()},Fe=async()=>{try{if(d=="DirectDB"){const p=await ie(l);if(p){const t=f(p);return S(t||[]),x(j=>({...j,content:"ready"})),t||[]}else x(t=>({...t,content:"error"}))}else{const p=await te(l);if(p){const t=g(p);return S(t||[]),x(j=>({...j,content:"ready"})),t||[]}else x(t=>({...t,content:"error"}))}}catch(p){console.log("[TableApiError] getTableList:",p)}};function g(p){return(p||[]).map((t,j)=>{var w,_;let A=xe.find(T=>T.status==t.status);const N=t.children.some(T=>T.status=="00");return{id:t.fileId.toString(),tableId:t.tableId,data:[{columnId:"name",value:(t==null?void 0:t.originalFilename)||"-",type:"label"},{columnId:"description",value:(w=t==null?void 0:t.tableMeta)==null?void 0:w.description,type:"customized",tableMeta:t==null?void 0:t.tableMeta},{columnId:"count",value:`${t.rowCount}\u884C\uFF0C${t.columnCount}\u5217`,type:"text"},{columnId:"status",...A,type:"customized",errorMsg:t.errorMsg},{columnId:"importstatus",value:N,type:"customized"},{columnId:"createdAt",value:t.gmtCreate,type:"date"},{columnId:"updatedAt",value:t.gmtModified,type:"date"},...t.status=="30"?[{columnId:"actions",value:"view",label:"\u67E5\u770B",type:"action",disabled:m&&m(Z.VIEW,t.permission)},{columnId:"actions",value:"edit",label:"\u4FEE\u6539\u914D\u7F6E",type:"action",disabled:m&&m(Z.EDIT,t.permission)},{columnId:"actions",value:"addData",label:"\u8FFD\u52A0\u6570\u636E",type:"action",disabled:m&&m(Z.EDIT,t.permission)}]:[],...t.status=="00"?[{columnId:"actions",value:"reValidate",label:"\u91CD\u65B0\u5BFC\u5165",type:"action"}]:[],{columnId:"actions",value:"delete",label:"\u5220\u9664",type:"action",disabled:m&&m(Z.DELETE,t.permission)}],expanded:!1,...t.children&&((_=t.children)==null?void 0:_.length)>0&&{children:[...(t.children||[]).map(T=>{const $e=xe.find(Pe=>Pe.status==T.status),Ve=[{columnId:"name",value:T.originalFilename,type:"text"},{columnId:"count",value:`${T.rowCount}\u884C\uFF0C${T.columnCount}\u5217`,type:"text"},{columnId:"status",...$e,errorMsg:T.errorMsg,type:"customized"},{columnId:"createdAt",value:T.gmtCreate,type:"date"},{columnId:"updatedAt",value:T.gmtModified,type:"date"},...T.status=="30"?[{columnId:"actions",value:"view",label:"\u67E5\u770B",type:"action",disabled:m&&m(Z.VIEW,T.permission)}]:[],...T.status=="00"?[{columnId:"actions",value:"reValidate",label:"\u91CD\u65B0\u5BFC\u5165",type:"action",disabled:m&&m(Z.ADD,T.permission)}]:[],{columnId:"actions",value:"delete_sub",label:"\u5220\u9664",type:"action",disabled:m&&m(Z.DELETE,T.permission)}];return{id:T.fileId.toString(),tableId:T.tableId,data:Ve}})]}}})}function f(p){return(p||[]).map((t,j)=>({id:t.id||je(8),data:[{columnId:"name",value:t.physicalName},{columnId:"cnname",value:t.businessName},{columnId:"colcount",value:t.columnCount},{columnId:"count",value:`${t.rowCount}\u884C\uFF0C${t.columnCount}\u5217`},{columnId:"actions",value:"view",label:"\u67E5\u770B",disabled:m&&m(Z.VIEW,t.permission)}]}))}async function $(p,t,j){switch(console.log("[adopter] mergedEventsEmit",p,t,j),p){case"table_action_delete":{try{if(console.log("[delete] \u5220\u9664\u4E8B\u4EF6\u6570\u636E:",t),!t||!t.tableId&&!t.id){console.error("[delete] \u5220\u9664\u4E8B\u4EF6\u6570\u636E\u4E0D\u5B8C\u6574:",t),Y.error("\u5220\u9664\u5931\u8D25\uFF1A\u6570\u636E\u4E0D\u5B8C\u6574");return}const A=t.tableId||t.id,N=t.id;we({title:"\u786E\u8BA4\u5220\u9664\u6570\u636E\u5E93\uFF1F",content:"\u8BE5\u6570\u636E\u8868\u53CA\u5176\u8FFD\u52A0\u6570\u636E\u90FD\u5C06\u88AB\u5220\u9664\u4E14\u65E0\u6CD5\u6062\u590D",icon:u(ze,{color:"#FF4D4F",className:"mr-[8px]"}),okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",async onOk(){await X(A,d)&&(y!=null&&y.current)?(y==null||y.current.appFn.removeItem(N),Y.success("\u5220\u9664\u6210\u529F")):Y.error("\u5220\u9664\u5931\u8D25")}})}catch(A){console.error("\u5220\u9664\u8868\u6570\u636E\u5931\u8D25:",A),Y.error("\u5220\u9664\u5931\u8D25")}break}case"table_action_edit":{re("\u4FEE\u6539\u6570\u636E\u914D\u7F6E"),G(!0),H(t);break}case"toolbar_upload":{C("\u4E0A\u4F20\u6570\u636E\u6587\u4EF6"),E(!0);break}case"table_action_addData":{C("\u8FFD\u52A0\u6570\u636E"),E(!0),H(t);break}case"table_action_reValidate":{await R(t.id)&&(F.current&&(clearTimeout(F.current),F.current=null),await ce());break}case"table_info:update":{try{if(b!=null&&b.id){const A=(b==null?void 0:b.data.find(w=>w.columnId=="name").value)||"-";if(await se({tableId:b.tableId,description:t,businessName:A})&&(y!=null&&y.current)){const w={...b,data:b.data.map(_=>_.columnId=="description"?{..._,value:t}:_)};y==null||y.current.appFn.updateItem(w,b.id),Y.success("\u4FEE\u6539\u914D\u7F6E\u6210\u529F")}}}catch(A){console.error("\u4FEE\u6539\u914D\u7F6E\u5931\u8D25",A)}finally{z()}break}case"table_action_delete_sub":{try{we({title:"\u786E\u8BA4\u5220\u9664\u6570\u636E\uFF1F",content:"\u5220\u9664\u540E\uFF0C\u8BE5\u6570\u636E\u5C06\u65E0\u6CD5\u6062\u590D",okText:"\u5220\u9664",cancelText:"\u53D6\u6D88",async onOk(){const{id:A,tableId:N}=t;await le(t.id)&&(y!=null&&y.current)&&(n(_=>({..._,[N]:[..._[N]||[],A]})),t.data.find(_=>_.status=="00")&&(F.current&&(clearTimeout(F.current),F.current=null),ce()),j.removeItem(A,N),Y.success("\u8FFD\u52A0\u6587\u4EF6\u6570\u636E\u5220\u9664\u6210\u529F"))}})}catch{console.log("\u5220\u9664\u8868\u6570\u636E\u5931\u8D25")}break}case"toolbar_auth":{typeof e.eventsEmit=="function"&&e.eventsEmit("toolbar_auth",r);break}default:typeof e.eventsEmit=="function"&&e.eventsEmit(p,t);break}}const M=oe(()=>({label:"\u6570\u636E\u8868\u7BA1\u7406",model:null,defaultActiveId:"direct-table-view",views:[{label:"\u6211\u7684\u6570\u636E\u5E93",id:"direct-table-view",type:"table",viewBehavior:"pagination",allowMultiSelect:!1,columns:[{id:"name",title:"\u6570\u636E\u8868\u82F1\u6587\u540D\u79F0",type:"label"},{id:"cnname",title:"\u6570\u636E\u8868\u4E2D\u6587\u540D\u79F0",type:"label"},{id:"colcount",title:"\u5B57\u6BB5\u6570",type:"text"},{id:"count",title:"\u6570\u636E\u91CF",type:"text"},{id:"actions",title:"\u64CD\u4F5C",type:"action"}],toolbar:[{type:"fuzzy_search",key:"search",label:"\u641C\u7D22",searchKeys:["name","description"],position:"right"},{type:"button",key:"auth",label:"\u914D\u7F6E",btnType:"default",position:"right"}]}]}),[v,d]),U=oe(()=>({label:"\u6570\u636E\u8868\u7BA1\u7406",model:null,defaultActiveId:"data-table-view",views:[{label:"\u4E0A\u4F20\u6570\u636E\u5217\u8868",id:"data-table-view",type:"table",viewBehavior:"pagination",allowMultiSelect:!1,viewPageSize:10,columns:[{id:"name",title:"\u6587\u4EF6\u540D",type:"label",tip:"\u6587\u4EF6\u540D"},{id:"description",title:"\u63CF\u8FF0",type:"customized",component:u(Mt,{}),helpText:"\u6253\u5F00\u81EA\u52A8\u751F\u6210\u63CF\u8FF0\u5F00\u5173\u540E\uFF0C\u82E5\u63CF\u8FF0\u672A\u6B63\u5E38\u751F\u6210\uFF0C\u5219\u63CF\u8FF0\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u5982\u60A8\u4ECD\u7136\u9700\u8981\u63CF\u8FF0\uFF0C\u5219\u9700\u8981\u624B\u52A8\u6DFB\u52A0"},{id:"count",title:"\u6570\u636E\u91CF",type:"text",tip:"\u6570\u636E\u91CF"},{id:"status",title:"\u5BFC\u5165\u72B6\u6001",type:"customized",component:u(ye,{})},{id:"importstatus",title:"\u8FFD\u52A0\u63D0\u793A",type:"customized",component:u(ye,{})},{id:"createdAt",title:"\u521B\u5EFA\u65F6\u95F4",type:"date",tip:"\u521B\u5EFA\u65F6\u95F4"},{id:"updatedAt",title:"\u66F4\u65B0\u65F6\u95F4",type:"date",tip:"\u66F4\u65B0\u65F6\u95F4"},{id:"actions",title:"\u64CD\u4F5C",type:"action"}],toolbar:[{type:"button",key:"upload",label:"\u4E0A\u4F20\u6570\u636E\u6587\u4EF6",btnType:"primary",disabled:m&&m(Z.ADD,r==null?void 0:r.permission),icon:u(Ge,{size:12})},{type:"fuzzy_search",key:"search",label:"\u641C\u7D22",searchKeys:["name","description",["name"]],position:"right"},{type:"button",key:"auth",label:"\u914D\u7F6E",btnType:"default",position:"right"}]}],subTableConfig:{type:"table",allowMultiSelect:!1,viewBehavior:"pagination",viewPageSize:5,columns:[{title:"\u8FFD\u52A0\u6587\u4EF6\u540D",id:"name",type:"text",tip:"\u8FFD\u52A0\u6587\u4EF6\u540D"},{title:"\u6570\u636E\u91CF",id:"count",type:"text",tip:"\u6570\u636E\u91CF"},{id:"status",title:"\u5BFC\u5165\u72B6\u6001",type:"customized",tip:"\u5BFC\u5165\u72B6\u6001",component:u(ye,{})},{title:"\u521B\u5EFA\u65F6\u95F4",id:"createdAt",type:"date",tip:"\u521B\u5EFA\u65F6\u95F4"},{title:"\u66F4\u6539\u65F6\u95F4",id:"updatedAt",type:"date",tip:"\u66F4\u6539\u65F6\u95F4"},{title:"\u64CD\u4F5C",id:"actions",type:"action"}]},subTablePendingIds:s,onSubTableRowAnimationComplete:(p,t)=>{n(j=>({...j,[p]:(j[p]||[]).filter(A=>A!==t)}))}}),[s,v,d,r]),z=p=>{E(!1),G(!1),H(void 0),p=="refresh"&&(F.current&&(clearTimeout(F.current),F.current=null),ce())};function Q(p){var t,j;if(!Array.isArray(p))return!0;for(const A of p){if(A.data){const N=A.data.find(_=>_.columnId==="status"),w=A.data.find(_=>_.columnId==="description");if(console.log("+++++",N.status==="20"||N.status==="11"||((t=w==null?void 0:w.tableMeta)==null?void 0:t.generateDescriptionStatus)==be.GENERATING),N&&(N.status==="20"||N.status==="11"||((j=w==null?void 0:w.tableMeta)==null?void 0:j.generateDescriptionStatus)==be.GENERATING))return!1}if(Array.isArray(A.children)){for(const N of A.children)if(N.data){const w=N.data.find(_=>_.columnId==="status");if(w&&(w.status==="20"||w.status==="11"))return!1}}}return!0}const ce=async()=>{const p=await Fe();Q(p||[])?F.current&&(clearTimeout(F.current),F.current=null):(F.current&&(clearTimeout(F.current),F.current=null),F.current=setTimeout(()=>{ce()},5e3))};return console.log("-----normalizedStyles",I),O(Ze,{title:r==null?void 0:r.name,description:(r==null?void 0:r.description)||"-",goBack:()=>{var p;(p=e.eventsEmit)==null||p.call(e,"goBack",{})},children:[u(Te,{dataSource:v,ref:y,eventsEmit:$,status:P,styles:{theme:{...fe,colors:{...fe.colors,tableBackground:"#ffffff",tableHeaderText:"#2a2a2a",tableFirstColumnBg:"#ffffff",tableLastColumnBg:"#ffffff"}},mode:"light"},CustomComponents:{EmptyData:()=>u(zt,{dbInfo:r,setDrawerTitle:C,setDrawerVisible:E,getBtnDisabled:m}),...V},...d=="DataTable"?U:M}),u(At,{drawerTitle:L,drawerVisible:B,handleDrawerClose:z,dbId:l,token:o,url:i,uploadUrl:D,role:a,tableInfo:b}),u(It,{drawerTitle:ne,drawerVisible:q,handleDrawerClose:z,tableInfo:b,optimizeDesc:ee,eventsEmit:$})]})};export{Zt as D,yt as P,Oe as a,me as g};
|