@para-ui/core 4.0.52 → 4.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/Button/index.js +2 -2
  2. package/Cascader/Cascader.d.ts +3 -0
  3. package/Cascader/index.js +11 -8
  4. package/ComboSelect/index.js +5 -5
  5. package/CycleSelector/index.js +2 -2
  6. package/DatePicker/index.js +2 -2
  7. package/DynamicMultiBox/index.js +7 -7
  8. package/DynamicMultiBox/interface.d.ts +1 -1
  9. package/FieldForm/ErrorList.d.ts +16 -0
  10. package/FieldForm/FieldFormItem/ItemHolder.d.ts +18 -0
  11. package/FieldForm/FieldFormItem/MemoInput.d.ts +14 -0
  12. package/FieldForm/FieldFormItem/StatusProvider.d.ts +20 -0
  13. package/FieldForm/FieldFormItem/index.d.ts +58 -0
  14. package/FieldForm/Form.d.ts +36 -0
  15. package/FieldForm/FormItemInput.d.ts +21 -0
  16. package/FieldForm/FormItemLabel.d.ts +21 -0
  17. package/FieldForm/FormList.d.ts +23 -0
  18. package/FieldForm/context.d.ts +33 -0
  19. package/FieldForm/hooks/useChildren.d.ts +2 -0
  20. package/FieldForm/hooks/useDebounce.d.ts +1 -0
  21. package/FieldForm/hooks/useForm.d.ts +6 -0
  22. package/FieldForm/hooks/useFormInstance.d.ts +2 -0
  23. package/FieldForm/hooks/useFormItemStatus.d.ts +9 -0
  24. package/FieldForm/hooks/useFrameState.d.ts +3 -0
  25. package/FieldForm/hooks/useItemRef.d.ts +3 -0
  26. package/FieldForm/index.d.ts +30 -0
  27. package/FieldForm/index.js +5326 -0
  28. package/FieldForm/interface.d.ts +2 -0
  29. package/FieldForm/lang/en_US.d.ts +51 -0
  30. package/FieldForm/lang/index.d.ts +105 -0
  31. package/FieldForm/lang/zh_CN.d.ts +51 -0
  32. package/FieldForm/util.d.ts +21 -0
  33. package/Form/index.js +6 -6
  34. package/FormItem/index.js +6 -6
  35. package/FunctionModal/index.js +2 -2
  36. package/Image/index.js +5 -55
  37. package/PopMenu/index.js +2 -2
  38. package/README.md +15 -0
  39. package/Result/index.js +2 -2
  40. package/Selector/index.js +1 -1
  41. package/SelectorPicker/index.js +1 -1
  42. package/Switch/index.d.ts +4 -0
  43. package/Switch/index.js +3 -2
  44. package/Table/index.js +433 -498
  45. package/Tag/index.js +2 -2
  46. package/TextEditor/index.d.ts +2 -0
  47. package/TextEditor/index.js +27 -6
  48. package/TimePicker/index.js +2 -2
  49. package/Tooltip/index.js +26 -27
  50. package/Transfer/index.d.ts +1 -0
  51. package/Transfer/index.js +120 -119
  52. package/Tree/index.js +4 -4
  53. package/Upload/index.js +9 -7
  54. package/_verture/{Portal-f9bedb3a.js → Portal-502bb85e.js} +29 -481
  55. package/_verture/{index-5b0d1c7d.js → index-0a300edb.js} +387 -700
  56. package/_verture/index-1856bbeb.js +480 -0
  57. package/_verture/{index-ba8815d0.js → index-320d67c4.js} +2 -2
  58. package/_verture/{index-887e5e11.js → index-43c653bb.js} +1 -1
  59. package/_verture/isEqual-30b6f859.js +56 -0
  60. package/_verture/{slicedToArray-75fa4188.js → slicedToArray-61604a6c.js} +1 -1
  61. package/_verture/{toConsumableArray-c7a8028f.js → toConsumableArray-599cd94a.js} +1 -1
  62. package/_verture/useState-f2419d68.js +353 -0
  63. package/index.d.ts +2 -0
  64. package/index.js +15 -11
  65. package/locale/en-US.d.ts +46 -0
  66. package/locale/index.d.ts +92 -0
  67. package/locale/index.js +92 -0
  68. package/locale/zh-CN.d.ts +46 -0
  69. package/package.json +3 -1
  70. package/umd/Anchor.js +5 -5
  71. package/umd/Argv.js +5 -5
  72. package/umd/AutoBox.js +5 -5
  73. package/umd/AutoButton.js +6 -6
  74. package/umd/AutoTips.js +5 -5
  75. package/umd/Breadcrumbs.js +4 -4
  76. package/umd/Button.js +5 -5
  77. package/umd/ButtonGroup.js +6 -6
  78. package/umd/Cascader.js +5 -5
  79. package/umd/Checkbox.js +4 -4
  80. package/umd/CheckboxGroup.js +4 -4
  81. package/umd/Collapse.js +1 -1
  82. package/umd/ComboSelect.js +5 -5
  83. package/umd/CopyText.js +5 -5
  84. package/umd/CycleSelector.js +5 -5
  85. package/umd/DatePicker.js +5 -5
  86. package/umd/Descriptions.js +6 -6
  87. package/umd/Desktop.js +5 -5
  88. package/umd/Drawer.js +5 -5
  89. package/umd/Dropdown.js +4 -4
  90. package/umd/DynamicMultiBox.js +5 -5
  91. package/umd/FieldForm.js +43 -0
  92. package/umd/Form.js +5 -5
  93. package/umd/FormItem.js +5 -5
  94. package/umd/FunctionModal.js +5 -5
  95. package/umd/Help.js +5 -5
  96. package/umd/Image.js +3 -3
  97. package/umd/InputCode.js +5 -5
  98. package/umd/InputLang.js +5 -5
  99. package/umd/InputNumber.js +4 -4
  100. package/umd/Label.js +4 -4
  101. package/umd/Menu.js +4 -4
  102. package/umd/Modal.js +5 -5
  103. package/umd/MultiBox.js +6 -6
  104. package/umd/Notification.js +3 -3
  105. package/umd/OperateBtn.js +5 -5
  106. package/umd/PageHeader.js +5 -5
  107. package/umd/Pagination.js +5 -5
  108. package/umd/PopConfirm.js +5 -5
  109. package/umd/PopMenu.js +5 -5
  110. package/umd/Popover.js +5 -5
  111. package/umd/QuickReply.js +5 -5
  112. package/umd/Radio.js +4 -4
  113. package/umd/RadioGroup.js +4 -4
  114. package/umd/RangeInput.js +5 -5
  115. package/umd/Result.js +4 -4
  116. package/umd/Search.js +5 -5
  117. package/umd/Select.js +5 -5
  118. package/umd/SelectInput.js +5 -5
  119. package/umd/Selector.js +5 -5
  120. package/umd/SelectorPicker.js +5 -5
  121. package/umd/SingleBox.js +5 -5
  122. package/umd/Slider.js +4 -4
  123. package/umd/Stepper.js +4 -4
  124. package/umd/Switch.js +4 -4
  125. package/umd/Table.js +6 -6
  126. package/umd/Tabs.js +4 -4
  127. package/umd/Tag.js +5 -5
  128. package/umd/TextEditor.js +6 -6
  129. package/umd/TextField.js +5 -5
  130. package/umd/TimePicker.js +5 -5
  131. package/umd/Title.js +3 -3
  132. package/umd/ToggleButton.js +5 -5
  133. package/umd/Tooltip.js +4 -4
  134. package/umd/Transfer.js +7 -7
  135. package/umd/Tree.js +3 -3
  136. package/umd/Upload.js +5 -5
  137. package/umd/locale.js +1 -1
  138. /package/_verture/{modalContext-f68b51a2.js → modalContext-6ac2e323.js} +0 -0
@@ -17,8 +17,7 @@ PERFORMANCE OF THIS SOFTWARE.
17
17
  object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
