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