@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
package/umd/Tag.js CHANGED
@@ -18,7 +18,7 @@ object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
20
  */var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var i,a,u=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))n.call(i,c)&&(u[c]=i[c]);if(e){a=e(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(u[a[l]]=i[a[l]])}}return u}},44785:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var r=n(64467),o=n(89379),i=n(3453),a=n(82284),u=n(39155),s=n(66588),c=n(8719),l=n(46942),f=n.n(l),p=n(80371),d=n(25931),h=n(25318),v=n(72137),m=n(58515);const g=function(t){var e=t;function n(t){return!(!t.motionName||!e)}"object"===(0,a.A)(t)&&(e=t.transitionSupport);var l=u.forwardRef((function(t,e){var a=t.visible,l=void 0===a||a,g=t.removeOnLeave,b=void 0===g||g,y=t.forceRender,w=t.children,A=t.motionName,x=t.leavedClassName,O=t.eventProps,E=n(t),M=(0,u.useRef)(),S=(0,u.useRef)();var k=(0,h.A)(E,l,(function(){try{return(0,s.A)(M.current||S.current)}catch(t){return null}}),t),j=(0,i.A)(k,4),_=j[0],C=j[1],P=j[2],T=j[3],R=u.useRef(T);T&&(R.current=!0);var D=(0,u.useRef)(e);D.current=e;var N,L=u.useCallback((function(t){M.current=t,(0,c.Xf)(D.current,t)}),[]),H=(0,o.A)((0,o.A)({},O),{},{visible:l});if(w)if(_!==d.SF&&n(t)){var V,F;C===d.px?F="prepare":(0,m.$m)(C)?F="active":C===d.Mv&&(F="start"),N=w((0,o.A)((0,o.A)({},H),{},{className:f()((0,p.by)(A,_),(V={},(0,r.A)(V,(0,p.by)(A,"".concat(_,"-").concat(F)),F),(0,r.A)(V,A,"string"==typeof A),V)),style:P}),L)}else N=T?w((0,o.A)({},H),L):!b&&R.current?w((0,o.A)((0,o.A)({},H),{},{className:x}),L):y?w((0,o.A)((0,o.A)({},H),{},{style:{display:"none"}}),L):null;else N=null;return u.createElement(v.A,{ref:S},N)}));return l.displayName="CSSMotion",l}(p.J1)},97333:(t,e,n)=>{"use strict";var r=n(58168),o=n(80045),i=n(89379),a=n(23029),u=n(92901),s=n(85501),c=n(29426),l=n(39155),f=n(44785),p=n(80371),d=n(29710),h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.A,n=function(t){(0,s.A)(f,t);var n=(0,c.A)(f);function f(){var t;return(0,a.A)(this,f),(t=n.apply(this,arguments)).state={keyEntities:[]},t.removeKey=function(e){t.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:(0,i.A)((0,i.A)({},t),{},{status:d.e8})}))}}))},t}return(0,u.A)(f,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,i=this.props,a=i.component,u=i.children,s=i.onVisibleChanged,c=(0,o.A)(i,["component","children","onVisibleChanged"]),f=a||l.Fragment,p={};return h.forEach((function(t){p[t]=c[t],delete c[t]})),delete c.keys,l.createElement(f,c,n.map((function(n){var i=n.status,a=(0,o.A)(n,["status"]),c=i===d.bK||i===d.xI;return l.createElement(e,(0,r.A)({},p,{key:a.key,visible:c,eventProps:a,onVisibleChanged:function(e){null==s||s(e,{key:a.key}),e||t.removeKey(a.key)}}),u)})))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.keys,r=e.keyEntities,o=(0,d.Ss)(n);return{keyEntities:(0,d.y$)(r,o).filter((function(t){var e=r.find((function(e){var n=e.key;return t.key===n}));return!e||e.status!==d.e8||t.status!==d.au}))}}}]),f}(l.Component);n.defaultProps={component:"div"}}(p.J1)},72137:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var r=n(23029),o=n(92901),i=n(85501),a=n(29426),u=n(39155);const s=function(t){(0,i.A)(n,t);var e=(0,a.A)(n);function n(){return(0,r.A)(this,n),e.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component)},85849:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(39155),o=n(80371);const i=function(t){var e=(0,r.useRef)(),n=(0,r.useRef)(t);n.current=t;var i=r.useCallback((function(t){n.current(t)}),[]);function a(t){t&&(t.removeEventListener(o.m8,i),t.removeEventListener(o.Vc,i))}return r.useEffect((function(){return function(){a(e.current)}}),[]),[function(t){e.current&&e.current!==t&&a(e.current),t&&t!==e.current&&(t.addEventListener(o.m8,i),t.addEventListener(o.Vc,i),e.current=t)},a]}},43982:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(39155),o=n(25371);const i=function(){var t=r.useRef(null);function e(){o.A.cancel(t.current)}return r.useEffect((function(){return function(){e()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;e();var a=(0,o.A)((function(){i<=1?r({isCanceled:function(){return a!==t.current}}):n(r,i-1)}));t.current=a},e]}},92659:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3453),o=n(39155);function i(t){var e=(0,o.useRef)(!1),n=(0,o.useState)(t),i=(0,r.A)(n,2),a=i[0],u=i[1];return(0,o.useEffect)((function(){return function(){e.current=!0}}),[]),[a,function(t){e.current||u(t)}]}},25318:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var r=n(89379),o=n(64467),i=n(3453),a=n(39155),u=n(25931),s=n(92659),c=n(43982),l=n(58515),f=n(85849);function p(t,e,n,p){var d=p.motionEnter,h=void 0===d||d,v=p.motionAppear,m=void 0===v||v,g=p.motionLeave,b=void 0===g||g,y=p.motionDeadline,w=p.motionLeaveImmediately,A=p.onAppearPrepare,x=p.onEnterPrepare,O=p.onLeavePrepare,E=p.onAppearStart,M=p.onEnterStart,S=p.onLeaveStart,k=p.onAppearActive,j=p.onEnterActive,_=p.onLeaveActive,C=p.onAppearEnd,P=p.onEnterEnd,T=p.onLeaveEnd,R=p.onVisibleChanged,D=(0,s.A)(),N=(0,i.A)(D,2),L=N[0],H=N[1],V=(0,s.A)(u.SF),F=(0,i.A)(V,2),z=F[0],I=F[1],W=(0,s.A)(null),B=(0,i.A)(W,2),q=B[0],X=B[1],Y=(0,a.useRef)(!1),U=(0,a.useRef)(null),$=(0,a.useRef)(!1),G=(0,a.useRef)(null);function K(){return n()||G.current}var Z=(0,a.useRef)(!1);function J(t){var e,n=K();t&&!t.deadline&&t.target!==n||(z===u.Tv&&Z.current?e=null==C?void 0:C(n,t):z===u.Wd&&Z.current?e=null==P?void 0:P(n,t):z===u.dp&&Z.current&&(e=null==T?void 0:T(n,t)),!1===e||$.current||(I(u.SF),X(null)))}var Q=(0,f.A)(J),tt=(0,i.A)(Q,1)[0],et=a.useMemo((function(){var t,e,n;switch(z){case"appear":return t={},(0,o.A)(t,u.px,A),(0,o.A)(t,u.Mv,E),(0,o.A)(t,u.m7,k),t;case"enter":return e={},(0,o.A)(e,u.px,x),(0,o.A)(e,u.Mv,M),(0,o.A)(e,u.m7,j),e;case"leave":return n={},(0,o.A)(n,u.px,O),(0,o.A)(n,u.Mv,S),(0,o.A)(n,u.m7,_),n;default:return{}}}),[z]),nt=(0,l.Ay)(z,(function(t){if(t===u.px){var e=et[u.px];return e?e(K()):l.es}var n;it in et&&X((null===(n=et[it])||void 0===n?void 0:n.call(et,K(),null))||null);return it===u.m7&&(tt(K()),y>0&&(clearTimeout(U.current),U.current=setTimeout((function(){J({deadline:!0})}),y))),l.qB})),rt=(0,i.A)(nt,2),ot=rt[0],it=rt[1],at=(0,l.$m)(it);Z.current=at,(0,c.A)((function(){H(e);var n,r=Y.current;(Y.current=!0,t)&&(!r&&e&&m&&(n=u.Tv),r&&e&&h&&(n=u.Wd),(r&&!e&&b||!r&&w&&!e&&b)&&(n=u.dp),n&&(I(n),ot()))}),[e]),(0,a.useEffect)((function(){(z===u.Tv&&!m||z===u.Wd&&!h||z===u.dp&&!b)&&I(u.SF)}),[m,h,b]),(0,a.useEffect)((function(){return function(){clearTimeout(U.current),$.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&z===u.SF&&(null==R||R(L))}),[L,z]);var ut=q;return et[u.px]&&it===u.Mv&&(ut=(0,r.A)({transition:"none"},ut)),[z,it,ut,null!=L?L:e]}},58515:(t,e,n)=>{"use strict";n.d(e,{$m:()=>f,Ay:()=>p,es:()=>c,qB:()=>l});var r=n(3453),o=n(39155),i=n(25931),a=n(43982),u=n(84560),s=[i.px,i.Mv,i.m7,i.Hs],c=!1,l=!0;function f(t){return t===i.m7||t===i.Hs}const p=function(t,e){var n=o.useState(i.cE),l=(0,r.A)(n,2),f=l[0],p=l[1],d=(0,u.A)(),h=(0,r.A)(d,2),v=h[0],m=h[1];return(0,a.A)((function(){if(f!==i.cE&&f!==i.Hs){var t=s.indexOf(f),n=s[t+1],r=e(f);r===c?p(n):v((function(t){function e(){t.isCanceled()||p(n)}!0===r?e():Promise.resolve(r).then(e)}))}}),[t,f]),o.useEffect((function(){return function(){m()}}),[]),[function(){p(i.px)},f]}},30156:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(t,e,n)=>{"use strict";n.d(e,{Hs:()=>f,Mv:()=>c,SF:()=>r,Tv:()=>o,Wd:()=>i,cE:()=>u,dp:()=>a,m7:()=>l,px:()=>s});var r="none",o="appear",i="enter",a="leave",u="none",s="prepare",c="start",l="active",f="end"},29710:(t,e,n)=>{"use strict";n.d(e,{Ss:()=>l,au:()=>u,bK:()=>i,e8:()=>s,xI:()=>a,y$:()=>f});var r=n(89379),o=n(82284),i="add",a="keep",u="remove",s="removed";function c(t){var e;return e=t&&"object"===(0,o.A)(t)&&"key"in t?t:{key:t},(0,r.A)((0,r.A)({},e),{},{key:String(e.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(c)}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,s=e.length,c=l(t),f=l(e);c.forEach((function(t){for(var e=!1,c=o;c<s;c+=1){var l=f[c];if(l.key===t.key){o<c&&(n=n.concat(f.slice(o,c).map((function(t){return(0,r.A)((0,r.A)({},t),{},{status:i})}))),o=c),n.push((0,r.A)((0,r.A)({},l),{},{status:a})),o+=1,e=!0;break}}e||n.push((0,r.A)((0,r.A)({},t),{},{status:u}))})),o<s&&(n=n.concat(f.slice(o).map((function(t){return(0,r.A)((0,r.A)({},t),{},{status:i})}))));var p={};return n.forEach((function(t){var e=t.key;p[e]=(p[e]||0)+1})),Object.keys(p).filter((function(t){return p[t]>1})).forEach((function(t){(n=n.filter((function(e){var n=e.key,r=e.status;return n!==t||r!==u}))).forEach((function(e){e.key===t&&(e.status=a)}))})),n}},80371:(t,e,n)=>{"use strict";n.d(e,{J1:()=>m,Vc:()=>g,by:()=>y,m8:()=>b});var r=n(82284),o=n(20998);function i(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}var a,u,s,c=(a=(0,o.A)(),u="undefined"!=typeof window?window:{},s={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in u||delete s.animationend.animation,"TransitionEvent"in u||delete s.transitionend.transition),s),l={};if((0,o.A)()){var f=document.createElement("div");l=f.style}var p={};function d(t){if(p[t])return p[t];var e=c[t];if(e)for(var n=Object.keys(e),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(e,i)&&i in l)return p[t]=e[i],p[t]}return""}var h=d("animationend"),v=d("transitionend"),m=!(!h||!v),g=h||"animationend",b=v||"transitionend";function y(t,e){return t?"object"===(0,r.A)(t)?t[e.replace(/-\w/g,(function(t){return t[1].toUpperCase()}))]:"".concat(t,"-").concat(e):null}},34307:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var r=n(58168),o=n(82284),i=n(89379),a=n(80045),u=n(39155),s=n(1748),c={adjustX:1,adjustY:1},l=[0,0],f={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:c,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:c,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:c,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:c,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:c,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:c,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:l}};const p=function(t){var e=t.overlay,n=t.prefixCls,r=t.id,o=t.overlayInnerStyle;return u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof e?e():e)};var d=function(t,e){var n=t.overlayClassName,c=t.trigger,l=void 0===c?["hover"]:c,d=t.mouseEnterDelay,h=void 0===d?0:d,v=t.mouseLeaveDelay,m=void 0===v?.1:v,g=t.overlayStyle,b=t.prefixCls,y=void 0===b?"rc-tooltip":b,w=t.children,A=t.onVisibleChange,x=t.afterVisibleChange,O=t.transitionName,E=t.animation,M=t.motion,S=t.placement,k=void 0===S?"right":S,j=t.align,_=void 0===j?{}:j,C=t.destroyTooltipOnHide,P=void 0!==C&&C,T=t.defaultVisible,R=t.getTooltipContainer,D=t.overlayInnerStyle,N=(0,a.A)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,u.useRef)(null);(0,u.useImperativeHandle)(e,(function(){return L.current}));var H=(0,i.A)({},N);"visible"in t&&(H.popupVisible=t.visible);var V=!1,F=!1;if("boolean"==typeof P)V=P;else if(P&&"object"===(0,o.A)(P)){var z=P.keepParent;V=!0===z,F=!1===z}return u.createElement(s.A,(0,r.A)({popupClassName:n,prefixCls:y,popup:function(){var e=t.arrowContent,n=void 0===e?null:e,r=t.overlay,o=t.id;return[u.createElement("div",{className:"".concat(y,"-arrow"),key:"arrow"},n),u.createElement(p,{key:"content",prefixCls:y,id:o,overlay:r,overlayInnerStyle:D})]},action:l,builtinPlacements:f,popupPlacement:k,ref:L,popupAlign:_,getPopupContainer:R,onPopupVisibleChange:A,afterPopupVisibleChange:x,popupTransitionName:O,popupAnimation:E,popupMotion:M,defaultPopupVisible:T,destroyPopupOnHide:V,autoDestroy:F,mouseLeaveDelay:m,popupStyle:g,mouseEnterDelay:h},H),w)};const h=(0,u.forwardRef)(d)},94934:(t,e)=>{"use strict";e.DD=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};e.DD=o},1748:(t,e,n)=>{"use strict";n.d(e,{A:()=>se});var r=n(89379),o=n(58168),i=n(23029),a=n(92901),u=n(9417),s=n(85501),c=n(29426),l=n(64467),f=n(39155),p=n.n(f),d=n(69514),h=n.n(d),v=n(25371),m=n(54808),g=n(66588),b=n(8719),y=n(69916),w=n(88822),A=n(46942),x=n.n(A);function O(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}var E=n(3453),M=n(80045),S=n(68430),k=n(30156);function j(t){var e=t.prefixCls,n=t.motion,r=t.animation,o=t.transitionName;return n||(r?{motionName:"".concat(e,"-").concat(r)}:o?{motionName:o}:null)}function _(t){var e=t.prefixCls,n=t.visible,i=t.zIndex,a=t.mask,u=t.maskMotion,s=t.maskAnimation,c=t.maskTransitionName;if(!a)return null;var l={};return(u||c||s)&&(l=(0,r.A)({motionAppear:!0},j({motion:u,prefixCls:e,transitionName:c,animation:s}))),f.createElement(k.A,(0,o.A)({},l,{visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return f.createElement("div",{style:{zIndex:i},className:x()("".concat(e,"-mask"),n)})}))}var C,P=n(82284);function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function N(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function H(){if(void 0!==C)return C;C="";var t=document.createElement("p").style;for(var e in L)e+"Transform"in t&&(C=e);return C}function V(){return H()?"".concat(H(),"TransitionProperty"):"transitionProperty"}function F(){return H()?"".concat(H(),"Transform"):"transform"}function z(t,e){var n=V();n&&(t.style[n]=e,"transitionProperty"!==n&&(t.style.transitionProperty=e))}function I(t,e){var n=F();n&&(t.style[n]=e,"transform"!==n&&(t.style.transform=e))}var W,B=/matrix\((.*)\)/,q=/matrix3d\((.*)\)/;function X(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function Y(t,e,n){var r=n;if("object"!==D(e))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(t.style[e]=r)):W(t,e);for(var o in e)e.hasOwnProperty(o)&&Y(t,o,e[o])}function U(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if("number"!=typeof n){var o=t.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function $(t){return U(t)}function G(t){return U(t,!0)}function K(t){var e=function(t){var e,n,r,o=t.ownerDocument,i=o.body,a=o&&o.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),r=Math.floor(e.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(t),n=t.ownerDocument,r=n.defaultView||n.parentWindow;return e.left+=$(r),e.top+=G(r),e}function Z(t){return null!=t&&t==t.window}function J(t){return Z(t)?t.document:9===t.nodeType?t:t.ownerDocument}var Q=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),tt=/^(top|right|bottom|left)$/,et="currentStyle",nt="runtimeStyle",rt="left";function ot(t,e){return"left"===t?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function it(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"bottom"===t?"top":void 0}function at(t,e,n){"static"===Y(t,"position")&&(t.style.position="relative");var r=-999,o=-999,i=ot("left",n),a=ot("top",n),u=it(i),s=it(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var c,l="",f=K(t);("left"in e||"top"in e)&&(l=(c=t).style.transitionProperty||c.style[V()]||"",z(t,"none")),"left"in e&&(t.style[u]="",t.style[i]="".concat(r,"px")),"top"in e&&(t.style[s]="",t.style[a]="".concat(o,"px")),X(t);var p=K(t),d={};for(var h in e)if(e.hasOwnProperty(h)){var v=ot(h,n),m="left"===h?r:o,g=f[h]-p[h];d[v]=v===h?m+g:m-g}Y(t,d),X(t),("left"in e||"top"in e)&&z(t,l);var b={};for(var y in e)if(e.hasOwnProperty(y)){var w=ot(y,n),A=e[y]-f[y];b[w]=y===w?d[w]+A:d[w]-A}Y(t,b)}function ut(t,e){var n=K(t),r=function(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(F());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(t),o={x:r.x,y:r.y};"left"in e&&(o.x=r.x+e.left-n.left),"top"in e&&(o.y=r.y+e.top-n.top),function(t,e){var n=window.getComputedStyle(t,null),r=n.getPropertyValue("transform")||n.getPropertyValue(F());if(r&&"none"!==r){var o,i=r.match(B);i?((o=(i=i[1]).split(",").map((function(t){return parseFloat(t,10)})))[4]=e.x,o[5]=e.y,I(t,"matrix(".concat(o.join(","),")"))):((o=r.match(q)[1].split(",").map((function(t){return parseFloat(t,10)})))[12]=e.x,o[13]=e.y,I(t,"matrix3d(".concat(o.join(","),")")))}else I(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(t,o)}function st(t,e){for(var n=0;n<t.length;n++)e(t[n])}function ct(t){return"border-box"===W(t,"boxSizing")}"undefined"!=typeof window&&(W=window.getComputedStyle?function(t,e,n){var r=n,o="",i=J(t);return(r=r||i.defaultView.getComputedStyle(t,null))&&(o=r.getPropertyValue(e)||r[e]),o}:function(t,e){var n=t[et]&&t[et][e];if(Q.test(n)&&!tt.test(e)){var r=t.style,o=r[rt],i=t[nt][rt];t[nt][rt]=t[et][rt],r[rt]="fontSize"===e?"1em":n||0,n=r.pixelLeft+"px",r[rt]=o,t[nt][rt]=i}return""===n?"auto":n});var lt=["margin","border","padding"],ft=-1,pt=2,dt=1;function ht(t,e,n){var r,o,i,a=0;for(o=0;o<e.length;o++)if(r=e[o])for(i=0;i<n.length;i++){var u=void 0;u="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(W(t,u))||0}return a}var vt={getParent:function(t){var e=t;do{e=11===e.nodeType&&e.host?e.host:e.parentNode}while(e&&1!==e.nodeType&&9!==e.nodeType);return e}};function mt(t,e,n){var r=n;if(Z(t))return"width"===e?vt.viewportWidth(t):vt.viewportHeight(t);if(9===t.nodeType)return"width"===e?vt.docWidth(t):vt.docHeight(t);var o="width"===e?["Left","Right"]:["Top","Bottom"],i="width"===e?Math.floor(t.getBoundingClientRect().width):Math.floor(t.getBoundingClientRect().height),a=ct(t),u=0;(null==i||i<=0)&&(i=void 0,(null==(u=W(t,e))||Number(u)<0)&&(u=t.style[e]||0),u=Math.floor(parseFloat(u))||0),void 0===r&&(r=a?dt:ft);var s=void 0!==i||a,c=i||u;return r===ft?s?c-ht(t,["border","padding"],o):u:s?r===dt?c:c+(r===pt?-ht(t,["border"],o):ht(t,["margin"],o)):u+ht(t,lt.slice(r),o)}st(["Width","Height"],(function(t){vt["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],vt["viewport".concat(t)](n))},vt["viewport".concat(t)]=function(e){var n="client".concat(t),r=e.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var gt={position:"absolute",visibility:"hidden",display:"block"};function bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,o=e[0];return 0!==o.offsetWidth?r=mt.apply(void 0,e):function(t,e,n){var r,o={},i=t.style;for(r in e)e.hasOwnProperty(r)&&(o[r]=i[r],i[r]=e[r]);for(r in n.call(t),e)e.hasOwnProperty(r)&&(i[r]=o[r])}(o,gt,(function(){r=mt.apply(void 0,e)})),r}function yt(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}st(["width","height"],(function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);vt["outer".concat(e)]=function(e,n){return e&&bt(e,t,n?0:dt)};var n="width"===t?["Left","Right"]:["Top","Bottom"];vt[t]=function(e,r){var o=r;return void 0!==o?e?(ct(e)&&(o+=ht(e,["padding","border"],n)),Y(e,t,o)):void 0:e&&bt(e,t,ft)}}));var wt={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var e=t.ownerDocument||t;return e.defaultView||e.parentWindow},getDocument:J,offset:function(t,e,n){if(void 0===e)return K(t);!function(t,e,n){if(n.ignoreShake){var r=K(t),o=r.left.toFixed(0),i=r.top.toFixed(0),a=e.left.toFixed(0),u=e.top.toFixed(0);if(o===a&&i===u)return}n.useCssRight||n.useCssBottom?at(t,e,n):n.useCssTransform&&F()in document.body.style?ut(t,e):at(t,e,n)}(t,e,n||{})},isWindow:Z,each:st,css:Y,clone:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);if(t.overflow)for(e in t)t.hasOwnProperty(e)&&(n.overflow[e]=t.overflow[e]);return n},mix:yt,getWindowScrollLeft:function(t){return $(t)},getWindowScrollTop:function(t){return G(t)},merge:function(){for(var t={},e=0;e<arguments.length;e++)wt.mix(t,e<0||arguments.length<=e?void 0:arguments[e]);return t},viewportWidth:0,viewportHeight:0};yt(wt,vt);var At=wt.getParent;function xt(t){if(wt.isWindow(t)||9===t.nodeType)return null;var e,n=wt.getDocument(t).body,r=wt.css(t,"position");if(!("fixed"===r||"absolute"===r))return"html"===t.nodeName.toLowerCase()?null:At(t);for(e=At(t);e&&e!==n&&9!==e.nodeType;e=At(e))if("static"!==(r=wt.css(e,"position")))return e;return null}var Ot=wt.getParent;function Et(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=xt(t),o=wt.getDocument(t),i=o.defaultView||o.parentWindow,a=o.body,u=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===u||"visible"===wt.css(r,"overflow")){if(r===a||r===u)break}else{var s=wt.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}r=xt(r)}var c=null;wt.isWindow(t)||9===t.nodeType||(c=t.style.position,"absolute"===wt.css(t,"position")&&(t.style.position="fixed"));var l=wt.getWindowScrollLeft(i),f=wt.getWindowScrollTop(i),p=wt.viewportWidth(i),d=wt.viewportHeight(i),h=u.scrollWidth,v=u.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),t.style&&(t.style.position=c),e||function(t){if(wt.isWindow(t)||9===t.nodeType)return!1;var e=wt.getDocument(t),n=e.body,r=null;for(r=Ot(t);r&&r!==n&&r!==e;r=Ot(r))if("fixed"===wt.css(r,"position"))return!0;return!1}(t))n.left=Math.max(n.left,l),n.top=Math.max(n.top,f),n.right=Math.min(n.right,l+p),n.bottom=Math.min(n.bottom,f+d);else{var g=Math.max(h,l+p);n.right=Math.min(n.right,g);var b=Math.max(v,f+d);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Mt(t){var e,n,r;if(wt.isWindow(t)||9===t.nodeType){var o=wt.getWindow(t);e={left:wt.getWindowScrollLeft(o),top:wt.getWindowScrollTop(o)},n=wt.viewportWidth(o),r=wt.viewportHeight(o)}else e=wt.offset(t),n=wt.outerWidth(t),r=wt.outerHeight(t);return e.width=n,e.height=r,e}function St(t,e){var n=e.charAt(0),r=e.charAt(1),o=t.width,i=t.height,a=t.left,u=t.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function kt(t,e,n,r,o){var i=St(e,n[1]),a=St(t,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(t.left-u[0]+r[0]-o[0]),top:Math.round(t.top-u[1]+r[1]-o[1])}}function jt(t,e,n){return t.left<n.left||t.left+e.width>n.right}function _t(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function Ct(t,e,n){var r=[];return wt.each(t,(function(t){r.push(t.replace(e,(function(t){return n[t]})))})),r}function Pt(t,e){return t[e]=-t[e],t}function Tt(t,e){return(/%$/.test(t)?parseInt(t.substring(0,t.length-1),10)/100*e:parseInt(t,10))||0}function Rt(t,e){t[0]=Tt(t[0],e.width),t[1]=Tt(t[1],e.height)}function Dt(t,e,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||t;i=[].concat(i),a=[].concat(a);var c={},l=0,f=Et(s,!(!(u=u||{})||!u.alwaysByViewport)),p=Mt(s);Rt(i,p),Rt(a,e);var d=kt(p,e,o,i,a),h=wt.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&jt(d,p,f)){var v=Ct(o,/[lr]/gi,{l:"r",r:"l"}),m=Pt(i,0),g=Pt(a,0);(function(t,e,n){return t.left>n.right||t.left+e.width<n.left})(kt(p,e,v,m,g),p,f)||(l=1,o=v,i=m,a=g)}if(u.adjustY&&_t(d,p,f)){var b=Ct(o,/[tb]/gi,{t:"b",b:"t"}),y=Pt(i,1),w=Pt(a,1);(function(t,e,n){return t.top>n.bottom||t.top+e.height<n.top})(kt(p,e,b,y,w),p,f)||(l=1,o=b,i=y,a=w)}l&&(d=kt(p,e,o,i,a),wt.mix(h,d));var A=jt(d,p,f),x=_t(d,p,f);if(A||x){var O=o;A&&(O=Ct(o,/[lr]/gi,{l:"r",r:"l"})),x&&(O=Ct(o,/[tb]/gi,{t:"b",b:"t"})),o=O,i=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=u.adjustX&&A,c.adjustY=u.adjustY&&x,(c.adjustX||c.adjustY)&&(h=function(t,e,n,r){var o=wt.clone(t),i={width:e.width,height:e.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),wt.mix(o,i)}(d,p,f,c))}return h.width!==p.width&&wt.css(s,"width",wt.width(s)+h.width-p.width),h.height!==p.height&&wt.css(s,"height",wt.height(s)+h.height-p.height),wt.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function Nt(t,e,n){var r=n.target||e,o=Mt(r),i=!function(t,e){var n=Et(t,e),r=Mt(t);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Dt(t,o,n,i)}Nt.__getOffsetParent=xt,Nt.__getVisibleRectForElement=Et;var Lt=n(43210),Ht=n(42467),Vt=n(30981);var Ft=n(43591);function zt(t,e){var n=null,r=null;var o=new Ft.default((function(t){var o=(0,E.A)(t,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,u=i.height,s=Math.floor(a),c=Math.floor(u);n===s&&r===c||Promise.resolve().then((function(){e({width:s,height:c})})),n=s,r=c}}));return t&&o.observe(t),function(){o.disconnect()}}function It(t){return"function"!=typeof t?null:t()}function Wt(t){return"object"===(0,P.A)(t)&&t?t:null}var Bt=function(t,e){var n=t.children,r=t.disabled,o=t.target,i=t.align,a=t.onAlign,u=t.monitorWindowResize,s=t.monitorBufferTime,c=void 0===s?0:s,l=p().useRef({}),f=p().useRef(),d=p().Children.only(n),h=p().useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var v=function(t,e){var n=p().useRef(!1),r=p().useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),e);else{if(!1===t(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),e)}},function(){n.current=!1,o()}]}((function(){var t=h.current,e=t.disabled,n=t.target,r=t.align,o=t.onAlign,i=f.current;if(!e&&n&&i){var a,u=It(n),s=Wt(n);l.current.element=u,l.current.point=s,l.current.align=r;var c=document.activeElement;return u&&(0,Ht.A)(u)?a=Nt(i,u,r):s&&(a=function(t,e,n){var r,o,i=wt.getDocument(t),a=i.defaultView||i.parentWindow,u=wt.getWindowScrollLeft(a),s=wt.getWindowScrollTop(a),c=wt.viewportWidth(a),l=wt.viewportHeight(a),f={left:r="pageX"in e?e.pageX:u+e.clientX,top:o="pageY"in e?e.pageY:s+e.clientY,width:0,height:0},p=r>=0&&r<=u+c&&o>=0&&o<=s+l,d=[n.points[0],"cc"];return Dt(t,f,R(R({},n),{},{points:d}),p)}(i,s,r)),function(t,e){t!==document.activeElement&&(0,m.A)(e,t)&&"function"==typeof t.focus&&t.focus()}(c,i),o&&a&&o(i,a),!0}return!1}),c),g=(0,E.A)(v,2),w=g[0],A=g[1],x=p().useState(),O=(0,E.A)(x,2),M=O[0],S=O[1],k=p().useState(),j=(0,E.A)(k,2),_=j[0],C=j[1];return(0,Vt.A)((function(){S(It(o)),C(Wt(o))})),p().useEffect((function(){var t,e;l.current.element===M&&((t=l.current.point)===(e=_)||t&&e&&("pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e&&t.clientX===e.clientX&&t.clientY===e.clientY))&&(0,Lt.A)(l.current.align,i)||w()})),p().useEffect((function(){return zt(f.current,w)}),[f.current]),p().useEffect((function(){return zt(M,w)}),[M]),p().useEffect((function(){r?A():w()}),[r]),p().useEffect((function(){if(u)return(0,y.A)(window,"resize",w).remove}),[u]),p().useEffect((function(){return function(){A()}}),[]),p().useImperativeHandle(e,(function(){return{forceAlign:function(){return w(!0)}}})),p().isValidElement(d)&&(d=p().cloneElement(d,{ref:(0,b.K4)(d.ref,f)})),d},qt=p().forwardRef(Bt);qt.displayName="Align";const Xt=qt;function Yt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
21
- Yt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new C(r||[]);return o(a,"_invoke",{value:S(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};c(w,a,(function(){return this}));var A=Object.getPrototypeOf,x=A&&A(A(T([])));x&&x!==n&&r.call(x,a)&&(w=x);var O=y.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){function n(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==(0,P.A)(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var s=k(u,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=f(e,n,r);if("normal"===c.type){if(o=r.done?v:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError((0,P.A)(e)+" is not iterable")}return b.prototype=y,o(O,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},E(M.prototype),c(M.prototype,u,(function(){return this})),e.AsyncIterator=M,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new M(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(O),c(O,s,"Generator"),c(O,a,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}var Ut=n(10467),$t=n(1233),Gt=["measure","alignPre","align",null,"motion"];var Kt=f.forwardRef((function(t,e){var n=t.visible,i=t.prefixCls,a=t.className,u=t.style,s=t.children,c=t.zIndex,l=t.stretch,p=t.destroyPopupOnHide,d=t.forceRender,h=t.align,m=t.point,g=t.getRootDomNode,b=t.getClassNameFromAlign,y=t.onAlign,w=t.onMouseEnter,A=t.onMouseLeave,O=t.onMouseDown,M=t.onTouchStart,S=t.onClick,_=(0,f.useRef)(),C=(0,f.useRef)(),P=(0,f.useState)(),T=(0,E.A)(P,2),R=T[0],D=T[1],N=function(t){var e=f.useState({width:0,height:0}),n=(0,E.A)(e,2),r=n[0],o=n[1];return[f.useMemo((function(){var e={};if(t){var n=r.width,o=r.height;-1!==t.indexOf("height")&&o?e.height=o:-1!==t.indexOf("minHeight")&&o&&(e.minHeight=o),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e}),[t,r]),function(t){var e=t.offsetWidth,n=t.offsetHeight,r=t.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(e-i)<1&&Math.abs(n-a)<1&&(e=i,n=a),o({width:e,height:n})}]}(l),L=(0,E.A)(N,2),H=L[0],V=L[1];var F=function(t,e){var n=(0,$t.A)(null),r=(0,E.A)(n,2),o=r[0],i=r[1],a=(0,f.useRef)();function u(t){i(t,!0)}function s(){v.A.cancel(a.current)}return(0,f.useEffect)((function(){u("measure")}),[t]),(0,f.useEffect)((function(){"measure"===o&&e(),o&&(a.current=(0,v.A)((0,Ut.A)(Yt().mark((function t(){var e,n;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Gt.indexOf(o),(n=Gt[e+1])&&-1!==e&&u(n);case 3:case"end":return t.stop()}}),t)})))))}),[o]),(0,f.useEffect)((function(){return function(){s()}}),[]),[o,function(t){s(),a.current=(0,v.A)((function(){u((function(t){switch(o){case"align":return"motion";case"motion":return"stable"}return t})),null==t||t()}))}]}(n,(function(){l&&V(g())})),z=(0,E.A)(F,2),I=z[0],W=z[1],B=(0,f.useState)(0),q=(0,E.A)(B,2),X=q[0],Y=q[1],U=(0,f.useRef)();function $(){var t;null===(t=_.current)||void 0===t||t.forceAlign()}function G(t,e){var n=b(e);R!==n&&D(n),Y((function(t){return t+1})),"align"===I&&(null==y||y(t,e))}(0,Vt.A)((function(){"alignPre"===I&&Y(0)}),[I]),(0,Vt.A)((function(){"align"===I&&(X<3?$():W((function(){var t;null===(t=U.current)||void 0===t||t.call(U)})))}),[X]);var K=(0,r.A)({},j(t));function Z(){return new Promise((function(t){U.current=t}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(t){var e=K[t];K[t]=function(t,n){return W(),null==e?void 0:e(t,n)}})),f.useEffect((function(){K.motionName||"motion"!==I||W()}),[K.motionName,I]),f.useImperativeHandle(e,(function(){return{forceAlign:$,getElement:function(){return C.current}}}));var J=(0,r.A)((0,r.A)({},H),{},{zIndex:c,opacity:"motion"!==I&&"stable"!==I&&n?0:void 0,pointerEvents:n||"stable"===I?void 0:"none"},u),Q=!0;null==h||!h.points||"align"!==I&&"stable"!==I||(Q=!1);var tt=s;return f.Children.count(s)>1&&(tt=f.createElement("div",{className:"".concat(i,"-content")},s)),f.createElement(k.A,(0,o.A)({visible:n,ref:C,leavedClassName:"".concat(i,"-hidden")},K,{onAppearPrepare:Z,onEnterPrepare:Z,removeOnLeave:p,forceRender:d}),(function(t,e){var n=t.className,o=t.style,u=x()(i,a,R,n);return f.createElement(Xt,{target:m||g,key:"popup",ref:_,monitorWindowResize:!0,disabled:Q,align:h,onAlign:G},f.createElement("div",{ref:e,className:u,onMouseEnter:w,onMouseLeave:A,onMouseDownCapture:O,onTouchStartCapture:M,onClick:S,style:(0,r.A)((0,r.A)({},o),J)},tt))}))}));Kt.displayName="PopupInner";const Zt=Kt;var Jt=f.forwardRef((function(t,e){var n=t.prefixCls,i=t.visible,a=t.zIndex,u=t.children,s=t.mobile,c=(s=void 0===s?{}:s).popupClassName,l=s.popupStyle,p=s.popupMotion,d=void 0===p?{}:p,h=s.popupRender,v=t.onClick,m=f.useRef();f.useImperativeHandle(e,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var g=(0,r.A)({zIndex:a},l),b=u;return f.Children.count(u)>1&&(b=f.createElement("div",{className:"".concat(n,"-content")},u)),h&&(b=h(b)),f.createElement(k.A,(0,o.A)({visible:i,ref:m,removeOnLeave:!0},d),(function(t,e){var o=t.className,i=t.style,a=x()(n,c,o);return f.createElement("div",{ref:e,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),g)},b)}))}));Jt.displayName="MobilePopupInner";const Qt=Jt;var te=["visible","mobile"],ee=f.forwardRef((function(t,e){var n=t.visible,i=t.mobile,a=(0,M.A)(t,te),u=(0,f.useState)(n),s=(0,E.A)(u,2),c=s[0],l=s[1],p=(0,f.useState)(!1),d=(0,E.A)(p,2),h=d[0],v=d[1],m=(0,r.A)((0,r.A)({},a),{},{visible:c});(0,f.useEffect)((function(){l(n),n&&i&&v((0,S.A)())}),[n,i]);var g=h?f.createElement(Qt,(0,o.A)({},m,{mobile:i,ref:e})):f.createElement(Zt,(0,o.A)({},m,{ref:e}));return f.createElement("div",null,f.createElement(_,m),g)}));ee.displayName="Popup";const ne=ee;const re=f.createContext(null);function oe(){}function ie(){return""}function ae(t){return t?t.ownerDocument:window.document}var ue=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const se=(ce=w.A,le=function(t){(0,s.A)(n,t);var e=(0,c.A)(n);function n(t){var r,a;return(0,i.A)(this,n),r=e.call(this,t),(0,l.A)((0,u.A)(r),"popupRef",f.createRef()),(0,l.A)((0,u.A)(r),"triggerRef",f.createRef()),(0,l.A)((0,u.A)(r),"portalContainer",void 0),(0,l.A)((0,u.A)(r),"attachId",void 0),(0,l.A)((0,u.A)(r),"clickOutsideHandler",void 0),(0,l.A)((0,u.A)(r),"touchOutsideHandler",void 0),(0,l.A)((0,u.A)(r),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,u.A)(r),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,u.A)(r),"mouseDownTimeout",void 0),(0,l.A)((0,u.A)(r),"focusTime",void 0),(0,l.A)((0,u.A)(r),"preClickTime",void 0),(0,l.A)((0,u.A)(r),"preTouchTime",void 0),(0,l.A)((0,u.A)(r),"delayTimer",void 0),(0,l.A)((0,u.A)(r),"hasPopupMouseDown",void 0),(0,l.A)((0,u.A)(r),"onMouseEnter",(function(t){var e=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",t),r.delaySetPopupVisible(!0,e,e?null:t)})),(0,l.A)((0,u.A)(r),"onMouseMove",(function(t){r.fireEvents("onMouseMove",t),r.setPoint(t)})),(0,l.A)((0,u.A)(r),"onMouseLeave",(function(t){r.fireEvents("onMouseLeave",t),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.A)((0,u.A)(r),"onPopupMouseLeave",(function(t){var e;t.relatedTarget&&!t.relatedTarget.setTimeout&&(0,m.A)(null===(e=r.popupRef.current)||void 0===e?void 0:e.getElement(),t.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(r),"onFocus",(function(t){r.fireEvents("onFocus",t),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.A)((0,u.A)(r),"onMouseDown",(function(t){r.fireEvents("onMouseDown",t),r.preClickTime=Date.now()})),(0,l.A)((0,u.A)(r),"onTouchStart",(function(t){r.fireEvents("onTouchStart",t),r.preTouchTime=Date.now()})),(0,l.A)((0,u.A)(r),"onBlur",(function(t){r.fireEvents("onBlur",t),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.A)((0,u.A)(r),"onContextMenu",(function(t){t.preventDefault(),r.fireEvents("onContextMenu",t),r.setPopupVisible(!0,t)})),(0,l.A)((0,u.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.A)((0,u.A)(r),"onClick",(function(t){if(r.fireEvents("onClick",t),r.focusTime){var e;if(r.preClickTime&&r.preTouchTime?e=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?e=r.preClickTime:r.preTouchTime&&(e=r.preTouchTime),Math.abs(e-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,t)})),(0,l.A)((0,u.A)(r),"onPopupMouseDown",(function(){var t;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(t=r.context).onPopupMouseDown.apply(t,arguments)})),(0,l.A)((0,u.A)(r),"onDocumentClick",(function(t){if(!r.props.mask||r.props.maskClosable){var e=t.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,m.A)(n,e)&&!r.isContextMenuOnly()||(0,m.A)(o,e)||r.hasPopupMouseDown||r.close()}})),(0,l.A)((0,u.A)(r),"getRootDomNode",(function(){var t=r.props.getTriggerDOMNode;if(t)return t(r.triggerRef.current);try{var e=(0,g.A)(r.triggerRef.current);if(e)return e}catch(t){}return h().findDOMNode((0,u.A)(r))})),(0,l.A)((0,u.A)(r),"getPopupClassNameFromAlign",(function(t){var e=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,s=n.getPopupClassNameFromAlign;return o&&i&&e.push(function(t,e,n,r){for(var o=n.points,i=Object.keys(t),a=0;a<i.length;a+=1){var u=i[a];if(O(t[u].points,o,r))return"".concat(e,"-placement-").concat(u)}return""}(i,a,t,u)),s&&e.push(s(t)),e.join(" ")})),(0,l.A)((0,u.A)(r),"getComponent",(function(){var t=r.props,e=t.prefixCls,n=t.destroyPopupOnHide,i=t.popupClassName,a=t.onPopupAlign,u=t.popupMotion,s=t.popupAnimation,c=t.popupTransitionName,l=t.popupStyle,p=t.mask,d=t.maskAnimation,h=t.maskTransitionName,v=t.maskMotion,m=t.zIndex,g=t.popup,b=t.stretch,y=t.alignPoint,w=t.mobile,A=t.forceRender,x=t.onPopupClick,O=r.state,E=O.popupVisible,M=O.point,S=r.getPopupAlign(),k={};return r.isMouseEnterToShow()&&(k.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(k.onMouseLeave=r.onPopupMouseLeave),k.onMouseDown=r.onPopupMouseDown,k.onTouchStart=r.onPopupMouseDown,f.createElement(ne,(0,o.A)({prefixCls:e,destroyPopupOnHide:n,visible:E,point:y&&M,className:i,align:S,onAlign:a,animation:s,getClassNameFromAlign:r.getPopupClassNameFromAlign},k,{stretch:b,getRootDomNode:r.getRootDomNode,style:l,mask:p,zIndex:m,transitionName:c,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:u,mobile:w,forceRender:A,onClick:x}),"function"==typeof g?g():g)})),(0,l.A)((0,u.A)(r),"attachParent",(function(t){v.A.cancel(r.attachId);var e,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(e=o(a)):e=i(r.getRootDomNode()).body,e?e.appendChild(t):r.attachId=(0,v.A)((function(){r.attachParent(t)}))})),(0,l.A)((0,u.A)(r),"getContainer",(function(){if(!r.portalContainer){var t=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",r.portalContainer=t}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.A)((0,u.A)(r),"setPoint",(function(t){r.props.alignPoint&&t&&r.setState({point:{pageX:t.pageX,pageY:t.pageY}})})),(0,l.A)((0,u.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.A)((0,u.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ue.forEach((function(t){r["fire".concat(t)]=function(e){r.fireEvents(t,e)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t,e=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,y.A)(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,y.A)(t,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,y.A)(t,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,y.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return(null===(t=this.popupRef.current)||void 0===t?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,e=t.popupPlacement,n=t.popupAlign,o=t.builtinPlacements;return e&&o?function(t,e,n){var o=t[e]||{};return(0,r.A)((0,r.A)({},o),n)}(o,e,n):n}},{key:"setPopupVisible",value:function(t,e){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:r}),this.props.onPopupVisibleChange(t)),n&&e&&t&&this.setPoint(e)}},{key:"delaySetPopupVisible",value:function(t,e,n){var r=this,o=1e3*e;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(t,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(t,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var e=this.props.children.props,n=this.props;return e[t]&&n[t]?this["fire".concat(t)]:e[t]||n[t]}},{key:"isClickToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return"contextMenu"===t||1===t.length&&"contextMenu"===t[0]}},{key:"isContextMenuToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var t;this.state.popupVisible&&(null===(t=this.popupRef.current)||void 0===t||t.forceAlign())}},{key:"fireEvents",value:function(t,e){var n=this.props.children.props[t];n&&n(e);var r=this.props[t];r&&r(e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,e=this.props,n=e.children,o=e.forceRender,i=e.alignPoint,a=e.className,u=e.autoDestroy,s=f.Children.only(n),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var l=x()(s&&s.props&&s.props.className,a);l&&(c.className=l);var p=(0,r.A)({},c);(0,b.f3)(s)&&(p.ref=(0,b.K4)(this.triggerRef,s.ref));var d,h=f.cloneElement(s,p);return(t||this.popupRef.current||o)&&(d=f.createElement(ce,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&u&&(d=null),f.createElement(re.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.popupVisible,r={};return void 0!==n&&e.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=e.popupVisible),r}}]),n}(f.Component),(0,l.A)(le,"contextType",re),(0,l.A)(le,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ie,getDocument:ae,onPopupVisibleChange:oe,afterPopupVisibleChange:oe,onPopupAlign:oe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),le);var ce,le},69916:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(69514),o=n.n(r);function i(t,e,n,r){var i=o().unstable_batchedUpdates?function(t){o().unstable_batchedUpdates(n,t)}:n;return null!=t&&t.addEventListener&&t.addEventListener(e,i,r),{remove:function(){null!=t&&t.removeEventListener&&t.removeEventListener(e,i,r)}}}},20998:(t,e,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(e,{A:()=>r})},54808:(t,e,n)=>{"use strict";function r(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}n.d(e,{A:()=>r})},66588:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(39155),o=n.n(r),i=n(69514),a=n.n(i);function u(t){return function(t){return t instanceof HTMLElement||t instanceof SVGElement}(t)?t:t instanceof o().Component?a().findDOMNode(t):null}},42467:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},88822:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const u=(0,r.forwardRef)((function(t,e){var n=t.didUpdate,o=t.getContainer,u=t.children,s=(0,r.useRef)(),c=(0,r.useRef)();(0,r.useImperativeHandle)(e,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.A)()&&(c.current=o(),s.current=c.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(t)})),(0,r.useEffect)((function(){return null===c.current.parentNode&&null!==s.current&&s.current.appendChild(c.current),function(){var t;null===(t=c.current)||void 0===t||null===(t=t.parentNode)||void 0===t||t.removeChild(c.current)}}),[]),c.current?i().createPortal(u,c.current):null}))},30981:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(t,e){var n=r.useRef(!0);o((function(){return t(n.current)}),e),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(t,e,n)=>{"use strict";n(39155)},1233:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3453),o=n(39155);function i(t){var e=o.useRef(!1),n=o.useState(t),i=(0,r.A)(n,2),a=i[0],u=i[1];return o.useEffect((function(){return e.current=!1,function(){e.current=!0}}),[]),[a,function(t,n){n&&e.current||u(t)}]}},43210:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(82284),o=n(68210);const i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function t(e,a){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(e);if((0,o.Ay)(!s,"Warning: There may be circular references"),s)return!1;if(e===a)return!0;if(n&&u>1)return!1;i.add(e);var c=u+1;if(Array.isArray(e)){if(!Array.isArray(a)||e.length!==a.length)return!1;for(var l=0;l<e.length;l++)if(!t(e[l],a[l],c))return!1;return!0}if(e&&a&&"object"===(0,r.A)(e)&&"object"===(0,r.A)(a)){var f=Object.keys(e);return f.length===Object.keys(a).length&&f.every((function(n){return t(e[n],a[n],c)}))}return!1}(t,e)}},68430:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/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==t?void 0:t.substr(0,4))}},25371:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=function(t){return+setTimeout(t,16)},o=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(t){return window.requestAnimationFrame(t)},o=function(t){return window.cancelAnimationFrame(t)});var i=0,a=new Map;function u(t){a.delete(t)}var s=function(t){var e=i+=1;return function n(o){if(0===o)u(e),t();else{var i=r((function(){n(o-1)}));a.set(e,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),e};s.cancel=function(t){var e=a.get(t);return u(t),o(e)};const c=s},8719:(t,e,n)=>{"use strict";n.d(e,{K4:()=>a,Xf:()=>i,f3:()=>u});var r=n(82284),o=(n(39155),n(44363));n(28104);function i(t,e){"function"==typeof t?t(e):"object"===(0,r.A)(t)&&t&&"current"in t&&(t.current=e)}function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter((function(t){return t}));return r.length<=1?r[0]:function(t){e.forEach((function(e){i(e,t)}))}}function u(t){var e,n,r=(0,o.isMemo)(t)?t.type.type:t.type;return!!("function"!=typeof r||null!==(e=r.prototype)&&void 0!==e&&e.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof t||null!==(n=t.prototype)&&void 0!==n&&n.render||t.$$typeof===o.ForwardRef)}},68210:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c});var r={},o=[];function i(t,e){}function a(t,e){}function u(t,e,n){e||r[n]||(t(!1,n),r[n]=!0)}function s(t,e){u(i,t,e)}s.preMessage=function(t){o.push(t)},s.resetWarned=function(){r={}},s.noteOnce=function(t,e){u(a,t,e)};const c=s},22799:(t,e)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");
21
+ Yt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new C(r||[]);return o(a,"_invoke",{value:S(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};c(w,a,(function(){return this}));var A=Object.getPrototypeOf,x=A&&A(A(T([])));x&&x!==n&&r.call(x,a)&&(w=x);var O=y.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){function n(o,i,a,u){var s=f(t[o],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==(0,P.A)(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function S(e,n,r){var o=p;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var s=k(u,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=f(e,n,r);if("normal"===c.type){if(o=r.done?v:d,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function k(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError((0,P.A)(e)+" is not iterable")}return b.prototype=y,o(O,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},E(M.prototype),c(M.prototype,u,(function(){return this})),e.AsyncIterator=M,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new M(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(O),c(O,s,"Generator"),c(O,a,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return u.type="throw",u.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}var Ut=n(10467),$t=n(1233),Gt=["measure","alignPre","align",null,"motion"];var Kt=f.forwardRef((function(t,e){var n=t.visible,i=t.prefixCls,a=t.className,u=t.style,s=t.children,c=t.zIndex,l=t.stretch,p=t.destroyPopupOnHide,d=t.forceRender,h=t.align,m=t.point,g=t.getRootDomNode,b=t.getClassNameFromAlign,y=t.onAlign,w=t.onMouseEnter,A=t.onMouseLeave,O=t.onMouseDown,M=t.onTouchStart,S=t.onClick,_=(0,f.useRef)(),C=(0,f.useRef)(),P=(0,f.useState)(),T=(0,E.A)(P,2),R=T[0],D=T[1],N=function(t){var e=f.useState({width:0,height:0}),n=(0,E.A)(e,2),r=n[0],o=n[1];return[f.useMemo((function(){var e={};if(t){var n=r.width,o=r.height;-1!==t.indexOf("height")&&o?e.height=o:-1!==t.indexOf("minHeight")&&o&&(e.minHeight=o),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e}),[t,r]),function(t){var e=t.offsetWidth,n=t.offsetHeight,r=t.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(e-i)<1&&Math.abs(n-a)<1&&(e=i,n=a),o({width:e,height:n})}]}(l),L=(0,E.A)(N,2),H=L[0],V=L[1];var F=function(t,e){var n=(0,$t.A)(null),r=(0,E.A)(n,2),o=r[0],i=r[1],a=(0,f.useRef)();function u(t){i(t,!0)}function s(){v.A.cancel(a.current)}return(0,f.useEffect)((function(){u("measure")}),[t]),(0,f.useEffect)((function(){"measure"===o&&e(),o&&(a.current=(0,v.A)((0,Ut.A)(Yt().mark((function t(){var e,n;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Gt.indexOf(o),(n=Gt[e+1])&&-1!==e&&u(n);case 3:case"end":return t.stop()}}),t)})))))}),[o]),(0,f.useEffect)((function(){return function(){s()}}),[]),[o,function(t){s(),a.current=(0,v.A)((function(){u((function(t){switch(o){case"align":return"motion";case"motion":return"stable"}return t})),null==t||t()}))}]}(n,(function(){l&&V(g())})),z=(0,E.A)(F,2),I=z[0],W=z[1],B=(0,f.useState)(0),q=(0,E.A)(B,2),X=q[0],Y=q[1],U=(0,f.useRef)();function $(){var t;null===(t=_.current)||void 0===t||t.forceAlign()}function G(t,e){var n=b(e);R!==n&&D(n),Y((function(t){return t+1})),"align"===I&&(null==y||y(t,e))}(0,Vt.A)((function(){"alignPre"===I&&Y(0)}),[I]),(0,Vt.A)((function(){"align"===I&&(X<3?$():W((function(){var t;null===(t=U.current)||void 0===t||t.call(U)})))}),[X]);var K=(0,r.A)({},j(t));function Z(){return new Promise((function(t){U.current=t}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(t){var e=K[t];K[t]=function(t,n){return W(),null==e?void 0:e(t,n)}})),f.useEffect((function(){K.motionName||"motion"!==I||W()}),[K.motionName,I]),f.useImperativeHandle(e,(function(){return{forceAlign:$,getElement:function(){return C.current}}}));var J=(0,r.A)((0,r.A)({},H),{},{zIndex:c,opacity:"motion"!==I&&"stable"!==I&&n?0:void 0,pointerEvents:n||"stable"===I?void 0:"none"},u),Q=!0;null==h||!h.points||"align"!==I&&"stable"!==I||(Q=!1);var tt=s;return f.Children.count(s)>1&&(tt=f.createElement("div",{className:"".concat(i,"-content")},s)),f.createElement(k.A,(0,o.A)({visible:n,ref:C,leavedClassName:"".concat(i,"-hidden")},K,{onAppearPrepare:Z,onEnterPrepare:Z,removeOnLeave:p,forceRender:d}),(function(t,e){var n=t.className,o=t.style,u=x()(i,a,R,n);return f.createElement(Xt,{target:m||g,key:"popup",ref:_,monitorWindowResize:!0,disabled:Q,align:h,onAlign:G},f.createElement("div",{ref:e,className:u,onMouseEnter:w,onMouseLeave:A,onMouseDownCapture:O,onTouchStartCapture:M,onClick:S,style:(0,r.A)((0,r.A)({},o),J)},tt))}))}));Kt.displayName="PopupInner";const Zt=Kt;var Jt=f.forwardRef((function(t,e){var n=t.prefixCls,i=t.visible,a=t.zIndex,u=t.children,s=t.mobile,c=(s=void 0===s?{}:s).popupClassName,l=s.popupStyle,p=s.popupMotion,d=void 0===p?{}:p,h=s.popupRender,v=t.onClick,m=f.useRef();f.useImperativeHandle(e,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var g=(0,r.A)({zIndex:a},l),b=u;return f.Children.count(u)>1&&(b=f.createElement("div",{className:"".concat(n,"-content")},u)),h&&(b=h(b)),f.createElement(k.A,(0,o.A)({visible:i,ref:m,removeOnLeave:!0},d),(function(t,e){var o=t.className,i=t.style,a=x()(n,c,o);return f.createElement("div",{ref:e,className:a,onClick:v,style:(0,r.A)((0,r.A)({},i),g)},b)}))}));Jt.displayName="MobilePopupInner";const Qt=Jt;var te=["visible","mobile"],ee=f.forwardRef((function(t,e){var n=t.visible,i=t.mobile,a=(0,M.A)(t,te),u=(0,f.useState)(n),s=(0,E.A)(u,2),c=s[0],l=s[1],p=(0,f.useState)(!1),d=(0,E.A)(p,2),h=d[0],v=d[1],m=(0,r.A)((0,r.A)({},a),{},{visible:c});(0,f.useEffect)((function(){l(n),n&&i&&v((0,S.A)())}),[n,i]);var g=h?f.createElement(Qt,(0,o.A)({},m,{mobile:i,ref:e})):f.createElement(Zt,(0,o.A)({},m,{ref:e}));return f.createElement("div",null,f.createElement(_,m),g)}));ee.displayName="Popup";const ne=ee;const re=f.createContext(null);function oe(){}function ie(){return""}function ae(t){return t?t.ownerDocument:window.document}var ue=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const se=(ce=w.A,le=function(t){(0,s.A)(n,t);var e=(0,c.A)(n);function n(t){var r,a;return(0,i.A)(this,n),r=e.call(this,t),(0,l.A)((0,u.A)(r),"popupRef",f.createRef()),(0,l.A)((0,u.A)(r),"triggerRef",f.createRef()),(0,l.A)((0,u.A)(r),"portalContainer",void 0),(0,l.A)((0,u.A)(r),"attachId",void 0),(0,l.A)((0,u.A)(r),"clickOutsideHandler",void 0),(0,l.A)((0,u.A)(r),"touchOutsideHandler",void 0),(0,l.A)((0,u.A)(r),"contextMenuOutsideHandler1",void 0),(0,l.A)((0,u.A)(r),"contextMenuOutsideHandler2",void 0),(0,l.A)((0,u.A)(r),"mouseDownTimeout",void 0),(0,l.A)((0,u.A)(r),"focusTime",void 0),(0,l.A)((0,u.A)(r),"preClickTime",void 0),(0,l.A)((0,u.A)(r),"preTouchTime",void 0),(0,l.A)((0,u.A)(r),"delayTimer",void 0),(0,l.A)((0,u.A)(r),"hasPopupMouseDown",void 0),(0,l.A)((0,u.A)(r),"onMouseEnter",(function(t){var e=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",t),r.delaySetPopupVisible(!0,e,e?null:t)})),(0,l.A)((0,u.A)(r),"onMouseMove",(function(t){r.fireEvents("onMouseMove",t),r.setPoint(t)})),(0,l.A)((0,u.A)(r),"onMouseLeave",(function(t){r.fireEvents("onMouseLeave",t),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.A)((0,u.A)(r),"onPopupMouseLeave",(function(t){var e;t.relatedTarget&&!t.relatedTarget.setTimeout&&(0,m.A)(null===(e=r.popupRef.current)||void 0===e?void 0:e.getElement(),t.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.A)((0,u.A)(r),"onFocus",(function(t){r.fireEvents("onFocus",t),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.A)((0,u.A)(r),"onMouseDown",(function(t){r.fireEvents("onMouseDown",t),r.preClickTime=Date.now()})),(0,l.A)((0,u.A)(r),"onTouchStart",(function(t){r.fireEvents("onTouchStart",t),r.preTouchTime=Date.now()})),(0,l.A)((0,u.A)(r),"onBlur",(function(t){r.fireEvents("onBlur",t),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.A)((0,u.A)(r),"onContextMenu",(function(t){t.preventDefault(),r.fireEvents("onContextMenu",t),r.setPopupVisible(!0,t)})),(0,l.A)((0,u.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.A)((0,u.A)(r),"onClick",(function(t){if(r.fireEvents("onClick",t),r.focusTime){var e;if(r.preClickTime&&r.preTouchTime?e=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?e=r.preClickTime:r.preTouchTime&&(e=r.preTouchTime),Math.abs(e-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,t)})),(0,l.A)((0,u.A)(r),"onPopupMouseDown",(function(){var t;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(t=r.context).onPopupMouseDown.apply(t,arguments)})),(0,l.A)((0,u.A)(r),"onDocumentClick",(function(t){if(!r.props.mask||r.props.maskClosable){var e=t.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,m.A)(n,e)&&!r.isContextMenuOnly()||(0,m.A)(o,e)||r.hasPopupMouseDown||r.close()}})),(0,l.A)((0,u.A)(r),"getRootDomNode",(function(){var t=r.props.getTriggerDOMNode;if(t)return t(r.triggerRef.current);try{var e=(0,g.A)(r.triggerRef.current);if(e)return e}catch(t){}return h().findDOMNode((0,u.A)(r))})),(0,l.A)((0,u.A)(r),"getPopupClassNameFromAlign",(function(t){var e=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,u=n.alignPoint,s=n.getPopupClassNameFromAlign;return o&&i&&e.push(function(t,e,n,r){for(var o=n.points,i=Object.keys(t),a=0;a<i.length;a+=1){var u=i[a];if(O(t[u].points,o,r))return"".concat(e,"-placement-").concat(u)}return""}(i,a,t,u)),s&&e.push(s(t)),e.join(" ")})),(0,l.A)((0,u.A)(r),"getComponent",(function(){var t=r.props,e=t.prefixCls,n=t.destroyPopupOnHide,i=t.popupClassName,a=t.onPopupAlign,u=t.popupMotion,s=t.popupAnimation,c=t.popupTransitionName,l=t.popupStyle,p=t.mask,d=t.maskAnimation,h=t.maskTransitionName,v=t.maskMotion,m=t.zIndex,g=t.popup,b=t.stretch,y=t.alignPoint,w=t.mobile,A=t.forceRender,x=t.onPopupClick,O=r.state,E=O.popupVisible,M=O.point,S=r.getPopupAlign(),k={};return r.isMouseEnterToShow()&&(k.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(k.onMouseLeave=r.onPopupMouseLeave),k.onMouseDown=r.onPopupMouseDown,k.onTouchStart=r.onPopupMouseDown,f.createElement(ne,(0,o.A)({prefixCls:e,destroyPopupOnHide:n,visible:E,point:y&&M,className:i,align:S,onAlign:a,animation:s,getClassNameFromAlign:r.getPopupClassNameFromAlign},k,{stretch:b,getRootDomNode:r.getRootDomNode,style:l,mask:p,zIndex:m,transitionName:c,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:u,mobile:w,forceRender:A,onClick:x}),"function"==typeof g?g():g)})),(0,l.A)((0,u.A)(r),"attachParent",(function(t){v.A.cancel(r.attachId);var e,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(e=o(a)):e=i(r.getRootDomNode()).body,e?e.appendChild(t):r.attachId=(0,v.A)((function(){r.attachParent(t)}))})),(0,l.A)((0,u.A)(r),"getContainer",(function(){if(!r.portalContainer){var t=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",r.portalContainer=t}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.A)((0,u.A)(r),"setPoint",(function(t){r.props.alignPoint&&t&&r.setState({point:{pageX:t.pageX,pageY:t.pageY}})})),(0,l.A)((0,u.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.A)((0,u.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ue.forEach((function(t){r["fire".concat(t)]=function(e){r.fireEvents(t,e)}})),r}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t,e=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,y.A)(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,y.A)(t,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,y.A)(t,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,y.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return(null===(t=this.popupRef.current)||void 0===t?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,e=t.popupPlacement,n=t.popupAlign,o=t.builtinPlacements;return e&&o?function(t,e,n){var o=t[e]||{};return(0,r.A)((0,r.A)({},o),n)}(o,e,n):n}},{key:"setPopupVisible",value:function(t,e){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:r}),this.props.onPopupVisibleChange(t)),n&&e&&t&&this.setPoint(e)}},{key:"delaySetPopupVisible",value:function(t,e,n){var r=this,o=1e3*e;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(t,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(t,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var e=this.props.children.props,n=this.props;return e[t]&&n[t]?this["fire".concat(t)]:e[t]||n[t]}},{key:"isClickToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return"contextMenu"===t||1===t.length&&"contextMenu"===t[0]}},{key:"isContextMenuToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var t;this.state.popupVisible&&(null===(t=this.popupRef.current)||void 0===t||t.forceAlign())}},{key:"fireEvents",value:function(t,e){var n=this.props.children.props[t];n&&n(e);var r=this.props[t];r&&r(e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,e=this.props,n=e.children,o=e.forceRender,i=e.alignPoint,a=e.className,u=e.autoDestroy,s=f.Children.only(n),c={key:"trigger"};this.isContextMenuToShow()?c.onContextMenu=this.onContextMenu:c.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(c.onClick=this.onClick,c.onMouseDown=this.onMouseDown,c.onTouchStart=this.onTouchStart):(c.onClick=this.createTwoChains("onClick"),c.onMouseDown=this.createTwoChains("onMouseDown"),c.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(c.onMouseEnter=this.onMouseEnter,i&&(c.onMouseMove=this.onMouseMove)):c.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?c.onMouseLeave=this.onMouseLeave:c.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(c.onFocus=this.onFocus,c.onBlur=this.onBlur):(c.onFocus=this.createTwoChains("onFocus"),c.onBlur=this.createTwoChains("onBlur"));var l=x()(s&&s.props&&s.props.className,a);l&&(c.className=l);var p=(0,r.A)({},c);(0,b.f3)(s)&&(p.ref=(0,b.K4)(this.triggerRef,s.ref));var d,h=f.cloneElement(s,p);return(t||this.popupRef.current||o)&&(d=f.createElement(ce,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&u&&(d=null),f.createElement(re.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.popupVisible,r={};return void 0!==n&&e.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=e.popupVisible),r}}]),n}(f.Component),(0,l.A)(le,"contextType",re),(0,l.A)(le,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ie,getDocument:ae,onPopupVisibleChange:oe,afterPopupVisibleChange:oe,onPopupAlign:oe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),le);var ce,le},69916:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(69514),o=n.n(r);function i(t,e,n,r){var i=o().unstable_batchedUpdates?function(t){o().unstable_batchedUpdates(n,t)}:n;return null!=t&&t.addEventListener&&t.addEventListener(e,i,r),{remove:function(){null!=t&&t.removeEventListener&&t.removeEventListener(e,i,r)}}}},20998:(t,e,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(e,{A:()=>r})},54808:(t,e,n)=>{"use strict";function r(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}n.d(e,{A:()=>r})},66588:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(39155),o=n.n(r),i=n(69514),a=n.n(i);function u(t){return function(t){return t instanceof HTMLElement||t instanceof SVGElement}(t)?t:t instanceof o().Component?a().findDOMNode(t):null}},42467:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},88822:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(39155),o=n(69514),i=n.n(o),a=n(20998);const u=(0,r.forwardRef)((function(t,e){var n=t.didUpdate,o=t.getContainer,u=t.children,s=(0,r.useRef)(),c=(0,r.useRef)();(0,r.useImperativeHandle)(e,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.A)()&&(c.current=o(),s.current=c.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(t)})),(0,r.useEffect)((function(){return null===c.current.parentNode&&null!==s.current&&s.current.appendChild(c.current),function(){var t;null===(t=c.current)||void 0===t||null===(t=t.parentNode)||void 0===t||t.removeChild(c.current)}}),[]),c.current?i().createPortal(u,c.current):null}))},30981:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,i=function(t,e){var n=r.useRef(!0);o((function(){return t(n.current)}),e),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const a=i},28104:(t,e,n)=>{"use strict";n(39155)},1233:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3453),o=n(39155);function i(t){var e=o.useRef(!1),n=o.useState(t),i=(0,r.A)(n,2),a=i[0],u=i[1];return o.useEffect((function(){return e.current=!1,function(){e.current=!0}}),[]),[a,function(t,n){n&&e.current||u(t)}]}},43210:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(82284),o=n(68210);const i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function t(e,a){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(e);if((0,o.Ay)(!s,"Warning: There may be circular references"),s)return!1;if(e===a)return!0;if(n&&u>1)return!1;i.add(e);var c=u+1;if(Array.isArray(e)){if(!Array.isArray(a)||e.length!==a.length)return!1;for(var l=0;l<e.length;l++)if(!t(e[l],a[l],c))return!1;return!0}if(e&&a&&"object"===(0,r.A)(e)&&"object"===(0,r.A)(a)){var f=Object.keys(e);return f.length===Object.keys(a).length&&f.every((function(n){return t(e[n],a[n],c)}))}return!1}(t,e)}},68430:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/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==t?void 0:t.substr(0,4))}},25371:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=function(t){return+setTimeout(t,16)},o=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(t){return window.requestAnimationFrame(t)},o=function(t){return window.cancelAnimationFrame(t)});var i=0,a=new Map;function u(t){a.delete(t)}var s=function(t){var e=i+=1;return function n(o){if(0===o)u(e),t();else{var i=r((function(){n(o-1)}));a.set(e,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),e};s.cancel=function(t){var e=a.get(t);return u(t),o(e)};const c=s},8719:(t,e,n)=>{"use strict";n.d(e,{K4:()=>a,Xf:()=>i,f3:()=>u});var r=n(82284),o=(n(39155),n(44363)),i=(n(28104),function(t,e){"function"==typeof t?t(e):"object"===(0,r.A)(t)&&t&&"current"in t&&(t.current=e)}),a=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter(Boolean);return r.length<=1?r[0]:function(t){e.forEach((function(e){i(e,t)}))}},u=function(t){var e,n,r=(0,o.isMemo)(t)?t.type.type:t.type;return!!("function"!=typeof r||null!==(e=r.prototype)&&void 0!==e&&e.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof t||null!==(n=t.prototype)&&void 0!==n&&n.render||t.$$typeof===o.ForwardRef)}},68210:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c});var r={},o=[];function i(t,e){}function a(t,e){}function u(t,e,n){e||r[n]||(t(!1,n),r[n]=!0)}function s(t,e){u(i,t,e)}s.preMessage=function(t){o.push(t)},s.resetWarned=function(){r={}},s.noteOnce=function(t,e){u(a,t,e)};const c=s},22799:(t,e)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");
22
22
  /**
23
23
  * @license React
24
24
  * react-is.production.min.js
@@ -40,4 +40,4 @@ Yt=function(){return e};var t,e={},n=Object.prototype,r=n.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 r={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,i(n)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},43145:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{A:()=>r})},96369:(t,e,n)=>{"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{A:()=>r})},9417:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{A:()=>r})},10467:(t,e,n)=>{"use strict";function r(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,s,"next",t)}function s(t){r(a,o,i,u,s,"throw",t)}u(void 0)}))}}n.d(e,{A:()=>o})},23029:(t,e,n)=>{"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{A:()=>r})},92901:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(49922);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,r.A)(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},29426:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(53954),o=n(52176),i=n(56822);function a(t){var e=(0,o.A)();return function(){var n,o=(0,r.A)(t);if(e){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(49922);function o(t,e,n){return(e=(0,r.A)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},58168:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{A:()=>r})},53954:(t,e,n)=>{"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,{A:()=>r})},85501:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(63662);function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,r.A)(t,e)}},52176:(t,e,n)=>{"use strict";function r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(r=function(){return!!t})()}n.d(e,{A:()=>r})},6986:(t,e,n)=>{"use strict";function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}n.d(e,{A:()=>r})},76562:(t,e,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{A:()=>r})},89379:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(64467);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,r.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},80045:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(98587);function o(t,e){if(null==t)return{};var n,o,i=(0,r.A)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},98587:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,{A:()=>r})},56822:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(82284),o=n(9417);function i(t,e){if(e&&("object"===(0,r.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(t)}},63662:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{A:()=>r})},3453:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(96369),o=n(6986),i=n(27800),a=n(76562);function u(t,e){return(0,r.A)(t)||(0,o.A)(t,e)||(0,i.A)(t,e)||(0,a.A)()}},92327:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(82284);function o(t,e){if("object"!=(0,r.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},49922:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(82284),o=n(92327);function i(t){var e=(0,o.A)(t,"string");return"symbol"==(0,r.A)(e)?e:e+""}},82284:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})},27800:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(43145);function o(t,e){if(t){if("string"==typeof t)return(0,r.A)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(t,e):void 0}}}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,exports:{}};return r[t](n,n.exports,i),n.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{Tag:()=>ut,TagGroup:()=>g,default:()=>st});var t=i(39155),e=i.n(t),n=i(39864),r=i(74848),o=i(55307),u=function(t){return(0,r.jsx)(o.A,Object.assign({dataName:"EditOutline",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"EditOutline",transform:"translate(-288 -426)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 426)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M.8,17.866a.8.8,0,0,1-.8-.8V1.336a.8.8,0,0,1,.8-.8H8.667a.8.8,0,0,1,0,1.6H1.6V16.267H15.734V9.221a.8.8,0,1,1,1.6,0v7.847a.8.8,0,0,1-.8.8Zm3.362-4.234a.8.8,0,0,1-.23-.618l.244-3.75A.8.8,0,0,1,4.41,8.75L12.925.234a.8.8,0,0,1,1.131,0l3.505,3.5A.811.811,0,0,1,17.8,4.3a.8.8,0,0,1-.234.565L9.045,13.386a.806.806,0,0,1-.513.234l-3.75.245H4.729A.808.808,0,0,1,4.163,13.632ZM5.754,9.668l-.167,2.54,2.54-.167L15.864,4.3,13.492,1.932Z",transform:"translate(291.102 429.067)"})]}))})},t))},s=i(20053),c=function(t){return(0,r.jsx)(o.A,Object.assign({dataName:"Plus",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"Plus",transform:"translate(-140 -287)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 287)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M17.2,7.867H10V.933a.933.933,0,0,0-1.867,0V7.867H.933a.933.933,0,0,0,0,1.867h7.2V17.2A.933.933,0,1,0,10,17.2V9.733h7.2a.933.933,0,1,0,0-1.867",transform:"translate(142.934 289.933)"})]}))})},t))},l=i(14552);i(61222);function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||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 m(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}const g=function(n){var r=n.className,o=n.size,i=void 0===o?"large":o,a=n.style,u=n.defaultInputValue,f=n.increased,m=void 0!==f&&f,g=n.increasedTag,b=n.inputClassName,y=n.inputWidth,w=n.onChange,A=h((0,t.useState)([]),2),x=A[0],O=A[1],E=h((0,t.useState)(null!=u?u:""),2),M=E[0],S=E[1],k=h((0,t.useState)(!1),2),j=k[0],_=k[1],C=(0,t.useRef)(),P=h((0,t.useState)(),2),T=P[0],R=P[1];(0,t.useEffect)((function(){if(n.data){var t=n.data;t.some((function(t){return["string","number"].includes(void 0===t?"undefined":(e=t)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e);var e}))&&(t=t.map((function(t){return{value:t,label:t}}))),O(v(t))}}),[n.data]);var D=function(t){return t.map((function(t){return t.value}))},N=function(){_(!0),setTimeout((function(){var t;null===(t=C.current)||void 0===t||t.focus()}))},L=function(t){S(t.target.value)},H=function(){var t=M.trim();""!==t&&(x.push({value:t,label:t,closable:!0}),O(v(x)),null==w||w(x,D(x))),S(null!=u?u:""),_(!1)},V=function(t){13!==t.keyCode&&13!==t.which||H()},F=function(t){return function(e){var n=x.findIndex((function(e){return e.value===t.value}));n>-1&&(x.splice(n,1),O(v(x))),t.onClose&&t.onClose(e),null==w||w(x,D(x))}};return e().createElement("div",{className:(0,s.A)("".concat(l.n,"-tag-group"),r),style:a},(null==x?void 0:x.length)?x.map((function(t,n){return e().createElement(st,d(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){p(t,e,n[e])}))}return t}({key:n},t),{size:i,visible:!0,tagChange:function(t){return function(t,e){x[e].value=t,O(v(x)),null==w||w(x,D(x))}(t,n)},onClose:F(t)}),t.label)})):null,m&&function(){if(j){var t=(0,s.A)("tag-group-input",{"tag-group-input-large":"large"===i},b);return e().createElement("input",{style:{width:y||T,minWidth:T},type:"text",ref:C,className:t,value:M,onChange:L,onBlur:H,onKeyDown:V})}var n,r=e().createElement(c,null),o="New Tag";g&&(r=g.icon||e().createElement(c,null),o=null!==(n=g.text)&&void 0!==n?n:"New Tag");var a=(0,s.A)("tag-group-new",{"tag-group-new-icon":!o},"tag-group-add-btn");return e().createElement(st,{getWidth:function(t){return R(t)},className:a,size:i,icon:r,onClick:N},o)}())};var b=i(69004);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}var w=/^\s+/,A=/\s+$/;function x(t,e){if(e=e||{},(t=t||"")instanceof x)return t;if(!(this instanceof x))return new x(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,u=!1;"string"==typeof t&&(t=function(t){t=t.replace(w,"").replace(A,"").toLowerCase();var e,n=!1;if(F[t])t=F[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=J.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=J.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=J.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=J.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=J.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=J.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=J.hex8.exec(t))return{r:q(e[1]),g:q(e[2]),b:q(e[3]),a:$(e[4]),format:n?"name":"hex8"};if(e=J.hex6.exec(t))return{r:q(e[1]),g:q(e[2]),b:q(e[3]),format:n?"name":"hex"};if(e=J.hex4.exec(t))return{r:q(e[1]+""+e[1]),g:q(e[2]+""+e[2]),b:q(e[3]+""+e[3]),a:$(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=J.hex3.exec(t))return{r:q(e[1]+""+e[1]),g:q(e[2]+""+e[2]),b:q(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==y(t)&&(Q(t.r)&&Q(t.g)&&Q(t.b)?(s=t.r,c=t.g,l=t.b,e={r:255*W(s,255),g:255*W(c,255),b:255*W(l,255)},a=!0,u="%"===String(t.r).substr(-1)?"prgb":"rgb"):Q(t.h)&&Q(t.s)&&Q(t.v)?(r=Y(t.s),o=Y(t.v),e=function(t,e,n){t=6*W(t,360),e=W(e,100),n=W(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),u=n*(1-(1-o)*e),s=r%6,c=[n,a,i,i,u,n][s],l=[u,n,n,a,i,i][s],f=[i,i,u,n,n,a][s];return{r:255*c,g:255*l,b:255*f}}(t.h,r,o),a=!0,u="hsv"):Q(t.h)&&Q(t.s)&&Q(t.l)&&(r=Y(t.s),i=Y(t.l),e=function(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=W(t,360),e=W(e,100),n=W(n,100),0===e)r=o=i=n;else{var u=n<.5?n*(1+e):n+e-n*e,s=2*n-u;r=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,r,i),a=!0,u="hsl"),t.hasOwnProperty("a")&&(n=t.a));var s,c,l;return n=I(n),{ok:a,format:t.format||u,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function O(t,e,n){t=W(t,255),e=W(e,255),n=W(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),u=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:o,l:u}}function E(t,e,n){t=W(t,255),e=W(e,255),n=W(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),u=i,s=i-a;if(o=0===i?0:s/i,i==a)r=0;else{switch(i){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:o,v:u}}function M(t,e,n,r){var o=[X(Math.round(t).toString(16)),X(Math.round(e).toString(16)),X(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function S(t,e,n,r){return[X(U(r)),X(Math.round(t).toString(16)),X(Math.round(e).toString(16)),X(Math.round(n).toString(16))].join("")}function k(t,e){e=0===e?0:e||10;var n=x(t).toHsl();return n.s-=e/100,n.s=B(n.s),x(n)}function j(t,e){e=0===e?0:e||10;var n=x(t).toHsl();return n.s+=e/100,n.s=B(n.s),x(n)}function _(t){return x(t).desaturate(100)}function C(t,e){e=0===e?0:e||10;var n=x(t).toHsl();return n.l+=e/100,n.l=B(n.l),x(n)}function P(t,e){e=0===e?0:e||10;var n=x(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),x(n)}function T(t,e){e=0===e?0:e||10;var n=x(t).toHsl();return n.l-=e/100,n.l=B(n.l),x(n)}function R(t,e){var n=x(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,x(n)}function D(t){var e=x(t).toHsl();return e.h=(e.h+180)%360,x(e)}function N(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=x(t).toHsl(),r=[x(t)],o=360/e,i=1;i<e;i++)r.push(x({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function L(t){var e=x(t).toHsl(),n=e.h;return[x(t),x({h:(n+72)%360,s:e.s,l:e.l}),x({h:(n+216)%360,s:e.s,l:e.l})]}function H(t,e,n){e=e||6,n=n||30;var r=x(t).toHsl(),o=360/n,i=[x(t)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(x(r));return i}function V(t,e){e=e||6;for(var n=x(t).toHsv(),r=n.h,o=n.s,i=n.v,a=[],u=1/e;e--;)a.push(x({h:r,s:o,v:i})),i=(i+u)%1;return a}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=I(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=E(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=E(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=O(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=O(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return M(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,o){var i=[X(Math.round(t).toString(16)),X(Math.round(e).toString(16)),X(Math.round(n).toString(16)),X(U(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*W(this._r,255))+"%",g:Math.round(100*W(this._g,255))+"%",b:Math.round(100*W(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%)":"rgba("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[M(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+S(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=x(t);n="#"+S(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return x(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(j,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(N,[3])},tetrad:function(){return this._applyCombination(N,[4])}},x.fromRatio=function(t,e){if("object"==y(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:Y(t[r]));t=n}return x(t,e)},x.equals=function(t,e){return!(!t||!e)&&x(t).toRgbString()==x(e).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},x.mix=function(t,e,n){n=0===n?0:n||50;var r=x(t).toRgb(),o=x(e).toRgb(),i=n/100;return x({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},x.readability=function(t,e){var n=x(t),r=x(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},x.isReadable=function(t,e,n){var r,o,i=x.readability(t,e);switch(o=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},x.mostReadable=function(t,e,n){var r,o,i,a,u=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var c=0;c<e.length;c++)(r=x.readability(t,e[c]))>s&&(s=r,u=x(e[c]));return x.isReadable(t,u,{level:i,size:a})||!o?u:(n.includeFallbackColors=!1,x.mostReadable(t,["#fff","#000"],n))};var F=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=x.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(F);function I(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function W(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function B(t){return Math.min(1,Math.max(0,t))}function q(t){return parseInt(t,16)}function X(t){return 1==t.length?"0"+t:""+t}function Y(t){return t<=1&&(t=100*t+"%"),t}function U(t){return Math.round(255*parseFloat(t)).toString(16)}function $(t){return q(t)/255}var G,K,Z,J=(K="[\\s|\\(]+("+(G="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",Z="[\\s|\\(]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",{CSS_UNIT:new RegExp(G),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+Z),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+Z),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+Z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(t){return!!J.CSS_UNIT.exec(t)}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){et(t,e,n[e])}))}return t}function rt(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function ot(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function it(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(t,e)}(t,e)||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.")}()}var at=["blue","green","yellow","red"],ut=function(r){var o=r.type,i=void 0===o?"normal":o,a=r.className,c=r.children,f=r.icon,p=r.color,d=r.onClose,h=r.onEdit,v=r.getWidth,m=r.tagChange,g=r.editInputClassName,y=r.closeIcon,w=r.closable,A=void 0!==w&&w,O=r.editable,E=void 0!==O&&O,M=r.size,S=void 0===M?"larage":M,k=r.maxWidth,j=r.style,_=r.visible,C=r.editInputWidth,P=r.tipMaxWidth,T=ot(r,["type","className","children","icon","color","onClose","onEdit","getWidth","tagChange","editInputClassName","closeIcon","closable","editable","size","maxWidth","style","visible","editInputWidth","tipMaxWidth"]),R=it((0,t.useState)(!0),2),D=R[0],N=R[1],L=it((0,t.useState)(!1),2),H=L[0],V=L[1],F=it((0,t.useState)(""),2),z=F[0],I=F[1],W=it((0,t.useState)(""),2),B=W[0],q=W[1],X=it((0,t.useState)(!1),2),Y=X[0],U=X[1],$=it((0,t.useState)(!1),2),G=$[0],K=$[1],Z=(0,t.useRef)(),J=(0,t.useRef)();(0,t.useEffect)((function(){"visible"in r&&N(!!_)}),[_]),(0,t.useEffect)((function(){if(J.current){var t=J.current.offsetWidth;q(t),v&&v(t)}}),[J,H]),(0,t.useEffect)((function(){"string"==typeof c&&I(c)}),[c]);var Q,tt,ut=function(){return!!p&&at.includes(p)},st=nt({color:p&&!ut()?p:void 0,backgroundColor:p&&!ut()?x(p).setAlpha(.1).toRgbString():void 0,borderColor:p&&!ut()&&"outline"===i?p:void 0,maxWidth:k},j),ct={backgroundColor:Y?x(p).setAlpha(.1).toRgbString():void 0,borderRadius:"2px"},lt={backgroundColor:G?x(p).setAlpha(.1).toRgbString():void 0,marginRight:c?"small"===S?"2px":"4px":void 0,borderRadius:"2px"},ft=(0,s.A)("".concat(l.n,"-tag"),"".concat(l.n,"-tag-").concat(i),"".concat(l.n,"-tag-").concat(S),a,(et(Q={},"".concat(l.n,"-tag-has-color"),p),et(Q,"".concat(l.n,"-tag-hidden"),!D),et(Q,"".concat(l.n,"-tag-").concat(p),ut()),Q)),pt=function(t){t.stopPropagation(),null==d||d(t),U(!1),t.defaultPrevented||"visible"in r||N(!1)},dt=function(){U(!0)},ht=function(){U(!1)},vt=function(){K(!0)},mt=function(){K(!1)},gt=function(t){t.stopPropagation(),h&&h(t),t.defaultPrevented||(K(!1),V(!0))},bt=function(t){I(t.target.value),m&&m(t.target.value)},yt=function(){V(!1)},wt=function(t){13!==t.keyCode&&13!==t.which||yt()};return e().createElement(e().Fragment,null,H?(tt=(0,s.A)("".concat(l.n,"-tag-edit-input"),g),e().createElement("input",{style:{width:C||B,minWidth:B},type:"text",autoFocus:!0,ref:Z,className:tt,value:z,onChange:bt,onBlur:yt,onKeyDown:wt})):e().createElement("span",rt(nt({},T),{className:ft,style:st,ref:J}),(E||f)&&e().createElement("span",{className:"tag-edit-icon ".concat(f?"tag-custom-icon":""),style:lt,onMouseEnter:vt,onMouseLeave:mt},E?e().createElement(u,{onMouseEnter:vt,onMouseLeave:mt,className:"tag-edit-icon",onClick:gt}):e().createElement(e().Fragment,null,f)),c&&e().createElement(b.default,{tipMaxWidth:P},e().createElement("span",{className:"tag-text"},z||c)),A?y?e().createElement("span",{className:"tag-close-icon",style:ct,onClick:pt,onMouseEnter:dt,onMouseLeave:ht},y):e().createElement(n.A,{className:"tag-close-icon",style:ct,onClick:pt,onMouseEnter:dt,onMouseLeave:ht}):null))};const st=ut})(),a})()));
43
+ */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,i(n)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},43145:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{A:()=>r})},96369:(t,e,n)=>{"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{A:()=>r})},9417:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{A:()=>r})},10467:(t,e,n)=>{"use strict";function r(t,e,n,r,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,s,"next",t)}function s(t){r(a,o,i,u,s,"throw",t)}u(void 0)}))}}n.d(e,{A:()=>o})},23029:(t,e,n)=>{"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{A:()=>r})},92901:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(49922);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,r.A)(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},29426:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(53954),o=n(52176),i=n(56822);function a(t){var e=(0,o.A)();return function(){var n,o=(0,r.A)(t);if(e){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},64467:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(49922);function o(t,e,n){return(e=(0,r.A)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},58168:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{A:()=>r})},53954:(t,e,n)=>{"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,{A:()=>r})},85501:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(63662);function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,r.A)(t,e)}},52176:(t,e,n)=>{"use strict";function r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(r=function(){return!!t})()}n.d(e,{A:()=>r})},6986:(t,e,n)=>{"use strict";function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}n.d(e,{A:()=>r})},76562:(t,e,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{A:()=>r})},89379:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(64467);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,r.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},80045:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(98587);function o(t,e){if(null==t)return{};var n,o,i=(0,r.A)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},98587:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}n.d(e,{A:()=>r})},56822:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(82284),o=n(9417);function i(t,e){if(e&&("object"===(0,r.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(t)}},63662:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{A:()=>r})},3453:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(96369),o=n(6986),i=n(27800),a=n(76562);function u(t,e){return(0,r.A)(t)||(0,o.A)(t,e)||(0,i.A)(t,e)||(0,a.A)()}},92327:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(82284);function o(t,e){if("object"!=(0,r.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},49922:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(82284),o=n(92327);function i(t){var e=(0,o.A)(t,"string");return"symbol"==(0,r.A)(e)?e:e+""}},82284:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})},27800:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(43145);function o(t,e){if(t){if("string"==typeof t)return(0,r.A)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(t,e):void 0}}}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,exports:{}};return r[t](n,n.exports,i),n.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{Tag:()=>ut,TagGroup:()=>g,default:()=>st});var t=i(39155),e=i.n(t),n=i(39864),r=i(74848),o=i(55307),u=function(t){return(0,r.jsx)(o.A,Object.assign({dataName:"EditOutline",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"EditOutline",transform:"translate(-288 -426)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 426)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M.8,17.866a.8.8,0,0,1-.8-.8V1.336a.8.8,0,0,1,.8-.8H8.667a.8.8,0,0,1,0,1.6H1.6V16.267H15.734V9.221a.8.8,0,1,1,1.6,0v7.847a.8.8,0,0,1-.8.8Zm3.362-4.234a.8.8,0,0,1-.23-.618l.244-3.75A.8.8,0,0,1,4.41,8.75L12.925.234a.8.8,0,0,1,1.131,0l3.505,3.5A.811.811,0,0,1,17.8,4.3a.8.8,0,0,1-.234.565L9.045,13.386a.806.806,0,0,1-.513.234l-3.75.245H4.729A.808.808,0,0,1,4.163,13.632ZM5.754,9.668l-.167,2.54,2.54-.167L15.864,4.3,13.492,1.932Z",transform:"translate(291.102 429.067)"})]}))})},t))},s=i(20053),c=function(t){return(0,r.jsx)(o.A,Object.assign({dataName:"Plus",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"Plus",transform:"translate(-140 -287)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 287)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M17.2,7.867H10V.933a.933.933,0,0,0-1.867,0V7.867H.933a.933.933,0,0,0,0,1.867h7.2V17.2A.933.933,0,1,0,10,17.2V9.733h7.2a.933.933,0,1,0,0-1.867",transform:"translate(142.934 289.933)"})]}))})},t))},l=i(14552);i(61222);function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||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 m(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}const g=function(n){var r=n.className,o=n.size,i=void 0===o?"large":o,a=n.style,u=n.defaultInputValue,f=n.increased,m=void 0!==f&&f,g=n.increasedTag,b=n.inputClassName,y=n.inputWidth,w=n.onChange,A=h((0,t.useState)([]),2),x=A[0],O=A[1],E=h((0,t.useState)(null!=u?u:""),2),M=E[0],S=E[1],k=h((0,t.useState)(!1),2),j=k[0],_=k[1],C=(0,t.useRef)(),P=h((0,t.useState)(),2),T=P[0],R=P[1];(0,t.useEffect)((function(){if(n.data){var t=n.data;t.some((function(t){return["string","number"].includes(void 0===t?"undefined":(e=t)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e);var e}))&&(t=t.map((function(t){return{value:t,label:t}}))),O(v(t))}}),[n.data]);var D=function(t){return t.map((function(t){return t.value}))},N=function(){_(!0),setTimeout((function(){var t;null===(t=C.current)||void 0===t||t.focus()}))},L=function(t){S(t.target.value)},H=function(){var t=M.trim();""!==t&&(x.push({value:t,label:t,closable:!0}),O(v(x)),null==w||w(x,D(x))),S(null!=u?u:""),_(!1)},V=function(t){13!==t.keyCode&&13!==t.which||H()},F=function(t){return function(e){var n=x.findIndex((function(e){return e.value===t.value}));n>-1&&(x.splice(n,1),O(v(x))),t.onClose&&t.onClose(e),null==w||w(x,D(x))}};return e().createElement("div",{className:(0,s.A)("".concat(l.n,"-tag-group"),r),style:a},(null==x?void 0:x.length)?x.map((function(t,n){return e().createElement(st,d(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){p(t,e,n[e])}))}return t}({key:n},t),{size:i,visible:!0,tagChange:function(t){return function(t,e){x[e].value=t,O(v(x)),null==w||w(x,D(x))}(t,n)},onClose:F(t)}),t.label)})):null,m&&function(){if(j){var t=(0,s.A)("tag-group-input",{"tag-group-input-large":"large"===i},b);return e().createElement("input",{style:{width:y||T,minWidth:T},type:"text",ref:C,className:t,value:M,onChange:L,onBlur:H,onKeyDown:V})}var n,r=e().createElement(c,null),o="New Tag";g&&(r=g.icon||e().createElement(c,null),o=null!==(n=g.text)&&void 0!==n?n:"New Tag");var a=(0,s.A)("tag-group-new",{"tag-group-new-icon":!o},"tag-group-add-btn");return e().createElement(st,{getWidth:function(t){return R(t)},className:a,size:i,icon:r,onClick:N},o)}())};var b=i(69004);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}var w=/^\s+/,A=/\s+$/;function x(t,e){if(e=e||{},(t=t||"")instanceof x)return t;if(!(this instanceof x))return new x(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,u=!1;"string"==typeof t&&(t=function(t){t=t.replace(w,"").replace(A,"").toLowerCase();var e,n=!1;if(F[t])t=F[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=J.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=J.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=J.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=J.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=J.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=J.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=J.hex8.exec(t))return{r:q(e[1]),g:q(e[2]),b:q(e[3]),a:$(e[4]),format:n?"name":"hex8"};if(e=J.hex6.exec(t))return{r:q(e[1]),g:q(e[2]),b:q(e[3]),format:n?"name":"hex"};if(e=J.hex4.exec(t))return{r:q(e[1]+""+e[1]),g:q(e[2]+""+e[2]),b:q(e[3]+""+e[3]),a:$(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=J.hex3.exec(t))return{r:q(e[1]+""+e[1]),g:q(e[2]+""+e[2]),b:q(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==y(t)&&(Q(t.r)&&Q(t.g)&&Q(t.b)?(s=t.r,c=t.g,l=t.b,e={r:255*W(s,255),g:255*W(c,255),b:255*W(l,255)},a=!0,u="%"===String(t.r).substr(-1)?"prgb":"rgb"):Q(t.h)&&Q(t.s)&&Q(t.v)?(r=Y(t.s),o=Y(t.v),e=function(t,e,n){t=6*W(t,360),e=W(e,100),n=W(n,100);var r=Math.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),u=n*(1-(1-o)*e),s=r%6,c=[n,a,i,i,u,n][s],l=[u,n,n,a,i,i][s],f=[i,i,u,n,n,a][s];return{r:255*c,g:255*l,b:255*f}}(t.h,r,o),a=!0,u="hsv"):Q(t.h)&&Q(t.s)&&Q(t.l)&&(r=Y(t.s),i=Y(t.l),e=function(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=W(t,360),e=W(e,100),n=W(n,100),0===e)r=o=i=n;else{var u=n<.5?n*(1+e):n+e-n*e,s=2*n-u;r=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,r,i),a=!0,u="hsl"),t.hasOwnProperty("a")&&(n=t.a));var s,c,l;return n=I(n),{ok:a,format:t.format||u,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function O(t,e,n){t=W(t,255),e=W(e,255),n=W(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),u=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:o,l:u}}function E(t,e,n){t=W(t,255),e=W(e,255),n=W(n,255);var r,o,i=Math.max(t,e,n),a=Math.min(t,e,n),u=i,s=i-a;if(o=0===i?0:s/i,i==a)r=0;else{switch(i){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:o,v:u}}function M(t,e,n,r){var o=[X(Math.round(t).toString(16)),X(Math.round(e).toString(16)),X(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function S(t,e,n,r){return[X(U(r)),X(Math.round(t).toString(16)),X(Math.round(e).toString(16)),X(Math.round(n).toString(16))].join("")}function k(t,e){e=0===e?0:e||10;var n=x(t).toHsl();return n.s-=e/100,n.s=B(n.s),x(n)}function j(t,e){e=0===e?0:e||10;var n=x(t).toHsl();return n.s+=e/100,n.s=B(n.s),x(n)}function _(t){return x(t).desaturate(100)}function C(t,e){e=0===e?0:e||10;var n=x(t).toHsl();return n.l+=e/100,n.l=B(n.l),x(n)}function P(t,e){e=0===e?0:e||10;var n=x(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),x(n)}function T(t,e){e=0===e?0:e||10;var n=x(t).toHsl();return n.l-=e/100,n.l=B(n.l),x(n)}function R(t,e){var n=x(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,x(n)}function D(t){var e=x(t).toHsl();return e.h=(e.h+180)%360,x(e)}function N(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=x(t).toHsl(),r=[x(t)],o=360/e,i=1;i<e;i++)r.push(x({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function L(t){var e=x(t).toHsl(),n=e.h;return[x(t),x({h:(n+72)%360,s:e.s,l:e.l}),x({h:(n+216)%360,s:e.s,l:e.l})]}function H(t,e,n){e=e||6,n=n||30;var r=x(t).toHsl(),o=360/n,i=[x(t)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(x(r));return i}function V(t,e){e=e||6;for(var n=x(t).toHsv(),r=n.h,o=n.s,i=n.v,a=[],u=1/e;e--;)a.push(x({h:r,s:o,v:i})),i=(i+u)%1;return a}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=I(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=E(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=E(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=O(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=O(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return M(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,o){var i=[X(Math.round(t).toString(16)),X(Math.round(e).toString(16)),X(Math.round(n).toString(16)),X(U(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*W(this._r,255))+"%",g:Math.round(100*W(this._g,255))+"%",b:Math.round(100*W(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%)":"rgba("+Math.round(100*W(this._r,255))+"%, "+Math.round(100*W(this._g,255))+"%, "+Math.round(100*W(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[M(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+S(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=x(t);n="#"+S(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return x(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(j,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(N,[3])},tetrad:function(){return this._applyCombination(N,[4])}},x.fromRatio=function(t,e){if("object"==y(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:Y(t[r]));t=n}return x(t,e)},x.equals=function(t,e){return!(!t||!e)&&x(t).toRgbString()==x(e).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},x.mix=function(t,e,n){n=0===n?0:n||50;var r=x(t).toRgb(),o=x(e).toRgb(),i=n/100;return x({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},x.readability=function(t,e){var n=x(t),r=x(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},x.isReadable=function(t,e,n){var r,o,i=x.readability(t,e);switch(o=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},x.mostReadable=function(t,e,n){var r,o,i,a,u=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var c=0;c<e.length;c++)(r=x.readability(t,e[c]))>s&&(s=r,u=x(e[c]));return x.isReadable(t,u,{level:i,size:a})||!o?u:(n.includeFallbackColors=!1,x.mostReadable(t,["#fff","#000"],n))};var F=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=x.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(F);function I(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function W(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function B(t){return Math.min(1,Math.max(0,t))}function q(t){return parseInt(t,16)}function X(t){return 1==t.length?"0"+t:""+t}function Y(t){return t<=1&&(t=100*t+"%"),t}function U(t){return Math.round(255*parseFloat(t)).toString(16)}function $(t){return q(t)/255}var G,K,Z,J=(K="[\\s|\\(]+("+(G="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",Z="[\\s|\\(]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",{CSS_UNIT:new RegExp(G),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+Z),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+Z),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+Z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(t){return!!J.CSS_UNIT.exec(t)}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){et(t,e,n[e])}))}return t}function rt(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function ot(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function it(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tt(t,e)}(t,e)||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.")}()}var at=["blue","green","yellow","red"],ut=function(r){var o=r.type,i=void 0===o?"normal":o,a=r.className,c=r.children,f=r.icon,p=r.color,d=r.onClose,h=r.onEdit,v=r.getWidth,m=r.tagChange,g=r.editInputClassName,y=r.closeIcon,w=r.closable,A=void 0!==w&&w,O=r.editable,E=void 0!==O&&O,M=r.size,S=void 0===M?"larage":M,k=r.maxWidth,j=r.style,_=r.visible,C=r.editInputWidth,P=r.tipMaxWidth,T=ot(r,["type","className","children","icon","color","onClose","onEdit","getWidth","tagChange","editInputClassName","closeIcon","closable","editable","size","maxWidth","style","visible","editInputWidth","tipMaxWidth"]),R=it((0,t.useState)(!0),2),D=R[0],N=R[1],L=it((0,t.useState)(!1),2),H=L[0],V=L[1],F=it((0,t.useState)(""),2),z=F[0],I=F[1],W=it((0,t.useState)(""),2),B=W[0],q=W[1],X=it((0,t.useState)(!1),2),Y=X[0],U=X[1],$=it((0,t.useState)(!1),2),G=$[0],K=$[1],Z=(0,t.useRef)(),J=(0,t.useRef)();(0,t.useEffect)((function(){"visible"in r&&N(!!_)}),[_]),(0,t.useEffect)((function(){if(J.current){var t=J.current.offsetWidth;q(t),v&&v(t)}}),[J,H]),(0,t.useEffect)((function(){"string"==typeof c&&I(c)}),[c]);var Q,tt,ut=function(){return!!p&&at.includes(p)},st=nt({color:p&&!ut()?p:void 0,backgroundColor:p&&!ut()?x(p).setAlpha(.1).toRgbString():void 0,borderColor:p&&!ut()&&"outline"===i?p:void 0,maxWidth:k},j),ct={backgroundColor:Y?x(p).setAlpha(.1).toRgbString():void 0,borderRadius:"2px"},lt={backgroundColor:G?x(p).setAlpha(.1).toRgbString():void 0,marginRight:c?"small"===S?"2px":"4px":void 0,borderRadius:"2px"},ft=(0,s.A)("".concat(l.n,"-tag"),"".concat(l.n,"-tag-").concat(i),"".concat(l.n,"-tag-").concat(S),a,(et(Q={},"".concat(l.n,"-tag-has-color"),p),et(Q,"".concat(l.n,"-tag-hidden"),!D),et(Q,"".concat(l.n,"-tag-").concat(p),ut()),Q)),pt=function(t){t.stopPropagation(),null==d||d(t),U(!1),t.defaultPrevented||"visible"in r||N(!1)},dt=function(){U(!0)},ht=function(){U(!1)},vt=function(){K(!0)},mt=function(){K(!1)},gt=function(t){t.stopPropagation(),h&&h(t),t.defaultPrevented||(K(!1),V(!0))},bt=function(t){I(t.target.value),m&&m(t.target.value)},yt=function(){V(!1)},wt=function(t){13!==t.keyCode&&13!==t.which||yt()};return e().createElement(e().Fragment,null,H?(tt=(0,s.A)("".concat(l.n,"-tag-edit-input"),g),e().createElement("input",{style:{width:C||B,minWidth:B},type:"text",autoFocus:!0,ref:Z,className:tt,value:z,onChange:bt,onBlur:yt,onKeyDown:wt})):e().createElement("span",rt(nt({},T),{className:ft,style:st,ref:J}),(E||f)&&e().createElement("span",{className:"tag-edit-icon ".concat(f?"tag-custom-icon":""),style:lt,onMouseEnter:vt,onMouseLeave:mt},E?e().createElement(u,{onMouseEnter:vt,onMouseLeave:mt,className:"tag-edit-icon",onClick:gt}):e().createElement(e().Fragment,null,f)),c&&e().createElement(b.default,{tipMaxWidth:P},e().createElement("span",{className:"tag-text"},z||c)),A?y?e().createElement("span",{className:"tag-close-icon",style:ct,onClick:pt,onMouseEnter:dt,onMouseLeave:ht},y):e().createElement(n.A,{className:"tag-close-icon",style:ct,onClick:pt,onMouseEnter:dt,onMouseLeave:ht}):null))};const st=ut})(),a})()));