- */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))n.call(i,s)&&(c[s]=i[s]);if(t){a=t(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(c[a[l]]=i[a[l]])}}return c}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(64467),o=n(89379),i=n(3453),a=n(82284),c=n(39155),u=n(66588),s=n(8719),l=n(46942),p=n.n(l),f=n(80371),d=n(25931),m=n(25318),v=n(72137),h=n(58515);const b=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var l=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,b=e.removeOnLeave,g=void 0===b||b,y=e.forceRender,w=e.children,A=e.motionName,x=e.leavedClassName,O=e.eventProps,E=n(e),k=(0,c.useRef)(),S=(0,c.useRef)();var j=(0,m.A)(E,l,(function(){try{return(0,u.A)(k.current||S.current)}catch(e){return null}}),e),P=(0,i.A)(j,4),C=P[0],T=P[1],M=P[2],_=P[3],N=c.useRef(_);_&&(N.current=!0);var D=(0,c.useRef)(t);D.current=t;var R,L=c.useCallback((function(e){k.current=e,(0,s.Xf)(D.current,e)}),[]),z=(0,o.A)((0,o.A)({},O),{},{visible:l});if(w)if(C!==d.SF&&n(e)){var H,B;T===d.px?B="prepare":(0,h.$m)(T)?B="active":T===d.Mv&&(B="start"),R=w((0,o.A)((0,o.A)({},z),{},{className:p()((0,f.by)(A,C),(H={},(0,r.A)(H,(0,f.by)(A,"".concat(C,"-").concat(B)),B),(0,r.A)(H,A,"string"==typeof A),H)),style:M}),L)}else R=_?w((0,o.A)({},z),L):!g&&N.current?w((0,o.A)((0,o.A)({},z),{},{className:x}),L):y?w((0,o.A)((0,o.A)({},z),{},{style:{display:"none"}}),L):null;else R=null;return c.createElement(v.A,{ref:S},R)}));return l.displayName="CSSMotion",l}(f.J1)},97333:(e,t,n)=>{"use strict";var r=n(58168),o=n(80045),i=n(89379),a=n(23029),c=n(92901),u=n(85501),s=n(29426),l=n(39155),p=n(44785),f=n(80371),d=n(29710),m=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(e){(0,u.A)(p,e);var n=(0,s.A)(p);function p(){var e;return(0,a.A)(this,p),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:d.e8})}))}}))},e}return(0,c.A)(p,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,c=i.children,u=i.onVisibleChanged,s=(0,o.A)(i,["component","children","onVisibleChanged"]),p=a||l.Fragment,f={};return m.forEach((function(e){f[e]=s[e],delete s[e]})),delete s.keys,l.createElement(p,s,n.map((function(n){var i=n.status,a=(0,o.A)(n,["status"]),s=i===d.bK||i===d.xI;return l.createElement(t,(0,r.A)({},f,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(t){null==u||u(t,{key:a.key}),t||e.removeKey(a.key)}}),c)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.e8||e.status!==d.au}))}}}]),p}(l.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(23029),o=n(92901),i=n(85501),a=n(29426),c=n(39155);const u=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(80371);const i=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var i=r.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(o.m8,i),e.removeEventListener(o.Vc,i))}return r.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(o.m8,i),e.addEventListener(o.Vc,i),t.current=e)},a]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(25371);const i=function(){var e=r.useRef(null);function t(){o.A.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,o.A)((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),i=(0,r.A)(n,2),a=i[0],c=i[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||c(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(89379),o=n(64467),i=n(3453),a=n(39155),c=n(25931),u=n(92659),s=n(43982),l=n(58515),p=n(85849);function f(e,t,n,f){var d=f.motionEnter,m=void 0===d||d,v=f.motionAppear,h=void 0===v||v,b=f.motionLeave,g=void 0===b||b,y=f.motionDeadline,w=f.motionLeaveImmediately,A=f.onAppearPrepare,x=f.onEnterPrepare,O=f.onLeavePrepare,E=f.onAppearStart,k=f.onEnterStart,S=f.onLeaveStart,j=f.onAppearActive,P=f.onEnterActive,C=f.onLeaveActive,T=f.onAppearEnd,M=f.onEnterEnd,_=f.onLeaveEnd,N=f.onVisibleChanged,D=(0,u.A)(),R=(0,i.A)(D,2),L=R[0],z=R[1],H=(0,u.A)(c.SF),B=(0,i.A)(H,2),V=B[0],I=B[1],F=(0,u.A)(null),W=(0,i.A)(F,2),Y=W[0],X=W[1],U=(0,a.useRef)(!1),q=(0,a.useRef)(null),$=(0,a.useRef)(!1),G=(0,a.useRef)(null);function Z(){return n()||G.current}var K=(0,a.useRef)(!1);function J(e){var t,n=Z();e&&!e.deadline&&e.target!==n||(V===c.Tv&&K.current?t=null==T?void 0:T(n,e):V===c.Wd&&K.current?t=null==M?void 0:M(n,e):V===c.dp&&K.current&&(t=null==_?void 0:_(n,e)),!1===t||$.current||(I(c.SF),X(null)))}var Q=(0,p.A)(J),ee=(0,i.A)(Q,1)[0],te=a.useMemo((function(){var e,t,n;switch(V){case"appear":return e={},(0,o.A)(e,c.px,A),(0,o.A)(e,c.Mv,E),(0,o.A)(e,c.m7,j),e;case"enter":return t={},(0,o.A)(t,c.px,x),(0,o.A)(t,c.Mv,k),(0,o.A)(t,c.m7,P),t;case"leave":return n={},(0,o.A)(n,c.px,O),(0,o.A)(n,c.Mv,S),(0,o.A)(n,c.m7,C),n;default:return{}}}),[V]),ne=(0,l.Ay)(V,(function(e){if(e===c.px){var t=te[c.px];return t?t(Z()):l.es}var n;ie in te&&X((null===(n=te[ie])||void 0===n?void 0:n.call(te,Z(),null))||null);return ie===c.m7&&(ee(Z()),y>0&&(clearTimeout(q.current),q.current=setTimeout((function(){J({deadline:!0})}),y))),l.qB})),re=(0,i.A)(ne,2),oe=re[0],ie=re[1],ae=(0,l.$m)(ie);K.current=ae,(0,s.A)((function(){z(t);var n,r=U.current;(U.current=!0,e)&&(!r&&t&&h&&(n=c.Tv),r&&t&&m&&(n=c.Wd),(r&&!t&&g||!r&&w&&!t&&g)&&(n=c.dp),n&&(I(n),oe()))}),[t]),(0,a.useEffect)((function(){(V===c.Tv&&!h||V===c.Wd&&!m||V===c.dp&&!g)&&I(c.SF)}),[h,m,g]),(0,a.useEffect)((function(){return function(){clearTimeout(q.current),$.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&V===c.SF&&(null==N||N(L))}),[L,V]);var ce=Y;return te[c.px]&&ie===c.Mv&&(ce=(0,r.A)({transition:"none"},ce)),[V,ie,ce,null!=L?L:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>p,Ay:()=>f,es:()=>s,qB:()=>l});var r=n(3453),o=n(39155),i=n(25931),a=n(43982),c=n(84560),u=[i.px,i.Mv,i.m7,i.Hs],s=!1,l=!0;function p(e){return e===i.m7||e===i.Hs}const f=function(e,t){var n=o.useState(i.cE),l=(0,r.A)(n,2),p=l[0],f=l[1],d=(0,c.A)(),m=(0,r.A)(d,2),v=m[0],h=m[1];return(0,a.A)((function(){if(p!==i.cE&&p!==i.Hs){var e=u.indexOf(p),n=u[e+1],r=t(p);r===s?f(n):v((function(e){function t(){e.isCanceled()||f(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,p]),o.useEffect((function(){return function(){h()}}),[]),[function(){f(i.px)},p]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>p,Mv:()=>s,SF:()=>r,Tv:()=>o,Wd:()=>i,cE:()=>c,dp:()=>a,m7:()=>l,px:()=>u});var r="none",o="appear",i="enter",a="leave",c="none",u="prepare",s="start",l="active",p="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>l,au:()=>c,bK:()=>i,e8:()=>u,xI:()=>a,y$:()=>p});var r=n(89379),o=n(82284),i="add",a="keep",c="remove",u="removed";function s(e){var t;return t=e&&"object"===(0,o.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,u=t.length,s=l(e),p=l(t);s.forEach((function(e){for(var t=!1,s=o;s<u;s+=1){var l=p[s];if(l.key===e.key){o<s&&(n=n.concat(p.slice(o,s).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))),o=s),n.push((0,r.A)((0,r.A)({},l),{},{status:a})),o+=1,t=!0;break}}t||n.push((0,r.A)((0,r.A)({},e),{},{status:c}))})),o<u&&(n=n.concat(p.slice(o).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))));var f={};return n.forEach((function(e){var t=e.key;f[t]=(f[t]||0)+1})),Object.keys(f).filter((function(e){return f[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==c}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>h,Vc:()=>b,by:()=>y,m8:()=>g});var r=n(82284),o=n(20998);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,c,u,s=(a=(0,o.A)(),c="undefined"!=typeof window?window:{},u={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in c||delete u.animationend.animation,"TransitionEvent"in c||delete u.transitionend.transition),u),l={};if((0,o.A)()){var p=document.createElement("div");l=p.style}var f={};function d(e){if(f[e])return f[e];var t=s[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in l)return f[e]=t[i],f[e]}return""}var m=d("animationend"),v=d("transitionend"),h=!(!m||!v),b=m||"animationend",g=v||"transitionend";function y(e,t){return e?"object"===(0,r.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34307:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(82284),i=n(89379),a=n(80045),c=n(39155),u=n(1748),s={adjustX:1,adjustY:1},l=[0,0],p={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:l}};const f=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)};var d=function(e,t){var n=e.overlayClassName,s=e.trigger,l=void 0===s?["hover"]:s,d=e.mouseEnterDelay,m=void 0===d?0:d,v=e.mouseLeaveDelay,h=void 0===v?.1:v,b=e.overlayStyle,g=e.prefixCls,y=void 0===g?"rc-tooltip":g,w=e.children,A=e.onVisibleChange,x=e.afterVisibleChange,O=e.transitionName,E=e.animation,k=e.motion,S=e.placement,j=void 0===S?"right":S,P=e.align,C=void 0===P?{}:P,T=e.destroyTooltipOnHide,M=void 0!==T&&T,_=e.defaultVisible,N=e.getTooltipContainer,D=e.overlayInnerStyle,R=(0,a.A)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return L.current}));var z=(0,i.A)({},R);"visible"in e&&(z.popupVisible=e.visible);var H=!1,B=!1;if("boolean"==typeof M)H=M;else if(M&&"object"===(0,o.A)(M)){var V=M.keepParent;H=!0===V,B=!1===V}return c.createElement(u.A,(0,r.A)({popupClassName:n,prefixCls:y,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[c.createElement("div",{className:"".concat(y,"-arrow"),key:"arrow"},n),c.createElement(f,{key:"content",prefixCls:y,id:o,overlay:r,overlayInnerStyle:D})]},action:l,builtinPlacements:p,popupPlacement:j,ref:L,popupAlign:C,getPopupContainer:N,onPopupVisibleChange:A,afterPopupVisibleChange:x,popupTransitionName:O,popupAnimation:E,popupMotion:k,defaultPopupVisible:_,destroyPopupOnHide:H,autoDestroy:B,mouseLeaveDelay:h,popupStyle:b,mouseEnterDelay:m},z),w)};const m=(0,c.forwardRef)(d)},94934:(e,t)=>{"use strict";t.DD=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};t.DD=o},1748:(e,t,n)=>{"use strict";n.d(t,{A:()=>ut});var r=n(89379),o=n(58168),i=n(23029),a=n(92901),c=n(9417),u=n(85501),s=n(29426),l=n(64467),p=n(39155),f=n.n(p),d=n(69514),m=n.n(d),v=n(25371),h=n(54808),b=n(66588),g=n(8719),y=n(69916),w=n(88822),A=n(46942),x=n.n(A);function O(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var E=n(3453),k=n(80045),S=n(68430),j=n(30156);function P(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function C(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,c=e.maskMotion,u=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var l={};return(c||s||u)&&(l=(0,r.A)({motionAppear:!0},P({motion:c,prefixCls:t,transitionName:s,animation:u}))),p.createElement(j.A,(0,o.A)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:i},className:x()("".concat(t,"-mask"),n)})}))}var T,M=n(82284);function _(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function z(){if(void 0!==T)return T;T="";var e=document.createElement("p").style;for(var t in L)t+"Transform"in e&&(T=t);return T}function H(){return z()?"".concat(z(),"TransitionProperty"):"transitionProperty"}function B(){return z()?"".concat(z(),"Transform"):"transform"}function V(e,t){var n=H();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function I(e,t){var n=B();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var F,W=/matrix\((.*)\)/,Y=/matrix3d\((.*)\)/;function X(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function U(e,t,n){var r=n;if("object"!==D(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):F(e,t);for(var o in t)t.hasOwnProperty(o)&&U(e,o,t[o])}function q(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function $(e){return q(e)}function G(e){return q(e,!0)}function Z(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=$(r),t.top+=G(r),t}function K(e){return null!=e&&e==e.window}function J(e){return K(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Q=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",re="left";function oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===U(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=oe("left",n),a=oe("top",n),c=ie(i),u=ie(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,l="",p=Z(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[H()]||"",V(e,"none")),"left"in t&&(e.style[c]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[u]="",e.style[a]="".concat(o,"px")),X(e);var f=Z(e),d={};for(var m in t)if(t.hasOwnProperty(m)){var v=oe(m,n),h="left"===m?r:o,b=p[m]-f[m];d[v]=v===m?h+b:h-b}U(e,d),X(e),("left"in t||"top"in t)&&V(e,l);var g={};for(var y in t)if(t.hasOwnProperty(y)){var w=oe(y,n),A=t[y]-p[y];g[w]=y===w?d[w]+A:d[w]-A}U(e,g)}function ce(e,t){var n=Z(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(B());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(B());if(r&&"none"!==r){var o,i=r.match(W);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,I(e,"matrix(".concat(o.join(","),")"))):((o=r.match(Y)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,I(e,"matrix3d(".concat(o.join(","),")")))}else I(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function ue(e,t){for(var n=0;n<e.length;n++)t(e[n])}function se(e){return"border-box"===F(e,"boxSizing")}"undefined"!=typeof window&&(F=window.getComputedStyle?function(e,t,n){var r=n,o="",i=J(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[te]&&e[te][t];if(Q.test(n)&&!ee.test(t)){var r=e.style,o=r[re],i=e[ne][re];e[ne][re]=e[te][re],r[re]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[re]=o,e[ne][re]=i}return""===n?"auto":n});var le=["margin","border","padding"],pe=-1,fe=2,de=1;function me(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var c=void 0;c="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(F(e,c))||0}return a}var ve={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function he(e,t,n){var r=n;if(K(e))return"width"===t?ve.viewportWidth(e):ve.viewportHeight(e);if(9===e.nodeType)return"width"===t?ve.docWidth(e):ve.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=se(e),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=F(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=Math.floor(parseFloat(c))||0),void 0===r&&(r=a?de:pe);var u=void 0!==i||a,s=i||c;return r===pe?u?s-me(e,["border","padding"],o):c:u?r===de?s:s+(r===fe?-me(e,["border"],o):me(e,["margin"],o)):c+me(e,le.slice(r),o)}ue(["Width","Height"],(function(e){ve["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ve["viewport".concat(e)](n))},ve["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var be={position:"absolute",visibility:"hidden",display:"block"};function ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=he.apply(void 0,t):function(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}(o,be,(function(){r=he.apply(void 0,t)})),r}function ye(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}ue(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ve["outer".concat(t)]=function(t,n){return t&&ge(t,e,n?0:de)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ve[e]=function(t,r){var o=r;return void 0!==o?t?(se(t)&&(o+=me(t,["padding","border"],n)),U(t,e,o)):void 0:t&&ge(t,e,pe)}}));var we={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return Z(e);!function(e,t,n){if(n.ignoreShake){var r=Z(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),c=t.top.toFixed(0);if(o===a&&i===c)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&B()in document.body.style?ce(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:K,each:ue,css:U,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ye,getWindowScrollLeft:function(e){return $(e)},getWindowScrollTop:function(e){return G(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)we.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ye(we,ve);var Ae=we.getParent;function xe(e){if(we.isWindow(e)||9===e.nodeType)return null;var t,n=we.getDocument(e).body,r=we.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:Ae(e);for(t=Ae(e);t&&t!==n&&9!==t.nodeType;t=Ae(t))if("static"!==(r=we.css(t,"position")))return t;return null}var Oe=we.getParent;function Ee(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=xe(e),o=we.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,c=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===c||"visible"===we.css(r,"overflow")){if(r===a||r===c)break}else{var u=we.offset(r);u.left+=r.clientLeft,u.top+=r.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+r.clientWidth),n.bottom=Math.min(n.bottom,u.top+r.clientHeight),n.left=Math.max(n.left,u.left)}r=xe(r)}var s=null;we.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===we.css(e,"position")&&(e.style.position="fixed"));var l=we.getWindowScrollLeft(i),p=we.getWindowScrollTop(i),f=we.viewportWidth(i),d=we.viewportHeight(i),m=c.scrollWidth,v=c.scrollHeight,h=window.getComputedStyle(a);if("hidden"===h.overflowX&&(m=i.innerWidth),"hidden"===h.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(we.isWindow(e)||9===e.nodeType)return!1;var t=we.getDocument(e),n=t.body,r=null;for(r=Oe(e);r&&r!==n&&r!==t;r=Oe(r))if("fixed"===we.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,p),n.right=Math.min(n.right,l+f),n.bottom=Math.min(n.bottom,p+d);else{var b=Math.max(m,l+f);n.right=Math.min(n.right,b);var g=Math.max(v,p+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ke(e){var t,n,r;if(we.isWindow(e)||9===e.nodeType){var o=we.getWindow(e);t={left:we.getWindowScrollLeft(o),top:we.getWindowScrollTop(o)},n=we.viewportWidth(o),r=we.viewportHeight(o)}else t=we.offset(e),n=we.outerWidth(e),r=we.outerHeight(e);return t.width=n,t.height=r,t}function Se(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:c}}function je(e,t,n,r,o){var i=Se(t,n[1]),a=Se(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+r[0]-o[0]),top:Math.round(e.top-c[1]+r[1]-o[1])}}function Pe(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Ce(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Te(e,t,n){var r=[];return we.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Me(e,t){return e[t]=-e[t],e}function _e(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ne(e,t){e[0]=_e(e[0],t.width),e[1]=_e(e[1],t.height)}function De(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,p=Ee(u,!(!(c=c||{})||!c.alwaysByViewport)),f=ke(u);Ne(i,f),Ne(a,t);var d=je(f,t,o,i,a),m=we.merge(f,d);if(p&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&Pe(d,f,p)){var v=Te(o,/[lr]/gi,{l:"r",r:"l"}),h=Me(i,0),b=Me(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(je(f,t,v,h,b),f,p)||(l=1,o=v,i=h,a=b)}if(c.adjustY&&Ce(d,f,p)){var g=Te(o,/[tb]/gi,{t:"b",b:"t"}),y=Me(i,1),w=Me(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(je(f,t,g,y,w),f,p)||(l=1,o=g,i=y,a=w)}l&&(d=je(f,t,o,i,a),we.mix(m,d));var A=Pe(d,f,p),x=Ce(d,f,p);if(A||x){var O=o;A&&(O=Te(o,/[lr]/gi,{l:"r",r:"l"})),x&&(O=Te(o,/[tb]/gi,{t:"b",b:"t"})),o=O,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=c.adjustX&&A,s.adjustY=c.adjustY&&x,(s.adjustX||s.adjustY)&&(m=function(e,t,n,r){var o=we.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),we.mix(o,i)}(d,f,p,s))}return m.width!==f.width&&we.css(u,"width",we.width(u)+m.width-f.width),m.height!==f.height&&we.css(u,"height",we.height(u)+m.height-f.height),we.offset(u,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function Re(e,t,n){var r=n.target||t,o=ke(r),i=!function(e,t){var n=Ee(e,t),r=ke(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return De(e,o,n,i)}Re.__getOffsetParent=xe,Re.__getVisibleRectForElement=Ee;var Le=n(43210),ze=n(42467),He=n(30981);var Be=n(43591);function Ve(e,t){var n=null,r=null;var o=new Be.default((function(e){var o=(0,E.A)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,c=i.height,u=Math.floor(a),s=Math.floor(c);n===u&&r===s||Promise.resolve().then((function(){t({width:u,height:s})})),n=u,r=s}}));return e&&o.observe(e),function(){o.disconnect()}}function Ie(e){return"function"!=typeof e?null:e()}function Fe(e){return"object"===(0,M.A)(e)&&e?e:null}var We=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,u=e.monitorBufferTime,s=void 0===u?0:u,l=f().useRef({}),p=f().useRef(),d=f().Children.only(n),m=f().useRef({});m.current.disabled=r,m.current.target=o,m.current.align=i,m.current.onAlign=a;var v=function(e,t){var n=f().useRef(!1),r=f().useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=m.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=p.current;if(!t&&n&&i){var a,c=Ie(n),u=Fe(n);l.current.element=c,l.current.point=u,l.current.align=r;var s=document.activeElement;return c&&(0,ze.A)(c)?a=Re(i,c,r):u&&(a=function(e,t,n){var r,o,i=we.getDocument(e),a=i.defaultView||i.parentWindow,c=we.getWindowScrollLeft(a),u=we.getWindowScrollTop(a),s=we.viewportWidth(a),l=we.viewportHeight(a),p={left:r="pageX"in t?t.pageX:c+t.clientX,top:o="pageY"in t?t.pageY:u+t.clientY,width:0,height:0},f=r>=0&&r<=c+s&&o>=0&&o<=u+l,d=[n.points[0],"cc"];return De(e,p,N(N({},n),{},{points:d}),f)}(i,u,r)),function(e,t){e!==document.activeElement&&(0,h.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,i),o&&a&&o(i,a),!0}return!1}),s),b=(0,E.A)(v,2),w=b[0],A=b[1],x=f().useState(),O=(0,E.A)(x,2),k=O[0],S=O[1],j=f().useState(),P=(0,E.A)(j,2),C=P[0],T=P[1];return(0,He.A)((function(){S(Ie(o)),T(Fe(o))})),f().useEffect((function(){var e,t;l.current.element===k&&((e=l.current.point)===(t=C)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Le.A)(l.current.align,i)||w()})),f().useEffect((function(){return Ve(p.current,w)}),[p.current]),f().useEffect((function(){return Ve(k,w)}),[k]),f().useEffect((function(){r?A():w()}),[r]),f().useEffect((function(){if(c)return(0,y.A)(window,"resize",w).remove}),[c]),f().useEffect((function(){return function(){A()}}),[]),f().useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),f().isValidElement(d)&&(d=f().cloneElement(d,{ref:(0,g.K4)(d.ref,p)})),d},Ye=f().forwardRef(We);Ye.displayName="Align";const Xe=Ye;function Ue(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
21
- Ue=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),c=new T(r||[]);return o(a,"_invoke",{value:S(e,n,c)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",d="suspendedYield",m="executing",v="completed",h={};function b(){}function g(){}function y(){}var w={};s(w,a,(function(){return this}));var A=Object.getPrototypeOf,x=A&&A(A(_([])));x&&x!==n&&r.call(x,a)&&(w=x);var O=y.prototype=b.prototype=Object.create(w);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,i,a,c){var u=p(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==(0,M.A)(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=j(c,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=p(t,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function j(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,j(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function _(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError((0,M.A)(t)+" is not iterable")}return g.prototype=y,o(O,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},E(k.prototype),s(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(O),s(O,u,"Generator"),s(O,a,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}var qe=n(10467),$e=n(1233),Ge=["measure","alignPre","align",null,"motion"];var Ze=p.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,c=e.style,u=e.children,s=e.zIndex,l=e.stretch,f=e.destroyPopupOnHide,d=e.forceRender,m=e.align,h=e.point,b=e.getRootDomNode,g=e.getClassNameFromAlign,y=e.onAlign,w=e.onMouseEnter,A=e.onMouseLeave,O=e.onMouseDown,k=e.onTouchStart,S=e.onClick,C=(0,p.useRef)(),T=(0,p.useRef)(),M=(0,p.useState)(),_=(0,E.A)(M,2),N=_[0],D=_[1],R=function(e){var t=p.useState({width:0,height:0}),n=(0,E.A)(t,2),r=n[0],o=n[1];return[p.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),o({width:t,height:n})}]}(l),L=(0,E.A)(R,2),z=L[0],H=L[1];var B=function(e,t){var n=(0,$e.A)(null),r=(0,E.A)(n,2),o=r[0],i=r[1],a=(0,p.useRef)();function c(e){i(e,!0)}function u(){v.A.cancel(a.current)}return(0,p.useEffect)((function(){c("measure")}),[e]),(0,p.useEffect)((function(){"measure"===o&&t(),o&&(a.current=(0,v.A)((0,qe.A)(Ue().mark((function e(){var t,n;return Ue().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ge.indexOf(o),(n=Ge[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,p.useEffect)((function(){return function(){u()}}),[]),[o,function(e){u(),a.current=(0,v.A)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&H(b())})),V=(0,E.A)(B,2),I=V[0],F=V[1],W=(0,p.useState)(0),Y=(0,E.A)(W,2),X=Y[0],U=Y[1],q=(0,p.useRef)();function $(){var e;null===(e=C.current)||void 0===e||e.forceAlign()}function G(e,t){var n=g(t);N!==n&&D(n),U((function(e){return e+1})),"align"===I&&(null==y||y(e,t))}(0,He.A)((function(){"alignPre"===I&&U(0)}),[I]),(0,He.A)((function(){"align"===I&&(X<3?$():F((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[X]);var Z=(0,r.A)({},P(e));function K(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Z[e];Z[e]=function(e,n){return F(),null==t?void 0:t(e,n)}})),p.useEffect((function(){Z.motionName||"motion"!==I||F()}),[Z.motionName,I]),p.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return T.current}}}));var J=(0,r.A)((0,r.A)({},z),{},{zIndex:s,opacity:"motion"!==I&&"stable"!==I&&n?0:void 0,pointerEvents:n||"stable"===I?void 0:"none"},c),Q=!0;null==m||!m.points||"align"!==I&&"stable"!==I||(Q=!1);var ee=u;return p.Children.count(u)>1&&(ee=p.createElement("div",{className:"".concat(i,"-content")},u)),p.createElement(j.A,(0,o.A)({visible:n,ref:T,leavedClassName:"".concat(i,"-hidden")},Z,{onAppearPrepare:K,onEnterPrepare:K,removeOnLeave:f,forceRender:d}),(function(e,t){var n=e.className,o=e.style,c=x()(i,a,N,n);return p.createElement(Xe,{target:h||b,key:"popup",ref:C,monitorWindowResize:!0,disabled:Q,align:m,onAlign:G},p.createElement("div",{ref:t,className:c,onMouseEnter:w,onMouseLeave:A,onMouseDownCapture:O,onTouchStartCapture:k,onClick:S,style:(0,r.A)((0,r.A)({},o),J)},ee))}))}));Ze.displayName="PopupInner";const Ke=Ze;var Je=p.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,c=e.children,u=e.mobile,s=(u=void 0===u?{}:u).popupClassName,l=u.popupStyle,f=u.popupMotion,d=void 0===f?{}:f,m=u.popupRender,v=e.onClick,h=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var b=(0,r.A)({zIndex:a},l),g=c;return p.Children.count(c)>1&&(g=p.createElement("div",{className:"".concat(n,"-content")},c)),m&&(g=m(g)),p.createElement(j.A,(0,o.A)({visible:i,ref:h,removeOnLeave:!0},d),(function(e,t){var o=e.className,i=e.style,a=x()(n,s,o);return p.createElement("div",{ref:t,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),b)},g)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,k.A)(e,et),c=(0,p.useState)(n),u=(0,E.A)(c,2),s=u[0],l=u[1],f=(0,p.useState)(!1),d=(0,E.A)(f,2),m=d[0],v=d[1],h=(0,r.A)((0,r.A)({},a),{},{visible:s});(0,p.useEffect)((function(){l(n),n&&i&&v((0,S.A)())}),[n,i]);var b=m?p.createElement(Qe,(0,o.A)({},h,{mobile:i,ref:t})):p.createElement(Ke,(0,o.A)({},h,{ref:t}));return p.createElement("div",null,p.createElement(C,h),b)}));tt.displayName="Popup";const nt=tt;const rt=p.createContext(null);function ot(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ut=(st=w.A,lt=function(e){(0,u.A)(n,e);var t=(0,s.A)(n);function n(e){var r,a;return(0,i.A)(this,n),r=t.call(this,e),(0,l.A)((0,c.A)(r),"popupRef",p.createRef()),(0,l.A)((0,c.A)(r),"triggerRef",p.createRef()),(0,l.A)((0,c.A)(r),"portalContainer",void 0),(0,l.A)((0,c.A)(r),"attachId",void 0),(0,l.A)((0,c.A)(r),"clickOutsideHandler",void 0),(0,l.A)((0,c.A)(r),"touchOutsideHandler",void 0),(0,l.A)((0,c.A)(r),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,c.A)(r),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,c.A)(r),"mouseDownTimeout",void 0),(0,l.A)((0,c.A)(r),"focusTime",void 0),(0,l.A)((0,c.A)(r),"preClickTime",void 0),(0,l.A)((0,c.A)(r),"preTouchTime",void 0),(0,l.A)((0,c.A)(r),"delayTimer",void 0),(0,l.A)((0,c.A)(r),"hasPopupMouseDown",void 0),(0,l.A)((0,c.A)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.A)((0,c.A)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,l.A)((0,c.A)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.A)((0,c.A)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,h.A)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.A)((0,c.A)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,l.A)((0,c.A)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,l.A)((0,c.A)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.A)((0,c.A)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,l.A)((0,c.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.A)((0,c.A)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,l.A)((0,c.A)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,l.A)((0,c.A)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,h.A)(n,t)&&!r.isContextMenuOnly()||(0,h.A)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,l.A)((0,c.A)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,b.A)(r.triggerRef.current);if(t)return t}catch(e){}return m().findDOMNode((0,c.A)(r))})),(0,l.A)((0,c.A)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(O(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),u&&t.push(u(e)),t.join(" ")})),(0,l.A)((0,c.A)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,c=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,f=e.mask,d=e.maskAnimation,m=e.maskTransitionName,v=e.maskMotion,h=e.zIndex,b=e.popup,g=e.stretch,y=e.alignPoint,w=e.mobile,A=e.forceRender,x=e.onPopupClick,O=r.state,E=O.popupVisible,k=O.point,S=r.getPopupAlign(),j={};return r.isMouseEnterToShow()&&(j.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(j.onMouseLeave=r.onPopupMouseLeave),j.onMouseDown=r.onPopupMouseDown,j.onTouchStart=r.onPopupMouseDown,p.createElement(nt,(0,o.A)({prefixCls:t,destroyPopupOnHide:n,visible:E,point:y&&k,className:i,align:S,onAlign:a,animation:u,getClassNameFromAlign:r.getPopupClassNameFromAlign},j,{stretch:g,getRootDomNode:r.getRootDomNode,style:l,mask:f,zIndex:h,transitionName:s,maskAnimation:d,maskTransitionName:m,maskMotion:v,ref:r.popupRef,motion:c,mobile:w,forceRender:A,onClick:x}),"function"==typeof b?b():b)})),(0,l.A)((0,c.A)(r),"attachParent",(function(e){v.A.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,v.A)((function(){r.attachParent(e)}))})),(0,l.A)((0,c.A)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.A)((0,c.A)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.A)((0,c.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.A)((0,c.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ct.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,y.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,y.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,y.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,y.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.A)((0,r.A)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=p.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=x()(u&&u.props&&u.props.className,a);l&&(s.className=l);var f=(0,r.A)({},s);(0,g.f3)(u)&&(f.ref=(0,g.K4)(this.triggerRef,u.ref));var d,m=p.cloneElement(u,f);return(e||this.popupRef.current||o)&&(d=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),p.createElement(rt.Provider,{value:this.triggerContextValue},m,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(p.Component),(0,l.A)(lt,"contextType",rt),(0,l.A)(lt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),lt);var st,lt},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(69514),o=n.n(r);function i(e,t,n,r){var i=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},54808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n.n(r),i=n(69514),a=n.n(i);function c(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?a().findDOMNode(e):null}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const c=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,c=e.children,u=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=o(),u.current=s.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==u.current&&u.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?i().createPortal(c,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],c=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||c(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=i.has(t);if((0,o.Ay)(!u,"Warning: There may be circular references"),u)return!1;if(t===a)return!0;if(n&&c>1)return!1;i.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],a[l],s))return!1;return!0}if(t&&a&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(a)){var p=Object.keys(t);return p.length===Object.keys(a).length&&p.every((function(n){return e(t[n],a[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function c(e){a.delete(e)}var u=function(e){var t=i+=1;return function n(o){if(0===o)c(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};u.cancel=function(e){var t=a.get(e);return c(e),o(t)};const s=u},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>a,Xf:()=>i,f3:()=>c});var r=n(82284),o=(n(39155),n(44363)),i=(n(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}),a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){i(t,e)}))}},c=function(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===o.ForwardRef)}},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r={},o=[];function i(e,t){}function a(e,t){}function c(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function u(e,t){c(i,e,t)}u.preMessage=function(e){o.push(e)},u.resetWarned=function(){r={}},u.noteOnce=function(e,t){c(a,e,t)};const s=u},22799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");
20
+ */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))n.call(i,s)&&(c[s]=i[s]);if(t){a=t(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(c[a[l]]=i[a[l]])}}return c}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(64467),o=n(89379),i=n(3453),a=n(82284),c=n(39155),u=n(66588),s=n(8719),l=n(46942),p=n.n(l),f=n(80371),d=n(25931),m=n(25318),v=n(72137),h=n(58515);const b=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.A)(e)&&(t=e.transitionSupport);var l=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,b=e.removeOnLeave,g=void 0===b||b,y=e.forceRender,w=e.children,A=e.motionName,x=e.leavedClassName,O=e.eventProps,E=n(e),k=(0,c.useRef)(),S=(0,c.useRef)();var j=(0,m.A)(E,l,(function(){try{return(0,u.Ay)(k.current||S.current)}catch(e){return null}}),e),P=(0,i.A)(j,4),C=P[0],T=P[1],M=P[2],_=P[3],N=c.useRef(_);_&&(N.current=!0);var D=(0,c.useRef)(t);D.current=t;var R,L=c.useCallback((function(e){k.current=e,(0,s.Xf)(D.current,e)}),[]),z=(0,o.A)((0,o.A)({},O),{},{visible:l});if(w)if(C!==d.SF&&n(e)){var H,B;T===d.px?B="prepare":(0,h.$m)(T)?B="active":T===d.Mv&&(B="start"),R=w((0,o.A)((0,o.A)({},z),{},{className:p()((0,f.by)(A,C),(H={},(0,r.A)(H,(0,f.by)(A,"".concat(C,"-").concat(B)),B),(0,r.A)(H,A,"string"==typeof A),H)),style:M}),L)}else R=_?w((0,o.A)({},z),L):!g&&N.current?w((0,o.A)((0,o.A)({},z),{},{className:x}),L):y?w((0,o.A)((0,o.A)({},z),{},{style:{display:"none"}}),L):null;else R=null;return c.createElement(v.A,{ref:S},R)}));return l.displayName="CSSMotion",l}(f.J1)},97333:(e,t,n)=>{"use strict";var r=n(58168),o=n(80045),i=n(89379),a=n(23029),c=n(92901),u=n(85501),s=n(29426),l=n(39155),p=n(44785),f=n(80371),d=n(29710),m=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(e){(0,u.A)(p,e);var n=(0,s.A)(p);function p(){var e;return(0,a.A)(this,p),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.A)((0,i.A)({},e),{},{status:d.e8})}))}}))},e}return(0,c.A)(p,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,c=i.children,u=i.onVisibleChanged,s=(0,o.A)(i,["component","children","onVisibleChanged"]),p=a||l.Fragment,f={};return m.forEach((function(e){f[e]=s[e],delete s[e]})),delete s.keys,l.createElement(p,s,n.map((function(n){var i=n.status,a=(0,o.A)(n,["status"]),s=i===d.bK||i===d.xI;return l.createElement(t,(0,r.A)({},f,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(t){null==u||u(t,{key:a.key}),t||e.removeKey(a.key)}}),c)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.e8||e.status!==d.au}))}}}]),p}(l.Component);n.defaultProps={component:"div"}}(f.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(23029),o=n(92901),i=n(85501),a=n(29426),c=n(39155);const u=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(80371);const i=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var i=r.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(o.m8,i),e.removeEventListener(o.Vc,i))}return r.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(o.m8,i),e.addEventListener(o.Vc,i),t.current=e)},a]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=n(25371);const i=function(){var e=r.useRef(null);function t(){o.A.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,o.A)((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),i=(0,r.A)(n,2),a=i[0],c=i[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||c(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(89379),o=n(64467),i=n(3453),a=n(39155),c=n(25931),u=n(92659),s=n(43982),l=n(58515),p=n(85849);function f(e,t,n,f){var d=f.motionEnter,m=void 0===d||d,v=f.motionAppear,h=void 0===v||v,b=f.motionLeave,g=void 0===b||b,y=f.motionDeadline,w=f.motionLeaveImmediately,A=f.onAppearPrepare,x=f.onEnterPrepare,O=f.onLeavePrepare,E=f.onAppearStart,k=f.onEnterStart,S=f.onLeaveStart,j=f.onAppearActive,P=f.onEnterActive,C=f.onLeaveActive,T=f.onAppearEnd,M=f.onEnterEnd,_=f.onLeaveEnd,N=f.onVisibleChanged,D=(0,u.A)(),R=(0,i.A)(D,2),L=R[0],z=R[1],H=(0,u.A)(c.SF),B=(0,i.A)(H,2),V=B[0],I=B[1],F=(0,u.A)(null),W=(0,i.A)(F,2),Y=W[0],X=W[1],U=(0,a.useRef)(!1),q=(0,a.useRef)(null),$=(0,a.useRef)(!1),G=(0,a.useRef)(null);function Z(){return n()||G.current}var K=(0,a.useRef)(!1);function J(e){var t,n=Z();e&&!e.deadline&&e.target!==n||(V===c.Tv&&K.current?t=null==T?void 0:T(n,e):V===c.Wd&&K.current?t=null==M?void 0:M(n,e):V===c.dp&&K.current&&(t=null==_?void 0:_(n,e)),!1===t||$.current||(I(c.SF),X(null)))}var Q=(0,p.A)(J),ee=(0,i.A)(Q,1)[0],te=a.useMemo((function(){var e,t,n;switch(V){case"appear":return e={},(0,o.A)(e,c.px,A),(0,o.A)(e,c.Mv,E),(0,o.A)(e,c.m7,j),e;case"enter":return t={},(0,o.A)(t,c.px,x),(0,o.A)(t,c.Mv,k),(0,o.A)(t,c.m7,P),t;case"leave":return n={},(0,o.A)(n,c.px,O),(0,o.A)(n,c.Mv,S),(0,o.A)(n,c.m7,C),n;default:return{}}}),[V]),ne=(0,l.Ay)(V,(function(e){if(e===c.px){var t=te[c.px];return t?t(Z()):l.es}var n;ie in te&&X((null===(n=te[ie])||void 0===n?void 0:n.call(te,Z(),null))||null);return ie===c.m7&&(ee(Z()),y>0&&(clearTimeout(q.current),q.current=setTimeout((function(){J({deadline:!0})}),y))),l.qB})),re=(0,i.A)(ne,2),oe=re[0],ie=re[1],ae=(0,l.$m)(ie);K.current=ae,(0,s.A)((function(){z(t);var n,r=U.current;(U.current=!0,e)&&(!r&&t&&h&&(n=c.Tv),r&&t&&m&&(n=c.Wd),(r&&!t&&g||!r&&w&&!t&&g)&&(n=c.dp),n&&(I(n),oe()))}),[t]),(0,a.useEffect)((function(){(V===c.Tv&&!h||V===c.Wd&&!m||V===c.dp&&!g)&&I(c.SF)}),[h,m,g]),(0,a.useEffect)((function(){return function(){clearTimeout(q.current),$.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&V===c.SF&&(null==N||N(L))}),[L,V]);var ce=Y;return te[c.px]&&ie===c.Mv&&(ce=(0,r.A)({transition:"none"},ce)),[V,ie,ce,null!=L?L:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>p,Ay:()=>f,es:()=>s,qB:()=>l});var r=n(3453),o=n(39155),i=n(25931),a=n(43982),c=n(84560),u=[i.px,i.Mv,i.m7,i.Hs],s=!1,l=!0;function p(e){return e===i.m7||e===i.Hs}const f=function(e,t){var n=o.useState(i.cE),l=(0,r.A)(n,2),p=l[0],f=l[1],d=(0,c.A)(),m=(0,r.A)(d,2),v=m[0],h=m[1];return(0,a.A)((function(){if(p!==i.cE&&p!==i.Hs){var e=u.indexOf(p),n=u[e+1],r=t(p);r===s?f(n):v((function(e){function t(){e.isCanceled()||f(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,p]),o.useEffect((function(){return function(){h()}}),[]),[function(){f(i.px)},p]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>p,Mv:()=>s,SF:()=>r,Tv:()=>o,Wd:()=>i,cE:()=>c,dp:()=>a,m7:()=>l,px:()=>u});var r="none",o="appear",i="enter",a="leave",c="none",u="prepare",s="start",l="active",p="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>l,au:()=>c,bK:()=>i,e8:()=>u,xI:()=>a,y$:()=>p});var r=n(89379),o=n(82284),i="add",a="keep",c="remove",u="removed";function s(e){var t;return t=e&&"object"===(0,o.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,u=t.length,s=l(e),p=l(t);s.forEach((function(e){for(var t=!1,s=o;s<u;s+=1){var l=p[s];if(l.key===e.key){o<s&&(n=n.concat(p.slice(o,s).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))),o=s),n.push((0,r.A)((0,r.A)({},l),{},{status:a})),o+=1,t=!0;break}}t||n.push((0,r.A)((0,r.A)({},e),{},{status:c}))})),o<u&&(n=n.concat(p.slice(o).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:i})}))));var f={};return n.forEach((function(e){var t=e.key;f[t]=(f[t]||0)+1})),Object.keys(f).filter((function(e){return f[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==c}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>h,Vc:()=>b,by:()=>y,m8:()=>g});var r=n(82284),o=n(20998);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,c,u,s=(a=(0,o.A)(),c="undefined"!=typeof window?window:{},u={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in c||delete u.animationend.animation,"TransitionEvent"in c||delete u.transitionend.transition),u),l={};if((0,o.A)()){var p=document.createElement("div");l=p.style}var f={};function d(e){if(f[e])return f[e];var t=s[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in l)return f[e]=t[i],f[e]}return""}var m=d("animationend"),v=d("transitionend"),h=!(!m||!v),b=m||"animationend",g=v||"transitionend";function y(e,t){return e?"object"===(0,r.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34307:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(82284),i=n(89379),a=n(80045),c=n(39155),u=n(34848),s={adjustX:1,adjustY:1},l=[0,0],p={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:l}};const f=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)};var d=function(e,t){var n=e.overlayClassName,s=e.trigger,l=void 0===s?["hover"]:s,d=e.mouseEnterDelay,m=void 0===d?0:d,v=e.mouseLeaveDelay,h=void 0===v?.1:v,b=e.overlayStyle,g=e.prefixCls,y=void 0===g?"rc-tooltip":g,w=e.children,A=e.onVisibleChange,x=e.afterVisibleChange,O=e.transitionName,E=e.animation,k=e.motion,S=e.placement,j=void 0===S?"right":S,P=e.align,C=void 0===P?{}:P,T=e.destroyTooltipOnHide,M=void 0!==T&&T,_=e.defaultVisible,N=e.getTooltipContainer,D=e.overlayInnerStyle,R=(0,a.A)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return L.current}));var z=(0,i.A)({},R);"visible"in e&&(z.popupVisible=e.visible);var H=!1,B=!1;if("boolean"==typeof M)H=M;else if(M&&"object"===(0,o.A)(M)){var V=M.keepParent;H=!0===V,B=!1===V}return c.createElement(u.A,(0,r.A)({popupClassName:n,prefixCls:y,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[c.createElement("div",{className:"".concat(y,"-arrow"),key:"arrow"},n),c.createElement(f,{key:"content",prefixCls:y,id:o,overlay:r,overlayInnerStyle:D})]},action:l,builtinPlacements:p,popupPlacement:j,ref:L,popupAlign:C,getPopupContainer:N,onPopupVisibleChange:A,afterPopupVisibleChange:x,popupTransitionName:O,popupAnimation:E,popupMotion:k,defaultPopupVisible:_,destroyPopupOnHide:H,autoDestroy:B,mouseLeaveDelay:h,popupStyle:b,mouseEnterDelay:m},z),w)};const m=(0,c.forwardRef)(d)},94934:(e,t)=>{"use strict";t.DD=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};t.DD=o},34848:(e,t,n)=>{"use strict";n.d(t,{A:()=>ut});var r=n(89379),o=n(58168),i=n(23029),a=n(92901),c=n(9417),u=n(85501),s=n(29426),l=n(64467),p=n(39155),f=n.n(p),d=n(69514),m=n.n(d),v=n(25371),h=n(54808),b=n(66588),g=n(8719),y=n(69916),w=n(88822),A=n(46942),x=n.n(A);function O(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var E=n(3453),k=n(80045),S=n(68430),j=n(30156);function P(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function C(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,c=e.maskMotion,u=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var l={};return(c||s||u)&&(l=(0,r.A)({motionAppear:!0},P({motion:c,prefixCls:t,transitionName:s,animation:u}))),p.createElement(j.A,(0,o.A)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:i},className:x()("".concat(t,"-mask"),n)})}))}var T,M=n(82284);function _(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function z(){if(void 0!==T)return T;T="";var e=document.createElement("p").style;for(var t in L)t+"Transform"in e&&(T=t);return T}function H(){return z()?"".concat(z(),"TransitionProperty"):"transitionProperty"}function B(){return z()?"".concat(z(),"Transform"):"transform"}function V(e,t){var n=H();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function I(e,t){var n=B();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var F,W=/matrix\((.*)\)/,Y=/matrix3d\((.*)\)/;function X(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function U(e,t,n){var r=n;if("object"!==D(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):F(e,t);for(var o in t)t.hasOwnProperty(o)&&U(e,o,t[o])}function q(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function $(e){return q(e)}function G(e){return q(e,!0)}function Z(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=$(r),t.top+=G(r),t}function K(e){return null!=e&&e==e.window}function J(e){return K(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Q=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",re="left";function oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===U(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=oe("left",n),a=oe("top",n),c=ie(i),u=ie(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,l="",p=Z(e);("left"in t||"top"in t)&&(l=(s=e).style.transitionProperty||s.style[H()]||"",V(e,"none")),"left"in t&&(e.style[c]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[u]="",e.style[a]="".concat(o,"px")),X(e);var f=Z(e),d={};for(var m in t)if(t.hasOwnProperty(m)){var v=oe(m,n),h="left"===m?r:o,b=p[m]-f[m];d[v]=v===m?h+b:h-b}U(e,d),X(e),("left"in t||"top"in t)&&V(e,l);var g={};for(var y in t)if(t.hasOwnProperty(y)){var w=oe(y,n),A=t[y]-p[y];g[w]=y===w?d[w]+A:d[w]-A}U(e,g)}function ce(e,t){var n=Z(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(B());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(B());if(r&&"none"!==r){var o,i=r.match(W);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,I(e,"matrix(".concat(o.join(","),")"))):((o=r.match(Y)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,I(e,"matrix3d(".concat(o.join(","),")")))}else I(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function ue(e,t){for(var n=0;n<e.length;n++)t(e[n])}function se(e){return"border-box"===F(e,"boxSizing")}"undefined"!=typeof window&&(F=window.getComputedStyle?function(e,t,n){var r=n,o="",i=J(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[te]&&e[te][t];if(Q.test(n)&&!ee.test(t)){var r=e.style,o=r[re],i=e[ne][re];e[ne][re]=e[te][re],r[re]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[re]=o,e[ne][re]=i}return""===n?"auto":n});var le=["margin","border","padding"],pe=-1,fe=2,de=1;function me(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var c=void 0;c="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(F(e,c))||0}return a}var ve={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function he(e,t,n){var r=n;if(K(e))return"width"===t?ve.viewportWidth(e):ve.viewportHeight(e);if(9===e.nodeType)return"width"===t?ve.docWidth(e):ve.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=se(e),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=F(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=Math.floor(parseFloat(c))||0),void 0===r&&(r=a?de:pe);var u=void 0!==i||a,s=i||c;return r===pe?u?s-me(e,["border","padding"],o):c:u?r===de?s:s+(r===fe?-me(e,["border"],o):me(e,["margin"],o)):c+me(e,le.slice(r),o)}ue(["Width","Height"],(function(e){ve["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ve["viewport".concat(e)](n))},ve["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var be={position:"absolute",visibility:"hidden",display:"block"};function ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=he.apply(void 0,t):function(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}(o,be,(function(){r=he.apply(void 0,t)})),r}function ye(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}ue(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ve["outer".concat(t)]=function(t,n){return t&&ge(t,e,n?0:de)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ve[e]=function(t,r){var o=r;return void 0!==o?t?(se(t)&&(o+=me(t,["padding","border"],n)),U(t,e,o)):void 0:t&&ge(t,e,pe)}}));var we={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return Z(e);!function(e,t,n){if(n.ignoreShake){var r=Z(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),c=t.top.toFixed(0);if(o===a&&i===c)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&B()in document.body.style?ce(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:K,each:ue,css:U,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ye,getWindowScrollLeft:function(e){return $(e)},getWindowScrollTop:function(e){return G(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)we.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ye(we,ve);var Ae=we.getParent;function xe(e){if(we.isWindow(e)||9===e.nodeType)return null;var t,n=we.getDocument(e).body,r=we.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:Ae(e);for(t=Ae(e);t&&t!==n&&9!==t.nodeType;t=Ae(t))if("static"!==(r=we.css(t,"position")))return t;return null}var Oe=we.getParent;function Ee(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=xe(e),o=we.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,c=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===c||"visible"===we.css(r,"overflow")){if(r===a||r===c)break}else{var u=we.offset(r);u.left+=r.clientLeft,u.top+=r.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+r.clientWidth),n.bottom=Math.min(n.bottom,u.top+r.clientHeight),n.left=Math.max(n.left,u.left)}r=xe(r)}var s=null;we.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===we.css(e,"position")&&(e.style.position="fixed"));var l=we.getWindowScrollLeft(i),p=we.getWindowScrollTop(i),f=we.viewportWidth(i),d=we.viewportHeight(i),m=c.scrollWidth,v=c.scrollHeight,h=window.getComputedStyle(a);if("hidden"===h.overflowX&&(m=i.innerWidth),"hidden"===h.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=s),t||function(e){if(we.isWindow(e)||9===e.nodeType)return!1;var t=we.getDocument(e),n=t.body,r=null;for(r=Oe(e);r&&r!==n&&r!==t;r=Oe(r))if("fixed"===we.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,p),n.right=Math.min(n.right,l+f),n.bottom=Math.min(n.bottom,p+d);else{var b=Math.max(m,l+f);n.right=Math.min(n.right,b);var g=Math.max(v,p+d);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ke(e){var t,n,r;if(we.isWindow(e)||9===e.nodeType){var o=we.getWindow(e);t={left:we.getWindowScrollLeft(o),top:we.getWindowScrollTop(o)},n=we.viewportWidth(o),r=we.viewportHeight(o)}else t=we.offset(e),n=we.outerWidth(e),r=we.outerHeight(e);return t.width=n,t.height=r,t}function Se(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:c}}function je(e,t,n,r,o){var i=Se(t,n[1]),a=Se(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+r[0]-o[0]),top:Math.round(e.top-c[1]+r[1]-o[1])}}function Pe(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Ce(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Te(e,t,n){var r=[];return we.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Me(e,t){return e[t]=-e[t],e}function _e(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ne(e,t){e[0]=_e(e[0],t.width),e[1]=_e(e[1],t.height)}function De(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,u=n.source||e;i=[].concat(i),a=[].concat(a);var s={},l=0,p=Ee(u,!(!(c=c||{})||!c.alwaysByViewport)),f=ke(u);Ne(i,f),Ne(a,t);var d=je(f,t,o,i,a),m=we.merge(f,d);if(p&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&Pe(d,f,p)){var v=Te(o,/[lr]/gi,{l:"r",r:"l"}),h=Me(i,0),b=Me(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(je(f,t,v,h,b),f,p)||(l=1,o=v,i=h,a=b)}if(c.adjustY&&Ce(d,f,p)){var g=Te(o,/[tb]/gi,{t:"b",b:"t"}),y=Me(i,1),w=Me(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(je(f,t,g,y,w),f,p)||(l=1,o=g,i=y,a=w)}l&&(d=je(f,t,o,i,a),we.mix(m,d));var A=Pe(d,f,p),x=Ce(d,f,p);if(A||x){var O=o;A&&(O=Te(o,/[lr]/gi,{l:"r",r:"l"})),x&&(O=Te(o,/[tb]/gi,{t:"b",b:"t"})),o=O,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=c.adjustX&&A,s.adjustY=c.adjustY&&x,(s.adjustX||s.adjustY)&&(m=function(e,t,n,r){var o=we.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),we.mix(o,i)}(d,f,p,s))}return m.width!==f.width&&we.css(u,"width",we.width(u)+m.width-f.width),m.height!==f.height&&we.css(u,"height",we.height(u)+m.height-f.height),we.offset(u,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function Re(e,t,n){var r=n.target||t,o=ke(r),i=!function(e,t){var n=Ee(e,t),r=ke(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return De(e,o,n,i)}Re.__getOffsetParent=xe,Re.__getVisibleRectForElement=Ee;var Le=n(43210),ze=n(42467),He=n(30981);var Be=n(43591);function Ve(e,t){var n=null,r=null;var o=new Be.default((function(e){var o=(0,E.A)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,c=i.height,u=Math.floor(a),s=Math.floor(c);n===u&&r===s||Promise.resolve().then((function(){t({width:u,height:s})})),n=u,r=s}}));return e&&o.observe(e),function(){o.disconnect()}}function Ie(e){return"function"!=typeof e?null:e()}function Fe(e){return"object"===(0,M.A)(e)&&e?e:null}var We=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,u=e.monitorBufferTime,s=void 0===u?0:u,l=f().useRef({}),p=f().useRef(),d=f().Children.only(n),m=f().useRef({});m.current.disabled=r,m.current.target=o,m.current.align=i,m.current.onAlign=a;var v=function(e,t){var n=f().useRef(!1),r=f().useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=m.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=p.current;if(!t&&n&&i){var a,c=Ie(n),u=Fe(n);l.current.element=c,l.current.point=u,l.current.align=r;var s=document.activeElement;return c&&(0,ze.A)(c)?a=Re(i,c,r):u&&(a=function(e,t,n){var r,o,i=we.getDocument(e),a=i.defaultView||i.parentWindow,c=we.getWindowScrollLeft(a),u=we.getWindowScrollTop(a),s=we.viewportWidth(a),l=we.viewportHeight(a),p={left:r="pageX"in t?t.pageX:c+t.clientX,top:o="pageY"in t?t.pageY:u+t.clientY,width:0,height:0},f=r>=0&&r<=c+s&&o>=0&&o<=u+l,d=[n.points[0],"cc"];return De(e,p,N(N({},n),{},{points:d}),f)}(i,u,r)),function(e,t){e!==document.activeElement&&(0,h.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,i),o&&a&&o(i,a),!0}return!1}),s),b=(0,E.A)(v,2),w=b[0],A=b[1],x=f().useState(),O=(0,E.A)(x,2),k=O[0],S=O[1],j=f().useState(),P=(0,E.A)(j,2),C=P[0],T=P[1];return(0,He.A)((function(){S(Ie(o)),T(Fe(o))})),f().useEffect((function(){var e,t;l.current.element===k&&((e=l.current.point)===(t=C)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Le.A)(l.current.align,i)||w()})),f().useEffect((function(){return Ve(p.current,w)}),[p.current]),f().useEffect((function(){return Ve(k,w)}),[k]),f().useEffect((function(){r?A():w()}),[r]),f().useEffect((function(){if(c)return(0,y.A)(window,"resize",w).remove}),[c]),f().useEffect((function(){return function(){A()}}),[]),f().useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),f().isValidElement(d)&&(d=f().cloneElement(d,{ref:(0,g.K4)(d.ref,p)})),d},Ye=f().forwardRef(We);Ye.displayName="Align";const Xe=Ye;var Ue=n(90675),qe=n(10467),$e=n(1233),Ge=["measure","alignPre","align",null,"motion"];var Ze=p.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,c=e.style,u=e.children,s=e.zIndex,l=e.stretch,f=e.destroyPopupOnHide,d=e.forceRender,m=e.align,h=e.point,b=e.getRootDomNode,g=e.getClassNameFromAlign,y=e.onAlign,w=e.onMouseEnter,A=e.onMouseLeave,O=e.onMouseDown,k=e.onTouchStart,S=e.onClick,C=(0,p.useRef)(),T=(0,p.useRef)(),M=(0,p.useState)(),_=(0,E.A)(M,2),N=_[0],D=_[1],R=function(e){var t=p.useState({width:0,height:0}),n=(0,E.A)(t,2),r=n[0],o=n[1];return[p.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),o({width:t,height:n})}]}(l),L=(0,E.A)(R,2),z=L[0],H=L[1];var B=function(e,t){var n=(0,$e.A)(null),r=(0,E.A)(n,2),o=r[0],i=r[1],a=(0,p.useRef)();function c(e){i(e,!0)}function u(){v.A.cancel(a.current)}return(0,p.useEffect)((function(){c("measure")}),[e]),(0,p.useEffect)((function(){"measure"===o&&t(),o&&(a.current=(0,v.A)((0,qe.A)((0,Ue.A)().mark((function e(){var t,n;return(0,Ue.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ge.indexOf(o),(n=Ge[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,p.useEffect)((function(){return function(){u()}}),[]),[o,function(e){u(),a.current=(0,v.A)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&H(b())})),V=(0,E.A)(B,2),I=V[0],F=V[1],W=(0,p.useState)(0),Y=(0,E.A)(W,2),X=Y[0],U=Y[1],q=(0,p.useRef)();function $(){var e;null===(e=C.current)||void 0===e||e.forceAlign()}function G(e,t){var n=g(t);N!==n&&D(n),U((function(e){return e+1})),"align"===I&&(null==y||y(e,t))}(0,He.A)((function(){"alignPre"===I&&U(0)}),[I]),(0,He.A)((function(){"align"===I&&(X<3?$():F((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[X]);var Z=(0,r.A)({},P(e));function K(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Z[e];Z[e]=function(e,n){return F(),null==t?void 0:t(e,n)}})),p.useEffect((function(){Z.motionName||"motion"!==I||F()}),[Z.motionName,I]),p.useImperativeHandle(t,(function(){return{forceAlign:$,getElement:function(){return T.current}}}));var J=(0,r.A)((0,r.A)({},z),{},{zIndex:s,opacity:"motion"!==I&&"stable"!==I&&n?0:void 0,pointerEvents:n||"stable"===I?void 0:"none"},c),Q=!0;null==m||!m.points||"align"!==I&&"stable"!==I||(Q=!1);var ee=u;return p.Children.count(u)>1&&(ee=p.createElement("div",{className:"".concat(i,"-content")},u)),p.createElement(j.A,(0,o.A)({visible:n,ref:T,leavedClassName:"".concat(i,"-hidden")},Z,{onAppearPrepare:K,onEnterPrepare:K,removeOnLeave:f,forceRender:d}),(function(e,t){var n=e.className,o=e.style,c=x()(i,a,N,n);return p.createElement(Xe,{target:h||b,key:"popup",ref:C,monitorWindowResize:!0,disabled:Q,align:m,onAlign:G},p.createElement("div",{ref:t,className:c,onMouseEnter:w,onMouseLeave:A,onMouseDownCapture:O,onTouchStartCapture:k,onClick:S,style:(0,r.A)((0,r.A)({},o),J)},ee))}))}));Ze.displayName="PopupInner";const Ke=Ze;var Je=p.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,c=e.children,u=e.mobile,s=(u=void 0===u?{}:u).popupClassName,l=u.popupStyle,f=u.popupMotion,d=void 0===f?{}:f,m=u.popupRender,v=e.onClick,h=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var b=(0,r.A)({zIndex:a},l),g=c;return p.Children.count(c)>1&&(g=p.createElement("div",{className:"".concat(n,"-content")},c)),m&&(g=m(g)),p.createElement(j.A,(0,o.A)({visible:i,ref:h,removeOnLeave:!0},d),(function(e,t){var o=e.className,i=e.style,a=x()(n,s,o);return p.createElement("div",{ref:t,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),b)},g)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,k.A)(e,et),c=(0,p.useState)(n),u=(0,E.A)(c,2),s=u[0],l=u[1],f=(0,p.useState)(!1),d=(0,E.A)(f,2),m=d[0],v=d[1],h=(0,r.A)((0,r.A)({},a),{},{visible:s});(0,p.useEffect)((function(){l(n),n&&i&&v((0,S.A)())}),[n,i]);var b=m?p.createElement(Qe,(0,o.A)({},h,{mobile:i,ref:t})):p.createElement(Ke,(0,o.A)({},h,{ref:t}));return p.createElement("div",null,p.createElement(C,h),b)}));tt.displayName="Popup";const nt=tt;const rt=p.createContext(null);function ot(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const ut=(st=w.A,lt=function(e){(0,u.A)(n,e);var t=(0,s.A)(n);function n(e){var r,a;return(0,i.A)(this,n),r=t.call(this,e),(0,l.A)((0,c.A)(r),"popupRef",p.createRef()),(0,l.A)((0,c.A)(r),"triggerRef",p.createRef()),(0,l.A)((0,c.A)(r),"portalContainer",void 0),(0,l.A)((0,c.A)(r),"attachId",void 0),(0,l.A)((0,c.A)(r),"clickOutsideHandler",void 0),(0,l.A)((0,c.A)(r),"touchOutsideHandler",void 0),(0,l.A)((0,c.A)(r),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,c.A)(r),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,c.A)(r),"mouseDownTimeout",void 0),(0,l.A)((0,c.A)(r),"focusTime",void 0),(0,l.A)((0,c.A)(r),"preClickTime",void 0),(0,l.A)((0,c.A)(r),"preTouchTime",void 0),(0,l.A)((0,c.A)(r),"delayTimer",void 0),(0,l.A)((0,c.A)(r),"hasPopupMouseDown",void 0),(0,l.A)((0,c.A)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,l.A)((0,c.A)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,l.A)((0,c.A)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.A)((0,c.A)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,h.A)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,c.A)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.A)((0,c.A)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,l.A)((0,c.A)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,l.A)((0,c.A)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.A)((0,c.A)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,l.A)((0,c.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.A)((0,c.A)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,l.A)((0,c.A)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,l.A)((0,c.A)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,h.A)(n,t)&&!r.isContextMenuOnly()||(0,h.A)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,l.A)((0,c.A)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,b.Ay)(r.triggerRef.current);if(t)return t}catch(e){}return m().findDOMNode((0,c.A)(r))})),(0,l.A)((0,c.A)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(O(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),u&&t.push(u(e)),t.join(" ")})),(0,l.A)((0,c.A)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,c=e.popupMotion,u=e.popupAnimation,s=e.popupTransitionName,l=e.popupStyle,f=e.mask,d=e.maskAnimation,m=e.maskTransitionName,v=e.maskMotion,h=e.zIndex,b=e.popup,g=e.stretch,y=e.alignPoint,w=e.mobile,A=e.forceRender,x=e.onPopupClick,O=r.state,E=O.popupVisible,k=O.point,S=r.getPopupAlign(),j={};return r.isMouseEnterToShow()&&(j.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(j.onMouseLeave=r.onPopupMouseLeave),j.onMouseDown=r.onPopupMouseDown,j.onTouchStart=r.onPopupMouseDown,p.createElement(nt,(0,o.A)({prefixCls:t,destroyPopupOnHide:n,visible:E,point:y&&k,className:i,align:S,onAlign:a,animation:u,getClassNameFromAlign:r.getPopupClassNameFromAlign},j,{stretch:g,getRootDomNode:r.getRootDomNode,style:l,mask:f,zIndex:h,transitionName:s,maskAnimation:d,maskTransitionName:m,maskMotion:v,ref:r.popupRef,motion:c,mobile:w,forceRender:A,onClick:x}),"function"==typeof b?b():b)})),(0,l.A)((0,c.A)(r),"attachParent",(function(e){v.A.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,v.A)((function(){r.attachParent(e)}))})),(0,l.A)((0,c.A)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.A)((0,c.A)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.A)((0,c.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.A)((0,c.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ct.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,y.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,y.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,y.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,y.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.A)((0,r.A)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,u=p.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=x()(u&&u.props&&u.props.className,a);l&&(s.className=l);var f=(0,r.A)({},s);(0,g.f3)(u)&&(f.ref=(0,g.K4)(this.triggerRef,u.ref));var d,m=p.cloneElement(u,f);return(e||this.popupRef.current||o)&&(d=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),p.createElement(rt.Provider,{value:this.triggerContextValue},m,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(p.Component),(0,l.A)(lt,"contextType",rt),(0,l.A)(lt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),lt);var st,lt},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(69514),o=n.n(r);function i(e,t,n,r){var i=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},54808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(82284),o=n(39155),i=n.n(o),a=n(69514),c=n.n(a);function u(e){return e instanceof HTMLElement||e instanceof SVGElement}function s(e){var t,n=function(e){return e&&"object"===(0,r.A)(e)&&u(e.nativeElement)?e.nativeElement:u(e)?e:null}(e);return n||(e instanceof i().Component?null===(t=c().findDOMNode)||void 0===t?void 0:t.call(c(),e):null)}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const c=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,c=e.children,u=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.A)()&&(s.current=o(),u.current=s.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==u.current&&u.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?i().createPortal(c,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3453),o=n(39155);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],c=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||c(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(68210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=i.has(t);if((0,o.Ay)(!u,"Warning: There may be circular references"),u)return!1;if(t===a)return!0;if(n&&c>1)return!1;i.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],a[l],s))return!1;return!0}if(t&&a&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(a)){var p=Object.keys(t);return p.length===Object.keys(a).length&&p.every((function(n){return e(t[n],a[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function c(e){a.delete(e)}var u=function(e){var t=i+=1;return function n(o){if(0===o)c(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};u.cancel=function(e){var t=a.get(e);return c(e),o(t)};const s=u},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>c,Xf:()=>a,f3:()=>u});var r=n(82284),o=n(39155),i=n(44363),a=(n(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}),c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){a(t,e)}))}},u=function(e){var t,n,r=(0,i.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===i.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===i.ForwardRef)};function s(e){return(0,o.isValidElement)(e)&&!(0,i.isFragment)(e)}Number(o.version.split(".")[0])},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r={},o=[];function i(e,t){}function a(e,t){}function c(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function u(e,t){c(i,e,t)}u.preMessage=function(e){o.push(e)},u.resetWarned=function(){r={}},u.noteOnce=function(e,t){c(a,e,t)};const s=u},22799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");
22
21
  /**
23
22
  * @license React
24
23
  * react-is.production.min.js
@@ -27,7 +26,7 @@ Ue=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Objec
27
26
  *
28
27
  * This source code is licensed under the MIT license found in the
29
28
  * LICENSE file in the root directory of this source tree.
30
- */function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case c:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case p:case v:case m:case u:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=p,t.isMemo=function(e){return b(e)===m}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},21020:(e,t,n)=>{"use strict";
29
+ */function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case c:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case p:case v:case m:case u:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=p,t.isFragment=function(e){return b(e)===i},t.isMemo=function(e){return b(e)===m}},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},21020:(e,t,n)=>{"use strict";
31
30
  /** @license React v17.0.2
32
31
  * react-jsx-runtime.production.min.js
33
32
  *
@@ -40,4 +39,5 @@ Ue=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Objec
40
39
  Copyright (c) 2018 Jed Watson.
41
40
  Licensed under the MIT License (MIT), see
42
41
  http://jedwatson.github.io/classnames
43
- */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},10467:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,i,c,u,"throw",e)}c(void 0)}))}}n.d(t,{A:()=>o})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(53954),o=n(52176),i=n(56822);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(64467);function o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(9417);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(96369),o=n(6986),i=n(27800),a=n(76562);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(92327);function i(e){var t=(0,o.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{Breadcrumbs:()=>b,default:()=>g});var e=i(39155),t=i.n(e),n=i(89315),r=i(69004),o=i(74848),c=i(55307),u=function(e){return(0,o.jsx)(c.A,Object.assign({dataName:"More",viewBox:"0 0 24 24",path:(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("g",Object.assign({id:"More",transform:"translate(-140 -354)"},{children:[(0,o.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 354)",fill:"none"}),(0,o.jsx)("path",{id:"icon",d:"M14.8,1.6a1.6,1.6,0,1,1,1.6,1.6A1.6,1.6,0,0,1,14.8,1.6Zm-7.4,0A1.6,1.6,0,1,1,9,3.2,1.6,1.6,0,0,1,7.4,1.6ZM0,1.6A1.6,1.6,0,1,1,1.6,3.2,1.6,1.6,0,0,1,0,1.6Z",transform:"translate(143 364.4)"})]}))})},e))},s=function(e){return(0,o.jsx)(c.A,Object.assign({dataName:"Return",viewBox:"0 0 24 24",path:(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("g",Object.assign({id:"Return",transform:"translate(-435 -1743)"},{children:[(0,o.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(435 1743)",fill:"none"}),(0,o.jsx)("path",{id:"icon",d:"M11.4,2.8H4.263L5.7,1.367A.8.8,0,0,0,4.565.235l-2.8,2.8a.8.8,0,0,0,0,1.131l2.8,2.8A.8.8,0,0,0,5.7,5.834L4.263,4.4H11.4a4.934,4.934,0,0,1,0,9.868H.8a.8.8,0,1,0,0,1.6H11.4A6.534,6.534,0,0,0,11.4,2.8",transform:"translate(438.067 1747.067)"})]}))})},e))},l=i(14552),p=i(7569);const f={zh:{back:"返回"},en:{back:"Back"}};i(35052);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}var b=function(o){var i=o.maxWidth,a=void 0===i?"160px":i,c=o.className,d=o.list,h=o.separator,b=void 0===h?"/":h,g=o.popoverClassName,y=o.isShrink,w=void 0===y||y,A=o.isBack,x=void 0!==A&&A,O=o.minNum,E=void 0===O?2:O,k=o.trigger,S=void 0===k?"hover":k,j=o.placement,P=void 0===j?"bottomLeft":j,C=o.backRender,T=o.onClickItem,M=o.onBack,_=o.style,N=(0,p.A)("Breadcrumbs",f),D=m((0,e.useState)(!1),2),R=D[0],L=D[1],z=m((0,e.useState)([]),2),H=z[0],B=z[1],V=(0,e.useRef)(),I=(0,e.useRef)({minNum:E,isBack:x,isShrink:w,timer:null,showMore:!1,hideArr:[],hidePos:0});I.current.isBack=x,I.current.showMore=R,I.current.isShrink=w,I.current.minNum=E,(0,e.useEffect)((function(){return window.addEventListener("resize",Y),function(){clearTimeout(I.current.timer),window.removeEventListener("resize",Y)}}),[]),(0,e.useEffect)((function(){var e=new Array(o.list.length).fill(!1);I.current.hideArr=e,B(e),U()}),[d]);var F,W=function(e,t){return function(){o.list.length-1===t||e.disabled||T&&T(e)}},Y=function(){U()},X=function(){V.current.classList.remove("".concat(l.n,"-breadcrumbs-calculation"))},U=function(e){if(!I.current.isShrink)return X();if(clearTimeout(I.current.timer),!e){I.current.hidePos=0,I.current.showMore=!1;var t=new Array(o.list.length).fill(!1);I.current.hideArr=t,B(t),L(!1)}return o.list.length<=I.current.minNum+1||I.current.hidePos===o.list.length-I.current.minNum-1?X():(V.current.classList.add("".concat(l.n,"-breadcrumbs-calculation")),void(I.current.timer=setTimeout((function(){V.current.clientWidth>V.current.querySelector(".breadcrumbs-list").clientWidth+(I.current.isBack?V.current.querySelector(".breadcrumbs-back").clientWidth:0)?X():(I.current.hidePos+=1,I.current.hideArr[I.current.hidePos]=!0,B(v(I.current.hideArr)),L(!0),U(!0))}),50)))},q=function(){var e="".concat(l.n,"-breadcrumbs-popover");return g&&(e+=" ".concat(g)),e};return t().createElement("div",{className:(F="".concat(l.n,"-breadcrumbs"),w&&(F+=" ".concat(l.n,"-breadcrumbs-shrink")),c&&(F+=" ".concat(c)),F),style:_,ref:V},t().createElement("ul",{className:"breadcrumbs-list"},d.map((function(o,i){if(!H[i]){var c="breadcrumbs-item";return i===d.length-1&&(c+=" breadcrumbs-item-current"),i===d.length-1||o.disabled||(c+=" breadcrumbs-item-click"),o.disabled&&(c+=" breadcrumbs-item-disabled"),t().createElement(e.Fragment,{key:i},t().createElement("li",{className:c,style:{maxWidth:o.maxWidth||a},onClick:W(o,i)},t().createElement(r.default,null,t().createElement("span",{className:"breadcrumbs-item-content"},o.label))),i!==d.length-1&&t().createElement("li",{className:"separator"},b),R&&0===i&&t().createElement(t().Fragment,null,t().createElement(n.default,{content:t().createElement("div",{className:"breadcrumbs-popover-content"},d.map((function(e,n){if(!H[n])return null;var r="breadcrumbs-popover-content-item";return n===d.length-1||e.disabled||(r+=" breadcrumbs-popover-content-item-click"),n===d.length-1&&(r+=" breadcrumbs-popover-content-item-current"),e.disabled&&(r+=" breadcrumbs-popover-content-item-disabled"),t().createElement("div",{key:n,className:r,onClick:W(e,n)},e.label)}))),overlayClassName:q(),trigger:S,placement:P,destroyTooltipOnHide:!0},t().createElement("li",{className:"breadcrumbs-item-more"},t().createElement(u,null))),!H[d.length-1]&&t().createElement("li",{className:"separator"},b)))}}))),x&&t().createElement("div",{className:"breadcrumbs-back"},t().createElement("span",{className:"line"}),t().createElement("div",{className:"breadcrumbs-back-content",onClick:function(){if(M)return M();if(!(o.list.length<2)){var e=o.list[o.list.length-2];W(e,o.list.length-2)()}}},C||t().createElement(t().Fragment,null,t().createElement(s,null),t().createElement("span",null,N({id:"back"}))))))};const g=b})(),a})()));
42
+ */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},10467:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,i,c,u,"throw",e)}c(void 0)}))}}n.d(t,{A:()=>o})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(53954),o=n(52176),i=n(56822);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(64467);function o(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(9417);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},90675:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
43
+ o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),c=new _(r||[]);return a(i,"_invoke",{value:P(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var m="suspendedStart",v="suspendedYield",h="executing",b="completed",g={};function y(){}function w(){}function A(){}var x={};p(x,u,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(N([])));E&&E!==n&&i.call(E,u)&&(x=E);var k=A.prototype=y.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,a,c,u){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==(0,r.A)(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,c,u)}),(function(e){n("throw",e,c,u)})):t.resolve(p).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,u)}))}u(s.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function P(t,n,r){var o=m;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=C(c,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=d(t,n,r);if("normal"===s.type){if(o=r.done?b:v,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=b,r.method="throw",r.arg=s.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError((0,r.A)(t)+" is not iterable")}return w.prototype=A,a(k,"constructor",{value:A,configurable:!0}),a(A,"constructor",{value:w,configurable:!0}),w.displayName=p(A,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,p(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(j.prototype),p(j.prototype,s,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(k),p(k,l,"Generator"),p(k,u,(function(){return this})),p(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(96369),o=n(6986),i=n(27800),a=n(76562);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284),o=n(92327);function i(e){var t=(0,o.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{Breadcrumbs:()=>b,default:()=>g});var e=i(39155),t=i.n(e),n=i(89315),r=i(69004),o=i(74848),c=i(55307),u=function(e){return(0,o.jsx)(c.A,Object.assign({dataName:"More",viewBox:"0 0 24 24",path:(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("g",Object.assign({id:"More",transform:"translate(-140 -354)"},{children:[(0,o.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 354)",fill:"none"}),(0,o.jsx)("path",{id:"icon",d:"M14.8,1.6a1.6,1.6,0,1,1,1.6,1.6A1.6,1.6,0,0,1,14.8,1.6Zm-7.4,0A1.6,1.6,0,1,1,9,3.2,1.6,1.6,0,0,1,7.4,1.6ZM0,1.6A1.6,1.6,0,1,1,1.6,3.2,1.6,1.6,0,0,1,0,1.6Z",transform:"translate(143 364.4)"})]}))})},e))},s=function(e){return(0,o.jsx)(c.A,Object.assign({dataName:"Return",viewBox:"0 0 24 24",path:(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("g",Object.assign({id:"Return",transform:"translate(-435 -1743)"},{children:[(0,o.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(435 1743)",fill:"none"}),(0,o.jsx)("path",{id:"icon",d:"M11.4,2.8H4.263L5.7,1.367A.8.8,0,0,0,4.565.235l-2.8,2.8a.8.8,0,0,0,0,1.131l2.8,2.8A.8.8,0,0,0,5.7,5.834L4.263,4.4H11.4a4.934,4.934,0,0,1,0,9.868H.8a.8.8,0,1,0,0,1.6H11.4A6.534,6.534,0,0,0,11.4,2.8",transform:"translate(438.067 1747.067)"})]}))})},e))},l=i(14552),p=i(7569);const f={zh:{back:"返回"},en:{back:"Back"}};i(35052);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}var b=function(o){var i=o.maxWidth,a=void 0===i?"160px":i,c=o.className,d=o.list,h=o.separator,b=void 0===h?"/":h,g=o.popoverClassName,y=o.isShrink,w=void 0===y||y,A=o.isBack,x=void 0!==A&&A,O=o.minNum,E=void 0===O?2:O,k=o.trigger,S=void 0===k?"hover":k,j=o.placement,P=void 0===j?"bottomLeft":j,C=o.backRender,T=o.onClickItem,M=o.onBack,_=o.style,N=(0,p.A)("Breadcrumbs",f),D=m((0,e.useState)(!1),2),R=D[0],L=D[1],z=m((0,e.useState)([]),2),H=z[0],B=z[1],V=(0,e.useRef)(),I=(0,e.useRef)({minNum:E,isBack:x,isShrink:w,timer:null,showMore:!1,hideArr:[],hidePos:0});I.current.isBack=x,I.current.showMore=R,I.current.isShrink=w,I.current.minNum=E,(0,e.useEffect)((function(){return window.addEventListener("resize",Y),function(){clearTimeout(I.current.timer),window.removeEventListener("resize",Y)}}),[]),(0,e.useEffect)((function(){var e=new Array(o.list.length).fill(!1);I.current.hideArr=e,B(e),U()}),[d]);var F,W=function(e,t){return function(){o.list.length-1===t||e.disabled||T&&T(e)}},Y=function(){U()},X=function(){V.current.classList.remove("".concat(l.n,"-breadcrumbs-calculation"))},U=function(e){if(!I.current.isShrink)return X();if(clearTimeout(I.current.timer),!e){I.current.hidePos=0,I.current.showMore=!1;var t=new Array(o.list.length).fill(!1);I.current.hideArr=t,B(t),L(!1)}return o.list.length<=I.current.minNum+1||I.current.hidePos===o.list.length-I.current.minNum-1?X():(V.current.classList.add("".concat(l.n,"-breadcrumbs-calculation")),void(I.current.timer=setTimeout((function(){V.current.clientWidth>V.current.querySelector(".breadcrumbs-list").clientWidth+(I.current.isBack?V.current.querySelector(".breadcrumbs-back").clientWidth:0)?X():(I.current.hidePos+=1,I.current.hideArr[I.current.hidePos]=!0,B(v(I.current.hideArr)),L(!0),U(!0))}),50)))},q=function(){var e="".concat(l.n,"-breadcrumbs-popover");return g&&(e+=" ".concat(g)),e};return t().createElement("div",{className:(F="".concat(l.n,"-breadcrumbs"),w&&(F+=" ".concat(l.n,"-breadcrumbs-shrink")),c&&(F+=" ".concat(c)),F),style:_,ref:V},t().createElement("ul",{className:"breadcrumbs-list"},d.map((function(o,i){if(!H[i]){var c="breadcrumbs-item";return i===d.length-1&&(c+=" breadcrumbs-item-current"),i===d.length-1||o.disabled||(c+=" breadcrumbs-item-click"),o.disabled&&(c+=" breadcrumbs-item-disabled"),t().createElement(e.Fragment,{key:i},t().createElement("li",{className:c,style:{maxWidth:o.maxWidth||a},onClick:W(o,i)},t().createElement(r.default,null,t().createElement("span",{className:"breadcrumbs-item-content"},o.label))),i!==d.length-1&&t().createElement("li",{className:"separator"},b),R&&0===i&&t().createElement(t().Fragment,null,t().createElement(n.default,{content:t().createElement("div",{className:"breadcrumbs-popover-content"},d.map((function(e,n){if(!H[n])return null;var r="breadcrumbs-popover-content-item";return n===d.length-1||e.disabled||(r+=" breadcrumbs-popover-content-item-click"),n===d.length-1&&(r+=" breadcrumbs-popover-content-item-current"),e.disabled&&(r+=" breadcrumbs-popover-content-item-disabled"),t().createElement("div",{key:n,className:r,onClick:W(e,n)},e.label)}))),overlayClassName:q(),trigger:S,placement:P,destroyTooltipOnHide:!0},t().createElement("li",{className:"breadcrumbs-item-more"},t().createElement(u,null))),!H[d.length-1]&&t().createElement("li",{className:"separator"},b)))}}))),x&&t().createElement("div",{className:"breadcrumbs-back"},t().createElement("span",{className:"line"}),t().createElement("div",{className:"breadcrumbs-back-content",onClick:function(){if(M)return M();if(!(o.list.length<2)){var e=o.list[o.list.length-2];W(e,o.list.length-2)()}}},C||t().createElement(t().Fragment,null,t().createElement(s,null),t().createElement("span",null,N({id:"back"}))))))};const g=b})(),a})()));