zyjj-web-sdk 1.0.0 → 1.0.1

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/lib/index.js CHANGED
@@ -23049,7 +23049,7 @@ async function Zt(e, t, r, n = !0) {
23049
23049
  });
23050
23050
  });
23051
23051
  }
23052
- const Xt = "/api/v1", w7 = (e) => Zt(`${Xt}/common/user/login`, e, "post"), _7 = (e) => Zt(`${Xt}/common/user/register`, e, "post"), x7 = (e) => Zt(`${Xt}/common/user/reset/password`, e, "post"), QO = (e) => Zt(`${Xt}/common/user/email/token`, { email: e }, "post"), E7 = () => Zt(`${Xt}/user/user/info`, {}, "get", !1), S7 = () => Zt(`${Xt}/user/point/checkin`, {}, "post"), P7 = (e) => Zt(`${Xt}/user/point/exchange/${e}`, {}, "post"), N7 = (e, t) => Zt(`${Xt}/user/point/record/list?page_no=${e}&page_size=${t}`, {}, "get"), I7 = () => Zt(`${Xt}/user/pay/methods`, {}, "get"), j7 = (e, t) => Zt(`${Xt}/user/pay/code`, { id: e, price: t }, "post"), T7 = (e) => Zt(`${Xt}/user/pay/status/${e}`, {}, "get"), $7 = (e) => Zt(`${Xt}/user/point/deducting`, e, "post"), k7 = (e) => Zt(`${Xt}/common/tool/list?page_no=${e.current}&page_size=${e.size}&tag=${e.tag || ""}&name=${e.name || ""}`, {}, "get"), R7 = () => Zt(`${Xt}/common/tool/tags`, {}, "get"), M7 = () => Zt(`${Xt}/user/cloud/tencent/cos`, {}, "get"), A7 = (e) => Zt(`${Xt}/user/task`, e, "post"), D7 = () => Zt(`${Xt}/user/cloud/mqtt/task`, {}, "get"), F7 = () => Zt(`${Xt}/common/material/tags`, {}, "get"), L7 = (e) => Zt(`${Xt}/common/material?page_no=${e.current}&page_size=${e.size}&tag=${e.tag || ""}&name=${e.name || ""}`, {}, "get"), V7 = (e) => Zt(`${Xt}/user/material/${e}`, {}, "get"), z7 = (e) => Zt(`${Xt}/user/material/url`, { key_list: e }, "post"), H7 = (e) => Zt(`${Xt}${e.url}`, e.data, e.method);
23052
+ const Xt = "https://api.zyjj.cc/api/v1", w7 = (e) => Zt(`${Xt}/common/user/login`, e, "post"), _7 = (e) => Zt(`${Xt}/common/user/register`, e, "post"), x7 = (e) => Zt(`${Xt}/common/user/reset/password`, e, "post"), QO = (e) => Zt(`${Xt}/common/user/email/token`, { email: e }, "post"), E7 = () => Zt(`${Xt}/user/user/info`, {}, "get", !1), S7 = () => Zt(`${Xt}/user/point/checkin`, {}, "post"), P7 = (e) => Zt(`${Xt}/user/point/exchange/${e}`, {}, "post"), N7 = (e, t) => Zt(`${Xt}/user/point/record/list?page_no=${e}&page_size=${t}`, {}, "get"), I7 = () => Zt(`${Xt}/user/pay/methods`, {}, "get"), j7 = (e, t) => Zt(`${Xt}/user/pay/code`, { id: e, price: t }, "post"), T7 = (e) => Zt(`${Xt}/user/pay/status/${e}`, {}, "get"), $7 = (e) => Zt(`${Xt}/user/point/deducting`, e, "post"), k7 = (e) => Zt(`${Xt}/common/tool/list?page_no=${e.current}&page_size=${e.size}&tag=${e.tag || ""}&name=${e.name || ""}`, {}, "get"), R7 = () => Zt(`${Xt}/common/tool/tags`, {}, "get"), M7 = () => Zt(`${Xt}/user/cloud/tencent/cos`, {}, "get"), A7 = (e) => Zt(`${Xt}/user/task`, e, "post"), D7 = () => Zt(`${Xt}/user/cloud/mqtt/task`, {}, "get"), F7 = () => Zt(`${Xt}/common/material/tags`, {}, "get"), L7 = (e) => Zt(`${Xt}/common/material?page_no=${e.current}&page_size=${e.size}&tag=${e.tag || ""}&name=${e.name || ""}`, {}, "get"), V7 = (e) => Zt(`${Xt}/user/material/${e}`, {}, "get"), z7 = (e) => Zt(`${Xt}/user/material/url`, { key_list: e }, "post"), H7 = (e) => Zt(`${Xt}${e.url}`, e.data, e.method);
23053
23053
  var Zu;
