@para-ui/core 4.0.21 → 4.0.22

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 (74) hide show
  1. package/Cascader/index.js +2 -2
  2. package/ComboSelect/index.js +1 -1
  3. package/DynamicMultiBox/index.js +1 -1
  4. package/Form/index.js +2 -2
  5. package/FormItem/index.js +2 -2
  6. package/Pagination/index.js +2 -2
  7. package/README.md +4 -0
  8. package/Tree/index.js +2 -2
  9. package/_verture/{index-f59b0bc0.js → index-066d47d4.js} +594 -591
  10. package/_verture/{index-c77ccb98.js → index-b892f976.js} +5 -1
  11. package/index.js +3 -3
  12. package/package.json +1 -1
  13. package/umd/AutoBox.js +2 -2
  14. package/umd/AutoTips.js +4 -4
  15. package/umd/Breadcrumbs.js +4 -4
  16. package/umd/Button.js +4 -4
  17. package/umd/ButtonGroup.js +4 -4
  18. package/umd/Cascader.js +3 -3
  19. package/umd/Checkbox.js +2 -2
  20. package/umd/CheckboxGroup.js +2 -2
  21. package/umd/Collapse.js +2 -2
  22. package/umd/CollapseBox.js +1 -1
  23. package/umd/ComboSelect.js +3 -3
  24. package/umd/CopyText.js +4 -4
  25. package/umd/CycleSelector.js +2 -2
  26. package/umd/DatePicker.js +4 -4
  27. package/umd/Descriptions.js +2 -2
  28. package/umd/Desktop.js +2 -2
  29. package/umd/Drawer.js +2 -2
  30. package/umd/Dropdown.js +2 -2
  31. package/umd/DynamicMultiBox.js +3 -3
  32. package/umd/Form.js +3 -3
  33. package/umd/FormItem.js +3 -3
  34. package/umd/FunctionModal.js +5 -5
  35. package/umd/Help.js +2 -2
  36. package/umd/InputLang.js +4 -4
  37. package/umd/InputNumber.js +2 -2
  38. package/umd/Label.js +2 -2
  39. package/umd/Menu.js +2 -2
  40. package/umd/Modal.js +6 -6
  41. package/umd/MultiBox.js +2 -2
  42. package/umd/Notification.js +1 -1
  43. package/umd/OperateBtn.js +2 -2
  44. package/umd/PageHeader.js +2 -2
  45. package/umd/Pagination.js +2 -2
  46. package/umd/PopConfirm.js +2 -2
  47. package/umd/PopMenu.js +2 -2
  48. package/umd/Popover.js +2 -2
  49. package/umd/Progress.js +1 -1
  50. package/umd/QuickReply.js +2 -2
  51. package/umd/Radio.js +2 -2
  52. package/umd/RadioGroup.js +2 -2
  53. package/umd/Search.js +2 -2
  54. package/umd/Select.js +2 -2
  55. package/umd/SelectInput.js +2 -2
  56. package/umd/Selector.js +2 -2
  57. package/umd/SelectorPicker.js +2 -2
  58. package/umd/SingleBox.js +2 -2
  59. package/umd/Slider.js +2 -2
  60. package/umd/Stepper.js +2 -2
  61. package/umd/Switch.js +2 -2
  62. package/umd/Table.js +2 -2
  63. package/umd/Tabs.js +2 -2
  64. package/umd/Tag.js +2 -2
  65. package/umd/TextEditor.js +17 -17
  66. package/umd/TextField.js +2 -2
  67. package/umd/TimePicker.js +4 -4
  68. package/umd/Title.js +6 -6
  69. package/umd/ToggleButton.js +4 -4
  70. package/umd/Tooltip.js +2 -2
  71. package/umd/Transfer.js +2 -2
  72. package/umd/Tree.js +2 -2
  73. package/umd/Upload.js +2 -2
  74. /package/_verture/{index-fa1ee687.js → index-4b965dd7.js} +0 -0
