From 5e4c19ad1d0a290b6ef05a05d08aef0c1308bd05 Mon Sep 17 00:00:00 2001 From: rxliuli Date: Fri, 20 Sep 2024 20:48:47 +0800 Subject: [PATCH] Updates gh-pages by liuli-cli --- assets/BasicLayoutCard.2891e8c5.js | 1 - assets/BasicLayoutCard.312e37e8.js | 1 - assets/BasicLayoutCard.32c662ea.js | 1 - assets/BasicLayoutCard.3bb4f24a.js | 1 - assets/BasicLayoutCard.6b71ac4c.js | 1 - assets/BasicLayoutCard.e981929f.js | 1 + assets/Home.01e26cde.js | 1 - assets/Home.20cd5aae.js | 1 - assets/Home.482f6e05.js | 1 - assets/Home.49ef1002.js | 1 - assets/Home.6aeb1bd9.js | 1 - assets/Home.b98dbd5b.js | 1 + .../UnblockWebRestrictionsConfig.0310fc1d.js | 1 - .../UnblockWebRestrictionsConfig.07fe2836.js | 1 - .../UnblockWebRestrictionsConfig.167e0ec6.js | 1 - .../UnblockWebRestrictionsConfig.2c19d1a6.js | 45 ++ .../UnblockWebRestrictionsConfig.2ece6b53.js | 1 - .../UnblockWebRestrictionsConfig.c7ecb791.js | 1 - assets/index.30f89d03.js | 115 +++ assets/index.4f623665.js | 1 - assets/index.6762f624.js | 1 - assets/index.714b93c1.css | 8 - assets/index.7729ab03.js | 1 - assets/index.7cfbc3e2.js | 1 - assets/index.cc4d8800.js | 1 - assets/index.e208de3c.css | 8 - assets/index.ebee0b90.css | 8 + assets/index.f2b6b19f.css | 1 - assets/vendor.82731917.js | 36 - assets/vendor.83739eef.js | 141 ---- assets/vendor.b31c48e6.js | 36 - assets/vendor.c381151c.js | 32 - blockList.json | 410 ---------- blockList.schema.json | 12 - goflac-download/index.user.js | 153 ---- index.html | 5 +- mdn-auto-chinese/index.user.js | 26 - npmjs-copy-name-only/index.user.js | 46 -- translation-selection/index.user.js | 662 ---------------- twitter-block-qr/index.user.js | 727 ------------------ unblock-web-restrictions/index.user.js | 318 -------- 41 files changed, 172 insertions(+), 2639 deletions(-) delete mode 100644 assets/BasicLayoutCard.2891e8c5.js delete mode 100644 assets/BasicLayoutCard.312e37e8.js delete mode 100644 assets/BasicLayoutCard.32c662ea.js delete mode 100644 assets/BasicLayoutCard.3bb4f24a.js delete mode 100644 assets/BasicLayoutCard.6b71ac4c.js create mode 100644 assets/BasicLayoutCard.e981929f.js delete mode 100644 assets/Home.01e26cde.js delete mode 100644 assets/Home.20cd5aae.js delete mode 100644 assets/Home.482f6e05.js delete mode 100644 assets/Home.49ef1002.js delete mode 100644 assets/Home.6aeb1bd9.js create mode 100644 assets/Home.b98dbd5b.js delete mode 100644 assets/UnblockWebRestrictionsConfig.0310fc1d.js delete mode 100644 assets/UnblockWebRestrictionsConfig.07fe2836.js delete mode 100644 assets/UnblockWebRestrictionsConfig.167e0ec6.js create mode 100644 assets/UnblockWebRestrictionsConfig.2c19d1a6.js delete mode 100644 assets/UnblockWebRestrictionsConfig.2ece6b53.js delete mode 100644 assets/UnblockWebRestrictionsConfig.c7ecb791.js create mode 100644 assets/index.30f89d03.js delete mode 100644 assets/index.4f623665.js delete mode 100644 assets/index.6762f624.js delete mode 100644 assets/index.714b93c1.css delete mode 100644 assets/index.7729ab03.js delete mode 100644 assets/index.7cfbc3e2.js delete mode 100644 assets/index.cc4d8800.js delete mode 100644 assets/index.e208de3c.css create mode 100644 assets/index.ebee0b90.css delete mode 100644 assets/index.f2b6b19f.css delete mode 100644 assets/vendor.82731917.js delete mode 100644 assets/vendor.83739eef.js delete mode 100644 assets/vendor.b31c48e6.js delete mode 100644 assets/vendor.c381151c.js delete mode 100644 blockList.json delete mode 100644 blockList.schema.json delete mode 100644 goflac-download/index.user.js delete mode 100644 mdn-auto-chinese/index.user.js delete mode 100644 npmjs-copy-name-only/index.user.js delete mode 100644 translation-selection/index.user.js delete mode 100644 twitter-block-qr/index.user.js delete mode 100644 unblock-web-restrictions/index.user.js diff --git a/assets/BasicLayoutCard.2891e8c5.js b/assets/BasicLayoutCard.2891e8c5.js deleted file mode 100644 index 9e3cd60..0000000 --- a/assets/BasicLayoutCard.2891e8c5.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.assign;import{c as t,f as n,C as o,_ as r,o as a,T as i,e as l,x as s,h as c,j as u,k as d,A as p,l as f,M as v,W as m,K as h,a as y,b,p as g,q as C,r as x,t as E,u as w,v as M,w as k,y as O,z as K,B as S,m as I,D as N,E as P,F as T,G as D,X as R,Y as A,d as j,O as L,Z as z,$ as W,s as F,a0 as B,a1 as _}from"./vendor.b31c48e6.js";import{c as V,a as H,P as q}from"./index.6762f624.js";var U=["xxl","xl","lg","md","sm","xs"],G={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},Y=new Map,X=-1,$={},Z={matchHandlers:{},dispatch:function(e){return $=e,Y.forEach((function(e){return e($)})),Y.size>=1},subscribe:function(e){return Y.size||this.register(),X+=1,Y.set(X,e),e($),X},unsubscribe:function(e){Y.delete(e),Y.size||this.unregister()},unregister:function(){var e=this;Object.keys(G).forEach((function(t){var n=G[t],o=e.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),Y.clear()},register:function(){var e=this;Object.keys(G).forEach((function(o){var r=G[o],a=function(r){var a=r.matches;e.dispatch(t(t({},$),n({},o,a)))},i=window.matchMedia(r);i.addListener(a),e.matchHandlers[r]={mql:i,listener:a},a(i)}))}},J={adjustX:1,adjustY:1},Q=[0,0],ee={topLeft:{points:["bl","tl"],overflow:J,offset:[0,-4],targetOffset:Q},topCenter:{points:["bc","tc"],overflow:J,offset:[0,-4],targetOffset:Q},topRight:{points:["br","tr"],overflow:J,offset:[0,-4],targetOffset:Q},bottomLeft:{points:["tl","bl"],overflow:J,offset:[0,4],targetOffset:Q},bottomCenter:{points:["tc","bc"],overflow:J,offset:[0,4],targetOffset:Q},bottomRight:{points:["tr","br"],overflow:J,offset:[0,4],targetOffset:Q}};var te=o.forwardRef((function(e,t){var n=e.arrow,c=void 0!==n&&n,u=e.prefixCls,d=void 0===u?"rc-dropdown":u,p=e.transitionName,f=e.animation,v=e.align,m=e.placement,h=void 0===m?"bottomLeft":m,y=e.placements,b=void 0===y?ee:y,g=e.getPopupContainer,C=e.showAction,x=e.hideAction,E=e.overlayClassName,w=e.overlayStyle,M=e.visible,k=e.trigger,O=void 0===k?["hover"]:k,K=r(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),S=o.useState(),I=a(S,2),N=I[0],P=I[1],T="visible"in e?M:N,D=o.useRef(null);o.useImperativeHandle(t,(function(){return D.current}));var R,A,j,L,z,W,F=function(){var t=e.overlay;return"function"==typeof t?t():t},B=function(t){var n=e.onOverlayClick,o=F().props;P(!1),n&&n(t),o.onClick&&o.onClick(t)},_=function(){var e=F(),t={prefixCls:"".concat(d,"-menu"),onClick:B};return"string"==typeof e.type&&delete t.prefixCls,o.createElement(o.Fragment,null,c&&o.createElement("div",{className:"".concat(d,"-arrow")}),o.cloneElement(e,t))},V=x;return V||-1===O.indexOf("contextMenu")||(V=["click"]),o.createElement(i,Object.assign({},K,{prefixCls:d,ref:D,popupClassName:l(E,s({},"".concat(d,"-show-arrow"),c)),popupStyle:w,builtinPlacements:b,action:O,showAction:C,hideAction:V||[],popupPlacement:h,popupAlign:v,popupTransitionName:p,popupAnimation:f,popupVisible:T,stretch:(z=e.minOverlayWidthMatchTrigger,W=e.alignPoint,("minOverlayWidthMatchTrigger"in e?z:!W)?"minWidth":""),popup:"function"==typeof e.overlay?_:_(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;P(t),"function"==typeof n&&n(t)},getPopupContainer:g}),(A=e.children,j=A.props?A.props:{},L=l(j.className,void 0!==(R=e.openClassName)?R:"".concat(d,"-open")),N&&A?o.cloneElement(A,{className:L}):A))})),ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},oe=Object.defineProperty({default:ne},"__esModule",{value:!0}),re=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(o),r=d(oe),a=d(p),i=function(e,t){return n.createElement(a.default,Object.assign({},e,{ref:t,icon:r.default}))};i.displayName="EllipsisOutlined";var l=n.forwardRef(i);t.default=l})),ae=f(c((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(n=re)&&n.__esModule?n:{default:n};t.default=o,e.exports=o}))),ie=function(e){return o.createElement(v,null,(function(r){var a=r.getPrefixCls,i=e.prefixCls,s=e.className,c=e.hoverable,u=void 0===c||c,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var o=getComputedStyle(e),r=o.marginLeft,a=o.marginRight;n+=+r.replace("px","")+ +a.replace("px","")}n=+n.toFixed(6)}return n||0},Ae=function(e,t,n){e&&"object"===b(e.style)&&(e.style[t]=n)},je={adjustX:1,adjustY:1},Le={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:je,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:je,offset:[4,0]}},ze={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:je,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:je,offset:[4,0]}},We=0,Fe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Be=function(e,t,n){var o=Ne(t),r=e.getState();e.setState({defaultActiveFirst:y(y({},r.defaultActiveFirst),{},s({},o,n))})},_e=function(e){g(n,e);var t=C(n);function n(e){var o;x(this,n),(o=t.call(this,e)).onDestroy=function(e){o.props.onDestroy(e)},o.onKeyDown=function(e){var t=e.keyCode,n=o.menuInstance,r=o.props,a=r.isOpen,i=r.store;if(t===h.ENTER)return o.onTitleClick(e),Be(i,o.props.eventKey,!0),!0;if(t===h.RIGHT)return a?n.onKeyDown(e):(o.triggerOpenChange(!0),Be(i,o.props.eventKey,!0)),!0;if(t===h.LEFT){var l;if(!a)return;return(l=n.onKeyDown(e))||(o.triggerOpenChange(!1),l=!0),l}return!a||t!==h.UP&&t!==h.DOWN?void 0:n.onKeyDown(e)},o.onOpenChange=function(e){o.props.onOpenChange(e)},o.onPopupVisibleChange=function(e){o.triggerOpenChange(e,e?"mouseenter":"mouseleave")},o.onMouseEnter=function(e){var t=o.props,n=t.eventKey,r=t.onMouseEnter,a=t.store;Be(a,o.props.eventKey,!1),r({key:n,domEvent:e})},o.onMouseLeave=function(e){var t=o.props,n=t.parentMenu,r=t.eventKey,a=t.onMouseLeave;n.subMenuInstance=E(o),a({key:r,domEvent:e})},o.onTitleMouseEnter=function(e){var t=o.props,n=t.eventKey,r=t.onItemHover,a=t.onTitleMouseEnter;r({key:n,hover:!0}),a({key:n,domEvent:e})},o.onTitleMouseLeave=function(e){var t=o.props,n=t.parentMenu,r=t.eventKey,a=t.onItemHover,i=t.onTitleMouseLeave;n.subMenuInstance=E(o),a({key:r,hover:!1}),i({key:r,domEvent:e})},o.onTitleClick=function(e){var t=E(o).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(o.triggerOpenChange(!t.isOpen,"click"),Be(t.store,o.props.eventKey,!1))},o.onSubMenuClick=function(e){"function"==typeof o.props.onClick&&o.props.onClick(o.addKeyPath(e))},o.onSelect=function(e){o.props.onSelect(e)},o.onDeselect=function(e){o.props.onDeselect(e)},o.getPrefixCls=function(){return"".concat(o.props.rootPrefixCls,"-submenu")},o.getActiveClassName=function(){return"".concat(o.getPrefixCls(),"-active")},o.getDisabledClassName=function(){return"".concat(o.getPrefixCls(),"-disabled")},o.getSelectedClassName=function(){return"".concat(o.getPrefixCls(),"-selected")},o.getOpenClassName=function(){return"".concat(o.props.rootPrefixCls,"-submenu-open")},o.saveMenuInstance=function(e){o.menuInstance=e},o.addKeyPath=function(e){return y(y({},e),{},{keyPath:(e.keyPath||[]).concat(o.props.eventKey)})},o.triggerOpenChange=function(e,t){var n=o.props.eventKey,r=function(){o.onOpenChange({key:n,item:E(o),trigger:t,open:e})};"mouseenter"===t?o.mouseenterTimeout=setTimeout((function(){r()}),0):r()},o.isChildrenSelected=function(){var e={find:!1};return Te(o.props.children,o.props.selectedKeys,e),e.find},o.isOpen=function(){return-1!==o.props.openKeys.indexOf(o.props.eventKey)},o.adjustWidth=function(){if(o.subMenuTitle&&o.menuInstance){var e=w.findDOMNode(o.menuInstance);e.offsetWidth>=o.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(o.subMenuTitle.offsetWidth,"px"))}},o.saveSubMenuTitle=function(e){o.subMenuTitle=e},o.getBaseProps=function(){var e=E(o).props;return{mode:"horizontal"===e.mode?"vertical":e.mode,visible:o.props.isOpen,level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:o.onSubMenuClick,onSelect:o.onSelect,onDeselect:o.onDeselect,onDestroy:o.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:o.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:E(o),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[Ne(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:o.internalMenuId,manualRef:o.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},o.getMotion=function(e,t){var n=E(o).haveRendered,r=o.props,a=r.motion,i=r.rootPrefixCls;return y(y({},a),{},{leavedClassName:"".concat(i,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var r=e.store,a=e.eventKey,i=r.getState().defaultActiveFirst;o.isRootMenu=!1;var l=!1;return i&&(l=i[a]),Be(r,a,l),o}return M(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,o=t.parentMenu,r=t.manualRef,a=t.isOpen;r&&r(this),"horizontal"===n&&(null==o?void 0:o.isRootMenu)&&a&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.getBaseProps(),r=this.getMotion(n.mode,n.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||n.visible||n.forceSubMenuRender,!this.haveOpened)return o.createElement("div",null);var a=n.direction;return o.createElement(k,Object.assign({visible:n.visible},r),(function(r){var i=r.className,c=r.style,u=l("".concat(n.prefixCls,"-sub"),i,s({},"".concat(n.prefixCls,"-rtl"),"rtl"===a));return o.createElement($e,Object.assign({},n,{id:t.internalMenuId,className:u,style:c}),e)}))}},{key:"render",value:function(){var e,t,n=y({},this.props),r=n.isOpen,a=this.getPrefixCls(),c="inline"===n.mode,u=l(a,"".concat(a,"-").concat(n.mode),(s(e={},n.className,!!n.className),s(e,this.getOpenClassName(),r),s(e,this.getActiveClassName(),n.active||r&&!c),s(e,this.getDisabledClassName(),n.disabled),s(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(n.eventKey?this.internalMenuId="".concat(n.eventKey,"$Menu"):(We+=1,this.internalMenuId="$__$".concat(We,"$Menu")));var d={},p={},f={};n.disabled||(d={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},p={onClick:this.onTitleClick},f={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var v={},m=n.direction;c&&("rtl"===m?v.paddingRight=n.inlineIndent*n.level:v.paddingLeft=n.inlineIndent*n.level);var h={};this.props.isOpen&&(h={"aria-owns":this.internalMenuId});var b=null;"horizontal"!==n.mode&&(b=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(b=o.createElement(this.props.expandIcon,y({},this.props))));var g=o.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:v,className:"".concat(a,"-title"),role:"button"},f,p,{"aria-expanded":r},h,{"aria-haspopup":"true",title:"string"==typeof n.title?n.title:void 0}),n.title,b||o.createElement("i",{className:"".concat(a,"-arrow")})),C=this.renderChildren(n.children),x=(null===(t=n.parentMenu)||void 0===t?void 0:t.isRootMenu)?n.parentMenu.props.getPopupContainer:function(e){return e.parentNode},E=Fe[n.mode],w=n.popupOffset?{offset:n.popupOffset}:{},M="inline"===n.mode?"":n.popupClassName;M+="rtl"===m?" ".concat(a,"-rtl"):"";var k=n.disabled,O=n.triggerSubMenuAction,K=n.subMenuOpenDelay,S=n.forceSubMenuRender,I=n.subMenuCloseDelay,N=n.builtinPlacements;De.forEach((function(e){return delete n[e]})),delete n.onClick;var P="rtl"===m?Object.assign({},ze,N):Object.assign({},Le,N);return delete n.direction,o.createElement("li",Object.assign({},n,d,{className:u,role:"menuitem"}),o.createElement(i,{prefixCls:a,popupClassName:l("".concat(a,"-popup"),M),getPopupContainer:x,builtinPlacements:P,popupPlacement:E,popupVisible:!c&&r,popupAlign:w,popup:c?null:C,action:k||c?[]:[O],mouseEnterDelay:K,mouseLeaveDelay:I,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:S},g),c?C:null)}}]),n}(o.Component);_e.defaultProps={onMouseEnter:Se,onMouseLeave:Se,onTitleMouseEnter:Se,onTitleMouseLeave:Se,onTitleClick:Se,manualRef:Se,mode:"vertical",title:""};var Ve=V((function(e,t){var n=e.openKeys,o=e.activeKey,r=e.selectedKeys,a=t.eventKey,i=t.subMenuKey;return{isOpen:n.indexOf(a)>-1,active:o[i]===a,selectedKeys:r}}))(_e);Ve.isSubMenu=!0;var He=function(e){g(n,e);var t=C(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=w.findDOMNode(E(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,a){var i=e.props,l=i.overflowedIndicator,s=i.level,c=i.mode,u=i.prefixCls,d=i.theme;if(1!==s||"horizontal"!==c)return null;var p=e.props.children[0].props;p.children,p.title;var f=p.style,v=r(p,["children","title","style"]),m=y({},f),h="".concat(t,"-overflowed-indicator"),b="".concat(t,"-overflowed-indicator");0===n.length&&!0!==a?m=y(y({},m),{},{display:"none"}):a&&(m=y(y({},m),{},{visibility:"hidden",position:"absolute"}),h="".concat(h,"-placeholder"),b="".concat(b,"-placeholder"));var g=d?"".concat(u,"-").concat(d):"",C={};return De.forEach((function(e){void 0!==v[e]&&(C[e]=v[e])})),o.createElement(Ve,Object.assign({title:l,className:"".concat(u,"-overflowed-submenu"),popupClassName:g},C,{key:h,eventKey:b,disabled:!1,style:m}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=w.findDOMNode(E(e));if(t){var n=t.children;if(n&&0!==n.length){var o=t.children[n.length-1];Ae(o,"display","inline-block");var r=e.getMenuItemNodes(),a=r.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));a.forEach((function(e){Ae(e,"display","inline-block")})),e.menuItemSizes=r.map((function(e){return Re(e,!0)})),a.forEach((function(e){Ae(e,"display","none")})),e.overflowedIndicatorWidth=Re(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),Ae(o,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=w.findDOMNode(E(e));if(t){var n=Re(t);e.overflowedItems=[];var o,r=0;e.originalTotalWidth>n+.5&&(o=-1,e.menuItemSizes.forEach((function(t){(r+=t)+e.overflowedIndicatorWidth<=n&&(o+=1)}))),e.setState({lastVisibleIndex:o})}}},e}return M(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=w.findDOMNode(this);if(!t)return;this.resizeObserver=new O((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,a,i){var l=a;if("horizontal"===t.props.mode){var s=t.getOverflowedSubMenuItem(a.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(i>n&&(l=o.cloneElement(a,{style:{display:"none"},eventKey:"".concat(a.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),i===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return o.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),s=t.getOverflowedSubMenuItem(a.props.eventKey,t.overflowedItems)));var c=[].concat(K(r),[s,l]);return i===e.length-1&&c.push(t.getOverflowedSubMenuItem(a.props.eventKey,[],!0)),c}return[].concat(K(r),[l])}),[])}},{key:"render",value:function(){var e=this.props;e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level;var t=e.tag,n=e.children;e.theme;var a=r(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),i=t;return o.createElement(i,Object.assign({},a),this.renderChildren(n))}}]),n}(o.Component);function qe(e,t,n){var o=e.getState();e.setState({activeKey:y(y({},o.activeKey),{},s({},t,n))})}function Ue(e){return e.eventKey||"0-menu-"}function Ge(e,t){var n,o=t,r=e.children,a=e.eventKey;if(o&&(Pe(r,(function(e,t){e&&e.props&&!e.props.disabled&&o===Ie(e,a,t)&&(n=!0)})),n))return o;return o=null,e.defaultActiveFirst?(Pe(r,(function(e,t){o||!e||e.props.disabled||(o=Ie(e,a,t))})),o):o}function Ye(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}He.defaultProps={tag:"div",className:""};var Xe=function(e){g(n,e);var t=C(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).onKeyDown=function(e,t){var n,o=e.keyCode;if(r.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var a=null;return o!==h.UP&&o!==h.DOWN||(a=r.step(o===h.UP?-1:1)),a?(e.preventDefault(),qe(r.props.store,Ue(r.props),a.props.eventKey),"function"==typeof t&&t(a),1):void 0},r.onItemHover=function(e){var t=e.key,n=e.hover;qe(r.props.store,Ue(r.props),n?t:null)},r.onDeselect=function(e){r.props.onDeselect(e)},r.onSelect=function(e){r.props.onSelect(e)},r.onClick=function(e){r.props.onClick(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onDestroy=function(e){r.props.onDestroy(e)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(e){var t=r.getFlatInstanceArray(),n=r.props.store.getState().activeKey[Ue(r.props)],o=t.length;if(!o)return null;e<0&&(t=t.concat().reverse());var a=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(a=t,!1)})),r.props.defaultActiveFirst||-1===a||(i=t.slice(a,o-1)).length&&!i.every((function(e){return!!e.props.disabled}))){var i,l=(a+1)%o,s=l;do{var c=t[s];if(c&&!c.props.disabled)return c;s=(s+1)%o}while(s!==l);return null}},r.renderCommonMenuItem=function(e,t,n){var a=r.props.store.getState(),i=E(r).props,l=Ie(e,i.eventKey,t),s=e.props;if(!s||"string"==typeof e.type)return e;var c=l===a.activeKey,u=y(y({mode:s.mode||i.mode,level:i.level,inlineIndent:i.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:i.prefixCls,index:t,parentMenu:i.parentMenu,manualRef:s.disabled?void 0:S(e.ref,Ye.bind(E(r))),eventKey:l,active:!s.disabled&&c,multiple:i.multiple,onClick:function(e){(s.onClick||Se)(e),r.onClick(e)},onItemHover:r.onItemHover,motion:i.motion,subMenuOpenDelay:i.subMenuOpenDelay,subMenuCloseDelay:i.subMenuCloseDelay,forceSubMenuRender:i.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:i.builtinPlacements,itemIcon:s.itemIcon||r.props.itemIcon,expandIcon:s.expandIcon||r.props.expandIcon},n),{},{direction:i.direction});return("inline"===i.mode||Ke.any)&&(u.triggerSubMenuAction="click"),o.cloneElement(e,y(y({},u),{},{key:l||t}))},r.renderMenuItem=function(e,t,n){if(!e)return null;var o=r.props.store.getState(),a={openKeys:o.openKeys,selectedKeys:o.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:n};return r.renderCommonMenuItem(e,t,a)},e.store.setState({activeKey:y(y({},e.store.getState().activeKey),{},s({},e.eventKey,Ge(e,e.activeKey)))}),r.instanceArray=[],r}return M(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!I(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[Ue(t)],o=Ge(t,n);if(o!==n)qe(t.store,Ue(t),o);else if("activeKey"in e){o!==Ge(e,e.activeKey)&&qe(t.store,Ue(t),o)}}},{key:"render",value:function(){var e=this,t=N({},this.props);this.instanceArray=[];var n={className:l(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var r=t.prefixCls,a=t.eventKey,i=t.visible,s=t.level,c=t.mode,u=t.overflowedIndicator,d=t.theme;return De.forEach((function(e){return delete t[e]})),delete t.onClick,o.createElement(He,Object.assign({},t,{prefixCls:r,mode:c,tag:"ul",level:s,theme:d,visible:i,overflowedIndicator:u},n),P(t.children).map((function(t,n){return e.renderMenuItem(t,n,a||"0-menu-")})))}}]),n}(o.Component);Xe.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Se};var $e=V()(Xe);function Ze(e,t,n){var o=e.prefixCls,r=e.motion,a=e.defaultMotions,i=void 0===a?{}:a,l=e.openAnimation,s=e.openTransitionName,c=t.switchingModeFromInline;if(r)return r;if("object"===b(l)&&l)T(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof l)return{motionName:"".concat(o,"-open-").concat(l)};if(s)return{motionName:s};var u=i[n];return u||(c?null:i.other)}var Je=function(e){g(n,e);var t=C(n);function n(e){var o;x(this,n),(o=t.call(this,e)).inlineOpenKeys=[],o.onSelect=function(e){var t=E(o).props;if(t.selectable){var n=o.store.getState().selectedKeys,r=e.key;n=t.multiple?n.concat([r]):[r],"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onSelect(y(y({},e),{},{selectedKeys:n}))}},o.onClick=function(e){var t=o.getRealMenuMode(),n=E(o),r=n.store,a=n.props.onOpenChange;"inline"===t||"openKeys"in o.props||(r.setState({openKeys:[]}),a([])),o.props.onClick(e)},o.onKeyDown=function(e,t){o.innerMenu.getWrappedInstance().onKeyDown(e,t)},o.onOpenChange=function(e){var t=E(o).props,n=o.store.getState().openKeys.concat(),r=!1,a=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var o=n.indexOf(e.key);(t=-1!==o)&&n.splice(o,1)}r=r||t};Array.isArray(e)?e.forEach(a):a(e),r&&("openKeys"in o.props||o.store.setState({openKeys:n}),t.onOpenChange(n))},o.onDeselect=function(e){var t=E(o).props;if(t.selectable){var n=o.store.getState().selectedKeys.concat(),r=e.key,a=n.indexOf(r);-1!==a&&n.splice(a,1),"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onDeselect(y(y({},e),{},{selectedKeys:n}))}},o.onMouseEnter=function(e){o.restoreModeVerticalFromInline();var t=o.props.onMouseEnter;t&&t(e)},o.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,r="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,a="font-size"===e.propertyName&&r.indexOf("anticon")>=0;(t||a)&&o.restoreModeVerticalFromInline()},o.setInnerMenu=function(e){o.innerMenu=e},o.isRootMenu=!0;var r=e.defaultSelectedKeys,a=e.defaultOpenKeys;return"selectedKeys"in e&&(r=e.selectedKeys||[]),"openKeys"in e&&(a=e.openKeys||[]),o.store=H({selectedKeys:r,openKeys:a,activeKey:{"0-menu-":Ge(e,e.activeKey)}}),o.state={switchingModeFromInline:!1},o}return M(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){this.updateOpentKeysWhenSwitchMode(e),this.updateMiniStore();var t=this.props,n=t.siderCollapsed,o=t.inlineCollapsed,r=t.onOpenChange;(!e.inlineCollapsed&&o||!e.siderCollapsed&&n)&&r([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(e){var t=this.props,n=this.store,o=this.inlineOpenKeys,r=n.getState(),a={};"inline"===e.mode&&"inline"!==t.mode&&this.setState({switchingModeFromInline:!0}),"openKeys"in t||((t.inlineCollapsed&&!e.inlineCollapsed||t.siderCollapsed&&!e.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=r.openKeys.concat(),a.openKeys=[]),(!t.inlineCollapsed&&e.inlineCollapsed||!t.siderCollapsed&&e.siderCollapsed)&&(a.openKeys=o,this.inlineOpenKeys=[])),Object.keys(a).length&&n.setState(a)}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=y({},D(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=y(y({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ze(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,o.createElement(q,{store:this.store},o.createElement($e,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}]),n}(o.Component);Je.defaultProps={selectable:!0,onClick:Se,onSelect:Se,onOpenChange:Se,onDeselect:Se,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"···")};var Qe=function(e){g(n,e);var t=C(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===h.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,o=n.eventKey,r=n.onItemHover,a=n.onMouseLeave;r({key:o,hover:!1}),a({key:o,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,o=n.eventKey,r=n.onItemHover,a=n.onMouseEnter;r({key:o,hover:!0}),a({key:o,domEvent:t})},e.onClick=function(t){var n=e.props,o=n.eventKey,r=n.multiple,a=n.onClick,i=n.onSelect,l=n.onDeselect,s=n.isSelected,c={key:o,keyPath:[o],item:E(e),domEvent:t};a(c),r?s?l(c):i(c):s||i(c)},e.saveNode=function(t){e.node=t},e}return M(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=y({},this.props),n=l(this.getPrefixCls(),t.className,(s(e={},this.getActiveClassName(),!t.disabled&&t.active),s(e,this.getSelectedClassName(),t.isSelected),s(e,this.getDisabledClassName(),t.disabled),e)),r=y(y({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?r=y(y({},r),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(r.role="none");var a={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},i=y({},t.style);"inline"===t.mode&&("rtl"===t.direction?i.paddingRight=t.inlineIndent*t.level:i.paddingLeft=t.inlineIndent*t.level),De.forEach((function(e){return delete t[e]})),delete t.direction;var c=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(c=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object.assign({},D(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),r,a,{style:i,ref:this.saveNode}),t.children,c)}}]),n}(o.Component);Qe.isMenuItem=!0,Qe.defaultProps={onSelect:Se,onMouseEnter:Se,onMouseLeave:Se,manualRef:Se};var et=V((function(e,t){var n=e.activeKey,o=e.selectedKeys,r=t.eventKey;return{active:n[t.subMenuKey]===r,isSelected:-1!==o.indexOf(r)}}))(Qe);var tt=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));var nt=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,c=e.locale,u=e.mobile,d=e.moreIcon,p=void 0===d?"More":d,f=e.moreTransitionName,v=e.style,m=e.className,y=e.editable,b=e.tabBarGutter,g=e.rtl,C=e.onTabClick,x=o.useState(!1),E=a(x,2),w=E[0],M=E[1],k=o.useState(null),O=a(k,2),K=O[0],S=O[1],I="".concat(r,"-more-popup"),N="".concat(n,"-dropdown"),P=null!==K?"".concat(I,"-").concat(K):null,T=null==c?void 0:c.dropdownAriaLabel,D=o.createElement(Je,{onClick:function(e){var t=e.key,n=e.domEvent;C(t,n),M(!1)},id:I,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[K],"aria-label":void 0!==T?T:"expanded dropdown"},i.map((function(e){return o.createElement(et,{key:e.key,id:"".concat(I,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function R(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===K}))||0,o=t.length,r=0;rt?"left":"right"})})),W=a(z,2),F=W[0],B=W[1],_=at(0,(function(e,t){!L&&O&&O({direction:e>t?"top":"bottom"})})),V=a(_,2),H=V[0],q=V[1],U=o.useState(0),G=a(U,2),Y=G[0],X=G[1],$=o.useState(0),Z=a($,2),J=Z[0],Q=Z[1],ee=o.useState(0),te=a(ee,2),ne=te[0],oe=te[1],re=o.useState(0),ae=a(re,2),ie=ae[0],de=ae[1],pe=o.useState(null),fe=a(pe,2),ve=fe[0],me=fe[1],he=o.useState(null),ye=a(he,2),be=ye[0],ge=ye[1],Ce=o.useState(0),xe=a(Ce,2),Ee=xe[0],we=xe[1],Me=o.useState(0),ke=a(Me,2),Oe=ke[0],Ke=ke[1],Se=function(e){var t=o.useRef([]),n=o.useState({}),r=a(n,2)[1],i=o.useRef("function"==typeof e?e():e),l=le((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,r({})}));return[i.current,function(e){t.current.push(e),l()}]}(new Map),Ie=a(Se,2),Ne=Ie[0],Pe=Ie[1],Te=function(e,t,n){return o.useMemo((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||ce,a=r.left+r.width,i=0;iAe?[Ae,!1]:[e,!0]}L?b?(Re=0,Ae=Math.max(0,Y-ve)):(Re=Math.min(0,ve-Y),Ae=0):(Re=Math.min(0,be-J),Ae=0);var Le=o.useRef(),ze=o.useState(),We=a(ze,2),Fe=We[0],Be=We[1];function _e(){Be(Date.now())}function Ve(){window.clearTimeout(Le.current)}function He(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=Te.get(e);if(t)if(L){var n=F;b?t.rightF+ve&&(n=t.right+t.width-ve):t.left<-F?n=-t.left:t.left+t.width>-F+ve&&(n=-(t.left+t.width-ve)),q(0),B(je(n)[0])}else{var o=H;t.top<-H?o=-t.top:t.top+t.height>-H+be&&(o=-(t.top+t.height-be)),B(0),q(je(o)[0])}}!function(e,t){var n=o.useState(),r=a(n,2),i=r[0],l=r[1],s=o.useState(0),c=a(s,2),u=c[0],d=c[1],p=o.useState(0),f=a(p,2),v=f[0],m=f[1],h=o.useState(),y=a(h,2),b=y[0],g=y[1],C=o.useRef(),x=o.useRef(0),E=o.useRef(!1),w=o.useRef(),M=o.useRef(null);M.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;l({x:n,y:o}),window.clearInterval(C.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],o=n.screenX,r=n.screenY;l({x:o,y:r});var a=o-i.x,s=r-i.y;t(a,s);var c=Date.now();d(c),m(c-u),g({x:a,y:s})}},onTouchEnd:function(){if(i&&(l(null),g(null),b)){var e=b.x/v,n=b.y/v,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;var a=e,s=n;C.current=window.setInterval((function(){Math.abs(a)<.01&&Math.abs(s)<.01?window.clearInterval(C.current):t(20*(a*=rt),20*(s*=rt))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,a=Math.abs(n),i=Math.abs(o);a===i?r="x"===w.current?n:o:a>i?(r=n,w.current="x"):(r=o,w.current="y");var l=Date.now();l-x.current>100&&(E.current=!1),(t(-r,-r)||E.current)&&(e.preventDefault(),E.current=!0),x.current=l}},o.useEffect((function(){function t(e){M.current.onTouchMove(e)}function n(e){M.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){M.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){M.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(S,(function(e,t){var n=!1;function o(e,t){e((function(e){var o=je(e+t),r=a(o,2),i=r[0],l=r[1];return n=l,i}))}if(L){if(ve>=Y)return n;o(B,e)}else{if(be>=J)return n;o(q,t)}return Ve(),_e(),n})),o.useEffect((function(){return Ve(),Fe&&(Le.current=window.setTimeout((function(){Be(0)}),100)),Ve}),[Fe]);var qe=function(e,t,n,r,a){var i,l,s,c=a.tabs,u=a.tabPosition,d=a.rtl;["top","bottom"].includes(u)?(i="width",l=d?"right":"left",s=Math.abs(t.left)):(i="height",l="top",s=-t.top);var p=t[i],f=n[i],v=r[i],m=p;return f+v>p&&(m=p-v),o.useMemo((function(){if(!c.length)return[0,0];for(var t=c.length,n=t,o=0;os+m){n=o-1;break}}for(var a=0,u=t-1;u>=0;u-=1)if((e.get(c[u].key)||ue)[l]0,ft=F+ve0?{marginLeft:g[0]/-2,marginRight:g[0]/-2}:{}),g[1]>0?{marginTop:g[1]/-2,marginBottom:g[1]/2}:{}),m),E=t({},y);return delete E.gutter,o.createElement(yt.Provider,{value:{gutter:g}},o.createElement("div",t({},E,{className:C,style:x,ref:r}),h))};return o.createElement(v,null,d)}));bt.displayName="Row";var gt=o.forwardRef((function(e,r){var a=function(a){var i,s=a.getPrefixCls,c=a.direction,u=e.prefixCls,d=e.span,p=e.order,f=e.offset,v=e.push,m=e.pull,h=e.className,y=e.children,b=e.flex,g=e.style,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0?{paddingLeft:n[0]/2,paddingRight:n[0]/2}:{}),n[1]>0?{paddingTop:n[1]/2,paddingBottom:n[1]/2}:{}),a)),b&&(a.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(b)),o.createElement("div",t({},C,{style:a,className:w,ref:r}),y)}))};return o.createElement(v,null,a)}));gt.displayName="Col";var Ct=function(e){var r,a,i,s=o.useContext(j),c=s.getPrefixCls,u=s.direction,d=o.useContext(_),p=e.prefixCls,f=e.className,v=e.extra,m=e.headStyle,h=void 0===m?{}:m,y=e.bodyStyle,b=void 0===y?{}:y,g=e.title,C=e.loading,x=e.bordered,E=void 0===x||x,w=e.size,M=e.type,k=e.cover,O=e.actions,K=e.tabList,S=e.children,I=e.activeTabKey,N=e.defaultActiveTabKey,P=e.tabBarExtraContent,T=e.hoverable,R=e.tabProps,A=void 0===R?{}:R,L=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro.createElement(Ct,e({style:{width:"100%",overflowY:"auto"}},t));export{xt as B,gt as C,bt as R,U as a,Z as r}; diff --git a/assets/BasicLayoutCard.312e37e8.js b/assets/BasicLayoutCard.312e37e8.js deleted file mode 100644 index 9ccfc1f..0000000 --- a/assets/BasicLayoutCard.312e37e8.js +++ /dev/null @@ -1 +0,0 @@ -var c=Object.defineProperty;var a=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;var o=(t,e,r)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,s=(t,e)=>{for(var r in e||(e={}))d.call(e,r)&&o(t,r,e[r]);if(a)for(var r of a(e))n.call(e,r)&&o(t,r,e[r]);return t};import{r as f,C as i}from"./vendor.83739eef.js";const p=t=>f.exports.createElement(i,s({style:{width:"100%",overflowY:"auto"}},t));export{p as B}; diff --git a/assets/BasicLayoutCard.32c662ea.js b/assets/BasicLayoutCard.32c662ea.js deleted file mode 100644 index f042e66..0000000 --- a/assets/BasicLayoutCard.32c662ea.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.assign;import{c as t,f as n,C as o,_ as r,o as a,T as i,e as l,x as s,h as c,j as u,k as d,A as p,l as f,M as v,W as m,K as h,a as y,b,p as g,q as C,r as x,t as E,u as w,v as M,w as k,y as O,z as K,B as S,m as I,D as N,E as P,F as T,G as D,X as R,Y as A,d as j,O as L,Z as z,$ as W,s as F,a0 as B,a1 as _}from"./vendor.b31c48e6.js";import{c as V,a as H,P as q}from"./index.cc4d8800.js";var U=["xxl","xl","lg","md","sm","xs"],G={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},Y=new Map,X=-1,$={},Z={matchHandlers:{},dispatch:function(e){return $=e,Y.forEach((function(e){return e($)})),Y.size>=1},subscribe:function(e){return Y.size||this.register(),X+=1,Y.set(X,e),e($),X},unsubscribe:function(e){Y.delete(e),Y.size||this.unregister()},unregister:function(){var e=this;Object.keys(G).forEach((function(t){var n=G[t],o=e.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),Y.clear()},register:function(){var e=this;Object.keys(G).forEach((function(o){var r=G[o],a=function(r){var a=r.matches;e.dispatch(t(t({},$),n({},o,a)))},i=window.matchMedia(r);i.addListener(a),e.matchHandlers[r]={mql:i,listener:a},a(i)}))}},J={adjustX:1,adjustY:1},Q=[0,0],ee={topLeft:{points:["bl","tl"],overflow:J,offset:[0,-4],targetOffset:Q},topCenter:{points:["bc","tc"],overflow:J,offset:[0,-4],targetOffset:Q},topRight:{points:["br","tr"],overflow:J,offset:[0,-4],targetOffset:Q},bottomLeft:{points:["tl","bl"],overflow:J,offset:[0,4],targetOffset:Q},bottomCenter:{points:["tc","bc"],overflow:J,offset:[0,4],targetOffset:Q},bottomRight:{points:["tr","br"],overflow:J,offset:[0,4],targetOffset:Q}};var te=o.forwardRef((function(e,t){var n=e.arrow,c=void 0!==n&&n,u=e.prefixCls,d=void 0===u?"rc-dropdown":u,p=e.transitionName,f=e.animation,v=e.align,m=e.placement,h=void 0===m?"bottomLeft":m,y=e.placements,b=void 0===y?ee:y,g=e.getPopupContainer,C=e.showAction,x=e.hideAction,E=e.overlayClassName,w=e.overlayStyle,M=e.visible,k=e.trigger,O=void 0===k?["hover"]:k,K=r(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),S=o.useState(),I=a(S,2),N=I[0],P=I[1],T="visible"in e?M:N,D=o.useRef(null);o.useImperativeHandle(t,(function(){return D.current}));var R,A,j,L,z,W,F=function(){var t=e.overlay;return"function"==typeof t?t():t},B=function(t){var n=e.onOverlayClick,o=F().props;P(!1),n&&n(t),o.onClick&&o.onClick(t)},_=function(){var e=F(),t={prefixCls:"".concat(d,"-menu"),onClick:B};return"string"==typeof e.type&&delete t.prefixCls,o.createElement(o.Fragment,null,c&&o.createElement("div",{className:"".concat(d,"-arrow")}),o.cloneElement(e,t))},V=x;return V||-1===O.indexOf("contextMenu")||(V=["click"]),o.createElement(i,Object.assign({},K,{prefixCls:d,ref:D,popupClassName:l(E,s({},"".concat(d,"-show-arrow"),c)),popupStyle:w,builtinPlacements:b,action:O,showAction:C,hideAction:V||[],popupPlacement:h,popupAlign:v,popupTransitionName:p,popupAnimation:f,popupVisible:T,stretch:(z=e.minOverlayWidthMatchTrigger,W=e.alignPoint,("minOverlayWidthMatchTrigger"in e?z:!W)?"minWidth":""),popup:"function"==typeof e.overlay?_:_(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;P(t),"function"==typeof n&&n(t)},getPopupContainer:g}),(A=e.children,j=A.props?A.props:{},L=l(j.className,void 0!==(R=e.openClassName)?R:"".concat(d,"-open")),N&&A?o.cloneElement(A,{className:L}):A))})),ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},oe=Object.defineProperty({default:ne},"__esModule",{value:!0}),re=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(o),r=d(oe),a=d(p),i=function(e,t){return n.createElement(a.default,Object.assign({},e,{ref:t,icon:r.default}))};i.displayName="EllipsisOutlined";var l=n.forwardRef(i);t.default=l})),ae=f(c((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(n=re)&&n.__esModule?n:{default:n};t.default=o,e.exports=o}))),ie=function(e){return o.createElement(v,null,(function(r){var a=r.getPrefixCls,i=e.prefixCls,s=e.className,c=e.hoverable,u=void 0===c||c,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var o=getComputedStyle(e),r=o.marginLeft,a=o.marginRight;n+=+r.replace("px","")+ +a.replace("px","")}n=+n.toFixed(6)}return n||0},Ae=function(e,t,n){e&&"object"===b(e.style)&&(e.style[t]=n)},je={adjustX:1,adjustY:1},Le={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:je,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:je,offset:[4,0]}},ze={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:je,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:je,offset:[4,0]}},We=0,Fe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Be=function(e,t,n){var o=Ne(t),r=e.getState();e.setState({defaultActiveFirst:y(y({},r.defaultActiveFirst),{},s({},o,n))})},_e=function(e){g(n,e);var t=C(n);function n(e){var o;x(this,n),(o=t.call(this,e)).onDestroy=function(e){o.props.onDestroy(e)},o.onKeyDown=function(e){var t=e.keyCode,n=o.menuInstance,r=o.props,a=r.isOpen,i=r.store;if(t===h.ENTER)return o.onTitleClick(e),Be(i,o.props.eventKey,!0),!0;if(t===h.RIGHT)return a?n.onKeyDown(e):(o.triggerOpenChange(!0),Be(i,o.props.eventKey,!0)),!0;if(t===h.LEFT){var l;if(!a)return;return(l=n.onKeyDown(e))||(o.triggerOpenChange(!1),l=!0),l}return!a||t!==h.UP&&t!==h.DOWN?void 0:n.onKeyDown(e)},o.onOpenChange=function(e){o.props.onOpenChange(e)},o.onPopupVisibleChange=function(e){o.triggerOpenChange(e,e?"mouseenter":"mouseleave")},o.onMouseEnter=function(e){var t=o.props,n=t.eventKey,r=t.onMouseEnter,a=t.store;Be(a,o.props.eventKey,!1),r({key:n,domEvent:e})},o.onMouseLeave=function(e){var t=o.props,n=t.parentMenu,r=t.eventKey,a=t.onMouseLeave;n.subMenuInstance=E(o),a({key:r,domEvent:e})},o.onTitleMouseEnter=function(e){var t=o.props,n=t.eventKey,r=t.onItemHover,a=t.onTitleMouseEnter;r({key:n,hover:!0}),a({key:n,domEvent:e})},o.onTitleMouseLeave=function(e){var t=o.props,n=t.parentMenu,r=t.eventKey,a=t.onItemHover,i=t.onTitleMouseLeave;n.subMenuInstance=E(o),a({key:r,hover:!1}),i({key:r,domEvent:e})},o.onTitleClick=function(e){var t=E(o).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(o.triggerOpenChange(!t.isOpen,"click"),Be(t.store,o.props.eventKey,!1))},o.onSubMenuClick=function(e){"function"==typeof o.props.onClick&&o.props.onClick(o.addKeyPath(e))},o.onSelect=function(e){o.props.onSelect(e)},o.onDeselect=function(e){o.props.onDeselect(e)},o.getPrefixCls=function(){return"".concat(o.props.rootPrefixCls,"-submenu")},o.getActiveClassName=function(){return"".concat(o.getPrefixCls(),"-active")},o.getDisabledClassName=function(){return"".concat(o.getPrefixCls(),"-disabled")},o.getSelectedClassName=function(){return"".concat(o.getPrefixCls(),"-selected")},o.getOpenClassName=function(){return"".concat(o.props.rootPrefixCls,"-submenu-open")},o.saveMenuInstance=function(e){o.menuInstance=e},o.addKeyPath=function(e){return y(y({},e),{},{keyPath:(e.keyPath||[]).concat(o.props.eventKey)})},o.triggerOpenChange=function(e,t){var n=o.props.eventKey,r=function(){o.onOpenChange({key:n,item:E(o),trigger:t,open:e})};"mouseenter"===t?o.mouseenterTimeout=setTimeout((function(){r()}),0):r()},o.isChildrenSelected=function(){var e={find:!1};return Te(o.props.children,o.props.selectedKeys,e),e.find},o.isOpen=function(){return-1!==o.props.openKeys.indexOf(o.props.eventKey)},o.adjustWidth=function(){if(o.subMenuTitle&&o.menuInstance){var e=w.findDOMNode(o.menuInstance);e.offsetWidth>=o.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(o.subMenuTitle.offsetWidth,"px"))}},o.saveSubMenuTitle=function(e){o.subMenuTitle=e},o.getBaseProps=function(){var e=E(o).props;return{mode:"horizontal"===e.mode?"vertical":e.mode,visible:o.props.isOpen,level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:o.onSubMenuClick,onSelect:o.onSelect,onDeselect:o.onDeselect,onDestroy:o.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:o.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:E(o),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[Ne(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:o.internalMenuId,manualRef:o.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},o.getMotion=function(e,t){var n=E(o).haveRendered,r=o.props,a=r.motion,i=r.rootPrefixCls;return y(y({},a),{},{leavedClassName:"".concat(i,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var r=e.store,a=e.eventKey,i=r.getState().defaultActiveFirst;o.isRootMenu=!1;var l=!1;return i&&(l=i[a]),Be(r,a,l),o}return M(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,o=t.parentMenu,r=t.manualRef,a=t.isOpen;r&&r(this),"horizontal"===n&&(null==o?void 0:o.isRootMenu)&&a&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.getBaseProps(),r=this.getMotion(n.mode,n.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||n.visible||n.forceSubMenuRender,!this.haveOpened)return o.createElement("div",null);var a=n.direction;return o.createElement(k,Object.assign({visible:n.visible},r),(function(r){var i=r.className,c=r.style,u=l("".concat(n.prefixCls,"-sub"),i,s({},"".concat(n.prefixCls,"-rtl"),"rtl"===a));return o.createElement($e,Object.assign({},n,{id:t.internalMenuId,className:u,style:c}),e)}))}},{key:"render",value:function(){var e,t,n=y({},this.props),r=n.isOpen,a=this.getPrefixCls(),c="inline"===n.mode,u=l(a,"".concat(a,"-").concat(n.mode),(s(e={},n.className,!!n.className),s(e,this.getOpenClassName(),r),s(e,this.getActiveClassName(),n.active||r&&!c),s(e,this.getDisabledClassName(),n.disabled),s(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(n.eventKey?this.internalMenuId="".concat(n.eventKey,"$Menu"):(We+=1,this.internalMenuId="$__$".concat(We,"$Menu")));var d={},p={},f={};n.disabled||(d={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},p={onClick:this.onTitleClick},f={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var v={},m=n.direction;c&&("rtl"===m?v.paddingRight=n.inlineIndent*n.level:v.paddingLeft=n.inlineIndent*n.level);var h={};this.props.isOpen&&(h={"aria-owns":this.internalMenuId});var b=null;"horizontal"!==n.mode&&(b=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(b=o.createElement(this.props.expandIcon,y({},this.props))));var g=o.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:v,className:"".concat(a,"-title"),role:"button"},f,p,{"aria-expanded":r},h,{"aria-haspopup":"true",title:"string"==typeof n.title?n.title:void 0}),n.title,b||o.createElement("i",{className:"".concat(a,"-arrow")})),C=this.renderChildren(n.children),x=(null===(t=n.parentMenu)||void 0===t?void 0:t.isRootMenu)?n.parentMenu.props.getPopupContainer:function(e){return e.parentNode},E=Fe[n.mode],w=n.popupOffset?{offset:n.popupOffset}:{},M="inline"===n.mode?"":n.popupClassName;M+="rtl"===m?" ".concat(a,"-rtl"):"";var k=n.disabled,O=n.triggerSubMenuAction,K=n.subMenuOpenDelay,S=n.forceSubMenuRender,I=n.subMenuCloseDelay,N=n.builtinPlacements;De.forEach((function(e){return delete n[e]})),delete n.onClick;var P="rtl"===m?Object.assign({},ze,N):Object.assign({},Le,N);return delete n.direction,o.createElement("li",Object.assign({},n,d,{className:u,role:"menuitem"}),o.createElement(i,{prefixCls:a,popupClassName:l("".concat(a,"-popup"),M),getPopupContainer:x,builtinPlacements:P,popupPlacement:E,popupVisible:!c&&r,popupAlign:w,popup:c?null:C,action:k||c?[]:[O],mouseEnterDelay:K,mouseLeaveDelay:I,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:S},g),c?C:null)}}]),n}(o.Component);_e.defaultProps={onMouseEnter:Se,onMouseLeave:Se,onTitleMouseEnter:Se,onTitleMouseLeave:Se,onTitleClick:Se,manualRef:Se,mode:"vertical",title:""};var Ve=V((function(e,t){var n=e.openKeys,o=e.activeKey,r=e.selectedKeys,a=t.eventKey,i=t.subMenuKey;return{isOpen:n.indexOf(a)>-1,active:o[i]===a,selectedKeys:r}}))(_e);Ve.isSubMenu=!0;var He=function(e){g(n,e);var t=C(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=w.findDOMNode(E(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,a){var i=e.props,l=i.overflowedIndicator,s=i.level,c=i.mode,u=i.prefixCls,d=i.theme;if(1!==s||"horizontal"!==c)return null;var p=e.props.children[0].props;p.children,p.title;var f=p.style,v=r(p,["children","title","style"]),m=y({},f),h="".concat(t,"-overflowed-indicator"),b="".concat(t,"-overflowed-indicator");0===n.length&&!0!==a?m=y(y({},m),{},{display:"none"}):a&&(m=y(y({},m),{},{visibility:"hidden",position:"absolute"}),h="".concat(h,"-placeholder"),b="".concat(b,"-placeholder"));var g=d?"".concat(u,"-").concat(d):"",C={};return De.forEach((function(e){void 0!==v[e]&&(C[e]=v[e])})),o.createElement(Ve,Object.assign({title:l,className:"".concat(u,"-overflowed-submenu"),popupClassName:g},C,{key:h,eventKey:b,disabled:!1,style:m}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=w.findDOMNode(E(e));if(t){var n=t.children;if(n&&0!==n.length){var o=t.children[n.length-1];Ae(o,"display","inline-block");var r=e.getMenuItemNodes(),a=r.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));a.forEach((function(e){Ae(e,"display","inline-block")})),e.menuItemSizes=r.map((function(e){return Re(e,!0)})),a.forEach((function(e){Ae(e,"display","none")})),e.overflowedIndicatorWidth=Re(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),Ae(o,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=w.findDOMNode(E(e));if(t){var n=Re(t);e.overflowedItems=[];var o,r=0;e.originalTotalWidth>n+.5&&(o=-1,e.menuItemSizes.forEach((function(t){(r+=t)+e.overflowedIndicatorWidth<=n&&(o+=1)}))),e.setState({lastVisibleIndex:o})}}},e}return M(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=w.findDOMNode(this);if(!t)return;this.resizeObserver=new O((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,a,i){var l=a;if("horizontal"===t.props.mode){var s=t.getOverflowedSubMenuItem(a.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(i>n&&(l=o.cloneElement(a,{style:{display:"none"},eventKey:"".concat(a.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),i===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return o.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),s=t.getOverflowedSubMenuItem(a.props.eventKey,t.overflowedItems)));var c=[].concat(K(r),[s,l]);return i===e.length-1&&c.push(t.getOverflowedSubMenuItem(a.props.eventKey,[],!0)),c}return[].concat(K(r),[l])}),[])}},{key:"render",value:function(){var e=this.props;e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level;var t=e.tag,n=e.children;e.theme;var a=r(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),i=t;return o.createElement(i,Object.assign({},a),this.renderChildren(n))}}]),n}(o.Component);function qe(e,t,n){var o=e.getState();e.setState({activeKey:y(y({},o.activeKey),{},s({},t,n))})}function Ue(e){return e.eventKey||"0-menu-"}function Ge(e,t){var n,o=t,r=e.children,a=e.eventKey;if(o&&(Pe(r,(function(e,t){e&&e.props&&!e.props.disabled&&o===Ie(e,a,t)&&(n=!0)})),n))return o;return o=null,e.defaultActiveFirst?(Pe(r,(function(e,t){o||!e||e.props.disabled||(o=Ie(e,a,t))})),o):o}function Ye(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}He.defaultProps={tag:"div",className:""};var Xe=function(e){g(n,e);var t=C(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).onKeyDown=function(e,t){var n,o=e.keyCode;if(r.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var a=null;return o!==h.UP&&o!==h.DOWN||(a=r.step(o===h.UP?-1:1)),a?(e.preventDefault(),qe(r.props.store,Ue(r.props),a.props.eventKey),"function"==typeof t&&t(a),1):void 0},r.onItemHover=function(e){var t=e.key,n=e.hover;qe(r.props.store,Ue(r.props),n?t:null)},r.onDeselect=function(e){r.props.onDeselect(e)},r.onSelect=function(e){r.props.onSelect(e)},r.onClick=function(e){r.props.onClick(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onDestroy=function(e){r.props.onDestroy(e)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(e){var t=r.getFlatInstanceArray(),n=r.props.store.getState().activeKey[Ue(r.props)],o=t.length;if(!o)return null;e<0&&(t=t.concat().reverse());var a=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(a=t,!1)})),r.props.defaultActiveFirst||-1===a||(i=t.slice(a,o-1)).length&&!i.every((function(e){return!!e.props.disabled}))){var i,l=(a+1)%o,s=l;do{var c=t[s];if(c&&!c.props.disabled)return c;s=(s+1)%o}while(s!==l);return null}},r.renderCommonMenuItem=function(e,t,n){var a=r.props.store.getState(),i=E(r).props,l=Ie(e,i.eventKey,t),s=e.props;if(!s||"string"==typeof e.type)return e;var c=l===a.activeKey,u=y(y({mode:s.mode||i.mode,level:i.level,inlineIndent:i.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:i.prefixCls,index:t,parentMenu:i.parentMenu,manualRef:s.disabled?void 0:S(e.ref,Ye.bind(E(r))),eventKey:l,active:!s.disabled&&c,multiple:i.multiple,onClick:function(e){(s.onClick||Se)(e),r.onClick(e)},onItemHover:r.onItemHover,motion:i.motion,subMenuOpenDelay:i.subMenuOpenDelay,subMenuCloseDelay:i.subMenuCloseDelay,forceSubMenuRender:i.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:i.builtinPlacements,itemIcon:s.itemIcon||r.props.itemIcon,expandIcon:s.expandIcon||r.props.expandIcon},n),{},{direction:i.direction});return("inline"===i.mode||Ke.any)&&(u.triggerSubMenuAction="click"),o.cloneElement(e,y(y({},u),{},{key:l||t}))},r.renderMenuItem=function(e,t,n){if(!e)return null;var o=r.props.store.getState(),a={openKeys:o.openKeys,selectedKeys:o.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:n};return r.renderCommonMenuItem(e,t,a)},e.store.setState({activeKey:y(y({},e.store.getState().activeKey),{},s({},e.eventKey,Ge(e,e.activeKey)))}),r.instanceArray=[],r}return M(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!I(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[Ue(t)],o=Ge(t,n);if(o!==n)qe(t.store,Ue(t),o);else if("activeKey"in e){o!==Ge(e,e.activeKey)&&qe(t.store,Ue(t),o)}}},{key:"render",value:function(){var e=this,t=N({},this.props);this.instanceArray=[];var n={className:l(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var r=t.prefixCls,a=t.eventKey,i=t.visible,s=t.level,c=t.mode,u=t.overflowedIndicator,d=t.theme;return De.forEach((function(e){return delete t[e]})),delete t.onClick,o.createElement(He,Object.assign({},t,{prefixCls:r,mode:c,tag:"ul",level:s,theme:d,visible:i,overflowedIndicator:u},n),P(t.children).map((function(t,n){return e.renderMenuItem(t,n,a||"0-menu-")})))}}]),n}(o.Component);Xe.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Se};var $e=V()(Xe);function Ze(e,t,n){var o=e.prefixCls,r=e.motion,a=e.defaultMotions,i=void 0===a?{}:a,l=e.openAnimation,s=e.openTransitionName,c=t.switchingModeFromInline;if(r)return r;if("object"===b(l)&&l)T(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof l)return{motionName:"".concat(o,"-open-").concat(l)};if(s)return{motionName:s};var u=i[n];return u||(c?null:i.other)}var Je=function(e){g(n,e);var t=C(n);function n(e){var o;x(this,n),(o=t.call(this,e)).inlineOpenKeys=[],o.onSelect=function(e){var t=E(o).props;if(t.selectable){var n=o.store.getState().selectedKeys,r=e.key;n=t.multiple?n.concat([r]):[r],"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onSelect(y(y({},e),{},{selectedKeys:n}))}},o.onClick=function(e){var t=o.getRealMenuMode(),n=E(o),r=n.store,a=n.props.onOpenChange;"inline"===t||"openKeys"in o.props||(r.setState({openKeys:[]}),a([])),o.props.onClick(e)},o.onKeyDown=function(e,t){o.innerMenu.getWrappedInstance().onKeyDown(e,t)},o.onOpenChange=function(e){var t=E(o).props,n=o.store.getState().openKeys.concat(),r=!1,a=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var o=n.indexOf(e.key);(t=-1!==o)&&n.splice(o,1)}r=r||t};Array.isArray(e)?e.forEach(a):a(e),r&&("openKeys"in o.props||o.store.setState({openKeys:n}),t.onOpenChange(n))},o.onDeselect=function(e){var t=E(o).props;if(t.selectable){var n=o.store.getState().selectedKeys.concat(),r=e.key,a=n.indexOf(r);-1!==a&&n.splice(a,1),"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onDeselect(y(y({},e),{},{selectedKeys:n}))}},o.onMouseEnter=function(e){o.restoreModeVerticalFromInline();var t=o.props.onMouseEnter;t&&t(e)},o.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,r="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,a="font-size"===e.propertyName&&r.indexOf("anticon")>=0;(t||a)&&o.restoreModeVerticalFromInline()},o.setInnerMenu=function(e){o.innerMenu=e},o.isRootMenu=!0;var r=e.defaultSelectedKeys,a=e.defaultOpenKeys;return"selectedKeys"in e&&(r=e.selectedKeys||[]),"openKeys"in e&&(a=e.openKeys||[]),o.store=H({selectedKeys:r,openKeys:a,activeKey:{"0-menu-":Ge(e,e.activeKey)}}),o.state={switchingModeFromInline:!1},o}return M(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){this.updateOpentKeysWhenSwitchMode(e),this.updateMiniStore();var t=this.props,n=t.siderCollapsed,o=t.inlineCollapsed,r=t.onOpenChange;(!e.inlineCollapsed&&o||!e.siderCollapsed&&n)&&r([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(e){var t=this.props,n=this.store,o=this.inlineOpenKeys,r=n.getState(),a={};"inline"===e.mode&&"inline"!==t.mode&&this.setState({switchingModeFromInline:!0}),"openKeys"in t||((t.inlineCollapsed&&!e.inlineCollapsed||t.siderCollapsed&&!e.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=r.openKeys.concat(),a.openKeys=[]),(!t.inlineCollapsed&&e.inlineCollapsed||!t.siderCollapsed&&e.siderCollapsed)&&(a.openKeys=o,this.inlineOpenKeys=[])),Object.keys(a).length&&n.setState(a)}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=y({},D(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=y(y({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ze(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,o.createElement(q,{store:this.store},o.createElement($e,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}]),n}(o.Component);Je.defaultProps={selectable:!0,onClick:Se,onSelect:Se,onOpenChange:Se,onDeselect:Se,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"···")};var Qe=function(e){g(n,e);var t=C(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===h.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,o=n.eventKey,r=n.onItemHover,a=n.onMouseLeave;r({key:o,hover:!1}),a({key:o,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,o=n.eventKey,r=n.onItemHover,a=n.onMouseEnter;r({key:o,hover:!0}),a({key:o,domEvent:t})},e.onClick=function(t){var n=e.props,o=n.eventKey,r=n.multiple,a=n.onClick,i=n.onSelect,l=n.onDeselect,s=n.isSelected,c={key:o,keyPath:[o],item:E(e),domEvent:t};a(c),r?s?l(c):i(c):s||i(c)},e.saveNode=function(t){e.node=t},e}return M(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=y({},this.props),n=l(this.getPrefixCls(),t.className,(s(e={},this.getActiveClassName(),!t.disabled&&t.active),s(e,this.getSelectedClassName(),t.isSelected),s(e,this.getDisabledClassName(),t.disabled),e)),r=y(y({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?r=y(y({},r),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(r.role="none");var a={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},i=y({},t.style);"inline"===t.mode&&("rtl"===t.direction?i.paddingRight=t.inlineIndent*t.level:i.paddingLeft=t.inlineIndent*t.level),De.forEach((function(e){return delete t[e]})),delete t.direction;var c=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(c=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object.assign({},D(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),r,a,{style:i,ref:this.saveNode}),t.children,c)}}]),n}(o.Component);Qe.isMenuItem=!0,Qe.defaultProps={onSelect:Se,onMouseEnter:Se,onMouseLeave:Se,manualRef:Se};var et=V((function(e,t){var n=e.activeKey,o=e.selectedKeys,r=t.eventKey;return{active:n[t.subMenuKey]===r,isSelected:-1!==o.indexOf(r)}}))(Qe);var tt=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));var nt=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,c=e.locale,u=e.mobile,d=e.moreIcon,p=void 0===d?"More":d,f=e.moreTransitionName,v=e.style,m=e.className,y=e.editable,b=e.tabBarGutter,g=e.rtl,C=e.onTabClick,x=o.useState(!1),E=a(x,2),w=E[0],M=E[1],k=o.useState(null),O=a(k,2),K=O[0],S=O[1],I="".concat(r,"-more-popup"),N="".concat(n,"-dropdown"),P=null!==K?"".concat(I,"-").concat(K):null,T=null==c?void 0:c.dropdownAriaLabel,D=o.createElement(Je,{onClick:function(e){var t=e.key,n=e.domEvent;C(t,n),M(!1)},id:I,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[K],"aria-label":void 0!==T?T:"expanded dropdown"},i.map((function(e){return o.createElement(et,{key:e.key,id:"".concat(I,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function R(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===K}))||0,o=t.length,r=0;rt?"left":"right"})})),W=a(z,2),F=W[0],B=W[1],_=at(0,(function(e,t){!L&&O&&O({direction:e>t?"top":"bottom"})})),V=a(_,2),H=V[0],q=V[1],U=o.useState(0),G=a(U,2),Y=G[0],X=G[1],$=o.useState(0),Z=a($,2),J=Z[0],Q=Z[1],ee=o.useState(0),te=a(ee,2),ne=te[0],oe=te[1],re=o.useState(0),ae=a(re,2),ie=ae[0],de=ae[1],pe=o.useState(null),fe=a(pe,2),ve=fe[0],me=fe[1],he=o.useState(null),ye=a(he,2),be=ye[0],ge=ye[1],Ce=o.useState(0),xe=a(Ce,2),Ee=xe[0],we=xe[1],Me=o.useState(0),ke=a(Me,2),Oe=ke[0],Ke=ke[1],Se=function(e){var t=o.useRef([]),n=o.useState({}),r=a(n,2)[1],i=o.useRef("function"==typeof e?e():e),l=le((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,r({})}));return[i.current,function(e){t.current.push(e),l()}]}(new Map),Ie=a(Se,2),Ne=Ie[0],Pe=Ie[1],Te=function(e,t,n){return o.useMemo((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||ce,a=r.left+r.width,i=0;iAe?[Ae,!1]:[e,!0]}L?b?(Re=0,Ae=Math.max(0,Y-ve)):(Re=Math.min(0,ve-Y),Ae=0):(Re=Math.min(0,be-J),Ae=0);var Le=o.useRef(),ze=o.useState(),We=a(ze,2),Fe=We[0],Be=We[1];function _e(){Be(Date.now())}function Ve(){window.clearTimeout(Le.current)}function He(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=Te.get(e);if(t)if(L){var n=F;b?t.rightF+ve&&(n=t.right+t.width-ve):t.left<-F?n=-t.left:t.left+t.width>-F+ve&&(n=-(t.left+t.width-ve)),q(0),B(je(n)[0])}else{var o=H;t.top<-H?o=-t.top:t.top+t.height>-H+be&&(o=-(t.top+t.height-be)),B(0),q(je(o)[0])}}!function(e,t){var n=o.useState(),r=a(n,2),i=r[0],l=r[1],s=o.useState(0),c=a(s,2),u=c[0],d=c[1],p=o.useState(0),f=a(p,2),v=f[0],m=f[1],h=o.useState(),y=a(h,2),b=y[0],g=y[1],C=o.useRef(),x=o.useRef(0),E=o.useRef(!1),w=o.useRef(),M=o.useRef(null);M.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;l({x:n,y:o}),window.clearInterval(C.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],o=n.screenX,r=n.screenY;l({x:o,y:r});var a=o-i.x,s=r-i.y;t(a,s);var c=Date.now();d(c),m(c-u),g({x:a,y:s})}},onTouchEnd:function(){if(i&&(l(null),g(null),b)){var e=b.x/v,n=b.y/v,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;var a=e,s=n;C.current=window.setInterval((function(){Math.abs(a)<.01&&Math.abs(s)<.01?window.clearInterval(C.current):t(20*(a*=rt),20*(s*=rt))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,a=Math.abs(n),i=Math.abs(o);a===i?r="x"===w.current?n:o:a>i?(r=n,w.current="x"):(r=o,w.current="y");var l=Date.now();l-x.current>100&&(E.current=!1),(t(-r,-r)||E.current)&&(e.preventDefault(),E.current=!0),x.current=l}},o.useEffect((function(){function t(e){M.current.onTouchMove(e)}function n(e){M.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){M.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){M.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(S,(function(e,t){var n=!1;function o(e,t){e((function(e){var o=je(e+t),r=a(o,2),i=r[0],l=r[1];return n=l,i}))}if(L){if(ve>=Y)return n;o(B,e)}else{if(be>=J)return n;o(q,t)}return Ve(),_e(),n})),o.useEffect((function(){return Ve(),Fe&&(Le.current=window.setTimeout((function(){Be(0)}),100)),Ve}),[Fe]);var qe=function(e,t,n,r,a){var i,l,s,c=a.tabs,u=a.tabPosition,d=a.rtl;["top","bottom"].includes(u)?(i="width",l=d?"right":"left",s=Math.abs(t.left)):(i="height",l="top",s=-t.top);var p=t[i],f=n[i],v=r[i],m=p;return f+v>p&&(m=p-v),o.useMemo((function(){if(!c.length)return[0,0];for(var t=c.length,n=t,o=0;os+m){n=o-1;break}}for(var a=0,u=t-1;u>=0;u-=1)if((e.get(c[u].key)||ue)[l]0,ft=F+ve0?{marginLeft:g[0]/-2,marginRight:g[0]/-2}:{}),g[1]>0?{marginTop:g[1]/-2,marginBottom:g[1]/2}:{}),m),E=t({},y);return delete E.gutter,o.createElement(yt.Provider,{value:{gutter:g}},o.createElement("div",t({},E,{className:C,style:x,ref:r}),h))};return o.createElement(v,null,d)}));bt.displayName="Row";var gt=o.forwardRef((function(e,r){var a=function(a){var i,s=a.getPrefixCls,c=a.direction,u=e.prefixCls,d=e.span,p=e.order,f=e.offset,v=e.push,m=e.pull,h=e.className,y=e.children,b=e.flex,g=e.style,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0?{paddingLeft:n[0]/2,paddingRight:n[0]/2}:{}),n[1]>0?{paddingTop:n[1]/2,paddingBottom:n[1]/2}:{}),a)),b&&(a.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(b)),o.createElement("div",t({},C,{style:a,className:w,ref:r}),y)}))};return o.createElement(v,null,a)}));gt.displayName="Col";var Ct=function(e){var r,a,i,s=o.useContext(j),c=s.getPrefixCls,u=s.direction,d=o.useContext(_),p=e.prefixCls,f=e.className,v=e.extra,m=e.headStyle,h=void 0===m?{}:m,y=e.bodyStyle,b=void 0===y?{}:y,g=e.title,C=e.loading,x=e.bordered,E=void 0===x||x,w=e.size,M=e.type,k=e.cover,O=e.actions,K=e.tabList,S=e.children,I=e.activeTabKey,N=e.defaultActiveTabKey,P=e.tabBarExtraContent,T=e.hoverable,R=e.tabProps,A=void 0===R?{}:R,L=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro.createElement(Ct,e({style:{width:"100%",overflowY:"auto"}},t));export{xt as B,gt as C,bt as R,U as a,Z as r}; diff --git a/assets/BasicLayoutCard.3bb4f24a.js b/assets/BasicLayoutCard.3bb4f24a.js deleted file mode 100644 index cebb3e1..0000000 --- a/assets/BasicLayoutCard.3bb4f24a.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;import{r as l,C as n}from"./vendor.c381151c.js";const p=e=>l.exports.createElement(n,((e,l)=>{for(var n in l||(l={}))t.call(l,n)&&a(e,n,l[n]);if(r)for(var n of r(l))o.call(l,n)&&a(e,n,l[n]);return e})({style:{width:"100%",overflowY:"auto"}},e));export{p as B}; diff --git a/assets/BasicLayoutCard.6b71ac4c.js b/assets/BasicLayoutCard.6b71ac4c.js deleted file mode 100644 index 5bcd6c7..0000000 --- a/assets/BasicLayoutCard.6b71ac4c.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.assign;import{c as t,f as n,C as o,_ as r,o as a,T as i,e as l,x as s,h as c,j as u,k as d,A as p,l as f,M as v,W as m,K as h,a as y,b,p as g,q as C,r as x,t as E,u as w,v as M,w as k,y as O,z as K,B as S,m as I,D as N,E as P,F as T,G as D,X as R,Y as A,d as j,O as L,Z as z,$ as W,s as F,a0 as B,a1 as _}from"./vendor.82731917.js";import{c as V,a as H,P as q}from"./index.4f623665.js";var U=["xxl","xl","lg","md","sm","xs"],G={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},Y=new Map,X=-1,$={},Z={matchHandlers:{},dispatch:function(e){return $=e,Y.forEach((function(e){return e($)})),Y.size>=1},subscribe:function(e){return Y.size||this.register(),X+=1,Y.set(X,e),e($),X},unsubscribe:function(e){Y.delete(e),Y.size||this.unregister()},unregister:function(){var e=this;Object.keys(G).forEach((function(t){var n=G[t],o=e.matchHandlers[n];null==o||o.mql.removeListener(null==o?void 0:o.listener)})),Y.clear()},register:function(){var e=this;Object.keys(G).forEach((function(o){var r=G[o],a=function(r){var a=r.matches;e.dispatch(t(t({},$),n({},o,a)))},i=window.matchMedia(r);i.addListener(a),e.matchHandlers[r]={mql:i,listener:a},a(i)}))}},J={adjustX:1,adjustY:1},Q=[0,0],ee={topLeft:{points:["bl","tl"],overflow:J,offset:[0,-4],targetOffset:Q},topCenter:{points:["bc","tc"],overflow:J,offset:[0,-4],targetOffset:Q},topRight:{points:["br","tr"],overflow:J,offset:[0,-4],targetOffset:Q},bottomLeft:{points:["tl","bl"],overflow:J,offset:[0,4],targetOffset:Q},bottomCenter:{points:["tc","bc"],overflow:J,offset:[0,4],targetOffset:Q},bottomRight:{points:["tr","br"],overflow:J,offset:[0,4],targetOffset:Q}};var te=o.forwardRef((function(e,t){var n=e.arrow,c=void 0!==n&&n,u=e.prefixCls,d=void 0===u?"rc-dropdown":u,p=e.transitionName,f=e.animation,v=e.align,m=e.placement,h=void 0===m?"bottomLeft":m,y=e.placements,b=void 0===y?ee:y,g=e.getPopupContainer,C=e.showAction,x=e.hideAction,E=e.overlayClassName,w=e.overlayStyle,M=e.visible,k=e.trigger,O=void 0===k?["hover"]:k,K=r(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),S=o.useState(),I=a(S,2),N=I[0],P=I[1],T="visible"in e?M:N,D=o.useRef(null);o.useImperativeHandle(t,(function(){return D.current}));var R,A,j,L,z,W,F=function(){var t=e.overlay;return"function"==typeof t?t():t},B=function(t){var n=e.onOverlayClick,o=F().props;P(!1),n&&n(t),o.onClick&&o.onClick(t)},_=function(){var e=F(),t={prefixCls:"".concat(d,"-menu"),onClick:B};return"string"==typeof e.type&&delete t.prefixCls,o.createElement(o.Fragment,null,c&&o.createElement("div",{className:"".concat(d,"-arrow")}),o.cloneElement(e,t))},V=x;return V||-1===O.indexOf("contextMenu")||(V=["click"]),o.createElement(i,Object.assign({},K,{prefixCls:d,ref:D,popupClassName:l(E,s({},"".concat(d,"-show-arrow"),c)),popupStyle:w,builtinPlacements:b,action:O,showAction:C,hideAction:V||[],popupPlacement:h,popupAlign:v,popupTransitionName:p,popupAnimation:f,popupVisible:T,stretch:(z=e.minOverlayWidthMatchTrigger,W=e.alignPoint,("minOverlayWidthMatchTrigger"in e?z:!W)?"minWidth":""),popup:"function"==typeof e.overlay?_:_(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;P(t),"function"==typeof n&&n(t)},getPopupContainer:g}),(A=e.children,j=A.props?A.props:{},L=l(j.className,void 0!==(R=e.openClassName)?R:"".concat(d,"-open")),N&&A?o.cloneElement(A,{className:L}):A))})),ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},oe=Object.defineProperty({default:ne},"__esModule",{value:!0}),re=c((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(o),r=d(oe),a=d(p),i=function(e,t){return n.createElement(a.default,Object.assign({},e,{ref:t,icon:r.default}))};i.displayName="EllipsisOutlined";var l=n.forwardRef(i);t.default=l})),ae=f(c((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(n=re)&&n.__esModule?n:{default:n};t.default=o,e.exports=o}))),ie=function(e){return o.createElement(v,null,(function(r){var a=r.getPrefixCls,i=e.prefixCls,s=e.className,c=e.hoverable,u=void 0===c||c,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var o=getComputedStyle(e),r=o.marginLeft,a=o.marginRight;n+=+r.replace("px","")+ +a.replace("px","")}n=+n.toFixed(6)}return n||0},Ae=function(e,t,n){e&&"object"===b(e.style)&&(e.style[t]=n)},je={adjustX:1,adjustY:1},Le={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:je,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:je,offset:[4,0]}},ze={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:je,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:je,offset:[4,0]}},We=0,Fe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Be=function(e,t,n){var o=Ne(t),r=e.getState();e.setState({defaultActiveFirst:y(y({},r.defaultActiveFirst),{},s({},o,n))})},_e=function(e){g(n,e);var t=C(n);function n(e){var o;x(this,n),(o=t.call(this,e)).onDestroy=function(e){o.props.onDestroy(e)},o.onKeyDown=function(e){var t=e.keyCode,n=o.menuInstance,r=o.props,a=r.isOpen,i=r.store;if(t===h.ENTER)return o.onTitleClick(e),Be(i,o.props.eventKey,!0),!0;if(t===h.RIGHT)return a?n.onKeyDown(e):(o.triggerOpenChange(!0),Be(i,o.props.eventKey,!0)),!0;if(t===h.LEFT){var l;if(!a)return;return(l=n.onKeyDown(e))||(o.triggerOpenChange(!1),l=!0),l}return!a||t!==h.UP&&t!==h.DOWN?void 0:n.onKeyDown(e)},o.onOpenChange=function(e){o.props.onOpenChange(e)},o.onPopupVisibleChange=function(e){o.triggerOpenChange(e,e?"mouseenter":"mouseleave")},o.onMouseEnter=function(e){var t=o.props,n=t.eventKey,r=t.onMouseEnter,a=t.store;Be(a,o.props.eventKey,!1),r({key:n,domEvent:e})},o.onMouseLeave=function(e){var t=o.props,n=t.parentMenu,r=t.eventKey,a=t.onMouseLeave;n.subMenuInstance=E(o),a({key:r,domEvent:e})},o.onTitleMouseEnter=function(e){var t=o.props,n=t.eventKey,r=t.onItemHover,a=t.onTitleMouseEnter;r({key:n,hover:!0}),a({key:n,domEvent:e})},o.onTitleMouseLeave=function(e){var t=o.props,n=t.parentMenu,r=t.eventKey,a=t.onItemHover,i=t.onTitleMouseLeave;n.subMenuInstance=E(o),a({key:r,hover:!1}),i({key:r,domEvent:e})},o.onTitleClick=function(e){var t=E(o).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(o.triggerOpenChange(!t.isOpen,"click"),Be(t.store,o.props.eventKey,!1))},o.onSubMenuClick=function(e){"function"==typeof o.props.onClick&&o.props.onClick(o.addKeyPath(e))},o.onSelect=function(e){o.props.onSelect(e)},o.onDeselect=function(e){o.props.onDeselect(e)},o.getPrefixCls=function(){return"".concat(o.props.rootPrefixCls,"-submenu")},o.getActiveClassName=function(){return"".concat(o.getPrefixCls(),"-active")},o.getDisabledClassName=function(){return"".concat(o.getPrefixCls(),"-disabled")},o.getSelectedClassName=function(){return"".concat(o.getPrefixCls(),"-selected")},o.getOpenClassName=function(){return"".concat(o.props.rootPrefixCls,"-submenu-open")},o.saveMenuInstance=function(e){o.menuInstance=e},o.addKeyPath=function(e){return y(y({},e),{},{keyPath:(e.keyPath||[]).concat(o.props.eventKey)})},o.triggerOpenChange=function(e,t){var n=o.props.eventKey,r=function(){o.onOpenChange({key:n,item:E(o),trigger:t,open:e})};"mouseenter"===t?o.mouseenterTimeout=setTimeout((function(){r()}),0):r()},o.isChildrenSelected=function(){var e={find:!1};return Te(o.props.children,o.props.selectedKeys,e),e.find},o.isOpen=function(){return-1!==o.props.openKeys.indexOf(o.props.eventKey)},o.adjustWidth=function(){if(o.subMenuTitle&&o.menuInstance){var e=w.findDOMNode(o.menuInstance);e.offsetWidth>=o.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(o.subMenuTitle.offsetWidth,"px"))}},o.saveSubMenuTitle=function(e){o.subMenuTitle=e},o.getBaseProps=function(){var e=E(o).props;return{mode:"horizontal"===e.mode?"vertical":e.mode,visible:o.props.isOpen,level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:o.onSubMenuClick,onSelect:o.onSelect,onDeselect:o.onDeselect,onDestroy:o.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:o.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:E(o),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[Ne(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:o.internalMenuId,manualRef:o.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},o.getMotion=function(e,t){var n=E(o).haveRendered,r=o.props,a=r.motion,i=r.rootPrefixCls;return y(y({},a),{},{leavedClassName:"".concat(i,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var r=e.store,a=e.eventKey,i=r.getState().defaultActiveFirst;o.isRootMenu=!1;var l=!1;return i&&(l=i[a]),Be(r,a,l),o}return M(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,o=t.parentMenu,r=t.manualRef,a=t.isOpen;r&&r(this),"horizontal"===n&&(null==o?void 0:o.isRootMenu)&&a&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.getBaseProps(),r=this.getMotion(n.mode,n.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||n.visible||n.forceSubMenuRender,!this.haveOpened)return o.createElement("div",null);var a=n.direction;return o.createElement(k,Object.assign({visible:n.visible},r),(function(r){var i=r.className,c=r.style,u=l("".concat(n.prefixCls,"-sub"),i,s({},"".concat(n.prefixCls,"-rtl"),"rtl"===a));return o.createElement($e,Object.assign({},n,{id:t.internalMenuId,className:u,style:c}),e)}))}},{key:"render",value:function(){var e,t,n=y({},this.props),r=n.isOpen,a=this.getPrefixCls(),c="inline"===n.mode,u=l(a,"".concat(a,"-").concat(n.mode),(s(e={},n.className,!!n.className),s(e,this.getOpenClassName(),r),s(e,this.getActiveClassName(),n.active||r&&!c),s(e,this.getDisabledClassName(),n.disabled),s(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(n.eventKey?this.internalMenuId="".concat(n.eventKey,"$Menu"):(We+=1,this.internalMenuId="$__$".concat(We,"$Menu")));var d={},p={},f={};n.disabled||(d={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},p={onClick:this.onTitleClick},f={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var v={},m=n.direction;c&&("rtl"===m?v.paddingRight=n.inlineIndent*n.level:v.paddingLeft=n.inlineIndent*n.level);var h={};this.props.isOpen&&(h={"aria-owns":this.internalMenuId});var b=null;"horizontal"!==n.mode&&(b=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(b=o.createElement(this.props.expandIcon,y({},this.props))));var g=o.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:v,className:"".concat(a,"-title"),role:"button"},f,p,{"aria-expanded":r},h,{"aria-haspopup":"true",title:"string"==typeof n.title?n.title:void 0}),n.title,b||o.createElement("i",{className:"".concat(a,"-arrow")})),C=this.renderChildren(n.children),x=(null===(t=n.parentMenu)||void 0===t?void 0:t.isRootMenu)?n.parentMenu.props.getPopupContainer:function(e){return e.parentNode},E=Fe[n.mode],w=n.popupOffset?{offset:n.popupOffset}:{},M="inline"===n.mode?"":n.popupClassName;M+="rtl"===m?" ".concat(a,"-rtl"):"";var k=n.disabled,O=n.triggerSubMenuAction,K=n.subMenuOpenDelay,S=n.forceSubMenuRender,I=n.subMenuCloseDelay,N=n.builtinPlacements;De.forEach((function(e){return delete n[e]})),delete n.onClick;var P="rtl"===m?Object.assign({},ze,N):Object.assign({},Le,N);return delete n.direction,o.createElement("li",Object.assign({},n,d,{className:u,role:"menuitem"}),o.createElement(i,{prefixCls:a,popupClassName:l("".concat(a,"-popup"),M),getPopupContainer:x,builtinPlacements:P,popupPlacement:E,popupVisible:!c&&r,popupAlign:w,popup:c?null:C,action:k||c?[]:[O],mouseEnterDelay:K,mouseLeaveDelay:I,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:S},g),c?C:null)}}]),n}(o.Component);_e.defaultProps={onMouseEnter:Se,onMouseLeave:Se,onTitleMouseEnter:Se,onTitleMouseLeave:Se,onTitleClick:Se,manualRef:Se,mode:"vertical",title:""};var Ve=V((function(e,t){var n=e.openKeys,o=e.activeKey,r=e.selectedKeys,a=t.eventKey,i=t.subMenuKey;return{isOpen:n.indexOf(a)>-1,active:o[i]===a,selectedKeys:r}}))(_e);Ve.isSubMenu=!0;var He=function(e){g(n,e);var t=C(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=w.findDOMNode(E(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,a){var i=e.props,l=i.overflowedIndicator,s=i.level,c=i.mode,u=i.prefixCls,d=i.theme;if(1!==s||"horizontal"!==c)return null;var p=e.props.children[0].props;p.children,p.title;var f=p.style,v=r(p,["children","title","style"]),m=y({},f),h="".concat(t,"-overflowed-indicator"),b="".concat(t,"-overflowed-indicator");0===n.length&&!0!==a?m=y(y({},m),{},{display:"none"}):a&&(m=y(y({},m),{},{visibility:"hidden",position:"absolute"}),h="".concat(h,"-placeholder"),b="".concat(b,"-placeholder"));var g=d?"".concat(u,"-").concat(d):"",C={};return De.forEach((function(e){void 0!==v[e]&&(C[e]=v[e])})),o.createElement(Ve,Object.assign({title:l,className:"".concat(u,"-overflowed-submenu"),popupClassName:g},C,{key:h,eventKey:b,disabled:!1,style:m}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=w.findDOMNode(E(e));if(t){var n=t.children;if(n&&0!==n.length){var o=t.children[n.length-1];Ae(o,"display","inline-block");var r=e.getMenuItemNodes(),a=r.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));a.forEach((function(e){Ae(e,"display","inline-block")})),e.menuItemSizes=r.map((function(e){return Re(e,!0)})),a.forEach((function(e){Ae(e,"display","none")})),e.overflowedIndicatorWidth=Re(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),Ae(o,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=w.findDOMNode(E(e));if(t){var n=Re(t);e.overflowedItems=[];var o,r=0;e.originalTotalWidth>n+.5&&(o=-1,e.menuItemSizes.forEach((function(t){(r+=t)+e.overflowedIndicatorWidth<=n&&(o+=1)}))),e.setState({lastVisibleIndex:o})}}},e}return M(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=w.findDOMNode(this);if(!t)return;this.resizeObserver=new O((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,a,i){var l=a;if("horizontal"===t.props.mode){var s=t.getOverflowedSubMenuItem(a.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(i>n&&(l=o.cloneElement(a,{style:{display:"none"},eventKey:"".concat(a.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),i===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return o.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),s=t.getOverflowedSubMenuItem(a.props.eventKey,t.overflowedItems)));var c=[].concat(K(r),[s,l]);return i===e.length-1&&c.push(t.getOverflowedSubMenuItem(a.props.eventKey,[],!0)),c}return[].concat(K(r),[l])}),[])}},{key:"render",value:function(){var e=this.props;e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level;var t=e.tag,n=e.children;e.theme;var a=r(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),i=t;return o.createElement(i,Object.assign({},a),this.renderChildren(n))}}]),n}(o.Component);function qe(e,t,n){var o=e.getState();e.setState({activeKey:y(y({},o.activeKey),{},s({},t,n))})}function Ue(e){return e.eventKey||"0-menu-"}function Ge(e,t){var n,o=t,r=e.children,a=e.eventKey;if(o&&(Pe(r,(function(e,t){e&&e.props&&!e.props.disabled&&o===Ie(e,a,t)&&(n=!0)})),n))return o;return o=null,e.defaultActiveFirst?(Pe(r,(function(e,t){o||!e||e.props.disabled||(o=Ie(e,a,t))})),o):o}function Ye(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}He.defaultProps={tag:"div",className:""};var Xe=function(e){g(n,e);var t=C(n);function n(e){var r;return x(this,n),(r=t.call(this,e)).onKeyDown=function(e,t){var n,o=e.keyCode;if(r.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var a=null;return o!==h.UP&&o!==h.DOWN||(a=r.step(o===h.UP?-1:1)),a?(e.preventDefault(),qe(r.props.store,Ue(r.props),a.props.eventKey),"function"==typeof t&&t(a),1):void 0},r.onItemHover=function(e){var t=e.key,n=e.hover;qe(r.props.store,Ue(r.props),n?t:null)},r.onDeselect=function(e){r.props.onDeselect(e)},r.onSelect=function(e){r.props.onSelect(e)},r.onClick=function(e){r.props.onClick(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onDestroy=function(e){r.props.onDestroy(e)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(e){var t=r.getFlatInstanceArray(),n=r.props.store.getState().activeKey[Ue(r.props)],o=t.length;if(!o)return null;e<0&&(t=t.concat().reverse());var a=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(a=t,!1)})),r.props.defaultActiveFirst||-1===a||(i=t.slice(a,o-1)).length&&!i.every((function(e){return!!e.props.disabled}))){var i,l=(a+1)%o,s=l;do{var c=t[s];if(c&&!c.props.disabled)return c;s=(s+1)%o}while(s!==l);return null}},r.renderCommonMenuItem=function(e,t,n){var a=r.props.store.getState(),i=E(r).props,l=Ie(e,i.eventKey,t),s=e.props;if(!s||"string"==typeof e.type)return e;var c=l===a.activeKey,u=y(y({mode:s.mode||i.mode,level:i.level,inlineIndent:i.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:i.prefixCls,index:t,parentMenu:i.parentMenu,manualRef:s.disabled?void 0:S(e.ref,Ye.bind(E(r))),eventKey:l,active:!s.disabled&&c,multiple:i.multiple,onClick:function(e){(s.onClick||Se)(e),r.onClick(e)},onItemHover:r.onItemHover,motion:i.motion,subMenuOpenDelay:i.subMenuOpenDelay,subMenuCloseDelay:i.subMenuCloseDelay,forceSubMenuRender:i.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:i.builtinPlacements,itemIcon:s.itemIcon||r.props.itemIcon,expandIcon:s.expandIcon||r.props.expandIcon},n),{},{direction:i.direction});return("inline"===i.mode||Ke.any)&&(u.triggerSubMenuAction="click"),o.cloneElement(e,y(y({},u),{},{key:l||t}))},r.renderMenuItem=function(e,t,n){if(!e)return null;var o=r.props.store.getState(),a={openKeys:o.openKeys,selectedKeys:o.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:n};return r.renderCommonMenuItem(e,t,a)},e.store.setState({activeKey:y(y({},e.store.getState().activeKey),{},s({},e.eventKey,Ge(e,e.activeKey)))}),r.instanceArray=[],r}return M(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!I(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[Ue(t)],o=Ge(t,n);if(o!==n)qe(t.store,Ue(t),o);else if("activeKey"in e){o!==Ge(e,e.activeKey)&&qe(t.store,Ue(t),o)}}},{key:"render",value:function(){var e=this,t=N({},this.props);this.instanceArray=[];var n={className:l(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var r=t.prefixCls,a=t.eventKey,i=t.visible,s=t.level,c=t.mode,u=t.overflowedIndicator,d=t.theme;return De.forEach((function(e){return delete t[e]})),delete t.onClick,o.createElement(He,Object.assign({},t,{prefixCls:r,mode:c,tag:"ul",level:s,theme:d,visible:i,overflowedIndicator:u},n),P(t.children).map((function(t,n){return e.renderMenuItem(t,n,a||"0-menu-")})))}}]),n}(o.Component);Xe.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Se};var $e=V()(Xe);function Ze(e,t,n){var o=e.prefixCls,r=e.motion,a=e.defaultMotions,i=void 0===a?{}:a,l=e.openAnimation,s=e.openTransitionName,c=t.switchingModeFromInline;if(r)return r;if("object"===b(l)&&l)T(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof l)return{motionName:"".concat(o,"-open-").concat(l)};if(s)return{motionName:s};var u=i[n];return u||(c?null:i.other)}var Je=function(e){g(n,e);var t=C(n);function n(e){var o;x(this,n),(o=t.call(this,e)).inlineOpenKeys=[],o.onSelect=function(e){var t=E(o).props;if(t.selectable){var n=o.store.getState().selectedKeys,r=e.key;n=t.multiple?n.concat([r]):[r],"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onSelect(y(y({},e),{},{selectedKeys:n}))}},o.onClick=function(e){var t=o.getRealMenuMode(),n=E(o),r=n.store,a=n.props.onOpenChange;"inline"===t||"openKeys"in o.props||(r.setState({openKeys:[]}),a([])),o.props.onClick(e)},o.onKeyDown=function(e,t){o.innerMenu.getWrappedInstance().onKeyDown(e,t)},o.onOpenChange=function(e){var t=E(o).props,n=o.store.getState().openKeys.concat(),r=!1,a=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var o=n.indexOf(e.key);(t=-1!==o)&&n.splice(o,1)}r=r||t};Array.isArray(e)?e.forEach(a):a(e),r&&("openKeys"in o.props||o.store.setState({openKeys:n}),t.onOpenChange(n))},o.onDeselect=function(e){var t=E(o).props;if(t.selectable){var n=o.store.getState().selectedKeys.concat(),r=e.key,a=n.indexOf(r);-1!==a&&n.splice(a,1),"selectedKeys"in t||o.store.setState({selectedKeys:n}),t.onDeselect(y(y({},e),{},{selectedKeys:n}))}},o.onMouseEnter=function(e){o.restoreModeVerticalFromInline();var t=o.props.onMouseEnter;t&&t(e)},o.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,r="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,a="font-size"===e.propertyName&&r.indexOf("anticon")>=0;(t||a)&&o.restoreModeVerticalFromInline()},o.setInnerMenu=function(e){o.innerMenu=e},o.isRootMenu=!0;var r=e.defaultSelectedKeys,a=e.defaultOpenKeys;return"selectedKeys"in e&&(r=e.selectedKeys||[]),"openKeys"in e&&(a=e.openKeys||[]),o.store=H({selectedKeys:r,openKeys:a,activeKey:{"0-menu-":Ge(e,e.activeKey)}}),o.state={switchingModeFromInline:!1},o}return M(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){this.updateOpentKeysWhenSwitchMode(e),this.updateMiniStore();var t=this.props,n=t.siderCollapsed,o=t.inlineCollapsed,r=t.onOpenChange;(!e.inlineCollapsed&&o||!e.siderCollapsed&&n)&&r([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(e){var t=this.props,n=this.store,o=this.inlineOpenKeys,r=n.getState(),a={};"inline"===e.mode&&"inline"!==t.mode&&this.setState({switchingModeFromInline:!0}),"openKeys"in t||((t.inlineCollapsed&&!e.inlineCollapsed||t.siderCollapsed&&!e.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=r.openKeys.concat(),a.openKeys=[]),(!t.inlineCollapsed&&e.inlineCollapsed||!t.siderCollapsed&&e.siderCollapsed)&&(a.openKeys=o,this.inlineOpenKeys=[])),Object.keys(a).length&&n.setState(a)}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=y({},D(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=y(y({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ze(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,o.createElement(q,{store:this.store},o.createElement($e,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}]),n}(o.Component);Je.defaultProps={selectable:!0,onClick:Se,onSelect:Se,onOpenChange:Se,onDeselect:Se,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:o.createElement("span",null,"···")};var Qe=function(e){g(n,e);var t=C(n);function n(){var e;return x(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===h.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,o=n.eventKey,r=n.onItemHover,a=n.onMouseLeave;r({key:o,hover:!1}),a({key:o,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,o=n.eventKey,r=n.onItemHover,a=n.onMouseEnter;r({key:o,hover:!0}),a({key:o,domEvent:t})},e.onClick=function(t){var n=e.props,o=n.eventKey,r=n.multiple,a=n.onClick,i=n.onSelect,l=n.onDeselect,s=n.isSelected,c={key:o,keyPath:[o],item:E(e),domEvent:t};a(c),r?s?l(c):i(c):s||i(c)},e.saveNode=function(t){e.node=t},e}return M(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=y({},this.props),n=l(this.getPrefixCls(),t.className,(s(e={},this.getActiveClassName(),!t.disabled&&t.active),s(e,this.getSelectedClassName(),t.isSelected),s(e,this.getDisabledClassName(),t.disabled),e)),r=y(y({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?r=y(y({},r),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(r.role="none");var a={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},i=y({},t.style);"inline"===t.mode&&("rtl"===t.direction?i.paddingRight=t.inlineIndent*t.level:i.paddingLeft=t.inlineIndent*t.level),De.forEach((function(e){return delete t[e]})),delete t.direction;var c=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(c=o.createElement(this.props.itemIcon,this.props)),o.createElement("li",Object.assign({},D(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),r,a,{style:i,ref:this.saveNode}),t.children,c)}}]),n}(o.Component);Qe.isMenuItem=!0,Qe.defaultProps={onSelect:Se,onMouseEnter:Se,onMouseLeave:Se,manualRef:Se};var et=V((function(e,t){var n=e.activeKey,o=e.selectedKeys,r=t.eventKey;return{active:n[t.subMenuKey]===r,isSelected:-1!==o.indexOf(r)}}))(Qe);var tt=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));var nt=o.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,c=e.locale,u=e.mobile,d=e.moreIcon,p=void 0===d?"More":d,f=e.moreTransitionName,v=e.style,m=e.className,y=e.editable,b=e.tabBarGutter,g=e.rtl,C=e.onTabClick,x=o.useState(!1),E=a(x,2),w=E[0],M=E[1],k=o.useState(null),O=a(k,2),K=O[0],S=O[1],I="".concat(r,"-more-popup"),N="".concat(n,"-dropdown"),P=null!==K?"".concat(I,"-").concat(K):null,T=null==c?void 0:c.dropdownAriaLabel,D=o.createElement(Je,{onClick:function(e){var t=e.key,n=e.domEvent;C(t,n),M(!1)},id:I,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[K],"aria-label":void 0!==T?T:"expanded dropdown"},i.map((function(e){return o.createElement(et,{key:e.key,id:"".concat(I,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function R(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===K}))||0,o=t.length,r=0;rt?"left":"right"})})),W=a(z,2),F=W[0],B=W[1],_=at(0,(function(e,t){!L&&O&&O({direction:e>t?"top":"bottom"})})),V=a(_,2),H=V[0],q=V[1],U=o.useState(0),G=a(U,2),Y=G[0],X=G[1],$=o.useState(0),Z=a($,2),J=Z[0],Q=Z[1],ee=o.useState(0),te=a(ee,2),ne=te[0],oe=te[1],re=o.useState(0),ae=a(re,2),ie=ae[0],de=ae[1],pe=o.useState(null),fe=a(pe,2),ve=fe[0],me=fe[1],he=o.useState(null),ye=a(he,2),be=ye[0],ge=ye[1],Ce=o.useState(0),xe=a(Ce,2),Ee=xe[0],we=xe[1],Me=o.useState(0),ke=a(Me,2),Oe=ke[0],Ke=ke[1],Se=function(e){var t=o.useRef([]),n=o.useState({}),r=a(n,2)[1],i=o.useRef("function"==typeof e?e():e),l=le((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,r({})}));return[i.current,function(e){t.current.push(e),l()}]}(new Map),Ie=a(Se,2),Ne=Ie[0],Pe=Ie[1],Te=function(e,t,n){return o.useMemo((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||ce,a=r.left+r.width,i=0;iAe?[Ae,!1]:[e,!0]}L?b?(Re=0,Ae=Math.max(0,Y-ve)):(Re=Math.min(0,ve-Y),Ae=0):(Re=Math.min(0,be-J),Ae=0);var Le=o.useRef(),ze=o.useState(),We=a(ze,2),Fe=We[0],Be=We[1];function _e(){Be(Date.now())}function Ve(){window.clearTimeout(Le.current)}function He(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=Te.get(e);if(t)if(L){var n=F;b?t.rightF+ve&&(n=t.right+t.width-ve):t.left<-F?n=-t.left:t.left+t.width>-F+ve&&(n=-(t.left+t.width-ve)),q(0),B(je(n)[0])}else{var o=H;t.top<-H?o=-t.top:t.top+t.height>-H+be&&(o=-(t.top+t.height-be)),B(0),q(je(o)[0])}}!function(e,t){var n=o.useState(),r=a(n,2),i=r[0],l=r[1],s=o.useState(0),c=a(s,2),u=c[0],d=c[1],p=o.useState(0),f=a(p,2),v=f[0],m=f[1],h=o.useState(),y=a(h,2),b=y[0],g=y[1],C=o.useRef(),x=o.useRef(0),E=o.useRef(!1),w=o.useRef(),M=o.useRef(null);M.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;l({x:n,y:o}),window.clearInterval(C.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],o=n.screenX,r=n.screenY;l({x:o,y:r});var a=o-i.x,s=r-i.y;t(a,s);var c=Date.now();d(c),m(c-u),g({x:a,y:s})}},onTouchEnd:function(){if(i&&(l(null),g(null),b)){var e=b.x/v,n=b.y/v,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;var a=e,s=n;C.current=window.setInterval((function(){Math.abs(a)<.01&&Math.abs(s)<.01?window.clearInterval(C.current):t(20*(a*=rt),20*(s*=rt))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,a=Math.abs(n),i=Math.abs(o);a===i?r="x"===w.current?n:o:a>i?(r=n,w.current="x"):(r=o,w.current="y");var l=Date.now();l-x.current>100&&(E.current=!1),(t(-r,-r)||E.current)&&(e.preventDefault(),E.current=!0),x.current=l}},o.useEffect((function(){function t(e){M.current.onTouchMove(e)}function n(e){M.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){M.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){M.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(S,(function(e,t){var n=!1;function o(e,t){e((function(e){var o=je(e+t),r=a(o,2),i=r[0],l=r[1];return n=l,i}))}if(L){if(ve>=Y)return n;o(B,e)}else{if(be>=J)return n;o(q,t)}return Ve(),_e(),n})),o.useEffect((function(){return Ve(),Fe&&(Le.current=window.setTimeout((function(){Be(0)}),100)),Ve}),[Fe]);var qe=function(e,t,n,r,a){var i,l,s,c=a.tabs,u=a.tabPosition,d=a.rtl;["top","bottom"].includes(u)?(i="width",l=d?"right":"left",s=Math.abs(t.left)):(i="height",l="top",s=-t.top);var p=t[i],f=n[i],v=r[i],m=p;return f+v>p&&(m=p-v),o.useMemo((function(){if(!c.length)return[0,0];for(var t=c.length,n=t,o=0;os+m){n=o-1;break}}for(var a=0,u=t-1;u>=0;u-=1)if((e.get(c[u].key)||ue)[l]0,ft=F+ve0?{marginLeft:g[0]/-2,marginRight:g[0]/-2}:{}),g[1]>0?{marginTop:g[1]/-2,marginBottom:g[1]/2}:{}),m),E=t({},y);return delete E.gutter,o.createElement(yt.Provider,{value:{gutter:g}},o.createElement("div",t({},E,{className:C,style:x,ref:r}),h))};return o.createElement(v,null,d)}));bt.displayName="Row";var gt=o.forwardRef((function(e,r){var a=function(a){var i,s=a.getPrefixCls,c=a.direction,u=e.prefixCls,d=e.span,p=e.order,f=e.offset,v=e.push,m=e.pull,h=e.className,y=e.children,b=e.flex,g=e.style,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r0?{paddingLeft:n[0]/2,paddingRight:n[0]/2}:{}),n[1]>0?{paddingTop:n[1]/2,paddingBottom:n[1]/2}:{}),a)),b&&(a.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(b)),o.createElement("div",t({},C,{style:a,className:w,ref:r}),y)}))};return o.createElement(v,null,a)}));gt.displayName="Col";var Ct=function(e){var r,a,i,s=o.useContext(j),c=s.getPrefixCls,u=s.direction,d=o.useContext(_),p=e.prefixCls,f=e.className,v=e.extra,m=e.headStyle,h=void 0===m?{}:m,y=e.bodyStyle,b=void 0===y?{}:y,g=e.title,C=e.loading,x=e.bordered,E=void 0===x||x,w=e.size,M=e.type,k=e.cover,O=e.actions,K=e.tabList,S=e.children,I=e.activeTabKey,N=e.defaultActiveTabKey,P=e.tabBarExtraContent,T=e.hoverable,R=e.tabProps,A=void 0===R?{}:R,L=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);ro.createElement(Ct,e({style:{width:"100%",overflowY:"auto"}},t));export{xt as B,gt as C,bt as R,U as a,Z as r}; diff --git a/assets/BasicLayoutCard.e981929f.js b/assets/BasicLayoutCard.e981929f.js new file mode 100644 index 0000000..7e1c7a1 --- /dev/null +++ b/assets/BasicLayoutCard.e981929f.js @@ -0,0 +1 @@ +import{r as a,w as qe,g as Vt,K as ee,_ as Ce,a as V,T as jt,b as F,c as A,d as b,e as w,C as ve,o as Te,A as yt,f as Fe,h as Ee,i as Wt,u as qt,E as Ft,M as Ut,j as Gt,R as ct,k as Ht,l as Yt,m as ut,n as Xt,t as Qt,S as Ct,p as Zt,q as Jt,s as Et}from"./index.30f89d03.js";var fe={adjustX:1,adjustY:1},me=[0,0],ea={topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-4],targetOffset:me},topCenter:{points:["bc","tc"],overflow:fe,offset:[0,-4],targetOffset:me},topRight:{points:["br","tr"],overflow:fe,offset:[0,-4],targetOffset:me},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,4],targetOffset:me},bottomCenter:{points:["tc","bc"],overflow:fe,offset:[0,4],targetOffset:me},bottomRight:{points:["tr","br"],overflow:fe,offset:[0,4],targetOffset:me}},ta=ee.ESC,aa=ee.TAB;function ra(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,l=a.exports.useRef(!1),s=function(){if(t&&r.current){var c,f,m,h;(c=r.current)===null||c===void 0||(f=c.triggerRef)===null||f===void 0||(m=f.current)===null||m===void 0||(h=m.focus)===null||h===void 0||h.call(m),n(!1),typeof o=="function"&&o(!1)}},u=function(){var c,f,m,h,E=Vt((c=r.current)===null||c===void 0||(f=c.popupRef)===null||f===void 0||(m=f.current)===null||m===void 0||(h=m.getElement)===null||h===void 0?void 0:h.call(m)),T=E[0];return T!=null&&T.focus?(T.focus(),l.current=!0,!0):!1},v=function(c){switch(c.keyCode){case ta:s();break;case aa:{var f=!1;l.current||(f=u()),f?c.preventDefault():s();break}}};a.exports.useEffect(function(){return t?(window.addEventListener("keydown",v),i&&qe(u,3),function(){window.removeEventListener("keydown",v),l.current=!1}):function(){l.current=!1}},[t])}var na=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function oa(e,t){var n=e.arrow,r=n===void 0?!1:n,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,l=e.transitionName,s=e.animation,u=e.align,v=e.placement,d=v===void 0?"bottomLeft":v,c=e.placements,f=c===void 0?ea:c,m=e.getPopupContainer,h=e.showAction,E=e.hideAction,T=e.overlayClassName,z=e.overlayStyle,S=e.visible,P=e.trigger,D=P===void 0?["hover"]:P,$=e.autoFocus,R=Ce(e,na),N=a.exports.useState(),B=V(N,2),y=B[0],k=B[1],p="visible"in e?S:y,O=a.exports.useRef(null);a.exports.useImperativeHandle(t,function(){return O.current}),ra({visible:p,setTriggerVisible:k,triggerRef:O,onVisibleChange:e.onVisibleChange,autoFocus:$});var C=function(){var g=e.overlay,_;return typeof g=="function"?_=g():_=g,_},M=function(g){var _=e.onOverlayClick;k(!1),_&&_(g)},G=function(g){var _=e.onVisibleChange;k(g),typeof _=="function"&&_(g)},K=function(){var g=C();return a.exports.createElement(a.exports.Fragment,null,r&&a.exports.createElement("div",{className:"".concat(i,"-arrow")}),g)},J=function(){var g=e.overlay;return typeof g=="function"?K:K()},U=function(){var g=e.minOverlayWidthMatchTrigger,_=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?g:!_},Q=function(){var g=e.openClassName;return g!==void 0?g:"".concat(i,"-open")},re=function(){var g=e.children,_=g.props?g.props:{},W=A(_.className,Q());return p&&g?a.exports.cloneElement(g,{className:W}):g},Y=E;return!Y&&D.indexOf("contextMenu")!==-1&&(Y=["click"]),a.exports.createElement(jt,F(F({builtinPlacements:f},R),{},{prefixCls:i,ref:O,popupClassName:A(T,b({},"".concat(i,"-show-arrow"),r)),popupStyle:z,action:D,showAction:h,hideAction:Y||[],popupPlacement:d,popupAlign:u,popupTransitionName:l,popupAnimation:s,popupVisible:p,stretch:U()?"minWidth":"",popup:J(),onPopupVisibleChange:G,onPopupClick:M,getPopupContainer:m}),re())}var ia=a.exports.forwardRef(oa),la=function(t){var n=t.prefixCls,r=t.className,o=t.style,i=t.size,l=t.shape,s=A(b(b({},"".concat(n,"-lg"),i==="large"),"".concat(n,"-sm"),i==="small")),u=A(b(b(b({},"".concat(n,"-circle"),l==="circle"),"".concat(n,"-square"),l==="square"),"".concat(n,"-round"),l==="round")),v=a.exports.useMemo(function(){return typeof i=="number"?{width:i,height:i,lineHeight:"".concat(i,"px")}:{}},[i]);return a.exports.createElement("span",{className:A(n,s,u,r),style:w(w({},v),o)})},Re=la,sa=function(t){var n=t.prefixCls,r=t.className,o=t.active,i=t.shape,l=i===void 0?"circle":i,s=t.size,u=s===void 0?"default":s,v=a.exports.useContext(ve),d=v.getPrefixCls,c=d("skeleton",n),f=Te(t,["prefixCls","className"]),m=A(c,"".concat(c,"-element"),b({},"".concat(c,"-active"),o),r);return a.exports.createElement("div",{className:m},a.exports.createElement(Re,w({prefixCls:"".concat(c,"-avatar"),shape:l,size:u},f)))},ca=sa,ua=function(t){var n=t.prefixCls,r=t.className,o=t.active,i=t.block,l=i===void 0?!1:i,s=t.size,u=s===void 0?"default":s,v=a.exports.useContext(ve),d=v.getPrefixCls,c=d("skeleton",n),f=Te(t,["prefixCls"]),m=A(c,"".concat(c,"-element"),b(b({},"".concat(c,"-active"),o),"".concat(c,"-block"),l),r);return a.exports.createElement("div",{className:m},a.exports.createElement(Re,w({prefixCls:"".concat(c,"-button"),size:u},f)))},va=ua,da={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},fa=da,ma=function(t,n){return a.exports.createElement(yt,F(F({},t),{},{ref:n,icon:fa}))},pa=a.exports.forwardRef(ma),ba=pa,xa=function(t){var n=t.prefixCls,r=t.className,o=t.style,i=t.active,l=t.children,s=a.exports.useContext(ve),u=s.getPrefixCls,v=u("skeleton",n),d=A(v,"".concat(v,"-element"),b({},"".concat(v,"-active"),i),r),c=l!=null?l:a.exports.createElement(ba,null);return a.exports.createElement("div",{className:d},a.exports.createElement("div",{className:A("".concat(v,"-image"),r),style:o},c))},ga=xa,ha="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",ya=function(t){var n=t.prefixCls,r=t.className,o=t.style,i=t.active,l=a.exports.useContext(ve),s=l.getPrefixCls,u=s("skeleton",n),v=A(u,"".concat(u,"-element"),b({},"".concat(u,"-active"),i),r);return a.exports.createElement("div",{className:v},a.exports.createElement("div",{className:A("".concat(u,"-image"),r),style:o},a.exports.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(u,"-image-svg")},a.exports.createElement("path",{d:ha,className:"".concat(u,"-image-path")}))))},Ca=ya,Ea=function(t){var n=t.prefixCls,r=t.className,o=t.active,i=t.block,l=t.size,s=l===void 0?"default":l,u=a.exports.useContext(ve),v=u.getPrefixCls,d=v("skeleton",n),c=Te(t,["prefixCls"]),f=A(d,"".concat(d,"-element"),b(b({},"".concat(d,"-active"),o),"".concat(d,"-block"),i),r);return a.exports.createElement("div",{className:f},a.exports.createElement(Re,w({prefixCls:"".concat(d,"-input"),size:s},c)))},Sa=Ea,Pa=function(t){var n=function(v){var d=t.width,c=t.rows,f=c===void 0?2:c;if(Array.isArray(d))return d[v];if(f-1===v)return d},r=t.prefixCls,o=t.className,i=t.style,l=t.rows,s=Fe(Array(l)).map(function(u,v){return a.exports.createElement("li",{key:v,style:{width:n(v)}})});return a.exports.createElement("ul",{className:A(r,o),style:i},s)},Na=Pa,ka=function(t){var n=t.prefixCls,r=t.className,o=t.width,i=t.style;return a.exports.createElement("h3",{className:A(n,r),style:w({width:o},i)})},wa=ka;function We(e){return e&&Ee(e)==="object"?e:{}}function Ta(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ra(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Oa(e,t){var n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}var be=function(t){var n=t.prefixCls,r=t.loading,o=t.className,i=t.style,l=t.children,s=t.avatar,u=s===void 0?!1:s,v=t.title,d=v===void 0?!0:v,c=t.paragraph,f=c===void 0?!0:c,m=t.active,h=t.round,E=a.exports.useContext(ve),T=E.getPrefixCls,z=E.direction,S=T("skeleton",n);if(r||!("loading"in t)){var P=!!u,D=!!d,$=!!f,R;if(P){var N=w(w({prefixCls:"".concat(S,"-avatar")},Ta(D,$)),We(u));R=a.exports.createElement("div",{className:"".concat(S,"-header")},a.exports.createElement(Re,w({},N)))}var B;if(D||$){var y;if(D){var k=w(w({prefixCls:"".concat(S,"-title")},Ra(P,$)),We(d));y=a.exports.createElement(wa,w({},k))}var p;if($){var O=w(w({prefixCls:"".concat(S,"-paragraph")},Oa(P,D)),We(f));p=a.exports.createElement(Na,w({},O))}B=a.exports.createElement("div",{className:"".concat(S,"-content")},y,p)}var C=A(S,b(b(b(b({},"".concat(S,"-with-avatar"),P),"".concat(S,"-active"),m),"".concat(S,"-rtl"),z==="rtl"),"".concat(S,"-round"),h),o);return a.exports.createElement("div",{className:C,style:i},R,B)}return typeof l!="undefined"?l:null};be.Button=va;be.Avatar=ca;be.Input=Sa;be.Image=Ca;be.Node=ga;var Ia=be,Ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Aa=Ma,za=function(t,n){return a.exports.createElement(yt,F(F({},t),{},{ref:n,icon:Aa}))},$a=a.exports.forwardRef(za),La=$a,Oe=a.exports.createContext(null),St=a.exports.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,l=e.active,s=e.tabKey,u=e.children;return a.exports.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!l,style:o,className:A(n,l&&"".concat(n,"-active"),r),ref:t},u)}),Ba=["key","forceRender","style","className"];function Da(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,l=a.exports.useContext(Oe),s=l.prefixCls,u=l.tabs,v=r.tabPane,d="".concat(s,"-tabpane");return a.exports.createElement("div",{className:A("".concat(s,"-content-holder"))},a.exports.createElement("div",{className:A("".concat(s,"-content"),"".concat(s,"-content-").concat(o),b({},"".concat(s,"-content-animated"),v))},u.map(function(c){var f=c.key,m=c.forceRender,h=c.style,E=c.className,T=Ce(c,Ba),z=f===n;return a.exports.createElement(Wt,w({key:f,visible:z,forceRender:m,removeOnLeave:!!i,leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),function(S,P){var D=S.style,$=S.className;return a.exports.createElement(St,w({},T,{prefixCls:d,id:t,tabKey:f,animated:v,active:z,style:F(F({},h),D),className:A(E,$),ref:P}))})})))}var vt={width:0,height:0,left:0,top:0};function Ka(e,t,n){return a.exports.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||vt,l=i.left+i.width,s=0;sM?(O=k,R.current="x"):(O=p,R.current="y"),t(-O,-O)&&y.preventDefault()}var B=a.exports.useRef(null);B.current={onTouchStart:P,onTouchMove:D,onTouchEnd:$,onWheel:N},a.exports.useEffect(function(){function y(C){B.current.onTouchStart(C)}function k(C){B.current.onTouchMove(C)}function p(C){B.current.onTouchEnd(C)}function O(C){B.current.onWheel(C)}return document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",p,{passive:!1}),e.current.addEventListener("touchstart",y,{passive:!1}),e.current.addEventListener("wheel",O),function(){document.removeEventListener("touchmove",k),document.removeEventListener("touchend",p)}},[])}function Pt(e){var t=a.exports.useState(0),n=V(t,2),r=n[0],o=n[1],i=a.exports.useRef(0),l=a.exports.useRef();return l.current=e,qt(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function ja(e){var t=a.exports.useRef([]),n=a.exports.useState({}),r=V(n,2),o=r[1],i=a.exports.useRef(typeof e=="function"?e():e),l=Pt(function(){var u=i.current;t.current.forEach(function(v){u=v(u)}),t.current=[],i.current=u,o({})});function s(u){t.current.push(u),l()}return[i.current,s]}var pt={width:0,height:0,left:0,top:0,right:0};function Wa(e,t,n,r,o,i,l){var s=l.tabs,u=l.tabPosition,v=l.rtl,d,c,f;return["top","bottom"].includes(u)?(d="width",c=v?"right":"left",f=Math.abs(n)):(d="height",c="top",f=-n),a.exports.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,h=m,E=0;Ef+t){h=E-1;break}}for(var z=0,S=m-1;S>=0;S-=1){var P=e.get(s[S].key)||pt;if(P[c]I?"left":"right"})}),C=V(O,2),M=C[0],G=C[1],K=dt(0,function(L,I){!p&&P&&P({direction:L>I?"top":"bottom"})}),J=V(K,2),U=J[0],Q=J[1],re=a.exports.useState([0,0]),Y=V(re,2),x=Y[0],g=Y[1],_=a.exports.useState([0,0]),W=V(_,2),te=W[0],ie=W[1],Z=a.exports.useState([0,0]),X=V(Z,2),ae=X[0],Ie=X[1],Me=a.exports.useState([0,0]),xe=V(Me,2),Ae=xe[0],ze=xe[1],j=ja(new Map),le=V(j,2),ge=le[0],Rt=le[1],Se=Ka(i,ge,te[0]),$e=ke(x,p),he=ke(te,p),Le=ke(ae,p),Ge=ke(Ae,p),He=$ede?de:L}var Ye=a.exports.useRef(),It=a.exports.useState(),Xe=V(It,2),Pe=Xe[0],Qe=Xe[1];function De(){Qe(Date.now())}function Ke(){window.clearTimeout(Ye.current)}Va(N,function(L,I){function q(H,ue){H(function(oe){var _t=Be(oe+ue);return _t})}return He?(p?q(G,L):q(Q,I),Ke(),De(),!0):!1}),a.exports.useEffect(function(){return Ke(),Pe&&(Ye.current=window.setTimeout(function(){Qe(0)},100)),Ke},[Pe]);var Mt=Wa(Se,ne,p?M:U,he,Le,Ge,F(F({},e),{},{tabs:i})),Ze=V(Mt,2),At=Ze[0],zt=Ze[1],Je=Gt(function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,I=Se.get(L)||{width:0,height:0,left:0,right:0,top:0};if(p){var q=M;c?I.rightM+ne&&(q=I.right+I.width-ne):I.left<-M?q=-I.left:I.left+I.width>-M+ne&&(q=-(I.left+I.width-ne)),Q(0),G(Be(q))}else{var H=U;I.top<-U?H=-I.top:I.top+I.height>-U+ne&&(H=-(I.top+I.height-ne)),G(0),Q(Be(H))}}),Ne={};E==="top"||E==="bottom"?Ne[c?"marginRight":"marginLeft"]=T:Ne.marginTop=T;var et=i.map(function(L,I){var q=L.key;return a.exports.createElement(Ha,{id:u,prefixCls:o,key:q,tab:L,style:I===0?void 0:Ne,closable:L.closable,editable:m,active:q===d,renderWrapper:z,removeAriaLabel:h==null?void 0:h.removeAriaLabel,onClick:function(ue){S(q,ue)},onFocus:function(){Je(q),De(),N.current&&(c||(N.current.scrollLeft=0),N.current.scrollTop=0)}})}),tt=function(){return Rt(function(){var I=new Map;return i.forEach(function(q){var H,ue=q.key,oe=(H=B.current)===null||H===void 0?void 0:H.querySelector('[data-node-key="'.concat(Nt(ue),'"]'));oe&&I.set(ue,{width:oe.offsetWidth,height:oe.offsetHeight,left:oe.offsetLeft,top:oe.offsetTop})}),I})};a.exports.useEffect(function(){tt()},[i.map(function(L){return L.key}).join("_")]);var _e=Pt(function(){var L=pe(D),I=pe($),q=pe(R);g([L[0]-I[0]-q[0],L[1]-I[1]-q[1]]);var H=pe(k);Ie(H);var ue=pe(y);ze(ue);var oe=pe(B);ie([oe[0]-H[0],oe[1]-H[1]]),tt()}),$t=i.slice(0,At),Lt=i.slice(zt+1),at=[].concat(Fe($t),Fe(Lt)),Bt=a.exports.useState(),rt=V(Bt,2),Dt=rt[0],Kt=rt[1],ce=Se.get(d),nt=a.exports.useRef();function ot(){qe.cancel(nt.current)}a.exports.useEffect(function(){var L={};return ce&&(p?(c?L.right=ce.right:L.left=ce.left,L.width=ce.width):(L.top=ce.top,L.height=ce.height)),ot(),nt.current=qe(function(){Kt(L)}),ot},[ce,p,c]),a.exports.useEffect(function(){Je()},[d,se,de,bt(ce),bt(Se),p]),a.exports.useEffect(function(){_e()},[c]);var it=!!at.length,ye="".concat(o,"-nav-wrap"),Ve,je,lt,st;return p?c?(je=M>0,Ve=M!==de):(Ve=M<0,je=M!==se):(lt=U<0,st=U!==se),a.exports.createElement(ct,{onResize:_e},a.exports.createElement("div",{ref:Ht(t,D),role:"tablist",className:A("".concat(o,"-nav"),l),style:s,onKeyDown:function(){De()}},a.exports.createElement(xt,{ref:$,position:"left",extra:f,prefixCls:o}),a.exports.createElement("div",{className:A(ye,(n={},b(n,"".concat(ye,"-ping-left"),Ve),b(n,"".concat(ye,"-ping-right"),je),b(n,"".concat(ye,"-ping-top"),lt),b(n,"".concat(ye,"-ping-bottom"),st),n)),ref:N},a.exports.createElement(ct,{onResize:_e},a.exports.createElement("div",{ref:B,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(U,"px)"),transition:Pe?"none":void 0}},et,a.exports.createElement(kt,{ref:k,prefixCls:o,locale:h,editable:m,style:F(F({},et.length===0?void 0:Ne),{},{visibility:it?"hidden":null})}),a.exports.createElement("div",{className:A("".concat(o,"-ink-bar"),b({},"".concat(o,"-ink-bar-animated"),v.inkBar)),style:Dt})))),a.exports.createElement(Ga,w({},e,{removeAriaLabel:h==null?void 0:h.removeAriaLabel,ref:y,prefixCls:o,tabs:at,className:!it&&Ot,tabMoving:!!Pe})),a.exports.createElement(xt,{ref:R,position:"right",extra:f,prefixCls:o})))}var gt=a.exports.forwardRef(Ya),Xa=["renderTabBar"],Qa=["label","key"];function Za(e){var t=e.renderTabBar,n=Ce(e,Xa),r=a.exports.useContext(Oe),o=r.tabs;if(t){var i=F(F({},n),{},{panes:o.map(function(l){var s=l.label,u=l.key,v=Ce(l,Qa);return a.exports.createElement(St,w({tab:s,key:u,tabKey:u},v))})});return t(i,gt)}return a.exports.createElement(gt,n)}function Ja(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=F({inkBar:!0},Ee(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var er=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],ht=0;function tr(e,t){var n,r=e.id,o=e.prefixCls,i=o===void 0?"rc-tabs":o,l=e.className,s=e.items,u=e.direction,v=e.activeKey,d=e.defaultActiveKey,c=e.editable,f=e.animated,m=e.tabPosition,h=m===void 0?"top":m,E=e.tabBarGutter,T=e.tabBarStyle,z=e.tabBarExtraContent,S=e.locale,P=e.moreIcon,D=e.moreTransitionName,$=e.destroyInactiveTabPane,R=e.renderTabBar,N=e.onChange,B=e.onTabClick,y=e.onTabScroll,k=e.getPopupContainer,p=e.popupClassName,O=Ce(e,er),C=a.exports.useMemo(function(){return(s||[]).filter(function(j){return j&&Ee(j)==="object"&&"key"in j})},[s]),M=u==="rtl",G=Ja(f),K=a.exports.useState(!1),J=V(K,2),U=J[0],Q=J[1];a.exports.useEffect(function(){Q(Yt())},[]);var re=ut(function(){var j;return(j=C[0])===null||j===void 0?void 0:j.key},{value:v,defaultValue:d}),Y=V(re,2),x=Y[0],g=Y[1],_=a.exports.useState(function(){return C.findIndex(function(j){return j.key===x})}),W=V(_,2),te=W[0],ie=W[1];a.exports.useEffect(function(){var j=C.findIndex(function(ge){return ge.key===x});if(j===-1){var le;j=Math.max(0,Math.min(te,C.length-1)),g((le=C[j])===null||le===void 0?void 0:le.key)}ie(j)},[C.map(function(j){return j.key}).join("_"),x,te]);var Z=ut(null,{value:r}),X=V(Z,2),ae=X[0],Ie=X[1];a.exports.useEffect(function(){r||(Ie("rc-tabs-".concat(ht)),ht+=1)},[]);function Me(j,le){B==null||B(j,le);var ge=j!==x;g(j),ge&&(N==null||N(j))}var xe={id:ae,activeKey:x,animated:G,tabPosition:h,rtl:M,mobile:U},Ae,ze=F(F({},xe),{},{editable:c,locale:S,moreIcon:P,moreTransitionName:D,tabBarGutter:E,onTabClick:Me,onTabScroll:y,extra:z,style:T,panes:null,getPopupContainer:k,popupClassName:p});return a.exports.createElement(Oe.Provider,{value:{tabs:C,prefixCls:i}},a.exports.createElement("div",w({ref:t,id:r,className:A(i,"".concat(i,"-").concat(h),(n={},b(n,"".concat(i,"-mobile"),U),b(n,"".concat(i,"-editable"),c),b(n,"".concat(i,"-rtl"),M),n),l)},O),Ae,a.exports.createElement(Za,w({},ze,{renderTabBar:R})),a.exports.createElement(Da,w({destroyInactiveTabPane:$},xe,{animated:G}))))}var ar=a.exports.forwardRef(tr),rr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function nr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=w({inkBar:!0},Ee(t)==="object"?t:{}),n.tabPane&&(n.tabPaneMotion=w(w({},rr),{motionName:Xt(e,"switch")})),n}var or=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oa.exports.createElement(yr,{style:{width:"100%",overflowY:"auto"},...e});export{Er as B}; diff --git a/assets/Home.01e26cde.js b/assets/Home.01e26cde.js deleted file mode 100644 index 24a0678..0000000 --- a/assets/Home.01e26cde.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e}from"./vendor.c381151c.js";import{B as t}from"./BasicLayoutCard.3bb4f24a.js";export default()=>e.exports.createElement(t,{title:"首页"},e.exports.createElement("h2",null,"这是为了让吾辈能够在一个地方修改油猴脚本所添加的网站")); diff --git a/assets/Home.20cd5aae.js b/assets/Home.20cd5aae.js deleted file mode 100644 index 3219f33..0000000 --- a/assets/Home.20cd5aae.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e}from"./vendor.b31c48e6.js";import{B as t}from"./BasicLayoutCard.32c662ea.js";import"./index.cc4d8800.js";export default()=>e.createElement(t,{title:"首页"},e.createElement("h2",null,"这是为了让吾辈能够在一个地方修改油猴脚本所添加的网站")); diff --git a/assets/Home.482f6e05.js b/assets/Home.482f6e05.js deleted file mode 100644 index 434e122..0000000 --- a/assets/Home.482f6e05.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e}from"./vendor.82731917.js";import{B as t}from"./BasicLayoutCard.6b71ac4c.js";import"./index.4f623665.js";export default()=>e.createElement(t,{title:"首页"},e.createElement("h2",null,"这是为了让吾辈能够在一个地方修改油猴脚本所添加的网站")); diff --git a/assets/Home.49ef1002.js b/assets/Home.49ef1002.js deleted file mode 100644 index b9964f2..0000000 --- a/assets/Home.49ef1002.js +++ /dev/null @@ -1 +0,0 @@ -import{r as u}from"./vendor.83739eef.js";import{B as e}from"./BasicLayoutCard.312e37e8.js";const a=()=>u.exports.createElement(e,{title:"\u9996\u9875"},u.exports.createElement("h2",null,"\u8FD9\u662F\u4E3A\u4E86\u8BA9\u543E\u8F88\u80FD\u591F\u5728\u4E00\u4E2A\u5730\u65B9\u4FEE\u6539\u6CB9\u7334\u811A\u672C\u6240\u6DFB\u52A0\u7684\u7F51\u7AD9"));export{a as default}; diff --git a/assets/Home.6aeb1bd9.js b/assets/Home.6aeb1bd9.js deleted file mode 100644 index fda4f2d..0000000 --- a/assets/Home.6aeb1bd9.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e}from"./vendor.b31c48e6.js";import{B as t}from"./BasicLayoutCard.2891e8c5.js";import"./index.6762f624.js";export default()=>e.createElement(t,{title:"首页"},e.createElement("h2",null,"这是为了让吾辈能够在一个地方修改油猴脚本所添加的网站")); diff --git a/assets/Home.b98dbd5b.js b/assets/Home.b98dbd5b.js new file mode 100644 index 0000000..5bcef97 --- /dev/null +++ b/assets/Home.b98dbd5b.js @@ -0,0 +1 @@ +import{r as u}from"./index.30f89d03.js";import{B as e}from"./BasicLayoutCard.e981929f.js";const a=()=>u.exports.createElement(e,{title:"\u9996\u9875"},u.exports.createElement("h2",null,"\u8FD9\u662F\u4E3A\u4E86\u8BA9\u543E\u8F88\u80FD\u591F\u5728\u4E00\u4E2A\u5730\u65B9\u4FEE\u6539\u6CB9\u7334\u811A\u672C\u6240\u6DFB\u52A0\u7684\u7F51\u7AD9"));export{a as default}; diff --git a/assets/UnblockWebRestrictionsConfig.0310fc1d.js b/assets/UnblockWebRestrictionsConfig.0310fc1d.js deleted file mode 100644 index ae2624e..0000000 --- a/assets/UnblockWebRestrictionsConfig.0310fc1d.js +++ /dev/null @@ -1 +0,0 @@ -import{C as e,e as t,a2 as n,o as r,K as a,a3 as o,_ as i,x as l,E as c,a as s,a4 as u,a5 as d,a6 as p,a7 as f,z as m,b as h,F as v,a8 as g,a9 as y,T as b,Y as E,aa as w,p as M,q as x,r as k,v as C,h as _,j as S,k as O,A as N,l as F,ab as P,ac as j,Z as I,H as A,I as z,L as D,J as L,c as R,G as T,f as B,a1 as V,M as W,s as U,$ as K,g as H,O as q,ad as G,ae as $,af as J,ag as Y,X as Z,N as X,ah as Q,ai as ee,d as te,aj as ne,ak as re,al as ae,am as oe,an as ie,ao as le,ap as ce,aq as se,ar as ue,as as de,a0 as pe,w as fe,at as me,au as he,W as ve,av as ge,aw as ye,i as be,ax as Ee,ay as we,az as Me,D as xe,aA as ke,aB as Ce,aC as _e,aD as Se,aE as Oe}from"./vendor.b31c48e6.js";import{r as Ne,C as Fe,R as Pe,a as je,B as Ie}from"./BasicLayoutCard.32c662ea.js";import{T as Ae,L as ze,R as De}from"./index.cc4d8800.js";function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t