23054
23054
  (function(e) {
23055
23055
  e[e.Local = 0] = "Local", e[e.Cos = 1] = "Cos";
package/lib/index.umd.cjs CHANGED
@@ -50,7 +50,7 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var Z=R(V,G,L,K,B+"."+G,
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var K0;function J8(){return K0||(K0=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),p=!1,h=!1,g=!1,y=!1,C=!1,b;b=Symbol.for("react.module.reference");function O(J){return!!(typeof J=="string"||typeof J=="function"||J===t||J===i||C||J===n||J===u||J===f||y||J===m||p||h||g||typeof J=="object"&&J!==null&&(J.$$typeof===v||J.$$typeof===d||J.$$typeof===a||J.$$typeof===l||J.$$typeof===c||J.$$typeof===b||J.getModuleId!==void 0))}function w(J){if(typeof J=="object"&&J!==null){var Q=J.$$typeof;switch(Q){case e:var X=J.type;switch(X){case t:case i:case n:case u:case f:return X;default:var ie=X&&X.$$typeof;switch(ie){case o:case l:case c:case v:case d:case a:return ie;default:return Q}}case r:return Q}}}var x=l,E=a,P=e,S=c,k=t,j=v,z=d,A=r,M=i,D=n,I=u,N=f,T=!1,H=!1;function _(J){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(J){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(J){return w(J)===l}function W(J){return w(J)===a}function L(J){return typeof J=="object"&&J!==null&&J.$$typeof===e}function K(J){return w(J)===c}function B(J){return w(J)===t}function V(J){return w(J)===v}function Y(J){return w(J)===d}function q(J){return w(J)===r}function G(J){return w(J)===i}function R(J){return w(J)===n}function Z(J){return w(J)===u}function ue(J){return w(J)===f}_r.ContextConsumer=x,_r.ContextProvider=E,_r.Element=P,_r.ForwardRef=S,_r.Fragment=k,_r.Lazy=j,_r.Memo=z,_r.Portal=A,_r.Profiler=M,_r.StrictMode=D,_r.Suspense=I,_r.SuspenseList=N,_r.isAsyncMode=_,_r.isConcurrentMode=$,_r.isContextConsumer=F,_r.isContextProvider=W,_r.isElement=L,_r.isForwardRef=K,_r.isFragment=B,_r.isLazy=V,_r.isMemo=Y,_r.isPortal=q,_r.isProfiler=G,_r.isStrictMode=R,_r.isSuspense=Z,_r.isSuspenseList=ue,_r.isValidElementType=O,_r.typeOf=w}()),_r}process.env.NODE_ENV==="production"?Rf.exports=X8():Rf.exports=J8();var Q8=Rf.exports;function q0(e){var r=[];return s.Children.forEach(e,function(t){Q8.isFragment(t)&&t.props?r=r.concat(q0(t.props.children)):t!=null&&r.push(t)}),r}var ed=function(){return ed=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ed.apply(this,arguments)},R8=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},e6={size:"small",direction:"horizontal"};function r6(e,r){var t,n=s.useContext(je),i=n.getPrefixCls,a=n.componentConfig,l=n.rtl,o=sr(e,e6,a==null?void 0:a.Space),c=o.className,u=o.style,f=o.children,d=o.size,v=o.direction,m=o.align,p=o.wrap,h=o.split,g=R8(o,["className","style","children","size","direction","align","wrap","split"]),y=i("space"),C=m||(v==="horizontal"?"center":""),b=ee(y,(t={},t[y+"-"+v]=v,t[y+"-align-"+C]=C,t[y+"-wrap"]=p,t[y+"-rtl"]=l,t),c);function O(E){if(lr(E))return E;switch(E){case"mini":return 4;case"small":return 8;case"medium":return 16;case"large":return 24;default:return 8}}var w=q0(f);function x(E){var P,S,k,j,z=w.length===E+1,A=l?"marginLeft":"marginRight";if(typeof d=="string"||typeof d=="number"){var M=O(d);return p?z?{marginBottom:M}:(P={},P[""+A]=M,P.marginBottom=M,P):z?{}:(S={},S[v==="vertical"?"marginBottom":A]=M,S)}if(Ke(d)){var D=O(d[0]),I=O(d[1]);return p?z?{marginBottom:I}:(k={},k[""+A]=D,k.marginBottom=I,k):v==="vertical"?{marginBottom:I}:(j={},j[""+A]=D,j)}}return s.createElement("div",ed({ref:r,className:b,style:u},g),w.map(function(E,P){var S,k=((S=E)===null||S===void 0?void 0:S.key)||P,j=h!=null&&P>0;return s.createElement(s.Fragment,{key:k},j&&s.createElement("div",{className:y+"-item-split"},h),s.createElement("div",{className:y+"-item",style:x(P)},E))}))}var Y0=s.forwardRef(r6);Y0.displayName="Space";const Yt=Y0;function Z0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function X0(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Z0(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z0(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function t6(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=X0(X0({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-filter")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M30 42V22.549a1 1 0 0 1 .463-.844l10.074-6.41A1 1 0 0 0 41 14.45V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6.451a1 1 0 0 0 .463.844l10.074 6.41a1 1 0 0 1 .463.844V37"}))}var rd=s.forwardRef(t6);rd.defaultProps={isIcon:!0},rd.displayName="IconFilter";const n6=rd;var J0={table:"table",header:{operations:function(e){var r=e.selectionNode,t=e.expandNode;return[{name:"expandNode",node:t},{name:"selectionNode",node:r}]},wrapper:"div",thead:"thead",row:"tr",th:"th",cell:"div"},body:{operations:function(e){var r=e.selectionNode,t=e.expandNode;return[{name:"expandNode",node:t},{name:"selectionNode",node:r}]},wrapper:"div",tbody:"tbody",row:"tr",td:"td",cell:"span"}};function ai(e){var r=s.useMemo(function(){return ge(e)?Rg({},J0,e):J0},[e]);return{getHeaderComponentOperations:r.header.operations,getBodyComponentOperations:r.body.operations,ComponentTable:r.table,ComponentHeaderWrapper:r.header.wrapper,ComponentThead:r.header.thead,ComponentHeaderRow:r.header.row,ComponentTh:r.header.th,ComponentHeaderCell:r.header.cell,ComponentBodyWrapper:r.body.wrapper,ComponentTbody:r.body.tbody,ComponentBodyRow:r.body.row,ComponentTd:r.body.td,ComponentBodyCell:r.body.cell}}var Pt=function(){return Pt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Pt.apply(this,arguments)},Wl=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},i6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function a6(e,r){return e==="ascend"?r.Table.sortAscend:e==="descend"?r.Table.sortDescend:r.Table.cancelSort}var o6={bottom:0};function l6(e){var r,t,n,i,a=e.onSort,l=e.onFilter,o=e.onHandleFilter,c=e.onHandleFilterReset,u=e.currentFilters,f=u===void 0?{}:u,d=e.currentSorter,v=e._key,m=e.dataIndex,p=e.title,h=e.sorter,g=e.sortDirections,y=g===void 0?["ascend","descend"]:g,C=e.filters,b=C===void 0?[]:C,O=e.columnFixedStyle,w=e.className,x=e.cellStyle,E=e.headerCellStyle,P=e.rowSpan,S=e.colSpan,k=e.headerCellProps,j=e.prefixCls,z=e.align,A=z===void 0?"left":z,M=e.components,D=e.filterIcon,I=e.filterDropdown,N=e.filterMultiple,T=N===void 0?!0:N,H=e.ellipsis,_=e.filterDropdownProps,$=e.onFilterDropdownVisibleChange,F=e.column,W=e.showSorterTooltip,L=e.index,K=s.useContext(je),B=K.locale,V=K.rtl,Y=v||m||L,q=Wl(gr([],{value:f[Y]||[]}),3),G=q[0],R=q[1],Z=q[2],ue=Wl(s.useState(!1),2),J=ue[0],Q=ue[1],X=Wl(s.useState(!1),2),ie=X[0],ce=X[1],te=h&&Ke(y)&&y.length,fe=te?Ae():void 0;s.useEffect(function(){R(f[Y]||[])},[f,Y]),s.useEffect(function(){G&&G!==Z&&R(G)},[J]);function Ae(){var Me=d&&d.direction;if(!Me||d&&d.field!==Y)return y[0];var We=y.indexOf(Me);if(We<y.length)return y[We+1]}function ae(){G&&(o&&o({onFilter:l,filters:b,dataIndex:Y},Z),se(!1))}function _e(){c({dataIndex:Y}),se(!1)}function se(Me){Q(Me),$&&$(Me)}function de(Me,We){var ye=i6([],Wl(Z),!1);if(T)We?ye=ye.concat(Me):ye.splice(ye.findIndex(function(le){return le===Me}),1);else if(ye.length>0)if(ye[0]!==Me)ye=[Me];else return;else ye=[Me];R(ye)}function be(Me){R(Me||Z),Q(!1),o&&o({filters:b,onFilter:l,dataIndex:Y},Me||Z)}function Ee(){return typeof I=="function"?I({filterKeys:Z,setFilterKeys:function(Me,We){R(Me),We==null||We()},confirm:be}):s.createElement("div",{className:j+"-filters-popup"},s.createElement("div",{className:j+"-filters-list"},b.map(function(Me){var We=Z.findIndex(function(ye){return ye===Me.value})!==-1;return s.createElement("div",{className:j+"-filters-item",key:Me.value},T?s.createElement(Pa,{checked:We,onChange:function(ye){return de(Me.value,ye)}},Me.text):s.createElement(En,{checked:We,onChange:function(ye){return de(Me.value,ye)}},Me.text))})),s.createElement(Yt,{className:j+"-filters-btn"},s.createElement(Or,{onClick:_e,size:"mini"},B.Table.resetText),s.createElement(Or,{onClick:ae,type:"primary",size:"mini"},B.Table.okText)))}var Ce=function(Me){var We;return ee(j+"-sorter-icon",(We={},We[j+"-sorter-icon-active"]=d&&d.direction===Me&&d.field===Y,We))},Oe=ee(j+"-filters",(r={},r[j+"-filters-open"]=J,r[j+"-filters-active"]=G&&G.length,r)),ke=Pt({},O);ge(x)&&(ke=Pt(Pt({},ke),x)),ge(E)&&(ke=Pt(Pt({},ke),E)),A&&A!=="left"&&(ke.textAlign=A);var oe={style:ke,key:v||Y};S&&S>1&&(oe.colSpan=S),P&&P>1&&(oe.rowSpan=P);var we=ai(M),xe=we.ComponentTh,De=we.ComponentHeaderCell,Re=Ke(b)&&b.length>0||typeof I=="function",rr=H&&typeof p=="string"?{title:p}:{},Ie=_&&_.triggerProps,Ve=s.createElement(s.Fragment,null,te?s.createElement(Xr,Pt({content:a6(fe,B),disabled:!W},ge(W)?W:{}),s.createElement("div",{className:j+"-cell-with-sorter",onMouseEnter:function(){ce(!0)},onMouseLeave:function(){ce(!1)},onClick:function(){return a(fe,Y)}},s.createElement("span",Pt({className:j+"-th-item-title"},rr),p),te&&s.createElement("div",{className:ee(j+"-sorter",(t={},t[j+"-sorter-direction-one"]=y.length===1,t))},y.indexOf("ascend")!==-1&&s.createElement("div",{className:Ce("ascend")},s.createElement(lg,null)),y.indexOf("descend")!==-1&&s.createElement("div",{className:Ce("descend")},s.createElement(ig,null))))):s.createElement("span",Pt({className:j+"-th-item-title"},rr),p),Re&&s.createElement(Ea,Pt({popup:Ee,trigger:"click",classNames:"slideDynamicOrigin",position:V?"bl":"br",popupAlign:o6,popupVisible:J,onVisibleChange:se},Ie),s.createElement("div",{className:Oe},D||s.createElement(n6,null)))),nr=ee(j+"-th-item",(n={},n[j+"-cell-text-ellipsis"]=H,n[j+"-cell-mouseenter"]=ie,n[j+"-cell-next-"+fe]=ie&&fe,n[j+"-col-has-sorter"]=te,n[j+"-col-has-filter"]=Re,n));return S!==0&&s.createElement(xe,Pt({className:ee(j+"-th",(i={},i[j+"-col-sorted"]=d&&d.direction&&d.field===Y,i),w)},oe,k),pt(De)?s.createElement(De,{className:nr},Ve):s.createElement(De,{className:nr,column:F},Ve))}var Ri="table_internal_selection_key",ea="table_internal_expand_key",Zt=function(){return Zt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Zt.apply(this,arguments)};function s6(e){var r=e.activeSorters,t=e.expandedRowRender,n=e.expandProps,i=n===void 0?{}:n,a=e.onSort,l=e.onHandleFilter,o=e.onHandleFilterReset,c=e.onHeaderRow,u=e.prefixCls,f=e.currentFilters,d=e.components,v=e.data,m=e.selectedRowKeys,p=e.rowSelection,h=e.allSelectedRowKeys,g=h===void 0?[]:h,y=e.groupColumns,C=e.stickyOffsets,b=e.groupStickyClassNames,O=e.showSorterTooltip,w=s.useContext(je).rtl,x=ai(d),E=x.ComponentThead,P=x.ComponentHeaderRow,S=x.getHeaderComponentOperations,k=p&&(p.type==="checkbox"||!("type"in p)),j=p&&"checkAll"in p?p.checkAll:!0,z=p&&p.type==="radio",A=i.columnTitle,M=s.useMemo(function(){var N=new Set(g);return m.filter(function(T){return N.has(T)})},[m,g]),D=y.length>1?{rowSpan:y.length}:{},I=ee(u+"-th",u+"-operation");return s.createElement(E,null,y.map(function(N,T){var H=c&&c(N,T),_=(k||z)&&T===0&&s.createElement("th",{className:ee(I,u+"-"+(z?"radio":"checkbox"))},s.createElement("div",{className:u+"-th-item"},j&&!z?s.createElement(Pa,{indeterminate:v&&M.length>0&&M.length!==g.length,checked:v&&M.length!==0&&M.length===g.length,disabled:!g.length,onChange:e.onCheckAll}):null,p&&p.columnTitle)),$=t&&s.createElement("th",{className:ee(I,u+"-expand")},A&&s.createElement("div",{className:u+"-th-item"},A)),F=b[T],W=S({selectionNode:_,expandNode:$});return s.createElement(P,Zt({},H,{key:T,className:u+"-tr"}),N.map(function(L,K){var B,V,Y,q,G,R=L.$$columnIndex,Z=0;Array.isArray(R)&&R.length===2?Z=L.fixed==="right"?C[R[1]]:C[R[0]]:typeof R=="number"&&(Z=C[R]||0);var ue=F[K];if(L.$$isOperation){var J=L.node,Q=!0;L.title===Ri&&(J=(V=W.find(function(fe){return fe.name==="selectionNode"}))===null||V===void 0?void 0:V.node,Q=!1),L.title===ea&&(J=(Y=W.find(function(fe){return fe.name==="expandNode"}))===null||Y===void 0?void 0:Y.node,Q=!1);var X=J;return s.cloneElement(X,Zt(Zt(Zt({key:L.key||K},X.props),D),{className:ee(Q?I:"",(q=X==null?void 0:X.props)===null||q===void 0?void 0:q.className,ue),style:Zt(Zt(Zt({},(G=X==null?void 0:X.props)===null||G===void 0?void 0:G.style),L.fixed==="left"?(B={},B[w?"right":"left"]=Z,B):{}),{width:L.width,minWidth:L.width})}))}var ie=L.onHeaderCell&&L.onHeaderCell(L,K),ce=ee(ue,L.className),te={};return L.fixed==="left"&&(te[w?"right":"left"]=Z),L.fixed==="right"&&(te[w?"left":"right"]=Z),s.createElement(l6,Zt({key:L.key,index:K,onSort:a,onHandleFilter:l,onHandleFilterReset:o,currentSorter:r.find(function(fe){return fe.field===L.key}),currentFilters:f,_key:L.key||L.dataIndex||K},L,{column:L,headerCellProps:ie,prefixCls:u,components:d,className:ce,columnFixedStyle:te,showSorterTooltip:O}))}))}))}var td=function(){return td=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},td.apply(this,arguments)},Bl=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},Ul=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function no(e){return lr(e)?e:pt(e)&&e.includes("px")?+e.replace("px",""):e}function u6(e){return e?e.offsetHeight-e.clientHeight:0}function c6(e){return e?e.offsetWidth-e.clientWidth:0}function nd(e,r){return Ke(e[r])&&e[r].length}function f6(e,r){function t(n){if(!n)return[];var i=[];return n.forEach(function(a){if(!ge(a))i.push(a);else{var l=td({},a);l.__ORIGIN_DATA=a;var o=l[r];ge(l)&&o&&Ke(o)&&(l[r]=t(o)),i.push(l)}}),i}return t(e)}function Dr(e){return ge(e)?e.__ORIGIN_DATA:!e||!Ke(e)?e:e.map(function(r){return!ge(r)||!("__ORIGIN_DATA"in r)?r:r.__ORIGIN_DATA})}function d6(e,r,t,n,i,a,l){t===void 0&&(t=[]),n===void 0&&(n=[]);var o=new Set(t),c=new Set(n);function u(f){r?(o.add(i(f)),c.delete(i(f))):o.delete(i(f)),Ke(f[a])&&f[a].forEach(function(d){u(d)})}return l?(u(e),id(e,o,c,i,a)):r?o.add(i(e)):o.delete(i(e)),{selectedRowKeys:Ul([],Bl(o),!1),indeterminateKeys:Ul([],Bl(c),!1)}}function v6(e,r,t,n,i){if(r===void 0&&(r=[]),!i)return{selectedRowKeys:r,indeterminateKeys:[]};var a=new Set(r),l=new Set([]);function o(c){a.add(t(c)),l.delete(t(c)),Ke(c[n])&&c[n].forEach(function(u){o(u)})}return r.forEach(function(c){var u=e.find(function(f){return t(f)===c});!jr(u)&&!Ls(u)&&(o(u),id(u,a,l,t,n))}),{selectedRowKeys:Ul([],Bl(a),!1),indeterminateKeys:Ul([],Bl(l),!1)}}function id(e,r,t,n,i){if(e.__INTERNAL_PARENT){var a=n(e.__INTERNAL_PARENT);if(Ke(e.__INTERNAL_PARENT[i])){var l=e.__INTERNAL_PARENT[i].length,o=0,c=!1;e.__INTERNAL_PARENT[i].forEach(function(u){r.has(n(u))&&(o+=1),t.has(n(u))&&(t.add(a),c=!0)}),l===o?(r.add(a),t.delete(a)):o>0&&l>o?(r.delete(a),t.add(a)):o===0&&(r.delete(a),c||t.delete(a))}id(e.__INTERNAL_PARENT,r,t,n,i)}}function ad(e){return typeof e=="function"?e:typeof e=="object"&&typeof e.compare=="function"?e.compare:null}function od(e){if(typeof e=="object"&&typeof e.multiple=="number")return e.multiple}var fn=function(){return fn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},fn.apply(this,arguments)},p6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function m6(e){return e&&!s.isValidElement(e)&&ge(e)}function h6(e){var r,t,n=e.components,i=e.InnerComponentTd,a=e.column,l=e.columnIndex,o=e.prefixCls,c=e.stickyClassName,u=e.stickyOffset,f=e.currentSorter,d=e.virtualized,v=e.record,m=e.trIndex,p=e.level,h=e.placeholder,g=e.indentSize,y=e.renderExpandIcon,C=e.rowKey,b=e.recordHaveChildren,O=e.haveTreeData,w=s.useContext(je).rtl,x=ai(n).ComponentBodyCell,E=ee(o+"-td",c,(r={},r[o+"-col-sorted"]=f&&f.direction&&f.field===a.dataIndex,r),a.className),P={},S,k,j={};a.fixed==="left"&&(j[w?"right":"left"]=u),a.fixed==="right"&&(j[w?"left":"right"]=u),ge(a.cellStyle)&&(j=fn(fn({},j),a.cellStyle)),ge(a.bodyCellStyle)&&(j=fn(fn({},j),a.bodyCellStyle)),a.align&&(j.textAlign=a.align),d&&a.width&&(j.width=a.width,j.minWidth=a.width,j.maxWidth=a.width);var z=a.onCell?a.onCell(v,m):{onHandleSave:function(){}},A=z.onHandleSave,M=p6(z,["onHandleSave"]),D=s.useMemo(function(){return a.render&&a.render(Nr(v,a.dataIndex),Dr(v),m)},[v,a,m]);if(m6(D)&&(P=D.props,S=P.rowSpan,k=P.colSpan,D=D.children),S===0||k===0)return null;var I=Nr(v,a.dataIndex),N=a.render?D:I===void 0||typeof I=="string"&&I.trim()===""||I===null?a.placeholder===void 0?h:a.placeholder:I,T=a.ellipsis&&typeof N=="string"?{title:N}:{},H=O&&a.$$isFirstColumn,_=H&&b,$=H&&p>0?g*p:0;H&&!b&&($+=20);var F=s.createElement(s.Fragment,null,_?s.createElement("span",{className:o+"-cell-expand-icon"},y(v,C)):null,pt(x)?s.createElement(x,{className:o+"-cell-wrap-value"},N):s.createElement(x,fn({rowData:Dr(v),className:o+"-cell-wrap-value",column:a,onHandleSave:A},M),N));return s.createElement(i,fn({className:E,key:a.key||a.dataIndex||l,style:j},ma(M,["onClick","onDoubleClick","onContextMenu","onMouseOver","onMouseEnter","onMouseLeave","onMouseMove","onMouseDown","onMouseUp"]),P),s.createElement("div",fn({className:ee(o+"-cell",(t={},t[o+"-cell-text-ellipsis"]=a.ellipsis,t))},T),$?s.createElement("span",{className:o+"-cell-indent",style:{paddingLeft:$}}):null,F))}const g6=s.memo(h6);var Rr=function(){return Rr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Rr.apply(this,arguments)},y6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function b6(e,r){var t,n=e.expandedRowRender,i=e.onClickExpandBtn,a=e.columns,l=e.components,o=e.onCheck,c=e.onCheckRadio,u=e.prefixCls,f=e.selectedRowKeys,d=e.indeterminateKeys,v=e.rowClassName,m=e.onRow,p=e.rowSelection,h=e.indentSize,g=h===void 0?16:h,y=e.activeSorters,C=e.virtualized,b=e.stickyOffsets,O=e.stickyClassNames,w=e.getRowKey,x=e.placeholder,E=e.expandProps,P=E===void 0?{strictTreeData:!0}:E,S=e.data,k=e.expandedRowKeys,j=e.childrenColumnName,z=e.record,A=e.index,M=e.type,D=e.shouldRowExpand,I=e.level,N=s.useContext(je).rtl,T=Dr(z),H=y6(m&&m(T,A)||{},[]),_=w(z),$=M==="radio"?f.slice(0,1):f,F=_||A,W=$.indexOf(_)>-1,L=k.indexOf(_)>-1,K=d.indexOf(_)>-1,B=ee(u+"-tr",(t={},t[u+"-row-checked"]=W,t[u+"-row-expanded"]=L,t),v&&v(T,A)),V=p&&typeof p.checkboxProps=="function"?p.checkboxProps(T):{},Y=ee(u+"-td",u+"-operation"),q=function(xe){var De;return ee(Y,u+"-"+xe,(De={},De[u+"-selection-col"]=C&&M==="checkbox"||M==="radio",De[u+"-expand-icon-col"]=C&&n,De))};function G(xe){return P.strictTreeData?Ke(xe[j])&&xe[j].length:xe[j]!==void 0}function R(){return S.find(function(xe){return G(xe)})}var Z=D(z,A),ue=G(z),J=R()&&!n,Q=J&&ue,X=P.expandRowByClick,ie=X&&(Z||Q)?{onClick:function(xe){i(_),H&&H.onClick&&H.onClick(xe)}}:{},ce=ai(l),te=ce.ComponentBodyRow,fe=ce.ComponentTd,Ae=ce.getBodyComponentOperations,ae=C?"div":te,_e=C?"div":fe,se=Rr(Rr({className:B,key:F},H),ie),de=pt(te)?se:Rr(Rr({},se),{record:z,index:A});function be(xe,De){var Re=P.icon,rr=!!~k.indexOf(De),Ie={onClick:function(Ve){Ve.stopPropagation(),i(De)}};return typeof Re=="function"?Re(Rr({expanded:rr,record:xe},Ie)):s.createElement("button",Rr({},Ie,{type:"button"}),rr?s.createElement(Ly,null):s.createElement(Wc,null))}var Ee=n&&s.createElement(_e,{className:q("expand-icon-cell")},Z&&be(z,_)),Ce=p&&p.renderCell,Oe,ke=s.createElement(Pa,Rr({value:_,onChange:function(xe){return o(xe,z)},checked:W,indeterminate:K},V)),oe=s.createElement(En,Rr({onChange:function(){return c(_,z)},value:_,checked:W},V));M==="checkbox"&&(Oe=s.createElement(_e,{className:q("checkbox")},Ce?Ce(ke,W,T):ke)),M==="radio"&&(Oe=s.createElement(_e,{className:q("radio")},Ce?Ce(oe,W,T):oe));var we=Ae({selectionNode:Oe,expandNode:Ee});return s.createElement(ae,Rr({},de,{ref:r}),a.map(function(xe,De){var Re,rr,Ie,Ve,nr,Me=b[De],We=O[De];if(xe.$$isOperation){var ye=xe.node,le=!0;xe.title===Ri&&(ye=(rr=we.find(function(Se){return Se.name==="selectionNode"}))===null||rr===void 0?void 0:rr.node,le=!1),xe.title===ea&&(ye=(Ie=we.find(function(Se){return Se.name==="expandNode"}))===null||Ie===void 0?void 0:Ie.node,le=!1);var $e=typeof ye=="function"?ye(z):ye;return s.cloneElement($e,Rr(Rr({key:xe.key||De},$e.props),{className:ee(le?Y:"",(Ve=$e==null?void 0:$e.props)===null||Ve===void 0?void 0:Ve.className,We),style:Rr(Rr(Rr({},(nr=$e==null?void 0:$e.props)===null||nr===void 0?void 0:nr.style),xe.fixed==="left"?(Re={},Re[N?"right":"left"]=Me,Re):{}),{width:xe.width,minWidth:xe.width})}))}return s.createElement(g6,{key:De,prefixCls:u,virtualized:C,components:l,currentSorter:y.find(function(Se){return Se.field===xe.key}),placeholder:x,indentSize:g,stickyClassName:We,stickyOffset:Me,InnerComponentTd:_e,column:xe,columnIndex:De,record:z,trIndex:A,level:I,haveTreeData:J,recordHaveChildren:ue,rowKey:_,renderExpandIcon:be})}))}var C6=s.forwardRef(b6);const Q0=C6;var Xt=function(){return Xt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Xt.apply(this,arguments)},w6=s.forwardRef(function(e,r){var t=e.record,n=e.index,i=e.virtualized,a=e.tbodyProps,l=a.prefixCls,o=a.columns,c=a.indentSize,u=c===void 0?16:c,f=a.childrenColumnName,d=f===void 0?"children":f,v=a.expandProps,m=v===void 0?{}:v,p=a.rowSelection,h=a.hasFixedColumn,g=a.tableViewWidth,y=a.getRowKey,C=a.expandedRowKeys,b=a.expandedRowRender,O;p&&"type"in p?O=p.type:p&&!("type"in p)&&(O="checkbox");var w=b&&function(A,M){return b(Dr(A),M)},x=function(A){return Ke(A[d])&&A[d].length},E=function(A,M){return"rowExpandable"in m&&typeof m.rowExpandable=="function"?m.rowExpandable(A):w&&w(A,M)!==null},P=function(A,M){var D=[],I=Xt(Xt({},a),{type:O,shouldRowExpand:E});D.push(s.createElement(Q0,Xt({ref:r,key:y(A)},I,{record:A,level:0,index:M})));var N=function(T,H,_){_===void 0&&(_=0),Ke(T)&&T.length&&T.forEach(function($,F){C.indexOf(H)!==-1&&(D.push(s.createElement(Q0,Xt({},I,{key:y($),record:$,level:_+1,index:F}))),x($)&&N($[d],y($),_+1))})};return w||N(A[d],y(A)),D},S=y(t),k=E(t,n)&&C.indexOf(S)!==-1,j=i?"div":"tr",z=i?"div":"td";return s.createElement(s.Fragment,{key:S},P(t,n),k&&s.createElement(j,{key:S+"-expanded",className:ee(l+"-tr",l+"-expand-content")},s.createElement(z,{className:ee(l+"-td"),style:{paddingLeft:u},colSpan:o.length},h?s.createElement("div",{className:l+"-expand-fixed-row",style:{width:g}},w==null?void 0:w(t,n)):w==null?void 0:w(t,n))))});function O6(e){var r=e.data,t=e.columns,n=e.prefixCls,i=e.components,a=e.noDataElement,l=e.scroll,o=e.tableViewWidth,c=e.virtualized,u=e.virtualListProps,f=e.getRowKey,d=e.saveVirtualListRef,v=ai(i).ComponentTbody,m={},p={};l&&(l.x&&(typeof l.x=="number"||typeof l.x=="string")&&(m={width:l.x}),l.y&&(typeof l.y=="number"||typeof l.y=="string")&&(p={maxHeight:l.y}));var h={className:n+"-no-data"};o&&(h.className=n+"-no-data "+n+"-expand-fixed-row",h.style={width:o});var g=s.createElement("tr",{className:ee(n+"-tr",n+"-empty-row")},s.createElement("td",{className:n+"-td",colSpan:t.length},s.createElement("div",Xt({},h),a))),y=function(C,b){return s.createElement(w6,{key:b,record:C,index:b,virtualized:c,tbodyProps:e})};return c?r.length>0?s.createElement(Pu,Xt({data:r,height:p.maxHeight,isStaticItemHeight:!1,outerStyle:Xt(Xt({},m),{minWidth:"100%",overflow:"visible"}),innerStyle:{right:"auto",minWidth:"100%"},className:n+"-body",ref:function(C){return d(C)},itemKey:f},u),y):s.createElement("div",{className:n+"-body"},s.createElement("table",null,s.createElement("tbody",null,g))):s.createElement(v,null,r.length>0?r.map(y):g)}var R0=s.createContext({});function x6(e){var r=e.summary,t=e.data,n=e.prefixCls,i=e.columns,a=e.stickyOffsets,l=e.stickyClassNames;return s.createElement("tfoot",{className:n+"-tfoot"},s.createElement(R0.Provider,{value:{columns:i,stickyOffsets:a,stickyClassNames:l,prefixCls:n}},r(Dr(t))))}function ld(e){return typeof e=="number"||typeof e=="string"?{width:e}:{}}function Gl(e){var r=s.useRef(),t=e.prefixCls,n=e.columns,i=e.columnWidths,a=e.producer,l=e.expandedRowKeys,o=e.data,c=e.onSetColumnWidths;s.useEffect(function(){if(a&&r.current){var f=Array.from(r.current.querySelectorAll("col")||[]).filter(function(v){return!v.classList.contains(t+"-expand-icon-col")&&!v.classList.contains(t+"-selection-col")}),d=f.map(function(v){var m=v.getBoundingClientRect().width;return m});c(d)}},[a,c,t,l,o,n]);var u=0;return s.createElement("colgroup",{ref:r},n.map(function(f,d){var v;if(f.title===ea)return s.createElement("col",{key:ea,className:t+"-expand-icon-col",style:ld(f.width)});if(f.title===Ri)return s.createElement("col",{key:Ri,className:t+"-selection-col",style:ld(f.width)});var m;return f.width?m=f.width:!a&&i&&(m=i[u]),u++,s.createElement("col",{key:(v=f.key)!==null&&v!==void 0?v:d,style:ld(m)})}))}var _6=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function E6(e,r,t){var n=e.defaultExpandedRowKeys,i=e.defaultExpandAllRows,a=e.expandedRowRender,l=e.onExpand,o=e.onExpandedRowsChange,c=e.childrenColumnName,u=c===void 0?"children":c,f=e.expandProps,d=_6(s.useState(h()),2),v=d[0],m=d[1],p=e.expandedRowKeys||v;function h(){var C=[];return e.expandedRowKeys?C=e.expandedRowKeys:n?C=n:i&&(C=r.map(function(b,O){var w=Dr(b);return f&&"rowExpandable"in f&&typeof f.rowExpandable=="function"?f.rowExpandable(w)&&t(b):typeof a=="function"?a(w,O)&&t(b):nd(b,u)&&t(b)}).filter(function(b){return b})),C}function g(C){var b=p.indexOf(C)===-1,O=b?p.concat(C):p.filter(function(x){return C!==x}),w=r.filter(function(x){return O.indexOf(t(x))!==-1}).map(function(x){return t(x)});m(w),y(C,b),o&&o(w)}function y(C,b){l&&l(Dr(r.find(function(O){return t(O)===C})),b)}return[p,g]}var sd=function(){return sd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},sd.apply(this,arguments)},Kl=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},S6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function eC(e){return S6([],Kl(new Set(e)),!1)}function P6(e,r,t,n){var i=e.rowSelection,a=e.childrenColumnName,l=i==null?void 0:i.selectedRowKeys,o=i==null?void 0:i.onSelectAll,c=i==null?void 0:i.onSelect,u=i==null?void 0:i.onChange,f=i==null?void 0:i.pureKeys,d=typeof(i==null?void 0:i.checkStrictly)=="boolean"?!i.checkStrictly:!1,v=i==null?void 0:i.preserveSelectedRowKeys;function m(){var H=[],_=[],$=function(W){Ke(W)&&W.length&&W.forEach(function(L){var K=n(L),B=i&&typeof i.checkboxProps=="function"?i.checkboxProps(Dr(L)):{};B.disabled||H.push(K),nd(L,e.childrenColumnName)&&$(L[e.childrenColumnName])})};$(r);var F=function(W,L){Ke(W)&&W.length&&W.forEach(function(K){if(L&&d&&(K.__INTERNAL_PARENT=L),_.push(K),nd(K,e.childrenColumnName)){var B=sd({},K);F(K[e.childrenColumnName],B)}})};return F(t,void 0),{allSelectedRowKeys:H,flattenData:_}}var p=m(),h=p.allSelectedRowKeys,g=p.flattenData,y=Kl(s.useState([]),2),C=y[0],b=y[1],O=Kl(s.useState([]),2),w=O[0],x=O[1],E=v6(g,eC(l||C),n,a,d),P=d&&!l?C:E.selectedRowKeys,S=d&&!l?w:E.indeterminateKeys,k=Kl(s.useState(f?[]:A(P)),2),j=k[0],z=k[1];function A(H,_){var $=_?j.concat(g):g,F=new Map($.map(function(W){return[n(W),W]}));return H.map(function(W){return F.get(W)}).filter(function(W){return W})}var M=new Set(g.map(function(H){return n(H)}));function D(H){return v?H:H.filter(function(_){return M.has(_)})}function I(H){var _=[],$=[];if(H)_=D(eC(P.concat(h)));else{var F=new Set(h);_=D(P.filter(function(L){return!F.has(L)}))}f||($=A(_,!0));var W=Dr($);b(_),z($),x([]),u&&u(_,W),o&&o(H,W)}function N(H,_){var $=d6(_,H,P,w,n,a,d),F=$.selectedRowKeys,W=$.indeterminateKeys,L=D(F),K=A(L,!0),B=Dr(K);b(L),z(K),x(W),c&&c(H,Dr(_),B),u&&u(L,B)}function T(H,_){var $=[g.find(function(W){return n(W)===H})],F=Dr($);b([H]),c&&c(!0,Dr(_),F),u&&u([H],F)}return{selectedRowKeys:P,indeterminateKeys:S,onCheckAll:I,onCheck:N,onCheckRadio:T,setSelectedRowKeys:b,allSelectedRowKeys:h,flattenData:g}}var N6=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},I6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function j6(e){var r=e.map(function(i){return no(i.width)}),t=e.map(function(i){return i.fixed}),n=s.useMemo(function(){return e.map(function(i){var a=0;return i.fixed==="left"&&e.some(function(l){if(l.fixed==="left"){if(l.key===i.key)return!0;var o=l.$$isOperation?no(l.width)||40:no(l.width);return a+=o,!1}return!1}),i.fixed==="right"&&I6([],N6(e),!1).reverse().some(function(l){if(l.fixed==="right"){if(l.key===i.key)return!0;var o=l.$$isOperation?no(l.width)||40:no(l.width);return a+=o,!1}return!1}),a})},[r.join("-"),t.join("-")]);return n}function T6(e,r,t){var n=r.map(function(o){return o.fixed});function i(o,c){var u;return ee((u={},u[t+"-col-fixed-left"]=o.fixed==="left",u[t+"-col-fixed-right"]=o.fixed==="right",u[t+"-col-fixed-left-last"]=o.fixed==="left"&&(ge(r[c+1])?r[c+1].fixed!=="left":!0),u[t+"-col-fixed-right-first"]=o.fixed==="right"&&(ge(r[c-1])?r[c-1].fixed!=="right":!0),u))}var a=s.useMemo(function(){return r.map(function(o,c){return i(o,c)})},[n.join("-")]),l=s.useMemo(function(){return e.map(function(o){return o.map(function(c,u){var f=u,d=c.$$columnIndex;return Array.isArray(d)&&d.length===2?f=c.fixed==="right"?d[0]:d[1]:typeof d=="number"&&(f=d),i(c,f)})})},[e.map(function(o){return"|"+o.map(function(c){return c.fixed||"undefined"}).join("-")+"|"}).join("_")]);return[l,a]}var Jr=function(){return Jr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Jr.apply(this,arguments)},$6=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},k6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function rC(e,r){var t=[];function n(i){i&&i.length>0&&i.forEach(function(a){a[r]?n(a[r]):t.push(Jr(Jr({},a),{key:a.key||a.dataIndex}))})}return n(e),t}function tC(e,r){var t=0;return e&&e.length>0&&e.forEach(function(n){var i=tC(n[r],r)+1;t=Math.max(i,t)}),t}function M6(e){var r=e.components,t=e.rowSelection,n=e.expandedRowRender,i=e.expandProps,a=i===void 0?{}:i,l=e.columns,o=e.childrenColumnName,c=s.useMemo(function(){return l||[]},[l]),u=s.useMemo(function(){return rC(c,o)},[c,o]),f=t&&t.type==="checkbox"||t&&!("type"in t),d=t&&t.type==="radio",v=a.width,m=!!n,p=f||d,h=ai(r),g=h.getHeaderComponentOperations,y=h.getBodyComponentOperations,C=s.useMemo(function(){return g({selectionNode:p?"holder_node":"",expandNode:m?"holder_node":""})},[p,m,g]),b=s.useMemo(function(){return y({selectionNode:p?"holder_node":"",expandNode:m?"holder_node":""})},[p,m,y]),O=t&&t.fixed,w=t&&t.columnWidth,x=s.useCallback(function(k,j,z){var A={},M=[];k.forEach(function(N,T){var H=Jr({},N);(!("key"in N)||typeof N.key>"u")&&(H.key=H.dataIndex||T),T===0?(H.$$isFirstColumn=!0,H.fixed==="left"&&(A.fixed=H.fixed)):H.$$isFirstColumn=!1,M.push(H)});var D=m&&{key:ea,title:ea,width:v,$$isOperation:!0},I=p&&{key:Ri,title:Ri,width:w,$$isOperation:!0};return O&&(A.fixed="left"),(typeof z!="number"||z===0)&&k6([],$6(j),!1).reverse().forEach(function(N,T){if(N.node){var H=C.filter(function(_){return _.node}).length-T-1;N.name==="expandNode"?M.unshift(Jr(Jr(Jr({},D),A),{$$columnIndex:H})):N.name==="selectionNode"?M.unshift(Jr(Jr(Jr({},I),A),{$$columnIndex:H})):M.unshift(Jr(Jr(Jr({},N),A),{title:N.name,key:N.name,$$isOperation:!0,width:N.width||40,$$columnIndex:H}))}}),M},[v,m,p,w,O,C]),E=s.useMemo(function(){return x(u,b)},[u,x,b]),P=s.useMemo(function(){return tC(c,o)},[c,o]),S=s.useMemo(function(){var k=Array.isArray(C)?C.filter(function(D){return D.node}).length:0;if(P===1){var j=c.map(function(D,I){return Jr(Jr({},D),{$$columnIndex:I+k})});return[x(j,C,0)]}var z=k,A=[],M=function(D,I){I===void 0&&(I=0),A[I]=A[I]||[],D.forEach(function(N){var T=Jr({},N);T[o]?(T.colSpan=rC(N[o],o).length,T.$$columnIndex=[z],A[I].push(T),M(T[o],I+1),T.$$columnIndex.push(z-1)):(T.rowSpan=P-I,T.$$columnIndex=z++,A[I].push(T))}),A[I]=x(A[I],C,I)};return M(c),A},[c,o,P,x,C]);return[S,E]}var ql=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},ud=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function A6(e,r){var t=ql(s.useState(r),2),n=t[0],i=t[1],a=ql(s.useState({}),2),l=a[0],o=a[1],c=s.useRef(e),u=s.useCallback(function(v){var m=v.field,p=v.direction;return n.find(function(h){return h.field===m})?p?n.map(function(h){return h.field===m?v:h}):n.filter(function(h){return h.field!==m}):p?!lr(v.priority)||n.find(function(h){return!lr(h.priority)})?[v]:ud(ud([],ql(n),!1),[v],!1):ud([],ql(n),!1)},[n]),f=s.useCallback(function(v){var m=v.filter(function(h){return"sortOrder"in h}),p=[];return m.forEach(function(h){var g=od(h.sorter),y=h.sortOrder,C={field:h.key,direction:y,sorterFn:ad(h.sorter),priority:g};y?lr(g)?p.every(function(b){return lr(b.priority)||!b.direction})&&p.push(C):p.every(function(b){return!b.direction})?p.push(C):p=[C]:p.push(C)}),p},[]),d=s.useCallback(function(v,m){var p=f(e);p.length||(i(m),o(v))},[e,f,i,o]);return Wi(function(){var v=c.current,m=f(v),p=f(e),h=m.map(function(y){return y.field}),g=p.filter(function(y){var C=m.find(function(b){var O=b.field,w=b.direction;return y.field===O&&y.direction!==w});return C?!0:!h.includes(y.field)});g&&g.length&&(i(p),o({})),c.current=e},[e,f,u,o,i]),{currentSorter:l,activeSorters:n,getNextActiveSorters:u,updateStateSorters:d}}var Fr=function(){return Fr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Fr.apply(this,arguments)},dn=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},D6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},F6=[],L6=[],V6={showHeader:!0,border:!0,hover:!0,rowKey:"key",pagePosition:"br",childrenColumnName:"children",indentSize:15,showSorterTooltip:!0};function z6(e,r){var t,n,i,a,l=s.useContext(je),o=l.getPrefixCls,c=l.loadingElement,u=l.size,f=l.tablePagination,d=l.renderEmpty,v=l.componentConfig,m=l.rtl,p=sr(e,V6,v==null?void 0:v.Table),h=sr(ge(e==null?void 0:e.pagination)?e==null?void 0:e.pagination:{},ge((i=v==null?void 0:v.Table)===null||i===void 0?void 0:i.pagination)?(a=v==null?void 0:v.Table)===null||a===void 0?void 0:a.pagination:{},f||{}),g=p.style,y=p.className,C=p.components,b=p.border,O=p.borderCell,w=p.columns,x=w===void 0?L6:w,E=p.data,P=E===void 0?F6:E,S=p.scroll,k=p.noDataElement,j=p.showHeader,z=p.stripe,A=p.hover,M=p.pagination,D=p.onChange,I=p.pagePosition,N=p.childrenColumnName,T=p.indentSize,H=p.rowSelection,_=p.tableLayoutFixed,$=p.footer,F=p.virtualized,W=p.renderPagination,L=p.summary,K=p.rowKey,B=s.useMemo(function(){return f6(P,N)},[P,N]),V=o("table"),Y=p.size||(["default","middle","small"].indexOf(u)>-1?u:"default"),q=s.useRef(null),G=s.useRef(null),R=s.useRef(null),Z=s.useRef(null),ue=s.useRef(null),J=s.useRef(null),Q=s.useRef(0),X=s.useRef(!1),ie=dn(M6(p),2),ce=ie[0],te=ie[1],fe=Lr(),Ae=fe.currentFilters,ae=fe.defaultSorters,_e=dn(s.useState(1),2),se=_e[0],de=_e[1],be=dn(s.useState(h.pageSize||h.defaultPageSize||10),2),Ee=be[0],Ce=be[1],Oe=dn(s.useState(Ae),2),ke=Oe[0],oe=Oe[1],we=dn(s.useState(0),2),xe=we[0],De=we[1],Re=dn(s.useState([]),2),rr=Re[0],Ie=Re[1],Ve=j6(te),nr=dn(T6(ce,te,V),2),Me=nr[0],We=nr[1],ye=A6(te,ae),le=ye.currentSorter,$e=ye.activeSorters,Se=ye.getNextActiveSorters,Xe=ye.updateStateSorters,Be=ai(C),Ye=Be.ComponentTable,ir=Be.ComponentBodyWrapper,yr=Be.ComponentHeaderWrapper,fr=s.useMemo(function(){return typeof K=="function"?function(ve){return K(Dr(ve))}:function(ve){return ve[K]}},[K]);function Lr(){var ve={},Te=[];return te.forEach(function(Fe){var Qe=Fe.key;if(Fe.defaultFilters&&(ve[Qe]=Fe.defaultFilters),Fe.filteredValue&&(ve[Qe]=Fe.filteredValue),"defaultSortOrder"in Fe||"sortOrder"in Fe){var dr=od(Fe.sorter),br="sortOrder"in Fe?Fe.sortOrder:Fe.defaultSortOrder,Sr={field:Qe,direction:br,sorterFn:ad(Fe.sorter),priority:dr};br?lr(dr)?Te.every(function(et){return lr(et.priority)||!et.direction})&&Te.push(Sr):Te.every(function(et){return!et.direction})?Te.push(Sr):Te=[Sr]:Te.push(Sr)}}),{currentFilters:ve,defaultSorters:Te}}var Br=s.useMemo(function(){var ve=te.filter(function(Fe){return"filteredValue"in Fe}),Te={};return ve.length&&ve.forEach(function(Fe,Qe){var dr=Fe.key||Fe.dataIndex||Qe;dr!==void 0&&(Te[dr]=Fe.filteredValue)}),Te},[te]),Ir=s.useMemo(function(){return Object.keys(Br).length?Br:ke},[ke,Br]);function at(ve,Te){var Fe=Tw(Te);if(Fe){var Qe={direction:ve,field:Te,sorterFn:ad(Fe.sorter),priority:od(Fe.sorter)},dr=Se(Qe);Xe(Qe,dr);var br=ne(Qe,dr,Ir),Sr=ze(br);D&&D(Ne(br),Qe,Ir,{currentData:Dr(Sr),currentAllData:Dr(br),action:"sort"})}}function Ur(ve){var Te=function(Qe,dr){return function(br,Sr){var et=Qe(br,Sr);return dr==="descend"?-et:et}},Fe=D6([],dn(ve),!1);return Fe.sort(function(Qe,dr){return dr.priority-Qe.priority}),function(Qe,dr){for(var br=0,Sr=Fe.length;br<Sr;br++){var et=Fe[br],rs=et.sorterFn,mv=et.direction;if(typeof rs=="function"){var Hw=Te(rs,mv)(Qe,dr);if(Hw!==0)return Hw}}return 0}}function U(ve,Te){var Fe,Qe=Fr(Fr({},Ir),(Fe={},Fe[ve.dataIndex]=Te,Fe)),dr=Fr(Fr({},Qe),Br);if(Ke(Te)&&Te.length){oe(dr);var br=ne(le,$e,Qe),Sr=ze(br);D&&D(Ne(br),$e.length===1?$e[0]:$e,Qe,{currentData:Dr(Sr),currentAllData:Dr(br),action:"filter"})}else Ke(Te)&&!Te.length&&me(ve)}function me(ve){var Te=ve.dataIndex,Fe=Fr({},Ir);delete Fe[Te],oe(Fe);var Qe=ne(le,$e,Fe),dr=ze(Qe);D&&D(Ne(Qe),$e.length===1?$e[0]:$e,Fe,{currentData:Dr(dr),currentAllData:Dr(Qe),action:"filter"})}var Pe=!!te.find(function(ve){return ve.fixed==="left"}),Ue=!!te.find(function(ve){return ve.fixed==="right"}),tr=Pe||Ue;function ne(ve,Te,Fe){var Qe=(B||[]).slice();Object.keys(Fe).forEach(function(br){if(Fe[br]&&Fe[br].length){var Sr=Tw(br);Sr&&typeof Sr.onFilter=="function"&&(Qe=Qe.filter(function(et){return Fe[br].reduce(function(rs,mv){return rs||Sr.onFilter(mv,et)},!1)}))}});var dr=function(br){return br.slice().sort(Ur(Te)).map(function(Sr){var et;return Ke(Sr[N])?Fr(Fr({},Sr),(et={},et[N]=dr(Sr[N]),et)):Sr})};return ve.direction&&typeof ve.sorterFn=="function"||Te.length?dr(Qe):Qe}var he=ne(le,$e,Ir);function Ne(ve){ve===void 0&&(ve=he);var Te=h.pageSize||Ee||10,Fe=Y==="middle"?"default":Y,Qe="top";I==="tl"||I==="bl"?Qe="bottom":Qe="top";var dr=Ke(ve)?ve.length:0,br=Math.ceil(dr/Te)<se?1:se;br!==se&&de(br);var Sr={size:Fe,total:dr,pageSize:Te,current:br,selectProps:{triggerProps:{position:Qe}}};return typeof M=="object"&&M.selectProps&&(Sr.selectProps=Fr(Fr({},Sr.selectProps),M.selectProps)),ge(M)&&(Sr=Fr(Fr({},Sr),M)),ge(h)&&(Sr=Fr(Fr({},Sr),h)),Sr.onChange=ZW,Sr}var qe=Ne(),Je=ze();function ze(ve,Te){ve===void 0&&(ve=he),Te===void 0&&(Te=qe);var Fe=Te.current,Qe=Fe===void 0?0:Fe,dr=Te.pageSize,br=dr===void 0?10:dr;return M===!1||ge(M)&&P.length<=br?ve:ve.slice((Qe-1)*br,Qe*br)}var or=rm(Le,100),Er=!!(S&&S.y),qr=L==null?void 0:L(Dr(he)),cr=L&&s.isValidElement(qr)&&qr.props.fixed,It=Er&&cr;Cn(function(){Le(),Pr(window,"resize",or);var ve=q.current,Te=G.current,Fe=R.current;Te&&Pr(Te,"scroll",na);var Qe=ve&&ve.parentNode;return ve&&Qe&&Pr(Qe,"scroll",na),Fe&&Pr(Fe,"scroll",na),function(){$r(window,"resize",or),Te&&$r(Te,"scroll",na),Qe&&$r(Qe,"scroll",na),Fe&&$r(Fe,"scroll",na)}},[Pe,Ue,S==null?void 0:S.x,S==null?void 0:S.y,te.length,P]),Wi(function(){var ve=Ne(P),Te=ve.total,Fe=ve.pageSize,Qe=Math.ceil(Te/Fe);Qe<se&&de(1)},[P==null?void 0:P.length]),Wi(function(){Gr()},[P,Pe,Ue,m]),s.useImperativeHandle(r,function(){return{getRootDomElement:Ct,scrollIntoView:function(ve){ue.current&&ue.current.scrollTo({key:ve})}}});function Ct(){return Z.current}function Le(){Gr();var ve=Ct();if(ve&&(tr||S&&S.x)){var Te=ve.querySelector("."+V+"-body")||ve.querySelector("."+V+"-content-inner"),Fe=Te.getBoundingClientRect().width;De(Fe)}}var pr=s.useCallback(Vo(function(){var ve=Z.current,Te=Er?G.current:J.current&&J.current.parentNode;if(Te){var Fe=m?-Te.scrollLeft:Te.scrollLeft,Qe=Fe===0,dr=Fe+1>=Te.children[0].getBoundingClientRect().width-Te.getBoundingClientRect().width;Qe&&dr?ta(ve.classList,V+"-scroll-position-both"):Qe?ta(ve.classList,V+"-scroll-position-"+(m?"right":"left")):dr?ta(ve.classList,V+"-scroll-position-"+(m?"left":"right")):ta(ve.classList,V+"-scroll-position-middle")}else ve&&pn(ve.classList)},100),[Z.current,G.current,Er,m]);function Gr(){if(tr||S&&ge(S)&&S.x){var ve=Z.current;ve&&(Pe&&Yr(ve.classList,V+"-has-fixed-col-left"),Ue&&Yr(ve.classList,V+"-has-fixed-col-right")),pr()}}function Yr(ve,Te){ve.contains(Te)||ve.add(Te)}function pn(ve){ve.remove(V+"-scroll-position-both"),ve.remove(V+"-scroll-position-left"),ve.remove(V+"-scroll-position-right"),ve.remove(V+"-scroll-position-middle")}function ta(ve,Te){ve.contains(Te)||(pn(ve),ve.add(Te))}var Qt=P6(p,Je,B,fr),po=Qt.selectedRowKeys,WW=Qt.indeterminateKeys,BW=Qt.onCheckAll,UW=Qt.onCheck,GW=Qt.onCheckRadio,KW=Qt.setSelectedRowKeys,qW=Qt.allSelectedRowKeys,YW=Qt.flattenData;function Tw(ve){return te.find(function(Te,Fe){return typeof Te.key<"u"?typeof Te.key=="number"&&typeof ve=="string"?Te.key.toString()===ve:Te.key===ve:typeof Te.dataIndex<"u"?Te.dataIndex===ve:typeof ve=="number"?Fe===ve:!1})}function ZW(ve,Te){de(ve),Ce(Te),ve!==se&&XW(),H&&!H.checkCrossPage&&po.length&&(KW([]),H.onChange&&H.onChange([],[]));var Fe=Fr(Fr({},Ne()),{current:ve,pageSize:Te});D&&D(Fe,$e.length===1?$e[0]:$e,Ir,{currentData:Dr(ze(he,Fe)),currentAllData:Dr(he),action:"paginate"}),h.onChange&&h.onChange(ve,Te)}function XW(){var ve=G.current;if(ve){var Te=G.current.scrollTop,Fe=new Ko({from:{scrollTop:Te},to:{scrollTop:0},easing:"quintInOut",duration:300,onUpdate:function(Qe){G.current&&(G.current.scrollTop=Qe.scrollTop)}});Fe.start()}}function na(ve){var Te=ve.target,Fe=G.current,Qe=q.current&&q.current.parentNode,dr=R.current;Te.scrollLeft!==Q.current&&(Qe&&(Qe.scrollLeft=Te.scrollLeft),Fe&&(Fe.scrollLeft=Te.scrollLeft),dr&&(dr.scrollLeft=Te.scrollLeft),Gr()),Q.current=ve.target.scrollLeft}function JW(ve){var Te=ve.target,Fe=J.current;Te.scrollLeft!==Q.current&&(Fe.scrollLeft=Te.scrollLeft,Gr()),Q.current=ve.target.scrollLeft}var $w=dn(E6(p,YW,fr),2),kw=$w[0],QW=$w[1],Mw={},dv={};S&&(S.x&&(typeof S.x=="number"||typeof S.x=="string")&&(dv={width:S.x}),S.y&&(typeof S.y=="number"||typeof S.y=="string")&&(Mw={maxHeight:S.y}));function RW(){var ve=q.current&&q.current.parentNode,Te=u6(ve);Te&&Te>0&&(ve.style.marginBottom="-"+Te+"px",ve.style.paddingBottom="0px",R.current&&(R.current.style.marginBottom="-"+Te+"px",R.current.style.paddingBottom="0px")),setTimeout(function(){var Fe=G.current,Qe=c6(Fe);Qe?(X.current=!0,ve&&(ve.style.overflowY="scroll"),R.current&&(R.current.style.overflowY="scroll")):ve&&X.current&&(X.current=!1,ve.style.overflowY="auto",R.current&&(R.current.style.overflowY="auto"))})}var Aw=s.createElement(s6,Fr({},p,{activeSorters:$e,currentSorter:le,selectedRowKeys:po,currentFilters:Ir,onCheckAll:BW,onSort:at,data:Je,onHandleFilter:U,onHandleFilterReset:me,prefixCls:V,allSelectedRowKeys:qW,groupColumns:ce,stickyOffsets:Ve,groupStickyClassNames:Me}));function eB(){var ve=ge(S)&&S.x==="max-content";return Er||F?s.createElement(yr,{className:V+"-header"},s.createElement(Ye,{ref:q,style:ve?{}:dv},s.createElement(Gl,{columns:te,prefixCls:V,producer:!1,columnWidths:ve&&S.y?rr:null}),Aw)):Aw}var Dw=qr&&s.createElement(x6,{prefixCls:V,summary:L,data:Je,columns:te,stickyOffsets:Ve,stickyClassNames:We}),Fw=s.createElement(O6,Fr({},p,{selectedRowKeys:po,indeterminateKeys:WW,expandedRowKeys:kw,onCheck:UW,onCheckRadio:GW,onClickExpandBtn:QW,columns:te,data:Je,prefixCls:V,hasFixedColumn:tr,tableViewWidth:xe,indentSize:T,noDataElement:k||d("Table"),activeSorters:$e,currentSorter:le,stickyOffsets:Ve,stickyClassNames:We,getRowKey:fr,saveVirtualListRef:function(ve){F&&(ue.current=ve,G.current=ve==null?void 0:ve.dom)}})),Lw=!F&&!It?s.createElement(s.Fragment,null,Fw,Dw):Fw;function rB(){var ve=ge(S)&&S.x==="max-content"&&!!S.y&&Ke(P)&&P.length>0;return s.createElement(Qr,{onResize:RW},Er&&!F?s.createElement(ir,{ref:G,className:V+"-body",style:Mw},s.createElement(Ye,{style:dv},s.createElement(Gl,{columns:te,prefixCls:V,producer:ve,onSetColumnWidths:Ie,expandedRowKeys:kw,data:P}),Lw)):Lw)}function tB(){var ve={};S&&ge(S)&&S.x&&(ve={width:S.x});var Te=s.createElement("div",{className:V+"-tfoot",ref:R},s.createElement(Ye,{style:ve},s.createElement(Gl,{columns:te,prefixCls:V}),Dw)),Fe=qr&&Er&&cr==="top",Qe=qr&&Er&&cr==="bottom",dr=s.createElement(s.Fragment,null,j?eB():null,Fe&&Te,rB(),Qe&&Te);return s.createElement(s.Fragment,null,s.createElement("div",{className:V+"-container"},s.createElement("div",{className:V+"-content-scroll"},s.createElement("div",{className:V+"-content-inner",onScroll:Er?void 0:JW},Er||F?dr:s.createElement(Ye,{ref:J,style:ve},s.createElement(Gl,{prefixCls:V,columns:te}),dr)))),typeof $=="function"&&s.createElement("div",{className:V+"-footer"},$(Je)))}if(!x.length)return null;var nB=ge(b)?b.wrapper:b,vv=ge(b)?b.cell:O,iB=ge(b)?b.cell||b.headerCell:O,aB=ge(b)?b.cell||b.bodyCell:O,oB=ee(V,V+"-size-"+Y,(t={},t[V+"-border"]=nB,t[V+"-border-cell"]=vv,t[V+"-border-header-cell"]=!vv&&iB,t[V+"-border-body-cell"]=!vv&&aB,t[V+"-stripe"]=z,t[V+"-hover"]=A,t[V+"-type-radio"]=H&&H.type==="radio",t[V+"-layout-fixed"]=_||S&&(S.x||S.y)||x.find(function(ve){return ve.ellipsis}),t[V+"-fixed-column"]=tr,t[V+"-virtualized"]=F,t[V+"-rtl"]=m,t),y),pv=I==="tl"||I==="tr"||I==="topCenter",lB=ee(V+"-pagination",(n={},n[V+"-pagination-left"]=I==="tl"||I==="bl",n[V+"-pagination-center"]=I==="topCenter"||I==="bottomCenter",n[V+"-pagination-top"]=pv,n)),es=p.loading;typeof es=="boolean"&&(es={loading:es});var sB=typeof W=="function",Vw=sB?W(s.createElement(ro,Fr({},qe))):s.createElement("div",{className:lB},s.createElement(ro,Fr({},qe))),zw=M!==!1&&(he.length!==0||qe.total>0);return s.createElement("div",Fr({ref:Z,style:g,className:oB},tn(p)),s.createElement(_l,Fr({element:c},es),zw&&pv&&Vw,tB(),zw&&!pv&&Vw))}var nC=s.forwardRef(z6);nC.displayName="Table";const H6=nC;var oi=function(){return oi=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},oi.apply(this,arguments)},W6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function B6(e){var r=s.useContext(je).rtl,t=s.useContext(R0),n=t.columns,i=t.stickyOffsets,a=t.stickyClassNames,l=t.prefixCls,o=e.children,c=W6(e,["children"]),u=s.Children.map(o,function(d){return d.props.colSpan||1}),f=s.Children.map(o,function(d,v){var m,p,h,g,y=d,C=Nr(y,"type.__ARCO_TABLE_SUMMARY_CELL__")||Nr(y,"props.$$ArcoTableSummaryCell"),b=(h=y==null?void 0:y.props)===null||h===void 0?void 0:h.style,O=(g=y==null?void 0:y.props)===null||g===void 0?void 0:g.className,w=u.slice(0,v).reduce(function(S,k){return S+k},0),x=w,E=n[x].fixed==="left"?(m={},m[r?"right":"left"]=i[x],m):n[x].fixed==="right"?(p={},p[r?"left":"right"]=i[x],p):{},P=n[x].fixed==="left"||n[x].fixed==="right"?a[x]:"";return C?s.cloneElement(y,oi(oi({},y.props),{className:ee(l+"-td",P,O),style:oi(oi({},b),E)})):d});return s.createElement("tr",oi({},c),f)}var cd=function(){return cd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},cd.apply(this,arguments)},U6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function iC(e){var r=e.children,t=U6(e,["children"]);return s.createElement("td",cd({},ur(t,["$$ArcoTableSummaryCell"])),r)}iC.__ARCO_TABLE_SUMMARY_CELL__=!0;function fd(e){return e.children}fd.Row=B6,fd.Cell=iC;var aC=H6;aC.Summary=fd;const G6=aC;var dd=function(){return dd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},dd.apply(this,arguments)},K6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function q6(e,r){var t=s.useRef(!1),n=s.useContext(je).getPrefixCls,i=e.children,a=e.className,l=e.style,o=e.lazyload,c=e.isActive,u=K6(e,["children","className","style","lazyload","isActive"]),f=n("tabs");return t.current=o?t.current||c:!0,t.current&&s.createElement("div",dd({ref:r},ur(u,["destroyOnHide","title","closable"]),{className:ee(f+"-pane",a),style:l}),i)}var vd=s.forwardRef(q6);vd.displayName="TabPane",vd.isTabPane=!0;const Y6=vd;function Z6(e){var r=e.prefixCls,t=e.currentOffset,n=e.headerSize,i=e.headerWrapperSize,a=e.getTitleRef,l=e.paneChildren,o=e.direction,c=e.icon,u=l.map(function(p){return p.key}),f=o==="vertical"?n.height:n.width,d=o==="vertical"?i.height:i.width,v=s.useMemo(function(){var p={},h=i.domRect;return u.map(function(g){var y=a(g);if(y){var C=y.getBoundingClientRect();p[g]={left:C.left-h.left,right:C.left-h.left+C.width,top:C.top-h.top,bottom:C.top-h.top+C.height}}}),p},[u.join(","),f,d]),m=s.useMemo(function(){var p=-1,h=-1;for(var g in v){var y=v[g],C=y.left,b=y.right;if(C>=t&&b-t<=d&&p===-1&&(p=u.indexOf(g),h=p),C>=t&&b-t>d){h=u.indexOf(g);break}}return[p,h]},[v,u.join(","),t]);return Ls(c)?null:s.createElement(Au,{trigger:"click",droplist:s.createElement(dc,{onClickMenuItem:e.onClickTab},l.map(function(p,h){if(h<m[0]||h>=m[1])return s.createElement(dc.Item,{key:p.key,disabled:p.disabled},p.props.title)}))},s.createElement(lt,{role:"button","aria-label":"expand tabs",prefix:r+"-dropdown",className:r+"-dropdown-icon"},c||s.createElement(xi,null)))}var X6={prev:"left",next:"right"},J6={prev:"up",next:"down"},Q6=function(e){var r,t=e.direction,n=e.headerSize,i=e.headerWrapperSize,a=e.prefixCls,l=e.iconPos,o=e.currentOffset,c=e.align,u=e.rtl,f=e.icon,d=i.height,v=i.width,m=n.height,p=n.width,h=m-d,g=p-v,y={up:s.createElement(sy,null),down:s.createElement(xi,null),left:u?s.createElement(Un,null):s.createElement(Gn,null),right:u?s.createElement(Gn,null):s.createElement(Un,null)},C=function(j){j!==e.currentOffset&&e.onChange&&e.onChange(j)},b=function(j,z){j.preventDefault();var A;c==="left"?A=z==="left"?o-v:o+v:A=z==="left"?o+v:o-v,C(A)},O=function(j,z){j.preventDefault();var A;if(z==="up")A=o-d;else if(A=o+d,A>=m)return;C(A)},w=s.useMemo(function(){return c==="left"?o<=0:t==="vertical"?o>=h:o>=g},[c,t,o,g,o]),x=s.useMemo(function(){return c==="left"?t==="vertical"?o>=h:o>=g:o<=0},[c,t,h,g,o]);if(Ls(f))return null;var E=t==="horizontal"?X6[l]:J6[l],P=l==="prev"?w:x,S=ee(a+"-"+E+"-icon",(r={},r[a+"-nav-icon-disabled"]=P,r)),k=t==="vertical"?O:b;return s.createElement(lt,{disabled:P,className:S,prefix:a,onClick:function(j){return k(j,E)}},f||y[E])};const oC=Q6;var pd=function(e,r){var t=e.getBoundingClientRect(),n=r.getBoundingClientRect(),i=r.offsetWidth/n.width,a=r.offsetHeight/n.height;return{left:(t.left-n.left)*i,top:(t.top-n.top)*a,right:(t.right-n.right)*i,bottom:(t.bottom-n.bottom)*a}},R6=function(e,r){var t=e.scrollLeft,n=e.scrollTop;r==="horizontal"&&t&&e.scrollTo({left:-1*t}),r==="vertical"&&n&&e.scrollTo({top:-1*n})},lC=function(e){var r=e.onPressEnter;return{onKeyDown:function(t){var n=t.keyCode||t.which;n===Bt.code&&r(t)}}},md=function(){return md=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},md.apply(this,arguments)},eH=function(e,r){var t,n=e.prefixCls,i=e.onDeleteTab,a=e.tabKey,l=e.isActive,o=e.onClickTab,c=e.disabled,u=c===void 0?!1:c,f=e.title,d=e.editable,v=e.renderTitle,m=e.deleteIcon,p=e.deleteButton,h=e.getIdPrefix,g=e.index,y=ar(v)?v:function(O){return O},C=function(O){O.stopPropagation(),!u&&i()},b=function(O){u||o(O)};return y(s.createElement("div",{ref:r,key:a,className:ee(n+"-header-title",(t={},t[n+"-header-title-active"]=l,t[n+"-header-title-editable"]=d,t[n+"-header-title-disabled"]=u,t)),role:"tab","aria-selected":l,tabIndex:u?-1:0,"aria-disabled":u||void 0,id:h(g).tab,"aria-controls":h(g).tabpane,onClick:b,onKeyDown:function(O){var w=O.keyCode||O.which;w===Bt.code&&b(O)}},s.createElement("span",{className:n+"-header-title-text"},f),d&&s.createElement("span",md({role:"button","aria-label":"remove tab","aria-disabled":u||void 0,tabIndex:u?-1:0,className:n+"-close-icon"},lC({onPressEnter:C}),{onClick:C}),p||s.createElement(lt,{prefix:n},m||s.createElement(jt,null)))),{key:a,isActive:l,disabled:u,editable:d})};const rH=s.forwardRef(eH);var tH=function(e,r,t){var n={left:"",width:"",top:"",height:""};if(r){var i=pd(r,t);e==="vertical"?n={top:i.top+"px",height:r.offsetHeight+"px",left:"",width:""}:n={left:i.left+"px",width:r.offsetWidth+"px",top:"",height:""}}return n},nH=function(e){var r,t=e.prefixCls,n=e.animation,i=e.disabled,a=e.direction,l=e.getTitleRef,o=e.activeTab,c=e.getHeaderRef,u=e.inkBarSize,f=s.useRef(),d=s.useRef();return s.useEffect(function(){var v=ga(function(){var m=l(o),p=tH(a,m,c("headerRef").current);p&&!Il(d.current,p)&&(d.current=p,Object.keys(p).forEach(function(h){f.current.style[h]=p[h]}))});return v(),function(){v.cancel&&v.cancel()}}),s.createElement("div",{className:ee(t+"-header-ink",(r={},r[t+"-header-ink-no-animation"]=!n,r[t+"-header-ink-disabled"]=i,r[t+"-header-ink-custom"]=u,r)),ref:f},u&&s.createElement("div",{style:u,className:t+"-header-ink-inner"}))};const iH=nH;var aH=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function io(){var e=s.useRef(),r=aH(s.useState({height:0,width:0}),2),t=r[0],n=r[1];return s.useEffect(function(){e.current&&n({height:e.current.offsetHeight,width:e.current.offsetWidth,domRect:e.current.getBoundingClientRect()})},[]),[e,t,n]}function oH(e){var r=e.headerWrapperRef,t=e.headerOffset,n=e.align,i=e.isScrollable,a=e.direction,l=e.onScroll;function o(g,y){var C=0;a==="vertical"?C=t+y:C=n==="left"?t+g:t-g,l&&l(C)}var c=s.useRef("x");function u(g){if(i){g.preventDefault();var y=g.deltaX,C=g.deltaY,b=0,O=Math.abs(y),w=Math.abs(C);O===w?b=c.current==="x"?y:C:O>w?(b=y,c.current="x"):(b=C,c.current="y"),o(b,b)}}var f=s.useRef({clientX:0,clientY:0}),d=function(g){return g&&g.touches&&g.touches.length&&g.touches[0]},v=function(g){g.cancelable&&g.preventDefault();var y=d(g);if(y){var C=f.current,b=C.clientX,O=C.clientY,w=y.clientX-b,x=y.clientY-O;o(-w,-x)}},m=function(){$r(document.documentElement,"touchmove",v),$r(document.documentElement,"touchend",m)},p=function(g){if(i){var y=d(g);y&&(f.current={clientX:y.clientX,clientY:y.clientY},Pr(document.documentElement,"touchmove",v,{passive:!1}),Pr(window,"touchend",m,{passive:!1}))}},h=s.useRef(null);h.current={onWheel:u,onTouchStart:p},s.useEffect(function(){Pr(r.current,"wheel",function(g){h.current.onWheel(g)},{passive:!1}),Pr(r.current,"touchstart",function(g){h.current.onTouchStart(g)},{passive:!0})},[r.current])}var In=function(){return In=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},In.apply(this,arguments)},jn=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},hd="vertical",Yl="right",Zl="left",sC={delete:!0,add:!0},lH=function(e){var r=e.direction,t=e.align,n=t===void 0?Zl:t,i=e.headerOffset,a="translateX("+-i+"px)";return n===Yl&&(a="translateX("+i+"px)"),r===hd&&(a="translateY("+-i+"px)"),Bj(a)},sH=function(e){var r=e.direction,t=e.align,n=t===void 0?Zl:t,i=e.headerDom,a=e.headerWrapperDom,l=pd(i,a);return r===hd?-l.top:n===Yl?l.right:-l.left},uC=s.forwardRef(function(e,r){var t,n,i=s.useContext(gd),a=s.useContext(je).rtl,l=In(In({},e),i),o=jn(io(),3),c=o[0],u=o[1],f=o[2],d=jn(io(),3),v=d[0],m=d[1],p=d[2],h=jn(io(),3),g=h[0],y=h[1],C=h[2],b=jn(io(),3),O=b[0],w=b[1],x=b[2],E=jn(io(),3),P=E[0],S=E[1],k=E[2],j=s.useRef({}),z=jn(s.useState(0),2),A=z[0],M=z[1],D=jn(s.useState(!0),2),I=D[0],N=D[1],T=l.paneChildren,H=l.editable,_=l.prefixCls,$=l.onAddTab,F=l.direction,W=l.type,L=W===void 0?"line":W,K=l.overflow,B=K===void 0?"scroll":K,V=l.activeTab,Y=l.showAddButton,q=l.size,G=q===void 0?"default":q,R=l.style,Z=l.tabPosition,ue=l.className,J=l.extra,Q=l.animation,X=l.icons,ie=l.deleteButton,ce=l.addButton,te=l.renderTabTitle,fe=l.scrollAfterEdit,Ae=l.scrollPosition,ae=Ae===void 0?"auto":Ae,_e=l.inkBarSize,se=ge(fe)?In(In({},sC),fe):sC,de=jn(a?[Yl,Zl]:[Zl,Yl],2),be=de[0],Ee=de[1],Ce=L==="capsule"?Ee:be,Oe=s.useMemo(function(){var Se=y.height-w.height-S.height,Xe=y.width-w.width-S.width,Be=l.direction==="vertical"?Se<m.height:Xe<m.width;return Be},[l.direction,y,w,m,S]),ke=function(){if(g.current){var Se=g.current;C({height:Se.offsetHeight,width:Se.offsetWidth})}},oe=function(Se){return Vo(function(Xe){ke();var Be=Xe[0]&&Xe[0].target;Be&&Se({height:Be.offsetHeight,width:Be.offsetWidth,domRect:Be.getBoundingClientRect()})},200)},we=oe(f),xe=oe(p),De=oe(x),Re=oe(k),rr=s.useCallback(function(Se){var Xe=F===hd?m.height-u.height:m.width-u.width,Be=Se;return Be=Math.min(Xe,Be),Be=Math.max(Be,0),Be},[F,m,u]),Ie=function(Se){var Xe=rr(Se);Xe!==A&&M(Xe)};s.useEffect(function(){return function(){var Se,Xe,Be,Ye;(Se=xe==null?void 0:xe.cancel)===null||Se===void 0||Se.call(xe),(Xe=we==null?void 0:we.cancel)===null||Xe===void 0||Xe.call(we),(Be=De==null?void 0:De.cancel)===null||Be===void 0||Be.call(De),(Ye=Re==null?void 0:Re.cancel)===null||Ye===void 0||Ye.call(Re)}},[]),s.useEffect(function(){if(!I){N(!0);return}var Se=function(){var Be=j.current[V];if(!Be||!Oe)return 0;var Ye=pd(Be,c.current),ir=sH({direction:F,align:Ce,headerDom:v.current,headerWrapperDom:c.current});if(F==="vertical"){var yr=ir,fr=ae,Lr=ir+Ye.top,Br=ir+Ye.bottom;return fr==="auto"&&(fr=Ye.top<0?"start":Ye.bottom>0?"end":ae),fr==="start"?yr=Lr:fr==="end"?yr=Br:fr==="center"?yr=Lr-(Ye.top-Ye.bottom)/2:lr(fr)&&(yr=Math.max(Lr-fr,Br)),yr}if(Ce==="right"){var Ir=ir-Ye.left,at=ir-Ye.right,Ur=ae,U=ir;return ae==="auto"&&(Ur=Ye.left<0?"start":Ye.right>0?"end":ae),Ur==="start"?U=Ir:Ur==="end"?U=at:Ur==="center"?U=Ir+(Ye.left-Ye.right)/2:lr(Ur)&&(U=Math.min(Ir+Ur,at)),U}var me=ir,Pe=ae,Ue=ir+Ye.left,tr=ir+Ye.right;return ae==="auto"&&(Pe=Ye.left<0?"start":Ye.right>0?"end":ae),Pe==="start"?me=Ue:Pe==="end"?me=tr:Pe==="center"?me=Ue-(Ye.left-Ye.right)/2:lr(Pe)&&(me=Math.max(Ue-Pe,tr)),me};R6(c.current,F);var Xe=Se();Xe=rr(Xe),M(Xe)},[V,F,B,Oe,L,rr,ae]);var Ve=lH({direction:F,align:Ce,headerOffset:A}),nr=Oe&&B==="dropdown"&&F!=="vertical",Me=Oe&&!nr,We=H&&(L==="card"||L==="card-gutter"||L==="line"),ye=function(Se){l.onDeleteTab&&l.onDeleteTab(Se.key),N(se.delete)},le=function(){$==null||$(),N(se.add)},$e=function(Se){return Se&&Y&&s.createElement(Qr,{onResize:Re},s.createElement("div",In({className:_+"-add-icon","aria-label":"add tab",tabIndex:0,role:"button",ref:P,onClick:le},lC({onPressEnter:le})),ce||s.createElement(lt,{prefix:_+"-add"},s.createElement("span",{className:_+"-add"},(X==null?void 0:X.add)||s.createElement(Wc,null)))))};return oH({headerWrapperRef:c,headerOffset:A,align:Ce,direction:F,isScrollable:Oe,onScroll:function(Se){Ie(Se)}}),s.createElement("div",{className:ee(_+"-header-nav",_+"-header-nav-"+F,_+"-header-nav-"+Z,_+"-header-size-"+G,_+"-header-nav-"+L,ue),style:R,ref:r},s.createElement("div",{className:ee(_+"-header-scroll",(t={},t[_+"-header-overflow-scroll"]=Me,t[_+"-header-overflow-dropdown"]=nr,t)),ref:g},Me&&s.createElement(oC,{iconPos:"prev",rtl:a,icon:X==null?void 0:X.prev,prefixCls:_,currentOffset:A,headerSize:m,headerWrapperSize:u,direction:F,align:Ce,onChange:Ie}),s.createElement(Qr,{onResize:we},s.createElement("div",{className:_+"-header-wrapper",ref:c},s.createElement(Qr,{onResize:xe},s.createElement("div",{className:ee(_+"-header",(n={},n[_+"-header-no-padding"]=!e.headerPadding&&F==="horizontal"&&["line","text"].indexOf(L)>-1,n)),ref:v,style:Ve},T.map(function(Se,Xe){return s.createElement(rH,In({key:Xe,ref:function(Be){j.current[Se.key]=Be},tabKey:Se.key},Se.props,{prefixCls:_,onDeleteTab:function(){return ye(Se)},renderTitle:e.children||te,onClickTab:function(){l.onClickTab&&l.onClickTab(Se.key)},isActive:V===Se.key,editable:We&&Se.props.closable!==!1,deleteIcon:X==null?void 0:X.delete,deleteButton:ie,getIdPrefix:i.getIdPrefix,index:Xe}))}),L==="line"&&s.createElement(iH,{disabled:!!T.find(function(Se){return Se&&Se.props&&Se.props.disabled&&Se.key===V}),prefixCls:_,animation:Q,direction:F,getTitleRef:function(Se){return j.current[Se]},activeTab:V,getHeaderRef:function(){return v},inkBarSize:_e}))),!Oe&&$e(We))),Me&&s.createElement(oC,{prefixCls:_,rtl:a,iconPos:"next",icon:X==null?void 0:X.next,currentOffset:A,headerSize:m,headerWrapperSize:u,direction:F,align:Ce,onChange:Ie}),nr&&s.createElement(Z6,{onClickTab:l.onClickTab,paneChildren:T,prefixCls:_,currentOffset:A,headerSize:m,icon:X==null?void 0:X.dropdown,headerWrapperSize:u,getTitleRef:function(Se){return j.current[Se]},direction:F}),(We&&Oe||J)&&s.createElement(Qr,{onResize:De},s.createElement("div",{className:_+"-header-extra",ref:O},Oe&&$e(We),J))))});uC.displayName="TabHeader";const cC=uC;function uH(e){var r,t=e.animation,n=e.activeTab,i=e.prefixCls,a=e.paneChildren,l=e.direction,o=e.lazyload,c=e.destroyOnHide,u=a.findIndex(function(m){return m.key===n}),f=s.useContext(gd),d=s.useContext(je).rtl;if(a.every(function(m){return(m==null?void 0:m.props)&&(!("children"in m.props)||m.props.children===null)}))return null;var v=ee(i+"-content-inner",(r={},r[i+"-animation"]=t,r));return s.createElement("div",{className:i+"-content "+i+"-content-"+l},s.createElement("div",{className:v,style:d?{marginRight:"-"+u*100+"%"}:{marginLeft:"-"+u*100+"%"}},a.map(function(m,p){var h,g=f.getIdPrefix(p),y=g.tabpane,C=g.tab,b="destroyOnHide"in m.props?m.props.destroyOnHide:c,O=m.key===n;return s.createElement("div",{key:m.key,className:ee(i+"-content-item",(h={},h[i+"-content-item-active"]=O,h)),role:"tabpanel",id:y,"aria-hidden":O?void 0:!0,tabIndex:O?0:-1,"aria-labelledby":C},u!==p&&b?null:s.cloneElement(m,{lazyload:o,isActive:O}))})))}var vn=function(){return vn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},vn.apply(this,arguments)},cH=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},fH=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},dH=["mini","small","default","large"],vH=function(e){var r=e.children,t=[];return s.Children.forEach(r,function(n){n&&n.type&&n.type.isTabPane&&t.push(n)}),t},pH=function(e){var r=e.direction,t=e.tabPosition,n=e.animation;return r==="vertical"||t==="left"||t==="right"?!1:ge(n)?"tabPane"in n?n.tabPane:!1:n},mH={tabPosition:"top",type:"line",overflow:"scroll",showAddButton:!0,lazyload:!0,headerPadding:!0,scrollPosition:"auto"},gd=s.createContext({});function hH(e,r){var t,n=s.useContext(je),i=n.getPrefixCls,a=n.size,l=n.componentConfig,o=n.rtl,c=sr(e,mH,l==null?void 0:l.Tabs),u=vH(c),f=s.useRef(),d=fH(gr(u[0]&&u[0].key,{defaultValue:"defaultActiveTab"in c?c.defaultActiveTab:void 0,value:"activeTab"in c?c.activeTab:void 0}),2),v=d[0],m=d[1],p=i("tabs"),h=c.size||(dH.indexOf(a)>-1?a:"default"),g=c.animation,y=c.className,C=c.direction,b=c.style,O=c.type,w=c.justify,x=c.destroyOnHide,E=c.lazyload,P=c.onChange,S=c.onClickTab,k=c.onDeleteTab,j=c.renderTabHeader,z=cH(c,["animation","className","direction","style","type","justify","destroyOnHide","lazyload","onChange","onClickTab","onDeleteTab","renderTabHeader"]),A=$i(p+"-"),M=C==="vertical"?"left":c.tabPosition,D={animation:ge(g)&&"inkBar"in g?g.inkBar:!0,activeTab:v,tabPosition:M,direction:["left","right"].indexOf(M)>-1?"vertical":"horizontal",paneChildren:u,onClickTab:function(N){ar(S)&&S(N),N!==v&&("activeTab"in c||m(N),ar(P)&&P(N))},onDeleteTab:k,prefixCls:p};s.useImperativeHandle(r,function(){return f},[]);var I=s.createElement(uH,{direction:["left","right"].indexOf(M)>-1?"vertical":"horizontal",animation:pH(c),activeTab:v,paneChildren:u,prefixCls:p,destroyOnHide:x,lazyload:E});return s.createElement("div",vn({},ur(z,["headerPadding","tabPosition","defaultActiveTab","showAddButton","extra","onAddTab","activeTab","overflow","editable","renderTabTitle","addButton","deleteButton","icons","children","size","type","scrollPosition","offsetAlign"]),{style:b,className:ee(p,p+"-"+(["left","right"].indexOf(M)>-1?"vertical":"horizontal"),p+"-"+O,p+"-"+M,p+"-size-"+h,(t={},t[p+"-justify"]=w,t[p+"-rtl"]=o,t),y),ref:f}),s.createElement(gd.Provider,{value:vn(vn({},D),{getIdPrefix:function(N){return{tab:A&&A+"-tab-"+N,tabpane:A&&A+"-panel-"+N}}})},M==="bottom"&&I,ar(j)?j(vn(vn(vn({},ur(c,["children","style","className"])),{size:h}),D),cC):s.createElement(cC,vn({},ur(c,["children","style","className"]),{size:h})),M!=="bottom"&&I))}var gH=s.forwardRef(hH),Nt=gH;Nt.displayName="Tabs",Nt.TabPane=Y6;function fC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function dC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?fC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function yH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=dC(dC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-delete")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"}))}var yd=s.forwardRef(yH);yd.defaultProps={isIcon:!0},yd.displayName="IconDelete";const vC=yd;function bH(e,r){var t=s.useContext(je).getPrefixCls,n=t("typography"),i=e.className,a=e.style,l=e.children,o=ee(n,i);return s.createElement("article",{ref:r,style:a,className:o},l)}var pC=s.forwardRef(bH);pC.displayName="Typography";const CH=pC;var wH=function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(l){l(a)})}return new(t||(t=Promise))(function(a,l){function o(f){try{u(n.next(f))}catch(d){l(d)}}function c(f){try{u(n.throw(f))}catch(d){l(d)}}function u(f){f.done?a(f.value):i(f.value).then(o,c)}u((n=n.apply(e,r||[])).next())})},OH=function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=r.call(e,t)}catch(f){u=[6,f],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};function xH(e){return wH(this,void 0,void 0,function(){var r,t,n,i,a;return OH(this,function(l){switch(l.label){case 0:if(!(navigator.clipboard&&navigator.clipboard.writeText))return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(e)];case 2:return l.sent(),[2];case 3:return r=l.sent(),console.error(r??new DOMException("The request is not allowed","NotAllowedError")),[3,4];case 4:t=document.createElement("span"),t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t),n=window.getSelection(),i=window.document.createRange(),n.removeAllRanges(),i.selectNode(t),n.addRange(i),a=!1;try{a=window.document.execCommand("copy")}catch(o){console.log("error",o)}return n.removeAllRanges(),window.document.body.removeChild(t),[2,a?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))]}})})}function mC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function hC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?mC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):mC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _H(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=hC(hC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-copy")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"}))}var bd=s.forwardRef(_H);bd.defaultProps={isIcon:!0},bd.displayName="IconCopy";const EH=bd;function gC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function yC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?gC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function SH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=yC(yC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-edit")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"}))}var Cd=s.forwardRef(SH);Cd.defaultProps={isIcon:!0},Cd.displayName="IconEdit";const PH=Cd;var bC=function(e){return pt(e)||lr(e)};function ao(e){var r=[""];return s.Children.forEach(e,function(t){var n=r.length-1,i=r[n];bC(t)&&bC(i)?r[n]=""+i+t:t&&t.props&&t.props.children&&r.push(ao(t.props.children))}),r.join("")}var li=function(){return li=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},li.apply(this,arguments)},NH=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function IH(e){var r=e.children,t=e.copyable,n=e.editable,i=e.ellipsis,a=e.expanding,l=e.setEditing,o=e.onClickExpand,c=e.forceShowExpand,u=e.isEllipsis,f=e.currentContext,d=f===void 0?{}:f,v=On(),m=d.getPrefixCls,p=d.locale,h=m("typography"),g=NH(s.useState(!1),2),y=g[0],C=g[1],b=s.useRef(null),O=ge(t)?t:{},w=ge(i)?i:{},x=ge(n)?n:{},E=Ke(w.expandNodes)?w.expandNodes:[p.Typography.fold,p.Typography.unfold];s.useEffect(function(){return function(){clearTimeout(b.current),b.current=null}},[]);function P(M){if(!y){var D=O.text!==void 0?O.text:ao(r);xH(D),C(!0),O.onCopy&&O.onCopy(D,M),b.current=setTimeout(function(){C(!1)},3e3)}}var S=function(M){x.onStart&&x.onStart(ao(r),M),l(!0)},k=O.tooltips||[p.Typography.copy,p.Typography.copied],j=t&&s.createElement(Xr,li({content:y?k[1]:k[0]},O.tooltipProps),s.createElement("span",li({className:y?h+"-operation-copied":h+"-operation-copy",onClick:P,role:"button","aria-label":k[0],tabIndex:0},v({onPressEnter:P})),y?s.createElement(ca,null):O.icon||s.createElement(EH,null))),z=n&&s.createElement(Xr,li({content:p.Typography.edit},x.tooltipProps),s.createElement("span",li({tabIndex:0,"aria-label":p.Typography.edit,role:"button",className:h+"-operation-edit",onClick:S},v({onPressEnter:S})),s.createElement(PH,null))),A=c||w.expandable&&u?s.createElement("a",li({className:h+"-operation-expand",onClick:o,role:"button",tabIndex:0,"aria-label":p.Typography.unfold},v({onPressEnter:o})),a?E[0]:E[1]):null;return s.createElement(s.Fragment,null,A,z,j)}function jH(e){var r=e.prefixCls,t=e.children,n=e.setEditing,i=e.editableConfig,a=e.style,l=ee(r+"-typography",r+"-edit-content",e.className),o=ao(t),c=s.useRef(null);s.useEffect(function(){if(c.current&&c.current.focus&&c.current.focus(),c.current&&c.current.dom){var v=c.current.dom.value.length;c.current.dom.setSelectionRange(v,v)}},[]);function u(){n(!1),i.onEnd&&i.onEnd(o)}function f(v){i.onChange&&i.onChange(v)}function d(){u()}return s.createElement("div",{className:l,style:a},s.createElement(ct.TextArea,{className:r+"-edit-content-textarea",onBlur:d,ref:c,value:o,autoSize:!0,onChange:f,onPressEnter:u}))}var ra=function(){return ra=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ra.apply(this,arguments)},oo=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},TH="hxj",zr;(function(e){e[e.INIT=0]="INIT",e[e.BEFORE_MEASURE=1]="BEFORE_MEASURE",e[e.MEASURING=2]="MEASURING",e[e.MEASURE_END=3]="MEASURE_END",e[e.NO_NEED_ELLIPSIS=4]="NO_NEED_ELLIPSIS"})(zr||(zr={}));function $H(e){var r=e.children,t=e.rows,n=t===void 0?1:t,i=e.width,a=e.expanding,l=e.renderMeasureContent,o=e.simpleEllipsis,c=e.onEllipsis,u=e.suffix,f=e.expandNodes,d=e.expandable,v=e.ellipsisStr,m=s.useRef(),p=s.useRef(),h=oo(s.useState([0,0,0]),2),g=h[0],y=h[1],C=oo(s.useState(0),2),b=C[0],O=C[1],w=oo(s.useState(zr.NO_NEED_ELLIPSIS),2),x=w[0],E=w[1],P=oo(g,3),S=P[0],k=P[1],j=P[2],z=oo(s.useState(!1),2),A=z[0],M=z[1],D=s.useMemo(function(){return s.Children.toArray(r)},[r]),I=s.useRef(0);Wi(function(){c&&c(A)},[A]);var N=function(Y){return pt(Y)||lr(Y)},T=function(Y){var q=0;return Y.forEach(function(G){N(G)?q+=String(G).length:q+=1}),q},H=s.useMemo(function(){return T(D)},[D]),_=ga(function(Y){return y(Y)}),$=function(Y){var q=[],G=0;if(Y>=H)return D;for(var R in D){var Z=D[R];if(G>=Y)return q;var ue=N(Z)?String(Z).length:1;if(ue>Y-G)return q.push(String(Z).slice(0,Y-G)),G=Y,q;G+=ue,q.push(Z)}return q},F=function(){var Y,q;if(b){if(x===zr.INIT){var G=n*b,R=(Y=p.current)===null||Y===void 0?void 0:Y.offsetHeight,Z=R>G;!Z||o||a?(E(zr.MEASURE_END),M(Z),y([0,H,H])):(M(!0),E(zr.BEFORE_MEASURE))}else if(x===zr.BEFORE_MEASURE){var ue=m==null?void 0:m.current.offsetWidth,J=n*i;if(ue>n*i){var Q=Math.max(J/ue-.1,0),X=Math.min(J/ue+.1,1),ie=Math.floor(Q*H),ce=Math.ceil(X*H),te=Math.floor((ie+ce)/2);I.current=te}E(zr.MEASURING)}else if(x===zr.MEASURING)if(S!==j-1){var R=(q=p.current)===null||q===void 0?void 0:q.offsetHeight,G=n*b,fe=S,Ae=j;R<=G?fe=k:Ae=k;var ae=Math.floor((Ae+fe)/2);_([fe,ae,Ae])}else _([S,S,S]),E(zr.MEASURE_END)}};Cn(function(){e.rows&&i?(y([0,Math.floor(H/2),H]),E(zr.INIT)):E(zr.NO_NEED_ELLIPSIS)},[H,o,a,i,u,f,d,v,e.rows]),Cn(function(){if(m.current&&x===zr.INIT){var Y=m.current.offsetHeight;O(Y)}},[x]),Cn(function(){F()},[x,k,S,j,b]);var W={zIndex:-999,position:"fixed",opacity:0,padding:0,margin:0},L=ra({whiteSpace:"nowrap"},W),K=o?ra({textOverflow:"clip"},W):W,B;if(x===zr.INIT||x===zr.BEFORE_MEASURE)B=s.createElement("div",null,s.createElement("div",{ref:m,style:L},x===zr.INIT?TH:l(r,!1)),s.createElement("div",{ref:p,style:ra({width:i},K)},l(r,A))),B=B.props.children;else if(x===zr.MEASURING){var V={height:b*n,overflow:"hidden"};B=s.createElement("div",null,s.createElement("div",{ref:p,style:ra({width:i},K)},l($(k),A)),s.createElement("div",{style:V},$(I.current))),B=B.props.children}else x===zr.MEASURE_END?B=l($(k),A):x===zr.NO_NEED_ELLIPSIS&&(B=l(r,!1));return{ellipsisNode:B,isEllipsis:A,measureStatus:x}}var kH=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},MH=function(e,r){if(typeof window<"u"&&window.CSS&&window.CSS.supports)return jr(r)?window.CSS.supports(e):window.CSS.supports(e,r);if(typeof document<"u"&&document.createElement){var t=document.createElement("div");return t.setAttribute("style",e+":"+r+";"),typeof t.style[e]<"u"}return!1},AH={display:" -webkit-box","-webkit-line-clamp":2},DH=function(){return Object.entries(AH).every(function(e){var r=kH(e,2),t=r[0],n=r[1];return MH(t,n)})};function FH(e){var r=e.cssEllipsis,t=e.ellipsisStr,n=t===void 0?"...":t,i=e.suffix,a=e.rows,l=s.useMemo(function(){return!r||a>1&&!DH()?!1:n==="..."&&!i},[n,r,a,i]),o={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},c={textOverflow:"ellipsis",whiteSpace:"normal",overflow:"hidden",WebkitLineClamp:""+e.rows,WebkitBoxOrient:"vertical",display:"-webkit-box"};return{simpleEllipsis:l,ellipsisStyle:l?e.rows>1?c:o:{}}}var CC=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},wC=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function LH(e){var r=null,t=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(e.apply(void 0,wC([],CC(n),!1)),r=ut(function(){})),r&&nt(r),r=ut(function(){e.apply(void 0,wC([],CC(n),!1)),r=null})};return t.cancel=function(){nt(r),r=null},t}var bt=function(){return bt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},bt.apply(this,arguments)},VH=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},wd=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function zH(e,r){var t=e.type,n=e.bold,i=e.disabled,a=e.mark,l=e.underline,o=e.delete,c=e.code,u=[],f=[];return t&&f.push(r+"-"+t),i&&f.push(r+"-disabled"),n&&u.push("b"),l&&u.push("u"),o&&u.push("del"),c&&u.push("code"),a&&u.push("mark"),{component:u,className:f}}function Od(e){var r,t=e.componentType,n=e.style,i=e.className,a=e.children,l=e.editable,o=e.ellipsis,c=e.heading,u=e.blockquote,f=VH(e,["componentType","style","className","children","editable","ellipsis","heading","blockquote"]),d=s.useContext(je),v=d.getPrefixCls,m=d.rtl,p=v("typography"),h=zH(e,p),g=h.component,y=h.className,C=wd(s.useState(!1),2),b=C[0],O=C[1],w=wd(s.useState(0),2),x=w[0],E=w[1],P=ge(l)?l:{},S="editing"in P?P.editing:b,k=o?bt({rows:1,ellipsisStr:"...",cssEllipsis:!1},ge(o)?o:{}):{},j=k.wrapper||s.Fragment,z=wd(gr(!1,{defaultValue:k.defaultExpanded,value:k.expanded}),2),A=z[0],M=z[1],D=FH(k),I=D.simpleEllipsis,N=D.ellipsisStyle,T=function(q,G){var R=jr(k.ellipsisStr)?"...":k.ellipsisStr,Z=!jr(k.suffix)&&k.suffix;return s.createElement(j,null,q,G&&!A&&!I?R:"",Z,L(G))},H=$H(bt(bt({},k),{children:a,expanding:A,width:x,renderMeasureContent:T,simpleEllipsis:I||A})),_=H.ellipsisNode,$=H.isEllipsis,F=H.measureStatus,W=LH(function(q){var G=(q==null?void 0:q[0]).contentRect;if(G){var R=g.includes("code")?G.width-18:G.width,Z=[zr.NO_NEED_ELLIPSIS,zr.MEASURE_END];Z.includes(F)&&E(R)}});function L(q){return s.createElement(s.Fragment,null,s.createElement(IH,bt({},e,{setEditing:O,onClickExpand:K,expanding:A,isEllipsis:q,currentContext:d})))}function K(q){M(!A),e.onClickExpand&&e.onClickExpand(q),k.onExpand&&k.onExpand(!A,q)}Wi(function(){k.onEllipsis&&k.onEllipsis($)},[$]);function B(q,G,R,Z){Z===void 0&&(Z={});var ue=q;return G.forEach(function(J,Q){var X=Q===0?Z:{},ie=ge(R.mark)&&R.mark.color?bt({style:{backgroundColor:R.mark.color}},X):bt({},X);ue=s.createElement(J,bt({},ie),ue)}),ue}var V;t==="Paragraph"?V=u?"blockquote":"div":t==="Title"?V="h"+c:t==="Text"&&(V=o?"div":"span");function Y(){var q,G=ao(s.Children.toArray(a)),R=k.showTooltip,Z=ge(k.showTooltip)&&k.showTooltip.type==="popover"?"popover":"tooltip",ue=ge(k.showTooltip)?k.showTooltip.props||{}:{},J=Z==="popover"?Zm:Xr,Q=$&&!R&&!A?{title:G}:{},X=bt({style:n},Q),ie=$&&R&&!A,ce=s.createElement(Qr,{onResize:W},s.createElement(V,bt({className:ee(p,y,(q={},q[p+"-rtl"]=m,q),i)},X,ur(f,["spacing","type","close","bold","disabled","mark","underline","delete","code","copyable","isEllipsis","expanding","onClickExpand","setEditing","forceShowExpand"])),I&&F!==zr.INIT&&!A&&$?B(T(s.createElement("span",{style:N},a),$),g.length?g:["span"],e,{className:p+"-simple-ellipsis"}):B(_,g,e)));return ie?s.createElement(J,bt({content:G},ue),s.createElement("span",null,ce)):ce}return S?s.createElement(jH,bt({},e,{className:ee(p,y,(r={},r[p+"-rtl"]=m,r),p+"-"+V,i),prefixCls:p,setEditing:O,editableConfig:P})):Y()}var xd=function(){return xd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},xd.apply(this,arguments)},HH=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function OC(e){var r=e.heading,t=r===void 0?1:r,n=HH(e,["heading"]);return s.createElement(Od,xd({heading:t},n,{componentType:"Title"}))}OC.displayName="Title";var _d=function(){return _d=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},_d.apply(this,arguments)};function xC(e){return s.createElement(Od,_d({},e,{componentType:"Text"}))}xC.displayName="Text";var Ed=function(){return Ed=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ed.apply(this,arguments)};function _C(e){var r=e.spacing,t=r===void 0?"default":r,n=e.className,i=s.useContext(je).getPrefixCls,a=i("typography"),l=t==="close"?ee(a+"-spacing-close",n):n;return s.createElement(Od,Ed({},e,{componentType:"Paragraph",className:l}))}_C.displayName="Paragraph";var Sd=function(){return Sd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Sd.apply(this,arguments)},Xl=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},WH={rows:1,expandable:!0,defaultExpanded:!1},BH=function(e,r){var t,n=s.useContext(je),i=sr(e,WH,(t=n.componentConfig)===null||t===void 0?void 0:t["Typography.Ellipsis"]),a=i.className,l=i.style,o=i.rows,c=i.disabled,u=i.showTooltip,f=i.children,d=i.expandable,v=i.expandRender,m=i.onExpand,p=i.onEllipsis,h=n.locale,g=s.useRef(null),y=s.useRef(null),C=Xl(s.useState(""),2),b=C[0],O=C[1],w=Xl(s.useState(!1),2),x=w[0],E=w[1],P=s.useRef(null),S=s.useRef(null),k=Xl(gr(!1,{defaultValue:i.defaultExpanded,value:i.expanded}),2),j=k[0],z=k[1],A=Xl(s.useState(!1),2),M=A[0],D=A[1],I=s.useMemo(function(){return ge(d)?!d.single&&o===1:o===1},[o,d]),N=s.useMemo(function(){return ge(u)?{tooltip:!0,tooltipProps:u}:{tooltip:!!u,tooltipProps:u}},[u]);s.useEffect(function(){if(y.current){var K=y.current.textContent;K&&O(K)}},[f,y]);var T=n.getPrefixCls("ellipsis"),H=function(){return v?v(j):s.createElement("span",{className:T+"-action-text"},j?h.Typography.fold:h.Typography.unfold)},_=function(){var K;return d&&M?s.createElement("div",{className:ee(T+"-action",(K={},K[T+"-action-collapsed"]=!j,K)),onClick:function(B){j?(z(!1),m==null||m(!1,B)):(z(!0),E(!1),m==null||m(!0,B))}},H()):null},$=s.useCallback(ga(function(){if(S.current&&P.current){var K=I?S.current.offsetWidth>P.current.offsetWidth:S.current.offsetHeight>P.current.offsetHeight;K?M===!1&&(D(!0),p==null||p(!0)):M===!0&&(D(!1),p==null||p(!1))}}),[M,I]),F=function(){return c?null:s.createElement(Qr,{onResize:$},s.createElement("div",{className:I?ee(T+"-content-mirror",T+"-single"):ee(T+"-content-mirror",T+"-multiple",T+"-collapsed"),style:{WebkitBoxOrient:"vertical",MozBoxOrient:"vertical",WebkitLineClamp:o},ref:P},s.createElement(Qr,{onResize:$},s.createElement("span",{ref:S,className:T+"-text"},f))))},W=function(){var K;return I?s.createElement("div",{className:ee(T+"-content",T+"-single")},s.createElement("span",{ref:y,className:T+"-text"},f)):s.createElement("div",{className:ee(T+"-content",T+"-multiple",(K={},K[T+"-collapsed"]=!j,K)),style:{WebkitBoxOrient:"vertical",MozBoxOrient:"vertical",WebkitLineClamp:o},title:!N.tooltip&&M&&!j?b:void 0},!j&&_(),s.createElement("span",{ref:y,className:T+"-text"},f),j&&_())},L=function(){return c?s.createElement("div",{className:T+"-content"},s.createElement("span",{ref:y,className:T+"-text"},f)):N.tooltip?s.createElement(Xr,Sd({content:b,popupVisible:x,disabled:!M||j,triggerProps:{mouseEnterDelay:100},onVisibleChange:function(K){K?M&&!j&&E(!0):E(!1)}},N.tooltipProps),W()):W()};return s.createElement("div",{ref:g,className:ee(T,a),style:l},F(),L())},UH=s.forwardRef(BH);const GH=UH;var lo=CH;lo.Title=OC,lo.Text=xC,lo.Paragraph=_C,lo.Ellipsis=GH;const si=lo;function EC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function SC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?EC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function KH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=SC(SC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-image-close")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M41 26V9a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v30a2 2 0 0 0 2 2h17"}),s.createElement("path",{d:"m24 33 9-8.5V27s-2 1-3.5 2.5C27.841 31.159 27 33 27 33h-3Zm0 0-3.5-4.5L17 33h7Z"}),s.createElement("path",{fill:"currentColor",stroke:"none",d:"M20.5 28.5 17 33h7l-3.5-4.5ZM33 24.5 24 33h3s.841-1.841 2.5-3.5C31 28 33 27 33 27v-2.5Z"}),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M46 38a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-4.95-4.782 1.74 1.74-3.045 3.046 3.046 3.046-1.74 1.74-3.047-3.045-3.046 3.046-1.74-1.74 3.046-3.047-3.046-3.046 1.74-1.74 3.046 3.046 3.046-3.046Z",clipRule:"evenodd"}),s.createElement("path",{d:"M17 15h-2v2h2v-2Z"}))}var Pd=s.forwardRef(KH);Pd.defaultProps={isIcon:!0},Pd.displayName="IconImageClose";const qH=Pd;function PC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function NC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?PC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):PC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function YH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=NC(NC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-zoom-out")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15"}))}var Nd=s.forwardRef(YH);Nd.defaultProps={isIcon:!0},Nd.displayName="IconZoomOut";const ZH=Nd;function IC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function jC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?IC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):IC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function XH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=jC(jC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-zoom-in")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15"}))}var Id=s.forwardRef(XH);Id.defaultProps={isIcon:!0},Id.displayName="IconZoomIn";const JH=Id;function TC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function $C(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?TC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function QH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=$C($C({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-fullscreen")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8"}))}var jd=s.forwardRef(QH);jd.defaultProps={isIcon:!0},jd.displayName="IconFullscreen";const RH=jd;function kC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function MC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?kC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function e7(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=MC(MC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-rotate-left")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z"}))}var Td=s.forwardRef(e7);Td.defaultProps={isIcon:!0},Td.displayName="IconRotateLeft";const r7=Td;function AC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function DC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?AC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):AC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function t7(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=DC(DC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-rotate-right")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z"}))}var $d=s.forwardRef(t7);$d.defaultProps={isIcon:!0},$d.displayName="IconRotateRight";const n7=$d;function FC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function LC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?FC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):FC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function i7(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=LC(LC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-original-size")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"}),s.createElement("path",{fill:"currentColor",stroke:"none",d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"}),s.createElement("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"}))}var kd=s.forwardRef(i7);kd.defaultProps={isIcon:!0},kd.displayName="IconOriginalSize";const a7=kd;var o7=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function VC(e){var r=o7(s.useState(e),2),t=r[0],n=r[1],i=t==="beforeLoad",a=t==="loading",l=t==="error",o=t==="loaded",c=t==="lazyload";return{status:t,isBeforeLoad:i,isLoading:a,isError:l,isLoaded:o,isLazyLoad:c,setStatus:n}}var zC=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500],l7=function(){function e(r){this.updateScale(r)}return Object.defineProperty(e.prototype,"scales",{get:function(){return this.scaleAttr},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minScale",{get:function(){return this.scaleAttr[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScale",{get:function(){return this.scaleAttr[this.scaleAttr.length-1]},enumerable:!1,configurable:!0}),e.prototype.updateScale=function(r){var t=zC;if(Ke(r)&&r.filter(function(l){return l>0}).length&&(t=r.filter(function(l){return l>0})),t=t.map(function(l){return+(l/100).toFixed(2)}),!t.includes(1)){var n=this.findClosestIndex(1,t),i=t[n],a=i<1?n+1:n;t.splice(a,0,1)}this.scaleAttr=t},e.prototype.findClosestIndex=function(r,t){if(t===void 0&&(t=this.scaleAttr),!!t.length){if(t.length===1)return 0;for(var n=t.length-1,i=0;i<t.length;i++){var a=t[i];if(r===a){n=i;break}if(r<a){var l=t[i-1];n=l===void 0||Math.abs(l-r)<=Math.abs(a-r)?i-1:i;break}}return n}},e.prototype.getNextScale=function(r,t){t===void 0&&(t="zoomIn");var n=this.scaleAttr.indexOf(r);return n===-1&&(n=this.findClosestIndex(r)),t==="zoomIn"?n===this.scaleAttr.length-1?r:this.scaleAttr[n+1]:n===0?r:this.scaleAttr[n-1]},e}();const s7=l7;function u7(e,r,t,n,i){var a=t,l=n;return t&&(e.width>r.width?a=0:(r.left>e.left&&(a-=Math.abs(e.left-r.left)/i),r.right<e.right&&(a+=Math.abs(e.right-r.right)/i))),n&&(e.height>r.height?l=0:(r.top>e.top&&(l-=Math.abs(e.top-r.top)/i),r.bottom<e.bottom&&(l+=Math.abs(e.bottom-r.bottom)/i))),[a,l]}var HC=function(e){var r=e.style,t=e.className,n=e.prefixCls,i=e.popup,a=e.children,l=ee(n+"-trigger",t);return s.createElement(Ea,{style:r,className:l,popup:i,showArrow:!0},a)},Md=function(){return Md=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Md.apply(this,arguments)},c7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},Ad=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},Dd=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},f7=function(e,r){var t,n=e.prefixCls,i=e.previewPrefixCls,a=e.simple,l=a===void 0?!1:a,o=e.actions,c=o===void 0?[]:o,u=e.actionsLayout,f=u===void 0?[]:u,d=e.defaultActions,v=d===void 0?[]:d,m=new Set(f),p=function(w){return m.has(w.key)},h=Dd(Dd([],Ad(v.filter(p)),!1),Ad(c.filter(p)),!1),g=c.filter(function(w){return!m.has(w.key)}),y=h.sort(function(w,x){var E=f.indexOf(w.key),P=f.indexOf(x.key);return E>P?1:-1});if(m.has("extra")){var C=f.indexOf("extra");y.splice.apply(y,Dd([C,0],Ad(g),!1))}var b=function(w,x){var E;x===void 0&&(x=!1);var P=w.content,S=w.disabled,k=w.key,j=w.name,z=w.getContainer,A=w.onClick,M=c7(w,["content","disabled","key","name","getContainer","onClick"]),D=s.createElement("div",Md({className:ee(i+"-toolbar-action",(E={},E[i+"-toolbar-action-disabled"]=S,E)),key:k,onClick:function(I){!S&&A&&A(I)},onMouseDown:function(I){I.preventDefault()}},M),P&&s.createElement("span",{className:i+"-toolbar-action-content"},P),x&&j&&s.createElement("span",{className:i+"-toolbar-action-name"},j));return z?z(D):D};if(!y.length)return null;var O=y.map(function(w){var x=b(w,l);return!l&&w.name&&!w.getContainer?s.createElement(Xr,{content:w.name,key:w.key},x):x});return s.createElement("div",{ref:r,className:ee(i+"-toolbar",(t={},t[i+"-toolbar-simple"]=l,t),e.className),style:e.style},l&&s.createElement(HC,{prefixCls:n,className:i+"-trigger",popup:function(){return s.createElement("div",null,O)}},b({key:"trigger",content:s.createElement("span",null,s.createElement(Da,null))})),!l&&O)};const d7=s.forwardRef(f7);var Fd=s.createContext({previewGroup:!1,previewUrlMap:new Map,previewPropsMap:new Map,infinite:!0,currentIndex:0,setCurrentIndex:function(){return null},setPreviewUrlMap:function(){return null},registerPreviewUrl:function(){return null},registerPreviewProps:function(){return null},visible:!1,handleVisibleChange:function(){return null}});function v7(e){var r,t,n=e.current,i=e.previewCount,a=e.infinite,l=a===void 0?!1:a,o=e.onPrev,c=e.onNext,u=s.useContext(je).getPrefixCls,f=u("image-preview"),d=ee(f+"-arrow"),v=!l&&n<=0,m=!l&&n>=i-1;return s.createElement("div",{className:d},s.createElement("div",{className:ee(f+"-arrow-left",(r={},r[f+"-arrow-disabled"]=v,r)),onClick:function(p){p.preventDefault(),!v&&(o==null||o())}},s.createElement(Gn,null)),s.createElement("div",{className:ee(f+"-arrow-right",(t={},t[f+"-arrow-disabled"]=m,t)),onClick:function(p){p.preventDefault(),!m&&(c==null||c())}},s.createElement(Un,null)))}var Tn=function(){return Tn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Tn.apply(this,arguments)},p7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},Jt=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},Ld=90,m7={maskClosable:!0,closable:!0,breakPoint:316,actionsLayout:["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize","extra"],getPopupContainer:function(){return document.body},escToExit:!0,scales:zC,resetTranslate:!0};function h7(e,r){var t,n=s.useContext(Fd),i=n.previewGroup,a=n.previewUrlMap,l=n.currentIndex,o=n.setCurrentIndex,c=n.infinite,u=n.previewPropsMap,f=i?u.get(l):{},d=sr(e,m7,f),v=d.className,m=d.style,p=d.src,h=d.defaultVisible,g=d.maskClosable,y=d.closable,C=d.breakPoint,b=d.actions,O=d.actionsLayout,w=d.getPopupContainer,x=d.onVisibleChange,E=d.scales,P=d.escToExit,S=d.imgAttributes,k=S===void 0?{}:S,j=d.imageRender,z=d.extra,A=z===void 0?null:z,M=d.resetTranslate,D=i?a.get(l):p,I=Jt(s.useState(D),2),N=I[0],T=I[1],H=Jt(gr(!1,{defaultValue:h,value:d.visible}),2),_=H[0],$=H[1],F=s.useContext(je),W=F.getPrefixCls,L=F.locale,K=F.rtl,B=W("image"),V=B+"-preview",Y=ee(V,(t={},t[V+"-hide"]=!_,t[V+"-rtl"]=K,t),v),q=s.useRef(),G=s.useRef(),R=s.useRef(),Z=s.useRef(!1),ue=s.useRef({pageX:0,pageY:0,originX:0,originY:0}),J=VC("loading"),Q=J.isLoading,X=J.isLoaded,ie=J.setStatus,ce=Jt(s.useState(!1),2),te=ce[0],fe=ce[1],Ae=Jt(s.useState({x:0,y:0}),2),ae=Ae[0],_e=Ae[1],se=Jt(s.useState(1),2),de=se[0],be=se[1],Ee=Jt(s.useState(!1),2),Ce=Ee[0],Oe=Ee[1],ke=Jt(s.useState(0),2),oe=ke[0],we=ke[1],xe=Jt(s.useState(!1),2),De=xe[0],Re=xe[1],rr=s.useMemo(function(){return new s7(E)},[]),Ie=k.onLoad,Ve=k.onError,nr=k.onMouseDown,Me=k.style,We=k.className,ye=p7(k,["onLoad","onError","onMouseDown","style","className"]);function le(){_e({x:0,y:0}),be(1),we(0)}s.useImperativeHandle(r,function(){return{reset:le}});var $e=Jt(s.useState(),2),Se=$e[0],Xe=$e[1],Be=s.useCallback(function(){return Se},[Se]);s.useEffect(function(){var Le=w==null?void 0:w(),pr=ot.findDOMNode(Le)||document.body;Xe(pr)},[w]),Nb(Be,{hidden:_});var Ye=s.useMemo(function(){return!bn&&Se===document.body},[Se]);function ir(Le){var pr=a.size;c&&(Le%=pr,Le<0&&(Le=pr-Math.abs(Le))),Le!==l&&Le>=0&&Le<=pr-1&&o(Le)}function yr(){ir(l-1)}function fr(){ir(l+1)}function Lr(){we(oe===0?360-Ld:oe-Ld)}function Br(){we((oe+Ld)%360)}var Ir=s.useRef(null),at=function(){!Ce&&Oe(!0),Ir.current&&clearTimeout(Ir.current),Ir.current=setTimeout(function(){Oe(!1)},1e3)},Ur=function(Le){de!==Le&&(be(Le),at())};function U(){var Le=rr.getNextScale(de,"zoomIn");Ur(Le)}function me(){var Le=rr.getNextScale(de,"zoomOut");Ur(Le)}function Pe(Le){Le.deltaY>0?de>=rr.minScale&&me():de<=rr.maxScale&&U()}function Ue(){Ur(1)}function tr(){var Le=R.current.getBoundingClientRect(),pr=q.current.getBoundingClientRect(),Gr=Le.height/(pr.height/de),Yr=Le.width/(pr.width/de),pn=Math.max(Gr,Yr);Ur(pn)}function ne(Le){Le.target===Le.currentTarget&&g&&Ne()}function he(){Ne()}function Ne(){_&&(x&&x(!1,_),jr(d.visible)&&$(!1))}function qe(Le){if(Le&&Le.length){var pr=Le[0].contentRect,Gr=pr.width<C;fe(Gr)}}var Je=function(){if(!(!R.current||!q.current)){var Le=R.current.getBoundingClientRect(),pr=q.current.getBoundingClientRect(),Gr=Jt(u7(Le,pr,ae.x,ae.y,de),2),Yr=Gr[0],pn=Gr[1];(Yr!==ae.x||pn!==ae.y)&&_e({x:Yr,y:pn})}},ze=function(Le){if(_&&De){Le.preventDefault&&Le.preventDefault();var pr=ue.current,Gr=pr.originX,Yr=pr.originY,pn=pr.pageX,ta=pr.pageY,Qt=Gr+(Le.pageX-pn)/de,po=Yr+(Le.pageY-ta)/de;_e({x:Qt,y:po})}},or=function(Le){Le.preventDefault&&Le.preventDefault(),Re(!1)};function Er(Le){ie("loaded"),Ie&&Ie(Le)}function qr(Le){ie("error"),Ve&&Ve(Le)}var cr=function(Le){var pr;(pr=Le.preventDefault)===null||pr===void 0||pr.call(Le),Re(!0);var Gr=Le.type==="touchstart"?Le.touches[0]:Le;ue.current.pageX=Gr.pageX,ue.current.pageY=Gr.pageY,ue.current.originX=ae.x,ue.current.originY=ae.y,nr==null||nr(Le)};s.useEffect(function(){return _&&De&&(Pr(document,"mousemove",ze,!1),Pr(document,"mouseup",or,!1)),function(){$r(document,"mousemove",ze,!1),$r(document,"mouseup",or,!1)}},[_,De]),s.useEffect(function(){M&&!De&&Je()},[De,ae]),s.useEffect(function(){M&&Je()},[de]),s.useEffect(function(){_&&le()},[_]),s.useEffect(function(){T(D),ie(D?"loading":"loaded"),le()},[D]),Wi(function(){rr.updateScale(E),be(1)},[E]),s.useEffect(function(){var Le=function(pr){if(pr)switch(pr.key){case Oa.key:P&&Ne();break;case cu.key:fr();break;case uu.key:yr();break;case Yo.key:U();break;case Zo.key:me();break}};return _&&!De&&!Z.current&&(Z.current=!0,Pr(document,"keydown",Le)),function(){Z.current=!1,$r(document,"keydown",Le)}},[_,P,De,l,de]);var It=[{key:"fullScreen",name:L.ImagePreview.fullScreen,content:s.createElement(RH,null),onClick:tr},{key:"rotateRight",name:L.ImagePreview.rotateRight,content:s.createElement(n7,null),onClick:Br},{key:"rotateLeft",name:L.ImagePreview.rotateLeft,content:s.createElement(r7,null),onClick:Lr},{key:"zoomIn",name:L.ImagePreview.zoomIn,content:s.createElement(JH,null),onClick:U,disabled:de===rr.maxScale},{key:"zoomOut",name:L.ImagePreview.zoomOut,content:s.createElement(ZH,null),onClick:me,disabled:de===rr.minScale},{key:"originalSize",name:L.ImagePreview.originalSize,content:s.createElement(a7,null),onClick:Ue}],Ct=function(){var Le,pr,Gr=s.createElement("img",Tn({onWheel:Pe,ref:q,className:ee(We,V+"-img",(Le={},Le[V+"-img-moving"]=De,Le)),style:Tn(Tn({},Me),{transform:"translate("+ae.x+"px, "+ae.y+"px) rotate("+oe+"deg)"}),key:N,src:N},ye,{onLoad:Er,onError:qr,onMouseDown:function(Yr){Yr.button===0&&cr(Yr)}}));return(pr=j==null?void 0:j(Gr))!==null&&pr!==void 0?pr:Gr};return s.createElement(Pb,{visible:_,forceRender:!1,getContainer:Be},s.createElement(yn,Tn({},F,{getPopupContainer:function(){return R.current}}),s.createElement("div",{className:Y,style:Tn(Tn({},m||{}),Ye?{}:{zIndex:"inherit",position:"absolute"})},s.createElement(Ot,{in:_,timeout:400,appear:!0,classNames:"fadeImage",mountOnEnter:!0,unmountOnExit:!1,onEnter:function(Le){Le.parentNode.style.display="block",Le.style.display="block"},onExited:function(Le){Le.parentNode.style.display="",Le.style.display="none"}},s.createElement("div",{className:V+"-mask"})),_&&s.createElement(Qr,{onResize:qe},s.createElement("div",{ref:R,className:V+"-wrapper",onClick:ne},s.createElement("div",{ref:G,className:V+"-img-container",style:{transform:"scale("+de+", "+de+")"},onClick:ne},Ct(),Q&&s.createElement("div",{className:V+"-loading"},s.createElement(Wt,null))),s.createElement(Ot,{in:Ce,timeout:400,appear:!0,classNames:"fadeImage",unmountOnExit:!0},s.createElement("div",{className:V+"-scale-value"},(de*100).toFixed(0),"%")),X&&s.createElement(d7,{prefixCls:B,previewPrefixCls:V,actions:b,actionsLayout:O,defaultActions:It,simple:te}),y&&s.createElement("div",{className:V+"-close-btn",onClick:he},s.createElement(jt,null)),i&&s.createElement(v7,{previewCount:a.size,current:l,infinite:c,onPrev:yr,onNext:fr}),A)))))}var WC=s.forwardRef(h7);WC.displayName="ImagePreview";const Vd=WC;var zd=function(){return zd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},zd.apply(this,arguments)},g7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},so=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function y7(e,r){var t=e.children,n=e.srcList,i=e.infinite,a=e.current,l=e.defaultCurrent,o=e.onChange,c=e.visible,u=e.defaultVisible,f=e.forceRender,d=e.onVisibleChange,v=g7(e,["children","srcList","infinite","current","defaultCurrent","onChange","visible","defaultVisible","forceRender","onVisibleChange"]),m=so(gr(!1,{value:c,defaultValue:u}),2),p=m[0],h=m[1],g=s.useMemo(function(){return n?new Map(n.map(function(_,$){return[$,{url:_,preview:!0}]})):null},[n]),y=Ho(),C=function(){return g?new Map(g):new Map},b=so(s.useState(C()),2),O=b[0],w=b[1],x=s.useRef(),E=x.current||new Map,P=function(_){x.current=_(x.current)};s.useEffect(function(){y||w(C())},[g]);var S=new Map(Array.from(O).filter(function(_){var $=so(_,2),F=$[1].preview;return F}).map(function(_){var $=so(_,2),F=$[0],W=$[1].url;return[F,W]})),k=so(gr(0,{value:a,defaultValue:l}),2),j=k[0],z=k[1];function A(_,$,F){return g||w(function(W){return new Map(W).set(_,{url:$,preview:F})}),function(){g||w(function(L){var K=new Map(L),B=K.delete(_);return B?K:L})}}function M(_,$){return P(function(F){return new Map(F).set(_,ge($)?$:{})}),function(){P(function(W){var L=new Map(W),K=L.delete(_);return K?L:W})}}var D=s.useRef();s.useImperativeHandle(r,function(){return{reset:function(){D.current&&D.current.reset()}}});var I=function(_,$){var F=jr($)?p:$;d&&d(_,F),h(_)},N=function(_){o&&o(_),z(_)},T=function(_){var $=0,F=function(W){var L=s.Children.map(W,function(K){if(K&&K.props&&K.type){var B=K.type.displayName;if(B==="Image")return s.cloneElement(K,{_index:$++})}return K&&K.props&&K.props.children?s.cloneElement(K,{children:F(K.props.children)}):K});return!Ke(W)&&s.Children.count(W)===1?L[0]:L};return F(_)},H=function(){var _=Array.from(S.values());return _.length>0?s.createElement("div",{style:{display:"none"}},_.map(function($){return s.createElement("img",{key:$,src:$})})):null};return s.createElement(Fd.Provider,{value:{previewGroup:!0,previewUrlMap:S,previewPropsMap:E,infinite:i,currentIndex:j,setCurrentIndex:N,setPreviewUrlMap:w,registerPreviewUrl:A,registerPreviewProps:M,visible:p,handleVisibleChange:I}},T(t),s.createElement(Vd,zd({ref:D,src:"",visible:p,onVisibleChange:I},v)),f&&H())}var BC=s.forwardRef(y7);BC.displayName="ImagePreviewGroup";const b7=BC;function UC(e){var r=e.title,t=e.description,n=e.actions,i=r||t,a=n&&n.length,l=i||a;return[l,i,a]}var C7=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},w7=function(e){var r,t=e.style,n=e.className,i=e.title,a=e.description,l=e.actions,o=e.prefixCls,c=e.simple,u=C7(UC({title:i,description:a,actions:l}),3),f=u[0],d=u[1],v=u[2];if(!f)return null;var m=o+"-footer",p=ee(m,n,(r={},r[m+"-with-actions"]=v,r)),h=function(){var g=s.createElement("div",{className:o+"-actions-list"},l.map(function(y,C){return s.createElement("div",{className:o+"-actions-item",key:""+C},y)}));return c?s.createElement("div",{className:o+"-actions-list"},s.createElement(HC,{prefixCls:o,popup:function(){return g}},s.createElement("div",{className:ee(o+"-actions-item",o+"-actions-item-trigger")},s.createElement("span",null,s.createElement(Da,null))))):g};return s.createElement("div",{className:p,style:t},d&&s.createElement("div",{className:ee(m+"-block",o+"-caption")},i&&s.createElement("div",{className:o+"-caption-title",title:i},i),a&&!c&&s.createElement("div",{className:o+"-caption-description",title:a},a)),v&&s.createElement("div",{className:ee(m+"-block",o+"-actions")},h()))},GC=!bn&&!jr(window==null?void 0:window.IntersectionObserver);function O7(e,r){r===void 0&&(r={});var t=s.useRef(),n=function(){t.current&&(t.current.disconnect(),t.current=null)},i=function(a){a&&(n(),GC&&(t.current=new IntersectionObserver(e,r),t.current.observe(a)))};return{observer:t.current,cor:i,dor:n}}var x7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},KC=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function _7(e){var r=e.defaultInView,t=e.unobserverOnEnter,n=t===void 0?!0:t,i=e.onChange,a=e.target,l=x7(e,["defaultInView","unobserverOnEnter","onChange","target"]),o=KC(s.useState(GC?r:!0),2),c=o[0],u=o[1],f=s.useCallback(function(h,g){var y=KC(h,1),C=y[0],b=g.thresholds.some(function(w){return C.intersectionRatio>=w}),O=b&&C.isIntersecting;u(O),i==null||i(O,C),O&&n&&g.unobserve(C.target)},[i,n]),d=O7(f,l),v=d.cor,m=d.dor,p=d.observer;return s.useEffect(function(){var h=r&&n;return h?m():a&&v(a),m},[a,r,n]),{inView:c,observer:p}}var uo=function(){return uo=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},uo.apply(this,arguments)},E7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},qC=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},Hd=0,S7={footerPosition:"inner",preview:!0};function P7(e,r){var t,n=s.useContext(je),i=n.getPrefixCls,a=n.componentConfig,l=n.rtl,o=sr(e,S7,a==null?void 0:a.Image),c=o.style,u=o.className,f=o.src,d=o.width,v=o.height,m=o.title,p=o.description,h=o.actions,g=o.footerPosition,y=o.simple,C=o.loader,b=o.loaderClassName,O=o.error,w=o.preview,x=o.previewProps,E=o.alt,P=o.onClick,S=o.index,k=o._index,j=o.onError,z=o.onLoad,A=o.lazyload,M=E7(o,["style","className","src","width","height","title","description","actions","footerPosition","simple","loader","loaderClassName","error","preview","previewProps","alt","onClick","index","_index","onError","onLoad","lazyload"]),D=On(),I=s.useContext(Fd),N=I.previewGroup,T=I.handleVisibleChange,H=I.registerPreviewUrl,_=I.registerPreviewProps,$=I.setCurrentIndex,F=s.useMemo(function(){return ge(x)?x:{}},[x]),W=s.useMemo(function(){return ge(A)?A:{}},[A]),L=s.useMemo(function(){return lr(S)||lr(k)?(Hd=lr(S)?S:k,Hd):Hd++},[]),K=F.src||f,B=qC(UC({title:m,description:p,actions:h}),1),V=B[0],Y=VC("beforeLoad"),q=Y.isLoading,G=Y.isError,R=Y.isLoaded,Z=Y.isBeforeLoad,ue=Y.setStatus,J=s.useRef(!1),Q=qC(gr(!1,{defaultValue:F.defaultVisible,value:F.visible}),2),X=Q[0],ie=Q[1],ce=s.useMemo(function(){return ur(F,["visible","defaultVisible","src","onVisibleChange"])},[F]),te=i("image"),fe=!jr(F.visible),Ae=ee(te,(t={},t[te+"-rtl"]=l,t[te+"-simple"]=y,t[te+"-before-load"]=Z,t[te+"-loading"]=q,t[te+"-loading-error"]=G,t[te+"-with-footer-inner"]=R&&V&&g==="inner",t[te+"-with-footer-outer"]=R&&V&&g==="outer",t[te+"-with-preview"]=R&&w&&!G&&!fe,t),u),ae=s.useRef();function _e(oe){J.current=!0,ue("loaded"),z&&z(oe)}function se(oe){J.current=!0,ue("error"),j&&j(oe)}function de(oe){w&&N?($(L),T(!0)):w&&be(!0),P&&P(oe)}function be(oe){F.onVisibleChange&&F.onVisibleChange(oe,X),ie(oe)}var Ee=_7(uo({target:ae.current,defaultInView:!A},W)).inView;s.useEffect(function(){J.current=!1},[f]),s.useEffect(function(){ae.current&&(Ee?((ae.current.src||f)&&ae.current.src!==f&&(ae.current.src=f),!J.current&&!ae.current.complete&&ue("loading")):ue("lazyload"))},[f,Ee]),s.useEffect(function(){if(N){var oe=_(L,ce);return function(){return oe(L)}}},[L,N,ce]),s.useEffect(function(){if(N){var oe=H(L,K,w);return function(){return oe(L)}}},[L,N,K,w]);var Ce=s.createElement("div",{className:te+"-error"},s.createElement("div",{className:te+"-error-icon"},s.createElement(qH,null)),E&&s.createElement("div",{className:te+"-error-alt"},E)),Oe=s.createElement("div",{className:ee(te+"-loader",b)},s.createElement("div",{className:te+"-loader-spin"},s.createElement(Wt,null),s.createElement("div",{className:te+"-loader-spin-text"},"Loading"))),ke=function(){if(C===!0)return Oe;var oe=C||Oe;return A||C?oe:null};return s.createElement("div",{className:Ae,style:Object.assign({width:d,height:v},c),ref:r},s.createElement("img",uo({ref:ae,className:te+"-img",tabIndex:0},D({onPressEnter:de}),M,A||f===void 0?{}:{src:f},{title:m,width:d,height:v,onLoad:_e,onError:se,onClick:de,alt:E})),!R&&s.createElement("div",{className:te+"-overlay"},G&&(O||Ce),q&&ke()),R&&V&&s.createElement(w7,{title:m,description:p,actions:h,prefixCls:te,simple:y}),R&&w&&s.createElement(Vd,uo({visible:X,src:K},ce,{onVisibleChange:be})))}var N7=s.forwardRef(P7),Jl=N7;Jl.Preview=Vd,Jl.PreviewGroup=b7,Jl.displayName="Image";const I7=Jl,co=()=>localStorage.getItem("token");async function Hr(e,r,t,n=!0){let i;return t==="get"?i=Ar.get(e,{params:r,timeout:1e3*60*10,headers:{Authorization:co()}}):t==="post"?i=Ar.post(e,r,{headers:{Authorization:co()}}):t==="put"?i=Ar.put(e,r,{headers:{Authorization:co()}}):t==="delete"?i=Ar.delete(e,{params:r,headers:{Authorization:co()}}):t==="patch"&&(i=Ar.patch(e,r,{headers:{Authorization:co()}})),new Promise((a,l)=>{i.then(o=>{o.data.code!==0?(n&&Zr.error(o.data.msg),l(o.data.msg)):a(o.data.data)}).catch(o=>{var c;((c=o.response)==null?void 0:c.status)==401?n&&Zr.error("你的账户已过期,请重新登录"):n&&Zr.error("请求失败"),console.log("请求失败",o),l("请求失败")})})}const Wr="/api/v1",j7=e=>Hr(`${Wr}/common/user/login`,e,"post"),T7=e=>Hr(`${Wr}/common/user/register`,e,"post"),$7=e=>Hr(`${Wr}/common/user/reset/password`,e,"post"),YC=e=>Hr(`${Wr}/common/user/email/token`,{email:e},"post"),k7=()=>Hr(`${Wr}/user/user/info`,{},"get",!1),M7=()=>Hr(`${Wr}/user/point/checkin`,{},"post"),A7=e=>Hr(`${Wr}/user/point/exchange/${e}`,{},"post"),D7=(e,r)=>Hr(`${Wr}/user/point/record/list?page_no=${e}&page_size=${r}`,{},"get"),F7=()=>Hr(`${Wr}/user/pay/methods`,{},"get"),L7=(e,r)=>Hr(`${Wr}/user/pay/code`,{id:e,price:r},"post"),V7=e=>Hr(`${Wr}/user/pay/status/${e}`,{},"get"),z7=e=>Hr(`${Wr}/user/point/deducting`,e,"post"),H7=e=>Hr(`${Wr}/common/tool/list?page_no=${e.current}&page_size=${e.size}&tag=${e.tag||""}&name=${e.name||""}`,{},"get"),W7=()=>Hr(`${Wr}/common/tool/tags`,{},"get"),B7=()=>Hr(`${Wr}/user/cloud/tencent/cos`,{},"get"),U7=e=>Hr(`${Wr}/user/task`,e,"post"),G7=()=>Hr(`${Wr}/user/cloud/mqtt/task`,{},"get"),K7=()=>Hr(`${Wr}/common/material/tags`,{},"get"),q7=e=>Hr(`${Wr}/common/material?page_no=${e.current}&page_size=${e.size}&tag=${e.tag||""}&name=${e.name||""}`,{},"get"),Y7=e=>Hr(`${Wr}/user/material/${e}`,{},"get"),Z7=e=>Hr(`${Wr}/user/material/url`,{key_list:e},"post"),X7=e=>Hr(`${Wr}${e.url}`,e.data,e.method);var Wd;(function(e){e[e.Local=0]="Local",e[e.Cos=1]="Cos"})(Wd||(Wd={}));var Bd;(function(e){e[e.TaskCreate=0]="TaskCreate",e[e.TaskStop=1]="TaskStop",e[e.TaskRestore=2]="TaskRestore",e[e.MqttSend=3]="MqttSend",e[e.ActionClose=4]="ActionClose",e[e.MqttReconnect=5]="MqttReconnect",e[e.TaskActionAdd=6]="TaskActionAdd",e[e.NavigateTo=7]="NavigateTo",e[e.SetToken=8]="SetToken",e[e.UploadFile=9]="UploadFile"})(Bd||(Bd={}));var Ud;(function(e){e[e.TaskInfoUpdate=0]="TaskInfoUpdate",e[e.MqttBack=1]="MqttBack",e[e.TaskActionAdd=2]="TaskActionAdd",e[e.NavigateTo=3]="NavigateTo",e[e.FileUpload=4]="FileUpload"})(Ud||(Ud={}));var mr;(function(e){e.Waiting="等待",e.Running="进行",e.Fail="失败",e.Success="成功",e.Canceled="取消"})(mr||(mr={}));var Gd;(function(e){e[e.Task=0]="Task",e[e.Lab=1]="Lab"})(Gd||(Gd={}));var Kd;(function(e){e[e.Create=0]="Create",e[e.Progress=1]="Progress",e[e.Success=2]="Success",e[e.Error=3]="Error",e[e.Cancel=4]="Cancel"})(Kd||(Kd={}));var qd;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error"})(qd||(qd={}));var Yd;(function(e){e[e.Ffmpeg=0]="Ffmpeg",e[e.Cloud=1]="Cloud",e[e.Download=2]="Download"})(Yd||(Yd={}));var Zd;(function(e){e[e.SubtitleEmbed=0]="SubtitleEmbed",e[e.NoVideo=1]="NoVideo",e[e.NoAudio=2]="NoAudio",e[e.AudioEncode=3]="AudioEncode",e[e.VideoEncode=4]="VideoEncode",e[e.MergeFile=5]="MergeFile",e[e.Format=6]="Format",e[e.AddOption=7]="AddOption",e[e.OutputOption=8]="OutputOption",e[e.InputOption=9]="InputOption"})(Zd||(Zd={}));var Xd={exports:{}},fo={};/**
53
+ */var K0;function J8(){return K0||(K0=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),p=!1,h=!1,g=!1,y=!1,C=!1,b;b=Symbol.for("react.module.reference");function O(J){return!!(typeof J=="string"||typeof J=="function"||J===t||J===i||C||J===n||J===u||J===f||y||J===m||p||h||g||typeof J=="object"&&J!==null&&(J.$$typeof===v||J.$$typeof===d||J.$$typeof===a||J.$$typeof===l||J.$$typeof===c||J.$$typeof===b||J.getModuleId!==void 0))}function w(J){if(typeof J=="object"&&J!==null){var Q=J.$$typeof;switch(Q){case e:var X=J.type;switch(X){case t:case i:case n:case u:case f:return X;default:var ie=X&&X.$$typeof;switch(ie){case o:case l:case c:case v:case d:case a:return ie;default:return Q}}case r:return Q}}}var x=l,E=a,P=e,S=c,k=t,j=v,z=d,A=r,M=i,D=n,I=u,N=f,T=!1,H=!1;function _(J){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(J){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(J){return w(J)===l}function W(J){return w(J)===a}function L(J){return typeof J=="object"&&J!==null&&J.$$typeof===e}function K(J){return w(J)===c}function B(J){return w(J)===t}function V(J){return w(J)===v}function Y(J){return w(J)===d}function q(J){return w(J)===r}function G(J){return w(J)===i}function R(J){return w(J)===n}function Z(J){return w(J)===u}function ue(J){return w(J)===f}_r.ContextConsumer=x,_r.ContextProvider=E,_r.Element=P,_r.ForwardRef=S,_r.Fragment=k,_r.Lazy=j,_r.Memo=z,_r.Portal=A,_r.Profiler=M,_r.StrictMode=D,_r.Suspense=I,_r.SuspenseList=N,_r.isAsyncMode=_,_r.isConcurrentMode=$,_r.isContextConsumer=F,_r.isContextProvider=W,_r.isElement=L,_r.isForwardRef=K,_r.isFragment=B,_r.isLazy=V,_r.isMemo=Y,_r.isPortal=q,_r.isProfiler=G,_r.isStrictMode=R,_r.isSuspense=Z,_r.isSuspenseList=ue,_r.isValidElementType=O,_r.typeOf=w}()),_r}process.env.NODE_ENV==="production"?Rf.exports=X8():Rf.exports=J8();var Q8=Rf.exports;function q0(e){var r=[];return s.Children.forEach(e,function(t){Q8.isFragment(t)&&t.props?r=r.concat(q0(t.props.children)):t!=null&&r.push(t)}),r}var ed=function(){return ed=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ed.apply(this,arguments)},R8=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},e6={size:"small",direction:"horizontal"};function r6(e,r){var t,n=s.useContext(je),i=n.getPrefixCls,a=n.componentConfig,l=n.rtl,o=sr(e,e6,a==null?void 0:a.Space),c=o.className,u=o.style,f=o.children,d=o.size,v=o.direction,m=o.align,p=o.wrap,h=o.split,g=R8(o,["className","style","children","size","direction","align","wrap","split"]),y=i("space"),C=m||(v==="horizontal"?"center":""),b=ee(y,(t={},t[y+"-"+v]=v,t[y+"-align-"+C]=C,t[y+"-wrap"]=p,t[y+"-rtl"]=l,t),c);function O(E){if(lr(E))return E;switch(E){case"mini":return 4;case"small":return 8;case"medium":return 16;case"large":return 24;default:return 8}}var w=q0(f);function x(E){var P,S,k,j,z=w.length===E+1,A=l?"marginLeft":"marginRight";if(typeof d=="string"||typeof d=="number"){var M=O(d);return p?z?{marginBottom:M}:(P={},P[""+A]=M,P.marginBottom=M,P):z?{}:(S={},S[v==="vertical"?"marginBottom":A]=M,S)}if(Ke(d)){var D=O(d[0]),I=O(d[1]);return p?z?{marginBottom:I}:(k={},k[""+A]=D,k.marginBottom=I,k):v==="vertical"?{marginBottom:I}:(j={},j[""+A]=D,j)}}return s.createElement("div",ed({ref:r,className:b,style:u},g),w.map(function(E,P){var S,k=((S=E)===null||S===void 0?void 0:S.key)||P,j=h!=null&&P>0;return s.createElement(s.Fragment,{key:k},j&&s.createElement("div",{className:y+"-item-split"},h),s.createElement("div",{className:y+"-item",style:x(P)},E))}))}var Y0=s.forwardRef(r6);Y0.displayName="Space";const Yt=Y0;function Z0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function X0(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Z0(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z0(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function t6(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=X0(X0({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-filter")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M30 42V22.549a1 1 0 0 1 .463-.844l10.074-6.41A1 1 0 0 0 41 14.45V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6.451a1 1 0 0 0 .463.844l10.074 6.41a1 1 0 0 1 .463.844V37"}))}var rd=s.forwardRef(t6);rd.defaultProps={isIcon:!0},rd.displayName="IconFilter";const n6=rd;var J0={table:"table",header:{operations:function(e){var r=e.selectionNode,t=e.expandNode;return[{name:"expandNode",node:t},{name:"selectionNode",node:r}]},wrapper:"div",thead:"thead",row:"tr",th:"th",cell:"div"},body:{operations:function(e){var r=e.selectionNode,t=e.expandNode;return[{name:"expandNode",node:t},{name:"selectionNode",node:r}]},wrapper:"div",tbody:"tbody",row:"tr",td:"td",cell:"span"}};function ai(e){var r=s.useMemo(function(){return ge(e)?Rg({},J0,e):J0},[e]);return{getHeaderComponentOperations:r.header.operations,getBodyComponentOperations:r.body.operations,ComponentTable:r.table,ComponentHeaderWrapper:r.header.wrapper,ComponentThead:r.header.thead,ComponentHeaderRow:r.header.row,ComponentTh:r.header.th,ComponentHeaderCell:r.header.cell,ComponentBodyWrapper:r.body.wrapper,ComponentTbody:r.body.tbody,ComponentBodyRow:r.body.row,ComponentTd:r.body.td,ComponentBodyCell:r.body.cell}}var Pt=function(){return Pt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Pt.apply(this,arguments)},Wl=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},i6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function a6(e,r){return e==="ascend"?r.Table.sortAscend:e==="descend"?r.Table.sortDescend:r.Table.cancelSort}var o6={bottom:0};function l6(e){var r,t,n,i,a=e.onSort,l=e.onFilter,o=e.onHandleFilter,c=e.onHandleFilterReset,u=e.currentFilters,f=u===void 0?{}:u,d=e.currentSorter,v=e._key,m=e.dataIndex,p=e.title,h=e.sorter,g=e.sortDirections,y=g===void 0?["ascend","descend"]:g,C=e.filters,b=C===void 0?[]:C,O=e.columnFixedStyle,w=e.className,x=e.cellStyle,E=e.headerCellStyle,P=e.rowSpan,S=e.colSpan,k=e.headerCellProps,j=e.prefixCls,z=e.align,A=z===void 0?"left":z,M=e.components,D=e.filterIcon,I=e.filterDropdown,N=e.filterMultiple,T=N===void 0?!0:N,H=e.ellipsis,_=e.filterDropdownProps,$=e.onFilterDropdownVisibleChange,F=e.column,W=e.showSorterTooltip,L=e.index,K=s.useContext(je),B=K.locale,V=K.rtl,Y=v||m||L,q=Wl(gr([],{value:f[Y]||[]}),3),G=q[0],R=q[1],Z=q[2],ue=Wl(s.useState(!1),2),J=ue[0],Q=ue[1],X=Wl(s.useState(!1),2),ie=X[0],ce=X[1],te=h&&Ke(y)&&y.length,fe=te?Ae():void 0;s.useEffect(function(){R(f[Y]||[])},[f,Y]),s.useEffect(function(){G&&G!==Z&&R(G)},[J]);function Ae(){var Me=d&&d.direction;if(!Me||d&&d.field!==Y)return y[0];var We=y.indexOf(Me);if(We<y.length)return y[We+1]}function ae(){G&&(o&&o({onFilter:l,filters:b,dataIndex:Y},Z),se(!1))}function _e(){c({dataIndex:Y}),se(!1)}function se(Me){Q(Me),$&&$(Me)}function de(Me,We){var ye=i6([],Wl(Z),!1);if(T)We?ye=ye.concat(Me):ye.splice(ye.findIndex(function(le){return le===Me}),1);else if(ye.length>0)if(ye[0]!==Me)ye=[Me];else return;else ye=[Me];R(ye)}function be(Me){R(Me||Z),Q(!1),o&&o({filters:b,onFilter:l,dataIndex:Y},Me||Z)}function Ee(){return typeof I=="function"?I({filterKeys:Z,setFilterKeys:function(Me,We){R(Me),We==null||We()},confirm:be}):s.createElement("div",{className:j+"-filters-popup"},s.createElement("div",{className:j+"-filters-list"},b.map(function(Me){var We=Z.findIndex(function(ye){return ye===Me.value})!==-1;return s.createElement("div",{className:j+"-filters-item",key:Me.value},T?s.createElement(Pa,{checked:We,onChange:function(ye){return de(Me.value,ye)}},Me.text):s.createElement(En,{checked:We,onChange:function(ye){return de(Me.value,ye)}},Me.text))})),s.createElement(Yt,{className:j+"-filters-btn"},s.createElement(Or,{onClick:_e,size:"mini"},B.Table.resetText),s.createElement(Or,{onClick:ae,type:"primary",size:"mini"},B.Table.okText)))}var Ce=function(Me){var We;return ee(j+"-sorter-icon",(We={},We[j+"-sorter-icon-active"]=d&&d.direction===Me&&d.field===Y,We))},Oe=ee(j+"-filters",(r={},r[j+"-filters-open"]=J,r[j+"-filters-active"]=G&&G.length,r)),ke=Pt({},O);ge(x)&&(ke=Pt(Pt({},ke),x)),ge(E)&&(ke=Pt(Pt({},ke),E)),A&&A!=="left"&&(ke.textAlign=A);var oe={style:ke,key:v||Y};S&&S>1&&(oe.colSpan=S),P&&P>1&&(oe.rowSpan=P);var we=ai(M),xe=we.ComponentTh,De=we.ComponentHeaderCell,Re=Ke(b)&&b.length>0||typeof I=="function",rr=H&&typeof p=="string"?{title:p}:{},Ie=_&&_.triggerProps,Ve=s.createElement(s.Fragment,null,te?s.createElement(Xr,Pt({content:a6(fe,B),disabled:!W},ge(W)?W:{}),s.createElement("div",{className:j+"-cell-with-sorter",onMouseEnter:function(){ce(!0)},onMouseLeave:function(){ce(!1)},onClick:function(){return a(fe,Y)}},s.createElement("span",Pt({className:j+"-th-item-title"},rr),p),te&&s.createElement("div",{className:ee(j+"-sorter",(t={},t[j+"-sorter-direction-one"]=y.length===1,t))},y.indexOf("ascend")!==-1&&s.createElement("div",{className:Ce("ascend")},s.createElement(lg,null)),y.indexOf("descend")!==-1&&s.createElement("div",{className:Ce("descend")},s.createElement(ig,null))))):s.createElement("span",Pt({className:j+"-th-item-title"},rr),p),Re&&s.createElement(Ea,Pt({popup:Ee,trigger:"click",classNames:"slideDynamicOrigin",position:V?"bl":"br",popupAlign:o6,popupVisible:J,onVisibleChange:se},Ie),s.createElement("div",{className:Oe},D||s.createElement(n6,null)))),nr=ee(j+"-th-item",(n={},n[j+"-cell-text-ellipsis"]=H,n[j+"-cell-mouseenter"]=ie,n[j+"-cell-next-"+fe]=ie&&fe,n[j+"-col-has-sorter"]=te,n[j+"-col-has-filter"]=Re,n));return S!==0&&s.createElement(xe,Pt({className:ee(j+"-th",(i={},i[j+"-col-sorted"]=d&&d.direction&&d.field===Y,i),w)},oe,k),pt(De)?s.createElement(De,{className:nr},Ve):s.createElement(De,{className:nr,column:F},Ve))}var Ri="table_internal_selection_key",ea="table_internal_expand_key",Zt=function(){return Zt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Zt.apply(this,arguments)};function s6(e){var r=e.activeSorters,t=e.expandedRowRender,n=e.expandProps,i=n===void 0?{}:n,a=e.onSort,l=e.onHandleFilter,o=e.onHandleFilterReset,c=e.onHeaderRow,u=e.prefixCls,f=e.currentFilters,d=e.components,v=e.data,m=e.selectedRowKeys,p=e.rowSelection,h=e.allSelectedRowKeys,g=h===void 0?[]:h,y=e.groupColumns,C=e.stickyOffsets,b=e.groupStickyClassNames,O=e.showSorterTooltip,w=s.useContext(je).rtl,x=ai(d),E=x.ComponentThead,P=x.ComponentHeaderRow,S=x.getHeaderComponentOperations,k=p&&(p.type==="checkbox"||!("type"in p)),j=p&&"checkAll"in p?p.checkAll:!0,z=p&&p.type==="radio",A=i.columnTitle,M=s.useMemo(function(){var N=new Set(g);return m.filter(function(T){return N.has(T)})},[m,g]),D=y.length>1?{rowSpan:y.length}:{},I=ee(u+"-th",u+"-operation");return s.createElement(E,null,y.map(function(N,T){var H=c&&c(N,T),_=(k||z)&&T===0&&s.createElement("th",{className:ee(I,u+"-"+(z?"radio":"checkbox"))},s.createElement("div",{className:u+"-th-item"},j&&!z?s.createElement(Pa,{indeterminate:v&&M.length>0&&M.length!==g.length,checked:v&&M.length!==0&&M.length===g.length,disabled:!g.length,onChange:e.onCheckAll}):null,p&&p.columnTitle)),$=t&&s.createElement("th",{className:ee(I,u+"-expand")},A&&s.createElement("div",{className:u+"-th-item"},A)),F=b[T],W=S({selectionNode:_,expandNode:$});return s.createElement(P,Zt({},H,{key:T,className:u+"-tr"}),N.map(function(L,K){var B,V,Y,q,G,R=L.$$columnIndex,Z=0;Array.isArray(R)&&R.length===2?Z=L.fixed==="right"?C[R[1]]:C[R[0]]:typeof R=="number"&&(Z=C[R]||0);var ue=F[K];if(L.$$isOperation){var J=L.node,Q=!0;L.title===Ri&&(J=(V=W.find(function(fe){return fe.name==="selectionNode"}))===null||V===void 0?void 0:V.node,Q=!1),L.title===ea&&(J=(Y=W.find(function(fe){return fe.name==="expandNode"}))===null||Y===void 0?void 0:Y.node,Q=!1);var X=J;return s.cloneElement(X,Zt(Zt(Zt({key:L.key||K},X.props),D),{className:ee(Q?I:"",(q=X==null?void 0:X.props)===null||q===void 0?void 0:q.className,ue),style:Zt(Zt(Zt({},(G=X==null?void 0:X.props)===null||G===void 0?void 0:G.style),L.fixed==="left"?(B={},B[w?"right":"left"]=Z,B):{}),{width:L.width,minWidth:L.width})}))}var ie=L.onHeaderCell&&L.onHeaderCell(L,K),ce=ee(ue,L.className),te={};return L.fixed==="left"&&(te[w?"right":"left"]=Z),L.fixed==="right"&&(te[w?"left":"right"]=Z),s.createElement(l6,Zt({key:L.key,index:K,onSort:a,onHandleFilter:l,onHandleFilterReset:o,currentSorter:r.find(function(fe){return fe.field===L.key}),currentFilters:f,_key:L.key||L.dataIndex||K},L,{column:L,headerCellProps:ie,prefixCls:u,components:d,className:ce,columnFixedStyle:te,showSorterTooltip:O}))}))}))}var td=function(){return td=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},td.apply(this,arguments)},Bl=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},Ul=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function no(e){return lr(e)?e:pt(e)&&e.includes("px")?+e.replace("px",""):e}function u6(e){return e?e.offsetHeight-e.clientHeight:0}function c6(e){return e?e.offsetWidth-e.clientWidth:0}function nd(e,r){return Ke(e[r])&&e[r].length}function f6(e,r){function t(n){if(!n)return[];var i=[];return n.forEach(function(a){if(!ge(a))i.push(a);else{var l=td({},a);l.__ORIGIN_DATA=a;var o=l[r];ge(l)&&o&&Ke(o)&&(l[r]=t(o)),i.push(l)}}),i}return t(e)}function Dr(e){return ge(e)?e.__ORIGIN_DATA:!e||!Ke(e)?e:e.map(function(r){return!ge(r)||!("__ORIGIN_DATA"in r)?r:r.__ORIGIN_DATA})}function d6(e,r,t,n,i,a,l){t===void 0&&(t=[]),n===void 0&&(n=[]);var o=new Set(t),c=new Set(n);function u(f){r?(o.add(i(f)),c.delete(i(f))):o.delete(i(f)),Ke(f[a])&&f[a].forEach(function(d){u(d)})}return l?(u(e),id(e,o,c,i,a)):r?o.add(i(e)):o.delete(i(e)),{selectedRowKeys:Ul([],Bl(o),!1),indeterminateKeys:Ul([],Bl(c),!1)}}function v6(e,r,t,n,i){if(r===void 0&&(r=[]),!i)return{selectedRowKeys:r,indeterminateKeys:[]};var a=new Set(r),l=new Set([]);function o(c){a.add(t(c)),l.delete(t(c)),Ke(c[n])&&c[n].forEach(function(u){o(u)})}return r.forEach(function(c){var u=e.find(function(f){return t(f)===c});!jr(u)&&!Ls(u)&&(o(u),id(u,a,l,t,n))}),{selectedRowKeys:Ul([],Bl(a),!1),indeterminateKeys:Ul([],Bl(l),!1)}}function id(e,r,t,n,i){if(e.__INTERNAL_PARENT){var a=n(e.__INTERNAL_PARENT);if(Ke(e.__INTERNAL_PARENT[i])){var l=e.__INTERNAL_PARENT[i].length,o=0,c=!1;e.__INTERNAL_PARENT[i].forEach(function(u){r.has(n(u))&&(o+=1),t.has(n(u))&&(t.add(a),c=!0)}),l===o?(r.add(a),t.delete(a)):o>0&&l>o?(r.delete(a),t.add(a)):o===0&&(r.delete(a),c||t.delete(a))}id(e.__INTERNAL_PARENT,r,t,n,i)}}function ad(e){return typeof e=="function"?e:typeof e=="object"&&typeof e.compare=="function"?e.compare:null}function od(e){if(typeof e=="object"&&typeof e.multiple=="number")return e.multiple}var fn=function(){return fn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},fn.apply(this,arguments)},p6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function m6(e){return e&&!s.isValidElement(e)&&ge(e)}function h6(e){var r,t,n=e.components,i=e.InnerComponentTd,a=e.column,l=e.columnIndex,o=e.prefixCls,c=e.stickyClassName,u=e.stickyOffset,f=e.currentSorter,d=e.virtualized,v=e.record,m=e.trIndex,p=e.level,h=e.placeholder,g=e.indentSize,y=e.renderExpandIcon,C=e.rowKey,b=e.recordHaveChildren,O=e.haveTreeData,w=s.useContext(je).rtl,x=ai(n).ComponentBodyCell,E=ee(o+"-td",c,(r={},r[o+"-col-sorted"]=f&&f.direction&&f.field===a.dataIndex,r),a.className),P={},S,k,j={};a.fixed==="left"&&(j[w?"right":"left"]=u),a.fixed==="right"&&(j[w?"left":"right"]=u),ge(a.cellStyle)&&(j=fn(fn({},j),a.cellStyle)),ge(a.bodyCellStyle)&&(j=fn(fn({},j),a.bodyCellStyle)),a.align&&(j.textAlign=a.align),d&&a.width&&(j.width=a.width,j.minWidth=a.width,j.maxWidth=a.width);var z=a.onCell?a.onCell(v,m):{onHandleSave:function(){}},A=z.onHandleSave,M=p6(z,["onHandleSave"]),D=s.useMemo(function(){return a.render&&a.render(Nr(v,a.dataIndex),Dr(v),m)},[v,a,m]);if(m6(D)&&(P=D.props,S=P.rowSpan,k=P.colSpan,D=D.children),S===0||k===0)return null;var I=Nr(v,a.dataIndex),N=a.render?D:I===void 0||typeof I=="string"&&I.trim()===""||I===null?a.placeholder===void 0?h:a.placeholder:I,T=a.ellipsis&&typeof N=="string"?{title:N}:{},H=O&&a.$$isFirstColumn,_=H&&b,$=H&&p>0?g*p:0;H&&!b&&($+=20);var F=s.createElement(s.Fragment,null,_?s.createElement("span",{className:o+"-cell-expand-icon"},y(v,C)):null,pt(x)?s.createElement(x,{className:o+"-cell-wrap-value"},N):s.createElement(x,fn({rowData:Dr(v),className:o+"-cell-wrap-value",column:a,onHandleSave:A},M),N));return s.createElement(i,fn({className:E,key:a.key||a.dataIndex||l,style:j},ma(M,["onClick","onDoubleClick","onContextMenu","onMouseOver","onMouseEnter","onMouseLeave","onMouseMove","onMouseDown","onMouseUp"]),P),s.createElement("div",fn({className:ee(o+"-cell",(t={},t[o+"-cell-text-ellipsis"]=a.ellipsis,t))},T),$?s.createElement("span",{className:o+"-cell-indent",style:{paddingLeft:$}}):null,F))}const g6=s.memo(h6);var Rr=function(){return Rr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Rr.apply(this,arguments)},y6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function b6(e,r){var t,n=e.expandedRowRender,i=e.onClickExpandBtn,a=e.columns,l=e.components,o=e.onCheck,c=e.onCheckRadio,u=e.prefixCls,f=e.selectedRowKeys,d=e.indeterminateKeys,v=e.rowClassName,m=e.onRow,p=e.rowSelection,h=e.indentSize,g=h===void 0?16:h,y=e.activeSorters,C=e.virtualized,b=e.stickyOffsets,O=e.stickyClassNames,w=e.getRowKey,x=e.placeholder,E=e.expandProps,P=E===void 0?{strictTreeData:!0}:E,S=e.data,k=e.expandedRowKeys,j=e.childrenColumnName,z=e.record,A=e.index,M=e.type,D=e.shouldRowExpand,I=e.level,N=s.useContext(je).rtl,T=Dr(z),H=y6(m&&m(T,A)||{},[]),_=w(z),$=M==="radio"?f.slice(0,1):f,F=_||A,W=$.indexOf(_)>-1,L=k.indexOf(_)>-1,K=d.indexOf(_)>-1,B=ee(u+"-tr",(t={},t[u+"-row-checked"]=W,t[u+"-row-expanded"]=L,t),v&&v(T,A)),V=p&&typeof p.checkboxProps=="function"?p.checkboxProps(T):{},Y=ee(u+"-td",u+"-operation"),q=function(xe){var De;return ee(Y,u+"-"+xe,(De={},De[u+"-selection-col"]=C&&M==="checkbox"||M==="radio",De[u+"-expand-icon-col"]=C&&n,De))};function G(xe){return P.strictTreeData?Ke(xe[j])&&xe[j].length:xe[j]!==void 0}function R(){return S.find(function(xe){return G(xe)})}var Z=D(z,A),ue=G(z),J=R()&&!n,Q=J&&ue,X=P.expandRowByClick,ie=X&&(Z||Q)?{onClick:function(xe){i(_),H&&H.onClick&&H.onClick(xe)}}:{},ce=ai(l),te=ce.ComponentBodyRow,fe=ce.ComponentTd,Ae=ce.getBodyComponentOperations,ae=C?"div":te,_e=C?"div":fe,se=Rr(Rr({className:B,key:F},H),ie),de=pt(te)?se:Rr(Rr({},se),{record:z,index:A});function be(xe,De){var Re=P.icon,rr=!!~k.indexOf(De),Ie={onClick:function(Ve){Ve.stopPropagation(),i(De)}};return typeof Re=="function"?Re(Rr({expanded:rr,record:xe},Ie)):s.createElement("button",Rr({},Ie,{type:"button"}),rr?s.createElement(Ly,null):s.createElement(Wc,null))}var Ee=n&&s.createElement(_e,{className:q("expand-icon-cell")},Z&&be(z,_)),Ce=p&&p.renderCell,Oe,ke=s.createElement(Pa,Rr({value:_,onChange:function(xe){return o(xe,z)},checked:W,indeterminate:K},V)),oe=s.createElement(En,Rr({onChange:function(){return c(_,z)},value:_,checked:W},V));M==="checkbox"&&(Oe=s.createElement(_e,{className:q("checkbox")},Ce?Ce(ke,W,T):ke)),M==="radio"&&(Oe=s.createElement(_e,{className:q("radio")},Ce?Ce(oe,W,T):oe));var we=Ae({selectionNode:Oe,expandNode:Ee});return s.createElement(ae,Rr({},de,{ref:r}),a.map(function(xe,De){var Re,rr,Ie,Ve,nr,Me=b[De],We=O[De];if(xe.$$isOperation){var ye=xe.node,le=!0;xe.title===Ri&&(ye=(rr=we.find(function(Se){return Se.name==="selectionNode"}))===null||rr===void 0?void 0:rr.node,le=!1),xe.title===ea&&(ye=(Ie=we.find(function(Se){return Se.name==="expandNode"}))===null||Ie===void 0?void 0:Ie.node,le=!1);var $e=typeof ye=="function"?ye(z):ye;return s.cloneElement($e,Rr(Rr({key:xe.key||De},$e.props),{className:ee(le?Y:"",(Ve=$e==null?void 0:$e.props)===null||Ve===void 0?void 0:Ve.className,We),style:Rr(Rr(Rr({},(nr=$e==null?void 0:$e.props)===null||nr===void 0?void 0:nr.style),xe.fixed==="left"?(Re={},Re[N?"right":"left"]=Me,Re):{}),{width:xe.width,minWidth:xe.width})}))}return s.createElement(g6,{key:De,prefixCls:u,virtualized:C,components:l,currentSorter:y.find(function(Se){return Se.field===xe.key}),placeholder:x,indentSize:g,stickyClassName:We,stickyOffset:Me,InnerComponentTd:_e,column:xe,columnIndex:De,record:z,trIndex:A,level:I,haveTreeData:J,recordHaveChildren:ue,rowKey:_,renderExpandIcon:be})}))}var C6=s.forwardRef(b6);const Q0=C6;var Xt=function(){return Xt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Xt.apply(this,arguments)},w6=s.forwardRef(function(e,r){var t=e.record,n=e.index,i=e.virtualized,a=e.tbodyProps,l=a.prefixCls,o=a.columns,c=a.indentSize,u=c===void 0?16:c,f=a.childrenColumnName,d=f===void 0?"children":f,v=a.expandProps,m=v===void 0?{}:v,p=a.rowSelection,h=a.hasFixedColumn,g=a.tableViewWidth,y=a.getRowKey,C=a.expandedRowKeys,b=a.expandedRowRender,O;p&&"type"in p?O=p.type:p&&!("type"in p)&&(O="checkbox");var w=b&&function(A,M){return b(Dr(A),M)},x=function(A){return Ke(A[d])&&A[d].length},E=function(A,M){return"rowExpandable"in m&&typeof m.rowExpandable=="function"?m.rowExpandable(A):w&&w(A,M)!==null},P=function(A,M){var D=[],I=Xt(Xt({},a),{type:O,shouldRowExpand:E});D.push(s.createElement(Q0,Xt({ref:r,key:y(A)},I,{record:A,level:0,index:M})));var N=function(T,H,_){_===void 0&&(_=0),Ke(T)&&T.length&&T.forEach(function($,F){C.indexOf(H)!==-1&&(D.push(s.createElement(Q0,Xt({},I,{key:y($),record:$,level:_+1,index:F}))),x($)&&N($[d],y($),_+1))})};return w||N(A[d],y(A)),D},S=y(t),k=E(t,n)&&C.indexOf(S)!==-1,j=i?"div":"tr",z=i?"div":"td";return s.createElement(s.Fragment,{key:S},P(t,n),k&&s.createElement(j,{key:S+"-expanded",className:ee(l+"-tr",l+"-expand-content")},s.createElement(z,{className:ee(l+"-td"),style:{paddingLeft:u},colSpan:o.length},h?s.createElement("div",{className:l+"-expand-fixed-row",style:{width:g}},w==null?void 0:w(t,n)):w==null?void 0:w(t,n))))});function O6(e){var r=e.data,t=e.columns,n=e.prefixCls,i=e.components,a=e.noDataElement,l=e.scroll,o=e.tableViewWidth,c=e.virtualized,u=e.virtualListProps,f=e.getRowKey,d=e.saveVirtualListRef,v=ai(i).ComponentTbody,m={},p={};l&&(l.x&&(typeof l.x=="number"||typeof l.x=="string")&&(m={width:l.x}),l.y&&(typeof l.y=="number"||typeof l.y=="string")&&(p={maxHeight:l.y}));var h={className:n+"-no-data"};o&&(h.className=n+"-no-data "+n+"-expand-fixed-row",h.style={width:o});var g=s.createElement("tr",{className:ee(n+"-tr",n+"-empty-row")},s.createElement("td",{className:n+"-td",colSpan:t.length},s.createElement("div",Xt({},h),a))),y=function(C,b){return s.createElement(w6,{key:b,record:C,index:b,virtualized:c,tbodyProps:e})};return c?r.length>0?s.createElement(Pu,Xt({data:r,height:p.maxHeight,isStaticItemHeight:!1,outerStyle:Xt(Xt({},m),{minWidth:"100%",overflow:"visible"}),innerStyle:{right:"auto",minWidth:"100%"},className:n+"-body",ref:function(C){return d(C)},itemKey:f},u),y):s.createElement("div",{className:n+"-body"},s.createElement("table",null,s.createElement("tbody",null,g))):s.createElement(v,null,r.length>0?r.map(y):g)}var R0=s.createContext({});function x6(e){var r=e.summary,t=e.data,n=e.prefixCls,i=e.columns,a=e.stickyOffsets,l=e.stickyClassNames;return s.createElement("tfoot",{className:n+"-tfoot"},s.createElement(R0.Provider,{value:{columns:i,stickyOffsets:a,stickyClassNames:l,prefixCls:n}},r(Dr(t))))}function ld(e){return typeof e=="number"||typeof e=="string"?{width:e}:{}}function Gl(e){var r=s.useRef(),t=e.prefixCls,n=e.columns,i=e.columnWidths,a=e.producer,l=e.expandedRowKeys,o=e.data,c=e.onSetColumnWidths;s.useEffect(function(){if(a&&r.current){var f=Array.from(r.current.querySelectorAll("col")||[]).filter(function(v){return!v.classList.contains(t+"-expand-icon-col")&&!v.classList.contains(t+"-selection-col")}),d=f.map(function(v){var m=v.getBoundingClientRect().width;return m});c(d)}},[a,c,t,l,o,n]);var u=0;return s.createElement("colgroup",{ref:r},n.map(function(f,d){var v;if(f.title===ea)return s.createElement("col",{key:ea,className:t+"-expand-icon-col",style:ld(f.width)});if(f.title===Ri)return s.createElement("col",{key:Ri,className:t+"-selection-col",style:ld(f.width)});var m;return f.width?m=f.width:!a&&i&&(m=i[u]),u++,s.createElement("col",{key:(v=f.key)!==null&&v!==void 0?v:d,style:ld(m)})}))}var _6=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function E6(e,r,t){var n=e.defaultExpandedRowKeys,i=e.defaultExpandAllRows,a=e.expandedRowRender,l=e.onExpand,o=e.onExpandedRowsChange,c=e.childrenColumnName,u=c===void 0?"children":c,f=e.expandProps,d=_6(s.useState(h()),2),v=d[0],m=d[1],p=e.expandedRowKeys||v;function h(){var C=[];return e.expandedRowKeys?C=e.expandedRowKeys:n?C=n:i&&(C=r.map(function(b,O){var w=Dr(b);return f&&"rowExpandable"in f&&typeof f.rowExpandable=="function"?f.rowExpandable(w)&&t(b):typeof a=="function"?a(w,O)&&t(b):nd(b,u)&&t(b)}).filter(function(b){return b})),C}function g(C){var b=p.indexOf(C)===-1,O=b?p.concat(C):p.filter(function(x){return C!==x}),w=r.filter(function(x){return O.indexOf(t(x))!==-1}).map(function(x){return t(x)});m(w),y(C,b),o&&o(w)}function y(C,b){l&&l(Dr(r.find(function(O){return t(O)===C})),b)}return[p,g]}var sd=function(){return sd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},sd.apply(this,arguments)},Kl=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},S6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function eC(e){return S6([],Kl(new Set(e)),!1)}function P6(e,r,t,n){var i=e.rowSelection,a=e.childrenColumnName,l=i==null?void 0:i.selectedRowKeys,o=i==null?void 0:i.onSelectAll,c=i==null?void 0:i.onSelect,u=i==null?void 0:i.onChange,f=i==null?void 0:i.pureKeys,d=typeof(i==null?void 0:i.checkStrictly)=="boolean"?!i.checkStrictly:!1,v=i==null?void 0:i.preserveSelectedRowKeys;function m(){var H=[],_=[],$=function(W){Ke(W)&&W.length&&W.forEach(function(L){var K=n(L),B=i&&typeof i.checkboxProps=="function"?i.checkboxProps(Dr(L)):{};B.disabled||H.push(K),nd(L,e.childrenColumnName)&&$(L[e.childrenColumnName])})};$(r);var F=function(W,L){Ke(W)&&W.length&&W.forEach(function(K){if(L&&d&&(K.__INTERNAL_PARENT=L),_.push(K),nd(K,e.childrenColumnName)){var B=sd({},K);F(K[e.childrenColumnName],B)}})};return F(t,void 0),{allSelectedRowKeys:H,flattenData:_}}var p=m(),h=p.allSelectedRowKeys,g=p.flattenData,y=Kl(s.useState([]),2),C=y[0],b=y[1],O=Kl(s.useState([]),2),w=O[0],x=O[1],E=v6(g,eC(l||C),n,a,d),P=d&&!l?C:E.selectedRowKeys,S=d&&!l?w:E.indeterminateKeys,k=Kl(s.useState(f?[]:A(P)),2),j=k[0],z=k[1];function A(H,_){var $=_?j.concat(g):g,F=new Map($.map(function(W){return[n(W),W]}));return H.map(function(W){return F.get(W)}).filter(function(W){return W})}var M=new Set(g.map(function(H){return n(H)}));function D(H){return v?H:H.filter(function(_){return M.has(_)})}function I(H){var _=[],$=[];if(H)_=D(eC(P.concat(h)));else{var F=new Set(h);_=D(P.filter(function(L){return!F.has(L)}))}f||($=A(_,!0));var W=Dr($);b(_),z($),x([]),u&&u(_,W),o&&o(H,W)}function N(H,_){var $=d6(_,H,P,w,n,a,d),F=$.selectedRowKeys,W=$.indeterminateKeys,L=D(F),K=A(L,!0),B=Dr(K);b(L),z(K),x(W),c&&c(H,Dr(_),B),u&&u(L,B)}function T(H,_){var $=[g.find(function(W){return n(W)===H})],F=Dr($);b([H]),c&&c(!0,Dr(_),F),u&&u([H],F)}return{selectedRowKeys:P,indeterminateKeys:S,onCheckAll:I,onCheck:N,onCheckRadio:T,setSelectedRowKeys:b,allSelectedRowKeys:h,flattenData:g}}var N6=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},I6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function j6(e){var r=e.map(function(i){return no(i.width)}),t=e.map(function(i){return i.fixed}),n=s.useMemo(function(){return e.map(function(i){var a=0;return i.fixed==="left"&&e.some(function(l){if(l.fixed==="left"){if(l.key===i.key)return!0;var o=l.$$isOperation?no(l.width)||40:no(l.width);return a+=o,!1}return!1}),i.fixed==="right"&&I6([],N6(e),!1).reverse().some(function(l){if(l.fixed==="right"){if(l.key===i.key)return!0;var o=l.$$isOperation?no(l.width)||40:no(l.width);return a+=o,!1}return!1}),a})},[r.join("-"),t.join("-")]);return n}function T6(e,r,t){var n=r.map(function(o){return o.fixed});function i(o,c){var u;return ee((u={},u[t+"-col-fixed-left"]=o.fixed==="left",u[t+"-col-fixed-right"]=o.fixed==="right",u[t+"-col-fixed-left-last"]=o.fixed==="left"&&(ge(r[c+1])?r[c+1].fixed!=="left":!0),u[t+"-col-fixed-right-first"]=o.fixed==="right"&&(ge(r[c-1])?r[c-1].fixed!=="right":!0),u))}var a=s.useMemo(function(){return r.map(function(o,c){return i(o,c)})},[n.join("-")]),l=s.useMemo(function(){return e.map(function(o){return o.map(function(c,u){var f=u,d=c.$$columnIndex;return Array.isArray(d)&&d.length===2?f=c.fixed==="right"?d[0]:d[1]:typeof d=="number"&&(f=d),i(c,f)})})},[e.map(function(o){return"|"+o.map(function(c){return c.fixed||"undefined"}).join("-")+"|"}).join("_")]);return[l,a]}var Jr=function(){return Jr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Jr.apply(this,arguments)},$6=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},k6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function rC(e,r){var t=[];function n(i){i&&i.length>0&&i.forEach(function(a){a[r]?n(a[r]):t.push(Jr(Jr({},a),{key:a.key||a.dataIndex}))})}return n(e),t}function tC(e,r){var t=0;return e&&e.length>0&&e.forEach(function(n){var i=tC(n[r],r)+1;t=Math.max(i,t)}),t}function M6(e){var r=e.components,t=e.rowSelection,n=e.expandedRowRender,i=e.expandProps,a=i===void 0?{}:i,l=e.columns,o=e.childrenColumnName,c=s.useMemo(function(){return l||[]},[l]),u=s.useMemo(function(){return rC(c,o)},[c,o]),f=t&&t.type==="checkbox"||t&&!("type"in t),d=t&&t.type==="radio",v=a.width,m=!!n,p=f||d,h=ai(r),g=h.getHeaderComponentOperations,y=h.getBodyComponentOperations,C=s.useMemo(function(){return g({selectionNode:p?"holder_node":"",expandNode:m?"holder_node":""})},[p,m,g]),b=s.useMemo(function(){return y({selectionNode:p?"holder_node":"",expandNode:m?"holder_node":""})},[p,m,y]),O=t&&t.fixed,w=t&&t.columnWidth,x=s.useCallback(function(k,j,z){var A={},M=[];k.forEach(function(N,T){var H=Jr({},N);(!("key"in N)||typeof N.key>"u")&&(H.key=H.dataIndex||T),T===0?(H.$$isFirstColumn=!0,H.fixed==="left"&&(A.fixed=H.fixed)):H.$$isFirstColumn=!1,M.push(H)});var D=m&&{key:ea,title:ea,width:v,$$isOperation:!0},I=p&&{key:Ri,title:Ri,width:w,$$isOperation:!0};return O&&(A.fixed="left"),(typeof z!="number"||z===0)&&k6([],$6(j),!1).reverse().forEach(function(N,T){if(N.node){var H=C.filter(function(_){return _.node}).length-T-1;N.name==="expandNode"?M.unshift(Jr(Jr(Jr({},D),A),{$$columnIndex:H})):N.name==="selectionNode"?M.unshift(Jr(Jr(Jr({},I),A),{$$columnIndex:H})):M.unshift(Jr(Jr(Jr({},N),A),{title:N.name,key:N.name,$$isOperation:!0,width:N.width||40,$$columnIndex:H}))}}),M},[v,m,p,w,O,C]),E=s.useMemo(function(){return x(u,b)},[u,x,b]),P=s.useMemo(function(){return tC(c,o)},[c,o]),S=s.useMemo(function(){var k=Array.isArray(C)?C.filter(function(D){return D.node}).length:0;if(P===1){var j=c.map(function(D,I){return Jr(Jr({},D),{$$columnIndex:I+k})});return[x(j,C,0)]}var z=k,A=[],M=function(D,I){I===void 0&&(I=0),A[I]=A[I]||[],D.forEach(function(N){var T=Jr({},N);T[o]?(T.colSpan=rC(N[o],o).length,T.$$columnIndex=[z],A[I].push(T),M(T[o],I+1),T.$$columnIndex.push(z-1)):(T.rowSpan=P-I,T.$$columnIndex=z++,A[I].push(T))}),A[I]=x(A[I],C,I)};return M(c),A},[c,o,P,x,C]);return[S,E]}var ql=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},ud=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function A6(e,r){var t=ql(s.useState(r),2),n=t[0],i=t[1],a=ql(s.useState({}),2),l=a[0],o=a[1],c=s.useRef(e),u=s.useCallback(function(v){var m=v.field,p=v.direction;return n.find(function(h){return h.field===m})?p?n.map(function(h){return h.field===m?v:h}):n.filter(function(h){return h.field!==m}):p?!lr(v.priority)||n.find(function(h){return!lr(h.priority)})?[v]:ud(ud([],ql(n),!1),[v],!1):ud([],ql(n),!1)},[n]),f=s.useCallback(function(v){var m=v.filter(function(h){return"sortOrder"in h}),p=[];return m.forEach(function(h){var g=od(h.sorter),y=h.sortOrder,C={field:h.key,direction:y,sorterFn:ad(h.sorter),priority:g};y?lr(g)?p.every(function(b){return lr(b.priority)||!b.direction})&&p.push(C):p.every(function(b){return!b.direction})?p.push(C):p=[C]:p.push(C)}),p},[]),d=s.useCallback(function(v,m){var p=f(e);p.length||(i(m),o(v))},[e,f,i,o]);return Wi(function(){var v=c.current,m=f(v),p=f(e),h=m.map(function(y){return y.field}),g=p.filter(function(y){var C=m.find(function(b){var O=b.field,w=b.direction;return y.field===O&&y.direction!==w});return C?!0:!h.includes(y.field)});g&&g.length&&(i(p),o({})),c.current=e},[e,f,u,o,i]),{currentSorter:l,activeSorters:n,getNextActiveSorters:u,updateStateSorters:d}}var Fr=function(){return Fr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Fr.apply(this,arguments)},dn=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},D6=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},F6=[],L6=[],V6={showHeader:!0,border:!0,hover:!0,rowKey:"key",pagePosition:"br",childrenColumnName:"children",indentSize:15,showSorterTooltip:!0};function z6(e,r){var t,n,i,a,l=s.useContext(je),o=l.getPrefixCls,c=l.loadingElement,u=l.size,f=l.tablePagination,d=l.renderEmpty,v=l.componentConfig,m=l.rtl,p=sr(e,V6,v==null?void 0:v.Table),h=sr(ge(e==null?void 0:e.pagination)?e==null?void 0:e.pagination:{},ge((i=v==null?void 0:v.Table)===null||i===void 0?void 0:i.pagination)?(a=v==null?void 0:v.Table)===null||a===void 0?void 0:a.pagination:{},f||{}),g=p.style,y=p.className,C=p.components,b=p.border,O=p.borderCell,w=p.columns,x=w===void 0?L6:w,E=p.data,P=E===void 0?F6:E,S=p.scroll,k=p.noDataElement,j=p.showHeader,z=p.stripe,A=p.hover,M=p.pagination,D=p.onChange,I=p.pagePosition,N=p.childrenColumnName,T=p.indentSize,H=p.rowSelection,_=p.tableLayoutFixed,$=p.footer,F=p.virtualized,W=p.renderPagination,L=p.summary,K=p.rowKey,B=s.useMemo(function(){return f6(P,N)},[P,N]),V=o("table"),Y=p.size||(["default","middle","small"].indexOf(u)>-1?u:"default"),q=s.useRef(null),G=s.useRef(null),R=s.useRef(null),Z=s.useRef(null),ue=s.useRef(null),J=s.useRef(null),Q=s.useRef(0),X=s.useRef(!1),ie=dn(M6(p),2),ce=ie[0],te=ie[1],fe=Lr(),Ae=fe.currentFilters,ae=fe.defaultSorters,_e=dn(s.useState(1),2),se=_e[0],de=_e[1],be=dn(s.useState(h.pageSize||h.defaultPageSize||10),2),Ee=be[0],Ce=be[1],Oe=dn(s.useState(Ae),2),ke=Oe[0],oe=Oe[1],we=dn(s.useState(0),2),xe=we[0],De=we[1],Re=dn(s.useState([]),2),rr=Re[0],Ie=Re[1],Ve=j6(te),nr=dn(T6(ce,te,V),2),Me=nr[0],We=nr[1],ye=A6(te,ae),le=ye.currentSorter,$e=ye.activeSorters,Se=ye.getNextActiveSorters,Xe=ye.updateStateSorters,Be=ai(C),Ye=Be.ComponentTable,ir=Be.ComponentBodyWrapper,yr=Be.ComponentHeaderWrapper,fr=s.useMemo(function(){return typeof K=="function"?function(ve){return K(Dr(ve))}:function(ve){return ve[K]}},[K]);function Lr(){var ve={},Te=[];return te.forEach(function(Fe){var Qe=Fe.key;if(Fe.defaultFilters&&(ve[Qe]=Fe.defaultFilters),Fe.filteredValue&&(ve[Qe]=Fe.filteredValue),"defaultSortOrder"in Fe||"sortOrder"in Fe){var dr=od(Fe.sorter),br="sortOrder"in Fe?Fe.sortOrder:Fe.defaultSortOrder,Sr={field:Qe,direction:br,sorterFn:ad(Fe.sorter),priority:dr};br?lr(dr)?Te.every(function(et){return lr(et.priority)||!et.direction})&&Te.push(Sr):Te.every(function(et){return!et.direction})?Te.push(Sr):Te=[Sr]:Te.push(Sr)}}),{currentFilters:ve,defaultSorters:Te}}var Br=s.useMemo(function(){var ve=te.filter(function(Fe){return"filteredValue"in Fe}),Te={};return ve.length&&ve.forEach(function(Fe,Qe){var dr=Fe.key||Fe.dataIndex||Qe;dr!==void 0&&(Te[dr]=Fe.filteredValue)}),Te},[te]),Ir=s.useMemo(function(){return Object.keys(Br).length?Br:ke},[ke,Br]);function at(ve,Te){var Fe=Tw(Te);if(Fe){var Qe={direction:ve,field:Te,sorterFn:ad(Fe.sorter),priority:od(Fe.sorter)},dr=Se(Qe);Xe(Qe,dr);var br=ne(Qe,dr,Ir),Sr=ze(br);D&&D(Ne(br),Qe,Ir,{currentData:Dr(Sr),currentAllData:Dr(br),action:"sort"})}}function Ur(ve){var Te=function(Qe,dr){return function(br,Sr){var et=Qe(br,Sr);return dr==="descend"?-et:et}},Fe=D6([],dn(ve),!1);return Fe.sort(function(Qe,dr){return dr.priority-Qe.priority}),function(Qe,dr){for(var br=0,Sr=Fe.length;br<Sr;br++){var et=Fe[br],rs=et.sorterFn,mv=et.direction;if(typeof rs=="function"){var Hw=Te(rs,mv)(Qe,dr);if(Hw!==0)return Hw}}return 0}}function U(ve,Te){var Fe,Qe=Fr(Fr({},Ir),(Fe={},Fe[ve.dataIndex]=Te,Fe)),dr=Fr(Fr({},Qe),Br);if(Ke(Te)&&Te.length){oe(dr);var br=ne(le,$e,Qe),Sr=ze(br);D&&D(Ne(br),$e.length===1?$e[0]:$e,Qe,{currentData:Dr(Sr),currentAllData:Dr(br),action:"filter"})}else Ke(Te)&&!Te.length&&me(ve)}function me(ve){var Te=ve.dataIndex,Fe=Fr({},Ir);delete Fe[Te],oe(Fe);var Qe=ne(le,$e,Fe),dr=ze(Qe);D&&D(Ne(Qe),$e.length===1?$e[0]:$e,Fe,{currentData:Dr(dr),currentAllData:Dr(Qe),action:"filter"})}var Pe=!!te.find(function(ve){return ve.fixed==="left"}),Ue=!!te.find(function(ve){return ve.fixed==="right"}),tr=Pe||Ue;function ne(ve,Te,Fe){var Qe=(B||[]).slice();Object.keys(Fe).forEach(function(br){if(Fe[br]&&Fe[br].length){var Sr=Tw(br);Sr&&typeof Sr.onFilter=="function"&&(Qe=Qe.filter(function(et){return Fe[br].reduce(function(rs,mv){return rs||Sr.onFilter(mv,et)},!1)}))}});var dr=function(br){return br.slice().sort(Ur(Te)).map(function(Sr){var et;return Ke(Sr[N])?Fr(Fr({},Sr),(et={},et[N]=dr(Sr[N]),et)):Sr})};return ve.direction&&typeof ve.sorterFn=="function"||Te.length?dr(Qe):Qe}var he=ne(le,$e,Ir);function Ne(ve){ve===void 0&&(ve=he);var Te=h.pageSize||Ee||10,Fe=Y==="middle"?"default":Y,Qe="top";I==="tl"||I==="bl"?Qe="bottom":Qe="top";var dr=Ke(ve)?ve.length:0,br=Math.ceil(dr/Te)<se?1:se;br!==se&&de(br);var Sr={size:Fe,total:dr,pageSize:Te,current:br,selectProps:{triggerProps:{position:Qe}}};return typeof M=="object"&&M.selectProps&&(Sr.selectProps=Fr(Fr({},Sr.selectProps),M.selectProps)),ge(M)&&(Sr=Fr(Fr({},Sr),M)),ge(h)&&(Sr=Fr(Fr({},Sr),h)),Sr.onChange=ZW,Sr}var qe=Ne(),Je=ze();function ze(ve,Te){ve===void 0&&(ve=he),Te===void 0&&(Te=qe);var Fe=Te.current,Qe=Fe===void 0?0:Fe,dr=Te.pageSize,br=dr===void 0?10:dr;return M===!1||ge(M)&&P.length<=br?ve:ve.slice((Qe-1)*br,Qe*br)}var or=rm(Le,100),Er=!!(S&&S.y),qr=L==null?void 0:L(Dr(he)),cr=L&&s.isValidElement(qr)&&qr.props.fixed,It=Er&&cr;Cn(function(){Le(),Pr(window,"resize",or);var ve=q.current,Te=G.current,Fe=R.current;Te&&Pr(Te,"scroll",na);var Qe=ve&&ve.parentNode;return ve&&Qe&&Pr(Qe,"scroll",na),Fe&&Pr(Fe,"scroll",na),function(){$r(window,"resize",or),Te&&$r(Te,"scroll",na),Qe&&$r(Qe,"scroll",na),Fe&&$r(Fe,"scroll",na)}},[Pe,Ue,S==null?void 0:S.x,S==null?void 0:S.y,te.length,P]),Wi(function(){var ve=Ne(P),Te=ve.total,Fe=ve.pageSize,Qe=Math.ceil(Te/Fe);Qe<se&&de(1)},[P==null?void 0:P.length]),Wi(function(){Gr()},[P,Pe,Ue,m]),s.useImperativeHandle(r,function(){return{getRootDomElement:Ct,scrollIntoView:function(ve){ue.current&&ue.current.scrollTo({key:ve})}}});function Ct(){return Z.current}function Le(){Gr();var ve=Ct();if(ve&&(tr||S&&S.x)){var Te=ve.querySelector("."+V+"-body")||ve.querySelector("."+V+"-content-inner"),Fe=Te.getBoundingClientRect().width;De(Fe)}}var pr=s.useCallback(Vo(function(){var ve=Z.current,Te=Er?G.current:J.current&&J.current.parentNode;if(Te){var Fe=m?-Te.scrollLeft:Te.scrollLeft,Qe=Fe===0,dr=Fe+1>=Te.children[0].getBoundingClientRect().width-Te.getBoundingClientRect().width;Qe&&dr?ta(ve.classList,V+"-scroll-position-both"):Qe?ta(ve.classList,V+"-scroll-position-"+(m?"right":"left")):dr?ta(ve.classList,V+"-scroll-position-"+(m?"left":"right")):ta(ve.classList,V+"-scroll-position-middle")}else ve&&pn(ve.classList)},100),[Z.current,G.current,Er,m]);function Gr(){if(tr||S&&ge(S)&&S.x){var ve=Z.current;ve&&(Pe&&Yr(ve.classList,V+"-has-fixed-col-left"),Ue&&Yr(ve.classList,V+"-has-fixed-col-right")),pr()}}function Yr(ve,Te){ve.contains(Te)||ve.add(Te)}function pn(ve){ve.remove(V+"-scroll-position-both"),ve.remove(V+"-scroll-position-left"),ve.remove(V+"-scroll-position-right"),ve.remove(V+"-scroll-position-middle")}function ta(ve,Te){ve.contains(Te)||(pn(ve),ve.add(Te))}var Qt=P6(p,Je,B,fr),po=Qt.selectedRowKeys,WW=Qt.indeterminateKeys,BW=Qt.onCheckAll,UW=Qt.onCheck,GW=Qt.onCheckRadio,KW=Qt.setSelectedRowKeys,qW=Qt.allSelectedRowKeys,YW=Qt.flattenData;function Tw(ve){return te.find(function(Te,Fe){return typeof Te.key<"u"?typeof Te.key=="number"&&typeof ve=="string"?Te.key.toString()===ve:Te.key===ve:typeof Te.dataIndex<"u"?Te.dataIndex===ve:typeof ve=="number"?Fe===ve:!1})}function ZW(ve,Te){de(ve),Ce(Te),ve!==se&&XW(),H&&!H.checkCrossPage&&po.length&&(KW([]),H.onChange&&H.onChange([],[]));var Fe=Fr(Fr({},Ne()),{current:ve,pageSize:Te});D&&D(Fe,$e.length===1?$e[0]:$e,Ir,{currentData:Dr(ze(he,Fe)),currentAllData:Dr(he),action:"paginate"}),h.onChange&&h.onChange(ve,Te)}function XW(){var ve=G.current;if(ve){var Te=G.current.scrollTop,Fe=new Ko({from:{scrollTop:Te},to:{scrollTop:0},easing:"quintInOut",duration:300,onUpdate:function(Qe){G.current&&(G.current.scrollTop=Qe.scrollTop)}});Fe.start()}}function na(ve){var Te=ve.target,Fe=G.current,Qe=q.current&&q.current.parentNode,dr=R.current;Te.scrollLeft!==Q.current&&(Qe&&(Qe.scrollLeft=Te.scrollLeft),Fe&&(Fe.scrollLeft=Te.scrollLeft),dr&&(dr.scrollLeft=Te.scrollLeft),Gr()),Q.current=ve.target.scrollLeft}function JW(ve){var Te=ve.target,Fe=J.current;Te.scrollLeft!==Q.current&&(Fe.scrollLeft=Te.scrollLeft,Gr()),Q.current=ve.target.scrollLeft}var $w=dn(E6(p,YW,fr),2),kw=$w[0],QW=$w[1],Mw={},dv={};S&&(S.x&&(typeof S.x=="number"||typeof S.x=="string")&&(dv={width:S.x}),S.y&&(typeof S.y=="number"||typeof S.y=="string")&&(Mw={maxHeight:S.y}));function RW(){var ve=q.current&&q.current.parentNode,Te=u6(ve);Te&&Te>0&&(ve.style.marginBottom="-"+Te+"px",ve.style.paddingBottom="0px",R.current&&(R.current.style.marginBottom="-"+Te+"px",R.current.style.paddingBottom="0px")),setTimeout(function(){var Fe=G.current,Qe=c6(Fe);Qe?(X.current=!0,ve&&(ve.style.overflowY="scroll"),R.current&&(R.current.style.overflowY="scroll")):ve&&X.current&&(X.current=!1,ve.style.overflowY="auto",R.current&&(R.current.style.overflowY="auto"))})}var Aw=s.createElement(s6,Fr({},p,{activeSorters:$e,currentSorter:le,selectedRowKeys:po,currentFilters:Ir,onCheckAll:BW,onSort:at,data:Je,onHandleFilter:U,onHandleFilterReset:me,prefixCls:V,allSelectedRowKeys:qW,groupColumns:ce,stickyOffsets:Ve,groupStickyClassNames:Me}));function eB(){var ve=ge(S)&&S.x==="max-content";return Er||F?s.createElement(yr,{className:V+"-header"},s.createElement(Ye,{ref:q,style:ve?{}:dv},s.createElement(Gl,{columns:te,prefixCls:V,producer:!1,columnWidths:ve&&S.y?rr:null}),Aw)):Aw}var Dw=qr&&s.createElement(x6,{prefixCls:V,summary:L,data:Je,columns:te,stickyOffsets:Ve,stickyClassNames:We}),Fw=s.createElement(O6,Fr({},p,{selectedRowKeys:po,indeterminateKeys:WW,expandedRowKeys:kw,onCheck:UW,onCheckRadio:GW,onClickExpandBtn:QW,columns:te,data:Je,prefixCls:V,hasFixedColumn:tr,tableViewWidth:xe,indentSize:T,noDataElement:k||d("Table"),activeSorters:$e,currentSorter:le,stickyOffsets:Ve,stickyClassNames:We,getRowKey:fr,saveVirtualListRef:function(ve){F&&(ue.current=ve,G.current=ve==null?void 0:ve.dom)}})),Lw=!F&&!It?s.createElement(s.Fragment,null,Fw,Dw):Fw;function rB(){var ve=ge(S)&&S.x==="max-content"&&!!S.y&&Ke(P)&&P.length>0;return s.createElement(Qr,{onResize:RW},Er&&!F?s.createElement(ir,{ref:G,className:V+"-body",style:Mw},s.createElement(Ye,{style:dv},s.createElement(Gl,{columns:te,prefixCls:V,producer:ve,onSetColumnWidths:Ie,expandedRowKeys:kw,data:P}),Lw)):Lw)}function tB(){var ve={};S&&ge(S)&&S.x&&(ve={width:S.x});var Te=s.createElement("div",{className:V+"-tfoot",ref:R},s.createElement(Ye,{style:ve},s.createElement(Gl,{columns:te,prefixCls:V}),Dw)),Fe=qr&&Er&&cr==="top",Qe=qr&&Er&&cr==="bottom",dr=s.createElement(s.Fragment,null,j?eB():null,Fe&&Te,rB(),Qe&&Te);return s.createElement(s.Fragment,null,s.createElement("div",{className:V+"-container"},s.createElement("div",{className:V+"-content-scroll"},s.createElement("div",{className:V+"-content-inner",onScroll:Er?void 0:JW},Er||F?dr:s.createElement(Ye,{ref:J,style:ve},s.createElement(Gl,{prefixCls:V,columns:te}),dr)))),typeof $=="function"&&s.createElement("div",{className:V+"-footer"},$(Je)))}if(!x.length)return null;var nB=ge(b)?b.wrapper:b,vv=ge(b)?b.cell:O,iB=ge(b)?b.cell||b.headerCell:O,aB=ge(b)?b.cell||b.bodyCell:O,oB=ee(V,V+"-size-"+Y,(t={},t[V+"-border"]=nB,t[V+"-border-cell"]=vv,t[V+"-border-header-cell"]=!vv&&iB,t[V+"-border-body-cell"]=!vv&&aB,t[V+"-stripe"]=z,t[V+"-hover"]=A,t[V+"-type-radio"]=H&&H.type==="radio",t[V+"-layout-fixed"]=_||S&&(S.x||S.y)||x.find(function(ve){return ve.ellipsis}),t[V+"-fixed-column"]=tr,t[V+"-virtualized"]=F,t[V+"-rtl"]=m,t),y),pv=I==="tl"||I==="tr"||I==="topCenter",lB=ee(V+"-pagination",(n={},n[V+"-pagination-left"]=I==="tl"||I==="bl",n[V+"-pagination-center"]=I==="topCenter"||I==="bottomCenter",n[V+"-pagination-top"]=pv,n)),es=p.loading;typeof es=="boolean"&&(es={loading:es});var sB=typeof W=="function",Vw=sB?W(s.createElement(ro,Fr({},qe))):s.createElement("div",{className:lB},s.createElement(ro,Fr({},qe))),zw=M!==!1&&(he.length!==0||qe.total>0);return s.createElement("div",Fr({ref:Z,style:g,className:oB},tn(p)),s.createElement(_l,Fr({element:c},es),zw&&pv&&Vw,tB(),zw&&!pv&&Vw))}var nC=s.forwardRef(z6);nC.displayName="Table";const H6=nC;var oi=function(){return oi=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},oi.apply(this,arguments)},W6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function B6(e){var r=s.useContext(je).rtl,t=s.useContext(R0),n=t.columns,i=t.stickyOffsets,a=t.stickyClassNames,l=t.prefixCls,o=e.children,c=W6(e,["children"]),u=s.Children.map(o,function(d){return d.props.colSpan||1}),f=s.Children.map(o,function(d,v){var m,p,h,g,y=d,C=Nr(y,"type.__ARCO_TABLE_SUMMARY_CELL__")||Nr(y,"props.$$ArcoTableSummaryCell"),b=(h=y==null?void 0:y.props)===null||h===void 0?void 0:h.style,O=(g=y==null?void 0:y.props)===null||g===void 0?void 0:g.className,w=u.slice(0,v).reduce(function(S,k){return S+k},0),x=w,E=n[x].fixed==="left"?(m={},m[r?"right":"left"]=i[x],m):n[x].fixed==="right"?(p={},p[r?"left":"right"]=i[x],p):{},P=n[x].fixed==="left"||n[x].fixed==="right"?a[x]:"";return C?s.cloneElement(y,oi(oi({},y.props),{className:ee(l+"-td",P,O),style:oi(oi({},b),E)})):d});return s.createElement("tr",oi({},c),f)}var cd=function(){return cd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},cd.apply(this,arguments)},U6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function iC(e){var r=e.children,t=U6(e,["children"]);return s.createElement("td",cd({},ur(t,["$$ArcoTableSummaryCell"])),r)}iC.__ARCO_TABLE_SUMMARY_CELL__=!0;function fd(e){return e.children}fd.Row=B6,fd.Cell=iC;var aC=H6;aC.Summary=fd;const G6=aC;var dd=function(){return dd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},dd.apply(this,arguments)},K6=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function q6(e,r){var t=s.useRef(!1),n=s.useContext(je).getPrefixCls,i=e.children,a=e.className,l=e.style,o=e.lazyload,c=e.isActive,u=K6(e,["children","className","style","lazyload","isActive"]),f=n("tabs");return t.current=o?t.current||c:!0,t.current&&s.createElement("div",dd({ref:r},ur(u,["destroyOnHide","title","closable"]),{className:ee(f+"-pane",a),style:l}),i)}var vd=s.forwardRef(q6);vd.displayName="TabPane",vd.isTabPane=!0;const Y6=vd;function Z6(e){var r=e.prefixCls,t=e.currentOffset,n=e.headerSize,i=e.headerWrapperSize,a=e.getTitleRef,l=e.paneChildren,o=e.direction,c=e.icon,u=l.map(function(p){return p.key}),f=o==="vertical"?n.height:n.width,d=o==="vertical"?i.height:i.width,v=s.useMemo(function(){var p={},h=i.domRect;return u.map(function(g){var y=a(g);if(y){var C=y.getBoundingClientRect();p[g]={left:C.left-h.left,right:C.left-h.left+C.width,top:C.top-h.top,bottom:C.top-h.top+C.height}}}),p},[u.join(","),f,d]),m=s.useMemo(function(){var p=-1,h=-1;for(var g in v){var y=v[g],C=y.left,b=y.right;if(C>=t&&b-t<=d&&p===-1&&(p=u.indexOf(g),h=p),C>=t&&b-t>d){h=u.indexOf(g);break}}return[p,h]},[v,u.join(","),t]);return Ls(c)?null:s.createElement(Au,{trigger:"click",droplist:s.createElement(dc,{onClickMenuItem:e.onClickTab},l.map(function(p,h){if(h<m[0]||h>=m[1])return s.createElement(dc.Item,{key:p.key,disabled:p.disabled},p.props.title)}))},s.createElement(lt,{role:"button","aria-label":"expand tabs",prefix:r+"-dropdown",className:r+"-dropdown-icon"},c||s.createElement(xi,null)))}var X6={prev:"left",next:"right"},J6={prev:"up",next:"down"},Q6=function(e){var r,t=e.direction,n=e.headerSize,i=e.headerWrapperSize,a=e.prefixCls,l=e.iconPos,o=e.currentOffset,c=e.align,u=e.rtl,f=e.icon,d=i.height,v=i.width,m=n.height,p=n.width,h=m-d,g=p-v,y={up:s.createElement(sy,null),down:s.createElement(xi,null),left:u?s.createElement(Un,null):s.createElement(Gn,null),right:u?s.createElement(Gn,null):s.createElement(Un,null)},C=function(j){j!==e.currentOffset&&e.onChange&&e.onChange(j)},b=function(j,z){j.preventDefault();var A;c==="left"?A=z==="left"?o-v:o+v:A=z==="left"?o+v:o-v,C(A)},O=function(j,z){j.preventDefault();var A;if(z==="up")A=o-d;else if(A=o+d,A>=m)return;C(A)},w=s.useMemo(function(){return c==="left"?o<=0:t==="vertical"?o>=h:o>=g},[c,t,o,g,o]),x=s.useMemo(function(){return c==="left"?t==="vertical"?o>=h:o>=g:o<=0},[c,t,h,g,o]);if(Ls(f))return null;var E=t==="horizontal"?X6[l]:J6[l],P=l==="prev"?w:x,S=ee(a+"-"+E+"-icon",(r={},r[a+"-nav-icon-disabled"]=P,r)),k=t==="vertical"?O:b;return s.createElement(lt,{disabled:P,className:S,prefix:a,onClick:function(j){return k(j,E)}},f||y[E])};const oC=Q6;var pd=function(e,r){var t=e.getBoundingClientRect(),n=r.getBoundingClientRect(),i=r.offsetWidth/n.width,a=r.offsetHeight/n.height;return{left:(t.left-n.left)*i,top:(t.top-n.top)*a,right:(t.right-n.right)*i,bottom:(t.bottom-n.bottom)*a}},R6=function(e,r){var t=e.scrollLeft,n=e.scrollTop;r==="horizontal"&&t&&e.scrollTo({left:-1*t}),r==="vertical"&&n&&e.scrollTo({top:-1*n})},lC=function(e){var r=e.onPressEnter;return{onKeyDown:function(t){var n=t.keyCode||t.which;n===Bt.code&&r(t)}}},md=function(){return md=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},md.apply(this,arguments)},eH=function(e,r){var t,n=e.prefixCls,i=e.onDeleteTab,a=e.tabKey,l=e.isActive,o=e.onClickTab,c=e.disabled,u=c===void 0?!1:c,f=e.title,d=e.editable,v=e.renderTitle,m=e.deleteIcon,p=e.deleteButton,h=e.getIdPrefix,g=e.index,y=ar(v)?v:function(O){return O},C=function(O){O.stopPropagation(),!u&&i()},b=function(O){u||o(O)};return y(s.createElement("div",{ref:r,key:a,className:ee(n+"-header-title",(t={},t[n+"-header-title-active"]=l,t[n+"-header-title-editable"]=d,t[n+"-header-title-disabled"]=u,t)),role:"tab","aria-selected":l,tabIndex:u?-1:0,"aria-disabled":u||void 0,id:h(g).tab,"aria-controls":h(g).tabpane,onClick:b,onKeyDown:function(O){var w=O.keyCode||O.which;w===Bt.code&&b(O)}},s.createElement("span",{className:n+"-header-title-text"},f),d&&s.createElement("span",md({role:"button","aria-label":"remove tab","aria-disabled":u||void 0,tabIndex:u?-1:0,className:n+"-close-icon"},lC({onPressEnter:C}),{onClick:C}),p||s.createElement(lt,{prefix:n},m||s.createElement(jt,null)))),{key:a,isActive:l,disabled:u,editable:d})};const rH=s.forwardRef(eH);var tH=function(e,r,t){var n={left:"",width:"",top:"",height:""};if(r){var i=pd(r,t);e==="vertical"?n={top:i.top+"px",height:r.offsetHeight+"px",left:"",width:""}:n={left:i.left+"px",width:r.offsetWidth+"px",top:"",height:""}}return n},nH=function(e){var r,t=e.prefixCls,n=e.animation,i=e.disabled,a=e.direction,l=e.getTitleRef,o=e.activeTab,c=e.getHeaderRef,u=e.inkBarSize,f=s.useRef(),d=s.useRef();return s.useEffect(function(){var v=ga(function(){var m=l(o),p=tH(a,m,c("headerRef").current);p&&!Il(d.current,p)&&(d.current=p,Object.keys(p).forEach(function(h){f.current.style[h]=p[h]}))});return v(),function(){v.cancel&&v.cancel()}}),s.createElement("div",{className:ee(t+"-header-ink",(r={},r[t+"-header-ink-no-animation"]=!n,r[t+"-header-ink-disabled"]=i,r[t+"-header-ink-custom"]=u,r)),ref:f},u&&s.createElement("div",{style:u,className:t+"-header-ink-inner"}))};const iH=nH;var aH=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function io(){var e=s.useRef(),r=aH(s.useState({height:0,width:0}),2),t=r[0],n=r[1];return s.useEffect(function(){e.current&&n({height:e.current.offsetHeight,width:e.current.offsetWidth,domRect:e.current.getBoundingClientRect()})},[]),[e,t,n]}function oH(e){var r=e.headerWrapperRef,t=e.headerOffset,n=e.align,i=e.isScrollable,a=e.direction,l=e.onScroll;function o(g,y){var C=0;a==="vertical"?C=t+y:C=n==="left"?t+g:t-g,l&&l(C)}var c=s.useRef("x");function u(g){if(i){g.preventDefault();var y=g.deltaX,C=g.deltaY,b=0,O=Math.abs(y),w=Math.abs(C);O===w?b=c.current==="x"?y:C:O>w?(b=y,c.current="x"):(b=C,c.current="y"),o(b,b)}}var f=s.useRef({clientX:0,clientY:0}),d=function(g){return g&&g.touches&&g.touches.length&&g.touches[0]},v=function(g){g.cancelable&&g.preventDefault();var y=d(g);if(y){var C=f.current,b=C.clientX,O=C.clientY,w=y.clientX-b,x=y.clientY-O;o(-w,-x)}},m=function(){$r(document.documentElement,"touchmove",v),$r(document.documentElement,"touchend",m)},p=function(g){if(i){var y=d(g);y&&(f.current={clientX:y.clientX,clientY:y.clientY},Pr(document.documentElement,"touchmove",v,{passive:!1}),Pr(window,"touchend",m,{passive:!1}))}},h=s.useRef(null);h.current={onWheel:u,onTouchStart:p},s.useEffect(function(){Pr(r.current,"wheel",function(g){h.current.onWheel(g)},{passive:!1}),Pr(r.current,"touchstart",function(g){h.current.onTouchStart(g)},{passive:!0})},[r.current])}var In=function(){return In=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},In.apply(this,arguments)},jn=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},hd="vertical",Yl="right",Zl="left",sC={delete:!0,add:!0},lH=function(e){var r=e.direction,t=e.align,n=t===void 0?Zl:t,i=e.headerOffset,a="translateX("+-i+"px)";return n===Yl&&(a="translateX("+i+"px)"),r===hd&&(a="translateY("+-i+"px)"),Bj(a)},sH=function(e){var r=e.direction,t=e.align,n=t===void 0?Zl:t,i=e.headerDom,a=e.headerWrapperDom,l=pd(i,a);return r===hd?-l.top:n===Yl?l.right:-l.left},uC=s.forwardRef(function(e,r){var t,n,i=s.useContext(gd),a=s.useContext(je).rtl,l=In(In({},e),i),o=jn(io(),3),c=o[0],u=o[1],f=o[2],d=jn(io(),3),v=d[0],m=d[1],p=d[2],h=jn(io(),3),g=h[0],y=h[1],C=h[2],b=jn(io(),3),O=b[0],w=b[1],x=b[2],E=jn(io(),3),P=E[0],S=E[1],k=E[2],j=s.useRef({}),z=jn(s.useState(0),2),A=z[0],M=z[1],D=jn(s.useState(!0),2),I=D[0],N=D[1],T=l.paneChildren,H=l.editable,_=l.prefixCls,$=l.onAddTab,F=l.direction,W=l.type,L=W===void 0?"line":W,K=l.overflow,B=K===void 0?"scroll":K,V=l.activeTab,Y=l.showAddButton,q=l.size,G=q===void 0?"default":q,R=l.style,Z=l.tabPosition,ue=l.className,J=l.extra,Q=l.animation,X=l.icons,ie=l.deleteButton,ce=l.addButton,te=l.renderTabTitle,fe=l.scrollAfterEdit,Ae=l.scrollPosition,ae=Ae===void 0?"auto":Ae,_e=l.inkBarSize,se=ge(fe)?In(In({},sC),fe):sC,de=jn(a?[Yl,Zl]:[Zl,Yl],2),be=de[0],Ee=de[1],Ce=L==="capsule"?Ee:be,Oe=s.useMemo(function(){var Se=y.height-w.height-S.height,Xe=y.width-w.width-S.width,Be=l.direction==="vertical"?Se<m.height:Xe<m.width;return Be},[l.direction,y,w,m,S]),ke=function(){if(g.current){var Se=g.current;C({height:Se.offsetHeight,width:Se.offsetWidth})}},oe=function(Se){return Vo(function(Xe){ke();var Be=Xe[0]&&Xe[0].target;Be&&Se({height:Be.offsetHeight,width:Be.offsetWidth,domRect:Be.getBoundingClientRect()})},200)},we=oe(f),xe=oe(p),De=oe(x),Re=oe(k),rr=s.useCallback(function(Se){var Xe=F===hd?m.height-u.height:m.width-u.width,Be=Se;return Be=Math.min(Xe,Be),Be=Math.max(Be,0),Be},[F,m,u]),Ie=function(Se){var Xe=rr(Se);Xe!==A&&M(Xe)};s.useEffect(function(){return function(){var Se,Xe,Be,Ye;(Se=xe==null?void 0:xe.cancel)===null||Se===void 0||Se.call(xe),(Xe=we==null?void 0:we.cancel)===null||Xe===void 0||Xe.call(we),(Be=De==null?void 0:De.cancel)===null||Be===void 0||Be.call(De),(Ye=Re==null?void 0:Re.cancel)===null||Ye===void 0||Ye.call(Re)}},[]),s.useEffect(function(){if(!I){N(!0);return}var Se=function(){var Be=j.current[V];if(!Be||!Oe)return 0;var Ye=pd(Be,c.current),ir=sH({direction:F,align:Ce,headerDom:v.current,headerWrapperDom:c.current});if(F==="vertical"){var yr=ir,fr=ae,Lr=ir+Ye.top,Br=ir+Ye.bottom;return fr==="auto"&&(fr=Ye.top<0?"start":Ye.bottom>0?"end":ae),fr==="start"?yr=Lr:fr==="end"?yr=Br:fr==="center"?yr=Lr-(Ye.top-Ye.bottom)/2:lr(fr)&&(yr=Math.max(Lr-fr,Br)),yr}if(Ce==="right"){var Ir=ir-Ye.left,at=ir-Ye.right,Ur=ae,U=ir;return ae==="auto"&&(Ur=Ye.left<0?"start":Ye.right>0?"end":ae),Ur==="start"?U=Ir:Ur==="end"?U=at:Ur==="center"?U=Ir+(Ye.left-Ye.right)/2:lr(Ur)&&(U=Math.min(Ir+Ur,at)),U}var me=ir,Pe=ae,Ue=ir+Ye.left,tr=ir+Ye.right;return ae==="auto"&&(Pe=Ye.left<0?"start":Ye.right>0?"end":ae),Pe==="start"?me=Ue:Pe==="end"?me=tr:Pe==="center"?me=Ue-(Ye.left-Ye.right)/2:lr(Pe)&&(me=Math.max(Ue-Pe,tr)),me};R6(c.current,F);var Xe=Se();Xe=rr(Xe),M(Xe)},[V,F,B,Oe,L,rr,ae]);var Ve=lH({direction:F,align:Ce,headerOffset:A}),nr=Oe&&B==="dropdown"&&F!=="vertical",Me=Oe&&!nr,We=H&&(L==="card"||L==="card-gutter"||L==="line"),ye=function(Se){l.onDeleteTab&&l.onDeleteTab(Se.key),N(se.delete)},le=function(){$==null||$(),N(se.add)},$e=function(Se){return Se&&Y&&s.createElement(Qr,{onResize:Re},s.createElement("div",In({className:_+"-add-icon","aria-label":"add tab",tabIndex:0,role:"button",ref:P,onClick:le},lC({onPressEnter:le})),ce||s.createElement(lt,{prefix:_+"-add"},s.createElement("span",{className:_+"-add"},(X==null?void 0:X.add)||s.createElement(Wc,null)))))};return oH({headerWrapperRef:c,headerOffset:A,align:Ce,direction:F,isScrollable:Oe,onScroll:function(Se){Ie(Se)}}),s.createElement("div",{className:ee(_+"-header-nav",_+"-header-nav-"+F,_+"-header-nav-"+Z,_+"-header-size-"+G,_+"-header-nav-"+L,ue),style:R,ref:r},s.createElement("div",{className:ee(_+"-header-scroll",(t={},t[_+"-header-overflow-scroll"]=Me,t[_+"-header-overflow-dropdown"]=nr,t)),ref:g},Me&&s.createElement(oC,{iconPos:"prev",rtl:a,icon:X==null?void 0:X.prev,prefixCls:_,currentOffset:A,headerSize:m,headerWrapperSize:u,direction:F,align:Ce,onChange:Ie}),s.createElement(Qr,{onResize:we},s.createElement("div",{className:_+"-header-wrapper",ref:c},s.createElement(Qr,{onResize:xe},s.createElement("div",{className:ee(_+"-header",(n={},n[_+"-header-no-padding"]=!e.headerPadding&&F==="horizontal"&&["line","text"].indexOf(L)>-1,n)),ref:v,style:Ve},T.map(function(Se,Xe){return s.createElement(rH,In({key:Xe,ref:function(Be){j.current[Se.key]=Be},tabKey:Se.key},Se.props,{prefixCls:_,onDeleteTab:function(){return ye(Se)},renderTitle:e.children||te,onClickTab:function(){l.onClickTab&&l.onClickTab(Se.key)},isActive:V===Se.key,editable:We&&Se.props.closable!==!1,deleteIcon:X==null?void 0:X.delete,deleteButton:ie,getIdPrefix:i.getIdPrefix,index:Xe}))}),L==="line"&&s.createElement(iH,{disabled:!!T.find(function(Se){return Se&&Se.props&&Se.props.disabled&&Se.key===V}),prefixCls:_,animation:Q,direction:F,getTitleRef:function(Se){return j.current[Se]},activeTab:V,getHeaderRef:function(){return v},inkBarSize:_e}))),!Oe&&$e(We))),Me&&s.createElement(oC,{prefixCls:_,rtl:a,iconPos:"next",icon:X==null?void 0:X.next,currentOffset:A,headerSize:m,headerWrapperSize:u,direction:F,align:Ce,onChange:Ie}),nr&&s.createElement(Z6,{onClickTab:l.onClickTab,paneChildren:T,prefixCls:_,currentOffset:A,headerSize:m,icon:X==null?void 0:X.dropdown,headerWrapperSize:u,getTitleRef:function(Se){return j.current[Se]},direction:F}),(We&&Oe||J)&&s.createElement(Qr,{onResize:De},s.createElement("div",{className:_+"-header-extra",ref:O},Oe&&$e(We),J))))});uC.displayName="TabHeader";const cC=uC;function uH(e){var r,t=e.animation,n=e.activeTab,i=e.prefixCls,a=e.paneChildren,l=e.direction,o=e.lazyload,c=e.destroyOnHide,u=a.findIndex(function(m){return m.key===n}),f=s.useContext(gd),d=s.useContext(je).rtl;if(a.every(function(m){return(m==null?void 0:m.props)&&(!("children"in m.props)||m.props.children===null)}))return null;var v=ee(i+"-content-inner",(r={},r[i+"-animation"]=t,r));return s.createElement("div",{className:i+"-content "+i+"-content-"+l},s.createElement("div",{className:v,style:d?{marginRight:"-"+u*100+"%"}:{marginLeft:"-"+u*100+"%"}},a.map(function(m,p){var h,g=f.getIdPrefix(p),y=g.tabpane,C=g.tab,b="destroyOnHide"in m.props?m.props.destroyOnHide:c,O=m.key===n;return s.createElement("div",{key:m.key,className:ee(i+"-content-item",(h={},h[i+"-content-item-active"]=O,h)),role:"tabpanel",id:y,"aria-hidden":O?void 0:!0,tabIndex:O?0:-1,"aria-labelledby":C},u!==p&&b?null:s.cloneElement(m,{lazyload:o,isActive:O}))})))}var vn=function(){return vn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},vn.apply(this,arguments)},cH=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},fH=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},dH=["mini","small","default","large"],vH=function(e){var r=e.children,t=[];return s.Children.forEach(r,function(n){n&&n.type&&n.type.isTabPane&&t.push(n)}),t},pH=function(e){var r=e.direction,t=e.tabPosition,n=e.animation;return r==="vertical"||t==="left"||t==="right"?!1:ge(n)?"tabPane"in n?n.tabPane:!1:n},mH={tabPosition:"top",type:"line",overflow:"scroll",showAddButton:!0,lazyload:!0,headerPadding:!0,scrollPosition:"auto"},gd=s.createContext({});function hH(e,r){var t,n=s.useContext(je),i=n.getPrefixCls,a=n.size,l=n.componentConfig,o=n.rtl,c=sr(e,mH,l==null?void 0:l.Tabs),u=vH(c),f=s.useRef(),d=fH(gr(u[0]&&u[0].key,{defaultValue:"defaultActiveTab"in c?c.defaultActiveTab:void 0,value:"activeTab"in c?c.activeTab:void 0}),2),v=d[0],m=d[1],p=i("tabs"),h=c.size||(dH.indexOf(a)>-1?a:"default"),g=c.animation,y=c.className,C=c.direction,b=c.style,O=c.type,w=c.justify,x=c.destroyOnHide,E=c.lazyload,P=c.onChange,S=c.onClickTab,k=c.onDeleteTab,j=c.renderTabHeader,z=cH(c,["animation","className","direction","style","type","justify","destroyOnHide","lazyload","onChange","onClickTab","onDeleteTab","renderTabHeader"]),A=$i(p+"-"),M=C==="vertical"?"left":c.tabPosition,D={animation:ge(g)&&"inkBar"in g?g.inkBar:!0,activeTab:v,tabPosition:M,direction:["left","right"].indexOf(M)>-1?"vertical":"horizontal",paneChildren:u,onClickTab:function(N){ar(S)&&S(N),N!==v&&("activeTab"in c||m(N),ar(P)&&P(N))},onDeleteTab:k,prefixCls:p};s.useImperativeHandle(r,function(){return f},[]);var I=s.createElement(uH,{direction:["left","right"].indexOf(M)>-1?"vertical":"horizontal",animation:pH(c),activeTab:v,paneChildren:u,prefixCls:p,destroyOnHide:x,lazyload:E});return s.createElement("div",vn({},ur(z,["headerPadding","tabPosition","defaultActiveTab","showAddButton","extra","onAddTab","activeTab","overflow","editable","renderTabTitle","addButton","deleteButton","icons","children","size","type","scrollPosition","offsetAlign"]),{style:b,className:ee(p,p+"-"+(["left","right"].indexOf(M)>-1?"vertical":"horizontal"),p+"-"+O,p+"-"+M,p+"-size-"+h,(t={},t[p+"-justify"]=w,t[p+"-rtl"]=o,t),y),ref:f}),s.createElement(gd.Provider,{value:vn(vn({},D),{getIdPrefix:function(N){return{tab:A&&A+"-tab-"+N,tabpane:A&&A+"-panel-"+N}}})},M==="bottom"&&I,ar(j)?j(vn(vn(vn({},ur(c,["children","style","className"])),{size:h}),D),cC):s.createElement(cC,vn({},ur(c,["children","style","className"]),{size:h})),M!=="bottom"&&I))}var gH=s.forwardRef(hH),Nt=gH;Nt.displayName="Tabs",Nt.TabPane=Y6;function fC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function dC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?fC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function yH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=dC(dC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-delete")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"}))}var yd=s.forwardRef(yH);yd.defaultProps={isIcon:!0},yd.displayName="IconDelete";const vC=yd;function bH(e,r){var t=s.useContext(je).getPrefixCls,n=t("typography"),i=e.className,a=e.style,l=e.children,o=ee(n,i);return s.createElement("article",{ref:r,style:a,className:o},l)}var pC=s.forwardRef(bH);pC.displayName="Typography";const CH=pC;var wH=function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(l){l(a)})}return new(t||(t=Promise))(function(a,l){function o(f){try{u(n.next(f))}catch(d){l(d)}}function c(f){try{u(n.throw(f))}catch(d){l(d)}}function u(f){f.done?a(f.value):i(f.value).then(o,c)}u((n=n.apply(e,r||[])).next())})},OH=function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=r.call(e,t)}catch(f){u=[6,f],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};function xH(e){return wH(this,void 0,void 0,function(){var r,t,n,i,a;return OH(this,function(l){switch(l.label){case 0:if(!(navigator.clipboard&&navigator.clipboard.writeText))return[3,4];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,navigator.clipboard.writeText(e)];case 2:return l.sent(),[2];case 3:return r=l.sent(),console.error(r??new DOMException("The request is not allowed","NotAllowedError")),[3,4];case 4:t=document.createElement("span"),t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t),n=window.getSelection(),i=window.document.createRange(),n.removeAllRanges(),i.selectNode(t),n.addRange(i),a=!1;try{a=window.document.execCommand("copy")}catch(o){console.log("error",o)}return n.removeAllRanges(),window.document.body.removeChild(t),[2,a?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))]}})})}function mC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function hC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?mC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):mC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function _H(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=hC(hC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-copy")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"}))}var bd=s.forwardRef(_H);bd.defaultProps={isIcon:!0},bd.displayName="IconCopy";const EH=bd;function gC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function yC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?gC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function SH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=yC(yC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-edit")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"}))}var Cd=s.forwardRef(SH);Cd.defaultProps={isIcon:!0},Cd.displayName="IconEdit";const PH=Cd;var bC=function(e){return pt(e)||lr(e)};function ao(e){var r=[""];return s.Children.forEach(e,function(t){var n=r.length-1,i=r[n];bC(t)&&bC(i)?r[n]=""+i+t:t&&t.props&&t.props.children&&r.push(ao(t.props.children))}),r.join("")}var li=function(){return li=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},li.apply(this,arguments)},NH=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function IH(e){var r=e.children,t=e.copyable,n=e.editable,i=e.ellipsis,a=e.expanding,l=e.setEditing,o=e.onClickExpand,c=e.forceShowExpand,u=e.isEllipsis,f=e.currentContext,d=f===void 0?{}:f,v=On(),m=d.getPrefixCls,p=d.locale,h=m("typography"),g=NH(s.useState(!1),2),y=g[0],C=g[1],b=s.useRef(null),O=ge(t)?t:{},w=ge(i)?i:{},x=ge(n)?n:{},E=Ke(w.expandNodes)?w.expandNodes:[p.Typography.fold,p.Typography.unfold];s.useEffect(function(){return function(){clearTimeout(b.current),b.current=null}},[]);function P(M){if(!y){var D=O.text!==void 0?O.text:ao(r);xH(D),C(!0),O.onCopy&&O.onCopy(D,M),b.current=setTimeout(function(){C(!1)},3e3)}}var S=function(M){x.onStart&&x.onStart(ao(r),M),l(!0)},k=O.tooltips||[p.Typography.copy,p.Typography.copied],j=t&&s.createElement(Xr,li({content:y?k[1]:k[0]},O.tooltipProps),s.createElement("span",li({className:y?h+"-operation-copied":h+"-operation-copy",onClick:P,role:"button","aria-label":k[0],tabIndex:0},v({onPressEnter:P})),y?s.createElement(ca,null):O.icon||s.createElement(EH,null))),z=n&&s.createElement(Xr,li({content:p.Typography.edit},x.tooltipProps),s.createElement("span",li({tabIndex:0,"aria-label":p.Typography.edit,role:"button",className:h+"-operation-edit",onClick:S},v({onPressEnter:S})),s.createElement(PH,null))),A=c||w.expandable&&u?s.createElement("a",li({className:h+"-operation-expand",onClick:o,role:"button",tabIndex:0,"aria-label":p.Typography.unfold},v({onPressEnter:o})),a?E[0]:E[1]):null;return s.createElement(s.Fragment,null,A,z,j)}function jH(e){var r=e.prefixCls,t=e.children,n=e.setEditing,i=e.editableConfig,a=e.style,l=ee(r+"-typography",r+"-edit-content",e.className),o=ao(t),c=s.useRef(null);s.useEffect(function(){if(c.current&&c.current.focus&&c.current.focus(),c.current&&c.current.dom){var v=c.current.dom.value.length;c.current.dom.setSelectionRange(v,v)}},[]);function u(){n(!1),i.onEnd&&i.onEnd(o)}function f(v){i.onChange&&i.onChange(v)}function d(){u()}return s.createElement("div",{className:l,style:a},s.createElement(ct.TextArea,{className:r+"-edit-content-textarea",onBlur:d,ref:c,value:o,autoSize:!0,onChange:f,onPressEnter:u}))}var ra=function(){return ra=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ra.apply(this,arguments)},oo=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},TH="hxj",zr;(function(e){e[e.INIT=0]="INIT",e[e.BEFORE_MEASURE=1]="BEFORE_MEASURE",e[e.MEASURING=2]="MEASURING",e[e.MEASURE_END=3]="MEASURE_END",e[e.NO_NEED_ELLIPSIS=4]="NO_NEED_ELLIPSIS"})(zr||(zr={}));function $H(e){var r=e.children,t=e.rows,n=t===void 0?1:t,i=e.width,a=e.expanding,l=e.renderMeasureContent,o=e.simpleEllipsis,c=e.onEllipsis,u=e.suffix,f=e.expandNodes,d=e.expandable,v=e.ellipsisStr,m=s.useRef(),p=s.useRef(),h=oo(s.useState([0,0,0]),2),g=h[0],y=h[1],C=oo(s.useState(0),2),b=C[0],O=C[1],w=oo(s.useState(zr.NO_NEED_ELLIPSIS),2),x=w[0],E=w[1],P=oo(g,3),S=P[0],k=P[1],j=P[2],z=oo(s.useState(!1),2),A=z[0],M=z[1],D=s.useMemo(function(){return s.Children.toArray(r)},[r]),I=s.useRef(0);Wi(function(){c&&c(A)},[A]);var N=function(Y){return pt(Y)||lr(Y)},T=function(Y){var q=0;return Y.forEach(function(G){N(G)?q+=String(G).length:q+=1}),q},H=s.useMemo(function(){return T(D)},[D]),_=ga(function(Y){return y(Y)}),$=function(Y){var q=[],G=0;if(Y>=H)return D;for(var R in D){var Z=D[R];if(G>=Y)return q;var ue=N(Z)?String(Z).length:1;if(ue>Y-G)return q.push(String(Z).slice(0,Y-G)),G=Y,q;G+=ue,q.push(Z)}return q},F=function(){var Y,q;if(b){if(x===zr.INIT){var G=n*b,R=(Y=p.current)===null||Y===void 0?void 0:Y.offsetHeight,Z=R>G;!Z||o||a?(E(zr.MEASURE_END),M(Z),y([0,H,H])):(M(!0),E(zr.BEFORE_MEASURE))}else if(x===zr.BEFORE_MEASURE){var ue=m==null?void 0:m.current.offsetWidth,J=n*i;if(ue>n*i){var Q=Math.max(J/ue-.1,0),X=Math.min(J/ue+.1,1),ie=Math.floor(Q*H),ce=Math.ceil(X*H),te=Math.floor((ie+ce)/2);I.current=te}E(zr.MEASURING)}else if(x===zr.MEASURING)if(S!==j-1){var R=(q=p.current)===null||q===void 0?void 0:q.offsetHeight,G=n*b,fe=S,Ae=j;R<=G?fe=k:Ae=k;var ae=Math.floor((Ae+fe)/2);_([fe,ae,Ae])}else _([S,S,S]),E(zr.MEASURE_END)}};Cn(function(){e.rows&&i?(y([0,Math.floor(H/2),H]),E(zr.INIT)):E(zr.NO_NEED_ELLIPSIS)},[H,o,a,i,u,f,d,v,e.rows]),Cn(function(){if(m.current&&x===zr.INIT){var Y=m.current.offsetHeight;O(Y)}},[x]),Cn(function(){F()},[x,k,S,j,b]);var W={zIndex:-999,position:"fixed",opacity:0,padding:0,margin:0},L=ra({whiteSpace:"nowrap"},W),K=o?ra({textOverflow:"clip"},W):W,B;if(x===zr.INIT||x===zr.BEFORE_MEASURE)B=s.createElement("div",null,s.createElement("div",{ref:m,style:L},x===zr.INIT?TH:l(r,!1)),s.createElement("div",{ref:p,style:ra({width:i},K)},l(r,A))),B=B.props.children;else if(x===zr.MEASURING){var V={height:b*n,overflow:"hidden"};B=s.createElement("div",null,s.createElement("div",{ref:p,style:ra({width:i},K)},l($(k),A)),s.createElement("div",{style:V},$(I.current))),B=B.props.children}else x===zr.MEASURE_END?B=l($(k),A):x===zr.NO_NEED_ELLIPSIS&&(B=l(r,!1));return{ellipsisNode:B,isEllipsis:A,measureStatus:x}}var kH=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},MH=function(e,r){if(typeof window<"u"&&window.CSS&&window.CSS.supports)return jr(r)?window.CSS.supports(e):window.CSS.supports(e,r);if(typeof document<"u"&&document.createElement){var t=document.createElement("div");return t.setAttribute("style",e+":"+r+";"),typeof t.style[e]<"u"}return!1},AH={display:" -webkit-box","-webkit-line-clamp":2},DH=function(){return Object.entries(AH).every(function(e){var r=kH(e,2),t=r[0],n=r[1];return MH(t,n)})};function FH(e){var r=e.cssEllipsis,t=e.ellipsisStr,n=t===void 0?"...":t,i=e.suffix,a=e.rows,l=s.useMemo(function(){return!r||a>1&&!DH()?!1:n==="..."&&!i},[n,r,a,i]),o={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},c={textOverflow:"ellipsis",whiteSpace:"normal",overflow:"hidden",WebkitLineClamp:""+e.rows,WebkitBoxOrient:"vertical",display:"-webkit-box"};return{simpleEllipsis:l,ellipsisStyle:l?e.rows>1?c:o:{}}}var CC=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},wC=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))};function LH(e){var r=null,t=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(e.apply(void 0,wC([],CC(n),!1)),r=ut(function(){})),r&&nt(r),r=ut(function(){e.apply(void 0,wC([],CC(n),!1)),r=null})};return t.cancel=function(){nt(r),r=null},t}var bt=function(){return bt=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},bt.apply(this,arguments)},VH=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},wd=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function zH(e,r){var t=e.type,n=e.bold,i=e.disabled,a=e.mark,l=e.underline,o=e.delete,c=e.code,u=[],f=[];return t&&f.push(r+"-"+t),i&&f.push(r+"-disabled"),n&&u.push("b"),l&&u.push("u"),o&&u.push("del"),c&&u.push("code"),a&&u.push("mark"),{component:u,className:f}}function Od(e){var r,t=e.componentType,n=e.style,i=e.className,a=e.children,l=e.editable,o=e.ellipsis,c=e.heading,u=e.blockquote,f=VH(e,["componentType","style","className","children","editable","ellipsis","heading","blockquote"]),d=s.useContext(je),v=d.getPrefixCls,m=d.rtl,p=v("typography"),h=zH(e,p),g=h.component,y=h.className,C=wd(s.useState(!1),2),b=C[0],O=C[1],w=wd(s.useState(0),2),x=w[0],E=w[1],P=ge(l)?l:{},S="editing"in P?P.editing:b,k=o?bt({rows:1,ellipsisStr:"...",cssEllipsis:!1},ge(o)?o:{}):{},j=k.wrapper||s.Fragment,z=wd(gr(!1,{defaultValue:k.defaultExpanded,value:k.expanded}),2),A=z[0],M=z[1],D=FH(k),I=D.simpleEllipsis,N=D.ellipsisStyle,T=function(q,G){var R=jr(k.ellipsisStr)?"...":k.ellipsisStr,Z=!jr(k.suffix)&&k.suffix;return s.createElement(j,null,q,G&&!A&&!I?R:"",Z,L(G))},H=$H(bt(bt({},k),{children:a,expanding:A,width:x,renderMeasureContent:T,simpleEllipsis:I||A})),_=H.ellipsisNode,$=H.isEllipsis,F=H.measureStatus,W=LH(function(q){var G=(q==null?void 0:q[0]).contentRect;if(G){var R=g.includes("code")?G.width-18:G.width,Z=[zr.NO_NEED_ELLIPSIS,zr.MEASURE_END];Z.includes(F)&&E(R)}});function L(q){return s.createElement(s.Fragment,null,s.createElement(IH,bt({},e,{setEditing:O,onClickExpand:K,expanding:A,isEllipsis:q,currentContext:d})))}function K(q){M(!A),e.onClickExpand&&e.onClickExpand(q),k.onExpand&&k.onExpand(!A,q)}Wi(function(){k.onEllipsis&&k.onEllipsis($)},[$]);function B(q,G,R,Z){Z===void 0&&(Z={});var ue=q;return G.forEach(function(J,Q){var X=Q===0?Z:{},ie=ge(R.mark)&&R.mark.color?bt({style:{backgroundColor:R.mark.color}},X):bt({},X);ue=s.createElement(J,bt({},ie),ue)}),ue}var V;t==="Paragraph"?V=u?"blockquote":"div":t==="Title"?V="h"+c:t==="Text"&&(V=o?"div":"span");function Y(){var q,G=ao(s.Children.toArray(a)),R=k.showTooltip,Z=ge(k.showTooltip)&&k.showTooltip.type==="popover"?"popover":"tooltip",ue=ge(k.showTooltip)?k.showTooltip.props||{}:{},J=Z==="popover"?Zm:Xr,Q=$&&!R&&!A?{title:G}:{},X=bt({style:n},Q),ie=$&&R&&!A,ce=s.createElement(Qr,{onResize:W},s.createElement(V,bt({className:ee(p,y,(q={},q[p+"-rtl"]=m,q),i)},X,ur(f,["spacing","type","close","bold","disabled","mark","underline","delete","code","copyable","isEllipsis","expanding","onClickExpand","setEditing","forceShowExpand"])),I&&F!==zr.INIT&&!A&&$?B(T(s.createElement("span",{style:N},a),$),g.length?g:["span"],e,{className:p+"-simple-ellipsis"}):B(_,g,e)));return ie?s.createElement(J,bt({content:G},ue),s.createElement("span",null,ce)):ce}return S?s.createElement(jH,bt({},e,{className:ee(p,y,(r={},r[p+"-rtl"]=m,r),p+"-"+V,i),prefixCls:p,setEditing:O,editableConfig:P})):Y()}var xd=function(){return xd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},xd.apply(this,arguments)},HH=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function OC(e){var r=e.heading,t=r===void 0?1:r,n=HH(e,["heading"]);return s.createElement(Od,xd({heading:t},n,{componentType:"Title"}))}OC.displayName="Title";var _d=function(){return _d=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},_d.apply(this,arguments)};function xC(e){return s.createElement(Od,_d({},e,{componentType:"Text"}))}xC.displayName="Text";var Ed=function(){return Ed=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ed.apply(this,arguments)};function _C(e){var r=e.spacing,t=r===void 0?"default":r,n=e.className,i=s.useContext(je).getPrefixCls,a=i("typography"),l=t==="close"?ee(a+"-spacing-close",n):n;return s.createElement(Od,Ed({},e,{componentType:"Paragraph",className:l}))}_C.displayName="Paragraph";var Sd=function(){return Sd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Sd.apply(this,arguments)},Xl=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},WH={rows:1,expandable:!0,defaultExpanded:!1},BH=function(e,r){var t,n=s.useContext(je),i=sr(e,WH,(t=n.componentConfig)===null||t===void 0?void 0:t["Typography.Ellipsis"]),a=i.className,l=i.style,o=i.rows,c=i.disabled,u=i.showTooltip,f=i.children,d=i.expandable,v=i.expandRender,m=i.onExpand,p=i.onEllipsis,h=n.locale,g=s.useRef(null),y=s.useRef(null),C=Xl(s.useState(""),2),b=C[0],O=C[1],w=Xl(s.useState(!1),2),x=w[0],E=w[1],P=s.useRef(null),S=s.useRef(null),k=Xl(gr(!1,{defaultValue:i.defaultExpanded,value:i.expanded}),2),j=k[0],z=k[1],A=Xl(s.useState(!1),2),M=A[0],D=A[1],I=s.useMemo(function(){return ge(d)?!d.single&&o===1:o===1},[o,d]),N=s.useMemo(function(){return ge(u)?{tooltip:!0,tooltipProps:u}:{tooltip:!!u,tooltipProps:u}},[u]);s.useEffect(function(){if(y.current){var K=y.current.textContent;K&&O(K)}},[f,y]);var T=n.getPrefixCls("ellipsis"),H=function(){return v?v(j):s.createElement("span",{className:T+"-action-text"},j?h.Typography.fold:h.Typography.unfold)},_=function(){var K;return d&&M?s.createElement("div",{className:ee(T+"-action",(K={},K[T+"-action-collapsed"]=!j,K)),onClick:function(B){j?(z(!1),m==null||m(!1,B)):(z(!0),E(!1),m==null||m(!0,B))}},H()):null},$=s.useCallback(ga(function(){if(S.current&&P.current){var K=I?S.current.offsetWidth>P.current.offsetWidth:S.current.offsetHeight>P.current.offsetHeight;K?M===!1&&(D(!0),p==null||p(!0)):M===!0&&(D(!1),p==null||p(!1))}}),[M,I]),F=function(){return c?null:s.createElement(Qr,{onResize:$},s.createElement("div",{className:I?ee(T+"-content-mirror",T+"-single"):ee(T+"-content-mirror",T+"-multiple",T+"-collapsed"),style:{WebkitBoxOrient:"vertical",MozBoxOrient:"vertical",WebkitLineClamp:o},ref:P},s.createElement(Qr,{onResize:$},s.createElement("span",{ref:S,className:T+"-text"},f))))},W=function(){var K;return I?s.createElement("div",{className:ee(T+"-content",T+"-single")},s.createElement("span",{ref:y,className:T+"-text"},f)):s.createElement("div",{className:ee(T+"-content",T+"-multiple",(K={},K[T+"-collapsed"]=!j,K)),style:{WebkitBoxOrient:"vertical",MozBoxOrient:"vertical",WebkitLineClamp:o},title:!N.tooltip&&M&&!j?b:void 0},!j&&_(),s.createElement("span",{ref:y,className:T+"-text"},f),j&&_())},L=function(){return c?s.createElement("div",{className:T+"-content"},s.createElement("span",{ref:y,className:T+"-text"},f)):N.tooltip?s.createElement(Xr,Sd({content:b,popupVisible:x,disabled:!M||j,triggerProps:{mouseEnterDelay:100},onVisibleChange:function(K){K?M&&!j&&E(!0):E(!1)}},N.tooltipProps),W()):W()};return s.createElement("div",{ref:g,className:ee(T,a),style:l},F(),L())},UH=s.forwardRef(BH);const GH=UH;var lo=CH;lo.Title=OC,lo.Text=xC,lo.Paragraph=_C,lo.Ellipsis=GH;const si=lo;function EC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function SC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?EC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):EC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function KH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=SC(SC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-image-close")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M41 26V9a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v30a2 2 0 0 0 2 2h17"}),s.createElement("path",{d:"m24 33 9-8.5V27s-2 1-3.5 2.5C27.841 31.159 27 33 27 33h-3Zm0 0-3.5-4.5L17 33h7Z"}),s.createElement("path",{fill:"currentColor",stroke:"none",d:"M20.5 28.5 17 33h7l-3.5-4.5ZM33 24.5 24 33h3s.841-1.841 2.5-3.5C31 28 33 27 33 27v-2.5Z"}),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M46 38a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-4.95-4.782 1.74 1.74-3.045 3.046 3.046 3.046-1.74 1.74-3.047-3.045-3.046 3.046-1.74-1.74 3.046-3.047-3.046-3.046 1.74-1.74 3.046 3.046 3.046-3.046Z",clipRule:"evenodd"}),s.createElement("path",{d:"M17 15h-2v2h2v-2Z"}))}var Pd=s.forwardRef(KH);Pd.defaultProps={isIcon:!0},Pd.displayName="IconImageClose";const qH=Pd;function PC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function NC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?PC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):PC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function YH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=NC(NC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-zoom-out")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15"}))}var Nd=s.forwardRef(YH);Nd.defaultProps={isIcon:!0},Nd.displayName="IconZoomOut";const ZH=Nd;function IC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function jC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?IC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):IC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function XH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=jC(jC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-zoom-in")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15"}))}var Id=s.forwardRef(XH);Id.defaultProps={isIcon:!0},Id.displayName="IconZoomIn";const JH=Id;function TC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function $C(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?TC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):TC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function QH(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=$C($C({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-fullscreen")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8"}))}var jd=s.forwardRef(QH);jd.defaultProps={isIcon:!0},jd.displayName="IconFullscreen";const RH=jd;function kC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function MC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?kC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):kC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function e7(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=MC(MC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-rotate-left")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z"}))}var Td=s.forwardRef(e7);Td.defaultProps={isIcon:!0},Td.displayName="IconRotateLeft";const r7=Td;function AC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function DC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?AC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):AC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function t7(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=DC(DC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-rotate-right")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z"}))}var $d=s.forwardRef(t7);$d.defaultProps={isIcon:!0},$d.displayName="IconRotateRight";const n7=$d;function FC(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function LC(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?FC(Object(t),!0).forEach(function(n){Ze(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):FC(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function i7(e,r){var t=s.useContext(Ge),n=t.prefixCls,i=n===void 0?"arco":n,a=e.spin,l=e.className,o=LC(LC({"aria-hidden":!0,focusable:!1,ref:r},e),{},{className:"".concat(l?l+" ":"").concat(i,"-icon ").concat(i,"-icon-original-size")});return a&&(o.className="".concat(o.className," ").concat(i,"-icon-loading")),delete o.spin,delete o.isIcon,s.createElement("svg",He({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},o),s.createElement("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"}),s.createElement("path",{fill:"currentColor",stroke:"none",d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"}),s.createElement("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"}))}var kd=s.forwardRef(i7);kd.defaultProps={isIcon:!0},kd.displayName="IconOriginalSize";const a7=kd;var o7=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function VC(e){var r=o7(s.useState(e),2),t=r[0],n=r[1],i=t==="beforeLoad",a=t==="loading",l=t==="error",o=t==="loaded",c=t==="lazyload";return{status:t,isBeforeLoad:i,isLoading:a,isError:l,isLoaded:o,isLazyLoad:c,setStatus:n}}var zC=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500],l7=function(){function e(r){this.updateScale(r)}return Object.defineProperty(e.prototype,"scales",{get:function(){return this.scaleAttr},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minScale",{get:function(){return this.scaleAttr[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScale",{get:function(){return this.scaleAttr[this.scaleAttr.length-1]},enumerable:!1,configurable:!0}),e.prototype.updateScale=function(r){var t=zC;if(Ke(r)&&r.filter(function(l){return l>0}).length&&(t=r.filter(function(l){return l>0})),t=t.map(function(l){return+(l/100).toFixed(2)}),!t.includes(1)){var n=this.findClosestIndex(1,t),i=t[n],a=i<1?n+1:n;t.splice(a,0,1)}this.scaleAttr=t},e.prototype.findClosestIndex=function(r,t){if(t===void 0&&(t=this.scaleAttr),!!t.length){if(t.length===1)return 0;for(var n=t.length-1,i=0;i<t.length;i++){var a=t[i];if(r===a){n=i;break}if(r<a){var l=t[i-1];n=l===void 0||Math.abs(l-r)<=Math.abs(a-r)?i-1:i;break}}return n}},e.prototype.getNextScale=function(r,t){t===void 0&&(t="zoomIn");var n=this.scaleAttr.indexOf(r);return n===-1&&(n=this.findClosestIndex(r)),t==="zoomIn"?n===this.scaleAttr.length-1?r:this.scaleAttr[n+1]:n===0?r:this.scaleAttr[n-1]},e}();const s7=l7;function u7(e,r,t,n,i){var a=t,l=n;return t&&(e.width>r.width?a=0:(r.left>e.left&&(a-=Math.abs(e.left-r.left)/i),r.right<e.right&&(a+=Math.abs(e.right-r.right)/i))),n&&(e.height>r.height?l=0:(r.top>e.top&&(l-=Math.abs(e.top-r.top)/i),r.bottom<e.bottom&&(l+=Math.abs(e.bottom-r.bottom)/i))),[a,l]}var HC=function(e){var r=e.style,t=e.className,n=e.prefixCls,i=e.popup,a=e.children,l=ee(n+"-trigger",t);return s.createElement(Ea,{style:r,className:l,popup:i,showArrow:!0},a)},Md=function(){return Md=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Md.apply(this,arguments)},c7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},Ad=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},Dd=function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++)(a||!(n in r))&&(a||(a=Array.prototype.slice.call(r,0,n)),a[n]=r[n]);return e.concat(a||Array.prototype.slice.call(r))},f7=function(e,r){var t,n=e.prefixCls,i=e.previewPrefixCls,a=e.simple,l=a===void 0?!1:a,o=e.actions,c=o===void 0?[]:o,u=e.actionsLayout,f=u===void 0?[]:u,d=e.defaultActions,v=d===void 0?[]:d,m=new Set(f),p=function(w){return m.has(w.key)},h=Dd(Dd([],Ad(v.filter(p)),!1),Ad(c.filter(p)),!1),g=c.filter(function(w){return!m.has(w.key)}),y=h.sort(function(w,x){var E=f.indexOf(w.key),P=f.indexOf(x.key);return E>P?1:-1});if(m.has("extra")){var C=f.indexOf("extra");y.splice.apply(y,Dd([C,0],Ad(g),!1))}var b=function(w,x){var E;x===void 0&&(x=!1);var P=w.content,S=w.disabled,k=w.key,j=w.name,z=w.getContainer,A=w.onClick,M=c7(w,["content","disabled","key","name","getContainer","onClick"]),D=s.createElement("div",Md({className:ee(i+"-toolbar-action",(E={},E[i+"-toolbar-action-disabled"]=S,E)),key:k,onClick:function(I){!S&&A&&A(I)},onMouseDown:function(I){I.preventDefault()}},M),P&&s.createElement("span",{className:i+"-toolbar-action-content"},P),x&&j&&s.createElement("span",{className:i+"-toolbar-action-name"},j));return z?z(D):D};if(!y.length)return null;var O=y.map(function(w){var x=b(w,l);return!l&&w.name&&!w.getContainer?s.createElement(Xr,{content:w.name,key:w.key},x):x});return s.createElement("div",{ref:r,className:ee(i+"-toolbar",(t={},t[i+"-toolbar-simple"]=l,t),e.className),style:e.style},l&&s.createElement(HC,{prefixCls:n,className:i+"-trigger",popup:function(){return s.createElement("div",null,O)}},b({key:"trigger",content:s.createElement("span",null,s.createElement(Da,null))})),!l&&O)};const d7=s.forwardRef(f7);var Fd=s.createContext({previewGroup:!1,previewUrlMap:new Map,previewPropsMap:new Map,infinite:!0,currentIndex:0,setCurrentIndex:function(){return null},setPreviewUrlMap:function(){return null},registerPreviewUrl:function(){return null},registerPreviewProps:function(){return null},visible:!1,handleVisibleChange:function(){return null}});function v7(e){var r,t,n=e.current,i=e.previewCount,a=e.infinite,l=a===void 0?!1:a,o=e.onPrev,c=e.onNext,u=s.useContext(je).getPrefixCls,f=u("image-preview"),d=ee(f+"-arrow"),v=!l&&n<=0,m=!l&&n>=i-1;return s.createElement("div",{className:d},s.createElement("div",{className:ee(f+"-arrow-left",(r={},r[f+"-arrow-disabled"]=v,r)),onClick:function(p){p.preventDefault(),!v&&(o==null||o())}},s.createElement(Gn,null)),s.createElement("div",{className:ee(f+"-arrow-right",(t={},t[f+"-arrow-disabled"]=m,t)),onClick:function(p){p.preventDefault(),!m&&(c==null||c())}},s.createElement(Un,null)))}var Tn=function(){return Tn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Tn.apply(this,arguments)},p7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},Jt=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},Ld=90,m7={maskClosable:!0,closable:!0,breakPoint:316,actionsLayout:["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize","extra"],getPopupContainer:function(){return document.body},escToExit:!0,scales:zC,resetTranslate:!0};function h7(e,r){var t,n=s.useContext(Fd),i=n.previewGroup,a=n.previewUrlMap,l=n.currentIndex,o=n.setCurrentIndex,c=n.infinite,u=n.previewPropsMap,f=i?u.get(l):{},d=sr(e,m7,f),v=d.className,m=d.style,p=d.src,h=d.defaultVisible,g=d.maskClosable,y=d.closable,C=d.breakPoint,b=d.actions,O=d.actionsLayout,w=d.getPopupContainer,x=d.onVisibleChange,E=d.scales,P=d.escToExit,S=d.imgAttributes,k=S===void 0?{}:S,j=d.imageRender,z=d.extra,A=z===void 0?null:z,M=d.resetTranslate,D=i?a.get(l):p,I=Jt(s.useState(D),2),N=I[0],T=I[1],H=Jt(gr(!1,{defaultValue:h,value:d.visible}),2),_=H[0],$=H[1],F=s.useContext(je),W=F.getPrefixCls,L=F.locale,K=F.rtl,B=W("image"),V=B+"-preview",Y=ee(V,(t={},t[V+"-hide"]=!_,t[V+"-rtl"]=K,t),v),q=s.useRef(),G=s.useRef(),R=s.useRef(),Z=s.useRef(!1),ue=s.useRef({pageX:0,pageY:0,originX:0,originY:0}),J=VC("loading"),Q=J.isLoading,X=J.isLoaded,ie=J.setStatus,ce=Jt(s.useState(!1),2),te=ce[0],fe=ce[1],Ae=Jt(s.useState({x:0,y:0}),2),ae=Ae[0],_e=Ae[1],se=Jt(s.useState(1),2),de=se[0],be=se[1],Ee=Jt(s.useState(!1),2),Ce=Ee[0],Oe=Ee[1],ke=Jt(s.useState(0),2),oe=ke[0],we=ke[1],xe=Jt(s.useState(!1),2),De=xe[0],Re=xe[1],rr=s.useMemo(function(){return new s7(E)},[]),Ie=k.onLoad,Ve=k.onError,nr=k.onMouseDown,Me=k.style,We=k.className,ye=p7(k,["onLoad","onError","onMouseDown","style","className"]);function le(){_e({x:0,y:0}),be(1),we(0)}s.useImperativeHandle(r,function(){return{reset:le}});var $e=Jt(s.useState(),2),Se=$e[0],Xe=$e[1],Be=s.useCallback(function(){return Se},[Se]);s.useEffect(function(){var Le=w==null?void 0:w(),pr=ot.findDOMNode(Le)||document.body;Xe(pr)},[w]),Nb(Be,{hidden:_});var Ye=s.useMemo(function(){return!bn&&Se===document.body},[Se]);function ir(Le){var pr=a.size;c&&(Le%=pr,Le<0&&(Le=pr-Math.abs(Le))),Le!==l&&Le>=0&&Le<=pr-1&&o(Le)}function yr(){ir(l-1)}function fr(){ir(l+1)}function Lr(){we(oe===0?360-Ld:oe-Ld)}function Br(){we((oe+Ld)%360)}var Ir=s.useRef(null),at=function(){!Ce&&Oe(!0),Ir.current&&clearTimeout(Ir.current),Ir.current=setTimeout(function(){Oe(!1)},1e3)},Ur=function(Le){de!==Le&&(be(Le),at())};function U(){var Le=rr.getNextScale(de,"zoomIn");Ur(Le)}function me(){var Le=rr.getNextScale(de,"zoomOut");Ur(Le)}function Pe(Le){Le.deltaY>0?de>=rr.minScale&&me():de<=rr.maxScale&&U()}function Ue(){Ur(1)}function tr(){var Le=R.current.getBoundingClientRect(),pr=q.current.getBoundingClientRect(),Gr=Le.height/(pr.height/de),Yr=Le.width/(pr.width/de),pn=Math.max(Gr,Yr);Ur(pn)}function ne(Le){Le.target===Le.currentTarget&&g&&Ne()}function he(){Ne()}function Ne(){_&&(x&&x(!1,_),jr(d.visible)&&$(!1))}function qe(Le){if(Le&&Le.length){var pr=Le[0].contentRect,Gr=pr.width<C;fe(Gr)}}var Je=function(){if(!(!R.current||!q.current)){var Le=R.current.getBoundingClientRect(),pr=q.current.getBoundingClientRect(),Gr=Jt(u7(Le,pr,ae.x,ae.y,de),2),Yr=Gr[0],pn=Gr[1];(Yr!==ae.x||pn!==ae.y)&&_e({x:Yr,y:pn})}},ze=function(Le){if(_&&De){Le.preventDefault&&Le.preventDefault();var pr=ue.current,Gr=pr.originX,Yr=pr.originY,pn=pr.pageX,ta=pr.pageY,Qt=Gr+(Le.pageX-pn)/de,po=Yr+(Le.pageY-ta)/de;_e({x:Qt,y:po})}},or=function(Le){Le.preventDefault&&Le.preventDefault(),Re(!1)};function Er(Le){ie("loaded"),Ie&&Ie(Le)}function qr(Le){ie("error"),Ve&&Ve(Le)}var cr=function(Le){var pr;(pr=Le.preventDefault)===null||pr===void 0||pr.call(Le),Re(!0);var Gr=Le.type==="touchstart"?Le.touches[0]:Le;ue.current.pageX=Gr.pageX,ue.current.pageY=Gr.pageY,ue.current.originX=ae.x,ue.current.originY=ae.y,nr==null||nr(Le)};s.useEffect(function(){return _&&De&&(Pr(document,"mousemove",ze,!1),Pr(document,"mouseup",or,!1)),function(){$r(document,"mousemove",ze,!1),$r(document,"mouseup",or,!1)}},[_,De]),s.useEffect(function(){M&&!De&&Je()},[De,ae]),s.useEffect(function(){M&&Je()},[de]),s.useEffect(function(){_&&le()},[_]),s.useEffect(function(){T(D),ie(D?"loading":"loaded"),le()},[D]),Wi(function(){rr.updateScale(E),be(1)},[E]),s.useEffect(function(){var Le=function(pr){if(pr)switch(pr.key){case Oa.key:P&&Ne();break;case cu.key:fr();break;case uu.key:yr();break;case Yo.key:U();break;case Zo.key:me();break}};return _&&!De&&!Z.current&&(Z.current=!0,Pr(document,"keydown",Le)),function(){Z.current=!1,$r(document,"keydown",Le)}},[_,P,De,l,de]);var It=[{key:"fullScreen",name:L.ImagePreview.fullScreen,content:s.createElement(RH,null),onClick:tr},{key:"rotateRight",name:L.ImagePreview.rotateRight,content:s.createElement(n7,null),onClick:Br},{key:"rotateLeft",name:L.ImagePreview.rotateLeft,content:s.createElement(r7,null),onClick:Lr},{key:"zoomIn",name:L.ImagePreview.zoomIn,content:s.createElement(JH,null),onClick:U,disabled:de===rr.maxScale},{key:"zoomOut",name:L.ImagePreview.zoomOut,content:s.createElement(ZH,null),onClick:me,disabled:de===rr.minScale},{key:"originalSize",name:L.ImagePreview.originalSize,content:s.createElement(a7,null),onClick:Ue}],Ct=function(){var Le,pr,Gr=s.createElement("img",Tn({onWheel:Pe,ref:q,className:ee(We,V+"-img",(Le={},Le[V+"-img-moving"]=De,Le)),style:Tn(Tn({},Me),{transform:"translate("+ae.x+"px, "+ae.y+"px) rotate("+oe+"deg)"}),key:N,src:N},ye,{onLoad:Er,onError:qr,onMouseDown:function(Yr){Yr.button===0&&cr(Yr)}}));return(pr=j==null?void 0:j(Gr))!==null&&pr!==void 0?pr:Gr};return s.createElement(Pb,{visible:_,forceRender:!1,getContainer:Be},s.createElement(yn,Tn({},F,{getPopupContainer:function(){return R.current}}),s.createElement("div",{className:Y,style:Tn(Tn({},m||{}),Ye?{}:{zIndex:"inherit",position:"absolute"})},s.createElement(Ot,{in:_,timeout:400,appear:!0,classNames:"fadeImage",mountOnEnter:!0,unmountOnExit:!1,onEnter:function(Le){Le.parentNode.style.display="block",Le.style.display="block"},onExited:function(Le){Le.parentNode.style.display="",Le.style.display="none"}},s.createElement("div",{className:V+"-mask"})),_&&s.createElement(Qr,{onResize:qe},s.createElement("div",{ref:R,className:V+"-wrapper",onClick:ne},s.createElement("div",{ref:G,className:V+"-img-container",style:{transform:"scale("+de+", "+de+")"},onClick:ne},Ct(),Q&&s.createElement("div",{className:V+"-loading"},s.createElement(Wt,null))),s.createElement(Ot,{in:Ce,timeout:400,appear:!0,classNames:"fadeImage",unmountOnExit:!0},s.createElement("div",{className:V+"-scale-value"},(de*100).toFixed(0),"%")),X&&s.createElement(d7,{prefixCls:B,previewPrefixCls:V,actions:b,actionsLayout:O,defaultActions:It,simple:te}),y&&s.createElement("div",{className:V+"-close-btn",onClick:he},s.createElement(jt,null)),i&&s.createElement(v7,{previewCount:a.size,current:l,infinite:c,onPrev:yr,onNext:fr}),A)))))}var WC=s.forwardRef(h7);WC.displayName="ImagePreview";const Vd=WC;var zd=function(){return zd=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},zd.apply(this,arguments)},g7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},so=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function y7(e,r){var t=e.children,n=e.srcList,i=e.infinite,a=e.current,l=e.defaultCurrent,o=e.onChange,c=e.visible,u=e.defaultVisible,f=e.forceRender,d=e.onVisibleChange,v=g7(e,["children","srcList","infinite","current","defaultCurrent","onChange","visible","defaultVisible","forceRender","onVisibleChange"]),m=so(gr(!1,{value:c,defaultValue:u}),2),p=m[0],h=m[1],g=s.useMemo(function(){return n?new Map(n.map(function(_,$){return[$,{url:_,preview:!0}]})):null},[n]),y=Ho(),C=function(){return g?new Map(g):new Map},b=so(s.useState(C()),2),O=b[0],w=b[1],x=s.useRef(),E=x.current||new Map,P=function(_){x.current=_(x.current)};s.useEffect(function(){y||w(C())},[g]);var S=new Map(Array.from(O).filter(function(_){var $=so(_,2),F=$[1].preview;return F}).map(function(_){var $=so(_,2),F=$[0],W=$[1].url;return[F,W]})),k=so(gr(0,{value:a,defaultValue:l}),2),j=k[0],z=k[1];function A(_,$,F){return g||w(function(W){return new Map(W).set(_,{url:$,preview:F})}),function(){g||w(function(L){var K=new Map(L),B=K.delete(_);return B?K:L})}}function M(_,$){return P(function(F){return new Map(F).set(_,ge($)?$:{})}),function(){P(function(W){var L=new Map(W),K=L.delete(_);return K?L:W})}}var D=s.useRef();s.useImperativeHandle(r,function(){return{reset:function(){D.current&&D.current.reset()}}});var I=function(_,$){var F=jr($)?p:$;d&&d(_,F),h(_)},N=function(_){o&&o(_),z(_)},T=function(_){var $=0,F=function(W){var L=s.Children.map(W,function(K){if(K&&K.props&&K.type){var B=K.type.displayName;if(B==="Image")return s.cloneElement(K,{_index:$++})}return K&&K.props&&K.props.children?s.cloneElement(K,{children:F(K.props.children)}):K});return!Ke(W)&&s.Children.count(W)===1?L[0]:L};return F(_)},H=function(){var _=Array.from(S.values());return _.length>0?s.createElement("div",{style:{display:"none"}},_.map(function($){return s.createElement("img",{key:$,src:$})})):null};return s.createElement(Fd.Provider,{value:{previewGroup:!0,previewUrlMap:S,previewPropsMap:E,infinite:i,currentIndex:j,setCurrentIndex:N,setPreviewUrlMap:w,registerPreviewUrl:A,registerPreviewProps:M,visible:p,handleVisibleChange:I}},T(t),s.createElement(Vd,zd({ref:D,src:"",visible:p,onVisibleChange:I},v)),f&&H())}var BC=s.forwardRef(y7);BC.displayName="ImagePreviewGroup";const b7=BC;function UC(e){var r=e.title,t=e.description,n=e.actions,i=r||t,a=n&&n.length,l=i||a;return[l,i,a]}var C7=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},w7=function(e){var r,t=e.style,n=e.className,i=e.title,a=e.description,l=e.actions,o=e.prefixCls,c=e.simple,u=C7(UC({title:i,description:a,actions:l}),3),f=u[0],d=u[1],v=u[2];if(!f)return null;var m=o+"-footer",p=ee(m,n,(r={},r[m+"-with-actions"]=v,r)),h=function(){var g=s.createElement("div",{className:o+"-actions-list"},l.map(function(y,C){return s.createElement("div",{className:o+"-actions-item",key:""+C},y)}));return c?s.createElement("div",{className:o+"-actions-list"},s.createElement(HC,{prefixCls:o,popup:function(){return g}},s.createElement("div",{className:ee(o+"-actions-item",o+"-actions-item-trigger")},s.createElement("span",null,s.createElement(Da,null))))):g};return s.createElement("div",{className:p,style:t},d&&s.createElement("div",{className:ee(m+"-block",o+"-caption")},i&&s.createElement("div",{className:o+"-caption-title",title:i},i),a&&!c&&s.createElement("div",{className:o+"-caption-description",title:a},a)),v&&s.createElement("div",{className:ee(m+"-block",o+"-actions")},h()))},GC=!bn&&!jr(window==null?void 0:window.IntersectionObserver);function O7(e,r){r===void 0&&(r={});var t=s.useRef(),n=function(){t.current&&(t.current.disconnect(),t.current=null)},i=function(a){a&&(n(),GC&&(t.current=new IntersectionObserver(e,r),t.current.observe(a)))};return{observer:t.current,cor:i,dor:n}}var x7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},KC=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a};function _7(e){var r=e.defaultInView,t=e.unobserverOnEnter,n=t===void 0?!0:t,i=e.onChange,a=e.target,l=x7(e,["defaultInView","unobserverOnEnter","onChange","target"]),o=KC(s.useState(GC?r:!0),2),c=o[0],u=o[1],f=s.useCallback(function(h,g){var y=KC(h,1),C=y[0],b=g.thresholds.some(function(w){return C.intersectionRatio>=w}),O=b&&C.isIntersecting;u(O),i==null||i(O,C),O&&n&&g.unobserve(C.target)},[i,n]),d=O7(f,l),v=d.cor,m=d.dor,p=d.observer;return s.useEffect(function(){var h=r&&n;return h?m():a&&v(a),m},[a,r,n]),{inView:c,observer:p}}var uo=function(){return uo=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},uo.apply(this,arguments)},E7=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t},qC=function(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),i,a=[],l;try{for(;(r===void 0||r-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return a},Hd=0,S7={footerPosition:"inner",preview:!0};function P7(e,r){var t,n=s.useContext(je),i=n.getPrefixCls,a=n.componentConfig,l=n.rtl,o=sr(e,S7,a==null?void 0:a.Image),c=o.style,u=o.className,f=o.src,d=o.width,v=o.height,m=o.title,p=o.description,h=o.actions,g=o.footerPosition,y=o.simple,C=o.loader,b=o.loaderClassName,O=o.error,w=o.preview,x=o.previewProps,E=o.alt,P=o.onClick,S=o.index,k=o._index,j=o.onError,z=o.onLoad,A=o.lazyload,M=E7(o,["style","className","src","width","height","title","description","actions","footerPosition","simple","loader","loaderClassName","error","preview","previewProps","alt","onClick","index","_index","onError","onLoad","lazyload"]),D=On(),I=s.useContext(Fd),N=I.previewGroup,T=I.handleVisibleChange,H=I.registerPreviewUrl,_=I.registerPreviewProps,$=I.setCurrentIndex,F=s.useMemo(function(){return ge(x)?x:{}},[x]),W=s.useMemo(function(){return ge(A)?A:{}},[A]),L=s.useMemo(function(){return lr(S)||lr(k)?(Hd=lr(S)?S:k,Hd):Hd++},[]),K=F.src||f,B=qC(UC({title:m,description:p,actions:h}),1),V=B[0],Y=VC("beforeLoad"),q=Y.isLoading,G=Y.isError,R=Y.isLoaded,Z=Y.isBeforeLoad,ue=Y.setStatus,J=s.useRef(!1),Q=qC(gr(!1,{defaultValue:F.defaultVisible,value:F.visible}),2),X=Q[0],ie=Q[1],ce=s.useMemo(function(){return ur(F,["visible","defaultVisible","src","onVisibleChange"])},[F]),te=i("image"),fe=!jr(F.visible),Ae=ee(te,(t={},t[te+"-rtl"]=l,t[te+"-simple"]=y,t[te+"-before-load"]=Z,t[te+"-loading"]=q,t[te+"-loading-error"]=G,t[te+"-with-footer-inner"]=R&&V&&g==="inner",t[te+"-with-footer-outer"]=R&&V&&g==="outer",t[te+"-with-preview"]=R&&w&&!G&&!fe,t),u),ae=s.useRef();function _e(oe){J.current=!0,ue("loaded"),z&&z(oe)}function se(oe){J.current=!0,ue("error"),j&&j(oe)}function de(oe){w&&N?($(L),T(!0)):w&&be(!0),P&&P(oe)}function be(oe){F.onVisibleChange&&F.onVisibleChange(oe,X),ie(oe)}var Ee=_7(uo({target:ae.current,defaultInView:!A},W)).inView;s.useEffect(function(){J.current=!1},[f]),s.useEffect(function(){ae.current&&(Ee?((ae.current.src||f)&&ae.current.src!==f&&(ae.current.src=f),!J.current&&!ae.current.complete&&ue("loading")):ue("lazyload"))},[f,Ee]),s.useEffect(function(){if(N){var oe=_(L,ce);return function(){return oe(L)}}},[L,N,ce]),s.useEffect(function(){if(N){var oe=H(L,K,w);return function(){return oe(L)}}},[L,N,K,w]);var Ce=s.createElement("div",{className:te+"-error"},s.createElement("div",{className:te+"-error-icon"},s.createElement(qH,null)),E&&s.createElement("div",{className:te+"-error-alt"},E)),Oe=s.createElement("div",{className:ee(te+"-loader",b)},s.createElement("div",{className:te+"-loader-spin"},s.createElement(Wt,null),s.createElement("div",{className:te+"-loader-spin-text"},"Loading"))),ke=function(){if(C===!0)return Oe;var oe=C||Oe;return A||C?oe:null};return s.createElement("div",{className:Ae,style:Object.assign({width:d,height:v},c),ref:r},s.createElement("img",uo({ref:ae,className:te+"-img",tabIndex:0},D({onPressEnter:de}),M,A||f===void 0?{}:{src:f},{title:m,width:d,height:v,onLoad:_e,onError:se,onClick:de,alt:E})),!R&&s.createElement("div",{className:te+"-overlay"},G&&(O||Ce),q&&ke()),R&&V&&s.createElement(w7,{title:m,description:p,actions:h,prefixCls:te,simple:y}),R&&w&&s.createElement(Vd,uo({visible:X,src:K},ce,{onVisibleChange:be})))}var N7=s.forwardRef(P7),Jl=N7;Jl.Preview=Vd,Jl.PreviewGroup=b7,Jl.displayName="Image";const I7=Jl,co=()=>localStorage.getItem("token");async function Hr(e,r,t,n=!0){let i;return t==="get"?i=Ar.get(e,{params:r,timeout:1e3*60*10,headers:{Authorization:co()}}):t==="post"?i=Ar.post(e,r,{headers:{Authorization:co()}}):t==="put"?i=Ar.put(e,r,{headers:{Authorization:co()}}):t==="delete"?i=Ar.delete(e,{params:r,headers:{Authorization:co()}}):t==="patch"&&(i=Ar.patch(e,r,{headers:{Authorization:co()}})),new Promise((a,l)=>{i.then(o=>{o.data.code!==0?(n&&Zr.error(o.data.msg),l(o.data.msg)):a(o.data.data)}).catch(o=>{var c;((c=o.response)==null?void 0:c.status)==401?n&&Zr.error("你的账户已过期,请重新登录"):n&&Zr.error("请求失败"),console.log("请求失败",o),l("请求失败")})})}const Wr="https://api.zyjj.cc/api/v1",j7=e=>Hr(`${Wr}/common/user/login`,e,"post"),T7=e=>Hr(`${Wr}/common/user/register`,e,"post"),$7=e=>Hr(`${Wr}/common/user/reset/password`,e,"post"),YC=e=>Hr(`${Wr}/common/user/email/token`,{email:e},"post"),k7=()=>Hr(`${Wr}/user/user/info`,{},"get",!1),M7=()=>Hr(`${Wr}/user/point/checkin`,{},"post"),A7=e=>Hr(`${Wr}/user/point/exchange/${e}`,{},"post"),D7=(e,r)=>Hr(`${Wr}/user/point/record/list?page_no=${e}&page_size=${r}`,{},"get"),F7=()=>Hr(`${Wr}/user/pay/methods`,{},"get"),L7=(e,r)=>Hr(`${Wr}/user/pay/code`,{id:e,price:r},"post"),V7=e=>Hr(`${Wr}/user/pay/status/${e}`,{},"get"),z7=e=>Hr(`${Wr}/user/point/deducting`,e,"post"),H7=e=>Hr(`${Wr}/common/tool/list?page_no=${e.current}&page_size=${e.size}&tag=${e.tag||""}&name=${e.name||""}`,{},"get"),W7=()=>Hr(`${Wr}/common/tool/tags`,{},"get"),B7=()=>Hr(`${Wr}/user/cloud/tencent/cos`,{},"get"),U7=e=>Hr(`${Wr}/user/task`,e,"post"),G7=()=>Hr(`${Wr}/user/cloud/mqtt/task`,{},"get"),K7=()=>Hr(`${Wr}/common/material/tags`,{},"get"),q7=e=>Hr(`${Wr}/common/material?page_no=${e.current}&page_size=${e.size}&tag=${e.tag||""}&name=${e.name||""}`,{},"get"),Y7=e=>Hr(`${Wr}/user/material/${e}`,{},"get"),Z7=e=>Hr(`${Wr}/user/material/url`,{key_list:e},"post"),X7=e=>Hr(`${Wr}${e.url}`,e.data,e.method);var Wd;(function(e){e[e.Local=0]="Local",e[e.Cos=1]="Cos"})(Wd||(Wd={}));var Bd;(function(e){e[e.TaskCreate=0]="TaskCreate",e[e.TaskStop=1]="TaskStop",e[e.TaskRestore=2]="TaskRestore",e[e.MqttSend=3]="MqttSend",e[e.ActionClose=4]="ActionClose",e[e.MqttReconnect=5]="MqttReconnect",e[e.TaskActionAdd=6]="TaskActionAdd",e[e.NavigateTo=7]="NavigateTo",e[e.SetToken=8]="SetToken",e[e.UploadFile=9]="UploadFile"})(Bd||(Bd={}));var Ud;(function(e){e[e.TaskInfoUpdate=0]="TaskInfoUpdate",e[e.MqttBack=1]="MqttBack",e[e.TaskActionAdd=2]="TaskActionAdd",e[e.NavigateTo=3]="NavigateTo",e[e.FileUpload=4]="FileUpload"})(Ud||(Ud={}));var mr;(function(e){e.Waiting="等待",e.Running="进行",e.Fail="失败",e.Success="成功",e.Canceled="取消"})(mr||(mr={}));var Gd;(function(e){e[e.Task=0]="Task",e[e.Lab=1]="Lab"})(Gd||(Gd={}));var Kd;(function(e){e[e.Create=0]="Create",e[e.Progress=1]="Progress",e[e.Success=2]="Success",e[e.Error=3]="Error",e[e.Cancel=4]="Cancel"})(Kd||(Kd={}));var qd;(function(e){e[e.Start=1]="Start",e[e.Progress=2]="Progress",e[e.Success=3]="Success",e[e.Error=4]="Error"})(qd||(qd={}));var Yd;(function(e){e[e.Ffmpeg=0]="Ffmpeg",e[e.Cloud=1]="Cloud",e[e.Download=2]="Download"})(Yd||(Yd={}));var Zd;(function(e){e[e.SubtitleEmbed=0]="SubtitleEmbed",e[e.NoVideo=1]="NoVideo",e[e.NoAudio=2]="NoAudio",e[e.AudioEncode=3]="AudioEncode",e[e.VideoEncode=4]="VideoEncode",e[e.MergeFile=5]="MergeFile",e[e.Format=6]="Format",e[e.AddOption=7]="AddOption",e[e.OutputOption=8]="OutputOption",e[e.InputOption=9]="InputOption"})(Zd||(Zd={}));var Xd={exports:{}},fo={};/**
54
54
  * @license React
55
55
  * react-jsx-runtime.production.min.js
56
56
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyjj-web-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"