@@ -18,7 +18,7 @@ object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
20
  */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))r.call(a,s)&&(c[s]=a[s]);if(t){i=t(a);for(var u=0;u<i.length;u++)n.call(a,i[u])&&(c[i[u]]=a[i[u]])}}return c}},44785:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(64467),o=r(89379),a=r(3453),i=r(82284),c=r(39155),l=r(66588),s=r(8719),u=r(46942),p=r.n(u),d=r(80371),f=r(25931),m=r(25318),h=r(72137),v=r(58515);const b=function(e){var t=e;function r(e){return!(!e.motionName||!t)}"object"===(0,i.A)(e)&&(t=e.transitionSupport);var u=c.forwardRef((function(e,t){var i=e.visible,u=void 0===i||i,b=e.removeOnLeave,g=void 0===b||b,y=e.forceRender,x=e.children,w=e.motionName,k=e.leavedClassName,E=e.eventProps,A=r(e),O=(0,c.useRef)(),S=(0,c.useRef)();var C=(0,m.A)(A,u,(function(){try{return(0,l.A)(O.current||S.current)}catch(e){return null}}),e),j=(0,a.A)(C,4),P=j[0],M=j[1],N=j[2],T=j[3],_=c.useRef(T);T&&(_.current=!0);var D=(0,c.useRef)(t);D.current=t;var L,R=c.useCallback((function(e){O.current=e,(0,s.Xf)(D.current,e)}),[]),z=(0,o.A)((0,o.A)({},E),{},{visible:u});if(x)if(P!==f.SF&&r(e)){var I,H;M===f.px?H="prepare":(0,v.$m)(M)?H="active":M===f.Mv&&(H="start"),L=x((0,o.A)((0,o.A)({},z),{},{className:p()((0,d.by)(w,P),(I={},(0,n.A)(I,(0,d.by)(w,"".concat(P,"-").concat(H)),H),(0,n.A)(I,w,"string"==typeof w),I)),style:N}),R)}else L=T?x((0,o.A)({},z),R):!g&&_.current?x((0,o.A)((0,o.A)({},z),{},{className:k}),R):y?x((0,o.A)((0,o.A)({},z),{},{style:{display:"none"}}),R):null;else L=null;return c.createElement(h.A,{ref:S},L)}));return u.displayName="CSSMotion",u}(d.J1)},97333:(e,t,r)=>{"use strict";var n=r(58168),o=r(80045),a=r(89379),i=r(23029),c=r(92901),l=r(85501),s=r(29426),u=r(39155),p=r(44785),d=r(80371),f=r(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,r=function(e){(0,l.A)(p,e);var r=(0,s.A)(p);function p(){var e;return(0,i.A)(this,p),(e=r.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,a.A)((0,a.A)({},e),{},{status:f.e8})}))}}))},e}return(0,c.A)(p,[{key:"render",value:function(){var e=this,r=this.state.keyEntities,a=this.props,i=a.component,c=a.children,l=a.onVisibleChanged,s=(0,o.A)(a,["component","children","onVisibleChanged"]),p=i||u.Fragment,d={};return m.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,u.createElement(p,s,r.map((function(r){var a=r.status,i=(0,o.A)(r,["status"]),s=a===f.bK||a===f.xI;return u.createElement(t,(0,n.A)({},d,{key:i.key,visible:s,eventProps:i,onVisibleChanged:function(t){null==l||l(t,{key:i.key}),t||e.removeKey(i.key)}}),c)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.keys,n=t.keyEntities,o=(0,f.Ss)(r);return{keyEntities:(0,f.y$)(n,o).filter((function(e){var t=n.find((function(t){var r=t.key;return e.key===r}));return!t||t.status!==f.e8||e.status!==f.au}))}}}]),p}(u.Component);r.defaultProps={component:"div"}}(d.J1)},72137:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(23029),o=r(92901),a=r(85501),i=r(29426),c=r(39155);const l=function(e){(0,a.A)(r,e);var t=(0,i.A)(r);function r(){return(0,n.A)(this,r),t.apply(this,arguments)}return(0,o.A)(r,[{key:"render",value:function(){return this.props.children}}]),r}(c.Component)},85849:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(39155),o=r(80371);const a=function(e){var t=(0,n.useRef)(),r=(0,n.useRef)(e);r.current=e;var a=n.useCallback((function(e){r.current(e)}),[]);function i(e){e&&(e.removeEventListener(o.m8,a),e.removeEventListener(o.Vc,a))}return n.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(o.m8,a),e.addEventListener(o.Vc,a),t.current=e)},i]}},43982:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(39155);const o=(0,r(20998).A)()?n.useLayoutEffect:n.useEffect},84560:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(39155),o=r(25371);const a=function(){var e=n.useRef(null);function t(){o.A.cancel(e.current)}return n.useEffect((function(){return function(){t()}}),[]),[function r(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,o.A)((function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)}));e.current=i},t]}},92659:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(3453),o=r(39155);function a(e){var t=(0,o.useRef)(!1),r=(0,o.useState)(e),a=(0,n.A)(r,2),i=a[0],c=a[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[i,function(e){t.current||c(e)}]}},25318:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(89379),o=r(64467),a=r(3453),i=r(39155),c=r(25931),l=r(92659),s=r(43982),u=r(58515),p=r(85849);function d(e,t,r,d){var f=d.motionEnter,m=void 0===f||f,h=d.motionAppear,v=void 0===h||h,b=d.motionLeave,g=void 0===b||b,y=d.motionDeadline,x=d.motionLeaveImmediately,w=d.onAppearPrepare,k=d.onEnterPrepare,E=d.onLeavePrepare,A=d.onAppearStart,O=d.onEnterStart,S=d.onLeaveStart,C=d.onAppearActive,j=d.onEnterActive,P=d.onLeaveActive,M=d.onAppearEnd,N=d.onEnterEnd,T=d.onLeaveEnd,_=d.onVisibleChanged,D=(0,l.A)(),L=(0,a.A)(D,2),R=L[0],z=L[1],I=(0,l.A)(c.SF),H=(0,a.A)(I,2),F=H[0],B=H[1],V=(0,l.A)(null),Z=(0,a.A)(V,2),$=Z[0],U=Z[1],W=(0,i.useRef)(!1),q=(0,i.useRef)(null),Y=(0,i.useRef)(!1),K=(0,i.useRef)(null);function X(){return r()||K.current}var G=(0,i.useRef)(!1);function J(e){var t,r=X();e&&!e.deadline&&e.target!==r||(F===c.Tv&&G.current?t=null==M?void 0:M(r,e):F===c.Wd&&G.current?t=null==N?void 0:N(r,e):F===c.dp&&G.current&&(t=null==T?void 0:T(r,e)),!1===t||Y.current||(B(c.SF),U(null)))}var Q=(0,p.A)(J),ee=(0,a.A)(Q,1)[0],te=i.useMemo((function(){var e,t,r;switch(F){case"appear":return e={},(0,o.A)(e,c.px,w),(0,o.A)(e,c.Mv,A),(0,o.A)(e,c.m7,C),e;case"enter":return t={},(0,o.A)(t,c.px,k),(0,o.A)(t,c.Mv,O),(0,o.A)(t,c.m7,j),t;case"leave":return r={},(0,o.A)(r,c.px,E),(0,o.A)(r,c.Mv,S),(0,o.A)(r,c.m7,P),r;default:return{}}}),[F]),re=(0,u.Ay)(F,(function(e){if(e===c.px){var t=te[c.px];return t?t(X()):u.es}var r;ae in te&&U((null===(r=te[ae])||void 0===r?void 0:r.call(te,X(),null))||null);return ae===c.m7&&(ee(X()),y>0&&(clearTimeout(q.current),q.current=setTimeout((function(){J({deadline:!0})}),y))),u.qB})),ne=(0,a.A)(re,2),oe=ne[0],ae=ne[1],ie=(0,u.$m)(ae);G.current=ie,(0,s.A)((function(){z(t);var r,n=W.current;(W.current=!0,e)&&(!n&&t&&v&&(r=c.Tv),n&&t&&m&&(r=c.Wd),(n&&!t&&g||!n&&x&&!t&&g)&&(r=c.dp),r&&(B(r),oe()))}),[t]),(0,i.useEffect)((function(){(F===c.Tv&&!v||F===c.Wd&&!m||F===c.dp&&!g)&&B(c.SF)}),[v,m,g]),(0,i.useEffect)((function(){return function(){clearTimeout(q.current),Y.current=!0}}),[]),(0,i.useEffect)((function(){void 0!==R&&F===c.SF&&(null==_||_(R))}),[R,F]);var ce=$;return te[c.px]&&ae===c.Mv&&(ce=(0,n.A)({transition:"none"},ce)),[F,ae,ce,null!=R?R:t]}},58515:(e,t,r)=>{"use strict";r.d(t,{$m:()=>p,Ay:()=>d,es:()=>s,qB:()=>u});var n=r(3453),o=r(39155),a=r(25931),i=r(43982),c=r(84560),l=[a.px,a.Mv,a.m7,a.Hs],s=!1,u=!0;function p(e){return e===a.m7||e===a.Hs}const d=function(e,t){var r=o.useState(a.cE),u=(0,n.A)(r,2),p=u[0],d=u[1],f=(0,c.A)(),m=(0,n.A)(f,2),h=m[0],v=m[1];return(0,i.A)((function(){if(p!==a.cE&&p!==a.Hs){var e=l.indexOf(p),r=l[e+1],n=t(p);n===s?d(r):h((function(e){function t(){e.isCanceled()||d(r)}!0===n?t():Promise.resolve(n).then(t)}))}}),[e,p]),o.useEffect((function(){return function(){v()}}),[]),[function(){d(a.px)},p]}},30156:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(44785);r(97333);const o=n.A},25931:(e,t,r)=>{"use strict";r.d(t,{Hs:()=>p,Mv:()=>s,SF:()=>n,Tv:()=>o,Wd:()=>a,cE:()=>c,dp:()=>i,m7:()=>u,px:()=>l});var n="none",o="appear",a="enter",i="leave",c="none",l="prepare",s="start",u="active",p="end"},29710:(e,t,r)=>{"use strict";r.d(t,{Ss:()=>u,au:()=>c,bK:()=>a,e8:()=>l,xI:()=>i,y$:()=>p});var n=r(89379),o=r(82284),a="add",i="keep",c="remove",l="removed";function s(e){var t;return t=e&&"object"===(0,o.A)(e)&&"key"in e?e:{key:e},(0,n.A)((0,n.A)({},t),{},{key:String(t.key)})}function u(){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]:[],r=[],o=0,l=t.length,s=u(e),p=u(t);s.forEach((function(e){for(var t=!1,s=o;s<l;s+=1){var u=p[s];if(u.key===e.key){o<s&&(r=r.concat(p.slice(o,s).map((function(e){return(0,n.A)((0,n.A)({},e),{},{status:a})}))),o=s),r.push((0,n.A)((0,n.A)({},u),{},{status:i})),o+=1,t=!0;break}}t||r.push((0,n.A)((0,n.A)({},e),{},{status:c}))})),o<l&&(r=r.concat(p.slice(o).map((function(e){return(0,n.A)((0,n.A)({},e),{},{status:a})}))));var d={};return r.forEach((function(e){var t=e.key;d[t]=(d[t]||0)+1})),Object.keys(d).filter((function(e){return d[e]>1})).forEach((function(e){(r=r.filter((function(t){var r=t.key,n=t.status;return r!==e||n!==c}))).forEach((function(t){t.key===e&&(t.status=i)}))})),r}},80371:(e,t,r)=>{"use strict";r.d(t,{J1:()=>v,Vc:()=>b,by:()=>y,m8:()=>g});var n=r(82284),o=r(20998);function a(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}var i,c,l,s=(i=(0,o.A)(),c="undefined"!=typeof window?window:{},l={animationend:a("Animation","AnimationEnd"),transitionend:a("Transition","TransitionEnd")},i&&("AnimationEvent"in c||delete l.animationend.animation,"TransitionEvent"in c||delete l.transitionend.transition),l),u={};if((0,o.A)()){var p=document.createElement("div");u=p.style}var d={};function f(e){if(d[e])return d[e];var t=s[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in u)return d[e]=t[a],d[e]}return""}var m=f("animationend"),h=f("transitionend"),v=!(!m||!h),b=m||"animationend",g=h||"transitionend";function y(e,t){return e?"object"===(0,n.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34307:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n=r(58168),o=r(82284),a=r(89379),i=r(80045),c=r(39155),l=r(1748),s={adjustX:1,adjustY:1},u=[0,0],p={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:u}};const d=function(e){var t=e.overlay,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:o},"function"==typeof t?t():t)};var f=function(e,t){var r=e.overlayClassName,s=e.trigger,u=void 0===s?["hover"]:s,f=e.mouseEnterDelay,m=void 0===f?0:f,h=e.mouseLeaveDelay,v=void 0===h?.1:h,b=e.overlayStyle,g=e.prefixCls,y=void 0===g?"rc-tooltip":g,x=e.children,w=e.onVisibleChange,k=e.afterVisibleChange,E=e.transitionName,A=e.animation,O=e.motion,S=e.placement,C=void 0===S?"right":S,j=e.align,P=void 0===j?{}:j,M=e.destroyTooltipOnHide,N=void 0!==M&&M,T=e.defaultVisible,_=e.getTooltipContainer,D=e.overlayInnerStyle,L=(0,i.A)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),R=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return R.current}));var z=(0,a.A)({},L);"visible"in e&&(z.popupVisible=e.visible);var I=!1,H=!1;if("boolean"==typeof N)I=N;else if(N&&"object"===(0,o.A)(N)){var F=N.keepParent;I=!0===F,H=!1===F}return c.createElement(l.A,(0,n.A)({popupClassName:r,prefixCls:y,popup:function(){var t=e.arrowContent,r=void 0===t?null:t,n=e.overlay,o=e.id;return[c.createElement("div",{className:"".concat(y,"-arrow"),key:"arrow"},r),c.createElement(d,{key:"content",prefixCls:y,id:o,overlay:n,overlayInnerStyle:D})]},action:u,builtinPlacements:p,popupPlacement:C,ref:R,popupAlign:P,getPopupContainer:_,onPopupVisibleChange:w,afterPopupVisibleChange:k,popupTransitionName:E,popupAnimation:A,popupMotion:O,defaultPopupVisible:T,destroyPopupOnHide:I,autoDestroy:H,mouseLeaveDelay:v,popupStyle:b,mouseEnterDelay:m},z),x)};const m=(0,c.forwardRef)(f)},94934:(e,t)=>{"use strict";t.DD=void 0;var r={adjustX:1,adjustY:1},n=[0,0],o={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:n},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:n},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:n},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:n},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:n},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:n},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:n},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:n},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:n},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:n},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:n},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:n}};t.DD=o},1748:(e,t,r)=>{"use strict";r.d(t,{A:()=>lt});var n=r(89379),o=r(58168),a=r(23029),i=r(92901),c=r(9417),l=r(85501),s=r(29426),u=r(64467),p=r(39155),d=r.n(p),f=r(69514),m=r.n(f),h=r(25371),v=r(54808),b=r(66588),g=r(8719),y=r(69916),x=r(88822),w=r(46942),k=r.n(w);function E(e,t,r){return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var A=r(3453),O=r(80045),S=r(68430),C=r(30156);function j(e){var t=e.prefixCls,r=e.motion,n=e.animation,o=e.transitionName;return r||(n?{motionName:"".concat(t,"-").concat(n)}:o?{motionName:o}:null)}function P(e){var t=e.prefixCls,r=e.visible,a=e.zIndex,i=e.mask,c=e.maskMotion,l=e.maskAnimation,s=e.maskTransitionName;if(!i)return null;var u={};return(c||s||l)&&(u=(0,n.A)({motionAppear:!0},j({motion:c,prefixCls:t,transitionName:s,animation:l}))),p.createElement(C.A,(0,o.A)({},u,{visible:r,removeOnLeave:!0}),(function(e){var r=e.className;return p.createElement("div",{style:{zIndex:a},className:k()("".concat(t,"-mask"),r)})}))}var M,N=r(82284);function T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?T(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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 L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var R={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function z(){if(void 0!==M)return M;M="";var e=document.createElement("p").style;for(var t in R)t+"Transform"in e&&(M=t);return M}function I(){return z()?"".concat(z(),"TransitionProperty"):"transitionProperty"}function H(){return z()?"".concat(z(),"Transform"):"transform"}function F(e,t){var r=I();r&&(e.style[r]=t,"transitionProperty"!==r&&(e.style.transitionProperty=t))}function B(e,t){var r=H();r&&(e.style[r]=t,"transform"!==r&&(e.style.transform=t))}var V,Z=/matrix\((.*)\)/,$=/matrix3d\((.*)\)/;function U(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function W(e,t,r){var n=r;if("object"!==D(t))return void 0!==n?("number"==typeof n&&(n="".concat(n,"px")),void(e.style[t]=n)):V(e,t);for(var o in t)t.hasOwnProperty(o)&&W(e,o,t[o])}function q(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var o=e.document;"number"!=typeof(r=o.documentElement[n])&&(r=o.body[n])}return r}function Y(e){return q(e)}function K(e){return q(e,!0)}function X(e){var t=function(e){var t,r,n,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return t=e.getBoundingClientRect(),r=Math.floor(t.left),n=Math.floor(t.top),{left:r-=i.clientLeft||a.clientLeft||0,top:n-=i.clientTop||a.clientTop||0}}(e),r=e.ownerDocument,n=r.defaultView||r.parentWindow;return t.left+=Y(n),t.top+=K(n),t}function G(e){return null!=e&&e==e.window}function J(e){return G(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",re="runtimeStyle",ne="left";function oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ae(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ie(e,t,r){"static"===W(e,"position")&&(e.style.position="relative");var n=-999,o=-999,a=oe("left",r),i=oe("top",r),c=ae(a),l=ae(i);"left"!==a&&(n=999),"top"!==i&&(o=999);var s,u="",p=X(e);("left"in t||"top"in t)&&(u=(s=e).style.transitionProperty||s.style[I()]||"",F(e,"none")),"left"in t&&(e.style[c]="",e.style[a]="".concat(n,"px")),"top"in t&&(e.style[l]="",e.style[i]="".concat(o,"px")),U(e);var d=X(e),f={};for(var m in t)if(t.hasOwnProperty(m)){var h=oe(m,r),v="left"===m?n:o,b=p[m]-d[m];f[h]=h===m?v+b:v-b}W(e,f),U(e),("left"in t||"top"in t)&&F(e,u);var g={};for(var y in t)if(t.hasOwnProperty(y)){var x=oe(y,r),w=t[y]-p[y];g[x]=y===x?f[x]+w:f[x]-w}W(e,g)}function ce(e,t){var r=X(e),n=function(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("transform")||t.getPropertyValue(H());if(r&&"none"!==r){var n=r.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}(e),o={x:n.x,y:n.y};"left"in t&&(o.x=n.x+t.left-r.left),"top"in t&&(o.y=n.y+t.top-r.top),function(e,t){var r=window.getComputedStyle(e,null),n=r.getPropertyValue("transform")||r.getPropertyValue(H());if(n&&"none"!==n){var o,a=n.match(Z);a?((o=(a=a[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,B(e,"matrix(".concat(o.join(","),")"))):((o=n.match($)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,B(e,"matrix3d(".concat(o.join(","),")")))}else B(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function le(e,t){for(var r=0;r<e.length;r++)t(e[r])}function se(e){return"border-box"===V(e,"boxSizing")}"undefined"!=typeof window&&(V=window.getComputedStyle?function(e,t,r){var n=r,o="",a=J(e);return(n=n||a.defaultView.getComputedStyle(e,null))&&(o=n.getPropertyValue(t)||n[t]),o}:function(e,t){var r=e[te]&&e[te][t];if(Q.test(r)&&!ee.test(t)){var n=e.style,o=n[ne],a=e[re][ne];e[re][ne]=e[te][ne],n[ne]="fontSize"===t?"1em":r||0,r=n.pixelLeft+"px",n[ne]=o,e[re][ne]=a}return""===r?"auto":r});var ue=["margin","border","padding"],pe=-1,de=2,fe=1;function me(e,t,r){var n,o,a,i=0;for(o=0;o<t.length;o++)if(n=t[o])for(a=0;a<r.length;a++){var c=void 0;c="border"===n?"".concat(n).concat(r[a],"Width"):n+r[a],i+=parseFloat(V(e,c))||0}return i}var he={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 ve(e,t,r){var n=r;if(G(e))return"width"===t?he.viewportWidth(e):he.viewportHeight(e);if(9===e.nodeType)return"width"===t?he.docWidth(e):he.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],a="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),i=se(e),c=0;(null==a||a<=0)&&(a=void 0,(null==(c=V(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=Math.floor(parseFloat(c))||0),void 0===n&&(n=i?fe:pe);var l=void 0!==a||i,s=a||c;return n===pe?l?s-me(e,["border","padding"],o):c:l?n===fe?s:s+(n===de?-me(e,["border"],o):me(e,["margin"],o)):c+me(e,ue.slice(n),o)}le(["Width","Height"],(function(e){he["doc".concat(e)]=function(t){var r=t.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],he["viewport".concat(e)](r))},he["viewport".concat(e)]=function(t){var r="client".concat(e),n=t.document,o=n.body,a=n.documentElement[r];return"CSS1Compat"===n.compatMode&&a||o&&o[r]||a}}));var be={position:"absolute",visibility:"hidden",display:"block"};function ge(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=t[0];return 0!==o.offsetWidth?n=ve.apply(void 0,t):function(e,t,r){var n,o={},a=e.style;for(n in t)t.hasOwnProperty(n)&&(o[n]=a[n],a[n]=t[n]);for(n in r.call(e),t)t.hasOwnProperty(n)&&(a[n]=o[n])}(o,be,(function(){n=ve.apply(void 0,t)})),n}function ye(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}le(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);he["outer".concat(t)]=function(t,r){return t&&ge(t,e,r?0:fe)};var r="width"===e?["Left","Right"]:["Top","Bottom"];he[e]=function(t,n){var o=n;return void 0!==o?t?(se(t)&&(o+=me(t,["padding","border"],r)),W(t,e,o)):void 0:t&&ge(t,e,pe)}}));var xe={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,r){if(void 0===t)return X(e);!function(e,t,r){if(r.ignoreShake){var n=X(e),o=n.left.toFixed(0),a=n.top.toFixed(0),i=t.left.toFixed(0),c=t.top.toFixed(0);if(o===i&&a===c)return}r.useCssRight||r.useCssBottom?ie(e,t,r):r.useCssTransform&&H()in document.body.style?ce(e,t):ie(e,t,r)}(e,t,r||{})},isWindow:G,each:le,css:W,clone:function(e){var t,r={};for(t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(r.overflow[t]=e.overflow[t]);return r},mix:ye,getWindowScrollLeft:function(e){return Y(e)},getWindowScrollTop:function(e){return K(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)xe.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ye(xe,he);var we=xe.getParent;function ke(e){if(xe.isWindow(e)||9===e.nodeType)return null;var t,r=xe.getDocument(e).body,n=xe.css(e,"position");if(!("fixed"===n||"absolute"===n))return"html"===e.nodeName.toLowerCase()?null:we(e);for(t=we(e);t&&t!==r&&9!==t.nodeType;t=we(t))if("static"!==(n=xe.css(t,"position")))return t;return null}var Ee=xe.getParent;function Ae(e,t){for(var r={left:0,right:1/0,top:0,bottom:1/0},n=ke(e),o=xe.getDocument(e),a=o.defaultView||o.parentWindow,i=o.body,c=o.documentElement;n;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===n.clientWidth||n===i||n===c||"visible"===xe.css(n,"overflow")){if(n===i||n===c)break}else{var l=xe.offset(n);l.left+=n.clientLeft,l.top+=n.clientTop,r.top=Math.max(r.top,l.top),r.right=Math.min(r.right,l.left+n.clientWidth),r.bottom=Math.min(r.bottom,l.top+n.clientHeight),r.left=Math.max(r.left,l.left)}n=ke(n)}var s=null;xe.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===xe.css(e,"position")&&(e.style.position="fixed"));var u=xe.getWindowScrollLeft(a),p=xe.getWindowScrollTop(a),d=xe.viewportWidth(a),f=xe.viewportHeight(a),m=c.scrollWidth,h=c.scrollHeight,v=window.getComputedStyle(i);if("hidden"===v.overflowX&&(m=a.innerWidth),"hidden"===v.overflowY&&(h=a.innerHeight),e.style&&(e.style.position=s),t||function(e){if(xe.isWindow(e)||9===e.nodeType)return!1;var t=xe.getDocument(e),r=t.body,n=null;for(n=Ee(e);n&&n!==r&&n!==t;n=Ee(n))if("fixed"===xe.css(n,"position"))return!0;return!1}(e))r.left=Math.max(r.left,u),r.top=Math.max(r.top,p),r.right=Math.min(r.right,u+d),r.bottom=Math.min(r.bottom,p+f);else{var b=Math.max(m,u+d);r.right=Math.min(r.right,b);var g=Math.max(h,p+f);r.bottom=Math.min(r.bottom,g)}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function Oe(e){var t,r,n;if(xe.isWindow(e)||9===e.nodeType){var o=xe.getWindow(e);t={left:xe.getWindowScrollLeft(o),top:xe.getWindowScrollTop(o)},r=xe.viewportWidth(o),n=xe.viewportHeight(o)}else t=xe.offset(e),r=xe.outerWidth(e),n=xe.outerHeight(e);return t.width=r,t.height=n,t}function Se(e,t){var r=t.charAt(0),n=t.charAt(1),o=e.width,a=e.height,i=e.left,c=e.top;return"c"===r?c+=a/2:"b"===r&&(c+=a),"c"===n?i+=o/2:"r"===n&&(i+=o),{left:i,top:c}}function Ce(e,t,r,n,o){var a=Se(t,r[1]),i=Se(e,r[0]),c=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-c[0]+n[0]-o[0]),top:Math.round(e.top-c[1]+n[1]-o[1])}}function je(e,t,r){return e.left<r.left||e.left+t.width>r.right}function Pe(e,t,r){return e.top<r.top||e.top+t.height>r.bottom}function Me(e,t,r){var n=[];return xe.each(e,(function(e){n.push(e.replace(t,(function(e){return r[e]})))})),n}function Ne(e,t){return e[t]=-e[t],e}function Te(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function _e(e,t){e[0]=Te(e[0],t.width),e[1]=Te(e[1],t.height)}function De(e,t,r,n){var o=r.points,a=r.offset||[0,0],i=r.targetOffset||[0,0],c=r.overflow,l=r.source||e;a=[].concat(a),i=[].concat(i);var s={},u=0,p=Ae(l,!(!(c=c||{})||!c.alwaysByViewport)),d=Oe(l);_e(a,d),_e(i,t);var f=Ce(d,t,o,a,i),m=xe.merge(d,f);if(p&&(c.adjustX||c.adjustY)&&n){if(c.adjustX&&je(f,d,p)){var h=Me(o,/[lr]/gi,{l:"r",r:"l"}),v=Ne(a,0),b=Ne(i,0);(function(e,t,r){return e.left>r.right||e.left+t.width<r.left})(Ce(d,t,h,v,b),d,p)||(u=1,o=h,a=v,i=b)}if(c.adjustY&&Pe(f,d,p)){var g=Me(o,/[tb]/gi,{t:"b",b:"t"}),y=Ne(a,1),x=Ne(i,1);(function(e,t,r){return e.top>r.bottom||e.top+t.height<r.top})(Ce(d,t,g,y,x),d,p)||(u=1,o=g,a=y,i=x)}u&&(f=Ce(d,t,o,a,i),xe.mix(m,f));var w=je(f,d,p),k=Pe(f,d,p);if(w||k){var E=o;w&&(E=Me(o,/[lr]/gi,{l:"r",r:"l"})),k&&(E=Me(o,/[tb]/gi,{t:"b",b:"t"})),o=E,a=r.offset||[0,0],i=r.targetOffset||[0,0]}s.adjustX=c.adjustX&&w,s.adjustY=c.adjustY&&k,(s.adjustX||s.adjustY)&&(m=function(e,t,r,n){var o=xe.clone(e),a={width:t.width,height:t.height};return n.adjustX&&o.left<r.left&&(o.left=r.left),n.resizeWidth&&o.left>=r.left&&o.left+a.width>r.right&&(a.width-=o.left+a.width-r.right),n.adjustX&&o.left+a.width>r.right&&(o.left=Math.max(r.right-a.width,r.left)),n.adjustY&&o.top<r.top&&(o.top=r.top),n.resizeHeight&&o.top>=r.top&&o.top+a.height>r.bottom&&(a.height-=o.top+a.height-r.bottom),n.adjustY&&o.top+a.height>r.bottom&&(o.top=Math.max(r.bottom-a.height,r.top)),xe.mix(o,a)}(f,d,p,s))}return m.width!==d.width&&xe.css(l,"width",xe.width(l)+m.width-d.width),m.height!==d.height&&xe.css(l,"height",xe.height(l)+m.height-d.height),xe.offset(l,{left:m.left,top:m.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:o,offset:a,targetOffset:i,overflow:s}}function Le(e,t,r){var n=r.target||t,o=Oe(n),a=!function(e,t){var r=Ae(e,t),n=Oe(e);return!r||n.left+n.width<=r.left||n.top+n.height<=r.top||n.left>=r.right||n.top>=r.bottom}(n,r.overflow&&r.overflow.alwaysByViewport);return De(e,o,r,a)}Le.__getOffsetParent=ke,Le.__getVisibleRectForElement=Ae;var Re=r(43210),ze=r(42467),Ie=r(30981);var He=r(43591);function Fe(e,t){var r=null,n=null;var o=new He.default((function(e){var o=(0,A.A)(e,1)[0].target;if(document.documentElement.contains(o)){var a=o.getBoundingClientRect(),i=a.width,c=a.height,l=Math.floor(i),s=Math.floor(c);r===l&&n===s||Promise.resolve().then((function(){t({width:l,height:s})})),r=l,n=s}}));return e&&o.observe(e),function(){o.disconnect()}}function Be(e){return"function"!=typeof e?null:e()}function Ve(e){return"object"===(0,N.A)(e)&&e?e:null}var Ze=function(e,t){var r=e.children,n=e.disabled,o=e.target,a=e.align,i=e.onAlign,c=e.monitorWindowResize,l=e.monitorBufferTime,s=void 0===l?0:l,u=d().useRef({}),p=d().useRef(),f=d().Children.only(r),m=d().useRef({});m.current.disabled=n,m.current.target=o,m.current.align=a,m.current.onAlign=i;var h=function(e,t){var r=d().useRef(!1),n=d().useRef(null);function o(){window.clearTimeout(n.current)}return[function a(i){if(o(),r.current&&!0!==i)n.current=window.setTimeout((function(){r.current=!1,a()}),t);else{if(!1===e(i))return;r.current=!0,n.current=window.setTimeout((function(){r.current=!1}),t)}},function(){r.current=!1,o()}]}((function(){var e=m.current,t=e.disabled,r=e.target,n=e.align,o=e.onAlign,a=p.current;if(!t&&r&&a){var i,c=Be(r),l=Ve(r);u.current.element=c,u.current.point=l,u.current.align=n;var s=document.activeElement;return c&&(0,ze.A)(c)?i=Le(a,c,n):l&&(i=function(e,t,r){var n,o,a=xe.getDocument(e),i=a.defaultView||a.parentWindow,c=xe.getWindowScrollLeft(i),l=xe.getWindowScrollTop(i),s=xe.viewportWidth(i),u=xe.viewportHeight(i),p={left:n="pageX"in t?t.pageX:c+t.clientX,top:o="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},d=n>=0&&n<=c+s&&o>=0&&o<=l+u,f=[r.points[0],"cc"];return De(e,p,_(_({},r),{},{points:f}),d)}(a,l,n)),function(e,t){e!==document.activeElement&&(0,v.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,a),o&&i&&o(a,i),!0}return!1}),s),b=(0,A.A)(h,2),x=b[0],w=b[1],k=d().useState(),E=(0,A.A)(k,2),O=E[0],S=E[1],C=d().useState(),j=(0,A.A)(C,2),P=j[0],M=j[1];return(0,Ie.A)((function(){S(Be(o)),M(Ve(o))})),d().useEffect((function(){var e,t;u.current.element===O&&((e=u.current.point)===(t=P)||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,Re.A)(u.current.align,a)||x()})),d().useEffect((function(){return Fe(p.current,x)}),[p.current]),d().useEffect((function(){return Fe(O,x)}),[O]),d().useEffect((function(){n?w():x()}),[n]),d().useEffect((function(){if(c)return(0,y.A)(window,"resize",x).remove}),[c]),d().useEffect((function(){return function(){w()}}),[]),d().useImperativeHandle(t,(function(){return{forceAlign:function(){return x(!0)}}})),d().isValidElement(f)&&(f=d().cloneElement(f,{ref:(0,g.K4)(f.ref,p)})),f},$e=d().forwardRef(Ze);$e.displayName="Align";const Ue=$e;function We(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
21
- We=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),c=new M(n||[]);return o(i,"_invoke",{value:S(e,r,c)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",m="executing",h="completed",v={};function b(){}function g(){}function y(){}var x={};s(x,i,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,i)&&(x=k);var E=y.prototype=b.prototype=Object.create(x);function A(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,i,c){var l=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==(0,N.A)(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function S(t,r,n){var o=d;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var s=p(t,r,n);if("normal"===s.type){if(o=n.done?h:f,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=p(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError((0,N.A)(t)+" is not iterable")}return g.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,l,"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,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},A(O.prototype),s(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new O(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(E),s(E,l,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,M.prototype={constructor:M,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(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var qe=r(10467),Ye=r(1233),Ke=["measure","alignPre","align",null,"motion"];var Xe=p.forwardRef((function(e,t){var r=e.visible,a=e.prefixCls,i=e.className,c=e.style,l=e.children,s=e.zIndex,u=e.stretch,d=e.destroyPopupOnHide,f=e.forceRender,m=e.align,v=e.point,b=e.getRootDomNode,g=e.getClassNameFromAlign,y=e.onAlign,x=e.onMouseEnter,w=e.onMouseLeave,E=e.onMouseDown,O=e.onTouchStart,S=e.onClick,P=(0,p.useRef)(),M=(0,p.useRef)(),N=(0,p.useState)(),T=(0,A.A)(N,2),_=T[0],D=T[1],L=function(e){var t=p.useState({width:0,height:0}),r=(0,A.A)(t,2),n=r[0],o=r[1];return[p.useMemo((function(){var t={};if(e){var r=n.width,o=n.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){var t=e.offsetWidth,r=e.offsetHeight,n=e.getBoundingClientRect(),a=n.width,i=n.height;Math.abs(t-a)<1&&Math.abs(r-i)<1&&(t=a,r=i),o({width:t,height:r})}]}(u),R=(0,A.A)(L,2),z=R[0],I=R[1];var H=function(e,t){var r=(0,Ye.A)(null),n=(0,A.A)(r,2),o=n[0],a=n[1],i=(0,p.useRef)();function c(e){a(e,!0)}function l(){h.A.cancel(i.current)}return(0,p.useEffect)((function(){c("measure")}),[e]),(0,p.useEffect)((function(){"measure"===o&&t(),o&&(i.current=(0,h.A)((0,qe.A)(We().mark((function e(){var t,r;return We().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ke.indexOf(o),(r=Ke[t+1])&&-1!==t&&c(r);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,p.useEffect)((function(){return function(){l()}}),[]),[o,function(e){l(),i.current=(0,h.A)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(r,(function(){u&&I(b())})),F=(0,A.A)(H,2),B=F[0],V=F[1],Z=(0,p.useState)(0),$=(0,A.A)(Z,2),U=$[0],W=$[1],q=(0,p.useRef)();function Y(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function K(e,t){var r=g(t);_!==r&&D(r),W((function(e){return e+1})),"align"===B&&(null==y||y(e,t))}(0,Ie.A)((function(){"alignPre"===B&&W(0)}),[B]),(0,Ie.A)((function(){"align"===B&&(U<3?Y():V((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[U]);var X=(0,n.A)({},j(e));function G(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=X[e];X[e]=function(e,r){return V(),null==t?void 0:t(e,r)}})),p.useEffect((function(){X.motionName||"motion"!==B||V()}),[X.motionName,B]),p.useImperativeHandle(t,(function(){return{forceAlign:Y,getElement:function(){return M.current}}}));var J=(0,n.A)((0,n.A)({},z),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&r?0:void 0,pointerEvents:r||"stable"===B?void 0:"none"},c),Q=!0;null==m||!m.points||"align"!==B&&"stable"!==B||(Q=!1);var ee=l;return p.Children.count(l)>1&&(ee=p.createElement("div",{className:"".concat(a,"-content")},l)),p.createElement(C.A,(0,o.A)({visible:r,ref:M,leavedClassName:"".concat(a,"-hidden")},X,{onAppearPrepare:G,onEnterPrepare:G,removeOnLeave:d,forceRender:f}),(function(e,t){var r=e.className,o=e.style,c=k()(a,i,_,r);return p.createElement(Ue,{target:v||b,key:"popup",ref:P,monitorWindowResize:!0,disabled:Q,align:m,onAlign:K},p.createElement("div",{ref:t,className:c,onMouseEnter:x,onMouseLeave:w,onMouseDownCapture:E,onTouchStartCapture:O,onClick:S,style:(0,n.A)((0,n.A)({},o),J)},ee))}))}));Xe.displayName="PopupInner";const Ge=Xe;var Je=p.forwardRef((function(e,t){var r=e.prefixCls,a=e.visible,i=e.zIndex,c=e.children,l=e.mobile,s=(l=void 0===l?{}:l).popupClassName,u=l.popupStyle,d=l.popupMotion,f=void 0===d?{}:d,m=l.popupRender,h=e.onClick,v=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var b=(0,n.A)({zIndex:i},u),g=c;return p.Children.count(c)>1&&(g=p.createElement("div",{className:"".concat(r,"-content")},c)),m&&(g=m(g)),p.createElement(C.A,(0,o.A)({visible:a,ref:v,removeOnLeave:!0},f),(function(e,t){var o=e.className,a=e.style,i=k()(r,s,o);return p.createElement("div",{ref:t,className:i,onClick:h,style:(0,n.A)((0,n.A)({},a),b)},g)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var r=e.visible,a=e.mobile,i=(0,O.A)(e,et),c=(0,p.useState)(r),l=(0,A.A)(c,2),s=l[0],u=l[1],d=(0,p.useState)(!1),f=(0,A.A)(d,2),m=f[0],h=f[1],v=(0,n.A)((0,n.A)({},i),{},{visible:s});(0,p.useEffect)((function(){u(r),r&&a&&h((0,S.A)())}),[r,a]);var b=m?p.createElement(Qe,(0,o.A)({},v,{mobile:a,ref:t})):p.createElement(Ge,(0,o.A)({},v,{ref:t}));return p.createElement("div",null,p.createElement(P,v),b)}));tt.displayName="Popup";const rt=tt;const nt=p.createContext(null);function ot(){}function at(){return""}function it(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const lt=(st=x.A,ut=function(e){(0,l.A)(r,e);var t=(0,s.A)(r);function r(e){var n,i;return(0,a.A)(this,r),n=t.call(this,e),(0,u.A)((0,c.A)(n),"popupRef",p.createRef()),(0,u.A)((0,c.A)(n),"triggerRef",p.createRef()),(0,u.A)((0,c.A)(n),"portalContainer",void 0),(0,u.A)((0,c.A)(n),"attachId",void 0),(0,u.A)((0,c.A)(n),"clickOutsideHandler",void 0),(0,u.A)((0,c.A)(n),"touchOutsideHandler",void 0),(0,u.A)((0,c.A)(n),"contextMenuOutsideHandler1",void 0),(0,u.A)((0,c.A)(n),"contextMenuOutsideHandler2",void 0),(0,u.A)((0,c.A)(n),"mouseDownTimeout",void 0),(0,u.A)((0,c.A)(n),"focusTime",void 0),(0,u.A)((0,c.A)(n),"preClickTime",void 0),(0,u.A)((0,c.A)(n),"preTouchTime",void 0),(0,u.A)((0,c.A)(n),"delayTimer",void 0),(0,u.A)((0,c.A)(n),"hasPopupMouseDown",void 0),(0,u.A)((0,c.A)(n),"onMouseEnter",(function(e){var t=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",e),n.delaySetPopupVisible(!0,t,t?null:e)})),(0,u.A)((0,c.A)(n),"onMouseMove",(function(e){n.fireEvents("onMouseMove",e),n.setPoint(e)})),(0,u.A)((0,c.A)(n),"onMouseLeave",(function(e){n.fireEvents("onMouseLeave",e),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)})),(0,u.A)((0,c.A)(n),"onPopupMouseEnter",(function(){n.clearDelayTimer()})),(0,u.A)((0,c.A)(n),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,v.A)(null===(t=n.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)})),(0,u.A)((0,c.A)(n),"onFocus",(function(e){n.fireEvents("onFocus",e),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))})),(0,u.A)((0,c.A)(n),"onMouseDown",(function(e){n.fireEvents("onMouseDown",e),n.preClickTime=Date.now()})),(0,u.A)((0,c.A)(n),"onTouchStart",(function(e){n.fireEvents("onTouchStart",e),n.preTouchTime=Date.now()})),(0,u.A)((0,c.A)(n),"onBlur",(function(e){n.fireEvents("onBlur",e),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)})),(0,u.A)((0,c.A)(n),"onContextMenu",(function(e){e.preventDefault(),n.fireEvents("onContextMenu",e),n.setPopupVisible(!0,e)})),(0,u.A)((0,c.A)(n),"onContextMenuClose",(function(){n.isContextMenuToShow()&&n.close()})),(0,u.A)((0,c.A)(n),"onClick",(function(e){if(n.fireEvents("onClick",e),n.focusTime){var t;if(n.preClickTime&&n.preTouchTime?t=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?t=n.preClickTime:n.preTouchTime&&(t=n.preTouchTime),Math.abs(t-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!n.state.popupVisible;(n.isClickToHide()&&!r||r&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,e)})),(0,u.A)((0,c.A)(n),"onPopupMouseDown",(function(){var e;n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout((function(){n.hasPopupMouseDown=!1}),0),n.context&&(e=n.context).onPopupMouseDown.apply(e,arguments)})),(0,u.A)((0,c.A)(n),"onDocumentClick",(function(e){if(!n.props.mask||n.props.maskClosable){var t=e.target,r=n.getRootDomNode(),o=n.getPopupDomNode();(0,v.A)(r,t)&&!n.isContextMenuOnly()||(0,v.A)(o,t)||n.hasPopupMouseDown||n.close()}})),(0,u.A)((0,c.A)(n),"getRootDomNode",(function(){var e=n.props.getTriggerDOMNode;if(e)return e(n.triggerRef.current);try{var t=(0,b.A)(n.triggerRef.current);if(t)return t}catch(e){}return m().findDOMNode((0,c.A)(n))})),(0,u.A)((0,c.A)(n),"getPopupClassNameFromAlign",(function(e){var t=[],r=n.props,o=r.popupPlacement,a=r.builtinPlacements,i=r.prefixCls,c=r.alignPoint,l=r.getPopupClassNameFromAlign;return o&&a&&t.push(function(e,t,r,n){for(var o=r.points,a=Object.keys(e),i=0;i<a.length;i+=1){var c=a[i];if(E(e[c].points,o,n))return"".concat(t,"-placement-").concat(c)}return""}(a,i,e,c)),l&&t.push(l(e)),t.join(" ")})),(0,u.A)((0,c.A)(n),"getComponent",(function(){var e=n.props,t=e.prefixCls,r=e.destroyPopupOnHide,a=e.popupClassName,i=e.onPopupAlign,c=e.popupMotion,l=e.popupAnimation,s=e.popupTransitionName,u=e.popupStyle,d=e.mask,f=e.maskAnimation,m=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,b=e.popup,g=e.stretch,y=e.alignPoint,x=e.mobile,w=e.forceRender,k=e.onPopupClick,E=n.state,A=E.popupVisible,O=E.point,S=n.getPopupAlign(),C={};return n.isMouseEnterToShow()&&(C.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(C.onMouseLeave=n.onPopupMouseLeave),C.onMouseDown=n.onPopupMouseDown,C.onTouchStart=n.onPopupMouseDown,p.createElement(rt,(0,o.A)({prefixCls:t,destroyPopupOnHide:r,visible:A,point:y&&O,className:a,align:S,onAlign:i,animation:l,getClassNameFromAlign:n.getPopupClassNameFromAlign},C,{stretch:g,getRootDomNode:n.getRootDomNode,style:u,mask:d,zIndex:v,transitionName:s,maskAnimation:f,maskTransitionName:m,maskMotion:h,ref:n.popupRef,motion:c,mobile:x,forceRender:w,onClick:k}),"function"==typeof b?b():b)})),(0,u.A)((0,c.A)(n),"attachParent",(function(e){h.A.cancel(n.attachId);var t,r=n.props,o=r.getPopupContainer,a=r.getDocument,i=n.getRootDomNode();o?(i||0===o.length)&&(t=o(i)):t=a(n.getRootDomNode()).body,t?t.appendChild(e):n.attachId=(0,h.A)((function(){n.attachParent(e)}))})),(0,u.A)((0,c.A)(n),"getContainer",(function(){if(!n.portalContainer){var e=(0,n.props.getDocument)(n.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",n.portalContainer=e}return n.attachParent(n.portalContainer),n.portalContainer})),(0,u.A)((0,c.A)(n),"setPoint",(function(e){n.props.alignPoint&&e&&n.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,u.A)((0,c.A)(n),"handlePortalUpdate",(function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)})),(0,u.A)((0,c.A)(n),"triggerContextValue",{onPopupMouseDown:n.onPopupMouseDown}),i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,n.state={prevPopupVisible:i,popupVisible:i},ct.forEach((function(e){n["fire".concat(e)]=function(t){n.fireEvents(e,t)}})),n}return(0,i.A)(r,[{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),h.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,r=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,r){var o=e[t]||{};return(0,n.A)((0,n.A)({},o),r)}(o,t,r):r}},{key:"setPopupVisible",value:function(e,t){var r=this.props.alignPoint,n=this.state.popupVisible;this.clearDelayTimer(),n!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:n}),this.props.onPopupVisibleChange(e)),r&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,r){var n=this,o=1e3*t;if(this.clearDelayTimer(),o){var a=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=window.setTimeout((function(){n.setPopupVisible(e,a),n.clearDelayTimer()}),o)}else this.setPopupVisible(e,r)}},{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,r=this.props;return t[e]&&r[e]?this["fire".concat(e)]:t[e]||r[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("click")||-1!==r.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,r=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==r.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("click")||-1!==r.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("hover")||-1!==r.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("hover")||-1!==r.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("focus")||-1!==r.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("focus")||-1!==r.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 r=this.props.children.props[e];r&&r(t);var n=this.props[e];n&&n(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,r=t.children,o=t.forceRender,a=t.alignPoint,i=t.className,c=t.autoDestroy,l=p.Children.only(r),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,a&&(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 u=k()(l&&l.props&&l.props.className,i);u&&(s.className=u);var d=(0,n.A)({},s);(0,g.f3)(l)&&(d.ref=(0,g.K4)(this.triggerRef,l.ref));var f,m=p.cloneElement(l,d);return(e||this.popupRef.current||o)&&(f=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(f=null),p.createElement(nt.Provider,{value:this.triggerContextValue},m,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.popupVisible,n={};return void 0!==r&&t.popupVisible!==r&&(n.popupVisible=r,n.prevPopupVisible=t.popupVisible),n}}]),r}(p.Component),(0,u.A)(ut,"contextType",nt),(0,u.A)(ut,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:at,getDocument:it,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}),ut);var st,ut},69916:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(69514),o=r.n(n);function a(e,t,r,n){var a=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(r,e)}:r;return null!=e&&e.addEventListener&&e.addEventListener(t,a,n),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,a,n)}}}},20998:(e,t,r)=>{"use strict";function n(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}r.d(t,{A:()=>n})},54808:(e,t,r)=>{"use strict";function n(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}r.d(t,{A:()=>n})},66588:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(39155),o=r.n(n),a=r(69514),i=r.n(a);function c(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?i().findDOMNode(e):null}},42467:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}},16928:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=n},88822:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(39155),o=r(69514),a=r.n(o),i=r(20998);const c=(0,n.forwardRef)((function(e,t){var r=e.didUpdate,o=e.getContainer,c=e.children,l=(0,n.useRef)(),s=(0,n.useRef)();(0,n.useImperativeHandle)(t,(function(){return{}}));var u=(0,n.useRef)(!1);return!u.current&&(0,i.A)()&&(s.current=o(),l.current=s.current.parentNode,u.current=!0),(0,n.useEffect)((function(){null==r||r(e)})),(0,n.useEffect)((function(){return null===s.current.parentNode&&null!==l.current&&l.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?a().createPortal(c,s.current):null}))},30981:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(39155),o=(0,r(20998).A)()?n.useLayoutEffect:n.useEffect,a=function(e,t){var r=n.useRef(!0);o((function(){return e(r.current)}),t),o((function(){return r.current=!1,function(){r.current=!0}}),[])};const i=a},28104:(e,t,r)=>{"use strict";r(39155)},1233:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(3453),o=r(39155);function a(e){var t=o.useRef(!1),r=o.useState(e),a=(0,n.A)(r,2),i=a[0],c=a[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[i,function(e,r){r&&t.current||c(e)}]}},43210:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82284),o=r(68210);const a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=new Set;return function e(t,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=a.has(t);if((0,o.Ay)(!l,"Warning: There may be circular references"),l)return!1;if(t===i)return!0;if(r&&c>1)return!1;a.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],i[u],s))return!1;return!0}if(t&&i&&"object"===(0,n.A)(t)&&"object"===(0,n.A)(i)){var p=Object.keys(t);return p.length===Object.keys(i).length&&p.every((function(r){return e(t[r],i[r],s)}))}return!1}(e,t)}},68430:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=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,r)=>{"use strict";r.d(t,{A:()=>s});var n=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(n=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function c(e){i.delete(e)}var l=function(e){var t=a+=1;return function r(o){if(0===o)c(t),e();else{var a=n((function(){r(o-1)}));i.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};l.cancel=function(e){var t=i.get(e);return c(e),o(t)};const s=l},8719:(e,t,r)=>{"use strict";r.d(t,{K4:()=>i,Xf:()=>a,f3:()=>c});var n=r(82284),o=(r(39155),r(44363));r(28104);function a(e,t){"function"==typeof e?e(t):"object"===(0,n.A)(e)&&e&&"current"in e&&(e.current=t)}function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter((function(e){return e}));return n.length<=1?n[0]:function(e){t.forEach((function(t){a(t,e)}))}}function c(e){var t,r,n=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof n||null!==(t=n.prototype)&&void 0!==t&&t.render||n.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(r=e.prototype)&&void 0!==r&&r.render||e.$$typeof===o.ForwardRef)}},68210:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s});var n={},o=[];function a(e,t){}function i(e,t){}function c(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function l(e,t){c(a,e,t)}l.preMessage=function(e){o.push(e)},l.resetWarned=function(){n={}},l.noteOnce=function(e,t){c(i,e,t)};const s=l},22799:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");
21
+ We=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),c=new M(n||[]);return o(i,"_invoke",{value:S(e,r,c)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",m="executing",h="completed",v={};function b(){}function g(){}function y(){}var x={};s(x,i,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&n.call(k,i)&&(x=k);var E=y.prototype=b.prototype=Object.create(x);function A(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,i,c){var l=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==(0,N.A)(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function S(t,r,n){var o=d;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var s=p(t,r,n);if("normal"===s.type){if(o=n.done?h:f,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=h,n.method="throw",n.arg=s.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var a=p(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError((0,N.A)(t)+" is not iterable")}return g.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,l,"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,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},A(O.prototype),s(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new O(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(E),s(E,l,"Generator"),s(E,i,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,M.prototype={constructor:M,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(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var qe=r(10467),Ye=r(1233),Ke=["measure","alignPre","align",null,"motion"];var Xe=p.forwardRef((function(e,t){var r=e.visible,a=e.prefixCls,i=e.className,c=e.style,l=e.children,s=e.zIndex,u=e.stretch,d=e.destroyPopupOnHide,f=e.forceRender,m=e.align,v=e.point,b=e.getRootDomNode,g=e.getClassNameFromAlign,y=e.onAlign,x=e.onMouseEnter,w=e.onMouseLeave,E=e.onMouseDown,O=e.onTouchStart,S=e.onClick,P=(0,p.useRef)(),M=(0,p.useRef)(),N=(0,p.useState)(),T=(0,A.A)(N,2),_=T[0],D=T[1],L=function(e){var t=p.useState({width:0,height:0}),r=(0,A.A)(t,2),n=r[0],o=r[1];return[p.useMemo((function(){var t={};if(e){var r=n.width,o=n.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){var t=e.offsetWidth,r=e.offsetHeight,n=e.getBoundingClientRect(),a=n.width,i=n.height;Math.abs(t-a)<1&&Math.abs(r-i)<1&&(t=a,r=i),o({width:t,height:r})}]}(u),R=(0,A.A)(L,2),z=R[0],I=R[1];var H=function(e,t){var r=(0,Ye.A)(null),n=(0,A.A)(r,2),o=n[0],a=n[1],i=(0,p.useRef)();function c(e){a(e,!0)}function l(){h.A.cancel(i.current)}return(0,p.useEffect)((function(){c("measure")}),[e]),(0,p.useEffect)((function(){"measure"===o&&t(),o&&(i.current=(0,h.A)((0,qe.A)(We().mark((function e(){var t,r;return We().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ke.indexOf(o),(r=Ke[t+1])&&-1!==t&&c(r);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,p.useEffect)((function(){return function(){l()}}),[]),[o,function(e){l(),i.current=(0,h.A)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(r,(function(){u&&I(b())})),F=(0,A.A)(H,2),B=F[0],V=F[1],Z=(0,p.useState)(0),$=(0,A.A)(Z,2),U=$[0],W=$[1],q=(0,p.useRef)();function Y(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function K(e,t){var r=g(t);_!==r&&D(r),W((function(e){return e+1})),"align"===B&&(null==y||y(e,t))}(0,Ie.A)((function(){"alignPre"===B&&W(0)}),[B]),(0,Ie.A)((function(){"align"===B&&(U<3?Y():V((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[U]);var X=(0,n.A)({},j(e));function G(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=X[e];X[e]=function(e,r){return V(),null==t?void 0:t(e,r)}})),p.useEffect((function(){X.motionName||"motion"!==B||V()}),[X.motionName,B]),p.useImperativeHandle(t,(function(){return{forceAlign:Y,getElement:function(){return M.current}}}));var J=(0,n.A)((0,n.A)({},z),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&r?0:void 0,pointerEvents:r||"stable"===B?void 0:"none"},c),Q=!0;null==m||!m.points||"align"!==B&&"stable"!==B||(Q=!1);var ee=l;return p.Children.count(l)>1&&(ee=p.createElement("div",{className:"".concat(a,"-content")},l)),p.createElement(C.A,(0,o.A)({visible:r,ref:M,leavedClassName:"".concat(a,"-hidden")},X,{onAppearPrepare:G,onEnterPrepare:G,removeOnLeave:d,forceRender:f}),(function(e,t){var r=e.className,o=e.style,c=k()(a,i,_,r);return p.createElement(Ue,{target:v||b,key:"popup",ref:P,monitorWindowResize:!0,disabled:Q,align:m,onAlign:K},p.createElement("div",{ref:t,className:c,onMouseEnter:x,onMouseLeave:w,onMouseDownCapture:E,onTouchStartCapture:O,onClick:S,style:(0,n.A)((0,n.A)({},o),J)},ee))}))}));Xe.displayName="PopupInner";const Ge=Xe;var Je=p.forwardRef((function(e,t){var r=e.prefixCls,a=e.visible,i=e.zIndex,c=e.children,l=e.mobile,s=(l=void 0===l?{}:l).popupClassName,u=l.popupStyle,d=l.popupMotion,f=void 0===d?{}:d,m=l.popupRender,h=e.onClick,v=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var b=(0,n.A)({zIndex:i},u),g=c;return p.Children.count(c)>1&&(g=p.createElement("div",{className:"".concat(r,"-content")},c)),m&&(g=m(g)),p.createElement(C.A,(0,o.A)({visible:a,ref:v,removeOnLeave:!0},f),(function(e,t){var o=e.className,a=e.style,i=k()(r,s,o);return p.createElement("div",{ref:t,className:i,onClick:h,style:(0,n.A)((0,n.A)({},a),b)},g)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var r=e.visible,a=e.mobile,i=(0,O.A)(e,et),c=(0,p.useState)(r),l=(0,A.A)(c,2),s=l[0],u=l[1],d=(0,p.useState)(!1),f=(0,A.A)(d,2),m=f[0],h=f[1],v=(0,n.A)((0,n.A)({},i),{},{visible:s});(0,p.useEffect)((function(){u(r),r&&a&&h((0,S.A)())}),[r,a]);var b=m?p.createElement(Qe,(0,o.A)({},v,{mobile:a,ref:t})):p.createElement(Ge,(0,o.A)({},v,{ref:t}));return p.createElement("div",null,p.createElement(P,v),b)}));tt.displayName="Popup";const rt=tt;const nt=p.createContext(null);function ot(){}function at(){return""}function it(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const lt=(st=x.A,ut=function(e){(0,l.A)(r,e);var t=(0,s.A)(r);function r(e){var n,i;return(0,a.A)(this,r),n=t.call(this,e),(0,u.A)((0,c.A)(n),"popupRef",p.createRef()),(0,u.A)((0,c.A)(n),"triggerRef",p.createRef()),(0,u.A)((0,c.A)(n),"portalContainer",void 0),(0,u.A)((0,c.A)(n),"attachId",void 0),(0,u.A)((0,c.A)(n),"clickOutsideHandler",void 0),(0,u.A)((0,c.A)(n),"touchOutsideHandler",void 0),(0,u.A)((0,c.A)(n),"contextMenuOutsideHandler1",void 0),(0,u.A)((0,c.A)(n),"contextMenuOutsideHandler2",void 0),(0,u.A)((0,c.A)(n),"mouseDownTimeout",void 0),(0,u.A)((0,c.A)(n),"focusTime",void 0),(0,u.A)((0,c.A)(n),"preClickTime",void 0),(0,u.A)((0,c.A)(n),"preTouchTime",void 0),(0,u.A)((0,c.A)(n),"delayTimer",void 0),(0,u.A)((0,c.A)(n),"hasPopupMouseDown",void 0),(0,u.A)((0,c.A)(n),"onMouseEnter",(function(e){var t=n.props.mouseEnterDelay;n.fireEvents("onMouseEnter",e),n.delaySetPopupVisible(!0,t,t?null:e)})),(0,u.A)((0,c.A)(n),"onMouseMove",(function(e){n.fireEvents("onMouseMove",e),n.setPoint(e)})),(0,u.A)((0,c.A)(n),"onMouseLeave",(function(e){n.fireEvents("onMouseLeave",e),n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)})),(0,u.A)((0,c.A)(n),"onPopupMouseEnter",(function(){n.clearDelayTimer()})),(0,u.A)((0,c.A)(n),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,v.A)(null===(t=n.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||n.delaySetPopupVisible(!1,n.props.mouseLeaveDelay)})),(0,u.A)((0,c.A)(n),"onFocus",(function(e){n.fireEvents("onFocus",e),n.clearDelayTimer(),n.isFocusToShow()&&(n.focusTime=Date.now(),n.delaySetPopupVisible(!0,n.props.focusDelay))})),(0,u.A)((0,c.A)(n),"onMouseDown",(function(e){n.fireEvents("onMouseDown",e),n.preClickTime=Date.now()})),(0,u.A)((0,c.A)(n),"onTouchStart",(function(e){n.fireEvents("onTouchStart",e),n.preTouchTime=Date.now()})),(0,u.A)((0,c.A)(n),"onBlur",(function(e){n.fireEvents("onBlur",e),n.clearDelayTimer(),n.isBlurToHide()&&n.delaySetPopupVisible(!1,n.props.blurDelay)})),(0,u.A)((0,c.A)(n),"onContextMenu",(function(e){e.preventDefault(),n.fireEvents("onContextMenu",e),n.setPopupVisible(!0,e)})),(0,u.A)((0,c.A)(n),"onContextMenuClose",(function(){n.isContextMenuToShow()&&n.close()})),(0,u.A)((0,c.A)(n),"onClick",(function(e){if(n.fireEvents("onClick",e),n.focusTime){var t;if(n.preClickTime&&n.preTouchTime?t=Math.min(n.preClickTime,n.preTouchTime):n.preClickTime?t=n.preClickTime:n.preTouchTime&&(t=n.preTouchTime),Math.abs(t-n.focusTime)<20)return;n.focusTime=0}n.preClickTime=0,n.preTouchTime=0,n.isClickToShow()&&(n.isClickToHide()||n.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!n.state.popupVisible;(n.isClickToHide()&&!r||r&&n.isClickToShow())&&n.setPopupVisible(!n.state.popupVisible,e)})),(0,u.A)((0,c.A)(n),"onPopupMouseDown",(function(){var e;n.hasPopupMouseDown=!0,clearTimeout(n.mouseDownTimeout),n.mouseDownTimeout=window.setTimeout((function(){n.hasPopupMouseDown=!1}),0),n.context&&(e=n.context).onPopupMouseDown.apply(e,arguments)})),(0,u.A)((0,c.A)(n),"onDocumentClick",(function(e){if(!n.props.mask||n.props.maskClosable){var t=e.target,r=n.getRootDomNode(),o=n.getPopupDomNode();(0,v.A)(r,t)&&!n.isContextMenuOnly()||(0,v.A)(o,t)||n.hasPopupMouseDown||n.close()}})),(0,u.A)((0,c.A)(n),"getRootDomNode",(function(){var e=n.props.getTriggerDOMNode;if(e)return e(n.triggerRef.current);try{var t=(0,b.A)(n.triggerRef.current);if(t)return t}catch(e){}return m().findDOMNode((0,c.A)(n))})),(0,u.A)((0,c.A)(n),"getPopupClassNameFromAlign",(function(e){var t=[],r=n.props,o=r.popupPlacement,a=r.builtinPlacements,i=r.prefixCls,c=r.alignPoint,l=r.getPopupClassNameFromAlign;return o&&a&&t.push(function(e,t,r,n){for(var o=r.points,a=Object.keys(e),i=0;i<a.length;i+=1){var c=a[i];if(E(e[c].points,o,n))return"".concat(t,"-placement-").concat(c)}return""}(a,i,e,c)),l&&t.push(l(e)),t.join(" ")})),(0,u.A)((0,c.A)(n),"getComponent",(function(){var e=n.props,t=e.prefixCls,r=e.destroyPopupOnHide,a=e.popupClassName,i=e.onPopupAlign,c=e.popupMotion,l=e.popupAnimation,s=e.popupTransitionName,u=e.popupStyle,d=e.mask,f=e.maskAnimation,m=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,b=e.popup,g=e.stretch,y=e.alignPoint,x=e.mobile,w=e.forceRender,k=e.onPopupClick,E=n.state,A=E.popupVisible,O=E.point,S=n.getPopupAlign(),C={};return n.isMouseEnterToShow()&&(C.onMouseEnter=n.onPopupMouseEnter),n.isMouseLeaveToHide()&&(C.onMouseLeave=n.onPopupMouseLeave),C.onMouseDown=n.onPopupMouseDown,C.onTouchStart=n.onPopupMouseDown,p.createElement(rt,(0,o.A)({prefixCls:t,destroyPopupOnHide:r,visible:A,point:y&&O,className:a,align:S,onAlign:i,animation:l,getClassNameFromAlign:n.getPopupClassNameFromAlign},C,{stretch:g,getRootDomNode:n.getRootDomNode,style:u,mask:d,zIndex:v,transitionName:s,maskAnimation:f,maskTransitionName:m,maskMotion:h,ref:n.popupRef,motion:c,mobile:x,forceRender:w,onClick:k}),"function"==typeof b?b():b)})),(0,u.A)((0,c.A)(n),"attachParent",(function(e){h.A.cancel(n.attachId);var t,r=n.props,o=r.getPopupContainer,a=r.getDocument,i=n.getRootDomNode();o?(i||0===o.length)&&(t=o(i)):t=a(n.getRootDomNode()).body,t?t.appendChild(e):n.attachId=(0,h.A)((function(){n.attachParent(e)}))})),(0,u.A)((0,c.A)(n),"getContainer",(function(){if(!n.portalContainer){var e=(0,n.props.getDocument)(n.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",n.portalContainer=e}return n.attachParent(n.portalContainer),n.portalContainer})),(0,u.A)((0,c.A)(n),"setPoint",(function(e){n.props.alignPoint&&e&&n.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,u.A)((0,c.A)(n),"handlePortalUpdate",(function(){n.state.prevPopupVisible!==n.state.popupVisible&&n.props.afterPopupVisibleChange(n.state.popupVisible)})),(0,u.A)((0,c.A)(n),"triggerContextValue",{onPopupMouseDown:n.onPopupMouseDown}),i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,n.state={prevPopupVisible:i,popupVisible:i},ct.forEach((function(e){n["fire".concat(e)]=function(t){n.fireEvents(e,t)}})),n}return(0,i.A)(r,[{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),h.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,r=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,r){var o=e[t]||{};return(0,n.A)((0,n.A)({},o),r)}(o,t,r):r}},{key:"setPopupVisible",value:function(e,t){var r=this.props.alignPoint,n=this.state.popupVisible;this.clearDelayTimer(),n!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:n}),this.props.onPopupVisibleChange(e)),r&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,r){var n=this,o=1e3*t;if(this.clearDelayTimer(),o){var a=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=window.setTimeout((function(){n.setPopupVisible(e,a),n.clearDelayTimer()}),o)}else this.setPopupVisible(e,r)}},{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,r=this.props;return t[e]&&r[e]?this["fire".concat(e)]:t[e]||r[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("click")||-1!==r.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,r=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==r.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("click")||-1!==r.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("hover")||-1!==r.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("hover")||-1!==r.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,r=e.showAction;return-1!==t.indexOf("focus")||-1!==r.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,r=e.hideAction;return-1!==t.indexOf("focus")||-1!==r.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 r=this.props.children.props[e];r&&r(t);var n=this.props[e];n&&n(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,r=t.children,o=t.forceRender,a=t.alignPoint,i=t.className,c=t.autoDestroy,l=p.Children.only(r),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,a&&(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 u=k()(l&&l.props&&l.props.className,i);u&&(s.className=u);var d=(0,n.A)({},s);(0,g.f3)(l)&&(d.ref=(0,g.K4)(this.triggerRef,l.ref));var f,m=p.cloneElement(l,d);return(e||this.popupRef.current||o)&&(f=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(f=null),p.createElement(nt.Provider,{value:this.triggerContextValue},m,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.popupVisible,n={};return void 0!==r&&t.popupVisible!==r&&(n.popupVisible=r,n.prevPopupVisible=t.popupVisible),n}}]),r}(p.Component),(0,u.A)(ut,"contextType",nt),(0,u.A)(ut,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:at,getDocument:it,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}),ut);var st,ut},69916:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(69514),o=r.n(n);function a(e,t,r,n){var a=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(r,e)}:r;return null!=e&&e.addEventListener&&e.addEventListener(t,a,n),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,a,n)}}}},20998:(e,t,r)=>{"use strict";function n(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}r.d(t,{A:()=>n})},54808:(e,t,r)=>{"use strict";function n(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}r.d(t,{A:()=>n})},66588:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(39155),o=r.n(n),a=r(69514),i=r.n(a);function c(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?i().findDOMNode(e):null}},42467:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}},16928:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=n},88822:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(39155),o=r(69514),a=r.n(o),i=r(20998);const c=(0,n.forwardRef)((function(e,t){var r=e.didUpdate,o=e.getContainer,c=e.children,l=(0,n.useRef)(),s=(0,n.useRef)();(0,n.useImperativeHandle)(t,(function(){return{}}));var u=(0,n.useRef)(!1);return!u.current&&(0,i.A)()&&(s.current=o(),l.current=s.current.parentNode,u.current=!0),(0,n.useEffect)((function(){null==r||r(e)})),(0,n.useEffect)((function(){return null===s.current.parentNode&&null!==l.current&&l.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?a().createPortal(c,s.current):null}))},30981:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(39155),o=(0,r(20998).A)()?n.useLayoutEffect:n.useEffect,a=function(e,t){var r=n.useRef(!0);o((function(){return e(r.current)}),t),o((function(){return r.current=!1,function(){r.current=!0}}),[])};const i=a},28104:(e,t,r)=>{"use strict";r(39155)},1233:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(3453),o=r(39155);function a(e){var t=o.useRef(!1),r=o.useState(e),a=(0,n.A)(r,2),i=a[0],c=a[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[i,function(e,r){r&&t.current||c(e)}]}},43210:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82284),o=r(68210);const a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=new Set;return function e(t,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=a.has(t);if((0,o.Ay)(!l,"Warning: There may be circular references"),l)return!1;if(t===i)return!0;if(r&&c>1)return!1;a.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],i[u],s))return!1;return!0}if(t&&i&&"object"===(0,n.A)(t)&&"object"===(0,n.A)(i)){var p=Object.keys(t);return p.length===Object.keys(i).length&&p.every((function(r){return e(t[r],i[r],s)}))}return!1}(e,t)}},68430:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=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,r)=>{"use strict";r.d(t,{A:()=>s});var n=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(n=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function c(e){i.delete(e)}var l=function(e){var t=a+=1;return function r(o){if(0===o)c(t),e();else{var a=n((function(){r(o-1)}));i.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};l.cancel=function(e){var t=i.get(e);return c(e),o(t)};const s=l},8719:(e,t,r)=>{"use strict";r.d(t,{K4:()=>i,Xf:()=>a,f3:()=>c});var n=r(82284),o=(r(39155),r(44363)),a=(r(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,n.A)(e)&&e&&"current"in e&&(e.current=t)}),i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);return n.length<=1?n[0]:function(e){t.forEach((function(t){a(t,e)}))}},c=function(e){var t,r,n=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof n||null!==(t=n.prototype)&&void 0!==t&&t.render||n.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(r=e.prototype)&&void 0!==r&&r.render||e.$$typeof===o.ForwardRef)}},68210:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s});var n={},o=[];function a(e,t){}function i(e,t){}function c(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function l(e,t){c(a,e,t)}l.preMessage=function(e){o.push(e)},l.resetWarned=function(){n={}},l.noteOnce=function(e,t){c(i,e,t)};const s=l},22799:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");
22
22
  /**
23
23
  * @license React
24
24
  * react-is.production.min.js
@@ -40,4 +40,4 @@ We=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Objec
40
40
  Copyright (c) 2018 Jed Watson.
41
41
  Licensed under the MIT License (MIT), see
42
42
  http://jedwatson.github.io/classnames
43
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,a(r)))}return e}function a(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 r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},43145:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{A:()=>n})},96369:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{A:()=>n})},9417:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},10467:(e,t,r)=>{"use strict";function n(e,t,r,n,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function c(e){n(i,o,a,c,l,"next",e)}function l(e){n(i,o,a,c,l,"throw",e)}c(void 0)}))}}r.d(t,{A:()=>o})},23029:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{A:()=>n})},92901:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(49922);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.A)(o.key),o)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(53954),o=r(52176),a=r(56822);function i(e){var t=(0,o.A)();return function(){var r,o=(0,n.A)(e);if(t){var i=(0,n.A)(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return(0,a.A)(this,r)}}},64467:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(49922);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},58168:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{A:()=>n})},53954:(e,t,r)=>{"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{A:()=>n})},85501:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(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,n.A)(e,t)}},52176:(e,t,r)=>{"use strict";function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n=function(){return!!e})()}r.d(t,{A:()=>n})},6986:(e,t,r)=>{"use strict";function n(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}r.d(t,{A:()=>n})},76562:(e,t,r)=>{"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:()=>n})},89379:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(64467);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},80045:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(98587);function o(e,t){if(null==e)return{};var r,o,a=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},98587:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,{A:()=>n})},56822:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82284),o=r(9417);function a(e,t){if(t&&("object"===(0,n.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,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{A:()=>n})},3453:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96369),o=r(6986),a=r(27800),i=r(76562);function c(e,t){return(0,n.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,i.A)()}},92327:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82284);function o(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82284),o=r(92327);function a(e){var t=(0,o.A)(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},82284:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}r.d(t,{A:()=>n})},27800:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(43145);function o(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.A)(e,t):void 0}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e].call(r.exports,r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var i={};return(()=>{"use strict";a.r(i),a.d(i,{default:()=>S});var e=a(39155),t=a.n(e),r=a(20053),n=a(32209),o=a(18406),c=a(96342),l=a(20146),s=a(69004),u=a(89315),p=a(97978),d=a(74848),f=a(55307),m=function(e){return(0,d.jsx)(f.A,Object.assign({dataName:"Down",viewBox:"0 0 24 24",path:(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("g",Object.assign({id:"Down",transform:"translate(-105 -1649)"},{children:[(0,d.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(105 1649)",fill:"none"}),(0,d.jsx)("path",{id:"icon",d:"M8.933,9.867a.93.93,0,0,1-.66-.273l-8-8A.933.933,0,0,1,1.593.273l7.34,7.34,7.34-7.34a.933.933,0,0,1,1.32,1.32l-8,8a.93.93,0,0,1-.66.273",transform:"translate(108.067 1656.067)"})]}))})},e))},h=a(39864),v=a(14552),b=a(7569);const g={zh:{selected:"已选中",select:"请选择",more:"更多"},en:{selected:"Selected",select:"Please select",more:"More"}};var y=a(17234);a(79887);function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){w(e,t,r[t])}))}return e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(e,t)||O(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 A(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(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 O(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}const S=function(a){var i,d,f,x=(0,b.A)("SelectorPicker",g),O=a.className,S=a.label,C=a.value,j=a.defaultValue,P=a.required,M=void 0!==P&&P,N=a.labelTooltip,T=a.error,_=void 0!==T&&T,D=a.hideErrorDom,L=a.helperText,R=a.size,z=void 0===R?"large":R,I=a.disabled,H=void 0!==I&&I,F=a.disabledTooltip,B=a.style,V=a.placeholder,Z=void 0===V?x("select"):V,$=a.multiple,U=void 0!==$&&$,W=a.allowClear,q=void 0!==W&&W,Y=a.overLine,K=void 0!==Y&&Y,X=a.selectorProps,G=a.onChange,J=a.onClear,Q=a.tagRender,ee=a.morePopoverClassName,te=a.getPopupContainer,re=k({},(0,l.handFieldConfig)(null===(i=a.selectorProps)||void 0===i?void 0:i.fieldConfig,(null===(d=a.selectorProps)||void 0===d?void 0:d.rowKey)||"key"),null===(f=a.selectorProps)||void 0===f?void 0:f.backDataFieldConfig),ne=E((0,e.useState)(j||[]),2),oe=ne[0],ae=ne[1],ie=E((0,e.useState)(!1),2),ce=ie[0],le=ie[1],se=E((0,e.useState)(!1),2),ue=se[0],pe=se[1],de=E((0,e.useState)(null),2),fe=de[0],me=de[1],he=(0,e.useRef)(null),ve=(0,e.useRef)({list:[]}),be="".concat(v.n,"-selector-picker");ve.current.value=C,ve.current.valueCom=oe,ve.current.openMore=ue;var ge,ye,xe,we,ke=function(){return void 0!==ve.current.value?ve.current.value:ve.current.valueCom};ve.current.list=(xe=ke(),we=xe?[xe]:[],ge=xe,(null!=(ye=Array)&&"undefined"!=typeof Symbol&&ye[Symbol.hasInstance]?ye[Symbol.hasInstance](ge):ge instanceof ye)&&(we=A(xe)),we),(0,e.useEffect)((function(){return!K&&U?window.addEventListener("resize",Oe):window.removeEventListener("resize",Oe),function(){window.removeEventListener("resize",Oe)}}),[K,U]),(0,e.useEffect)((function(){return Oe(),function(){clearTimeout(ve.current.resizeTimer)}}),[oe,C]);var Ee,Ae=function(e){if(null!==e&&0!==e){void 0===e&&(e=ve.current.list.length);var t=he.current;if(t){var r=t.querySelector(".selector-picker-wrapper-content-check");if(r)if(r.scrollHeight>r.clientHeight){var n=Number(e)-1;me(n),Ae(n)}else ve.current.list.length<=e&&Pe()}}},Oe=function(){if(0===ve.current.list.length)return me(null);clearTimeout(ve.current.resizeTimer),ve.current.resizeTimer=setTimeout((function(){me(ve.current.list.length),Ae()}),50)},Se=function(e,t,r){r.stopPropagation(),ve.current.list.splice(t,1),Ce(A(ve.current.list),{},{})},Ce=function(e,t,r){G&&G(e,t,r),U||le(!1),void 0===C&&ae(e||[])},je=function(e){e.stopPropagation(),pe(!0),le(!1)},Pe=function(){ve.current.openMore&&pe(!1)},Me=function(e){e.stopPropagation(),le(!1),null==J||J(),Ce(null,{},{})},Ne=function(e){H||le(e)},Te=function(){return ve.current.list.length?t().createElement("div",{className:"selector-picker-wrapper-content"},function(){var e,r;if(U)return t().createElement("div",{className:"selector-picker-wrapper-content-check"},ve.current.list.map((function(e,r){if(null!==fe&&fe<=r)return null;var n=re.mainTitle||"",o=re.key||"",a=e[n]||e[o],i=Q&&Q(e),c=!0;return!0===H&&(c=!1),t().createElement("div",{className:c?"check-select-content-item":"check-select-content-item check-select-content-item-noclose",key:r},t().createElement("span",null,t().createElement(s.default,{placement:"top-start"},i||a)),c&&t().createElement(h.A,{onClick:function(e){return null==Se?void 0:Se(0,r,e)}}))})),function(){if(null!==fe&&ve.current.list.length>fe)return t().createElement("div",{className:"check-select-content-item check-select-content-item-more",onClick:je},t().createElement("span",null,"+",ve.current.list.length-fe))}());var n=re.mainTitle||"",o=re.key||"",a=(null===(e=ve.current.list[0])||void 0===e?void 0:e[n])||(null===(r=ve.current.list[0])||void 0===r?void 0:r[o]),i=Q&&Q(ve.current.list[0])||a;return t().createElement("div",{className:"selector-picker-wrapper-content-radio"},K?i:t().createElement(s.default,{placement:"top-start"},i))}()):null},_e=function(){return t().createElement(u.default,{placement:"rightTop",visible:ue,content:t().createElement("div",{className:"select-more"},t().createElement("div",{className:"select-more-title"},t().createElement("span",null,x({id:"more"}))),t().createElement("div",{className:"select-more-content"},ve.current.list.map((function(e,r){if(null!==fe&&fe>r)return null;var n=re.mainTitle||"",o=re.key||"",a=e[n]||e[o],i=Q&&Q(e),c=!0;return!0===H&&(c=!1),t().createElement("div",{className:"select-more-content-item",key:r},t().createElement("span",null,t().createElement(s.default,{placement:"top-start"},i||a)),c&&t().createElement(h.A,{onClick:function(e){return null==Se?void 0:Se(0,r,e)}}))})))),onVisibleChange:Pe,overlayClassName:(e="".concat(v.n,"-selector-more-popover ").concat(v.n,"-scrollbar-small"),z&&(e+=" ".concat(v.n,"-selector-more-popover-").concat(z)),ee&&(e+=" ".concat(ee)),e)},t().createElement("div",{className:"selector-picker-wrapper"},Te(),!ve.current.list.length&&t().createElement("span",{className:"selector-picker-placeholder"},Z),t().createElement("span",{className:"selector-picker-arrow"},t().createElement(m,null)),q&&ve.current.list.length&&!H?t().createElement("span",{className:"selector-picker-clear",onClick:Me},t().createElement(p.A,null)):null));var e};return t().createElement("div",{className:(0,r.A)(be,O,(w(Ee={},"".concat(be,"-focused"),ce),w(Ee,"".concat(be,"-disabled"),H),w(Ee,"".concat(be,"-error"),_),w(Ee,"".concat(be,"-clear"),q&&ve.current.list.length),w(Ee,"".concat(be,"-").concat(z),z),w(Ee,"".concat(be,"-wrap"),K),w(Ee,"".concat(be,"-nowrap"),!K),Ee)),style:B,ref:he},function(){if(S||M)return t().createElement(o.default,k({label:S,required:M},N))}(),t().createElement(c.default,{visible:ce,destroyPopupOnHide:!0,overlay:t().createElement("div",{className:"selector-picker-dropdown-content ".concat(v.n,"-scrollbar-small"),style:{width:"".concat(he&&he.current?he.current.offsetWidth:0,"px")}},t().createElement(l.default,k({layout:"list",disabled:H,selectMode:U?"check":"radio",value:ke(),defaultValue:j,onChange:Ce},X))),placement:"bottomLeft",trigger:["click"],onVisibleChange:Ne,overlayClassName:(0,r.A)("".concat(v.n,"-selector-picker-dropdown"),w({},"".concat(v.n,"-selector-picker-dropdown-search"),null==X?void 0:X.search)),getPopupContainer:te},F?t().createElement(y.default,k({disabled:!0},F),_e()):_e()),t().createElement(n.default,{error:_,helperText:L,hideErrorDom:D}))}})(),i})()));
43
+ */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,a(r)))}return e}function a(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 r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},43145:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{A:()=>n})},96369:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{A:()=>n})},9417:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},10467:(e,t,r)=>{"use strict";function n(e,t,r,n,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function c(e){n(i,o,a,c,l,"next",e)}function l(e){n(i,o,a,c,l,"throw",e)}c(void 0)}))}}r.d(t,{A:()=>o})},23029:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{A:()=>n})},92901:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(49922);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.A)(o.key),o)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(53954),o=r(52176),a=r(56822);function i(e){var t=(0,o.A)();return function(){var r,o=(0,n.A)(e);if(t){var i=(0,n.A)(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return(0,a.A)(this,r)}}},64467:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(49922);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},58168:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{A:()=>n})},53954:(e,t,r)=>{"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{A:()=>n})},85501:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(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,n.A)(e,t)}},52176:(e,t,r)=>{"use strict";function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(n=function(){return!!e})()}r.d(t,{A:()=>n})},6986:(e,t,r)=>{"use strict";function n(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}r.d(t,{A:()=>n})},76562:(e,t,r)=>{"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{A:()=>n})},89379:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(64467);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},80045:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(98587);function o(e,t){if(null==e)return{};var r,o,a=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},98587:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},56822:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82284),o=r(9417);function a(e,t){if(t&&("object"===(0,n.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,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{A:()=>n})},3453:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(96369),o=r(6986),a=r(27800),i=r(76562);function c(e,t){return(0,n.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,i.A)()}},92327:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(82284);function o(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(82284),o=r(92327);function a(e){var t=(0,o.A)(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},82284:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}r.d(t,{A:()=>n})},27800:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(43145);function o(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.A)(e,t):void 0}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e].call(r.exports,r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var i={};return(()=>{"use strict";a.r(i),a.d(i,{default:()=>S});var e=a(39155),t=a.n(e),r=a(20053),n=a(32209),o=a(18406),c=a(96342),l=a(20146),s=a(69004),u=a(89315),p=a(97978),d=a(74848),f=a(55307),m=function(e){return(0,d.jsx)(f.A,Object.assign({dataName:"Down",viewBox:"0 0 24 24",path:(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("g",Object.assign({id:"Down",transform:"translate(-105 -1649)"},{children:[(0,d.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(105 1649)",fill:"none"}),(0,d.jsx)("path",{id:"icon",d:"M8.933,9.867a.93.93,0,0,1-.66-.273l-8-8A.933.933,0,0,1,1.593.273l7.34,7.34,7.34-7.34a.933.933,0,0,1,1.32,1.32l-8,8a.93.93,0,0,1-.66.273",transform:"translate(108.067 1656.067)"})]}))})},e))},h=a(39864),v=a(14552),b=a(7569);const g={zh:{selected:"已选中",select:"请选择",more:"更多"},en:{selected:"Selected",select:"Please select",more:"More"}};var y=a(17234);a(79887);function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){w(e,t,r[t])}))}return e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(e,t)||O(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 A(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(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 O(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}const S=function(a){var i,d,f,x=(0,b.A)("SelectorPicker",g),O=a.className,S=a.label,C=a.value,j=a.defaultValue,P=a.required,M=void 0!==P&&P,N=a.labelTooltip,T=a.error,_=void 0!==T&&T,D=a.hideErrorDom,L=a.helperText,R=a.size,z=void 0===R?"large":R,I=a.disabled,H=void 0!==I&&I,F=a.disabledTooltip,B=a.style,V=a.placeholder,Z=void 0===V?x("select"):V,$=a.multiple,U=void 0!==$&&$,W=a.allowClear,q=void 0!==W&&W,Y=a.overLine,K=void 0!==Y&&Y,X=a.selectorProps,G=a.onChange,J=a.onClear,Q=a.tagRender,ee=a.morePopoverClassName,te=a.getPopupContainer,re=k({},(0,l.handFieldConfig)(null===(i=a.selectorProps)||void 0===i?void 0:i.fieldConfig,(null===(d=a.selectorProps)||void 0===d?void 0:d.rowKey)||"key"),null===(f=a.selectorProps)||void 0===f?void 0:f.backDataFieldConfig),ne=E((0,e.useState)(j||[]),2),oe=ne[0],ae=ne[1],ie=E((0,e.useState)(!1),2),ce=ie[0],le=ie[1],se=E((0,e.useState)(!1),2),ue=se[0],pe=se[1],de=E((0,e.useState)(null),2),fe=de[0],me=de[1],he=(0,e.useRef)(null),ve=(0,e.useRef)({list:[]}),be="".concat(v.n,"-selector-picker");ve.current.value=C,ve.current.valueCom=oe,ve.current.openMore=ue;var ge,ye,xe,we,ke=function(){return void 0!==ve.current.value?ve.current.value:ve.current.valueCom};ve.current.list=(xe=ke(),we=xe?[xe]:[],ge=xe,(null!=(ye=Array)&&"undefined"!=typeof Symbol&&ye[Symbol.hasInstance]?ye[Symbol.hasInstance](ge):ge instanceof ye)&&(we=A(xe)),we),(0,e.useEffect)((function(){return!K&&U?window.addEventListener("resize",Oe):window.removeEventListener("resize",Oe),function(){window.removeEventListener("resize",Oe)}}),[K,U]),(0,e.useEffect)((function(){return Oe(),function(){clearTimeout(ve.current.resizeTimer)}}),[oe,C]);var Ee,Ae=function(e){if(null!==e&&0!==e){void 0===e&&(e=ve.current.list.length);var t=he.current;if(t){var r=t.querySelector(".selector-picker-wrapper-content-check");if(r)if(r.scrollHeight>r.clientHeight){var n=Number(e)-1;me(n),Ae(n)}else ve.current.list.length<=e&&Pe()}}},Oe=function(){if(0===ve.current.list.length)return me(null);clearTimeout(ve.current.resizeTimer),ve.current.resizeTimer=setTimeout((function(){me(ve.current.list.length),Ae()}),50)},Se=function(e,t,r){r.stopPropagation(),ve.current.list.splice(t,1),Ce(A(ve.current.list),{},{})},Ce=function(e,t,r){G&&G(e,t,r),U||le(!1),void 0===C&&ae(e||[])},je=function(e){e.stopPropagation(),pe(!0),le(!1)},Pe=function(){ve.current.openMore&&pe(!1)},Me=function(e){e.stopPropagation(),le(!1),null==J||J(),Ce(null,{},{})},Ne=function(e){H||le(e)},Te=function(){return ve.current.list.length?t().createElement("div",{className:"selector-picker-wrapper-content"},function(){var e,r;if(U)return t().createElement("div",{className:"selector-picker-wrapper-content-check"},ve.current.list.map((function(e,r){if(null!==fe&&fe<=r)return null;var n=re.mainTitle||"",o=re.key||"",a=e[n]||e[o],i=Q&&Q(e),c=!0;return!0===H&&(c=!1),t().createElement("div",{className:c?"check-select-content-item":"check-select-content-item check-select-content-item-noclose",key:r},t().createElement("span",null,t().createElement(s.default,{placement:"top-start"},i||a)),c&&t().createElement(h.A,{onClick:function(e){return null==Se?void 0:Se(0,r,e)}}))})),function(){if(null!==fe&&ve.current.list.length>fe)return t().createElement("div",{className:"check-select-content-item check-select-content-item-more",onClick:je},t().createElement("span",null,"+",ve.current.list.length-fe))}());var n=re.mainTitle||"",o=re.key||"",a=(null===(e=ve.current.list[0])||void 0===e?void 0:e[n])||(null===(r=ve.current.list[0])||void 0===r?void 0:r[o]),i=Q&&Q(ve.current.list[0])||a;return t().createElement("div",{className:"selector-picker-wrapper-content-radio"},K?i:t().createElement(s.default,{placement:"top-start"},i))}()):null},_e=function(){return t().createElement(u.default,{placement:"rightTop",visible:ue,content:t().createElement("div",{className:"select-more"},t().createElement("div",{className:"select-more-title"},t().createElement("span",null,x({id:"more"}))),t().createElement("div",{className:"select-more-content"},ve.current.list.map((function(e,r){if(null!==fe&&fe>r)return null;var n=re.mainTitle||"",o=re.key||"",a=e[n]||e[o],i=Q&&Q(e),c=!0;return!0===H&&(c=!1),t().createElement("div",{className:"select-more-content-item",key:r},t().createElement("span",null,t().createElement(s.default,{placement:"top-start"},i||a)),c&&t().createElement(h.A,{onClick:function(e){return null==Se?void 0:Se(0,r,e)}}))})))),onVisibleChange:Pe,overlayClassName:(e="".concat(v.n,"-selector-more-popover ").concat(v.n,"-scrollbar-small"),z&&(e+=" ".concat(v.n,"-selector-more-popover-").concat(z)),ee&&(e+=" ".concat(ee)),e)},t().createElement("div",{className:"selector-picker-wrapper"},Te(),!ve.current.list.length&&t().createElement("span",{className:"selector-picker-placeholder"},Z),t().createElement("span",{className:"selector-picker-arrow"},t().createElement(m,null)),q&&ve.current.list.length&&!H?t().createElement("span",{className:"selector-picker-clear",onClick:Me},t().createElement(p.A,null)):null));var e};return t().createElement("div",{className:(0,r.A)(be,O,(w(Ee={},"".concat(be,"-focused"),ce),w(Ee,"".concat(be,"-disabled"),H),w(Ee,"".concat(be,"-error"),_),w(Ee,"".concat(be,"-clear"),q&&ve.current.list.length),w(Ee,"".concat(be,"-").concat(z),z),w(Ee,"".concat(be,"-wrap"),K),w(Ee,"".concat(be,"-nowrap"),!K),Ee)),style:B,ref:he},function(){if(S||M)return t().createElement(o.default,k({label:S,required:M},N))}(),t().createElement(c.default,{visible:ce,destroyPopupOnHide:!0,overlay:t().createElement("div",{className:"selector-picker-dropdown-content ".concat(v.n,"-scrollbar-small"),style:{width:"".concat(he&&he.current?he.current.offsetWidth:0,"px")}},t().createElement(l.default,k({layout:"list",disabled:H,selectMode:U?"check":"radio",value:ke(),defaultValue:j,onChange:Ce},X))),placement:"bottomLeft",trigger:["click"],onVisibleChange:Ne,overlayClassName:(0,r.A)("".concat(v.n,"-selector-picker-dropdown"),w({},"".concat(v.n,"-selector-picker-dropdown-search"),null==X?void 0:X.search)),getPopupContainer:te},F?t().createElement(y.default,k({disabled:!0},F),_e()):_e()),t().createElement(n.default,{error:_,helperText:L,hideErrorDom:D}))}})(),i})()));